madbob/GASdottoNG

View on GitHub
code/public/js/gasdotto.js

Summary

Maintainability
A
0 mins
Test Coverage
/*! For license information please see gasdotto.js.LICENSE.txt */
(()=>{var t,e={281:t=>{var e;self,e=()=>(()=>{"use strict";var t={362:(t,e,i)=>{function n(t){return t.split("-")[0]}function o(t){return t.split("-")[1]}function s(t){return["top","bottom"].includes(n(t))?"x":"y"}function r(t){return"y"===t?"height":"width"}function a(t,e,i){let{reference:a,floating:l}=t;const c=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2,d=s(e),h=r(d),p=a[h]/2-l[h]/2,f="x"===d;let m;switch(n(e)){case"top":m={x:c,y:a.y-l.height};break;case"bottom":m={x:c,y:a.y+a.height};break;case"right":m={x:a.x+a.width,y:u};break;case"left":m={x:a.x-l.width,y:u};break;default:m={x:a.x,y:a.y}}switch(o(e)){case"start":m[d]-=p*(i&&f?-1:1);break;case"end":m[d]+=p*(i&&f?-1:1)}return m}function l(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function c(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function u(t,e){var i;void 0===e&&(e={});const{x:n,y:o,platform:s,rects:r,elements:a,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=e,g=l(m),v=a[f?"floating"===p?"reference":"floating":p],y=c(await s.getClippingRect({element:null==(i=await(null==s.isElement?void 0:s.isElement(v)))||i?v:v.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:h,strategy:u})),b=c(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===p?{...r.floating,x:n,y:o}:r.reference,offsetParent:await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),strategy:u}):r[p]);return{top:y.top-b.top+g.top,bottom:b.bottom-y.bottom+g.bottom,left:y.left-b.left+g.left,right:b.right-y.right+g.right}}i.r(e),i.d(e,{arrow:()=>f,autoPlacement:()=>x,autoUpdate:()=>ct,computePosition:()=>ut,detectOverflow:()=>u,flip:()=>k,getOverflowAncestors:()=>st,hide:()=>A,inline:()=>O,limitShift:()=>$,offset:()=>D,platform:()=>lt,shift:()=>S,size:()=>P});const d=Math.min,h=Math.max;function p(t,e,i){return h(t,d(e,i))}const f=t=>({name:"arrow",options:t,async fn(e){const{element:i,padding:n=0}=null!=t?t:{},{x:a,y:c,placement:u,rects:d,platform:h}=e;if(null==i)return{};const f=l(n),m={x:a,y:c},g=s(u),v=o(u),y=r(g),b=await h.getDimensions(i),_="y"===g?"top":"left",w="y"===g?"bottom":"right",x=d.reference[y]+d.reference[g]-m[g]-d.floating[y],k=m[g]-d.reference[g],C=await(null==h.getOffsetParent?void 0:h.getOffsetParent(i));let T=C?"y"===g?C.clientHeight||0:C.clientWidth||0:0;0===T&&(T=d.floating[y]);const A=x/2-k/2,D=f[_],E=T-b[y]-f[w],S=T/2-b[y]/2+A,$=p(D,S,E),P=("start"===v?f[_]:f[w])>0&&S!==$&&d.reference[y]<=d.floating[y];return{[g]:m[g]-(P?S<D?D-S:E-S:0),data:{[g]:$,centerOffset:S-$}}}}),m={left:"right",right:"left",bottom:"top",top:"bottom"};function g(t){return t.replace(/left|right|bottom|top/g,(t=>m[t]))}function v(t,e,i){void 0===i&&(i=!1);const n=o(t),a=s(t),l=r(a);let c="x"===a?n===(i?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[l]>e.floating[l]&&(c=g(c)),{main:c,cross:g(c)}}const y={start:"end",end:"start"};function b(t){return t.replace(/start|end/g,(t=>y[t]))}const _=["top","right","bottom","left"],w=_.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]),x=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,s,r,a,l;const{x:c,y:d,rects:h,middlewareData:p,placement:f,platform:m,elements:g}=e,{alignment:y=null,allowedPlacements:_=w,autoAlignment:x=!0,...k}=t,C=function(t,e,i){return(t?[...i.filter((e=>o(e)===t)),...i.filter((e=>o(e)!==t))]:i.filter((t=>n(t)===t))).filter((i=>!t||o(i)===t||!!e&&b(i)!==i))}(y,x,_),T=await u(e,k),A=null!=(i=null==(s=p.autoPlacement)?void 0:s.index)?i:0,D=C[A];if(null==D)return{};const{main:E,cross:S}=v(D,h,await(null==m.isRTL?void 0:m.isRTL(g.floating)));if(f!==D)return{x:c,y:d,reset:{placement:C[0]}};const $=[T[n(D)],T[E],T[S]],P=[...null!=(r=null==(a=p.autoPlacement)?void 0:a.overflows)?r:[],{placement:D,overflows:$}],O=C[A+1];if(O)return{data:{index:A+1,overflows:P},reset:{placement:O}};const L=P.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),j=null==(l=L.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:l.placement,I=null!=j?j:L[0].placement;return I!==f?{data:{index:A+1,overflows:P},reset:{placement:I}}:{}}}},k=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i;const{placement:o,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",flipAlignment:m=!0,...y}=t,_=n(o),w=p||(_!==a&&m?function(t){const e=g(t);return[b(t),e,b(e)]}(a):[g(a)]),x=[a,...w],k=await u(e,y),C=[];let T=(null==(i=s.flip)?void 0:i.overflows)||[];if(d&&C.push(k[_]),h){const{main:t,cross:e}=v(o,r,await(null==l.isRTL?void 0:l.isRTL(c.floating)));C.push(k[t],k[e])}if(T=[...T,{placement:o,overflows:C}],!C.every((t=>t<=0))){var A,D;const t=(null!=(A=null==(D=s.flip)?void 0:D.index)?A:0)+1,e=x[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let i="bottom";switch(f){case"bestFit":{var E;const t=null==(E=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0].placement;t&&(i=t);break}case"initialPlacement":i=a}if(o!==i)return{reset:{placement:i}}}return{}}}};function C(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function T(t){return _.some((e=>t[e]>=0))}const A=function(t){let{strategy:e="referenceHidden",...i}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:n}=t;switch(e){case"referenceHidden":{const e=C(await u(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:T(e)}}}case"escaped":{const e=C(await u(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:T(e)}}}default:return{}}}}},D=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:i,y:r}=e,a=await async function(t,e){const{placement:i,platform:r,elements:a}=t,l=await(null==r.isRTL?void 0:r.isRTL(a.floating)),c=n(i),u=o(i),d="x"===s(i),h=["left","top"].includes(c)?-1:1,p=l&&d?-1:1,f="function"==typeof e?e(t):e;let{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return u&&"number"==typeof v&&(g="end"===u?-1*v:v),d?{x:g*p,y:m*h}:{x:m*h,y:g*p}}(e,t);return{x:i+a.x,y:r+a.y,data:a}}}};function E(t){return"x"===t?"y":"x"}const S=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...d}=t,h={x:i,y:o},f=await u(e,d),m=s(n(r)),g=E(m);let v=h[m],y=h[g];if(a){const t="y"===m?"bottom":"right";v=p(v+f["y"===m?"top":"left"],v,v-f[t])}if(l){const t="y"===g?"bottom":"right";y=p(y+f["y"===g?"top":"left"],y,y-f[t])}const b=c.fn({...e,[m]:v,[g]:y});return{...b,data:{x:b.x-i,y:b.y-o}}}}},$=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:i,y:o,placement:r,rects:a,middlewareData:l}=e,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=t,h={x:i,y:o},p=s(r),f=E(p);let m=h[p],g=h[f];const v="function"==typeof c?c(e):c,y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+y.mainAxis,i=a.reference[p]+a.reference[t]-y.mainAxis;m<e?m=e:m>i&&(m=i)}if(d){var b,_,w,x;const t="y"===p?"width":"height",e=["top","left"].includes(n(r)),i=a.reference[f]-a.floating[t]+(e&&null!=(b=null==(_=l.offset)?void 0:_[f])?b:0)+(e?0:y.crossAxis),o=a.reference[f]+a.reference[t]+(e?0:null!=(w=null==(x=l.offset)?void 0:x[f])?w:0)-(e?y.crossAxis:0);g<i?g=i:g>o&&(g=o)}return{[p]:m,[f]:g}}}},P=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:s,platform:r,elements:a}=e,{apply:l=(()=>{}),...c}=t,d=await u(e,c),p=n(i),f=o(i);let m,g;"top"===p||"bottom"===p?(m=p,g=f===(await(null==r.isRTL?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(g=p,m="end"===f?"top":"bottom");const v=h(d.left,0),y=h(d.right,0),b=h(d.top,0),_=h(d.bottom,0),w={availableHeight:s.floating.height-(["left","right"].includes(i)?2*(0!==b||0!==_?b+_:h(d.top,d.bottom)):d[m]),availableWidth:s.floating.width-(["top","bottom"].includes(i)?2*(0!==v||0!==y?v+y:h(d.left,d.right)):d[g])};await l({...e,...w});const x=await r.getDimensions(a.floating);return s.floating.width!==x.width||s.floating.height!==x.height?{reset:{rects:!0}}:{}}}},O=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){var i;const{placement:o,elements:r,rects:a,platform:u,strategy:p}=e,{padding:f=2,x:m,y:g}=t,v=c(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({rect:a.reference,offsetParent:await(null==u.getOffsetParent?void 0:u.getOffsetParent(r.floating)),strategy:p}):a.reference),y=null!=(i=await(null==u.getClientRects?void 0:u.getClientRects(r.reference)))?i:[],b=l(f),_=await u.getElementRects({reference:{getBoundingClientRect:function(){var t;if(2===y.length&&y[0].left>y[1].right&&null!=m&&null!=g)return null!=(t=y.find((t=>m>t.left-b.left&&m<t.right+b.right&&g>t.top-b.top&&g<t.bottom+b.bottom)))?t:v;if(y.length>=2){if("x"===s(o)){const t=y[0],e=y[y.length-1],i="top"===n(o),s=t.top,r=e.bottom,a=i?t.left:e.left,l=i?t.right:e.right;return{top:s,bottom:r,left:a,right:l,width:l-a,height:r-s,x:a,y:s}}const t="left"===n(o),e=h(...y.map((t=>t.right))),i=d(...y.map((t=>t.left))),r=y.filter((n=>t?n.left===i:n.right===e)),a=r[0].top,l=r[r.length-1].bottom;return{top:a,bottom:l,left:i,right:e,width:e-i,height:l-a,x:i,y:a}}return v}},floating:r.floating,strategy:p});return a.reference.x!==_.reference.x||a.reference.y!==_.reference.y||a.reference.width!==_.reference.width||a.reference.height!==_.reference.height?{reset:{rects:_}}:{}}}};function L(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function j(t){if(null==t)return window;if(!L(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function I(t){return j(t).getComputedStyle(t)}function M(t){return L(t)?"":t?(t.nodeName||"").toLowerCase():""}function N(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function H(t){return t instanceof j(t).HTMLElement}function F(t){return t instanceof j(t).Element}function R(t){return"undefined"!=typeof ShadowRoot&&(t instanceof j(t).ShadowRoot||t instanceof ShadowRoot)}function B(t){const{overflow:e,overflowX:i,overflowY:n,display:o}=I(t);return/auto|scroll|overlay|hidden/.test(e+n+i)&&!["inline","contents"].includes(o)}function q(t){return["table","td","th"].includes(M(t))}function U(t){const e=/firefox/i.test(N()),i=I(t);return"none"!==i.transform||"none"!==i.perspective||e&&"filter"===i.willChange||e&&!!i.filter&&"none"!==i.filter||["transform","perspective"].some((t=>i.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=i.contain;return null!=e&&e.includes(t)}))}function W(){return!/^((?!chrome|android).)*safari/i.test(N())}function z(t){return["html","body","#document"].includes(M(t))}const V=Math.min,Y=Math.max,X=Math.round;function G(t,e,i){var n,o,s,r;void 0===e&&(e=!1),void 0===i&&(i=!1);const a=t.getBoundingClientRect();let l=1,c=1;e&&H(t)&&(l=t.offsetWidth>0&&X(a.width)/t.offsetWidth||1,c=t.offsetHeight>0&&X(a.height)/t.offsetHeight||1);const u=F(t)?j(t):window,d=!W()&&i,h=(a.left+(d&&null!=(n=null==(o=u.visualViewport)?void 0:o.offsetLeft)?n:0))/l,p=(a.top+(d&&null!=(s=null==(r=u.visualViewport)?void 0:r.offsetTop)?s:0))/c,f=a.width/l,m=a.height/c;return{width:f,height:m,top:p,right:h+f,bottom:p+m,left:h,x:h,y:p}}function Q(t){return(e=t,(e instanceof j(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function K(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function J(t){return G(Q(t)).left+K(t).scrollLeft}function Z(t,e,i){const n=H(e),o=Q(e),s=G(t,n&&function(t){const e=G(t);return X(e.width)!==t.offsetWidth||X(e.height)!==t.offsetHeight}(e),"fixed"===i);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&"fixed"!==i)if(("body"!==M(e)||B(o))&&(r=K(e)),H(e)){const t=G(e,!0);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else o&&(a.x=J(o));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}function tt(t){return"html"===M(t)?t:t.assignedSlot||t.parentNode||(R(t)?t.host:null)||Q(t)}function et(t){return H(t)&&"fixed"!==I(t).position?t.offsetParent:null}function it(t){const e=j(t);let i=et(t);for(;i&&q(i)&&"static"===I(i).position;)i=et(i);return i&&("html"===M(i)||"body"===M(i)&&"static"===I(i).position&&!U(i))?e:i||function(t){let e=tt(t);for(R(e)&&(e=e.host);H(e)&&!z(e);){if(U(e))return e;{const t=e.parentNode;e=R(t)?t.host:t}}return null}(t)||e}function nt(t){if(H(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=G(t);return{width:e.width,height:e.height}}function ot(t){const e=tt(t);return z(e)?t.ownerDocument.body:H(e)&&B(e)?e:ot(e)}function st(t,e){var i;void 0===e&&(e=[]);const n=ot(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),s=j(n),r=o?[s].concat(s.visualViewport||[],B(n)?n:[]):n,a=e.concat(r);return o?a:a.concat(st(r))}function rt(t,e,i){return"viewport"===e?c(function(t,e){const i=j(t),n=Q(t),o=i.visualViewport;let s=n.clientWidth,r=n.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;const t=W();(t||!t&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a,y:l}}(t,i)):F(e)?function(t,e){const i=G(t,!1,"fixed"===e),n=i.top+t.clientTop,o=i.left+t.clientLeft;return{top:n,left:o,x:o,y:n,right:o+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e,i):c(function(t){var e;const i=Q(t),n=K(t),o=null==(e=t.ownerDocument)?void 0:e.body,s=Y(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Y(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-n.scrollLeft+J(t);const l=-n.scrollTop;return"rtl"===I(o||i).direction&&(a+=Y(i.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}(Q(t)))}function at(t){const e=st(t),i=function(t,e){let i=t;for(;i&&!z(i)&&!e.includes(i)&&(!F(i)||!["absolute","fixed"].includes(I(i).position));){const t=tt(i);i=R(t)?t.host:t}return i}(t,e);let n=null;if(i&&H(i)){const t=it(i);B(i)?n=i:H(t)&&(n=t)}return F(n)?e.filter((t=>n&&F(t)&&function(t,e){const i=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(i&&R(i)){let i=e;do{if(i&&t===i)return!0;i=i.parentNode||i.host}while(i)}return!1}(t,n)&&"body"!==M(t))):[]}const lt={getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:n,strategy:o}=t;const s=[..."clippingAncestors"===i?at(e):[].concat(i),n],r=s[0],a=s.reduce(((t,i)=>{const n=rt(e,i,o);return t.top=Y(n.top,t.top),t.right=V(n.right,t.right),t.bottom=V(n.bottom,t.bottom),t.left=Y(n.left,t.left),t}),rt(e,r,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:n}=t;const o=H(i),s=Q(i);if(i===s)return e;let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((o||!o&&"fixed"!==n)&&(("body"!==M(i)||B(s))&&(r=K(i)),H(i))){const t=G(i,!0);a.x=t.x+i.clientLeft,a.y=t.y+i.clientTop}return{...e,x:e.x-r.scrollLeft+a.x,y:e.y-r.scrollTop+a.y}},isElement:F,getDimensions:nt,getOffsetParent:it,getDocumentElement:Q,getElementRects:t=>{let{reference:e,floating:i,strategy:n}=t;return{reference:Z(e,it(i),n),floating:{...nt(i),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===I(t).direction};function ct(t,e,i,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=!0,animationFrame:a=!1}=n,l=o&&!a,c=l||s?[...F(t)?st(t):[],...st(e)]:[];c.forEach((t=>{l&&t.addEventListener("scroll",i,{passive:!0}),s&&t.addEventListener("resize",i)}));let u,d=null;if(r){let n=!0;d=new ResizeObserver((()=>{n||i(),n=!1})),F(t)&&!a&&d.observe(t),d.observe(e)}let h=a?G(t):null;return a&&function e(){const n=G(t);!h||n.x===h.x&&n.y===h.y&&n.width===h.width&&n.height===h.height||i(),h=n,u=requestAnimationFrame(e)}(),i(),()=>{var t;c.forEach((t=>{l&&t.removeEventListener("scroll",i),s&&t.removeEventListener("resize",i)})),null==(t=d)||t.disconnect(),d=null,a&&cancelAnimationFrame(u)}}const ut=(t,e,i)=>(async(t,e,i)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:r}=i,l=await(null==r.isRTL?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:d}=a(c,n,l),h=n,p={},f=0;for(let i=0;i<s.length;i++){const{name:m,fn:g}=s[i],{x:v,y,data:b,reset:_}=await g({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:p,rects:c,platform:r,elements:{reference:t,floating:e}});u=null!=v?v:u,d=null!=y?y:d,p={...p,[m]:{...p[m],...b}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(h=_.placement),_.rects&&(c=!0===_.rects?await r.getElementRects({reference:t,floating:e,strategy:o}):_.rects),({x:u,y:d}=a(c,h,l))),i=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}})(t,e,{platform:lt,...i})},131:(t,e,i)=>{i.p},797:function(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(e,i);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,o)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&n(e,t,i);return o(e,t),e},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TourGuideClient=void 0;const a=i(693),l=r(i(121)),c=i(319),u=i(166),d=i(737),h=s(i(483)),p=r(i(971)),f=r(i(330)),m=r(i(340)),g=r(i(544)),v=s(i(612)),y=s(i(283)),b=r(i(717));e.TourGuideClient=class{constructor(t){this.group="",this.isVisible=!1,this.activeStep=0,this.tourSteps=[],this.options=b.default,this.isFinished=y.getIsFinished,this.createTourGuideBackdrop=c.createTourGuideBackdrop,this.computeBackdropAttributes=c.computeBackdropAttributes,this.createTourGuideDialog=a.createTourGuideDialog,this.start=f.default,this.visitStep=h.default,this.addSteps=p.default,this.nextStep=h.handleVisitNextStep,this.prevStep=h.handleVisitPrevStep,this.exit=g.default,this.refresh=v.default,this.refreshDialog=v.handleRefreshDialog,this.finishTour=y.default,this.updatePositions=l.default,this.deleteFinishedTour=y.delFinishedTour,this.setOptions=m.default,this.initListeners=d.handleInitListeners,this.destroyListeners=d.handleDestroyListeners,this._trackedEvents={nextBtnClickEvent:{initialized:!1,fn:this.nextStep.bind(this)},prevBtnClickEvent:{initialized:!1,fn:this.prevStep.bind(this)},closeBtnClickEvent:{initialized:!1,fn:this.exit.bind(this)},keyPressEvent:{initialized:!1,fn:d.keyPressHandler.bind(this)},outsideClickEvent:{initialized:!1,fn:d.clickOutsideHandler.bind(this)}},this.onFinish=u.handleOnFinish,this.onBeforeExit=u.handleOnBeforeExit,this.onAfterExit=u.handleOnAfterExit,this.onBeforeStepChange=u.handleOnBeforeStepChange,this.onAfterStepChange=u.handleOnAfterStepChange,this.dialog=document.createElement("div"),this.backdrop=document.createElement("div"),this.options=b.default,t&&Object.assign(this.options,t),this.createTourGuideDialog().catch((t=>{this.options.debug&&console.warn(t)})),this.createTourGuideBackdrop()}}},319:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.computeBackdropPosition=e.computeBackdropAttributes=e.createTourGuideBackdrop=void 0,e.createTourGuideBackdrop=function(){this.backdrop=document.createElement("div"),this.computeBackdropAttributes(),document.body.append(this.backdrop)},e.computeBackdropAttributes=function(){this.options&&(this.backdrop.className="tg-backdrop",this.backdrop.style.boxShadow=this.options.backdropColor+" 0 0 1px 2px, "+this.options.backdropColor+" 0 0 0 1000vh",this.options.backdropClass&&this.backdrop.classList.add(this.options.backdropClass),this.options.dialogAnimate&&this.backdrop.classList.add("tg-backdrop-animate"))},e.computeBackdropPosition=function(t){return new Promise((async(e,i)=>{if(void 0===t.options.targetPadding)return i("Options failed to initialize");if(!t.backdrop)return i("No backdrop element initialized");const n=t.tourSteps[t.activeStep],o=n.target,s=o.getBoundingClientRect(),r=s.width+t.options.targetPadding>document.documentElement.clientWidth;if(o===document.body){const e=0;s.width=e,s.height=e,t.backdrop.style.position="fixed",t.backdrop.style.top=window.innerHeight/2.5+"px",t.backdrop.style.left=window.innerWidth/2+"px"}else n.fixed?(t.backdrop.style.position="fixed",t.backdrop.style.top=s.top-t.options.targetPadding/2+"px",t.backdrop.style.left=(r?s.x:s.x-t.options.targetPadding/2)+"px"):(t.backdrop.style.position="absolute",t.backdrop.style.top=window.scrollY+s.top-t.options.targetPadding/2+"px",t.backdrop.style.left=(r?s.x:s.x-t.options.targetPadding/2)+"px");t.backdrop.style.width=(r?s.width:s.width+t.options.targetPadding)+"px",t.backdrop.style.height=(s.height?s.height+t.options.targetPadding:s.height)+"px",e(!0)}))}},166:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.handleOnAfterStepChange=e.handleOnBeforeStepChange=e.handleOnAfterExit=e.handleOnBeforeExit=e.handleOnFinish=void 0,e.handleOnFinish=function(t){if("function"!=typeof t)throw new Error("Provided callback for onFinish was not a function");this._globalFinishCallback=t},e.handleOnBeforeExit=function(t){if("function"!=typeof t)throw new Error("Provided callback for onBeforeExit was not a function");this._globalBeforeExitCallback=t},e.handleOnAfterExit=function(t){if("function"!=typeof t)throw new Error("Provided callback for onAfterExit was not a function");this._globalAfterExitCallback=t},e.handleOnBeforeStepChange=function(t){if("function"!=typeof t)throw new Error("Provided callback for onBeforeStepChange was not a function");this._globalBeforeChangeCallback=t},e.handleOnAfterStepChange=function(t){if("function"!=typeof t)throw new Error("Provided callback for onAfterStepChange was not a function");this._globalAfterChangeCallback=t}},693:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.computeDialogPosition=e.updateDialogHtml=e.renderDialogHtml=e.createTourGuideDialog=void 0;const n=i(500),o=i(362);async function s(t){t.options.dialogClass&&t.dialog.classList.add(t.options.dialogClass),t.options.dialogZ&&(t.dialog.style.zIndex=String(t.options.dialogZ)),t.dialog.style.width=t.options.dialogWidth?t.options.dialogWidth+"px":"auto",t.options.dialogMaxWidth&&(t.dialog.style.maxWidth=t.options.dialogMaxWidth+"px");let e="";if(e+="<div class='tg-dialog-header'>",e+='<div class="tg-dialog-title" id="tg-dialog-title">\x3c!-- JS rendered --\x3e</div>',t.options.closeButton&&(e+='<div class="tg-dialog-close-btn" id="tg-dialog-close-btn">',e+=' <svg width="12px" height="12px" id="Layer_1" version="1.1" viewBox="0 0 512 512" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M443.6,387.1L312.4,255.4l131.5-130c5.4-5.4,5.4-14.2,0-19.6l-37.4-37.6c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4  L256,197.8L124.9,68.3c-2.6-2.6-6.1-4-9.8-4c-3.7,0-7.2,1.5-9.8,4L68,105.9c-5.4,5.4-5.4,14.2,0,19.6l131.5,130L68.4,387.1  c-2.6,2.6-4.1,6.1-4.1,9.8c0,3.7,1.4,7.2,4.1,9.8l37.4,37.6c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1L256,313.1l130.7,131.1  c2.7,2.7,6.2,4.1,9.8,4.1c3.5,0,7.1-1.3,9.8-4.1l37.4-37.6c2.6-2.6,4.1-6.1,4.1-9.8C447.7,393.2,446.2,389.7,443.6,387.1z"/></svg>',e+="</div>"),e+="</div>",t.options.progressBar&&(e+='<div class="tg-dialog-progress-bar"><span class="tg-bar" id="tg-dialog-progbar"></span></div>'),e+='<div class="tg-dialog-body" id="tg-dialog-body">\x3c!-- JS rendered --\x3e</div>',t.options.showStepDots&&"body"===t.options.stepDotsPlacement){const t=(0,n.dotsWrapperHtmlString)();t&&(e+=t)}e+='<div class="tg-dialog-footer">';let i="tg-dialog-btn",o="false";if(0===t.activeStep&&(o="true",i+=" disabled"),t.options.showButtons&&!t.options.hidePrev&&(e+='<button type="button" class="'+i+'" id="tg-dialog-prev-btn" disabled="'+o+`">${t.options.prevLabel}</button>`),e+='<div class="tg-dialog-footer-sup">',t.options.showStepDots&&"footer"===t.options.stepDotsPlacement){const t=(0,n.dotsWrapperHtmlString)();t&&(e+=t)}return t.options.showStepProgress&&(e+='<span class="tg-step-progress" id="tg-step-progress">\x3c!-- JS rendered --\x3e</span>'),e+="</div>",t.options.showButtons&&!t.options.hideNext&&(e+=`<button type="button" class="tg-dialog-btn" id="tg-dialog-next-btn">${t.options.nextLabel}</button>`),e+="</div>",e+='<div id="tg-arrow" class="tg-arrow"></div>\x3c!-- end tour arrow --\x3e',e}e.createTourGuideDialog=async function(){return this.dialog=document.createElement("div"),this.dialog.classList.add("tg-dialog"),await s(this).then((t=>{this.dialog.innerHTML=t})),document.body.append(this.dialog),!0},e.renderDialogHtml=s,e.updateDialogHtml=function(t){return new Promise(((e,i)=>{const o=t.tourSteps[t.activeStep];o||i("No active step data");const s=document.getElementById("tg-dialog-title");s&&(s.innerHTML=o.title?o.title:"");const r=document.getElementById("tg-dialog-body");r&&o&&("string"==typeof o.content?r.innerHTML=o.content?o.content:"":(r.innerHTML="",r.append(o.content)));const a=document.getElementById("tg-dialog-dots");a&&t.options.showStepDots&&(0,n.computeDots)(t)&&(a.innerHTML=(0,n.computeDots)(t));const l=document.getElementById("tg-dialog-prev-btn");l&&(0===t.activeStep?(l.classList.add("disabled"),l.setAttribute("disabled","true")):(l.classList.remove("disabled"),l.removeAttribute("disabled")));const c=document.getElementById("tg-dialog-next-btn");c&&(c.innerHTML=t.activeStep+1>=t.tourSteps.length?t.options.finishLabel:t.options.nextLabel);const u=document.getElementById("tg-step-progress");u&&(u.innerHTML=t.activeStep+1+"/"+t.tourSteps.length);const d=document.getElementById("tg-dialog-progbar");d&&(t.options.progressBar&&(d.style.backgroundColor=t.options.progressBar),d.style.width=(t.activeStep+1)/t.tourSteps.length*100+"%"),e(!0)}))},e.computeDialogPosition=function(t){return new Promise((async e=>{const i=document.querySelector("#tg-arrow");let n=t.tourSteps[t.activeStep].target;if(n===document.body)return Object.assign(t.dialog.style,{top:window.innerHeight/2.25-t.dialog.clientHeight/2+"px",left:window.innerWidth/2-t.dialog.clientWidth/2+"px",position:"fixed"}),t.dialog.classList.add("tg-dialog-fixed"),i&&(i.style.display="none"),e(!0);t.dialog.style.position="absolute",t.dialog.classList.remove("tg-dialog-fixed"),i&&(i.style.display="inline-block"),(0,o.computePosition)(n,t.dialog,{placement:t.options.dialogPlacement,middleware:[(0,o.autoPlacement)({autoAlignment:!0,padding:5}),(0,o.shift)({padding:15}),(0,o.arrow)({element:i}),(0,o.offset)(20)]}).then((({x:n,y:o,placement:s,middlewareData:r})=>{if(Object.assign(t.dialog.style,{left:`${n}px`,top:`${o}px`}),r.arrow){const t=r.arrow.x,e=r.arrow.y,n={top:"bottom",right:"left",bottom:"top",left:"right"}[s.split("-")[0]];i&&Object.assign(i.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",[n]:"-4px"})}return e(!0)}))}))}},500:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.computeDots=e.dotsWrapperHtmlString=void 0,e.dotsWrapperHtmlString=function(){const t=document.createElement("div");return t.classList.add("tg-dialog-dots"),t.id="tg-dialog-dots",t.outerHTML},e.computeDots=t=>{let e="";return t.tourSteps.length&&t.tourSteps.forEach(((i,n)=>{const o=document.createElement("span");o.classList.add("tg-dot"),n===t.activeStep&&o.classList.add("tg-dot-active"),e+=o.outerHTML})),e}},737:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.keyPressHandler=e.clickOutsideHandler=e.handleDestroyListeners=e.handleInitListeners=void 0,e.clickOutsideHandler=async function(t){if(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation(),!(t.target instanceof Element))return;const e=this.backdrop.getBoundingClientRect();if(t.clientX>=e.x&&t.clientX<=e.x+e.width&&t.clientY>=e.y&&t.clientY<=e.y+e.height)return;const i=this.dialog.getBoundingClientRect();t.clientX>=i.x&&t.clientX<=i.x+i.width&&t.clientY>=i.y&&t.clientY<=i.y+i.height||this.dialog.contains(t.target)||await this.exit()},e.keyPressHandler=async function(t){return"Escape"===t.key&&this.options.exitOnEscape?(t.preventDefault(),void await this.exit()):"ArrowRight"===t.key&&this.options.keyboardControls?(t.preventDefault(),void this.visitStep("next").catch((t=>{this.options.debug&&console.warn(t)}))):"ArrowLeft"===t.key&&this.options.keyboardControls?(t.preventDefault(),void this.visitStep("prev").catch((t=>{this.options.debug&&console.warn(t)}))):void 0},e.handleInitListeners=function(){const t=()=>{let t=document.getElementById("tg-dialog-next-btn");t&&!this._trackedEvents.nextBtnClickEvent.initialized&&(t.addEventListener("click",this._trackedEvents.nextBtnClickEvent.fn),this._trackedEvents.nextBtnClickEvent.initialized=!0)},e=()=>{let t=document.getElementById("tg-dialog-prev-btn");t&&!this._trackedEvents.prevBtnClickEvent.initialized&&(t.addEventListener("click",this._trackedEvents.prevBtnClickEvent.fn),this._trackedEvents.prevBtnClickEvent.initialized=!0)},i=()=>{let t=document.getElementById("tg-dialog-close-btn");t&&!this._trackedEvents.closeBtnClickEvent.initialized&&(t.addEventListener("click",this._trackedEvents.closeBtnClickEvent.fn,!1),this._trackedEvents.closeBtnClickEvent.initialized=!0)},n=()=>{this._trackedEvents.outsideClickEvent.initialized||(document.body.addEventListener("click",this._trackedEvents.outsideClickEvent.fn,!1),this._trackedEvents.outsideClickEvent.initialized=!0)},o=()=>{this._trackedEvents.keyPressEvent.initialized||(window.addEventListener("keydown",this._trackedEvents.keyPressEvent.fn,!1),this._trackedEvents.keyPressEvent.initialized=!0)};return new Promise((s=>(this.options.showButtons&&t(),this.options.showButtons&&e(),this.options.closeButton&&i(),this.options.exitOnClickOutside&&n(),(this.options.keyboardControls||this.options.exitOnEscape)&&o(),s(!0))))},e.handleDestroyListeners=function(){const t=()=>{let t=document.getElementById("tg-dialog-next-btn");t&&(t.removeEventListener("click",this._trackedEvents.nextBtnClickEvent.fn),this._trackedEvents.nextBtnClickEvent.initialized=!1)},e=()=>{let t=document.getElementById("tg-dialog-prev-btn");t&&(t.removeEventListener("click",this._trackedEvents.prevBtnClickEvent.fn),this._trackedEvents.prevBtnClickEvent.initialized=!1)},i=()=>{let t=document.getElementById("tg-dialog-close-btn");t&&(t.removeEventListener("click",this._trackedEvents.closeBtnClickEvent.fn,!1),this._trackedEvents.closeBtnClickEvent.initialized=!1)},n=()=>{document.body.removeEventListener("click",this._trackedEvents.outsideClickEvent.fn,!1),this._trackedEvents.outsideClickEvent.initialized=!1},o=()=>{window.removeEventListener("keydown",this._trackedEvents.keyPressEvent.fn,!1),this._trackedEvents.keyPressEvent.initialized=!1};return new Promise((s=>(this.options.showButtons&&t(),this.options.showButtons&&e(),this.options.closeButton&&i(),this.options.exitOnClickOutside&&n(),(this.options.keyboardControls||this.options.exitOnEscape)&&o(),s(!0))))}},121:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0});const n=i(319),o=i(693);e.default=function(){return new Promise((async t=>{this.backdrop.style.display="block",await(0,n.computeBackdropPosition)(this),this.dialog.style.display="block",this.options.dialogAnimate&&this.isVisible&&this.dialog.classList.add("animate-position"),await(0,o.computeDialogPosition)(this),this.options.dialogAnimate&&setTimeout((()=>{this.dialog.classList.remove("animate-position")}),300),this.isVisible=!0,window.onresize||(window.onresize=()=>{(0,n.computeBackdropPosition)(this),(0,o.computeDialogPosition)(this)}),window.onscroll||(window.onscroll=()=>{(0,o.computeDialogPosition)(this)}),await setTimeout((()=>t(!0)),300)}))}},830:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=(t,e)=>{e.scrollIntoView({behavior:t.options.autoScrollSmooth?"smooth":"auto",block:"end",inline:"nearest"})}},755:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=async function(t){return new Promise((async(e,i)=>{let n=[];t.options.steps&&t.options.steps.length&&(n=t.options.steps.map((t=>("string"==typeof t.target&&(t.target=document.querySelector(t.target)),t.target||(t.target=document.body),t))));const o=document.querySelectorAll("[data-tg-tour]");return o&&o.forEach((e=>{const i=e.getAttribute("data-tg-title"),o=e.getAttribute("data-tg-tour"),s=e.getAttribute("data-tg-group"),r=e.getAttribute("data-tg-order"),a=e.getAttribute("data-tg-fixed"),l=e.getAttribute("data-tg-margin");t.options.targetPadding&&t.options.autoScrollOffset?e.style.scrollMargin=(l?l+t.options.targetPadding:t.options.autoScrollOffset+t.options.targetPadding)+"px 0":e.style.scrollMargin=(l||"30")+"px 0",n.push({title:i||void 0,order:r?Number(r):999,target:e,content:o||void 0,fixed:null!==a&&"false"!==a,group:s||void 0})})),t.group&&(n=n.filter((e=>e.group===t.group))),n.sort((function(t,e){return new Date(t.order)<new Date(e.order)?-1:1})),t.tourSteps=n,t.tourSteps.length?e(!0):i("No tour steps detected"+(t.group?" in group: "+t.group:""))}))}},971:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(755)),s=i(693),r=n(i(570));e.default=async function(t){this.options.steps&&(this.options.steps.push(...t),await(0,o.default)(this),this.isVisible&&await(0,s.updateDialogHtml)(this).catch((t=>{this.options.debug&&console.warn(t)})),this.isVisible&&this.updatePositions().catch((t=>{this.options.debug&&console.warn(t)})),this.isVisible&&await(0,r.default)(".tg-dialog").then((async()=>(await this.destroyListeners(),await this.initListeners(),!0))))}},544:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=async function(){if(this._globalBeforeExitCallback)try{await this._globalBeforeExitCallback()}catch(t){return}this.dialog.style.display="none",this.backdrop.style.display="none",this.isVisible=!1,this.options.rememberStep||(this.activeStep=0),this.options.debug&&console.info("Tour exited"),await this.destroyListeners(),setTimeout((()=>{this._globalAfterExitCallback&&this._globalAfterExitCallback()}),0)}},283:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.delFinishedTour=e.getIsFinished=void 0,e.getIsFinished=function(t="tour"){return localStorage.tg_tours_complete.split(",").includes(t)},e.delFinishedTour=function(t="tour"){if("all"===t)return void(localStorage.tg_tours_complete=null);const e=localStorage.tg_tours_complete.split(",");localStorage.tg_tours_complete=e.filter((e=>e!==t))},e.default=async function(t=!0,e="tour"){if(this._globalFinishCallback)try{await this._globalFinishCallback()}catch(t){return!1}if(this.options.completeOnFinish){if(!localStorage.tg_tours_complete)return localStorage.tg_tours_complete=[e],t&&await this.exit(),void(this.activeStep=0);const i=localStorage.tg_tours_complete.split(",");i.push(e),localStorage.tg_tours_complete=i}return t&&await this.exit(),this.activeStep=0,!0}},612:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.handleRefreshDialog=void 0;const o=n(i(755)),s=i(693),r=n(i(570));e.handleRefreshDialog=async function(){return new Promise((async(t,e)=>(await(0,s.renderDialogHtml)(this).then((t=>{t&&(this.dialog.innerHTML=t)})).catch((t=>{this.options.debug&&console.warn(t)})),await(0,s.updateDialogHtml)(this).catch((t=>{this.options.debug&&console.warn(t),e(t)})),await this.updatePositions(),this.isVisible&&await(0,r.default)(".tg-dialog").then((async()=>(await this.destroyListeners(),await this.initListeners(),!0))),t(!0))))},e.default=async function(){return new Promise((async(t,e)=>(await(0,o.default)(this).catch((t=>e(t))),this.computeBackdropAttributes(),await this.refreshDialog().catch((t=>e(t))),t(!0))))}},340:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(693),s=n(i(570));e.default=async function(t){if(t)return Object.assign(this.options,t),this.computeBackdropAttributes(),await(0,o.renderDialogHtml)(this).then((t=>{t&&(this.dialog.innerHTML=t)})).catch((t=>{this.options.debug&&console.warn(t)})),await(0,o.updateDialogHtml)(this).catch((t=>{this.options.debug&&console.warn(t)})),this.isVisible&&await(0,s.default)(".tg-dialog").then((async()=>(await this.destroyListeners(),await this.initListeners(),!0))),this}},330:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(i(570)),s=n(i(755));e.default=async function(t){return new Promise((async(e,i)=>{if(this.isVisible)return this.options.debug&&console.warn("Tour already active"),i("Tour already active");t&&(this.group=t),this.options.debug&&console.info("Start tour");const n=this;try{await(0,s.default)(n)}catch(t){return this.options.debug&&console.warn(t),i(t)}return await n.visitStep(this.activeStep).catch((t=>(this.options.debug&&console.warn(t),i(t)))),await(0,o.default)(".tg-dialog").then((async()=>{await this.initListeners(),this.options.dialogAnimate&&this.dialog.classList.add("animate-position")})),e(!0)}))}},483:function(t,e,i){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.handleVisitPrevStep=e.handleVisitNextStep=e.goToStep=void 0;const o=i(693),s=n(i(830));function r(t,e){return new Promise((async(i,n)=>{if(e>=t.tourSteps.length)return n("End of tour steps");if(e<0)return n("Start of tour steps");const r=t.activeStep,a=t.tourSteps[r],l=t.tourSteps[e];if(!l||!a)return n("Step not found by index");if(t._globalBeforeChangeCallback&&e!==r)try{await t._globalBeforeChangeCallback()}catch(t){return n(t)}if(a.beforeLeave)try{await a.beforeLeave(a,l)}catch(t){return n(t)}if(l.beforeEnter)try{await l.beforeEnter(a,l)}catch(t){return n(t)}return"string"==typeof l.target&&(t.tourSteps[e].target=document.querySelector(l.target)),l.target&&t.tourSteps[e].target||(t.tourSteps[e].target=document.body),t.activeStep=Number(e),await(0,o.updateDialogHtml)(t).catch((e=>{t.options.debug&&console.warn(e),n(e)})),t.options.autoScroll&&l.target!==document.body&&await(0,s.default)(t,l.target),await t.updatePositions(),a.afterLeave&&await a.afterLeave(a,l),l.afterEnter&&await l.afterEnter(a,l),t._globalAfterChangeCallback&&e!==r&&await t._globalAfterChangeCallback(),i(!0)}))}e.handleVisitNextStep=async function(){return new Promise((async(t,e)=>{const i=this.activeStep+1;try{await this.visitStep(i)}catch(t){return e(t)}return t(!0)}))},e.handleVisitPrevStep=async function(){return new Promise((async(t,e)=>{const i=this.activeStep-1;try{await this.visitStep(i)}catch(t){return e(t)}return t(!0)}))},e.goToStep=r,e.default=async function(t){return new Promise((async(e,i)=>{if("string"==typeof t&&(t="next"===t?this.activeStep+1:this.activeStep-1),!(t>=this.tourSteps.length))return await r(this,t).catch((t=>i(t))),e(!0);await this.finishTour(!0,this.group)}))}},717:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={nextLabel:"Next",prevLabel:"Back",finishLabel:"Finish",hidePrev:!1,hideNext:!1,dialogClass:"",dialogZ:999,dialogWidth:0,dialogMaxWidth:340,dialogAnimate:!0,dialogPlacement:void 0,backdropClass:"",backdropColor:"rgba(20,20,21,0.84)",backdropAnimate:!0,targetPadding:30,completeOnFinish:!0,showStepDots:!0,stepDotsPlacement:"footer",showButtons:!0,showStepProgress:!0,progressBar:"",keyboardControls:!0,exitOnEscape:!0,exitOnClickOutside:!0,autoScroll:!0,autoScrollSmooth:!0,autoScrollOffset:20,closeButton:!0,rememberStep:!1,debug:!0,steps:[]}},570:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return new Promise((e=>{if(document.querySelector(t))return e(document.querySelector(t));const i=new MutationObserver((()=>{document.querySelector(t)&&(e(document.querySelector(t)),i.disconnect())}));i.observe(document.body,{childList:!0,subtree:!0})}))}}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var s=e[n]={exports:{}};return t[n].call(s.exports,s,s.exports,i),s.exports}return i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.p="",i(131),i(797)})(),t.exports=e()},899:()=>{!function(t){t.fn.aggregator=function(){function e(t){var e=t.clone();return e.attr("data-aggregate-id","new").find("ul").empty(),t.before(e),i(e),e}function i(i){i.find("li").length<2&&i.find(".explode-aggregate").hide(),i.find("ul").sortable({connectWith:"#orderAggregator div.card ul",accept:"li",drop:function(i,n){var o=t(this).find("li").length;0==o?e(t(this)):1==o&&t(this).find(".explode-aggregate").show();var s=n.draggable.closest(".card");2==s.find("li").length&&s.find(".explode-aggregate").hide(),n.draggable.css("right","").css("left","").css("top","").css("bottom","").css("width","").css("height",""),t(this).find("ul").append(n.draggable)}})}t(this).each((function(){t(this).find("div.card").each((function(){i(t(this))})),t(this).on("click",".explode-aggregate",(function(){var i=t(this).closest(".card");i.find("li").each((function(){e(i).find("ul").append(t(this).clone())})),i.remove()})),t(this).submit((function(e){e.preventDefault();var i=t(this);i.find("button[type=submit]").prop("disabled",!1);var n=new Array;i.find(".card").each((function(){var e={id:t(this).attr("data-aggregate-id"),orders:new Array};t(this).find("li").each((function(){e.orders.push(t(this).attr("data-order-id"))})),n.push(e)})),t.ajax({method:i.attr("method"),url:i.attr("action"),data:{data:JSON.stringify(n)},dataType:"json",success:function(t){location.reload()}})}))}))}}(jQuery)},676:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(404),o=i(955);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:String(e)}window.$=window.jQuery=i.g.$=i.g.jQuery=i(692),i(454);const l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,s;return e=t,s=[{key:"attachUserRole",value:function(t,e,i,o){n.A.postAjax({method:"POST",url:"roles/attach",data:{role:t,user:e,target_id:i,target_class:o}})}},{key:"detachUserRole",value:function(t,e,i,o){n.A.postAjax({method:"POST",url:"roles/detach",data:{role:t,user:e,target_id:i,target_class:o}})}},{key:"supplierAttachUser",value:function(e,i){var n=e.attr("data-supplier-id"),o=e.attr("data-role-id");t.attachUserRole(o,i,n,"App\\Supplier")}},{key:"supplierDetachUser",value:function(e,i){var n=e.attr("data-supplier-id"),o=e.attr("data-role-id");t.detachUserRole(o,i,n,"App\\Supplier")}},{key:"getBookingRowStatus",value:function(t){return t.find(".bi-check").length?"shipped":t.find(".bi-save").length?"saved":"pending"}},{key:"sortShippingBookings",value:function(e){e.find("> .accordion-item").sort((function(e,i){e=$(e),i=$(i);var n=t.getBookingRowStatus(e),o=t.getBookingRowStatus(i),s=0;if(n==o)s=e.find(".accordion-button").text().trim().localeCompare(i.find(".accordion-button").text().trim());else{var r=["pending","saved","shipped"];s=r.indexOf(n)-r.indexOf(o)}return s})).each((function(){$(this).appendTo(e)}))}},{key:"submitDeliveryForm",value:function(t){t.find(".fit-add-product").not(".hidden").each((function(){if(0==$(this).find(".inline-variant-selector").length){var e=$(this).find(".booking-product-quantity input:text.number");if(0!=e.length){var i=n.A.sanitizeId(e.attr("name")),o=n.A.parseFloatC(e.val()),s=t.find("tr.booking-product").not(".fit-add-product").find("input:text.number[name="+i+"]");0!=s.length&&(s.val(n.A.parseFloatC(s.val())+o),e.remove())}}}))}},{key:"evaluateEmptyBooking",value:function(t){if("shipped"==t.find("input:hidden[name=action]").val()){var e=!1;if(t.find(".booking-total").each((function(){var t=n.A.parseFloatC($(this).textVal());e=e||0!=t})),0==e&&0==(e=confirm(_("Tutte le quantità consegnate sono a zero! Vuoi davvero procedere?"))))throw"Empty!"}}},{key:"collectFilteredUsers",value:function(t){t.find('input:hidden[name^="users"]').remove();var e=$("#user-list");e.is("table")?$("tbody tr:visible",e).each((function(){var e=$(this).find("input[name^=user_id]").val();t.append('<input type="hidden" name="users[]" value="'+e+'">')})):$(".accordion-item:visible",e).each((function(){var e=$(this).attr("data-element-id");t.append('<input type="hidden" name="users[]" value="'+e+'">')}))}},{key:"formToDownload",value:function(t){var e=t.find("input, select").serializeArray(),i=t.attr("action"),n=i+(i.match(/[\?]/g)?"&":"?")+$.param(e);throw window.open(n,"_blank"),"Done!"}},{key:"passwordProtected",value:function(t){if("1"!=t.attr("data-password-protected-verified")){var e=t.attr("id"),i=$("#password-protection-dialog");throw i.find("input:password").val(""),i.attr("data-form-target","#"+e).modal("show"),"Check password!"}}},{key:"checkVariantsValues",value:function(t){if(t.find("table tbody tr").filter((function(){var t=$(this).find("input[name^=value]").first();if(t){var e=t.val();return void 0!==e&&""!=e}return!1})).length<=0)throw alert("Devi specificare almeno un valore per la variante"),"No values!"}},{key:"closeAllModals",value:function(){$(".modal.fade.show").modal("hide")}},{key:"triggerPayment",value:function(t){if("shipped"==t.find("input:hidden[name=action]").val()){var e=t.attr("data-reference-modal");$("#"+e).appendTo("body").modal("show")}}},{key:"displayRecalculatedBalances",value:function(t,e){var i=$("#display-recalculated-balance-modal");if(0!=e.diffs.length){var n=i.find(".broken.hidden").removeClass("hidden").find("tbody");for(var o in e.diffs)e.diffs.hasOwnProperty(o)&&n.append("<tr><td>"+o+"</td><td>"+e.diffs[o][0]+"</td><td>"+e.diffs[o][1]+"</td></tr>")}else i.find(".fixed.hidden").removeClass("hidden");i.modal("show")}},{key:"refreshFilter",value:function(t){var e=t.find("input:hidden[name=data-refresh-target]").val();e?$(".form-filler").filter(e).find("button[type=submit]").click():$(".form-filler").find("button[type=submit]").click()}},{key:"genericAfterChange",value:function(t,e,i){n.A.postAjax({method:"GET",url:i+"/"+e.id+"/post_feedback",dataType:"JSON",success:function(t){for(var e=0;e<t.length;e++)n.A.j().fetchRemoteModal(t[e])}})}},{key:"afterProductChange",value:function(e,i){t.genericAfterChange(e,i,"products")}},{key:"afterAggregateChange",value:function(e,i){t.genericAfterChange(e,i,"aggregates")}},{key:"afterMovementTypeChange",value:function(e,i){t.genericAfterChange(e,i,"movtypes")}},{key:"afterModifierChange",value:function(e,i){t.genericAfterChange(e,i,"modifiers")}},{key:"afterBookingSaved",value:function(t,e){var i=t.closest(".modal");if(0!=i.length){if(e.hasOwnProperty("id")){var n=$("button[data-target='#"+i.attr("id")+"']").parent().find(".loadable-list");0==n.find("> a[data-element-id="+e.id+"]").length&&(e.url=e.url.replace("booking/","delivery/"),o.A.appendToLoadableList(n,e,!1))}}else o.A.closeParent(t)}},{key:"removeTargetListItem",value:function(t,e){t=o.A.formByElementId(e.id);var i=o.A.closeParent(t),n=i.closest(".loadable-list");i.remove(),o.A.testListsEmptiness(n)}},{key:"handleUserApproval",value:function(t,e){if(o.A.closeParent(t),"approve"!=e.action){var i=o.A.closeParent(t),n=i.closest(".loadable-list");i.remove(),o.A.testListsEmptiness(n)}}},{key:"reloadLoadableHeaders",value:function(t,e){var i;0!=(i=$('.accordion-item[data-element-id="'+t.find("input[name=sender_id]").val()+'"]').filter(":visible")).length&&o.A.reloadLoadableHead(i),0!=(i=$('.accordion-item[data-element-id="'+t.find("input[name=target_id]").val()+'"]').filter(":visible")).length&&o.A.reloadLoadableHead(i)}},{key:"closeMainForm",value:function(t,e){o.A.closeParent(t)}}],(i=null)&&r(e.prototype,i),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}()},234:(t,e,i)=>{"use strict";function n(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)t[n]=i[n]}return t}var o={read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var s=function t(e,i){function o(t,o,s){if("undefined"!=typeof document){"number"==typeof(s=n({},i,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in s)s[a]&&(r+="; "+a,!0!==s[a]&&(r+="="+s[a].split(";")[0]));return document.cookie=t+"="+e.write(o,t)+r}}return Object.create({set:o,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var i=document.cookie?document.cookie.split("; "):[],n={},o=0;o<i.length;o++){var s=i[o].split("="),r=s.slice(1).join("=");try{var a=decodeURIComponent(s[0]);if(n[a]=e.read(r,a),t===a)break}catch(t){}}return t?n[t]:n}},remove:function(t,e){o(t,"",n({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,n({},this.attributes,e))},withConverter:function(e){return t(n({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(e)}})}(o,{path:"/"}),r=i(281),a=i(404),l=i(955);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}function d(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:String(e)}var h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){var e=this;t.hasClass("main-form")?this.listenChanges(t):t.find(".main-form").each((function(t,i){e.listenChanges($(i))}))}},{key:"getInputValue",value:function(t){var e=t.val();return(t.is(":checkbox")||t.is(":radio"))&&(e=t.prop("checked")?"true":"false"),e}},{key:"listenChanges",value:function(t){var e=this;t.find("input, select").each((function(t,i){var n=$(i),o=e.getInputValue(n);n.attr("data-original-value",o)})),t.on("change","input, select",(function(i){var n=!1;t.find("input, select").each((function(i,o){var s=$(o);e.getInputValue(s)!=s.attr("data-original-value")&&(n=!0,e.appendSaveAlert(t))})),0==n&&e.removeSaveAlert(t)}))}},{key:"appendSaveAlert",value:function(t){t.find(".bottom-helper").last().prop("hidden",!1)}},{key:"removeSaveAlert",value:function(t){t.find(".bottom-helper").last().prop("hidden",!0)}}],(i=null)&&u(e.prototype,i),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const p=h;function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function m(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function g(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:String(e)}i(780),i(458);var v=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){var e=this;if(this.handlingContactSelection(t),this.initDatesWidgets(t),$("select[multiple]",t).select2({theme:"bootstrap-5",dropdownParent:t}),$(".remote-select",t).each((function(e,i){var n=(i=$(i)).attr("data-remote-url");i.select2({theme:"bootstrap-5",dropdownParent:t,ajax:{url:n,dataType:"JSON"}})})),$('[data-bs-toggle="popover"]',t).popover({trigger:"manual",html:!0,animation:!1}).on("mouseenter",(function(){var t=this;$(this).popover("show"),$(".popover").on("mouseleave",(function(){$(t).popover("hide")}))})).on("mouseleave",(function(){var t=this;setTimeout((function(){$(".popover:hover").length||$(t).popover("hide")}),300)})),$("input.number",t).keydown((function(t){if(13!=t.which)if(!$(this).attr("data-enforce-integer")||"."!=t.key&&","!=t.key){var e="1"==$(this).attr("data-allow-negative"),i=$(this).attr("data-enforce-minimum");$(this).val((function(t,n){var o=n.replace(/,/g,".");return""!=(o=e?o.replace(/[^\-0-9\.]/g,""):o.replace(/[^0-9\.]/g,""))&&i&&o<i&&(o=i),o}))}else t.preventDefault();else t.preventDefault()})).focus((function(t){if(0==a.A.parseFloatC($(this).val())){var e=$(this).attr("data-enforce-minimum");e?$(this).val(e):$(this).val("0")}})).blur((function(t){$(this).val((function(t,e){var i=a.A.parseFloatC(e),n=$(this).attr("data-enforce-minimum");return n&&i<n?n:i}))})),$(".trim-ddigits",t).on("blur change",(function(){var t=$(this).attr("data-trim-digits");$(this).val((function(e,i){return a.A.parseFloatC(i).toFixed(t)}))})),$("input:file[data-max-size]",t).change((function(){if(this.files&&this.files[0]){var t=$(this).attr("data-max-size");return this.files[0].size>t?($(this).val(""),a.A.setInputErrorText($(this),_("Il file è troppo grande!")),!1):(a.A.setInputErrorText($(this),null),!0)}})),$(".img-preview input:file",t).change((function(t){e.previewImage(t.currentTarget)})),$(".simple-sum",t).change((function(){var t=0,e=$(this).closest(".simple-sum-container");e.find(".simple-sum").each((function(){t+=a.A.parseFloatC($(this).val())})),e.find(".simple-sum-result").val(t)})),$(".selective-display",t).each((function(){var e=$(this).attr("data-target"),i=$(this).find("input:radio").filter(":checked").val();$(e,t).addClass("d-none").filter("[data-type="+i+"]").removeClass("d-none")})).find("input:radio").change((function(){if(0!=$(this).prop("checked")){var e=$(this).closest(".selective-display").attr("data-target"),i=$(this).val();$(e,t).addClass("d-none").filter("[data-type="+i+"]").removeClass("d-none")}})),$('.status-selector input:radio[name*="status"]',t).change((function(){var t=$(this).closest(".status-selector"),e=$(this).val(),i="deleted"!=e;t.find("[name=deleted_at]").prop("hidden",i).closest(".input-group").prop("hidden",i);var n="suspended"!=e;t.find("[name=suspended_at]").prop("hidden",n).closest(".input-group").prop("hidden",n)})),0!=$('input[value="put_random_here"]',t).length){var i="new_"+a.A.randomString(5);$('input[value="put_random_here"]',t).each((function(){0!=$(this).closest(".dynamic-table").length&&0!=$(this).closest("tbody").length&&$(this).val(i)}))}$(".sortable-table tbody",t).sortable({items:"> tr",handler:".sorter"})}},{key:"dateEnforcePeer",value:function(t,e){var i=t.attr(e),n=t.closest(".input-group").find(i);return 0==n.length&&0==(n=t.closest("tr").find(i)).length&&(n=t.closest("form").find(i)),n}},{key:"initDatesWidgets",value:function(t){var e=this;$("input.date",t).datepicker({format:"DD dd MM yyyy",autoclose:!0,language:a.A.currentLanguage(),clearBtn:!0}).each((function(){var t=$(this);t.siblings(".input-group-addon").click((function(){t.focus()}))})).on("show",(function(t){t.stopPropagation()})),$("input.date-to-month",t).datepicker({format:"dd MM",autoclose:!0,language:a.A.currentLanguage(),clearBtn:!1,maxViewMode:"months"}),$(".date[data-enforce-after]",t).each((function(t,i){var n=$(i),o=e.dateEnforcePeer(n,"data-enforce-after");o.datepicker().on("changeDate",(function(){var t=n.datepicker("getDate"),e=o.datepicker("getDate");t<e&&n.datepicker("setDate",e)}))})).focus((function(t){var i=$(t.currentTarget),n=e.dateEnforcePeer(i,"data-enforce-after"),o=i.datepicker("getStartDate"),s=n.datepicker("getUTCDate");o.toString()!=s.toString()&&i.datepicker("setStartDate",s)}))}},{key:"handlingContactSelection",value:function(t){var e=this;if(0!=t.closest(".contacts-selection").length){var i=t.find('input[name="contact_value[]"]'),n=t.find("select option:selected").val();this.fixContactField(i,n),$("select",t).change((function(t){var i=$(t.currentTarget).closest("tr").find('input[name="contact_value[]"]'),n=$(t.currentTarget).find("option:selected").val();e.fixContactField(i,n)}))}else $(".contacts-selection tr",t).each((function(t,i){var n=$(i).find('input[name="contact_value[]"]'),o=$(i).find("select option:selected").val();e.fixContactField(n,o)}))}},{key:"fixContactField",value:function(t,e){t.attr("class","").addClass("form-control"),"email"==e?t.attr("type","email"):(t.attr("type","text"),t.addClass(e))}},{key:"previewImage",value:function(t){if(t.files&&t.files[0]){var e=new FileReader,i=$(t).closest(".img-preview").find("img");e.onload=function(t){i.attr("src",t.target.result)},e.readAsDataURL(t.files[0])}}}],(i=null)&&m(e.prototype,i),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const y=v;function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function w(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,x(n.key),n)}}function x(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:String(e)}var k=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){$(".triggers-all-checkbox",t).change((function(){$(this).prop("disabled",!0);var t=$(this).closest("form"),e=$(this).attr("data-target-class"),i=$(this).prop("checked");t.find("."+e).filter(":visible").each((function(){$(this).prop("checked",i).change()})),$(this).prop("disabled",!1)})),$("table thead .toggleall",t).change((function(){var t=$(this).closest("th").index(),e=$(this).val(),i="radio"==$(this).attr("type");i&&0==$(this).prop("checked")||$(this).closest("table").find("tbody tr td:nth-child("+(t+1)+")").each((function(){i?$(this).find("input[value="+e+"]").prop("checked",!0):$(this).find("input").val(e)}))})),$(".triggers-all-selects",t).change((function(){var t=$(this).closest("form"),e=$(this).attr("data-target-class"),i=$(this).find("option:selected").val(),n=t.find("."+e).not($(this));n.find("option[value="+i+"]").prop("selected",!0),n.change()})),$(".async-modal",t).on("jb-before-async-fetch",(function(t){var e=$(t.currentTarget),i=$(a.A.j().makeSpinner());i.find(".spinner-border").addClass("spinner-border-sm");var n=e.html();e.attr("data-old-contents",n),e.css("width",e.outerWidth()).prop("disabled",!0).empty().append(i)})).on("jb-after-async-fetch",(function(t,e){var i=$(t.currentTarget),n=i.attr("data-old-contents");i.css("width","auto").prop("disabled",!1).empty().append(n),0==e&&a.A.inlineFeedback(i,_("ERRORE!"))}))}}],(i=null)&&w(e.prototype,i),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const C=k;function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function A(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,D(n.key),n)}}function D(t){var e=function(t,e){if("object"!=T(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==T(e)?e:String(e)}var E=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){var e=this;$(".icons-legend button, .icons-legend a",t).click((function(t){t.preventDefault(),e.iconsLegendTrigger($(t.currentTarget),".icons-legend")})),$(".table-icons-legend button, .table-icons-legend a",t).click((function(t){t.preventDefault(),e.iconsLegendTrigger($(t.currentTarget),".table-icons-legend")})),$(".table-text-filter",t).keyup((function(t){e.tableFilters($(t.currentTarget).attr("data-table-target"))})),$(".table-number-filters input.table-number-filter",t).keyup((function(t){e.tableFilters($(t.currentTarget).closest(".table-number-filters").attr("data-table-target"))})),$(".table-number-filters input[name=filter_mode]",t).change((function(t){$(t.currentTarget).closest(".input-group").find("input.table-number-filter").keyup()})),$(".table-filters input:radio",t).change((function(t){e.tableFilters($(t.currentTarget).closest(".table-filters").attr("data-table-target"))})),$(".table-sorter a",t).click((function(t){t.preventDefault();var e=$($(this).closest(".table-sorter").attr("data-table-target")),i=$(this).attr("data-sort-by"),n=!!$(this).attr("data-numeric-sorting");e.each((function(){var t=$(this).find("tbody");t.find("> .table-sorting-header").addClass("d-none").filter("[data-sorting-"+i+"]").removeClass("d-none"),t.find("> tr[data-sorting-"+i+"], .table-sorting-header:visible").sort((function(t,e){var o=$(t).attr("data-sorting-"+i),s=$(e).attr("data-sorting-"+i);return n?parseFloat(o)-parseFloat(s):o.localeCompare(s)})).each((function(){$(this).appendTo(t)})),t.find("> tr.do-not-sort").each((function(){$(this).appendTo(t)}))}))})),$(".form-filler button[type=submit]",t).click((function(t){t.preventDefault();var e=$(this);e.addClass("disabled");var i=e.closest(".form-filler"),n=$(i.attr("data-fill-target")),o=i.find("input, select").serialize(),s=e.attr("data-action");null==s&&(s=i.attr("data-action")),n.empty().append(a.A.j().makeSpinner()),$.ajax({method:"GET",url:s,data:o,dataType:"html",success:function(t){e.removeClass("disabled"),t=$(t),n.empty().append(t),a.A.j().initElements(t)}})})),$(".columns-selector",t).on("click",".dropdown-menu",(function(t){t.stopPropagation()})).on("change","input:checkbox",(function(t){t.preventDefault(),t.stopPropagation();var e=$(t.currentTarget),i=$(e).closest(".columns-selector").attr("data-target"),n=$(e).val(),o=$(e).prop("checked");$("#"+i).find(".order-cell-"+n).toggleClass("hidden",!o)}))}},{key:"compactFilter",value:function(t,e,i){i?$(t).each((function(){$(this).closest(".filter-master-block").show()})):setTimeout((function(){$(t).each((function(){var t=$(this).closest(".filter-master-block");if(0!=t.length){var i=$(this).find(e);i.filter(".hidden").length==i.length?t.hide():t.show()}}))}),100)}},{key:"tableFilters",value:function(t){var e=$('[data-table-target="'+t+'"]');$("table"+t).find("tbody tr").each((function(){var t=!0,i=$(this);e.each((function(){if($(this).hasClass("table-number-filters")){var e=$(this).find("input.table-number-filter").val().toLowerCase();if(""==e)t=t&&!0;else{var n=parseFloat(e),o=$(this).find("input[name=filter_mode]:checked").val(),s=i.find(".text-filterable-cell"),r=parseFloat(s.text());t="min"==o&&r<=n||"max"==o&&r>=n?t&&!0:t&&!1}}else if($(this).hasClass("table-filters")){var a=$(this).find("input:radio:checked"),l=a.val();if("all"==l)t=t&&!0;else{var c=a.attr("name"),u=i.attr("data-filtered-"+c);t=t&&u==l}}else if($(this).hasClass("table-text-filter")){var d=$(this).val().toLowerCase();""==d?t=t&&!0:(t=!1,i.find(".text-filterable-cell").each((function(){if(-1!=$(this).text().toLowerCase().indexOf(d))return t=!0,!1})))}if(0==t)return!1})),i.toggleClass("hidden",0==t)})),this.compactFilter("table"+t,"tbody tr",!1)}},{key:"iconsLegendTrigger",value:function(t,e){if(!t.hasClass("dropdown-toggle")){var i=t.closest(e),n=i.attr("data-list-target"),o="",s="";".icons-legend"==e?(o=".loadable-list"+n,s=".accordion-item"):(o=".table"+n,s="tbody tr");var r=o+" "+s;if(t.hasClass("active"))t.removeClass("active"),t.is("a")&&t.closest(".dropdown-menu").siblings(".dropdown-toggle").removeClass("active"),$(r).toggleClass("hidden",!1),this.compactFilter(o,s,!0),$(o).trigger("inactive-filter");else{i.find("button, a").removeClass("active"),t.addClass("active"),t.is("a")&&t.closest(".dropdown-menu").siblings(".dropdown-toggle").addClass("active");var a=t.find("i").attr("class"),l=0;$(r).each((function(){var t=!1;$(this).find("i").each((function(){var e=$(this).attr("class");if(t=e==a)return!1})),$(this).toggleClass("hidden",0==t),0==t&&l++})),this.compactFilter(o,s,!1),0==l?$(o).trigger("inactive-filter"):$(o).trigger("active-filter")}}}}],(i=null)&&A(e.prototype,i),n&&A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const S=E;function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function O(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,L(n.key),n)}}function L(t){var e=function(t,e){if("object"!=P(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==P(e)?e:String(e)}window.$=window.jQuery=i.g.$=i.g.jQuery=i(692),i(454);var j=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){t.hasClass("products-grid")&&(t.on("change",".product-select",(function(e){var i=t.find(".product-select").filter(":checked").length;t.find(".massive-actions").toggleClass("hidden",0==i)})),t.on("change",".massive-actions select",(function(e){var i=$(e.currentTarget),n=i.val(),o=i.closest("th").index();t.find(".product-select").filter(":checked").filter(":visible").each((function(t,e){$(e).closest("tr").find("td").eq(o).find("select").val(n)}))})),t.on("change",".massive-actions input[type=checkbox]",(function(e){var i=$(e.currentTarget),n=i.prop("checked"),o=i.closest("th").index();t.find(".product-select").filter(":checked").filter(":visible").each((function(t,e){$(e).closest("tr").find("td").eq(o).find("input[type=checkbox]").prop("checked",n)}))})),t.on("click",".massive-actions .remove_all",(function(e){e.preventDefault(),t.find(".product-select").filter(":checked").filter(":visible").each((function(t,e){var i=$(e).closest("tr"),n=i.find('input[type=hidden][name="id[]"]').val(),o=$("<input>").attr("type","hidden").attr("name","remove[]").attr("value",n);i.addClass("table-danger").find("td").eq(1).append(o)}))})))}}],(i=null)&&O(e.prototype,i),n&&O(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const I=j;function M(t){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M(t)}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,s,r,a=[],l=!0,c=!1;try{if(s=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return H(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return H(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function F(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,R(n.key),n)}}function R(t){var e=function(t,e){if("object"!=M(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==M(e)?e:String(e)}window.$=window.jQuery=i.g.$=i.g.jQuery=i(692),i(454);var B,q,U,W=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(e){e.hasClass("modifier-modal")&&(e.find("form").addClass("form-disabled"),a.A.postAjax({method:"GET",url:e.attr("data-strings-source"),dataType:"JSON",success:function(i){t.modifiers_strings=i,e.find("form").removeClass("form-disabled")}}),e.on("change","input:radio",(function(){var e=$(this).closest(".modifier-modal"),i=e.attr("data-target-type"),n=e.find("input:radio[name=arithmetic]:checked").val(),o=e.find("input:radio[name=value]:checked").val(),s=e.find("input:radio[name=applies_type]:checked").val(),r=e.find("input:radio[name=scale]:checked").val(),a=e.find("input:radio[name=applies_target]:checked").first().val(),l=e.find("input:radio[name=distribution_type]:checked").val(),c=e.find(".distribution_type_selection");"product"==i&&"none"==s&&(e.find("input:radio[name=applies_target][value=product]").click(),a="product"),"price"==o?(e.find(".arithmetic_type_selection").addClass("d-none").find("input:radio[value=apply]").click(),n="apply",e.find(".distribution_type_selection").addClass("d-none").find("input:radio[value=none]").click(),l="none"):(e.find(".arithmetic_type_selection").removeClass("d-none"),"apply"==n&&(e.find(".arithmetic_type_selection").find("input:radio[value=sum]").click(),n="sum"),"order"!=a?(c.addClass("d-none").find("input:radio[value=none]").click(),l="none"):(c.removeClass("d-none"),"none"==l&&(c.find("input:radio[value=quantity]").click(),l="quantity")));var u=s+","+i+","+a+","+r+","+s+","+n+","+a+","+o+","+l,d=t.modifiers_strings[u],h=e.find(".simplified_input"),p=e.find(".advanced_input");if(h.toggleClass("d-none","none"!=s),p.toggleClass("d-none","none"==s),"none"!=s){e.find("input:radio[name=value][value=price]").next("label").removeClass("disabled");var f=p.find(".dynamic-table");f.find("tr").each((function(){if(0!=$(this).find(".add-row").length)return!0;$(this).find("td:nth-child(1) .form-control-plaintext").text(d[0]),$(this).find("td:nth-child(2) .input-group-text").text(d[1]),$(this).find("td:nth-child(3) .form-control-plaintext").text(d[2]),$(this).find("td:nth-child(4) .input-group-text").text(d[3]),$(this).find("td:nth-child(5) .form-control-plaintext").text(d[4])})),1==f.find("tbody tr").length&&f.find(".add-row").click()}else{var m=e.find("input:radio[name=value][value=price]");m.next("label").addClass("disabled"),m.prop("checked")&&e.find("input:radio[name=value][value=absolute]").click(),h.find(".form-control-static").eq(0).text(d[2]),h.find(".input-group-text").text(d[3]),h.find(".form-control-static").eq(1).text(d[4])}})))}},{key:"updateBookingModifiers",value:function(t,e){$('input[name^="modifier-"]',e).each((function(){var e=parseInt($(this).attr("name").split("-")[1]);if(0!=e){for(var i=0,n=Object.entries(t);i<n.length;i++){var o=N(n[i],2),s=o[0],r=o[1];if(e==s)return $(this).parent().find("span").text(a.A.priceRound(r.amount)),void delete t[s]}$(this).closest(".modifier-row").remove()}}));for(var i=0,n=Object.entries(t);i<n.length;i++){var o=N(n[i],2),s=o[0],r=o[1],l=$(".modifier-row.hidden",e),c=l.clone();c.removeClass("hidden").find(".static-label .name").text(r.label),r.variable&&c.find(".static-label .mutable").removeClass("hidden"),""!=r.url&&c.find(".static-label").siblings(".float-end").append(a.A.detailsButton(r.url)),c.find('input[name="modifier-0"]').attr("name","modifier-"+s).parent().find("span").text(a.A.priceRound(r.amount)),l.before(c),a.A.j().initElements(c)}}}],(i=null)&&F(e.prototype,i),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();B=W,U=null,(q=R(q="modifiers_strings"))in B?Object.defineProperty(B,q,{value:U,enumerable:!0,configurable:!0,writable:!0}):B[q]=U;const z=W;function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function Y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,s,r,a=[],l=!0,c=!1;try{if(s=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(c)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return X(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return X(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function G(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Q(n.key),n)}}function Q(t){var e=function(t,e){if("object"!=V(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==V(e)?e:String(e)}var K=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){var e=this;$(".bookingSearch",t).each((function(t,e){var i=$(e),n="body";0!=i.closest(".modal").length&&(n=i.closest(".modal")),i.autocomplete({source:a.A.absoluteUrl()+"/users/search",appendTo:n,select:function(t,e){var n=i.attr("data-aggregate"),o=0!=i.closest(".modal.add-booking-while-shipping").length,s=i.closest(".fillable-booking-space").find(".other-booking");s.empty().append(a.A.j().makeSpinner());var r={},l=i.attr("data-enforce-booking-mode");null!=l&&(r.enforce=l);var c=o?"delivery/"+n+"/user/"+e.item.id:"booking/"+n+"/user/"+e.item.id+"?extended=true";a.A.postAjax({url:c,method:"GET",data:r,dataType:"HTML",success:function(t){t=$(t),o&&0!=t.find(".booking-product:not(.fit-add-product)").length&&(t=$('<div class="alert alert-danger">'+_("Questa prenotazione esiste già e non può essere ricreata.")+"</div>")),s.empty().append(t),a.A.j().initElements(t)}})}})})),t.on("change",".variants-selector select",(function(t){var i=$(t.currentTarget).closest(".inline-variant-selector"),n=i.closest(".booking-editor");if(0==a.A.parseFloatC(i.find(".booking-product-quantity input").val())){var o=[];i.find(".form-select").each((function(){o.push($(this).find(":selected").val())})),a.A.postAjax({method:"GET",url:"products/price",dataType:"JSON",data:{id:i.closest("tr").find("input:hidden").first().attr("name"),order_id:n.attr("data-order-id"),variant:o},success:function(t){var e=i.index(),n=i.closest("tr").find(".prices_block"),o=n.find(".row").first().clone();o.find("small").text(t.price),n.find(".row").length>e?n.find(".row").eq(e).replaceWith(o):n.append(o)}})}else e.bookingTotal(n)})),$(".add-booking-product",t).click((function(t){t.preventDefault();var e=$(this).closest("table"),i=e.find(".fit-add-product").first().clone().removeClass("hidden");return a.A.j().initElements(i),i.appendTo(e.find("tbody")),!1})),$(".alt_price_selector input",t).change((function(t){var i=$(t.currentTarget);if(i.prop("checked")){var n=i.closest(".booking-editor");e.bookingTotal(n)}})),$(".fit-add-product-select",t).change((function(t){var i=$(t.currentTarget),n=i.find("option:selected").val(),o=i.closest("tr"),s=o.closest(".booking-editor");-1==n?(o.find(".bookable-target").empty(),e.bookingTotal(s)):a.A.postAjax({method:"GET",url:"products/"+n,data:{format:"bookable",order_id:s.attr("data-order-id")},dataType:"HTML",success:function(t){t=$(t),a.A.j().initElements(t),o.find(".bookable-target").empty().append(t),e.bookingTotal(s)}})})),$(".preload-quantities",t).click((function(t){t.preventDefault();var i=$(t.currentTarget).closest("form").find(".booking-editor");return i.each((function(t,i){e.preloadQuantities($(i),!1)})),e.bookingTotal(i.first()),!1})),$("input.manual-total",t).keyup((function(t){var e=$(t.currentTarget);parseFloat(e.val())>0?e.addClass("is-changed"):e.removeClass("is-changed")})).change((function(t){var i=$(t.currentTarget).closest(".booking-editor");e.bookingTotal(i)})),$(".inline-calculator button[type=submit]",t).click((function(t){t.preventDefault();var e=$(t.currentTarget).closest(".modal"),i=0;e.find("input.number").each((function(){var t=$(this).val();""!=t&&(i+=a.A.parseFloatC(t)),$(this).val("0")}));var n=e.attr("id");$('[data-bs-target="#'+n+'"]').closest(".booking-product-quantity").find("input.number").first().val(i.toFixed(3)).blur(),e.modal("hide")})),$(".delete-booking",t).click((function(t){t.preventDefault();var i=$(t.currentTarget).closest(".inner-form");return confirm(_("Sei sicuro di voler annullare questa prenotazione?"))&&(i.find("button").prop("disabled",!0),a.A.postAjax({method:"DELETE",url:i.attr("action"),dataType:"json",success:function(t){i.find("button").prop("disabled",!1),i.find(".booking-product-quantity input").val("0"),i.find(".variants-selector").each((function(){for(;1!=$(this).find(".row:not(.master-variant-selector)").length;)$(this).find(".row:not(.master-variant-selector):last").remove()})),e.bookingTotal(i.find(".booking-editor"))}})),!1})),$(".booking-form .info-button",t).click((function(t){t.preventDefault();var e=$(t.currentTarget).closest("form");e.find("input:hidden[name=action]").val("saved"),e.submit()}))}},{key:"initOnce",value:function(){var t=this;$("body").on("blur",".booking-product-quantity input",(function(e){var i=$(e.currentTarget).closest(".booking-editor");t.bookingTotal(i)})).on("focus",".booking-product-quantity input",(function(t){$(t.currentTarget).removeClass("is-invalid")})).on("click",".booking-product .add-variant",(function(t){t.preventDefault();var e=$(t.currentTarget).closest(".variants-selector").find(".master-variant-selector"),i=e.clone().removeClass("master-variant-selector");return i.find(".skip-on-submit").removeClass("skip-on-submit"),e.before(i),i.find("select").first().change(),!1}))}},{key:"preloadQuantities",value:function(t,e){t.find(".booking-product").each((function(){var t=$(this).find("input:hidden[name=booking-product-real-booked]");0!=t.length&&$(this).find(".booking-product-quantity input").val(t.val())})),e&&this.bookingTotal(t.closest(".booking-editor"))}},{key:"serializeBooking",value:function(t){t.find("textarea").addClass("skip-on-submit restore-after-serialize"),t.find(".booking-product-quantity input").filter((function(){return 0==$(this).closest(".master-variant-selector").length})).filter((function(){return 0==$(this).attr("name").startsWith("variant_quantity_")})).each((function(){$(this).toggleClass("skip-on-submit restore-after-serialize","0"==$(this).val())}));var e=t.find(".manual-total");e.length&&0==e.hasClass("is-changed")&&e.val("");var i=t.find(":not(.skip-on-submit)").serialize();return t.find(".restore-after-serialize").removeClass("skip-on-submit restore-after-serialize"),i}},{key:"checkInvalidFeedback",value:function(t,e,i){e?(t.toggleClass("is-invalid",!0),t.toggleClass("is-annotated",!1),t.val("0")):(t.toggleClass("is-invalid",!1),t.toggleClass("is-annotated",""!=i)),t.siblings(".invalid-feedback").text(i)}},{key:"priceRow",value:function(t){return'<div class="row"><div class="col"><label class="static-label form-control-plaintext"><small>'+t+"</small></label></div></div>"}},{key:"updateBookingQuantities",value:function(t,e,i){for(var n=0,o=Object.entries(t);n<o.length;n++){var s=Y(o[n],2),r=s[0],l=s[1],c=$('input[name="'+r+'"]',e);if(c.closest("tr").find(".booking-product-price span").text(a.A.priceRound(l.total)),0!=l.variants.length)if("shipped"==i){for(var u=0;u<l.variants.length;u++){var d=l.variants[u],h=$('input[name="variant_quantity_'+r+'[]"]',e).eq(u);if(0==h.length)break;h.val(d.quantity),h.closest("tr").find(".booking-product-price span").text(d.total.toFixed(2))}var p=$('input[name="variant_quantity_'+r+'[]"]',e);if(p.length>l.variants.length)for(var f=l.variants.length;f<p.length;f++){var m=p.eq(f);m.val(0),m.closest("tr").find(".booking-product-price span").text("0.00")}}else{for(var g=[],v=0,y=0;y<l.variants.length;y++){var b=l.variants[y],_=null,w=0;do{if(0==(_=$('input[name="variant_quantity_'+r+'[]"]',e).filter(":not(.skip-on-submit)").eq(v)).length)break;v++,0==(w=a.A.parseFloatC(_.val()))&&g.push(this.priceRow("&nbsp;"))}while(0==w);this.checkInvalidFeedback(_,0==b.quantity&&0!=w,b.message),g.push(this.priceRow(b.unitprice_human))}c.closest("tr").find(".prices_block").empty().append(g)}else this.checkInvalidFeedback(c,0==l.quantity&&0!=a.A.parseFloatC(c.val()),l.message)}}},{key:"testMaxBookable",value:function(t,e){var i=t.find('input:hidden[name="max-bookable"]');0!=i.length&&(i=parseFloat(i.val()),a.A.j().submitButton(t).each((function(){$(this).prop("disabled",e>i)})))}},{key:"updatePayment",value:function(t,e,i){var n=t.attr("data-reference-modal"),o=$("#"+n);0!=o.length&&(o.find("input[name=amount]").val(e.toFixed(2)).change(),o.find("input[name=delivering-status]").val(JSON.stringify(i)))}},{key:"verifyManualTotal",value:function(t,e){if(0==e.products.length){var i=$("input.manual-total",t);0!=i.length&&0!=i.val()&&this.preloadQuantities(t,!0)}}},{key:"bookingTotal",value:function(t){var e=this,i=$(t).closest("form"),n=this.serializeBooking(i),o=i.attr("data-dynamic-url");this.dynamicBookingRequest&&this.dynamicBookingRequest.abort(),this.dynamicBookingRequest=$.ajax({url:o,method:"GET",data:n,dataType:"JSON",success:function(t){if(t.hasOwnProperty("status")&&"error"==t.status)a.A.displayServerError(null,t);else{if(0==Object.entries(t.bookings).length)$(".booking-product-price span",i).text(a.A.priceRound(0)),$(".booking-modifier, .booking-total",h).textVal(a.A.priceRound(0)),$(".all-bookings-total",i).text(a.A.priceRound(0));else{var n=$("input:hidden[name=action]",i).val(),o=0,s={};$(".booking-bottom-helper",h).removeClass("bg-success").addClass("bg-danger");for(var r=0,l=Object.entries(t.bookings);r<l.length;r++){var c=Y(l[r],2),u=c[0],d=c[1],h=$('input[value="'+u+'"]').closest("table").first();$(".booking-product-price span",h).text(a.A.priceRound(0)),e.updateBookingQuantities(d.products,h,n),z.updateBookingModifiers(d.modifiers,h);var p=a.A.priceRound(d.total);$(".booking-total",h).textVal(p),o+=parseFloat(p),s[u]=d.total,e.verifyManualTotal(h,d)}i.find(".all-bookings-total").text(a.A.priceRound(o)),e.testMaxBookable(i,o),e.updatePayment(i,o,s)}e.dynamicBookingRequest=null}},error:function(t){a.A.displayServerError(null,t.responseJSON)}})}}],(i=null)&&G(e.prototype,i),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const J=K;function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}function tt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,et(n.key),n)}}function et(t){var e=function(t,e){if("object"!=Z(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Z(e)?e:String(e)}i(899);const it=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){var e=this;$(".dates-for-orders",t).each((function(t,i){$(i).on("change","input[name^=first_offset]",(function(t){var e=$(t.currentTarget),i=e.closest("tr"),n=i.find("input[name^=second_offset]");if("ship"==i.find("select[name^=action]").val()){var o=parseInt(e.val())-1;n.attr("max",o),n.removeAttr("min"),n.val()>o&&n.val(o)}else{var s=parseInt(e.val())+1;n.attr("min",s),n.removeAttr("max"),n.val()<s&&n.val(s)}})),$(i).on("change","select[name^=action]",(function(t){e.updateLabelsInDates($(t.currentTarget))})),$(i).find("select[name^=action]").change()})),$("#orderAggregator",t).aggregator()}},{key:"initOnce",value:function(){$("body").on("click",".order-summary .toggle-product-abilitation",(function(){$(".order-summary tr.product-disabled").toggle()})).on("change",".order-summary tr .enabling-toggle",(function(){var t=$(this).closest("tr");0!=$(this).prop("checked")||0==a.A.parseFloatC(t.find(".order-summary-product-price").text())||0!=confirm(_("Ci sono prenotazioni attive per questo prodotto. Sei sicuro di volerlo disabilitare?"))?t.toggleClass("product-disabled"):$(this).prop("checked",!0)})).on("change",".order-document-download-modal input[name=send_mail]",(function(){var t=$(this).prop("checked"),e=$(this).closest(".order-document-download-modal").find("form"),i=a.A.j().submitButton(e);t?i.text(_("Invia Mail")):i.text(_("Salva")),e.toggleClass("inner-form",t)})),$("body").on("change","#createOrder select[name^=supplier_id]",(function(){a.A.postAjax({url:"dates/query",method:"GET",data:{supplier_id:$(this).val()},dataType:"HTML",success:function(t){t=$(t),$("#createOrder .supplier-future-dates").empty().append(t),a.A.j().initElements(t)}})})),$("body").on("click",".supplier-future-dates li",(function(){var t=$(this).text();$(this).closest("form").find("input[name=shipping]").val(t)}))}},{key:"updateLabelsInDates",value:function(t){var e=t.val();t.closest("tr").find("input").attrBegins("data-prelabel-").each((function(){var t=$(this),i=t.attr("data-prelabel-"+e),n=t.attr("data-postlabel-"+e);t.prev(".input-group-text").text(i),t.next(".input-group-text").text(n),t.change()}))}}],(i=null)&&tt(e.prototype,i),n&&tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function nt(t){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(t)}function ot(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,st(n.key),n)}}function st(t){var e=function(t,e){if("object"!=nt(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nt(e)?e:String(e)}const rt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){this.setupPermissionsEditor(t),$(".multigas-editor input:checkbox[data-gas]",t).change((function(t){var e=$(t.currentTarget);e.removeClass("saved-checkbox");var i=e.is(":checked")?"multigas/attach":"multigas/detach";a.A.postAjax({url:i,data:{gas:e.attr("data-gas"),target_id:e.attr("data-target-id"),target_type:e.attr("data-target-type")},success:function(){e.addClass("saved-checkbox")}})}))}},{key:"setupPermissionsEditor",value:function(t){$(".roleAssign",t).each((function(){1!=$(this).hasClass("tt-hint")&&0==$(this).hasClass("tt-input")&&$(this).autocomplete({source:a.A.absoluteUrl()+"/users/search",select:function(t,e){var i=$(this),n=$(this).closest(".accordion-body"),o=e.item.id,s=e.item.label;a.A.postAjax({url:"roles/attach",dataType:"HTML",data:{role:l.A.currentLoadableLoaded(this),user:o},success:function(t){var e=$(t),r=$(e).attr("id");a.A.j().initElements(e),n.find(".tab-content").append(e);var l=$('<li class="nav-item" data-user="'+o+'"><button type="button" class="nav-link" data-bs-target="#'+r+'" data-bs-toggle="tab">'+s+"</button></li>");n.find("[role=tablist]").find(".last-tab").before(l),l.find("button").click(),i.val("")}})}})})),$(".role-editor",t).on("change","input:checkbox[data-role]",(function(t){var e=$(this);e.removeClass("saved-checkbox saved-left-feedback");var i=e.is(":checked")?"roles/attach":"roles/detach";a.A.postAjax({url:i,data:{role:e.attr("data-role"),action:e.attr("data-action"),user:e.attr("data-user"),target_id:e.attr("data-target-id"),target_class:e.attr("data-target-class")},success:function(){e.addClass("saved-checkbox saved-left-feedback")}})})).on("click",".remove-role",(function(t){if(t.preventDefault(),confirm(_("Sei sicuro di voler revocare questo ruolo?"))){var e=$(this),i=e.attr("data-user");a.A.postAjax({url:"roles/detach",data:{role:e.attr("data-role"),user:e.attr("data-user")},success:function(){var t=e.closest(".accordion-body"),n=t.find("[data-user="+i+"]");t.find(n.find("button").attr("data-bs-target")).remove(),n.remove()}})}}))}}],(i=null)&&ot(e.prototype,i),n&&ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function at(t){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(t)}function lt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ct(n.key),n)}}function ct(t){var e=function(t,e){if("object"!=at(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==at(e)?e:String(e)}var ut=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){var e=this;$(".csv_movement_type_select",t).each((function(t,i){e.enforcePaymentMethod($(i))})).change((function(t){e.enforcePaymentMethod($(t.currentTarget))})),t.hasClass("movement-modal")?this.initModals(t):t.find(".movement-modal").each((function(t,i){e.initModals(i)})),$(".movement-type-selector",t).change((function(t){var e=$(t.currentTarget),i=e.find("option:selected").val(),n=e.closest("form").find(".selectors");a.A.fetchNode("movements/create?type="+i,n)})),t.hasClass("movement-type-editor")&&this.movementTypeEditor(t)}},{key:"initModals",value:function(t){$("input[name=amount]",t).change((function(){var t=$(this).closest(".movement-modal").find(".sender-credit-status");t.length&&(a.A.parseFloatC($(this).val())>a.A.parseFloatC(t.find(".current-sender-credit").text())?t.removeClass("alert-success").addClass("alert-danger"):t.removeClass("alert-danger").addClass("alert-success"))}))}},{key:"movementTypeEditor",value:function(t){$("select[name=sender_type], select[name=target_type]",t).change((function(t){var e=$(this).closest(".movement-type-editor"),i=e.find("select[name=sender_type] option:selected").val(),n=e.find("select[name=target_type] option:selected").val(),o=e.find("table");o.find("tbody tr").each((function(){var t=$(this).attr("data-target-class");$(this).toggleClass("hidden","App\\Gas"!=t&&t!=i&&t!=n)})),o.find("thead input[data-active-for]").each((function(){var t=$(this).attr("data-active-for");""!=t&&t!=i&&t!=n?$(this).prop("checked",!1).prop("disabled",!0).change():$(this).prop("disabled",!1)}))})),$("table thead input:checkbox",t).change((function(){var t=$(this).prop("checked"),e=$(this).closest("th").index();0==t?$(this).closest("table").find("tbody tr").each((function(){var t=$(this).find("td:nth-child("+(e+1)+")");t.find("input[value=ignore]").click(),t.find("label, input").prop("disabled",!0)})):$(this).closest("table").find("tbody tr").each((function(){$(this).find("td:nth-child("+(e+1)+")").find("label, input").prop("disabled",!1)}))}))}},{key:"enforcePaymentMethod",value:function(t){var e=t.find("option:selected").val(),i=null,n=null;JSON.parse(t.closest(".modal").find("input[name=matching_methods_for_movement_types]").val()).forEach((function(t){if(t.method==e)return i=t.default_payment,n=t.payments,!1})),null!=n?t.closest("tr").find(".csv_movement_method_select").find("option").each((function(){var t=$(this).val();n.indexOf(t)>=0?($(this).prop("disabled",!1),$(this).prop("selected",i==t)):$(this).prop("disabled",!0)})):t.closest("tr").find(".csv_movement_method_select").find("option").prop("disabled",!1)}}],(i=null)&&lt(e.prototype,i),n&&lt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const dt=ut;function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function pt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ft(n.key),n)}}function ft(t){var e=function(t,e){if("object"!=ht(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ht(e)?e:String(e)}i(758),i(914);const mt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){$("#import_csv_sorter .im_draggable",t).each((function(){$(this).draggable({helper:"clone",revert:"invalid"})})),$("#import_csv_sorter .im_droppable",t).droppable({over:function(t,e){$(this).addClass("bg-success text-white")},out:function(t,e){$(this).removeClass("bg-success text-white")},drop:function(t,e){var i=e.draggable.clone();i.find("input:hidden").attr("name","column[]"),$(this).removeClass("bg-success text-white").find(".column_content").empty().append(i.contents())}})}}],(i=null)&&pt(e.prototype,i),n&&pt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();var gt=i(676);const vt={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},yt=8,bt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};function _t(t,e){return"number"==typeof t?t+e:t}function wt(t){if("string"==typeof t){const e=/^(\d+)\s*(.*)$/g.exec(t);return{value:e?+e[1]:0,unit:(null==e?void 0:e[2])||void 0}}return{value:Number(t)}}function xt(t){return String.fromCharCode(97+t%26)}const kt=2221e-19;function Ct(t,e,i){return e/i.range*t}function Tt(t,e){const i=Math.pow(10,e||yt);return Math.round(t*i)/i}function At(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o={high:e.high,low:e.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};o.valueRange=o.high-o.low,o.oom=function(t){return Math.floor(Math.log(Math.abs(t))/Math.LN10)}(o.valueRange),o.step=Math.pow(10,o.oom),o.min=Math.floor(o.low/o.step)*o.step,o.max=Math.ceil(o.high/o.step)*o.step,o.range=o.max-o.min,o.numberOfSteps=Math.round(o.range/o.step);const s=Ct(t,o.step,o)<i,r=n?function(t){if(1===t)return t;function e(t,i){return t%i==0?i:e(i,t%i)}function i(t){return t*t+1}let n,o=2,s=2;if(t%2==0)return 2;do{o=i(o)%t,s=i(i(s))%t,n=e(Math.abs(o-s),t)}while(1===n);return n}(o.range):0;if(n&&Ct(t,1,o)>=i)o.step=1;else if(n&&r<o.step&&Ct(t,r,o)>=i)o.step=r;else{let e=0;for(;;){if(s&&Ct(t,o.step,o)<=i)o.step*=2;else{if(s||!(Ct(t,o.step/2,o)>=i))break;if(o.step/=2,n&&o.step%1!=0){o.step*=2;break}}if(e++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}function a(t,e){return t===(t+=e)&&(t*=1+(e>0?kt:-kt)),t}o.step=Math.max(o.step,kt);let l=o.min,c=o.max;for(;l+o.step<=o.low;)l=a(l,o.step);for(;c-o.step>=o.high;)c=a(c,-o.step);o.min=l,o.max=c,o.range=o.max-o.min;const u=[];for(let t=o.min;t<=o.max;t=a(t,o.step)){const e=Tt(t);e!==u[u.length-1]&&u.push(e)}return o.values=u,o}function Dt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(let e=0;e<i.length;e++){const n=i[e];for(const e in n){const i=n[e];t[e]="object"!=typeof i||null===i||i instanceof Array?i:Dt(t[e],i)}}return t}const Et=t=>t;function St(t,e){return Array.from({length:t},e?(t,i)=>e(i):()=>{})}function $t(t,e){return null!==t&&"object"==typeof t&&Reflect.has(t,e)}function Pt(t){return null!==t&&isFinite(t)}function Ot(t){return!t&&0!==t}function Lt(t){return Pt(t)?Number(t):void 0}function jt(t,e){let i=0;t[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"reduceRight":"reduce"](((t,n,o)=>e(n,i++,o)),void 0)}function It(t,e){const i=Array.isArray(t)?t[e]:$t(t,"data")?t.data[e]:null;return $t(i,"meta")?i.meta:void 0}function Mt(t){return null==t||"number"==typeof t&&isNaN(t)}function Nt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";return function(t){return"object"==typeof t&&null!==t&&(Reflect.has(t,"x")||Reflect.has(t,"y"))}(t)&&$t(t,e)?Lt(t[e]):Lt(t)}function Ht(t,e,i){const n={high:void 0===(e={...e,...i?"x"===i?e.axisX:e.axisY:{}}).high?-Number.MAX_VALUE:+e.high,low:void 0===e.low?Number.MAX_VALUE:+e.low},o=void 0===e.high,s=void 0===e.low;return(o||s)&&function t(e){if(!Mt(e))if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{const t=Number(i&&$t(e,i)?e[i]:e);o&&t>n.high&&(n.high=t),s&&t<n.low&&(n.low=t)}}(t),(e.referenceValue||0===e.referenceValue)&&(n.high=Math.max(e.referenceValue,n.high),n.low=Math.min(e.referenceValue,n.low)),n.high<=n.low&&(0===n.low?n.high=1:n.low<0?n.high=0:(n.high>0||(n.high=1),n.low=0)),n}function Ft(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;const s={labels:(t.labels||[]).slice(),series:qt(t.series,n,o)},r=s.labels.length;return!function(t){return!!Array.isArray(t)&&t.every(Array.isArray)}(s.series)?e=s.series.length:(e=Math.max(r,...s.series.map((t=>t.length))),s.series.forEach((t=>{t.push(...St(Math.max(0,e-t.length)))}))),s.labels.push(...St(Math.max(0,e-r),(()=>""))),i&&function(t){var e;null===(e=t.labels)||void 0===e||e.reverse(),t.series.reverse();for(const e of t.series)$t(e,"data")?e.data.reverse():Array.isArray(e)&&e.reverse()}(s),s}function Rt(t,e){if(!Mt(t))return e?function(t,e){let i,n;if("object"!=typeof t){const o=Lt(t);"x"===e?i=o:n=o}else $t(t,"x")&&(i=Lt(t.x)),$t(t,"y")&&(n=Lt(t.y));if(void 0!==i||void 0!==n)return{x:i,y:n}}(t,e):Lt(t)}function Bt(t,e){return Array.isArray(t)?t.map((t=>$t(t,"value")?Rt(t.value,e):Rt(t,e))):Bt(t.data,e)}function qt(t,e,i){if(function(t){return Array.isArray(t)&&t.every((t=>Array.isArray(t)||$t(t,"data")))}(t))return t.map((t=>Bt(t,e)));const n=Bt(t,e);return i?n.map((t=>[t])):n}function Ut(t){let e="";return null==t?t:(e="number"==typeof t?""+t:"object"==typeof t?JSON.stringify({data:t}):String(t),Object.keys(bt).reduce(((t,e)=>t.replaceAll(e,bt[e])),e))}class Wt{call(t,e){return this.svgElements.forEach((i=>Reflect.apply(i[t],i,e))),this}attr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("attr",e)}elem(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("elem",e)}root(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("root",e)}getNode(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("getNode",e)}foreignObject(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("foreignObject",e)}text(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("text",e)}empty(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("empty",e)}remove(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("remove",e)}addClass(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("addClass",e)}removeClass(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("removeClass",e)}removeAllClasses(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("removeAllClasses",e)}animate(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.call("animate",e)}constructor(t){this.svgElements=[];for(let e=0;e<t.length;e++)this.svgElements.push(new Yt(t[e]))}}const zt={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};function Vt(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;const{easing:s,...r}=i,a={};let l,c;s&&(l=Array.isArray(s)?s:zt[s]),r.begin=_t(r.begin,"ms"),r.dur=_t(r.dur,"ms"),l&&(r.calcMode="spline",r.keySplines=l.join(" "),r.keyTimes="0;1"),n&&(r.fill="freeze",a[e]=r.from,t.attr(a),c=wt(r.begin||0).value,r.begin="indefinite");const u=t.elem("animate",{attributeName:e,...r});n&&setTimeout((()=>{try{u._node.beginElement()}catch(i){a[e]=r.to,t.attr(a),u.remove()}}),c);const d=u.getNode();o&&d.addEventListener("beginEvent",(()=>o.emit("animationBegin",{element:t,animate:d,params:i}))),d.addEventListener("endEvent",(()=>{o&&o.emit("animationEnd",{element:t,animate:d,params:i}),n&&(a[e]=r.to,t.attr(a),u.remove())}))}class Yt{attr(t,e){return"string"==typeof t?e?this._node.getAttributeNS(e,t):this._node.getAttribute(t):(Object.keys(t).forEach((e=>{if(void 0!==t[e])if(-1!==e.indexOf(":")){const i=e.split(":");this._node.setAttributeNS(vt[i[0]],e,String(t[e]))}else this._node.setAttribute(e,String(t[e]))})),this)}elem(t,e,i){return new Yt(t,e,i,this,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}parent(){return this._node.parentNode instanceof SVGElement?new Yt(this._node.parentNode):null}root(){let t=this._node;for(;"svg"!==t.nodeName&&t.parentElement;)t=t.parentElement;return new Yt(t)}querySelector(t){const e=this._node.querySelector(t);return e?new Yt(e):null}querySelectorAll(t){const e=this._node.querySelectorAll(t);return new Wt(e)}getNode(){return this._node}foreignObject(t,e,i){let n,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"==typeof t){const e=document.createElement("div");e.innerHTML=t,n=e.firstChild}else n=t;n instanceof Element&&n.setAttribute("xmlns",vt.xmlns);const s=this.elem("foreignObject",e,i,o);return s._node.appendChild(n),s}text(t){return this._node.appendChild(document.createTextNode(t)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var t;return null===(t=this._node.parentNode)||void 0===t||t.removeChild(this._node),this.parent()}replace(t){var e;return null===(e=this._node.parentNode)||void 0===e||e.replaceChild(t._node,this._node),t}append(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this._node.firstChild?this._node.insertBefore(t._node,this._node.firstChild):this._node.appendChild(t._node),this}classes(){const t=this._node.getAttribute("class");return t?t.trim().split(/\s+/):[]}addClass(t){return this._node.setAttribute("class",this.classes().concat(t.trim().split(/\s+/)).filter((function(t,e,i){return i.indexOf(t)===e})).join(" ")),this}removeClass(t){const e=t.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter((t=>-1===e.indexOf(t))).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;return Object.keys(t).forEach((n=>{const o=t[n];Array.isArray(o)?o.forEach((t=>Vt(this,n,t,!1,i))):Vt(this,n,o,e,i)})),this}constructor(t,e,i,n,o=!1){t instanceof Element?this._node=t:(this._node=document.createElementNS(vt.svg,t),"svg"===t&&this.attr({"xmlns:ct":vt.ct})),e&&this.attr(e),i&&this.addClass(i),n&&(o&&n._node.firstChild?n._node.insertBefore(this._node,n._node.firstChild):n._node.appendChild(this._node))}}function Xt(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"100%",n=arguments.length>3?arguments[3]:void 0;Array.from(t.querySelectorAll("svg")).filter((t=>t.getAttributeNS(vt.xmlns,"ct"))).forEach((e=>t.removeChild(e)));const o=new Yt("svg").attr({width:e,height:i}).attr({style:"width: ".concat(e,"; height: ").concat(i,";")});return n&&o.addClass(n),t.appendChild(o.getNode()),o}function Gt(t,e){var i,n,o,s;const r=Boolean(e.axisX||e.axisY),a=(null===(i=e.axisY)||void 0===i?void 0:i.offset)||0,l=(null===(n=e.axisX)||void 0===n?void 0:n.offset)||0,c=null===(o=e.axisY)||void 0===o?void 0:o.position,u=null===(s=e.axisX)||void 0===s?void 0:s.position;let d=t.width()||wt(e.width).value||0,h=t.height()||wt(e.height).value||0;const p="number"==typeof(f=e.chartPadding)?{top:f,right:f,bottom:f,left:f}:void 0===f?{top:0,right:0,bottom:0,left:0}:{top:"number"==typeof f.top?f.top:0,right:"number"==typeof f.right?f.right:0,bottom:"number"==typeof f.bottom?f.bottom:0,left:"number"==typeof f.left?f.left:0};var f;d=Math.max(d,a+p.left+p.right),h=Math.max(h,l+p.top+p.bottom);const m={x1:0,x2:0,y1:0,y2:0,padding:p,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return r?("start"===u?(m.y2=p.top+l,m.y1=Math.max(h-p.bottom,m.y2+1)):(m.y2=p.top,m.y1=Math.max(h-p.bottom-l,m.y2+1)),"start"===c?(m.x1=p.left+a,m.x2=Math.max(d-p.right,m.x1+1)):(m.x1=p.left,m.x2=Math.max(d-p.right-a,m.x1+1))):(m.x1=p.left,m.x2=Math.max(d-p.right,m.x1+1),m.y2=p.top,m.y1=Math.max(h-p.bottom,m.y2+1)),m}function Qt(t,e,i,n){const o=t.elem("rect",{x:e.x1,y:e.y2,width:e.width(),height:e.height()},i,!0);n.emit("draw",{type:"gridBackground",group:t,element:o})}function Kt(t,e,i){let n;const o=[];function s(o){const s=n;n=Dt({},t),e&&e.forEach((t=>{window.matchMedia(t[0]).matches&&(n=Dt(n,t[1]))})),i&&o&&i.emit("optionsChanged",{previousOptions:s,currentOptions:n})}if(!window.matchMedia)throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return e&&e.forEach((t=>{const e=window.matchMedia(t[0]);e.addEventListener("change",s),o.push(e)})),s(),{removeMediaQueryListeners:function(){o.forEach((t=>t.removeEventListener("change",s)))},getCurrentOptions:()=>n}}Yt.Easing=zt;class Jt{on(t,e){const{allListeners:i,listeners:n}=this;"*"===t?i.add(e):(n.has(t)||n.set(t,new Set),n.get(t).add(e))}off(t,e){const{allListeners:i,listeners:n}=this;if("*"===t)e?i.delete(e):i.clear();else if(n.has(t)){const i=n.get(t);e?i.delete(e):i.clear(),i.size||n.delete(t)}}emit(t,e){const{allListeners:i,listeners:n}=this;n.has(t)&&n.get(t).forEach((t=>t(e))),i.forEach((i=>i(t,e)))}constructor(){this.listeners=new Map,this.allListeners=new Set}}const Zt=new WeakMap;class te{update(t,e){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n;(t&&(this.data=t||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),e)&&(this.options=Dt({},i?this.options:this.defaultOptions,e),this.initializeTimeoutId||(null===(n=this.optionsProvider)||void 0===n||n.removeMediaQueryListeners(),this.optionsProvider=Kt(this.options,this.responsiveOptions,this.eventEmitter)));return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){var t;this.initializeTimeoutId?window.clearTimeout(this.initializeTimeoutId):(window.removeEventListener("resize",this.resizeListener),null===(t=this.optionsProvider)||void 0===t||t.removeMediaQueryListeners());return Zt.delete(this.container),this}on(t,e){return this.eventEmitter.on(t,e),this}off(t,e){return this.eventEmitter.off(t,e),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=Kt(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",(()=>this.update())),this.options.plugins&&this.options.plugins.forEach((t=>{Array.isArray(t)?t[0](this,t[1]):t(this)})),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(t,e,i,n,o){this.data=e,this.defaultOptions=i,this.options=n,this.responsiveOptions=o,this.eventEmitter=new Jt,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout((()=>this.initialize()),0);const s="string"==typeof t?document.querySelector(t):t;if(!s)throw new Error("Target element is not found");this.container=s;const r=Zt.get(s);r&&r.detach(),Zt.set(s,this)}}const ee={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class ie{createGridAndLabels(t,e,i,n){const o="x"===this.units.pos?i.axisX:i.axisY,s=this.ticks.map(((t,e)=>this.projectValue(t,e))),r=this.ticks.map(o.labelInterpolationFnc);s.forEach(((a,l)=>{const c=r[l],u={x:0,y:0};let d;d=s[l+1]?s[l+1]-a:Math.max(this.axisLength-a,this.axisLength/this.ticks.length),""!==c&&Ot(c)||("x"===this.units.pos?(a=this.chartRect.x1+a,u.x=i.axisX.labelOffset.x,"start"===i.axisX.position?u.y=this.chartRect.padding.top+i.axisX.labelOffset.y+5:u.y=this.chartRect.y1+i.axisX.labelOffset.y+5):(a=this.chartRect.y1-a,u.y=i.axisY.labelOffset.y-d,"start"===i.axisY.position?u.x=this.chartRect.padding.left+i.axisY.labelOffset.x:u.x=this.chartRect.x2+i.axisY.labelOffset.x+10),o.showGrid&&function(t,e,i,n,o,s,r,a){const l={["".concat(i.units.pos,"1")]:t,["".concat(i.units.pos,"2")]:t,["".concat(i.counterUnits.pos,"1")]:n,["".concat(i.counterUnits.pos,"2")]:n+o},c=s.elem("line",l,r.join(" "));a.emit("draw",{type:"grid",axis:i,index:e,group:s,element:c,...l})}(a,l,this,this.gridOffset,this.chartRect[this.counterUnits.len](),t,[i.classNames.grid,i.classNames[this.units.dir]],n),o.showLabel&&function(t,e,i,n,o,s,r,a,l,c){const u={[o.units.pos]:t+r[o.units.pos],[o.counterUnits.pos]:r[o.counterUnits.pos],[o.units.len]:e,[o.counterUnits.len]:Math.max(0,s-10)},d=Math.round(u[o.units.len]),h=Math.round(u[o.counterUnits.len]),p=document.createElement("span");p.className=l.join(" "),p.style[o.units.len]=d+"px",p.style[o.counterUnits.len]=h+"px",p.textContent=String(n);const f=a.foreignObject(p,{style:"overflow: visible;",...u});c.emit("draw",{type:"label",axis:o,index:i,group:a,element:f,text:n,...u})}(a,d,l,c,this,o.offset,u,e,[i.classNames.label,i.classNames[this.units.dir],"start"===o.position?i.classNames[o.position]:i.classNames.end],n))}))}constructor(t,e,i){this.units=t,this.chartRect=e,this.ticks=i,this.counterUnits=t===ee.x?ee.y:ee.x,this.axisLength=e[this.units.rectEnd]-e[this.units.rectStart],this.gridOffset=e[this.units.rectOffset]}}class ne extends ie{projectValue(t){const e=Number(Nt(t,this.units.pos));return this.axisLength*(e-this.bounds.min)/this.bounds.range}constructor(t,e,i,n){const o=n.highLow||Ht(e,n,t.pos),s=At(i[t.rectEnd]-i[t.rectStart],o,n.scaleMinSpace||20,n.onlyInteger),r={min:s.min,max:s.max};super(t,i,s.values),this.bounds=s,this.range=r}}class oe extends ie{projectValue(t,e){return this.stepLength*e}constructor(t,e,i,n){const o=n.ticks||[];super(t,i,o);const s=Math.max(1,o.length-(n.stretch?1:0));this.stepLength=this.axisLength/s,this.stretch=Boolean(n.stretch)}}function se(t){return e=t,i=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Array.from(e).reduce(((t,e)=>({x:t.x+($t(e,"x")?e.x:0),y:t.y+($t(e,"y")?e.y:0)})),{x:0,y:0})},St(Math.max(...e.map((t=>t.length))),(t=>i(...e.map((e=>e[t])))));var e,i}const re={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:Et,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:Et,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class ae extends te{createChart(t){const{data:e}=this,i=Ft(e,t.reverseData,t.horizontalBars?"x":"y",!0),n=Xt(this.container,t.width,t.height,t.classNames.chart+(t.horizontalBars?" "+t.classNames.horizontalBars:"")),o=t.stackBars&&!0!==t.stackMode&&i.series.length?Ht([se(i.series)],t,t.horizontalBars?"x":"y"):Ht(i.series,t,t.horizontalBars?"x":"y");this.svg=n;const s=n.elem("g").addClass(t.classNames.gridGroup),r=n.elem("g"),a=n.elem("g").addClass(t.classNames.labelGroup);"number"==typeof t.high&&(o.high=t.high),"number"==typeof t.low&&(o.low=t.low);const l=Gt(n,t);let c;const u=t.distributeSeries&&t.stackBars?i.labels.slice(0,1):i.labels;let d,h,p;t.horizontalBars?(c=h=void 0===t.axisX.type?new ne(ee.x,i.series,l,{...t.axisX,highLow:o,referenceValue:0}):new t.axisX.type(ee.x,i.series,l,{...t.axisX,highLow:o,referenceValue:0}),d=p=void 0===t.axisY.type?new oe(ee.y,i.series,l,{ticks:u}):new t.axisY.type(ee.y,i.series,l,t.axisY)):(d=h=void 0===t.axisX.type?new oe(ee.x,i.series,l,{ticks:u}):new t.axisX.type(ee.x,i.series,l,t.axisX),c=p=void 0===t.axisY.type?new ne(ee.y,i.series,l,{...t.axisY,highLow:o,referenceValue:0}):new t.axisY.type(ee.y,i.series,l,{...t.axisY,highLow:o,referenceValue:0}));const f=t.horizontalBars?l.x1+c.projectValue(0):l.y1-c.projectValue(0),m="accumulate"===t.stackMode,g="accumulate-relative"===t.stackMode,v=[],y=[];let b=v;d.createGridAndLabels(s,a,t,this.eventEmitter),c.createGridAndLabels(s,a,t,this.eventEmitter),t.showGridBackground&&Qt(s,l,t.classNames.gridBackground,this.eventEmitter),jt(e.series,((n,o)=>{const s=o-(e.series.length-1)/2;let a;a=t.distributeSeries&&!t.stackBars?d.axisLength/i.series.length/2:t.distributeSeries&&t.stackBars?d.axisLength/2:d.axisLength/i.series[o].length/2;const u=r.elem("g"),_=$t(n,"name")&&n.name,w=$t(n,"className")&&n.className,x=$t(n,"meta")?n.meta:void 0;_&&u.attr({"ct:series-name":_}),x&&u.attr({"ct:meta":Ut(x)}),u.addClass([t.classNames.series,w||"".concat(t.classNames.series,"-").concat(xt(o))].join(" ")),i.series[o].forEach(((e,r)=>{const _=$t(e,"x")&&e.x,w=$t(e,"y")&&e.y;let x,k;x=t.distributeSeries&&!t.stackBars?o:t.distributeSeries&&t.stackBars?0:r,k=t.horizontalBars?{x:l.x1+c.projectValue(_||0,r,i.series[o]),y:l.y1-d.projectValue(w||0,x,i.series[o])}:{x:l.x1+d.projectValue(_||0,x,i.series[o]),y:l.y1-c.projectValue(w||0,r,i.series[o])},d instanceof oe&&(d.stretch||(k[d.units.pos]+=a*(t.horizontalBars?-1:1)),k[d.units.pos]+=t.stackBars||t.distributeSeries?0:s*t.seriesBarDistance*(t.horizontalBars?-1:1)),g&&(b=w>=0||_>=0?v:y);const C=b[r]||f;if(b[r]=C-(f-k[d.counterUnits.pos]),void 0===e)return;const T={["".concat(d.units.pos,"1")]:k[d.units.pos],["".concat(d.units.pos,"2")]:k[d.units.pos]};t.stackBars&&(m||g||!t.stackMode)?(T["".concat(d.counterUnits.pos,"1")]=C,T["".concat(d.counterUnits.pos,"2")]=b[r]):(T["".concat(d.counterUnits.pos,"1")]=f,T["".concat(d.counterUnits.pos,"2")]=k[d.counterUnits.pos]),T.x1=Math.min(Math.max(T.x1,l.x1),l.x2),T.x2=Math.min(Math.max(T.x2,l.x1),l.x2),T.y1=Math.min(Math.max(T.y1,l.y2),l.y1),T.y2=Math.min(Math.max(T.y2,l.y2),l.y1);const A=It(n,r),D=u.elem("line",T,t.classNames.bar).attr({"ct:value":[_,w].filter(Pt).join(","),"ct:meta":Ut(A)});this.eventEmitter.emit("draw",{type:"bar",value:e,index:r,meta:A,series:n,seriesIndex:o,axisX:h,axisY:p,chartRect:l,group:u,element:D,...T})}))}),t.reverseData),this.eventEmitter.emit("created",{chartRect:l,axisX:h,axisY:p,svg:n,options:t})}constructor(t,e,i,n){super(t,e,re,Dt({},re,i),n),this.data=e}}function le(t){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},le(t)}function ce(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ue(n.key),n)}}function ue(t){var e=function(t,e){if("object"!=le(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==le(e)?e:String(e)}const de=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,n=[{key:"init",value:function(t){var e=this;setTimeout((function(){0!=$("#stats-summary-form",t).length&&(e.runSummaryStats(),$("#stats-summary-form").submit((function(t){t.preventDefault(),e.runSummaryStats()}))),0!=$("#stats-supplier-form",t).length&&(e.runSupplierStats(),$("#stats-supplier-form").submit((function(t){t.preventDefault(),e.runSupplierStats()})))}),500)}},{key:"doEmpty",value:function(t){$(t).empty().css("height","auto").append($("#templates .alert").clone())}},{key:"commonGraphConfig",value:function(){return{horizontalBars:!0,axisX:{onlyInteger:!0},axisY:{offset:220}}}},{key:"doGraph",value:function(t,e){0==e.labels.length?this.doEmpty(t):0!=$(t).length&&($(t).empty().css("height",40*e.labels.length),new ae(t,e,this.commonGraphConfig()))}},{key:"doGraphs",value:function(t,e){this.doGraph("#stats-"+t+"-expenses",e.expenses),this.doGraph("#stats-"+t+"-users",e.users),this.doGraph("#stats-"+t+"-categories",e.categories)}},{key:"loadingGraphs",value:function(t){$("#stats-"+t+"-expenses").empty().append(a.A.j().makeSpinner()),$("#stats-"+t+"-users").empty().append(a.A.j().makeSpinner()),$("#stats-"+t+"-categories").empty().append(a.A.j().makeSpinner())}},{key:"runSummaryStats",value:function(){var t=this;this.loadingGraphs("generic"),$.getJSON("/stats/summary",{startdate:$("#stats-summary-form input[name=startdate]").val(),enddate:$("#stats-summary-form input[name=enddate]").val(),target:$("#stats-summary-form input[name=target]").val(),type:$("#stats-summary-form select[name=type]").val(),format:"json"},(function(e){t.doGraphs("generic",e)}))}},{key:"runSupplierStats",value:function(){var t=this;this.loadingGraphs("products"),$.getJSON("/stats/supplier",{supplier:$("#stats-supplier-form select[name=supplier] option:selected").val(),startdate:$("#stats-supplier-form input[name=startdate]").val(),enddate:$("#stats-supplier-form input[name=enddate]").val(),target:$("#stats-supplier-form input[name=target]").val(),type:$("#stats-summary-form select[name=type]").val(),format:"json"},(function(e){t.doGraphs("products",e)}))}}],(i=null)&&ce(e.prototype,i),n&&ce(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();window.$=window.jQuery=i.g.$=i.g.jQuery=i(692),i(454),i(758),i(914),i(97),i(497),i(249),i(400),i(195),i(995),i(720);var he=!1,pe=null,fe={reloadMeasureDiscrete:function(t,e){a.A.postAjax({method:"GET",url:"measures/discretes",dataType:"JSON",success:function(t){pe=t}})}};function me(t){function e(t){t.each((function(){ye($(this))})).on("change",(function(t){ye($(this))}))}null==t&&(t=$("body")),$(".nav-tabs a",t).click((function(t){t.preventDefault(),$(this).tab("show")})),$("input:file.immediate-run",t).each((function(){$(this).fileupload({done:function(t,e){ge($(t.target),e.result)}})})),$(".dynamic-tree-box",t).dynamictree(),$(".completion-rows",t).each((function(){var t;t=$(this),$(t).find("input:text").each((function(){if(1!=$(this).hasClass("ui-autocomplete-input")){var t=$(this).closest(".completion-rows").attr("data-completion-source");$(this).autocomplete({source:t,appendTo:$(this).closest(".completion-rows"),select:function(t,e){var i=$(this).closest("li");i.before('<li class="list-group-item" data-object-id="'+e.item.id+'">'+e.item.label+'<div class="btn btn-xs btn-danger float-end"><i class="bi-x-lg"></i></div></li>');var n=i.closest(".completion-rows"),o=gt.A[n.attr("data-callback-add")];"function"==typeof o&&o(n,e.item.id)}})}})),$(t).on("click",".btn-danger",(function(){var t=$(this).closest("li"),e=t.closest(".completion-rows"),i=gt.A[e.attr("data-callback-remove")];"function"==typeof i&&i(e,t.attr("data-object-id")),t.remove()}))})),t.hasClass("modal")?t.draggable({handle:".modal-header"}):$(".modal",t).draggable({handle:".modal-header"});var i=$(".measure-selector",t);0!=i.length&&(null==pe?a.A.postAjax({method:"GET",url:"measures/discretes",dataType:"JSON",success:function(t){pe=t,e(i)}}):e(i)),$(".postponed",t).appendTo("#postponed").removeClass("postponed"),$("ul[role=tablist]",t).each((function(){0==$(this).find("li.active").length&&$(this).find("li a").first().tab("show")})),a.A.init(t),z.init(t),I.init(t),p.init(t),l.A.init(t),y.init(t),J.init(t),it.init(t),C.init(t),S.init(t),rt.init(t),dt.init(t),mt.init(t),de.init(t)}function ge(t,e){try{t.closest(".modal").modal("hide");var i=$(e);a.A.j().initElements(i),i.modal("show")}catch(t){var n=JSON.parse(e),o=$("#service-modal");o.find(".modal-body").empty().append("<p>"+n.message+"</p>"),o.modal("show")}}function ve(t,e){if(1==he)return!1;var i;if(he=!0,0!=(i=t.find("input[name=test-feedback]")).length&&"error"==e.status)return a.A.displayServerError(t,e),he=!1,!1;if(l.A.innerCallbacks(t,e),0!=(i=t.find("input[name=update-select]")).length){var n=i.val();$("select[name="+n+"]").each((function(){var t=$('<option value="'+e.id+'" selected="selected">'+e.name+"</option>");if(e.hasOwnProperty("parent")&&null!=e.parent){for(var i=$(this).find("option[value="+e.parent+"]").first(),n=i.text().replace(/&nbsp;/g," "),o="&nbsp;&nbsp;",s=0;s<n.length&&" "==n[s];s++)o+="&nbsp;";t.prepend(o),i.after(t)}else{var r=["id","name","status"];for(var a in e)e.hasOwnProperty(a)&&r.indexOf(a)<0&&t.attr("data-"+a,e[a]);var l=$(this).find("option[value=run_modal]");0!=l.length?l.before(t):$(this).append(0)}}))}return 0!=(i=t.find("input[name=update-field]")).length&&i.each((function(){var t=a.A.sanitizeId($(this).val()),i=$("[data-updatable-name="+t+"]"),n=i.attr("data-updatable-field");null==n&&(n=t);var o=e[n];i.is("input:hidden")?i.val(o):i.html(o)})),0!=(i=t.find("input[name=post-saved-refetch]")).length&&i.each((function(){var t=a.A.sanitizeId($(this).val()),e=$(t),i=e.attr("data-fetch-url");null==i&&(i=$(this).attr("data-fetch-url")),a.A.j().fetchNode(i,e)})),0!=(i=t.find("input[name^=post-saved-function]")).length&&i.each((function(){var i=$(this).val(),n=fe[i]||gt.A[i];"function"==typeof n&&n(t,e)})),0!=(i=t.find("input[name^=reload-portion]")).length&&i.each((function(){var t=$(this).val();$(t).each((function(){a.A.j().reloadNode($(this))}))})),0!=(i=t.find("input[name=void-form]")).length&&i.each((function(){t.find("input[type!=hidden]").val(""),t.find("textarea").val(""),t.find("select option:first").prop("selected",!0),t.find(".error-message").remove()})),0!=(i=t.find("input[name=close-modal]")).length&&i.each((function(){var e=$(this).val(),i=$(e);0==i.length&&(i=t.parents(".modal")),0!=i.length&&i.modal("hide")})),0!=(i=t.find("input[name=close-all-modal]")).length&&$(".modal.fade.show").modal("hide"),0!=(i=t.find("input[name=reload-whole-page]")).length&&location.reload(),he=!1,!0}function ye(t){var e=t.closest("form"),i=t.find("option:selected").val(),n="1"==pe[i];e.find("input[name=portion_quantity]").prop("disabled",n);var o=e.find("input[name=multiple]"),s=e.find("input[name=min_quantity], input[name=max_quantity], input[name=max_available]");if(n)e.find("input[name=portion_quantity]").val("0.000"),t.siblings(".form-text").removeClass("d-none"),o.attr("data-enforce-minimum",1),o.val(parseInt(o.val())),o.val()<1&&o.val("1.000"),s.attr("data-enforce-integer",1);else{var r=e.find("input[name=weight]");0==parseFloat(r.val())&&r.val("1"),t.siblings(".form-text").addClass("d-none"),o.removeAttr("data-enforce-minimum"),s.removeAttr("data-enforce-integer")}}$.fn.tagName=function(){return this.prop("tagName").toLowerCase()},$(document).ready((function(){a.A.j().init({initFunction:function(t){me(t)}});var t=$(".navbar").first();$("body").css("padding-top",2*t.height()+"px"),$("#preloader").hide(),$.ajaxSetup({cache:!1,headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}),$(document).ajaxError((function(t,e){401==e.status&&(window.location.href="/login")})),""!=location.hash&&setTimeout((function(){var t=location.hash;"#"===t.charAt(0)&&(t=t.substr(1)),$(".accordion-item[data-element-id="+t+"]").find(".accordion-button").first().click()}),100),$("#prompt-message-modal").modal("show"),$("#home-notifications .alert").on("closed.bs.alert",(function(){var t=$(this).find("input:hidden[name=notification_id]").val();$.post("notifications/markread/"+t),0==$("#home-notifications .alert").length&&$("#home-notifications").hide("fadeout")})),$(".remember-checkbox").each((function(){var t=$(this).attr("data-attribute"),e=s.get(t);void 0!==e?$(this).prop("checked","true"==e):$(this).prop("checked","true"==$(this).attr("data-attribute-default"))})).change((function(){var t=$(this).attr("data-attribute"),e=$(this).prop("checked")?"true":"false";s.set(t,e)})),$("body").on("submit",".main-form",(function(t){t.preventDefault();var e=$(this);e.find("button[type=submit]").prop("disabled",!0),a.A.postAjax({method:e.attr("method"),url:e.attr("action"),data:new FormData(this),dataType:"JSON",processData:!1,contentType:!1,success:function(t){t.hasOwnProperty("status")&&"error"==t.status?(a.A.displayServerError(e,t),e.find("button[type=submit]").prop("disabled",!1)):(ve(e,t),l.A.closeParent(e))}})})),$("body").on("click",".main-form .delete-button",(function(t){t.preventDefault();var e=$(this).closest(".main-form");confirm(_("Sei sicuro di voler eliminare questo elemento?"))&&(e.find("button").prop("disabled",!0),$.ajax({method:"DELETE",url:e.attr("action"),dataType:"json",success:function(t){var i=l.A.closeParent(e),n=i.closest(".loadable-list");i.remove(),l.A.testListsEmptiness(n)}}))})),$("body").on("submit",".inner-form",(function(t){t.preventDefault();var e=$(this),i=!0,n=e.find("input[name^=pre-saved-function]");if(0!=n.length&&n.each((function(){var t=gt.A[$(this).val()];if("function"==typeof t)try{t(e)}catch(t){i=!1}})),0!=i){a.A.spinSubmitButton(e);var o={method:e.attr("method"),url:e.attr("action"),dataType:"JSON",success:function(t){1==ve(e,t)?a.A.j().submitButton(e).each((function(){a.A.inlineFeedback($(this),_("Salvato!"))})):a.A.formErrorFeedback(e)},error:function(t){a.A.formErrorFeedback(e)}};e.find('input[type="file"]').length?(o.data=a.A.j().serializeFormData(e),o.processData=!1,o.contentType=!1):o.data=a.A.j().serializeForm(e),a.A.postAjax(o)}})),$("body").on("hide.bs.modal",".inner-modal",(function(t){var e,i;e=$(this),0!=(i=e.find("input[name=reload-portion]")).length&&i.each((function(){var t=$(this).val();a.A.j().reloadNode($(t))}))})),$("body").on("change",".auto-submit select",(function(t){var e=$(this).closest("form"),i=new FormData(e.get(0)),n=e.attr("method").toUpperCase();"PUT"==n&&(n="POST",i.append("_method","PUT")),$.ajax({method:n,url:e.attr("action"),data:i,processData:!1,contentType:!1,dataType:"json",success:function(t){ve(e,t)}})})),$("body").on("click",".variants-editor .delete-variant",(function(){var t=$(this).closest(".variants-editor"),e=$(this).closest("tr").attr("data-variant-id");a.A.postAjax({method:"DELETE",url:"variants/"+e,success:function(){a.A.j().reloadNode(t)}})})),$("body").on("click",".send-order-notifications",(function(t){t.preventDefault();var e=$(this);e.prop("disabled",!0);var i=e.attr("data-aggregate-id"),n=e.closest("form").find(".last-date");a.A.postAjax({url:"aggregates/notify/"+i,success:function(t){n.text(t),e.prop("disabled",!1)},error:function(){e.prop("disabled",!1)}})})),$("body").on("change",".orders-in-invoice-candidate input:checkbox",(function(){var t=$(this).closest("table"),e=0,i=0,n=0;t.find(".orders-in-invoice-candidate").each((function(){$(this).find("input:checkbox").prop("checked")&&(e+=a.A.parseFloatC($(this).find(".taxable label").text()),i+=a.A.parseFloatC($(this).find(".tax label").text()),n+=a.A.parseFloatC($(this).find(".total label").text()))}));var o=t.find(".orders-in-invoice-total");o.find(".taxable label").text(a.A.priceRound(e)),o.find(".tax label").text(a.A.priceRound(i)),o.find(".total label").text(a.A.priceRound(n))})),$("body").on("change",".notification-type-switch input",(function(){if(0!=$(this).prop("checked")){var t=$(this).closest("form");t.find("[name^=users]").closest(".row").toggle(),t.find("[name=end_date]").closest(".row").toggle(),t.find("[name=mailed]").closest(".row").toggle(),t.find("[name=file]").closest(".row").toggle()}})),$("body").on("show.bs.modal",".modal.wizard",(function(t){$(this).find(".wizard_page:not(:first)").hide(),$(this).find(".wizard_page:first").show()})).on("submit",".wizard_page form",(function(t){t.preventDefault(),t.stopPropagation();var e=$(this),i=e.serializeArray();return a.A.spinSubmitButton(e),$.ajax({method:e.attr("method"),url:e.attr("action"),data:i,dataType:"html",success:function(t){ge(e,t)},error:function(t){a.A.formErrorFeedback(e)}}),!1})),$("body").on("submit",".modal.close-on-submit form",(function(t){$(this).closest(".modal").modal("hide")})),J.initOnce(),it.initOnce(),"1"==$("meta[name=needs_tour]").attr("content")&&a.A.postAjax({method:"GET",url:"users/tour/start",dataType:"JSON",success:function(t){$("#prompt-message-modal").modal("hide"),a.A.isMobile()&&$(".navbar-toggler").click();var e=new r.TourGuideClient(t);e.onFinish((function(){a.A.postAjax({method:"GET",url:"users/tour/finish"}),a.A.isMobile()&&$(".navbar-toggler").click()})),e.start()}})}))},400:(t,e,i)=>{"use strict";i.r(e);var n=i(404);i(285),function(t){t.fn.dynamictree=function(){function e(t){for(var i=[],n=1;;){var o=t.find("> li:nth-child("+n+")");if(0==o.length)break;var s={id:o.attr("id"),name:o.find("input:text").val()};s.children=e(o.find("ul")),i.push(s),n++}return i}function i(t){0==t.find("ul").length&&t.append("<ul></ul>"),t.find("ul").sortable({items:"li",connectWith:".dynamic-tree, .dynamic-tree ul"})}function o(e){t(e.target).closest("li").remove()}function s(e){e.preventDefault();var n=t(e.target).closest(".dynamic-tree-box"),o=n.find("input[name=new_category]"),s=o.val(),r=n.find(".dynamic-tree"),a=t('<li class="list-group-item ui-sortable-handle">                 <div>                     <div class="btn btn-danger float-end dynamic-tree-remove"><i class="bi-x-lg"></i></div>                     <input name="names[]" class="form-control" value="'+s+'">                 </div>             </li>');return r.append(a),r.sortable("refresh"),i(a),o.val(""),!1}function r(i){i.preventDefault();var o=t(i.target),s=o.find("button[type=submit]");s.prop("disabled",!0);var r=e(o.find(".dynamic-tree"));return t.ajax({method:o.attr("method"),url:o.attr("action"),data:{_token:o.find("input[name=_token]").val(),_method:o.find("input[name=_method]").val(),serialized:r},success:function(){n.A.inlineFeedback(s,_("Salvato!")),o.closest(".modal").modal("hide")}}),!1}t(this).each((function(){t(this).find(".dynamic-tree").sortable({items:"li",connectWith:".dynamic-tree ul",start:function(){t(".dynamic-tree ul").css("min-height","50px")},stop:function(){t(".dynamic-tree ul").css("min-height","0")},receive:function(t,e){i(e.item)}}),t(this).find(".dynamic-tree ul").sortable({items:"li",connectWith:".dynamic-tree, .dynamic-tree ul",receive:function(t,e){var i=t.target.closest("ul");e.item.find("ul").find("li").each((function(){i.append(this)})),e.item.find("ul").remove()}}),t(this).on("click",".dynamic-tree-remove",o),t(this).on("click",".dynamic-tree-add",s),t(this).on("submit",r)}))}}(jQuery)},955:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(404),o=i(676);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:String(e)}window.$=window.jQuery=i.g.$=i.g.jQuery=i(692),i(454);const l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,s;return e=t,s=[{key:"init",value:function(e){$(".loadable-list",e).each((function(){t.testListsEmptiness($(this))})),e.on("click",".loadablelist-sorter a",(function(e){e.preventDefault();var i=$($(this).closest(".loadablelist-sorter").attr("data-list-target"));t.closeAllLoadable(i);var n=$(this).attr("data-sort-by");i.find("> .loadable-sorting-header").addClass("hidden").filter("[data-sorting-"+n+"]").removeClass("hidden"),i.find("> .accordion-item:visible, .loadable-sorting-header:visible").sort((function(t,e){var i=$(t).attr("data-sorting-"+n),o=$(e).attr("data-sorting-"+n);return i.localeCompare(o)})).each((function(){$(this).appendTo(i)}))})),e.on("click",".list-filters button",(function(){var t=$(this).closest(".list-filters").attr("data-list-target"),e=$(this).attr("data-filter-attribute");$(".loadable-list"+t+" .accordion-item[data-filtered-"+e+"=true]").each((function(){$(this).toggleClass("d-none")}))})),e.on("keyup",".list-text-filter",(function(){var t=$(this).val().toLowerCase(),e=$(this).attr("data-list-target");""==t?$(".loadable-list"+e+" .accordion-item").css("display","block"):$(".loadable-list"+e+" .accordion-item").each((function(){-1==$(this).find(".accordion-button").text().toLowerCase().indexOf(t)?$(this).css("display","none"):$(this).css("display","block")}))})),e.on("hidden.bs.collapse",".loadable-list > .accordion-item > .accordion-collapse",(function(e){e.stopPropagation();var i=$(this).closest(".accordion-item");t.reloadLoadableHead(i)})),e.on("show.bs.collapse",".loadable-list > .accordion-item > .accordion-collapse",(function(t){t.stopPropagation(),$(this).find(".accordion-body").animate({"min-height":"150px"},600)})),e.on("shown.bs.collapse",".loadable-list > .accordion-item > .accordion-collapse",(function(t){t.stopPropagation();var e=$(this);$("html, body").animate({scrollTop:e.closest(".accordion-item").offset().top-50},300)}))}},{key:"innerCallbacks",value:function(e,i){var n;if(0!=(n=e.find("input[name=update-list]")).length){var o=$("#"+n.val());t.appendToLoadableList(o,i,!0)}0!=(n=e.find("input[name=append-list]")).length&&(o=$("#"+n.val()),t.appendToLoadableList(o,i,!1)),0!=(n=e.find("input[name=reload-loadable]")).length&&t.reloadCurrentLoadable(n.val())}},{key:"listRow",value:function(t,e,i,n){var o=Math.random().toString(36).substring(2);return $('<div class="async-accordion accordion-item" data-accordion-url="'+i+'" data-element-id="'+e+'">             <h2 class="accordion-header" id="head-accordionitem-'+o+'">                 <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#accordionitem-'+o+'" aria-expanded="false" aria-controls="accordionitem-4P3rexIa1E">'+n+'</button>             </h2>             <div id="accordionitem-'+o+'" class="accordion-collapse collapse" aria-labelledby="head-accordionitem-'+o+'" data-bs-parent="#'+t.attr("id")+'" "="">                 <div class="accordion-body"></div>             </div>         </div>')}},{key:"appendToLoadableList",value:function(e,i,o){var s=t.listRow(e,i.id,i.url,i.header);e.append(s),n.A.j().initElements(e),t.afterListChanges(e),o&&s.find(".accordion-button").click()}},{key:"currentLoadableLoaded",value:function(t){return $(t).closest(".async-accordion").attr("data-element-id")}},{key:"reloadCurrentLoadable",value:function(t){$(t).find("> .accordion-item > .accordion-header > .accordion-button:not(.collapsed)").each((function(){var t=$(this);t.click(),setTimeout((function(){t.click()}),600)}))}},{key:"closeAllLoadable",value:function(t){t.find("> accordion-item .accordion-button").filter(":not(.collapsed)").each((function(){$(this).click()}))}},{key:"reloadLoadableHead",value:function(e){n.A.postAjax({method:"GET",url:e.attr("data-accordion-url")+"/header",dataType:"json",success:function(i){e.find("> .accordion-header > .accordion-button").empty().append(i.header),e.attr("data-accordion-url",i.url),t.afterListChanges(e.closest(".loadable-list"))}})}},{key:"formByElementId",value:function(t){return $('.accordion-item[data-element-id="'+t+'"]').find("form")}},{key:"closeParent",value:function(t){var e=t.closest(".accordion-item");return e.find("> .accordion-header > .accordion-button").click(),e}},{key:"afterListChanges",value:function(e){var i=e.attr("data-sorting-function");null!=i&&o.A[i](e),t.testListsEmptiness(e)}},{key:"testListsEmptiness",value:function(t){var e=t.attr("id"),i=t.find("> .accordion-item").length;$("#empty-"+e).toggleClass("d-none",0!=i)}}],(i=null)&&r(e.prototype,i),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}()},720:(t,e,i)=>{"use strict";i.r(e);var n=i(404);$(document).ready((function(){$("body").on("click",".password-field .bi-eye-slash",(function(){var t=$(this).closest(".password-field").find("input[type!=hidden]");"password"==t.attr("type")?t.attr("type","text"):t.attr("type","password"),$(this).toggleClass("bi-eye").toggleClass("bi-eye-close")})),$("body").on("focus","input.password-changer",(function(){var t="body",e=$(this).closest(".modal");0!=e.length&&(t="#"+e.attr("id"));var i=$(this);i.popover({content:function(){var t='<div>                    <div class="row mb-2"><label for="password" class="col-4 col-form-label">'+_("Nuova Password")+'</label><div class="col-8"><input type="password" class="form-control" name="password" value="" autocomplete="off" minlength="8"></div></div>                    <div class="row mb-2"><label for="password_confirm" class="col-4 col-form-label">'+_("Conferma Password")+'</label><div class="col-8"><input type="password" class="form-control" name="password_confirm" value="" autocomplete="off" minlength="8"></div></div>';return i.hasClass("enforcable_change")&&(t+='<div class="checkbox"><label><input type="checkbox" name="enforce_change"> '+_("Forza cambio password al prossimo login")+"</label></div><br>"),t+='<div class="row"><div class="col-8 offset-4"><button class="btn btn-light">'+_("Annulla")+'</button> <button class="btn btn-success">'+_("Conferma")+"</button></div></div></div>",(t=$(t)).find("button.btn-success").click((function(e){e.preventDefault(),e.stopPropagation();var n=t.find("input[name=password]").val();if(n==t.find("input[name=password_confirm]").val()){if(0!=t.find("input[name=enforce_change]").length){var o=t.find("input[name=enforce_change]").prop("checked")?"true":"false";i.closest(".input-group").find("input[name=enforce_password_change]").val(o)}i.val(n),i.popover("dispose"),i.change()}else alert("Le password sono diverse!")})),t.find("button.btn-light").click((function(t){t.preventDefault(),t.stopPropagation(),i.popover("dispose")})),setTimeout((function(){t.find("input[name=password]").focus()}),200),t},offset:[0,-50],template:'<div class="popover password-popover" role="tooltip"><h3 class="popover-header"></h3><div class="popover-body"></div></div>',placement:"left",container:t,html:!0})})),$("body").on("submit","#password-protection-dialog form",(function(t){t.preventDefault();var e=$(this).closest(".modal");$.ajax({method:"POST",url:$(this).attr("action"),data:{password:$(this).find("input[type=password]").val()},success:function(t){e.modal("hide");var i=e.attr("data-form-target"),o=$(i);if("ok"==t)o.attr("data-password-protected-verified","1"),o.submit();else{var s=o.find("button:submit");n.A.inlineFeedback(s,_("Password errata!"))}}})}))}))},195:(t,e,i)=>{"use strict";i.r(e);var n=i(404);$(document).ready((function(){function t(t,e,i){var n=t.closest(".modal");0==n.length&&(n=!1),t.popover({container:n,template:'<div class="popover '+e+'-popover" role="tooltip"><h3 class="popover-header"></h3><div class="popover-body"></div></div>',placement:"left",html:!0,content:i(t)})}$("body").on("focus","input.address",(function(){t($(this),"address",(function(t){var e=$('<div>                <div class="row mb-2">                    <label for="street" class="col-4 col-form-label">'+_("Indirizzo")+'</label>                    <div class="col-8"><input type="text" class="form-control" name="street" value="" autocomplete="off"></div>                </div>                <div class="row mb-2">                    <label for="city" class="col-4 col-form-label">'+_("Città")+'</label>                    <div class="col-sm-8"><input type="text" class="form-control" name="city" value="" autocomplete="off"></div>                </div>                <div class="row mb-2">                    <label for="cap" class="col-4 col-form-label">'+_("CAP")+'</label>                    <div class="col-sm-8"><input type="text" class="form-control" name="cap" value="" autocomplete="off"></div>                </div>                <div class="row mb-2">                    <div class="col-8 offset-4"><button class="btn btn-light">'+_("Annulla")+'</button> <button class="btn btn-success">'+_("Salva")+"</button></div>                </div>            </div>"),i=t.val();if(""!=i){for(var n=i.split(","),o=n.length;o<3;o++)n[o]="";e.find("input[name=street]").val(n[0].trim()),e.find("input[name=city]").val(n[1].trim()),e.find("input[name=cap]").val(n[2].trim())}return e.find("button.btn-success").click((function(i){i.preventDefault(),i.stopPropagation();var n=e.find("input[name=street]").val().trim().replace(",",""),o=e.find("input[name=city]").val().trim().replace(",",""),s=e.find("input[name=cap]").val().trim().replace(",","");""==n&&""==o&&""==s?t.val(""):t.val(n+", "+o+", "+s),t.change(),t.popover("dispose")})),e.find("button.btn-light").click((function(e){e.preventDefault(),e.stopPropagation(),t.popover("dispose")})),setTimeout((function(){e.find("input[name=street]").focus()}),200),e}))})),$("body").on("focus","input.periodic",(function(){t($(this),"periodic",(function(t){var e=$('<div>                <div class="row mb-2">                    <label for="day" class="col-4 col-form-label">'+_("Giorno")+'</label>                    <div class="col-8">                        <select class="form-select" name="day" value="" autocomplete="off">                            <option value="monday">'+_("Lunedì")+'</option>                            <option value="tuesday">'+_("Martedì")+'</option>                            <option value="wednesday">'+_("Mercoledì")+'</option>                            <option value="thursday">'+_("Giovedì")+'</option>                            <option value="friday">'+_("Venerdì")+'</option>                            <option value="saturday">'+_("Sabato")+'</option>                            <option value="sunday">'+_("Domenica")+'</option>                        </select>                    </div>                </div>                <div class="row mb-2">                    <label for="cycle" class="col-4 col-form-label">'+_("Periodicità")+'</label>                    <div class="col-8">                        <select class="form-select" name="cycle" value="" autocomplete="off">                            <option value="all">'+_("Tutti")+'</option>                            <option value="biweekly">'+_("Ogni due Settimane")+'</option>                            <option value="month_first">'+_("Primo del Mese")+'</option>                            <option value="month_second">'+_("Secondo del Mese")+'</option>                            <option value="month_third">'+_("Terzo del Mese")+'</option>                            <option value="month_fourth">'+_("Quarto del Mese")+'</option>                            <option value="month_last">'+_("Ultimo del Mese")+'</option>                        </select>                    </div>                </div>                <div class="row mb-2">                    <label for="day" class="col-4 col-form-label">'+_("Dal")+'</label>                    <div class="col-8"><input type="text" class="date form-control" name="from" value="" autocomplete="off"></div>                </div>                <div class="row mb-2">                    <label for="day" class="col-4 col-form-label">'+_("Al")+'</label>                    <div class="col-8"><input type="text" class="date form-control" name="to" value="" autocomplete="off"></div>                </div>                <div class="row mb-2">                    <div class="col-8 offset-4"><button class="btn btn-light">'+_("Annulla")+'</button> <button class="btn btn-success">'+_("Salva")+"</button></div>                </div>            </div>");$("input.date",e).datepicker({format:"DD dd MM yyyy",autoclose:!0,language:n.A.currentLanguage(),clearBtn:!0});var i=t.val();if(""!=i){for(var o=i.split(" - "),s=o.length;s<4;s++)o[s]="";e.find("select[name=day] option").filter((function(){return $(this).html()==o[0]})).prop("selected",!0),e.find("select[name=cycle] option").filter((function(){return $(this).html()==o[1]})).prop("selected",!0),e.find("input[name=from]").val(o[2].trim()),e.find("input[name=to]").val(o[3].trim())}return e.find("button.btn-success").click((function(i){i.preventDefault(),i.stopPropagation();var n=e.find("select[name=day] option:selected").text(),o=e.find("select[name=cycle] option:selected").text(),s=e.find("input[name=from]").val().trim().replace(",",""),r=e.find("input[name=to]").val().trim().replace(",","");t.val(n+" - "+o+" - "+s+" - "+r).change(),t.change(),t.popover("dispose")})),e.find("button.btn-light").click((function(e){e.preventDefault(),e.stopPropagation(),t.popover("dispose")})),setTimeout((function(){e.find("select[name=day]").focus()}),200),e}))})),$("body").on("change","#dates-in-range input.date, #dates-in-range input.periodic",(function(){if(""!=$(this).val()){var t=$(this).closest("tr");$(this).hasClass("date")?t.find(".periodic").val(""):t.find(".date").val("")}}))}))},995:()=>{!function(){var t=function(t){var e=function(t){if(null==o||null==t)return t;if(t in o==0)return null!=n?n(t):t;var e=o[t];if(null==e)return t;return e}(t);if("function"==typeof e)e=e.apply(this,arguments);else if(arguments.length>1){var s=Array.prototype.slice.call(arguments,1);e=i(e,s)}return e};t.translate=t;var e,i=(e=/\{([^}]+)\}/g,function(t,i){return t.replace(e,(function(t,e){return i[e]}))});t.setFormatter=function(t){i=t},t.format=function(){var t=Array.prototype.slice,e=arguments[0],n=t.call(arguments,1);return i(e,n)};var n=null;t.setDynamicTranslator=function(t){n=t};var o=null;t.setTranslation=function(t){o=t},window._=t}()},404:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});const n=class{init(t){this.mainOptions=$.extend({},{initFunction:function(){},fixBootstrap:[]},t||{}),this.fixBootstrap(["Modal","Popover"].concat(this.mainOptions.fixBootstrap)),this.onceInit(),this.initElements($("body"))}defineJQueryPlugin(t){const e=t.NAME;if(e in $.fn==0){const i=$.fn[e];$.fn[e]=t.jQueryInterface,$.fn[e].Constructor=t,$.fn[e].noConflict=()=>($.fn[e]=i,t.jQueryInterface)}}fixBootstrap(t){window.bootstrap&&t.forEach((t=>{this.defineJQueryPlugin(window.bootstrap[t])}))}assignIDs(t,e){t.forEach((function(t,i){$(t,e).not("[id]").each((function(){$(this).attr("id",Math.random().toString(36).substring(2))}))}))}makeSpinner(){return'<div class="text-center"><div class="spinner-border" role="status"></div></div>'}formValidation(t){return!t.hasClass("needs-validation")||(t.addClass("was-validated"),t.get(0).checkValidity())}initElements(t){$("form.needs-validation",t).jbobInitUninited().on("submit",(t=>{let e=$(t.currentTarget);0==this.formValidation(e)&&(t.preventDefault(),t.stopPropagation())})),this.assignIDs([".async-modal"],t),$(".async-modal",t).jbobInitUninited().click((t=>{t.preventDefault();let e=$(t.currentTarget);this.loadAsyncModal(e)})),this.assignIDs([".async-accordion"],t),$(".async-accordion > .accordion-collapse",t).jbobInitUninited().on("show.bs.collapse",(t=>{t.stopPropagation();let e=$(t.currentTarget).closest(".async-accordion");this.loadAsyncAccordion(e)})),this.assignIDs([".async-tab"],t),$(".async-tab",t).jbobInitUninited().on("show.bs.tab",(t=>{this.loadAsyncTab($(t.currentTarget))})).on("hidden.bs.tab",(t=>{t.stopPropagation();let e=$(t.currentTarget).attr("data-bs-target");$(e).empty()})),$(".async-popover",t).jbobInitUninited().on("show.bs.popover",(t=>{let e=$(t.currentTarget);e.trigger("jb-before-async-fetch");let i=e.attr("data-contents-url");$.ajax({url:i,method:"GET",dataType:"HTML",success:t=>{e.attr("data-bs-content",t),e.popover("dispose").popover("show"),e.trigger("jb-after-async-fetch",[!0])},error:()=>{e.trigger("jb-after-async-fetch",[!1])}})})),$(".dynamic-table",t).jbobInitUninited().each((function(){$(this).find("> tfoot").find("input, select, textarea").addClass("skip-on-submit")})).on("click",".add-row",(t=>{t.preventDefault();let e=$(t.currentTarget),i=e.closest("table").find("> tfoot tr").first().clone();i.find(".skip-on-submit").removeClass("skip-on-submit"),e.closest("tr").before(i),this.initElements(i)})).on("click",".remove-row",(function(t){t.preventDefault(),$(this).closest("tr").remove()})),$(".modal-form",t).jbobInitUninited().on("submit",(t=>{t.preventDefault();let e=$(t.currentTarget);this.formValidation(e)&&$.ajax({method:e.attr("method"),url:e.attr("action"),data:this.serializeForm(e),success:()=>{e.closest(".modal").modal("hide")}})})),$(".infinite-scroll",t).jbobInitUninited().each(((t,e)=>{let i=$(e),n=i.find(".pagination").closest("nav"),o=!1;$(window).on("scroll",(()=>{if(this.onScreen(n,200)&&0==o){o=!0;let t=n.find("li.active").next("li");n.remove(),t.length>0&&(i.trigger("jb-before-async-fetch"),$.ajax({url:t.find("a").attr("href"),method:"GET",dataType:"HTML",success:t=>{let e=null;e=(t=$(t)).hasClass("infinite-scroll")?t.html():t.find(".infinite-scroll").html(),e&&(this.initElements(e),i.append(e),n=i.find(".pagination").closest("nav")),o=!1,i.trigger("jb-after-async-fetch",[!0])},error:()=>{i.trigger("jb-after-async-fetch",[!1])}}))}}))})),this.mainOptions.initFunction(t)}loadAsyncAccordion(t){t.trigger("jb-before-async-fetch");let e=t.attr("data-accordion-url"),i=t.find(".accordion-body").first();this.fetchNode(e,i).then((e=>{t.trigger("jb-after-async-fetch",[e])})).catch((()=>{t.trigger("jb-after-async-fetch",[!1])}))}loadAsyncModal(t){t.prop("disabled",!0).trigger("jb-before-async-fetch");let e=t.attr("data-modal-url")||t.attr("href");this.fetchRemoteModal(e).then((e=>{t.prop("disabled",!1).trigger("jb-after-async-fetch",[e])})).catch((()=>{t.prop("disabled",!1).trigger("jb-after-async-fetch",[!1])}))}loadAsyncTab(t){t.trigger("jb-before-async-fetch");let e=t.attr("data-bs-target"),i=$(e),n=t.attr("data-tab-url");this.fetchNode(n,i).then((e=>{t.trigger("jb-after-async-fetch",[e])})).catch((()=>{t.trigger("jb-after-async-fetch",[!1])}))}async fetchRemoteModal(t){return new Promise((e=>{$.ajax({url:t,method:"GET",dataType:"HTML",success:t=>{try{let i=$(t);this.initElements(i),i.addClass("delete-on-close").modal("show"),e(!0)}catch(t){e(!1)}},error:()=>{e(!1)}})}))}async fetchNode(t,e){return e.empty().append(this.makeSpinner()),new Promise((i=>{$.ajax({url:t,method:"GET",dataType:"HTML",success:t=>{try{let n=$(t);this.initElements(n),e.empty().append(n),i(!0)}catch(t){i(!1)}},error:()=>{i(!1)}})}))}reloadNode(t){let e=t.attr("data-reload-url");e?t.hasClass("modal")?(this.fetchRemoteModal(e),t.modal("hide")):$.ajax({url:e,method:"GET",dataType:"HTML",success:e=>{let i=$(e);this.initElements(i),t.replaceWith(i)}}):t.reloadAsync()}submitButton(t){let e=t.find("button[type=submit]");if(0==e.length){let i=t.attr("id");i&&(e=$("button[type=submit][form="+i+"]"))}return e}serializeForm(t){return t.find(":not(.skip-on-submit)").serialize()}serializeFormData(t){let e=new FormData;$.each(t.find('input[type="file"]:not(.skip-on-submit)'),(function(t,i){$.each($(i)[0].files,(function(t,n){e.append(i.name,n)}))}));let i=t.find(":not(.skip-on-submit)").serializeArray();return $.each(i,(function(t,i){e.append(i.name,i.value)})),e}onScreen(t,e){void 0===e&&(e=0);let i=$(window).scrollTop(),n=i+$(window).height(),o=t.offset().top;return o+t.outerHeight()<=n+e&&o>=i-e}onceInit(){let t=this;$.fn.extend({jbobInitUninited:function(){return this.not(".jb-in").addClass("jb-in")},reloadAsync:function(){this.each(((e,i)=>{(i=$(i)).hasClass("async-modal")?t.loadAsyncModal(i):i.hasClass("async-accordion")?t.loadAsyncAccordion(i):i.hasClass("async-tab")&&t.loadAsyncTab(i)}))}}),$("body").on("hidden.bs.modal",".modal.delete-on-close",(function(){$(this).remove()}))}};var o=i(955);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:String(e)}i(596);var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,s;return e=t,s=[{key:"init",value:function(t){var e=this;$(".reloader",t).click((function(t){var e=$(this).attr("data-reload-target");if(null==e)location.reload();else{var i=$(this).closest(".modal").first();null!=i?(i.on("hidden.bs.modal",(function(){o.A.reloadCurrentLoadable(e)})),i.modal("hide")):o.A.reloadCurrentLoadable(e)}})),$(".select-fetcher",t).change((function(t){var i=$(t.currentTarget),n=i.attr("data-fetcher-target"),o=i.parent().find(n);o.empty().append(e.j().makeSpinner());var s=i.find("option:selected").val(),r=i.attr("data-fetcher-url").replace("XXX",s);$.get(r,(function(t){o.empty().append(t)}))})),$(".object-details",t).click((function(t){var i=$(t.currentTarget).attr("data-show-url"),n=$("#service-modal");e.j().fetchNode(i,n.find(".modal-body")),n.modal("show")})),$("input[data-alternative-required]",t).change((function(t){e.reviewRequired($(t.currentTarget).closest("form"))})),$(".prevent-default",t).click((function(t){t.preventDefault()})),$(".link-button",t).click((function(t){t.preventDefault();var e=$(this).attr("data-link");window.open(e,"_blank")})),$(".form-download",t).click((function(t){t.preventDefault();var e=$(this).closest("form");0==e.length&&(e=$(this).closest(".form-filler"));var i=e.find("input, select").serializeArray(),n=$(this).attr("href");n=-1==n.indexOf("?")?n+"?"+$.param(i):n+"&"+$.param(i),window.open(n,"_blank")})),$(".actual-calendar",t).each((function(){var t=this;setTimeout((function(){$(t).ContinuousCalendar({days:JSON.parse(atob($(t).attr("data-days"))),months:JSON.parse(atob($(t).attr("data-months"))),rows:4,events:JSON.parse(atob($(t).attr("data-events")))})}),300)})),$(".collapse",t).filter(":not(.show)").find(".required_when_triggered").prop("required",!1),$(".collapse",t).on("show.bs.collapse hide.bs.collapse",(function(t){t.stopPropagation()})).on("shown.bs.collapse hidden.bs.collapse",(function(t){$(this).find(".required_when_triggered").each((function(){var t=$(this),e=$(this).closest(".collapse").hasClass("show");t.prop("required",e)}))}))}},{key:"j",value:function(){return void 0===t.jbob&&(t.jbob=new n),t.jbob}},{key:"currentLanguage",value:function(){return void 0===t.current_language&&(t.current_language=$("html").attr("lang").split("-")[0]),t.current_language}},{key:"absoluteUrl",value:function(){return void 0===t.absolute_url&&(t.absolute_url=$("meta[name=absolute_url]").attr("content")),t.absolute_url}},{key:"normalizeUrl",value:function(t){return 0==t.startsWith("http")&&(t=this.absoluteUrl()+"/"+t),t}},{key:"spinSubmitButton",value:function(t){this.j().submitButton(t).each((function(){var t=$(this).text();$(this).attr("data-idle-text",t).empty().append('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>').prop("disabled",!0)}))}},{key:"formErrorFeedback",value:function(t){var e=this;this.j().submitButton(t).each((function(t,i){var n=$(i);e.inlineFeedback(n,_("ERRORE!")),n.prop("disabled",!0)}))}},{key:"inlineFeedback",value:function(t,e){var i=t.attr("data-idle-text");i||(i=t.html()),t.empty().append(e),setTimeout((function(){t.empty().append(i).prop("disabled",!1)}),2e3)}},{key:"displayServerError",value:function(e,i){if(""!=i.target){t.j().submitButton(e).each((function(){t.inlineFeedback($(this),_("ERRORE!"))})),e.find(".is-invalid").removeClass("is-invalid"),e.find(".help-block.error-message").remove();var n=e.find("[name="+i.target+"]");t.setInputErrorText(n,i.message)}else alert(i.message)}},{key:"detailsButton",value:function(t){return'<button type="button" class="btn btn-xs btn-icon btn-info object-details d-none d-md-inline-block" data-show-url="'+t+'"><i class="bi-zoom-in"></i></button>'}},{key:"setInputErrorText",value:function(t,e){null==e?(t.removeClass("is-invalid"),t.closest("div").find(".help-block.error-message").remove()):(t.addClass("is-invalid"),t.closest("div").append('<span class="help-block error-message">'+e+"</span>"))}},{key:"randomString",value:function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<t;n++)e+=i.charAt(Math.floor(62*Math.random()));return e}},{key:"parseFullDate",value:function(t){var e=t.split(" "),i=0,n=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"];for(i=0;i<n.length;i++)if(e[2]==n[i]){i++;break}var o=e[3]+"-"+i+"-"+e[1];return Date.parse(o)}},{key:"parseFloatC",value:function(t){if(void 0===t)return 0;var e=parseFloat(t.replace(/,/,"."));return isNaN(e)&&(e=0),e}},{key:"sel",value:function(t,e){var i=t.split(" ");return e.is(i[0])?e.find(i.slice(1).join(" ")):$(t,e)}},{key:"priceRound",value:function(t){return(Math.round(100*t)/100).toFixed(2)}},{key:"postAjax",value:function(t){t.data=t.data||{},t.method=t.method||"POST","GET"!=t.method&&"POST"!=t.method&&(t.data._method=t.method,t.method="POST"),t.url=this.normalizeUrl(t.url),$.ajax(t)}},{key:"fetchNode",value:function(t,e){t=this.normalizeUrl(t),this.j().fetchNode(t,e)}},{key:"sanitizeId",value:function(t){return t.replace(/:/g,"\\:").replace(/\[/g,"\\[").replace(/\]/g,"\\]")}},{key:"isMobile",value:function(){return window.screen.width<=992}},{key:"formByButton",value:function(t){var e=t.closest("form");if(0==e.length){var i=t.attr("form");i&&(e=$("#"+i))}return e}},{key:"inputInvalidFeedback",value:function(t,e,i){t.toggleClass("is-invalid",e),1==e&&t.siblings(".invalid-feedback").text(i)}},{key:"reviewRequired",value:function(t){t.find("input[data-alternative-required]").each((function(){var e=$(this).attr("data-alternative-required");e&&(""!=t.find('[name="'+e+'"]').val()?$(this).prop("required",!1):$(this).prop("required",!0))}))}}],(i=null)&&r(e.prototype,i),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}();$.fn.textVal=function(t){return void 0===t?this.is("input")?this.val():this.text():this.is("input")?this.val(t):this.text(t)},$.fn.attrBegins=function(t){var e=[];return this.each((function(i){var n=this;$.each(this.attributes,(function(i,o){0===o.name.indexOf(t)&&e.push(n)}))})),$(e)};const c=l},249:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(139)],n=function(t){function e(e){var i="dragover"===e;return function(n){n.dataTransfer=n.originalEvent&&n.originalEvent.dataTransfer;var o=n.dataTransfer;o&&-1!==t.inArray("Files",o.types)&&!1!==this._trigger(e,t.Event(e,{delegatedEvent:n}))&&(n.preventDefault(),i&&(o.dropEffect="copy"))}}t.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||t('<input type="file"/>').prop("disabled")),t.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),t.support.xhrFormDataFileUpload=!!window.FormData,t.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),t.widget("blueimp.fileupload",{options:{dropZone:t(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,uniqueFilenames:void 0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(e,i){return e=this.messages[e]||e.toString(),i&&t.each(i,(function(t,i){e=e.replace("{"+t+"}",i)})),e},formData:function(t){return t.serializeArray()},add:function(e,i){if(e.isDefaultPrevented())return!1;(i.autoUpload||!1!==i.autoUpload&&t(this).fileupload("option","autoUpload"))&&i.process().done((function(){i.submit()}))},processData:!1,contentType:!1,cache:!1,timeout:0},_promisePipe:(i=t.fn.jquery.split("."),Number(i[0])>1||Number(i[1])>7?"then":"pipe"),_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:t.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(t,e,i){var n=t-this.timestamp;return(!this.bitrate||!i||n>i)&&(this.bitrate=(e-this.loaded)*(1e3/n)*8,this.loaded=e,this.timestamp=t),this.bitrate}},_isXHRUpload:function(e){return!e.forceIframeTransport&&(!e.multipart&&t.support.xhrFileUpload||t.support.xhrFormDataFileUpload)},_getFormData:function(e){var i;return"function"===t.type(e.formData)?e.formData(e.form):t.isArray(e.formData)?e.formData:"object"===t.type(e.formData)?(i=[],t.each(e.formData,(function(t,e){i.push({name:t,value:e})})),i):[]},_getTotal:function(e){var i=0;return t.each(e,(function(t,e){i+=e.size||1})),i},_initProgressObject:function(e){var i={loaded:0,total:0,bitrate:0};e._progress?t.extend(e._progress,i):e._progress=i},_initResponseObject:function(t){var e;if(t._response)for(e in t._response)Object.prototype.hasOwnProperty.call(t._response,e)&&delete t._response[e];else t._response={}},_onProgress:function(e,i){if(e.lengthComputable){var n,o=Date.now?Date.now():(new Date).getTime();if(i._time&&i.progressInterval&&o-i._time<i.progressInterval&&e.loaded!==e.total)return;i._time=o,n=Math.floor(e.loaded/e.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0),this._progress.loaded+=n-i._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(o,this._progress.loaded,i.bitrateInterval),i._progress.loaded=i.loaded=n,i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(o,n,i.bitrateInterval),this._trigger("progress",t.Event("progress",{delegatedEvent:e}),i),this._trigger("progressall",t.Event("progressall",{delegatedEvent:e}),this._progress)}},_initProgressListener:function(e){var i=this,n=e.xhr?e.xhr():t.ajaxSettings.xhr();n.upload&&(t(n.upload).on("progress",(function(t){var n=t.originalEvent;t.lengthComputable=n.lengthComputable,t.loaded=n.loaded,t.total=n.total,i._onProgress(t,e)})),e.xhr=function(){return n})},_deinitProgressListener:function(e){var i=e.xhr?e.xhr():t.ajaxSettings.xhr();i.upload&&t(i.upload).off("progress")},_isInstanceOf:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"},_getUniqueFilename:function(t,e){return e[t=String(t)]?(t=t.replace(/(?: \(([\d]+)\))?(\.[^.]+)?$/,(function(t,e,i){return" ("+(e?Number(e)+1:1)+")"+(i||"")})),this._getUniqueFilename(t,e)):(e[t]=!0,t)},_initXHRData:function(e){var i,n=this,o=e.files[0],s=e.multipart||!t.support.xhrFileUpload,r="array"===t.type(e.paramName)?e.paramName[0]:e.paramName;e.headers=t.extend({},e.headers),e.contentRange&&(e.headers["Content-Range"]=e.contentRange),s&&!e.blob&&this._isInstanceOf("File",o)||(e.headers["Content-Disposition"]='attachment; filename="'+encodeURI(o.uploadName||o.name)+'"'),s?t.support.xhrFormDataFileUpload&&(e.postMessage?(i=this._getFormData(e),e.blob?i.push({name:r,value:e.blob}):t.each(e.files,(function(n,o){i.push({name:"array"===t.type(e.paramName)&&e.paramName[n]||r,value:o})}))):(n._isInstanceOf("FormData",e.formData)?i=e.formData:(i=new FormData,t.each(this._getFormData(e),(function(t,e){i.append(e.name,e.value)}))),e.blob?i.append(r,e.blob,o.uploadName||o.name):t.each(e.files,(function(o,s){if(n._isInstanceOf("File",s)||n._isInstanceOf("Blob",s)){var a=s.uploadName||s.name;e.uniqueFilenames&&(a=n._getUniqueFilename(a,e.uniqueFilenames)),i.append("array"===t.type(e.paramName)&&e.paramName[o]||r,s,a)}}))),e.data=i):(e.contentType=o.type||"application/octet-stream",e.data=e.blob||o),e.blob=null},_initIframeSettings:function(e){var i=t("<a></a>").prop("href",e.url).prop("host");e.dataType="iframe "+(e.dataType||""),e.formData=this._getFormData(e),e.redirect&&i&&i!==location.host&&e.formData.push({name:e.redirectParamName||"redirect",value:e.redirect})},_initDataSettings:function(t){this._isXHRUpload(t)?(this._chunkedUpload(t,!0)||(t.data||this._initXHRData(t),this._initProgressListener(t)),t.postMessage&&(t.dataType="postmessage "+(t.dataType||""))):this._initIframeSettings(t)},_getParamName:function(e){var i=t(e.fileInput),n=e.paramName;return n?t.isArray(n)||(n=[n]):(n=[],i.each((function(){for(var e=t(this),i=e.prop("name")||"files[]",o=(e.prop("files")||[1]).length;o;)n.push(i),o-=1})),n.length||(n=[i.prop("name")||"files[]"])),n},_initFormSettings:function(e){e.form&&e.form.length||(e.form=t(e.fileInput.prop("form")),e.form.length||(e.form=t(this.options.fileInput.prop("form")))),e.paramName=this._getParamName(e),e.url||(e.url=e.form.prop("action")||location.href),e.type=(e.type||"string"===t.type(e.form.prop("method"))&&e.form.prop("method")||"").toUpperCase(),"POST"!==e.type&&"PUT"!==e.type&&"PATCH"!==e.type&&(e.type="POST"),e.formAcceptCharset||(e.formAcceptCharset=e.form.attr("accept-charset"))},_getAJAXSettings:function(e){var i=t.extend({},this.options,e);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(t){return t.state?t.state():t.isResolved()?"resolved":t.isRejected()?"rejected":"pending"},_enhancePromise:function(t){return t.success=t.done,t.error=t.fail,t.complete=t.always,t},_getXHRPromise:function(e,i,n){var o=t.Deferred(),s=o.promise();return i=i||this.options.context||s,!0===e?o.resolveWith(i,n):!1===e&&o.rejectWith(i,n),s.abort=o.promise,this._enhancePromise(s)},_addConvenienceMethods:function(e,i){var n=this,o=function(e){return t.Deferred().resolveWith(n,e).promise()};i.process=function(e,s){return(e||s)&&(i._processQueue=this._processQueue=(this._processQueue||o([this]))[n._promisePipe]((function(){return i.errorThrown?t.Deferred().rejectWith(n,[i]).promise():o(arguments)}))[n._promisePipe](e,s)),this._processQueue||o([this])},i.submit=function(){return"pending"!==this.state()&&(i.jqXHR=this.jqXHR=!1!==n._trigger("submit",t.Event("submit",{delegatedEvent:e}),this)&&n._onSend(e,this)),this.jqXHR||n._getXHRPromise()},i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",n._trigger("fail",null,this),n._getXHRPromise(!1))},i.state=function(){return this.jqXHR?n._getDeferredState(this.jqXHR):this._processQueue?n._getDeferredState(this._processQueue):void 0},i.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===n._getDeferredState(this._processQueue)},i.progress=function(){return this._progress},i.response=function(){return this._response}},_getUploadedBytes:function(t){var e=t.getResponseHeader("Range"),i=e&&e.split("-"),n=i&&i.length>1&&parseInt(i[1],10);return n&&n+1},_chunkedUpload:function(e,i){e.uploadedBytes=e.uploadedBytes||0;var n,o,s=this,r=e.files[0],a=r.size,l=e.uploadedBytes,c=e.maxChunkSize||a,u=this._blobSlice,d=t.Deferred(),h=d.promise();return!(!(this._isXHRUpload(e)&&u&&(l||("function"===t.type(c)?c(e):c)<a))||e.data)&&(!!i||(l>=a?(r.error=e.i18n("uploadedBytes"),this._getXHRPromise(!1,e.context,[null,"error",r.error])):(o=function(){var i=t.extend({},e),h=i._progress.loaded;i.blob=u.call(r,l,l+("function"===t.type(c)?c(i):c),r.type),i.chunkSize=i.blob.size,i.contentRange="bytes "+l+"-"+(l+i.chunkSize-1)+"/"+a,s._trigger("chunkbeforesend",null,i),s._initXHRData(i),s._initProgressListener(i),n=(!1!==s._trigger("chunksend",null,i)&&t.ajax(i)||s._getXHRPromise(!1,i.context)).done((function(n,r,c){l=s._getUploadedBytes(c)||l+i.chunkSize,h+i.chunkSize-i._progress.loaded&&s._onProgress(t.Event("progress",{lengthComputable:!0,loaded:l-i.uploadedBytes,total:l-i.uploadedBytes}),i),e.uploadedBytes=i.uploadedBytes=l,i.result=n,i.textStatus=r,i.jqXHR=c,s._trigger("chunkdone",null,i),s._trigger("chunkalways",null,i),l<a?o():d.resolveWith(i.context,[n,r,c])})).fail((function(t,e,n){i.jqXHR=t,i.textStatus=e,i.errorThrown=n,s._trigger("chunkfail",null,i),s._trigger("chunkalways",null,i),d.rejectWith(i.context,[t,e,n])})).always((function(){s._deinitProgressListener(i)}))},this._enhancePromise(h),h.abort=function(){return n.abort()},o(),h)))},_beforeSend:function(t,e){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(e),this._initProgressObject(e),e._progress.loaded=e.loaded=e.uploadedBytes||0,e._progress.total=e.total=this._getTotal(e.files)||1,e._progress.bitrate=e.bitrate=0,this._active+=1,this._progress.loaded+=e.loaded,this._progress.total+=e.total},_onDone:function(e,i,n,o){var s=o._progress.total,r=o._response;o._progress.loaded<s&&this._onProgress(t.Event("progress",{lengthComputable:!0,loaded:s,total:s}),o),r.result=o.result=e,r.textStatus=o.textStatus=i,r.jqXHR=o.jqXHR=n,this._trigger("done",null,o)},_onFail:function(t,e,i,n){var o=n._response;n.recalculateProgress&&(this._progress.loaded-=n._progress.loaded,this._progress.total-=n._progress.total),o.jqXHR=n.jqXHR=t,o.textStatus=n.textStatus=e,o.errorThrown=n.errorThrown=i,this._trigger("fail",null,n)},_onAlways:function(t,e,i,n){this._trigger("always",null,n)},_onSend:function(e,i){i.submit||this._addConvenienceMethods(e,i);var n,o,s,r,a=this,l=a._getAJAXSettings(i),c=function(){return a._sending+=1,l._bitrateTimer=new a._BitrateTimer,n=n||((o||!1===a._trigger("send",t.Event("send",{delegatedEvent:e}),l))&&a._getXHRPromise(!1,l.context,o)||a._chunkedUpload(l)||t.ajax(l)).done((function(t,e,i){a._onDone(t,e,i,l)})).fail((function(t,e,i){a._onFail(t,e,i,l)})).always((function(t,e,i){if(a._deinitProgressListener(l),a._onAlways(t,e,i,l),a._sending-=1,a._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>a._sending)for(var n=a._slots.shift();n;){if("pending"===a._getDeferredState(n)){n.resolve();break}n=a._slots.shift()}0===a._active&&a._trigger("stop")}))};return this._beforeSend(e,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(s=t.Deferred(),this._slots.push(s),r=s[a._promisePipe](c)):(this._sequence=this._sequence[a._promisePipe](c,c),r=this._sequence),r.abort=function(){return o=[void 0,"abort","abort"],n?n.abort():(s&&s.rejectWith(l.context,o),c())},this._enhancePromise(r)):c()},_onAdd:function(e,i){var n,o,s,r,a=this,l=!0,c=t.extend({},this.options,i),u=i.files,d=u.length,h=c.limitMultiFileUploads,p=c.limitMultiFileUploadSize,f=c.limitMultiFileUploadSizeOverhead,m=0,g=this._getParamName(c),v=0;if(!d)return!1;if(p&&void 0===u[0].size&&(p=void 0),(c.singleFileUploads||h||p)&&this._isXHRUpload(c))if(c.singleFileUploads||p||!h)if(!c.singleFileUploads&&p)for(s=[],n=[],r=0;r<d;r+=1)m+=u[r].size+f,(r+1===d||m+u[r+1].size+f>p||h&&r+1-v>=h)&&(s.push(u.slice(v,r+1)),(o=g.slice(v,r+1)).length||(o=g),n.push(o),v=r+1,m=0);else n=g;else for(s=[],n=[],r=0;r<d;r+=h)s.push(u.slice(r,r+h)),(o=g.slice(r,r+h)).length||(o=g),n.push(o);else s=[u],n=[g];return i.originalFiles=u,t.each(s||u,(function(o,r){var c=t.extend({},i);return c.files=s?r:[r],c.paramName=n[o],a._initResponseObject(c),a._initProgressObject(c),a._addConvenienceMethods(e,c),l=a._trigger("add",t.Event("add",{delegatedEvent:e}),c)})),l},_replaceFileInput:function(e){var i=e.fileInput,n=i.clone(!0),o=i.is(document.activeElement);e.fileInputClone=n,t("<form></form>").append(n)[0].reset(),i.after(n).detach(),o&&n.trigger("focus"),t.cleanData(i.off("remove")),this.options.fileInput=this.options.fileInput.map((function(t,e){return e===i[0]?n[0]:e})),i[0]===this.element[0]&&(this.element=n)},_handleFileTreeEntry:function(e,i){var n,o=this,s=t.Deferred(),r=[],a=function(t){t&&!t.entry&&(t.entry=e),s.resolve([t])},l=function(t){o._handleFileTreeEntries(t,i+e.name+"/").done((function(t){s.resolve(t)})).fail(a)},c=function(){n.readEntries((function(t){t.length?(r=r.concat(t),c()):l(r)}),a)};return i=i||"",e.isFile?e._file?(e._file.relativePath=i,s.resolve(e._file)):e.file((function(t){t.relativePath=i,s.resolve(t)}),a):e.isDirectory?(n=e.createReader(),c()):s.resolve([]),s.promise()},_handleFileTreeEntries:function(e,i){var n=this;return t.when.apply(t,t.map(e,(function(t){return n._handleFileTreeEntry(t,i)})))[this._promisePipe]((function(){return Array.prototype.concat.apply([],arguments)}))},_getDroppedFiles:function(e){var i=(e=e||{}).items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(t.map(i,(function(t){var e;return t.webkitGetAsEntry?((e=t.webkitGetAsEntry())&&(e._file=t.getAsFile()),e):t.getAsEntry()}))):t.Deferred().resolve(t.makeArray(e.files)).promise()},_getSingleFileInputFiles:function(e){var i,n,o=(e=t(e)).prop("entries");if(o&&o.length)return this._handleFileTreeEntries(o);if((i=t.makeArray(e.prop("files"))).length)void 0===i[0].name&&i[0].fileName&&t.each(i,(function(t,e){e.name=e.fileName,e.size=e.fileSize}));else{if(!(n=e.prop("value")))return t.Deferred().resolve([]).promise();i=[{name:n.replace(/^.*\\/,"")}]}return t.Deferred().resolve(i).promise()},_getFileInputFiles:function(e){return e instanceof t&&1!==e.length?t.when.apply(t,t.map(e,this._getSingleFileInputFiles))[this._promisePipe]((function(){return Array.prototype.concat.apply([],arguments)})):this._getSingleFileInputFiles(e)},_onChange:function(e){var i=this,n={fileInput:t(e.target),form:t(e.target.form)};this._getFileInputFiles(n.fileInput).always((function(o){n.files=o,i.options.replaceFileInput&&i._replaceFileInput(n),!1!==i._trigger("change",t.Event("change",{delegatedEvent:e}),n)&&i._onAdd(e,n)}))},_onPaste:function(e){var i=e.originalEvent&&e.originalEvent.clipboardData&&e.originalEvent.clipboardData.items,n={files:[]};i&&i.length&&(t.each(i,(function(t,e){var i=e.getAsFile&&e.getAsFile();i&&n.files.push(i)})),!1!==this._trigger("paste",t.Event("paste",{delegatedEvent:e}),n)&&this._onAdd(e,n))},_onDrop:function(e){e.dataTransfer=e.originalEvent&&e.originalEvent.dataTransfer;var i=this,n=e.dataTransfer,o={};n&&n.files&&n.files.length&&(e.preventDefault(),this._getDroppedFiles(n).always((function(n){o.files=n,!1!==i._trigger("drop",t.Event("drop",{delegatedEvent:e}),o)&&i._onAdd(e,o)})))},_onDragOver:e("dragover"),_onDragEnter:e("dragenter"),_onDragLeave:e("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),t.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_destroy:function(){this._destroyEventHandlers()},_setOption:function(e,i){var n=-1!==t.inArray(e,this._specialOptions);n&&this._destroyEventHandlers(),this._super(e,i),n&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var e=this.options;void 0===e.fileInput?e.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):e.fileInput instanceof t||(e.fileInput=t(e.fileInput)),e.dropZone instanceof t||(e.dropZone=t(e.dropZone)),e.pasteZone instanceof t||(e.pasteZone=t(e.pasteZone))},_getRegExp:function(t){var e=t.split("/"),i=e.pop();return e.shift(),new RegExp(e.join("/"),i)},_isRegExpOption:function(e,i){return"url"!==e&&"string"===t.type(i)&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var e=this,i=this.options,n=this.element.data();t.each(this.element[0].attributes,(function(t,o){var s,r=o.name.toLowerCase();/^data-/.test(r)&&(r=r.slice(5).replace(/-[a-z]/g,(function(t){return t.charAt(1).toUpperCase()})),s=n[r],e._isRegExpOption(r,s)&&(s=e._getRegExp(s)),i[r]=s)}))},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(e){var i=this;e&&!this.options.disabled&&(e.fileInput&&!e.files?this._getFileInputFiles(e.fileInput).always((function(t){e.files=t,i._onAdd(null,e)})):(e.files=t.makeArray(e.files),this._onAdd(null,e)))},send:function(e){if(e&&!this.options.disabled){if(e.fileInput&&!e.files){var i,n,o=this,s=t.Deferred(),r=s.promise();return r.abort=function(){return n=!0,i?i.abort():(s.reject(null,"abort","abort"),r)},this._getFileInputFiles(e.fileInput).always((function(t){n||(t.length?(e.files=t,(i=o._onSend(null,e)).then((function(t,e,i){s.resolve(t,e,i)}),(function(t,e,i){s.reject(t,e,i)}))):s.reject())})),this._enhancePromise(r)}if(e.files=t.makeArray(e.files),e.files.length)return this._onSend(null,e)}return this._getXHRPromise(!1,e&&e.context)}});var i},void 0===(s="function"==typeof n?n.apply(e,o):n)||(t.exports=s)}()},780:(t,e,i)=>{var n,o,s;o=[i(692)],void 0===(s="function"==typeof(n=function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function o(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function s(i,n){return function(){return n!==e&&t.fn.datepicker.deprecated(n),this[i].apply(this,arguments)}}function r(t){return t&&!isNaN(t.getTime())}var a,l=(a={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;i<n;i++)if(0<=this[i].valueOf()-e&&this[i].valueOf()-e<864e5)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(Array.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var t=new l;return t.replace(this),t}},function(){var e=[];return e.push.apply(e,arguments),t.extend(e,a),e}),c=function(e,i){t.data(e,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(i),this.dates=new l,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),null===this.o.isInline?this.isInline=!this.component&&!this.isInput:this.isInline=this.o.isInline,this.picker=t(y.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",(function(t,e){return Number(e)+1})),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};c.prototype={constructor:c,_resolveViewName:function(e){return t.each(y.viewModes,(function(i,n){if(e===i||-1!==t.inArray(e,n.names))return e=i,!1})),e},_resolveDaysOfWeek:function(e){return Array.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{return i!==e&&""!==i&&((i.match(/[<>]/g)||[]).length<=0||t(i).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var o=this.o=t.extend({},this._o),s=o.language;v[s]||(s=s.split("-")[0],v[s]||(s=m.language)),o.language=s,o.startView=this._resolveViewName(o.startView),o.minViewMode=this._resolveViewName(o.minViewMode),o.maxViewMode=this._resolveViewName(o.maxViewMode),o.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,o.startView)),!0!==o.multidate&&(o.multidate=Number(o.multidate)||!1,!1!==o.multidate&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7;var r=y.parseFormat(o.format);o.startDate!==-1/0&&(o.startDate?o.startDate instanceof Date?o.startDate=this._local_to_utc(this._zero_time(o.startDate)):o.startDate=y.parseDate(o.startDate,r,o.language,o.assumeNearbyYear):o.startDate=-1/0),o.endDate!==1/0&&(o.endDate?o.endDate instanceof Date?o.endDate=this._local_to_utc(this._zero_time(o.endDate)):o.endDate=y.parseDate(o.endDate,r,o.language,o.assumeNearbyYear):o.endDate=1/0),o.daysOfWeekDisabled=this._resolveDaysOfWeek(o.daysOfWeekDisabled||[]),o.daysOfWeekHighlighted=this._resolveDaysOfWeek(o.daysOfWeekHighlighted||[]),o.datesDisabled=o.datesDisabled||[],Array.isArray(o.datesDisabled)||(o.datesDisabled=o.datesDisabled.split(",")),o.datesDisabled=t.map(o.datesDisabled,(function(t){return y.parseDate(t,r,o.language,o.assumeNearbyYear)}));var a=String(o.orientation).toLowerCase().split(/\s+/g),l=o.orientation.toLowerCase();if(a=t.grep(a,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),o.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":o.orientation.y=a[0];break;case"left":case"right":o.orientation.x=a[0]}else l=t.grep(a,(function(t){return/^left|right$/.test(t)})),o.orientation.x=l[0]||"auto",l=t.grep(a,(function(t){return/^top|bottom$/.test(t)})),o.orientation.y=l[0]||"auto";if(o.defaultViewDate instanceof Date||"string"==typeof o.defaultViewDate)o.defaultViewDate=y.parseDate(o.defaultViewDate,r,o.language,o.assumeNearbyYear);else if(o.defaultViewDate){var c=o.defaultViewDate.year||(new Date).getFullYear(),u=o.defaultViewDate.month||0,d=o.defaultViewDate.day||1;o.defaultViewDate=i(c,u,d)}else o.defaultViewDate=n()},_applyEvents:function(t){for(var i,n,o,s=0;s<t.length;s++)i=t[s][0],2===t[s].length?(n=e,o=t[s][1]):3===t[s].length&&(n=t[s][1],o=t[s][2]),i.on(o,n)},_unapplyEvents:function(t){for(var i,n,o,s=0;s<t.length;s++)i=t[s][0],2===t[s].length?(o=e,n=t[s][1]):3===t[s].length&&(o=t[s][1],n=t[s][2]),i.off(n,o)},_buildEvents:function(){var e={keyup:t.proxy((function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()}),this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy((function(t){this._focused_from=t.target}),this)}],[this.element,{blur:t.proxy((function(t){this._focused_from=t.target}),this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy((function(t){this.update(t.date)}),this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy((function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()}),this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var n=i||this.dates.get(-1),o=this._utc_to_local(n);this.element.trigger({type:e,date:o,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy((function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return y.formatDate(i,e,this.o.language)}),this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,(function(t){return new Date(t)}))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()},setDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=Array.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:s("setDates"),setUTCDate:s("setUTCDates"),remove:s("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var n=this.o.language;return t.map(this.dates,(function(t){return y.formatDate(t,i,n)})).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),n=10,o=t(this.o.container),s=o.width(),r="body"===this.o.container?t(document).scrollTop():o.scrollTop(),a=o.offset(),l=[0];this.element.parents().each((function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&l.push(Number(e))}));var c=Math.max.apply(Math,l)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),h=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),p=u.left-a.left,f=u.top-a.top;"body"!==this.o.container&&(f+=r),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(p-=e-h)):u.left<0?(this.picker.addClass("datepicker-orient-left"),p-=u.left-n):p+e>s?(this.picker.addClass("datepicker-orient-right"),p+=h-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var m=this.o.orientation.y;if("auto"===m&&(m=-r+f-i<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?f-=i+parseInt(this.picker.css("padding-top")):f+=d,this.o.rtl){var g=s-(p+h);this.picker.css({top:f,right:g,zIndex:c})}else this.picker.css({top:f,left:p,zIndex:c});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],n=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)}),this)),n=!0):(i=(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy((function(t){return y.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),i=t.grep(i,t.proxy((function(t){return!this.dateWithinRange(t)||!t}),this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),n?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&n&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='">'+v[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",i=0;i<12;i++)e+='<span class="month'+(t&&t.getMonth()===i?" focused":"")+'">'+v[this.o.language].monthsShort[i]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var i=[],s=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),a=n();return e.getUTCFullYear()<s||e.getUTCFullYear()===s&&e.getUTCMonth()<r?i.push("old"):(e.getUTCFullYear()>s||e.getUTCFullYear()===s&&e.getUTCMonth()>r)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&o(e,a)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,n,o,s,r,a,l){for(var c,u,d,h="",p=o/10,f=this.picker.find(i),m=Math.floor(s/o)*o,g=m+9*p,v=Math.floor(this.viewDate.getFullYear()/p)*p,y=t.map(this.dates,(function(t){return Math.floor(t.getUTCFullYear()/p)*p})),b=m-p;b<=g+p;b+=p)c=[n],u=null,b===m-p?c.push("old"):b===g+p&&c.push("new"),-1!==t.inArray(b,y)&&c.push("active"),(b<r||b>a)&&c.push("disabled"),b===v&&c.push("focused"),l!==t.noop&&((d=l(new Date(b,0,1)))===e?d={}:"boolean"==typeof d?d={enabled:d}:"string"==typeof d&&(d={classes:d}),!1===d.enabled&&c.push("disabled"),d.classes&&(c=c.concat(d.classes.split(/\s+/))),d.tooltip&&(u=d.tooltip)),h+='<span class="'+c.join(" ")+'"'+(u?' title="'+u+'"':"")+">"+b+"</span>";f.find(".datepicker-switch").text(m+"-"+g),f.find("td").html(h)},fill:function(){var o,s,r=new Date(this.viewDate),a=r.getUTCFullYear(),l=r.getUTCMonth(),c=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,p=v[this.o.language].today||v.en.today||"",f=v[this.o.language].clear||v.en.clear||"",m=v[this.o.language].titleFormat||v.en.titleFormat,g=n(),b=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&g>=this.o.startDate&&g<=this.o.endDate&&!this.weekOfDateIsDisabled(g);if(!isNaN(a)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(y.formatDate(r,m,this.o.language)),this.picker.find("tfoot .today").text(p).css("display",b?"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 _=i(a,l,0),w=_.getUTCDate();_.setUTCDate(w-(_.getUTCDay()-this.o.weekStart+7)%7);var x=new Date(_);_.getUTCFullYear()<100&&x.setUTCFullYear(_.getUTCFullYear()),x.setUTCDate(x.getUTCDate()+42),x=x.valueOf();for(var k,C,T=[];_.valueOf()<x;){if((k=_.getUTCDay())===this.o.weekStart&&(T.push("<tr>"),this.o.calendarWeeks)){var A=new Date(+_+(this.o.weekStart-k-7)%7*864e5),D=new Date(Number(A)+(11-A.getUTCDay())%7*864e5),E=new Date(Number(E=i(D.getUTCFullYear(),0,1))+(11-E.getUTCDay())%7*864e5),S=(D-E)/864e5/7+1;T.push('<td class="cw">'+S+"</td>")}(C=this.getClassNames(_)).push("day");var $=_.getUTCDate();this.o.beforeShowDay!==t.noop&&((s=this.o.beforeShowDay(this._utc_to_local(_)))===e?s={}:"boolean"==typeof s?s={enabled:s}:"string"==typeof s&&(s={classes:s}),!1===s.enabled&&C.push("disabled"),s.classes&&(C=C.concat(s.classes.split(/\s+/))),s.tooltip&&(o=s.tooltip),s.content&&($=s.content)),C="function"==typeof t.uniqueSort?t.uniqueSort(C):t.unique(C),T.push('<td class="'+C.join(" ")+'"'+(o?' title="'+o+'"':"")+' data-date="'+_.getTime().toString()+'">'+$+"</td>"),o=null,k===this.o.weekEnd&&T.push("</tr>"),_.setUTCDate(_.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(T.join(""));var P=v[this.o.language].monthsTitle||v.en.monthsTitle||"Months",O=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?P:a).end().find("tbody span").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===a&&O.eq(e.getUTCMonth()).addClass("active")})),(a<c||a>d)&&O.addClass("disabled"),a===c&&O.slice(0,u).addClass("disabled"),a===d&&O.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var L=this;t.each(O,(function(i,n){var o=new Date(a,i,1),s=L.o.beforeShowMonth(o);s===e?s={}:"boolean"==typeof s?s={enabled:s}:"string"==typeof s&&(s={classes:s}),!1!==s.enabled||t(n).hasClass("disabled")||t(n).addClass("disabled"),s.classes&&t(n).addClass(s.classes),s.tooltip&&t(n).prop("title",s.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,a,c,d,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,c,d,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,c,d,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),n=i.getUTCFullYear(),o=i.getUTCMonth(),s=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,r=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(n/c)*c<=s,e=Math.floor(n/c)*c+c>a;break;case 0:t=n<=s&&o<=r,e=n>=a&&o>=l}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){var o,s,r,a;e.preventDefault(),e.stopPropagation(),(o=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),o.hasClass("today")&&!o.hasClass("day")&&(this.setViewMode(0),this._setDate(n(),"linked"===this.o.todayBtn?null:"view")),o.hasClass("clear")&&this.clearDates(),o.hasClass("disabled")||(o.hasClass("month")||o.hasClass("year")||o.hasClass("decade")||o.hasClass("century"))&&(this.viewDate.setUTCDate(1),s=1,1===this.viewMode?(a=o.parent().find("span").index(o),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,r=Number(o.text()),this.viewDate.setUTCFullYear(r)),this._trigger(y.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(r,a,s)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var i=t(e.currentTarget).data("date"),n=new Date(i);this.o.updateViewDate&&(n.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),n.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(n)},navArrowsClick:function(e){var i=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(i*=12*y.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,i),this._trigger(y.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!r(t))return this.o.defaultViewDate;if(!e)return t;var i,n,o=new Date(t.valueOf()),s=o.getUTCDate(),a=o.getUTCMonth(),l=Math.abs(e);if(e=e>0?1:-1,1===l)n=-1===e?function(){return o.getUTCMonth()===a}:function(){return o.getUTCMonth()!==i},i=a+e,o.setUTCMonth(i),i=(i+12)%12;else{for(var c=0;c<l;c++)o=this.moveMonth(o,e);i=o.getUTCMonth(),o.setUTCDate(s),n=function(){return i!==o.getUTCMonth()}}for(;n();)o.setUTCDate(--s),o.setUTCMonth(i);return o},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,(function(t){return o(e,t)})).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,i,n=!1,o=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(o,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(i=this.moveAvailableDate(o,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(o,e,"moveDay"):this.weekOfDateIsDisabled(o)||(i=this.moveAvailableDate(o,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(o,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(o,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;o=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(o),n=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}n&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+y.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var u=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,(function(t){return t.jquery?t[0]:t})),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,f.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t.data(e,"datepicker")})),this.updateDates()};function d(e,i){var n=t(e).data(),o={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])");function r(t,e){return e.toLowerCase()}for(var a in i=new RegExp("^"+i.toLowerCase()),n)i.test(a)&&(o[a.replace(s,r)]=n[a]);return o}function h(e){var i={};if(v[e]||(e=e.split("-")[0],v[e])){var n=v[e];return t.each(g,(function(t,e){e in n&&(i[e]=n[e])})),i}}u.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,i){i.setRange(e)}))},clearDates:function(){t.each(this.pickers,(function(t,e){e.clearDates()}))},dateUpdated:function(i){if(!this.updating){this.updating=!0;var n=t.data(i.target,"datepicker");if(n!==e){var o=n.getUTCDate(),s=this.keepEmptyValues,r=t.inArray(i.target,this.inputs),a=r-1,l=r+1,c=this.inputs.length;if(-1!==r){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e!==n&&s||e.setUTCDate(o)})),o<this.dates[a])for(;a>=0&&o<this.dates[a]&&(this.pickers[a].element.val()||"").length>0;)this.pickers[a--].setUTCDate(o);else if(o>this.dates[l])for(;l<c&&o>this.dates[l]&&(this.pickers[l].element.val()||"").length>0;)this.pickers[l++].setUTCDate(o);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,(function(t){t.destroy()})),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:s("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var p=t.fn.datepicker,f=function(i){var n,o=Array.apply(null,arguments);if(o.shift(),this.each((function(){var e=t(this),s=e.data("datepicker"),r="object"==typeof i&&i;if(!s){var a=d(this,"date"),l=h(t.extend({},m,a,r).language),p=t.extend({},m,l,a,r);e.hasClass("input-daterange")||p.inputs?(t.extend(p,{inputs:p.inputs||e.find("input").toArray()}),s=new u(this,p)):s=new c(this,p),e.data("datepicker",s)}"string"==typeof i&&"function"==typeof s[i]&&(n=s[i].apply(s,o))})),n===e||n instanceof c||n instanceof u)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return n};t.fn.datepicker=f;var m=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,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:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=c;var v=t.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"}},y={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(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,o,s,r){if(!i)return e;if(i instanceof Date)return i;if("string"==typeof o&&(o=y.parseFormat(o)),o.toValue)return o.toValue(i,o,s);var a,l,u,d,h,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},f={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in f&&(i=f[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(a=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,d=0;d<a.length;d++)l=a[d].match(/([\-+]\d+)([dmwy])/i),u=Number(l[1]),h=p[l[2].toLowerCase()],i=c.prototype[h](i,u);return c.prototype._zero_utc_time(i)}function m(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}a=i&&i.match(this.nonpunctuation)||[];var g,b,_={},w=["yyyy","yy","M","MM","m","mm","d","dd"],x={yyyy:function(t,e){return t.setUTCFullYear(r?m(e,r):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};x.yy=x.yyyy,x.M=x.MM=x.mm=x.m,x.dd=x.d,i=n();var k=o.parts.slice();function C(){var t=this.slice(0,a[d].length),e=a[d].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(a.length!==k.length&&(k=t(k).filter((function(e,i){return-1!==t.inArray(i,w)})).toArray()),a.length===k.length){var T,A,D;for(d=0,T=k.length;d<T;d++){if(g=parseInt(a[d],10),l=k[d],isNaN(g))switch(l){case"MM":b=t(v[s].months).filter(C),g=t.inArray(b[0],v[s].months)+1;break;case"M":b=t(v[s].monthsShort).filter(C),g=t.inArray(b[0],v[s].monthsShort)+1}_[l]=g}for(d=0;d<w.length;d++)(D=w[d])in _&&!isNaN(_[D])&&(A=new Date(i),x[D](A,_[D]),isNaN(A)||(i=A))}return i},formatDate:function(e,i,n){if(!e)return"";if("string"==typeof i&&(i=y.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,n);var o={d:e.getUTCDate(),D:v[n].daysShort[e.getUTCDay()],DD:v[n].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:v[n].monthsShort[e.getUTCMonth()],MM:v[n].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};o.dd=(o.d<10?"0":"")+o.d,o.mm=(o.m<10?"0":"")+o.m,e=[];for(var s=t.extend([],i.separators),r=0,a=i.parts.length;r<=a;r++)s.length&&e.push(s.shift()),e.push(o[i.parts[r]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+m.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+m.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};y.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+y.headTemplate+"<tbody></tbody>"+y.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+y.headTemplate+y.contTemplate+y.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+y.headTemplate+y.contTemplate+y.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=y,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=p,this},t.fn.datepicker.version="1.10.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),f.call(i,"show"))})),t((function(){f.call(t('[data-provide="datepicker-inline"]'))}))})?n.apply(e,o):n)||(t.exports=s)},454:(t,e,i)=>{"use strict";i.r(e),i.d(e,{Alert:()=>Ee,Button:()=>$e,Carousel:()=>li,Collapse:()=>xi,Dropdown:()=>Yi,Modal:()=>Sn,Offcanvas:()=>Yn,Popover:()=>go,ScrollSpy:()=>Do,Tab:()=>Qo,Toast:()=>ds,Tooltip:()=>po});var n={};i.r(n),i.d(n,{afterMain:()=>k,afterRead:()=>_,afterWrite:()=>A,applyStyles:()=>L,arrow:()=>Z,auto:()=>l,basePlacements:()=>c,beforeMain:()=>w,beforeRead:()=>y,beforeWrite:()=>C,bottom:()=>s,clippingParents:()=>h,computeStyles:()=>nt,createPopper:()=>Lt,createPopperBase:()=>Ot,createPopperLite:()=>jt,detectOverflow:()=>bt,end:()=>d,eventListeners:()=>st,flip:()=>_t,hide:()=>kt,left:()=>a,main:()=>x,modifierPhases:()=>D,offset:()=>Ct,placements:()=>v,popper:()=>f,popperGenerator:()=>Pt,popperOffsets:()=>Tt,preventOverflow:()=>At,read:()=>b,reference:()=>m,right:()=>r,start:()=>u,top:()=>o,variationPlacements:()=>g,viewport:()=>p,write:()=>T});var o="top",s="bottom",r="right",a="left",l="auto",c=[o,s,r,a],u="start",d="end",h="clippingParents",p="viewport",f="popper",m="reference",g=c.reduce((function(t,e){return t.concat([e+"-"+u,e+"-"+d])}),[]),v=[].concat(c,[l]).reduce((function(t,e){return t.concat([e,e+"-"+u,e+"-"+d])}),[]),y="beforeRead",b="read",_="afterRead",w="beforeMain",x="main",k="afterMain",C="beforeWrite",T="write",A="afterWrite",D=[y,b,_,w,x,k,C,T,A];function E(t){return t?(t.nodeName||"").toLowerCase():null}function S(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function $(t){return t instanceof S(t).Element||t instanceof Element}function P(t){return t instanceof S(t).HTMLElement||t instanceof HTMLElement}function O(t){return"undefined"!=typeof ShadowRoot&&(t instanceof S(t).ShadowRoot||t instanceof ShadowRoot)}const L={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];P(o)&&E(o)&&(Object.assign(o.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],o=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});P(n)&&E(n)&&(Object.assign(n.style,s),Object.keys(o).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function j(t){return t.split("-")[0]}var I=Math.max,M=Math.min,N=Math.round;function H(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function F(){return!/^((?!chrome|android).)*safari/i.test(H())}function R(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=1,s=1;e&&P(t)&&(o=t.offsetWidth>0&&N(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&N(n.height)/t.offsetHeight||1);var r=($(t)?S(t):window).visualViewport,a=!F()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/o,c=(n.top+(a&&r?r.offsetTop:0))/s,u=n.width/o,d=n.height/s;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function B(t){var e=R(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function q(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&O(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function U(t){return S(t).getComputedStyle(t)}function W(t){return["table","td","th"].indexOf(E(t))>=0}function z(t){return(($(t)?t.ownerDocument:t.document)||window.document).documentElement}function V(t){return"html"===E(t)?t:t.assignedSlot||t.parentNode||(O(t)?t.host:null)||z(t)}function Y(t){return P(t)&&"fixed"!==U(t).position?t.offsetParent:null}function X(t){for(var e=S(t),i=Y(t);i&&W(i)&&"static"===U(i).position;)i=Y(i);return i&&("html"===E(i)||"body"===E(i)&&"static"===U(i).position)?e:i||function(t){var e=/firefox/i.test(H());if(/Trident/i.test(H())&&P(t)&&"fixed"===U(t).position)return null;var i=V(t);for(O(i)&&(i=i.host);P(i)&&["html","body"].indexOf(E(i))<0;){var n=U(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function G(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Q(t,e,i){return I(t,M(e,i))}function K(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function J(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const Z={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,l=t.options,u=i.elements.arrow,d=i.modifiersData.popperOffsets,h=j(i.placement),p=G(h),f=[a,r].indexOf(h)>=0?"height":"width";if(u&&d){var m=function(t,e){return K("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:J(t,c))}(l.padding,i),g=B(u),v="y"===p?o:a,y="y"===p?s:r,b=i.rects.reference[f]+i.rects.reference[p]-d[p]-i.rects.popper[f],_=d[p]-i.rects.reference[p],w=X(u),x=w?"y"===p?w.clientHeight||0:w.clientWidth||0:0,k=b/2-_/2,C=m[v],T=x-g[f]-m[y],A=x/2-g[f]/2+k,D=Q(C,A,T),E=p;i.modifiersData[n]=((e={})[E]=D,e.centerOffset=D-A,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&q(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function it(t){var e,i=t.popper,n=t.popperRect,l=t.placement,c=t.variation,u=t.offsets,h=t.position,p=t.gpuAcceleration,f=t.adaptive,m=t.roundOffsets,g=t.isFixed,v=u.x,y=void 0===v?0:v,b=u.y,_=void 0===b?0:b,w="function"==typeof m?m({x:y,y:_}):{x:y,y:_};y=w.x,_=w.y;var x=u.hasOwnProperty("x"),k=u.hasOwnProperty("y"),C=a,T=o,A=window;if(f){var D=X(i),E="clientHeight",$="clientWidth";if(D===S(i)&&"static"!==U(D=z(i)).position&&"absolute"===h&&(E="scrollHeight",$="scrollWidth"),l===o||(l===a||l===r)&&c===d)T=s,_-=(g&&D===A&&A.visualViewport?A.visualViewport.height:D[E])-n.height,_*=p?1:-1;if(l===a||(l===o||l===s)&&c===d)C=r,y-=(g&&D===A&&A.visualViewport?A.visualViewport.width:D[$])-n.width,y*=p?1:-1}var P,O=Object.assign({position:h},f&&et),L=!0===m?function(t,e){var i=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:N(i*o)/o||0,y:N(n*o)/o||0}}({x:y,y:_},S(i)):{x:y,y:_};return y=L.x,_=L.y,p?Object.assign({},O,((P={})[T]=k?"0":"",P[C]=x?"0":"",P.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+_+"px)":"translate3d("+y+"px, "+_+"px, 0)",P)):Object.assign({},O,((e={})[T]=k?_+"px":"",e[C]=x?y+"px":"",e.transform="",e))}const nt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=void 0===n||n,s=i.adaptive,r=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:j(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,it(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,it(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var ot={passive:!0};const st={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,s=void 0===o||o,r=n.resize,a=void 0===r||r,l=S(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach((function(t){t.addEventListener("scroll",i.update,ot)})),a&&l.addEventListener("resize",i.update,ot),function(){s&&c.forEach((function(t){t.removeEventListener("scroll",i.update,ot)})),a&&l.removeEventListener("resize",i.update,ot)}},data:{}};var rt={left:"right",right:"left",bottom:"top",top:"bottom"};function at(t){return t.replace(/left|right|bottom|top/g,(function(t){return rt[t]}))}var lt={start:"end",end:"start"};function ct(t){return t.replace(/start|end/g,(function(t){return lt[t]}))}function ut(t){var e=S(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(t){return R(z(t)).left+ut(t).scrollLeft}function ht(t){var e=U(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function pt(t){return["html","body","#document"].indexOf(E(t))>=0?t.ownerDocument.body:P(t)&&ht(t)?t:pt(V(t))}function ft(t,e){var i;void 0===e&&(e=[]);var n=pt(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),s=S(n),r=o?[s].concat(s.visualViewport||[],ht(n)?n:[]):n,a=e.concat(r);return o?a:a.concat(ft(V(r)))}function mt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function gt(t,e,i){return e===p?mt(function(t,e){var i=S(t),n=z(t),o=i.visualViewport,s=n.clientWidth,r=n.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;var c=F();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a+dt(t),y:l}}(t,i)):$(e)?function(t,e){var i=R(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):mt(function(t){var e,i=z(t),n=ut(t),o=null==(e=t.ownerDocument)?void 0:e.body,s=I(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=I(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+dt(t),l=-n.scrollTop;return"rtl"===U(o||i).direction&&(a+=I(i.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}(z(t)))}function vt(t,e,i,n){var o="clippingParents"===e?function(t){var e=ft(V(t)),i=["absolute","fixed"].indexOf(U(t).position)>=0&&P(t)?X(t):t;return $(i)?e.filter((function(t){return $(t)&&q(t,i)&&"body"!==E(t)})):[]}(t):[].concat(e),s=[].concat(o,[i]),r=s[0],a=s.reduce((function(e,i){var o=gt(t,i,n);return e.top=I(o.top,e.top),e.right=M(o.right,e.right),e.bottom=M(o.bottom,e.bottom),e.left=I(o.left,e.left),e}),gt(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function yt(t){var e,i=t.reference,n=t.element,l=t.placement,c=l?j(l):null,h=l?tt(l):null,p=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2;switch(c){case o:e={x:p,y:i.y-n.height};break;case s:e={x:p,y:i.y+i.height};break;case r:e={x:i.x+i.width,y:f};break;case a:e={x:i.x-n.width,y:f};break;default:e={x:i.x,y:i.y}}var m=c?G(c):null;if(null!=m){var g="y"===m?"height":"width";switch(h){case u:e[m]=e[m]-(i[g]/2-n[g]/2);break;case d:e[m]=e[m]+(i[g]/2-n[g]/2)}}return e}function bt(t,e){void 0===e&&(e={});var i=e,n=i.placement,a=void 0===n?t.placement:n,l=i.strategy,u=void 0===l?t.strategy:l,d=i.boundary,g=void 0===d?h:d,v=i.rootBoundary,y=void 0===v?p:v,b=i.elementContext,_=void 0===b?f:b,w=i.altBoundary,x=void 0!==w&&w,k=i.padding,C=void 0===k?0:k,T=K("number"!=typeof C?C:J(C,c)),A=_===f?m:f,D=t.rects.popper,E=t.elements[x?A:_],S=vt($(E)?E:E.contextElement||z(t.elements.popper),g,y,u),P=R(t.elements.reference),O=yt({reference:P,element:D,strategy:"absolute",placement:a}),L=mt(Object.assign({},D,O)),j=_===f?L:P,I={top:S.top-j.top+T.top,bottom:j.bottom-S.bottom+T.bottom,left:S.left-j.left+T.left,right:j.right-S.right+T.right},M=t.modifiersData.offset;if(_===f&&M){var N=M[a];Object.keys(I).forEach((function(t){var e=[r,s].indexOf(t)>=0?1:-1,i=[o,s].indexOf(t)>=0?"y":"x";I[t]+=N[i]*e}))}return I}const _t={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var d=i.mainAxis,h=void 0===d||d,p=i.altAxis,f=void 0===p||p,m=i.fallbackPlacements,y=i.padding,b=i.boundary,_=i.rootBoundary,w=i.altBoundary,x=i.flipVariations,k=void 0===x||x,C=i.allowedAutoPlacements,T=e.options.placement,A=j(T),D=m||(A===T||!k?[at(T)]:function(t){if(j(t)===l)return[];var e=at(t);return[ct(t),e,ct(e)]}(T)),E=[T].concat(D).reduce((function(t,i){return t.concat(j(i)===l?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=i.boundary,s=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,u=void 0===l?v:l,d=tt(n),h=d?a?g:g.filter((function(t){return tt(t)===d})):c,p=h.filter((function(t){return u.indexOf(t)>=0}));0===p.length&&(p=h);var f=p.reduce((function(e,i){return e[i]=bt(t,{placement:i,boundary:o,rootBoundary:s,padding:r})[j(i)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:i,boundary:b,rootBoundary:_,padding:y,flipVariations:k,allowedAutoPlacements:C}):i)}),[]),S=e.rects.reference,$=e.rects.popper,P=new Map,O=!0,L=E[0],I=0;I<E.length;I++){var M=E[I],N=j(M),H=tt(M)===u,F=[o,s].indexOf(N)>=0,R=F?"width":"height",B=bt(e,{placement:M,boundary:b,rootBoundary:_,altBoundary:w,padding:y}),q=F?H?r:a:H?s:o;S[R]>$[R]&&(q=at(q));var U=at(q),W=[];if(h&&W.push(B[N]<=0),f&&W.push(B[q]<=0,B[U]<=0),W.every((function(t){return t}))){L=M,O=!1;break}P.set(M,W)}if(O)for(var z=function(t){var e=E.find((function(e){var i=P.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return L=e,"break"},V=k?3:1;V>0;V--){if("break"===z(V))break}e.placement!==L&&(e.modifiersData[n]._skip=!0,e.placement=L,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function wt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function xt(t){return[o,r,s,a].some((function(e){return t[e]>=0}))}const kt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,r=bt(e,{elementContext:"reference"}),a=bt(e,{altBoundary:!0}),l=wt(r,n),c=wt(a,o,s),u=xt(l),d=xt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};const Ct={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,l=void 0===s?[0,0]:s,c=v.reduce((function(t,i){return t[i]=function(t,e,i){var n=j(t),s=[a,o].indexOf(n)>=0?-1:1,l="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=l[0],u=l[1];return c=c||0,u=(u||0)*s,[a,r].indexOf(n)>=0?{x:u,y:c}:{x:c,y:u}}(i,e.rects,l),t}),{}),u=c[e.placement],d=u.x,h=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=h),e.modifiersData[n]=c}};const Tt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=yt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};const At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,l=i.mainAxis,c=void 0===l||l,d=i.altAxis,h=void 0!==d&&d,p=i.boundary,f=i.rootBoundary,m=i.altBoundary,g=i.padding,v=i.tether,y=void 0===v||v,b=i.tetherOffset,_=void 0===b?0:b,w=bt(e,{boundary:p,rootBoundary:f,padding:g,altBoundary:m}),x=j(e.placement),k=tt(e.placement),C=!k,T=G(x),A="x"===T?"y":"x",D=e.modifiersData.popperOffsets,E=e.rects.reference,S=e.rects.popper,$="function"==typeof _?_(Object.assign({},e.rects,{placement:e.placement})):_,P="number"==typeof $?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),O=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(D){if(c){var N,H="y"===T?o:a,F="y"===T?s:r,R="y"===T?"height":"width",q=D[T],U=q+w[H],W=q-w[F],z=y?-S[R]/2:0,V=k===u?E[R]:S[R],Y=k===u?-S[R]:-E[R],K=e.elements.arrow,J=y&&K?B(K):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=Z[H],it=Z[F],nt=Q(0,E[R],J[R]),ot=C?E[R]/2-z-nt-et-P.mainAxis:V-nt-et-P.mainAxis,st=C?-E[R]/2+z+nt+it+P.mainAxis:Y+nt+it+P.mainAxis,rt=e.elements.arrow&&X(e.elements.arrow),at=rt?"y"===T?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(N=null==O?void 0:O[T])?N:0,ct=q+st-lt,ut=Q(y?M(U,q+ot-lt-at):U,q,y?I(W,ct):W);D[T]=ut,L[T]=ut-q}if(h){var dt,ht="x"===T?o:a,pt="x"===T?s:r,ft=D[A],mt="y"===A?"height":"width",gt=ft+w[ht],vt=ft-w[pt],yt=-1!==[o,a].indexOf(x),_t=null!=(dt=null==O?void 0:O[A])?dt:0,wt=yt?gt:ft-E[mt]-S[mt]-_t+P.altAxis,xt=yt?ft+E[mt]+S[mt]-_t-P.altAxis:vt,kt=y&&yt?function(t,e,i){var n=Q(t,e,i);return n>i?i:n}(wt,ft,xt):Q(y?wt:gt,ft,y?xt:vt);D[A]=kt,L[A]=kt-ft}e.modifiersData[n]=L}},requiresIfExists:["offset"]};function Dt(t,e,i){void 0===i&&(i=!1);var n,o,s=P(e),r=P(e)&&function(t){var e=t.getBoundingClientRect(),i=N(e.width)/t.offsetWidth||1,n=N(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=z(e),l=R(t,r,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!i)&&(("body"!==E(e)||ht(a))&&(c=(n=e)!==S(n)&&P(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:ut(n)),P(e)?((u=R(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=dt(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Et(t){var e=new Map,i=new Set,n=[];function o(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&o(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||o(t)})),n}var St={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Pt(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,o=e.defaultOptions,s=void 0===o?St:o;return function(t,e,i){void 0===i&&(i=s);var o,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},St,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;d(),a.options=Object.assign({},s,a.options,o),a.scrollParents={reference:$(t)?ft(t):t.contextElement?ft(t.contextElement):[],popper:ft(e)};var r,c,h=function(t){var e=Et(t);return D.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=h.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var s=o({state:a,name:e,instance:u,options:n}),r=function(){};l.push(s||r)}})),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if($t(e,i)){a.rects={reference:Dt(e,X(i),"fixed"===a.options.strategy),popper:B(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],s=o.fn,r=o.options,l=void 0===r?{}:r,d=o.name;"function"==typeof s&&(a=s({state:a,options:l,name:d,instance:u})||a)}else a.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(t){u.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(o())}))}))),r}),destroy:function(){d(),c=!0}};if(!$t(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var Ot=Pt(),Lt=Pt({defaultModifiers:[st,Tt,nt,L,Ct,_t,At,Z,kt]}),jt=Pt({defaultModifiers:[st,Tt,nt,L]});const It=new Map,Mt={set(t,e,i){It.has(t)||It.set(t,new Map);const n=It.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>It.has(t)&&It.get(t).get(e)||null,remove(t,e){if(!It.has(t))return;const i=It.get(t);i.delete(e),0===i.size&&It.delete(t)}},Nt="transitionend",Ht=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Ft=t=>{t.dispatchEvent(new Event(Nt))},Rt=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Bt=t=>Rt(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Ht(t)):null,qt=t=>{if(!Rt(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},Ut=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),Wt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Wt(t.parentNode):null},zt=()=>{},Vt=t=>{t.offsetHeight},Yt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xt=[],Gt=()=>"rtl"===document.documentElement.dir,Qt=t=>{var e;e=()=>{const e=Yt();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(Xt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Xt)t()})),Xt.push(e)):e()},Kt=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,Jt=(t,e,i=!0)=>{if(!i)return void Kt(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),o=Number.parseFloat(i);return n||o?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let o=!1;const s=({target:i})=>{i===e&&(o=!0,e.removeEventListener(Nt,s),Kt(t))};e.addEventListener(Nt,s),setTimeout((()=>{o||Ft(e)}),n)},Zt=(t,e,i,n)=>{const o=t.length;let s=t.indexOf(e);return-1===s?!i&&n?t[o-1]:t[0]:(s+=i?1:-1,n&&(s=(s+o)%o),t[Math.max(0,Math.min(s,o-1))])},te=/[^.]*(?=\..*)\.|.*/,ee=/\..*/,ie=/::\d+$/,ne={};let oe=1;const se={mouseenter:"mouseover",mouseleave:"mouseout"},re=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 ae(t,e){return e&&`${e}::${oe++}`||t.uidEvent||oe++}function le(t){const e=ae(t);return t.uidEvent=e,ne[e]=ne[e]||{},ne[e]}function ce(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function ue(t,e,i){const n="string"==typeof e,o=n?i:e||i;let s=fe(t);return re.has(s)||(s=t),[n,o,s]}function de(t,e,i,n,o){if("string"!=typeof e||!t)return;let[s,r,a]=ue(e,i,n);if(e in se){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=le(t),c=l[a]||(l[a]={}),u=ce(c,r,s?i:null);if(u)return void(u.oneOff=u.oneOff&&o);const d=ae(r,e.replace(te,"")),h=s?function(t,e,i){return function n(o){const s=t.querySelectorAll(e);for(let{target:r}=o;r&&r!==this;r=r.parentNode)for(const a of s)if(a===r)return ge(o,{delegateTarget:r}),n.oneOff&&me.off(t,o.type,e,i),i.apply(r,[o])}}(t,i,r):function(t,e){return function i(n){return ge(n,{delegateTarget:t}),i.oneOff&&me.off(t,n.type,e),e.apply(t,[n])}}(t,r);h.delegationSelector=s?i:null,h.callable=r,h.oneOff=o,h.uidEvent=d,c[d]=h,t.addEventListener(a,h,s)}function he(t,e,i,n,o){const s=ce(e[i],n,o);s&&(t.removeEventListener(i,s,Boolean(o)),delete e[i][s.uidEvent])}function pe(t,e,i,n){const o=e[i]||{};for(const[s,r]of Object.entries(o))s.includes(n)&&he(t,e,i,r.callable,r.delegationSelector)}function fe(t){return t=t.replace(ee,""),se[t]||t}const me={on(t,e,i,n){de(t,e,i,n,!1)},one(t,e,i,n){de(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[o,s,r]=ue(e,i,n),a=r!==e,l=le(t),c=l[r]||{},u=e.startsWith(".");if(void 0===s){if(u)for(const i of Object.keys(l))pe(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const o=i.replace(ie,"");a&&!e.includes(o)||he(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;he(t,l,r,s,o?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=Yt();let o=null,s=!0,r=!0,a=!1;e!==fe(e)&&n&&(o=n.Event(e,i),n(t).trigger(o),s=!o.isPropagationStopped(),r=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const l=ge(new Event(e,{bubbles:s,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function ge(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function ve(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ye(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const be={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${ye(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ye(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=ve(t.dataset[n])}return e},getDataAttribute:(t,e)=>ve(t.getAttribute(`data-bs-${ye(e)}`))};class _e{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Rt(e)?be.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Rt(e)?be.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,o]of Object.entries(e)){const e=t[n],s=Rt(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${o}".`)}var i}}class we extends _e{constructor(t,e){super(),(t=Bt(t))&&(this._element=t,this._config=this._getConfig(e),Mt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Mt.remove(this._element,this.constructor.DATA_KEY),me.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Jt(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Mt.get(Bt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const xe=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?Ht(i.trim()):null}return e},ke={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!Ut(t)&&qt(t)))},getSelectorFromElement(t){const e=xe(t);return e&&ke.findOne(e)?e:null},getElementFromSelector(t){const e=xe(t);return e?ke.findOne(e):null},getMultipleElementsFromSelector(t){const e=xe(t);return e?ke.find(e):[]}},Ce=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;me.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ut(this))return;const o=ke.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(o)[e]()}))},Te=".bs.alert",Ae=`close${Te}`,De=`closed${Te}`;class Ee extends we{static get NAME(){return"alert"}close(){if(me.trigger(this._element,Ae).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),me.trigger(this._element,De),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Ee.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Ce(Ee,"close"),Qt(Ee);const Se='[data-bs-toggle="button"]';class $e extends we{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=$e.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}me.on(document,"click.bs.button.data-api",Se,(t=>{t.preventDefault();const e=t.target.closest(Se);$e.getOrCreateInstance(e).toggle()})),Qt($e);const Pe=".bs.swipe",Oe=`touchstart${Pe}`,Le=`touchmove${Pe}`,je=`touchend${Pe}`,Ie=`pointerdown${Pe}`,Me=`pointerup${Pe}`,Ne={endCallback:null,leftCallback:null,rightCallback:null},He={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Fe extends _e{constructor(t,e){super(),this._element=t,t&&Fe.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ne}static get DefaultType(){return He}static get NAME(){return"swipe"}dispose(){me.off(this._element,Pe)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Kt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Kt(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(me.on(this._element,Ie,(t=>this._start(t))),me.on(this._element,Me,(t=>this._end(t))),this._element.classList.add("pointer-event")):(me.on(this._element,Oe,(t=>this._start(t))),me.on(this._element,Le,(t=>this._move(t))),me.on(this._element,je,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Re=".bs.carousel",Be=".data-api",qe="next",Ue="prev",We="left",ze="right",Ve=`slide${Re}`,Ye=`slid${Re}`,Xe=`keydown${Re}`,Ge=`mouseenter${Re}`,Qe=`mouseleave${Re}`,Ke=`dragstart${Re}`,Je=`load${Re}${Be}`,Ze=`click${Re}${Be}`,ti="carousel",ei="active",ii=".active",ni=".carousel-item",oi=ii+ni,si={ArrowLeft:ze,ArrowRight:We},ri={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ai={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class li extends we{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ke.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ti&&this.cycle()}static get Default(){return ri}static get DefaultType(){return ai}static get NAME(){return"carousel"}next(){this._slide(qe)}nextWhenVisible(){!document.hidden&&qt(this._element)&&this.next()}prev(){this._slide(Ue)}pause(){this._isSliding&&Ft(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?me.one(this._element,Ye,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void me.one(this._element,Ye,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?qe:Ue;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&me.on(this._element,Xe,(t=>this._keydown(t))),"hover"===this._config.pause&&(me.on(this._element,Ge,(()=>this.pause())),me.on(this._element,Qe,(()=>this._maybeEnableCycle()))),this._config.touch&&Fe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of ke.find(".carousel-item img",this._element))me.on(t,Ke,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(We)),rightCallback:()=>this._slide(this._directionToOrder(ze)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Fe(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=si[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=ke.findOne(ii,this._indicatorsElement);e.classList.remove(ei),e.removeAttribute("aria-current");const i=ke.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(ei),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===qe,o=e||Zt(this._getItems(),i,n,this._config.wrap);if(o===i)return;const s=this._getItemIndex(o),r=e=>me.trigger(this._element,e,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:s});if(r(Ve).defaultPrevented)return;if(!i||!o)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=o;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";o.classList.add(c),Vt(o),i.classList.add(l),o.classList.add(l);this._queueCallback((()=>{o.classList.remove(l,c),o.classList.add(ei),i.classList.remove(ei,c,l),this._isSliding=!1,r(Ye)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return ke.findOne(oi,this._element)}_getItems(){return ke.find(ni,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Gt()?t===We?Ue:qe:t===We?qe:Ue}_orderToDirection(t){return Gt()?t===Ue?We:ze:t===Ue?ze:We}static jQueryInterface(t){return this.each((function(){const e=li.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}me.on(document,Ze,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(ti))return;t.preventDefault();const i=li.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===be.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),me.on(window,Je,(()=>{const t=ke.find('[data-bs-ride="carousel"]');for(const e of t)li.getOrCreateInstance(e)})),Qt(li);const ci=".bs.collapse",ui=`show${ci}`,di=`shown${ci}`,hi=`hide${ci}`,pi=`hidden${ci}`,fi=`click${ci}.data-api`,mi="show",gi="collapse",vi="collapsing",yi=`:scope .${gi} .${gi}`,bi='[data-bs-toggle="collapse"]',_i={parent:null,toggle:!0},wi={parent:"(null|element)",toggle:"boolean"};class xi extends we{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=ke.find(bi);for(const t of i){const e=ke.getSelectorFromElement(t),i=ke.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _i}static get DefaultType(){return wi}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>xi.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(me.trigger(this._element,ui).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(gi),this._element.classList.add(vi),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(vi),this._element.classList.add(gi,mi),this._element.style[e]="",me.trigger(this._element,di)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(me.trigger(this._element,hi).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Vt(this._element),this._element.classList.add(vi),this._element.classList.remove(gi,mi);for(const t of this._triggerArray){const e=ke.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(vi),this._element.classList.add(gi),me.trigger(this._element,pi)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(mi)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Bt(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(bi);for(const e of t){const t=ke.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=ke.find(yi,this._config.parent);return ke.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=xi.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}me.on(document,fi,bi,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of ke.getMultipleElementsFromSelector(this))xi.getOrCreateInstance(t,{toggle:!1}).toggle()})),Qt(xi);const ki="dropdown",Ci=".bs.dropdown",Ti=".data-api",Ai="ArrowUp",Di="ArrowDown",Ei=`hide${Ci}`,Si=`hidden${Ci}`,$i=`show${Ci}`,Pi=`shown${Ci}`,Oi=`click${Ci}${Ti}`,Li=`keydown${Ci}${Ti}`,ji=`keyup${Ci}${Ti}`,Ii="show",Mi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ni=`${Mi}.${Ii}`,Hi=".dropdown-menu",Fi=Gt()?"top-end":"top-start",Ri=Gt()?"top-start":"top-end",Bi=Gt()?"bottom-end":"bottom-start",qi=Gt()?"bottom-start":"bottom-end",Ui=Gt()?"left-start":"right-start",Wi=Gt()?"right-start":"left-start",zi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Yi extends we{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=ke.next(this._element,Hi)[0]||ke.prev(this._element,Hi)[0]||ke.findOne(Hi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return zi}static get DefaultType(){return Vi}static get NAME(){return ki}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ut(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!me.trigger(this._element,$i,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))me.on(t,"mouseover",zt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ii),this._element.classList.add(Ii),me.trigger(this._element,Pi,t)}}hide(){if(Ut(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!me.trigger(this._element,Ei,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))me.off(t,"mouseover",zt);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ii),this._element.classList.remove(Ii),this._element.setAttribute("aria-expanded","false"),be.removeDataAttribute(this._menu,"popper"),me.trigger(this._element,Si,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Rt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${ki.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Rt(this._config.reference)?t=Bt(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Lt(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ii)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ui;if(t.classList.contains("dropstart"))return Wi;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Ri:Fi:e?qi:Bi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(be.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Kt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=ke.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>qt(t)));i.length&&Zt(i,e,t===Di,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Yi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=ke.find(Ni);for(const i of e){const e=Yi.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),o=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!o||"outside"===e._config.autoClose&&o)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const s={relatedTarget:e._element};"click"===t.type&&(s.clickEvent=t),e._completeHide(s)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Ai,Di].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const o=this.matches(Mi)?this:ke.prev(this,Mi)[0]||ke.next(this,Mi)[0]||ke.findOne(Mi,t.delegateTarget.parentNode),s=Yi.getOrCreateInstance(o);if(n)return t.stopPropagation(),s.show(),void s._selectMenuItem(t);s._isShown()&&(t.stopPropagation(),s.hide(),o.focus())}}me.on(document,Li,Mi,Yi.dataApiKeydownHandler),me.on(document,Li,Hi,Yi.dataApiKeydownHandler),me.on(document,Oi,Yi.clearMenus),me.on(document,ji,Yi.clearMenus),me.on(document,Oi,Mi,(function(t){t.preventDefault(),Yi.getOrCreateInstance(this).toggle()})),Qt(Yi);const Xi="backdrop",Gi="show",Qi=`mousedown.bs.${Xi}`,Ki={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ji={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Zi extends _e{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Ki}static get DefaultType(){return Ji}static get NAME(){return Xi}show(t){if(!this._config.isVisible)return void Kt(t);this._append();const e=this._getElement();this._config.isAnimated&&Vt(e),e.classList.add(Gi),this._emulateAnimation((()=>{Kt(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Gi),this._emulateAnimation((()=>{this.dispose(),Kt(t)}))):Kt(t)}dispose(){this._isAppended&&(me.off(this._element,Qi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Bt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),me.on(t,Qi,(()=>{Kt(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Jt(t,this._getElement(),this._config.isAnimated)}}const tn=".bs.focustrap",en=`focusin${tn}`,nn=`keydown.tab${tn}`,on="backward",sn={autofocus:!0,trapElement:null},rn={autofocus:"boolean",trapElement:"element"};class an extends _e{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return sn}static get DefaultType(){return rn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),me.off(document,tn),me.on(document,en,(t=>this._handleFocusin(t))),me.on(document,nn,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,me.off(document,tn))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=ke.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===on?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?on:"forward")}}const ln=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",cn=".sticky-top",un="padding-right",dn="margin-right";class hn{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,un,(e=>e+t)),this._setElementAttributes(ln,un,(e=>e+t)),this._setElementAttributes(cn,dn,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,un),this._resetElementAttributes(ln,un),this._resetElementAttributes(cn,dn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const o=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(o))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&be.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=be.getDataAttribute(t,e);null!==i?(be.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Rt(t))e(t);else for(const i of ke.find(t,this._element))e(i)}}const pn=".bs.modal",fn=`hide${pn}`,mn=`hidePrevented${pn}`,gn=`hidden${pn}`,vn=`show${pn}`,yn=`shown${pn}`,bn=`resize${pn}`,_n=`click.dismiss${pn}`,wn=`mousedown.dismiss${pn}`,xn=`keydown.dismiss${pn}`,kn=`click${pn}.data-api`,Cn="modal-open",Tn="show",An="modal-static",Dn={backdrop:!0,focus:!0,keyboard:!0},En={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Sn extends we{constructor(t,e){super(t,e),this._dialog=ke.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hn,this._addEventListeners()}static get Default(){return Dn}static get DefaultType(){return En}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;me.trigger(this._element,vn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Cn),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;me.trigger(this._element,fn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Tn),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){me.off(window,pn),me.off(this._dialog,pn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Zi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new an({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=ke.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Vt(this._element),this._element.classList.add(Tn);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,me.trigger(this._element,yn,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){me.on(this._element,xn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),me.on(window,bn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),me.on(this._element,wn,(t=>{me.one(this._element,_n,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_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(Cn),this._resetAdjustments(),this._scrollBar.reset(),me.trigger(this._element,gn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(me.trigger(this._element,mn).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(An)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(An),this._queueCallback((()=>{this._element.classList.remove(An),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=Gt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=Gt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Sn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}me.on(document,kn,'[data-bs-toggle="modal"]',(function(t){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),me.one(e,vn,(t=>{t.defaultPrevented||me.one(e,gn,(()=>{qt(this)&&this.focus()}))}));const i=ke.findOne(".modal.show");i&&Sn.getInstance(i).hide();Sn.getOrCreateInstance(e).toggle(this)})),Ce(Sn),Qt(Sn);const $n=".bs.offcanvas",Pn=".data-api",On=`load${$n}${Pn}`,Ln="show",jn="showing",In="hiding",Mn=".offcanvas.show",Nn=`show${$n}`,Hn=`shown${$n}`,Fn=`hide${$n}`,Rn=`hidePrevented${$n}`,Bn=`hidden${$n}`,qn=`resize${$n}`,Un=`click${$n}${Pn}`,Wn=`keydown.dismiss${$n}`,zn={backdrop:!0,keyboard:!0,scroll:!1},Vn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Yn extends we{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return zn}static get DefaultType(){return Vn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(me.trigger(this._element,Nn,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new hn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(jn);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ln),this._element.classList.remove(jn),me.trigger(this._element,Hn,{relatedTarget:t})}),this._element,!0)}hide(){if(!this._isShown)return;if(me.trigger(this._element,Fn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(In),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(Ln,In),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new hn).reset(),me.trigger(this._element,Bn)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Zi({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():me.trigger(this._element,Rn)}:null})}_initializeFocusTrap(){return new an({trapElement:this._element})}_addEventListeners(){me.on(this._element,Wn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():me.trigger(this._element,Rn))}))}static jQueryInterface(t){return this.each((function(){const e=Yn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}me.on(document,Un,'[data-bs-toggle="offcanvas"]',(function(t){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ut(this))return;me.one(e,Bn,(()=>{qt(this)&&this.focus()}));const i=ke.findOne(Mn);i&&i!==e&&Yn.getInstance(i).hide();Yn.getOrCreateInstance(e).toggle(this)})),me.on(window,On,(()=>{for(const t of ke.find(Mn))Yn.getOrCreateInstance(t).show()})),me.on(window,qn,(()=>{for(const t of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Yn.getOrCreateInstance(t).hide()})),Ce(Yn),Qt(Yn);const Xn={"*":["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:[]},Gn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Kn=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Gn.has(i)||Boolean(Qn.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))};const Jn={allowList:Xn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Zn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},to={entry:"(string|element|function|null)",selector:"(string|element)"};class eo extends _e{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Jn}static get DefaultType(){return Zn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},to)}_setContent(t,e,i){const n=ke.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?Rt(e)?this._putElementInTemplate(Bt(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),o=[].concat(...n.body.querySelectorAll("*"));for(const t of o){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),o=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Kn(e,o)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Kt(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const io=new Set(["sanitize","allowList","sanitizeFn"]),no="fade",oo="show",so=".modal",ro="hide.bs.modal",ao="hover",lo="focus",co={AUTO:"auto",TOP:"top",RIGHT:Gt()?"left":"right",BOTTOM:"bottom",LEFT:Gt()?"right":"left"},uo={allowList:Xn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ho={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class po extends we{constructor(t,e){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return uo}static get DefaultType(){return ho}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),me.off(this._element.closest(so),ro,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=me.trigger(this._element,this.constructor.eventName("show")),e=(Wt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),me.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(oo),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))me.on(t,"mouseover",zt);this._queueCallback((()=>{me.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(me.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(oo),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))me.off(t,"mouseover",zt);this._activeTrigger.click=!1,this._activeTrigger[lo]=!1,this._activeTrigger[ao]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),me.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(no,oo),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(no),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new eo({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(no)}_isShown(){return this.tip&&this.tip.classList.contains(oo)}_createPopper(t){const e=Kt(this._config.placement,[this,t,this._element]),i=co[e.toUpperCase()];return Lt(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Kt(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Kt(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)me.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===ao?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===ao?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");me.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?lo:ao]=!0,e._enter()})),me.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?lo:ao]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},me.on(this._element.closest(so),ro,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=be.getDataAttributes(this._element);for(const t of Object.keys(e))io.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Bt(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=po.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt(po);const fo={...po.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},mo={...po.DefaultType,content:"(null|string|element|function)"};class go extends po{static get Default(){return fo}static get DefaultType(){return mo}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=go.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt(go);const vo=".bs.scrollspy",yo=`activate${vo}`,bo=`click${vo}`,_o=`load${vo}.data-api`,wo="active",xo="[href]",ko=".nav-link",Co=`${ko}, .nav-item > ${ko}, .list-group-item`,To={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ao={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Do extends we{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return To}static get DefaultType(){return Ao}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Bt(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(me.off(this._config.target,bo),me.on(this._config.target,bo,xo,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,o=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}const t=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&t){if(i(s),!n)return}else o||t||i(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=ke.find(xo,this._config.target);for(const e of t){if(!e.hash||Ut(e))continue;const t=ke.findOne(decodeURI(e.hash),this._element);qt(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(wo),this._activateParents(t),me.trigger(this._element,yo,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))ke.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(wo);else for(const e of ke.parents(t,".nav, .list-group"))for(const t of ke.prev(e,Co))t.classList.add(wo)}_clearActiveClass(t){t.classList.remove(wo);const e=ke.find(`${xo}.${wo}`,t);for(const t of e)t.classList.remove(wo)}static jQueryInterface(t){return this.each((function(){const e=Do.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}me.on(window,_o,(()=>{for(const t of ke.find('[data-bs-spy="scroll"]'))Do.getOrCreateInstance(t)})),Qt(Do);const Eo=".bs.tab",So=`hide${Eo}`,$o=`hidden${Eo}`,Po=`show${Eo}`,Oo=`shown${Eo}`,Lo=`click${Eo}`,jo=`keydown${Eo}`,Io=`load${Eo}`,Mo="ArrowLeft",No="ArrowRight",Ho="ArrowUp",Fo="ArrowDown",Ro="Home",Bo="End",qo="active",Uo="fade",Wo="show",zo=".dropdown-toggle",Vo=`:not(${zo})`,Yo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Xo=`${`.nav-link${Vo}, .list-group-item${Vo}, [role="tab"]${Vo}`}, ${Yo}`,Go=`.${qo}[data-bs-toggle="tab"], .${qo}[data-bs-toggle="pill"], .${qo}[data-bs-toggle="list"]`;class Qo extends we{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),me.on(this._element,jo,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?me.trigger(e,So,{relatedTarget:t}):null;me.trigger(t,Po,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(qo),this._activate(ke.getElementFromSelector(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),me.trigger(t,Oo,{relatedTarget:e})):t.classList.add(Wo)}),t,t.classList.contains(Uo))}_deactivate(t,e){if(!t)return;t.classList.remove(qo),t.blur(),this._deactivate(ke.getElementFromSelector(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),me.trigger(t,$o,{relatedTarget:e})):t.classList.remove(Wo)}),t,t.classList.contains(Uo))}_keydown(t){if(![Mo,No,Ho,Fo,Ro,Bo].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Ut(t)));let i;if([Ro,Bo].includes(t.key))i=e[t.key===Ro?0:e.length-1];else{const n=[No,Fo].includes(t.key);i=Zt(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),Qo.getOrCreateInstance(i).show())}_getChildren(){return ke.find(Xo,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=ke.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const o=ke.findOne(t,i);o&&o.classList.toggle(n,e)};n(zo,qo),n(".dropdown-menu",Wo),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(qo)}_getInnerElement(t){return t.matches(Xo)?t:ke.findOne(Xo,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Qo.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}me.on(document,Lo,Yo,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ut(this)||Qo.getOrCreateInstance(this).show()})),me.on(window,Io,(()=>{for(const t of ke.find(Go))Qo.getOrCreateInstance(t)})),Qt(Qo);const Ko=".bs.toast",Jo=`mouseover${Ko}`,Zo=`mouseout${Ko}`,ts=`focusin${Ko}`,es=`focusout${Ko}`,is=`hide${Ko}`,ns=`hidden${Ko}`,os=`show${Ko}`,ss=`shown${Ko}`,rs="hide",as="show",ls="showing",cs={animation:"boolean",autohide:"boolean",delay:"number"},us={animation:!0,autohide:!0,delay:5e3};class ds extends we{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return us}static get DefaultType(){return cs}static get NAME(){return"toast"}show(){if(me.trigger(this._element,os).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(rs),Vt(this._element),this._element.classList.add(as,ls),this._queueCallback((()=>{this._element.classList.remove(ls),me.trigger(this._element,ss),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(me.trigger(this._element,is).defaultPrevented)return;this._element.classList.add(ls),this._queueCallback((()=>{this._element.classList.add(rs),this._element.classList.remove(ls,as),me.trigger(this._element,ns)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(as),super.dispose()}isShown(){return this._element.classList.contains(as)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){me.on(this._element,Jo,(t=>this._onInteraction(t,!0))),me.on(this._element,Zo,(t=>this._onInteraction(t,!1))),me.on(this._element,ts,(t=>this._onInteraction(t,!0))),me.on(this._element,es,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=ds.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Ce(ds),Qt(ds)},596:()=>{!function(t){function e(e,i,n){i=[i.getYear()+1900,i.getMonth()+1,i.getDate()].join("-"),e.ContinuousCalendar_options.events.forEach((function(e,o){if(e.date==i){let i=t("<a>");i.addClass(e.className||"event"),void 0!==e.url&&(i.attr("target","_blank"),i.attr("href",e.url)),i.text(e.title),n.append(i)}}))}function i(i){var n=i.find("tbody");n.empty();for(var o=new Date,s=new Date(i.startDate),r=0;r<i.ContinuousCalendar_options.rows;r++){var a=t("<tr>");n.append(a);var l=t("<td>");l.addClass("currentmonth"),a.append(l);for(var c=0;c<7;c++){let n=t("<span>");n.text(s.getDate());let r=t("<td>");r.addClass("day-in-month-"+s.getMonth()%2),s.isSameDateAs(o)&&r.addClass("today"),r.append(n),a.append(r),1==s.getDate()&&l.text(i.ContinuousCalendar_options.months[s.getMonth()]+" "+(s.getYear()+1900)),e(i,s,r),s.setDate(s.getDate()+1)}}}function n(t){t.startDate.setDate(t.startDate.getDate()-7),i(t)}function o(t){t.startDate.setDate(t.startDate.getDate()+7),i(t)}Date.prototype.isSameDateAs=function(t){return this.getFullYear()===t.getFullYear()&&this.getMonth()===t.getMonth()&&this.getDate()===t.getDate()},t.fn.ContinuousCalendar=function(e){this.ContinuousCalendar_options=t.extend({},{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rows:5,tableClass:"continuous-calendar table",events:[]},e||{}),this.ContinuousCalendar_options.events.forEach((function(t,e){let i=t.date.split("-");t.date=[parseInt(i[0]),parseInt(i[1]),parseInt(i[2])].join("-")}));var s=t("<table>");s.addClass(this.ContinuousCalendar_options.tableClass),this.append(s);var r=this,a=t("<tr>"),l=t('<a href="#" class="prev">&lt;</a>');l.click((function(t){t.preventDefault(),n(r)}));var c=t('<a href="#" class="next">&gt;</a>');c.click((function(t){t.preventDefault(),o(r)}));var u=t("<th>");u.append(l),u.append(c),a.append(u),this.ContinuousCalendar_options.days.forEach((function(t,e){a.append("<th>"+t+"</th>")}));var d=t("<thead>");d.append(a),s.append(d);var h=t("<tbody>");return s.append(h),this.startDate=new Date,this.startDate.setDate(this.startDate.getDate()-(this.startDate.getDay()+6)%7),i(r),this.bind("wheel",(function(t){t.preventDefault(),t.stopPropagation(),t.originalEvent.deltaY/120>0?n(r):o(r)})),this}}(jQuery)},497:()=>{!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,i=t.ui.mouse.prototype,n=i._mouseInit,o=i._mouseDestroy;i._touchStart=function(t){!e&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,s(t,"mouseover"),s(t,"mousemove"),s(t,"mousedown"))},i._touchMove=function(t){e&&(this._touchMoved=!0,s(t,"mousemove"))},i._touchEnd=function(t){e&&(s(t,"mouseup"),s(t,"mouseout"),this._touchMoved||s(t,"click"),e=!1)},i._mouseInit=function(){var e=this;e.element.bind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),n.call(e)},i._mouseDestroy=function(){var e=this;e.element.unbind({touchstart:t.proxy(e,"_touchStart"),touchmove:t.proxy(e,"_touchMove"),touchend:t.proxy(e,"_touchEnd")}),o.call(e)}}function s(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}}(jQuery)},983:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],void 0===(s="function"==typeof(n=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])}})})?n.apply(e,o):n)||(t.exports=s)}()},45:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],void 0===(s="function"==typeof(n=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?n.apply(e,o):n)||(t.exports=s)}()},897:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],void 0===(s="function"==typeof(n=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?n.apply(e,o):n)||(t.exports=s)}()},336:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],n=function(t){return t.ui.plugin={add:function(e,i,n){var o,s=t.ui[e].prototype;for(o in n)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([i,n[o]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}}},void 0===(s="function"==typeof n?n.apply(e,o):n)||(t.exports=s)}()},224:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],n=function(t){return function(){var e,i=Math.max,n=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,c=t.fn.position;function u(t,e,i){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?i/100:1)]}function d(e,i){return parseInt(t.css(e,i),10)||0}function h(t){return null!=t&&t===t.window}function p(t){var e=t[0];return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:h(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var i,n,o=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),s=o.children()[0];return t("body").append(o),i=s.offsetWidth,o.css("overflow","scroll"),i===(n=s.offsetWidth)&&(n=o[0].clientWidth),o.remove(),e=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=h(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:o,offset:!n&&!o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return c.apply(this,arguments);var l,h,f,m,g,v,y="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),b=t.position.getWithinInfo(e.within),_=t.position.getScrollInfo(b),w=(e.collision||"flip").split(" "),x={};return v=p(y),y[0].preventDefault&&(e.at="left top"),h=v.width,f=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],(function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=o.test(n[0])?n.concat(["center"]):s.test(n[0])?["center"].concat(n):["center","center"]),n[0]=o.test(n[0])?n[0]:"center",n[1]=s.test(n[1])?n[1]:"center",t=r.exec(n[0]),i=r.exec(n[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[a.exec(n[0])[0],a.exec(n[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?g.left+=h:"center"===e.at[0]&&(g.left+=h/2),"bottom"===e.at[1]?g.top+=f:"center"===e.at[1]&&(g.top+=f/2),l=u(x.at,h,f),g.left+=l[0],g.top+=l[1],this.each((function(){var o,s,r=t(this),a=r.outerWidth(),c=r.outerHeight(),p=d(this,"marginLeft"),v=d(this,"marginTop"),k=a+p+d(this,"marginRight")+_.width,C=c+v+d(this,"marginBottom")+_.height,T=t.extend({},g),A=u(x.my,r.outerWidth(),r.outerHeight());"right"===e.my[0]?T.left-=a:"center"===e.my[0]&&(T.left-=a/2),"bottom"===e.my[1]?T.top-=c:"center"===e.my[1]&&(T.top-=c/2),T.left+=A[0],T.top+=A[1],o={marginLeft:p,marginTop:v},t.each(["left","top"],(function(i,n){t.ui.position[w[i]]&&t.ui.position[w[i]][n](T,{targetWidth:h,targetHeight:f,elemWidth:a,elemHeight:c,collisionPosition:o,collisionWidth:k,collisionHeight:C,offset:[l[0]+A[0],l[1]+A[1]],my:e.my,at:e.at,within:b,elem:r})})),e.using&&(s=function(t){var o=m.left-T.left,s=o+h-a,l=m.top-T.top,u=l+f-c,d={target:{element:y,left:m.left,top:m.top,width:h,height:f},element:{element:r,left:T.left,top:T.top,width:a,height:c},horizontal:s<0?"left":o>0?"right":"center",vertical:u<0?"top":l>0?"bottom":"middle"};h<a&&n(o+s)<h&&(d.horizontal="center"),f<c&&n(l+u)<f&&(d.vertical="middle"),i(n(o),n(s))>i(n(l),n(u))?d.important="horizontal":d.important="vertical",e.using.call(this,t,d)}),r.offset(t.extend(T,{using:s}))}))},t.ui.position={fit:{left:function(t,e){var n,o=e.within,s=o.isWindow?o.scrollLeft:o.offset.left,r=o.width,a=t.left-e.collisionPosition.marginLeft,l=s-a,c=a+e.collisionWidth-r-s;e.collisionWidth>r?l>0&&c<=0?(n=t.left+l+e.collisionWidth-r-s,t.left+=l-n):t.left=c>0&&l<=0?s:l>c?s+r-e.collisionWidth:s:l>0?t.left+=l:c>0?t.left-=c:t.left=i(t.left-a,t.left)},top:function(t,e){var n,o=e.within,s=o.isWindow?o.scrollTop:o.offset.top,r=e.within.height,a=t.top-e.collisionPosition.marginTop,l=s-a,c=a+e.collisionHeight-r-s;e.collisionHeight>r?l>0&&c<=0?(n=t.top+l+e.collisionHeight-r-s,t.top+=l-n):t.top=c>0&&l<=0?s:l>c?s+r-e.collisionHeight:s:l>0?t.top+=l:c>0?t.top-=c:t.top=i(t.top-a,t.top)}},flip:{left:function(t,e){var i,o,s=e.within,r=s.offset.left+s.scrollLeft,a=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,d=c+e.collisionWidth-a-l,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];u<0?((i=t.left+h+p+f+e.collisionWidth-a-r)<0||i<n(u))&&(t.left+=h+p+f):d>0&&((o=t.left-e.collisionPosition.marginLeft+h+p+f-l)>0||n(o)<d)&&(t.left+=h+p+f)},top:function(t,e){var i,o,s=e.within,r=s.offset.top+s.scrollTop,a=s.height,l=s.isWindow?s.scrollTop:s.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,d=c+e.collisionHeight-a-l,h="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];u<0?((o=t.top+h+p+f+e.collisionHeight-a-r)<0||o<n(u))&&(t.top+=h+p+f):d>0&&((i=t.top-e.collisionPosition.marginTop+h+p+f-l)>0||n(i)<d)&&(t.top+=h+p+f)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position},void 0===(s="function"==typeof n?n.apply(e,o):n)||(t.exports=s)}()},300:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],void 0===(s="function"==typeof(n=function(t){return t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}})?n.apply(e,o):n)||(t.exports=s)}()},634:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],void 0===(s="function"==typeof(n=function(t){return t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")}})?n.apply(e,o):n)||(t.exports=s)}()},299:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],void 0===(s="function"==typeof(n=function(t){return t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&s.length?s:t(this[0].ownerDocument||document)}})?n.apply(e,o):n)||(t.exports=s)}()},304:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],void 0===(s="function"==typeof(n=function(t){return t.fn.extend({uniqueId:(e=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++e)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}});var e})?n.apply(e,o):n)||(t.exports=s)}()},883:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692)],void 0===(s="function"==typeof(n=function(t){return t.ui=t.ui||{},t.ui.version="1.13.2"})?n.apply(e,o):n)||(t.exports=s)}()},139:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(883)],n=function(t){var e=0,i=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=function(e){return function(i){var n,o,s;for(s=0;null!=(o=i[s]);s++)(n=t._data(o,"events"))&&n.remove&&t(o).triggerHandler("remove");e(i)}}(t.cleanData),t.widget=function(e,i,n){var o,s,r,a={},l=e.split(".")[0],c=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},o=t[l][e],s=t[l][e]=function(t,e){if(!this||!this._createWidget)return new s(t,e);arguments.length&&this._createWidget(t,e)},t.extend(s,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(r=new i).options=t.widget.extend({},r.options),t.each(n,(function(t,e){a[t]="function"==typeof e?function(){function n(){return i.prototype[t].apply(this,arguments)}function o(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,s=this._superApply;return this._super=n,this._superApply=o,t=e.apply(this,arguments),this._super=i,this._superApply=s,t}}():e})),s.prototype=t.widget.extend(r,{widgetEventPrefix:o&&r.widgetEventPrefix||e},a,{constructor:s,namespace:l,widgetName:e,widgetFullName:c}),o?(t.each(o._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,s,i._proto)})),delete o._childConstructors):i._childConstructors.push(s),t.widget.bridge(e,s),s},t.widget.extend=function(e){for(var o,s,r=n.call(arguments,1),a=0,l=r.length;a<l;a++)for(o in r[a])s=r[a][o],i.call(r[a],o)&&void 0!==s&&(t.isPlainObject(s)?e[o]=t.isPlainObject(e[o])?t.widget.extend({},e[o],s):t.widget.extend({},s):e[o]=s);return e},t.widget.bridge=function(e,i){var o=i.prototype.widgetFullName||e;t.fn[e]=function(s){var r="string"==typeof s,a=n.call(arguments,1),l=this;return r?this.length||"instance"!==s?this.each((function(){var i,n=t.data(this,o);return"instance"===s?(l=n,!1):n?"function"!=typeof n[s]||"_"===s.charAt(0)?t.error("no such method '"+s+"' for "+e+" widget instance"):(i=n[s].apply(n,a))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")})):l=void 0:(a.length&&(s=t.widget.extend.apply(null,[s].concat(a))),this.each((function(){var e=t.data(this,o);e?(e.option(s||{}),e._init&&e._init()):t.data(this,o,new i(s,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,o,s,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},n=e.split("."),e=n.shift(),n.length){for(o=r[e]=t.widget.extend({},this.options[e]),s=0;s<n.length-1;s++)o[n[s]]=o[n[s]]||{},o=o[n[s]];if(e=n.pop(),1===arguments.length)return void 0===o[e]?null:o[e];o[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,o;for(i in e)o=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&o&&o.length&&(n=t(o.get()),this._removeClass(o,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],n=this;function o(){var i=[];e.element.each((function(e,o){t.map(n.classesElementLookup,(function(t){return t})).some((function(t){return t.is(o)}))||i.push(o)})),n._on(t(i),{remove:"_untrackClassesElement"})}function s(s,r){var a,l;for(l=0;l<s.length;l++)a=n.classesElementLookup[s[l]]||t(),e.add?(o(),a=t(t.uniqueSort(a.get().concat(e.element.get())))):a=t(a.not(e.element).get()),n.classesElementLookup[s[l]]=a,i.push(s[l]),r&&e.classes[s[l]]&&i.push(e.classes[s[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&s(e.keys.match(/\S+/g)||[],!0),e.extra&&s(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(n,o){-1!==t.inArray(e.target,o)&&(i.classesElementLookup[n]=t(o.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var o="string"==typeof t||null===t,s={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n};return s.element.toggleClass(this._classes(s),n),this},_on:function(e,i,n){var o,s=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=o=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),t.each(n,(function(n,r){function a(){if(e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?s[r]:r).apply(s,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+s.eventNamespace,u=l[2];u?o.on(c,u,a):i.on(c,a)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var o,s,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(o in s)o in i||(i[o]=s[o]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,o,s){var r;"string"==typeof o&&(o={effect:o});var a=o?!0===o||"number"==typeof o?i:o.effect||i:e;"number"==typeof(o=o||{})?o={duration:o}:!0===o&&(o={}),r=!t.isEmptyObject(o),o.complete=s,o.delay&&n.delay(o.delay),r&&t.effects&&t.effects.effect[a]?n[e](o):a!==e&&n[a]?n[a](o.duration,o.easing,s):n.queue((function(i){t(this)[e](),s&&s.call(n[0]),i()}))}})),t.widget},void 0===(s="function"==typeof n?n.apply(e,o):n)||(t.exports=s)}()},97:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(330),i(897),i(224),i(300),i(883),i(139)],n=function(t){return t.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var e,i,n,o=this.element[0].nodeName.toLowerCase(),s="textarea"===o,r="input"===o;this.isMultiLine=s||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[s||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var s=t.ui.keyCode;switch(o.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",o);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case s.UP:e=!0,this._keyEvent("previous",o);break;case s.DOWN:e=!0,this._keyEvent("next",o);break;case s.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case s.TAB:this.menu.active&&this.menu.select(o);break;case s.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n);break;case o.PAGE_DOWN:this._move("nextPage",n);break;case o.UP:this._keyEvent("previous",n);break;case o.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(e,i){var n,o;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){t(e.target).trigger(e.originalEvent)}));o=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:o})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(o.value),(n=i.item.attr("aria-label")||o.value)&&String.prototype.trim.call(n).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(t("<div>").text(n))}),100))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),o=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay((function(){this.previous=o,this.selectedItem=n}))),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;Array.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,o){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){o(t)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))}),this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,(function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})}))},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,(function(t,i){n._renderItemData(e,i)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,(function(t){return n.test(t.label||t.value||t)}))}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(t("<div>").text(i))}),100))}}),t.ui.autocomplete},void 0===(s="function"==typeof n?n.apply(e,o):n)||(t.exports=s)}()},758:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(662),i(983),i(336),i(300),i(634),i(299),i(883),i(139)],void 0===(s="function"==typeof(n=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper,o=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options,s=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(n=(i=t(o.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=o.containment:this.containment=[0,0,t(s).width()-this.helperProportions.width-this.margins.left,(t(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,o,s,r=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-r.grid[1]:o+r.grid[1]:o,s=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?s-this.offset.click.left>=i[0]||s-this.offset.click.left>i[2]?s:s-this.offset.click.left>=i[0]?s-r.grid[0]:s+r.grid[0]:s),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var o=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,o))}))},stop:function(e,i,n){var o=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,(function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))}))},drag:function(e,i,n){t.each(n.sortables,(function(){var o=!1,s=this;s.positionAbs=n.positionAbs,s.helperProportions=n.helperProportions,s.offset.click=n.offset.click,s._intersectsWith(s.containerCache)&&(o=!0,t.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==s&&this._intersectsWith(this.containerCache)&&t.contains(s.element[0],this.element[0])&&(o=!1),o}))),o?(s.isOver||(s.isOver=1,n._parent=i.helper.parent(),s.currentItem=i.helper.appendTo(s.element).data("ui-sortable-item",!0),s.options._helper=s.options.helper,s.options.helper=function(){return i.helper[0]},e.target=s.currentItem[0],s._mouseCapture(e,!0),s._mouseStart(e,!0,!0),s.offset.click.top=n.offset.click.top,s.offset.click.left=n.offset.click.left,s.offset.parent.left-=n.offset.parent.left-s.offset.parent.left,s.offset.parent.top-=n.offset.parent.top-s.offset.parent.top,n._trigger("toSortable",e),n.dropped=s.element,t.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,s.fromOutside=n),s.currentItem&&(s._mouseDrag(e),i.position=s.position)):s.isOver&&(s.isOver=0,s.cancelHelperRemoval=!0,s.options._revert=s.options.revert,s.options.revert=!1,s._trigger("out",e,s._uiHash(s)),s._mouseStop(e,!0),s.options.revert=s.options._revert,s.options.helper=s.options._helper,s.placeholder&&s.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var o=t("body"),s=n.options;o.css("cursor")&&(s._cursor=o.css("cursor")),o.css("cursor",s.cursor)},stop:function(e,i,n){var o=n.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var o=t(i.helper),s=n.options;o.css("opacity")&&(s._opacity=o.css("opacity")),o.css("opacity",s.opacity)},stop:function(e,i,n){var o=n.options;o._opacity&&t(i.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var o=n.options,s=!1,r=n.scrollParentNotHidden[0],a=n.document[0];r!==a&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(n.overflowOffset.top+r.offsetHeight-e.pageY<o.scrollSensitivity?r.scrollTop=s=r.scrollTop+o.scrollSpeed:e.pageY-n.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=s=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(n.overflowOffset.left+r.offsetWidth-e.pageX<o.scrollSensitivity?r.scrollLeft=s=r.scrollLeft+o.scrollSpeed:e.pageX-n.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=s=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t(a).scrollTop()<o.scrollSensitivity?s=t(a).scrollTop(t(a).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<o.scrollSensitivity&&(s=t(a).scrollTop(t(a).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(a).scrollLeft()<o.scrollSensitivity?s=t(a).scrollLeft(t(a).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<o.scrollSensitivity&&(s=t(a).scrollLeft(t(a).scrollLeft()+o.scrollSpeed)))),!1!==s&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var o=n.options;n.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each((function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,n){var o,s,r,a,l,c,u,d,h,p,f=n.options,m=f.snapTolerance,g=i.offset.left,v=g+n.helperProportions.width,y=i.offset.top,b=y+n.helperProportions.height;for(h=n.snapElements.length-1;h>=0;h--)c=(l=n.snapElements[h].left-n.margins.left)+n.snapElements[h].width,d=(u=n.snapElements[h].top-n.margins.top)+n.snapElements[h].height,v<l-m||g>c+m||b<u-m||y>d+m||!t.contains(n.snapElements[h].item.ownerDocument,n.snapElements[h].item)?(n.snapElements[h].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(o=Math.abs(u-b)<=m,s=Math.abs(d-y)<=m,r=Math.abs(l-v)<=m,a=Math.abs(c-g)<=m,o&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),s&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),p=o||s||r||a,"outer"!==f.snapMode&&(o=Math.abs(u-y)<=m,s=Math.abs(d-b)<=m,r=Math.abs(l-g)<=m,a=Math.abs(c-v)<=m,o&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),s&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[h].snapping&&(o||s||r||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=o||s||r||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var o,s=n.options,r=t.makeArray(t(s.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));r.length&&(o=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each((function(e){t(this).css("zIndex",o+e)})),this.css("zIndex",o+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var o=t(i.helper),s=n.options;o.css("zIndex")&&(s._zIndex=o.css("zIndex")),o.css("zIndex",s.zIndex)},stop:function(e,i,n){var o=n.options;o._zIndex&&t(i.helper).css("zIndex",o._zIndex)}}),t.ui.draggable})?n.apply(e,o):n)||(t.exports=s)}()},914:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(758),i(662),i(883),i(139)],n=function(t){t.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept="function"==typeof i?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,o=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=t(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e))return o=!0,!1})),!o&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(n)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),t.ui.intersect=function(){function t(t,e,i){return t>=e&&t<e+i}return function(e,i,n,o){if(!i.offset)return!1;var s=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,a=s+e.helperProportions.width,l=r+e.helperProportions.height,c=i.offset.left,u=i.offset.top,d=c+i.proportions().width,h=u+i.proportions().height;switch(n){case"fit":return c<=s&&a<=d&&u<=r&&l<=h;case"intersect":return c<s+e.helperProportions.width/2&&a-e.helperProportions.width/2<d&&u<r+e.helperProportions.height/2&&l-e.helperProportions.height/2<h;case"pointer":return t(o.pageY,u,i.proportions().height)&&t(o.pageX,c,i.proportions().width);case"touch":return(r>=u&&r<=h||l>=u&&l<=h||r<u&&l>h)&&(s>=c&&s<=d||a>=c&&a<=d||s<c&&a>d);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,o,s=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<s.length;n++)if(!(s[n].options.disabled||e&&!s[n].accept.call(s[n].element[0],e.currentItem||e.element))){for(o=0;o<a.length;o++)if(a[o]===s[n].element[0]){s[n].proportions().height=0;continue t}s[n].visible="none"!==s[n].element.css("display"),s[n].visible&&("mousedown"===r&&s[n]._activate.call(s[n],i),s[n].offset=s[n].element.offset(),s[n].proportions({width:s[n].element[0].offsetWidth,height:s[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),n},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,o,s,r=t.ui.intersect(e,this,this.options.tolerance,i),a=!r&&this.isover?"isout":r&&!this.isover?"isover":null;a&&(this.options.greedy&&(o=this.options.scope,(s=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===o}))).length&&((n=t(s[0]).droppable("instance")).greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}}))},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},!1!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});return t.ui.droppable},void 0===(s="function"==typeof n?n.apply(e,o):n)||(t.exports=s)}()},330:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(897),i(224),i(300),i(304),i(883),i(139)],void 0===(s="function"==typeof(n=function(t){return t.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(e){this._delay((function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(e){if(!this.previousFilter&&(e.clientX!==this.lastMousePosition.x||e.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:e.clientX,y:e.clientY};var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget);i[0]===n[0]&&(n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n)))}},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each((function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()}))},_keydown:function(e){var i,n,o,s,r=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:r=!1,n=this.previousFilter||"",s=!1,o=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),o===n?s=!0:o=n+o,i=this._filterMenuItems(o),(i=s&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(o=String.fromCharCode(e.keyCode),i=this._filterMenuItems(o)),i.length?(this.focus(e,i),this.previousFilter=o,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}r&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n,o,s=this,r=this.options.icons.submenu,a=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=a.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0);s._addClass(n,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(e=a.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")})),o=(n=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,o;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,o,s,r,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=e.outerHeight(),o<0?this.activeMenu.scrollTop(s+o):o+a>r&&this.activeMenu.scrollTop(s+o-r+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(t)}),this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay((function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n}),i?0:this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay((function(){this.focus(t,e)})))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first()),n&&n.length&&this.active||(n=this._menuItems(this.activeMenu)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,o;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(o+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-n-o<0})),this.focus(e,i)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var i,n,o;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(o+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-n+o>0})),this.focus(e,i)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return n.test(String.prototype.trim.call(t(this).children(".ui-menu-item-wrapper").text()))}))}})})?n.apply(e,o):n)||(t.exports=s)}()},662:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(45),i(883),i(139)],void 0===(s="function"==typeof(n=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,o=1===i.which,s=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(o&&!s&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&t.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,i.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(e,o):n)||(t.exports=s)}()},285:(t,e,i)=>{var n,o,s;!function(r){"use strict";o=[i(692),i(662),i(983),i(45),i(299),i(883),i(139)],n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,o=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,s.widgetName+"-item")===s)return n=t(this),!1})),t.data(e.target,s.widgetName+"-item")===s&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(o=!0)})),!o))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var o,s,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(s)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,o,s,r=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(o=(n=this.items[i]).item[0],(s=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(o===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===o||t.contains(this.placeholder[0],o)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],o))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,o=this.placeholder.offset(),s=this.options.axis,r={};s&&"x"!==s||(r.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(r.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,s=t.left,r=s+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>a&&n+c<l,h="y"===this.options.axis||e+u>s&&e+u<r,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:s<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&o-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),o="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!o)&&(e=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,o=this.dragDirection.horizontal;return this.floating&&o?"right"===o&&i||"left"===o&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,o,s,r=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(o=t(l[i],this.document[0])).length-1;n>=0;n--)(s=t.data(o[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&a.push(["function"==typeof s.options.items?s.options.items.call(s.element):t(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);function c(){r.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(c);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,o,s,r,a,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(o=t(h[i],this.document[0])).length-1;n>=0;n--)(s=t.data(o[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&(d.push(["function"==typeof s.options.items?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=d.length-1;i>=0;i--)for(r=d[i][1],n=0,c=(a=d[i][0]).length;n<c;n++)(l=t(a[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var i,n,o,s;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=o.outerWidth(),n.height=o.outerHeight()),s=o.offset(),n.left=s.left,n.top=s.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,o=(e=e||this).options;o.placeholder&&o.placeholder.constructor!==String||(i=o.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var o=t("<"+n+">",e.document[0]);return e._addClass(o,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(o,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(o)):"tr"===n?e._createTrPlaceholder(e.currentItem,o):"img"===n&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,s){i&&!o.forcePlaceholderSize||(s.height()&&(!o.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(o.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),o.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,o,s,r,a,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(o=1e4,s=null,r=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",a=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,e[d]-l>this.items[n][a]/2&&(c=!0),Math.abs(e[d]-l)<o&&(o=Math.abs(e[d]-l),s=this.items[n],this.direction=c?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),"document"!==o.containment&&"window"!==o.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===o.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===o.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],i=t(o.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())*n}},_generatePosition:function(e){var i,n,o=this.options,s=e.pageX,r=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/o.grid[1])*o.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-o.grid[1]:i+o.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/o.grid[0])*o.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-o.grid[0]:n+o.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay((function(){o===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function o(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})},void 0===(s="function"==typeof n?n.apply(e,o):n)||(t.exports=s)}()},692:function(t,e){var i;!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var s=[],r=Object.getPrototypeOf,a=s.slice,l=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},c=s.push,u=s.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,m=f.call(Object),g={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,i){var n,o,s=(i=i||b).createElement("script");if(s.text=t,e)for(n in _)(o=e[n]||e.getAttribute&&e.getAttribute(n))&&s.setAttribute(n,o);i.head.appendChild(s).parentNode.removeChild(s)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var k="3.7.1",C=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function A(t){var e=!!t&&"length"in t&&t.length,i=x(t);return!v(t)&&!y(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:k,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},T.extend=T.fn.extend=function(){var t,e,i,n,o,s,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||v(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(c&&n&&(T.isPlainObject(n)||(o=Array.isArray(n)))?(i=r[e],s=o&&!Array.isArray(i)?[]:o||T.isPlainObject(i)?i:{},o=!1,r[e]=T.extend(c,s,n)):void 0!==n&&(r[e]=n));return r},T.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==h.call(t))&&(!(e=r(t))||"function"==typeof(i=p.call(e,"constructor")&&e.constructor)&&f.call(i)===m)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){w(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(A(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},text:function(t){var e,i="",n=0,o=t.nodeType;if(!o)for(;e=t[n++];)i+=T.text(e);return 1===o||11===o?t.textContent:9===o?t.documentElement.textContent:3===o||4===o?t.nodeValue:i},makeArray:function(t,e){var i=e||[];return null!=t&&(A(Object(t))?T.merge(i,"string"==typeof t?[t]:t):c.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:u.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!C.test(e||i&&i.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;n<i;n++)t[o++]=e[n];return t.length=o,t},grep:function(t,e,i){for(var n=[],o=0,s=t.length,r=!i;o<s;o++)!e(t[o],o)!==r&&n.push(t[o]);return n},map:function(t,e,i){var n,o,s=0,r=[];if(A(t))for(n=t.length;s<n;s++)null!=(o=e(t[s],s,i))&&r.push(o);else for(s in t)null!=(o=e(t[s],s,i))&&r.push(o);return l(r)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=s[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var E=s.pop,S=s.sort,$=s.splice,P="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");T.contains=function(t,e){var i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(L,j)};var I=b,M=c;!function(){var t,e,i,o,r,l,c,d,h,f,m=M,v=T.expando,y=0,b=0,_=tt(),w=tt(),x=tt(),k=tt(),C=function(t,e){return t===e&&(r=!0),0},A="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+P+"*("+L+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+P+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",H=new RegExp(P+"+","g"),F=new RegExp("^"+P+"*,"+P+"*"),R=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),B=new RegExp(P+"|>"),q=new RegExp(N),U=new RegExp("^"+L+"$"),W={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+A+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),Q=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},K=function(){lt()},J=ht((function(t){return!0===t.disabled&&D(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(I.childNodes),I.childNodes),s[I.childNodes.length].nodeType}catch(t){m={apply:function(t,e){M.apply(t,a.call(e))},call:function(t){M.apply(t,a.call(arguments,1))}}}function Z(t,e,i,n){var o,s,r,a,c,u,p,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return i;if(!n&&(lt(e),e=e||l,d)){if(11!==y&&(c=Y.exec(t)))if(o=c[1]){if(9===y){if(!(r=e.getElementById(o)))return i;if(r.id===o)return m.call(i,r),i}else if(f&&(r=f.getElementById(o))&&Z.contains(e,r)&&r.id===o)return m.call(i,r),i}else{if(c[2])return m.apply(i,e.getElementsByTagName(t)),i;if((o=c[3])&&e.getElementsByClassName)return m.apply(i,e.getElementsByClassName(o)),i}if(!(k[t+" "]||h&&h.test(t))){if(p=t,f=e,1===y&&(B.test(t)||R.test(t))){for((f=X.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=v)),s=(u=ut(t)).length;s--;)u[s]=(a?"#"+a:":scope")+" "+dt(u[s]);p=u.join(",")}try{return m.apply(i,f.querySelectorAll(p)),i}catch(e){k(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(O,"$1"),e,i,n)}function tt(){var t=[];return function i(n,o){return t.push(n+" ")>e.cacheLength&&delete i[t.shift()],i[n+" "]=o}}function et(t){return t[v]=!0,t}function it(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function nt(t){return function(e){return D(e,"input")&&e.type===t}}function ot(t){return function(e){return(D(e,"input")||D(e,"button"))&&e.type===t}}function st(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function rt(t){return et((function(e){return e=+e,et((function(i,n){for(var o,s=t([],i.length,e),r=s.length;r--;)i[o=s[r]]&&(i[o]=!(n[o]=i[o]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var i,n=t?t.ownerDocument||t:I;return n!=l&&9===n.nodeType&&n.documentElement?(c=(l=n).documentElement,d=!T.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&I!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",K),g.getById=it((function(t){return c.appendChild(t).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),g.disconnectedMatch=it((function(t){return f.call(t,"*")})),g.scope=it((function(){return l.querySelectorAll(":scope")})),g.cssHas=it((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),g.getById?(e.filter.ID=function(t){var e=t.replace(G,Q);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var i=e.getElementById(t);return i?[i]:[]}}):(e.filter.ID=function(t){var e=t.replace(G,Q);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var i,n,o,s=e.getElementById(t);if(s){if((i=s.getAttributeNode("id"))&&i.value===t)return[s];for(o=e.getElementsByName(t),n=0;s=o[n++];)if((i=s.getAttributeNode("id"))&&i.value===t)return[s]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],it((function(t){var e;c.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+P+"*(?:value|"+A+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),C=function(t,e){if(t===e)return r=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===i?t===l||t.ownerDocument==I&&Z.contains(I,t)?-1:e===l||e.ownerDocument==I&&Z.contains(I,e)?1:o?u.call(o,t)-u.call(o,e):0:4&i?-1:1)},l):l}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(lt(t),d&&!k[e+" "]&&(!h||!h.test(e)))try{var i=f.call(t,e);if(i||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){k(e,!0)}return Z(e,l,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),T.contains(t,e)},Z.attr=function(t,i){(t.ownerDocument||t)!=l&&lt(t);var n=e.attrHandle[i.toLowerCase()],o=n&&p.call(e.attrHandle,i.toLowerCase())?n(t,i,!d):void 0;return void 0!==o?o:t.getAttribute(i)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,i=[],n=0,s=0;if(r=!g.sortStable,o=!g.sortStable&&a.call(t,0),S.call(t,C),r){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)$.call(t,i[n],1)}return o=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(G,Q),t[3]=(t[3]||t[4]||t[5]||"").replace(G,Q),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Z.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Z.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return W.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&q.test(i)&&(e=ut(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(G,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return D(t,e)}},CLASS:function(t){var e=_[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&_(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var o=Z.attr(n,t);return null==o?"!="===e:!e||(o+="","="===e?o===i:"!="===e?o!==i:"^="===e?i&&0===o.indexOf(i):"*="===e?i&&o.indexOf(i)>-1:"$="===e?i&&o.slice(-i.length)===i:"~="===e?(" "+o.replace(H," ")+" ").indexOf(i)>-1:"|="===e&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,o){var s="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===o?function(t){return!!t.parentNode}:function(e,i,l){var c,u,d,h,p,f=s!==r?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),b=!l&&!a,_=!1;if(m){if(s){for(;f;){for(d=e;d=d[f];)if(a?D(d,g):1===d.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[r?m.firstChild:m.lastChild],r&&b){for(_=(h=(c=(u=m[v]||(m[v]={}))[t]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[f]||(_=h=0)||p.pop();)if(1===d.nodeType&&++_&&d===e){u[t]=[y,h,_];break}}else if(b&&(_=h=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===_)for(;(d=++h&&d&&d[f]||(_=h=0)||p.pop())&&(!(a?D(d,g):1===d.nodeType)||!++_||(b&&((u=d[v]||(d[v]={}))[t]=[y,_]),d!==e)););return(_-=o)===n||_%n==0&&_/n>=0}}},PSEUDO:function(t,i){var n,o=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return o[v]?o(i):o.length>1?(n=[t,t,"",i],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var n,s=o(t,i),r=s.length;r--;)t[n=u.call(t,s[r])]=!(e[n]=s[r])})):function(t){return o(t,0,n)}):o}},pseudos:{not:et((function(t){var e=[],i=[],n=vt(t.replace(O,"$1"));return n[v]?et((function(t,e,i,o){for(var s,r=n(t,null,o,[]),a=t.length;a--;)(s=r[a])&&(t[a]=!(e[a]=s))})):function(t,o,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}})),has:et((function(t){return function(e){return Z(t,e).length>0}})),contains:et((function(t){return t=t.replace(G,Q),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}})),lang:et((function(t){return U.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace(G,Q).toLowerCase(),function(e){var i;do{if(i=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return D(t,"input")&&!!t.checked||D(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return V.test(t.nodeName)},input:function(t){return z.test(t.nodeName)},button:function(t){return D(t,"input")&&"button"===t.type||D(t,"button")},text:function(t){var e;return D(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:rt((function(){return[0]})),last:rt((function(t,e){return[e-1]})),eq:rt((function(t,e,i){return[i<0?i+e:i]})),even:rt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:rt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:rt((function(t,e,i){var n;for(n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:rt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=nt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=ot(t);function ct(){}function ut(t,i){var n,o,s,r,a,l,c,u=w[t+" "];if(u)return i?0:u.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(r in n&&!(o=F.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(s=[])),n=!1,(o=R.exec(a))&&(n=o.shift(),s.push({value:n,type:o[0].replace(O," ")}),a=a.slice(n.length)),e.filter)!(o=W[r].exec(a))||c[r]&&!(o=c[r](o))||(n=o.shift(),s.push({value:n,type:r,matches:o}),a=a.slice(n.length));if(!n)break}return i?a.length:a?Z.error(t):w(t,l).slice(0)}function dt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function ht(t,e,i){var n=e.dir,o=e.next,s=o||n,r=i&&"parentNode"===s,a=b++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,o);return!1}:function(e,i,l){var c,u,d=[y,a];if(l){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||r)if(u=e[v]||(e[v]={}),o&&D(e,o))e=e[n]||e;else{if((c=u[s])&&c[0]===y&&c[1]===a)return d[2]=c[2];if(u[s]=d,d[2]=t(e,i,l))return!0}return!1}}function pt(t){return t.length>1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1;return!0}:t[0]}function ft(t,e,i,n,o){for(var s,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(s=t[a])&&(i&&!i(s,n,o)||(r.push(s),c&&e.push(a)));return r}function mt(t,e,i,n,o,s){return n&&!n[v]&&(n=mt(n)),o&&!o[v]&&(o=mt(o,s)),et((function(s,r,a,l){var c,d,h,p,f=[],g=[],v=r.length,y=s||function(t,e,i){for(var n=0,o=e.length;n<o;n++)Z(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),b=!t||!s&&e?y:ft(y,f,t,a,l);if(i?i(b,p=o||(s?t:v||n)?[]:r,a,l):p=b,n)for(c=ft(p,g),n(c,[],a,l),d=c.length;d--;)(h=c[d])&&(p[g[d]]=!(b[g[d]]=h));if(s){if(o||t){if(o){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);o(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=o?u.call(s,h):f[d])>-1&&(s[c]=!(r[c]=h))}}else p=ft(p===r?p.splice(v,p.length):p),o?o(null,r,p,l):m.apply(r,p)}))}function gt(t){for(var n,o,s,r=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,d=ht((function(t){return t===n}),l,!0),h=ht((function(t){return u.call(n,t)>-1}),l,!0),p=[function(t,e,o){var s=!a&&(o||e!=i)||((n=e).nodeType?d(t,e,o):h(t,e,o));return n=null,s}];c<r;c++)if(o=e.relative[t[c].type])p=[ht(pt(p),o)];else{if((o=e.filter[t[c].type].apply(null,t[c].matches))[v]){for(s=++c;s<r&&!e.relative[t[s].type];s++);return mt(c>1&&pt(p),c>1&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(O,"$1"),o,c<s&&gt(t.slice(c,s)),s<r&&gt(t=t.slice(s)),s<r&&dt(t))}p.push(o)}return pt(p)}function vt(t,n){var o,s=[],r=[],a=x[t+" "];if(!a){for(n||(n=ut(t)),o=n.length;o--;)(a=gt(n[o]))[v]?s.push(a):r.push(a);a=x(t,function(t,n){var o=n.length>0,s=t.length>0,r=function(r,a,c,u,h){var p,f,g,v=0,b="0",_=r&&[],w=[],x=i,k=r||s&&e.find.TAG("*",h),C=y+=null==x?1:Math.random()||.1,A=k.length;for(h&&(i=a==l||a||h);b!==A&&null!=(p=k[b]);b++){if(s&&p){for(f=0,a||p.ownerDocument==l||(lt(p),c=!d);g=t[f++];)if(g(p,a||l,c)){m.call(u,p);break}h&&(y=C)}o&&((p=!g&&p)&&v--,r&&_.push(p))}if(v+=b,o&&b!==v){for(f=0;g=n[f++];)g(_,w,a,c);if(r){if(v>0)for(;b--;)_[b]||w[b]||(w[b]=E.call(u));w=ft(w)}m.apply(u,w),h&&!r&&w.length>0&&v+n.length>1&&T.uniqueSort(u)}return h&&(y=C,i=x),_};return o?et(r):r}(r,s)),a.selector=t}return a}function yt(t,i,n,o){var s,r,a,l,c,u="function"==typeof t&&t,h=!o&&ut(t=u.selector||t);if(n=n||[],1===h.length){if((r=h[0]=h[0].slice(0)).length>2&&"ID"===(a=r[0]).type&&9===i.nodeType&&d&&e.relative[r[1].type]){if(!(i=(e.find.ID(a.matches[0].replace(G,Q),i)||[])[0]))return n;u&&(i=i.parentNode),t=t.slice(r.shift().value.length)}for(s=W.needsContext.test(t)?0:r.length;s--&&(a=r[s],!e.relative[l=a.type]);)if((c=e.find[l])&&(o=c(a.matches[0].replace(G,Q),X.test(r[0].type)&&at(i.parentNode)||i))){if(r.splice(s,1),!(t=o.length&&dt(r)))return m.apply(n,o),n;break}}return(u||vt(t,h))(o,i,!d,n,!i||X.test(t)&&at(i.parentNode)||i),n}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,g.sortStable=v.split("").sort(C).join("")===v,lt(),g.sortDetached=it((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=vt,Z.select=yt,Z.setDocument=lt,Z.tokenize=ut,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var N=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&T(t).is(i))break;n.push(t)}return n},H=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},F=T.expr.match.needsContext,R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,i){return v(e)?T.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?T.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?T.grep(t,(function(t){return u.call(e,t)>-1!==i})):T.filter(e,t,i)}T.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?T.find.matchesSelector(n,t)?[n]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,i,n=this.length,o=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e<n;e++)if(T.contains(o[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)T.find(t,o[e],i);return n>1?T.uniqueSort(i):i},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&F.test(t)?T(t):t||[],!1).length}});var q,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||q,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),R.test(n[1])&&T.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=b.getElementById(n[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,q=T(b);var W=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function V(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(T.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,o=this.length,s=[],r="string"!=typeof t&&T(t);if(!F.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&T.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length>1?T.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?u.call(T(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return N(t,"parentNode")},parentsUntil:function(t,e,i){return N(t,"parentNode",i)},next:function(t){return V(t,"nextSibling")},prev:function(t){return V(t,"previousSibling")},nextAll:function(t){return N(t,"nextSibling")},prevAll:function(t){return N(t,"previousSibling")},nextUntil:function(t,e,i){return N(t,"nextSibling",i)},prevUntil:function(t,e,i){return N(t,"previousSibling",i)},siblings:function(t){return H((t.parentNode||{}).firstChild,t)},children:function(t){return H(t.firstChild)},contents:function(t){return null!=t.contentDocument&&r(t.contentDocument)?t.contentDocument:(D(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(i,n){var o=T.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=T.filter(n,o)),this.length>1&&(z[t]||T.uniqueSort(o),W.test(t)&&o.reverse()),this.pushStack(o)}}));var Y=/[^\x20\t\r\n\f]+/g;function X(t){return t}function G(t){throw t}function Q(t,e,i,n){var o;try{t&&v(o=t.promise)?o.call(t).done(e).fail(i):t&&v(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(Y)||[],(function(t,i){e[i]=!0})),e}(t):T.extend({},t);var e,i,n,o,s=[],r=[],a=-1,l=function(){for(o=o||t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a<s.length;)!1===s[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=s.length,i=!1);t.memory||(i=!1),e=!1,o&&(s=i?[]:"")},c={add:function(){return s&&(i&&!e&&(a=s.length-1,r.push(i)),function e(i){T.each(i,(function(i,n){v(n)?t.unique&&c.has(n)||s.push(n):n&&n.length&&"string"!==x(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return T.each(arguments,(function(t,e){for(var i;(i=T.inArray(e,s,i))>-1;)s.splice(i,1),i<=a&&a--})),this},has:function(t){return t?T.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=r=[],s=i="",this},disabled:function(){return!s},lock:function(){return o=r=[],i||e||(s=i=""),this},locked:function(){return!!o},fireWith:function(t,i){return o||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(i){T.each(e,(function(e,n){var o=v(t[n[4]])&&t[n[4]];s[n[1]]((function(){var t=o&&o.apply(this,arguments);t&&v(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,o){var s=0;function r(t,e,i,o){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(t<s)){if((n=i.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?o?c.call(n,r(s,e,X,o),r(s,e,G,o)):(s++,c.call(n,r(s,e,X,o),r(s,e,G,o),r(s,e,X,e.notifyWith))):(i!==X&&(a=void 0,l=[n]),(o||e.resolveWith)(a,l))}},u=o?c:function(){try{c()}catch(n){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(n,u.error),t+1>=s&&(i!==G&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),n.setTimeout(u))}}return T.Deferred((function(n){e[0][3].add(r(0,n,v(o)?o:X,n.notifyWith)),e[1][3].add(r(0,n,v(t)?t:X)),e[2][3].add(r(0,n,v(i)?i:G))})).promise()},promise:function(t){return null!=t?T.extend(t,o):o}},s={};return T.each(e,(function(t,n){var r=n[2],a=n[5];o[n[1]]=r.add,a&&r.add((function(){i=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),r.add(n[3].fire),s[n[0]]=function(){return s[n[0]+"With"](this===s?void 0:this,arguments),this},s[n[0]+"With"]=r.fireWith})),o.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,i=e,n=Array(i),o=a.call(arguments),s=T.Deferred(),r=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?a.call(arguments):i,--e||s.resolveWith(n,o)}};if(e<=1&&(Q(t,s.done(r(i)).resolve,s.reject,!e),"pending"===s.state()||v(o[i]&&o[i].then)))return s.then();for(;i--;)Q(o[i],r(i),s.reject);return s.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&K.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){n.setTimeout((function(){throw t}))};var J=T.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),n.removeEventListener("load",Z),T.ready()}T.fn.ready=function(t){return J.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||J.resolveWith(b,[T]))}}),T.ready.then=J.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Z),n.addEventListener("load",Z));var tt=function(t,e,i,n,o,s,r){var a=0,l=t.length,c=null==i;if("object"===x(i))for(a in o=!0,i)tt(t,e,a,i[a],!0,s,r);else if(void 0!==n&&(o=!0,v(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(T(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return o?t:c?e.call(t):l?e(t[0],i):s},et=/^-ms-/,it=/-([a-z])/g;function nt(t,e){return e.toUpperCase()}function ot(t){return t.replace(et,"ms-").replace(it,nt)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function rt(){this.expando=T.expando+rt.uid++}rt.uid=1,rt.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,o=this.cache(t);if("string"==typeof e)o[ot(e)]=i;else for(n in e)o[ot(n)]=e[n];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ot(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(ot):(e=ot(e))in n?[e]:e.match(Y)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||T.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var at=new rt,lt=new rt,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function dt(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(i)}catch(t){}lt.set(t,e,i)}else i=void 0;return i}T.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,i){return lt.access(t,e,i)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,i){return at.access(t,e,i)},_removeData:function(t,e){at.remove(t,e)}}),T.fn.extend({data:function(t,e){var i,n,o,s=this[0],r=s&&s.attributes;if(void 0===t){if(this.length&&(o=lt.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=ot(n.slice(5)),dt(s,n,o[n]));at.set(s,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var i;if(s&&void 0===e)return void 0!==(i=lt.get(s,t))||void 0!==(i=dt(s,t))?i:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),T.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=at.get(t,e),i&&(!n||Array.isArray(i)?n=at.access(t,e,T.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=T.queue(t,e),n=i.length,o=i.shift(),s=T._queueHooks(t,e);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete s.stop,o.call(t,(function(){T.dequeue(t,e)}),s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return at.get(t,i)||at.access(t,i,{empty:T.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",i])}))})}}),T.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?T.queue(this[0],t):void 0===e?this:this.each((function(){var i=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=T.Deferred(),s=this,r=this.length,a=function(){--n||o.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=at.get(s[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),o.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],mt=b.documentElement,gt=function(t){return T.contains(t.ownerDocument,t)},vt={composed:!0};mt.getRootNode&&(gt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&gt(t)&&"none"===T.css(t,"display")};function bt(t,e,i,n){var o,s,r=20,a=n?function(){return n.cur()}:function(){return T.css(t,e,"")},l=a(),c=i&&i[3]||(T.cssNumber[e]?"":"px"),u=t.nodeType&&(T.cssNumber[e]||"px"!==c&&+l)&&pt.exec(T.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;r--;)T.style(t,e,u+c),(1-s)*(1-(s=a()/l||.5))<=0&&(r=0),u/=s;u*=2,T.style(t,e,u+c),i=i||[]}return i&&(u=+u||+l||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=o)),o}var _t={};function wt(t){var e,i=t.ownerDocument,n=t.nodeName,o=_t[n];return o||(e=i.body.appendChild(i.createElement(n)),o=T.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),_t[n]=o,o)}function xt(t,e){for(var i,n,o=[],s=0,r=t.length;s<r;s++)(n=t[s]).style&&(i=n.style.display,e?("none"===i&&(o[s]=at.get(n,"display")||null,o[s]||(n.style.display="")),""===n.style.display&&yt(n)&&(o[s]=wt(n))):"none"!==i&&(o[s]="none",at.set(n,"display",i)));for(s=0;s<r;s++)null!=o[s]&&(t[s].style.display=o[s]);return t}T.fn.extend({show:function(){return xt(this,!0)},hide:function(){return xt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?T(this).show():T(this).hide()}))}});var kt,Ct,Tt=/^(?:checkbox|radio)$/i,At=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Dt=/^$|^module$|\/(?:java|ecma)script/i;kt=b.createDocumentFragment().appendChild(b.createElement("div")),(Ct=b.createElement("input")).setAttribute("type","radio"),Ct.setAttribute("checked","checked"),Ct.setAttribute("name","t"),kt.appendChild(Ct),g.checkClone=kt.cloneNode(!0).cloneNode(!0).lastChild.checked,kt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!kt.cloneNode(!0).lastChild.defaultValue,kt.innerHTML="<option></option>",g.option=!!kt.lastChild;var Et={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function St(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?T.merge([t],i):i}function $t(t,e){for(var i=0,n=t.length;i<n;i++)at.set(t[i],"globalEval",!e||at.get(e[i],"globalEval"))}Et.tbody=Et.tfoot=Et.colgroup=Et.caption=Et.thead,Et.th=Et.td,g.option||(Et.optgroup=Et.option=[1,"<select multiple='multiple'>","</select>"]);var Pt=/<|&#?\w+;/;function Ot(t,e,i,n,o){for(var s,r,a,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((s=t[p])||0===s)if("object"===x(s))T.merge(h,s.nodeType?[s]:s);else if(Pt.test(s)){for(r=r||d.appendChild(e.createElement("div")),a=(At.exec(s)||["",""])[1].toLowerCase(),l=Et[a]||Et._default,r.innerHTML=l[1]+T.htmlPrefilter(s)+l[2],u=l[0];u--;)r=r.lastChild;T.merge(h,r.childNodes),(r=d.firstChild).textContent=""}else h.push(e.createTextNode(s));for(d.textContent="",p=0;s=h[p++];)if(n&&T.inArray(s,n)>-1)o&&o.push(s);else if(c=gt(s),r=St(d.appendChild(s),"script"),c&&$t(r),i)for(u=0;s=r[u++];)Dt.test(s.type||"")&&i.push(s);return d}var Lt=/^([^.]*)(?:\.(.+)|)/;function jt(){return!0}function It(){return!1}function Mt(t,e,i,n,o,s){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Mt(t,a,i,n,e[a],s);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=It;else if(!o)return t;return 1===s&&(r=o,o=function(t){return T().off(t),r.apply(this,arguments)},o.guid=r.guid||(r.guid=T.guid++)),t.each((function(){T.event.add(this,e,o,n,i)}))}function Nt(t,e,i){i?(at.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var i,n=at.get(this,e);if(1&t.isTrigger&&this[e]){if(n)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(n=a.call(arguments),at.set(this,e,n),this[e](),i=at.get(this,e),at.set(this,e,!1),n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i}else n&&(at.set(this,e,T.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=jt)}})):void 0===at.get(t,e)&&T.event.add(t,e,jt)}T.event={global:{},add:function(t,e,i,n,o){var s,r,a,l,c,u,d,h,p,f,m,g=at.get(t);if(st(t))for(i.handler&&(i=(s=i).handler,o=s.selector),o&&T.find.matchesSelector(mt,o),i.guid||(i.guid=T.guid++),(l=g.events)||(l=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(Y)||[""]).length;c--;)p=m=(a=Lt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},u=T.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:f.join(".")},s),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(p,r)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),T.event.global[p]=!0)},remove:function(t,e,i,n,o){var s,r,a,l,c,u,d,h,p,f,m,g=at.hasData(t)&&at.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(Y)||[""]).length;c--;)if(p=m=(a=Lt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},h=l[p=(n?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)u=h[s],!o&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,g.handle)||T.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[c],i,n,!0);T.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,s,r,a=new Array(arguments.length),l=T.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(r=T.event.handlers.call(this,l,c),e=0;(o=r[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,i=0;(s=o.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(n=((T.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,o,s,r,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(s=[],r={},i=0;i<l;i++)void 0===r[o=(n=e[i]).selector+" "]&&(r[o]=n.needsContext?T(o,this).index(c)>-1:T.find(o,this,null,[c]).length),r[o]&&s.push(n);s.length&&a.push({elem:c,handlers:s})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&D(e,"input")&&Nt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&D(e,"input")&&Nt(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&D(e,"input")&&at.get(e,"click")||D(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?jt:It,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:It,isPropagationStopped:It,isImmediatePropagationStopped:It,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=jt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=jt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=jt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,e){function i(t){if(b.documentMode){var i=at.get(this,"handle"),n=T.event.fix(t);n.type="focusin"===t.type?"focus":"blur",n.isSimulated=!0,i(t),n.target===n.currentTarget&&i(n)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var n;if(Nt(this,t,!0),!b.documentMode)return!1;(n=at.get(this,e))||this.addEventListener(e,i),at.set(this,e,(n||0)+1)},trigger:function(){return Nt(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,i),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,o=b.documentMode?this:n,s=at.get(o,e);s||(b.documentMode?this.addEventListener(e,i):n.addEventListener(t,i,!0)),at.set(o,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,o=b.documentMode?this:n,s=at.get(o,e)-1;s?at.set(o,e,s):(b.documentMode?this.removeEventListener(e,i):n.removeEventListener(t,i,!0),at.remove(o,e))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,o=t.handleObj;return n&&(n===this||T.contains(this,n))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),T.fn.extend({on:function(t,e,i,n){return Mt(this,t,e,i,n)},one:function(t,e,i,n){return Mt(this,t,e,i,n,1)},off:function(t,e,i){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,T(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=It),this.each((function(){T.event.remove(this,t,i,e)}))}});var Ht=/<script|<style|<link/i,Ft=/checked\s*(?:[^=]|=\s*.checked.)/i,Rt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Bt(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Wt(t,e){var i,n,o,s,r,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(o in at.remove(e,"handle events"),a)for(i=0,n=a[o].length;i<n;i++)T.event.add(e,o,a[o][i]);lt.hasData(t)&&(s=lt.access(t),r=T.extend({},s),lt.set(e,r))}}function zt(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Tt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function Vt(t,e,i,n){e=l(e);var o,s,r,a,c,u,d=0,h=t.length,p=h-1,f=e[0],m=v(f);if(m||h>1&&"string"==typeof f&&!g.checkClone&&Ft.test(f))return t.each((function(o){var s=t.eq(o);m&&(e[0]=f.call(this,o,s.html())),Vt(s,e,i,n)}));if(h&&(s=(o=Ot(e,t[0].ownerDocument,!1,t,n)).firstChild,1===o.childNodes.length&&(o=s),s||n)){for(a=(r=T.map(St(o,"script"),qt)).length;d<h;d++)c=o,d!==p&&(c=T.clone(c,!0,!0),a&&T.merge(r,St(c,"script"))),i.call(t[d],c,d);if(a)for(u=r[r.length-1].ownerDocument,T.map(r,Ut),d=0;d<a;d++)c=r[d],Dt.test(c.type||"")&&!at.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Rt,""),c,u))}return t}function Yt(t,e,i){for(var n,o=e?T.filter(e,t):t,s=0;null!=(n=o[s]);s++)i||1!==n.nodeType||T.cleanData(St(n)),n.parentNode&&(i&&gt(n)&&$t(St(n,"script")),n.parentNode.removeChild(n));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,o,s,r,a=t.cloneNode(!0),l=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(r=St(a),n=0,o=(s=St(t)).length;n<o;n++)zt(s[n],r[n]);if(e)if(i)for(s=s||St(t),r=r||St(a),n=0,o=s.length;n<o;n++)Wt(s[n],r[n]);else Wt(t,a);return(r=St(a,"script")).length>0&&$t(r,!l&&St(t,"script")),a},cleanData:function(t){for(var e,i,n,o=T.event.special,s=0;void 0!==(i=t[s]);s++)if(st(i)){if(e=i[at.expando]){if(e.events)for(n in e.events)o[n]?T.event.remove(i,n):T.removeEvent(i,n,e.handle);i[at.expando]=void 0}i[lt.expando]&&(i[lt.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Vt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)}))},prepend:function(){return Vt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Vt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Vt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(St(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ht.test(t)&&!Et[(At.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(T.cleanData(St(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Vt(this,arguments,(function(e){var i=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(St(this)),i&&i.replaceChild(e,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){T.fn[t]=function(t){for(var i,n=[],o=T(t),s=o.length-1,r=0;r<=s;r++)i=r===s?this:this.clone(!0),T(o[r])[e](i),c.apply(n,i.get());return this.pushStack(n)}}));var Xt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Gt=/^--/,Qt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Kt=function(t,e,i){var n,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in n=i.call(t),e)t.style[o]=s[o];return n},Jt=new RegExp(ft.join("|"),"i");function Zt(t,e,i){var n,o,s,r,a=Gt.test(e),l=t.style;return(i=i||Qt(t))&&(r=i.getPropertyValue(e)||i[e],a&&r&&(r=r.replace(O,"$1")||void 0),""!==r||gt(t)||(r=T.style(t,e)),!g.pixelBoxStyles()&&Xt.test(r)&&Jt.test(e)&&(n=l.width,o=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=i.width,l.width=n,l.minWidth=o,l.maxWidth=s)),void 0!==r?r+"":r}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(c).appendChild(u);var t=n.getComputedStyle(u);i="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",r=36===e(t.right),o=36===e(t.width),u.style.position="absolute",s=12===e(u.offsetWidth/3),mt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var i,o,s,r,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,i,o;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),i=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",mt.appendChild(t).appendChild(e).appendChild(i),o=n.getComputedStyle(e),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ie=b.createElement("div").style,ne={};function oe(t){var e=T.cssProps[t]||ne[t];return e||(t in ie?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=ee.length;i--;)if((t=ee[i]+e)in ie)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,re={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,i){var n=pt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function ce(t,e,i,n,o,s){var r="width"===e?1:0,a=0,l=0,c=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(c+=T.css(t,i+ft[r],!0,o)),n?("content"===i&&(l-=T.css(t,"padding"+ft[r],!0,o)),"margin"!==i&&(l-=T.css(t,"border"+ft[r]+"Width",!0,o))):(l+=T.css(t,"padding"+ft[r],!0,o),"padding"!==i?l+=T.css(t,"border"+ft[r]+"Width",!0,o):a+=T.css(t,"border"+ft[r]+"Width",!0,o));return!n&&s>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))||0),l+c}function ue(t,e,i){var n=Qt(t),o=(!g.boxSizingReliable()||i)&&"border-box"===T.css(t,"boxSizing",!1,n),s=o,r=Zt(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Xt.test(r)){if(!i)return r;r="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&D(t,"tr")||"auto"===r||!parseFloat(r)&&"inline"===T.css(t,"display",!1,n))&&t.getClientRects().length&&(o="border-box"===T.css(t,"boxSizing",!1,n),(s=a in t)&&(r=t[a])),(r=parseFloat(r)||0)+ce(t,e,i||(o?"border":"content"),s,n,r)+"px"}function de(t,e,i,n,o){return new de.prototype.init(t,e,i,n,o)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Zt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,r,a=ot(e),l=Gt.test(e),c=t.style;if(l||(e=oe(a)),r=T.cssHooks[e]||T.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(o=r.get(t,!1,n))?o:c[e];"string"===(s=typeof i)&&(o=pt.exec(i))&&o[1]&&(i=bt(t,e,o),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=o&&o[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var o,s,r,a=ot(e);return Gt.test(e)||(e=oe(a)),(r=T.cssHooks[e]||T.cssHooks[a])&&"get"in r&&(o=r.get(t,!0,i)),void 0===o&&(o=Zt(t,e,n)),"normal"===o&&e in ae&&(o=ae[e]),""===i||i?(s=parseFloat(o),!0===i||isFinite(s)?s||0:o):o}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,i,n){if(i)return!se.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,n):Kt(t,re,(function(){return ue(t,e,n)}))},set:function(t,i,n){var o,s=Qt(t),r=!g.scrollboxSize()&&"absolute"===s.position,a=(r||n)&&"border-box"===T.css(t,"boxSizing",!1,s),l=n?ce(t,e,n,a,s):0;return a&&r&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-ce(t,e,"border",!1,s)-.5)),l&&(o=pt.exec(i))&&"px"!==(o[3]||"px")&&(t.style[e]=i,i=T.css(t,e)),le(0,i,l)}}})),T.cssHooks.marginLeft=te(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Kt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(i){for(var n=0,o={},s="string"==typeof i?i.split(" "):[i];n<4;n++)o[t+ft[n]+e]=s[n]||s[n-2]||s[0];return o}},"margin"!==t&&(T.cssHooks[t+e].set=le)})),T.fn.extend({css:function(t,e){return tt(this,(function(t,e,i){var n,o,s={},r=0;if(Array.isArray(e)){for(n=Qt(t),o=e.length;r<o;r++)s[e[r]]=T.css(t,e[r],!1,n);return s}return void 0!==i?T.style(t,e,i):T.css(t,e)}),t,e,arguments.length>1)}}),T.Tween=de,de.prototype={constructor:de,init:function(t,e,i,n,o,s){this.elem=t,this.prop=i,this.easing=o||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(T.cssNumber[i]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,i=de.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=de.prototype.init,T.fx.step={};var he,pe,fe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){pe&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ge):n.setTimeout(ge,T.fx.interval),T.fx.tick())}function ve(){return n.setTimeout((function(){he=void 0})),he=Date.now()}function ye(t,e){var i,n=0,o={height:t};for(e=e?1:0;n<4;n+=2-e)o["margin"+(i=ft[n])]=o["padding"+i]=t;return e&&(o.opacity=o.width=t),o}function be(t,e,i){for(var n,o=(_e.tweeners[e]||[]).concat(_e.tweeners["*"]),s=0,r=o.length;s<r;s++)if(n=o[s].call(i,e,t))return n}function _e(t,e,i){var n,o,s=0,r=_e.prefilters.length,a=T.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var e=he||ve(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),s=0,r=c.tweens.length;s<r;s++)c.tweens[s].run(n);return a.notifyWith(t,[c,n,i]),n<1&&r?i:(r||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},i),originalProperties:e,originalOptions:i,startTime:he||ve(),duration:i.duration,tweens:[],createTween:function(e,i){var n=T.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(o)return this;for(o=!0;i<n;i++)c.tweens[i].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(!function(t,e){var i,n,o,s,r;for(i in t)if(o=e[n=ot(i)],s=t[i],Array.isArray(s)&&(o=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),(r=T.cssHooks[n])&&"expand"in r)for(i in s=r.expand(s),delete t[n],s)i in t||(t[i]=s[i],e[i]=o);else e[n]=o}(u,c.opts.specialEasing);s<r;s++)if(n=_e.prefilters[s].call(c,t,u,c.opts))return v(n.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return T.map(u,be,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(_e,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return bt(i.elem,t,pt.exec(e),i),i}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(Y);for(var i,n=0,o=t.length;n<o;n++)i=t[n],_e.tweeners[i]=_e.tweeners[i]||[],_e.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,o,s,r,a,l,c,u,d="width"in e||"height"in e,h=this,p={},f=t.style,m=t.nodeType&&yt(t),g=at.get(t,"fxshow");for(n in i.queue||(null==(r=T._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,h.always((function(){h.always((function(){r.unqueued--,T.queue(t,"fx").length||r.empty.fire()}))}))),e)if(o=e[n],fe.test(o)){if(delete e[n],s=s||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||T.style(t,n)}if((l=!T.isEmptyObject(e))||!T.isEmptyObject(p))for(n in d&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=at.get(t,"display")),"none"===(u=T.css(t,"display"))&&(c?u=c:(xt([t],!0),c=t.style.display||c,u=T.css(t,"display"),xt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:c}),s&&(g.hidden=!m),m&&xt([t],!0),h.done((function(){for(n in m||xt([t]),at.remove(t,"fxshow"),p)T.style(t,n,p[n])}))),l=be(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?_e.prefilters.unshift(t):_e.prefilters.push(t)}}),T.speed=function(t,e,i){var n=t&&"object"==typeof t?T.extend({},t):{complete:i||!i&&e||v(t)&&t,duration:t,easing:i&&e||e&&!v(e)&&e};return T.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in T.fx.speeds?n.duration=T.fx.speeds[n.duration]:n.duration=T.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&T.dequeue(this,n.queue)},n},T.fn.extend({fadeTo:function(t,e,i,n){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var o=T.isEmptyObject(t),s=T.speed(e,i,n),r=function(){var e=_e(this,T.extend({},t),s);(o||at.get(this,"finish"))&&e.stop(!0)};return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",s=T.timers,r=at.get(this);if(o)r[o]&&r[o].stop&&n(r[o]);else for(o in r)r[o]&&r[o].stop&&me.test(o)&&n(r[o]);for(o=s.length;o--;)s[o].elem!==this||null!=t&&s[o].queue!==t||(s[o].anim.stop(i),e=!1,s.splice(o,1));!e&&i||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=at.get(this),n=i[t+"queue"],o=i[t+"queueHooks"],s=T.timers,r=n?n.length:0;for(i.finish=!0,T.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),T.each(["toggle","show","hide"],(function(t,e){var i=T.fn[e];T.fn[e]=function(t,n,o){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(ye(e,!0),t,n,o)}})),T.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){T.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),T.timers=[],T.fx.tick=function(){var t,e=0,i=T.timers;for(he=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||T.fx.stop(),he=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){pe||(pe=!0,ge())},T.fx.stop=function(){pe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var o=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(o)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var we,xe=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,i){var n,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?T.prop(t,e,i):(1===s&&T.isXMLDoc(t)||(o=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?we:void 0)),void 0!==i?null===i?void T.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:null==(n=T.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&D(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(Y);if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}),we={set:function(t,e,i){return!1===e?T.removeAttr(t,i):t.setAttribute(i,i),i}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=xe[e]||T.find.attr;xe[e]=function(t,e,n){var o,s,r=e.toLowerCase();return n||(s=xe[r],xe[r]=o,o=null!=i(t,e,n)?r:null,xe[r]=s),o}}));var ke=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;function Te(t){return(t.match(Y)||[]).join(" ")}function Ae(t){return t.getAttribute&&t.getAttribute("class")||""}function De(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Y)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,i){var n,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&T.isXMLDoc(t)||(e=T.propFix[e]||e,o=T.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):ke.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,i,n,o,s,r;return v(t)?this.each((function(e){T(this).addClass(t.call(this,e,Ae(this)))})):(e=De(t)).length?this.each((function(){if(n=Ae(this),i=1===this.nodeType&&" "+Te(n)+" "){for(s=0;s<e.length;s++)o=e[s],i.indexOf(" "+o+" ")<0&&(i+=o+" ");r=Te(i),n!==r&&this.setAttribute("class",r)}})):this},removeClass:function(t){var e,i,n,o,s,r;return v(t)?this.each((function(e){T(this).removeClass(t.call(this,e,Ae(this)))})):arguments.length?(e=De(t)).length?this.each((function(){if(n=Ae(this),i=1===this.nodeType&&" "+Te(n)+" "){for(s=0;s<e.length;s++)for(o=e[s];i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r=Te(i),n!==r&&this.setAttribute("class",r)}})):this:this.attr("class","")},toggleClass:function(t,e){var i,n,o,s,r=typeof t,a="string"===r||Array.isArray(t);return v(t)?this.each((function(i){T(this).toggleClass(t.call(this,i,Ae(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(i=De(t),this.each((function(){if(a)for(s=T(this),o=0;o<i.length;o++)n=i[o],s.hasClass(n)?s.removeClass(n):s.addClass(n);else void 0!==t&&"boolean"!==r||((n=Ae(this))&&at.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+Te(Ae(i))+" ").indexOf(e)>-1)return!0;return!1}});var Ee=/\r/g;T.fn.extend({val:function(t){var e,i,n,o=this[0];return arguments.length?(n=v(t),this.each((function(i){var o;1===this.nodeType&&(null==(o=n?t.call(this,i,T(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(Ee,""):null==i?"":i:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,i,n,o=t.options,s=t.selectedIndex,r="select-one"===t.type,a=r?null:[],l=r?s+1:o.length;for(n=s<0?l:r?s:0;n<l;n++)if(((i=o[n]).selected||n===s)&&!i.disabled&&(!i.parentNode.disabled||!D(i.parentNode,"optgroup"))){if(e=T(i).val(),r)return e;a.push(e)}return a},set:function(t,e){for(var i,n,o=t.options,s=T.makeArray(e),r=o.length;r--;)((n=o[r]).selected=T.inArray(T.valHooks.option.get(n),s)>-1)&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},g.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Se=n.location,$e={guid:Date.now()},Pe=/\?/;T.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||T.error("Invalid XML: "+(i?T.map(i.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,Le=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,i,o){var s,r,a,l,c,u,d,h,f=[i||b],m=p.call(t,"type")?t.type:t,g=p.call(t,"namespace")?t.namespace.split("."):[];if(r=h=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!Oe.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[T.expando]?t:new T.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:T.makeArray(e,[t]),d=T.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,e))){if(!o&&!d.noBubble&&!y(i)){for(l=d.delegateType||m,Oe.test(l+m)||(r=r.parentNode);r;r=r.parentNode)f.push(r),a=r;a===(i.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||n)}for(s=0;(r=f[s++])&&!t.isPropagationStopped();)h=r,t.type=s>1?l:d.bindType||m,(u=(at.get(r,"events")||Object.create(null))[t.type]&&at.get(r,"handle"))&&u.apply(r,e),(u=c&&r[c])&&u.apply&&st(r)&&(t.result=u.apply(r,e),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!st(i)||c&&v(i[m])&&!y(i)&&((a=i[c])&&(i[c]=null),T.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,Le),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,Le),T.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(t,e,i){var n=T.extend(new T.Event,i,{type:t,isSimulated:!0});T.event.trigger(n,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return T.event.trigger(t,e,i,!0)}});var je=/\[\]$/,Ie=/\r?\n/g,Me=/^(?:submit|button|image|reset|file)$/i,Ne=/^(?:input|select|textarea|keygen)/i;function He(t,e,i,n){var o;if(Array.isArray(e))T.each(e,(function(e,o){i||je.test(t)?n(t,o):He(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,i,n)}));else if(i||"object"!==x(e))n(t,e);else for(o in e)He(t+"["+o+"]",e[o],i,n)}T.param=function(t,e){var i,n=[],o=function(t,e){var i=v(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){o(this.name,this.value)}));else for(i in t)He(i,t[i],e,o);return n.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Ne.test(this.nodeName)&&!Me.test(t)&&(this.checked||!Tt.test(t))})).map((function(t,e){var i=T(this).val();return null==i?null:Array.isArray(i)?T.map(i,(function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}})):{name:e.name,value:i.replace(Ie,"\r\n")}})).get()}});var Fe=/%20/g,Re=/#.*$/,Be=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,We=/^\/\//,ze={},Ve={},Ye="*/".concat("*"),Xe=b.createElement("a");function Ge(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,o=0,s=e.toLowerCase().match(Y)||[];if(v(i))for(;n=s[o++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Qe(t,e,i,n){var o={},s=t===Ve;function r(a){var l;return o[a]=!0,T.each(t[a]||[],(function(t,a){var c=a(e,i,n);return"string"!=typeof c||s||o[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)})),l}return r(e.dataTypes[0])||!o["*"]&&r("*")}function Ke(t,e){var i,n,o=T.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&T.extend(!0,t,n),t}Xe.href=Se.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ke(Ke(t,T.ajaxSettings),e):Ke(T.ajaxSettings,t)},ajaxPrefilter:Ge(ze),ajaxTransport:Ge(Ve),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,s,r,a,l,c,u,d,h,p=T.ajaxSetup({},e),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?T(f):T.event,g=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},_={},w={},x="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(c){if(!r)for(r={};e=qe.exec(s);)r[e[1].toLowerCase()+" "]=(r[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=r[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)k.always(t[k.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||x;return i&&i.abort(e),C(0,e),this}};if(g.promise(k),p.url=((t||p.url||Se.href)+"").replace(We,Se.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Y)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Xe.protocol+"//"+Xe.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Qe(ze,p,e,k),c)return k;for(d in(u=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ue.test(p.type),o=p.url.replace(Re,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Fe,"+")):(h=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(Pe.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(Be,"$1"),h=(Pe.test(o)?"&":"?")+"_="+$e.guid+++h),p.url=o+h),p.ifModified&&(T.lastModified[o]&&k.setRequestHeader("If-Modified-Since",T.lastModified[o]),T.etag[o]&&k.setRequestHeader("If-None-Match",T.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ye+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,k,p)||c))return k.abort();if(x="abort",v.add(p.complete),k.done(p.success),k.fail(p.error),i=Qe(Ve,p,e,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,p]),c)return k;p.async&&p.timeout>0&&(a=n.setTimeout((function(){k.abort("timeout")}),p.timeout));try{c=!1,i.send(_,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,r,l){var d,h,b,_,w,x=e;c||(c=!0,a&&n.clearTimeout(a),i=void 0,s=l||"",k.readyState=t>0?4:0,d=t>=200&&t<300||304===t,r&&(_=function(t,e,i){for(var n,o,s,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)s=l[0];else{for(o in i){if(!l[0]||t.converters[o+" "+l[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),i[s]}(p,k,r)),!d&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(t,e,i,n){var o,s,r,a,l,c={},u=t.dataTypes.slice();if(u[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(s=u.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if((a=o.split(" "))[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(p,_,k,d),d?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(T.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(T.etag[o]=w)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=_.state,h=_.data,d=!(b=_.error))):(b=x,!t&&x||(x="error",t<0&&(t=0))),k.status=t,k.statusText=(e||x)+"",d?g.resolveWith(f,[h,x,k]):g.rejectWith(f,[k,x,b]),k.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,p,d?h:b]),v.fireWith(f,[k,x]),u&&(m.trigger("ajaxComplete",[k,p]),--T.active||T.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,i){return T.get(t,e,i,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,i,n,o){return v(i)&&(o=o||n,n=i,i=void 0),T.ajax(T.extend({url:t,type:e,dataType:o,data:i,success:n},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,i){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,i)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(i){T(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ze=T.ajaxSettings.xhr();g.cors=!!Ze&&"withCredentials"in Ze,g.ajax=Ze=!!Ze,T.ajaxTransport((function(t){var e,i;if(g.cors||Ze&&!t.crossDomain)return{send:function(o,s){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];for(r in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(r,o[r]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,o){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&o("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){i&&i()}}}));var ti,ei=[],ii=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ei.pop()||T.expando+"_"+$e.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,e,i){var o,s,r,a=!1!==t.jsonp&&(ii.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(ii,"$1"+o):!1!==t.jsonp&&(t.url+=(Pe.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return r||T.error(o+" was not called"),r[0]},t.dataTypes[0]="json",s=n[o],n[o]=function(){r=arguments},i.always((function(){void 0===s?T(n).removeProp(o):n[o]=s,t[o]&&(t.jsonpCallback=e.jsonpCallback,ei.push(o)),r&&v(s)&&s(r[0]),r=s=void 0})),"script"})),g.createHTMLDocument=((ti=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ti.childNodes.length),T.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(g.createHTMLDocument?((n=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(n)):e=b),s=!i&&[],(o=R.exec(t))?[e.createElement(o[1])]:(o=Ot([t],e,s),s&&s.length&&T(s).remove(),T.merge([],o.childNodes)));var n,o,s},T.fn.load=function(t,e,i){var n,o,s,r=this,a=t.indexOf(" ");return a>-1&&(n=Te(t.slice(a)),t=t.slice(0,a)),v(e)?(i=e,e=void 0):e&&"object"==typeof e&&(o="POST"),r.length>0&&T.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){s=arguments,r.html(n?T("<div>").append(T.parseHTML(t)).find(n):t)})).always(i&&function(t,e){r.each((function(){i.apply(this,s||[t.responseText,e,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(e){return t===e.elem})).length},T.offset={setOffset:function(t,e,i){var n,o,s,r,a,l,c=T.css(t,"position"),u=T(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),s=T.css(t,"top"),l=T.css(t,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(r=(n=u.position()).top,o=n.left):(r=parseFloat(s)||0,o=parseFloat(l)||0),v(e)&&(e=e.call(t,i,T.extend({},a))),null!=e.top&&(d.top=e.top-a.top+r),null!=e.left&&(d.left=e.left-a.left+o),"using"in e?e.using.call(t,d):u.css(d)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){T.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],o={top:0,left:0};if("fixed"===T.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((o=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),o.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-T.css(n,"marginTop",!0),left:e.left-o.left-T.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||mt}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;T.fn[t]=function(n){return tt(this,(function(t,n,o){var s;if(y(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===o)return s?s[e]:t[n];s?s.scrollTo(i?s.pageXOffset:o,i?o:s.pageYOffset):t[n]=o}),t,n,arguments.length)}})),T.each(["top","left"],(function(t,e){T.cssHooks[e]=te(g.pixelPosition,(function(t,i){if(i)return i=Zt(t,e),Xt.test(i)?T(t).position()[e]+"px":i}))})),T.each({Height:"height",Width:"width"},(function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){T.fn[n]=function(o,s){var r=arguments.length&&(i||"boolean"!=typeof o),a=i||(!0===o||!0===s?"margin":"border");return tt(this,(function(e,i,o){var s;return y(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===o?T.css(e,i,a):T.style(e,i,o,a)}),e,r?o:void 0,r)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){T.fn[e]=function(t){return this.on(e,t)}})),T.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.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(t,e){T.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var ni=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),v(t))return n=a.call(arguments,2),o=function(){return t.apply(e||this,n.concat(a.call(arguments)))},o.guid=t.guid=t.guid||T.guid++,o},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=D,T.isFunction=v,T.isWindow=y,T.camelCase=ot,T.type=x,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(ni,"$1")},void 0===(i=function(){return T}.apply(e,[]))||(t.exports=i);var oi=n.jQuery,si=n.$;return T.noConflict=function(t){return n.$===T&&(n.$=si),t&&n.jQuery===T&&(n.jQuery=oi),T},void 0===o&&(n.jQuery=n.$=T),T}))},511:()=>{},458:(t,e,i)=>{var n,o,s;o=[i(692)],void 0===(s="function"==typeof(n=function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var i,n,o;return e&&e.requirejs||(e?n=e:e={},function(t){var e,s,r,a,l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,p=[].slice,f=/\.js$/;function m(t,e){return h.call(t,e)}function g(t,e){var i,n,o,s,r,a,l,c,d,h,p,m=e&&e.split("/"),g=u.map,v=g&&g["*"]||{};if(t){for(r=(t=t.split("/")).length-1,u.nodeIdCompat&&f.test(t[r])&&(t[r]=t[r].replace(f,"")),"."===t[0].charAt(0)&&m&&(t=m.slice(0,m.length-1).concat(t)),d=0;d<t.length;d++)if("."===(p=t[d]))t.splice(d,1),d-=1;else if(".."===p){if(0===d||1===d&&".."===t[2]||".."===t[d-1])continue;d>0&&(t.splice(d-1,2),d-=2)}t=t.join("/")}if((m||v)&&g){for(d=(i=t.split("/")).length;d>0;d-=1){if(n=i.slice(0,d).join("/"),m)for(h=m.length;h>0;h-=1)if((o=g[m.slice(0,h).join("/")])&&(o=o[n])){s=o,a=d;break}if(s)break;!l&&v&&v[n]&&(l=v[n],c=d)}!s&&l&&(s=l,a=c),s&&(i.splice(0,a,s),t=i.join("/"))}return t}function v(e,i){return function(){var n=p.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),s.apply(t,n.concat([e,i]))}}function y(t){return function(e){return g(e,t)}}function b(t){return function(e){l[t]=e}}function _(i){if(m(c,i)){var n=c[i];delete c[i],d[i]=!0,e.apply(t,n)}if(!m(l,i)&&!m(d,i))throw new Error("No "+i);return l[i]}function w(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function x(t){return t?w(t):[]}function k(t){return function(){return u&&u.config&&u.config[t]||{}}}r=function(t,e){var i,n=w(t),o=n[0],s=e[1];return t=n[1],o&&(i=_(o=g(o,s))),o?t=i&&i.normalize?i.normalize(t,y(s)):g(t,s):(o=(n=w(t=g(t,s)))[0],t=n[1],o&&(i=_(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:i}},a={require:function(t){return v(t)},exports:function(t){var e=l[t];return void 0!==e?e:l[t]={}},module:function(t){return{id:t,uri:"",exports:l[t],config:k(t)}}},e=function(e,i,n,o){var s,u,h,p,f,g,y,w=[],k=typeof n;if(g=x(o=o||e),"undefined"===k||"function"===k){for(i=!i.length&&n.length?["require","exports","module"]:i,f=0;f<i.length;f+=1)if("require"===(u=(p=r(i[f],g)).f))w[f]=a.require(e);else if("exports"===u)w[f]=a.exports(e),y=!0;else if("module"===u)s=w[f]=a.module(e);else if(m(l,u)||m(c,u)||m(d,u))w[f]=_(u);else{if(!p.p)throw new Error(e+" missing "+u);p.p.load(p.n,v(o,!0),b(u),{}),w[f]=l[u]}h=n?n.apply(l[e],w):void 0,e&&(s&&s.exports!==t&&s.exports!==l[e]?l[e]=s.exports:h===t&&y||(l[e]=h))}else e&&(l[e]=n)},i=n=s=function(i,n,o,l,c){if("string"==typeof i)return a[i]?a[i](n):_(r(i,x(n)).f);if(!i.splice){if((u=i).deps&&s(u.deps,u.callback),!n)return;n.splice?(i=n,n=o,o=null):i=t}return n=n||function(){},"function"==typeof o&&(o=l,l=c),l?e(t,i,n,o):setTimeout((function(){e(t,i,n,o)}),4),s},s.config=function(t){return s(t)},i._defined=l,(o=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),m(l,t)||m(c,t)||(c[t]=[t,e,i])}).amd={jQuery:!0}}(),e.requirejs=i,e.require=n,e.define=o),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function i(t){var e=t.prototype,i=[];for(var n in e)"function"==typeof e[n]&&"constructor"!==n&&i.push(n);return i}e.Extend=function(t,e){var i={}.hasOwnProperty;function n(){this.constructor=t}for(var o in e)i.call(e,o)&&(t[o]=e[o]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},e.Decorate=function(t,e){var n=i(e),o=i(t);function s(){var i=Array.prototype.unshift,n=e.prototype.constructor.length,o=t.prototype.constructor;n>0&&(i.call(arguments,t.prototype.constructor),o=e.prototype.constructor),o.apply(this,arguments)}function r(){this.constructor=s}e.displayName=t.displayName,s.prototype=new r;for(var a=0;a<o.length;a++){var l=o[a];s.prototype[l]=t.prototype[l]}for(var c=function(t){var i=function(){};t in s.prototype&&(i=s.prototype[t]);var n=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,i),n.apply(this,arguments)}},u=0;u<n.length;u++){var d=n[u];s.prototype[d]=c(d)}return s};var n=function(){this.listeners={}};n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},e.Observable=n,e.generateChars=function(t){for(var e="",i=0;i<t;i++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var o=0;o<i.length;o++){var s=i[o];(s=s.substring(0,1).toLowerCase()+s.substring(1))in n||(n[s]={}),o==i.length-1&&(n[s]=t[e]),n=n[s]}delete t[e]}}return t},e.hasScroll=function(e,i){var n=t(i),o=i.style.overflowX,s=i.style.overflowY;return(o!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===o||"scroll"===s||n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.__cache={};var o=0;return e.GetUniqueElementId=function(t){var i=t.getAttribute("data-select2-id");return null!=i||(i=t.id?"select2-data-"+t.id:"select2-data-"+(++o).toString()+"-"+e.generateChars(4),t.setAttribute("data-select2-id",i)),i},e.StoreData=function(t,i,n){var o=e.GetUniqueElementId(t);e.__cache[o]||(e.__cache[o]={}),e.__cache[o][i]=n},e.GetData=function(i,n){var o=e.GetUniqueElementId(i);return n?e.__cache[o]&&null!=e.__cache[o][n]?e.__cache[o][n]:t(i).data(n):e.__cache[o]},e.RemoveData=function(t){var i=e.GetUniqueElementId(t);null!=e.__cache[i]&&delete e.__cache[i],t.removeAttribute("data-select2-id")},e.copyNonInternalCssClasses=function(t,e){var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter((function(t){return 0===t.indexOf("select2-")}));var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter((function(t){return 0!==t.indexOf("select2-")}));var o=i.concat(n);t.setAttribute("class",o.join(" "))},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(e.message);n.append(i(o(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],o=this.option(n);e.push(o)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option--selectable"),e=t.filter(".select2-results__option--selected");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current((function(n){var o=n.map((function(t){return t.id.toString()}));i.$results.find(".select2-results__option--selectable").each((function(){var i=t(this),n=e.GetData(this,"data"),s=""+n.id;null!=n.element&&n.element.selected||null==n.element&&o.indexOf(s)>-1?(this.classList.add("select2-results__option--selected"),i.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),i.attr("aria-selected","false"))}))}))},i.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},i=this.option(e);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var n=document.createElement("li");n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable");var o={role:"option"},s=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=i.element&&s.call(i.element,":disabled")||null==i.element&&i.disabled)&&(o["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==i.id&&n.classList.remove("select2-results__option--selectable"),null!=i._resultId&&(n.id=i._resultId),i.title&&(n.title=i.title),i.children&&(o.role="group",o["aria-label"]=i.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),o){var a=o[r];n.setAttribute(r,a)}if(i.children){var l=t(n),c=document.createElement("strong");c.className="select2-results__group",this.template(i,c);for(var u=[],d=0;d<i.children.length;d++){var h=i.children[d],p=this.option(h);u.push(p)}var f=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});f.append(u),l.append(c),l.append(f)}else this.template(i,n);return e.StoreData(n,"data",i),n},i.prototype.bind=function(i,n){var o=this,s=i.id+"-results";this.$results.attr("id",s),i.on("results:all",(function(t){o.clear(),o.append(t.data),i.isOpen()&&(o.setClasses(),o.highlightFirstItem())})),i.on("results:append",(function(t){o.append(t.data),i.isOpen()&&o.setClasses()})),i.on("query",(function(t){o.hideMessages(),o.showLoading(t)})),i.on("select",(function(){i.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())})),i.on("unselect",(function(){i.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())})),i.on("open",(function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()})),i.on("close",(function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")})),i.on("results:toggle",(function(){var t=o.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),i.on("results:select",(function(){var t=o.getHighlightedResults();if(0!==t.length){var i=e.GetData(t[0],"data");t.hasClass("select2-results__option--selected")?o.trigger("close",{}):o.trigger("select",{data:i})}})),i.on("results:previous",(function(){var t=o.getHighlightedResults(),e=o.$results.find(".select2-results__option--selectable"),i=e.index(t);if(!(i<=0)){var n=i-1;0===t.length&&(n=0);var s=e.eq(n);s.trigger("mouseenter");var r=o.$results.offset().top,a=s.offset().top,l=o.$results.scrollTop()+(a-r);0===n?o.$results.scrollTop(0):a-r<0&&o.$results.scrollTop(l)}})),i.on("results:next",(function(){var t=o.getHighlightedResults(),e=o.$results.find(".select2-results__option--selectable"),i=e.index(t)+1;if(!(i>=e.length)){var n=e.eq(i);n.trigger("mouseenter");var s=o.$results.offset().top+o.$results.outerHeight(!1),r=n.offset().top+n.outerHeight(!1),a=o.$results.scrollTop()+r-s;0===i?o.$results.scrollTop(0):r>s&&o.$results.scrollTop(a)}})),i.on("results:focus",(function(t){t.element[0].classList.add("select2-results__option--highlighted"),t.element[0].setAttribute("aria-selected","true")})),i.on("results:message",(function(t){o.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=o.$results.scrollTop(),i=o.$results.get(0).scrollHeight-e+t.deltaY,n=t.deltaY>0&&e-t.deltaY<=0,s=t.deltaY<0&&i<=o.$results.height();n?(o.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):s&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(i){var n=t(this),s=e.GetData(this,"data");n.hasClass("select2-results__option--selected")?o.options.get("multiple")?o.trigger("unselect",{originalEvent:i,data:s}):o.trigger("close",{}):o.trigger("select",{originalEvent:i,data:s})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(i){var n=e.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),o.trigger("results:focus",{data:n,element:t(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find(".select2-results__option--selectable").index(t),i=this.$results.offset().top,n=t.offset().top,o=this.$results.scrollTop()+(n-i),s=n-i;o-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(o)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),s=n(e,i);null==s?i.style.display="none":"string"==typeof s?i.innerHTML=o(s):t(i).append(s)},i})),e.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}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var i=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),i.attr("title",this.$element.attr("title")),i.attr("tabindex",this._tabindex),i.attr("aria-disabled","false"),this.$selection=i,i},n.prototype.bind=function(t,e){var n=this,o=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){n.trigger("focus",t)})),this.$selection.on("blur",(function(t){n._handleBlur(t)})),this.$selection.on("keydown",(function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){n.update(t.data)})),t.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",o),n._attachCloseHandler(t)})),t.on("close",(function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(t)})),t.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")}))},n.prototype._handleBlur=function(e){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(i){t(document.body).on("mousedown.select2."+i.id,(function(i){var n=t(i.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=n[0]&&e.GetData(this,"element").select2("close")}))}))},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,i,n){function o(){o.__super__.constructor.apply(this,arguments)}return i.Extend(o,e),o.prototype.render=function(){var t=o.__super__.render.call(this);return t[0].classList.add("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},o.prototype.bind=function(t,e){var i=this;o.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.attr("aria-controls",n),this.$selection.on("mousedown",(function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||i.$selection.trigger("focus")}))},o.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},o.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},o.prototype.selectionContainer=function(){return t("<span></span>")},o.prototype.update=function(t){if(0!==t.length){var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n);var o=e.title||e.text;o?i.attr("title",o):i.removeAttr("title")}else this.clear()},o})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t[0].classList.add("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,o){var s=this;n.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.on("click",(function(t){s.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!s.isDisabled()){var n=t(this).parent(),o=i.GetData(n[0],"data");s.trigger("unselect",{originalEvent:e,data:o})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(t){s.isDisabled()||t.stopPropagation()}))},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",o=0;o<t.length;o++){var s=t[o],r=this.selectionContainer(),a=this.display(s,r),l=n+i.generateChars(4)+"-";s.id?l+=s.id:l+=i.generateChars(4),r.find(".select2-selection__choice__display").append(a).attr("id",l);var c=s.title||s.text;c&&r.attr("title",c);var u=this.options.get("translations").get("removeItem"),d=r.find(".select2-selection__choice__remove");d.attr("title",u()),d.attr("aria-label",u()),d.attr("aria-describedby",l),i.StoreData(r[0],"data",s),e.push(r)}this.$selection.find(".select2-selection__rendered").append(e)}},n})),e.define("select2/selection/placeholder",[],(function(){function t(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();i.html(this.display(e)),i[0].classList.add("select2-selection__placeholder"),i[0].classList.remove("select2-selection__choice");var n=e.title||e.text||i.text();return this.$selection.find(".select2-selection__rendered").attr("title",n),i},t.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||i)return t.call(this,e);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},t})),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,i){function n(){}return n.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){n._handleClear(t)})),e.on("keypress",(function(t){n._handleKeyboardClear(t,e)}))},n.prototype._handleClear=function(t,e){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();var o=i.GetData(n[0],"data"),s=this.$element.val();this.$element.val(this.placeholder.id);var r={data:o};if(this.trigger("clear",r),r.prevented)this.$element.val(s);else{for(var a=0;a<o.length;a++)if(r={data:o[a]},this.trigger("unselect",r),r.prevented)return void this.$element.val(s);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},n.prototype.update=function(e,n){if(e.call(this,n),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var o=this.$selection.find(".select2-selection__rendered").attr("id"),s=this.options.get("translations").get("removeAllItems"),r=t('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');r.attr("title",s()),r.attr("aria-label",s()),r.attr("aria-describedby",o),i.StoreData(r[0],"data",n),this.$selection.prepend(r),this.$selection[0].classList.add("select2-selection--clearable")}},n})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=this.options.get("translations").get("search"),n=t('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i());var o=e.call(this);return this._transferTabIndex(),o.append(this.$searchContainer),o},n.prototype.bind=function(t,n,o){var s=this,r=n.id+"-results",a=n.id+"-container";t.call(this,n,o),s.$search.attr("aria-describedby",a),n.on("open",(function(){s.$search.attr("aria-controls",r),s.$search.trigger("focus")})),n.on("close",(function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")})),n.on("enable",(function(){s.$search.prop("disabled",!1),s._transferTabIndex()})),n.on("disable",(function(){s.$search.prop("disabled",!0)})),n.on("focus",(function(t){s.$search.trigger("focus")})),n.on("results:focus",(function(t){t.data._resultId?s.$search.attr("aria-activedescendant",t.data._resultId):s.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){s.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){s._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),s.trigger("keypress",t),s._keyUpPrevented=t.isDefaultPrevented(),t.which===i.BACKSPACE&&""===s.$search.val()){var n=s.$selection.find(".select2-selection__choice").last();if(n.length>0){var o=e.GetData(n[0],"data");s.searchRemoveChoice(o),t.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(t){s.$search.val()&&t.stopPropagation()}));var l=document.documentMode,c=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){c?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(c&&"input"===t.type)s.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&s.handleSearch(t)}}))},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.resizeSearch(),i&&this.$search.trigger("focus")},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="100%";""===this.$search.attr("placeholder")&&(t=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",t)},n})),e.define("select2/selection/selectionCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=this.options.get("selectionCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),t.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(n),i},e})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,i,n){var o=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];e.call(this,i,n),i.on("*",(function(e,i){if(-1!==s.indexOf(e)){i=i||{};var n=t.Event("select2:"+e,{params:i});o.$element.trigger(n),-1!==r.indexOf(e)&&(i.prevented=n.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var n=e(t);i._cache[t]=n}return new i(i._cache[t])},i})),e.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",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){var n=e.id+"-result-";return n+=t.generateChars(4),null!=i.id?n+="-"+i.id.toString():n+="-"+t.generateChars(4),n},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=this;t(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(t){return e.item(i(t))})))},n.prototype.select=function(t){var e=this;if(t.selected=!0,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var n=[];(t=[t]).push.apply(t,i);for(var o=0;o<t.length;o++){var s=t[o].id;-1===n.indexOf(s)&&n.push(s)}e.$element.val(n),e.$element.trigger("input").trigger("change")}));else{var i=t.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var n=[],o=0;o<i.length;o++){var s=i[o].id;s!==t.id&&-1===n.indexOf(s)&&n.push(s)}e.$element.val(n),e.$element.trigger("input").trigger("change")}))}},n.prototype.bind=function(t,e){var i=this;this.container=t,t.on("select",(function(t){i.select(t.data)})),t.on("unselect",(function(t){i.unselect(t.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},n.prototype.query=function(t,e){var n=[],o=this;this.$element.children().each((function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var e=i(this),s=o.item(e),r=o.matches(t,s);null!==r&&n.push(r)}})),e({results:n})},n.prototype.addOptions=function(t){this.$element.append(t)},n.prototype.option=function(t){var n;t.children?(n=document.createElement("optgroup")).label=t.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=t.text:n.innerText=t.text,void 0!==t.id&&(n.value=t.id),t.disabled&&(n.disabled=!0),t.selected&&(n.selected=!0),t.title&&(n.title=t.title);var o=this._normalizeItem(t);return o.element=n,e.StoreData(n,"data",o),i(n)},n.prototype.item=function(t){var n={};if(null!=(n=e.GetData(t[0],"data")))return n;var o=t[0];if("option"===o.tagName.toLowerCase())n={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if("optgroup"===o.tagName.toLowerCase()){n={text:t.prop("label"),children:[],title:t.prop("title")};for(var s=t.children("option"),r=[],a=0;a<s.length;a++){var l=i(s[a]),c=this.item(l);r.push(c)}n.children=r}return(n=this._normalizeItem(n)).element=t[0],e.StoreData(t[0],"data",n),n},n.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t});var e={selected:!1,disabled:!1};return null!=(t=i.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},e,t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,i){function n(t,e){this._dataToConvert=e.get("data")||[],n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype.bind=function(t,e){n.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,i){return i.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){var e=this,n=this.$element.find("option"),o=n.map((function(){return e.item(i(this)).id})).get(),s=[];function r(t){return function(){return i(this).val()==t.id}}for(var a=0;a<t.length;a++){var l=this._normalizeItem(t[a]);if(o.indexOf(l.id)>=0){var c=n.filter(r(l)),u=this.item(c),d=i.extend(!0,{},l,u),h=this.option(d);c.replaceWith(h)}else{var p=this.option(l);if(l.children){var f=this.convertToOptions(l.children);p.append(f)}s.push(p)}}return s},n})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){var o=i.ajax(t);return o.then(e),o.fail(n),o}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){var n=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var o=i.extend({type:"GET"},this.ajaxOptions);function s(){var i=o.transport(o,(function(i){var o=n.processResults(i,t);n.options.get("debug")&&window.console&&console.error&&(o&&o.results&&Array.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){(!("status"in i)||0!==i.status&&"0"!==i.status)&&n.trigger("results:message",{message:"errorLoading"})}));n._request=i}"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(s,this.ajaxOptions.delay)):s()},n})),e.define("select2/data/tags",["jquery"],(function(t){function e(t,e,i){var n=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,e,i),Array.isArray(n))for(var r=0;r<n.length;r++){var a=n[r],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(t,e,i){var n=this;function o(t,s){for(var r=t.results,a=0;a<r.length;a++){var l=r[a],c=null!=l.children&&!o({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||c)return!s&&(t.data=r,void i(t))}if(s)return!0;var u=n.createTag(e);if(null!=u){var d=n.option(u);d.attr("data-select2-tag","true"),n.addOptions([d]),n.insertTag(r,u)}t.results=r,i(t)}this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,o):t.call(this,e,i)},e.prototype.createTag=function(t,e){if(null==e.term)return null;var i=e.term.trim();return""===i?null:{id:i,text:i}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){var o=this;function s(e){var i=o._normalizeItem(e);if(!o.$element.find("option").filter((function(){return t(this).val()===i.id})).length){var n=o.option(i);n.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([n])}r(i)}function r(t){o.trigger("select",{data:t})}i.term=i.term||"";var a=this.tokenizer(i,this.options,s);a.term!==i.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.trigger("focus")),i.term=a.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,o){for(var s=n.get("tokenSeparators")||[],r=i.term,a=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};a<r.length;){var c=r[a];if(-1!==s.indexOf(c)){var u=r.substr(0,a),d=l(t.extend({},i,{term:u}));null!=d?(o(d),r=r.substr(a+1)||"",a=0):a++}else a++}return{term:r}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(){n._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,i){var n=this;this._checkIfMaximumSelected((function(){t.call(n,e,i)}))},t.prototype._checkIfMaximumSelected=function(t,e){var i=this;this.current((function(t){var n=null!=t?t.length:0;i.maximumSelectionLength>0&&n>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e&&e()}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),e.define("select2/dropdown/search",["jquery"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=this.options.get("translations").get("search"),o=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=o,this.$search=o.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),i.prepend(o),i},e.prototype.bind=function(e,i,n){var o=this,s=i.id+"-results";e.call(this,i,n),this.$search.on("keydown",(function(t){o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){o.handleSearch(t)})),i.on("open",(function(){o.$search.attr("tabindex",0),o.$search.attr("aria-controls",s),o.$search.trigger("focus"),window.setTimeout((function(){o.$search.trigger("focus")}),0)})),i.on("close",(function(){o.$search.attr("tabindex",-1),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.val(""),o.$search.trigger("blur")})),i.on("focus",(function(){i.isOpen()||o.$search.trigger("focus")})),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(o.showSearch(t)?o.$searchContainer[0].classList.remove("select2-search--hide"):o.$searchContainer[0].classList.add("select2-search--hide"))})),i.on("results:focus",(function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")}))},e.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;n>=0;n--){var o=e[n];this.placeholder.id===o.id&&i.splice(n,1)}return i},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("query",(function(t){n.lastParams=t,n.loading=!0})),e.on("query:append",(function(t){n.lastParams=t,n.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function i(e,i,n){this.$dropdownParent=t(n.get("dropdownParent")||document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),n._bindContainerResultHandlers(e)})),e.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e[0].classList.remove("select2"),e[0].classList.add("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>"),n=e.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var i=this;e.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:message",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("select",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("unselect",(function(){i._positionDropdown(),i._resizeDropdown()})),this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(i,n){var o=this,s="scroll.select2."+n.id,r="resize.select2."+n.id,a="orientationchange.select2."+n.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(s,(function(i){var n=e.GetData(this,"select2-scroll-position");t(this).scrollTop(n.y)})),t(window).on(s+" "+r+" "+a,(function(t){o._positionDropdown(),o._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var o="scroll.select2."+n.id,s="resize.select2."+n.id,r="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(o),t(window).off(o+" "+s+" "+r)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),o=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=s.top,r.bottom=s.top+r.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},c=l.top<s.top-a.height,u=l.bottom>s.bottom+a.height,d={left:s.left,top:r.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p={top:0,left:0};(t.contains(document.body,h[0])||h[0].isConnected)&&(p=h.offset()),d.top-=p.top,d.left-=p.left,i||n||(o="below"),u||!c||i?!c&&u&&i&&(o="below"):o="above",("above"==o||i&&"below"!==o)&&(d.top=r.top-p.top-a.height),null!=o&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+o),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+o)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(e){for(var i=0,n=0;n<e.length;n++){var o=e[n];o.children?i+=t(o.children):i++}return i}function e(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return e.prototype.showSearch=function(e,i){return!(t(i.data.results)<this.minimumResultsForSearch)&&e.call(this,i)},e})),e.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}return e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",(function(t){n._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,i){if(i&&null!=i.originalSelect2Event){var n=i.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var s=t.GetData(o[0],"data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(t){n._selectTriggered(t)})),e.on("unselect",(function(t){n._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t})),e.define("select2/dropdown/dropdownCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=this.options.get("dropdownCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),t.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(n),i},e})),e.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(t){function e(){}return e.prototype.highlightFirstItem=function(e){var i=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(i.length>0){var n=i.first(),o=t.GetData(n[0],"data").element;if(o&&o.getAttribute&&"true"===o.getAttribute("data-select2-tag"))return void n.trigger("mouseenter")}e.call(this)},e})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,i="Please delete "+e+" character";return 1!=e&&(i+="s"),i},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(t,e,i,n,o,s,r,a,l,c,u,d,h,p,f,m,g,v,y,b,_,w,x,k,C,T,A,D,E,S,$){function P(){this.reset()}return P.prototype.apply=function(u){if(null==(u=t.extend(!0,{},this.defaults,u)).dataAdapter&&(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=p:u.dataAdapter=h,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g))),null==u.resultsAdapter&&(u.resultsAdapter=e,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,k)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,x)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,A)),u.tags&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,S))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=_;else{var d=c.Decorate(_,w);u.dropdownAdapter=d}0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,T)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,D)),null!=u.dropdownCssClass&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,E)),u.dropdownAdapter=c.Decorate(u.dropdownAdapter,C)}null==u.selectionAdapter&&(u.multiple?u.selectionAdapter=n:u.selectionAdapter=i,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),null!=u.selectionCssClass&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),u.language=this._resolveLanguage(u.language),u.language.push("en");for(var $=[],P=0;P<u.language.length;P++){var O=u.language[P];-1===$.indexOf(O)&&$.push(O)}return u.language=$,u.translations=this._processTranslations(u.language,u.debug),u},P.prototype.reset=function(){function e(t){function e(t){return d[t]||t}return t.replace(/[^\u0000-\u007E]/g,e)}function i(n,o){if(null==n.term||""===n.term.trim())return o;if(o.children&&o.children.length>0){for(var s=t.extend(!0,{},o),r=o.children.length-1;r>=0;r--)null==i(n,o.children[r])&&s.children.splice(r,1);return s.children.length>0?s:i(n,s)}var a=e(o.text).toUpperCase(),l=e(n.term).toUpperCase();return a.indexOf(l)>-1?o:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},P.prototype.applyFromElement=function(t,e){var i=t.language,n=this.defaults.language,o=e.prop("lang"),s=e.closest("[lang]").prop("lang"),r=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(s));return t.language=r,t},P.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var i;i=Array.isArray(e)?e:[e];for(var n=[],o=0;o<i.length;o++)if(n.push(i[o]),"string"==typeof i[o]&&i[o].indexOf("-")>0){var s=i[o].split("-")[0];n.push(s)}return n},P.prototype._processTranslations=function(e,i){for(var n=new u,o=0;o<e.length;o++){var s=new u,r=e[o];if("string"==typeof r)try{s=u.loadPath(r)}catch(t){try{r=this.defaults.amdLanguageBase+r,s=u.loadPath(r)}catch(t){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+r+'" could not be automatically loaded. A fallback will be used instead.')}}else s=t.isPlainObject(r)?new u(r):r;n.extend(s)}return n},P.prototype.set=function(e,i){var n={};n[t.camelCase(e)]=i;var o=c._convertData(n);t.extend(!0,this.defaults,o)},new P})),e.define("select2/options",["jquery","./defaults","./utils"],(function(t,e,i){function n(t,i){this.options=t,null!=i&&this.fromElement(i),null!=i&&(this.options=e.applyFromElement(this.options,i)),this.options=e.apply(this.options)}return n.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var o={};function s(t,e){return e.toUpperCase()}for(var r=0;r<e[0].attributes.length;r++){var a=e[0].attributes[r].name,l="data-";if(a.substr(0,l.length)==l){var c=a.substring(l.length),u=i.GetData(e[0],c);o[c.replace(/-([a-z])/g,s)]=u}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(o=t.extend(!0,{},e[0].dataset,o));var d=t.extend(!0,{},i.GetData(e[0]),o);for(var h in d=i._convertData(d))n.indexOf(h)>-1||(t.isPlainObject(this.options[h])?t.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},n.prototype.get=function(t){return this.options[t]},n.prototype.set=function(t,e){this.options[t]=e},n})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,i,n){var o=function(t,n){null!=i.GetData(t[0],"select2")&&i.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),o.__super__.constructor.call(this);var s=t.attr("tabindex")||0;i.StoreData(t[0],"old-tabindex",s),t.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(t,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){d.trigger("selection:update",{data:t})})),t[0].classList.add("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),i.StoreData(t[0],"select2",this),t.data("select2",this)};return i.Extend(o,i.Observable),o.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},o.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){var o=t.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==e){var s=t.attr("style");if("string"!=typeof s)return null;for(var r=s.split(";"),a=0,l=r.length;a<l;a+=1){var c=r[a].replace(/\s/g,"").match(i);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==e?window.getComputedStyle(t[0]).width:e},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(e){t._syncA(),t._syncS(e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},o.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},o.prototype._registerSelectionEvents=function(){var t=this,e=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(i,n){-1===e.indexOf(i)&&t.trigger(i,n)}))},o.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},o.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},o.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){t.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){t.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){t.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){t.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(i){t.trigger("results:all",{data:i,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(i){t.trigger("results:append",{data:i,query:e})}))})),this.on("keypress",(function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.UP&&e.altKey?(t.close(e),e.preventDefault()):i===n.ENTER||i===n.TAB?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._isChangeMutation=function(t){var e=this;if(t.addedNodes&&t.addedNodes.length>0){for(var i=0;i<t.addedNodes.length;i++)if(t.addedNodes[i].selected)return!0}else{if(t.removedNodes&&t.removedNodes.length>0)return!0;if(Array.isArray(t))return t.some((function(t){return e._isChangeMutation(t)}))}return!1},o.prototype._syncSubtree=function(t){var e=this._isChangeMutation(t),i=this;e&&this.dataAdapter.current((function(t){i.trigger("selection:update",{data:t})}))},o.prototype.trigger=function(t,e){var i=o.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in n){var s=n[t],r={prevented:!1,name:t,args:e};if(i.call(this,s,r),r.prevented)return void(e.prevented=!0)}i.call(this,t,e)},o.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},o.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},o.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},o.prototype.focus=function(t){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var e=t[0];Array.isArray(e)&&(e=e.map((function(t){return t.toString()}))),this.$element.val(e).trigger("input").trigger("change")},o.prototype.destroy=function(){i.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",i.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),i.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),i.StoreData(e[0],"element",this.$element),e},o})),e.define("jquery-mousewheel",["jquery"],(function(t){return t})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,i,n,o){if(null==t.fn.select2){var s=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=t.extend(!0,{},e);new i(t(this),n)})),this;if("string"==typeof e){var n,r=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=o.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,r)})),s.indexOf(e)>-1?this:n}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i})),{define:e.define,require:e.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i})?n.apply(e,o):n)||(t.exports=s)}},i={};function n(t){var o=i[t];if(void 0!==o)return o.exports;var s=i[t]={exports:{}};return e[t].call(s.exports,s,s.exports,n),s.exports}n.m=e,t=[],n.O=(e,i,o,s)=>{if(!i){var r=1/0;for(u=0;u<t.length;u++){for(var[i,o,s]=t[u],a=!0,l=0;l<i.length;l++)(!1&s||r>=s)&&Object.keys(n.O).every((t=>n.O[t](i[l])))?i.splice(l--,1):(a=!1,s<r&&(r=s));if(a){t.splice(u--,1);var c=o();void 0!==c&&(e=c)}}return e}s=s||0;for(var u=t.length;u>0&&t[u-1][2]>s;u--)t[u]=t[u-1];t[u]=[i,o,s]},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={829:0,112:0};n.O.j=e=>0===t[e];var e=(e,i)=>{var o,s,[r,a,l]=i,c=0;if(r.some((e=>0!==t[e]))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(l)var u=l(n)}for(e&&e(i);c<r.length;c++)s=r[c],n.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return n.O(u)},i=self.webpackChunk=self.webpackChunk||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})(),n.O(void 0,[112],(()=>n(234)));var o=n.O(void 0,[112],(()=>n(511)));o=n.O(o)})();
//# sourceMappingURL=gasdotto.js.map