/*! Bundled license information:
js-cookie/dist/js.cookie.mjs:
(*! js-cookie v3.0.5 | MIT *)
*/(()=>{var t,s,o,i,j,A,S,V,jt,ue,E,pt,re,ae,ft,mt,ht,dt,ct,at,it,et,Ze,Xe,p,C,R,Q,En,je,Qn,he,L,de,wt,ps,Re,Be,We,v,X,Ge,ot,Tt,Ft,Mt,St,ut,u,oe,kt,ce,gt,Et,xt,Vn,m,W,ee,T,bt,Ct,vt,ie,At,w,lt,h,rt,zt,Dt,Nt,Lt,ne,st,nt,It,te,e,nn,on,U,rn,cn,qe,n,$,K,Ie,fn,g,J,vn,Le,jn,Ne,_n,wn,On,xn,Cn,De,Te,An,x,Mn,Fn,Tn,zn,Dn,b,Ln,D,Pn,Hn,In,Bn,Ot,$n,Wn,Un,Kn,qn,Yn,Gn,Xn,O,Ce,Jn,Oe,we,ns,ss,os,is,rs,cs,ls,I,us,hs,ms,fs,be,gs,vs,bs,js,ge,fe,B,pe,ys,ve,ts,es,d,Ee,Nn,Sn,Ae,Se,Me,bn,Fe,hn,un,dn,ze,Pe,an,sn,tn,Jt,Zt,Qt,_,Yt,$e,G,Z,Ye,_t,xs=Object.defineProperty,ro=(e,t)=>{for(var n in t)xs(e,n,{get:t[n],enumerable:!0})},Ht={};ro(Ht,{afterMain:()=>at,afterRead:()=>ht,afterWrite:()=>Ze,applyStyles:()=>Q,arrow:()=>je,auto:()=>V,basePlacements:()=>S,beforeMain:()=>dt,beforeRead:()=>ft,beforeWrite:()=>it,bottom:()=>o,clippingParents:()=>jt,computeStyles:()=>he,createPopper:()=>ut,createPopperBase:()=>Tt,createPopperLite:()=>Mt,detectOverflow:()=>z,end:()=>A,eventListeners:()=>de,flip:()=>Re,hide:()=>Be,left:()=>t,main:()=>ct,modifierPhases:()=>Xe,offset:()=>We,placements:()=>ae,popper:()=>E,popperGenerator:()=>se,popperOffsets:()=>X,preventOverflow:()=>Ge,read:()=>mt,reference:()=>pt,right:()=>i,start:()=>j,top:()=>s,variationPlacements:()=>re,viewport:()=>ue,write:()=>et}),s="top",o="bottom",i="right",t="left",V="auto",S=[s,o,i,t],j="start",A="end",jt="clippingParents",ue="viewport",E="popper",pt="reference",re=S.reduce(function(e,t){return e.concat([t+"-"+j,t+"-"+A])},[]),ae=[].concat(S,[V]).reduce(function(e,t){return e.concat([t,t+"-"+j,t+"-"+A])},[]),ft="beforeRead",mt="read",ht="afterRead",dt="beforeMain",ct="main",at="afterMain",it="beforeWrite",et="write",Ze="afterWrite",Xe=[ft,mt,ht,dt,ct,at,it,et,Ze];function l(e){return e?(e.nodeName||"").toLowerCase():null}function a(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function k(e){var t=a(e).Element;return e instanceof t||e instanceof Element}function r(e){var t=a(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function me(e){if(typeof ShadowRoot=="undefined")return!1;var t=a(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function to(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var o=t.styles[e]||{},s=t.attributes[e]||{},n=t.elements[e];if(!r(n)||!l(n))return;Object.assign(n.style,o),Object.keys(s).forEach(function(e){var t=s[e];t===!1?n.removeAttribute(e):n.setAttribute(e,t===!0?"":t)})})}function eo(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var s=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=i.reduce(function(e,t){return e[t]="",e},{});if(!r(s)||!l(s))return;Object.assign(s.style,a),Object.keys(o).forEach(function(e){s.removeAttribute(e)})})}}Q={name:"applyStyles",enabled:!0,phase:"write",fn:to,effect:eo,requires:["computeStyles"]};function c(e){return e.split("-")[0]}p=Math.max,R=Math.min,C=Math.round;function Ke(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $t(){return!/^((?!chrome|android).)*safari/i.test(Ke())}function F(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1),s=e.getBoundingClientRect(),o=1,i=1,t&&r(e)&&(o=e.offsetWidth>0?C(s.width)/e.offsetWidth||1:1,i=e.offsetHeight>0?C(s.height)/e.offsetHeight||1:1);var s,o,i,f=k(e)?a(e):window,c=f.visualViewport,u=!$t()&&n,l=(s.left+(u&&c?c.offsetLeft:0))/o,d=(s.top+(u&&c?c.offsetTop:0))/i,h=s.width/o,m=s.height/i;return{width:h,height:m,top:d,right:l+h,bottom:d+m,left:l,x:l,y:d}}function Ue(e){var t=F(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function Wt(e,t){var n,s=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(s&&me(s)){n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function f(e){return a(e).getComputedStyle(e)}function Qs(e){return["table","td","th"].indexOf(l(e))>=0}function y(e){return((k(e)?e.ownerDocument:e.document)||window.document).documentElement}function q(e){return l(e)==="html"?e:e.assignedSlot||e.parentNode||(me(e)?e.host:null)||y(e)}function Gt(e){return!r(e)||f(e).position==="fixed"?null:e.offsetParent}function Ys(e){var t,n,o,s=/firefox/i.test(Ke()),i=/Trident/i.test(Ke());if(i&&r(e)&&(o=f(e),o.position==="fixed"))return null;for(t=q(e),me(t)&&(t=t.host);r(t)&&["html","body"].indexOf(l(t))<0;){if(n=f(t),n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||s&&n.willChange==="filter"||s&&n.filter&&n.filter!=="none")return t;t=t.parentNode}return null}function H(e){for(var n=a(e),t=Gt(e);t&&Qs(t)&&f(t).position==="static";)t=Gt(t);return t&&(l(t)==="html"||l(t)==="body"&&f(t).position==="static")?n:t||Ys(e)||n}function He(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function N(e,t,n){return p(e,R(t,n))}function no(e,t,n){var s=N(e,t,n);return s>n?n:s}function ln(){return{top:0,right:0,bottom:0,left:0}}function mn(e){return Object.assign({},ln(),e)}function yn(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}En=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mn(typeof t!="number"?t:yn(t,S))};function Ts(e){var r,l,u,h,p,g,v,b,j,y,_,O,x,C,E,n=e.state,S=e.name,A=e.options,m=n.elements.arrow,f=n.modifiersData.popperOffsets,w=c(n.placement),a=He(w),k=[t,i].indexOf(w)>=0,d=k?"height":"width";if(!m||!f)return;g=En(A.padding,n),v=Ue(m),b=a==="y"?s:t,j=a==="y"?o:i,y=n.rects.reference[d]+n.rects.reference[a]-f[a]-n.rects.popper[d],_=f[a]-n.rects.reference[a],l=H(m),p=l?a==="y"?l.clientHeight||0:l.clientWidth||0:0,O=y/2-_/2,x=g[b],C=p-v[d]-g[j],h=p/2-v[d]/2+O,u=N(x,h,C),E=a,n.modifiersData[S]=(r={},r[E]=u,r.centerOffset=u-h,r)}function Ss(e){var n=e.state,o=e.options,s=o.element,t=s===void 0?"[data-popper-arrow]":s;if(t==null)return;if(typeof t=="string"&&(t=n.elements.popper.querySelector(t),!t))return;if(!Wt(n.elements.popper,t))return;n.elements.arrow=t}je={name:"arrow",enabled:!0,phase:"main",fn:Ts,effect:Ss,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function M(e){return e.split("-")[1]}Qn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cs(e,t){var s=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:C(s*n)/n||0,y:C(o*n)/n||0}}function _s(e){var c,u,h,g,v,j,_,z,D,p=e.popper,L=e.popperRect,d=e.placement,S=e.variation,m=e.offsets,C=e.position,b=e.gpuAcceleration,M=e.adaptive,w=e.roundOffsets,F=e.isFixed,R=m.x,n=R===void 0?0:R,N=m.y,r=N===void 0?0:N,E=typeof w=="function"?w({x:n,y:r}):{x:n,y:r},n=E.x,r=E.y,T=m.hasOwnProperty("x"),k=m.hasOwnProperty("y"),O=t,x=s,l=window;return M&&(c=H(p),v="clientHeight",_="clientWidth",c===a(p)&&(c=y(p),f(c).position!=="static"&&C==="absolute"&&(v="scrollHeight",_="scrollWidth")),c=c,(d===s||(d===t||d===i)&&S===A)&&(x=o,z=F&&c===l&&l.visualViewport?l.visualViewport.height:c[v],r-=z-L.height,r*=b?1:-1),(d===t||(d===s||d===o)&&S===A)&&(O=i,D=F&&c===l&&l.visualViewport?l.visualViewport.width:c[_],n-=D-L.width,n*=b?1:-1)),g=Object.assign({position:C},M&&Qn),j=w===!0?Cs({x:n,y:r},a(p)):{x:n,y:r},n=j.x,r=j.y,b?Object.assign({},g,(h={},h[x]=k?"0":"",h[O]=T?"0":"",h.transform=(l.devicePixelRatio||1)<=1?"translate("+n+"px, "+r+"px)":"translate3d("+n+"px, "+r+"px, 0)",h)):Object.assign({},g,(u={},u[x]=k?r+"px":"",u[O]=T?n+"px":"",u.transform="",u))}function Hs(e){var t=e.state,n=e.options,s=n.gpuAcceleration,l=s===void 0||s,o=n.adaptive,d=o===void 0||o,i=n.roundOffsets,a=i===void 0||i,r={placement:c(t.placement),variation:M(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_s(Object.assign({},r,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:d,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_s(Object.assign({},r,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}he={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hs,data:{}},L={passive:!0};function Bs(e){var n=e.state,t=e.instance,s=e.options,o=s.scroll,i=o===void 0||o,r=s.resize,c=r===void 0||r,l=a(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return i&&d.forEach(function(e){e.addEventListener("scroll",t.update,L)}),c&&l.addEventListener("resize",t.update,L),function(){i&&d.forEach(function(e){e.removeEventListener("scroll",t.update,L)}),c&&l.removeEventListener("resize",t.update,L)}}de={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bs,data:{}},wt={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,function(e){return wt[e]})}ps={start:"end",end:"start"};function ds(e){return e.replace(/start|end/g,function(e){return ps[e]})}function ye(e){var t=a(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function _e(e){return F(y(e)).left+ye(e).scrollLeft}function Es(e,t){var s,d=a(e),o=y(e),n=d.visualViewport,i=o.clientWidth,r=o.clientHeight,c=0,l=0;return n&&(i=n.width,r=n.height,s=$t(),(s||!s&&t==="fixed")&&(c=n.offsetLeft,l=n.offsetTop)),{width:i,height:r,x:c+_e(e),y:l}}function ks(e){var s,n=y(e),o=ye(e),t=(s=e.ownerDocument)==null?void 0:s.body,i=p(n.scrollWidth,n.clientWidth,t?t.scrollWidth:0,t?t.clientWidth:0),r=p(n.scrollHeight,n.clientHeight,t?t.scrollHeight:0,t?t.clientHeight:0),a=-o.scrollLeft+_e(e),c=-o.scrollTop;return f(t||n).direction==="rtl"&&(a+=p(n.clientWidth,t?t.clientWidth:0)-i),{width:i,height:r,x:a,y:c}}function xe(e){var t=f(e),n=t.overflow,s=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+s)}function Zn(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:r(e)&&xe(e)?e:Zn(q(e))}function P(e,t){t===void 0&&(t=[]);var s,n=Zn(e),o=n===((s=e.ownerDocument)==null?void 0:s.body),i=a(n),r=o?[i].concat(i.visualViewport||[],xe(n)?n:[]):n,c=t.concat(r);return o?c:c.concat(P(q(r)))}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Is(e,t){var n=F(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Rn(e,t,n){return t===ue?ke(Es(e,n)):k(t)?Is(t,n):ke(ks(y(e)))}function Ms(e){var n=P(q(e)),s=["absolute","fixed"].indexOf(f(e).position)>=0,t=s&&r(e)?H(e):e;return k(t)?n.filter(function(e){return k(e)&&Wt(e,t)&&l(e)!=="body"}):[]}function Fs(e,t,n,s){var a=t==="clippingParents"?Ms(e):[].concat(t),i=[].concat(a,[n]),r=i[0],o=i.reduce(function(t,n){var o=Rn(e,n,s);return t.top=p(o.top,t.top),t.right=R(o.right,t.right),t.bottom=R(o.bottom,t.bottom),t.left=p(o.left,t.left),t},Rn(e,r,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function kn(e){var a,r,d,n=e.reference,l=e.element,u=e.placement,h=u?c(u):null,p=u?M(u):null,m=n.x+n.width/2-l.width/2,f=n.y+n.height/2-l.height/2;switch(h){case s:a={x:m,y:n.y-l.height};break;case o:a={x:m,y:n.y+n.height};break;case i:a={x:n.x+n.width,y:f};break;case t:a={x:n.x-l.width,y:f};break;default:a={x:n.x,y:n.y}}if(r=h?He(h):null,r!=null)switch(d=r==="y"?"height":"width",p){case j:a[r]=a[r]-(n[d]/2-l[d]/2);break;case A:a[r]=a[r]+(n[d]/2-l[d]/2);break;default:}return a}function z(e,t){t===void 0&&(t={});var w,n=t,v=n.placement,j=v===void 0?e.placement:v,f=n.strategy,L=f===void 0?e.strategy:f,p=n.boundary,A=p===void 0?jt:p,x=n.rootBoundary,N=x===void 0?ue:x,C=n.elementContext,c=C===void 0?E:C,m=n.altBoundary,D=m!==void 0&&m,b=n.padding,d=b===void 0?0:b,a=mn(typeof d!="number"?d:yn(d,S)),z=c===E?pt:E,O=e.rects.popper,h=e.elements[D?z:c],r=Fs(k(h)?h:h.contextElement||y(e.elements.popper),A,N,L),_=F(e.elements.reference),M=kn({reference:_,element:O,strategy:"absolute",placement:j}),T=ke(Object.assign({},O,M)),l=c===E?T:_,u={top:r.top-l.top+a.top,bottom:l.bottom-r.bottom+a.bottom,left:r.left-l.left+a.left,right:l.right-r.right+a.right},g=e.modifiersData.offset;return c===E&&g&&(w=g[j],Object.keys(u).forEach(function(e){var t=[i,o].indexOf(e)>=0?1:-1,n=[s,o].indexOf(e)>=0?"y":"x";u[e]+=w[n]*t})),u}function zs(e,t){t===void 0&&(t={});var s,n=t,l=n.placement,d=n.boundary,u=n.rootBoundary,h=n.padding,m=n.flipVariations,i=n.allowedAutoPlacements,f=i===void 0?ae:i,a=M(l),r=a?m?re:re.filter(function(e){return M(e)===a}):S,o=r.filter(function(e){return f.indexOf(e)>=0});return o.length===0&&(o=r),s=o.reduce(function(t,n){return t[n]=z(e,{placement:n,boundary:d,rootBoundary:u,padding:h})[c(n)],t},{}),Object.keys(s).sort(function(e,t){return s[e]-s[t]})}function Ds(e){if(c(e)===V)return[];var t=le(e);return[ds(e),t,ds(t)]}function Ns(e){var n=e.state,a=e.options,E=e.name;if(n.modifiersData[E]._skip)return;for(var r,l,d,h,m,g,v,_,w,C,k,A,N,T=a.mainAxis,B=T===void 0||T,L=a.altAxis,H=L===void 0||L,P=a.fallbackPlacements,R=a.padding,O=a.boundary,x=a.rootBoundary,$=a.altBoundary,D=a.flipVariations,y=D===void 0||D,W=a.allowedAutoPlacements,u=n.options.placement,q=c(u),I=q===u,Y=P||(I||!y?[le(u)]:Ds(u)),p=[u].concat(Y).reduce(function(e,t){return e.concat(c(t)===V?zs(n,{placement:t,boundary:O,rootBoundary:x,padding:R,flipVariations:y,allowedAutoPlacements:W}):t)},[]),K=n.rects.reference,U=n.rects.popper,S=new Map,F=!0,f=p[0],b=0;b
=0,w=_?"width":"height",m=z(n,{placement:r,boundary:O,rootBoundary:x,altBoundary:$,padding:R}),d=_?g?i:t:g?o:s,K[w]>U[w]&&(d=le(d)),N=le(d),l=[],B&&l.push(m[v]<=0),H&&l.push(m[d]<=0,m[N]<=0),l.every(function(e){return e})){f=r,F=!1;break}S.set(r,l)}if(F)for(A=y?3:1,k=function(t){var n=p.find(function(e){var n=S.get(e);if(n)return n.slice(0,t).every(function(e){return e})});if(n)return f=n,"break"},h=A;h>0;h--)if(C=k(h),C==="break")break;n.placement!==f&&(n.modifiersData[E]._skip=!0,n.placement=f,n.reset=!0)}Re={name:"flip",enabled:!0,phase:"main",fn:Ns,requiresIfExists:["offset"],data:{_skip:!1}};function gn(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function pn(e){return[s,i,o,t].some(function(t){return e[t]>=0})}function Ls(e){var t=e.state,a=e.name,r=t.rects.reference,c=t.rects.popper,l=t.modifiersData.preventOverflow,d=z(t,{elementContext:"reference"}),u=z(t,{altBoundary:!0}),n=gn(d,r),s=gn(u,c,l),o=pn(n),i=pn(s);t.modifiersData[a]={referenceClippingOffsets:n,popperEscapeOffsets:s,isReferenceHidden:o,hasPopperEscaped:i},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":o,"data-popper-escaped":i})}Be={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ls};function Rs(e,n,o){var l=c(e),u=[t,s].indexOf(l)>=0?-1:1,d=typeof o=="function"?o(Object.assign({},n,{placement:e})):o,a=d[0],r=d[1],a=a||0,r=(r||0)*u;return[t,i].indexOf(l)>=0?{x:r,y:a}:{x:a,y:r}}function Ps(e){var t=e.state,i=e.options,a=e.name,n=i.offset,r=n===void 0?[0,0]:n,s=ae.reduce(function(e,n){return e[n]=Rs(n,t.rects,r),e},{}),o=s[t.placement],c=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[a]=s}We={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ps};function Vs(e){var t=e.state,n=e.name;t.modifiersData[n]=kn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}X={name:"popperOffsets",enabled:!0,phase:"read",fn:Vs,data:{}};function As(e){return e==="x"?"y":"x"}function ws(e){var fe,r,m,V,$,K,q,Y,te,ee,Q,ue,b,A,G,X,se,oe,E,ae,U,ce,le,Z,me,l,g,x,S,T,D,L,P,B,W,J,n=e.state,d=e.options,be=e.name,pe=d.mainAxis,ge=pe===void 0||pe,ie=d.altAxis,we=ie!==void 0&&ie,_e=d.boundary,ye=d.rootBoundary,ve=d.altBoundary,je=d.padding,de=d.tether,u=de===void 0||de,re=d.tetherOffset,F=re===void 0?0:re,C=z(n,{boundary:_e,rootBoundary:ye,padding:je,altBoundary:ve}),ne=c(n.placement),k=M(n.placement),he=!k,a=He(ne),_=As(a),y=n.modifiersData.popperOffsets,h=n.rects.reference,v=n.rects.popper,O=typeof F=="function"?F(Object.assign({},n.rects,{placement:n.placement})):F,f=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),w=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,I={x:0,y:0};if(!y)return;ge&&(V=a==="y"?s:t,$=a==="y"?o:i,r=a==="y"?"height":"width",m=y[a],K=m+C[V],q=m-C[$],Y=u?-v[r]/2:0,te=k===j?h[r]:v[r],ee=k===j?-v[r]:-h[r],Q=n.elements.arrow,ue=u&&Q?Ue(Q):{width:0,height:0},A=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:ln(),X=A[V],G=A[$],b=N(0,h[r],ue[r]),se=he?h[r]/2-Y-b-X-f.mainAxis:te-b-X-f.mainAxis,oe=he?-h[r]/2+Y+b+G+f.mainAxis:ee+b+G+f.mainAxis,E=n.elements.arrow&&H(n.elements.arrow),ae=E?a==="y"?E.clientTop||0:E.clientLeft||0:0,U=(fe=w?.[a])!=null?fe:0,ce=m+se-U-ae,le=m+oe-U,W=N(u?R(K,ce):K,m,u?p(q,le):q),y[a]=W,I[a]=W-m),we&&(Z=a==="x"?s:t,me=a==="x"?o:i,l=y[_],g=_==="y"?"height":"width",B=l+C[Z],P=l-C[me],x=[s,t].indexOf(ne)!==-1,L=(J=w?.[_])!=null?J:0,D=x?B:l-h[g]-v[g]-L+f.altAxis,T=x?l+h[g]+v[g]-L-f.altAxis:P,S=u&&x?no(D,l,T):N(u?D:B,l,u?T:P),y[_]=S,I[_]=S-l),n.modifiersData[be]=I}Ge={name:"preventOverflow",enabled:!0,phase:"main",fn:ws,requiresIfExists:["offset"]};function $s(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ws(e){return e===a(e)||!r(e)?ye(e):$s(e)}function Us(e){var t=e.getBoundingClientRect(),n=C(t.width)/e.offsetWidth||1,s=C(t.height)/e.offsetHeight||1;return n!==1||s!==1}function Ks(e,t,n){n===void 0&&(n=!1);var c=r(t),d=r(t)&&Us(t),i=y(t),o=F(e,d,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(c||!c&&!n)&&((l(t)!=="body"||xe(i))&&(a=Ws(t)),r(t)?(s=F(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=_e(i))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function qs(e){var n=new Map,t=new Set,s=[];e.forEach(function(e){n.set(e.name,e)});function o(e){t.add(e.name);var i=[].concat(e.requires||[],e.requiresIfExists||[]);i.forEach(function(e){if(!t.has(e)){var s=n.get(e);s&&o(s)}}),s.push(e)}return e.forEach(function(e){t.has(e.name)||o(e)}),s}function Xs(e){var t=qs(e);return Xe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function oo(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function io(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}ot={placement:"bottom",modifiers:[],strategy:"absolute"};function Rt(){for(var t=arguments.length,n=new Array(t),e=0;e(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Et=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),xt=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const s=Number.parseFloat(t),o=Number.parseFloat(n);return!s&&!o?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*kt)},Vn=e=>{e.dispatchEvent(new Event(ce))},m=e=>!!e&&typeof e=="object"&&(typeof e.jquery!="undefined"&&(e=e[0]),typeof e.nodeType!="undefined"),W=e=>m(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(gt(e)):null,ee=e=>{if(!m(e)||e.getClientRects().length===0)return!1;const n=getComputedStyle(e).getPropertyValue("visibility")==="visible",t=e.closest("details:not([open])");if(!t)return n;if(t!==e){const n=e.closest("summary");if(n&&n.parentNode!==t)return!1;if(n===null)return!1}return n},T=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(typeof e.disabled!="undefined"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false"),bt=()=>{},Ct=e=>{e.offsetHeight},vt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ie=[],At=e=>{document.readyState==="loading"?(ie.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of ie)e()}),ie.push(e)):e()},w=()=>document.documentElement.dir==="rtl",lt=e=>{At(()=>{const t=vt();if(t){const n=e.NAME,s=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=s,e.jQueryInterface)}})},h=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,rt=(e,t,n=!0)=>{if(!n){h(e);return}const i=5,a=xt(t)+i;let s=!1;const o=({target:n})=>{if(n!==t)return;s=!0,t.removeEventListener(ce,o),h(e)};t.addEventListener(ce,o),setTimeout(()=>{s||Vn(t)},a)},zt=(e,t,n,s)=>{const i=e.length;let o=e.indexOf(t);return o===-1?!n&&s?e[i-1]:e[0]:(o+=n?1:-1,s&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))])},Dt=/[^.]*(?=\..*)\.|.*/,Nt=/\..*/,Lt=/::\d+$/,ne={},st=1,nt={mouseenter:"mouseover",mouseleave:"mouseout"},It=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 Bt(e,t){return t&&`${t}::${st++}`||e.uidEvent||st++}function Vt(e){const t=Bt(e);return e.uidEvent=t,ne[t]=ne[t]||{},ne[t]}function Js(e,t){return function n(s){return Je(s,{delegateTarget:e}),n.oneOff&&te.off(e,s.type,t),t.apply(e,[s])}}function Zs(e,t,n){return function s(o){const i=e.querySelectorAll(t);for(let{target:a}=o;a&&a!==this;a=a.parentNode)for(const r of i){if(r!==a)continue;return Je(o,{delegateTarget:a}),s.oneOff&&te.off(e,o.type,t,n),n.apply(a,[o])}}}function Ut(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function Kt(e,t,n){const o=typeof t=="string",i=o?n:t||n;let s=Xt(e);return It.has(s)||(s=e),[o,i,s]}function qt(e,t,n,s,o){if(typeof t!="string"||!e)return;let[r,i,c]=Kt(t,n,s);if(t in nt){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};i=e(i)}const d=Vt(e),u=d[c]||(d[c]={}),l=Ut(u,i,r?n:null);if(l){l.oneOff=l.oneOff&&o;return}const h=Bt(i,t.replace(Dt,"")),a=r?Zs(e,n,i):Js(e,i);a.delegationSelector=r?n:null,a.callable=i,a.oneOff=o,a.uidEvent=h,u[h]=a,e.addEventListener(c,a,r)}function tt(e,t,n,s,o){const i=Ut(t[n],s,o);if(!i)return;e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent]}function Gs(e,t,n,s){const o=t[n]||{};for(const[a,i]of Object.entries(o))a.includes(s)&&tt(e,t,n,i.callable,i.delegationSelector)}function Xt(e){return e=e.replace(Nt,""),nt[e]||e}te={on(e,t,n,s){qt(e,t,n,s,!1)},one(e,t,n,s){qt(e,t,n,s,!0)},off(e,t,n,s){if(typeof t!="string"||!e)return;const[c,a,i]=Kt(t,n,s),l=i!==t,o=Vt(e),r=o[i]||{},d=t.startsWith(".");if(typeof a!="undefined"){if(!Object.keys(r).length)return;tt(e,o,i,a,c?n:null);return}if(d)for(const n of Object.keys(o))Gs(e,o,n,t.slice(1));for(const[s,n]of Object.entries(r)){const a=s.replace(Lt,"");(!l||t.includes(a))&&tt(e,o,i,n.callable,n.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const i=vt(),l=Xt(t),d=t!==l;let s=null,a=!0,r=!0,c=!1;d&&i&&(s=i.Event(t,n),i(e).trigger(s),a=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const o=Je(new Event(t,{bubbles:a,cancelable:!0}),n);return c&&o.preventDefault(),r&&e.dispatchEvent(o),o.defaultPrevented&&s&&s.preventDefault(),o}};function Je(e,t={}){for(const[n,s]of Object.entries(t))try{e[n]=s}catch{Object.defineProperty(e,n,{configurable:!0,get(){return s}})}return e}e=te;function en(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function Qe(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}nn={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${Qe(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Qe(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const o of n){let s=o.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),t[s]=en(e.dataset[o])}return t},getDataAttribute(e,t){return en(e.getAttribute(`data-bs-${Qe(t)}`))}},v=nn,on=class{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=m(t)?v.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...m(t)?v.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,s]of Object.entries(t)){const o=e[n],i=m(o)?"element":Et(o);if(!new RegExp(s).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${s}".`)}}},U=on,rn="5.3.3",cn=class extends U{constructor(e,t){if(super(),e=W(e),!e)return;this._element=e,this._config=this._getConfig(t),oe.set(this._element,this.constructor.DATA_KEY,this)}dispose(){oe.remove(this._element,this.constructor.DATA_KEY),e.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){rt(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return oe.get(W(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return rn}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},qe=cn,K=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return t?t.split(",").map(e=>gt(e)).join(","):null},$={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){const s=[];let n=e.parentNode.closest(t);for(;n;)s.push(n),n=n.parentNode.closest(t);return s},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!T(e)&&ee(e))},getSelectorFromElement(e){const t=K(e);return t?$.findOne(t)?t:null:null},getElementFromSelector(e){const t=K(e);return t?$.findOne(t):null},getMultipleElementsFromSelector(e){const t=K(e);return t?$.find(t):[]}},n=$,Ie="dropdown",fn="bs.dropdown",g=`.${fn}`,J=".data-api",vn="Escape",Le="Tab",jn="ArrowUp",Ne="ArrowDown",_n=2,wn=`hide${g}`,On=`hidden${g}`,xn=`show${g}`,Cn=`shown${g}`,De=`click${g}${J}`,Te=`keydown${g}${J}`,An=`keyup${g}${J}`,x="show",Mn="dropup",Fn="dropend",Tn="dropstart",zn="dropup-center",Dn="dropdown-center",b='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ln=`${b}.${x}`,D=".dropdown-menu",Pn=".navbar",Hn=".navbar-nav",In=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Bn=w()?"top-end":"top-start",Ot=w()?"top-start":"top-end",$n=w()?"bottom-end":"bottom-start",Wn=w()?"bottom-start":"bottom-end",Un=w()?"left-start":"right-start",Kn=w()?"right-start":"left-start",qn="top",Yn="bottom",Gn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Xn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},O=class _Dropdown extends qe{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=n.next(this._element,D)[0]||n.prev(this._element,D)[0]||n.findOne(D,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Gn}static get DefaultType(){return Xn}static get NAME(){return Ie}toggle(){return this._isShown()?this.hide():this.show()}show(){if(T(this._element)||this._isShown())return;const t={relatedTarget:this._element},n=e.trigger(this._element,xn,t);if(n.defaultPrevented)return;if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Hn))for(const t of[].concat(...document.body.children))e.on(t,"mouseover",bt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(x),this._element.classList.add(x),e.trigger(this._element,Cn,t)}hide(){if(T(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){const n=e.trigger(this._element,wn,t);if(n.defaultPrevented)return;if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))e.off(t,"mouseover",bt);this._popper&&this._popper.destroy(),this._menu.classList.remove(x),this._element.classList.remove(x),this._element.setAttribute("aria-expanded","false"),v.removeDataAttribute(this._menu,"popper"),e.trigger(this._element,On,t)}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!m(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Ie.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Ht=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:m(this._config.reference)?e=W(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=ut(e,this._menu,t)}_isShown(){return this._menu.classList.contains(x)}_getPlacement(){const e=this._parent;if(e.classList.contains(Fn))return Un;if(e.classList.contains(Tn))return Kn;if(e.classList.contains(zn))return qn;if(e.classList.contains(Dn))return Yn;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(Mn)?t?Ot:Bn:t?Wn:$n}_detectNavbar(){return this._element.closest(Pn)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(e=>Number.parseInt(e,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(v.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...h(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const s=n.find(In,this._menu).filter(e=>ee(e));if(!s.length)return;zt(s,t,e===Ne,!s.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=_Dropdown.getOrCreateInstance(this,e);if(typeof e!="string")return;if(typeof t[e]=="undefined")throw new TypeError(`No method named "${e}"`);t[e]()})}static clearMenus(e){if(e.button===_n||e.type==="keyup"&&e.key!==Le)return;const t=n.find(Ln);for(const a of t){const n=_Dropdown.getInstance(a);if(!n||n._config.autoClose===!1)continue;const s=e.composedPath(),o=s.includes(n._menu);if(s.includes(n._element)||n._config.autoClose==="inside"&&!o||n._config.autoClose==="outside"&&o)continue;if(n._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Le||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:n._element};e.type==="click"&&(i.clickEvent=e),n._completeHide(i)}}static dataApiKeydownHandler(e){const a=/input|textarea/i.test(e.target.tagName),s=e.key===vn,o=[jn,Ne].includes(e.key);if(!o&&!s)return;if(a&&!s)return;e.preventDefault();const i=this.matches(b)?this:n.prev(this,b)[0]||n.next(this,b)[0]||n.findOne(b,e.delegateTarget.parentNode),t=_Dropdown.getOrCreateInstance(i);if(o){e.stopPropagation(),t.show(),t._selectMenuItem(e);return}t._isShown()&&(e.stopPropagation(),t.hide(),i.focus())}},e.on(document,Te,b,O.dataApiKeydownHandler),e.on(document,Te,D,O.dataApiKeydownHandler),e.on(document,De,O.clearMenus),e.on(document,An,O.clearMenus),e.on(document,De,b,function(e){e.preventDefault(),O.getOrCreateInstance(this).toggle()}),lt(O),Ce="backdrop",Jn="fade",Oe="show",we=`mousedown.bs.${Ce}`,ns={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ss={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},os=class extends U{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return ns}static get DefaultType(){return ss}static get NAME(){return Ce}show(e){if(!this._config.isVisible){h(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Ct(t),t.classList.add(Oe),this._emulateAnimation(()=>{h(e)})}hide(e){if(!this._config.isVisible){h(e);return}this._getElement().classList.remove(Oe),this._emulateAnimation(()=>{this.dispose(),h(e)})}dispose(){if(!this._isAppended)return;e.off(this._element,we),this._element.remove(),this._isAppended=!1}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(Jn),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=W(e.rootElement),e}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),e.on(t,we,()=>{h(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){rt(e,this._getElement(),this._config.isAnimated)}},is=os,rs=(t,s="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;e.on(document,i,`[data-bs-dismiss="${o}"]`,function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),T(this))return;const i=n.getElementFromSelector(this)||this.closest(`.${o}`),a=t.getOrCreateInstance(i);a[s]()})},cs="focustrap",ls="bs.focustrap",I=`.${ls}`,us=`focusin${I}`,hs=`keydown.tab${I}`,ms="Tab",fs="forward",be="backward",gs={autofocus:!0,trapElement:null},vs={autofocus:"boolean",trapElement:"element"},bs=class extends U{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return gs}static get DefaultType(){return vs}static get NAME(){return cs}activate(){if(this._isActive)return;this._config.autofocus&&this._config.trapElement.focus(),e.off(document,I),e.on(document,us,e=>this._handleFocusin(e)),e.on(document,hs,e=>this._handleKeydown(e)),this._isActive=!0}deactivate(){if(!this._isActive)return;this._isActive=!1,e.off(document,I)}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const s=n.focusableChildren(t);s.length===0?t.focus():this._lastTabNavDirection===be?s[s.length-1].focus():s[0].focus()}_handleKeydown(e){if(e.key!==ms)return;this._lastTabNavDirection=e.shiftKey?be:fs}},js=bs,ge=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",fe=".sticky-top",B="padding-right",pe="margin-right",ys=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,B,t=>t+e),this._setElementAttributes(ge,B,t=>t+e),this._setElementAttributes(fe,pe,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,B),this._resetElementAttributes(ge,B),this._resetElementAttributes(fe,pe)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const s=this.getWidth(),o=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const o=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(o))}px`)};this._applyManipulationCallback(e,o)}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&v.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){const n=e=>{const n=v.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}v.removeDataAttribute(e,t),e.style.setProperty(t,n)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,t){if(m(e)){t(e);return}for(const s of n.find(e,this._element))t(s)}},ve=ys,ts="offcanvas",es="bs.offcanvas",d=`.${es}`,Ee=".data-api",Nn=`load${d}${Ee}`,Sn="Escape",Ae="show",Se="showing",Me="hiding",bn="offcanvas-backdrop",Fe=".offcanvas.show",hn=`show${d}`,un=`shown${d}`,dn=`hide${d}`,ze=`hidePrevented${d}`,Pe=`hidden${d}`,an=`resize${d}`,sn=`click${d}${Ee}`,tn=`keydown.dismiss${d}`,Jt='[data-bs-toggle="offcanvas"]',Zt={backdrop:!0,keyboard:!0,scroll:!1},Qt={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},_=class _Offcanvas extends qe{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Zt}static get DefaultType(){return Qt}static get NAME(){return ts}toggle(e){return this._isShown?this.hide():this.show(e)}show(t){if(this._isShown)return;const n=e.trigger(this._element,hn,{relatedTarget:t});if(n.defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ve).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Se);const s=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ae),this._element.classList.remove(Se),e.trigger(this._element,un,{relatedTarget:t})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown)return;const t=e.trigger(this._element,dn);if(t.defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Me),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ae,Me),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ve).reset(),e.trigger(this._element,Pe)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const n=()=>{if(this._config.backdrop==="static"){e.trigger(this._element,ze);return}this.hide()},t=Boolean(this._config.backdrop);return new is({className:bn,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?n:null})}_initializeFocusTrap(){return new js({trapElement:this._element})}_addEventListeners(){e.on(this._element,tn,t=>{if(t.key!==Sn)return;if(this._config.keyboard){this.hide();return}e.trigger(this._element,ze)})}static jQueryInterface(e){return this.each(function(){const t=_Offcanvas.getOrCreateInstance(this,e);if(typeof e!="string")return;if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)})}},e.on(document,sn,Jt,function(t){const s=n.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),T(this))return;e.one(s,Pe,()=>{ee(this)&&this.focus()});const o=n.findOne(Fe);o&&o!==s&&_.getInstance(o).hide();const i=_.getOrCreateInstance(s);i.toggle(this)}),e.on(window,Nn,()=>{for(const e of n.find(Fe))_.getOrCreateInstance(e).show()}),e.on(window,an,()=>{for(const e of n.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&_.getOrCreateInstance(e).hide()}),rs(_),lt(_);function Y(e){for(var n,s,t=1;t{s(e.json())})})}function yt(e){const t=document.getElementById(e);typeof t!="undefined"&&t!==null&&t.remove()}function Pt(e){""!==e.trim()&&(e=e.replace(/(<([^>]+)>)/gi,"").replace(/[`~!@#$%^&*()_|=?;:'",.<>{}[\]\\/]/gi,""),e=e.split(" ").join("+"),window.location.href="/search/?q="+e)}function ao(e,t,n){e.addEventListener("keypress",t=>{t.key==="Enter"&&(t.preventDefault(),Pt(e.value))}),e.addEventListener("keyup",()=>{clearTimeout(Ye),Ye=setTimeout(function(){const s=e.value;s.length>2?so(s,5,0).then(e=>{if(e.data.length>0){Z.classList.remove("d-none"),yt(t);const o=document.getElementById(n),s=document.createElement("div"),i=item.d==="m"?"movie":"season";s.className="list-group text-bg-light search-res",s.id=t;for(let n=0;n{ao(G,"search-result-top","search-bar")}),Z.addEventListener("click",()=>{G.value="",Z.classList.add("d-none"),yt("search-result-top")}),_t=document.getElementById("search-index"),_t.addEventListener("keypress",e=>{e.key==="Enter"&&(e.preventDefault(),Pt(_t.value))})})()