Raffales-LMS/public/bibform/js/all.scripts.js
2024-04-16 15:43:24 +05:45

9 lines
406 KiB
JavaScript
Vendored

/*!
* Bootstrap v5.2.2 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,function(){"use strict";let t=1e6,e=1e3,i="transitionend",s=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),n=e=>{do e+=Math.floor(Math.random()*t);while(document.getElementById(e));return e},a=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},r=t=>{let e=a(t);return e&&document.querySelector(e)?e:null},o=t=>{let e=a(t);return e?document.querySelector(e):null},l=t=>{if(!t)return 0;let{transitionDuration:i,transitionDelay:s}=window.getComputedStyle(t),n=Number.parseFloat(i),a=Number.parseFloat(s);return n||a?(i=i.split(",")[0],s=s.split(",")[0],(Number.parseFloat(i)+Number.parseFloat(s))*e):0},h=t=>{t.dispatchEvent(new Event(i))},c=t=>!!t&&"object"==typeof t&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),d=t=>c(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,u=t=>{if(!c(t)||0===t.getClientRects().length)return!1;let e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){let s=t.closest("summary");if(s&&s.parentNode!==i||null===s)return!1}return e},f=t=>!!(!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled"))||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),p=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){let e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?p(t.parentNode):null},m=()=>{},g=t=>{t.offsetHeight},v=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$=[],b=t=>{"loading"===document.readyState?($.length||document.addEventListener("DOMContentLoaded",()=>{for(let t of $)t()}),$.push(t)):t()},y=()=>"rtl"===document.documentElement.dir,w=t=>{b(()=>{let e=v();if(e){let i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}})},_=t=>{"function"==typeof t&&t()},k=(t,e,s=!0)=>{if(!s){_(t);return}let n=5,a=l(e)+n,r=!1,o=({target:s})=>{s===e&&(r=!0,e.removeEventListener(i,o),_(t))};e.addEventListener(i,o),setTimeout(()=>{r||h(e)},a)},D=(t,e,i,s)=>{let n=t.length,a=t.indexOf(e);return -1===a?!i&&s?t[n-1]:t[0]:(a+=i?1:-1,s&&(a=(a+n)%n),t[Math.max(0,Math.min(a,n-1))])},C=/[^.]*(?=\..*)\.|.*/,x=/\..*/,S=/::\d+$/,P={},T=1,M={mouseenter:"mouseover",mouseleave:"mouseout"},A=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function E(t,e){return e&&`${e}::${T++}`||t.uidEvent||T++}function I(t){let e=E(t);return t.uidEvent=e,P[e]=P[e]||{},P[e]}function O(t,e){return function i(s){return j(s,{delegateTarget:t}),i.oneOff&&R.off(t,s.type,e),e.apply(t,[s])}}function F(t,e,i){return function s(n){let a=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let o of a)if(o===r)return j(n,{delegateTarget:r}),s.oneOff&&R.off(t,n.type,e,i),i.apply(r,[n])}}function Y(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function L(t,e,i){let s="string"==typeof e,n=s?i:e||i,a=N(t);return A.has(a)||(a=t),[s,n,a]}function z(t,e,i,s,n){if("string"!=typeof e||!t)return;let[a,r,o]=L(e,i,s);if(e in M){let l=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=l(r)}let h=I(t),c=h[o]||(h[o]={}),d=Y(c,r,a?i:null);if(d){d.oneOff=d.oneOff&&n;return}let u=E(r,e.replace(C,"")),f=a?F(t,i,r):O(t,r);f.delegationSelector=a?i:null,f.callable=r,f.oneOff=n,f.uidEvent=u,c[u]=f,t.addEventListener(o,f,a)}function H(t,e,i,s,n){let a=Y(e[i],s,n);a&&(t.removeEventListener(i,a,Boolean(n)),delete e[i][a.uidEvent])}function W(t,e,i,s){let n=e[i]||{};for(let a of Object.keys(n))if(a.includes(s)){let r=n[a];H(t,e,i,r.callable,r.delegationSelector)}}function N(t){return M[t=t.replace(x,"")]||t}let R={on(t,e,i,s){z(t,e,i,s,!1)},one(t,e,i,s){z(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;let[n,a,r]=L(e,i,s),o=r!==e,l=I(t),h=l[r]||{},c=e.startsWith(".");if(void 0!==a){if(!Object.keys(h).length)return;H(t,l,r,a,n?i:null);return}if(c)for(let d of Object.keys(l))W(t,l,d,e.slice(1));for(let u of Object.keys(h)){let f=u.replace(S,"");if(!o||e.includes(f)){let p=h[u];H(t,l,r,p.callable,p.delegationSelector)}}},trigger(t,e,i){if("string"!=typeof e||!t)return null;let s=v(),n=N(e),a=e!==n,r=null,o=!0,l=!0,h=!1;a&&s&&(r=s.Event(e,i),s(t).trigger(r),o=!r.isPropagationStopped(),l=!r.isImmediatePropagationStopped(),h=r.isDefaultPrevented());let c=new Event(e,{bubbles:o,cancelable:!0});return c=j(c,i),h&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&r&&r.preventDefault(),c}};function j(t,e){for(let[i,s]of Object.entries(e||{}))try{t[i]=s}catch(n){Object.defineProperty(t,i,{configurable:!0,get:()=>s})}return t}let B=new Map,q={set(t,e,i){B.has(t)||B.set(t,new Map);let s=B.get(t);if(!s.has(e)&&0!==s.size){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`);return}s.set(e,i)},get:(t,e)=>B.has(t)&&B.get(t).get(e)||null,remove(t,e){if(!B.has(t))return;let i=B.get(t);i.delete(e),0===i.size&&B.delete(t)}};function V(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function U(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}let K={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${U(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${U(e)}`)},getDataAttributes(t){if(!t)return{};let e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(let s of i){let n=s.replace(/^bs/,"");e[n=n.charAt(0).toLowerCase()+n.slice(1,n.length)]=V(t.dataset[s])}return e},getDataAttribute:(t,e)=>V(t.getAttribute(`data-bs-${U(e)}`))};class G{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){let i=c(e)?K.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...c(e)?K.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(let i of Object.keys(e)){let n=e[i],a=t[i],r=c(a)?"element":s(a);if(!RegExp(n).test(r))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${n}".`)}}}let X="5.2.2";class Z extends G{constructor(t,e){if(super(),!(t=d(t)))return;this._element=t,this._config=this._getConfig(e),q.set(this._element,this.constructor.DATA_KEY,this)}dispose(){for(let t of(q.remove(this._element,this.constructor.DATA_KEY),R.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this)))this[t]=null}_queueCallback(t,e,i=!0){k(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return q.get(d(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return X}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}let Q=(t,e="hide")=>{let i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;R.on(document,i,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),f(this))return;let n=o(this)||this.closest(`.${s}`),a=t.getOrCreateInstance(n);a[e]()})},J="alert",tt="bs.alert",te=`.${tt}`,ti=`close${te}`,ts=`closed${te}`,tn="fade",ta="show";class tr extends Z{static get NAME(){return J}close(){let t=R.trigger(this._element,ti);if(t.defaultPrevented)return;this._element.classList.remove(ta);let e=this._element.classList.contains(tn);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),R.trigger(this._element,ts),this.dispose()}static jQueryInterface(t){return this.each(function(){let e=tr.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t](this)}})}}Q(tr,"close"),w(tr);let to="button",tl="bs.button",th=`.${tl}`,tc=".data-api",td="active",tu='[data-bs-toggle="button"]',tf=`click${th}${tc}`;class tp extends Z{static get NAME(){return to}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(td))}static jQueryInterface(t){return this.each(function(){let e=tp.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}R.on(document,tf,tu,t=>{t.preventDefault();let e=t.target.closest(tu),i=tp.getOrCreateInstance(e);i.toggle()}),w(tp);let tm={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){let i=[],s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){let e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!f(t)&&u(t))}},tg="swipe",tv=".bs.swipe",t8=`touchstart${tv}`,t$=`touchmove${tv}`,tb=`touchend${tv}`,ty=`pointerdown${tv}`,tw=`pointerup${tv}`,t_="touch",tk="pen",tD="pointer-event",tC=40,tx={endCallback:null,leftCallback:null,rightCallback:null},tS={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class tP extends G{constructor(t,e){if(super(),this._element=t,!t||!tP.isSupported())return;this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents()}static get Default(){return tx}static get DefaultType(){return tS}static get NAME(){return tg}dispose(){R.off(this._element,tv)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),_(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){let t=Math.abs(this._deltaX);if(t<=tC)return;let e=t/this._deltaX;this._deltaX=0,e&&_(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(R.on(this._element,ty,t=>this._start(t)),R.on(this._element,tw,t=>this._end(t)),this._element.classList.add(tD)):(R.on(this._element,t8,t=>this._start(t)),R.on(this._element,t$,t=>this._move(t)),R.on(this._element,tb,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===tk||t.pointerType===t_)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}let tT="carousel",tM="bs.carousel",tA=`.${tM}`,tE=".data-api",tI="ArrowLeft",tO="ArrowRight",tF=500,t0="next",tY="prev",tL="left",tz="right",tH=`slide${tA}`,tW=`slid${tA}`,tN=`keydown${tA}`,tR=`mouseenter${tA}`,t9=`mouseleave${tA}`,t3=`dragstart${tA}`,tj=`load${tA}${tE}`,tB=`click${tA}${tE}`,tq="carousel",t1="active",tV="slide",t2="carousel-item-end",t7="carousel-item-start",tU="carousel-item-next",t5="carousel-item-prev",t4=".active",t6=".carousel-item",tK=t4+t6,tG=".carousel-item img",tX=".carousel-indicators",tZ="[data-bs-slide], [data-bs-slide-to]",tQ='[data-bs-ride="carousel"]',tJ={[tI]:tz,[tO]:tL},et={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ee={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ei extends Z{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=tm.findOne(tX,this._element),this._addEventListeners(),this._config.ride===tq&&this.cycle()}static get Default(){return et}static get DefaultType(){return ee}static get NAME(){return tT}next(){this._slide(t0)}nextWhenVisible(){!document.hidden&&u(this._element)&&this.next()}prev(){this._slide(tY)}pause(){this._isSliding&&h(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){R.one(this._element,tW,()=>this.cycle());return}this.cycle()}}to(t){let e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){R.one(this._element,tW,()=>this.to(t));return}let i=this._getItemIndex(this._getActive());if(i===t)return;let s=t>i?t0:tY;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&R.on(this._element,tN,t=>this._keydown(t)),"hover"===this._config.pause&&(R.on(this._element,tR,()=>this.pause()),R.on(this._element,t9,()=>this._maybeEnableCycle())),this._config.touch&&tP.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let t of tm.find(tG,this._element))R.on(t,t3,t=>t.preventDefault());let e=()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),tF+this._config.interval))},i={leftCallback:()=>this._slide(this._directionToOrder(tL)),rightCallback:()=>this._slide(this._directionToOrder(tz)),endCallback:e};this._swipeHelper=new tP(this._element,i)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=tJ[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;let e=tm.findOne(t4,this._indicatorsElement);e.classList.remove(t1),e.removeAttribute("aria-current");let i=tm.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(t1),i.setAttribute("aria-current","true"))}_updateInterval(){let t=this._activeElement||this._getActive();if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;let i=this._getActive(),s=t===t0,n=e||D(this._getItems(),i,s,this._config.wrap);if(n===i)return;let a=this._getItemIndex(n),r=e=>R.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:a}),o=r(tH);if(o.defaultPrevented||!i||!n)return;let l=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=n;let h=s?t7:t2,c=s?tU:t5;n.classList.add(c),g(n),i.classList.add(h),n.classList.add(h);let d=()=>{n.classList.remove(h,c),n.classList.add(t1),i.classList.remove(t1,c,h),this._isSliding=!1,r(tW)};this._queueCallback(d,i,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(tV)}_getActive(){return tm.findOne(tK,this._element)}_getItems(){return tm.find(t6,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return y()?t===tL?tY:t0:t===tL?t0:tY}_orderToDirection(t){return y()?t===tY?tL:tz:t===tY?tz:tL}static jQueryInterface(t){return this.each(function(){let e=ei.getOrCreateInstance(this,t);if("number"==typeof t){e.to(t);return}if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t]()}})}}R.on(document,tB,tZ,function(t){let e=o(this);if(!e||!e.classList.contains(tq))return;t.preventDefault();let i=ei.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");if(s){i.to(s),i._maybeEnableCycle();return}if("next"===K.getDataAttribute(this,"slide")){i.next(),i._maybeEnableCycle();return}i.prev(),i._maybeEnableCycle()}),R.on(window,tj,()=>{let t=tm.find(tQ);for(let e of t)ei.getOrCreateInstance(e)}),w(ei);let es="collapse",en="bs.collapse",ea=`.${en}`,er=".data-api",eo=`show${ea}`,el=`shown${ea}`,eh=`hide${ea}`,ec=`hidden${ea}`,ed=`click${ea}${er}`,eu="show",ef="collapse",ep="collapsing",em="collapsed",eg=`:scope .${ef} .${ef}`,ev="collapse-horizontal",e8="width",e$="height",eb=".collapse.show, .collapse.collapsing",ey='[data-bs-toggle="collapse"]',ew={parent:null,toggle:!0},e_={parent:"(null|element)",toggle:"boolean"};class ek extends Z{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];let i=tm.find(ey);for(let s of i){let n=r(s),a=tm.find(n).filter(t=>t===this._element);null!==n&&a.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ew}static get DefaultType(){return e_}static get NAME(){return es}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(eb).filter(t=>t!==this._element).map(t=>ek.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;let e=R.trigger(this._element,eo);if(e.defaultPrevented)return;for(let i of t)i.hide();let s=this._getDimension();this._element.classList.remove(ef),this._element.classList.add(ep),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(ep),this._element.classList.add(ef,eu),this._element.style[s]="",R.trigger(this._element,el)},a=s[0].toUpperCase()+s.slice(1),r=`scroll${a}`;this._queueCallback(n,this._element,!0),this._element.style[s]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;let t=R.trigger(this._element,eh);if(t.defaultPrevented)return;let e=this._getDimension();for(let i of(this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,g(this._element),this._element.classList.add(ep),this._element.classList.remove(ef,eu),this._triggerArray)){let s=o(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(ep),this._element.classList.add(ef),R.trigger(this._element,ec)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(eu)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=d(t.parent),t}_getDimension(){return this._element.classList.contains(ev)?e8:e$}_initializeChildren(){if(!this._config.parent)return;let t=this._getFirstLevelChildren(ey);for(let e of t){let i=o(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))}}_getFirstLevelChildren(t){let e=tm.find(eg,this._config.parent);return tm.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(let i of t)i.classList.toggle(em,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){let e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){let i=ek.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw TypeError(`No method named "${t}"`);i[t]()}})}}R.on(document,ed,ey,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();let e=r(this),i=tm.find(e);for(let s of i)ek.getOrCreateInstance(s,{toggle:!1}).toggle()}),w(ek);var eD="top",eC="bottom",ex="right",eS="left",eP="auto",eT=[eD,eC,ex,eS],eM="start",eA="end",eE="clippingParents",eI="viewport",eO="popper",eF="reference",e0=eT.reduce(function(t,e){return t.concat([e+"-"+eM,e+"-"+eA])},[]),eY=[].concat(eT,[eP]).reduce(function(t,e){return t.concat([e,e+"-"+eM,e+"-"+eA])},[]),eL="beforeRead",ez="read",eH="afterRead",eW="beforeMain",eN="main",eR="afterMain",e9="beforeWrite",e3="write",ej="afterWrite",eB=[eL,ez,eH,eW,eN,eR,e9,e3,ej];function eq(t){return t?(t.nodeName||"").toLowerCase():null}function e1(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function eV(t){var e=e1(t).Element;return t instanceof e||t instanceof Element}function e2(t){var e=e1(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function e7(t){if("undefined"==typeof ShadowRoot)return!1;var e=e1(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function eU(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},n=e.elements[t];e2(n)&&eq(n)&&(Object.assign(n.style,i),Object.keys(s).forEach(function(t){var e=s[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)}))})}function e5(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var s=e.elements[t],n=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});e2(s)&&eq(s)&&(Object.assign(s.style,a),Object.keys(n).forEach(function(t){s.removeAttribute(t)}))})}}let e4={name:"applyStyles",enabled:!0,phase:"write",fn:eU,effect:e5,requires:["computeStyles"]};function e6(t){return t.split("-")[0]}var eK=Math.max,eG=Math.min,eX=Math.round;function eZ(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function eQ(){return!/^((?!chrome|android).)*safari/i.test(eZ())}function eJ(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var s=t.getBoundingClientRect(),n=1,a=1;e&&e2(t)&&(n=t.offsetWidth>0&&eX(s.width)/t.offsetWidth||1,a=t.offsetHeight>0&&eX(s.height)/t.offsetHeight||1);var r=(eV(t)?e1(t):window).visualViewport,o=!eQ()&&i,l=(s.left+(o&&r?r.offsetLeft:0))/n,h=(s.top+(o&&r?r.offsetTop:0))/a,c=s.width/n,d=s.height/a;return{width:c,height:d,top:h,right:l+c,bottom:h+d,left:l,x:l,y:h}}function it(t){var e=eJ(t),i=t.offsetWidth,s=t.offsetHeight;return 1>=Math.abs(e.width-i)&&(i=e.width),1>=Math.abs(e.height-s)&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function ie(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&e7(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ii(t){return e1(t).getComputedStyle(t)}function is(t){return["table","td","th"].indexOf(eq(t))>=0}function ia(t){return((eV(t)?t.ownerDocument:t.document)||window.document).documentElement}function ir(t){return"html"===eq(t)?t:t.assignedSlot||t.parentNode||(e7(t)?t.host:null)||ia(t)}function io(t){return e2(t)&&"fixed"!==ii(t).position?t.offsetParent:null}function il(t){var e=/firefox/i.test(eZ());if(/Trident/i.test(eZ())&&e2(t)&&"fixed"===ii(t).position)return null;var i=ir(t);for(e7(i)&&(i=i.host);e2(i)&&0>["html","body"].indexOf(eq(i));){var s=ii(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||e&&"filter"===s.willChange||e&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}function ih(t){for(var e=e1(t),i=io(t);i&&is(i)&&"static"===ii(i).position;)i=io(i);return i&&("html"===eq(i)||"body"===eq(i)&&"static"===ii(i).position)?e:i||il(t)||e}function ic(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function id(t,e,i){return eK(t,eG(e,i))}function iu(t,e,i){var s=id(t,e,i);return s>i?i:s}function ip(){return{top:0,right:0,bottom:0,left:0}}function im(t){return Object.assign({},ip(),t)}function ig(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}var iv=function t(e,i){return im("number"!=typeof(e="function"==typeof e?e(Object.assign({},i.rects,{placement:i.placement})):e)?e:ig(e,eT))};function i8(t){var e,i=t.state,s=t.name,n=t.options,a=i.elements.arrow,r=i.modifiersData.popperOffsets,o=e6(i.placement),l=ic(o),h=[eS,ex].indexOf(o)>=0?"height":"width";if(a&&r){var c=iv(n.padding,i),d=it(a),u="y"===l?eD:eS,f="y"===l?eC:ex,p=i.rects.reference[h]+i.rects.reference[l]-r[l]-i.rects.popper[h],m=r[l]-i.rects.reference[l],g=ih(a),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,$=p/2-m/2,b=c[u],y=v-d[h]-c[f],w=v/2-d[h]/2+$,_=id(b,w,y),k=l;i.modifiersData[s]=((e={})[k]=_,e.centerOffset=_-w,e)}}function i$(t){var e=t.state,i=t.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=e.elements.popper.querySelector(s)))&&ie(e.elements.popper,s)&&(e.elements.arrow=s)}let ib={name:"arrow",enabled:!0,phase:"main",fn:i8,effect:i$,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function iy(t){return t.split("-")[1]}var iw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i_(t){var e=t.x,i=t.y,s=window.devicePixelRatio||1;return{x:eX(e*s)/s||0,y:eX(i*s)/s||0}}function ik(t){var e,i,s=t.popper,n=t.popperRect,a=t.placement,r=t.variation,o=t.offsets,l=t.position,h=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=o.x,p=void 0===f?0:f,m=o.y,g=void 0===m?0:m,v="function"==typeof d?d({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var $=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=eS,w=eD,_=window;if(c){var k=ih(s),D="clientHeight",C="clientWidth";k===e1(s)&&(k=ia(s),"static"!==ii(k).position&&"absolute"===l&&(D="scrollHeight",C="scrollWidth")),(a===eD||(a===eS||a===ex)&&r===eA)&&(w=eC,g-=(u&&k===_&&_.visualViewport?_.visualViewport.height:k[D])-n.height,g*=h?1:-1),(a===eS||(a===eD||a===eC)&&r===eA)&&(y=ex,p-=(u&&k===_&&_.visualViewport?_.visualViewport.width:k[C])-n.width,p*=h?1:-1)}var x=Object.assign({position:l},c&&iw),S=!0===d?i_({x:p,y:g}):{x:p,y:g};return(p=S.x,g=S.y,h)?Object.assign({},x,((i={})[w]=b?"0":"",i[y]=$?"0":"",i.transform=1>=(_.devicePixelRatio||1)?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",i)):Object.assign({},x,((e={})[w]=b?g+"px":"",e[y]=$?p+"px":"",e.transform="",e))}function iD(t){var e=t.state,i=t.options,s=i.gpuAcceleration,n=void 0===s||s,a=i.adaptive,r=void 0===a||a,o=i.roundOffsets,l=void 0===o||o,h={placement:e6(e.placement),variation:iy(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ik(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ik(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}let iC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iD,data:{}};var ix={passive:!0};function iS(t){var e=t.state,i=t.instance,s=t.options,n=s.scroll,a=void 0===n||n,r=s.resize,o=void 0===r||r,l=e1(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&h.forEach(function(t){t.addEventListener("scroll",i.update,ix)}),o&&l.addEventListener("resize",i.update,ix),function(){a&&h.forEach(function(t){t.removeEventListener("scroll",i.update,ix)}),o&&l.removeEventListener("resize",i.update,ix)}}let iP={name:"eventListeners",enabled:!0,phase:"write",fn:function t(){},effect:iS,data:{}};var iT={left:"right",right:"left",bottom:"top",top:"bottom"};function iM(t){return t.replace(/left|right|bottom|top/g,function(t){return iT[t]})}var iA={start:"end",end:"start"};function iE(t){return t.replace(/start|end/g,function(t){return iA[t]})}function iI(t){var e,i=e1(t);return{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}function iO(t){return eJ(ia(t)).left+iI(t).scrollLeft}function iF(t,e){var i=e1(t),s=ia(t),n=i.visualViewport,a=s.clientWidth,r=s.clientHeight,o=0,l=0;if(n){a=n.width,r=n.height;var h=eQ();(h||!h&&"fixed"===e)&&(o=n.offsetLeft,l=n.offsetTop)}return{width:a,height:r,x:o+iO(t),y:l}}function i0(t){var e,i=ia(t),s=iI(t),n=null==(e=t.ownerDocument)?void 0:e.body,a=eK(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=eK(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-s.scrollLeft+iO(t),l=-s.scrollTop;return"rtl"===ii(n||i).direction&&(o+=eK(i.clientWidth,n?n.clientWidth:0)-a),{width:a,height:r,x:o,y:l}}function iY(t){var e=ii(t),i=e.overflow,s=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function iL(t){return["html","body","#document"].indexOf(eq(t))>=0?t.ownerDocument.body:e2(t)&&iY(t)?t:iL(ir(t))}function iz(t,e){void 0===e&&(e=[]);var i,s=iL(t),n=s===(null==(i=t.ownerDocument)?void 0:i.body),a=e1(s),r=n?[a].concat(a.visualViewport||[],iY(s)?s:[]):s,o=e.concat(r);return n?o:o.concat(iz(ir(r)))}function iH(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function iW(t,e){var i=eJ(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function iN(t,e,i){return e===eI?iH(iF(t,i)):eV(e)?iW(e,i):iH(i0(ia(t)))}function iR(t){var e=iz(ir(t)),i=["absolute","fixed"].indexOf(ii(t).position)>=0&&e2(t)?ih(t):t;return eV(i)?e.filter(function(t){return eV(t)&&ie(t,i)&&"body"!==eq(t)}):[]}function i9(t,e,i,s){var n=[].concat("clippingParents"===e?iR(t):[].concat(e),[i]),a=n[0],r=n.reduce(function(e,i){var n=iN(t,i,s);return e.top=eK(n.top,e.top),e.right=eG(n.right,e.right),e.bottom=eG(n.bottom,e.bottom),e.left=eK(n.left,e.left),e},iN(t,a,s));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function i3(t){var e,i=t.reference,s=t.element,n=t.placement,a=n?e6(n):null,r=n?iy(n):null,o=i.x+i.width/2-s.width/2,l=i.y+i.height/2-s.height/2;switch(a){case eD:e={x:o,y:i.y-s.height};break;case eC:e={x:o,y:i.y+i.height};break;case ex:e={x:i.x+i.width,y:l};break;case eS:e={x:i.x-s.width,y:l};break;default:e={x:i.x,y:i.y}}var h=a?ic(a):null;if(null!=h){var c="y"===h?"height":"width";switch(r){case eM:e[h]=e[h]-(i[c]/2-s[c]/2);break;case eA:e[h]=e[h]+(i[c]/2-s[c]/2)}}return e}function ij(t,e){void 0===e&&(e={});var i=e,s=i.placement,n=void 0===s?t.placement:s,a=i.strategy,r=void 0===a?t.strategy:a,o=i.boundary,l=void 0===o?eE:o,h=i.rootBoundary,c=void 0===h?eI:h,d=i.elementContext,u=void 0===d?eO:d,f=i.altBoundary,p=void 0!==f&&f,m=i.padding,g=void 0===m?0:m,v=im("number"!=typeof g?g:ig(g,eT)),$=u===eO?eF:eO,b=t.rects.popper,y=t.elements[p?$:u],w=i9(eV(y)?y:y.contextElement||ia(t.elements.popper),l,c,r),_=eJ(t.elements.reference),k=i3({reference:_,element:b,strategy:"absolute",placement:n}),D=iH(Object.assign({},b,k)),C=u===eO?D:_,x={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},S=t.modifiersData.offset;if(u===eO&&S){var P=S[n];Object.keys(x).forEach(function(t){var e=[ex,eC].indexOf(t)>=0?1:-1,i=[eD,eC].indexOf(t)>=0?"y":"x";x[t]+=P[i]*e})}return x}function iB(t,e){void 0===e&&(e={});var i=e,s=i.placement,n=i.boundary,a=i.rootBoundary,r=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,h=void 0===l?eY:l,c=iy(s),d=c?o?e0:e0.filter(function(t){return iy(t)===c}):eT,u=d.filter(function(t){return h.indexOf(t)>=0});0===u.length&&(u=d);var f=u.reduce(function(e,i){return e[i]=ij(t,{placement:i,boundary:n,rootBoundary:a,padding:r})[e6(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}function iq(t){if(e6(t)===eP)return[];var e=iM(t);return[iE(t),e,iE(e)]}function i1(t){var e=t.state,i=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var n,a,r=i.mainAxis,o=void 0===r||r,l=i.altAxis,h=void 0===l||l,c=i.fallbackPlacements,d=i.padding,u=i.boundary,f=i.rootBoundary,p=i.altBoundary,m=i.flipVariations,g=void 0===m||m,v=i.allowedAutoPlacements,$=e.options.placement,b=e6($)===$,y=[$].concat(c||(b||!g?[iM($)]:iq($))).reduce(function(t,i){return t.concat(e6(i)===eP?iB(e,{placement:i,boundary:u,rootBoundary:f,padding:d,flipVariations:g,allowedAutoPlacements:v}):i)},[]),w=e.rects.reference,_=e.rects.popper,k=new Map,D=!0,C=y[0],x=0;x<y.length;x++){var S=y[x],P=e6(S),T=iy(S)===eM,M=[eD,eC].indexOf(P)>=0,A=M?"width":"height",E=ij(e,{placement:S,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),I=M?T?ex:eS:T?eC:eD;w[A]>_[A]&&(I=iM(I));var O=iM(I),F=[];if(o&&F.push(E[P]<=0),h&&F.push(E[I]<=0,E[O]<=0),F.every(function(t){return t})){C=S,D=!1;break}k.set(S,F)}if(D)for(var Y=g?3:1,L=function t(e){var i=y.find(function(t){var i=k.get(t);if(i)return i.slice(0,e).every(function(t){return t})});if(i)return C=i,"break"},z=Y;z>0&&"break"!==L(z);z--);e.placement!==C&&(e.modifiersData[s]._skip=!0,e.placement=C,e.reset=!0)}}let iV={name:"flip",enabled:!0,phase:"main",fn:i1,requiresIfExists:["offset"],data:{_skip:!1}};function i2(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function i7(t){return[eD,ex,eC,eS].some(function(e){return t[e]>=0})}function iU(t){var e=t.state,i=t.name,s=e.rects.reference,n=e.rects.popper,a=e.modifiersData.preventOverflow,r=ij(e,{elementContext:"reference"}),o=ij(e,{altBoundary:!0}),l=i2(r,s),h=i2(o,n,a),c=i7(l),d=i7(h);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}let i5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iU};function i4(t,e,i){var s=e6(t),n=[eS,eD].indexOf(s)>=0?-1:1,a="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=a[0],o=a[1];return r=r||0,o=(o||0)*n,[eS,ex].indexOf(s)>=0?{x:o,y:r}:{x:r,y:o}}function i6(t){var e=t.state,i=t.options,s=t.name,n=i.offset,a=void 0===n?[0,0]:n,r=eY.reduce(function(t,i){return t[i]=i4(i,e.rects,a),t},{}),o=r[e.placement],l=o.x,h=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=h),e.modifiersData[s]=r}let iK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i6};function iG(t){var e=t.state,i=t.name;e.modifiersData[i]=i3({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}let iX={name:"popperOffsets",enabled:!0,phase:"read",fn:iG,data:{}};function iZ(t){return"x"===t?"y":"x"}function iQ(t){var e=t.state,i=t.options,s=t.name,n=i.mainAxis,a=void 0===n||n,r=i.altAxis,o=void 0!==r&&r,l=i.boundary,h=i.rootBoundary,c=i.altBoundary,d=i.padding,u=i.tether,f=void 0===u||u,p=i.tetherOffset,m=void 0===p?0:p,g=ij(e,{boundary:l,rootBoundary:h,padding:d,altBoundary:c}),v=e6(e.placement),$=iy(e.placement),b=!$,y=ic(v),w=iZ(y),_=e.modifiersData.popperOffsets,k=e.rects.reference,D=e.rects.popper,C="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,x="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),S=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(_){if(a){var T,M="y"===y?eD:eS,A="y"===y?eC:ex,E="y"===y?"height":"width",I=_[y],O=I+g[M],F=I-g[A],Y=f?-D[E]/2:0,L=$===eM?k[E]:D[E],z=$===eM?-D[E]:-k[E],H=e.elements.arrow,W=f&&H?it(H):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ip(),R=N[M],j=N[A],B=id(0,k[E],W[E]),q=b?k[E]/2-Y-B-R-x.mainAxis:L-B-R-x.mainAxis,V=b?-k[E]/2+Y+B+j+x.mainAxis:z+B+j+x.mainAxis,U=e.elements.arrow&&ih(e.elements.arrow),K=U?"y"===y?U.clientTop||0:U.clientLeft||0:0,G=null!=(T=null==S?void 0:S[y])?T:0,X=I+q-G-K,Z=I+V-G,Q=id(f?eG(O,X):O,I,f?eK(F,Z):F);_[y]=Q,P[y]=Q-I}if(o){var J,tt="x"===y?eD:eS,te="x"===y?eC:ex,ti=_[w],ts="y"===w?"height":"width",tn=ti+g[tt],ta=ti-g[te],tr=-1!==[eD,eS].indexOf(v),to=null!=(J=null==S?void 0:S[w])?J:0,tl=tr?tn:ti-k[ts]-D[ts]-to+x.altAxis,th=tr?ti+k[ts]+D[ts]-to-x.altAxis:ta,tc=f&&tr?iu(tl,ti,th):id(f?tl:tn,ti,f?th:ta);_[w]=tc,P[w]=tc-ti}e.modifiersData[s]=P}}let iJ={name:"preventOverflow",enabled:!0,phase:"main",fn:iQ,requiresIfExists:["offset"]};function st(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function se(t){return t!==e1(t)&&e2(t)?st(t):iI(t)}function si(t){var e=t.getBoundingClientRect(),i=eX(e.width)/t.offsetWidth||1,s=eX(e.height)/t.offsetHeight||1;return 1!==i||1!==s}function ss(t,e,i){void 0===i&&(i=!1);var s=e2(e),n=e2(e)&&si(e),a=ia(e),r=eJ(t,n,i),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!i)&&(("body"!==eq(e)||iY(a))&&(o=se(e)),e2(e)?(l=eJ(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=iO(a))),{x:r.left+o.scrollLeft-l.x,y:r.top+o.scrollTop-l.y,width:r.width,height:r.height}}function sn(t){var e=new Map,i=new Set,s=[];function n(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var s=e.get(t);s&&n(s)}}),s.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||n(t)}),s}function sa(t){var e=sn(t);return eB.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}function sr(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function so(t){var e=t.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{});return Object.keys(e).map(function(t){return e[t]})}var sl={placement:"bottom",modifiers:[],strategy:"absolute"};function sh(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function sc(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,s=void 0===i?[]:i,n=e.defaultOptions,a=void 0===n?sl:n;return function t(e,i,n){void 0===n&&(n=a);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},sl,a),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},o=[],l=!1,h={state:r,setOptions:function t(n){var o="function"==typeof n?n(r.options):n;d(),r.options=Object.assign({},a,r.options,o),r.scrollParents={reference:eV(e)?iz(e):e.contextElement?iz(e.contextElement):[],popper:iz(i)};var l=sa(so([].concat(s,r.options.modifiers)));return r.orderedModifiers=l.filter(function(t){return t.enabled}),c(),h.update()},forceUpdate:function t(){if(!l){var e=r.elements,i=e.reference,s=e.popper;if(sh(i,s)){r.rects={reference:ss(i,ih(s),"fixed"===r.options.strategy),popper:it(s)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(t){return r.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<r.orderedModifiers.length;n++){if(!0===r.reset){r.reset=!1,n=-1;continue}var a=r.orderedModifiers[n],o=a.fn,c=a.options,d=void 0===c?{}:c,u=a.name;"function"==typeof o&&(r=o({state:r,options:d,name:u,instance:h})||r)}}}},update:sr(function(){return new Promise(function(t){h.forceUpdate(),t(r)})}),destroy:function t(){d(),l=!0}};if(!sh(e,i))return h;function c(){r.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,s=void 0===i?{}:i,n=t.effect;if("function"==typeof n){var a=n({state:r,name:e,instance:h,options:s}),l=function t(){};o.push(a||l)}})}function d(){o.forEach(function(t){return t()}),o=[]}return h.setOptions(n).then(function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)}),h}}var sd=sc(),su=[iP,iX,iC,e4],sf=sc({defaultModifiers:su}),sp=[iP,iX,iC,e4,iK,iV,iJ,ib,i5],sm=sc({defaultModifiers:sp});let sg=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:sc,detectOverflow:ij,createPopperBase:sd,createPopper:sm,createPopperLite:sf,top:eD,bottom:eC,right:ex,left:eS,auto:eP,basePlacements:eT,start:eM,end:eA,clippingParents:eE,viewport:eI,popper:eO,reference:eF,variationPlacements:e0,placements:eY,beforeRead:eL,read:ez,afterRead:eH,beforeMain:eW,main:eN,afterMain:eR,beforeWrite:e9,write:e3,afterWrite:ej,modifierPhases:eB,applyStyles:e4,arrow:ib,computeStyles:iC,eventListeners:iP,flip:iV,hide:i5,offset:iK,popperOffsets:iX,preventOverflow:iJ},Symbol.toStringTag,{value:"Module"})),sv="dropdown",s8="bs.dropdown",s$=`.${s8}`,sb=".data-api",sy="Escape",sw="Tab",s_="ArrowUp",sk="ArrowDown",sD=2,sC=`hide${s$}`,sx=`hidden${s$}`,sS=`show${s$}`,sP=`shown${s$}`,sT=`click${s$}${sb}`,sM=`keydown${s$}${sb}`,sA=`keyup${s$}${sb}`,sE="show",sI="dropup",sO="dropend",sF="dropstart",s0="dropup-center",sY="dropdown-center",sL='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',sz=`${sL}.${sE}`,sH=".dropdown-menu",sW=".navbar",sN=".navbar-nav",sR=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",s9=y()?"top-end":"top-start",s3=y()?"top-start":"top-end",sj=y()?"bottom-end":"bottom-start",sB=y()?"bottom-start":"bottom-end",sq=y()?"left-start":"right-start",s1=y()?"right-start":"left-start",sV="top",s2="bottom",s7={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},sU={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class s5 extends Z{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=tm.next(this._element,sH)[0]||tm.prev(this._element,sH)[0]||tm.findOne(sH,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return s7}static get DefaultType(){return sU}static get NAME(){return sv}toggle(){return this._isShown()?this.hide():this.show()}show(){if(f(this._element)||this._isShown())return;let t={relatedTarget:this._element},e=R.trigger(this._element,sS,t);if(!e.defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(sN))for(let i of[].concat(...document.body.children))R.on(i,"mouseover",m);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(sE),this._element.classList.add(sE),R.trigger(this._element,sP,t)}}hide(){if(f(this._element)||!this._isShown())return;let t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){let e=R.trigger(this._element,sC,t);if(!e.defaultPrevented){if("ontouchstart"in document.documentElement)for(let i of[].concat(...document.body.children))R.off(i,"mouseover",m);this._popper&&this._popper.destroy(),this._menu.classList.remove(sE),this._element.classList.remove(sE),this._element.setAttribute("aria-expanded","false"),K.removeDataAttribute(this._menu,"popper"),R.trigger(this._element,sx,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!c(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw TypeError(`${sv.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===sg)throw TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:c(this._config.reference)?t=d(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);let e=this._getPopperConfig();this._popper=sm(t,this._menu,e)}_isShown(){return this._menu.classList.contains(sE)}_getPlacement(){let t=this._parent;if(t.classList.contains(sO))return sq;if(t.classList.contains(sF))return s1;if(t.classList.contains(s0))return sV;if(t.classList.contains(sY))return s2;let e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains(sI)?e?s3:s9:e?sB:sj}_detectNavbar(){return null!==this._element.closest(sW)}_getOffset(){let{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(K.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){let i=tm.find(sR,this._menu).filter(t=>u(t));i.length&&D(i,e,t===sk,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){let e=s5.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===sD||"keyup"===t.type&&t.key!==sw)return;let e=tm.find(sz);for(let i of e){let s=s5.getInstance(i);if(!s||!1===s._config.autoClose)continue;let n=t.composedPath(),a=n.includes(s._menu);if(n.includes(s._element)||"inside"===s._config.autoClose&&!a||"outside"===s._config.autoClose&&a||s._menu.contains(t.target)&&("keyup"===t.type&&t.key===sw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let r={relatedTarget:s._element};"click"===t.type&&(r.clickEvent=t),s._completeHide(r)}}static dataApiKeydownHandler(t){let e=/input|textarea/i.test(t.target.tagName),i=t.key===sy,s=[s_,sk].includes(t.key);if(!s&&!i||e&&!i)return;t.preventDefault();let n=this.matches(sL)?this:tm.prev(this,sL)[0]||tm.next(this,sL)[0]||tm.findOne(sL,t.delegateTarget.parentNode),a=s5.getOrCreateInstance(n);if(s){t.stopPropagation(),a.show(),a._selectMenuItem(t);return}a._isShown()&&(t.stopPropagation(),a.hide(),n.focus())}}R.on(document,sM,sL,s5.dataApiKeydownHandler),R.on(document,sM,sH,s5.dataApiKeydownHandler),R.on(document,sT,s5.clearMenus),R.on(document,sA,s5.clearMenus),R.on(document,sT,sL,function(t){t.preventDefault(),s5.getOrCreateInstance(this).toggle()}),w(s5);let s4=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",s6=".sticky-top",sK="padding-right",sG="margin-right";class sX{constructor(){this._element=document.body}getWidth(){let t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,sK,e=>e+t),this._setElementAttributes(s4,sK,e=>e+t),this._setElementAttributes(s6,sG,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,sK),this._resetElementAttributes(s4,sK),this._resetElementAttributes(s6,sG)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){let s=this.getWidth(),n=t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);let n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`)};this._applyManipulationCallback(t,n)}_saveInitialAttribute(t,e){let i=t.style.getPropertyValue(e);i&&K.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){let i=t=>{let i=K.getDataAttribute(t,e);if(null===i){t.style.removeProperty(e);return}K.removeDataAttribute(t,e),t.style.setProperty(e,i)};this._applyManipulationCallback(t,i)}_applyManipulationCallback(t,e){if(c(t)){e(t);return}for(let i of tm.find(t,this._element))e(i)}}let sZ="backdrop",sQ="fade",sJ="show",nt=`mousedown.bs.${sZ}`,ne={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ni={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ns extends G{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return ne}static get DefaultType(){return ni}static get NAME(){return sZ}show(t){if(!this._config.isVisible){_(t);return}this._append();let e=this._getElement();this._config.isAnimated&&g(e),e.classList.add(sJ),this._emulateAnimation(()=>{_(t)})}hide(t){if(!this._config.isVisible){_(t);return}this._getElement().classList.remove(sJ),this._emulateAnimation(()=>{this.dispose(),_(t)})}dispose(){this._isAppended&&(R.off(this._element,nt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(sQ),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=d(t.rootElement),t}_append(){if(this._isAppended)return;let t=this._getElement();this._config.rootElement.append(t),R.on(t,nt,()=>{_(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){k(t,this._getElement(),this._config.isAnimated)}}let nn="focustrap",na="bs.focustrap",nr=`.${na}`,no=`focusin${nr}`,nl=`keydown.tab${nr}`,nh="Tab",nc="forward",nd="backward",nu={autofocus:!0,trapElement:null},nf={autofocus:"boolean",trapElement:"element"};class np extends G{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return nu}static get DefaultType(){return nf}static get NAME(){return nn}activate(){!this._isActive&&(this._config.autofocus&&this._config.trapElement.focus(),R.off(document,nr),R.on(document,no,t=>this._handleFocusin(t)),R.on(document,nl,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,R.off(document,nr))}_handleFocusin(t){let{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;let i=tm.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===nd?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){t.key===nh&&(this._lastTabNavDirection=t.shiftKey?nd:nc)}}let nm="modal",ng="bs.modal",nv=`.${ng}`,n8=".data-api",n$="Escape",nb=`hide${nv}`,ny=`hidePrevented${nv}`,nw=`hidden${nv}`,n_=`show${nv}`,nk=`shown${nv}`,nD=`resize${nv}`,nC=`click.dismiss${nv}`,nx=`mousedown.dismiss${nv}`,nS=`keydown.dismiss${nv}`,nP=`click${nv}${n8}`,nT="modal-open",nM="fade",nA="show",nE="modal-static",nI=".modal.show",nO=".modal-dialog",nF=".modal-body",n0='[data-bs-toggle="modal"]',nY={backdrop:!0,focus:!0,keyboard:!0},nL={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class nz extends Z{constructor(t,e){super(t,e),this._dialog=tm.findOne(nO,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new sX,this._addEventListeners()}static get Default(){return nY}static get DefaultType(){return nL}static get NAME(){return nm}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;let e=R.trigger(this._element,n_,{relatedTarget:t});!e.defaultPrevented&&(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(nT),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;let t=R.trigger(this._element,nb);!t.defaultPrevented&&(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(nA),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(let t of[window,this._dialog])R.off(t,nv);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ns({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new np({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let e=tm.findOne(nF,this._dialog);e&&(e.scrollTop=0),g(this._element),this._element.classList.add(nA);let i=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,R.trigger(this._element,nk,{relatedTarget:t})};this._queueCallback(i,this._dialog,this._isAnimated())}_addEventListeners(){R.on(this._element,nS,t=>{if(t.key===n$){if(this._config.keyboard){t.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),R.on(window,nD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),R.on(this._element,nx,t=>{R.one(this._element,nC,e=>{if(this._element===t.target&&this._element===e.target){if("static"===this._config.backdrop){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(nT),this._resetAdjustments(),this._scrollBar.reset(),R.trigger(this._element,nw)})}_isAnimated(){return this._element.classList.contains(nM)}_triggerBackdropTransition(){let t=R.trigger(this._element,ny);if(t.defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;!("hidden"===i||this._element.classList.contains(nE))&&(e||(this._element.style.overflowY="hidden"),this._element.classList.add(nE),this._queueCallback(()=>{this._element.classList.remove(nE),this._queueCallback(()=>{this._element.style.overflowY=i},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){let s=y()?"paddingLeft":"paddingRight";this._element.style[s]=`${e}px`}if(!i&&t){let n=y()?"paddingRight":"paddingLeft";this._element.style[n]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){let i=nz.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw TypeError(`No method named "${t}"`);i[t](e)}})}}R.on(document,nP,n0,function(t){let e=o(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),R.one(e,n_,t=>{!t.defaultPrevented&&R.one(e,nw,()=>{u(this)&&this.focus()})});let i=tm.findOne(nI);i&&nz.getInstance(i).hide();let s=nz.getOrCreateInstance(e);s.toggle(this)}),Q(nz),w(nz);let nH="offcanvas",nW="bs.offcanvas",nN=`.${nW}`,nR=".data-api",n9=`load${nN}${nR}`,n3="Escape",nj="show",nB="showing",nq="hiding",n1="offcanvas-backdrop",nV=".offcanvas.show",n2=`show${nN}`,n7=`shown${nN}`,nU=`hide${nN}`,n5=`hidePrevented${nN}`,n4=`hidden${nN}`,n6=`resize${nN}`,nK=`click${nN}${nR}`,nG=`keydown.dismiss${nN}`,nX='[data-bs-toggle="offcanvas"]',nZ={backdrop:!0,keyboard:!0,scroll:!1},nQ={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class nJ extends Z{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return nZ}static get DefaultType(){return nQ}static get NAME(){return nH}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;let e=R.trigger(this._element,n2,{relatedTarget:t});if(e.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new sX().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(nB);let i=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(nj),this._element.classList.remove(nB),R.trigger(this._element,n7,{relatedTarget:t})};this._queueCallback(i,this._element,!0)}hide(){if(!this._isShown)return;let t=R.trigger(this._element,nU);if(t.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(nq),this._backdrop.hide();let e=()=>{this._element.classList.remove(nj,nq),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new sX().reset(),R.trigger(this._element,n4)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let t=()=>{if("static"===this._config.backdrop){R.trigger(this._element,n5);return}this.hide()},e=Boolean(this._config.backdrop);return new ns({className:n1,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new np({trapElement:this._element})}_addEventListeners(){R.on(this._element,nG,t=>{if(t.key===n3){if(!this._config.keyboard){R.trigger(this._element,n5);return}this.hide()}})}static jQueryInterface(t){return this.each(function(){let e=nJ.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t](this)}})}}R.on(document,nK,nX,function(t){let e=o(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),f(this))return;R.one(e,n4,()=>{u(this)&&this.focus()});let i=tm.findOne(nV);i&&i!==e&&nJ.getInstance(i).hide();let s=nJ.getOrCreateInstance(e);s.toggle(this)}),R.on(window,n9,()=>{for(let t of tm.find(nV))nJ.getOrCreateInstance(t).show()}),R.on(window,n6,()=>{for(let t of tm.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&nJ.getOrCreateInstance(t).hide()}),Q(nJ),w(nJ);let at=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ae=/^aria-[\w-]*$/i,ai=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,as=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,an=(t,e)=>{let i=t.nodeName.toLowerCase();return e.includes(i)?!at.has(i)||Boolean(ai.test(t.nodeValue)||as.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))},aa={"*":["class","dir","id","lang","role",ae],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function ar(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);let s=new window.DOMParser,n=s.parseFromString(t,"text/html"),a=[].concat(...n.body.querySelectorAll("*"));for(let r of a){let o=r.nodeName.toLowerCase();if(!Object.keys(e).includes(o)){r.remove();continue}let l=[].concat(...r.attributes),h=[].concat(e["*"]||[],e[o]||[]);for(let c of l)an(c,h)||r.removeAttribute(c.nodeName)}return n.body.innerHTML}let ao="TemplateFactory",al={allowList:aa,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ah={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ac={entry:"(string|element|function|null)",selector:"(string|element)"};class ad extends G{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return al}static get DefaultType(){return ah}static get NAME(){return ao}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){let t=document.createElement("div");for(let[e,i]of(t.innerHTML=this._maybeSanitize(this._config.template),Object.entries(this._config.content)))this._setContent(t,i,e);let s=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&s.classList.add(...n.split(" ")),s}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(let[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},ac)}_setContent(t,e,i){let s=tm.findOne(i,t);if(s){if(!(e=this._resolvePossibleFunction(e))){s.remove();return}if(c(e)){this._putElementInTemplate(d(e),s);return}if(this._config.html){s.innerHTML=this._maybeSanitize(e);return}s.textContent=e}}_maybeSanitize(t){return this._config.sanitize?ar(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}let au="tooltip",af=new Set(["sanitize","allowList","sanitizeFn"]),ap="fade",am="modal",ag="show",av=".tooltip-inner",a8=`.${am}`,a$="hide.bs.modal",ab="hover",ay="focus",aw="click",a_="manual",ak="hide",aD="hidden",aC="show",ax="shown",aS="inserted",aP="click",aT="focusin",aM="focusout",aA="mouseenter",aE="mouseleave",aI={AUTO:"auto",TOP:"top",RIGHT:y()?"left":"right",BOTTOM:"bottom",LEFT:y()?"right":"left"},aO={allowList:aa,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},aF={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class a0 extends Z{constructor(t,e){if(void 0===sg)throw TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return aO}static get DefaultType(){return aF}static get NAME(){return au}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),R.off(this._element.closest(a8),a$,this._hideModalHandler),this.tip&&this.tip.remove(),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let t=R.trigger(this._element,this.constructor.eventName(aC)),e=p(this._element),i=(e||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this.tip&&(this.tip.remove(),this.tip=null);let s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));let{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(s),R.trigger(this._element,this.constructor.eventName(aS))),this._popper?this._popper.update():this._popper=this._createPopper(s),s.classList.add(ag),"ontouchstart"in document.documentElement)for(let a of[].concat(...document.body.children))R.on(a,"mouseover",m);let r=()=>{R.trigger(this._element,this.constructor.eventName(ax)),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(r,this.tip,this._isAnimated())}hide(){if(!this._isShown())return;let t=R.trigger(this._element,this.constructor.eventName(ak));if(t.defaultPrevented)return;let e=this._getTipElement();if(e.classList.remove(ag),"ontouchstart"in document.documentElement)for(let i of[].concat(...document.body.children))R.off(i,"mouseover",m);this._activeTrigger[aw]=!1,this._activeTrigger[ay]=!1,this._activeTrigger[ab]=!1,this._isHovered=null;let s=()=>{!this._isWithActiveTrigger()&&(this._isHovered||e.remove(),this._element.removeAttribute("aria-describedby"),R.trigger(this._element,this.constructor.eventName(aD)),this._disposePopper())};this._queueCallback(s,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){let e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ap,ag),e.classList.add(`bs-${this.constructor.NAME}-auto`);let i=n(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(ap),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ad({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[av]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ap)}_isShown(){return this.tip&&this.tip.classList.contains(ag)}_createPopper(t){let e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=aI[e.toUpperCase()];return sm(this._element,t,this._getPopperConfig(i))}_getOffset(){let{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){let e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){let t=this._config.trigger.split(" ");for(let e of t)if("click"===e)R.on(this._element,this.constructor.eventName(aP),this._config.selector,t=>{let e=this._initializeOnDelegatedTarget(t);e.toggle()});else if(e!==a_){let i=e===ab?this.constructor.eventName(aA):this.constructor.eventName(aT),s=e===ab?this.constructor.eventName(aE):this.constructor.eventName(aM);R.on(this._element,i,this._config.selector,t=>{let e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?ay:ab]=!0,e._enter()}),R.on(this._element,s,this._config.selector,t=>{let e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?ay:ab]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},R.on(this._element.closest(a8),a$,this._hideModalHandler)}_fixTitle(){let t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){!this._isWithActiveTrigger()&&(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){let e=K.getDataAttributes(this._element);for(let i of Object.keys(e))af.has(i)&&delete e[i];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:d(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){let t={};for(let e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){let e=a0.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw TypeError(`No method named "${t}"`);e[t]()}})}}w(a0);let aY="popover",aL=".popover-header",az=".popover-body",aH={...a0.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},aW={...a0.DefaultType,content:"(null|string|element|function)"};class aN extends a0{static get Default(){return aH}static get DefaultType(){return aW}static get NAME(){return aY}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[aL]:this._getTitle(),[az]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let e=aN.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw TypeError(`No method named "${t}"`);e[t]()}})}}w(aN);let aR="scrollspy",a9="bs.scrollspy",a3=`.${a9}`,aj=".data-api",aB=`activate${a3}`,aq=`click${a3}`,a1=`load${a3}${aj}`,aV="dropdown-item",a2="active",a7='[data-bs-spy="scroll"]',aU="[href]",a5=".nav, .list-group",a4=".nav-link",a6=".nav-item",aK=".list-group-item",aG=`${a4}, ${a6} > ${a4}, ${aK}`,aX=".dropdown",aZ=".dropdown-toggle",aQ={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},aJ={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class rt extends Z{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return aQ}static get DefaultType(){return aJ}static get NAME(){return aR}refresh(){for(let t of(this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver(),this._observableSections.values()))this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=d(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(R.off(this._config.target,aq),R.on(this._config.target,aq,aU,t=>{let e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();let i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo){i.scrollTo({top:s,behavior:"smooth"});return}i.scrollTop=s}}))}_getNewObserver(){let t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){let e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;for(let a of(this._previousScrollData.parentScrollTop=s,t)){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(a));continue}let r=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&r){if(i(a),!s)return;continue}n||r||i(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let t=tm.find(aU,this._config.target);for(let e of t){if(!e.hash||f(e))continue;let i=tm.findOne(e.hash,this._element);u(i)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,i))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(a2),this._activateParents(t),R.trigger(this._element,aB,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(aV)){tm.findOne(aZ,t.closest(aX)).classList.add(a2);return}for(let e of tm.parents(t,a5))for(let i of tm.prev(e,aG))i.classList.add(a2)}_clearActiveClass(t){t.classList.remove(a2);let e=tm.find(`${aU}.${a2}`,t);for(let i of e)i.classList.remove(a2)}static jQueryInterface(t){return this.each(function(){let e=rt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t]()}})}}R.on(window,a1,()=>{for(let t of tm.find(a7))rt.getOrCreateInstance(t)}),w(rt);let re="tab",ri="bs.tab",rs=`.${ri}`,rn=`hide${rs}`,ra=`hidden${rs}`,rr=`show${rs}`,ro=`shown${rs}`,rl=`click${rs}`,rh=`keydown${rs}`,rc=`load${rs}`,rd="ArrowLeft",ru="ArrowRight",rf="ArrowUp",rp="ArrowDown",rm="active",rg="fade",rv="show",r8="dropdown",r$=".dropdown-toggle",rb=".dropdown-menu",ry=":not(.dropdown-toggle)",rw='.list-group, .nav, [role="tablist"]',r_=".nav-item, .list-group-item",rk=`.nav-link${ry}, .list-group-item${ry}, [role="tab"]${ry}`,rD='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',rC=`${rk}, ${rD}`,rx=`.${rm}[data-bs-toggle="tab"], .${rm}[data-bs-toggle="pill"], .${rm}[data-bs-toggle="list"]`;class rS extends Z{constructor(t){if(super(t),this._parent=this._element.closest(rw),!this._parent)return;this._setInitialAttributes(this._parent,this._getChildren()),R.on(this._element,rh,t=>this._keydown(t))}static get NAME(){return re}show(){let t=this._element;if(this._elemIsActive(t))return;let e=this._getActiveElem(),i=e?R.trigger(e,rn,{relatedTarget:t}):null,s=R.trigger(t,rr,{relatedTarget:e});!s.defaultPrevented&&(!i||!i.defaultPrevented)&&(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(rm),this._activate(o(t));let i=()=>{if("tab"!==t.getAttribute("role")){t.classList.add(rv);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),R.trigger(t,ro,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(rg))}_deactivate(t,e){if(!t)return;t.classList.remove(rm),t.blur(),this._deactivate(o(t));let i=()=>{if("tab"!==t.getAttribute("role")){t.classList.remove(rv);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),R.trigger(t,ra,{relatedTarget:e})};this._queueCallback(i,t,t.classList.contains(rg))}_keydown(t){if(![rd,ru,rf,rp].includes(t.key))return;t.stopPropagation(),t.preventDefault();let e=[ru,rp].includes(t.key),i=D(this._getChildren().filter(t=>!f(t)),t.target,e,!0);i&&(i.focus({preventScroll:!0}),rS.getOrCreateInstance(i).show())}_getChildren(){return tm.find(rC,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){for(let i of(this._setAttributeIfNotExists(t,"role","tablist"),e))this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);let e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){let e=o(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){let i=this._getOuterElement(t);if(!i.classList.contains(r8))return;let s=(t,s)=>{let n=tm.findOne(t,i);n&&n.classList.toggle(s,e)};s(r$,rm),s(rb,rv),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(rm)}_getInnerElement(t){return t.matches(rC)?t:tm.findOne(rC,t)}_getOuterElement(t){return t.closest(r_)||t}static jQueryInterface(t){return this.each(function(){let e=rS.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);e[t]()}})}}R.on(document,rl,rD,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!f(this)&&rS.getOrCreateInstance(this).show()}),R.on(window,rc,()=>{for(let t of tm.find(rx))rS.getOrCreateInstance(t)}),w(rS);let rP="toast",rT="bs.toast",rM=`.${rT}`,rA=`mouseover${rM}`,rE=`mouseout${rM}`,rI=`focusin${rM}`,rO=`focusout${rM}`,rF=`hide${rM}`,r0=`hidden${rM}`,rY=`show${rM}`,rL=`shown${rM}`,rz="fade",rH="hide",rW="show",rN="showing",rR={animation:"boolean",autohide:"boolean",delay:"number"},r9={animation:!0,autohide:!0,delay:5e3};class r3 extends Z{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return r9}static get DefaultType(){return rR}static get NAME(){return rP}show(){let t=R.trigger(this._element,rY);if(t.defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(rz);let e=()=>{this._element.classList.remove(rN),R.trigger(this._element,rL),this._maybeScheduleHide()};this._element.classList.remove(rH),g(this._element),this._element.classList.add(rW,rN),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown())return;let t=R.trigger(this._element,rF);if(t.defaultPrevented)return;let e=()=>{this._element.classList.add(rH),this._element.classList.remove(rN,rW),R.trigger(this._element,r0)};this._element.classList.add(rN),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rW),super.dispose()}isShown(){return this._element.classList.contains(rW)}_maybeScheduleHide(){this._config.autohide&&!this._hasMouseInteraction&&!this._hasKeyboardInteraction&&(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e){this._clearTimeout();return}let i=t.relatedTarget;!(this._element===i||this._element.contains(i))&&this._maybeScheduleHide()}_setListeners(){R.on(this._element,rA,t=>this._onInteraction(t,!0)),R.on(this._element,rE,t=>this._onInteraction(t,!1)),R.on(this._element,rI,t=>this._onInteraction(t,!0)),R.on(this._element,rO,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=r3.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw TypeError(`No method named "${t}"`);e[t](this)}})}}Q(r3),w(r3);let rj={Alert:tr,Button:tp,Carousel:ei,Collapse:ek,Dropdown:s5,Modal:nz,Offcanvas:nJ,Popover:aN,ScrollSpy:rt,Tab:rS,Toast:r3,Tooltip:a0};return rj}),/*! jQuery UI - v1.8.22 - 2012-07-24
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.effects.core.js, jquery.effects.blind.js, jquery.effects.bounce.js, jquery.effects.clip.js, jquery.effects.drop.js, jquery.effects.explode.js, jquery.effects.fade.js, jquery.effects.fold.js, jquery.effects.highlight.js, jquery.effects.pulsate.js, jquery.effects.scale.js, jquery.effects.shake.js, jquery.effects.slide.js, jquery.effects.transfer.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.tabs.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ function(t,e){function i(e,i){var n=e.nodeName.toLowerCase();if("area"===n){var a,r=e.parentNode,o=r.name;return!!e.href&&!!o&&"map"===r.nodeName.toLowerCase()&&!!(a=t("img[usemap=#"+o+"]")[0])&&s(a)}return(/input|select|textarea|button|object/.test(n)?!e.disabled:"a"==n&&e.href||i)&&s(e)}function s(e){return!t(e).parents().andSelf().filter(function(){return"hidden"===t.curCSS(this,"visibility")||t.expr.filters.hidden(this)}).length}t.ui=t.ui||{},t.ui.version||(t.extend(t.ui,{version:"1.8.22",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),t.fn.extend({propAttr:t.fn.prop||t.fn.attr,_focus:t.fn.focus,focus:function(e,i){return"number"==typeof e?this.each(function(){var s=this;setTimeout(function(){t(s).focus(),i&&i.call(s)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.curCSS(this,"position",1))&&/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.curCSS(this,"overflow",1)+t.curCSS(this,"overflow-y",1)+t.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var s,n,a=t(this[0]);a.length&&a[0]!==document;){if(("absolute"===(s=a.css("position"))||"relative"===s||"fixed"===s)&&(n=parseInt(a.css("zIndex"),10),!isNaN(n)&&0!==n))return n;a=a.parent()}return 0},disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(i,s){function n(e,i,s,n){return t.each(a,function(){i-=parseFloat(t.curCSS(e,"padding"+this,!0))||0,s&&(i-=parseFloat(t.curCSS(e,"border"+this+"Width",!0))||0),n&&(i-=parseFloat(t.curCSS(e,"margin"+this,!0))||0)}),i}var a="Width"===s?["Left","Right"]:["Top","Bottom"],r=s.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+s]=function(i){return i===e?o["inner"+s].call(this):this.each(function(){t(this).css(r,n(this,i)+"px")})},t.fn["outer"+s]=function(e,i){return"number"!=typeof e?o["outer"+s].call(this,e):this.each(function(){t(this).css(r,n(this,e,!0,i)+"px")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var s=t.attr(e,"tabindex"),n=isNaN(s);return(n||s>=0)&&i(e,!n)}}),t(function(){var e=document.body,i=e.appendChild(i=document.createElement("div"));i.offsetHeight,t.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===i.offsetHeight,t.support.selectstart="onselectstart"in i,e.removeChild(i).style.display="none"}),t.curCSS||(t.curCSS=t.css),t.extend(t.ui,{plugin:{add:function(e,i,s){var n=t.ui[e].prototype;for(var a in s)n.plugins[a]=n.plugins[a]||[],n.plugins[a].push([i,s[a]])},call:function(t,e,i){var s=t.plugins[e];if(s&&t.element[0].parentNode)for(var n=0;n<s.length;n++)t.options[s[n][0]]&&s[n][1].apply(t.element,i)}},contains:function(t,e){return document.compareDocumentPosition?16&t.compareDocumentPosition(e):t!==e&&t.contains(e)},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0||(e[s]=1,n=e[s]>0,e[s]=0,n)},isOverAxis:function(t,e,i){return t>e&&t<e+i},isOver:function(e,i,s,n,a,r){return t.ui.isOverAxis(e,s,a)&&t.ui.isOverAxis(i,n,r)}}))}(jQuery),function(t,e){if(t.cleanData){var i=t.cleanData;t.cleanData=function(e){for(var s,n=0;null!=(s=e[n]);n++)try{t(s).triggerHandler("remove")}catch(a){}i(e)}}else{var s=t.fn.remove;t.fn.remove=function(e,i){return this.each(function(){return i||(!e||t.filter(e,[this]).length)&&t("*",this).add([this]).each(function(){try{t(this).triggerHandler("remove")}catch(e){}}),s.call(t(this),e,i)})}}t.widget=function(e,i,s){var n,a=e.split(".")[0];n=a+"-"+(e=e.split(".")[1]),s||(s=i,i=t.Widget),t.expr[":"][n]=function(i){return!!t.data(i,e)},t[a]=t[a]||{},t[a][e]=function(t,e){arguments.length&&this._createWidget(t,e)};var r=new i;r.options=t.extend(!0,{},r.options),t[a][e].prototype=t.extend(!0,r,{namespace:a,widgetName:e,widgetEventPrefix:t[a][e].prototype.widgetEventPrefix||e,widgetBaseClass:n},s),t.widget.bridge(e,t[a][e])},t.widget.bridge=function(i,s){t.fn[i]=function(n){var a="string"==typeof n,r=Array.prototype.slice.call(arguments,1),o=this;return n=!a&&r.length?t.extend.apply(null,[!0,n].concat(r)):n,a&&"_"===n.charAt(0)||(a?this.each(function(){var s=t.data(this,i),a=s&&t.isFunction(s[n])?s[n].apply(s,r):s;if(a!==s&&a!==e)return o=a,!1}):this.each(function(){var e=t.data(this,i);e?e.option(n||{})._init():t.data(this,i,new s(n,this))})),o}},t.Widget=function(t,e){arguments.length&&this._createWidget(t,e)},t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(e,i){t.data(i,this.widgetName,this),this.element=t(i),this.options=t.extend(!0,{},this.options,this._getCreateOptions(),e);var s=this;this.element.bind("remove."+this.widgetName,function(){s.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(i,s){var n=i;if(0===arguments.length)return t.extend({},this.options);if("string"==typeof i){if(s===e)return this.options[i];(n={})[i]=s}return this._setOptions(n),this},_setOptions:function(e){var i=this;return t.each(e,function(t,e){i._setOption(t,e)}),this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",e),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(e,i,s){var n,a,r=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(t.isFunction(r)&&!1===r.call(this.element[0],i,s)||i.isDefaultPrevented())}}}(jQuery),function(t,e){var i=!1;t(document).mouseup(function(t){i=!1}),t.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var s=this,n=1==e.which,a="string"==typeof this.options.cancel&&!!e.target.nodeName&&t(e.target).closest(this.options.cancel).length;return!(n&&!a&&this._mouseCapture(e))||((this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted))?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return s._mouseMove(t)},this._mouseUpDelegate=function(t){return s._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0))}},_mouseMove:function(e){return!t.browser.msie||document.documentMode>=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target==this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(t){return this.mouseDelayMet},_mouseStart:function(t){},_mouseDrag:function(t){},_mouseStop:function(t){},_mouseCapture:function(t){return!0}})}(jQuery),function(t,e){t.widget("ui.draggable",t.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){"original"!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(e),!!this.handle&&(i.iframeFix&&t(!0===i.iframeFix?"iframe":i.iframeFix).each(function(){t('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),i.containment&&this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(!1===this._trigger("drag",e,s))return this._mouseUp({}),!1;this.position=s.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=!1;t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1);for(var s=this.element[0],n=!1;s&&(s=s.parentNode);)s==document&&(n=!0);if(!n&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!i||"valid"==this.options.revert&&i||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)){var a=this;t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==a._trigger("stop",e)&&a._clear()})}else!1!==this._trigger("stop",e)&&this._clear();return!1},_mouseUp:function(e){return!0===this.options.iframeFix&&t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){var i=!this.options.handle||!t(this.options.handle,this.element).length;return t(this.options.handle,this.element).find("*").andSelf().each(function(){this==e.target&&(i=!0)}),i},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"==i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"==i.appendTo?this.element[0].parentNode:i.appendTo),s[0]==this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=["document"==e.containment?0:t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==e.containment?0:t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==e.containment?0:t(window).scrollLeft())+t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==e.containment?0:t(window).scrollTop())+(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(e.containment)||e.containment.constructor==Array)e.containment.constructor==Array&&(this.containment=e.containment);else{var i=t(e.containment),s=i[0];if(!s)return;i.offset();var n="hidden"!=t(s).css("overflow");this.containment=[(parseInt(t(s).css("borderLeftWidth"),10)||0)+(parseInt(t(s).css("paddingLeft"),10)||0),(parseInt(t(s).css("borderTopWidth"),10)||0)+(parseInt(t(s).css("paddingTop"),10)||0),(n?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(t(s).css("borderLeftWidth"),10)||0)-(parseInt(t(s).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(n?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(t(s).css("borderTopWidth"),10)||0)-(parseInt(t(s).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i}},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"==e?1:-1,n=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),a=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop())*s),left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())*s)}},_generatePosition:function(e){var i,s=this.options,n="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(n[0].tagName),r=e.pageX,o=e.pageY;if(this.originalPosition){if(this.containment){if(this.relative_container){var l=this.relative_container.offset();i=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else i=this.containment;e.pageX-this.offset.click.left<i[0]&&(r=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(r=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)}if(s.grid){var h=s.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY;o=i&&(h-this.offset.click.top<i[1]||h-this.offset.click.top>i[3])?h-this.offset.click.top<i[1]?h+s.grid[1]:h-s.grid[1]:h;var c=s.grid[0]?this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX;r=i&&(c-this.offset.click.left<i[0]||c-this.offset.click.left>i[2])?c-this.offset.click.left<i[0]?c+s.grid[0]:c-s.grid[0]:c}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&t.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]==this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s]),"drag"==e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(t){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.extend(t.ui.draggable,{version:"1.8.22"}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var s=t(this).data("draggable"),n=s.options,a=t.extend({},i,{item:s.element});s.sortables=[],t(n.connectToSortable).each(function(){var i=t.data(this,"sortable");i&&!i.options.disabled&&(s.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,a))})},stop:function(e,i){var s=t(this).data("draggable"),n=t.extend({},i,{item:s.element});t.each(s.sortables,function(){this.instance.isOver?(this.instance.isOver=0,s.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"==s.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,n))})},drag:function(e,i){var s=t(this).data("draggable"),n=this;t.each(s.sortables,function(a){this.instance.positionAbs=s.positionAbs,this.instance.helperProportions=s.helperProportions,this.instance.offset.click=s.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(n).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=s.offset.click.top,this.instance.offset.click.left=s.offset.click.left,this.instance.offset.parent.left-=s.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=s.offset.parent.top-this.instance.offset.parent.top,s._trigger("toSortable",e),s.dropped=this.instance.element,s.currentItem=s.element,this.instance.fromOutside=s),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),s._trigger("fromSortable",e),s.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i){var s=t("body"),n=t(this).data("draggable").options;s.css("cursor")&&(n._cursor=s.css("cursor")),s.css("cursor",n.cursor)},stop:function(e,i){var s=t(this).data("draggable").options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var s=t(i.helper),n=t(this).data("draggable").options;s.css("opacity")&&(n._opacity=s.css("opacity")),s.css("opacity",n.opacity)},stop:function(e,i){var s=t(this).data("draggable").options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(e,i){var s=t(this).data("draggable");s.scrollParent[0]!=document&&"HTML"!=s.scrollParent[0].tagName&&(s.overflowOffset=s.scrollParent.offset())},drag:function(e,i){var s=t(this).data("draggable"),n=s.options,a=!1;s.scrollParent[0]!=document&&"HTML"!=s.scrollParent[0].tagName?((!n.axis||"x"!=n.axis)&&(s.overflowOffset.top+s.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?s.scrollParent[0].scrollTop=a=s.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-s.overflowOffset.top<n.scrollSensitivity&&(s.scrollParent[0].scrollTop=a=s.scrollParent[0].scrollTop-n.scrollSpeed)),(!n.axis||"y"!=n.axis)&&(s.overflowOffset.left+s.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?s.scrollParent[0].scrollLeft=a=s.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-s.overflowOffset.left<n.scrollSensitivity&&(s.scrollParent[0].scrollLeft=a=s.scrollParent[0].scrollLeft-n.scrollSpeed))):((!n.axis||"x"!=n.axis)&&(e.pageY-t(document).scrollTop()<n.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(a=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),(!n.axis||"y"!=n.axis)&&(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(a=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),!1!==a&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i){var s=t(this).data("draggable"),n=s.options;s.snapElements=[],t(n.snap.constructor!=String?n.snap.items||":data(draggable)":n.snap).each(function(){var e=t(this),i=e.offset();this!=s.element[0]&&s.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i){for(var s=t(this).data("draggable"),n=s.options,a=n.snapTolerance,r=i.offset.left,o=r+s.helperProportions.width,l=i.offset.top,h=l+s.helperProportions.height,c=s.snapElements.length-1;c>=0;c--){var d=s.snapElements[c].left,u=d+s.snapElements[c].width,f=s.snapElements[c].top,p=f+s.snapElements[c].height;if(!(d-a<r&&r<u+a&&f-a<l&&l<p+a||d-a<r&&r<u+a&&f-a<h&&h<p+a||d-a<o&&o<u+a&&f-a<l&&l<p+a||d-a<o&&o<u+a&&f-a<h&&h<p+a)){s.snapElements[c].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[c].item})),s.snapElements[c].snapping=!1;continue}if("inner"!=n.snapMode){var m=Math.abs(f-h)<=a,g=Math.abs(p-l)<=a,v=Math.abs(d-o)<=a,$=Math.abs(u-r)<=a;m&&(i.position.top=s._convertPositionTo("relative",{top:f-s.helperProportions.height,left:0}).top-s.margins.top),g&&(i.position.top=s._convertPositionTo("relative",{top:p,left:0}).top-s.margins.top),v&&(i.position.left=s._convertPositionTo("relative",{top:0,left:d-s.helperProportions.width}).left-s.margins.left),$&&(i.position.left=s._convertPositionTo("relative",{top:0,left:u}).left-s.margins.left)}var b=m||g||v||$;if("outer"!=n.snapMode){var m=Math.abs(f-l)<=a,g=Math.abs(p-h)<=a,v=Math.abs(d-r)<=a,$=Math.abs(u-o)<=a;m&&(i.position.top=s._convertPositionTo("relative",{top:f,left:0}).top-s.margins.top),g&&(i.position.top=s._convertPositionTo("relative",{top:p-s.helperProportions.height,left:0}).top-s.margins.top),v&&(i.position.left=s._convertPositionTo("relative",{top:0,left:d}).left-s.margins.left),$&&(i.position.left=s._convertPositionTo("relative",{top:0,left:u-s.helperProportions.width}).left-s.margins.left)}!s.snapElements[c].snapping&&(m||g||v||$||b)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[c].item})),s.snapElements[c].snapping=m||g||v||$||b}}}),t.ui.plugin.add("draggable","stack",{start:function(e,i){var s=t(this).data("draggable").options,n=t.makeArray(t(s.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});if(n.length){var a=parseInt(n[0].style.zIndex)||0;t(n).each(function(t){this.style.zIndex=a+t}),this[0].style.zIndex=a+n.length}}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var s=t(i.helper),n=t(this).data("draggable").options;s.css("zIndex")&&(n._zIndex=s.css("zIndex")),s.css("zIndex",n.zIndex)},stop:function(e,i){var s=t(this).data("draggable").options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}})}(jQuery),function(t,e){t.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var e=this.options,i=e.accept;this.isover=0,this.isout=1,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var e=t.ui.ddmanager.droppables[this.options.scope],i=0;i<e.length;i++)e[i]==this&&e.splice(i,1);return this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"),this},_setOption:function(e,i){"accept"==e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!=this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current;if(!s||(s.currentItem||s.element)[0]==this.element[0])return!1;var n=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"droppable");if(e.options.greedy&&!e.options.disabled&&e.options.scope==s.options.scope&&e.accept.call(e.element[0],s.currentItem||s.element)&&t.ui.intersect(s,t.extend(e,{offset:e.element.offset()}),e.options.tolerance))return n=!0,!1}),!n&&!!this.accept.call(this.element[0],s.currentItem||s.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(s)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.extend(t.ui.droppable,{version:"1.8.22"}),t.ui.intersect=function(e,i,s){if(!i.offset)return!1;var n=(e.positionAbs||e.position.absolute).left,a=n+e.helperProportions.width,r=(e.positionAbs||e.position.absolute).top,o=r+e.helperProportions.height,l=i.offset.left,h=l+i.proportions.width,c=i.offset.top,d=c+i.proportions.height;switch(s){case"fit":return l<=n&&a<=h&&c<=r&&o<=d;case"intersect":return l<n+e.helperProportions.width/2&&a-e.helperProportions.width/2<h&&c<r+e.helperProportions.height/2&&o-e.helperProportions.height/2<d;case"pointer":var u=(e.positionAbs||e.position.absolute).left+(e.clickOffset||e.offset.click).left,f=(e.positionAbs||e.position.absolute).top+(e.clickOffset||e.offset.click).top;return t.ui.isOver(f,u,c,l,i.proportions.height,i.proportions.width);case"touch":return(r>=c&&r<=d||o>=c&&o<=d||r<c&&o>d)&&(n>=l&&n<=h||a>=l&&a<=h||n<l&&a>h);default:return!1}},t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var s=t.ui.ddmanager.droppables[e.options.scope]||[],n=i?i.type:null,a=(e.currentItem||e.element).find(":data(droppable)").andSelf();g:for(var r=0;r<s.length;r++)if(!s[r].options.disabled&&(!e||s[r].accept.call(s[r].element[0],e.currentItem||e.element))){for(var o=0;o<a.length;o++)if(a[o]==s[r].element[0]){s[r].proportions.height=0;continue g}s[r].visible="none"!=s[r].element.css("display"),s[r].visible&&("mousedown"==n&&s[r]._activate.call(s[r],i),s[r].offset=s[r].element.offset(),s[r].proportions={width:s[r].element[0].offsetWidth,height:s[r].element[0].offsetHeight})}},drop:function(e,i){var s=!1;return t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,i)))}),s},dragStart:function(e,i){e.element.parents(":not(body,html)").bind("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n=t.ui.intersect(e,this,this.options.tolerance),a=n||1!=this.isover?n&&0==this.isover?"isover":null:"isout";if(a){if(this.options.greedy){var r=this.element.parents(":data(droppable):eq(0)");r.length&&((s=t.data(r[0],"droppable")).greedyChild="isover"==a?1:0)}s&&"isover"==a&&(s.isover=0,s.isout=1,s._out.call(s,i)),this[a]=1,this["isout"==a?"isover":"isout"]=0,this["isover"==a?"_over":"_out"].call(this,i),s&&"isout"==a&&(s.isout=0,s.isover=1,s._over.call(s,i))}}})},dragStop:function(e,i){e.element.parents(":not(body,html)").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),function(t,e){t.widget("ui.resizable",t.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var e=this,i=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=i.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor==String){"all"==this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw");var s=this.handles.split(",");this.handles={};for(var n=0;n<s.length;n++){var a=t.trim(s[n]),r=t('<div class="ui-resizable-handle ui-resizable-'+a+'"></div>');r.css({zIndex:i.zIndex}),"se"==a&&r.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[a]=".ui-resizable-"+a,this.element.append(r)}}this._renderAxis=function(e){for(var i in e=e||this.element,this.handles){if(this.handles[i].constructor==String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var s=t(this.handles[i],this.element),n=0;n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth();var a=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");e.css(a,n),this._proportionallyResize()}if(!t(this.handles[i]).length)continue}},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!e.resizing){if(this.className)var t=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=t&&t[1]?t[1]:"se"}}),i.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").hover(function(){i.disabled||(t(this).removeClass("ui-resizable-autohide"),e._handles.show())},function(){!i.disabled&&(e.resizing||(t(this).addClass("ui-resizable-autohide"),e._handles.hide()))})),this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var i=this.element;i.after(this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_mouseCapture:function(e){var i=!1;for(var s in this.handles)t(this.handles[s])[0]==e.target&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(e){var s=this.options,n=this.element.position(),a=this.element;this.resizing=!0,this.documentScroll={top:t(document).scrollTop(),left:t(document).scrollLeft()},(a.is(".ui-draggable")||/absolute/.test(a.css("position")))&&a.css({position:"absolute",top:n.top,left:n.left}),this._renderProxy();var r=i(this.helper.css("left")),o=i(this.helper.css("top"));s.containment&&(r+=t(s.containment).scrollLeft()||0,o+=t(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:r,top:o},this.size=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalPosition={left:r,top:o},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1;var l=t(".ui-resizable-"+this.axis).css("cursor");return t("body").css("cursor","auto"==l?this.axis+"-resize":l),a.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i=this.helper,s=(this.options,this.originalMousePosition),n=this.axis,a=e.pageX-s.left||0,r=e.pageY-s.top||0,o=this._change[n];if(!o)return!1;var l=o.apply(this,[e,a,r]);return t.browser.msie&&t.browser.version,this.sizeDiff,this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(l=this._updateRatio(l,e)),l=this._respectSize(l,e),this._propagate("resize",e),i.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(l),this._trigger("resize",e,this.ui()),!1},_mouseStop:function(e){this.resizing=!1;var i=this.options,s=this;if(this._helper){var n=this._proportionallyResizeElements,a=n.length&&/textarea/i.test(n[0].nodeName),r=a&&t.ui.hasScroll(n[0],"left")?0:s.sizeDiff.height,o=a?0:s.sizeDiff.width,l={width:s.helper.width()-o,height:s.helper.height()-r},h=parseInt(s.element.css("left"),10)+(s.position.left-s.originalPosition.left)||null,c=parseInt(s.element.css("top"),10)+(s.position.top-s.originalPosition.top)||null;i.animate||this.element.css(t.extend(l,{top:c,left:h})),s.helper.height(s.size.height),s.helper.width(s.size.width),this._helper&&!i.animate&&this._proportionallyResize()}return t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,i,n,a,r,o=this.options;r={minWidth:s(o.minWidth)?o.minWidth:0,maxWidth:s(o.maxWidth)?o.maxWidth:1/0,minHeight:s(o.minHeight)?o.minHeight:0,maxHeight:s(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,a=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),n>r.minHeight&&(r.minHeight=n),i<r.maxWidth&&(r.maxWidth=i),a<r.maxHeight&&(r.maxHeight=a)),this._vBoundaries=r},_updateCache:function(t){this.options,this.offset=this.helper.offset(),s(t.left)&&(this.position.left=t.left),s(t.top)&&(this.position.top=t.top),s(t.height)&&(this.size.height=t.height),s(t.width)&&(this.size.width=t.width)},_updateRatio:function(t,e){this.options;var i=this.position,n=this.size,a=this.axis;return s(t.height)?t.width=t.height*this.aspectRatio:s(t.width)&&(t.height=t.width/this.aspectRatio),"sw"==a&&(t.left=i.left+(n.width-t.width),t.top=null),"nw"==a&&(t.top=i.top+(n.height-t.height),t.left=i.left+(n.width-t.width)),t},_respectSize:function(t,e){this.helper;var i=this._vBoundaries,n=(this._aspectRatio||e.shiftKey,this.axis),a=s(t.width)&&i.maxWidth&&i.maxWidth<t.width,r=s(t.height)&&i.maxHeight&&i.maxHeight<t.height,o=s(t.width)&&i.minWidth&&i.minWidth>t.width,l=s(t.height)&&i.minHeight&&i.minHeight>t.height;o&&(t.width=i.minWidth),l&&(t.height=i.minHeight),a&&(t.width=i.maxWidth),r&&(t.height=i.maxHeight);var h=this.originalPosition.left+this.originalSize.width,c=this.position.top+this.size.height,d=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);o&&d&&(t.left=h-i.minWidth),a&&d&&(t.left=h-i.maxWidth),l&&u&&(t.top=c-i.minHeight),r&&u&&(t.top=c-i.maxHeight);var f=!t.width&&!t.height;return f&&!t.left&&t.top?t.top=null:f&&!t.top&&t.left&&(t.left=null),t},_proportionallyResize:function(){if(this.options,this._proportionallyResizeElements.length)for(var e=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){var s=this._proportionallyResizeElements[i];if(!this.borderDif){var n=[s.css("borderTopWidth"),s.css("borderRightWidth"),s.css("borderBottomWidth"),s.css("borderLeftWidth")],a=[s.css("paddingTop"),s.css("paddingRight"),s.css("paddingBottom"),s.css("paddingLeft")];this.borderDif=t.map(n,function(t,e){var i=parseInt(t,10)||0,s=parseInt(a[e],10)||0;return i+s})}!(t.browser.msie&&(t(e).is(":hidden")||t(e).parents(":hidden").length))&&s.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=this.element,i=this.options;if(this.elementOffset=e.offset(),this._helper){this.helper=this.helper||t('<div style="overflow:hidden;"></div>');var s=t.browser.msie&&t.browser.version<7,n=s?1:0,a=s?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-n+"px",top:this.elementOffset.top-n+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(t,e,i){return{width:this.originalSize.width+e}},w:function(t,e,i){this.options;var s=this.originalSize;return{left:this.originalPosition.left+e,width:s.width-e}},n:function(t,e,i){this.options;var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!=e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.extend(t.ui.resizable,{version:"1.8.22"}),t.ui.plugin.add("resizable","alsoResize",{start:function(e,i){var s=t(this).data("resizable").options,n=function(e){t(e).each(function(){var e=t(this);e.data("resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof s.alsoResize||s.alsoResize.parentNode?n(s.alsoResize):s.alsoResize.length?(s.alsoResize=s.alsoResize[0],n(s.alsoResize)):t.each(s.alsoResize,function(t){n(t)})},resize:function(e,i){var s=t(this).data("resizable"),n=s.options,a=s.originalSize,r=s.originalPosition,o={height:s.size.height-a.height||0,width:s.size.width-a.width||0,top:s.position.top-r.top||0,left:s.position.left-r.left||0},l=function(e,s){t(e).each(function(){var e=t(this),n=t(this).data("resizable-alsoresize"),a={},r=s&&s.length?s:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(r,function(t,e){var i=(n[e]||0)+(o[e]||0);i&&i>=0&&(a[e]=i||null)}),e.css(a)})};"object"!=typeof n.alsoResize||n.alsoResize.nodeType?l(n.alsoResize):t.each(n.alsoResize,function(t,e){l(t,e)})},stop:function(e,i){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","animate",{stop:function(e,i){var s=t(this).data("resizable"),n=s.options,a=s._proportionallyResizeElements,r=a.length&&/textarea/i.test(a[0].nodeName),o=r&&t.ui.hasScroll(a[0],"left")?0:s.sizeDiff.height,l=r?0:s.sizeDiff.width,h={width:s.size.width-l,height:s.size.height-o},c=parseInt(s.element.css("left"),10)+(s.position.left-s.originalPosition.left)||null,d=parseInt(s.element.css("top"),10)+(s.position.top-s.originalPosition.top)||null;s.element.animate(t.extend(h,d&&c?{top:d,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var i={width:parseInt(s.element.css("width"),10),height:parseInt(s.element.css("height"),10),top:parseInt(s.element.css("top"),10),left:parseInt(s.element.css("left"),10)};a&&a.length&&t(a[0]).css({width:i.width,height:i.height}),s._updateCache(i),s._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(e,s){var n=t(this).data("resizable"),a=n.options,r=n.element,o=a.containment,l=o instanceof t?o.get(0):/parent/.test(o)?r.parent().get(0):o;if(l){if(n.containerElement=t(l),/document/.test(o)||o==document)n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight};else{var h=t(l),c=[];t(["Top","Right","Left","Bottom"]).each(function(t,e){c[t]=i(h.css("padding"+e))}),n.containerOffset=h.offset(),n.containerPosition=h.position(),n.containerSize={height:h.innerHeight()-c[3],width:h.innerWidth()-c[1]};var d=n.containerOffset,u=n.containerSize.height,f=n.containerSize.width,p=t.ui.hasScroll(l,"left")?l.scrollWidth:f,m=t.ui.hasScroll(l)?l.scrollHeight:u;n.parentData={element:l,left:d.left,top:d.top,width:p,height:m}}}},resize:function(e,i){var s=t(this).data("resizable"),n=s.options,a=(s.containerSize,s.containerOffset),r=(s.size,s.position),o=s._aspectRatio||e.shiftKey,l={top:0,left:0},h=s.containerElement;h[0]!=document&&/static/.test(h.css("position"))&&(l=a),r.left<(s._helper?a.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-a.left:s.position.left-l.left),o&&(s.size.height=s.size.width/s.aspectRatio),s.position.left=n.helper?a.left:0),r.top<(s._helper?a.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-a.top:s.position.top),o&&(s.size.width=s.size.height*s.aspectRatio),s.position.top=s._helper?a.top:0),s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top;var c=Math.abs((s._helper,s.offset.left-l.left+s.sizeDiff.width)),d=Math.abs((s._helper?s.offset.top-l.top:s.offset.top-a.top)+s.sizeDiff.height),u=s.containerElement.get(0)==s.element.parent().get(0),f=/relative|absolute/.test(s.containerElement.css("position"));u&&f&&(c-=s.parentData.left),c+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-c,o&&(s.size.height=s.size.width/s.aspectRatio)),d+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-d,o&&(s.size.width=s.size.height*s.aspectRatio))},stop:function(e,i){var s=t(this).data("resizable"),n=s.options,a=(s.position,s.containerOffset),r=s.containerPosition,o=s.containerElement,l=t(s.helper),h=l.offset(),c=l.outerWidth()-s.sizeDiff.width,d=l.outerHeight()-s.sizeDiff.height;s._helper&&!n.animate&&/relative/.test(o.css("position"))&&t(this).css({left:h.left-r.left-a.left,width:c,height:d}),s._helper&&!n.animate&&/static/.test(o.css("position"))&&t(this).css({left:h.left-r.left-a.left,width:c,height:d})}}),t.ui.plugin.add("resizable","ghost",{start:function(e,i){var s=t(this).data("resizable"),n=s.options,a=s.size;s.ghost=s.originalElement.clone(),s.ghost.css({opacity:.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof n.ghost?n.ghost:""),s.ghost.appendTo(s.helper)},resize:function(e,i){var s=t(this).data("resizable");s.options,s.ghost&&s.ghost.css({position:"relative",height:s.size.height,width:s.size.width})},stop:function(e,i){var s=t(this).data("resizable");s.options,s.ghost&&s.helper&&s.helper.get(0).removeChild(s.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(e,i){var s=t(this).data("resizable"),n=s.options,a=s.size,r=s.originalSize,o=s.originalPosition,l=s.axis;n._aspectRatio||e.shiftKey,n.grid="number"==typeof n.grid?[n.grid,n.grid]:n.grid;var h=Math.round((a.width-r.width)/(n.grid[0]||1))*(n.grid[0]||1),c=Math.round((a.height-r.height)/(n.grid[1]||1))*(n.grid[1]||1);/^(se|s|e)$/.test(l)?(s.size.width=r.width+h,s.size.height=r.height+c):/^(ne)$/.test(l)?(s.size.width=r.width+h,s.size.height=r.height+c,s.position.top=o.top-c):/^(sw)$/.test(l)?(s.size.width=r.width+h,s.size.height=r.height+c,s.position.left=o.left-h):(s.size.width=r.width+h,s.size.height=r.height+c,s.position.top=o.top-c,s.position.left=o.left-h)}});var i=function(t){return parseInt(t,10)||0},s=function(t){return!isNaN(parseInt(t,10))}}(jQuery),function(t,e){t.widget("ui.selectable",t.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(e){var i=this;if(this.opos=[e.pageX,e.pageY],!this.options.disabled){var s=this.options;this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(s.$element.removeClass("ui-selected"),s.selected=!1,s.$element.addClass("ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().andSelf().each(function(){var s=t.data(this,"selectable-item");if(s){var n=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected");return s.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1}})}},_mouseDrag:function(e){var i=this;if(this.dragged=!0,!this.options.disabled){var s=this.options,n=this.opos[0],a=this.opos[1],r=e.pageX,o=e.pageY;if(n>r){var l=r;r=n,n=l}if(a>o){var l=o;o=a,a=l}return this.helper.css({left:n,top:a,width:r-n,height:o-a}),this.selectees.each(function(){var l=t.data(this,"selectable-item");if(l&&l.element!=i.element[0]){var h=!1;"touch"==s.tolerance?h=!(l.left>r||l.right<n||l.top>o||l.bottom<a):"fit"==s.tolerance&&(h=l.left>n&&l.right<r&&l.top>a&&l.bottom<o),h?(l.selected&&(l.$element.removeClass("ui-selected"),l.selected=!1),l.unselecting&&(l.$element.removeClass("ui-unselecting"),l.unselecting=!1),l.selecting||(l.$element.addClass("ui-selecting"),l.selecting=!0,i._trigger("selecting",e,{selecting:l.element}))):(l.selecting&&((e.metaKey||e.ctrlKey)&&l.startselected?(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.$element.addClass("ui-selected"),l.selected=!0):(l.$element.removeClass("ui-selecting"),l.selecting=!1,l.startselected&&(l.$element.addClass("ui-unselecting"),l.unselecting=!0),i._trigger("unselecting",e,{unselecting:l.element}))),!l.selected||e.metaKey||e.ctrlKey||l.startselected||(l.$element.removeClass("ui-selected"),l.selected=!1,l.$element.addClass("ui-unselecting"),l.unselecting=!0,i._trigger("unselecting",e,{unselecting:l.element})))}}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,this.options,t(".ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");s.$element.removeClass("ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");s.$element.removeClass("ui-selecting").addClass("ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.extend(t.ui.selectable,{version:"1.8.22"})}(jQuery),function(t,e){t.widget("ui.sortable",t.ui.mouse,{widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display"))),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},destroy:function(){t.Widget.prototype.destroy.call(this),this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget()[i?"addClass":"removeClass"]("ui-sortable-disabled")):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var s=this;if(this.reverting||this.options.disabled||"static"==this.options.type)return!1;this._refreshItems(e);var n=null,a=this;if(t(e.target).parents().each(function(){if(t.data(this,s.widgetName+"-item")==a)return n=t(this),!1}),t.data(e.target,s.widgetName+"-item")==a&&(n=t(e.target)),!n)return!1;if(this.options.handle&&!i){var r=!1;if(t(this.options.handle,n).find("*").andSelf().each(function(){this==e.target&&(r=!0)}),!r)return!1}return this.currentItem=n,this._removeCurrentsFromItems(),!0},_mouseStart:function(e,i,s){var n=this.options,a=this;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),n.containment&&this._setContainment(),n.cursor&&(t("body").css("cursor")&&(this._storedCursor=t("body").css("cursor")),t("body").css("cursor",n.cursor)),n.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",n.opacity)),n.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",n.zIndex)),this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(var r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,a._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){if(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var i=this.options,s=!1;this.scrollParent[0]!=document&&"HTML"!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+i.scrollSpeed:e.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+i.scrollSpeed:e.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(e.pageY-t(document).scrollTop()<i.scrollSensitivity?s=t(document).scrollTop(t(document).scrollTop()-i.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<i.scrollSensitivity&&(s=t(document).scrollTop(t(document).scrollTop()+i.scrollSpeed)),e.pageX-t(document).scrollLeft()<i.scrollSensitivity?s=t(document).scrollLeft(t(document).scrollLeft()-i.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<i.scrollSensitivity&&(s=t(document).scrollLeft(t(document).scrollLeft()+i.scrollSpeed))),!1!==s&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)}this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px");for(var n=this.items.length-1;n>=0;n--){var a=this.items[n],r=a.item[0],o=this._intersectsWithPointer(a);if(o&&r!=this.currentItem[0]&&this.placeholder[1==o?"next":"prev"]()[0]!=r&&!t.ui.contains(this.placeholder[0],r)&&("semi-dynamic"!=this.options.type||!t.ui.contains(this.element[0],r))){if(this.direction=1==o?"down":"up","pointer"==this.options.tolerance||this._intersectsWithSides(a))this._rearrange(e,a);else break;this._trigger("change",e,this._uiHash());break}}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=s.placeholder.offset();s.reverting=!0,t(this.helper).animate({left:n.left-this.offset.parent.left-s.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:n.top-this.offset.parent.top-s.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){var e=this;if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("deactivate",null,e._uiHash(this)),this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",null,e._uiHash(this)),this.containers[i].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,a=t.left,r=a+t.width,o=t.top,l=o+t.height,h=this.offset.click.top,c=this.offset.click.left,d=s+h>o&&s+h<l&&e+c>a&&e+c<r;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?d:a<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<s+this.helperProportions.height/2&&n-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var i="x"===this.options.axis||t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),n=i&&s,a=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!n&&(this.floating?r&&"right"==r||"down"==a?2:1:a&&("down"==a?2:1))},_intersectsWithSides:function(e){var i=t.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),s=t.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();return this.floating&&a?"right"==a&&s||"left"==a&&!s:n&&("down"==n&&i||"up"==n&&!i)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor==String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i=[],s=[],n=this._connectWith();if(n&&e)for(var a=n.length-1;a>=0;a--)for(var r=t(n[a]),o=r.length-1;o>=0;o--){var l=t.data(r[o],this.widgetName);l&&l!=this&&!l.options.disabled&&s.push([t.isFunction(l.options.items)?l.options.items.call(l.element):t(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}s.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var a=s.length-1;a>=0;a--)s[a][0].each(function(){i.push(this)});return t(i)},_removeCurrentsFromItems:function(){for(var t=this.currentItem.find(":data("+this.widgetName+"-item)"),e=0;e<this.items.length;e++)for(var i=0;i<t.length;i++)t[i]==this.items[e].item[0]&&this.items.splice(e,1)},_refreshItems:function(e){this.items=[],this.containers=[this];var i=this.items,s=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],n=this._connectWith();if(n&&this.ready)for(var a=n.length-1;a>=0;a--)for(var r=t(n[a]),o=r.length-1;o>=0;o--){var l=t.data(r[o],this.widgetName);l&&l!=this&&!l.options.disabled&&(s.push([t.isFunction(l.options.items)?l.options.items.call(l.element[0],e,{item:this.currentItem}):t(l.options.items,l.element),l]),this.containers.push(l))}for(var a=s.length-1;a>=0;a--)for(var h=s[a][1],c=s[a][0],o=0,d=c.length;o<d;o++){var u=t(c[o]);u.data(this.widgetName+"-item",h),i.push({item:u,instance:h,width:0,height:0,left:0,top:0})}},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var i=this.items.length-1;i>=0;i--){var s=this.items[i];if(s.instance==this.currentContainer||!this.currentContainer||s.item[0]==this.currentItem[0]){var n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item;e||(s.width=n.outerWidth(),s.height=n.outerHeight());var a=n.offset();s.left=a.left,s.top=a.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var i=this.containers.length-1;i>=0;i--){var a=this.containers[i].element.offset();this.containers[i].containerCache.left=a.left,this.containers[i].containerCache.top=a.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}return this},_createPlaceholder:function(e){var i=e||this,s=i.options;if(!s.placeholder||s.placeholder.constructor==String){var n=s.placeholder;s.placeholder={element:function(){var e=t(document.createElement(i.currentItem[0].nodeName)).addClass(n||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return n||(e.style.visibility="hidden"),e},update:function(t,e){(!n||s.forcePlaceholderSize)&&(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}}i.placeholder=t(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_contactContainers:function(e){for(var i=null,s=null,n=this.containers.length-1;n>=0;n--)if(!t.ui.contains(this.currentItem[0],this.containers[n].element[0])){if(this._intersectsWith(this.containers[n].containerCache)){if(i&&t.ui.contains(this.containers[n].element[0],i.element[0]))continue;i=this.containers[n],s=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0)}if(i){if(1===this.containers.length)this.containers[s]._trigger("over",e,this._uiHash(this)),this.containers[s].containerCache.over=1;else if(this.currentContainer!=this.containers[s]){for(var a=1e4,r=null,o=this.positionAbs[this.containers[s].floating?"left":"top"],l=this.items.length-1;l>=0;l--)if(t.ui.contains(this.containers[s].element[0],this.items[l].item[0])){var h=this.containers[s].floating?this.items[l].item.offset().left:this.items[l].item.offset().top;Math.abs(h-o)<a&&(a=Math.abs(h-o),r=this.items[l],this.direction=h-o>0?"down":"up")}if(!r&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[s],r?this._rearrange(e,r,null,!0):this._rearrange(e,null,this.containers[s].element,!0),this._trigger("change",e,this._uiHash()),this.containers[s]._trigger("change",e,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[s]._trigger("over",e,this._uiHash(this)),this.containers[s].containerCache.over=1}}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"==i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!=i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(""==s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(""==s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&t.browser.msie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if("parent"==e.containment&&(e.containment=this.helper[0].parentNode),("document"==e.containment||"window"==e.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"==e.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"==e.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(e.containment)){var i=t(e.containment)[0],s=t(e.containment).offset(),n="hidden"!=t(i).css("overflow");this.containment=[s.left+(parseInt(t(i).css("borderLeftWidth"),10)||0)+(parseInt(t(i).css("paddingLeft"),10)||0)-this.margins.left,s.top+(parseInt(t(i).css("borderTopWidth"),10)||0)+(parseInt(t(i).css("paddingTop"),10)||0)-this.margins.top,s.left+(n?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t(i).css("borderLeftWidth"),10)||0)-(parseInt(t(i).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,s.top+(n?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t(i).css("borderTopWidth"),10)||0)-(parseInt(t(i).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"==e?1:-1,n=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),a=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():a?0:n.scrollTop())*s),left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-(t.browser.safari&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():a?0:n.scrollLeft())*s)}},_generatePosition:function(e){var i=this.options,s="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&t.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,n=/(html|body)/i.test(s[0].tagName);"relative"==this.cssPosition&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var a=e.pageX,r=e.pageY;if(this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),i.grid)){var o=this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1];r=this.containment&&(o-this.offset.click.top<this.containment[1]||o-this.offset.click.top>this.containment[3])?o-this.offset.click.top<this.containment[1]?o+i.grid[1]:o-i.grid[1]:o;var l=this.originalPageX+Math.round((a-this.originalPageX)/i.grid[0])*i.grid[0];a=this.containment&&(l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2])?l-this.offset.click.left<this.containment[0]?l+i.grid[0]:l-i.grid[0]:l}return{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(t.browser.safari&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():n?0:s.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(t.browser.safari&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():n?0:s.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"==this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this,a=this.counter;window.setTimeout(function(){a==n.counter&&n.refreshPositions(!s)},0)},_clear:function(e,i){this.reverting=!1;var s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(var n in this._storedCSS)("auto"==this._storedCSS[n]||"static"==this._storedCSS[n])&&(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();if(this.fromOutside&&!i&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!i&&s.push(function(t){this._trigger("update",t,this._uiHash())}),!t.ui.contains(this.element[0],this.currentItem[0])){i||s.push(function(t){this._trigger("remove",t,this._uiHash())});for(var n=this.containers.length-1;n>=0;n--)t.ui.contains(this.containers[n].element[0],this.currentItem[0])&&!i&&(s.push((function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}).call(this,this.containers[n])),s.push((function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}).call(this,this.containers[n])))}for(var n=this.containers.length-1;n>=0;n--)i||s.push((function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}).call(this,this.containers[n])),this.containers[n].containerCache.over&&(s.push((function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}).call(this,this.containers[n])),this.containers[n].containerCache.over=0);if(this._storedCursor&&t("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"==this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!i){this._trigger("beforeStop",e,this._uiHash());for(var n=0;n<s.length;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!1}if(i||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null,!i){for(var n=0;n<s.length;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.extend(t.ui.sortable,{version:"1.8.22"})}(jQuery),jQuery.effects||function(t,e){function i(e){var i;return e&&e.constructor==Array&&3==e.length?e:(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10)]:(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))?[2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3])]:(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16)]:(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))?[parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16)]:(i=/rgba\(0, 0, 0, 0\)/.exec(e))?h.transparent:h[t.trim(e).toLowerCase()]}function s(e,s){var n;do{if(""!=(n=(t.curCSS||t.css)(e,s))&&"transparent"!=n||t.nodeName(e,"body"))break;s="backgroundColor"}while(e=e.parentNode);return i(n)}function n(){var t,e,i=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,s={};if(i&&i.length&&i[0]&&i[i[0]])for(var n=i.length;n--;)"string"==typeof i[t=i[n]]&&(s[e=t.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()})]=i[t]);else for(t in i)"string"==typeof i[t]&&(s[t]=i[t]);return s}function a(e){var i,s;for(i in e)(null==(s=e[i])||t.isFunction(s)||i in d||/scrollbar/.test(i)||!/color/i.test(i)&&isNaN(parseFloat(s)))&&delete e[i];return e}function r(t,e){var i,s={_:0};for(i in e)t[i]!=e[i]&&(s[i]=e[i]);return s}function o(e,i,s,n){return"object"==typeof e&&(n=i,s=null,e=(i=e).effect),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i=i||{},s=s||i.duration,s=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,n=n||i.complete,[e,i,s,n]}function l(e){return!e||"number"==typeof e||!!t.fx.speeds[e]||"string"==typeof e&&!t.effects[e]}t.effects={},t.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(e,n){t.fx.step[n]=function(t){t.colorInit||(t.start=s(t.elem,n),t.end=i(t.end),t.colorInit=!0),t.elem.style[n]="rgb("+Math.max(Math.min(parseInt(t.pos*(t.end[0]-t.start[0])+t.start[0],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[1]-t.start[1])+t.start[1],10),255),0)+","+Math.max(Math.min(parseInt(t.pos*(t.end[2]-t.start[2])+t.start[2],10),255),0)+")"}});var h={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},c=["add","remove","toggle"],d={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.effects.animateClass=function(e,i,s,o){return t.isFunction(s)&&(o=s,s=null),this.queue(function(){var l,h=t(this),d=h.attr("style")||" ",u=a(n.call(this)),f=h.attr("class")||"";t.each(c,function(t,i){e[i]&&h[i+"Class"](e[i])}),l=a(n.call(this)),h.attr("class",f),h.animate(r(u,l),{queue:!1,duration:i,easing:s,complete:function(){t.each(c,function(t,i){e[i]&&h[i+"Class"](e[i])}),"object"==typeof h.attr("style")?(h.attr("style").cssText="",h.attr("style").cssText=d):h.attr("style",d),o&&o.apply(this,arguments),t.dequeue(this)}})})},t.fn.extend({_addClass:t.fn.addClass,addClass:function(e,i,s,n){return i?t.effects.animateClass.apply(this,[{add:e},i,s,n]):this._addClass(e)},_removeClass:t.fn.removeClass,removeClass:function(e,i,s,n){return i?t.effects.animateClass.apply(this,[{remove:e},i,s,n]):this._removeClass(e)},_toggleClass:t.fn.toggleClass,toggleClass:function(i,s,n,a,r){return"boolean"==typeof s||s===e?n?t.effects.animateClass.apply(this,[s?{add:i}:{remove:i},n,a,r]):this._toggleClass(i,s):t.effects.animateClass.apply(this,[{toggle:i},s,n,a])},switchClass:function(e,i,s,n,a){return t.effects.animateClass.apply(this,[{add:i,remove:e},s,n,a])}}),t.extend(t.effects,{version:"1.8.22",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data("ec.storage."+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.css(e[i],t.data("ec.storage."+e[i]))},setMode:function(t,e){return"toggle"==e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},s=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n=document.activeElement;try{n.id}catch(a){n=document.body}return e.wrap(s),(e[0]===n||t.contains(e[0],n))&&t(n).focus(),s=e.parent(),"static"==e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),s.css(i).show()},removeWrapper:function(e){var i,s=document.activeElement;return e.parent().is(".ui-effects-wrapper")?(i=e.parent().replaceWith(e),(e[0]===s||t.contains(e[0],s))&&t(s).focus(),i):e},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var a=e.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),t.fn.extend({effect:function(e,i,s,n){var a=o.apply(this,arguments),r={options:a[1],duration:a[2],callback:a[3]},l=r.options.mode,h=t.effects[e];return t.fx.off||!h?l?this[l](r.duration,r.callback):this.each(function(){r.callback&&r.callback.call(this)}):h.call(this,r)},_show:t.fn.show,show:function(t){if(l(t))return this._show.apply(this,arguments);var e=o.apply(this,arguments);return e[1].mode="show",this.effect.apply(this,e)},_hide:t.fn.hide,hide:function(t){if(l(t))return this._hide.apply(this,arguments);var e=o.apply(this,arguments);return e[1].mode="hide",this.effect.apply(this,e)},__toggle:t.fn.toggle,toggle:function(e){if(l(e)||"boolean"==typeof e||t.isFunction(e))return this.__toggle.apply(this,arguments);var i=o.apply(this,arguments);return i[1].mode="toggle",this.effect.apply(this,i)},cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s}}),t.easing.jswing=t.easing.swing,t.extend(t.easing,{def:"easeOutQuad",swing:function(e,i,s,n,a){return t.easing[t.easing.def](e,i,s,n,a)},easeInQuad:function(t,e,i,s,n){return s*(e/=n)*e+i},easeOutQuad:function(t,e,i,s,n){return-s*(e/=n)*(e-2)+i},easeInOutQuad:function(t,e,i,s,n){return(e/=n/2)<1?s/2*e*e+i:-s/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,s,n){return s*(e/=n)*e*e+i},easeOutCubic:function(t,e,i,s,n){return s*((e=e/n-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,s,n){return(e/=n/2)<1?s/2*e*e*e+i:s/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,s,n){return s*(e/=n)*e*e*e+i},easeOutQuart:function(t,e,i,s,n){return-s*((e=e/n-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,s,n){return(e/=n/2)<1?s/2*e*e*e*e+i:-s/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,s,n){return s*(e/=n)*e*e*e*e+i},easeOutQuint:function(t,e,i,s,n){return s*((e=e/n-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,s,n){return(e/=n/2)<1?s/2*e*e*e*e*e+i:s/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,s,n){return-s*Math.cos(e/n*(Math.PI/2))+s+i},easeOutSine:function(t,e,i,s,n){return s*Math.sin(e/n*(Math.PI/2))+i},easeInOutSine:function(t,e,i,s,n){return-s/2*(Math.cos(Math.PI*e/n)-1)+i},easeInExpo:function(t,e,i,s,n){return 0==e?i:s*Math.pow(2,10*(e/n-1))+i},easeOutExpo:function(t,e,i,s,n){return e==n?i+s:s*(-Math.pow(2,-10*e/n)+1)+i},easeInOutExpo:function(t,e,i,s,n){return 0==e?i:e==n?i+s:(e/=n/2)<1?s/2*Math.pow(2,10*(e-1))+i:s/2*(-Math.pow(2,-10*--e)+2)+i},easeInCirc:function(t,e,i,s,n){return-s*(Math.sqrt(1-(e/=n)*e)-1)+i},easeOutCirc:function(t,e,i,s,n){return s*Math.sqrt(1-(e=e/n-1)*e)+i},easeInOutCirc:function(t,e,i,s,n){return(e/=n/2)<1?-s/2*(Math.sqrt(1-e*e)-1)+i:s/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,s,n){var a=1.70158,r=0,o=s;if(0==e)return i;if(1==(e/=n))return i+s;if(r||(r=.3*n),o<Math.abs(s)){o=s;var a=r/4}else var a=r/(2*Math.PI)*Math.asin(s/o);return-(o*Math.pow(2,10*(e-=1))*Math.sin((e*n-a)*2*Math.PI/r))+i},easeOutElastic:function(t,e,i,s,n){var a=1.70158,r=0,o=s;if(0==e)return i;if(1==(e/=n))return i+s;if(r||(r=.3*n),o<Math.abs(s)){o=s;var a=r/4}else var a=r/(2*Math.PI)*Math.asin(s/o);return o*Math.pow(2,-10*e)*Math.sin((e*n-a)*2*Math.PI/r)+s+i},easeInOutElastic:function(t,e,i,s,n){var a=1.70158,r=0,o=s;if(0==e)return i;if(2==(e/=n/2))return i+s;if(r||(r=.3*n*1.5),o<Math.abs(s)){o=s;var a=r/4}else var a=r/(2*Math.PI)*Math.asin(s/o);return e<1?-.5*o*Math.pow(2,10*(e-=1))*Math.sin((e*n-a)*2*Math.PI/r)+i:o*Math.pow(2,-10*(e-=1))*Math.sin((e*n-a)*2*Math.PI/r)*.5+s+i},easeInBack:function(t,i,s,n,a,r){return r==e&&(r=1.70158),n*(i/=a)*i*((r+1)*i-r)+s},easeOutBack:function(t,i,s,n,a,r){return r==e&&(r=1.70158),n*((i=i/a-1)*i*((r+1)*i+r)+1)+s},easeInOutBack:function(t,i,s,n,a,r){return r==e&&(r=1.70158),(i/=a/2)<1?n/2*i*i*(((r*=1.525)+1)*i-r)+s:n/2*((i-=2)*i*(((r*=1.525)+1)*i+r)+2)+s},easeInBounce:function(e,i,s,n,a){return n-t.easing.easeOutBounce(e,a-i,0,n,a)+s},easeOutBounce:function(t,e,i,s,n){return(e/=n)<1/2.75?7.5625*s*e*e+i:e<2/2.75?s*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?s*(7.5625*(e-=2.25/2.75)*e+.9375)+i:s*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutBounce:function(e,i,s,n,a){return i<a/2?.5*t.easing.easeInBounce(e,2*i,0,n,a)+s:.5*t.easing.easeOutBounce(e,2*i-a,0,n,a)+.5*n+s}})}(jQuery),function(t,e){t.effects.blind=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right"],n=t.effects.setMode(i,e.options.mode||"hide"),a=e.options.direction||"vertical";t.effects.save(i,s),i.show();var r=t.effects.createWrapper(i).css({overflow:"hidden"}),o="vertical"==a?"height":"width",l="vertical"==a?r.height():r.width();"show"==n&&r.css(o,0);var h={};h[o]="show"==n?l:0,r.animate(h,e.duration,e.options.easing,function(){"hide"==n&&i.hide(),t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()})})}}(jQuery),function(t,e){t.effects.bounce=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right"],n=t.effects.setMode(i,e.options.mode||"effect"),a=e.options.direction||"up",r=e.options.distance||20,o=e.options.times||5,l=e.duration||250;/show|hide/.test(n)&&s.push("opacity"),t.effects.save(i,s),i.show(),t.effects.createWrapper(i);var h="up"==a||"down"==a?"top":"left",c="up"==a||"left"==a?"pos":"neg",r=e.options.distance||("top"==h?i.outerHeight(!0)/3:i.outerWidth(!0)/3);if("show"==n&&i.css("opacity",0).css(h,"pos"==c?-r:r),"hide"==n&&(r/=2*o),"hide"!=n&&o--,"show"==n){var d={opacity:1};d[h]=("pos"==c?"+=":"-=")+r,i.animate(d,l/2,e.options.easing),r/=2,o--}for(var u=0;u<o;u++){var f={},p={};f[h]=("pos"==c?"-=":"+=")+r,p[h]=("pos"==c?"+=":"-=")+r,i.animate(f,l/2,e.options.easing).animate(p,l/2,e.options.easing),r="hide"==n?2*r:r/2}if("hide"==n){var d={opacity:0};d[h]=("pos"==c?"-=":"+=")+r,i.animate(d,l/2,e.options.easing,function(){i.hide(),t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments)})}else{var f={},p={};f[h]=("pos"==c?"-=":"+=")+r,p[h]=("pos"==c?"+=":"-=")+r,i.animate(f,l/2,e.options.easing).animate(p,l/2,e.options.easing,function(){t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments)})}i.queue("fx",function(){i.dequeue()}),i.dequeue()})}}(jQuery),function(t,e){t.effects.clip=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right","height","width"],n=t.effects.setMode(i,e.options.mode||"hide"),a=e.options.direction||"vertical";t.effects.save(i,s),i.show();var r=t.effects.createWrapper(i).css({overflow:"hidden"}),o="IMG"==i[0].tagName?r:i,l={size:"vertical"==a?"height":"width",position:"vertical"==a?"top":"left"},h="vertical"==a?o.height():o.width();"show"==n&&(o.css(l.size,0),o.css(l.position,h/2));var c={};c[l.size]="show"==n?h:0,c[l.position]="show"==n?0:h/2,o.animate(c,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==n&&i.hide(),t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()}})})}}(jQuery),function(t,e){t.effects.drop=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right","opacity"],n=t.effects.setMode(i,e.options.mode||"hide"),a=e.options.direction||"left";t.effects.save(i,s),i.show(),t.effects.createWrapper(i);var r="up"==a||"down"==a?"top":"left",o="up"==a||"left"==a?"pos":"neg",l=e.options.distance||("top"==r?i.outerHeight(!0)/2:i.outerWidth(!0)/2);"show"==n&&i.css("opacity",0).css(r,"pos"==o?-l:l);var h={opacity:"show"==n?1:0};h[r]=("show"==n?"pos"==o?"+=":"-=":"pos"==o?"-=":"+=")+l,i.animate(h,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==n&&i.hide(),t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),function(t,e){t.effects.explode=function(e){return this.queue(function(){var i=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3,s=e.options.pieces?Math.round(Math.sqrt(e.options.pieces)):3;e.options.mode="toggle"==e.options.mode?t(this).is(":visible")?"hide":"show":e.options.mode;var n=t(this).show().css("visibility","hidden"),a=n.offset();a.top-=parseInt(n.css("marginTop"),10)||0,a.left-=parseInt(n.css("marginLeft"),10)||0;for(var r=n.outerWidth(!0),o=n.outerHeight(!0),l=0;l<i;l++)for(var h=0;h<s;h++)n.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-h*(r/s),top:-l*(o/i)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:r/s,height:o/i,left:a.left+h*(r/s)+("show"==e.options.mode?(h-Math.floor(s/2))*(r/s):0),top:a.top+l*(o/i)+("show"==e.options.mode?(l-Math.floor(i/2))*(o/i):0),opacity:"show"==e.options.mode?0:1}).animate({left:a.left+h*(r/s)+("show"==e.options.mode?0:(h-Math.floor(s/2))*(r/s)),top:a.top+l*(o/i)+("show"==e.options.mode?0:(l-Math.floor(i/2))*(o/i)),opacity:"show"==e.options.mode?1:0},e.duration||500);setTimeout(function(){"show"==e.options.mode?n.css({visibility:"visible"}):n.css({visibility:"visible"}).hide(),e.callback&&e.callback.apply(n[0]),n.dequeue(),t("div.ui-effects-explode").remove()},e.duration||500)})}}(jQuery),function(t,e){t.effects.fade=function(e){return this.queue(function(){var i=t(this),s=t.effects.setMode(i,e.options.mode||"hide");i.animate({opacity:s},{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),function(t,e){t.effects.fold=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right"],n=t.effects.setMode(i,e.options.mode||"hide"),a=e.options.size||15,r=!!e.options.horizFirst,o=e.duration?e.duration/2:t.fx.speeds._default/2;t.effects.save(i,s),i.show();var l=t.effects.createWrapper(i).css({overflow:"hidden"}),h="show"==n!=r,c=h?["width","height"]:["height","width"],d=h?[l.width(),l.height()]:[l.height(),l.width()],u=/([0-9]+)%/.exec(a);u&&(a=parseInt(u[1],10)/100*d["hide"==n?0:1]),"show"==n&&l.css(r?{height:0,width:a}:{height:a,width:0});var f={},p={};f[c[0]]="show"==n?d[0]:a,p[c[1]]="show"==n?d[1]:0,l.animate(f,o,e.options.easing).animate(p,o,e.options.easing,function(){"hide"==n&&i.hide(),t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()})})}}(jQuery),function(t,e){t.effects.highlight=function(e){return this.queue(function(){var i=t(this),s=["backgroundImage","backgroundColor","opacity"],n=t.effects.setMode(i,e.options.mode||"show"),a={backgroundColor:i.css("backgroundColor")};"hide"==n&&(a.opacity=0),t.effects.save(i,s),i.show().css({backgroundImage:"none",backgroundColor:e.options.color||"#ffff99"}).animate(a,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==n&&i.hide(),t.effects.restore(i,s),"show"!=n||t.support.opacity||this.style.removeAttribute("filter"),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),function(t,e){t.effects.pulsate=function(e){return this.queue(function(){var i=t(this),s=t.effects.setMode(i,e.options.mode||"show"),n=2*(e.options.times||5)-1,a=e.duration?e.duration/2:t.fx.speeds._default/2,r=i.is(":visible"),o=0;r||(i.css("opacity",0).show(),o=1),("hide"==s&&r||"show"==s&&!r)&&n--;for(var l=0;l<n;l++)i.animate({opacity:o},a,e.options.easing),o=(o+1)%2;i.animate({opacity:o},a,e.options.easing,function(){0==o&&i.hide(),e.callback&&e.callback.apply(this,arguments)}),i.queue("fx",function(){i.dequeue()}).dequeue()})}}(jQuery),function(t,e){t.effects.puff=function(e){return this.queue(function(){var i=t(this),s=t.effects.setMode(i,e.options.mode||"hide"),n=parseInt(e.options.percent,10)||150,a=n/100,r={height:i.height(),width:i.width()};t.extend(e.options,{fade:!0,mode:s,percent:"hide"==s?n:100,from:"hide"==s?r:{height:r.height*a,width:r.width*a}}),i.effect("scale",e.options,e.duration,e.callback),i.dequeue()})},t.effects.scale=function(e){return this.queue(function(){var i=t(this),s=t.extend(!0,{},e.options),n=t.effects.setMode(i,e.options.mode||"effect"),a=parseInt(e.options.percent,10)||(0==parseInt(e.options.percent,10)?0:"hide"==n?0:100),r=e.options.direction||"both",o=e.options.origin;"effect"!=n&&(s.origin=o||["middle","center"],s.restore=!0);var l={height:i.height(),width:i.width()};i.from=e.options.from||("show"==n?{height:0,width:0}:l);var h={y:"horizontal"!=r?a/100:1,x:"vertical"!=r?a/100:1};i.to={height:l.height*h.y,width:l.width*h.x},e.options.fade&&("show"==n&&(i.from.opacity=0,i.to.opacity=1),"hide"==n&&(i.from.opacity=1,i.to.opacity=0)),s.from=i.from,s.to=i.to,s.mode=n,i.effect("size",s,e.duration,e.callback),i.dequeue()})},t.effects.size=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],n=["position","top","bottom","left","right","overflow","opacity"],a=["width","height","overflow"],r=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=t.effects.setMode(i,e.options.mode||"effect"),c=e.options.restore||!1,d=e.options.scale||"both",u=e.options.origin,f={height:i.height(),width:i.width()};if(i.from=e.options.from||f,i.to=e.options.to||f,u){var p=t.effects.getBaseline(u,f);i.from.top=(f.height-i.from.height)*p.y,i.from.left=(f.width-i.from.width)*p.x,i.to.top=(f.height-i.to.height)*p.y,i.to.left=(f.width-i.to.width)*p.x}var m={from:{y:i.from.height/f.height,x:i.from.width/f.width},to:{y:i.to.height/f.height,x:i.to.width/f.width}};("box"==d||"both"==d)&&(m.from.y!=m.to.y&&(s=s.concat(o),i.from=t.effects.setTransition(i,o,m.from.y,i.from),i.to=t.effects.setTransition(i,o,m.to.y,i.to)),m.from.x!=m.to.x&&(s=s.concat(l),i.from=t.effects.setTransition(i,l,m.from.x,i.from),i.to=t.effects.setTransition(i,l,m.to.x,i.to))),("content"==d||"both"==d)&&m.from.y!=m.to.y&&(s=s.concat(r),i.from=t.effects.setTransition(i,r,m.from.y,i.from),i.to=t.effects.setTransition(i,r,m.to.y,i.to)),t.effects.save(i,c?s:n),i.show(),t.effects.createWrapper(i),i.css("overflow","hidden").css(i.from),("content"==d||"both"==d)&&(o=o.concat(["marginTop","marginBottom"]).concat(r),l=l.concat(["marginLeft","marginRight"]),a=s.concat(o).concat(l),i.find("*[width]").each(function(){var i=t(this);c&&t.effects.save(i,a);var s={height:i.height(),width:i.width()};i.from={height:s.height*m.from.y,width:s.width*m.from.x},i.to={height:s.height*m.to.y,width:s.width*m.to.x},m.from.y!=m.to.y&&(i.from=t.effects.setTransition(i,o,m.from.y,i.from),i.to=t.effects.setTransition(i,o,m.to.y,i.to)),m.from.x!=m.to.x&&(i.from=t.effects.setTransition(i,l,m.from.x,i.from),i.to=t.effects.setTransition(i,l,m.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.options.easing,function(){c&&t.effects.restore(i,a)})})),i.animate(i.to,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){0===i.to.opacity&&i.css("opacity",i.from.opacity),"hide"==h&&i.hide(),t.effects.restore(i,c?s:n),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),function(t,e){t.effects.shake=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right"],n=(t.effects.setMode(i,e.options.mode||"effect"),e.options.direction||"left"),a=e.options.distance||20,r=e.options.times||3,o=e.duration||e.options.duration||140;t.effects.save(i,s),i.show(),t.effects.createWrapper(i);var l="up"==n||"down"==n?"top":"left",h="up"==n||"left"==n?"pos":"neg",c={},d={},u={};c[l]=("pos"==h?"-=":"+=")+a,d[l]=("pos"==h?"+=":"-=")+2*a,u[l]=("pos"==h?"-=":"+=")+2*a,i.animate(c,o,e.options.easing);for(var f=1;f<r;f++)i.animate(d,o,e.options.easing).animate(u,o,e.options.easing);i.animate(d,o,e.options.easing).animate(c,o/2,e.options.easing,function(){t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments)}),i.queue("fx",function(){i.dequeue()}),i.dequeue()})}}(jQuery),function(t,e){t.effects.slide=function(e){return this.queue(function(){var i=t(this),s=["position","top","bottom","left","right"],n=t.effects.setMode(i,e.options.mode||"show"),a=e.options.direction||"left";t.effects.save(i,s),i.show(),t.effects.createWrapper(i).css({overflow:"hidden"});var r="up"==a||"down"==a?"top":"left",o="up"==a||"left"==a?"pos":"neg",l=e.options.distance||("top"==r?i.outerHeight(!0):i.outerWidth(!0));"show"==n&&i.css(r,"pos"==o?isNaN(l)?"-"+l:-l:l);var h={};h[r]=("show"==n?"pos"==o?"+=":"-=":"pos"==o?"-=":"+=")+l,i.animate(h,{queue:!1,duration:e.duration,easing:e.options.easing,complete:function(){"hide"==n&&i.hide(),t.effects.restore(i,s),t.effects.removeWrapper(i),e.callback&&e.callback.apply(this,arguments),i.dequeue()}})})}}(jQuery),function(t,e){t.effects.transfer=function(e){return this.queue(function(){var i=t(this),s=t(e.options.to),n=s.offset(),a={top:n.top,left:n.left,height:s.innerHeight(),width:s.innerWidth()},r=i.offset(),o=t('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(e.options.className).css({top:r.top,left:r.left,height:i.innerHeight(),width:i.innerWidth(),position:"absolute"}).animate(a,e.duration,e.options.easing,function(){o.remove(),e.callback&&e.callback.apply(i[0],arguments),i.dequeue()})})}}(jQuery),function(t,e){t.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var e=this,i=e.options;if(e.running=0,e.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),e.headers=e.element.find(i.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){i.disabled||t(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){i.disabled||t(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){i.disabled||t(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){i.disabled||t(this).removeClass("ui-state-focus")}),e.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"),i.navigation){var s=e.element.find("a").filter(i.navigationFilter).eq(0);if(s.length){var n=s.closest(".ui-accordion-header");n.length?e.active=n:e.active=s.closest(".ui-accordion-content").prev()}}e.active=e._findActive(e.active||i.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),e.active.next().addClass("ui-accordion-content-active"),e._createIcons(),e.resize(),e.element.attr("role","tablist"),e.headers.attr("role","tab").bind("keydown.accordion",function(t){return e._keydown(t)}).next().attr("role","tabpanel"),e.headers.not(e.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),e.active.length?e.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):e.headers.eq(0).attr("tabIndex",0),t.browser.safari||e.headers.find("a").attr("tabIndex",-1),i.event&&e.headers.bind(i.event.split(" ").join(".accordion ")+".accordion",function(t){e._clickHandler.call(e,t,this),t.preventDefault()})},_createIcons:function(){var e=this.options;e.icons&&(t("<span></span>").addClass("ui-icon "+e.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(e.icons.header).toggleClass(e.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove(),this.element.removeClass("ui-accordion-icons")},destroy:function(){var e=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var i=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(e.autoHeight||e.fillHeight)&&i.css("height",""),t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments),"active"==e&&this.activate(i),"icons"==e&&(this._destroyIcons(),i&&this._createIcons()),"disabled"==e&&this.headers.add(this.headers.next())[i?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(e){if(!this.options.disabled&&!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),a=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:a=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._clickHandler({target:e.target},e.target),e.preventDefault()}return!a||(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),a.focus(),!1)}},resize:function(){var e,i=this.options;if(i.fillSpace){if(t.browser.msie){var s=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height(),t.browser.msie&&this.element.parent().css("overflow",s),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")}else i.autoHeight&&(e=0,this.headers.next().each(function(){e=Math.max(e,t(this).height("").height())}).height(e));return this},activate:function(t){this.options.active=t;var e=this._findActive(t)[0];return this._clickHandler({target:e},e),this},_findActive:function(e){return e?"number"==typeof e?this.headers.filter(":eq("+e+")"):this.headers.not(this.headers.not(e)):!1===e?t([]):this.headers.filter(":eq(0)")},_clickHandler:function(e,i){var s=this.options;if(!s.disabled){if(!e.target){if(!s.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(s.icons.headerSelected).addClass(s.icons.header),this.active.next().addClass("ui-accordion-content-active");var n=this.active.next(),a={options:s,newHeader:t([]),oldHeader:s.active,newContent:t([]),oldContent:n},r=this.active=t([]);this._toggle(r,n,a);return}var o=t(e.currentTarget||i),l=o[0]===this.active[0];if(s.active=(!s.collapsible||!l)&&this.headers.index(o),!this.running&&(s.collapsible||!l)){var h=this.active,r=o.next(),n=this.active.next(),a={options:s,newHeader:l&&s.collapsible?t([]):o,oldHeader:this.active,newContent:l&&s.collapsible?t([]):r,oldContent:n},c=this.headers.index(this.active[0])>this.headers.index(o[0]);this.active=l?t([]):o,this._toggle(r,n,a,l,c),h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(s.icons.headerSelected).addClass(s.icons.header),l||(o.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(s.icons.header).addClass(s.icons.headerSelected),o.next().addClass("ui-accordion-content-active"))}}},_toggle:function(e,i,s,n,a){var r=this,o=r.options;r.toShow=e,r.toHide=i,r.data=s;var l=function(){if(r)return r._completed.apply(r,arguments)};if(r._trigger("changestart",null,r.data),r.running=0===i.size()?e.size():i.size(),o.animated){var h={};h=o.collapsible&&n?{toShow:t([]),toHide:i,complete:l,down:a,autoHeight:o.autoHeight||o.fillSpace}:{toShow:e,toHide:i,complete:l,down:a,autoHeight:o.autoHeight||o.fillSpace},o.proxied||(o.proxied=o.animated),o.proxiedDuration||(o.proxiedDuration=o.duration),o.animated=t.isFunction(o.proxied)?o.proxied(h):o.proxied,o.duration=t.isFunction(o.proxiedDuration)?o.proxiedDuration(h):o.proxiedDuration;var c=t.ui.accordion.animations,d=o.duration,u=o.animated;!u||c[u]||t.easing[u]||(u="slide"),c[u]||(c[u]=function(t){this.slide(t,{easing:u,duration:d||700})}),c[u](h)}else o.collapsible&&n?e.toggle():(i.hide(),e.show()),l(!0);i.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),e.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(t){this.running=t?0:--this.running,this.running||(this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data))}}),t.extend(t.ui.accordion,{version:"1.8.22",animations:{slide:function(e,i){if(!(e=t.extend({easing:"swing",duration:300},e,i)).toHide.size()){e.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},e);return}if(!e.toShow.size()){e.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},e);return}var s,n=e.toShow.css("overflow"),a=0,r={},o={},l=["height","paddingTop","paddingBottom"],h=e.toShow;s=h[0].style.width,h.width(h.parent().width()-parseFloat(h.css("paddingLeft"))-parseFloat(h.css("paddingRight"))-(parseFloat(h.css("borderLeftWidth"))||0)-(parseFloat(h.css("borderRightWidth"))||0)),t.each(l,function(i,s){o[s]="hide";var n=(""+t.css(e.toShow[0],s)).match(/^([\d+-.]+)(.*)$/);r[s]={value:n[1],unit:n[2]||"px"}}),e.toShow.css({height:0,overflow:"hidden"}).show(),e.toHide.filter(":hidden").each(e.complete).end().filter(":visible").animate(o,{step:function(t,i){"height"==i.prop&&(a=i.end-i.start==0?0:(i.now-i.start)/(i.end-i.start)),e.toShow[0].style[i.prop]=a*r[i.prop].value+r[i.prop].unit},duration:e.duration,easing:e.easing,complete:function(){e.autoHeight||e.toShow.css("height",""),e.toShow.css({width:s,overflow:n}),e.complete()}})},bounceslide:function(t){this.slide(t,{easing:t.down?"easeOutBounce":"swing",duration:t.down?1e3:200})}}})}(jQuery),function(t,e){var i=0;t.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e,i=this,s=this.element[0].ownerDocument;this.isMultiLine=this.element.is("textarea"),this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(s){if(!(i.options.disabled||i.element.propAttr("readOnly"))){e=!1;var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:i._move("previousPage",s);break;case n.PAGE_DOWN:i._move("nextPage",s);break;case n.UP:i._keyEvent("previous",s);break;case n.DOWN:i._keyEvent("next",s);break;case n.ENTER:case n.NUMPAD_ENTER:i.menu.active&&(e=!0,s.preventDefault());case n.TAB:if(!i.menu.active)return;i.menu.select(s);break;case n.ESCAPE:i.element.val(i.term),i.close(s);break;default:clearTimeout(i.searching),i.searching=setTimeout(function(){i.term!=i.element.val()&&(i.selectedItem=null,i.search(null,s))},i.options.delay)}}}).bind("keypress.autocomplete",function(t){e&&(e=!1,t.preventDefault())}).bind("focus.autocomplete",function(){i.options.disabled||(i.selectedItem=null,i.previous=i.element.val())}).bind("blur.autocomplete",function(t){i.options.disabled||(clearTimeout(i.searching),i.closing=setTimeout(function(){i.close(t),i._change(t)},150))}),this._initSource(),this.menu=t("<ul></ul>").addClass("ui-autocomplete").appendTo(t(this.options.appendTo||"body",s)[0]).mousedown(function(e){var s=i.menu.element[0];t(e.target).closest(".ui-menu-item").length||setTimeout(function(){t(document).one("mousedown",function(e){e.target===i.element[0]||e.target===s||t.ui.contains(s,e.target)||i.close()})},1),setTimeout(function(){clearTimeout(i.closing)},13)}).menu({focus:function(t,e){var s=e.item.data("item.autocomplete");!1!==i._trigger("focus",t,{item:s})&&/^key/.test(t.originalEvent.type)&&i.element.val(s.value)},selected:function(t,e){var n=e.item.data("item.autocomplete"),a=i.previous;i.element[0]!==s.activeElement&&(i.element.focus(),i.previous=a,setTimeout(function(){i.previous=a,i.selectedItem=n},1)),!1!==i._trigger("select",t,{item:n})&&i.element.val(n.value),i.term=i.element.val(),i.close(t),i.selectedItem=n},blur:function(t,e){i.menu.element.is(":visible")&&i.element.val()!==i.term&&i.element.val(i.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),t.fn.bgiframe&&this.menu.element.bgiframe(),i.beforeunloadHandler=function(){i.element.removeAttr("autocomplete")},t(window).bind("beforeunload",i.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),t(window).unbind("beforeunload",this.beforeunloadHandler),t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){t.Widget.prototype._setOption.apply(this,arguments),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(t(i||"body",this.element[0].ownerDocument)[0]),"disabled"===e&&i&&this.xhr&&this.xhr.abort()},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t,e){n(t)},error:function(){n([])}})}):this.source=this.options.source},search:function(t,e){return(t=null!=t?t:this.element.val(),this.term=this.element.val(),t.length<this.options.minLength)?this.close(e):(clearTimeout(this.closing),!1!==this._trigger("search",e))?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.source({term:t},this._response())},_response:function(){var t=this,e=++i;return function(s){e===i&&t.__response(s),t.pending--,t.pending||t.element.removeClass("ui-autocomplete-loading")}},__response:function(t){!this.options.disabled&&t&&t.length?(t=this._normalize(t),this._suggest(t),this._trigger("open")):this.close()},close:function(t){clearTimeout(this.closing),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",t))},_change:function(t){this.previous!==this.element.val()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var i=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(i,e),this.menu.deactivate(),this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(new t.Event("mouseover"))},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItem(e,i)})},_renderItem:function(e,i){return t("<li></li>").data("item.autocomplete",i).append(t("<a></a>").text(i.label)).appendTo(e)},_move:function(t,e){if(!this.menu.element.is(":visible")){this.search(null,e);return}if(this.menu.first()&&/^previous/.test(t)||this.menu.last()&&/^next/.test(t)){this.element.val(this.term),this.menu.deactivate();return}this.menu[t](e)},widget:function(){return this.menu.element},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}})}(jQuery),function(t){t.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(i){t(i.target).closest(".ui-menu-item a").length&&(i.preventDefault(),e.select(i))}),this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(i){e.activate(i,t(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(t,e){if(this.deactivate(),this.hasScroll()){var i=e.offset().top-this.element.offset().top,s=this.element.scrollTop(),n=this.element.height();i<0?this.element.scrollTop(s+i):i>=n&&this.element.scrollTop(s+i-n+e.height())}this.active=e.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",t,{item:e})},deactivate:function(){this.active&&(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(t){this.move("next",".ui-menu-item:first",t)},previous:function(t){this.move("prev",".ui-menu-item:last",t)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(t,e,i){if(!this.active){this.activate(i,this.element.children(e));return}var s=this.active[t+"All"](".ui-menu-item").eq(0);s.length?this.activate(i,s):this.activate(i,this.element.children(e))},nextPage:function(e){if(this.hasScroll()){if(!this.active||this.last()){this.activate(e,this.element.children(".ui-menu-item:first"));return}var i=this.active.offset().top,s=this.element.height(),n=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-i-s+t(this).height();return e<10&&e>-10});n.length||(n=this.element.children(".ui-menu-item:last")),this.activate(e,n)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll()){if(!this.active||this.first()){this.activate(e,this.element.children(".ui-menu-item:last"));return}var i=this.active.offset().top,s=this.element.height(),n=this.element.children(".ui-menu-item").filter(function(){var e=t(this).offset().top-i+s-t(this).height();return e<10&&e>-10});n.length||(n=this.element.children(".ui-menu-item:first")),this.activate(e,n)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[t.fn.prop?"prop":"attr"]("scrollHeight")},select:function(t){this._trigger("selected",t,{item:this.active})}})}(jQuery),function(t,e){var i,s,n,a,r="ui-button ui-widget ui-state-default ui-corner-all",o="ui-state-hover ui-state-active ",l="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",h=function(){var e=t(this).find(":ui-button");setTimeout(function(){e.button("refresh")},1)},c=function(e){var i=e.name,s=e.form,n=t([]);return i&&(n=s?t(s).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),n};t.widget("ui.button",{options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",h),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.propAttr("disabled"):this.element.propAttr("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,o=this.options,l="checkbox"===this.type||"radio"===this.type,d="ui-state-hover"+(l?"":" ui-state-active"),u="ui-state-focus";null===o.label&&(o.label=this.buttonElement.html()),this.buttonElement.addClass(r).attr("role","button").bind("mouseenter.button",function(){o.disabled||(t(this).addClass("ui-state-hover"),this===i&&t(this).addClass("ui-state-active"))}).bind("mouseleave.button",function(){o.disabled||t(this).removeClass(d)}).bind("click.button",function(t){o.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this.element.bind("focus.button",function(){e.buttonElement.addClass(u)}).bind("blur.button",function(){e.buttonElement.removeClass(u)}),l&&(this.element.bind("change.button",function(){a||e.refresh()}),this.buttonElement.bind("mousedown.button",function(t){o.disabled||(a=!1,s=t.pageX,n=t.pageY)}).bind("mouseup.button",function(t){o.disabled||s===t.pageX&&n===t.pageY||(a=!0)})),"checkbox"===this.type?this.buttonElement.bind("click.button",function(){if(o.disabled||a)return!1;t(this).toggleClass("ui-state-active"),e.buttonElement.attr("aria-pressed",e.element[0].checked)}):"radio"===this.type?this.buttonElement.bind("click.button",function(){if(o.disabled||a)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var i=e.element[0];c(i).not(i).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(o.disabled)return!1;t(this).addClass("ui-state-active"),i=this,t(document).one("mouseup",function(){i=null})}).bind("mouseup.button",function(){if(o.disabled)return!1;t(this).removeClass("ui-state-active")}).bind("keydown.button",function(e){if(o.disabled)return!1;(e.keyCode==t.ui.keyCode.SPACE||e.keyCode==t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active")}).bind("keyup.button",function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",o.disabled),this._resetButton()},_determineButtonType:function(){if(this.element.is(":checkbox")?this.type="checkbox":this.element.is(":radio")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type){var t=this.element.parents().filter(":last"),e="label[for='"+this.element.attr("id")+"']";this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible");var i=this.element.is(":checked");i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.attr("aria-pressed",i)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(r+" "+o+" "+l).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title"),t.Widget.prototype.destroy.call(this)},_setOption:function(e,i){if(t.Widget.prototype._setOption.apply(this,arguments),"disabled"===e){i?this.element.propAttr("disabled",!0):this.element.propAttr("disabled",!1);return}this._resetButton()},refresh:function(){var e=this.element.is(":disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?c(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type){this.options.label&&this.element.val(this.options.label);return}var e=this.buttonElement.removeClass(l),i=t("<span></span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),s=this.options.icons,n=s.primary&&s.secondary,a=[];s.primary||s.secondary?(this.options.text&&a.push("ui-button-text-icon"+(n?"s":s.primary?"-primary":"-secondary")),s.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>"),s.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(a.push(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",i))):a.push("ui-button-text-only"),e.addClass(a.join(" "))}}),t.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,i){"disabled"===e&&this.buttons.button("option",e,i),t.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"),t.Widget.prototype.destroy.call(this)}})}(jQuery),function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.bind("mouseout",function(t){var i=$(t.target).closest(e);i.length&&i.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(i){var s=$(i.target).closest(e);!$.datepicker._isDisabledDatepicker(instActive.inline?t.parent()[0]:instActive.input[0])&&s.length&&(s.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),s.addClass("ui-state-hover"),s.hasClass("ui-datepicker-prev")&&s.addClass("ui-datepicker-prev-hover"),s.hasClass("ui-datepicker-next")&&s.addClass("ui-datepicker-next-hover"))})}function extendRemove(t,e){for(var i in $.extend(t,e),e)(null==e[i]||undefined==e[i])&&(t[i]=e[i]);return t}function isArray(t){return t&&($.browser.safari&&"object"==typeof t&&t.length||t.constructor&&t.constructor.toString().match(/\Array\(\)/))}$.extend($.ui,{datepicker:{version:"1.8.22"}});var instActive,PROP_NAME="datepicker",dpuuid=(new Date).getTime();$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return extendRemove(this._defaults,t||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline="div"==nodeName||"span"==nodeName;target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),"input"==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(t,e){var i=$(t);e.append=$([]),e.trigger=$([]),!i.hasClass(this.markerClassName)&&(this._attachments(i,e),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(t,i,s){e.settings[i]=s}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),this._autoSize(e),$.data(t,PROP_NAME,e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i=this._get(e,"appendText"),s=this._get(e,"isRTL");e.append&&e.append.remove(),i&&(e.append=$('<span class="'+this._appendClass+'">'+i+"</span>"),t[s?"before":"after"](e.append)),t.unbind("focus",this._showDatepicker),e.trigger&&e.trigger.remove();var n=this._get(e,"showOn");if(("focus"==n||"both"==n)&&t.focus(this._showDatepicker),"button"==n||"both"==n){var a=this._get(e,"buttonText"),r=this._get(e,"buttonImage");e.trigger=$(this._get(e,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:r,alt:a,title:a}):$('<button type="button"></button>').addClass(this._triggerClass).html(""==r?a:$("<img/>").attr({src:r,alt:a,title:a}))),t[s?"before":"after"](e.trigger),e.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==t[0]?$.datepicker._hideDatepicker():($.datepicker._datepickerShowing&&$.datepicker._lastInput!=t[0]&&$.datepicker._hideDatepicker(),$.datepicker._showDatepicker(t[0])),!1})}},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e=new Date(2009,11,20),i=this._get(t,"dateFormat");if(i.match(/[DM]/)){var s=function(t){for(var e=0,i=0,s=0;s<t.length;s++)t[s].length>e&&(e=t[s].length,i=s);return i};e.setMonth(s(this._get(t,i.match(/MM/)?"monthNames":"monthNamesShort"))),e.setDate(s(this._get(t,i.match(/DD/)?"dayNames":"dayNamesShort"))+20-e.getDay())}t.input.attr("size",this._formatDate(t,e).length)}},_inlineDatepicker:function(t,e){var i=$(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(t,i,s){e.settings[i]=s}).bind("getData.datepicker",function(t,i){return this._get(e,i)}),$.data(t,PROP_NAME,e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,s,n){var a=this._dialogInst;if(!a){this.uuid+=1;var r="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+r+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},$.data(this._dialogInput[0],PROP_NAME,a)}if(extendRemove(a.settings,s||{}),e=e&&e.constructor==Date?this._formatDate(a,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,!this._pos){var o=document.documentElement.clientWidth,l=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[o/2-100+h,l/2-150+c]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,a),this},_destroyDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var s=t.nodeName.toLowerCase();$.removeData(t,PROP_NAME),"input"==s?(i.append.remove(),i.trigger.remove(),e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"==s||"span"==s)&&e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var s=t.nodeName.toLowerCase();if("input"==s)t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if("div"==s||"span"==s){var n=e.children("."+this._inlineClass);n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e})}},_disableDatepicker:function(t){var e=$(t),i=$.data(t,PROP_NAME);if(e.hasClass(this.markerClassName)){var s=t.nodeName.toLowerCase();if("input"==s)t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if("div"==s||"span"==s){var n=e.children("."+this._inlineClass);n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=$.map(this._disabledInputs,function(e){return e==t?null:e}),this._disabledInputs[this._disabledInputs.length]=t}},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==t)return!0;return!1},_getInst:function(t){try{return $.data(t,PROP_NAME)}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s=this._getInst(t);if(2==arguments.length&&"string"==typeof e)return"defaults"==e?$.extend({},$.datepicker._defaults):s?"all"==e?$.extend({},s.settings):this._get(s,e):null;var n=e||{};if("string"==typeof e&&((n={})[e]=i),s){this._curInst==s&&this._hideDatepicker();var a=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(s,"min"),o=this._getMinMaxDate(s,"max");extendRemove(s.settings,n),null!==r&&undefined!==n.dateFormat&&undefined===n.minDate&&(s.settings.minDate=this._formatDate(s,r)),null!==o&&undefined!==n.dateFormat&&undefined===n.maxDate&&(s.settings.maxDate=this._formatDate(s,o)),this._attachments($(t),s),this._autoSize(s),this._setDate(s,a),this._updateAlternate(s),this._updateDatepicker(s)}},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(t){var e=$.datepicker._getInst(t.target),i=!0,s=e.dpDiv.is(".ui-datepicker-rtl");if(e._keyEvent=!0,$.datepicker._datepickerShowing)switch(t.keyCode){case 9:$.datepicker._hideDatepicker(),i=!1;break;case 13:var n=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",e.dpDiv);n[0]&&$.datepicker._selectDay(t.target,e.selectedMonth,e.selectedYear,n[0]);var a=$.datepicker._get(e,"onSelect");if(a){var r=$.datepicker._formatDate(e);a.apply(e.input?e.input[0]:null,[r,e])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(e,"stepBigMonths"):-$.datepicker._get(e,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(e,"stepBigMonths"):+$.datepicker._get(e,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&$.datepicker._clearDate(t.target),i=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&$.datepicker._gotoToday(t.target),i=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,s?1:-1,"D"),i=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(e,"stepBigMonths"):-$.datepicker._get(e,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,-7,"D"),i=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,s?-1:1,"D"),i=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(e,"stepBigMonths"):+$.datepicker._get(e,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,7,"D"),i=t.ctrlKey||t.metaKey;break;default:i=!1}else 36==t.keyCode&&t.ctrlKey?$.datepicker._showDatepicker(this):i=!1;i&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e=$.datepicker._getInst(t.target);if($.datepicker._get(e,"constrainInput")){var i=$.datepicker._possibleChars($.datepicker._get(e,"dateFormat")),s=String.fromCharCode(undefined==t.charCode?t.keyCode:t.charCode);return t.ctrlKey||t.metaKey||s<" "||!i||i.indexOf(s)>-1}},_doKeyUp:function(t){var e=$.datepicker._getInst(t.target);if(e.input.val()!=e.lastVal)try{$.datepicker.parseDate($.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,$.datepicker._getFormatConfig(e))&&($.datepicker._setDateFromField(e),$.datepicker._updateAlternate(e),$.datepicker._updateDatepicker(e))}catch(i){$.datepicker.log(i)}return!0},_showDatepicker:function(t){if("input"!=(t=t.target||t).nodeName.toLowerCase()&&(t=$("input",t.parentNode)[0]),!$.datepicker._isDisabledDatepicker(t)&&$.datepicker._lastInput!=t){var e=$.datepicker._getInst(t);$.datepicker._curInst&&$.datepicker._curInst!=e&&($.datepicker._curInst.dpDiv.stop(!0,!0),e&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var i=$.datepicker._get(e,"beforeShow"),s=i?i.apply(t,[t,e]):{};if(!1!==s){extendRemove(e.settings,s),e.lastVal=null,$.datepicker._lastInput=t,$.datepicker._setDateFromField(e),$.datepicker._inDialog&&(t.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(t),$.datepicker._pos[1]+=t.offsetHeight);var n=!1;$(t).parents().each(function(){return!(n|="fixed"==$(this).css("position"))}),n&&$.browser.opera&&($.datepicker._pos[0]-=document.documentElement.scrollLeft,$.datepicker._pos[1]-=document.documentElement.scrollTop);var a={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,e.dpDiv.empty(),e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(e),a=$.datepicker._checkOffset(e,a,n),e.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":n?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),!e.inline){var r=$.datepicker._get(e,"showAnim"),o=$.datepicker._get(e,"duration"),l=function(){var t=e.dpDiv.find("iframe.ui-datepicker-cover");if(t.length){var i=$.datepicker._getBorders(e.dpDiv);t.css({left:-i[0],top:-i[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()})}};e.dpDiv.zIndex($(t).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&$.effects[r]?e.dpDiv.show(r,$.datepicker._get(e,"showOptions"),o,l):e.dpDiv[r||"show"](r?o:null,l),r&&o||l(),e.input.is(":visible")&&!e.input.is(":disabled")&&e.input.focus(),$.datepicker._curInst=e}}}},_updateDatepicker:function(t){var e=this;e.maxRows=4;var i=$.datepicker._getBorders(t.dpDiv);instActive=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var s=t.dpDiv.find("iframe.ui-datepicker-cover");s.length&&s.css({left:-i[0],top:-i[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()}),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var n=this._getNumberOfMonths(t),a=n[1],r=17;if(t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",r*a+"em"),t.dpDiv[(1!=n[0]||1!=n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t==$.datepicker._curInst&&$.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!=document.activeElement&&t.input.focus(),t.yearshtml){var o=t.yearshtml;setTimeout(function(){o===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),o=t.yearshtml=null},0)}},_getBorders:function(t){var e=function(t){return({thin:1,medium:2,thick:3})[t]||t};return[parseFloat(e(t.css("border-left-width"))),parseFloat(e(t.css("border-top-width")))]},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),a=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:$(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-a:0,e.left-=i&&e.left==t.input.offset().left?$(document).scrollLeft():0,e.top-=i&&e.top==t.input.offset().top+r?$(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>o&&o>s?Math.abs(e.left+s-o):0),e.top-=Math.min(e.top,e.top+n>l&&l>n?Math.abs(n+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"==t.type||1!=t.nodeType||$.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];var s=$(t).offset();return[s.left,s.top]},_hideDatepicker:function(t){var e=this._curInst;if(e&&(!t||e==$.data(t,PROP_NAME))&&this._datepickerShowing){var i=this._get(e,"showAnim"),s=this._get(e,"duration"),n=function(){$.datepicker._tidyDialog(e)};$.effects&&$.effects[i]?e.dpDiv.hide(i,$.datepicker._get(e,"showOptions"),s,n):e.dpDiv["slideDown"==i?"slideUp":"fadeIn"==i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1;var a=this._get(e,"onClose");a&&a.apply(e.input?e.input[0]:null,[e.input?e.input.val():"",e]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if($.datepicker._curInst){var e=$(t.target),i=$.datepicker._getInst(e[0]);(e[0].id!=$.datepicker._mainDivId&&0==e.parents("#"+$.datepicker._mainDivId).length&&!e.hasClass($.datepicker.markerClassName)&&!e.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||e.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=i)&&$.datepicker._hideDatepicker()}},_adjustDate:function(t,e,i){var s=$(t),n=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(n,e+("M"==i?this._get(n,"showCurrentAtPos"):0),i),this._updateDatepicker(n))},_gotoToday:function(t){var e=$(t),i=this._getInst(e[0]);if(this._get(i,"gotoCurrent")&&i.currentDay)i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear;else{var s=new Date;i.selectedDay=s.getDate(),i.drawMonth=i.selectedMonth=s.getMonth(),i.drawYear=i.selectedYear=s.getFullYear()}this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var s=$(t),n=this._getInst(s[0]);n["selected"+("M"==i?"Month":"Year")]=n["draw"+("M"==i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(n),this._adjustDate(s)},_selectDay:function(t,e,i,s){var n=$(t);if(!($(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0]))){var a=this._getInst(n[0]);a.selectedDay=a.currentDay=$("a",s).html(),a.selectedMonth=a.currentMonth=e,a.selectedYear=a.currentYear=i,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear))}},_clearDate:function(t){var e=$(t);this._getInst(e[0]),this._selectDate(e,"")},_selectDate:function(t,e){var i=$(t),s=this._getInst(i[0]);e=null!=e?e:this._formatDate(s),s.input&&s.input.val(e),this._updateAlternate(s);var n=this._get(s,"onSelect");n?n.apply(s.input?s.input[0]:null,[e,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var e=this._get(t,"altField");if(e){var i=this._get(t,"altFormat")||this._get(t,"dateFormat"),s=this._getDate(t),n=this.formatDate(i,s,this._getFormatConfig(t));$(e).each(function(){$(this).val(n)})}},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());e.setDate(e.getDate()+4-(e.getDay()||7));var i=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((i-e)/864e5)/7)+1},parseDate:function(t,e,i){if(null==t||null==e)throw"Invalid arguments";if(""==(e="object"==typeof e?e.toString():e+""))return null;var s=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff;s="string"!=typeof s?s:(new Date).getFullYear()%100+parseInt(s,10);for(var n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=-1,h=-1,c=-1,d=-1,u=!1,f=function(e){var i=b+1<t.length&&t.charAt(b+1)==e;return i&&b++,i},p=function(t){var i=f(t),s="@"==t?14:"!"==t?20:"y"==t&&i?4:"o"==t?3:2,n=RegExp("^\\d{1,"+s+"}"),a=e.substring(v).match(n);if(!a)throw"Missing number at position "+v;return v+=a[0].length,parseInt(a[0],10)},m=function(t,i,s){var n=$.map(f(t)?s:i,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)}),a=-1;if($.each(n,function(t,i){var s=i[1];if(e.substr(v,s.length).toLowerCase()==s.toLowerCase())return a=i[0],v+=s.length,!1}),-1!=a)return a+1;throw"Unknown name at position "+v},g=function(){if(e.charAt(v)!=t.charAt(b))throw"Unexpected literal at position "+v;v++},v=0,b=0;b<t.length;b++)if(u)"'"!=t.charAt(b)||f("'")?g():u=!1;else switch(t.charAt(b)){case"d":c=p("d");break;case"D":m("D",n,a);break;case"o":d=p("o");break;case"m":h=p("m");break;case"M":h=m("M",r,o);break;case"y":l=p("y");break;case"@":var y=new Date(p("@"));l=y.getFullYear(),h=y.getMonth()+1,c=y.getDate();break;case"!":var y=new Date((p("!")-this._ticksTo1970)/1e4);l=y.getFullYear(),h=y.getMonth()+1,c=y.getDate();break;case"'":f("'")?g():u=!0;break;default:g()}if(v<e.length)throw"Extra/unparsed characters found in date: "+e.substring(v);if(-1==l?l=(new Date).getFullYear():l<100&&(l+=(new Date).getFullYear()-(new Date).getFullYear()%100+(l<=s?0:-100)),d>-1)for(h=1,c=d;;){var w=this._getDaysInMonth(l,h-1);if(c<=w)break;h++,c-=w}var y=this._daylightSavingAdjust(new Date(l,h-1,c));if(y.getFullYear()!=l||y.getMonth()+1!=h||y.getDate()!=c)throw"Invalid date";return y},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864e9,formatDate:function(t,e,i){if(!e)return"";var s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,n=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,o=function(e){var i=u+1<t.length&&t.charAt(u+1)==e;return i&&u++,i},l=function(t,e,i){var s=""+e;if(o(t))for(;s.length<i;)s="0"+s;return s},h=function(t,e,i,s){return o(t)?s[e]:i[e]},c="",d=!1;if(e)for(var u=0;u<t.length;u++)if(d)"'"!=t.charAt(u)||o("'")?c+=t.charAt(u):d=!1;else switch(t.charAt(u)){case"d":c+=l("d",e.getDate(),2);break;case"D":c+=h("D",e.getDay(),s,n);break;case"o":c+=l("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=l("m",e.getMonth()+1,2);break;case"M":c+=h("M",e.getMonth(),a,r);break;case"y":c+=o("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this._ticksTo1970;break;case"'":o("'")?c+="'":d=!0;break;default:c+=t.charAt(u)}return c},_possibleChars:function(t){for(var e="",i=!1,s=function(e){var i=n+1<t.length&&t.charAt(n+1)==e;return i&&n++,i},n=0;n<t.length;n++)if(i)"'"!=t.charAt(n)||s("'")?e+=t.charAt(n):i=!1;else switch(t.charAt(n)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":s("'")?e+="'":i=!0;break;default:e+=t.charAt(n)}return e},_get:function(t,e){return undefined!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!=t.lastVal){var i,s,n=this._get(t,"dateFormat"),a=t.lastVal=t.input?t.input.val():null;i=s=this._getDefaultDate(t);var r=this._getFormatConfig(t);try{i=this.parseDate(n,a,r)||s}catch(o){this.log(o),a=e?"":a}t.selectedDay=i.getDate(),t.drawMonth=t.selectedMonth=i.getMonth(),t.drawYear=t.selectedYear=i.getFullYear(),t.currentDay=a?i.getDate():0,t.currentMonth=a?i.getMonth():0,t.currentYear=a?i.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(t,e,i){var s=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},n=function(e){try{return $.datepicker.parseDate($.datepicker._get(t,"dateFormat"),e,$.datepicker._getFormatConfig(t))}catch(i){}for(var s=(e.toLowerCase().match(/^c/)?$.datepicker._getDate(t):null)||new Date,n=s.getFullYear(),a=s.getMonth(),r=s.getDate(),o=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(e);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(n,a));break;case"y":case"Y":n+=parseInt(l[1],10),r=Math.min(r,$.datepicker._getDaysInMonth(n,a))}l=o.exec(e)}return new Date(n,a,r)},a=null==e||""===e?i:"string"==typeof e?n(e):"number"==typeof e?isNaN(e)?i:s(e):new Date(e.getTime());return(a=a&&"Invalid Date"==a.toString()?i:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,a=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),n==t.selectedMonth&&a==t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""==t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id;t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,-e,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(i,+e,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(i)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(i,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate()));var i=this._get(t,"isRTL"),s=this._get(t,"showButtonPanel"),n=this._get(t,"hideIfNoPrevNext"),a=this._get(t,"navigationAsDateFormat"),r=this._getNumberOfMonths(t),o=this._get(t,"showCurrentAtPos"),l=this._get(t,"stepMonths"),h=1!=r[0]||1!=r[1],c=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),d=this._getMinMaxDate(t,"min"),u=this._getMinMaxDate(t,"max"),f=t.drawMonth-o,p=t.drawYear;if(f<0&&(f+=12,p--),u){var m=this._daylightSavingAdjust(new Date(u.getFullYear(),u.getMonth()-r[0]*r[1]+1,u.getDate()));for(m=d&&m<d?d:m;this._daylightSavingAdjust(new Date(p,f,1))>m;)--f<0&&(f=11,p--)}t.drawMonth=f,t.drawYear=p;var g=this._get(t,"prevText");g=a?this.formatDate(g,this._daylightSavingAdjust(new Date(p,f-l,1)),this._getFormatConfig(t)):g;var v=this._canAdjustMonth(t,-1,p,f)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+g+"</span></a>":n?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+g+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+g+"</span></a>",b=this._get(t,"nextText");b=a?this.formatDate(b,this._daylightSavingAdjust(new Date(p,f+l,1)),this._getFormatConfig(t)):b;var y=this._canAdjustMonth(t,1,p,f)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+b+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+b+"</span></a>":n?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+b+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+b+"</span></a>",w=this._get(t,"currentText"),_=this._get(t,"gotoCurrent")&&t.currentDay?c:e;w=a?this.formatDate(w,_,this._getFormatConfig(t)):w;var k=t.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(t,"closeText")+"</button>",D=s?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?k:"")+(this._isInRange(t,_)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+w+"</button>":"")+(i?"":k)+"</div>":"",C=parseInt(this._get(t,"firstDay"),10);C=isNaN(C)?0:C;for(var x=this._get(t,"showWeek"),S=this._get(t,"dayNames"),P=(this._get(t,"dayNamesShort"),this._get(t,"dayNamesMin")),T=this._get(t,"monthNames"),M=this._get(t,"monthNamesShort"),A=this._get(t,"beforeShowDay"),E=this._get(t,"showOtherMonths"),I=this._get(t,"selectOtherMonths"),O=(this._get(t,"calculateWeek")||this.iso8601Week,this._getDefaultDate(t)),F="",Y=0;Y<r[0];Y++){var L="";this.maxRows=4;for(var z=0;z<r[1];z++){var H=this._daylightSavingAdjust(new Date(p,f,t.selectedDay)),W=" ui-corner-all",N="";if(h){if(N+='<div class="ui-datepicker-group',r[1]>1)switch(z){case 0:N+=" ui-datepicker-group-first",W=" ui-corner-"+(i?"right":"left");break;case r[1]-1:N+=" ui-datepicker-group-last",W=" ui-corner-"+(i?"left":"right");break;default:N+=" ui-datepicker-group-middle",W=""}N+='">'}N+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+W+'">'+(/all|left/.test(W)&&0==Y?i?y:v:"")+(/all|right/.test(W)&&0==Y?i?v:y:"")+this._generateMonthYearHeader(t,f,p,d,u,Y>0||z>0,T,M)+'</div><table class="ui-datepicker-calendar"><thead><tr>';for(var R=x?'<th class="ui-datepicker-week-col">'+this._get(t,"weekHeader")+"</th>":"",j=0;j<7;j++){var B=(j+C)%7;R+="<th"+((j+C+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+S[B]+'">'+P[B]+"</span></th>"}N+=R+"</tr></thead><tbody>";var q=this._getDaysInMonth(p,f);p==t.selectedYear&&f==t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,q));var V=(this._getFirstDayOfMonth(p,f)-C+7)%7,U=Math.ceil((V+q)/7),K=h&&this.maxRows>U?this.maxRows:U;this.maxRows=K;for(var G=this._daylightSavingAdjust(new Date(p,f,1-V)),X=0;X<K;X++){N+="<tr>";for(var Z=x?'<td class="ui-datepicker-week-col">'+this._get(t,"calculateWeek")(G)+"</td>":"",j=0;j<7;j++){var Q=A?A.apply(t.input?t.input[0]:null,[G]):[!0,""],J=G.getMonth()!=f,tt=J&&!I||!Q[0]||d&&G<d||u&&G>u;Z+='<td class="'+((j+C+6)%7>=5?" ui-datepicker-week-end":"")+(J?" ui-datepicker-other-month":"")+(G.getTime()==H.getTime()&&f==t.selectedMonth&&t._keyEvent||O.getTime()==G.getTime()&&O.getTime()==H.getTime()?" "+this._dayOverClass:"")+(tt?" "+this._unselectableClass+" ui-state-disabled":"")+(J&&!E?"":" "+Q[1]+(G.getTime()==c.getTime()?" "+this._currentClass:"")+(G.getTime()==e.getTime()?" ui-datepicker-today":""))+'"'+((!J||E)&&Q[2]?' title="'+Q[2]+'"':"")+(tt?"":' data-handler="selectDay" data-event="click" data-month="'+G.getMonth()+'" data-year="'+G.getFullYear()+'"')+">"+(J&&!E?"&#xa0;":tt?'<span class="ui-state-default">'+G.getDate()+"</span>":'<a class="ui-state-default'+(G.getTime()==e.getTime()?" ui-state-highlight":"")+(G.getTime()==c.getTime()?" ui-state-active":"")+(J?" ui-priority-secondary":"")+'" href="#">'+G.getDate()+"</a>")+"</td>",G.setDate(G.getDate()+1),G=this._daylightSavingAdjust(G)}N+=Z+"</tr>"}++f>11&&(f=0,p++),N+="</tbody></table>"+(h?"</div>"+(r[0]>0&&z==r[1]-1?'<div class="ui-datepicker-row-break"></div>':""):""),L+=N}F+=L}return F+=D+($.browser.msie&&7>parseInt($.browser.version,10)&&!t.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),t._keyEvent=!1,F},_generateMonthYearHeader:function(t,e,i,s,n,a,r,o){var l=this._get(t,"changeMonth"),h=this._get(t,"changeYear"),c=this._get(t,"showMonthAfterYear"),d='<div class="ui-datepicker-title">',u="";if(a||!l)u+='<span class="ui-datepicker-month">'+r[e]+"</span>";else{var f=s&&s.getFullYear()==i,p=n&&n.getFullYear()==i;u+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var m=0;m<12;m++)(!f||m>=s.getMonth())&&(!p||m<=n.getMonth())&&(u+='<option value="'+m+'"'+(m==e?' selected="selected"':"")+">"+o[m]+"</option>");u+="</select>"}if(c||(d+=u+(!a&&l&&h?"":"&#xa0;")),!t.yearshtml){if(t.yearshtml="",a||!h)d+='<span class="ui-datepicker-year">'+i+"</span>";else{var g=this._get(t,"yearRange").split(":"),v=(new Date).getFullYear(),$=function(t){var e=t.match(/c[+-].*/)?i+parseInt(t.substring(1),10):t.match(/[+-].*/)?v+parseInt(t,10):parseInt(t,10);return isNaN(e)?v:e},b=$(g[0]),y=Math.max(b,$(g[1]||""));for(b=s?Math.max(b,s.getFullYear()):b,y=n?Math.min(y,n.getFullYear()):y,t.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';b<=y;b++)t.yearshtml+='<option value="'+b+'"'+(b==i?' selected="selected"':"")+">"+b+"</option>";t.yearshtml+="</select>",d+=t.yearshtml,t.yearshtml=null}}return d+=this._get(t,"yearSuffix"),c&&(d+=(!a&&l&&h?"":"&#xa0;")+u),d+="</div>"},_adjustInstDate:function(t,e,i){var s=t.drawYear+("Y"==i?e:0),n=t.drawMonth+("M"==i?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"==i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,a)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),("M"==i||"Y"==i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&e<i?i:e;return s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max");return(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv),$.datepicker.initialized=!0);var e=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!=t&&"getDate"!=t&&"widget"!=t?"option"==t&&2==arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)}):$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.8.22",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(t,e){var i="ui-dialog ui-widget ui-widget-content ui-corner-all ",s={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},n={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},a=t.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};t.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),"string"!=typeof this.originalTitle&&(this.originalTitle=""),this.options.title=this.options.title||this.originalTitle;var e=this,s=e.options,n=s.title||"&#160;",a=t.ui.dialog.getTitleId(e.element),r=(e.uiDialog=t("<div></div>")).appendTo(document.body).hide().addClass(i+s.dialogClass).css({zIndex:s.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){s.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===t.ui.keyCode.ESCAPE&&(e.close(i),i.preventDefault())}).attr({role:"dialog","aria-labelledby":a}).mousedown(function(t){e.moveToTop(!1,t)}),o=(e.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(r),(e.uiDialogTitlebar=t("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(r)),l=t('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){l.addClass("ui-state-hover")},function(){l.removeClass("ui-state-hover")}).focus(function(){l.addClass("ui-state-focus")}).blur(function(){l.removeClass("ui-state-focus")}).click(function(t){return e.close(t),!1}).appendTo(o);(e.uiDialogTitlebarCloseText=t("<span></span>")).addClass("ui-icon ui-icon-closethick").text(s.closeText).appendTo(l),t("<span></span>").addClass("ui-dialog-title").attr("id",a).html(n).prependTo(o),t.isFunction(s.beforeclose)&&!t.isFunction(s.beforeClose)&&(s.beforeClose=s.beforeclose),o.find("*").add(o).disableSelection(),s.draggable&&t.fn.draggable&&e._makeDraggable(),s.resizable&&t.fn.resizable&&e._makeResizable(),e._createButtons(s.buttons),e._isOpen=!1,t.fn.bgiframe&&r.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var t=this;return t.overlay&&t.overlay.destroy(),t.uiDialog.hide(),t.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),t.uiDialog.remove(),t.originalTitle&&t.element.attr("title",t.originalTitle),t},widget:function(){return this.uiDialog},close:function(e){var i,s,n=this;if(!1!==n._trigger("beforeClose",e))return n.overlay&&n.overlay.destroy(),n.uiDialog.unbind("keypress.ui-dialog"),n._isOpen=!1,n.options.hide?n.uiDialog.hide(n.options.hide,function(){n._trigger("close",e)}):(n.uiDialog.hide(),n._trigger("close",e)),t.ui.dialog.overlay.resize(),n.options.modal&&(i=0,t(".ui-dialog").each(function(){this!==n.uiDialog[0]&&(s=t(this).css("z-index"),isNaN(s)||(i=Math.max(i,s)))}),t.ui.dialog.maxZ=i),n},isOpen:function(){return this._isOpen},moveToTop:function(e,i){var s,n=this,a=n.options;return(!a.modal||e)&&(a.stack||a.modal)?(a.zIndex>t.ui.dialog.maxZ&&(t.ui.dialog.maxZ=a.zIndex),n.overlay&&(t.ui.dialog.maxZ+=1,n.overlay.$el.css("z-index",t.ui.dialog.overlay.maxZ=t.ui.dialog.maxZ)),s={scrollTop:n.element.scrollTop(),scrollLeft:n.element.scrollLeft()},t.ui.dialog.maxZ+=1,n.uiDialog.css("z-index",t.ui.dialog.maxZ),n.element.attr(s),n._trigger("focus",i),n):n._trigger("focus",i)},open:function(){if(!this._isOpen){var e=this,i=e.options,s=e.uiDialog;return e.overlay=i.modal?new t.ui.dialog.overlay(e):null,e._size(),e._position(i.position),s.show(i.show),e.moveToTop(!0),i.modal&&s.bind("keydown.ui-dialog",function(e){if(e.keyCode===t.ui.keyCode.TAB){var i=t(":tabbable",this),s=i.filter(":first"),n=i.filter(":last");if(e.target===n[0]&&!e.shiftKey)return s.focus(1),!1;if(e.target===s[0]&&e.shiftKey)return n.focus(1),!1}}),t(e.element.find(":tabbable").get().concat(s.find(".ui-dialog-buttonpane :tabbable").get().concat(s.get()))).eq(0).focus(),e._isOpen=!0,e._trigger("open"),e}},_createButtons:function(e){var i=this,s=!1,n=t("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),r=t("<div></div>").addClass("ui-dialog-buttonset").appendTo(n);i.uiDialog.find(".ui-dialog-buttonpane").remove(),"object"==typeof e&&null!==e&&t.each(e,function(){return s=!0,!1}),s&&(t.each(e,function(e,s){s=t.isFunction(s)?{click:s,text:e}:s;var n=t('<button type="button"></button>').click(function(){s.click.apply(i.element[0],arguments)}).appendTo(r);t.each(s,function(t,e){"click"!==t&&(t in a?n[t](e):n.attr(t,e))}),t.fn.button&&n.button()}),n.appendTo(i.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i,s=this,n=s.options,a=t(document);s.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(a,r){i="auto"===n.height?"auto":t(this).height(),t(this).height(t(this).height()).addClass("ui-dialog-dragging"),s._trigger("dragStart",a,e(r))},drag:function(t,i){s._trigger("drag",t,e(i))},stop:function(r,o){n.position=[o.position.left-a.scrollLeft(),o.position.top-a.scrollTop()],t(this).removeClass("ui-dialog-dragging").height(i),s._trigger("dragStop",r,e(o)),t.ui.dialog.overlay.resize()}})},_makeResizable:function(e){function i(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}e=void 0===e?this.options.resizable:e;var s=this,n=s.options,a=s.uiDialog.css("position"),r="string"==typeof e?e:"n,e,s,w,se,sw,ne,nw";s.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:s.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:s._minHeight(),handles:r,start:function(e,n){t(this).addClass("ui-dialog-resizing"),s._trigger("resizeStart",e,i(n))},resize:function(t,e){s._trigger("resize",t,i(e))},stop:function(e,a){t(this).removeClass("ui-dialog-resizing"),n.height=t(this).height(),n.width=t(this).width(),s._trigger("resizeStop",e,i(a)),t.ui.dialog.overlay.resize()}}).css("position",a).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(e){var i,s=[],n=[0,0];e?(("string"==typeof e||"object"==typeof e&&"0"in e)&&(1===(s=e.split?e.split(" "):[e[0],e[1]]).length&&(s[1]=s[0]),t.each(["left","top"],function(t,e){+s[t]===s[t]&&(n[t]=s[t],s[t]=e)}),e={my:s.join(" "),at:s.join(" "),offset:n.join(" ")}),e=t.extend({},t.ui.dialog.prototype.options.position,e)):e=t.ui.dialog.prototype.options.position,(i=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.css({top:0,left:0}).position(t.extend({of:window},e)),i||this.uiDialog.hide()},_setOptions:function(e){var i=this,a={},r=!1;t.each(e,function(t,e){i._setOption(t,e),t in s&&(r=!0),t in n&&(a[t]=e)}),r&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",a)},_setOption:function(e,s){var n=this,a=n.uiDialog;switch(e){case"beforeclose":e="beforeClose";break;case"buttons":n._createButtons(s);break;case"closeText":n.uiDialogTitlebarCloseText.text(""+s);break;case"dialogClass":a.removeClass(n.options.dialogClass).addClass(i+s);break;case"disabled":s?a.addClass("ui-dialog-disabled"):a.removeClass("ui-dialog-disabled");break;case"draggable":var r=a.is(":data(draggable)");r&&!s&&a.draggable("destroy"),!r&&s&&n._makeDraggable();break;case"position":n._position(s);break;case"resizable":var o=a.is(":data(resizable)");o&&!s&&a.resizable("destroy"),o&&"string"==typeof s&&a.resizable("option","handles",s),o||!1===s||n._makeResizable(s);break;case"title":t(".ui-dialog-title",n.uiDialogTitlebar).html(""+(s||"&#160;"))}t.Widget.prototype._setOption.apply(n,arguments)},_size:function(){var e,i,s=this.options,n=this.uiDialog.is(":visible");if(this.element.show().css({width:"auto",minHeight:0,height:0}),s.minWidth>s.width&&(s.width=s.minWidth),e=this.uiDialog.css({height:"auto",width:s.width}).height(),i=Math.max(0,s.minHeight-e),"auto"===s.height){if(t.support.minHeight)this.element.css({minHeight:i,height:"auto"});else{this.uiDialog.show();var a=this.element.css("height","auto").height();n||this.uiDialog.hide(),this.element.height(Math.max(a,i))}}else this.element.height(Math.max(s.height-e,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),t.extend(t.ui.dialog,{version:"1.8.22",uuid:0,maxZ:0,getTitleId:function(t){var e=t.attr("id");return e||(this.uuid+=1,e=this.uuid),"ui-dialog-title-"+e},overlay:function(e){this.$el=t.ui.dialog.overlay.create(e)}}),t.extend(t.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:t.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(t){return t+".dialog-overlay"}).join(" "),create:function(e){0===this.instances.length&&(setTimeout(function(){t.ui.dialog.overlay.instances.length&&t(document).bind(t.ui.dialog.overlay.events,function(e){if(t(e.target).zIndex()<t.ui.dialog.overlay.maxZ)return!1})},1),t(document).bind("keydown.dialog-overlay",function(i){e.options.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===t.ui.keyCode.ESCAPE&&(e.close(i),i.preventDefault())}),t(window).bind("resize.dialog-overlay",t.ui.dialog.overlay.resize));var i=(this.oldInstances.pop()||t("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});return t.fn.bgiframe&&i.bgiframe(),this.instances.push(i),i},destroy:function(e){var i=t.inArray(e,this.instances);-1!=i&&this.oldInstances.push(this.instances.splice(i,1)[0]),0===this.instances.length&&t([document,window]).unbind(".dialog-overlay"),e.remove();var s=0;t.each(this.instances,function(){s=Math.max(s,this.css("z-index"))}),this.maxZ=s},height:function(){var e,i;return t.browser.msie&&t.browser.version<7?(e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight))<(i=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight))?t(window).height()+"px":e+"px":t(document).height()+"px"},width:function(){var e,i;return t.browser.msie?(e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth))<(i=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth))?t(window).width()+"px":e+"px":t(document).width()+"px"},resize:function(){var e=t([]);t.each(t.ui.dialog.overlay.instances,function(){e=e.add(this)}),e.css({width:0,height:0}).css({width:t.ui.dialog.overlay.width(),height:t.ui.dialog.overlay.height()})}}),t.extend(t.ui.dialog.overlay.prototype,{destroy:function(){t.ui.dialog.overlay.destroy(this.$el)}})}(jQuery),function(t,e){t.ui=t.ui||{};var i=/left|center|right/,s=/top|center|bottom/,n="center",a={},r=t.fn.position,o=t.fn.offset;t.fn.position=function(e){if(!e||!e.of)return r.apply(this,arguments);e=t.extend({},e);var o,l,h,c=t(e.of),d=c[0],u=(e.collision||"flip").split(" "),f=e.offset?e.offset.split(" "):[0,0];return 9===d.nodeType?(o=c.width(),l=c.height(),h={top:0,left:0}):d.setTimeout?(o=c.width(),l=c.height(),h={top:c.scrollTop(),left:c.scrollLeft()}):d.preventDefault?(e.at="left top",o=l=0,h={top:e.of.pageY,left:e.of.pageX}):(o=c.outerWidth(),l=c.outerHeight(),h=c.offset()),t.each(["my","at"],function(){var t=(e[this]||"").split(" ");1===t.length&&(t=i.test(t[0])?t.concat([n]):s.test(t[0])?[n].concat(t):[n,n]),t[0]=i.test(t[0])?t[0]:n,t[1]=s.test(t[1])?t[1]:n,e[this]=t}),1===u.length&&(u[1]=u[0]),f[0]=parseInt(f[0],10)||0,1===f.length&&(f[1]=f[0]),f[1]=parseInt(f[1],10)||0,"right"===e.at[0]?h.left+=o:e.at[0]===n&&(h.left+=o/2),"bottom"===e.at[1]?h.top+=l:e.at[1]===n&&(h.top+=l/2),h.left+=f[0],h.top+=f[1],this.each(function(){var i,s=t(this),r=s.outerWidth(),c=s.outerHeight(),d=parseInt(t.curCSS(this,"marginLeft",!0))||0,p=parseInt(t.curCSS(this,"marginTop",!0))||0,m=r+d+(parseInt(t.curCSS(this,"marginRight",!0))||0),g=c+p+(parseInt(t.curCSS(this,"marginBottom",!0))||0),v=t.extend({},h);"right"===e.my[0]?v.left-=r:e.my[0]===n&&(v.left-=r/2),"bottom"===e.my[1]?v.top-=c:e.my[1]===n&&(v.top-=c/2),a.fractions||(v.left=Math.round(v.left),v.top=Math.round(v.top)),i={left:v.left-d,top:v.top-p},t.each(["left","top"],function(s,n){t.ui.position[u[s]]&&t.ui.position[u[s]][n](v,{targetWidth:o,targetHeight:l,elemWidth:r,elemHeight:c,collisionPosition:i,collisionWidth:m,collisionHeight:g,offset:f,my:e.my,at:e.at})}),t.fn.bgiframe&&s.bgiframe(),s.offset(t.extend(v,{using:e.using}))})},t.ui.position={fit:{left:function(e,i){var s=t(window),n=i.collisionPosition.left+i.collisionWidth-s.width()-s.scrollLeft();e.left=n>0?e.left-n:Math.max(e.left-i.collisionPosition.left,e.left)},top:function(e,i){var s=t(window),n=i.collisionPosition.top+i.collisionHeight-s.height()-s.scrollTop();e.top=n>0?e.top-n:Math.max(e.top-i.collisionPosition.top,e.top)}},flip:{left:function(e,i){if(i.at[0]!==n){var s=t(window),a=i.collisionPosition.left+i.collisionWidth-s.width()-s.scrollLeft(),r="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,o="left"===i.at[0]?i.targetWidth:-i.targetWidth,l=-2*i.offset[0];e.left+=i.collisionPosition.left<0?r+o+l:a>0?r+o+l:0}},top:function(e,i){if(i.at[1]!==n){var s=t(window),a=i.collisionPosition.top+i.collisionHeight-s.height()-s.scrollTop(),r="top"===i.my[1]?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,o="top"===i.at[1]?i.targetHeight:-i.targetHeight,l=-2*i.offset[1];e.top+=i.collisionPosition.top<0?r+o+l:a>0?r+o+l:0}}}},t.offset.setOffset||(t.offset.setOffset=function(e,i){/static/.test(t.curCSS(e,"position"))&&(e.style.position="relative");var s=t(e),n=s.offset(),a=parseInt(t.curCSS(e,"top",!0),10)||0,r=parseInt(t.curCSS(e,"left",!0),10)||0,o={top:i.top-n.top+a,left:i.left-n.left+r};"using"in i?i.using.call(e,o):s.css(o)},t.fn.offset=function(e){var i=this[0];return i&&i.ownerDocument?e?t.isFunction(e)?this.each(function(i){t(this).offset(e.call(this,i,t(this).offset()))}):this.each(function(){t.offset.setOffset(this,e)}):o.call(this):null}),function(){var e,i,s,n,r,o=document.getElementsByTagName("body")[0],l=document.createElement("div");for(var h in e=document.createElement(o?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&t.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"}),s)e.style[h]=s[h];e.appendChild(l),(i=o||document.documentElement).insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",n=t(l).offset(function(t,e){return e}).offset(),e.innerHTML="",i.removeChild(e),r=n.top+n.left+(o?2e3:0),a.fractions=r>21&&r<22}()}(jQuery),function(t,e){t.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove(),t.Widget.prototype.destroy.apply(this,arguments)},value:function(t){return void 0===t?this._value():(this._setOption("value",t),this)},_setOption:function(e,i){"value"===e&&(this.options.value=i,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),t.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var t=this.options.value;return"number"!=typeof t&&(t=0),Math.min(this.options.max,Math.max(this.min,t))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var t=this.value(),e=this._percentage();this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),this.valueDiv.toggle(t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(e.toFixed(0)+"%"),this.element.attr("aria-valuenow",t)}}),t.extend(t.ui.progressbar,{version:"1.8.22"})}(jQuery),function(t,e){var i=5;t.widget("ui.slider",t.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var e=this,s=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),a="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",r=s.values&&s.values.length||1,o=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(s.disabled?" ui-slider-disabled ui-disabled":"")),this.range=t([]),s.range&&(!0===s.range&&(s.values||(s.values=[this._valueMin(),this._valueMin()]),s.values.length&&2!==s.values.length&&(s.values=[s.values[0],s.values[0]])),this.range=t("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===s.range||"max"===s.range?" ui-slider-range-"+s.range:"")));for(var l=n.length;l<r;l+=1)o.push(a);this.handles=n.add(t(o.join("")).appendTo(e.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(t){t.preventDefault()}).hover(function(){s.disabled||t(this).addClass("ui-state-hover")},function(){t(this).removeClass("ui-state-hover")}).focus(function(){s.disabled?t(this).blur():(t(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),t(this).addClass("ui-state-focus"))}).blur(function(){t(this).removeClass("ui-state-focus")}),this.handles.each(function(e){t(this).data("index.ui-slider-handle",e)}),this.handles.keydown(function(s){var n,a,r,o,l=t(this).data("index.ui-slider-handle");if(!e.options.disabled){switch(s.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(s.preventDefault(),!e._keySliding&&(e._keySliding=!0,t(this).addClass("ui-state-active"),!1===(n=e._start(s,l))))return}switch(o=e.options.step,a=r=e.options.values&&e.options.values.length?e.values(l):e.value(),s.keyCode){case t.ui.keyCode.HOME:r=e._valueMin();break;case t.ui.keyCode.END:r=e._valueMax();break;case t.ui.keyCode.PAGE_UP:r=e._trimAlignValue(a+(e._valueMax()-e._valueMin())/i);break;case t.ui.keyCode.PAGE_DOWN:r=e._trimAlignValue(a-(e._valueMax()-e._valueMin())/i);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(a===e._valueMax())return;r=e._trimAlignValue(a+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(a===e._valueMin())return;r=e._trimAlignValue(a-o)}e._slide(s,l,r)}}).keyup(function(i){var s=t(this).data("index.ui-slider-handle");e._keySliding&&(e._keySliding=!1,e._stop(i,s),e._change(i,s),t(this).removeClass("ui-state-active"))}),this._refreshValue(),this._animateOff=!1},destroy:function(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function(e){var i,s,n,a,r,o,l,h,c,d=this.options;return!d.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,r=this,this.handles.each(function(e){var i=Math.abs(s-r.values(e));n>i&&(n=i,a=t(this),o=e)}),!0===d.range&&this.values(1)===d.min&&(o+=1,a=t(this.handles[o])),!1!==(l=this._start(e,o))&&(this._mouseSliding=!0,r._handleIndex=o,a.addClass("ui-state-active").focus(),h=a.offset(),c=!t(e.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:e.pageX-h.left-a.width()/2,top:e.pageY-h.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,s),this._animateOff=!0,!0))},_mouseStart:function(t){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,a;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(s=i/e)>1&&(s=1),s<0&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),a=this._valueMin()+s*n,this._trimAlignValue(a)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var s,n,a;this.options.values&&this.options.values.length?(s=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>s||1===e&&i<s)&&(i=s),i!==this.values(e)&&((n=this.values())[e]=i,a=this._trigger("slide",t,{handle:this.handles[e],value:i,values:n}),s=this.values(e?0:1),!1!==a&&this.values(e,i,!0))):i!==this.value()&&!1!==(a=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i)},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("change",t,i)}},value:function(t){if(arguments.length){this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0);return}return this._value()},values:function(e,i){var s,n,a;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e);return}if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(s=this.options.values,n=arguments[0],a=0;a<s.length;a+=1)s[a]=this._trimAlignValue(n[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch(t.isArray(this.options.values)&&(n=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"disabled":i?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=0;s<n;s+=1)this._change(null,s);this._animateOff=!1}},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);for(s=0,i=this.options.values.slice();s<i.length;s+=1)i[s]=this._trimAlignValue(i[s]);return i},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,s,n,a,r=this.options.range,o=this.options,l=this,h=!this._animateOff&&o.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(s,n){e=(l.values(s)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=e+"%",t(this).stop(1,1)[h?"animate":"css"](c,o.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===s&&l.range.stop(1,1)[h?"animate":"css"]({left:e+"%"},o.animate),1===s&&l.range[h?"animate":"css"]({width:e-i+"%"},{queue:!1,duration:o.animate})):(0===s&&l.range.stop(1,1)[h?"animate":"css"]({bottom:e+"%"},o.animate),1===s&&l.range[h?"animate":"css"]({height:e-i+"%"},{queue:!1,duration:o.animate}))),i=e}):(s=this.value(),n=this._valueMin(),e=(a=this._valueMax())!==n?(s-n)/(a-n)*100:0,c["horizontal"===l.orientation?"left":"bottom"]=e+"%",this.handle.stop(1,1)[h?"animate":"css"](c,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:e+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range[h?"animate":"css"]({width:100-e+"%"},{queue:!1,duration:o.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:e+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range[h?"animate":"css"]({height:100-e+"%"},{queue:!1,duration:o.animate}))}}),t.extend(t.ui.slider,{version:"1.8.22"})}(jQuery),function(t,e){function i(){return++n}function s(){return++a}var n=0,a=0;t.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(!0)},_setOption:function(t,e){"selected"==t?this.options.collapsible&&e==this.options.selected||this.select(e):(this.options[t]=e,this._tabify())},_tabId:function(t){return t.title&&t.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+i()},_sanitizeSelector:function(t){return t.replace(/:/g,"\\:")},_cookie:function(){var e=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+s());return t.cookie.apply(null,[e].concat(t.makeArray(arguments)))},_ui:function(t,e){return{tab:t,panel:e,index:this.anchors.index(t)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var e=t(this);e.html(e.data("label.tabs")).removeData("label.tabs")})},_tabify:function(i){function s(e,i){e.css("display",""),!t.support.opacity&&i.opacity&&e[0].style.removeAttribute("filter")}var n,a,r=this,o=this.options,l=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=t(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return t("a",this)[0]}),this.panels=t([]),this.anchors.each(function(e,i){var s,n=t(i).attr("href"),a=n.split("#")[0];if(a&&(a===location.toString().split("#")[0]||(s=t("base")[0])&&a===s.href)&&(n=i.hash,i.href=n),l.test(n))r.panels=r.panels.add(r.element.find(r._sanitizeSelector(n)));else if(n&&"#"!==n){t.data(i,"href.tabs",n),t.data(i,"load.tabs",n.replace(/#.*$/,""));var h=r._tabId(i);i.href="#"+h;var c=r.element.find("#"+h);c.length||(c=t(o.panelTemplate).attr("id",h).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(r.panels[e-1]||r.list)).data("destroy.tabs",!0),r.panels=r.panels.add(c)}else o.disabled.push(e)}),i?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),o.selected===e?(location.hash&&this.anchors.each(function(t,e){if(e.hash==location.hash)return o.selected=t,!1}),"number"!=typeof o.selected&&o.cookie&&(o.selected=parseInt(r._cookie(),10)),"number"!=typeof o.selected&&this.lis.filter(".ui-tabs-selected").length&&(o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),o.selected=o.selected||(this.lis.length?0:-1)):null===o.selected&&(o.selected=-1),o.selected=o.selected>=0&&this.anchors[o.selected]||o.selected<0?o.selected:0,o.disabled=t.unique(o.disabled.concat(t.map(this.lis.filter(".ui-state-disabled"),function(t,e){return r.lis.index(t)}))).sort(),-1!=t.inArray(o.selected,o.disabled)&&o.disabled.splice(t.inArray(o.selected,o.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),o.selected>=0&&this.anchors.length&&(r.element.find(r._sanitizeSelector(r.anchors[o.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(o.selected).addClass("ui-tabs-selected ui-state-active"),r.element.queue("tabs",function(){r._trigger("show",null,r._ui(r.anchors[o.selected],r.element.find(r._sanitizeSelector(r.anchors[o.selected].hash))[0]))}),this.load(o.selected)),t(window).bind("unload",function(){r.lis.add(r.anchors).unbind(".tabs"),r.lis=r.anchors=r.panels=null})):o.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[o.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),o.cookie&&this._cookie(o.selected,o.cookie);for(var h,c=0;h=this.lis[c];c++)t(h)[-1==t.inArray(c,o.disabled)||t(h).hasClass("ui-tabs-selected")?"removeClass":"addClass"]("ui-state-disabled");if(!1===o.cache&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs"),"mouseover"!==o.event){var d=function(t,e){e.is(":not(.ui-state-disabled)")&&e.addClass("ui-state-"+t)},u=function(t,e){e.removeClass("ui-state-"+t)};this.lis.bind("mouseover.tabs",function(){d("hover",t(this))}),this.lis.bind("mouseout.tabs",function(){u("hover",t(this))}),this.anchors.bind("focus.tabs",function(){d("focus",t(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){u("focus",t(this).closest("li"))})}o.fx&&(t.isArray(o.fx)?(n=o.fx[0],a=o.fx[1]):n=a=o.fx);var f=a?function(e,i){t(e).closest("li").addClass("ui-tabs-selected ui-state-active"),i.hide().removeClass("ui-tabs-hide").animate(a,a.duration||"normal",function(){s(i,a),r._trigger("show",null,r._ui(e,i[0]))})}:function(e,i){t(e).closest("li").addClass("ui-tabs-selected ui-state-active"),i.removeClass("ui-tabs-hide"),r._trigger("show",null,r._ui(e,i[0]))},p=n?function(t,e){e.animate(n,n.duration||"normal",function(){r.lis.removeClass("ui-tabs-selected ui-state-active"),e.addClass("ui-tabs-hide"),s(e,n),r.element.dequeue("tabs")})}:function(t,e,i){r.lis.removeClass("ui-tabs-selected ui-state-active"),e.addClass("ui-tabs-hide"),r.element.dequeue("tabs")};this.anchors.bind(o.event+".tabs",function(){var e=this,i=t(e).closest("li"),s=r.panels.filter(":not(.ui-tabs-hide)"),n=r.element.find(r._sanitizeSelector(e.hash));if(i.hasClass("ui-tabs-selected")&&!o.collapsible||i.hasClass("ui-state-disabled")||i.hasClass("ui-state-processing")||r.panels.filter(":animated").length||!1===r._trigger("select",null,r._ui(this,n[0])))return this.blur(),!1;if(o.selected=r.anchors.index(this),r.abort(),o.collapsible){if(i.hasClass("ui-tabs-selected"))return o.selected=-1,o.cookie&&r._cookie(o.selected,o.cookie),r.element.queue("tabs",function(){p(e,s)}).dequeue("tabs"),this.blur(),!1;if(!s.length)return o.cookie&&r._cookie(o.selected,o.cookie),r.element.queue("tabs",function(){f(e,n)}),r.load(r.anchors.index(this)),this.blur(),!1}if(o.cookie&&r._cookie(o.selected,o.cookie),n.length)s.length&&r.element.queue("tabs",function(){p(e,s)}),r.element.queue("tabs",function(){f(e,n)}),r.load(r.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";t.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},destroy:function(){var e=this.options;return this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var e=t.data(this,"href.tabs");e&&(this.href=e);var i=t(this).unbind(".tabs");t.each(["href","load","cache"],function(t,e){i.removeData(e+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){t.data(this,"destroy.tabs")?t(this).remove():t(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")}),e.cookie&&this._cookie(null,e.cookie),this},add:function(i,s,n){n===e&&(n=this.anchors.length);var a=this,r=this.options,o=t(r.tabTemplate.replace(/#\{href\}/g,i).replace(/#\{label\}/g,s)),l=i.indexOf("#")?this._tabId(t("a",o)[0]):i.replace("#","");o.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var h=a.element.find("#"+l);return h.length||(h=t(r.panelTemplate).attr("id",l).data("destroy.tabs",!0)),h.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),n>=this.lis.length?(o.appendTo(this.list),h.appendTo(this.list[0].parentNode)):(o.insertBefore(this.lis[n]),h.insertBefore(this.panels[n])),r.disabled=t.map(r.disabled,function(t,e){return t>=n?++t:t}),this._tabify(),1==this.anchors.length&&(r.selected=0,o.addClass("ui-tabs-selected ui-state-active"),h.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[0],a.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[n],this.panels[n])),this},remove:function(e){e=this._getIndex(e);var i=this.options,s=this.lis.eq(e).remove(),n=this.panels.eq(e).remove();return s.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(e+(e+1<this.anchors.length?1:-1)),i.disabled=t.map(t.grep(i.disabled,function(t,i){return t!=e}),function(t,i){return t>=e?--t:t}),this._tabify(),this._trigger("remove",null,this._ui(s.find("a")[0],n[0])),this},enable:function(e){e=this._getIndex(e);var i=this.options;if(-1!=t.inArray(e,i.disabled))return this.lis.eq(e).removeClass("ui-state-disabled"),i.disabled=t.grep(i.disabled,function(t,i){return t!=e}),this._trigger("enable",null,this._ui(this.anchors[e],this.panels[e])),this},disable:function(t){t=this._getIndex(t);var e=this.options;return t!=e.selected&&(this.lis.eq(t).addClass("ui-state-disabled"),e.disabled.push(t),e.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))),this},select:function(t){if(-1==(t=this._getIndex(t))){if(!this.options.collapsible||-1==this.options.selected)return this;t=this.options.selected}return this.anchors.eq(t).trigger(this.options.event+".tabs"),this},load:function(e){e=this._getIndex(e);var i=this,s=this.options,n=this.anchors.eq(e)[0],a=t.data(n,"load.tabs");if(this.abort(),!a||0!==this.element.queue("tabs").length&&t.data(n,"cache.tabs")){this.element.dequeue("tabs");return}if(this.lis.eq(e).addClass("ui-state-processing"),s.spinner){var r=t("span",n);r.data("label.tabs",r.html()).html(s.spinner)}return this.xhr=t.ajax(t.extend({},s.ajaxOptions,{url:a,success:function(a,r){i.element.find(i._sanitizeSelector(n.hash)).html(a),i._cleanup(),s.cache&&t.data(n,"cache.tabs",!0),i._trigger("load",null,i._ui(i.anchors[e],i.panels[e]));try{s.ajaxOptions.success(a,r)}catch(o){}},error:function(t,a,r){i._cleanup(),i._trigger("load",null,i._ui(i.anchors[e],i.panels[e]));try{s.ajaxOptions.error(t,a,e,n)}catch(o){}}})),i.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(t,e){return this.anchors.eq(t).removeData("cache.tabs").data("load.tabs",e),this},length:function(){return this.anchors.length}}),t.extend(t.ui.tabs,{version:"1.8.22"}),t.extend(t.ui.tabs.prototype,{rotation:null,rotate:function(t,e){var i=this,s=this.options,n=i._rotate||(i._rotate=function(e){clearTimeout(i.rotation),i.rotation=setTimeout(function(){var t=s.selected;i.select(++t<i.anchors.length?t:0)},t),e&&e.stopPropagation()}),a=i._unrotate||(i._unrotate=e?function(t){n()}:function(t){t.clientX&&i.rotate(null)});return t?(this.element.bind("tabsshow",n),this.anchors.bind(s.event+".tabs",a),n()):(clearTimeout(i.rotation),this.element.unbind("tabsshow",n),this.anchors.unbind(s.event+".tabs",a),delete this._rotate,delete this._unrotate),this}})}(jQuery),function(t,e){var i=0,s={},n={},a=Array.prototype.slice,r=function(e){return t.isArray(e)?e:[e]},o="id",l="form",h="disabled",c="wizard",d="default",u="number",f="object",p="string",m="boolean",g="afterBackward",v="afterDestroy",$="afterForward",b="afterSelect",y="beforeBackward",w="beforeDestroy",_="beforeForward",k="beforeSelect";t.each("branch form header step wrapper".split(" "),function(){s[this]="."+(n[this]=c+"-"+this)}),t.widget("kf."+c,{version:"1.0.0",options:{animations:{show:{options:{duration:0},properties:{opacity:"show"}},hide:{options:{duration:0},properties:{opacity:"hide"}}},backward:".backward",branches:".branch",disabled:!1,enableSubmit:!1,forward:".forward",header:":header:first",initialStep:0,stateAttribute:"data-state",stepClasses:{current:"current",exclude:"exclude",stop:"stop",submit:"submit",unidirectional:"unidirectional"},steps:".step",submit:":submit",transitions:{},unidirectional:!1,afterBackward:null,afterDestroy:null,afterForward:null,afterSelect:null,beforeBackward:null,beforeDestroy:null,beforeForward:null,beforeSelect:null,create:null},_create:function(){var e,a,h=this,u=h.options,f=h.element,p=f.find(u.steps).eq(0).parent();f[0].elements?e=f:(e=f.find(l)).length||(e=f.closest(l)),(a=f.find(u.header)).length||(a=e.find(u.header)),h.elements={form:e.addClass(n.form),submit:e.find(u.submit),forward:e.find(u.forward),backward:e.find(u.backward),header:a.addClass(n.header),steps:f.find(u.steps).hide().addClass(n.step),branches:f.find(u.branches).add(p).addClass(n.branch),stepsWrapper:p.addClass(n.wrapper),wizard:f.addClass(c)},p.attr(o)||p.attr(o,c+"-"+ ++i),h.elements.forward.click(function(t){t.preventDefault(),h.forward(t)}),h.elements.backward.click(function(t){t.preventDefault(),h.backward(t)}),h._currentState={branchesActivated:[],stepsActivated:[]},h._stepCount=h.elements.steps.length,h._lastStepIndex=h._stepCount-1,h._branchLabels=[],h.elements.steps.each(function(e){h._branchLabels[e]=t(this).parent().attr(o)}),h._excludesFilter=function(){return!t(this).hasClass(u.stepClasses.exclude)},u.transitions[d]||(u.transitions[d]=function(t){return h.stepIndex(t.nextAll(s.step))}),h.select.apply(h,r(u.initialStep))},_fastForward:function(i,s,n){var a=0,r=this,o=r._currentState.stepIndex,l=[o];t.isFunction(s)&&(n=s,s=e),function e(){r._transition(o,function(h,c){if(-1===(o=r.stepIndex(h,c)))throw Error('[_fastForward]: Invalid step "'+h+'"');if(t.inArray(o,l)>=0)throw Error('[_fastForward]: Recursion detected on step "'+h+'"');l.push(o),o===r._lastStepIndex||(s?++a:o)===i?n.call(r,o,l):e()})}()},_find:function(e,i,s){var n,a,o,l,h,c=[],d=i instanceof jQuery?i:t(i);function m(t,e){if(e===l)return n=e,!1}if(null!==e&&d.length)for(a=0,o=(e=r(e)).length;a<o;a++)n=null,(h=typeof(l=e[a]))===u?n=d.get(l):h===p?n=document.getElementById(l.replace("#","")):h===f&&(l instanceof jQuery&&l.length&&(l=l[0]),l.nodeType&&d.each(m)),n&&c.push(n);return!1===s?c:t(c)},_move:function(i,s,n,a,r){var o=this,l=o._currentState;function h(i,s){r.call(o,i,t.isArray(a)?a:!1!==a?s:e)}typeof s===m&&(r=a,a=n,n=s,s=e),!0===n?i>0?o._fastForward(i,n,h):r.call(o,l.stepsActivated[Math.max(0,i+(l.stepsActivated.length-1))]):-1!==(i=o.stepIndex(i,s))&&(i>l.stepIndex?o._fastForward(i,h):h.call(o,i))},_state:function(e,i){if(!this.isValidStepIndex(e))return null;this.options;var n=t.extend(!0,{},this._currentState);i=r(i||e),n.step=this.elements.steps.eq(e),n.branch=n.step.parent(),n.branchStepCount=n.branch.children(s.step).length,n.isMovingForward=e>n.stepIndex,n.stepIndexInBranch=n.branch.children(s.step).index(n.step);for(var a,o,l,h=0,c=i.length;h<c;h++)e=i[h],a=this._branchLabels[e],!n.stepIndex||n.stepIndex<e?0>t.inArray(e,n.stepsActivated)&&(n.stepsActivated.push(e),0>t.inArray(a,n.branchesActivated)&&n.branchesActivated.push(a)):n.stepIndex>e&&(o=t.inArray(a,n.branchesActivated)+1,l=t.inArray(e,n.stepsActivated)+1,o>0&&n.branchesActivated.splice(o,n.branchesActivated.length-1),l>0&&n.stepsActivated.splice(l,n.stepsActivated.length-1)),n.stepIndex=e,n.branchLabel=a;return n.stepsComplete=Math.max(0,this._find(n.stepsActivated,this.elements.steps).filter(this._excludesFilter).length-1),n.stepsPossible=Math.max(0,this._find(n.branchesActivated,this.elements.branches).children(s.step).filter(this._excludesFilter).length-1),t.extend(n,{branchLabel:this._branchLabels[e],isFirstStep:0===e,isFirstStepInBranch:0===n.stepIndexInBranch,isLastStep:e===this._lastStepIndex,isLastStepInBranch:n.stepIndexInBranch===n.branchStepCount-1,percentComplete:100*n.stepsComplete/n.stepsPossible,stepsRemaining:n.stepsPossible-n.stepsComplete}),n},_transition:function(i,s,n){var o=this;t.isFunction(i)?(n=i,i=o._currentState.stepIndex,s=e):t.isFunction(s)&&(n=s,s=e);var l,h=o.options,c=o.step(i,s),u=c.attr(h.stateAttribute),f=u?h.transitions[u]:h.transitions[d];return e!==(l=t.isFunction(f)?f.call(o,c,function(){return n.apply(o,a.call(arguments))}):u)&&!1!==l&&n.apply(o,r(l)),l},_update:function(e,i){var s=this._currentState,n=this.options;if(s.step){if(n.disabled||!i||i.stepIndex===s.stepIndex||!this._trigger(k,e,i)||i.isMovingForward&&!this._trigger(_,e,i)||!i.isMovingForward&&!this._trigger(y,e,i))return;s.step.removeClass(n.stepClasses.current).animate(n.animations.hide.properties,t.extend({},n.animations.hide.options))}this._currentState=i,i.step.addClass(n.stepClasses.current).animate(n.animations.show.properties,t.extend({},n.animations.show.options)),i.isFirstStep||n.unidirectional||i.step.hasClass(n.stepClasses.unidirectional)?this.elements.backward.attr(h,!0):this.elements.backward.removeAttr(h),i.isLastStepInBranch&&!i.step.attr(n.stateAttribute)||i.step.hasClass(n.stepClasses.stop)?this.elements.forward.attr(h,!0):this.elements.forward.removeAttr(h),n.enableSubmit||i.step.hasClass(n.stepClasses.submit)?this.elements.submit.removeAttr(h):this.elements.submit.attr(h,!0),s.step&&(this._trigger(b,e,i),this._trigger(i.isMovingForward?$:g,e,i))},backward:function(t,i){typeof t===u&&(i=t,t=e),i===e&&(i=1),!this._currentState.isFirstStep&&typeof i===u&&this._move(-i,!0,!1,function(e,i){this._update(t,this._state(e,i))})},branch:function(t){return arguments.length?this._find(t,this.elements.branches):this._currentState.branch},branches:function(t){return arguments.length?this.branch(t).children(s.branch):this.elements.branches},branchesActivated:function(){return this._find(this._currentState.branchesActivated,this.elements.branches)},destroy:function(){var e=this.elements;this._trigger(w,null,this.state())&&(this.element.removeClass(c),e.form.removeClass(n.form),e.header.removeClass(n.header),e.steps.show().removeClass(n.step),e.stepsWrapper.removeClass(n.wrapper),e.branches.removeClass(n.branch),t.Widget.prototype.destroy.call(this),this._trigger(v))},form:function(){return this.elements.form},forward:function(t,i,s){typeof t===u&&(s=i,i=t,t=e),i===e&&(i=1),!this._currentState.isLastStep&&typeof i===u&&this._move(i,!0,s,function(e,i){this._update(t,this._state(e,i))})},isValidStep:function(t,e){return this.isValidStepIndex(this.stepIndex(t,e))},isValidStepIndex:function(t){return typeof t===u&&t>=0&&t<=this._lastStepIndex},stepCount:function(){return this._stepCount},select:function(i,s,n,a,r){i instanceof t.Event||(r=a,a=n,n=s,s=i,i=e),s!==e&&(t.isArray(s)?(r=a,a=n,n=s[1],s=s[0]):typeof n===m?(r=a,a=n,n=e):t.isArray(n)&&(r=n,n=e),this._move(s,n,a,r,function(t,e){this._update(i,this._state(t,e))}))},state:function(i,s,n){return arguments.length?(t.isArray(i)?(n=s,s=i[1],i=i[0]):t.isArray(s)&&(n=s,s=e),this._state(this.stepIndex(i,s),n)):this._currentState},step:function(i,s){var a;return arguments.length?(t.isArray(i)&&(s=i[1],i=i[0]),typeof i===u?a=this._find(i,s!==e?this.steps(s):this.elements.steps):(a=this._find(i,this.elements.steps.add(this.elements.branches)))&&a.hasClass(n.branch)&&(a=this._find(s||0,this.steps(a))),a):this._currentState.step},stepIndex:function(i,n,a){var r;return arguments.length?(t.isArray(i)?(a=n,n=i[1],i=i[0]):typeof n===m&&(a=n,n=e),(r=this.step(i,n))?(a?r.siblings(s.step).andSelf():this.elements.steps).index(r):-1):this._currentState.stepIndex},steps:function(t){return arguments.length?this.branch(t).children(s.step):this.elements.steps},stepsActivated:function(){return this._find(this._currentState.stepsActivated,this.elements.steps)},submit:function(){this.elements.form.submit()}})}(jQuery),function(t){t.extend(t.fn,{validate:function(e){if(!this.length){e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var i=t.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(e){function s(){var s;return!i.settings.submitHandler||(i.submitButton&&(s=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&s.remove(),!1)}return(i.settings.debug&&e.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)}))),i},valid:function(){if(t(this[0]).is("form"))return this.validate().form();var e=!0,i=t(this[0].form).validate();return this.each(function(){e=e&&i.element(this)}),e},removeAttrs:function(e){var i={},s=this;return t.each(e.split(/\s/),function(t,e){i[e]=s.attr(e),s.removeAttr(e)}),i},rules:function(e,i){var s=this[0];if(e){var n=t.data(s.form,"validator").settings,a=n.rules,r=t.validator.staticRules(s);switch(e){case"add":t.extend(r,t.validator.normalizeRule(i)),delete r.messages,a[s.name]=r,i.messages&&(n.messages[s.name]=t.extend(n.messages[s.name],i.messages));break;case"remove":if(!i)return delete a[s.name],r;var o={};return t.each(i.split(/\s/),function(t,e){o[e]=r[e],delete r[e]}),o}}var l=t.validator.normalizeRules(t.extend({},t.validator.classRules(s),t.validator.attributeRules(s),t.validator.dataRules(s),t.validator.staticRules(s)),s);if(l.required){var h=l.required;delete l.required,l=t.extend({required:h},l)}return l}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"span",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t,e){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t,e){!this.checkable(t)&&(t.name in this.submitted||!this.optional(t))&&this.element(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t,e){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"Required",remote:"Please fix this field.",email:"Wrong email.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var e=this.groups={};t.each(this.settings.groups,function(i,s){"string"==typeof s&&(s=s.split(/\s/)),t.each(s,function(t,s){e[s]=i})});var i=this.settings.rules;function s(e){var i=t.data(this[0].form,"validator"),s="on"+e.type.replace(/^validate/,"");i&&i.settings[s]&&i.settings[s].call(i,this[0],e)}t.each(i,function(e,s){i[e]=t.validator.normalizeRule(s)}),t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",s).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",s),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){e=this.validationTargetFor(this.clean(e)),this.lastElement=e,this.prepareElement(e),this.currentElements=t(e);var i=!1!==this.check(e);return i?delete this.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){for(var i in t.extend(this.errorMap,e),this.errorList=[],e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e=0;for(var i in t)e++;return e},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in i)&&!!e.objectLength(t(this).rules())&&(i[this.name]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.replace(" ",".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i=t(e).attr("type"),s=t(e).val();return"radio"===i||"checkbox"===i?t("input[name='"+t(e).attr("name")+"']:checked").val():"string"==typeof s?s.replace(/\r/g,""):s},check:function(e){e=this.validationTargetFor(this.clean(e));var i,s=t(e).rules(),n=!1,a=this.elementValue(e);for(var r in s){var o={method:r,parameters:s[r]};try{if(i=t.validator.methods[r].call(this,a,e,o.parameters),"dependency-mismatch"===i){n=!0;continue}if(n=!1,"pending"===i){this.toHide=this.toHide.not(this.errorsFor(e));return}if(!i)return this.formatAndAdd(e,o),!1}catch(l){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+o.method+"' method.",l),l}}if(!n)return this.objectLength(s)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg-"+i.toLowerCase())||e.attributes&&t(e).attr("data-msg-"+i.toLowerCase())},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){return this.findDefined(this.customMessage(e.name,i),this.customDataMessage(e,i),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,i){var s=this.defaultMessage(e,i.method),n=/\$?\{(\d+)\}/g;"function"==typeof s?s=s.call(this,i.parameters,e):n.test(s)&&(s=t.validator.format(s.replace(n,"{$1}"),i.parameters)),this.errorList.push({message:s,element:e}),this.errorMap[e.name]=s,this.submitted[e.name]=s},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e;for(t=0;this.errorList[t];t++){var i=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var s=this.errorsFor(e);s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.html(i)):(s=t("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(s=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(s).length||(this.settings.errorPlacement?this.settings.errorPlacement(s,t(e)):s.insertAfter(e))),!i&&this.settings.success&&(s.text(""),"string"==typeof this.settings.success?s.addClass(this.settings.success):this.settings.success(s,e)),this.toShow=this.toShow.add(s)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter(function(){return t(this).attr("for")===i})},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t,e){return t},string:function(e,i){return!!t(e,i.form).length},function:function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},s=t(e).attr("class");return s&&t.each(s.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){var i,s={},n=t(e),a=n[0].getAttribute("type");for(var r in t.validator.methods)"required"===r?(""===(i=n.get(0).getAttribute(r))&&(i=!0),i=!!i):i=n.attr(r),/min|max/.test(r)&&(null===a||/number|range|text/.test(a))&&(i=Number(i)),i?s[r]=i:a===r&&"range"!==a&&(s[r]=!0);return s.maxlength&&/-1|2147483647|524288/.test(s.maxlength)&&delete s.maxlength,s},dataRules:function(e){var i,s,n={},a=t(e);for(i in t.validator.methods)void 0!==(s=a.data("rule-"+i.toLowerCase()))&&(n[i]=s);return n},staticRules:function(e){var i={},s=t.data(e.form,"validator");return s.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(s,n){if(!1===n){delete e[s];return}if(n.param||n.depends){var a=!0;switch(typeof n.depends){case"string":a=!!t(n.depends,i.form).length;break;case"function":a=n.depends.call(i,i)}a?e[s]=void 0===n.param||n.param:delete e[s]}}),t.each(e,function(s,n){e[s]=t.isFunction(n)?n(i):n}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==s?s:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var n=t(i).val();return n&&n.length>0}return this.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},email:function(t,e){return this.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i=0,s=0,n=!1;t=t.replace(/\D/g,"");for(var a=t.length-1;a>=0;a--)s=parseInt(t.charAt(a),10),n&&(s*=2)>9&&(s-=9),i+=s,n=!n;return i%10==0},minlength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n>=s},maxlength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n<=s},rangelength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n>=s[0]&&n<=s[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},equalTo:function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()}),e===n.val()},remote:function(e,i,s){if(this.optional(i))return"dependency-mismatch";var n=this.previousValue(i);if(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),n.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=n.message,s="string"==typeof s&&{url:s}||s,n.old===e)return n.valid;n.old=e;var a=this;this.startRequest(i);var r={};return r[i.name]=e,t.ajax(t.extend(!0,{url:s,mode:"abort",port:"validate"+i.name,dataType:"json",data:r,success:function(s){a.settings.messages[i.name].remote=n.originalMessage;var r=!0===s||"true"===s;if(r){var o=a.formSubmitted;a.prepareElement(i),a.formSubmitted=o,a.successList.push(i),delete a.invalid[i.name],a.showErrors()}else{var l={},h=s||a.defaultMessage(i,"remote");l[i.name]=n.message=t.isFunction(h)?h(e):h,a.invalid[i.name]=!0,a.showErrors(l)}n.valid=r,a.stopRequest(i,r)}},s)),"pending"}}}),t.format=t.validator.format}(jQuery),function(t){var e={};if(t.ajaxPrefilter)t.ajaxPrefilter(function(t,i,s){var n=t.port;"abort"===t.mode&&(e[n]&&e[n].abort(),e[n]=s)});else{var i=t.ajax;t.ajax=function(s){var n=("mode"in s?s:t.ajaxSettings).mode,a=("port"in s?s:t.ajaxSettings).port;return"abort"===n?(e[a]&&e[a].abort(),e[a]=i.apply(this,arguments),e[a]):i.apply(this,arguments)}}}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,s){return this.bind(i,function(i){var n=t(i.target);if(n.is(e))return s.apply(n,arguments)})}})}(jQuery),function(t){t.fn.niceSelect=function(e){if("string"==typeof e)return"update"==e?this.each(function(){var e=t(this),s=t(this).next(".nice-select"),n=s.hasClass("open");s.length&&(s.remove(),i(e),n&&e.next().trigger("click"))}):"destroy"==e?(this.each(function(){var e=t(this),i=t(this).next(".nice-select");i.length&&(i.remove(),e.css("display",""))}),0==t(".nice-select").length&&t(document).off(".nice_select")):console.log('Method "'+e+'" does not exist.'),this;function i(e){e.after(t("<div></div>").addClass("nice-select").addClass(e.attr("class")||"").addClass(e.attr("disabled")?"disabled":"").attr("tabindex",e.attr("disabled")?null:"0").html('<span class="current"></span><ul class="list"></ul>'));var i=e.next(),s=e.find("option"),n=e.find("option:selected");i.find(".current").html(n.data("display")||n.text()),s.each(function(e){var s=t(this),n=s.data("display");i.find("ul").append(t("<li></li>").attr("data-value",s.val()).attr("data-display",n||null).addClass("option"+(s.is(":selected")?" selected":"")+(s.is(":disabled")?" disabled":"")).html(s.text()))})}this.hide(),this.each(function(){var e=t(this);e.next().hasClass("nice-select")||i(e)}),t(document).off(".nice_select"),t(document).on("click.nice_select",".nice-select",function(e){var i=t(this);t(".nice-select").not(i).removeClass("open"),i.toggleClass("open"),i.hasClass("open")?(i.find(".option"),i.find(".focus").removeClass("focus"),i.find(".selected").addClass("focus")):i.focus()}),t(document).on("click.nice_select",function(e){0===t(e.target).closest(".nice-select").length&&t(".nice-select").removeClass("open").find(".option")}),t(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(e){var i=t(this),s=i.closest(".nice-select");s.find(".selected").removeClass("selected"),i.addClass("selected");var n=i.data("display")||i.text();s.find(".current").text(n),s.prev("select").val(i.data("value")).trigger("change")}),t(document).on("keydown.nice_select",".nice-select",function(e){var i=t(this),s=t(i.find(".focus")||i.find(".list .option.selected"));if(32==e.keyCode||13==e.keyCode)return i.hasClass("open")?s.trigger("click"):i.trigger("click"),!1;if(40==e.keyCode){if(i.hasClass("open")){var n=s.nextAll(".option:not(.disabled)").first();n.length>0&&(i.find(".focus").removeClass("focus"),n.addClass("focus"))}else i.trigger("click");return!1}if(38==e.keyCode){if(i.hasClass("open")){var a=s.prevAll(".option:not(.disabled)").first();a.length>0&&(i.find(".focus").removeClass("focus"),a.addClass("focus"))}else i.trigger("click");return!1}if(27==e.keyCode)i.hasClass("open")&&i.trigger("click");else if(9==e.keyCode&&i.hasClass("open"))return!1});var s=document.createElement("a").style;return s.cssText="pointer-events:auto","auto"!==s.pointerEvents&&t("html").addClass("no-csspointerevents"),this}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){var i="plugin_hideShowPassword",s=["show","innerToggle"],n=32,a=13,r={show:"infer",innerToggle:!1,enable:function(){var t=document.body,e=document.createElement("input"),i=!0;t||(t=document.createElement("body")),e=t.appendChild(e);try{e.setAttribute("type","text")}catch(s){i=!1}return t.removeChild(e),i}(),triggerOnToggle:!1,className:"hideShowPassword-field",initEvent:"hideShowPasswordInit",changeEvent:"passwordVisibilityChange",props:{autocapitalize:"off",autocomplete:"off",autocorrect:"off",spellcheck:"false"},toggle:{element:'<button type="button">',className:"hideShowPassword-toggle",touchSupport:"undefined"!=typeof Modernizr&&Modernizr.touchevents,attachToEvent:"click.hideShowPassword",attachToTouchEvent:"touchstart.hideShowPassword mousedown.hideShowPassword",attachToKeyEvent:"keyup",attachToKeyCodes:!0,styles:{position:"absolute"},touchStyles:{pointerEvents:"none"},position:"infer",verticalAlign:"middle",offset:0,attr:{role:"button","aria-label":"Show Password",title:"Show Password",tabIndex:0}},wrapper:{element:"<div>",className:"hideShowPassword-wrapper",enforceWidth:!1,styles:{position:"relative"},inheritStyles:["display","verticalAlign","marginTop","marginRight","marginBottom","marginLeft"],innerElementStyles:{marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},states:{shown:{className:"hideShowPassword-shown",changeEvent:"passwordShown",props:{type:"text"},toggle:{className:"hideShowPassword-toggle-hide",content:"Hide",attr:{"aria-pressed":"true",title:"Hide Password"}}},hidden:{className:"hideShowPassword-hidden",changeEvent:"passwordHidden",props:{type:"password"},toggle:{className:"hideShowPassword-toggle-show",content:"Show",attr:{"aria-pressed":"false",title:"Show Password"}}}}};function o(e,i){this.element=t(e),this.wrapperElement=t(),this.toggleElement=t(),this.init(i)}o.prototype={init:function(e){this.update(e,r)&&(this.element.addClass(this.options.className),this.options.innerToggle&&(this.wrapElement(this.options.wrapper),this.initToggle(this.options.toggle),"string"==typeof this.options.innerToggle&&(this.toggleElement.hide(),this.element.one(this.options.innerToggle,t.proxy(function(){this.toggleElement.show()},this)))),this.element.trigger(this.options.initEvent,[this]))},update:function(t,e){return this.options=this.prepareOptions(t,e),this.updateElement()&&this.element.trigger(this.options.changeEvent,[this]).trigger(this.state().changeEvent,[this]),this.options.enable},toggle:function(t){return t=t||"toggle",this.update({show:t})},prepareOptions:function(e,i){var s,r=e||{},o=[];if(i=i||this.options,e=t.extend(!0,{},i,e),r.hasOwnProperty("wrapper")&&r.wrapper.hasOwnProperty("inheritStyles")&&(e.wrapper.inheritStyles=r.wrapper.inheritStyles),e.enable&&("toggle"===e.show?e.show=this.isType("hidden",e.states):"infer"===e.show&&(e.show=this.isType("shown",e.states)),"infer"===e.toggle.position&&(e.toggle.position="rtl"===this.element.css("text-direction")?"left":"right"),!t.isArray(e.toggle.attachToKeyCodes))){if(!0===e.toggle.attachToKeyCodes)switch((s=t(e.toggle.element)).prop("tagName").toLowerCase()){case"button":case"input":break;case"a":if(s.filter("[href]").length){o.push(n);break}default:o.push(n,a)}e.toggle.attachToKeyCodes=o}return e},updateElement:function(){return!(!this.options.enable||this.isType())&&(this.element.prop(t.extend({},this.options.props,this.state().props)).addClass(this.state().className).removeClass(this.otherState().className),this.options.triggerOnToggle&&this.element.trigger(this.options.triggerOnToggle,[this]),this.updateToggle(),!0)},isType:function(t,i){return(i=i||this.options.states)[t=t||this.state(e,e,i).props.type]&&(t=i[t].props.type),this.element.prop("type")===t},state:function(t,i,s){return s=s||this.options.states,t===e&&(t=this.options.show),"boolean"==typeof t&&(t=t?"shown":"hidden"),i&&(t="shown"===t?"hidden":"shown"),s[t]},otherState:function(t){return this.state(t,!0)},wrapElement:function(e){var i,s=e.enforceWidth;return this.wrapperElement.length||(i=this.element.outerWidth(),t.each(e.inheritStyles,t.proxy(function(t,i){e.styles[i]=this.element.css(i)},this)),this.element.css(e.innerElementStyles).wrap(t(e.element).addClass(e.className).css(e.styles)),this.wrapperElement=this.element.parent(),!0===s&&(s=this.wrapperElement.outerWidth()!==i&&i),!1!==s&&this.wrapperElement.css("width",s)),this.wrapperElement},initToggle:function(e){return!this.toggleElement.length&&(this.toggleElement=t(e.element).attr(e.attr).addClass(e.className).css(e.styles).appendTo(this.wrapperElement),this.updateToggle(),this.positionToggle(e.position,e.verticalAlign,e.offset),e.touchSupport?(this.toggleElement.css(e.touchStyles),this.element.on(e.attachToTouchEvent,t.proxy(this.toggleTouchEvent,this))):this.toggleElement.on(e.attachToEvent,t.proxy(this.toggleEvent,this)),e.attachToKeyCodes.length&&this.toggleElement.on(e.attachToKeyEvent,t.proxy(this.toggleKeyEvent,this))),this.toggleElement},positionToggle:function(t,e,i){var s={};switch(s[t]=i,e){case"top":case"bottom":s[e]=i;break;case"middle":s.top="50%",s.marginTop=-(this.toggleElement.outerHeight()/2)}return this.toggleElement.css(s)},updateToggle:function(t,e){var i,s;return this.toggleElement.length&&(i="padding-"+this.options.toggle.position,t=t||this.state().toggle,e=e||this.otherState().toggle,this.toggleElement.attr(t.attr).addClass(t.className).removeClass(e.className).html(t.content),s=this.toggleElement.outerWidth()+2*this.options.toggle.offset,this.element.css(i)!==s&&this.element.css(i,s)),this.toggleElement},toggleEvent:function(t){t.preventDefault(),this.toggle()},toggleKeyEvent:function(e){t.each(this.options.toggle.attachToKeyCodes,t.proxy(function(t,i){if(e.which===i)return this.toggleEvent(e),!1},this))},toggleTouchEvent:function(t){var e,i,s,n=this.toggleElement.offset().left;n&&(e=t.pageX||t.originalEvent.pageX,"left"===this.options.toggle.position?(n+=this.toggleElement.outerWidth(),i=e,s=n):(i=n,s=e),s>=i&&this.toggleEvent(t))}},t.fn.hideShowPassword=function(){var e={};return t.each(arguments,function(i,n){var a={};if("object"==typeof n)a=n;else{if(!s[i])return!1;a[s[i]]=n}t.extend(!0,e,a)}),this.each(function(){var s=t(this),n=s.data(i);n?n.update(e):s.data(i,new o(this,e))})},t.each({show:!0,hide:!1,toggle:"toggle"},function(e,i){t.fn[e+"Password"]=function(t,e){return this.hideShowPassword(i,t,e)}})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";function e(){var t=document.createElement("input");return t.setAttribute("type","range"),"text"!==t.type}Number.isNaN=Number.isNaN||function(t){return"number"==typeof t&&t!=t};var i="rangeslider",s=0,n=e(),a={polyfill:!0,orientation:"horizontal",rangeClass:"rangeslider",disabledClass:"rangeslider--disabled",activeClass:"rangeslider--active",horizontalClass:"rangeslider--horizontal",verticalClass:"rangeslider--vertical",fillClass:"rangeslider__fill",handleClass:"rangeslider__handle",startEvent:["mousedown","touchstart","pointerdown"],moveEvent:["mousemove","touchmove","pointermove"],endEvent:["mouseup","touchend","pointerup"]},r={orientation:{horizontal:{dimension:"width",direction:"left",directionStyle:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",directionStyle:"bottom",coordinate:"y"}}};function o(t,e){var i=Array.prototype.slice.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)}function l(t,e){return e=e||100,function(){if(!t.debouncing){var i=Array.prototype.slice.apply(arguments);t.lastReturnVal=t.apply(window,i),t.debouncing=!0}return clearTimeout(t.debounceTimeout),t.debounceTimeout=setTimeout(function(){t.debouncing=!1},e),t.lastReturnVal}}function h(t){return t&&(0===t.offsetWidth||0===t.offsetHeight||!1===t.open)}function c(t){for(var e=[],i=t.parentNode;h(i);)e.push(i),i=i.parentNode;return e}function d(t,e){var i=c(t),s=i.length,n=[],a=t[e];function r(t){void 0!==t.open&&(t.open=!t.open)}if(s){for(var o=0;o<s;o++)n[o]=i[o].style.cssText,i[o].style.setProperty?i[o].style.setProperty("display","block","important"):i[o].style.cssText+=";display: block !important",i[o].style.height="0",i[o].style.overflow="hidden",i[o].style.visibility="hidden",r(i[o]);a=t[e];for(var l=0;l<s;l++)i[l].style.cssText=n[l],r(i[l])}return a}function u(t,e){var i=parseFloat(t);return Number.isNaN(i)?e:i}function f(t){return t.charAt(0).toUpperCase()+t.substr(1)}function p(e,h){if(this.$window=t(window),this.$document=t(document),this.$element=t(e),this.options=t.extend({},a,h),this.polyfill=this.options.polyfill,this.orientation=this.$element[0].getAttribute("data-orientation")||this.options.orientation,this.onInit=this.options.onInit,this.onSlide=this.options.onSlide,this.onSlideEnd=this.options.onSlideEnd,this.DIMENSION=r.orientation[this.orientation].dimension,this.DIRECTION=r.orientation[this.orientation].direction,this.DIRECTION_STYLE=r.orientation[this.orientation].directionStyle,this.COORDINATE=r.orientation[this.orientation].coordinate,this.polyfill&&n)return!1;this.identifier="js-"+i+"-"+s++,this.startEvent=this.options.startEvent.join("."+this.identifier+" ")+"."+this.identifier,this.moveEvent=this.options.moveEvent.join("."+this.identifier+" ")+"."+this.identifier,this.endEvent=this.options.endEvent.join("."+this.identifier+" ")+"."+this.identifier,this.toFixed=(this.step+"").replace(".","").length-1,this.$fill=t('<div class="'+this.options.fillClass+'" />'),this.$handle=t('<div class="'+this.options.handleClass+'" />'),this.$range=t('<div class="'+this.options.rangeClass+" "+this.options[this.orientation+"Class"]+'" id="'+this.identifier+'" />').insertAfter(this.$element).prepend(this.$fill,this.$handle),this.$element.css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",opacity:"0"}),this.handleDown=t.proxy(this.handleDown,this),this.handleMove=t.proxy(this.handleMove,this),this.handleEnd=t.proxy(this.handleEnd,this),this.init();var c=this;this.$window.on("resize."+this.identifier,l(function(){o(function(){c.update(!1,!1)},300)},20)),this.$document.on(this.startEvent,"#"+this.identifier+":not(."+this.options.disabledClass+")",this.handleDown),this.$element.on("change."+this.identifier,function(t,e){if(!e||e.origin!==c.identifier){var i=t.target.value,s=c.getPositionFromValue(i);c.setPosition(s)}})}return p.prototype.init=function(){this.update(!0,!1),this.onInit&&"function"==typeof this.onInit&&this.onInit()},p.prototype.update=function(t,e){(t=t||!1)&&(this.min=u(this.$element[0].getAttribute("min"),0),this.max=u(this.$element[0].getAttribute("max"),100),this.value=u(this.$element[0].value,Math.round(this.min+(this.max-this.min)/2)),this.step=u(this.$element[0].getAttribute("step"),1)),this.handleDimension=d(this.$handle[0],"offset"+f(this.DIMENSION)),this.rangeDimension=d(this.$range[0],"offset"+f(this.DIMENSION)),this.maxHandlePos=this.rangeDimension-this.handleDimension,this.grabPos=this.handleDimension/2,this.position=this.getPositionFromValue(this.value),this.$element[0].disabled?this.$range.addClass(this.options.disabledClass):this.$range.removeClass(this.options.disabledClass),this.setPosition(this.position,e)},p.prototype.handleDown=function(t){if(t.preventDefault(),this.$document.on(this.moveEvent,this.handleMove),this.$document.on(this.endEvent,this.handleEnd),this.$range.addClass(this.options.activeClass),!((" "+t.target.className+" ").replace(/[\n\t]/g," ").indexOf(this.options.handleClass)>-1)){var e=this.getRelativePosition(t),i=this.$range[0].getBoundingClientRect()[this.DIRECTION],s=this.getPositionFromNode(this.$handle[0])-i,n="vertical"===this.orientation?this.maxHandlePos-(e-this.grabPos):e-this.grabPos;this.setPosition(n),e>=s&&e<s+this.handleDimension&&(this.grabPos=e-s)}},p.prototype.handleMove=function(t){t.preventDefault();var e=this.getRelativePosition(t),i="vertical"===this.orientation?this.maxHandlePos-(e-this.grabPos):e-this.grabPos;this.setPosition(i)},p.prototype.handleEnd=function(t){t.preventDefault(),this.$document.off(this.moveEvent,this.handleMove),this.$document.off(this.endEvent,this.handleEnd),this.$range.removeClass(this.options.activeClass),this.$element.trigger("change",{origin:this.identifier}),this.onSlideEnd&&"function"==typeof this.onSlideEnd&&this.onSlideEnd(this.position,this.value)},p.prototype.cap=function(t,e,i){return t<e?e:t>i?i:t},p.prototype.setPosition=function(t,e){var i,s;void 0===e&&(e=!0),i=this.getValueFromPosition(this.cap(t,0,this.maxHandlePos)),s=this.getPositionFromValue(i),this.$fill[0].style[this.DIMENSION]=s+this.grabPos+"px",this.$handle[0].style[this.DIRECTION_STYLE]=s+"px",this.setValue(i),this.position=s,this.value=i,e&&this.onSlide&&"function"==typeof this.onSlide&&this.onSlide(s,i)},p.prototype.getPositionFromNode=function(t){for(var e=0;null!==t;)e+=t.offsetLeft,t=t.offsetParent;return e},p.prototype.getRelativePosition=function(t){var e=f(this.COORDINATE),i=this.$range[0].getBoundingClientRect()[this.DIRECTION],s=0;return void 0!==t.originalEvent["client"+e]?s=t.originalEvent["client"+e]:t.originalEvent.touches&&t.originalEvent.touches[0]&&void 0!==t.originalEvent.touches[0]["client"+e]?s=t.originalEvent.touches[0]["client"+e]:t.currentPoint&&void 0!==t.currentPoint[this.COORDINATE]&&(s=t.currentPoint[this.COORDINATE]),s-i},p.prototype.getPositionFromValue=function(t){var e,i;return Number.isNaN(e=(t-this.min)/(this.max-this.min))?0:e*this.maxHandlePos},p.prototype.getValueFromPosition=function(t){var e,i;return e=t/(this.maxHandlePos||1),Number((i=this.step*Math.round(e*(this.max-this.min)/this.step)+this.min).toFixed(this.toFixed))},p.prototype.setValue=function(t){(t!==this.value||""===this.$element[0].value)&&this.$element.val(t).trigger("input",{origin:this.identifier})},p.prototype.destroy=function(){this.$document.off("."+this.identifier),this.$window.off("."+this.identifier),this.$element.off("."+this.identifier).removeAttr("style").removeData("plugin_"+i),this.$range&&this.$range.length&&this.$range[0].parentNode.removeChild(this.$range[0])},t.fn[i]=function(e){var s=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=t(this),a=n.data("plugin_"+i);a||n.data("plugin_"+i,a=new p(this,e)),"string"==typeof e&&a[e].apply(a,s)})},"rangeslider.js is available in jQuery context e.g $(selector).rangeslider(options);"}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return k.apply(null,arguments)}function e(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function n(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function a(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var i,s=[];for(i=0;i<t.length;++i)s.push(e(t[i],i));return s}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var i in e)o(e,i)&&(t[i]=e[i]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function h(t,e,i,s){return ev(t,e,i,s,!0).utc()}function c(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function d(t){if(null==t._isValid){var e=c(t),i=D.call(e.parsedDateParts,function(t){return null!=t}),s=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(s=s&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return s;t._isValid=s}return t._isValid}function u(t){var e=h(NaN);return null!=t?l(c(e),t):c(e).userInvalidated=!0,e}D=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,s=0;s<i;s++)if(s in e&&t.call(this,e[s],s,e))return!0;return!1};var f=t.momentProperties=[];function p(t,e){var i,n,a;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=c(e)),s(e._locale)||(t._locale=e._locale),0<f.length)for(i=0;i<f.length;i++)s(a=e[n=f[i]])||(t[n]=a);return t}var m=!1;function g(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===m&&(m=!0,t.updateOffset(this),m=!1)}function v(t){return t instanceof g||null!=t&&null!=t._isAMomentObject}function $(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function b(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=$(e)),i}function y(t,e,i){var s,n=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0;for(s=0;s<n;s++)(i&&t[s]!==e[s]||!i&&b(t[s])!==b(e[s]))&&r++;return r+a}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,i){var s=!0;return l(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),s){for(var n,a=[],r=0;r<arguments.length;r++){if(n="","object"==typeof arguments[r]){for(var o in n+="\n["+r+"] ",arguments[0])n+=o+": "+arguments[0][o]+", ";n=n.slice(0,-2)}else n=arguments[r];a.push(n)}w(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+Error().stack),s=!1}return i.apply(this,arguments)},i)}var k,D,C,x={};function S(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i),x[e]||(w(i),x[e]=!0)}function P(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function T(t,e){var s,n=l({},t);for(s in e)o(e,s)&&(i(t[s])&&i(e[s])?(n[s]={},l(n[s],t[s]),l(n[s],e[s])):null!=e[s]?n[s]=e[s]:delete n[s]);for(s in t)o(t,s)&&!o(e,s)&&i(t[s])&&(n[s]=l({},n[s]));return n}function M(t){null!=t&&this.set(t)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)o(t,e)&&i.push(e);return i};var A={};function E(t,e){var i=t.toLowerCase();A[i]=A[i+"s"]=A[e]=t}function I(t){return"string"==typeof t?A[t]||A[t.toLowerCase()]:void 0}function O(t){var e,i,s={};for(i in t)o(t,i)&&(e=I(i))&&(s[e]=t[i]);return s}var F={};function Y(t,e){F[t]=e}function L(t,e,i){var s=""+Math.abs(t);return(0<=t?i?"+":"":"-")+Math.pow(10,Math.max(0,e-s.length)).toString().substr(1)+s}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},N={};function R(t,e,i,s){var n=s;"string"==typeof s&&(n=function(){return this[s]()}),t&&(N[t]=n),e&&(N[e[0]]=function(){return L(n.apply(this,arguments),e[1],e[2])}),i&&(N[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function j(t,e){return t.isValid()?(W[e=B(e,t.localeData())]=W[e]||function(t){var e,i,s,n=t.match(z);for(e=0,i=n.length;e<i;e++)N[n[e]]?n[e]=N[n[e]]:n[e]=(s=n[e]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(e){var s,a="";for(s=0;s<i;s++)a+=P(n[s])?n[s].call(e,t):n[s];return a}}(e),W[e](t)):t.localeData().invalidDate()}function B(t,e){var i=5;function s(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;0<=i&&H.test(t);)t=t.replace(H,s),H.lastIndex=0,i-=1;return t}var q=/\d/,V=/\d\d/,U=/\d{3}/,K=/\d{4}/,G=/[+-]?\d{6}/,X=/\d\d?/,Z=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,J=/\d{1,3}/,tt=/\d{1,4}/,te=/[+-]?\d{1,6}/,ti=/\d+/,ts=/[+-]?\d+/,tn=/Z|[+-]\d\d:?\d\d/gi,ta=/Z|[+-]\d\d(?::?\d\d)?/gi,tr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,to={};function tl(t,e,i){to[t]=P(e)?e:function(t,s){return t&&i?i:e}}function th(t,e){return o(to,t)?to[t](e._strict,e._locale):RegExp(tc(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,s,n){return e||i||s||n})))}function tc(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var td={};function tu(t,e){var i,s=e;for("string"==typeof t&&(t=[t]),n(e)&&(s=function(t,i){i[e]=b(t)}),i=0;i<t.length;i++)td[t[i]]=s}function tf(t,e){tu(t,function(t,i,s,n){s._w=s._w||{},e(t,s._w,s,n)})}var tp=0,tm=1,tg=2,tv=3,t8=4,t$=5,tb=6,ty=7,tw=8;function t_(t){return tk(t)?366:365}function tk(t){return t%4==0&&t%100!=0||t%400==0}R("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),E("year","y"),Y("year",1),tl("Y",ts),tl("YY",X,V),tl("YYYY",tt,K),tl("YYYYY",te,G),tl("YYYYYY",te,G),tu(["YYYYY","YYYYYY"],tp),tu("YYYY",function(e,i){i[tp]=2===e.length?t.parseTwoDigitYear(e):b(e)}),tu("YY",function(e,i){i[tp]=t.parseTwoDigitYear(e)}),tu("Y",function(t,e){e[tp]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return b(t)+(68<b(t)?1900:2e3)};var tD,tC=tx("FullYear",!0);function tx(e,i){return function(s){return null!=s?(tP(this,e,s),t.updateOffset(this,i),this):tS(this,e)}}function tS(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function tP(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&tk(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),tT(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function tT(t,e){if(isNaN(t)||isNaN(e))return NaN;var i,s=(e%(i=12)+i)%i;return t+=(e-s)/12,1===s?tk(t)?29:28:31-s%7%2}tD=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return -1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),R("MMMM",0,0,function(t){return this.localeData().months(this,t)}),E("month","M"),Y("month",8),tl("M",X),tl("MM",X,V),tl("MMM",function(t,e){return e.monthsShortRegex(t)}),tl("MMMM",function(t,e){return e.monthsRegex(t)}),tu(["M","MM"],function(t,e){e[tm]=b(t)-1}),tu(["MMM","MMMM"],function(t,e,i,s){var n=i._locale.monthsParse(t,s,i._strict);null!=n?e[tm]=n:c(i).invalidMonth=t});var tM=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,tA="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tE="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function tI(t,e){var i;if(!t.isValid())return t;if("string"==typeof e){if(/^\d+$/.test(e))e=b(e);else if(!n(e=t.localeData().monthsParse(e)))return t}return i=Math.min(t.date(),tT(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function tO(e){return null!=e?(tI(this,e),t.updateOffset(this,!0),this):tS(this,"Month")}var tF=tr,t0=tr;function tY(){function t(t,e){return e.length-t.length}var e,i,s=[],n=[],a=[];for(e=0;e<12;e++)i=h([2e3,e]),s.push(this.monthsShort(i,"")),n.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));for(s.sort(t),n.sort(t),a.sort(t),e=0;e<12;e++)s[e]=tc(s[e]),n[e]=tc(n[e]);for(e=0;e<24;e++)a[e]=tc(a[e]);this._monthsRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+s.join("|")+")","i")}function tL(t){var e;if(t<100&&0<=t){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function tz(t,e,i){var s=7+e-i;return-((7+tL(t,0,s).getUTCDay()-e)%7)+s-1}function tH(t,e,i,s,n){var a,r,o=1+7*(e-1)+(7+i-s)%7+tz(t,s,n);return r=o<=0?t_(a=t-1)+o:o>t_(t)?(a=t+1,o-t_(t)):(a=t,o),{year:a,dayOfYear:r}}function tW(t,e,i){var s,n,a=tz(t.year(),e,i),r=Math.floor((t.dayOfYear()-a-1)/7)+1;return r<1?s=r+tN(n=t.year()-1,e,i):r>tN(t.year(),e,i)?(s=r-tN(t.year(),e,i),n=t.year()+1):(n=t.year(),s=r),{week:s,year:n}}function tN(t,e,i){var s=tz(t,e,i),n=tz(t+1,e,i);return(t_(t)-s+n)/7}function tR(t,e){return t.slice(e,7).concat(t.slice(0,e))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),Y("week",5),Y("isoWeek",5),tl("w",X),tl("ww",X,V),tl("W",X),tl("WW",X,V),tf(["w","ww","W","WW"],function(t,e,i,s){e[s.substr(0,1)]=b(t)}),R("d",0,"do","day"),R("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),R("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),R("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),tl("d",X),tl("e",X),tl("E",X),tl("dd",function(t,e){return e.weekdaysMinRegex(t)}),tl("ddd",function(t,e){return e.weekdaysShortRegex(t)}),tl("dddd",function(t,e){return e.weekdaysRegex(t)}),tf(["dd","ddd","dddd"],function(t,e,i,s){var n=i._locale.weekdaysParse(t,s,i._strict);null!=n?e.d=n:c(i).invalidWeekday=t}),tf(["d","e","E"],function(t,e,i,s){e[s]=b(t)});var t9="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),t3="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),tj="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tB=tr,tq=tr,t1=tr;function tV(){function t(t,e){return e.length-t.length}var e,i,s,n,a,r=[],o=[],l=[],c=[];for(e=0;e<7;e++)i=h([2e3,1]).day(e),s=this.weekdaysMin(i,""),n=this.weekdaysShort(i,""),a=this.weekdays(i,""),r.push(s),o.push(n),l.push(a),c.push(s),c.push(n),c.push(a);for(r.sort(t),o.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)o[e]=tc(o[e]),l[e]=tc(l[e]),c[e]=tc(c[e]);this._weekdaysRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+r.join("|")+")","i")}function t2(){return this.hours()%12||12}function t7(t,e){R(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function tU(t,e){return e._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,t2),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+t2.apply(this)+L(this.minutes(),2)}),R("hmmss",0,0,function(){return""+t2.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),t7("a",!0),t7("A",!1),E("hour","h"),Y("hour",13),tl("a",tU),tl("A",tU),tl("H",X),tl("h",X),tl("k",X),tl("HH",X,V),tl("hh",X,V),tl("kk",X,V),tl("hmm",Z),tl("hmmss",Q),tl("Hmm",Z),tl("Hmmss",Q),tu(["H","HH"],tv),tu(["k","kk"],function(t,e,i){var s=b(t);e[tv]=24===s?0:s}),tu(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),tu(["h","hh"],function(t,e,i){e[tv]=b(t),c(i).bigHour=!0}),tu("hmm",function(t,e,i){var s=t.length-2;e[tv]=b(t.substr(0,s)),e[t8]=b(t.substr(s)),c(i).bigHour=!0}),tu("hmmss",function(t,e,i){var s=t.length-4,n=t.length-2;e[tv]=b(t.substr(0,s)),e[t8]=b(t.substr(s,2)),e[t$]=b(t.substr(n)),c(i).bigHour=!0}),tu("Hmm",function(t,e,i){var s=t.length-2;e[tv]=b(t.substr(0,s)),e[t8]=b(t.substr(s))}),tu("Hmmss",function(t,e,i){var s=t.length-4,n=t.length-2;e[tv]=b(t.substr(0,s)),e[t8]=b(t.substr(s,2)),e[t$]=b(t.substr(n))});var t5,t4=tx("Hours",!0),t6={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:tA,monthsShort:tE,week:{dow:0,doy:6},weekdays:t9,weekdaysMin:tj,weekdaysShort:t3,meridiemParse:/[ap]\.?m?\.?/i},tK={},tG={};function tX(t){return t?t.toLowerCase().replace("_","-"):t}function tZ(t){var e=null;if(!tK[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=t5._abbr,require("./locale/"+t),tQ(e)}catch(i){}return tK[t]}function tQ(t,e){var i;return t&&((i=s(e)?et(t):tJ(t,e))?t5=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),t5._abbr}function tJ(t,e){if(null===e)return delete tK[t],null;var i,s=t6;if(e.abbr=t,null!=tK[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=tK[t]._config;else if(null!=e.parentLocale){if(null!=tK[e.parentLocale])s=tK[e.parentLocale]._config;else{if(null==(i=tZ(e.parentLocale)))return tG[e.parentLocale]||(tG[e.parentLocale]=[]),tG[e.parentLocale].push({name:t,config:e}),null;s=i._config}}return tK[t]=new M(T(s,e)),tG[t]&&tG[t].forEach(function(t){tJ(t.name,t.config)}),tQ(t),tK[t]}function et(t){var i;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return t5;if(!e(t)){if(i=tZ(t))return i;t=[t]}return function(t){for(var e,i,s,n,a=0;a<t.length;){for(e=(n=tX(t[a]).split("-")).length,i=(i=tX(t[a+1]))?i.split("-"):null;0<e;){if(s=tZ(n.slice(0,e).join("-")))return s;if(i&&i.length>=e&&y(n,i,!0)>=e-1)break;e--}a++}return t5}(t)}function ee(t){var e,i=t._a;return i&&-2===c(t).overflow&&(e=i[tm]<0||11<i[tm]?tm:i[tg]<1||i[tg]>tT(i[tp],i[tm])?tg:i[tv]<0||24<i[tv]||24===i[tv]&&(0!==i[t8]||0!==i[t$]||0!==i[tb])?tv:i[t8]<0||59<i[t8]?t8:i[t$]<0||59<i[t$]?t$:i[tb]<0||999<i[tb]?tb:-1,c(t)._overflowDayOfYear&&(e<tp||tg<e)&&(e=tg),c(t)._overflowWeeks&&-1===e&&(e=ty),c(t)._overflowWeekday&&-1===e&&(e=tw),c(t).overflow=e),t}function ei(t,e,i){return null!=t?t:null!=e?e:i}function es(e){var i,s,n,a,r,o,l,h=[];if(!e._d){for(i=e,s=new Date(t.now()),r=i._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()],e._w&&null==e._a[tg]&&null==e._a[tm]&&function(t){var e,i,s,n,a,r,o,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)a=1,r=4,i=ei(e.GG,t._a[tp],tW(e8(),1,4).year),s=ei(e.W,1),((n=ei(e.E,1))<1||7<n)&&(l=!0);else{a=t._locale._week.dow,r=t._locale._week.doy;var h=tW(e8(),a,r);i=ei(e.gg,t._a[tp],h.year),s=ei(e.w,h.week),null!=e.d?((n=e.d)<0||6<n)&&(l=!0):null!=e.e?(n=e.e+a,(e.e<0||6<e.e)&&(l=!0)):n=a}s<1||s>tN(i,a,r)?c(t)._overflowWeeks=!0:null!=l?c(t)._overflowWeekday=!0:(o=tH(i,s,n,a,r),t._a[tp]=o.year,t._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(l=ei(e._a[tp],r[tp]),(e._dayOfYear>t_(l)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),a=tL(l,0,e._dayOfYear),e._a[tm]=a.getUTCMonth(),e._a[tg]=a.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=h[n]=r[n];for(;n<7;n++)e._a[n]=h[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[tv]&&0===e._a[t8]&&0===e._a[t$]&&0===e._a[tb]&&(e._nextDay=!0,e._a[tv]=0),e._d=(e._useUTC?tL:function(t,e,i,s,n,a,r){var o;return t<100&&0<=t?(o=new Date(t+400,e,i,s,n,a,r),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,i,s,n,a,r),o}).apply(null,h),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[tv]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(c(e).weekdayMismatch=!0)}}var en=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ea=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,er=/Z|[+-]\d\d(?::?\d\d)?/,eo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],el=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],eh=/^\/?Date\((\-?\d+)/i;function ec(t){var e,i,s,n,a,r,o=t._i,l=en.exec(o)||ea.exec(o);if(l){for(c(t).iso=!0,e=0,i=eo.length;e<i;e++)if(eo[e][1].exec(l[1])){n=eo[e][0],s=!1!==eo[e][2];break}if(null==n)return void(t._isValid=!1);if(l[3]){for(e=0,i=el.length;e<i;e++)if(el[e][1].exec(l[3])){a=(l[2]||" ")+el[e][0];break}if(null==a)return void(t._isValid=!1)}if(!s&&null!=a)return void(t._isValid=!1);if(l[4]){if(!er.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=n+(a||"")+(r||""),em(t)}else t._isValid=!1}var ed=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function eu(t,e,i,s,n,a){var r,o,l=[(r=t,(o=parseInt(r,10))<=49?2e3+o:o<=999?1900+o:o),tE.indexOf(e),parseInt(i,10),parseInt(s,10),parseInt(n,10)];return a&&l.push(parseInt(a,10)),l}var ef={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ep(t){var e,i,s,n=ed.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(n){var a=eu(n[4],n[3],n[2],n[5],n[6],n[7]);if(e=n[1],i=a,s=t,e&&t3.indexOf(e)!==new Date(i[0],i[1],i[2]).getDay()&&(c(s).weekdayMismatch=!0,s._isValid=!1,1))return;t._a=a,t._tzm=function(t,e,i){if(t)return ef[t];if(e)return 0;var s=parseInt(i,10),n=s%100;return(s-n)/100*60+n}(n[8],n[9],n[10]),t._d=tL.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),c(t).rfc2822=!0}else t._isValid=!1}function em(e){if(e._f!==t.ISO_8601){if(e._f!==t.RFC_2822){e._a=[],c(e).empty=!0;var i,s,n,a,r,l,h,d,u,f,p,m,g=""+e._i,v=g.length,$=0;for(h=B(e._f,e._locale).match(z)||[],r=0;r<h.length;r++)d=h[r],(l=(g.match(th(d,e))||[])[0])&&(0<(u=g.substr(0,g.indexOf(l))).length&&c(e).unusedInput.push(u),g=g.slice(g.indexOf(l)+l.length),$+=l.length),N[d]?(l?c(e).empty=!1:c(e).unusedTokens.push(d),f=d,m=e,null!=(p=l)&&o(td,f)&&td[f](p,m._a,m,f)):e._strict&&!l&&c(e).unusedTokens.push(d);c(e).charsLeftOver=v-$,0<g.length&&c(e).unusedInput.push(g),e._a[tv]<=12&&!0===c(e).bigHour&&0<e._a[tv]&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[tv]=(i=e._locale,s=e._a[tv],null==(n=e._meridiem)?s:null!=i.meridiemHour?i.meridiemHour(s,n):(null!=i.isPM&&((a=i.isPM(n))&&s<12&&(s+=12),a||12!==s||(s=0)),s)),es(e),ee(e)}else ep(e)}else ec(e)}function eg(o){var h,f,m,$,b=o._i,y=o._f;return o._locale=o._locale||et(o._l),null===b||void 0===y&&""===b?u({nullInput:!0}):("string"==typeof b&&(o._i=b=o._locale.preparse(b)),v(b)?new g(ee(b)):(a(b)?o._d=b:e(y)?function(t){var e,i,s,n,a;if(0===t._f.length)return c(t).invalidFormat=!0,t._d=new Date(NaN);for(n=0;n<t._f.length;n++)a=0,e=p({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[n],em(e),d(e)&&(a+=c(e).charsLeftOver,a+=10*c(e).unusedTokens.length,c(e).score=a,(null==s||a<s)&&(s=a,i=e));l(t,i||e)}(o):y?em(o):s(f=(h=o)._i)?h._d=new Date(t.now()):a(f)?h._d=new Date(f.valueOf()):"string"==typeof f?(m=h,null===($=eh.exec(m._i))?(ec(m),!1===m._isValid&&(delete m._isValid,ep(m),!1===m._isValid&&(delete m._isValid,t.createFromInputFallback(m)))):m._d=new Date(+$[1])):e(f)?(h._a=r(f.slice(0),function(t){return parseInt(t,10)}),es(h)):i(f)?function(t){if(!t._d){var e=O(t._i);t._a=r([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),es(t)}}(h):n(f)?h._d=new Date(f):t.createFromInputFallback(h),d(o)||(o._d=null),o))}function ev(t,s,n,a,r){var o,l={};return!0!==n&&!1!==n||(a=n,n=void 0),(i(t)&&function(t){var e;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||e(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=n,l._i=t,l._f=s,l._strict=a,(o=new g(ee(eg(l))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function e8(t,e,i,s){return ev(t,e,i,s,!1)}t.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var e$=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=e8.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:u()}),eb=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=e8.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:u()});function ey(t,i){var s,n;if(1===i.length&&e(i[0])&&(i=i[0]),!i.length)return e8();for(s=i[0],n=1;n<i.length;++n)i[n].isValid()&&!i[n][t](s)||(s=i[n]);return s}var ew=["year","quarter","month","week","day","hour","minute","second","millisecond"];function e_(t){var e=O(t),i=e.year||0,s=e.quarter||0,n=e.month||0,a=e.week||e.isoWeek||0,r=e.day||0,o=e.hour||0,l=e.minute||0,h=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===tD.call(ew,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,s=0;s<ew.length;++s)if(t[ew[s]]){if(i)return!1;parseFloat(t[ew[s]])!==b(t[ew[s]])&&(i=!0)}return!0}(e),this._milliseconds=+c+1e3*h+6e4*l+1e3*o*3600,this._days=+r+7*a,this._months=+n+3*s+12*i,this._data={},this._locale=et(),this._bubble()}function ek(t){return t instanceof e_}function eD(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function eC(t,e){R(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+L(~~(t/60),2)+e+L(~~t%60,2)})}eC("Z",":"),eC("ZZ",""),tl("Z",ta),tl("ZZ",ta),tu(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=eS(ta,t)});var ex=/([\+\-]|\d\d)/gi;function eS(t,e){var i=(e||"").match(t);if(null===i)return null;var s=((i[i.length-1]||[])+"").match(ex)||["-",0,0],n=60*s[1]+b(s[2]);return 0===n?0:"+"===s[0]?n:-n}function eP(e,i){var s,n;return i._isUTC?(s=i.clone(),n=(v(e)||a(e)?e.valueOf():e8(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),t.updateOffset(s,!1),s):e8(e).local()}function eT(t){return-(15*Math.round(t._d.getTimezoneOffset()/15))}function eM(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var eA=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,eE=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function eI(t,e){var i,s,a,r,l,h,c=t,d=null;return ek(t)?c={ms:t._milliseconds,d:t._days,M:t._months}:n(t)?(c={},e?c[e]=t:c.milliseconds=t):(d=eA.exec(t))?(i="-"===d[1]?-1:1,c={y:0,d:b(d[tg])*i,h:b(d[tv])*i,m:b(d[t8])*i,s:b(d[t$])*i,ms:b(eD(1e3*d[tb]))*i}):(d=eE.exec(t))?(i="-"===d[1]?-1:1,c={y:eO(d[2],i),M:eO(d[3],i),w:eO(d[4],i),d:eO(d[5],i),h:eO(d[6],i),m:eO(d[7],i),s:eO(d[8],i)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(a=(r=e8(c.from),l=e8(c.to),r.isValid()&&l.isValid()?(l=eP(l,r),r.isBefore(l)?h=eF(r,l):((h=eF(l,r)).milliseconds=-h.milliseconds,h.months=-h.months),h):{milliseconds:0,months:0}),(c={}).ms=a.milliseconds,c.M=a.months),s=new e_(c),ek(t)&&o(t,"_locale")&&(s._locale=t._locale),s}function eO(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function eF(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function e0(t,e){return function(i,s){var n;return null===s||isNaN(+s)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=i,i=s,s=n),eY(this,eI(i="string"==typeof i?+i:i,s),t),this}}function eY(e,i,s,n){var a=i._milliseconds,r=eD(i._days),o=eD(i._months);e.isValid()&&(n=null==n||n,o&&tI(e,tS(e,"Month")+o*s),r&&tP(e,"Date",tS(e,"Date")+r*s),a&&e._d.setTime(e._d.valueOf()+a*s),n&&t.updateOffset(e,r||o))}eI.fn=e_.prototype,eI.invalid=function(){return eI(NaN)};var eL=e0(1,"add"),ez=e0(-1,"subtract");function eH(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(i,"months");return-(i+(e-s<0?(e-s)/(s-t.clone().add(i-1,"months")):(e-s)/(t.clone().add(i+1,"months")-s)))||0}function eW(t){var e;return void 0===t?this._locale._abbr:(null!=(e=et(t))&&(this._locale=e),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var eN=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eR(){return this._locale}var e9=126227808e5;function e3(t,e){return(t%e+e)%e}function ej(t,e,i){return t<100&&0<=t?new Date(t+400,e,i)-e9:new Date(t,e,i).valueOf()}function eB(t,e,i){return t<100&&0<=t?Date.UTC(t+400,e,i)-e9:Date.UTC(t,e,i)}function eq(t,e){R(0,[t,t.length],0,e)}function e1(t,e,i,s,n){var a;return null==t?tW(this,s,n).year:((a=tN(t,s,n))<e&&(e=a),(function(t,e,i,s,n){var a=tH(t,e,i,s,n),r=tL(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}).call(this,t,e,i,s,n))}R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),eq("gggg","weekYear"),eq("ggggg","weekYear"),eq("GGGG","isoWeekYear"),eq("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),tl("G",ts),tl("g",ts),tl("GG",X,V),tl("gg",X,V),tl("GGGG",tt,K),tl("gggg",tt,K),tl("GGGGG",te,G),tl("ggggg",te,G),tf(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,s){e[s.substr(0,2)]=b(t)}),tf(["gg","GG"],function(e,i,s,n){i[n]=t.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),E("quarter","Q"),Y("quarter",7),tl("Q",q),tu("Q",function(t,e){e[tm]=3*(b(t)-1)}),R("D",["DD",2],"Do","date"),E("date","D"),Y("date",9),tl("D",X),tl("DD",X,V),tl("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),tu(["D","DD"],tg),tu("Do",function(t,e){e[tg]=b(t.match(X)[0])});var eV=tx("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),Y("dayOfYear",4),tl("DDD",J),tl("DDDD",U),tu(["DDD","DDDD"],function(t,e,i){i._dayOfYear=b(t)}),R("m",["mm",2],0,"minute"),E("minute","m"),Y("minute",14),tl("m",X),tl("mm",X,V),tu(["m","mm"],t8);var e2=tx("Minutes",!1);R("s",["ss",2],0,"second"),E("second","s"),Y("second",15),tl("s",X),tl("ss",X,V),tu(["s","ss"],t$);var e7,eU=tx("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),E("millisecond","ms"),Y("millisecond",16),tl("S",J,q),tl("SS",J,V),tl("SSS",J,U),e7="SSSS";e7.length<=9;e7+="S")tl(e7,ti);function e5(t,e){e[tb]=b(1e3*("0."+t))}for(e7="S";e7.length<=9;e7+="S")tu(e7,e5);var e4=tx("Milliseconds",!1);R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var e6=g.prototype;function eK(t){return t}e6.add=eL,e6.calendar=function(e,i){var s=e||e8(),n=eP(s,this).startOf("day"),a=t.calendarFormat(this,n)||"sameElse",r=i&&(P(i[a])?i[a].call(this,s):i[a]);return this.format(r||this.localeData().calendar(a,this,e8(s)))},e6.clone=function(){return new g(this)},e6.diff=function(t,e,i){var s,n,a;if(!this.isValid()||!(s=eP(t,this)).isValid())return NaN;switch(n=6e4*(s.utcOffset()-this.utcOffset()),e=I(e)){case"year":a=eH(this,s)/12;break;case"month":a=eH(this,s);break;case"quarter":a=eH(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-n)/864e5;break;case"week":a=(this-s-n)/6048e5;break;default:a=this-s}return i?a:$(a)},e6.endOf=function(e){if(void 0===(e=I(e))||"millisecond"===e||!this.isValid())return this;var i,s=this._isUTC?eB:ej;switch(e){case"year":i=s(this.year()+1,0,1)-1;break;case"quarter":i=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=s(this.year(),this.month()+1,1)-1;break;case"week":i=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=36e5-e3(i+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":i=this._d.valueOf(),i+=6e4-e3(i,6e4)-1;break;case"second":i=this._d.valueOf(),i+=1e3-e3(i,1e3)-1}return this._d.setTime(i),t.updateOffset(this,!0),this},e6.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=j(this,e);return this.localeData().postformat(i)},e6.from=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||e8(t).isValid())?eI({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},e6.fromNow=function(t){return this.from(e8(),t)},e6.to=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||e8(t).isValid())?eI({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},e6.toNow=function(t){return this.to(e8(),t)},e6.get=function(t){return P(this[t=I(t)])?this[t]():this},e6.invalidAt=function(){return c(this).overflow},e6.isAfter=function(t,e){var i=v(t)?t:e8(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},e6.isBefore=function(t,e){var i=v(t)?t:e8(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},e6.isBetween=function(t,e,i,s){var n=v(t)?t:e8(t),a=v(e)?e:e8(e);return!!(this.isValid()&&n.isValid()&&a.isValid())&&("("===(s=s||"()")[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===s[1]?this.isBefore(a,i):!this.isAfter(a,i))},e6.isSame=function(t,e){var i,s=v(t)?t:e8(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=I(e)||"millisecond")?this.valueOf()===s.valueOf():(i=s.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},e6.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},e6.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},e6.isValid=function(){return d(this)},e6.lang=eN,e6.locale=eW,e6.localeData=eR,e6.max=eb,e6.min=e$,e6.parsingFlags=function(){return l({},c(this))},e6.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:F[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=O(t)),s=0;s<i.length;s++)this[i[s].unit](t[i[s].unit]);else if(P(this[t=I(t)]))return this[t](e);return this},e6.startOf=function(e){if(void 0===(e=I(e))||"millisecond"===e||!this.isValid())return this;var i,s=this._isUTC?eB:ej;switch(e){case"year":i=s(this.year(),0,1);break;case"quarter":i=s(this.year(),this.month()-this.month()%3,1);break;case"month":i=s(this.year(),this.month(),1);break;case"week":i=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=s(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=e3(i+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":i=this._d.valueOf(),i-=e3(i,6e4);break;case"second":i=this._d.valueOf(),i-=e3(i,1e3)}return this._d.setTime(i),t.updateOffset(this,!0),this},e6.subtract=ez,e6.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},e6.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},e6.toDate=function(){return new Date(this.valueOf())},e6.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return 0>i.year()||9999<i.year()?j(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(i,"Z")):j(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},e6.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',s=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n=e+'[")]';return this.format(i+s+"-MM-DD[T]HH:mm:ss.SSS"+n)},e6.toJSON=function(){return this.isValid()?this.toISOString():null},e6.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},e6.unix=function(){return Math.floor(this.valueOf()/1e3)},e6.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},e6.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},e6.year=tC,e6.isLeapYear=function(){return tk(this.year())},e6.weekYear=function(t){return e1.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},e6.isoWeekYear=function(t){return e1.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},e6.quarter=e6.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},e6.month=tO,e6.daysInMonth=function(){return tT(this.year(),this.month())},e6.week=e6.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},e6.isoWeek=e6.isoWeeks=function(t){var e=tW(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},e6.weeksInYear=function(){var t=this.localeData()._week;return tN(this.year(),t.dow,t.doy)},e6.isoWeeksInYear=function(){return tN(this.year(),1,4)},e6.date=eV,e6.day=e6.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,i,s=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,i=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=i.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-s,"d")):s},e6.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},e6.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,i,s=(e=t,i=this.localeData(),"string"==typeof e?i.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?s:s-7)},e6.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},e6.hour=e6.hours=t4,e6.minute=e6.minutes=e2,e6.second=e6.seconds=eU,e6.millisecond=e6.milliseconds=e4,e6.utcOffset=function(e,i,s){var n,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?a:eT(this);if("string"==typeof e){if(null===(e=eS(ta,e)))return this}else 16>Math.abs(e)&&!s&&(e*=60);return!this._isUTC&&i&&(n=eT(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),a!==e&&(!i||this._changeInProgress?eY(this,eI(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},e6.utc=function(t){return this.utcOffset(0,t)},e6.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(eT(this),"m")),this},e6.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=eS(tn,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},e6.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?e8(t).utcOffset():0,(this.utcOffset()-t)%60==0)},e6.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},e6.isLocal=function(){return!!this.isValid()&&!this._isUTC},e6.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},e6.isUtc=eM,e6.isUTC=eM,e6.zoneAbbr=function(){return this._isUTC?"UTC":""},e6.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},e6.dates=_("dates accessor is deprecated. Use date instead.",eV),e6.months=_("months accessor is deprecated. Use month instead",tO),e6.years=_("years accessor is deprecated. Use year instead",tC),e6.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),e6.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(p(t,this),(t=eg(t))._a){var e=t._isUTC?h(t._a):e8(t._a);this._isDSTShifted=this.isValid()&&0<y(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var eG=M.prototype;function eX(t,e,i,s){var n=et(),a=h().set(s,e);return n[i](a,t)}function eZ(t,e,i){if(n(t)&&(e=t,t=void 0),t=t||"",null!=e)return eX(t,e,i,"month");var s,a=[];for(s=0;s<12;s++)a[s]=eX(t,s,i,"month");return a}function eQ(t,e,i,s){e=("boolean"==typeof t?n(e)&&(i=e,e=void 0):(e=t,t=!1,n(i=e)&&(i=e,e=void 0)),e||"");var a,r=et(),o=t?r._week.dow:0;if(null!=i)return eX(e,(i+o)%7,s,"day");var l=[];for(a=0;a<7;a++)l[a]=eX(e,(a+o)%7,s,"day");return l}eG.calendar=function(t,e,i){var s=this._calendar[t]||this._calendar.sameElse;return P(s)?s.call(e,i):s},eG.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},eG.invalidDate=function(){return this._invalidDate},eG.ordinal=function(t){return this._ordinal.replace("%d",t)},eG.preparse=eK,eG.postformat=eK,eG.relativeTime=function(t,e,i,s){var n=this._relativeTime[i];return P(n)?n(t,e,i,s):n.replace(/%d/i,t)},eG.pastFuture=function(t,e){var i=this._relativeTime[0<t?"future":"past"];return P(i)?i(e):i.replace(/%s/i,e)},eG.set=function(t){var e,i;for(i in t)P(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},eG.months=function(t,i){return t?e(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||tM).test(i)?"format":"standalone"][t.month()]:e(this._months)?this._months:this._months.standalone},eG.monthsShort=function(t,i){return t?e(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[tM.test(i)?"format":"standalone"][t.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},eG.monthsParse=function(t,e,i){var s,n,a;if(this._monthsParseExact)return(function(t,e,i){var s,n,a,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=h([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(n=tD.call(this._shortMonthsParse,r))?n:null:-1!==(n=tD.call(this._longMonthsParse,r))?n:null:"MMM"===e?-1!==(n=tD.call(this._shortMonthsParse,r))?n:-1!==(n=tD.call(this._longMonthsParse,r))?n:null:-1!==(n=tD.call(this._longMonthsParse,r))?n:-1!==(n=tD.call(this._shortMonthsParse,r))?n:null}).call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(n=h([2e3,s]),i&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[s]||(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=RegExp(a.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[s].test(t)||i&&"MMM"===e&&this._shortMonthsParse[s].test(t)||!i&&this._monthsParse[s].test(t))return s},eG.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||tY.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=t0),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},eG.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||tY.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=tF),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},eG.week=function(t){return tW(t,this._week.dow,this._week.doy).week},eG.firstDayOfYear=function(){return this._week.doy},eG.firstDayOfWeek=function(){return this._week.dow},eG.weekdays=function(t,i){var s=e(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(i)?"format":"standalone"];return!0===t?tR(s,this._week.dow):t?s[t.day()]:s},eG.weekdaysMin=function(t){return!0===t?tR(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},eG.weekdaysShort=function(t){return!0===t?tR(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},eG.weekdaysParse=function(t,e,i){var s,n,a;if(this._weekdaysParseExact)return(function(t,e,i){var s,n,a,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=h([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(n=tD.call(this._weekdaysParse,r))?n:null:"ddd"===e?-1!==(n=tD.call(this._shortWeekdaysParse,r))?n:null:-1!==(n=tD.call(this._minWeekdaysParse,r))?n:null:"dddd"===e?-1!==(n=tD.call(this._weekdaysParse,r))?n:-1!==(n=tD.call(this._shortWeekdaysParse,r))?n:-1!==(n=tD.call(this._minWeekdaysParse,r))?n:null:"ddd"===e?-1!==(n=tD.call(this._shortWeekdaysParse,r))?n:-1!==(n=tD.call(this._weekdaysParse,r))?n:-1!==(n=tD.call(this._minWeekdaysParse,r))?n:null:-1!==(n=tD.call(this._minWeekdaysParse,r))?n:-1!==(n=tD.call(this._weekdaysParse,r))?n:-1!==(n=tD.call(this._shortWeekdaysParse,r))?n:null}).call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++)if(n=h([2e3,1]).day(s),i&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=RegExp(a.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[s].test(t)||i&&"ddd"===e&&this._shortWeekdaysParse[s].test(t)||i&&"dd"===e&&this._minWeekdaysParse[s].test(t)||!i&&this._weekdaysParse[s].test(t))return s},eG.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=tB),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},eG.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tq),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},eG.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=t1),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},eG.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},eG.meridiem=function(t,e,i){return 11<t?i?"pm":"PM":i?"am":"AM"},tQ("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===b(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",tQ),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",et);var eJ=Math.abs;function it(t,e,i,s){var n=eI(e,i);return t._milliseconds+=s*n._milliseconds,t._days+=s*n._days,t._months+=s*n._months,t._bubble()}function ie(t){return t<0?Math.floor(t):Math.ceil(t)}function ii(t){return 4800*t/146097}function is(t){return 146097*t/4800}function ia(t){return function(){return this.as(t)}}var ir=ia("ms"),io=ia("s"),il=ia("m"),ih=ia("h"),ic=ia("d"),id=ia("w"),iu=ia("M"),ip=ia("Q"),im=ia("y");function ig(t){return function(){return this.isValid()?this._data[t]:NaN}}var iv=ig("milliseconds"),i8=ig("seconds"),i$=ig("minutes"),ib=ig("hours"),iy=ig("days"),iw=ig("months"),i_=ig("years"),ik=Math.round,iD={ss:44,s:45,m:45,h:22,d:26,M:11},iC=Math.abs;function ix(t){return(0<t)-(t<0)||+t}function iS(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=iC(this._milliseconds)/1e3,s=iC(this._days),n=iC(this._months);e=$((t=$(i/60))/60),i%=60,t%=60;var a=$(n/12),r=n%=12,o=s,l=e,h=t,c=i?i.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var u=d<0?"-":"",f=ix(this._months)!==ix(d)?"-":"",p=ix(this._days)!==ix(d)?"-":"",m=ix(this._milliseconds)!==ix(d)?"-":"";return u+"P"+(a?f+a+"Y":"")+(r?f+r+"M":"")+(o?p+o+"D":"")+(l||h||c?"T":"")+(l?m+l+"H":"")+(h?m+h+"M":"")+(c?m+c+"S":"")}var iP=e_.prototype;return iP.isValid=function(){return this._isValid},iP.abs=function(){var t=this._data;return this._milliseconds=eJ(this._milliseconds),this._days=eJ(this._days),this._months=eJ(this._months),t.milliseconds=eJ(t.milliseconds),t.seconds=eJ(t.seconds),t.minutes=eJ(t.minutes),t.hours=eJ(t.hours),t.months=eJ(t.months),t.years=eJ(t.years),this},iP.add=function(t,e){return it(this,t,e,1)},iP.subtract=function(t,e){return it(this,t,e,-1)},iP.as=function(t){if(!this.isValid())return NaN;var e,i,s=this._milliseconds;if("month"===(t=I(t))||"quarter"===t||"year"===t)switch(e=this._days+s/864e5,i=this._months+ii(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(is(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return 24*e+s/36e5;case"minute":return 1440*e+s/6e4;case"second":return 86400*e+s/1e3;case"millisecond":return Math.floor(864e5*e)+s;default:throw Error("Unknown unit "+t)}},iP.asMilliseconds=ir,iP.asSeconds=io,iP.asMinutes=il,iP.asHours=ih,iP.asDays=ic,iP.asWeeks=id,iP.asMonths=iu,iP.asQuarters=ip,iP.asYears=im,iP.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},iP._bubble=function(){var t,e,i,s,n,a=this._milliseconds,r=this._days,o=this._months,l=this._data;return 0<=a&&0<=r&&0<=o||a<=0&&r<=0&&o<=0||(a+=864e5*ie(is(o)+r),o=r=0),l.milliseconds=a%1e3,t=$(a/1e3),l.seconds=t%60,e=$(t/60),l.minutes=e%60,i=$(e/60),l.hours=i%24,o+=n=$(ii(r+=$(i/24))),r-=ie(is(n)),s=$(o/12),o%=12,l.days=r,l.months=o,l.years=s,this},iP.clone=function(){return eI(this)},iP.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},iP.milliseconds=iv,iP.seconds=i8,iP.minutes=i$,iP.hours=ib,iP.days=iy,iP.weeks=function(){return $(this.days()/7)},iP.months=iw,iP.years=i_,iP.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,i,s,n,a,r,o,l,h,c,d,u=this.localeData(),f=(i=!t,s=u,n=eI(e=this).abs(),a=ik(n.as("s")),r=ik(n.as("m")),o=ik(n.as("h")),l=ik(n.as("d")),h=ik(n.as("M")),c=ik(n.as("y")),(d=a<=iD.ss&&["s",a]||a<iD.s&&["ss",a]||r<=1&&["m"]||r<iD.m&&["mm",r]||o<=1&&["h"]||o<iD.h&&["hh",o]||l<=1&&["d"]||l<iD.d&&["dd",l]||h<=1&&["M"]||h<iD.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=i,d[3]=0<+e,d[4]=s,(function(t,e,i,s,n){return n.relativeTime(e||1,!!i,t,s)}).apply(null,d));return t&&(f=u.pastFuture(+this,f)),u.postformat(f)},iP.toISOString=iS,iP.toString=iS,iP.toJSON=iS,iP.locale=eW,iP.localeData=eR,iP.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iS),iP.lang=eN,R("X",0,0,"unix"),R("x",0,0,"valueOf"),tl("x",ts),tl("X",/[+-]?\d+(\.\d{1,3})?/),tu("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),tu("x",function(t,e,i){i._d=new Date(b(t))}),t.version="2.24.0",k=e8,t.fn=e6,t.min=function(){return ey("isBefore",[].slice.call(arguments,0))},t.max=function(){return ey("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=h,t.unix=function(t){return e8(1e3*t)},t.months=function(t,e){return eZ(t,e,"months")},t.isDate=a,t.locale=tQ,t.invalid=u,t.duration=eI,t.isMoment=v,t.weekdays=function(t,e,i){return eQ(t,e,i,"weekdays")},t.parseZone=function(){return e8.apply(null,arguments).parseZone()},t.localeData=et,t.isDuration=ek,t.monthsShort=function(t,e){return eZ(t,e,"monthsShort")},t.weekdaysMin=function(t,e,i){return eQ(t,e,i,"weekdaysMin")},t.defineLocale=tJ,t.updateLocale=function(t,e){if(null!=e){var i,s,n=t6;null!=(s=tZ(t))&&(n=s._config),(i=new M(e=T(n,e))).parentLocale=tK[t],tK[t]=i,tQ(t)}else null!=tK[t]&&(null!=tK[t].parentLocale?tK[t]=tK[t].parentLocale:null!=tK[t]&&delete tK[t]);return tK[t]},t.locales=function(){return C(tK)},t.weekdaysShort=function(t,e,i){return eQ(t,e,i,"weekdaysShort")},t.normalizeUnits=I,t.relativeTimeRounding=function(t){return void 0===t?ik:"function"==typeof t&&(ik=t,!0)},t.relativeTimeThreshold=function(t,e){return void 0!==iD[t]&&(void 0===e?iD[t]:(iD[t]=e,"s"===t&&(iD.ss=e-1),!0))},t.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},t.prototype=e6,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}),function(t,e){if("function"==typeof define&&define.amd)define(["moment","jquery"],function(t,i){return i.fn||(i.fn={}),"function"!=typeof t&&t.hasOwnProperty("default")&&(t=t.default),e(t,i)});else if("object"==typeof module&&module.exports){var i="undefined"!=typeof window?window.jQuery:void 0;i||(i=require("jquery")).fn||(i.fn={});var s="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=e(s,i)}else t.daterangepicker=e(t.moment,t.jQuery)}("undefined"!=typeof window?window:this,function(t,e){var i=function(i,s,n){if(this.parentEl="body",this.element=e(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},("object"!=typeof s||null===s)&&(s={}),"string"==typeof(s=e.extend(this.element.data(),s)).template||s.template instanceof e||(s.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=s.parentEl&&e(s.parentEl).length?e(s.parentEl):e(this.parentEl),this.container=e(s.template).appendTo(this.parentEl),"object"==typeof s.locale&&("string"==typeof s.locale.direction&&(this.locale.direction=s.locale.direction),"string"==typeof s.locale.format&&(this.locale.format=s.locale.format),"string"==typeof s.locale.separator&&(this.locale.separator=s.locale.separator),"object"==typeof s.locale.daysOfWeek&&(this.locale.daysOfWeek=s.locale.daysOfWeek.slice()),"object"==typeof s.locale.monthNames&&(this.locale.monthNames=s.locale.monthNames.slice()),"number"==typeof s.locale.firstDay&&(this.locale.firstDay=s.locale.firstDay),"string"==typeof s.locale.applyLabel&&(this.locale.applyLabel=s.locale.applyLabel),"string"==typeof s.locale.cancelLabel&&(this.locale.cancelLabel=s.locale.cancelLabel),"string"==typeof s.locale.weekLabel&&(this.locale.weekLabel=s.locale.weekLabel),"string"==typeof s.locale.customRangeLabel)){var a,r,o,l=document.createElement("textarea");l.innerHTML=s.locale.customRangeLabel;var h=l.value;this.locale.customRangeLabel=h}if(this.container.addClass(this.locale.direction),"string"==typeof s.startDate&&(this.startDate=t(s.startDate,this.locale.format)),"string"==typeof s.endDate&&(this.endDate=t(s.endDate,this.locale.format)),"string"==typeof s.minDate&&(this.minDate=t(s.minDate,this.locale.format)),"string"==typeof s.maxDate&&(this.maxDate=t(s.maxDate,this.locale.format)),"object"==typeof s.startDate&&(this.startDate=t(s.startDate)),"object"==typeof s.endDate&&(this.endDate=t(s.endDate)),"object"==typeof s.minDate&&(this.minDate=t(s.minDate)),"object"==typeof s.maxDate&&(this.maxDate=t(s.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof s.applyButtonClasses&&(this.applyButtonClasses=s.applyButtonClasses),"string"==typeof s.applyClass&&(this.applyButtonClasses=s.applyClass),"string"==typeof s.cancelButtonClasses&&(this.cancelButtonClasses=s.cancelButtonClasses),"string"==typeof s.cancelClass&&(this.cancelButtonClasses=s.cancelClass),"object"==typeof s.maxSpan&&(this.maxSpan=s.maxSpan),"object"==typeof s.dateLimit&&(this.maxSpan=s.dateLimit),"string"==typeof s.opens&&(this.opens=s.opens),"string"==typeof s.drops&&(this.drops=s.drops),"boolean"==typeof s.showWeekNumbers&&(this.showWeekNumbers=s.showWeekNumbers),"boolean"==typeof s.showISOWeekNumbers&&(this.showISOWeekNumbers=s.showISOWeekNumbers),"string"==typeof s.buttonClasses&&(this.buttonClasses=s.buttonClasses),"object"==typeof s.buttonClasses&&(this.buttonClasses=s.buttonClasses.join(" ")),"boolean"==typeof s.showDropdowns&&(this.showDropdowns=s.showDropdowns),"number"==typeof s.minYear&&(this.minYear=s.minYear),"number"==typeof s.maxYear&&(this.maxYear=s.maxYear),"boolean"==typeof s.showCustomRangeLabel&&(this.showCustomRangeLabel=s.showCustomRangeLabel),"boolean"==typeof s.singleDatePicker&&(this.singleDatePicker=s.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof s.timePicker&&(this.timePicker=s.timePicker),"boolean"==typeof s.timePickerSeconds&&(this.timePickerSeconds=s.timePickerSeconds),"number"==typeof s.timePickerIncrement&&(this.timePickerIncrement=s.timePickerIncrement),"boolean"==typeof s.timePicker24Hour&&(this.timePicker24Hour=s.timePicker24Hour),"boolean"==typeof s.autoApply&&(this.autoApply=s.autoApply),"boolean"==typeof s.autoUpdateInput&&(this.autoUpdateInput=s.autoUpdateInput),"boolean"==typeof s.linkedCalendars&&(this.linkedCalendars=s.linkedCalendars),"function"==typeof s.isInvalidDate&&(this.isInvalidDate=s.isInvalidDate),"function"==typeof s.isCustomDate&&(this.isCustomDate=s.isCustomDate),"boolean"==typeof s.alwaysShowCalendars&&(this.alwaysShowCalendars=s.alwaysShowCalendars),0!=this.locale.firstDay)for(var c=this.locale.firstDay;c>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),c--;if(void 0===s.startDate&&void 0===s.endDate&&e(this.element).is(":text")){var d=e(this.element).val(),u=d.split(this.locale.separator);a=r=null,2==u.length?(a=t(u[0],this.locale.format),r=t(u[1],this.locale.format)):this.singleDatePicker&&""!==d&&(a=t(d,this.locale.format),r=t(d,this.locale.format)),null!==a&&null!==r&&(this.setStartDate(a),this.setEndDate(r))}if("object"==typeof s.ranges){for(o in s.ranges){a="string"==typeof s.ranges[o][0]?t(s.ranges[o][0],this.locale.format):t(s.ranges[o][0]),r="string"==typeof s.ranges[o][1]?t(s.ranges[o][1],this.locale.format):t(s.ranges[o][1]),this.minDate&&a.isBefore(this.minDate)&&(a=this.minDate.clone());var f=this.maxDate;if(this.maxSpan&&f&&a.clone().add(this.maxSpan).isAfter(f)&&(f=a.clone().add(this.maxSpan)),f&&r.isAfter(f)&&(r=f.clone()),!(this.minDate&&r.isBefore(this.minDate,this.timepicker?"minute":"day")||f&&a.isAfter(f,this.timepicker?"minute":"day"))){var l=document.createElement("textarea");l.innerHTML=o;var h=l.value;this.ranges[h]=[a,r]}}var p="<ul>";for(o in this.ranges)p+='<li data-range-key="'+o+'">'+o+"</li>";this.showCustomRangeLabel&&(p+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),p+="</ul>",this.container.find(".ranges").prepend(p)}"function"==typeof n&&(this.callback=n),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof s.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===s.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",e.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",e.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",e.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",e.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",e.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",e.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",e.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",e.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":e.proxy(this.show,this),"focus.daterangepicker":e.proxy(this.show,this),"keyup.daterangepicker":e.proxy(this.elementChanged,this),"keydown.daterangepicker":e.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",e.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",e.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(e){"string"==typeof e&&(this.startDate=t(e,this.locale.format)),"object"==typeof e&&(this.startDate=t(e)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(e){"string"==typeof e&&(this.endDate=t(e,this.locale.format)),"object"==typeof e&&(this.endDate=t(e)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,i;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var s=this.container.find(".left .ampmselect").val();"PM"===s&&t<12&&(t+=12),"AM"===s&&12===t&&(t=0)}}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var s=this.container.find(".right .ampmselect").val();"PM"===s&&t<12&&(t+=12),"AM"===s&&12===t&&(t=0)}this.leftCalendar.month.hour(t).minute(e).second(i),this.rightCalendar.month.hour(t).minute(e).second(i)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(i){var s,n,a="left"==i?this.leftCalendar:this.rightCalendar,r=a.month.month(),o=a.month.year(),l=a.month.hour(),h=a.month.minute(),c=a.month.second(),d=t([o,r]).daysInMonth(),u=t([o,r,1]),f=t([o,r,d]),p=t(u).subtract(1,"month").month(),m=t(u).subtract(1,"month").year(),g=t([m,p]).daysInMonth(),v=u.day(),a=[];a.firstDay=u,a.lastDay=f;for(var $=0;$<6;$++)a[$]=[];var b=g-v+this.locale.firstDay+1;b>g&&(b-=7),v==this.locale.firstDay&&(b=g-6);for(var y=t([m,p,b,12,h,c]),$=0,s=0,n=0;$<42;$++,s++,y=t(y).add(24,"hour"))$>0&&s%7==0&&(s=0,n++),a[n][s]=y.clone().hour(l).minute(h).second(c),y.hour(12),this.minDate&&a[n][s].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&a[n][s].isBefore(this.minDate)&&"left"==i&&(a[n][s]=this.minDate.clone()),this.maxDate&&a[n][s].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&a[n][s].isAfter(this.maxDate)&&"right"==i&&(a[n][s]=this.maxDate.clone());"left"==i?this.leftCalendar.calendar=a:this.rightCalendar.calendar=a;var w="left"==i?this.minDate:this.startDate,_=this.maxDate;"left"==i?this.startDate:this.endDate,this.locale.direction;var k='<table class="table-condensed">';k+="<thead>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+="<th></th>"),(!w||w.isBefore(a.firstDay))&&(!this.linkedCalendars||"left"==i)?k+='<th class="prev available"><span></span></th>':k+="<th></th>";var D=this.locale.monthNames[a[1][1].month()]+a[1][1].format(" YYYY");if(this.showDropdowns){for(var C=a[1][1].month(),x=a[1][1].year(),S=_&&_.year()||this.maxYear,P=w&&w.year()||this.minYear,T=x==P,M=x==S,A='<select class="monthselect">',E=0;E<12;E++)(!T||w&&E>=w.month())&&(!M||_&&E<=_.month())?A+="<option value='"+E+"'"+(E===C?" selected='selected'":"")+">"+this.locale.monthNames[E]+"</option>":A+="<option value='"+E+"'"+(E===C?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[E]+"</option>";A+="</select>";for(var I='<select class="yearselect">',O=P;O<=S;O++)I+='<option value="'+O+'"'+(O===x?' selected="selected"':"")+">"+O+"</option>";I+="</select>",D=A+I}if(k+='<th colspan="5" class="month">'+D+"</th>",(!_||_.isAfter(a.lastDay))&&(!this.linkedCalendars||"right"==i||this.singleDatePicker)?k+='<th class="next available"><span></span></th>':k+="<th></th>",k+="</tr>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+='<th class="week">'+this.locale.weekLabel+"</th>"),e.each(this.locale.daysOfWeek,function(t,e){k+="<th>"+e+"</th>"}),k+="</tr>",k+="</thead>",k+="<tbody>",null==this.endDate&&this.maxSpan){var F=this.startDate.clone().add(this.maxSpan).endOf("day");(!_||F.isBefore(_))&&(_=F)}for(var n=0;n<6;n++){k+="<tr>",this.showWeekNumbers?k+='<td class="week">'+a[n][0].week()+"</td>":this.showISOWeekNumbers&&(k+='<td class="week">'+a[n][0].isoWeek()+"</td>");for(var s=0;s<7;s++){var Y=[];a[n][s].isSame(new Date,"day")&&Y.push("today"),a[n][s].isoWeekday()>5&&Y.push("weekend"),a[n][s].month()!=a[1][1].month()&&Y.push("off","ends"),this.minDate&&a[n][s].isBefore(this.minDate,"day")&&Y.push("off","disabled"),_&&a[n][s].isAfter(_,"day")&&Y.push("off","disabled"),this.isInvalidDate(a[n][s])&&Y.push("off","disabled"),a[n][s].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Y.push("active","start-date"),null!=this.endDate&&a[n][s].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Y.push("active","end-date"),null!=this.endDate&&a[n][s]>this.startDate&&a[n][s]<this.endDate&&Y.push("in-range");var L=this.isCustomDate(a[n][s]);!1!==L&&("string"==typeof L?Y.push(L):Array.prototype.push.apply(Y,L));for(var z="",H=!1,$=0;$<Y.length;$++)z+=Y[$]+" ","disabled"==Y[$]&&(H=!0);H||(z+="available"),k+='<td class="'+z.replace(/^\s+|\s+$/g,"")+'" data-title="r'+n+"c"+s+'">'+a[n][s].date()+"</td>"}k+="</tr>"}k+="</tbody>",k+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(k)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,i,s,n=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(n=this.startDate.clone().add(this.maxSpan)),"left"==t)i=this.startDate.clone(),s=this.minDate;else if("right"==t){i=this.endDate.clone(),s=this.startDate;var a=this.container.find(".drp-calendar.right .calendar-time");if(""!=a.html()&&(i.hour(isNaN(i.hour())?a.find(".hourselect option:selected").val():i.hour()),i.minute(isNaN(i.minute())?a.find(".minuteselect option:selected").val():i.minute()),i.second(isNaN(i.second())?a.find(".secondselect option:selected").val():i.second()),!this.timePicker24Hour)){var r=a.find(".ampmselect option:selected").val();"PM"===r&&12>i.hour()&&i.hour(i.hour()+12),"AM"===r&&12===i.hour()&&i.hour(0)}i.isBefore(this.startDate)&&(i=this.startDate.clone()),n&&i.isAfter(n)&&(i=n.clone())}e='<select class="hourselect">';for(var o=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,h=o;h<=l;h++){var c=h;this.timePicker24Hour||(c=i.hour()>=12?12==h?12:h+12:12==h?0:h);var d=i.clone().hour(c),u=!1;s&&d.minute(59).isBefore(s)&&(u=!0),n&&d.minute(0).isAfter(n)&&(u=!0),c!=i.hour()||u?u?e+='<option value="'+h+'" disabled="disabled" class="disabled">'+h+"</option>":e+='<option value="'+h+'">'+h+"</option>":e+='<option value="'+h+'" selected="selected">'+h+"</option>"}e+="</select> ",e+=': <select class="minuteselect">';for(var h=0;h<60;h+=this.timePickerIncrement){var f=h<10?"0"+h:h,d=i.clone().minute(h),u=!1;s&&d.second(59).isBefore(s)&&(u=!0),n&&d.second(0).isAfter(n)&&(u=!0),i.minute()!=h||u?u?e+='<option value="'+h+'" disabled="disabled" class="disabled">'+f+"</option>":e+='<option value="'+h+'">'+f+"</option>":e+='<option value="'+h+'" selected="selected">'+f+"</option>"}if(e+="</select> ",this.timePickerSeconds){e+=': <select class="secondselect">';for(var h=0;h<60;h++){var f=h<10?"0"+h:h,d=i.clone().second(h),u=!1;s&&d.isBefore(s)&&(u=!0),n&&d.isAfter(n)&&(u=!0),i.second()!=h||u?u?e+='<option value="'+h+'" disabled="disabled" class="disabled">'+f+"</option>":e+='<option value="'+h+'">'+f+"</option>":e+='<option value="'+h+'" selected="selected">'+f+"</option>"}e+="</select> "}if(!this.timePicker24Hour){e+='<select class="ampmselect">';var p="",m="";s&&i.clone().hour(12).minute(0).second(0).isBefore(s)&&(p=' disabled="disabled" class="disabled"'),n&&i.clone().hour(0).minute(0).second(0).isAfter(n)&&(m=' disabled="disabled" class="disabled"'),i.hour()>=12?e+='<option value="AM"'+p+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":e+='<option value="AM" selected="selected"'+p+'>AM</option><option value="PM"'+m+">PM</option>",e+="</select>"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var t,i={top:0,left:0},s=this.drops,n=e(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},n=this.parentEl[0].clientWidth+this.parentEl.offset().left),s){case"auto":(t=this.element.offset().top+this.element.outerHeight()-i.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(t=this.element.offset().top-this.container.outerHeight()-i.top,s="up");break;case"up":t=this.element.offset().top-this.container.outerHeight()-i.top;break;default:t=this.element.offset().top+this.element.outerHeight()-i.top}this.container.css({top:0,left:0,right:"auto"});var a=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==s),"left"==this.opens){var r=n-this.element.offset().left-this.element.outerWidth();a+r>e(window).width()?this.container.css({top:t,right:"auto",left:9}):this.container.css({top:t,right:r,left:"auto"})}else if("center"==this.opens){var o=this.element.offset().left-i.left+this.element.outerWidth()/2-a/2;o<0?this.container.css({top:t,right:"auto",left:9}):o+a>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:o,right:"auto"})}else{var o=this.element.offset().left-i.left;o+a>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:o,right:"auto"})}},show:function(t){this.isShowing||(this._outsideClickProxy=e.proxy(function(t){this.outsideClick(t)},this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var i=e(t.target);"focusin"==t.type||i.closest(this.element).length||i.closest(this.container).length||i.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[e];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(e(t.target).hasClass("available")){var i,s=e(t.target).attr("data-title"),n=s.substr(1,1),a=s.substr(3,1),r=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][a]:this.rightCalendar.calendar[n][a],o=this.leftCalendar,l=this.rightCalendar,h=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(t,i){if(!e(i).hasClass("week")){var s,n=e(i).attr("data-title"),a=n.substr(1,1),c=n.substr(3,1),d=e(i).parents(".drp-calendar").hasClass("left")?o.calendar[a][c]:l.calendar[a][c];d.isAfter(h)&&d.isBefore(r)||d.isSame(r,"day")?e(i).addClass("in-range"):e(i).removeClass("in-range")}})}},clickDate:function(t){if(e(t.target).hasClass("available")){var i,s=e(t.target).attr("data-title"),n=s.substr(1,1),a=s.substr(3,1),r=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][a]:this.rightCalendar.calendar[n][a];if(this.endDate||r.isBefore(this.startDate,"day")){if(this.timePicker){var o=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var l=this.container.find(".left .ampmselect").val();"PM"===l&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0)}var h=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(h)&&(h=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var c=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;r=r.clone().hour(o).minute(h).second(c)}this.endDate=null,this.setStartDate(r.clone())}else if(!this.endDate&&r.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var o=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var l=this.container.find(".right .ampmselect").val();"PM"===l&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0)}var h=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(h)&&(h=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var c=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;r=r.clone().hour(o).minute(h).second(c)}this.setEndDate(r.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var i in this.ranges){if(this.timePicker){var s=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(s)==this.ranges[i][0].format(s)&&this.endDate.format(s)==this.ranges[i][1].format(s)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[i][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var i=e(t.target).closest(".drp-calendar").hasClass("left"),s=i?"left":"right",n=this.container.find(".drp-calendar."+s),a=parseInt(n.find(".monthselect").val(),10),r=n.find(".yearselect").val();!i&&(r<this.startDate.year()||r==this.startDate.year()&&a<this.startDate.month())&&(a=this.startDate.month(),r=this.startDate.year()),this.minDate&&(r<this.minDate.year()||r==this.minDate.year()&&a<this.minDate.month())&&(a=this.minDate.month(),r=this.minDate.year()),this.maxDate&&(r>this.maxDate.year()||r==this.maxDate.year()&&a>this.maxDate.month())&&(a=this.maxDate.month(),r=this.maxDate.year()),i?(this.leftCalendar.month.month(a).year(r),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(a).year(r),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var i=e(t.target).closest(".drp-calendar"),s=i.hasClass("left"),n=parseInt(i.find(".hourselect").val(),10),a=parseInt(i.find(".minuteselect").val(),10);isNaN(a)&&(a=parseInt(i.find(".minuteselect option:last").val(),10));var r=this.timePickerSeconds?parseInt(i.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var o=i.find(".ampmselect").val();"PM"===o&&n<12&&(n+=12),"AM"===o&&12===n&&(n=0)}if(s){var l=this.startDate.clone();l.hour(n),l.minute(a),l.second(r),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var h=this.endDate.clone();h.hour(n),h.minute(a),h.second(r),this.setEndDate(h)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e=this.element.val().split(this.locale.separator),i=null,s=null;2===e.length&&(i=t(e[0],this.locale.format),s=t(e[1],this.locale.format)),(this.singleDatePicker||null===i||null===s)&&(s=i=t(this.element.val(),this.locale.format)),i.isValid()&&s.isValid()&&(this.setStartDate(i),this.setEndDate(s),this.updateView())}},keydown:function(t){(9===t.keyCode||13===t.keyCode)&&this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},e.fn.daterangepicker=function(t,s){var n=e.extend(!0,{},e.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=e(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,n,s))}),this},i});