One Hat Cyber Team
  • Dir : ~/home/redesystem/public_html/sys/public/assets/js/
  • Edit File: third-party.js
    ",h.noCloneChecked=!!de.cloneNode(!0).lastChild.defaultValue,de.innerHTML="",h.option=!!de.lastChild;var pe={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&w(e,t)?b.merge([e],n):n}function ge(e,t){for(var n=0,i=e.length;n",""]);var ve=/<|&#?\w+;/;function Me(e,t,n,i,r){for(var a,o,s,c,l,d,C=t.createDocumentFragment(),u=[],h=0,f=e.length;h\s*$/g;function Se(e,t){return w(e,"table")&&w(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ke(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function $e(e,t){var n,i,r,a,o,s;if(1===t.nodeType){if(K.hasData(e)&&(s=K.get(e).events))for(r in K.remove(t,"handle events"),s)for(n=0,i=s[r].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Bt=[],Wt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||b.expando+"_"+bt.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,n,i){var r,a,o,s=!1!==t.jsonp&&(Wt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Wt,"$1"+r):!1!==t.jsonp&&(t.url+=(zt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||b.error(r+" was not called"),o[0]},t.dataTypes[0]="json",a=e[r],e[r]=function(){o=arguments},i.always((function(){void 0===a?b(e).removeProp(r):e[r]=a,t[r]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(r)),o&&f(a)&&a(o[0]),o=a=void 0})),"script"})),h.createHTMLDocument=((Yt=m.implementation.createHTMLDocument("").body).innerHTML="
    ",2===Yt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(i)):t=m),a=!n&&[],(r=x.exec(e))?[t.createElement(r[1])]:(r=Me([e],t,a),a&&a.length&&b(a).remove(),b.merge([],r.childNodes)));var i,r,a},b.fn.load=function(e,t,n){var i,r,a,o=this,s=e.indexOf(" ");return-1").append(b.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,n){var i,r,a,o,s,c,l=b.css(e,"position"),d=b(e),C={};"static"===l&&(e.style.position="relative"),s=d.offset(),a=b.css(e,"top"),c=b.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(a+c).indexOf("auto")?(o=(i=d.position()).top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(c)||0),f(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(C.top=t.top-s.top+o),null!=t.left&&(C.left=t.left-s.left+r),"using"in t?t.using.call(e,C):d.css(C)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===b.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),r.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-b.css(i,"marginTop",!0),left:t.left-r.left-b.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||ie}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;b.fn[e]=function(i){return F(this,(function(e,i,r){var a;if(p(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===r)return a?a[t]:e[i];a?a.scrollTo(n?a.pageXOffset:r,n?r:a.pageYOffset):e[i]=r}),e,i,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=Ne(h.pixelPosition,(function(e,n){if(n)return n=Re(e,t),Ae.test(n)?b(e).position()[t]+"px":n}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){b.fn[i]=function(r,a){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===a?"margin":"border");return F(this,(function(t,n,r){var a;return p(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===r?b.css(t,n,s):b.style(t,n,r,s)}),t,o?r:void 0,o)}}))})),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){b.fn[t]=function(e,n){return 0{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t},n=e=>{const n=t(e);return n&&document.querySelector(n)?n:null},i=e=>{const n=t(e);return n?document.querySelector(n):null},r=t=>{t.dispatchEvent(new Event(e))},a=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),o=e=>a(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,s=(e,t,n)=>{Object.keys(n).forEach((i=>{const r=n[i],o=t[i],s=o&&a(o)?"element":null==(c=o)?`${c}`:{}.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase();var c;if(!new RegExp(r).test(s))throw new TypeError(`${e.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}))},c=e=>!(!a(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},C=()=>{},u=e=>{e.offsetHeight},h=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},f=[],p=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=h();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{f.forEach((e=>e()))})),f.push(t)):t()},g=e=>{"function"==typeof e&&e()},v=(t,n,i=!0)=>{if(!i)return void g(t);const a=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),r=Number.parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(n)+5;let o=!1;const s=({target:i})=>{i===n&&(o=!0,n.removeEventListener(e,s),g(t))};n.addEventListener(e,s),setTimeout((()=>{o||r(n)}),a)},M=(e,t,n,i)=>{let r=e.indexOf(t);if(-1===r)return e[!n&&i?e.length-1:0];const a=e.length;return r+=n?1:-1,i&&(r=(r+a)%a),e[Math.max(0,Math.min(r,a-1))]},y=/[^.]*(?=\..*)\.|.*/,b=/\..*/,z=/::\d+$/,L={};let H=1;const V={mouseenter:"mouseover",mouseleave:"mouseout"},_=/^(mouseenter|mouseleave)/i,w=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 x(e,t){return t&&`${t}::${H++}`||e.uidEvent||H++}function S(e){const t=x(e);return e.uidEvent=t,L[t]=L[t]||{},L[t]}function D(e,t,n=null){const i=Object.keys(e);for(let r=0,a=i.length;rfunction(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};i?i=e(i):n=e(n)}const[a,o,s]=k(t,n,i),c=S(e),l=c[s]||(c[s]={}),d=D(l,o,a?n:null);if(d)return void(d.oneOff=d.oneOff&&r);const C=x(o,t.replace(y,"")),u=a?function(e,t,n){return function i(r){const a=e.querySelectorAll(t);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(let s=a.length;s--;)if(a[s]===o)return r.delegateTarget=o,i.oneOff&&A.off(e,r.type,t,n),n.apply(o,[r]);return null}}(e,n,i):function(e,t){return function n(i){return i.delegateTarget=e,n.oneOff&&A.off(e,i.type,t),t.apply(e,[i])}}(e,n);u.delegationSelector=a?n:null,u.originalHandler=o,u.oneOff=r,u.uidEvent=C,l[C]=u,e.addEventListener(s,u,a)}function E(e,t,n,i,r){const a=D(t[n],i,r);a&&(e.removeEventListener(n,a,Boolean(r)),delete t[n][a.uidEvent])}function T(e){return e=e.replace(b,""),V[e]||e}const A={on(e,t,n,i){$(e,t,n,i,!1)},one(e,t,n,i){$(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[r,a,o]=k(t,n,i),s=o!==t,c=S(e),l=t.startsWith(".");if(void 0!==a){if(!c||!c[o])return;return void E(e,c,o,a,r?n:null)}l&&Object.keys(c).forEach((n=>{!function(e,t,n,i){const r=t[n]||{};Object.keys(r).forEach((a=>{if(a.includes(i)){const i=r[a];E(e,t,n,i.originalHandler,i.delegationSelector)}}))}(e,c,n,t.slice(1))}));const d=c[o]||{};Object.keys(d).forEach((n=>{const i=n.replace(z,"");if(!s||t.includes(i)){const t=d[n];E(e,c,o,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=h(),r=T(t),a=t!==r,o=w.has(r);let s,c=!0,l=!0,d=!1,C=null;return a&&i&&(s=i.Event(t,n),i(e).trigger(s),c=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented()),o?(C=document.createEvent("HTMLEvents"),C.initEvent(r,c,!0)):C=new CustomEvent(t,{bubbles:c,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(C,e,{get:()=>n[e]})})),d&&C.preventDefault(),l&&e.dispatchEvent(C),C.defaultPrevented&&void 0!==s&&s.preventDefault(),C}},O=new Map,P={set(e,t,n){O.has(e)||O.set(e,new Map);const i=O.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>O.has(e)&&O.get(e).get(t)||null,remove(e,t){if(!O.has(e))return;const n=O.get(e);n.delete(t),0===n.size&&O.delete(e)}};class I{constructor(e){(e=o(e))&&(this._element=e,P.set(this._element,this.constructor.DATA_KEY,this))}dispose(){P.remove(this._element,this.constructor.DATA_KEY),A.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,n=!0){v(e,t,n)}static getInstance(e){return P.get(o(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const R=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;A.on(document,n,`[data-bs-dismiss="${r}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),l(this))return;const a=i(this)||this.closest(`.${r}`);e.getOrCreateInstance(a)[t]()}))};class N extends I{static get NAME(){return"alert"}close(){if(A.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),A.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=N.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}R(N,"close"),m(N);const j='[data-bs-toggle="button"]';class F extends I{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=F.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}function Y(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function B(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}A.on(document,"click.bs.button.data-api",j,(e=>{e.preventDefault();const t=e.target.closest(j);F.getOrCreateInstance(t).toggle()})),m(F);const W={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${B(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${B(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Y(e.dataset[n])})),t},getDataAttribute:(e,t)=>Y(e.getAttribute(`data-bs-${B(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},U={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let i=e.parentNode;for(;i&&i.nodeType===Node.ELEMENT_NODE&&3!==i.nodeType;)i.matches(t)&&n.push(i),i=i.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!l(e)&&c(e)))}},q="carousel",G={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},X="next",Z="prev",J="left",Q="right",ee={ArrowLeft:Q,ArrowRight:J},te="slid.bs.carousel",ne="active",ie=".active.carousel-item";class re extends I{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=U.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return G}static get NAME(){return q}next(){this._slide(X)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide(Z)}pause(e){e||(this._isPaused=!0),U.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(r(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=U.findOne(ie,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void A.one(this._element,te,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const n=e>t?X:Z;this._slide(n,this._items[e])}_getConfig(e){return e={...G,...W.getDataAttributes(this._element),..."object"==typeof e?e:{}},s(q,e,K),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?Q:J)}_addEventListeners(){this._config.keyboard&&A.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(A.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),A.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),t=t=>{e(t)?this.touchStartX=t.clientX:this._pointerEvent||(this.touchStartX=t.touches[0].clientX)},n=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},i=t=>{e(t)&&(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};U.find(".carousel-item img",this._element).forEach((e=>{A.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(A.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),A.on(this._element,"pointerup.bs.carousel",(e=>i(e))),this._element.classList.add("pointer-event")):(A.on(this._element,"touchstart.bs.carousel",(e=>t(e))),A.on(this._element,"touchmove.bs.carousel",(e=>n(e))),A.on(this._element,"touchend.bs.carousel",(e=>i(e))))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ee[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?U.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const n=e===X;return M(this._items,t,n,this._config.wrap)}_triggerSlideEvent(e,t){const n=this._getItemIndex(e),i=this._getItemIndex(U.findOne(ie,this._element));return A.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:i,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=U.findOne(".active",this._indicatorsElement);t.classList.remove(ne),t.removeAttribute("aria-current");const n=U.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t{A.trigger(this._element,te,{relatedTarget:a,direction:C,from:r,to:o})};if(this._element.classList.contains("slide")){a.classList.add(d),u(a),i.classList.add(l),a.classList.add(l);const e=()=>{a.classList.remove(l,d),a.classList.add(ne),i.classList.remove(ne,d,l),this._isSliding=!1,setTimeout(h,0)};this._queueCallback(e,i,!0)}else i.classList.remove(ne),a.classList.add(ne),this._isSliding=!1,h();s&&this.cycle()}_directionToOrder(e){return[Q,J].includes(e)?p()?e===J?Z:X:e===J?X:Z:e}_orderToDirection(e){return[X,Z].includes(e)?p()?e===Z?J:Q:e===Z?Q:J:e}static carouselInterface(e,t){const n=re.getOrCreateInstance(e,t);let{_config:i}=n;"object"==typeof t&&(i={...i,...t});const r="string"==typeof t?t:i.slide;if("number"==typeof t)n.to(t);else if("string"==typeof r){if(void 0===n[r])throw new TypeError(`No method named "${r}"`);n[r]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each((function(){re.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=i(this);if(!t||!t.classList.contains("carousel"))return;const n={...W.getDataAttributes(t),...W.getDataAttributes(this)},r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),re.carouselInterface(t,n),r&&re.getInstance(t).to(r),e.preventDefault()}}A.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",re.dataApiClickHandler),A.on(window,"load.bs.carousel.data-api",(()=>{const e=U.find('[data-bs-ride="carousel"]');for(let t=0,n=e.length;te===this._element));null!==r&&a.length&&(this._selector=r,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return oe}static get NAME(){return ae}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=U.find(ue,this._config.parent);t=U.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const n=U.findOne(this._selector);if(t.length){const i=t.find((e=>n!==e));if(e=i?fe.getInstance(i):null,e&&e._isTransitioning)return}if(A.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{n!==t&&fe.getOrCreateInstance(t,{toggle:!1}).hide(),e||P.set(t,"bs.collapse",null)}));const i=this._getDimension();this._element.classList.remove(le),this._element.classList.add(de),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(de),this._element.classList.add(le,ce),this._element.style[i]="",A.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(A.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,u(this._element),this._element.classList.add(de),this._element.classList.remove(le,ce);const t=this._triggerArray.length;for(let e=0;e{this._isTransitioning=!1,this._element.classList.remove(de),this._element.classList.add(le),A.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ce)}_getConfig(e){return(e={...oe,...W.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=o(e.parent),s(ae,e,se),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=U.find(ue,this._config.parent);U.find(he,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=i(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(Ce):e.classList.add(Ce),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const n=fe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}A.on(document,"click.bs.collapse.data-api",he,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=n(this);U.find(t).forEach((e=>{fe.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),m(fe);var pe="top",me="bottom",ge="right",ve="left",Me="auto",ye=[pe,me,ge,ve],be="start",ze="end",Le="clippingParents",He="viewport",Ve="popper",_e="reference",we=ye.reduce((function(e,t){return e.concat([t+"-"+be,t+"-"+ze])}),[]),xe=[].concat(ye,[Me]).reduce((function(e,t){return e.concat([t,t+"-"+be,t+"-"+ze])}),[]),Se="beforeRead",De="read",ke="afterRead",$e="beforeMain",Ee="main",Te="afterMain",Ae="beforeWrite",Oe="write",Pe="afterWrite",Ie=[Se,De,ke,$e,Ee,Te,Ae,Oe,Pe];function Re(e){return e?(e.nodeName||"").toLowerCase():null}function Ne(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function je(e){return e instanceof Ne(e).Element||e instanceof Element}function Fe(e){return e instanceof Ne(e).HTMLElement||e instanceof HTMLElement}function Ye(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ne(e).ShadowRoot||e instanceof ShadowRoot)}const Be={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];Fe(r)&&Re(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Fe(i)&&Re(i)&&(Object.assign(i.style,a),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function We(e){return e.split("-")[0]}function Ue(e,t){var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}function qe(e){var t=Ue(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ge(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ye(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ke(e){return Ne(e).getComputedStyle(e)}function Xe(e){return["table","td","th"].indexOf(Re(e))>=0}function Ze(e){return((je(e)?e.ownerDocument:e.document)||window.document).documentElement}function Je(e){return"html"===Re(e)?e:e.assignedSlot||e.parentNode||(Ye(e)?e.host:null)||Ze(e)}function Qe(e){return Fe(e)&&"fixed"!==Ke(e).position?e.offsetParent:null}function et(e){for(var t=Ne(e),n=Qe(e);n&&Xe(n)&&"static"===Ke(n).position;)n=Qe(n);return n&&("html"===Re(n)||"body"===Re(n)&&"static"===Ke(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Fe(e)&&"fixed"===Ke(e).position)return null;for(var n=Je(e);Fe(n)&&["html","body"].indexOf(Re(n))<0;){var i=Ke(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function tt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var nt=Math.max,it=Math.min,rt=Math.round;function at(e,t,n){return nt(e,it(t,n))}function ot(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function st(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const ct={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=We(n.placement),c=tt(s),l=[ve,ge].indexOf(s)>=0?"height":"width";if(a&&o){var d=function(e,t){return ot("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:st(e,ye))}(r.padding,n),C=qe(a),u="y"===c?pe:ve,h="y"===c?me:ge,f=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],p=o[c]-n.rects.reference[c],m=et(a),g=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,v=f/2-p/2,M=d[u],y=g-C[l]-d[h],b=g/2-C[l]/2+v,z=at(M,b,y),L=c;n.modifiersData[i]=((t={})[L]=z,t.centerOffset=z-b,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ge(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lt(e){return e.split("-")[1]}var dt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ct(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,d=e.roundOffsets,C=!0===d?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:rt(rt(t*i)/i)||0,y:rt(rt(n*i)/i)||0}}(o):"function"==typeof d?d(o):o,u=C.x,h=void 0===u?0:u,f=C.y,p=void 0===f?0:f,m=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),v=ve,M=pe,y=window;if(l){var b=et(n),z="clientHeight",L="clientWidth";b===Ne(n)&&"static"!==Ke(b=Ze(n)).position&&"absolute"===s&&(z="scrollHeight",L="scrollWidth"),b=b,r!==pe&&(r!==ve&&r!==ge||a!==ze)||(M=me,p-=b[z]-i.height,p*=c?1:-1),r!==ve&&(r!==pe&&r!==me||a!==ze)||(v=ge,h-=b[L]-i.width,h*=c?1:-1)}var H,V=Object.assign({position:s},l&&dt);return c?Object.assign({},V,((H={})[M]=g?"0":"",H[v]=m?"0":"",H.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",H)):Object.assign({},V,((t={})[M]=g?p+"px":"",t[v]=m?h+"px":"",t.transform="",t))}const ut={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,c=void 0===s||s,l={placement:We(t.placement),variation:lt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ct(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ct(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ht={passive:!0};const ft={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,o=i.resize,s=void 0===o||o,c=Ne(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",n.update,ht)})),s&&c.addEventListener("resize",n.update,ht),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",n.update,ht)})),s&&c.removeEventListener("resize",n.update,ht)}},data:{}};var pt={left:"right",right:"left",bottom:"top",top:"bottom"};function mt(e){return e.replace(/left|right|bottom|top/g,(function(e){return pt[e]}))}var gt={start:"end",end:"start"};function vt(e){return e.replace(/start|end/g,(function(e){return gt[e]}))}function Mt(e){var t=Ne(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yt(e){return Ue(Ze(e)).left+Mt(e).scrollLeft}function bt(e){var t=Ke(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function zt(e){return["html","body","#document"].indexOf(Re(e))>=0?e.ownerDocument.body:Fe(e)&&bt(e)?e:zt(Je(e))}function Lt(e,t){var n;void 0===t&&(t=[]);var i=zt(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),a=Ne(i),o=r?[a].concat(a.visualViewport||[],bt(i)?i:[]):i,s=t.concat(o);return r?s:s.concat(Lt(Je(o)))}function Ht(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vt(e,t){return t===He?Ht(function(e){var t=Ne(e),n=Ze(e),i=t.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,s=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:r,height:a,x:o+yt(e),y:s}}(e)):Fe(t)?function(e){var t=Ue(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Ht(function(e){var t,n=Ze(e),i=Mt(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=nt(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=nt(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+yt(e),c=-i.scrollTop;return"rtl"===Ke(r||n).direction&&(s+=nt(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}(Ze(e)))}function _t(e){var t,n=e.reference,i=e.element,r=e.placement,a=r?We(r):null,o=r?lt(r):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(a){case pe:t={x:s,y:n.y-i.height};break;case me:t={x:s,y:n.y+n.height};break;case ge:t={x:n.x+n.width,y:c};break;case ve:t={x:n.x-i.width,y:c};break;default:t={x:n.x,y:n.y}}var l=a?tt(a):null;if(null!=l){var d="y"===l?"height":"width";switch(o){case be:t[l]=t[l]-(n[d]/2-i[d]/2);break;case ze:t[l]=t[l]+(n[d]/2-i[d]/2)}}return t}function wt(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,a=n.boundary,o=void 0===a?Le:a,s=n.rootBoundary,c=void 0===s?He:s,l=n.elementContext,d=void 0===l?Ve:l,C=n.altBoundary,u=void 0!==C&&C,h=n.padding,f=void 0===h?0:h,p=ot("number"!=typeof f?f:st(f,ye)),m=d===Ve?_e:Ve,g=e.rects.popper,v=e.elements[u?m:d],M=function(e,t,n){var i="clippingParents"===t?function(e){var t=Lt(Je(e)),n=["absolute","fixed"].indexOf(Ke(e).position)>=0&&Fe(e)?et(e):e;return je(n)?t.filter((function(e){return je(e)&&Ge(e,n)&&"body"!==Re(e)})):[]}(e):[].concat(t),r=[].concat(i,[n]),a=r[0],o=r.reduce((function(t,n){var i=Vt(e,n);return t.top=nt(i.top,t.top),t.right=it(i.right,t.right),t.bottom=it(i.bottom,t.bottom),t.left=nt(i.left,t.left),t}),Vt(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(je(v)?v:v.contextElement||Ze(e.elements.popper),o,c),y=Ue(e.elements.reference),b=_t({reference:y,element:g,strategy:"absolute",placement:r}),z=Ht(Object.assign({},g,b)),L=d===Ve?z:y,H={top:M.top-L.top+p.top,bottom:L.bottom-M.bottom+p.bottom,left:M.left-L.left+p.left,right:L.right-M.right+p.right},V=e.modifiersData.offset;if(d===Ve&&V){var _=V[r];Object.keys(H).forEach((function(e){var t=[ge,me].indexOf(e)>=0?1:-1,n=[pe,me].indexOf(e)>=0?"y":"x";H[e]+=_[n]*t}))}return H}const xt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,a=void 0===r||r,o=n.altAxis,s=void 0===o||o,c=n.fallbackPlacements,l=n.padding,d=n.boundary,C=n.rootBoundary,u=n.altBoundary,h=n.flipVariations,f=void 0===h||h,p=n.allowedAutoPlacements,m=t.options.placement,g=We(m),v=c||(g!==m&&f?function(e){if(We(e)===Me)return[];var t=mt(e);return[vt(e),t,vt(t)]}(m):[mt(m)]),M=[m].concat(v).reduce((function(e,n){return e.concat(We(n)===Me?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?xe:c,d=lt(i),C=d?s?we:we.filter((function(e){return lt(e)===d})):ye,u=C.filter((function(e){return l.indexOf(e)>=0}));0===u.length&&(u=C);var h=u.reduce((function(t,n){return t[n]=wt(e,{placement:n,boundary:r,rootBoundary:a,padding:o})[We(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:d,rootBoundary:C,padding:l,flipVariations:f,allowedAutoPlacements:p}):n)}),[]),y=t.rects.reference,b=t.rects.popper,z=new Map,L=!0,H=M[0],V=0;V=0,D=S?"width":"height",k=wt(t,{placement:_,boundary:d,rootBoundary:C,altBoundary:u,padding:l}),$=S?x?ge:ve:x?me:pe;y[D]>b[D]&&($=mt($));var E=mt($),T=[];if(a&&T.push(k[w]<=0),s&&T.push(k[$]<=0,k[E]<=0),T.every((function(e){return e}))){H=_,L=!1;break}z.set(_,T)}if(L)for(var A=function(e){var t=M.find((function(t){var n=z.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return H=t,"break"},O=f?3:1;O>0&&"break"!==A(O);O--);t.placement!==H&&(t.modifiersData[i]._skip=!0,t.placement=H,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function St(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Dt(e){return[pe,ge,me,ve].some((function(t){return e[t]>=0}))}const kt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,o=wt(t,{elementContext:"reference"}),s=wt(t,{altBoundary:!0}),c=St(o,i),l=St(s,r,a),d=Dt(c),C=Dt(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:C},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":C})}},$t={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=void 0===r?[0,0]:r,o=xe.reduce((function(e,n){return e[n]=function(e,t,n){var i=We(e),r=[ve,pe].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[ve,ge].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e}),{}),s=o[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[i]=o}},Et={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_t({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Tt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,a=void 0===r||r,o=n.altAxis,s=void 0!==o&&o,c=n.boundary,l=n.rootBoundary,d=n.altBoundary,C=n.padding,u=n.tether,h=void 0===u||u,f=n.tetherOffset,p=void 0===f?0:f,m=wt(t,{boundary:c,rootBoundary:l,padding:C,altBoundary:d}),g=We(t.placement),v=lt(t.placement),M=!v,y=tt(g),b="x"===y?"y":"x",z=t.modifiersData.popperOffsets,L=t.rects.reference,H=t.rects.popper,V="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,_={x:0,y:0};if(z){if(a||s){var w="y"===y?pe:ve,x="y"===y?me:ge,S="y"===y?"height":"width",D=z[y],k=z[y]+m[w],$=z[y]-m[x],E=h?-H[S]/2:0,T=v===be?L[S]:H[S],A=v===be?-H[S]:-L[S],O=t.elements.arrow,P=h&&O?qe(O):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=I[w],N=I[x],j=at(0,L[S],P[S]),F=M?L[S]/2-E-j-R-V:T-j-R-V,Y=M?-L[S]/2+E+j+N+V:A+j+N+V,B=t.elements.arrow&&et(t.elements.arrow),W=B?"y"===y?B.clientTop||0:B.clientLeft||0:0,U=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,q=z[y]+F-U-W,G=z[y]+Y-U;if(a){var K=at(h?it(k,q):k,D,h?nt($,G):$);z[y]=K,_[y]=K-D}if(s){var X="x"===y?pe:ve,Z="x"===y?me:ge,J=z[b],Q=J+m[X],ee=J-m[Z],te=at(h?it(Q,q):Q,J,h?nt(ee,G):ee);z[b]=te,_[b]=te-J}}t.modifiersData[i]=_}},requiresIfExists:["offset"]};function At(e,t,n){void 0===n&&(n=!1);var i=Fe(t);Fe(t)&&function(e){var t=e.getBoundingClientRect();t.width,e.offsetWidth,t.height,e.offsetHeight}(t);var r,a,o=Ze(t),s=Ue(e),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Re(t)||bt(o))&&(c=(r=t)!==Ne(r)&&Fe(r)?{scrollLeft:(a=r).scrollLeft,scrollTop:a.scrollTop}:Mt(r)),Fe(t)?((l=Ue(t)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=yt(o))),{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function Ot(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var Pt={placement:"bottom",modifiers:[],strategy:"absolute"};function It(){for(var e=arguments.length,t=new Array(e),n=0;nA.on(e,"mouseover",C))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Jt),this._element.classList.add(Jt),A.trigger(this._element,"shown.bs.dropdown",e)}hide(){if(l(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){A.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>A.off(e,"mouseover",C))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Jt),this._element.classList.remove(Jt),this._element.setAttribute("aria-expanded","false"),W.removeDataAttribute(this._menu,"popper"),A.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...W.getDataAttributes(this._element),...e},s(Bt,e,this.constructor.DefaultType),"object"==typeof e.reference&&!a(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Bt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(void 0===Yt)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:a(this._config.reference)?t=o(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig(),i=n.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=Ft(t,this._menu,n),i&&W.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(Jt)}_getMenuElement(){return U.next(this._element,en)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return on;if(e.classList.contains("dropstart"))return sn;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?nn:tn:t?an:rn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const n=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(c);n.length&&M(n,t,e===Gt,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=dn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const t=U.find(Qt);for(let n=0,i=t.length;nt+e)),this._setElementAttributes(Cn,"paddingRight",(t=>t+e)),this._setElementAttributes(un,"marginRight",(t=>t-e))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e)[t];e.style[t]=`${n(Number.parseFloat(r))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Cn,"paddingRight"),this._resetElementAttributes(un,"marginRight")}_saveInitialAttribute(e,t){const n=e.style[t];n&&W.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=W.getDataAttribute(e,t);void 0===n?e.style.removeProperty(t):(W.removeDataAttribute(e,t),e.style[t]=n)}))}_applyManipulationCallback(e,t){a(e)?t(e):U.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const fn={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},pn={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},mn="show",gn="mousedown.bs.backdrop";class vn{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&u(this._getElement()),this._getElement().classList.add(mn),this._emulateAnimation((()=>{g(e)}))):g(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(mn),this._emulateAnimation((()=>{this.dispose(),g(e)}))):g(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...fn,..."object"==typeof e?e:{}}).rootElement=o(e.rootElement),s("backdrop",e,pn),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),A.on(this._getElement(),gn,(()=>{g(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(A.off(this._element,gn),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){v(e,this._getElement(),this._config.isAnimated)}}const Mn={trapElement:null,autofocus:!0},yn={trapElement:"element",autofocus:"boolean"},bn=".bs.focustrap",zn="backward";class Ln{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),A.off(document,bn),A.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),A.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,A.off(document,bn))}_handleFocusin(e){const{target:t}=e,{trapElement:n}=this._config;if(t===document||t===n||n.contains(t))return;const i=U.focusableChildren(n);0===i.length?n.focus():this._lastTabNavDirection===zn?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?zn:"forward")}_getConfig(e){return e={...Mn,..."object"==typeof e?e:{}},s("focustrap",e,yn),e}}const Hn="modal",Vn="Escape",_n={backdrop:!0,keyboard:!0,focus:!0},wn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},xn="hidden.bs.modal",Sn="show.bs.modal",Dn="resize.bs.modal",kn="click.dismiss.bs.modal",$n="keydown.dismiss.bs.modal",En="mousedown.dismiss.bs.modal",Tn="modal-open",An="show",On="modal-static";class Pn extends I{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=U.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new hn}static get Default(){return _n}static get NAME(){return Hn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||A.trigger(this._element,Sn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Tn),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),A.on(this._dialog,En,(()=>{A.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;if(A.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(An),A.off(this._element,kn),A.off(this._dialog,En),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((e=>A.off(e,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new vn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ln({trapElement:this._element})}_getConfig(e){return e={..._n,...W.getDataAttributes(this._element),..."object"==typeof e?e:{}},s(Hn,e,wn),e}_showElement(e){const t=this._isAnimated(),n=U.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||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,n&&(n.scrollTop=0),t&&u(this._element),this._element.classList.add(An),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,A.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,t)}_setEscapeEvent(){this._isShown?A.on(this._element,$n,(e=>{this._config.keyboard&&e.key===Vn?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==Vn||this._triggerBackdropTransition()})):A.off(this._element,$n)}_setResizeEvent(){this._isShown?A.on(window,Dn,(()=>this._adjustDialog())):A.off(window,Dn)}_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(Tn),this._resetAdjustments(),this._scrollBar.reset(),A.trigger(this._element,xn)}))}_showBackdrop(e){A.on(this._element,kn,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(A.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:n}=this._element,i=t>document.documentElement.clientHeight;!i&&"hidden"===n.overflowY||e.contains(On)||(i||(n.overflowY="hidden"),e.add(On),this._queueCallback((()=>{e.remove(On),i||this._queueCallback((()=>{n.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!p()||n&&!e&&p())&&(this._element.style.paddingLeft=`${t}px`),(n&&!e&&!p()||!n&&e&&p())&&(this._element.style.paddingRight=`${t}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Pn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}A.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=i(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),A.one(t,Sn,(e=>{e.defaultPrevented||A.one(t,xn,(()=>{c(this)&&this.focus()}))}));const n=U.findOne(".modal.show");n&&Pn.getInstance(n).hide(),Pn.getOrCreateInstance(t).toggle(this)})),R(Pn),m(Pn);const In="offcanvas",Rn={backdrop:!0,keyboard:!0,scroll:!1},Nn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},jn="show",Fn=".offcanvas.show",Yn="hidden.bs.offcanvas";class Bn extends I{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return In}static get Default(){return Rn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||A.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new hn).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(jn),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),A.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(A.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(jn),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new hn).reset(),A.trigger(this._element,Yn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...Rn,...W.getDataAttributes(this._element),..."object"==typeof e?e:{}},s(In,e,Nn),e}_initializeBackDrop(){return new vn({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Ln({trapElement:this._element})}_addEventListeners(){A.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=Bn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}A.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=i(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;A.one(t,Yn,(()=>{c(this)&&this.focus()}));const n=U.findOne(Fn);n&&n!==t&&Bn.getInstance(n).hide(),Bn.getOrCreateInstance(t).toggle(this)})),A.on(window,"load.bs.offcanvas.data-api",(()=>U.find(Fn).forEach((e=>Bn.getOrCreateInstance(e).show())))),R(Bn),m(Bn);const Wn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Un=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,qn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Gn=(e,t)=>{const n=e.nodeName.toLowerCase();if(t.includes(n))return!Wn.has(n)||Boolean(Un.test(e.nodeValue)||qn.test(e.nodeValue));const i=t.filter((e=>e instanceof RegExp));for(let e=0,t=i.length;e{Gn(e,o)||n.removeAttribute(e.nodeName)}))}return i.body.innerHTML}const Xn="tooltip",Zn=new Set(["sanitize","allowList","sanitizeFn"]),Jn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Qn={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},ei={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},popperConfig:null},ti={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},ni="fade",ii="show",ri="show",ai="out",oi=".tooltip-inner",si=".modal",ci="hide.bs.modal",li="hover",di="focus";class Ci extends I{constructor(e,t){if(void 0===Yt)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return ei}static get NAME(){return Xn}static get Event(){return ti}static get DefaultType(){return Jn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(ii))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),A.off(this._element.closest(si),ci,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=A.trigger(this._element,this.constructor.Event.SHOW),t=d(this._element),n=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!n)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(oi).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const i=this.getTipElement(),r=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME);i.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this._config.animation&&i.classList.add(ni);const a="function"==typeof this._config.placement?this._config.placement.call(this,i,this._element):this._config.placement,o=this._getAttachment(a);this._addAttachmentClass(o);const{container:s}=this._config;P.set(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),A.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Ft(this._element,i,this._getPopperConfig(o)),i.classList.add(ii);const c=this._resolvePossibleFunction(this._config.customClass);c&&i.classList.add(...c.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{A.on(e,"mouseover",C)}));const l=this.tip.classList.contains(ni);this._queueCallback((()=>{const e=this._hoverState;this._hoverState=null,A.trigger(this._element,this.constructor.Event.SHOWN),e===ai&&this._leave(null,this)}),this.tip,l)}hide(){if(!this._popper)return;const e=this.getTipElement();if(A.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(ii),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>A.off(e,"mouseover",C))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains(ni);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==ri&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),A.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,t),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const t=e.children[0];return this.setContent(t),t.classList.remove(ni,ii),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),oi)}_sanitizeAndSetContent(e,t,n){const i=U.findOne(n,e);t||!i?this.setElementContent(i,t):i.remove()}setElementContent(e,t){if(null!==e)return a(t)?(t=o(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=Kn(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={placement:e,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:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return Qn[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((e=>{if("click"===e)A.on(this._element,this.constructor.Event.CLICK,this._config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===li?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=e===li?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;A.on(this._element,t,this._config.selector,(e=>this._enter(e))),A.on(this._element,n,this._config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},A.on(this._element.closest(si),ci,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?di:li]=!0),t.getTipElement().classList.contains(ii)||t._hoverState===ri?t._hoverState=ri:(clearTimeout(t._timeout),t._hoverState=ri,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===ri&&t.show()}),t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?di:li]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=ai,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===ai&&t.hide()}),t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=W.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{Zn.has(e)&&delete t[e]})),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:o(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),s(Xn,e,this.constructor.DefaultType),e.sanitize&&(e.template=Kn(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=e.getAttribute("class").match(t);null!==n&&n.length>0&&n.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=Ci.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(Ci);const ui={...Ci.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},hi={...Ci.DefaultType,content:"(string|element|function)"},fi={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class pi extends Ci{static get Default(){return ui}static get NAME(){return"popover"}static get Event(){return fi}static get DefaultType(){return hi}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(e){return this.each((function(){const t=pi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(pi);const mi="scrollspy",gi={offset:10,method:"auto",target:""},vi={offset:"number",method:"string",target:"(string|element)"},Mi="active",yi=".nav-link, .list-group-item, .dropdown-item",bi="position";class zi extends I{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,A.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return gi}static get NAME(){return mi}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":bi,t="auto"===this._config.method?e:this._config.method,i=t===bi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),U.find(yi,this._config.target).map((e=>{const r=n(e),a=r?U.findOne(r):null;if(a){const e=a.getBoundingClientRect();if(e.width||e.height)return[W[t](a).top+i,r]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){A.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(e){return(e={...gi,...W.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=o(e.target)||document.documentElement,s(mi,e,vi),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;)this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),n=U.findOne(t.join(","),this._config.target);n.classList.add(Mi),n.classList.contains("dropdown-item")?U.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(Mi):U.parents(n,".nav, .list-group").forEach((e=>{U.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(Mi))),U.prev(e,".nav-item").forEach((e=>{U.children(e,".nav-link").forEach((e=>e.classList.add(Mi)))}))})),A.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){U.find(yi,this._config.target).filter((e=>e.classList.contains(Mi))).forEach((e=>e.classList.remove(Mi)))}static jQueryInterface(e){return this.each((function(){const t=zi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}A.on(window,"load.bs.scrollspy.data-api",(()=>{U.find('[data-bs-spy="scroll"]').forEach((e=>new zi(e)))})),m(zi);const Li="active",Hi="fade",Vi="show",_i=".active",wi=":scope > li > .active";class xi extends I{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Li))return;let e;const t=i(this._element),n=this._element.closest(".nav, .list-group");if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?wi:_i;e=U.find(t,n),e=e[e.length-1]}const r=e?A.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(A.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==r&&r.defaultPrevented)return;this._activate(this._element,n);const a=()=>{A.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),A.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,a):a()}_activate(e,t,n){const i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?U.children(t,_i):U.find(wi,t))[0],r=n&&i&&i.classList.contains(Hi),a=()=>this._transitionComplete(e,i,n);i&&r?(i.classList.remove(Vi),this._queueCallback(a,e,!0)):a()}_transitionComplete(e,t,n){if(t){t.classList.remove(Li);const e=U.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(Li),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(Li),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u(e),e.classList.contains(Hi)&&e.classList.add(Vi);let i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&U.find(".dropdown-toggle",t).forEach((e=>e.classList.add(Li))),e.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(e){return this.each((function(){const t=xi.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}A.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||xi.getOrCreateInstance(this).show()})),m(xi);const Si="toast",Di="hide",ki="show",$i="showing",Ei={animation:"boolean",autohide:"boolean",delay:"number"},Ti={animation:!0,autohide:!0,delay:5e3};class Ai extends I{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Ei}static get Default(){return Ti}static get NAME(){return Si}show(){A.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Di),u(this._element),this._element.classList.add(ki),this._element.classList.add($i),this._queueCallback((()=>{this._element.classList.remove($i),A.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(ki)&&(A.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add($i),this._queueCallback((()=>{this._element.classList.add(Di),this._element.classList.remove($i),this._element.classList.remove(ki),A.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(ki)&&this._element.classList.remove(ki),super.dispose()}_getConfig(e){return e={...Ti,...W.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},s(Si,e,this.constructor.DefaultType),e}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){A.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),A.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),A.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),A.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=Ai.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return R(Ai),m(Ai),{Alert:N,Button:F,Carousel:re,Collapse:fe,Dropdown:dn,Modal:Pn,Offcanvas:Bn,Popover:pi,ScrollSpy:zi,Tab:xi,Toast:Ai,Tooltip:Ci}})),function(){"use strict";var e={},t={};try{"undefined"!=typeof window&&(e=window),"undefined"!=typeof document&&(t=document)}catch(e){}var n=void 0===(u=(e.navigator||{}).userAgent)?"":u,i=e,r=t;function a(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)),i}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n>>0;n--;)t[n]=e[n];return t}function Z(e){return e.classList?X(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function J(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Q(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function ee(e){return e.size!==G.size||e.x!==G.x||e.y!==G.y||e.rotate!==G.rotate||e.flipX||e.flipY}function te(){var e,t,n=b,i=W.familyPrefix,r=W.replacementClass,a=':host,:root{--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Solid";--fa-font-regular:normal 400 1em/1 "Font Awesome 6 Regular";--fa-font-light:normal 300 1em/1 "Font Awesome 6 Light";--fa-font-thin:normal 100 1em/1 "Font Awesome 6 Thin";--fa-font-duotone:normal 900 1em/1 "Font Awesome 6 Duotone";--fa-font-brands:normal 400 1em/1 "Font Awesome 6 Brands"}svg:not(:host).svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible;box-sizing:content-box}.svg-inline--fa{display:var(--fa-display,inline-block);height:1em;overflow:visible;vertical-align:-.125em}.svg-inline--fa.fa-2xs{vertical-align:.1em}.svg-inline--fa.fa-xs{vertical-align:0}.svg-inline--fa.fa-sm{vertical-align:-.0714285705em}.svg-inline--fa.fa-lg{vertical-align:-.2em}.svg-inline--fa.fa-xl{vertical-align:-.25em}.svg-inline--fa.fa-2xl{vertical-align:-.3125em}.svg-inline--fa.fa-pull-left{margin-right:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-pull-right{margin-left:var(--fa-pull-margin,.3em);width:auto}.svg-inline--fa.fa-li{width:var(--fa-li-width,2em);top:.25em}.svg-inline--fa.fa-fw{width:var(--fa-fw-width,1.25em)}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:var(--fa-counter-background-color,#ff253a);border-radius:var(--fa-counter-border-radius,1em);box-sizing:border-box;color:var(--fa-inverse,#fff);line-height:var(--fa-counter-line-height,1);max-width:var(--fa-counter-max-width,5em);min-width:var(--fa-counter-min-width,1.5em);overflow:hidden;padding:var(--fa-counter-padding,.25em .5em);right:var(--fa-right,0);text-overflow:ellipsis;top:var(--fa-top,0);-webkit-transform:scale(var(--fa-counter-scale,.25));transform:scale(var(--fa-counter-scale,.25));-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:var(--fa-bottom,0);right:var(--fa-right,0);top:auto;-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:var(--fa-bottom,0);left:var(--fa-left,0);right:auto;top:auto;-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{top:var(--fa-top,0);right:var(--fa-right,0);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:var(--fa-left,0);right:auto;top:var(--fa-top,0);-webkit-transform:scale(var(--fa-layers-scale,.25));transform:scale(var(--fa-layers-scale,.25));-webkit-transform-origin:top left;transform-origin:top left}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.0833333337em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.0714285718em;vertical-align:.0535714295em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.0416666682em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin,2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width,2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width,2em);line-height:inherit}.fa-border{border-color:var(--fa-border-color,#eee);border-radius:var(--fa-border-radius,.1em);border-style:var(--fa-border-style,solid);border-width:var(--fa-border-width,.08em);padding:var(--fa-border-padding,.2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin,.3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin,.3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.28,.84,.42,1))}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1));animation-timing-function:var(--fa-animation-timing,cubic-bezier(.4,0,.6,1))}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,ease-in-out);animation-timing-function:var(--fa-animation-timing,ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-delay:var(--fa-animation-delay,0);animation-delay:var(--fa-animation-delay,0);-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,2s);animation-duration:var(--fa-animation-duration,2s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,linear);animation-timing-function:var(--fa-animation-timing,linear)}.fa-spin-reverse{--fa-animation-direction:reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction,normal);animation-direction:var(--fa-animation-direction,normal);-webkit-animation-duration:var(--fa-animation-duration,1s);animation-duration:var(--fa-animation-duration,1s);-webkit-animation-iteration-count:var(--fa-animation-iteration-count,infinite);animation-iteration-count:var(--fa-animation-iteration-count,infinite);-webkit-animation-timing-function:var(--fa-animation-timing,steps(8));animation-timing-function:var(--fa-animation-timing,steps(8))}@media (prefers-reduced-motion:reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale,1.25));transform:scale(var(--fa-beat-scale,1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}100%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x,1.1),var(--fa-bounce-start-scale-y,.9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em));transform:scale(var(--fa-bounce-jump-scale-x,.9),var(--fa-bounce-jump-scale-y,1.1)) translateY(var(--fa-bounce-height,-.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x,1.05),var(--fa-bounce-land-scale-y,.95)) translateY(0)}57%{-webkit-transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em));transform:scale(1,1) translateY(var(--fa-bounce-rebound,-.125em))}64%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}100%{-webkit-transform:scale(1,1) translateY(0);transform:scale(1,1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity,.4)}}@-webkit-keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@keyframes fa-beat-fade{0%,100%{opacity:var(--fa-beat-fade-opacity,.4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale,1.125));transform:scale(var(--fa-beat-fade-scale,1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg));transform:rotate3d(var(--fa-flip-x,0),var(--fa-flip-y,1),var(--fa-flip-z,0),var(--fa-flip-angle,-180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}24%,8%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}100%,40%{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}24%,8%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}100%,40%{-webkit-transform:rotate(0);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{-webkit-transform:scale(1,-1);transform:scale(1,-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1,-1);transform:scale(-1,-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle,none));transform:rotate(var(--fa-rotate-angle,none))}.fa-stack{display:inline-block;vertical-align:middle;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;z-index:var(--fa-stack-z-index,auto)}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:var(--fa-inverse,#fff)}.fa-sr-only,.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fa-sr-only-focusable:not(:focus),.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor);opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fa-duotone.fa-inverse,.fad.fa-inverse{color:var(--fa-inverse,#fff)}';return"fa"===i&&r===n||(e=new RegExp("\\.".concat("fa","\\-"),"g"),t=new RegExp("\\--".concat("fa","\\-"),"g"),n=new RegExp("\\.".concat(n),"g"),a=a.replace(e,".".concat(i,"-")).replace(t,"--".concat(i,"-")).replace(n,".".concat(r))),a}var ne=!1;function ie(){W.autoAddCss&&!ne&&(function(e){if(e&&M){var t=p.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=p.head.childNodes,i=null,r=n.length-1;-1").concat(r.map(ce).join(""),"")}function le(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function de(e,t,n,i){for(var r,a,o=Object.keys(e),s=o.length,c=void 0!==i?Ce(t,i):t,l=void 0===n?(r=1,e[o[0]]):(r=0,n);r":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var r=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++r).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,i){e=t.GetUniqueElementId(e),t.__cache[e]||(t.__cache[e]={}),t.__cache[e][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter((function(e){return 0===e.indexOf("select2-")}));t=(t=t.getAttribute("class").trim().split(/\s+/)).filter((function(e){return 0!==e.indexOf("select2-")})),t=n.concat(t);e.setAttribute("class",t.join(" "))},t})),z.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('
      ');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e(''),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested",role:"none"})).append(d),c.append(l),c.append(o)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,a=n.id+"-results";this.$results.attr("id",a),n.on("results:all",(function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(e){r.append(e.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(e){r.hideMessages(),r.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e,n=r.getHighlightedResults();0!==n.length&&(e=t.GetData(n[0],"data"),n.hasClass("select2-results__option--selected")?r.trigger("close",{}):r.trigger("select",{data:e}))})),n.on("results:previous",(function(){var e,t=r.getHighlightedResults(),n=r.$results.find(".select2-results__option--selectable"),i=n.index(t);i<=0||(e=i-1,0===t.length&&(e=0),(i=n.eq(e)).trigger("mouseenter"),t=r.$results.offset().top,n=i.offset().top,i=r.$results.scrollTop()+(n-t),0===e?r.$results.scrollTop(0):n-t<0&&r.$results.scrollTop(i))})),n.on("results:next",(function(){var e,t=r.getHighlightedResults(),n=r.$results.find(".select2-results__option--selectable"),i=n.index(t)+1;i>=n.length||((e=n.eq(i)).trigger("mouseenter"),t=r.$results.offset().top+r.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=r.$results.scrollTop()+n-t,0===i?r.$results.scrollTop(0):tthis.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup");null==(t=i(t,n))?n.style.display="none":"string"==typeof t?n.innerHTML=r(t):e(n).append(t)},n})),z.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),z.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n},i.prototype.bind=function(e,t){var i=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),z.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html(''),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("")},r.prototype.update=function(e){var t,n;0!==e.length?(n=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(n,t),t.empty().append(e),(n=n.title||n.text)?t.attr("title",n):t.removeAttr("title")):this.clear()},r})),z.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('
        '),e},i.prototype.bind=function(t,r){var a=this;i.__super__.bind.apply(this,arguments);var o=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o),this.$selection.on("click",(function(e){a.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){var i;a.isDisabled()||(i=e(this).parent(),i=n.GetData(i[0],"data"),a.trigger("unselect",{originalEvent:t,data:i}))})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){a.isDisabled()||e.stopPropagation()}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('
      • ')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",r=0;r')).attr("title",a()),t.attr("aria-label",a()),t.attr("aria-describedby",r),n.StoreData(t[0],"data",i),this.$selection.prepend(t),this.$selection[0].classList.add("select2-selection--clearable"))},i})),z.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('');return this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),t=t.call(this),this._transferTabIndex(),t.append(this.$searchContainer),t},i.prototype.bind=function(e,i,r){var a=this,o=i.id+"-results",s=i.id+"-container";e.call(this,i,r),a.$search.attr("aria-describedby",s),i.on("open",(function(){a.$search.attr("aria-controls",o),a.$search.trigger("focus")})),i.on("close",(function(){a.$search.val(""),a.resizeSearch(),a.$search.removeAttr("aria-controls"),a.$search.removeAttr("aria-activedescendant"),a.$search.trigger("focus")})),i.on("enable",(function(){a.$search.prop("disabled",!1),a._transferTabIndex()})),i.on("disable",(function(){a.$search.prop("disabled",!0)})),i.on("focus",(function(e){a.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?a.$search.attr("aria-activedescendant",e.data._resultId):a.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){a.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){a._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){var i;e.stopPropagation(),a.trigger("keypress",e),a._keyUpPrevented=e.isDefaultPrevented(),e.which!==n.BACKSPACE||""!==a.$search.val()||0<(i=a.$selection.find(".select2-selection__choice").last()).length&&(i=t.GetData(i[0],"data"),a.searchRemoveChoice(i),e.preventDefault())})),this.$selection.on("click",".select2-search--inline",(function(e){a.$search.val()&&e.stopPropagation()}));var c=(i=document.documentMode)&&i<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?a.$selection.off("input.search input.searchcheck"):a.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){var t;c&&"input"===e.type?a.$selection.off("input.search input.searchcheck"):(t=e.which)!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&a.handleSearch(e)}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},i})),z.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this);return-1!==(t=this.options.get("selectionCssClass")||"").indexOf(":all:")&&(t=t.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(t),n},t})),z.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var r=this,a=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){var i;-1!==a.indexOf(t)&&(n=n||{},i=e.Event("select2:"+t,{params:n}),r.$element.trigger(i),-1!==o.indexOf(t)&&(n.prevented=i.isDefaultPrevented()))}))},t})),z.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){var i;return e in n._cache||(i=t(e),n._cache[e]=i),new n(n._cache[e])},n})),z.define("select2/diacritics",[],(function(){return{"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Œ:"OE",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"}})),z.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){return t=t.id+"-result-",t+=e.generateChars(4),null!=n.id?t+="-"+n.id.toString():t+="-"+e.generateChars(4),t},t})),z.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},i.prototype.select=function(e){var t,n=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current((function(t){var i=[];(e=[e]).push.apply(e,t);for(var r=0;rthis.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),z.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){e=null!=e?e.length:0,0=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),z.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),z.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search");t=e('');return this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(t),n},t.prototype.bind=function(t,n,i){var r=this,a=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){r.handleSearch(e)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",a),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer[0].classList.remove("select2-search--hide"):r.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),z.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e})),z.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(t=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('
      • '),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),z.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("");t=t.call(this);return n.append(t),this.$dropdownContainer=n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0)},n.prototype._attachPositioningHandler=function(n,i){var r=this,a="scroll.select2."+i.id,o="resize.select2."+i.id,s="orientationchange.select2."+i.id;(i=this.$container.parents().filter(t.hasScroll)).each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),i.on(a,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(a+" "+o+" "+s,(function(e){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,a="resize.select2."+i.id;i="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+a+" "+i)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),r=null,a=this.$container.offset();a.bottom=a.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=a.top,o.bottom=a.top+o.height;var s=this.$dropdown.outerHeight(!1),c=t.scrollTop(),l=t.scrollTop()+t.height(),d=ca.bottom+s,c={left:a.left,top:o.bottom};"static"===(l=this.$dropdownParent).css("position")&&(l=l.offsetParent()),a={top:0,left:0},(e.contains(document.body,l[0])||l[0].isConnected)&&(a=l.offset()),c.top-=a.top,c.left-=a.left,n||i||(r="below"),t||!d||n?!d&&t&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(c.top=o.top-a.top-s),null!=r&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+r),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+r)),this.$dropdownContainer.css(c)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),z.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},r})),z.define("jquery-mousewheel",["jquery"],(function(e){return e})),z.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,r){var a;return null==e.fn.select2&&(a=["open","close","destroy"],e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var i,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,o)})),-1").attr("id",t.containerId).addClass(t.positionClass)).appendTo(e(t.target)),c}(t)),c}function n(t){for(var n=c.children(),r=n.length-1;r>=0;r--)i(e(n[r]),t)}function i(t,n,i){var r=!(!i||!i.force)&&i.force;return!(!t||!r&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){s(t)}}),0))}function r(e){l&&l(e)}function a(n){function i(e){return null==e&&(e=""),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function a(t){var n=t&&!1!==f.closeMethod?f.closeMethod:f.hideMethod,i=t&&!1!==f.closeDuration?f.closeDuration:f.hideDuration,a=t&&!1!==f.closeEasing?f.closeEasing:f.hideEasing;if(!e(":focus",g).length||t)return clearTimeout(z.intervalId),g[n]({duration:i,easing:a,complete:function(){s(g),clearTimeout(m),f.onHidden&&"hidden"!==L.state&&f.onHidden(),L.state="hidden",L.endTime=new Date,r(L)}})}function l(){(f.timeOut>0||f.extendedTimeOut>0)&&(m=setTimeout(a,f.extendedTimeOut),z.maxHideTime=parseFloat(f.extendedTimeOut),z.hideEta=(new Date).getTime()+z.maxHideTime)}function u(){clearTimeout(m),z.hideEta=0,g.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function h(){var e=(z.hideEta-(new Date).getTime())/z.maxHideTime*100;y.width(e+"%")}var f=o(),p=n.iconClass||f.iconClass;if(void 0!==n.optionsOverride&&(f=e.extend(f,n.optionsOverride),p=n.optionsOverride.iconClass||p),!function(e,t){if(e.preventDuplicates){if(t.message===d)return!0;d=t.message}return!1}(f,n)){C++,c=t(f,!0);var m=null,g=e("
        "),v=e("
        "),M=e("
        "),y=e("
        "),b=e(f.closeHtml),z={intervalId:null,hideEta:null,maxHideTime:null},L={toastId:C,state:"visible",startTime:new Date,options:f,map:n};return n.iconClass&&g.addClass(f.toastClass).addClass(p),function(){if(n.title){var e=n.title;f.escapeHtml&&(e=i(n.title)),v.append(e).addClass(f.titleClass),g.append(v)}}(),function(){if(n.message){var e=n.message;f.escapeHtml&&(e=i(n.message)),M.append(e).addClass(f.messageClass),g.append(M)}}(),f.closeButton&&(b.addClass(f.closeClass).attr("role","button"),g.prepend(b)),f.progressBar&&(y.addClass(f.progressClass),g.prepend(y)),f.rtl&&g.addClass("rtl"),f.newestOnTop?c.prepend(g):c.append(g),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}g.attr("aria-live",e)}(),g.hide(),g[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(m=setTimeout(a,f.timeOut),z.maxHideTime=parseFloat(f.timeOut),z.hideEta=(new Date).getTime()+z.maxHideTime,f.progressBar&&(z.intervalId=setInterval(h,10))),f.closeOnHover&&g.hover(u,l),!f.onclick&&f.tapToDismiss&&g.click(a),f.closeButton&&b&&b.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),f.onCloseClick&&f.onCloseClick(e),a(!0)})),f.onclick&&g.click((function(e){f.onclick(e),a()})),r(L),f.debug&&console&&console.log(L),g}}function o(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},h.options)}function s(e){c||(c=t()),e.is(":visible")||(e.remove(),e=null,0===c.children().length&&(c.remove(),d=void 0))}var c,l,d,C=0,u={error:"error",info:"info",success:"success",warning:"warning"},h={clear:function(e,r){var a=o();c||t(a),i(e,a,r)||n(a)},remove:function(n){var i=o();return c||t(i),n&&0===e(":focus",n).length?void s(n):void(c.children().length&&c.remove())},error:function(e,t,n){return a({type:u.error,iconClass:o().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:t,info:function(e,t,n){return a({type:u.info,iconClass:o().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){l=e},success:function(e,t,n){return a({type:u.success,iconClass:o().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return a({type:u.warning,iconClass:o().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return h}()}))}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},r={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},a=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},o=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(i,r)}),t)}}var c=function(e){return e instanceof Array?e:[e]};function l(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function C(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function u(e,t){return t(e)?e:e.parentNode?u(e.parentNode,t):void 0}function h(e,t){var n=d("div","numInputWrapper"),i=d("input","numInput "+e),r=d("span","arrowUp"),a=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var o in t)i.setAttribute(o,t[o]);return n.appendChild(i),n.appendChild(r),n.appendChild(a),n}function f(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var p=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},g={D:p,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*o(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),r=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:p,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:p,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},v={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},M={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[M.w(e,t,n)]},F:function(e,t,n){return m(M.n(e,t,n)-1,!1,t)},G:function(e,t,n){return a(M.h(e,t,n))},H:function(e){return a(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return a(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return a(e.getFullYear(),4)},d:function(e){return a(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return a(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return a(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},y=function(e){var t=e.config,n=void 0===t?i:t,a=e.l10n,o=void 0===a?r:a,s=e.isMobile,c=void 0!==s&&s;return function(e,t,i){var r=i||o;return void 0===n.formatDate||c?t.split("").map((function(t,i,a){return M[t]&&"\\"!==a[i-1]?M[t](e,r,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,r)}},b=function(e){var t=e.config,n=void 0===t?i:t,a=e.l10n,o=void 0===a?r:a;return function(e,t,r,a){if(0===e||e){var s,c=a||o,l=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var d=t||(n||i).dateFormat,C=String(e).trim();if("today"===C)s=new Date,r=!0;else if(n&&n.parseDate)s=n.parseDate(e,d);else if(/Z$/.test(C)||/GMT$/.test(C))s=new Date(e);else{for(var u=void 0,h=[],f=0,p=0,m="";f=0?new Date:new Date(M.config.minDate.getTime()),n=H(M.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),M.selectedDates=[t],M.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=f(e),i=n;void 0!==M.amPM&&n===M.amPM&&(M.amPM.textContent=M.l10n.amPM[o(M.amPM.textContent===M.l10n.amPM[0])]);var r=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),c=parseFloat(i.getAttribute("step")),l=parseInt(i.value,10),d=l+c*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==i.value&&2===i.value.length){var C=i===M.hourElement,u=i===M.minuteElement;ds&&(d=i===M.hourElement?d-s-o(!M.amPM):r,u&&I(void 0,1,M.hourElement)),M.amPM&&C&&(1===c?d+l===23:Math.abs(d-l)>c)&&(M.amPM.textContent=M.l10n.amPM[o(M.amPM.textContent===M.l10n.amPM[0])]),i.value=a(d)}}(e);var i=M._input.value;D(),ze(),M._input.value!==i&&M._debouncedChange()}function D(){if(void 0!==M.hourElement&&void 0!==M.minuteElement){var e,t,n=(parseInt(M.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(M.minuteElement.value,10)||0)%60,r=void 0!==M.secondElement?(parseInt(M.secondElement.value,10)||0)%60:0;void 0!==M.amPM&&(e=n,t=M.amPM.textContent,n=e%12+12*o(t===M.l10n.amPM[1]));var a=void 0!==M.config.minTime||M.config.minDate&&M.minDateHasTime&&M.latestSelectedDateObj&&0===z(M.latestSelectedDateObj,M.config.minDate,!0),s=void 0!==M.config.maxTime||M.config.maxDate&&M.maxDateHasTime&&M.latestSelectedDateObj&&0===z(M.latestSelectedDateObj,M.config.maxDate,!0);if(void 0!==M.config.maxTime&&void 0!==M.config.minTime&&M.config.minTime>M.config.maxTime){var c=L(M.config.minTime.getHours(),M.config.minTime.getMinutes(),M.config.minTime.getSeconds()),l=L(M.config.maxTime.getHours(),M.config.maxTime.getMinutes(),M.config.maxTime.getSeconds()),d=L(n,i,r);if(d>l&&d=12)]),void 0!==M.secondElement&&(M.secondElement.value=a(n)))}function E(e){var t=f(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&Q(n)}function T(e,t,n,i){return t instanceof Array?t.forEach((function(t){return T(e,t,n,i)})):e instanceof Array?e.forEach((function(e){return T(e,t,n,i)})):(e.addEventListener(t,n,i),void M._handlers.push({remove:function(){return e.removeEventListener(t,n,i)}}))}function A(){ge("onChange")}function O(e,t){var n=void 0!==e?M.parseDate(e):M.latestSelectedDateObj||(M.config.minDate&&M.config.minDate>M.now?M.config.minDate:M.config.maxDate&&M.config.maxDate=0&&z(e,M.selectedDates[1])<=0}(t)&&!Me(t)&&a.classList.add("inRange"),M.weekNumbers&&1===M.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&M.weekNumbers.insertAdjacentHTML("beforeend",""+M.config.getWeek(t)+""),ge("onDayCreate",a),a}function N(e){e.focus(),"range"===M.config.mode&&re(e)}function j(e){for(var t=e>0?0:M.config.showMonths-1,n=e>0?M.config.showMonths:-1,i=t;i!=n;i+=e)for(var r=M.daysContainer.children[i],a=e>0?0:r.children.length-1,o=e>0?r.children.length:-1,s=a;s!=o;s+=e){var c=r.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj))return c}}function F(e,t){var n=V(),i=te(n||document.body),r=void 0!==e?e:i?n:void 0!==M.selectedDateElem&&te(M.selectedDateElem)?M.selectedDateElem:void 0!==M.todayDateElem&&te(M.todayDateElem)?M.todayDateElem:j(t>0?1:-1);void 0===r?M._input.focus():i?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():M.currentMonth,i=t>0?M.config.showMonths:-1,r=t>0?1:-1,a=n-M.currentMonth;a!=i;a+=r)for(var o=M.daysContainer.children[a],s=n-M.currentMonth===a?e.$i+t:t<0?o.children.length-1:0,c=o.children.length,l=s;l>=0&&l0?c:-1);l+=r){var d=o.children[l];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj)&&Math.abs(e.$i-l)>=Math.abs(t))return N(d)}M.changeMonth(r),F(j(r),0)}(r,t):N(r)}function Y(e,t){for(var n=(new Date(e,t,1).getDay()-M.l10n.firstDayOfWeek+7)%7,i=M.utils.getDaysInMonth((t-1+12)%12,e),r=M.utils.getDaysInMonth(t,e),a=window.document.createDocumentFragment(),o=M.config.showMonths>1,s=o?"prevMonthDay hidden":"prevMonthDay",c=o?"nextMonthDay hidden":"nextMonthDay",l=i+1-n,C=0;l<=i;l++,C++)a.appendChild(R("flatpickr-day "+s,new Date(e,t-1,l),0,C));for(l=1;l<=r;l++,C++)a.appendChild(R("flatpickr-day",new Date(e,t,l),0,C));for(var u=r+1;u<=42-n&&(1===M.config.showMonths||C%7!=0);u++,C++)a.appendChild(R("flatpickr-day "+c,new Date(e,t+1,u%r),0,C));var h=d("div","dayContainer");return h.appendChild(a),h}function B(){if(void 0!==M.daysContainer){C(M.daysContainer),M.weekNumbers&&C(M.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t1||"dropdown"!==M.config.monthSelectorType)){var e=function(e){return!(void 0!==M.config.minDate&&M.currentYear===M.config.minDate.getFullYear()&&eM.config.maxDate.getMonth())};M.monthsDropdownContainer.tabIndex=-1,M.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=d("option","flatpickr-monthDropdown-month");n.value=new Date(M.currentYear,t).getMonth().toString(),n.textContent=m(t,M.config.shorthandCurrentMonth,M.l10n),n.tabIndex=-1,M.currentMonth===t&&(n.selected=!0),M.monthsDropdownContainer.appendChild(n)}}}function U(){var e,t=d("div","flatpickr-month"),n=window.document.createDocumentFragment();M.config.showMonths>1||"static"===M.config.monthSelectorType?e=d("span","cur-month"):(M.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),M.monthsDropdownContainer.setAttribute("aria-label",M.l10n.monthAriaLabel),T(M.monthsDropdownContainer,"change",(function(e){var t=f(e),n=parseInt(t.value,10);M.changeMonth(n-M.currentMonth),ge("onMonthChange")})),W(),e=M.monthsDropdownContainer);var i=h("cur-year",{tabindex:"-1"}),r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",M.l10n.yearAriaLabel),M.config.minDate&&r.setAttribute("min",M.config.minDate.getFullYear().toString()),M.config.maxDate&&(r.setAttribute("max",M.config.maxDate.getFullYear().toString()),r.disabled=!!M.config.minDate&&M.config.minDate.getFullYear()===M.config.maxDate.getFullYear());var a=d("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(i),n.appendChild(a),t.appendChild(n),{container:t,yearElement:r,monthElement:e}}function q(){C(M.monthNav),M.monthNav.appendChild(M.prevMonthNav),M.config.showMonths&&(M.yearElements=[],M.monthElements=[]);for(var e=M.config.showMonths;e--;){var t=U();M.yearElements.push(t.yearElement),M.monthElements.push(t.monthElement),M.monthNav.appendChild(t.container)}M.monthNav.appendChild(M.nextMonthNav)}function G(){M.weekdayContainer?C(M.weekdayContainer):M.weekdayContainer=d("div","flatpickr-weekdays");for(var e=M.config.showMonths;e--;){var t=d("div","flatpickr-weekdaycontainer");M.weekdayContainer.appendChild(t)}return K(),M.weekdayContainer}function K(){if(M.weekdayContainer){var e=M.l10n.firstDayOfWeek,n=t(M.l10n.weekdays.shorthand);e>0&&e\n "+n.join("")+"\n \n "}}function X(e,t){void 0===t&&(t=!0);var n=t?e:e-M.currentMonth;n<0&&!0===M._hidePrevMonthArrow||n>0&&!0===M._hideNextMonthArrow||(M.currentMonth+=n,(M.currentMonth<0||M.currentMonth>11)&&(M.currentYear+=M.currentMonth>11?1:-1,M.currentMonth=(M.currentMonth+12)%12,ge("onYearChange"),W()),B(),ge("onMonthChange"),ye())}function Z(e){return M.calendarContainer.contains(e)}function J(e){if(M.isOpen&&!M.config.inline){var t=f(e),n=Z(t),i=!(t===M.input||t===M.altInput||M.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(M.input)||~e.path.indexOf(M.altInput))||n||Z(e.relatedTarget)),r=!M.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&r&&(M.config.allowInput&&M.setDate(M._input.value,!1,M.config.altInput?M.config.altFormat:M.config.dateFormat),void 0!==M.timeContainer&&void 0!==M.minuteElement&&void 0!==M.hourElement&&""!==M.input.value&&void 0!==M.input.value&&S(),M.close(),M.config&&"range"===M.config.mode&&1===M.selectedDates.length&&M.clear(!1))}}function Q(e){if(!(!e||M.config.minDate&&eM.config.maxDate.getFullYear())){var t=e,n=M.currentYear!==t;M.currentYear=t||M.currentYear,M.config.maxDate&&M.currentYear===M.config.maxDate.getFullYear()?M.currentMonth=Math.min(M.config.maxDate.getMonth(),M.currentMonth):M.config.minDate&&M.currentYear===M.config.minDate.getFullYear()&&(M.currentMonth=Math.max(M.config.minDate.getMonth(),M.currentMonth)),n&&(M.redraw(),ge("onYearChange"),W())}}function ee(e,t){var n;void 0===t&&(t=!0);var i=M.parseDate(e,void 0,t);if(M.config.minDate&&i&&z(i,M.config.minDate,void 0!==t?t:!M.minDateHasTime)<0||M.config.maxDate&&i&&z(i,M.config.maxDate,void 0!==t?t:!M.maxDateHasTime)>0)return!1;if(!M.config.enable&&0===M.config.disable.length)return!0;if(void 0===i)return!1;for(var r=!!M.config.enable,a=null!==(n=M.config.enable)&&void 0!==n?n:M.config.disable,o=0,s=void 0;o=s.from.getTime()&&i.getTime()<=s.to.getTime())return r}return!r}function te(e){return void 0!==M.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&M.daysContainer.contains(e)}function ne(e){var t=e.target===M._input,n=M._input.value.trimEnd()!==be();!t||!n||e.relatedTarget&&Z(e.relatedTarget)||M.setDate(M._input.value,!0,e.target===M.altInput?M.config.altFormat:M.config.dateFormat)}function ie(e){var t=f(e),n=M.config.wrap?p.contains(t):t===M._input,i=M.config.allowInput,r=M.isOpen&&(!i||!n),a=M.config.inline&&n&&!i;if(13===e.keyCode&&n){if(i)return M.setDate(M._input.value,!0,t===M.altInput?M.config.altFormat:M.config.dateFormat),M.close(),t.blur();M.open()}else if(Z(t)||r||a){var o=!!M.timeContainer&&M.timeContainer.contains(t);switch(e.keyCode){case 13:o?(e.preventDefault(),S(),Ce()):ue(e);break;case 27:e.preventDefault(),Ce();break;case 8:case 46:n&&!M.config.allowInput&&(e.preventDefault(),M.clear());break;case 37:case 39:if(o||n)M.hourElement&&M.hourElement.focus();else{e.preventDefault();var s=V();if(void 0!==M.daysContainer&&(!1===i||s&&te(s))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),X(c),F(j(1),0)):F(void 0,c)}}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;M.daysContainer&&void 0!==t.$i||t===M.input||t===M.altInput?e.ctrlKey?(e.stopPropagation(),Q(M.currentYear-l),F(j(1),0)):o||F(void 0,7*l):t===M.currentYearElement?Q(M.currentYear-l):M.config.enableTime&&(!o&&M.hourElement&&M.hourElement.focus(),S(e),M._debouncedChange());break;case 9:if(o){var d=[M.hourElement,M.minuteElement,M.secondElement,M.amPM].concat(M.pluginElements).filter((function(e){return e})),C=d.indexOf(t);if(-1!==C){var u=d[C+(e.shiftKey?-1:1)];e.preventDefault(),(u||M._input).focus()}}else!M.config.noCalendar&&M.daysContainer&&M.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),M._input.focus())}}if(void 0!==M.amPM&&t===M.amPM)switch(e.key){case M.l10n.amPM[0].charAt(0):case M.l10n.amPM[0].charAt(0).toLowerCase():M.amPM.textContent=M.l10n.amPM[0],D(),ze();break;case M.l10n.amPM[1].charAt(0):case M.l10n.amPM[1].charAt(0).toLowerCase():M.amPM.textContent=M.l10n.amPM[1],D(),ze()}(n||Z(t))&&ge("onKeyDown",e)}function re(e,t){if(void 0===t&&(t="flatpickr-day"),1===M.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():M.days.firstElementChild.dateObj.getTime(),i=M.parseDate(M.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,M.selectedDates[0].getTime()),a=Math.max(n,M.selectedDates[0].getTime()),o=!1,s=0,c=0,l=r;lr&&ls)?s=l:l>i&&(!c||l ."+t)).forEach((function(t){var r,a,l,d=t.dateObj.getTime(),C=s>0&&d0&&d>c;if(C)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));o&&!C||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=M.selectedDates[0].getTime()?"startRange":"endRange"),in&&d===i&&t.classList.add("endRange"),d>=s&&(0===c||d<=c)&&(a=i,l=n,(r=d)>Math.min(a,l)&&r0||n.getMinutes()>0||n.getSeconds()>0),M.selectedDates&&(M.selectedDates=M.selectedDates.filter((function(e){return ee(e)})),M.selectedDates.length||"min"!==e||k(n),ze()),M.daysContainer&&(de(),void 0!==n?M.currentYearElement[e]=n.getFullYear().toString():M.currentYearElement.removeAttribute(e),M.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function se(){return M.config.wrap?p.querySelector("[data-input]"):p}function ce(){"object"!=typeof M.config.locale&&void 0===w.l10ns[M.config.locale]&&M.config.errorHandler(new Error("flatpickr: invalid locale "+M.config.locale)),M.l10n=e(e({},w.l10ns.default),"object"==typeof M.config.locale?M.config.locale:"default"!==M.config.locale?w.l10ns[M.config.locale]:void 0),v.D="("+M.l10n.weekdays.shorthand.join("|")+")",v.l="("+M.l10n.weekdays.longhand.join("|")+")",v.M="("+M.l10n.months.shorthand.join("|")+")",v.F="("+M.l10n.months.longhand.join("|")+")",v.K="("+M.l10n.amPM[0]+"|"+M.l10n.amPM[1]+"|"+M.l10n.amPM[0].toLowerCase()+"|"+M.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},g),JSON.parse(JSON.stringify(p.dataset||{}))).time_24hr&&void 0===w.defaultConfig.time_24hr&&(M.config.time_24hr=M.l10n.time_24hr),M.formatDate=y(M),M.parseDate=b({config:M.config,l10n:M.l10n})}function le(e){if("function"!=typeof M.config.position){if(void 0!==M.calendarContainer){ge("onPreCalendarPosition");var t=e||M._positionElement,n=Array.prototype.reduce.call(M.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=M.calendarContainer.offsetWidth,r=M.config.position.split(" "),a=r[0],o=r.length>1?r[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,d="above"===a||"below"!==a&&cn,C=window.pageYOffset+s.top+(d?-n-2:t.offsetHeight+2);if(l(M.calendarContainer,"arrowTop",!d),l(M.calendarContainer,"arrowBottom",d),!M.config.inline){var u=window.pageXOffset+s.left,h=!1,f=!1;"center"===o?(u-=(i-s.width)/2,h=!0):"right"===o&&(u-=i-s.width,f=!0),l(M.calendarContainer,"arrowLeft",!h&&!f),l(M.calendarContainer,"arrowCenter",h),l(M.calendarContainer,"arrowRight",f);var p=window.document.body.offsetWidth-(window.pageXOffset+s.right),m=u+i>window.document.body.offsetWidth,g=p+i>window.document.body.offsetWidth;if(l(M.calendarContainer,"rightMost",m),!M.config.static)if(M.calendarContainer.style.top=C+"px",m)if(g){var v=function(){for(var e=null,t=0;tM.currentMonth+M.config.showMonths-1)&&"range"!==M.config.mode;if(M.selectedDateElem=n,"single"===M.config.mode)M.selectedDates=[i];else if("multiple"===M.config.mode){var a=Me(i);a?M.selectedDates.splice(parseInt(a),1):M.selectedDates.push(i)}else"range"===M.config.mode&&(2===M.selectedDates.length&&M.clear(!1,!1),M.latestSelectedDateObj=i,M.selectedDates.push(i),0!==z(i,M.selectedDates[0],!0)&&M.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(D(),r){var o=M.currentYear!==i.getFullYear();M.currentYear=i.getFullYear(),M.currentMonth=i.getMonth(),o&&(ge("onYearChange"),W()),ge("onMonthChange")}if(ye(),B(),ze(),r||"range"===M.config.mode||1!==M.config.showMonths?void 0!==M.selectedDateElem&&void 0===M.hourElement&&M.selectedDateElem&&M.selectedDateElem.focus():N(n),void 0!==M.hourElement&&void 0!==M.hourElement&&M.hourElement.focus(),M.config.closeOnSelect){var s="single"===M.config.mode&&!M.config.enableTime,c="range"===M.config.mode&&2===M.selectedDates.length&&!M.config.enableTime;(s||c)&&Ce()}A()}}M.parseDate=b({config:M.config,l10n:M.l10n}),M._handlers=[],M.pluginElements=[],M.loadedPlugins=[],M._bind=T,M._setHoursFromDate=k,M._positionCalendar=le,M.changeMonth=X,M.changeYear=Q,M.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),M.input.value="",void 0!==M.altInput&&(M.altInput.value=""),void 0!==M.mobileInput&&(M.mobileInput.value=""),M.selectedDates=[],M.latestSelectedDateObj=void 0,!0===t&&(M.currentYear=M._initialDate.getFullYear(),M.currentMonth=M._initialDate.getMonth()),!0===M.config.enableTime){var n=H(M.config);$(n.hours,n.minutes,n.seconds)}M.redraw(),e&&ge("onChange")},M.close=function(){M.isOpen=!1,M.isMobile||(void 0!==M.calendarContainer&&M.calendarContainer.classList.remove("open"),void 0!==M._input&&M._input.classList.remove("active")),ge("onClose")},M.onMouseOver=re,M._createElement=d,M.createDay=R,M.destroy=function(){void 0!==M.config&&ge("onDestroy");for(var e=M._handlers.length;e--;)M._handlers[e].remove();if(M._handlers=[],M.mobileInput)M.mobileInput.parentNode&&M.mobileInput.parentNode.removeChild(M.mobileInput),M.mobileInput=void 0;else if(M.calendarContainer&&M.calendarContainer.parentNode)if(M.config.static&&M.calendarContainer.parentNode){var t=M.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else M.calendarContainer.parentNode.removeChild(M.calendarContainer);M.altInput&&(M.input.type="text",M.altInput.parentNode&&M.altInput.parentNode.removeChild(M.altInput),delete M.altInput),M.input&&(M.input.type=M.input._type,M.input.classList.remove("flatpickr-input"),M.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete M[e]}catch(e){}}))},M.isEnabled=ee,M.jumpToDate=O,M.updateValue=ze,M.open=function(e,t){if(void 0===t&&(t=M._positionElement),!0===M.isMobile){if(e){e.preventDefault();var n=f(e);n&&n.blur()}return void 0!==M.mobileInput&&(M.mobileInput.focus(),M.mobileInput.click()),void ge("onOpen")}if(!M._input.disabled&&!M.config.inline){var i=M.isOpen;M.isOpen=!0,i||(M.calendarContainer.classList.add("open"),M._input.classList.add("active"),ge("onOpen"),le(t)),!0===M.config.enableTime&&!0===M.config.noCalendar&&(!1!==M.config.allowInput||void 0!==e&&M.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return M.hourElement.select()}),50))}},M.redraw=de,M.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(M.config,e),e)void 0!==he[i]&&he[i].forEach((function(e){return e()}));else M.config[e]=t,void 0!==he[e]?he[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(M.config[e]=c(t));M.redraw(),ze(!0)},M.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=M.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return M.clear(t);fe(e,n),M.latestSelectedDateObj=M.selectedDates[M.selectedDates.length-1],M.redraw(),O(void 0,t),k(),0===M.selectedDates.length&&M.clear(!1),ze(t),t&&ge("onChange")},M.toggle=function(e){if(!0===M.isOpen)return M.close();M.open(e)};var he={locale:[ce,K],showMonths:[q,x,G],minDate:[O],maxDate:[O],positionElement:[me],clickOpens:[function(){!0===M.config.clickOpens?(T(M._input,"focus",M.open),T(M._input,"click",M.open)):(M._input.removeEventListener("focus",M.open),M._input.removeEventListener("click",M.open))}]};function fe(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return M.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[M.parseDate(e,t)];else if("string"==typeof e)switch(M.config.mode){case"single":case"time":n=[M.parseDate(e,t)];break;case"multiple":n=e.split(M.config.conjunction).map((function(e){return M.parseDate(e,t)}));break;case"range":n=e.split(M.l10n.rangeSeparator).map((function(e){return M.parseDate(e,t)}))}else M.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));M.selectedDates=M.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===M.config.mode&&M.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function pe(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?M.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:M.parseDate(e.from,void 0),to:M.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function me(){M._positionElement=M.config.positionElement||M._input}function ge(e,t){if(void 0!==M.config){var n=M.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i1||"static"===M.config.monthSelectorType?M.monthElements[t].textContent=m(n.getMonth(),M.config.shorthandCurrentMonth,M.l10n)+" ":M.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),M._hidePrevMonthArrow=void 0!==M.config.minDate&&(M.currentYear===M.config.minDate.getFullYear()?M.currentMonth<=M.config.minDate.getMonth():M.currentYearM.config.maxDate.getMonth():M.currentYear>M.config.maxDate.getFullYear()))}function be(e){var t=e||(M.config.altInput?M.config.altFormat:M.config.dateFormat);return M.selectedDates.map((function(e){return M.formatDate(e,t)})).filter((function(e,t,n){return"range"!==M.config.mode||M.config.enableTime||n.indexOf(e)===t})).join("range"!==M.config.mode?M.config.conjunction:M.l10n.rangeSeparator)}function ze(e){void 0===e&&(e=!0),void 0!==M.mobileInput&&M.mobileFormatStr&&(M.mobileInput.value=void 0!==M.latestSelectedDateObj?M.formatDate(M.latestSelectedDateObj,M.mobileFormatStr):""),M.input.value=be(M.config.dateFormat),void 0!==M.altInput&&(M.altInput.value=be(M.config.altFormat)),!1!==e&&ge("onValueUpdate")}function Le(e){var t=f(e),n=M.prevMonthNav.contains(t),i=M.nextMonthNav.contains(t);n||i?X(n?-1:1):M.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?M.changeYear(M.currentYear+1):t.classList.contains("arrowDown")&&M.changeYear(M.currentYear-1)}return function(){M.element=M.input=p,M.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=e(e({},JSON.parse(JSON.stringify(p.dataset||{}))),g),a={};M.config.parseDate=r.parseDate,M.config.formatDate=r.formatDate,Object.defineProperty(M.config,"enable",{get:function(){return M.config._enable},set:function(e){M.config._enable=pe(e)}}),Object.defineProperty(M.config,"disable",{get:function(){return M.config._disable},set:function(e){M.config._disable=pe(e)}});var o="time"===r.mode;if(!r.dateFormat&&(r.enableTime||o)){var s=w.defaultConfig.dateFormat||i.dateFormat;a.dateFormat=r.noCalendar||o?"H:i"+(r.enableSeconds?":S":""):s+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||o)&&!r.altFormat){var l=w.defaultConfig.altFormat||i.altFormat;a.altFormat=r.noCalendar||o?"h:i"+(r.enableSeconds?":S K":" K"):l+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(M.config,"minDate",{get:function(){return M.config._minDate},set:oe("min")}),Object.defineProperty(M.config,"maxDate",{get:function(){return M.config._maxDate},set:oe("max")});var d=function(e){return function(t){M.config["min"===e?"_minTime":"_maxTime"]=M.parseDate(t,"H:i:S")}};Object.defineProperty(M.config,"minTime",{get:function(){return M.config._minTime},set:d("min")}),Object.defineProperty(M.config,"maxTime",{get:function(){return M.config._maxTime},set:d("max")}),"time"===r.mode&&(M.config.noCalendar=!0,M.config.enableTime=!0),Object.assign(M.config,a,r);for(var C=0;C-1?M.config[h]=c(u[h]).map(_).concat(M.config[h]):void 0===r[h]&&(M.config[h]=u[h])}r.altInputClass||(M.config.altInputClass=se().className+" "+M.config.altInputClass),ge("onParseConfig")}(),ce(),M.input=se(),M.input?(M.input._type=M.input.type,M.input.type="text",M.input.classList.add("flatpickr-input"),M._input=M.input,M.config.altInput&&(M.altInput=d(M.input.nodeName,M.config.altInputClass),M._input=M.altInput,M.altInput.placeholder=M.input.placeholder,M.altInput.disabled=M.input.disabled,M.altInput.required=M.input.required,M.altInput.tabIndex=M.input.tabIndex,M.altInput.type="text",M.input.setAttribute("type","hidden"),!M.config.static&&M.input.parentNode&&M.input.parentNode.insertBefore(M.altInput,M.input.nextSibling)),M.config.allowInput||M._input.setAttribute("readonly","readonly"),me()):M.config.errorHandler(new Error("Invalid input element specified")),function(){M.selectedDates=[],M.now=M.parseDate(M.config.now)||new Date;var e=M.config.defaultDate||("INPUT"!==M.input.nodeName&&"TEXTAREA"!==M.input.nodeName||!M.input.placeholder||M.input.value!==M.input.placeholder?M.input.value:null);e&&fe(e,M.config.dateFormat),M._initialDate=M.selectedDates.length>0?M.selectedDates[0]:M.config.minDate&&M.config.minDate.getTime()>M.now.getTime()?M.config.minDate:M.config.maxDate&&M.config.maxDate.getTime()0&&(M.latestSelectedDateObj=M.selectedDates[0]),void 0!==M.config.minTime&&(M.config.minTime=M.parseDate(M.config.minTime,"H:i")),void 0!==M.config.maxTime&&(M.config.maxTime=M.parseDate(M.config.maxTime,"H:i")),M.minDateHasTime=!!M.config.minDate&&(M.config.minDate.getHours()>0||M.config.minDate.getMinutes()>0||M.config.minDate.getSeconds()>0),M.maxDateHasTime=!!M.config.maxDate&&(M.config.maxDate.getHours()>0||M.config.maxDate.getMinutes()>0||M.config.maxDate.getSeconds()>0)}(),M.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=M.currentMonth),void 0===t&&(t=M.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:M.l10n.daysInMonth[e]}},M.isMobile||function(){var e=window.document.createDocumentFragment();if(M.calendarContainer=d("div","flatpickr-calendar"),M.calendarContainer.tabIndex=-1,!M.config.noCalendar){if(e.appendChild((M.monthNav=d("div","flatpickr-months"),M.yearElements=[],M.monthElements=[],M.prevMonthNav=d("span","flatpickr-prev-month"),M.prevMonthNav.innerHTML=M.config.prevArrow,M.nextMonthNav=d("span","flatpickr-next-month"),M.nextMonthNav.innerHTML=M.config.nextArrow,q(),Object.defineProperty(M,"_hidePrevMonthArrow",{get:function(){return M.__hidePrevMonthArrow},set:function(e){M.__hidePrevMonthArrow!==e&&(l(M.prevMonthNav,"flatpickr-disabled",e),M.__hidePrevMonthArrow=e)}}),Object.defineProperty(M,"_hideNextMonthArrow",{get:function(){return M.__hideNextMonthArrow},set:function(e){M.__hideNextMonthArrow!==e&&(l(M.nextMonthNav,"flatpickr-disabled",e),M.__hideNextMonthArrow=e)}}),M.currentYearElement=M.yearElements[0],ye(),M.monthNav)),M.innerContainer=d("div","flatpickr-innerContainer"),M.config.weekNumbers){var t=function(){M.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",M.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;M.innerContainer.appendChild(n),M.weekNumbers=i,M.weekWrapper=n}M.rContainer=d("div","flatpickr-rContainer"),M.rContainer.appendChild(G()),M.daysContainer||(M.daysContainer=d("div","flatpickr-days"),M.daysContainer.tabIndex=-1),B(),M.rContainer.appendChild(M.daysContainer),M.innerContainer.appendChild(M.rContainer),e.appendChild(M.innerContainer)}M.config.enableTime&&e.appendChild(function(){M.calendarContainer.classList.add("hasTime"),M.config.noCalendar&&M.calendarContainer.classList.add("noCalendar");var e=H(M.config);M.timeContainer=d("div","flatpickr-time"),M.timeContainer.tabIndex=-1;var t=d("span","flatpickr-time-separator",":"),n=h("flatpickr-hour",{"aria-label":M.l10n.hourAriaLabel});M.hourElement=n.getElementsByTagName("input")[0];var i=h("flatpickr-minute",{"aria-label":M.l10n.minuteAriaLabel});if(M.minuteElement=i.getElementsByTagName("input")[0],M.hourElement.tabIndex=M.minuteElement.tabIndex=-1,M.hourElement.value=a(M.latestSelectedDateObj?M.latestSelectedDateObj.getHours():M.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),M.minuteElement.value=a(M.latestSelectedDateObj?M.latestSelectedDateObj.getMinutes():e.minutes),M.hourElement.setAttribute("step",M.config.hourIncrement.toString()),M.minuteElement.setAttribute("step",M.config.minuteIncrement.toString()),M.hourElement.setAttribute("min",M.config.time_24hr?"0":"1"),M.hourElement.setAttribute("max",M.config.time_24hr?"23":"12"),M.hourElement.setAttribute("maxlength","2"),M.minuteElement.setAttribute("min","0"),M.minuteElement.setAttribute("max","59"),M.minuteElement.setAttribute("maxlength","2"),M.timeContainer.appendChild(n),M.timeContainer.appendChild(t),M.timeContainer.appendChild(i),M.config.time_24hr&&M.timeContainer.classList.add("time24hr"),M.config.enableSeconds){M.timeContainer.classList.add("hasSeconds");var r=h("flatpickr-second");M.secondElement=r.getElementsByTagName("input")[0],M.secondElement.value=a(M.latestSelectedDateObj?M.latestSelectedDateObj.getSeconds():e.seconds),M.secondElement.setAttribute("step",M.minuteElement.getAttribute("step")),M.secondElement.setAttribute("min","0"),M.secondElement.setAttribute("max","59"),M.secondElement.setAttribute("maxlength","2"),M.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),M.timeContainer.appendChild(r)}return M.config.time_24hr||(M.amPM=d("span","flatpickr-am-pm",M.l10n.amPM[o((M.latestSelectedDateObj?M.hourElement.value:M.config.defaultHour)>11)]),M.amPM.title=M.l10n.toggleTitle,M.amPM.tabIndex=-1,M.timeContainer.appendChild(M.amPM)),M.timeContainer}()),l(M.calendarContainer,"rangeMode","range"===M.config.mode),l(M.calendarContainer,"animate",!0===M.config.animate),l(M.calendarContainer,"multiMonth",M.config.showMonths>1),M.calendarContainer.appendChild(e);var r=void 0!==M.config.appendTo&&void 0!==M.config.appendTo.nodeType;if((M.config.inline||M.config.static)&&(M.calendarContainer.classList.add(M.config.inline?"inline":"static"),M.config.inline&&(!r&&M.element.parentNode?M.element.parentNode.insertBefore(M.calendarContainer,M._input.nextSibling):void 0!==M.config.appendTo&&M.config.appendTo.appendChild(M.calendarContainer)),M.config.static)){var s=d("div","flatpickr-wrapper");M.element.parentNode&&M.element.parentNode.insertBefore(s,M.element),s.appendChild(M.element),M.altInput&&s.appendChild(M.altInput),s.appendChild(M.calendarContainer)}M.config.static||M.config.inline||(void 0!==M.config.appendTo?M.config.appendTo:window.document.body).appendChild(M.calendarContainer)}(),function(){if(M.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(M.element.querySelectorAll("[data-"+e+"]"),(function(t){return T(t,"click",M[e])}))})),M.isMobile)!function(){var e=M.config.enableTime?M.config.noCalendar?"time":"datetime-local":"date";M.mobileInput=d("input",M.input.className+" flatpickr-mobile"),M.mobileInput.tabIndex=1,M.mobileInput.type=e,M.mobileInput.disabled=M.input.disabled,M.mobileInput.required=M.input.required,M.mobileInput.placeholder=M.input.placeholder,M.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",M.selectedDates.length>0&&(M.mobileInput.defaultValue=M.mobileInput.value=M.formatDate(M.selectedDates[0],M.mobileFormatStr)),M.config.minDate&&(M.mobileInput.min=M.formatDate(M.config.minDate,"Y-m-d")),M.config.maxDate&&(M.mobileInput.max=M.formatDate(M.config.maxDate,"Y-m-d")),M.input.getAttribute("step")&&(M.mobileInput.step=String(M.input.getAttribute("step"))),M.input.type="hidden",void 0!==M.altInput&&(M.altInput.type="hidden");try{M.input.parentNode&&M.input.parentNode.insertBefore(M.mobileInput,M.input.nextSibling)}catch(e){}T(M.mobileInput,"change",(function(e){M.setDate(f(e).value,!1,M.mobileFormatStr),ge("onChange"),ge("onClose")}))}();else{var e=s(ae,50);if(M._debouncedChange=s(A,300),M.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&T(M.daysContainer,"mouseover",(function(e){"range"===M.config.mode&&re(f(e))})),T(M._input,"keydown",ie),void 0!==M.calendarContainer&&T(M.calendarContainer,"keydown",ie),M.config.inline||M.config.static||T(window,"resize",e),void 0!==window.ontouchstart?T(window.document,"touchstart",J):T(window.document,"mousedown",J),T(window.document,"focus",J,{capture:!0}),!0===M.config.clickOpens&&(T(M._input,"focus",M.open),T(M._input,"click",M.open)),void 0!==M.daysContainer&&(T(M.monthNav,"click",Le),T(M.monthNav,["keyup","increment"],E),T(M.daysContainer,"click",ue)),void 0!==M.timeContainer&&void 0!==M.minuteElement&&void 0!==M.hourElement){T(M.timeContainer,["increment"],S),T(M.timeContainer,"blur",S,{capture:!0}),T(M.timeContainer,"click",P),T([M.hourElement,M.minuteElement],["focus","click"],(function(e){return f(e).select()})),void 0!==M.secondElement&&T(M.secondElement,"focus",(function(){return M.secondElement&&M.secondElement.select()})),void 0!==M.amPM&&T(M.amPM,"click",(function(e){S(e)}))}M.config.allowInput&&T(M._input,"blur",ne)}}(),(M.selectedDates.length||M.config.noCalendar)&&(M.config.enableTime&&k(M.config.noCalendar?M.latestSelectedDateObj:void 0),ze(!1)),x();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!M.isMobile&&t&&le(),ge("onReady")}(),M}function _(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),i=[],r=0;r]/g)||[]).length<=0||e(n).length>0)}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var r=this.o=e.extend({},this._o),a=r.language;p[a]||(a=a.split("-")[0],p[a]||(a=h.language)),r.language=a,r.startView=this._resolveViewName(r.startView),r.minViewMode=this._resolveViewName(r.minViewMode),r.maxViewMode=this._resolveViewName(r.maxViewMode),r.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,r.startView)),!0!==r.multidate&&(r.multidate=Number(r.multidate)||!1,!1!==r.multidate&&(r.multidate=Math.max(0,r.multidate))),r.multidateSeparator=String(r.multidateSeparator),r.weekStart%=7,r.weekEnd=(r.weekStart+6)%7;var o=m.parseFormat(r.format);r.startDate!==-1/0&&(r.startDate?r.startDate instanceof Date?r.startDate=this._local_to_utc(this._zero_time(r.startDate)):r.startDate=m.parseDate(r.startDate,o,r.language,r.assumeNearbyYear):r.startDate=-1/0),r.endDate!==1/0&&(r.endDate?r.endDate instanceof Date?r.endDate=this._local_to_utc(this._zero_time(r.endDate)):r.endDate=m.parseDate(r.endDate,o,r.language,r.assumeNearbyYear):r.endDate=1/0),r.daysOfWeekDisabled=this._resolveDaysOfWeek(r.daysOfWeekDisabled||[]),r.daysOfWeekHighlighted=this._resolveDaysOfWeek(r.daysOfWeekHighlighted||[]),r.datesDisabled=r.datesDisabled||[],e.isArray(r.datesDisabled)||(r.datesDisabled=r.datesDisabled.split(",")),r.datesDisabled=e.map(r.datesDisabled,(function(e){return m.parseDate(e,o,r.language,r.assumeNearbyYear)}));var s=String(r.orientation).toLowerCase().split(/\s+/g),c=r.orientation.toLowerCase();if(s=e.grep(s,(function(e){return/^auto|left|right|top|bottom$/.test(e)})),r.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===s.length)switch(s[0]){case"top":case"bottom":r.orientation.y=s[0];break;case"left":case"right":r.orientation.x=s[0]}else c=e.grep(s,(function(e){return/^left|right$/.test(e)})),r.orientation.x=c[0]||"auto",c=e.grep(s,(function(e){return/^top|bottom$/.test(e)})),r.orientation.y=c[0]||"auto";if(r.defaultViewDate instanceof Date||"string"==typeof r.defaultViewDate)r.defaultViewDate=m.parseDate(r.defaultViewDate,o,r.language,r.assumeNearbyYear);else if(r.defaultViewDate){var l=r.defaultViewDate.year||(new Date).getFullYear(),d=r.defaultViewDate.month||0,C=r.defaultViewDate.day||1;r.defaultViewDate=n(l,d,C)}else r.defaultViewDate=i()},_applyEvents:function(e){for(var n,i,r,a=0;ar?(this.picker.addClass("datepicker-orient-right"),u+=C-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f=this.o.orientation.y;if("auto"===f&&(f=-a+h-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?h-=n+parseInt(this.picker.css("padding-top")):h+=d,this.o.rtl){var p=r-(u+C);this.picker.css({top:h,right:p,zIndex:c})}else this.picker.css({top:h,left:u,zIndex:c});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],i=!1;return arguments.length?(e.each(arguments,e.proxy((function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)}),this)),i=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy((function(e){return m.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),n=e.grep(n,e.proxy((function(e){return!this.dateWithinRange(e)||!e}),this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),i?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&i&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');t";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;n++)t+=''+p[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,(function(e){return e.valueOf()})):delete this.range,this.fill()},getClassNames:function(t){var n=[],a=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),s=i();return t.getUTCFullYear()a||t.getUTCFullYear()===a&&t.getUTCMonth()>o)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&r(t,s)&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),this.dateWithinRange(t)||n.push("disabled"),this.dateIsDisabled(t)&&n.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(t>this.range[0]&&ts)&&l.push("disabled"),M===g&&l.push("focused"),c!==e.noop&&((C=c(new Date(M,0,1)))===t?C={}:"boolean"==typeof C?C={enabled:C}:"string"==typeof C&&(C={classes:C}),!1===C.enabled&&l.push("disabled"),C.classes&&(l=l.concat(C.classes.split(/\s+/))),C.tooltip&&(d=C.tooltip)),u+='"+M+"";f.find(".datepicker-switch").text(p+"-"+m),f.find("td").html(u)},fill:function(){var r,a,o=new Date(this.viewDate),s=o.getUTCFullYear(),c=o.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,d=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,C=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,h=p[this.o.language].today||p.en.today||"",f=p[this.o.language].clear||p.en.clear||"",g=p[this.o.language].titleFormat||p.en.titleFormat,v=i(),M=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&v>=this.o.startDate&&v<=this.o.endDate&&!this.weekOfDateIsDisabled(v);if(!isNaN(s)&&!isNaN(c)){this.picker.find(".datepicker-days .datepicker-switch").text(m.formatDate(o,g,this.o.language)),this.picker.find("tfoot .today").text(h).css("display",M?"table-cell":"none"),this.picker.find("tfoot .clear").text(f).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var y=n(s,c,0),b=y.getUTCDate();y.setUTCDate(b-(y.getUTCDay()-this.o.weekStart+7)%7);var z=new Date(y);y.getUTCFullYear()<100&&z.setUTCFullYear(y.getUTCFullYear()),z.setUTCDate(z.getUTCDate()+42),z=z.valueOf();for(var L,H,V=[];y.valueOf()"),this.o.calendarWeeks)){var _=new Date(+y+(this.o.weekStart-L-7)%7*864e5),w=new Date(Number(_)+(11-_.getUTCDay())%7*864e5),x=new Date(Number(x=n(w.getUTCFullYear(),0,1))+(11-x.getUTCDay())%7*864e5),S=(w-x)/864e5/7+1;V.push(''+S+"")}(H=this.getClassNames(y)).push("day");var D=y.getUTCDate();this.o.beforeShowDay!==e.noop&&((a=this.o.beforeShowDay(this._utc_to_local(y)))===t?a={}:"boolean"==typeof a?a={enabled:a}:"string"==typeof a&&(a={classes:a}),!1===a.enabled&&H.push("disabled"),a.classes&&(H=H.concat(a.classes.split(/\s+/))),a.tooltip&&(r=a.tooltip),a.content&&(D=a.content)),H=e.isFunction(e.uniqueSort)?e.uniqueSort(H):e.unique(H),V.push(''+D+""),r=null,L===this.o.weekEnd&&V.push(""),y.setUTCDate(y.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(V.join(""));var k=p[this.o.language].monthsTitle||p.en.monthsTitle||"Months",$=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?k:s).end().find("tbody span").removeClass("active");if(e.each(this.dates,(function(e,t){t.getUTCFullYear()===s&&$.eq(t.getUTCMonth()).addClass("active")})),(sC)&&$.addClass("disabled"),s===l&&$.slice(0,d).addClass("disabled"),s===C&&$.slice(u+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var E=this;e.each($,(function(n,i){var r=new Date(s,n,1),a=E.o.beforeShowMonth(r);a===t?a={}:"boolean"==typeof a?a={enabled:a}:"string"==typeof a&&(a={classes:a}),!1!==a.enabled||e(i).hasClass("disabled")||e(i).addClass("disabled"),a.classes&&e(i).addClass(a.classes),a.tooltip&&e(i).prop("title",a.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,s,l,C,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,s,l,C,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,s,l,C,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,n=new Date(this.viewDate),i=n.getUTCFullYear(),r=n.getUTCMonth(),a=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:e=Math.floor(i/l)*l<=a,t=Math.floor(i/l)*l+l>s;break;case 0:e=i<=a&&r<=o,t=i>=s&&r>=c}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){var r,a,o;t.preventDefault(),t.stopPropagation(),(r=e(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(i(),"linked"===this.o.todayBtn?null:"view")),r.hasClass("clear")&&this.clearDates(),r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),1,1===this.viewMode?(o=r.parent().find("span").index(r),a=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(o)):(o=0,a=Number(r.text()),this.viewDate.setUTCFullYear(a)),this._trigger(m.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(a,o,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var n=e(t.currentTarget).data("date"),i=new Date(n);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(i)},navArrowsClick:function(t){var n=e(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*m.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(m.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!function(e){return e&&!isNaN(e.getTime())}(e))return this.o.defaultViewDate;if(!t)return e;var n,i,r=new Date(e.valueOf()),a=r.getUTCDate(),o=r.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)i=-1===t?function(){return r.getUTCMonth()===o}:function(){return r.getUTCMonth()!==n},n=o+t,r.setUTCMonth(n),n=(n+12)%12;else{for(var c=0;c0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,i=!1,r=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(r,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(r,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(r,t,"moveDay"):this.weekOfDateIsDisabled(r)||(n=this.moveAvailableDate(r,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(r,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(r,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),i=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}i&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+m.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var d=function(t,n){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(n.inputs,(function(e){return e.jquery?e[0]:e})),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,u.call(e(this.inputs),n).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,(function(t){return e.data(t,"datepicker")})),this.updateDates()};d.prototype={updateDates:function(){this.dates=e.map(this.pickers,(function(e){return e.getUTCDate()})),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,(function(e){return e.valueOf()}));e.each(this.pickers,(function(e,n){n.setRange(t)}))},clearDates:function(){e.each(this.pickers,(function(e,t){t.clearDates()}))},dateUpdated:function(n){if(!this.updating){this.updating=!0;var i=e.data(n.target,"datepicker");if(i!==t){var r=i.getUTCDate(),a=this.keepEmptyValues,o=e.inArray(n.target,this.inputs),s=o-1,c=o+1,l=this.inputs.length;if(-1!==o){if(e.each(this.pickers,(function(e,t){t.getUTCDate()||t!==i&&a||t.setUTCDate(r)})),r=0&&rthis.dates[c])for(;cthis.dates[c];)this.pickers[c++].setUTCDate(r);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,(function(e){e.destroy()})),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:a("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var C=e.fn.datepicker,u=function(n){var i,r=Array.apply(null,arguments);if(r.shift(),this.each((function(){var t=e(this),a=t.data("datepicker"),c="object"==typeof n&&n;if(!a){var C=o(this,"date"),u=s(e.extend({},h,C,c).language),f=e.extend({},h,u,C,c);t.hasClass("input-daterange")||f.inputs?(e.extend(f,{inputs:f.inputs||t.find("input").toArray()}),a=new d(this,f)):a=new l(this,f),t.data("datepicker",a)}"string"==typeof n&&"function"==typeof a[n]&&(i=a[n].apply(a,r))})),i===t||i instanceof l||i instanceof d)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return i};e.fn.datepicker=u;var h=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},f=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=l;var p=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},m={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(n,r,a,o){function s(){var e=this.slice(0,c[u].length),t=c[u].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!n)return t;if(n instanceof Date)return n;if("string"==typeof r&&(r=m.parseFormat(r)),r.toValue)return r.toValue(n,r,a);var c,d,C,u,h,f={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in g&&(n=g[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(c=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,u=0;u(new Date).getFullYear()+t&&(e-=100),e}(t,o):t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};z.yy=z.yyyy,z.M=z.MM=z.mm=z.m,z.dd=z.d,n=i();var L=r.parts.slice();if(c.length!==L.length&&(L=e(L).filter((function(t,n){return-1!==e.inArray(n,b)})).toArray()),c.length===L.length){var H,V,_;for(u=0,H=L.length;u'+h.templates.leftArrow+''+h.templates.rightArrow+"",contTemplate:'',footTemplate:''};m.template='
        '+m.headTemplate+""+m.footTemplate+'
        '+m.headTemplate+m.contTemplate+m.footTemplate+'
        '+m.headTemplate+m.contTemplate+m.footTemplate+'
        '+m.headTemplate+m.contTemplate+m.footTemplate+'
        '+m.headTemplate+m.contTemplate+m.footTemplate+"
        ",e.fn.datepicker.DPGlobal=m,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=C,this},e.fn.datepicker.version="1.9.0",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),u.call(n,"show"))})),e((function(){u.call(e('[data-provide="datepicker-inline"]'))}))})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,(function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(r(e,t))return;return 1}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){for(var n=[],i=e.length,r=0;r>>0,i=0;ixe(e)?(a=e+1,t-xe(e)):(a=e,t);return{year:a,dayOfYear:n}}function Te(e,t,n){var i,r,a=$e(e.year(),t,n);return(a=Math.floor((e.dayOfYear()-a-1)/7)+1)<1?i=a+Ae(r=e.year()-1,t,n):a>Ae(e.year(),t,n)?(i=a-Ae(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ae(e,t,n){var i=$e(e,t,n);t=$e(e+1,t,n);return(xe(e)-i+t)/7}function Oe(e,t){return e.slice(t,7).concat(e.slice(0,t))}T("w",["ww",2],"wo","week"),T("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),F("week",5),F("isoWeek",5),Ce("w",ee),Ce("ww",ee,X),Ce("W",ee),Ce("WW",ee,X),ge(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=W(e)})),T("d",0,"do","day"),T("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),T("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),T("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),T("e",0,0,"weekday"),T("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),Ce("d",ee),Ce("e",ee),Ce("E",ee),Ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,n,i){null!=(i=n._locale.weekdaysParse(e,i,n._strict))?t.d=i:u(n).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,n,i){t[i]=W(e)}));var Pe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Re="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ne=de,je=de,Fe=de;function Ye(){function e(e,t){return t.length-e.length}for(var t,n,i,r=[],a=[],o=[],s=[],c=0;c<7;c++)i=C([2e3,1]).day(c),t=he(this.weekdaysMin(i,"")),n=he(this.weekdaysShort(i,"")),i=he(this.weekdays(i,"")),r.push(t),a.push(n),o.push(i),s.push(t),s.push(n),s.push(i);r.sort(e),a.sort(e),o.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Be(){return this.hours()%12||12}function We(e,t){T(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ue(e,t){return t._meridiemParse}T("H",["HH",2],0,"hour"),T("h",["hh",2],0,Be),T("k",["kk",2],0,(function(){return this.hours()||24})),T("hmm",0,0,(function(){return""+Be.apply(this)+S(this.minutes(),2)})),T("hmmss",0,0,(function(){return""+Be.apply(this)+S(this.minutes(),2)+S(this.seconds(),2)})),T("Hmm",0,0,(function(){return""+this.hours()+S(this.minutes(),2)})),T("Hmmss",0,0,(function(){return""+this.hours()+S(this.minutes(),2)+S(this.seconds(),2)})),We("a",!0),We("A",!1),I("hour","h"),F("hour",13),Ce("a",Ue),Ce("A",Ue),Ce("H",ee),Ce("h",ee),Ce("k",ee),Ce("HH",ee,X),Ce("hh",ee,X),Ce("kk",ee,X),Ce("hmm",te),Ce("hmmss",ne),Ce("Hmm",te),Ce("Hmmss",ne),me(["H","HH"],3),me(["k","kk"],(function(e,t,n){e=W(e),t[3]=24===e?0:e})),me(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),me(["h","hh"],(function(e,t,n){t[3]=W(e),u(n).bigHour=!0})),me("hmm",(function(e,t,n){var i=e.length-2;t[3]=W(e.substr(0,i)),t[4]=W(e.substr(i)),u(n).bigHour=!0})),me("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=W(e.substr(0,i)),t[4]=W(e.substr(i,2)),t[5]=W(e.substr(r)),u(n).bigHour=!0})),me("Hmm",(function(e,t,n){var i=e.length-2;t[3]=W(e.substr(0,i)),t[4]=W(e.substr(i))})),me("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=W(e.substr(0,i)),t[4]=W(e.substr(i,2)),t[5]=W(e.substr(r))})),de=U("Hours",!0);var qe,Ge={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ye,monthsShort:be,week:{dow:0,doy:6},weekdays:Pe,weekdaysMin:Re,weekdaysShort:Ie,meridiemParse:/[ap]\.?m?\.?/i},Ke={},Xe={};function Ze(e){return e&&e.toLowerCase().replace("_","-")}function Je(e){var t;if(void 0===Ke[e]&&"undefined"!=typeof module&&module&&module.exports&&null!=e.match("^[^/\\\\]*$"))try{t=qe._abbr,require("./locale/"+e),Qe(t)}catch(t){Ke[e]=null}return Ke[e]}function Qe(e,t){return e&&((t=o(t)?tt(e):et(e,t))?qe=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),qe._abbr}function et(e,t){if(null===t)return delete Ke[e],null;var n,i=Ge;if(t.abbr=e,null!=Ke[e])H("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."),i=Ke[e]._config;else if(null!=t.parentLocale)if(null!=Ke[t.parentLocale])i=Ke[t.parentLocale]._config;else{if(null==(n=Je(t.parentLocale)))return Xe[t.parentLocale]||(Xe[t.parentLocale]=[]),Xe[t.parentLocale].push({name:e,config:t}),null;i=n._config}return Ke[e]=new w(_(i,t)),Xe[e]&&Xe[e].forEach((function(e){et(e.name,e.config)})),Qe(e),Ke[e]}function tt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return qe;if(!n(e)){if(t=Je(e))return t;e=[e]}return function(e){for(var t,n,i,r,a=0;a=t&&function(e,t){for(var n=Math.min(e.length,t.length),i=0;i=t-1)break;t--}a++}return qe}(e)}function nt(e){var t=e._a;return t&&-2===u(e).overflow&&(t=t[1]<0||11Me(t[0],t[1])?2:t[3]<0||24Ae(o,l,d)?u(r)._overflowWeeks=!0:null!=C?u(r)._overflowWeekday=!0:(h=Ee(o,s,c,l,d),r._a[0]=h.year,r._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(a=ht(e._a[0],i[0]),(e._dayOfYear>xe(a)||0===e._dayOfYear)&&(u(e)._overflowDayOfYear=!0),C=ke(a,0,e._dayOfYear),e._a[1]=C.getUTCMonth(),e._a[2]=C.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=f[n]=i[n];for(;n<7;n++)e._a[n]=f[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?ke:De).apply(null,f),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(u(e).weekdayMismatch=!0)}}function pt(e){if(e._f===t.ISO_8601)Ct(e);else if(e._f===t.RFC_2822)ut(e);else{e._a=[],u(e).empty=!0;for(var n,i,a,o,s,c=""+e._i,l=c.length,d=0,C=O(e._f,e._locale).match(D)||[],h=C.length,f=0;fe.valueOf():e.valueOf()"}),K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},K.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},K.eraName=function(){for(var e,t=this.localeData().eras(),n=0,i=t.length;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},K.isLocal=function(){return!!this.isValid()&&!this._isUTC},K.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},K.isUtc=St,K.isUTC=St,K.zoneAbbr=function(){return this._isUTC?"UTC":""},K.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},K.dates=z("dates accessor is deprecated. Use date instead.",re),K.months=z("months accessor is deprecated. Use month instead",_e),K.years=z("years accessor is deprecated. Use year instead",Se),K.zone=z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()})),K.isDSTShifted=z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=mt(t))._a?(e=(t._isUTC?C:vt)(t._a),this._isDSTShifted=this.isValid()&&00;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),o--;var s,c,l;if(void 0===i.startDate&&void 0===i.endDate&&t(this.element).is(":text")){var d=t(this.element).val(),C=d.split(this.locale.separator);s=c=null,2==C.length?(s=e(C[0],this.locale.format),c=e(C[1],this.locale.format)):this.singleDatePicker&&""!==d&&(s=e(d,this.locale.format),c=e(d,this.locale.format)),null!==s&&null!==c&&(this.setStartDate(s),this.setEndDate(c))}if("object"==typeof i.ranges){for(l in i.ranges){s="string"==typeof i.ranges[l][0]?e(i.ranges[l][0],this.locale.format):e(i.ranges[l][0]),c="string"==typeof i.ranges[l][1]?e(i.ranges[l][1],this.locale.format):e(i.ranges[l][1]),this.minDate&&s.isBefore(this.minDate)&&(s=this.minDate.clone());var u=this.maxDate;if(this.maxSpan&&u&&s.clone().add(this.maxSpan).isAfter(u)&&(u=s.clone().add(this.maxSpan)),u&&c.isAfter(u)&&(c=u.clone()),!(this.minDate&&c.isBefore(this.minDate,this.timepicker?"minute":"day")||u&&s.isAfter(u,this.timepicker?"minute":"day"))){var h;(h=document.createElement("textarea")).innerHTML=l;a=h.value;this.ranges[a]=[s,c]}}var f="
          ";for(l in this.ranges)f+='
        • '+l+"
        • ";this.showCustomRangeLabel&&(f+='
        • '+this.locale.customRangeLabel+"
        • "),f+="
        ",this.container.find(".ranges").prepend(f)}"function"==typeof r&&(this.callback=r),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 i.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===i.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",t.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",t.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",t.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",t.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",t.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",t.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",t.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",t.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",t.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",t.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":t.proxy(this.show,this),"focus.daterangepicker":t.proxy(this.show,this),"keyup.daterangepicker":t.proxy(this.elementChanged,this),"keydown.daterangepicker":t.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",t.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",t.proxy(this.toggle,this))),this.updateElement()};return n.prototype={constructor:n,setStartDate:function(t){"string"==typeof t&&(this.startDate=e(t,this.locale.format)),"object"==typeof t&&(this.startDate=e(t)),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(t){"string"==typeof t&&(this.endDate=e(t,this.locale.format)),"object"==typeof t&&(this.endDate=e(t)),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 e,t,n,i;if(this.endDate){if(e=parseInt(this.container.find(".left .hourselect").val(),10),t=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(t)&&(t=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),n=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".left .ampmselect").val())&&e<12&&(e+=12),"AM"===i&&12===e&&(e=0)}else if(e=parseInt(this.container.find(".right .hourselect").val(),10),t=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(t)&&(t=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),n=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".right .ampmselect").val())&&e<12&&(e+=12),"AM"===i&&12===e&&(e=0);this.leftCalendar.month.hour(e).minute(t).second(n),this.rightCalendar.month.hour(e).minute(t).second(n)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(n){var i,r=(i="left"==n?this.leftCalendar:this.rightCalendar).month.month(),a=i.month.year(),o=i.month.hour(),s=i.month.minute(),c=i.month.second(),l=e([a,r]).daysInMonth(),d=e([a,r,1]),C=e([a,r,l]),u=e(d).subtract(1,"month").month(),h=e(d).subtract(1,"month").year(),f=e([h,u]).daysInMonth(),p=d.day();(i=[]).firstDay=d,i.lastDay=C;for(var m=0;m<6;m++)i[m]=[];var g=f-p+this.locale.firstDay+1;g>f&&(g-=7),p==this.locale.firstDay&&(g=f-6);for(var v=e([h,u,g,12,s,c]),M=(m=0,0),y=0;m<42;m++,M++,v=e(v).add(24,"hour"))m>0&&M%7==0&&(M=0,y++),i[y][M]=v.clone().hour(o).minute(s).second(c),v.hour(12),this.minDate&&i[y][M].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&i[y][M].isBefore(this.minDate)&&"left"==n&&(i[y][M]=this.minDate.clone()),this.maxDate&&i[y][M].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&i[y][M].isAfter(this.maxDate)&&"right"==n&&(i[y][M]=this.maxDate.clone());"left"==n?this.leftCalendar.calendar=i:this.rightCalendar.calendar=i;var b="left"==n?this.minDate:this.startDate,z=this.maxDate,L=("left"==n?this.startDate:this.endDate,this.locale.direction,'');L+="",L+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(L+=""),b&&!b.isBefore(i.firstDay)||this.linkedCalendars&&"left"!=n?L+="":L+='';var H=this.locale.monthNames[i[1][1].month()]+i[1][1].format(" YYYY");if(this.showDropdowns){for(var V=i[1][1].month(),_=i[1][1].year(),w=z&&z.year()||this.maxYear,x=b&&b.year()||this.minYear,S=_==x,D=_==w,k='";for(var E='")}if(L+='",z&&!z.isAfter(i.lastDay)||this.linkedCalendars&&"right"!=n&&!this.singleDatePicker?L+="":L+='',L+="",L+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(L+='"),t.each(this.locale.daysOfWeek,(function(e,t){L+=""})),L+="",L+="",L+="",null==this.endDate&&this.maxSpan){var A=this.startDate.clone().add(this.maxSpan).endOf("day");z&&!A.isBefore(z)||(z=A)}for(y=0;y<6;y++){L+="",this.showWeekNumbers?L+='":this.showISOWeekNumbers&&(L+='");for(M=0;M<7;M++){var O=[];i[y][M].isSame(new Date,"day")&&O.push("today"),i[y][M].isoWeekday()>5&&O.push("weekend"),i[y][M].month()!=i[1][1].month()&&O.push("off","ends"),this.minDate&&i[y][M].isBefore(this.minDate,"day")&&O.push("off","disabled"),z&&i[y][M].isAfter(z,"day")&&O.push("off","disabled"),this.isInvalidDate(i[y][M])&&O.push("off","disabled"),i[y][M].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&O.push("active","start-date"),null!=this.endDate&&i[y][M].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&O.push("active","end-date"),null!=this.endDate&&i[y][M]>this.startDate&&i[y][M]'+i[y][M].date()+""}L+=""}L+="",L+="
        '+H+"
        '+this.locale.weekLabel+""+t+"
        '+i[y][0].week()+"'+i[y][0].isoWeek()+"
        ",this.container.find(".drp-calendar."+n+" .calendar-table").html(L)},renderTimePicker:function(e){if("right"!=e||this.endDate){var t,n,i,r=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(r=this.startDate.clone().add(this.maxSpan)),"left"==e)n=this.startDate.clone(),i=this.minDate;else if("right"==e){n=this.endDate.clone(),i=this.startDate;var a=this.container.find(".drp-calendar.right .calendar-time");if(""!=a.html()&&(n.hour(isNaN(n.hour())?a.find(".hourselect option:selected").val():n.hour()),n.minute(isNaN(n.minute())?a.find(".minuteselect option:selected").val():n.minute()),n.second(isNaN(n.second())?a.find(".secondselect option:selected").val():n.second()),!this.timePicker24Hour)){var o=a.find(".ampmselect option:selected").val();"PM"===o&&n.hour()<12&&n.hour(n.hour()+12),"AM"===o&&12===n.hour()&&n.hour(0)}n.isBefore(this.startDate)&&(n=this.startDate.clone()),r&&n.isAfter(r)&&(n=r.clone())}t=' ",t+=': ",this.timePickerSeconds){t+=': "}if(!this.timePicker24Hour){t+='"}this.container.find(".drp-calendar."+e+" .calendar-time").html(t)}},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 e,n={top:0,left:0},i=this.drops,r=t(window).width();switch(this.parentEl.is("body")||(n={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},r=this.parentEl[0].clientWidth+this.parentEl.offset().left),i){case"auto":(e=this.element.offset().top+this.element.outerHeight()-n.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(e=this.element.offset().top-this.container.outerHeight()-n.top,i="up");break;case"up":e=this.element.offset().top-this.container.outerHeight()-n.top;break;default:e=this.element.offset().top+this.element.outerHeight()-n.top}this.container.css({top:0,left:0,right:"auto"});var a=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==i),"left"==this.opens){var o=r-this.element.offset().left-this.element.outerWidth();a+o>t(window).width()?this.container.css({top:e,right:"auto",left:9}):this.container.css({top:e,right:o,left:"auto"})}else if("center"==this.opens){(s=this.element.offset().left-n.left+this.element.outerWidth()/2-a/2)<0?this.container.css({top:e,right:"auto",left:9}):s+a>t(window).width()?this.container.css({top:e,left:"auto",right:0}):this.container.css({top:e,left:s,right:"auto"})}else{var s;(s=this.element.offset().left-n.left)+a>t(window).width()?this.container.css({top:e,left:"auto",right:0}):this.container.css({top:e,left:s,right:"auto"})}},show:function(e){this.isShowing||(this._outsideClickProxy=t.proxy((function(e){this.outsideClick(e)}),this),t(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),t(window).on("resize.daterangepicker",t.proxy((function(e){this.move(e)}),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(e){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(),t(document).off(".daterangepicker"),t(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(e){this.isShowing?this.hide():this.show()},outsideClick:function(e){var n=t(e.target);"focusin"==e.type||n.closest(this.element).length||n.closest(this.container).length||n.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(e){var t=e.target.getAttribute("data-range-key");if(this.chosenLabel=t,t==this.locale.customRangeLabel)this.showCalendars();else{var n=this.ranges[t];this.startDate=n[0],this.endDate=n[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(e){t(e.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(e){t(e.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(e){if(t(e.target).hasClass("available")){var n=t(e.target).attr("data-title"),i=n.substr(1,1),r=n.substr(3,1),a=t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][r]:this.rightCalendar.calendar[i][r],o=this.leftCalendar,s=this.rightCalendar,c=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each((function(e,n){if(!t(n).hasClass("week")){var i=t(n).attr("data-title"),r=i.substr(1,1),l=i.substr(3,1),d=t(n).parents(".drp-calendar").hasClass("left")?o.calendar[r][l]:s.calendar[r][l];d.isAfter(c)&&d.isBefore(a)||d.isSame(a,"day")?t(n).addClass("in-range"):t(n).removeClass("in-range")}}))}},clickDate:function(e){if(t(e.target).hasClass("available")){var n=t(e.target).attr("data-title"),i=n.substr(1,1),r=n.substr(3,1),a=t(e.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[i][r]:this.rightCalendar.calendar[i][r];if(this.endDate||a.isBefore(this.startDate,"day")){if(this.timePicker){var o=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".left .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0);var s=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(s)&&(s=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var c=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;a=a.clone().hour(o).minute(s).second(c)}this.endDate=null,this.setStartDate(a.clone())}else if(!this.endDate&&a.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var l;o=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(l=this.container.find(".right .ampmselect").val())&&o<12&&(o+=12),"AM"===l&&12===o&&(o=0);s=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(s)&&(s=parseInt(this.container.find(".right .minuteselect option:last").val(),10));c=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;a=a.clone().hour(o).minute(s).second(c)}this.setEndDate(a.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),e.stopPropagation()}},calculateChosenLabel:function(){var e=!0,t=0;for(var n in this.ranges){if(this.timePicker){var i=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(i)==this.ranges[n][0].format(i)&&this.endDate.format(i)==this.ranges[n][1].format(i)){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[n][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[n][1].format("YYYY-MM-DD")){e=!1,this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").attr("data-range-key");break}t++}e&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(e){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(e){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(e){var n=t(e.target).closest(".drp-calendar").hasClass("left"),i=n?"left":"right",r=this.container.find(".drp-calendar."+i),a=parseInt(r.find(".monthselect").val(),10),o=r.find(".yearselect").val();n||(othis.maxDate.year()||o==this.maxDate.year()&&a>this.maxDate.month())&&(a=this.maxDate.month(),o=this.maxDate.year()),n?(this.leftCalendar.month.month(a).year(o),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(a).year(o),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(e){var n=t(e.target).closest(".drp-calendar"),i=n.hasClass("left"),r=parseInt(n.find(".hourselect").val(),10),a=parseInt(n.find(".minuteselect").val(),10);isNaN(a)&&(a=parseInt(n.find(".minuteselect option:last").val(),10));var o=this.timePickerSeconds?parseInt(n.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var s=n.find(".ampmselect").val();"PM"===s&&r<12&&(r+=12),"AM"===s&&12===r&&(r=0)}if(i){var c=this.startDate.clone();c.hour(r),c.minute(a),c.second(o),this.setStartDate(c),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==c.format("YYYY-MM-DD")&&this.endDate.isBefore(c)&&this.setEndDate(c.clone())}else if(this.endDate){var l=this.endDate.clone();l.hour(r),l.minute(a),l.second(o),this.setEndDate(l)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.locale.separator),n=null,i=null;2===t.length&&(n=e(t[0],this.locale.format),i=e(t[1],this.locale.format)),(this.singleDatePicker||null===n||null===i)&&(i=n=e(this.element.val(),this.locale.format)),n.isValid()&&i.isValid()&&(this.setStartDate(n),this.setEndDate(i),this.updateView())}},keydown:function(e){9!==e.keyCode&&13!==e.keyCode||this.hide(),27===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var e=this.startDate.format(this.locale.format);this.singleDatePicker||(e+=this.locale.separator+this.endDate.format(this.locale.format)),e!==this.element.val()&&this.element.val(e).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},t.fn.daterangepicker=function(e,i){var r=t.extend(!0,{},t.fn.daterangepicker.defaultOptions,e);return this.each((function(){var e=t(this);e.data("daterangepicker")&&e.data("daterangepicker").remove(),e.data("daterangepicker",new n(e,r,i))})),this},n})),function(e){"function"==typeof define&&define.amd?define(["jquery"],(function(t){return e(t,window,document)})):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n,t,t.document)}:e(jQuery,window,document)}((function(e,t,n,i){function r(t){var n,i,a={};e.each(t,(function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(i=e.replace(n[0],n[2].toLowerCase()),a[i]=e,"o"===n[1]&&r(t[e]))})),t._hungarianMap=a}function a(t,n,o){var s;t._hungarianMap||r(t),e.each(n,(function(r){(s=t._hungarianMap[r])===i||!o&&n[s]!==i||("o"===s.charAt(0)?(n[s]||(n[s]={}),e.extend(!0,n[s],n[r]),a(t[s],n[s],o)):n[s]=n[r])}))}function o(e){var t=Ue.defaults.oLanguage,n=t.sDecimal;if(n&&Ne(n),e){var i=e.sZeroRecords;!e.sEmptyTable&&i&&"No data available in table"===t.sEmptyTable&&ke(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&i&&"Loading..."===t.sLoadingRecords&&ke(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&n!==e&&Ne(e)}}function s(e){if(lt(e,"ordering","bSort"),lt(e,"orderMulti","bSortMulti"),lt(e,"orderClasses","bSortClasses"),lt(e,"orderCellsTop","bSortCellsTop"),lt(e,"order","aaSorting"),lt(e,"orderFixed","aaSortingFixed"),lt(e,"paging","bPaginate"),lt(e,"pagingType","sPaginationType"),lt(e,"pageLength","iDisplayLength"),lt(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("
        ").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("
        ").css({width:"100%",height:10}))).appendTo("body"),a=r.children(),o=a.children();i.barWidth=a[0].offsetWidth-a[0].clientWidth,i.bScrollOversize=100===o[0].offsetWidth&&100!==a[0].clientWidth,i.bScrollbarLeft=1!==Math.round(o.offset().left),i.bBounding=!!r[0].getBoundingClientRect().width,r.remove()}e.extend(n.oBrowser,Ue.__browser),n.oScroll.iBarWidth=Ue.__browser.barWidth}function d(e,t,n,r,a,o){var s,c=!1;for(n!==i&&(s=n,c=!0);r!==a;)e.hasOwnProperty(r)&&(s=c?t(s,e[r],r,e):e[r],c=!0,r+=o);return s}function C(t,i){var r=Ue.defaults.column,a=t.aoColumns.length;r=e.extend({},Ue.models.oColumn,r,{nTh:i||n.createElement("th"),sTitle:r.sTitle?r.sTitle:i?i.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[a],mData:r.mData?r.mData:a,idx:a});t.aoColumns.push(r),(r=t.aoPreSearchCols)[a]=e.extend({},Ue.models.oSearch,r[a]),u(t,a,e(i).data())}function u(t,n,r){n=t.aoColumns[n];var o=t.oClasses,s=e(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var l=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(n.sWidthOrig=l[1])}r!==i&&null!==r&&(c(r),a(Ue.defaults.column,r),r.mDataProp!==i&&!r.mData&&(r.mData=r.mDataProp),r.sType&&(n._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),r.sClass&&s.addClass(r.sClass),e.extend(n,r),ke(n,r,"sWidth","sWidthOrig"),r.iDataSort!==i&&(n.aDataSort=[r.iDataSort]),ke(n,r,"aDataSort"));var d=n.mData,C=V(d),u=n.mRender?V(n.mRender):null;r=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};n._bAttrSrc=e.isPlainObject(d)&&(r(d.sort)||r(d.type)||r(d.filter)),n._setter=null,n.fnGetData=function(e,t,n){var r=C(e,t,i,n);return u&&t?u(r,t,e,n):r},n.fnSetData=function(e,t,n){return _(d)(e,t,n)},"number"!=typeof d&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,s.addClass(o.sSortableNone)),t=-1!==e.inArray("asc",n.asSorting),r=-1!==e.inArray("desc",n.asSorting),n.bSortable&&(t||r)?t&&!r?(n.sSortingClass=o.sSortableAsc,n.sSortingClassJUI=o.sSortJUIAscAllowed):!t&&r?(n.sSortingClass=o.sSortableDesc,n.sSortingClassJUI=o.sSortJUIDescAllowed):(n.sSortingClass=o.sSortable,n.sSortingClassJUI=o.sSortJUI):(n.sSortingClass=o.sSortableNone,n.sSortingClassJUI="")}function h(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;pe(e);for(var n=0,i=t.length;nf[s])a(h.length+f[s],u);else if("string"==typeof f[s])for(l=0,d=h.length;lt&&e[a]--;-1!=r&&n===i&&e.splice(r,1)}function D(e,t,n,r){var a,o=e.aoData[t],s=function(n,i){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=z(e,t,i,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==o.src)){var c=o.anCells;if(c)if(r!==i)s(c[r],r);else for(n=0,a=c.length;n").appendTo(s)),n=0,i=C.length;ntr").attr("role","row"),e(s).find(">tr>th, >tr>td").addClass(d.sHeaderTH),e(c).find(">tr>th, >tr>td").addClass(d.sFooterTH),null!==c)for(n=0,i=(t=t.aoFooter[0]).length;n=t.fnRecordsDisplay()?0:c,t.iInitDisplayStart=-1);c=t._iDisplayStart;var C=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,Ce(t,!1);else if(l){if(!t.bDestroying&&!F(t))return}else t.iDraw++;if(0!==d.length)for(s=l?t.aoData.length:C,l=l?0:c;l",{class:o?a[0]:""}).append(e("",{valign:"top",colSpan:m(t),class:t.oClasses.sRowEmpty}).html(r))[0];Ae(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],w(t),c,C,d]),Ae(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],w(t),c,C,d]),(a=e(t.nTBody)).children().detach(),a.append(e(n)),Ae(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function P(e,t){var n=e.oFeatures,i=n.bFilter;n.bSort&&be(e),i?q(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,O(e),e._drawHold=!1}function I(t){var n=t.oClasses,i=e(t.nTable),r=(i=e("
        ").insertBefore(i),t.oFeatures),a=e("
        ",{id:t.sTableId+"_wrapper",class:n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=i[0],t.nTableWrapper=a[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var o,s,c,l,d,C,u=t.sDom.split(""),h=0;h")[0],"'"==(l=u[h+1])||'"'==l){for(d="",C=2;u[h+C]!=l;)d+=u[h+C],C++;"H"==d?d=n.sJUIHeader:"F"==d&&(d=n.sJUIFooter),-1!=d.indexOf(".")?(l=d.split("."),c.id=l[0].substr(1,l[0].length-1),c.className=l[1]):"#"==d.charAt(0)?c.id=d.substr(1,d.length-1):c.className=d,h+=C}a.append(c),a=e(c)}else if(">"==s)a=a.parent();else if("l"==s&&r.bPaginate&&r.bLengthChange)o=se(t);else if("f"==s&&r.bFilter)o=U(t);else if("r"==s&&r.bProcessing)o=de(t);else if("t"==s)o=ue(t);else if("i"==s&&r.bInfo)o=te(t);else if("p"==s&&r.bPaginate)o=ce(t);else if(0!==Ue.ext.feature.length)for(C=0,l=(c=Ue.ext.feature).length;C',l=(l=a.sSearch).match(/_INPUT_/)?l.replace("_INPUT_",c):l+c,d=(i=e("
        ",{id:s.f?null:r+"_filter",class:i.sFilter}).append(e("
        ").addClass(n.sLength);return t.aanFeatures.l||(l[0].id=i+"_length"),l.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),e("select",l).val(t._iDisplayLength).on("change.DT",(function(){oe(t,e(this).val()),O(t)})),e(t.nTable).on("length.dt.DT",(function(n,i,r){t===i&&e("select",l).val(r)})),l[0]}function ce(t){var n=t.sPaginationType,i=Ue.ext.pager[n],r="function"==typeof i,a=function(e){O(e)},o=(n=e("
        ").addClass(t.oClasses.sPaging+n)[0],t.aanFeatures);return r||i.fnInit(t,n,a),o.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(r){var t,n=e._iDisplayStart,s=e._iDisplayLength,c=e.fnRecordsDisplay(),l=(n=(l=-1===s)?0:Math.ceil(n/s),s=l?1:Math.ceil(c/s),c=i(n,s),0);for(t=o.p.length;la&&(i=0):"first"==t?i=0:"previous"==t?0>(i=0<=r?i-r:0)&&(i=0):"next"==t?i+r",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function Ce(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),Ae(t,null,"processing",[t,n])}function ue(t){(C=e(t.nTable)).attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var i=n.sX,r=n.sY,a=t.oClasses,o=C.children("caption"),s=o.length?o[0]._captionSide:null,c=e(C[0].cloneNode(!1)),l=e(C[0].cloneNode(!1)),d=C.children("tfoot");d.length||(d=null),c=e("
        ",{class:a.sScrollWrapper}).append(e("
        ",{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?i?Me(i):null:"100%"}).append(e("
        ",{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(c.removeAttr("id").css("margin-left",0).append("top"===s?o:null).append(C.children("thead"))))).append(e("
        ",{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:i?Me(i):null}).append(C)),d&&c.append(e("
        ",{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:i?i?Me(i):null:"100%"}).append(e("
        ",{class:a.sScrollFootInner}).append(l.removeAttr("id").css("margin-left",0).append("bottom"===s?o:null).append(C.children("tfoot")))));var C,u=(C=c.children())[0],h=(a=C[1],d?C[2]:null);return i&&e(a).on("scroll.DT",(function(){var e=this.scrollLeft;u.scrollLeft=e,d&&(h.scrollLeft=e)})),e(a).css(r&&n.bCollapse?"max-height":"height",r),t.nScrollHead=u,t.nScrollBody=a,t.nScrollFoot=h,t.aoDrawCallback.push({fn:he,sName:"scrolling"}),c[0]}function he(t){var n,r,a,o,s,c=(C=t.oScroll).sX,l=C.sXInner,d=C.sY,C=C.iBarWidth,u=e(t.nScrollHead),p=u[0].style,m=(v=u.children("div"))[0].style,g=v.children("table"),v=t.nScrollBody,M=e(v),y=v.style,b=e(t.nScrollFoot).children("div"),z=b.children("table"),L=e(t.nTHead),H=e(t.nTable),V=H[0],_=V.style,w=t.nTFoot?e(t.nTFoot):null,x=t.oBrowser,S=x.bScrollOversize,D=rt(t.aoColumns,"nTh"),k=[],$=[],E=[],T=[],A=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};r=v.scrollHeight>v.clientHeight,t.scrollBarVis!==r&&t.scrollBarVis!==i?(t.scrollBarVis=r,h(t)):(t.scrollBarVis=r,H.children("thead, tfoot").remove(),w&&(a=w.clone().prependTo(H),n=w.find("tr"),a=a.find("tr")),o=L.clone().prependTo(H),L=L.find("tr"),r=o.find("tr"),o.find("th, td").removeAttr("tabindex"),c||(y.width="100%",u[0].style.width="100%"),e.each(N(t,o),(function(e,n){s=f(t,e),n.style.width=t.aoColumns[s].sWidth})),w&&fe((function(e){e.style.width=""}),a),u=H.outerWidth(),""===c?(_.width="100%",S&&(H.find("tbody").height()>v.offsetHeight||"scroll"==M.css("overflow-y"))&&(_.width=Me(H.outerWidth()-C)),u=H.outerWidth()):""!==l&&(_.width=Me(l),u=H.outerWidth()),fe(A,r),fe((function(t){E.push(t.innerHTML),k.push(Me(e(t).css("width")))}),r),fe((function(t,n){-1!==e.inArray(t,D)&&(t.style.width=k[n])}),L),e(r).height(0),w&&(fe(A,a),fe((function(t){T.push(t.innerHTML),$.push(Me(e(t).css("width")))}),a),fe((function(e,t){e.style.width=$[t]}),n),e(a).height(0)),fe((function(e,t){e.innerHTML='
        '+E[t]+"
        ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=k[t]}),r),w&&fe((function(e,t){e.innerHTML='
        '+T[t]+"
        ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=$[t]}),a),H.outerWidth()v.offsetHeight||"scroll"==M.css("overflow-y")?u+C:u,S&&(v.scrollHeight>v.offsetHeight||"scroll"==M.css("overflow-y"))&&(_.width=Me(n-C)),(""===c||""!==l)&&De(t,1,"Possible column misalignment",6)):n="100%",y.width=Me(n),p.width=Me(n),w&&(t.nScrollFoot.style.width=Me(n)),!d&&S&&(y.height=Me(V.offsetHeight+C)),c=H.outerWidth(),g[0].style.width=Me(c),m.width=Me(c),l=H.height()>v.clientHeight||"scroll"==M.css("overflow-y"),m[d="padding"+(x.bScrollbarLeft?"Left":"Right")]=l?C+"px":"0px",w&&(z[0].style.width=Me(c),b[0].style.width=Me(c),b[0].style[d]=l?C+"px":"0px"),H.children("colgroup").insertBefore(H.children("thead")),M.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(v.scrollTop=0))}function fe(e,t,n){for(var i,r,a=0,o=0,s=t.length;o").appendTo(d.find("tbody"));for(d.find("thead, tfoot").remove(),d.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),d.find("tfoot th, tfoot td").css("width",""),u=N(n,d.find("thead")[0]),i=0;i").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(i=0;i").css(c||s?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(d).appendTo(v),c&&l?d.width(l):c?(d.css("width","auto"),d.removeAttr("width"),d.width()").css("width",Me(t)).appendTo(i||n.body),a=r[0].offsetWidth;return r.remove(),a}function ge(t,n){var i=ve(t,n);if(0>i)return null;var r=t.aoData[i];return r.nTr?r.anCells[n]:e("").html(z(t,i,n,"display"))[0]}function ve(e,t){for(var n,i=-1,r=-1,a=0,o=e.aoData.length;ai&&(i=n.length,r=a);return r}function Me(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function ye(t){var n,r,a,o,s,c,l=[],d=t.aoColumns;n=t.aaSortingFixed,r=e.isPlainObject(n);var C=[];for(a=function(t){t.length&&!e.isArray(t[0])?C.push(t):e.merge(C,t)},e.isArray(n)&&a(n),r&&n.pre&&a(n.pre),a(t.aaSorting),r&&n.post&&a(n.post),t=0;ti?1:0))return"asc"===c.dir?n:-n;return(n=a[e])<(i=a[t])?-1:n>i?1:0})):l.sort((function(e,t){var n,i,c,l,d=r.length,C=s[e]._aSortData,u=s[t]._aSortData;for(c=0;ci?1:0}))}e.bSorted=!0}function ze(e){for(var t,n,i=e.aoColumns,r=ye(e),a=(e=e.oLanguage.oAria,0),o=i.length;a/g,"");var c=n.nTh;c.removeAttribute("aria-sort"),n.bSortable&&(0s?s+1:3));for(s=0,n=o.length;ss?s+1:3))}t.aLastSort=o}function _e(e,t){var n,i=e.aoColumns[t],r=Ue.ext.order[i.sSortDataType];r&&(n=r.call(e.oInstance,e,t,p(e,t)));for(var a,o=Ue.ext.type.order[i.sType+"-pre"],s=0,c=e.aoData.length;s=s.length?[0,n[1]]:n)}))),n.search!==i&&e.extend(t.oPreviousSearch,ee(n.search)),n.columns)for(a=0,o=n.columns.length;a=n&&(t=n-i),t-=t%i,(-1===i||0>t)&&(t=0),e._iDisplayStart=t}function Pe(t,n){var i=t.renderer,r=Ue.ext.renderer[n];return e.isPlainObject(i)&&i[n]?r[i[n]]||r._:"string"==typeof i&&r[i]||r._}function Ie(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Re(e,t){var n=[],i=(n=xt.numbers_length,Math.floor(n/2));return t<=n?n=ot(0,t):e<=i?((n=ot(0,n-2)).push("ellipsis"),n.push(t-1)):(e>=t-1-i?n=ot(t-(n-2),t):((n=ot(e-i+2,e+i-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Ne(t){e.each({num:function(e){return St(e,t)},"num-fmt":function(e){return St(e,t,Je)},"html-num":function(e){return St(e,t,Ke)},"html-num-fmt":function(e){return St(e,t,Ke,Je)}},(function(e,n){Fe.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(Fe.type.search[e+t]=Fe.type.search.html)}))}function je(e){return function(){var t=[Se(this[Ue.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Ue.ext.internal[e].apply(this,t)}}var Fe,Ye,Be,We,Ue=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new Ye(e?Se(this[Fe.iApiIndex]):this)},this.fnAddData=function(t,n){var r=this.api(!0),a=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?r.rows.add(t):r.row.add(t);return(n===i||n)&&r.draw(),a.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],r=n.oScroll;e===i||e?t.draw(!1):(""!==r.sX||""!==r.sY)&&he(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===i||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var r=this.api(!0),a=(e=r.rows(e)).settings()[0],o=a.aoData[e[0][0]];return e.remove(),t&&t.call(this,a,o),(n===i||n)&&r.draw(),o},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,r,a,o){a=this.api(!0),null===t||t===i?a.search(e,n,r,o):a.column(t).search(e,n,r,o),a.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==i){var r=e.nodeName?e.nodeName.toLowerCase():"";return t!==i||"td"==r||"th"==r?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==i?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===i||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===i||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return Se(this[Fe.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,r,a){var o=this.api(!0);return n===i||null===n?o.row(t).data(e):o.cell(t,n).data(e),(a===i||a)&&o.columns.adjust(),(r===i||r)&&o.draw(),0},this.fnVersionCheck=Fe.fnVersionCheck;var n=this,r=t===i,d=this.length;for(var h in r&&(t={}),this.oApi=this.internal=Fe.internal,Ue.ext.internal)h&&(this[h]=je(h));return this.each((function(){var h,f={},p=1").appendTo(z)),w.nTHead=n[0],0===(n=z.children("tbody")).length&&(n=e("").appendTo(z)),w.nTBody=n[0],0===(n=z.children("tfoot")).length&&t.length>0&&(""!==w.oScroll.sX||""!==w.oScroll.sY)&&(n=e("").appendTo(z)),0===n.length||0===n.children().length?z.addClass(x.sNoFooter):n.length>0&&(w.nTFoot=n[0],R(w.aoFooter,w.nTFoot)),p.aaData)for(m=0;m/g,Xe=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Ze=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Je=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Qe=function(e){return!e||!0===e||"-"===e},et=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},tt=function(e,t){return qe[t]||(qe[t]=RegExp(ut(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(qe[t],"."):e},nt=function(e,t,n){var i="string"==typeof e;return!!Qe(e)||(t&&i&&(e=tt(e,t)),n&&i&&(e=e.replace(Je,"")),!isNaN(parseFloat(e))&&isFinite(e))},it=function(e,t,n){return!!Qe(e)||((Qe(e)||"string"==typeof e)&&!!nt(e.replace(Ke,""),t,n)||null)},rt=function(e,t,n){var r=[],a=0,o=e.length;if(n!==i)for(;ae.length))for(var n=(t=e.slice().sort())[0],i=1,r=t.length;i")[0],ft=ht.textContent!==i,pt=/<.*?>/g,mt=Ue.util.throttle,gt=[],vt=Array.prototype;Ye=function(t,n){if(!(this instanceof Ye))return new Ye(t,n);var i=[],r=function(t){(t=function(t){var n,i,r=Ue.settings,a=e.map(r,(function(e){return e.nTable}));return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=e.inArray(t,a))?[r[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?i=e(t):t instanceof e&&(i=t),i?i.map((function(){return-1!==(n=e.inArray(this,a))?r[n]:null})).toArray():void 0):[]}(t))&&(i=i.concat(t))};if(e.isArray(t))for(var a=0,o=t.length;ae?new Ye(t[e],this[e]):null},filter:function(e){var t=[];if(vt.filter)t=vt.filter.call(this,e,this);else for(var n=0,i=this.length;n").addClass(n),e("td",i).addClass(n).html(t)[0].colSpan=m(a),o.push(i[0]))};s(t,n),r._details&&r._details.detach(),r._details=e(o),r._detailsShow&&r._details.insertAfter(r.nTr)}return this})),Be(["row().child.show()","row().child().show()"],(function(){return Vt(this,!0),this})),Be(["row().child.hide()","row().child().hide()"],(function(){return Vt(this,!1),this})),Be(["row().child.remove()","row().child().remove()"],(function(){return Ht(this),this})),Be("row().child.isShown()",(function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}));var _t=/^([^:]+):(name|visIdx|visible)$/,wt=function(e,t,n,i,r){n=[],i=0;for(var a=r.length;i=0?n:o.length+n];if("function"==typeof t){var r=Lt(i,a);return e.map(o,(function(e,n){return t(n,wt(i,n,0,0,r),c[n])?n:null}))}var l="string"==typeof t?t.match(_t):"";if(l)switch(l[2]){case"visIdx":case"visible":if((n=parseInt(l[1],10))<0){var d=e.map(o,(function(e,t){return e.bVisible?t:null}));return[d[d.length+n]]}return[f(i,n)];case"name":return e.map(s,(function(e,t){return e===l[1]?t:null}));default:return[]}return t.nodeName&&t._DT_CellIndex?[t._DT_CellIndex.column]:(n=e(c).filter(t).map((function(){return e.inArray(this,c)})).toArray()).length||!t.nodeName?n:(n=e(t).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]}),i,a)}),1);return r.selector.cols=t,r.selector.opts=n,r})),We("columns().header()","column().header()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTh}),1)})),We("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].nTf}),1)})),We("columns().data()","column().data()",(function(){return this.iterator("column-rows",wt,1)})),We("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].mData}),1)})),We("columns().cache()","column().cache()",(function(e){return this.iterator("column-rows",(function(t,n,i,r,a){return at(t.aoData,a,"search"===e?"_aFilterData":"_aSortData",n)}),1)})),We("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(e,t,n,i,r){return at(e.aoData,r,"anCells",t)}),1)})),We("columns().visible()","column().visible()",(function(t,n){var r=this.iterator("column",(function(n,r){if(t===i)return n.aoColumns[r].bVisible;var a,o,s,c=n.aoColumns,l=c[r],d=n.aoData;if(t!==i&&l.bVisible!==t){if(t){var C=e.inArray(!0,rt(c,"bVisible"),r+1);for(a=0,o=d.length;an;return!0},Ue.isDataTable=Ue.fnIsDataTable=function(t){var n=e(t).get(0),i=!1;return t instanceof Ue.Api||(e.each(Ue.settings,(function(t,r){var a=r.nScrollHead?e("table",r.nScrollHead)[0]:null,o=r.nScrollFoot?e("table",r.nScrollFoot)[0]:null;r.nTable!==n&&a!==n&&o!==n||(i=!0)})),i)},Ue.tables=Ue.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var i=e.map(Ue.settings,(function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable}));return n?new Ye(i):i},Ue.camelToHungarian=a,Be("$()",(function(t,n){var i=this.rows(n).nodes();i=e(i);return e([].concat(i.filter(t).toArray(),i.find(t).toArray()))})),e.each(["on","one","off"],(function(t,n){Be(n+"()",(function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),(function(e){return e.match(/\.dt\b/)?e:e+".dt"})).join(" ");var i=e(this.tables().nodes());return i[n].apply(i,t),this}))})),Be("clear()",(function(){return this.iterator("table",(function(e){x(e)}))})),Be("settings()",(function(){return new Ye(this.context,this.context)})),Be("init()",(function(){var e=this.context;return e.length?e[0].oInit:null})),Be("data()",(function(){return this.iterator("table",(function(e){return rt(e.aoData,"_aData")})).flatten()})),Be("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(i){var r,a=i.nTableWrapper.parentNode,o=i.oClasses,s=i.nTable,c=i.nTBody,l=i.nTHead,d=i.nTFoot,C=e(s),u=(c=e(c),e(i.nTableWrapper)),h=e.map(i.aoData,(function(e){return e.nTr}));i.bDestroying=!0,Ae(i,"aoDestroyCallback","destroy",[i]),n||new Ye(i).columns().visible(!0),u.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+i.sInstance),s!=l.parentNode&&(C.children("thead").detach(),C.append(l)),d&&s!=d.parentNode&&(C.children("tfoot").detach(),C.append(d)),i.aaSorting=[],i.aaSortingFixed=[],Ve(i),e(h).removeClass(i.asStripeClasses.join(" ")),e("th, td",l).removeClass(o.sSortable+" "+o.sSortableAsc+" "+o.sSortableDesc+" "+o.sSortableNone),c.children().detach(),c.append(h),C[l=n?"remove":"detach"](),u[l](),!n&&a&&(a.insertBefore(s,i.nTableReinsertBefore),C.css("width",i.sDestroyWidth).removeClass(o.sTable),(r=i.asDestroyStripes.length)&&c.children().each((function(t){e(this).addClass(i.asDestroyStripes[t%r])}))),-1!==(a=e.inArray(i,Ue.settings))&&Ue.settings.splice(a,1)}))})),e.each(["column","row","cell"],(function(e,t){Be(t+"s().every()",(function(e){var n=this.selector.opts,r=this;return this.iterator(t,(function(a,o,s,c,l){e.call(r[t](o,"cell"===t?s:n,"cell"===t?n:i),o,s,c,l)}))}))})),Be("i18n()",(function(t,n,r){var a=this.context[0];return(t=V(t)(a.oLanguage))===i&&(t=n),r!==i&&e.isPlainObject(t)&&(t=t[r]!==i?t[r]:t._),t.replace("%d",r)})),Ue.version="1.10.18",Ue.settings=[],Ue.models={},Ue.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Ue.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Ue.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Ue.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},Ue.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(Ue.defaults),Ue.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},r(Ue.defaults.column),Ue.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:i,oAjaxData:i,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Ie(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Ie(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,i=this.aiDisplay.length,r=this.oFeatures,a=r.bPaginate;return r.bServerSide?!1===a||-1===e?t+i:Math.min(t+e,this._iRecordsDisplay):!a||n>i||-1===e?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Ue.ext=Fe={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Ue.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Ue.version},e.extend(Fe,{afnFiltering:Fe.search,aTypes:Fe.type.detect,ofnSearch:Fe.type.search,oSort:Fe.type.order,afnSortData:Fe.order,aoFeatures:Fe.feature,oApi:Fe.internal,oStdClasses:Fe.classes,oPagination:Fe.pager}),e.extend(Ue.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var xt=Ue.ext.pager;e.extend(xt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Re(e,t)]},simple_numbers:function(e,t){return["previous",Re(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Re(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Re(e,t),"last"]},_numbers:Re,numbers_length:7}),e.extend(!0,Ue.ext.renderer,{pageButton:{_:function(t,r,a,o,s,c){var l,d,C,u=t.oClasses,h=t.oLanguage.oPaginate,f=t.oLanguage.oAria.paginate||{},p=0,m=function(n,i){var r,o,C,g,v=function(e){le(t,e.data.action,!0)};for(r=0,o=i.length;r").appendTo(n),m(C,g);else{switch(l=null,d="",g){case"ellipsis":n.append('');break;case"first":l=h.sFirst,d=g+(s>0?"":" "+u.sPageButtonDisabled);break;case"previous":l=h.sPrevious,d=g+(s>0?"":" "+u.sPageButtonDisabled);break;case"next":l=h.sNext,d=g+(s",{class:u.sPageButton+" "+d,"aria-controls":t.sTableId,"aria-label":f[g],"data-dt-idx":p,tabindex:t.iTabIndex,id:0===a&&"string"==typeof g?t.sTableId+"_"+g:null}).html(l).appendTo(n),{action:g},v),p++)}};try{C=e(r).find(n.activeElement).data("dt-idx")}catch(e){}m(e(r).empty(),o),C!==i&&e(r).find("[data-dt-idx="+C+"]").focus()}}}),e.extend(Ue.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n)?"num"+n:null},function(e){if(e&&!(e instanceof Date)&&!Xe.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||Qe(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return it(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return it(e,n,!0)?"html-num-fmt"+n:null},function(e){return Qe(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(Ue.ext.type.search,{html:function(e){return Qe(e)?e:"string"==typeof e?e.replace(Ge," ").replace(Ke,""):""},string:function(e){return Qe(e)?e:"string"==typeof e?e.replace(Ge," "):e}});var St=function(e,t,n,i){return 0===e||e&&"-"!==e?(t&&(e=tt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),i&&(e=e.replace(i,""))),1*e):-1/0};e.extend(Fe.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-1/0:e},"html-pre":function(e){return Qe(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Qe(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return et?1:0},"string-desc":function(e,t){return et?-1:0}}),Ne(""),e.extend(!0,Ue.ext.renderer,{header:{_:function(t,n,i,r){e(t.nTable).on("order.dt.DT",(function(e,a,o,s){t===a&&(e=i.idx,n.removeClass(i.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[e]?r.sSortAsc:"desc"==s[e]?r.sSortDesc:i.sSortingClass))}))},jqueryui:function(t,n,i,r){e("
        ").addClass(r.sSortJUIWrapper).append(n.contents()).append(e("").addClass(r.sSortIcon+" "+i.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",(function(e,a,o,s){t===a&&(e=i.idx,n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[e]?r.sSortAsc:"desc"==s[e]?r.sSortDesc:i.sSortingClass),n.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[e]?r.sSortJUIAsc:"desc"==s[e]?r.sSortJUIDesc:i.sSortingClassJUI))}))}}});var Dt=function(e){return"string"==typeof e?e.replace(//g,">").replace(/"/g,"""):e};return Ue.render={number:function(e,t,n,i,r){return{display:function(a){if("number"!=typeof a&&"string"!=typeof a)return a;var o=0>a?"-":"",s=parseFloat(a);return isNaN(s)?Dt(a):(s=s.toFixed(n),a=Math.abs(s),s=parseInt(a,10),a=n?t+(a-s).toFixed(n).substring(2):"",o+(i||"")+s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+a+(r||""))}}},text:function(){return{display:Dt}}},e.extend(Ue.ext.internal,{_fnExternApiFunc:je,_fnBuildAjax:j,_fnAjaxUpdate:F,_fnAjaxParameters:Y,_fnAjaxUpdateDraw:B,_fnAjaxDataSrc:W,_fnAddColumn:C,_fnColumnOptions:u,_fnAdjustColumnSizing:h,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:p,_fnVisbleColumns:m,_fnGetColumns:g,_fnColumnTypes:v,_fnApplyColumnDefs:M,_fnHungarianMap:r,_fnCamelToHungarian:a,_fnLanguageCompat:o,_fnBrowserDetect:l,_fnAddData:y,_fnAddTr:b,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==i?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,i){return e.inArray(i,t.aoData[n].anCells)},_fnGetCellData:z,_fnSetCellData:L,_fnSplitObjNotation:H,_fnGetObjectDataFn:V,_fnSetObjectDataFn:_,_fnGetDataMaster:w,_fnClearTable:x,_fnDeleteIndex:S,_fnInvalidate:D,_fnGetRowElements:k,_fnCreateTr:$,_fnBuildHead:T,_fnDrawHead:A,_fnDraw:O,_fnReDraw:P,_fnAddOptionsHtml:I,_fnDetectHeader:R,_fnGetUniqueThs:N,_fnFeatureHtmlFilter:U,_fnFilterComplete:q,_fnFilterCustom:G,_fnFilterColumn:K,_fnFilter:X,_fnFilterCreateSearch:Z,_fnEscapeRegex:ut,_fnFilterData:J,_fnFeatureHtmlInfo:te,_fnUpdateInfo:ne,_fnInfoMacros:ie,_fnInitialise:re,_fnInitComplete:ae,_fnLengthChange:oe,_fnFeatureHtmlLength:se,_fnFeatureHtmlPaginate:ce,_fnPageChange:le,_fnFeatureHtmlProcessing:de,_fnProcessingDisplay:Ce,_fnFeatureHtmlTable:ue,_fnScrollDraw:he,_fnApplyToChildren:fe,_fnCalculateColumnWidths:pe,_fnThrottle:mt,_fnConvertToWidth:me,_fnGetWidestNode:ge,_fnGetMaxLenString:ve,_fnStringToCss:Me,_fnSortFlatten:ye,_fnSort:be,_fnSortAria:ze,_fnSortListener:Le,_fnSortAttachListener:He,_fnSortingClasses:Ve,_fnSortData:_e,_fnSaveState:we,_fnLoadState:xe,_fnSettingsFromNode:Se,_fnLog:De,_fnMap:ke,_fnBindAction:Ee,_fnCallbackReg:Te,_fnCallbackFire:Ae,_fnLengthOverflow:Oe,_fnRenderer:Pe,_fnDataSource:Ie,_fnRowAttributes:E,_fnExtend:$e,_fnCalculateEnd:function(){}}),e.fn.dataTable=Ue,Ue.$=e,e.fn.dataTableSettings=Ue.settings,e.fn.dataTableExt=Ue.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(Ue,(function(t,n){e.fn.DataTable[t]=n})),e.fn.dataTable}));var FullCalendar=function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,n)};function n(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n3)for(n=[n],a=3;a0?m(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(f=z[u])||f&&p.key==f.key&&p.type===f.type)z[u]=void 0;else for(h=0;h3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),P(p(re,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ne.prototype=new v).__e=function(e){var t=this,n=te(t.__v),i=t.o.get(e);return i[0]++,function(r){var a=function(){t.props.revealOrder?(i.push(r),ie(t,e,i)):r()};n?n(a):a()}},ne.prototype.render=function(e){this.u=null,this.o=new Map;var t=V(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ne.prototype.componentDidUpdate=ne.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ie(e,n,t)}))};var oe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,se=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ce=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};v.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(v.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var le=a.event;function de(){}function Ce(){return this.cancelBubble}function ue(){return this.defaultPrevented}a.event=function(e){return le&&(e=le(e)),e.persist=de,e.isPropagationStopped=Ce,e.isDefaultPrevented=ue,e.nativeEvent=e};var he={configurable:!0,get:function(){return this.class}},fe=a.vnode;a.vnode=function(e){var t=e.type,n=e.props,i=n;if("string"==typeof t){for(var r in i={},n){var a=n[r];"value"===r&&"defaultValue"in n&&null==a||("defaultValue"===r&&"value"in n&&null==n.value?r="value":"download"===r&&!0===a?a="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!ce(n.type)?r="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(r)?r=r.toLowerCase():se.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),i[r]=a)}"select"==t&&i.multiple&&Array.isArray(i.value)&&(i.value=V(n.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==t&&null!=i.defaultValue&&(i.value=V(n.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),e.props=i}t&&n.class!=n.className&&(he.enumerable="className"in n,null!=n.className&&(i.class=n.className),Object.defineProperty(i,"className",he)),e.$$typeof=oe,fe&&fe(e)};var pe=a.__r;a.__r=function(e){pe&&pe(e)},"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);var me="undefined"!=typeof globalThis?globalThis:window;me.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):me.FullCalendarVDom={Component:v,createElement:p,render:P,createRef:function(){return{current:null}},Fragment:g,createContext:function(e){var t=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(b)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,i=n.apply(this,arguments);if(t){var r=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&r.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}}return i},t},createPortal:function(e,t){return p(ae,{__v:e,i:t})},flushSync:function(e){e();var t=a.debounceRendering,n=[];for(a.debounceRendering=function(e){n.push(e)},P(p(ge,{}),document.createElement("div"));n.length;)n.shift()();a.debounceRendering=t},unmountComponentAtNode:function(e){P(null,e)}};var ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return p("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(v),ve=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function Me(e){e.parentNode&&e.parentNode.removeChild(e)}function ye(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(be(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function be(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function ze(e,t){for(var n=e instanceof HTMLElement?[e]:e,i=[],r=0;r=0;a-=1){var o=e[a][i];if("object"==typeof o&&o)r.unshift(o);else if(void 0!==o){n[i]=o;break}}r.length&&(n[i]=Mt(r))}for(a=e.length-1;a>=0;a-=1){var s=e[a];for(var c in s)c in n||(n[c]=s[c])}return n}function yt(e,t){var n={};for(var i in e)t(e[i],i)&&(n[i]=e[i]);return n}function bt(e,t){var n={};for(var i in e)n[i]=t(e[i],i);return n}function zt(e){for(var t={},n=0,i=e;n10&&(null==t?i=i.replace("Z",""):0!==t&&(i=i.replace("Z",Bt(t,!0)))),i}function Ft(e){return e.toISOString().replace(/T.*$/,"")}function Yt(e){return Ge(e.getUTCHours(),2)+":"+Ge(e.getUTCMinutes(),2)+":"+Ge(e.getUTCSeconds(),2)}function Bt(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",i=Math.abs(e),r=Math.floor(i/60),a=Math.round(i%60);return t?n+Ge(r,2)+":"+Ge(a,2):"GMT"+n+r+(a?":"+Ge(a,2):"")}function Wt(e,t,n){if(e===t)return!0;var i,r=e.length;if(r!==t.length)return!1;for(i=0;i1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(s=1);var c=this.format(e,n),l=this.format(t,n);if(c===l)return c;var d=nn(function(e,t){var n={};for(var i in e)(!(i in Kt)||Kt[i]<=t)&&(n[i]=e[i]);return n}(r,s),a,n),C=d(e),u=d(t),h=function(e,t,n,i){for(var r=0;r=It(t)&&(i=tt(i,1))}return e.start&&(n=ct(e.start),i&&i<=n&&(i=tt(n,1))),{start:n,end:i}}function Rn(e){var t=In(e);return rt(t.start,t.end)>1}function Nn(e,t,n,i){return"year"===i?Et(n.diffWholeYears(e,t),"year"):"month"===i?Et(n.diffWholeMonths(e,t),"month"):at(e,t)}function jn(e,t){var n,i,r=[],a=t.start;for(e.sort(Fn),n=0;na&&r.push({start:a,end:i.start}),i.end>a&&(a=i.end);return at.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function qn(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t=(n||t.end),isToday:t&&qn(t,i.start)}}function si(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function ci(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function li(e,t){var n=e.eventRange,i=n.def,r=n.instance,a=i.url;if(a)return{href:a};var o=t.emitter,s=t.options.eventInteractive;return null==s&&null==(s=i.interactive)&&(s=Boolean(o.hasHandlers("eventClick"))),s?Ae((function(e){o.trigger("eventClick",{el:e.target,event:new xi(t,i,r),jsEvent:e,view:t.viewApi})})):{}}var di={start:vn,end:vn,allDay:Boolean};function Ci(e,t,n){var r=function(e,t){var n=gn(e,di),r=n.refined,a=n.extra,o=r.start?t.createMarkerMeta(r.start):null,s=r.end?t.createMarkerMeta(r.end):null,c=r.allDay;return null==c&&(c=o&&o.isTimeUnspecified&&(!s||s.isTimeUnspecified)),i({range:{start:o?o.marker:null,end:s?s.marker:null},allDay:c},a)}(e,t),a=r.range;if(!a.start)return null;if(!a.end){if(null==n)return null;a.end=t.add(a.start,n)}return r}function ui(e,t){return Bn(e.range,t.range)&&e.allDay===t.allDay&&function(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}(e,t)}function hi(e,t,n){return i(i({},fi(e,t,n)),{timeZone:t.timeZone})}function fi(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function pi(e,t,n){var i=Tn({editable:!1},n),r=On(i.refined,i.extra,"",e.allDay,!0,n);return{def:r,ui:Qn(r,t),instance:gt(r.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function mi(e,t,n){n.emitter.trigger("select",i(i({},gi(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function gi(e,t){for(var n,r,a={},o=0,s=t.pluginHooks.dateSpanTransforms;o=0;i-=1){var r=n[i].parseMeta(e);if(r)return{sourceDefId:i,meta:r}}return null}(a,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:a.defaultAllDay,eventDataTransform:a.eventDataTransform,success:a.success,failure:a.failure,publicId:a.id||"",sourceId:Pe(),sourceDefId:s.sourceDefId,meta:s.meta,ui:wn(a,t),extendedProps:o}}return null}function Vi(e){return i(i(i({},Vn),Li),e.pluginHooks.eventSourceRefiners)}function _i(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var wi=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],i=1;i=1?Math.min(r,a):r}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,i){return void 0===i&&(i={}),i.isEndExclusive&&(t=nt(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=i.forcedStartTzo?i.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=i.forcedEndTzo?i.forcedEndTzo:this.offsetForMarker(t)},this,i.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),jt(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?ft(Ct(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?ft(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-ut(ht(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ht(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?ut(ht(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ht(e))*60):new Date(e.valueOf()-(t||0))},e}(),Oi=[],Pi={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Ii=i(i({},Pi),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function Ri(e){for(var t=e.length>0?e[0].code:"en",n=Oi.concat(e),i={en:Ii},r=0,a=n;r0;r-=1){var a=i.slice(0,r).join("-");if(t[a])return t[a]}return null}(n,t)||Ii;return ji(e,n,i)}(e,t):ji(e.code,[e.code],e)}function ji(e,t,n){var i=Mt([Pi,n],["buttonText"]);delete i.code;var r=i.week;return delete i.week,{codeArg:e,codes:t,week:r,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function Fi(e){var t=Ni(e.locale||"en",Ri([]).map);return new Ai(i(i({timeZone:dn.timeZone,calendarSystem:"gregory"},e),{locale:t}))}var Yi,Bi={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Wi(e,t){return Mn(function(e){return(!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[]).map((function(e){return i(i({},Bi),e)}))}(e),null,t)}function Ui(e,t){return e.left>=t.left&&e.left=t.top&&e.top
        ",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Yi}var Ji={defs:{},instances:{}},Qi=function(){function e(){this.getKeysForEventDefs=Ut(this._getKeysForEventDefs),this.splitDateSelection=Ut(this._splitDateSpan),this.splitEventStore=Ut(this._splitEventStore),this.splitIndividualUi=Ut(this._splitIndividualUi),this.splitEventDrag=Ut(this._splitInteraction),this.splitEventResize=Ut(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),i=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,i),o=this.splitEventStore(e.eventStore,i),s=this.splitEventDrag(e.eventDrag),c=this.splitEventResize(e.eventResize),l={};for(var d in this.eventUiBuilders=bt(n,(function(e,n){return t.eventUiBuilders[n]||Ut(er)})),n){var C=n[d],u=o[d]||Ji,h=this.eventUiBuilders[d];l[d]={businessHours:C.businessHours||e.businessHours,dateSelection:r[d]||null,eventStore:u,eventUiBases:h(e.eventUiBases[""],C.ui,a[d]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[d]||null,eventResize:c[d]||null}}return l},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,i=this.getKeysForDateSpan(e);nn:!!t&&e>=t.end)}}function nr(e,t){var n=["fc-day","fc-day-"+Qe[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}var ir=cn({year:"numeric",month:"long",day:"numeric"}),rr=cn({week:"long"});function ar(e,t,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var a=e.dateEnv,o=e.options,s=e.calendarApi,c=a.format(t,"week"===n?rr:ir);if(o.navLinks){var l=a.toDate(t),d=function(e){var i="day"===n?o.navLinkDayClick:"week"===n?o.navLinkWeekClick:null;"function"==typeof i?i.call(s,a.toDate(t),e):("string"==typeof i&&(n=i),s.zoomTo(t,n))};return i({title:Ke(o.navLinkHint,[c,l],c),"data-navlink":""},r?Te(d):{onClick:d})}return{"aria-label":c}}var or,sr=null;function cr(){return null===sr&&(sr=function(){var e=document.createElement("div");He(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="
        ",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Me(e),t}()),sr}function lr(){return or||(or=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=dr(e);return document.body.removeChild(e),t}()),or}function dr(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Cr(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),i=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,s=dr(e),c=s.y-i-r,l={borderLeft:i,borderRight:r,borderTop:a,borderBottom:o,scrollbarBottom:s.x-a-o,scrollbarLeft:0,scrollbarRight:0};return cr()&&"rtl"===n.direction?l.scrollbarLeft=c:l.scrollbarRight=c,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function ur(e,t,n){void 0===t&&(t=!1);var i=n?e.getBoundingClientRect():hr(e),r=Cr(e,t),a={left:i.left+r.borderLeft+r.scrollbarLeft,right:i.right-r.borderRight-r.scrollbarRight,top:i.top+r.borderTop,bottom:i.bottom-r.borderBottom-r.scrollbarBottom};return t&&(a.left+=r.paddingLeft,a.right-=r.paddingRight,a.top+=r.paddingTop,a.bottom-=r.paddingBottom),a}function hr(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function fr(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function pr(e,t,n){var i=!1,r=function(){i||(i=!0,t.apply(this,arguments))},a=function(){i||(i=!0,n&&n.apply(this,arguments))},o=e(r,a);o&&"function"==typeof o.then&&o.then(r,a)}var mr=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n=n[t]&&e=n[t]&&e0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()0},e.prototype.canScrollRight=function(){return this.getScrollLeft()=d.end?new Date(d.end.valueOf()-1):l),r=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(r.unit),o=this.buildRenderRange(this.trimHiddenDays(r.range),r.unit,a),s=o=this.trimHiddenDays(o),C.showNonCurrentDates||(s=Yn(s,r.range)),s=Yn(s=this.adjustActiveRange(s),i),c=Wn(r.range,i),{validRange:i,currentRange:r.range,currentRangeUnit:r.unit,isRangeAllDay:a,activeRange:s,renderRange:o,slotMinTime:C.slotMinTime,slotMaxTime:C.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(r.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,i=this.props,r=null,a=null,o=null;return i.duration?(r=i.duration,a=i.durationUnit,o=this.buildRangeFromDuration(e,t,r,a)):(n=this.props.dayCount)?(a="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?a=i.dateEnv.greatestWholeUnit(o.start,o.end).unit:(a=Nt(r=this.getFallbackDuration()).unit,o=this.buildRangeFromDuration(e,t,r,a)),{duration:r,unit:a,range:o}},e.prototype.getFallbackDuration=function(){return Et({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,i=t.usesMinMaxTime,r=t.slotMinTime,a=t.slotMaxTime,o=e.start,s=e.end;return i&&(Pt(r)<0&&(o=ct(o),o=n.add(o,r)),Pt(a)>1&&(s=tt(s=ct(s),-1),s=n.add(s,a))),{start:o,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,i){var r,a,o,s=this.props,c=s.dateEnv,l=s.dateAlignment;if(!l){var d=this.props.dateIncrement;l=d&&It(d)e.fetchRange.end:!e.latestFetchId}(e,t,n)})),t,!1,n)}function oa(e,t,n,i,r){var a={};for(var o in e){var s=e[o];t[o]?a[o]=sa(s,n,i,r):a[o]=s}return a}function sa(e,t,n,r){var a=r.options,o=r.calendarApi,s=r.pluginHooks.eventSourceDefs[e.sourceDefId],c=Pe();return s.fetch({eventSource:e,range:t,isRefetch:n,context:r},(function(n){var i=n.rawEvents;a.eventSourceSuccess&&(i=a.eventSourceSuccess.call(o,i,n.xhr)||i),e.success&&(i=e.success.call(o,i,n.xhr)||i),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:c,fetchRange:t,rawEvents:i})}),(function(n){console.warn(n.message,n),a.eventSourceFailure&&a.eventSourceFailure.call(o,n),e.failure&&e.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:c,fetchRange:t,error:n})})),i(i({},e),{isFetching:!0,latestFetchId:c})}function ca(e,t){return yt(e,(function(e){return la(e,t)}))}function la(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function da(e,t){var n;if(t){n=[];for(var i=0,r=e;i=200&&o.status<400){var e=!1,t=void 0;try{t=JSON.parse(o.responseText),e=!0}catch(e){}e?i(t,o):r("Failure parsing JSON",o)}else r("Request failed",o)},o.onerror=function(){r("Request failed",o)},o.send(a)}function ya(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}function ba(e,t){for(var n=Lt(t.getCurrentData().eventSources),i=[],r=0,a=e;r1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var _a=function(){function e(e){var t=this;this.computeOptionsData=Ut(this._computeOptionsData),this.computeCurrentViewData=Ut(this._computeCurrentViewData),this.organizeRawLocales=Ut(Ri),this.buildLocale=Ut(Ni),this.buildPluginHooks=function(){var e,t=[],n=[];return function(r,a){return e&&Wt(r,t)&&Wt(a,n)||(e=function(e,t){var n={},r={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function a(e){for(var t=0,o=e;ts.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:o.end}},a)),i?(n.push.apply(n,r([{index:e.index,thickness:e.thickness,span:Ya(s,o)}],a)),i):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,i=this.levelCoords;-1===t.lateral?(Ba(i,t.level,t.levelCoord),Ba(n,t.level,[e])):Ba(n[t.level],t.lateral,e),this.stackCnts[Na(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,i=t.entriesByLevel,r=t.strictOrder,a=t.stackCnts,o=n.length,s=0,c=-1,l=-1,d=null,C=0,u=0;u=s+e.thickness)break;for(var f=i[u],p=void 0,m=Wa(f,e.span.start,Ra),g=m[0]+m[1];(p=f[g])&&p.span.starts&&(s=v,d=p,c=u,l=g),v===s&&(C=Math.max(C,a[Na(p)]+1)),g+=1}}var M=0;if(d)for(M=c+1;Mn(e[r-1]))return[r,0];for(;io))return[a,1];i=a+1}}return[i,0]}var Ua=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function qa(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function Ga(e){var t;return(t={})[e.component.uid]=e,t}var Ka={},Xa=function(){function e(e,t){this.emitter=new mr}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),Za={},Ja={startTime:Et,duration:Et,create:Boolean,sourceId:String};function Qa(e){var t=gn(e,Ja),n=t.refined,i=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:i}}var eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return Lr.apply(void 0,r(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,i=[],a=!0,o=0,s=e;o1){var g=a&&n.getClass("buttonGroup")||"";return Lr.apply(void 0,r(["div",{className:g}],i))}return i[0]},t}(Ar),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e,t,n=this.props,i=n.model,r=n.extraClassName,a=!1,o=i.sectionWidgets,s=o.center;return o.left?(a=!0,e=o.left):e=o.start,o.right?(a=!0,t=o.right):t=o.end,Lr("div",{className:[r||"","fc-toolbar",a?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return Lr(eo,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(Ar),no=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,Ir(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,i=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],r="",a="";return n?null!==t.availableWidth?r=t.availableWidth/n:a=1/n*100+"%":r=e.height||"",Lr("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:r,paddingBottom:a}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(Ar),io=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var i=n.component,r=i.context,a=Zn(t);if(a&&i.isValidSegDownEl(e.target)){var o=ye(e.target,".fc-event-forced-url"),s=o?o.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new xi(i.context,a.eventRange.def,a.eventRange.instance),jsEvent:e,view:r.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},n.destroy=ke(t.el,"click",".fc-event",n.handleSegClick),n}return n(t,e),t}(Ua),ro=function(e){function t(t){var n,i,r,a,o=e.call(this,t)||this;return o.handleEventElRemove=function(e){e===o.currentSegEl&&o.handleSegLeave(null,o.currentSegEl)},o.handleSegEnter=function(e,t){Zn(t)&&(o.currentSegEl=t,o.triggerEvent("eventMouseEnter",e,t))},o.handleSegLeave=function(e,t){o.currentSegEl&&(o.currentSegEl=null,o.triggerEvent("eventMouseLeave",e,t))},o.removeHoverListeners=(n=t.el,".fc-event",i=o.handleSegEnter,r=o.handleSegLeave,ke(n,"mouseover",".fc-event",(function(e,t){if(t!==a){a=t,i(e,t);var n=function(e){a=null,r(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}}))),o}return n(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var i=this.component,r=i.context,a=Zn(n);t&&!i.isValidSegDownEl(t.target)||r.emitter.trigger(e,{el:n,event:new xi(r,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:r.viewApi})},t}(Ua),ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=Ut(Er),t.buildViewPropTransformers=Ut(so),t.buildToolbarProps=Ut(oo),t.headerRef=Vr(),t.footerRef=Vr(),t.interactionsStore={},t.state={viewLabelId:Se()},t.registerInteractiveComponent=function(e,n){var i=qa(e,n),r=[io,ro].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(i)}));t.interactionsStore[e.uid]=r,Ka[e.uid]=i},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var i=0,r=n;i10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var Co="fc-col-header-cell";function uo(e){return e.text}var ho=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,a=e.viewApi,o=this.props,s=o.date,c=o.dateProfile,l=tr(s,o.todayRange,null,c),d=[Co].concat(nr(l,r)),C=t.format(s,o.dayHeaderFormat),u=!l.isDisabled&&o.colCnt>1?ar(this.context,s):{},h=i(i(i({date:t.toDate(s),view:a},o.extraHookProps),{text:C}),l);return Lr(Yr,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:uo,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,r){return Lr("th",i({ref:e,role:"columnheader",className:d.concat(t).join(" "),"data-date":l.isDisabled?void 0:Ft(s),colSpan:o.colSpan},o.extraDataAttrs),Lr("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&Lr("a",i({ref:n,className:["fc-col-header-cell-cushion",o.isSticky?"fc-sticky":""].join(" ")},u),r)))}))},t}(Ar),fo=cn({weekday:"long"}),po=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,a=t.viewApi,o=t.options,s=tt(new Date(2592e5),e.dow),c={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=[Co].concat(nr(c,r),e.extraClassNames||[]),d=n.format(s,e.dayHeaderFormat),C=i(i(i(i({date:s},c),{view:a}),e.extraHookProps),{text:d});return Lr(Yr,{hookProps:C,classNames:o.dayHeaderClassNames,content:o.dayHeaderContent,defaultContent:uo,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},(function(t,r,a,o){return Lr("th",i({ref:t,role:"columnheader",className:l.concat(r).join(" "),colSpan:e.colSpan},e.extraDataAttrs),Lr("div",{className:"fc-scrollgrid-sync-inner"},Lr("a",{"aria-label":n.format(s,fo),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:a},o)))}))},t}(Ar),mo=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.initialNowDate=_i(n.options.now,n.dateEnv),i.initialNowQueriedMs=(new Date).valueOf(),i.state=i.computeTiming().currentState,i}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=nt(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=t.dateEnv.startOf(n,e.unit),r=t.dateEnv.add(i,Et(1,e.unit)),a=r.valueOf()-n.valueOf();return a=Math.min(864e5,a),{currentState:{nowDate:i,todayRange:go(i)},nextState:{nowDate:r,todayRange:go(r)},waitMs:a}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,i=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),i)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=$r,t}(zr);function go(e){var t=ct(e);return{start:t,end:tt(t,1)}}var vo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=Ut(Mo),t}return n(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,i=t.dateProfile,r=t.datesRepDistinctDays,a=t.renderIntro,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,n.length);return Lr(mo,{unit:"day"},(function(e,t){return Lr("tr",{role:"row"},a&&a("day"),n.map((function(e){return r?Lr(ho,{key:e.toISOString(),date:e,dateProfile:i,todayRange:t,colCnt:n.length,dayHeaderFormat:o}):Lr(po,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:o})})))}))},t}(Ar);function Mo(e,t,n){return e||lo(t,n)}var yo=function(){function e(e,t){for(var n=e.start,i=e.end,r=[],a=[],o=-1;n=t.length?t[t.length-1]+1:t[n]},e}(),bo=function(){function e(e,t){var n,i,r,a=e.dates;if(t){for(i=a[0].getUTCDay(),n=1;nt)return!0;return!1},t.prototype.needsYScrolling=function(){if($o.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,i=0;it)return!0;return!1},t.prototype.getXScrollbarWidth=function(){return $o.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return $o.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(Ar),To=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var i=t,r=i.depths,a=i.currentMap,o=!1,s=!1;null!==e?(o=n in a,a[n]=e,r[n]=(r[n]||0)+1,s=!0):(r[n]-=1,r[n]||(delete a[n],delete t.callbackMap[n],o=!0)),t.masterCallback&&(o&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return xt(this.currentMap,e,t,n)},e.prototype.getAll=function(){return Lt(this.currentMap)},e}();function Ao(e){for(var t=0,n=0,i=ze(e,".fc-scrollgrid-shrink");n=0&&e=0&&tt.eventRange.range.end?e:t}var ms=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.isRendering=!1,r.isRendered=!1,r.currentClassNames=[],r.customContentRenderId=0,r.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":r.renderRunner.tryDrain()}},r.handleData=function(e){r.currentData=e,r.renderRunner.request(e.calendarOptions.rerenderDelay)},r.handleRenderRequest=function(){if(r.isRendering){r.isRendered=!0;var e=r.currentData;Sr((function(){Hr(Lr(co,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,a,o){return r.setClassNames(t),r.setHeight(n),Lr(Br.Provider,{value:r.customContentRenderId},Lr(ao,i({isHeightAuto:a,forPrint:o},e)))})),r.el)}))}else r.isRendered&&(r.isRendered=!1,Dr(r.el),r.setClassNames([]),r.setHeight(""))},r.el=t,r.renderRunner=new La(r.handleRenderRequest),new _a({optionOverrides:n,calendarApi:r,onAction:r.handleAction,onData:r.handleData}),r}return n(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){var t=this;Sr((function(){e.prototype.updateSize.call(t)}))},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!Wt(e,this.currentClassNames)){for(var t=this.el.classList,n=0,i=this.currentClassNames;n0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(_s()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e=0&&l>=0&&d>=0&&C>=0&&(d<=n&&this.everMovedUp&&o.canScrollUp()&&(!i||i.distance>d)&&(i={scrollCache:o,name:"top",distance:d}),C<=n&&this.everMovedDown&&o.canScrollDown()&&(!i||i.distance>C)&&(i={scrollCache:o,name:"bottom",distance:C}),c<=n&&this.everMovedLeft&&o.canScrollLeft()&&(!i||i.distance>c)&&(i={scrollCache:o,name:"left",distance:c}),l<=n&&this.everMovedRight&&o.canScrollRight()&&(!i||i.distance>l)&&(i={scrollCache:o,name:"right",distance:l}))}return i},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map((function(e){return e===window?new Vs(!1):new Hs(e,!1)}))},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,i=this.scrollQuery;n=t*t&&i.handleDistanceSurpassed(e)}i.isDragging&&("scroll"!==e.origEvent.type&&(i.mirror.handleMove(e.pageX,e.pageY),i.autoScroller.handleMove(e.pageX,e.pageY)),i.emitter.trigger("dragmove",e))}},i.onPointerUp=function(e){i.isInteracting&&(i.isInteracting=!1,je(document.body),Ye(document.body),i.emitter.trigger("pointerup",e),i.isDragging&&(i.autoScroller.stop(),i.tryStopDrag(e)),i.delayTimeoutId&&(clearTimeout(i.delayTimeoutId),i.delayTimeoutId=null))};var r=i.pointer=new ys(t);return r.emitter.on("pointerdown",i.onPointerDown),r.emitter.on("pointermove",i.onPointerMove),r.emitter.on("pointerup",i.onPointerUp),n&&(r.selector=n),i.mirror=new zs,i.autoScroller=new ws,i}return n(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout((function(){t.delayTimeoutId=null,t.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(Xa),Ss=function(){function e(e){this.origRect=hr(e),this.scrollCaches=fr(e).map((function(e){return new Hs(e,!0)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e=0&&d=0&&Cr.layer)&&(p.componentId=a,p.context=o.context,p.rect.left+=c,p.rect.right+=c,p.rect.top+=l,p.rect.bottom+=l,r=p)}}}return r},e}();function ks(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&ui(e.dateSpan,t.dateSpan)}function $s(e,t){for(var n,r,a={},o=0,s=t.pluginHooks.datePointTransforms;oi.start)return{endDelta:a};return null}(o,e,i.subjectEl.classList.contains("fc-event-resizer-start"),s.range))),c&&(l=Mi(a,r.getCurrentData().eventUiBases,c,r),C.mutatedEvents=l,Ho(C,e.dateProfile,r)||(d=!0,c=null,l=null,C.mutatedEvents=null)),l?r.dispatch({type:"SET_EVENT_RESIZE",state:C}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),d?Ie():Re(),t||(c&&ks(o,e)&&(c=null),n.validMutation=c,n.mutatedRelevantEvents=l)},n.handleDragEnd=function(e){var t=n.component.context,r=n.eventRange.def,a=n.eventRange.instance,o=new xi(t,r,a),s=n.relevantEvents,c=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var l=new xi(t,c.defs[r.defId],a?c.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:c});var d={oldEvent:o,event:l,relatedEvents:Di(c,t,a),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:s})}};t.emitter.trigger("eventResize",i(i({},d),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||Et(0),endDelta:n.validMutation.endDelta||Et(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",d)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=t.component,a=n.dragging=new xs(t.el);a.pointer.selector=".fc-event-resizer",a.touchScrollAllowed=!1,a.autoScroller.isEnabled=r.context.options.dragScroll;var o=n.hitDragging=new Ds(n.dragging,Ga(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragstart",n.handleDragStart),o.emitter.on("hitupdate",n.handleHitUpdate),o.emitter.on("dragend",n.handleDragEnd),n}return n(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return ye(e.subjectEl,".fc-event")},t}(Ua),Ps=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,i=_e(e.origEvent);t.matchesCancel=!!ye(i,n),t.matchesEvent=!!ye(i,As.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,i=t.documentPointer,r=n.getCurrentData();if(!i.wasTouchScroll){if(r.dateSelection&&!t.isRecentPointerDateSelect){var a=n.options.unselectAuto;!a||a&&t.matchesCancel||n.calendarApi.unselect(e)}r.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new ys(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}(),Is={fixedMirrorParent:vn},Rs={dateClick:vn,eventDragStart:vn,eventDragStop:vn,eventDrop:vn,eventResizeStart:vn,eventResizeStop:vn,eventResize:vn,drop:vn,eventReceive:vn,eventLeave:vn},Ns=function(){function e(e,t){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,r){var a=n.hitDragging.dragging,o=null,s=null,c=!1,l={affectedEvents:{defs:{},instances:{}},mutatedEvents:{defs:{},instances:{}},isEvent:n.dragMeta.create};e&&(o=e.context,n.canDropElOnCalendar(r.subjectEl,o)&&(s=function(e,t,n){for(var r=i({},t.leftoverProps),a=0,o=n.pluginHooks.externalDefTransforms;a1,y=v.span.start===s;C+=v.levelCoord-d,d=v.levelCoord+v.thickness,M?(C+=v.thickness,y&&p.push({seg:oc(f,v.span.start,v.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:v.levelCoord,marginTop:0})):y&&(p.push({seg:oc(f,v.span.start,v.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:v.levelCoord,marginTop:C}),C=0)}r.push(l),a.push(p),o.push(C)}return{singleColPlacements:r,multiColPlacements:a,leftoverMargins:o}}(s.toRects(),e,o),f=h.singleColPlacements,p=h.multiColPlacements,m=h.leftoverMargins,g=[],v=[],M=0,y=l;M1,showWeekNumbers:t.showWeekNumbers,todayRange:f,dateProfile:n,cells:a,renderIntro:t.renderRowIntro,businessHourSegs:s[h],eventSelection:t.eventSelection,bgEventSegs:c[h].filter(dc),fgEventSegs:l[h],dateSelectionSegs:d[h],eventDrag:C[h],eventResize:u[h],dayMaxEvents:r,dayMaxEventRows:i,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new gr(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new gr(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,r=this.rowPositions,a=n.leftToIndex(e),o=r.topToIndex(t);if(null!=o&&null!=a){var s=this.props.cells[o][a];return{dateProfile:this.props.dateProfile,dateSpan:i({range:this.getCellRange(o,a),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(o,a),rect:{left:n.lefts[a],right:n.rights[a],top:r.tops[o],bottom:r.bottoms[o]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:tt(n,1)}},t}(Rr);function dc(e){return e.eventRange.def.allDay}var Cc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return n(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(zo),uc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new Cc,t.tableRef=Vr(),t}return n(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return Lr(lc,i({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(Rr),hc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=Ut(fc),t.headerRef=Vr(),t.tableRef=Vr(),t}return n(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,i=t.dateProfileGenerator,r=this.props,a=this.buildDayTableModel(r.dateProfile,i),o=n.dayHeaders&&Lr(vo,{ref:this.headerRef,dateProfile:r.dateProfile,dates:a.headerDates,datesRepDistinctDays:1===a.rowCnt}),s=function(t){return Lr(uc,{ref:e.tableRef,dateProfile:r.dateProfile,dayTableModel:a,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(o,s,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(o,s)},t}(Ws);function fc(e,t){var n=new yo(e.renderRange,t);return new bo(n,/year|month|week/.test(e.currentRangeUnit))}var pc=Nr({initialView:"dayGridMonth",views:{dayGrid:{component:hc,dateProfileGeneratorClass:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.buildRenderRange=function(t,n,i){var r,a=this.props.dateEnv,o=e.prototype.buildRenderRange.call(this,t,n,i),s=o.start,c=o.end;return/^(year|month)$/.test(n)&&(s=a.startOfWeek(s),(r=a.startOfWeek(c)).valueOf()!==c.valueOf()&&(c=et(r,1))),this.props.monthMode&&this.props.fixedWeekCount&&(c=et(c,6-Math.ceil(it(s,c)))),{start:s,end:c}},t}(na)},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?Kn(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(Qi),gc=cn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function vc(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return Lr($r.Consumer,null,(function(n){if(!e.isLabeled)return Lr("td",{className:t.join(" "),"data-time":e.isoTimeStr});var i=n.dateEnv,r=n.options,a=n.viewApi,o=null==r.slotLabelFormat?gc:Array.isArray(r.slotLabelFormat)?cn(r.slotLabelFormat[0]):cn(r.slotLabelFormat),s={level:0,time:e.time,date:i.toDate(e.date),view:a,text:i.format(e.date,o)};return Lr(Yr,{hookProps:s,classNames:r.slotLabelClassNames,content:r.slotLabelContent,defaultContent:Mc,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(function(n,i,r,a){return Lr("td",{ref:n,className:t.concat(i).join(" "),"data-time":e.isoTimeStr},Lr("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},Lr("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:r},a)))}))}))}function Mc(e){return e.text}var yc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return Lr("tr",{key:e.key},Lr(vc,i({},e)))}))},t}(Ar),bc=cn({week:"short"}),zc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new mc,t.headerElRef=Vr(),t.rootElRef=Vr(),t.scrollerElRef=Vr(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var r=t.context.options,a=t.props.dateProfile.renderRange,o=1===rt(a.start,a.end)?ar(t.context,a.start,"week"):{};return r.weekNumbers&&"day"===e?Lr(os,{date:a.start,defaultFormat:bc},(function(e,t,r,a){return Lr("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},Lr("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},Lr("a",i({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},o),a)))})):Lr("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},Lr("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,i=n.options,r=n.viewApi,a={text:i.allDayText,view:r};return Lr(Yr,{hookProps:a,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:Lc,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},(function(t,n,i,r){return Lr("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},Lr("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},Lr("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:i},r)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return n(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var i=this.context,r=this.props,a=[],o=Uo(i.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(a.push({type:"body",key:"all-day",chunk:{content:t}}),a.push({type:"body",key:"all-day-divider",outerContent:Lr("tr",{role:"presentation",className:"fc-scrollgrid-section"},Lr("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),Lr(Zr,{viewSpec:i.viewSpec,elRef:this.rootElRef},(function(e,t){return Lr("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Lr(Go,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[{width:"shrink"}],sections:a}))}))},t.prototype.renderHScrollLayout=function(e,t,n,i,r,a,o){var s=this,c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");var l=this.context,d=this.props,C=!d.forPrint&&Uo(l.options),u=!d.forPrint&&qo(l.options),h=[];e&&h.push({type:"header",key:"header",isSticky:C,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Lr("tr",{role:"presentation"},s.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return Lr("tr",{role:"presentation"},s.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),h.push({key:"all-day-divider",type:"body",outerContent:Lr("tr",{role:"presentation",className:"fc-scrollgrid-section"},Lr("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));var f=l.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(l.options.expandRows),chunks:[{key:"axis",content:function(e){return Lr("div",{className:"fc-timegrid-axis-chunk"},Lr("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,Lr("tbody",null,Lr(yc,{slatMetas:a}))),Lr("div",{className:"fc-timegrid-now-indicator-container"},Lr(mo,{unit:f?"minute":"day"},(function(e){var t=f&&o&&o.safeComputeTop(e);return"number"==typeof t?Lr(Jo,{isAxis:!0,date:e},(function(e,n,i,r){return Lr("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},r)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),u&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Wo},{key:"cols",content:Wo}]}),Lr(Zr,{viewSpec:l.viewSpec,elRef:this.rootElRef},(function(e,t){return Lr("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},Lr(c,{liquid:!d.isHeightAuto&&!d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:r}]}],sections:h}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}},t}(Rr);function Lc(e){return e.text}var Hc=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(qn(t.currentRange,e)){var n=ct(e),i=e.valueOf()-n.valueOf();if(i>=It(t.slotMinTime)&&i0,M=Boolean(c)&&c.span.end-c.span.start=0;t-=1)if(null!==(i=Rt(n=Et(Kc[t]),e))&&i>1)return n;return e}(i),l=[];It(o)0?e.renderSegList(s,a):e.renderEmptyMessage()))}))},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi,i={text:t.noEventsText,view:n};return Lr(Yr,{hookProps:i,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:ol,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(function(e,t,n,i){return Lr("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},Lr("div",{className:"fc-list-empty-cushion",ref:n},i))}))},t.prototype.renderSegList=function(e,t){var n=this.context,r=n.theme,a=n.options,o=this.state,s=o.timeHeaderId,c=o.eventHeaderId,l=o.dateHeaderIdRoot,d=function(e){var t,n,i=[];for(t=0;t{var e={"./node_modules/alpinejs/dist/module.esm.js":(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Vn});var i,r,a,o,s=!1,c=!1,l=[];function d(e){!function(e){l.includes(e)||l.push(e);c||s||(s=!0,queueMicrotask(u))}(e)}function C(e){let t=l.indexOf(e);-1!==t&&l.splice(t,1)}function u(){s=!1,c=!0;for(let e=0;e{(void 0===t||t.includes(n))&&(i.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var y=new MutationObserver(S),b=!1;function z(){y.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),b=!0}function L(){(H=H.concat(y.takeRecords())).length&&!V&&(V=!0,queueMicrotask((()=>{S(H),H.length=0,V=!1}))),y.disconnect(),b=!1}var H=[],V=!1;function _(e){if(!b)return e();L();let t=e();return z(),t}var w=!1,x=[];function S(e){if(w)return void(x=x.concat(e));let t=[],n=[],i=new Map,r=new Map;for(let a=0;a1===e.nodeType&&t.push(e))),e[a].removedNodes.forEach((e=>1===e.nodeType&&n.push(e)))),"attributes"===e[a].type)){let t=e[a].target,n=e[a].attributeName,o=e[a].oldValue,s=()=>{i.has(t)||i.set(t,[]),i.get(t).push({name:n,value:t.getAttribute(n)})},c=()=>{r.has(t)||r.set(t,[]),r.get(t).push(n)};t.hasAttribute(n)&&null===o?s():t.hasAttribute(n)?(c(),s()):c()}r.forEach(((e,t)=>{M(t,e)})),i.forEach(((e,t)=>{p.forEach((n=>n(t,e)))}));for(let e of n)if(!t.includes(e)&&(m.forEach((t=>t(e))),e._x_cleanups))for(;e._x_cleanups.length;)e._x_cleanups.pop()();t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,g.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,i=null,r=null}function D(e){return T(E(e))}function k(e,t,n){return e._x_dataStack=[t,...E(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function $(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach((([e,t])=>{n[e]=t}))}function E(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?E(e.host):e.parentNode?E(e.parentNode):[]}function T(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:(t,n)=>e.some((e=>e.hasOwnProperty(n))),get:(n,i)=>(e.find((e=>{if(e.hasOwnProperty(i)){let n=Object.getOwnPropertyDescriptor(e,i);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let r=n.get,a=n.set,o=n;r=r&&r.bind(t),a=a&&a.bind(t),r&&(r._x_alreadyBound=!0),a&&(a._x_alreadyBound=!0),Object.defineProperty(e,i,{...o,get:r,set:a})}return!0}return!1}))||{})[i],set:(t,n,i)=>{let r=e.find((e=>e.hasOwnProperty(n)));return r?r[n]=i:e[e.length-1][n]=i,!0}});return t}function A(e){let t=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([r,{value:a,enumerable:o}])=>{if(!1===o||void 0===a)return;let s=""===i?r:`${i}.${r}`;var c;"object"==typeof a&&null!==a&&a._x_interceptor?n[r]=a.initialize(e,s,r):"object"!=typeof(c=a)||Array.isArray(c)||null===c||a===n||a instanceof Element||t(a,s)}))};return t(e)}function O(e,t=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,i){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>P(t,n,e)),n,i)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(i,r,a)=>{let o=e.initialize(i,r,a);return n.initialValue=o,t(i,r,a)}}else n.initialValue=e;return n}}function P(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),P(e[t[0]],t.slice(1),n)}e[t[0]]=n}var I={};function R(e,t){I[e]=t}function N(e,t){return Object.entries(I).forEach((([n,i])=>{Object.defineProperty(e,`$${n}`,{get(){let[e,n]=re(t);return e={interceptor:O,...e},v(t,n),i(t,e)},enumerable:!1})})),e}function j(e,t,n,...i){try{return n(...i)}catch(n){F(n,e,t)}}function F(e,t,n){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}var Y=!0;function B(e,t,n={}){let i;return W(e,t)((e=>i=e),n),i}function W(...e){return U(...e)}var U=q;function q(e,t){let n={};N(n,e);let i=[n,...E(e)];if("function"==typeof t)return function(e,t){return(n=(()=>{}),{scope:i={},params:r=[]}={})=>{K(n,t.apply(T([i,...e]),r))}}(i,t);let r=function(e,t,n){let i=function(e,t){if(G[e])return G[e];let n=Object.getPrototypeOf((async function(){})).constructor,i=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e;let r=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`)}catch(n){return F(n,t,e),Promise.resolve()}})();return G[e]=r,r}(t,n);return(r=(()=>{}),{scope:a={},params:o=[]}={})=>{i.result=void 0,i.finished=!1;let s=T([a,...e]);if("function"==typeof i){let e=i(i,s).catch((e=>F(e,n,t)));i.finished?(K(r,i.result,s,o,n),i.result=void 0):e.then((e=>{K(r,e,s,o,n)})).catch((e=>F(e,n,t))).finally((()=>i.result=void 0))}}}(i,t,e);return j.bind(null,e,t,r)}var G={};function K(e,t,n,i,r){if(Y&&"function"==typeof t){let a=t.apply(n,i);a instanceof Promise?a.then((t=>K(e,t,n,i))).catch((e=>F(e,r,t))):e(a)}else e(t)}var X="x-";function Z(e=""){return X+e}var J={};function Q(e,t){J[e]=t}function ee(e,t,n){let i={};return Array.from(t).map(oe(((e,t)=>i[e]=t))).filter(le).map(function(e,t){return({name:n,value:i})=>{let r=n.match(de()),a=n.match(/:([a-zA-Z0-9\-:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:r?r[1]:null,value:a?a[1]:null,modifiers:o.map((e=>e.replace(".",""))),expression:i,original:s}}}(i,n)).sort(he).map((t=>function(e,t){let n=()=>{},i=J[t.type]||n,[r,a]=re(e);!function(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}(e,t.original,a);let o=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,t,r),i=i.bind(i,e,t,r),te?ne.get(ie).push(i):i())};return o.runCleanups=a,o}(e,t)))}var te=!1,ne=new Map,ie=Symbol();function re(e){let t=[],[n,i]=function(e){let t=()=>{};return[n=>{let i=r(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(i),t=()=>{void 0!==i&&(e._x_effects.delete(i),a(i))},i},()=>{t()}]}(e);t.push(i);return[{Alpine:Ke,effect:n,cleanup:e=>t.push(e),evaluateLater:W.bind(W,e),evaluate:B.bind(B,e)},()=>t.forEach((e=>e()))]}var ae=(e,t)=>({name:n,value:i})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:i});function oe(e=(()=>{})){return({name:t,value:n})=>{let{name:i,value:r}=se.reduce(((e,t)=>t(e)),{name:t,value:n});return i!==t&&e(i,t),{name:i,value:r}}}var se=[];function ce(e){se.push(e)}function le({name:e}){return de().test(e)}var de=()=>new RegExp(`^${X}([^:^.]+)\\b`);var Ce="DEFAULT",ue=["ignore","ref","data","id","bind","init","for","mask","model","modelable","transition","show","if",Ce,"teleport","element"];function he(e,t){let n=-1===ue.indexOf(e.type)?Ce:e.type,i=-1===ue.indexOf(t.type)?Ce:t.type;return ue.indexOf(n)-ue.indexOf(i)}function fe(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var pe=[],me=!1;function ge(e=(()=>{})){return queueMicrotask((()=>{me||setTimeout((()=>{ve()}))})),new Promise((t=>{pe.push((()=>{e(),t()}))}))}function ve(){for(me=!1;pe.length;)pe.shift()()}function Me(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>Me(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let i=e.firstElementChild;for(;i;)Me(i,t),i=i.nextElementSibling}function ye(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var be=[],ze=[];function Le(){return be.map((e=>e()))}function He(){return be.concat(ze).map((e=>e()))}function Ve(e){be.push(e)}function _e(e){ze.push(e)}function we(e,t=!1){return xe(e,(e=>{if((t?He():Le()).some((t=>e.matches(t))))return!0}))}function xe(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return xe(e.parentElement,t)}}function Se(e,t=Me){!function(e){te=!0;let t=Symbol();ie=t,ne.set(t,[]);let n=()=>{for(;ne.get(t).length;)ne.get(t).shift()();ne.delete(t)};e(n),te=!1,n()}((()=>{t(e,((e,t)=>{ee(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()}))}))}function De(e,t){return Array.isArray(t)?ke(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),a=[],o=[];return r.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),o.push(t))})),i.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),a.push(t))})),()=>{o.forEach((t=>e.classList.add(t))),a.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?De(e,t()):ke(e,t)}function ke(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function $e(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,i])=>{n[t]=e.style[t],t.startsWith("--")||(t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e.style.setProperty(t,i)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{$e(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Ee(e,t=(()=>{})){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Te(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),i=(()=>{})){Oe(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=(()=>{}),i=(()=>{})){Oe(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}function Ae(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Ae(t)}function Oe(e,t,{during:n,start:i,end:r}={},a=(()=>{}),o=(()=>{})){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(i).length&&0===Object.keys(r).length)return a(),void o();let s,c,l;!function(e,t){let n,i,r,a=Ee((()=>{_((()=>{n=!0,i||t.before(),r||(t.end(),ve()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Ee((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()})),finish:a},_((()=>{t.start(),t.during()})),me=!0,requestAnimationFrame((()=>{if(n)return;let a=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),o=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===a&&(a=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),_((()=>{t.before()})),i=!0,requestAnimationFrame((()=>{n||(_((()=>{t.end()})),ve(),setTimeout(e._x_transitioning.finish,a+o),r=!0)}))}))}(e,{start(){s=t(e,i)},during(){c=t(e,n)},before:a,end(){s(),l=t(e,r)},after:o,cleanup(){c(),l()}})}function Pe(e,t,n){if(-1===e.indexOf(t))return n;const i=e[e.indexOf(t)+1];if(!i)return n;if("scale"===t&&isNaN(i))return n;if("duration"===t){let e=i.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[i,e[e.indexOf(t)+2]].join(" "):i}Q("transition",((e,{value:t,modifiers:n,expression:i},{evaluate:r})=>{"function"==typeof i&&(i=r(i)),i?function(e,t,n){Te(e,De,""),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}(e,i,t):function(e,t,n){Te(e,$e);let i=!t.includes("in")&&!t.includes("out")&&!n,r=i||t.includes("in")||["enter"].includes(n),a=i||t.includes("out")||["leave"].includes(n);t.includes("in")&&!i&&(t=t.filter(((e,n)=>nn>t.indexOf("out"))));let o=!t.includes("opacity")&&!t.includes("scale"),s=o||t.includes("opacity"),c=o||t.includes("scale"),l=s?0:1,d=c?Pe(t,"scale",95)/100:1,C=Pe(t,"delay",0),u=Pe(t,"origin","center"),h="opacity, transform",f=Pe(t,"duration",150)/1e3,p=Pe(t,"duration",75)/1e3,m="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(e._x_transition.enter.during={transformOrigin:u,transitionDelay:C,transitionProperty:h,transitionDuration:`${f}s`,transitionTimingFunction:m},e._x_transition.enter.start={opacity:l,transform:`scale(${d})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"});a&&(e._x_transition.leave.during={transformOrigin:u,transitionDelay:C,transitionProperty:h,transitionDuration:`${p}s`,transitionTimingFunction:m},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:l,transform:`scale(${d})`})}(e,n,t)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,i){let r=()=>{"visible"===document.visibilityState?requestAnimationFrame(n):setTimeout(n)};t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):r():e._x_transition?e._x_transition.in(n):r():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(i))),e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(i),queueMicrotask((()=>{let t=Ae(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):queueMicrotask((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var Ie=!1;function Re(e,t=(()=>{})){return(...n)=>Ie?t(...n):e(...n)}function Ne(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=i({})),e._x_bindings[t]=n,t=r.includes("camel")?t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):t){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked=je(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Number.isInteger(t)||Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>je(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=t}}(e,n);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles();e._x_undoAddedStyles=$e(e,t)}(e,n);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses();e._x_undoAddedClasses=De(e,t)}(e,n);break;default:!function(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(Fe(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}(e,t,n)}}function je(e,t){return e==t}function Fe(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Ye(e,t){var n;return function(){var i=this,r=arguments,a=function(){n=null,e.apply(i,r)};clearTimeout(n),n=setTimeout(a,t)}}function Be(e,t){let n;return function(){let i=this,r=arguments;n||(e.apply(i,r),n=!0,setTimeout((()=>n=!1),t))}}var We={},Ue=!1;var qe={};var Ge={};var Ke={get reactive(){return i},get release(){return a},get effect(){return r},get raw(){return o},version:"3.10.0",flushAndStopDeferringMutations:function(){w=!1,S(x),x=[]},dontAutoEvaluateFunctions:function(e){let t=Y;Y=!1,e(),Y=t},disableEffectScheduling:function(e){h=!1,e(),h=!0},setReactivityEngine:function(e){i=e.reactive,a=e.release,r=t=>e.effect(t,{scheduler:e=>{h?d(e):e()}}),o=e.raw},closestDataStack:E,skipDuringClone:Re,addRootSelector:Ve,addInitSelector:_e,addScopeToNode:k,deferMutations:function(){w=!0},mapAttributes:ce,evaluateLater:W,setEvaluator:function(e){U=e},mergeProxies:T,findClosest:xe,closestRoot:we,interceptor:O,transition:Oe,setStyles:$e,mutateDom:_,directive:Q,throttle:Be,debounce:Ye,evaluate:B,initTree:Se,nextTick:ge,prefixed:Z,prefix:function(e){X=e},plugin:function(e){e(Ke)},magic:R,store:function(e,t){if(Ue||(We=i(We),Ue=!0),void 0===t)return We[e];We[e]=t,"object"==typeof t&&null!==t&&t.hasOwnProperty("init")&&"function"==typeof t.init&&We[e].init(),A(We[e])},start:function(){var e;document.body||ye("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `