vendor: 17,648 bytes, line 1
1var os="top",Cs="bottom",As="right",as="left",jc="auto",bo=[os,Cs,As,as],Ji="start",eo="end",W_="clippingParents",zf="viewport",$r="popper",Z_="reference",qu=bo.reduce(function(t,e){return t.concat([e+"-"+Ji,e+"-"+eo])},[]),Wf=[].concat(bo,[jc]).reduce(function(t,e){return t.concat([e,e+"-"+Ji,e+"-"+eo])},[]),q_="beforeRead",K_="read",G_="afterRead",Y_="beforeMain",J_="main",X_="afterMain",Q_="beforeWrite",eg="write",tg="afterWrite",sg=[q_,K_,G_,Y_,J_,X_,Q_,eg,tg];function vn(t){return t?(t.nodeName||"").toLowerCase():null}function Ps(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Xi(t){var e=Ps(t).Element;return t instanceof e||t instanceof Element}function Fs(t){var e=Ps(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Zf(t){if(typeof ShadowRoot>"u")return!1;var e=Ps(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function uw(t){var e=t.state;Object.keys(e.elements).forEach(function(s){var n=e.styles[s]||{},r=e.attributes[s]||{},o=e.elements[s];!Fs(o)||!vn(o)||(Object.assign(o.style,n),Object.keys(r).forEach(function(c){var u=r[c];u===!1?o.removeAttribute(c):o.setAttribute(c,u===!0?"":u)}))})}function fw(t){var e=t.state,s={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,s.popper),e.styles=s,e.elements.arrow&&Object.assign(e.elements.arrow.style,s.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],o=e.attributes[n]||{},c=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:s[n]),u=c.reduce(function(f,p){return f[p]="",f},{});!Fs(r)||!vn(r)||(Object.assign(r.style,u),Object.keys(o).forEach(function(f){r.removeAttribute(f)}))})}}const qf={name:"applyStyles",enabled:!0,phase:"write",fn:uw,effect:fw,requires:["computeStyles"]};function pn(t){return t.split("-")[0]}var Hi=Math.max,nc=Math.min,to=Math.round;function Ku(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ng(){return!/^((?!chrome|android).)*safari/i.test(Ku())}function so(t,e,s){e===void 0&&(e=!1),s===void 0&&(s=!1);var n=t.getBoundingClientRect(),r=1,o=1;e&&Fs(t)&&(r=t.offsetWidth>0&&to(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&to(n.height)/t.offsetHeight||1);var c=Xi(t)?Ps(t):window,u=c.visualViewport,f=!ng()&&s,p=(n.left+(f&&u?u.offsetLeft:0))/r,m=(n.top+(f&&u?u.offsetTop:0))/o,_=n.width/r,y=n.height/o;return{width:_,height:y,top:m,right:p+_,bottom:m+y,left:p,x:p,y:m}}function Kf(t){var e=so(t),s=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-s)<=1&&(s=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:s,height:n}}function ig(t,e){var s=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(s&&Zf(s)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Fn(t){return Ps(t).getComputedStyle(t)}function hw(t){return["table","td","th"].indexOf(vn(t))>=0}function yi(t){return((Xi(t)?t.ownerDocument:t.document)||window.document).documentElement}function Vc(t){return vn(t)==="html"?t:t.assignedSlot||t.parentNode||(Zf(t)?t.host:null)||yi(t)}function lm(t){return!Fs(t)||Fn(t).position==="fixed"?null:t.offsetParent}function pw(t){var e=/firefox/i.test(Ku()),s=/Trident/i.test(Ku());if(s&&Fs(t)){var n=Fn(t);if(n.position==="fixed")return null}var r=Vc(t);for(Zf(r)&&(r=r.host);Fs(r)&&["html","body"].indexOf(vn(r))<0;){var o=Fn(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function La(t){for(var e=Ps(t),s=lm(t);s&&hw(s)&&Fn(s).position==="static";)s=lm(s);return s&&(vn(s)==="html"||vn(s)==="body"&&Fn(s).position==="static")?e:s||pw(t)||e}function Gf(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Jo(t,e,s){return Hi(t,nc(e,s))}function mw(t,e,s){var n=Jo(t,e,s);return n>s?s:n}function rg(){return{top:0,right:0,bottom:0,left:0}}function og(t){return Object.assign({},rg(),t)}function ag(t,e){return e.reduce(function(s,n){return s[n]=t,s},{})}var _w=function(e,s){return e=typeof e=="function"?e(Object.assign({},s.rects,{placement:s.placement})):e,og(typeof e!="number"?e:ag(e,bo))};function gw(t){var e,s=t.state,n=t.name,r=t.options,o=s.elements.arrow,c=s.modifiersData.popperOffsets,u=pn(s.placement),f=Gf(u),p=[as,As].indexOf(u)>=0,m=p?"height":"width";if(!(!o||!c)){var _=_w(r.padding,s),y=Kf(o),S=f==="y"?os:as,T=f==="y"?Cs:As,C=s.rects.reference[m]+s.rects.reference[f]-c[f]-s.rects.popper[m],M=c[f]-s.rects.reference[f],j=La(o),D=j?f==="y"?j.clientHeight||0:j.clientWidth||0:0,P=C/2-M/2,$=_[S],U=D-y[m]-_[T],J=D/2-y[m]/2+P,se=Jo($,J,U),W=f;s.modifiersData[n]=(e={},e[W]=se,e.centerOffset=se-J,e)}}function vw(t){var e=t.state,s=t.options,n=s.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||ig(e.elements.popper,r)&&(e.elements.arrow=r))}const lg={name:"arrow",enabled:!0,phase:"main",fn:gw,effect:vw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(t){return t.split("-")[1]}var bw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xw(t,e){var s=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:to(s*r)/r||0,y:to(n*r)/r||0}}function cm(t){var e,s=t.popper,n=t.popperRect,r=t.placement,o=t.variation,c=t.offsets,u=t.position,f=t.gpuAcceleration,p=t.adaptive,m=t.roundOffsets,_=t.isFixed,y=c.x,S=y===void 0?0:y,T=c.y,C=T===void 0?0:T,M=typeof m=="function"?m({x:S,y:C}):{x:S,y:C};S=M.x,C=M.y;var j=c.hasOwnProperty("x"),D=c.hasOwnProperty("y"),P=as,$=os,U=window;if(p){var J=La(s),se="clientHeight",W="clientWidth";if(J===Ps(s)&&(J=yi(s),Fn(J).position!=="static"&&u==="absolute"&&(se="scrollHeight",W="scrollWidth")),J=J,r===os||(r===as||r===As)&&o===eo){$=Cs;var F=_&&J===U&&U.visualViewport?U.visualViewport.height:J[se];C-=F-n.height,C*=f?1:-1}if(r===as||(r===os||r===Cs)&&o===eo){P=As;var z=_&&J===U&&U.visualViewport?U.visualViewport.width:J[W];S-=z-n.width,S*=f?1:-1}}var V=Object.assign({position:u},p&&bw),I=m===!0?xw({x:S,y:C},Ps(s)):{x:S,y:C};if(S=I.x,C=I.y,f){var Z;return Object.assign({},V,(Z={},Z[$]=D?"0":"",Z[P]=j?"0":"",Z.transform=(U.devicePixelRatio||1)<=1?"translate("+S+"px, "+C+"px)":"translate3d("+S+"px, "+C+"px, 0)",Z))}return Object.assign({},V,(e={},e[$]=D?C+"px":"",e[P]=j?S+"px":"",e.transform="",e))}function yw(t){var e=t.state,s=t.options,n=s.gpuAcceleration,r=n===void 0?!0:n,o=s.adaptive,c=o===void 0?!0:o,u=s.roundOffsets,f=u===void 0?!0:u,p={placement:pn(e.placement),variation:no(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,cm(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,cm(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Yf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yw,data:{}};var vl={passive:!0};function ww(t){var e=t.state,s=t.instance,n=t.options,r=n.scroll,o=r===void 0?!0:r,c=n.resize,u=c===void 0?!0:c,f=Ps(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&p.forEach(function(m){m.addEventListener("scroll",s.update,vl)}),u&&f.addEventListener("resize",s.update,vl),function(){o&&p.forEach(function(m){m.removeEventListener("scroll",s.update,vl)}),u&&f.removeEventListener("resize",s.update,vl)}}const Jf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ww,data:{}};var kw={left:"right",right:"left",bottom:"top",top:"bottom"};function Fl(t){return t.replace(/left|right|bottom|top/g,function(e){return kw[e]})}var Ew={start:"end",end:"start"};function dm(t){return t.replace(/start|end/g,function(e){return Ew[e]})}function Xf(t){var e=Ps(t),s=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:s,scrollTop:n}}function Qf(t){return so(yi(t)).left+Xf(t).scrollLeft}function Tw(t,e){var s=Ps(t),n=yi(t),r=s.visualViewport,o=n.clientWidth,c=n.clientHeight,u=0,f=0;if(r){o=r.width,c=r.height;var p=ng();(p||!p&&e==="fixed")&&(u=r.offsetLeft,f=r.offsetTop)}return{width:o,height:c,x:u+Qf(t),y:f}}function Sw(t){var e,s=yi(t),n=Xf(t),r=(e=t.ownerDocument)==null?void 0:e.body,o=Hi(s.scrollWidth,s.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=Hi(s.scrollHeight,s.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),u=-n.scrollLeft+Qf(t),f=-n.scrollTop;return Fn(r||s).direction==="rtl"&&(u+=Hi(s.clientWidth,r?r.clientWidth:0)-o),{width:o,height:c,x:u,y:f}}function eh(t){var e=Fn(t),s=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(s+r+n)}function cg(t){return["html","body","#document"].indexOf(vn(t))>=0?t.ownerDocument.body:Fs(t)&&eh(t)?t:cg(Vc(t))}function Xo(t,e){var s;e===void 0&&(e=[]);var n=cg(t),r=n===((s=t.ownerDocument)==null?void 0:s.body),o=Ps(n),c=r?[o].concat(o.visualViewport||[],eh(n)?n:[]):n,u=e.concat(c);return r?u:u.concat(Xo(Vc(c)))}function Gu(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Cw(t,e){var s=so(t,!1,e==="fixed");return s.top=s.top+t.clientTop,s.left=s.left+t.clientLeft,s.bottom=s.top+t.clientHeight,s.right=s.left+t.clientWidth,s.width=t.clientWidth,s.height=t.clientHeight,s.x=s.left,s.y=s.top,s}function um(t,e,s){return e===zf?Gu(Tw(t,s)):Xi(e)?Cw(e,s):Gu(Sw(yi(t)))}function Aw(t){var e=Xo(Vc(t)),s=["absolute","fixed"].indexOf(Fn(t).position)>=0,n=s&&Fs(t)?La(t):t;return Xi(n)?e.filter(function(r){return Xi(r)&&ig(r,n)&&vn(r)!=="body"}):[]}function Pw(t,e,s,n){var r=e==="clippingParents"?Aw(t):[].concat(e),o=[].concat(r,[s]),c=o[0],u=o.reduce(function(f,p){var m=um(t,p,n);return f.top=Hi(m.top,f.top),f.right=nc(m.right,f.right),f.bottom=nc(m.bottom,f.bottom),f.left=Hi(m.left,f.left),f},um(t,c,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function dg(t){var e=t.reference,s=t.element,n=t.placement,r=n?pn(n):null,o=n?no(n):null,c=e.x+e.width/2-s.width/2,u=e.y+e.height/2-s.height/2,f;switch(r){case os:f={x:c,y:e.y-s.height};break;case Cs:f={x:c,y:e.y+e.height};break;case As:f={x:e.x+e.width,y:u};break;case as:f={x:e.x-s.width,y:u};break;default:f={x:e.x,y:e.y}}var p=r?Gf(r):null;if(p!=null){var m=p==="y"?"height":"width";switch(o){case Ji:f[p]=f[p]-(e[m]/2-s[m]/2);break;case eo:f[p]=f[p]+(e[m]/2-s[m]/2);break}}return f}function io(t,e){e===void 0&&(e={});var s=e,n=s.placement,r=n===void 0?t.placement:n,o=s.strategy,c=o===void 0?t.strategy:o,u=s.boundary,f=u===void 0?W_:u,p=s.rootBoundary,m=p===void 0?zf:p,_=s.elementContext,y=_===void 0?$r:_,S=s.altBoundary,T=S===void 0?!1:S,C=s.padding,M=C===void 0?0:C,j=og(typeof M!="number"?M:ag(M,bo)),D=y===$r?Z_:$r,P=t.rects.popper,$=t.elements[T?D:y],U=Pw(Xi($)?$:$.contextElement||yi(t.elements.popper),f,m,c),J=so(t.elements.reference),se=dg({reference:J,element:P,placement:r}),W=Gu(Object.assign({},P,se)),F=y===$r?W:J,z={top:U.top-F.top+j.top,bottom:F.bottom-U.bottom+j.bottom,left:U.left-F.left+j.left,right:F.right-U.right+j.right},V=t.modifiersData.offset;if(y===$r&&V){var I=V[r];Object.keys(z).forEach(function(Z){var ee=[As,Cs].indexOf(Z)>=0?1:-1,me=[os,Cs].indexOf(Z)>=0?"y":"x";z[Z]+=I[me]*ee})}return z}function Iw(t,e){e===void 0&&(e={});var s=e,n=s.placement,r=s.boundary,o=s.rootBoundary,c=s.padding,u=s.flipVariations,f=s.allowedAutoPlacements,p=f===void 0?Wf:f,m=no(n),_=m?u?qu:qu.filter(function(T){return no(T)===m}):bo,y=_.filter(function(T){return p.indexOf(T)>=0});y.length===0&&(y=_);var S=y.reduce(function(T,C){return T[C]=io(t,{placement:C,boundary:r,rootBoundary:o,padding:c})[pn(C)],T},{});return Object.keys(S).sort(function(T,C){return S[T]-S[C]})}function Lw(t){if(pn(t)===jc)return[];var e=Fl(t);return[dm(t),e,dm(e)]}function Ow(t){var e=t.state,s=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=s.mainAxis,o=r===void 0?!0:r,c=s.altAxis,u=c===void 0?!0:c,f=s.fallbackPlacements,p=s.padding,m=s.boundary,_=s.rootBoundary,y=s.altBoundary,S=s.flipVariations,T=S===void 0?!0:S,C=s.allowedAutoPlacements,M=e.options.placement,j=pn(M),D=j===M,P=f||(D||!T?[Fl(M)]:Lw(M)),$=[M].concat(P).reduce(function(We,Ee){return We.concat(pn(Ee)===jc?Iw(e,{placement:Ee,boundary:m,rootBoundary:_,padding:p,flipVariations:T,allowedAutoPlacements:C}):Ee)},[]),U=e.rects.reference,J=e.rects.popper,se=new Map,W=!0,F=$[0],z=0;z<$.length;z++){var V=$[z],I=pn(V),Z=no(V)===Ji,ee=[os,Cs].indexOf(I)>=0,me=ee?"width":"height",ne=io(e,{placement:V,boundary:m,rootBoundary:_,altBoundary:y,padding:p}),fe=ee?Z?As:as:Z?Cs:os;U[me]>J[me]&&(fe=Fl(fe));var G=Fl(fe),_e=[];if(o&&_e.push(ne[I]<=0),u&&_e.push(ne[fe]<=0,ne[G]<=0),_e.every(function(We){return We})){F=V,W=!1;break}se.set(V,_e)}if(W)for(var ve=T?3:1,$e=function(Ee){var Ce=$.find(function(Ge){var nt=se.get(Ge);if(nt)return nt.slice(0,Ee).every(function(Tt){return Tt})});if(Ce)return F=Ce,"break"},Ue=ve;Ue>0;Ue--){var rt=$e(Ue);if(rt==="break")break}e.placement!==F&&(e.modifiersData[n]._skip=!0,e.placement=F,e.reset=!0)}}const ug={name:"flip",enabled:!0,phase:"main",fn:Ow,requiresIfExists:["offset"],data:{_skip:!1}};function fm(t,e,s){return s===void 0&&(s={x:0,y:0}),{top:t.top-e.height-s.y,right:t.right-e.width+s.x,bottom:t.bottom-e.height+s.y,left:t.left-e.width-s.x}}function hm(t){return[os,As,Cs,as].some(function(e){return t[e]>=0})}function Nw(t){var e=t.state,s=t.name,n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,c=io(e,{elementContext:"reference"}),u=io(e,{altBoundary:!0}),f=fm(c,n),p=fm(u,r,o),m=hm(f),_=hm(p);e.modifiersData[s]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:_},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":_})}const fg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Nw};function $w(t,e,s){var n=pn(t),r=[as,os].indexOf(n)>=0?-1:1,o=typeof s=="function"?s(Object.assign({},e,{placement:t})):s,c=o[0],u=o[1];return c=c||0,u=(u||0)*r,[as,As].indexOf(n)>=0?{x:u,y:c}:{x:c,y:u}}function Dw(t){var e=t.state,s=t.options,n=t.name,r=s.offset,o=r===void 0?[0,0]:r,c=Wf.reduce(function(m,_){return m[_]=$w(_,e.rects,o),m},{}),u=c[e.placement],f=u.x,p=u.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=p),e.modifiersData[n]=c}const hg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Dw};function Mw(t){var e=t.state,s=t.name;e.modifiersData[s]=dg({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const th={name:"popperOffsets",enabled:!0,phase:"read",fn:Mw,data:{}};function Rw(t){return t==="x"?"y":"x"}function Bw(t){var e=t.state,s=t.options,n=t.name,r=s.mainAxis,o=r===void 0?!0:r,c=s.altAxis,u=c===void 0?!1:c,f=s.boundary,p=s.rootBoundary,m=s.altBoundary,_=s.padding,y=s.tether,S=y===void 0?!0:y,T=s.tetherOffset,C=T===void 0?0:T,M=io(e,{boundary:f,rootBoundary:p,padding:_,altBoundary:m}),j=pn(e.placement),D=no(e.placement),P=!D,$=Gf(j),U=Rw($),J=e.modifiersData.popperOffsets,se=e.rects.reference,W=e.rects.popper,F=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,z=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(J){if(o){var Z,ee=$==="y"?os:as,me=$==="y"?Cs:As,ne=$==="y"?"height":"width",fe=J[$],G=fe+M[ee],_e=fe-M[me],ve=S?-W[ne]/2:0,$e=D===Ji?se[ne]:W[ne],Ue=D===Ji?-W[ne]:-se[ne],rt=e.elements.arrow,We=S&&rt?Kf(rt):{width:0,height:0},Ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:rg(),Ce=Ee[ee],Ge=Ee[me],nt=Jo(0,se[ne],We[ne]),Tt=P?se[ne]/2-ve-nt-Ce-z.mainAxis:$e-nt-Ce-z.mainAxis,_t=P?-se[ne]/2+ve+nt+Ge+z.mainAxis:Ue+nt+Ge+z.mainAxis,Pt=e.elements.arrow&&La(e.elements.arrow),St=Pt?$==="y"?Pt.clientTop||0:Pt.clientLeft||0:0,R=(Z=V?.[$])!=null?Z:0,H=fe+Tt-R-St,N=fe+_t-R,b=Jo(S?nc(G,H):G,fe,S?Hi(_e,N):_e);J[$]=b,I[$]=b-fe}if(u){var O,K=$==="x"?os:as,X=$==="x"?Cs:As,re=J[U],oe=U==="y"?"height":"width",ie=re+M[K],Te=re-M[X],ge=[os,as].indexOf(j)!==-1,ye=(O=V?.[U])!=null?O:0,Ae=ge?ie:re-se[oe]-W[oe]-ye+z.altAxis,je=ge?re+se[oe]+W[oe]-ye-z.altAxis:Te,Ye=S&&ge?mw(Ae,re,je):Jo(S?Ae:ie,re,S?je:Te);J[U]=Ye,I[U]=Ye-re}e.modifiersData[n]=I}}const pg={name:"preventOverflow",enabled:!0,phase:"main",fn:Bw,requiresIfExists:["offset"]};function Fw(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Uw(t){return t===Ps(t)||!Fs(t)?Xf(t):Fw(t)}function jw(t){var e=t.getBoundingClientRect(),s=to(e.width)/t.offsetWidth||1,n=to(e.height)/t.offsetHeight||1;return s!==1||n!==1}function Vw(t,e,s){s===void 0&&(s=!1);var n=Fs(e),r=Fs(e)&&jw(e),o=yi(e),c=so(t,r,s),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(n||!n&&!s)&&((vn(e)!=="body"||eh(o))&&(u=Uw(e)),Fs(e)?(f=so(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):o&&(f.x=Qf(o))),{x:c.left+u.scrollLeft-f.x,y:c.top+u.scrollTop-f.y,width:c.width,height:c.height}}function Hw(t){var e=new Map,s=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function r(o){s.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);
vendor: 5,112 bytes, lines 1-5
1c.forEach(function(u){if(!s.has(u)){var f=e.get(u);f&&r(f)}}),n.push(o)}return t.forEach(function(o){s.has(o.name)||r(o)}),n}function zw(t){var e=Hw(t);return sg.reduce(function(s,n){return s.concat(e.filter(function(r){return r.phase===n}))},[])}function Ww(t){var e;return function(){return e||(e=new Promise(function(s){Promise.resolve().then(function(){e=void 0,s(t())})})),e}}function Zw(t){var e=t.reduce(function(s,n){var r=s[n.name];return s[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,s},{});return Object.keys(e).map(function(s){return e[s]})}var pm={placement:"bottom",modifiers:[],strategy:"absolute"};function mm(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Hc(t){t===void 0&&(t={});var e=t,s=e.defaultModifiers,n=s===void 0?[]:s,r=e.defaultOptions,o=r===void 0?pm:r;return function(u,f,p){p===void 0&&(p=o);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},pm,o),modifiersData:{},elements:{reference:u,popper:f},attributes:{},styles:{}},_=[],y=!1,S={state:m,setOptions:function(j){var D=typeof j=="function"?j(m.options):j;C(),m.options=Object.assign({},o,m.options,D),m.scrollParents={reference:Xi(u)?Xo(u):u.contextElement?Xo(u.contextElement):[],popper:Xo(f)};var P=zw(Zw([].concat(n,m.options.modifiers)));return m.orderedModifiers=P.filter(function($){return $.enabled}),T(),S.update()},forceUpdate:function(){if(!y){var j=m.elements,D=j.reference,P=j.popper;if(mm(D,P)){m.rects={reference:Vw(D,La(P),m.options.strategy==="fixed"),popper:Kf(P)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(z){return m.modifiersData[z.name]=Object.assign({},z.data)});for(var $=0;$<m.orderedModifiers.length;$++){if(m.reset===!0){m.reset=!1,$=-1;continue}var U=m.orderedModifiers[$],J=U.fn,se=U.options,W=se===void 0?{}:se,F=U.name;typeof J=="function"&&(m=J({state:m,options:W,name:F,instance:S})||m)}}}},update:Ww(function(){return new Promise(function(M){S.forceUpdate(),M(m)})}),destroy:function(){C(),y=!0}};if(!mm(u,f))return S;S.setOptions(p).then(function(M){!y&&p.onFirstUpdate&&p.onFirstUpdate(M)});function T(){m.orderedModifiers.forEach(function(M){var j=M.name,D=M.options,P=D===void 0?{}:D,$=M.effect;if(typeof $=="function"){var U=$({state:m,name:j,instance:S,options:P}),J=function(){};_.push(U||J)}})}function C(){_.forEach(function(M){return M()}),_=[]}return S}}var qw=Hc(),Kw=[Jf,th,Yf,qf],Gw=Hc({defaultModifiers:Kw}),Yw=[Jf,th,Yf,qf,hg,ug,pg,lg,fg],sh=Hc({defaultModifiers:Yw});const mg=Object.freeze(Object.defineProperty({__proto__:null,afterMain:X_,afterRead:G_,afterWrite:tg,applyStyles:qf,arrow:lg,auto:jc,basePlacements:bo,beforeMain:Y_,beforeRead:q_,beforeWrite:Q_,bottom:Cs,clippingParents:W_,computeStyles:Yf,createPopper:sh,createPopperBase:qw,createPopperLite:Gw,detectOverflow:io,end:eo,eventListeners:Jf,flip:ug,hide:fg,left:as,main:J_,modifierPhases:sg,offset:hg,placements:Wf,popper:$r,popperGenerator:Hc,popperOffsets:th,preventOverflow:pg,read:K_,reference:Z_,right:As,start:Ji,top:os,variationPlacements:qu,viewport:zf,write:eg},Symbol.toStringTag,{value:"Module"}));/*! 2 * Bootstrap v5.3.8 (https://getbootstrap.com/) 3 * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 */const Jn=new Map,ru={set(t,e,s){Jn.has(t)||Jn.set(t,new Map);const n=Jn.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,s)},get(t,e){return Jn.has(t)&&Jn.get(t).get(e)||null},remove(t,e){if(!Jn.has(t))return;const s=Jn.get(t);s.delete(e),s.size===0&&Jn.delete(t)}},Jw=1e6,Xw=1e3,Yu="transitionend",_g=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,s)=>`#${CSS.escape(s)}`)),t),Qw=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),ek=t=>{do t+=Math.floor(Math.random()*Jw);while(document.getElementById(t));return t},tk=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:s}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(s);return!n&&!r?0:(e=e.split(",")[0],s=s.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(s))*Xw)},gg=t=>{t.dispatchEvent(new Event(Yu))},Mn=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),_i=t=>Mn(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(_g(t)):null,xo=t=>{if(!Mn(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",s=t.closest("details:not([open])");if(!s)return e;if(s!==t){const n=t.closest("summary");if(n&&n.parentNode!==s||n===null)return!1}return e},gi=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",vg=t=>
5{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?vg(t.parentNode):null},ic=()=>{},Oa=t=>{t.offsetHeight},bg=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ou=[],sk=t=>{document.readyState==="loading"?(ou.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of ou)e()}),ou.push(t)):t()},js=()=>document.documentElement.dir==="rtl",zs=t=>{sk(()=>{const e=bg();if(e){const s=t.NAME,n=e.fn[s];e.fn[s]=t.jQueryInterface,e.fn[s].Constructor=t,e.fn[s].noConflict=()=>(e.fn[s]=n,t.jQueryInterface)}})},ms=(t,e=[],s=t)=>typeof t=="function"?t.call(...e):s,xg=(t,e,s=!0)=>{if(!s){ms(t);return}const r=tk(e)+5;let o=!1;const c=({target:u})=>{u===e&&(o=!0,e.removeEventListener(Yu,c),ms(t))};e.addEventListener(Yu,c),setTimeout(()=>{o||gg(e)},r)},nh=(t,e,s,n)=>{const r=t.length;let o=t.indexOf(e);return o===-1?!s&&n?t[r-1]:t[0]:(o+=s?1:-1,n&&(o=(o+r)%r),t[Math.max(0,Math.min(o,r-1))])},nk=/[^.]*(?=\..*)\.|.*/,ik=/\..*/,rk=/::\d+$/,au={};let _m=1;
5const yg={mouseenter:"mouseover",mouseleave:"mouseout"},ok=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 wg(t,e){return e&&`${e}::${_m++}`||t.uidEvent||_m++}function kg(t){const e=wg(t);return t.uidEvent=e,au[e]=au[e]||{},au[e]}function ak(t,e){return function s(n){return ih(n,{delegateTarget:t}),s.oneOff&&de.off(t,n.type,e),e.apply(t,[n])}}function lk(t,e,s){return function n(r){const o=t.querySelectorAll(e);for(let{target:c}=r;c&&c!==this;c=c.parentNode)for(const u of o)if(u===c)return ih(r,{delegateTarget:c}),n.oneOff&&de.off(t,r.type,e,s),s.apply(c,[r])}}function Eg(t,e,s=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===s)}function Tg(t,e,s){const n=typeof e=="string",r=n?s:e||s;let o=Sg(t);return ok.has(o)||(o=t),[n,r,o]}function gm(t,e,s,n,r){if(typeof e!="string"||!t)return;let[o,c,u]=Tg(e,s,n);e in yg&&(c=(T=>function(C){if(!C.relatedTarget||C.relatedTarget!==C.delegateTarget&&!C.delegateTarget.contains(C.relatedTarget))return T.call(this,C)})(c));const f=kg(t),p=f[u]||(f[u]={}),m=Eg(p,c,o?s:null);if(m){m.oneOff=m.oneOff&&r;return}const _=wg(c,e.replace(nk,"")),y=o?lk(t,s,c):ak(t,c);y.delegationSelector=o?s:null,y.callable=c,y.oneOff=r,y.uidEvent=_,p[_]=y,t.addEventListener(u,y,o)}function Ju(t,e,s,n,r){const o=Eg(e[s],n,r);o&&(t.removeEventListener(s,o,!!r),delete e[s][o.uidEvent])}function ck(t,e,s,n){const r=e[s]||{};for(const[o,c]of Object.entries(r))o.includes(n)&&Ju(t,e,s,c.callable,c.delegationSelector)}function Sg(t){return t=t.replace(ik,""),yg[t]||t}const de={on(t,e,s,n){gm(t,e,s,n,!1)},one(t,e,s,n){gm(t,e,s,n,!0)},off(t,e,s,n){if(typeof e!="string"||!t)return;const[r,o,c]=Tg(e,s,n),u=c!==e,f=kg(t),p=f[c]||{},m=e.startsWith(".");if(typeof o<"u"){if(!Object.keys(p).length)return;Ju(t,f,c,o,r?s:null);return}if(m)for(const _ of Object.keys(f))ck(t,f,_,e.slice(1));for(const[_,y]of Object.entries(p)){const S=_.replace(rk,"");(!u||e.includes(S))&&Ju(t,f,c,y.callable,y.delegationSelector)}},trigger(t,e,s){if(typeof e!="string"||!t)return null;const n=bg(),r=Sg(e),o=e!==r;let c=null,u=!0,f=!0,p=!1;o&&n&&(c=n.Event(e,s),n(t).trigger(c),u=!c.isPropagationStopped(),f=!c.isImmediatePropagationStopped(),p=c.isDefaultPrevented());const m=ih(new Event(e,{bubbles:u,cancelable:!0}),s);return p&&m.preventDefault(),f&&t.dispatchEvent(m),m.defaultPrevented&&c&&c.preventDefault(),m}};function ih(t,e={}){for(const[s,n]of Object.entries(e))try{t[s]=n}catch{Object.defineProperty(t,s,{configurable:!0,get(){return n}})}return t}function vm(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function lu(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Rn={setDataAttribute(t,e,s){t.setAttribute(`data-bs-${lu(e)}`,s)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${lu(e)}`)},getDataAttributes(t){if(!t)return{};const e={},s=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of s){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=vm(t.dataset[n])}return e},getDataAttribute(t,e){return vm(t.getAttribute(`data-bs-${lu(e)}`))}};class Na{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,s){const n=Mn(s)?Rn.getDataAttribute(s,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Mn(s)?Rn.getDataAttributes(s):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,s=this.constructor.DefaultType){for(const[n,r]of Object.entries(s)){const o=e[n],c=Mn(o)?"element":Qw(o);if(!new RegExp(r).test(c))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${c}" but expected type "${r}".`)}}}const dk="5.3.8";class tn extends Na{constructor(e,s){super(),e=_i(e),e&&(this._element=e,this._config=this._getConfig(s),ru.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ru.remove(this._element,this.constructor.DATA_KEY),de.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,s,n=!0){xg(e,s,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return ru.get(_i(e),this.DATA_KEY)}static getOrCreateInstance(e,s={}){return this.getInstance(e)||new this(e,typeof s=="object"?s:null)}static get VERSION(){return dk}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const cu=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let s=t.getAttribute("href");if(!s||!s.includes("#")&&!s.startsWith("."))return null;s.includes("#")&&!s.startsWith("#")&&(s=`#${s.split("#")[1]}`),e=s&&s!=="#"?s.trim():null}return e?e.split(",").map(s=>_g(s)).join(","):null},Pe={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(s=>s.matches(e))},parents(t,e){const s=[];let n=t.parentNode.closest(e);for(;n;)s.push(n),n=n.parentNode.closest(e);return s},prev(t,e){let s=t.previousElementSibling;for(;s;){if(s.matches(e))return[s];s=s.previousElementSibling}return[]},next(t,e){let s=t.nextElementSibling;for(;s;){if(s.matches(e))return[s];s=s.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(s=>`${s}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(s=>!gi(s)&&xo(s))},getSelectorFromElement(t){const e=cu(t);return e&&Pe.findOne(e)?e:null},getElementFromSelector(t){const e=cu(t);return e?Pe.findOne(e):null},getMultipleElementsFromSelector(t){const e=cu(t);return e?Pe.find(e):[]}},zc=(t,e="hide")=>{const s=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;de.on(document,s,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),gi(this))return;const o=Pe.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(o)[e]()})},uk="alert",fk="bs.alert",Cg=`.${fk}`,hk=`close${Cg}`,pk=`closed${Cg}`,mk="fade",_k="show";class Wc extends tn{static get NAME(){return uk}close(){if(de.trigger(this._element,hk).defaultPrevented)return;this._element.classList.remove(_k);const s=this._element.classList.contains(mk);this._queueCallback(()=>this._destroyElement(),this._element,s)}_destroyElement(){this._element.remove(),de.trigger(this._element,pk),this.dispose()}static jQueryInterface(e){return this.each(function(){const s=Wc.getOrCreateInstance(this);if(typeof e=="string"){if(s[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method n
5amed "${e}"`);s[e](this)}})}}zc(Wc,"close");zs(Wc);const gk="button",vk="bs.button",bk=`.${vk}`,xk=".data-api",yk="active",bm='[data-bs-toggle="button"]',wk=`click${bk}${xk}`;class Zc extends tn{static get NAME(){return gk}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(yk))}static jQueryInterface(e){return this.each(function(){const s=Zc.getOrCreateInstance(this);e==="toggle"&&s[e]()})}}de.on(document,wk,bm,t=>{t.preventDefault();const e=t.target.closest(bm);Zc.getOrCreateInstance(e).toggle()});zs(Zc);const kk="swipe",yo=".bs.swipe",Ek=`touchstart${yo}`,Tk=`touchmove${yo}`,Sk=`touchend${yo}`,Ck=`pointerdown${yo}`,Ak=`pointerup${yo}`,Pk="touch",Ik="pen",Lk="pointer-event",Ok=40,Nk={endCallback:null,leftCallback:null,rightCallback:null},$k={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class rc extends Na{constructor(e,s){super(),this._element=e,!(!e||!rc.isSupported())&&(this._config=this._getConfig(s),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Nk}static get DefaultType(){return $k}static get NAME(){return kk}dispose(){de.off(this._element,yo)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),ms(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Ok)return;const s=e/this._deltaX;this._deltaX=0,s&&ms(s>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(de.on(this._element,Ck,e=>this._start(e)),de.on(this._element,Ak,e=>this._end(e)),this._element.classList.add(Lk)):(de.on(this._element,Ek,e=>this._start(e)),de.on(this._element,Tk,e=>this._move(e)),de.on(this._element,Sk,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Ik||e.pointerType===Pk)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Dk="carousel",Mk="bs.carousel",wi=`.${Mk}`,Ag=".data-api",Rk="ArrowLeft",Bk="ArrowRight",Fk=500,Vo="next",Cr="prev",Dr="left",Ul="right",Uk=`slide${wi}`,du=`slid${wi}`,jk=`keydown${wi}`,Vk=`mouseenter${wi}`,Hk=`mouseleave${wi}`,zk=`dragstart${wi}`,Wk=`load${wi}${Ag}`,Zk=`click${wi}${Ag}`,Pg="carousel",bl="active",qk="slide",Kk="carousel-item-end",Gk="carousel-item-start",Yk="carousel-item-next",Jk="carousel-item-prev",Ig=".active",Lg=".carousel-item",Xk=Ig+Lg,Qk=".carousel-item img",e2=".carousel-indicators",t2="[data-bs-slide], [data-bs-slide-to]",s2='[data-bs-ride="carousel"]',n2={[Rk]:Ul,[Bk]:Dr},i2={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},r2={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class $a extends tn{constructor(e,s){super(e,s),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Pe.findOne(e2,this._element),this._addEventListeners(),this._config.ride===Pg&&this.cycle()}static get Default(){return i2}static get DefaultType(){return r2}static get NAME(){return Dk}next(){this._slide(Vo)}nextWhenVisible(){!document.hidden&&xo(this._element)&&this.next()}prev(){this._slide(Cr)}pause(){this._isSliding&&gg(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){de.one(this._element,du,()=>this.cycle());return}this.cycle()}}to(e){const s=this._getItems();if(e>s.length-1||e<0)return;if(this._isSliding){de.one(this._element,du,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?Vo:Cr;this._slide(r,s[e])}
vendor: 20,910 bytes, line 5
5dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&de.on(this._element,jk,e=>this._keydown(e)),this._config.pause==="hover"&&(de.on(this._element,Vk,()=>this.pause()),de.on(this._element,Hk,()=>this._maybeEnableCycle())),this._config.touch&&rc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of Pe.find(Qk,this._element))de.on(n,zk,r=>r.preventDefault());const s={leftCallback:()=>this._slide(this._directionToOrder(Dr)),rightCallback:()=>this._slide(this._directionToOrder(Ul)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Fk+this._config.interval))}};this._swipeHelper=new rc(this._element,s)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const s=n2[e.key];s&&(e.preventDefault(),this._slide(this._directionToOrder(s)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const s=Pe.findOne(Ig,this._indicatorsElement);s.classList.remove(bl),s.removeAttribute("aria-current");const n=Pe.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(bl),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const s=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=s||this._config.defaultInterval}_slide(e,s=null){if(this._isSliding)return;const n=this._getActive(),r=e===Vo,o=s||nh(this._getItems(),n,r,this._config.wrap);if(o===n)return;const c=this._getItemIndex(o),u=S=>de.trigger(this._element,S,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:c});if(u(Uk).defaultPrevented||!n||!o)return;const p=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(c),this._activeElement=o;const m=r?Gk:Kk,_=r?Yk:Jk;o.classList.add(_),Oa(o),n.classList.add(m),o.classList.add(m);const y=()=>{o.classList.remove(m,_),o.classList.add(bl),n.classList.remove(bl,_,m),this._isSliding=!1,u(du)};this._queueCallback(y,n,this._isAnimated()),p&&this.cycle()}_isAnimated(){return this._element.classList.contains(qk)}_getActive(){return Pe.findOne(Xk,this._element)}_getItems(){return Pe.find(Lg,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return js()?e===Dr?Cr:Vo:e===Dr?Vo:Cr}_orderToDirection(e){return js()?e===Cr?Dr:Ul:e===Cr?Ul:Dr}static jQueryInterface(e){return this.each(function(){const s=$a.getOrCreateInstance(this,e);if(typeof e=="number"){s.to(e);return}if(typeof e=="string"){if(s[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);s[e]()}})}}de.on(document,Zk,t2,function(t){const e=Pe.getElementFromSelector(this);if(!e||!e.classList.contains(Pg))return;t.preventDefault();const s=$a.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){s.to(n),s._maybeEnableCycle();return}if(Rn.getDataAttribute(this,"slide")==="next"){s.next(),s._maybeEnableCycle();return}s.prev(),s._maybeEnableCycle()});de.on(window,Wk,()=>{const t=Pe.find(s2);for(const e of t)$a.getOrCreateInstance(e)});zs($a);const o2="collapse",a2="bs.collapse",Da=`.${a2}`,l2=".data-api",c2=`show${Da}`,d2=`shown${Da}`,u2=`hide${Da}`,f2=`hidden${Da}`,h2=`click${Da}${l2}`,uu="show",Fr="collapse",xl="collapsing",p2="collapsed",m2=`:scope .${Fr} .${Fr}`,_2="collapse-horizontal",g2="width",v2="height",b2=".collapse.show, .collapse.collapsing",Xu='[data-bs-toggle="collapse"]',x2={parent:null,toggle:!0},y2={parent:"(null|element)",toggle:"boolean"};class da extends tn{constructor(e,s){super(e,s),this._isTransitioning=!1,this._triggerArray=[];const n=Pe.find(Xu);for(const r of n){const o=Pe.getSelectorFromElement(r),c=Pe.find(o).filter(u=>u===this._element);o!==null&&c.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return x2}static get DefaultType(){return y2}static get NAME(){return o2}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(b2).filter(u=>u!==this._element).map(u=>da.getOrCreateInstance(u,{toggle:!1}))),e.length&&e[0]._isTransitioning||de.trigger(this._element,c2).defaultPrevented)return;for(const u of e)u.hide();const n=this._getDimension();this._element.classList.remove(Fr),this._element.classList.add(xl),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(xl),this._element.classList.add(Fr,uu),this._element.style[n]="",de.trigger(this._element,d2)},c=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[c]}px`}hide(){if(this._isTransitioning||!this._isShown()||de.trigger(this._element,u2).defaultPrevented)return;const s=this._getDimension();this._element.style[s]=`${this._element.getBoundingClientRect()[s]}px`,Oa(this._element),this._element.classList.add(xl),this._element.classList.remove(Fr,uu);for(const r of this._triggerArray){const o=Pe.getElementFromSelector(r);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([r],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(xl),this._element.classList.add(Fr),de.trigger(this._element,f2)};this._element.style[s]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(uu)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=_i(e.parent),e}_getDimension(){return this._element.classList.contains(_2)?g2:v2}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Xu);for(const s of e){const n=Pe.getElementFromSelector(s);n&&this._addAriaAndCollapsedClass([s],this._isShown(n))}}_getFirstLevelChildren(e){const s=Pe.find(m2,this._config.parent);return Pe.find(e,this._config.parent).filter(n=>!s.includes(n))}_addAriaAndCollapsedClass(e,s){if(e.length)for(const n of e)n.classList.toggle(p2,!s),n.setAttribute("aria-expanded",s)}static jQueryInterface(e){const s={};return typeof e=="string"&&/show|hide/.test(e)&&(s.toggle=!1),this.each(function(){const n=da.getOrCreateInstance(this,s);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,h2,Xu,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Pe.getMultipleElementsFromSelector(this))da.getOrCreateInstance(e,{toggle:!1}).toggle()});zs(da);const xm="dropdown",w2="bs.dropdown",ar=`.${w2}`,rh=".data-api",k2="Escape",ym="Tab",E2="ArrowUp",wm="ArrowDown",T2=2,S2=`hide${ar}`,C2=`hidden${ar}`,A2=`show${ar}`,P2=`shown${ar}`,Og=`click${ar}${rh}`,Ng=`keydown${ar}${rh}`,I2=`keyup${ar}${rh}`,Mr="show",L2="dropup",O2="dropend",N2="dropstart",$2="dropup-center",D2="dropdown-center",Ri='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',M2=`${Ri}.${Mr}`,jl=".dropdown-menu",R2=".navbar",B2=".navbar-nav",F2=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",U2=js()?"top-end":"top-start",j2=js()?"top-start":"top-end",V2=js()?"bottom-end":"bottom-start",H2=js()?"bottom-start":"bottom-end",z2=js()?"left-start":"right-start",W2=js()?"right-start":"left-start",Z2="top",q2="bottom",K2={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},G2={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class mn extends tn{constructor(e,s){super(e,s),this._popper=null,this._parent=this._element.parentNode,this._menu=Pe.next(this._element,jl)[0]||Pe.prev(this._element,jl)[0]||Pe.findOne(jl,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return K2}static get DefaultType(){return G2}static get NAME(){return xm}toggle(){return this._isShown()?this.hide():this.show()}show(){if(gi(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!de.trigger(this._element,A2,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(B2))for(const n of[].concat(...document.body.children))de.on(n,"mouseover",ic);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Mr),this._element.classList.add(Mr),de.trigger(this._element,P2,e)}}hide(){if(gi(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(e){if(!de.trigger(this._element,S2,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))de.off(n,"mouseover",ic);this._popper&&this._popper.destroy(),this._menu.classList.remove(Mr),this._element.classList.remove(Mr),this._element.setAttribute("aria-expanded","false"),Rn.removeDataAttribute(this._menu,"popper"),de.trigger(this._element,C2,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Mn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${xm.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof mg>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:Mn(this._config.reference)?e=_i(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const s=this._getPopperConfig();this._popper=sh(e,this._menu,s)}_isShown(){return this._menu.classList.contains(Mr)}_getPlacement(){const e=this._parent;if(e.classList.contains(O2))return z2;if(e.classList.contains(N2))return W2;if(e.classList.contains($2))return Z2;if(e.classList.contains(D2))return q2;const s=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(L2)?s?j2:U2:s?H2:V2}_detectNavbar(){return this._element.closest(R2)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(s=>Number.parseInt(s,10)):typeof e=="function"?s=>e(s,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")&&(Rn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...ms(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:s}){const n=Pe.find(F2,this._menu).filter(r=>xo(r));n.length&&nh(n,s,e===wm,!n.includes(s)).focus()}static jQueryInterface(e){return this.each(function(){const s=mn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e]()}})}static clearMenus(e){if(e.button===T2||e.type==="keyup"&&e.key!==ym)return;const s=Pe.find(M2);for(const n of s){const r=mn.getInstance(n);if(!r||r._config.autoClose===!1)continue;const o=e.composedPath(),c=o.includes(r._menu);if(o.includes(r._element)||r._config.autoClose==="inside"&&!c||r._config.autoClose==="outside"&&c||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===ym||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const u={relatedTarget:r._element};e.type==="click"&&(u.clickEvent=e),r._completeHide(u)}}static dataApiKeydownHandler(e){const s=/input|textarea/i.test(e.target.tagName),n=e.key===k2,r=[E2,wm].includes(e.key);if(!r&&!n||s&&!n)return;e.preventDefault();const o=this.matches(Ri)?this:Pe.prev(this,Ri)[0]||Pe.next(this,Ri)[0]||Pe.findOne(Ri,e.delegateTarget.parentNode),c=mn.getOrCreateInstance(o);if(r){e.stopPropagation(),c.show(),c._selectMenuItem(e);return}c._isShown()&&(e.stopPropagation(),c.hide(),o.focus())}}de.on(document,Ng,Ri,mn.dataApiKeydownHandler);de.on(document,Ng,jl,mn.dataApiKeydownHandler);de.on(document,Og,mn.clearMenus);de.on(document,I2,mn.clearMenus);de.on(document,Og,Ri,function(t){t.preventDefault(),mn.getOrCreateInstance(this).toggle()});zs(mn);const $g="backdrop",Y2="fade",km="show",Em=`mousedown.bs.${$g}`,J2={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},X2={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Dg extends Na{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return J2}static get DefaultType(){return X2}static get NAME(){return $g}show(e){if(!this._config.isVisible){ms(e);return}this._append();const s=this._getElement();this._config.isAnimated&&Oa(s),s.classList.add(km),this._emulateAnimation(()=>{ms(e)})}hide(e){if(!this._config.isVisible){ms(e);return}this._getElement().classList.remove(km),this._emulateAnimation(()=>{this.dispose(),ms(e)})}dispose(){this._isAppended&&(de.off(this._element,Em),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(Y2),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=_i(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),de.on(e,Em,()=>{ms(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){xg(e,this._getElement(),this._config.isAnimated)}}const Q2="focustrap",eE="bs.focustrap",oc=`.${eE}`,tE=`focusin${oc}`,sE=`keydown.tab${oc}`,nE="Tab",iE="forward",Tm="backward",rE={autofocus:!0,trapElement:null},oE={autofocus:"boolean",trapElement:"element"};class Mg extends Na{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rE}static get DefaultType(){return oE}static get NAME(){return Q2}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),de.off(document,oc),de.on(document,tE,e=>this._handleFocusin(e)),de.on(document,sE,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,de.off(document,oc))}_handleFocusin(e){const{trapElement:s}=this._config;if(e.target===document||e.target===s||s.contains(e.target))return;const n=Pe.focusableChildren(s);n.length===0?s.focus():this._lastTabNavDirection===Tm?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===nE&&(this._lastTabNavDirection=e.shiftKey?Tm:iE)}}const Sm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Cm=".sticky-top",yl="padding-right",Am="margin-right";class Qu{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,yl,s=>s+e),this._setElementAttributes(Sm,yl,s=>s+e),this._setElementAttributes(Cm,Am,s=>s-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,yl),this._resetElementAttributes(Sm,yl),this._resetElementAttributes(Cm,Am)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,s,n){const r=this.getWidth(),o=c=>{if(c!==this._element&&window.innerWidth>c.clientWidth+r)return;this._saveInitialAttribute(c,s);const u=window.getComputedStyle(c).getPropertyValue(s);c.style.setProperty(s,`${n(Number.parseFloat(u))}px`)};this._applyManipulationCallback(e,o)}_saveInitialAttribute(e,s){const n=e.style.getPropertyValue(s);n&&Rn.setDataAttribute(e,s,n)}_resetElementAttributes(e,s){const n=r=>{const o=Rn.getDataAttribute(r,s);if(o===null){r.style.removeProperty(s);return}Rn.removeDataAttribute(r,s),r.style.setProperty(s,o)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,s){if(Mn(e)){s(e);return}for(const n of Pe.find(e,this._element))s(n)}}const aE="modal",lE="bs.modal",Vs=`.${lE}`,cE=".data-api",dE="Escape",uE=`hide${Vs}`,fE=`hidePrevented${Vs}`,Rg=`hidden${Vs}`,Bg=`show${Vs}`,hE=`shown${Vs}`,pE=`resize${Vs}`,mE=`click.dismiss${Vs}`,_E=`mousedown.dismiss${Vs}`,gE=`keydown.dismiss${Vs}`,vE=`click${Vs}${cE}`,Pm="modal-open",bE="fade",Im="show",fu="modal-static",xE=".modal.show",yE=".modal-dialog",wE=".modal-body",kE='[data-bs-toggle="modal"]',EE={backdrop:!0,focus:!0,keyboard:!0},TE={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ro extends tn{constructor(e,s){super(e,s),this._dialog=Pe.findOne(yE,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Qu,this._addEventListeners()}static get Default(){return EE}static get DefaultType(){return TE}static get NAME(){return aE}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||de.trigger(this._element,Bg,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Pm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||de.trigger(this._element,uE).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Im),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){de.off(window,Vs),de.off(this._dialog,Vs),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Dg({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Mg({trapElement:this._element})}_showElement(e){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 s=Pe.findOne(wE,this._dialog);s&&(s.scrollTop=0),Oa(this._element),this._element.classList.add(Im);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,de.trigger(this._element,hE,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){de.on(this._element,gE,e=>{if(e.key===dE){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),de.on(window,pE,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),de.on(this._element,_E,e=>{de.one(this._element,mE,s=>{if(!(this._element!==e.target||this._element!==s.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Pm),this._resetAdjustments(),this._scrollBar.reset(),de.trigger(this._element,Rg)})}_isAnimated(){return this._element.classList.contains(bE)}_triggerBackdropTransition(){if(de.trigger(this._element,fE).defaultPrevented)return;const s=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(fu)||(s||(this._element.style.overflowY="hidden"),this._element.classList.add(fu),this._queueCallback(()=>{this._element.classList.remove(fu),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,s=this._scrollBar.getWidth(),n=s>0;if(n&&!e){const r=js()?"paddingLeft":"paddingRight";this._element.style[r]=`${s}px`}if(!n&&e){const r=js()?"paddingRight":"paddingLeft";this._element.style[r]=`${s}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,s){return this.each(function(){const n=ro.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>
5"u")throw new TypeError(`No method named "${e}"`);n[e](s)}})}}de.on(document,vE,kE,function(t){const e=Pe.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),de.one(e,Bg,r=>{r.defaultPrevented||de.one(e,Rg,()=>{xo(this)&&this.focus()})});const s=Pe.findOne(xE);s&&ro.getInstance(s).hide(),ro.getOrCreateInstance(e).toggle(this)});zc(ro);zs(ro);const SE="offcanvas",CE="bs.offcanvas",qn=`.${CE}`,Fg=".data-api",AE=`load${qn}${Fg}`,PE="Escape",Lm="show",Om="showing",Nm="hiding",IE="offcanvas-backdrop",Ug=".offcanvas.show",LE=`show${qn}`,OE=`shown${qn}`,NE=`hide${qn}`,$m=`hidePrevented${qn}`,jg=`hidden${qn}`,$E=`resize${qn}`,DE=`click${qn}${Fg}`,ME=`keydown.dismiss${qn}`,RE='[data-bs-toggle="offcanvas"]',BE={backdrop:!0,keyboard:!0,scroll:!1},FE={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class vi extends tn{constructor(e,s){super(e,s),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return BE}static get DefaultType(){return FE}static get NAME(){return SE}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||de.trigger(this._element,LE,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Qu().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Om);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Lm),this._element.classList.remove(Om),de.trigger(this._element,OE,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||de.trigger(this._element,NE).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Nm),this._backdrop.hide();const s=()=>{this._element.classList.remove(Lm,Nm),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Qu().reset(),de.trigger(this._element,jg)};this._queueCallback(s,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){de.trigger(this._element,$m);return}this.hide()},s=!!this._config.backdrop;return new Dg({className:IE,isVisible:s,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:s?e:null})}_initializeFocusTrap(){return new Mg({trapElement:this._element})}_addEventListeners(){de.on(this._element,ME,e=>{if(e.key===PE){if(this._config.keyboard){this.hide();return}de.trigger(this._element,$m)}})}static jQueryInterface(e){return this.each(function(){const s=vi.getOrCreateInstance(this,e);if(typeof e=="string"){if(s[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);s[e](this)}})}}de.on(document,DE,RE,function(t){const e=Pe.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),gi(this))return;de.one(e,jg,()=>{xo(this)&&this.focus()});const s=Pe.findOne(Ug);s&&s!==e&&vi.getInstance(s).hide(),vi.getOrCreateInstance(e).toggle(this)});de.on(window,AE,()=>{for(const t of Pe.find(Ug))vi.getOrCreateInstance(t).show()});de.on(window,$E,()=>{for(const t of Pe.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&vi.getOrCreateInstance(t).hide()});zc(vi);zs(vi);const UE=/^aria-[\w-]*$/i,Vg={"*":["class","dir","id","lang","role",UE],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},jE=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),VE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,HE=(t,e)=>{const s=t.nodeName.toLowerCase();return e.includes(s)?jE.has(s)?!!VE.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(s))};function zE(t,e,s){if(!t.length)return t;if(s&&typeof s=="function")return s(t);const r=new window.DOMParser().parseFromString(t,"text/html"),o=[].concat(...r.body.querySelectorAll("*"));for(const c of o){const u=c.nodeName.toLowerCase();if(!Object.keys(e).includes(u)){c.remove();continue}const f=[].concat(...c.attributes),p=[].concat(e["*"]||[],e[u]||[]);for(const m of f)HE(m,p)||c.removeAttribute(m.nodeName)}return r.body.innerHTML}const WE="TemplateFactory",ZE={allowList:Vg,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},qE={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},KE={entry:"(string|element|function|null)",selector:"(string|element)"};class GE extends Na{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ZE}static get DefaultType(){return qE}static get NAME(){return WE}getContent(){return Object.values(this._config.content).map(e=>
vendor: 4,377 bytes, line 5
5this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,o]of Object.entries(this._config.content))this._setContent(e,o,r);const s=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&s.classList.add(...n.split(" ")),s}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[s,n]of Object.entries(e))super._typeCheckConfig({selector:s,entry:n},KE)}_setContent(e,s,n){const r=Pe.findOne(n,e);if(r){if(s=this._resolvePossibleFunction(s),!s){r.remove();return}if(Mn(s)){this._putElementInTemplate(_i(s),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(s);return}r.textContent=s}}_maybeSanitize(e){return this._config.sanitize?zE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return ms(e,[void 0,this])}_putElementInTemplate(e,s){if(this._config.html){s.innerHTML="",s.append(e);return}s.textContent=e.textContent}}const YE="tooltip",JE=new Set(["sanitize","allowList","sanitizeFn"]),hu="fade",XE="modal",wl="show",QE=".tooltip-inner",Dm=`.${XE}`,Mm="hide.bs.modal",Ho="hover",pu="focus",mu="click",eT="manual",tT="hide",sT="hidden",nT="show",iT="shown",rT="inserted",oT="click",aT="focusin",lT="focusout",cT="mouseenter",dT="mouseleave",uT={AUTO:"auto",TOP:"top",RIGHT:js()?"left":"right",BOTTOM:"bottom",LEFT:js()?"right":"left"},fT={allowList:Vg,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"},hT={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 wo extends tn{constructor(e,s){if(typeof mg>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,s),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 fT}static get DefaultType(){return hT}static get NAME(){return YE}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),de.off(this._element.closest(Dm),Mm,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(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=de.trigger(this._element,this.constructor.eventName(nT)),n=(vg(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(r),de.trigger(this._element,this.constructor.eventName(rT))),this._popper=this._createPopper(r),r.classList.add(wl),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))de.on(u,"mouseover",ic);const c=()=>{de.trigger(this._element,this.constructor.eventName(iT)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(c,this.tip,this._isAnimated())}
5hide(){if(!this._isShown()||de.trigger(this._element,this.constructor.eventName(tT)).defaultPrevented)return;if(this._getTipElement().classList.remove(wl),"ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))de.off(r,"mouseover",ic);this._activeTrigger[mu]=!1,this._activeTrigger[pu]=!1,this._activeTrigger[Ho]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),de.trigger(this._element,this.constructor.eventName(sT)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const s=this._getTemplateFactory(e).toHtml();if(!s)return null;s.classList.remove(hu,wl),s.classList.add(`bs-${this.constructor.NAME}-auto`);const n=ek(this.constructor.NAME).toString();return s.setAttribute("id",n),this._isAnimated()&&s.classList.add(hu),s}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new GE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[QE]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(hu)}_isShown(){return this.tip&&this.tip.classList.contains(wl)}_createPopper(e){const s=ms(this._config.placement,[this,e,this._element]),n=uT[s.toUpperCase()];return sh(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(s=>Number.parseInt(s,10)):typeof e=="function"?s=>e(s,this._element):e}_resolvePossibleFunction(e){return ms(e,[this._element,this._element])}_getPopperConfig(e){const s={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...s,...ms(this._config.popperConfig,[void 0,s])}}_setListeners(){const e=this._config.trigger.split(" ");for(const s of e)if(s==="click")de.on(this._element,this.constructor.eventName(oT),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[mu]=!(r._isShown()&&r._activeTrigger[mu]),r.toggle()});else if(s!==eT){const n=s===Ho?this.constructor.eventName(cT):this.constructor.eventName(aT),r=s===Ho?this.constructor.eventName(dT):this.constructor.eventName(lT);de.on(this._element,n,this._config.selector,o=>{const c=this._initializeOnDelegatedTarget(o);c._activeTrigger[o.type==="focusin"?pu:Ho]=!0,c._enter()}),de.on(this._element,r,this._config.selector,o=>{const c=this._initializeOnDelegatedTarget(o);c._activeTrigger[o.type==="focusout"?pu:Ho]=c._element.contains(o.relatedTarget),c._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},de.on(this._element.closest(Dm),Mm,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,s){clearTimeout(this._timeout),this._timeout=setTimeout(e,s)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const s=Rn.getDataAttributes(this._element);for(const n of Object.keys(s))JE.has(n)&&delete s[n];return e={...s,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:_i(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[s,n]of Object.entries(this._config))this.constructor.Default[s]!==n&&(e[s]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const s=wo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>
vendor: 4,490 bytes, line 5
5"u")throw new TypeError(`No method named "${e}"`);s[e]()}})}}zs(wo);const pT="popover",mT=".popover-header",_T=".popover-body",gT={...wo.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"},vT={...wo.DefaultType,content:"(null|string|element|function)"};class oh extends wo{static get Default(){return gT}static get DefaultType(){return vT}static get NAME(){return pT}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[mT]:this._getTitle(),[_T]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const s=oh.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e]()}})}}zs(oh);const bT="scrollspy",xT="bs.scrollspy",ah=`.${xT}`,yT=".data-api",wT=`activate${ah}`,Rm=`click${ah}`,kT=`load${ah}${yT}`,ET="dropdown-item",Ar="active",TT='[data-bs-spy="scroll"]',_u="[href]",ST=".nav, .list-group",Bm=".nav-link",CT=".nav-item",AT=".list-group-item",PT=`${Bm}, ${CT} > ${Bm}, ${AT}`,IT=".dropdown",LT=".dropdown-toggle",OT={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},NT={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class qc extends tn{constructor(e,s){super(e,s),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return OT}static get DefaultType(){return NT}static get NAME(){return bT}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=_i(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(s=>Number.parseFloat(s))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(de.off(this._config.target,Rm),de.on(this._config.target,Rm,_u,e=>{const s=this._observableSections.get(e.target.hash);if(s){e.preventDefault();const n=this._rootElement||window,r=s.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(s=>this._observerCallback(s),e)}_observerCallback(e){const s=c=>this._targetLinks.get(`#${c.target.id}`),n=c=>{this._previousScrollData.visibleEntryTop=c.target.offsetTop,this._process(s(c))},r=(this._rootElement||document.documentElement).scrollTop,o=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const c of e){if(!c.isIntersecting){this._activeTarget=null,this._clearActiveClass(s(c));continue}const u=c.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&u){if(n(c),!r)return;continue}!o&&!u&&n(c)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Pe.find(_u,this._config.target);for(const s of e){if(!s.hash||gi(s))continue;const n=Pe.findOne(decodeURI(s.hash),this._element);xo(n)&&(this._targetLinks.set(decodeURI(s.hash),s),this._observableSections.set(s.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ar),this._activateParents(e),de.trigger(this._element,wT,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(ET)){Pe.findOne(LT,e.closest(IT)).classList.add(Ar);return}for(const s of Pe.parents(e,ST))for(const n of Pe.prev(s,PT))n.classList.add(Ar)}_clearActiveClass(e){e.classList.remove(Ar);const s=Pe.find(`${_u}.${Ar}`,e);for(const n of s)n.classList.remove(Ar)}static jQueryInterface(e){return this.each(function(){const s=qc.getOrCreateInstance(this,e);if(typeof e=="string"){if(s[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method n
5amed "${e}"`);s[e]()}})}}de.on(window,kT,()=>{for(const t of Pe.find(TT))qc.getOrCreateInstance(t)});zs(qc);const $T="tab",DT="bs.tab",lr=`.${DT}`,MT=`hide${lr}`,RT=`hidden${lr}`,BT=`show${lr}`,FT=`shown${lr}`,UT=`click${lr}`,jT=`keydown${lr}`,VT=`load${lr}`,HT="ArrowLeft",Fm="ArrowRight",zT="ArrowUp",Um="ArrowDown",gu="Home",jm="End",Bi="active",Vm="fade",vu="show",WT="dropdown",Hg=".dropdown-toggle",ZT=".dropdown-menu",bu=`:not(${Hg})`,qT='.list-group, .nav, [role="tablist"]',KT=".nav-item, .list-group-item",GT=`.nav-link${bu}, .list-group-item${bu}, [role="tab"]${bu}`,zg='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',xu=`${GT}, ${zg}`,YT=`.${Bi}[data-bs-toggle="tab"], .${Bi}[data-bs-toggle="pill"], .${Bi}[data-bs-toggle="list"]`;class oo extends tn{constructor(e){super(e),this._parent=this._element.closest(qT),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),de.on(this._element,jT,s=>this._keydown(s)))}static get NAME(){return $T}show(){const e=this._element;if(this._elemIsActive(e))return;const s=this._getActiveElem(),n=s?de.trigger(s,MT,{relatedTarget:e}):null;de.trigger(e,BT,{relatedTarget:s}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(s,e),this._activate(e,s))}_activate(e,s){if(!e)return;e.classList.add(Bi),this._activate(Pe.getElementFromSelector(e));const n=()=>
5{if(e.getAttribute("role")!=="tab"){e.classList.add(vu);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),de.trigger(e,FT,{relatedTarget:s})};this._queueCallback(n,e,e.classList.contains(Vm))}_deactivate(e,s){if(!e)return;e.classList.remove(Bi),e.blur(),this._deactivate(Pe.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(vu);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),de.trigger(e,RT,{relatedTarget:s})};this._queueCallback(n,e,e.classList.contains(Vm))}_keydown(e){if(![HT,Fm,zT,Um,gu,jm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const s=this._getChildren().filter(r=>!gi(r));let n;if([gu,jm].includes(e.key))n=s[e.key===gu?0:s.length-1];else{const r=[Fm,Um].includes(e.key);n=nh(s,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),oo.getOrCreateInstance(n).show())}_getChildren(){return Pe.find(xu,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,s){this._setAttributeIfNotExists(e,"role","tablist");for(const n of s)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const s=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",s),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),s||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const s=Pe.getElementFromSelector(e);s&&(this._setAttributeIfNotExists(s,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(s,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,s){const n=this._getOuterElement(e);if(!n.classList.contains(WT))return;const r=(o,c)=>{const u=Pe.findOne(o,n);u&&u.classList.toggle(c,s)};r(Hg,Bi),r(ZT,vu),n.setAttribute("aria-expanded",s)}_setAttributeIfNotExists(e,s,n){e.hasAttribute(s)||e.setAttribute(s,n)}_elemIsActive(e){return e.classList.contains(Bi)}_getInnerElement(e){return e.matches(xu)?e:Pe.findOne(xu,e)}_getOuterElement(e){return e.closest(KT)||e}static jQueryInterface(e){return this.each(function(){const s=oo.getOrCreateInstance(this);if(typeof e=="string"){if(s[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);s[e]()}})}}de.on(document,UT,zg,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!gi(this)&&oo.getOrCreateInstance(this).show()});de.on(window,VT,()=>{for(const t of Pe.find(YT))oo.getOrCreateInstance(t)});zs(oo);const JT="toast",XT="bs.toast",ki=`.${XT}`,QT=`mouseover${ki}`,eS=`mouseout${ki}`,tS=`focusin${ki}`,sS=`focusout${ki}`,nS=`hide${ki}`,iS=`hidden${ki}`,rS=`show${ki}`,oS=`shown${ki}`,aS="fade",Hm="hide",kl="show",El="showing",lS={animation:"boolean",autohide:"boolean",delay:"number"},cS={animation:!0,autohide:!0,delay:5e3};class Kc extends tn{constructor(e,s){super(e,s),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return cS}static get DefaultType(){return lS}static get NAME(){return JT}show(){if(de.trigger(this._element,rS).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(aS);const s=()=>{this._element.classList.remove(El),de.trigger(this._element,oS),this._maybeScheduleHide()};this._element.classList.remove(Hm),Oa(this._element),this._element.classList.add(kl,El),this._queueCallback(s,this._element,this._config.animation)}hide(){if(!this.isShown()||de.trigger(this._element,nS).defaultPrevented)return;const s=()=>{this._element.classList.add(Hm),this._element.classList.remove(El,kl),de.trigger(this._element,iS)};this._element.classList.add(El),this._queueCallback(s,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(kl),super.dispose()}isShown(){return this._element.classList.contains(kl)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,s){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=s;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=s;break}}if(s){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){de.on(this._element,QT,e=>this._onInteraction(e,!0)),de.on(this._element,eS,e=>this._onInteraction(e,!1)),de.on(this._element,tS,e=>this._onInteraction(e,!0)),de.on(this._element,sS,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const s=Kc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>
vendor: 4,199 bytes, line 5
5"u")throw new TypeError(`No method named "${e}"`);s[e](this)}})}}zc(Kc);zs(Kc);function Wg(t,e){return function(){return t.apply(e,arguments)}}const{toString:dS}=Object.prototype,{getPrototypeOf:lh}=Object,{iterator:Gc,toStringTag:Zg}=Symbol,Yc=(t=>e=>{const s=dS.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),sn=t=>(t=t.toLowerCase(),e=>Yc(e)===t),Jc=t=>e=>typeof e===t,{isArray:ko}=Array,ua=Jc("undefined");function Ma(t){return t!==null&&!ua(t)&&t.constructor!==null&&!ua(t.constructor)&&vs(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const qg=sn("ArrayBuffer");function uS(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&qg(t.buffer),e}const fS=Jc("string"),vs=Jc("function"),Kg=Jc("number"),Ra=t=>t!==null&&typeof t=="object",hS=t=>t===!0||t===!1,Vl=t=>{if(Yc(t)!=="object")return!1;const e=lh(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Zg in t)&&!(Gc in t)},pS=t=>{if(!Ra(t)||Ma(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},mS=sn("Date"),_S=sn("File"),gS=sn("Blob"),vS=sn("FileList"),bS=t=>Ra(t)&&vs(t.pipe),xS=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||vs(t.append)&&((e=Yc(t))==="formdata"||e==="object"&&vs(t.toString)&&t.toString()==="[object FormData]"))},yS=sn("URLSearchParams"),[wS,kS,ES,TS]=["ReadableStream","Request","Response","Headers"].map(sn),SS=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ba(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let n,r;if(typeof t!="object"&&(t=[t]),ko(t))for(n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else{if(Ma(t))return;const o=s?Object.getOwnPropertyNames(t):Object.keys(t),c=o.length;let u;for(n=0;n<c;n++)u=o[n],e.call(null,t[u],u,t)}}function Gg(t,e){if(Ma(t))return null;e=e.toLowerCase();const s=Object.keys(t);let n=s.length,r;for(;n-- >0;)if(r=s[n],e===r.toLowerCase())return r;return null}const Fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yg=t=>!ua(t)&&t!==Fi;function ef(){const{caseless:t}=Yg(this)&&this||{},e={},s=(n,r)=>{const o=t&&Gg(e,r)||r;Vl(e[o])&&Vl(n)?e[o]=ef(e[o],n):Vl(n)?e[o]=ef({},n):ko(n)?e[o]=n.slice():e[o]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&Ba(arguments[n],s);return e}const CS=(t,e,s,{allOwnKeys:n}={})=>(Ba(e,(r,o)=>{s&&vs(r)?t[o]=Wg(r,s):t[o]=r},{allOwnKeys:n}),t),AS=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),PS=(t,e,s,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),s&&Object.assign(t.prototype,s)},IS=(t,e,s,n)=>{let r,o,c;const u={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)c=r[o],(!n||n(c,t,e))&&!u[c]&&(e[c]=t[c],u[c]=!0);t=s!==!1&&lh(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},LS=(t,e,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=e.length;const n=t.indexOf(e,s);return n!==-1&&n===s},OS=t=>{if(!t)return null;if(ko(t))return t;let e=t.length;if(!Kg(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},NS=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&lh(Uint8Array)),$S=(t,e)=>{const n=(t&&t[Gc]).call(t);let r;for(;(r=n.next())&&!r.done;){const o=r.value;e.call(t,o[0],o[1])}},DS=(t,e)=>{let s;const n=[];for(;(s=t.exec(e))!==null;)n.push(s);return n},MS=sn("HTMLFormElement"),RS=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,n,r){return n.toUpperCase()+r}),zm=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),BS=sn("RegExp"),Jg=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),n={};Ba(s,(r,o)=>{let c;(c=e(r,o,t))!==!1&&(n[o]=c||r)}),Object.defineProperties(t,n)},FS=t=>{Jg(t,(e,s)=>{if(vs(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const n=t[s];if(vs(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},US=(t,e)=>{const s={},n=r=>{r.forEach(o=>{s[o]=!0})};return ko(t)?n(t):n(String(t).split(e)),s},jS=()=>{},VS=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;
vendor: 4,021 bytes, line 5
5function HS(t){return!!(t&&vs(t.append)&&t[Zg]==="FormData"&&t[Gc])}const zS=t=>{const e=new Array(10),s=(n,r)=>{if(Ra(n)){if(e.indexOf(n)>=0)return;if(Ma(n))return n;if(!("toJSON"in n)){e[r]=n;const o=ko(n)?[]:{};return Ba(n,(c,u)=>{const f=s(c,r+1);!ua(f)&&(o[u]=f)}),e[r]=void 0,o}}return n};return s(t,0)},WS=sn("AsyncFunction"),ZS=t=>t&&(Ra(t)||vs(t))&&vs(t.then)&&vs(t.catch),Xg=((t,e)=>t?setImmediate:e?((s,n)=>(Fi.addEventListener("message",({source:r,data:o})=>{r===Fi&&o===s&&n.length&&n.shift()()},!1),r=>{n.push(r),Fi.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",vs(Fi.postMessage)),qS=typeof queueMicrotask<"u"?queueMicrotask.bind(Fi):typeof process<"u"&&process.nextTick||Xg,KS=t=>t!=null&&vs(t[Gc]),te={isArray:ko,isArrayBuffer:qg,isBuffer:Ma,isFormData:xS,isArrayBufferView:uS,isString:fS,isNumber:Kg,isBoolean:hS,isObject:Ra,isPlainObject:Vl,isEmptyObject:pS,isReadableStream:wS,isRequest:kS,isResponse:ES,isHeaders:TS,isUndefined:ua,isDate:mS,isFile:_S,isBlob:gS,isRegExp:BS,isFunction:vs,isStream:bS,isURLSearchParams:yS,isTypedArray:NS,isFileList:vS,forEach:Ba,merge:ef,extend:CS,trim:SS,stripBOM:AS,inherits:PS,toFlatObject:IS,kindOf:Yc,kindOfTest:sn,endsWith:LS,toArray:OS,forEachEntry:$S,matchAll:DS,isHTMLForm:MS,hasOwnProperty:zm,hasOwnProp:zm,reduceDescriptors:Jg,freezeMethods:FS,toObjectSet:US,toCamelCase:RS,noop:jS,toFiniteNumber:VS,findKey:Gg,global:Fi,isContextDefined:Yg,isSpecCompliantForm:HS,toJSONObject:zS,isAsyncFn:WS,isThenable:ZS,setImmediate:Xg,asap:qS,isIterable:KS};function He(t,e,s,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),s&&(this.config=s),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}te.inherits(He,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:te.toJSONObject(this.config),code:this.code,status:this.status}}});const Qg=He.prototype,ev={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ev[t]={value:t}});Object.defineProperties(He,ev);Object.defineProperty(Qg,"isAxiosError",{value:!0});He.from=(t,e,s,n,r,o)=>{const c=Object.create(Qg);return te.toFlatObject(t,c,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),He.call(c,t.message,e,s,n,r),c.cause=t,c.name=t.name,o&&Object.assign(c,o),c};const GS=null;function tf(t){return te.isPlainObject(t)||te.isArray(t)}function tv(t){return te.endsWith(t,"[]")?t.slice(0,-2):t}function Wm(t,e,s){return t?t.concat(e).map(function(r,o){return r=tv(r),!s&&o?"["+r+"]":r}).join(s?".":""):e}function YS(t){return te.isArray(t)&&!t.some(tf)}const JS=te.toFlatObject(te,{},null,function(e){return/^is[A-Z]/.test(e)});function Xc(t,e,s){if(!te.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=te.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,M){return!te.isUndefined(M[C])});const n=s.metaTokens,r=s.visitor||m,o=s.dots,c=s.indexes,f=(s.Blob||typeof Blob<"u"&&Blob)&&te.isSpecCompliantForm(e);if(!te.isFunction(r))throw new TypeError("visitor must be a function");function p(T){if(T===null)return"";if(te.isDate(T))return T.toISOString();if(te.isBoolean(T))return T.toString();if(!f&&te.isBlob(T))throw new He("Blob is not supported. Use a Buffer instead.");return te.isArrayBuffer(T)||te.isTypedArray(T)?f&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function m(T,C,M){let j=T;if(T&&!M&&typeof T=="object"){if(te.endsWith(C,"{}"))C=n?C:C.slice(0,-2),T=JSON.stringify(T);else if(te.isArray(T)&&YS(T)||(te.isFileList(T)||te.endsWith(C,"[]"))&&(j=te.toArray(T)))return C=tv(C),j.forEac
vendor: 4,256 bytes, line 5
5h(function(P,$){!(te.isUndefined(P)||P===null)&&e.append(c===!0?Wm([C],$,o):c===null?C:C+"[]",p(P))}),!1}return tf(T)?!0:(e.append(Wm(M,C,o),p(T)),!1)}const _=[],y=Object.assign(JS,{defaultVisitor:m,convertValue:p,isVisitable:tf});function S(T,C){if(!te.isUndefined(T)){if(_.indexOf(T)!==-1)throw Error("Circular reference detected in "+C.join("."));_.push(T),te.forEach(T,function(j,D){(!(te.isUndefined(j)||j===null)&&r.call(e,j,te.isString(D)?D.trim():D,C,y))===!0&&S(j,C?C.concat(D):[D])}),_.pop()}}if(!te.isObject(t))throw new TypeError("data must be an object");return S(t),e}function Zm(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function ch(t,e){this._pairs=[],t&&Xc(t,this,e)}const sv=ch.prototype;sv.append=function(e,s){this._pairs.push([e,s])};sv.toString=function(e){const s=e?function(n){return e.call(this,n,Zm)}:Zm;return this._pairs.map(function(r){return s(r[0])+"="+s(r[1])},"").join("&")};function XS(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nv(t,e,s){if(!e)return t;const n=s&&s.encode||XS;te.isFunction(s)&&(s={serialize:s});const r=s&&s.serialize;let o;if(r?o=r(e,s):o=te.isURLSearchParams(e)?e.toString():new ch(e,s).toString(n),o){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class qm{constructor(){this.handlers=[]}use(e,s,n){return this.handlers.push({fulfilled:e,rejected:s,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){te.forEach(this.handlers,function(n){n!==null&&e(n)})}}const iv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QS=typeof URLSearchParams<"u"?URLSearchParams:ch,e4=typeof FormData<"u"?FormData:null,t4=typeof Blob<"u"?Blob:null,s4={isBrowser:!0,classes:{URLSearchParams:QS,FormData:e4,Blob:t4},protocols:["http","https","file","blob","url","data"]},dh=typeof window<"u"&&typeof document<"u",sf=typeof navigator=="object"&&navigator||void 0,n4=dh&&(!sf||["ReactNative","NativeScript","NS"].indexOf(sf.product)<0),i4=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r4=dh&&window.location.href||"http://localhost",o4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dh,hasStandardBrowserEnv:n4,hasStandardBrowserWebWorkerEnv:i4,navigator:sf,origin:r4},Symbol.toStringTag,{value:"Module"})),Xt={...o4,...s4};function a4(t,e){return Xc(t,new Xt.classes.URLSearchParams,{visitor:function(s,n,r,o){return Xt.isNode&&te.isBuffer(s)?(this.append(n,s.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function l4(t){return te.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function c4(t){const e={},s=Object.keys(t);let n;const r=s.length;let o;for(n=0;n<r;n++)o=s[n],e[o]=t[o];return e}function rv(t){function e(s,n,r,o){let c=s[o++];if(c==="__proto__")return!0;const u=Number.isFinite(+c),f=o>=s.length;return c=!c&&te.isArray(r)?r.length:c,f?(te.hasOwnProp(r,c)?r[c]=[r[c],n]:r[c]=n,!u):((!r[c]||!te.isObject(r[c]))&&(r[c]=[]),e(s,n,r[c],o)&&te.isArray(r[c])&&(r[c]=c4(r[c])),!u)}if(te.isFormData(t)&&te.isFunction(t.entries)){const s={};return te.forEachEntry(t,(n,r)=>{e(l4(n),r,s,0)}),s}return null}function d4(t,e,s){if(te.isString(t))try{return(e||JSON.parse)(t),te.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(t)}const Fa={transitional:iv,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const n=s.getContentType()||"",r=n.indexOf("application/json")>-1,o=te.isObject(e);if(o&&te.isHTMLForm(e)&&(e=new FormData(e)),te.isFormData(e))return r?JSON.stringify(rv(e)):e;if(te.isArrayBuffer(e)||te.isBuffer(e)||te.isStream(e)||te.isFile(e)||te.isBlob(e)||te.isReadableStream(e))return e;if(te.isArrayBufferView(e))return e.buffer;if(te.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(o){if(n.indexOf("application/x-www-form-urlencoded")>
vendor: 4,439 bytes, lines 5-7
5-1)return a4(e,this.formSerializer).toString();if((u=te.isFileList(e))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Xc(u?{"files[]":e}:e,f&&new f,this.formSerializer)}}return o||r?(s.setContentType("application/json",!1),d4(e)):e}],transformResponse:[function(e){const s=this.transitional||Fa.transitional,n=s&&s.forcedJSONParsing,r=this.responseType==="json";if(te.isResponse(e)||te.isReadableStream(e))return e;if(e&&te.isString(e)&&(n&&!this.responseType||r)){const c=!(s&&s.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(u){if(c)throw u.name==="SyntaxError"?He.from(u,He.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xt.classes.FormData,Blob:Xt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(["delete","get","head","post","put","patch"],t=>{Fa.headers[t]={}});const u4=te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),f4=t=>{const e={};let s,n,r;return t&&t.split(` 6`).forEach(function(c){r=c.indexOf(":"),s=c.substring(0,r).trim().toLowerCase(),n=c.substring(r+1).trim(),!(!s||e[s]&&u4[s])&&(s==="set-cookie"?e[s]?e[s].push(n):e[s]=[n]:e[s]=e[s]?e[s]+", "+n:n)}),e},Km=Symbol("internals");function zo(t){return t&&String(t).trim().toLowerCase()}function Hl(t){return t===!1||t==null?t:te.isArray(t)?t.map(Hl):String(t)}function h4(t){const e=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=s.exec(t);)e[n[1]]=n[2];return e}const p4=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function yu(t,e,s,n,r){if(te.isFunction(n))return n.call(this,e,s);if(r&&(e=s),!!te.isString(e)){if(te.isString(n))return e.indexOf(n)!==-1;if(te.isRegExp(n))return n.test(e)}}function m4(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,n)=>s.toUpperCase()+n)}function _4(t,e){const s=te.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+s,{value:function(r,o,c){return this[n].call(this,e,r,o,c)},configurable:!0})})}let bs=class{constructor(e){e&&this.set(e)}set(e,s,n){const r=this;function o(u,f,p){const m=zo(f);if(!m)throw new Error("header name must be a non-empty string");const _=te.findKey(r,m);(!_||r[_]===void 0||p===!0||p===void 0&&r[_]!==!1)&&(r[_||f]=Hl(u))}const c=(u,f)=>te.forEach(u,(p,m)=>o(p,m,f));if(te.isPlainObject(e)||e instanceof this.constructor)c(e,s);else if(te.isString(e)&&(e=e.trim())&&!p4(e))c(f4(e),s);else if(te.isObject(e)&&te.isIterable(e)){let u={},f,p;for(const m of e){if(!te.isArray(m))throw TypeError("Object iterator must return a key-value pair");u[p=m[0]]=(f=u[p])?te.isArray(f)?[...f,m[1]]:[f,m[1]]:m[1]}c(u,s)}else e!=null&&o(s,e,n);return this}get(e,s){if(e=zo(e),e){const n=te.findKey(this,e);if(n){const r=this[n];if(!s)return r;if(s===!0)return h4(r);if(te.isFunction(s))return s.call(this,r,n);if(te.isRegExp(s))return s.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,s){if(e=zo(e),e){const n=te.findKey(this,e);return!!(n&&this[n]!==void 0&&(!s||yu(this,this[n],n,s)))}return!1}delete(e,s){const n=this;let r=!1;function o(c){if(c=zo(c),c){const u=te.findKey(n,c);u&&(!s||yu(n,n[u],u,s))&&(delete n[u],r=!0)}}return te.isArray(e)?e.forEach(o):o(e),r}clear(e){const s=Object.keys(this);let n=s.length,r=!1;for(;n--;){const o=s[n];(!e||yu(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const s=this,n={};return te.forEach(this,(r,o)=>{const c=te.findKey(n,o);if(c){s[c]=Hl(r),delete s[o];return}const u=e?m4(o):String(o).trim();u!==o&&delete s[o],s[u]=Hl(r),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const s=Object.create(null);return te.forEach(this,(n,r)=>{n!=null&&n!==!1&&(s[r]=e&&te.isArray(n)?n.join(", "):n)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,s])=>e+": "+s).join(` 7`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...s){const n=new this(e);
7return s.forEach(r=>n.set(r)),n}static accessor(e){const n=(this[Km]=this[Km]={accessors:{}}).accessors,r=this.prototype;function o(c){const u=zo(c);n[u]||(_4(r,c),n[u]=!0)}return te.isArray(e)?e.forEach(o):o(e),this}};bs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);te.reduceDescriptors(bs.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[s]=n}}});te.freezeMethods(bs);function wu(t,e){const s=this||Fa,n=e||s,r=bs.from(n.headers);let o=n.data;return te.forEach(t,function(u){o=u.call(s,o,r.normalize(),e?e.status:void 0)}),r.normalize(),o}function ov(t){return!!(t&&t.__CANCEL__)}function Eo(t,e,s){He.call(this,t??"canceled",He.ERR_CANCELED,e,s),this.name="CanceledError"}te.inherits(Eo,He,{__CANCEL__:!0});function av(t,e,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?t(s):e(new He("Request failed with status code "+s.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function g4(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function v4(t,e){t=t||10;const s=new Array(t),n=new Array(t);let r=0,o=0,c;return e=e!==void 0?e:1e3,function(f){const p=Date.now(),m=n[o];c||(c=p),s[r]=f,n[r]=p;let _=o,y=0;for(;_!==r;)y+=s[_++],_=_%t;if(r=(r+1)%t,r===o&&(o=(o+1)%t),p-c<e)return;const S=m&&p-m;return S?Math.round(y*1e3/S):void 0}}function b4(t,e){let s=0,n=1e3/e,r,o;const c=(p,m=Date.now())=>{s=m,r=null,o&&(clearTimeout(o),o=null),t(...p)};return[(...p)=>{const m=Date.now(),_=m-s;_>=n?c(p,m):(r=p,o||(o=setTimeout(()=>{o=null,c(r)},n-_)))},()=>r&&c(r)]}const ac=(t,e,s=3)=>{let n=0;const r=v4(50,250);return b4(o=>{const c=o.loaded,u=o.lengthComputable?o.total:void 0,f=c-n,p=r(f),m=c<=u;n=c;const _={loaded:c,total:u,progress:u?c/u:void 0,bytes:f,rate:p||void 0,estimated:p&&u&&m?(u-c)/p:void 0,event:o,lengthComputable:u!=null,[e?"download":"upload"]:!0};t(_)},s)},Gm=(t,e)=>{const s=t!=null;return[n=>e[0]({lengthComputable:s,total:t,loaded:n}),e[1]]},Ym=t=>(...e)=>te.asap(()=>t(...e)),x4=Xt.hasStandardBrowserEnv?((t,e)=>s=>(s=new URL(s,Xt.origin),t.protocol===s.protocol&&t.host===s.host&&(e||t.port===s.port)))(new URL(Xt.origin),Xt.navigator&&/(msie|trident)/i.test(Xt.navigator.userAgent)):()=>!0,y4=Xt.hasStandardBrowserEnv?{write(t,e,s,n,r,o){const c=[t+"="+encodeURIComponent(e)];te.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),te.isString(n)&&c.push("path="+n),te.isString(r)&&c.push("domain="+r),o===!0&&c.push("secure"),document.cookie=c.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function w4(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function k4(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function lv(t,e,s){let n=!w4(e);return t&&(n||s==!1)?k4(t,e):e}const Jm=t=>t instanceof bs?{...t}:t;function Qi(t,e){e=e||{};const s={};function n(p,m,_,y){return te.isPlainObject(p)&&te.isPlainObject(m)?te.merge.call({caseless:y},p,m):te.isPlainObject(m)?te.merge({},m):te.isArray(m)?m.slice():m}function r(p,m,_,y){if(te.isUndefined(m)){if(!te.isUndefined(p))return n(void 0,p,_,y)}else return n(p,m,_,y)}function o(p,m){if(!te.isUndefined(m))return n(void 0,m)}function c(p,m){if(te.isUndefined(m)){if(!te.isUndefined(p))return n(void 0,p)}else return n(void 0,m)}function u(p,m,_){if(_ in e)return n(p,m);if(_ in t)return n(void 0,p)}const f={url:o,method:o,data:o,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:u,headers:(p,m,_)=>r(Jm(p),Jm(m),_,!0)};return te.forEach(Object.keys({...t,...e}),function(m){const _=f[m]||r,y=_(t[m],e[m],m);te.isUndefined(y)&&_!==u||(s[m]=y)}),s}const cv=t=>{const e=Qi({},t);let{data:s,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:o,headers:c,auth:u}=e;e.headers=c=bs.from(c),e.url=nv(lv(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(te.isFormData(s)){if(Xt.hasStandardBrowserEnv||Xt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((f=c.getContentType())!==!1){const[p,...m]=f?f.split(";").map(_=>
vendor: 4,090 bytes, line 7
7_.trim()).filter(Boolean):[];c.setContentType([p||"multipart/form-data",...m].join("; "))}}if(Xt.hasStandardBrowserEnv&&(n&&te.isFunction(n)&&(n=n(e)),n||n!==!1&&x4(e.url))){const p=r&&o&&y4.read(o);p&&c.set(r,p)}return e},E4=typeof XMLHttpRequest<"u",T4=E4&&function(t){return new Promise(function(s,n){const r=cv(t);let o=r.data;const c=bs.from(r.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:p}=r,m,_,y,S,T;function C(){S&&S(),T&&T(),r.cancelToken&&r.cancelToken.unsubscribe(m),r.signal&&r.signal.removeEventListener("abort",m)}let M=new XMLHttpRequest;M.open(r.method.toUpperCase(),r.url,!0),M.timeout=r.timeout;function j(){if(!M)return;const P=bs.from("getAllResponseHeaders"in M&&M.getAllResponseHeaders()),U={data:!u||u==="text"||u==="json"?M.responseText:M.response,status:M.status,statusText:M.statusText,headers:P,config:t,request:M};av(function(se){s(se),C()},function(se){n(se),C()},U),M=null}"onloadend"in M?M.onloadend=j:M.onreadystatechange=function(){!M||M.readyState!==4||M.status===0&&!(M.responseURL&&M.responseURL.indexOf("file:")===0)||setTimeout(j)},M.onabort=function(){M&&(n(new He("Request aborted",He.ECONNABORTED,t,M)),M=null)},M.onerror=function(){n(new He("Network Error",He.ERR_NETWORK,t,M)),M=null},M.ontimeout=function(){let $=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const U=r.transitional||iv;r.timeoutErrorMessage&&($=r.timeoutErrorMessage),n(new He($,U.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,t,M)),M=null},o===void 0&&c.setContentType(null),"setRequestHeader"in M&&te.forEach(c.toJSON(),function($,U){M.setRequestHeader(U,$)}),te.isUndefined(r.withCredentials)||(M.withCredentials=!!r.withCredentials),u&&u!=="json"&&(M.responseType=r.responseType),p&&([y,T]=ac(p,!0),M.addEventListener("progress",y)),f&&M.upload&&([_,S]=ac(f),M.upload.addEventListener("progress",_),M.upload.addEventListener("loadend",S)),(r.cancelToken||r.signal)&&(m=P=>{M&&(n(!P||P.type?new Eo(null,t,M):P),M.abort(),M=null)},r.cancelToken&&r.cancelToken.subscribe(m),r.signal&&(r.signal.aborted?m():r.signal.addEventListener("abort",m)));const D=g4(r.url);if(D&&Xt.protocols.indexOf(D)===-1){n(new He("Unsupported protocol "+D+":",He.ERR_BAD_REQUEST,t));return}M.send(o||null)})},S4=(t,e)=>{const{length:s}=t=t?t.filter(Boolean):[];if(e||s){let n=new AbortController,r;const o=function(p){if(!r){r=!0,u();const m=p instanceof Error?p:this.reason;n.abort(m instanceof He?m:new Eo(m instanceof Error?m.message:m))}};let c=e&&setTimeout(()=>{c=null,o(new He(`timeout ${e} of ms exceeded`,He.ETIMEDOUT))},e);const u=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(o):p.removeEventListener("abort",o)}),t=null)};t.forEach(p=>p.addEventListener("abort",o));const{signal:f}=n;return f.unsubscribe=()=>te.asap(u),f}},C4=function*(t,e){let s=t.byteLength;if(s<e){yield t;return}let n=0,r;for(;n<s;)r=n+e,yield t.slice(n,r),n=r},A4=async function*(t,e){for await(const s of P4(t))yield*C4(s,e)},P4=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:s,value:n}=await e.read();if(s)break;yield n}}finally{await e.cancel()}},Xm=(t,e,s,n)=>{const r=A4(t,e);let o=0,c,u=f=>{c||(c=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:p,value:m}=await r.next();if(p){u(),f.close();return}let _=m.byteLength;if(s){let y=o+=_;s(y)}f.enqueue(new Uint8Array(m))}catch(p){throw u(p),p}},cancel(f){return u(f),r.return()}},{highWaterMark:2})},Qc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",dv=Qc&&typeof ReadableStream=="function",I4=Qc&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),uv=(t,...e)=>{try{return!!t(...e)}catch{return!1}},L4=dv&&uv(()=>{let t=!1;const e=new Request(Xt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Qm=64*1024,nf=dv&&uv(()=>te.isReadableStream(new Response("").body)),lc={stream:nf&&(t=>t.body)};Qc&&(t=>
7{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!lc[e]&&(lc[e]=te.isFunction(t[e])?s=>s[e]():(s,n)=>{throw new He(`Response type '${e}' is not supported`,He.ERR_NOT_SUPPORT,n)})})})(new Response);const O4=async t=>{if(t==null)return 0;if(te.isBlob(t))return t.size;if(te.isSpecCompliantForm(t))return(await new Request(Xt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(te.isArrayBufferView(t)||te.isArrayBuffer(t))return t.byteLength;if(te.isURLSearchParams(t)&&(t=t+""),te.isString(t))return(await I4(t)).byteLength},N4=async(t,e)=>{const s=te.toFiniteNumber(t.getContentLength());return s??O4(e)},$4=Qc&&(async t=>{let{url:e,method:s,data:n,signal:r,cancelToken:o,timeout:c,onDownloadProgress:u,onUploadProgress:f,responseType:p,headers:m,withCredentials:_="same-origin",fetchOptions:y}=cv(t);p=p?(p+"").toLowerCase():"text";let S=S4([r,o&&o.toAbortSignal()],c),T;const C=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let M;try{if(f&&L4&&s!=="get"&&s!=="head"&&(M=await N4(m,n))!==0){let U=new Request(e,{method:"POST",body:n,duplex:"half"}),J;if(te.isFormData(n)&&(J=U.headers.get("content-type"))&&m.setContentType(J),U.body){const[se,W]=Gm(M,ac(Ym(f)));n=Xm(U.body,Qm,se,W)}}te.isString(_)||(_=_?"include":"omit");const j="credentials"in Request.prototype;T=new Request(e,{...y,signal:S,method:s.toUpperCase(),headers:m.normalize().toJSON(),body:n,duplex:"half",credentials:j?_:void 0});let D=await fetch(T,y);const P=nf&&(p==="stream"||p==="response");if(nf&&(u||P&&C)){const U={};["status","statusText","headers"].forEach(F=>{U[F]=D[F]});const J=te.toFiniteNumber(D.headers.get("content-length")),[se,W]=u&&Gm(J,ac(Ym(u),!0))||[];D=new Response(Xm(D.body,Qm,se,()=>{W&&W(),C&&C()}),U)}p=p||"text";let $=await lc[te.findKey(lc,p)||"text"](D,t);return!P&&C&&C(),await new Promise((U,J)=>{av(U,J,{data:$,headers:bs.from(D.headers),status:D.status,statusText:D.statusText,config:t,request:T})})}catch(j){throw C&&C(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new He("Network Error",He.ERR_NETWORK,t,T),{cause:j.cause||j}):He.from(j,j&&j.code,t,T)}}),rf={http:GS,xhr:T4,fetch:$4};te.forEach(rf,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const e0=t=>`- ${t}`,D4=t=>te.isFunction(t)||t===null||t===!1,fv={getAdapter:t=>{t=te.isArray(t)?t:[t];const{length:e}=t;let s,n;const r={};for(let o=0;o<e;o++){s=t[o];let c;if(n=s,!D4(s)&&(n=rf[(c=String(s)).toLowerCase()],n===void 0))throw new He(`Unknown adapter '${c}'`);if(n)break;r[c||"#"+o]=n}if(!n){const o=Object.entries(r).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=e?o.length>1?`since : 8`+o.map(e0).join(` 9`):" "+e0(o[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:rf};function ku(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Eo(null,t)}function t0(t){return ku(t),t.headers=bs.from(t.headers),t.data=wu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),fv.getAdapter(t.adapter||Fa.adapter)(t).then(function(n){return ku(t),n.data=wu.call(t,t.transformResponse,n),n.headers=bs.from(n.headers),n},function(n){return ov(n)||(ku(t),n&&n.response&&(n.response.data=wu.call(t,t.transformResponse,n.response),n.response.headers=bs.from(n.response.headers))),Promise.reject(n)})}const hv="1.11.0",ed={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ed[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const s0={};ed.transitional=function(e,s,n){function r(o,c){return"[Axios v"+hv+"] Transitional option '"+o+"'"+c+(n?". "+n:"")}return(o,c,u)=>{if(e===!1)throw new He(r(c," has been removed"+(s?" in "+s:"")),He.ERR_DEPRECATED);return s&&!s0[c]&&(s0[c]=!0,console.warn(r(c," has been deprecated since v"+s+" and will be removed in the near future"))),e?e(o,c,u):!0}};ed.spelling=function(e){return(s,n)=>(console.warn(`${n} is likely a misspelling of ${e}
9`),!0)};function M4(t,e,s){if(typeof t!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let r=n.length;for(;r-- >0;){const o=n[r],c=e[o];if(c){const u=t[o],f=u===void 0||c(u,o,t);if(f!==!0)throw new He("option "+o+" must be "+f,He.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new He("Unknown option "+o,He.ERR_BAD_OPTION)}}const zl={assertOptions:M4,validators:ed},an=zl.validators;let zi=class{constructor(e){this.defaults=e||{},this.interceptors={request:new qm,response:new qm}}async request(e,s){try{return await this._request(e,s)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` 10`+o):n.stack=o}catch{}}throw n}}_request(e,s){typeof e=="string"?(s=s||{},s.url=e):s=e||{},s=Qi(this.defaults,s);const{transitional:n,paramsSerializer:r,headers:o}=s;n!==void 0&&zl.assertOptions(n,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),r!=null&&(te.isFunction(r)?s.paramsSerializer={serialize:r}:zl.assertOptions(r,{encode:an.function,serialize:an.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),zl.assertOptions(s,{baseUrl:an.spelling("baseURL"),withXsrfToken:an.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let c=o&&te.merge(o.common,o[s.method]);o&&te.forEach(["delete","get","head","post","put","patch","common"],T=>{delete o[T]}),s.headers=bs.concat(c,o);const u=[];let f=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(s)===!1||(f=f&&C.synchronous,u.unshift(C.fulfilled,C.rejected))});const p=[];this.interceptors.response.forEach(function(C){p.push(C.fulfilled,C.rejected)});let m,_=0,y;if(!f){const T=[t0.bind(this),void 0];for(T.unshift(...u),T.push(...p),y=T.length,m=Promise.resolve(s);_<y;)m=m.then(T[_++],T[_++]);return m}y=u.length;let S=s;for(_=0;_<y;){const T=u[_++],C=u[_++];try{S=T(S)}catch(M){C.call(this,M);break}}try{m=t0.call(this,S)}catch(T){return Promise.reject(T)}for(_=0,y=p.length;_<y;)m=m.then(p[_++],p[_++]);return m}getUri(e){e=Qi(this.defaults,e);const s=lv(e.baseURL,e.url,e.allowAbsoluteUrls);return nv(s,e.params,e.paramsSerializer)}};te.forEach(["delete","get","head","options"],function(e){zi.prototype[e]=function(s,n){return this.request(Qi(n||{},{method:e,url:s,data:(n||{}).data}))}});te.forEach(["post","put","patch"],function(e){function s(n){return function(o,c,u){return this.request(Qi(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:c}))}}zi.prototype[e]=s(),zi.prototype[e+"Form"]=s(!0)});let R4=class pv{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});const n=this;this.promise.then(r=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](r);n._listeners=null}),this.promise.then=r=>{let o;const c=new Promise(u=>{n.subscribe(u),o=u}).then(r);return c.cancel=function(){n.unsubscribe(o)},c},e(function(o,c,u){n.reason||(n.reason=new Eo(o,c,u),s(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const e=new AbortController,s=n=>{e.abort(n)};return this.subscribe(s),e.signal.unsubscribe=()=>this.unsubscribe(s),e.signal}static source(){let e;return{token:new pv(function(r){e=r}),cancel:e}}};function B4(t){return function(s){return t.apply(null,s)}}function F4(t){return te.isObject(t)&&t.isAxiosError===!0}const of={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
10setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(of).forEach(([t,e])=>{of[e]=t});function mv(t){const e=new zi(t),s=Wg(zi.prototype.request,e);return te.extend(s,zi.prototype,e,{allOwnKeys:!0}),te.extend(s,e,null,{allOwnKeys:!0}),s.create=function(r){return mv(Qi(t,r))},s}
vendor: 15,777 bytes, lines 10-18
10const tt=mv(Fa);tt.Axios=zi;tt.CanceledError=Eo;tt.CancelToken=R4;tt.isCancel=ov;tt.VERSION=hv;tt.toFormData=Xc;tt.AxiosError=He;tt.Cancel=tt.CanceledError;tt.all=function(e){return Promise.all(e)};tt.spread=B4;tt.isAxiosError=F4;tt.mergeConfig=Qi;tt.AxiosHeaders=bs;tt.formToJSON=t=>rv(te.isHTMLForm(t)?new FormData(t):t);tt.getAdapter=fv.getAdapter;tt.HttpStatusCode=of;tt.default=tt;const{Axios:sY,AxiosError:nY,CanceledError:iY,isCancel:rY,CancelToken:oY,VERSION:aY,all:lY,Cancel:cY,isAxiosError:dY,spread:uY,toFormData:fY,AxiosHeaders:hY,HttpStatusCode:pY,formToJSON:mY,getAdapter:_Y,mergeConfig:gY}=tt;window.axios=tt;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";/** 11* @vue/shared v3.5.21 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT 14**/function Is(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const Xe={},Vr=[],qt=()=>{},Ur=()=>!1,cr=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),uh=t=>t.startsWith("onUpdate:"),Qe=Object.assign,fh=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},U4=Object.prototype.hasOwnProperty,ot=(t,e)=>U4.call(t,e),be=Array.isArray,Hr=t=>To(t)==="[object Map]",dr=t=>To(t)==="[object Set]",n0=t=>To(t)==="[object Date]",j4=t=>To(t)==="[object RegExp]",Le=t=>typeof t=="function",Fe=t=>typeof t=="string",xs=t=>typeof t=="symbol",ct=t=>t!==null&&typeof t=="object",hh=t=>(ct(t)||Le(t))&&Le(t.then)&&Le(t.catch),_v=Object.prototype.toString,To=t=>_v.call(t),V4=t=>To(t).slice(8,-1),td=t=>To(t)==="[object Object]",ph=t=>Fe(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,di=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),H4=Is("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),sd=t=>{const e=Object.create(null);return(s=>e[s]||(e[s]=t(s)))},z4=/-\w/g,ht=sd(t=>t.replace(z4,e=>e.slice(1).toUpperCase())),W4=/\B([A-Z])/g,_s=sd(t=>t.replace(W4,"-$1").toLowerCase()),ur=sd(t=>t.charAt(0).toUpperCase()+t.slice(1)),zr=sd(t=>t?`on${ur(t)}`:""),is=(t,e)=>!Object.is(t,e),Wr=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},gv=(t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})},cc=t=>{const e=parseFloat(t);return isNaN(e)?t:e},dc=t=>{const e=Fe(t)?Number(t):NaN;return isNaN(e)?t:e};let i0;const nd=()=>i0||(i0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Z4(t,e){return t+JSON.stringify(e,(s,n)=>typeof n=="function"?n.toString():n)}const q4="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",K4=Is(q4);function Ut(t){if(be(t)){const e={};for(let s=0;s<t.length;s++){const n=t[s],r=Fe(n)?vv(n):Ut(n);if(r)for(const o in r)e[o]=r[o]}return e}else if(Fe(t)||ct(t))return t}const G4=/;(?![^(]*\))/g,Y4=/:([^]+)/,J4=/\/\*[^]*?\*\//g;function vv(t){const e={};return t.replace(J4,"").split(G4).forEach(s=>{if(s){const n=s.split(Y4);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function ce(t){let e="";if(Fe(t))e=t;else if(be(t))for(let s=0;s<t.length;s++){const n=ce(t[s]);n&&(e+=n+" ")}else if(ct(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}function X4(t){if(!t)return null;let{class:e,style:s}=t;return e&&!Fe(e)&&(t.class=ce(e)),s&&(t.style=Ut(s)),t}const Q4="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",eC="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",tC="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",sC="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",nC=Is(Q4),iC=Is(eC),rC=Is(tC),oC=Is(sC),aC="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lC=Is(aC);function bv(t){return!!t||t===""}function cC(t,e){if(t.length!==e.length)return!1;let s=!0;for(let n=0;s&&n<t.length;n++)s=bi(t[n],e[n]);return s}function bi(t,e){if(t===e)return!0;let s=n0(t),n=n0(e);if(s||n)return s&&n?t.getTime()===e.getTime():!1;if(s=xs(t),n=xs(e),s||n)return t===e;if(s=be(t),n=be(e),s||n)return s&&n?cC(t,e):!1;if(s=ct(t),n=ct(e),s||n){if(!s||!n)return!1;const r=Object.keys(t).length,o=Object.keys(e).length;if(r!==o)return!1;for(const c in t){const u=t.hasOwnProperty(c),f=e.hasOwnProperty(c);if(u&&!f||!u&&f||!bi(t[c],e[c]))return!1}}return String(t)===String(e)}function id(t,e){return t.findIndex(s=>bi(s,e))}const xv=t=>!!(t&&t.__v_isRef===!0),v=t=>Fe(t)?t:t==null?"":be(t)||ct(t)&&(t.toString===_v||!Le(t.toString))?xv(t)?v(t.value):JSON.stringify(t,yv,2):String(t),yv=(t,e)=>xv(e)?yv(t,e.value):Hr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[n,r],o)=>(s[Eu(n,o)+" =>"]=r,s),{})}:dr(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>Eu(s))}:xs(e)?Eu(e):ct(e)&&!be(e)&&!td(e)?String(e):e,Eu=(t,e="")=>{var s;return xs(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};function dC(t){return t==null?"initial":typeof t=="string"?t===""?" ":t:String(t)}/** 15* @vue/reactivity v3.5.21 16* (c) 2018-present Yuxi (Evan) You and Vue contributors 17* @license MIT 18**/let Gt;class mh{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Gt,!e&&Gt&&(this.index=(Gt.scopes||(Gt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].pause();for(e=0,s=this.effects.length;e<s;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].resume();for(e=0,s=this.effects.length;e<s;e++)this.effects[e].resume()}}run(e){if(this._active){const s=Gt;try{return Gt=this,e()}finally{Gt=s}}}on(){++this._on===1&&(this.prevScope=Gt,Gt=this)}off(){this._on>0&&--this._on===0&&(Gt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function _h(t){return new mh(t)}function gh(){return Gt}function wv(t,e=!1){Gt&&Gt.cleanups.push(t)}let ft;const Tu=new WeakSet;class fa{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Gt&&Gt.active&&Gt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Tu.has(this)&&(Tu.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ev(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,r0(this),Tv(this);const e=ft,s=Xs;ft=this,Xs=!0;try{return this.fn()}finally{Sv(this),ft=e,Xs=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)xh(e);this.deps=this.depsTail=void 0,r0(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Tu.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){af(this)&&this.run()}get dirty(){return af(this)}}let kv=0,Qo,ea;function Ev(t,e=!1){if(t.flags|=8,e){t.next=ea,ea=t;return}t.next=Qo,Qo=t}function vh(){kv++}function bh(){if(--kv>0)return;if(ea){let e=ea;for(ea=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;Qo;){let e=Qo;for(Qo=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function Tv(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Sv(t){let e,s=t.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),xh(n),uC(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}t.deps=e,t.depsTail=s}function af(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Cv(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Cv(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ha)||(t.globalVersion=ha,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!af(t))))return;t.flags|=2;const e=t.dep,s=ft,n=Xs;ft=t,Xs=!0;try{Tv(t);const r=t.fn(t._value);(e.version===0||is(r,t._value))&&(t.flags|=128,t._value=r,e.version++)}catch(r){throw e.version++,r}finally{ft=s,Xs=n,Sv(t),t.flags&=-3}}function xh(t,e=!1){const{dep:s,prevSub:n,nextSub:r}=t;if(n&&(n.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)xh(o,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function uC(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}function fC(t,e){t.effect instanceof fa&&(t=t.effect.fn);const s=new fa(t);e&&Qe(s,e);try{s.run()}catch(r){throw s.stop(),r}const n=s.run.bind(s);return n.effect=s,n}function hC(t){t.effect.stop()}let Xs=!0;const Av=[];function Un(){Av.push(Xs),Xs=!1}function jn(){const t=Av.pop();Xs=t===void 0?!0:t}function r0(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=ft;ft=void 0;try{e()}finally{ft=s}}}let ha=0;class pC{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class rd{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ft||!Xs||ft===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ft)s=this.activeLink=new pC(ft,this),ft.deps?(s.prevDep=ft.depsTail,ft.depsTail.nextDep=s,ft.depsTail=s):ft.deps=ft.depsTail=s,Pv(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ft.depsTail,s.nextDep=void 0,ft.depsTail.nextDep=s,ft.depsTail=s,ft.deps===s&&(ft.deps=n)}return s}trigger(e){this.version++,ha++,this.notify(e)}notify(e){vh();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{bh()}}}function Pv(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)Pv(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const uc=new WeakMap,Wi=Symbol(""),lf=Symbol(""),pa=Symbol("");function Jt(t,e,s){if(Xs&&ft){let n=uc.get(t);n||uc.set(t,n=new Map);let r=n.get(s);r||(n.set(s,r=new rd),r.map=n,r.key=s),r.track()}}function Ln(t,e,s,n,r,o){const c=uc.get(t);if(!c){ha++;return}const u=f=>{f&&f.trigger()};if(vh(),e==="clear")c.forEach(u);else{const f=be(t),p=f&&ph(s);if(f&&s==="length"){const m=Number(n);c.forEach((_,y)=>{(y==="length"||y===pa||!xs(y)&&y>=m)&&u(_)})}else switch((s!==void 0||c.has(void 0))&&u(c.get(s)),p&&u(c.get(pa)),e){case"add":f?p&&u(c.get("length")):(u(c.get(Wi)),Hr(t)&&u(c.get(lf)));break;case"delete":f||(u(c.get(Wi)),Hr(t)&&u(c.get(lf)));break;case"set":Hr(t)&&u(c.get(Wi));break}}bh()}function mC(t,e){const s=uc.get(t);return s&&s.get(e)}function Pr(t){const e=et(t);return e===t?e:(Jt(e,"iterate",pa),Ss(t)?e:e.map(zt))}function od(t){return Jt(t=et(t),"iterate",pa),t}const _C={__proto__:null,[Symbol.iterator](){return Su(this,Symbol.iterator,zt)},concat(...t){return Pr(this).concat(...t.map(e=>be(e)?Pr(e):e))},entries(){return Su(this,"entries",t=>(t[1]=zt(t[1]),t))},every(t,e){return Sn(this,"every",t,e,void 0,arguments)},filter(t,e){return Sn(this,"filter",t,e,s=>s.map(zt),arguments)},find(t,e){return Sn(this,"find",t,e,zt,arguments)},findIndex(t,e){return Sn(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Sn(this,"findLast",t,e,zt,arguments)},findLastIndex(t,e){return Sn(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Sn(this,"forEach",t,e,void 0,arguments)},includes(...t){return Cu(this,"includes",t)},indexOf(...t){return Cu(this,"indexOf",t)},join(t){return Pr(this).join(t)},lastIndexOf(...t){return Cu(this,"lastIndexOf",t)},map(t,e){return Sn(this,"map",t,e,void 0,arguments)},pop(){return Wo(this,"pop")},push(...t){return Wo(this,"push",t)},reduce(t,...e){return o0(this,"reduce",t,e)},reduceRight(t,...e){return o0(this,"reduceRight",t,e)},shift(){return Wo(this,"shift")},some(t,e){return Sn(this,"some",t,e,void 0,arguments)},splice(...t){return Wo(this,"splice",t)},toReversed(){return Pr(this).toReversed()},toSorted(t){return Pr(this).toSorted(t)},toSpliced(...t){return Pr(this).toSpliced(...t)},unshift(...t){return Wo(this,"unshift",t)},values(){return Su(this,"values",zt)}};function Su(t,e,s){const n=od(t),r=n[e]();return n!==t&&!Ss(t)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.value&&(o.value=s(o.value)),o}),r}const gC=Array.prototype;function Sn(t,e,s,n,r,o){const c=od(t),u=c!==t&&!Ss(t),f=c[e];if(f!==gC[e]){const _=f.apply(t,o);return u?zt(_):_}let p=s;c!==t&&(u?p=function(_,y){return s.call(this,zt(_),y,t)}:s.length>2&&(p=function(_,y){return s.call(this,_,y,t)}));const m=f.call(c,p,n);return u&&r?r(m):m}function o0(t,e,s,n){const r=od(t);let o=s;return r!==t&&(Ss(t)?s.length>3&&(o=function(c,u,f){return s.call(this,c,u,f,t)}):o=function(c,u,f){return s.call(this,c,zt(u),f,t)}),r[e](o,...n)}function Cu(t,e,s){const n=et(t);Jt(n,"iterate",pa);const r=n[e](...s);return(r===-1||r===!1)&&cd(s[0])?(s[0]=et(s[0]),n[e](...s)):r}function Wo(t,e,s=[]){Un(),vh();const n=et(t)[e].apply(t,s);return bh(),jn(),n}const vC=Is("__proto__,__v_isRef,__isVue"),Iv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(xs));function bC(t){xs(t)||(t=String(t));const e=et(this);return Jt(e,"has",t),e.hasOwnProperty(t)}class Lv{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const r=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(r?o?Rv:Mv:o?Dv:$v).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=be(e);if(!r){let f;
vendor: 3,468 bytes, line 18
18if(c&&(f=_C[s]))return f;if(s==="hasOwnProperty")return bC}const u=Reflect.get(e,s,vt(e)?e:n);return(xs(s)?Iv.has(s):vC(s))||(r||Jt(e,"get",s),o)?u:vt(u)?c&&ph(s)?u:u.value:ct(u)?r?yh(u):er(u):u}}class Ov extends Lv{constructor(e=!1){super(!1,e)}set(e,s,n,r){let o=e[s];if(!this._isShallow){const f=Vn(o);if(!Ss(n)&&!Vn(n)&&(o=et(o),n=et(n)),!be(e)&&vt(o)&&!vt(n))return f||(o.value=n),!0}const c=be(e)&&ph(s)?Number(s)<e.length:ot(e,s),u=Reflect.set(e,s,n,vt(e)?e:r);return e===et(r)&&(c?is(n,o)&&Ln(e,"set",s,n):Ln(e,"add",s,n)),u}deleteProperty(e,s){const n=ot(e,s);e[s];const r=Reflect.deleteProperty(e,s);return r&&n&&Ln(e,"delete",s,void 0),r}has(e,s){const n=Reflect.has(e,s);return(!xs(s)||!Iv.has(s))&&Jt(e,"has",s),n}ownKeys(e){return Jt(e,"iterate",be(e)?"length":Wi),Reflect.ownKeys(e)}}class Nv extends Lv{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const xC=new Ov,yC=new Nv,wC=new Ov(!0),kC=new Nv(!0),cf=t=>t,Tl=t=>Reflect.getPrototypeOf(t);function EC(t,e,s){return function(...n){const r=this.__v_raw,o=et(r),c=Hr(o),u=t==="entries"||t===Symbol.iterator&&c,f=t==="keys"&&c,p=r[t](...n),m=s?cf:e?fc:zt;return!e&&Jt(o,"iterate",f?lf:Wi),{next(){const{value:_,done:y}=p.next();return y?{value:_,done:y}:{value:u?[m(_[0]),m(_[1])]:m(_),done:y}},[Symbol.iterator](){return this}}}}function Sl(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function TC(t,e){const s={get(r){const o=this.__v_raw,c=et(o),u=et(r);t||(is(r,u)&&Jt(c,"get",r),Jt(c,"get",u));const{has:f}=Tl(c),p=e?cf:t?fc:zt;if(f.call(c,r))return p(o.get(r));if(f.call(c,u))return p(o.get(u));o!==c&&o.get(r)},get size(){const r=this.__v_raw;return!t&&Jt(et(r),"iterate",Wi),r.size},has(r){const o=this.__v_raw,c=et(o),u=et(r);return t||(is(r,u)&&Jt(c,"has",r),Jt(c,"has",u)),r===u?o.has(r):o.has(r)||o.has(u)},forEach(r,o){const c=this,u=c.__v_raw,f=et(u),p=e?cf:t?fc:zt;return!t&&Jt(f,"iterate",Wi),u.forEach((m,_)=>r.call(o,p(m),p(_),c))}};return Qe(s,t?{add:Sl("add"),set:Sl("set"),delete:Sl("delete"),clear:Sl("clear")}:{add(r){!e&&!Ss(r)&&!Vn(r)&&(r=et(r));const o=et(this);return Tl(o).has.call(o,r)||(o.add(r),Ln(o,"add",r,r)),this},set(r,o){!e&&!Ss(o)&&!Vn(o)&&(o=et(o));const c=et(this),{has:u,get:f}=Tl(c);let p=u.call(c,r);p||(r=et(r),p=u.call(c,r));const m=f.call(c,r);return c.set(r,o),p?is(o,m)&&Ln(c,"set",r,o):Ln(c,"add",r,o),this},delete(r){const o=et(this),{has:c,get:u}=Tl(o);let f=c.call(o,r);f||(r=et(r),f=c.call(o,r)),u&&u.call(o,r);const p=o.delete(r);return f&&Ln(o,"delete",r,void 0),p},clear(){const r=et(this),o=r.size!==0,c=r.clear();return o&&Ln(r,"clear",void 0,void 0),c}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=EC(r,t,e)}),s}function ad(t,e){const s=TC(t,e);return(n,r,o)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?n:Reflect.get(ot(s,r)&&r in n?s:n,r,o)}const SC={get:ad(!1,!1)},CC={get:ad(!1,!0)},AC={get:ad(!0,!1)},PC={get:ad(!0,!0)},$v=new WeakMap,Dv=new WeakMap,Mv=new WeakMap,Rv=new WeakMap;function IC(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function LC(t){return t.__v_skip||!Object.isExtensible(t)?0:IC(V4(t))}function er(t){return Vn(t)?t:ld(t,!1,xC,SC,$v)}function Bv(t){return ld(t,!1,wC,CC,Dv)}function yh(t){return ld(t,!0,yC,AC,Mv)}function OC(t){return ld(t,!0,kC,PC,Rv)}function ld(t,e,s,n,r){if(!ct(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=LC(t);
vendor: 4,705 bytes, lines 18-21
18if(o===0)return t;const c=r.get(t);if(c)return c;const u=new Proxy(t,o===2?n:s);return r.set(t,u),u}function _n(t){return Vn(t)?_n(t.__v_raw):!!(t&&t.__v_isReactive)}function Vn(t){return!!(t&&t.__v_isReadonly)}function Ss(t){return!!(t&&t.__v_isShallow)}function cd(t){return t?!!t.__v_raw:!1}function et(t){const e=t&&t.__v_raw;return e?et(e):t}function dd(t){return!ot(t,"__v_skip")&&Object.isExtensible(t)&&gv(t,"__v_skip",!0),t}const zt=t=>ct(t)?er(t):t,fc=t=>ct(t)?yh(t):t;function vt(t){return t?t.__v_isRef===!0:!1}function ke(t){return Uv(t,!1)}function Fv(t){return Uv(t,!0)}function Uv(t,e){return vt(t)?t:new NC(t,e)}class NC{constructor(e,s){this.dep=new rd,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:et(e),this._value=s?e:zt(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||Ss(e)||Vn(e);e=n?e:et(e),is(e,s)&&(this._rawValue=e,this._value=n?e:zt(e),this.dep.trigger())}}function $C(t){t.dep&&t.dep.trigger()}function Ie(t){return vt(t)?t.value:t}function DC(t){return Le(t)?t():Ie(t)}const MC={get:(t,e,s)=>e==="__v_raw"?t:Ie(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const r=t[e];return vt(r)&&!vt(s)?(r.value=s,!0):Reflect.set(t,e,s,n)}};function wh(t){return _n(t)?t:new Proxy(t,MC)}class RC{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new rd,{get:n,set:r}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function jv(t){return new RC(t)}function Vv(t){const e=be(t)?new Array(t.length):{};for(const s in t)e[s]=Hv(t,s);return e}class BC{constructor(e,s,n){this._object=e,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return mC(et(this._object),this._key)}}class FC{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function UC(t,e,s){return vt(t)?t:Le(t)?new FC(t):ct(t)&&arguments.length>1?Hv(t,e,s):ke(t)}function Hv(t,e,s){const n=t[e];return vt(n)?n:new BC(t,e,s)}class jC{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new rd(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ha-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ft!==this)return Ev(this,!0),!0}get value(){const e=this.dep.track();return Cv(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function VC(t,e,s=!1){let n,r;return Le(t)?n=t:(n=t.get,r=t.set),new jC(n,r,s)}const HC={GET:"get",HAS:"has",ITERATE:"iterate"},zC={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Cl={},hc=new WeakMap;let ni;function WC(){return ni}function zv(t,e=!1,s=ni){if(s){let n=hc.get(s);n||hc.set(s,n=[]),n.push(t)}}function ZC(t,e,s=Xe){const{immediate:n,deep:r,once:o,scheduler:c,augmentJob:u,call:f}=s,p=$=>r?$:Ss($)||r===!1||r===0?On($,1):On($);let m,_,y,S,T=!1,C=!1;if(vt(t)?(_=()=>t.value,T=Ss(t)):_n(t)?(_=()=>p(t),T=!0):be(t)?(C=!0,T=t.some($=>_n($)||Ss($)),_=()=>t.map($=>{if(vt($))return $.value;if(_n($))return p($);if(Le($))return f?f($,2):$()})):Le(t)?e?_=f?()=>f(t,2):t:_=()=>{if(y){Un();try{y()}finally{jn()}}const $=ni;ni=m;try{return f?f(t,3,[S]):t(S)}finally{ni=$}}:_=qt,e&&r){const $=_,U=r===!0?1/0:r;_=()=>On($(),U)}const M=gh(),j=()=>{m.stop(),M&&M.active&&fh(M.effects,m)};if(o&&e){const $=e;e=(...U)=>{$(...U),j()}}let D=C?new Array(t.length).fill(Cl):Cl;const P=$=>{if(!(!(m.flags&1)||!m.dirty&&!$))if(e){const U=m.run();if(r||T||(C?U.some((J,se)=>is(J,D[se])):is(U,D))){y&&y();const J=ni;ni=m;try{const se=[U,D===Cl?void 0:C&&D[0]===Cl?[]:D,S];D=U,f?f(e,3,se):e(...se)}finally{ni=J}}}else m.run()};return u&&u(P),m=new fa(_),m.scheduler=c?()=>c(P,!1):P,S=$=>zv($,!1,m),y=m.onStop=()=>{const $=hc.get(m);if($){if(f)f($,4);else for(const U of $)U();hc.delete(m)}},e?n?P(!0):D=m.run():c?c(P.bind(null,!0),!0):m.run(),j.pause=m.pause.bind(m),j.resume=m.resume.bind(m),j.stop=j,j}function On(t,e=1/0,s){if(e<=0||!ct(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,vt(t))On(t.value,e,s);else if(be(t))for(let n=0;n<t.length;n++)On(t[n],e,s);else if(dr(t)||Hr(t))t.forEach(n=>{On(n,e,s)});else if(td(t)){for(const n in t)On(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&On(t[n],e,s)}return t}/** 19* @vue/runtime-core v3.5.21 20* (c) 2018-present Yuxi (Evan) You and Vue contributors 21* @license MIT
22**/const Wv=[];function qC(t){Wv.push(t)}function KC(){Wv.pop()}function GC(t,e){}const YC={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},JC={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function So(t,e,s,n){try{return n?t(...n):t()}catch(r){fr(r,e,s)}}function Hs(t,e,s,n){if(Le(t)){const r=So(t,e,s,n);return r&&hh(r)&&r.catch(o=>{fr(o,e,s)}),r}if(be(t)){const r=[];for(let o=0;o<t.length;o++)r.push(Hs(t[o],e,s,n));return r}}function fr(t,e,s,n=!0){const r=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:c}=e&&e.appContext.config||Xe;if(e){let u=e.parent;const f=e.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;u;){const m=u.ec;if(m){for(let _=0;_<m.length;_++)if(m[_](t,f,p)===!1)return}u=u.parent}if(o){Un(),So(o,null,10,[t,f,p]),jn();return}}XC(t,s,r,n,c)}function XC(t,e,s,n=!0,r=!1){if(r)throw t;console.error(t)}const rs=[];let dn=-1;const Zr=[];let ii=null,Rr=0;const Zv=Promise.resolve();let pc=null;function tr(t){const e=pc||Zv;return t?e.then(this?t.bind(this):t):e}function QC(t){let e=dn+1,s=rs.length;for(;e<s;){const n=e+s>>>1,r=rs[n],o=_a(r);o<t||o===t&&r.flags&2?e=n+1:s=n}return e}function kh(t){if(!(t.flags&1)){const e=_a(t),s=rs[rs.length-1];!s||!(t.flags&2)&&e>=_a(s)?rs.push(t):rs.splice(QC(e),0,t),t.flags|=1,qv()}}function qv(){pc||(pc=Zv.then(Kv))}function ma(t){be(t)?Zr.push(...t):ii&&t.id===-1?ii.splice(Rr+1,0,t):t.flags&1||(Zr.push(t),t.flags|=1),qv()}function a0(t,e,s=dn+1){for(;s<rs.length;s++){const n=rs[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;rs.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function mc(t){if(Zr.length){const e=[...new Set(Zr)].sort((s,n)=>_a(s)-_a(n));if(Zr.length=0,ii){ii.push(...e);return}for(ii=e,Rr=0;Rr<ii.length;Rr++){const s=ii[Rr];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ii=null,Rr=0}}const _a=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Kv(t){try{for(dn=0;dn<rs.length;dn++){const e=rs[dn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),So(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;dn<rs.length;dn++){const e=rs[dn];e&&(e.flags&=-2)}dn=-1,rs.length=0,mc(),pc=null,(rs.length||Zr.length)&&Kv()}}let Br,Al=[];function Gv(t,e){var s,n;Br=t,Br?(Br.enabled=!0,Al.forEach(({event:r,args:o})=>Br.emit(r,...o)),Al=[]):typeof window<"u"&&window.HTMLElement&&!((n=(s=window.navigator)==null?void 0:s.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Gv(o,e)}),setTimeout(()=>{Br||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Al=[])},3e3)):Al=[]}let Zt=null,ud=null;function ga(t){const e=Zt;return Zt=t,ud=t&&t.type.__scopeId||null,e}function eA(t){ud=t}function tA(){ud=null}const sA=t=>fd;function fd(t,e=Zt,s){if(!e||t._n)return t;const n=(...r)=>{n._d&&xa(-1);const o=ga(e);let c;try{c=t(...r)}finally{ga(o),n._d&&xa(1)}return c};return n._n=!0,n._c=!0,n._d=!0,n}function Ke(t,e){if(Zt===null)return t;const s=Va(Zt),n=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[o,c,u,f=Xe]=e[r];o&&(Le(o)&&(o={mounted:o,updated:o}),o.deep&&On(c),n.push({dir:o,instance:s,value:c,oldValue:void 0,arg:u,modifiers:f}))}return t}function un(t,e,s,n){const r=t.dirs,o=e&&e.dirs;for(let c=0;c<r.length;c++){const u=r[c];o&&(u.oldValue=o[c].value);let f=u.dir[n];f&&(Un(),Hs(f,s,8,[t.el,u,t,e]),jn())}}const Yv=Symbol("_vte"),Jv=t=>t.__isTeleport,ta=t=>t&&(t.disabled||t.disabled===""),l0=t=>t&&(t.defer||t.defer===""),c0=t=>typeof SVGElement<"u"&&t instanceof SVGElement,d0=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,df=(t,e)=>{const s=t&&t.to;return Fe(s)?e?e(s):null:s},Xv={name:"Teleport",__isTeleport:!0,process(t,e,s,n,r,o,c,u,f,p){const{mc:m,pc:_,pbc:y,o:{insert:S,querySelector:T,createText:C,createComment:M}}=p,j=ta(e.props);let{shapeFlag:D,children:P,dynamicChildren:$}=e;if(t==null){const U=e.el=C(""),J=e.anchor=C("");S(U,s,n),S(J,s,n);const se=(F,z)=>{D&16&&(r&&r.isCE&&(r.ce._teleportTarget=F),m(P,F,z,r,o,c,u,f))},W=()=>{const F=e.target=df(e.props,T),z=Qv(F,e,C,S);
vendor: 27,508 bytes, lines 22-23
22F&&(c!=="svg"&&c0(F)?c="svg":c!=="mathml"&&d0(F)&&(c="mathml"),j||(se(F,z),Wl(e,!1)))};j&&(se(s,J),Wl(e,!0)),l0(e.props)?(e.el.__isMounted=!1,$t(()=>{W(),delete e.el.__isMounted},o)):W()}else{if(l0(e.props)&&t.el.__isMounted===!1){$t(()=>{Xv.process(t,e,s,n,r,o,c,u,f,p)},o);return}e.el=t.el,e.targetStart=t.targetStart;const U=e.anchor=t.anchor,J=e.target=t.target,se=e.targetAnchor=t.targetAnchor,W=ta(t.props),F=W?s:J,z=W?U:se;if(c==="svg"||c0(J)?c="svg":(c==="mathml"||d0(J))&&(c="mathml"),$?(y(t.dynamicChildren,$,F,r,o,c,u),Dh(t,e,!0)):f||_(t,e,F,z,r,o,c,u,!1),j)W?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Pl(e,s,U,p,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const V=e.target=df(e.props,T);V&&Pl(e,V,null,p,0)}else W&&Pl(e,J,se,p,1);Wl(e,j)}},remove(t,e,s,{um:n,o:{remove:r}},o){const{shapeFlag:c,children:u,anchor:f,targetStart:p,targetAnchor:m,target:_,props:y}=t;if(_&&(r(p),r(m)),o&&r(f),c&16){const S=o||!ta(y);for(let T=0;T<u.length;T++){const C=u[T];n(C,e,s,S,!!C.dynamicChildren)}}},move:Pl,hydrate:nA};function Pl(t,e,s,{o:{insert:n},m:r},o=2){o===0&&n(t.targetAnchor,e,s);const{el:c,anchor:u,shapeFlag:f,children:p,props:m}=t,_=o===2;if(_&&n(c,e,s),(!_||ta(m))&&f&16)for(let y=0;y<p.length;y++)r(p[y],e,s,2);_&&n(u,e,s)}function nA(t,e,s,n,r,o,{o:{nextSibling:c,parentNode:u,querySelector:f,insert:p,createText:m}},_){function y(C,M,j,D){M.anchor=_(c(C),M,u(C),s,n,r,o),M.targetStart=j,M.targetAnchor=D}const S=e.target=df(e.props,f),T=ta(e.props);if(S){const C=S._lpa||S.firstChild;if(e.shapeFlag&16)if(T)y(t,e,C,C&&c(C));else{e.anchor=c(t);let M=C;for(;M;){if(M&&M.nodeType===8){if(M.data==="teleport start anchor")e.targetStart=M;else if(M.data==="teleport anchor"){e.targetAnchor=M,S._lpa=e.targetAnchor&&c(e.targetAnchor);break}}M=c(M)}e.targetAnchor||Qv(S,e,m,p),_(C&&c(C),e,S,s,n,r,o)}Wl(e,T)}else T&&e.shapeFlag&16&&y(t,e,t,c(t));return e.anchor&&c(e.anchor)}const iA=Xv;function Wl(t,e){const s=t.ctx;if(s&&s.ut){let n,r;for(e?(n=t.el,r=t.anchor):(n=t.targetStart,r=t.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function Qv(t,e,s,n){const r=e.targetStart=s(""),o=e.targetAnchor=s("");return r[Yv]=o,t&&(n(r,t),n(o,t)),o}const In=Symbol("_leaveCb"),Il=Symbol("_enterCb");function Eh(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yn(()=>{t.isMounted=!0}),_d(()=>{t.isUnmounting=!0}),t}const Ms=[Function,Array],Th={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ms,onEnter:Ms,onAfterEnter:Ms,onEnterCancelled:Ms,onBeforeLeave:Ms,onLeave:Ms,onAfterLeave:Ms,onLeaveCancelled:Ms,onBeforeAppear:Ms,onAppear:Ms,onAfterAppear:Ms,onAppearCancelled:Ms},eb=t=>{const e=t.subTree;return e.component?eb(e.component):e},rA={name:"BaseTransition",props:Th,setup(t,{slots:e}){const s=ys(),n=Eh();return()=>{const r=e.default&&hd(e.default(),!0);if(!r||!r.length)return;const o=tb(r),c=et(t),{mode:u}=c;if(n.isLeaving)return Au(o);const f=u0(o);if(!f)return Au(o);let p=ao(f,c,n,s,_=>p=_);f.type!==kt&&Hn(f,p);let m=s.subTree&&u0(s.subTree);if(m&&m.type!==kt&&!Gs(m,f)&&eb(s).type!==kt){let _=ao(m,c,n,s);if(Hn(m,_),u==="out-in"&&f.type!==kt)return n.isLeaving=!0,_.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete _.afterLeave,m=void 0},Au(o);u==="in-out"&&f.type!==kt?_.delayLeave=(y,S,T)=>{const C=nb(n,m);C[String(m.key)]=m,y[In]=()=>{S(),y[In]=void 0,delete p.delayedLeave,m=void 0},p.delayedLeave=()=>{T(),delete p.delayedLeave,m=void 0}}:m=void 0}else m&&(m=void 0);return o}}};function tb(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==kt){e=s;break}}return e}const sb=rA;function nb(t,e){const{leavingVNodes:s}=t;let n=s.get(e.type);return n||(n=Object.create(null),s.set(e.type,n)),n}function ao(t,e,s,n,r){const{appear:o,mode:c,persisted:u=!1,onBeforeEnter:f,onEnter:p,onAfterEnter:m,onEnterCancelled:_,onBeforeLeave:y,onLeave:S,onAfterLeave:T,onLeaveCancelled:C,onBeforeAppear:M,onAppear:j,onAfterAppear:D,onAppearCancelled:P}=e,$=String(t.key),U=nb(s,t),J=(F,z)=>{F&&Hs(F,n,9,z)},se=(F,z)=>{const V=z[1];J(F,z),be(F)?F.every(I=>I.length<=1)&&V():F.length<=1&&V()},W={mode:c,persisted:u,beforeEnter(F){let z=f;if(!s.isMounted)if(o)z=M||f;else return;F[In]&&F[In](!0);const V=U[$];V&&Gs(t,V)&&V.el[In]&&V.el[In](),J(z,[F])},enter(F){let z=p,V=m,I=_;if(!s.isMounted)if(o)z=j||p,V=D||m,I=P||_;else return;let Z=!1;const ee=F[Il]=me=>{Z||(Z=!0,me?J(I,[F]):J(V,[F]),W.delayedLeave&&W.delayedLeave(),F[Il]=void 0)};z?se(z,[F,ee]):ee()},leave(F,z){const V=String(t.key);if(F[Il]&&F[Il](!0),s.isUnmounting)return z();J(y,[F]);let I=!1;const Z=F[In]=ee=>{I||(I=!0,z(),ee?J(C,[F]):J(T,[F]),F[In]=void 0,U[V]===t&&delete U[V])};U[V]=t,S?se(S,[F,Z]):Z()},clone(F){const z=ao(F,e,s,n,r);return r&&r(z),z}};return W}function Au(t){if(Ua(t))return t=bn(t),t.children=null,t}function u0(t){if(!Ua(t))return Jv(t.type)&&t.children?tb(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:s}=t;if(s){if(e&16)return s[0];if(e&32&&Le(s.default))return s.default()}}function Hn(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Hn(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function hd(t,e=!1,s){let n=[],r=0;for(let o=0;o<t.length;o++){let c=t[o];const u=s==null?c.key:String(s)+String(c.key!=null?c.key:o);c.type===pe?(c.patchFlag&128&&r++,n=n.concat(hd(c.children,e,u))):(e||c.type!==kt)&&n.push(u!=null?bn(c,{key:u}):c)}if(r>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Sh(t,e){return Le(t)?Qe({name:t.name},e,{setup:t}):t}function oA(){const t=ys();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function Ch(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function aA(t){const e=ys(),s=Fv(null);if(e){const r=e.refs===Xe?e.refs={}:e.refs;Object.defineProperty(r,t,{enumerable:!0,get:()=>s.value,set:o=>s.value=o})}return s}const _c=new WeakMap;function qr(t,e,s,n,r=!1){if(be(t)){t.forEach((T,C)=>qr(T,e&&(be(e)?e[C]:e),s,n,r));return}if(ui(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&qr(t,e,s,n.component.subTree);return}const o=n.shapeFlag&4?Va(n.component):n.el,c=r?null:o,{i:u,r:f}=t,p=e&&e.r,m=u.refs===Xe?u.refs={}:u.refs,_=u.setupState,y=et(_),S=_===Xe?Ur:T=>ot(y,T);if(p!=null&&p!==f){if(f0(e),Fe(p))m[p]=null,S(p)&&(_[p]=null);else if(vt(p)){p.value=null;const T=e;T.k&&(m[T.k]=null)}}if(Le(f))So(f,u,12,[c,m]);else{const T=Fe(f),C=vt(f);if(T||C){const M=()=>{if(t.f){const j=T?S(f)?_[f]:m[f]:f.value;if(r)be(j)&&fh(j,o);else if(be(j))j.includes(o)||j.push(o);else if(T)m[f]=[o],S(f)&&(_[f]=m[f]);else{const D=[o];f.value=D,t.k&&(m[t.k]=D)}}else T?(m[f]=c,S(f)&&(_[f]=c)):C&&(f.value=c,t.k&&(m[t.k]=c))};if(c){const j=()=>{M(),_c.delete(t)};j.id=-1,_c.set(t,j),$t(j,s)}else f0(t),M()}}}function f0(t){const e=_c.get(t);e&&(e.flags|=8,_c.delete(t))}let h0=!1;const Ir=()=>{h0||(console.error("Hydration completed but contains mismatches."),h0=!0)},lA=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",cA=t=>t.namespaceURI.includes("MathML"),Ll=t=>{if(t.nodeType===1){if(lA(t))return"svg";if(cA(t))return"mathml"}},jr=t=>t.nodeType===8;function dA(t){const{mt:e,p:s,o:{patchProp:n,createText:r,nextSibling:o,parentNode:c,remove:u,insert:f,createComment:p}}=t,m=(P,$)=>{if(!$.hasChildNodes()){s(null,P,$),mc(),$._vnode=P;return}_($.firstChild,P,null,null,null),mc(),$._vnode=P},_=(P,$,U,J,se,W=!1)=>{W=W||!!$.dynamicChildren;const F=jr(P)&&P.data==="[",z=()=>C(P,$,U,J,se,F),{type:V,ref:I,shapeFlag:Z,patchFlag:ee}=$;let me=P.nodeType;$.el=P,ee===-2&&(W=!1,$.dynamicChildren=null);let ne=null;switch(V){case fi:me!==3?$.children===""?(f($.el=r(""),c(P),P),ne=P):ne=z():(P.data!==$.children&&(Ir(),P.data=$.children),ne=o(P));break;case kt:D(P)?(ne=o(P),j($.el=P.content.firstChild,P,U)):me!==8||F?ne=z():ne=o(P);break;case qi:if(F&&(P=o(P),me=P.nodeType),me===1||me===3){ne=P;const fe=!$.children.length;for(let G=0;G<$.staticCount;G++)fe&&($.children+=ne.nodeType===1?ne.outerHTML:ne.data),G===$.staticCount-1&&($.anchor=ne),ne=o(ne);return F?o(ne):ne}else z();break;case pe:F?ne=T(P,$,U,J,se,W):ne=z();break;default:if(Z&1)(me!==1||$.type.toLowerCase()!==P.tagName.toLowerCase())&&!D(P)?ne=z():ne=y(P,$,U,J,se,W);else if(Z&6){$.slotScopeIds=se;const fe=c(P);if(F?ne=M(P):jr(P)&&P.data==="teleport start"?ne=M(P,P.data,"teleport end"):ne=o(P),e($,fe,null,U,J,Ll(fe),W),ui($)&&!$.type.__asyncResolved){let G;F?(G=lt(pe),G.anchor=ne?ne.previousSibling:fe.lastChild):G=P.nodeType===3?Me(""):lt("div"),G.el=P,$.component.subTree=G}}else Z&64?me!==8?ne=z():ne=$.type.hydrate(P,$,U,J,se,W,t,S):Z&128&&(ne=$.type.hydrate(P,$,U,J,Ll(c(P)),se,W,t,_))}return I!=null&&qr(I,null,J,$),ne},y=(P,$,U,J,se,W)=>{W=W||!!$.dynamicChildren;const{type:F,props:z,patchFlag:V,shapeFlag:I,dirs:Z,transition:ee}=$,me=F==="input"||F==="option";if(me||V!==-1){Z&&un($,null,U,"created");let ne=!1;if(D(P)){ne=Ib(null,ee)&&U&&U.vnode.props&&U.vnode.props.appear;const G=P.content.firstChild;if(ne){const _e=G.getAttribute("class");_e&&(G.$cls=_e),ee.beforeEnter(G)}j(G,P,U),$.el=P=G}if(I&16&&!(z&&(z.innerHTML||z.textContent))){let G=S(P.firstChild,$,P,U,J,se,W);for(;G;){Ol(P,1)||Ir();const _e=G;G=G.nextSibling,u(_e)}}else if(I&8){let G=$.children;G[0]===` 23`&&(P.tagName==="PRE"||P.tagName==="TEXTAREA")&&(G=G.slice(1)),P.textContent!==G&&(Ol(P,0)||Ir(),P.textContent=$.children)}if(z){if(me||!W||V&48){const G=P.tagName.includes("-");for(const _e in z)(me&&(_e.endsWith("value")||_e==="indeterminate")||cr(_e)&&!di(_e)||_e[0]==="."||G)&&n(P,_e,null,z[_e],void 0,U)}else if(z.onClick)n(P,"onClick",null,z.onClick,void 0,U);else if(V&4&&_n(z.style))for(const G in z.style)z.style[G]}let fe;(fe=z&&z.onVnodeBeforeMount)&&fs(fe,U,$),Z&&un($,null,U,"beforeMount"),((fe=z&&z.onVnodeMounted)||Z||ne)&&Fb(()=>{fe&&fs(fe,U,$),ne&&ee.enter(P),Z&&un($,null,U,"mounted")},J)}return P.nextSibling},S=(P,$,U,J,se,W,F)=>{F=F||!!$.dynamicChildren;const z=$.children,V=z.length;for(let I=0;I<V;I++){const Z=F?z[I]:z[I]=ps(z[I]),ee=Z.type===fi;P?(ee&&!F&&I+1<V&&ps(z[I+1]).type===fi&&(f(r(P.data.slice(Z.children.length)),U,o(P)),P.data=Z.children),P=_(P,Z,J,se,W,F)):ee&&!Z.children?f(Z.el=r(""),U):(Ol(U,1)||Ir(),s(null,Z,U,null,J,se,Ll(U),W))}return P},T=(P,$,U,J,se,W)=>{const{slotScopeIds:F}=$;F&&(se=se?se.concat(F):F);const z=c(P),V=S(o(P),$,z,U,J,se,W);return V&&jr(V)&&V.data==="]"?o($.anchor=V):(Ir(),f($.anchor=p("]"),z,V),V)},C=(P,$,U,J,se,W)=>{if(Ol(P.parentElement,1)||Ir(),$.el=null,W){const V=M(P);for(;;){const I=o(P);if(I&&I!==V)u(I);else break}}const F=o(P),z=c(P);return u(P),s(null,$,z,F,U,J,Ll(z),se),U&&(U.vnode.el=$.el,bd(U,$.el)),F},M=(P,$="[",U="]")=>{let J=0;for(;P;)if(P=o(P),P&&jr(P)&&(P.data===$&&J++,P.data===U)){if(J===0)return o(P);J--}return P},j=(P,$,U)=>{const J=$.parentNode;J&&J.replaceChild(P,$);let se=U;for(;se;)se.vnode.el===$&&(se.vnode.el=se.subTree.el=P),se=se.parent},D=P=>P.nodeType===1&&P.tagName==="TEMPLATE";return[m,_]}const p0="data-allow-mismatch",uA={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ol(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(p0);)t=t.parentElement;const s=t&&t.getAttribute(p0);if(s==null)return!1;if(s==="")return!0;{const n=s.split(",");return e===0&&n.includes("children")?!0:n.includes(uA[e])}}const fA=nd().requestIdleCallback||(t=>setTimeout(t,1)),hA=nd().cancelIdleCallback||(t=>clearTimeout(t)),pA=(t=1e4)=>e=>{const s=fA(e,{timeout:t});return()=>hA(s)};function mA(t){const{top:e,left:s,bottom:n,right:r}=t.getBoundingClientRect(),{innerHeight:o,innerWidth:c}=window;return(e>0&&e<o||n>0&&n<o)&&(s>0&&s<c||r>0&&r<c)}const _A=t=>(e,s)=>{const n=new IntersectionObserver(r=>{for(const o of r)if(o.isIntersecting){n.disconnect(),e();break}},t);return s(r=>{if(r instanceof Element){if(mA(r))return e(),n.disconnect(),!1;n.observe(r)}}),()=>n.disconnect()},gA=t=>e=>{if(t){const s=matchMedia(t);if(s.matches)e();else return s.addEventListener("change",e,{once:!0}),()=>s.removeEventListener("change",e)}},vA=(t=[])=>(e,s)=>{Fe(t)&&(t=[t]);let n=!1;const r=c=>{n||(n=!0,o(),e(),c.target.dispatchEvent(new c.constructor(c.type,c)))},o=()=>{s(c=>{for(const u of t)c.removeEventListener(u,r)})};return s(c=>{for(const u of t)c.addEventListener(u,r,{once:!0})}),o};function bA(t,e){if(jr(t)&&t.data==="["){let s=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(e(n)===!1)break}else if(jr(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else e(t)}const ui=t=>!!t.type.__asyncLoader;function xA(t){Le(t)&&(t={loader:t});const{loader:e,loadingComponent:s,errorComponent:n,delay:r=200,hydrate:o,timeout:c,suspensible:u=!0,onError:f}=t;let p=null,m,_=0;const y=()=>(_++,p=null,S()),S=()=>{let T;return p||(T=p=e().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),f)return new Promise((M,j)=>{f(C,()=>M(y()),()=>j(C),_+1)});throw C}).then(C=>T!==p&&p?p:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),m=C,C)))};return Sh({name:"AsyncComponentWrapper",__asyncLoader:S,__asyncHydrate(T,C,M){let j=!1;(C.bu||(C.bu=[])).push(()=>j=!0);const D=()=>{j||M()},P=o?()=>{const $=o(D,U=>bA(T,U));$&&(C.bum||(C.bum=[])).push($)}:D;m?P():S().then(()=>!C.isUnmounted&&P())},get __asyncResolved(){return m},setup(){const T=Wt;if(Ch(T),m)return()=>Pu(m,T);const C=P=>{p=null,fr(P,T,13,!n)};if(u&&T.suspense||lo)return S().then(P=>()=>Pu(P,T)).catch(P=>(C(P),()=>n?lt(n,{error:P}):null));const M=ke(!1),j=ke(),D=ke(!!r);return r&&setTimeout(()=>{D.value=!1},r),c!=null&&setTimeout(()=>{if(!M.value&&!j.value){const P=new Error(`Async component timed out after ${c}ms.`);C(P),j.value=P}},c),S().then(()=>{M.value=!0,T.parent&&Ua(T.parent.vnode)&&T.parent.update()}).catch(P=>{C(P),j.value=P}),()=>{if(M.value&&m)return Pu(m,T);if(j.value&&n)return lt(n,{error:j.value});if(s&&!D.value)return lt(s)}}})}function Pu(t,e){const{ref:s,props:n,children:r,ce:o}=e.vnode,c=lt(t,n,r);return c.ref=s,c.ce=o,delete e.vnode.ce,c}const Ua=t=>t.type.__isKeepAlive,yA={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const s=ys(),n=s.ctx;if(!n.renderer)return()=>{const D=e.default&&e.default();return D&&D.length===1?D[0]:D};const r=new Map,o=new Set;let c=null;const u=s.suspense,{renderer:{p:f,m:p,um:m,o:{createElement:_}}}=n,y=_("div");n.activate=(D,P,$,U,J)=>{const se=D.component;p(D,P,$,0,u),f(se.vnode,D,P,$,se,u,U,D.slotScopeIds,J),$t(()=>{se.isDeactivated=!1,se.a&&Wr(se.a);const W=D.props&&D.props.onVnodeMounted;W&&fs(W,se.parent,D)},u)},n.deactivate=D=>{const P=D.component;vc(P.m),vc(P.a),p(D,y,null,1,u),$t(()=>{P.da&&Wr(P.da);const $=D.props&&D.props.onVnodeUnmounted;$&&fs($,P.parent,D),P.isDeactivated=!0},u)};function S(D){Iu(D),m(D,s,u,!0)}function T(D){r.forEach((P,$)=>{const U=yf(P.type);U&&!D(U)&&C($)})}function C(D){const P=r.get(D);P&&(!c||!Gs(P,c))?S(P):c&&Iu(c),r.delete(D),o.delete(D)}ks(()=>[t.include,t.exclude],([D,P])=>{D&&T($=>Ko(D,$)),P&&T($=>!Ko(P,$))},{flush:"post",deep:!0});let M=null;const j=()=>{M!=null&&(bc(s.subTree.type)?$t(()=>{r.set(M,Nl(s.subTree))},s.subTree.suspense):r.set(M,Nl(s.subTree)))};return yn(j),md(j),_d(()=>{r.forEach(D=>{const{subTree:P,suspense:$}=s,U=Nl(P);if(D.type===U.type&&D.key===U.key){Iu(U);const J=U.component.da;J&&$t(J,$);return}S(D)})}),()=>{if(M=null,!e.default)return c=null;const D=e.default(),P=D[0];if(D.length>1)return c=null,D;if(!zn(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return c=null,P;let $=Nl(P);if($.type===kt)return c=null,$;const U=$.type,J=yf(ui($)?$.type.__asyncResolved||{}:U),{include:se,exclude:W,max:F}=t;if(se&&(!J||!Ko(se,J))||W&&J&&Ko(W,J))return $.shapeFlag&=-257,c=$,P;const z=$.key==null?U:$.key,V=r.get(z);return $.el&&($=bn($),P.shapeFlag&128&&(P.ssContent=$)),M=z,V?($.el=V.el,$.component=V.component,$.transition&&Hn($,$.transition),$.shapeFlag|=512,o.delete(z),o.add(z)):(o.add(z),F&&o.size>parseInt(F,10)&&C(o.values().next().value)),$.shapeFlag|=256,c=$,bc(P.type)?P:$}}},wA=yA;function Ko(t,e){return be(t)?t.some(s=>Ko(s,e)):Fe(t)?t.split(",").includes(e):j4(t)?(t.lastIndex=0,t.test(e)):!1}function ib(t,e){ob(t,"a",e)}function rb(t,e){ob(t,"da",e)}function ob(t,e,s=Wt){const n=t.__wdc||(t.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(pd(e,n,s),s){let r=s.parent;for(;r&&r.parent;)Ua(r.parent.vnode)&&kA(n,e,s,r),r=r.parent}}function kA(t,e,s,n){const r=pd(e,t,n,!0);gd(()=>{fh(n[e],r)},s)}function Iu(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Nl(t){return t.shapeFlag&128?t.ssContent:t}function pd(t,e,s=Wt,n=!1){if(s){const r=s[t]||(s[t]=[]),o=e.__weh||(e.__weh=(...c)=>{Un();const u=ir(s),f=Hs(e,s,t,c);return u(),jn(),f});return n?r.unshift(o):r.push(o),o}}const Kn=t=>(e,s=Wt)=>{(!lo||t==="sp")&&pd(t,(...n)=>e(...n),s)},ab=Kn("bm"),yn=Kn("m"),Ah=Kn("bu"),md=Kn("u"),_d=Kn("bum"),gd=Kn("um"),lb=Kn("sp"),cb=Kn("rtg"),db=Kn("rtc");function ub(t,e=Wt){pd("ec",t,e)}const Ph="components",EA="directives";function fb(t,e){return Ih(Ph,t,!0,e)||t}const hb=Symbol.for("v-ndc");function TA(t){return Fe(t)?Ih(Ph,t,!1)||t:t||hb}function SA(t){return Ih(EA,t)}function Ih(t,e,s=!0,n=!1){const r=Zt||Wt;if(r){const o=r.type;if(t===Ph){const u=yf(o,!1);if(u&&(u===e||u===ht(e)||u===ur(ht(e))))return o}const c=m0(r[t]||o[t],e)||m0(r.appContext[t],e);return!c&&n?o:c}}function m0(t,e){return t&&(t[e]||t[ht(e)]||t[ur(ht(e))])}function Ne(t,e,s,n){let r;const o=s&&s[n],c=be(t);if(c||Fe(t)){const u=c&&_n(t);let f=!1,p=!1;u&&(f=!Ss(t),p=Vn(t),t=od(t)),r=new Array(t.length);for(let m=0,_=t.length;m<_;m++)r[m]=e(f?p?fc(zt(t[m])):zt(t[m]):t[m],m,void 0,o&&o[m])}else if(typeof t=="number"){r=new Array(t);for(let u=0;u<t;u++)r[u]=e(u+1,u,void 0,o&&o[u])}else if(ct(t))if(t[Symbol.iterator])r=Array.from(t,(u,f)=>e(u,f,void 0,o&&o[f]));else{const u=Object.keys(t);r=new Array(u.length);for(let f=0,p=u.length;f<p;f++){const m=u[f];r[f]=e(t[m],m,f,o&&o[f])}}else r=[];return s&&(s[n]=r),r}function CA(t,e){for(let s=0;s<e.length;s++){const n=e[s];if(be(n))for(let r=0;r<n.length;r++)t[n[r].name]=n[r].fn;else n&&(t[n.name]=n.key?(...r)=>{const o=n.fn(...r);return o&&(o.key=n.key),o}:n.fn)}return t}function AA(t,e,s={},n,r){if(Zt.ce||Zt.parent&&ui(Zt.parent)&&Zt.parent.ce)return e!=="default"&&(s.name=e),w(),nr(pe,null,[lt("slot",s,n&&n())],64);let o=t[e];o&&o._c&&(o._d=!1),w();const c=o&&Lh(o(s)),u=s.key||c&&c.key,f=nr(pe,{key:(u&&!xs(u)?u:`_${e}`)+(!c&&n?"_fb":"")},c||(n?n():[]),c&&t._===1?64:-2);return!r&&f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),o&&o._c&&(o._d=!0),f}function Lh(t){return t.some(e=>zn(e)?!(e.type===kt||e.type===pe&&!Lh(e.children)):!0)?t:null}function PA(t,e){const s={};for(const n in t)s[e&&/[A-Z]/.test(n)?`on:${n}`:zr(n)]=t[n];return s}const uf=t=>t?Zb(t)?Va(t):uf(t.parent):null,sa=Qe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>uf(t.parent),$root:t=>uf(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Oh(t),$forceUpdate:t=>t.f||(t.f=()=>{kh(t.update)}),$nextTick:t=>t.n||(t.n=tr.bind(t.proxy)),$watch:t=>o5.bind(t)}),Lu=(t,e)=>t!==Xe&&!t.__isScriptSetup&&ot(t,e),ff={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:o,accessCache:c,type:u,appContext:f}=t;let p;if(e[0]!=="$"){const S=c[e];if(S!==void 0)switch(S){case 1:return n[e];case 2:return r[e];case 4:return s[e];case 3:return o[e]}else{if(Lu(n,e))return c[e]=1,n[e];if(r!==Xe&&ot(r,e))return c[e]=2,r[e];if((p=t.propsOptions[0])&&ot(p,e))return c[e]=3,o[e];if(s!==Xe&&ot(s,e))return c[e]=4,s[e];hf&&(c[e]=0)}}const m=sa[e];let _,y;if(m)return e==="$attrs"&&Jt(t.attrs,"get",""),m(t);if((_=u.__cssModules)&&(_=_[e]))return _;if(s!==Xe&&ot(s,e))return c[e]=4,s[e];if(y=f.config.globalProperties,ot(y,e))return y[e]},set({_:t},e,s){const{data:n,setupState:r,ctx:o}=t;return Lu(r,e)?(r[e]=s,!0):n!==Xe&&ot(n,e)?(n[e]=s,!0):ot(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:r,propsOptions:o,type:c}},u){let f,p;return!!(s[u]||t!==Xe&&u[0]!=="$"&&ot(t,u)||Lu(e,u)||(f=o[0])&&ot(f,u)||ot(n,u)||ot(sa,u)||ot(r.config.globalProperties,u)||(p=c.__cssModules)&&p[u])},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:ot(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}},IA=Qe({},ff,{get(t,e){if(e!==Symbol.unscopables)return ff.get(t,e,t)},has(t,e){return e[0]!=="_"&&!K4(e)}});function LA(){return null}function OA(){return null}function NA(t){}function $A(t){}function DA(){return null}function MA(){}function RA(t,e){return null}function BA(){return pb().slots}function FA(){return pb().attrs}function pb(t){const e=ys();return e.setupContext||(e.setupContext=Yb(e))}function va(t){return be(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}function UA(t,e){const s=va(t);for(const n in e){if(n.startsWith("__skip"))continue;let r=s[n];r?be(r)||Le(r)?r=s[n]={type:r,default:e[n]}:r.default=e[n]:r===null&&(r=s[n]={default:e[n]}),r&&e[`__skip_${n}`]&&(r.skipFactory=!0)}return s}function jA(t,e){return!t||!e?t||e:be(t)&&be(e)?t.concat(e):Qe({},va(t),va(e))}function VA(t,e){const s={};for(const n in t)e.includes(n)||Object.defineProperty(s,n,{enumerable:!0,get:()=>t[n]});return s}function HA(t){const e=ys();let s=t();return vf(),hh(s)&&(s=s.catch(n=>{throw ir(e),n})),[s,()=>ir(e)]}let hf=!0;function zA(t){const e=Oh(t),s=t.proxy,n=t.ctx;hf=!1,e.beforeCreate&&_0(e.beforeCreate,t,"bc");const{data:r,computed:o,methods:c,watch:u,provide:f,inject:p,created:m,beforeMount:_,mounted:y,beforeUpdate:S,updated:T,activated:C,deactivated:M,beforeDestroy:j,beforeUnmount:D,destroyed:P,unmounted:$,render:U,renderTracked:J,renderTriggered:se,errorCaptured:W,serverPrefetch:F,expose:z,inheritAttrs:V,components:I,directives:Z,filters:ee}=e;if(p&&WA(p,n,null),c)for(const fe in c){const G=c[fe];Le(G)&&(n[fe]=G.bind(s))}if(r){const fe=r.call(s,s);ct(fe)&&(t.data=er(fe))}if(hf=!0,o)for(const fe in o){const G=o[fe],_e=Le(G)?G.bind(s,s):Le(G.get)?G.get.bind(s,s):qt,ve=!Le(G)&&Le(G.set)?G.set.bind(s):qt,$e=Se({get:_e,set:ve});Object.defineProperty(n,fe,{enumerable:!0,configurable:!0,get:()=>$e.value,set:Ue=>$e.value=Ue})}if(u)for(const fe in u)mb(u[fe],n,s,fe);if(f){const fe=Le(f)?f.call(s):f;Reflect.ownKeys(fe).forEach(G=>{gb(G,fe[G])})}m&&_0(m,t,"c");function ne(fe,G){be(G)?G.forEach(_e=>fe(_e.bind(s))):G&&fe(G.bind(s))}if(ne(ab,_),ne(yn,y),ne(Ah,S),ne(md,T),ne(ib,C),ne(rb,M),ne(ub,W),ne(db,J),ne(cb,se),ne(_d,D),ne(gd,$),ne(lb,F),be(z))if(z.length){const fe=t.exposed||(t.exposed={});z.forEach(G=>{Object.defineProperty(fe,G,{get:()=>s[G],set:_e=>s[G]=_e,enumerable:!0})})}else t.exposed||(t.exposed={});U&&t.render===qt&&(t.render=U),V!=null&&(t.inheritAttrs=V),I&&(t.components=I),Z&&(t.directives=Z),F&&Ch(t)}function WA(t,e,s=qt){be(t)&&(t=pf(t));for(const n in t){const r=t[n];let o;ct(r)?"default"in r?o=Kr(r.from||n,r.default,!0):o=Kr(r.from||n):o=Kr(r),vt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:c=>o.value=c}):e[n]=o}}function _0(t,e,s){Hs(be(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function mb(t,e,s,n){let r=n.includes(".")?Db(s,n):()=>s[n];if(Fe(t)){const o=e[t];Le(o)&&ks(r,o)}else if(Le(t))ks(r,t.bind(s));else if(ct(t))if(be(t))t.forEach(o=>mb(o,e,s,n));else{const o=Le(t.handler)?t.handler.bind(s):e[t.handler];Le(o)&&ks(r,o,t)}}function Oh(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:r,optionsCache:o,config:{optionMergeStrategies:c}}=t.appContext,u=o.get(e);let f;return u?f=u:!r.length&&!s&&!n?f=e:(f={},r.length&&r.forEach(p=>gc(f,p,c,!0)),gc(f,e,c)),ct(e)&&o.set(e,f),f}function gc(t,e,s,n=!1){const{mixins:r,extends:o}=e;o&&gc(t,o,s,!0),r&&r.forEach(c=>gc(t,c,s,!0));for(const c in e)if(!(n&&c==="expose")){const u=ZA[c]||s&&s[c];t[c]=u?u(t[c],e[c]):e[c]}return t}const ZA={data:g0,props:v0,emits:v0,methods:Go,computed:Go,beforeCreate:ns,created:ns,beforeMount:ns,mounted:ns,beforeUpdate:ns,updated:ns,beforeDestroy:ns,beforeUnmount:ns,destroyed:ns,unmounted:ns,activated:ns,deactivated:ns,errorCaptured:ns,serverPrefetch:ns,components:Go,directives:Go,watch:KA,provide:g0,inject:qA};function g0(t,e){return e?t?function(){return Qe(Le(t)?t.call(this,this):t,Le(e)?e.call(this,this):e)}:e:t}function qA(t,e){return Go(pf(t),pf(e))}function pf(t){if(be(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function ns(t,e){return t?[...new Set([].concat(t,e))]:e}function Go(t,e){return t?Qe(Object.create(null),t,e):e}function v0(t,e){return t?be(t)&&be(e)?[...new Set([...t,...e])]:Qe(Object.create(null),va(t),va(e??{})):e}function KA(t,e){if(!t)return e;if(!e)return t;const s=Qe(Object.create(null),t);for(const n in e)s[n]=ns(t[n],e[n]);return s}function _b(){return{app:null,config:{isNativeTag:Ur,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let GA=0;function YA(t,e){return function(n,r=null){Le(n)||(n=Qe({},n)),r!=null&&!ct(r)&&(r=null);const o=_b(),c=new WeakSet,u=[];let f=!1;const p=o.app={_uid:GA++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Qb,get config(){return o.config},set config(m){},use(m,..._){return c.has(m)||(m&&Le(m.install)?(c.add(m),m.install(p,..._)):Le(m)&&(c.add(m),m(p,..._))),p},mixin(m){return o.mixins.includes(m)||o.mixins.push(m),p},component(m,_){return _?(o.components[m]=_,p):o.components[m]},directive(m,_){return _?(o.directives[m]=_,p):o.directives[m]},mount(m,_,y){if(!f){const S=p._ceVNode||lt(n,r);return S.appContext=o,y===!0?y="svg":y===!1&&(y=void 0),_&&e?e(S,m):t(S,m,y),f=!0,p._container=m,m.__vue_app__=p,Va(S.component)}},onUnmount(m){u.push(m)},unmount(){f&&(Hs(u,p._instance,16),t(null,p._container),delete p._container.__vue_app__)},provide(m,_){return o.provides[m]=_,p},runWithContext(m){const _=Zi;Zi=p;try{return m()}finally{Zi=_}}};return p}}let Zi=null;function gb(t,e){if(Wt){let s=Wt.provides;const n=Wt.parent&&Wt.parent.provides;n===s&&(s=Wt.provides=Object.create(n)),s[t]=e}}function Kr(t,e,s=!1){const n=ys();if(n||Zi){let r=Zi?Zi._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return s&&Le(e)?e.call(n&&n.proxy):e}}function vb(){return!!(ys()||Zi)}const bb={},xb=()=>Object.create(bb),yb=t=>Object.getPrototypeOf(t)===bb;function JA(t,e,s,n=!1){const r={},o=xb();t.propsDefaults=Object.create(null),wb(t,e,r,o);for(const c in t.propsOptions[0])c in r||(r[c]=void 0);s?t.props=n?r:Bv(r):t.type.props?t.props=r:t.props=o,t.attrs=o}function XA(t,e,s,n){const{props:r,attrs:o,vnode:{patchFlag:c}}=t,u=et(r),[f]=t.propsOptions;let p=!1;if((n||c>0)&&!(c&16)){if(c&8){const m=t.vnode.dynamicProps;for(let _=0;_<m.length;_++){let y=m[_];if(vd(t.emitsOptions,y))continue;const S=e[y];if(f)if(ot(o,y))S!==o[y]&&(o[y]=S,p=!0);else{const T=ht(y);r[T]=mf(f,u,T,S,t,!1)}else S!==o[y]&&(o[y]=S,p=!0)}}}else{wb(t,e,r,o)&&(p=!0);let m;for(const _ in u)(!e||!ot(e,_)&&((m=_s(_))===_||!ot(e,m)))&&(f?s&&(s[_]!==void 0||s[m]!==void 0)&&(r[_]=mf(f,u,_,void 0,t,!0)):delete r[_]);if(o!==u)for(const _ in o)(!e||!ot(e,_))&&(delete o[_],p=!0)}p&&Ln(t.attrs,"set","")}function wb(t,e,s,n){const[r,o]=t.propsOptions;let c=!1,u;if(e)for(let f in e){if(di(f))continue;const p=e[f];let m;
vendor: 4,294 bytes, line 23
23r&&ot(r,m=ht(f))?!o||!o.includes(m)?s[m]=p:(u||(u={}))[m]=p:vd(t.emitsOptions,f)||(!(f in n)||p!==n[f])&&(n[f]=p,c=!0)}if(o){const f=et(s),p=u||Xe;for(let m=0;m<o.length;m++){const _=o[m];s[_]=mf(r,f,_,p[_],t,!ot(p,_))}}return c}function mf(t,e,s,n,r,o){const c=t[s];if(c!=null){const u=ot(c,"default");if(u&&n===void 0){const f=c.default;if(c.type!==Function&&!c.skipFactory&&Le(f)){const{propsDefaults:p}=r;if(s in p)n=p[s];else{const m=ir(r);n=p[s]=f.call(null,e),m()}}else n=f;r.ce&&r.ce._setProp(s,n)}c[0]&&(o&&!u?n=!1:c[1]&&(n===""||n===_s(s))&&(n=!0))}return n}const QA=new WeakMap;function kb(t,e,s=!1){const n=s?QA:e.propsCache,r=n.get(t);if(r)return r;const o=t.props,c={},u=[];let f=!1;if(!Le(t)){const m=_=>{f=!0;const[y,S]=kb(_,e,!0);Qe(c,y),S&&u.push(...S)};!s&&e.mixins.length&&e.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}if(!o&&!f)return ct(t)&&n.set(t,Vr),Vr;if(be(o))for(let m=0;m<o.length;m++){const _=ht(o[m]);b0(_)&&(c[_]=Xe)}else if(o)for(const m in o){const _=ht(m);if(b0(_)){const y=o[m],S=c[_]=be(y)||Le(y)?{type:y}:Qe({},y),T=S.type;let C=!1,M=!0;if(be(T))for(let j=0;j<T.length;++j){const D=T[j],P=Le(D)&&D.name;if(P==="Boolean"){C=!0;break}else P==="String"&&(M=!1)}else C=Le(T)&&T.name==="Boolean";S[0]=C,S[1]=M,(C||ot(S,"default"))&&u.push(_)}}const p=[c,u];return ct(t)&&n.set(t,p),p}function b0(t){return t[0]!=="$"&&!di(t)}const Nh=t=>t==="_"||t==="_ctx"||t==="$stable",$h=t=>be(t)?t.map(ps):[ps(t)],e5=(t,e,s)=>{if(e._n)return e;const n=fd((...r)=>$h(e(...r)),s);return n._c=!1,n},Eb=(t,e,s)=>{const n=t._ctx;for(const r in t){if(Nh(r))continue;const o=t[r];if(Le(o))e[r]=e5(r,o,n);else if(o!=null){const c=$h(o);e[r]=()=>c}}},Tb=(t,e)=>{const s=$h(e);t.slots.default=()=>s},Sb=(t,e,s)=>{for(const n in e)(s||!Nh(n))&&(t[n]=e[n])},t5=(t,e,s)=>{const n=t.slots=xb();if(t.vnode.shapeFlag&32){const r=e._;r?(Sb(n,e,s),s&&gv(n,"_",r,!0)):Eb(e,n)}else e&&Tb(t,e)},s5=(t,e,s)=>{const{vnode:n,slots:r}=t;let o=!0,c=Xe;if(n.shapeFlag&32){const u=e._;u?s&&u===1?o=!1:Sb(r,e,s):(o=!e.$stable,Eb(e,r)),c=e}else e&&(Tb(t,e),c={default:1});if(o)for(const u in r)!Nh(u)&&c[u]==null&&delete r[u]},$t=Fb;function Cb(t){return Pb(t)}function Ab(t){return Pb(t,dA)}function Pb(t,e){const s=nd();s.__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:c,createText:u,createComment:f,setText:p,setElementText:m,parentNode:_,nextSibling:y,setScopeId:S=qt,insertStaticContent:T}=t,C=(R,H,N,b=null,O=null,K=null,X=void 0,re=null,oe=!!H.dynamicChildren)=>{if(R===H)return;R&&!Gs(R,H)&&(b=Ge(R),Ue(R,O,K,!0),R=null),H.patchFlag===-2&&(oe=!1,H.dynamicChildren=null);const{type:ie,ref:Te,shapeFlag:ge}=H;switch(ie){case fi:M(R,H,N,b);break;case kt:j(R,H,N,b);break;case qi:R==null&&D(H,N,b,X);break;case pe:I(R,H,N,b,O,K,X,re,oe);break;default:ge&1?U(R,H,N,b,O,K,X,re,oe):ge&6?Z(R,H,N,b,O,K,X,re,oe):(ge&64||ge&128)&&ie.process(R,H,N,b,O,K,X,re,oe,_t)}Te!=null&&O?qr(Te,R&&R.ref,K,H||R,!H):Te==null&&R&&R.ref!=null&&qr(R.ref,null,K,R,!0)},M=(R,H,N,b)=>{if(R==null)n(H.el=u(H.children),N,b);else{const O=H.el=R.el;H.children!==R.children&&p(O,H.children)}},j=(R,H,N,b)=>{R==null?n(H.el=f(H.children||""),N,b):H.el=R.el},D=(R,H,N,b)=>{[R.el,R.anchor]=T(R.children,H,N,b,R.el,R.anchor)},P=({el:R,anchor:H},N,b)=>{let O;for(;R&&R!==H;)O=y(R),n(R,N,b),R=O;n(H,N,b)},$=({el:R,anchor:H})=>{let N;for(;R&&R!==H;)N=y(R),r(R),R=N;r(H)},U=(R,H,N,b,O,K,X,re,oe)=>{H.type==="svg"?X="svg":H.type==="math"&&(X="mathml"),R==null?J(H,N,b,O,K,X,re,oe):F(R,H,O,K,X,re,oe)},J=(R,H,N,b,O,K,X,re)=>{let oe,ie;const{props:Te,shapeFlag:ge,transition:ye,dirs:Ae}=R;if(oe=R.el=c(R.type,K,Te&&Te.is,Te),ge&8?m(oe,R.children):ge&16&&W(R.children,oe,null,b,O,Ou(R,K),X,re),Ae&&un(R,null,b,"created"),se(oe,R,R.scopeId,X,b),Te){for(const Ye in Te)Ye!=="value"&&!di(Ye)&&o(oe,Ye,null,Te[Ye],K,b);"value"in Te&&o(oe,"value",null,Te.value,K),(ie=Te.onVnodeBeforeMount)&&fs(ie,b,R)}Ae&&un(R,null,b,"beforeMount");const je=Ib(O,ye);je&&ye.beforeEnter(oe),n(oe,H,N),((ie=Te&&Te.onVnodeMounted)||je||Ae)&&$t(()=>{ie&&fs(ie,b,R),je&&ye.enter(oe),Ae&&un(R,null,b,"mounted")},O)},se=(R,H,N,b,O)=>{if(N&&S(R,N),b)for(let K=0;K<b.length;K++)S(R,b[K]);if(O){let K=O.subTree;if(H===K||bc(K.type)&&(K.ssContent===H||K.ssFallback===H)){const X=O.vnode;se(R,X,X.scopeId,X.slotScopeIds,O.parent)}}}
vendor: 25,256 bytes, lines 23-26
23,W=(R,H,N,b,O,K,X,re,oe=0)=>{for(let ie=oe;ie<R.length;ie++){const Te=R[ie]=re?ri(R[ie]):ps(R[ie]);C(null,Te,H,N,b,O,K,X,re)}},F=(R,H,N,b,O,K,X)=>{const re=H.el=R.el;let{patchFlag:oe,dynamicChildren:ie,dirs:Te}=H;oe|=R.patchFlag&16;const ge=R.props||Xe,ye=H.props||Xe;let Ae;if(N&&Oi(N,!1),(Ae=ye.onVnodeBeforeUpdate)&&fs(Ae,N,H,R),Te&&un(H,R,N,"beforeUpdate"),N&&Oi(N,!0),(ge.innerHTML&&ye.innerHTML==null||ge.textContent&&ye.textContent==null)&&m(re,""),ie?z(R.dynamicChildren,ie,re,N,b,Ou(H,O),K):X||G(R,H,re,null,N,b,Ou(H,O),K,!1),oe>0){if(oe&16)V(re,ge,ye,N,O);else if(oe&2&&ge.class!==ye.class&&o(re,"class",null,ye.class,O),oe&4&&o(re,"style",ge.style,ye.style,O),oe&8){const je=H.dynamicProps;for(let Ye=0;Ye<je.length;Ye++){const Re=je[Ye],It=ge[Re],xt=ye[Re];(xt!==It||Re==="value")&&o(re,Re,It,xt,O,N)}}oe&1&&R.children!==H.children&&m(re,H.children)}else!X&&ie==null&&V(re,ge,ye,N,O);((Ae=ye.onVnodeUpdated)||Te)&&$t(()=>{Ae&&fs(Ae,N,H,R),Te&&un(H,R,N,"updated")},b)},z=(R,H,N,b,O,K,X)=>{for(let re=0;re<H.length;re++){const oe=R[re],ie=H[re],Te=oe.el&&(oe.type===pe||!Gs(oe,ie)||oe.shapeFlag&198)?_(oe.el):N;C(oe,ie,Te,null,b,O,K,X,!0)}},V=(R,H,N,b,O)=>{if(H!==N){if(H!==Xe)for(const K in H)!di(K)&&!(K in N)&&o(R,K,H[K],null,O,b);for(const K in N){if(di(K))continue;const X=N[K],re=H[K];X!==re&&K!=="value"&&o(R,K,re,X,O,b)}"value"in N&&o(R,"value",H.value,N.value,O)}},I=(R,H,N,b,O,K,X,re,oe)=>{const ie=H.el=R?R.el:u(""),Te=H.anchor=R?R.anchor:u("");let{patchFlag:ge,dynamicChildren:ye,slotScopeIds:Ae}=H;Ae&&(re=re?re.concat(Ae):Ae),R==null?(n(ie,N,b),n(Te,N,b),W(H.children||[],N,Te,O,K,X,re,oe)):ge>0&&ge&64&&ye&&R.dynamicChildren?(z(R.dynamicChildren,ye,N,O,K,X,re),(H.key!=null||O&&H===O.subTree)&&Dh(R,H,!0)):G(R,H,N,Te,O,K,X,re,oe)},Z=(R,H,N,b,O,K,X,re,oe)=>{H.slotScopeIds=re,R==null?H.shapeFlag&512?O.ctx.activate(H,N,b,X,oe):ee(H,N,b,O,K,X,oe):me(R,H,oe)},ee=(R,H,N,b,O,K,X)=>{const re=R.component=Wb(R,b,O);if(Ua(R)&&(re.ctx.renderer=_t),qb(re,!1,X),re.asyncDep){if(O&&O.registerDep(re,ne,X),!R.el){const oe=re.subTree=lt(kt);j(null,oe,H,N),R.placeholder=oe.el}}else ne(re,R,H,N,O,K,X)},me=(R,H,N)=>{const b=H.component=R.component;if(h5(R,H,N))if(b.asyncDep&&!b.asyncResolved){fe(b,H,N);return}else b.next=H,b.update();else H.el=R.el,b.vnode=H},ne=(R,H,N,b,O,K,X)=>{const re=()=>{if(R.isMounted){let{next:ge,bu:ye,u:Ae,parent:je,vnode:Ye}=R;{const Mt=Lb(R);if(Mt){ge&&(ge.el=Ye.el,fe(R,ge,X)),Mt.asyncDep.then(()=>{R.isUnmounted||re()});return}}let Re=ge,It;Oi(R,!1),ge?(ge.el=Ye.el,fe(R,ge,X)):ge=Ye,ye&&Wr(ye),(It=ge.props&&ge.props.onVnodeBeforeUpdate)&&fs(It,je,ge,Ye),Oi(R,!0);const xt=Zl(R),ts=R.subTree;R.subTree=xt,C(ts,xt,_(ts.el),Ge(ts),R,O,K),ge.el=xt.el,Re===null&&bd(R,xt.el),Ae&&$t(Ae,O),(It=ge.props&&ge.props.onVnodeUpdated)&&$t(()=>fs(It,je,ge,Ye),O)}else{let ge;const{el:ye,props:Ae}=H,{bm:je,m:Ye,parent:Re,root:It,type:xt}=R,ts=ui(H);if(Oi(R,!1),je&&Wr(je),!ts&&(ge=Ae&&Ae.onVnodeBeforeMount)&&fs(ge,Re,H),Oi(R,!0),ye&&St){const Mt=()=>{R.subTree=Zl(R),St(ye,R.subTree,R,O,null)};ts&&xt.__asyncHydrate?xt.__asyncHydrate(ye,R,Mt):Mt()}else{It.ce&&It.ce._def.shadowRoot!==!1&&It.ce._injectChildStyle(xt);const Mt=R.subTree=Zl(R);C(null,Mt,N,b,R,O,K),H.el=Mt.el}if(Ye&&$t(Ye,O),!ts&&(ge=Ae&&Ae.onVnodeMounted)){const Mt=H;$t(()=>fs(ge,Re,Mt),O)}(H.shapeFlag&256||Re&&ui(Re.vnode)&&Re.vnode.shapeFlag&256)&&R.a&&$t(R.a,O),R.isMounted=!0,H=N=b=null}};R.scope.on();const oe=R.effect=new fa(re);R.scope.off();const ie=R.update=oe.run.bind(oe),Te=R.job=oe.runIfDirty.bind(oe);Te.i=R,Te.id=R.uid,oe.scheduler=()=>kh(Te),Oi(R,!0),ie()},fe=(R,H,N)=>{H.component=R;const b=R.vnode.props;R.vnode=H,R.next=null,XA(R,H.props,b,N),s5(R,H.children,N),Un(),a0(R),jn()},G=(R,H,N,b,O,K,X,re,oe=!1)=>{const ie=R&&R.children,Te=R?R.shapeFlag:0,ge=H.children,{patchFlag:ye,shapeFlag:Ae}=H;if(ye>0){if(ye&128){ve(ie,ge,N,b,O,K,X,re,oe);return}else if(ye&256){_e(ie,ge,N,b,O,K,X,re,oe);return}}Ae&8?(Te&16&&Ce(ie,O,K),ge!==ie&&m(N,ge)):Te&16?Ae&16?ve(ie,ge,N,b,O,K,X,re,oe):Ce(ie,O,K,!0):(Te&8&&m(N,""),Ae&16&&W(ge,N,b,O,K,X,re,oe))},_e=(R,H,N,b,O,K,X,re,oe)=>{R=R||Vr,H=H||Vr;const ie=R.length,Te=H.length,ge=Math.min(ie,Te);let ye;for(ye=0;ye<ge;ye++){const Ae=H[ye]=oe?ri(H[ye]):ps(H[ye]);C(R[ye],Ae,N,null,O,K,X,re,oe)}ie>Te?Ce(R,O,K,!0,!1,ge):W(H,N,b,O,K,X,re,oe,ge)},ve=(R,H,N,b,O,K,X,re,oe)=>{let ie=0;const Te=H.length;let ge=R.length-1,ye=Te-1;for(;ie<=ge&&ie<=ye;){const Ae=R[ie],je=H[ie]=oe?ri(H[ie]):ps(H[ie]);if(Gs(Ae,je))C(Ae,je,N,null,O,K,X,re,oe);else break;ie++}for(;ie<=ge&&ie<=ye;){const Ae=R[ge],je=H[ye]=oe?ri(H[ye]):ps(H[ye]);if(Gs(Ae,je))C(Ae,je,N,null,O,K,X,re,oe);else break;ge--,ye--}if(ie>ge){if(ie<=ye){const Ae=ye+1,je=Ae<Te?H[Ae].el:b;for(;ie<=ye;)C(null,H[ie]=oe?ri(H[ie]):ps(H[ie]),N,je,O,K,X,re,oe),ie++}}else if(ie>ye)for(;ie<=ge;)Ue(R[ie],O,K,!0),ie++;else{const Ae=ie,je=ie,Ye=new Map;for(ie=je;ie<=ye;ie++){const Lt=H[ie]=oe?ri(H[ie]):ps(H[ie]);Lt.key!=null&&Ye.set(Lt.key,ie)}let Re,It=0;const xt=ye-je+1;let ts=!1,Mt=0;const Ws=new Array(xt);for(ie=0;ie<xt;ie++)Ws[ie]=0;for(ie=Ae;ie<=ge;ie++){const Lt=R[ie];if(It>=xt){Ue(Lt,O,K,!0);continue}let Rt;if(Lt.key!=null)Rt=Ye.get(Lt.key);else for(Re=je;Re<=ye;Re++)if(Ws[Re-je]===0&&Gs(Lt,H[Re])){Rt=Re;break}Rt===void 0?Ue(Lt,O,K,!0):(Ws[Rt-je]=ie+1,Rt>=Mt?Mt=Rt:ts=!0,C(Lt,H[Rt],N,null,O,K,X,re,oe),It++)}const Ti=ts?n5(Ws):Vr;for(Re=Ti.length-1,ie=xt-1;ie>=0;ie--){const Lt=je+ie,Rt=H[Lt],Si=H[Lt+1],mr=Lt+1<Te?Si.el||Si.placeholder:b;Ws[ie]===0?C(null,Rt,N,mr,O,K,X,re,oe):ts&&(Re<0||ie!==Ti[Re]?$e(Rt,N,mr,2):Re--)}}},$e=(R,H,N,b,O=null)=>{const{el:K,type:X,transition:re,children:oe,shapeFlag:ie}=R;if(ie&6){$e(R.component.subTree,H,N,b);return}if(ie&128){R.suspense.move(H,N,b);return}if(ie&64){X.move(R,H,N,_t);return}if(X===pe){n(K,H,N);for(let ge=0;ge<oe.length;ge++)$e(oe[ge],H,N,b);n(R.anchor,H,N);return}if(X===qi){P(R,H,N);return}if(b!==2&&ie&1&&re)if(b===0)re.beforeEnter(K),n(K,H,N),$t(()=>re.enter(K),O);else{const{leave:ge,delayLeave:ye,afterLeave:Ae}=re,je=()=>{R.ctx.isUnmounted?r(K):n(K,H,N)},Ye=()=>{K._isLeaving&&K[In](!0),ge(K,()=>{je(),Ae&&Ae()})};ye?ye(K,je,Ye):Ye()}else n(K,H,N)},Ue=(R,H,N,b=!1,O=!1)=>{const{type:K,props:X,ref:re,children:oe,dynamicChildren:ie,shapeFlag:Te,patchFlag:ge,dirs:ye,cacheIndex:Ae}=R;if(ge===-2&&(O=!1),re!=null&&(Un(),qr(re,null,N,R,!0),jn()),Ae!=null&&(H.renderCache[Ae]=void 0),Te&256){H.ctx.deactivate(R);return}const je=Te&1&&ye,Ye=!ui(R);let Re;if(Ye&&(Re=X&&X.onVnodeBeforeUnmount)&&fs(Re,H,R),Te&6)Ee(R.component,N,b);else{if(Te&128){R.suspense.unmount(N,b);return}je&&un(R,null,H,"beforeUnmount"),Te&64?R.type.remove(R,H,N,_t,b):ie&&!ie.hasOnce&&(K!==pe||ge>0&&ge&64)?Ce(ie,H,N,!1,!0):(K===pe&&ge&384||!O&&Te&16)&&Ce(oe,H,N),b&&rt(R)}(Ye&&(Re=X&&X.onVnodeUnmounted)||je)&&$t(()=>{Re&&fs(Re,H,R),je&&un(R,null,H,"unmounted")},N)},rt=R=>{const{type:H,el:N,anchor:b,transition:O}=R;if(H===pe){We(N,b);return}if(H===qi){$(R);return}const K=()=>{r(N),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(R.shapeFlag&1&&O&&!O.persisted){const{leave:X,delayLeave:re}=O,oe=()=>X(N,K);re?re(R.el,K,oe):oe()}else K()},We=(R,H)=>{let N;for(;R!==H;)N=y(R),r(R),R=N;r(H)},Ee=(R,H,N)=>{const{bum:b,scope:O,job:K,subTree:X,um:re,m:oe,a:ie}=R;vc(oe),vc(ie),b&&Wr(b),O.stop(),K&&(K.flags|=8,Ue(X,R,H,N)),re&&$t(re,H),$t(()=>{R.isUnmounted=!0},H)},Ce=(R,H,N,b=!1,O=!1,K=0)=>{for(let X=K;X<R.length;X++)Ue(R[X],H,N,b,O)},Ge=R=>{if(R.shapeFlag&6)return Ge(R.component.subTree);if(R.shapeFlag&128)return R.suspense.next();const H=y(R.anchor||R.el),N=H&&H[Yv];return N?y(N):H};let nt=!1;const Tt=(R,H,N)=>{R==null?H._vnode&&Ue(H._vnode,null,null,!0):C(H._vnode||null,R,H,null,null,null,N),H._vnode=R,nt||(nt=!0,a0(),mc(),nt=!1)},_t={p:C,um:Ue,m:$e,r:rt,mt:ee,mc:W,pc:G,pbc:z,n:Ge,o:t};let Pt,St;return e&&([Pt,St]=e(_t)),{render:Tt,hydrate:Pt,createApp:YA(Tt,Pt)}}function Ou({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function Oi({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Ib(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Dh(t,e,s=!1){const n=t.children,r=e.children;if(be(n)&&be(r))for(let o=0;o<n.length;o++){const c=n[o];let u=r[o];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=r[o]=ri(r[o]),u.el=c.el),!s&&u.patchFlag!==-2&&Dh(c,u)),u.type===fi&&u.patchFlag!==-1&&(u.el=c.el),u.type===kt&&!u.el&&(u.el=c.el)}}function n5(t){const e=t.slice(),s=[0];let n,r,o,c,u;const f=t.length;for(n=0;n<f;n++){const p=t[n];if(p!==0){if(r=s[s.length-1],t[r]<p){e[n]=r,s.push(n);continue}for(o=0,c=s.length-1;o<c;)u=o+c>>1,t[s[u]]<p?o=u+1:c=u;p<t[s[o]]&&(o>0&&(e[n]=s[o-1]),s[o]=n)}}for(o=s.length,c=s[o-1];o-- >0;)s[o]=c,c=e[c];return s}function Lb(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Lb(e)}function vc(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const Ob=Symbol.for("v-scx"),Nb=()=>Kr(Ob);function i5(t,e){return ja(t,null,e)}function r5(t,e){return ja(t,null,{flush:"post"})}function $b(t,e){return ja(t,null,{flush:"sync"})}function ks(t,e,s){return ja(t,e,s)}function ja(t,e,s=Xe){const{immediate:n,deep:r,flush:o,once:c}=s,u=Qe({},s),f=e&&n||!e&&o!=="post";let p;if(lo){if(o==="sync"){const S=Nb();p=S.__watcherHandles||(S.__watcherHandles=[])}else if(!f){const S=()=>{};return S.stop=qt,S.resume=qt,S.pause=qt,S}}const m=Wt;u.call=(S,T,C)=>Hs(S,m,T,C);let _=!1;o==="post"?u.scheduler=S=>{$t(S,m&&m.suspense)}:o!=="sync"&&(_=!0,u.scheduler=(S,T)=>{T?S():kh(S)}),u.augmentJob=S=>{e&&(S.flags|=4),_&&(S.flags|=2,m&&(S.id=m.uid,S.i=m))};const y=ZC(t,e,u);return lo&&(p?p.push(y):f&&y()),y}function o5(t,e,s){const n=this.proxy,r=Fe(t)?t.includes(".")?Db(n,t):()=>n[t]:t.bind(n,n);let o;Le(e)?o=e:(o=e.handler,s=e);const c=ir(this),u=ja(r,o.bind(n),s);return c(),u}function Db(t,e){const s=e.split(".");return()=>{let n=t;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}function a5(t,e,s=Xe){const n=ys(),r=ht(e),o=_s(e),c=Mb(t,r),u=jv((f,p)=>{let m,_=Xe,y;return $b(()=>{const S=t[r];is(m,S)&&(m=S,p())}),{get(){return f(),s.get?s.get(m):m},set(S){const T=s.set?s.set(S):S;if(!is(T,m)&&!(_!==Xe&&is(S,_)))return;const C=n.vnode.props;C&&(e in C||r in C||o in C)&&(`onUpdate:${e}`in C||`onUpdate:${r}`in C||`onUpdate:${o}`in C)||(m=S,p()),n.emit(`update:${e}`,T),is(S,T)&&is(S,_)&&!is(T,y)&&p(),_=S,y=T}}});return u[Symbol.iterator]=()=>{let f=0;return{next(){return f<2?{value:f++?c||Xe:u,done:!1}:{done:!0}}}},u}const Mb=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${ht(e)}Modifiers`]||t[`${_s(e)}Modifiers`];function l5(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Xe;let r=s;const o=e.startsWith("update:"),c=o&&Mb(n,e.slice(7));c&&(c.trim&&(r=s.map(m=>Fe(m)?m.trim():m)),c.number&&(r=s.map(cc)));let u,f=n[u=zr(e)]||n[u=zr(ht(e))];!f&&o&&(f=n[u=zr(_s(e))]),f&&Hs(f,t,6,r);const p=n[u+"Once"];if(p){if(!t.emitted)t.emitted={};else if(t.emitted[u])return;t.emitted[u]=!0,Hs(p,t,6,r)}}const c5=new WeakMap;function Rb(t,e,s=!1){const n=s?c5:e.emitsCache,r=n.get(t);if(r!==void 0)return r;const o=t.emits;let c={},u=!1;if(!Le(t)){const f=p=>{const m=Rb(p,e,!0);m&&(u=!0,Qe(c,m))};!s&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}return!o&&!u?(ct(t)&&n.set(t,null),null):(be(o)?o.forEach(f=>c[f]=null):Qe(c,o),ct(t)&&n.set(t,c),c)}function vd(t,e){return!t||!cr(e)?!1:(e=e.slice(2).replace(/Once$/,""),ot(t,e[0].toLowerCase()+e.slice(1))||ot(t,_s(e))||ot(t,e))}function Zl(t){const{type:e,vnode:s,proxy:n,withProxy:r,propsOptions:[o],slots:c,attrs:u,emit:f,render:p,renderCache:m,props:_,data:y,setupState:S,ctx:T,inheritAttrs:C}=t,M=ga(t);let j,D;try{if(s.shapeFlag&4){const $=r||n,U=$;j=ps(p.call(U,$,m,_,S,y,T)),D=u}else{const $=e;j=ps($.length>1?$(_,{attrs:u,slots:c,emit:f}):$(_,null)),D=e.props?u:u5(u)}}catch($){na.length=0,fr($,t,1),j=lt(kt)}let P=j;if(D&&C!==!1){const $=Object.keys(D),{shapeFlag:U}=P;$.length&&U&7&&(o&&$.some(uh)&&(D=f5(D,o)),P=bn(P,D,!1,!0))}return s.dirs&&(P=bn(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&Hn(P,s.transition),j=P,ga(M),j}function d5(t,e=!0){let s;for(let n=0;n<t.length;n++){const r=t[n];if(zn(r)){if(r.type!==kt||r.children==="v-if"){if(s)return;s=r}}else return}return s}const u5=t=>{let e;for(const s in t)(s==="class"||s==="style"||cr(s))&&((e||(e={}))[s]=t[s]);return e},f5=(t,e)=>{const s={};for(const n in t)(!uh(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function h5(t,e,s){const{props:n,children:r,component:o}=t,{props:c,children:u,patchFlag:f}=e,p=o.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?x0(n,c,p):!!c;if(f&8){const m=e.dynamicProps;for(let _=0;_<m.length;_++){const y=m[_];if(c[y]!==n[y]&&!vd(p,y))return!0}}}else return(r||u)&&(!u||!u.$stable)?!0:n===c?!1:n?c?x0(n,c,p):!0:!!c;return!1}function x0(t,e,s){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let r=0;r<n.length;r++){const o=n[r];if(e[o]!==t[o]&&!vd(s,o))return!0}return!1}function bd({vnode:t,parent:e},s){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=s,e=e.parent;else break}}const bc=t=>t.__isSuspense;let _f=0;const p5={name:"Suspense",__isSuspense:!0,process(t,e,s,n,r,o,c,u,f,p){if(t==null)_5(e,s,n,r,o,c,u,f,p);else{if(o&&o.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}g5(t,e,s,n,r,c,u,f,p)}},hydrate:v5,normalize:b5},m5=p5;function ba(t,e){const s=t.props&&t.props[e];Le(s)&&s()}function _5(t,e,s,n,r,o,c,u,f){const{p,o:{createElement:m}}=f,_=m("div"),y=t.suspense=Bb(t,r,n,e,_,s,o,c,u,f);p(null,y.pendingBranch=t.ssContent,_,null,n,y,o,c),y.deps>0?(ba(t,"onPending"),ba(t,"onFallback"),p(null,t.ssFallback,e,s,n,null,o,c),Gr(y,t.ssFallback)):y.resolve(!1,!0)}function g5(t,e,s,n,r,o,c,u,{p:f,um:p,o:{createElement:m}}){const _=e.suspense=t.suspense;_.vnode=e,e.el=t.el;const y=e.ssContent,S=e.ssFallback,{activeBranch:T,pendingBranch:C,isInFallback:M,isHydrating:j}=_;if(C)_.pendingBranch=y,Gs(C,y)?(f(C,y,_.hiddenContainer,null,r,_,o,c,u),_.deps<=0?_.resolve():M&&(j||(f(T,S,s,n,r,null,o,c,u),Gr(_,S)))):(_.pendingId=_f++,j?(_.isHydrating=!1,_.activeBranch=C):p(C,r,_),_.deps=0,_.effects.length=0,_.hiddenContainer=m("div"),M?(f(null,y,_.hiddenContainer,null,r,_,o,c,u),_.deps<=0?_.resolve():(f(T,S,s,n,r,null,o,c,u),Gr(_,S))):T&&Gs(T,y)?(f(T,y,s,n,r,_,o,c,u),_.resolve(!0)):(f(null,y,_.hiddenContainer,null,r,_,o,c,u),_.deps<=0&&_.resolve()));else if(T&&Gs(T,y))f(T,y,s,n,r,_,o,c,u),Gr(_,y);else if(ba(e,"onPending"),_.pendingBranch=y,y.shapeFlag&512?_.pendingId=y.component.suspenseId:_.pendingId=_f++,f(null,y,_.hiddenContainer,null,r,_,o,c,u),_.deps<=0)_.resolve();else{const{timeout:D,pendingId:P}=_;D>0?setTimeout(()=>{_.pendingId===P&&_.fallback(S)},D):D===0&&_.fallback(S)}}function Bb(t,e,s,n,r,o,c,u,f,p,m=!1){const{p:_,m:y,um:S,n:T,o:{parentNode:C,remove:M}}=p;let j;const D=x5(t);D&&e&&e.pendingBranch&&(j=e.pendingId,e.deps++);const P=t.props?dc(t.props.timeout):void 0,$=o,U={vnode:t,parent:e,parentComponent:s,namespace:c,container:n,hiddenContainer:r,deps:0,pendingId:_f++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!m,isHydrating:m,isUnmounted:!1,effects:[],resolve(J=!1,se=!1){const{vnode:W,activeBranch:F,pendingBranch:z,pendingId:V,effects:I,parentComponent:Z,container:ee}=U;let me=!1;U.isHydrating?U.isHydrating=!1:J||(me=F&&z.transition&&z.transition.mode==="out-in",me&&(F.transition.afterLeave=()=>{V===U.pendingId&&(y(z,ee,o===$?T(F):o,0),ma(I))}),F&&(C(F.el)===ee&&(o=T(F)),S(F,Z,U,!0)),me||y(z,ee,o,0)),Gr(U,z),U.pendingBranch=null,U.isInFallback=!1;let ne=U.parent,fe=!1;for(;ne;){if(ne.pendingBranch){ne.effects.push(...I),fe=!0;break}ne=ne.parent}!fe&&!me&&ma(I),U.effects=[],D&&e&&e.pendingBranch&&j===e.pendingId&&(e.deps--,e.deps===0&&!se&&e.resolve()),ba(W,"onResolve")},fallback(J){if(!U.pendingBranch)return;const{vnode:se,activeBranch:W,parentComponent:F,container:z,namespace:V}=U;ba(se,"onFallback");const I=T(W),Z=()=>{U.isInFallback&&(_(null,J,z,I,F,null,V,u,f),Gr(U,J))},ee=J.transition&&J.transition.mode==="out-in";ee&&(W.transition.afterLeave=Z),U.isInFallback=!0,S(W,F,null,!0),ee||Z()},move(J,se,W){U.activeBranch&&y(U.activeBranch,J,se,W),U.container=J},next(){return U.activeBranch&&T(U.activeBranch)},registerDep(J,se,W){const F=!!U.pendingBranch;F&&U.deps++;const z=J.vnode.el;J.asyncDep.catch(V=>{fr(V,J,0)}).then(V=>{if(J.isUnmounted||U.isUnmounted||U.pendingId!==J.suspenseId)return;J.asyncResolved=!0;const{vnode:I}=J;bf(J,V,!1),z&&(I.el=z);const Z=!z&&J.subTree.el;se(J,I,C(z||J.subTree.el),z?null:T(J.subTree),U,c,W),Z&&M(Z),bd(J,I.el),F&&--U.deps===0&&U.resolve()})},unmount(J,se){U.isUnmounted=!0,U.activeBranch&&S(U.activeBranch,s,J,se),U.pendingBranch&&S(U.pendingBranch,s,J,se)}};return U}function v5(t,e,s,n,r,o,c,u,f){const p=e.suspense=Bb(e,n,s,t.parentNode,document.createElement("div"),null,r,o,c,u,!0),m=f(t,p.pendingBranch=e.ssContent,s,p,o,c);return p.deps===0&&p.resolve(!1,!0),m}function b5(t){const{shapeFlag:e,children:s}=t,n=e&32;t.ssContent=y0(n?s.default:s),t.ssFallback=n?y0(s.fallback):lt(kt)}function y0(t){let e;if(Le(t)){const s=sr&&t._c;s&&(t._d=!1,w()),t=t(),s&&(t._d=!0,e=Qt,Ub())}return be(t)&&(t=d5(t)),t=ps(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(s=>s!==t)),t}function Fb(t,e){e&&e.pendingBranch?be(t)?e.effects.push(...t):e.effects.push(t):ma(t)}function Gr(t,e){t.activeBranch=e;const{vnode:s,parentComponent:n}=t;let r=e.el;for(;!r&&e.component;)e=e.component.subTree,r=e.el;s.el=r,n&&n.subTree===s&&(n.vnode.el=r,bd(n,r))}function x5(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const pe=Symbol.for("v-fgt"),fi=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),qi=Symbol.for("v-stc"),na=[];let Qt=null;function w(t=!1){na.push(Qt=t?null:[])}function Ub(){na.pop(),Qt=na[na.length-1]||null}let sr=1;function xa(t,e=!1){sr+=t,t<0&&Qt&&e&&(Qt.hasOnce=!0)}function jb(t){return t.dynamicChildren=sr>0?Qt||Vr:null,Ub(),sr>0&&Qt&&Qt.push(t),t}function k(t,e,s,n,r,o){return jb(l(t,e,s,n,r,o,!0))}function nr(t,e,s,n,r){return jb(lt(t,e,s,n,r,!0))}function zn(t){return t?t.__v_isVNode===!0:!1}function Gs(t,e){return t.type===e.type&&t.key===e.key}function y5(t){}const Vb=({key:t})=>t??null,ql=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?Fe(t)||vt(t)||Le(t)?{i:Zt,r:t,k:e,f:!!s}:t:null);function l(t,e=null,s=null,n=0,r=null,o=t===pe?0:1,c=!1,u=!1){const f={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Vb(e),ref:e&&ql(e),scopeId:ud,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Zt};return u?(Mh(f,s),o&128&&t.normalize(f)):s&&(f.shapeFlag|=Fe(s)?8:16),sr>0&&!c&&Qt&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Qt.push(f),f}const lt=w5;function w5(t,e=null,s=null,n=0,r=null,o=!1){if((!t||t===hb)&&(t=kt),zn(t)){const u=bn(t,e,!0);return s&&Mh(u,s),sr>0&&!o&&Qt&&(u.shapeFlag&6?Qt[Qt.indexOf(t)]=u:Qt.push(u)),u.patchFlag=-2,u}if(A5(t)&&(t=t.__vccOpts),e){e=Hb(e);let{class:u,style:f}=e;u&&!Fe(u)&&(e.class=ce(u)),ct(f)&&(cd(f)&&!be(f)&&(f=Qe({},f)),e.style=Ut(f))}const c=Fe(t)?1:bc(t)?128:Jv(t)?64:ct(t)?4:Le(t)?2:0;return l(t,e,s,n,r,c,o,!0)}function Hb(t){return t?cd(t)||yb(t)?Qe({},t):t:null}function bn(t,e,s=!1,n=!1){const{props:r,ref:o,patchFlag:c,children:u,transition:f}=t,p=e?zb(r||{},e):r,m={__v_isVNode:!0,__v_skip:!0,type:t.type,props:p,key:p&&Vb(p),ref:e&&e.ref?s&&o?be(o)?o.concat(ql(e)):[o,ql(e)]:ql(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:u,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==pe?c===-1?16:c|16:c,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:f,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&bn(t.ssContent),ssFallback:t.ssFallback&&bn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return f&&n&&Hn(m,f.clone(m)),m}function Me(t=" ",e=0){return lt(fi,null,t,e)}function Ys(t,e){const s=lt(qi,null,t);return s.staticCount=e,s}function ae(t="",e=!1){return e?(w(),nr(kt,null,t)):lt(kt,null,t)}function ps(t){return t==null||typeof t=="boolean"?lt(kt):be(t)?lt(pe,null,t.slice()):zn(t)?ri(t):lt(fi,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:bn(t)}function Mh(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(be(e))s=16;else if(typeof e=="object")if(n&65){const r=e.default;r&&(r._c&&(r._d=!1),Mh(t,r()),r._c&&(r._d=!0));return}else{s=32;const r=e._;!r&&!yb(e)?e._ctx=Zt:r===3&&Zt&&(Zt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Le(e)?(e={default:e,_ctx:Zt},s=32):(e=String(e),n&64?(s=16,e=[Me(e)]):s=8);t.children=e,t.shapeFlag|=s}function zb(...t){const e={};for(let s=0;s<t.length;s++){const n=t[s];for(const r in n)if(r==="class")e.class!==n.class&&(e.class=ce([e.class,n.class]));else if(r==="style")e.style=Ut([e.style,n.style]);else if(cr(r)){const o=e[r],c=n[r];c&&o!==c&&!(be(o)&&o.includes(c))&&(e[r]=o?[].concat(o,c):c)}else r!==""&&(e[r]=n[r])}return e}function fs(t,e,s,n=null){Hs(t,e,7,[s,n])}const k5=_b();let E5=0;function Wb(t,e,s){const n=t.type,r=(e?e.appContext:t.appContext)||k5,o={uid:E5++,vnode:t,type:n,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new mh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:kb(n,r),emitsOptions:Rb(n,r),emit:null,emitted:null,propsDefaults:Xe,inheritAttrs:n.inheritAttrs,ctx:Xe,data:Xe,props:Xe,attrs:Xe,slots:Xe,refs:Xe,setupState:Xe,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=l5.bind(null,o),t.ce&&t.ce(o),o}let Wt=null;const ys=()=>Wt||Zt;let xc,gf;{const t=nd(),e=(s,n)=>{let r;return(r=t[s])||(r=t[s]=[]),r.push(n),o=>{r.length>1?r.forEach(c=>c(o)):r[0](o)}};xc=e("__VUE_INSTANCE_SETTERS__",s=>Wt=s),gf=e("__VUE_SSR_SETTERS__",s=>lo=s)}const ir=t=>{const e=Wt;return xc(t),t.scope.on(),()=>{t.scope.off(),xc(e)}},vf=()=>{Wt&&Wt.scope.off(),xc(null)};function Zb(t){return t.vnode.shapeFlag&4}let lo=!1;function qb(t,e=!1,s=!1){e&&gf(e);const{props:n,children:r}=t.vnode,o=Zb(t);JA(t,n,o,e),t5(t,r,s||e);const c=o?T5(t,e):void 0;return e&&gf(!1),c}function T5(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,ff);const{setup:n}=s;if(n){Un();const r=t.setupContext=n.length>1?Yb(t):null,o=ir(t),c=So(n,t,0,[t.props,r]),u=hh(c);if(jn(),o(),(u||t.sp)&&!ui(t)&&Ch(t),u){if(c.then(vf,vf),e)return c.then(f=>{bf(t,f,e)}).catch(f=>{fr(f,t,0)});t.asyncDep=c}else bf(t,c,e)}else Gb(t,e)}function bf(t,e,s){Le(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:ct(e)&&(t.setupState=wh(e)),Gb(t,s)}let yc,xf;function Kb(t){yc=t,xf=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,IA))}}const S5=()=>!yc;function Gb(t,e,s){const n=t.type;if(!t.render){if(!e&&yc&&!n.render){const r=n.template||Oh(t).template;if(r){const{isCustomElement:o,compilerOptions:c}=t.appContext.config,{delimiters:u,compilerOptions:f}=n,p=Qe(Qe({isCustomElement:o,delimiters:u},c),f);n.render=yc(r,p)}}t.render=n.render||qt,xf&&xf(t)}{const r=ir(t);Un();try{zA(t)}finally{jn(),r()}}}const C5={get(t,e){return Jt(t,"get",""),t[e]}};function Yb(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,C5),slots:t.slots,emit:t.emit,expose:e}}function Va(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(wh(dd(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in sa)return sa[s](t)},has(e,s){return s in e||s in sa}})):t.proxy}function yf(t,e=!0){return Le(t)?t.displayName||t.name:t.name||e&&t.__name}function A5(t){return Le(t)&&"__vccOpts"in t}const Se=(t,e)=>VC(t,e,lo);function Jb(t,e,s){const n=(o,c,u)=>{xa(-1);try{return lt(o,c,u)}finally{xa(1)}},r=arguments.length;return r===2?ct(e)&&!be(e)?zn(e)?n(t,null,[e]):n(t,e):n(t,null,e):(r>3?s=Array.prototype.slice.call(arguments,2):r===3&&zn(s)&&(s=[s]),n(t,e,s))}function P5(){}function I5(t,e,s,n){const r=s[n];if(r&&Xb(r,t))return r;const o=e();return o.memo=t.slice(),o.cacheIndex=n,s[n]=o}function Xb(t,e){const s=t.memo;if(s.length!=e.length)return!1;for(let n=0;n<s.length;n++)if(is(s[n],e[n]))return!1;return sr>0&&Qt&&Qt.push(t),!0}const Qb="3.5.21",L5=qt,O5=JC,N5=Br,$5=Gv,D5={createComponentInstance:Wb,setupComponent:qb,renderComponentRoot:Zl,setCurrentRenderingInstance:ga,isVNode:zn,normalizeVNode:ps,getComponentPublicInstance:Va,ensureValidVNode:Lh,pushWarningContext:qC,popWarningContext:KC},M5=D5,R5=null,B5=null,F5=null;/** 24* @vue/runtime-dom v3.5.21 25* (c) 2018-present Yuxi (Evan) You and Vue contributors 26* @license MIT
27**/let wf;const w0=typeof window<"u"&&window.trustedTypes;if(w0)try{wf=w0.createPolicy("vue",{createHTML:t=>t})}catch{}const ex=wf?t=>wf.createHTML(t):t=>t,U5="http://www.w3.org/2000/svg",j5="http://www.w3.org/1998/Math/MathML",Pn=typeof document<"u"?document:null,k0=Pn&&Pn.createElement("template"),V5={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,n)=>{const r=e==="svg"?Pn.createElementNS(U5,t):e==="mathml"?Pn.createElementNS(j5,t):s?Pn.createElement(t,{is:s}):Pn.createElement(t);return t==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:t=>Pn.createTextNode(t),createComment:t=>Pn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Pn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,r,o){const c=s?s.previousSibling:e.lastChild;if(r&&(r===o||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{k0.innerHTML=ex(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const u=k0.content;if(n==="svg"||n==="mathml"){const f=u.firstChild;for(;
vendor: 4,242 bytes, line 27
27f.firstChild;)u.appendChild(f.firstChild);u.removeChild(f)}e.insertBefore(u,s)}return[c?c.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},Xn="transition",Zo="animation",co=Symbol("_vtc"),tx={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sx=Qe({},Th,tx),H5=t=>(t.displayName="Transition",t.props=sx,t),nx=H5((t,{slots:e})=>Jb(sb,ix(t),e)),Ni=(t,e=[])=>{be(t)?t.forEach(s=>s(...e)):t&&t(...e)},E0=t=>t?be(t)?t.some(e=>e.length>1):t.length>1:!1;function ix(t){const e={};for(const I in t)I in tx||(e[I]=t[I]);if(t.css===!1)return e;const{name:s="v",type:n,duration:r,enterFromClass:o=`${s}-enter-from`,enterActiveClass:c=`${s}-enter-active`,enterToClass:u=`${s}-enter-to`,appearFromClass:f=o,appearActiveClass:p=c,appearToClass:m=u,leaveFromClass:_=`${s}-leave-from`,leaveActiveClass:y=`${s}-leave-active`,leaveToClass:S=`${s}-leave-to`}=t,T=z5(r),C=T&&T[0],M=T&&T[1],{onBeforeEnter:j,onEnter:D,onEnterCancelled:P,onLeave:$,onLeaveCancelled:U,onBeforeAppear:J=j,onAppear:se=D,onAppearCancelled:W=P}=e,F=(I,Z,ee,me)=>{I._enterCancelled=me,ti(I,Z?m:u),ti(I,Z?p:c),ee&&ee()},z=(I,Z)=>{I._isLeaving=!1,ti(I,_),ti(I,S),ti(I,y),Z&&Z()},V=I=>(Z,ee)=>{const me=I?se:D,ne=()=>F(Z,I,ee);Ni(me,[Z,ne]),T0(()=>{ti(Z,I?f:o),cn(Z,I?m:u),E0(me)||S0(Z,n,C,ne)})};return Qe(e,{onBeforeEnter(I){Ni(j,[I]),cn(I,o),cn(I,c)},onBeforeAppear(I){Ni(J,[I]),cn(I,f),cn(I,p)},onEnter:V(!1),onAppear:V(!0),onLeave(I,Z){I._isLeaving=!0;const ee=()=>z(I,Z);cn(I,_),I._enterCancelled?(cn(I,y),kf()):(kf(),cn(I,y)),T0(()=>{I._isLeaving&&(ti(I,_),cn(I,S),E0($)||S0(I,n,M,ee))}),Ni($,[I,ee])},onEnterCancelled(I){F(I,!1,void 0,!0),Ni(P,[I])},onAppearCancelled(I){F(I,!0,void 0,!0),Ni(W,[I])},onLeaveCancelled(I){z(I),Ni(U,[I])}})}function z5(t){if(t==null)return null;if(ct(t))return[Nu(t.enter),Nu(t.leave)];{const e=Nu(t);return[e,e]}}function Nu(t){return dc(t)}function cn(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.add(s)),(t[co]||(t[co]=new Set)).add(e)}function ti(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const s=t[co];s&&(s.delete(e),s.size||(t[co]=void 0))}function T0(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let W5=0;function S0(t,e,s,n){const r=t._endId=++W5,o=()=>{r===t._endId&&n()};if(s!=null)return setTimeout(o,s);const{type:c,timeout:u,propCount:f}=rx(t,e);if(!c)return n();const p=c+"end";let m=0;const _=()=>{t.removeEventListener(p,y),o()},y=S=>{S.target===t&&++m>=f&&_()};setTimeout(()=>{m<f&&_()},u+1),t.addEventListener(p,y)}function rx(t,e){const s=window.getComputedStyle(t),n=T=>(s[T]||"").split(", "),r=n(`${Xn}Delay`),o=n(`${Xn}Duration`),c=C0(r,o),u=n(`${Zo}Delay`),f=n(`${Zo}Duration`),p=C0(u,f);let m=null,_=0,y=0;e===Xn?c>0&&(m=Xn,_=c,y=o.length):e===Zo?p>0&&(m=Zo,_=p,y=f.length):(_=Math.max(c,p),m=_>0?c>p?Xn:Zo:null,y=m?m===Xn?o.length:f.length:0);const S=m===Xn&&/\b(?:transform|all)(?:,|$)/.test(n(`${Xn}Property`).toString());return{type:m,timeout:_,propCount:y,hasTransform:S}}function C0(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((s,n)=>A0(s)+A0(t[n])))}function A0(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function kf(){return document.body.offsetHeight}function Z5(t,e,s){const n=t[co];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const wc=Symbol("_vod"),ox=Symbol("_vsh"),Ft={name:"show",beforeMount(t,{value:e},{transition:s}){t[wc]=t.style.display==="none"?"":t.style.display,s&&e?s.beforeEnter(t):qo(t,e)},mounted(t,{value:e},{transition:s}){s&&e&&s.enter(t)},updated(t,{value:e,oldValue:s},{transition:n}){!e!=!s&&(n?e?(n.beforeEnter(t),qo(t,!0),n.enter(t)):n.leave(t,()=>{qo(t,!1)}):qo(t,e))},beforeUnmount(t,{value:e}){qo(t,e)}};function qo(t,e){t.style.display=e?t[wc]:"none",t[ox]=!e}function q5(){Ft.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const ax=Symbol("");function K5(t){const e=ys();if(!e)return;const s=e.ut=(r=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}
27"]`)).forEach(o=>kc(o,r))},n=()=>{const r=t(e.proxy);e.ce?kc(e.ce,r):Ef(e.subTree,r),s(r)};Ah(()=>{ma(n)}),yn(()=>{ks(n,qt,{flush:"post"});const r=new MutationObserver(n);r.observe(e.subTree.el.parentNode,{childList:!0}),gd(()=>r.disconnect())})}function Ef(t,e){if(t.shapeFlag&128){const s=t.suspense;t=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{Ef(s.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)kc(t.el,e);else if(t.type===pe)t.children.forEach(s=>Ef(s,e));else if(t.type===qi){let{el:s,anchor:n}=t;for(;s&&(kc(s,e),s!==n);)s=s.nextSibling}}function kc(t,e){if(t.nodeType===1){const s=t.style;let n="";for(const r in e){const o=dC(e[r]);s.setProperty(`--${r}`,o),n+=`--${r}: ${o};`}s[ax]=n}}const G5=/(?:^|;)\s*display\s*:/;function Y5(t,e,s){const n=t.style,r=Fe(s);let o=!1;if(s&&!r){if(e)if(Fe(e))for(const c of e.split(";")){const u=c.slice(0,c.indexOf(":")).trim();s[u]==null&&Kl(n,u,"")}else for(const c in e)s[c]==null&&Kl(n,c,"");for(const c in s)c==="display"&&(o=!0),Kl(n,c,s[c])}else if(r){if(e!==s){const c=n[ax];c&&(s+=";"+c),n.cssText=s,o=G5.test(s)}}else e&&t.removeAttribute("style");wc in t&&(t[wc]=o?n.display:"",t[ox]&&(n.display="none"))}const P0=/\s*!important$/;function Kl(t,e,s){if(be(s))s.forEach(n=>Kl(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))t.setProperty(e,s);else{const n=J5(t,e);P0.test(s)?t.setProperty(_s(n),s.replace(P0,""),"important"):t[n]=s}}const I0=["Webkit","Moz","ms"],$u={};function J5(t,e){const s=$u[e];if(s)return s;let n=ht(e);if(n!=="filter"&&n in t)return $u[e]=n;n=ur(n);for(let r=0;r<I0.length;r++){const o=I0[r]+n;if(o in t)return $u[e]=o}return e}const L0="http://www.w3.org/1999/xlink";function O0(t,e,s,n,r,o=lC(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(L0,e.slice(6,e.length)):t.setAttributeNS(L0,e,s):s==null||o&&!bv(s)?t.removeAttribute(e):t.setAttribute(e,o?"":xs(s)?String(s):s)}function N0(t,e,s,n,r){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?ex(s):s);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const u=o==="OPTION"?t.getAttribute("value")||"":t.value,f=s==null?t.type==="checkbox"?"on":"":String(s);(u!==f||!("_value"in t))&&(t.value=f),s==null&&t.removeAttribute(e),t._value=s;return}let c=!1;if(s===""||s==null){const u=typeof t[e];u==="boolean"?s=bv(s):s==null&&u==="string"?(s="",c=!0):u==="number"&&(s=0,c=!0)}try{t[e]=s}catch{}c&&t.removeAttribute(r||e)}function Nn(t,e,s,n){t.addEventListener(e,s,n)}function X5(t,e,s,n){t.removeEventListener(e,s,n)}const $0=Symbol("_vei");function Q5(t,e,s,n,r=null){const o=t[$0]||(t[$0]={}),c=o[e];if(n&&c)c.value=n;else{const[u,f]=e3(e);if(n){const p=o[e]=n3(n,r);Nn(t,u,p,f)}else c&&(X5(t,u,c,f),o[e]=void 0)}}const D0=/(?:Once|Passive|Capture)$/;function e3(t){let e;if(D0.test(t)){e={};let n;for(;n=t.match(D0);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):_s(t.slice(2)),e]}let Du=0;const t3=Promise.resolve(),s3=()=>Du||(t3.then(()=>Du=0),Du=Date.now());function n3(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Hs(i3(n,s.value),e,5,[n])};return s.value=t,s.attached=s3(),s}function i3(t,e){if(be(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map(n=>r=>!r._stopped&&n&&n(r))}else return e}const M0=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,r3=(t,e,s,n,r,o)=>{const c=r==="svg";e==="class"?Z5(t,n,c):e==="style"?Y5(t,s,n):cr(e)?uh(e)||Q5(t,e,s,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):o3(t,e,n,c))?(N0(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&O0(t,e,n,c,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Fe(n))?N0(t,ht(e),n,o,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),O0(t,e,n,c))};function o3(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&M0(e)&&Le(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return M0(e)&&Fe(s)?!1:e in t}const R0={};function lx(t,e,s){let n=Sh(t,e);td(n)&&(n=Qe({},n,e));class r extends xd{constructor(c){super(n,c,s)}}return r.def=n,r}const a3=((t,e)=>lx(t,e,bx)),l3=typeof HTMLElement<"u"?HTMLElement:class{};class xd extends l3{constructor(e,s={},n=Tc){super(),this._def=e,this._props=s,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==Tc?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof xd){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,tr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}
vendor: 69,827 bytes, lines 27-37
27_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const r of n)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:c}=n;let u;if(o&&!be(o))for(const f in o){const p=o[f];(p===Number||p&&p.type===Number)&&(f in this._props&&(this._props[f]=dc(this._props[f])),(u||(u=Object.create(null)))[ht(f)]=!0)}this._numberProps=u,this._resolveProps(n),this.shadowRoot&&this._applyStyles(c),this._mount(n)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(n=>{n.configureApp=this._def.configureApp,e(this._def=n,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const n in s)ot(this,n)||Object.defineProperty(this,n,{get:()=>Ie(s[n])})}_resolveProps(e){const{props:s}=e,n=be(s)?s:Object.keys(s||{});for(const r of Object.keys(this))r[0]!=="_"&&n.includes(r)&&this._setProp(r,this[r]);for(const r of n.map(ht))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(o){this._setProp(r,o,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const s=this.hasAttribute(e);let n=s?this.getAttribute(e):R0;const r=ht(e);s&&this._numberProps&&this._numberProps[r]&&(n=dc(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,s,n=!0,r=!1){if(s!==this._props[e]&&(s===R0?delete this._props[e]:(this._props[e]=s,e==="key"&&this._app&&(this._app._ceVNode.key=s)),r&&this._instance&&this._update(),n)){const o=this._ob;o&&o.disconnect(),s===!0?this.setAttribute(_s(e),""):typeof s=="string"||typeof s=="number"?this.setAttribute(_s(e),s+""):s||this.removeAttribute(_s(e)),o&&o.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),vx(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const s=lt(this._def,Qe(e,this._props));return this._instance||(s.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const r=(o,c)=>{this.dispatchEvent(new CustomEvent(o,td(c[0])?Qe({detail:c},c[0]):{detail:c}))};n.emit=(o,...c)=>{r(o,c),_s(o)!==o&&r(_s(o),c)},this._setParent()}),s}_applyStyles(e,s){if(!e)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const n=this._nonce;for(let r=e.length-1;r>=0;r--){const o=document.createElement("style");n&&o.setAttribute("nonce",n),o.textContent=e[r],this.shadowRoot.prepend(o)}}_parseSlots(){const e=this._slots={};let s;for(;s=this.firstChild;){const n=s.nodeType===1&&s.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(s),this.removeChild(s)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),s=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],o=r.getAttribute("name")||"default",c=this._slots[o],u=r.parentNode;if(c)for(const f of c){if(s&&f.nodeType===1){const p=s+"-s",m=document.createTreeWalker(f,1);f.setAttribute(p,"");let _;for(;_=m.nextNode();)_.setAttribute(p,"")}u.insertBefore(f,r)}else for(;r.firstChild;)u.insertBefore(r.firstChild,r);u.removeChild(r)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function cx(t){const e=ys(),s=e&&e.ce;return s||null}function c3(){const t=cx();return t&&t.shadowRoot}function d3(t="$style"){{const e=ys();if(!e)return Xe;const s=e.type.__cssModules;if(!s)return Xe;const n=s[t];return n||Xe}}const dx=new WeakMap,ux=new WeakMap,Ec=Symbol("_moveCb"),B0=Symbol("_enterCb"),u3=t=>(delete t.props.mode,t),f3=u3({name:"TransitionGroup",props:Qe({},sx,{tag:String,moveClass:String}),setup(t,{slots:e}){const s=ys(),n=Eh();let r,o;return md(()=>{if(!r.length)return;const c=t.moveClass||`${t.name||"v"}-move`;if(!g3(r[0].el,s.vnode.el,c)){r=[];return}r.forEach(p3),r.forEach(m3);const u=r.filter(_3);kf(),u.forEach(f=>{const p=f.el,m=p.style;cn(p,c),m.transform=m.webkitTransform=m.transitionDuration="";const _=p[Ec]=y=>{y&&y.target!==p||(!y||y.propertyName.endsWith("transform"))&&(p.removeEventListener("transitionend",_),p[Ec]=null,ti(p,c))};p.addEventListener("transitionend",_)}),r=[]}),()=>{const c=et(t),u=ix(c);let f=c.tag||pe;if(r=[],o)for(let p=0;p<o.length;p++){const m=o[p];m.el&&m.el instanceof Element&&(r.push(m),Hn(m,ao(m,u,n,s)),dx.set(m,m.el.getBoundingClientRect()))}o=e.default?hd(e.default()):[];for(let p=0;p<o.length;p++){const m=o[p];m.key!=null&&Hn(m,ao(m,u,n,s))}return lt(f,null,o)}}}),h3=f3;function p3(t){const e=t.el;e[Ec]&&e[Ec](),e[B0]&&e[B0]()}function m3(t){ux.set(t,t.el.getBoundingClientRect())}function _3(t){const e=dx.get(t),s=ux.get(t),n=e.left-s.left,r=e.top-s.top;if(n||r){const o=t.el.style;return o.transform=o.webkitTransform=`translate(${n}px,${r}px)`,o.transitionDuration="0s",t}}function g3(t,e,s){const n=t.cloneNode(),r=t[co];r&&r.forEach(u=>{u.split(/\s+/).forEach(f=>f&&n.classList.remove(f))}),s.split(/\s+/).forEach(u=>u&&n.classList.add(u)),n.style.display="none";const o=e.nodeType===1?e:e.parentNode;o.appendChild(n);const{hasTransform:c}=rx(n);return o.removeChild(n),c}const xi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return be(e)?s=>Wr(e,s):e};function v3(t){t.target.composing=!0}function F0(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Us=Symbol("_assign"),Nt={created(t,{modifiers:{lazy:e,trim:s,number:n}},r){t[Us]=xi(r);const o=n||r.props&&r.props.type==="number";Nn(t,e?"change":"input",c=>{if(c.target.composing)return;let u=t.value;s&&(u=u.trim()),o&&(u=cc(u)),t[Us](u)}),s&&Nn(t,"change",()=>{t.value=t.value.trim()}),e||(Nn(t,"compositionstart",v3),Nn(t,"compositionend",F0),Nn(t,"change",F0))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:n,trim:r,number:o}},c){if(t[Us]=xi(c),t.composing)return;const u=(o||t.type==="number")&&!/^0\d/.test(t.value)?cc(t.value):t.value,f=e??"";u!==f&&(document.activeElement===t&&t.type!=="range"&&(n&&e===s||r&&t.value.trim()===f)||(t.value=f))}},Rh={deep:!0,created(t,e,s){t[Us]=xi(s),Nn(t,"change",()=>{const n=t._modelValue,r=uo(t),o=t.checked,c=t[Us];if(be(n)){const u=id(n,r),f=u!==-1;if(o&&!f)c(n.concat(r));else if(!o&&f){const p=[...n];p.splice(u,1),c(p)}}else if(dr(n)){const u=new Set(n);o?u.add(r):u.delete(r),c(u)}else c(fx(t,o))})},mounted:U0,beforeUpdate(t,e,s){t[Us]=xi(s),U0(t,e,s)}};function U0(t,{value:e,oldValue:s},n){t._modelValue=e;let r;if(be(e))r=id(e,n.props.value)>-1;else if(dr(e))r=e.has(n.props.value);else{if(e===s)return;r=bi(e,fx(t,!0))}t.checked!==r&&(t.checked=r)}const ya={created(t,{value:e},s){t.checked=bi(e,s.props.value),t[Us]=xi(s),Nn(t,"change",()=>{t[Us](uo(t))})},beforeUpdate(t,{value:e,oldValue:s},n){t[Us]=xi(n),e!==s&&(t.checked=bi(e,n.props.value))}},ia={deep:!0,created(t,{value:e,modifiers:{number:s}},n){const r=dr(e);Nn(t,"change",()=>{const o=Array.prototype.filter.call(t.options,c=>c.selected).map(c=>s?cc(uo(c)):uo(c));t[Us](t.multiple?r?new Set(o):o:o[0]),t._assigning=!0,tr(()=>{t._assigning=!1})}),t[Us]=xi(n)},mounted(t,{value:e}){j0(t,e)},beforeUpdate(t,e,s){t[Us]=xi(s)},updated(t,{value:e}){t._assigning||j0(t,e)}};function j0(t,e){const s=t.multiple,n=be(e);if(!(s&&!n&&!dr(e))){for(let r=0,o=t.options.length;r<o;r++){const c=t.options[r],u=uo(c);if(s)if(n){const f=typeof u;f==="string"||f==="number"?c.selected=e.some(p=>String(p)===String(u)):c.selected=id(e,u)>-1}else c.selected=e.has(u);else if(bi(uo(c),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function uo(t){return"_value"in t?t._value:t.value}function fx(t,e){const s=e?"_trueValue":"_falseValue";return s in t?t[s]:e}const hx={created(t,e,s){$l(t,e,s,null,"created")},mounted(t,e,s){$l(t,e,s,null,"mounted")},beforeUpdate(t,e,s,n){$l(t,e,s,n,"beforeUpdate")},updated(t,e,s,n){$l(t,e,s,n,"updated")}};function px(t,e){switch(t){case"SELECT":return ia;case"TEXTAREA":return Nt;default:switch(e){case"checkbox":return Rh;case"radio":return ya;default:return Nt}}}function $l(t,e,s,n,r){const c=px(t.tagName,s.props&&s.props.type)[r];c&&c(t,e,s,n)}function b3(){Nt.getSSRProps=({value:t})=>({value:t}),ya.getSSRProps=({value:t},e)=>{if(e.props&&bi(e.props.value,t))return{checked:!0}},Rh.getSSRProps=({value:t},e)=>{if(be(t)){if(e.props&&id(t,e.props.value)>-1)return{checked:!0}}else if(dr(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},hx.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const s=px(e.type.toUpperCase(),e.props&&e.props.type);if(s.getSSRProps)return s.getSSRProps(t,e)}}const x3=["ctrl","shift","alt","meta"],y3={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>x3.some(s=>t[`${s}Key`]&&!e.includes(s))},hs=(t,e)=>{const s=t._withMods||(t._withMods={}),n=e.join(".");return s[n]||(s[n]=((r,...o)=>{for(let c=0;c<e.length;c++){const u=y3[e[c]];if(u&&u(r,e))return}return t(r,...o)}))},w3={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},k3=(t,e)=>{const s=t._withKeys||(t._withKeys={}),n=e.join(".");return s[n]||(s[n]=(r=>{if(!("key"in r))return;const o=_s(r.key);if(e.some(c=>c===o||w3[c]===o))return t(r)}))},mx=Qe({patchProp:r3},V5);let ra,V0=!1;function _x(){return ra||(ra=Cb(mx))}function gx(){return ra=V0?ra:Ab(mx),V0=!0,ra}const vx=((...t)=>{_x().render(...t)}),E3=((...t)=>{gx().hydrate(...t)}),Tc=((...t)=>{const e=_x().createApp(...t),{mount:s}=e;return e.mount=n=>{const r=yx(n);if(!r)return;const o=e._component;!Le(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const c=s(r,!1,xx(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),c},e}),bx=((...t)=>{const e=gx().createApp(...t),{mount:s}=e;return e.mount=n=>{const r=yx(n);if(r)return s(r,!0,xx(r))},e});function xx(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function yx(t){return Fe(t)?document.querySelector(t):t}let H0=!1;const T3=()=>{H0||(H0=!0,b3(),q5())},S3=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:sb,BaseTransitionPropsValidators:Th,Comment:kt,DeprecationTypes:F5,EffectScope:mh,ErrorCodes:YC,ErrorTypeStrings:O5,Fragment:pe,KeepAlive:wA,ReactiveEffect:fa,Static:qi,Suspense:m5,Teleport:iA,Text:fi,TrackOpTypes:HC,Transition:nx,TransitionGroup:h3,TriggerOpTypes:zC,VueElement:xd,assertNumber:GC,callWithAsyncErrorHandling:Hs,callWithErrorHandling:So,camelize:ht,capitalize:ur,cloneVNode:bn,compatUtils:B5,computed:Se,createApp:Tc,createBlock:nr,createCommentVNode:ae,createElementBlock:k,createElementVNode:l,createHydrationRenderer:Ab,createPropsRestProxy:VA,createRenderer:Cb,createSSRApp:bx,createSlots:CA,createStaticVNode:Ys,createTextVNode:Me,createVNode:lt,customRef:jv,defineAsyncComponent:xA,defineComponent:Sh,defineCustomElement:lx,defineEmits:OA,defineExpose:NA,defineModel:MA,defineOptions:$A,defineProps:LA,defineSSRCustomElement:a3,defineSlots:DA,devtools:N5,effect:fC,effectScope:_h,getCurrentInstance:ys,getCurrentScope:gh,getCurrentWatcher:WC,getTransitionRawChildren:hd,guardReactiveProps:Hb,h:Jb,handleError:fr,hasInjectionContext:vb,hydrate:E3,hydrateOnIdle:pA,hydrateOnInteraction:vA,hydrateOnMediaQuery:gA,hydrateOnVisible:_A,initCustomFormatter:P5,initDirectivesForSSR:T3,inject:Kr,isMemoSame:Xb,isProxy:cd,isReactive:_n,isReadonly:Vn,isRef:vt,isRuntimeOnly:S5,isShallow:Ss,isVNode:zn,markRaw:dd,mergeDefaults:UA,mergeModels:jA,mergeProps:zb,nextTick:tr,normalizeClass:ce,normalizeProps:X4,normalizeStyle:Ut,onActivated:ib,onBeforeMount:ab,onBeforeUnmount:_d,onBeforeUpdate:Ah,onDeactivated:rb,onErrorCaptured:ub,onMounted:yn,onRenderTracked:db,onRenderTriggered:cb,onScopeDispose:wv,onServerPrefetch:lb,onUnmounted:gd,onUpdated:md,onWatcherCleanup:zv,openBlock:w,popScopeId:tA,provide:gb,proxyRefs:wh,pushScopeId:eA,queuePostFlushCb:ma,reactive:er,readonly:yh,ref:ke,registerRuntimeCompiler:Kb,render:vx,renderList:Ne,renderSlot:AA,resolveComponent:fb,resolveDirective:SA,resolveDynamicComponent:TA,resolveFilter:R5,resolveTransitionHooks:ao,setBlockTracking:xa,setDevtoolsHook:$5,setTransitionHooks:Hn,shallowReactive:Bv,shallowReadonly:OC,shallowRef:Fv,ssrContextKey:Ob,ssrUtils:M5,stop:hC,toDisplayString:v,toHandlerKey:zr,toHandlers:PA,toRaw:et,toRef:UC,toRefs:Vv,toValue:DC,transformVNodeArgs:y5,triggerRef:$C,unref:Ie,useAttrs:FA,useCssModule:d3,useCssVars:K5,useHost:cx,useId:oA,useModel:a5,useSSRContext:Nb,useShadowRoot:c3,useSlots:BA,useTemplateRef:aA,useTransitionState:Eh,vModelCheckbox:Rh,vModelDynamic:hx,vModelRadio:ya,vModelSelect:ia,vModelText:Nt,vShow:Ft,version:Qb,warn:L5,watch:ks,watchEffect:i5,watchPostEffect:r5,watchSyncEffect:$b,withAsyncContext:HA,withCtx:fd,withDefaults:RA,withDirectives:Ke,withKeys:k3,withMemo:I5,withModifiers:hs,withScopeId:sA},Symbol.toStringTag,{value:"Module"}));/** 28* @vue/compiler-core v3.5.21 29* (c) 2018-present Yuxi (Evan) You and Vue contributors 30* @license MIT 31**/const wa=Symbol(""),oa=Symbol(""),Bh=Symbol(""),Sc=Symbol(""),wx=Symbol(""),rr=Symbol(""),kx=Symbol(""),Ex=Symbol(""),Fh=Symbol(""),Uh=Symbol(""),Ha=Symbol(""),jh=Symbol(""),Tx=Symbol(""),Vh=Symbol(""),Hh=Symbol(""),zh=Symbol(""),Wh=Symbol(""),Zh=Symbol(""),qh=Symbol(""),Sx=Symbol(""),Cx=Symbol(""),yd=Symbol(""),Cc=Symbol(""),Kh=Symbol(""),Gh=Symbol(""),ka=Symbol(""),za=Symbol(""),Yh=Symbol(""),Tf=Symbol(""),C3=Symbol(""),Sf=Symbol(""),Ac=Symbol(""),A3=Symbol(""),P3=Symbol(""),Jh=Symbol(""),I3=Symbol(""),L3=Symbol(""),Xh=Symbol(""),Ax=Symbol(""),fo={[wa]:"Fragment",[oa]:"Teleport",[Bh]:"Suspense",[Sc]:"KeepAlive",[wx]:"BaseTransition",[rr]:"openBlock",[kx]:"createBlock",[Ex]:"createElementBlock",[Fh]:"createVNode",[Uh]:"createElementVNode",[Ha]:"createCommentVNode",[jh]:"createTextVNode",[Tx]:"createStaticVNode",[Vh]:"resolveComponent",[Hh]:"resolveDynamicComponent",[zh]:"resolveDirective",[Wh]:"resolveFilter",[Zh]:"withDirectives",[qh]:"renderList",[Sx]:"renderSlot",[Cx]:"createSlots",[yd]:"toDisplayString",[Cc]:"mergeProps",[Kh]:"normalizeClass",[Gh]:"normalizeStyle",[ka]:"normalizeProps",[za]:"guardReactiveProps",[Yh]:"toHandlers",[Tf]:"camelize",[C3]:"capitalize",[Sf]:"toHandlerKey",[Ac]:"setBlockTracking",[A3]:"pushScopeId",[P3]:"popScopeId",[Jh]:"withCtx",[I3]:"unref",[L3]:"isRef",[Xh]:"withMemo",[Ax]:"isMemoSame"};function O3(t){Object.getOwnPropertySymbols(t).forEach(e=>{fo[e]=t[e]})}const Ls={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function N3(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Ls}}function Ea(t,e,s,n,r,o,c,u=!1,f=!1,p=!1,m=Ls){return t&&(u?(t.helper(rr),t.helper(mo(t.inSSR,p))):t.helper(po(t.inSSR,p)),c&&t.helper(Zh)),{type:13,tag:e,props:s,children:n,patchFlag:r,dynamicProps:o,directives:c,isBlock:u,disableTracking:f,isComponent:p,loc:m}}function Ki(t,e=Ls){return{type:17,loc:e,elements:t}}function Bs(t,e=Ls){return{type:15,loc:e,properties:t}}function Et(t,e){return{type:16,loc:Ls,key:Fe(t)?ze(t,!0):t,value:e}}function ze(t,e=!1,s=Ls,n=0){return{type:4,loc:s,content:t,isStatic:e,constType:e?3:n}}function Qs(t,e=Ls){return{type:8,loc:e,children:t}}function Dt(t,e=[],s=Ls){return{type:14,loc:s,callee:t,arguments:e}}function ho(t,e=void 0,s=!1,n=!1,r=Ls){return{type:18,params:t,returns:e,newline:s,isSlot:n,loc:r}}function Cf(t,e,s,n=!0){return{type:19,test:t,consequent:e,alternate:s,newline:n,loc:Ls}}function $3(t,e,s=!1,n=!1){return{type:20,index:t,value:e,needPauseTracking:s,inVOnce:n,needArraySpread:!1,loc:Ls}}function D3(t){return{type:21,body:t,loc:Ls}}function po(t,e){return t||e?Fh:Uh}function mo(t,e){return t||e?kx:Ex}function Qh(t,{helper:e,removeHelper:s,inSSR:n}){t.isBlock||(t.isBlock=!0,s(po(n,t.isComponent)),e(rr),e(mo(n,t.isComponent)))}const z0=new Uint8Array([123,123]),W0=new Uint8Array([125,125]);function Z0(t){return t>=97&&t<=122||t>=65&&t<=90}function ws(t){return t===32||t===10||t===9||t===12||t===13}function Qn(t){return t===47||t===62||ws(t)}function Pc(t){const e=new Uint8Array(t.length);for(let s=0;s<t.length;s++)e[s]=t.charCodeAt(s);return e}const Kt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class M3{constructor(e,s){this.stack=e,this.cbs=s,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=z0,this.delimiterClose=W0,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=z0,this.delimiterClose=W0}getPos(e){let s=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){s=r+2,n=e-o;break}}return{column:n,line:s,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const s=this.index+1-this.delimiterOpen.length;s>this.sectionStart&&this.cbs.ontext(this.sectionStart,s),this.state=3,this.sectionStart=s}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const s=this.sequenceIndex===this.currentSequence.length;if(!(s?Qn(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!s){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||ws(e)){const s=this.index-this.currentSequence.length;if(this.sectionStart<s){const n=this.index;this.index=s,this.cbs.ontext(this.sectionStart,s),this.index=n}this.sectionStart=s+2,this.stateInClosingTagName(e),this.inRCDATA=!1;return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Kt.TitleEnd||this.currentSequence===Kt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===60)}stateCDATASequence(e){e===Kt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Kt.Cdata.length&&(this.state=28,this.currentSequence=Kt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);if(s===10&&this.newlines.push(this.index),s===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,s){this.enterRCDATA(e,s),this.state=31}enterRCDATA(e,s){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=s}stateBeforeTagName(e){e===33?(this.state=22,this.sectionStart=this.index+1):e===63?(this.state=24,this.sectionStart=this.index+1):Z0(e)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:e===116?this.state=30:this.state=e===115?29:6):e===47?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Qn(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Qn(e)){const s=this.buffer.slice(this.sectionStart,this.index);s!=="template"&&this.enterRCDATA(Pc("</"+s),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){ws(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Z0(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||ws(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){e===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):e===47?this.state=7:e===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ws(e)||this.handleAttrStart(e)}handleAttrStart(e){e===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):e===46||e===58||e===64||e===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ws(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||Qn(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||Qn(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):e===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){e===61||Qn(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===91?this.state=15:e===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){e===93?this.state=14:(e===61||Qn(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||Qn(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){e===61?this.state=18:e===47||e===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):ws(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){e===34?(this.state=19,this.sectionStart=this.index+1):e===39?(this.state=20,this.sectionStart=this.index+1):ws(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,s){(e===s||this.fastForwardTo(s))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(s===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){ws(e)||e===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):(e===39||e===60||e===61||e===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){e===91?(this.state=26,this.sequenceIndex=0):this.state=e===45?25:23}stateInDeclaration(e){(e===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){e===45?(this.state=28,this.currentSequence=Kt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(e===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Kt.ScriptEnd[3]?this.startSpecial(Kt.ScriptEnd,4):e===Kt.StyleEnd[3]?this.startSpecial(Kt.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Kt.TitleEnd[3]?this.startSpecial(Kt.TitleEnd,4):e===Kt.TextareaEnd[3]?this.startSpecial(Kt.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);switch(s===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(s);break}case 2:{this.stateInterpolationOpen(s);break}case 3:{this.stateInterpolation(s);break}case 4:{this.stateInterpolationClose(s);break}case 31:{this.stateSpecialStartSequence(s);break}case 32:{this.stateInRCDATA(s);break}case 26:{this.stateCDATASequence(s);break}case 19:{this.stateInAttrValueDoubleQuotes(s);break}case 12:{this.stateInAttrName(s);break}case 13:{this.stateInDirName(s);break}case 14:{this.stateInDirArg(s);break}case 15:{this.stateInDynamicDirArg(s);break}case 16:{this.stateInDirModifier(s);break}case 28:{this.stateInCommentLike(s);break}case 27:{this.stateInSpecialComment(s);break}case 11:{this.stateBeforeAttrName(s);break}case 6:{this.stateInTagName(s);break}case 34:{this.stateInSFCRootTagName(s);break}case 9:{this.stateInClosingTagName(s);break}case 5:{this.stateBeforeTagName(s);break}case 17:{this.stateAfterAttrName(s);break}case 20:{this.stateInAttrValueSingleQuotes(s);break}case 18:{this.stateBeforeAttrValue(s);break}case 8:{this.stateBeforeClosingTagName(s);break}case 10:{this.stateAfterClosingTagName(s);break}case 29:{this.stateBeforeSpecialS(s);break}case 30:{this.stateBeforeSpecialT(s);break}case 21:{this.stateInAttrValueNoQuotes(s);break}case 7:{this.stateInSelfClosingTag(s);break}case 23:{this.stateInDeclaration(s);break}case 22:{this.stateBeforeDeclaration(s);break}case 25:{this.stateBeforeComment(s);break}case 24:{this.stateInProcessingInstruction(s);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(this.state===28?this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,s){}}function q0(t,{compatConfig:e}){const s=e&&e[t];return t==="MODE"?s||3:s}function Gi(t,e){const s=q0("MODE",e),n=q0(t,e);return s===3?n===!0:n!==!1}function Ta(t,e,s,...n){return Gi(t,e)}function ep(t){throw t}function Px(t){}function mt(t,e,s,n){const r=`https://vuejs.org/error-reference/#compiler-${t}`,o=new SyntaxError(String(r));return o.code=t,o.loc=e,o}const gs=t=>t.type===4&&t.isStatic;function Ix(t){switch(t){case"Teleport":case"teleport":return oa;case"Suspense":case"suspense":return Bh;case"KeepAlive":case"keep-alive":return Sc;case"BaseTransition":case"base-transition":return wx}}const R3=/^$|^\d|[^\$\w\xA0-\uFFFF]/,tp=t=>!R3.test(t),B3=/[A-Za-z_$\xA0-\uFFFF]/,F3=/[\.\?\w$\xA0-\uFFFF]/,U3=/\s+[.[]\s*|\s*[.[]\s+/g,Lx=t=>t.type===4?t.content:t.loc.source,j3=t=>{const e=Lx(t).trim().replace(U3,u=>u.trim());let s=0,n=[],r=0,o=0,c=null;for(let u=0;u<e.length;u++){const f=e.charAt(u);switch(s){case 0:if(f==="[")n.push(s),s=1,r++;else if(f==="(")n.push(s),s=2,o++;else if(!(u===0?B3:F3).test(f))return!1;break;case 1:f==="'"||f==='"'||f==="`"?(n.push(s),s=3,c=f):f==="["?r++:f==="]"&&(--r||(s=n.pop()));break;case 2:if(f==="'"||f==='"'||f==="`")n.push(s),s=3,c=f;else if(f==="(")o++;else if(f===")"){if(u===e.length-1)return!1;--o||(s=n.pop())}break;case 3:f===c&&(s=n.pop(),c=null);break}}return!r&&!o},Ox=j3,V3=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,H3=t=>V3.test(Lx(t)),z3=H3;function Rs(t,e,s=!1){for(let n=0;n<t.props.length;n++){const r=t.props[n];if(r.type===7&&(s||r.exp)&&(Fe(e)?r.name===e:e.test(r.name)))return r}}function wd(t,e,s=!1,n=!1){for(let r=0;r<t.props.length;r++){const o=t.props[r];if(o.type===6){if(s)continue;if(o.name===e&&(o.value||n))return o}else if(o.name==="bind"&&(o.exp||n)&&Ui(o.arg,e))return o}}function Ui(t,e){return!!(t&&gs(t)&&t.content===e)}function W3(t){return t.props.some(e=>e.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function Mu(t){return t.type===5||t.type===2}function K0(t){return t.type===7&&t.name==="pre"}function Z3(t){return t.type===7&&t.name==="slot"}function Ic(t){return t.type===1&&t.tagType===3}function Lc(t){return t.type===1&&t.tagType===2}const q3=new Set([ka,za]);function Nx(t,e=[]){if(t&&!Fe(t)&&t.type===14){const s=t.callee;if(!Fe(s)&&q3.has(s))return Nx(t.arguments[0],e.concat(t))}return[t,e]}function Oc(t,e,s){let n,r=t.type===13?t.props:t.arguments[2],o=[],c;if(r&&!Fe(r)&&r.type===14){const u=Nx(r);r=u[0],o=u[1],c=o[o.length-1]}if(r==null||Fe(r))n=Bs([e]);else if(r.type===14){const u=r.arguments[0];!Fe(u)&&u.type===15?G0(e,u)||u.properties.unshift(e):r.callee===Yh?n=Dt(s.helper(Cc),[Bs([e]),r]):r.arguments.unshift(Bs([e])),!n&&(n=r)}else r.type===15?(G0(e,r)||r.properties.unshift(e),n=r):(n=Dt(s.helper(Cc),[Bs([e]),r]),c&&c.callee===za&&(c=o[o.length-2]));t.type===13?c?c.arguments[0]=n:t.props=n:c?c.arguments[0]=n:t.arguments[2]=n}function G0(t,e){let s=!1;if(t.key.type===4){const n=t.key.content;s=e.properties.some(r=>r.key.type===4&&r.key.content===n)}return s}function Sa(t,e){return`_${e}_${t.replace(/[^\w]/g,(s,n)=>s==="-"?"_":t.charCodeAt(n).toString())}`}function K3(t){return t.type===14&&t.callee===Xh?t.arguments[1].returns:t}const G3=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,$x={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Ur,isPreTag:Ur,isIgnoreNewlineTag:Ur,isCustomElement:Ur,onError:ep,onWarn:Px,comments:!1,prefixIdentifiers:!1};let at=$x,Ca=null,Bn="",Yt=null,Je=null,us="",An=-1,Di=-1,sp=0,oi=!1,Af=null;const pt=[],bt=new M3(pt,{onerr:Cn,ontext(t,e){Dl(Ht(t,e),t,e)},ontextentity(t,e,s){Dl(t,e,s)},oninterpolation(t,e){if(oi)return Dl(Ht(t,e),t,e);let s=t+bt.delimiterOpen.length,n=e-bt.delimiterClose.length;for(;ws(Bn.charCodeAt(s));)s++;for(;ws(Bn.charCodeAt(n-1));)n--;let r=Ht(s,n);r.includes("&")&&(r=at.decodeEntities(r,!1)),Pf({type:5,content:Yl(r,!1,wt(s,n)),loc:wt(t,e)})},onopentagname(t,e){const s=Ht(t,e);Yt={type:1,tag:s,ns:at.getNamespace(s,pt[0],at.ns),tagType:0,props:[],children:[],loc:wt(t-1,e),codegenNode:void 0}},onopentagend(t){J0(t)},onclosetag(t,e){const s=Ht(t,e);if(!at.isVoidTag(s)){let n=!1;for(let r=0;r<pt.length;r++)if(pt[r].tag.toLowerCase()===s.toLowerCase()){n=!0,r>0&&Cn(24,pt[0].loc.start.offset);for(let c=0;c<=r;c++){const u=pt.shift();Gl(u,e,c<r)}break}n||Cn(23,Dx(t,60))}},onselfclosingtag(t){const e=Yt.tag;Yt.isSelfClosing=!0,J0(t),pt[0]&&pt[0].tag===e&&Gl(pt.shift(),t)},onattribname(t,e){Je={type:6,name:Ht(t,e),nameLoc:wt(t,e),value:void 0,loc:wt(t)}},ondirname(t,e){const s=Ht(t,e),n=s==="."||s===":"?"bind":s==="@"?"on":s==="#"?"slot":s.slice(2);if(!oi&&n===""&&Cn(26,t),oi||n==="")Je={type:6,name:s,nameLoc:wt(t,e),value:void 0,loc:wt(t)};else if(Je={type:7,name:n,rawName:s,exp:void 0,arg:void 0,modifiers:s==="."?[ze("prop")]:[],loc:wt(t)},n==="pre"){oi=bt.inVPre=!0,Af=Yt;const r=Yt.props;for(let o=0;o<r.length;o++)r[o].type===7&&(r[o]=oP(r[o]))}},ondirarg(t,e){if(t===e)return;const s=Ht(t,e);if(oi&&!K0(Je))Je.name+=s,ji(Je.nameLoc,e);else{const n=s[0]!=="[";Je.arg=Yl(n?s:s.slice(1,-1),n,wt(t,e),n?3:0)}},ondirmodifier(t,e){const s=Ht(t,e);if(oi&&!K0(Je))Je.name+="."+s,ji(Je.nameLoc,e);else if(Je.name==="slot"){const n=Je.arg;n&&(n.content+="."+s,ji(n.loc,e))}else{const n=ze(s,!0,wt(t,e));Je.modifiers.push(n)}},onattribdata(t,e){us+=Ht(t,e),An<0&&(An=t),Di=e},onattribentity(t,e,s){us+=t,An<0&&(An=e),Di=s},onattribnameend(t){const e=Je.loc.start.offset,s=Ht(e,t);Je.type===7&&(Je.rawName=s),Yt.props.some(n=>(n.type===7?n.rawName:n.name)===s)&&Cn(2,e)},onattribend(t,e){if(Yt&&Je){if(ji(Je.loc,e),t!==0)if(us.includes("&")&&(us=at.decodeEntities(us,!0)),Je.type===6)Je.name==="class"&&(us=Rx(us).trim()),t===1&&!us&&Cn(13,e),Je.value={type:2,content:us,loc:t===1?wt(An,Di):wt(An-1,Di+1)},bt.inSFCRoot&&Yt.tag==="template"&&Je.name==="lang"&&us&&us!=="html"&&bt.enterRCDATA(Pc("</template"),0);else{let s=0;Je.exp=Yl(us,!1,wt(An,Di),0,s),Je.name==="for"&&(Je.forParseResult=J3(Je.exp));let n=-1;Je.name==="bind"&&(n=Je.modifiers.findIndex(r=>r.content==="sync"))>-1&&Ta("COMPILER_V_BIND_SYNC",at,Je.loc,Je.arg.loc.source)&&(Je.name="model",Je.modifiers.splice(n,1))}(Je.type!==7||Je.name!=="pre")&&Yt.props.push(Je)}us="",An=Di=-1},oncomment(t,e){at.comments&&Pf({type:3,content:Ht(t,e),loc:wt(t-4,e+3)})},onend(){const t=Bn.length;for(let e=0;e<pt.length;e++)Gl(pt[e],t-1),Cn(24,pt[e].loc.start.offset)},oncdata(t,e){pt[0].ns!==0?Dl(Ht(t,e),t,e):Cn(1,t-9)},onprocessinginstruction(t){(pt[0]?pt[0].ns:at.ns)===0&&Cn(21,t-1)}}),Y0=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Y3=/^\(|\)$/g;function J3(t){const e=t.loc,s=t.content,n=s.match(G3);if(!n)return;const[,r,o]=n,c=(_,y,S=!1)=>{const T=e.start.offset+y,C=T+_.length;return Yl(_,!1,wt(T,C),0,S?1:0)},u={source:c(o.trim(),s.indexOf(o,r.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let f=r.trim().replace(Y3,"").trim();const p=r.indexOf(f),m=f.match(Y0);if(m){f=f.replace(Y0,"").trim();const _=m[1].trim();let y;if(_&&(y=s.indexOf(_,p+f.length),u.key=c(_,y,!0)),m[2]){const S=m[2].trim();S&&(u.index=c(S,s.indexOf(S,u.key?y+_.length:p+f.length),!0))}}return f&&(u.value=c(f,p,!0)),u}function Ht(t,e){return Bn.slice(t,e)}function J0(t){bt.inSFCRoot&&(Yt.innerLoc=wt(t+1,t+1)),Pf(Yt);const{tag:e,ns:s}=Yt;s===0&&at.isPreTag(e)&&sp++,at.isVoidTag(e)?Gl(Yt,t):(pt.unshift(Yt),(s===1||s===2)&&(bt.inXML=!0)),Yt=null}function Dl(t,e,s){{const o=pt[0]&&pt[0].tag;o!=="script"&&o!=="style"&&t.includes("&")&&(t=at.decodeEntities(t,!1))}const n=pt[0]||Ca,r=n.children[n.children.length-1];r&&r.type===2?(r.content+=t,ji(r.loc,s)):n.children.push({type:2,content:t,loc:wt(e,s)})}function Gl(t,e,s=!1){s?ji(t.loc,Dx(e,60)):ji(t.loc,X3(e,62)+1),bt.inSFCRoot&&(t.children.length?t.innerLoc.end=Qe({},t.children[t.children.length-1].loc.end):t.innerLoc.end=Qe({},t.innerLoc.start),t.innerLoc.source=Ht(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:n,ns:r,children:o}=t;if(oi||(n==="slot"?t.tagType=2:X0(t)?t.tagType=3:eP(t)&&(t.tagType=1)),bt.inRCDATA||(t.children=Mx(o)),r===0&&at.isIgnoreNewlineTag(n)){const c=o[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}r===0&&at.isPreTag(n)&&sp--,Af===t&&(oi=bt.inVPre=!1,Af=null),bt.inXML&&(pt[0]?pt[0].ns:at.ns)===0&&(bt.inXML=!1);{const c=t.props;if(!bt.inSFCRoot&&Gi("COMPILER_NATIVE_TEMPLATE",at)&&t.tag==="template"&&!X0(t)){const f=pt[0]||Ca,p=f.children.indexOf(t);f.children.splice(p,1,...t.children)}const u=c.find(f=>f.type===6&&f.name==="inline-template");u&&Ta("COMPILER_INLINE_TEMPLATE",at,u.loc)&&t.children.length&&(u.value={type:2,content:Ht(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:u.loc})}}function X3(t,e){let s=t;for(;Bn.charCodeAt(s)!==e&&s<Bn.length-1;)s++;return s}function Dx(t,e){let s=t;for(;Bn.charCodeAt(s)!==e&&s>=0;)s--;return s}const Q3=new Set(["if","else","else-if","for","slot"]);function X0({tag:t,props:e}){if(t==="template"){for(let s=0;s<e.length;s++)if(e[s].type===7&&Q3.has(e[s].name))return!0}return!1}function eP({tag:t,props:e}){if(at.isCustomElement(t))return!1;if(t==="component"||tP(t.charCodeAt(0))||Ix(t)||at.isBuiltInComponent&&at.isBuiltInComponent(t)||at.isNativeTag&&!at.isNativeTag(t))return!0;for(let s=0;s<e.length;s++){const n=e[s];if(n.type===6){if(n.name==="is"&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Ta("COMPILER_IS_ON_ELEMENT",at,n.loc))return!0}}else if(n.name==="bind"&&Ui(n.arg,"is")&&Ta("COMPILER_IS_ON_ELEMENT",at,n.loc))return!0}return!1}function tP(t){return t>64&&t<91}const sP=/\r\n/g;function Mx(t){const e=at.whitespace!=="preserve";let s=!1;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===2)if(sp)r.content=r.content.replace(sP,` 32`);else if(nP(r.content)){const o=t[n-1]&&t[n-1].type,c=t[n+1]&&t[n+1].type;!o||!c||e&&(o===3&&(c===3||c===1)||o===1&&(c===3||c===1&&iP(r.content)))?(s=!0,t[n]=null):r.content=" "}else e&&(r.content=Rx(r.content))}return s?t.filter(Boolean):t}function nP(t){for(let e=0;e<t.length;e++)if(!ws(t.charCodeAt(e)))return!1;return!0}function iP(t){for(let e=0;e<t.length;e++){const s=t.charCodeAt(e);if(s===10||s===13)return!0}return!1}function Rx(t){let e="",s=!1;for(let n=0;n<t.length;n++)ws(t.charCodeAt(n))?s||(e+=" ",s=!0):(e+=t[n],s=!1);return e}function Pf(t){(pt[0]||Ca).children.push(t)}function wt(t,e){return{start:bt.getPos(t),end:e==null?e:bt.getPos(e),source:e==null?e:Ht(t,e)}}function rP(t){return wt(t.start.offset,t.end.offset)}function ji(t,e){t.end=bt.getPos(e),t.source=Ht(t.start.offset,e)}function oP(t){const e={type:6,name:t.rawName,nameLoc:wt(t.loc.start.offset,t.loc.start.offset+t.rawName.length),value:void 0,loc:t.loc};if(t.exp){const s=t.exp.loc;s.end.offset<t.loc.end.offset&&(s.start.offset--,s.start.column--,s.end.offset++,s.end.column++),e.value={type:2,content:t.exp.content,loc:s}}return e}function Yl(t,e=!1,s,n=0,r=0){return ze(t,e,s,n)}function Cn(t,e,s){at.onError(mt(t,wt(e,e)))}function aP(){bt.reset(),Yt=null,Je=null,us="",An=-1,Di=-1,pt.length=0}function lP(t,e){if(aP(),Bn=t,at=Qe({},$x),e){let r;for(r in e)e[r]!=null&&(at[r]=e[r])}bt.mode=at.parseMode==="html"?1:at.parseMode==="sfc"?2:0,bt.inXML=at.ns===1||at.ns===2;const s=e&&e.delimiters;s&&(bt.delimiterOpen=Pc(s[0]),bt.delimiterClose=Pc(s[1]));const n=Ca=N3([],t);return bt.parse(Bn),n.loc=wt(0,t.length),n.children=Mx(n.children),Ca=null,n}function cP(t,e){Jl(t,void 0,e,!!Bx(t))}function Bx(t){const e=t.children.filter(s=>s.type!==3);return e.length===1&&e[0].type===1&&!Lc(e[0])?e[0]:null}function Jl(t,e,s,n=!1,r=!1){const{children:o}=t,c=[];for(let m=0;m<o.length;m++){const _=o[m];if(_.type===1&&_.tagType===0){const y=n?0:Es(_,s);if(y>0){if(y>=2){_.codegenNode.patchFlag=-1,c.push(_);continue}}else{const S=_.codegenNode;if(S.type===13){const T=S.patchFlag;if((T===void 0||T===512||T===1)&&Ux(_,s)>=2){const C=jx(_);C&&(S.props=s.hoist(C))}S.dynamicProps&&(S.dynamicProps=s.hoist(S.dynamicProps))}}}else if(_.type===12&&(n?0:Es(_,s))>=2){_.codegenNode.type===14&&_.codegenNode.arguments.length>0&&_.codegenNode.arguments.push("-1"),c.push(_);continue}if(_.type===1){const y=_.tagType===1;y&&s.scopes.vSlot++,Jl(_,t,s,!1,r),y&&s.scopes.vSlot--}else if(_.type===11)Jl(_,t,s,_.children.length===1,!0);else if(_.type===9)for(let y=0;y<_.branches.length;y++)Jl(_.branches[y],t,s,_.branches[y].children.length===1,r)}let u=!1;if(c.length===o.length&&t.type===1){if(t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&be(t.codegenNode.children))t.codegenNode.children=f(Ki(t.codegenNode.children)),u=!0;else if(t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!be(t.codegenNode.children)&&t.codegenNode.children.type===15){const m=p(t.codegenNode,"default");m&&(m.returns=f(Ki(m.returns)),u=!0)}else if(t.tagType===3&&e&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!be(e.codegenNode.children)&&e.codegenNode.children.type===15){const m=Rs(t,"slot",!0),_=m&&m.arg&&p(e.codegenNode,m.arg);_&&(_.returns=f(Ki(_.returns)),u=!0)}}if(!u)for(const m of c)m.codegenNode=s.cache(m.codegenNode);function f(m){const _=s.cache(m);return _.needArraySpread=!0,_}function p(m,_){if(m.children&&!be(m.children)&&m.children.type===15){const y=m.children.properties.find(S=>S.key===_||S.key.content===_);return y&&y.value}}c.length&&s.transformHoist&&s.transformHoist(o,s,t)}function Es(t,e){const{constantCache:s}=e;switch(t.type){case 1:if(t.tagType!==0)return 0;const n=s.get(t);if(n!==void 0)return n;const r=t.codegenNode;if(r.type!==13||r.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject"&&t.tag!=="math")return 0;if(r.patchFlag===void 0){let c=3;const u=Ux(t,e);if(u===0)return s.set(t,0),0;u<c&&(c=u);for(let f=0;f<t.children.length;f++){const p=Es(t.children[f],e);if(p===0)return s.set(t,0),0;p<c&&(c=p)}if(c>1)for(let f=0;f<t.props.length;f++){const p=t.props[f];if(p.type===7&&p.name==="bind"&&p.exp){const m=Es(p.exp,e);if(m===0)return s.set(t,0),0;m<c&&(c=m)}}if(r.isBlock){for(let f=0;f<t.props.length;f++)if(t.props[f].type===7)return s.set(t,0),0;e.removeHelper(rr),e.removeHelper(mo(e.inSSR,r.isComponent)),r.isBlock=!1,e.helper(po(e.inSSR,r.isComponent))}return s.set(t,c),c}else return s.set(t,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Es(t.content,e);case 4:return t.constType;case 8:let o=3;for(let c=0;c<t.children.length;c++){const u=t.children[c];if(Fe(u)||xs(u))continue;const f=Es(u,e);if(f===0)return 0;f<o&&(o=f)}return o;case 20:return 2;default:return 0}}const dP=new Set([Kh,Gh,ka,za]);function Fx(t,e){if(t.type===14&&!Fe(t.callee)&&dP.has(t.callee)){const s=t.arguments[0];if(s.type===4)return Es(s,e);if(s.type===14)return Fx(s,e)}return 0}function Ux(t,e){let s=3;const n=jx(t);if(n&&n.type===15){const{properties:r}=n;for(let o=0;o<r.length;o++){const{key:c,value:u}=r[o],f=Es(c,e);if(f===0)return f;f<s&&(s=f);let p;if(u.type===4?p=Es(u,e):u.type===14?p=Fx(u,e):p=0,p===0)return p;p<s&&(s=p)}}return s}function jx(t){const e=t.codegenNode;if(e.type===13)return e.props}function uP(t,{filename:e="",prefixIdentifiers:s=!1,hoistStatic:n=!1,hmr:r=!1,cacheHandlers:o=!1,nodeTransforms:c=[],directiveTransforms:u={},transformHoist:f=null,isBuiltInComponent:p=qt,isCustomElement:m=qt,expressionPlugins:_=[],scopeId:y=null,slotted:S=!0,ssr:T=!1,inSSR:C=!1,ssrCssVars:M="",bindingMetadata:j=Xe,inline:D=!1,isTS:P=!1,onError:$=ep,onWarn:U=Px,compatConfig:J}){const se=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),W={filename:e,selfName:se&&ur(ht(se[1])),prefixIdentifiers:s,hoistStatic:n,hmr:r,cacheHandlers:o,nodeTransforms:c,directiveTransforms:u,transformHoist:f,isBuiltInComponent:p,isCustomElement:m,expressionPlugins:_,scopeId:y,slotted:S,ssr:T,inSSR:C,ssrCssVars:M,bindingMetadata:j,inline:D,isTS:P,onError:$,onWarn:U,compatConfig:J,root:t,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:t,childIndex:0,inVOnce:!1,helper(F){const z=W.helpers.get(F)||0;return W.helpers.set(F,z+1),F},removeHelper(F){const z=W.helpers.get(F);if(z){const V=z-1;V?W.helpers.set(F,V):W.helpers.delete(F)}},helperString(F){return`_${fo[W.helper(F)]}`},replaceNode(F){W.parent.children[W.childIndex]=W.currentNode=F},removeNode(F){const z=W.parent.children,V=F?z.indexOf(F):W.currentNode?W.childIndex:-1;!F||F===W.currentNode?(W.currentNode=null,W.onNodeRemoved()):W.childIndex>V&&(W.childIndex--,W.onNodeRemoved()),W.parent.children.splice(V,1)},onNodeRemoved:qt,addIdentifiers(F){},removeIdentifiers(F){},hoist(F){Fe(F)&&(F=ze(F)),W.hoists.push(F);const z=ze(`_hoisted_${W.hoists.length}`,!1,F.loc,2);return z.hoisted=F,z},cache(F,z=!1,V=!1){const I=$3(W.cached.length,F,z,V);return W.cached.push(I),I}};return W.filters=new Set,W}function fP(t,e){const s=uP(t,e);kd(t,s),e.hoistStatic&&cP(t,s),e.ssr||hP(t,s),t.helpers=new Set([...s.helpers.keys()]),t.components=[...s.components],t.directives=[...s.directives],t.imports=s.imports,t.hoists=s.hoists,t.temps=s.temps,t.cached=s.cached,t.transformed=!0,t.filters=[...s.filters]}function hP(t,e){const{helper:s}=e,{children:n}=t;if(n.length===1){const r=Bx(t);if(r&&r.codegenNode){const o=r.codegenNode;o.type===13&&Qh(o,e),t.codegenNode=o}else t.codegenNode=n[0]}else if(n.length>1){let r=64;t.codegenNode=Ea(e,s(wa),void 0,t.children,r,void 0,void 0,!0,void 0,!1)}}function pP(t,e){let s=0;const n=()=>{s--};for(;s<t.children.length;s++){const r=t.children[s];Fe(r)||(e.grandParent=e.parent,e.parent=t,e.childIndex=s,e.onNodeRemoved=n,kd(r,e))}}function kd(t,e){e.currentNode=t;const{nodeTransforms:s}=e,n=[];for(let o=0;o<s.length;o++){const c=s[o](t,e);if(c&&(be(c)?n.push(...c):n.push(c)),e.currentNode)t=e.currentNode;else return}switch(t.type){case 3:e.ssr||e.helper(Ha);break;case 5:e.ssr||e.helper(yd);break;case 9:for(let o=0;o<t.branches.length;o++)kd(t.branches[o],e);break;case 10:case 11:case 1:case 0:pP(t,e);break}e.currentNode=t;let r=n.length;for(;r--;)n[r]()}function Vx(t,e){const s=Fe(t)?n=>n===t:n=>t.test(n);return(n,r)=>{if(n.type===1){const{props:o}=n;if(n.tagType===3&&o.some(Z3))return;const c=[];for(let u=0;u<o.length;u++){const f=o[u];if(f.type===7&&s(f.name)){o.splice(u,1),u--;const p=e(n,f,r);p&&c.push(p)}}return c}}}const Ed="/*@__PURE__*/",Hx=t=>`${fo[t]}: _${fo[t]}`;function mP(t,{mode:e="function",prefixIdentifiers:s=e==="module",sourceMap:n=!1,filename:r="template.vue.html",scopeId:o=null,optimizeImports:c=!1,runtimeGlobalName:u="Vue",runtimeModuleName:f="vue",ssrRuntimeModuleName:p="vue/server-renderer",ssr:m=!1,isTS:_=!1,inSSR:y=!1}){const S={mode:e,prefixIdentifiers:s,sourceMap:n,filename:r,scopeId:o,optimizeImports:c,runtimeGlobalName:u,runtimeModuleName:f,ssrRuntimeModuleName:p,ssr:m,isTS:_,inSSR:y,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(C){return`_${fo[C]}`},push(C,M=-2,j){S.code+=C},indent(){T(++S.indentLevel)},deindent(C=!1){C?--S.indentLevel:T(--S.indentLevel)},newline(){T(S.indentLevel)}};function T(C){S.push(` 33`+" ".repeat(C),0)}return S}function _P(t,e={}){const s=mP(t,e);e.onContextCreated&&e.onContextCreated(s);const{mode:n,push:r,prefixIdentifiers:o,indent:c,deindent:u,newline:f,scopeId:p,ssr:m}=s,_=Array.from(t.helpers),y=_.length>0,S=!o&&n!=="module";gP(t,s);const C=m?"ssrRender":"render",j=(m?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(r(`function ${C}(${j}) {`),c(),S&&(r("with (_ctx) {"),c(),y&&(r(`const { ${_.map(Hx).join(", ")} } = _Vue 34`,-1),f())),t.components.length&&(Ru(t.components,"component",s),(t.directives.length||t.temps>0)&&f()),t.directives.length&&(Ru(t.directives,"directive",s),t.temps>0&&f()),t.filters&&t.filters.length&&(f(),Ru(t.filters,"filter",s),f()),t.temps>0){r("let ");for(let D=0;D<t.temps;D++)r(`${D>0?", ":""}_temp${D}`)}return(t.components.length||t.directives.length||t.temps)&&(r(` 35`,0),f()),m||r("return "),t.codegenNode?es(t.codegenNode,s):r("null"),S&&(u(),r("}")),u(),r("}"),{ast:t,code:s.code,preamble:"",map:s.map?s.map.toJSON():void 0}}function gP(t,e){const{ssr:s,prefixIdentifiers:n,push:r,newline:o,runtimeModuleName:c,runtimeGlobalName:u,ssrRuntimeModuleName:f}=e,p=u,m=Array.from(t.helpers);if(m.length>0&&(r(`const _Vue = ${p} 36`,-1),t.hoists.length)){const _=[Fh,Uh,Ha,jh,Tx].filter(y=>m.includes(y)).map(Hx).join(", ");r(`const { ${_} } = _Vue 37`,-1)}vP(t.hoists,e),o(),r("return ")}function Ru(t,e,{helper:s,push:n,newline:r,isTS:o}){const c=s(e==="filter"?Wh:e==="component"?Vh:zh);for(let u=0;u<t.length;u++){let f=t[u];const p=f.endsWith("__self");p&&(f=f.slice(0,-6)),n(`const ${Sa(f,e)} = ${c}(${JSON.stringify(f)}${p?", true":""})${o?"!":""}`),u<t.length-1&&r()}}function vP(t,e){if(!t.length)return;e.pure=!0;const{push:s,newline:n}=e;n();for(let r=0;r<t.length;r++){const o=t[r];o&&(s(`const _hoisted_${r+1} = `),es(o,e),n())}e.pure=!1}function np(t,e){const s=t.length>3||!1;e.push("["),s&&e.indent(),Wa(t,e,s),s&&e.deindent(),e.push("]")}function Wa(t,e,s=!1,n=!0){const{push:r,newline:o}=e;for(let c=0;c<t.length;c++){const u=t[c];Fe(u)?r(u,-3):be(u)?np(u,e):es(u,e),c<t.length-1&&(s?(n&&r(","),o()):n&&r(", "))}}function es(t,e){if(Fe(t)){e.push(t,-3);return}if(xs(t)){e.push(e.helper(t));return}switch(t.type){case 1:case 9:case 11:es(t.codegenNode,e);break;case 2:bP(t,e);break;case 4:zx(t,e);break;case 5:xP(t,e);break;case 12:es(t.codegenNode,e);break;case 8:Wx(t,e);break;case 3:wP(t,e);break;case 13:kP(t,e);break;case 14:TP(t,e);break;case 15:SP(t,e);break;case 17:CP(t,e);break;case 18:AP(t,e);break;case 19:PP(t,e);break;case 20:IP(t,e);break;case 21:Wa(t.body,e,!0,!1);break}}function bP(t,e){e.push(JSON.stringify(t.content),-3,t)}function zx(t,e){const{content:s,isStatic:n}=t;e.push(n?JSON.stringify(s):s,-3,t)}function xP(t,e){const{push:s,helper:n,pure:r}=e;r&&s(Ed),s(`${n(yd)}(`),es(t.content,e),s(")")}function Wx(t,e){for(let s=0;s<t.children.length;s++){const n=t.children[s];Fe(n)?e.push(n,-3):es(n,e)}}function yP(t,e){const{push:s}=e;if(t.type===8)s("["),Wx(t,e),s("]");else if(t.isStatic){const n=tp(t.content)?t.content:JSON.stringify(t.content);s(n,-2,t)}else s(`[${t.content}]`,-3,t)}function wP(t,e){const{push:s,helper:n,pure:r}=e;r&&s(Ed),s(`${n(Ha)}(${JSON.stringify(t.content)})`,-3,t)}function kP(t,e){const{push:s,helper:n,pure:r}=e,{tag:o,props:c,children:u,patchFlag:f,dynamicProps:p,directives:m,isBlock:_,disableTracking:y,isComponent:S}=t;let T;f&&(T=String(f)),m&&s(n(Zh)+"("),_&&s(`(${n(rr)}(${y?"true":""}), `),r&&s(Ed);const C=_?mo(e.inSSR,S):po(e.inSSR,S);s(n(C)+"(",-2,t),Wa(EP([o,c,u,T,p]),e),s(")"),_&&s(")"),m&&(s(", "),es(m,e),s(")"))}function EP(t){let e=t.length;for(;e--&&t[e]==null;);return t.slice(0,e+1).map(s=>s||"null")}function TP(t,e){const{push:s,helper:n,pure:r}=e,o=Fe(t.callee)?t.callee:n(t.callee);r&&s(Ed),s(o+"(",-2,t),Wa(t.arguments,e),s(")")}function SP(t,e){const{push:s,indent:n,deindent:r,newline:o}=e,{properties:c}=t;if(!c.length){s("{}",-2,t);return}const u=c.length>1||!1;s(u?"{":"{ "),u&&n();for(let f=0;f<c.length;f++){const{key:p,value:m}=c[f];yP(p,e),s(": "),es(m,e),f<c.length-1&&(s(","),o())}u&&r(),s(u?"}":" }")}function CP(t,e){np(t.elements,e)}function AP(t,e){const{push:s,indent:n,deindent:r}=e,{params:o,returns:c,body:u,newline:f,isSlot:p}=t;p&&s(`_${fo[Jh]}(`),s("(",-2,t),be(o)?Wa(o,e):o&&es(o,e),s(") => "),(f||u)&&(s("{"),n()),c?(f&&s("return "),be(c)?np(c,e):es(c,e)):u&&es(u,e),(f||u)&&(r(),s("}")),p&&(t.isNonScopedSlot&&s(", undefined, true"),s(")"))}function PP(t,e){const{test:s,consequent:n,alternate:r,newline:o}=t,{push:c,indent:u,deindent:f,newline:p}=e;if(s.type===4){const _=!tp(s.content);_&&c("("),zx(s,e),_&&c(")")}else c("("),es(s,e),c(")");o&&u(),e.indentLevel++,o||c(" "),c("? "),es(n,e),e.indentLevel--,o&&p(),o||c(" "),c(": ");const m=r.type===19;m||e.indentLevel++,es(r,e),m||e.indentLevel--,o&&f(!0)}function IP(t,e){const{push:s,helper:n,indent:r,deindent:o,newline:c}=e,{needPauseTracking:u,needArraySpread:f}=t;f&&s("[...("),s(`_cache[${t.index}] || (`),u&&(r(),s(`${n(Ac)}(-1`),t.inVOnce&&s(", true"),s("),"),c(),s("(")),s(`_cache[${t.index}] = `),es(t.value,e),u&&(s(`).cacheIndex = ${t.index},`),c(),s(`${n(Ac)}(1),`),c(),s(`_cache[${t.index}]`),o()),s(")"),f&&s(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const LP=Vx(/^(?:if|else|else-if)$/,(t,e,s)=>OP(t,e,s,(n,r,o)=>{const c=s.parent.children;let u=c.indexOf(n),f=0;for(;u-->=0;){const p=c[u];p&&p.type===9&&(f+=p.branches.length)}return()=>{if(o)n.codegenNode=e_(r,f,s);else{const p=NP(n.codegenNode);p.alternate=e_(r,f+n.branches.length-1,s)}}}));function OP(t,e,s,n){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const r=e.exp?e.exp.loc:t.loc;s.onError(mt(28,e.loc)),e.exp=ze("true",!1,r)}if(e.name==="if"){const r=Q0(t,e),o={type:9,loc:rP(t.loc),branches:[r]};if(s.replaceNode(o),n)return n(o,r,!0)}else{const r=s.parent.children;let o=r.indexOf(t);for(;o-->=-1;){const c=r[o];if(c&&c.type===3){s.removeNode(c);continue}if(c&&c.type===2&&!c.content.trim().length){s.removeNode(c);continue}if(c&&c.type===9){(e.name==="else-if"||e.name==="else")&&c.branches[c.branches.length-1].condition===void 0&&s.onError(mt(30,t.loc)),s.removeNode();const u=Q0(t,e);c.branches.push(u);const f=n&&n(c,u,!1);kd(u,s),f&&f(),s.currentNode=null}else s.onError(mt(30,t.loc));break}}}function Q0(t,e){const s=t.tagType===3;return{type:10,loc:t.loc,condition:e.name==="else"?void 0:e.exp,children:s&&!Rs(t,"for")?t.children:[t],userKey:wd(t,"key"),isTemplateIf:s}}function e_(t,e,s){return t.condition?Cf(t.condition,t_(t,e,s),Dt(s.helper(Ha),['""',"true"])):t_(t,e,s)}function t_(t,e,s){const{helper:n}=s,r=Et("key",ze(`${e}`,!1,Ls,2)),{children:o}=t,c=o[0];if(o.length!==1||c.type!==1)if(o.length===1&&c.type===11){const f=c.codegenNode;return Oc(f,r,s),f}else return Ea(s,n(wa),Bs([r]),o,64,void 0,void 0,!0,!1,!1,t.loc);else{const f=c.codegenNode,p=K3(f);return p.type===13&&Qh(p,s),Oc(p,r,s),f}}function NP(t){for(;;)if(t.type===19)if(t.alternate.type===19)t=t.alternate;else return t;else t.type===20&&(t=t.value)}const $P=(t,e,s)=>{const{modifiers:n,loc:r}=t,o=t.arg;let{exp:c}=t;if(c&&c.type===4&&!c.content.trim()&&(c=void 0),!c){if(o.type!==4||!o.isStatic)return s.onError(mt(52,o.loc)),{props:[Et(o,ze("",!0,r))]};Zx(t),c=t.exp}return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),n.some(u=>u.content==="camel")&&(o.type===4?o.isStatic?o.content=ht(o.content):o.content=`${s.helperString(Tf)}(${o.content})`:(o.children.unshift(`${s.helperString(Tf)}(`),o.children.push(")"))),s.inSSR||(n.some(u=>u.content==="prop")&&s_(o,"."),n.some(u=>u.content==="attr")&&s_(o,"^")),{props:[Et(o,c)]}},Zx=(t,e)=>{const s=t.arg,n=ht(s.content);t.exp=ze(n,!1,s.loc)},s_=(t,e)=>{t.type===4?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},DP=Vx("for",(t,e,s)=>{const{helper:n,removeHelper:r}=s;return MP(t,e,s,o=>{const c=Dt(n(qh),[o.source]),u=Ic(t),f=Rs(t,"memo"),p=wd(t,"key",!1,!0);p&&p.type===7&&!p.exp&&Zx(p);let _=p&&(p.type===6?p.value?ze(p.value.content,!0):void 0:p.exp);const y=p&&_?Et("key",_):null,S=o.source.type===4&&o.source.constType>0,T=S?64:p?128:256;return o.codegenNode=Ea(s,n(wa),void 0,c,T,void 0,void 0,!0,!S,!1,t.loc),()=>{let C;const{children:M}=o,j=M.length!==1||M[0].type!==1,D=Lc(t)?t:u&&t.children.length===1&&Lc(t.children[0])?t.children[0]:null;if(D?(C=D.codegenNode,u&&y&&Oc(C,y,s)):j?C=Ea(s,n(wa),y?Bs([y]):void 0,t.children,64,void 0,void 0,!0,void 0,!1):(C=M[0].codegenNode,u&&y&&Oc(C,y,s),C.isBlock!==!S&&(C.isBlock?(r(rr),r(mo(s.inSSR,C.isComponent))):r(po(s.inSSR,C.isComponent))),C.isBlock=!S,C.isBlock?(n(rr),n(mo(s.inSSR,C.isComponent))):n(po(s.inSSR,C.isComponent))),f){const P=ho(If(o.parseResult,[ze("_cached")]));P.body=D3([Qs(["const _memo = (",f.exp,")"]),Qs(["if (_cached",..._?[" && _cached.key === ",_]:[],` && ${s.helperString(Ax)}(_cached, _memo)) return _cached`]),Qs(["const _item = ",C]),ze("_item.memo = _memo"),ze("return _item")]),c.arguments.push(P,ze("_cache"),ze(String(s.cached.length))),s.cached.push(null)}else c.arguments.push(ho(If(o.parseResult),C,!0))}})});function MP(t,e,s,n){if(!e.exp){s.onError(mt(31,e.loc));return}const r=e.forParseResult;if(!r){s.onError(mt(32,e.loc));return}qx(r);const{addIdentifiers:o,removeIdentifiers:c,scopes:u}=s,{source:f,value:p,key:m,index:_}=r,y={type:11,loc:e.loc,source:f,valueAlias:p,keyAlias:m,objectIndexAlias:_,parseResult:r,children:Ic(t)?t.children:[t]};s.replaceNode(y),u.vFor++;const S=n&&n(y);return()=>{u.vFor--,S&&S()}}function qx(t,e){t.finalized||(t.finalized=!0)}function If({value:t,key:e,index:s},n=[]){return RP([t,e,s,...n])}function RP(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((s,n)=>s||ze("_".repeat(n+1),!1))}const n_=ze("undefined",!1),BP=(t,e)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const s=Rs(t,"slot");if(s)return s.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},FP=(t,e,s,n)=>ho(t,s,!1,!0,s.length?s[0].loc:n);function UP(t,e,s=FP){e.helper(Jh);const{children:n,loc:r}=t,o=[],c=[];let u=e.scopes.vSlot>0||e.scopes.vFor>0;const f=Rs(t,"slot",!0);if(f){const{arg:M,exp:j}=f;M&&!gs(M)&&(u=!0),o.push(Et(M||ze("default",!0),s(j,void 0,n,r)))}let p=!1,m=!1;const _=[],y=new Set;let S=0;for(let M=0;M<n.length;M++){const j=n[M];let D;if(!Ic(j)||!(D=Rs(j,"slot",!0))){j.type!==3&&_.push(j);continue}if(f){e.onError(mt(37,D.loc));break}p=!0;const{children:P,loc:$}=j,{arg:U=ze("default",!0),exp:J,loc:se}=D;let W;gs(U)?W=U?U.content:"default":u=!0;const F=Rs(j,"for"),z=s(J,F,P,$);let V,I;if(V=Rs(j,"if"))u=!0,c.push(Cf(V.exp,Ml(U,z,S++),n_));else if(I=Rs(j,/^else(?:-if)?$/,!0)){let Z=M,ee;for(;Z--&&(ee=n[Z],!(ee.type!==3&&Lf(ee))););if(ee&&Ic(ee)&&Rs(ee,/^(?:else-)?if$/)){let me=c[c.length-1];for(;me.alternate.type===19;)me=me.alternate;me.alternate=I.exp?Cf(I.exp,Ml(U,z,S++),n_):Ml(U,z,S++)}else e.onError(mt(30,I.loc))}else if(F){u=!0;const Z=F.forParseResult;Z?(qx(Z),c.push(Dt(e.helper(qh),[Z.source,ho(If(Z),Ml(U,z),!0)]))):e.onError(mt(32,F.loc))}else{if(W){if(y.has(W)){e.onError(mt(38,se));continue}y.add(W),W==="default"&&(m=!0)}o.push(Et(U,z))}}if(!f){const M=(j,D)=>{const P=s(j,void 0,D,r);return e.compatConfig&&(P.isNonScopedSlot=!0),Et("default",P)};p?_.length&&_.some(j=>Lf(j))&&(m?e.onError(mt(39,_[0].loc)):o.push(M(void 0,_))):o.push(M(void 0,n))}const T=u?2:Xl(t.children)?3:1;let C=Bs(o.concat(Et("_",ze(T+"",!1))),r);return c.length&&(C=Dt(e.helper(Cx),[C,Ki(c)])),{slots:C,hasDynamicSlots:u}}function Ml(t,e,s){const n=[Et("name",t),Et("fn",e)];return s!=null&&n.push(Et("key",ze(String(s),!0))),Bs(n)}function Xl(t){for(let e=0;e<t.length;e++){const s=t[e];switch(s.type){case 1:if(s.tagType===2||Xl(s.children))return!0;break;case 9:if(Xl(s.branches))return!0;break;case 10:case 11:if(Xl(s.children))return!0;break}}return!1}function Lf(t){return t.type!==2&&t.type!==12?!0:t.type===2?!!t.content.trim():Lf(t.content)}const Kx=new WeakMap,jP=(t,e)=>function(){if(t=e.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:n,props:r}=t,o=t.tagType===1;let c=o?VP(t,e):`"${n}"`;const u=ct(c)&&c.callee===Hh;let f,p,m=0,_,y,S,T=u||c===oa||c===Bh||!o&&(n==="svg"||n==="foreignObject"||n==="math");if(r.length>0){const C=Gx(t,e,void 0,o,u);f=C.props,m=C.patchFlag,y=C.dynamicPropNames;const M=C.directives;S=M&&M.length?Ki(M.map(j=>zP(j,e))):void 0,C.shouldUseBlock&&(T=!0)}if(t.children.length>0)if(c===Sc&&(T=!0,m|=1024),o&&c!==oa&&c!==Sc){const{slots:M,hasDynamicSlots:j}=UP(t,e);p=M,j&&(m|=1024)}else if(t.children.length===1&&c!==oa){const M=t.children[0],j=M.type,D=j===5||j===8;D&&Es(M,e)===0&&(m|=1),D||j===2?p=M:p=t.children}else p=t.children;y&&y.length&&(_=WP(y)),t.codegenNode=Ea(e,c,f,p,m===0?void 0:m,_,S,!!T,!1,o,t.loc)};function VP(t,e,s=!1){let{tag:n}=t;const r=Of(n),o=wd(t,"is",!1,!0);if(o)if(r||Gi("COMPILER_IS_ON_ELEMENT",e)){let u;if(o.type===6?u=o.value&&ze(o.value.content,!0):(u=o.exp,u||(u=ze("is",!1,o.arg.loc))),u)return Dt(e.helper(Hh),[u])}else o.type===6&&o.value.content.startsWith("vue:")&&(n=o.value.content.slice(4));const c=Ix(n)||e.isBuiltInComponent(n);return c?(s||e.helper(c),c):(e.helper(Vh),e.components.add(n),Sa(n,"component"))}function Gx(t,e,s=t.props,n,r,o=!1){const{tag:c,loc:u,children:f}=t;let p=[];const m=[],_=[],y=f.length>0;let S=!1,T=0,C=!1,M=!1,j=!1,D=!1,P=!1,$=!1;const U=[],J=z=>{p.length&&(m.push(Bs(i_(p),u)),p=[]),z&&m.push(z)},se=()=>{e.scopes.vFor>0&&p.push(Et(ze("ref_for",!0),ze("true")))},W=({key:z,value:V})=>{if(gs(z)){const I=z.content,Z=cr(I);if(Z&&(!n||r)&&I.toLowerCase()!=="onclick"&&I!=="onUpdate:modelValue"&&!di(I)&&(D=!0),Z&&di(I)&&($=!0),Z&&V.type===14&&(V=V.arguments[0]),V.type===20||(V.type===4||V.type===8)&&Es(V,e)>0)return;I==="ref"?C=!0:I==="class"?M=!0:I==="style"?j=!0:I!=="key"&&!U.includes(I)&&U.push(I),n&&(I==="class"||I==="style")&&!U.includes(I)&&U.push(I)}else P=!0};for(let z=0;z<s.length;z++){const V=s[z];if(V.type===6){const{loc:I,name:Z,nameLoc:ee,value:me}=V;let ne=!0;if(Z==="ref"&&(C=!0,se()),Z==="is"&&(Of(c)||me&&me.content.startsWith("vue:")||Gi("COMPILER_IS_ON_ELEMENT",e)))continue;p.push(Et(ze(Z,!0,ee),ze(me?me.content:"",ne,me?me.loc:I)))}else{const{name:I,arg:Z,exp:ee,loc:me,modifiers:ne}=V,fe=I==="bind",G=I==="on";if(I==="slot"){n||e.onError(mt(40,me));continue}if(I==="once"||I==="memo"||I==="is"||fe&&Ui(Z,"is")&&(Of(c)||Gi("COMPILER_IS_ON_ELEMENT",e))||G&&o)continue;if((fe&&Ui(Z,"key")||G&&y&&Ui(Z,"vue:before-update"))&&(S=!0),fe&&Ui(Z,"ref")&&se(),!Z&&(fe||G)){if(P=!0,ee)if(fe){if(J(),Gi("COMPILER_V_BIND_OBJECT_ORDER",e)){m.unshift(ee);continue}se(),J(),m.push(ee)}else J({type:14,loc:me,callee:e.helper(Yh),arguments:n?[ee]:[ee,"true"]});else e.onError(mt(fe?34:35,me));continue}fe&&ne.some(ve=>ve.content==="prop")&&(T|=32);const _e=e.directiveTransforms[I];if(_e){const{props:ve,needRuntime:$e}=_e(V,t,e);!o&&ve.forEach(W),G&&Z&&!gs(Z)?J(Bs(ve,u)):p.push(...ve),$e&&(_.push(V),xs($e)&&Kx.set(V,$e))}else H4(I)||(_.push(V),y&&(S=!0))}}let F;if(m.length?(J(),m.length>1?F=Dt(e.helper(Cc),m,u):F=m[0]):p.length&&(F=Bs(i_(p),u)),P?T|=16:(M&&!n&&(T|=2),j&&!n&&(T|=4),U.length&&(T|=8),D&&(T|=32)),!S&&(T===0||T===32)&&(C||$||_.length>0)&&(T|=512),!e.inSSR&&F)switch(F.type){case 15:let z=-1,V=-1,I=!1;for(let me=0;me<F.properties.length;me++){const ne=F.properties[me].key;gs(ne)?ne.content==="class"?z=me:ne.content==="style"&&(V=me):ne.isHandlerKey||(I=!0)}const Z=F.properties[z],ee=F.properties[V];I?F=Dt(e.helper(ka),[F]):(Z&&!gs(Z.value)&&(Z.value=Dt(e.helper(Kh),[Z.value])),ee&&(j||ee.value.type===4&&ee.value.content.trim()[0]==="["||ee.value.type===17)&&(ee.value=Dt(e.helper(Gh),[ee.value])));break;case 14:break;default:F=Dt(e.helper(ka),[Dt(e.helper(za),[F])]);break}return{props:F,directives:_,patchFlag:T,dynamicPropNames:U,shouldUseBlock:S}}function i_(t){const e=new Map,s=[];for(let n=0;n<t.length;n++){const r=t[n];if(r.key.type===8||!r.key.isStatic){s.push(r);continue}const o=r.key.content,c=e.get(o);c?(o==="style"||o==="class"||cr(o))&&HP(c,r):(e.set(o,r),s.push(r))}return s}function HP(t,e){t.value.type===17?t.value.elements.push(e.value):t.value=Ki([t.value,e.value],t.loc)}function zP(t,e){const s=[],n=Kx.get(t);n?s.push(e.helperString(n)):(e.helper(zh),e.directives.add(t.name),s.push(Sa(t.name,"directive")));const{loc:r}=t;if(t.exp&&s.push(t.exp),t.arg&&(t.exp||s.push("void 0"),s.push(t.arg)),Object.keys(t.modifiers).length){t.arg||(t.exp||s.push("void 0"),s.push("void 0"));const o=ze("true",!1,r);s.push(Bs(t.modifiers.map(c=>Et(c,o)),r))}return Ki(s,t.loc)}function WP(t){let e="[";for(let s=0,n=t.length;s<n;s++)e+=JSON.stringify(t[s]),s<n-1&&(e+=", ");return e+"]"}function Of(t){return t==="component"||t==="Component"}const ZP=(t,e)=>{if(Lc(t)){const{children:s,loc:n}=t,{slotName:r,slotProps:o}=qP(t,e),c=[e.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let u=2;o&&(c[2]=o,u=3),s.length&&(c[3]=ho([],s,!1,!1,n),u=4),e.scopeId&&!e.slotted&&(u=5),c.splice(u),t.codegenNode=Dt(e.helper(Sx),c,n)}};function qP(t,e){let s='"default"',n;const r=[];for(let o=0;o<t.props.length;o++){const c=t.props[o];if(c.type===6)c.value&&(c.name==="name"?s=JSON.stringify(c.value.content):(c.name=ht(c.name),r.push(c)));else if(c.name==="bind"&&Ui(c.arg,"name")){if(c.exp)s=c.exp;else if(c.arg&&c.arg.type===4){const u=ht(c.arg.content);s=c.exp=ze(u,!1,c.arg.loc)}}else c.name==="bind"&&c.arg&&gs(c.arg)&&(c.arg.content=ht(c.arg.content)),r.push(c)}if(r.length>0){const{props:o,directives:c}=Gx(t,e,r,!1,!1);n=o,c.length&&e.onError(mt(36,c[0].loc))}return{slotName:s,slotProps:n}}const Yx=(t,e,s,n)=>{const{loc:r,modifiers:o,arg:c}=t;!t.exp&&!o.length&&s.onError(mt(35,r));let u;if(c.type===4)if(c.isStatic){let _=c.content;_.startsWith("vue:")&&(_=`vnode-${_.slice(4)}`);const y=e.tagType!==0||_.startsWith("vnode")||!/[A-Z]/.test(_)?zr(ht(_)):`on:${_}`;u=ze(y,!0,c.loc)}else u=Qs([`${s.helperString(Sf)}(`,c,")"]);else u=c,u.children.unshift(`${s.helperString(Sf)}(`),u.children.push(")");let f=t.exp;f&&!f.content.trim()&&(f=void 0);let p=s.cacheHandlers&&!f&&!s.inVOnce;if(f){const _=Ox(f),y=!(_||z3(f)),S=f.content.includes(";");(y||p&&_)&&(f=Qs([`${y?"$event":"(...args)"} => ${S?"{":"("}`,f,S?"}":")"]))}let m={props:[Et(u,f||ze("() => {}",!1,r))]};return n&&(m=n(m)),p&&(m.props[0].value=s.cache(m.props[0].value)),m.props.forEach(_=>_.key.isHandlerKey=!0),m},KP=(t,e)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const s=t.children;let n,r=!1;for(let o=0;o<s.length;o++){const c=s[o];if(Mu(c)){r=!0;for(let u=o+1;u<s.length;u++){const f=s[u];if(Mu(f))n||(n=s[o]=Qs([c],c.loc)),n.children.push(" + ",f),s.splice(u,1),u--;else{n=void 0;break}}}}if(!(!r||s.length===1&&(t.type===0||t.type===1&&t.tagType===0&&!t.props.find(o=>o.type===7&&!e.directiveTransforms[o.name])&&t.tag!=="template")))for(let o=0;o<s.length;o++){const c=s[o];if(Mu(c)||c.type===8){const u=[];(c.type!==2||c.content!==" ")&&u.push(c),!e.ssr&&Es(c,e)===0&&u.push("1"),s[o]={type:12,content:c,loc:c.loc,codegenNode:Dt(e.helper(jh),u)}}}}},r_=new WeakSet,GP=(t,e)=>{if(t.type===1&&Rs(t,"once",!0))return r_.has(t)||e.inVOnce||e.inSSR?void 0:(r_.add(t),e.inVOnce=!0,e.helper(Ac),()=>{e.inVOnce=!1;const s=e.currentNode;s.codegenNode&&(s.codegenNode=e.cache(s.codegenNode,!0,!0))})},Jx=(t,e,s)=>{const{exp:n,arg:r}=t;if(!n)return s.onError(mt(41,t.loc)),Rl();const o=n.loc.source.trim(),c=n.type===4?n.content:o,u=s.bindingMetadata[o];if(u==="props"||u==="props-aliased")return s.onError(mt(44,n.loc)),Rl();if(!c.trim()||!Ox(n))return s.onError(mt(42,n.loc)),Rl();const f=r||ze("modelValue",!0),p=r?gs(r)?`onUpdate:${ht(r.content)}`:Qs(['"onUpdate:" + ',r]):"onUpdate:modelValue";let m;const _=s.isTS?"($event: any)":"$event";m=Qs([`${_} => ((`,n,") = $event)"]);const y=[Et(f,t.exp),Et(p,m)];if(t.modifiers.length&&e.tagType===1){const S=t.modifiers.map(C=>C.content).map(C=>(tp(C)?C:JSON.stringify(C))+": true").join(", "),T=r?gs(r)?`${r.content}Modifiers`:Qs([r,' + "Modifiers"']):"modelModifiers";y.push(Et(T,ze(`{ ${S} }`,!1,t.loc,2)))}return Rl(y)};function Rl(t=[]){return{props:t}}const YP=/[\w).+\-_$\]]/,JP=(t,e)=>{Gi("COMPILER_FILTERS",e)&&(t.type===5?Nc(t.content,e):t.type===1&&t.props.forEach(s=>{s.type===7&&s.name!=="for"&&s.exp&&Nc(s.exp,e)}))};function Nc(t,e){if(t.type===4)o_(t,e);else for(let s=0;s<t.children.length;s++){const n=t.children[s];typeof n=="object"&&(n.type===4?o_(n,e):n.type===8?Nc(t,e):n.type===5&&Nc(n.content,e))}}function o_(t,e){const s=t.content;let n=!1,r=!1,o=!1,c=!1,u=0,f=0,p=0,m=0,_,y,S,T,C=[];for(S=0;S<s.length;S++)if(y=_,_=s.charCodeAt(S),n)_===39&&y!==92&&(n=!1);else if(r)_===34&&y!==92&&(r=!1);else if(o)_===96&&y!==92&&(o=!1);else if(c)_===47&&y!==92&&(c=!1);else if(_===124&&s.charCodeAt(S+1)!==124&&s.charCodeAt(S-1)!==124&&!u&&!f&&!p)T===void 0?(m=S+1,T=s.slice(0,S).trim()):M();else{switch(_){case 34:r=!0;break;case 39:n=!0;break;case 96:o=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--;break}if(_===47){let j=S-1,D;for(;j>=0&&(D=s.charAt(j),D===" ");j--);(!D||!YP.test(D))&&(c=!0)}}T===void 0?T=s.slice(0,S).trim():m!==0&&M();function M(){C.push(s.slice(m,S).trim()),m=S+1}if(C.length){for(S=0;S<C.length;S++)T=XP(T,C[S],e);t.content=T,t.ast=void 0}}function XP(t,e,s){s.helper(Wh);const n=e.indexOf("(");if(n<0)return s.filters.add(e),`${Sa(e,"filter")}(${t})`;{const r=e.slice(0,n),o=e.slice(n+1);return s.filters.add(r),`${Sa(r,"filter")}(${t}${o!==")"?","+o:o}`}}const a_=new WeakSet,QP=(t,e)=>{if(t.type===1){const s=Rs(t,"memo");return!s||a_.has(t)||e.inSSR?void 0:(a_.add(t),()=>{const n=t.codegenNode||e.currentNode.codegenNode;n&&n.type===13&&(t.tagType!==1&&Qh(n,e),t.codegenNode=Dt(e.helper(Xh),[s.exp,ho(void 0,n),"_cache",String(e.cached.length)]),e.cached.push(null))})}};function eI(t){return[[GP,LP,QP,DP,JP,ZP,jP,BP,KP],{on:Yx,bind:$P,model:Jx}]}function tI(t,e={}){const s=e.onError||ep,n=e.mode==="module";e.prefixIdentifiers===!0?s(mt(47)):n&&s(mt(48));const r=!1;e.cacheHandlers&&s(mt(49)),e.scopeId&&!n&&s(mt(50));const o=Qe({},e,{prefixIdentifiers:r}),c=Fe(t)?lP(t,o):t,[u,f]=eI();return fP(c,Qe({}
37,o,{nodeTransforms:[...u,...e.nodeTransforms||[]],directiveTransforms:Qe({},f,e.directiveTransforms||{})})),_P(c,o)}const sI=()=>({props:[]});/** 38* @vue/compiler-dom v3.5.21 39* (c) 2018-present Yuxi (Evan) You and Vue contributors 40* @license MIT 41**/const Xx=Symbol(""),Qx=Symbol(""),e1=Symbol(""),t1=Symbol(""),Nf=Symbol(""),s1=Symbol(""),n1=Symbol(""),i1=Symbol(""),r1=Symbol(""),o1=Symbol("");O3({[Xx]:"vModelRadio",[Qx]:"vModelCheckbox",[e1]:"vModelText",[t1]:"vModelSelect",[Nf]:"vModelDynamic",[s1]:"withModifiers",[n1]:"withKeys",[i1]:"vShow",[r1]:"Transition",[o1]:"TransitionGroup"});let Lr;function nI(t,e=!1){return Lr||(Lr=document.createElement("div")),e?(Lr.innerHTML=`<div foo="${t.replace(/"/g,""")}">`,Lr.children[0].getAttribute("foo")):(Lr.innerHTML=t,Lr.textContent)}const iI={parseMode:"html",isVoidTag:oC,isNativeTag:t=>nC(t)||iC(t)||rC(t),isPreTag:t=>t==="pre",isIgnoreNewlineTag:t=>t==="pre"||t==="textarea",decodeEntities:nI,isBuiltInComponent:t=>{if(t==="Transition"||t==="transition")return r1;if(t==="TransitionGroup"||t==="transition-group")return o1},getNamespace(t,e,s){let n=e?e.ns:s;if(e&&n===2)if(e.tag==="annotation-xml"){if(t==="svg")return 1;e.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&t!=="mglyph"&&t!=="malignmark"&&(n=0);else e&&n===1&&(e.tag==="foreignObject"||e.tag==="desc"||e.tag==="title")&&(n=0);if(n===0){if(t==="svg")return 1;if(t==="math")return 2}return n}},rI=t=>{t.type===1&&t.props.forEach((e,s)=>{e.type===6&&e.name==="style"&&e.value&&(t.props[s]={type:7,name:"bind",arg:ze("style",!0,e.loc),exp:oI(e.value.content,e.loc),modifiers:[],loc:e.loc})})},oI=(t,e)=>{const s=vv(t);return ze(JSON.stringify(s),!1,e,3)};function hi(t,e){return mt(t,e)}const aI=(t,e,s)=>{const{exp:n,loc:r}=t;return n||s.onError(hi(53,r)),e.children.length&&(s.onError(hi(54,r)),e.children.length=0),{props:[Et(ze("innerHTML",!0,r),n||ze("",!0))]}},lI=(t,e,s)=>{const{exp:n,loc:r}=t;return n||s.onError(hi(55,r)),e.children.length&&(s.onError(hi(56,r)),e.children.length=0),{props:[Et(ze("textContent",!0),n?Es(n,s)>0?n:Dt(s.helperString(yd),[n],r):ze("",!0))]}},cI=(t,e,s)=>{const n=Jx(t,e,s);if(!n.props.length||e.tagType===1)return n;t.arg&&s.onError(hi(58,t.arg.loc));const{tag:r}=e,o=s.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||o){let c=e1,u=!1;if(r==="input"||o){const f=wd(e,"type");if(f){if(f.type===7)c=Nf;else if(f.value)switch(f.value.content){case"radio":c=Xx;break;case"checkbox":c=Qx;break;case"file":u=!0,s.onError(hi(59,t.loc));break}}else W3(e)&&(c=Nf)}else r==="select"&&(c=t1);u||(n.needRuntime=s.helper(c))}else s.onError(hi(57,t.loc));return n.props=n.props.filter(c=>!(c.key.type===4&&c.key.content==="modelValue")),n},dI=Is("passive,once,capture"),uI=Is("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),fI=Is("left,right"),a1=Is("onkeyup,onkeydown,onkeypress"),hI=(t,e,s,n)=>{const r=[],o=[],c=[];for(let u=0;u<e.length;u++){const f=e[u].content;f==="native"&&Ta("COMPILER_V_ON_NATIVE",s)||dI(f)?c.push(f):fI(f)?gs(t)?a1(t.content.toLowerCase())?r.push(f):o.push(f):(r.push(f),o.push(f)):uI(f)?o.push(f):r.push(f)}return{keyModifiers:r,nonKeyModifiers:o,eventOptionModifiers:c}},l_=(t,e)=>gs(t)&&t.content.toLowerCase()==="onclick"?ze(e,!0):t.type!==4?Qs(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,pI=(t,e,s)=>Yx(t,e,s,n=>{const{modifiers:r}=t;if(!r.length)return n;let{key:o,value:c}=n.props[0];const{keyModifiers:u,nonKeyModifiers:f,eventOptionModifiers:p}=hI(o,r,s,t.loc);if(f.includes("right")&&(o=l_(o,"onContextmenu")),f.includes("middle")&&(o=l_(o,"onMouseup")),f.length&&(c=Dt(s.helper(s1),[c,JSON.stringify(f)])),u.length&&(!gs(o)||a1(o.content.toLowerCase()))&&(c=Dt(s.helper(n1),[c,JSON.stringify(u)])),p.length){const m=p.map(ur).join("");o=gs(o)?ze(`${o.content}${m}`,!0):Qs(["(",o,`) + "${m}"`])}return{props:[Et(o,c)]}}),mI=(t,e,s)=>{const{exp:n,loc:r}=t;return n||s.onError(hi(61,r)),{props:[],needRuntime:s.helper(i1)}},_I=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&e.removeNode()},gI=[rI],vI={cloak:sI,html:aI,text:lI,model:cI,on:pI,show:mI};function bI(t,e={}){return tI(t,Qe({},iI,e,{nodeTransforms:[_I,...gI,...e.nodeTransforms||[]],directiveTransforms:Qe({},vI,e.directiveTransforms||{}),transformHoist:null}))}/** 42* vue v3.5.21 43* (c) 2018-present Yuxi (Evan) You and Vue contributors 44* @license MIT
vendor: 4,108 bytes, lines 45-49
45**/const c_=Object.create(null);function xI(t,e){if(!Fe(t))if(t.nodeType)t=t.innerHTML;else return qt;const s=Z4(t,e),n=c_[s];if(n)return n;if(t[0]==="#"){const u=document.querySelector(t);t=u?u.innerHTML:""}const r=Qe({hoistStatic:!0,onError:void 0,onWarn:qt},e);!r.isCustomElement&&typeof customElements<"u"&&(r.isCustomElement=u=>!!customElements.get(u));const{code:o}=bI(t,r),c=new Function("Vue",o)(S3);return c._rc=!0,c_[s]=c}Kb(xI);/*! 46 * pinia v3.0.3 47 * (c) 2025 Eduardo San Martin Morote 48 * @license MIT 49 */let l1;const Td=t=>l1=t,c1=Symbol();function $f(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var aa;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(aa||(aa={}));function yI(){const t=_h(!0),e=t.run(()=>ke({}));let s=[],n=[];const r=dd({install(o){Td(r),r._a=o,o.provide(c1,r),o.config.globalProperties.$pinia=r,n.forEach(c=>s.push(c)),n=[]},use(o){return this._a?s.push(o):n.push(o),this},_p:s,_a:null,_e:t,_s:new Map,state:e});return r}const d1=()=>{};function d_(t,e,s,n=d1){t.push(e);const r=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),n())};return!s&&gh()&&wv(r),r}function Or(t,...e){t.slice().forEach(s=>{s(...e)})}const wI=t=>t(),u_=Symbol(),Bu=Symbol();function Df(t,e){t instanceof Map&&e instanceof Map?e.forEach((s,n)=>t.set(n,s)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const s in e){if(!e.hasOwnProperty(s))continue;const n=e[s],r=t[s];$f(r)&&$f(n)&&t.hasOwnProperty(s)&&!vt(n)&&!_n(n)?t[s]=Df(r,n):t[s]=n}return t}const kI=Symbol();function EI(t){return!$f(t)||!Object.prototype.hasOwnProperty.call(t,kI)}const{assign:si}=Object;function TI(t){return!!(vt(t)&&t.effect)}function SI(t,e,s,n){const{state:r,actions:o,getters:c}=e,u=s.state.value[t];let f;function p(){u||(s.state.value[t]=r?r():{});const m=Vv(s.state.value[t]);return si(m,o,Object.keys(c||{}).reduce((_,y)=>(_[y]=dd(Se(()=>{Td(s);const S=s._s.get(t);return c[y].call(S,S)})),_),{}))}return f=u1(t,p,e,s,n,!0),f}function u1(t,e,s={},n,r,o){let c;const u=si({actions:{}},s),f={deep:!0};let p,m,_=[],y=[],S;const T=n.state.value[t];!o&&!T&&(n.state.value[t]={}),ke({});let C;function M(W){let F;p=m=!1,typeof W=="function"?(W(n.state.value[t]),F={type:aa.patchFunction,storeId:t,events:S}):(Df(n.state.value[t],W),F={type:aa.patchObject,payload:W,storeId:t,events:S});const z=C=Symbol();tr().then(()=>{C===z&&(p=!0)}),m=!0,Or(_,F,n.state.value[t])}const j=o?function(){const{state:F}=s,z=F?F():{};this.$patch(V=>{si(V,z)})}:d1;function D(){c.stop(),_=[],y=[],n._s.delete(t)}const P=(W,F="")=>{if(u_ in W)return W[Bu]=F,W;const z=function(){Td(n);const V=Array.from(arguments),I=[],Z=[];function ee(fe){I.push(fe)}function me(fe){Z.push(fe)}Or(y,{args:V,name:z[Bu],store:U,after:ee,onError:me});let ne;try{ne=W.apply(this&&this.$id===t?this:U,V)}catch(fe){throw Or(Z,fe),fe}return ne instanceof Promise?ne.then(fe=>(Or(I,fe),fe)).catch(fe=>(Or(Z,fe),Promise.reject(fe))):(Or(I,ne),ne)};return z[u_]=!0,z[Bu]=F,z},$={_p:n,$id:t,$onAction:d_.bind(null,y),$patch:M,$reset:j,$subscribe(W,F={}){const z=d_(_,W,F.detached,()=>V()),V=c.run(()=>ks(()=>n.state.value[t],I=>{(F.flush==="sync"?m:p)&&W({storeId:t,type:aa.direct,events:S},I)},si({},f,F)));return z},$dispose:D},U=er($);n._s.set(t,U);const se=(n._a&&n._a.runWithContext||wI)(()=>n._e.run(()=>(c=_h()).run(()=>e({action:P}))));for(const W in se){const F=se[W];if(vt(F)&&!TI(F)||_n(F))o||(T&&EI(F)&&(vt(F)?F.value=T[W]:Df(F,T[W])),n.state.value[t][W]=F);else if(typeof F=="function"){const z=P(F,W);se[W]=z,u.actions[W]=F}}return si(U,se),si(et(U),se),Object.defineProperty(U,"$state",{get:()=>n.state.value[t],set:W=>{M(F=>{si(F,W)})}}),n._p.forEach(W=>{si(U,c.run(()=>W({store:U,app:n._a,pinia:n,options:u})))}),T&&o&&s.hydrate&&s.hydrate(U.$state,T),p=!0,m=!0,U}/*! #__NO_SIDE_EFFECTS__ */function CI(t,e,s){let n;const r=typeof e=="function";n=r?s:e;function o(c,u){const f=vb();return c=c||(f?Kr(c1,null):null),c&&Td(c),c=l1,c._s.has(t)||(r?u1(t,e,n,c):SI(t,n,c)),c._s.get(t)}return o.$id=t,o}const AI=()=>{};var f_={};
49/** 50 * @license 51 * Copyright 2017 Google LLC 52 * 53 * Licensed under the Apache License, Version 2.0 (the "License"); 54 * you may not use this file except in compliance with the License. 55 * You may obtain a copy of the License at 56 * 57 * http://www.apache.org/licenses/LICENSE-2.0 58 * 59 * Unless required by applicable law or agreed to in writing, software 60 * distributed under the License is distributed on an "AS IS" BASIS, 61 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 62 * See the License for the specific language governing permissions and 63 * limitations under the License. 64 */const f1=function(t){const e=[];let s=0;for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);r<128?e[s++]=r:r<2048?(e[s++]=r>>6|192,e[s++]=r&63|128):(r&64512)===55296&&n+1<t.length&&(t.charCodeAt(n+1)&64512)===56320?(r=65536+((r&1023)<<10)+(t.charCodeAt(++n)&1023),e[s++]=r>>18|240,e[s++]=r>>12&63|128,e[s++]=r>>6&63|128,e[s++]=r&63|128):(e[s++]=r>>12|224,e[s++]=r>>6&63|128,e[s++]=r&63|128)}return e},PI=function(t){const e=[];let s=0,n=0;for(;s<t.length;){const r=t[s++];if(r<128)e[n++]=String.fromCharCode(r);else if(r>191&&r<224){const o=t[s++];e[n++]=String.fromCharCode((r&31)<<6|o&63)}else if(r>239&&r<365){const o=t[s++],c=t[s++],u=t[s++],f=((r&7)<<18|(o&63)<<12|(c&63)<<6|u&63)-65536;e[n++]=String.fromCharCode(55296+(f>>10)),e[n++]=String.fromCharCode(56320+(f&1023))}else{const o=t[s++],c=t[s++];e[n++]=String.fromCharCode((r&15)<<12|(o&63)<<6|c&63)}}return e.join("")},h1={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const s=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let r=0;r<t.length;r+=3){const o=t[r],c=r+1<t.length,u=c?t[r+1]:0,f=r+2<t.length,p=f?t[r+2]:0,m=o>>2,_=(o&3)<<4|u>>4;let y=(u&15)<<2|p>>6,S=p&63;f||(S=64,c||(y=64)),n.push(s[m],s[_],s[y],s[S])}return n.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(f1(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):PI(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const s=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let r=0;r<t.length;){const o=s[t.charAt(r++)],u=r<t.length?s[t.charAt(r)]:0;++r;const p=r<t.length?s[t.charAt(r)]:64;++r;const _=r<t.length?s[t.charAt(r)]:64;if(++r,o==null||u==null||p==null||_==null)throw new II;const y=o<<2|u>>4;if(n.push(y),p!==64){const S=u<<4&240|p>>2;if(n.push(S),_!==64){const T=p<<6&192|_;n.push(T)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class II extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const LI=function(t){const e=f1(t);return h1.encodeByteArray(e,!0)},p1=function(t){return LI(t).replace(/\./g,"")},m1=function(t){try{return h1.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** 65 * @license 66 * Copyright 2022 Google LLC 67 * 68 * Licensed under the Apache License, Version 2.0 (the "License"); 69 * you may not use this file except in compliance with the License. 70 * You may obtain a copy of the License at 71 * 72 * http://www.apache.org/licenses/LICENSE-2.0 73 * 74 * Unless required by applicable law or agreed to in writing, software 75 * distributed under the License is distributed on an "AS IS" BASIS, 76 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 77 * See the License for the specific language governing permissions and 78 * limitations under the License. 79 */function OI(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 80 * @license 81 * Copyright 2022 Google LLC 82 * 83 * Licensed under the Apache License, Version 2.0 (the "License");
84 * you may not use this file except in compliance with the License. 85 * You may obtain a copy of the License at 86 * 87 * http://www.apache.org/licenses/LICENSE-2.0 88 * 89 * Unless required by applicable law or agreed to in writing, software 90 * distributed under the License is distributed on an "AS IS" BASIS, 91 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 92 * See the License for the specific language governing permissions and 93 * limitations under the License. 94 */const NI=()=>OI().__FIREBASE_DEFAULTS__,$I=()=>{if(typeof process>"u"||typeof f_>"u")return;const t=f_.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},DI=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&m1(t[1]);return e&&JSON.parse(e)},ip=()=>{try{return AI()||NI()||$I()||DI()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},MI=t=>ip()?.emulatorHosts?.[t],_1=()=>ip()?.config,g1=t=>ip()?.[`_${t}`];/** 95 * @license 96 * Copyright 2017 Google LLC 97 * 98 * Licensed under the Apache License, Version 2.0 (the "License"); 99 * you may not use this file except in compliance with the License. 100 * You may obtain a copy of the License at 101 * 102 * http://www.apache.org/licenses/LICENSE-2.0 103 * 104 * Unless required by applicable law or agreed to in writing, software 105 * distributed under the License is distributed on an "AS IS" BASIS, 106 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 107 * See the License for the specific language governing permissions and 108 * limitations under the License. 109 */class RI{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,s)=>{this.resolve=e,this.reject=s})}wrapCallback(e){return(s,n)=>{s?this.reject(s):this.resolve(n),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(s):e(s,n))}}}/** 110 * @license 111 * Copyright 2025 Google LLC 112 * 113 * Licensed under the Apache License, Version 2.0 (the "License"); 114 * you may not use this file except in compliance with the License. 115 * You may obtain a copy of the License at 116 * 117 * http://www.apache.org/licenses/LICENSE-2.0 118 * 119 * Unless required by applicable law or agreed to in writing, software 120 * distributed under the License is distributed on an "AS IS" BASIS, 121 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 122 * See the License for the specific language governing permissions and 123 * limitations under the License. 124 */function Sd(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return!1}}async function BI(t){return(await fetch(t,{credentials:"include"})).ok}const la={};function FI(){const t={prod:[],emulator:[]};for(const e of Object.keys(la))la[e]?t.emulator.push(e):t.prod.push(e);return t}function UI(t){let e=document.getElementById(t),s=!1;return e||(e=document.createElement("div"),e.setAttribute("id",t),s=!0),{created:s,element:e}}let h_=!1;function jI(t,e){if(typeof window>"u"||typeof document>"u"||!Sd(window.location.host)||la[t]===e||la[t]||h_)return;la[t]=e;function s(y){return`__firebase__banner__${y}`}const n="__firebase__banner",o=FI().prod.length>0;function c(){const y=document.getElementById(n);y&&y.remove()}function u(y){y.style.display="flex",y.style.background="#7faaf0",y.style.position="fixed",y.style.bottom="5px",y.style.left="5px",y.style.padding=".5em",y.style.borderRadius="5px",y.style.alignItems="center"}function f(y,S){y.setAttribute("width","24"),y.setAttribute("id",S),y.setAttribute("height","24"),y.setAttribute("viewBox","0 0 24 24"),y.setAttribute("fill","none"),y.style.marginLeft="-6px"}function p(){const y=document.createElement("span");return y.style.cursor="pointer",y.style.marginLeft="16px",y.style.fontSize="24px",y.innerHTML=" ×",y.onclick=()=>{h_=!0,c()},y}function m(y,S){y.setAttribute("id",S),y.innerText="Learn more",y.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",y.setAttribute("target","__blank"),y.style.paddingLeft="5px",y.style.textDecoration="underline"}function _(){const y=UI(n),S=s("text"),T=document.getElementById(S)||document.createElement("span"),C=s("learnmore"),M=document.getElementById(C)||document.createElement("a"),j=s("preprendIcon"),D=document.getElementById(j)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(y.created){const P=y.element;u(P),m(M,C);const $=p();f(D,j),P.append(D,T,M,$),document.body.appendChild(P)}o?(T.innerText="Preview backend disconnected.",D.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 125<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 126</g> 127<defs> 128<clipPath id="clip0_6013_33858"> 129<rect width="24" height="24" fill="white"/> 130</clipPath> 131</defs>`):(D.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 132<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444
13212.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 133</g> 134<defs> 135<clipPath id="clip0_6083_34804"> 136<rect width="24" height="24" fill="white"/> 137</clipPath> 138</defs>`,T.innerText="Preview backend running in this workspace."),T.setAttribute("id",S)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",_):_()}/** 139 * @license 140 * Copyright 2017 Google LLC 141 * 142 * Licensed under the Apache License, Version 2.0 (the "License"); 143 * you may not use this file except in compliance with the License. 144 * You may obtain a copy of the License at 145 * 146 * http://www.apache.org/licenses/LICENSE-2.0 147 * 148 * Unless required by applicable law or agreed to in writing, software 149 * distributed under the License is distributed on an "AS IS" BASIS, 150 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 151 * See the License for the specific language governing permissions and 152 * limitations under the License. 153 */function ls(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function VI(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ls())}function HI(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function zI(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function WI(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function ZI(){const t=ls();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function qI(){try{return typeof indexedDB=="object"}catch{return!1}}function KI(){return new Promise((t,e)=>{try{let s=!0;const n="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(n);r.onsuccess=()=>{r.result.close(),s||self.indexedDB.deleteDatabase(n),t(!0)},r.onupgradeneeded=()=>{s=!1},r.onerror=()=>{e(r.error?.message||"")}}catch(s){e(s)}})}/** 154 * @license 155 * Copyright 2017 Google LLC 156 * 157 * Licensed under the Apache License, Version 2.0 (the "License"); 158 * you may not use this file except in compliance with the License. 159 * You may obtain a copy of the License at 160 * 161 * http://www.apache.org/licenses/LICENSE-2.0 162 * 163 * Unless required by applicable law or agreed to in writing, software 164 * distributed under the License is distributed on an "AS IS" BASIS, 165 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 166 * See the License for the specific language governing permissions and 167 * limitations under the License. 168 */const GI="FirebaseError";
168class Ei extends Error{constructor(e,s,n){super(s),this.code=e,this.customData=n,this.name=GI,Object.setPrototypeOf(this,Ei.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Za.prototype.create)}}class Za{constructor(e,s,n){this.service=e,this.serviceName=s,this.errors=n}create(e,...s){const n=s[0]||{},r=`${this.service}/${e}`,o=this.errors[e],c=o?YI(o,n):"Error",u=`${this.serviceName}: ${c} (${r}).`;return new Ei(r,u,n)}}function YI(t,e){return t.replace(JI,(s,n)=>{const r=e[n];return r!=null?String(r):`<${n}?>`})}const JI=/\{\$([^}]+)}/g;function XI(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function _o(t,e){if(t===e)return!0;const s=Object.keys(t),n=Object.keys(e);for(const r of s){if(!n.includes(r))return!1;const o=t[r],c=e[r];if(p_(o)&&p_(c)){if(!_o(o,c))return!1}else if(o!==c)return!1}for(const r of n)if(!s.includes(r))return!1;return!0}function p_(t){return t!==null&&typeof t=="object"}/** 169 * @license 170 * Copyright 2017 Google LLC 171 * 172 * Licensed under the Apache License, Version 2.0 (the "License"); 173 * you may not use this file except in compliance with the License. 174 * You may obtain a copy of the License at 175 * 176 * http://www.apache.org/licenses/LICENSE-2.0 177 * 178 * Unless required by applicable law or agreed to in writing, software 179 * distributed under the License is distributed on an "AS IS" BASIS, 180 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 181 * See the License for the specific language governing permissions and 182 * limitations under the License. 183 */function qa(t){const e=[];for(const[s,n]of Object.entries(t))Array.isArray(n)?n.forEach(r=>{e.push(encodeURIComponent(s)+"="+encodeURIComponent(r))}):e.push(encodeURIComponent(s)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}function QI(t,e){const s=new eL(t,e);return s.subscribe.bind(s)}class eL{constructor(e,s){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=s,this.task.then(()=>{e(this)}).catch(n=>{this.error(n)})}next(e){this.forEachObserver(s=>{s.next(e)})}error(e){this.forEachObserver(s=>{s.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,s,n){let r;if(e===void 0&&s===void 0&&n===void 0)throw new Error("Missing Observer.");tL(e,["next","error","complete"])?r=e:r={next:e,error:s,complete:n},r.next===void 0&&(r.next=Fu),r.error===void 0&&(r.error=Fu),r.complete===void 0&&(r.complete=Fu);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch{}}),this.observers.push(r),o}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let s=0;s<this.observers.length;s++)this.sendOne(s,e)}sendOne(e,s){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{s(this.observers[e])}catch(n){typeof console<"u"&&console.error&&console.error(n)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function tL(t,e){if(typeof t!="object"||t===null)return!1;for(const s of e)if(s in t&&typeof t[s]=="function")return!0;return!1}function Fu(){}/** 184 * @license 185 * Copyright 2021 Google LLC 186 * 187 * Licensed under the Apache License, Version 2.0 (the "License"); 188 * you may not use this file except in compliance with the License. 189 * You may obtain a copy of the License at 190 * 191 * http://www.apache.org/licenses/LICENSE-2.0 192 * 193 * Unless required by applicable law or agreed to in writing, software 194 * distributed under the License is distributed on an "AS IS" BASIS, 195 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 196 * See the License for the specific language governing permissions and 197 * limitations under the License. 198 */function hr(t){return t&&t._delegate?t._delegate:t}class go{constructor(e,s,n){this.name=e,this.instanceFactory=s,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** 199 * @license 200 * Copyright 2019 Google LLC 201 * 202 * Licensed under the Apache License, Version 2.0 (the "License");
203 * you may not use this file except in compliance with the License. 204 * You may obtain a copy of the License at 205 * 206 * http://www.apache.org/licenses/LICENSE-2.0 207 * 208 * Unless required by applicable law or agreed to in writing, software 209 * distributed under the License is distributed on an "AS IS" BASIS, 210 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 211 * See the License for the specific language governing permissions and 212 * limitations under the License. 213 */const Mi="[DEFAULT]";/** 214 * @license 215 * Copyright 2019 Google LLC 216 * 217 * Licensed under the Apache License, Version 2.0 (the "License"); 218 * you may not use this file except in compliance with the License. 219 * You may obtain a copy of the License at 220 * 221 * http://www.apache.org/licenses/LICENSE-2.0 222 * 223 * Unless required by applicable law or agreed to in writing, software 224 * distributed under the License is distributed on an "AS IS" BASIS, 225 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 226 * See the License for the specific language governing permissions and 227 * limitations under the License. 228 */class sL{constructor(e,s){this.name=e,this.container=s,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const s=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(s)){const n=new RI;if(this.instancesDeferred.set(s,n),this.isInitialized(s)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:s});r&&n.resolve(r)}catch{}}return this.instancesDeferred.get(s).promise}getImmediate(e){const s=this.normalizeInstanceIdentifier(e?.identifier),n=e?.optional??!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(r){if(n)return null;throw r}else{if(n)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(iL(e))try{this.getOrInitializeService({instanceIdentifier:Mi})}catch{}for(const[s,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(s);try{const o=this.getOrInitializeService({instanceIdentifier:r});n.resolve(o)}catch{}}}}clearInstance(e=Mi){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(s=>"INTERNAL"in s).map(s=>s.INTERNAL.delete()),...e.filter(s=>"_delete"in s).map(s=>s._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Mi){return this.instances.has(e)}getOptions(e=Mi){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:s={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:s});for(const[o,c]of this.instancesDeferred.entries()){const u=this.normalizeInstanceIdentifier(o);n===u&&c.resolve(r)}return r}onInit(e,s){const n=this.normalizeInstanceIdentifier(s),r=this.onInitCallbacks.get(n)??new Set;r.add(e),this.onInitCallbacks.set(n,r);const o=this.instances.get(n);return o&&e(o,n),()=>{r.delete(e)}}invokeOnInitCallbacks(e,s){const n=this.onInitCallbacks.get(s);if(n)for(const r of n)try{r(e,s)}catch{}}getOrInitializeService({instanceIdentifier:e,options:s={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:nL(e),options:s}),this.instances.set(e,n),this.instancesOptions.set(e,s),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=Mi){return this.component?this.component.multipleInstances?e:Mi:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function nL(t){return t===Mi?void 0:t}function iL(t){return t.instantiationMode==="EAGER"}/** 229 * @license 230 * Copyright 2019 Google LLC 231 * 232 * Licensed under the Apache License, Version 2.0 (the "License");
233 * you may not use this file except in compliance with the License. 234 * You may obtain a copy of the License at 235 * 236 * http://www.apache.org/licenses/LICENSE-2.0 237 * 238 * Unless required by applicable law or agreed to in writing, software 239 * distributed under the License is distributed on an "AS IS" BASIS, 240 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 241 * See the License for the specific language governing permissions and 242 * limitations under the License. 243 */class rL{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const s=this.getProvider(e.name);if(s.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);s.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const s=new sL(e,this);return this.providers.set(e,s),s}getProviders(){return Array.from(this.providers.values())}}/** 244 * @license 245 * Copyright 2017 Google LLC 246 * 247 * Licensed under the Apache License, Version 2.0 (the "License"); 248 * you may not use this file except in compliance with the License. 249 * You may obtain a copy of the License at 250 * 251 * http://www.apache.org/licenses/LICENSE-2.0 252 * 253 * Unless required by applicable law or agreed to in writing, software 254 * distributed under the License is distributed on an "AS IS" BASIS, 255 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 256 * See the License for the specific language governing permissions and 257 * limitations under the License. 258 */var dt;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(dt||(dt={}));const oL={debug:dt.DEBUG,verbose:dt.VERBOSE,info:dt.INFO,warn:dt.WARN,error:dt.ERROR,silent:dt.SILENT},aL=dt.INFO,lL={[dt.DEBUG]:"log",[dt.VERBOSE]:"log",[dt.INFO]:"info",[dt.WARN]:"warn",[dt.ERROR]:"error"},cL=(t,e,...s)=>{if(e<t.logLevel)return;const n=new Date().toISOString(),r=lL[e];if(r)console[r](`[${n}] ${t.name}:`,...s);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class v1{constructor(e){this.name=e,this._logLevel=aL,this._logHandler=cL,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in dt))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?oL[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,dt.DEBUG,...e),this._logHandler(this,dt.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,dt.VERBOSE,...e),this._logHandler(this,dt.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,dt.INFO,...e),this._logHandler(this,dt.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,dt.WARN,...e),this._logHandler(this,dt.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,dt.ERROR,...e),this._logHandler(this,dt.ERROR,...e)}}const dL=(t,e)=>e.some(s=>t instanceof s);let m_,__;function uL(){return m_||(m_=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function fL(){return __||(__=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const b1=new WeakMap,Mf=new WeakMap,x1=new WeakMap,Uu=new WeakMap,rp=new WeakMap;function hL(t){const e=new Promise((s,n)=>{const r=()=>{t.removeEventListener("success",o),t.removeEventListener("error",c)},o=()=>{s(pi(t.result)),r()},c=()=>{n(t.error),r()};t.addEventListener("success",o),t.addEventListener("error",c)});return e.then(s=>{s instanceof IDBCursor&&b1.set(s,t)}).catch(()=>{}),rp.set(e,t),e}function pL(t){if(Mf.has(t))return;const e=new Promise((s,n)=>{const r=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",c),t.removeEventListener("abort",c)},o=()=>{s(),r()},c=()=>{n(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",o),t.addEventListener("error",c),t.addEventListener("abort",c)});Mf.set(t,e)}let Rf={get(t,e,s){if(t instanceof IDBTransaction){if(e==="done")return Mf.get(t);if(e==="objectStoreNames")return t.objectStoreNames||x1.get(t);if(e==="store")return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return pi(t[e])},set(t,e,s){return t[e]=s,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function mL(t){Rf=t(Rf)}function _L(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...s){const n=t.call(ju(this),e,...s);return x1.set(n,e.sort?e.sort():[e]),pi(n)}:fL().includes(t)?function(...e){return t.apply(ju(this),e),pi(b1.get(this))}:function(...e){return pi(t.apply(ju(this),e))}}function gL(t){return typeof t=="function"?_L(t):(t instanceof IDBTransaction&&pL(t),dL(t,uL())?new Proxy(t,Rf):t)}function pi(t){if(t instanceof IDBRequest)return hL(t);if(Uu.has(t))return Uu.get(t);const e=gL(t);return e!==t&&(Uu.set(t,e),rp.set(e,t)),e}const ju=t=>rp.get(t);function vL(t,e,{blocked:s,upgrade:n,blocking:r,terminated:o}={}){const c=indexedDB.open(t,e),u=pi(c);return n&&c.addEventListener("upgradeneeded",f=>{n(pi(c.result),f.oldVersion,f.newVersion,pi(c.transaction),f)}),s&&c.addEventListener("blocked",f=>s(f.oldVersion,f.newVersion,f)),u.then(f=>{o&&f.addEventListener("close",()=>o()),r&&f.addEventListener("versionchange",p=>r(p.oldVersion,p.newVersion,p))}).catch(()=>{}),u}const bL=["get","getKey","getAll","getAllKeys","count"],xL=["put","add","delete","clear"],Vu=new Map;function g_(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Vu.get(e))return Vu.get(e);const s=e.replace(/FromIndex$/,""),n=e!==s,r=xL.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!(r||bL.includes(s)))return;const o=async function(c,...u){const f=this.transaction(c,r?"readwrite":"readonly");let p=f.store;
258return n&&(p=p.index(u.shift())),(await Promise.all([p[s](...u),r&&f.done]))[0]};return Vu.set(e,o),o}mL(t=>({...t,get:(e,s,n)=>g_(e,s)||t.get(e,s,n),has:(e,s)=>!!g_(e,s)||t.has(e,s)}));/** 259 * @license 260 * Copyright 2019 Google LLC 261 * 262 * Licensed under the Apache License, Version 2.0 (the "License"); 263 * you may not use this file except in compliance with the License. 264 * You may obtain a copy of the License at 265 * 266 * http://www.apache.org/licenses/LICENSE-2.0 267 * 268 * Unless required by applicable law or agreed to in writing, software 269 * distributed under the License is distributed on an "AS IS" BASIS, 270 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 271 * See the License for the specific language governing permissions and 272 * limitations under the License. 273 */class yL{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(s=>{if(wL(s)){const n=s.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(s=>s).join(" ")}}function wL(t){return t.getComponent()?.type==="VERSION"}const Bf="@firebase/app",v_="0.14.2";/** 274 * @license 275 * Copyright 2019 Google LLC 276 * 277 * Licensed under the Apache License, Version 2.0 (the "License"); 278 * you may not use this file except in compliance with the License. 279 * You may obtain a copy of the License at 280 * 281 * http://www.apache.org/licenses/LICENSE-2.0 282 * 283 * Unless required by applicable law or agreed to in writing, software 284 * distributed under the License is distributed on an "AS IS" BASIS, 285 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286 * See the License for the specific language governing permissions and 287 * limitations under the License. 288 */const Wn=new v1("@firebase/app"),kL="@firebase/app-compat",EL="@firebase/analytics-compat",TL="@firebase/analytics",SL="@firebase/app-check-compat",CL="@firebase/app-check",AL="@firebase/auth",PL="@firebase/auth-compat",IL="@firebase/database",LL="@firebase/data-connect",OL="@firebase/database-compat",NL="@firebase/functions",$L="@firebase/functions-compat",DL="@firebase/installations",ML="@firebase/installations-compat",RL="@firebase/messaging",BL="@firebase/messaging-compat",FL="@firebase/performance",UL="@firebase/performance-compat",jL="@firebase/remote-config",VL="@firebase/remote-config-compat",HL="@firebase/storage",zL="@firebase/storage-compat",WL="@firebase/firestore",ZL="@firebase/ai",qL="@firebase/firestore-compat",KL="firebase",GL="12.2.0";/** 289 * @license 290 * Copyright 2019 Google LLC 291 * 292 * Licensed under the Apache License, Version 2.0 (the "License"); 293 * you may not use this file except in compliance with the License. 294 * You may obtain a copy of the License at 295 * 296 * http://www.apache.org/licenses/LICENSE-2.0 297 * 298 * Unless required by applicable law or agreed to in writing, software 299 * distributed under the License is distributed on an "AS IS" BASIS, 300 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 301 * See the License for the specific language governing permissions and 302 * limitations under the License. 303 */const Ff="[DEFAULT]",YL={[Bf]:"fire-core",[kL]:"fire-core-compat",[TL]:"fire-analytics",[EL]:"fire-analytics-compat",[CL]:"fire-app-check",[SL]:"fire-app-check-compat",[AL]:"fire-auth",[PL]:"fire-auth-compat",[IL]:"fire-rtdb",[LL]:"fire-data-connect",[OL]:"fire-rtdb-compat",[NL]:"fire-fn",[$L]:"fire-fn-compat",[DL]:"fire-iid",[ML]:"fire-iid-compat",[RL]:"fire-fcm",[BL]:"fire-fcm-compat",[FL]:"fire-perf",[UL]:"fire-perf-compat",[jL]:"fire-rc",[VL]:"fire-rc-compat",[HL]:"fire-gcs",[zL]:"fire-gcs-compat",[WL]:"fire-fst",[qL]:"fire-fst-compat",[ZL]:"fire-vertex","fire-js":"fire-js",[KL]:"fire-js-all"};/** 304 * @license 305 * Copyright 2019 Google LLC 306 * 307 * Licensed under the Apache License, Version 2.0 (the "License"); 308 * you may not use this file except in compliance with the License. 309 * You may obtain a copy of the License at 310 * 311 * http://www.apache.org/licenses/LICENSE-2.0 312 * 313 * Unless required by applicable law or agreed to in writing, software 314 * distributed under the License is distributed on an "AS IS" BASIS, 315 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 316 * See the License for the specific language governing permissions and 317 * limitations under the License. 318 */const $c=new Map,JL=new Map,Uf=new Map;function b_(t,e){try{t.container.addComponent(e)}catch(s){Wn.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,s)}}function Aa(t){const e=t.name;if(Uf.has(e))return Wn.debug(`There were multiple attempts to register component ${e}.`),!1;Uf.set(e,t);for(const s of $c.values())b_(s,t);for(const s of JL.values())b_(s,t);return!0}function y1(t,e){const s=t.container.getProvider("heartbeat").getImmediate({optional:!0});return s&&s.triggerHeartbeat(),t.container.getProvider(e)}function fn(t){return t==null?!1:t.settings!==void 0}/** 319 * @license 320 * Copyright 2019 Google LLC 321 * 322 * Licensed under the Apache License, Version 2.0 (the "License");
323 * you may not use this file except in compliance with the License. 324 * You may obtain a copy of the License at 325 * 326 * http://www.apache.org/licenses/LICENSE-2.0 327 * 328 * Unless required by applicable law or agreed to in writing, software 329 * distributed under the License is distributed on an "AS IS" BASIS, 330 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 331 * See the License for the specific language governing permissions and 332 * limitations under the License. 333 */const XL={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
333d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},mi=new Za("app","Firebase",XL);/** 334 * @license 335 * Copyright 2019 Google LLC 336 * 337 * Licensed under the Apache License, Version 2.0 (the "License"); 338 * you may not use this file except in compliance with the License. 339 * You may obtain a copy of the License at 340 * 341 * http://www.apache.org/licenses/LICENSE-2.0 342 * 343 * Unless required by applicable law or agreed to in writing, software 344 * distributed under the License is distributed on an "AS IS" BASIS, 345 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 346 * See the License for the specific language governing permissions and 347 * limitations under the License. 348 */class QL{constructor(e,s,n){this._isDeleted=!1,this._options={...e},this._config={...s},this._name=s.name,this._automaticDataCollectionEnabled=s.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new go("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw mi.create("app-deleted",{appName:this._name})}}/** 349 * @license 350 * Copyright 2019 Google LLC 351 * 352 * Licensed under the Apache License, Version 2.0 (the "License"); 353 * you may not use this file except in compliance with the License. 354 * You may obtain a copy of the License at 355 * 356 * http://www.apache.org/licenses/LICENSE-2.0 357 * 358 * Unless required by applicable law or agreed to in writing, software 359 * distributed under the License is distributed on an "AS IS" BASIS, 360 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 361 * See the License for the specific language governing permissions and 362 * limitations under the License. 363 */const Ka=GL;function w1(t,e={}){let s=t;typeof e!="object"&&(e={name:e});const n={name:Ff,automaticDataCollectionEnabled:!0,...e},r=n.name;if(typeof r!="string"||!r)throw mi.create("bad-app-name",{appName:String(r)});if(s||(s=_1()),!s)throw mi.create("no-options");const o=$c.get(r);if(o){if(_o(s,o.options)&&_o(n,o.config))return o;throw mi.create("duplicate-app",{appName:r})}const c=new rL(r);for(const f of Uf.values())c.addComponent(f);const u=new QL(s,n,c);return $c.set(r,u),u}function eO(t=Ff){const e=$c.get(t);if(!e&&t===Ff&&_1())return w1();if(!e)throw mi.create("no-app",{appName:t});return e}function Yr(t,e,s){let n=YL[t]??t;s&&(n+=`-${s}`);const r=n.match(/\s|\//),o=e.match(/\s|\//);if(r||o){const c=[`Unable to register library "${n}" with version "${e}":`];r&&c.push(`library name "${n}" contains illegal characters (whitespace or "/")`),r&&o&&c.push("and"),o&&c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Wn.warn(c.join(" "));return}Aa(new go(`${n}-version`,()=>({library:n,version:e}),"VERSION"))}/** 364 * @license 365 * Copyright 2021 Google LLC 366 * 367 * Licensed under the Apache License, Version 2.0 (the "License"); 368 * you may not use this file except in compliance with the License. 369 * You may obtain a copy of the License at 370 * 371 * http://www.apache.org/licenses/LICENSE-2.0 372 * 373 * Unless required by applicable law or agreed to in writing, softw
373are 374 * distributed under the License is distributed on an "AS IS" BASIS, 375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 376 * See the License for the specific language governing permissions and 377 * limitations under the License. 378 */const tO="firebase-heartbeat-database",sO=1,Pa="firebase-heartbeat-store";let Hu=null;function k1(){return Hu||(Hu=vL(tO,sO,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Pa)}catch(s){console.warn(s)}}}}).catch(t=>{throw mi.create("idb-open",{originalErrorMessage:t.message})})),Hu}async function nO(t){try{const s=(await k1()).transaction(Pa),n=await s.objectStore(Pa).get(E1(t));return await s.done,n}catch(e){if(e instanceof Ei)Wn.warn(e.message);else{const s=mi.create("idb-get",{originalErrorMessage:e?.message});Wn.warn(s.message)}}}async function x_(t,e){try{const n=(await k1()).transaction(Pa,"readwrite");await n.objectStore(Pa).put(e,E1(t)),await n.done}catch(s){if(s instanceof Ei)Wn.warn(s.message);else{const n=mi.create("idb-set",{originalErrorMessage:s?.message});Wn.warn(n.message)}}}function E1(t){return`${t.name}!${t.options.appId}`}/** 379 * @license 380 * Copyright 2021 Google LLC 381 * 382 * Licensed under the Apache License, Version 2.0 (the "License"); 383 * you may not use this file except in compliance with the License. 384 * You may obtain a copy of the License at 385 * 386 * http://www.apache.org/licenses/LICENSE-2.0 387 * 388 * Unless required by applicable law or agreed to in writing, software 389 * distributed under the License is distributed on an "AS IS" BASIS, 390 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 391 * See the License for the specific language governing permissions and 392 * limitations under the License. 393 */const iO=1024,rO=30;class oO{constructor(e){this.container=e,this._heartbeatsCache=null;const s=this.container.getProvider("app").getImmediate();this._storage=new lO(s),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}async triggerHeartbeat(){try{const s=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=y_();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(r=>r.date===n))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:s}),this._heartbeatsCache.heartbeats.length>rO){const r=cO(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(r,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){Wn.warn(e)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const e=y_(),{heartbeatsToSend:s,unsentEntries:n}=aO(this._heartbeatsCache.heartbeats),r=p1(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}catch(e){return Wn.warn(e),""}}}function y_(){return new Date().toISOString().substring(0,10)}function aO(t,e=iO){const s=[];let n=t.slice();for(const r of t){const o=s.find(c=>c.agent===r.agent);if(o){if(o.dates.push(r.date),w_(s)>e){o.dates.pop();break}}else if(s.push({agent:r.agent,dates:[r.date]}),w_(s)>e){s.pop();break}n=n.slice(1)}return{heartbeatsToSend:s,unsentEntries:n}}class lO{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return qI()?KI().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const s=await nO(this.app);return s?.heartbeats?s:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const n=await this.read();return x_(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){const n=await this.read();return x_(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}else return}}function w_(t){return p1(JSON.stringify({version:2,heartbeats:t})).length}function cO(t){if(t.length===0)return-1;let e=0,s=t[0].date;for(let n=1;n<t.length;n++)t[n].date<s&&(s=t[n].date,e=n);return e}/** 394 * @license 395 * Copyright 2019 Google LLC 396 * 397 * Licensed under the Apache License, Version 2.0 (the "License");
398 * you may not use this file except in compliance with the License. 399 * You may obtain a copy of the License at 400 * 401 * http://www.apache.org/licenses/LICENSE-2.0 402 * 403 * Unless required by applicable law or agreed to in writing, software 404 * distributed under the License is distributed on an "AS IS" BASIS, 405 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 406 * See the License for the specific language governing permissions and 407 * limitations under the License. 408 */function dO(t){Aa(new go("platform-logger",e=>new yL(e),"PRIVATE")),Aa(new go("heartbeat",e=>new oO(e),"PRIVATE")),Yr(Bf,v_,t),Yr(Bf,v_,"esm2020"),Yr("fire-js","")}dO("");function T1(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const uO=T1,S1=new Za("auth","Firebase",T1());/** 409 * @license 410 * Copyright 2020 Google LLC 411 * 412 * Licensed under the Apache License, Version 2.0 (the "License"); 413 * you may not use this file except in compliance with the License. 414 * You may obtain a copy of the License at 415 * 416 * http://www.apache.org/licenses/LICENSE-2.0 417 * 418 * Unless required by applicable law or agreed to in writing, software 419 * distributed under the License is distributed on an "AS IS" BASIS, 420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 421 * See the License for the specific language governing permissions and 422 * limitations under the License. 423 */const Dc=new v1("@firebase/auth");function fO(t,...e){Dc.logLevel<=dt.WARN&&Dc.warn(`Auth (${Ka}): ${t}`,...e)}function Ql(t,...e){Dc.logLevel<=dt.ERROR&&Dc.error(`Auth (${Ka}): ${t}`,...e)}/** 424 * @license 425 * Copyright 2020 Google LLC 426 * 427 * Licensed under the Apache License, Version 2.0 (the "License"); 428 * you may not use this file except in compliance with the License. 429 * You may obtain a copy of the License at 430 * 431 * http://www.apache.org/licenses/LICENSE-2.0 432 * 433 * Unless required by applicable law or agreed to in writing, software 434 * distributed under the License is distributed on an "AS IS" BASIS, 435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 436 * See the License for the specific language governing permissions and 437 * limitations under the License. 438 */function xn(t,...e){throw ap(t,...e)}function en(t,...e){return ap(t,...e)}function op(t,e,s){const n={...uO(),[e]:s};return new Za("auth","Firebase",n).create(e,{appName:t.name})}function Yi(t){return op(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function hO(t,e,s){const n=s;if(!(e instanceof n))throw n.name!==e.constructor.name&&xn(t,"argument-error"),op(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function ap(t,...e){if(typeof t!="string"){const s=e[0],n=[...e.slice(1)];return n[0]&&(n[0].appName=t.name),t._errorFactory.create(s,...n)}return S1.create(t,...e)}function De(t,e,...s){if(!t)throw ap(e,...s)}function $n(t){const e="INTERNAL ASSERTION FAILED: "+t;throw Ql(e),new Error(e)}function Zn(t,e){t||$n(e)}/** 439 * @license 440 * Copyright 2020 Google LLC 441 * 442 * Licensed under the Apache License, Version 2.0 (the "License"); 443 * you may not use this file except in compliance with the License. 444 * You may obtain a copy of the License at 445 * 446 * http://www.apache.org/licenses/LICENSE-2.0 447 * 448 * Unless required by applicable law or agreed to in writing, software 449 * distributed under the License is distributed on an "AS IS" BASIS, 450 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 451 * See the License for the specific language governing permissions and 452 * limitations under the License. 453 */function jf(){return typeof self<"u"&&self.location?.href||""}function pO(){return k_()==="http:"||k_()==="https:"}function k_(){return typeof self<"u"&&self.location?.protocol||null}/** 454 * @license 455 * Copyright 2020 Google LLC 456 * 457 * Licensed under the Apache License, Version 2.0 (the "License");
458 * you may not use this file except in compliance with the License. 459 * You may obtain a copy of the License at 460 * 461 * http://www.apache.org/licenses/LICENSE-2.0 462 * 463 * Unless required by applicable law or agreed to in writing, software 464 * distributed under the License is distributed on an "AS IS" BASIS, 465 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 466 * See the License for the specific language governing permissions and 467 * limitations under the License. 468 */function mO(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(pO()||zI()||"connection"in navigator)?navigator.onLine:!0}function _O(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** 469 * @license 470 * Copyright 2020 Google LLC 471 * 472 * Licensed under the Apache License, Version 2.0 (the "License"); 473 * you may not use this file except in compliance with the License. 474 * You may obtain a copy of the License at 475 * 476 * http://www.apache.org/licenses/LICENSE-2.0 477 * 478 * Unless required by applicable law or agreed to in writing, software 479 * distributed under the License is distributed on an "AS IS" BASIS, 480 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 481 * See the License for the specific language governing permissions and 482 * limitations under the License. 483 */class Ga{constructor(e,s){this.shortDelay=e,this.longDelay=s,Zn(s>e,"Short delay should be less than long delay!"),this.isMobile=VI()||WI()}get(){return mO()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 484 * @license 485 * Copyright 2020 Google LLC 486 * 487 * Licensed under the Apache License, Version 2.0 (the "License"); 488 * you may not use this file except in compliance with the License. 489 * You may obtain a copy of the License at 490 * 491 * http://www.apache.org/licenses/LICENSE-2.0 492 * 493 * Unless required by applicable law or agreed to in writing, software 494 * distributed under the License is distributed on an "AS IS" BASIS, 495 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 496 * See the License for the specific language governing permissions and 497 * limitations under the License. 498 */function lp(t,e){Zn(t.emulator,"Emulator should always be set here");const{url:s}=t.emulator;return e?`${s}${e.startsWith("/")?e.slice(1):e}`:s}/** 499 * @license 500 * Copyright 2020 Google LLC 501 * 502 * Licensed under the Apache License, Version 2.0 (the "License"); 503 * you may not use this file except in compliance with the License. 504 * You may obtain a copy of the License at 505 * 506 * http://www.apache.org/licenses/LICENSE-2.0 507 * 508 * Unless required by applicable law or agreed to in writing, software 509 * distributed under the License is distributed on an "AS IS" BASIS, 510 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 511 * See the License for the specific language governing permissions and 512 * limitations under the License. 513 */class C1{static initialize(e,s,n){this.fetchImpl=e,s&&(this.headersImpl=s),n&&(this.responseImpl=n)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;$n("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;$n("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;$n("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 514 * @license 515 * Copyright 2020 Google LLC 516 * 517 * Licensed under the Apache License, Version 2.0 (the "License");
518 * you may not use this file except in compliance with the License. 519 * You may obtain a copy of the License at 520 * 521 * http://www.apache.org/licenses/LICENSE-2.0 522 * 523 * Unless required by applicable law or agreed to in writing, software 524 * distributed under the License is distributed on an "AS IS" BASIS, 525 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 526 * See the License for the specific language governing permissions and 527 * limitations under the License. 528 */const gO={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 529 * @license 530 * Copyright 2020 Google LLC 531 * 532 * Licensed under the Apache License, Version 2.0 (the "License"); 533 * you may not use this file except in compliance with the License. 534 * You may obtain a copy of the License at 535 * 536 * http://www.apache.org/licenses/LICENSE-2.0 537 * 538 * Unless required by applicable law or agreed to in writing, software 539 * distributed under the License is distributed on an "AS IS" BASIS, 540 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 541 * See the License for the specific language governing permissions and 542 * limitations under the License. 543 */const vO=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],bO=new Ga(3e4,6e4);function cp(t,e){return t.tenantId&&!e.tenantId?{...e,tenantId:t.tenantId}:e}async function Co(t,e,s,n,r={}){return A1(t,r,async()=>{let o={},c={};n&&(e==="GET"?c=n:o={body:JSON.stringify(n)});const u=qa({key:t.config.apiKey,...c}).slice(1),f=await t._getAdditionalHeaders();f["Content-Type"]="application/json",t.languageCode&&(f["X-Firebase-Locale"]=t.languageCode);const p={method:e,headers:f,...o};return HI()||(p.referrerPolicy="no-referrer"),t.emulatorConfig&&Sd(t.emulatorConfig.host)&&(p.credentials="include"),C1.fetch()(await P1(t,t.config.apiHost,s,u),p)})}async function A1(t,e,s){t._canInitEmulator=!1;const n={...gO,...e};try{const r=new yO(t),o=await Promise.race([s(),r.promise]);r.clearNetworkTimeout();const c=await o.json();if("needConfirmation"in c)throw Bl(t,"account-exists-with-different-credential",c);if(o.ok&&!("errorMessage"in c))return c;{const u=o.ok?c.errorMessage:c.error.message,[f,p]=u.split(" : ");if(f==="FEDERATED_USER_ID_ALREADY_LINKED")throw Bl(t,"credential-already-in-use",c);if(f==="EMAIL_EXISTS")throw Bl(t,"email-already-in-use",c);if(f==="USER_DISABLED")throw Bl(t,"user-disabled",c);const m=n[f]||f.toLowerCase().replace(/[_\s]+/g,"-");if(p)throw op(t,m,p);xn(t,m)}}catch(r){if(r instanceof Ei)throw r;xn(t,"network-request-failed",{message:String(r)})}}async function xO(t,e,s,n,r={}){const o=await Co(t,e,s,n,r);return"mfaPendingCredential"in o&&xn(t,"multi-factor-auth-required",{_serverResponse:o}),o}async function P1(t,e,s,n){const r=`${e}${s}?${n}`,o=t,c=o.config.emulator?lp(t.config,r):`${t.config.apiScheme}://${r}`;return vO.includes(s)&&(await o._persistenceManagerAvailable,o._getPersistenceType()==="COOKIE")?o._getPersistence()._getFinalTarget(c).toString():c}class yO{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((s,n)=>{this.timer=setTimeout(()=>n(en(this.auth,"network-request-failed")),bO.get())})}}function Bl(t,e,s){const n={appName:t.name};s.email&&(n.email=s.email),s.phoneNumber&&(n.phoneNumber=s.phoneNumber);const r=en(t,e,n);return r.customData._tokenResponse=s,r}/** 544 * @license 545 * Copyright 2020 Google LLC 546 * 547 * Licensed under the Apache License, Version 2.0 (the "License");
548 * you may not use this file except in compliance with the License. 549 * You may obtain a copy of the License at 550 * 551 * http://www.apache.org/licenses/LICENSE-2.0 552 * 553 * Unless required by applicable law or agreed to in writing, software 554 * distributed under the License is distributed on an "AS IS" BASIS, 555 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 556 * See the License for the specific language governing permissions and 557 * limitations under the License. 558 */async function wO(t,e){return Co(t,"POST","/v1/accounts:delete",e)}async function Mc(t,e){return Co(t,"POST","/v1/accounts:lookup",e)}/** 559 * @license 560 * Copyright 2020 Google LLC 561 * 562 * Licensed under the Apache License, Version 2.0 (the "License"); 563 * you may not use this file except in compliance with the License. 564 * You may obtain a copy of the License at 565 * 566 * http://www.apache.org/licenses/LICENSE-2.0 567 * 568 * Unless required by applicable law or agreed to in writing, software 569 * distributed under the License is distributed on an "AS IS" BASIS, 570 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 571 * See the License for the specific language governing permissions and 572 * limitations under the License. 573 */function ca(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function kO(t,e=!1){const s=hr(t),n=await s.getIdToken(e),r=dp(n);De(r&&r.exp&&r.auth_time&&r.iat,s.auth,"internal-error");const o=typeof r.firebase=="object"?r.firebase:void 0,c=o?.sign_in_provider;return{claims:r,token:n,authTime:ca(zu(r.auth_time)),issuedAtTime:ca(zu(r.iat)),expirationTime:ca(zu(r.exp)),signInProvider:c||null,signInSecondFactor:o?.sign_in_second_factor||null}}function zu(t){return Number(t)*1e3}function dp(t){const[e,s,n]=t.split(".");if(e===void 0||s===void 0||n===void 0)return Ql("JWT malformed, contained fewer than 3 sections"),null;try{const r=m1(s);return r?JSON.parse(r):(Ql("Failed to decode base64 JWT payload"),null)}catch(r){return Ql("Caught error parsing JWT payload as JSON",r?.toString()),null}}function E_(t){const e=dp(t);return De(e,"internal-error"),De(typeof e.exp<"u","internal-error"),De(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** 574 * @license 575 * Copyright 2020 Google LLC 576 * 577 * Licensed under the Apache License, Version 2.0 (the "License"); 578 * you may not use this file except in compliance with the License. 579 * You may obtain a copy of the License at 580 * 581 * http://www.apache.org/licenses/LICENSE-2.0 582 * 583 * Unless required by applicable law or agreed to in writing, software 584 * distributed under the License is distributed on an "AS IS" BASIS, 585 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 586 * See the License for the specific language governing permissions and 587 * limitations under the License. 588 */async function Ia(t,e,s=!1){if(s)return e;try{return await e}catch(n){throw n instanceof Ei&&EO(n)&&t.auth.currentUser===t&&await t.auth.signOut(),n}}function EO({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** 589 * @license 590 * Copyright 2020 Google LLC 591 * 592 * Licensed under the Apache License, Version 2.0 (the "License"); 593 * you may not use this file except in compliance with the License. 594 * You may obtain a copy of the License at 595 * 596 * http://www.apache.org/licenses/LICENSE-2.0 597 * 598 * Unless required by applicable law or agreed to in writing, software 599 * distributed under the License is distributed on an "AS IS" BASIS, 600 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 601 * See the License for the specific language governing permissions and 602 * limitations under the License. 603 */class TO{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){if(e){const s=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),s}else{this.errorBackoff=3e4;const n=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,n)}}schedule(e=!1){if(!this.isRunning)return;const s=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},s)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 604 * @license 605 * Copyright 2020 Google LLC 606 * 607 * Licensed under the Apache License, Version 2.0 (the "License");
608 * you may not use this file except in compliance with the License. 609 * You may obtain a copy of the License at 610 * 611 * http://www.apache.org/licenses/LICENSE-2.0 612 * 613 * Unless required by applicable law or agreed to in writing, software 614 * distributed under the License is distributed on an "AS IS" BASIS, 615 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 616 * See the License for the specific language governing permissions and 617 * limitations under the License. 618 */class Vf{constructor(e,s){this.createdAt=e,this.lastLoginAt=s,this._initializeTime()}_initializeTime(){this.lastSignInTime=ca(this.lastLoginAt),this.creationTime=ca(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 619 * @license 620 * Copyright 2019 Google LLC 621 * 622 * Licensed under the Apache License, Version 2.0 (the "License"); 623 * you may not use this file except in compliance with the License. 624 * You may obtain a copy of the License at 625 * 626 * http://www.apache.org/licenses/LICENSE-2.0 627 * 628 * Unless required by applicable law or agreed to in writing, software 629 * distributed under the License is distributed on an "AS IS" BASIS, 630 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 631 * See the License for the specific language governing permissions and 632 * limitations under the License. 633 */async function Rc(t){const e=t.auth,s=await t.getIdToken(),n=await Ia(t,Mc(e,{idToken:s}));De(n?.users.length,e,"internal-error");const r=n.users[0];t._notifyReloadListener(r);const o=r.providerUserInfo?.length?I1(r.providerUserInfo):[],c=CO(t.providerData,o),u=t.isAnonymous,f=!(t.email&&r.passwordHash)&&!c?.length,p=u?f:!1,m={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:c,metadata:new Vf(r.createdAt,r.lastLoginAt),isAnonymous:p};Object.assign(t,m)}async function SO(t){const e=hr(t);await Rc(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function CO(t,e){return[...t.filter(n=>!e.some(r=>r.providerId===n.providerId)),...e]}function I1(t){return t.map(({providerId:e,...s})=>({providerId:e,uid:s.rawId||"",displayName:s.displayName||null,email:s.email||null,phoneNumber:s.phoneNumber||null,photoURL:s.photoUrl||null}))}/** 634 * @license 635 * Copyright 2020 Google LLC 636 * 637 * Licensed under the Apache License, Version 2.0 (the "License"); 638 * you may not use this file except in compliance with the License. 639 * You may obtain a copy of the License at 640 * 641 * http://www.apache.org/licenses/LICENSE-2.0 642 * 643 * Unless required by applicable law or agreed to in writing, software 644 * distributed under the License is distributed on an "AS IS" BASIS, 645 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 646 * See the License for the specific language governing permissions and 647 * limitations under the License. 648 */async function AO(t,e){const s=await A1(t,{},async()=>{const n=qa({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:r,apiKey:o}=t.config,c=await P1(t,r,"/v1/token",`key=${o}`),u=await t._getAdditionalHeaders();u["Content-Type"]="application/x-www-form-urlencoded";const f={method:"POST",headers:u,body:n};return t.emulatorConfig&&Sd(t.emulatorConfig.host)&&(f.credentials="include"),C1.fetch()(c,f)});return{accessToken:s.access_token,expiresIn:s.expires_in,refreshToken:s.refresh_token}}async function PO(t,e){return Co(t,"POST","/v2/accounts:revokeToken",cp(t,e))}/** 649 * @license 650 * Copyright 2020 Google LLC 651 * 652 * Licensed under the Apache License, Version 2.0 (the "License"); 653 * you may not use this file except in compliance with the License. 654 * You may obtain a copy of the License at 655 * 656 * http://www.apache.org/licenses/LICENSE-2.0 657 * 658 * Unless required by applicable law or agreed to in writing, software 659 * distributed under the License is distributed on an "AS IS" BASIS, 660 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 661 * See the License for the specific language governing permissions and 662 * limitations under the License. 663 */class Jr{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){De(e.idToken,"internal-error"),De(typeof e.idToken<"u","internal-error"),De(typeof e.refreshToken<"u","internal-error");
663const s="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):E_(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,s)}updateFromIdToken(e){De(e.length!==0,"internal-error");const s=E_(e);this.updateTokensAndExpiration(e,null,s)}async getToken(e,s=!1){return!s&&this.accessToken&&!this.isExpired?this.accessToken:(De(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,s){const{accessToken:n,refreshToken:r,expiresIn:o}=await AO(e,s);this.updateTokensAndExpiration(n,r,Number(o))}updateTokensAndExpiration(e,s,n){this.refreshToken=s||null,this.accessToken=e||null,this.expirationTime=Date.now()+n*1e3}static fromJSON(e,s){const{refreshToken:n,accessToken:r,expirationTime:o}=s,c=new Jr;return n&&(De(typeof n=="string","internal-error",{appName:e}),c.refreshToken=n),r&&(De(typeof r=="string","internal-error",{appName:e}),c.accessToken=r),o&&(De(typeof o=="number","internal-error",{appName:e}),c.expirationTime=o),c}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Jr,this.toJSON())}_performRefresh(){return $n("not implemented")}}/** 664 * @license 665 * Copyright 2020 Google LLC 666 * 667 * Licensed under the Apache License, Version 2.0 (the "License"); 668 * you may not use this file except in compliance with the License. 669 * You may obtain a copy of the License at 670 * 671 * http://www.apache.org/licenses/LICENSE-2.0 672 * 673 * Unless required by applicable law or agreed to in writing, software 674 * distributed under the License is distributed on an "AS IS" BASIS, 675 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 676 * See the License for the specific language governing permissions and 677 * limitations under the License. 678 */function ei(t,e){De(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Js{constructor({uid:e,auth:s,stsTokenManager:n,...r}){this.providerId="firebase",this.proactiveRefresh=new TO(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=s,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new Vf(r.createdAt||void 0,r.lastLoginAt||void 0)}async getIdToken(e){const s=await Ia(this,this.stsTokenManager.getToken(this.auth,e));return De(s,this.auth,"internal-error"),this.accessToken!==s&&(this.accessToken=s,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),s}getIdTokenResult(e){return kO(this,e)}reload(){return SO(this)}_assign(e){this!==e&&(De(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(s=>({...s})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const s=new Js({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return s.metadata._copy(this.metadata),s}_onReload(e){De(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,s=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),s&&await Rc(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(fn(this.auth.app))return Promise.reject(Yi(this.auth));const e=await this.getIdToken();return await Ia(this,wO(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
678nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,s){const n=s.displayName??void 0,r=s.email??void 0,o=s.phoneNumber??void 0,c=s.photoURL??void 0,u=s.tenantId??void 0,f=s._redirectEventId??void 0,p=s.createdAt??void 0,m=s.lastLoginAt??void 0,{uid:_,emailVerified:y,isAnonymous:S,providerData:T,stsTokenManager:C}=s;De(_&&C,e,"internal-error");const M=Jr.fromJSON(this.name,C);De(typeof _=="string",e,"internal-error"),ei(n,e.name),ei(r,e.name),De(typeof y=="boolean",e,"internal-error"),De(typeof S=="boolean",e,"internal-error"),ei(o,e.name),ei(c,e.name),ei(u,e.name),ei(f,e.name),ei(p,e.name),ei(m,e.name);const j=new Js({uid:_,auth:e,email:r,emailVerified:y,displayName:n,isAnonymous:S,photoURL:c,phoneNumber:o,tenantId:u,stsTokenManager:M,createdAt:p,lastLoginAt:m});return T&&Array.isArray(T)&&(j.providerData=T.map(D=>({...D}))),f&&(j._redirectEventId=f),j}static async _fromIdTokenResponse(e,s,n=!1){const r=new Jr;r.updateFromServerResponse(s);const o=new Js({uid:s.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Rc(o),o}static async _fromGetAccountInfoResponse(e,s,n){const r=s.users[0];De(r.localId!==void 0,"internal-error");const o=r.providerUserInfo!==void 0?I1(r.providerUserInfo):[],c=!(r.email&&r.passwordHash)&&!o?.length,u=new Jr;u.updateFromIdToken(n);const f=new Js({uid:r.localId,auth:e,stsTokenManager:u,isAnonymous:c}),p={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:o,metadata:new Vf(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!o?.length};return Object.assign(f,p),f}}/** 679 * @license 680 * Copyright 2020 Google LLC 681 * 682 * Licensed under the Apache License, Version 2.0 (the "License"); 683 * you may not use this file except in compliance with the License. 684 * You may obtain a copy of the License at 685 * 686 * http://www.apache.org/licenses/LICENSE-2.0 687 * 688 * Unless required by applicable law or agreed to in writing, software 689 * distributed under the License is distributed on an "AS IS" BASIS, 690 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 691 * See the License for the specific language governing permissions and 692 * limitations under the License. 693 */const T_=new Map;function Dn(t){Zn(t instanceof Function,"Expected a class definition");let e=T_.get(t);return e?(Zn(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,T_.set(t,e),e)}/** 694 * @license 695 * Copyright 2019 Google LLC 696 * 697 * Licensed under the Apache License, Version 2.0 (the "License"); 698 * you may not use this file except in compliance with the License. 699 * You may obtain a copy of the License at 700 * 701 * http://www.apache.org/licenses/LICENSE-2.0 702 * 703 * Unless required by applicable law or agreed to in writing, software 704 * distributed under the License is distributed on an "AS IS" BASIS, 705 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 706 * See the License for the specific language governing permissions and 707 * limitations under the License. 708 */class L1{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,s){this.storage[e]=s}async _get(e){const s=this.storage[e];return s===void 0?null:s}async _remove(e){delete this.storage[e]}_addListener(e,s){}_removeListener(e,s){}}L1.type="NONE";const S_=L1;/** 709 * @license 710 * Copyright 2019 Google LLC 711 * 712 * Licensed under the Apache License, Version 2.0 (the "License"); 713 * you may not use this file except in compliance with the License. 714 * You may obtain a copy of the License at 715 * 716 * http://www.apache.org/licenses/LICENSE-2.0 717 * 718 * Unless required by applicable law or agreed to in writing, softw
718are 719 * distributed under the License is distributed on an "AS IS" BASIS, 720 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 721 * See the License for the specific language governing permissions and 722 * limitations under the License. 723 */function ec(t,e,s){return`firebase:${t}:${e}:${s}`}class Xr{constructor(e,s,n){this.persistence=e,this.auth=s,this.userKey=n;const{config:r,name:o}=this.auth;this.fullUserKey=ec(this.userKey,r.apiKey,o),this.fullPersistenceKey=ec("persistence",r.apiKey,o),this.boundEventHandler=s._onStorageEvent.bind(s),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){const s=await Mc(this.auth,{idToken:e}).catch(()=>{});return s?Js._fromGetAccountInfoResponse(this.auth,s,e):null}return Js._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const s=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,s)return this.setCurrentUser(s)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,s,n="authUser"){if(!s.length)return new Xr(Dn(S_),e,n);const r=(await Promise.all(s.map(async p=>{if(await p._isAvailable())return p}))).filter(p=>p);let o=r[0]||Dn(S_);const c=ec(n,e.config.apiKey,e.name);let u=null;for(const p of s)try{const m=await p._get(c);if(m){let _;if(typeof m=="string"){const y=await Mc(e,{idToken:m}).catch(()=>{});if(!y)break;_=await Js._fromGetAccountInfoResponse(e,y,m)}else _=Js._fromJSON(e,m);p!==o&&(u=_),o=p;break}}catch{}const f=r.filter(p=>p._shouldAllowMigration);return!o._shouldAllowMigration||!f.length?new Xr(o,e,n):(o=f[0],u&&await o._set(c,u.toJSON()),await Promise.all(s.map(async p=>{if(p!==o)try{await p._remove(c)}catch{}})),new Xr(o,e,n))}}/** 724 * @license 725 * Copyright 2020 Google LLC 726 * 727 * Licensed under the Apache License, Version 2.0 (the "License"); 728 * you may not use this file except in compliance with the License. 729 * You may obtain a copy of the License at 730 * 731 * http://www.apache.org/licenses/LICENSE-2.0 732 * 733 * Unless required by applicable law or agreed to in writing, software 734 * distributed under the License is distributed on an "AS IS" BASIS, 735 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 736 * See the License for the specific language governing permissions and 737 * limitations under the License. 738 */function C_(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(D1(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(O1(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(R1(e))return"Blackberry";if(B1(e))return"Webos";if(N1(e))return"Safari";if((e.includes("chrome/")||$1(e))&&!e.includes("edge/"))return"Chrome";if(M1(e))return"Android";{const s=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=t.match(s);if(n?.length===2)return n[1]}return"Other"}function O1(t=ls()){return/firefox\//i.test(t)}function N1(t=ls()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function $1(t=ls()){return/crios\//i.test(t)}function D1(t=ls()){return/iemobile/i.test(t)}function M1(t=ls()){return/android/i.test(t)}function R1(t=ls()){return/blackberry/i.test(t)}function B1(t=ls()){return/webos/i.test(t)}function up(t=ls()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function IO(t=ls()){return up(t)&&!!window.navigator?.standalone}function LO(){return ZI()&&document.documentMode===10}function F1(t=ls()){return up(t)||M1(t)||B1(t)||R1(t)||/windows phone/i.test(t)||D1(t)}/** 739 * @license 740 * Copyright 2020 Google LLC 741 * 742 * Licensed under the Apache License, Version 2.0 (the "License");
743 * you may not use this file except in compliance with the License. 744 * You may obtain a copy of the License at 745 * 746 * http://www.apache.org/licenses/LICENSE-2.0 747 * 748 * Unless required by applicable law or agreed to in writing, software 749 * distributed under the License is distributed on an "AS IS" BASIS, 750 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 751 * See the License for the specific language governing permissions and 752 * limitations under the License. 753 */function U1(t,e=[]){let s;switch(t){case"Browser":s=C_(ls());break;case"Worker":s=`${C_(ls())}-${t}`;break;default:s=t}const n=e.length?e.join(","):"FirebaseCore-web";return`${s}/JsCore/${Ka}/${n}`}/** 754 * @license 755 * Copyright 2022 Google LLC 756 * 757 * Licensed under the Apache License, Version 2.0 (the "License"); 758 * you may not use this file except in compliance with the License. 759 * You may obtain a copy of the License at 760 * 761 * http://www.apache.org/licenses/LICENSE-2.0 762 * 763 * Unless required by applicable law or agreed to in writing, software 764 * distributed under the License is distributed on an "AS IS" BASIS, 765 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 766 * See the License for the specific language governing permissions and 767 * limitations under the License. 768 */class OO{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,s){const n=o=>new Promise((c,u)=>{try{const f=e(o);c(f)}catch(f){u(f)}});n.onAbort=s,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const s=[];try{for(const n of this.queue)await n(e),n.onAbort&&s.push(n.onAbort)}catch(n){s.reverse();for(const r of s)try{r()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:n?.message})}}}/** 769 * @license 770 * Copyright 2023 Google LLC 771 * 772 * Licensed under the Apache License, Version 2.0 (the "License"); 773 * you may not use this file except in compliance with the License. 774 * You may obtain a copy of the License at 775 * 776 * http://www.apache.org/licenses/LICENSE-2.0 777 * 778 * Unless required by applicable law or agreed to in writing, software 779 * distributed under the License is distributed on an "AS IS" BASIS, 780 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 781 * See the License for the specific language governing permissions and 782 * limitations under the License. 783 */async function NO(t,e={}){return Co(t,"GET","/v2/passwordPolicy",cp(t,e))}/** 784 * @license 785 * Copyright 2023 Google LLC 786 * 787 * Licensed under the Apache License, Version 2.0 (the "License"); 788 * you may not use this file except in compliance with the License. 789 * You may obtain a copy of the License at 790 * 791 * http://www.apache.org/licenses/LICENSE-2.0 792 * 793 * Unless required by applicable law or agreed to in writing, software 794 * distributed under the License is distributed on an "AS IS" BASIS, 795 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 796 * See the License for the specific language governing permissions and 797 * limitations under the License. 798 */const $O=6;class DO{constructor(e){const s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=s.minPasswordLength??$O,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const s={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,s),this.validatePasswordCharacterOptions(e,s),s.isValid&&
798(s.isValid=s.meetsMinPasswordLength??!0),s.isValid&&(s.isValid=s.meetsMaxPasswordLength??!0),s.isValid&&(s.isValid=s.containsLowercaseLetter??!0),s.isValid&&(s.isValid=s.containsUppercaseLetter??!0),s.isValid&&(s.isValid=s.containsNumericCharacter??!0),s.isValid&&(s.isValid=s.containsNonAlphanumericCharacter??!0),s}validatePasswordLengthOptions(e,s){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(s.meetsMinPasswordLength=e.length>=n),r&&(s.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,s){this.updatePasswordCharacterOptionsStatuses(s,!1,!1,!1,!1);let n;for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(s,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,s,n,r,o){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=s)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=o))}}/** 799 * @license 800 * Copyright 2020 Google LLC 801 * 802 * Licensed under the Apache License, Version 2.0 (the "License"); 803 * you may not use this file except in compliance with the License. 804 * You may obtain a copy of the License at 805 * 806 * http://www.apache.org/licenses/LICENSE-2.0 807 * 808 * Unless required by applicable law or agreed to in writing, software 809 * distributed under the License is distributed on an "AS IS" BASIS, 810 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 811 * See the License for the specific language governing permissions and 812 * limitations under the License. 813 */class MO{constructor(e,s,n,r){this.app=e,this.heartbeatServiceProvider=s,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new A_(this),this.idTokenSubscription=new A_(this),this.beforeStateQueue=new OO(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=S1,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise(o=>this._resolvePersistenceManagerAvailable=o)}_initializeWithPersistence(e,s){return s&&(this._popupRedirectResolver=Dn(s)),this._initializationPromise=this.queue(async()=>{if(!this._deleted&&(this.persistenceManager=await Xr.create(this,e),this._resolvePersistenceManagerAvailable?.(),!this._deleted)){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(s),this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const s=await Mc(this,{idToken:e}),n=await Js._fromGetAccountInfoResponse(this,s,e);await this.directlySetCurrentUser(n)}catch(s){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",s),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if(fn(this.app)){const o=this.app.settings.authIdToken;return o?new Promise(c=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(c,c))}):this.directlySetCurrentUser(null)}const s=await this.assertedPersistence.getCurrentUser();let n=s,r=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=this.redirectUser?._redirectEventId,c=n?._redirectEventId,u=await this.tryRedirectSignIn(e);(!o||o===c)&&u?.user&&(n=u.user,r=!0)}if(!n)return this.directlySetCurrentUser(null);
813if(!n._redirectEventId){if(r)try{await this.beforeStateQueue.runMiddleware(n)}catch(o){n=s,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return De(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(e){let s=null;try{s=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return s}async reloadAndSetCurrentUserOrClear(e){try{await Rc(e)}catch(s){if(s?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=_O()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(fn(this.app))return Promise.reject(Yi(this));const s=e?hr(e):null;return s&&De(s.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(s&&s._clone(this))}async _updateCurrentUser(e,s=!1){if(!this._deleted)return e&&De(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),s||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return fn(this.app)?Promise.reject(Yi(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return fn(this.app)?Promise.reject(Yi(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Dn(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const s=this._getPasswordPolicyInternal();return s.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):s.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await NO(this),s=new DO(e);this.tenantId===null?this._projectPasswordPolicy=s:this._tenantPasswordPolicies[this.tenantId]=s}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new Za("auth","Firebase",e())}onAuthStateChanged(e,s,n){return this.registerStateListener(this.authStateSubscription,e,s,n)}beforeAuthStateChanged(e,s){return this.beforeStateQueue.pushCallback(e,s)}onIdTokenChanged(e,s,n){return this.registerStateListener(this.idTokenSubscription,e,s,n)}authStateReady(){return new Promise((e,s)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},s)}})}async revokeAccessToken(e){if(this.currentUser){const s=await this.currentUser.getIdToken(),n={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:s};this.tenantId!=null&&(n.tenantId=this.tenantId),await PO(this,n)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,s){const n=await this.getOrInitRedirectPersistenceManager(s);return e===null?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const s=e&&Dn(e)||this._popupRedirectResolver;De(s,this,"argument-error"),this.redirectPersistenceManager=await Xr.create(this,[Dn(s._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===e?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,s,n,r){if(this._deleted)return()=>{};const o=typeof s=="function"?s:s.next.bind(s);let c=!1;const u=this._isInitialized?Promise.resolve():this._initializationPromise;if(De(u,this,"internal-error"),u.then(()=>{c||o(this.currentUser)}),typeof s=="function"){const f=e.addObserver(s,n,r);return()=>{c=!0,f()}}else{const f=e.addObserver(s);return()=>{c=!0,f()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return De(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=U1(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);const s=await this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();s&&(e["X-Firebase-Client"]=s);const n=await this._getAppCheckToken();return n&&(e["X-Firebase-AppCheck"]=n),e}async _getAppCheckToken(){if(fn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return e?.error&&fO(`Error while retrieving App Check token: ${e.error}`),e?.token}}function Cd(t){return hr(t)}class A_{constructor(e){this.auth=e,this.observer=null,this.addObserver=QI(s=>this.observer=s)}get next(){return De(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 814 * @license 815 * Copyright 2020 Google LLC 816 * 817 * Licensed under the Apache License, Version 2.0 (the "License");
818 * you may not use this file except in compliance with the License. 819 * You may obtain a copy of the License at 820 * 821 * http://www.apache.org/licenses/LICENSE-2.0 822 * 823 * Unless required by applicable law or agreed to in writing, software 824 * distributed under the License is distributed on an "AS IS" BASIS, 825 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 826 * See the License for the specific language governing permissions and 827 * limitations under the License. 828 */let fp={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function RO(t){fp=t}function BO(t){return fp.loadJS(t)}function FO(){return fp.gapiScript}function UO(t){return`__${t}${Math.floor(Math.random()*1e6)}`}/** 829 * @license 830 * Copyright 2020 Google LLC 831 * 832 * Licensed under the Apache License, Version 2.0 (the "License"); 833 * you may not use this file except in compliance with the License. 834 * You may obtain a copy of the License at 835 * 836 * http://www.apache.org/licenses/LICENSE-2.0 837 * 838 * Unless required by applicable law or agreed to in writing, software 839 * distributed under the License is distributed on an "AS IS" BASIS, 840 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 841 * See the License for the specific language governing permissions and 842 * limitations under the License. 843 */function jO(t,e){const s=y1(t,"auth");if(s.isInitialized()){const r=s.getImmediate(),o=s.getOptions();if(_o(o,e??{}))return r;xn(r,"already-initialized")}return s.initialize({options:e})}function VO(t,e){const s=e?.persistence||[],n=(Array.isArray(s)?s:[s]).map(Dn);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(n,e?.popupRedirectResolver)}function HO(t,e,s){const n=Cd(t);De(/^https?:\/\//.test(e),n,"invalid-emulator-scheme");const r=!1,o=j1(e),{host:c,port:u}=zO(e),f=u===null?"":`:${u}`,p={url:`${o}//${c}${f}/`},m=Object.freeze({host:c,port:u,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:r})});if(!n._canInitEmulator){De(n.config.emulator&&n.emulatorConfig,n,"emulator-config-failed"),De(_o(p,n.config.emulator)&&_o(m,n.emulatorConfig),n,"emulator-config-failed");return}n.config.emulator=p,n.emulatorConfig=m,n.settings.appVerificationDisabledForTesting=!0,Sd(c)?(BI(`${o}//${c}${f}`),jI("Auth",!0)):WO()}function j1(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function zO(t){const e=j1(t),s=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!s)return{host:"",port:null};const n=s[2].split("@").pop()||"",r=/^(\[[^\]]+\])(:|$)/.exec(n);if(r){const o=r[1];return{host:o,port:P_(n.substr(o.length+1))}}else{const[o,c]=n.split(":");return{host:o,port:P_(c)}}}function P_(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function WO(){function t(){const e=document.createElement("p"),s=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",s.position="fixed",s.width="100%",s.backgroundColor="#ffffff",s.border=".1em solid #000000",s.color="#b50000",s.bottom="0px",s.left="0px",s.margin="0px",s.zIndex="10000",s.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** 844 * @license 845 * Copyright 2020 Google LLC 846 * 847 * Licensed under the Apache License, Version 2.0 (the "License"); 848 * you may not use this file except in compliance with the License. 849 * You may obtain a copy of the License at 850 * 851 * http://www.apache.org/licenses/LICENSE-2.0 852 * 853 * Unless required by applicable law or agreed to in writing, software 854 * distributed under the License is distributed on an "AS IS" BASIS, 855 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 856 * See the License for the specific language governing permissions and 857 * limitations under the License. 858 */class V1{constructor(e,s){this.providerId=e,this.signInMethod=s}toJSON(){return $n("not implemented")}_getIdTokenResponse(e){return $n("not implemented")}
858_linkToIdToken(e,s){return $n("not implemented")}_getReauthenticationResolver(e){return $n("not implemented")}}/** 859 * @license 860 * Copyright 2020 Google LLC 861 * 862 * Licensed under the Apache License, Version 2.0 (the "License"); 863 * you may not use this file except in compliance with the License. 864 * You may obtain a copy of the License at 865 * 866 * http://www.apache.org/licenses/LICENSE-2.0 867 * 868 * Unless required by applicable law or agreed to in writing, software 869 * distributed under the License is distributed on an "AS IS" BASIS, 870 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 871 * See the License for the specific language governing permissions and 872 * limitations under the License. 873 */async function Qr(t,e){return xO(t,"POST","/v1/accounts:signInWithIdp",cp(t,e))}/** 874 * @license 875 * Copyright 2020 Google LLC 876 * 877 * Licensed under the Apache License, Version 2.0 (the "License"); 878 * you may not use this file except in compliance with the License. 879 * You may obtain a copy of the License at 880 * 881 * http://www.apache.org/licenses/LICENSE-2.0 882 * 883 * Unless required by applicable law or agreed to in writing, software 884 * distributed under the License is distributed on an "AS IS" BASIS, 885 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 886 * See the License for the specific language governing permissions and 887 * limitations under the License. 888 */const ZO="http://localhost";class or extends V1{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const s=new or(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(s.idToken=e.idToken),e.accessToken&&(s.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(s.nonce=e.nonce),e.pendingToken&&(s.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(s.accessToken=e.oauthToken,s.secret=e.oauthTokenSecret):xn("argument-error"),s}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
888once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const s=typeof e=="string"?JSON.parse(e):e,{providerId:n,signInMethod:r,...o}=s;if(!n||!r)return null;const c=new or(n,r);return c.idToken=o.idToken||void 0,c.accessToken=o.accessToken||void 0,c.secret=o.secret,c.nonce=o.nonce,c.pendingToken=o.pendingToken||null,c}_getIdTokenResponse(e){const s=this.buildRequest();return Qr(e,s)}_linkToIdToken(e,s){const n=this.buildRequest();return n.idToken=s,Qr(e,n)}_getReauthenticationResolver(e){const s=this.buildRequest();return s.autoCreate=!1,Qr(e,s)}buildRequest(){const e={requestUri:ZO,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const s={};this.idToken&&(s.id_token=this.idToken),this.accessToken&&(s.access_token=this.accessToken),this.secret&&(s.oauth_token_secret=this.secret),s.providerId=this.providerId,this.nonce&&!this.pendingToken&&(s.nonce=this.nonce),e.postBody=qa(s)}return e}}/** 889 * @license 890 * Copyright 2020 Google LLC 891 * 892 * Licensed under the Apache License, Version 2.0 (the "License"); 893 * you may not use this file except in compliance with the License. 894 * You may obtain a copy of the License at 895 * 896 * http://www.apache.org/licenses/LICENSE-2.0 897 * 898 * Unless required by applicable law or agreed to in writing, software 899 * distributed under the License is distributed on an "AS IS" BASIS, 900 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 901 * See the License for the specific language governing permissions and 902 * limitations under the License. 903 */class hp{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/** 904 * @license 905 * Copyright 2019 Google LLC 906 * 907 * Licensed under the Apache License, Version 2.0 (the "License"); 908 * you may not use this file except in compliance with the License. 909 * You may obtain a copy of the License at 910 * 911 * http://www.apache.org/licenses/LICENSE-2.0 912 * 913 * Unless required by applicable law or agreed to in writing, software 914 * distributed under the License is distributed on an "AS IS" BASIS, 915 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 916 * See the License for the specific language governing permissions and 917 * limitations under the License. 918 */class Ya extends hp{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/** 919 * @license 920 * Copyright 2020 Google LLC 921 * 922 * Licensed under the Apache License, Version 2.0 (the "License"); 923 * you may not use this file except in compliance with the License. 924 * You may obtain a copy of the License at 925 * 926 * http://www.apache.org/licenses/LICENSE-2.0 927 * 928 * Unless required by applicable law or agreed to in writing, software 929 * distributed under the License is distributed on an "AS IS" BASIS, 930 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 931 * See the License for the specific language governing permissions and 932 * limitations under the License. 933 */class ai extends Ya{constructor(){super("facebook.com")}static credential(e){return or._fromParams({providerId:ai.PROVIDER_ID,signInMethod:ai.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return ai.credentialFromTaggedObject(e)}static credentialFromError(e){return ai.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return ai.credential(e.oauthAccessToken)}catch{return null}}}ai.FACEBOOK_SIGN_IN_METHOD="facebook.com";ai.PROVIDER_ID="facebook.com";/** 934 * @license 935 * Copyright 2020 Google LLC 936 * 937 * Licensed under the Apache License, Version 2.0 (the "License"); 938 * you may not use this file except in compliance with the License. 939 * You may obtain a copy of the License at 940 * 941 * http://www.apache.org/licenses/LICENSE-2.0 942 * 943 * Unless required by applicable law or agreed to in writing, softw
943are 944 * distributed under the License is distributed on an "AS IS" BASIS, 945 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 946 * See the License for the specific language governing permissions and 947 * limitations under the License. 948 */class hn extends Ya{constructor(){super("google.com"),this.addScope("profile")}static credential(e,s){return or._fromParams({providerId:hn.PROVIDER_ID,signInMethod:hn.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:s})}static credentialFromResult(e){return hn.credentialFromTaggedObject(e)}static credentialFromError(e){return hn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:s,oauthAccessToken:n}=e;if(!s&&!n)return null;try{return hn.credential(s,n)}catch{return null}}}hn.GOOGLE_SIGN_IN_METHOD="google.com";hn.PROVIDER_ID="google.com";/** 949 * @license 950 * Copyright 2020 Google LLC 951 * 952 * Licensed under the Apache License, Version 2.0 (the "License"); 953 * you may not use this file except in compliance with the License. 954 * You may obtain a copy of the License at 955 * 956 * http://www.apache.org/licenses/LICENSE-2.0 957 * 958 * Unless required by applicable law or agreed to in writing, software 959 * distributed under the License is distributed on an "AS IS" BASIS, 960 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 961 * See the License for the specific language governing permissions and 962 * limitations under the License. 963 */class li extends Ya{constructor(){super("github.com")}static credential(e){return or._fromParams({providerId:li.PROVIDER_ID,signInMethod:li.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return li.credentialFromTaggedObject(e)}static credentialFromError(e){return li.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return li.credential(e.oauthAccessToken)}catch{return null}}}li.GITHUB_SIGN_IN_METHOD="github.com";li.PROVIDER_ID="github.com";/** 964 * @license 965 * Copyright 2020 Google LLC 966 * 967 * Licensed under the Apache License, Version 2.0 (the "License"); 968 * you may not use this file except in compliance with the License. 969 * You may obtain a copy of the License at 970 * 971 * http://www.apache.org/licenses/LICENSE-2.0 972 * 973 * Unless required by applicable law or agreed to in writing, software 974 * distributed under the License is distributed on an "AS IS" BASIS, 975 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 976 * See the License for the specific language governing permissions and 977 * limitations under the License. 978 */class ci extends Ya{constructor(){super("twitter.com")}static credential(e,s){return or._fromParams({providerId:ci.PROVIDER_ID,signInMethod:ci.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:s})}static credentialFromResult(e){return ci.credentialFromTaggedObject(e)}static credentialFromError(e){return ci.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:s,oauthTokenSecret:n}=e;if(!s||!n)return null;try{return ci.credential(s,n)}catch{return null}}}ci.TWITTER_SIGN_IN_METHOD="twitter.com";ci.PROVIDER_ID="twitter.com";/** 979 * @license 980 * Copyright 2020 Google LLC 981 * 982 * Licensed under the Apache License, Version 2.0 (the "License"); 983 * you may not use this file except in compliance with the License. 984 * You may obtain a copy of the License at 985 * 986 * http://www.apache.org/licenses/LICENSE-2.0 987 * 988 * Unless required by applicable law or agreed to in writing, software 989 * distributed under the License is distributed on an "AS IS" BASIS, 990 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 991 * See the License for the specific language governing permissions and 992 * limitations under the License. 993 */class vo{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,s,n,r=!1){const o=await Js._fromIdTokenResponse(e,n,r),c=I_(n);return new vo({user:o,providerId:c,_tokenResponse:n,operationType:s})}static async _forOperation(e,s,n){await e._updateTokensIfNecessary(n,!0);const r=I_(n);
993return new vo({user:e,providerId:r,_tokenResponse:n,operationType:s})}}function I_(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** 994 * @license 995 * Copyright 2020 Google LLC 996 * 997 * Licensed under the Apache License, Version 2.0 (the "License"); 998 * you may not use this file except in compliance with the License. 999 * You may obtain a copy of the License at 1000 * 1001 * http://www.apache.org/licenses/LICENSE-2.0 1002 * 1003 * Unless required by applicable law or agreed to in writing, software 1004 * distributed under the License is distributed on an "AS IS" BASIS, 1005 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1006 * See the License for the specific language governing permissions and 1007 * limitations under the License. 1008 */class Bc extends Ei{constructor(e,s,n,r){super(s.code,s.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,Bc.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:s.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,s,n,r){return new Bc(e,s,n,r)}}function H1(t,e,s,n){return(e==="reauthenticate"?s._getReauthenticationResolver(t):s._getIdTokenResponse(t)).catch(o=>{throw o.code==="auth/multi-factor-auth-required"?Bc._fromErrorAndOperation(t,o,e,n):o})}async function qO(t,e,s=!1){const n=await Ia(t,e._linkToIdToken(t.auth,await t.getIdToken()),s);return vo._forOperation(t,"link",n)}/** 1009 * @license 1010 * Copyright 2019 Google LLC 1011 * 1012 * Licensed under the Apache License, Version 2.0 (the "License"); 1013 * you may not use this file except in compliance with the License. 1014 * You may obtain a copy of the License at 1015 * 1016 * http://www.apache.org/licenses/LICENSE-2.0 1017 * 1018 * Unless required by applicable law or agreed to in writing, software 1019 * distributed under the License is distributed on an "AS IS" BASIS, 1020 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1021 * See the License for the specific language governing permissions and 1022 * limitations under the License. 1023 */async function KO(t,e,s=!1){const{auth:n}=t;if(fn(n.app))return Promise.reject(Yi(n));const r="reauthenticate";try{const o=await Ia(t,H1(n,r,e,t),s);De(o.idToken,n,"internal-error");const c=dp(o.idToken);De(c,n,"internal-error");const{sub:u}=c;return De(t.uid===u,n,"user-mismatch"),vo._forOperation(t,r,o)}catch(o){throw o?.code==="auth/user-not-found"&&xn(n,"user-mismatch"),o}}/** 1024 * @license 1025 * Copyright 2020 Google LLC 1026 * 1027 * Licensed under the Apache License, Version 2.0 (the "License"); 1028 * you may not use this file except in compliance with the License. 1029 * You may obtain a copy of the License at 1030 * 1031 * http://www.apache.org/licenses/LICENSE-2.0 1032 * 1033 * Unless required by applicable law or agreed to in writing, software 1034 * distributed under the License is distributed on an "AS IS" BASIS, 1035 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1036 * See the License for the specific language governing permissions and 1037 * limitations under the License. 1038 */async function GO(t,e,s=!1){if(fn(t.app))return Promise.reject(Yi(t));const n="signIn",r=await H1(t,n,e),o=await vo._fromIdTokenResponse(t,n,r);return s||await t._updateCurrentUser(o.user),o}function z1(t,e,s,n){return hr(t).onIdTokenChanged(e,s,n)}function YO(t,e,s){return hr(t).beforeAuthStateChanged(e,s)}function W1(t,e,s,n){return hr(t).onAuthStateChanged(e,s,n)}const Fc="__sak";/** 1039 * @license 1040 * Copyright 2019 Google LLC 1041 * 1042 * Licensed under the Apache License, Version 2.0 (the "License"); 1043 * you may not use this file except in compliance with the License. 1044 * You may obtain a copy of the License at 1045 * 1046 * http://www.apache.org/licenses/LICENSE-2.0 1047 * 1048 * Unless required by applicable law or agreed to in writing, software 1049 * distributed under the License is distributed on an "AS IS" BASIS, 1050 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1051 * See the License for the specific language governing permissions and 1052 * limitations under the License. 1053 */class Z1{constructor(e,s){this.storageRetriever=e,this.type=s}_isAvailable(){try{return this.storage?(this.storage.setItem(Fc,"1"),this.storage.removeItem(Fc),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,s){return this.storage.setItem(e,JSON.stringify(s)),Promise.resolve()}_get(e){const s=this.storage.getItem(e);return Promise.resolve(s?JSON.parse(s):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1054 * @license 1055 * Copyright 2020 Google LLC 1056 * 1057 * Licensed under the Apache License, Version 2.0 (the "License");
1058 * you may not use this file except in compliance with the License. 1059 * You may obtain a copy of the License at 1060 * 1061 * http://www.apache.org/licenses/LICENSE-2.0 1062 * 1063 * Unless required by applicable law or agreed to in writing, software 1064 * distributed under the License is distributed on an "AS IS" BASIS, 1065 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1066 * See the License for the specific language governing permissions and 1067 * limitations under the License. 1068 */const JO=1e3,XO=10;class q1 extends Z1{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,s)=>this.onStorageEvent(e,s),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=F1(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const s of Object.keys(this.listeners)){const n=this.storage.getItem(s),r=this.localCache[s];n!==r&&e(s,r,n)}}onStorageEvent(e,s=!1){if(!e.key){this.forAllChangedKeys((c,u,f)=>{this.notifyListeners(c,f)});return}const n=e.key;s?this.detachListener():this.stopPolling();const r=()=>{const c=this.storage.getItem(n);!s&&this.localCache[n]===c||this.notifyListeners(n,c)},o=this.storage.getItem(n);LO()&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,XO):r()}notifyListeners(e,s){this.localCache[e]=s;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(s&&JSON.parse(s))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,s,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:s,newValue:n}),!0)})},JO)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,s){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(s)}_removeListener(e,s){this.listeners[e]&&(this.listeners[e].delete(s),this.listeners[e].size===0&&delete this.listeners[e]),Ob
1068ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,s){await super._set(e,s),this.localCache[e]=JSON.stringify(s)}async _get(e){const s=await super._get(e);return this.localCache[e]=JSON.stringify(s),s}async _remove(e){await super._remove(e),delete this.localCache[e]}}q1.type="LOCAL";const QO=q1;/** 1069 * @license 1070 * Copyright 2020 Google LLC 1071 * 1072 * Licensed under the Apache License, Version 2.0 (the "License"); 1073 * you may not use this file except in compliance with the License. 1074 * You may obtain a copy of the License at 1075 * 1076 * http://www.apache.org/licenses/LICENSE-2.0 1077 * 1078 * Unless required by applicable law or agreed to in writing, software 1079 * distributed under the License is distributed on an "AS IS" BASIS, 1080 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1081 * See the License for the specific language governing permissions and 1082 * limitations under the License. 1083 */class K1 extends Z1{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,s){}_removeListener(e,s){}}K1.type="SESSION";const G1=K1;/** 1084 * @license 1085 * Copyright 2019 Google LLC 1086 * 1087 * Licensed under the Apache License, Version 2.0 (the "License"); 1088 * you may not use this file except in compliance with the License. 1089 * You may obtain a copy of the License at 1090 * 1091 * http://www.apache.org/licenses/LICENSE-2.0 1092 * 1093 * Unless required by applicable law or agreed to in writing, software 1094 * distributed under the License is distributed on an "AS IS" BASIS, 1095 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1096 * See the License for the specific language governing permissions and 1097 * limitations under the License. 1098 */function eN(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(s){return{fulfilled:!1,reason:s}}}))}/** 1099 * @license 1100 * Copyright 2019 Google LLC 1101 * 1102 * Licensed under the Apache License, Version 2.0 (the "License"); 1103 * you may not use this file except in compliance with the License. 1104 * You may obtain a copy of the License at 1105 * 1106 * http://www.apache.org/licenses/LICENSE-2.0 1107 * 1108 * Unless required by applicable law or agreed to in writing, software 1109 * distributed under the License is distributed on an "AS IS" BASIS, 1110 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1111 * See the License for the specific language governing permissions and 1112 * limitations under the License. 1113 */class Ad{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const s=this.receivers.find(r=>r.isListeningto(e));if(s)return s;const n=new Ad(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const s=e,{eventId:n,eventType:r,data:o}=s.data,c=this.handlersMap[r];if(!c?.size)return;s.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const u=Array.from(c).map(async p=>p(s.origin,o)),f=await eN(u);s.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:f})}_subscribe(e,s){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(s)}_unsubscribe(e,s){this.handlersMap[e]&&s&&this.handlersMap[e].delete(s),(!s||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Ad.receivers=[];/** 1114 * @license 1115 * Copyright 2020 Google LLC 1116 * 1117 * Licensed under the Apache License, Version 2.0 (the "License"); 1118 * you may not use this file except in compliance with the License. 1119 * You may obtain a copy of the License at 1120 * 1121 * http://www.apache.org/licenses/LICENSE-2.0 1122 * 1123 * Unless required by applicable law or agreed to in writing, software 1124 * distributed under the License is distributed on an "AS IS" BASIS, 1125 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1126 * See the License for the specific language governing permissions and 1127 * limitations under the License. 1128 */function pp(t="",e=10){let s="";for(let n=0;n<e;n++)s+=Math.floor(Math.random()*10);return t+s}/** 1129 * @license 1130 * Copyright 2019 Google LLC 1131 * 1132 * Licensed under the Apache License, Version 2.0 (the "License");
1133 * you may not use this file except in compliance with the License. 1134 * You may obtain a copy of the License at 1135 * 1136 * http://www.apache.org/licenses/LICENSE-2.0 1137 * 1138 * Unless required by applicable law or agreed to in writing, software 1139 * distributed under the License is distributed on an "AS IS" BASIS, 1140 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1141 * See the License for the specific language governing permissions and 1142 * limitations under the License. 1143 */class tN{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,s,n=50){const r=typeof MessageChannel<"u"?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let o,c;return new Promise((u,f)=>{const p=pp("",20);r.port1.start();const m=setTimeout(()=>{f(new Error("unsupported_event"))},n);c={messageChannel:r,onMessage(_){const y=_;if(y.data.eventId===p)switch(y.data.status){case"ack":clearTimeout(m),o=setTimeout(()=>{f(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),u(y.data.response);break;default:clearTimeout(m),clearTimeout(o),f(new Error("invalid_response"));break}}},this.handlers.add(c),r.port1.addEventListener("message",c.onMessage),this.target.postMessage({eventType:e,eventId:p,data:s},[r.port2])}).finally(()=>{c&&this.removeMessageHandler(c)})}}/** 1144 * @license 1145 * Copyright 2020 Google LLC 1146 * 1147 * Licensed under the Apache License, Version 2.0 (the "License"); 1148 * you may not use this file except in compliance with the License. 1149 * You may obtain a copy of the License at 1150 * 1151 * http://www.apache.org/licenses/LICENSE-2.0 1152 * 1153 * Unless required by applicable law or agreed to in writing, software 1154 * distributed under the License is distributed on an "AS IS" BASIS, 1155 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1156 * See the License for the specific language governing permissions and 1157 * limitations under the License. 1158 */function gn(){return window}function sN(t){gn().location.href=t}/** 1159 * @license 1160 * Copyright 2020 Google LLC. 1161 * 1162 * Licensed under the Apache License, Version 2.0 (the "License"); 1163 * you may not use this file except in compliance with the License. 1164 * You may obtain a copy of the License at 1165 * 1166 * http://www.apache.org/licenses/LICENSE-2.0 1167 * 1168 * Unless required by applicable law or agreed to in writing, software 1169 * distributed under the License is distributed on an "AS IS" BASIS, 1170 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1171 * See the License for the specific language governing permissions and 1172 * limitations under the License. 1173 */function Y1(){return typeof gn().WorkerGlobalScope<"u"&&typeof gn().importScripts=="function"}async function nN(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function iN(){return navigator?.serviceWorker?.controller||null}function rN(){return Y1()?self:null}/** 1174 * @license 1175 * Copyright 2019 Google LLC 1176 * 1177 * Licensed under the Apache License, Version 2.0 (the "License"); 1178 * you may not use this file except in compliance with the License. 1179 * You may obtain a copy of the License at 1180 * 1181 * http://www.apache.org/licenses/LICENSE-2.0 1182 * 1183 * Unless required by applicable law or agreed to in writing, software 1184 * distributed under the License is distributed on an "AS IS" BASIS, 1185 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1186 * See the License for the specific language governing permissions and 1187 * limitations under the License. 1188 */const J1="firebaseLocalStorageDb",oN=1,Uc="firebaseLocalStorage",X1="fbase_key";class Ja{constructor(e){this.request=e}toPromise(){return new Promise((e,s)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{s(this.request.error)})})}}function Pd(t,e){return t.transaction([Uc],e?"readwrite":"readonly").objectStore(Uc)}function aN(){const t=indexedDB.deleteDatabase(J1);
1188return new Ja(t).toPromise()}function Hf(){const t=indexedDB.open(J1,oN);return new Promise((e,s)=>{t.addEventListener("error",()=>{s(t.error)}),t.addEventListener("upgradeneeded",()=>{const n=t.result;try{n.createObjectStore(Uc,{keyPath:X1})}catch(r){s(r)}}),t.addEventListener("success",async()=>{const n=t.result;n.objectStoreNames.contains(Uc)?e(n):(n.close(),await aN(),e(await Hf()))})})}async function L_(t,e,s){const n=Pd(t,!0).put({[X1]:e,value:s});return new Ja(n).toPromise()}async function lN(t,e){const s=Pd(t,!1).get(e),n=await new Ja(s).toPromise();return n===void 0?null:n.value}function O_(t,e){const s=Pd(t,!0).delete(e);return new Ja(s).toPromise()}const cN=800,dN=3;class Q1{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Hf(),this.db)}async _withRetries(e){let s=0;for(;;)try{const n=await this._openDb();return await e(n)}catch(n){if(s++>dN)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Y1()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Ad._getInstance(rN()),this.receiver._subscribe("keyChanged",async(e,s)=>({keyProcessed:(await this._poll()).includes(s.key)}
1188)),this.receiver._subscribe("ping",async(e,s)=>["keyChanged"])}async initializeSender(){if(this.activeServiceWorker=await nN(),!this.activeServiceWorker)return;this.sender=new tN(this.activeServiceWorker);const e=await this.sender._send("ping",{},800);e&&e[0]?.fulfilled&&e[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||iN()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Hf();return await L_(e,Fc,"1"),await O_(e,Fc),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,s){return this._withPendingWrite(async()=>(await this._withRetries(n=>L_(n,e,s)),this.localCache[e]=s,this.notifyServiceWorker(e)))}async _get(e){const s=await this._withRetries(n=>lN(n,e));return this.localCache[e]=s,s}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(s=>O_(s,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(r=>{const o=Pd(r,!1).getAll();return new Ja(o).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const s=[],n=new Set;if(e.length!==0)for(const{fbase_key:r,value:o}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(o)&&(this.notifyListeners(r,o),s.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),s.push(r));return s}notifyListeners(e,s){this.localCache[e]=s;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(s)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),cN)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,s){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(s)}_removeListener(e,s){this.listeners[e]&&(this.listeners[e].delete(s),this.listeners[e].size===0&&delete this.listeners[e]),Ob
1188ject.keys(this.listeners).length===0&&this.stopPolling()}}Q1.type="LOCAL";const uN=Q1;new Ga(3e4,6e4);/** 1189 * @license 1190 * Copyright 2021 Google LLC 1191 * 1192 * Licensed under the Apache License, Version 2.0 (the "License"); 1193 * you may not use this file except in compliance with the License. 1194 * You may obtain a copy of the License at 1195 * 1196 * http://www.apache.org/licenses/LICENSE-2.0 1197 * 1198 * Unless required by applicable law or agreed to in writing, software 1199 * distributed under the License is distributed on an "AS IS" BASIS, 1200 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1201 * See the License for the specific language governing permissions and 1202 * limitations under the License. 1203 */function ey(t,e){return e?Dn(e):(De(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** 1204 * @license 1205 * Copyright 2019 Google LLC 1206 * 1207 * Licensed under the Apache License, Version 2.0 (the "License"); 1208 * you may not use this file except in compliance with the License. 1209 * You may obtain a copy of the License at 1210 * 1211 * http://www.apache.org/licenses/LICENSE-2.0 1212 * 1213 * Unless required by applicable law or agreed to in writing, software 1214 * distributed under the License is distributed on an "AS IS" BASIS, 1215 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1216 * See the License for the specific language governing permissions and 1217 * limitations under the License. 1218 */class mp extends V1{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Qr(e,this._buildIdpRequest())}_linkToIdToken(e,s){return Qr(e,this._buildIdpRequest(s))}_getReauthenticationResolver(e){return Qr(e,this._buildIdpRequest())}_buildIdpRequest(e){const s={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(s.idToken=e),s}}function fN(t){return GO(t.auth,new mp(t),t.bypassAuthState)}function hN(t){const{auth:e,user:s}=t;return De(s,e,"internal-error"),KO(s,new mp(t),t.bypassAuthState)}async function pN(t){const{auth:e,user:s}=t;return De(s,e,"internal-error"),qO(s,new mp(t),t.bypassAuthState)}/** 1219 * @license 1220 * Copyright 2020 Google LLC 1221 * 1222 * Licensed under the Apache License, Version 2.0 (the "License"); 1223 * you may not use this file except in compliance with the License. 1224 * You may obtain a copy of the License at 1225 * 1226 * http://www.apache.org/licenses/LICENSE-2.0 1227 * 1228 * Unless required by applicable law or agreed to in writing, software 1229 * distributed under the License is distributed on an "AS IS" BASIS, 1230 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1231 * See the License for the specific language governing permissions and 1232 * limitations under the License. 1233 */class ty{constructor(e,s,n,r,o=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(s)?s:[s]}execute(){return new Promise(async(e,s)=>{this.pendingPromise={resolve:e,reject:s};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}})}async onAuthEvent(e){const{urlResponse:s,sessionId:n,postBody:r,tenantId:o,error:c,type:u}=e;if(c){this.reject(c);return}const f={auth:this.auth,requestUri:s,sessionId:n,tenantId:o||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(u)(f))}catch(p){this.reject(p)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return fN;case"linkViaPopup":case"linkViaRedirect":return pN;case"reauthViaPopup":case"reauthViaRedirect":return hN;default:xn(this.auth,"internal-error")}}resolve(e){Zn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Zn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1234 * @license 1235 * Copyright 2020 Google LLC 1236 * 1237 * Licensed under the Apache License, Version 2.0 (the "License");
1238 * you may not use this file except in compliance with the License. 1239 * You may obtain a copy of the License at 1240 * 1241 * http://www.apache.org/licenses/LICENSE-2.0 1242 * 1243 * Unless required by applicable law or agreed to in writing, software 1244 * distributed under the License is distributed on an "AS IS" BASIS, 1245 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1246 * See the License for the specific language governing permissions and 1247 * limitations under the License. 1248 */const mN=new Ga(2e3,1e4);async function sy(t,e,s){if(fn(t.app))return Promise.reject(en(t,"operation-not-supported-in-this-environment"));const n=Cd(t);hO(t,e,hp);const r=ey(n,s);return new Vi(n,"signInViaPopup",e,r).executeNotNull()}class Vi extends ty{constructor(e,s,n,r,o){super(e,s,r,o),this.provider=n,this.authWindow=null,this.pollId=null,Vi.currentPopupAction&&Vi.currentPopupAction.cancel(),Vi.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return De(e,this.auth,"internal-error"),e}async onExecution(){Zn(this.filter.length===1,"Popup operations only handle one event");const e=pp();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(s=>{this.reject(s)}),this.resolver._isIframeWebStorageSupported(this.auth,s=>{s||this.reject(en(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(en(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Vi.currentPopupAction=null}pollUserCancellation(){const e=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(en(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,mN.get())};e()}}Vi.currentPopupAction=null;/** 1249 * @license 1250 * Copyright 2020 Google LLC 1251 * 1252 * Licensed under the Apache License, Version 2.0 (the "License"); 1253 * you may not use this file except in compliance with the License. 1254 * You may obtain a copy of the License at 1255 * 1256 * http://www.apache.org/licenses/LICENSE-2.0 1257 * 1258 * Unless required by applicable law or agreed to in writing, software 1259 * distributed under the License is distributed on an "AS IS" BASIS, 1260 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261 * See the License for the specific language governing permissions and 1262 * limitations under the License. 1263 */const _N="pendingRedirect",tc=new Map;class gN extends ty{constructor(e,s,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],s,void 0,n),this.eventId=null}async execute(){let e=tc.get(this.auth._key());if(!e){try{const n=await vN(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(n)}catch(s){e=()=>Promise.reject(s)}tc.set(this.auth._key(),e)}return this.bypassAuthState||tc.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const s=await this.auth._redirectUserForId(e.eventId);if(s)return this.user=s,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function vN(t,e){const s=yN(e),n=xN(t);if(!await n._isAvailable())return!1;const r=await n._get(s)==="true";return await n._remove(s),r}function bN(t,e){tc.set(t._key(),e)}function xN(t){return Dn(t._redirectPersistence)}function yN(t){return ec(_N,t.config.apiKey,t.name)}async function wN(t,e,s=!1){if(fn(t.app))return Promise.reject(Yi(t));const n=Cd(t),r=ey(n,e),c=await new gN(n,r,s).execute();return c&&!s&&(delete c.user._redirectEventId,await n._persistUserIfCurrent(c.user),await n._setRedirectUser(null,e)),c}/** 1264 * @license 1265 * Copyright 2020 Google LLC 1266 * 1267 * Licensed under the Apache License, Version 2.0 (the "License"); 1268 * you may not use this file except in compliance with the License. 1269 * You may obtain a copy of the License at 1270 * 1271 * http://www.apache.org/licenses/LICENSE-2.0 1272 * 1273 * Unless required by applicable law or agreed to in writing, softw
1273are 1274 * distributed under the License is distributed on an "AS IS" BASIS, 1275 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1276 * See the License for the specific language governing permissions and 1277 * limitations under the License. 1278 */const kN=600*1e3;class EN{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let s=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(s=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!TN(e)||(this.hasHandledPotentialRedirect=!0,s||(this.queuedRedirectEvent=e,s=!0)),s}sendToConsumer(e,s){if(e.error&&!ny(e)){const n=e.error.code?.split("auth/")[1]||"internal-error";s.onError(en(this.auth,n))}else s.onAuthEvent(e)}isEventForConsumer(e,s){const n=s.eventId===null||!!e.eventId&&e.eventId===s.eventId;return s.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=kN&&this.cachedEventUids.clear(),this.cachedEventUids.has(N_(e))}saveEventToCache(e){this.cachedEventUids.add(N_(e)),this.lastProcessedEventTime=Date.now()}}function N_(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function ny({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function TN(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return ny(t);default:return!1}}/** 1279 * @license 1280 * Copyright 2020 Google LLC 1281 * 1282 * Licensed under the Apache License, Version 2.0 (the "License"); 1283 * you may not use this file except in compliance with the License. 1284 * You may obtain a copy of the License at 1285 * 1286 * http://www.apache.org/licenses/LICENSE-2.0 1287 * 1288 * Unless required by applicable law or agreed to in writing, software 1289 * distributed under the License is distributed on an "AS IS" BASIS, 1290 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1291 * See the License for the specific language governing permissions and 1292 * limitations under the License. 1293 */async function SN(t,e={}){return Co(t,"GET","/v1/projects",e)}/** 1294 * @license 1295 * Copyright 2020 Google LLC 1296 * 1297 * Licensed under the Apache License, Version 2.0 (the "License"); 1298 * you may not use this file except in compliance with the License. 1299 * You may obtain a copy of the License at 1300 * 1301 * http://www.apache.org/licenses/LICENSE-2.0 1302 * 1303 * Unless required by applicable law or agreed to in writing, software 1304 * distributed under the License is distributed on an "AS IS" BASIS, 1305 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1306 * See the License for the specific language governing permissions and 1307 * limitations under the License. 1308 */const CN=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,AN=/^https?/;async function PN(t){if(t.config.emulator)return;const{authorizedDomains:e}=await SN(t);for(const s of e)try{if(IN(s))return}catch{}xn(t,"unauthorized-domain")}function IN(t){const e=jf(),{protocol:s,hostname:n}=new URL(e);if(t.startsWith("chrome-extension://")){const c=new URL(t);return c.hostname===""&&n===""?s==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):s==="chrome-extension:"&&c.hostname===n}if(!AN.test(s))return!1;if(CN.test(t))return n===t;const r=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+r+"|"+r+")$","i").test(n)}/** 1309 * @license 1310 * Copyright 2020 Google LLC. 1311 * 1312 * Licensed under the Apache License, Version 2.0 (the "License"); 1313 * you may not use this file except in compliance with the License. 1314 * You may obtain a copy of the License at 1315 * 1316 * http://www.apache.org/licenses/LICENSE-2.0 1317 * 1318 * Unless required by applicable law or agreed to in writing, softw
1318are 1319 * distributed under the License is distributed on an "AS IS" BASIS, 1320 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1321 * See the License for the specific language governing permissions and 1322 * limitations under the License. 1323 */const LN=new Ga(3e4,6e4);function $_(){const t=gn().___jsl;if(t?.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let s=0;s<t.CP.length;s++)t.CP[s]=null}}function ON(t){return new Promise((e,s)=>{function n(){$_(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{$_(),s(en(t,"network-request-failed"))},timeout:LN.get()})}if(gn().gapi?.iframes?.Iframe)e(gapi.iframes.getContext());else if(gn().gapi?.load)n();else{const r=UO("iframefcb");return gn()[r]=()=>{gapi.load?n():s(en(t,"network-request-failed"))},BO(`${FO()}?onload=${r}`).catch(o=>s(o))}}).catch(e=>{throw sc=null,e})}let sc=null;function NN(t){return sc=sc||ON(t),sc}/** 1324 * @license 1325 * Copyright 2020 Google LLC. 1326 * 1327 * Licensed under the Apache License, Version 2.0 (the "License"); 1328 * you may not use this file except in compliance with the License. 1329 * You may obtain a copy of the License at 1330 * 1331 * http://www.apache.org/licenses/LICENSE-2.0 1332 * 1333 * Unless required by applicable law or agreed to in writing, software 1334 * distributed under the License is distributed on an "AS IS" BASIS, 1335 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1336 * See the License for the specific language governing permissions and 1337 * limitations under the License. 1338 */const $N=new Ga(5e3,15e3),DN="__/auth/iframe",MN="emulator/auth/iframe",RN={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},BN=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function FN(t){const e=t.config;De(e.authDomain,t,"auth-domain-config-required");const s=e.emulator?lp(e,MN):`https://${t.config.authDomain}/${DN}`,n={apiKey:e.apiKey,appName:t.name,v:Ka},r=BN.get(t.config.apiHost);r&&(n.eid=r);const o=t._getFrameworks();return o.length&&(n.fw=o.join(",")),`${s}?${qa(n).slice(1)}`}async function UN(t){const e=await NN(t),s=gn().gapi;return De(s,t,"internal-error"),e.open({where:document.body,url:FN(t),messageHandlersFilter:s.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:RN,dontclear:!0},n=>new Promise(async(r,o)=>{await n.restyle({setHideOnLeave:!1});const c=en(t,"network-request-failed"),u=gn().setTimeout(()=>{o(c)},$N.get());function f(){gn().clearTimeout(u),r(n)}n.ping(f).then(f,()=>{o(c)})}))}/** 1339 * @license 1340 * Copyright 2020 Google LLC. 1341 * 1342 * Licensed under the Apache License, Version 2.0 (the "License"); 1343 * you may not use this file except in compliance with the License. 1344 * You may obtain a copy of the License at 1345 * 1346 * http://www.apache.org/licenses/LICENSE-2.0 1347 * 1348 * Unless required by applicable law or agreed to in writing, software 1349 * distributed under the License is distributed on an "AS IS" BASIS, 1350 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1351 * See the License for the specific language governing permissions and 1352 * limitations under the License. 1353 */const jN={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},VN=500,HN=600,zN="_blank",WN="http://localhost";class D_{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function ZN(t,e,s,n=VN,r=HN){const o=Math.max((window.screen.availHeight-r)/2,0).toString(),c=Math.max((window.screen.availWidth-n)/2,0).toString();let u="";const f={...jN,width:n.toString(),height:r.toString(),top:o,left:c},p=ls().toLowerCase();s&&(u=$1(p)?zN:s),O1(p)&&(e=e||WN,f.scrollbars="yes");const m=Object.entries(f).reduce((y,[S,T])=>`${y}${S}=${T},`,"");if(IO(p)&&u!=="_self")return qN(e||"",u),new D_(null);const _=window.open(e||"",u,m);De(_,t,"popup-blocked");try{_.focus()}catch{}return new D_(_)}function qN(t,e){const s=document.createElement("a");s.href=t,s.target=e;const n=document.createEvent("MouseEvent");
1353n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),s.dispatchEvent(n)}/** 1354 * @license 1355 * Copyright 2021 Google LLC 1356 * 1357 * Licensed under the Apache License, Version 2.0 (the "License"); 1358 * you may not use this file except in compliance with the License. 1359 * You may obtain a copy of the License at 1360 * 1361 * http://www.apache.org/licenses/LICENSE-2.0 1362 * 1363 * Unless required by applicable law or agreed to in writing, software 1364 * distributed under the License is distributed on an "AS IS" BASIS, 1365 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1366 * See the License for the specific language governing permissions and 1367 * limitations under the License. 1368 */const KN="__/auth/handler",GN="emulator/auth/handler",YN=encodeURIComponent("fac");async function M_(t,e,s,n,r,o){De(t.config.authDomain,t,"auth-domain-config-required"),De(t.config.apiKey,t,"invalid-api-key");const c={apiKey:t.config.apiKey,appName:t.name,authType:s,redirectUrl:n,v:Ka,eventId:r};if(e instanceof hp){e.setDefaultLanguage(t.languageCode),c.providerId=e.providerId||"",XI(e.getCustomParameters())||(c.customParameters=JSON.stringify(e.getCustomParameters()));for(const[m,_]of Object.entries({}))c[m]=_}if(e instanceof Ya){const m=e.getScopes().filter(_=>_!=="");m.length>0&&(c.scopes=m.join(","))}t.tenantId&&(c.tid=t.tenantId);const u=c;for(const m of Object.keys(u))u[m]===void 0&&delete u[m];const f=await t._getAppCheckToken(),p=f?`#${YN}=${encodeURIComponent(f)}`:"";return`${JN(t)}?${qa(u).slice(1)}${p}`}function JN({config:t}){return t.emulator?lp(t,GN):`https://${t.authDomain}/${KN}`}/** 1369 * @license 1370 * Copyright 2020 Google LLC 1371 * 1372 * Licensed under the Apache License, Version 2.0 (the "License"); 1373 * you may not use this file except in compliance with the License. 1374 * You may obtain a copy of the License at 1375 * 1376 * http://www.apache.org/licenses/LICENSE-2.0 1377 * 1378 * Unless required by applicable law or agreed to in writing, software 1379 * distributed under the License is distributed on an "AS IS" BASIS, 1380 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1381 * See the License for the specific language governing permissions and 1382 * limitations under the License. 1383 */const Wu="webStorageSupport";class XN{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=G1,this._completeRedirectFn=wN,this._overrideRedirectResult=bN}async _openPopup(e,s,n,r){Zn(this.eventManagers[e._key()]?.manager,"_initialize() not called before _openPopup()");const o=await M_(e,s,n,jf(),r);return ZN(e,o,pp())}async _openRedirect(e,s,n,r){await this._originValidation(e);const o=await M_(e,s,n,jf(),r);return sN(o),new Promise(()=>{})}_initialize(e){const s=e._key();if(this.eventManagers[s]){const{manager:r,promise:o}=this.eventManagers[s];return r?Promise.resolve(r):(Zn(o,"If manager is not set, promise should be"),o)}const n=this.initAndGetManager(e);return this.eventManagers[s]={promise:n},n.catch(()=>{delete this.eventManagers[s]}),n}async initAndGetManager(e){const s=await UN(e),n=new EN(e);return s.register("authEvent",r=>(De(r?.authEvent,e,"invalid-auth-event"),{status:n.onEvent(r.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=s,n}_isIframeWebStorageSupported(e,s){this.iframes[e._key()].send(Wu,{type:Wu},r=>{const o=r?.[0]?.[Wu];o!==void 0&&s(!!o),xn(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const s=e._key();return this.originValidationPromises[s]||(this.originValidationPromises[s]=PN(e)),this.originValidationPromises[s]}get _shouldInitProactively(){return F1()||N1()||up()}}const QN=XN;var R_="@firebase/auth",B_="1.11.0";/** 1384 * @license 1385 * Copyright 2020 Google LLC 1386 * 1387 * Licensed under the Apache License, Version 2.0 (the "License"); 1388 * you may not use this file except in compliance with the License. 1389 * You may obtain a copy of the License at 1390 * 1391 * http://www.apache.org/licenses/LICENSE-2.0 1392 * 1393 * Unless required by applicable law or agreed to in writing, software 1394 * distributed under the License is distributed on an "AS IS" BASIS, 1395 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1396 * See the License for the specific language governing permissions and 1397 * limitations under the License. 1398 */class e${constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const s=this.auth.onIdTokenChanged(n=>{e(n?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,s),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const s=this.internalListeners.get(e);s&&(this.internalListeners.delete(e),s(),this.updateProactiveRefresh())}assertAuthConfigured(){De(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 1399 * @license 1400 * Copyright 2020 Google LLC 1401 * 1402 * Licensed under the Apache License, Version 2.0 (the "License");
1403 * you may not use this file except in compliance with the License. 1404 * You may obtain a copy of the License at 1405 * 1406 * http://www.apache.org/licenses/LICENSE-2.0 1407 * 1408 * Unless required by applicable law or agreed to in writing, software 1409 * distributed under the License is distributed on an "AS IS" BASIS, 1410 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1411 * See the License for the specific language governing permissions and 1412 * limitations under the License. 1413 */function t$(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function s$(t){Aa(new go("auth",(e,{options:s})=>{const n=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:c,authDomain:u}=n.options;De(c&&!c.includes(":"),"invalid-api-key",{appName:n.name});const f={apiKey:c,authDomain:u,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:U1(t)},p=new MO(n,r,o,f);return VO(p,s),p},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,s,n)=>{e.getProvider("auth-internal").initialize()})),Aa(new go("auth-internal",e=>{const s=Cd(e.getProvider("auth").getImmediate());return(n=>new e$(n))(s)},"PRIVATE").setInstantiationMode("EXPLICIT")),Yr(R_,B_,t$(t)),Yr(R_,B_,"esm2020")}/** 1414 * @license 1415 * Copyright 2021 Google LLC 1416 * 1417 * Licensed under the Apache License, Version 2.0 (the "License"); 1418 * you may not use this file except in compliance with the License. 1419 * You may obtain a copy of the License at 1420 * 1421 * http://www.apache.org/licenses/LICENSE-2.0 1422 * 1423 * Unless required by applicable law or agreed to in writing, software 1424 * distributed under the License is distributed on an "AS IS" BASIS, 1425 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1426 * See the License for the specific language governing permissions and 1427 * limitations under the License. 1428 */const n$=300,i$=g1("authIdTokenMaxAge")||n$;let F_=null;const r$=t=>async e=>{const s=e&&await e.getIdTokenResult(),n=s&&(new Date().getTime()-Date.parse(s.issuedAtTime))/1e3;if(n&&n>i$)return;const r=s?.token;F_!==r&&(F_=r,await fetch(t,{method:r?"POST":"DELETE",headers:r?{Authorization:`Bearer ${r}`}:{}}))};function iy(t=eO()){const e=y1(t,"auth");if(e.isInitialized())return e.getImmediate();const s=jO(t,{popupRedirectResolver:QN,persistence:[uN,QO,G1]}),n=g1("authTokenSyncURL");if(n&&typeof isSecureContext=="boolean"&&isSecureContext){const o=new URL(n,location.origin);if(location.origin===o.origin){const c=r$(o.toString());YO(s,c,()=>c(s.currentUser)),z1(s,u=>c(u))}}const r=MI("auth");return r&&HO(s,`http://${r}`),s}function o$(){return document.getElementsByTagName("head")?.[0]??document}RO({loadJS(t){return new Promise((e,s)=>{const n=document.createElement("script");n.setAttribute("src",t),n.onload=e,n.onerror=r=>{const o=en("internal-error");o.customData=r,s(o)},n.type="text/javascript",n.charset="UTF-8",o$().appendChild(n)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});s$("Browser");var a$="firebase",l$="12.2.1";/** 1429 * @license 1430 * Copyright 2020 Google LLC 1431 * 1432 * Licensed under the Apache License, Version 2.0 (the "License"); 1433 * you may not use this file except in compliance with the License. 1434 * You may obtain a copy of the License at 1435 * 1436 * http://www.apache.org/licenses/LICENSE-2.0 1437 * 1438 * Unless required by applicable law or agreed to in writing, software 1439 * distributed under the License is distributed on an "AS IS" BASIS, 1440 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1441 * See the License for the specific language governing permissions and 1442 * limitations under the License. 1443 */Yr(a$,l$,"app");const c$={apiKey:"AIzaSyCyDw4vfQM5pTfJnx_Dw-zaJvz2V6IudqE",authDomain:"butterfly-counts.firebaseapp.com",projectId:"butterfly-counts",storageBucket:"butterfly-counts.firebasestorage.app",messagingSenderId:"228815587191",a
1443ppId:"1:228815587191:web:8d2bc7c9b6682939430372",measurementId:"G-TSJ2ETNEZT"},d$=w1(c$),Ts=iy(d$),Ao=(t,e)=>{const s=t.__vccOpts||t;for(const[n,r]of e)s[n]=r;return s},u$={class:"flex items-center justify-center h-screen bg-gray-100"},f$={class:"bg-white p-8 rounded shadow-md w-96 text-center"},h$={key:0,class:"text-red-500 mt-4 text-sm"},p$={__name:"AdminLogin",setup(t){const e=ke(null),s=async()=>{e.value=null;const n=new hn;try{const c=await(await sy(Ts,n)).user.getIdToken();if(!(await axios.get("/api/is-admin",{headers:{Authorization:`Bearer ${c}`}})).data.is_admin){e.value="You are not authorized",await Ts.signOut();return}window.location.href="/admin/dashboard"}catch(r){e.value=r.message,console.error("Firebase Google login error:",r)}};return(n,r)=>(w(),k("div",u$,[l("div",f$,[r[1]||(r[1]=l("h1",{class:"text-2xl font-bold mb-6"},"Admin Login",-1)),l("button",{onClick:s,class:"w-full bg-red-600 hover:bg-red-700 text-white p-2 rounded transition-colors duration-200 flex items-center justify-center gap-2"},[...r[0]||(r[0]=[l("svg",{class:"w-5 h-5",viewBox:"0 0 48 48"},[l("path",{fill:"#fff",d:"M44.5 20H24v8.5h11.9C34.5 33 30.1 36 24 36c-7 0-12.7-5.7-12.7-12.7S17 10.7 24 10.7c3.1 0 5.9 1.2 8 3.2l6-6C34 4 29.3 2 24 2 12.3 2 3 11.3 3 23s9.3 21 21 21c12 0 21-9.3 21-21 0-1.4-.1-2.8-.5-4z"})],-1),Me(" Sign in with Google ",-1)])]),e.value?(w(),k("p",h$,v(e.value),1)):ae("",!0)])]))}},m$=Ao(p$,[["__scopeId","data-v-c43dc339"]]),U_=ke(null),ry=iy();z1(ry,async t=>{if(t){const e=await t.getIdToken();U_.value=e,console.log("Firebase ID token refreshed.")}else U_.value=null,console.log("Firebase ID token cleared.")});async function j_(){return new Promise(t=>{const e=ry.onIdTokenChanged(s=>{s?s.getIdToken().then(n=>{e(),t(n)}):(e(),t(null))})})}const Id=CI("api",()=>{const t=ke(!0);function e(){t.value=!t.value}function s(){t.value=!0}function n(_,y=null){if(!(y!==null?y:t.value)||!_||typeof _!="string"||_==="â"||_==="N/A")return _;const T=_.split("@");if(T.length!==2)return"â¢â¢â¢â¢â¢â¢â¢â¢";const[C,M]=T;return C.length<=2?`${C[0]}â¢â¢â¢â¢@${M}`:`${C[0]}â¢â¢â¢â¢${C[C.length-1]}@${M}`}function r(_,y=null){if(!(y!==null?y:t.value)||!_||typeof _!="string"||_==="â")return _;if(_.includes(".")){const T=_.split(".");return T.length===4?`${T[0]}.${T[1]}.â¢â¢â¢.â¢â¢â¢`:"â¢â¢â¢.â¢â¢â¢.â¢â¢â¢.â¢â¢â¢"}return _.includes(":")?`${_.split(":")[0]}:â¢â¢â¢â¢:â¢â¢â¢â¢:â¢â¢â¢â¢`:"â¢â¢â¢â¢â¢â¢â¢â¢"}function o(_,y=null){return!(y!==null?y:t.value)||!_||typeof _!="string"||_==="â"?_:_.length<=8?"â¢â¢â¢â¢â¢â¢â¢â¢":`${_.slice(0,4)}â¢â¢â¢â¢â¢â¢â¢â¢${_.slice(-4)}`}function c(_,y=null){const S=y!==null?y:t.value;if(!S||_==null)return _;if(typeof _=="string")return _.includes("@")&&_.includes(".")?n(_,S):_;if(Array.isArray(_))return _.map(T=>c(T,S));if(typeof _=="object"){const T={};for(const[C,M]of Object.entries(_)){const j=C.toLowerCase();["password","token","auth","authorization","secret","access_token","refresh_token","id_token","api_key"].some(D=>j.includes(D))?T[C]="â¢â¢â¢â¢â¢â¢â¢â¢":["email"].some(D=>j.includes(D))?T[C]=typeof M=="string"?n(M,S):"â¢â¢â¢â¢â¢â¢â¢â¢":["ip","ip_address"].some(D=>j===D)?T[C]=typeof M=="string"?r(M,S):"â¢â¢â¢â¢â¢â¢â¢â¢":["firebase_uid","uid"].some(D=>j===D)?T[C]=typeof M=="string"?o(M,S):"â¢â¢â¢â¢â¢â¢â¢â¢":T[C]=c(M,S)}return T}return _}const u=er({}),f=er({value:null,lastUpdated:null,isLoading:!1,error:null});async function p(_){if(u[_]||(u[_]={rows:[],total:0,lastUpdated:null,isLoading:!1,error:null}),u[_].isLoading)return;u[_].isLoading=!0,u[_].error=null;const y=await j_();if(!y){u[_].error="User is not authenticated.",u[_].isLoading=!1;return}try{const S=await tt.get(_,{headers:{Authorization:`Bearer ${y}`}});u[_].rows=Array.isArray(S.data)?S.data:S.data.data??[],u[_].total=S.data.total??u[_].rows.length,u[_].rows.length&&(u[_].lastUpdated=u[_].rows[0].created_at||new Date().toISOString())}catch(S){console.error(`Error fetching data for ${_}:`,S),u[_].error="Failed to fetch data. Please try again."}finally{u[_].isLoading=!1}}async function m(_="month"){if(f.isLoading)return;f.isLoading=!0,f.error=null;const y=await j_();if(!y){f.error="User is not authenticated.",f.isLoading=!1;return}const S=_.startsWith("/")?_:`/api/admin/stats?period=${_}`;try{const T=await tt.get(S,{headers:{Authorization:`Bearer ${y}`}});f.value=T.data,f.lastUpdated=new Date().toISOString()}catch(T){console.error("Error fetching admin stats:",T),f.error="Failed to fetch stats. Please try again."}finally{f.isLoading=!1}}return{data:u,stats:f,privacyMode:t,togglePrivacyMode:e,resetPrivacyMode:s,maskEmail
1443:n,maskIp:r,maskToken:o,maskJsonObject:c,fetchData:p,fetchStats:m}}),_$={class:"p-3 sm:p-5 bg-slate-800/70 rounded-xl sm:rounded-2xl shadow-xl border border-slate-700/60 text-slate-100 max-w-full overflow-hidden"},g$={class:"flex flex-col gap-3 mb-3"},v$={class:"flex flex-col sm:flex-row justify-between items-start sm:items-center gap-2"},b$={class:"flex items-center gap-2"},x$={class:"text-base sm:text-lg font-bold text-white"},y$={key:0,class:"text-[11px] font-semibold px-2 py-0.5 bg-slate-900/90 text-slate-300 border border-slate-700/80 rounded-full font-mono"},w$={class:"flex flex-wrap sm:flex-nowrap items-center gap-2 w-full sm:w-auto"},k$={class:"relative flex-1 sm:w-56 min-w-[140px]"},E$=["title"],T$={class:"text-[11px]"},S$={key:1,class:"text-[11px] text-indigo-400 font-medium animate-pulse flex-shrink-0"},C$={key:0,class:"flex items-center gap-1 bg-slate-900/90 p-1 rounded-lg border border-slate-700/80 overflow-x-auto whitespace-nowrap max-w-full scrollbar-none"},A$=["onClick"],P$={key:0,class:"bg-rose-500/10 border border-rose-500/30 text-rose-300 px-3 py-2 rounded-lg mb-3 text-xs flex items-center justify-between",role:"alert"},I$={key:1,class:"overflow-x-auto rounded-lg sm:rounded-xl border border-slate-700/60 w-full"},L$={class:"w-full text-xs text-left border-collapse"},O$={class:"bg-slate-900/90 text-slate-400 uppercase text-[10px] font-bold tracking-wider border-b border-slate-700/80"},N$=["onClick"],$$={class:"flex items-center gap-1"},D$={key:0,class:"text-indigo-400"},M$={class:"divide-y divide-slate-800"},R$=["onClick"],B$={key:0,class:"flex items-center gap-1"},F$={class:"font-mono text-xs font-semibold text-indigo-400"},U$={key:0,class:"px-1 py-0.2 text-[9px] font-bold rounded bg-rose-500/20 text-rose-300 border border-rose-500/40",title:"Soft Deleted"},j$={key:1,class:"flex flex-col"},V$={class:"font-semibold text-white truncate max-w-[140px] sm:max-w-none flex items-center gap-1"},H$={key:0,class:"text-[9px] font-bold px-1 bg-amber-500/20 text-amber-300 border border-amber-500/30 rounded",title:"Admin"},z$={class:"text-[11px] text-slate-400 font-mono truncate max-w-[140px] sm:max-w-none"},W$={key:2,class:"font-mono text-xs font-semibold text-emerald-400"},Z$={key:3,class:"font-mono text-xs font-semibold text-emerald-400"},q$={key:4,class:"font-mono text-xs font-semibold text-cyan-400"},K$={key:5,class:"text-[11px] font-mono text-slate-300 whitespace-nowrap"},G$={key:6,class:"text-[11px] text-slate-400 font-mono whitespace-nowrap"},Y$={key:7},J$={key:0,class:"flex flex-col gap-0.5"},X$={class:"font-mono text-xs font-semibold text-indigo-400 flex items-center gap-1"},Q$={key:0,class:"px-1 py-0.2 text-[9px] font-bold rounded bg-rose-500/20 text-rose-300 border border-rose-500/40"},eD={class:"flex flex-wrap gap-1"}
1443,tD={key:0,class:"px-1 py-0.2 text-[9px] font-bold rounded bg-purple-500/20 text-purple-300 border border-purple-500/40"},sD={key:1,class:"px-1 py-0.2 text-[9px] font-bold rounded bg-amber-500/20 text-amber-300 border border-amber-500/40"},nD={key:1,class:"flex flex-col"},iD={class:"font-semibold text-white truncate max-w-[120px] sm:max-w-none"},rD={key:0,class:"text-[11px] text-slate-400 font-mono truncate max-w-[120px] sm:max-w-none"},oD={key:2,class:"flex flex-col"},aD={class:"font-medium text-slate-200 truncate max-w-[110px] sm:max-w-none"},lD={class:"text-[11px] text-slate-400"},cD={key:3,class:"text-[11px] font-medium text-slate-300 font-mono whitespace-nowrap"},dD={key:4,class:"font-mono text-xs font-semibold text-emerald-400"},uD={key:5,class:"font-mono text-xs font-semibold text-cyan-400"},fD=["title"],hD={key:7,class:"text-[11px] text-slate-400 font-mono whitespace-nowrap"},pD={key:8},mD={key:0,class:"text-[11px] font-mono text-slate-400 whitespace-nowrap"},_D={key:1,class:"flex items-center gap-2 font-mono text-xs"},gD={key:0,class:"text-[9px] font-bold uppercase text-amber-400 bg-amber-500/10 px-1 rounded flex-shrink-0"},vD={class:"text-slate-200 truncate max-w-[160px] sm:max-w-none"},bD={key:2,class:"font-mono text-xs text-purple-300"},xD={key:4,class:"flex flex-col"},yD={class:"text-[11px] font-medium text-slate-200 truncate max-w-[120px] sm:max-w-none"},wD={class:"text-[10px] font-mono text-slate-500"},kD={key:5},ED={key:0,class:"text-[11px] text-slate-400 font-mono whitespace-nowrap"},TD={key:1,class:"truncate max-w-[120px] sm:max-w-xs block text-slate-200 text-xs"},SD={key:2,class:"text-center py-8 text-slate-400"},CD={key:0,class:"text-[11px] text-slate-500 mt-0.5"},AD={key:3,class:"flex flex-col sm:flex-row justify-between items-center gap-2 mt-3 pt-2 border-t border-slate-800 text-xs"},PD={class:"text-[11px] text-slate-400"},ID={class:"flex items-center gap-2"},LD={class:"flex items-center gap-1 ml-1"},OD=["disabled"],ND={class:"text-xs font-semibold px-1 text-slate-300 font-mono"},$D=["disabled"],DD={class:"bg-slate-900 border border-slate-700/80 rounded-xl sm:rounded-2xl shadow-2xl w-full max-w-5xl max-h-[92vh] flex flex-col overflow-hidden animate-fadeIn text-slate-100"},MD={class:"flex justify-between items-start border-b border-slate-800 px-4 py-3 sm:px-6 sm:py-4 bg-slate-900/90 gap-2"},RD={class:"flex items-center gap-1.5 flex-wrap"},BD={class:"text-sm sm:text-base font-bold text-white"},FD={key:0,class:"text-[11px] text-indigo-400 font-mono font-bold bg-indigo-500/10 px-1.5 py-0.5 rounded border border-indigo-500/20"},UD=["title"],jD={class:"text-xs"},VD={class:"font-mono uppercase tracking-wider text-[10px]"},HD={key:3,class:"text-[10px] font-bold px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/30"},zD={key:4,class:"text-[10px] font-bold px-1.5 py-0.5 rounded bg-emerald-500/20 text-emerald-300 border border-emerald-500/30 font-mono"},WD={key:5,class:"px-2 py-0.5 text-[10px] font-bold rounded-full bg-rose-500/20 text-rose-300 border border-rose-500/40"},ZD={key:6,class:"px-2 py-0.5 text-[10px] font-bold rounded-full bg-purple-500/20 text-purple-300 border border-purple-500/40"},qD={key:7,class:"px-2 py-0.5 text-[10px] font-bold rounded-full bg-amber-500/20 text-amber-300 border border-amber-500/40"},KD={key:0,class:"text-[11px] text-slate-400 mt-0.5"},GD={class:"text-white"},YD={key:0,class:"font-mono text-slate-400"},JD={key:1,class:"text-[11px] text-slate-400 mt-0.5"},XD={class:"font-mono text-white"},QD={key:2,class:"text-[11px] text-slate-400 mt-0.5"},eM={class:"text-white"},tM={key:0,class:"font-mono text-slate-400"},sM={key:0,class:"p-3 sm:p-6 overflow-y-auto space-y-3 sm:space-y-4 text-xs"},nM={key:0,class:"bg-rose-500/15 border border-rose-500/30 rounded-lg p-3 text-rose-200 text-xs flex items-start gap-2"},iM={class:"font-mono font-semibold"},rM={class:"grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-3"},oM={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-lg sm:rounded-xl border border-slate-700/60 text-center"},aM={class:"text-lg sm:text-xl font-extrabold text-emerald-400 font-mono"},lM={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},cM={class:"text-lg sm:text-xl font-extrabold text-cyan-400 font-mono"},dM={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},uM={class:"text-xs sm:text-sm font-bold text-indigo-300 font-mono mt-0.5 block"},fM={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},hM={class:"text-xs sm:text-sm font-bold text-purple-300 font-mono mt-0.5 block"},pM={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},mM={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},_M={class:"p-3 sm:p-4 space-y-1.5"},gM={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},vM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},bM={class:"text-xs font-bold text-white font-mono text-right break-words"},xM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},yM={class:"text-xs font-bold text-white font-mono text-right break-words"},wM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},kM={class:"text-xs font-bold text-white font-mono text-right break-words"},EM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},TM={class:"text-xs font-medium text-slate-200 text-right break-words"},SM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},CM={class:"text-xs font-medium text-slate-200 text-right break-words"},AM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},PM={class:"text-xs font-medium text-slate-200 text-right"},IM={key:0,class:"grid grid-cols-1 sm:grid-cols-4 items-start py-1.5 px-1 mt-1 border-t border-slate-800/60"},LM={class:"text-xs text-slate-200 italic whitespace-pre-wrap sm:col-span-3 mt-0.5 sm:mt-0"},OM={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},NM={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},$M={class:"p-3 sm:p-4 space-y-1.5"},DM={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},MM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},RM={class:"text-xs font-medium text-white text-right truncate"},BM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},FM={class:"text-xs font-medium text-white text-right"},UM={key:0,class:"text-[10px] font-mono text-indigo-400 ml-1"},jM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},VM={class:"text-xs font-medium text-slate-200 text-right truncate"},HM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},zM={class:"text-xs font-bold text-indigo-300 font-mono text-right truncate"},WM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},ZM={class:"text-xs font-mono text-slate-200 text-right truncate"},qM={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},KM={class:"text-xs font-mono text-slate-300 text-right truncate"},GM={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},YM={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},JM={class:"p-3 sm:p-4 space-y-1.5"},XM={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},QM={class:"grid grid-cols-1 sm:grid-cols-3 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0 md:col-span-2"},e8={class:"text-xs font-mono font-semibold text-purple-300 break-all sm:col-span-2 sm:text-right mt-0.5 sm:mt-0"},t8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},s8={class:"text-xs font-mono font-semibold text-purple-300 text-right"},n8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},i8={class:"text-xs font-mono text-slate-300 text-right"},r8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},o8={class:"text-xs font-mono text-slate-300 text-right"},a8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},l8={class:"text-xs font-mono text-indigo-400 text-right"},c8={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},d8={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},u8={class:"p-3 sm:p-4 space-y-1.5"},f8={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},h8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},p8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},m8={class:"text-xs font-mono font-medium text-slate-200 text-right"},_8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0 md:col-span-2"},g8={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},v8={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},b8={class:"p-3 sm:p-4 space-y-1.5"},x8={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},y8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},w8={class:"text-xs font-bold text-white text-right truncate"},k8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},E8={class:"text-xs font-semibold font-mono text-slate-200 text-right truncate"},T8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},S8={class:"text-xs font-mono font-bold text-indigo-400 text-right"},C8={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},A8={class:"text-xs font-mono text-slate-400 text-right"},P8={class:"grid grid-cols-1 sm:grid-cols-3 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0 md:col-span-2"},I8={class:"text-xs font-mono text-slate-300 break-all sm:col-span-2 sm:text-right mt-0.5 sm:mt-0"},L8={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden space-y-0"},O8={class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-emerald-400 flex items-center min-w-0 truncate"},N8={class:"text-[10px] font-mono px-1.5 py-0.2 bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 rounded-full font-bold ml-1.5 flex-shrink-0"},$8={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},D8={class:"p-3 sm:p-4"},M8={key:0,class:"overflow-x-auto rounded-lg border border-slate-700/60 w-full"},R8={class:"w-full text-xs text-left border-collapse"},B8={class:"divide-y divide-slate-800 bg-slate-900"},F8={class:"px-2.5 py-1.5 font-semibold text-white whitespace-nowrap"},U8={class:"px-2.5 py-1.5 italic text-slate-300 whitespace-nowrap"},j8={class:"px-2.5 py-1.5 text-center whitespace-nowrap"},V8={class:"px-1.5 py-0.2 rounded-full bg-cyan-500/10 text-cyan-300 border border-cyan-500/20 font-bold font-mono text-[11px]"},H8={class:"px-2.5 py-1.5 text-slate-300 whitespace-nowrap"},z8={class:"px-2.5 py-1.5 text-slate-400 italic text-[11px] truncate max-w-[120px]"},W8={key:1,class:"p-3 bg-slate-800/30 rounded-lg text-center text-slate-500 text-xs italic"},Z8={key:0,class:"bg-purple-950/20 border border-purple-500/30 rounded-lg overflow-hidden"},q8={class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-purple-300 flex items-center min-w-0 truncate"},K8={class:"text-[10px] font-mono px-1.5 py-0.2 bg-purple-500/20 text-purple-300 border border-purple-500/30 rounded-full font-bold ml-1.5 flex-shrink-0"},G8={class:"text-purple-300 text-xs font-mono flex-shrink-0 ml-2"},Y8={class:"p-3 sm:p-4 space-y-2"},J8={class:"flex items-center gap-1.5 flex-wrap"},X8={class:"px-1.5 py-0.2 text-[10px] font-bold font-mono rounded bg-purple-500/20 text-purple-300 border border-purple-500/30"},Q8={class:"font-bold text-white capitalize text-[11px]"},e6={class:"text-slate-400 text-[10px]"},t6={key:0,class:"text-slate-300 mt-0.5 text-[11px] italic"},s6={class:"text-right flex-shrink-0"},n6={class:"text-[10px] font-mono text-slate-400 block"},i6={class:"grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-3"},r6={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-lg sm:rounded-xl border border-slate-700/60 text-center"},o6={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},a6={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},l6={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},c6={class:"text-xs sm:text-sm font-bold text-purple-300 font-mono mt-0.5 block"},d6={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},u6={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},f6={class:"p-3 sm:p-4 space-y-1.5"},h6={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},p6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},m6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},_6={class:"text-xs font-bold text-white font-mono text-right break-all"},g6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},v6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},b6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},x6={class:"text-xs font-mono font-semibold text-purple-300 text-right"},y6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},w6={class:"text-xs font-mono text-slate-300 text-right"},k6={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},E6={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},T6={class:"p-3 sm:p-4 space-y-1.5"},S6={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},C6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},A6={class:"text-xs font-bold text-white text-right truncate"},P6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},I6={class:"text-xs font-mono font-bold text-indigo-400 text-right"},L6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},O6={class:"text-xs font-mono text-slate-200 text-right"},N6={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},$6={class:"text-xs font-mono text-slate-300 text-right truncate"},D6={class:"grid grid-cols-1 sm:grid-cols-3 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0 md:col-span-2"},M6={class:"text-xs font-mono text-slate-300 break-all sm:col-span-2 sm:text-right mt-0.5 sm:mt-0"},R6={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},B6={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},F6={class:"p-3 sm:p-4 space-y-3"},U6={key:0},j6={class:"bg-slate-950 text-purple-300 p-3 rounded-lg text-[11px] font-mono border border-slate-800 overflow-x-auto"},V6={key:0,class:"bg-slate-950 text-slate-200 p-3 rounded-lg text-[11px] font-mono border border-slate-800 overflow-x-auto"},H6={key:1,class:"text-slate-500 italic text-xs p-2 bg-slate-900/40 rounded border border-slate-800"},z6={class:"p-3 sm:p-4 space-y-2"},W6={class:"flex items-center justify-between gap-2 p-2 rounded bg-slate-900/90 border border-slate-800"},Z6={key:1,class:"text-slate-500 italic text-xs p-2 bg-slate-900/40 rounded border border-slate-800"},q6={class:"grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-3"},K6={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-lg sm:rounded-xl border border-slate-700/60 text-center"},G6={class:"text-lg sm:text-xl font-extrabol
1443d text-emerald-400 font-mono"},Y6={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},J6={class:"text-lg sm:text-xl font-extrabold text-cyan-400 font-mono"},X6={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},Q6={class:"text-xs sm:text-sm font-bold text-purple-300 font-mono mt-0.5 block truncate"},eR={class:"p-2.5 sm:p-3 bg-slate-800/80 rounded-xl border border-slate-700/60 text-center"},tR={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},sR={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},nR={class:"p-3 sm:p-4 space-y-1.5"},iR={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},rR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},oR={class:"text-xs font-bold text-white text-right truncate"},aR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},lR={class:"text-xs font-semibold font-mono text-slate-200 text-right truncate"},cR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},dR={class:"text-xs font-mono font-bold text-indigo-400 text-right"},uR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},fR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},hR={class:"text-xs font-mono text-slate-300 text-right"},pR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},mR={class:"grid grid-cols-1 sm:grid-cols-3 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0 md:col-span-2"},_R={class:"text-xs font-mono text-slate-300 break-all sm:col-span-2 sm:text-right mt-0.5 sm:mt-0"},gR={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},vR={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},bR={class:"p-3 sm:p-4 space-y-1.5"},xR={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},yR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},wR={class:"text-xs font-bold font-mono text-emerald-400 text-right"},kR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},ER={class:"text-xs font-bold font-mono text-indigo-300 text-right"},TR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},SR={class:"text-xs font-bold font-mono text-emerald-400 text-right"},CR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},AR={class:"text-xs font-bold font-mono text-cyan-400 text-right"},PR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},IR={class:"text-xs font-mono text-slate-300 text-right"},LR={class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},OR={class:"text-xs font-mono text-slate-300 text-right"},NR={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},$R={class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-emerald-400 flex items-center min-w-0 truncate"},DR={class:"text-[10px] font-mono px-1.5 py-0.2 bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 rounded-full font-bold ml-1.5 flex-shrink-0"},MR={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},RR={class:"p-3 sm:p-4"},BR={key:0,class:"overflow-x-auto rounded-lg border border-slate-700/60 w-full"},FR={class:"w-full text-xs text-left border-collapse"},UR={class:"divide-y divide-slate-800 bg-slate-900 text-[11px]"},jR={class:"px-2.5 py-1.5 font-mono font-bold text-indigo-400 whitespace-nowrap"},VR={class:"px-2.5 py-1.5 font-mono text-slate-300 whitespace-nowrap"},HR={class:"px-2.5 py-1.5 text-slate-200 whitespace-nowrap"},zR={class:"px-2.5 py-1.5 text-center font-mono font-bold text-emerald-400 whitespace-nowrap"},WR={class:"px-2.5 py-1.5 text-center text-xs whitespace-nowrap"},ZR={class:"px-2.5 py-1.5 font-mono text-slate-400 whitespace-nowrap"},qR={key:1,class:"p-3 bg-slate-800/30 rounded-lg text-center text-slate-500 text-xs italic"},KR={class:"bg-slate-800/40 rounded-lg border border-slate-700/60 overflow-hidden"},GR={class:"text-slate-400 text-xs font-mono flex-shrink-0 ml-2"},YR={class:"p-3 sm:p-4 space-y-1.5"},JR={class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},XR={class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},QR={class:"text-xs font-medium text-white text-right break-words"},e7=["onClick"],t7={class:"text-xs font-bold uppercase tracking-wider text-indigo-400 flex items-center gap-1.5"},s7={key:0,class:"text-[9px] font-normal px-1.5 py-0.2 bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 rounded-full"},n7={class:"text-slate-400 text-xs font-mono"},i7={class:"p-3 sm:p-4 space-y-1.5"},r7={key:0,class:"overflow-x-auto rounded border border-slate-700/60 w-full"},o7={class:"w-full text-xs text-left border-collapse"},a7={class:"bg-slate-800 text-slate-300 uppercase font-semibold text-[10px]"},l7={class:"divide-y divide-slate-800 bg-slate-900 text-[11px]"},c7={key:1,class:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-0.5"},d7={class:"font-semibold text-indigo-400 text-[10px] sm:text-[11px] uppercase tracking-wider"},u7={class:"text-white font-medium text-right break-words text-xs"},f7={key:2,class:"bg-slate-950 text-slate-200 p-3 rounded text-[11px] font-mono border border-slate-800 overflow-x-auto"},h7={__name:"DataTable",props:{title:String,apiUrl:String},setup(t){const e=t,s=Id(),n=ke(""),r=ke(null),o=ke("desc"),c=ke(1),u=ke(15),f=ke(!1),p=ke(null),m=ke({}),_=N=>{m.value[N]=!m.value[N]},y=N=>!!m.value[N],S=ke("all"),T=[{key:"all",label:"All Records"},{key:"active",label:"Active Only"},{key:"deleted",label:"Soft Deleted"},{key:"edited",label:"Edited"}],C=ke("all"),M=ke("all"),j=Se(()=>s.data[e.apiUrl]?.rows||[]);Se(()=>s.data[e.apiUrl]?.total??j.value.length);const D=Se(()=>e.apiUrl?.includes("/admin/users")||e.title?.toLowerCase().includes("user")?"users":e.apiUrl?.includes("/admin/counts")||e.title?.toLowerCase().includes("count")?"counts":e.apiUrl?.includes("/admin/logs")||e.title?.toLowerCase().includes("log")?"logs":"default"),P=N=>!!N?.deleted_at,$=N=>{if(!N)return!1;if(Array.isArray(N.revisions)&&N.revisions.length>0)return N.revisions.length>1||N.revisions.some(b=>Number(b.revision_number)>1);if(N.updated_at&&N.created_at){const b=new Date(N.updated_at).getTime(),O=new Date(N.created_at).getTime();return b-O>1e4}return!1},U=N=>{if(!N)return"2";if(Array.isArray(N.revisions)&&N.revisions.length>0){const b=Math.max(...N.revisions.map(O=>Number(O.revision_number)||0));return b>1?String(b):String(N.revisions.length)}return"2"},J=N=>D.value!=="counts"||N==="all"?j.value.length:N==="active"?j.value.filter(b=>!P(b)).length:N==="deleted"?j.value.filter(b=>P(b)).length:N==="edited"?j.value.filter(b=>$(b)).length:0,se=Se(()=>D.value==="users"?[{key:"id",label:"User ID"},{key:"user",label:"Name & Email"},{key:"counts_count",label:"Counts"},{key:"species_count",label:"Species"},{key:"individuals_count",label:"Individuals"},{key:"last_active",label:"Last Active"},{key:"created_at",label:"Date Joined"}]:D.value==="counts"?[{key:"id",label:"Count ID & Status"},{key:"observer",label:"Observer"},{key:"location",label:"District / State"},{key:"date",label:"Survey Date"},{key:"species_count",label:"Species"},{key:"individuals",label:"Individuals"},{key:"open_access",label:"Access"},{key:"created_at",label:"Submitted At"}]:D.value==="logs"?[{key:"created_at",label:"Time"},{key:"endpoint",label:"Endpoint"},{key:"app_version",label:"App Version"},{key:"response_time_ms",label:"Latency"},{key:"user",label:"User / IP"}]:j.value.length?Object.keys(j.value[0]).filter(N=>typeof j.value[0][N]!="object").slice(0,5).map(N=>({key:N,label:N.replace(/_/g," ")})):[]),W=Se(()=>{let N=[...j.value];if(D.value==="counts"&&S.value!=="all"&&(S.value==="active"?N=N.filter(b=>!P(b)):S.value==="deleted"?N=N.filter(b=>P(b)):S.value==="edited"&&(N=N.filter(b=>$(b)))),D.value==="logs"&&(C.value!=="all"&&(N=N.filter(b=>String(b.method).toUpperCase()===C.value.toUpperCase())),M.value!=="all"&&(M.value==="2xx"?N=N.filter(b=>Number(b.status_code)>=200&&Number(b.status_code)<300):M.value==="4xx"?N=N.filter(b=>Number(b.status_code)>=400&&Number(b.status_code)<500):M.value==="5xx"?N=N.filter(b=>Number(b.status_code)>=500):N=N.filter(b=>String(b.status_code)===String(M.value)))),n.value){const b=n.value.toLowerCase();N=N.filter(O=>Object.entries(O).some(([K,X])=>X==null?!1:typeof X=="object"?JSON.stringify(X).toLowerCase().includes(b):String(X).toLowerCase().includes(b)))}return r.value&&N.sort((b,O)=>{let K,X;if(r.value==="species_count")K=(b.observations||[]).length,X=(O.observations||[]).length;else if(r.value==="individuals")K=Ue(b),X=Ue(O);else if(r.value==="counts_count")K=Number(b.counts_count)||0,X=Number(O.counts_count)||0;else if(r.value==="species_count")K=Number(b.species_count)||0,X=Number(O.species_count)||0;else if(r.value==="individuals_count")K=Number(b.individuals_count??b.individuals)||0,X=Number(O.individuals_count??O.individuals)||0;else if(r.value==="last_active"){const re=Ce(b),oe=Ce(O);K=re?re.getTime():0,X=oe?oe.getTime():0}else r.value==="user"?(K=b.name||b.email||"",X=O.name||O.email||""):r.value==="location"?(K=b.district_name||"",X=O.district_name||""):r.value==="endpoint"?(K=b.route||"",X=O.route||""):(K=b[r.value],X=O[r.value]);return K==null?1:X==null?-1:typeof K=="string"&&typeof X=="string"?o.value==="asc"?K.localeCompare(X):X.localeCompare(K):o.value==="asc"?K-X:X-K}),N}),F=Se(()=>Math.ceil(W.value.length/u.value)||1),z=Se(()=>{const N=(c.value-1)*u.value;return W.value.slice(N,N+u.value)}),V=Se(()=>W.value.length?(c.value-1)*u.value+1:0),I=Se(()=>Math.min(c.value*u.value,W.value.length));ks([n,S,C,M],()=>{c.value=1}),ks(u,()=>{c.value=1});const Z=N=>{r.value===N?o.value=o.value==="asc"?"desc":"asc":(r.value=N,o.value="desc")},ee=ke(!0),me=()=>{ee.value=!ee.value},ne=N=>{ee.value=!0,p.value=N,f.value=!0},fe=()=>{f.value=!1,ee.value=!0},G=N=>{if(!N)return"â";
1443try{return new Date(N).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return String(N)}},_e=N=>{if(!N)return"â";try{return new Date(N).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}catch{return String(N)}},ve=N=>{if(!N)return"â";try{return new Date(N).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"})}catch{return String(N)}},$e=(N,b)=>{if(!N||!b)return"â";try{const O=new Date(N).getTime(),K=new Date(b).getTime();if(isNaN(O)||isNaN(K)||K<=O)return"â";const X=Math.round((K-O)/(1e3*60));if(X<60)return`${X} mins`;const re=Math.floor(X/60),oe=X%60;return oe>0?`${re}h ${oe}m`:`${re} hrs`}catch{return"â"}},Ue=N=>!N||!Array.isArray(N.observations)?0:N.observations.reduce((b,O)=>b+(Number(O.individuals)||1),0),rt=N=>{switch(String(N).toUpperCase()){case"GET":return"text-sky-400";case"POST":return"text-emerald-400";case"PUT":case"PATCH":return"text-amber-400";case"DELETE":return"text-rose-400";default:return"text-slate-400"}},We=N=>{const b=Number(N);return b>=200&&b<300?"text-emerald-400":b>=300&&b<400?"text-sky-400":b>=400&&b<500?"text-amber-400":b>=500?"text-rose-400":"text-slate-400"},Ee=N=>{if(N==null)return"â";switch(Number(N)){case 200:return"200 OK";case 201:return"201 Created";case 204:return"204 No Content";case 400:return"400 Bad Request";case 401:return"401 Unauthorized";case 403:return"403 Forbidden";case 404:return"404 Not Found";case 422:return"422 Unprocessable";case 429:return"429 Rate Limited";case 500:return"500 Server Error";case 502:return"502 Bad Gateway";case 503:return"503 Service Unavailable";default:return`${N}`}},Ce=N=>{if(!N)return null;const b=N.counts_max_created_at?new Date(N.counts_max_created_at).getTime():0,O=N.request_logs_max_created_at?new Date(N.request_logs_max_created_at).getTime():0,K=Math.max(b,O);return K>0?new Date(K):null},Ge=N=>{const b=Ce(N);return b?G(b):"Never"},nt=N=>{if(!N)return!1;const b=["[email protected]","[email protected]"],O=String(N).toLowerCase().trim();return b.includes(O)||O.endsWith("@butterflycounts.in")},Tt=N=>!N||!Array.isArray(N.counts)?0:N.counts.reduce((b,O)=>b+(Array.isArray(O.observations)?O.observations.length:0),0),_t=N=>{if(!N)return!1;const b=String(N).toLowerCase();return b.includes("login")||b.includes("signin")||b.includes("sign-in")||b.includes("auth")||b.includes("session")},Pt=N=>N&&typeof N=="object"&&!Array.isArray(N),St=N=>Array.isArray(N)&&N.length>0&&typeof N[0]=="object",R=N=>{if(!N)return{};const b={};for(const[O,K]of Object.entries(N))(K==null||typeof K!="object")&&(b[O]=K);return b},H=N=>{if(!N)return{};const b={};for(const[O,K]of Object.entries(N))K!=null&&typeof K=="object"&&(b[O]=K);return b};return yn(()=>{s.fetchData(e.apiUrl)}),(N,b)=>(w(),k("div",_$,[l("div",g$,[l("div",v$,[l("div",b$,[l("h2",x$,v(t.title),1),Ie(s).data[t.apiUrl]?.isLoading?ae("",!0):(w(),k("span",y$,v(W.value.length.toLocaleString()),1))]),l("div",w$,[D.value==="logs"?(w(),k(pe,{key:0},[Ke(l("select",{"onUpdate:modelValue":b[0]||(b[0]=O=>C.value=O),class:"text-xs border border-slate-700/80 rounded-lg px-2 py-1 bg-slate-900/90 text-slate-200 font-mono font-medium focus:outline-none focus:ring-1 focus:ring-indigo-500"},[...b[23]||(b[23]=[Ys('<option value="all" data-v-10514820>All Methods</option><option value="GET" data-v-10514820>GET</option><option value="POST" data-v-10514820>POST</option><option value="PUT" data-v-10514820>PUT</option><option value="PATCH" data-v-10514820>PATCH</option><option value="DELETE" data-v-10514820>DELETE</option>
1443',6)])],512),[[ia,C.value]]),Ke(l("select",{"onUpdate:modelValue":b[1]||(b[1]=O=>M.value=O),class:"text-xs border border-slate-700/80 rounded-lg px-2 py-1 bg-slate-900/90 text-slate-200 font-mono font-medium focus:outline-none focus:ring-1 focus:ring-indigo-500"},[...b[24]||(b[24]=[Ys('<option value="all" data-v-10514820>All Statuses</option><option value="2xx" data-v-10514820>2xx Success</option><option value="4xx" data-v-10514820>4xx Client Error</option><option value="5xx" data-v-10514820>5xx Server Error</option><option value="200" data-v-10514820>200 OK</option><option value="201" data-v-10514820>201 Created</option><option value="400" data-v-10514820>400 Bad Request</option><option value="401" data-v-10514820>401 Unauthorized</option><option value="403" data-v-10514820>403 Forbidden</option><option value="404" data-v-10514820>404 Not Found</option><option value="422" data-v-10514820>422 Unprocessable</option><option value="500" data-v-10514820>500 Server Error</option>',12)])],512),[[ia,M.value]])],64)):ae("",!0),l("div",k$,[Ke(l("input",{type:"text","onUpdate:modelValue":b[2]||(b[2]=O=>n.value=O),placeholder:"Search...",class:"w-full pl-8 pr-2.5 py-1 text-xs border border-slate-700/80 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 bg-slate-900/90 text-white placeholder-slate-500"},null,512),[[Nt,n.value]]),b[25]||(b[25]=l("span",{class:"absolute left-2.5 top-1.5 text-slate-400 text-[10px]"},"ð",-1))]),l("button",{onClick:b[3]||(b[3]=O=>Ie(s).togglePrivacyMode()),class:ce(["px-2 py-1 text-xs font-semibold rounded-lg border transition-colors flex items-center gap-1 select-none flex-shrink-0 cursor-pointer",Ie(s).privacyMode?"bg-emerald-500/10 text-emerald-300 border-emerald-500/30 hover:bg-emerald-500/20":"bg-amber-500/10 text-amber-300 border-amber-500/30 hover:bg-amber-500/20"]),title:Ie(s).privacyMode?"Privacy Mode is ON (Emails, IPs & tokens masked)":"Privacy Mode is OFF (Data exposed)"},[l("span",T$,v(Ie(s).privacyMode?"ð":"ð"),1)],10,E$),Ie(s).data[t.apiUrl]?.isLoading?(w(),k("span",S$," Loading... ")):ae("",!0)])]),D.value==="counts"?(w(),k("div",C$,[(w(),k(pe,null,Ne(T,O=>l("button",{key:O.key,onClick:K=>S.value=O.key,class:ce(["px-2.5 py-1 text-[11px] font-semibold rounded-md transition-all flex items-center gap-1 flex-shrink-0",S.value===O.key?"bg-indigo-600 text-white shadow-sm":"text-slate-400 hover:text-white hover:bg-slate-800"])},[l("span",null,v(O.label),1),l("span",{class:ce(["px-1.5 py-0.2 text-[9px] font-mono rounded-full",S.value===O.key?"bg-indigo-700 text-white":"bg-slate-800 text-slate-400"])},v(J(O.key)),3)],10,A$)),64))])):ae("",!0)]),Ie(s).data[t.apiUrl]?.error?(w(),k("div",P$,[l("span",null,v(Ie(s).data[t.apiUrl].error),1),l("button",{onClick:b[4]||(b[4]=O=>Ie(s).fetchData(t.apiUrl)),class:"text-[11px] font-bold underline hover:text-rose-200"},"Retry")])):ae("",!0),z.value.length?(w(),k("div",I$,[l("table",L$,[l("thead",O$,[l("tr",null,[(w(!0),k(pe,null,Ne(se.value,O=>(w(),k("th",{key:O.key,onClick:K=>Z(O.key),class:"px-2.5 py-2.5 sm:px-4 sm:py-3 cursor-pointer hover:bg-slate-800 transition-colors select-none whitespace-nowrap"},[l("div",$$,[l("span",null,v(O.label),1),r.value===O.key?(w(),k("span",D$,v(o.value==="asc"?"â²":"â¼"),1)):ae("",!0)])],8,N$))),128))])]),l("tbody",M$,[(w(!0),k(pe,null,Ne(z.value,(O,K)=>(w(),k("tr",{key:O.id||K,class:ce(["hover:bg-slate-700/40 transition-colors duration-150 cursor-pointer",{"bg-rose-950/20 hover:bg-rose-900/30":P(O)}]),onClick:X=>ne(O)},[(w(!0),k(pe,null,Ne(se.value,X=>(w(),k("td",{key:X.key,class:"px-2.5 py-2.5 sm:px-4 sm:py-3 text-slate-300"},[D.value==="users"?(w(),k(pe,{key:0},[X.key==="id"?(w(),k("div",B$,[l("span",F$,"#"+v(O.id),1),P(O)?(w(),k("span",U$," ðï¸ ")):ae("",!0)])):X.key==="user"?(w(),k("div",j$,[l("span",V$,[l("span",null,v(O.name||"Anonymous User"),1),nt(O.email)?(w(),k("span",H$,"ð")):ae("",!0)]),l("span",z$,v(Ie(s).maskEmail(O.email)),1)])):X.key==="counts_count"?(w(),k("span",W$,v(O.counts_count||0),1)):X.key==="species_count"?(w(),k("span",Z$,v(O.species_count||0),1)):X.key==="individuals_count"?(w(),k("span",q$,v(O.individuals_count!=null?O.individuals_count:O.individuals!=null?O.individuals:0),1)):X.key==="last_active"?(w(),k("span",K$,v(Ge(O)),1)):X.key==="created_at"?(w(),k("span",G$,v(G(O.created_at)),1)):(w(),k("span",Y$,v(O[X.key]??"â"),1))],64)):D.value==="counts"?(w(),k(pe,{key:1},[X.key==="id"?(w(),k("div",J$,[l("span",X$,[l("span",null,"#"+v(O.id),1),P(O)?(w(),k("span",Q$," ðï¸ Deleted ")):ae("",!0)]),l("div",eD,[$(O)?(w(),k("span",tD," âï¸ v"+v(U(O)),1)):ae("",!0),O.flag?(w(),k("span",sD," ð© Flagged ")):ae("",!0)])])):X.key==="observer"?(w(),k("div",nD,[l("span",iD,v(O.user_name||O.user?.name||"Anonymous"),1),O.user?.email?(w(),k("span",rD,v(Ie(s).maskEmail(O.user.email)),1)):ae("",!0)])):X.key==="location"?(w(),k("div",oD,[l("span",aD,v(O.district_name||"Unspecified"),1),l("span",lD,v(O.state_name||"India"),1)])):X.key==="date"?(w(),k("span",cD,v(_e(O.date)),1)):X.key==="species_count"?(w(),k("span",dD,v((O.observations||[]).length),1)):X.key==="individuals"?(w(),k("span",uD,v(Ue(O)),1
1443)):X.key==="open_access"?(w(),k("span",{key:6,class:"text-sm select-none",title:O.open_access?"Public":"Private"},v(O.open_access?"ð":"ð"),9,fD)):X.key==="created_at"?(w(),k("span",hD,v(G(O.created_at)),1)):(w(),k("span",pD,v(O[X.key]??"â"),1))],64)):D.value==="logs"?(w(),k(pe,{key:2},[X.key==="created_at"?(w(),k("span",mD,v(G(O.created_at)),1)):X.key==="endpoint"?(w(),k("div",_D,[l("span",{class:ce(["font-bold flex-shrink-0",rt(O.method)])},v(O.method),3),_t(O.route)?(w(),k("span",gD,"Auth")):ae("",!0),l("span",vD,v(O.route),1),l("span",{class:ce(["font-bold flex-shrink-0 ml-1 text-[11px]",We(O.status_code)])},v(O.status_code),3)])):X.key==="app_version"?(w(),k("span",bD,v(O.app_version?"v"+O.app_version:"â"),1)):X.key==="response_time_ms"?(w(),k("span",{key:3,class:ce(["text-[11px] font-mono font-medium",O.response_time_ms>1e3?"text-rose-400":"text-slate-300"])},v(O.response_time_ms!=null?O.response_time_ms+"ms":"â"),3)):X.key==="user"?(w(),k("div",xD,[l("span",yD,v(Ie(s).maskEmail(O.user?.email)||O.user?.name||(O.user_id?"User #"+O.user_id:"Guest User")),1),l("span",wD,v(Ie(s).maskIp(O.ip_address)),1)])):(w(),k("span",kD,v(O[X.key]??"â"),1))],64)):(w(),k(pe,{key:3},[X.key==="created_at"||X.key==="updated_at"?(w(),k("span",ED,v(G(O[X.key])),1)):(w(),k("span",TD,v(O[X.key]??"â"),1))],64))]))),128))],10,R$))),128))])])])):Ie(s).data[t.apiUrl]?.isLoading?ae("",!0):(w(),k("div",SD,[b[26]||(b[26]=l("p",{class:"text-sm font-medium"},"No matching records found",-1)),n.value||S.value!=="all"?(w(),k("p",CD,"Try clearing your filters or search query")):ae("",!0)])),W.value.length?(w(),k("div",AD,[l("div",PD," Showing "+v(V.value)+" to "+v(I.value)+" of "+v(W.value.length)+" entries ",1),l("div",ID,[b[28]||(b[28]=l("label",{class:"text-[11px] text-slate-400"},"Per page:",-1)),Ke(l("select",{"onUpdate:modelValue":b[5]||(b[5]=O=>u.value=O),class:"text-xs border border-slate-700 rounded-md px-1.5 py-0.5 bg-slate-900 text-slate-200 font-medium font-mono focus:outline-none"},[...b[27]||(b[27]=[l("option",{value:15},"15",-1),l("option",{value:25},"25",-1),l("option",{value:50},"50",-1),l("option",{value:100},"100",-1)])],512),[[ia,u.value]]),l("div",LD,[l("button",{onClick:b[6]||(b[6]=O=>c.value=Math.max(1,c.value-1)),disabled:c.value===1,class:"px-2 py-0.5 text-xs border border-slate-700 bg-slate-800 text-slate-300 rounded-md font-medium disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-700 transition"}," Prev ",8,OD),l("span",ND,v(c.value)+"/"+v(F.value),1),l("button",{onClick:b[7]||(b[7]=O=>c.value=Math.min(F.value,c.value+1)),disabled:c.value===F.value,class:"px-2 py-0.5 text-xs border border-slate-700 bg-slate-800 text-slate-300 rounded-md font-medium disabled:opacity-40 disabled:cursor-not-allowed hover:bg-slate-700 transition"}," Next ",8,$D)])])])):ae("",!0),lt(nx,{name:"fade"},{default:fd(()=>[f.value?(w(),k("div",{key:0,class:"fixed inset-0 bg-black/80 backdrop-blur-md flex items-center justify-center z-50 p-2 sm:p-4",onClick:hs(fe,["self"])},[l("div",DD,[l("div",MD,[l("div",null,[l("div",RD,[l("h3",BD,v(t.title)+" Inspection",1),p.value?.id?(w(),k("span",FD," #"+v(p.value.id),1)):ae("",!0),l("button",{onClick:me,class:ce(["px-2.5 py-1 text-[11px] font-bold rounded-full border transition-all flex items-center gap-1 cursor-pointer select-none shadow-sm",ee.value?"bg-emerald-500/20 text-emerald-300 border-emerald-500/30 hover:bg-emerald-500/30":"bg-gradient-to-r from-rose-600 to-red-600 text-white border-rose-400 hover:from-rose-500 hover:to-red-500 shadow-rose-600/30 animate-pulse"]),title:ee.value?"Modal is MASKED (Click to unmask sensitive PII)":"Modal is UNMASKED (Click to mask sensitive PII)"},[l("span",jD,v(ee.value?"ð":"ð"),1),l("span",VD,v(ee.value?"Masked":"UNMASKED â ï¸"),1)],10,UD),D.value==="logs"&&p.value?.method?(w(),k("span",{key:1,class:ce(["text-[11px] font-mono font-bold px-1.5 py-0.5",rt(p.value.method)])},v(p.value.method),3)):ae("",!0),D.value==="logs"&&p.value?.status_code?(w(),k("span",{key:2,class:ce(["text-[11px] font-mono font-bold px-1.5 py-0.5",We(p.value.status_code)])},v(Ee(p.value.status_code)),3)):ae("",!0),D.value==="users"&&nt(p.value?.email)?(w(),k("span",HD," ð Admin ")):ae("",!0),D.value==="users"&&p.value?.counts_count!=null?(w(),k("span",zD,v(p.value.counts_count)+" Counts ",1)):ae("",!0),P(p.value)?(w(),k("span",WD," ðï¸ Deleted ")):ae("",!0),$(p.value)?(w(),k("span",ZD," âï¸ v"+v(U(p.value)),1)):ae("",!0),p.value?.flag?(w(),k("span",qD," ð© Flagged ")):ae("",!0)]),D.value==="counts"?(w(),k("p",KD,[b[29]||(b[29]=Me(" By ",-1)),l("strong",GD,v(p.value.user_name||p.value.user?.name||"Anonymous"),1),p.value.user?.email?(w(),k("span",YD," ("+v(Ie(s).maskEmail(p.value.user.email,ee.value))+")",1)):ae("",!0),Me(" on "+v(G(p.value.created_at)),1)])):D.value==="logs"?(w(),k("p",JD,[l("strong",XD,v(p.value.route),1),Me(" â "+v(G(p.value.created_at)),1)])):D.value==="users"?(w(),k("p",QD,[l("strong",eM,v(p.value.name||"Anonymous User"),1),p.value.email?(w(),k("span",tM," ("+v(Ie(s).maskEmail(p.value.email,ee.value))+")",1)):ae("",!0),Me(" â Joined "+v(G(p.value.created_at)),1)])):ae("",!0)]),l("button",{onClick:fe,class:"w-7 h-7 flex items-center justify-center rounded-full text-slate-400 hover:text-white hover:bg-slate-800 transition text-sm flex-shrink-0"}," â ")]),p.value?(w(),k("div",sM,[P(p.value)?(w(),k("div",nM,[b[33]||(b[33]=l("span",{class:"text-base"},"â ï¸",-1)),l("div",null,[b[30]||(b[30]=l("strong",{class:"font-bold text-rose-100 block text-xs"},"Soft-Deleted Record",-1)),b[31]||(b[31]=Me(" Deleted at: ",-1)),l("span",iM,v(G(p.value.deleted_at)),1),b[32]||(b[32]=Me(". Retained in DB archive for auditing. ",-1))])])):ae("",!0),D.value==="counts"?(w(),k(pe,{key:1},[l("div",rM,[l("div",oM,[b[34]||(b[34]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Species",-1)),l("span",aM,v((p.value.observations||[]).length),1)]),l("div",lM,[b[35]||(b[35]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Individuals",-1)),l("span",cM,v(Ue(p.value)),1)]),l("div",dM,[b[36]||(b[36]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Duration",-1)),l("span",uM,v($e(p.value.start_time,p.value.end_time)),1)]),l("div",fM,[b[37]||(b[37]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Distance",-1)),l("span",hM,v(p.value.distance_covered?p.value.distance_covered+" km":"Point"),1)])]),l("div",pM,[l("button",{type:"button",onClick:b[8]||(b[8]=O=>_("form_details")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("form_details")}])},[b[38]||(b[38]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-indigo-400 min-w-0 truncate"}," Survey Details ",-1)),l("span",mM,v(y("form_details")?"âº":"â¼"),1)],2),Ke(l("div",_M,[l("div",gM,[l("div",vM,[b[39]||(b[39]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Survey Date",-1)),l("span",bM,v(_e(p.value.date)),1)]),l("div",xM,[b[40]||(b[40]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Start Time",-1)),l("span",yM,v(ve(p.value.start_time)),1)]),l("div",wM,[b[41]||(b[41]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"End Time",-1)),l("span",kM,v(ve(p.value.end_time)),1)]),l("div",EM,[b[42]||(b[42]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Weather",-1)),l("span",TM,v(p.value.weather||"Unspecified"),1)]),l("div",SM,[b[43]||(b[43]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Team / Group",-1)),l("span",CM,v(p.value.team||"Solo Observer"),1)]),l("div",AM,[b[44]||(b[44]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Access & Privacy",-1)),l("span",PM,v(p.value.open_access?"Public":"Private"),1)])]),p.value.notes?(w(),k("div",IM,[b[45]||
1443(b[45]=l("span",{class:"text-[10px] sm:text-[11px] font-bold text-slate-400 uppercase tracking-wider sm:col-span-1"},"Notes",-1)),l("p",LM,v(p.value.notes),1)])):ae("",!0)],512),[[Ft,!y("form_details")]])]),l("div",OM,[l("button",{type:"button",onClick:b[9]||(b[9]=O=>_("location_details")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("location_details")}])},[b[46]||(b[46]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-emerald-400 min-w-0 truncate"}," Location & Geospatial ",-1)),l("span",NM,v(y("location_details")?"âº":"â¼"),1)],2),Ke(l("div",$M,[l("div",DM,[l("div",MM,[b[47]||(b[47]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Place Name / Site",-1)),l("span",RM,v(p.value.place_name||"Unspecified Site"),1)]),l("div",BM,[b[48]||(b[48]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"District",-1)),l("span",FM,[Me(v(p.value.district_name||"Unassigned")+" ",1),p.value.district_id?(w(),k("span",UM,"(#"+v(p.value.district_id)+")",1)):ae("",!0)])]),l("div",jM,[b[49]||(b[49]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"State / Country",-1)),l("span",VM,v(p.value.state_name||"India")+", "+v(p.value.country_name||"India"),1)]),l("div",HM,[b[50]||(b[50]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Coordinates",-1)),l("span",zM,v(p.value.latitude)+", "+v(p.value.longitude),1)]),l("div",WM,[b[51]||(b[51]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Altitude / Accuracy",-1)),l("span",ZM," Alt: "+v(p.value.altitude!=null?p.value.altitude+"m":"â")+" | Acc: "+v(p.value.accuracy!=null?p.value.accuracy+"m":"â"),1)]),l("div",qM,[b[52]||(b[52]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Spatial Geometry",-1)),l("span",KM,v(p.value.location?JSON.stringify(p.value.location):`Point [${p.value.longitude}, ${p.value.latitude}]`),1)])])],512),[[Ft,!y("location_details")]])]),l("div",GM,[l("button",{type:"button",onClick:b[10]||(b[10]=O=>_("telemetry_details")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("telemetry_details")}])},[b[53]||(b[53]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-purple-400 min-w-0 truncate"}," Request & Telemetry ",-1)),l("span",YM,v(y("telemetry_details")?"âº":"â¼"),1)],2),Ke(l("div",JM,[l("div",XM,[l("div",QM,[b[54]||(b[54]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider sm:col-span-1"},"Client Submission ID",-1)),l("span",e8,v(p.value.client_submission_id||"â (Direct DB Record)"),1)]),l("div",t8,[b[55]||(b[55]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"App Schema / Version",-1)),l("span",s8,v(p.value.version||"v1.0"),1)]),l("div",n8,[b[56]||(b[56]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Submitted At",-1)),l("span",i8,v(G(p.value.created_at)),1)]),l("div",r8,[b[57]||(b[57]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Last Updated At",-1)),l("span",o8,v(G(p.value.updated_at)),1)]),l("div",a8,[b[58]||(b[58]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Active Revision ID",-1)),l("span",l8,v(p.value.active_revision_id?"#"+p.value.active_revision_id:"Original"),1)])])],512),[[Ft,!y("telemetry_details")]])]),l("div",c8,[l("button",{type:"button",onClick:b[11]||(b[11]=O=>_("integrity_details")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("integrity_details")}])},[b[59]||(b[59]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-cyan-400 min-w-0 truncate"}," Verification & Integrity ",-1)),l("span",d8,v(y("integrity_details")?"âº":"â¼"),1)],2),Ke(l("div",u8,[l("div",f8,[l("div",h8,[b[60]||(b[60]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"District Spatial Match",-1)),l("span",{class:ce(["text-xs font-medium text-right",p.value.district_id?"text-emerald-400":"text-amber-400"])},v(p.value.district_id?"PostGIS Match Confirmed":"Spatial Unmatched"),3)]),l("div",p8,[b[61]||(b[61]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Revision Audit Log",-1)),l("span",m8,v(p.value.revisions?.length||0)+" snapshots stored ",1)]),l("div",_8,[b[62]||(b[62]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Soft Delete Status",-1)),l("span",{class:ce(["text-xs font-medium text-right",p.value.deleted_at?"text-rose-400 font-bold":"text-emerald-400"])},v(p.value.deleted_at?`Soft-Deleted (${G(p.value.deleted_at)})`:"Active Record"),3)])])],512),[[Ft,!y("integrity_details")]])]),l("div",g8,[l("button",{type:"button",onClick:b[12]||(b[12]=O=>_("observer_details")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("observer_details")}])},[b[63]||(b[63]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-amber-400 min-w-0 truncate"}," Observer Profile ",-1)),l("span",v8,v(y("observer_details")?"âº":"â¼"),1)],2),Ke(l("div",b8,[l("div",x8,[l("div",y8,[b[64]||(b[64]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Observer Name",-1)),l("span",w8,v(p.value.user_name||p.value.user?.name||"Anonymous"),1)]),l("div",k8,[b[65]||(b[65]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Email Address",-1)),l("span",E8,v(Ie(s).maskEmail(p.value.user?.email,ee.value)||"N/A"),1)]),l("div",T8,[b[66]||(b[66]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"User DB ID",-1)),l("span",S8,"#"+v(p.value.user_id),1)]),l("div",C8,[b[67]||(b[67]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Joined Date",-1)),l("span",A8,v(G(p.value.user?.created_at)),1)]),l("div",P8,[b[68]||(b[68]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider sm:col-span-1"},"Firebase UID",-1)),l("span",I8,v(Ie(s).maskToken(p.value.user?.firebase_uid||p.value.user?.firebase_id,ee.value)||"â"),1)])])],512),[[Ft,!y("observer_details")]])]),l("div",L8,[l("button",{type:"button",onClick:b[13]||(b[13]=O=>_("observations")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("observations")}])},[l("h4",O8,[b[69]||(b[69]=Me(" Species Observations ",-1)),l("span",N8,v((p.value.observations||[]).length),1)]),l("span",$8,v(y("observations")?"âº":"â¼"),1)],2),Ke(l("div",D8,[(p.value.observations||[]).length?(w(),k("div",M8,[l("table",R8,[b[70]||(b[70]=l("thead",{class:"bg-slate-800 text-slate-300 uppercase font-semibold text-[10px]"},[l("tr",null,[l("th",{class:"px-2.5 py-1.5 border-b border-slate-700 whitespace-nowrap"},"Taxon Name"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700 whitespace-nowrap"},"Scientific"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700 text-center"},"Count"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700"},"Activity"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700"}
1443,"Notes")])],-1)),l("tbody",B8,[(w(!0),k(pe,null,Ne(p.value.observations,(O,K)=>(w(),k("tr",{key:O.id||K,class:"hover:bg-slate-800/50"},[l("td",F8,v(O.taxa_common_name||"Unspecified"),1),l("td",U8,v(O.taxa_scientific_name||"â"),1),l("td",j8,[l("span",V8,v(O.individuals||1),1)]),l("td",H8,v(O.activity||"â"),1),l("td",z8,v(O.notes||"â"),1)]))),128))])])])):(w(),k("div",W8," No observation items attached to this count record. "))],512),[[Ft,!y("observations")]])]),(p.value.revisions||[]).length?(w(),k("div",Z8,[l("button",{type:"button",onClick:b[14]||(b[14]=O=>_("revisions")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-purple-900/30 hover:bg-purple-900/40 transition text-left select-none border-b border-purple-500/30",{"border-b-0":y("revisions")}])},[l("h4",q8,[b[71]||(b[71]=Me(" Revisions & Audit ",-1)),l("span",K8,v(p.value.revisions.length),1)]),l("span",G8,v(y("revisions")?"âº":"â¼"),1)],2),Ke(l("div",Y8,[(w(!0),k(pe,null,Ne(p.value.revisions,O=>(w(),k("div",{key:O.id,class:"p-2.5 bg-slate-900/90 rounded border border-slate-700/80 text-xs flex flex-col sm:flex-row justify-between sm:items-center gap-1.5"},[l("div",null,[l("div",J8,[l("span",X8," v"+v(O.revision_number),1),l("span",Q8,v(O.action?.replace(/_/g," ")),1),l("span",e6,"by "+v(O.user?.name||Ie(s).maskEmail(O.user?.email,ee.value)||(O.user_id?"User #"+O.user_id:"Author")),1)]),O.change_summary?(w(),k("p",t6,' "'+v(O.change_summary)+'" ',1)):ae("",!0)]),l("div",s6,[l("span",n6,v(G(O.created_at)),1)])]))),128))],512),[[Ft,!y("revisions")]])])):ae("",!0)],64)):D.value==="logs"?(w(),k(pe,{key:2},[l("div",i6,[l("div",r6,[b[72]||(b[72]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Status",-1)),l("span",{class:ce(["text-sm sm:text-base font-bold font-mono block mt-0.5",We(p.value.status_code)])},v(Ee(p.value.status_code)),3)]),l("div",o6,[b[73]||(b[73]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Method",-1)),l("span",{class:ce(["text-sm sm:text-base font-bold font-mono block mt-0.5",rt(p.value.method)])},v(p.value.method),3)]),l("div",a6,[b[74]||(b[74]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Latency",-1)),l("span",{class:ce(["text-xs sm:text-sm font-bold font-mono mt-0.5 block",p.value.response_time_ms>1e3?"text-rose-400":"text-emerald-400"])},v(p.value.response_time_ms!=null?p.value.response_time_ms+" ms":"â"),3)]),l("div",l6,[b[75]||(b[75]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"App Version",-1)),l("span",c6,v(p.value.app_version?"v"+p.value.app_version:"â"),1)])]),l("div",d6,[l("button",{type:"button",onClick:b[15]||(b[15]=O=>_("log_http_details")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("log_http_details")}])},[b[76]||(b[76]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-indigo-400 min-w-0 truncate"}," Request Details ",-1)),l("span",u6,v(y("log_http_details")?"âº":"â¼"),1)],2),Ke(l("div",f6,[l("div",h6,[l("div",p6,[b[77]||(b[77]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Method",-1)),l("span",{class:ce(["text-xs font-bold font-mono text-right",rt(p.value.method)])},v(p.value.method),3)]),l("div",m6,[b[78]||(b[78]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Route Path",-1)),l("span",_6,v(p.value.route),1)]),l("div",g6,[b[79]||(b[79]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Status Code",-1)),l("span",{class:ce(["text-xs font-bold font-mono text-right",We(p.value.status_code)])},v(Ee(p.value.status_code)),3)]),l("div",v6,[b[80]||(b[80]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Response Latency",-1)),l("span",{class:ce(["text-xs font-mono font-semibold text-right",p.value.response_time_ms>1e3?"text-rose-400":"text-slate-200"])},v(p.value.response_time_ms!=null?p.value.response_time_ms+" ms":"â"),3)]),l("div",b6,[b[8
14431]||(b[81]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"App Version",-1)),l("span",x6,v(p.value.app_version?"v"+p.value.app_version:"â"),1)]),l("div",y6,[b[82]||(b[82]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Timestamp",-1)),l("span",w6,v(G(p.value.created_at)),1)])])],512),[[Ft,!y("log_http_details")]])]),l("div",k6,[l("button",{type:"button",onClick:b[16]||(b[16]=O=>_("log_client_context")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("log_client_context")}])},[b[83]||(b[83]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-cyan-400 min-w-0 truncate"}," Client Context ",-1)),l("span",E6,v(y("log_client_context")?"âº":"â¼"),1)],2),Ke(l("div",T6,[l("div",S6,[l("div",C6,[b[84]||(b[84]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"User Account",-1)),l("span",A6,v(p.value.user?.name||Ie(s).maskEmail(p.value.user?.email,ee.value)||(p.value.user_id?"User #"+p.value.user_id:"Guest User")),1)]),l("div",P6,[b[85]||(b[85]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"User DB ID",-1)),l("span",I6,v(p.value.user_id?"#"+p.value.user_id:"â"),1)]),l("div",L6,[b[86]||(b[86]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"IP Address",-1)),l("span",O6,v(Ie(s).maskIp(p.value.ip_address,ee.value)||"â"),1)]),l("div",N6,[b[87]||(b[87]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Firebase UID",-1)),l("span",$6,v(Ie(s).maskToken(p.value.firebase_uid||p.value.user?.firebase_uid,ee.value)||"â"),1)]),l("div",D6,[b[88]||(b[88]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider sm:col-span-1"},"User Agent",-1)),l("span",M6,v(p.value.user_agent||"â"),1)])])],512),[[Ft,!y("log_client_context")]])]),l("div",R6,[l("button",{type:"button",onClick:b[17]||(b[17]=O=>_("log_payload")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("log_payload")}])},[b[89]||(b[89]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-purple-400 min-w-0 truncate"}," Request Payload & Query ",-1)),l("span",B6,v(y("log_payload")?"âº":"â¼"),1)],2),Ke(l("div",F6,[p.value.query_params&&Object.keys(p.value.query_params).length?(w(),k("div",U6,[b[90]||(b[90]=l("span",{class:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-1"},"Query Parameters",-1)),l("pre",j6,v(JSON.stringify(Ie(s).maskJsonObject(p.value.query_params,ee.value),null,2)),1)])):ae("",!0),l("div",null,[b[91]||(b[91]=l("span",{class:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-1"},"Request Body",-1)),p.value.request_body?(w(),k("pre",V6,v(JSON.stringify(Ie(s).maskJsonObject(p.value.request_body,ee.value),null,2)),1)):(w(),k("p",H6,"No request body attached (GET request or empty body)."))])],512),[[Ft,!y("log_payload")]])]),l("div",{class:ce(["rounded-lg border overflow-hidden",Number(p.value.status_code)>=400?"bg-rose-950/20 border-rose-500/40":"bg-slate-800/40 border-slate-700/60"])},[l("button",{type:"button",onClick:b[18]||(b[18]=O=>_("log_diagnostics")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between transition text-left select-none border-b",[Number(p.value.status_code)>=400?"bg-rose-900/30 hover:bg-rose-900/40 border-rose-500/30":"bg-slate-800/70 hover:bg-slate-800 border-slate-700/60",{"border-b-0":y("log_diagnostics")}]])},[l("h4",{class:ce(["text-[11px] sm:text-xs font-bold uppercase tracking-wide min-w-0 truncate",We(p.value.status_code)])}," Response & Error Diagnostics ",2),l("span",{class:ce(["text-xs font-mono flex-shrink-0 ml-2",We(p.value.status_code)])},v(y("log_diagnostics")?"âº":"â¼"),3)],2),Ke(l("div",z6,[l("div",W6,[b[92]||(b[92]=l("span",{class:"text-[10px] font-semibold text-slate-400 uppercase tracking-wider"},"Status Response",-1)),l("span",{class:ce(["text-xs font-mono font-bold",We(p.value.status_code)])},v(Ee(p.value.status_code)),3)]),l("div",null,[b[93]||(b[93]=l("span",{class:"text-[10px] font-bold text-slate-400 uppercase tracking-wider block mb-1"},"Response Body / Payload",-1)),p.value.response_body?(w(),k("pre",{key:0,class:ce(["bg-slate-950 p-3 rounded-lg text-[11px] font-mono border overflow-x-auto",Number(p.value.status_code)>=400?"text-rose-300 border-rose-900/60":"text-emerald-300 border-slate-800"])},v(JSON.stringify(Ie(s).maskJsonObject(p.value.response_body,ee.value),null,2)),3)):(w(),k("p",Z6,"No response body captured for this request."))])],512),[[Ft,!y("log_diagnostics")]])],2)],64)):D.value==="users"?(w(),k(pe,{key:3},[l("div",q6,[l("div",K6,[b[94]||(b[94]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Total Counts",-1)),l("span",G6,v(p.value.counts_count||0),1)]),l("div",Y6,[b[95]||(b[95]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Total Observations",-1)),l("span",J6,v(Tt(p.value)),1)]),l("div",X6,[b[96]||(b[96]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Last Active",-1)),l("span",Q6,v(Ge(p.value)),1)]),l("div",eR,[b[97]||(b[97]=l("span",{class:"text-[9px] sm:text-[10px] font-bold text-slate-400 uppercase tracking-wider block"},"Status",-1)),l("span",{class:ce(["text-xs sm:text-sm font-bold font-mono mt-0.5 block",P(p.value)?"text-rose-400":"text-emerald-400"])},v(P(p.value)?"Soft Deleted":"Active User"),3)])]),l("div",tR,[l("button",{type:"button",onClick:b[19]||(b[19]=O=>_("user_account_details")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("user_account_details")}])},[b[98]||(b[98]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-indigo-400 min-w-0 truncate"}," Account & Identity ",-1)),l("span",sR,v(y("user_account_details")?"âº":"â¼"),1)],2),Ke(l("div",nR,[l("div",iR,[l("div",rR,[b[99]||(b[99]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Full Name",-1)),l("span",oR,v(p.value.name||"Anonymous User"),1)]),l("div",aR,[b[100]||(b[100]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Email Address",-1)),l("span",lR,v(Ie(s).maskEmail(p.value.email,ee.value)||"N/A"),1)]),l("div",cR,[b[101]||(b[101]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"User DB ID",-1)),l("span",dR,"#"+v(p.value.id),1)]),l("div",uR,[b[102]||(b[102]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Account Role",-1)),l("span",{class:ce(["text-xs font-semibold text-right",nt(p.value.email)?"text-amber-400 font-bold":"text-slate-300"])},v(nt(p.value.email)?"Administrator":"Standard Observer"),3)]),l("div",fR,[b[103]||(b[103]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Date Joined",-1)),l("span",hR,v(G(p.value.created_at)),1)]),l("div",pR,[b[104]||(b[104]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Status",-1)),l("span",{class:ce(["text-xs font-semibold text-right",P(p.value)?"text-rose-400 font-bold":"text-emerald-400"])},v(P(p.value)?`Soft-Deleted (${G(p.value.deleted_at)})`:"Active"),3)]),l("div",mR,[b[105]||(b[105]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider sm:col-span-1"},"Firebase UID",-1)),l("span",_R,v(Ie(s).maskToken(p.value.firebase_uid,ee.value)||"â"),1)])])],512),[[Ft,!y("user_account_details")]])]),l("div",gR,[l("button",{type:"button",onClick:b[20]||(b[20]=O=>_("user_activity_details")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("user_activity_details")}])},[b[106]||(b[106]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-cyan-400 min-w-0 truncate"}," Activity & Engagement ",-1)),l("span",vR,v(y("user_activity_details")?"âº":"â¼"),1)],2),Ke(l("div",bR,[l("div",xR,[l("div",yR,[b[107]||(b[107]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Count Submissions",-1)),l("span",wR,v(p.value.counts_count||0)+" submissions",1)]),l("div",kR,[b[108]||(b[108]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"API Requests Logged",-1)),l("span",ER,v(p.value.request_logs_count||0)+" requests",1)]),l("div",TR,[b[109]||(b[109]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Distinct Species",-1)),l("span",SR,v(p.value.species_count||0)+" species",1)]),l("div",CR,[b[110]||(b[110]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Total Individuals",-1)),l("span",AR,v(p.value.individuals_count??p.value.individuals??Tt(p.value))+" individuals",1)]),l("div",PR,[b[111]||(b[111]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"}
1443,"Last Count Submitted",-1)),l("span",IR,v(G(p.value.counts_max_created_at)),1)]),l("div",LR,[b[112]||(b[112]=l("span",{class:"text-[10px] sm:text-[11px] font-semibold text-slate-400 uppercase tracking-wider"},"Last API Request",-1)),l("span",OR,v(G(p.value.request_logs_max_created_at)),1)])])],512),[[Ft,!y("user_activity_details")]])]),l("div",NR,[l("button",{type:"button",onClick:b[21]||(b[21]=O=>_("user_counts")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("user_counts")}])},[l("h4",$R,[b[113]||(b[113]=Me(" Recent Count Submissions ",-1)),l("span",DR,v((p.value.counts||[]).length),1)]),l("span",MR,v(y("user_counts")?"âº":"â¼"),1)],2),Ke(l("div",RR,[(p.value.counts||[]).length?(w(),k("div",BR,[l("table",FR,[b[114]||(b[114]=l("thead",{class:"bg-slate-800 text-slate-300 uppercase font-semibold text-[10px]"},[l("tr",null,[l("th",{class:"px-2.5 py-1.5 border-b border-slate-700 whitespace-nowrap"},"ID"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700 whitespace-nowrap"},"Survey Date"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700 whitespace-nowrap"},"District / State"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700 text-center"},"Species"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700 text-center"},"Access"),l("th",{class:"px-2.5 py-1.5 border-b border-slate-700"},"Submitted At")])],-1)),l("tbody",UR,[(w(!0),k(pe,null,Ne(p.value.counts,O=>(w(),k("tr",{key:O.id,class:"hover:bg-slate-800/50"},[l("td",jR,"#"+v(O.id),1),l("td",VR,v(_e(O.date)),1),l("td",HR,v(O.district_name||"Unassigned"),1),l("td",zR,v((O.observations||[]).length),1),l("td",WR,v(O.open_access?"Public":"Private"),1),l("td",ZR,v(G(O.created_at)),1)]))),128))])])])):(w(),k("div",qR," No counts submitted by this user yet. "))],512),[[Ft,!y("user_counts")]])])],64)):(w(),k(pe,{key:4},[l("div",KR,[l("button",{type:"button",onClick:b[22]||(b[22]=O=>_("record_attributes")),class:ce(["w-full px-3 py-1.5 sm:py-2 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("record_attributes")}])},[b[115]||(b[115]=l("h4",{class:"text-[11px] sm:text-xs font-bold uppercase tracking-wide text-slate-300 min-w-0 truncate"}," Record Attributes ",-1)),l("span",GR,v(y("record_attributes")?"âº":"â¼"),1)],2),Ke(l("div",YR,[l("div",JR,[(w(!0),k(pe,null,Ne(R(p.value),(O,K)=>(w(),k("div",{key:K,class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},[l("span",XR,v(K.replace(/_/g," ")),1),l("span",QR,v(O??"â"),1)]))),128))])],512),[[Ft,!y("record_attributes")]])]),(w(!0),k(pe,null,Ne(H(p.value),(O,K)=>(w(),k("div",{key:K,class:"bg-slate-800/40 rounded-lg sm:rounded-xl border border-slate-700/60 overflow-hidden"},[l("button",{type:"button",onClick:X=>_("complex_"+K),class:ce(["w-full px-3 py-2.5 sm:px-4 sm:py-3 flex items-center justify-between bg-slate-800/70 hover:bg-slate-800 transition text-left select-none border-b border-slate-700/60",{"border-b-0":y("complex_"+K)}])},[l("h4",t7,[l("span",null,v(K.replace(/_/g," ")),1),Array.isArray(O)?(w(),k("span",s7,v(O.length),1)):ae("",!0)]),l("span",n7,v(y("complex_"+K)?"âº":"â¼"),1)],10,e7),Ke(l("div",i7,[St(O)?(w(),k("div",r7,[l("table",o7,[l("thead",a7,[l("tr",null,[(w(!0),k(pe,null,Ne(Object.keys(O[0]),X=>(w(),k("th",{key:X,class:"px-2.5 py-1.5 border-b border-slate-700 whitespace-nowrap"},v(X.replace(/_/g," ")),1))),128))])]),l("tbody",l7,[(w(!0),k(pe,null,Ne(O,(X,re)=>(w(),k("tr",{key:re,class:"hover:bg-slate-800/50"},[(w(!0),k(pe,null,Ne(X,(oe,ie)=>(w(),k("td",{key:ie,class:"px-2.5 py-1.5 text-slate-300 whitespace-nowrap"},v(Pt(oe)?JSON.stringify(oe):oe??"â"),1))),128))]))),128))])])])):Pt(O)?(w(),k("div",c7,[(w(!0),k(pe,null,Ne(O,(X,re)=>(w(),k("div",{key:re,class:"grid grid-cols-2 items-center py-1 sm:py-1.5 px-1 border-b border-slate-800/40 last:border-b-0"},[l("span",d7,v(re.replace(/_/g," ")),1),l("span",u7,v(Pt(X)?JSON.stringify(X):X??"â"),1)]))),128))])):(w(),k("div",f7,[l("pre",null,v(JSON.stringify(O,null,2)),1)]))],512),[[Ft,!y("complex_"+K)]])]))),128))],64))])):ae("",!0)])])):ae("",!0)]),_:1})]))}},Zu=Ao(h7,[["__scopeId","data-v-10514820"]]),p7={class:"w-full bg-slate-800/70 border border-slate-700/60 rounded-xl sm:rounded-2xl p-3 sm:p-5 shadow-xl overflow-hidden"},m7={class:"mb-2 flex items-baseline justify-between"},_7={class:"text-sm sm:text-base font-bold text-white"},g7={class:"text-[11px] text-slate-400 font-medium"}
1443,v7={key:0,class:"flex h-[180px] items-center justify-center text-sm text-slate-400"},b7=["viewBox"],x7=["x1","x2","y1","y2"],y7=["x","y"],w7=["d","fill"],k7=["d","stroke"],E7=["cx","cy","fill"],T7=["x","y"],S7=["x","y"],C7=["x","y"],A7={key:0},P7=["x1","x2","y1","y2"],I7=["cx","cy","fill"],L7=["x","y"],O7={class:"rounded-xl border border-slate-700 bg-slate-900/95 px-3 py-2 text-xs shadow-2xl backdrop-blur whitespace-nowrap"},N7={class:"font-bold text-white font-mono text-sm"},$7={class:"text-slate-400 text-[11px] mt-0.5"},Nr=640,$i=200,V_={__name:"LineChart",props:{title:{type:String,default:""},subtitle:{type:String,default:""},data:{type:Array,default:()=>[]},color:{type:String,default:"#38bdf8"}},setup(t){const e=t,s=Se(()=>e.color==="#eb6834"?"#fb923c":e.color==="#2a78d6"?"#38bdf8":e.color||"#38bdf8"),n={top:24,right:12,bottom:20,left:34},r=Nr-n.left-n.right,o=$i-n.top-n.bottom,c=Se(()=>e.data.length>0),u=Se(()=>{const D=Math.max(0,...e.data.map(P=>P.total));return D===0?1:D}),f=Se(()=>{const D=e.data.length;return e.data.map((P,$)=>({x:n.left+(D===1?r/2:$/(D-1)*r),y:n.top+o-P.total/u.value*o,value:P.total,day:P.day}))}),p=Se(()=>f.value.map((D,P)=>`${P===0?"M":"L"}${D.x.toFixed(1)},${D.y.toFixed(1)}`).join(" ")),m=Se(()=>{if(!f.value.length)return"";const D=$i-n.bottom,P=f.value[0],$=f.value[f.value.length-1];return`${p.value} L${$.x.toFixed(1)},${D} L${P.x.toFixed(1)},${D} Z`}),_=Se(()=>[0,.5,1].map(P=>({y:n.top+o-P*o,label:Math.round(u.value*P).toLocaleString()}))),y=Se(()=>T(e.data[0]?.day)),S=Se(()=>T(e.data[e.data.length-1]?.day));function T(D){if(!D)return"";if(typeof D!="string")return String(D);if(D.includes(":")||D.length<=8&&!D.includes("-"))return D;const P=D.split("-");if(P.length===2){const U=new Date(parseInt(P[0]),parseInt(P[1])-1,1);return isNaN(U.getTime())?D:U.toLocaleDateString(void 0,{month:"short",year:"numeric"})}const $=new Date(D+"T00:00:00");return isNaN($.getTime())?D:$.toLocaleDateString(void 0,{month:"short",day:"numeric"})}const C=ke(null);function M(D){const $=D.currentTarget.getBoundingClientRect(),U=Nr/$.width,J=(D.clientX-$.left)*U;let se=0,W=1/0;f.value.forEach((F,z)=>{const V=Math.abs(F.x-J);V<W&&(W=V,se=z)}),C.value=se}const j=Se(()=>{if(C.value===null)return{};const P=f.value[C.value].x/Nr*100;return{position:"absolute",top:"-196px",left:`${P}%`,transform:`translateX(${P>80?"-100%":P<10?"0%":"-50%"})`}});return(D,P)=>(w(),k("div",p7,[l("div",m7,[l("h3",_7,v(t.title),1),l("p",g7,v(t.subtitle),1)]),c.value?(w(),k("svg",{key:1,viewBox:`0 0 ${Nr} ${$i}`,class:"w-full select-none",style:Ut({height:`${$i}px`}),onMousemove:M,onMouseleave:P[0]||(P[0]=$=>C.value=null)},[(w(!0),k(pe,null,Ne(_.value,($,U)=>(w(),k("line",{key:"g"+U,x1:n.left,x2:Nr-n.right,y1:$.y,y2:$.y,stroke:"#334155","stroke-width":"1","stroke-dasharray":"3 3"}
1443,null,8,x7))),128)),(w(!0),k(pe,null,Ne(_.value,($,U)=>(w(),k("text",{key:"gt"+U,x:n.left-8,y:$.y+3,"text-anchor":"end","font-size":"10","font-family":"monospace",fill:"#94a3b8"},v($.label),9,y7))),128)),l("path",{d:m.value,fill:s.value,"fill-opacity":"0.18",stroke:"none"},null,8,w7),l("path",{d:p.value,fill:"none",stroke:s.value,"stroke-width":"2.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,k7),l("circle",{cx:f.value[f.value.length-1].x,cy:f.value[f.value.length-1].y,r:"5",fill:s.value,stroke:"#0f172a","stroke-width":"2"},null,8,E7),l("text",{x:f.value[f.value.length-1].x,y:f.value[f.value.length-1].y-10,"text-anchor":"end","font-size":"11","font-weight":"700","font-family":"monospace",fill:"#f8fafc"},v(f.value[f.value.length-1].value.toLocaleString()),9,T7),l("text",{x:n.left,y:$i-4,"font-size":"10","font-family":"monospace",fill:"#94a3b8"},v(y.value),9,S7),l("text",{x:Nr-n.right,y:$i-4,"text-anchor":"end","font-size":"10","font-family":"monospace",fill:"#94a3b8"},v(S.value),9,C7),C.value!==null?(w(),k("g",A7,[l("line",{x1:f.value[C.value].x,x2:f.value[C.value].x,y1:n.top,y2:$i-n.bottom,stroke:"#64748b","stroke-width":"1","stroke-dasharray":"2 2"},null,8,P7),l("circle",{cx:f.value[C.value].x,cy:f.value[C.value].y,r:"6",fill:s.value,stroke:"#0f172a","stroke-width":"2"},null,8,I7)])):ae("",!0),l("rect",{x:n.left,y:n.top,width:r,height:o,fill:"transparent"},null,8,L7)],44,b7)):(w(),k("div",v7," No data available for this period. ")),C.value!==null?(w(),k("div",{key:2,class:"pointer-events-none relative",style:Ut(j.value)},[l("div",O7,[l("p",N7,v(f.value[C.value].value.toLocaleString()),1),l("p",$7,v(f.value[C.value].day),1)])],4)):ae("",!0)]))}},D7={class:"w-full bg-slate-800/70 border border-slate-700/60 rounded-xl sm:rounded-2xl p-3 sm:p-4 shadow-xl overflow-hidden"},M7={class:"mb-2 flex items-baseline justify-between border-b border-slate-700/50 pb-1.5"},R7={class:"text-xs sm:text-sm font-bold text-white min-w-0 truncate"},B7={class:"text-[10px] sm:text-[11px] text-slate-400 font-mono shrink-0 ml-2"},F7={key:0,class:"flex h-[120px] items-center justify-center text-xs text-slate-400 italic"},U7={key:1,class:"space-y-1.5 mt-2"},j7=["title"],V7={class:"relative h-3.5 flex-1 rounded-full bg-slate-950 overflow-hidden border border-slate-800"},H7={class:"w-12 shrink-0 text-right text-xs font-mono font-bold text-slate-200"},H_={__name:"BarChart",props:{title:{type:String,default:""},subtitle:{type:String,default:""},items:{type:Array,default:()=>[]},color:{type:String,default:"#38bdf8"}},setup(t){const e=t,s=Se(()=>e.color==="#2a78d6"?"#38bdf8":e.color||"#38bdf8"),n=Se(()=>Math.max(1,...e.items.map(o=>o.value)));function r(o){return`${Math.max(4,o/n.value*100)}%`}return(o,c)=>(w(),k("div",D7,[l("div",M7,[l("h3",R7,v(t.title),1),l("p",B7,v(t.subtitle),1)]),t.items.length?(w(),k("div",U7,[(w(!0),k(pe,null,Ne(t.items,(u,f)=>(w(),k("div",{key:f,class:"flex items-center gap-2"},[l("span",{class:"w-24 sm:w-32 shrink-0 truncate text-[11px] font-medium text-slate-300",title:u.label},v(u.label),9,j7),l("div",V7,[l("div",{class:"h-3.5 rounded-full transition-all duration-500 opacity-90",style:Ut({width:r(u.value),backgroundColor:s.value})},null,4)]),l("span",H7,v(u.value.toLocaleString()),1)]))),128))])):(w(),k("div",F7," No data available. "))]))}},z7={class:"w-full bg-slate-800/70 border border-slate-700/60 rounded-xl sm:rounded-2xl p-3 sm:p-4 shadow-xl flex flex-col justify-between overflow-hidden"},W7={class:"mb-2 flex items-baseline justify-between border-b border-slate-700/50 pb-1.5"},Z7={class:"text-xs sm:text-sm font-bold text-white min-w-0 truncate"},q7={class:"text-[10px] sm:text-[11px] text-slate-400 font-mono shrink-0 ml-2"},K7={key:0,class:"flex h-[80px] items-center justify-center text-xs text-slate-400 italic"},G7={class:"flex h-3 gap-[2px] overflow-hidden rounded-full bg-slate-950 p-0.5 border border-slate-800 my-2"},Y7=["title"],J7={class:"grid grid-cols-2 gap-1.5 mt-3"},X7={class:"flex flex-col truncate"},Q7={class:"text-[9px] text-slate-400 uppercase tracking-wider font-semibold truncate"},e9={class:"font-mono font-bold text-white text-xs"},t9={key:0,class:"mt-3 border-t border-slate-700/60 pt-2 text-[11px] text-slate-400 flex items-center justify-between"},s9={class:"font-mono font-bold text-emerald-400 text-xs bg-emerald-500/10 px-1.5 py-0.5 rounded border border-emerald-500/20"},n9={__name:"StatusBreakdown",props:{title:{type:String,default:""},subtitle:{type:String,default:""},counts:{type:Object,default:()=>({})}},setup(t){const e=t,s=Se(()=>[{key:"success",label:"2xx success",color:"#34d399",icon:"â",value:e.counts.success??0},{key:"redirect",label:"3xx redirect",color:"#94a3b8",icon:"â",value:e.counts.redirect??0},{key:"client_error",label:"4xx client error",color:"#fbbf24",icon:"!",value:e.counts.client_error??0},{key:"server_error",label:"5xx server error",color:"#f87171",icon:"â",value:e.counts.server_error??0}]),n=Se(()=>s.value.filter(o=>o.value>0)),r=Se(()=>s.value.reduce((o,c)=>o+c.value,0));return(o,c)=>(w(),k("div",z7,[l("div",null,[l("div",W7,[l("h3",Z7,v(t.title),
14431),l("p",q7,v(t.subtitle),1)]),r.value===0?(w(),k("div",K7," No requests logged yet. ")):(w(),k(pe,{key:1},[l("div",G7,[(w(!0),k(pe,null,Ne(n.value,u=>(w(),k("div",{key:u.key,class:"h-full rounded-full transition-all",style:Ut({width:`${u.value/r.value*100}%`,backgroundColor:u.color}),title:`${u.label}: ${u.value.toLocaleString()} (${(u.value/r.value*100).toFixed(1)}%)`},null,12,Y7))),128))]),l("div",J7,[(w(!0),k(pe,null,Ne(s.value,u=>(w(),k("div",{key:u.key,class:"flex items-center gap-1.5 text-xs bg-slate-900/60 p-1.5 rounded-lg border border-slate-800"},[l("span",{class:"flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-[9px] font-bold text-slate-950",style:Ut({backgroundColor:u.color}),"aria-hidden":"true"},v(u.icon),5),l("div",X7,[l("span",Q7,v(u.label),1),l("span",e9,v(u.value.toLocaleString()),1)])]))),128))])],64))]),t.counts?.avg_response_ms!=null?(w(),k("div",t9,[c[0]||(c[0]=l("span",{class:"text-[10px] uppercase font-semibold tracking-wider text-slate-400"},"Avg Response Latency:",-1)),l("span",s9,v(t.counts.avg_response_ms)+" ms ",1)])):ae("",!0)]))}},i9={class:"space-y-3 sm:space-y-4"},r9={key:0,class:"rounded-lg border border-rose-500/30 bg-rose-500/10 px-3 py-2 text-rose-300 text-xs font-medium flex items-center justify-between"},o9={class:"flex flex-wrap items-center justify-between gap-2 bg-slate-800/80 border border-slate-700/60 rounded-xl sm:rounded-2xl p-2 sm:p-3 shadow-lg"},a9={class:"inline-flex p-1 bg-slate-900/90 rounded-lg border border-slate-700/80 text-xs font-medium max-w-full overflow-x-auto scrollbar-none gap-0.5"},l9=["onClick"],c9={key:1,class:"py-12 text-center text-slate-400 animate-pulse text-xs font-medium"},d9={class:"bg-slate-800/70 border border-slate-700/60 rounded-xl sm:rounded-2xl p-3 sm:p-4 shadow-xl space-y-3"},u9={class:"flex items-center justify-between border-b border-slate-700/60 pb-2"},f9={class:"text-xs sm:text-sm font-bold uppercase tracking-wider text-white min-w-0 truncate"},h9={class:"flex items-center gap-2 text-[10px] font-mono text-slate-400 flex-shrink-0"},p9={class:"hidden sm:inline"},m9={class:"grid grid-cols-1 md:grid-cols-2 gap-2 sm:gap-4 text-xs font-sans"},_9={class:"divide-y divide-slate-700/40 border border-slate-700/50 rounded-xl bg-slate-900/60 overflow-hidden shadow-inner"},g9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},v9={class:"font-mono font-bold text-indigo-400 text-sm"},b9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},x9={class:"text-slate-400 font-medium"},y9={class:"font-mono font-bold text-indigo-400 text-sm"},w9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},k9={class:"font-mono font-bold text-emerald-400 text-sm"},E9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},T9={class:"text-slate-400 font-medium"},S9={class:"font-mono font-bold text-emerald-400 text-sm"},C9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},A9={class:"font-mono font-bold text-emerald-400 text-sm"},P9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},I9={class:"text-slate-400 font-medium"},L9={class:"font-mono font-bold text-emerald-400 text-sm"},O9={class:"divide-y divide-slate-700/40 border border-slate-700/50 rounded-xl bg-slate-900/60 overflow-hidden shadow-inner"},N9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},$9={class:"text-slate-400 font-medium"},D9={class:"font-mono font-bold text-purple-400 text-sm"},M9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},R9={class:"text-slate-400 font-medium"},B9={class:"font-mono font-bold text-cyan-400 text-sm"},F9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},U9={class:"text-slate-400 font-medium"},j9={class:"font-mono font-bold text-amber-400 text-sm"},V9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},H9={class:"text-slate-400 font-medium"},z9={class:"font-mono font-bold text-rose-400 text-sm"},W9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},Z9={class:"text-slate-400 font-medium"},q9={class:"font-mono font-bold text-teal-400 text-sm"},K9={class:"flex items-center justify-between px-3 py-2 hover:bg-slate-800/40 transition-colors"},G9={class:"font-mono font-bold text-sky-400 text-sm"},Y9={class:"grid grid-cols-1 gap-3 lg:grid-cols-2"},J9={class:"grid grid-cols-1 gap-3 lg:grid-cols-3"},X9={__name:"AdminOverview",setup(t){const e=Id(),s=Se(()=>e.stats.value),n=ke("month"),r=[{id:"day",label:"24 Hours"},{id:"week",label:"Past Week"},{id:"month",label:"Past Month"},{id:"year",label:"Past Year"},{id:"all",label:"All Time"}];function o(M){n.value=M,e.fetchStats(M)}const c=Se(()=>{const M=r.find(j=>j.id===n.value);return M?M.label.toLowerCase():"past month"}),u=Se(()=>n.value==="day"?"last 24 hours (hourly)":n.value==="week"?"last 7 days":n.value==="month"?"last 30 days":n.value==="year"?"last 12 months":"all-time trajectory"),f=Se(()=>n.value==="day"?"last 24 hours (hourly)":n.value==="week"?"last 7 days":n.value==="month"?"last 30 days":n.value==="year"?"last 12 months":"all-time request log"),p=Se(()=>`top in ${c.value}`),m=Se(()=>`top in ${c.value}`),_=Se(()=>`health in ${c.value}`),y=Se(()=>(s.value?.top_districts||[]).map(M=>({label:M.district_name,value:M.total}))),S=Se(()=>(s.value?.top_species||[]).map(M=>({label:M.taxa_common_name||M.taxa_scientific_name,value:M.total}))),T=M=>
1443M?new Date(M).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"â",C=()=>e.fetchStats(n.value);return yn(()=>{e.fetchStats(n.value)}),(M,j)=>(w(),k("div",i9,[Ie(e).stats.error?(w(),k("div",r9,[l("span",null,v(Ie(e).stats.error),1),l("button",{onClick:C,class:"text-[11px] font-bold underline hover:text-rose-200"},"Retry")])):ae("",!0),l("div",o9,[j[0]||(j[0]=l("div",{class:"flex items-center gap-2"},[l("span",{class:"text-xs font-bold uppercase tracking-wider text-slate-300"},"Timeframe")],-1)),l("div",a9,[(w(),k(pe,null,Ne(r,D=>l("button",{key:D.id,onClick:P=>o(D.id),class:ce(["px-2.5 sm:px-3 py-1 rounded-md transition-all duration-150 whitespace-nowrap text-xs font-medium",n.value===D.id?"bg-indigo-600 text-white font-bold shadow-md shadow-indigo-600/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/60"])},v(D.label),11,l9)),64))])]),Ie(e).stats.isLoading&&!s.value?(w(),k("div",c9," Loading system telemetry & analytics for "+v(c.value)+"... ",1)):s.value?(w(),k(pe,{key:2},[l("section",d9,[l("div",u9,[l("h2",f9," Platform Telemetry ("+v(c.value)+") ",1),l("div",h9,[l("span",p9,"Updated "+v(T(Ie(e).stats.lastUpdated)),1),l("button",{onClick:C,class:"text-indigo-400 hover:text-indigo-300 font-semibold underline"}," Refresh ")])]),l("div",m9,[l("div",_9,[l("div",g9,[j[1]||(j[1]=l("span",{class:"text-slate-400 font-medium"},"Total Users",-1)),l("span",v9,v(s.value.totals.users.toLocaleString()),1)]),l("div",b9,[l("span",x9,"New Users ("+v(n.value)+")",1),l("span",y9,"+"+v((s.value.period_stats?.new_users??s.value.this_month?.new_users??0).toLocaleString()),1)]),l("div",w9,[j[2]||(j[2]=l("span",{class:"text-slate-400 font-medium"},"Total Counts",-1)),l("span",k9,v(s.value.totals.counts.toLocaleString()),1)]),l("div",E9,[l("span",T9,"Counts ("+v(n.value)+")",1),l("span",S9,v((s.value.period_stats?.counts??s.value.this_month?.counts??0).toLocaleString()),1)]),l("div",C9,[j[3]||(j[3]=l("span",{class:"text-slate-400 font-medium"},"Total Observations",-1)),l("span",A9,v(s.value.totals.observations.toLocaleString()),1)]),l("div",P9,[l("span",I9,"Observations ("+v(n.value)+")",1),l("span",L9,v((s.value.period_stats?.observations??s.value.this_month?.observations??0).toLocaleString()),1)])]),l("div",O9,[l("div",N9,[l("span",$9,"Species ("+v(n.value)+")",1),l("span",D9,v((s.value.period_stats?.species??s.value.totals.species).toLocaleString()),1)]),l("div",M9,[l("span",R9,"Districts ("+v(n.value)+")",1),l("span",B9,v((s.value.period_stats?.districts??s.value.totals.districts).toLocaleString()),1)]),l("div",F9,[l("span",U9,"Edited Counts ("+v(n.value)+")",1),l("span",j9,v((s.value.period_stats?.edited_counts??s.value.totals.edited_counts??0).toLocaleString()),1)]),l("div",V9,[l("span",H9,"Soft-Deleted ("+v(n.value)+")",1),l("span",z9,v((s.value.period_stats?.soft_deleted_counts??s.value.totals.soft_deleted_counts??0).toLocaleString()),1)]),l("div",W9,[l("span",Z9,"API Requests ("+v(n.value)+")",1),l("span",q9,v((s.value.period_stats?.requests??s.value.today.requests).toLocaleString()),1)]),l("div",K9,[j[4]||(j[4]=l("span",{class:"text-slate-400 font-medium"},"Avg Response Latency",-1)),l("span",G9,v(s.value.request_status?.avg_response_ms??0)+"ms",1)])])])]),l("section",Y9,[lt(V_,{title:"Counts Submitted",subtitle:u.value,color:"#34d399",data:s.value.counts_trend},null,8,["subtitle","data"]),lt(V_,{title:"API Request Activity",subtitle:f.value,color:"#fb923c",data:s.value.requests_trend},null,8,["subtitle","data"])]),l("section",J9,[lt(H_,{title:"Top Districts",subtitle:p.value,color:"#38bdf8",items:y.value},null,8,["subtitle","items"]),lt(H_,{title:"Top Species",subtitle:m.value,color:"#a78bfa",items:S.value},null,8,["subtitle","items"]),lt(n9,{title:"API Request Health",subtitle:_.value,counts:s.value.request_status},null,8,["subtitle","counts"])])],64)):ae("",!0)]))}},Q9={class:"min-h-screen bg-slate-900 text-slate-100 font-sans p-2 sm:p-6"},eB={class:"max-w-7xl mx-auto space-y-3 sm:space-y-5"},tB={key:0,class:"bg-rose-500/20 border border-rose-500/50 rounded-xl px-3.5 py-2 text-rose-200 text-xs font-semibold flex items-center justify-between gap-2 shadow-lg animate-pulse"},sB={class:"flex items-center gap-1 sm:gap-1.5 overflow-x-auto whitespace-nowrap scrollbar-none max-w-full"},nB=["onClick"],iB={class:"flex items-center gap-1.5 sm:gap-2 flex-shrink-0"},rB=["title"],oB={class:"text-xs sm:text-sm"},aB={class:"hidden sm:inline font-mono uppercase tracking-wider text-[10px]"},lB={key:2},cB={key:3},dB={key:4},uB={__name:"AdminDashboard",setup(t){const e=Id(),s=[{key:"overview",label:"Overview"},{key:"users",label:"Users"},{key:"counts",label:"Counts"},{key:"logs",label:"Request Logs"}],n=ke("overview");yn(()=>{e.resetPrivacyMode(),W1(Ts,o=>{o||(e.resetPrivacyMode(),window.location.href="/admin/login")})});const r=async()=>{e.resetPrivacyMode(),await Ts.signOut(),window.location.href="/admin/login"};return(o,c)=>(w(),k("div",Q9,[l("div",eB,[Ie(e).privacyMode?ae("",!0):(w(),k("div",tB,[c[2]||(c[2]=l("div",{class:"flex items-center gap-2"},[l("span",{class:"text-base flex-shrink-0"},"â ï¸"),l("span",null,[l("strong",{class:"text-white uppercase font-bold tracking-wider"},"Privacy Mode Unlocked:"),Me(" Sensitive emails, IP addresses, and security tokens are exposed on screen for screen sharing! ")])],-1)),l("button",{onClick:c[0]||(c[0]=u=>Ie(e).togglePrivacyMode()),class:"px-2.5 py-1 bg-rose-500 hover:bg-rose-400 text-slate-950 font-bold rounded-lg text-[10px] uppercase tracking-wider flex-shrink-0 transition-colors"}," Lock Now ð ")])),l("nav",{class:ce(["bg-slate-800/80 backdrop-blur border rounded-xl p-2 sm:p-2.5 shadow-lg flex items-center justify-between gap-2 transition-all",Ie(e).privacyMode?"border-slate-700/60":"border-rose-500/60 ring-1 ring-rose-500/30 shadow-rose-950/40"])}
1443,[l("div",sB,[(w(),k(pe,null,Ne(s,u=>l("button",{key:u.key,onClick:f=>n.value=u.key,class:ce(["px-3 sm:px-4 py-1.5 rounded-lg font-semibold text-xs transition-all flex-shrink-0",n.value===u.key?"bg-indigo-600 text-white shadow-md shadow-indigo-600/30 font-bold":"bg-slate-900/60 text-slate-300 hover:text-white hover:bg-slate-800"])},v(u.label),11,nB)),64))]),l("div",iB,[c[4]||(c[4]=l("span",{class:"hidden md:inline-block px-2 py-0.5 text-[10px] font-mono font-semibold rounded-full bg-indigo-500/10 text-indigo-400 border border-indigo-500/20"}," System ",-1)),l("button",{onClick:c[1]||(c[1]=u=>Ie(e).togglePrivacyMode()),class:ce(["px-2 py-1 sm:px-2.5 sm:py-1.5 text-xs font-bold rounded-lg transition-all flex items-center gap-1 border select-none cursor-pointer shadow-md",Ie(e).privacyMode?"bg-emerald-500/15 text-emerald-300 border-emerald-500/30 hover:bg-emerald-500/25":"bg-gradient-to-r from-rose-600 to-red-600 text-white border-rose-400 hover:from-rose-500 hover:to-red-500 shadow-rose-600/30 animate-bounce"]),title:Ie(e).privacyMode?"Privacy Mode is LOCKED (Sensitive emails, IPs, & tokens are masked)":"Privacy Mode is UNLOCKED (Sensitive data exposed)"},[l("span",oB,v(Ie(e).privacyMode?"ð":"ð"),1),l("span",aB,v(Ie(e).privacyMode?"LOCKED":"UNLOCKED â ï¸"),1)],10,rB),l("button",{onClick:r,class:"p-1.5 sm:px-2.5 sm:py-1.5 text-xs font-semibold rounded-lg bg-slate-900/80 hover:bg-slate-700 text-slate-300 border border-slate-700 transition-all shadow-md flex items-center gap-1",title:"Logout"},[...c[3]||(c[3]=[l("svg",{class:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})],-1),l("span",{class:"hidden sm:inline"}
1443,"Logout",-1)])])])],2),n.value==="overview"?(w(),nr(X9,{key:1})):n.value==="users"?(w(),k("div",lB,[lt(Zu,{title:"Users Directory","api-url":"/api/admin/users"})])):n.value==="counts"?(w(),k("div",cB,[lt(Zu,{title:"Submitted Counts","api-url":"/api/admin/counts"})])):n.value==="logs"?(w(),k("div",dB,[lt(Zu,{title:"API Request Logs","api-url":"/api/admin/logs"})])):ae("",!0)])]))}};function fB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yo={exports:{}};/* @preserve 1444 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com 1445 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade 1446 */var hB=Yo.exports,z_;function pB(){return z_||(z_=1,(function(t,e){(function(s,n){n(e)})(hB,(function(s){var n="1.9.4";function r(i){var a,d,h,g;for(d=1,h=arguments.length;d<h;d++){g=arguments[d];for(a in g)i[a]=g[a]}return i}var o=Object.create||(function(){function i(){}return function(a){return i.prototype=a,new i}})();function c(i,a){var d=Array.prototype.slice;if(i.bind)return i.bind.apply(i,d.call(arguments,1));var h=d.call(arguments,2);return function(){return i.apply(a,h.length?h.concat(d.call(arguments)):arguments)}}var u=0;function f(i){return"_leaflet_id"in i||(i._leaflet_id=++u),i._leaflet_id}function p(i,a,d){var h,g,E,B;return B=function(){h=!1,g&&(E.apply(d,g),g=!1)},E=function(){h?g=arguments:(i.apply(d,arguments),setTimeout(B,a),h=!0)},E}function m(i,a,d){var h=a[1],g=a[0],E=h-g;return i===h&&d?i:((i-g)%E+E)%E+g}function _(){return!1}function y(i,a){if(a===!1)return i;var d=Math.pow(10,a===void 0?6:a);return Math.round(i*d)/d}function S(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function T(i){return S(i).split(/\s+/)}function C(i,a){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?o(i.options):{});for(var d in a)i.options[d]=a[d];return i.options}function M(i,a,d){var h=[];for(var g in i)h.push(encodeURIComponent(d?g.toUpperCase():g)+"="+encodeURIComponent(i[g]));return(!a||a.indexOf("?")===-1?"?":"&")+h.join("&")}var j=/\{ *([\w_ -]+) *\}/g;function D(i,a){return i.replace(j,function(d,h){var g=a[h];if(g===void 0)throw new Error("No value provided for variable "+d);return typeof g=="function"&&(g=g(a)),g})}var P=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function $(i,a){for(var d=0;d<i.length;d++)if(i[d]===a)return d;return-1}var U="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function J(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var se=0;function W(i){var a=+new Date,d=Math.max(0,16-(a-se));return se=a+d,window.setTimeout(i,d)}var F=window.requestAnimationFrame||J("RequestAnimationFrame")||W,z=window.cancelAnimationFrame||J("CancelAnimationFrame")||J("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function V(i,a,d){if(d&&F===W)i.call(a);else return F.call(window,c(i,a))}function I(i){i&&z.call(window,i)}var Z={__proto__:null,extend:r,create:o,bind:c,get lastId(){return u},stamp:f,throttle:p,wrapNum:m,falseFn:_,formatNum:y,trim:S,splitWords:T,setOptions:C,getParamString:M,template:D,isArray:P,indexOf:$,emptyImageUrl:U,requestFn:F,cancelFn:z,requestAnimFrame:V,cancelAnimFrame:I};function ee(){}ee.extend=function(i){var a=function(){C(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},d=a.__super__=this.prototype,h=o(d);h.constructor=a,a.prototype=h;for(var g in this)Object.prototype.hasOwnProperty.call(this,g)&&g!=="prototype"&&g!=="__super__"&&(a[g]=this[g]);return i.statics&&r(a,i.statics),i.includes&&(me(i.includes),r.apply(null,[h].concat(i.includes))),r(h,i),delete h.statics,delete h.includes,h.options&&(h.options=d.options?o(d.options):{},r(h.options,i.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){d.callInitHooks&&d.callInitHooks.call(this),this._initHooksCalled=!0;for(var E=0,B=h._initHooks.length;E<B;E++)h._initHooks[E].call(this)}},a},ee.include=function(i){var a=this.prototype.options;return r(this.prototype,i),i.options&&(this.prototype.options=a,this.mergeOptions(i.options)),this},ee.mergeOptions=function(i){return r(this.prototype.options,i),this},ee.addInitHook=function(i){var a=Array.prototype.slice.call(arguments,1
1446),d=typeof i=="function"?i:function(){this[i].apply(this,a)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(d),this};function me(i){if(!(typeof L>"u"||!L||!L.Mixin)){i=P(i)?i:[i];for(var a=0;a<i.length;a++)i[a]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ne={on:function(i,a,d){if(typeof i=="object")for(var h in i)this._on(h,i[h],a);else{i=T(i);for(var g=0,E=i.length;g<E;g++)this._on(i[g],a,d)}return this},off:function(i,a,d){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var h in i)this._off(h,i[h],a);else{i=T(i);for(var g=arguments.length===1,E=0,B=i.length;E<B;E++)g?this._off(i[E]):this._off(i[E],a,d)}return this},_on:function(i,a,d,h){if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}if(this._listens(i,a,d)===!1){d===this&&(d=void 0);var g={fn:a,ctx:d};h&&(g.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(g)}},_off:function(i,a,d){var h,g,E;if(this._events&&(h=this._events[i],!!h)){if(arguments.length===1){if(this._firingCount)for(g=0,E=h.length;g<E;g++)h[g].fn=_;delete this._events[i];return}if(typeof a!="function"){console.warn("wrong listener type: "+typeof a);return}var B=this._listens(i,a,d);if(B!==!1){var q=h[B];this._firingCount&&(q.fn=_,this._events[i]=h=h.slice()),h.splice(B,1)}}},fire:function(i,a,d){if(!this.listens(i,d))return this;var h=r({},a,{type:i,target:this,sourceTarget:a&&a.sourceTarget||this});if(this._events){var g=this._events[i];if(g){this._firingCount=this._firingCount+1||1;for(var E=0,B=g.length;E<B;E++){var q=g[E],Q=q.fn;q.once&&this.off(i,Q,q.ctx),Q.call(q.ctx||this,h)}this._firingCount--}}return d&&this._propagateEvent(h),this},listens:function(i,a,d,h){typeof i!="string"&&console.warn('"string" type argument expected');var g=a;typeof a!="function"&&(h=!!a,g=void 0,d=void 0);var E=this._events&&this._events[i];if(E&&E.length&&this._listens(i,g,d)!==!1)return!0;if(h){for(var B in this._eventParents)if(this._eventParents[B].listens(i,a,d,h))return!0}return!1},_listens:function(i,a,d){if(!this._events)return!1;var h=this._events[i]||[];if(!a)return!!h.length;d===this&&(d=void 0);for(var g=0,E=h.length;g<E;g++)if(h[g].fn===a&&h[g].ctx===d)return g;return!1},once:function(i,a,d){if(typeof i=="object")for(var h in i)this._on(h,i[h],a,!0);else{i=T(i);for(var g=0,E=i.length;g<E;g++)this._on(i[g],a,d,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[f(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[f(i)],this},_propagateEvent:function(i){for(var a in this._eventParents)this._eventParents[a].fire(i.type,r({layer:i.target,propagatedFrom:i.target},i),!0)}};ne.addEventListener=ne.on,ne.removeEventListener=ne.clearAllEventListeners=ne.off,ne.addOneTimeEventListener=ne.once,ne.fireEvent=ne.fire,ne.hasEventListeners=ne.listens;var fe=ee.extend(ne);function G(i,a,d){this.x=d?Math.round(i):i,this.y=d?Math.round(a):a}var _e=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(i){return this.clone()._add(ve(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(ve(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new G(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new G(this.x/i.x,this.y/i.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=_e(this.x),this.y=_e(this.y),this},distanceTo:function(i){i=ve(i);var a=i.x-this.x,d=i.y-this.y;return Math.sqrt(a*a+d*d)},equals:function(i){return i=ve(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=ve(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function ve(i,a,d){return i instanceof G?i:P(i)?new G(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new G(i.x,i.y):new G(i,a,d)}function $e(i,a){if(i)for(var d=a?[i,a]:i,h=0,g=d.length;h<g;h++)this.extend(d[h])}$e.prototype={extend:function(i){var a,d;if(!i)return this;if(i instanceof G||typeof i[0]=="number"||"x"in i)a=d=ve(i);else if(i=Ue(i),a=i.min,d=i.max,!a||!d)return this;return!this.min&&!this.max?(this.min=a.clone(),this.max=d.clone()):(this.min.x=Math.min(a.x,this.min.x),this.max.x=Math.max(d.x,this.max.x),this.min.y=Math.min(a.y,this.min.y),this.max.y=Math.max(d.y,this.max.y)),this},getCenter:function(i){return ve((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return ve(this.min.x,this.max.y)},getTopRight:function(){return ve(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(i){var a,d;return typeof i[0]=="number"||i instanceof G?i=ve(i):i=Ue(i),i instanceof $e?(
1446a=i.min,d=i.max):a=d=i,a.x>=this.min.x&&d.x<=this.max.x&&a.y>=this.min.y&&d.y<=this.max.y},intersects:function(i){i=Ue(i);var a=this.min,d=this.max,h=i.min,g=i.max,E=g.x>=a.x&&h.x<=d.x,B=g.y>=a.y&&h.y<=d.y;return E&&B},overlaps:function(i){i=Ue(i);var a=this.min,d=this.max,h=i.min,g=i.max,E=g.x>a.x&&h.x<d.x,B=g.y>a.y&&h.y<d.y;return E&&B},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var a=this.min,d=this.max,h=Math.abs(a.x-d.x)*i,g=Math.abs(a.y-d.y)*i;return Ue(ve(a.x-h,a.y-g),ve(d.x+h,d.y+g))},equals:function(i){return i?(i=Ue(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function Ue(i,a){return!i||i instanceof $e?i:new $e(i,a)}function rt(i,a){if(i)for(var d=a?[i,a]:i,h=0,g=d.length;h<g;h++)this.extend(d[h])}rt.prototype={extend:function(i){var a=this._southWest,d=this._northEast,h,g;if(i instanceof Ee)h=i,g=i;else if(i instanceof rt){if(h=i._southWest,g=i._northEast,!h||!g)return this}else return i?this.extend(Ce(i)||We(i)):this;return!a&&!d?(this._southWest=new Ee(h.lat,h.lng),this._northEast=new Ee(g.lat,g.lng)):(a.lat=Math.min(h.lat,a.lat),a.lng=Math.min(h.lng,a.lng),d.lat=Math.max(g.lat,d.lat),d.lng=Math.max(g.lng,d.lng)),this},pad:function(i){var a=this._southWest,d=this._northEast,h=Math.abs(a.lat-d.lat)*i,g=Math.abs(a.lng-d.lng)*i;return new rt(new Ee(a.lat-h,a.lng-g),new Ee(d.lat+h,d.lng+g))},getCenter:function(){return new Ee((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Ee(this.getNorth(),this.getWest())},getSouthEast:function(){return new Ee(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(i){typeof i[0]=="number"||i instanceof Ee||"lat"in i?i=Ce(i):i=We(i);var a=this._southWest,d=this._northEast,h,g;
1446return i instanceof rt?(h=i.getSouthWest(),g=i.getNorthEast()):h=g=i,h.lat>=a.lat&&g.lat<=d.lat&&h.lng>=a.lng&&g.lng<=d.lng},intersects:function(i){i=We(i);var a=this._southWest,d=this._northEast,h=i.getSouthWest(),g=i.getNorthEast(),E=g.lat>=a.lat&&h.lat<=d.lat,B=g.lng>=a.lng&&h.lng<=d.lng;return E&&B},overlaps:function(i){i=We(i);var a=this._southWest,d=this._northEast,h=i.getSouthWest(),g=i.getNorthEast(),E=g.lat>a.lat&&h.lat<d.lat,B=g.lng>a.lng&&h.lng<d.lng;return E&&B},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,a){return i?(i=We(i),this._southWest.equals(i.getSouthWest(),a)&&this._northEast.equals(i.getNorthEast(),a)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function We(i,a){return i instanceof rt?i:new rt(i,a)}function Ee(i,a,d){if(isNaN(i)||isNaN(a))throw new Error("Invalid LatLng object: ("+i+", "+a+")");this.lat=+i,this.lng=+a,d!==void 0&&(this.alt=+d)}Ee.prototype={equals:function(i,a){if(!i)return!1;i=Ce(i);var d=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return d<=(a===void 0?1e-9:a)},toString:function(i){return"LatLng("+y(this.lat,i)+", "+y(this.lng,i)+")"},distanceTo:function(i){return nt.distance(this,Ce(i))},wrap:function(){return nt.wrapLatLng(this)},toBounds:function(i){var a=180*i/40075017,d=a/Math.cos(Math.PI/180*this.lat);return We([this.lat-a,this.lng-d],[this.lat+a,this.lng+d])},clone:function(){return new Ee(this.lat,this.lng,this.alt)}};function Ce(i,a,d){return i instanceof Ee?i:P(i)&&typeof i[0]!="object"?i.length===3?new Ee(i[0],i[1],i[2]):i.length===2?new Ee(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new Ee(i.lat,"lng"in i?i.lng:i.lon,i.alt):a===void 0?null:new Ee(i,a,d)}var Ge={latLngToPoint:function(i,a){var d=this.projection.project(i),h=this.scale(a);return this.transformation._transform(d,h)},pointToLatLng:function(i,a){var d=this.scale(a),h=this.transformation.untransform(i,d);return this.projection.unproject(h)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var a=this.projection.bounds,d=this.scale(i),h=this.transformation.transform(a.min,d),g=this.transformation.transform(a.max,d);return new $e(h,g)},infinite:!1,wrapLatLng:function(i){var a=this.wrapLng?m(i.lng,this.wrapLng,!0):i.lng,d=this.wrapLat?m(i.lat,this.wrapLat,!0):i.lat,h=i.alt;return new Ee(d,a,h)},wrapLatLngBounds:function(i){var a=i.getCenter(),d=this.wrapLatLng(a),h=a.lat-d.lat,g=a.lng-d.lng;if(h===0&&g===0)return i;
1446var E=i.getSouthWest(),B=i.getNorthEast(),q=new Ee(E.lat-h,E.lng-g),Q=new Ee(B.lat-h,B.lng-g);return new rt(q,Q)}},nt=r({},Ge,{wrapLng:[-180,180],R:6371e3,distance:function(i,a){var d=Math.PI/180,h=i.lat*d,g=a.lat*d,E=Math.sin((a.lat-i.lat)*d/2),B=Math.sin((a.lng-i.lng)*d/2),q=E*E+Math.cos(h)*Math.cos(g)*B*B,Q=2*Math.atan2(Math.sqrt(q),Math.sqrt(1-q));return this.R*Q}}),Tt=6378137,_t={R:Tt,MAX_LATITUDE:85.0511287798,project:function(i){var a=Math.PI/180,d=this.MAX_LATITUDE,h=Math.max(Math.min(d,i.lat),-d),g=Math.sin(h*a);return new G(this.R*i.lng*a,this.R*Math.log((1+g)/(1-g))/2)},unproject:function(i){var a=180/Math.PI;return new Ee((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*a,i.x*a/this.R)},bounds:(function(){var i=Tt*Math.PI;return new $e([-i,-i],[i,i])})()};function Pt(i,a,d,h){if(P(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=a,this._c=d,this._d=h}Pt.prototype={transform:function(i,a){return this._transform(i.clone(),a)},_transform:function(i,a){return a=a||1,i.x=a*(this._a*i.x+this._b),i.y=a*(this._c*i.y+this._d),i},untransform:function(i,a){return a=a||1,new G((i.x/a-this._b)/this._a,(i.y/a-this._d)/this._c)}};function St(i,a,d,h){return new Pt(i,a,d,h)}var R=r({},nt,{code:"EPSG:3857",projection:_t,transformation:(function(){var i=.5/(Math.PI*_t.R);return St(i,.5,-i,.5)})()}),H=r({},R,{code:"EPSG:900913"});function N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function b(i,a){var d="",h,g,E,B,q,Q;for(h=0,E=i.length;h<E;h++){for(q=i[h],g=0,B=q.length;g<B;g++)Q=q[g],d+=(g?"L":"M")+Q.x+" "+Q.y;d+=a?we.svg?"z":"x":""}return d||"M0 0"}var O=document.documentElement.style,K="ActiveXObject"in window,X=K&&!document.addEventListener,re="msLaunchUri"in navigator&&!("documentMode"in document),oe=Os("webkit"),ie=Os("android"),Te=Os("android 2")||Os("android 3"),ge=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ye=ie&&Os("Google")&&ge<537&&!("AudioNode"in window),Ae=!!window.opera,je=!re&&Os("chrome"),Ye=Os("gecko")&&!oe&&!Ae&&!K,Re=!je&&Os("safari"),It=Os("phantom"),xt="OTransition"in O,ts=navigator.platform.indexOf("Win")===0,Mt=K&&"transition"in O,Ws="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Te,Ti="MozPerspective"in O,Lt=!window.L_DISABLE_3D&&(Mt||Ws||Ti)&&!xt&&!It,Rt=typeof orientation<"u"||Os("mobile"),Si=Rt&&oe,mr=Rt&&Ws,Xa=!window.PointerEvent&&window.MSPointerEvent,Qa=!!(window.PointerEvent||Xa),_r="ontouchstart"in window||!!window.TouchEvent,Ld=!window.L_NO_TOUCH&&(_r||Qa),Y=Rt&&Ae,x=Rt&&Ye,A=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ue=(function(){var i=!1;try{var a=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",_,a),window.removeEventListener("testPassiveEventSupport",_,a)}catch{}return i})(),he=(function(){return!!document.createElement("canvas").getContext})(),Be=!!(document.createElementNS&&N("svg").createSVGRect),cs=!!Be&&(function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Zs=!Be&&(function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var a=i.firstChild;return a.style.behavior="url(#default#VML)",a&&typeof a.adj=="object"}catch{return!1}})(),Po=navigator.platform.indexOf("Mac")===0,Od=navigator.platform.indexOf("Linux")===0;function Os(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var we={ie:K,ielt9:X,edge:re,webkit:oe,android:ie,android23:Te,androidStock:ye,opera:Ae,chrome:je,gecko:Ye,safari:Re,phantom:It,opera12:xt,win:ts,ie3d:Mt,webkit3d:Ws,gecko3d:Ti,any3d:Lt,mobile:Rt,mobileWebkit:Si,mobileWebkit3d:mr,msPointer:Xa,pointer:Qa,touch:Ld,touchNative:_r,mobileOpera:Y,mobileGecko:x,retina:A,passiveEvents:ue,canvas:he,svg:Be,vml:Zs,inlineSvg:cs,mac:Po,linux:Od},gr=we.msPointer?"MSPointerDown":"pointerdown",Ot=we.msPointer?"MSPointerMove":"pointermove",jt=we.msPointer?"MSPointerUp":"pointerup",_p=we.msPointer?"MSPointerCancel":"pointercancel",Nd={touchstart:gr,touchmove:Ot,touchend:jt,touchcancel:_p},gp={touchstart:uy,touchmove:el,touchend:el,touchcancel:el},vr={},vp=!1;function oy(i,a,d){return a==="touchstart"&&dy(),gp[a]?(d=gp[a].bind(this,d),i.addEventListener(Nd[a],d,!1),d):(console.warn("wrong event specified:",a),_)}function ay(i,a,d){if(!Nd[a]){console.warn("wrong event specified:",a);return}i.removeEventListener(Nd[a],d,!1)}function ly(i){vr[i.pointerId]=i}function cy(i){vr[i.pointerId]&&(vr[i.pointerId]=i)}function bp(i){delete vr[i.pointerId]}function dy(){vp||(document.addEventListener(gr,ly,!0),document.addEventListener(Ot,cy,!0),document.addEventListener(jt,bp,!0),document.addEventListener(_p,bp,!0),vp=!0)}function el(i,a){if(a.pointerType!==(a.MSPOINTER_TYPE_MOUSE||"mouse")){a.touches=[];for(var d in vr)a.touches.push(vr[d]);a.changedTouches=[a],i(a)}}function uy(i,a){a.MSPOINTER_TYPE_TOUCH&&a.pointerType===a.MSPOINTER_TYPE_TOUCH&&Vt(a),el(i,a)}function fy(i){var a={},d,h;for(h in i)d=i[h],a[h]=d&&d.bind?d.bind(i):d;return i=a,a.type="dblclick",a.detail=2,a.isTrusted=!1,a._simulated=!0,a}var hy=200;function py(i,a){i.addEventListener("dblclick",a);var d=0,h;function g(E){if(E.detail!==1){h=E.detail;return}if(!(E.pointerType==="mouse"||E.sourceCapabilities&&!E.sourceCapabilities.firesTouchEvents)){var B=Ep(E);if(!(B.some(function(Q){return Q instanceof HTMLLabelElement&&Q.attributes.for})&&!B.some(function(Q){return Q instanceof HTMLInputElement||Q instanceof HTMLSelectElement}))){var q=Date.now();q-d<=hy?(h++,h===2&&a(fy(E))):h=1,d=q}}}return i.addEventListener("click",g),{dblclick:a,simDblclick:g}}function my(i,a){i.removeEventListener("dblclick",a.dblclick),i.removeEventListener("click",a.simDblclick)}var $d=nl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Io=nl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),xp=Io==="webkitTransition"||Io==="OTransition"?Io+"End":"transitionend";function yp(i){return typeof i=="string"?document.getElementById(i):i}function Lo(i,a){var d=i.style[a]||i.currentStyle&&i.currentStyle[a];if((!d||d==="auto")&&document.defaultView){var h=document.defaultView.getComputedStyle(i,null);d=h?h[a]:null}return d==="auto"?null:d}function it(i,a,d){var h=document.createElement(i);return h.className=a||"",d&&d.appendChild(h),h}function gt(i){var a=i.parentNode;a&&a.removeChild(i)}function tl(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function br(i){var a=i.parentNode;a&&a.lastChild!==i&&a.appendChild(i)}function xr(i){var a=i.parentNode;a&&a.firstChild!==i&&a.insertBefore(i,a.firstChild)}function Dd(i,a){if(i.classList!==void 0)return i.classList.contains(a);var d=sl(i);return d.length>0&&new RegExp("(^|\\s)"+a+"(\\s|$)").test(d)}function Ze(i,a){if(i.classList!==void 0)for(var d=T(a),h=0,g=d.length;h<g;h++)i.classList.add(d[h]);else if(!Dd(i,a)){var E=sl(i);Md(i,(E?E+" ":"")+a)}}function yt(i,a){i.classList!==void 0?i.classList.remove(a):Md(i,S((" "+sl(i)+" ").replace(" "+a+" "," ")))}function Md(i,a){i.className.baseVal===void 0?i.className=a:i.className.baseVal=a}function sl(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function Ns(i,a){"opacity"in i.style?i.style.opacity=a:"filter"in i.style&&_y(i,a)}function _y(i,a){var d=!1,h="DXImageTransform.Microsoft.Alpha";try{d=i.filters.item(h)}catch{if(a===1)return}a=Math.round(a*100),d?(d.Enabled=a!==100,d.Opacity=a):i.style.filter+=" progid:"+h+"(opacity="+a+")"}function nl(i){for(var a=document.documentElement.style,d=0;d<i.length;d++)if(i[d]in a)return i[d];return!1}function Ci(i,a,d){var h=a||new G(0,0);i.style[$d]=(we.ie3d?"translate("+h.x+"px,"+h.y+"px)":"translate3d("+h.x+"px,"+h.y+"px,0)")+(d?" scale("+d+")":"")}function Ct(i,a){i._leaflet_pos=a,we.any3d?Ci(i,a):(i.style.left=a.x+"px",i.style.top=a.y+"px")}function Ai(i){return i._leaflet_pos||new G(0,0)}var Oo,No,Rd;if("onselectstart"in document)Oo=function(){Ve(window,"selectstart",Vt)},No=function(){ut(window,"selectstart",Vt)};else{var $o=nl(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Oo=function(){if($o){var i=document.documentElement.style;Rd=i[$o],i[$o]="none"}},No=function(){$o&&(document.documentElement.style[$o]=Rd,Rd=void 0)}}function Bd(){Ve(window,"dragstart",Vt)}function Fd(){ut(window,"dragstart",Vt)}var il,Ud;
1446function jd(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(rl(),il=i,Ud=i.style.outlineStyle,i.style.outlineStyle="none",Ve(window,"keydown",rl))}function rl(){il&&(il.style.outlineStyle=Ud,il=void 0,Ud=void 0,ut(window,"keydown",rl))}function wp(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function Vd(i){var a=i.getBoundingClientRect();return{x:a.width/i.offsetWidth||1,y:a.height/i.offsetHeight||1,boundingClientRect:a}}var gy={__proto__:null,TRANSFORM:$d,TRANSITION:Io,TRANSITION_END:xp,get:yp,getStyle:Lo,create:it,remove:gt,empty:tl,toFront:br,toBack:xr,hasClass:Dd,addClass:Ze,removeClass:yt,setClass:Md,getClass:sl,setOpacity:Ns,testProp:nl,setTransform:Ci,setPosition:Ct,getPosition:Ai,get disableTextSelection(){return Oo},get enableTextSelection(){return No},disableImageDrag:Bd,enableImageDrag:Fd,preventOutline:jd,restoreOutline:rl,getSizedParentNode:wp,getScale:Vd};function Ve(i,a,d,h){if(a&&typeof a=="object")for(var g in a)zd(i,g,a[g],d);else{a=T(a);for(var E=0,B=a.length;E<B;E++)zd(i,a[E],d,h)}return this}var nn="_leaflet_events";function ut(i,a,d,h){if(arguments.length===1)kp(i),delete i[nn];else if(a&&typeof a=="object")for(var g in a)Wd(i,g,a[g],d);else if(a=T(a),arguments.length===2)kp(i,function(q){return $(a,q)!==-1});else for(var E=0,B=a.length;E<B;E++)Wd(i,a[E],d,h);return this}function kp(i,a){for(var d in i[nn]){var h=d.split(/\d/)[0];(!a||a(h))&&Wd(i,h,null,null,d)}}
1446var Hd={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function zd(i,a,d,h){var g=a+f(d)+(h?"_"+f(h):"");if(i[nn]&&i[nn][g])return this;var E=function(q){return d.call(h||i,q||window.event)},B=E;!we.touchNative&&we.pointer&&a.indexOf("touch")===0?E=oy(i,a,E):we.touch&&a==="dblclick"?E=py(i,E):"addEventListener"in i?a==="touchstart"||a==="touchmove"||a==="wheel"||a==="mousewheel"?i.addEventListener(Hd[a]||a,E,we.passiveEvents?{passive:!1}:!1):a==="mouseenter"||a==="mouseleave"?(E=function(q){q=q||window.event,qd(i,q)&&B(q)},i.addEventListener(Hd[a],E,!1)):i.addEventListener(a,B,!1):i.attachEvent("on"+a,E),i[nn]=i[nn]||{},i[nn][g]=E}function Wd(i,a,d,h,g){g=g||a+f(d)+(h?"_"+f(h):"");var E=i[nn]&&i[nn][g];if(!E)return this;!we.touchNative&&we.pointer&&a.indexOf("touch")===0?ay(i,a,E):we.touch&&a==="dblclick"?my(i,E):"removeEventListener"in i?i.removeEventListener(Hd[a]||a,E,!1):i.detachEvent("on"+a,E),i[nn][g]=null}function Pi(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function Zd(i){return zd(i,"wheel",Pi),this}function Do(i){return Ve(i,"mousedown touchstart dblclick contextmenu",Pi),i._leaflet_disable_click=!0,this}function Vt(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function Ii(i){return Vt(i),Pi(i),this}function Ep(i){if(i.composedPath)return i.composedPath();for(var a=[],d=i.target;d;)a.push(d),d=d.parentNode;return a}function Tp(i,a){if(!a)return new G(i.clientX,i.clientY);var d=Vd(a),h=d.boundingClientRect;return new G((i.clientX-h.left)/d.x-a.clientLeft,(i.clientY-h.top)/d.y-a.clientTop)}var vy=we.linux&&we.chrome?window.devicePixelRatio:we.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Sp(i){return we.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/vy:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function qd(i,a){var d=a.relatedTarget;if(!d)return!0;try{for(;d&&d!==i;)d=d.parentNode}catch{return!1}return d!==i}var by={__proto__:null,on:Ve,off:ut,stopPropagation:Pi,disableScrollPropagation:Zd,disableClickPropagation:Do,preventDefault:Vt,stop:Ii,getPropagationPath:Ep,getMousePosition:Tp,getWheelDelta:Sp,isExternalTarget:qd,addListener:Ve,removeListener:ut},Cp=fe.extend({run:function(i,a,d,h){this.stop(),this._el=i,this._inProgress=!0,this._duration=d||.25,this._easeOutPower=1/Math.max(h||.5,.2),this._startPos=Ai(i),this._offset=a.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=V(this._animate,this),this._step()},_step:function(i){var a=+new Date-this._startTime,d=this._duration*1e3;a<d?this._runFrame(this._easeOut(a/d),i):(this._runFrame(1),this._complete())},_runFrame:function(i,a){var d=this._startPos.add(this._offset.multiplyBy(i));a&&d._round(),Ct(this._el,d),this.fire("step")},_complete:function(){I(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),st=fe.extend({options:{crs:R,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(i,a){a=C(this,a),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),a.maxBounds&&this.setMaxBounds(a.maxBounds),a.zoom!==void 0&&(this._zoom=this._limitZoom(a.zoom)),a.center&&a.zoom!==void 0&&this.setView(Ce(a.center),a.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Io&&we.any3d&&!we.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ve(this._proxy,xp,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
1446,setView:function(i,a,d){if(a=a===void 0?this._zoom:this._limitZoom(a),i=this._limitCenter(Ce(i),a,this.options.maxBounds),d=d||{},this._stop(),this._loaded&&!d.reset&&d!==!0){d.animate!==void 0&&(d.zoom=r({animate:d.animate},d.zoom),d.pan=r({animate:d.animate,duration:d.duration},d.pan));var h=this._zoom!==a?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,a,d.zoom):this._tryAnimatedPan(i,d.pan);if(h)return clearTimeout(this._sizeTimer),this}return this._resetView(i,a,d.pan&&d.pan.noMoveStart),this},setZoom:function(i,a){return this._loaded?this.setView(this.getCenter(),i,{zoom:a}):(this._zoom=i,this)},zoomIn:function(i,a){return i=i||(we.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,a)},zoomOut:function(i,a){return i=i||(we.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,a)},setZoomAround:function(i,a,d){var h=this.getZoomScale(a),g=this.getSize().divideBy(2),E=i instanceof G?i:this.latLngToContainerPoint(i),B=E.subtract(g).multiplyBy(1-1/h),q=this.containerPointToLatLng(g.add(B));return this.setView(q,a,{zoom:d})},_getBoundsCenterZoom:function(i,a){a=a||{},i=i.getBounds?i.getBounds():We(i);var d=ve(a.paddingTopLeft||a.padding||[0,0]),h=ve(a.paddingBottomRight||a.padding||[0,0]),g=this.getBoundsZoom(i,!1,d.add(h));if(g=typeof a.maxZoom=="number"?Math.min(a.maxZoom,g):g,g===1/0)return{center:i.getCenter(),zoom:g};
1446var E=h.subtract(d).divideBy(2),B=this.project(i.getSouthWest(),g),q=this.project(i.getNorthEast(),g),Q=this.unproject(B.add(q).divideBy(2).add(E),g);return{center:Q,zoom:g}},fitBounds:function(i,a){if(i=We(i),!i.isValid())throw new Error("Bounds are not valid.");var d=this._getBoundsCenterZoom(i,a);return this.setView(d.center,d.zoom,a)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,a){return this.setView(i,this._zoom,{pan:a})},panBy:function(i,a){if(i=ve(i).round(),a=a||{},!i.x&&!i.y)return this.fire("moveend");if(a.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Cp,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),a.noMoveStart||this.fire("movestart"),a.animate!==!1){Ze(this._mapPane,"leaflet-pan-anim");var d=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,d,a.duration||.25,a.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,a,d){if(d=d||{},d.animate===!1||!we.any3d)return this.setView(i,a,d);this._stop();var h=this.project(this.getCenter()),g=this.project(i),E=this.getSize(),B=this._zoom;i=Ce(i),a=a===void 0?B:a;var q=Math.max(E.x,E.y),Q=q*this.getZoomScale(B,a),le=g.distanceTo(h)||1,xe=1.42,Oe=xe*xe;function qe(At){var gl=At?-1:1,aw=At?Q:q,lw=Q*Q-q*q+gl*Oe*Oe*le*le,cw=2*aw*Oe*le,iu=lw/cw,am=Math.sqrt(iu*iu+1)-iu,dw=am<1e-9?-18:Math.log(am);return dw}function ss(At){return(Math.exp(At)-Math.exp(-At))/2}function Bt(At){return(Math.exp(At)+Math.exp(-At))/2}function Ds(At){return ss(At)/Bt(At)}var ds=qe(0);function Sr(At){return q*(Bt(ds)/Bt(ds+xe*At))}function nw(At){return q*(Bt(ds)*Ds(ds+xe*At)-ss(ds))/Oe}function iw(At){return 1-Math.pow(1-At,1.5)}var rw=Date.now(),rm=(qe(1)-ds)/xe,ow=d.duration?1e3*d.duration:1e3*rm*.8;function om(){var At=(Date.now()-rw)/ow,gl=iw(At)*rm;At<=1?(this._flyToFrame=V(om,this),this._move(this.unproject(h.add(g.subtract(h).multiplyBy(nw(gl)/le)),B),this.get
1446ScaleZoom(q/Sr(gl),B),{flyTo:!0})):this._move(i,a)._moveEnd(!0)}return this._moveStart(!0,d.noMoveStart),om.call(this),this},flyToBounds:function(i,a){var d=this._getBoundsCenterZoom(i,a);return this.flyTo(d.center,d.zoom,a)},setMaxBounds:function(i){return i=We(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var a=this.options.minZoom;return this.options.minZoom=i,this._loaded&&a!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var a=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&a!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,a){this._enforcingBounds=!0;var d=this.getCenter(),h=this._limitCenter(d,this._zoom,We(i));return d.equals(h)||this.panTo(h,a),this._enforcingBounds=!1,this},panInside:function(i,a){a=a||{};var d=ve(a.paddingTopLeft||a.padding||[0,0]),h=ve(a.paddingBottomRight||a.padding||[0,0]),g=this.project(this.getCenter()),E=this.project(i),B=this.getPixelBounds(),q=Ue([B.min.add(d),B.max.subtract(h)]),Q=q.getSize();if(!q.contains(E)){this._enforcingBounds=!0;var le=E.subtract(q.getCenter()),xe=q.extend(E).getSize().subtract(Q);g.x+=le.x<0?-xe.x:xe.x,g.y+=le.y<0?-xe.y:xe.y,this.panTo(this.unproject(g),a),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=r({animate:!1,pan:!0},i===!0?{animate:!0}:i);var a=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var d=this.getSize(),h=a.divideBy(2).round(),g=d.divideBy(2).round(),E=h.subtract(g);return!E.x&&!E.y?this:(i.animate&&i.pan?this.panBy(E):(i.pan&&this._rawPanBy(E),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:a,newSize:d}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=r({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var a=c(this._handleGeolocationResponse,this),d=c(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(a,d,i):navigator.geolocation.getCurrentPosition(a,d,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var a=i.code,d=i.message||(a===1?"permission denied":a===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:a,message:"Geolocation error: "+d+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var a=i.coords.latitude,d=i.coords.longitude,h=new Ee(a,d),g=h.toBounds(i.coords.accuracy*2),E=this._locateOptions;if(E.setView){var B=this.getBoundsZoom(g);this.setView(h,E.maxZoom?Math.min(B,E.maxZoom):B)}var q={latlng:h,bounds:g,timestamp:i.timestamp};for(var Q in i.coords)typeof i.coords[Q]=="number"&&(q[Q]=i.coords[Q]);this.fire("locationfound",q)}},addHandler:function(i,a){if(!a)return this;var d=this[i]=new a(this);return this._handlers.push(d),this.options[i]&&d.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),gt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(I(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)gt(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,a){var d="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),h=it("div",d,a||this._mapPane);return i&&(this._panes[i]=h),h},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),a=this.unproject(i.getBottomLeft()),d=this.unproject(i.getTopRight());return new rt(a,d)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
1446om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(i,a,d){i=We(i),d=ve(d||[0,0]);var h=this.getZoom()||0,g=this.getMinZoom(),E=this.getMaxZoom(),B=i.getNorthWest(),q=i.getSouthEast(),Q=this.getSize().subtract(d),le=Ue(this.project(q,h),this.project(B,h)).getSize(),xe=we.any3d?this.options.zoomSnap:1,Oe=Q.x/le.x,qe=Q.y/le.y,ss=a?Math.max(Oe,qe):Math.min(Oe,qe);return h=this.getScaleZoom(ss,h),xe&&(h=Math.round(h/(xe/100))*(xe/100),h=a?Math.ceil(h/xe)*xe:Math.floor(h/xe)*xe),Math.max(g,Math.min(E,h))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,a){var d=this._getTopLeftPoint(i,a);return new $e(d,d.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,a){var d=this.options.crs;return a=a===void 0?this._zoom:a,d.scale(i)/d.scale(a)},getScaleZoom:function(i,a){var d=this.options.crs;a=a===void 0?this._zoom:a;var h=d.zoom(i*d.scale(a));return isNaN(h)?1/0:h},project:function(i,a){return a=a===void 0?this._zoom:a,this.options.crs.latLngToPoint(Ce(i),a)},unproject:function(i,a){return a=a===void 0?this._zoom:a,this.options.crs.pointToLatLng(ve(i),a)},layerPointToLatLng:function(i){var a=ve(i).add(this.getPixelOrigin());return this.unproject(a)},latLngToLayerPoint:function(i){var a=this.project(Ce(i))._round();return a._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(Ce(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(We(i))},distance:function(i,a){return this.options.crs.distance(Ce(i),Ce(a))},containerPointToLayerPoint:function(i){return ve(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return ve(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var a=this.containerPointToLayerPoint(ve(i));
1446return this.layerPointToLatLng(a)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Ce(i)))},mouseEventToContainerPoint:function(i){return Tp(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var a=this._container=yp(i);if(a){if(a._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ve(a,"scroll",this._onScroll,this),this._containerId=f(a)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&we.any3d,Ze(i,"leaflet-container"+(we.touch?" leaflet-touch":"")+(we.retina?" leaflet-retina":"")+(we.ielt9?" leaflet-oldie":"")+(we.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var a=Lo(i,"position");a!=="absolute"&&a!=="relative"&&a!=="fixed"&&a!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ct(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ze(i.markerPane,"leaflet-zoom-hide"),Ze(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,a,d){Ct(this._mapPane,new G(0,0));var h=!this._loaded;this._loaded=!0,a=this._limitZoom(a),this.fire("viewprereset");var g=this._zoom!==a;this._moveStart(g,d)._move(i,a)._moveEnd(g),this.fire("viewreset"),h&&this.fire("load")},_moveStart:function(i,a){return i&&this.fire("zoomstart"),a||this.fire("movestart"),this},_move:function(i,a,d,h){a===void 0&&(a=this._zoom);var g=this._zoom!==a;return this._zoom=a,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),h?d&&d.pinch&&this.fire("zoom",d):((g||d&&d.pinch)&&this.fire("zoom",d),this.fire("move",d)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return I(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){Ct(this._mapPane,this._getMapPanePos().subtract(i))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(i){this._targets={},this._targets[f(this._container)]=this;var a=i?ut:Ve;a(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&a(window,"resize",this._onResize,this),we.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){I(this._resizeRequest),this._resizeRequest=V(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,a){for(var d=[],h,g=a==="mouseout"||a==="mouseover",E=i.target||i.srcElement,B=!1;E;){if(h=this._targets[f(E)],h&&(a==="click"||a==="preclick")&&this._draggableMoved(h)){B=!0;break}if(h&&h.listens(a,!0)&&(g&&!qd(E,i)||(d.push(h),g))||E===this._container)break;E=E.parentNode}return!d.length&&!B&&!g&&this.listens(a,!0)&&(d=[this]),d},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var a=i.target||i.srcElement;if(!(!this._loaded||a._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(a))){var d=i.type;d==="mousedown"&&jd(a),this._fireDOMEvent(i,d)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,a,d){if(i.type==="click"){var h=r({},i);h.type="preclick",this._fireDOMEvent(h,h.type,d)}var g=this._findEventTargets(i,a);if(d){for(var E=[],B=0;B<d.length;B++)d[B].listens(a,!0)&&E.push(d[B]);g=E.concat(g)}if(g.length){a==="contextmenu"&&Vt(i);var q=g[0],Q={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var le=q.getLatLng&&(!q._radius||q._radius<=10);Q.containerPoint=le?this.latLngToContainerPoint(q.getLatLng()):this.mouseEventToContainerPoint(i),Q.layerPoint=this.containerPointToLayerPoint(Q.containerPoint),Q.latlng=le?q.getLatLng():this.layerPointToLatLng(Q.layerPoint)}for(B=0;B<g.length;B++)if(g[B].fire(a,Q,!0),Q.originalEvent._stopped||g[B].options.bubblingMouseEvents===!1&&$(this._mouseEvents,a)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,a=this._handlers.length;i<a;i++)this._handlers[i].disable()},whenReady:function(i,a){return this._loaded?i.call(a||this,{target:this}):this.on("load",i,a),this},_getMapPanePos:function(){return Ai(this._mapPane)||new G(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,a){var d=i&&a!==void 0?this._getNewPixelOrigin(i,a):this.getPixelOrigin();return d.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,a){var d=this.getSize()._divideBy(2);return this.project(i,a)._subtract(d)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,a,d){var h=this._getNewPixelOrigin(d,a);return this.project(i,a)._subtract(h)},_latLngBoundsToNewLayerBounds:function(i,a,d){var h=this._getNewPixelOrigin(d,a);
1446return Ue([this.project(i.getSouthWest(),a)._subtract(h),this.project(i.getNorthWest(),a)._subtract(h),this.project(i.getSouthEast(),a)._subtract(h),this.project(i.getNorthEast(),a)._subtract(h)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,a,d){if(!d)return i;var h=this.project(i,a),g=this.getSize().divideBy(2),E=new $e(h.subtract(g),h.add(g)),B=this._getBoundsOffset(E,d,a);return Math.abs(B.x)<=1&&Math.abs(B.y)<=1?i:this.unproject(h.add(B),a)},_limitOffset:function(i,a){if(!a)return i;var d=this.getPixelBounds(),h=new $e(d.min.add(i),d.max.add(i));return i.add(this._getBoundsOffset(h,a))},_getBoundsOffset:function(i,a,d){var h=Ue(this.project(a.getNorthEast(),d),this.project(a.getSouthWest(),d)),g=h.min.subtract(i.min),E=h.max.subtract(i.max),B=this._rebound(g.x,-E.x),q=this._rebound(g.y,-E.y);return new G(B,q)},_rebound:function(i,a){return i+a>0?Math.round(i-a)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(a))},_limitZoom:function(i){var a=this.getMinZoom(),d=this.getMaxZoom(),h=we.any3d?this.options.zoomSnap:1;return h&&(i=Math.round(i/h)*h),Math.max(a,Math.min(d,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,a){var d=this._getCenterOffset(i)._trunc();return(a&&a.animate)!==!0&&!this.getSize().contains(d)?!1:(this.panBy(d,a),!0)},_createAnimProxy:function(){var i=this._proxy=it("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(a){var d=$d,h=this._proxy.style[d];Ci(this._proxy,this.project(a.center,a.zoom),this.getZoomScale(a.zoom,1)),h===this._proxy.style[d]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){gt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),a=this.getZoom();Ci(this._proxy,this.project(i,a),this.getZoomScale(a,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,a,d){if(this._animatingZoom)return!0;if(d=d||{},!this._zoomAnimated||d.animate===!1||this._nothingToAnimate()||Math.abs(a-this._zoom)>this.options.zoomAnimationThreshold)return!1;var h=this.getZoomScale(a),g=this._getCenterOffset(i)._divideBy(1-1/h);return d.animate!==!0&&!this.getSize().contains(g)?!1:(V(function(){this._moveStart(!0,d.noMoveStart||!1)._animateZoom(i,a,!0)},this),!0)},_animateZoom:function(i,a,d,h){this._mapPane&&(d&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=a,Ze(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:a,noUpdate:h}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&yt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function xy(i,a){return new st(i,a)}var qs=ee.extend({options:{position:"topright"},initialize:function(i){C(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var a=this._map;return a&&a.removeControl(this),this.options.position=i,a&&a.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var a=this._container=this.onAdd(i),d=this.getPosition(),h=i._controlCorners[d];return Ze(a,"leaflet-control"),d.indexOf("bottom")!==-1?h.insertBefore(a,h.firstChild):h.appendChild(a),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(gt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),Mo=function(i){return new qs(i)};st.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this}
vendor: 4,535 bytes, line 1446
1446,_initControlPos:function(){var i=this._controlCorners={},a="leaflet-",d=this._controlContainer=it("div",a+"control-container",this._container);function h(g,E){var B=a+g+" "+a+E;i[g+E]=it("div",B,d)}h("top","left"),h("top","right"),h("bottom","left"),h("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)gt(this._controlCorners[i]);gt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ap=qs.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,a,d,h){return d<h?-1:h<d?1:0}},initialize:function(i,a,d){C(this,d),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var h in i)this._addLayer(i[h],h);for(h in a)this._addLayer(a[h],h,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return qs.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,a){return this._addLayer(i,a),this._map?this._update():this},addOverlay:function(i,a){return this._addLayer(i,a,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var a=this._getLayer(f(i));return a&&this._layers.splice(this._layers.indexOf(a),1),this._map?this._update():this},expand:function(){Ze(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(Ze(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",a=this._container=it("div",i),d=this.options.collapsed;a.setAttribute("aria-haspopup",!0),Do(a),Zd(a);var h=this._section=it("section",i+"-list");d&&(this._map.on("click",this.collapse,this),Ve(a,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var g=this._layersLink=it("a",i+"-toggle",a);g.href="#",g.title="Layers",g.setAttribute("role","button"),Ve(g,{keydown:function(E){E.keyCode===13&&this._expandSafely()},click:function(E){Vt(E),this._expandSafely()}},this),d||this.expand(),this._baseLayersList=it("div",i+"-base",h),this._separator=it("div",i+"-separator",h),this._overlaysList=it("div",i+"-overlays",h),a.appendChild(h)},_getLayer:function(i){for(var a=0;a<this._layers.length;a++)if(this._layers[a]&&f(this._layers[a].layer)===i)return this._layers[a]},_addLayer:function(i,a,d){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:a,overlay:d}),this.options.sortLayers&&this._layers.sort(c(function(h,g){return this.options.sortFunction(h.layer,g.layer,h.name,g.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;tl(this._baseLayersList),tl(this._overlaysList),this._layerControlInputs=[];var i,a,d,h,g=0;for(d=0;d<this._layers.length;d++)h=this._layers[d],this._addItem(h),a=a||h.overlay,i=i||!h.overlay,g+=h.overlay?0:1;return this.options.hideSingleBase&&(i=i&&g>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=a&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var a=this._getLayer(f(i.target)),d=a.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;d&&this._map.fire(d,a)},_createRadioElement:function(i,a){var d='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(a?' checked="checked"':"")+"/>",h=document.createElement("div");return h.innerHTML=d,h.firstChild},_addItem:function(i){var a=document.createElement("label"),d=this._map.hasLayer(i.layer),h;i.overlay?(h=document.createElement("input"),h.type="checkbox",h.className="leaflet-control-layers-selector",h.defaultChecked=d):h=this._createRadioElement("leaflet-base-layers_"+f(this),d),this._layerControlInputs.push(h),h.layerId=f(i.layer),
1446Ve(h,"click",this._onInputClick,this);var g=document.createElement("span");g.innerHTML=" "+i.name;var E=document.createElement("span");a.appendChild(E),E.appendChild(h),E.appendChild(g);var B=i.overlay?this._overlaysList:this._baseLayersList;return B.appendChild(a),this._checkDisabledLayers(),a},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,a,d,h=[],g=[];this._handlingClick=!0;for(var E=i.length-1;E>=0;E--)a=i[E],d=this._getLayer(a.layerId).layer,a.checked?h.push(d):a.checked||g.push(d);for(E=0;E<g.length;E++)this._map.hasLayer(g[E])&&this._map.removeLayer(g[E]);for(E=0;E<h.length;E++)this._map.hasLayer(h[E])||this._map.addLayer(h[E]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,a,d,h=this._map.getZoom(),g=i.length-1;g>=0;g--)a=i[g],d=this._getLayer(a.layerId).layer,a.disabled=d.options.minZoom!==void 0&&h<d.options.minZoom||d.options.maxZoom!==void 0&&h>d.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,Ve(i,"click",Vt),this.expand();var a=this;setTimeout(function(){ut(i,"click",Vt),a._preventClick=!1})}}),yy=function(i,a,d){return new Ap(i,a,d)},Kd=qs.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var a="leaflet-control-zoom",d=it("div",a+" leaflet-bar"),h=this.options;return this._zoomInButton=this._createButton(h.zoomInText,h.zoomInTitle,a+"-in",d,this._zoomIn),this._zoomOutButton=this._createButton(h.zoomOutText,h.zoomOutTitle,a+"-out",d,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),d},onRemove:function(i){i.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,a,d,h,g){var E=it("a",d,h);return E.innerHTML=i,E.href="#",E.title=a,E.setAttribute("role","button"),E.setAttribute("aria-label",a),Do(E),Ve(E,"click",Ii),Ve(E,"click",g,this),Ve(E,"click",this._refocusOnMap,this),E},_updateDisabled:function(){var i=this._map,a="leaflet-disabled";yt(this._zoomInButton,a),yt(this._zoomOutButton,a),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(Ze(this._zoomOutButton,a),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(Ze(this._zoomInButton,a),this._zoomInButton.setAttribute("aria-disabled","true"))}});st.mergeOptions({zoomControl:!0}),st.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Kd,this.addControl(this.zoomControl))});var wy=function(i){return new Kd(i)},Pp=qs.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var a="leaflet-control-scale",d=it("div",a),h=this.options;return this._addScales(h,a+"-line",d),i.on(h.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),d},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,a,d){i.metric&&(this._mScale=it("div",a,d)),i.imperial&&(this._iScale=it("div",a,d))},_update:function(){var i=this._map,a=i.getSize().y/2,d=i.distance(i.containerPointToLatLng([0,a]),i.containerPointToLatLng([this.options.maxWidth,a]));this._updateScales(d)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var a=this._getRoundNum(i),d=a<1e3?a+" m":a/1e3+" km";this._updateScale(this._mScale,d,a/i)},_updateImperial:function(i){var a=i*3.2808399,d,h,g;a>5280?(d=a/5280,h=this._getRoundNum(d),this._updateScale(this._iScale,h+" mi",h/d)):(g=this._getRoundNum(a),this._updateScale(this._iScale,g+" ft",g/a))},_updateScale:function(i,a,d){i.style.width=Math.round(this.options.maxWidth*d)+"px",i.innerHTML=a},_getRoundNum:function(i){var a=Math.pow(10,(Math.floor(i)+"").length-1),d=i/a;return d=d>=10?10:d>=5?5:d>=3?3:d>=2?2:1,a*d}}),ky=function(i){return new Pp(i)},Ey='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Gd=qs.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(we.inlineSvg?Ey+" ":"")+"Leaflet</a>"},initialize:function(i){C(this,i),this._attributions={}}
1446,onAdd:function(i){i.attributionControl=this,this._container=it("div","leaflet-control-attribution"),Do(this._container);for(var a in i._layers)i._layers[a].getAttribution&&this.addAttribution(i._layers[a].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var a in this._attributions)this._attributions[a]&&i.push(a);var d=[];this.options.prefix&&d.push(this.options.prefix),i.length&&d.push(i.join(", ")),this._container.innerHTML=d.join(' <span aria-hidden="true">|</span> ')}}});st.mergeOptions({attributionControl:!0}),st.addInitHook(function(){this.options.attributionControl&&new Gd().addTo(this)});var Ty=function(i){return new Gd(i)};qs.Layers=Ap,qs.Zoom=Kd,qs.Scale=Pp,qs.Attribution=Gd,Mo.layers=yy,Mo.zoom=wy,Mo.scale=ky,Mo.attribution=Ty;var rn=ee.extend({initialize:function(i){this._map=i},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});rn.addTo=function(i,a){return i.addHandler(a,this),this};var Sy={Events:ne},Ip=we.touch?"touchstart mousedown":"mousedown",Gn=fe.extend({options:{clickTolerance:3},initialize:function(i,a,d,h){C(this,h),this._element=i,this._dragStartTarget=a||i,this._preventOutline=d},enable:function(){this._enabled||(Ve(this._dragStartTarget,Ip,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Gn._dragging===this&&this.finishDrag(!0),ut(this._dragStartTarget,Ip,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!Dd(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){Gn._dragging===this&&this.finishDrag();return}if(!(Gn._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(Gn._dragging=this,this._preventOutline&&jd(this._element),Bd(),Oo(),!this._moving)){this.fire("down");var a=i.touches?i.touches[0]:i,d=wp(this._element);this._startPoint=new G(a.clientX,a.clientY),this._startPos=Ai(this._element),this._parentScale=Vd(d);var h=i.type==="mousedown";Ve(document,h?"mousemove":"touchmove",this._onMove,this),Ve(document,h?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var a=i.touches&&i.touches.length===1?i.touches[0]:i,d=new G(a.clientX,a.clientY)._subtract(this._startPoint);!d.x&&!d.y||Math.abs(d.x)+Math.abs(d.y)<this.options.clickTolerance||(d.x/=this._parentScale.x,d.y/=this._parentScale.y,Vt(i),this._moved||(this.fire("dragstart"),this._moved=!0,Ze(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Ze(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(d),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),Ct(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){yt(document.body,"leaflet-dragging"),this._lastTarget&&(yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ut(document,"mousemove touchmove",this._onMove,this),ut(document,"mouseup touchend touchcancel",this._onUp,this),Fd(),No();var a=this._moved&&this._moving;this._moving=!1,Gn._dragging=!1,a&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function Lp(i,a,d){var h,g=[1,4,2,8],E,B,q,Q,le,xe,Oe,qe;for(E=0,xe=i.length;E<xe;E++)i[E]._code=Li(i[E],a);for(q=0;q<4;q++){for(Oe=g[q],h=[],E=0,xe=i.length,B=xe-1;E<xe;B=E++)Q=i[E],le=i[B],Q._code&Oe?le._code&Oe||(qe=ol(le,Q,Oe,a,d),qe._code=Li(qe,a),h.push(qe)):(le._code&Oe&&(qe=ol(le,Q,Oe,a,d),qe._code=Li(qe,a),h.push(qe)),h.push(Q));i=h}return i}function Op(i,a){var d,h,g,E,B,q,Q,le,xe;if(!i||i.length===0)throw new Error("latlngs not passed");$s(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var Oe=Ce([0,0]),qe=We(i),ss=qe.getNorthWest().distanceTo(qe.getSouthWest
1446())*qe.getNorthEast().distanceTo(qe.getNorthWest());ss<1700&&(Oe=Yd(i));var Bt=i.length,Ds=[];for(d=0;d<Bt;d++){var ds=Ce(i[d]);Ds.push(a.project(Ce([ds.lat-Oe.lat,ds.lng-Oe.lng])))}for(q=Q=le=0,d=0,h=Bt-1;d<Bt;h=d++)g=Ds[d],E=Ds[h],B=g.y*E.x-E.y*g.x,Q+=(g.x+E.x)*B,le+=(g.y+E.y)*B,q+=B*3;q===0?xe=Ds[0]:xe=[Q/q,le/q];var Sr=a.unproject(ve(xe));return Ce([Sr.lat+Oe.lat,Sr.lng+Oe.lng])}function Yd(i){for(var a=0,d=0,h=0,g=0;g<i.length;g++){var E=Ce(i[g]);a+=E.lat,d+=E.lng,h++}return Ce([a/h,d/h])}var Cy={__proto__:null,clipPolygon:Lp,polygonCenter:Op,centroid:Yd};function Np(i,a){if(!a||!i.length)return i.slice();var d=a*a;return i=Iy(i,d),i=Py(i,d),i}function $p(i,a,d){return Math.sqrt(Ro(i,a,d,!0))}function Ay(i,a,d){return Ro(i,a,d)}function Py(i,a){var d=i.length,h=typeof Uint8Array<"u"?Uint8Array:Array,g=new h(d);g[0]=g[d-1]=1,Jd(i,g,a,0,d-1);var E,B=[];for(E=0;E<d;E++)g[E]&&B.push(i[E]);return B}function Jd(i,a,d,h,g){var E=0,B,q,Q;for(q=h+1;q<=g-1;q++)Q=Ro(i[q],i[h],i[g],!0),Q>E&&(B=q,E=Q);E>d&&(a[B]=1,Jd(i,a,d,h,B),Jd(i,a,d,B,g))}function Iy(i,a){for(var d=[i[0]],h=1,g=0,E=i.length;h<E;h++)Ly(i[h],i[g])>a&&(d.push(i[h]),g=h);return g<E-1&&d.push(i[E-1]),d}var Dp;function Mp(i,a,d,h,g){var E=h?Dp:Li(i,d),B=Li(a,d),q,Q,le;for(Dp=B;;){if(!(E|B))return[i,a];if(E&B)return!1;q=E||B,Q=ol(i,a,q,d,g),le=Li(Q,d),q===E?(i=Q,E=le):(a=Q,B=le)}}function ol(i,a,d,h,g){var E=a.x-i.x,B=a.y-i.y,q=h.min,Q=h.max,le,xe;return d&8?(le=i.x+E*(Q.y-i.y)/B,xe=Q.y):d&4?(le=i.x+E*(q.y-i.y)/B,xe=q.y):d&2?(le=Q.x,xe=i.y+B*(Q.x-i.x)/E):d&1&&(le=q.x,xe=i.y+B*(q.x-i.x)/E),new G(le,xe,g)}function Li(i,a){var d=0;return i.x<a.min.x?d|=1:i.x>a.max.x&&(d|=2),i.y<a.min.y?d|=4:i.y>a.max.y&&(d|=8),d}function Ly(i,a){var d=a.x-i.x,h=a.y-i.y;return d*d+h*h}function Ro(i,a,d,h){var g=a.x,E=a.y,B=d.x-g,q=d.y-E,Q=B*B+q*q,le;return Q>0&&(le=((i.x-g)*B+(i.y-E)*q)/Q,le>1?(g=d.x,E=d.y):le>0&&(g+=B*le,E+=q*le)),B=i.x-g,q=i.y-E,h?B*B+q*q:new G(g,E)}function $s(i){return!P(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]<"u"}function Rp(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),$s(i)}function Bp(i,a){var d,h,g,E,B,q,Q,le;if(!i||i.length===0)throw new Error("latlngs not passed");$s(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var xe=Ce([0,0]),Oe=We(i),qe=Oe.getNorthWest().distanceTo(Oe.getSouthWest
1446())*Oe.getNorthEast().distanceTo(Oe.getNorthWest());qe<1700&&(xe=Yd(i));var ss=i.length,Bt=[];for(d=0;d<ss;d++){var Ds=Ce(i[d]);Bt.push(a.project(Ce([Ds.lat-xe.lat,Ds.lng-xe.lng])))}for(d=0,h=0;d<ss-1;d++)h+=Bt[d].distanceTo(Bt[d+1])/2;if(h===0)le=Bt[0];else for(d=0,E=0;d<ss-1;d++)if(B=Bt[d],q=Bt[d+1],g=B.distanceTo(q),E+=g,E>h){Q=(E-h)/g,le=[q.x-Q*(q.x-B.x),q.y-Q*(q.y-B.y)];break}var ds=a.unproject(ve(le));return Ce([ds.lat+xe.lat,ds.lng+xe.lng])}var Oy={__proto__:null,simplify:Np,pointToSegmentDistance:$p,closestPointOnSegment:Ay,clipSegment:Mp,_getEdgeIntersection:ol,_getBitCode:Li,_sqClosestPointOnSegment:Ro,isFlat:$s,_flat:Rp,polylineCenter:Bp},Xd={project:function(i){return new G(i.lng,i.lat)},unproject:function(i){return new Ee(i.y,i.x)},bounds:new $e([-180,-90],[180,90])},Qd={R:6378137,R_MINOR:6356752314245179e-9,bounds:new $e([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var a=Math.PI/180,d=this.R,h=i.lat*a,g=this.R_MINOR/d,E=Math.sqrt(1-g*g),B=E*Math.sin(h),q=Math.tan(Math.PI/4-h/2)/Math.pow((1-B)/(1+B),E/2);return h=-d*Math.log(Math.max(q,1e-10)),new G(i.lng*a*d,h)},unproject:function(i){for(var a=180/Math.PI,d=this.R,h=this.R_MINOR/d,g=Math.sqrt(1-h*h),E=Math.exp(-i.y/d),B=Math.PI/2-2*Math.atan(E),q=0,Q=.1,le;q<15&&Math.abs(Q)>1e-7;q++)le=g*Math.sin(B),le=Math.pow((1-le)/(1+le),g/2),Q=Math.PI/2-2*Math.atan(E*le)-B,B+=Q;return new Ee(B*a,i.x*a/d)}},Ny={__proto__:null,LonLat:Xd,Mercator:Qd,SphericalMercator:_t},$y=r({},nt,{code:"EPSG:3395",projection:Qd,transformation:(function(){var i=.5/(Math.PI*Qd.R);return St(i,.5,-i,.5)})()}),Fp=r({},nt,{code:"EPSG:4326",projection:Xd,transformation:St(1/180,1,-1/180,.5)}),Dy=r({},Ge,{projection:Xd,transformation:St(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,a){var d=a.lng-i.lng,h=a.lat-i.lat;return Math.sqrt(d*d+h*h)},infinite:!0});Ge.Earth=nt,Ge.EPSG3395=$y,Ge.EPSG3857=R,Ge.EPSG900913=H,Ge.EPSG4326=Fp,Ge.Simple=Dy;var Ks=fe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[f(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[f(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var a=i.target;if(a.hasLayer(this)){if(this._map=a,this._zoomAnimated=a._zoomAnimated,this.getEvents){var d=this.getEvents();a.on(d,this),this.once("remove",function(){a.off(d,this)},this)}this.onAdd(a),this.fire("add"),a.fire("layeradd",{layer:this})}}});st.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var a=f(i);return this._layers[a]?this:(this._layers[a]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var a=f(i);return this._layers[a]?(this._loaded&&i.onRemove(this),delete this._layers[a],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return f(i)in this._layers},eachLayer:function(i,a){for(var d in this._layers)i.call(a,this._layers[d]);return this},_addLayers:function(i){i=i?P(i)?i:[i]:[];for(var a=0,d=i.length;a<d;a++)this.addLayer(i[a])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[f(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var a=f(i);this._zoomBoundLayers[a]&&(delete this._zoomBoundLayers[a],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,a=-1/0,d=this._getZoomSpan();for(var h in this._zoomBoundLayers){var g=this._zoomBoundLayers[h].options;i=g.minZoom===void 0?i:Math.min(i,g.minZoom),a=g.maxZoom===void 0?a:Math.max(a,g.maxZoom)}this._layersMaxZoom=a===-1/0?void 0:a,this._layersMinZoom=i===1/0?void 0:i,d!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
1446om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var yr=Ks.extend({initialize:function(i,a){C(this,a),this._layers={};var d,h;if(i)for(d=0,h=i.length;d<h;d++)this.addLayer(i[d])},addLayer:function(i){var a=this.getLayerId(i);return this._layers[a]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var a=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[a]&&this._map.removeLayer(this._layers[a]),delete this._layers[a],this},hasLayer:function(i){var a=typeof i=="number"?i:this.getLayerId(i);return a in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var a=Array.prototype.slice.call(arguments,1),d,h;for(d in this._layers)h=this._layers[d],h[i]&&h[i].apply(h,a);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,a){for(var d in this._layers)i.call(a,this._layers[d]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return f(i)}}),My=function(i,a){return new yr(i,a)},wn=yr.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),yr.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),yr.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new rt;for(var a in this._layers){var d=this._layers[a];i.extend(d.getBounds?d.getBounds():d.getLatLng())}return i}}),Ry=function(i,a){return new wn(i,a)},wr=ee.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){C(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,a){var d=this._getIconUrl(i);if(!d){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var h=this._createImg(d,a&&a.tagName==="IMG"?a:null);return this._setIconStyles(h,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),h},_setIconStyles:function(i,a){var d=this.options,h=d[a+"Size"];typeof h=="number"&&(h=[h,h]);var g=ve(h),E=ve(a==="shadow"&&d.shadowAnchor||d.iconAnchor||g&&g.divideBy(2,!0));i.className="leaflet-marker-"+a+" "+(d.className||""),E&&(i.style.marginLeft=-E.x+"px",i.style.marginTop=-E.y+"px"),g&&(i.style.width=g.x+"px",i.style.height=g.y+"px")},_createImg:function(i,a){return a=a||document.createElement("img"),a.src=i,a},_getIconUrl:function(i){return we.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function By(i){return new wr(i)}var Bo=wr.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(i){return typeof Bo.imagePath!="string"&&(Bo.imagePath=this._detectIconPath()),(this.options.imagePath||Bo.imagePath)+wr.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var a=function(d,h,g){var E=h.exec(d);return E&&E[g]};return i=a(i,/^url\((['"])?(.+)\1\)$/,2),i&&a(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=it("div","leaflet-default-icon-path",document.body),a=Lo(i,"background-image")||Lo(i,"backgroundImage");if(document.body.removeChild(i),a=this._stripUrl(a),a)return a;var d=document.querySelector('link[href$="leaflet.css"]');return d?d.href.substring(0,d.href.length-11-1):""}}),Up=rn.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new Gn(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Ze(i,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var a=this._marker,d=a._map,h=this._marker.options.autoPanSpeed,g=this._marker.options.autoPanPadding,E=Ai(a._icon),B=d.getPixelBounds(),q=d.getPixelOrigin(),Q=Ue(B.min._subtract(q).add(g),B.max._subtract(q).subtract(g));if(!Q.contains(E)){var le=ve((Math.max(Q.max.x,E.x)-Q.max.x)/(B.max.x-Q.max.x)-(Math.min(Q.min.x,E.x)-Q.min.x)/(B.min.x-Q.min.x),(Math.max(Q.max.y,E.y)-Q.max.y)/(B.max.y-Q.max.y)-(Math.min(Q.min.y,E.y)-Q.min.y)/(B.min.y-Q.min.y)).multiplyBy(h);d.panBy(le,{animate:!1}),this._draggable._newPos._add(le),this._draggable._startPos._add(le),Ct(a._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=V(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(I(this._panRequest),this._panRequest=V(this._adjustPan.bind(this,i)))},_onDrag:function(i){var a=this._marker,d=a._shadow,h=Ai(a._icon),g=a._map.layerPointToLatLng(h);d&&Ct(d,h),a._latlng=g,i.latlng=g,i.oldLatLng=this._oldLatLng,a.fire("move",i).fire("drag",i)},_onDragEnd:function(i){I(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),al=Ks.extend({options:{icon:new Bo,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(i,a){C(this,a),this._latlng=Ce(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(i){var a=this._latlng;return this._latlng=Ce(i),this.update(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,a="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),d=i.icon.createIcon(this._icon),h=!1;d!==this._icon&&(this._icon&&this._removeIcon(),h=!0,i.title&&(d.title=i.title),d.tagName==="IMG"&&(d.alt=i.alt||"")),Ze(d,a),i.keyboard&&(d.tabIndex="0",d.setAttribute("role","button")),this._icon=d,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ve(d,"focus",this._panOnFocus,this);var g=i.icon.createShadow(this._shadow),E=!1;g!==this._shadow&&(this._removeShadow(),E=!0),g&&(Ze(g,a),g.alt=""),this._shadow=g,i.opacity<1&&this._updateOpacity(),h&&this.getPane().appendChild(this._icon),this._initInteraction(),g&&E&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,652 bytes, line 1446
1446),this.options.autoPanOnFocus&&ut(this._icon,"focus",this._panOnFocus,this),gt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&>(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&Ct(this._icon,i),this._shadow&&Ct(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(a)},_initInteraction:function(){if(this.options.interactive&&(Ze(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Up)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Up(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&Ns(this._icon,i),this._shadow&&Ns(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var a=this.options.icon.options,d=a.iconSize?ve(a.iconSize):ve(0,0),h=a.iconAnchor?ve(a.iconAnchor):ve(0,0);i.panInside(this._latlng,{paddingTopLeft:h,paddingBottomRight:d.subtract(h)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Fy(i,a){return new al(i,a)}var Yn=Ks.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(i){this._renderer=i.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(i){return C(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ll=Yn.extend({options:{fill:!0,radius:10},initialize:function(i,a){C(this,a),this._latlng=Ce(i),this._radius=this.options.radius},setLatLng:function(i){var a=this._latlng;return this._latlng=Ce(i),this.redraw(),this.fire("move",{oldLatLng:a,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var a=i&&i.radius||this._radius;return Yn.prototype.setStyle.call(this,i),this.setRadius(a),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,a=this._radiusY||i,d=this._clickTolerance(),h=[i+d,a+d];this._pxBounds=new $e(this._point.subtract(h),this._point.add(h))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Uy(i,a){return new ll(i,a)}var eu=ll.extend({initialize:function(i,a,d){if(typeof a=="number"&&(a=r({},d,{radius:a})),C(this,a),this._latlng=Ce(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new rt(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:Yn.prototype.setStyle,_project:function(){var i=this._latlng.lng,a=this._latlng.lat,d=this._map,h=d.options.crs;if(h.distance===nt.distance){var g=Math.PI/180,E=this._mRadius/nt.R/g,B=d.project([a+E,i]),q=d.project([a-E,i]),Q=B.add(q).divideBy(2),le=d.unproject(Q).lat,xe=Math.acos((Math.cos(E*g)-Math.sin(a*g)*Math.sin(le*g))/(Math.cos(a*g)*Math.cos(le*g)))/g;(isNaN(xe)||xe===0)&&(xe=E/Math.cos(Math.PI/180*a)),this._point=Q.subtract(d.getPixelOrigin()),this._radius=isNaN(xe)?0:Q.x-d.project([le,i-xe]).x,this._radiusY=Q.y-B.y}else{var Oe=h.unproject(h.project(this._latlng).subtract([this._mRadius,0]));this._point=d.latLngToLayerPoint(this._latlng),this._radius=this._point.x-d.latLngToLayerPoint(Oe).x}this._updateBounds()}});function jy(i,a,d){return new eu(i,a,d)}var kn=Yn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,a){C(this,a),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var a=1/0,d=null,h=Ro,g,E,B=0,q=this._parts.length;B<q;B++)for(var Q=this._parts[B],le=1,xe=Q.length;le<xe;le++){g=Q[le-1],E=Q[le];var Oe=h(i,g,E,!0);Oe<a&&(a=Oe,d=h(i,g,E))}return d&&(d.distance=Math.sqrt(a)),d}
1446,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Bp(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,a){return a=a||this._defaultShape(),i=Ce(i),a.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new rt,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return $s(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var a=[],d=$s(i),h=0,g=i.length;h<g;h++)d?(a[h]=Ce(i[h]),this._bounds.extend(a[h])):a[h]=this._convertLatLngs(i[h]);return a},_project:function(){var i=new $e;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),a=new G(i,i);this._rawPxBounds&&(this._pxBounds=new $e([this._rawPxBounds.min.subtract(a),this._rawPxBounds.max.add(a)]))},_projectLatlngs:function(i,a,d){var h=i[0]instanceof Ee,g=i.length,E,B;if(h){for(B=[],E=0;E<g;E++)B[E]=this._map.latLngToLayerPoint(i[E]),d.extend(B[E]);a.push(B)}else for(E=0;E<g;E++)this._projectLatlngs(i[E],a,d)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var a=this._parts,d,h,g,E,B,q,Q;for(d=0,g=0,E=this._rings.length;d<E;d++)for(Q=this._rings[d],h=0,B=Q.length;h<B-1;h++)q=Mp(Q[h],Q[h+1],i,h,!0),q&&(a[g]=a[g]||[],a[g].push(q[0]),(q[1]!==Q[h+1]||h===B-2)&&(a[g].push(q[1]),g++))}},_simplifyPoints:function(){for(var i=this._parts,a=this.options.smoothFactor,d=0,h=i.length;d<h;d++)i[d]=Np(i[d],a)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,a){var d,h,g,E,B,q,Q=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(d=0,E=this._parts.length;d<E;d++)for(q=this._parts[d],h=0,B=q.length,g=B-1;h<B;g=h++)if(!(!a&&h===0)&&$p(i,q[g],q[h])<=Q)return!0;return!1}});function Vy(i,a){return new kn(i,a)}kn._flat=Rp;var kr=kn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
1446,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Op(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var a=kn.prototype._convertLatLngs.call(this,i),d=a.length;return d>=2&&a[0]instanceof Ee&&a[0].equals(a[d-1])&&a.pop(),a},_setLatLngs:function(i){kn.prototype._setLatLngs.call(this,i),$s(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return $s(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,a=this.options.weight,d=new G(a,a);if(i=new $e(i.min.subtract(d),i.max.add(d)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var h=0,g=this._rings.length,E;h<g;h++)E=Lp(this._rings[h],i,!0),E.length&&this._parts.push(E)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var a=!1,d,h,g,E,B,q,Q,le;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(E=0,Q=this._parts.length;E<Q;E++)for(d=this._parts[E],B=0,le=d.length,q=le-1;B<le;q=B++)h=d[B],g=d[q],h.y>i.y!=g.y>i.y&&i.x<(g.x-h.x)*(i.y-h.y)/(g.y-h.y)+h.x&&(a=!a);return a||kn.prototype._containsPoint.call(this,i,!0)}});function Hy(i,a){return new kr(i,a)}var En=wn.extend({initialize:function(i,a){C(this,a),this._layers={},i&&this.addData(i)},addData:function(i){var a=P(i)?i:i.features,d,h,g;if(a){for(d=0,h=a.length;d<h;d++)g=a[d],(g.geometries||g.geometry||g.features||g.coordinates)&&this.addData(g);return this}var E=this.options;if(E.filter&&!E.filter(i))return this;var B=cl(i,E);return B?(B.feature=fl(i),B.defaultOptions=B.options,this.resetStyle(B),E.onEachFeature&&E.onEachFeature(i,B),this.addLayer(B)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=r({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(a){this._setLayerStyle(a,i)},this)},_setLayerStyle:function(i,a){i.setStyle&&(typeof a=="function"&&(a=a(i.feature)),i.setStyle(a))}});function cl(i,a){var d=i.type==="Feature"?i.geometry:i,h=d?d.coordinates:null,g=[],E=a&&a.pointToLayer,B=a&&a.coordsToLatLng||tu,q,Q,le,xe;if(!h&&!d)return null;switch(d.type){case"Point":return q=B(h),jp(E,i,q,a);case"MultiPoint":for(le=0,xe=h.length;le<xe;le++)q=B(h[le]),g.push(jp(E,i,q,a));return new wn(g);case"LineString":case"MultiLineString":return Q=dl(h,d.type==="LineString"?0:1,B),new kn(Q,a);case"Polygon":case"MultiPolygon":return Q=dl(h,d.type==="Polygon"?1:2,B),new kr(Q,a);case"GeometryCollection":for(le=0,xe=d.geometries.length;le<xe;le++){var Oe=cl({geometry:d.geometries[le],type:"Feature",properties:i.properties},a);Oe&&g.push(Oe)}return new wn(g);case"FeatureCollection":for(le=0,xe=d.features.length;le<xe;le++){var qe=cl(d.features[le],a);qe&&g.push(qe)}return new wn(g);default:throw new Error("Invalid GeoJSON object.")}}function jp(i,a,d,h){return i?i(a,d):new al(d,h&&h.markersInheritOptions&&h)}function tu(i){return new Ee(i[1],i[0],i[2])}function dl(i,a,d){for(var h=[],g=0,E=i.length,B;g<E;g++)B=a?dl(i[g],a-1,d):(d||tu)(i[g]),h.push(B);return h}function su(i,a){return i=Ce(i),i.alt!==void 0?[y(i.lng,a),y(i.lat,a),y(i.alt,a)]:[y(i.lng,a),y(i.lat,a)]}function ul(i,a,d,h){for(var g=[],E=0,B=i.length;E<B;E++)g.push(a?ul(i[E],$s(i[E])?0:a-1,d,h):su(i[E],h));return!a&&d&&g.length>0&&g.push(g[0].slice()),g}function Er(i,a){return i.feature?r({},i.feature,{geometry:a}):fl(a)}function fl(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var nu={toGeoJSON:function(i){return Er(this,{type:"Point",coordinates:su(this.getLatLng(),i)})}};al.include(nu),eu.include(nu),ll.include(nu),kn.include({toGeoJSON:function(i){var a=!$s(this._latlngs),d=ul(this._latlngs,a?1:0,!1,i);return Er(this,{type:(a?"Multi":"")+"LineString",coordinates:d})}}),kr.include({toGeoJSON:function(i){var a=!$s(this._latlngs),d=a&&!$s(this._latlngs[0]),h=ul(this._latlngs,d?2:a?1:0,!0,i);return a||(h=[h]),Er(this,{type:(d?"Multi":"")+"Polygon",coordinates:h})}}),yr.include({toMultiPoint:function(i){var a=[];return this.eachLayer(function(d){a.push(d.toGeoJSON(i).geometry.coordinates)}),Er(this,{type:"MultiPoint",coordinates:a})},toGeoJSON:function(i){var a=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(a==="MultiPoint")return this.toMultiPoint(i);var d=a==="GeometryCollection",h=[];return this.eachLayer(function(g){if(g.toGeoJSON){var E=g.toGeoJSON(i);if(d)h.push(E.geometry);else{var B=fl(E);B.type==="FeatureCollection"?h.push.apply(h,B.features):h.push(B)}}}),d?Er(this,{geometries:h,type:"GeometryCollection"}):{type:"FeatureCollection",features:h}}});function Vp(i,a){return new En(i,a)}var zy=Vp,hl=Ks.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,a,d){this._url=i,this._bounds=We(a),C(this,d)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ze(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){gt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&br(this._image),this},bringToBack:function(){return this._map&&xr(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=We(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",a=this._image=i?this._url:it("img");if(Ze(a,"leaflet-image-layer"),this._zoomAnimated&&Ze(a,"leaflet-zoom-animated"),this.options.className&&Ze(a,this.options.className),a.onselectstart=_,a.onmousemove=_,a.onload=c(this.fire,this,"load"),a.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(a.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=a.src;return}a.src=this._url,a.alt=this.options.alt},_animateZoom:function(i){var a=this._map.getZoomScale(i.zoom),d=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;Ci(this._image,d,a)},_reset:function(){var i=this._image,a=new $e(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),d=a.getSize();
1446Ct(i,a.min),i.style.width=d.x+"px",i.style.height=d.y+"px"},_updateOpacity:function(){Ns(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),Wy=function(i,a,d){return new hl(i,a,d)},Hp=hl.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",a=this._image=i?this._url:it("video");if(Ze(a,"leaflet-image-layer"),this._zoomAnimated&&Ze(a,"leaflet-zoom-animated"),this.options.className&&Ze(a,this.options.className),a.onselectstart=_,a.onmousemove=_,a.onloadeddata=c(this.fire,this,"load"),i){for(var d=a.getElementsByTagName("source"),h=[],g=0;g<d.length;g++)h.push(d[g].src);this._url=d.length>0?h:[a.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(a.style,"objectFit")&&(a.style.objectFit="fill"),a.autoplay=!!this.options.autoplay,a.loop=!!this.options.loop,a.muted=!!this.options.muted,a.playsInline=!!this.options.playsInline;for(var E=0;E<this._url.length;E++){var B=it("source");B.src=this._url[E],a.appendChild(B)}}});function Zy(i,a,d){return new Hp(i,a,d)}var zp=hl.extend({_initImage:function(){var i=this._image=this._url;Ze(i,"leaflet-image-layer"),this._zoomAnimated&&Ze(i,"leaflet-zoom-animated"),this.options.className&&Ze(i,this.options.className),i.onselectstart=_,i.onmousemove=_}});function qy(i,a,d){return new zp(i,a,d)}var on=Ks.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,a){i&&(i instanceof Ee||P(i))?(this._latlng=Ce(i),C(this,a)):(C(this,i),this._source=a),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&Ns(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&Ns(this._container,1),this.bringToFront(),this.options.interactive&&(Ze(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(Ns(this._container,0),this._removeTimeout=setTimeout(c(gt,void 0,this._container),200)):gt(this._container),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=Ce(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&br(this._container),this},bringToBack:function(){return this._map&&xr(this._container),this},_prepareOpen:function(i){var a=this._source;if(!a._map)return!1;if(a instanceof wn){a=null;var d=this._source._layers;for(var h in d)if(d[h]._map){a=d[h];break}if(!a)return!1;this._source=a}if(!i)if(a.getCenter)i=a.getCenter();else if(a.getLatLng)i=a.getLatLng();else if(a.getBounds)i=a.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,a=typeof this._content=="function"?this._content(this._source||this):this._content;
vendor: 5,097 bytes, line 1446
1446if(typeof a=="string")i.innerHTML=a;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(a)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),a=ve(this.options.offset),d=this._getAnchor();this._zoomAnimated?Ct(this._container,i.add(d)):a=a.add(i).add(d);var h=this._containerBottom=-a.y,g=this._containerLeft=-Math.round(this._containerWidth/2)+a.x;this._container.style.bottom=h+"px",this._container.style.left=g+"px"}},_getAnchor:function(){return[0,0]}});st.include({_initOverlay:function(i,a,d,h){var g=a;return g instanceof i||(g=new i(h).setContent(a)),d&&g.setLatLng(d),g}}),Ks.include({_initOverlay:function(i,a,d,h){var g=d;return g instanceof i?(C(g,h),g._source=this):(g=a&&!h?a:new i(h,this),g.setContent(d)),g}});var pl=on.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,on.prototype.openOn.call(this,i)},onAdd:function(i){on.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Yn||this._source.on("preclick",Pi))},onRemove:function(i){on.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Yn||this._source.off("preclick",Pi))},getEvents:function(){var i=on.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",a=this._container=it("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),d=this._wrapper=it("div",i+"-content-wrapper",a);if(this._contentNode=it("div",i+"-content",d),Do(a),Zd(this._contentNode),Ve(a,"contextmenu",Pi),this._tipContainer=it("div",i+"-tip-container",a),this._tip=it("div",i+"-tip",this._tipContainer),this.options.closeButton){var h=this._closeButton=it("a",i+"-close-button",a);h.setAttribute("role","button"),h.setAttribute("aria-label","Close popup"),h.href="#close",h.innerHTML='<span aria-hidden="true">×</span>',Ve(h,"click",function(g){Vt(g),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,a=i.style;a.width="",a.whiteSpace="nowrap";var d=i.offsetWidth;d=Math.min(d,this.options.maxWidth),d=Math.max(d,this.options.minWidth),a.width=d+1+"px",a.whiteSpace="",a.height="";var h=i.offsetHeight,g=this.options.maxHeight,E="leaflet-popup-scrolled";g&&h>g?(a.height=g+"px",Ze(i,E)):yt(i,E),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),d=this._getAnchor();Ct(this._container,a.add(d))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,a=parseInt(Lo(this._container,"marginBottom"),10)||0,d=this._container.offsetHeight+a,h=this._containerWidth,g=new G(this._containerLeft,-d-this._containerBottom);g._add(Ai(this._container));var E=i.layerPointToContainerPoint(g),B=ve(this.options.autoPanPadding),q=ve(this.options.autoPanPaddingTopLeft||B),Q=ve(this.options.autoPanPaddingBottomRight||B),le=i.getSize(),xe=0,Oe=0;E.x+h+Q.x>le.x&&(xe=E.x+h-le.x+Q.x),E.x-xe-q.x<0&&(xe=E.x-q.x),E.y+d+Q.y>le.y&&(Oe=E.y+d-le.y+Q.y),E.y-Oe-q.y<0&&(Oe=E.y-q.y),(xe||Oe)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([xe,Oe]))}},_getAnchor:function(){return ve(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ky=function(i,a){return new pl(i,a)};st.mergeOptions({closePopupOnClick:!0}),st.include({openPopup:function(i,a,d){return this._initOverlay(pl,i,a,d).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),Ks.include({bindPopup:function(i,a){return this._popup=this._initOverlay(pl,this._popup,i,a),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(i){return this._popup&&(this instanceof wn||(this._popup._source=this),this._popup._prepareOpen(i||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1}
1446,setPopupContent:function(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){Ii(i);var a=i.layer||i.target;if(this._popup._source===a&&!(a instanceof Yn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=a,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var ml=on.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){on.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){on.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=on.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",a=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=it("div",a),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var a,d,h=this._map,g=this._container,E=h.latLngToContainerPoint(h.getCenter()),B=h.layerPointToContainerPoint(i),q=this.options.direction,Q=g.offsetWidth,le=g.offsetHeight,xe=ve(this.options.offset),Oe=this._getAnchor();q==="top"?(a=Q/2,d=le):q==="bottom"?(a=Q/2,d=0):q==="center"?(a=Q/2,d=le/2):q==="right"?(a=0,d=le/2):q==="left"?(a=Q,d=le/2):B.x<E.x?(q="right",a=0,d=le/2):(q="left",a=Q+(xe.x+Oe.x)*2,d=le/2),i=i.subtract(ve(a,d,!0)).add(xe).add(Oe),yt(g,"leaflet-tooltip-right"),yt(g,"leaflet-tooltip-left"),yt(g,"leaflet-tooltip-top"),yt(g,"leaflet-tooltip-bottom"),Ze(g,"leaflet-tooltip-"+q),Ct(g,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&Ns(this._container,i)},_animateZoom:function(i){var a=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(a)},_getAnchor:function(){return ve(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Gy=function(i,a){return new ml(i,a)};st.include({openTooltip:function(i,a,d){return this._initOverlay(ml,i,a,d).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),Ks.include({bindTooltip:function(i,a){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ml,this._tooltip,i,a),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(i){if(!(!i&&this._tooltipHandlersAdded)){var a=i?"off":"on",d={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?d.add=this._openTooltip:(d.mouseover=this._openTooltip,d.mouseout=this.closeTooltip,d.click=this._openTooltip,this._map?this._addFocusListeners():d.add=this._addFocusListeners),this._tooltip.options.sticky&&(d.mousemove=this._moveTooltip),this[a](d),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof wn||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var a=typeof i.getElement=="function"&&i.getElement();a&&(Ve(a,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),Ve(a,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var a=typeof i.getElement=="function"&&i.getElement();a&&a.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var a=this;this._map.once("moveend",function(){a._openOnceFlag=!1,a._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var a=i.latlng,d,h;this._tooltip.options.sticky&&i.originalEvent&&(d=this._map.mouseEventToContainerPoint(i.originalEvent),h=this._map.containerPointToLayerPoint(d),a=this._map.layerPointToLatLng(h)),this._tooltip.setLatLng(a)}});var Wp=wr.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var a=i&&i.tagName==="DIV"?i:document.createElement("div"),d=this.options;
1446if(d.html instanceof Element?(tl(a),a.appendChild(d.html)):a.innerHTML=d.html!==!1?d.html:"",d.bgPos){var h=ve(d.bgPos);a.style.backgroundPosition=-h.x+"px "+-h.y+"px"}return this._setIconStyles(a,"icon"),a},createShadow:function(){return null}});function Yy(i){return new Wp(i)}wr.Default=Bo;var Fo=Ks.extend({options:{tileSize:256,opacity:1,updateWhenIdle:we.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(i){C(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),gt(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(br(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(xr(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof G?i:new G(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var a=this.getPane().children,d=-i(-1/0,1/0),h=0,g=a.length,E;h<g;h++)E=a[h].style.zIndex,a[h]!==this._container&&E&&(d=i(d,+E));isFinite(d)&&(this.options.zIndex=d+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!we.ielt9){Ns(this._container,this.options.opacity);var i=+new Date,a=!1,d=!1;for(var h in this._tiles){var g=this._tiles[h];if(!(!g.current||!g.loaded)){var E=Math.min(1,(i-g.loaded)/200);Ns(g.el,E),E<1?a=!0:(g.active?d=!0:this._onOpaqueTile(g),g.active=!0)}}d&&!this._noPrune&&this._pruneTiles(),a&&(I(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this))}},_onOpaqueTile:_,_initContainer:function(){this._container||(this._container=it("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,a=this.options.maxZoom;if(i!==void 0){for(var d in this._levels)d=Number(d),this._levels[d].el.children.length||d===i?(this._levels[d].el.style.zIndex=a-Math.abs(i-d),this._onUpdateLevel(d)):(gt(this._levels[d].el),this._removeTilesAtZoom(d),this._onRemoveLevel(d),delete this._levels[d]);var h=this._levels[i],g=this._map;return h||(h=this._levels[i]={},h.el=it("div","leaflet-tile-container leaflet-zoom-animated",this._container),h.el.style.zIndex=a,h.origin=g.project(g.unproject(g.getPixelOrigin()),i).round(),h.zoom=i,this._setZoomTransform(h,g.getCenter(),g.getZoom()),_(h.el.offsetWidth),this._onCreateLevel(h)),this._level=h,h}},_onUpdateLevel:_,_onRemoveLevel:_,_onCreateLevel:_,_pruneTiles:function(){if(this._map){var i,a,d=this._map.getZoom();if(d>this.options.maxZoom||d<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)a=this._tiles[i],a.retain=a.current;for(i in this._tiles)if(a=this._tiles[i],a.current&&!a.active){var h=a.coords;this._retainParent(h.x,h.y,h.z,h.z-5)||this._retainChildren(h.x,h.y,h.z,h.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var a in this._tiles)this._tiles[a].coords.z===i&&this._removeTile(a)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)gt(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,a,d,h){var g=Math.floor(i/2),E=Math.floor(a/2),B=d-1,q=ne
1446w G(+g,+E);q.z=+B;var Q=this._tileCoordsToKey(q),le=this._tiles[Q];return le&&le.active?(le.retain=!0,!0):(le&&le.loaded&&(le.retain=!0),B>h?this._retainParent(g,E,B,h):!1)},_retainChildren:function(i,a,d,h){for(var g=2*i;g<2*i+2;g++)for(var E=2*a;E<2*a+2;E++){var B=new G(g,E);B.z=d+1;var q=this._tileCoordsToKey(B),Q=this._tiles[q];if(Q&&Q.active){Q.retain=!0;continue}else Q&&Q.loaded&&(Q.retain=!0);d+1<h&&this._retainChildren(g,E,d+1,h)}},_resetView:function(i){var a=i&&(i.pinch||i.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),a,a)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var a=this.options;return a.minNativeZoom!==void 0&&i<a.minNativeZoom?a.minNativeZoom:a.maxNativeZoom!==void 0&&a.maxNativeZoom<i?a.maxNativeZoom:i},_setView:function(i,a,d,h){var g=Math.round(a);this.options.maxZoom!==void 0&&g>this.options.maxZoom||this.options.minZoom!==void 0&&g<this.options.minZoom?g=void 0:g=this._clampZoom(g);var E=this.options.updateWhenZooming&&g!==this._tileZoom;(!h||E)&&(this._tileZoom=g,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),g!==void 0&&this._update(i),d||this._pruneTiles(),this._noPrune=!!d),this._setZoomTransforms(i,a)},_setZoomTransforms:function(i,a){for(var d in this._levels)this._setZoomTransform(this._levels[d],i,a)},_setZoomTransform:function(i,a,d){var h=this._map.getZoomScale(d,i.zoom),g=i.origin.multiplyBy(h).subtract(this._map._getNewPixelOrigin(a,d)).round();we.any3d?Ci(i.el,g,h):Ct(i.el,g)},_resetGrid:function(){var i=this._map,a=i.options.crs,d=this._tileSize=this.getTileSize(),h=this._tileZoom,g=this._map.getPixelWorldBounds(this._tileZoom);g&&(this._globalTileRange=this._pxBoundsToTileRange(g)),this._wrapX=a.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,a.wrapLng[0]],h).x/d.x),Math.ceil(i.project([0,a.wrapLng[1]],h).x/d.y)],this._wrapY=a.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([a.wrapLat[0],0],h).y/d.x),Math.ceil(i.project([a.wrapLat[1],0],h).y/d.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var a=this._map,d=a._animatingZoom?Math.max(a._animateToZoom,a.getZoom()):a.getZoom(),h=a.getZoomScale(d,this._tileZoom),g=a.project(i,this._tileZoom).floor(),E=a.getSize().divideBy(h*2);return new $e(g.subtract(E),g.add(E))},_update:function(i){var a=this._map;if(a){var d=this._clampZoom(a.getZoom());if(i===void 0&&(i=a.getCenter()),this._tileZoom!==void 0){var h=this._getTiledPixelBounds(i),g=this._pxBoundsToTileRange(h),E=g.getCenter(),B=[],q=this.options.keepBuffer,Q=new $e(g.getBottomLeft().subtract([q,-q]),g.getTopRight().add([q,-q]));if(!(isFinite(g.min.x)&&isFinite(g.min.y)&&isFinite(g.max.x)&&isFinite(g.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var le in this._tiles){var xe=this._tiles[le].coords;(xe.z!==this._tileZoom||!Q.contains(new G(xe.x,xe.y)))&&(this._tiles[le].current=!1)}if(Math.abs(d-this._tileZoom)>1){this._setView(i,d);return}for(var Oe=g.min.y;Oe<=g.max.y;Oe++)for(var qe=g.min.x;qe<=g.max.x;qe++){var ss=new G(qe,Oe);if(ss.z=this._tileZoom,!!this._isValidTile(ss)){var Bt=this._tiles[this._tileCoordsToKey(ss)];Bt?Bt.current=!0:B.push(ss)}}if(B.sort(function(ds,Sr){return ds.distanceTo(E)-Sr.distanceTo(E)}),B.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ds=document.createDocumentFragment();for(qe=0;qe<B.length;qe++)this._addTile(B[qe],Ds);this._level.el.appendChild(Ds)}}}},_isValidTile:function(i){var a=this._map.options.crs;if(!a.infinite){var d=this._globalTileRange;if(!a.wrapLng&&(i.x<d.min.x||i.x>d.max.x)||!a.wrapLat&&(i.y<d.min.y||i.y>d.max.y))return!1}if(!this.options.bounds)return!0;var h=this._tileCoordsToBounds(i);return We(this.options.bounds).overlaps(h)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var a=this._map,d=this.getTileSize(),h=i.scaleBy(d),g=h.add(d),E=a.unproject(h,i.z),B=a.unproject(g,i.z);return[E,B]},_tileCoordsToBounds:function(i){var a=this._tileCoordsToNwSe(i),d=new rt(a[0],a[1]);return this.options.noWrap||(d=this._map.wrapLatLngBounds(d)),d},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var a=i.split(":"),d=new G(+a[0],+a[1]);return d.z=+a[2],d},_removeTile:function(i){var a=this._tiles[i];a&&(gt(a.el),delete this._tiles[i],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){Ze(i,"leaflet-tile");var a=this.getTileSize();i.style.width=a.x+"px",i.style.height=a.y+"px",i.onselectstart=_,i.onmousemove=_,we.ielt9&&this.options.opacity<1&&Ns(i,this.options.opacity)},_addTile:function(i,a){var d=this._getTilePos(i),h=this._tileCoordsToKey(i),g=this.createTile(this._wrapCoords(i),c(this._tileReady,this,i));this._initTile(g),this.createTile.length<2&&V(c(this._tileReady,this,i,null,g)),Ct(g,d),this._tiles[h]={el:g,coords:i,current:!0},a.appendChild(g),this.fire("tileloadstart",{tile:g,coords:i})},_tileReady:function(i,a,d){a&&this.fire("tileerror",{error:a,tile:d,coords:i});var h=this._tileCoordsToKey(i);
vendor: 5,930 bytes, line 1446
1446d=this._tiles[h],d&&(d.loaded=+new Date,this._map._fadeAnimated?(Ns(d.el,0),I(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(d.active=!0,this._pruneTiles()),a||(Ze(d.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:d.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),we.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var a=new G(this._wrapX?m(i.x,this._wrapX):i.x,this._wrapY?m(i.y,this._wrapY):i.y);return a.z=i.z,a},_pxBoundsToTileRange:function(i){var a=this.getTileSize();return new $e(i.min.unscaleBy(a).floor(),i.max.unscaleBy(a).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function Jy(i){return new Fo(i)}var Tr=Fo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,a){this._url=i,a=C(this,a),a.detectRetina&&we.retina&&a.maxZoom>0?(a.tileSize=Math.floor(a.tileSize/2),a.zoomReverse?(a.zoomOffset--,a.minZoom=Math.min(a.maxZoom,a.minZoom+1)):(a.zoomOffset++,a.maxZoom=Math.max(a.minZoom,a.maxZoom-1)),a.minZoom=Math.max(0,a.minZoom)):a.zoomReverse?a.minZoom=Math.min(a.maxZoom,a.minZoom):a.maxZoom=Math.max(a.minZoom,a.maxZoom),typeof a.subdomains=="string"&&(a.subdomains=a.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,a){return this._url===i&&a===void 0&&(a=!0),this._url=i,a||this.redraw(),this},createTile:function(i,a){var d=document.createElement("img");return Ve(d,"load",c(this._tileOnLoad,this,a,d)),Ve(d,"error",c(this._tileOnError,this,a,d)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(d.referrerPolicy=this.options.referrerPolicy),d.alt="",d.src=this.getTileUrl(i),d},getTileUrl:function(i){var a={r:we.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var d=this._globalTileRange.max.y-i.y;this.options.tms&&(a.y=d),a["-y"]=d}return D(this._url,r(a,this.options))},_tileOnLoad:function(i,a){we.ielt9?setTimeout(c(i,this,null,a),0):i(null,a)},_tileOnError:function(i,a,d){var h=this.options.errorTileUrl;h&&a.getAttribute("src")!==h&&(a.src=h),i(d,a)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,a=this.options.maxZoom,d=this.options.zoomReverse,h=this.options.zoomOffset;return d&&(i=a-i),i+h},_getSubdomain:function(i){var a=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[a]},_abortLoading:function(){var i,a;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(a=this._tiles[i].el,a.onload=_,a.onerror=_,!a.complete)){a.src=U;var d=this._tiles[i].coords;gt(a),delete this._tiles[i],this.fire("tileabort",{tile:a,coords:d})}},_removeTile:function(i){var a=this._tiles[i];if(a)return a.el.setAttribute("src",U),Fo.prototype._removeTile.call(this,i)},_tileReady:function(i,a,d){if(!(!this._map||d&&d.getAttribute("src")===U))return Fo.prototype._tileReady.call(this,i,a,d)}});function Zp(i,a){return new Tr(i,a)}var qp=Tr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,a){this._url=i;var d=r({},this.defaultWmsParams);for(var h in a)h in this.options||(d[h]=a[h]);a=C(this,a);var g=a.detectRetina&&we.retina?2:1,E=this.getTileSize();d.width=E.x*g,d.height=E.y*g,this.wmsParams=d},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var a=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[a]=this._crs.code,Tr.prototype.onAdd.call(this,i)},getTileUrl:function(i){var a=this._tileCoordsToNwSe(i),d=this._crs,h=Ue(d.project(a[0]),d.project(a[1])),g=h.min,E=h.max,B=(this._wmsVersion>=1.3&&this._crs===Fp?[g.y,g.x,E.y,E.x]:[g.x,g.y,E.x,E.y]).join(","),q=Tr.prototype.getTileUrl.call(this,i);return q+M(this.wmsParams,q,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+B},setParams:function(i,a){return r(this.wmsParams,i),a||this.redraw(),this}});function Xy(i,a){return new qp(i,a)}Tr.WMS=qp,Zp.wms=Xy;var Tn=Ks.extend({options:{padding:.1},initialize:function(i){C(this,i),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Ze(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,a){var d=this._map.getZoomScale(a,this._zoom),h=this._map.getSize().multiplyBy(.5+this.options.padding),g=this._map.project(this._center,a),E=h.multiplyBy(-d).add(g).subtract(this._map._getNewPixelOrigin(i,a));we.any3d?Ci(this._container,E,d):Ct(this._container,E)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,a=this._map.getSize(),d=this._map.containerPointToLayerPoint(a.multiplyBy(-i)).round();
1446this._bounds=new $e(d,d.add(a.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Kp=Tn.extend({options:{tolerance:0},getEvents:function(){var i=Tn.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Tn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");Ve(i,"mousemove",this._onMouseMove,this),Ve(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ve(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){I(this._redrawRequest),delete this._ctx,gt(this._container),ut(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var a in this._layers)i=this._layers[a],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Tn.prototype._update.call(this);var i=this._bounds,a=this._container,d=i.getSize(),h=we.retina?2:1;Ct(a,i.min),a.width=h*d.x,a.height=h*d.y,a.style.width=d.x+"px",a.style.height=d.y+"px",we.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){Tn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[f(i)]=i;var a=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=a),this._drawLast=a,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var a=i._order,d=a.next,h=a.prev;d?d.prev=h:this._drawLast=h,h?h.next=d:this._drawFirst=d,delete i._order,delete this._layers[f(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var a=i.options.dashArray.split(/[, ]+/),d=[],h,g;for(g=0;g<a.length;g++){if(h=Number(a[g]),isNaN(h))return;d.push(h)}i.options._dashArray=d}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||V(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var a=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new $e,this._redrawBounds.extend(i._pxBounds.min.subtract([a,a])),this._redrawBounds.extend(i._pxBounds.max.add([a,a]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var i=this._redrawBounds;if(i){var a=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,a.x,a.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var i,a=this._redrawBounds;if(this._ctx.save(),a){var d=a.getSize();this._ctx.beginPath(),this._ctx.rect(a.min.x,a.min.y,d.x,d.y),this._ctx.clip()}this._drawing=!0;for(var h=this._drawFirst;h;h=h.next)i=h.layer,(!a||i._pxBounds&&i._pxBounds.intersects(a))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,a){if(this._drawing){var d,h,g,E,B=i._parts,q=B.length,Q=this._ctx;if(q){for(Q.beginPath(),d=0;d<q;d++){for(h=0,g=B[d].length;h<g;h++)E=B[d][h],Q[h?"lineTo":"moveTo"](E.x,E.y);a&&Q.closePath()}this._fillStroke(Q,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var a=i._point,d=this._ctx,h=Math.max(Math.round(i._radius),1),g=(Math.max(Math.round(i._radiusY),1)||h)/h;g!==1&&(d.save(),d.scale(1,g)),d.beginPath(),d.arc(a.x,a.y/g,h,0,Math.PI*2,!1),g!==1&&d.restore(),this._fillStroke(d,i)}},_fillStroke:function(i,a){var d=a.options;d.fill&&(i.globalAlpha=d.fillOpacity,i.fillStyle=d.fillColor||d.color,i.fill(d.fillRule||"evenodd")),d.stroke&&d.weight!==0&&(i.setLineDash&&i.setLineDash(a.options&&a.options._dashArray||[]),i.globalAlpha=d.opacity,i.lineWidth=d.weight,i.strokeStyle=d.color,i.lineCap=d.lineCap,i.lineJoin=d.lineJoin,i.stroke())},_onClick:function(i){for(var a=this._map.mouseEventToLayerPoint(i),d,h,g=this._drawFirst;g;
1446g=g.next)d=g.layer,d.options.interactive&&d._containsPoint(a)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(d))&&(h=d);this._fireEvent(h?[h]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var a=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,a)}},_handleMouseOut:function(i){var a=this._hoveredLayer;a&&(yt(this._container,"leaflet-interactive"),this._fireEvent([a],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,a){if(!this._mouseHoverThrottled){for(var d,h,g=this._drawFirst;g;g=g.next)d=g.layer,d.options.interactive&&d._containsPoint(a)&&(h=d);h!==this._hoveredLayer&&(this._handleMouseOut(i),h&&(Ze(this._container,"leaflet-interactive"),this._fireEvent([h],i,"mouseover"),this._hoveredLayer=h)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,a,d){this._map._fireDOMEvent(a,d||a.type,i)},_bringToFront:function(i){var a=i._order;if(a){var d=a.next,h=a.prev;if(d)d.prev=h;else return;h?h.next=d:d&&(this._drawFirst=d),a.prev=this._drawLast,this._drawLast.next=a,a.next=null,this._drawLast=a,this._requestRedraw(i)}},_bringToBack:function(i){var a=i._order;if(a){var d=a.next,h=a.prev;if(h)h.next=d;else return;d?d.prev=h:h&&(this._drawLast=h),a.prev=null,a.next=this._drawFirst,this._drawFirst.prev=a,this._drawFirst=a,this._requestRedraw(i)}}});function Gp(i){return we.canvas?new Kp(i):null}var Uo=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch{}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Qy={_initContainer:function(){this._container=it("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Tn.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var a=i._container=Uo("shape");Ze(a,"leaflet-vml-shape "+(this.options.className||"")),a.coordsize="1 1",i._path=Uo("path"),a.appendChild(i._path),this._updateStyle(i),this._layers[f(i)]=i},_addPath:function(i){var a=i._container;this._container.appendChild(a),i.options.interactive&&i.addInteractiveTarget(a)},_removePath:function(i){var a=i._container;gt(a),i.removeInteractiveTarget(a),delete this._layers[f(i)]},_updateStyle:function(i){var a=i._stroke,d=i._fill,h=i.options,g=i._container;g.stroked=!!h.stroke,g.filled=!!h.fill,h.stroke?(a||(a=i._stroke=Uo("stroke")),g.appendChild(a),a.weight=h.weight+"px",a.color=h.color,a.opacity=h.opacity,h.dashArray?a.dashStyle=P(h.dashArray)?h.dashArray.join(" "):h.dashArray.replace(/( *, *)/g," "):a.dashStyle="",a.endcap=h.lineCap.replace("butt","flat"),a.joinstyle=h.lineJoin):a&&(g.removeChild(a),i._stroke=null),h.fill?(d||(d=i._fill=Uo("fill")),g.appendChild(d),d.color=h.fillColor||h.color,d.opacity=h.fillOpacity):d&&(g.removeChild(d),i._fill=null)},_updateCircle:function(i){var a=i._point.round(),d=Math.round(i._radius),h=Math.round(i._radiusY||d);this._setPath(i,i._empty()?"M0 0":"AL "+a.x+","+a.y+" "+d+","+h+" 0,"+65535*360)},_setPath:function(i,a){i._path.v=a},_bringToFront:function(i){br(i._container)},_bringToBack:function(i){xr(i._container)}},_l=we.vml?Uo:N,jo=Tn.extend({_initContainer:function(){this._container=_l("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=_l("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){gt(this._container),ut(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Tn.prototype._update.call(this);var i=this._bounds,a=i.getSize(),d=this._container;(!this._svgSize||!this._svgSize.equals(a))&&(this._svgSize=a,d.setAttribute("width",a.x),d.setAttribute("height",a.y)),Ct(d,i.min),d.setAttribute("viewBox",[i.min.x,i.min.y,a.x,a.y].join(" ")),this.fire("update")}},_initPath:function(i){var a=i._path=_l("path");i.options.className&&Ze(a,i.options.className),i.options.interactive&&Ze(a,"leaflet-interactive"),this._updateStyle(i),this._layers[f(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){gt(i._path),i.removeInteractiveTarget(i._path),delete this._layers[f(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var a=i._path,d=i.options;a&&(d.stroke?(a.setAttribute("stroke",d.color),a.setAttribute("stroke-opacity",d.opacity),a.setAttribute("stroke-width",d.weight),a.setAttribute("stroke-linecap",d.lineCap),a.setAttribute("stroke-linejoin",d.lineJoin),d.dashArray?a.setAttribute("stroke-dasharray",d.dashArray):a.removeAttribute("stroke-dasharray"),d.dashOffset?a.setAttribute("stroke-dashoffset",d.dashOffset):a.removeAttribute("stroke-dashoffset")):a.setAttribute("stroke","none"),d.fill?(a.setAttribute("fill",d.fillColor||d.color),a.setAttribute("fill-opacity",d.fillOpacity),a.setAttribute("fill-rule",d.fillRule||"evenodd")):a.setAttribute("fill","none"))},_updatePoly:function(i,a){this._setPath(i,b(i._parts,a))},_updateCircle:function(i){var a=i._point,d=Math.max(Math.round(i._radius),1),h=Math.max(Math.round(i._radiusY),1)||d,g="a"+d+","+h+" 0 1,0 ",E=i._empty()?"M0 0":"M"+(a.x-d)+","+a.y+g
1446+d*2+",0 "+g+-d*2+",0 ";this._setPath(i,E)},_setPath:function(i,a){i._path.setAttribute("d",a)},_bringToFront:function(i){br(i._path)},_bringToBack:function(i){xr(i._path)}});we.vml&&jo.include(Qy);function Yp(i){return we.svg||we.vml?new jo(i):null}st.include({getRenderer:function(i){var a=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return a||(a=this._renderer=this._createRenderer()),this.hasLayer(a)||this.addLayer(a),a},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var a=this._paneRenderers[i];return a===void 0&&(a=this._createRenderer({pane:i}),this._paneRenderers[i]=a),a},_createRenderer:function(i){return this.options.preferCanvas&&Gp(i)||Yp(i)}});var Jp=kr.extend({initialize:function(i,a){kr.prototype.initialize.call(this,this._boundsToLatLngs(i),a)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))},_boundsToLatLngs:function(i){return i=We(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function ew(i,a){return new Jp(i,a)}jo.create=_l,jo.pointsToPath=b,En.geometryToLayer=cl,En.coordsToLatLng=tu,En.coordsToLatLngs=dl,En.latLngToCoords=su,En.latLngsToCoords=ul,En.getFeature=Er,En.asFeature=fl,st.mergeOptions({boxZoom:!0});var Xp=rn.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){Ve(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ut(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){gt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Oo(),Bd(),this._startPoint=this._map.mouseEventToContainerPoint(i),Ve(document,{contextmenu:Ii,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=it("div","leaflet-zoom-box",this._container),Ze(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var a=new $e(this._point,this._startPoint),d=a.getSize();Ct(this._box,a.min),this._box.style.width=d.x+"px",this._box.style.height=d.y+"px"},_finish:function(){this._moved&&(gt(this._box),yt(this._container,"leaflet-crosshair")),No(),Fd(),ut(document,{contextmenu:Ii,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var a=new rt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(a).fire("boxzoomend",{boxZoomBounds:a})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});st.addInitHook("addHandler","boxZoom",Xp),st.mergeOptions({doubleClickZoom:!0});var Qp=rn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var a=this._map,d=a.getZoom(),h=a.options.zoomDelta,g=i.originalEvent.shiftKey?d-h:d+h;a.options.doubleClickZoom==="center"?a.setZoom(g):a.setZoomAround(i.containerPoint,g)}});st.addInitHook("addHandler","doubleClickZoom",Qp),st.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var em=rn.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new Gn(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}Ze(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){yt(this._map._container,"leaflet-grab"),yt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved}
vendor: 4,309 bytes, line 1446
1446,moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var a=We(this._map.options.maxBounds);this._offsetLimit=Ue(this._map.latLngToContainerPoint(a.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(a.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var a=this._lastTime=+new Date,d=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(d),this._times.push(a),this._prunePositions(a)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),a=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=a.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,a){return i-(i-a)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),a=this._offsetLimit;i.x<a.min.x&&(i.x=this._viscousLimit(i.x,a.min.x)),i.y<a.min.y&&(i.y=this._viscousLimit(i.y,a.min.y)),i.x>a.max.x&&(i.x=this._viscousLimit(i.x,a.max.x)),i.y>a.max.y&&(i.y=this._viscousLimit(i.y,a.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,a=Math.round(i/2),d=this._initialWorldOffset,h=this._draggable._newPos.x,g=(h-a+d)%i+a-d,E=(h+a+d)%i-a-d,B=Math.abs(g+d)<Math.abs(E+d)?g:E;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=B},_onDragEnd:function(i){var a=this._map,d=a.options,h=!d.inertia||i.noInertia||this._times.length<2;if(a.fire("dragend",i),h)a.fire("moveend");else{this._prunePositions(+new Date);var g=this._lastPos.subtract(this._positions[0]),E=(this._lastTime-this._times[0])/1e3,B=d.easeLinearity,q=g.multiplyBy(B/E),Q=q.distanceTo([0,0]),le=Math.min(d.inertiaMaxSpeed,Q),xe=q.multiplyBy(le/Q),Oe=le/(d.inertiaDeceleration*B),qe=xe.multiplyBy(-Oe/2).round();!qe.x&&!qe.y?a.fire("moveend"):(qe=a._limitOffset(qe,a.options.maxBounds),V(function(){a.panBy(qe,{duration:Oe,easeLinearity:B,noMoveStart:!0,animate:!0})}))}}});st.addInitHook("addHandler","dragging",em),st.mergeOptions({keyboard:!0,keyboardPanDelta:80});var tm=rn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),Ve(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),ut(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=document.body,a=document.documentElement,d=i.scrollTop||a.scrollTop,h=i.scrollLeft||a.scrollLeft;this._map._container.focus(),window.scrollTo(h,d)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var a=this._panKeys={},d=this.keyCodes,h,g;for(h=0,g=d.left.length;h<g;h++)a[d.left[h]]=[-1*i,0];for(h=0,g=d.right.length;h<g;h++)a[d.right[h]]=[i,0];for(h=0,g=d.down.length;h<g;h++)a[d.down[h]]=[0,i];for(h=0,g=d.up.length;h<g;h++)a[d.up[h]]=[0,-1*i]},_setZoomDelta:function(i){var a=this._zoomKeys={},d=this.keyCodes,h,g;for(h=0,g=d.zoomIn.length;h<g;h++)a[d.zoomIn[h]]=i;for(h=0,g=d.zoomOut.length;h<g;h++)a[d.zoomOut[h]]=-i},_addHooks:function(){Ve(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ut(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var a=i.keyCode,d=this._map,h;
1446if(a in this._panKeys){if(!d._panAnim||!d._panAnim._inProgress)if(h=this._panKeys[a],i.shiftKey&&(h=ve(h).multiplyBy(3)),d.options.maxBounds&&(h=d._limitOffset(ve(h),d.options.maxBounds)),d.options.worldCopyJump){var g=d.wrapLatLng(d.unproject(d.project(d.getCenter()).add(h)));d.panTo(g)}else d.panBy(h)}else if(a in this._zoomKeys)d.setZoom(d.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[a]);else if(a===27&&d._popup&&d._popup.options.closeOnEscapeKey)d.closePopup();else return;Ii(i)}}});st.addInitHook("addHandler","keyboard",tm),st.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var sm=rn.extend({addHooks:function(){Ve(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ut(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var a=Sp(i),d=this._map.options.wheelDebounceTime;this._delta+=a,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var h=Math.max(d-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),h),Ii(i)},_performZoom:function(){var i=this._map,a=i.getZoom(),d=this._map.options.zoomSnap||0;i._stop();var h=this._delta/(this._map.options.wheelPxPerZoomLevel*4),g=4*Math.log(2/(1+Math.exp(-Math.abs(h))))/Math.LN2,E=d?Math.ceil(g/d)*d:g,B=i._limitZoom(a+(this._delta>0?E:-E))-a;this._delta=0,this._startTime=null,B&&(i.options.scrollWheelZoom==="center"?i.setZoom(a+B):i.setZoomAround(this._lastMousePos,a+B))}});st.addInitHook("addHandler","scrollWheelZoom",sm);var tw=600;st.mergeOptions({tapHold:we.touchNative&&we.safari&&we.mobile,tapTolerance:15});var nm=rn.extend({addHooks:function(){Ve(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ut(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var a=i.touches[0];this._startPos=this._newPos=new G(a.clientX,a.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(Ve(document,"touchend",Vt),Ve(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",a))},this),tw),Ve(document,"touchend touchcancel contextmenu",this._cancel,this),Ve(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){ut(document,"touchend",Vt),ut(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),ut(document,"touchend touchcancel contextmenu",this._cancel,this),ut(document,"touchmove",this._onMove,this)},_onMove:function(i){var a=i.touches[0];this._newPos=new G(a.clientX,a.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,a){var d=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:a.screenX,screenY:a.screenY,clientX:a.clientX,clientY:a.clientY});d._simulated=!0,a.target.dispatchEvent(d)}});st.addInitHook("addHandler","tapHold",nm),st.mergeOptions({touchZoom:we.touch,bounceAtZoomLimits:!0});var im=rn.extend({addHooks:function(){Ze(this._map._container,"leaflet-touch-zoom"),Ve(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),ut(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var a=this._map;if(!(!i.touches||i.touches.length!==2||a._animatingZoom||this._zooming)){var d=a.mouseEventToContainerPoint(i.touches[0]),h=a.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=a.getSize()._divideBy(2),this._startLatLng=a.containerPointToLatLng(this._centerPoint),a.options.touchZoom!=="center"&&(this._pinchStartLatLng=a.containerPointToLatLng(d.add(h)._divideBy(2))),this._startDist=d.distanceTo(h),this._startZoom=a.getZoom(),this._moved=!1,this._zooming=!0,a._stop(),Ve(document,"touchmove",this._onTouchMove,this),Ve(document,"touchend touchcancel",this._onTouchEnd,this),Vt(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var a=this._map,d=a.mouseEventToContainerPoint(i.touches[0]),h=a.mouseEventToContainerPoint(i.touches[1]),g=d.distanceTo(h)
1446/this._startDist;if(this._zoom=a.getScaleZoom(g,this._startZoom),!a.options.bounceAtZoomLimits&&(this._zoom<a.getMinZoom()&&g<1||this._zoom>a.getMaxZoom()&&g>1)&&(this._zoom=a._limitZoom(this._zoom)),a.options.touchZoom==="center"){if(this._center=this._startLatLng,g===1)return}else{var E=d._add(h)._divideBy(2)._subtract(this._centerPoint);if(g===1&&E.x===0&&E.y===0)return;this._center=a.unproject(a.project(this._pinchStartLatLng,this._zoom).subtract(E),this._zoom)}this._moved||(a._moveStart(!0,!1),this._moved=!0),I(this._animRequest);var B=c(a._move,a,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(B,this,!0),Vt(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,I(this._animRequest),ut(document,"touchmove",this._onTouchMove,this),ut(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});st.addInitHook("addHandler","touchZoom",im),st.BoxZoom=Xp,st.DoubleClickZoom=Qp,st.Drag=em,st.Keyboard=tm,st.ScrollWheelZoom=sm,st.TapHold=nm,st.TouchZoom=im,s.Bounds=$e,s.Browser=we,s.CRS=Ge,s.Canvas=Kp,s.Circle=eu,s.CircleMarker=ll,s.Class=ee,s.Control=qs,s.DivIcon=Wp,s.DivOverlay=on,s.DomEvent=by,s.DomUtil=gy,s.Draggable=Gn,s.Evented=fe,s.FeatureGroup=wn,s.GeoJSON=En,s.GridLayer=Fo,s.Handler=rn,s.Icon=wr,s.ImageOverlay=hl,s.LatLng=Ee,s.LatLngBounds=rt,s.Layer=Ks,s.LayerGroup=yr,s.LineUtil=Oy,s.Map=st,s.Marker=al,s.Mixin=Sy,s.Path=Yn,s.Point=G,s.PolyUtil=Cy,s.Polygon=kr,s.Polyline=kn,s.Popup=pl,s.PosAnimation=Cp,s.Projection=Ny,s.Rectangle=Jp,s.Renderer=Tn,s.SVG=jo,s.SVGOverlay=zp,s.TileLayer=Tr,s.Tooltip=ml,s.Transformation=Pt,s.Util=Z,s.VideoOverlay=Hp,s.bind=c,s.bounds=Ue,s.canvas=Gp,s.circle=jy,s.circleMarker=Uy,s.control=Mo,s.divIcon=Yy,s.extend=r,s.featureGroup=Ry,s.geoJSON=Vp,s.geoJson=zy,s.gridLayer=Jy,s.icon=By,s.imageOverlay=Wy,s.latLng=Ce,s.latLngBounds=We,s.layerGroup=My,s.map=xy,s.marker=Fy,s.point=ve,s.polygon=Hy,s.polyline=Vy,s.popup=Ky,s.rectangle=ew,s.setOptions=C,s.stamp=f,s.svg=Yp,s.svgOverlay=qy,s.tileLayer=Zp,s.tooltip=Gy,s.transformation=St,s.version=n,s.videoOverlay=Zy;var sw=window.L;s.noConflict=function(){return window.L=sw,this},window.L=s}))})(Yo,Yo.exports)),Yo.exports}var mB=pB();const ln=fB(mB),_B={class:"space-y-8 transition-colors duration-200"},gB={key:0,class:"py-20 text-center text-slate-400 dark:text-slate-500"},vB={key:1,class:"p-6 text-center text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-950/40 rounded-2xl border border-red-100 dark:border-red-900/50"},bB={key:2,class:"space-y-8"},xB={class:"grid grid-cols-2 sm:grid-cols-5 gap-4"},yB={class:"p-4 bg-white dark:bg-slate-900 rounded-2xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-1"},wB={class:"text-2xl font-black text-emerald-600 dark:text-emerald-400"},kB={class:"p-4 bg-white dark:bg-slate-900 rounded-2xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-1"},EB={class:"text-2xl font-black text-sky-600 dark:text-sky-400"},TB={class:"p-4 bg-white dark:bg-slate-900 rounded-2xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-1"},SB={class:"text-2xl font-black text-purple-600 dark:text-purple-400"},CB={class:"p-4 bg-white dark:bg-slate-900 rounded-2xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-1"},AB={class:"text-2xl font-black text-amber-600 dark:text-amber-400"},PB={class:"p-4 bg-white dark:bg-slate-900 rounded-2xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-1 col-span-2 sm:col-span-1"},IB={class:"text-2xl font-black text-teal-600 dark:text-teal-400"},LB={class:"p-6 bg-white dark:bg-slate-900 rounded-3xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-4"},OB={class:"overflow-x-auto pb-2"},NB={class:"inline-grid grid-rows-7 grid-flow-col gap-1.5 min-w-[700px]"},$B=["title"],DB={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},MB={class:"p-6 bg-white dark:bg-slate-900 rounded-3xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-4"},RB={class:"space-y-3"},BB={class:"flex justify-between text-xs font-semibold text-slate-600 dar
1446k:text-slate-300"},FB={class:"text-[11px] text-slate-400 font-mono"},UB={class:"text-emerald-600 dark:text-emerald-400"},jB={class:"w-full bg-slate-100 dark:bg-slate-800 h-2.5 rounded-full overflow-hidden flex"},VB={class:"p-6 bg-white dark:bg-slate-900 rounded-3xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-4"},HB={key:0,class:"py-12 text-center text-slate-400 text-xs italic"},zB={key:1,class:"space-y-3"},WB={class:"flex items-center justify-between text-xs"},ZB={class:"truncate max-w-[320px] flex items-center gap-1.5 flex-wrap"},qB={class:"font-bold text-slate-800 dark:text-slate-100"},KB={key:0,class:"text-[11px] text-slate-400 dark:text-slate-500 italic"},GB={class:"font-bold text-sky-600 dark:text-sky-400 shrink-0 font-mono"},YB={class:"w-full bg-slate-100 dark:bg-slate-800 h-2.5 rounded-full overflow-hidden"},JB={class:"p-6 bg-white dark:bg-slate-900 rounded-3xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-4"},XB={class:"flex items-center justify-between"},QB={class:"text-xs font-semibold text-purple-600 dark:text-purple-400"},eF={key:0,class:"py-12 text-center text-slate-400 text-xs italic"},tF={key:1,class:"space-y-3"},sF={class:"flex items-center justify-between text-xs"},nF={class:"font-extrabold text-slate-800 dark:text-slate-100"},iF={class:"font-mono text-purple-700 dark:text-purple-300 font-bold"},rF={class:"w-full bg-slate-200 dark:bg-slate-700 h-2 rounded-full overflow-hidden"},oF={class:"p-6 bg-white dark:bg-slate-900 rounded-3xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-6"},aF={class:"space-y-3"},lF={class:"grid grid-cols-6 sm:grid-cols-12 gap-1 items-end h-24 pt-4 border-b border-slate-100 dark:border-slate-800 pb-2"},cF=["title"],dF={class:"text-[9px] text-slate-400 font-mono select-none"},uF={class:"space-y-2"},fF={key:0,class:"text-xs text-slate-400 italic"},hF={key:1,class:"flex flex-wrap gap-2"},pF={class:"px-1.5 py-0.2 rounded-md bg-emerald-100 dark:bg-emerald-950 text-emerald-800 dark:text-emerald-300 text-[10px] font-black"},mF={class:"p-6 md:p-8 bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-100 rounded-3xl border border-slate-150 dark:border-slate-800 shadow-sm space-y-6 transition-colors"},_F={class:"flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-slate-200 dark:border-slate-800 pb-5"},gF={class:"px-3 py-1.5 rounded-xl bg-slate-100 dark:bg-slate-800 border border-slate-200 dark:border-slate-700 text-xs font-mono font-bold text-emerald-600 dark:text-emerald-400 shrink-0"},vF={class:"p-5 bg-slate-50 dark:bg-slate-800/60 rounded-2xl border border-slate-200/80 dark:border-slate-700/80 space-y-4"},bF={class:"grid grid-cols-1 sm:grid-cols-3 gap-4 items-end"},xF={class:"p-3 bg-white dark:bg-slate-900 rounded-xl border border-slate-200/80 dark:border-slate-700/60 text-xs space-y-1"},yF={class:"text-sm font-bold text-slate-800 dark:text-slate-100 font-mono truncate"},wF={class:"text-[11px] text-slate-500 dark:text-slate-400 font-medium"},kF={key:0,class:"animate-pulse"},EF={key:1},TF={class:"text-emerald-600 dark:text-emerald-400"},SF={class:"flex flex-wrap items-center gap-2 pt-1 border-t border-slate-200/60 dark:border-slate-700/60"},CF={key:0,class:"p-3.5 bg-amber-50 dark:bg-amber-950/40 border border-amber-200 dark:border-amber-900/60 rounded-xl text-amber-800 dark:text-amber-300 text-xs font-medium flex items-center gap-2.5"},AF={class:"grid grid-cols-1 sm:grid-cols-3 gap-4"},PF=["disabled"],IF=["disabled"],LF=["disabled","title"],OF={__name:"FieldInsights",setup(t){const e=ke(!0),s=ke(null),n=ke(null),r=ke(""),o=ke(""),c=ke([]),u=ke(!1),f=ke(!1),p=async()=>Ts.currentUser?await Ts.currentUser.getIdToken():null,m=async()=>{e.value=!0,s.value=null;try{const V=await p(),I=V?{Authorization:`Bearer ${V}`}:{},Z=await tt.get("/api/me/analytics",{headers:I});n.value=Z.data}catch(V){console.error("Error fetching analytics:",V),s.value="Failed to load analytics data. Please try refreshing."}finally{e.value=!1}},_=async()=>{u.value=!0;try{const V=await p();let I="/api/me/submitted-counts?";r.value&&(I+=`start_date=${r.value}&`),o.value&&(I+=`end_date=${o.value}&`);const Z=await tt.get(I,{headers:V?{Authorization:`Bearer ${V}`}:{}});c.value=Z.data?.data||Z.data||[]}catch(V){console.error("Error fetching matching counts for range:",V)}finally{u.value=!1}};yn(()=>{m(),_()});const y=V=>{if(V==null||V==="")return"â";const I=Number(V);return isNaN(I)?"â":I>=1?`${I.toFixed(2)} km`:`${Math.round(I*1e3)} m`},S=(V,I)=>!I||I<=0?0:Math.min(100,Math.round((V||0)/I*100)),T=V=>{if(!V)return{label:"Unlisted / Custom",shortLabel:"Unlisted",badgeClass:"bg-amber-100 text-amber-800 border-amber-200 dark:bg-amber-950/80 dark:text-amber-300 dark:border-amber-800",dotClass:"bg-amber-500",categoryKey:"unlisted_custom"};let I=V.taxonomy_category;if(!I){const Z=V.taxa_id||V.id,ee=V.inat_id??V.i_naturalist_id??V.taxa?.inat_id,me=V.ancestry||V.taxa?.ancestry;Z?ee!=null&&me&&(!Array.isArray(me)||me.length>0)?I="inat_verified":I="local_checklist":I="unlisted_custom"}switch(I){case"inat_verified":return{label:"iNat Verified",shortLabel:"iNat Verified",badgeClass:"bg-emerald-100 text-emerald-800 border-emerald-200 dark:bg-emerald-950/80 dark:text-emerald-300 dark:border-emerald-800",dotClass:"bg-emerald-500",categoryKey:"inat_verified"};case"local_checklist":return{label:"Local Checklist",shortLabel:"Local List",badgeClass:"bg-sky-100 text-sky-800 border-sky-200 dark:bg-sky-950/80 dark:text-sky-300 dark:border-sky-800",dotClass:"bg-sky-500",categoryKey:"local_checklist"};default:return{label:"Unlisted / Custom",shortLabel:"Unlisted",badgeClass:"bg-amber-100 text-amber-800 border-amber-200 dark:bg-amber-950/80 dark:text-amber-300 dark:border-amber-800",dotClass:"bg-amber-500",categoryKey:"unlisted_custom"}}},C=Se(()=>n.value?.monthly?.abundance?Math.max(...n.value.monthly.abundance,1):1),M=Se(()=>n.value?.top_species?.length?Math.max(...n.value.top_species.map(V=>V.total_individuals),1):1),j=Se(()=>
1446n.value?.families?.length?n.value.families.reduce((V,I)=>V+(I.total_individuals||0),0):1),D=Se(()=>{if(!n.value?.hourly)return{};const V={};for(let I=6;I<=18;I++)V[I]=n.value.hourly[I]||0;return V}),P=Se(()=>{const V=Object.values(D.value);return V.length?Math.max(...V,1):1}),$=Se(()=>{if(!n.value)return[];const V=[],I=new Date,Z=n.value.heatmap||{};for(let ee=364;ee>=0;ee--){const me=new Date(I);me.setDate(me.getDate()-ee);const ne=me.toISOString().split("T")[0];V.push({date:ne,count:Z[ne]||0})}return V}),U=Se(()=>!r.value&&!o.value?"All Time":r.value&&o.value?`${r.value} to ${o.value}`:r.value?`From ${r.value}`:`Until ${o.value}`),J=Se(()=>c.value.length>100||c.value.length===0||f.value||u.value),se=V=>{const I=new Date,Z=I.toISOString().split("T")[0];if(V==="all")r.value="",o.value="";else if(V==="30"){const ee=new Date;ee.setDate(ee.getDate()-30),r.value=ee.toISOString().split("T")[0],o.value=Z}else if(V==="90"){const ee=new Date;ee.setDate(ee.getDate()-90),r.value=ee.toISOString().split("T")[0],o.value=Z}else if(V==="year"){const ee=I.getFullYear();r.value=`${ee}-01-01`,o.value=Z}_()},W=async V=>{f.value=!0;try{const I=await p();let Z=`/api/me/export?format=${V}`;r.value&&(Z+=`&start_date=${r.value}`),o.value&&(Z+=`&end_date=${o.value}`);const ee=I?{Authorization:`Bearer ${I}`}:{},me=await tt.get(Z,{headers:ee,responseType:"blob"}),ne=me.headers["content-disposition"];let fe="butterflycounts_export";if(V==="geojson"?fe+=".geojson":fe+="_bundle.zip",ne){const ve=ne.match(/filename="?([^"]+)"?/);ve&&ve[1]&&(fe=ve[1])}const G=window.URL.createObjectURL(new Blob([me.data])),_e=document.createElement("a");_e.href=G,_e.setAttribute("download",fe),document.body.appendChild(_e),_e.click(),_e.remove(),window.URL.revokeObjectURL(G)}catch(I){console.error("Error exporting data:",I),alert("Failed to generate export file. Please try again.")}finally{f.value=!1}},F=V=>{if(!V)return"â";const I=new Date(V);return isNaN(I.getTime())?V:I.toLocaleDateString("en-US",{day:"numeric",month:"short",year:"numeric"})},z=async()=>{if(c.value.length>100){alert("PDF Field Reports are limited to a maximum of 100 counts. Please select a narrower date range.");return}f.value=!0;try{const V=await p();let I="/api/me/submitted-counts?limit=100";r.value&&(I+=`&start_date=${r.value}`),o.value&&(I+=`&end_date=${o.value}`);const Z=await tt.get(I,{headers:V?{Authorization:`Bearer ${V}`}:{}}),ee=window.open("","_blank");if(!ee){alert("Please allow popups to open the PDF report.");return}const me=Z.data?.data||Z.data||[],ne=Ts.currentUser?.displayName||Ts.currentUser?.email||"Field Observer",fe=new Date().toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});let G="";me.forEach((_e,ve)=>{const $e=me.length-ve,Ue=_e.observations||[],rt=new Set(Ue.map(N=>N.taxa_id||N.taxa_scientific_name||N.taxa_common_name)).size,We=Ue.reduce((N,b)=>N+(b.individuals||0),0),Ce=[_e.place_name,_e.district_name,_e.state_name,_e.country_name].filter(Boolean).slice(1).join(", ")||"Transect Location",Ge=_e.start_time?_e.start_time.split("T")[1]?.substring(0,5)||_e.start_time.substring(0,5):"",nt=_e.end_time?_e.end_time.split("T")[1]?.substring(0,5)||_e.end_time.substring(0,5):"",Tt=Ge||nt?`${Ge||"â"} - ${nt||"â"}`:"â",_t=_e.latitude!=null&&_e.longitude!=null?`${Number(_e.latitude).toFixed(4)}, ${Number(_e.longitude).toFixed(4)}`:"â",Pt=_e.accuracy!=null?`Accuracy: ±${_e.accuracy}m`:"Accuracy: â",St=_e.altitude!=null?`${_e.altitude} m`:"â",R=y(_e.distance_covered);let H="";Ue.length?Ue.forEach(N=>{const b=N.taxa_common_name||N.taxa_scientific_name||"Unknown Species",O=N.taxa_scientific_name?`<i>${N.taxa_scientific_name}</i>`:"",K=N.timestamp?N.timestamp.split("T")[1]?.substring(0,5)||N.timestamp.substring(0,5):Ge||"â",X=T(N);let re="#fef3c7",oe="#92400e",ie="#fde68a";X.categoryKey==="inat_verified"?(re="#dcfce7",oe="#166534",ie="#bbf7d0"):X.categoryKey==="local_checklist"&&(re="#e0f2fe",oe="#075985",ie="#bae6fd"),H+=` 1447 <tr style="border-bottom: 1px solid #f1f5f9;"> 1448 <td style="padding: 10px 12px;"> 1449 <div style="font-weight: 700; color: #0f172a;">${b}</div> 1450 ${O?`<div style="font-size: 11px; color: #64748b; margin-top: 2px;">${O}</div>`:""} 1451 </td> 1452 <td style="padding: 10px 12px;">
1453 <span style="font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: ${re}; color: ${oe}; border: 1px solid ${ie};">${X.shortLabel}</span> 1454 </td> 1455 <td style="padding: 10px 12px; text-align: center; font-weight: 900; color: #059669; font-size: 14px;"> 1456 ${N.individuals||0} 1457 </td> 1458 <td style="padding: 10px 12px; color: #475569; font-size: 11px;"> 1459 ${N.activity||"â"} 1460 </td> 1461 <td style="padding: 10px 12px; color: #475569; font-size: 11px; font-family: monospace;"> 1462 ${K} 1463 </td> 1464 <td style="padding: 10px 12px; color: #64748b; font-size: 11px;"> 1465 ${N.notes||"â"} 1466 </td> 1467 </tr> 1468 `}):H=` 1469 <tr> 1470 <td colspan="5" style="padding: 14px; text-align: center; color: #94a3b8; font-style: italic;"> 1471 No species observations recorded for this count. 1472 </td> 1473 </tr> 1474 `,G+=` 1475 <div class="count-card-page"> 1476 <div class="card-box"> 1477 1478 <!-- Card Header --> 1479 <div class="card-header"> 1480 <div> 1481 <div class="place-title"> 1482 ${_e.place_name||"Field Transect"} 1483 <span class="${_e.open_access?"access-badge-public":"access-badge-private"}"> 1484 ${_e.open_access?"Public Access":"Private Access"} 1485 </span> 1486 </div> 1487 <div class="location-sub">${Ce}</div> 1488 </div> 1489 <div class="count-badge">Count #${_e.id}</div> 1490 </div> 1491 1492 <!-- 4 Metric Cards Grid --> 1493 <div class="metrics-grid"> 1494 <div class="m-card"> 1495 <div class="m-label">DATE & TIME</div> 1496 <div class="m-val">${F(_e.date)}</div> 1497 <div class="m-sub">${Tt}</div> 1498 </div> 1499 1500 <div class="m-card"> 1501 <div class="m-label">COORDINATES</div> 1502 <div class="m-val font-mono">${_t}</div> 1503 <div class="m-sub">${Pt}</div> 1504 </div> 1505 1506 <div class="m-card"> 1507 <div class="m-label">WEATHER & DISTANCE</div> 1508 <div class="m-val">${_e.weather||"â"}</div> 1509 <div class="m-sub">Distance: ${R}</div> 1510 </div> 1511 1512 <div class="m-card"> 1513 <div class="m-label">ALTITUDE & TEAM</div> 1514 <div class="m-val">${St}</div> 1515 <div class="m-sub">${ne}</div> 1516 </div> 1517 </div> 1518 1519 <!-- Species Observations Section Title --> 1520 <div class="obs-section-title"> 1521 Species Observations (${rt} species • ${We} total individuals) 1522 </div> 1523 1524 <!-- Species Table Box --> 1525 <div class="table-container"> 1526 <table class="obs-table"> 1527 <thead> 1528 <tr> 1529 <th>SPECIES</th> 1530 <th>STATUS</th> 1531 <th style="text-align: center;">COUNT</th> 1532 <th>ACTIVITY</th> 1533 <th>OBSERVATION TIME</th> 1534 <th>NOTES</th> 1535 </tr> 1536 </thead> 1537 <tbody> 1538 ${H} 1539 </tbody> 1540 </table> 1541 </div> 1542 1543 ${_e.notes?` 1544 <div class="notes-box"> 1545 <strong>Survey Notes:</strong> ${_e.notes} 1546 </div> 1547 `:""} 1548 1549 </div> 1550 </div> 1551 `}),ee.document.write(` 1552 <!DOCTYPE html> 1553 <html> 1554 <head> 1555 <title>ButterflyCounts Field Report (${U.value})</title> 1556 <style> 1557 @page { 1558 size: A4 portrait; 1559 margin: 12mm; 1560 } 1561 body { 1562 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 1563 margin: 0; 1564 padding: 0; 1565 color: #0f172a; 1566 background: #fff; 1567 -webkit-print-color-adjust: exact !important; 1568 print-color-adjust: exact !important; 1569 } 1570 1571 /* Report Top Header Cover Banner */ 1572 .report-cover { 1573 border-bottom: 3px solid #059669; 1574 padding-bottom: 16px; 1575 margin-bottom: 24px; 1576 display: flex; 1577 justify-content: space-between; 1578 align-items: flex-end; 1579 } 1580 .report-title { 1581 font-size: 26px; 1582 font-weight: 900; 1583 color: #059669; 1584 margin: 0; 1585 letter-spacing: -0.5px; 1586 } 1587 .report-subtitle { 1588 font-size: 12px; 1589 color: #64748b; 1590 margin-top: 4px; 1591 font-weight: 500; 1592 } 1593 .report-meta { 1594 text-align: right; 1595 font-size: 11px; 1596 color: #475569; 1597 line-height: 1.6; 1598 } 1599 1600 .summary-grid { 1601 display: grid; 1602 grid-template-columns: repeat(3, 1fr); 1603 gap: 12px; 1604 margin-bottom: 24px; 1605 } 1606 .s-card { 1607 background: #f8fafc; 1608 border: 1px solid #e2e8f0; 1609 padding: 12px 14px; 1610 border-radius: 12px; 1611 } 1612 .s-label { 1613 font-size: 9px; 1614 text-transform: uppercase; 1615 font-weight: 800; 1616 color: #64748b; 1617 letter-spacing: 0.5px; 1618 } 1619 .s-val { 1620 font-size: 22px; 1621 font-weight: 900; 1622 color: #0f172a; 1623 margin-top: 2px; 1624 } 1625
1626 /* Count Card Modal Replica */ 1627 .count-card-page { 1628 page-break-before: always; 1629 break-before: page; 1630 padding-top: 8px; 1631 } 1632 .count-card-page:first-of-type { 1633 page-break-before: avoid; 1634 break-before: avoid; 1635 } 1636 1637 .card-box { 1638 background: #ffffff; 1639 border: 1.5px solid #cbd5e1; 1640 border-radius: 20px; 1641 padding: 24px; 1642 margin-bottom: 20px; 1643 box-shadow: 0 4px 12px rgba(0,0,0,0.03); 1644 } 1645 1646 .card-header { 1647 display: flex; 1648 justify-content: space-between; 1649 align-items: flex-start; 1650 border-bottom: 1px solid #e2e8f0; 1651 padding-bottom: 16px; 1652 margin-bottom: 18px; 1653 } 1654 .place-title { 1655 font-size: 22px; 1656 font-weight: 900; 1657 color: #0f172a; 1658 display: flex; 1659 align-items: center; 1660 gap: 10px; 1661 } 1662 .location-sub { 1663 font-size: 13px; 1664 color: #64748b; 1665 margin-top: 4px; 1666 } 1667 .access-badge-public { 1668 display: inline-block; 1669 font-size: 10px; 1670 font-weight: 800; 1671 padding: 3px 10px; 1672 border-radius: 20px; 1673 background: #dcfce7; 1674 color: #166534; 1675 border: 1px solid #bbf7d0; 1676 } 1677 .access-badge-private { 1678 display: inline-block; 1679 font-size: 10px; 1680 font-weight: 800; 1681 padding: 3px 10px; 1682 border-radius: 20px; 1683 background: #f1f5f9; 1684 color: #475569; 1685 border: 1px solid #e2e8f0; 1686 } 1687 .count-badge { 1688 font-size: 11px; 1689 font-weight: 800; 1690 font-family: monospace; 1691 padding: 4px 10px; 1692 background: #f8fafc; 1693 border: 1px solid #cbd5e1; 1694 border-radius: 8px; 1695 color: #059669; 1696 } 1697 1698 /* 4 Metric Cards Grid */ 1699 .metrics-grid { 1700 display: grid; 1701 grid-template-columns: repeat(4, 1fr); 1702 gap: 12px; 1703 margin-bottom: 20px; 1704 } 1705 .m-card { 1706 background: #f8fafc; 1707 border: 1px solid #e2e8f0; 1708 border-radius: 14px; 1709 padding: 14px; 1710 } 1711 .m-label { 1712 font-size: 9px; 1713 font-weight: 800; 1714 text-transform: uppercase; 1715 color: #94a3b8; 1716 letter-spacing: 0.5px; 1717 } 1718 .m-val { 1719 font-size: 15px; 1720 font-weight: 800; 1721 color: #0f172a; 1722 margin-top: 4px; 1723 } 1724 .m-sub { 1725 font-size: 11px; 1726 color: #64748b; 1727 margin-top: 2px; 1728 } 1729 1730 .obs-section-title { 1731 font-size: 14px; 1732 font-weight: 800; 1733 color: #0f172a; 1734 margin-bottom: 12px; 1735 } 1736 1737 /* Table Container */ 1738 .table-container { 1739 border: 1px solid #cbd5e1; 1740 border-radius: 14px; 1741 overflow: hidden; 1742 } 1743 .obs-table { 1744 width: 100%; 1745 border-collapse: collapse; 1746 font-size: 12px; 1747 } 1748 .obs-table th { 1749 background: #f8fafc; 1750 padding: 10px 12px; 1751 text-align: left; 1752 font-size: 10px; 1753 font-weight: 800; 1754 text-transform: uppercase; 1755 color: #64748b; 1756 border-bottom: 1px solid #cbd5e1; 1757 letter-spacing: 0.5px; 1758 } 1759 1760 .notes-box { 1761 margin-top: 14px; 1762 padding: 12px 14px; 1763 background: #f8fafc; 1764 border: 1px solid #e2e8f0; 1765 border-radius: 12px; 1766 font-size: 12px; 1767 color: #334155; 1768 } 1769 1770 .footer-note { 1771 margin-top: 30px; 1772 text-align: center; 1773 font-size: 11px; 1774 color: #94a3b8; 1775 } 1776 1777 @media print { 1778 .count-card-page { 1779 page-break-before: always; 1780 break-before: page; 1781 } 1782 .count-card-page:first-of-type { 1783 page-break-before: avoid; 1784 break-before: avoid; 1785 } 1786 } 1787 </style> 1788 </head> 1789 <body> 1790 <div class="report-cover"> 1791 <div> 1792 <h1 class="report-title">ButterflyCounts Field Report</h1> 1793 <div class="report-subtitle">Official Observation & Survey Log Summary</div> 1794 </div> 1795 <div class="report-meta"> 1796 <strong>Observer:</strong> ${ne}<br/> 1797 <strong>Generated:</strong> ${fe}<br/> 1798 <strong>Date Range:</strong> ${U.value} 1799 </div> 1800 </div> 1801 1802 <div class="summary-grid"> 1803 <div class="s-card"> 1804 <div class="s-label">Counts Included</div> 1805 <div class="s-val">${me.length}</div> 1806 </div> 1807 <div class="s-card"> 1808 <div class="s-label">Date Range</div> 1809 <div class="s-val" style="font-size: 14px; padding-top: 6px;">${U.value}</div> 1810 </div> 1811 <div class="s-card"> 1812 <div class="s-label">Report Status</div> 1813 <div class="s-val" style="font-size: 14px; color: #059669; padding-top: 6px;">Verified Log</div> 1814 </div> 1815 </div> 1816 1817 ${G||'<div style="padding: 40px; text-align: center; color: #94a3b8;">No survey counts found in the selected date range.</div>'} 1818 1819 <div class="footer-note"> 1820 Generated via ButterflyCounts Field Insights • www.butterflycounts.org 1821 </div> 1822 1823 <script> 1824 window.onload = function() { 1825 window.print(); 1826 }; 1827 <\/script> 1828 </body> 1829 </html> 1830 `),ee.document.close()}catch(V){console.error("Error generating PDF report:",V),alert("Failed to generate PDF report.")}finally{f.value=!1}};return(V,I)=>(w(),k("div",_B,[l("div",{class:"flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-200 dark:border-slate-800 pb-6"},[I[9]||(I[9]=Ys('<div><h2 class="text-2xl font-black text-slate-800 dark:text-slate-100 tracking-tight flex items-center gap-2.5"><span class="p-2 bg-emerald-100 dark:bg-emerald-950/80 rounded-xl text-emerald-600 dark:text-emerald-400"><svg class="w-6 h-6" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
1830<path stroke-linecap="round" stroke-linejoin="round" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path></svg></span> Field Insights & Data Export </h2><p class="text-xs text-slate-500 dark:text-slate-400 mt-1 font-medium"> Ecological analytics, species abundance trends, and downloadable survey archives. </p></div>',1)),l("div",{class:"flex items-center gap-3"},[l("button",{onClick:m,class:"px-3.5 py-2 rounded-xl bg-slate-100 hover:bg-slate-200 dark:bg-slate-800 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 font-bold text-xs transition-colors flex items-center gap-1.5 cursor-pointer border border-slate-200/80 dark:border-slate-700/80"},[...I[8]||(I[8]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),l("span",null,"Refresh Data",-1)])])])]),e.value?(w(),k("div",gB,[...I[10]||(I[10]=[l("div",{class:"inline-block animate-spin rounded-full h-8 w-8 border-4 border-emerald-500 border-t-transparent mb-3"},null,-1),l("p",{class:"text-sm font-semibold"},"Generating your field insights...",-1)])])):s.value?(w(),k("div",vB,v(s.value),1)):n.value?(w(),k("div",bB,[l("div",xB,[l("div",yB,[I[11]||(I[11]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Submitted Counts",-1)),l("div",wB,v(n.value.metrics.total_counts),1)]),l("div",kB,[I[12]||(I[12]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Species Logged",-1)),l("div",EB,v(n.value.metrics.total_species),1)]),l("div",TB,[I[13]||(I[13]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Total Individuals",-1)),l("div",SB,v(n.value.metrics.total_individuals),1)]),l("div",CB,[I[14]||(I[14]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Days Surveyed",-1)),l("div",AB,v(n.value.metrics.total_days),1)]),l("div",PB,[I[15]||(I[15]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Distance Surveyed",-1)),l("div",IB,v(y(n.value.metrics.total_distance)),1)])]),l("div",LB,[I[16]||(I[16]=Ys('<div class="flex items-center justify-between"><div><h3 class="text-sm font-extrabold text-slate-800 dark:text-slate-100 tracking-tight">Survey Activity Heatmap</h3><p class="text-xs text-slate-400 dark:text-slate-500">Daily survey intensity over the past 365 days</p></div><div class="flex items-center gap-1.5 text-[10px] text-slate-400"><span>Less</span><span class="w-3 h-3 rounded bg-slate-100 dark:bg-slate-800"></span><span class="w-3 h-3 rounded bg-emerald-200 dark:bg-emerald-950"></span><span class="w-3 h-3 rounded bg-emerald-400 dark:bg-emerald-700"></span><span class="w-3 h-3 rounded bg-emerald-600 dark:bg-emerald-500"></span><span>More</span></div></div>',1)),l("div",OB,[l("div",NB,[(w(!0),k(pe,null,Ne($.value,(Z,ee)=>(w(),k("div",{key:ee,title:`${Z.date}: ${Z.count} count(s)`,class:ce(["w-3.5 h-3.5 rounded-sm transition-colors cursor-pointer",Z.count===0?"bg-slate-100 dark:bg-slate-800/80 hover:bg-slate-200 dark:hover:bg-slate-700":Z.count===1?"bg-emerald-300 dark:bg-emerald-900 hover:opacity-80":Z.count<=3?"bg-emerald-500 dark:bg-emerald-600 hover:opacity-80":"bg-emerald-700 dark:bg-emerald-400 hover:opacity-80"])},null,10,$B))),128))])])]),l("div",DB,[l("div",MB,[I[17]||(I[17]=l("div",{class:"flex items-center justify-between"},[l("h3",{class:"text-sm font-extrabold text-slate-800 dark:text-slate-100 tracking-tight"},"Monthly Abundance & Effort"),l("span",{class:"text-xs font-semibold text-emerald-600 dark:text-emerald-400"},"Jan â Dec")],-1)),l("div",RB,[(w(!0),k(pe,null,Ne(n.value.monthly.labels,(Z,ee)=>(w(),k("div",{key:ee,class:"space-y-1"},[l("div",BB,[l("span",null,v(Z),1),l("span",FB,[Me(v(n.value.monthly.effort[ee])+" surveys ⢠",1),l("strong",UB,v(n.value.monthly.abundance[ee])+" ind.",1)])]),l("div",jB,[l("div",{class:"bg-emerald-500 dark:bg-emerald-400 h-full rounded-full transition-all duration-500",style:Ut({width:S(n.value.monthly.abundance[ee],C.value)+"%"})},null,4)])]))),128))])]),l("div",VB,[I[18]||(I[18]=l("div",{class:"flex items-center justify-between"},[l("h3",{class:"text-sm font-extrabold text-slate-800 dark:text-slate-100 tracking-tight"},"Top 10 Most Logged Species"),l("span",{class:"text-xs font-semibold text-sky-600 dark:text-sky-400"}
1830,"By Individual Count")],-1)),n.value.top_species.length?(w(),k("div",zB,[(w(!0),k(pe,null,Ne(n.value.top_species,(Z,ee)=>(w(),k("div",{key:ee,class:"space-y-1"},[l("div",WB,[l("div",ZB,[l("span",qB,v(Z.common_name),1),Z.scientific_name?(w(),k("span",KB,"("+v(Z.scientific_name)+")",1)):ae("",!0),l("span",{class:ce(["px-1.5 py-0.2 rounded text-[9px] font-bold border flex items-center gap-1 shrink-0",T(Z).badgeClass])},[l("span",{class:ce(["w-1 h-1 rounded-full",T(Z).dotClass])},null,2),l("span",null,v(T(Z).shortLabel),1)],2)]),l("span",GB,v(Z.total_individuals)+" ind.",1)]),l("div",YB,[l("div",{class:"bg-sky-500 dark:bg-sky-400 h-full rounded-full transition-all duration-500",style:Ut({width:S(Z.total_individuals,M.value)+"%"})},null,4)])]))),128))])):(w(),k("div",HB," No species observations logged yet. "))]),l("div",JB,[l("div",XB,[I[19]||(I[19]=l("h3",{class:"text-sm font-extrabold text-slate-800 dark:text-slate-100 tracking-tight"},"Taxonomic Family Breakdown",-1)),l("span",QB,v(n.value.families.length)+" Families",1)]),n.value.families.length?(w(),k("div",tF,[(w(!0),k(pe,null,Ne(n.value.fam
1830ilies,(Z,ee)=>(w(),k("div",{key:ee,class:"p-3 bg-slate-50 dark:bg-slate-800/50 rounded-xl border border-slate-100 dark:border-slate-800/80 space-y-1.5"},[l("div",sF,[l("span",nF,v(Z.family_name),1),l("span",iF,v(Z.total_individuals)+" ind. ⢠"+v(Z.species_count)+" species ",1)]),l("div",rF,[l("div",{class:"bg-purple-600 dark:bg-purple-400 h-full rounded-full transition-all duration-500",style:Ut({width:S(Z.total_individuals,j.value)+"%"})},null,4)])]))),128))])):(w(),k("div",eF," No taxonomy data recorded yet. "))]),l("div",oF,[l("div",aF,[I[20]||(I[20]=l("h3",{class:"text-sm font-extrabold text-slate-800 dark:text-slate-100 tracking-tight"},"Survey Start Time Distribution",-1)),l("div",lF,[(w(!0),k(pe,null,Ne(D.value,(Z,ee)=>(w(),k("div",{key:ee,class:"flex flex-col items-center gap-1 group"},[l("div",{class:"w-full bg-amber-400 dark:bg-amber-500 rounded-t transition-all duration-300 group-hover:bg-amber-500",style:Ut({height:S(Z,P.value)+"%",minHeight:Z>0?"4px":"2px"}),title:`${ee}:00 - ${Z} survey(s)`},null,12,cF),l("span",dF,v(ee),1)]))),128))])]),l("div",uF,[I[21]||(I[21]=l("span",{class:"text-xs font-extrabold text-slate-700 dark:text-slate-300 uppercase tracking-wider block"},"Weather Conditions",-1)),n.value.weather.length?(w(),k("div",hF,[(w(!0),k(pe,null,Ne(n.value.weather,(Z,ee)=>(w(),k("span",{key:ee,class:"px-3 py-1 rounded-xl bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-200 text-xs font-bold border border-slate-200/60 dark:border-slate-700/60 flex items-center gap-1.5"},[l("span",null,v(Z.weather_name),1),l("span",pF,v(Z.count_total),1)]))),128))])):(w(),k("div",fF,"No weather entries logged."))])])]),l("div",mF,[l("div",_F,[I[22]||(I[22]=Ys('<div><h3 class="text-lg font-black text-slate-800 dark:text-slate-100 tracking-tight flex items-center gap-2"><span class="p-1.5 bg-emerald-100 dark:bg-emerald-950/80 rounded-lg text-emerald-600 dark:text-emerald-400"><svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg></span> Download Your Personal Survey Data </h3><p class="text-xs text-slate-500 dark:text-slate-400 mt-0.5"> Select a date range to export survey records in CSV Zip Bundle, GeoJSON, or printable PDF Field Reports. </p></div>',1)),l("div",gF," Total Lifetime: "+v(n.value.metrics.total_counts)+" Counts ",1)]),l("div",vF,[l("div",bF,[l("div",null,[I[23]||(I[23]=l("label",{class:"block text-xs font-extrabold text-slate-700 dark:text-slate-300 mb-1"},"From Date",-1)),Ke(l("input",{"onUpdate:modelValue":I[0]||(I[0]=Z=>r.value=Z),onChange:_,type:"date",class:"w-full p-2.5 rounded-xl bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 text-slate-800 dark:text-white font-bold text-xs outline-none focus:ring-2 focus:ring-emerald-500"},null,544),[[Nt,r.value]])]),l("div",null,[I[24]||(I[24]=l("label",{class:"block text-xs font-extrabold text-slate-700 dark:text-slate-300 mb-1"},"To Date",-1)),Ke(l("input",{"onUpdate:modelValue":I[1]||(I[1]=Z=>o.value=Z),onChange:_,type:"date",class:"w-full p-2.5 rounded-xl bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 text-slate-800 dark:text-white font-bold text-xs outline-none focus:ring-2 focus:ring-emerald-500"},null,544),[[Nt,o.value]])]),l("div",xF,[I[26]||(I[26]=l("span",{class:"text-[10px] font-extrabold text-emerald-600 dark:text-emerald-400 uppercase tracking-wider block"},"Selected Date Range",-1)),l("div",yF,v(U.value),1),l("div",wF,[u.value?(w(),k("span",kF,"Calculating counts...")):(w(),k("span",EF,[l("strong",TF,v(c.value.length),1),I[25]||(I[25]=Me(" count(s) found in range",-1))]))])])]),l("div",SF,[I[27]||(I[27]=l("span",{class:"text-[11px] font-bold text-slate-400 dark:text-slate-500"},"Quick Range Presets:",-1)),l("button",{onClick:I[2]||(I[2]=Z=>se("all")),class:"px-2.5 py-1 rounded-lg text-xs font-bold bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 text-slate-600 dark:text-slate-300 hover:border-emerald-500 transition-colors cursor-pointer"},"All Time"),l("button",{onClick:I[3]||(I[3]=Z=>se("30")),class:"px-2.5 py-1 rounded-lg text-xs font-bold bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 text-slate-600 dar
1830k:text-slate-300 hover:border-emerald-500 transition-colors cursor-pointer"},"Past 30 Days"),l("button",{onClick:I[4]||(I[4]=Z=>se("90")),class:"px-2.5 py-1 rounded-lg text-xs font-bold bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 text-slate-600 dark:text-slate-300 hover:border-emerald-500 transition-colors cursor-pointer"},"Past 90 Days"),l("button",{onClick:I[5]||(I[5]=Z=>se("year")),class:"px-2.5 py-1 rounded-lg text-xs font-bold bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 text-slate-600 dark:text-slate-300 hover:border-emerald-500 transition-colors cursor-pointer"},"This Year")])]),c.value.length>100?(w(),k("div",CF,[I[33]||(I[33]=l("svg",{class:"w-5 h-5 text-amber-500 shrink-0",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})],-1)),l("span",null,[I[28]||(I[28]=l("strong",null,"PDF Field Reports",-1)),I[29]||(I[29]=Me(" are limited to a maximum of ",-1)),I[30]||(I[30]=l("strong",null,"100 counts",-1)),I[31]||(I[31]=Me(" per file (Selected range contains ",-1)),l("strong",null,v(c.value.length),1),I[32]||(I[32]=Me(" counts). Please narrow your date range to generate a PDF report. CSV Zip Bundle & GeoJSON downloads remain active for all range sizes! ",-1))])])):ae("",!0),l("div",AF,[l("button",{onClick:I[6]||(I[6]=Z=>W("csv_zip")),disabled:f.value||u.value||c.value.length===0,class:"p-4 rounded-2xl bg-purple-600 hover:bg-purple-500 text-white font-bold text-xs shadow-md shadow-purple-950/20 transition-all cursor-pointer flex flex-col items-center justify-center gap-2 border border-purple-500 disabled:opacity-40 disabled:cursor-not-allowed"},[...I[34]||(I[34]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 8h14M5 8a2 2 0 01-2-2V5a2 2 0 012-2h14a2 2 0 012 2v1a2 2 0 01-2 2M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"})],-1),l("span",null,"Download CSV Bundle",-1),l("span",{class:"text-[10px] font-normal text-purple-200"},"Zip archive (surveys.csv + observations.csv)",-1)])],8,PF),l("button",{onClick:I[7]||(I[7]=Z=>W("geojson")),disabled:f.value||u.value||c.value.length===0,class:"p-4 rounded-2xl bg-sky-600 hover:bg-sky-500 text-white font-bold text-xs shadow-md shadow-sky-950/20 transition-all cursor-pointer flex flex-col items-center justify-center gap-2 border border-sky-500 disabled:opacity-40 disabled:cursor-not-allowed"},[...I[35]||(I[35]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})],-1),l("span",null,"Download GeoJSON",-1),l("span",{class:"text-[10px] font-normal text-sky-200"},"Spatial feature collection for GIS",-1)])],8,IF),l("button",{onClick:z,disabled:J.value,class:ce(["p-4 rounded-2xl font-bold text-xs shadow-md transition-all flex flex-col items-center justify-center gap-2 border",J.value?"bg-slate-300 dark:bg-slate-800 text-slate-500 dark:text-slate-500 border-slate-300 dark:border-slate-700 cursor-not-allowed opacity-60":"bg-amber-600 hover:bg-amber-500 text-white border-amber-500 cursor-pointer shadow-amber-950/20"]),title:c.value.length>100?"PDF export is disabled for date ranges with > 100 counts":"Print PDF Field Report"},[I[36]||(I[36]=l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17 17h2a2 2 0 002-2v-4a2 2 0 00-2-2H5a2 2 0 00-2 2v4a2 2 0 002 2h2m2 4h6a2 2 0 002-2v-4a2 2 0 00-2-2H9a2 2 0 00-2 2v4a2 2 0 002 2zm8-12V5a2 2 0 00-2-2H9a2 2 0 00-2 2v4h10z"})],-1)),I[37]||(I[37]=l("span",null,"Print PDF Report",-1)),l("span",{class:ce(["text-[10px] font-normal",J.value?"text-slate-400":"text-amber-200"])},v(c.value.length>100?"Disabled (> 100 counts)":"Modal-styled count cards (1 per page)"),3)],10,LF)])])])):ae("",!0)]))}},NF={class:"min-h-screen bg-slate-50 dark:bg-slate-950 text-slate-800 dark:text-slate-100 flex flex-col font-sans transition-colors duration-200"},$F={class:"bg-white dark:bg-slate-900 border-b border-slate-200 dark:border-slate-800 sticky top-0 z-40 shadow-sm transition-colors duration-200"},DF={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between"},MF={class:"flex items-center gap-6"},RF={key:0,class:"hidden sm:flex items-center gap-1.5 p-1 bg-slate-100 dar
1830k:bg-slate-800/80 rounded-xl border border-slate-200/60 dark:border-slate-700/60"},BF={key:0,class:"flex items-center gap-4"},FF={class:"hidden sm:flex flex-col text-right"},UF={class:"text-sm font-bold text-slate-700 dark:text-slate-200"},jF={class:"text-xs text-slate-400 dark:text-slate-400"},VF=["title"],HF={key:0,class:"w-5 h-5 text-amber-400",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},zF={key:1,class:"w-5 h-5 text-slate-600",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},WF={key:0,class:"sm:hidden bg-white dark:bg-slate-900 border-b border-slate-200 dark:border-slate-800 px-4 py-2.5 flex items-center justify-center gap-2"},ZF={class:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-8"},qF={key:1},KF={key:0,class:"py-16 text-center text-slate-400 dark:text-slate-500"},GF={key:1,class:"space-y-8"},YF={key:0},JF={class:"grid grid-cols-1 md:grid-cols-3 gap-6"},XF={class:"flex-1"},QF={class:"flex items-center justify-between"},eU={key:0,class:"w-2.5 h-2.5 rounded-full bg-emerald-500 ring-4 ring-emerald-100 dark:ring-emerald-900/60"},tU={class:"text-3xl font-black text-slate-800 dark:text-slate-100 mt-1"},sU={class:"flex-1"},nU={class:"flex items-center justify-between"},iU={key:0,class:"w-2.5 h-2.5 rounded-full bg-sky-500 ring-4 ring-sky-100 dark:ring-sky-900/60"},rU={class:"flex items-baseline gap-2 mt-1"},oU={class:"text-3xl font-black text-slate-800 dark:text-slate-100"},aU={class:"text-xs font-semibold text-emerald-600 dark:text-emerald-400"},lU={class:"flex-1"},cU={class:"flex items-center justify-between"},dU={key:0,class:"w-2.5 h-2.5 rounded-full bg-purple-500 ring-4 ring-purple-100 dark:ring-purple-900/60"},uU={class:"flex items-baseline gap-2 mt-1"},fU={class:"text-3xl font-black text-slate-800 dark:text-slate-100"},hU={class:"space-y-4"},pU={key:0,class:"py-12 text-center text-slate-400 dark:text-slate-500 bg-white dark:bg-slate-900 rounded-2xl border border-slate-100 dark:border-slate-800"},mU={key:1,class:"p-6 text-center text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-950/40 rounded-2xl border border-red-100 dark:border-red-900/50"},_U={key:2,class:"py-16 text-center text-slate-400 dark:text-slate-500 bg-white dark:bg-slate-900 rounded-2xl border border-slate-100 dark:border-slate-800 shadow-sm"},gU={key:3,class:"bg-white dark:bg-slate-900 rounded-2xl border border-slate-150 dark:border-slate-800 shadow-sm overflow-hidden transition-colors"},vU={class:"overflow-x-auto"},bU={class:"w-full text-left text-xs border-collapse"},xU={class:"bg-slate-50 dark:bg-slate-800/80 border-b border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider select-none"},yU={class:"flex items-center gap-1"},wU={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},kU={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},EU={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},TU={class:"flex items-center gap-1"},SU={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},CU={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},AU={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},PU={class:"flex items-center justify-center gap-1"},IU={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},LU={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},OU={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},NU={class:"flex items-center justify-center gap-1"},$U={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},DU={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},MU={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},RU={class:"flex items-center justify-center gap-1"},BU={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},FU={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},UU={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},jU={class:"flex items-center gap-1"},VU={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},HU={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},zU={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"}
1830,WU={class:"divide-y divide-slate-100 dark:divide-slate-800/60"},ZU=["onClick"],qU={class:"p-3 whitespace-nowrap"},KU={class:"font-bold text-slate-800 dark:text-slate-100 group-hover:text-emerald-700 dark:group-hover:text-emerald-400"},GU={class:"text-[10px] text-slate-400 dark:text-slate-500 mt-0.5 font-medium"},YU={class:"p-3"},JU=["title"],XU={class:"text-[10px] text-slate-400 dark:text-slate-500 mt-0.5"},QU={class:"p-3 text-center whitespace-nowrap"},ej={key:0,class:"inline-flex items-center px-1.5 py-0.5 rounded-md text-[10px] font-bold bg-emerald-50 dark:bg-emerald-950/60 text-emerald-700 dark:text-emerald-400 border border-emerald-100 dark:border-emerald-900/50"},tj={key:1,class:"inline-flex items-center px-1.5 py-0.5 rounded-md text-[10px] font-bold bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400"},sj={class:"p-3 text-center whitespace-nowrap font-bold text-sky-700 dark:text-sky-400"},nj={class:"p-3 text-center whitespace-nowrap font-bold text-emerald-700 dark:text-emerald-400"},ij={class:"p-3 whitespace-nowrap text-slate-600 dark:text-slate-300 capitalize"},rj={key:4,class:"bg-white dark:bg-slate-900 rounded-2xl border border-slate-150 dark:border-slate-800 shadow-sm overflow-hidden transition-colors"},oj={class:"overflow-x-auto"},aj={class:"w-full text-left text-xs border-collapse"},lj={class:"bg-slate-50 dark:bg-slate-800/80 border-b border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider select-none"},cj={class:"flex items-center gap-1"},dj={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},uj={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},fj={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},hj={class:"flex items-center gap-1"},pj={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},mj={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},_j={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},gj={class:"flex items-center gap-1"},vj={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},bj={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},xj={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},yj={class:"flex items-center gap-1"},wj={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},kj={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},Ej={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},Tj={class:"flex items-center justify-center gap-1"},Sj={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},Cj={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},Aj={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},Pj={class:"flex items-center justify-center gap-1"},Ij={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},Lj={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},Oj={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},Nj={class:"flex items-center gap-1"},$j={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},Dj={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},Mj={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},Rj={class:"flex items-center gap-1"},Bj={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},Fj={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},Uj={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},jj={class:"divide-y divide-slate-100 dark:divide-slate-800/60"},Vj=["onClick"],Hj={class:"p-3 font-bold text-slate-800 dark:text-slate-100 group-hover:text-sky-700 dark:group-hover:text-sky-400"},zj={class:"p-3"}
1830,Wj={class:"text-slate-600 dark:text-slate-300 italic font-medium"},Zj={class:"p-3"},qj={class:"p-3 text-slate-600 dark:text-slate-300 font-medium"},Kj={class:"p-3 text-center font-bold text-sky-700 dark:text-sky-400"},Gj={class:"p-3 text-center font-bold text-emerald-700 dark:text-emerald-400"},Yj={class:"p-3 text-slate-600 dark:text-slate-300 whitespace-nowrap"},Jj={class:"p-3 text-slate-600 dark:text-slate-300 whitespace-nowrap"},Xj={key:5,class:"bg-white dark:bg-slate-900 rounded-2xl border border-slate-150 dark:border-slate-800 shadow-sm overflow-hidden transition-colors"},Qj={class:"overflow-x-auto"},eV={class:"w-full text-left text-xs border-collapse"},tV={class:"bg-slate-50 dark:bg-slate-800/80 border-b border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider select-none"},sV={class:"flex items-center gap-1"},nV={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},iV={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},rV={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},oV={class:"flex items-center gap-1"},aV={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},lV={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},cV={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},dV={class:"flex items-center justify-center gap-1"},uV={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},fV={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},hV={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},pV={class:"flex items-center justify-center gap-1"},mV={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},_V={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},gV={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},vV={class:"flex items-center justify-center gap-1"},bV={key:0,"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 15l7-7 7 7"},xV={key:1,"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 9l-7 7-7-7"},yV={key:2,"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},wV={class:"divide-y divide-slate-100 dark:divide-slate-800/60"},kV=["onClick"],EV={class:"p-3 whitespace-nowrap"},TV={class:"font-bold text-slate-800 dark:text-slate-100 group-hover:text-purple-700 dark:group-hover:text-purple-400"},SV={class:"text-[10px] text-slate-400 dark:text-slate-500 mt-0.5 font-mono"},CV={class:"p-3"},AV=["title"],PV={class:"p-3 text-center font-bold text-emerald-700 dark:text-emerald-400"},IV={class:"p-3 text-center font-bold text-sky-700 dark:text-sky-400"},LV={class:"p-3 text-center font-bold text-purple-700 dark:text-purple-400"},OV={class:"bg-white dark:bg-slate-900 rounded-3xl shadow-2xl w-full max-w-4xl flex flex-col max-h-[90vh] border border-slate-100 dark:border-slate-800 overflow-hidden"},NV={class:"p-6 border-b border-slate-150 dark:border-slate-800 flex items-start justify-between bg-slate-50/80 dark:bg-slate-800/60"},$V={class:"space-y-1"},DV={class:"flex items-center gap-3 flex-wrap"},MV={class:"text-2xl font-black text-slate-800 dark:text-slate-100"},RV={key:0,class:"px-2.5 py-0.5 rounded-full text-xs font-bold bg-emerald-100 dark:bg-emerald-950/80 text-emerald-800 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-800"},BV={key:1,class:"px-2.5 py-0.5 rounded-full text-xs font-bold bg-slate-200 dark:bg-slate-800 text-slate-700 dark:text-slate-300"},FV={class:"text-xs text-slate-500 dark:text-slate-400 font-medium"},UV={key:0},jV={key:1},VV={key:2},HV={class:"flex items-center gap-2"},zV=["disabled"],WV={class:"flex-1 overflow-y-auto p-6 space-y-6"},ZV={class:"grid grid-cols-2 sm:grid-cols-4 gap-4"},qV={class:"p-4 bg-slate-50 dark:bg-slate-800/50 rounded-2xl border border-slate-100 dark:border-slate-800 space-y-1"},KV={class:"text-sm font-bold text-slate-800 dark:text-slate-100"},GV={key:0,class:"text-xs text-slate-500 dark:text-slate-400 font-medium"},YV={class:"p-4 bg-slate-50 dark:bg-slate-800/50 rounded-2xl border border-slate-100 dar
1830k:border-slate-800 space-y-1"},JV={class:"text-sm font-bold font-mono text-slate-800 dark:text-slate-100"},XV={key:0,class:"text-xs text-slate-500 dark:text-slate-400 font-medium"},QV={class:"p-4 bg-slate-50 dark:bg-slate-800/50 rounded-2xl border border-slate-100 dark:border-slate-800 space-y-1"},eH={class:"text-sm font-bold text-slate-800 dark:text-slate-100 capitalize"},tH={key:0,class:"text-xs text-slate-500 dark:text-slate-400 font-medium"},sH={class:"p-4 bg-slate-50 dark:bg-slate-800/50 rounded-2xl border border-slate-100 dark:border-slate-800 space-y-1"},nH={class:"text-sm font-bold text-slate-800 dark:text-slate-100"},iH=["title"],rH={key:0,class:"space-y-1.5"},oH={class:"text-sm text-slate-700 dark:text-slate-200 bg-emerald-50/40 dark:bg-emerald-950/30 p-4 rounded-2xl border border-emerald-100 dark:border-emerald-900/40 italic"},aH={class:"space-y-3"},lH={class:"flex items-center justify-between"},cH={class:"text-sm font-extrabold text-slate-800 dark:text-slate-100 tracking-tight"},dH={key:0,class:"text-center py-10 text-slate-400 dark:text-slate-500 bg-slate-50 dark:bg-slate-800/40 rounded-2xl border border-slate-100 dark:border-slate-800 italic"},uH={key:1,class:"border border-slate-150 dark:border-slate-800 rounded-2xl overflow-hidden shadow-sm"},fH={class:"w-full text-left text-xs border-collapse"},hH={class:"divide-y divide-slate-100 dark:divide-slate-800/60"},pH={class:"p-3"},mH={class:"font-bold text-slate-800 dark:text-slate-100"},_H={key:0,class:"text-[10px] text-slate-400 dark:text-slate-500 italic mt-0.5"},gH={class:"p-3"},vH={class:"p-3 text-center font-black text-emerald-600 dark:text-emerald-400 text-sm"},bH={class:"p-3 text-slate-600 dark:text-slate-300 capitalize"},xH={class:"p-3 text-slate-500 dark:text-slate-400 font-mono text-[11px]"},yH=["title"],wH={class:"p-4 px-6 border-t border-slate-150 dark:border-slate-800 flex items-center justify-between bg-slate-50/80 dark:bg-slate-800/60"},kH={class:"text-xs text-slate-400 dark:text-slate-500"},EH={class:"font-mono text-slate-600 dark:text-slate-400"},TH={key:0},SH={class:"bg-white dark:bg-slate-900 rounded-3xl shadow-2xl w-full max-w-3xl flex flex-col max-h-[90vh] border border-slate-100 dark:border-slate-800 overflow-hidden"},CH={class:"p-6 border-b border-slate-150 dark:border-slate-800 flex items-center justify-between bg-slate-50/80 dark:bg-slate-800/60"},AH={class:"text-xl font-black text-slate-800 dark:text-slate-100"},PH={class:"flex-1 overflow-y-auto p-6 space-y-6 text-xs"},IH={key:0,class:"p-4 bg-amber-50 dark:bg-amber-950/40 border border-amber-200 dark:border-amber-900/50 rounded-xl text-amber-800 dark:text-amber-200 font-bold flex items-center gap-2"},LH={key:1,class:"p-4 bg-red-50 dark:bg-red-950/40 border border-red-200 dark:border-red-900/50 rounded-xl text-red-600 dark:text-red-300 font-semibold"},OH={class:"space-y-4"},NH={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},$H=["value"],DH={class:"sm:col-span-2"},MH={class:"flex items-center gap-4 mt-1"},RH={class:"flex items-center gap-2 cursor-pointer font-bold text-xs text-slate-700 dark:text-slate-300"},BH={class:"flex items-center gap-2 cursor-pointer font-bold text-xs text-slate-700 dark:text-slate-300"},FH={class:"space-y-3"},UH={class:"grid grid-cols-1 sm:grid-cols-3 gap-3"},jH={class:"relative"},VH=["onUpdate:modelValue","onFocus","onInput"],HH={key:0,class:"absolute left-0 right-0 top-full mt-1 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded-xl shadow-xl z-50 overflow-hidden max-h-56 overflow-y-auto"},zH=["onMousedown"],WH={class:"font-bold text-slate-800 dark:text-slate-100 text-xs"},ZH={class:"text-[10px] text-slate-500 dark:text-slate-400 italic"},qH={class:"relative"},KH=["onUpdate:modelValue","onFocus","onInput"],GH={key:0,class:"absolute left-0 right-0 top-full mt-1 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded-xl shadow-xl z-50 overflow-hidden max-h-56 overflow-y-auto"},YH=["onMousedown"],JH={class:"font-bold text-slate-800 dark:text-slate-100 text-xs italic"},XH={key:0,class:"text-[10px] text-slate-500 dark:text-slate-400"},QH={class:"flex items-center gap-2"},ez={class:"flex-1"},tz=["onUpdate:modelValue"],sz=["onClick"],nz={class:"p-4 bg-emerald-50/50 dark:bg-emerald-950/30 rounded-2xl border border-emerald-100 dark:border-emerald-900/50 space-y-1"},iz={class:"p-4 px-6 border-t border-slate-150 dark:border-slate-800 flex justify-end gap-3 bg-slate-50/80 dark:bg-slate-800/60"},rz=["disabled"],oz={key:0},az={key:1},lz={key:2},cz={class:"bg-white dark:bg-slate-900 rounded-3xl shadow-2xl w-full max-w-2xl flex flex-col max-h-[85vh] border border-slate-100 dar
1830k:border-slate-800 overflow-hidden"},dz={class:"p-6 border-b border-slate-150 dark:border-slate-800 flex items-center justify-between bg-slate-50/80 dark:bg-slate-800/60"},uz={class:"text-xs text-slate-400 dark:text-slate-400 mt-0.5"},fz={class:"flex-1 overflow-y-auto p-6 space-y-4 text-xs"},hz={key:0,class:"py-12 text-center text-slate-400"},pz={key:1,class:"py-12 text-center text-slate-400 italic"},mz={key:2,class:"space-y-3"},_z={class:"space-y-1"},gz={class:"flex items-center gap-2 flex-wrap"},vz={key:0,class:"px-2.5 py-0.5 rounded-md font-black text-[10px] uppercase tracking-wider bg-emerald-600 text-white flex items-center gap-1 shadow-sm"},bz={class:"px-2 py-0.5 rounded-md font-mono font-black text-xs bg-slate-200 dark:bg-slate-700 text-slate-800 dark:text-slate-100"},xz={key:1,class:"px-2 py-0.5 rounded-md font-bold text-[10px] bg-emerald-100 dark:bg-emerald-950 text-emerald-700 dark:text-emerald-300"},yz={key:2,class:"px-2 py-0.5 rounded-md font-bold text-[10px] bg-amber-100 dark:bg-amber-950 text-amber-700 dark:text-amber-300"},wz={key:3,class:"px-2 py-0.5 rounded-md font-bold text-[10px] bg-sky-100 dark:bg-sky-950 text-sky-700 dark:text-sky-300"},kz={class:"text-slate-400 text-[11px]"},Ez={key:0,class:"text-slate-700 dark:text-slate-300 font-semibold"},Tz={class:"text-slate-400 text-[10px]"},Sz={key:1,class:"mt-2 pt-2 border-t border-slate-200/60 dark:border-slate-700/60 space-y-1"},Cz={class:"flex flex-wrap gap-1.5"},Az={class:"flex items-center gap-2 shrink-0"},Pz=["onClick"],Iz={class:"p-4 px-6 border-t border-slate-150 dark:border-slate-800 flex justify-end bg-slate-50/80 dark:bg-slate-800/60"},Lz={class:"bg-white dark:bg-slate-900 rounded-3xl shadow-2xl w-full max-w-3xl flex flex-col max-h-[90vh] border border-amber-200 dark:border-amber-900/50 overflow-hidden"},Oz={class:"p-6 border-b border-amber-100 dark:border-amber-900/40 flex items-center justify-between bg-amber-50/80 dark:bg-amber-950/40"},Nz={class:"flex items-center gap-2"},$z={class:"px-2 py-0.5 rounded-md font-mono font-black text-xs bg-amber-200 dark:bg-amber-900 text-amber-900 dark:text-amber-100"},Dz={class:"text-lg font-black text-amber-900 dark:text-amber-200"},Mz={class:"text-xs text-amber-700 dark:text-amber-400 mt-1"},Rz={class:"flex-1 overflow-y-auto p-6 space-y-4 text-xs"},Bz={class:"grid grid-cols-2 sm:grid-cols-4 gap-3 p-4 bg-slate-50 dark:bg-slate-800/50 rounded-2xl border border-slate-100 dark:border-slate-800"},Fz={class:"font-bold text-slate-800 dark:text-slate-100"},Uz={class:"font-bold font-mono text-slate-800 dark:text-slate-100"},jz={class:"font-bold text-slate-800 dark:text-slate-100 capitalize"},Vz={class:"font-bold text-slate-800 dark:text-slate-100"},Hz={key:0,class:"p-3 bg-slate-50 dark:bg-slate-800/40 rounded-xl border border-slate-100 dark:border-slate-800 italic text-slate-600 dark:text-slate-300"},zz={class:"space-y-2"},Wz={class:"font-extrabold text-slate-800 dark:text-slate-200"},Zz={class:"border border-slate-150 dark:border-slate-800 rounded-2xl overflow-hidden shadow-sm"},qz={class:"w-full text-left text-xs border-collapse"},Kz={class:"divide-y divide-slate-100 dark:divide-slate-800/60"},Gz={class:"p-3"},Yz={class:"font-bold text-slate-800 dark:text-slate-100"},Jz={key:0,class:"text-[10px] text-slate-400 italic"},Xz={class:"p-3 text-center font-black text-emerald-600 dark:text-emerald-400 text-sm"},Qz={class:"p-3 text-slate-600 dark:text-slate-300 capitalize"},eW={class:"p-3 text-slate-500 dark:text-slate-400"},tW={class:"p-4 px-6 border-t border-amber-100 dark:border-amber-900/40 flex items-center justify-between bg-amber-50/80 dark:bg-amber-950/40"},sW={key:0,class:"text-xs font-bold text-emerald-700 dark:text-emerald-300 flex items-center gap-1.5 bg-emerald-100 dark:bg-emerald-950/80 px-3 py-1.5 rounded-xl border border-emerald-200 dark:border-emerald-800"},nW=["disabled"],iW={key:0},rW={key:1},oW={class:"bg-white dark:bg-slate-900 rounded-3xl shadow-xl w-full max-w-3xl flex flex-col max-h-[90vh] border border-slate-100 dark:border-slate-800 overflow-hidden"},aW={class:"p-6 border-b border-slate-150 dark:border-slate-800 flex items-center justify-between bg-slate-50/80 dark:bg-slate-800/60"},lW={class:"text-2xl font-black text-slate-800 dark:text-slate-100"},cW={key:0,class:"text-xs text-slate-500 dark:text-slate-400 italic mt-0.5"},dW={class:"flex items-center gap-3"},uW=["href"],fW={class:"flex-1 overflow-y-auto p-6 space-y-6"},hW={class:"grid grid-cols-2 sm:grid-cols-4 gap-4 p-4 bg-sky-50/50 dark:bg-sky-950/30 rounded-2xl border border-sky-100 dark:border-sky-900/40"},pW={class:"text-base font-black text-sky-700 dark:text-sky-400"},mW={class:"text-base font-black text-emerald-700 dark:text-emerald-400"},_W={class:"text-xs font-bold text-slate-700 dark:text-slate-200"},gW={class:"text-xs font-bold text-slate-700 dark:text-slate-200"},vW={class:"space-y-2"},bW={class:"flex items-center justify-between"},xW={class:"text-xs font-black uppercase text-slate-800 dark:text-slate-200 tracking-wider"}
1830,yW={key:0,class:"h-60 bg-slate-100 dark:bg-slate-800 rounded-2xl flex items-center justify-center text-slate-400 italic"},wW={key:1,class:"h-28 bg-slate-50 dark:bg-slate-800/40 rounded-2xl flex items-center justify-center text-slate-400 italic text-xs border border-slate-100 dark:border-slate-800"},kW={key:2,class:"relative w-full h-64 rounded-2xl overflow-hidden border border-slate-200 dark:border-slate-800 shadow-sm z-0"},EW={class:"p-5 bg-slate-50 dark:bg-slate-800/50 rounded-2xl border border-slate-150 dark:border-slate-800 space-y-3"},TW={class:"flex items-center justify-between"},SW={class:"text-[11px] font-bold text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-950/60 px-2.5 py-0.5 rounded-lg border border-emerald-100 dark:border-emerald-900/50"},CW={class:"h-32 flex items-end justify-between gap-1.5 pt-6 pb-2 px-1"},AW={class:"opacity-0 group-hover:opacity-100 transition-opacity absolute -top-7 bg-slate-800 text-white text-[10px] font-bold py-0.5 px-1.5 rounded-md pointer-events-none z-10 whitespace-nowrap shadow-md"},PW={key:0,class:"text-[9px] font-extrabold text-slate-600 dark:text-slate-300 group-hover:text-emerald-500 transition-colors"},IW={class:"text-[9px] font-bold text-slate-400 uppercase mt-1"},LW={class:"space-y-3"},OW={class:"flex items-center justify-between"},NW={class:"text-xs font-black uppercase text-slate-800 dark:text-slate-200 tracking-wider"},$W={key:0,class:"py-8 text-center text-slate-400 italic"},DW={key:1,class:"py-8 text-center text-slate-400 italic bg-slate-50 dark:bg-slate-800/40 rounded-2xl"},MW={key:2,class:"border border-slate-150 dark:border-slate-800 rounded-2xl overflow-hidden shadow-sm max-h-60 overflow-y-auto"},RW={class:"w-full text-left text-xs border-collapse"},BW={class:"divide-y divide-slate-100 dark:divide-slate-800/60"},FW={class:"p-2.5 font-bold text-slate-800 dark:text-slate-100 whitespace-nowrap"},UW={class:"p-2.5"},jW={class:"font-semibold text-slate-700 dark:text-slate-200"},VW={key:0,class:"text-[10px] text-slate-400"},HW={class:"p-2.5 text-center font-black text-emerald-600 dark:text-emerald-400"},zW={class:"p-2.5 text-slate-500 dark:text-slate-400 truncate max-w-xs"},WW={key:0,class:"capitalize font-medium text-slate-600 dark:text-slate-300 mr-1.5"},ZW={class:"p-4 px-6 border-t border-slate-150 dark:border-slate-800 flex justify-end bg-slate-50/80 dark:bg-slate-800/60"},qW={class:"bg-white dark:bg-slate-900 rounded-3xl shadow-xl w-full max-w-3xl flex flex-col max-h-[90vh] border border-slate-100 dark:border-slate-800 overflow-hidden"},KW={class:"p-6 border-b border-slate-150 dark:border-slate-800 flex items-center justify-between bg-slate-50/80 dark:bg-slate-800/60"},GW={class:"text-2xl font-black text-slate-800 dark:text-slate-100"},YW={class:"text-xs text-slate-400 font-mono mt-0.5"},JW={class:"flex-1 overflow-y-auto p-6 space-y-6"},XW={class:"grid grid-cols-2 sm:grid-cols-4 gap-4 p-4 bg-purple-50/50 dark:bg-purple-950/30 rounded-2xl border border-purple-100 dark:border-purple-900/40"},QW={class:"text-base font-black text-purple-700 dark:text-purple-400"},eZ={class:"text-base font-black text-sky-700 dark:text-sky-400"},tZ={class:"text-base font-black text-emerald-700 dark:text-emerald-400"},sZ={class:"text-xs font-bold text-slate-700 dark:text-slate-200"},nZ={key:0,class:"space-y-2"},iZ={class:"text-xs font-black uppercase text-slate-800 dark:text-slate-200 tracking-wider"},rZ={class:"space-y-3"},oZ={class:"text-xs font-black uppercase text-slate-800 dark:text-slate-200 tracking-wider"},aZ={key:0,class:"py-6 text-center text-slate-400 italic"},lZ={key:1,class:"space-y-2.5"},cZ={class:"space-y-1"},dZ={class:"flex items-center gap-2"},uZ={class:"font-bold text-sm text-slate-800 dark:text-slate-100"},fZ={key:0,class:"text-xs text-slate-400"},hZ={class:"flex items-center gap-3 text-xs text-slate-500 dark:text-slate-400 flex-wrap"},pZ={key:0,class:"font-mono bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded text-[11px] font-bold text-slate-700 dark:text-slate-200"},mZ={key:1},_Z={class:"text-sky-600 dark:text-sky-400"},gZ={class:"text-emerald-600 dark:text-emerald-400"},vZ=["onClick"],bZ={class:"space-y-3"},xZ={class:"text-xs font-black uppercase text-slate-800 dark:text-slate-200 tracking-wider"},yZ={key:0,class:"py-6 text-center text-slate-400 italic"},wZ={key:1,class:"py-4 text-center text-slate-400 italic text-xs"},kZ={key:2,class:"border border-slate-150 dark:border-slate-800 rounded-2xl overflow-hidden shadow-sm max-h-60 overflow-y-auto"},EZ={class:"w-full text-left text-xs border-collapse"}
1830,TZ={class:"divide-y divide-slate-100 dark:divide-slate-800/60"},SZ={class:"p-2.5 font-bold text-slate-800 dark:text-slate-100"},CZ={key:0,class:"text-[10px] text-slate-400 italic"},AZ={class:"p-2.5"},PZ={class:"p-2.5 text-slate-500 dark:text-slate-400"},IZ={class:"p-2.5 text-center text-slate-600 dark:text-slate-300 font-bold"},LZ={class:"p-2.5 text-right font-black text-purple-600 dark:text-purple-400"},OZ={class:"p-4 px-6 border-t border-slate-150 dark:border-slate-800 flex justify-end bg-slate-50/80 dark:bg-slate-800/60"},NZ={__name:"UserDashboard",setup(t){const e=ke(null),s=ke("dashboard"),n=ke("surveys"),r=ke(!1),o=ke("date"),c=ke("desc"),u=ke(null),f=ke(null),p=ke(null),m=ke(!1),_=ke(null),y=ke(null),S=ke(!1),T=ke(null),C=ke(!1),M=ke(null),j=ke([]),D=ke(!1),P=ke(!1),$=ke(null),U=ke(!1),J=ke(!1),se=ke([]),W=ke({idx:null,field:null}),F=Id(),z=async()=>Ts.currentUser?await Ts.currentUser.getIdToken():null,V=Y=>{if(!Y)return{label:"Unlisted / Custom",shortLabel:"Unlisted",badgeClass:"bg-amber-100 text-amber-800 border-amber-200 dark:bg-amber-950/80 dark:text-amber-300 dark:border-amber-800",dotClass:"bg-amber-500",categoryKey:"unlisted_custom"};let x=Y.taxonomy_category;if(!x){const A=Y.taxa_id||Y.id,ue=Y.inat_id??Y.i_naturalist_id??Y.taxa?.inat_id,he=Y.ancestry||Y.taxa?.ancestry;A?ue!=null&&he&&(!Array.isArray(he)||he.length>0)?x="inat_verified":x="local_checklist":x="unlisted_custom"}switch(x){case"inat_verified":return{label:"iNat Verified",shortLabel:"iNat Verified",badgeClass:"bg-emerald-100 text-emerald-800 border-emerald-200 dark:bg-emerald-950/80 dark:text-emerald-300 dark:border-emerald-800",dotClass:"bg-emerald-500",categoryKey:"inat_verified"};case"local_checklist":return{label:"Local Checklist",shortLabel:"Local List",badgeClass:"bg-sky-100 text-sky-800 border-sky-200 dark:bg-sky-950/80 dark:text-sky-300 dark:border-sky-800",dotClass:"bg-sky-500",categoryKey:"local_checklist"};default:return{label:"Unlisted / Custom",shortLabel:"Unlisted",badgeClass:"bg-amber-100 text-amber-800 border-amber-200 dark:bg-amber-950/80 dark:text-amber-300 dark:border-amber-800",dotClass:"bg-amber-500",categoryKey:"unlisted_custom"}}},I=async()=>{if(!se.value.length)try{const Y=await tt.get("/api/taxa-list");se.value=Y.data.data||Y.data||[]}catch(Y){console.error("Error fetching taxa list:",Y)}},Z=Y=>{if(!Y||typeof Y!="string"||Y.trim().length<2||!se.value.length)return[];const x=Y.trim().toLowerCase();return se.value.filter(A=>{const ue=A.common_name&&A.common_name.toLowerCase().includes(x),he=A.scientific_name&&A.scientific_name.toLowerCase().includes(x);return ue||he}).slice(0,8)},ee=(Y,x)=>{Y.taxa_common_name=x.common_name||"",Y.taxa_scientific_name=x.scientific_name||"",W.value={idx:null,field:null}},me=Se(()=>n.value==="species"?"/api/me/lifelist":n.value==="days"?"/api/me/survey-days":"/api/me/submitted-counts"),ne=Se(()=>F.data[me.value]),fe=Y=>{n.value=Y,Y==="surveys"?(o.value="date",c.value="desc"):Y==="species"?(o.value="common_name",c.value="asc"):Y==="days"&&(o.value="date",c.value="desc"),F.fetchData(me.value)},G=Y=>{if(o.value===Y)c.value=c.value==="asc"?"desc":"asc";else{o.value=Y;const x=["date","species","butterflies","survey_count","total_individuals","first_seen","last_seen","count_total","species_count"];c.value=x.includes(Y)?"desc":"asc"}},_e=Y=>!Y||!Y.observations?0:new Set(Y.observations.map(x=>x.taxa_id).filter(x=>x!=null)).size,ve=Y=>!Y||!Y.observations?0:Y.observations.reduce((x,A)=>x+(A.individuals||0),0),$e=Se(()=>{const Y=ne.value?.rows||[];return!Y.length||!o.value?Y:[...Y].sort((x,A)=>{let ue=0,he=0;return n.value==="surveys"?o.value==="date"?(ue=x.date?new Date(x.date).getTime():0,he=A.date?new Date(A.date).getTime():0):o.value==="location"?(ue=(x.place_name||x.district_name||"").toLowerCase(),he=(A.place_name||A.district_name||"").toLowerCase()):o.value==="open_access"?(ue=x.open_access?1:0,he=A.open_access?1:0):o.value==="species"?(ue=_e(x),he=_e(A)):o.value==="butterflies"?(ue=ve(x),he=ve(A)):o.value==="weather"&&(ue=(x.weather||"").toLowerCase(),he=(A.weather||"").toLowerCase()):n.value==="species"?o.value==="common_name"?(ue=(x.c
1830ommon_name||"").toLowerCase(),he=(A.common_name||"").toLowerCase()):o.value==="scientific_name"?(ue=(x.scientific_name||"").toLowerCase(),he=(A.scientific_name||"").toLowerCase()):o.value==="family"?(ue=(x.family||"").toLowerCase(),he=(A.family||"").toLowerCase()):o.value==="survey_count"?(ue=x.survey_count||0,he=A.survey_count||0):o.value==="total_individuals"?(ue=x.total_individuals||0,he=A.total_individuals||0):o.value==="first_seen"?(ue=x.first_seen?new Date(x.first_seen).getTime():0,he=A.first_seen?new Date(A.first_seen).getTime():0):o.value==="last_seen"&&(ue=x.last_seen?new Date(x.last_seen).getTime():0,he=A.last_seen?new Date(A.last_seen).getTime():0):n.value==="days"&&(o.value==="date"?(ue=x.date?new Date(x.date).getTime():0,he=A.date?new Date(A.date).getTime():0):o.value==="places"?(ue=(x.places?.join(", ")||"").toLowerCase(),he=(A.places?.join(", ")||"").toLowerCase()):o.value==="count_total"?(ue=x.count_total||0,he=A.count_total||0):o.value==="species_count"?(ue=x.species_count||0,he=A.species_count||0):o.value==="total_individuals"&&(ue=x.total_individuals||0,he=A.total_individuals||0)),ue<he?c.value==="asc"?-1:1:ue>he?c.value==="asc"?1:-1:0})}),Ue=()=>{const Y=localStorage.getItem("theme");Y==="dark"?(r.value=!0,document.documentElement.classList.add("dark")):Y==="light"?(r.value=!1,document.documentElement.classList.remove("dark")):r.value=document.documentElement.classList.contains("dark")},rt=()=>{r.value=!r.value,r.value?(document.documentElement.classList.add("dark"),localStorage.setItem("theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("theme","light"))};yn(()=>{Ue(),I(),W1(Ts,Y=>{Y?(e.value=Y,F.fetchStats("/api/me/stats"),F.fetchData("/api/me/submitted-counts")):window.location.href="/login"})});const We=async()=>{await Ts.signOut(),window.location.href="/login"},Ee=Y=>{if(!Y)return"â";const ue=String(Y).split("T")[0].split("-");if(ue.length===3){const he=parseInt(ue[0],10),Be=parseInt(ue[1],10)-1,cs=parseInt(ue[2],10),Zs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];if(!isNaN(cs)&&Be>=0&&Be<12&&!isNaN(he))return`${cs} ${Zs[Be]}, ${he}`}return Y},Ce=Y=>{if(!Y)return"â";const x=new Date(Y);if(isNaN(x.getTime()))return Y;const A=x.getDate(),ue=x.toLocaleDateString("en-US",{month:"short"}),he=x.getFullYear(),Be=x.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return`${A} ${ue}, ${he} at ${Be}`},Ge=Y=>{if(!Y)return"";if(typeof Y=="string"){const x=Y.match(/T(\d{2}:\d{2})/);if(x)return x[1];const A=Y.match(/(\d{2}:\d{2})/);if(A)return A[1]}return""},nt=Y=>{if(!Y)return"â";const x=Ge(Y.start_time),A=Ge(Y.end_time);return!x&&!A?"â":x&&A?`${x} - ${A}`:x||A},Tt=Y=>{if(Y==null||Y==="")return"â";const x=Number(Y);return isNaN(x)?Y:x>=1?`${x.toFixed(2)} km`:`${Math.round(x*1e3)} m`},_t=ke(null),Pt=Y=>{_t.value=_.value,_.value=null,H(Y)},St=()=>{u.value=null,_t.value&&(_.value=_t.value,_t.value=null)},R=async Y=>{try{const x=await z(),A=x?{Authorization:`Bearer ${x}`}:{},ue=await tt.get(`/api/counts/${Y}`,{headers:A}),he=ue.data.data||ue.data;u.value&&Number(u.value.id)===Number(Y)&&(u.value=he)}catch(x){console.error("Error fetching count details:",x)}},H=Y=>{if(!Y)return;if(Y.observations&&Array.isArray(Y.observations)&&Y.observations.length){u.value=Y;return}const x=F.data.value?.find(A=>Number(A.id)===Number(Y.id));if(x&&x.observations&&x.observations.length){u.value=x;return}u.value=Y,R(Y.id)},N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b=Se(()=>p.value&&p.value.phenology?p.value.phenology.data:[0,0,0,0,0,0,0,0,0,0,0,0]),O=Se(()=>{const Y=b.value||[];return Math.max(...Y,1)}),K=Se(()=>{const Y=b.value||[];let x=0,A=0;return Y.forEach((ue,he)=>{ue>A&&(A=ue,x=he)}),A>0?`${N[x]} (${A})`:"â"}),X=Se(()=>p.value?.observations||[]),re=Se(()=>p.value?.locations||[]),oe=Se(()=>re.value.length);let ie=null;const Te=()=>{if(!document.getElementById("species-map"))return;ie&&(ie.remove(),ie=null);const x=re.value;if(!x.length)return;const A=x.filter(Be=>Be.latitude!=null&&Be.longitude!=null&&!isNaN(Be.latitude)&&!isNaN(Be.longitude));if(!A.length)return;ie=ln.map("species-map").setView([A[0].latitude,A[0].longitude],8),ln.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}
1830.png",{attribution:"© OpenStreetMap",maxZoom:18}).addTo(ie);const ue=ln.divIcon({className:"custom-map-pin",html:'<div class="w-5 h-5 rounded-full bg-emerald-500 ring-4 ring-emerald-200/60 dark:ring-emerald-900/60 flex items-center justify-center shadow-lg"><div class="w-2 h-2 rounded-full bg-white"></div></div>',iconSize:[20,20],iconAnchor:[10,10]}),he=ln.latLngBounds();A.forEach(Be=>{const cs=[Be.latitude,Be.longitude];he.extend(cs);const Zs=` 1831 <div style="font-family: system-ui, sans-serif; font-size: 11px; padding: 2px;"> 1832 <strong style="font-size: 12px; color: #0f172a;">${Be.place_name}</strong><br/> 1833 <span style="color: #64748b;">${Be.district_name||""} ${Be.state_name||""}</span><br/> 1834 <span style="color: #059669; font-weight: bold;">${Be.individuals} individual(s) • ${Ee(Be.date)}</span> 1835 </div> 1836 `;ln.marker(cs,{icon:ue}).addTo(ie).bindPopup(Zs)}),A.length>1&&ie.fitBounds(he,{padding:[30,30]}),setTimeout(()=>{ie&&ie.invalidateSize()},250)};ks(p,Y=>{Y&&tr(()=>{Te()})}),ks(f,Y=>{!Y&&ie&&(ie.remove(),ie=null)});const ge=async Y=>{f.value=Y,p.value=null,m.value=!0;try{const x=await z(),A=x?{Authorization:`Bearer ${x}`}:{},ue=await tt.get(`/api/me/species/${Y.id}`,{headers:A});p.value=ue.data}catch(x){console.error("Error fetching species details:",x)}finally{m.value=!1}},ye=Se(()=>y.value?.locations||[]),Ae=Se(()=>ye.value.length),je=Se(()=>y.value?.counts||[]),Ye=Se(()=>y.value?.species||[]);let Re=null;const It=()=>{if(!document.getElementById("day-map"))return;Re&&(Re.remove(),Re=null);const x=ye.value;if(!x.length)return;const A=x.filter(Be=>Be.latitude!=null&&Be.longitude!=null&&!isNaN(Be.latitude)&&!isNaN(Be.longitude));if(!A.length)return;Re=ln.map("day-map").setView([A[0].latitude,A[0].longitude],9),ln.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap",maxZoom:18}).addTo(Re);const ue=ln.divIcon({className:"custom-day-pin",html:'<div class="w-5 h-5 rounded-full bg-purple-600 ring-4 ring-purple-200/60 dark:ring-purple-900/60 flex items-center justify-center shadow-lg"><div class="w-2 h-2 rounded-full bg-white"></div></div>',iconSize:[20,20],iconAnchor:[10,10]}),he=ln.latLngBounds();A.forEach(Be=>{const cs=[Be.latitude,Be.longitude];he.extend(cs);const Zs=` 1837 <div style="font-family: system-ui, sans-serif; font-size: 11px; padding: 2px;"> 1838 <strong style="font-size: 12px; color: #0f172a;">${Be.place_name}</strong><br/> 1839 <span style="color: #64748b;">${Be.district_name||""}</span><br/> 1840 <span style="color: #7c3aed; font-weight: bold;">${Be.species_count} species • ${Be.total_individuals} individuals</span> 1841 </div> 1842 `;ln.marker(cs,{icon:ue}).addTo(Re).bindPopup(Zs)}),A.length>1&&Re.fitBounds(he,{padding:[30,30]}),setTimeout(()=>{Re&&Re.invalidateSize()},250)};ks(y,Y=>{Y&&tr(()=>{It()})}),ks(_,Y=>{!Y&&Re&&(Re.remove(),Re=null)});const xt=async Y=>{_.value=Y,y.value=null,S.value=!0;try{const x=await z(),A=x?{Authorization:`Bearer ${x}`}:{},ue=await tt.get(`/api/me/survey-days/${Y.date}`,{headers:A});y.value=ue.data}catch(x){console.error("Error loading day details:",x)}finally{S.value=!1}},ts=Y=>{M.value=null,I();let x="";if(Y.date){const A=new Date(Y.date);isNaN(A.getTime())||(x=A.toISOString().split("T")[0])}T.value={id:Y.id,revisions_count:Y.revisions_count||0,place_name:Y.place_name||"",date:Y.date,rawDate:x,start_time:Ge(Y.start_time),end_time:Ge(Y.end_time),latitude:Y.latitude,longitude:Y.longitude,altitude:Y.altitude,accuracy:Y.accuracy,weather:Y.weather||"",open_access:Y.open_access??!0,distance_covered:Y.distance_covered!=null?Y.distance_covered:"",notes:Y.notes||"",change_summary:"",observations:(Y.observations||[]).map(A=>({id:A.id,taxa_common_name:A.taxa_common_name||"",taxa_scientific_name:A.taxa_scientific_name||"",individuals:A.individuals||1,activity:A.activity||"",notes:A.notes||""}))}},Mt=()=>{T.value&&T.value.observations.push({taxa_common_name:"",taxa_scientific_name:"",individuals:1,activity:"",notes:""})},Ws=Y=>{T.value&&T.value.observations.splice(Y,1)},Ti=async()=>
1842{if(T.value){C.value=!0,M.value=null;try{const Y=await z();if(!Y)throw new Error("Authentication token missing");let x=null;T.value.start_time&&(x=T.value.rawDate?`${T.value.rawDate}T${T.value.start_time}:00`:T.value.start_time);let A=null;T.value.end_time&&(A=T.value.rawDate?`${T.value.rawDate}T${T.value.end_time}:00`:T.value.end_time);const ue={...T.value,start_time:x,end_time:A},he=await tt.put(`/api/counts/${T.value.id}`,ue,{headers:{Authorization:`Bearer ${Y}`}}),Be=he.data.data?he.data.data:he.data;u.value=Be,F.fetchData("/api/me/submitted-counts"),F.fetchStats("/api/me/stats"),T.value=null}catch(Y){console.error("Error updating count:",Y),M.value=Y.response?.data?.message||"Failed to save edits. Please check form fields."}finally{C.value=!1}}},Lt=(Y,x)=>u.value&&u.value.active_revision_id?Y.id===u.value.active_revision_id:x===0,Rt=(Y,x)=>{if(!x||Y.action==="initial_submission")return["Initial survey submission"];const A=[],ue=Y.snapshot?.count||{},he=x.snapshot?.count||{};if((he.place_name||"")!==(ue.place_name||"")&&A.push(`Place: "${he.place_name||"â"}" â "${ue.place_name||"â"}"`),(he.weather||"")!==(ue.weather||"")&&A.push(`Weather: "${he.weather||"â"}" â "${ue.weather||"â"}"`),he.open_access!==ue.open_access){const Ot=he.open_access?"Public":"Private",jt=ue.open_access?"Public":"Private";A.push(`Privacy: ${Ot} â ${jt}`)}he.distance_covered!=ue.distance_covered&&A.push(`Distance: ${Tt(he.distance_covered)} â ${Tt(ue.distance_covered)}`),(he.latitude!=ue.latitude||he.longitude!=ue.longitude)&&A.push("Coordinates updated");const Be=Ge(he.start_time),cs=Ge(ue.start_time),Zs=Ge(he.end_time),Po=Ge(ue.end_time);(Be!==cs||Zs!==Po)&&(Be||cs||Zs||Po)&&A.push(`Time Range: "${Be||"â"}-${Zs||"â"}" â "${cs||"â"}-${Po||"â"}"`),(he.notes||"")!==(ue.notes||"")&&A.push("Field Notes modified");const Od=Y.snapshot?.observations||[],Os=x.snapshot?.observations||[],we=new Map;Os.forEach(Ot=>{const jt=Ot.taxa_common_name||Ot.taxa_scientific_name||`taxa_${Ot.taxa_id}`;we.set(jt,Ot.individuals)});const gr=new Map;return Od.forEach(Ot=>{const jt=Ot.taxa_common_name||Ot.taxa_scientific_name||`taxa_${Ot.taxa_id}`;gr.set(jt,Ot.individuals)}),gr.forEach((Ot,jt)=>{we.has(jt)?we.get(jt)!==Ot&&A.push(`${jt}: ${we.get(jt)} â ${Ot}`):A.push(`Added: ${jt} (${Ot})`)}),we.forEach((Ot,jt)=>{gr.has(jt)||A.push(`Removed: ${jt}`)}),A.length?A:["No structural field changes detected"]},Si=(Y,x)=>{const A=j.value[x+1];return Rt(Y,A)},mr=async Y=>{P.value=!0,D.value=!0,j.value=[];try{const x=await z();if(!x)throw new Error("Authentication token missing");const A=await tt.get(`/api/counts/${Y.id}/revisions`,{headers:{Authorization:`Bearer ${x}`}});j.value=A.data}catch(x){console.error("Error loading revisions:",x)}finally{D.value=!1}},Xa=(Y,x=!1)=>{$.value=Y,U.value=x},Qa=async(Y,x)=>{if(confirm("Are you sure you want to revert this survey to this historical version? Current state will be recorded as a new revision.")){J.value=!0;try{const A=await z();if(!A)throw new Error("Authentication token missing");const ue=await tt.post(`/api/counts/${Y}/revert/${x}`,{},{headers:{Authorization:`Bearer ${A}`}}),he=ue.data.data?ue.data.data:ue.data;u.value=he,F.fetchData("/api/me/submitted-counts"),F.fetchStats("/api/me/stats"),$.value=null,P.value=!1}catch(A){console.error("Error reverting revision:",A),alert("Failed to revert survey: "+(A.response?.data?.message||A.message))}finally{J.value=!1}}},_r=ke(!1),Ld=async Y=>{if(!Y||!Y.id)return;const x=Y.place_name||"Field Transect",A=Ee(Y.date);if(confirm(`Are you sure you want to delete the survey count "${x}" (${A})? 1843 1844This will soft-delete the survey from your dashboard and data summaries.`)){_r.value=!0;try{const ue=await z(),he=ue?{Authorization:`Bearer ${ue}`}:{};await tt.delete(`/api/counts/${Y.id}`,{headers:he}),St(),_t.value&&(_t.value=null,_.value=null),await F.fetchStats("/api/me/stats"),await F.fetchData("/api/me/submitted-counts"),await F.fetchData("/api/me/survey-days"),await F.fetchData("/api/me/lifelist"),alert("Survey count deleted successfully.")}catch(ue){console.error("Error deleting count:",ue),alert(ue.response?.data?.message||"Failed to delete survey count. Please try again.")}finally{_r.value=!1}}};return(Y,x)=>(w(),k("div",NF,[l("header",$F,[l("div",DF,[l("div",MF,[x[60]||(x[60]=Ys('<div class="flex items-center gap-3" data-v-2ea70eff><div class="p-2 bg-emerald-50 dark:bg-emerald-950/60 rounded-xl" data-v-2ea70eff><svg class="w-6 h-6 text-emerald-600 dark:text-emerald-400" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" data-v-2ea70eff><path stroke-linecap="round" stroke-linejoin="round" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364-6.364l-.707.707M6.343 17.657l-.707.707m0-12.728l.707.707m12.728 12.728l-.707.707M12 8a4 4 0 100 8 4 4 0 000-8z" data-v-2ea70eff></path></svg></div><div data-v-2ea70eff><h1 class="text-xl font-black text-slate-800 dark:text-slate-100 tracking-tight" data-v-2ea70eff>ButterflyCounts</h1></div></div>',1)),e.value?(w(),k("nav",RF,[l("button",{onClick:x[0]||(x[0]=A=>
1844s.value="dashboard"),class:ce(["px-3.5 py-1.5 rounded-lg text-xs font-extrabold transition-all cursor-pointer",s.value==="dashboard"?"bg-white dark:bg-slate-900 text-emerald-600 dark:text-emerald-400 shadow-sm":"text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200"])}," Dashboard ",2),l("button",{onClick:x[1]||(x[1]=A=>s.value="insights"),class:ce(["px-3.5 py-1.5 rounded-lg text-xs font-extrabold transition-all cursor-pointer flex items-center gap-1.5",s.value==="insights"?"bg-white dark:bg-slate-900 text-emerald-600 dark:text-emerald-400 shadow-sm":"text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200"])},[...x[59]||(x[59]=[l("span",null,"Field Insights & Export",-1),l("span",{class:"w-2 h-2 rounded-full bg-emerald-500"},null,-1)])],2)])):ae("",!0)]),e.value?(w(),k("div",BF,[l("div",FF,[l("span",UF,v(e.value.displayName||"Field Observer"),1),l("span",jF,v(e.value.email),1)]),l("button",{onClick:rt,class:"p-2.5 rounded-xl text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-100 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors duration-150 cursor-pointer border border-slate-200/60 dark:border-slate-700/60",title:r.value?"Switch to Light Mode":"Switch to Dark Mode","aria-label":"Toggle Theme"},[r.value?(w(),k("svg",HF,[...x[61]||(x[61]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364-6.364l-.707.707M6.343 17.657l-.707.707m0-12.728l.707.707m12.728 12.728l-.707.707M12 8a4 4 0 100 8 4 4 0 000-8z"},null,-1)])])):(w(),k("svg",zF,[...x[62]||(x[62]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"},null,-1)])]))],8,VF),l("button",{onClick:We,class:"bg-red-50 hover:bg-red-100 text-red-600 dark:bg-red-950/40 dark:hover:bg-red-900/60 dark:text-red-400 px-4 py-2 rounded-xl text-sm font-bold shadow-sm transition-all duration-150 border border-red-100 dark:border-red-900/50 cursor-pointer"}," Logout ")])):ae("",!0)])]),e.value?(w(),k("div",WF,[l("button",{onClick:x[2]||(x[2]=A=>
1844s.value="dashboard"),class:ce(["px-4 py-1.5 rounded-xl text-xs font-bold transition-all cursor-pointer",s.value==="dashboard"?"bg-emerald-500 text-white shadow":"bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-300"])}," Dashboard ",2),l("button",{onClick:x[3]||(x[3]=A=>s.value="insights"),class:ce(["px-4 py-1.5 rounded-xl text-xs font-bold transition-all cursor-pointer",s.value==="insights"?"bg-emerald-500 text-white shadow":"bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-300"])}," Field Insights & Export ",2)])):ae("",!0),l("main",ZF,[s.value==="insights"?(w(),nr(OF,{key:0})):(w(),k("div",qF,[Ie(F).stats.isLoading&&!Ie(F).stats.value?(w(),k("div",KF," Loading your field profile... ")):(w(),k("div",GF,[Ie(F).stats.value?(w(),k("section",YF,[l("div",JF,[l("div",{onClick:x[4]||(x[4]=A=>fe("surveys")),class:ce(["p-6 rounded-2xl border shadow-sm flex items-center gap-5 cursor-pointer transition-all duration-200",n.value==="surveys"?"ring-2 ring-emerald-500 border-emerald-500 bg-emerald-50/50 dark:bg-emerald-950/40 shadow-md":"bg-white dark:bg-slate-900 border-slate-100 dark:border-slate-800 hover:border-slate-300 dark:hover:border-slate-700 hover:shadow"])},[x[64]||(x[64]=l("div",{class:"p-4 bg-emerald-50 dark:bg-emerald-950/60 rounded-xl text-emerald-600 dark:text-emerald-400"},[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})])],-1)),l("div",XF,[l("div",QF,[x[63]||(x[63]=l("p",{class:"text-xs font-bold text-slate-400 dark:text-slate-400 uppercase tracking-wider"},"Submitted Butterfly Counts",-1)),n.value==="surveys"?(w(),k("span",eU)):ae("",!0)]),l("p",tU,v(Ie(F).stats.value.total_counts),1)])],2),l("div",{onClick:x[5]||(x[5]=A=>fe("species")),class:ce(["p-6 rounded-2xl border shadow-sm flex items-center gap-5 cursor-pointer transition-all duration-200",n.value==="species"?"ring-2 ring-sky-500 border-sky-500 bg-sky-50/50 dark:bg-sky-950/40 shadow-md":"bg-white dark:bg-slate-900 border-slate-100 dark:border-slate-800 hover:border-slate-300 dark:hover:border-slate-700 hover:shadow"])},[x[66]||(x[66]=l("div",{class:"p-4 bg-blue-50 dark:bg-sky-950/60 rounded-xl text-blue-600 dark:text-sky-400"},[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})])],-1)),l("div",sU,[l("div",nU,[x[65]||(x[65]=l("p",{class:"text-xs font-bold text-slate-400 dark:text-slate-400 uppercase tracking-wider"},"Species Recorded",-1)),n.value==="species"?(w(),k("span",iU)):ae("",!0)]),l("div",rU,[l("span",oU,v(Ie(F).stats.value.total_species),1),l("span",aU,"("+v(Ie(F).stats.value.total_individuals)+" Individuals)",1)])])],2),l("div",{onClick:x[6]||(x[6]=A=>fe("days")),class:ce(["p-6 rounded-2xl border shadow-sm flex items-center gap-5 cursor-pointer transition-all duration-200",n.value==="days"?"ring-2 ring-purple-500 border-purple-500 bg-purple-50/50 dark:bg-purple-950/40 shadow-md":"bg-white dark:bg-slate-900 border-slate-100 dark:border-slate-800 hover:border-slate-300 dark:hover:border-slate-700 hover:shadow"])},[x[68]||(x[68]=l("div",{class:"p-4 bg-purple-50 dark:bg-purple-950/60 rounded-xl text-purple-600 dark:text-purple-400"},[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),l("div",lU,[l("div",cU,[x[67]||(x[67]=l("p",{class:"text-xs font-bold text-slate-400 dark:text-slate-400 uppercase tracking-wider"},"Days Counted",-1)),n.value==="days"?(w(),k("span",dU)):ae("",!0)]),l("div",uU,[l("span",fU,v(Ie(F).stats.value.total_days||0),1)])])],2)])])):ae("",!0),l("section",hU,[ne.value?.isLoading&&!ne.value?.rows?.length?(w(),k("div",pU," Loading data... ")):ne.value?.error?(w(),k("div",mU,v(ne.value.error),1)):$e.value?.length?n.value==="surveys"?(w(),k("div",gU,[l("div",vU,[l("table",bU,[l("thead",null,[l("tr",xU,[l("th",{onClick:x[7]||(x[7]=A=>
1844G("date")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",yU,[x[70]||(x[70]=l("span",null,"Date & Time",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="date"?"text-emerald-600 dark:text-emerald-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="date"&&c.value==="asc"?(w(),k("path",wU)):o.value==="date"&&c.value==="desc"?(w(),k("path",kU)):(w(),k("path",EU))],2))])]),l("th",{onClick:x[8]||(x[8]=A=>G("location")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",TU,[x[71]||(x[71]=l("span",null,"Location",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="location"?"text-emerald-600 dark:text-emerald-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="location"&&c.value==="asc"?(w(),k("path",SU)):o.value==="location"&&c.value==="desc"?(w(),k("path",CU)):(w(),k("path",AU))],2))])]),l("th",{onClick:x[9]||(x[9]=A=>G("open_access")),class:"p-3 text-center cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",PU,[x[72]||(x[72]=l("span",null,"Open Access",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="open_access"?"text-emerald-600 dark:text-emerald-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="open_access"&&c.value==="asc"?(w(),k("path",IU)):o.value==="open_access"&&c.value==="desc"?(w(),k("path",LU)):(w(),k("path",OU))],2))])]),l("th",{onClick:x[10]||(x[10]=A=>G("species")),class:"p-3 text-center cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",NU,[x[73]||(x[73]=l("span",null,"Species",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="species"?"text-emerald-600 dark:text-emerald-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="species"&&c.value==="asc"?(w(),k("path",$U)):o.value==="species"&&c.value==="desc"?(w(),k("path",DU)):(w(),k("path",MU))],2))])]),l("th",{onClick:x[11]||(x[11]=A=>G("butterflies")),class:"p-3 text-center cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",RU,[x[74]||(x[74]=l("span",null,"Individuals",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="butterflies"?"text-emerald-600 dark:text-emerald-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="butterflies"&&c.value==="asc"?(w(),k("path",BU)):o.value==="butterflies"&&c.value==="desc"?(w(),k("path",FU)):(w(),k("path",UU))],2))])]),l("th",{onClick:x[12]||(x[12]=A=>G("weather")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",jU,[x[75]||(x[75]=l("span",null,"Weather",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="weather"?"text-emerald-600 dark:text-emerald-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="weather"&&c.value==="asc"?(w(),k("path",VU)):o.value==="weather"&&c.value==="desc"?(w(),k("path",HU)):(w(),k("path",zU))],2))])])])]),l("tbody",WU,[(w(!0),k(pe,null,Ne($e.value,A=>(w(),k("tr",{key:A.id,onClick:ue=>H(A),class:"hover:bg-emerald-100/80 dark:hover:bg-emerald-900/60 cursor-pointer transition-colors duration-150 group"},[l("td",qU,[l("div",KU,v(Ee(A.date)),1),l("div",GU,v(nt(A)),1)]),l("td",YU,[l("div",{class:"font-bold text-slate-800 dark:text-slate-100 truncate max-w-[220px]",title:A.place_name},v(A.place_name||"Field Transect"),9,JU),l("div",XU,v(A.district_name)+", "+v(A.state_name),1)]),l("td",QU,[A.open_access?(w(),k("span",ej," Public ")):(w(),k("span",tj," Private "))]),l("td",sj,v(_e(A)),1),l("td",nj,v(ve(A)),1),l("td",ij,v(A.weather||"â"),1)],8,ZU))),128))])])])])):n.value==="species"?(w(),k("div",rj,[l("div",oj,[l("table",aj,[l("thead",null,[l("tr",lj,[l("th",{onClick:x[13]||(x[13]=A=>G("common_name")),class:"p-3 cursor-pointer hover:bg-slate-100 dar
1844k:hover:bg-slate-800/90 transition-colors"},[l("div",cj,[x[76]||(x[76]=l("span",null,"Common Name",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="common_name"?"text-sky-600 dark:text-sky-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="common_name"&&c.value==="asc"?(w(),k("path",dj)):o.value==="common_name"&&c.value==="desc"?(w(),k("path",uj)):(w(),k("path",fj))],2))])]),l("th",{onClick:x[14]||(x[14]=A=>G("scientific_name")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",hj,[x[77]||(x[77]=l("span",null,"Scientific Name",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="scientific_name"?"text-sky-600 dark:text-sky-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="scientific_name"&&c.value==="asc"?(w(),k("path",pj)):o.value==="scientific_name"&&c.value==="desc"?(w(),k("path",mj)):(w(),k("path",_j))],2))])]),l("th",{onClick:x[15]||(x[15]=A=>G("taxonomy_category")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",gj,[x[78]||(x[78]=l("span",null,"Taxonomy Status",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="taxonomy_category"?"text-sky-600 dark:text-sky-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="taxonomy_category"&&c.value==="asc"?(w(),k("path",vj)):o.value==="taxonomy_category"&&c.value==="desc"?(w(),k("path",bj)):(w(),k("path",xj))],2))])]),l("th",{onClick:x[16]||(x[16]=A=>G("family")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",yj,[x[79]||(x[79]=l("span",null,"Family",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="family"?"text-sky-600 dark:text-sky-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="family"&&c.value==="asc"?(w(),k("path",wj)):o.value==="family"&&c.value==="desc"?(w(),k("path",kj)):(w(),k("path",Ej))],2))])]),l("th",{onClick:x[17]||(x[17]=A=>G("survey_count")),class:"p-3 text-center cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",Tj,[x[80]||(x[80]=l("span",null,"Times Counted",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="survey_count"?"text-sky-600 dark:text-sky-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="survey_count"&&c.value==="asc"?(w(),k("path",Sj)):o.value==="survey_count"&&c.value==="desc"?(w(),k("path",Cj)):(w(),k("path",Aj))],2))])]),l("th",{onClick:x[18]||(x[18]=A=>G("total_individuals")),class:"p-3 text-center cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",Pj,[x[81]||(x[81]=l("span",null,"Total Individuals",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="total_individuals"?"text-sky-600 dark:text-sky-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="total_individuals"&&c.value==="asc"?(w(),k("path",Ij)):o.value==="total_individuals"&&c.value==="desc"?(w(),k("path",Lj)):(w(),k("path",Oj))],2))])]),l("th",{onClick:x[19]||(x[19]=A=>G("first_seen")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",Nj,[x[82]||(x[82]=l("span",null,"First Seen",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="first_seen"?"text-sky-600 dark:text-sky-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="first_seen"&&c.value==="asc"?(w(),k("path",$j)):o.value==="first_seen"&&c.value==="desc"?(w(),k("path",Dj)):(w(),k("path",Mj))],2))])]),l("th",{onClick:x[20]||(x[20]=A=>G("last_seen")),class:"p-3 cursor-pointer hover:bg-slate-100 dar
1844k:hover:bg-slate-800/90 transition-colors"},[l("div",Rj,[x[83]||(x[83]=l("span",null,"Last Seen",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="last_seen"?"text-sky-600 dark:text-sky-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="last_seen"&&c.value==="asc"?(w(),k("path",Bj)):o.value==="last_seen"&&c.value==="desc"?(w(),k("path",Fj)):(w(),k("path",Uj))],2))])])])]),l("tbody",jj,[(w(!0),k(pe,null,Ne($e.value,A=>(w(),k("tr",{key:A.id,onClick:ue=>ge(A),class:"hover:bg-sky-100/80 dark:hover:bg-sky-900/60 cursor-pointer transition-colors duration-150 group"},[l("td",Hj,v(A.common_name||"â"),1),l("td",zj,[l("div",Wj,v(A.scientific_name||"â"),1)]),l("td",Zj,[l("span",{class:ce(["px-2.5 py-1 rounded-lg text-xs font-bold border inline-flex items-center gap-1.5",V(A).badgeClass])},[l("span",{class:ce(["w-1.5 h-1.5 rounded-full",V(A).dotClass])},null,2),l("span",null,v(V(A).label),1)],2)]),l("td",qj,v(A.family||"â"),1),l("td",Kj,v(A.survey_count||0),1),l("td",Gj,v(A.total_individuals||0),1),l("td",Yj,v(Ee(A.first_seen)),1),l("td",Jj,v(Ee(A.last_seen)),1)],8,Vj))),128))])])])])):n.value==="days"?(w(),k("div",Xj,[l("div",Qj,[l("table",eV,[l("thead",null,[l("tr",tV,[l("th",{onClick:x[21]||(x[21]=A=>G("date")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",sV,[x[84]||(x[84]=l("span",null,"Count Date",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="date"?"text-purple-600 dark:text-purple-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="date"&&c.value==="asc"?(w(),k("path",nV)):o.value==="date"&&c.value==="desc"?(w(),k("path",iV)):(w(),k("path",rV))],2))])]),l("th",{onClick:x[22]||(x[22]=A=>G("places")),class:"p-3 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",oV,[x[85]||(x[85]=l("span",null,"Locations Visited",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="places"?"text-purple-600 dark:text-purple-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="places"&&c.value==="asc"?(w(),k("path",aV)):o.value==="places"&&c.value==="desc"?(w(),k("path",lV)):(w(),k("path",cV))],2))])]),l("th",{onClick:x[23]||(x[23]=A=>G("count_total")),class:"p-3 text-center cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",dV,[x[86]||(x[86]=l("span",null,"Counts Conducted",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="count_total"?"text-purple-600 dark:text-purple-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="count_total"&&c.value==="asc"?(w(),k("path",uV)):o.value==="count_total"&&c.value==="desc"?(w(),k("path",fV)):(w(),k("path",hV))],2))])]),l("th",{onClick:x[24]||(x[24]=A=>G("species_count")),class:"p-3 text-center cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",pV,[x[87]||(x[87]=l("span",null,"Species",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="species_count"?"text-purple-600 dark:text-purple-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="species_count"&&c.value==="asc"?(w(),k("path",mV)):o.value==="species_count"&&c.value==="desc"?(w(),k("path",_V)):(w(),k("path",gV))],2))])]),l("th",{onClick:x[25]||(x[25]=A=>G("total_individuals")),class:"p-3 text-center cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800/90 transition-colors"},[l("div",vV,[x[88]||(x[88]=l("span",null,"Individuals",-1)),(w(),k("svg",{class:ce(["w-3.5 h-3.5 transition-colors",o.value==="total_individuals"?"text-purple-600 dark:text-purple-400":"text-slate-300 dark:text-slate-600"]),fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[o.value==="total_individuals"&&c.value==="asc"?(w(),k("path",bV)):o.value==="total_individuals"&&c.value==="desc"?(w(),k("path",xV)):(w(),k("path",yV))],2))])])])]),l("tbody",wV,[(w(!0),k(
1844pe,null,Ne($e.value,A=>(w(),k("tr",{key:A.date,onClick:ue=>xt(A),class:"hover:bg-purple-100/80 dark:hover:bg-purple-900/60 cursor-pointer transition-colors duration-150 group"},[l("td",EV,[l("div",TV,v(Ee(A.date)),1),l("div",SV,v(A.date),1)]),l("td",CV,[l("div",{class:"font-semibold text-slate-700 dark:text-slate-300 truncate max-w-[280px]",title:A.places.join(", ")},v(A.places.length?A.places.join(", "):"Field Transect"),9,AV)]),l("td",PV,v(A.count_total),1),l("td",IV,v(A.species_count),1),l("td",LV,v(A.total_individuals),1)],8,kV))),128))])])])])):ae("",!0):(w(),k("div",_U,[...x[69]||(x[69]=[l("p",{class:"font-semibold text-slate-600 dark:text-slate-300 mb-1"},"No records found",-1),l("p",{class:"text-xs"},"Once you submit data from your mobile app, it will appear here.",-1)])]))])]))]))]),u.value?(w(),k("div",{key:1,class:"fixed inset-0 bg-slate-900/60 dark:bg-black/75 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:x[31]||(x[31]=hs(A=>St(),["self"]))},[l("div",OV,[l("header",NV,[l("div",$V,[l("div",DV,[l("h3",MV,v(u.value.place_name||"Field Transect"),1),u.value.open_access?(w(),k("span",RV," Public Access ")):(w(),k("span",BV," Private Access "))]),l("p",FV,[u.value.district_name?(w(),k("span",UV,v(u.value.district_name)+", ",1)):ae("",!0),u.value.state_name?(w(),k("span",jV,v(u.value.state_name),1)):ae("",!0),u.value.country_name?(w(),k("span",VV,", "+v(u.value.country_name),1)):ae("",!0)])]),l("div",HV,[l("button",{onClick:x[26]||(x[26]=A=>ts(u.value)),class:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-bold bg-emerald-50 hover:bg-emerald-100 text-emerald-700 dark:bg-emerald-950/60 dark:hover:bg-emerald-900/80 dark:text-emerald-300 border border-emerald-200/80 dark:border-emerald-800/80 transition-colors cursor-pointer"},[...x[89]||(x[89]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})],-1),l("span",null,"Edit Count",-1)])]),l("button",{onClick:x[27]||(x[27]=A=>mr(u.value)),class:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-bold bg-sky-50 hover:bg-sky-100 text-sky-700 dark:bg-sky-950/60 dark:hover:bg-sky-900/80 dark:text-sky-300 border border-sky-200/80 dark:border-sky-800/80 transition-colors cursor-pointer"},[...x[90]||(x[90]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),l("span",null,"Audit Trail",-1)])]),l("button",{onClick:x[28]||(x[28]=A=>Ld(u.value)),disabled:_r.value,class:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-bold bg-rose-50 hover:bg-rose-100 text-rose-700 dark:bg-rose-950/60 dark:hover:bg-rose-900/80 dark:text-rose-300 border border-rose-200/80 dark:border-rose-800/80 transition-colors cursor-pointer disabled:opacity-50"},[...x[91]||(x[91]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1),l("span",null,"Delete Count",-1)])],8,zV),l("button",{onClick:x[29]||(x[29]=A=>St()),class:"p-2 text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 rounded-xl hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors duration-150 cursor-pointer"},[...x[92]||(x[92]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])])]),l("div",WV,[l("div",ZV,[l("div",qV,[x[93]||(x[93]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Date & Time",-1)),l("div",KV,v(Ee(u.value.date)),1),u.value.start_time?(w(),k("div",GV,v(nt(u.value)),1)):ae("",!0)]),l("div",YV,[x[94]||(x[94]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Coordinates",-1)),l("div",JV,v(u.value.latitude?u.value.latitude.toFixed(4):"â")+", "+v(u.value.longitude?u.value.longitude.toFixed(4):"â"),1),u.value.accuracy!=null?(w(),k("div",XV," Accuracy: ±"+v(Math.round(u.value.accuracy))+"m ",1)):ae("",!0)]),l("div",QV,[x[95]||(x[95]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Weather & Distance",-1)),l("div",eH,v(u.value.weather||"â"),1),u.value.distance_covered!=null?(w(),k("div",tH," Distance: "+v(Tt(u.value.distance_covered)),1)):ae("",!0)]),l("div",sH,[x[96]||(x[96]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 tracking-wider block"},"Altitude & Team",-1)),l("div",nH,[u.value.altitude!=null?(w(),k(pe,{key:0},[Me(v(Math.round(u.value.altitude))+" m",1)],64)):(w(),k(pe,{key:1},[Me("â")],64))]),u.value.team?(w(),k("div",{key:0,class:"text-xs text-slate-500 dark:text-slate-400 font-medium truncate",title:u.value.team}," Team: "+v(u.value.team),9,iH)):ae("",!0)])]),u.value.notes?(w(),k("div",rH,[x[97]||(x[97]=l("h4",{class:"text-xs font-extrabold text-slate-400 uppercase tracking-wider"},"Field Notes",-1)),l("div",oH,' "'+v(u.value.notes)+'" ',1)])):ae("",!0),l("div",aH,[l("div",lH,[l("h4",cH," Species Observations ("+v(_e(u.value))+" species ⢠"+v(ve(u.value))+" total individuals) ",1)]),!u.value.observations||!u.value.observations.length?(w(),k("div",dH," No species observations recorded for this count. ")):(w(),k("div",uH,[l("table",fH,[x[98]||(x[98]=l("thead",null,[l("tr",{class:"bg-slate-50 dark:bg-slate-800/80 border-b border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 font-bold uppercase tracking-wider"},[l("th",{class:"p-3"},"Species"),l("th",{class:"p-3"},"Status"),l("th",{class:"p-3 text-center"},"Count"),l("th",{class:"p-3"},"Activity"),l("th",{class:"p-3"},"Observation Time"),l("th",{class:"p-3"}
1844,"Notes")])],-1)),l("tbody",hH,[(w(!0),k(pe,null,Ne(u.value.observations,A=>(w(),k("tr",{key:A.id,class:"hover:bg-slate-50/60 dark:hover:bg-slate-800/50 transition-colors"},[l("td",pH,[l("div",mH,v(A.taxa_common_name||A.taxa_scientific_name||"â"),1),A.taxa_common_name?(w(),k("div",_H,v(A.taxa_scientific_name),1)):ae("",!0)]),l("td",gH,[l("span",{class:ce(["px-2.5 py-1 rounded-lg text-xs font-bold border inline-flex items-center gap-1.5",V(A).badgeClass])},[l("span",{class:ce(["w-1.5 h-1.5 rounded-full",V(A).dotClass])},null,2),l("span",null,v(V(A).shortLabel),1)],2)]),l("td",vH,v(A.individuals),1),l("td",bH,v(A.activity||"â"),1),l("td",xH,v(A.timestamp?Ge(A.timestamp):"â"),1),l("td",{class:"p-3 text-slate-500 dark:text-slate-400 truncate max-w-xs",title:A.notes},v(A.notes||"â"),9,yH)]))),128))])])]))])]),l("footer",wH,[l("div",kH,[x[99]||(x[99]=Me(" Count ID: ",-1)),l("span",EH,"#"+v(u.value.id),1),u.value.version?(w(),k("span",TH," ⢠App v"+v(u.value.version),1)):ae("",!0)]),l("button",{onClick:x[30]||(x[30]=A=>St()),class:"bg-slate-200 dark:bg-slate-800 hover:bg-slate-300 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 px-6 py-2.5 rounded-xl text-sm font-bold transition-all duration-150 cursor-pointer"}," Close ")])])])):ae("",!0),T.value?(w(),k("div",{key:2,class:"fixed inset-0 bg-slate-900/60 dark:bg-black/75 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:x[45]||(x[45]=hs(A=>T.value=null,["self"]))},[l("div",SH,[l("header",CH,[l("div",null,[l("h3",AH,"Edit Count (#"+v(T.value.id)+")",1),x[100]||(x[100]=l("p",{class:"text-xs text-slate-400 dark:text-slate-400 mt-0.5"},"Updating count data will record a new snapshot in the audit trail.",-1))]),l("button",{onClick:x[32]||(x[32]=A=>T.value=null),class:"p-2 text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 rounded-xl hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors duration-150 cursor-pointer"},[...x[101]||(x[101]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),l("div",PH,[T.value.revisions_count>=10?(w(),k("div",IH,[...x[102]||(x[102]=[l("svg",{class:"w-5 h-5 text-amber-600 shrink-0",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})],-1),l("span",null,"This count has reached the maximum allowed limit of 10 edits. Please contact support if further modifications are required.",-1)])])):ae("",!0),M.value?(w(),k("div",LH,v(M.value),1)):ae("",!0),l("div",OH,[x[115]||(x[115]=l("h4",{class:"font-extrabold text-slate-800 dark:text-slate-200 text-sm border-b border-slate-100 dark:border-slate-800 pb-2"},"Count Parameters",-1)),l("div",NH,[l("div",null,[x[103]||(x[103]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},"Place / Transect Name",-1)),Ke(l("input",{"onUpdate:modelValue":x[33]||(x[33]=A=>T.value.place_name=A),type:"text",placeholder:"e.g. Campus Transect",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-800 dark:text-slate-100 font-semibold focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.place_name]])]),l("div",null,[x[104]||(x[104]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},[Me("Date "),l("span",{class:"text-slate-400 font-normal"},"(Un-editable)")],-1)),l("input",{value:Ee(T.value.date),type:"text",disabled:"",readonly:"",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-800 bg-slate-100 dark:bg-slate-800/50 text-slate-500 dark:text-slate-400 font-semibold cursor-not-allowed outline-none select-none"},null,8,$H)]),l("div",null,[x[105]||(x[105]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},"Start Time",-1)),Ke(l("input",{"onUpdate:modelValue":x[34]||(x[34]=A=>T.value.start_time=A),type:"time",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-800 dark:text-slate-100 font-semibold focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.start_time]])]),l("div",null,[x[106]||(x[106]=l("label",{class:"block font-bold text-slate-600 dar
1844k:text-slate-400 mb-1"},"End Time",-1)),Ke(l("input",{"onUpdate:modelValue":x[35]||(x[35]=A=>T.value.end_time=A),type:"time",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-800 dark:text-slate-100 font-semibold focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.end_time]])]),l("div",null,[x[107]||(x[107]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},"Weather",-1)),Ke(l("input",{"onUpdate:modelValue":x[36]||(x[36]=A=>T.value.weather=A),type:"text",placeholder:"e.g. Sunny, Cloudy",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-800 dark:text-slate-100 font-semibold focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.weather]])]),l("div",null,[x[108]||(x[108]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},"Distance Covered (km or m)",-1)),Ke(l("input",{"onUpdate:modelValue":x[37]||(x[37]=A=>T.value.distance_covered=A),type:"number",step:"0.01",placeholder:"e.g. 1.2",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-800 dark:text-slate-100 font-semibold focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.distance_covered]])]),l("div",null,[x[109]||(x[109]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},"Latitude",-1)),Ke(l("input",{"onUpdate:modelValue":x[38]||(x[38]=A=>T.value.latitude=A),type:"number",step:"0.00001",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-800 dark:text-slate-100 font-mono font-semibold focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.latitude]])]),l("div",null,[x[110]||(x[110]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},"Longitude",-1)),Ke(l("input",{"onUpdate:modelValue":x[39]||(x[39]=A=>T.value.longitude=A),type:"number",step:"0.00001",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-800 dark:text-slate-100 font-mono font-semibold focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.longitude]])]),l("div",DH,[x[113]||(x[113]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},"Privacy / Open Access Level",-1)),l("div",MH,[l("label",RH,[Ke(l("input",{type:"radio",value:!0,"onUpdate:modelValue":x[40]||(x[40]=A=>T.value.open_access=A),class:"w-4 h-4 text-emerald-600 focus:ring-emerald-500"},null,512),[[ya,T.value.open_access]]),x[111]||(x[111]=l("span",{class:"px-3 py-1.5 rounded-xl bg-emerald-50 dark:bg-emerald-950/80 text-emerald-700 dark:text-emerald-300 border border-emerald-200/80 dark:border-emerald-800/80"},"Public Access (Visible on map & public stats)",-1))]),l("label",BH,[Ke(l("input",{type:"radio",value:!1,"onUpdate:modelValue":x[41]||(x[41]=A=>T.value.open_access=A),class:"w-4 h-4 text-slate-600 focus:ring-slate-500"},null,512),[[ya,T.value.open_access]]),x[112]||(x[112]=l("span",{class:"px-3 py-1.5 rounded-xl bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 border border-slate-200 dark:border-slate-700"},"Private Access (Only visible to you)",-1))])])])]),l("div",null,[x[114]||(x[114]=l("label",{class:"block font-bold text-slate-600 dark:text-slate-400 mb-1"},"Field Notes",-1)),Ke(l("textarea",{"onUpdate:modelValue":x[42]||(x[42]=A=>T.value.notes=A),rows:"2",placeholder:"Field observation notes...",class:"w-full p-2.5 rounded-xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-800 dark:text-slate-100 font-medium focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.notes]])])]),l("div",FH,[l("div",{class:"flex items-center justify-between border-b border-slate-100 dark:border-slate-800 pb-2"},[x[116]||(x[116]=l("h4",{class:"font-extrabold text-slate-800 dark:text-slate-200 text-sm"},"Species Observations",-1)),l("button",{onClick:Mt,type:"button",class:"px-3 py-1 rounded-lg bg-emerald-100 dark:bg-emerald-950 text-emerald-700 dark:text-emerald-300 font-bold hover:bg-emerald-200 dark:hover:bg-emerald-900 transition-colors"}
1844," + Add Species ")]),(w(!0),k(pe,null,Ne(T.value.observations,(A,ue)=>(w(),k("div",{key:ue,class:"p-3 bg-slate-50 dark:bg-slate-800/60 rounded-xl border border-slate-200 dark:border-slate-700/60 space-y-2"},[l("div",UH,[l("div",jH,[x[117]||(x[117]=l("label",{class:"block font-semibold text-slate-500 text-[10px]"},"Common Name",-1)),Ke(l("input",{"onUpdate:modelValue":he=>A.taxa_common_name=he,onFocus:he=>W.value={idx:ue,field:"common"},onInput:he=>W.value={idx:ue,field:"common"},type:"text",placeholder:"Type common name...",autocomplete:"off",class:"w-full p-2 rounded-lg border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-100 font-bold outline-none focus:ring-2 focus:ring-emerald-500"},null,40,VH),[[Nt,A.taxa_common_name]]),W.value.idx===ue&&W.value.field==="common"&&Z(A.taxa_common_name).length?(w(),k("div",HH,[(w(!0),k(pe,null,Ne(Z(A.taxa_common_name),he=>(w(),k("div",{key:he.id,onMousedown:hs(Be=>ee(A,he),["prevent"]),class:"p-2.5 hover:bg-emerald-50 dark:hover:bg-emerald-950/60 cursor-pointer transition-colors border-b border-slate-100 dark:border-slate-800/50 last:border-0"},[l("div",WH,v(he.common_name||"No common name"),1),l("div",ZH,v(he.scientific_name),1)],40,zH))),128))])):ae("",!0)]),l("div",qH,[x[118]||(x[118]=l("label",{class:"block font-semibold text-slate-500 text-[10px]"},"Scientific Name",-1)),Ke(l("input",{"onUpdate:modelValue":he=>A.taxa_scientific_name=he,onFocus:he=>W.value={idx:ue,field:"scientific"},onInput:he=>W.value={idx:ue,field:"scientific"},type:"text",placeholder:"Type scientific name...",autocomplete:"off",class:"w-full p-2 rounded-lg border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-100 italic outline-none focus:ring-2 focus:ring-emerald-500"},null,40,KH),[[Nt,A.taxa_scientific_name]]),W.value.idx===ue&&W.value.field==="scientific"&&Z(A.taxa_scientific_name).length?(w(),k("div",GH,[(w(!0),k(pe,null,Ne(Z(A.taxa_scientific_name),he=>(w(),k("div",{key:he.id,onMousedown:hs(Be=>ee(A,he),["prevent"]),class:"p-2.5 hover:bg-emerald-50 dark:hover:bg-emerald-950/60 cursor-pointer transition-colors border-b border-slate-100 dark:border-slate-800/50 last:border-0"},[l("div",JH,v(he.scientific_name),1),he.common_name?(w(),k("div",XH,v(he.common_name),1)):ae("",!0)],40,YH))),128))])):ae("",!0)]),l("div",QH,[l("div",ez,[x[119]||(x[119]=l("label",{class:"block font-semibold text-slate-500 text-[10px]"},"Count",-1)),Ke(l("input",{"onUpdate:modelValue":he=>A.individuals=he,type:"number",min:"1",class:"w-full p-2 rounded-lg border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-100 font-black text-center"},null,8,tz),[[Nt,A.individuals,void 0,{number:!0}]])]),l("button",{onClick:he=>Ws(ue),type:"button",class:"mt-4 p-2 text-red-500 hover:bg-red-50 dark:hover:bg-red-950/40 rounded-lg"},[...x[120]||(x[120]=[l("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)])],8,sz)])])]))),128))]),l("div",nz,[x[121]||(x[121]=l("label",{class:"block font-extrabold text-emerald-900 dark:text-emerald-200"},"Reason for Edit / Audit Summary",-1)),Ke(l("input",{"onUpdate:modelValue":x[43]||(x[43]=A=>T.value.change_summary=A),type:"text",placeholder:"e.g. Corrected butterfly count for Blue Tiger",class:"w-full p-2.5 rounded-xl border border-emerald-200 dark:border-emerald-800 bg-white dark:bg-slate-900 text-slate-800 dark:text-slate-100 font-semibold focus:ring-2 focus:ring-emerald-500 outline-none"},null,512),[[Nt,T.value.change_summary]])])]),l("footer",iz,[l("button",{onClick:x[44]||(x[44]=A=>T.value=null),type:"button",class:"px-5 py-2.5 rounded-xl text-xs font-bold text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-800 transition-colors"}," Cancel "),l("button",{onClick:Ti,disabled:C.value||T.value.revisions_count>=10,type:"button",class:ce(["px-6 py-2.5 rounded-xl text-xs font-bold text-white shadow transition-colors flex items-center gap-2",T.value.revisions_count>=10?"bg-slate-400 dark:bg-slate-700 cursor-not-allowed opacity-75":"bg-emerald-600 hover:bg-emerald-700 cursor-pointer"])},[C.value?(w(),k("span",oz,"Saving Audit Snapshot...")):T.value.revisions_count>=10?(w(),k("span",az,"Edit Limit Reached (10/10)")):(w(),k("span",lz,"Save Changes & Record Snapshot"))],10,rz)])])])):ae("",!0),P.value?(w(),k("div",{key:3,class:"fixed inset-0 bg-slate-900/60 dark:bg-black/75 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:x[48]||(x[48]=hs(A=>P.value=!1,["self"]))},[l("div",cz,[l("header",dz,[l("div",null,[x[122]||(x[122]=l("h3",{class:"text-xl font-black text-slate-800 dark:text-slate-100"},"Audit Trail & Revision History",-1)),l("p",uz,"Count #"+v(u.value?.id)+" ⢠Immutable historical JSON snapshots",1)]),l("button",{onClick:x[46]||(x[46]=A=>P.value=!1),class:"p-2 text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 rounded-xl hover:bg-slate-100 dar
1844k:hover:bg-slate-800 transition-colors duration-150 cursor-pointer"},[...x[123]||(x[123]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),l("div",fz,[D.value?(w(),k("div",hz," Loading revision timeline... ")):j.value.length?(w(),k("div",mz,[(w(!0),k(pe,null,Ne(j.value,(A,ue)=>(w(),k("div",{key:A.id,class:ce(["p-4 rounded-2xl border transition-all flex items-start justify-between gap-4",Lt(A,ue)?"border-2 border-emerald-500 bg-emerald-50/40 dark:bg-emerald-950/40 shadow-sm":"bg-slate-50 dark:bg-slate-800/50 border-slate-150 dark:border-slate-800"])},[l("div",_z,[l("div",gz,[Lt(A,ue)?(w(),k("span",vz,[...x[124]||(x[124]=[l("span",{class:"w-1.5 h-1.5 rounded-full bg-white animate-pulse"},null,-1),Me(" Currently Active ",-1)])])):ae("",!0),l("span",bz," v"+v(A.revision_number),1),A.action==="initial_submission"?(w(),k("span",xz," Initial Submission ")):A.action==="revert"?(w(),k("span",yz," Reverted ")):(w(),k("span",wz," Updated ")),l("span",kz,"⢠"+v(Ce(A.created_at)),1)]),A.change_summary?(w(),k("div",Ez,' "'+v(A.change_summary)+'" ',1)):ae("",!0),l("div",Tz," Editor: "+v(A.user?.name||A.user?.email||"User #"+A.user_id),1),Si(A,ue).length?(w(),k("div",Sz,[x[126]||(x[126]=l("span",{class:"text-[10px] font-extrabold uppercase text-slate-400 dark:text-slate-500 tracking-wider block"},"Field Changes:",-1)),l("div",Cz,[(w(!0),k(pe,null,Ne(Si(A,ue),(he,Be)=>(w(),k("span",{key:Be,class:"px-2 py-0.5 rounded-lg text-[10px] font-semibold bg-white dark:bg-slate-900 text-slate-700 dark:text-slate-200 border border-slate-200 dark:border-slate-700/80 flex items-center gap-1 shadow-2xs"},[x[125]||(x[125]=l("span",{class:"w-1.5 h-1.5 rounded-full bg-emerald-500 shrink-0"},null,-1)),l("span",null,v(he),1)]))),128))])])):ae("",!0)]),l("div",Az,[l("button",{onClick:he=>Xa(A,Lt(A,ue)),type:"button",class:"px-3 py-1.5 rounded-xl bg-sky-50 hover:bg-sky-100 text-sky-700 dark:bg-sky-950 dark:hover:bg-sky-900 dark:text-sky-300 font-bold transition-colors"}," Preview Snapshot ",8,Pz)])],2))),128))])):(w(),k("div",pz," No revisions recorded for this count yet. "))]),l("footer",Iz,[l("button",{onClick:x[47]||(x[47]=A=>P.value=!1),class:"bg-slate-200 dark:bg-slate-800 hover:bg-slate-300 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 px-6 py-2.5 rounded-xl text-xs font-bold transition-all duration-150 cursor-pointer"}," Close ")])])])):ae("",!0),$.value?(w(),k("div",{key:4,class:"fixed inset-0 bg-slate-900/60 dark:bg-black/75 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:x[52]||(x[52]=hs(A=>$.value=null,["self"]))},[l("div",Lz,[l("header",Oz,[l("div",null,[l("div",Nz,[l("span",$z," Revision #"+v($.value.revision_number)+" Snapshot ",1),l("h3",Dz,v($.value.snapshot?.count?.place_name||"Field Transect"),1)]),l("p",Mz," Historical form state recorded on "+v(Ce($.value.created_at))+" by "+v($.value.user?.name||$.value.user?.email||"User"),1)]),l("button",{onClick:x[49]||(x[49]=A=>$.value=null),class:"p-2 text-amber-700 dark:text-amber-300 rounded-xl hover:bg-amber-100 dark:hover:bg-amber-900 transition-colors cursor-pointer"},[...x[127]||(x[127]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),l("div",Rz,[l("div",Bz,[l("div",null,[x[128]||(x[128]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Date",-1)),l("span",Fz,v(Ee($.value.snapshot?.count?.date)),1)]),l("div",null,[x[129]||(x[129]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Coordinates",-1)),l("span",Uz,v($.value.snapshot?.count?.latitude)+", "+v($.value.snapshot?.count?.longitude),1)]),l("div",null,[x[130]||(x[130]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Weather",-1)),l("span",jz,v($.value.snapshot?.count?.weather||"â"),1)]),l("div",null,[x[131]||(x[131]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Distance",-1)),l("span",Vz,v(Tt($.value.snapshot?.count?.distance_covered)),1)])]),$.value.snapshot?.count?.notes?(w(),k("div",Hz,' "'+v($.value.snapshot.count.notes)+'" ',1)):ae("",!0),l("div",zz,[l("h4",Wz," Recorded Observations ("+v($.value.snapshot?.observations?.length||0)+" entr
1844ies) ",1),l("div",Zz,[l("table",qz,[x[132]||(x[132]=l("thead",null,[l("tr",{class:"bg-slate-50 dark:bg-slate-800/80 border-b border-slate-200 dark:border-slate-800 text-slate-500 font-bold uppercase"},[l("th",{class:"p-3"},"Species"),l("th",{class:"p-3 text-center"},"Count"),l("th",{class:"p-3"},"Activity"),l("th",{class:"p-3"},"Notes")])],-1)),l("tbody",Kz,[(w(!0),k(pe,null,Ne($.value.snapshot?.observations||[],(A,ue)=>(w(),k("tr",{key:ue,class:"hover:bg-slate-50/60 dark:hover:bg-slate-800/50"},[l("td",Gz,[l("div",Yz,v(A.taxa_common_name||A.taxa_scientific_name||"â"),1),A.taxa_common_name?(w(),k("div",Jz,v(A.taxa_scientific_name),1)):ae("",!0)]),l("td",Xz,v(A.individuals),1),l("td",Qz,v(A.activity||"â"),1),l("td",eW,v(A.notes||"â"),1)]))),128))])])])])]),l("footer",tW,[U.value?(w(),k("div",sW,[...x[133]||(x[133]=[l("span",{class:"w-2 h-2 rounded-full bg-emerald-500 animate-pulse"},null,-1),Me(" Currently Active Live Version ",-1)])])):(w(),k("button",{key:1,onClick:x[50]||(x[50]=A=>Qa($.value.count_id,$.value.id)),disabled:J.value,class:"px-5 py-2 rounded-xl text-xs font-bold bg-amber-600 hover:bg-amber-700 text-white shadow transition-colors cursor-pointer"},[J.value?(w(),k("span",iW,"Reverting Count...")):(w(),k("span",rW,"Revert Count to Version #"+v($.value.revision_number),1))],8,nW)),l("button",{onClick:x[51]||(x[51]=A=>$.value=null),class:"bg-slate-200 dark:bg-slate-800 hover:bg-slate-300 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 px-6 py-2 rounded-xl text-xs font-bold transition-all duration-150 cursor-pointer"}," Close Preview ")])])])):ae("",!0),f.value?(w(),k("div",{key:5,class:"fixed inset-0 bg-slate-900/60 dark:bg-black/75 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:x[55]||(x[55]=hs(A=>f.value=null,["self"]))},[l("div",oW,[l("header",aW,[l("div",null,[l("h3",lW,v(f.value.common_name||f.value.scientific_name),1),f.value.common_name?(w(),k("p",cW,v(f.value.scientific_name)+" ⢠Family: "+v(f.value.family||"â"),1)):ae("",!0)]),l("div",dW,[f.value.i_naturalist_id?(w(),k("a",{key:0,href:"https://www.inaturalist.org/taxa/"+f.value.i_naturalist_id,target:"_blank",rel:"noopener",class:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-bold bg-emerald-50 hover:bg-emerald-100 text-emerald-700 dark:bg-emerald-950/60 dark:hover:bg-emerald-900/80 dark:text-emerald-300 border border-emerald-200/80 dark:border-emerald-800/80 transition-colors"},[x[134]||(x[134]=l("svg",{class:"w-4 h-4 text-emerald-600 dark:text-emerald-400",fill:"currentColor",viewBox:"0 0 24 24"},[l("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})],-1)),l("span",null,"iNaturalist #"+v(f.value.i_naturalist_id),1)],8,uW)):ae("",!0),l("button",{onClick:x[53]||(x[53]=A=>f.value=null),class:"p-2 text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 rounded-xl hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors duration-150 cursor-pointer"},[...x[135]||(x[135]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])])]),l("div",fW,[l("div",hW,[l("div",null,[x[136]||(x[136]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Counts Seen",-1)),l("span",pW,v(f.value.survey_count||0),1)]),l("div",null,[x[137]||(x[137]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Total Individuals",-1)),l("span",mW,v(f.value.total_individuals||0),1)]),l("div",null,[x[138]||(x[138]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"First Logged",-1)),l("span",_W,v(Ee(f.value.first_seen)),1)]),l("div",null,[x[139]||(x[139]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Last Logged",-1)),l("span",gW,v(Ee(f.value.last_seen)),1)])]),l("div",vW,[l("div",bW,[l("h4",xW," Observation Locations Map ("+v(oe.value)+" mapped points) ",1)]),m.value?(w(),k("div",yW," Loading location map... ")):oe.value?(w(),k("div",kW,[...x[140]||(x[140]=[l("div",{id:"species-map",class:"w-full h-full"}
1844,null,-1)])])):(w(),k("div",wW," No GPS coordinates logged for this species. "))]),l("div",EW,[l("div",TW,[x[141]||(x[141]=l("div",null,[l("h4",{class:"text-xs font-black uppercase text-slate-800 dark:text-slate-200 tracking-wider"},"Seasonal Phenology (Flight Period)"),l("p",{class:"text-[10px] text-slate-400"},"Total individuals recorded per month")],-1)),l("span",SW," Peak Month: "+v(K.value),1)]),l("div",CW,[(w(!0),k(pe,null,Ne(b.value,(A,ue)=>(w(),k("div",{key:ue,class:"flex-1 flex flex-col items-center gap-1 group relative h-full justify-end"},[l("div",AW,v(N[ue])+": "+v(A),1),A>0?(w(),k("span",PW,v(A),1)):ae("",!0),l("div",{class:ce(["w-full rounded-t-md transition-all duration-300",A>0?"bg-gradient-to-t from-emerald-600 to-sky-500 hover:from-emerald-500 hover:to-sky-400 shadow-xs":"bg-slate-200 dark:bg-slate-700/60"]),style:Ut({height:A>0?Math.max(A/O.value*100,12)+"%":"4px"})},null,6),l("span",IW,v(N[ue]),1)]))),128))])]),l("div",LW,[l("div",OW,[l("h4",NW," Observation Locations & History ("+v(X.value.length)+" counts) ",1)]),m.value?(w(),k("div",$W," Loading species observation history... ")):X.value.length?(w(),k("div",MW,[l("table",RW,[x[142]||(x[142]=l("thead",{class:"sticky top-0 z-10"},[l("tr",{class:"bg-slate-50 dark:bg-slate-800 border-b border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 font-bold uppercase text-[10px]"},[l("th",{class:"p-2.5"},"Date"),l("th",{class:"p-2.5"},"Location"),l("th",{class:"p-2.5 text-center"},"Count"),l("th",{class:"p-2.5"},"Notes / Activity")])],-1)),l("tbody",BW,[(w(!0),k(pe,null,Ne(X.value,A=>(w(),k("tr",{key:A.count_id,class:"hover:bg-sky-50/40 dark:hover:bg-sky-950/30 transition-colors"},[l("td",FW,v(Ee(A.date)),1),l("td",UW,[l("div",jW,v(A.place_name),1),A.district_name?(w(),k("div",VW,v(A.district_name),1)):ae("",!0)]),l("td",HW,v(A.individuals),1),l("td",zW,[A.activity?(w(),k("span",WW,"["+v(A.activity)+"]",1)):ae("",!0),l("span",null,v(A.notes||"â"),1)])]))),128))])])])):(w(),k("div",DW," No detailed count records found for this species. "))])]),l("footer",ZW,[l("button",{onClick:x[54]||(x[54]=A=>f.value=null),class:"bg-slate-200 dark:bg-slate-800 hover:bg-slate-300 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 px-6 py-2.5 rounded-xl text-xs font-bold transition-all duration-150 cursor-pointer"}," Close Profile ")])])])):ae("",!0),_.value?(w(),k("div",{key:6,class:"fixed inset-0 bg-slate-900/60 dark:bg-black/75 backdrop-blur-sm flex items-center justify-center z-50 p-4",onClick:x[58]||(x[58]=hs(A=>_.value=null,["self"]))},[l("div",qW,[l("header",KW,[l("div",null,[l("h3",GW,"Count Summary for "+v(Ee(_.value.date)),1),l("p",YW,v(_.value.date),1)]),l("button",{onClick:x[56]||(x[56]=A=>_.value=null),class:"p-2 text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 rounded-xl hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors duration-150 cursor-pointer"},[...x[143]||(x[143]=[l("svg",{class:"w-6 h-6",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),l("div",JW,[l("div",XW,[l("div",null,[x[144]||(x[144]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Counts",-1)),l("span",QW,v(y.value?.stats?.total_surveys??_.value.count_total),1)]),l("div",null,[x[145]||(x[145]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Species",-1)),l("span",eZ,v(y.value?.stats?.total_species??_.value.species_count),1)]),l("div",null,[x[146]||(x[146]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Total Individuals",-1)),l("span",tZ,v(y.value?.stats?.total_individuals??_.value.total_individuals),1)]),l("div",null,[x[147]||(x[147]=l("span",{class:"text-[10px] uppercase font-extrabold text-slate-400 block"},"Total Distance",-1)),l("span",sZ,v(Tt(y.value?.stats?.total_distance)),1)])]),Ae.value?(w(),k("div",nZ,[l("h4",iZ," Day Transects Map ("+v(Ae.value)+" locations) ",1),x[148]||(x[148]=l("div",{class:"relative w-full h-60 rounded-2xl overflow-hidden border border-slate-200 dark:border-slate-800 shadow-sm z-0"},[l("div",{id:"day-map",class:"w-full h-full"})],-1))])):ae("",!0),l("div",rZ,[l("h4",oZ," Counts Conducted ("+v(je.value.length)+") ",1),S.value?(w(),k("div",aZ," Loading count sessions... ")):(w(),k("div",lZ,[(w(!0),k(
1844pe,null,Ne(je.value,A=>(w(),k("div",{key:A.id,class:"p-4 rounded-2xl bg-slate-50 dark:bg-slate-800/50 border border-slate-150 dark:border-slate-800 flex items-center justify-between gap-4"},[l("div",cZ,[l("div",dZ,[l("span",uZ,v(A.place_name),1),A.district_name?(w(),k("span",fZ,"("+v(A.district_name)+")",1)):ae("",!0)]),l("div",hZ,[A.start_time||A.end_time?(w(),k("span",pZ,v(nt(A)),1)):ae("",!0),A.weather?(w(),k("span",mZ,"Weather: "+v(A.weather),1)):ae("",!0),l("span",null,[x[149]||(x[149]=Me("Species: ",-1)),l("strong",_Z,v(A.species_count),1)]),l("span",null,[x[150]||(x[150]=Me("Individuals: ",-1)),l("strong",gZ,v(A.total_individuals),1)])])]),l("button",{onClick:ue=>Pt(A),type:"button",class:"px-3.5 py-1.5 rounded-xl bg-purple-50 hover:bg-purple-100 text-purple-700 dark:bg-purple-950 dark:hover:bg-purple-900 dark:text-purple-300 font-bold text-xs transition-colors shrink-0 cursor-pointer"}," View Count ",8,vZ)]))),128))]))]),l("div",bZ,[l("h4",xZ," Species Checklist ("+v(Ye.value.length)+" species) ",1),S.value?(w(),k("div",yZ," Loading species list... ")):Ye.value.length?(w(),k("div",kZ,[l("table",EZ,[x[151]||(x[151]=l("thead",{class:"sticky top-0 z-10"},[l("tr",{class:"bg-slate-50 dark:bg-slate-800 border-b border-slate-200 dark:border-slate-800 text-slate-500 dark:text-slate-400 font-bold uppercase text-[10px]"},[l("th",{class:"p-2.5"},"Species"),l("th",{class:"p-2.5"},"Status"),l("th",{class:"p-2.5"},"Family"),l("th",{class:"p-2.5 text-center"},"Encounters"),l("th",{class:"p-2.5 text-right"},"Total Count")])],-1)),l("tbody",TZ,[(w(!0),k(pe,null,Ne(Ye.value,A=>(w(),k("tr",{key:A.taxa_id||A.scientific_name,class:"hover:bg-purple-50/40 dark:hover:bg-purple-950/30 transition-colors"},[l("td",SZ,[l("div",null,v(A.common_name||A.scientific_name),1),A.common_name?(w(),k("div",CZ,v(A.scientific_name),1)):ae("",!0)]),l("td",AZ,[l("span",{class:ce(["px-2 py-0.5 rounded-md text-[10px] font-bold border inline-flex items-center gap-1 shrink-0",V(A).badgeClass])},[l("span",{class:ce(["w-1.5 h-1.5 rounded-full",V(A).dotClass])},null,2),l("span",null,v(V(A).shortLabel),1)],2)]),l("td",PZ,v(A.family||"â"),1),l("td",IZ,v(A.survey_occurrences)+" survey(s) ",1),l("td",LZ,v(A.total_individuals),1)]))),128))])])])):(w(),k("div",wZ," No species observations recorded on this date. "))])]),l("footer",OZ,[l("button",{onClick:x[57]||(x[57]=A=>_.value=null),class:"bg-slate-200 dark:bg-slate-800 hover:bg-slate-300 dark:hover:bg-slate-700 text-slate-700 dark:text-slate-200 px-6 py-2.5 rounded-xl text-xs font-bold transition-all duration-150 cursor-pointer"}," Close Summary ")])])])):ae("",!0)]))}},$Z=Ao(NZ,[["__scopeId","data-v-2ea70eff"]]),DZ={class:"relative min-h-screen flex items-center justify-center bg-slate-950 text-slate-100 overflow-hidden py-12 px-4 sm:px-6 lg:px-8"},MZ={class:"relative z-10 w-full max-w-5xl grid lg:grid-cols-12 gap-8 items-center"},RZ={class:"lg:col-span-5"},BZ={class:"relative bg-slate-900/80 border border-emerald-500/20 rounded-3xl p-8 sm:p-10 shadow-2xl backdrop-blur-xl hover:border-emerald-500/30 transition-all duration-300"},FZ={class:"space-y-4"},UZ=["disabled"],jZ={key:0,class:"p-3.5 rounded-xl bg-red-500/10 border border-red-500/30 text-red-300 text-xs flex items-start gap-2.5 animate-fadeIn"},VZ={class:"flex-1"},HZ={class:"font-medium"},zZ={__name:"UserLogin",setup(t){const e=ke(!1),s=ke(null),n=async()=>{s.value=null,e.value=!0;const r=new hn;try{const o=await sy(Ts,r);window.location.href="/user/dashboard"}catch(o){o.code!=="auth/popup-closed-by-user"&&(s.value=o.message||"Failed to sign in with Google. Please try again."),console.error("Firebase Google login error:",o)}finally{e.value=!1}};return(r,o)=>(w(),k("div",DZ,[o[9]||(o[9]=l("div",{class:"absolute -top-40 -left-40 w-96 h-96 bg-emerald-600/20 rounded-full blur-3xl pointer-events-none animate-pulse"},null,-1)),o[10]||(o[10]=l("div",{class:"absolute -bottom-40 -right-40 w-96 h-96 bg-teal-500/15 rounded-full blur-3xl pointer-events-none"},null,-1)),o[11]||(o[11]=l("div",{class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[700px] bg-emerald-900/10 rounded-full blur-3xl pointer-events-none"},null,-1)),o[12]||(o[12]=l("div",{class:"absolute inset-0 bg-[radial-gradient(#10b981_1px,transparent_1px)] [background-size:24px_24px] opacity-10 pointer-events-none"},null,-1)),l("div",MZ,[o[8]||(o[8]=Ys('<div class="lg:col-span-7 space-y-6 text-left" data-v-2f0612e0><div class="inline-flex items-center gap-2.5 px-3.5 py-1.5 rounded-full bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 text-xs font-semibold tracking-wide backdrop-blur-md" data-v-2f0612e0><span class="relative flex h-2 w-2" data-v-2f0612e0><span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75" data-v-2f0612e0></span><span class="relative inline-flex rounded-full h-2 w-2 bg-emerald-500" data-v-2f0612e0></span></span> FIELD RECORDER PORTAL ⢠ECOSYSTEM CONNECTED </div><div class="space-y-4" data-v-2f0612e0><div class="flex items-center gap-4" data-v-2f0612e0><img src="/images/logo.png" alt="ButterflyCounts Logo" class="h-14 sm:h-16 w-auto object-contain filter drop-shadow-[0_4px_16px_rgba(16,185,129,0.3)] transition-transform duration-300 hover:scale-105" data-v-2f0612e0></div><h1 class="text-3xl sm:text-4xl lg:text-5xl font-extrabold tracking-tight text-white leading-tight" data-v-2f0612e0> Systematic Butterfly <br class="hidden sm:block" data-v-2f0612e0><span class="bg-gradient-to-r from-emerald-400 via-teal-300 to-emerald-200 bg-clip-text text-transparent" data-v-2f0612e0> Field Counts & Analytics </span></h1><p class="text-slate-400 text-sm sm:text-base leading-relaxed max-w-xl" data-v-2f0612e0> Access your field recorder dashboard, manage offline checklist surveys, view your personal life list metrics, and contribute to India's open-access biodiversity monitoring network. </p></div><div class="grid sm:grid-cols-3 gap-3.5 pt-2" data-v-2f0612e0><div class="p-4 rounded-2xl bg-slate-900/60 border border-slate-800/80 backdrop-blur-md hover:border-emerald-500/30 transition-all group" data-v-2f0612e0><div class="w-9 h-9 rounded-xl bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center text-emerald-400 mb-3 group-hover:scale-110 transition-transform" data-v-2f0612e0><svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" data-v-2f0612e0><path stroke-linecap="round" stroke-linejoin="round" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0" data-v-2f0612e0></path></svg></div><h3 class="font-bold text-slate-200 text-sm mb-1" data-v-2f0612e0>Offline Surveys</h3><p class="text-slate-400 text-xs leading-normal" data-v-2f0612e0>Record remote field counts without network access.</p></div><div class="p-4 rounded-2xl bg-slate-900/60 border border-slate-800/80 backdrop-blur-md hover:border-emerald-500/30 transition-all group" data-v-2f0612e0><div class="w-9 h-9 rounded-xl bg-teal-500/10 border border-teal-500/20 flex items-center justify-center text-teal-400 mb-3 group-hover:scale-110 transition-transform" data-v-2f0612e0><svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" data-v-2f0612e0><path stroke-linecap="round" stroke-linejoin="round" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" data-v-2f0612e0></path><path stroke-linecap="round" stroke-linejoin="round" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" data-v-2f0612e0></path></svg></div><h3 class="font-bold text-slate-200 text-sm mb-1" data-v-2f0612e0>GPS Boundaries</h3><p class="text-slate-400 text-xs leading-normal" data-v-2f0612e0>Automated state & district polygon verification.</p></div><div class="p-4 rounded-2xl bg-slate-900/60 border border-slate-800/80 backdrop-blur-md hover:border-emerald-500/30 transition-all group" data-v-2f0612e0><div class="w-9 h-9 rounded-xl bg-emerald-500/10 border border-emerald-500/20 flex items-center justify-center text-emerald-400 mb-3 group-hover:scale-110 transition-transform" data-v-2f0612e0><svg class="w-5 h-5" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" data-v-2f0612e0><path stroke-linecap="round" stroke-linejoin="round" d="M9 19v-6a2 2 0 012-2h2a2 2 0 012 2v6a2 2 0 01-2 2h-2a2 2 0 01-2-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" data-v-2f0612e0></path></svg></div><h3 class="font-bold text-slate-200 text-sm mb-1" data-v-2f0612e0>Personal Life List</h3><p class="text-slate-400 text-xs leading-normal" data-v-2f0612e0>Live taxonomic coverage & observation history.</p></div></div></div>',1)),l("div",RZ,[l("div",BZ,[o[6]||(o[6]=Ys('<div class="flex items-center justify-center mb-6" data-v-2f0612e0><div class="relative p-3.5 rounded-2xl bg-gradient-to-br from-emerald-500/20 to-teal-500/10 border border-emerald-500/30 shadow-lg group" data-v-2f0612e0><img src="/images/butterfly_icon.png" alt="Butterfly Icon" class="w-10 h-10 object-contain filter drop-shadow group-hover:rotate-12 transition-transform duration-300" data-v-2f0612e0></div></div><div class="text-center space-y-2 mb-8" data-v-2f0612e0><h2 class="text-2xl font-bold text-white tracking-tight" data-v-2f0612e0>Sign In to Portal</h2><p class="text-slate-400 text-xs leading-relaxed max-w-xs mx-auto" data-v-2f0612e0> Use your registered Google account to access your field survey recordings and observer profile. </p></div>',2)),l("div",FZ,[l("button",{onClick:n,disabled:e.value,class:"w-full relative group overflow-hidden bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-500 hover:to-teal-500 active:scale-[0.99] text-white py-3.5 px-5 rounded-2xl font-bold text-sm shadow-xl shadow-emerald-950/50 hover:shadow-emerald-600/20 transition-all duration-200 flex items-center justify-center gap-3 cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed border border-emerald-400/30"},[o[4]||(o[4]=l("div",{class:"absolute inset-0 w-1/2 h-full bg-white/10 skew-x-12 -translate-x-full group-hover:translate-x-[300%] transition-transform duration-1000 ease-out"},null,-1)),e.value?(w(),k(pe,{key:1},[o[2]||(o[2]=l("svg",{class:"animate-spin -ml-1 mr-2 h-5 w-5 text-white",f
1844ill:"none",viewBox:"0 0 24 24"},[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)),o[3]||(o[3]=l("span",null,"Connecting to Google Auth...",-1))],64)):(w(),k(pe,{key:0},[o[1]||(o[1]=Ys('<svg class="w-5 h-5 bg-white rounded-full p-0.5" viewBox="0 0 48 48" data-v-2f0612e0><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.66 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z" data-v-2f0612e0></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z" data-v-2f0612e0></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z" data-v-2f0612e0></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.66 48 24 48z" data-v-2f0612e0></path></svg><span data-v-2f0612e0>Continue with Google</span>',2))],64))],8,UZ),s.value?(w(),k("div",jZ,[o[5]||(o[5]=l("svg",{class:"w-4 h-4 text-red-400 shrink-0 mt-0.5",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),l("div",VZ,[l("p",HZ,v(s.value),1)]),l("button",{onClick:o[0]||(o[0]=c=>s.value=null),class:"text-red-400 hover:text-red-200 cursor-pointer"},"Ã")])):ae("",!0)]),o[7]||(o[7]=Ys('<div class="mt-8 pt-6 border-t border-slate-800/80 text-center space-y-3 text-xs text-slate-400" data-v-2f0612e0><div class="flex items-center justify-center gap-1.5 text-[11px] text-slate-400" data-v-2f0612e0><svg class="w-3.5 h-3.5 text-emerald-400" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" data-v-2f0612e0><path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" data-v-2f0612e0></path></svg><span data-v-2f0612e0>Protected by Firebase OAuth 2.0</span></div><div class="flex items-center justify-center text-slate-400 text-xs" data-v-2f0612e0><a href="/" class="hover:text-emerald-400 transition-colors inline-flex items-center gap-1" data-v-2f0612e0> â Return to Public Dashboard </a></div></div>',1))])])])]))}},WZ=Ao(zZ,[["__scopeId","data-v-2f0612e0"]]),ZZ={name:"DrillDownModal",props:{type:{type:String,required:!0},id:{type:[Number,String],required:!0}},data(){return{loading:!0,filterMode:"all",entityData:null}},computed:{isUser(){return this.type==="user"},info(){return this.entityData?this.isUser?this.entityData.user:this.entityData.region:{}},seasonalityData(){return this.entityData?.seasonality?this.entityData.seasonality.map(t=>({month:t.month,month_name:t.month_name,value:this.filterMode==="open"?t.counts_open:t.counts_all})):[]},maxMonthlyValue(){const t=this.seasonalityData.map(e=>e.value);return Math.max(1,...t)},peakMonth(){if(!this.seasonalityData.length)return"â";let t=this.seasonalityData[0];for(const e of this.seasonalityData)e.value>t.value&&(t=e);return t.value>0?t.month_name:"N/A"},maxCurveSpecies(){if(!this.entityData?.accumulation_curve?.length)return 1;const t=this.entityData.accumulation_curve,e=t[t.length-1],s=this.filterMode==="open"?e.cumulative_species_open:e.cumulative_species_all;return Math.max(1,s)},finalSpeciesCount(){if(!this.entityData?.accumulation_curve?.length)return 0;const t=this.entityData.accumulation_curve,e=t[t.length-1];return this.filterMode==="open"?e.cumulative_species_open:e.cumulative_species_all},accumulationPoints(){if(!this.entityData?.accumulation_curve?.length)return[];const t=this.entityData.accumulation_curve,e=this.maxCurveSpecies,s=Math.max(1,t[t.length-1].survey_number);return t.map(n=>{const r=this.filterMode==="open"?n.cumulative_species_open:n.cumulative_species_all,o=n.survey_number/s*540+40,c=130-r/e*110;return{x:o,y:c,species:r,date:n.date}})},curveLinePath(){return this.accumulationPoints.length?this.accumulationPoints.map((t,e)=>`${e===0?"M":"L"}${t.x.toFixed(1)},${t.y.toFixed(1)}`).join(" "):""},curveAreaPath(){if(!this.accumulationPoints.length)return"";const t=this.accumulationPoints[0],e=this.accumulationPoints[this.accumulationPoints.length-1];return`${this.curveLinePath} L${e.x.toFixed(1)},130 L${t.x.toFixed(1)},130 Z`},topSpeciesList(){return this.entityData?.top_species||[]}},mounted(){this.fetchDrillDownData()}
1844,methods:{formatNum(t){return t==null?"0":t.toLocaleString()},barHeight(t){return Math.max(0,t/this.maxMonthlyValue*100)},async fetchDrillDownData(){this.loading=!0;try{const t=this.isUser?`/api/analysis/user/${this.id}`:`/api/analysis/region/${encodeURIComponent(this.id)}`,e=await fetch(t);e.ok?this.entityData=await e.json():console.error("Failed to load drill-down analysis")}catch(t){console.error("Error fetching drill-down data:",t)}finally{this.loading=!1}}}},qZ={class:"bg-slate-900 border border-slate-700/80 rounded-2xl shadow-2xl w-full max-w-5xl max-h-[90vh] flex flex-col overflow-hidden text-slate-100 animate-fadeIn"},KZ={class:"flex items-start justify-between border-b border-slate-800 p-6 bg-slate-900/90 sticky top-0 z-10"},GZ={class:"space-y-1"},YZ={class:"flex items-center gap-2"},JZ={key:0,class:"text-xs text-slate-400 font-mono"},XZ={class:"text-2xl font-extrabold text-white"},QZ={key:0,class:"flex flex-wrap items-center gap-3 text-xs text-slate-400 pt-1"},eq={class:"text-white font-mono"},tq={class:"text-white font-mono"},sq={class:"text-teal-300 font-mono"},nq={key:0},iq={key:1,class:"text-slate-400"},rq={key:0,class:"p-16 text-center text-slate-400 animate-pulse font-medium"},oq={key:1,class:"p-6 overflow-y-auto space-y-8"},aq={class:"flex items-center justify-between bg-slate-800/60 p-3 rounded-xl border border-slate-700/60"},lq={class:"text-xs font-semibold text-slate-300"},cq={class:"text-indigo-400 font-bold"},dq={class:"flex items-center bg-slate-900 p-1 rounded-lg border border-slate-700 text-xs"},uq={class:"bg-slate-800/60 border border-slate-700/60 rounded-2xl p-5 shadow-xl space-y-3"},fq={class:"flex items-baseline justify-between"},hq={class:"text-xs font-mono font-semibold text-emerald-400 bg-emerald-500/10 px-2.5 py-0.5 rounded border border-emerald-500/20"},pq={class:"w-full pt-2"},mq={viewBox:"0 0 600 160",class:"w-full h-44 select-none"},_q=["x","y","height","fill"],gq=["x","y"],vq=["x"],bq={class:"bg-slate-800/60 border border-slate-700/60 rounded-2xl p-5 shadow-xl space-y-3"},xq={class:"flex items-baseline justify-between"},yq={class:"text-xs font-mono font-semibold text-teal-300 bg-teal-500/10 px-2.5 py-0.5 rounded border border-teal-500/20"},wq={key:0,class:"h-40 flex items-center justify-center text-xs text-slate-500"},kq={key:1,class:"w-full pt-2"},Eq={viewBox:"0 0 600 170",class:"w-full h-48 select-none"},Tq={x:"32",y:"24","text-anchor":"end","font-size":"9","font-family":"monospace",fill:"#94a3b8"},Sq={x:"32",y:"79","text-anchor":"end","font-size":"9","font-family":"monospace",fill:"#94a3b8"},Cq=["d"],Aq=["d"],Pq=["cx","cy"],Iq=["cx","cy"],Lq=["x","y"],Oq={x:"580",y:"152","text-anchor":"end","font-size":"10","font-family":"monospace",fill:"#94a3b8"},Nq={class:"bg-slate-800/60 border border-slate-700/60 rounded-2xl p-5 shadow-xl space-y-4"},$q={class:"overflow-x-auto rounded-xl border border-slate-700/50"},Dq={class:"w-full text-left text-xs sm:text-sm text-slate-300"},Mq={class:"divide-y divide-slate-800"},Rq={class:"py-3 px-4 font-mono font-bold text-indigo-400"},Bq={class:"py-3 px-4"},Fq={class:"font-semibold text-white"},Uq={class:"text-[11px] italic text-slate-400"},jq={class:"py-3 px-4 text-center font-mono font-bold text-slate-200"},Vq={class:"py-3 px-4 text-center font-mono text-cyan-300"},Hq={class:"py-3 px-4 text-center"},zq={class:"inline-flex items-center gap-1"},Wq={class:"w-10 bg-slate-700 h-1.5 rounded-full overflow-hidden"},Zq={class:"font-mono text-xs"},qq={class:"bg-slate-800/60 border border-slate-700/60 rounded-2xl p-5 shadow-xl space-y-4"},Kq={class:"text-base font-bold text-white"},Gq={key:0,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"},Yq={class:"font-semibold text-white text-sm"},Jq={class:"text-xs text-slate-400"},Xq={class:"font-mono text-xs font-bold text-indigo-400 bg-indigo-500/10 px-2 py-0.5 rounded border border-indigo-500/20"},Qq={key:1,class:"overflow-x-auto rounded-xl border border-slate-700/50"},eK={class:"w-full text-left text-xs sm:text-sm text-slate-300"},tK={class:"divide-y divide-slate-800"},sK={class:"py-3 px-4 font-semibold text-white"},nK={class:"py-3 px-4 text-center font-bold font-mono text-indigo-300"},iK={class:"py-3 px-4 text-center font-mono text-emerald-400"},rK={class:"py-3 px-4 text-center font-mono"},oK={class:"py-3 px-4 text-center font-mono text-teal-300 font-bold"};function aK(t,e,s,n,r,o){return w(),k("div",{class:"fixed inset-0 bg-black/80 backdrop-blur-md flex items-center justify-center z-50 p-4 sm:p-6 overflow-y-auto",onClick:e[3]||(e[3]=hs(c=>t.$emit("close"),["self"]))},[l("div",qZ,[l("div",KZ,[l("div",GZ,[l("div",YZ,[l("span",{class:ce(["px-2.5 py-0.5 text-[11px] font-bold uppercase tracking-wider rounded-full",o.isUser?"bg-indigo-500/10 text-indigo-400 border border-indigo-500/20":"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20"])},v(o.isUser?"Observer Profile":"Regional Hotspot"),3),r.entityData?(w(),k("span",JZ,v(o.isUser?`ID: #${r.entityData.user.id}`:r.entityData.region.state_name),1)):ae("",!0)]),l("h2",XZ,v(o.isUser?r.entityData?.user?.name:r.entityData?.region?.district_name),1),r.entityData?(w(),k("div",QZ,[l("span",null,[e[4]||(e[4]=Me("Surveys: ",-1)),l("strong",eq,v(o.formatNum
1844(o.info.total_counts)),1),Me(" ("+v(o.info.open_access_percentage)+"% open)",1)]),e[7]||(e[7]=l("span",null,"â¢",-1)),l("span",null,[e[5]||(e[5]=Me("Observations: ",-1)),l("strong",tq,v(o.formatNum(o.info.total_observations)),1)]),e[8]||(e[8]=l("span",null,"â¢",-1)),l("span",null,[e[6]||(e[6]=Me("Species: ",-1)),l("strong",sq,v(o.info.unique_species_all),1)]),o.info.earliest_date?(w(),k("span",nq,"â¢")):ae("",!0),o.info.earliest_date?(w(),k("span",iq,"Span: "+v(o.info.earliest_date)+" â "+v(o.info.latest_date),1)):ae("",!0)])):ae("",!0)]),l("button",{onClick:e[0]||(e[0]=c=>t.$emit("close")),class:"w-8 h-8 rounded-full bg-slate-800 text-slate-400 hover:text-white hover:bg-slate-700 transition flex items-center justify-center font-bold"}," â ")]),r.loading?(w(),k("div",rq," Fetching seasonality metrics and accumulation curves... ")):r.entityData?(w(),k("div",oq,[l("div",aq,[l("div",lq,[e[9]||(e[9]=Me(" Viewing Insights: ",-1)),l("span",cq,v(r.filterMode==="all"?"All Data (Public + Private)":"Open Access Only"),1)]),l("div",dq,[l("button",{onClick:e[1]||(e[1]=c=>r.filterMode="all"),class:ce([r.filterMode==="all"?"bg-indigo-600 text-white font-semibold shadow":"text-slate-400 hover:text-white","px-3 py-1 rounded-md transition-all"])}," All Data ",2),l("button",{onClick:e[2]||(e[2]=c=>r.filterMode="open"),class:ce([r.filterMode==="open"?"bg-indigo-600 text-white font-semibold shadow":"text-slate-400 hover:text-white","px-3 py-1 rounded-md transition-all"])}," Open Access Only ",2)])]),l("div",uq,[l("div",fq,[e[10]||(e[10]=l("div",null,[l("h3",{class:"text-base font-bold text-white"},"Seasonality & Monthly Activity"),l("p",{class:"text-xs text-slate-400"},"Monthly breakdown of survey counts (JanâDec).")],-1)),l("span",hq," Peak Month: "+v(o.peakMonth),1)]),l("div",pq,[(w(),k("svg",mq,[e[11]||(e[11]=l("line",{x1:"30",y1:"130",x2:"590",y2:"130",stroke:"#334155","stroke-width":"1"},null,-1)),(w(!0),k(pe,null,Ne(o.seasonalityData,(c,u)=>(w(),k("g",{key:c.month},[l("rect",{x:35+u*46,y:130-o.barHeight(c.value),width:"32",height:o.barHeight(c.value),rx:"4",fill:c.value===o.maxMonthlyValue&&c.value>0?"#34d399":"#38bdf8",class:"transition-all hover:opacity-80 cursor-pointer"},[l("title",null,v(c.month_name)+": "+v(c.value)+" surveys",1)],8,_q),c.value>0?(w(),k("text",{key:0,x:51+u*46,y:124-o.barHeight(c.value),"text-anchor":"middle","font-size":"10","font-family":"monospace","font-weight":"bold",fill:"#f8fafc"},v(c.value),9,gq)):ae("",!0),l("text",{x:51+u*46,y:"146","text-anchor":"middle","font-size":"11","font-weight":"600",fill:"#94a3b8"},v(c.month_name),9,vq)]))),128))]))])]),l("div",bq,[l("div",xq,[e[12]||(e[12]=l("div",null,[l("h3",{class:"text-base font-bold text-white"},"Species Accumulation Curve"),l("p",{class:"text-xs text-slate-400"},"Cumulative unique species recorded over chronological survey sequence.")],-1)),l("span",yq," Total Species: "+v(o.finalSpeciesCount),1)]),o.accumulationPoints.length?(w(),k("div",kq,[(w(),k("svg",Eq,[e[13]||(e[13]=l("line",{x1:"40",y1:"20",x2:"580",y2:"20",stroke:"#334155","stroke-dasharray":"2 2","stroke-width":"1"},null,-1)),e[14]||(e[14]=l("line",{x1:"40",y1:"75",x2:"580",y2:"75",stroke:"#334155","stroke-dasharray":"2 2","stroke-width":"1"},null,-1)),e[15]||(e[15]=l("line",{x1:"40",y1:"130",x2:"580",y2:"130",stroke:"#334155","stroke-width":"1"},null,-1)),l("text",Tq,v(o.maxCurveSpecies),1),l("text",Sq,v(Math.round(o.maxCurveSpecies/2)),1),e[16]||(e[16]=l("text",{x:"32",y:"134","text-anchor":"end","font-size":"9","font-family":"monospace",fill:"#94a3b8"},"0",-1)),l("path",{d:o.curveAreaPath,fill:"#2DD4BF","fill-opacity":"0.12"},null,8,Cq),l("path",{d:o.curveLinePath,fill:"none",stroke:"#2DD4BF","stroke-width":"2.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Aq),o.accumulationPoints.length?(w(),k("circle",{key:0,cx:o.accumulationPoints[0].x,cy:o.accumulationPoints[0].y,r:"4",fill:"#2DD4BF"},null,8,Pq)):ae("",!0),o.accumulationPoints.length?(w(),k("circle",{key:1,cx:o.accumulationPoints[o.accumulationPoints.length-1].x,cy:o.accumulationPoints[o.accumulationPoints.length-1].y,r:"5",fill:"#2DD4BF",stroke:"#0F172A","stroke-width":"2"},null,8,Iq)):ae("",!0),o.accumulationPoints.length?(w(),k("text",{key:2,x:o.accumulationPoints[o.accumulationPoints.length-1].x,y:o.accumulationPoints[o.accumulationPoints.length-1].y-8,"text-anchor":"end","font-size":"11","font-weight":"bold","font-family":"monospace",fill:"#2DD4BF"},v(o.finalSpeciesCount)+" taxa",9,Lq)):ae("",!0),e[17]||(e[17]=l("text",{x:"40",y:"152","font-size":"10","font-family":"monospace",fill:"#94a3b8"},"Survey #1",-1)),l("text",Oq,"Survey #"+v(o.info.total_counts),1)]))])):(w(),k("div",wq," Insufficient survey data for accumulation curve. "))]),l("div",Nq,[e[19]||(e[19]=l("h3",{class:"text-base font-bold text-white"}
1844,"Top Species Rank Abundance",-1)),l("div",$q,[l("table",Dq,[e[18]||(e[18]=l("thead",{class:"bg-slate-900/80 uppercase text-[11px] font-semibold text-slate-400 tracking-wider"},[l("tr",null,[l("th",{class:"py-3 px-4"},"Rank"),l("th",{class:"py-3 px-4"},"Species Name"),l("th",{class:"py-3 px-4 text-center"},"Observations"),l("th",{class:"py-3 px-4 text-center"},"Individuals Counted"),l("th",{class:"py-3 px-4 text-center"},"% Share of Obs")])],-1)),l("tbody",Mq,[(w(!0),k(pe,null,Ne(o.topSpeciesList,(c,u)=>(w(),k("tr",{key:c.common_name,class:"hover:bg-slate-800/50"},[l("td",Rq,"#"+v(u+1),1),l("td",Bq,[l("div",Fq,v(c.common_name),1),l("div",Uq,v(c.scientific_name||"â"),1)]),l("td",jq,v(r.filterMode==="open"?c.obs_count_open:c.obs_count_all),1),l("td",Vq,v(o.formatNum(c.indiv_count_all)),1),l("td",Hq,[l("div",zq,[l("div",Wq,[l("div",{class:"bg-indigo-400 h-full",style:Ut({width:Math.min(100,c.share_percentage*3)+"%"})},null,4)]),l("span",Zq,v(c.share_percentage)+"%",1)])])]))),128))])])])]),l("div",qq,[l("h3",Kq,v(o.isUser?"Districts Surveyed by Observer":"Top Observer Contributions in Region"),1),o.isUser?(w(),k("div",Gq,[(w(!0),k(pe,null,Ne(r.entityData.districts,c=>(w(),k("div",{key:c.district_name,class:"bg-slate-900/80 p-3 rounded-xl border border-slate-700/50 flex justify-between items-center"},[l("div",null,[l("div",Yq,v(c.district_name),1),l("div",Jq,v(c.state_name),1)]),l("span",Xq,v(c.count_total)+" counts ",1)]))),128))])):(w(),k("div",Qq,[l("table",eK,[e[20]||(e[20]=l("thead",{class:"bg-slate-900/80 uppercase text-[11px] font-semibold text-slate-400 tracking-wider"},[l("tr",null,[l("th",{class:"py-3 px-4"},"Contributor"),l("th",{class:"py-3 px-4 text-center"},"Surveys Submitted"),l("th",{class:"py-3 px-4 text-center"},"Open Access Counts"),l("th",{class:"py-3 px-4 text-center"},"Total Observations"),l("th",{class:"py-3 px-4 text-center"},"Species Recorded")])],-1)),l("tbody",tK,[(w(!0),k(pe,null,Ne(r.entityData.contributors,c=>(w(),k("tr",{key:c.user_id,class:"hover:bg-slate-800/50"},[l("td",sK,v(c.name),1),l("td",nK,v(c.count_total),1),l("td",iK,v(c.open_counts),1),l("td",rK,v(o.formatNum(c.total_observations)),1),l("td",oK,v(c.unique_species),1)]))),128))])])]))])])):ae("",!0)])])}const lK=Ao(ZZ,[["render",aK],["__scopeId","data-v-87b79030"]]),cK={name:"AnalysisDashboard",components:{DrillDownModal:lK},props:{initialData:{type:Object,default:null}},data(){return{loading:!1,activeTab:"contributors",userFilter:"25",activeModal:!1,modalType:null,modalId:null,analysisData:this.initialData||{meta:{},overview:{},users:{profiles:[]},districts:[],privacy_delta:{}}}},computed:{metaFormattedDate(){return this.analysisData?.meta?.formatted_date||"N/A"},overview(){return this.analysisData?.overview||{}},userMetrics(){return this.analysisData?.users||{profiles:[]}},districtProfiles(){return this.analysisData?.districts||[]},privacyDelta(){return this.analysisData?.privacy_delta||{}},filteredUsers(){const t=this.userMetrics.profiles||[];return this.userFilter==="50"?t.filter(e=>e.total_counts>=50):this.userFilter==="25"?t.filter(e=>e.total_counts>=25):this.userFilter==="10"?t.filter(e=>e.total_counts>=10):t}},mounted(){this.initialData||this.fetchAnalysis()},methods:{formatNum(t){return t==null?"0":t.toLocaleString()},openDrillDown(t,e){this.modalType=t,this.modalId=e,this.activeModal=!0},async fetchAnalysis(t=!1){this.loading=!0;try{const s=await fetch(t?"/api/analysis?force=1":"/api/analysis");s.ok?this.analysisData=await s.json():console.error("Failed to load analysis dataset")}catch(e){console.error("Error fetching analysis data:",e)}finally{this.loading=!1}},refreshAnalysis(){this.fetchAnalysis(!0)}}},dK={class:"min-h-screen bg-slate-900 text-slate-100 font-sans p-4 sm:p-8"},uK={class:"max-w-7xl mx-auto space-y-8"},fK={class:"bg-slate-800/80 backdrop-blur border border-slate-700/60 rounded-2xl p-6 shadow-xl flex flex-col md:flex-row items-start md:items-center justify-between gap-4"},hK={class:"flex flex-col sm:flex-row items-start sm:items-center gap-3 w-full md:w-auto"},pK={class:"bg-slate-900/90 border border-slate-700/80 rounded-xl px-4 py-2 text-xs font-mono text-slate-300 flex items-center gap-2"},mK=["disabled"],_K={key:0,class:"animate-spin h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},gK={key:1,class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"}
1844,vK={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5"},bK={class:"bg-slate-800/60 border border-slate-700/60 rounded-2xl p-5 shadow-lg relative overflow-hidden group hover:border-emerald-500/40 transition-all"},xK={class:"text-3xl font-extrabold text-white mt-2"},yK={class:"mt-3 flex items-center justify-between text-xs text-slate-400"},wK={class:"text-emerald-400"},kK={class:"px-2 py-0.5 rounded bg-emerald-500/10 text-emerald-400 font-mono font-bold"},EK={class:"bg-slate-800/60 border border-slate-700/60 rounded-2xl p-5 shadow-lg relative overflow-hidden group hover:border-cyan-500/40 transition-all"},TK={class:"text-3xl font-extrabold text-white mt-2"},SK={class:"mt-3 flex items-center justify-between text-xs text-slate-400"},CK={class:"text-cyan-400"},AK={class:"px-2 py-0.5 rounded bg-cyan-500/10 text-cyan-400 font-mono font-bold"},PK={class:"bg-slate-800/60 border border-slate-700/60 rounded-2xl p-5 shadow-lg relative overflow-hidden group hover:border-indigo-500/40 transition-all"},IK={class:"text-3xl font-extrabold text-white mt-2"},LK={class:"mt-3 flex items-center justify-between text-xs text-slate-400"},OK={class:"text-indigo-400"},NK={class:"px-2 py-0.5 rounded bg-indigo-500/10 text-indigo-400 font-mono font-bold"},$K={class:"bg-slate-800/60 border border-slate-700/60 rounded-2xl p-5 shadow-lg relative overflow-hidden group hover:border-amber-500/40 transition-all"},DK={class:"text-3xl font-extrabold text-white mt-2"},MK={class:"mt-3 flex items-center justify-between text-xs text-slate-400"},RK={class:"text-amber-400"},BK={class:"text-slate-400 font-mono"},FK={class:"flex items-center gap-3 border-b border-slate-800 pb-3"},UK={key:0,class:"space-y-6"},jK={class:"bg-slate-800/70 border border-slate-700/60 rounded-2xl p-6 shadow-xl space-y-4"},VK={class:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4"},HK={class:"flex items-center bg-slate-900/80 p-1 rounded-xl border border-slate-700/80 text-xs"},zK={class:"overflow-x-auto rounded-xl border border-slate-700/50"},WK={class:"w-full text-left text-xs sm:text-sm text-slate-300"},ZK={class:"divide-y divide-slate-800"},qK=["onClick"],KK={class:"py-3.5 px-4 font-semibold text-white group-hover:text-indigo-300 transition-colors"},GK={class:"text-[10px] font-mono text-slate-500 font-normal"},YK={class:"py-3.5 px-4 text-center font-bold text-indigo-300"},JK={class:"text-[10px] font-normal text-slate-500 block"},XK={class:"py-3.5 px-4 text-center"},QK={class:"inline-flex items-center gap-1"},eG={class:"w-12 bg-slate-700 h-2 rounded-full overflow-hidden"},tG={class:"font-mono text-xs font-semibold"},sG={class:"py-3.5 px-4 text-center font-mono font-medium"},nG={class:"py-3.5 px-4 text-center font-mono text-amber-300 font-semibold"},iG={class:"py-3.5 px-4 text-center font-mono text-teal-300 font-semibold"},rG={class:"py-3.5 px-4 text-center"},oG={class:"py-3.5 px-4 text-right"},aG=["onClick"],lG={key:1,class:"space-y-6"},cG={class:"bg-slate-800/70 border border-slate-700/60 rounded-2xl p-6 shadow-xl"},dG={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5"},uG=["onClick"],fG={class:"flex items-start justify-between"},hG={class:"text-lg font-bold text-white group-hover:text-indigo-300 transition-colors leading-tight"},pG={class:"text-xs text-slate-400 font-medium"},mG=["onClick"],_G={class:"grid grid-cols-2 gap-3 bg-slate-800/50 p-3 rounded-lg text-xs"},gG={class:"text-base font-bold text-cyan-300 mt-0.5"},vG={class:"text-base font-bold text-emerald-300 mt-0.5"},bG={class:"space-y-1"},xG={class:"flex justify-between text-[11px] text-slate-400"},yG={class:"font-mono font-semibold text-emerald-400"},wG={class:"w-full bg-slate-800 h-1.5 rounded-full overflow-hidden"},kG={key:0,class:"pt-2 border-t border-slate-800"},EG={class:"space-y-1 text-xs"},TG={class:"truncate max-w-[170px]"},SG={class:"font-mono text-slate-400 font-medium text-[11px]"},CG={key:2,class:"space-y-6"},AG={class:"bg-slate-800/70 border border-slate-700/60 rounded-2xl p-6 shadow-xl space-y-6"},PG={class:"grid grid-cols-1 md:grid-cols-3 gap-5"},IG={class:"bg-slate-900/90 border border-slate-700/80 rounded-xl p-5"},LG={class:"text-3xl font-extrabold text-rose-400 mt-2"},OG={class:"text-xs text-slate-400 mt-2"},NG={class:"bg-slate-900/90 border border-slate-700/80 rounded-xl p-5"},$G={class:"text-3xl font-extrabold text-amber-400 mt-2"},DG={class:"text-xs text-slate-400 mt-2"},MG={class:"bg-slate-900/90 border border-slate-700/80 rounded-xl p-5"},RG={class:"text-3xl font-extrabold text-teal-400 mt-2"},BG={class:"space-y-3 pt-4 border-t border-slate-700/60"},FG={class:"overflow-x-auto rounded-xl border border-slate-700/50"},UG={class:"w-full text-left text-xs sm:text-sm text-slate-300"},jG={class:"divide-y divide-slate-800"}
1844,VG=["onClick"],HG={class:"py-3 px-4 font-semibold text-white"},zG={class:"py-3 px-4 text-slate-400"},WG={class:"py-3 px-4 text-center font-bold"},ZG={class:"py-3 px-4 text-center text-emerald-400 font-mono"},qG={class:"py-3 px-4 text-center text-rose-400 font-mono font-bold"},KG={class:"py-3 px-4 text-center font-mono font-semibold"},GG={class:"py-3 px-4 text-right"},YG=["onClick"];function JG(t,e,s,n,r,o){const c=fb("drill-down-modal");return w(),k("div",dK,[l("div",uK,[l("header",fK,[e[14]||(e[14]=l("div",null,[l("div",{class:"flex items-center gap-3"},[l("h1",{class:"text-2xl sm:text-3xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-emerald-400 via-teal-300 to-cyan-400"}," Counts Data Analysis "),l("span",{class:"px-2.5 py-0.5 text-xs font-semibold rounded-full bg-emerald-500/10 text-emerald-400 border border-emerald-500/20"}," Deep Insights ")]),l("p",{class:"text-slate-400 text-sm mt-1"}," Comprehensive evaluation of observer contribution profiles, regional biodiversity hotspots, and open-access data dynamics. ")],-1)),l("div",hK,[l("div",pK,[e[10]||(e[10]=l("span",{class:"inline-block w-2.5 h-2.5 rounded-full bg-emerald-400 animate-pulse"},null,-1)),l("div",null,[e[9]||(e[9]=l("div",{class:"text-slate-400 text-[10px] uppercase tracking-wider font-sans font-semibold"},"Generated At",-1)),l("div",null,v(o.metaFormattedDate),1)])]),l("button",{onClick:e[0]||(e[0]=(...u)=>o.refreshAnalysis&&o.refreshAnalysis(...u)),disabled:r.loading,class:"px-4 py-2 text-xs font-semibold rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white transition-all shadow-md hover:shadow-indigo-500/25 flex items-center gap-2 disabled:opacity-50"},[r.loading?(w(),k("svg",_K,[...e[11]||(e[11]=[l("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),l("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1)])])):(w(),k("svg",gK,[...e[12]||(e[12]=[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1)])])),e[13]||(e[13]=Me(" Re-Analyze Data ",-1))],8,mK)])]),l("div",vK,[l("div",bK,[e[16]||(e[16]=l("div",{class:"absolute -right-4 -bottom-4 w-24 h-24 bg-emerald-500/10 rounded-full blur-xl group-hover:bg-emerald-500/20 transition-all"},null,-1)),e[17]||(e[17]=l("div",{class:"text-xs uppercase tracking-wider text-slate-400 font-semibold"},"Total Counts (Surveys)",-1)),l("div",xK,v(o.formatNum(o.overview.total_counts)),1),l("div",yK,[l("span",null,[e[15]||(e[15]=Me("Open Access: ",-1)),l("strong",wK,v(o.formatNum(o.overview.open_counts)),1)]),l("span",kK,v(o.overview.open_counts_percentage)+"%",1)])]),l("div",EK,[e[19]||(e[19]=l("div",{class:"absolute -right-4 -bottom-4 w-24 h-24 bg-cyan-500/10 rounded-full blur-xl group-hover:bg-cyan-500/20 transition-all"},null,-1)),e[20]||(e[20]=l("div",{class:"text-xs uppercase tracking-wider text-slate-400 font-semibold"},"Species Observations",-1)),l("div",TK,v(o.formatNum(o.overview.total_observations)),1),l("div",SK,[l("span",null,[e[18]||(e[18]=Me("Open Access: ",-1)),l("strong",CK,v(o.formatNum(o.overview.open_observations)),1)]),l("span",AK,v(o.overview.open_observations_percentage)+"%",1)])]),l("div",PK,[e[22]||(e[22]=l("div",{class:"absolute -right-4 -bottom-4 w-24 h-24 bg-indigo-500/10 rounded-full blur-xl group-hover:bg-indigo-500/20 transition-all"},null,-1)),e[23]||(e[23]=l("div",{class:"text-xs uppercase tracking-wider text-slate-400 font-semibold"},"Butterflies Counted",-1)),l("div",IK,v(o.formatNum(o.overview.total_individuals)),1),l("div",LK,[l("span",null,[e[21]||(e[21]=Me("Open Access: ",-1)),l("strong",OK,v(o.formatNum(o.overview.open_individuals)),1)]),l("span",NK,v(o.overview.open_individuals_percentage)+"%",1)])]),l("div",$K,[e[26]||(e[26]=l("div",{class:"absolute -right-4 -bottom-4 w-24 h-24 bg-amber-500/10 rounded-full blur-xl group-hover:bg-amber-500/20 transition-all"}
1844,null,-1)),e[27]||(e[27]=l("div",{class:"text-xs uppercase tracking-wider text-slate-400 font-semibold"},"Species Richness & Users",-1)),l("div",DK,[Me(v(o.formatNum(o.overview.unique_taxa_all))+" ",1),e[24]||(e[24]=l("span",{class:"text-xs font-normal text-slate-400"},"Species",-1))]),l("div",MK,[l("span",null,[e[25]||(e[25]=Me("Contributors: ",-1)),l("strong",RK,v(o.formatNum(o.overview.unique_contributors))+" users",1)]),l("span",BK,"Open Taxa: "+v(o.overview.unique_taxa_open),1)])])]),l("div",FK,[l("button",{onClick:e[1]||(e[1]=u=>r.activeTab="contributors"),class:ce([r.activeTab==="contributors"?"bg-indigo-600 text-white shadow-lg":"bg-slate-800/80 text-slate-400 hover:text-white","px-5 py-2.5 rounded-xl font-semibold text-sm transition-all"])}," Observer Effort & Profiles ",2),l("button",{onClick:e[2]||(e[2]=u=>r.activeTab="regions"),class:ce([r.activeTab==="regions"?"bg-indigo-600 text-white shadow-lg":"bg-slate-800/80 text-slate-400 hover:text-white","px-5 py-2.5 rounded-xl font-semibold text-sm transition-all"])}," Regional Biodiversity Hotspots ",2),l("button",{onClick:e[3]||(e[3]=u=>r.activeTab="privacy"),class:ce([r.activeTab==="privacy"?"bg-indigo-600 text-white shadow-lg":"bg-slate-800/80 text-slate-400 hover:text-white","px-5 py-2.5 rounded-xl font-semibold text-sm transition-all"])}," Open Access vs. All Data ",2)]),r.activeTab==="contributors"?(w(),k("div",UK,[l("div",jK,[l("div",VK,[e[28]||(e[28]=l("div",null,[l("h2",{class:"text-xl font-bold text-white"},"Observer Effort & Contribution Profiles"),l("p",{class:"text-xs text-slate-400 mt-0.5"},"Filter by contribution threshold or click any observer for deep seasonality and accumulation curve drill-down.")],-1)),l("div",HK,[l("button",{onClick:e[4]||(e[4]=u=>r.userFilter="50"),class:ce([r.userFilter==="50"?"bg-indigo-600 text-white shadow font-semibold":"text-slate-400 hover:text-white","px-3 py-1.5 rounded-lg transition-all"])}," > 50 Counts ("+v(o.userMetrics.contributors_50_plus)+") ",3),l("button",{onClick:e[5]||(e[5]=u=>r.userFilter="25"),class:ce([r.userFilter==="25"?"bg-indigo-600 text-white shadow font-semibold":"text-slate-400 hover:text-white","px-3 py-1.5 rounded-lg transition-all"])}," > 25 Counts ("+v(o.userMetrics.contributors_25_plus)+") ",3),l("button",{onClick:e[6]||(e[6]=u=>r.userFilter="10"),class:ce([r.userFilter==="10"?"bg-indigo-600 text-white shadow font-semibold":"text-slate-400 hover:text-white","px-3 py-1.5 rounded-lg transition-all"])}," > 10 Counts ("+v(o.userMetrics.contributors_10_plus)+") ",3),l("button",{onClick:e[7]||(e[7]=u=>r.userFilter="all"),class:ce([r.userFilter==="all"?"bg-indigo-600 text-white shadow font-semibold":"text-slate-400 hover:text-white","px-3 py-1.5 rounded-lg transition-all"])}," All Active (>= 5) ",2)])]),l("div",zK,[l("table",WK,[e[29]||(e[29]=l("thead",{class:"bg-slate-900/80 uppercase text-[11px] font-semibold text-slate-400 tracking-wider"},[l("tr",null,[l("th",{class:"py-3.5 px-4"},"Observer"),l("th",{class:"py-3.5 px-4 text-center"},"Total Counts"),l("th",{class:"py-3.5 px-4 text-center"},"Open Access %"),l("th",{class:"py-3.5 px-4 text-center"},"Total Obs"),l("th",{class:"py-3.5 px-4 text-center"},"Avg Obs / Count"),l("th",{class:"py-3.5 px-4 text-center"},"Species Recorded"),l("th",{class:"py-3.5 px-4 text-center"},"Privacy Setting"),l("th",{class:"py-3.5 px-4 text-right"},"Insights")])],-1)),l("tbody",ZK,[(w(!0),k(pe,null,Ne(o.filteredUsers,u=>(w(),k("tr",{key:u.user_id,onClick:f=>o.openDrillDown("user",u.user_id),class:"hover:bg-slate-800/80 transition-all cursor-pointer group"},[l("td",KK,[Me(v(u.name)+" ",1),l("div",GK,"ID: #"+v(u.user_id),1)]),l("td",YK,[Me(v(u.total_counts)+" ",1),l("span",JK,"("+v(u.open_counts)+" open)",1)]),l("td",XK,[l("div",QK,[l("div",eG,[l("div",{class:"bg-emerald-400 h-full",style:Ut({width:u.open_access_percentage+"%"})},null,4)]),l("span",tG,v(u.open_access_percentage)+"%",1)])]),l("td",sG,v(o.formatNum(u.total_observations)),1),l("td",nG,v(u.avg_obs_per_count),1),l("td",iG,v(u.unique_species),1),l("td",rG,[l("span",{class:ce([{"bg-emerald-500/10 text-emerald-400 border-emerald-500/30":u.privacy_category==="Mostly Open","bg-amber-500/10 text-amber-400 border-amber-500/30":u.privacy_category==="Mixed Privacy","bg-rose-500/10 text-rose-400 border-rose-500/30":u.privacy_category==="Mostly Private"},"px-2.5 py-1 text-[11px] font-semibold rounded-full border inline-block"])},v(u.privacy_category),3)]),l("td",oG,[l("button",{onClick:hs(f=>o.openDrillDown("user",u.user_id),["stop"]),class:"px-3 py-1.5 text-xs font-semibold rounded-lg bg-indigo-600/20 text-indigo-300 hover:bg-indigo-600 hover:text-white border border-indigo-500/30 transition-all flex items-center gap-1 ml-auto"}," Drill Down ð ",8,aG)])],8,qK))),128))])])])])])):ae("",!0),r.activeTab==="regions"?(w(),k("div",lG,[l("div",cG,[e[34]||(e[34]=l("h2",{class:"text-xl font-bold text-white mb-1"},"Top Regional Hotspots (Districts)",-1)),e[35]||(e[35]=l("p",{class:"text-xs text-slate-400 mb-6"},"Click any district card to view seasonality curves, species accumulation, and contributor leaderboards.",-1)),l("div",dG,[(w(!0),k(
1844pe,null,Ne(o.districtProfiles,u=>(w(),k("div",{key:u.district_name,onClick:f=>o.openDrillDown("region",u.district_name),class:"bg-slate-900/90 border border-slate-700/70 rounded-xl p-5 space-y-3 hover:border-indigo-500/70 transition-all cursor-pointer group"},[l("div",fG,[l("div",null,[l("h3",hG,v(u.district_name),1),l("span",pG,v(u.state_name),1)]),l("button",{onClick:hs(f=>o.openDrillDown("region",u.district_name),["stop"]),class:"px-2.5 py-1 rounded-lg bg-indigo-500/10 hover:bg-indigo-600 hover:text-white border border-indigo-500/30 text-indigo-300 font-mono text-xs font-bold transition-all"},v(u.total_counts)+" surveys ð ",9,mG)]),l("div",_G,[l("div",null,[e[30]||(e[30]=l("div",{class:"text-slate-400"},"Total Observations",-1)),l("div",gG,v(o.formatNum(u.total_observations)),1)]),l("div",null,[e[31]||(e[31]=l("div",{class:"text-slate-400"},"Species Richness",-1)),l("div",vG,v(u.unique_species_all)+" taxa",1)])]),l("div",bG,[l("div",xG,[e[32]||(e[32]=l("span",null,"Open Access Ratio",-1)),l("span",yG,v(u.open_access_percentage)+"% ("+v(u.open_counts)+" open)",1)]),l("div",wG,[l("div",{class:"bg-emerald-400 h-full",style:Ut({width:u.open_access_percentage+"%"})},null,4)])]),u.top_species&&u.top_species.length?(w(),k("div",kG,[e[33]||(e[33]=l("div",{class:"text-[11px] font-semibold text-slate-400 uppercase tracking-wider mb-1.5"},"Top Observed Species",-1)),l("ul",EG,[(w(!0),k(pe,null,Ne(u.top_species,f=>(w(),k("li",{key:f.name,class:"flex items-center justify-between text-slate-300"},[l("span",TG,v(f.name),1),l("span",SG,v(f.individuals)+" indiv",1)]))),128))])])):ae("",!0)],8,uG))),128))])])])):ae("",!0),r.activeTab==="privacy"?(w(),k("div",CG,[l("div",AG,[e[46]||(e[46]=l("div",null,[l("h2",{class:"text-xl font-bold text-white"},"Open Access vs. All Data Privacy Delta"),l("p",{class:"text-xs text-slate-400 mt-0.5"},"Evaluating the difference in dataset completeness when filtering strictly by open access.")],-1)),l("div",PG,[l("div",IG,[e[38]||(e[38]=l("div",{class:"text-xs text-slate-400 font-semibold uppercase"},"Private/Closed Counts",-1)),l("div",LG,v(o.formatNum(o.privacyDelta.hidden_counts)),1),l("div",OG,[e[36]||(e[36]=Me(" Represents ",-1)),l("strong",null,v((100-o.overview.open_counts_percentage).toFixed(1))+"%",1),e[37]||(e[37]=Me(" of total counts withheld from public export. ",-1))])]),l("div",NG,[e[40]||(e[40]=l("div",{class:"text-xs text-slate-400 font-semibold uppercase"},"Private Observations",-1)),l("div",$G,v(o.formatNum(o.privacyDelta.hidden_observations)),1),l("div",DG,[l("strong",null,v(o.formatNum(o.privacyDelta.hidden_individuals)),1),e[39]||(e[39]=Me(" individual butterflies recorded in private surveys. ",-1))])]),l("div",MG,[e[42]||(e[42]=l("div",{class:"text-xs text-slate-400 font-semibold uppercase"},"Taxa Diversity Delta",-1)),l("div",RG,[Me(v(o.privacyDelta.hidden_species)+" ",1),e[41]||(e[41]=l("span",{class:"text-sm font-normal text-slate-400"},"species",-1))]),e[43]||(e[43]=l("div",{class:"text-xs text-slate-400 mt-2"}," Species recorded exclusively in private counts not present in public open access. ",-1))])]),l("div",BG,[e[45]||(e[45]=l("h3",{class:"text-base font-bold text-white"},"Districts with Highest Privacy Skew",-1)),l("div",FG,[l("table",UG,[e[44]||(e[44]=l("thead",{class:"bg-slate-900/80 uppercase text-[11px] font-semibold text-slate-400 tracking-wider"},[l("tr",null,[l("th",{class:"py-3 px-4"},"District"),l("th",{class:"py-3 px-4"},"State"),l("th",{class:"py-3 px-4 text-center"},"Total Counts"),l("th",{class:"py-3 px-4 text-center"},"Open Counts"),l("th",{class:"py-3 px-4 text-center"},"Private Counts"),l("th",{class:"py-3 px-4 text-center"},"Open Access %"),l("th",{class:"py-3 px-4 text-right"},"Drill Down")])],-1)),l("tbody",jG,[(w(!0),k(pe,null,Ne(o.privacyDelta.top_districts_with_hidden_data,u=>(w(),k("tr",{key:u.district,onClick:f=>o.openDrillDown("region",u.district),class:"hover:bg-slate-800/50 cursor-pointer"},[l("td",HG,v(u.district),1),l("td",zG,v(u.state),1),l("td",WG,v(u.total),1),l("td",ZG,v(u.open),1),l("td",qG,v(u.closed),1),l("td",KG,v(u.open_percentage)+"%",1),l("td",GG,[l("button",{onClick:hs(f=>o.openDrillDown("region",u.district),["stop"]),class:"px-2.5 py-1 text-xs font-semibold rounded-lg bg-indigo-600/20 text-indigo-300 hover:bg-indigo-600 hover:text-white border border-indigo-500/30 transition-all"}," Inspect ð ",8,YG)])],8,VG))),128))])])])])])])):ae("",!0)]),r.activeModal?(w(),nr(c,{key:0,t
1844ype:r.modalType,id:r.modalId,onClose:e[8]||(e[8]=u=>r.activeModal=!1)},null,8,["type","id"])):ae("",!0)])}const XG=Ao(cK,[["render",JG]]),pr=Tc({}),QG=yI();pr.use(QG);pr.component("admin-login",m$);pr.component("admin-dashboard",uB);pr.component("user-dashboard",$Z);pr.component("user-login",WZ);pr.component("analysis-dashboard",XG);pr.mount("#app");
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.