vendor: 16,567 bytes, line 1
1var dP=Object.defineProperty;var fP=(t,e,s)=>e in t?dP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var xt=(t,e,s)=>fP(t,typeof e!="symbol"?e+"":e,s);var En="top",ri="bottom",oi="right",Cn="left",gp="auto",tc=[En,ri,oi,Cn],Aa="start",Nl="end",tS="clippingParents",Gv="viewport",El="popper",sS="reference",J_=tc.reduce(function(t,e){return t.concat([e+"-"+Aa,e+"-"+Nl])},[]),Yv=[].concat(tc,[gp]).reduce(function(t,e){return t.concat([e,e+"-"+Aa,e+"-"+Nl])},[]),nS="beforeRead",iS="read",rS="afterRead",oS="beforeMain",aS="main",lS="afterMain",cS="beforeWrite",uS="write",dS="afterWrite",fS=[nS,iS,rS,oS,aS,lS,cS,uS,dS];function dr(t){return t?(t.nodeName||"").toLowerCase():null}function ai(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function $a(t){var e=ai(t).Element;return t instanceof e||t instanceof Element}function ki(t){var e=ai(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Zv(t){if(typeof ShadowRoot>"u")return!1;var e=ai(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function hP(t){var e=t.state;Object.keys(e.elements).forEach(function(s){var n=e.styles[s]||{},i=e.attributes[s]||{},r=e.elements[s];!ki(r)||!dr(r)||(Object.assign(r.style,n),Object.keys(i).forEach(function(o){var a=i[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function pP(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 i=e.elements[n],r=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:s[n]),a=o.reduce(function(c,f){return c[f]="",c},{});!ki(i)||!dr(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(c){i.removeAttribute(c)}))})}}const hS={name:"applyStyles",enabled:!0,phase:"write",fn:hP,effect:pP,requires:["computeStyles"]};function ur(t){return t.split("-")[0]}var va=Math.max,Ah=Math.min,Vl=Math.round;function Q_(){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 pS(){return!/^((?!chrome|android).)*safari/i.test(Q_())}function Fl(t,e,s){e===void 0&&(e=!1),s===void 0&&(s=!1);var n=t.getBoundingClientRect(),i=1,r=1;e&&ki(t)&&(i=t.offsetWidth>0&&Vl(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Vl(n.height)/t.offsetHeight||1);var o=$a(t)?ai(t):window,a=o.visualViewport,c=!pS()&&s,f=(n.left+(c&&a?a.offsetLeft:0))/i,h=(n.top+(c&&a?a.offsetTop:0))/r,p=n.width/i,m=n.height/r;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function Xv(t){var e=Fl(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 mS(t,e){var s=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(s&&Zv(s)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Wr(t){return ai(t).getComputedStyle(t)}function mP(t){return["table","td","th"].indexOf(dr(t))>=0}function Lo(t){return(($a(t)?t.ownerDocument:t.document)||window.document).documentElement}function _p(t){return dr(t)==="html"?t:t.assignedSlot||t.parentNode||(Zv(t)?t.host:null)||Lo(t)}function P0(t){return!ki(t)||Wr(t).position==="fixed"?null:t.offsetParent}function gP(t){var e=/firefox/i.test(Q_()),s=/Trident/i.test(Q_());if(s&&ki(t)){var n=Wr(t);if(n.position==="fixed")return null}var i=_p(t);for(Zv(i)&&(i=i.host);ki(i)&&["html","body"].indexOf(dr(i))<0;){var r=Wr(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function ed(t){for(var e=ai(t),s=P0(t);s&&mP(s)&&Wr(s).position==="static";)s=P0(s);return s&&(dr(s)==="html"||dr(s)==="body"&&Wr(s).position==="static")?e:s||gP(t)||e}function Jv(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function _u(t,e,s){return va(t,Ah(e,s))}function _P(t,e,s){var n=_u(t,e,s);return n>s?s:n}function gS(){return{top:0,right:0,bottom:0,left:0}}function _S(t){return Object.assign({},gS(),t)}function vS(t,e){return e.reduce(function(s,n){return s[n]=t,s},{})}var vP=function(e,s){return e=typeof e=="function"?e(Object.assign({},s.rects,{placement:s.placement})):e,_S(typeof e!="number"?e:vS(e,tc))};function bP(t){var e,s=t.state,n=t.name,i=t.options,r=s.elements.arrow,o=s.modifiersData.popperOffsets,a=ur(s.placement),c=Jv(a),f=[Cn,oi].indexOf(a)>=0,h=f?"height":"width";if(!(!r||!o)){var p=vP(i.padding,s),m=Xv(r),_=c==="y"?En:Cn,v=c==="y"?ri:oi,b=s.rects.reference[h]+s.rects.reference[c]-o[c]-s.rects.popper[h],S=o[c]-s.rects.reference[c],C=ed(r),O=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,A=b/2-S/2,$=p[_],T=O-m[h]-p[v],D=O/2-m[h]/2+A,B=_u($,D,T),N=c;s.modifiersData[n]=(e={},e[N]=B,e.centerOffset=B-D,e)}}function yP(t){var e=t.state,s=t.options,n=s.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||mS(e.elements.popper,i)&&(e.elements.arrow=i))}const bS={name:"arrow",enabled:!0,phase:"main",fn:bP,effect:yP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bl(t){return t.split("-")[1]}var wP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xP(t,e){var s=t.x,n=t.y,i=e.devicePixelRatio||1;return{x:Vl(s*i)/i||0,y:Vl(n*i)/i||0}}function D0(t){var e,s=t.popper,n=t.popperRect,i=t.placement,r=t.variation,o=t.offsets,a=t.position,c=t.gpuAcceleration,f=t.adaptive,h=t.roundOffsets,p=t.isFixed,m=o.x,_=m===void 0?0:m,v=o.y,b=v===void 0?0:v,S=typeof h=="function"?h({x:_,y:b}):{x:_,y:b};_=S.x,b=S.y;var C=o.hasOwnProperty("x"),O=o.hasOwnProperty("y"),A=Cn,$=En,T=window;if(f){var D=ed(s),B="clientHeight",N="clientWidth";if(D===ai(s)&&(D=Lo(s),Wr(D).position!=="static"&&a==="absolute"&&(B="scrollHeight",N="scrollWidth")),D=D,i===En||(i===Cn||i===oi)&&r===Nl){$=ri;var F=p&&D===T&&T.visualViewport?T.visualViewport.height:D[B];b-=F-n.height,b*=c?1:-1}if(i===Cn||(i===En||i===ri)&&r===Nl){A=oi;var L=p&&D===T&&T.visualViewport?T.visualViewport.width:D[N];_-=L-n.width,_*=c?1:-1}}var Y=Object.assign({position:a},f&&wP),Z=h===!0?xP({x:_,y:b},ai(s)):{x:_,y:b};if(_=Z.x,b=Z.y,c){var le;return Object.assign({},Y,(le={},le[$]=O?"0":"",le[A]=C?"0":"",le.transform=(T.devicePixelRatio||1)<=1?"translate("+_+"px, "+b+"px)":"translate3d("+_+"px, "+b+"px, 0)",le))}return Object.assign({},Y,(e={},e[$]=O?b+"px":"",e[A]=C?_+"px":"",e.transform="",e))}function SP(t){var e=t.state,s=t.options,n=s.gpuAcceleration,i=n===void 0?!0:n,r=s.adaptive,o=r===void 0?!0:r,a=s.roundOffsets,c=a===void 0?!0:a,f={placement:ur(e.placement),variation:Bl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,D0(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,D0(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const yS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SP,data:{}};var Tf={passive:!0};function EP(t){var e=t.state,s=t.instance,n=t.options,i=n.scroll,r=i===void 0?!0:i,o=n.resize,a=o===void 0?!0:o,c=ai(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&f.forEach(function(h){h.addEventListener("scroll",s.update,Tf)}),a&&c.addEventListener("resize",s.update,Tf),function(){r&&f.forEach(function(h){h.removeEventListener("scroll",s.update,Tf)}),a&&c.removeEventListener("resize",s.update,Tf)}}const wS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:EP,data:{}};var CP={left:"right",right:"left",bottom:"top",top:"bottom"};function uh(t){return t.replace(/left|right|bottom|top/g,function(e){return CP[e]})}var kP={start:"end",end:"start"};function R0(t){return t.replace(/start|end/g,function(e){return kP[e]})}function Qv(t){var e=ai(t),s=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:s,scrollTop:n}}function eb(t){return Fl(Lo(t)).left+Qv(t).scrollLeft}function AP(t,e){var s=ai(t),n=Lo(t),i=s.visualViewport,r=n.clientWidth,o=n.clientHeight,a=0,c=0;if(i){r=i.width,o=i.height;var f=pS();(f||!f&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:o,x:a+eb(t),y:c}}function $P(t){var e,s=Lo(t),n=Qv(t),i=(e=t.ownerDocument)==null?void 0:e.body,r=va(s.scrollWidth,s.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=va(s.scrollHeight,s.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+eb(t),c=-n.scrollTop;return Wr(i||s).direction==="rtl"&&(a+=va(s.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:a,y:c}}function tb(t){var e=Wr(t),s=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(s+i+n)}function xS(t){return["html","body","#document"].indexOf(dr(t))>=0?t.ownerDocument.body:ki(t)&&tb(t)?t:xS(_p(t))}function vu(t,e){var s;e===void 0&&(e=[]);var n=xS(t),i=n===((s=t.ownerDocument)==null?void 0:s.body),r=ai(n),o=i?[r].concat(r.visualViewport||[],tb(n)?n:[]):n,a=e.concat(o);return i?a:a.concat(vu(_p(o)))}function ev(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function TP(t,e){var s=Fl(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 I0(t,e,s){return e===Gv?ev(AP(t,s)):$a(e)?TP(e,s):ev($P(Lo(t)))}function OP(t){var e=vu(_p(t)),s=["absolute","fixed"].indexOf(Wr(t).position)>=0,n=s&&ki(t)?ed(t):t;return $a(n)?e.filter(function(i){return $a(i)&&mS(i,n)&&dr(i)!=="body"}):[]}function MP(t,e,s,n){var i=e==="clippingParents"?OP(t):[].concat(e),r=[].concat(i,[s]),o=r[0],a=r.reduce(function(c,f){var h=I0(t,f,n);return c.top=va(h.top,c.top),c.right=Ah(h.right,c.right),c.bottom=Ah(h.bottom,c.bottom),c.left=va(h.left,c.left),c},I0(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function SS(t){var e=t.reference,s=t.element,n=t.placement,i=n?ur(n):null,r=n?Bl(n):null,o=e.x+e.width/2-s.width/2,a=e.y+e.height/2-s.height/2,c;switch(i){case En:c={x:o,y:e.y-s.height};break;case ri:c={x:o,y:e.y+e.height};break;case oi:c={x:e.x+e.width,y:a};break;case Cn:c={x:e.x-s.width,y:a};break;default:c={x:e.x,y:e.y}}var f=i?Jv(i):null;if(f!=null){var h=f==="y"?"height":"width";switch(r){case Aa:c[f]=c[f]-(e[h]/2-s[h]/2);break;case Nl:c[f]=c[f]+(e[h]/2-s[h]/2);break}}return c}function Ul(t,e){e===void 0&&(e={});var s=e,n=s.placement,i=n===void 0?t.placement:n,r=s.strategy,o=r===void 0?t.strategy:r,a=s.boundary,c=a===void 0?tS:a,f=s.rootBoundary,h=f===void 0?Gv:f,p=s.elementContext,m=p===void 0?El:p,_=s.altBoundary,v=_===void 0?!1:_,b=s.padding,S=b===void 0?0:b,C=_S(typeof S!="number"?S:vS(S,tc)),O=m===El?sS:El,A=t.rects.popper,$=t.elements[v?O:m],T=MP($a($)?$:$.contextElement||Lo(t.elements.popper),c,h,o),D=Fl(t.elements.reference),B=SS({reference:D,element:A,placement:i}),N=ev(Object.assign({},A,B)),F=m===El?N:D,L={top:T.top-F.top+C.top,bottom:F.bottom-T.bottom+C.bottom,left:T.left-F.left+C.left,right:F.right-T.right+C.right},Y=t.modifiersData.offset;if(m===El&&Y){var Z=Y[i];Object.keys(L).forEach(function(le){var Ce=[oi,ri].indexOf(le)>=0?1:-1,Ee=[En,ri].indexOf(le)>=0?"y":"x";L[le]+=Z[Ee]*Ce})}return L}function PP(t,e){e===void 0&&(e={});var s=e,n=s.placement,i=s.boundary,r=s.rootBoundary,o=s.padding,a=s.flipVariations,c=s.allowedAutoPlacements,f=c===void 0?Yv:c,h=Bl(n),p=h?a?J_:J_.filter(function(v){return Bl(v)===h}):tc,m=p.filter(function(v){return f.indexOf(v)>=0});m.length===0&&(m=p);var _=m.reduce(function(v,b){return v[b]=Ul(t,{placement:b,boundary:i,rootBoundary:r,padding:o})[ur(b)],v},{});return Object.keys(_).sort(function(v,b){return _[v]-_[b]})}function DP(t){if(ur(t)===gp)return[];var e=uh(t);return[R0(t),e,R0(e)]}function RP(t){var e=t.state,s=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=s.mainAxis,r=i===void 0?!0:i,o=s.altAxis,a=o===void 0?!0:o,c=s.fallbackPlacements,f=s.padding,h=s.boundary,p=s.rootBoundary,m=s.altBoundary,_=s.flipVariations,v=_===void 0?!0:_,b=s.allowedAutoPlacements,S=e.options.placement,C=ur(S),O=C===S,A=c||(O||!v?[uh(S)]:DP(S)),$=[S].concat(A).reduce(function(ue,$t){return ue.concat(ur($t)===gp?PP(e,{placement:$t,boundary:h,rootBoundary:p,padding:f,flipVariations:v,allowedAutoPlacements:b}):$t)},[]),T=e.rects.reference,D=e.rects.popper,B=new Map,N=!0,F=$[0],L=0;L<$.length;L++){var Y=$[L],Z=ur(Y),le=Bl(Y)===Aa,Ce=[En,ri].indexOf(Z)>=0,Ee=Ce?"width":"height",he=Ul(e,{placement:Y,boundary:h,rootBoundary:p,altBoundary:m,padding:f}),ye=Ce?le?oi:Cn:le?ri:En;T[Ee]>D[Ee]&&(ye=uh(ye));var xe=uh(ye),_e=[];if(r&&_e.push(he[Z]<=0),a&&_e.push(he[ye]<=0,he[xe]<=0),_e.every(function(ue){return ue})){F=Y,N=!1;break}B.set(Y,_e)}if(N)for(var ze=v?3:1,je=function($t){var Bt=$.find(function(zs){var zt=B.get(zs);if(zt)return zt.slice(0,$t).every(function(Hs){return Hs})});if(Bt)return F=Bt,"break"},it=ze;it>0;it--){var es=je(it);if(es==="break")break}e.placement!==F&&(e.modifiersData[n]._skip=!0,e.placement=F,e.reset=!0)}}const ES={name:"flip",enabled:!0,phase:"main",fn:RP,requiresIfExists:["offset"],data:{_skip:!1}};function L0(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 N0(t){return[En,oi,ri,Cn].some(function(e){return t[e]>=0})}function IP(t){var e=t.state,s=t.name,n=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,o=Ul(e,{elementContext:"reference"}),a=Ul(e,{altBoundary:!0}),c=L0(o,n),f=L0(a,i,r),h=N0(c),p=N0(f);e.modifiersData[s]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const CS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:IP};function LP(t,e,s){var n=ur(t),i=[Cn,En].indexOf(n)>=0?-1:1,r=typeof s=="function"?s(Object.assign({},e,{placement:t})):s,o=r[0],a=r[1];return o=o||0,a=(a||0)*i,[Cn,oi].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function NP(t){var e=t.state,s=t.options,n=t.name,i=s.offset,r=i===void 0?[0,0]:i,o=Yv.reduce(function(h,p){return h[p]=LP(p,e.rects,r),h},{}),a=o[e.placement],c=a.x,f=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=o}const kS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NP};function VP(t){var e=t.state,s=t.name;e.modifiersData[s]=SS({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const AS={name:"popperOffsets",enabled:!0,phase:"read",fn:VP,data:{}};function FP(t){return t==="x"?"y":"x"}function BP(t){var e=t.state,s=t.options,n=t.name,i=s.mainAxis,r=i===void 0?!0:i,o=s.altAxis,a=o===void 0?!1:o,c=s.boundary,f=s.rootBoundary,h=s.altBoundary,p=s.padding,m=s.tether,_=m===void 0?!0:m,v=s.tetherOffset,b=v===void 0?0:v,S=Ul(e,{boundary:c,rootBoundary:f,padding:p,altBoundary:h}),C=ur(e.placement),O=Bl(e.placement),A=!O,$=Jv(C),T=FP($),D=e.modifiersData.popperOffsets,B=e.rects.reference,N=e.rects.popper,F=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,L=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),Y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if(D){if(r){var le,Ce=$==="y"?En:Cn,Ee=$==="y"?ri:oi,he=$==="y"?"height":"width",ye=D[$],xe=ye+S[Ce],_e=ye-S[Ee],ze=_?-N[he]/2:0,je=O===Aa?B[he]:N[he],it=O===Aa?-N[he]:-B[he],es=e.elements.arrow,ue=_&&es?Xv(es):{width:0,height:0},$t=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:gS(),Bt=$t[Ce],zs=$t[Ee],zt=_u(0,B[he],ue[he]),Hs=A?B[he]/2-ze-zt-Bt-L.mainAxis:je-zt-Bt-L.mainAxis,gs=A?-B[he]/2+ze+zt+zs+L.mainAxis:it+zt+zs+L.mainAxis,nt=e.elements.arrow&&ed(e.elements.arrow),ps=nt?$==="y"?nt.clientTop||0:nt.clientLeft||0:0,K=(le=Y
vendor: 6,902 bytes, lines 1-5
1==null?void 0:Y[$])!=null?le:0,X=ye+Hs-K-ps,fe=ye+gs-K,$e=_u(_?Ah(xe,X):xe,ye,_?va(_e,fe):_e);D[$]=$e,Z[$]=$e-ye}if(a){var me,Te=$==="x"?En:Cn,Be=$==="x"?ri:oi,Re=D[T],Me=T==="y"?"height":"width",ke=Re+S[Te],et=Re-S[Be],Ue=[En,Cn].indexOf(C)!==-1,Ye=(me=Y==null?void 0:Y[T])!=null?me:0,ot=Ue?ke:Re-B[Me]-N[Me]-Ye+L.altAxis,ht=Ue?Re+B[Me]+N[Me]-Ye-L.altAxis:et,vt=_&&Ue?_P(ot,Re,ht):_u(_?ot:ke,Re,_?ht:et);D[T]=vt,Z[T]=vt-Re}e.modifiersData[n]=Z}}const $S={name:"preventOverflow",enabled:!0,phase:"main",fn:BP,requiresIfExists:["offset"]};function UP(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function qP(t){return t===ai(t)||!ki(t)?Qv(t):UP(t)}function HP(t){var e=t.getBoundingClientRect(),s=Vl(e.width)/t.offsetWidth||1,n=Vl(e.height)/t.offsetHeight||1;return s!==1||n!==1}function jP(t,e,s){s===void 0&&(s=!1);var n=ki(e),i=ki(e)&&HP(e),r=Lo(e),o=Fl(t,i,s),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!s)&&((dr(e)!=="body"||tb(r))&&(a=qP(e)),ki(e)?(c=Fl(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=eb(r))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function WP(t){var e=new Map,s=new Set,n=[];t.forEach(function(r){e.set(r.name,r)});function i(r){s.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!s.has(a)){var c=e.get(a);c&&i(c)}}),n.push(r)}return t.forEach(function(r){s.has(r.name)||i(r)}),n}function zP(t){var e=WP(t);return fS.reduce(function(s,n){return s.concat(e.filter(function(i){return i.phase===n}))},[])}function KP(t){var e;return function(){return e||(e=new Promise(function(s){Promise.resolve().then(function(){e=void 0,s(t())})})),e}}function GP(t){var e=t.reduce(function(s,n){var i=s[n.name];return s[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,s},{});return Object.keys(e).map(function(s){return e[s]})}var V0={placement:"bottom",modifiers:[],strategy:"absolute"};function F0(){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 TS(t){t===void 0&&(t={});var e=t,s=e.defaultModifiers,n=s===void 0?[]:s,i=e.defaultOptions,r=i===void 0?V0:i;return function(a,c,f){f===void 0&&(f=r);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},V0,r),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},p=[],m=!1,_={state:h,setOptions:function(C){var O=typeof C=="function"?C(h.options):C;b(),h.options=Object.assign({},r,h.options,O),h.scrollParents={reference:$a(a)?vu(a):a.contextElement?vu(a.contextElement):[],popper:vu(c)};var A=zP(GP([].concat(n,h.options.modifiers)));return h.orderedModifiers=A.filter(function($){return $.enabled}),v(),_.update()},forceUpdate:function(){if(!m){var C=h.elements,O=C.reference,A=C.popper;if(F0(O,A)){h.rects={reference:jP(O,ed(A),h.options.strategy==="fixed"),popper:Xv(A)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(L){return h.modifiersData[L.name]=Object.assign({},L.data)});for(var $=0;$<h.orderedModifiers.length;$++){if(h.reset===!0){h.reset=!1,$=-1;continue}var T=h.orderedModifiers[$],D=T.fn,B=T.options,N=B===void 0?{}:B,F=T.name;typeof D=="function"&&(h=D({state:h,options:N,name:F,instance:_})||h)}}}},update:KP(function(){return new Promise(function(S){_.forceUpdate(),S(h)})}),destroy:function(){b(),m=!0}};if(!F0(a,c))return _;_.setOptions(f).then(function(S){!m&&f.onFirstUpdate&&f.onFirstUpdate(S)});function v(){h.orderedModifiers.forEach(function(S){var C=S.name,O=S.options,A=O===void 0?{}:O,$=S.effect;if(typeof $=="function"){var T=$({state:h,name:C,instance:_,options:A}),D=function(){};p.push(T||D)}})}function b(){p.forEach(function(S){return S()}),p=[]}return _}}var YP=[wS,AS,yS,hS,kS,ES,$S,bS,CS],sb=TS({defaultModifiers:YP});const OS=Object.freeze(Object.defineProperty({__proto__:null,afterMain:lS,afterRead:rS,afterWrite:dS,applyStyles:hS,arrow:bS,auto:gp,basePlacements:tc,beforeMain:oS,beforeRead:nS,beforeWrite:cS,bottom:ri,clippingParents:tS,computeStyles:yS,createPopper:sb,detectOverflow:Ul,end:Nl,eventListeners:wS,flip:ES,hide:CS,left:Cn,main:aS,modifierPhases:fS,offset:kS,placements:Yv,popper:El,popperGenerator:TS,popperOffsets:AS,preventOverflow:$S,read:iS,reference:sS,right:oi,start:Aa,top:En,variationPlacements:J_,viewport:Gv,write:uS},Symbol.toStringTag,{value:"Module"}));/*! 2 * Bootstrap v5.3.3 (https://getbootstrap.com/) 3 * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 5 */const oo=new Map,s_={set(t,e,s){oo.has(t)||oo.set(t,new Map);const n=oo.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 oo.has(t)&&oo.get(t).get(e)||null},remove(t,e){if(!oo.has(t))return;const s=oo.get(t);s.delete(e),s.size===0&&oo.delete(t)}},ZP=1e6,XP=1e3,tv="transitionend",MS=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,s)=>`#${CSS.escape(s)}`)),t),JP=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),QP=t=>{do t+=Math.floor(Math.random()*ZP);while(document.getElementById(t));return t},eD=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:s}=window.getComputedStyle(t);const n=Number.parseFloat(e),i=Number.parseFloat(s);return!n&&!i?0:(e=e.split(",")[0],s=s.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(s))*XP)},PS=t=>{t.dispatchEvent(new Event(tv))},Br=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),To=t=>Br(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(MS(t)):null,sc=t=>{if(!Br(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},Oo=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",DS=t=>{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?DS(t.parentNode):null},$h=()=>{},td=t=>{t.offsetHeight},RS=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,n_=[],tD=t=>{document.readyState==="loading"?(n_.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of n_)e()}),n_.push(t)):t()},Oi=()=>document.documentElement.dir==="rtl",Di=t=>{tD(()=>{const e=RS();if(e){const s=t.NAME,n=e.fn[s];
5e.fn[s]=t.jQueryInterface,e.fn[s].Constructor=t,e.fn[s].noConflict=()=>(e.fn[s]=n,t.jQueryInterface)}})},qn=(t,e=[],s=t)=>typeof t=="function"?t(...e):s,IS=(t,e,s=!0)=>{if(!s){qn(t);return}const i=eD(e)+5;let r=!1;const o=({target:a})=>{a===e&&(r=!0,e.removeEventListener(tv,o),qn(t))};e.addEventListener(tv,o),setTimeout(()=>{r||PS(e)},i)},nb=(t,e,s,n)=>{const i=t.length;let r=t.indexOf(e);return r===-1?!s&&n?t[i-1]:t[0]:(r+=s?1:-1,n&&(r=(r+i)%i),t[Math.max(0,Math.min(r,i-1))])},sD=/[^.]*(?=\..*)\.|.*/,nD=/\..*/,iD=/::\d+$/,i_={};let B0=1;const LS={mouseenter:"mouseover",mouseleave:"mouseout"},rD=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 NS(t,e){return e&&`${e}::${B0++}`||t.uidEvent||B0++}function VS(t){const e=NS(t);return t.uidEvent=e,i_[e]=i_[e]||{},i_[e]}function oD(t,e){return function s(n){return ib(n,{delegateTarget:t}),s.oneOff&&Oe.off(t,n.type,e),e.apply(t,[n])}}function aD(t,e,s){return function n(i){const r=t.querySelectorAll(e);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return ib(i,{delegateTarget:o}),n.oneOff&&Oe.off(t,i.type,e,s),s.apply(o,[i])}}function FS(t,e,s=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===s)}function BS(t,e,s){const n=typeof e=="string",i=n?s:e||s;let r=US(t);return rD.has(r)||(r=t),[n,i,r]}function U0(t,e,s,n,i){if(typeof e!="string"||!t)return;let[r,o,a]=BS(e,s,n);e in LS&&(o=(v=>function(b){if(!b.relatedTarget||b.relatedTarget!==b.delegateTarget&&!b.delegateTarget.contains(b.relatedTarget))return v.call(this,b)})(o));const c=VS(t),f=c[a]||(c[a]={}),h=FS(f,o,r?s:null);if(h){h.oneOff=h.oneOff&&i;return}const p=NS(o,e.replace(sD,"")),m=r?aD(t,s,o):oD(t,o);m.delegationSelector=r?s:null,m.callable=o,m.oneOff=i,m.uidEvent=p,f[p]=m,t.addEventListener(a,m,r)}function sv(t,e,s,n,i){const r=FS(e[s],n,i);r&&(t.removeEventListener(s,r,!!i),delete e[s][r.uidEvent])}function lD(t,e,s,n){const i=e[s]||{};for(const[r,o]of Object.entries(i))r.includes(n)&&sv(t,e,s,o.callable,o.delegationSelector)}function US(t){return t=t.replace(nD,""),LS[t]||t}const Oe={on(t,e,s,n){U0(t,e,s,n,!1)},one(t,e,s,n){U0(t,e,s,n,!0)},off(t,e,s,n){if(typeof e!="string"||!t)return;const[i,r,o]=BS(e,s,n),a=o!==e,c=VS(t),f=c[o]||{},h=e.startsWith(".");if(typeof r<"u"){if(!Object.keys(f).length)return;sv(t,c,o,r,i?s:null);return}if(h)for(const p of Object.keys(c))lD(t,c,p,e.slice(1));for(const[p,m]of Object.entries(f)){const _=p.replace(iD,"");(!a||e.includes(_))&&sv(t,c,o,m.callable,m.delegationSelector)}},trigger(t,e,s){if(typeof e!="string"||!t)return null;const n=RS(),i=US(e),r=e!==i;let o=null,a=!0,c=!0,f=!1;r&&n&&(o=n.Event(e,s),n(t).trigger(o),a=!o.isPropagationStopped(),c=!o.isImmediatePropagationStopped(),f=o.isDefaultPrevented());const h=ib(new Event(e,{bubbles:a,cancelable:!0}),s);return f&&h.preventDefault(),c&&t.dispatchEvent(h),h.defaultPrevented&&o&&o.preventDefault(),h}};function ib(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 q0(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 r_(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Ur={setDataAttribute(t,e,s){t.setAttribute(`data-bs-${r_(e)}`,s)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${r_(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 i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=q0(t.dataset[n])}return e},getDataAttribute(t,e){return q0(t.getAttribute(`data-bs-${r_(e)}`))}};let sd=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,s){const n=Br(s)?Ur.getDataAttribute(s,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Br(s)?Ur.getDataAttributes(s):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,s=this.constructor.DefaultType){for(const[n,i]of Object.entries(s)){const r=e[n],o=Br(r)?"element":JP(r);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${i}".`)}}};const cD="5.3.3";class Ki extends sd{constructor(e,s){super(),e=To(e),e&&(this._element=e,this._config=this._getConfig(s),s_.set(this._element,this.constructor.DATA_KEY,this))}dispose(){s_.remove(this._element,this.constructor.DATA_KEY),Oe.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,s,n=!0){IS(e,s,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return s_.get(To(e),this.DATA_KEY)}static getOrCreateInstance(e,s={}){return this.getInstance(e)||new this(e,typeof s=="object"?s:null)}static get VERSION(){return cD}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 o_=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=>MS(s)).join(","):null},rt={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=>!Oo(s)&&sc(s))},getSelectorFromElement(t){const e=o_(t);return e&&rt.findOne(e)?e:null},getElementFromSelector(t){const e=o_(t);return e?rt.findOne(e):null},getMultipleElementsFromSelector(t){const e=o_(t);return e?rt.find(e):[]}},vp=(t,e="hide")=>{const s=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Oe.on(document,s,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Oo(this))return;const r=rt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(r)[e]()})},uD="alert",dD="bs.alert",qS=`.${dD}`,fD=`close${qS}`,hD=`closed${qS}`,pD="fade",mD="show";class bp extends Ki{static get NAME(){return uD}close(){if(Oe.trigger(this._element,fD).defaultPrevented)return;this._element.classList.remove(mD);const s=this._element.classList.contains(pD);this._queueCallback(()=>this._destroyElement(),this._element,s)}_destroyElement(){this._element.remove(),Oe.trigger(this._element,hD),this.dispose()}static jQueryInterface(e){return this.each(function(){const s=bp.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)}})}}vp(bp,"close");Di(bp);const gD="button",_D="bs.button",vD=`.${_D}`,bD=".data-api",yD="active",H0='[data-bs-toggle="button"]',wD=`click${vD}${bD}`;class yp extends Ki{static get NAME(){return gD}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(yD))}static jQueryInterface(e){return this.each(function(){const s=yp.getOrCreateInstance(this);e==="toggle"&&s[e]()})}}Oe.on(document,wD,H0,t=>{t.preventDefault();const e=t.target.closest(H0);yp.getOrCreateInstance(e).toggle()});Di(yp);const xD="swipe",nc=".bs.swipe",SD=`touchstart${nc}`,ED=`touchmove${nc}`,CD=`touchend${nc}`,kD=`pointerdown${nc}`,AD=`pointerup${nc}`,$D="touch",TD="pen",OD="pointer-event",MD=40,PD={endCallback:null,leftCallback:null,rightCallback:null},DD={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Th extends sd{constructor(e,s){super(),this._element=e,!(!e||!Th.isSupported())&&(this._config=this._getConfig(s),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return PD}static get DefaultType(){return DD}static get NAME(){return xD}dispose(){Oe.off(this._element,nc)}_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(),qn(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<=MD)return;const s=e/this._deltaX;this._deltaX=0,s&&qn(s>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Oe.on(this._element,kD,e=>this._start(e)),Oe.on(this._element,AD,e=>this._end(e)),this._element.classList.add(OD)):(Oe.on(this._element,SD,e=>this._start(e)),Oe.on(this._element,ED,e=>this._move(e)),Oe.on(this._element,CD,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===TD||e.pointerType===$D)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const RD="carousel",ID="bs.carousel",No=`.${ID}`,HS=".data-api",LD="ArrowLeft",ND="ArrowRight",VD=500,zc="next",hl="prev",Cl="left",dh="right",FD=`slide${No}`,a_=`slid${No}`,BD=`keydown${No}`,UD=`mouseenter${No}`,qD=`mouseleave${No}`,HD=`dragstart${No}`,jD=`load${No}${HS}`,WD=`click${No}${HS}`,jS="carousel",Of="active",zD="slide",KD="carousel-item-end",GD="carousel-item-start",YD="carousel-item-next",ZD="carousel-item-prev",WS=".active",zS=".carousel-item",XD=WS+zS,JD=".carousel-item img",QD=".carousel-indicators",e6="[data-bs-slide], [data-bs-slide-to]",t6='[data-bs-ride="carousel"]',s6={[LD]:dh,[ND]:Cl},n6={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},i6={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class nd extends Ki{constructor(e,s){super(e,s),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=rt.findOne(QD,this._element),this._addEventListeners(),this._config.ride===jS&&this.cycle()}static get Default(){return n6}static get DefaultType(){return i6}static get NAME(){return RD}next(){this._slide(zc)}nextWhenVisible(){!document.hidden&&sc(this._element)&&this.next()}prev(){this._slide(hl)}pause(){this._isSliding&&PS(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){Oe.one(this._element,a_,()=>this.cycle());return}this.cycle()}}to(e){const s=this._getItems();if(e>s.length-1||e<0)return;if(this._isSliding){Oe.one(this._element,a_,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?zc:hl;this._slide(i,s[e])}
vendor: 20,901 bytes, line 5
5dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Oe.on(this._element,BD,e=>this._keydown(e)),this._config.pause==="hover"&&(Oe.on(this._element,UD,()=>this.pause()),Oe.on(this._element,qD,()=>this._maybeEnableCycle())),this._config.touch&&Th.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of rt.find(JD,this._element))Oe.on(n,HD,i=>i.preventDefault());const s={leftCallback:()=>this._slide(this._directionToOrder(Cl)),rightCallback:()=>this._slide(this._directionToOrder(dh)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),VD+this._config.interval))}};this._swipeHelper=new Th(this._element,s)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const s=s6[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=rt.findOne(WS,this._indicatorsElement);s.classList.remove(Of),s.removeAttribute("aria-current");const n=rt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(Of),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(),i=e===zc,r=s||nb(this._getItems(),n,i,this._config.wrap);if(r===n)return;const o=this._getItemIndex(r),a=_=>Oe.trigger(this._element,_,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(a(FD).defaultPrevented||!n||!r)return;const f=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const h=i?GD:KD,p=i?YD:ZD;r.classList.add(p),td(r),n.classList.add(h),r.classList.add(h);const m=()=>{r.classList.remove(h,p),r.classList.add(Of),n.classList.remove(Of,p,h),this._isSliding=!1,a(a_)};this._queueCallback(m,n,this._isAnimated()),f&&this.cycle()}_isAnimated(){return this._element.classList.contains(zD)}_getActive(){return rt.findOne(XD,this._element)}_getItems(){return rt.find(zS,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Oi()?e===Cl?hl:zc:e===Cl?zc:hl}_orderToDirection(e){return Oi()?e===hl?Cl:dh:e===hl?dh:Cl}static jQueryInterface(e){return this.each(function(){const s=nd.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]()}})}}Oe.on(document,WD,e6,function(t){const e=rt.getElementFromSelector(this);if(!e||!e.classList.contains(jS))return;t.preventDefault();const s=nd.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){s.to(n),s._maybeEnableCycle();return}if(Ur.getDataAttribute(this,"slide")==="next"){s.next(),s._maybeEnableCycle();return}s.prev(),s._maybeEnableCycle()});Oe.on(window,jD,()=>{const t=rt.find(t6);for(const e of t)nd.getOrCreateInstance(e)});Di(nd);const r6="collapse",o6="bs.collapse",id=`.${o6}`,a6=".data-api",l6=`show${id}`,c6=`shown${id}`,u6=`hide${id}`,d6=`hidden${id}`,f6=`click${id}${a6}`,l_="show",Tl="collapse",Mf="collapsing",h6="collapsed",p6=`:scope .${Tl} .${Tl}`,m6="collapse-horizontal",g6="width",_6="height",v6=".collapse.show, .collapse.collapsing",nv='[data-bs-toggle="collapse"]',b6={parent:null,toggle:!0},y6={parent:"(null|element)",toggle:"boolean"};class Du extends Ki{constructor(e,s){super(e,s),this._isTransitioning=!1,this._triggerArray=[];const n=rt.find(nv);for(const i of n){const r=rt.getSelectorFromElement(i),o=rt.find(r).filter(a=>a===this._element);r!==null&&o.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return b6}static get DefaultType(){return y6}static get NAME(){return r6}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(v6).filter(a=>a!==this._element).map(a=>Du.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||Oe.trigger(this._element,l6).defaultPrevented)return;for(const a of e)a.hide();const n=this._getDimension();this._element.classList.remove(Tl),this._element.classList.add(Mf),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(Mf),this._element.classList.add(Tl,l_),this._element.style[n]="",Oe.trigger(this._element,c6)},o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||Oe.trigger(this._element,u6).defaultPrevented)return;const s=this._getDimension();this._element.style[s]=`${this._element.getBoundingClientRect()[s]}px`,td(this._element),this._element.classList.add(Mf),this._element.classList.remove(Tl,l_);for(const i of this._triggerArray){const r=rt.getElementFromSelector(i);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(Mf),this._element.classList.add(Tl),Oe.trigger(this._element,d6)};this._element.style[s]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(l_)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=To(e.parent),e}_getDimension(){return this._element.classList.contains(m6)?g6:_6}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(nv);for(const s of e){const n=rt.getElementFromSelector(s);n&&this._addAriaAndCollapsedClass([s],this._isShown(n))}}_getFirstLevelChildren(e){const s=rt.find(p6,this._config.parent);return rt.find(e,this._config.parent).filter(n=>!s.includes(n))}_addAriaAndCollapsedClass(e,s){if(e.length)for(const n of e)n.classList.toggle(h6,!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=Du.getOrCreateInstance(this,s);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Oe.on(document,f6,nv,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of rt.getMultipleElementsFromSelector(this))Du.getOrCreateInstance(e,{toggle:!1}).toggle()});Di(Du);const j0="dropdown",w6="bs.dropdown",Na=`.${w6}`,rb=".data-api",x6="Escape",W0="Tab",S6="ArrowUp",z0="ArrowDown",E6=2,C6=`hide${Na}`,k6=`hidden${Na}`,A6=`show${Na}`,$6=`shown${Na}`,KS=`click${Na}${rb}`,GS=`keydown${Na}${rb}`,T6=`keyup${Na}${rb}`,kl="show",O6="dropup",M6="dropend",P6="dropstart",D6="dropup-center",R6="dropdown-center",fa='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',I6=`${fa}.${kl}`,fh=".dropdown-menu",L6=".navbar",N6=".navbar-nav",V6=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",F6=Oi()?"top-end":"top-start",B6=Oi()?"top-start":"top-end",U6=Oi()?"bottom-end":"bottom-start",q6=Oi()?"bottom-start":"bottom-end",H6=Oi()?"left-start":"right-start",j6=Oi()?"right-start":"left-start",W6="top",z6="bottom",K6={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},G6={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ai extends Ki{constructor(e,s){super(e,s),this._popper=null,this._parent=this._element.parentNode,this._menu=rt.next(this._element,fh)[0]||rt.prev(this._element,fh)[0]||rt.findOne(fh,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return K6}static get DefaultType(){return G6}static get NAME(){return j0}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Oo(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Oe.trigger(this._element,A6,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(N6))for(const n of[].concat(...document.body.children))Oe.on(n,"mouseover",$h);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(kl),this._element.classList.add(kl),Oe.trigger(this._element,$6,e)}}hide(){if(Oo(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(!Oe.trigger(this._element,C6,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))Oe.off(n,"mouseover",$h);this._popper&&this._popper.destroy(),this._menu.classList.remove(kl),this._element.classList.remove(kl),this._element.setAttribute("aria-expanded","false"),Ur.removeDataAttribute(this._menu,"popper"),Oe.trigger(this._element,k6,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Br(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${j0.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof OS>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:Br(this._config.reference)?e=To(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const s=this._getPopperConfig();this._popper=sb(e,this._menu,s)}_isShown(){return this._menu.classList.contains(kl)}_getPlacement(){const e=this._parent;if(e.classList.contains(M6))return H6;if(e.classList.contains(P6))return j6;if(e.classList.contains(D6))return W6;if(e.classList.contains(R6))return z6;const s=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(O6)?s?B6:F6:s?q6:U6}_detectNavbar(){return this._element.closest(L6)!==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")&&(Ur.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...qn(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:s}){const n=rt.find(V6,this._menu).filter(i=>sc(i));n.length&&nb(n,s,e===z0,!n.includes(s)).focus()}static jQueryInterface(e){return this.each(function(){const s=Ai.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===E6||e.type==="keyup"&&e.key!==W0)return;const s=rt.find(I6);for(const n of s){const i=Ai.getInstance(n);if(!i||i._config.autoClose===!1)continue;const r=e.composedPath(),o=r.includes(i._menu);if(r.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(e.target)&&(e.type==="keyup"&&e.key===W0||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:i._element};e.type==="click"&&(a.clickEvent=e),i._completeHide(a)}}static dataApiKeydownHandler(e){const s=/input|textarea/i.test(e.target.tagName),n=e.key===x6,i=[S6,z0].includes(e.key);if(!i&&!n||s&&!n)return;e.preventDefault();const r=this.matches(fa)?this:rt.prev(this,fa)[0]||rt.next(this,fa)[0]||rt.findOne(fa,e.delegateTarget.parentNode),o=Ai.getOrCreateInstance(r);if(i){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),r.focus())}}Oe.on(document,GS,fa,Ai.dataApiKeydownHandler);Oe.on(document,GS,fh,Ai.dataApiKeydownHandler);Oe.on(document,KS,Ai.clearMenus);Oe.on(document,T6,Ai.clearMenus);Oe.on(document,KS,fa,function(t){t.preventDefault(),Ai.getOrCreateInstance(this).toggle()});Di(Ai);const YS="backdrop",Y6="fade",K0="show",G0=`mousedown.bs.${YS}`,Z6={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},X6={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ZS extends sd{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Z6}static get DefaultType(){return X6}static get NAME(){return YS}show(e){if(!this._config.isVisible){qn(e);return}this._append();const s=this._getElement();this._config.isAnimated&&td(s),s.classList.add(K0),this._emulateAnimation(()=>{qn(e)})}hide(e){if(!this._config.isVisible){qn(e);return}this._getElement().classList.remove(K0),this._emulateAnimation(()=>{this.dispose(),qn(e)})}dispose(){this._isAppended&&(Oe.off(this._element,G0),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(Y6),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=To(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Oe.on(e,G0,()=>{qn(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){IS(e,this._getElement(),this._config.isAnimated)}}const J6="focustrap",Q6="bs.focustrap",Oh=`.${Q6}`,e5=`focusin${Oh}`,t5=`keydown.tab${Oh}`,s5="Tab",n5="forward",Y0="backward",i5={autofocus:!0,trapElement:null},r5={autofocus:"boolean",trapElement:"element"};class XS extends sd{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return i5}static get DefaultType(){return r5}static get NAME(){return J6}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Oe.off(document,Oh),Oe.on(document,e5,e=>this._handleFocusin(e)),Oe.on(document,t5,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Oe.off(document,Oh))}_handleFocusin(e){const{trapElement:s}=this._config;if(e.target===document||e.target===s||s.contains(e.target))return;const n=rt.focusableChildren(s);n.length===0?s.focus():this._lastTabNavDirection===Y0?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===s5&&(this._lastTabNavDirection=e.shiftKey?Y0:n5)}}const Z0=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",X0=".sticky-top",Pf="padding-right",J0="margin-right";class iv{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,Pf,s=>s+e),this._setElementAttributes(Z0,Pf,s=>s+e),this._setElementAttributes(X0,J0,s=>s-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Pf),this._resetElementAttributes(Z0,Pf),this._resetElementAttributes(X0,J0)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,s,n){const i=this.getWidth(),r=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,s);const a=window.getComputedStyle(o).getPropertyValue(s);o.style.setProperty(s,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,r)}_saveInitialAttribute(e,s){const n=e.style.getPropertyValue(s);n&&Ur.setDataAttribute(e,s,n)}_resetElementAttributes(e,s){const n=i=>{const r=Ur.getDataAttribute(i,s);if(r===null){i.style.removeProperty(s);return}Ur.removeDataAttribute(i,s),i.style.setProperty(s,r)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,s){if(Br(e)){s(e);return}for(const n of rt.find(e,this._element))s(n)}}const o5="modal",a5="bs.modal",Mi=`.${a5}`,l5=".data-api",c5="Escape",u5=`hide${Mi}`,d5=`hidePrevented${Mi}`,JS=`hidden${Mi}`,QS=`show${Mi}`,f5=`shown${Mi}`,h5=`resize${Mi}`,p5=`click.dismiss${Mi}`,m5=`mousedown.dismiss${Mi}`,g5=`keydown.dismiss${Mi}`,_5=`click${Mi}${l5}`,Q0="modal-open",v5="fade",ew="show",c_="modal-static",b5=".modal.show",y5=".modal-dialog",w5=".modal-body",x5='[data-bs-toggle="modal"]',S5={backdrop:!0,focus:!0,keyboard:!0},E5={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let Mh=class eE extends Ki{constructor(e,s){super(e,s),this._dialog=rt.findOne(y5,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new iv,this._addEventListeners()}static get Default(){return S5}static get DefaultType(){return E5}static get NAME(){return o5}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Oe.trigger(this._element,QS,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Q0),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Oe.trigger(this._element,u5).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(ew),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Oe.off(window,Mi),Oe.off(this._dialog,Mi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ZS({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new XS({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=rt.findOne(w5,this._dialog);s&&(s.scrollTop=0),td(this._element),this._element.classList.add(ew);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Oe.trigger(this._element,f5,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Oe.on(this._element,g5,e=>{if(e.key===c5){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Oe.on(window,h5,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Oe.on(this._element,m5,e=>{Oe.one(this._element,p5,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(Q0),this._resetAdjustments(),this._scrollBar.reset(),Oe.trigger(this._element,JS)})}_isAnimated(){return this._element.classList.contains(v5)}_triggerBackdropTransition(){if(Oe.trigger(this._element,d5).defaultPrevented)return;const s=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(c_)||(s||(this._element.style.overflowY="hidden"),this._element.classList.add(c_),this._queueCallback(()=>{this._element.classList.remove(c_),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 i=Oi()?"paddingLeft":"paddingRight";this._element.style[i]=`${s}px`}if(!n&&e){const i=Oi()?"paddingRight":"paddingLeft";this._element.style[i]=`${s}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,s){return this.each(function(){const n=eE.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>
5"u")throw new TypeError(`No method named "${e}"`);n[e](s)}})}};Oe.on(document,_5,x5,function(t){const e=rt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Oe.one(e,QS,i=>{i.defaultPrevented||Oe.one(e,JS,()=>{sc(this)&&this.focus()})});const s=rt.findOne(b5);s&&Mh.getInstance(s).hide(),Mh.getOrCreateInstance(e).toggle(this)});vp(Mh);Di(Mh);const C5="offcanvas",k5="bs.offcanvas",Zr=`.${k5}`,tE=".data-api",A5=`load${Zr}${tE}`,$5="Escape",tw="show",sw="showing",nw="hiding",T5="offcanvas-backdrop",sE=".offcanvas.show",O5=`show${Zr}`,M5=`shown${Zr}`,P5=`hide${Zr}`,iw=`hidePrevented${Zr}`,nE=`hidden${Zr}`,D5=`resize${Zr}`,R5=`click${Zr}${tE}`,I5=`keydown.dismiss${Zr}`,L5='[data-bs-toggle="offcanvas"]',N5={backdrop:!0,keyboard:!0,scroll:!1},V5={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Mo extends Ki{constructor(e,s){super(e,s),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return N5}static get DefaultType(){return V5}static get NAME(){return C5}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Oe.trigger(this._element,O5,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new iv().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(sw);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(tw),this._element.classList.remove(sw),Oe.trigger(this._element,M5,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||Oe.trigger(this._element,P5).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(nw),this._backdrop.hide();const s=()=>{this._element.classList.remove(tw,nw),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new iv().reset(),Oe.trigger(this._element,nE)};this._queueCallback(s,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Oe.trigger(this._element,iw);return}this.hide()},s=!!this._config.backdrop;return new ZS({className:T5,isVisible:s,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:s?e:null})}_initializeFocusTrap(){return new XS({trapElement:this._element})}_addEventListeners(){Oe.on(this._element,I5,e=>{if(e.key===$5){if(this._config.keyboard){this.hide();return}Oe.trigger(this._element,iw)}})}static jQueryInterface(e){return this.each(function(){const s=Mo.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)}})}}Oe.on(document,R5,L5,function(t){const e=rt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Oo(this))return;Oe.one(e,nE,()=>{sc(this)&&this.focus()});const s=rt.findOne(sE);s&&s!==e&&Mo.getInstance(s).hide(),Mo.getOrCreateInstance(e).toggle(this)});Oe.on(window,A5,()=>{for(const t of rt.find(sE))Mo.getOrCreateInstance(t).show()});Oe.on(window,D5,()=>{for(const t of rt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Mo.getOrCreateInstance(t).hide()});vp(Mo);Di(Mo);const F5=/^aria-[\w-]*$/i,iE={"*":["class","dir","id","lang","role",F5],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:[]},B5=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),U5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,q5=(t,e)=>{const s=t.nodeName.toLowerCase();return e.includes(s)?B5.has(s)?!!U5.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(s))};function H5(t,e,s){if(!t.length)return t;if(s&&typeof s=="function")return s(t);const i=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...i.body.querySelectorAll("*"));for(const o of r){const a=o.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){o.remove();continue}const c=[].concat(...o.attributes),f=[].concat(e["*"]||[],e[a]||[]);
vendor: 14,804 bytes, line 5
5for(const h of c)q5(h,f)||o.removeAttribute(h.nodeName)}return i.body.innerHTML}const j5="TemplateFactory",W5={allowList:iE,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},z5={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},K5={entry:"(string|element|function|null)",selector:"(string|element)"};class G5 extends sd{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return W5}static get DefaultType(){return z5}static get NAME(){return j5}getContent(){return Object.values(this._config.content).map(e=>this._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[i,r]of Object.entries(this._config.content))this._setContent(e,r,i);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},K5)}_setContent(e,s,n){const i=rt.findOne(n,e);if(i){if(s=this._resolvePossibleFunction(s),!s){i.remove();return}if(Br(s)){this._putElementInTemplate(To(s),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(s);return}i.textContent=s}}_maybeSanitize(e){return this._config.sanitize?H5(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return qn(e,[this])}_putElementInTemplate(e,s){if(this._config.html){s.innerHTML="",s.append(e);return}s.textContent=e.textContent}}const Y5="tooltip",Z5=new Set(["sanitize","allowList","sanitizeFn"]),u_="fade",X5="modal",Df="show",J5=".tooltip-inner",rw=`.${X5}`,ow="hide.bs.modal",Kc="hover",d_="focus",Q5="click",eR="manual",tR="hide",sR="hidden",nR="show",iR="shown",rR="inserted",oR="click",aR="focusin",lR="focusout",cR="mouseenter",uR="mouseleave",dR={AUTO:"auto",TOP:"top",RIGHT:Oi()?"left":"right",BOTTOM:"bottom",LEFT:Oi()?"right":"left"},fR={allowList:iE,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"},hR={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"};let wp=class rE extends Ki{constructor(e,s){if(typeof OS>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");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 fR}static get DefaultType(){return hR}static get NAME(){return Y5}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Oe.off(this._element.closest(rw),ow,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=Oe.trigger(this._element,this.constructor.eventName(nR)),n=(DS(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(i),Oe.trigger(this._element,this.constructor.eventName(rR))),this._popper=this._createPopper(i),i.classList.add(Df),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))Oe.on(a,"mouseover",$h);const o=()=>{Oe.trigger(this._element,this.constructor.eventName(iR)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Oe.trigger(this._element,this.constructor.eventName(tR)).defaultPrevented)return;if(this._getTipElement().classList.remove(Df),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))Oe.off(i,"mouseover",$h);this._activeTrigger[Q5]=!1,this._activeTrigger[d_]=!1,this._activeTrigger[Kc]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Oe.trigger(this._element,this.constructor.eventName(sR)))};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(u_,Df),s.classList.add(`bs-${this.constructor.NAME}-auto`);const n=QP(this.constructor.NAME).toString();return s.setAttribute("id",n),this._isAnimated()&&s.classList.add(u_),s}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new G5({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[J5]: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(u_)}_isShown(){return this.tip&&this.tip.classList.contains(Df)}_createPopper(e){const s=qn(this._config.placement,[this,e,this._element]),n=dR[s.toUpperCase()];return sb(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 qn(e,[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,...qn(this._config.popperConfig,[s])}}_setListeners(){const e=this._config.trigger.split(" ");for(const s of e)if(s==="click")Oe.on(this._element,this.constructor.eventName(oR),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(s!==eR){const n=s===Kc?this.constructor.eventName(cR):this.constructor.eventName(aR),i=s===Kc?this.constructor.eventName(uR):this.constructor.eventName(lR);Oe.on(this._element,n,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusin"?d_:Kc]=!0,o._enter()}),Oe.on(this._element,i,this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[r.type==="focusout"?d_:Kc]=o._element.contains(r.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Oe.on(this._element.closest(rw),ow,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=Ur.getDataAttributes(this._element);for(const n of Object.keys(s))Z5.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:To(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=rE.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e]()}})}};Di(wp);const pR="popover",mR=".popover-header",gR=".popover-body",_R={...wp.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"},vR={...wp.DefaultType,content:"(null|string|element|function)"};class ob extends wp{static get Default(){return _R}static get DefaultType(){return vR}static get NAME(){return pR}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[mR]:this._getTitle(),[gR]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const s=ob.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e]()}})}}Di(ob);const bR="scrollspy",yR="bs.scrollspy",ab=`.${yR}`,wR=".data-api",xR=`activate${ab}`,aw=`click${ab}`,SR=`load${ab}${wR}`,ER="dropdown-item",pl="active",CR='[data-bs-spy="scroll"]',f_="[href]",kR=".nav, .list-group",lw=".nav-link",AR=".nav-item",$R=".list-group-item",TR=`${lw}, ${AR} > ${lw}, ${$R}`,OR=".dropdown",MR=".dropdown-toggle",PR={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},DR={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class xp extends Ki{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 PR}static get DefaultType(){return DR}static get NAME(){return bR}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=To(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&&(Oe.off(this._config.target,aw),Oe.on(this._config.target,aw,f_,e=>{const s=this._observableSections.get(e.target.hash);if(s){e.preventDefault();const n=this._rootElement||window,i=s.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:i,behavior:"smooth"});return}n.scrollTop=i}}))}_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=o=>this._targetLinks.get(`#${o.target.id}`),n=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(s(o))},i=(this._rootElement||document.documentElement).scrollTop,r=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(s(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&a){if(n(o),!i)return;continue}!r&&!a&&n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=rt.find(f_,this._config.target);for(const s of e){if(!s.hash||Oo(s))continue;const n=rt.findOne(decodeURI(s.hash),this._element);sc(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(pl),this._activateParents(e),Oe.trigger(this._element,xR,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(ER)){rt.findOne(MR,e.closest(OR)).classList.add(pl);return}for(const s of rt.parents(e,kR))for(const n of rt.prev(s,TR))n.classList.add(pl)}_clearActiveClass(e){e.classList.remove(pl);const s=rt.find(`${f_}.${pl}`,e);for(const n of s)n.classList.remove(pl)}static jQueryInterface(e){return this.each(function(){const s=xp.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]()}})}}Oe.on(window,SR,()=>{for(const t of rt.find(CR))xp.getOrCreateInstance(t)});Di(xp);const RR="tab",IR="bs.tab",Va=`.${IR}`,LR=`hide${Va}`,NR=`hidden${Va}`,VR=`show${Va}`,FR=`shown${Va}`,BR=`click${Va}`,UR=`keydown${Va}`,qR=`load${Va}`,HR="ArrowLeft",cw="ArrowRight",jR="ArrowUp",uw="ArrowDown",h_="Home",dw="End",ha="active",fw="fade",p_="show",WR="dropdown",oE=".dropdown-toggle",zR=".dropdown-menu",m_=`:not(${oE})`,KR='.list-group, .nav, [role="tablist"]',GR=".nav-item, .list-group-item",YR=`.nav-link${m_}, .list-group-item${m_}, [role="tab"]${m_}`,aE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',g_=`${YR}, ${aE}`,ZR=`.${ha}[data-bs-toggle="tab"], .${ha}[data-bs-toggle="pill"], .${ha}[data-bs-toggle="list"]`;class ql extends Ki{constructor(e){super(e),this._parent=this._element.closest(KR),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Oe.on(this._element,UR,s=>this._keydown(s)))}static get NAME(){return RR}show(){const e=this._element;if(this._elemIsActive(e))return;const s=this._getActiveElem(),n=s?Oe.trigger(s,LR,{relatedTarget:e}):null;Oe.trigger(e,VR,{relatedTarget:s}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(s,e),this._activate(e,s))}_activate(e,s){if(!e)return;e.classList.add(ha),this._activate(rt.getElementFromSelector(e));const n=()=>
5{if(e.getAttribute("role")!=="tab"){e.classList.add(p_);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Oe.trigger(e,FR,{relatedTarget:s})};this._queueCallback(n,e,e.classList.contains(fw))}_deactivate(e,s){if(!e)return;e.classList.remove(ha),e.blur(),this._deactivate(rt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(p_);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Oe.trigger(e,NR,{relatedTarget:s})};this._queueCallback(n,e,e.classList.contains(fw))}_keydown(e){if(![HR,cw,jR,uw,h_,dw].includes(e.key))return;e.stopPropagation(),e.preventDefault();const s=this._getChildren().filter(i=>!Oo(i));let n;if([h_,dw].includes(e.key))n=s[e.key===h_?0:s.length-1];else{const i=[cw,uw].includes(e.key);n=nb(s,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),ql.getOrCreateInstance(n).show())}_getChildren(){return rt.find(g_,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=rt.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(WR))return;const i=(r,o)=>{const a=rt.findOne(r,n);a&&a.classList.toggle(o,s)};i(oE,ha),i(zR,p_),n.setAttribute("aria-expanded",s)}_setAttributeIfNotExists(e,s,n){e.hasAttribute(s)||e.setAttribute(s,n)}_elemIsActive(e){return e.classList.contains(ha)}_getInnerElement(e){return e.matches(g_)?e:rt.findOne(g_,e)}_getOuterElement(e){return e.closest(GR)||e}static jQueryInterface(e){return this.each(function(){const s=ql.getOrCreateInstance(this);if(typeof e=="string"){if(s[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);s[e]()}})}}Oe.on(document,BR,aE,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Oo(this)&&ql.getOrCreateInstance(this).show()});Oe.on(window,qR,()=>{for(const t of rt.find(ZR))ql.getOrCreateInstance(t)});Di(ql);const XR="toast",JR="bs.toast",Vo=`.${JR}`,QR=`mouseover${Vo}`,eI=`mouseout${Vo}`,tI=`focusin${Vo}`,sI=`focusout${Vo}`,nI=`hide${Vo}`,iI=`hidden${Vo}`,rI=`show${Vo}`,oI=`shown${Vo}`,aI="fade",hw="hide",Rf="show",If="showing",lI={animation:"boolean",autohide:"boolean",delay:"number"},cI={animation:!0,autohide:!0,delay:5e3};class Sp extends Ki{constructor(e,s){super(e,s),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return cI}static get DefaultType(){return lI}static get NAME(){return XR}show(){if(Oe.trigger(this._element,rI).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(aI);const s=()=>{this._element.classList.remove(If),Oe.trigger(this._element,oI),this._maybeScheduleHide()};this._element.classList.remove(hw),td(this._element),this._element.classList.add(Rf,If),this._queueCallback(s,this._element,this._config.animation)}hide(){if(!this.isShown()||Oe.trigger(this._element,nI).defaultPrevented)return;const s=()=>{this._element.classList.add(hw),this._element.classList.remove(If,Rf),Oe.trigger(this._element,iI)};this._element.classList.add(If),this._queueCallback(s,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Rf),super.dispose()}isShown(){return this._element.classList.contains(Rf)}_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(){Oe.on(this._element,QR,e=>this._onInteraction(e,!0)),Oe.on(this._element,eI,e=>this._onInteraction(e,!1)),Oe.on(this._element,tI,e=>this._onInteraction(e,!0)),Oe.on(this._element,sI,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}
vendor: 5,084 bytes, line 5
5static jQueryInterface(e){return this.each(function(){const s=Sp.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e](this)}})}}vp(Sp);Di(Sp);function lE(t,e){return function(){return t.apply(e,arguments)}}const{toString:uI}=Object.prototype,{getPrototypeOf:Ep}=Object,{iterator:Cp,toStringTag:cE}=Symbol,kp=(t=>e=>{const s=uI.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Gi=t=>(t=t.toLowerCase(),e=>kp(e)===t),Ap=t=>e=>typeof e===t,{isArray:Ta}=Array,Hl=Ap("undefined");function ic(t){return t!==null&&!Hl(t)&&t.constructor!==null&&!Hl(t.constructor)&&Gn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const uE=Gi("ArrayBuffer");function dI(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&uE(t.buffer),e}const fI=Ap("string"),Gn=Ap("function"),dE=Ap("number"),rd=t=>t!==null&&typeof t=="object",hI=t=>t===!0||t===!1,hh=t=>{if(kp(t)!=="object")return!1;const e=Ep(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(cE in t)&&!(Cp in t)},pI=t=>{if(!rd(t)||ic(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},mI=Gi("Date"),gI=Gi("File"),_I=t=>!!(t&&typeof t.uri<"u"),vI=t=>t&&typeof t.getParts<"u",bI=Gi("Blob"),yI=Gi("FileList"),wI=t=>rd(t)&&Gn(t.pipe);function xI(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const pw=xI(),mw=typeof pw.FormData<"u"?pw.FormData:void 0,SI=t=>{if(!t)return!1;if(mw&&t instanceof mw)return!0;const e=Ep(t);if(!e||e===Object.prototype||!Gn(t.append))return!1;const s=kp(t);return s==="formdata"||s==="object"&&Gn(t.toString)&&t.toString()==="[object FormData]"},EI=Gi("URLSearchParams"),[CI,kI,AI,$I]=["ReadableStream","Request","Response","Headers"].map(Gi),TI=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function od(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Ta(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(ic(t))return;const r=s?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let a;for(n=0;n<o;n++)a=r[n],e.call(null,t[a],a,t)}}function fE(t,e){if(ic(t))return null;e=e.toLowerCase();const s=Object.keys(t);let n=s.length,i;for(;n-- >0;)if(i=s[n],e===i.toLowerCase())return i;return null}const pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hE=t=>!Hl(t)&&t!==pa;function rv(...t){const{caseless:e,skipUndefined:s}=hE(this)&&this||{},n={},i=(r,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=e&&typeof o=="string"&&fE(n,o)||o,c=ov(n,a)?n[a]:void 0;hh(c)&&hh(r)?n[a]=rv(c,r):hh(r)?n[a]=rv({},r):Ta(r)?n[a]=r.slice():(!s||!Hl(r))&&(n[a]=r)};for(let r=0,o=t.length;r<o;r++){const a=t[r];if(!a||ic(a)||(od(a,i),typeof a!="object"||Ta(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let f=0;f<c.length;f++){const h=c[f];UI.call(a,h)&&i(a[h],h)}}return n}const OI=(t,e,s,{allOwnKeys:n}={})=>(od(e,(i,r)=>{s&&Gn(i)?Object.defineProperty(t,r,{__proto__:null,value:lE(i,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),MI=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),PI=(t,e,s,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),s&&Object.assign(t.prototype,s)},DI=(t,e,s,n)=>{let i,r,o;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),r=i.length;r-- >0;)o=i[r],(!n||n(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=s!==!1&&Ep(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},RI=(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},II=t=>{if(!t)return null;if(Ta(t))return t;let e=t.length;if(!dE(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},LI=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ep(Uint8Array)),NI=(t,e)=>{const n=(t&&t[Cp]).call(t);let i;for(;(i=n.next())&&!i.done;){const r=i.value;e.call(t,r[0],r[1])}},VI=(t,e)=>{let s;const n=[];for(;(s=t.exec(e))!==null;)n.push(s);return n},FI=Gi("HTMLFormElement"),BI=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,n,i){return n.toUpperCase()+i}),ov=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),{propertyIsEnumerable:UI}=Object.prototype,qI=Gi("RegExp"),pE=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),n={};od(s,(i,r)=>{let o;(o=e(i,r,t))!==!1&&(n[r]=o||i)}),Object.defineProperties(t,n)},HI=t=>{pE(t,(e,s)=>{if(Gn(t)&&["arguments","caller","callee"].includes(s))return!1;const n=t[s];if(Gn(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+"'")})}})},jI=(t,e)=>{const s={},n=i=>
vendor: 1,402 bytes, line 5
5{i.forEach(r=>{s[r]=!0})};return Ta(t)?n(t):n(String(t).split(e)),s},WI=()=>{},zI=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function KI(t){return!!(t&&Gn(t.append)&&t[cE]==="FormData"&&t[Cp])}const GI=t=>{const e=new WeakSet,s=n=>{if(rd(n)){if(e.has(n))return;if(ic(n))return n;if(!("toJSON"in n)){e.add(n);const i=Ta(n)?[]:{};return od(n,(r,o)=>{const a=s(r);!Hl(a)&&(i[o]=a)}),e.delete(n),i}}return n};return s(t)},YI=Gi("AsyncFunction"),ZI=t=>t&&(rd(t)||Gn(t))&&Gn(t.then)&&Gn(t.catch),mE=((t,e)=>t?setImmediate:e?((s,n)=>(pa.addEventListener("message",({source:i,data:r})=>{i===pa&&r===s&&n.length&&n.shift()()},!1),i=>{n.push(i),pa.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Gn(pa.postMessage)),XI=typeof queueMicrotask<"u"?queueMicrotask.bind(pa):typeof process<"u"&&process.nextTick||mE,JI=t=>t!=null&&Gn(t[Cp]),ne={isArray:Ta,isArrayBuffer:uE,isBuffer:ic,isFormData:SI,isArrayBufferView:dI,isString:fI,isNumber:dE,isBoolean:hI,isObject:rd,isPlainObject:hh,isEmptyObject:pI,isReadableStream:CI,isRequest:kI,isResponse:AI,isHeaders:$I,isUndefined:Hl,isDate:mI,isFile:gI,isReactNativeBlob:_I,isReactNative:vI,isBlob:bI,isRegExp:qI,isFunction:Gn,isStream:wI,isURLSearchParams:EI,isTypedArray:LI,isFileList:yI,forEach:od,merge:rv,extend:OI,trim:TI,stripBOM:MI,inherits:PI,toFlatObject:DI,kindOf:kp,kindOfTest:Gi,endsWith:RI,toArray:II,forEac
vendor: 22,871 bytes, lines 5-7
5hEntry:NI,matchAll:VI,isHTMLForm:FI,hasOwnProperty:ov,hasOwnProp:ov,reduceDescriptors:pE,freezeMethods:HI,toObjectSet:jI,toCamelCase:BI,noop:WI,toFiniteNumber:zI,findKey:fE,global:pa,isContextDefined:hE,isSpecCompliantForm:KI,toJSONObject:GI,isAsyncFn:YI,isThenable:ZI,setImmediate:mE,asap:XI,isIterable:JI},QI=ne.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"]),eL=t=>{const e={};let s,n,i;return t&&t.split(` 6`).forEach(function(o){i=o.indexOf(":"),s=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!s||e[s]&&QI[s])&&(s==="set-cookie"?e[s]?e[s].push(n):e[s]=[n]:e[s]=e[s]?e[s]+", "+n:n)}),e};function tL(t){let e=0,s=t.length;for(;e<s;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;s>e;){const n=t.charCodeAt(s-1);if(n!==9&&n!==32)break;s-=1}return e===0&&s===t.length?t:t.slice(e,s)}const sL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),nL=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function lb(t,e){return ne.isArray(t)?t.map(s=>lb(s,e)):tL(String(t).replace(e,""))}const iL=t=>lb(t,sL),rL=t=>lb(t,nL);function gE(t){const e=Object.create(null);return ne.forEach(t.toJSON(),(s,n)=>{e[n]=rL(s)}),e}const gw=Symbol("internals");function Gc(t){return t&&String(t).trim().toLowerCase()}function ph(t){return t===!1||t==null?t:ne.isArray(t)?t.map(ph):iL(String(t))}function oL(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 aL=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function __(t,e,s,n,i){if(ne.isFunction(n))return n.call(this,e,s);if(i&&(e=s),!!ne.isString(e)){if(ne.isString(n))return e.indexOf(n)!==-1;if(ne.isRegExp(n))return n.test(e)}}function lL(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,n)=>s.toUpperCase()+n)}function cL(t,e){const s=ne.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+s,{__proto__:null,value:function(i,r,o){return this[n].call(this,e,i,r,o)},configurable:!0})})}let kn=class{constructor(e){e&&this.set(e)}set(e,s,n){const i=this;function r(a,c,f){const h=Gc(c);if(!h)return;const p=ne.findKey(i,h);(!p||i[p]===void 0||f===!0||f===void 0&&i[p]!==!1)&&(i[p||c]=ph(a))}const o=(a,c)=>ne.forEach(a,(f,h)=>r(f,h,c));if(ne.isPlainObject(e)||e instanceof this.constructor)o(e,s);else if(ne.isString(e)&&(e=e.trim())&&!aL(e))o(eL(e),s);else if(ne.isObject(e)&&ne.isIterable(e)){let a={},c,f;for(const h of e){if(!ne.isArray(h))throw new TypeError("Object iterator must return a key-value pair");a[f=h[0]]=(c=a[f])?ne.isArray(c)?[...c,h[1]]:[c,h[1]]:h[1]}o(a,s)}else e!=null&&r(s,e,n);return this}get(e,s){if(e=Gc(e),e){const n=ne.findKey(this,e);if(n){const i=this[n];if(!s)return i;if(s===!0)return oL(i);if(ne.isFunction(s))return s.call(this,i,n);if(ne.isRegExp(s))return s.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,s){if(e=Gc(e),e){const n=ne.findKey(this,e);return!!(n&&this[n]!==void 0&&(!s||__(this,this[n],n,s)))}return!1}delete(e,s){const n=this;let i=!1;function r(o){if(o=Gc(o),o){const a=ne.findKey(n,o);a&&(!s||__(n,n[a],a,s))&&(delete n[a],i=!0)}}return ne.isArray(e)?e.forEach(r):r(e),i}clear(e){const s=Object.keys(this);let n=s.length,i=!1;for(;n--;){const r=s[n];(!e||__(this,this[r],r,e,!0))&&(delete this[r],i=!0)}return i}normalize(e){const s=this,n={};return ne.forEach(this,(i,r)=>{const o=ne.findKey(n,r);if(o){s[o]=ph(i),delete s[r];return}const a=e?lL(r):String(r).trim();a!==r&&delete s[r],s[a]=ph(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const s=Object.create(null);return ne.forEach(this,(n,i)=>{n!=null&&n!==!1&&(s[i]=e&&ne.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);return s.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[gw]=this[gw]={accessors:{}}).accessors,i=this.prototype;function r(o){const a=Gc(o);n[a]||(cL(i,o),n[a]=!0)}return ne.isArray(e)?e.forEach(r):r(e),this}};kn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(kn.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[s]=n}}});ne.freezeMethods(kn);const uL="[REDACTED ****]";function dL(t){if(ne.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(ne.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function fL(t,e){const s=new Set(e.map(r=>String(r).toLowerCase())),n=[],i=r=>{if(r===null||typeof r!="object"||ne.isBuffer(r))return r;if(n.indexOf(r)!==-1)return;r instanceof kn&&(r=r.toJSON()),n.push(r);let o;if(ne.isArray(r))o=[],r.forEach((a,c)=>{const f=i(a);ne.isUndefined(f)||(o[c]=f)});else{if(!ne.isPlainObject(r)&&dL(r))return n.pop(),r;o=Object.create(null);for(const[a,c]of Object.entries(r)){const f=s.has(a.toLowerCase())?uL:i(c);ne.isUndefined(f)||(o[a]=f)}}return n.pop(),o};return i(t)}let Ze=class _E extends Error{static from(e,s,n,i,r,o){const a=new _E(e.message,s||e.code,n,i,r);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,s,n,i,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status)}toJSON(){const e=this.config,s=e&&ne.hasOwnProp(e,"redact")?e.redact:void 0,n=ne.isArray(s)&&s.length>0?fL(e,s):ne.toJSONObject(e);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:n,code:this.code,status:this.status}}};Ze.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ze.ERR_BAD_OPTION="ERR_BAD_OPTION";Ze.ECONNABORTED="ECONNABORTED";Ze.ETIMEDOUT="ETIMEDOUT";Ze.ECONNREFUSED="ECONNREFUSED";Ze.ERR_NETWORK="ERR_NETWORK";Ze.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ze.ERR_DEPRECATED="ERR_DEPRECATED";Ze.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ze.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ze.ERR_CANCELED="ERR_CANCELED";Ze.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ze.ERR_INVALID_URL="ERR_INVALID_URL";Ze.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const hL=null;function av(t){return ne.isPlainObject(t)||ne.isArray(t)}function vE(t){return ne.endsWith(t,"[]")?t.slice(0,-2):t}function v_(t,e,s){return t?t.concat(e).map(function(i,r){return i=vE(i),!s&&r?"["+i+"]":i}).join(s?".":""):e}function pL(t){return ne.isArray(t)&&!t.some(av)}const mL=ne.toFlatObject(ne,{},null,function(e){return/^is[A-Z]/.test(e)});function $p(t,e,s){if(!ne.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=ne.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,C){return!ne.isUndefined(C[S])});const n=s.metaTokens,i=s.visitor||p,r=s.dots,o=s.indexes,a=s.Blob||typeof Blob<"u"&&Blob,c=s.maxDepth===void 0?100:s.maxDepth,f=a&&ne.isSpecCompliantForm(e);if(!ne.isFunction(i))throw new TypeError("visitor must be a function");function h(b){if(b===null)return"";if(ne.isDate(b))return b.toISOString();if(ne.isBoolean(b))return b.toString();if(!f&&ne.isBlob(b))throw new Ze("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(b)||ne.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function p(b,S,C){let O=b;if(ne.isReactNative(e)&&ne.isReactNativeBlob(b))return e.append(v_(C,S,r),h(b)),!1;if(b&&!C&&typeof b=="object"){if(ne.endsWith(S,"{}"))S=n?S:S.slice(0,-2),b=JSON.stringify(b);else if(ne.isArray(b)&&pL(b)||(ne.isFileList(b)||ne.endsWith(S,"[]"))&&(O=ne.toArray(b)))return S=vE(S),O.forEach(function($,T){!(ne.isUndefined($)||$===null)&&e.append(o===!0?v_([S],T,r):o===null?S:S+"[]",h($))}),!1}return av(b)?!0:(e.append(v_(C,S,r),h(b)),!1)}const m=[],_=Object.assign(mL,{defaultVisitor:p,convertValue:h,isVisitable:av});function v(b,S,C=0){if(!ne.isUndefined(b)){if(C>c)throw new Ze("Object is too deeply nested ("+C+" levels). Max depth: "+c,Ze.ERR_FORM_DATA_DEPTH_EXCEEDED);if(m.indexOf(b)!==-1)throw new Error("Circular reference detected in "+S.join("."));m.push(b),ne.forEach(b,function(A,$){(!(ne.isUndefined(A)||A===null)&&i.call(e,A,ne.isString($)?$.trim():$,S,_))===!0&&v(A,S?S.concat($):[$],C+1)}),m.pop()}}if(!ne.isObject(t))throw new TypeError("data must be an object");return v(t),e}function _w(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function cb(t,e){this._pairs=[],t&&$p(t,this,e)}const bE=cb.prototype;bE.append=function(e,s){this._pairs.push([e,s])};bE.toString=function(e){const s=e?function(n){return e.call(this,n,_w)}:_w;return this._pairs.map(function(i){return s(i[0])+"="+s(i[1])},"").join("&")};function gL(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function yE(t,e,s){if(!e)return t;const n=s&&s.encode||gL,i=ne.isFunction(s)?{serialize:s}:s,r=i&&i.serialize;let o;if(r?o=r(e,i):o=ne.isURLSearchParams(e)?e.toString():new cb(e,i).toString(n),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class vw{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){ne.forEach(this.handlers,function(n){n!==null&&e(n)})}}const ub={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},_L=typeof URLSearchParams<"u"?URLSearchParams:cb,vL=typeof FormData<"u"?FormData:null,bL=typeof Blob<"u"?Blob:null,yL={isBrowser:!0,classes:{URLSearchParams:_L,FormData:vL,Blob:bL},protocols:["http","https","file","blob","url","data"]},db=typeof window<"u"&&typeof document<"u",lv=typeof navigator=="object"&&navigator||void 0,wL=db&&(!lv||["ReactNative","NativeScript","NS"].indexOf(lv.product)<0),xL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",SL=db&&window.location.href||"http://localhost",EL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:db,hasStandardBrowserEnv:wL,hasStandardBrowserWebWorkerEnv:xL,navigator:lv,origin:SL},Symbol.toStringTag,{value:"Module"})),Zs={...EL,...yL};function CL(t,e){return $p(t,new Zs.classes.URLSearchParams,{visitor:function(s,n,i,r){return Zs.isNode&&ne.isBuffer(s)?(this.append(n,s.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}function kL(t){return ne.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function AL(t){const e={},s=Object.keys(t);let n;const i=s.length;let r;for(n=0;n<i;n++)r=s[n],e[r]=t[r];return e}function wE(t){function e(s,n,i,r){let o=s[r++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=r>=s.length;return o=!o&&ne.isArray(i)?i.length:o,c?(ne.hasOwnProp(i,o)?i[o]=ne.isArray(i[o])?i[o].concat(n):[i[o],n]:i[o]=n,!a):((!ne.hasOwnProp(i,o)||!ne.isObject(i[o]))&&(i[o]=[]),e(s,n,i[o],r)&&ne.isArray(i[o])&&(i[o]=AL(i[o])),!a)}if(ne.isFormData(t)&&ne.isFunction(t.entries)){const s={};return ne.forEachEntry(t,(n,i)=>{e(kL(n),i,s,0)}),s}return null}const ml=(t,e)=>t!=null&&ne.hasOwnProp(t,e)?t[e]:void 0;function $L(t,e,s){if(ne.isString(t))try{return(e||JSON.parse)(t),ne.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(t)}const ad={transitional:ub,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const n=s.getContentType()||"",i=n.indexOf("application/json")>-1,r=ne.isObject(e);if(r&&ne.isHTMLForm(e)&&(e=new FormData(e)),ne.isFormData(e))return i?JSON.stringify(wE(e)):e;if(ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e)||ne.isReadableStream(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(r){const c=ml(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return CL(e,c).toString();if((a=ne.isFileList(e))||n.indexOf("multipart/form-data")>-1){const f=ml(this,"env"),h=f&&f.FormData;return $p(a?{"files[]":e}:e,h&&new h,c)}}return r||i?(s.setContentType("application/json",!1),$L(e)):e}],transformResponse:[function(e){const s=ml(this,"transitional")||ad.transitional,n=s&&s.forcedJSONParsing,i=ml(this,"responseType"),r=i==="json";if(ne.isResponse(e)||ne.isReadableStream(e))return e;if(e&&ne.isString(e)&&(n&&!i||r)){const a=!(s&&s.silentJSONParsing)&&r;try{return JSON.parse(e,ml(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?Ze.from(c,Ze.ERR_BAD_RESPONSE,this,null,ml(this,"response")):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zs.classes.FormData,Blob:Zs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch","query"],t=>{ad.headers[t]={}});function b_(t,e){const s=this||ad,n=e||s,i=kn.from(n.headers);let r=n.data;return ne.forEach(t,function(a){r=a.call(s,r,i.normalize(),e?e.status:void 0)}),i.normalize(),r}function xE(t){return!!(t&&t.__CANCEL__)}let ld=class extends Ze{constructor(e,s,n){super(e??"canceled",Ze.ERR_CANCELED,s,n),this.name="CanceledError",this.__CANCEL__=!0}};function SE(t,e,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?t(s):e(new Ze("Request failed with status code "+s.status,s.status>=400&&s.status<500?Ze.ERR_BAD_REQUEST:Ze.ERR_BAD_RESPONSE,s.config,s.request,s))}function TL(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function OL(t,e){t=t||10;const s=new Array(t),n=new Array(t);let i=0,r=0,o;return e=e!==void 0?e:1e3,function(c){const f=Date.now(),h=n[r];o||(o=f),s[i]=c,n[i]=f;let p=r,m=0;for(;p!==i;)m+=s[p++],p=p%t;if(i=(i+1)%t,i===r&&(r=(r+1)%t),f-o<e)return;const _=h&&f-h;return _?Math.round(m*1e3/_):void 0}}function ML(t,e){let s=0,n=1e3/e,i,r;const o=(f,h=Date.now())=>{s=h,i=null,r&&(clearTimeout(r),r=null),t(...f)};return[(...f)=>{const h=Date.now(),p=h-s;p>=n?o(f,h):(i=f,r||(r=setTimeout(()=>{r=null,o(i)},n-p)))},()=>i&&o(i)]}const Ph=(t,e,s=3)=>{let n=0;const i=OL(50,250);return ML(r=>{if(!r||typeof r.loaded!="number")return;const o=r.loaded,a=r.lengthComputable?r.total:void 0,c=a!=null?Math.min(o,a):o,f=Math.max(0,c-n),h=i(f);n=Math.max(n,c);const p={loaded:c,total:a,progress:a?c/a:void 0,bytes:f,rate:h||void 0,estimated:h&&a?(a-c)/h:void 0,event:r,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(p)},s)},bw=(t,e)=>{const s=t!=null;return[n=>e[0]({lengthComputable:s,total:t,loaded:n}),e[1]]},yw=t=>(...e)=>ne.asap(()=>t(...e)),PL=Zs.hasStandardBrowserEnv?((t,e)=>s=>(s=new URL(s,Zs.origin),t.protocol===s.protocol&&t.host===s.host&&(e||t.port===s.port)))(new URL(Zs.origin),Zs.navigator&&/(msie|trident)/i.test(Zs.navigator.userAgent)):()=>!0,DL=Zs.hasStandardBrowserEnv?{write(t,e,s,n,i,r,o){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];ne.isNumber(s)&&a.push(`expires=${new Date(s).toUTCString()}`),ne.isString(n)&&a.push(`path=${n}`),ne.isString(i)&&a.push(`domain=${i}`),r===!0&&a.push("secure"),ne.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let s=0;s<e.length;s++){const n=e[s].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===t)return decodeURIComponent(n.slice(i+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function RL(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function IL(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function EE(t,e,s){let n=!RL(e);return t&&(n||s===!1)?IL(t,e):e}const ww=t=>t instanceof kn?{...t}:t;function Oa(t,e){e=e||{};const s=Object.create(null);Object.defineProperty(s,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(f,h,p,m){return ne.isPlainObject(f)&&ne.isPlainObject(h)?ne.merge.call({caseless:m},f,h):ne.isPlainObject(h)?ne.merge({},h):ne.isArray(h)?h.slice():h}function i(f,h,p,m){if(ne.isUndefined(h)){if(!ne.isUndefined(f))return n(void 0,f,p,m)}else return n(f,h,p,m)}function r(f,h){if(!ne.isUndefined(h))return n(void 0,h)}function o(f,h){if(ne.isUndefined(h)){if(!ne.isUndefined(f))return n(void 0,f)}else return n(void 0,h)}function a(f,h,p){if(ne.hasOwnProp(e,p))return n(f,h);if(ne.hasOwnProp(t,p))return n(void 0,f)}const c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:a,headers:(f,h,p)=>i(ww(f),ww(h),p,!0)};return ne.forEach(Object.keys({...t,...e}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=ne.hasOwnProp(c,h)?c[h]:i,m=ne.hasOwnProp(t,h)?t[h]:void 0,_=ne.hasOwnProp(e,h)?e[h]:void 0,v=p(m,_,h);ne.isUndefined(v)&&p!==a||(s[h]=v)}),s}const LL=["content-type","content-length"];function NL(t,e,s){if(s!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,i])=>{LL.includes(n.toLowerCase())&&t.set(n,i)})}const VL=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,s)=>String.fromCharCode(parseInt(s,16)));function CE(t){const e=Oa({},t),s=m=>ne.hasOwnProp(e,m)?e[m]:void 0,n=s("data");let i=s("withXSRFToken");const r=s("xsrfHeaderName"),o=s("xsrfCookieName");let a=s("headers");const c=s("auth"),f=s("baseURL"),h=s("allowAbsoluteUrls"),p=s("url");if(e.headers=a=kn.from(a),e.url=yE(EE(f,p,h),s("params"),s("paramsSerializer")),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?VL(c.password):""))),ne.isFormData(n)&&(Zs.hasStandardBrowserEnv||Zs.hasStandardBrowserWebWorkerEnv||ne.isReactNative(n)?a.setContentType(void 0):ne.isFunction(n.getHeaders)&&NL(a,n.getHeaders(),s("formDataHeaderPolicy"))),Zs.hasStandardBrowserEnv&&(ne.isFunction(i)&&(i=i(e)),i===!0||i==null&&PL(e.url))){const _=r&&o&&DL.read(o);_&&a.set(r,_)}return e}const FL=typeof XMLHttpRequest<"u",BL=FL&&function(t){return new Promise(function(s,n){const i=CE(t);let r=i.data;const o=kn.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:f}=i,h,p,m,_,v;function b(){_&&_(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(i.method.toUpperCase(),i.url,!0),S.timeout=i.timeout;function C(){if(!S)return;const A=kn.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),T={data:!a||a==="text"||a==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:A,config:t,request:S};SE(function(B){s(B),b()},function(B){n(B),b()},T),S=null}"onloadend"in S?S.onloadend=C:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(C)},S.onabort=function(){S&&(n(new Ze("Request aborted",Ze.ECONNABORTED,t,S)),b(),S=null)},S.onerror=function($){const T=$&&$.message?$.message:"Network Error",D=new Ze(T,Ze.ERR_NETWORK,t,S);D.event=$||null,n(D),b(),S=null},S.ontimeout=function(){let $=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||ub;i.timeoutErrorMessage&&($=i.timeoutErrorMessage),n(new Ze($,T.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,t,S)),b(),S=null},r===void 0&&o.setContentType(null),"setRequestHeader"in S&&ne.forEach(gE(o),function($,T){S.setRequestHeader(T,$)}),ne.isUndefined(i.withCredentials)||(S.withCredentials=!!i.withCredentials),a&&a!=="json"&&(S.responseType=i.responseType),f&&([m,v]=Ph(f,!0),S.addEventListener("progress",m)),c&&S.upload&&([p,_]=Ph(c),S.upload.addEventListener("progress",p),S.upload.addEventListener("loadend",_)),(i.cancelToken||i.signal)&&(h=A=>{S&&(n(!A||A.type?new ld(null,t,S):A),S.abort(),b(),S=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const O=TL(i.url);if(O&&!Zs.protocols.includes(O)){n(new Ze("Unsupported protocol "+O+":",Ze.ERR_BAD_REQUEST,t));return}S.send(r||null)})},UL=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const s=new AbortController;let n=!1;const i=function(c){if(!n){n=!0,o();const f=c instanceof Error?c:this.reason;s.abort(f instanceof Ze?f:new ld(f instanceof Error?f.message:f))}};let r=e&&setTimeout(()=>{r=null,i(new Ze(`timeout of ${e}ms exceeded`,Ze.ETIMEDOUT))},e);const o=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),t=null)};t.forEach(c=>c.addEventListener("abort",i));const{signal:a}=s;return a.unsubscribe=()=>ne.asap(o),a},qL=function*(t,e){let s=t.byteLength;if(s<e){yield t;return}let n=0,i;for(;n<s;)i=n+e,yield t.slice(n,i),n=i},HL=async function*(t,e){for await(const s of jL(t))yield*qL(s,e)},jL=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()}},xw=(t,e,s,n)=>{const i=HL(t,e);let r=0,o,a=c=>{o||(o=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:f,value:h}=await i.next();if(f){a(),c.close();return}let p=h.byteLength;if(s){let m=r+=p;s(m)}c.enqueue(new Uint8Array(h))}catch(f){throw a(f),f}},cancel(c){return a(c),i.return()}},{highWaterMark:2})};function WL(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const s=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(s)){let o=n.length;const a=n.length;for(let _=0;_<a;_++)if(n.charCodeAt(_)===37&&_+2<a){const v=n.charCodeAt(_+1),b=n.charCodeAt(_+2);(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102)&&(o-=2,_+=2)}
7let c=0,f=a-1;const h=_=>_>=2&&n.charCodeAt(_-2)===37&&n.charCodeAt(_-1)===51&&(n.charCodeAt(_)===68||n.charCodeAt(_)===100);f>=0&&(n.charCodeAt(f)===61?(c++,f--):h(f)&&(c++,f-=3)),c===1&&f>=0&&(n.charCodeAt(f)===61||h(f))&&c++;const m=Math.floor(o/4)*3-(c||0);return m>0?m:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let r=0;for(let o=0,a=n.length;o<a;o++){const c=n.charCodeAt(o);if(c<128)r+=1;else if(c<2048)r+=2;else if(c>=55296&&c<=56319&&o+1<a){const f=n.charCodeAt(o+1);f>=56320&&f<=57343?(r+=4,o++):r+=3}else r+=3}return r}const fb="1.17.0",Sw=64*1024,{isFunction:Lf}=ne,zL=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,s)=>String.fromCharCode(parseInt(s,16))),Ew=t=>{if(!ne.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},Cw=(t,...e)=>{try{return!!t(...e)}catch{return!1}},KL=t=>{const e=t.indexOf("://");let s=t;return e!==-1&&(s=s.slice(e+3)),s.includes("@")||s.includes(":")},GL=t=>{const e=ne.global!==void 0&&ne.global!==null?ne.global:globalThis,{ReadableStream:s,TextEncoder:n}=e;t=ne.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:r,Response:o}=t,a=i?Lf(i):typeof fetch=="function",c=Lf(r),f=Lf(o);if(!a)return!1;const h=a&&Lf(s),p=a&&(typeof n=="function"?(C=>O=>C.encode(O))(new n):async C=>new Uint8Array(await new r(C).arrayBuffer())),m=c&&h&&Cw(()=>{let C=!1;const O=new r(Zs.origin,{body:new s,method:"POST",get duplex(){return C=!0,"half"}}),A=O.headers.has("Content-Type");return O.body!=null&&O.body.cancel(),C&&!A}),_=f&&h&&Cw(()=>ne.isReadableStream(new o("").body)),v={stream:_&&(C=>C.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!v[C]&&(v[C]=(O,A)=>{let $=O&&O[C];if($)return $.call(O);throw new Ze(`Response type '${C}' is not supported`,Ze.ERR_NOT_SUPPORT,A)})});const b=async C=>{if(C==null)return 0;if(ne.isBlob(C))return C.size;if(ne.isSpecCompliantForm(C))return(await new r(Zs.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(C)||ne.isArrayBuffer(C))return C.byteLength;if(ne.isURLSearchParams(C)&&(C=C+""),ne.isString(C))return(await p(C)).byteLength},S=async(C,O)=>{const A=ne.toFiniteNumber(C.getContentLength());return A??b(O)};return async C=>{let{url:O,method:A,data:$,signal:T,cancelToken:D,timeout:B,onDownloadProgress:N,onUploadProgress:F,responseType:L,headers:Y,withCredentials:Z="same-origin",fetchOptions:le,maxContentLength:Ce,maxBodyLength:Ee}=CE(C);const he=ne.isNumber(Ce)&&Ce>-1,ye=ne.isNumber(Ee)&&Ee>-1,xe=ue=>ne.hasOwnProp(C,ue)?C[ue]:void 0;let _e=i||fetch;L=L?(L+"").toLowerCase():"text";let ze=UL([T,D&&D.toAbortSignal()],B),je=null;const it=ze&&ze.unsubscribe&&(()=>{ze.unsubscribe()});let es;try{let ue;const $t=xe("auth");if($t){const nt=$t.username||"",ps=$t.password||"";ue={username:nt,password:ps}}if(KL(O)){const nt=new URL(O,Zs.origin);if(!ue&&(nt.username||nt.password)){const ps=Ew(nt.username),K=Ew(nt.password);ue={username:ps,password:K}}(nt.username||nt.password)&&(nt.username="",nt.password="",O=nt.href)}if(ue&&(Y.delete("authorization"),Y.set("Authorization","Basic "+btoa(zL((ue.username||"")+":"+(ue.password||""))))),he&&typeof O=="string"&&O.startsWith("data:")&&WL(O)>Ce)throw new Ze("maxContentLength size of "+Ce+" exceeded",Ze.ERR_BAD_RESPONSE,C,je);if(ye&&A!=="get"&&A!=="head"){const nt=await S(Y,$);if(typeof nt=="number"&&isFinite(nt)&&nt>Ee)throw new Ze("Request body larger than maxBodyLength limit",Ze.ERR_BAD_REQUEST,C,je)}if(F&&m&&A!=="get"&&A!=="head"&&(es=await S(Y,$))!==0){let nt=new r(O,{method:"POST",body:$,duplex:"half"}),ps;if(ne.isFormData($)&&(ps=nt.headers.get("content-type"))&&Y.setContentType(ps),nt.body){const[K,X]=bw(es,Ph(yw(F)));$=xw(nt.body,Sw,K,X)}}ne.isString(Z)||(Z=Z?"include":"omit");const Bt=c&&"credentials"in r.prototype;if(ne.isFormData($)){const nt=Y.getContentType();nt&&/^multipart\/form-data/i.test(nt)&&!/boundary=/i.test(nt)&&Y.delete("content-type")}Y.set("User-Agent","axios/"+fb,!1);const zs={...le,signal:ze,method:A.toUpperCase(),headers:gE(Y.normalize()),body:$,duplex:"half",credentials:Bt?Z:void 0};je=c&&new r(O,zs);let zt=await(c?_e(je,le):_e(O,zs));if(he){const nt=ne.toFiniteNumber(zt.headers.get("content-length"));if(nt!=null&&nt>Ce)throw new Ze("maxContentLength size of "+Ce+" exceeded",Ze.ERR_BAD_RESPONSE,C,je)}const Hs=_&&(L==="stream"||L==="response");if(_&&zt.body&&(N||he||Hs&&it)){const nt={};["status","statusText","headers"].forEach(me=>{nt[me]=zt[me]});const ps=ne.toFiniteNumber(zt.headers.get("content-length")),[K,X]=N&&bw(ps,Ph(yw(N),!0))||[];let fe=0;const $e=me=>{if(he&&(fe=me,fe>Ce))throw new Ze("maxContentLength size of "+Ce+" exceeded",Ze.ERR_BAD_RESPONSE,C,je);K&&K(me)};zt=new o(xw(zt.body,Sw,$e,()=>
vendor: 10,177 bytes, lines 7-16
7{X&&X(),it&&it()}),nt)}L=L||"text";let gs=await v[ne.findKey(v,L)||"text"](zt,C);if(he&&!_&&!Hs){let nt;if(gs!=null&&(typeof gs.byteLength=="number"?nt=gs.byteLength:typeof gs.size=="number"?nt=gs.size:typeof gs=="string"&&(nt=typeof n=="function"?new n().encode(gs).byteLength:gs.length)),typeof nt=="number"&&nt>Ce)throw new Ze("maxContentLength size of "+Ce+" exceeded",Ze.ERR_BAD_RESPONSE,C,je)}return!Hs&&it&&it(),await new Promise((nt,ps)=>{SE(nt,ps,{data:gs,headers:kn.from(zt.headers),status:zt.status,statusText:zt.statusText,config:C,request:je})})}catch(ue){if(it&&it(),ze&&ze.aborted&&ze.reason instanceof Ze){const $t=ze.reason;throw $t.config=C,je&&($t.request=je),ue!==$t&&($t.cause=ue),$t}throw ue&&ue.name==="TypeError"&&/Load failed|fetch/i.test(ue.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,C,je,ue&&ue.response),{cause:ue.cause||ue}):Ze.from(ue,ue&&ue.code,C,je,ue&&ue.response)}}},YL=new Map,kE=t=>{let e=t&&t.env||{};const{fetch:s,Request:n,Response:i}=e,r=[n,i,s];let o=r.length,a=o,c,f,h=YL;for(;a--;)c=r[a],f=h.get(c),f===void 0&&h.set(c,f=a?new Map:GL(e)),h=f;return f};kE();const hb={http:hL,xhr:BL,fetch:{get:kE}};ne.forEach(hb,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const kw=t=>`- ${t}`,ZL=t=>ne.isFunction(t)||t===null||t===!1;function XL(t,e){t=ne.isArray(t)?t:[t];const{length:s}=t;let n,i;const r={};for(let o=0;o<s;o++){n=t[o];let a;if(i=n,!ZL(n)&&(i=hb[(a=String(n)).toLowerCase()],i===void 0))throw new Ze(`Unknown adapter '${a}'`);if(i&&(ne.isFunction(i)||(i=i.get(e))))break;r[a||"#"+o]=i}if(!i){const o=Object.entries(r).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=s?o.length>1?`since : 8`+o.map(kw).join(` 9`):" "+kw(o[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const AE={getAdapter:XL,adapters:hb};function y_(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ld(null,t)}function Aw(t){return y_(t),t.headers=kn.from(t.headers),t.data=b_.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),AE.getAdapter(t.adapter||ad.adapter,t)(t).then(function(n){y_(t),t.response=n;try{n.data=b_.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=kn.from(n.headers),n},function(n){if(!xE(n)&&(y_(t),n&&n.response)){t.response=n.response;try{n.response.data=b_.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=kn.from(n.response.headers)}return Promise.reject(n)})}const Tp={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Tp[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const $w={};Tp.transitional=function(e,s,n){function i(r,o){return"[Axios v"+fb+"] Transitional option '"+r+"'"+o+(n?". "+n:"")}return(r,o,a)=>{if(e===!1)throw new Ze(i(o," has been removed"+(s?" in "+s:"")),Ze.ERR_DEPRECATED);return s&&!$w[o]&&($w[o]=!0,console.warn(i(o," has been deprecated since v"+s+" and will be removed in the near future"))),e?e(r,o,a):!0}};Tp.spelling=function(e){return(s,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function JL(t,e,s){if(typeof t!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const r=n[i],o=Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;if(o){const a=t[r],c=a===void 0||o(a,r,t);if(c!==!0)throw new Ze("option "+r+" must be "+c,Ze.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new Ze("Unknown option "+r,Ze.ERR_BAD_OPTION)}}const mh={assertOptions:JL,validators:Tp},Ln=mh.validators;let ba=class{constructor(e){this.defaults=e||{},this.interceptors={request:new vw,response:new vw}}async request(e,s){try{return await this._request(e,s)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const r=(()=>{if(!i.stack)return"";const o=i.stack.indexOf(` 10`);return o===-1?"":i.stack.slice(o+1)})();try{if(!n.stack)n.stack=r;else if(r){const o=r.indexOf(` 11`),a=o===-1?-1:r.indexOf(` 12`,o+1),c=a===-1?"":r.slice(a+1);String(n.stack).endsWith(c)||(n.stack+=` 13`+r)}}catch{}}throw n}}_request(e,s){typeof e=="string"?(s=s||{},s.url=e):s=e||{},s=Oa(this.defaults,s);const{transitional:n,paramsSerializer:i,headers:r}=s;n!==void 0&&mh.assertOptions(n,{silentJSONParsing:Ln.transitional(Ln.boolean),forcedJSONParsing:Ln.transitional(Ln.boolean),clarifyTimeoutError:Ln.transitional(Ln.boolean),legacyInterceptorReqResOrdering:Ln.transitional(Ln.boolean),advertiseZstdAcceptEncoding:Ln.transitional(Ln.boolean)},!1),i!=null&&(ne.isFunction(i)?s.paramsSerializer={serialize:i}:mh.assertOptions(i,{encode:Ln.function,serialize:Ln.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),mh.assertOptions(s,{baseUrl:Ln.spelling("baseURL"),withXsrfToken:Ln.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let o=r&&ne.merge(r.common,r[s.method]);r&&ne.forEach(["delete","get","head","post","put","patch","query","common"],v=>{delete r[v]}),s.headers=kn.concat(o,r);const a=[];let c=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(s)===!1)return;c=c&&b.synchronous;const S=s.transitional||ub;S&&S.legacyInterceptorReqResOrdering?a.unshift(b.fulfilled,b.rejected):a.push(b.fulfilled,b.rejected)});const f=[];this.interceptors.response.forEach(function(b){f.push(b.fulfilled,b.rejected)});let h,p=0,m;if(!c){const v=[Aw.bind(this),void 0];for(v.unshift(...a),v.push(...f),m=v.length,h=Promise.resolve(s);p<m;)h=h.then(v[p++],v[p++]);return h}m=a.length;let _=s;for(;p<m;){const v=a[p++],b=a[p++];try{_=v(_)}catch(S){b.call(this,S);break}}try{h=Aw.call(this,_)}catch(v){return Promise.reject(v)}for(p=0,m=f.length;p<m;)h=h.then(f[p++],f[p++]);return h}getUri(e){e=Oa(this.defaults,e);const s=EE(e.baseURL,e.url,e.allowAbsoluteUrls);return yE(s,e.params,e.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(e){ba.prototype[e]=function(s,n){return this.request(Oa(n||{},{method:e,url:s,data:(n||{}).data}))}});ne.forEach(["post","put","patch","query"],function(e){function s(n){return function(r,o,a){return this.request(Oa(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ba.prototype[e]=s(),e!=="query"&&(ba.prototype[e+"Form"]=s(!0))});let QL=class $E{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(r){s=r});const n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r;const o=new Promise(a=>{n.subscribe(a),r=a}).then(i);return o.cancel=function(){n.unsubscribe(r)},o},e(function(r,o,a){n.reason||(n.reason=new ld(r,o,a),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 $E(function(i){e=i}),cancel:e}}};function eN(t){return function(s){return t.apply(null,s)}}function tN(t){return ne.isObject(t)&&t.isAxiosError===!0}const cv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent: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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cv).forEach(([t,e])=>{cv[e]=t});function TE(t){const e=new ba(t),s=lE(ba.prototype.request,e);return ne.extend(s,ba.prototype,e,{allOwnKeys:!0}),ne.extend(s,e,null,{allOwnKeys:!0}),s.create=function(i){return TE(Oa(t,i))},s}const Lt=TE(ad);Lt.Axios=ba;Lt.CanceledError=ld;Lt.CancelToken=QL;Lt.isCancel=xE;Lt.VERSION=fb;Lt.toFormData=$p;Lt.AxiosError=Ze;Lt.Cancel=Lt.CanceledError;Lt.all=function(e){return Promise.all(e)};Lt.spread=eN;Lt.isAxiosError=tN;Lt.mergeConfig=Oa;Lt.AxiosHeaders=kn;Lt.formToJSON=t=>wE(ne.isHTMLForm(t)?new FormData(t):t);Lt.getAdapter=AE.getAdapter;Lt.HttpStatusCode=cv;Lt.default=Lt;const{Axios:Vge,AxiosError:Fge,CanceledError:Bge,isCancel:Uge,CancelToken:qge,VERSION:Hge,all:jge,Cancel:Wge,isAxiosError:zge,spread:Kge,toFormData:Gge,AxiosHeaders:Yge,HttpStatusCode:Zge,formToJSON:Xge,getAdapter:Jge,mergeConfig:Qge,create:e_e}=Lt;window.axios=Lt;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";/** 14* @vue/shared v3.5.13 15* (c) 2018-present Yuxi (Evan) You and Vue contributors 16* @license MIT
17**//*! #__NO_SIDE_EFFECTS__ */function ui(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const Pt={},Ml=[],Qs=()=>{},ou=()=>!1,Fa=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),pb=t=>t.startsWith("onUpdate:"),Dt=Object.assign,mb=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},sN=Object.prototype.hasOwnProperty,jt=(t,e)=>sN.call(t,e),We=Array.isArray,Pl=t=>rc(t)==="[object Map]",Ba=t=>rc(t)==="[object Set]",Tw=t=>rc(t)==="[object Date]",nN=t=>rc(t)==="[object RegExp]",dt=t=>typeof t=="function",mt=t=>typeof t=="string",Zn=t=>typeof t=="symbol",Qt=t=>t!==null&&typeof t=="object",gb=t=>(Qt(t)||dt(t))&&dt(t.then)&&dt(t.catch),OE=Object.prototype.toString,rc=t=>OE.call(t),iN=t=>rc(t).slice(8,-1),Op=t=>rc(t)==="[object Object]",_b=t=>mt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Eo=ui(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rN=ui("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Mp=t=>{const e=Object.create(null);return s=>e[s]||(e[s]=t(s))},oN=/-(\w)/g,ls=Mp(t=>t.replace(oN,(e,s)=>s?s.toUpperCase():"")),aN=/\B([A-Z])/g,Hn=Mp(t=>t.replace(aN,"-$1").toLowerCase()),Fo=Mp(t=>t.charAt(0).toUpperCase()+t.slice(1)),ya=Mp(t=>t?`on${Fo(t)}`:""),xn=(t,e)=>!Object.is(t,e),Dl=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},ME=(t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})},Dh=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Rh=t=>{const e=mt(t)?Number(t):NaN;return isNaN(e)?t:e};let Ow;const Pp=()=>Ow||(Ow=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lN(t,e){return t+JSON.stringify(e,(s,n)=>typeof n=="function"?n.toString():n)}const cN="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",uN=ui(cN);function qr(t){if(We(t)){const e={};for(let s=0;s<t.length;s++){const n=t[s],i=mt(n)?PE(n):qr(n);if(i)for(const r in i)e[r]=i[r]}return e}else if(mt(t)||Qt(t))return t}const dN=/;(?![^(]*\))/g,fN=/:([^]+)/,hN=/\/\*[^]*?\*\//g;function PE(t){const e={};return t.replace(hN,"").split(dN).forEach(s=>{if(s){const n=s.split(fN);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ve(t){let e="";if(mt(t))e=t;else if(We(t))for(let s=0;s<t.length;s++){const n=Ve(t[s]);n&&(e+=n+" ")}else if(Qt(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}function DE(t){if(!t)return null;let{class:e,style:s}=t;return e&&!mt(e)&&(t.class=Ve(e)),s&&(t.style=qr(s)),t}const pN="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",mN="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",gN="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",_N="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",vN=ui(pN),bN=ui(mN),yN=ui(gN),wN=ui(_N),xN="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",SN=ui(xN);function RE(t){return!!t||t===""}function EN(t,e){if(t.length!==e.length)return!1;let s=!0;for(let n=0;s&&n<t.length;n++)s=Po(t[n],e[n]);return s}function Po(t,e){if(t===e)return!0;let s=Tw(t),n=Tw(e);if(s||n)return s&&n?t.getTime()===e.getTime():!1;if(s=Zn(t),n=Zn(e),s||n)return t===e;if(s=We(t),n=We(e),s||n)return s&&n?EN(t,e):!1;if(s=Qt(t),n=Qt(e),s||n){if(!s||!n)return!1;const i=Object.keys(t).length,r=Object.keys(e).length;if(i!==r)return!1;for(const o in t){const a=t.hasOwnProperty(o),c=e.hasOwnProperty(o);if(a&&!c||!a&&c||!Po(t[o],e[o]))return!1}}return String(t)===String(e)}function Dp(t,e){return t.findIndex(s=>Po(s,e))}const IE=t=>!!(t&&t.__v_isRef===!0),P=t=>mt(t)?t:t==null?"":We(t)||Qt(t)&&(t.toString===OE||!dt(t.toString))?IE(t)?P(t.value):JSON.stringify(t,LE,2):String(t),LE=(t,e)=>IE(e)?LE(t,e.value):Pl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[n,i],r)=>(s[w_(n,r)+" =>"]=i,s),{})}:Ba(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>w_(s))}:Zn(e)?w_(e):Qt(e)&&!We(e)&&!Op(e)?String(e):e,w_=(t,e="")=>{var s;return Zn(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};/** 18* @vue/reactivity v3.5.13 19* (c) 2018-present Yuxi (Evan) You and Vue contributors 20* @license MIT
vendor: 5,276 bytes, line 21
21**/let wn;class Rp{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wn,!e&&wn&&(this.index=(wn.scopes||(wn.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=wn;try{return wn=this,e()}finally{wn=s}}}on(){wn=this}off(){wn=this.parent}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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Ip(t){return new Rp(t)}function Lp(){return wn}function vb(t,e=!1){wn&&wn.cleanups.push(t)}let as;const x_=new WeakSet;class jl{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,wn&&wn.active&&wn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,x_.has(this)&&(x_.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||VE(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Mw(this),FE(this);const e=as,s=Hi;as=this,Hi=!0;try{return this.fn()}finally{BE(this),as=e,Hi=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)wb(e);this.deps=this.depsTail=void 0,Mw(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?x_.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){uv(this)&&this.run()}get dirty(){return uv(this)}}let NE=0,bu,yu;function VE(t,e=!1){if(t.flags|=8,e){t.next=yu,yu=t;return}t.next=bu,bu=t}function bb(){NE++}function yb(){if(--NE>0)return;if(yu){let e=yu;for(yu=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;bu;){let e=bu;for(bu=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 FE(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function BE(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),wb(n),CN(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function uv(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(UE(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function UE(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ru))return;t.globalVersion=Ru;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!uv(t)){t.flags&=-3;return}const s=as,n=Hi;as=t,Hi=!0;try{FE(t);const i=t.fn(t._value);(e.version===0||xn(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{as=s,Hi=n,BE(t),t.flags&=-3}}function wb(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)wb(r,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function CN(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}function qE(t,e){t.effect instanceof jl&&(t=t.effect.fn);const s=new jl(t);e&&Dt(s,e);try{s.run()}catch(i){throw s.stop(),i}const n=s.run.bind(s);return n.effect=s,n}function HE(t){t.effect.stop()}let Hi=!0;const jE=[];function Bo(){jE.push(Hi),Hi=!1}function Uo(){const t=jE.pop();Hi=t===void 0?!0:t}function Mw(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=as;as=void 0;try{e()}finally{as=s}}}let Ru=0;class kN{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 Np{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}track(e){if(!as||!Hi||as===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==as)s=this.activeLink=new kN(as,this),as.deps?(s.prevDep=as.depsTail,as.depsTail.nextDep=s,as.depsTail=s):as.deps=as.depsTail=s,WE(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=as.depsTail,s.nextDep=void 0,as.depsTail.nextDep=s,as.depsTail=s,as.deps===s&&(as.deps=n)}return s}trigger(e){this.version++,Ru++,this.notify(e)}notify(e){bb();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{yb()}}}function WE(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)WE(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}
vendor: 5,444 bytes, line 21
21const Ih=new WeakMap,wa=Symbol(""),dv=Symbol(""),Iu=Symbol("");function cn(t,e,s){if(Hi&&as){let n=Ih.get(t);n||Ih.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new Np),i.map=n,i.key=s),i.track()}}function Nr(t,e,s,n,i,r){const o=Ih.get(t);if(!o){Ru++;return}const a=c=>{c&&c.trigger()};if(bb(),e==="clear")o.forEach(a);else{const c=We(t),f=c&&_b(s);if(c&&s==="length"){const h=Number(n);o.forEach((p,m)=>{(m==="length"||m===Iu||!Zn(m)&&m>=h)&&a(p)})}else switch((s!==void 0||o.has(void 0))&&a(o.get(s)),f&&a(o.get(Iu)),e){case"add":c?f&&a(o.get("length")):(a(o.get(wa)),Pl(t)&&a(o.get(dv)));break;case"delete":c||(a(o.get(wa)),Pl(t)&&a(o.get(dv)));break;case"set":Pl(t)&&a(o.get(wa));break}}yb()}function AN(t,e){const s=Ih.get(t);return s&&s.get(e)}function gl(t){const e=St(t);return e===t?e:(cn(e,"iterate",Iu),Yn(t)?e:e.map(un))}function Vp(t){return cn(t=St(t),"iterate",Iu),t}const $N={__proto__:null,[Symbol.iterator](){return S_(this,Symbol.iterator,un)},concat(...t){return gl(this).concat(...t.map(e=>We(e)?gl(e):e))},entries(){return S_(this,"entries",t=>(t[1]=un(t[1]),t))},every(t,e){return Tr(this,"every",t,e,void 0,arguments)},filter(t,e){return Tr(this,"filter",t,e,s=>s.map(un),arguments)},find(t,e){return Tr(this,"find",t,e,un,arguments)},findIndex(t,e){return Tr(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Tr(this,"findLast",t,e,un,arguments)},findLastIndex(t,e){return Tr(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Tr(this,"forEach",t,e,void 0,arguments)},includes(...t){return E_(this,"includes",t)},indexOf(...t){return E_(this,"indexOf",t)},join(t){return gl(this).join(t)},lastIndexOf(...t){return E_(this,"lastIndexOf",t)},map(t,e){return Tr(this,"map",t,e,void 0,arguments)},pop(){return Yc(this,"pop")},push(...t){return Yc(this,"push",t)},reduce(t,...e){return Pw(this,"reduce",t,e)},reduceRight(t,...e){return Pw(this,"reduceRight",t,e)},shift(){return Yc(this,"shift")},some(t,e){return Tr(this,"some",t,e,void 0,arguments)},splice(...t){return Yc(this,"splice",t)},toReversed(){return gl(this).toReversed()},toSorted(t){return gl(this).toSorted(t)},toSpliced(...t){return gl(this).toSpliced(...t)},unshift(...t){return Yc(this,"unshift",t)},values(){return S_(this,"values",un)}};function S_(t,e,s){const n=Vp(t),i=n[e]();return n!==t&&!Yn(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=s(r.value)),r}),i}const TN=Array.prototype;function Tr(t,e,s,n,i,r){const o=Vp(t),a=o!==t&&!Yn(t),c=o[e];if(c!==TN[e]){const p=c.apply(t,r);return a?un(p):p}let f=s;o!==t&&(a?f=function(p,m){return s.call(this,un(p),m,t)}:s.length>2&&(f=function(p,m){return s.call(this,p,m,t)}));const h=c.call(o,f,n);return a&&i?i(h):h}function Pw(t,e,s,n){const i=Vp(t);let r=s;return i!==t&&(Yn(t)?s.length>3&&(r=function(o,a,c){return s.call(this,o,a,c,t)}):r=function(o,a,c){return s.call(this,o,un(a),c,t)}),i[e](r,...n)}function E_(t,e,s){const n=St(t);cn(n,"iterate",Iu);const i=n[e](...s);return(i===-1||i===!1)&&qa(s[0])?(s[0]=St(s[0]),n[e](...s)):i}function Yc(t,e,s=[]){Bo(),bb();const n=St(t)[e].apply(t,s);return yb(),Uo(),n}const ON=ui("__proto__,__v_isRef,__isVue"),zE=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Zn));function MN(t){Zn(t)||(t=String(t));const e=St(this);return cn(e,"has",t),e.hasOwnProperty(t)}class KE{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?QE:JE:r?XE:ZE).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=We(e);if(!i){let c;if(o&&(c=$N[s]))return c;if(s==="hasOwnProperty")return MN}const a=Reflect.get(e,s,ft(e)?e:n);return(Zn(s)?zE.has(s):ON(s))||(i||cn(e,"get",s),r)?a:ft(a)?o&&_b(s)?a:a.value:Qt(a)?i?Bp(a):Ua(a):a}}class GE extends KE{constructor(e=!1){super(!1,e)}set(e,s,n,i){let r=e[s];if(!this._isShallow){const c=zr(r);if(!Yn(n)&&!zr(n)&&(r=St(r),n=St(n)),!We(e)&&ft(r)&&!ft(n))return c?!1:(r.value=n,!0)}const o=We(e)&&_b(s)?Number(s)<e.length:jt(e,s),a=Reflect.set(e,s,n,ft(e)?e:i);return e===St(i)&&(o?xn(n,r)&&Nr(e,"set",s,n):Nr(e,"add",s,n)),a}deleteProperty(e,s){const n=jt(e,s);e[s];const i=Reflect.deleteProperty(e,s);return i&&n&&Nr(e,"delete",s,void 0),i}has(e,s){const n=Reflect.has(e,s);return(!Zn(s)||!zE.has(s))&&cn(e,"has",s),n}ownKeys(e){return cn(e,"iterate",We(e)?"length":wa),Reflect.ownKeys(e)}}class YE extends KE{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const PN=new GE,DN=new YE,RN=new GE(!0),IN=new YE(!0),fv=t=>t,Nf=t=>Reflect.getPrototypeOf(t);function LN(t,e,s){return function(...n){const i=this.__v_raw,r=St(i),o=Pl(r),a=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,f=i[t](...n),h=s?fv:e?hv:un;return!e&&cn(r,"iterate",c?dv:wa),{next(){const{value:p,done:m}=f.next();return m?{value:p,done:m}:{value:a?[h(p[0]),h(p[1])]:h(p),done:m}},[Symbol.iterator](){return this}}}}function Vf(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function NN(t,e){const s={get(i){const r=this.__v_raw,o=St(r),a=St(i);t||(xn(i,a)&&cn(o,"get",i),cn(o,"get",a));const{has:c}=Nf(o),f=e?fv:t?hv:un;if(c.call(o,i))return f(r.get(i));if(c.call(o,a))return f(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;
vendor: 5,199 bytes, line 21
21return!t&&cn(St(i),"iterate",wa),Reflect.get(i,"size",i)},has(i){const r=this.__v_raw,o=St(r),a=St(i);return t||(xn(i,a)&&cn(o,"has",i),cn(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,c=St(a),f=e?fv:t?hv:un;return!t&&cn(c,"iterate",wa),a.forEach((h,p)=>i.call(r,f(h),f(p),o))}};return Dt(s,t?{add:Vf("add"),set:Vf("set"),delete:Vf("delete"),clear:Vf("clear")}:{add(i){!e&&!Yn(i)&&!zr(i)&&(i=St(i));const r=St(this);return Nf(r).has.call(r,i)||(r.add(i),Nr(r,"add",i,i)),this},set(i,r){!e&&!Yn(r)&&!zr(r)&&(r=St(r));const o=St(this),{has:a,get:c}=Nf(o);let f=a.call(o,i);f||(i=St(i),f=a.call(o,i));const h=c.call(o,i);return o.set(i,r),f?xn(r,h)&&Nr(o,"set",i,r):Nr(o,"add",i,r),this},delete(i){const r=St(this),{has:o,get:a}=Nf(r);let c=o.call(r,i);c||(i=St(i),c=o.call(r,i)),a&&a.call(r,i);const f=r.delete(i);return c&&Nr(r,"delete",i,void 0),f},clear(){const i=St(this),r=i.size!==0,o=i.clear();return r&&Nr(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=LN(i,t,e)}),s}function Fp(t,e){const s=NN(t,e);return(n,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(jt(s,i)&&i in n?s:n,i,r)}const VN={get:Fp(!1,!1)},FN={get:Fp(!1,!0)},BN={get:Fp(!0,!1)},UN={get:Fp(!0,!0)},ZE=new WeakMap,XE=new WeakMap,JE=new WeakMap,QE=new WeakMap;function qN(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function HN(t){return t.__v_skip||!Object.isExtensible(t)?0:qN(iN(t))}function Ua(t){return zr(t)?t:Up(t,!1,PN,VN,ZE)}function xb(t){return Up(t,!1,RN,FN,XE)}function Bp(t){return Up(t,!0,DN,BN,JE)}function eC(t){return Up(t,!0,IN,UN,QE)}function Up(t,e,s,n,i){if(!Qt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=i.get(t);if(r)return r;const o=HN(t);if(o===0)return t;const a=new Proxy(t,o===2?n:s);return i.set(t,a),a}function $i(t){return zr(t)?$i(t.__v_raw):!!(t&&t.__v_isReactive)}function zr(t){return!!(t&&t.__v_isReadonly)}function Yn(t){return!!(t&&t.__v_isShallow)}function qa(t){return t?!!t.__v_raw:!1}function St(t){const e=t&&t.__v_raw;return e?St(e):t}function cd(t){return!jt(t,"__v_skip")&&Object.isExtensible(t)&&ME(t,"__v_skip",!0),t}const un=t=>Qt(t)?Ua(t):t,hv=t=>Qt(t)?Bp(t):t;function ft(t){return t?t.__v_isRef===!0:!1}function W(t){return tC(t,!1)}function ud(t){return tC(t,!0)}function tC(t,e){return ft(t)?t:new jN(t,e)}class jN{constructor(e,s){this.dep=new Np,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:St(e),this._value=s?e:un(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||Yn(e)||zr(e);e=n?e:St(e),xn(e,s)&&(this._rawValue=e,this._value=n?e:un(e),this.dep.trigger())}}function sC(t){t.dep&&t.dep.trigger()}function w(t){return ft(t)?t.value:t}function nC(t){return dt(t)?t():w(t)}const WN={get:(t,e,s)=>e==="__v_raw"?t:w(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return ft(i)&&!ft(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function qp(t){return $i(t)?t:new Proxy(t,WN)}class zN{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new Np,{get:n,set:i}=e(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Sb(t){return new zN(t)}function Eb(t){const e=We(t)?new Array(t.length):{};for(const s in t)e[s]=iC(t,s);return e}class KN{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 AN(St(this._object),this._key)}}class GN{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 Cb(t,e,s){return ft(t)?t:dt(t)?new GN(t):Qt(t)&&arguments.length>1?iC(t,e,s):W(t)}function iC(t,e,s){const n=t[e];return ft(n)?n:new KN(t,e,s)}class YN{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new Np(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ru-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&as!==this)return VE(this,!0),!0}get value(){const e=this.dep.track();return UE(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function ZN(t,e,s=!1){let n,i;return dt(t)?n=t:(n=t.get,i=t.set),new YN(n,i,s)}const rC={GET:"get",HAS:"has",ITERATE:"iterate"},oC={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Ff={},Lh=new WeakMap;let po;function aC(){return po}function kb(t,e=!1,s=po){if(s){let n=Lh.get(s);n||Lh.set(s,n=[]),n.push(t)}}function XN(t,e,s=Pt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:a,call:c}=s,f=$=>i?$:Yn($)||i===!1||i===0?Vr($,1):Vr($);let h,p,m,_,v=!1,b=!1;if(ft(t)?(p=()=>t.value,v=Yn(t)):$i(t)?(p=()=>f(t),v=!0):We(t)?(b=!0,v=t.some($=>$i($)||Yn($)),p=()=>t.map($=>{if(ft($))return $.value;if($i($))return f($);if(dt($))return c?c($,2):$()})):dt(t)?e?p=c?()=>c(t,2):t:p=()=>
21{if(m){Bo();try{m()}finally{Uo()}}const $=po;po=h;try{return c?c(t,3,[_]):t(_)}finally{po=$}}:p=Qs,e&&i){const $=p,T=i===!0?1/0:i;p=()=>Vr($(),T)}const S=Lp(),C=()=>{h.stop(),S&&S.active&&mb(S.effects,h)};if(r&&e){const $=e;e=(...T)=>{$(...T),C()}}let O=b?new Array(t.length).fill(Ff):Ff;const A=$=>{if(!(!(h.flags&1)||!h.dirty&&!$))if(e){const T=h.run();if(i||v||(b?T.some((D,B)=>xn(D,O[B])):xn(T,O))){m&&m();const D=po;po=h;try{const B=[T,O===Ff?void 0:b&&O[0]===Ff?[]:O,_];c?c(e,3,B):e(...B),O=T}finally{po=D}}}else h.run()};return a&&a(A),h=new jl(p),h.scheduler=o?()=>o(A,!1):A,_=$=>kb($,!1,h),m=h.onStop=()=>{const $=Lh.get(h);if($){if(c)c($,4);else for(const T of $)T();Lh.delete(h)}},e?n?A(!0):O=h.run():o?o(A.bind(null,!0),!0):h.run(),C.pause=h.pause.bind(h),C.resume=h.resume.bind(h),C.stop=C,C}function Vr(t,e=1/0,s){if(e<=0||!Qt(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,ft(t))Vr(t.value,e,s);else if(We(t))for(let n=0;n<t.length;n++)Vr(t[n],e,s);else if(Ba(t)||Pl(t))t.forEach(n=>{Vr(n,e,s)});else if(Op(t)){for(const n in t)Vr(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&Vr(t[n],e,s)}return t}/** 22* @vue/runtime-core v3.5.13 23* (c) 2018-present Yuxi (Evan) You and Vue contributors 24* @license MIT
25**/const lC=[];function JN(t){lC.push(t)}function QN(){lC.pop()}function cC(t,e){}const uC={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"},eV={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 Ha(t,e,s,n){try{return n?t(...n):t()}catch(i){qo(i,e,s)}}function li(t,e,s,n){if(dt(t)){const i=Ha(t,e,s,n);return i&&gb(i)&&i.catch(r=>{qo(r,e,s)}),i}if(We(t)){const i=[];for(let r=0;r<t.length;r++)i.push(li(t[r],e,s,n));return i}}function qo(t,e,s,n=!0){const i=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Pt;if(e){let a=e.parent;const c=e.proxy,f=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const h=a.ec;if(h){for(let p=0;p<h.length;p++)if(h[p](t,c,f)===!1)return}a=a.parent}if(r){Bo(),Ha(r,null,10,[t,c,f]),Uo();return}}tV(t,s,i,n,o)}function tV(t,e,s,n=!0,i=!1){if(i)throw t;console.error(t)}const Sn=[];let ir=-1;const Rl=[];let mo=null,Al=0;const dC=Promise.resolve();let Nh=null;function Xr(t){const e=Nh||dC;return t?e.then(this?t.bind(this):t):e}function sV(t){let e=ir+1,s=Sn.length;for(;e<s;){const n=e+s>>>1,i=Sn[n],r=Lu(i);r<t||r===t&&i.flags&2?e=n+1:s=n}return e}function Ab(t){if(!(t.flags&1)){const e=Lu(t),s=Sn[Sn.length-1];!s||!(t.flags&2)&&e>=Lu(s)?Sn.push(t):Sn.splice(sV(e),0,t),t.flags|=1,fC()}}function fC(){Nh||(Nh=dC.then(hC))}function Wl(t){We(t)?Rl.push(...t):mo&&t.id===-1?mo.splice(Al+1,0,t):t.flags&1||(Rl.push(t),t.flags|=1),fC()}function Dw(t,e,s=ir+1){for(;s<Sn.length;s++){const n=Sn[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Sn.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Vh(t){if(Rl.length){const e=[...new Set(Rl)].sort((s,n)=>Lu(s)-Lu(n));if(Rl.length=0,mo){mo.push(...e);return}for(mo=e,Al=0;Al<mo.length;Al++){const s=mo[Al];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}mo=null,Al=0}}const Lu=t=>t.id==null?t.flags&2?-1:1/0:t.id;function hC(t){try{for(ir=0;ir<Sn.length;ir++){const e=Sn[ir];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ha(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ir<Sn.length;ir++){const e=Sn[ir];e&&(e.flags&=-2)}ir=-1,Sn.length=0,Vh(),Nh=null,(Sn.length||Rl.length)&&hC()}}let $l,Bf=[];function pC(t,e){var s,n;$l=t,$l?($l.enabled=!0,Bf.forEach(({event:i,args:r})=>$l.emit(i,...r)),Bf=[]):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(r=>{pC(r,e)}),setTimeout(()=>{$l||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bf=[])},3e3)):Bf=[]}let Us=null,Hp=null;function Nu(t){const e=Us;return Us=t,Hp=t&&t.type.__scopeId||null,e}function mC(t){Hp=t}function gC(){Hp=null}const _C=t=>Fe;function Fe(t,e=Us,s){if(!e||t._n)return t;const n=(...i)=>{n._d&&Hh(-1);const r=Nu(e);let o;try{o=t(...i)}finally{Nu(r),n._d&&Hh(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ge(t,e){if(Us===null)return t;const s=gd(Us),n=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[r,o,a,c=Pt]=e[i];r&&(dt(r)&&(r={mounted:r,updated:r}),r.deep&&Vr(o),n.push({dir:r,instance:s,value:o,oldValue:void 0,arg:a,modifiers:c}))}return t}function or(t,e,s,n){const i=t.dirs,r=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let c=a.dir[n];c&&(Bo(),li(c,s,8,[t.el,a,t,e]),Uo())}}const vC=Symbol("_vte"),bC=t=>t.__isTeleport,wu=t=>t&&(t.disabled||t.disabled===""),Rw=t=>t&&(t.defer||t.defer===""),Iw=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Lw=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,pv=(t,e)=>{const s=t&&t.to;return mt(s)?e?e(s):null:s},yC={name:"Teleport",__isTeleport:!0,process(t,e,s,n,i,r,o,a,c,f){const{mc:h,pc:p,pbc:m,o:{insert:_,querySelector:v,createText:b,createComment:S}}=f,C=wu(e.props);let{shapeFlag:O,children:A,dynamicChildren:$}=e;if(t==null){const T=e.el=b(""),D=e.anchor=b("");_(T,s,n),_(D,s,n);const B=(F,L)=>{O&16&&(i&&i.isCE&&(i.ce._teleportTarget=F),h(A,F,L,i,r,o,a,c))},N=()=>{const F=e.target=pv(e.props,v),L=wC(F,e,b,_);F&&(o!=="svg"&&Iw(F)?o="svg":o!=="mathml"&&Lw(F)&&(o="mathml"),C||
vendor: 27,000 bytes, lines 25-26
25(B(F,L),gh(e,!1)))};C&&(B(s,D),gh(e,!0)),Rw(e.props)?Vs(()=>{N(),e.el.__isMounted=!0},r):N()}else{if(Rw(e.props)&&!t.el.__isMounted){Vs(()=>{yC.process(t,e,s,n,i,r,o,a,c,f),delete t.el.__isMounted},r);return}e.el=t.el,e.targetStart=t.targetStart;const T=e.anchor=t.anchor,D=e.target=t.target,B=e.targetAnchor=t.targetAnchor,N=wu(t.props),F=N?s:D,L=N?T:B;if(o==="svg"||Iw(D)?o="svg":(o==="mathml"||Lw(D))&&(o="mathml"),$?(m(t.dynamicChildren,$,F,i,r,o,a),Kb(t,e,!0)):c||p(t,e,F,L,i,r,o,a,!1),C)N?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Uf(e,s,T,f,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const Y=e.target=pv(e.props,v);Y&&Uf(e,Y,null,f,0)}else N&&Uf(e,D,B,f,1);gh(e,C)}},remove(t,e,s,{um:n,o:{remove:i}},r){const{shapeFlag:o,children:a,anchor:c,targetStart:f,targetAnchor:h,target:p,props:m}=t;if(p&&(i(f),i(h)),r&&i(c),o&16){const _=r||!wu(m);for(let v=0;v<a.length;v++){const b=a[v];n(b,e,s,_,!!b.dynamicChildren)}}},move:Uf,hydrate:nV};function Uf(t,e,s,{o:{insert:n},m:i},r=2){r===0&&n(t.targetAnchor,e,s);const{el:o,anchor:a,shapeFlag:c,children:f,props:h}=t,p=r===2;if(p&&n(o,e,s),(!p||wu(h))&&c&16)for(let m=0;m<f.length;m++)i(f[m],e,s,2);p&&n(a,e,s)}function nV(t,e,s,n,i,r,{o:{nextSibling:o,parentNode:a,querySelector:c,insert:f,createText:h}},p){const m=e.target=pv(e.props,c);if(m){const _=wu(e.props),v=m._lpa||m.firstChild;if(e.shapeFlag&16)if(_)e.anchor=p(o(t),e,a(t),s,n,i,r),e.targetStart=v,e.targetAnchor=v&&o(v);else{e.anchor=o(t);let b=v;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")e.targetStart=b;else if(b.data==="teleport anchor"){e.targetAnchor=b,m._lpa=e.targetAnchor&&o(e.targetAnchor);break}}b=o(b)}e.targetAnchor||wC(m,e,h,f),p(v&&o(v),e,m,s,n,i,r)}gh(e,_)}return e.anchor&&o(e.anchor)}const $b=yC;function gh(t,e){const s=t.ctx;if(s&&s.ut){let n,i;for(e?(n=t.el,i=t.anchor):(n=t.targetStart,i=t.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function wC(t,e,s,n){const i=e.targetStart=s(""),r=e.targetAnchor=s("");return i[vC]=r,t&&(n(i,t),n(r,t)),r}const go=Symbol("_leaveCb"),qf=Symbol("_enterCb");function jp(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ds(()=>{t.isMounted=!0}),pd(()=>{t.isUnmounting=!0}),t}const wi=[Function,Array],Wp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wi,onEnter:wi,onAfterEnter:wi,onEnterCancelled:wi,onBeforeLeave:wi,onLeave:wi,onAfterLeave:wi,onLeaveCancelled:wi,onBeforeAppear:wi,onAppear:wi,onAfterAppear:wi,onAppearCancelled:wi},xC=t=>{const e=t.subTree;return e.component?xC(e.component):e},iV={name:"BaseTransition",props:Wp,setup(t,{slots:e}){const s=di(),n=jp();return()=>{const i=e.default&&dd(e.default(),!0);if(!i||!i.length)return;const r=SC(i),o=St(t),{mode:a}=o;if(n.isLeaving)return C_(r);const c=Nw(r);if(!c)return C_(r);let f=Ma(c,o,n,s,p=>f=p);c.type!==Cs&&fr(c,f);let h=s.subTree&&Nw(s.subTree);if(h&&h.type!==Cs&&!qi(c,h)&&xC(s).type!==Cs){let p=Ma(h,o,n,s);if(fr(h,p),a==="out-in"&&c.type!==Cs)return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete p.afterLeave,h=void 0},C_(r);a==="in-out"&&c.type!==Cs?p.delayLeave=(m,_,v)=>{const b=EC(n,h);b[String(h.key)]=h,m[go]=()=>{_(),m[go]=void 0,delete f.delayedLeave,h=void 0},f.delayedLeave=()=>{v(),delete f.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return r}}};function SC(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==Cs){e=s;break}}return e}const Tb=iV;function EC(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 Ma(t,e,s,n,i){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:m,onLeave:_,onAfterLeave:v,onLeaveCancelled:b,onBeforeAppear:S,onAppear:C,onAfterAppear:O,onAppearCancelled:A}=e,$=String(t.key),T=EC(s,t),D=(F,L)=>{F&&li(F,n,9,L)},B=(F,L)=>{const Y=L[1];D(F,L),We(F)?F.every(Z=>Z.length<=1)&&Y():F.length<=1&&Y()},N={mode:o,persisted:a,beforeEnter(F){let L=c;if(!s.isMounted)if(r)L=S||c;else return;F[go]&&F[go](!0);const Y=T[$];Y&&qi(t,Y)&&Y.el[go]&&Y.el[go](),D(L,[F])},enter(F){let L=f,Y=h,Z=p;if(!s.isMounted)if(r)L=C||f,Y=O||h,Z=A||p;else return;let le=!1;const Ce=F[qf]=Ee=>{le||(le=!0,Ee?D(Z,[F]):D(Y,[F]),N.delayedLeave&&N.delayedLeave(),F[qf]=void 0)};L?B(L,[F,Ce]):Ce()},leave(F,L){const Y=String(t.key);if(F[qf]&&F[qf](!0),s.isUnmounting)return L();D(m,[F]);let Z=!1;const le=F[go]=Ce=>{Z||(Z=!0,L(),Ce?D(b,[F]):D(v,[F]),F[go]=void 0,T[Y]===t&&delete T[Y])};T[Y]=t,_?B(_,[F,le]):le()},clone(F){const L=Ma(F,e,s,n,i);return i&&i(L),L}};return N}function C_(t){if(fd(t))return t=Wi(t),t.children=null,t}function Nw(t){if(!fd(t))return bC(t.type)&&t.children?SC(t.children):t;const{shapeFlag:e,children:s}=t;if(s){if(e&16)return s[0];if(e&32&&dt(s.default))return s.default()}}function fr(t,e){t.shapeFlag&6&&t.component?(t.transition=e,fr(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 dd(t,e=!1,s){let n=[],i=0;for(let r=0;r<t.length;r++){let o=t[r];const a=s==null?o.key:String(s)+String(o.key!=null?o.key:r);o.type===G?(o.patchFlag&128&&i++,n=n.concat(dd(o.children,e,a))):(e||o.type!==Cs)&&n.push(a!=null?Wi(o,{key:a}):o)}if(i>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function ja(t,e){return dt(t)?Dt({name:t.name},e,{setup:t}):t}function Fh(){const t=di();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function Ob(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function zp(t){const e=di(),s=ud(null);if(e){const i=e.refs===Pt?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>s.value,set:r=>s.value=r})}return s}function Vu(t,e,s,n,i=!1){if(We(t)){t.forEach((v,b)=>Vu(v,e&&(We(e)?e[b]:e),s,n,i));return}if(Co(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Vu(t,e,s,n.component.subTree);return}const r=n.shapeFlag&4?gd(n.component):n.el,o=i?null:r,{i:a,r:c}=t,f=e&&e.r,h=a.refs===Pt?a.refs={}:a.refs,p=a.setupState,m=St(p),_=p===Pt?()=>!1:v=>jt(m,v);if(f!=null&&f!==c&&(mt(f)?(h[f]=null,_(f)&&(p[f]=null)):ft(f)&&(f.value=null)),dt(c))Ha(c,a,12,[o,h]);else{const v=mt(c),b=ft(c);if(v||b){const S=()=>{if(t.f){const C=v?_(c)?p[c]:h[c]:c.value;i?We(C)&&mb(C,r):We(C)?C.includes(r)||C.push(r):v?(h[c]=[r],_(c)&&(p[c]=h[c])):(c.value=[r],t.k&&(h[t.k]=c.value))}else v?(h[c]=o,_(c)&&(p[c]=o)):b&&(c.value=o,t.k&&(h[t.k]=o))};o?(S.id=-1,Vs(S,s)):S()}}}let Vw=!1;const _l=()=>{Vw||(console.error("Hydration completed but contains mismatches."),Vw=!0)},rV=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",oV=t=>t.namespaceURI.includes("MathML"),Hf=t=>{if(t.nodeType===1){if(rV(t))return"svg";if(oV(t))return"mathml"}},Ol=t=>t.nodeType===8;function aV(t){const{mt:e,p:s,o:{patchProp:n,createText:i,nextSibling:r,parentNode:o,remove:a,insert:c,createComment:f}}=t,h=(A,$)=>{if(!$.hasChildNodes()){s(null,A,$),Vh(),$._vnode=A;return}p($.firstChild,A,null,null,null),Vh(),$._vnode=A},p=(A,$,T,D,B,N=!1)=>{N=N||!!$.dynamicChildren;const F=Ol(A)&&A.data==="[",L=()=>b(A,$,T,D,B,F),{type:Y,ref:Z,shapeFlag:le,patchFlag:Ce}=$;let Ee=A.nodeType;$.el=A,Ce===-2&&(N=!1,$.dynamicChildren=null);let he=null;switch(Y){case Hr:Ee!==3?$.children===""?(c($.el=i(""),o(A),A),he=A):he=L():(A.data!==$.children&&(_l(),A.data=$.children),he=r(A));break;case Cs:O(A)?(he=r(A),C($.el=A.content.firstChild,A,T)):Ee!==8||F?he=L():he=r(A);break;case ko:if(F&&(A=r(A),Ee=A.nodeType),Ee===1||Ee===3){he=A;const ye=!$.children.length;for(let xe=0;xe<$.staticCount;xe++)ye&&($.children+=he.nodeType===1?he.outerHTML:he.data),xe===$.staticCount-1&&($.anchor=he),he=r(he);return F?r(he):he}else L();break;case G:F?he=v(A,$,T,D,B,N):he=L();break;default:if(le&1)(Ee!==1||$.type.toLowerCase()!==A.tagName.toLowerCase())&&!O(A)?he=L():he=m(A,$,T,D,B,N);else if(le&6){$.slotScopeIds=B;const ye=o(A);if(F?he=S(A):Ol(A)&&A.data==="teleport start"?he=S(A,A.data,"teleport end"):he=r(A),e($,ye,null,T,D,Hf(ye),N),Co($)&&!$.type.__asyncResolved){let xe;F?(xe=U(G),xe.anchor=he?he.previousSibling:ye.lastChild):xe=A.nodeType===3?re(""):U("div"),xe.el=A,$.component.subTree=xe}}else le&64?Ee!==8?he=L():he=$.type.hydrate(A,$,T,D,B,N,t,_):le&128&&(he=$.type.hydrate(A,$,T,D,Hf(o(A)),B,N,t,p))}return Z!=null&&Vu(Z,null,D,$),he},m=(A,$,T,D,B,N)=>{N=N||!!$.dynamicChildren;const{type:F,props:L,patchFlag:Y,shapeFlag:Z,dirs:le,transition:Ce}=$,Ee=F==="input"||F==="option";if(Ee||Y!==-1){le&&or($,null,T,"created");let he=!1;if(O(A)){he=lk(null,Ce)&&T&&T.vnode.props&&T.vnode.props.appear;const xe=A.content.firstChild;he&&Ce.beforeEnter(xe),C(xe,A,T),$.el=A=xe}if(Z&16&&!(L&&(L.innerHTML||L.textContent))){let xe=_(A.firstChild,$,A,T,D,B,N);for(;xe;){jf(A,1)||_l();const _e=xe;xe=xe.nextSibling,a(_e)}}else if(Z&8){let xe=$.children;xe[0]===` 26`&&(A.tagName==="PRE"||A.tagName==="TEXTAREA")&&(xe=xe.slice(1)),A.textContent!==xe&&(jf(A,0)||_l(),A.textContent=$.children)}if(L){if(Ee||!N||Y&48){const xe=A.tagName.includes("-");for(const _e in L)(Ee&&(_e.endsWith("value")||_e==="indeterminate")||Fa(_e)&&!Eo(_e)||_e[0]==="."||xe)&&n(A,_e,null,L[_e],void 0,T)}else if(L.onClick)n(A,"onClick",null,L.onClick,void 0,T);else if(Y&4&&$i(L.style))for(const xe in L.style)L.style[xe]}let ye;(ye=L&&L.onVnodeBeforeMount)&&Fn(ye,T,$),le&&or($,null,T,"beforeMount"),((ye=L&&L.onVnodeMounted)||le||he)&&_k(()=>{ye&&Fn(ye,T,$),he&&Ce.enter(A),le&&or($,null,T,"mounted")},D)}return A.nextSibling},_=(A,$,T,D,B,N,F)=>{F=F||!!$.dynamicChildren;const L=$.children,Y=L.length;for(let Z=0;Z<Y;Z++){const le=F?L[Z]:L[Z]=Un(L[Z]),Ce=le.type===Hr;A?(Ce&&!F&&Z+1<Y&&Un(L[Z+1]).type===Hr&&(c(i(A.data.slice(le.children.length)),T,r(A)),A.data=le.children),A=p(A,le,D,B,N,F)):Ce&&!le.children?c(le.el=i(""),T):(jf(T,1)||_l(),s(null,le,T,null,D,B,Hf(T),N))}return A},v=(A,$,T,D,B,N)=>{const{slotScopeIds:F}=$;F&&(B=B?B.concat(F):F);const L=o(A),Y=_(r(A),$,L,T,D,B,N);return Y&&Ol(Y)&&Y.data==="]"?r($.anchor=Y):(_l(),c($.anchor=f("]"),L,Y),Y)},b=(A,$,T,D,B,N)=>{if(jf(A.parentElement,1)||_l(),$.el=null,N){const Y=S(A);for(;;){const Z=r(A);if(Z&&Z!==Y)a(Z);else break}}const F=r(A),L=o(A);return a(A),s(null,$,L,F,T,D,Hf(L),B),T&&(T.vnode.el=$.el,Zp(T,$.el)),F},S=(A,$="[",T="]")=>{let D=0;for(;A;)if(A=r(A),A&&Ol(A)&&(A.data===$&&D++,A.data===T)){if(D===0)return r(A);D--}return A},C=(A,$,T)=>{const D=$.parentNode;D&&D.replaceChild(A,$);let B=T;for(;B;)B.vnode.el===$&&(B.vnode.el=B.subTree.el=A),B=B.parent},O=A=>A.nodeType===1&&A.tagName==="TEMPLATE";return[h,p]}const Fw="data-allow-mismatch",lV={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function jf(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(Fw);)t=t.parentElement;const s=t&&t.getAttribute(Fw);if(s==null)return!1;if(s==="")return!0;{const n=s.split(",");return e===0&&n.includes("children")?!0:s.split(",").includes(lV[e])}}const cV=Pp().requestIdleCallback||(t=>setTimeout(t,1)),uV=Pp().cancelIdleCallback||(t=>clearTimeout(t)),CC=(t=1e4)=>e=>{const s=cV(e,{timeout:t});return()=>uV(s)};function dV(t){const{top:e,left:s,bottom:n,right:i}=t.getBoundingClientRect(),{innerHeight:r,innerWidth:o}=window;return(e>0&&e<r||n>0&&n<r)&&(s>0&&s<o||i>0&&i<o)}const kC=t=>(e,s)=>{const n=new IntersectionObserver(i=>{for(const r of i)if(r.isIntersecting){n.disconnect(),e();break}},t);return s(i=>{if(i instanceof Element){if(dV(i))return e(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},AC=t=>e=>{if(t){const s=matchMedia(t);if(s.matches)e();else return s.addEventListener("change",e,{once:!0}),()=>s.removeEventListener("change",e)}},$C=(t=[])=>(e,s)=>{mt(t)&&(t=[t]);let n=!1;const i=o=>{n||(n=!0,r(),e(),o.target.dispatchEvent(new o.constructor(o.type,o)))},r=()=>{s(o=>{for(const a of t)o.removeEventListener(a,i)})};return s(o=>{for(const a of t)o.addEventListener(a,i,{once:!0})}),r};function fV(t,e){if(Ol(t)&&t.data==="["){let s=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(e(n)===!1)break}else if(Ol(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else e(t)}const Co=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function TC(t){dt(t)&&(t={loader:t});const{loader:e,loadingComponent:s,errorComponent:n,delay:i=200,hydrate:r,timeout:o,suspensible:a=!0,onError:c}=t;let f=null,h,p=0;const m=()=>(p++,f=null,_()),_=()=>{let v;return f||(v=f=e().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),c)return new Promise((S,C)=>{c(b,()=>S(m()),()=>C(b),p+1)});throw b}).then(b=>v!==f&&f?f:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),h=b,b)))};return ja({name:"AsyncComponentWrapper",__asyncLoader:_,__asyncHydrate(v,b,S){const C=r?()=>{const O=r(S,A=>fV(v,A));O&&(b.bum||(b.bum=[])).push(O)}:S;h?C():_().then(()=>!b.isUnmounted&&C())},get __asyncResolved(){return h},setup(){const v=Bs;if(Ob(v),h)return()=>k_(h,v);const b=A=>{f=null,qo(A,v,13,!n)};if(a&&v.suspense||zl)return _().then(A=>()=>k_(A,v)).catch(A=>(b(A),()=>n?U(n,{error:A}):null));const S=W(!1),C=W(),O=W(!!i);return i&&setTimeout(()=>{O.value=!1},i),o!=null&&setTimeout(()=>{if(!S.value&&!C.value){const A=new Error(`Async component timed out after ${o}ms.`);b(A),C.value=A}},o),_().then(()=>{S.value=!0,v.parent&&fd(v.parent.vnode)&&v.parent.update()}).catch(A=>{b(A),C.value=A}),()=>{if(S.value&&h)return k_(h,v);if(C.value&&n)return U(n,{error:C.value});if(s&&!O.value)return U(s)}}})}function k_(t,e){const{ref:s,props:n,children:i,ce:r}=e.vnode,o=U(t,n,i);return o.ref=s,o.ce=r,delete e.vnode.ce,o}const fd=t=>t.type.__isKeepAlive,hV={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const s=di(),n=s.ctx;if(!n.renderer)return()=>{const O=e.default&&e.default();return O&&O.length===1?O[0]:O};const i=new Map,r=new Set;let o=null;const a=s.suspense,{renderer:{p:c,m:f,um:h,o:{createElement:p}}}=n,m=p("div");n.activate=(O,A,$,T,D)=>{const B=O.component;f(O,A,$,0,a),c(B.vnode,O,A,$,B,a,T,O.slotScopeIds,D),Vs(()=>{B.isDeactivated=!1,B.a&&Dl(B.a);const N=O.props&&O.props.onVnodeMounted;N&&Fn(N,B.parent,O)},a)},n.deactivate=O=>{const A=O.component;Uh(A.m),Uh(A.a),f(O,m,null,1,a),Vs(()=>{A.da&&Dl(A.da);const $=O.props&&O.props.onVnodeUnmounted;$&&Fn($,A.parent,O),A.isDeactivated=!0},a)};function _(O){A_(O),h(O,s,a,!0)}function v(O){i.forEach((A,$)=>{const T=Cv(A.type);T&&!O(T)&&b($)})}function b(O){const A=i.get(O);A&&(!o||!qi(A,o))?_(A):o&&A_(o),i.delete(O),r.delete(O)}Et(()=>[t.include,t.exclude],([O,A])=>{O&&v($=>au(O,$)),A&&v($=>!au(A,$))},{flush:"post",deep:!0});let S=null;const C=()=>{S!=null&&(qh(s.subTree.type)?Vs(()=>{i.set(S,Wf(s.subTree))},s.subTree.suspense):i.set(S,Wf(s.subTree)))};return Ds(C),hd(C),pd(()=>{i.forEach(O=>{const{subTree:A,suspense:$}=s,T=Wf(A);if(O.type===T.type&&O.key===T.key){A_(T);const D=T.component.da;D&&Vs(D,$);return}_(O)})}),()=>{if(S=null,!e.default)return o=null;const O=e.default(),A=O[0];if(O.length>1)return o=null,O;if(!hr(A)||!(A.shapeFlag&4)&&!(A.shapeFlag&128))return o=null,A;let $=Wf(A);if($.type===Cs)return o=null,$;const T=$.type,D=Cv(Co($)?$.type.__asyncResolved||{}:T),{include:B,exclude:N,max:F}=t;if(B&&(!D||!au(B,D))||N&&D&&au(N,D))return $.shapeFlag&=-257,o=$,A;const L=$.key==null?T:$.key,Y=i.get(L);return $.el&&($=Wi($),A.shapeFlag&128&&(A.ssContent=$)),S=L,Y?($.el=Y.el,$.component=Y.component,$.transition&&fr($,$.transition),$.shapeFlag|=512,r.delete(L),r.add(L)):(r.add(L),F&&r.size>parseInt(F,10)&&b(r.values().next().value)),$.shapeFlag|=256,o=$,qh(A.type)?A:$}}},OC=hV;function au(t,e){return We(t)?t.some(s=>au(s,e)):mt(t)?t.split(",").includes(e):nN(t)?(t.lastIndex=0,t.test(e)):!1}function Mb(t,e){MC(t,"a",e)}function Pb(t,e){MC(t,"da",e)}function MC(t,e,s=Bs){const n=t.__wdc||(t.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Kp(e,n,s),s){let i=s.parent;for(;i&&i.parent;)fd(i.parent.vnode)&&pV(n,e,s,i),i=i.parent}}function pV(t,e,s,n){const i=Kp(e,t,n,!0);Wa(()=>{mb(n[e],i)},s)}function A_(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Wf(t){return t.shapeFlag&128?t.ssContent:t}function Kp(t,e,s=Bs,n=!1){if(s){const i=s[t]||(s[t]=[]),r=e.__weh||(e.__weh=(...o)=>{Bo();const a=Da(s),c=li(e,s,t,o);return a(),Uo(),c});return n?i.unshift(r):i.push(r),r}}const Jr=t=>(e,s=Bs)=>{(!zl||t==="sp")&&Kp(t,(...n)=>e(...n),s)},Db=Jr("bm"),Ds=Jr("m"),Gp=Jr("bu"),hd=Jr("u"),pd=Jr("bum"),Wa=Jr("um"),Rb=Jr("sp"),Ib=Jr("rtg"),Lb=Jr("rtc");function Nb(t,e=Bs){Kp("ec",t,e)}const Vb="components",mV="directives";function PC(t,e){return Fb(Vb,t,!0,e)||t}const DC=Symbol.for("v-ndc");function Kr(t){return mt(t)?Fb(Vb,t,!1)||t:t||DC}function RC(t){return Fb(mV,t)}function Fb(t,e,s=!0,n=!1){const i=Us||Bs;if(i){const r=i.type;if(t===Vb){const a=Cv(r,!1);if(a&&(a===e||a===ls(e)||a===Fo(ls(e))))return r}const o=Bw(i[t]||r[t],e)||Bw(i.appContext[t],e);return!o&&n?r:o}}function Bw(t,e){return t&&(t[e]||t[ls(e)]||t[Fo(ls(e))])}function ge(t,e,s,n){let i;const r=s&&s[n],o=We(t);if(o||mt(t)){const a=o&&$i(t);let c=!1;a&&(c=!Yn(t),t=Vp(t)),i=new Array(t.length);for(let f=0,h=t.length;f<h;f++)i[f]=e(c?un(t[f]):t[f],f,void 0,r&&r[f])}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,r&&r[a])}else if(Qt(t))if(t[Symbol.iterator])i=Array.from(t,(a,c)=>e(a,c,void 0,r&&r[c]));else{const a=Object.keys(t);i=new Array(a.length);for(let c=0,f=a.length;c<f;c++){const h=a[c];i[c]=e(t[h],h,c,r&&r[c])}}else i=[];return s&&(s[n]=i),i}function IC(t,e){for(let s=0;s<e.length;s++){const n=e[s];if(We(n))for(let i=0;i<n.length;i++)t[n[i].name]=n[i].fn;else n&&(t[n.name]=n.key?(...i)=>{const r=n.fn(...i);return r&&(r.key=n.key),r}:n.fn)}return t}function Ft(t,e,s={},n,i){if(Us.ce||Us.parent&&Co(Us.parent)&&Us.parent.ce)return e!=="default"&&(s.name=e),y(),tt(G,null,[U("slot",s,n&&n())],64);let r=t[e];r&&r._c&&(r._d=!1),y();const o=r&&Bb(r(s)),a=s.key||o&&o.key,c=tt(G,{key:(a&&!Zn(a)?a:`_${e}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&t._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),r&&r._c&&(r._d=!0),c}function Bb(t){return t.some(e=>hr(e)?!(e.type===Cs||e.type===G&&!Bb(e.children)):!0)?t:null}function LC(t,e){const s={};for(const n in t)s[e&&/[A-Z]/.test(n)?`on:${n}`:ya(n)]=t[n];return s}const mv=t=>t?Sk(t)?gd(t):mv(t.parent):null,xu=Dt(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=>mv(t.parent),$root:t=>mv(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Ub(t),$forceUpdate:t=>t.f||(t.f=()=>{Ab(t.update)}),$nextTick:t=>t.n||(t.n=Xr.bind(t.proxy)),$watch:t=>MV.bind(t)}),$_=(t,e)=>t!==Pt&&!t.__isScriptSetup&&jt(t,e),gv={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:c}=t;let f;if(e[0]!=="$"){const _=o[e];if(_!==void 0)switch(_){case 1:return n[e];case 2:return i[e];case 4:return s[e];case 3:return r[e]}else{if($_(n,e))return o[e]=1,n[e];if(i!==Pt&&jt(i,e))return o[e]=2,i[e];if((f=t.propsOptions[0])&&jt(f,e))return o[e]=3,r[e];if(s!==Pt&&jt(s,e))return o[e]=4,s[e];_v&&(o[e]=0)}}const h=xu[e];let p,m;if(h)return e==="$attrs"&&cn(t.attrs,"get",""),h(t);if((p=a.__cssModules)&&(p=p[e]))return p;if(s!==Pt&&jt(s,e))return o[e]=4,s[e];if(m=c.config.globalProperties,jt(m,e))return m[e]},set({_:t},e,s){const{data:n,setupState:i,ctx:r}=t;return $_(i,e)?(i[e]=s,!0):n!==Pt&&jt(n,e)?(n[e]=s,!0):jt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!s[o]||t!==Pt&&jt(t,o)||$_(e,o)||(a=r[0])&&jt(a,o)||jt(n,o)||jt(xu,o)||jt(i.config.globalProperties,o)},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:jt(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}},gV=Dt({},gv,{get(t,e){if(e!==Symbol.unscopables)return gv.get(t,e,t)},has(t,e){return e[0]!=="_"&&!uN(e)}});function NC(){return null}function VC(){return null}function FC(t){}function BC(t){}function UC(){return null}function qC(){}function HC(t,e){return null}function jC(){return zC().slots}function WC(){return zC().attrs}function zC(){const t=di();return t.setupContext||(t.setupContext=Ak(t))}function Fu(t){return We(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}function KC(t,e){const s=Fu(t);for(const n in e){if(n.startsWith("__skip"))continue;let i=s[n];i?We(i)||dt(i)?i=s[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(i=s[n]={default:e[n]}),i&&e[`__skip_${n}`]&&(i.skipFactory=!0)}return s}function Nt(t,e){return!t||!e?t||e:We(t)&&We(e)?t.concat(e):Dt({},Fu(t),Fu(e))}function GC(t,e){const s={};for(const n in t)e.includes(n)||Object.defineProperty(s,n,{enumerable:!0,get:()=>t[n]});return s}function YC(t){const e=di();let s=t();return xv(),gb(s)&&(s=s.catch(n=>{throw Da(e),n})),[s,()=>Da(e)]}let _v=!0;function _V(t){const e=Ub(t),s=t.proxy,n=t.ctx;_v=!1,e.beforeCreate&&Uw(e.beforeCreate,t,"bc");const{data:i,computed:r,methods:o,watch:a,provide:c,inject:f,created:h,beforeMount:p,mounted:m,beforeUpdate:_,updated:v,activated:b,deactivated:S,beforeDestroy:C,beforeUnmount:O,destroyed:A,unmounted:$,render:T,renderTracked:D,renderTriggered:B,errorCaptured:N,serverPrefetch:F,expose:L,inheritAttrs:Y,components:Z,directives:le,filters:Ce}=e;if(f&&vV(f,n,null),o)for(const ye in o){const xe=o[ye];dt(xe)&&(n[ye]=xe.bind(s))}if(i){const ye=i.call(s,s);Qt(ye)&&(t.data=Ua(ye))}if(_v=!0,r)for(const ye in r){const xe=r[ye],_e=dt(xe)?xe.bind(s,s):dt(xe.get)?xe.get.bind(s,s):Qs,ze=!dt(xe)&&dt(xe.set)?xe.set.bind(s):Qs,je=te({get:_e,set:ze});Object.defineProperty(n,ye,{enumerable:!0,configurable:!0,get:()=>je.value,set:it=>je.value=it})}if(a)for(const ye in a)ZC(a[ye],n,s,ye);if(c){const ye=dt(c)?c.call(s):c;Reflect.ownKeys(ye).forEach(xe=>{qb(xe,ye[xe])})}h&&Uw(h,t,"c");function he(ye,xe){We(xe)?xe.forEach(_e=>ye(_e.bind(s))):xe&&ye(xe.bind(s))}if(he(Db,p),he(Ds,m),he(Gp,_),he(hd,v),he(Mb,b),he(Pb,S),he(Nb,N),he(Lb,D),he(Ib,B),he(pd,O),he(Wa,$),he(Rb,F),We(L))if(L.length){const ye=t.exposed||(t.exposed={});L.forEach(xe=>{Object.defineProperty(ye,xe,{get:()=>s[xe],set:_e=>s[xe]=_e})})}else t.exposed||(t.exposed={});T&&t.render===Qs&&(t.render=T),Y!=null&&(t.inheritAttrs=Y),Z&&(t.components=Z),le&&(t.directives=le),F&&Ob(t)}function vV(t,e,s=Qs){We(t)&&(t=vv(t));for(const n in t){const i=t[n];let r;Qt(i)?"default"in i?r=Sa(i.from||n,i.default,!0):r=Sa(i.from||n):r=Sa(i),ft(r)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[n]=r}}function Uw(t,e,s){li(We(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function ZC(t,e,s,n){let i=n.includes(".")?fk(s,n):()=>s[n];if(mt(t)){const r=e[t];dt(r)&&Et(i,r)}else if(dt(t))Et(i,t.bind(s));else if(Qt(t))if(We(t))t.forEach(r=>ZC(r,e,s,n));else{const r=dt(t.handler)?t.handler.bind(s):e[t.handler];dt(r)&&Et(i,r,t)}}function Ub(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let c;return a?c=a:!i.length&&!s&&!n?c=e:(c={},i.length&&i.forEach(f=>Bh(c,f,o,!0)),Bh(c,e,o)),Qt(e)&&r.set(e,c),c}function Bh(t,e,s,n=!1){const{mixins:i,extends:r}=e;r&&Bh(t,r,s,!0),i&&i.forEach(o=>Bh(t,o,s,!0));for(const o in e)if(!(n&&o==="expose")){const a=bV[o]||s&&s[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const bV={data:qw,props:Hw,emits:Hw,methods:lu,computed:lu,beforeCreate:yn,created:yn,beforeMount:yn,mounted:yn,beforeUpdate:yn,updated:yn,beforeDestroy:yn,beforeUnmount:yn,destroyed:yn,unmounted:yn,activated:yn,deactivated:yn,errorCaptured:yn,serverPrefetch:yn,components:lu,directives:lu,watch:wV,provide:qw,inject:yV};function qw(t,e){return e?t?function(){return Dt(dt(t)?t.call(this,this):t,dt(e)?e.call(this,this):e)}:e:t}function yV(t,e){return lu(vv(t),vv(e))}function vv(t){if(We(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function yn(t,e){return t?[...new Set([].concat(t,e))]:e}function lu(t,e){return t?Dt(Object.create(null),t,e):e}function Hw(t,e){return t?We(t)&&We(e)?[...new Set([...t,...e])]:Dt(Object.create(null),Fu(t),Fu(e??{})):e}function wV(t,e){if(!t)return e;if(!e)return t;const s=Dt(Object.create(null),t);for(const n in e)s[n]=yn(t[n],e[n]);return s}function XC(){return{app:null,config:{isNativeTag:ou,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 xV=0;function SV(t,e){return function(n,i=null){dt(n)||(n=Dt({},n)),i!=null&&!Qt(i)&&(i=null);const r=XC(),o=new WeakSet,a=[];let c=!1;const f=r.app={_uid:xV++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Jp,get config(){return r.config},set config(h){},use(h,...p){return o.has(h)||(h&&dt(h.install)?(o.add(h),h.install(f,...p)):dt(h)&&(o.add(h),h(f,...p))),f},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),f},component(h,p){return p?(r.components[h]=p,f):r.components[h]},directive(h,p){return p?(r.directives[h]=p,f):r.directives[h]},mount(h,p,m){if(!c){const _=f._ceVNode||U(n,i);return _.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),p&&e?e(_,h):t(_,h,m),c=!0,f._container=h,h.__vue_app__=f,gd(_.component)}},onUnmount(h){a.push(h)},unmount(){c&&(li(a,f._instance,16),t(null,f._container),delete f._container.__vue_app__)},provide(h,p){return r.provides[h]=p,f},runWithContext(h){const p=xa;xa=f;try{return h()}finally{xa=p}}};return f}}let xa=null;function qb(t,e){if(Bs){let s=Bs.provides;const n=Bs.parent&&Bs.parent.provides;n===s&&(s=Bs.provides=Object.create(n)),s[t]=e}}function Sa(t,e,s=!1){const n=Bs||Us;if(n||xa){const i=xa?xa._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return s&&dt(e)?e.call(n&&n.proxy):e}}function Hb(){return!!(Bs||Us||xa)}const JC={},QC=()=>Object.create(JC),ek=t=>Object.getPrototypeOf(t)===JC;function EV(t,e,s,n=!1){const i={},r=QC();t.propsDefaults=Object.create(null),tk(t,e,i,r);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);s?t.props=n?i:xb(i):t.type.props?t.props=i:t.props=r,t.attrs=r}function CV(t,e,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=t,a=St(i),[c]=t.propsOptions;let f=!1;if((n||o>0)&&!(o&16)){if(o&8){const h=t.vnode.dynamicProps;for(let p=0;p<h.length;p++){let m=h[p];if(Yp(t.emitsOptions,m))continue;const _=e[m];if(c)if(jt(r,m))_!==r[m]&&(r[m]=_,f=!0);else{const v=ls(m);i[v]=bv(c,a,v,_,t,!1)}else _!==r[m]&&(r[m]=_,f=!0)}}}else{tk(t,e,i,r)&&(f=!0);let h;for(const p in a)(!e||!jt(e,p)&&((h=Hn(p))===p||!jt(e,h)))&&(c?s&&(s[p]!==void 0||s[h]!==void 0)&&(i[p]=bv(c,a,p,void 0,t,!0)):delete i[p]);if(r!==a)for(const p in r)(!e||!jt(e,p))&&(delete r[p],f=!0)}f&&Nr(t.attrs,"set","")}function tk(t,e,s,n){const[i,r]=t.propsOptions;let o=!1,a;if(e)for(let c in e){if(Eo(c))continue;const f=e[c];let h;
vendor: 6,559 bytes, line 26
26i&&jt(i,h=ls(c))?!r||!r.includes(h)?s[h]=f:(a||(a={}))[h]=f:Yp(t.emitsOptions,c)||(!(c in n)||f!==n[c])&&(n[c]=f,o=!0)}if(r){const c=St(s),f=a||Pt;for(let h=0;h<r.length;h++){const p=r[h];s[p]=bv(i,c,p,f[p],t,!jt(f,p))}}return o}function bv(t,e,s,n,i,r){const o=t[s];if(o!=null){const a=jt(o,"default");if(a&&n===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&dt(c)){const{propsDefaults:f}=i;if(s in f)n=f[s];else{const h=Da(i);n=f[s]=c.call(null,e),h()}}else n=c;i.ce&&i.ce._setProp(s,n)}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===Hn(s))&&(n=!0))}return n}const kV=new WeakMap;function sk(t,e,s=!1){const n=s?kV:e.propsCache,i=n.get(t);if(i)return i;const r=t.props,o={},a=[];let c=!1;if(!dt(t)){const h=p=>{c=!0;const[m,_]=sk(p,e,!0);Dt(o,m),_&&a.push(..._)};!s&&e.mixins.length&&e.mixins.forEach(h),t.extends&&h(t.extends),t.mixins&&t.mixins.forEach(h)}if(!r&&!c)return Qt(t)&&n.set(t,Ml),Ml;if(We(r))for(let h=0;h<r.length;h++){const p=ls(r[h]);jw(p)&&(o[p]=Pt)}else if(r)for(const h in r){const p=ls(h);if(jw(p)){const m=r[h],_=o[p]=We(m)||dt(m)?{type:m}:Dt({},m),v=_.type;let b=!1,S=!0;if(We(v))for(let C=0;C<v.length;++C){const O=v[C],A=dt(O)&&O.name;if(A==="Boolean"){b=!0;break}else A==="String"&&(S=!1)}else b=dt(v)&&v.name==="Boolean";_[0]=b,_[1]=S,(b||jt(_,"default"))&&a.push(p)}}const f=[o,a];return Qt(t)&&n.set(t,f),f}function jw(t){return t[0]!=="$"&&!Eo(t)}const nk=t=>t[0]==="_"||t==="$stable",jb=t=>We(t)?t.map(Un):[Un(t)],AV=(t,e,s)=>{if(e._n)return e;const n=Fe((...i)=>jb(e(...i)),s);return n._c=!1,n},ik=(t,e,s)=>{const n=t._ctx;for(const i in t){if(nk(i))continue;const r=t[i];if(dt(r))e[i]=AV(i,r,n);else if(r!=null){const o=jb(r);e[i]=()=>o}}},rk=(t,e)=>{const s=jb(e);t.slots.default=()=>s},ok=(t,e,s)=>{for(const n in e)(s||n!=="_")&&(t[n]=e[n])},$V=(t,e,s)=>{const n=t.slots=QC();if(t.vnode.shapeFlag&32){const i=e._;i?(ok(n,e,s),s&&ME(n,"_",i,!0)):ik(e,n)}else e&&rk(t,e)},TV=(t,e,s)=>{const{vnode:n,slots:i}=t;let r=!0,o=Pt;if(n.shapeFlag&32){const a=e._;a?s&&a===1?r=!1:ok(i,e,s):(r=!e.$stable,ik(e,i)),o=e}else e&&(rk(t,e),o={default:1});if(r)for(const a in i)!nk(a)&&o[a]==null&&delete i[a]},Vs=_k;function Wb(t){return ak(t)}function zb(t){return ak(t,aV)}function ak(t,e){const s=Pp();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:c,setText:f,setElementText:h,parentNode:p,nextSibling:m,setScopeId:_=Qs,insertStaticContent:v}=t,b=(K,X,fe,$e=null,me=null,Te=null,Be=void 0,Re=null,Me=!!X.dynamicChildren)=>{if(K===X)return;K&&!qi(K,X)&&($e=zs(K),it(K,me,Te,!0),K=null),X.patchFlag===-2&&(Me=!1,X.dynamicChildren=null);const{type:ke,ref:et,shapeFlag:Ue}=X;switch(ke){case Hr:S(K,X,fe,$e);break;case Cs:C(K,X,fe,$e);break;case ko:K==null&&O(X,fe,$e,Be);break;case G:Z(K,X,fe,$e,me,Te,Be,Re,Me);break;default:Ue&1?T(K,X,fe,$e,me,Te,Be,Re,Me):Ue&6?le(K,X,fe,$e,me,Te,Be,Re,Me):(Ue&64||Ue&128)&&ke.process(K,X,fe,$e,me,Te,Be,Re,Me,gs)}et!=null&&me&&Vu(et,K&&K.ref,Te,X||K,!X)},S=(K,X,fe,$e)=>{if(K==null)n(X.el=a(X.children),fe,$e);else{const me=X.el=K.el;X.children!==K.children&&f(me,X.children)}},C=(K,X,fe,$e)=>{K==null?n(X.el=c(X.children||""),fe,$e):X.el=K.el},O=(K,X,fe,$e)=>{[K.el,K.anchor]=v(K.children,X,fe,$e,K.el,K.anchor)},A=({el:K,anchor:X},fe,$e)=>{let me;for(;K&&K!==X;)me=m(K),n(K,fe,$e),K=me;n(X,fe,$e)},$=({el:K,anchor:X})=>{let fe;for(;K&&K!==X;)fe=m(K),i(K),K=fe;i(X)},T=(K,X,fe,$e,me,Te,Be,Re,Me)=>{X.type==="svg"?Be="svg":X.type==="math"&&(Be="mathml"),K==null?D(X,fe,$e,me,Te,Be,Re,Me):F(K,X,me,Te,Be,Re,Me)},D=(K,X,fe,$e,me,Te,Be,Re)=>{let Me,ke;const{props:et,shapeFlag:Ue,transition:Ye,dirs:ot}=K;if(Me=K.el=o(K.type,Te,et&&et.is,et),Ue&8?h(Me,K.children):Ue&16&&N(K.children,Me,null,$e,me,T_(K,Te),Be,Re),ot&&or(K,null,$e,"created"),B(Me,K,K.scopeId,Be,$e),et){for(const vt in et)vt!=="value"&&!Eo(vt)&&r(Me,vt,null,et[vt],Te,$e);"value"in et&&r(Me,"value",null,et.value,Te),(ke=et.onVnodeBeforeMount)&&Fn(ke,$e,K)}ot&&or(K,null,$e,"beforeMount");const ht=lk(me,Ye);ht&&Ye.beforeEnter(Me),n(Me,X,fe),((ke=et&&et.onVnodeMounted)||ht||ot)&&Vs(()=>{ke&&Fn(ke,$e,K),ht&&Ye.enter(Me),ot&&or(K,null,$e,"mounted")},me)},B=(K,X,fe,$e,me)=>{if(fe&&_(K,fe),$e)for(let Te=0;Te<$e.length;Te++)_(K,$e[Te]);if(me){let Te=me.subTree;if(X===Te||qh(Te.type)&&(Te.ssContent===X||Te.ssFallback===X)){const Be=me.vnode;B(K,Be,Be.scopeId,Be.slotScopeIds,me.parent)}}},N=(K,X,fe,$e,me,Te,Be,Re,Me=0)=>{for(let ke=Me;ke<K.length;ke++){const et=K[ke]=Re?_o(K[ke]):Un(K[ke]);b(null,et,X,fe,$e,me,Te,Be,Re)}},F=(K,X,fe,$e,me,Te,Be)=>{const Re=X.el=K.el;let{patchFlag:Me,dynamicChildren:ke,dirs:et}=X;Me|=K.patchFlag&16;const Ue=K.props||Pt,Ye=X.props||Pt;let ot;if(fe&&ia(fe,!1),(ot=Ye.onVnodeBeforeUpdate)&&Fn(ot,fe,X,K),et&&or(X,K,fe,"beforeUpdate"),fe&&ia(fe,!0),(Ue.innerHTML&&Ye.innerHTML==null||Ue.textContent&&Ye.textContent==null)&&h(Re,""),ke?L(K.dynamicChildren,ke,Re,fe,$e,T_(X,me),Te):Be||xe(K,X,Re,null,fe,$e,T_(X,me),Te,!1),Me>0){if(Me&16)Y(Re,Ue,Ye,fe,me);else if(Me&2&&Ue.class!==Ye.class&&r(Re,"class",null,Ye.class,me),Me&4&&r(Re,"style",Ue.style,Ye.style,me),Me&8){const ht=X.dynamicProps;for(let vt=0;vt<ht.length;vt++){const Tt=ht[vt],Rs=Ue[Tt],ts=Ye[Tt];(ts!==Rs||Tt==="value")&&r(Re,Tt,Rs,ts,me,fe)}}Me&1&&K.children!==X.children&&h(Re,X.children)}else!Be&&ke==null&&Y(Re,Ue,Ye,fe,me);((ot=Ye.onVnodeUpdated)||et)&&Vs(()=>{ot&&Fn(ot,fe,X,K),et&&or(X,K,fe,"updated")},$e)},L=(K,X,fe,$e,me,Te,Be)=>{for(let Re=0;Re<X.length;Re++){const Me=K[Re],ke=X[Re],et=Me.el&&(Me.type===G||!qi(Me,ke)||Me.shapeFlag&70)?p(Me.el):fe;b(Me,ke,et,null,$e,me,Te,Be,!0)}},Y=(K,X,fe,$e,me)=>{if(X!==fe){if(X!==Pt)for(const Te in X)!Eo(Te)&&!(Te in fe)&&r(K,Te,X[Te],null,me,$e);for(const Te in fe){if(Eo(Te))continue;const Be=fe[Te],Re=X[Te];Be!==Re&&Te!=="value"&&r(K,Te,Re,Be,me,$e)}"value"in fe&&r(K,"value",X.value,fe.value,me)}},Z=(K,X,fe,$e,me,Te,Be,Re,Me)=>{const ke=X.el=K?K.el:a(""),et=X.anchor=K?K.anchor:a("");let{patchFlag:Ue,dynamicChildren:Ye,slotScopeIds:ot}=X;ot&&(Re=Re?Re.concat(ot):ot),K==null?(n(ke,fe,$e),n(et,fe,$e),N(X.children||[],fe,et,me,Te,Be,Re,Me)):Ue>0&&Ue&64&&Ye&&K.dynamicChildren?(L(K.dynamicChildren,Ye,fe,me,Te,Be,Re),(X.key!=null||me&&X===me.subTree)&&Kb(K,X,!0)):xe(K,X,fe,et,me,Te,Be,Re,Me)},le=(K,X,fe,$e,me,Te,Be,Re,Me)=>{X.slotScopeIds=Re,K==null?X.shapeFlag&512?me.ctx.activate(X,fe,$e,Be,Me):Ce(X,fe,$e,me,Te,Be,Me):Ee(K,X,Me)},Ce=(K,X,fe,$e,me,Te,Be)=>{const Re=K.component=xk(K,$e,me);if(fd(K)&&(Re.ctx.renderer=gs),Ek(Re,!1,Be),Re.asyncDep){if(me&&me.registerDep(Re,he,Be),!K.el){const Me=Re.subTree=U(Cs);C(null,Me,X,fe)}
vendor: 21,294 bytes, line 26
26}else he(Re,K,X,fe,me,Te,Be)},Ee=(K,X,fe)=>{const $e=X.component=K.component;if(LV(K,X,fe))if($e.asyncDep&&!$e.asyncResolved){ye($e,X,fe);return}else $e.next=X,$e.update();else X.el=K.el,$e.vnode=X},he=(K,X,fe,$e,me,Te,Be)=>{const Re=()=>{if(K.isMounted){let{next:Ue,bu:Ye,u:ot,parent:ht,vnode:vt}=K;{const Is=ck(K);if(Is){Ue&&(Ue.el=vt.el,ye(K,Ue,Be)),Is.asyncDep.then(()=>{K.isUnmounted||Re()});return}}let Tt=Ue,Rs;ia(K,!1),Ue?(Ue.el=vt.el,ye(K,Ue,Be)):Ue=vt,Ye&&Dl(Ye),(Rs=Ue.props&&Ue.props.onVnodeBeforeUpdate)&&Fn(Rs,ht,Ue,vt),ia(K,!0);const ts=_h(K),Ks=K.subTree;K.subTree=ts,b(Ks,ts,p(Ks.el),zs(Ks),K,me,Te),Ue.el=ts.el,Tt===null&&Zp(K,ts.el),ot&&Vs(ot,me),(Rs=Ue.props&&Ue.props.onVnodeUpdated)&&Vs(()=>Fn(Rs,ht,Ue,vt),me)}else{let Ue;const{el:Ye,props:ot}=X,{bm:ht,m:vt,parent:Tt,root:Rs,type:ts}=K,Ks=Co(X);if(ia(K,!1),ht&&Dl(ht),!Ks&&(Ue=ot&&ot.onVnodeBeforeMount)&&Fn(Ue,Tt,X),ia(K,!0),Ye&&ps){const Is=()=>{K.subTree=_h(K),ps(Ye,K.subTree,K,me,null)};Ks&&ts.__asyncHydrate?ts.__asyncHydrate(Ye,K,Is):Is()}else{Rs.ce&&Rs.ce._injectChildStyle(ts);const Is=K.subTree=_h(K);b(null,Is,fe,$e,K,me,Te),X.el=Is.el}if(vt&&Vs(vt,me),!Ks&&(Ue=ot&&ot.onVnodeMounted)){const Is=X;Vs(()=>Fn(Ue,Tt,Is),me)}(X.shapeFlag&256||Tt&&Co(Tt.vnode)&&Tt.vnode.shapeFlag&256)&&K.a&&Vs(K.a,me),K.isMounted=!0,X=fe=$e=null}};K.scope.on();const Me=K.effect=new jl(Re);K.scope.off();const ke=K.update=Me.run.bind(Me),et=K.job=Me.runIfDirty.bind(Me);et.i=K,et.id=K.uid,Me.scheduler=()=>Ab(et),ia(K,!0),ke()},ye=(K,X,fe)=>{X.component=K;const $e=K.vnode.props;K.vnode=X,K.next=null,CV(K,X.props,$e,fe),TV(K,X.children,fe),Bo(),Dw(K),Uo()},xe=(K,X,fe,$e,me,Te,Be,Re,Me=!1)=>{const ke=K&&K.children,et=K?K.shapeFlag:0,Ue=X.children,{patchFlag:Ye,shapeFlag:ot}=X;if(Ye>0){if(Ye&128){ze(ke,Ue,fe,$e,me,Te,Be,Re,Me);return}else if(Ye&256){_e(ke,Ue,fe,$e,me,Te,Be,Re,Me);return}}ot&8?(et&16&&Bt(ke,me,Te),Ue!==ke&&h(fe,Ue)):et&16?ot&16?ze(ke,Ue,fe,$e,me,Te,Be,Re,Me):Bt(ke,me,Te,!0):(et&8&&h(fe,""),ot&16&&N(Ue,fe,$e,me,Te,Be,Re,Me))},_e=(K,X,fe,$e,me,Te,Be,Re,Me)=>{K=K||Ml,X=X||Ml;const ke=K.length,et=X.length,Ue=Math.min(ke,et);let Ye;for(Ye=0;Ye<Ue;Ye++){const ot=X[Ye]=Me?_o(X[Ye]):Un(X[Ye]);b(K[Ye],ot,fe,null,me,Te,Be,Re,Me)}ke>et?Bt(K,me,Te,!0,!1,Ue):N(X,fe,$e,me,Te,Be,Re,Me,Ue)},ze=(K,X,fe,$e,me,Te,Be,Re,Me)=>{let ke=0;const et=X.length;let Ue=K.length-1,Ye=et-1;for(;ke<=Ue&&ke<=Ye;){const ot=K[ke],ht=X[ke]=Me?_o(X[ke]):Un(X[ke]);if(qi(ot,ht))b(ot,ht,fe,null,me,Te,Be,Re,Me);else break;ke++}for(;ke<=Ue&&ke<=Ye;){const ot=K[Ue],ht=X[Ye]=Me?_o(X[Ye]):Un(X[Ye]);if(qi(ot,ht))b(ot,ht,fe,null,me,Te,Be,Re,Me);else break;Ue--,Ye--}if(ke>Ue){if(ke<=Ye){const ot=Ye+1,ht=ot<et?X[ot].el:$e;for(;ke<=Ye;)b(null,X[ke]=Me?_o(X[ke]):Un(X[ke]),fe,ht,me,Te,Be,Re,Me),ke++}}else if(ke>Ye)for(;ke<=Ue;)it(K[ke],me,Te,!0),ke++;else{const ot=ke,ht=ke,vt=new Map;for(ke=ht;ke<=Ye;ke++){const Os=X[ke]=Me?_o(X[ke]):Un(X[ke]);Os.key!=null&&vt.set(Os.key,ke)}let Tt,Rs=0;const ts=Ye-ht+1;let Ks=!1,Is=0;const Ii=new Array(ts);for(ke=0;ke<ts;ke++)Ii[ke]=0;for(ke=ot;ke<=Ue;ke++){const Os=K[ke];if(Rs>=ts){it(Os,me,Te,!0);continue}let tn;if(Os.key!=null)tn=vt.get(Os.key);else for(Tt=ht;Tt<=Ye;Tt++)if(Ii[Tt-ht]===0&&qi(Os,X[Tt])){tn=Tt;break}tn===void 0?it(Os,me,Te,!0):(Ii[tn-ht]=ke+1,tn>=Is?Is=tn:Ks=!0,b(Os,X[tn],fe,null,me,Te,Be,Re,Me),Rs++)}const mr=Ks?OV(Ii):Ml;for(Tt=mr.length-1,ke=ts-1;ke>=0;ke--){const Os=ht+ke,tn=X[Os],Ga=Os+1<et?X[Os+1].el:$e;Ii[ke]===0?b(null,tn,fe,Ga,me,Te,Be,Re,Me):Ks&&(Tt<0||ke!==mr[Tt]?je(tn,fe,Ga,2):Tt--)}}},je=(K,X,fe,$e,me=null)=>{const{el:Te,type:Be,transition:Re,children:Me,shapeFlag:ke}=K;if(ke&6){je(K.component.subTree,X,fe,$e);return}if(ke&128){K.suspense.move(X,fe,$e);return}if(ke&64){Be.move(K,X,fe,gs);return}if(Be===G){n(Te,X,fe);for(let Ue=0;Ue<Me.length;Ue++)je(Me[Ue],X,fe,$e);n(K.anchor,X,fe);return}if(Be===ko){A(K,X,fe);return}if($e!==2&&ke&1&&Re)if($e===0)Re.beforeEnter(Te),n(Te,X,fe),Vs(()=>Re.enter(Te),me);else{const{leave:Ue,delayLeave:Ye,afterLeave:ot}=Re,ht=()=>n(Te,X,fe),vt=()=>{Ue(Te,()=>{ht(),ot&&ot()})};Ye?Ye(Te,ht,vt):vt()}else n(Te,X,fe)},it=(K,X,fe,$e=!1,me=!1)=>{const{type:Te,props:Be,ref:Re,children:Me,dynamicChildren:ke,shapeFlag:et,patchFlag:Ue,dirs:Ye,cacheIndex:ot}=K;if(Ue===-2&&(me=!1),Re!=null&&Vu(Re,null,fe,K,!0),ot!=null&&(X.renderCache[ot]=void 0),et&256){X.ctx.deactivate(K);return}const ht=et&1&&Ye,vt=!Co(K);let Tt;if(vt&&(Tt=Be&&Be.onVnodeBeforeUnmount)&&Fn(Tt,X,K),et&6)$t(K.component,fe,$e);else{if(et&128){K.suspense.unmount(fe,$e);return}ht&&or(K,null,X,"beforeUnmount"),et&64?K.type.remove(K,X,fe,gs,$e):ke&&!ke.hasOnce&&(Te!==G||Ue>0&&Ue&64)?Bt(ke,X,fe,!1,!0):(Te===G&&Ue&384||!me&&et&16)&&Bt(Me,X,fe),$e&&es(K)}(vt&&(Tt=Be&&Be.onVnodeUnmounted)||ht)&&Vs(()=>{Tt&&Fn(Tt,X,K),ht&&or(K,null,X,"unmounted")},fe)},es=K=>{const{type:X,el:fe,anchor:$e,transition:me}=K;if(X===G){ue(fe,$e);return}if(X===ko){$(K);return}const Te=()=>{i(fe),me&&!me.persisted&&me.afterLeave&&me.afterLeave()};if(K.shapeFlag&1&&me&&!me.persisted){const{leave:Be,delayLeave:Re}=me,Me=()=>Be(fe,Te);Re?Re(K.el,Te,Me):Me()}else Te()},ue=(K,X)=>{let fe;for(;K!==X;)fe=m(K),i(K),K=fe;i(X)},$t=(K,X,fe)=>{const{bum:$e,scope:me,job:Te,subTree:Be,um:Re,m:Me,a:ke}=K;Uh(Me),Uh(ke),$e&&Dl($e),me.stop(),Te&&(Te.flags|=8,it(Be,K,X,fe)),Re&&Vs(Re,X),Vs(()=>{K.isUnmounted=!0},X),X&&X.pendingBranch&&!X.isUnmounted&&K.asyncDep&&!K.asyncResolved&&K.suspenseId===X.pendingId&&(X.deps--,X.deps===0&&X.resolve())},Bt=(K,X,fe,$e=!1,me=!1,Te=0)=>{for(let Be=Te;Be<K.length;Be++)it(K[Be],X,fe,$e,me)},zs=K=>{if(K.shapeFlag&6)return zs(K.component.subTree);if(K.shapeFlag&128)return K.suspense.next();const X=m(K.anchor||K.el),fe=X&&X[vC];return fe?m(fe):X};let zt=!1;const Hs=(K,X,fe)=>{K==null?X._vnode&&it(X._vnode,null,null,!0):b(X._vnode||null,K,X,null,null,null,fe),X._vnode=K,zt||(zt=!0,Dw(),Vh(),zt=!1)},gs={p:b,um:it,m:je,r:es,mt:Ce,mc:N,pc:xe,pbc:L,n:zs,o:t};let nt,ps;return e&&([nt,ps]=e(gs)),{render:Hs,hydrate:nt,createApp:SV(Hs,nt)}}function T_({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 ia({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function lk(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Kb(t,e,s=!1){const n=t.children,i=e.children;if(We(n)&&We(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=_o(i[r]),a.el=o.el),!s&&a.patchFlag!==-2&&Kb(o,a)),a.type===Hr&&(a.el=o.el)}}function OV(t){const e=t.slice(),s=[0];let n,i,r,o,a;const c=t.length;for(n=0;n<c;n++){const f=t[n];if(f!==0){if(i=s[s.length-1],t[i]<f){e[n]=i,s.push(n);continue}for(r=0,o=s.length-1;r<o;)a=r+o>>1,t[s[a]]<f?r=a+1:o=a;f<t[s[r]]&&(r>0&&(e[n]=s[r-1]),s[r]=n)}}for(r=s.length,o=s[r-1];r-- >0;)s[r]=o,o=e[o];return s}function ck(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ck(e)}function Uh(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const Gb=Symbol.for("v-scx"),Yb=()=>Sa(Gb);function uk(t,e){return md(t,null,e)}function dk(t,e){return md(t,null,{flush:"post"})}function Zb(t,e){return md(t,null,{flush:"sync"})}function Et(t,e,s){return md(t,e,s)}function md(t,e,s=Pt){const{immediate:n,deep:i,flush:r,once:o}=s,a=Dt({},s),c=e&&n||!e&&r!=="post";let f;if(zl){if(r==="sync"){const _=Yb();f=_.__watcherHandles||(_.__watcherHandles=[])}else if(!c){const _=()=>{};return _.stop=Qs,_.resume=Qs,_.pause=Qs,_}}const h=Bs;a.call=(_,v,b)=>li(_,h,v,b);let p=!1;r==="post"?a.scheduler=_=>{Vs(_,h&&h.suspense)}:r!=="sync"&&(p=!0,a.scheduler=(_,v)=>{v?_():Ab(_)}),a.augmentJob=_=>{e&&(_.flags|=4),p&&(_.flags|=2,h&&(_.id=h.uid,_.i=h))};const m=XN(t,e,a);return zl&&(f?f.push(m):c&&m()),m}function MV(t,e,s){const n=this.proxy,i=mt(t)?t.includes(".")?fk(n,t):()=>n[t]:t.bind(n,n);let r;dt(e)?r=e:(r=e.handler,s=e);const o=Da(this),a=md(i,r.bind(n),s);return o(),a}function fk(t,e){const s=e.split(".");return()=>{let n=t;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}function Gt(t,e,s=Pt){const n=di(),i=ls(e),r=Hn(e),o=hk(t,i),a=Sb((c,f)=>{let h,p=Pt,m;return Zb(()=>{const _=t[i];xn(h,_)&&(h=_,f())}),{get(){return c(),s.get?s.get(h):h},set(_){const v=s.set?s.set(_):_;if(!xn(v,h)&&!(p!==Pt&&xn(_,p)))return;const b=n.vnode.props;b&&(e in b||i in b||r in b)&&(`onUpdate:${e}`in b||`onUpdate:${i}`in b||`onUpdate:${r}`in b)||(h=_,f()),n.emit(`update:${e}`,v),xn(_,v)&&xn(_,p)&&!xn(v,m)&&f(),p=_,m=v}}});return a[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?o||Pt:a,done:!1}:{done:!0}}}},a}const hk=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${ls(e)}Modifiers`]||t[`${Hn(e)}Modifiers`];function PV(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Pt;let i=s;const r=e.startsWith("update:"),o=r&&hk(n,e.slice(7));o&&(o.trim&&(i=s.map(h=>mt(h)?h.trim():h)),o.number&&(i=s.map(Dh)));let a,c=n[a=ya(e)]||n[a=ya(ls(e))];!c&&r&&(c=n[a=ya(Hn(e))]),c&&li(c,t,6,i);const f=n[a+"Once"];if(f){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,li(f,t,6,i)}}function pk(t,e,s=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const r=t.emits;let o={},a=!1;if(!dt(t)){const c=f=>{const h=pk(f,e,!0);h&&(a=!0,Dt(o,h))};!s&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!r&&!a?(Qt(t)&&n.set(t,null),null):(We(r)?r.forEach(c=>o[c]=null):Dt(o,r),Qt(t)&&n.set(t,o),o)}function Yp(t,e){return!t||!Fa(e)?!1:(e=e.slice(2).replace(/Once$/,""),jt(t,e[0].toLowerCase()+e.slice(1))||jt(t,Hn(e))||jt(t,e))}function _h(t){const{type:e,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:c,render:f,renderCache:h,props:p,data:m,setupState:_,ctx:v,inheritAttrs:b}=t,S=Nu(t);let C,O;try{if(s.shapeFlag&4){const $=i||n,T=$;C=Un(f.call(T,$,h,p,_,m,v)),O=a}else{const $=e;C=Un($.length>1?$(p,{attrs:a,slots:o,emit:c}):$(p,null)),O=e.props?a:RV(a)}}catch($){Su.length=0,qo($,t,1),C=U(Cs)}let A=C;if(O&&b!==!1){const $=Object.keys(O),{shapeFlag:T}=A;$.length&&T&7&&(r&&$.some(pb)&&(O=IV(O,r)),A=Wi(A,O,!1,!0))}return s.dirs&&(A=Wi(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(s.dirs):s.dirs),s.transition&&fr(A,s.transition),C=A,Nu(S),C}function DV(t,e=!0){let s;for(let n=0;n<t.length;n++){const i=t[n];if(hr(i)){if(i.type!==Cs||i.children==="v-if"){if(s)return;s=i}}else return}return s}const RV=t=>{let e;for(const s in t)(s==="class"||s==="style"||Fa(s))&&((e||(e={}))[s]=t[s]);return e},IV=(t,e)=>{const s={};for(const n in t)(!pb(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function LV(t,e,s){const{props:n,children:i,component:r}=t,{props:o,children:a,patchFlag:c}=e,f=r.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Ww(n,o,f):!!o;if(c&8){const h=e.dynamicProps;for(let p=0;p<h.length;p++){const m=h[p];if(o[m]!==n[m]&&!Yp(f,m))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Ww(n,o,f):!0:!!o;return!1}function Ww(t,e,s){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(e[r]!==t[r]&&!Yp(s,r))return!0}return!1}function Zp({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 qh=t=>t.__isSuspense;let yv=0;const NV={name:"Suspense",__isSuspense:!0,process(t,e,s,n,i,r,o,a,c,f){if(t==null)VV(e,s,n,i,r,o,a,c,f);else{if(r&&r.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}FV(t,e,s,n,i,o,a,c,f)}},hydrate:BV,normalize:UV},mk=NV;function Bu(t,e){const s=t.props&&t.props[e];dt(s)&&s()}function VV(t,e,s,n,i,r,o,a,c){const{p:f,o:{createElement:h}}=c,p=h("div"),m=t.suspense=gk(t,i,n,e,p,s,r,o,a,c);f(null,m.pendingBranch=t.ssContent,p,null,n,m,r,o),m.deps>0?(Bu(t,"onPending"),Bu(t,"onFallback"),f(null,t.ssFallback,e,s,n,null,r,o),Il(m,t.ssFallback)):m.resolve(!1,!0)}function FV(t,e,s,n,i,r,o,a,{p:c,um:f,o:{createElement:h}}){const p=e.suspense=t.suspense;p.vnode=e,e.el=t.el;const m=e.ssContent,_=e.ssFallback,{activeBranch:v,pendingBranch:b,isInFallback:S,isHydrating:C}=p;if(b)p.pendingBranch=m,qi(m,b)?(c(b,m,p.hiddenContainer,null,i,p,r,o,a),p.deps<=0?p.resolve():S&&(C||(c(v,_,s,n,i,null,r,o,a),Il(p,_)))):(p.pendingId=yv++,C?(p.isHydrating=!1,p.activeBranch=b):f(b,i,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),S?(c(null,m,p.hiddenContainer,null,i,p,r,o,a),p.deps<=0?p.resolve():(c(v,_,s,n,i,null,r,o,a),Il(p,_))):v&&qi(m,v)?(c(v,m,s,n,i,p,r,o,a),p.resolve(!0)):(c(null,m,p.hiddenContainer,null,i,p,r,o,a),p.deps<=0&&p.resolve()));else if(v&&qi(m,v))c(v,m,s,n,i,p,r,o,a),Il(p,m);else if(Bu(e,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=yv++,c(null,m,p.hiddenContainer,null,i,p,r,o,a),p.deps<=0)p.resolve();else{const{timeout:O,pendingId:A}=p;O>0?setTimeout(()=>{p.pendingId===A&&p.fallback(_)},O):O===0&&p.fallback(_)}}function gk(t,e,s,n,i,r,o,a,c,f,h=!1){const{p,m,um:_,n:v,o:{parentNode:b,remove:S}}=f;let C;const O=qV(t);O&&e&&e.pendingBranch&&(C=e.pendingId,e.deps++);const A=t.props?Rh(t.props.timeout):void 0,$=r,T={vnode:t,parent:e,parentComponent:s,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:yv++,timeout:typeof A=="number"?A:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(D=!1,B=!1){const{vnode:N,activeBranch:F,pendingBranch:L,pendingId:Y,effects:Z,parentComponent:le,container:Ce}=T;let Ee=!1;T.isHydrating?T.isHydrating=!1:D||(Ee=F&&L.transition&&L.transition.mode==="out-in",Ee&&(F.transition.afterLeave=()=>{Y===T.pendingId&&(m(L,Ce,r===$?v(F):r,0),Wl(Z))}),F&&(b(F.el)===Ce&&(r=v(F)),_(F,le,T,!0)),Ee||m(L,Ce,r,0)),Il(T,L),T.pendingBranch=null,T.isInFallback=!1;let he=T.parent,ye=!1;for(;he;){if(he.pendingBranch){he.effects.push(...Z),ye=!0;break}he=he.parent}!ye&&!Ee&&Wl(Z),T.effects=[],O&&e&&e.pendingBranch&&C===e.pendingId&&(e.deps--,e.deps===0&&!B&&e.resolve()),Bu(N,"onResolve")},fallback(D){if(!T.pendingBranch)return;const{vnode:B,activeBranch:N,parentComponent:F,container:L,namespace:Y}=T;Bu(B,"onFallback");const Z=v(N),le=()=>{T.isInFallback&&(p(null,D,L,Z,F,null,Y,a,c),Il(T,D))},Ce=D.transition&&D.transition.mode==="out-in";Ce&&(N.transition.afterLeave=le),T.isInFallback=!0,_(N,F,null,!0),Ce||le()},move(D,B,N){T.activeBranch&&m(T.activeBranch,D,B,N),T.container=D},next(){return T.activeBranch&&v(T.activeBranch)},registerDep(D,B,N){const F=!!T.pendingBranch;F&&T.deps++;const L=D.vnode.el;D.asyncDep.catch(Y=>{qo(Y,D,0)}).then(Y=>{if(D.isUnmounted||T.isUnmounted||T.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:Z}=D;Sv(D,Y,!1),L&&(Z.el=L);const le=!L&&D.subTree.el;B(D,Z,b(L||D.subTree.el),L?null:v(D.subTree),T,o,N),le&&S(le),Zp(D,Z.el),F&&--T.deps===0&&T.resolve()})},unmount(D,B){T.isUnmounted=!0,T.activeBranch&&_(T.activeBranch,s,D,B),T.pendingBranch&&_(T.pendingBranch,s,D,B)}};return T}function BV(t,e,s,n,i,r,o,a,c){const f=e.suspense=gk(e,n,s,t.parentNode,document.createElement("div"),null,i,r,o,a,!0),h=c(t,f.pendingBranch=e.ssContent,s,f,r,o);return f.deps===0&&f.resolve(!1,!0),h}function UV(t){const{shapeFlag:e,children:s}=t,n=e&32;t.ssContent=zw(n?s.default:s),t.ssFallback=n?zw(s.fallback):U(Cs)}function zw(t){let e;if(dt(t)){const s=Pa&&t._c;s&&(t._d=!1,y()),t=t(),s&&(t._d=!0,e=dn,vk())}return We(t)&&(t=DV(t)),t=Un(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(s=>s!==t)),t}function _k(t,e){e&&e.pendingBranch?We(t)?e.effects.push(...t):e.effects.push(t):Wl(t)}function Il(t,e){t.activeBranch=e;const{vnode:s,parentComponent:n}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,Zp(n,i))}function qV(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const G=Symbol.for("v-fgt"),Hr=Symbol.for("v-txt"),Cs=Symbol.for("v-cmt"),ko=Symbol.for("v-stc"),Su=[];let dn=null;function y(t=!1){Su.push(dn=t?null:[])}function vk(){Su.pop(),dn=Su[Su.length-1]||null}let Pa=1;function Hh(t,e=!1){Pa+=t,t<0&&dn&&e&&(dn.hasOnce=!0)}function bk(t){return t.dynamicChildren=Pa>0?dn||Ml:null,vk(),Pa>0&&dn&&dn.push(t),t}function x(t,e,s,n,i,r){return bk(u(t,e,s,n,i,r,!0))}function tt(t,e,s,n,i){return bk(U(t,e,s,n,i,!0))}function hr(t){return t?t.__v_isVNode===!0:!1}function qi(t,e){return t.type===e.type&&t.key===e.key}function yk(t){}const wk=({key:t})=>t??null,vh=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?mt(t)||ft(t)||dt(t)?{i:Us,r:t,k:e,f:!!s}:t:null);function u(t,e=null,s=null,n=0,i=null,r=t===G?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&wk(e),ref:e&&vh(e),scopeId:Hp,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:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Us};return a?(Jb(c,s),r&128&&t.normalize(c)):s&&(c.shapeFlag|=mt(s)?8:16),Pa>0&&!o&&dn&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&dn.push(c),c}const U=HV;function HV(t,e=null,s=null,n=0,i=null,r=!1){if((!t||t===DC)&&(t=Cs),hr(t)){const a=Wi(t,e,!0);return s&&Jb(a,s),Pa>0&&!r&&dn&&(a.shapeFlag&6?dn[dn.indexOf(t)]=a:dn.push(a)),a.patchFlag=-2,a}if(GV(t)&&(t=t.__vccOpts),e){e=Xb(e);let{class:a,style:c}=e;a&&!mt(a)&&(e.class=Ve(a)),Qt(c)&&(qa(c)&&!We(c)&&(c=Dt({},c)),e.style=qr(c))}const o=mt(t)?1:qh(t)?128:bC(t)?64:Qt(t)?4:dt(t)?2:0;return u(t,e,s,n,i,o,r,!0)}function Xb(t){return t?qa(t)||ek(t)?Dt({},t):t:null}function Wi(t,e,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:a,transition:c}=t,f=e?Xp(i||{},e):i,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:f,key:f&&wk(f),ref:e&&e.ref?s&&r?We(r)?r.concat(vh(e)):[r,vh(e)]:vh(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==G?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Wi(t.ssContent),ssFallback:t.ssFallback&&Wi(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&n&&fr(h,c.clone(h)),h}function re(t=" ",e=0){return U(Hr,null,t,e)}function ci(t,e){const s=U(ko,null,t);return s.staticCount=e,s}function ie(t="",e=!1){return e?(y(),tt(Cs,null,t)):U(Cs,null,t)}function Un(t){return t==null||typeof t=="boolean"?U(Cs):We(t)?U(G,null,t.slice()):hr(t)?_o(t):U(Hr,null,String(t))}function _o(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Wi(t)}function Jb(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(We(e))s=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Jb(t,i()),i._c&&(i._d=!0));return}else{s=32;const i=e._;!i&&!ek(e)?e._ctx=Us:i===3&&Us&&(Us.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else dt(e)?(e={default:e,_ctx:Us},s=32):(e=String(e),n&64?(s=16,e=[re(e)]):s=8);t.children=e,t.shapeFlag|=s}function Xp(...t){const e={};for(let s=0;s<t.length;s++){const n=t[s];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=Ve([e.class,n.class]));else if(i==="style")e.style=qr([e.style,n.style]);else if(Fa(i)){const r=e[i],o=n[i];o&&r!==o&&!(We(r)&&r.includes(o))&&(e[i]=r?[].concat(r,o):o)}else i!==""&&(e[i]=n[i])}return e}function Fn(t,e,s,n=null){li(t,e,7,[s,n])}const jV=XC();let WV=0;function xk(t,e,s){const n=t.type,i=(e?e.appContext:t.appContext)||jV,r={uid:WV++,vnode:t,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Rp(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sk(n,i),emitsOptions:pk(n,i),emit:null,emitted:null,propsDefaults:Pt,inheritAttrs:n.inheritAttrs,ctx:Pt,data:Pt,props:Pt,attrs:Pt,slots:Pt,refs:Pt,setupState:Pt,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 r.ctx={_:r},r.root=e?e.root:r,r.emit=PV.bind(null,r),t.ce&&t.ce(r),r}let Bs=null;const di=()=>Bs||Us;let jh,wv;{const t=Pp(),e=(s,n)=>{let i;return(i=t[s])||(i=t[s]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};jh=e("__VUE_INSTANCE_SETTERS__",s=>Bs=s),wv=e("__VUE_SSR_SETTERS__",s=>zl=s)}const Da=t=>{const e=Bs;return jh(t),t.scope.on(),()=>{t.scope.off(),jh(e)}},xv=()=>{Bs&&Bs.scope.off(),jh(null)};function Sk(t){return t.vnode.shapeFlag&4}let zl=!1;function Ek(t,e=!1,s=!1){e&&wv(e);const{props:n,children:i}=t.vnode,r=Sk(t);EV(t,n,r,e),$V(t,i,s);const o=r?zV(t,e):void 0;return e&&wv(!1),o}function zV(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,gv);const{setup:n}=s;if(n){Bo();const i=t.setupContext=n.length>1?Ak(t):null,r=Da(t),o=Ha(n,t,0,[t.props,i]),a=gb(o);if(Uo(),r(),(a||t.sp)&&!Co(t)&&Ob(t),a){if(o.then(xv,xv),e)return o.then(c=>{Sv(t,c,e)}).catch(c=>{qo(c,t,0)});t.asyncDep=o}else Sv(t,o,e)}else kk(t,e)}
vendor: 1,939 bytes, lines 26-29
26function Sv(t,e,s){dt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Qt(e)&&(t.setupState=qp(e)),kk(t,s)}let Wh,Ev;function Qb(t){Wh=t,Ev=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,gV))}}const Ck=()=>!Wh;function kk(t,e,s){const n=t.type;if(!t.render){if(!e&&Wh&&!n.render){const i=n.template||Ub(t).template;if(i){const{isCustomElement:r,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:c}=n,f=Dt(Dt({isCustomElement:r,delimiters:a},o),c);n.render=Wh(i,f)}}t.render=n.render||Qs,Ev&&Ev(t)}{const i=Da(t);Bo();try{_V(t)}finally{Uo(),i()}}}const KV={get(t,e){return cn(t,"get",""),t[e]}};function Ak(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,KV),slots:t.slots,emit:t.emit,expose:e}}function gd(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(qp(cd(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in xu)return xu[s](t)},has(e,s){return s in e||s in xu}})):t.proxy}function Cv(t,e=!0){return dt(t)?t.displayName||t.name:t.name||e&&t.__name}function GV(t){return dt(t)&&"__vccOpts"in t}const te=(t,e)=>ZN(t,e,zl);function Kl(t,e,s){const n=arguments.length;return n===2?Qt(e)&&!We(e)?hr(e)?U(t,null,[e]):U(t,e):U(t,null,e):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&hr(s)&&(s=[s]),U(t,e,s))}function $k(){}function Tk(t,e,s,n){const i=s[n];if(i&&ey(i,t))return i;const r=e();return r.memo=t.slice(),r.cacheIndex=n,s[n]=r}function ey(t,e){const s=t.memo;if(s.length!=e.length)return!1;for(let n=0;n<s.length;n++)if(xn(s[n],e[n]))return!1;return Pa>0&&dn&&dn.push(t),!0}const Jp="3.5.13",Ok=Qs,Mk=eV,Pk=$l,Dk=pC,YV={createComponentInstance:xk,setupComponent:Ek,renderComponentRoot:_h,setCurrentRenderingInstance:Nu,isVNode:hr,normalizeVNode:Un,getComponentPublicInstance:gd,ensureValidVNode:Bb,pushWarningContext:JN,popWarningContext:QN},Rk=YV,Ik=null,Lk=null,Nk=null;/** 27* @vue/runtime-dom v3.5.13 28* (c) 2018-present Yuxi (Evan) You and Vue contributors 29* @license MIT
30**/let kv;const Kw=typeof window<"u"&&window.trustedTypes;if(Kw)try{kv=Kw.createPolicy("vue",{createHTML:t=>t})}catch{}const Vk=kv?t=>kv.createHTML(t):t=>t,ZV="http://www.w3.org/2000/svg",XV="http://www.w3.org/1998/Math/MathML",Ir=typeof document<"u"?document:null,Gw=Ir&&Ir.createElement("template"),JV={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 i=e==="svg"?Ir.createElementNS(ZV,t):e==="mathml"?Ir.createElementNS(XV,t):s?Ir.createElement(t,{is:s}):Ir.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>Ir.createTextNode(t),createComment:t=>Ir.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ir.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,i,r){const o=s?s.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{Gw.innerHTML=Vk(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const a=Gw.content;if(n==="svg"||n==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}e.insertBefore(a,s)}return[o?o.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},ao="transition",Zc="animation",Gl=Symbol("_vtc"),Fk={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},Bk=Dt({},Wp,Fk),QV=t=>(t.displayName="Transition",t.props=Bk,t),Uu=QV((t,{slots:e})=>Kl(Tb,Uk(t),e)),ra=(t,e=[])=>{We(t)?t.forEach(s=>s(...e)):t&&t(...e)},Yw=t=>t?We(t)?t.some(e=>e.length>1):t.length>1:!1;function Uk(t){const e={};for(const Z in t)Z in Fk||(e[Z]=t[Z]);if(t.css===!1)return e;const{name:s="v",type:n,duration:i,enterFromClass:r=`${s}-enter-from`,enterActiveClass:o=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:c=r,appearActiveClass:f=o,appearToClass:h=a,leaveFromClass:p=`${s}-leave-from`,leaveActiveClass:m=`${s}-leave-active`,leaveToClass:_=`${s}-leave-to`}=t,v=e9(i),b=v&&v[0],S=v&&v[1],{onBeforeEnter:C,onEnter:O,onEnterCancelled:A,onLeave:$,onLeaveCancelled:T,onBeforeAppear:D=C,onAppear:B=O,onAppearCancelled:N=A}=e,F=(Z,le,Ce,Ee)=>{Z._enterCancelled=Ee,fo(Z,le?h:a),fo(Z,le?f:o),Ce&&Ce()},L=(Z,le)=>{Z._isLeaving=!1,fo(Z,p),fo(Z,_),fo(Z,m),le&&le()},Y=Z=>(le,Ce)=>{const Ee=Z?B:O,he=()=>F(le,Z,Ce);ra(Ee,[le,he]),Zw(()=>{fo(le,Z?c:r),sr(le,Z?h:a),Yw(Ee)||Xw(le,n,b,he)})};return Dt(e,{onBeforeEnter(Z){ra(C,[Z]),sr(Z,r),sr(Z,o)},onBeforeAppear(Z){ra(D,[Z]),sr(Z,c),sr(Z,f)},onEnter:Y(!1),onAppear:Y(!0),onLeave(Z,le){Z._isLeaving=!0;const Ce=()=>L(Z,le);sr(Z,p),Z._enterCancelled?(sr(Z,m),Av()):(Av(),sr(Z,m)),Zw(()=>{Z._isLeaving&&(fo(Z,p),sr(Z,_),Yw($)||Xw(Z,n,S,Ce))}),ra($,[Z,Ce])},onEnterCancelled(Z){F(Z,!1,void 0,!0),ra(A,[Z])},onAppearCancelled(Z){F(Z,!0,void 0,!0),ra(N,[Z])},onLeaveCancelled(Z){L(Z),ra(T,[Z])}})}function e9(t){if(t==null)return null;if(Qt(t))return[O_(t.enter),O_(t.leave)];{const e=O_(t);return[e,e]}}function O_(t){return Rh(t)}function sr(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.add(s)),(t[Gl]||(t[Gl]=new Set)).add(e)}function fo(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const s=t[Gl];s&&(s.delete(e),s.size||(t[Gl]=void 0))}function Zw(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let t9=0;function Xw(t,e,s,n){const i=t._endId=++t9,r=()=>{i===t._endId&&n()};if(s!=null)return setTimeout(r,s);const{type:o,timeout:a,propCount:c}=qk(t,e);if(!o)return n();const f=o+"end";let h=0;const p=()=>{t.removeEventListener(f,m),r()},m=_=>{_.target===t&&++h>=c&&p()};setTimeout(()=>{h<c&&p()},a+1),t.addEventListener(f,m)}function qk(t,e){const s=window.getComputedStyle(t),n=v=>(s[v]||"").split(", "),i=n(`${ao}Delay`),r=n(`${ao}Duration`),o=Jw(i,r),a=n(`${Zc}Delay`),c=n(`${Zc}Duration`),f=Jw(a,c);let h=null,p=0,m=0;e===ao?o>0&&(h=ao,p=o,m=r.length):e===Zc?f>0&&(h=Zc,p=f,m=c.length):(p=Math.max(o,f),h=p>0?o>f?ao:Zc:null,m=h?h===ao?r.length:c.length:0);const _=h===ao&&/\b(transform|all)(,|$)/.test(n(`${ao}Property`).toString());return{type:h,timeout:p,propCount:m,hasTransform:_}}function Jw(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((s,n)=>Qw(s)+Qw(t[n])))}function Qw(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Av(){return document.body.offsetHeight}function s9(t,e,s){const n=t[Gl];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const zh=Symbol("_vod"),Hk=Symbol("_vsh"),ks={beforeMount(t,{value:e},{transition:s}){t[zh]=t.style.display==="none"?"":t.style.display,s&&e?s.beforeEnter(t):Xc(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),Xc(t,!0),n.enter(t)):n.leave(t,()=>{Xc(t,!1)}):Xc(t,e))},beforeUnmount(t,{value:e}){Xc(t,e)}};function Xc(t,e){t.style.display=e?t[zh]:"none",t[Hk]=!e}function n9(){ks.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const jk=Symbol("");function Wk(t){const e=di();if(!e)return;const s=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}
30"]`)).forEach(r=>Kh(r,i))},n=()=>{const i=t(e.proxy);e.ce?Kh(e.ce,i):$v(e.subTree,i),s(i)};Gp(()=>{Wl(n)}),Ds(()=>{Et(n,Qs,{flush:"post"});const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),Wa(()=>i.disconnect())})}function $v(t,e){if(t.shapeFlag&128){const s=t.suspense;t=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{$v(s.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Kh(t.el,e);else if(t.type===G)t.children.forEach(s=>$v(s,e));else if(t.type===ko){let{el:s,anchor:n}=t;for(;s&&(Kh(s,e),s!==n);)s=s.nextSibling}}function Kh(t,e){if(t.nodeType===1){const s=t.style;let n="";for(const i in e)s.setProperty(`--${i}`,e[i]),n+=`--${i}: ${e[i]};`;s[jk]=n}}const i9=/(^|;)\s*display\s*:/;function r9(t,e,s){const n=t.style,i=mt(s);let r=!1;if(s&&!i){if(e)if(mt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();s[a]==null&&bh(n,a,"")}else for(const o in e)s[o]==null&&bh(n,o,"");for(const o in s)o==="display"&&(r=!0),bh(n,o,s[o])}else if(i){if(e!==s){const o=n[jk];o&&(s+=";"+o),n.cssText=s,r=i9.test(s)}}else e&&t.removeAttribute("style");zh in t&&(t[zh]=r?n.display:"",t[Hk]&&(n.display="none"))}const e2=/\s*!important$/;function bh(t,e,s){if(We(s))s.forEach(n=>bh(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))t.setProperty(e,s);else{const n=o9(t,e);e2.test(s)?t.setProperty(Hn(n),s.replace(e2,""),"important"):t[n]=s}}const t2=["Webkit","Moz","ms"],M_={};function o9(t,e){const s=M_[e];if(s)return s;let n=ls(e);if(n!=="filter"&&n in t)return M_[e]=n;n=Fo(n);for(let i=0;i<t2.length;i++){const r=t2[i]+n;if(r in t)return M_[e]=r}return e}const s2="http://www.w3.org/1999/xlink";function n2(t,e,s,n,i,r=SN(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(s2,e.slice(6,e.length)):t.setAttributeNS(s2,e,s):s==null||r&&!RE(s)?t.removeAttribute(e):t.setAttribute(e,r?"":Zn(s)?String(s):s)}function i2(t,e,s,n,i){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?Vk(s):s);return}const r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?t.getAttribute("value")||"":t.value,c=s==null?t.type==="checkbox"?"on":"":String(s);(a!==c||!("_value"in t))&&(t.value=c),s==null&&t.removeAttribute(e),t._value=s;return}let o=!1;if(s===""||s==null){const a=typeof t[e];a==="boolean"?s=RE(s):s==null&&a==="string"?(s="",o=!0):a==="number"&&(s=0,o=!0)}try{t[e]=s}catch{}o&&t.removeAttribute(i||e)}function Fr(t,e,s,n){t.addEventListener(e,s,n)}function a9(t,e,s,n){t.removeEventListener(e,s,n)}const r2=Symbol("_vei");function l9(t,e,s,n,i=null){const r=t[r2]||(t[r2]={}),o=r[e];if(n&&o)o.value=n;else{const[a,c]=c9(e);if(n){const f=r[e]=f9(n,i);Fr(t,a,f,c)}else o&&(a9(t,a,o,c),r[e]=void 0)}}const o2=/(?:Once|Passive|Capture)$/;function c9(t){let e;if(o2.test(t)){e={};let n;for(;n=t.match(o2);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Hn(t.slice(2)),e]}let P_=0;const u9=Promise.resolve(),d9=()=>P_||(u9.then(()=>P_=0),P_=Date.now());function f9(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;li(h9(n,s.value),e,5,[n])};return s.value=t,s.attached=d9(),s}function h9(t,e){if(We(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const a2=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,p9=(t,e,s,n,i,r)=>{const o=i==="svg";e==="class"?s9(t,n,o):e==="style"?r9(t,s,n):Fa(e)?pb(e)||l9(t,e,s,n,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):m9(t,e,n,o))?(i2(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&n2(t,e,n,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!mt(n))?i2(t,ls(e),n,r,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),n2(t,e,n,o))};function m9(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&a2(e)&&dt(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return a2(e)&&mt(s)?!1:e in t}const l2={};/*! #__NO_SIDE_EFFECTS__ */function ty(t,e,s){const n=ja(t,e);Op(n)&&Dt(n,e);class i extends _d{constructor(o){super(n,o,s)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const zk=(t,e)=>ty(t,e,ry),g9=typeof HTMLElement<"u"?HTMLElement:class{};class _d extends g9{constructor(e,s={},n=Rt){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!==Rt?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof _d){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):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._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,Xr(()=>{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)})}
30_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 i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:o}=n;let a;if(r&&!We(r))for(const c in r){const f=r[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=Rh(this._props[c])),(a||(a=Object.create(null)))[ls(c)]=!0)}this._numberProps=a,i&&this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(n=>e(this._def=n,!0)):e(this._def)}_mount(e){this._app=this._createApp(e),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)jt(this,n)||Object.defineProperty(this,n,{get:()=>w(s[n])})}_resolveProps(e){const{props:s}=e,n=We(s)?s:Object.keys(s||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(ls))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const s=this.hasAttribute(e);let n=s?this.getAttribute(e):l2;const i=ls(e);s&&this._numberProps&&this._numberProps[i]&&(n=Rh(n)),this._setProp(i,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,s,n=!0,i=!1){if(s!==this._props[e]&&(s===l2?delete this._props[e]:(this._props[e]=s,e==="key"&&this._app&&(this._app._ceVNode.key=s)),i&&this._instance&&this._update(),n)){const r=this._ob;r&&r.disconnect(),s===!0?this.setAttribute(Hn(e),""):typeof s=="string"||typeof s=="number"?this.setAttribute(Hn(e),s+""):s||this.removeAttribute(Hn(e)),r&&r.observe(this,{attributes:!0})}}
30_update(){iy(this._createVNode(),this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const s=U(this._def,Dt(e,this._props));return this._instance||(s.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(r,o)=>{this.dispatchEvent(new CustomEvent(r,Op(o[0])?Dt({detail:o},o[0]):{detail:o}))};n.emit=(r,...o)=>{i(r,o),Hn(r)!==r&&i(Hn(r),o)},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 i=e.length-1;i>=0;i--){const r=document.createElement("style");n&&r.setAttribute("nonce",n),r.textContent=e[i],this.shadowRoot.prepend(r)}}_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 i=e[n],r=i.getAttribute("name")||"default",o=this._slots[r],a=i.parentNode;if(o)for(const c of o){if(s&&c.nodeType===1){const f=s+"-s",h=document.createTreeWalker(c,1);c.setAttribute(f,"");let p;for(;p=h.nextNode();)p.setAttribute(f,"")}a.insertBefore(c,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function sy(t){const e=di(),s=e&&e.ce;return s||null}function Kk(){const t=sy();return t&&t.shadowRoot}function Gk(t="$style"){{const e=di();if(!e)return Pt;const s=e.type.__cssModules;if(!s)return Pt;const n=s[t];return n||Pt}}const Yk=new WeakMap,Zk=new WeakMap,Gh=Symbol("_moveCb"),c2=Symbol("_enterCb"),_9=t=>(delete t.props.mode,t),v9=_9({name:"TransitionGroup",props:Dt({},Bk,{tag:String,moveClass:String}),setup(t,{slots:e}){const s=di(),n=jp();let i,r;return hd(()=>{if(!i.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!x9(i[0].el,s.vnode.el,o))return;i.forEach(b9),i.forEach(y9);const a=i.filter(w9);Av(),a.forEach(c=>{const f=c.el,h=f.style;sr(f,o),h.transform=h.webkitTransform=h.transitionDuration="";const p=f[Gh]=m=>{m&&m.target!==f||(!m||/transform$/.test(m.propertyName))&&(f.removeEventListener("transitionend",p),f[Gh]=null,fo(f,o))};f.addEventListener("transitionend",p)})}),()=>{const o=St(t),a=Uk(o);let c=o.tag||G;if(i=[],r)for(let f=0;f<r.length;f++){const h=r[f];h.el&&h.el instanceof Element&&(i.push(h),fr(h,Ma(h,a,n,s)),Yk.set(h,h.el.getBoundingClientRect()))}r=e.default?dd(e.default()):[];for(let f=0;f<r.length;f++){const h=r[f];h.key!=null&&fr(h,Ma(h,a,n,s))}return U(c,null,r)}}}),Xk=v9;function b9(t){const e=t.el;e[Gh]&&e[Gh](),e[c2]&&e[c2]()}function y9(t){Zk.set(t,t.el.getBoundingClientRect())}function w9(t){const e=Yk.get(t),s=Zk.get(t),n=e.left-s.left,i=e.top-s.top;if(n||i){const r=t.el.style;return r.transform=r.webkitTransform=`translate(${n}px,${i}px)`,r.transitionDuration="0s",t}}function x9(t,e,s){const n=t.cloneNode(),i=t[Gl];i&&i.forEach(a=>{a.split(/\s+/).forEach(c=>c&&n.classList.remove(c))}),s.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const r=e.nodeType===1?e:e.parentNode;r.appendChild(n);const{hasTransform:o}=qk(n);return r.removeChild(n),o}const Do=t=>{const e=t.props["onUpdate:modelValue"]||!1;return We(e)?s=>Dl(e,s):e};function S9(t){t.target.composing=!0}function u2(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ti=Symbol("_assign"),Pi={created(t,{modifiers:{lazy:e,trim:s,number:n}},i){t[Ti]=Do(i);const r=n||i.props&&i.props.type==="number";Fr(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;s&&(a=a.trim()),r&&(a=Dh(a)),t[Ti](a)}),s&&Fr(t,"change",()=>{t.value=t.value.trim()}),e||(Fr(t,"compositionstart",S9),Fr(t,"compositionend",u2),Fr(t,"change",u2))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},o){if(t[Ti]=Do(o),t.composing)return;const a=(r||t.type==="number")&&!/^0\d/.test(t.value)?Dh(t.value):t.value,c=e??"";
vendor: 4,352 bytes, line 30
30a!==c&&(document.activeElement===t&&t.type!=="range"&&(n&&e===s||i&&t.value.trim()===c)||(t.value=c))}},en={deep:!0,created(t,e,s){t[Ti]=Do(s),Fr(t,"change",()=>{const n=t._modelValue,i=Yl(t),r=t.checked,o=t[Ti];if(We(n)){const a=Dp(n,i),c=a!==-1;if(r&&!c)o(n.concat(i));else if(!r&&c){const f=[...n];f.splice(a,1),o(f)}}else if(Ba(n)){const a=new Set(n);r?a.add(i):a.delete(i),o(a)}else o(Jk(t,r))})},mounted:d2,beforeUpdate(t,e,s){t[Ti]=Do(s),d2(t,e,s)}};function d2(t,{value:e,oldValue:s},n){t._modelValue=e;let i;if(We(e))i=Dp(e,n.props.value)>-1;else if(Ba(e))i=e.has(n.props.value);else{if(e===s)return;i=Po(e,Jk(t,!0))}t.checked!==i&&(t.checked=i)}const Ps={created(t,{value:e},s){t.checked=Po(e,s.props.value),t[Ti]=Do(s),Fr(t,"change",()=>{t[Ti](Yl(t))})},beforeUpdate(t,{value:e,oldValue:s},n){t[Ti]=Do(n),e!==s&&(t.checked=Po(e,n.props.value))}},Wn={deep:!0,created(t,{value:e,modifiers:{number:s}},n){const i=Ba(e);Fr(t,"change",()=>{const r=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>s?Dh(Yl(o)):Yl(o));t[Ti](t.multiple?i?new Set(r):r:r[0]),t._assigning=!0,Xr(()=>{t._assigning=!1})}),t[Ti]=Do(n)},mounted(t,{value:e}){f2(t,e)},beforeUpdate(t,e,s){t[Ti]=Do(s)},updated(t,{value:e}){t._assigning||f2(t,e)}};function f2(t,e){const s=t.multiple,n=We(e);if(!(s&&!n&&!Ba(e))){for(let i=0,r=t.options.length;i<r;i++){const o=t.options[i],a=Yl(o);if(s)if(n){const c=typeof a;c==="string"||c==="number"?o.selected=e.some(f=>String(f)===String(a)):o.selected=Dp(e,a)>-1}else o.selected=e.has(a);else if(Po(Yl(o),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Yl(t){return"_value"in t?t._value:t.value}function Jk(t,e){const s=e?"_trueValue":"_falseValue";return s in t?t[s]:e}const ny={created(t,e,s){zf(t,e,s,null,"created")},mounted(t,e,s){zf(t,e,s,null,"mounted")},beforeUpdate(t,e,s,n){zf(t,e,s,n,"beforeUpdate")},updated(t,e,s,n){zf(t,e,s,n,"updated")}};function Qk(t,e){switch(t){case"SELECT":return Wn;case"TEXTAREA":return Pi;default:switch(e){case"checkbox":return en;case"radio":return Ps;default:return Pi}}}function zf(t,e,s,n,i){const o=Qk(t.tagName,s.props&&s.props.type)[i];o&&o(t,e,s,n)}function E9(){Pi.getSSRProps=({value:t})=>({value:t}),Ps.getSSRProps=({value:t},e)=>{if(e.props&&Po(e.props.value,t))return{checked:!0}},en.getSSRProps=({value:t},e)=>{if(We(t)){if(e.props&&Dp(t,e.props.value)>-1)return{checked:!0}}else if(Ba(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},ny.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const s=Qk(e.type.toUpperCase(),e.props&&e.props.type);if(s.getSSRProps)return s.getSSRProps(t,e)}}const C9=["ctrl","shift","alt","meta"],k9={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)=>C9.some(s=>t[`${s}Key`]&&!e.includes(s))},st=(t,e)=>{const s=t._withMods||(t._withMods={}),n=e.join(".");return s[n]||(s[n]=(i,...r)=>{for(let o=0;o<e.length;o++){const a=k9[e[o]];if(a&&a(i,e))return}return t(i,...r)})},A9={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Bn=(t,e)=>{const s=t._withKeys||(t._withKeys={}),n=e.join(".");return s[n]||(s[n]=i=>{if(!("key"in i))return;const r=Hn(i.key);if(e.some(o=>o===r||A9[o]===r))return t(i)})},eA=Dt({patchProp:p9},JV);let Eu,h2=!1;function tA(){return Eu||(Eu=Wb(eA))}function sA(){return Eu=h2?Eu:zb(eA),h2=!0,Eu}const iy=(...t)=>{tA().render(...t)},nA=(...t)=>{sA().hydrate(...t)},Rt=(...t)=>{const e=tA().createApp(...t),{mount:s}=e;return e.mount=n=>{const i=rA(n);if(!i)return;const r=e._component;!dt(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,iA(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},ry=(...t)=>{const e=sA().createApp(...t),{mount:s}=e;return e.mount=n=>{const i=rA(n);if(i)return s(i,!0,iA(i))},e};function iA(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function rA(t){return mt(t)?document.querySelector(t):t}let p2=!1;
30const oA=()=>{p2||(p2=!0,E9(),n9())},$9=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Tb,BaseTransitionPropsValidators:Wp,Comment:Cs,DeprecationTypes:Nk,EffectScope:Rp,ErrorCodes:uC,ErrorTypeStrings:Mk,Fragment:G,KeepAlive:OC,ReactiveEffect:jl,Static:ko,Suspense:mk,Teleport:$b,Text:Hr,TrackOpTypes:rC,Transition:Uu,TransitionGroup:Xk,TriggerOpTypes:oC,VueElement:_d,assertNumber:cC,callWithAsyncErrorHandling:li,callWithErrorHandling:Ha,camelize:ls,capitalize:Fo,cloneVNode:Wi,compatUtils:Lk,computed:te,createApp:Rt,createBlock:tt,createCommentVNode:ie,createElementBlock:x,createElementVNode:u,createHydrationRenderer:zb,createPropsRestProxy:GC,createRenderer:Wb,createSSRApp:ry,createSlots:IC,createStaticVNode:ci,createTextVNode:re,createVNode:U,customRef:Sb,defineAsyncComponent:TC,defineComponent:ja,defineCustomElement:ty,defineEmits:VC,defineExpose:FC,defineModel:qC,defineOptions:BC,defineProps:NC,defineSSRCustomElement:zk,defineSlots:UC,devtools:Pk,effect:qE,effectScope:Ip,getCurrentInstance:di,getCurrentScope:Lp,getCurrentWatcher:aC,getTransitionRawChildren:dd,guardReactiveProps:Xb,h:Kl,handleError:qo,hasInjectionContext:Hb,hydrate:nA,hydrateOnIdle:CC,hydrateOnInteraction:$C,hydrateOnMediaQuery:AC,hydrateOnVisible:kC,initCustomFormatter:$k,initDirectivesForSSR:oA,inject:Sa,isMemoSame:ey,isProxy:qa,isReactive:$i,isReadonly:zr,isRef:ft,isRuntimeOnly:Ck,isShallow:Yn,isVNode:hr,markRaw:cd,mergeDefaults:KC,mergeModels:Nt,mergeProps:Xp,nextTick:Xr,normalizeClass:Ve,normalizeProps:DE,normalizeStyle:qr,onActivated:Mb,onBeforeMount:Db,onBeforeUnmount:pd,onBeforeUpdate:Gp,onDeactivated:Pb,onErrorCaptured:Nb,onMounted:Ds,onRenderTracked:Lb,onRenderTriggered:Ib,onScopeDispose:vb,onServerPrefetch:Rb,onUnmounted:Wa,onUpdated:hd,onWatcherCleanup:kb,openBlock:y,popScopeId:gC,provide:qb,proxyRefs:qp,pushScopeId:mC,queuePostFlushCb:Wl,reactive:Ua,readonly:Bp,ref:W,registerRuntimeCompiler:Qb,render:iy,renderList:ge,renderSlot:Ft,resolveComponent:PC,resolveDirective:RC,resolveDynamicComponent:Kr,resolveFilter:Ik,resolveTransitionHooks:Ma,setBlockTracking:Hh,setDevtoolsHook:Dk,setTransitionHooks:fr,shallowReactive:xb,shallowReadonly:eC,shallowRef:ud,ssrContextKey:Gb,ssrUtils:Rk,stop:HE,toDisplayString:P,toHandlerKey:ya,toHandlers:LC,toRaw:St,toRef:Cb,toRefs:Eb,toValue:nC,transformVNodeArgs:yk,triggerRef:sC,unref:w,useAttrs:WC,useCssModule:Gk,useCssVars:Wk,useHost:sy,useId:Fh,useModel:Gt,useSSRContext:Yb,useShadowRoot:Kk,useSlots:jC,useTemplateRef:zp,useTransitionState:jp,vModelCheckbox:en,vModelDynamic:ny,vModelRadio:Ps,vModelSelect:Wn,vModelText:Pi,vShow:ks,version:Jp,warn:Ok,watch:Et,watchEffect:uk,watchPostEffect:dk,watchSyncEffect:Zb,withAsyncContext:YC,withCtx:Fe,withDefaults:HC,withDirectives:Ge,withKeys:Bn,withMemo:Tk,withModifiers:st,withScopeId:_C},Symbol.toStringTag,{value:"Module"}));/** 31* @vue/compiler-core v3.5.13 32* (c) 2018-present Yuxi (Evan) You and Vue contributors 33* @license MIT
vendor: 56,405 bytes, lines 34-43
34**/const qu=Symbol(""),Cu=Symbol(""),oy=Symbol(""),Yh=Symbol(""),aA=Symbol(""),Ra=Symbol(""),lA=Symbol(""),cA=Symbol(""),ay=Symbol(""),ly=Symbol(""),vd=Symbol(""),cy=Symbol(""),uA=Symbol(""),uy=Symbol(""),dy=Symbol(""),fy=Symbol(""),hy=Symbol(""),py=Symbol(""),my=Symbol(""),dA=Symbol(""),fA=Symbol(""),Qp=Symbol(""),Zh=Symbol(""),gy=Symbol(""),_y=Symbol(""),Hu=Symbol(""),bd=Symbol(""),vy=Symbol(""),Tv=Symbol(""),T9=Symbol(""),Ov=Symbol(""),Xh=Symbol(""),O9=Symbol(""),M9=Symbol(""),by=Symbol(""),P9=Symbol(""),D9=Symbol(""),yy=Symbol(""),hA=Symbol(""),Zl={[qu]:"Fragment",[Cu]:"Teleport",[oy]:"Suspense",[Yh]:"KeepAlive",[aA]:"BaseTransition",[Ra]:"openBlock",[lA]:"createBlock",[cA]:"createElementBlock",[ay]:"createVNode",[ly]:"createElementVNode",[vd]:"createCommentVNode",[cy]:"createTextVNode",[uA]:"createStaticVNode",[uy]:"resolveComponent",[dy]:"resolveDynamicComponent",[fy]:"resolveDirective",[hy]:"resolveFilter",[py]:"withDirectives",[my]:"renderList",[dA]:"renderSlot",[fA]:"createSlots",[Qp]:"toDisplayString",[Zh]:"mergeProps",[gy]:"normalizeClass",[_y]:"normalizeStyle",[Hu]:"normalizeProps",[bd]:"guardReactiveProps",[vy]:"toHandlers",[Tv]:"camelize",[T9]:"capitalize",[Ov]:"toHandlerKey",[Xh]:"setBlockTracking",[O9]:"pushScopeId",[M9]:"popScopeId",[by]:"withCtx",[P9]:"unref",[D9]:"isRef",[yy]:"withMemo",[hA]:"isMemoSame"};function R9(t){Object.getOwnPropertySymbols(t).forEach(e=>{Zl[e]=t[e]})}const fi={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function I9(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:fi}}function ju(t,e,s,n,i,r,o,a=!1,c=!1,f=!1,h=fi){return t&&(a?(t.helper(Ra),t.helper(Ql(t.inSSR,f))):t.helper(Jl(t.inSSR,f)),o&&t.helper(py)),{type:13,tag:e,props:s,children:n,patchFlag:i,dynamicProps:r,directives:o,isBlock:a,disableTracking:c,isComponent:f,loc:h}}function Ea(t,e=fi){return{type:17,loc:e,elements:t}}function Ei(t,e=fi){return{type:15,loc:e,properties:t}}function As(t,e){return{type:16,loc:fi,key:mt(t)?_t(t,!0):t,value:e}}function _t(t,e=!1,s=fi,n=0){return{type:4,loc:s,content:t,isStatic:e,constType:e?3:n}}function ji(t,e=fi){return{type:8,loc:e,children:t}}function Fs(t,e=[],s=fi){return{type:14,loc:s,callee:t,arguments:e}}function Xl(t,e=void 0,s=!1,n=!1,i=fi){return{type:18,params:t,returns:e,newline:s,isSlot:n,loc:i}}function Mv(t,e,s,n=!0){return{type:19,test:t,consequent:e,alternate:s,newline:n,loc:fi}}function L9(t,e,s=!1,n=!1){return{type:20,index:t,value:e,needPauseTracking:s,inVOnce:n,needArraySpread:!1,loc:fi}}function N9(t){return{type:21,body:t,loc:fi}}function Jl(t,e){return t||e?ay:ly}function Ql(t,e){return t||e?lA:cA}function wy(t,{helper:e,removeHelper:s,inSSR:n}){t.isBlock||(t.isBlock=!0,s(Jl(n,t.isComponent)),e(Ra),e(Ql(n,t.isComponent)))}const m2=new Uint8Array([123,123]),g2=new Uint8Array([125,125]);function _2(t){return t>=97&&t<=122||t>=65&&t<=90}function ni(t){return t===32||t===10||t===9||t===12||t===13}function lo(t){return t===47||t===62||ni(t)}function Jh(t){const e=new Uint8Array(t.length);for(let s=0;s<t.length;s++)e[s]=t.charCodeAt(s);return e}const an={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 V9{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=m2,this.delimiterClose=g2,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=m2,this.delimiterClose=g2}getPos(e){let s=1,n=e+1;for(let i=this.newlines.length-1;i>=0;i--){const r=this.newlines[i];if(e>r){s=i+2,n=e-r;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?lo(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||ni(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===an.TitleEnd||this.currentSequence===an.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===an.Cdata[this.sequenceIndex]?++this.sequenceIndex===an.Cdata.length&&(this.state=28,this.currentSequence=an.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===an.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):_2(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){lo(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(lo(e)){const s=this.buffer.slice(this.sectionStart,this.index);s!=="template"&&this.enterRCDATA(Jh("</"+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){ni(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=_2(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||ni(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):ni(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):ni(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||lo(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||lo(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||lo(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||lo(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||lo(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)):ni(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):ni(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){ni(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=an.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===an.ScriptEnd[3]?this.startSpecial(an.ScriptEnd,4):e===an.StyleEnd[3]?this.startSpecial(an.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===an.TitleEnd[3]?this.startSpecial(an.TitleEnd,4):e===an.TextareaEnd[3]?this.startSpecial(an.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.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===an.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 v2(t,{compatConfig:e}){const s=e&&e[t];return t==="MODE"?s||3:s}function Ca(t,e){const s=v2("MODE",e),n=v2(t,e);return s===3?n===!0:n!==!1}function Wu(t,e,s,...n){return Ca(t,e)}function xy(t){throw t}function pA(t){}function hs(t,e,s,n){const i=`https://vuejs.org/error-reference/#compiler-${t}`,r=new SyntaxError(String(i));return r.code=t,r.loc=e,r}const zn=t=>t.type===4&&t.isStatic;function mA(t){switch(t){case"Teleport":case"teleport":return Cu;case"Suspense":case"suspense":return oy;case"KeepAlive":case"keep-alive":return Yh;case"BaseTransition":case"base-transition":return aA}}const F9=/^\d|[^\$\w\xA0-\uFFFF]/,Sy=t=>!F9.test(t),B9=/[A-Za-z_$\xA0-\uFFFF]/,U9=/[\.\?\w$\xA0-\uFFFF]/,q9=/\s+[.[]\s*|\s*[.[]\s+/g,gA=t=>t.type===4?t.content:t.loc.source,H9=t=>{const e=gA(t).trim().replace(q9,a=>a.trim());let s=0,n=[],i=0,r=0,o=null;for(let a=0;a<e.length;a++){const c=e.charAt(a);switch(s){case 0:if(c==="[")n.push(s),s=1,i++;else if(c==="(")n.push(s),s=2,r++;else if(!(a===0?B9:U9).test(c))return!1;break;case 1:c==="'"||c==='"'||c==="`"?(n.push(s),s=3,o=c):c==="["?i++:c==="]"&&(--i||(s=n.pop()));break;case 2:if(c==="'"||c==='"'||c==="`")n.push(s),s=3,o=c;else if(c==="(")r++;else if(c===")"){if(a===e.length-1)return!1;--r||(s=n.pop())}break;case 3:c===o&&(s=n.pop(),o=null);break}}return!i&&!r},_A=H9,j9=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,W9=t=>j9.test(gA(t)),z9=W9;function Si(t,e,s=!1){for(let n=0;n<t.props.length;n++){const i=t.props[n];if(i.type===7&&(s||i.exp)&&(mt(e)?i.name===e:e.test(i.name)))return i}}function em(t,e,s=!1,n=!1){for(let i=0;i<t.props.length;i++){const r=t.props[i];if(r.type===6){if(s)continue;if(r.name===e&&(r.value||n))return r}else if(r.name==="bind"&&(r.exp||n)&&ma(r.arg,e))return r}}function ma(t,e){return!!(t&&zn(t)&&t.content===e)}function K9(t){return t.props.some(e=>e.type===7&&e.name==="bind"&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function D_(t){return t.type===5||t.type===2}function G9(t){return t.type===7&&t.name==="slot"}function Qh(t){return t.type===1&&t.tagType===3}function ep(t){return t.type===1&&t.tagType===2}const Y9=new Set([Hu,bd]);function vA(t,e=[]){if(t&&!mt(t)&&t.type===14){const s=t.callee;if(!mt(s)&&Y9.has(s))return vA(t.arguments[0],e.concat(t))}return[t,e]}function tp(t,e,s){let n,i=t.type===13?t.props:t.arguments[2],r=[],o;if(i&&!mt(i)&&i.type===14){const a=vA(i);i=a[0],r=a[1],o=r[r.length-1]}if(i==null||mt(i))n=Ei([e]);else if(i.type===14){const a=i.arguments[0];!mt(a)&&a.type===15?b2(e,a)||a.properties.unshift(e):i.callee===vy?n=Fs(s.helper(Zh),[Ei([e]),i]):i.arguments.unshift(Ei([e])),!n&&(n=i)}else i.type===15?(b2(e,i)||i.properties.unshift(e),n=i):(n=Fs(s.helper(Zh),[Ei([e]),i]),o&&o.callee===bd&&(o=r[r.length-2]));t.type===13?o?o.arguments[0]=n:t.props=n:o?o.arguments[0]=n:t.arguments[2]=n}function b2(t,e){let s=!1;if(t.key.type===4){const n=t.key.content;s=e.properties.some(i=>i.key.type===4&&i.key.content===n)}return s}function zu(t,e){return`_${e}_${t.replace(/[^\w]/g,(s,n)=>s==="-"?"_":t.charCodeAt(n).toString())}`}function Z9(t){return t.type===14&&t.callee===yy?t.arguments[1].returns:t}const X9=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,bA={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:ou,isPreTag:ou,isIgnoreNewlineTag:ou,isCustomElement:ou,onError:xy,onWarn:pA,comments:!1,prefixIdentifiers:!1};let Wt=bA,Ku=null,jr="",ln=null,Vt=null,Vn="",Pr=-1,ca=-1,Ey=0,vo=!1,Pv=null;const fs=[],bs=new V9(fs,{onerr:Or,ontext(t,e){Kf(Ys(t,e),t,e)},ontextentity(t,e,s){Kf(t,e,s)},oninterpolation(t,e){if(vo)return Kf(Ys(t,e),t,e);let s=t+bs.delimiterOpen.length,n=e-bs.delimiterClose.length;for(;ni(jr.charCodeAt(s));)s++;for(;ni(jr.charCodeAt(n-1));)n--;let i=Ys(s,n);i.includes("&")&&(i=Wt.decodeEntities(i,!1)),Dv({type:5,content:wh(i,!1,Es(s,n)),loc:Es(t,e)})},onopentagname(t,e){const s=Ys(t,e);ln={type:1,tag:s,ns:Wt.getNamespace(s,fs[0],Wt.ns),tagType:0,props:[],children:[],loc:Es(t-1,e),codegenNode:void 0}},onopentagend(t){w2(t)},onclosetag(t,e){const s=Ys(t,e);if(!Wt.isVoidTag(s)){let n=!1;for(let i=0;i<fs.length;i++)if(fs[i].tag.toLowerCase()===s.toLowerCase()){n=!0,i>0&&Or(24,fs[0].loc.start.offset);for(let o=0;o<=i;o++){const a=fs.shift();yh(a,e,o<i)}break}n||Or(23,yA(t,60))}},onselfclosingtag(t){const e=ln.tag;ln.isSelfClosing=!0,w2(t),fs[0]&&fs[0].tag===e&&yh(fs.shift(),t)},onattribname(t,e){Vt={type:6,name:Ys(t,e),nameLoc:Es(t,e),value:void 0,loc:Es(t)}},ondirname(t,e){const s=Ys(t,e),n=s==="."||s===":"?"bind":s==="@"?"on":s==="#"?"slot":s.slice(2);if(!vo&&n===""&&Or(26,t),vo||n==="")Vt={type:6,name:s,nameLoc:Es(t,e),value:void 0,loc:Es(t)};else if(Vt={type:7,name:n,rawName:s,exp:void 0,arg:void 0,modifiers:s==="."?[_t("prop")]:[],loc:Es(t)},n==="pre"){vo=bs.inVPre=!0,Pv=ln;const i=ln.props;for(let r=0;r<i.length;r++)i[r].type===7&&(i[r]=l7(i[r]))}},ondirarg(t,e){if(t===e)return;const s=Ys(t,e);if(vo)Vt.name+=s,ga(Vt.nameLoc,e);else{const n=s[0]!=="[";Vt.arg=wh(n?s:s.slice(1,-1),n,Es(t,e),n?3:0)}},ondirmodifier(t,e){const s=Ys(t,e);if(vo)Vt.name+="."+s,ga(Vt.nameLoc,e);else if(Vt.name==="slot"){const n=Vt.arg;n&&(n.content+="."+s,ga(n.loc,e))}else{const n=_t(s,!0,Es(t,e));Vt.modifiers.push(n)}},onattribdata(t,e){Vn+=Ys(t,e),Pr<0&&(Pr=t),ca=e},onattribentity(t,e,s){Vn+=t,Pr<0&&(Pr=e),ca=s},onattribnameend(t){const e=Vt.loc.start.offset,s=Ys(e,t);Vt.type===7&&(Vt.rawName=s),ln.props.some(n=>(n.type===7?n.rawName:n.name)===s)&&Or(2,e)},onattribend(t,e){if(ln&&Vt){if(ga(Vt.loc,e),t!==0)if(Vn.includes("&")&&(Vn=Wt.decodeEntities(Vn,!0)),Vt.type===6)Vt.name==="class"&&(Vn=xA(Vn).trim()),t===1&&!Vn&&Or(13,e),Vt.value={type:2,content:Vn,loc:t===1?Es(Pr,ca):Es(Pr-1,ca+1)},bs.inSFCRoot&&ln.tag==="template"&&Vt.name==="lang"&&Vn&&Vn!=="html"&&bs.enterRCDATA(Jh("</template"),0);else{let s=0;Vt.exp=wh(Vn,!1,Es(Pr,ca),0,s),Vt.name==="for"&&(Vt.forParseResult=Q9(Vt.exp));let n=-1;Vt.name==="bind"&&(n=Vt.modifiers.findIndex(i=>i.content==="sync"))>-1&&Wu("COMPILER_V_BIND_SYNC",Wt,Vt.loc,Vt.rawName)&&(Vt.name="model",Vt.modifiers.splice(n,1))}(Vt.type!==7||Vt.name!=="pre")&&ln.props.push(Vt)}Vn="",Pr=ca=-1},oncomment(t,e){Wt.comments&&Dv({type:3,content:Ys(t,e),loc:Es(t-4,e+3)})},onend(){const t=jr.length;for(let e=0;e<fs.length;e++)yh(fs[e],t-1),Or(24,fs[e].loc.start.offset)},oncdata(t,e){fs[0].ns!==0?Kf(Ys(t,e),t,e):Or(1,t-9)},onprocessinginstruction(t){(fs[0]?fs[0].ns:Wt.ns)===0&&Or(21,t-1)}}),y2=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,J9=/^\(|\)$/g;function Q9(t){const e=t.loc,s=t.content,n=s.match(X9);if(!n)return;const[,i,r]=n,o=(p,m,_=!1)=>{const v=e.start.offset+m,b=v+p.length;return wh(p,!1,Es(v,b),0,_?1:0)},a={source:o(r.trim(),s.indexOf(r,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let c=i.trim().replace(J9,"").trim();const f=i.indexOf(c),h=c.match(y2);if(h){c=c.replace(y2,"").trim();const p=h[1].trim();let m;if(p&&(m=s.indexOf(p,f+c.length),a.key=o(p,m,!0)),h[2]){const _=h[2].trim();_&&(a.index=o(_,s.indexOf(_,a.key?m+p.length:f+c.length),!0))}}return c&&(a.value=o(c,f,!0)),a}function Ys(t,e){return jr.slice(t,e)}function w2(t){bs.inSFCRoot&&(ln.innerLoc=Es(t+1,t+1)),Dv(ln);const{tag:e,ns:s}=ln;s===0&&Wt.isPreTag(e)&&Ey++,Wt.isVoidTag(e)?yh(ln,t):(fs.unshift(ln),(s===1||s===2)&&(bs.inXML=!0)),ln=null}function Kf(t,e,s){{const r=fs[0]&&fs[0].tag;r!=="script"&&r!=="style"&&t.includes("&")&&(t=Wt.decodeEntities(t,!1))}const n=fs[0]||Ku,i=n.children[n.children.length-1];i&&i.type===2?(i.content+=t,ga(i.loc,s)):n.children.push({type:2,content:t,loc:Es(e,s)})}function yh(t,e,s=!1){s?ga(t.loc,yA(e,60)):ga(t.loc,e7(e,62)+1),bs.inSFCRoot&&(t.children.length?t.innerLoc.end=Dt({},t.children[t.children.length-1].loc.end):t.innerLoc.end=Dt({},t.innerLoc.start),t.innerLoc.source=Ys(t.innerLoc.start.offset,t.innerLoc.end.offset));const{tag:n,ns:i,children:r}=t;if(vo||(n==="slot"?t.tagType=2:x2(t)?t.tagType=3:s7(t)&&(t.tagType=1)),bs.inRCDATA||(t.children=wA(r)),i===0&&Wt.isIgnoreNewlineTag(n)){const o=r[0];o&&o.type===2&&(o.content=o.content.replace(/^\r?\n/,""))}i===0&&Wt.isPreTag(n)&&Ey--,Pv===t&&(vo=bs.inVPre=!1,Pv=null),bs.inXML&&(fs[0]?fs[0].ns:Wt.ns)===0&&(bs.inXML=!1);{const o=t.props;if(!bs.inSFCRoot&&Ca("COMPILER_NATIVE_TEMPLATE",Wt)&&t.tag==="template"&&!x2(t)){const c=fs[0]||Ku,f=c.children.indexOf(t);c.children.splice(f,1,...t.children)}const a=o.find(c=>c.type===6&&c.name==="inline-template");a&&Wu("COMPILER_INLINE_TEMPLATE",Wt,a.loc)&&t.children.length&&(a.value={type:2,content:Ys(t.children[0].loc.start.offset,t.children[t.children.length-1].loc.end.offset),loc:a.loc})}}function e7(t,e){let s=t;for(;jr.charCodeAt(s)!==e&&s<jr.length-1;)s++;return s}function yA(t,e){let s=t;for(;jr.charCodeAt(s)!==e&&s>=0;)s--;return s}const t7=new Set(["if","else","else-if","for","slot"]);function x2({tag:t,props:e}){if(t==="template"){for(let s=0;s<e.length;s++)if(e[s].type===7&&t7.has(e[s].name))return!0}return!1}function s7({tag:t,props:e}){if(Wt.isCustomElement(t))return!1;if(t==="component"||n7(t.charCodeAt(0))||mA(t)||Wt.isBuiltInComponent&&Wt.isBuiltInComponent(t)||Wt.isNativeTag&&!Wt.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(Wu("COMPILER_IS_ON_ELEMENT",Wt,n.loc))return!0}}else if(n.name==="bind"&&ma(n.arg,"is")&&Wu("COMPILER_IS_ON_ELEMENT",Wt,n.loc))return!0}return!1}function n7(t){return t>64&&t<91}const i7=/\r\n/g;function wA(t,e){const s=Wt.whitespace!=="preserve";let n=!1;for(let i=0;i<t.length;i++){const r=t[i];if(r.type===2)if(Ey)r.content=r.content.replace(i7,` 35`);else if(r7(r.content)){const o=t[i-1]&&t[i-1].type,a=t[i+1]&&t[i+1].type;!o||!a||s&&(o===3&&(a===3||a===1)||o===1&&(a===3||a===1&&o7(r.content)))?(n=!0,t[i]=null):r.content=" "}else s&&(r.content=xA(r.content))}return n?t.filter(Boolean):t}function r7(t){for(let e=0;e<t.length;e++)if(!ni(t.charCodeAt(e)))return!1;return!0}function o7(t){for(let e=0;e<t.length;e++){const s=t.charCodeAt(e);if(s===10||s===13)return!0}return!1}function xA(t){let e="",s=!1;for(let n=0;n<t.length;n++)ni(t.charCodeAt(n))?s||(e+=" ",s=!0):(e+=t[n],s=!1);return e}function Dv(t){(fs[0]||Ku).children.push(t)}function Es(t,e){return{start:bs.getPos(t),end:e==null?e:bs.getPos(e),source:e==null?e:Ys(t,e)}}function a7(t){return Es(t.start.offset,t.end.offset)}function ga(t,e){t.end=bs.getPos(e),t.source=Ys(t.start.offset,e)}function l7(t){const e={type:6,name:t.rawName,nameLoc:Es(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 wh(t,e=!1,s,n=0,i=0){return _t(t,e,s,n)}function Or(t,e,s){Wt.onError(hs(t,Es(e,e)))}function c7(){bs.reset(),ln=null,Vt=null,Vn="",Pr=-1,ca=-1,fs.length=0}function u7(t,e){if(c7(),jr=t,Wt=Dt({},bA),e){let i;for(i in e)e[i]!=null&&(Wt[i]=e[i])}bs.mode=Wt.parseMode==="html"?1:Wt.parseMode==="sfc"?2:0,bs.inXML=Wt.ns===1||Wt.ns===2;const s=e&&e.delimiters;s&&(bs.delimiterOpen=Jh(s[0]),bs.delimiterClose=Jh(s[1]));const n=Ku=I9([],t);return bs.parse(jr),n.loc=Es(0,t.length),n.children=wA(n.children),Ku=null,n}function d7(t,e){xh(t,void 0,e,SA(t,t.children[0]))}function SA(t,e){const{children:s}=t;return s.length===1&&e.type===1&&!ep(e)}function xh(t,e,s,n=!1,i=!1){const{children:r}=t,o=[];for(let h=0;h<r.length;h++){const p=r[h];if(p.type===1&&p.tagType===0){const m=n?0:ii(p,s);if(m>0){if(m>=2){p.codegenNode.patchFlag=-1,o.push(p);continue}}else{const _=p.codegenNode;if(_.type===13){const v=_.patchFlag;if((v===void 0||v===512||v===1)&&CA(p,s)>=2){const b=kA(p);b&&(_.props=s.hoist(b))}_.dynamicProps&&(_.dynamicProps=s.hoist(_.dynamicProps))}}}else if(p.type===12&&(n?0:ii(p,s))>=2){o.push(p);continue}if(p.type===1){const m=p.tagType===1;m&&s.scopes.vSlot++,xh(p,t,s,!1,i),m&&s.scopes.vSlot--}else if(p.type===11)xh(p,t,s,p.children.length===1,!0);else if(p.type===9)for(let m=0;m<p.branches.length;m++)xh(p.branches[m],t,s,p.branches[m].children.length===1,i)}let a=!1;if(o.length===r.length&&t.type===1){if(t.tagType===0&&t.codegenNode&&t.codegenNode.type===13&&We(t.codegenNode.children))t.codegenNode.children=c(Ea(t.codegenNode.children)),a=!0;else if(t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!We(t.codegenNode.children)&&t.codegenNode.children.type===15){const h=f(t.codegenNode,"default");h&&(h.returns=c(Ea(h.returns)),a=!0)}else if(t.tagType===3&&e&&e.type===1&&e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!We(e.codegenNode.children)&&e.codegenNode.children.type===15){const h=Si(t,"slot",!0),p=h&&h.arg&&f(e.codegenNode,h.arg);p&&(p.returns=c(Ea(p.returns)),a=!0)}}if(!a)for(const h of o)h.codegenNode=s.cache(h.codegenNode);function c(h){const p=s.cache(h);return i&&s.hmr&&(p.needArraySpread=!0),p}function f(h,p){if(h.children&&!We(h.children)&&h.children.type===15){const m=h.children.properties.find(_=>_.key===p||_.key.content===p);return m&&m.value}}o.length&&s.transformHoist&&s.transformHoist(r,s,t)}function ii(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 i=t.codegenNode;if(i.type!==13||i.isBlock&&t.tag!=="svg"&&t.tag!=="foreignObject"&&t.tag!=="math")return 0;if(i.patchFlag===void 0){let o=3;const a=CA(t,e);if(a===0)return s.set(t,0),0;a<o&&(o=a);for(let c=0;c<t.children.length;c++){const f=ii(t.children[c],e);if(f===0)return s.set(t,0),0;f<o&&(o=f)}if(o>1)for(let c=0;c<t.props.length;c++){const f=t.props[c];if(f.type===7&&f.name==="bind"&&f.exp){const h=ii(f.exp,e);if(h===0)return s.set(t,0),0;h<o&&(o=h)}}if(i.isBlock){for(let c=0;c<t.props.length;c++)if(t.props[c].type===7)return s.set(t,0),0;e.removeHelper(Ra),e.removeHelper(Ql(e.inSSR,i.isComponent)),i.isBlock=!1,e.helper(Jl(e.inSSR,i.isComponent))}return s.set(t,o),o}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 ii(t.content,e);case 4:return t.constType;case 8:let r=3;for(let o=0;o<t.children.length;o++){const a=t.children[o];if(mt(a)||Zn(a))continue;const c=ii(a,e);if(c===0)return 0;c<r&&(r=c)}return r;case 20:return 2;default:return 0}}const f7=new Set([gy,_y,Hu,bd]);function EA(t,e){if(t.type===14&&!mt(t.callee)&&f7.has(t.callee)){const s=t.arguments[0];if(s.type===4)return ii(s,e);if(s.type===14)return EA(s,e)}return 0}function CA(t,e){let s=3;const n=kA(t);if(n&&n.type===15){const{properties:i}=n;for(let r=0;r<i.length;r++){const{key:o,value:a}=i[r],c=ii(o,e);if(c===0)return c;c<s&&(s=c);let f;if(a.type===4?f=ii(a,e):a.type===14?f=EA(a,e):f=0,f===0)return f;f<s&&(s=f)}}return s}function kA(t){const e=t.codegenNode;if(e.type===13)return e.props}function h7(t,{filename:e="",prefixIdentifiers:s=!1,hoistStatic:n=!1,hmr:i=!1,cacheHandlers:r=!1,nodeTransforms:o=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:f=Qs,isCustomElement:h=Qs,expressionPlugins:p=[],scopeId:m=null,slotted:_=!0,ssr:v=!1,inSSR:b=!1,ssrCssVars:S="",bindingMetadata:C=Pt,inline:O=!1,isTS:A=!1,onError:$=xy,onWarn:T=pA,compatConfig:D}){const B=e.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),N={filename:e,selfName:B&&Fo(ls(B[1])),prefixIdentifiers:s,hoistStatic:n,hmr:i,cacheHandlers:r,nodeTransforms:o,directiveTransforms:a,transformHoist:c,isBuiltInComponent:f,isCustomElement:h,expressionPlugins:p,scopeId:m,slotted:_,ssr:v,inSSR:b,ssrCssVars:S,bindingMetadata:C,inline:O,isTS:A,onError:$,onWarn:T,compatConfig:D,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 L=N.helpers.get(F)||0;return N.helpers.set(F,L+1),F},removeHelper(F){const L=N.helpers.get(F);if(L){const Y=L-1;Y?N.helpers.set(F,Y):N.helpers.delete(F)}},helperString(F){return`_${Zl[N.helper(F)]}`},replaceNode(F){N.parent.children[N.childIndex]=N.currentNode=F},removeNode(F){const L=N.parent.children,Y=F?L.indexOf(F):N.currentNode?N.childIndex:-1;!F||F===N.currentNode?(N.currentNode=null,N.onNodeRemoved()):N.childIndex>Y&&(N.childIndex--,N.onNodeRemoved()),N.parent.children.splice(Y,1)},onNodeRemoved:Qs,addIdentifiers(F){},removeIdentifiers(F){},hoist(F){mt(F)&&(F=_t(F)),N.hoists.push(F);const L=_t(`_hoisted_${N.hoists.length}`,!1,F.loc,2);return L.hoisted=F,L},cache(F,L=!1,Y=!1){const Z=L9(N.cached.length,F,L,Y);return N.cached.push(Z),Z}};return N.filters=new Set,N}function p7(t,e){const s=h7(t,e);tm(t,s),e.hoistStatic&&d7(t,s),e.ssr||m7(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 m7(t,e){const{helper:s}=e,{children:n}=t;if(n.length===1){const i=n[0];if(SA(t,i)&&i.codegenNode){const r=i.codegenNode;r.type===13&&wy(r,e),t.codegenNode=r}else t.codegenNode=i}else if(n.length>1){let i=64;t.codegenNode=ju(e,s(qu),void 0,t.children,i,void 0,void 0,!0,void 0,!1)}}function g7(t,e){let s=0;const n=()=>{s--};for(;s<t.children.length;s++){const i=t.children[s];mt(i)||(e.grandParent=e.parent,e.parent=t,e.childIndex=s,e.onNodeRemoved=n,tm(i,e))}}function tm(t,e){e.currentNode=t;const{nodeTransforms:s}=e,n=[];for(let r=0;r<s.length;r++){const o=s[r](t,e);if(o&&(We(o)?n.push(...o):n.push(o)),e.currentNode)t=e.currentNode;else return}switch(t.type){case 3:e.ssr||e.helper(vd);break;case 5:e.ssr||e.helper(Qp);break;case 9:for(let r=0;r<t.branches.length;r++)tm(t.branches[r],e);break;case 10:case 11:case 1:case 0:g7(t,e);break}e.currentNode=t;let i=n.length;for(;i--;)n[i]()}function AA(t,e){const s=mt(t)?n=>n===t:n=>t.test(n);return(n,i)=>{if(n.type===1){const{props:r}=n;if(n.tagType===3&&r.some(G9))return;const o=[];for(let a=0;a<r.length;a++){const c=r[a];if(c.type===7&&s(c.name)){r.splice(a,1),a--;const f=e(n,c,i);f&&o.push(f)}}return o}}}const sm="/*@__PURE__*/",$A=t=>`${Zl[t]}: _${Zl[t]}`;function _7(t,{mode:e="function",prefixIdentifiers:s=e==="module",sourceMap:n=!1,filename:i="template.vue.html",scopeId:r=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:f="vue/server-renderer",ssr:h=!1,isTS:p=!1,inSSR:m=!1}){const _={mode:e,prefixIdentifiers:s,sourceMap:n,filename:i,scopeId:r,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:f,ssr:h,isTS:p,inSSR:m,source:t.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(b){return`_${Zl[b]}`},push(b,S=-2,C){_.code+=b},indent(){v(++_.indentLevel)},deindent(b=!1){b?--_.indentLevel:v(--_.indentLevel)},newline(){v(_.indentLevel)}};function v(b){_.push(` 36`+" ".repeat(b),0)}return _}function v7(t,e={}){const s=_7(t,e);e.onContextCreated&&e.onContextCreated(s);const{mode:n,push:i,prefixIdentifiers:r,indent:o,deindent:a,newline:c,scopeId:f,ssr:h}=s,p=Array.from(t.helpers),m=p.length>0,_=!r&&n!=="module";b7(t,s);const b=h?"ssrRender":"render",C=(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${b}(${C}) {`),o(),_&&(i("with (_ctx) {"),o(),m&&(i(`const { ${p.map($A).join(", ")} } = _Vue 37`,-1),c())),t.components.length&&(R_(t.components,"component",s),(t.directives.length||t.temps>0)&&c()),t.directives.length&&(R_(t.directives,"directive",s),t.temps>0&&c()),t.filters&&t.filters.length&&(c(),R_(t.filters,"filter",s),c()),t.temps>0){i("let ");for(let O=0;O<t.temps;O++)i(`${O>0?", ":""}_temp${O}`)}return(t.components.length||t.directives.length||t.temps)&&(i(` 38`,0),c()),h||i("return "),t.codegenNode?fn(t.codegenNode,s):i("null"),_&&(a(),i("}")),a(),i("}"),{ast:t,code:s.code,preamble:"",map:s.map?s.map.toJSON():void 0}}function b7(t,e){const{ssr:s,prefixIdentifiers:n,push:i,newline:r,runtimeModuleName:o,runtimeGlobalName:a,ssrRuntimeModuleName:c}=e,f=a,h=Array.from(t.helpers);if(h.length>0&&(i(`const _Vue = ${f} 39`,-1),t.hoists.length)){const p=[ay,ly,vd,cy,uA].filter(m=>h.includes(m)).map($A).join(", ");i(`const { ${p} } = _Vue 40`,-1)}y7(t.hoists,e),r(),i("return ")}function R_(t,e,{helper:s,push:n,newline:i,isTS:r}){const o=s(e==="filter"?hy:e==="component"?uy:fy);for(let a=0;a<t.length;a++){let c=t[a];const f=c.endsWith("__self");f&&(c=c.slice(0,-6)),n(`const ${zu(c,e)} = ${o}(${JSON.stringify(c)}${f?", true":""})${r?"!":""}`),a<t.length-1&&i()}}function y7(t,e){if(!t.length)return;e.pure=!0;const{push:s,newline:n}=e;n();for(let i=0;i<t.length;i++){const r=t[i];r&&(s(`const _hoisted_${i+1} = `),fn(r,e),n())}e.pure=!1}function Cy(t,e){const s=t.length>3||!1;e.push("["),s&&e.indent(),yd(t,e,s),s&&e.deindent(),e.push("]")}function yd(t,e,s=!1,n=!0){const{push:i,newline:r}=e;for(let o=0;o<t.length;o++){const a=t[o];mt(a)?i(a,-3):We(a)?Cy(a,e):fn(a,e),o<t.length-1&&(s?(n&&i(","),r()):n&&i(", "))}}function fn(t,e){if(mt(t)){e.push(t,-3);return}if(Zn(t)){e.push(e.helper(t));return}switch(t.type){case 1:case 9:case 11:fn(t.codegenNode,e);break;case 2:w7(t,e);break;case 4:TA(t,e);break;case 5:x7(t,e);break;case 12:fn(t.codegenNode,e);break;case 8:OA(t,e);break;case 3:E7(t,e);break;case 13:C7(t,e);break;case 14:A7(t,e);break;case 15:$7(t,e);break;case 17:T7(t,e);break;case 18:O7(t,e);break;case 19:M7(t,e);break;case 20:P7(t,e);break;case 21:yd(t.body,e,!0,!1);break}}function w7(t,e){e.push(JSON.stringify(t.content),-3,t)}function TA(t,e){const{content:s,isStatic:n}=t;e.push(n?JSON.stringify(s):s,-3,t)}function x7(t,e){const{push:s,helper:n,pure:i}=e;i&&s(sm),s(`${n(Qp)}(`),fn(t.content,e),s(")")}function OA(t,e){for(let s=0;s<t.children.length;s++){const n=t.children[s];mt(n)?e.push(n,-3):fn(n,e)}}function S7(t,e){const{push:s}=e;if(t.type===8)s("["),OA(t,e),s("]");else if(t.isStatic){const n=Sy(t.content)?t.content:JSON.stringify(t.content);s(n,-2,t)}else s(`[${t.content}]`,-3,t)}function E7(t,e){const{push:s,helper:n,pure:i}=e;i&&s(sm),s(`${n(vd)}(${JSON.stringify(t.content)})`,-3,t)}function C7(t,e){const{push:s,helper:n,pure:i}=e,{tag:r,props:o,children:a,patchFlag:c,dynamicProps:f,directives:h,isBlock:p,disableTracking:m,isComponent:_}=t;let v;c&&(v=String(c)),h&&s(n(py)+"("),p&&s(`(${n(Ra)}(${m?"true":""}), `),i&&s(sm);const b=p?Ql(e.inSSR,_):Jl(e.inSSR,_);s(n(b)+"(",-2,t),yd(k7([r,o,a,v,f]),e),s(")"),p&&s(")"),h&&(s(", "),fn(h,e),s(")"))}function k7(t){let e=t.length;for(;e--&&t[e]==null;);return t.slice(0,e+1).map(s=>s||"null")}function A7(t,e){const{push:s,helper:n,pure:i}=e,r=mt(t.callee)?t.callee:n(t.callee);i&&s(sm),s(r+"(",-2,t),yd(t.arguments,e),s(")")}function $7(t,e){const{push:s,indent:n,deindent:i,newline:r}=e,{properties:o}=t;if(!o.length){s("{}",-2,t);return}const a=o.length>1||!1;s(a?"{":"{ "),a&&n();for(let c=0;c<o.length;c++){const{key:f,value:h}=o[c];S7(f,e),s(": "),fn(h,e),c<o.length-1&&(s(","),r())}a&&i(),s(a?"}":" }")}function T7(t,e){Cy(t.elements,e)}function O7(t,e){const{push:s,indent:n,deindent:i}=e,{params:r,returns:o,body:a,newline:c,isSlot:f}=t;f&&s(`_${Zl[by]}(`),s("(",-2,t),We(r)?yd(r,e):r&&fn(r,e),s(") => "),(c||a)&&(s("{"),n()),o?(c&&s("return "),We(o)?Cy(o,e):fn(o,e)):a&&fn(a,e),(c||a)&&(i(),s("}")),f&&(t.isNonScopedSlot&&s(", undefined, true"),s(")"))}function M7(t,e){const{test:s,consequent:n,alternate:i,newline:r}=t,{push:o,indent:a,deindent:c,newline:f}=e;if(s.type===4){const p=!Sy(s.content);p&&o("("),TA(s,e),p&&o(")")}else o("("),fn(s,e),o(")");r&&a(),e.indentLevel++,r||o(" "),o("? "),fn(n,e),e.indentLevel--,r&&f(),r||o(" "),o(": ");const h=i.type===19;h||e.indentLevel++,fn(i,e),h||e.indentLevel--,r&&c(!0)}function P7(t,e){const{push:s,helper:n,indent:i,deindent:r,newline:o}=e,{needPauseTracking:a,needArraySpread:c}=t;c&&s("[...("),s(`_cache[${t.index}] || (`),a&&(i(),s(`${n(Xh)}(-1`),t.inVOnce&&s(", true"),s("),"),o(),s("(")),s(`_cache[${t.index}] = `),fn(t.value,e),a&&(s(`).cacheIndex = ${t.index},`),o(),s(`${n(Xh)}(1),`),o(),s(`_cache[${t.index}]`),r()),s(")"),c&&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 D7=AA(/^(if|else|else-if)$/,(t,e,s)=>R7(t,e,s,(n,i,r)=>{const o=s.parent.children;let a=o.indexOf(n),c=0;for(;a-->=0;){const f=o[a];f&&f.type===9&&(c+=f.branches.length)}return()=>{if(r)n.codegenNode=E2(i,c,s);else{const f=I7(n.codegenNode);f.alternate=E2(i,c+n.branches.length-1,s)}}}));function R7(t,e,s,n){if(e.name!=="else"&&(!e.exp||!e.exp.content.trim())){const i=e.exp?e.exp.loc:t.loc;s.onError(hs(28,e.loc)),e.exp=_t("true",!1,i)}if(e.name==="if"){const i=S2(t,e),r={type:9,loc:a7(t.loc),branches:[i]};if(s.replaceNode(r),n)return n(r,i,!0)}else{const i=s.parent.children;let r=i.indexOf(t);for(;r-->=-1;){const o=i[r];if(o&&o.type===3){s.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){s.removeNode(o);continue}if(o&&o.type===9){e.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&s.onError(hs(30,t.loc)),s.removeNode();const a=S2(t,e);o.branches.push(a);const c=n&&n(o,a,!1);tm(a,s),c&&c(),s.currentNode=null}else s.onError(hs(30,t.loc));break}}}function S2(t,e){const s=t.tagType===3;return{type:10,loc:t.loc,condition:e.name==="else"?void 0:e.exp,children:s&&!Si(t,"for")?t.children:[t],userKey:em(t,"key"),isTemplateIf:s}}function E2(t,e,s){return t.condition?Mv(t.condition,C2(t,e,s),Fs(s.helper(vd),['""',"true"])):C2(t,e,s)}function C2(t,e,s){const{helper:n}=s,i=As("key",_t(`${e}`,!1,fi,2)),{children:r}=t,o=r[0];if(r.length!==1||o.type!==1)if(r.length===1&&o.type===11){const c=o.codegenNode;return tp(c,i,s),c}else return ju(s,n(qu),Ei([i]),r,64,void 0,void 0,!0,!1,!1,t.loc);else{const c=o.codegenNode,f=Z9(c);return f.type===13&&wy(f,s),tp(f,i,s),c}}function I7(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 L7=(t,e,s)=>{const{modifiers:n,loc:i}=t,r=t.arg;let{exp:o}=t;if(o&&o.type===4&&!o.content.trim()&&(o=void 0),!o){if(r.type!==4||!r.isStatic)return s.onError(hs(52,r.loc)),{props:[As(r,_t("",!0,i))]};MA(t),o=t.exp}return r.type!==4?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=`${r.content} || ""`),n.some(a=>a.content==="camel")&&(r.type===4?r.isStatic?r.content=ls(r.content):r.content=`${s.helperString(Tv)}(${r.content})`:(r.children.unshift(`${s.helperString(Tv)}(`),r.children.push(")"))),s.inSSR||(n.some(a=>a.content==="prop")&&k2(r,"."),n.some(a=>a.content==="attr")&&k2(r,"^")),{props:[As(r,o)]}},MA=(t,e)=>{const s=t.arg,n=ls(s.content);t.exp=_t(n,!1,s.loc)},k2=(t,e)=>{t.type===4?t.isStatic?t.content=e+t.content:t.content=`\`${e}\${${t.content}}\``:(t.children.unshift(`'${e}' + (`),t.children.push(")"))},N7=AA("for",(t,e,s)=>{const{helper:n,removeHelper:i}=s;return V7(t,e,s,r=>{const o=Fs(n(my),[r.source]),a=Qh(t),c=Si(t,"memo"),f=em(t,"key",!1,!0);f&&f.type===7&&!f.exp&&MA(f);let p=f&&(f.type===6?f.value?_t(f.value.content,!0):void 0:f.exp);const m=f&&p?As("key",p):null,_=r.source.type===4&&r.source.constType>0,v=_?64:f?128:256;return r.codegenNode=ju(s,n(qu),void 0,o,v,void 0,void 0,!0,!_,!1,t.loc),()=>{let b;const{children:S}=r,C=S.length!==1||S[0].type!==1,O=ep(t)?t:a&&t.children.length===1&&ep(t.children[0])?t.children[0]:null;if(O?(b=O.codegenNode,a&&m&&tp(b,m,s)):C?b=ju(s,n(qu),m?Ei([m]):void 0,t.children,64,void 0,void 0,!0,void 0,!1):(b=S[0].codegenNode,a&&m&&tp(b,m,s),b.isBlock!==!_&&(b.isBlock?(i(Ra),i(Ql(s.inSSR,b.isComponent))):i(Jl(s.inSSR,b.isComponent))),b.isBlock=!_,b.isBlock?(n(Ra),n(Ql(s.inSSR,b.isComponent))):n(Jl(s.inSSR,b.isComponent))),c){const A=Xl(Rv(r.parseResult,[_t("_cached")]));A.body=N9([ji(["const _memo = (",c.exp,")"]),ji(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${s.helperString(hA)}(_cached, _memo)) return _cached`]),ji(["const _item = ",b]),_t("_item.memo = _memo"),_t("return _item")]),o.arguments.push(A,_t("_cache"),_t(String(s.cached.length))),s.cached.push(null)}else o.arguments.push(Xl(Rv(r.parseResult),b,!0))}})});function V7(t,e,s,n){if(!e.exp){s.onError(hs(31,e.loc));return}const i=e.forParseResult;if(!i){s.onError(hs(32,e.loc));return}PA(i);const{addIdentifiers:r,removeIdentifiers:o,scopes:a}=s,{source:c,value:f,key:h,index:p}=i,m={type:11,loc:e.loc,source:c,valueAlias:f,keyAlias:h,objectIndexAlias:p,parseResult:i,children:Qh(t)?t.children:[t]};s.replaceNode(m),a.vFor++;const _=n&&n(m);return()=>{a.vFor--,_&&_()}}function PA(t,e){t.finalized||(t.finalized=!0)}function Rv({value:t,key:e,index:s},n=[]){return F7([t,e,s,...n])}function F7(t){let e=t.length;for(;e--&&!t[e];);return t.slice(0,e+1).map((s,n)=>s||_t("_".repeat(n+1),!1))}const A2=_t("undefined",!1),B7=(t,e)=>{if(t.type===1&&(t.tagType===1||t.tagType===3)){const s=Si(t,"slot");if(s)return s.exp,e.scopes.vSlot++,()=>{e.scopes.vSlot--}}},U7=(t,e,s,n)=>Xl(t,s,!1,!0,s.length?s[0].loc:n);function q7(t,e,s=U7){e.helper(by);const{children:n,loc:i}=t,r=[],o=[];let a=e.scopes.vSlot>0||e.scopes.vFor>0;const c=Si(t,"slot",!0);if(c){const{arg:S,exp:C}=c;S&&!zn(S)&&(a=!0),r.push(As(S||_t("default",!0),s(C,void 0,n,i)))}let f=!1,h=!1;const p=[],m=new Set;let _=0;for(let S=0;S<n.length;S++){const C=n[S];let O;if(!Qh(C)||!(O=Si(C,"slot",!0))){C.type!==3&&p.push(C);continue}if(c){e.onError(hs(37,O.loc));break}f=!0;const{children:A,loc:$}=C,{arg:T=_t("default",!0),exp:D,loc:B}=O;let N;zn(T)?N=T?T.content:"default":a=!0;const F=Si(C,"for"),L=s(D,F,A,$);let Y,Z;if(Y=Si(C,"if"))a=!0,o.push(Mv(Y.exp,Gf(T,L,_++),A2));else if(Z=Si(C,/^else(-if)?$/,!0)){let le=S,Ce;for(;le--&&(Ce=n[le],Ce.type===3););if(Ce&&Qh(Ce)&&Si(Ce,/^(else-)?if$/)){let Ee=o[o.length-1];for(;Ee.alternate.type===19;)Ee=Ee.alternate;Ee.alternate=Z.exp?Mv(Z.exp,Gf(T,L,_++),A2):Gf(T,L,_++)}else e.onError(hs(30,Z.loc))}else if(F){a=!0;const le=F.forParseResult;le?(PA(le),o.push(Fs(e.helper(my),[le.source,Xl(Rv(le),Gf(T,L),!0)]))):e.onError(hs(32,F.loc))}else{if(N){if(m.has(N)){e.onError(hs(38,B));continue}m.add(N),N==="default"&&(h=!0)}r.push(As(T,L))}}if(!c){const S=(C,O)=>{const A=s(C,void 0,O,i);return e.compatConfig&&(A.isNonScopedSlot=!0),As("default",A)};f?p.length&&p.some(C=>DA(C))&&(h?e.onError(hs(39,p[0].loc)):r.push(S(void 0,p))):r.push(S(void 0,n))}const v=a?2:Sh(t.children)?3:1;let b=Ei(r.concat(As("_",_t(v+"",!1))),i);return o.length&&(b=Fs(e.helper(fA),[b,Ea(o)])),{slots:b,hasDynamicSlots:a}}function Gf(t,e,s){const n=[As("name",t),As("fn",e)];return s!=null&&n.push(As("key",_t(String(s),!0))),Ei(n)}function Sh(t){for(let e=0;e<t.length;e++){const s=t[e];switch(s.type){case 1:if(s.tagType===2||Sh(s.children))return!0;break;case 9:if(Sh(s.branches))return!0;break;case 10:case 11:if(Sh(s.children))return!0;break}}return!1}function DA(t){return t.type!==2&&t.type!==12?!0:t.type===2?!!t.content.trim():DA(t.content)}const RA=new WeakMap,H7=(t,e)=>function(){if(t=e.currentNode,!(t.type===1&&(t.tagType===0||t.tagType===1)))return;const{tag:n,props:i}=t,r=t.tagType===1;let o=r?j7(t,e):`"${n}"`;const a=Qt(o)&&o.callee===dy;let c,f,h=0,p,m,_,v=a||o===Cu||o===oy||!r&&(n==="svg"||n==="foreignObject"||n==="math");if(i.length>0){const b=IA(t,e,void 0,r,a);c=b.props,h=b.patchFlag,m=b.dynamicPropNames;const S=b.directives;_=S&&S.length?Ea(S.map(C=>z7(C,e))):void 0,b.shouldUseBlock&&(v=!0)}if(t.children.length>0)if(o===Yh&&(v=!0,h|=1024),r&&o!==Cu&&o!==Yh){const{slots:S,hasDynamicSlots:C}=q7(t,e);f=S,C&&(h|=1024)}else if(t.children.length===1&&o!==Cu){const S=t.children[0],C=S.type,O=C===5||C===8;O&&ii(S,e)===0&&(h|=1),O||C===2?f=S:f=t.children}else f=t.children;m&&m.length&&(p=K7(m)),t.codegenNode=ju(e,o,c,f,h===0?void 0:h,p,_,!!v,!1,r,t.loc)};function j7(t,e,s=!1){let{tag:n}=t;const i=Iv(n),r=em(t,"is",!1,!0);if(r)if(i||Ca("COMPILER_IS_ON_ELEMENT",e)){let a;if(r.type===6?a=r.value&&_t(r.value.content,!0):(a=r.exp,a||(a=_t("is",!1,r.arg.loc))),a)return Fs(e.helper(dy),[a])}else r.type===6&&r.value.content.startsWith("vue:")&&(n=r.value.content.slice(4));const o=mA(n)||e.isBuiltInComponent(n);return o?(s||e.helper(o),o):(e.helper(uy),e.components.add(n),zu(n,"component"))}function IA(t,e,s=t.props,n,i,r=!1){const{tag:o,loc:a,children:c}=t;let f=[];const h=[],p=[],m=c.length>0;let _=!1,v=0,b=!1,S=!1,C=!1,O=!1,A=!1,$=!1;const T=[],D=L=>{f.length&&(h.push(Ei($2(f),a)),f=[]),L&&h.push(L)},B=()=>{e.scopes.vFor>0&&f.push(As(_t("ref_for",!0),_t("true")))},N=({key:L,value:Y})=>{if(zn(L)){const Z=L.content,le=Fa(Z);if(le&&(!n||i)&&Z.toLowerCase()!=="onclick"&&Z!=="onUpdate:modelValue"&&!Eo(Z)&&(O=!0),le&&Eo(Z)&&($=!0),le&&Y.type===14&&(Y=Y.arguments[0]),Y.type===20||(Y.type===4||Y.type===8)&&ii(Y,e)>0)return;Z==="ref"?b=!0:Z==="class"?S=!0:Z==="style"?C=!0:Z!=="key"&&!T.includes(Z)&&T.push(Z),n&&(Z==="class"||Z==="style")&&!T.includes(Z)&&T.push(Z)}else A=!0};for(let L=0;L<s.length;L++){const Y=s[L];if(Y.type===6){const{loc:Z,name:le,nameLoc:Ce,value:Ee}=Y;let he=!0;if(le==="ref"&&(b=!0,B()),le==="is"&&(Iv(o)||Ee&&Ee.content.startsWith("vue:")||Ca("COMPILER_IS_ON_ELEMENT",e)))continue;f.push(As(_t(le,!0,Ce),_t(Ee?Ee.content:"",he,Ee?Ee.loc:Z)))}else{const{name:Z,arg:le,exp:Ce,loc:Ee,modifiers:he}=Y,ye=Z==="bind",xe=Z==="on";if(Z==="slot"){n||e.onError(hs(40,Ee));continue}if(Z==="once"||Z==="memo"||Z==="is"||ye&&ma(le,"is")&&(Iv(o)||Ca("COMPILER_IS_ON_ELEMENT",e))||xe&&r)continue;if((ye&&ma(le,"key")||xe&&m&&ma(le,"vue:before-update"))&&(_=!0),ye&&ma(le,"ref")&&B(),!le&&(ye||xe)){if(A=!0,Ce)if(ye){if(B(),D(),Ca("COMPILER_V_BIND_OBJECT_ORDER",e)){h.unshift(Ce);continue}h.push(Ce)}else D({type:14,loc:Ee,callee:e.helper(vy),arguments:n?[Ce]:[Ce,"true"]});else e.onError(hs(ye?34:35,Ee));continue}ye&&he.some(ze=>ze.content==="prop")&&(v|=32);const _e=e.directiveTransforms[Z];if(_e){const{props:ze,needRuntime:je}=_e(Y,t,e);!r&&ze.forEach(N),xe&&le&&!zn(le)?D(Ei(ze,a)):f.push(...ze),je&&(p.push(Y),Zn(je)&&RA.set(Y,je))}else rN(Z)||(p.push(Y),m&&(_=!0))}}let F;if(h.length?(D(),h.length>1?F=Fs(e.helper(Zh),h,a):F=h[0]):f.length&&(F=Ei($2(f),a)),A?v|=16:(S&&!n&&(v|=2),C&&!n&&(v|=4),T.length&&(v|=8),O&&(v|=32)),!_&&(v===0||v===32)&&(b||$||p.length>0)&&(v|=512),!e.inSSR&&F)switch(F.type){case 15:let L=-1,Y=-1,Z=!1;for(let Ee=0;Ee<F.properties.length;Ee++){const he=F.properties[Ee].key;zn(he)?he.content==="class"?L=Ee:he.content==="style"&&(Y=Ee):he.isHandlerKey||(Z=!0)}const le=F.properties[L],Ce=F.properties[Y];Z?F=Fs(e.helper(Hu),[F]):(le&&!zn(le.value)&&(le.value=Fs(e.helper(gy),[le.value])),Ce&&(C||Ce.value.type===4&&Ce.value.content.trim()[0]==="["||Ce.value.type===17)&&(Ce.value=Fs(e.helper(_y),[Ce.value])));break;case 14:break;default:F=Fs(e.helper(Hu),[Fs(e.helper(bd),[F])]);break}return{props:F,directives:p,patchFlag:v,dynamicPropNames:T,shouldUseBlock:_}}function $2(t){const e=new Map,s=[];for(let n=0;n<t.length;n++){const i=t[n];if(i.key.type===8||!i.key.isStatic){s.push(i);continue}const r=i.key.content,o=e.get(r);o?(r==="style"||r==="class"||Fa(r))&&W7(o,i):(e.set(r,i),s.push(i))}return s}function W7(t,e){t.value.type===17?t.value.elements.push(e.value):t.value=Ea([t.value,e.value],t.loc)}function z7(t,e){const s=[],n=RA.get(t);n?s.push(e.helperString(n)):(e.helper(fy),e.directives.add(t.name),s.push(zu(t.name,"directive")));const{loc:i}=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 r=_t("true",!1,i);s.push(Ei(t.modifiers.map(o=>As(o,r)),i))}return Ea(s,t.loc)}function K7(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 Iv(t){return t==="component"||t==="Component"}const G7=(t,e)=>{if(ep(t)){const{children:s,loc:n}=t,{slotName:i,slotProps:r}=Y7(t,e),o=[e.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;r&&(o[2]=r,a=3),s.length&&(o[3]=Xl([],s,!1,!1,n),a=4),e.scopeId&&!e.slotted&&(a=5),o.splice(a),t.codegenNode=Fs(e.helper(dA),o,n)}};function Y7(t,e){let s='"default"',n;const i=[];for(let r=0;r<t.props.length;r++){const o=t.props[r];if(o.type===6)o.value&&(o.name==="name"?s=JSON.stringify(o.value.content):(o.name=ls(o.name),i.push(o)));else if(o.name==="bind"&&ma(o.arg,"name")){if(o.exp)s=o.exp;else if(o.arg&&o.arg.type===4){const a=ls(o.arg.content);s=o.exp=_t(a,!1,o.arg.loc)}}else o.name==="bind"&&o.arg&&zn(o.arg)&&(o.arg.content=ls(o.arg.content)),i.push(o)}if(i.length>0){const{props:r,directives:o}=IA(t,e,i,!1,!1);n=r,o.length&&e.onError(hs(36,o[0].loc))}return{slotName:s,slotProps:n}}const LA=(t,e,s,n)=>{const{loc:i,modifiers:r,arg:o}=t;!t.exp&&!r.length&&s.onError(hs(35,i));let a;if(o.type===4)if(o.isStatic){let p=o.content;p.startsWith("vue:")&&(p=`vnode-${p.slice(4)}`);const m=e.tagType!==0||p.startsWith("vnode")||!/[A-Z]/.test(p)?ya(ls(p)):`on:${p}`;a=_t(m,!0,o.loc)}else a=ji([`${s.helperString(Ov)}(`,o,")"]);else a=o,a.children.unshift(`${s.helperString(Ov)}(`),a.children.push(")");let c=t.exp;c&&!c.content.trim()&&(c=void 0);let f=s.cacheHandlers&&!c&&!s.inVOnce;if(c){const p=_A(c),m=!(p||z9(c)),_=c.content.includes(";");(m||f&&p)&&(c=ji([`${m?"$event":"(...args)"} => ${_?"{":"("}`,c,_?"}":")"]))}let h={props:[As(a,c||_t("() => {}",!1,i))]};return n&&(h=n(h)),f&&(h.props[0].value=s.cache(h.props[0].value)),h.props.forEach(p=>p.key.isHandlerKey=!0),h},Z7=(t,e)=>{if(t.type===0||t.type===1||t.type===11||t.type===10)return()=>{const s=t.children;let n,i=!1;for(let r=0;r<s.length;r++){const o=s[r];if(D_(o)){i=!0;for(let a=r+1;a<s.length;a++){const c=s[a];if(D_(c))n||(n=s[r]=ji([o],o.loc)),n.children.push(" + ",c),s.splice(a,1),a--;else{n=void 0;break}}}}if(!(!i||s.length===1&&(t.type===0||t.type===1&&t.tagType===0&&!t.props.find(r=>r.type===7&&!e.directiveTransforms[r.name])&&t.tag!=="template")))for(let r=0;r<s.length;r++){const o=s[r];if(D_(o)||o.type===8){const a=[];(o.type!==2||o.content!==" ")&&a.push(o),!e.ssr&&ii(o,e)===0&&a.push("1"),s[r]={type:12,content:o,loc:o.loc,codegenNode:Fs(e.helper(cy),a)}}}}},T2=new WeakSet,X7=(t,e)=>{if(t.type===1&&Si(t,"once",!0))return T2.has(t)||e.inVOnce||e.inSSR?void 0:(T2.add(t),e.inVOnce=!0,e.helper(Xh),()=>{e.inVOnce=!1;const s=e.currentNode;s.codegenNode&&(s.codegenNode=e.cache(s.codegenNode,!0,!0))})},NA=(t,e,s)=>{const{exp:n,arg:i}=t;if(!n)return s.onError(hs(41,t.loc)),Yf();const r=n.loc.source.trim(),o=n.type===4?n.content:r,a=s.bindingMetadata[r];if(a==="props"||a==="props-aliased")return s.onError(hs(44,n.loc)),Yf();if(!o.trim()||!_A(n))return s.onError(hs(42,n.loc)),Yf();const c=i||_t("modelValue",!0),f=i?zn(i)?`onUpdate:${ls(i.content)}`:ji(['"onUpdate:" + ',i]):"onUpdate:modelValue";let h;const p=s.isTS?"($event: any)":"$event";h=ji([`${p} => ((`,n,") = $event)"]);const m=[As(c,t.exp),As(f,h)];if(t.modifiers.length&&e.tagType===1){const _=t.modifiers.map(b=>b.content).map(b=>(Sy(b)?b:JSON.stringify(b))+": true").join(", "),v=i?zn(i)?`${i.content}Modifiers`:ji([i,' + "Modifiers"']):"modelModifiers";m.push(As(v,_t(`{ ${_} }`,!1,t.loc,2)))}return Yf(m)};function Yf(t=[]){return{props:t}}const J7=/[\w).+\-_$\]]/,Q7=(t,e)=>{Ca("COMPILER_FILTERS",e)&&(t.type===5?sp(t.content,e):t.type===1&&t.props.forEach(s=>{s.type===7&&s.name!=="for"&&s.exp&&sp(s.exp,e)}))};function sp(t,e){if(t.type===4)O2(t,e);else for(let s=0;s<t.children.length;s++){const n=t.children[s];typeof n=="object"&&(n.type===4?O2(n,e):n.type===8?sp(t,e):n.type===5&&sp(n.content,e))}}function O2(t,e){const s=t.content;let n=!1,i=!1,r=!1,o=!1,a=0,c=0,f=0,h=0,p,m,_,v,b=[];for(_=0;_<s.length;_++)if(m=p,p=s.charCodeAt(_),n)p===39&&m!==92&&(n=!1);else if(i)p===34&&m!==92&&(i=!1);else if(r)p===96&&m!==92&&(r=!1);else if(o)p===47&&m!==92&&(o=!1);else if(p===124&&s.charCodeAt(_+1)!==124&&s.charCodeAt(_-1)!==124&&!a&&!c&&!f)v===void 0?(h=_+1,v=s.slice(0,_).trim()):S();else{switch(p){case 34:i=!0;break;case 39:n=!0;break;case 96:r=!0;break;case 40:f++;break;case 41:f--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(p===47){let C=_-1,O;for(;C>=0&&(O=s.charAt(C),O===" ");C--);(!O||!J7.test(O))&&(o=!0)}}v===void 0?v=s.slice(0,_).trim():h!==0&&S();function S(){b.push(s.slice(h,_).trim()),h=_+1}if(b.length){for(_=0;_<b.length;_++)v=eF(v,b[_],e);t.content=v,t.ast=void 0}}function eF(t,e,s){s.helper(hy);const n=e.indexOf("(");if(n<0)return s.filters.add(e),`${zu(e,"filter")}(${t})`;{const i=e.slice(0,n),r=e.slice(n+1);return s.filters.add(i),`${zu(i,"filter")}(${t}${r!==")"?","+r:r}`}}const M2=new WeakSet,tF=(t,e)=>{if(t.type===1){const s=Si(t,"memo");return!s||M2.has(t)?void 0:(M2.add(t),()=>{const n=t.codegenNode||e.currentNode.codegenNode;n&&n.type===13&&(t.tagType!==1&&wy(n,e),t.codegenNode=Fs(e.helper(yy),[s.exp,Xl(void 0,n),"_cache",String(e.cached.length)]),e.cached.push(null))})}};function sF(t){return[[X7,D7,tF,N7,Q7,G7,H7,B7,Z7],{on:LA,bind:L7,model:NA}]}function nF(t,e={}){const s=e.onError||xy,n=e.mode==="module";e.prefixIdentifiers===!0?s(hs(47)):n&&s(hs(48));const i=!1;e.cacheHandlers&&s(hs(49)),e.scopeId&&!n&&s(hs(50));const r=Dt({},e,{prefixIdentifiers:i}),o=mt(t)?u7(t,r):t,[a,c]=sF();return p7(o,Dt({},r,{nodeTransforms:[...a,...e.nodeTransforms||[]],directiveTransforms:Dt({},c,e.directiveTransforms||{})})),v7(o,r)}const iF=()=>({props:[]});/** 41* @vue/compiler-dom v3.5.13 42* (c) 2018-present Yuxi (Evan) You and Vue contributors 43* @license MIT
44**/const VA=Symbol(""),FA=Symbol(""),BA=Symbol(""),UA=Symbol(""),Lv=Symbol(""),qA=Symbol(""),HA=Symbol(""),jA=Symbol(""),WA=Symbol(""),zA=Symbol("");R9({[VA]:"vModelRadio",[FA]:"vModelCheckbox",[BA]:"vModelText",[UA]:"vModelSelect",[Lv]:"vModelDynamic",[qA]:"withModifiers",[HA]:"withKeys",[jA]:"vShow",[WA]:"Transition",[zA]:"TransitionGroup"});let vl;function rF(t,e=!1){return vl||(vl=document.createElement("div")),e?(vl.innerHTML=`<div foo="${t.replace(/"/g,""")}">`,vl.children[0].getAttribute("foo")):(vl.innerHTML=t,vl.textContent)}const oF={parseMode:"html",isVoidTag:wN,isNativeTag:t=>vN(t)||bN(t)||yN(t),isPreTag:t=>t==="pre",isIgnoreNewlineTag:t=>t==="pre"||t==="textarea",decodeEntities:rF,isBuiltInComponent:t=>{if(t==="Transition"||t==="transition")return WA;if(t==="TransitionGroup"||t==="transition-group")return zA},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(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.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}},aF=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:_t("style",!0,e.loc),exp:lF(e.value.content,e.loc),modifiers:[],loc:e.loc})})},lF=(t,e)=>{const s=PE(t);return _t(JSON.stringify(s),!1,e,3)};function Ao(t,e){return hs(t,e)}const cF=(t,e,s)=>{const{exp:n,loc:i}=t;return n||s.onError(Ao(53,i)),e.children.length&&(s.onError(Ao(54,i)),e.children.length=0),{props:[As(_t("innerHTML",!0,i),n||_t("",!0))]}},uF=(t,e,s)=>{const{exp:n,loc:i}=t;return n||s.onError(Ao(55,i)),e.children.length&&(s.onError(Ao(56,i)),e.children.length=0),{props:[As(_t("textContent",!0),n?ii(n,s)>0?n:Fs(s.helperString(Qp),[n],i):_t("",!0))]}},dF=(t,e,s)=>{const n=NA(t,e,s);if(!n.props.length||e.tagType===1)return n;t.arg&&s.onError(Ao(58,t.arg.loc));const{tag:i}=e,r=s.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||r){let o=BA,a=!1;if(i==="input"||r){const c=em(e,"type");if(c){if(c.type===7)o=Lv;else if(c.value)switch(c.value.content){case"radio":o=VA;break;case"checkbox":o=FA;break;case"file":a=!0,s.onError(Ao(59,t.loc));break}}else K9(e)&&(o=Lv)}else i==="select"&&(o=UA);a||(n.needRuntime=s.helper(o))}else s.onError(Ao(57,t.loc));return n.props=n.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),n},fF=ui("passive,once,capture"),hF=ui("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),pF=ui("left,right"),KA=ui("onkeyup,onkeydown,onkeypress"),mF=(t,e,s,n)=>{const i=[],r=[],o=[];for(let a=0;a<e.length;a++){const c=e[a].content;c==="native"&&Wu("COMPILER_V_ON_NATIVE",s)||fF(c)?o.push(c):pF(c)?zn(t)?KA(t.content.toLowerCase())?i.push(c):r.push(c):(i.push(c),r.push(c)):hF(c)?r.push(c):i.push(c)}return{keyModifiers:i,nonKeyModifiers:r,eventOptionModifiers:o}},P2=(t,e)=>zn(t)&&t.content.toLowerCase()==="onclick"?_t(e,!0):t.type!==4?ji(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t,gF=(t,e,s)=>LA(t,e,s,n=>{const{modifiers:i}=t;if(!i.length)return n;let{key:r,value:o}=n.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:f}=mF(r,i,s,t.loc);if(c.includes("right")&&(r=P2(r,"onContextmenu")),c.includes("middle")&&(r=P2(r,"onMouseup")),c.length&&(o=Fs(s.helper(qA),[o,JSON.stringify(c)])),a.length&&(!zn(r)||KA(r.content.toLowerCase()))&&(o=Fs(s.helper(HA),[o,JSON.stringify(a)])),f.length){const h=f.map(Fo).join("");r=zn(r)?_t(`${r.content}${h}`,!0):ji(["(",r,`) + "${h}"`])}return{props:[As(r,o)]}}),_F=(t,e,s)=>{const{exp:n,loc:i}=t;return n||s.onError(Ao(61,i)),{props:[],needRuntime:s.helper(jA)}},vF=(t,e)=>{t.type===1&&t.tagType===0&&(t.tag==="script"||t.tag==="style")&&e.removeNode()},bF=[aF],yF={cloak:iF,html:cF,text:uF,model:dF,on:gF,show:_F};function wF(t,e={}){return nF(t,Dt({},oF,e,{nodeTransforms:[vF,...bF,...e.nodeTransforms||[]],directiveTransforms:Dt({},yF,e.directiveTransforms||{}),transformHoist:null}))}/** 45* vue v3.5.13 46* (c) 2018-present Yuxi (Evan) You and Vue contributors 47* @license MIT
vendor: 4,499 bytes, lines 48-52
48**/const D2=Object.create(null);function GA(t,e){if(!mt(t))if(t.nodeType)t=t.innerHTML;else return Qs;const s=lN(t,e),n=D2[s];if(n)return n;if(t[0]==="#"){const a=document.querySelector(t);t=a?a.innerHTML:""}const i=Dt({hoistStatic:!0,onError:void 0,onWarn:Qs},e);!i.isCustomElement&&typeof customElements<"u"&&(i.isCustomElement=a=>!!customElements.get(a));const{code:r}=wF(t,i),o=new Function("Vue",r)($9);return o._rc=!0,D2[s]=o}Qb(GA);const xF=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Tb,BaseTransitionPropsValidators:Wp,Comment:Cs,DeprecationTypes:Nk,EffectScope:Rp,ErrorCodes:uC,ErrorTypeStrings:Mk,Fragment:G,KeepAlive:OC,ReactiveEffect:jl,Static:ko,Suspense:mk,Teleport:$b,Text:Hr,TrackOpTypes:rC,Transition:Uu,TransitionGroup:Xk,TriggerOpTypes:oC,VueElement:_d,assertNumber:cC,callWithAsyncErrorHandling:li,callWithErrorHandling:Ha,camelize:ls,capitalize:Fo,cloneVNode:Wi,compatUtils:Lk,compile:GA,computed:te,createApp:Rt,createBlock:tt,createCommentVNode:ie,createElementBlock:x,createElementVNode:u,createHydrationRenderer:zb,createPropsRestProxy:GC,createRenderer:Wb,createSSRApp:ry,createSlots:IC,createStaticVNode:ci,createTextVNode:re,createVNode:U,customRef:Sb,defineAsyncComponent:TC,defineComponent:ja,defineCustomElement:ty,defineEmits:VC,defineExpose:FC,defineModel:qC,defineOptions:BC,defineProps:NC,defineSSRCustomElement:zk,defineSlots:UC,devtools:Pk,effect:qE,effectScope:Ip,getCurrentInstance:di,getCurrentScope:Lp,getCurrentWatcher:aC,getTransitionRawChildren:dd,guardReactiveProps:Xb,h:Kl,handleError:qo,hasInjectionContext:Hb,hydrate:nA,hydrateOnIdle:CC,hydrateOnInteraction:$C,hydrateOnMediaQuery:AC,hydrateOnVisible:kC,initCustomFormatter:$k,initDirectivesForSSR:oA,inject:Sa,isMemoSame:ey,isProxy:qa,isReactive:$i,isReadonly:zr,isRef:ft,isRuntimeOnly:Ck,isShallow:Yn,isVNode:hr,markRaw:cd,mergeDefaults:KC,mergeModels:Nt,mergeProps:Xp,nextTick:Xr,normalizeClass:Ve,normalizeProps:DE,normalizeStyle:qr,onActivated:Mb,onBeforeMount:Db,onBeforeUnmount:pd,onBeforeUpdate:Gp,onDeactivated:Pb,onErrorCaptured:Nb,onMounted:Ds,onRenderTracked:Lb,onRenderTriggered:Ib,onScopeDispose:vb,onServerPrefetch:Rb,onUnmounted:Wa,onUpdated:hd,onWatcherCleanup:kb,openBlock:y,popScopeId:gC,provide:qb,proxyRefs:qp,pushScopeId:mC,queuePostFlushCb:Wl,reactive:Ua,readonly:Bp,ref:W,registerRuntimeCompiler:Qb,render:iy,renderList:ge,renderSlot:Ft,resolveComponent:PC,resolveDirective:RC,resolveDynamicComponent:Kr,resolveFilter:Ik,resolveTransitionHooks:Ma,setBlockTracking:Hh,setDevtoolsHook:Dk,setTransitionHooks:fr,shallowReactive:xb,shallowReadonly:eC,shallowRef:ud,ssrContextKey:Gb,ssrUtils:Rk,stop:HE,toDisplayString:P,toHandlerKey:ya,toHandlers:LC,toRaw:St,toRef:Cb,toRefs:Eb,toValue:nC,transformVNodeArgs:yk,triggerRef:sC,unref:w,useAttrs:WC,useCssModule:Gk,useCssVars:Wk,useHost:sy,useId:Fh,useModel:Gt,useSSRContext:Yb,useShadowRoot:Kk,useSlots:jC,useTemplateRef:zp,useTransitionState:jp,vModelCheckbox:en,vModelDynamic:ny,vModelRadio:Ps,vModelSelect:Wn,vModelText:Pi,vShow:ks,version:Jp,warn:Ok,watch:Et,watchEffect:uk,watchPostEffect:dk,watchSyncEffect:Zb,withAsyncContext:YC,withCtx:Fe,withDefaults:HC,withDirectives:Ge,withKeys:Bn,withMemo:Tk,withModifiers:st,withScopeId:_C},Symbol.toStringTag,{value:"Module"}));/*! 49 * pinia v3.0.2 50 * (c) 2025 Eduardo San Martin Morote 51 * @license MIT 52 */let YA;const nm=t=>YA=t,ZA=Symbol();function Nv(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ku;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ku||(ku={}));function $n(){const t=Ip(!0),e=t.run(()=>W({}));let s=[],n=[];const i=cd({install(r){nm(i),i._a=r,r.provide(ZA,i),r.config.globalProperties.$pinia=i,n.forEach(o=>s.push(o)),n=[]},use(r){return this._a?s.push(r):n.push(r),this},_p:s,_a:null,_e:t,_s:new Map,state:e});return i}const XA=()=>{};function R2(t,e,s,n=XA){t.push(e);const i=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),n())};return!s&&Lp()&&vb(i),i}function bl(t,...e){t.slice().forEach(s=>{s(...e)})}const SF=t=>t(),I2=Symbol(),I_=Symbol();function Vv(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],i=t[s];Nv(i)&&Nv(n)&&t.hasOwnProperty(s)&&!ft(n)&&!$i(n)?t[s]=Vv(i,n):t[s]=n}return t}const EF=Symbol();function CF(t){return!Nv(t)||!Object.prototype.hasOwnProperty.call(t,EF)}
52const{assign:ho}=Object;function kF(t){return!!(ft(t)&&t.effect)}function AF(t,e,s,n){const{state:i,actions:r,getters:o}=e,a=s.state.value[t];let c;function f(){a||(s.state.value[t]=i?i():{});const h=Eb(s.state.value[t]);return ho(h,r,Object.keys(o||{}).reduce((p,m)=>(p[m]=cd(te(()=>{nm(s);const _=s._s.get(t);return o[m].call(_,_)})),p),{}))}return c=JA(t,f,e,s,n,!0),c}function JA(t,e,s={},n,i,r){let o;const a=ho({actions:{}},s),c={deep:!0};let f,h,p=[],m=[],_;const v=n.state.value[t];!r&&!v&&(n.state.value[t]={}),W({});let b;function S(N){let F;f=h=!1,typeof N=="function"?(N(n.state.value[t]),F={type:ku.patchFunction,storeId:t,events:_}):(Vv(n.state.value[t],N),F={type:ku.patchObject,payload:N,storeId:t,events:_});const L=b=Symbol();Xr().then(()=>{b===L&&(f=!0)}),h=!0,bl(p,F,n.state.value[t])}const C=r?function(){const{state:F}=s,L=F?F():{};this.$patch(Y=>{ho(Y,L)})}:XA;function O(){o.stop(),p=[],m=[],n._s.delete(t)}const A=(N,F="")=>{if(I2 in N)return N[I_]=F,N;const L=function(){nm(n);const Y=Array.from(arguments),Z=[],le=[];function Ce(ye){Z.push(ye)}function Ee(ye){le.push(ye)}bl(m,{args:Y,name:L[I_],store:T,after:Ce,onError:Ee});let he;try{he=N.apply(this&&this.$id===t?this:T,Y)}catch(ye){throw bl(le,ye),ye}return he instanceof Promise?he.then(ye=>(bl(Z,ye),ye)).catch(ye=>(bl(le,ye),Promise.reject(ye))):(bl(Z,he),he)};return L[I2]=!0,L[I_]=F,L},$={_p:n,$id:t,$onAction:R2.bind(null,m),$patch:S,$reset:C,$subscribe(N,F={}){const L=R2(p,N,F.detached,()=>Y()),Y=o.run(()=>Et(()=>n.state.value[t],Z=>{(F.flush==="sync"?h:f)&&N({storeId:t,type:ku.direct,events:_},Z)},ho({},c,F)));return L},$dispose:O},T=Ua($);n._s.set(t,T);const B=(n._a&&n._a.runWithContext||SF)(()=>n._e.run(()=>(o=Ip()).run(()=>e({action:A}))));for(const N in B){const F=B[N];if(ft(F)&&!kF(F)||$i(F))r||(v&&CF(F)&&(ft(F)?F.value=v[N]:Vv(F,v[N])),n.state.value[t][N]=F);else if(typeof F=="function"){const L=A(F,N);B[N]=L,a.actions[N]=F}}return ho(T,B),ho(St(T),B),Object.defineProperty(T,"$state",{get:()=>n.state.value[t],set:N=>{S(F=>{ho(F,N)})}}),n._p.forEach(N=>{ho(T,o.run(()=>N({store:T,app:n._a,pinia:n,options:a})))}),v&&r&&s.hydrate&&s.hydrate(T.$state,v),f=!0,h=!0,T}/*! #__NO_SIDE_EFFECTS__ */function hi(t,e,s){let n;const i=typeof e=="function";n=i?s:e;function r(o,a){const c=Hb();return o=o||(c?Sa(ZA,null):null),o&&nm(o),o=YA,o._s.has(t)||(i?JA(t,e,n,o):AF(t,n,o)),o._s.get(t)}return r.$id=t,r}function Qe(t){const e=St(t),s={};for(const n in e){const i=e[n];i.effect?s[n]=te({get:()=>t[n],set(r){t[n]=r}}):(ft(i)||$i(i))&&(s[n]=Cb(t,n))}return s}var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $F(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var s=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),s}var cu={exports:{}};/** 53 * @license 54 * Lodash <https://lodash.com/> 55 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> 56 * Released under MIT license <https://lodash.com/license> 57 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 58 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 59 */var TF=cu.exports,L2;function OF(){return L2||(L2=1,(function(t,e){(function(){var s,n="4.17.21",i=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",p=1,m=2,_=4,v=1,b=2,S=1,C=2,O=4,A=8,$=16,T=32,D=64,B=128,N=256,F=512,L=30,Y="...",Z=800,le=16,Ce=1,Ee=2,he=3,ye=1/0,xe=9007199254740991,_e=17976931348623157e292,ze=NaN,je=4294967295,it=je-1,es=je>>>1,ue=[["ary",B],["bind",S],["bindKey",C],["curry",A],["curryRight",$],["flip",F],["partial",T],["partialRight",D],["rearg",N]],$t="[object Arguments]",Bt="[object Array]",zs="[object AsyncFunction]",zt="[object Boolean]",Hs="[object Date]",gs="[object DOMException]",nt="[object Error]",ps="[object Function]",K="[object GeneratorFunction]",X="[object Map]",fe="[object Number]",$e="[object Null]",me="[object Object]",Te="[object Promise]",Be="[object Proxy]",Re="[object RegExp]",Me="[object Set]",ke="[object String]",et="[object Symbol]",Ue="[object Undef
59ined]",Ye="[object WeakMap]",ot="[object WeakSet]",ht="[object ArrayBuffer]",vt="[object DataView]",Tt="[object Float32Array]",Rs="[object Float64Array]",ts="[object Int8Array]",Ks="[object Int16Array]",Is="[object Int32Array]",Ii="[object Uint8Array]",mr="[object Uint8ClampedArray]",Os="[object Uint16Array]",tn="[object Uint32Array]",Ga=/\b__p \+= '';/g,_m=/\b(__p \+=) '' \+/g,vm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lc=/&(?:amp|lt|gt|quot|#39);/g,Sd=/[&<>"']/g,bm=RegExp(lc.source),Ho=RegExp(Sd.source),ym=/<%-([\s\S]+?)%>/g,wm=/<%([\s\S]+?)%>/g,cc=/<%=([\s\S]+?)%>/g,xm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sm=/^\w*$/,Ed=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uc=/[\\^$.*+?()[\]{}|]/g,Em=RegExp(uc.source),dc=/^\s+/,Cm=/\s/,km=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Am=/\{\n\/\* \[wrapped with (.+)\] \*/,$m=/,? & /,Tm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Om=/[()=,{}\[\]\/\s]/,Mm=/\\(\\)?/g,Pm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Cd=/\w*$/,kd=/^[-+]0x[0-9a-f]+$/i,Ad=/^0b[01]+$/i,Dm=/^\[object .+?Constructor\]$/,Rm=/^0o[0-7]+$/i,Im=/^(?:0|[1-9]\d*)$/,Lm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 8,882 bytes, line 59
597f]/g,Ya=/($^)/,Za=/['\n\r\u2028\u2029\\]/g,Xn="\\ud800-\\udfff",$d="\\u0300-\\u036f",fc="\\ufe20-\\ufe2f",jo="\\u20d0-\\u20ff",Xa=$d+fc+jo,Ja="\\u2700-\\u27bf",hc="a-z\\xdf-\\xf6\\xf8-\\xff",Wo="\\xac\\xb1\\xd7\\xf7",pc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Td="\\u2000-\\u206f",Nm=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mc="A-Z\\xc0-\\xd6\\xd8-\\xde",Yi="\\ufe0e\\ufe0f",Li=Wo+pc+Td+Nm,zo="['â]",Zi="["+Xn+"]",gc="["+Li+"]",Ko="["+Xa+"]",_c="\\d+",Od="["+Ja+"]",Go="["+hc+"]",Yo="[^"+Xn+Li+_c+Ja+hc+mc+"]",vc="\\ud83c[\\udffb-\\udfff]",Vm="(?:"+Ko+"|"+vc+")",Qa="[^"+Xn+"]",ys="(?:\\ud83c[\\udde6-\\uddff]){2}",gr="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="["+mc+"]",Md="\\u200d",bc="(?:"+Go+"|"+Yo+")",Fm="(?:"+sn+"|"+Yo+")",Pd="(?:"+zo+"(?:d|ll|m|re|s|t|ve))?",Dd="(?:"+zo+"(?:D|LL|M|RE|S|T|VE))?",Rd=Vm+"?",yc="["+Yi+"]?",Bm="(?:"+Md+"(?:"+[Qa,ys,gr].join("|")+")"+yc+Rd+")*",Um="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Id=yc+Rd+Bm,Hm="(?:"+[Od,ys,gr].join("|")+")"+Id,jm="(?:"+[Qa+Ko+"?",Ko,ys,gr,Zi].join("|")+")",Wm=RegExp(zo,"g"),wc=RegExp(Ko,"g"),pi=RegExp(vc+"(?="+vc+")|"+jm+Id,"g"),zm=RegExp([sn+"?"+Go+"+"+Pd+"(?="+[gc,sn,"$"].join("|")+")",Fm+"+"+Dd+"(?="+[gc,sn+bc,"$"].join("|")+")",sn+"?"+bc+"+"+Pd,sn+"+"+Dd,qm,Um,_c,Hm].join("|"),"g"),Km=RegExp("["+Md+Xn+Xa+Yi+"]"),xc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gm=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ym=-1,ns={};ns[Tt]=ns[Rs]=ns[ts]=ns[Ks]=ns[Is]=ns[Ii]=ns[mr]=ns[Os]=ns[tn]=!0,ns[$t]=ns[Bt]=ns[ht]=ns[zt]=ns[vt]=ns[Hs]=ns[nt]=ns[ps]=ns[X]=ns[fe]=ns[me]=ns[Re]=ns[Me]=ns[ke]=ns[Ye]=!1;var ss={};ss[$t]=ss[Bt]=ss[ht]=ss[vt]=ss[zt]=ss[Hs]=ss[Tt]=ss[Rs]=ss[ts]=ss[Ks]=ss[Is]=ss[X]=ss[fe]=ss[me]=ss[Re]=ss[Me]=ss[ke]=ss[et]=ss[Ii]=ss[mr]=ss[Os]=ss[tn]=!0,ss[nt]=ss[ps]=ss[Ye]=!1;var Ld={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},Zm={"&":"&","<":"<",">":">",'"':""","'":"'"},Sc={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jm=parseFloat,Qm=parseInt,Nd=typeof yo=="object"&&yo&&yo.Object===Object&&yo,eg=typeof self=="object"&&self&&self.Object===Object&&self,_s=Nd||eg||Function("return this")(),el=e&&!e.nodeType&&e,_r=el&&!0&&t&&!t.nodeType&&t,Vd=_r&&_r.exports===el,vr=Vd&&Nd.process,Tn=(function(){try{var ee=_r&&_r.require&&_r.require("util").types;return ee||vr&&vr.binding&&vr.binding("util")}catch{}})(),Fd=Tn&&Tn.isArrayBuffer,Bd=Tn&&Tn.isDate,Ud=Tn&&Tn.isMap,qd=Tn&&Tn.isRegExp,Hd=Tn&&Tn.isSet,Ec=Tn&&Tn.isTypedArray;function mn(ee,pe,de){switch(de.length){case 0:return ee.call(pe);case 1:return ee.call(pe,de[0]);case 2:return ee.call(pe,de[0],de[1]);case 3:return ee.call(pe,de[0],de[1],de[2])}return ee.apply(pe,de)}function tg(ee,pe,de,Ke){for(var pt=-1,Ht=ee==null?0:ee.length;++pt<Ht;){var Ls=ee[pt];pe(Ke,Ls,de(Ls),ee)}return Ke}function On(ee,pe){for(var de=-1,Ke=ee==null?0:ee.length;++de<Ke&&pe(ee[de],de,ee)!==!1;);return ee}function sg(ee,pe){for(var de=ee==null?0:ee.length;de--&&pe(ee[de],de,ee)!==!1;);return ee}function Cc(ee,pe){for(var de=-1,Ke=ee==null?0:ee.length;++de<Ke;)if(!pe(ee[de],de,ee))return!1;return!0}function Xi(ee,pe){for(var de=-1,Ke=ee==null?0:ee.length,pt=0,Ht=[];++de<Ke;){var Ls=ee[de];pe(Ls,de,ee)&&(Ht[pt++]=Ls)}return Ht}function tl(ee,pe){var de=ee==null?0:ee.length;return!!de&&Qr(ee,pe,0)>-1}function kc(ee,pe,de){for(var Ke=-1,pt=ee==null?0:ee.length;++Ke<pt;)if(de(pe,ee[Ke]))return!0;return!1}function rs(ee,pe){for(var de=-1,Ke=ee==null?0:ee.length,pt=Array(Ke);++de<Ke;)pt[de]=pe(ee[de],de,ee);return pt}function Ni(ee,pe){for(var de=-1,Ke=pe.length,pt=ee.length;++de<Ke;)ee[pt+de]=pe[de];return ee}function Ac(ee,pe,de,Ke){var pt=-1,Ht=ee==null?0:ee.length;for(Ke&&Ht&&(de=ee[++pt]);++pt<Ht;)de=pe(de,ee[pt],pt,ee);return de}function ng(ee,pe,de,Ke){var pt=ee==null?0:ee.length;for(Ke&&pt&&(de=ee[--pt]);pt--;)de=pe(de,ee[pt],pt,ee);return de}function $c(ee,pe){for(var de=-1,Ke=ee==null?0:ee.length;++de<Ke;)if(pe(ee[de],de,ee))return!0;return!1}var ig=Oc("length");function rg(ee){return ee.split("")}function og(ee){return ee.match(Tm)||[]}function Tc(ee,pe,de){var Ke;return de(ee,function(pt,Ht,Ls){if(pe(pt,Ht,Ls))return Ke=Ht,!1}),Ke}function sl(ee,pe,de,Ke){for(var pt=ee.length,Ht=de+(Ke?1:-1);Ke?Ht--:++Ht<pt;)if(pe(ee[Ht],Ht,ee))return Ht;return-1}function Qr(ee,pe,de){return pe===pe?br(ee,pe,de):sl(ee,jd,de)}function ag(ee,pe,de,Ke){for(var pt=de-1,Ht=ee.length;++pt<Ht;)if(Ke(ee[pt],pe))return pt;return-1}function jd(ee){return ee!==ee}function Wd(ee,pe){var de=ee==null?0:ee.length;return de?H(ee,pe)/de:ze}function Oc(ee){return function(pe){return pe==null?s:pe[ee]}}function R(ee){return function(pe){return ee==null?s:ee[pe]}}function k(ee,pe,de,Ke,pt){return pt(ee,function(Ht,Ls,is){de=Ke?(Ke=!1,Ht):pe(de,Ht,Ls,is)}),de}function I(ee,pe){var de=ee.length;for(ee.sort(pe);de--;)ee[de]=ee[de].value;return ee}function H(ee,pe){for(var de,Ke=-1,pt=ee.length;++Ke<pt;){var Ht=pe(ee[Ke]);Ht!==s&&(de=de===s?Ht:de+Ht)}return de}function j(ee,pe){for(var de=-1,Ke=Array(ee);++de<ee;)Ke[de]=pe(de);return Ke}function Q(ee,pe){return rs(pe,function(de){return[de,ee[de]]})}function ae(ee){return ee&&ee.slice(0,qy(ee)+1).replace(dc,"")}function ce(ee){return function(pe){return ee(pe)}}function oe(ee,pe){return rs(pe,function(de){return ee[de]})}function we(ee,pe){return ee.has(pe)}function Ie(ee,pe){for(var de=-1,Ke=ee.length;++de<Ke&&Qr(pe,ee[de],0)>-1;);return de}function Se(ee,pe){for(var de=ee.length;de--&&Qr(pe,ee[de],0)>-1;);return de}function Le(ee,pe){for(var de=ee.length,Ke=0;de--;)ee[de]===pe&&++Ke;return Ke}var Pe=R(Ld),qe=R(Zm);function Ne(ee){return"\\"+Xm[ee]}function Xe(ee,pe){return ee==null?s:ee[pe]}function lt(ee){return Km.test(ee)}function yt(ee){return xc.test(ee)}function ws(ee){for(var pe,de=[];!(pe=ee.next()).done;)de.push(pe.value);return de}function nn(ee){var pe=-1,de=Array(ee.size);return ee.forEach(function(Ke,pt){de[++pe]=[pt,Ke]}),de}function js(ee,pe){return function(de){return ee(pe(de))}}function Ot(ee,pe){for(var de=-1,Ke=ee.length,pt=0,Ht=[];++de<Ke;){var Ls=ee[de];(Ls===pe||Ls===h)&&(ee[de]=h,Ht[pt++]=de)}return Ht}function os(ee){var pe=-1,de=Array(ee.size);return ee.forEach(function(Ke){de[++pe]=Ke}),de}function Mn(ee){var pe=-1,de=Array(ee.size);return ee.forEach(function(Ke){de[++pe]=[Ke,Ke]}),de}function br(ee,pe,de){for(var Ke=de-1,pt=ee.length;++Ke<pt;)if(ee[Ke]===pe)return Ke;return-1}function Mc(ee,pe,de){for(var Ke=de+1;Ke--;)if(ee[Ke]===pe)return Ke;return Ke}function Vi(ee){return lt(ee)?eT(ee):ig(ee)}function gn(ee){return lt(ee)?tT(ee):rg(ee)}function qy(ee){for(var pe=ee.length;pe--&&Cm.test(ee.charAt(pe)););return pe}var Q$=R(Sc);function eT(ee){for(var pe=pi.lastIndex=0;pi.test(ee);)++pe;return pe}function tT(ee){return ee.match(pi)||[]}function sT(ee){return ee.match(zm)||[]}var nT=(function ee(pe){pe=pe==null?_s:nl.defaults(_s.Object(),pe,nl.pick(_s,Gm));var de=pe.Array,Ke=pe.Date,pt=pe.Error,Ht=pe.Function,Ls=pe.Math,is=pe.Object,lg=pe.RegExp,iT=pe.String,mi=pe.TypeError,zd=de.prototype,rT=Ht.prototype,il=is.prototype,Kd=pe["__c
59ore-js_shared__"],Gd=rT.toString,Yt=il.hasOwnProperty,oT=0,Hy=(function(){var l=/[^.]+$/.exec(Kd&&Kd.keys&&Kd.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Yd=il.toString,aT=Gd.call(is),lT=_s._,cT=lg("^"+Gd.call(Yt).replace(uc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=Vd?pe.Buffer:s,eo=pe.Symbol,Xd=pe.Uint8Array,jy=Zd?Zd.allocUnsafe:s,Jd=js(is.getPrototypeOf,is),Wy=is.create,zy=il.propertyIsEnumerable,Qd=zd.splice,Ky=eo?eo.isConcatSpreadable:s,Pc=eo?eo.iterator:s,Zo=eo?eo.toStringTag:s,ef=(function(){try{var l=ta(is,"defineProperty");return l({},"",{}),l}catch{}})(),uT=pe.clearTimeout!==_s.clearTimeout&&pe.clearTimeout,dT=Ke&&Ke.now!==_s.Date.now&&Ke.now,fT=pe.setTimeout!==_s.setTimeout&&pe.setTimeout,tf=Ls.ceil,sf=Ls.floor,cg=is.getOwnPropertySymbols,hT=Zd?Zd.isBuffer:s,Gy=pe.isFinite,pT=zd.join,mT=js(is.keys,is),Ns=Ls.max,rn=Ls.min,gT=Ke.now,_T=pe.parseInt,Yy=Ls.random,vT=zd.reverse,ug=ta(pe,"DataView"),Dc=ta(pe,"Map"),dg=ta(pe,"Promise"),rl=ta(pe,"Set"),Rc=ta(pe,"WeakMap"),Ic=ta(is,"create"),nf=Rc&&new Rc,ol={},bT=sa(ug),yT=sa(Dc),wT=sa(dg),xT=sa(rl),ST=sa(Rc),rf=eo?eo.prototype:s,Lc=rf?rf.valueOf:s,Zy=rf?rf.toString:s;function V(l){if(vs(l)&&!gt(l)&&!(l instanceof Mt)){if(l instanceof gi)return l;if(Yt.call(l,"__wrapped__"))return X1(l)}return new gi(l)}var al=(function(){function l(){}return function(d){if(!ms(d))return{};if(Wy)return Wy(d);l.prototype=d;var g=new l;return l.prototype=s,g}})();function of(){}function gi(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=s}V.templateSettings={escape:ym,evaluate:wm,interpolate:cc,variable:"",imports:{_:V}},V.prototype=of.prototype,V.prototype.constructor=V,gi.prototype=al(of.prototype),gi.prototype.constructor=gi;function Mt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=je,this.__views__=[]}function ET(){var l=new Mt(this.__wrapped__);return l.__actions__=Pn(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Pn(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Pn(this.__views__),l}function CT(){if(this.__filtered__){var l=new Mt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function kT(){var l=this.__wrapped__.value(),d=this.__dir__,g=gt(l),E=d<0,M=g?l.length:0,q=V3(0,M,this.__views__),z=q.start,J=q.end,se=J-z,ve=E?J:z-1,be=this.__iteratees__,Ae=be.length,He=0,Je=rn(se,this.__takeCount__);if(!g||!E&&M==se&&Je==se)return y1(l,this.__actions__);var ct=[];e:for(;se--&&He<Je;){ve+=d;for(var wt=-1,ut=l[ve];++wt<Ae;){var At=be[wt],It=At.iteratee,ei=At.type,bn=It(ut);if(ei==Ee)ut=bn;else if(!bn){if(ei==Ce)continue e;break e}}ct[He++]=ut}return ct}Mt.prototype=al(of.prototype),Mt.prototype.constructor=Mt;function Xo(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function AT(){this.__data__=Ic?Ic(null):{},this.size=0}function $T(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function TT(l){var d=this.__data__;if(Ic){var g=d[l];return g===c?s:g}return Yt.call(d,l)?d[l]:s}function OT(l){var d=this.__data__;return Ic?d[l]!==s:Yt.call(d,l)}function MT(l,d){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Ic&&d===s?c:d,this}Xo.prototype.clear=AT,Xo.prototype.delete=$T,Xo.prototype.get=TT,Xo.prototype.has=OT,Xo.prototype.set=MT;function yr(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function PT(){this.__data__=[],this.size=0}function DT(l){var d=this.__data__,g=af(d,l);if(g<0)return!1;var E=d.length-1;return g==E?d.pop():Qd.call(d,g,1),--this.size,!0}function RT(l){var d=this.__data__,g=af(d,l);return g<0?s:d[g][1]}function IT(l){return af(this.__data__,l)>-1}function LT(l,d){var g=this.__data__,E=af(g,l);return E<0?(++this.size,g.push([l,d])):g[E][1]=d,this}yr.prototype.clear=PT,yr.prototype.delete=DT,yr.prototype.get=RT,yr.prototype.has=IT,yr.prototype.set=LT;function wr(l){var d=-1,g=l==null?0:l.length;for(this.clear();++d<g;){var E=l[d];this.set(E[0],E[1])}}function NT(){this.size=0,this.__data__={hash:new Xo,map:new(Dc||yr),string:new Xo}}function VT(l){var d=bf(this,l).delete(l);return this.size-=d?1:0,d}function FT(l){return bf(this,l).get(l)}function BT(l){return bf(this,l).has(l)}function UT(l,d){var g=bf(this,l),E=g.size;return g.set(l,d),this.size+=g.size==E?0:1,this}wr.prototype.clear=NT,wr.prototype.delete=VT,wr.prototype.get=FT,wr.prototype.has=BT,wr.prototype.set=UT;function Jo(l){var d=-1,g=l==null?0:l.length;for(this.__data__=new wr;++d<g;)this.add(l[d])}function qT(l){return this.__data__.set(l,c),this}function HT(l){return this.__data__.has(l)}Jo.prototype.add=Jo.prototype.push=qT,Jo.prototype.has=HT;function Fi(l){var d=this.__data__=new yr(l);this.size=d.size}function jT(){this.__data__=new yr,this.size=0}function WT(l){var d=this.__data__,g=d.delete(l);return this.size=d.size,g}function zT(l){return this.__data__.get(l)}function KT(l){return this.__data__.has(l)}function GT(l,d){var g=this.__data__;if(g instanceof yr){var E=g.__data__;if(!Dc||E.length<i-1)return E.push([l,d]),this.size=++g.size,this;g=this.__data__=new wr(E)}return g.set(l,d),this.size=g.size,this}Fi.prototype.clear=jT,Fi.prototype.delete=WT,Fi.prototype.get=zT,Fi.prototype.has=KT,Fi.prototype.set=GT;function Xy(l,d){var g=gt(l),E=!g&&na(l),M=!g&&!E&&ro(l),q=!g&&!E&&!M&&dl(l),z=g||E||M||q,J=z?j(l.length,iT):[],se=J.length;for(var ve in l)(d||Yt.call(l,ve))&&!(z&&(ve=="length"||M&&(ve=="offset"||ve=="parent")||q&&(ve=="buffer"||ve=="byteLength"||ve=="byteOffset")||Cr(ve,se)))&&J.push(ve);return J}function Jy(l){var d=l.length;return d?l[xg(0,d-1)]:s}function YT(l,d){return yf(Pn(l),Qo(d,0,l.length))}function ZT(l){return yf(Pn(l))}function fg(l,d,g){(g!==s&&!Bi(l[d],g)||g===s&&!(d in l))&&xr(l,d,g)}function Nc(l,d,g){var E=l[d];(!(Yt.call(l,d)&&Bi(E,g))||g===s&&!(d in l))&&xr(l,d,g)}function af(l,d){for(var g=l.length;g--;)if(Bi(l[g][0],d))return g;return-1}function XT(l,d,g,E){return to(l,function(M,q,z){d(E,M,g(M),z)}),E}function Qy(l,d){return l&&Qi(d,Ws(d),l)}function JT(l,d){return l&&Qi(d,Rn(d),l)}function xr(l,d,g){d=="__proto__"&&ef?ef(l,d,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[d]=g}function hg(l,d){for(var g=-1,E=d.length,M=de(E),q=l==null;++g<E;)M[g]=q?s:Kg(l,d[g]);return M}function Qo(l,d,g){return l===l&&(g!==s&&(l=l<=g?l:g),d!==s&&(l=l>=d?l:d)),l}function _i(l,d,g,E,M,q){var z,J=d&p,se=d&m,ve=d&_;if(g&&(z=M?g(l,E,M,q):g(l)),z!==s)return z;if(!ms(l))return l;var be=gt(l);if(be){if(z=B3(l),!J)return Pn(l,z)}else{var Ae=on(l),He=Ae==ps||Ae==K;if(ro(l))return S1(l,J);if(Ae==me||Ae==$t||He&&!M){if(z=se||He?{}:q1(l),!J)return se?T3(l,JT(z,l)):$3(l,Qy(z,l))}else{if(!ss[Ae])return M?l:{};z=U3(l,Ae,J)}}q||(q=new Fi);var Je=q.get(l);if(Je)return Je;q.set(l,z),_0(l)?l.forEach(function(ut){z.add(_i(ut,d,g,ut,l,q))}):m0(l)&&l.forEach(function(ut,At){z.set(At,_i(ut,d,g,At,l,q))});var ct=ve?se?Dg:Pg:se?Rn:Ws,wt=be?s:ct(l);return On(wt||l,function(ut,At){wt&&(At=ut,ut=l[At]),Nc(z,At,_i(ut,d,g,At,l,q))}),z}function QT(l){var d=Ws(l);return function(g){return e1(g,l,d)}}function e1(l,d,g){var E=g.length;if(l==null)return!E;for(l=is(l);E--;){var M=g[E],q=d[M],z=l[M];if(z===s&&!(M in l)||!q(z))return!1}return!0}function t1(l,d,g){if(typeof l!="function")throw new mi(o);return jc(function(){l.apply(s,g)},d)}
vendor: 2,648 bytes, line 59
59function Vc(l,d,g,E){var M=-1,q=tl,z=!0,J=l.length,se=[],ve=d.length;if(!J)return se;g&&(d=rs(d,ce(g))),E?(q=kc,z=!1):d.length>=i&&(q=we,z=!1,d=new Jo(d));e:for(;++M<J;){var be=l[M],Ae=g==null?be:g(be);if(be=E||be!==0?be:0,z&&Ae===Ae){for(var He=ve;He--;)if(d[He]===Ae)continue e;se.push(be)}else q(d,Ae,E)||se.push(be)}return se}var to=$1(Ji),s1=$1(mg,!0);function e3(l,d){var g=!0;return to(l,function(E,M,q){return g=!!d(E,M,q),g}),g}function lf(l,d,g){for(var E=-1,M=l.length;++E<M;){var q=l[E],z=d(q);if(z!=null&&(J===s?z===z&&!Qn(z):g(z,J)))var J=z,se=q}return se}function t3(l,d,g,E){var M=l.length;for(g=bt(g),g<0&&(g=-g>M?0:M+g),E=E===s||E>M?M:bt(E),E<0&&(E+=M),E=g>E?0:b0(E);g<E;)l[g++]=d;return l}function n1(l,d){var g=[];return to(l,function(E,M,q){d(E,M,q)&&g.push(E)}),g}function Gs(l,d,g,E,M){var q=-1,z=l.length;for(g||(g=H3),M||(M=[]);++q<z;){var J=l[q];d>0&&g(J)?d>1?Gs(J,d-1,g,E,M):Ni(M,J):E||(M[M.length]=J)}return M}var pg=T1(),i1=T1(!0);function Ji(l,d){return l&&pg(l,d,Ws)}function mg(l,d){return l&&i1(l,d,Ws)}function cf(l,d){return Xi(d,function(g){return kr(l[g])})}function ea(l,d){d=no(d,l);for(var g=0,E=d.length;l!=null&&g<E;)l=l[er(d[g++])];return g&&g==E?l:s}function r1(l,d,g){var E=d(l);return gt(l)?E:Ni(E,g(l))}function _n(l){return l==null?l===s?Ue:$e:Zo&&Zo in is(l)?N3(l):Z3(l)}function gg(l,d){return l>d}function s3(l,d){return l!=null&&Yt.call(l,d)}function n3(l,d){return l!=null&&d in is(l)}function i3(l,d,g){return l>=rn(d,g)&&l<Ns(d,g)}function _g(l,d,g){for(var E=g?kc:tl,M=l[0].length,q=l.length,z=q,J=de(q),se=1/0,ve=[];z--;){var be=l[z];z&&d&&(be=rs(be,ce(d))),se=rn(be.length,se),J[z]=!g&&(d||M>=120&&be.length>=120)?new Jo(z&&be):s}be=l[0];var Ae=-1,He=J[0];e:for(;++Ae<M&&ve.length<se;){var Je=be[Ae],ct=d?d(Je):Je;if(Je=g||Je!==0?Je:0,!(He?we(He,ct):E(ve,ct,g))){for(z=q;--z;){var wt=J[z];if(!(wt?we(wt,ct):E(l[z],ct,g)))continue e}He&&He.push(ct),ve.push(Je)}}return ve}function r3(l,d,g,E){return Ji(l,function(M,q,z){d(E,g(M),q,z)}),E}function Fc(l,d,g){d=no(d,l),l=z1(l,d);var E=l==null?l:l[er(bi(d))];return E==null?s:mn(E,l,g)}function o1(l){return vs(l)&&_n(l)==$t}function o3(l){return vs(l)&&_n(l)==ht}function a3(l){return vs(l)&&_n(l)==Hs}function Bc(l,d,g,E,M){return l===d?!0:l==null||d==null||!vs(l)&&!vs(d)?l!==l&&d!==d:l3(l,d,g,E,Bc,M)}function l3(l,d,g,E,M,q){var z=gt(l),J=gt(d),se=z?Bt:on(l),ve=J?Bt:on(d);se=se==$t?me:se,ve=ve==$t?me:ve;var be=se==me,Ae=ve==me,He=se==ve;if(He&&ro(l)){if(!ro(d))return!1;z=!0,be=!1}if(He&&!be)return q||(q=new Fi),z||dl(l)?F1(l,d,g,E,M,q):I3(l,d,se,g,E,M,q);if(!(g&v)){var Je=be&&Yt.call(l,"__wrapped__"),ct=Ae&&Yt.call(d,"__wrapped__");
vendor: 5,333 bytes, line 59
59if(Je||ct){var wt=Je?l.value():l,ut=ct?d.value():d;return q||(q=new Fi),M(wt,ut,g,E,q)}}return He?(q||(q=new Fi),L3(l,d,g,E,M,q)):!1}function c3(l){return vs(l)&&on(l)==X}function vg(l,d,g,E){var M=g.length,q=M,z=!E;if(l==null)return!q;for(l=is(l);M--;){var J=g[M];if(z&&J[2]?J[1]!==l[J[0]]:!(J[0]in l))return!1}for(;++M<q;){J=g[M];var se=J[0],ve=l[se],be=J[1];if(z&&J[2]){if(ve===s&&!(se in l))return!1}else{var Ae=new Fi;if(E)var He=E(ve,be,se,l,d,Ae);if(!(He===s?Bc(be,ve,v|b,E,Ae):He))return!1}}return!0}function a1(l){if(!ms(l)||W3(l))return!1;var d=kr(l)?cT:Dm;return d.test(sa(l))}function u3(l){return vs(l)&&_n(l)==Re}function d3(l){return vs(l)&&on(l)==Me}function f3(l){return vs(l)&&kf(l.length)&&!!ns[_n(l)]}function l1(l){return typeof l=="function"?l:l==null?In:typeof l=="object"?gt(l)?d1(l[0],l[1]):u1(l):O0(l)}function bg(l){if(!Hc(l))return mT(l);var d=[];for(var g in is(l))Yt.call(l,g)&&g!="constructor"&&d.push(g);return d}function h3(l){if(!ms(l))return Y3(l);var d=Hc(l),g=[];for(var E in l)E=="constructor"&&(d||!Yt.call(l,E))||g.push(E);return g}function yg(l,d){return l<d}function c1(l,d){var g=-1,E=Dn(l)?de(l.length):[];return to(l,function(M,q,z){E[++g]=d(M,q,z)}),E}function u1(l){var d=Ig(l);return d.length==1&&d[0][2]?j1(d[0][0],d[0][1]):function(g){return g===l||vg(g,l,d)}}function d1(l,d){return Ng(l)&&H1(d)?j1(er(l),d):function(g){var E=Kg(g,l);return E===s&&E===d?Gg(g,l):Bc(d,E,v|b)}}function uf(l,d,g,E,M){l!==d&&pg(d,function(q,z){if(M||(M=new Fi),ms(q))p3(l,d,z,g,uf,E,M);else{var J=E?E(Fg(l,z),q,z+"",l,d,M):s;J===s&&(J=q),fg(l,z,J)}},Rn)}function p3(l,d,g,E,M,q,z){var J=Fg(l,g),se=Fg(d,g),ve=z.get(se);if(ve){fg(l,g,ve);return}var be=q?q(J,se,g+"",l,d,z):s,Ae=be===s;if(Ae){var He=gt(se),Je=!He&&ro(se),ct=!He&&!Je&&dl(se);be=se,He||Je||ct?gt(J)?be=J:xs(J)?be=Pn(J):Je?(Ae=!1,be=S1(se,!0)):ct?(Ae=!1,be=E1(se,!0)):be=[]:Wc(se)||na(se)?(be=J,na(J)?be=y0(J):(!ms(J)||kr(J))&&(be=q1(se))):Ae=!1}Ae&&(z.set(se,be),M(be,se,E,q,z),z.delete(se)),fg(l,g,be)}function f1(l,d){var g=l.length;if(g)return d+=d<0?g:0,Cr(d,g)?l[d]:s}function h1(l,d,g){d.length?d=rs(d,function(q){return gt(q)?function(z){return ea(z,q.length===1?q[0]:q)}:q}):d=[In];var E=-1;d=rs(d,ce(at()));var M=c1(l,function(q,z,J){var se=rs(d,function(ve){return ve(q)});return{criteria:se,index:++E,value:q}});return I(M,function(q,z){return A3(q,z,g)})}function m3(l,d){return p1(l,d,function(g,E){return Gg(l,E)})}function p1(l,d,g){for(var E=-1,M=d.length,q={};++E<M;){var z=d[E],J=ea(l,z);g(J,z)&&Uc(q,no(z,l),J)}return q}function g3(l){return function(d){return ea(d,l)}}function wg(l,d,g,E){var M=E?ag:Qr,q=-1,z=d.length,J=l;for(l===d&&(d=Pn(d)),g&&(J=rs(l,ce(g)));++q<z;)for(var se=0,ve=d[q],be=g?g(ve):ve;(se=M(J,be,se,E))>-1;)J!==l&&Qd.call(J,se,1),Qd.call(l,se,1);return l}function m1(l,d){for(var g=l?d.length:0,E=g-1;g--;){var M=d[g];if(g==E||M!==q){var q=M;Cr(M)?Qd.call(l,M,1):Cg(l,M)}}return l}function xg(l,d){return l+sf(Yy()*(d-l+1))}function _3(l,d,g,E){for(var M=-1,q=Ns(tf((d-l)/(g||1)),0),z=de(q);q--;)z[E?q:++M]=l,l+=g;return z}function Sg(l,d){var g="";if(!l||d<1||d>xe)return g;do d%2&&(g+=l),d=sf(d/2),d&&(l+=l);while(d);return g}function Ct(l,d){return Bg(W1(l,d,In),l+"")}function v3(l){return Jy(fl(l))}function b3(l,d){var g=fl(l);return yf(g,Qo(d,0,g.length))}function Uc(l,d,g,E){if(!ms(l))return l;d=no(d,l);for(var M=-1,q=d.length,z=q-1,J=l;J!=null&&++M<q;){var se=er(d[M]),ve=g;if(se==="__proto__"||se==="constructor"||se==="prototype")return l;if(M!=z){var be=J[se];ve=E?E(be,se,J):s,ve===s&&(ve=ms(be)?be:Cr(d[M+1])?[]:{})}Nc(J,se,ve),J=J[se]}return l}var g1=nf?function(l,d){return nf.set(l,d),l}:In,y3=ef?function(l,d){return ef(l,"toString",{configurable:!0,enumerable:!1,value:Zg(d),writable:!0})}:In;function w3(l){return yf(fl(l))}function vi(l,d,g){var E=-1,M=l.length;d<0&&(d=-d>M?0:M+d),g=g>M?M:g,g<0&&(g+=M),M=d>g?0:g-d>>>0,d>>>=0;for(var q=de(M);++E<M;)q[E]=l[E+d];return q}function x3(l,d){var g;return to(l,function(E,M,q){return g=d(E,M,q),!g}),!!g}function df(l,d,g){var E=0,M=l==null?E:l.length;if(typeof d=="number"&&d===d&&M<=es){for(;E<M;){var q=E+M>>>1,z=l[q];z!==null&&!Qn(z)&&(g?z<=d:z<d)?E=q+1:M=q}return M}return Eg(l,d,In,g)}function Eg(l,d,g,E){var M=0,q=l==null?0:l.length;if(q===0)return 0;d=g(d);for(var z=d!==d,J=d===null,se=Qn(d),ve=d===s;M<q;){var be=sf((M+q)/2),Ae=g(l[be]),He=Ae!==s,Je=Ae===null,ct=Ae===Ae,wt=Qn(Ae);if(z)var ut=E||ct;else ve?ut=ct&&(E||He):J?ut=ct&&He&&(E||!Je):se?ut=ct&&He&&!Je&&(E||!wt):Je||wt?ut=!1:ut=E?Ae<=d:Ae<d;ut?M=be+1:q=be}return rn(q,it)}function _1(l,d){for(var g=-1,E=l.length,M=0,q=[];++g<E;){var z=l[g],J=d?d(z):z;if(!g||!Bi(J,se)){var se=J;q[M++]=z===0?0:z}}return q}function v1(l){return typeof l=="number"?l:Qn(l)?ze:+l}function Jn(l){if(typeof l=="string")return l;if(gt(l))return rs(l,Jn)+"";if(Qn(l))return Zy?Zy.call(l):"";var d=l+"";return d=="0"&&1/l==-ye?"-0":d}function so(l,d,g){var E=-1,M=tl,q=l.length,z=!0,J=[],se=J;if(g)z=!1,M=kc;else if(q>=i){var ve=d?null:D3(l);if(ve)return os(ve);z=!1,M=we,se=new Jo}else se=d?[]:J;e:for(;++E<q;){var be=l[E],Ae=d?d(be):be;if(be=g||be!==0?be:0,z&&Ae===Ae){for(var He=se.length;He--;)if(se[He]===Ae)continue e;d&&se.push(Ae),J.push(be)}else M(se,Ae,g)||(se!==J&&se.push(Ae),J.push(be))}return J}function Cg(l,d){return d=no(d,l),l=z1(l,d),l==null||delete l[er(bi(d))]}
vendor: 4,121 bytes, line 59
59function b1(l,d,g,E){return Uc(l,d,g(ea(l,d)),E)}function ff(l,d,g,E){for(var M=l.length,q=E?M:-1;(E?q--:++q<M)&&d(l[q],q,l););return g?vi(l,E?0:q,E?q+1:M):vi(l,E?q+1:0,E?M:q)}function y1(l,d){var g=l;return g instanceof Mt&&(g=g.value()),Ac(d,function(E,M){return M.func.apply(M.thisArg,Ni([E],M.args))},g)}function kg(l,d,g){var E=l.length;if(E<2)return E?so(l[0]):[];for(var M=-1,q=de(E);++M<E;)for(var z=l[M],J=-1;++J<E;)J!=M&&(q[M]=Vc(q[M]||z,l[J],d,g));return so(Gs(q,1),d,g)}function w1(l,d,g){for(var E=-1,M=l.length,q=d.length,z={};++E<M;){var J=E<q?d[E]:s;g(z,l[E],J)}return z}function Ag(l){return xs(l)?l:[]}function $g(l){return typeof l=="function"?l:In}function no(l,d){return gt(l)?l:Ng(l,d)?[l]:Z1(Kt(l))}var S3=Ct;function io(l,d,g){var E=l.length;return g=g===s?E:g,!d&&g>=E?l:vi(l,d,g)}var x1=uT||function(l){return _s.clearTimeout(l)};function S1(l,d){if(d)return l.slice();var g=l.length,E=jy?jy(g):new l.constructor(g);return l.copy(E),E}function Tg(l){var d=new l.constructor(l.byteLength);return new Xd(d).set(new Xd(l)),d}function E3(l,d){var g=d?Tg(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function C3(l){var d=new l.constructor(l.source,Cd.exec(l));return d.lastIndex=l.lastIndex,d}function k3(l){return Lc?is(Lc.call(l)):{}}function E1(l,d){var g=d?Tg(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function C1(l,d){if(l!==d){var g=l!==s,E=l===null,M=l===l,q=Qn(l),z=d!==s,J=d===null,se=d===d,ve=Qn(d);if(!J&&!ve&&!q&&l>d||q&&z&&se&&!J&&!ve||E&&z&&se||!g&&se||!M)return 1;if(!E&&!q&&!ve&&l<d||ve&&g&&M&&!E&&!q||J&&g&&M||!z&&M||!se)return-1}return 0}function A3(l,d,g){for(var E=-1,M=l.criteria,q=d.criteria,z=M.length,J=g.length;++E<z;){var se=C1(M[E],q[E]);if(se){if(E>=J)return se;var ve=g[E];return se*(ve=="desc"?-1:1)}}return l.index-d.index}function k1(l,d,g,E){for(var M=-1,q=l.length,z=g.length,J=-1,se=d.length,ve=Ns(q-z,0),be=de(se+ve),Ae=!E;++J<se;)be[J]=d[J];for(;++M<z;)(Ae||M<q)&&(be[g[M]]=l[M]);for(;ve--;)be[J++]=l[M++];return be}function A1(l,d,g,E){for(var M=-1,q=l.length,z=-1,J=g.length,se=-1,ve=d.length,be=Ns(q-J,0),Ae=de(be+ve),He=!E;++M<be;)Ae[M]=l[M];for(var Je=M;++se<ve;)Ae[Je+se]=d[se];for(;++z<J;)(He||M<q)&&(Ae[Je+g[z]]=l[M++]);return Ae}function Pn(l,d){var g=-1,E=l.length;for(d||(d=de(E));++g<E;)d[g]=l[g];return d}function Qi(l,d,g,E){var M=!g;g||(g={});for(var q=-1,z=d.length;++q<z;){var J=d[q],se=E?E(g[J],l[J],J,g,l):s;se===s&&(se=l[J]),M?xr(g,J,se):Nc(g,J,se)}return g}function $3(l,d){return Qi(l,Lg(l),d)}function T3(l,d){return Qi(l,B1(l),d)}function hf(l,d){return function(g,E){var M=gt(g)?tg:XT,q=d?d():{};return M(g,l,at(E,2),q)}}function ll(l){return Ct(function(d,g){var E=-1,M=g.length,q=M>1?g[M-1]:s,z=M>2?g[2]:s;for(q=l.length>3&&typeof q=="function"?(M--,q):s,z&&vn(g[0],g[1],z)&&(q=M<3?s:q,M=1),d=is(d);++E<M;){var J=g[E];J&&l(d,J,E,q)}return d})}function $1(l,d){return function(g,E){if(g==null)return g;if(!Dn(g))return l(g,E);for(var M=g.length,q=d?M:-1,z=is(g);(d?q--:++q<M)&&E(z[q],q,z)!==!1;);return g}}function T1(l){return function(d,g,E){for(var M=-1,q=is(d),z=E(d),J=z.length;J--;){var se=z[l?J:++M];if(g(q[se],se,q)===!1)break}return d}}function O3(l,d,g){var E=d&S,M=qc(l);function q(){var z=this&&this!==_s&&this instanceof q?M:l;return z.apply(E?g:this,arguments)}return q}function O1(l){return function(d){d=Kt(d);var g=lt(d)?gn(d):s,E=g?g[0]:d.charAt(0),M=g?io(g,1).join(""):d.slice(1);return E[l]()+M}}function cl(l){return function(d){return Ac($0(A0(d).replace(Wm,"")),l,"")}}function qc(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var g=al(l.prototype),E=l.apply(g,d);return ms(E)?E:g}}function M3(l,d,g){var E=qc(l);function M(){for(var q=arguments.length,z=de(q),J=q,se=ul(M);J--;)z[J]=arguments[J];var ve=q<3&&z[0]!==se&&z[q-1]!==se?[]:Ot(z,se);
vendor: 3,475 bytes, line 59
59if(q-=ve.length,q<g)return I1(l,d,pf,M.placeholder,s,z,ve,s,s,g-q);var be=this&&this!==_s&&this instanceof M?E:l;return mn(be,this,z)}return M}function M1(l){return function(d,g,E){var M=is(d);if(!Dn(d)){var q=at(g,3);d=Ws(d),g=function(J){return q(M[J],J,M)}}var z=l(d,g,E);return z>-1?M[q?d[z]:z]:s}}function P1(l){return Er(function(d){var g=d.length,E=g,M=gi.prototype.thru;for(l&&d.reverse();E--;){var q=d[E];if(typeof q!="function")throw new mi(o);if(M&&!z&&vf(q)=="wrapper")var z=new gi([],!0)}for(E=z?E:g;++E<g;){q=d[E];var J=vf(q),se=J=="wrapper"?Rg(q):s;se&&Vg(se[0])&&se[1]==(B|A|T|N)&&!se[4].length&&se[9]==1?z=z[vf(se[0])].apply(z,se[3]):z=q.length==1&&Vg(q)?z[J]():z.thru(q)}return function(){var ve=arguments,be=ve[0];if(z&&ve.length==1&>(be))return z.plant(be).value();for(var Ae=0,He=g?d[Ae].apply(this,ve):be;++Ae<g;)He=d[Ae].call(this,He);return He}})}function pf(l,d,g,E,M,q,z,J,se,ve){var be=d&B,Ae=d&S,He=d&C,Je=d&(A|$),ct=d&F,wt=He?s:qc(l);function ut(){for(var At=arguments.length,It=de(At),ei=At;ei--;)It[ei]=arguments[ei];if(Je)var bn=ul(ut),ti=Le(It,bn);if(E&&(It=k1(It,E,M,Je)),q&&(It=A1(It,q,z,Je)),At-=ti,Je&&At<ve){var Ss=Ot(It,bn);return I1(l,d,pf,ut.placeholder,g,It,Ss,J,se,ve-At)}var Ui=Ae?g:this,$r=He?Ui[l]:l;return At=It.length,J?It=X3(It,J):ct&&At>1&&It.reverse(),be&&se<At&&(It.length=se),this&&this!==_s&&this instanceof ut&&($r=wt||qc($r)),$r.apply(Ui,It)}return ut}function D1(l,d){return function(g,E){return r3(g,l,d(E),{})}}function mf(l,d){return function(g,E){var M;if(g===s&&E===s)return d;if(g!==s&&(M=g),E!==s){if(M===s)return E;typeof g=="string"||typeof E=="string"?(g=Jn(g),E=Jn(E)):(g=v1(g),E=v1(E)),M=l(g,E)}return M}}function Og(l){return Er(function(d){return d=rs(d,ce(at())),Ct(function(g){var E=this;return l(d,function(M){return mn(M,E,g)})})})}function gf(l,d){d=d===s?" ":Jn(d);var g=d.length;if(g<2)return g?Sg(d,l):d;var E=Sg(d,tf(l/Vi(d)));return lt(d)?io(gn(E),0,l).join(""):E.slice(0,l)}function P3(l,d,g,E){var M=d&S,q=qc(l);function z(){for(var J=-1,se=arguments.length,ve=-1,be=E.length,Ae=de(be+se),He=this&&this!==_s&&this instanceof z?q:l;++ve<be;)Ae[ve]=E[ve];for(;se--;)Ae[ve++]=arguments[++J];return mn(He,M?g:this,Ae)}return z}function R1(l){return function(d,g,E){return E&&typeof E!="number"&&vn(d,g,E)&&(g=E=s),d=Ar(d),g===s?(g=d,d=0):g=Ar(g),E=E===s?d<g?1:-1:Ar(E),_3(d,g,E,l)}}function _f(l){return function(d,g){return typeof d=="string"&&typeof g=="string"||(d=yi(d),g=yi(g)),l(d,g)}}function I1(l,d,g,E,M,q,z,J,se,ve){var be=d&A,Ae=be?z:s,He=be?s:z,Je=be?q:s,ct=be?s:q;d|=be?T:D,d&=~(be?D:T),d&O||(d&=-4);var wt=[l,d,M,Je,Ae,ct,He,J,se,ve],ut=g.apply(s,wt);return Vg(l)&&K1(ut,wt),ut.placeholder=E,G1(ut,l,d)}function Mg(l){var d=Ls[l];return function(g,E){if(g=yi(g),E=E==null?0:rn(bt(E),292),E&&Gy(g)){var M=(Kt(g)+"e").split("e"),q=d(M[0]+"e"+(+M[1]+E));return M=(Kt(q)+"e").split("e"),+(M[0]+"e"+(+M[1]-E))}return d(g)}}var D3=rl&&1/os(new rl([,-0]))[1]==ye?function(l){return new rl(l)}:Qg;function L1(l){return function(d){var g=on(d);return g==X?nn(d):g==Me?Mn(d):Q(d,l(d))}}function Sr(l,d,g,E,M,q,z,J){var se=d&C;if(!se&&typeof l!="function")throw new mi(o);var ve=E?E.length:0;if(ve||(d&=-97,E=M=s),z=z===s?z:Ns(bt(z),0),J=J===s?J:bt(J),ve-=M?M.length:0,d&D){var be=E,Ae=M;E=M=s}var He=se?s:Rg(l),Je=[l,d,g,E,M,be,Ae,q,z,J];if(He&&G3(Je,He),l=Je[0],d=Je[1],g=Je[2],E=Je[3],M=Je[4],J=Je[9]=Je[9]===s?se?0:l.length:Ns(Je[9]-ve,0),!J&&d&(A|$)&&(d&=-25),!d||d==S)var ct=O3(l,d,g);
vendor: 10,093 bytes, lines 59-61
59else d==A||d==$?ct=M3(l,d,J):(d==T||d==(S|T))&&!M.length?ct=P3(l,d,g,E):ct=pf.apply(s,Je);var wt=He?g1:K1;return G1(wt(ct,Je),l,d)}function N1(l,d,g,E){return l===s||Bi(l,il[g])&&!Yt.call(E,g)?d:l}function V1(l,d,g,E,M,q){return ms(l)&&ms(d)&&(q.set(d,l),uf(l,d,s,V1,q),q.delete(d)),l}function R3(l){return Wc(l)?s:l}function F1(l,d,g,E,M,q){var z=g&v,J=l.length,se=d.length;if(J!=se&&!(z&&se>J))return!1;var ve=q.get(l),be=q.get(d);if(ve&&be)return ve==d&&be==l;var Ae=-1,He=!0,Je=g&b?new Jo:s;for(q.set(l,d),q.set(d,l);++Ae<J;){var ct=l[Ae],wt=d[Ae];if(E)var ut=z?E(wt,ct,Ae,d,l,q):E(ct,wt,Ae,l,d,q);if(ut!==s){if(ut)continue;He=!1;break}if(Je){if(!$c(d,function(At,It){if(!we(Je,It)&&(ct===At||M(ct,At,g,E,q)))return Je.push(It)})){He=!1;break}}else if(!(ct===wt||M(ct,wt,g,E,q))){He=!1;break}}return q.delete(l),q.delete(d),He}function I3(l,d,g,E,M,q,z){switch(g){case vt:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case ht:return!(l.byteLength!=d.byteLength||!q(new Xd(l),new Xd(d)));case zt:case Hs:case fe:return Bi(+l,+d);case nt:return l.name==d.name&&l.message==d.message;case Re:case ke:return l==d+"";case X:var J=nn;case Me:var se=E&v;if(J||(J=os),l.size!=d.size&&!se)return!1;var ve=z.get(l);if(ve)return ve==d;E|=b,z.set(l,d);var be=F1(J(l),J(d),E,M,q,z);return z.delete(l),be;case et:if(Lc)return Lc.call(l)==Lc.call(d)}return!1}function L3(l,d,g,E,M,q){var z=g&v,J=Pg(l),se=J.length,ve=Pg(d),be=ve.length;if(se!=be&&!z)return!1;for(var Ae=se;Ae--;){var He=J[Ae];if(!(z?He in d:Yt.call(d,He)))return!1}var Je=q.get(l),ct=q.get(d);if(Je&&ct)return Je==d&&ct==l;var wt=!0;q.set(l,d),q.set(d,l);for(var ut=z;++Ae<se;){He=J[Ae];var At=l[He],It=d[He];if(E)var ei=z?E(It,At,He,d,l,q):E(At,It,He,l,d,q);if(!(ei===s?At===It||M(At,It,g,E,q):ei)){wt=!1;break}ut||(ut=He=="constructor")}if(wt&&!ut){var bn=l.constructor,ti=d.constructor;bn!=ti&&"constructor"in l&&"constructor"in d&&!(typeof bn=="function"&&bn instanceof bn&&typeof ti=="function"&&ti instanceof ti)&&(wt=!1)}return q.delete(l),q.delete(d),wt}function Er(l){return Bg(W1(l,s,e0),l+"")}function Pg(l){return r1(l,Ws,Lg)}function Dg(l){return r1(l,Rn,B1)}var Rg=nf?function(l){return nf.get(l)}:Qg;function vf(l){for(var d=l.name+"",g=ol[d],E=Yt.call(ol,d)?g.length:0;E--;){var M=g[E],q=M.func;if(q==null||q==l)return M.name}return d}function ul(l){var d=Yt.call(V,"placeholder")?V:l;return d.placeholder}function at(){var l=V.iteratee||Xg;return l=l===Xg?l1:l,arguments.length?l(arguments[0],arguments[1]):l}function bf(l,d){var g=l.__data__;return j3(d)?g[typeof d=="string"?"string":"hash"]:g.map}function Ig(l){for(var d=Ws(l),g=d.length;g--;){var E=d[g],M=l[E];d[g]=[E,M,H1(M)]}return d}function ta(l,d){var g=Xe(l,d);return a1(g)?g:s}function N3(l){var d=Yt.call(l,Zo),g=l[Zo];try{l[Zo]=s;var E=!0}catch{}var M=Yd.call(l);return E&&(d?l[Zo]=g:delete l[Zo]),M}var Lg=cg?function(l){return l==null?[]:(l=is(l),Xi(cg(l),function(d){return zy.call(l,d)}))}:e_,B1=cg?function(l){for(var d=[];l;)Ni(d,Lg(l)),l=Jd(l);return d}:e_,on=_n;(ug&&on(new ug(new ArrayBuffer(1)))!=vt||Dc&&on(new Dc)!=X||dg&&on(dg.resolve())!=Te||rl&&on(new rl)!=Me||Rc&&on(new Rc)!=Ye)&&(on=function(l){var d=_n(l),g=d==me?l.constructor:s,E=g?sa(g):"";if(E)switch(E){case bT:return vt;case yT:return X;case wT:return Te;case xT:return Me;case ST:return Ye}return d});function V3(l,d,g){for(var E=-1,M=g.length;++E<M;){var q=g[E],z=q.size;switch(q.type){case"drop":l+=z;break;case"dropRight":d-=z;break;case"take":d=rn(d,l+z);break;case"takeRight":l=Ns(l,d-z);break}}return{start:l,end:d}}function F3(l){var d=l.match(Am);return d?d[1].split($m):[]}function U1(l,d,g){d=no(d,l);for(var E=-1,M=d.length,q=!1;++E<M;){var z=er(d[E]);if(!(q=l!=null&&g(l,z)))break;l=l[z]}return q||++E!=M?q:(M=l==null?0:l.length,!!M&&kf(M)&&Cr(z,M)&&(gt(l)||na(l)))}function B3(l){var d=l.length,g=new l.constructor(d);return d&&typeof l[0]=="string"&&Yt.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function q1(l){return typeof l.constructor=="function"&&!Hc(l)?al(Jd(l)):{}}function U3(l,d,g){var E=l.constructor;switch(d){case ht:return Tg(l);case zt:case Hs:return new E(+l);case vt:return E3(l,g);case Tt:case Rs:case ts:case Ks:case Is:case Ii:case mr:case Os:case tn:return E1(l,g);case X:return new E;case fe:case ke:return new E(l);case Re:return C3(l);case Me:return new E;case et:return k3(l)}}function q3(l,d){var g=d.length;if(!g)return l;var E=g-1;return d[E]=(g>1?"& ":"")+d[E],d=d.join(g>2?", ":" "),l.replace(km,`{ 60/* [wrapped with `+d+`] */ 61`)}function H3(l){return gt(l)||na(l)||!!(Ky&&l&&l[Ky])}function Cr(l,d){var g=typeof l;return d=d??xe,!!d&&(g=="number"||g!="symbol"&&Im.test(l))&&l>-1&&l%1==0&&l<d}function vn(l,d,g){if(!ms(g))return!1;var E=typeof d;return(E=="number"?Dn(g)&&Cr(d,g.length):E=="string"&&d in g)?Bi(g[d],l):!1}function Ng(l,d){if(gt(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||Qn(l)?!0:Sm.test(l)||!xm.test(l)||d!=null&&l in is(d)}function j3(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Vg(l){var d=vf(l),g=V[d];if(typeof g!="function"||!(d in Mt.prototype))return!1;if(l===g)return!0;var E=Rg(g);return!!E&&l===E[0]}function W3(l){return!!Hy&&Hy in l}var z3=Kd?kr:t_;function Hc(l){var d=l&&l.constructor,g=typeof d=="function"&&d.prototype||il;return l===g}function H1(l){return l===l&&!ms(l)}function j1(l,d){return function(g){return g==null?!1:g[l]===d&&(d!==s||l in is(g))}}function K3(l){var d=Ef(l,function(E){return g.size===f&&g.clear(),E}),g=d.cache;return d}function G3(l,d){var g=l[1],E=d[1],M=g|E,q=M<(S|C|B),z=E==B&&g==A||E==B&&g==N&&l[7].length<=d[8]||E==(B|N)&&d[7].length<=d[8]&&g==A;if(!(q||z))return l;E&S&&(l[2]=d[2],M|=g&S?0:O);var J=d[3];if(J){var se=l[3];l[3]=se?k1(se,J,d[4]):J,l[4]=se?Ot(l[3],h):d[4]}return J=d[5],J&&(se=l[5],l[5]=se?A1(se,J,d[6]):J,l[6]=se?Ot(l[5],h):d[6]),J=d[7],J&&(l[7]=J),E&B&&(l[8]=l[8]==null?d[8]:rn(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=M,l}function Y3(l){var d=[];if(l!=null)for(var g in is(l))d.push(g);return d}function Z3(l){return Yd.call(l)}function W1(l,d,g){return d=Ns(d===s?l.length-1:d,0),function(){for(var E=arguments,M=-1,q=Ns(E.length-d,0),z=de(q);++M<q;)z[M]=E[d+M];M=-1;for(var J=de(d+1);++M<d;)J[M]=E[M];return J[d]=g(z),mn(l,this,J)}}function z1(l,d){return d.length<2?l:ea(l,vi(d,0,-1))}function X3(l,d){for(var g=l.length,E=rn(d.length,g),M=Pn(l);E--;){var q=d[E];l[E]=Cr(q,g)?M[q]:s}return l}function Fg(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var K1=Y1(g1),jc=fT||function(l,d){return _s.setTimeout(l,d)},Bg=Y1(y3);function G1(l,d,g){var E=d+"";return Bg(l,q3(E,J3(F3(E),g)))}function Y1(l){var d=0,g=0;return function(){var E=gT(),M=le-(E-g);if(g=E,M>0){if(++d>=Z)return arguments[0]}else d=0;return l.apply(s,arguments)}}function yf(l,d){var g=-1,E=l.length,M=E-1;for(d=d===s?E:d;++g<d;){var q=xg(g,M),z=l[q];l[q]=l[g],l[g]=z}return l.length=d,l}var Z1=K3(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(Ed,function(g,E,M,q){d.push(M?q.replace(Mm,"$1"):E||g)}),d});function er(l){if(typeof l=="string"||Qn(l))return l;var d=l+"";return d=="0"&&1/l==-ye?"-0":d}function sa(l){if(l!=null){try{return Gd.call(l)}catch{}try{return l+""}catch{}}return""}function J3(l,d){return On(ue,function(g){var E="_."+g[0];d&g[1]&&!tl(l,E)&&l.push(E)}),l.sort()}function X1(l){if(l instanceof Mt)return l.clone();var d=new gi(l.__wrapped__,l.__chain__);return d.__actions__=Pn(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function Q3(l,d,g){(g?vn(l,d,g):d===s)?d=1:d=Ns(bt(d),0);var E=l==null?0:l.length;if(!E||d<1)return[];for(var M=0,q=0,z=de(tf(E/d));M<E;)z[q++]=vi(l,M,M+=d);return z}function eO(l){for(var d=-1,g=l==null?0:l.length,E=0,M=[];++d<g;){var q=l[d];q&&(M[E++]=q)}return M}function tO(){var l=arguments.length;if(!l)return[];for(var d=de(l-1),g=arguments[0],E=l;E--;)d[E-1]=arguments[E];return Ni(gt(g)?Pn(g):[g],Gs(d,1))}var sO=Ct(function(l,d){return xs(l)?Vc(l,Gs(d,1,xs,!0)):[]}),nO=Ct(function(l,d){var g=bi(d);return xs(g)&&(g=s),xs(l)?Vc(l,Gs(d,1,xs,!0),at(g,2)):[]}),iO=Ct(function(l,d){var g=bi(d);return xs(g)&&(g=s),xs(l)?Vc(l,Gs(d,1,xs,!0),s,g):[]});function rO(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===s?1:bt(d),vi(l,d<0?0:d,E)):[]}function oO(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===s?1:bt(d),d=E-d,vi(l,0,d<0?0:d)):[]}function aO(l,d){return l&&l.length?ff(l,at(d,3),!0,!0):[]}function lO(l,d){return l&&l.length?ff(l,at(d,3),!0):[]}function cO(l,d,g,E){var M=l==null?0:l.length;return M?(g&&typeof g!="number"&&vn(l,d,g)&&(g=0,E=M),t3(l,d,g,E)):[]}function J1(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var M=g==null?0:bt(g);return M<0&&(M=Ns(E+M,0)),sl(l,at(d,3),M)}function Q1(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var M=E-1;return g!==s&&(M=bt(g),M=g<0?Ns(E+M,0):rn(M,E-1)),sl(l,at(d,3),M,!0)}function e0(l){var d=l==null?0:l.length;return d?Gs(l,1):[]}function uO(l){var d=l==null?0:l.length;return d?Gs(l,ye):[]}function dO(l,d){var g=l==null?0:l.length;return g?(d=d===s?1:bt(d),Gs(l,d)):[]}function fO(l){for(var d=-1,g=l==null?0:l.length,E={};++d<g;){var M=l[d];E[M[0]]=M[1]}return E}function t0(l){return l&&l.length?l[0]:s}function hO(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var M=g==null?0:bt(g);return M<0&&(M=Ns(E+M,0)),Qr(l,d,M)}function pO(l){var d=l==null?0:l.length;return d?vi(l,0,-1):[]}var mO=Ct(function(l){var d=rs(l,Ag);return d.length&&d[0]===l[0]?_g(d):[]}),gO=Ct(function(l){var d=bi(l),g=rs(l,Ag);return d===bi(g)?d=s:g.pop(),g.length&&g[0]===l[0]?_g(g,at(d,2)):[]}),_O=Ct(function(l){var d=bi(l),g=rs(l,Ag);return d=typeof d=="function"?d:s,d&&g.pop(),g.length&&g[0]===l[0]?_g(g,s,d):[]});function vO(l,d){return l==null?"":pT.call(l,d)}function bi(l){var d=l==null?0:l.length;return d?l[d-1]:s}function bO(l,d,g){var E=l==null?0:l.length;if(!E)return-1;var M=E;return g!==s&&(M=bt(g),M=M<0?Ns(E+M,0):rn(M,E-1)),d===d?Mc(l,d,M):sl(l,jd,M,!0)}function yO(l,d){return l&&l.length?f1(l,bt(d)):s}var wO=Ct(s0);
vendor: 4,694 bytes, line 61
61function s0(l,d){return l&&l.length&&d&&d.length?wg(l,d):l}function xO(l,d,g){return l&&l.length&&d&&d.length?wg(l,d,at(g,2)):l}function SO(l,d,g){return l&&l.length&&d&&d.length?wg(l,d,s,g):l}var EO=Er(function(l,d){var g=l==null?0:l.length,E=hg(l,d);return m1(l,rs(d,function(M){return Cr(M,g)?+M:M}).sort(C1)),E});function CO(l,d){var g=[];if(!(l&&l.length))return g;var E=-1,M=[],q=l.length;for(d=at(d,3);++E<q;){var z=l[E];d(z,E,l)&&(g.push(z),M.push(E))}return m1(l,M),g}function Ug(l){return l==null?l:vT.call(l)}function kO(l,d,g){var E=l==null?0:l.length;return E?(g&&typeof g!="number"&&vn(l,d,g)?(d=0,g=E):(d=d==null?0:bt(d),g=g===s?E:bt(g)),vi(l,d,g)):[]}function AO(l,d){return df(l,d)}function $O(l,d,g){return Eg(l,d,at(g,2))}function TO(l,d){var g=l==null?0:l.length;if(g){var E=df(l,d);if(E<g&&Bi(l[E],d))return E}return-1}function OO(l,d){return df(l,d,!0)}function MO(l,d,g){return Eg(l,d,at(g,2),!0)}function PO(l,d){var g=l==null?0:l.length;if(g){var E=df(l,d,!0)-1;if(Bi(l[E],d))return E}return-1}function DO(l){return l&&l.length?_1(l):[]}function RO(l,d){return l&&l.length?_1(l,at(d,2)):[]}function IO(l){var d=l==null?0:l.length;return d?vi(l,1,d):[]}function LO(l,d,g){return l&&l.length?(d=g||d===s?1:bt(d),vi(l,0,d<0?0:d)):[]}function NO(l,d,g){var E=l==null?0:l.length;return E?(d=g||d===s?1:bt(d),d=E-d,vi(l,d<0?0:d,E)):[]}function VO(l,d){return l&&l.length?ff(l,at(d,3),!1,!0):[]}function FO(l,d){return l&&l.length?ff(l,at(d,3)):[]}var BO=Ct(function(l){return so(Gs(l,1,xs,!0))}),UO=Ct(function(l){var d=bi(l);return xs(d)&&(d=s),so(Gs(l,1,xs,!0),at(d,2))}),qO=Ct(function(l){var d=bi(l);return d=typeof d=="function"?d:s,so(Gs(l,1,xs,!0),s,d)});function HO(l){return l&&l.length?so(l):[]}function jO(l,d){return l&&l.length?so(l,at(d,2)):[]}function WO(l,d){return d=typeof d=="function"?d:s,l&&l.length?so(l,s,d):[]}function qg(l){if(!(l&&l.length))return[];var d=0;return l=Xi(l,function(g){if(xs(g))return d=Ns(g.length,d),!0}),j(d,function(g){return rs(l,Oc(g))})}function n0(l,d){if(!(l&&l.length))return[];var g=qg(l);return d==null?g:rs(g,function(E){return mn(d,s,E)})}var zO=Ct(function(l,d){return xs(l)?Vc(l,d):[]}),KO=Ct(function(l){return kg(Xi(l,xs))}),GO=Ct(function(l){var d=bi(l);return xs(d)&&(d=s),kg(Xi(l,xs),at(d,2))}),YO=Ct(function(l){var d=bi(l);return d=typeof d=="function"?d:s,kg(Xi(l,xs),s,d)}),ZO=Ct(qg);function XO(l,d){return w1(l||[],d||[],Nc)}function JO(l,d){return w1(l||[],d||[],Uc)}var QO=Ct(function(l){var d=l.length,g=d>1?l[d-1]:s;return g=typeof g=="function"?(l.pop(),g):s,n0(l,g)});function i0(l){var d=V(l);return d.__chain__=!0,d}function e4(l,d){return d(l),l}function wf(l,d){return d(l)}var t4=Er(function(l){var d=l.length,g=d?l[0]:0,E=this.__wrapped__,M=function(q){return hg(q,l)};return d>1||this.__actions__.length||!(E instanceof Mt)||!Cr(g)?this.thru(M):(E=E.slice(g,+g+(d?1:0)),E.__actions__.push({func:wf,args:[M],thisArg:s}),new gi(E,this.__chain__).thru(function(q){return d&&!q.length&&q.push(s),q}))});function s4(){return i0(this)}function n4(){return new gi(this.value(),this.__chain__)}function i4(){this.__values__===s&&(this.__values__=v0(this.value()));var l=this.__index__>=this.__values__.length,d=l?s:this.__values__[this.__index__++];return{done:l,value:d}}function r4(){return this}function o4(l){for(var d,g=this;g instanceof of;){var E=X1(g);E.__index__=0,E.__values__=s,d?M.__wrapped__=E:d=E;var M=E;g=g.__wrapped__}return M.__wrapped__=l,d}function a4(){var l=this.__wrapped__;if(l instanceof Mt){var d=l;return this.__actions__.length&&(d=new Mt(this)),d=d.reverse(),d.__actions__.push({func:wf,args:[Ug],thisArg:s}),new gi(d,this.__chain__)}return this.thru(Ug)}function l4(){return y1(this.__wrapped__,this.__actions__)}var c4=hf(function(l,d,g){Yt.call(l,g)?++l[g]:xr(l,g,1)});function u4(l,d,g){var E=gt(l)?Cc:e3;return g&&vn(l,d,g)&&(d=s),E(l,at(d,3))}function d4(l,d){var g=gt(l)?Xi:n1;return g(l,at(d,3))}var f4=M1(J1),h4=M1(Q1);function p4(l,d){return Gs(xf(l,d),1)}function m4(l,d){return Gs(xf(l,d),ye)}function g4(l,d,g){return g=g===s?1:bt(g),Gs(xf(l,d),g)}function r0(l,d){var g=gt(l)?On:to;return g(l,at(d,3))}function o0(l,d){var g=gt(l)?sg:s1;return g(l,at(d,3))}var _4=hf(function(l,d,g){Yt.call(l,g)?l[g].push(d):xr(l,g,[d])});function v4(l,d,g,E){l=Dn(l)?l:fl(l),g=g&&!E?bt(g):0;var M=l.length;return g<0&&(g=Ns(M+g,0)),Af(l)?g<=M&&l.indexOf(d,g)>-1:!!M&&Qr(l,d,g)>-1}var b4=Ct(function(l,d,g){var E=-1,M=typeof d=="function",q=Dn(l)?de(l.length):[];return to(l,function(z){q[++E]=M?mn(d,z,g):Fc(z,d,g)}),q}),y4=hf(function(l,d,g){xr(l,g,d)});function xf(l,d){var g=gt(l)?rs:c1;return g(l,at(d,3))}function w4(l,d,g,E){return l==null?[]:(gt(d)||(d=d==null?[]:[d]
vendor: 4,886 bytes, line 61
61),g=E?s:g,gt(g)||(g=g==null?[]:[g]),h1(l,d,g))}var x4=hf(function(l,d,g){l[g?0:1].push(d)},function(){return[[],[]]});function S4(l,d,g){var E=gt(l)?Ac:k,M=arguments.length<3;return E(l,at(d,4),g,M,to)}function E4(l,d,g){var E=gt(l)?ng:k,M=arguments.length<3;return E(l,at(d,4),g,M,s1)}function C4(l,d){var g=gt(l)?Xi:n1;return g(l,Cf(at(d,3)))}function k4(l){var d=gt(l)?Jy:v3;return d(l)}function A4(l,d,g){(g?vn(l,d,g):d===s)?d=1:d=bt(d);var E=gt(l)?YT:b3;return E(l,d)}function $4(l){var d=gt(l)?ZT:w3;return d(l)}function T4(l){if(l==null)return 0;if(Dn(l))return Af(l)?Vi(l):l.length;var d=on(l);return d==X||d==Me?l.size:bg(l).length}function O4(l,d,g){var E=gt(l)?$c:x3;return g&&vn(l,d,g)&&(d=s),E(l,at(d,3))}var M4=Ct(function(l,d){if(l==null)return[];var g=d.length;return g>1&&vn(l,d[0],d[1])?d=[]:g>2&&vn(d[0],d[1],d[2])&&(d=[d[0]]),h1(l,Gs(d,1),[])}),Sf=dT||function(){return _s.Date.now()};function P4(l,d){if(typeof d!="function")throw new mi(o);return l=bt(l),function(){if(--l<1)return d.apply(this,arguments)}}function a0(l,d,g){return d=g?s:d,d=l&&d==null?l.length:d,Sr(l,B,s,s,s,s,d)}function l0(l,d){var g;if(typeof d!="function")throw new mi(o);return l=bt(l),function(){return--l>0&&(g=d.apply(this,arguments)),l<=1&&(d=s),g}}var Hg=Ct(function(l,d,g){var E=S;if(g.length){var M=Ot(g,ul(Hg));E|=T}return Sr(l,E,d,g,M)}),c0=Ct(function(l,d,g){var E=S|C;if(g.length){var M=Ot(g,ul(c0));E|=T}return Sr(d,E,l,g,M)});function u0(l,d,g){d=g?s:d;var E=Sr(l,A,s,s,s,s,s,d);return E.placeholder=u0.placeholder,E}function d0(l,d,g){d=g?s:d;var E=Sr(l,$,s,s,s,s,s,d);return E.placeholder=d0.placeholder,E}function f0(l,d,g){var E,M,q,z,J,se,ve=0,be=!1,Ae=!1,He=!0;if(typeof l!="function")throw new mi(o);d=yi(d)||0,ms(g)&&(be=!!g.leading,Ae="maxWait"in g,q=Ae?Ns(yi(g.maxWait)||0,d):q,He="trailing"in g?!!g.trailing:He);function Je(Ss){var Ui=E,$r=M;return E=M=s,ve=Ss,z=l.apply($r,Ui),z}function ct(Ss){return ve=Ss,J=jc(At,d),be?Je(Ss):z}function wt(Ss){var Ui=Ss-se,$r=Ss-ve,M0=d-Ui;return Ae?rn(M0,q-$r):M0}function ut(Ss){var Ui=Ss-se,$r=Ss-ve;return se===s||Ui>=d||Ui<0||Ae&&$r>=q}function At(){var Ss=Sf();if(ut(Ss))return It(Ss);J=jc(At,wt(Ss))}function It(Ss){return J=s,He&&E?Je(Ss):(E=M=s,z)}function ei(){J!==s&&x1(J),ve=0,E=se=M=J=s}function bn(){return J===s?z:It(Sf())}function ti(){var Ss=Sf(),Ui=ut(Ss);if(E=arguments,M=this,se=Ss,Ui){if(J===s)return ct(se);if(Ae)return x1(J),J=jc(At,d),Je(se)}return J===s&&(J=jc(At,d)),z}return ti.cancel=ei,ti.flush=bn,ti}var D4=Ct(function(l,d){return t1(l,1,d)}),R4=Ct(function(l,d,g){return t1(l,yi(d)||0,g)});function I4(l){return Sr(l,F)}function Ef(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new mi(o);var g=function(){var E=arguments,M=d?d.apply(this,E):E[0],q=g.cache;if(q.has(M))return q.get(M);var z=l.apply(this,E);return g.cache=q.set(M,z)||q,z};return g.cache=new(Ef.Cache||wr),g}Ef.Cache=wr;function Cf(l){if(typeof l!="function")throw new mi(o);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function L4(l){return l0(2,l)}var N4=S3(function(l,d){d=d.length==1&>(d[0])?rs(d[0],ce(at())):rs(Gs(d,1),ce(at()));var g=d.length;return Ct(function(E){for(var M=-1,q=rn(E.length,g);++M<q;)E[M]=d[M].call(this,E[M]);return mn(l,this,E)})}),jg=Ct(function(l,d){var g=Ot(d,ul(jg));return Sr(l,T,s,d,g)}),h0=Ct(function(l,d){var g=Ot(d,ul(h0));return Sr(l,D,s,d,g)}),V4=Er(function(l,d){return Sr(l,N,s,s,s,d)});function F4(l,d){if(typeof l!="function")throw new mi(o);return d=d===s?d:bt(d),Ct(l,d)}function B4(l,d){if(typeof l!="function")throw new mi(o);return d=d==null?0:Ns(bt(d),0),Ct(function(g){var E=g[d],M=io(g,0,d);return E&&Ni(M,E),mn(l,this,M)})}function U4(l,d,g){var E=!0,M=!0;if(typeof l!="function")throw new mi(o);return ms(g)&&(E="leading"in g?!!g.leading:E,M="trailing"in g?!!g.trailing:M),f0(l,d,{leading:E,maxWait:d,trailing:M})}function q4(l){return a0(l,1)}function H4(l,d){return jg($g(d),l)}function j4(){if(!arguments.length)return[];var l=arguments[0];return gt(l)?l:[l]}function W4(l){return _i(l,_)}function z4(l,d){return d=typeof d=="function"?d:s,_i(l,_,d)}function K4(l){return _i(l,p|_)}function G4(l,d){return d=typeof d=="function"?d:s,_i(l,p|_,d)}function Y4(l,d){return d==null||e1(l,d,Ws(d))}function Bi(l,d){return l===d||l!==l&&d!==d}var Z4=_f(gg),X4=_f(function(l,d){return l>=d}),na=o1((function(){return arguments})())?o1:function(l){return vs(l)&&Yt.call(l,"callee")&&!zy.call(l,"callee")},gt=de.isArray,J4=Fd?ce(Fd):o3;function Dn(l){return l!=null&&kf(l.length)&&!kr(l)}function xs(l){return vs(l)&&Dn(l)}function Q4(l){return l===!0||l===!1||vs(l)&&_n(l)==zt}var ro=hT||t_,e8=Bd?ce(Bd):a3;function t8(l){return vs(l)&&l.nodeType===1&&!Wc(l)}function s8(l){if(l==null)return!0;
vendor: 4,080 bytes, line 61
61if(Dn(l)&&(gt(l)||typeof l=="string"||typeof l.splice=="function"||ro(l)||dl(l)||na(l)))return!l.length;var d=on(l);if(d==X||d==Me)return!l.size;if(Hc(l))return!bg(l).length;for(var g in l)if(Yt.call(l,g))return!1;return!0}function n8(l,d){return Bc(l,d)}function i8(l,d,g){g=typeof g=="function"?g:s;var E=g?g(l,d):s;return E===s?Bc(l,d,s,g):!!E}function Wg(l){if(!vs(l))return!1;var d=_n(l);return d==nt||d==gs||typeof l.message=="string"&&typeof l.name=="string"&&!Wc(l)}function r8(l){return typeof l=="number"&&Gy(l)}function kr(l){if(!ms(l))return!1;var d=_n(l);return d==ps||d==K||d==zs||d==Be}function p0(l){return typeof l=="number"&&l==bt(l)}function kf(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=xe}function ms(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function vs(l){return l!=null&&typeof l=="object"}var m0=Ud?ce(Ud):c3;function o8(l,d){return l===d||vg(l,d,Ig(d))}function a8(l,d,g){return g=typeof g=="function"?g:s,vg(l,d,Ig(d),g)}function l8(l){return g0(l)&&l!=+l}function c8(l){if(z3(l))throw new pt(r);return a1(l)}function u8(l){return l===null}function d8(l){return l==null}function g0(l){return typeof l=="number"||vs(l)&&_n(l)==fe}function Wc(l){if(!vs(l)||_n(l)!=me)return!1;var d=Jd(l);if(d===null)return!0;var g=Yt.call(d,"constructor")&&d.constructor;return typeof g=="function"&&g instanceof g&&Gd.call(g)==aT}var zg=qd?ce(qd):u3;function f8(l){return p0(l)&&l>=-xe&&l<=xe}var _0=Hd?ce(Hd):d3;function Af(l){return typeof l=="string"||!gt(l)&&vs(l)&&_n(l)==ke}function Qn(l){return typeof l=="symbol"||vs(l)&&_n(l)==et}var dl=Ec?ce(Ec):f3;function h8(l){return l===s}function p8(l){return vs(l)&&on(l)==Ye}function m8(l){return vs(l)&&_n(l)==ot}var g8=_f(yg),_8=_f(function(l,d){return l<=d});function v0(l){if(!l)return[];if(Dn(l))return Af(l)?gn(l):Pn(l);if(Pc&&l[Pc])return ws(l[Pc]());var d=on(l),g=d==X?nn:d==Me?os:fl;return g(l)}function Ar(l){if(!l)return l===0?l:0;if(l=yi(l),l===ye||l===-ye){var d=l<0?-1:1;return d*_e}return l===l?l:0}function bt(l){var d=Ar(l),g=d%1;return d===d?g?d-g:d:0}function b0(l){return l?Qo(bt(l),0,je):0}function yi(l){if(typeof l=="number")return l;if(Qn(l))return ze;if(ms(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=ms(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=ae(l);var g=Ad.test(l);return g||Rm.test(l)?Qm(l.slice(2),g?2:8):kd.test(l)?ze:+l}function y0(l){return Qi(l,Rn(l))}function v8(l){return l?Qo(bt(l),-xe,xe):l===0?l:0}function Kt(l){return l==null?"":Jn(l)}var b8=ll(function(l,d){if(Hc(d)||Dn(d)){Qi(d,Ws(d),l);return}for(var g in d)Yt.call(d,g)&&Nc(l,g,d[g])}),w0=ll(function(l,d){Qi(d,Rn(d),l)}),$f=ll(function(l,d,g,E){Qi(d,Rn(d),l,E)}),y8=ll(function(l,d,g,E){Qi(d,Ws(d),l,E)}),w8=Er(hg);function x8(l,d){var g=al(l);return d==null?g:Qy(g,d)}var S8=Ct(function(l,d){l=is(l);var g=-1,E=d.length,M=E>2?d[2]:s;for(M&&vn(d[0],d[1],M)&&(E=1);++g<E;)for(var q=d[g],z=Rn(q),J=-1,se=z.length;++J<se;){var ve=z[J],be=l[ve];(be===s||Bi(be,il[ve])&&!Yt.call(l,ve))&&(l[ve]=q[ve])}return l}),E8=Ct(function(l){return l.push(s,V1),mn(x0,s,l)});function C8(l,d){return Tc(l,at(d,3),Ji)}function k8(l,d){return Tc(l,at(d,3),mg)}function A8(l,d){return l==null?l:pg(l,at(d,3),Rn)}function $8(l,d){return l==null?l:i1(l,at(d,3),Rn)}function T8(l,d){return l&&Ji(l,at(d,3))}function O8(l,d){return l&&mg(l,at(d,3))}function M8(l){return l==null?[]:cf(l,Ws(l))}function P8(l){return l==null?[]:cf(l,Rn(l))}function Kg(l,d,g){var E=l==null?s:ea(l,d);return E===s?g:E}function D8(l,d){return l!=null&&U1(l,d,s3)}function Gg(l,d){return l!=null&&U1(l,d,n3)}var R8=D1(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=Yd.call(d)),l[d]=g},Zg(In)),I8=D1(function(l,d,g){d!=null&&typeof d.toString!="function"&&(d=Yd.call(d)),Yt.call(l,d)?l[d].push(g):l[d]=[g]},at),L8=Ct(Fc);function Ws(l){return Dn(l)?Xy(l):bg(l)}function Rn(l){return Dn(l)?Xy(l,!0):h3(l)}function N8(l,d){var g={};return d=at(d,3),Ji(l,function(E,M,q){xr(g,d(E,M,q),E)}),g}function V8(l,d){var g={};return d=at(d,3),Ji(l,function(E,M,q){xr(g,M,d(E,M,q))}),g}var F8=ll(function(l,d,g){uf(l,d,g)}
vendor: 9,030 bytes, lines 61-78
61),x0=ll(function(l,d,g,E){uf(l,d,g,E)}),B8=Er(function(l,d){var g={};if(l==null)return g;var E=!1;d=rs(d,function(q){return q=no(q,l),E||(E=q.length>1),q}),Qi(l,Dg(l),g),E&&(g=_i(g,p|m|_,R3));for(var M=d.length;M--;)Cg(g,d[M]);return g});function U8(l,d){return S0(l,Cf(at(d)))}var q8=Er(function(l,d){return l==null?{}:m3(l,d)});function S0(l,d){if(l==null)return{};var g=rs(Dg(l),function(E){return[E]});return d=at(d),p1(l,g,function(E,M){return d(E,M[0])})}function H8(l,d,g){d=no(d,l);var E=-1,M=d.length;for(M||(M=1,l=s);++E<M;){var q=l==null?s:l[er(d[E])];q===s&&(E=M,q=g),l=kr(q)?q.call(l):q}return l}function j8(l,d,g){return l==null?l:Uc(l,d,g)}function W8(l,d,g,E){return E=typeof E=="function"?E:s,l==null?l:Uc(l,d,g,E)}var E0=L1(Ws),C0=L1(Rn);function z8(l,d,g){var E=gt(l),M=E||ro(l)||dl(l);if(d=at(d,4),g==null){var q=l&&l.constructor;M?g=E?new q:[]:ms(l)?g=kr(q)?al(Jd(l)):{}:g={}}return(M?On:Ji)(l,function(z,J,se){return d(g,z,J,se)}),g}function K8(l,d){return l==null?!0:Cg(l,d)}function G8(l,d,g){return l==null?l:b1(l,d,$g(g))}function Y8(l,d,g,E){return E=typeof E=="function"?E:s,l==null?l:b1(l,d,$g(g),E)}function fl(l){return l==null?[]:oe(l,Ws(l))}function Z8(l){return l==null?[]:oe(l,Rn(l))}function X8(l,d,g){return g===s&&(g=d,d=s),g!==s&&(g=yi(g),g=g===g?g:0),d!==s&&(d=yi(d),d=d===d?d:0),Qo(yi(l),d,g)}function J8(l,d,g){return d=Ar(d),g===s?(g=d,d=0):g=Ar(g),l=yi(l),i3(l,d,g)}function Q8(l,d,g){if(g&&typeof g!="boolean"&&vn(l,d,g)&&(d=g=s),g===s&&(typeof d=="boolean"?(g=d,d=s):typeof l=="boolean"&&(g=l,l=s)),l===s&&d===s?(l=0,d=1):(l=Ar(l),d===s?(d=l,l=0):d=Ar(d)),l>d){var E=l;l=d,d=E}if(g||l%1||d%1){var M=Yy();return rn(l+M*(d-l+Jm("1e-"+((M+"").length-1))),d)}return xg(l,d)}var eM=cl(function(l,d,g){return d=d.toLowerCase(),l+(g?k0(d):d)});function k0(l){return Yg(Kt(l).toLowerCase())}function A0(l){return l=Kt(l),l&&l.replace(Lm,Pe).replace(wc,"")}function tM(l,d,g){l=Kt(l),d=Jn(d);var E=l.length;g=g===s?E:Qo(bt(g),0,E);var M=g;return g-=d.length,g>=0&&l.slice(g,M)==d}function sM(l){return l=Kt(l),l&&Ho.test(l)?l.replace(Sd,qe):l}function nM(l){return l=Kt(l),l&&Em.test(l)?l.replace(uc,"\\$&"):l}var iM=cl(function(l,d,g){return l+(g?"-":"")+d.toLowerCase()}),rM=cl(function(l,d,g){return l+(g?" ":"")+d.toLowerCase()}),oM=O1("toLowerCase");function aM(l,d,g){l=Kt(l),d=bt(d);var E=d?Vi(l):0;if(!d||E>=d)return l;var M=(d-E)/2;return gf(sf(M),g)+l+gf(tf(M),g)}function lM(l,d,g){l=Kt(l),d=bt(d);var E=d?Vi(l):0;return d&&E<d?l+gf(d-E,g):l}function cM(l,d,g){l=Kt(l),d=bt(d);var E=d?Vi(l):0;return d&&E<d?gf(d-E,g)+l:l}function uM(l,d,g){return g||d==null?d=0:d&&(d=+d),_T(Kt(l).replace(dc,""),d||0)}function dM(l,d,g){return(g?vn(l,d,g):d===s)?d=1:d=bt(d),Sg(Kt(l),d)}function fM(){var l=arguments,d=Kt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var hM=cl(function(l,d,g){return l+(g?"_":"")+d.toLowerCase()});function pM(l,d,g){return g&&typeof g!="number"&&vn(l,d,g)&&(d=g=s),g=g===s?je:g>>>0,g?(l=Kt(l),l&&(typeof d=="string"||d!=null&&!zg(d))&&(d=Jn(d),!d&<(l))?io(gn(l),0,g):l.split(d,g)):[]}var mM=cl(function(l,d,g){return l+(g?" ":"")+Yg(d)});function gM(l,d,g){return l=Kt(l),g=g==null?0:Qo(bt(g),0,l.length),d=Jn(d),l.slice(g,g+d.length)==d}function _M(l,d,g){var E=V.templateSettings;g&&vn(l,d,g)&&(d=s),l=Kt(l),d=$f({},d,E,N1);var M=$f({},d.imports,E.imports,N1),q=Ws(M),z=oe(M,q),J,se,ve=0,be=d.interpolate||Ya,Ae="__p += '",He=lg((d.escape||Ya).source+"|"+be.source+"|"+(be===cc?Pm:Ya).source+"|"+(d.evaluate||Ya).source+"|$","g"),Je="//# sourceURL="+(Yt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ym+"]")+` 62`;l.replace(He,function(ut,At,It,ei,bn,ti){return It||(It=ei),Ae+=l.slice(ve,ti).replace(Za,Ne),At&&(J=!0,Ae+=`' + 63__e(`+At+`) + 64'`),bn&&(se=!0,Ae+=`'; 65`+bn+`; 66__p += '`),It&&(Ae+=`' + 67((__t = (`+It+`)) == null ? '' : __t) + 68'`),ve=ti+ut.length,ut}),Ae+=`'; 69`;var ct=Yt.call(d,"variable")&&d.variable;if(!ct)Ae=`with (obj) { 70`+Ae+` 71} 72`;else if(Om.test(ct))throw new pt(a);Ae=(se?Ae.replace(Ga,""):Ae).replace(_m,"$1").replace(vm,"$1;"),Ae="function("+(ct||"obj")+`) { 73`+(ct?"":`obj || (obj = {}); 74`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(se?`, __j = Array.prototype.join; 75function print() { __p += __j.call(arguments, '') } 76`:`; 77`)+Ae+`return __p 78}`;var wt=T0(function(){return Ht(q,Je+"return "+Ae).apply(s,z)});if(wt.source=Ae,Wg(wt))throw wt;return wt}function vM(l){return Kt(l).toLowerCase()}function bM(l){return Kt(l).toUpperCase()}function yM(l,d,g){if(l=Kt(l),l&&(g||d===s))return ae(l);if(!l||!(d=Jn(d)))return l;var E=gn(l),M=gn(d),q=Ie(E,M),z=Se(E,M)+1;return io(E,q,z).join("")}function wM(l,d,g){if(l=Kt(l),l&&(g||d===s))return l.slice(0,qy(l)+1);if(!l||!(d=Jn(d)))return l;var E=gn(l),M=Se(E,gn(d))+1;return io(E,0,M).join("")}function xM(l,d,g){if(l=Kt(l),l&&(g||d===s))return l.replace(dc,"");if(!l||!(d=Jn(d)))return l;var E=gn(l),M=Ie(E,gn(d));return io(E,M).join("")}function SM(l,d){var g=L,E=Y;if(ms(d)){var M="separator"in d?d.separator:M;g="length"in d?bt(d.length):g,E="omission"in d?Jn(d.omission):E}l=Kt(l);var q=l.length;if(lt(l)){var z=gn(l);q=z.length}if(g>=q)return l;var J=g-Vi(E);if(J<1)return E;var se=z?io(z,0,J).join(""):l.slice(0,J);if(M===s)return se+E;if(z&&(J+=se.length-J),zg(M)){if(l.slice(J).search(M)){var ve,be=se;for(M.global||(M=lg(M.source,Kt(Cd.exec(M))+"g")),M.lastIndex=0;ve=M.exec(be);)var Ae=ve.index;se=se.slice(0,Ae===s?J:Ae)}}else if(l.indexOf(Jn(M),J)!=J){var He=se.lastIndexOf(M);He>-1&&(se=se.slice(0,He))}return se+E}function EM(l){return l=Kt(l),l&&bm.test(l)?l.replace(lc,Q$):l}var CM=cl(function(l,d,g){return l+(g?" ":"")+d.toUpperCase()}),Yg=O1("toUpperCase");function $0(l,d,g){return l=Kt(l),d=g?s:d,d===s?yt(l)?sT(l):og(l):l.match(d)||[]}var T0=Ct(function(l,d){try{return mn(l,s,d)}catch(g){return Wg(g)?g:new pt(g)}}),kM=Er(function(l,d){return On(d,function(g){g=er(g),xr(l,g,Hg(l[g],l))}),l});function AM(l){var d=l==null?0:l.length,g=at();return l=d?rs(l,function(E){if(typeof E[1]!="function")throw new mi(o);return[g(E[0]),E[1]]}):[],Ct(function(E){for(var M=-1;++M<d;){var q=l[M];if(mn(q[0],this,E))return mn(q[1],this,E)}})}function $M(l){return QT(_i(l,p))}function Zg(l){return function(){return l}}function TM(l,d){return l==null||l!==l?d:l}var OM=P1(),MM=P1(!0);function In(l){return l}function Xg(l){return l1(typeof l=="function"?l:_i(l,p))}function PM(l){return u1(_i(l,p))}function DM(l,d){return d1(l,_i(d,p))}var RM=Ct(function(l,d){return function(g){return Fc(g,l,d)}}),IM=Ct(function(l,d){return function(g){return Fc(l,g,d)}});function Jg(l,d,g){var E=Ws(d),M=cf(d,E);g==null&&!(ms(d)&&(M.length||!E.length))&&(g=d,d=l,l=this,M=cf(d,Ws(d)));var q=!(ms(g)&&"chain"in g)||!!g.chain,z=kr(l);return On(M,function(J){var se=d[J];l[J]=se,z&&(l.prototype[J]=function(){var ve=this.__chain__;if(q||ve){var be=l(this.__wrapped__),Ae=be.__actions__=Pn(this.__actions__);return Ae.push({func:se,args:arguments,thisArg:l}),be.__chain__=ve,be}return se.apply(l,Ni([this.value()],arguments))})}),l}function LM(){return _s._===this&&(_s._=lT),this}function Qg(){}function NM(l){return l=bt(l),Ct(function(d){return f1(d,l)})}var VM=Og(rs),FM=Og(Cc),BM=Og($c);function O0(l){return Ng(l)?Oc(er(l)):g3(l)}function UM(l){return function(d){return l==null?s:ea(l,d)}}var qM=R1(),HM=R1(!0);function e_(){return[]}function t_(){return!1}function jM(){return{}}function WM(){return""}function zM(){return!0}function KM(l,d){if(l=bt(l),l<1||l>xe)return[];var g=je,E=rn(l,je);d=at(d),l-=je;for(var M=j(E,d);++g<l;)d(g);return M}function GM(l){return gt(l)?rs(l,er):Qn(l)?[l]:Pn(Z1(Kt(l)))}function YM(l){var d=++oT;return Kt(l)+d}var ZM=mf(function(l,d){return l+d},0),XM=Mg("ceil"),JM=mf(function(l,d){return l/d},1),QM=Mg("floor");function eP(l){return l&&l.length?lf(l,In,gg):s}function tP(l,d){return l&&l.length?lf(l,at(d,2),gg):s}function sP(l){return Wd(l,In)}function nP(l,d){return Wd(l,at(d,2))}function iP(l){return l&&l.length?lf(l,In,yg):s}function rP(l,d){return l&&l.length?lf(l,at(d,2),yg):s}var oP=mf(function(l,d){return l*d},1),aP=Mg("round"),lP=mf(function(l,d){return l-d},0);function cP(l){return l&&l.length?H(l,In):0}function uP(l,d){return l&&l.length?H(l,at(d,2)):0}return V.after=P4,V.ary=a0,V.assign=b8,V.assignIn=w0,V.assignInWith=$f,V.assignWith=y8,V.at=w8,V.before=l0,V.bind=Hg,V.bindAll=kM,V.bindKey=c0,V.castArray=j4,V.chain=i0,V.chunk=Q3,V.compact=eO,V.concat=tO,V.cond=AM,V.conforms=$M,V.constant=Zg,V.countBy=c4,V.create=x8,V.curry=u0,V.curryRight=d0,V.debounce=f0,V.defaults=S8,V.defaultsDeep=E8,V.defer=D4,V.delay=R4,V.difference=sO,V.differenceBy=nO,V.differenceWith=iO,V.drop=rO,V.dropRight=oO,V.dropRightWhile=aO,V.dropWhile=lO,V.fill=cO,V.filter=d4,V.flatMap=p4,V.flatMapDeep=m4,V.flatMapDepth=g4,V.flatten=e0,V.flattenDeep=uO,V.flattenDepth=dO,V.flip=I4,V.flow=OM,V.flowRight=MM,V.fromPairs=fO,V.functions=M8,V.functionsIn=P8,V.groupBy=_4,V.initial=pO,V.intersection=mO,V.intersectionBy=gO,V.intersectionWith=_O,V.invert=R8,V.invertBy=I8,V.invokeMap=b4,V.iteratee=Xg,V.keyBy=y4,V.keys=Ws,V.
78keysIn=Rn,V.map=xf,V.mapKeys=N8,V.mapValues=V8,V.matches=PM,V.matchesProperty=DM,V.memoize=Ef,V.merge=F8,V.mergeWith=x0,V.method=RM,V.methodOf=IM,V.mixin=Jg,V.negate=Cf,V.nthArg=NM,V.omit=B8,V.omitBy=U8,V.once=L4,V.orderBy=w4,V.over=VM,V.overArgs=N4,V.overEvery=FM,V.overSome=BM,V.partial=jg,V.partialRight=h0,V.partition=x4,V.pick=q8,V.pickBy=S0,V.property=O0,V.propertyOf=UM,V.pull=wO,V.pullAll=s0,V.pullAllBy=xO,V.pullAllWith=SO,V.pullAt=EO,V.range=qM,V.rangeRight=HM,V.rearg=V4,V.reject=C4,V.remove=CO,V.rest=F4,V.reverse=Ug,V.sampleSize=A4,V.set=j8,V.setWith=W8,V.shuffle=$4,V.slice=kO,V.sortBy=M4,V.sortedUniq=DO,V.sortedUniqBy=RO,V.split=pM,V.spread=B4,V.tail=IO,V.take=LO,V.takeRight=NO,V.takeRightWhile=VO,V.takeWhile=FO,V.tap=e4,V.throttle=U4,V.thru=wf,V.toArray=v0,V.toPairs=E0,V.toPairsIn=C0,V.toPath=GM,V.toPlainObject=y0,V.transform=z8,V.unary=q4,V.union=BO,V.unionBy=UO,V.unionWith=qO,V.uniq=HO,V.uniqBy=jO,V.uniqWith=WO,V.unset=K8,V.unzip=qg,V.unzipWith=n0,V.update=G8,V.updateWith=Y8,V.values=fl,V.valuesIn=Z8,V.without=zO,V.words=$0,V.wrap=H4,V.xor=KO,V.xorBy=GO,V.xorWith=YO,V.zip=ZO,V.zipObject=XO,V.zipObjectDeep=JO,V.zipWith=QO,V.entries=E0,V.entr
vendor: 5,415 bytes, line 78
78iesIn=C0,V.extend=w0,V.extendWith=$f,Jg(V,V),V.add=ZM,V.attempt=T0,V.camelCase=eM,V.capitalize=k0,V.ceil=XM,V.clamp=X8,V.clone=W4,V.cloneDeep=K4,V.cloneDeepWith=G4,V.cloneWith=z4,V.conformsTo=Y4,V.deburr=A0,V.defaultTo=TM,V.divide=JM,V.endsWith=tM,V.eq=Bi,V.escape=sM,V.escapeRegExp=nM,V.every=u4,V.find=f4,V.findIndex=J1,V.findKey=C8,V.findLast=h4,V.findLastIndex=Q1,V.findLastKey=k8,V.floor=QM,V.forEach=r0,V.forEachRight=o0,V.forIn=A8,V.forInRight=$8,V.forOwn=T8,V.forOwnRight=O8,V.get=Kg,V.gt=Z4,V.gte=X4,V.has=D8,V.hasIn=Gg,V.head=t0,V.identity=In,V.includes=v4,V.indexOf=hO,V.inRange=J8,V.invoke=L8,V.isArguments=na,V.isArray=gt,V.isArrayBuffer=J4,V.isArrayLike=Dn,V.isArrayLikeObject=xs,V.isBoolean=Q4,V.isBuffer=ro,V.isDate=e8,V.isElement=t8,V.isEmpty=s8,V.isEqual=n8,V.isEqualWith=i8,V.isError=Wg,V.isFinite=r8,V.isFunction=kr,V.isInteger=p0,V.isLength=kf,V.isMap=m0,V.isMatch=o8,V.isMatchWith=a8,V.isNaN=l8,V.isNative=c8,V.isNil=d8,V.isNull=u8,V.isNumber=g0,V.isObject=ms,V.isObjectLike=vs,V.isPlainObject=Wc,V.isRegExp=zg,V.isSafeInteger=f8,V.isSet=_0,V.isString=Af,V.isSymbol=Qn,V.isTypedArray=dl,V.isUndefined=h8,V.isWeakMap=p8,V.isWeakSet=m8,V.join=vO,V.kebabCase=iM,V.last=bi,V.lastIndexOf=bO,V.lowerCase=rM,V.lowerFirst=oM,V.lt=g8,V.lte=_8,V.max=eP,V.maxBy=tP,V.mean=sP,V.meanBy=nP,V.min=iP,V.minBy=rP,V.stubArray=e_,V.stubFalse=t_,V.stubObject=jM,V.stubString=WM,V.stubTrue=zM,V.multiply=oP,V.nth=yO,V.noConflict=LM,V.noop=Qg,V.now=Sf,V.pad=aM,V.padEnd=lM,V.padStart=cM,V.parseInt=uM,V.random=Q8,V.reduce=S4,V.reduceRight=E4,V.repeat=dM,V.replace=fM,V.result=H8,V.round=aP,V.runInContext=ee,V.sample=k4,V.size=T4,V.snakeCase=hM,V.some=O4,V.sortedIndex=AO,V.sortedIndexBy=$O,V.sortedIndexOf=TO,V.sortedLastIndex=OO,V.sortedLastIndexBy=MO,V.sortedLastIndexOf=PO,V.startCase=mM,V.startsWith=gM,V.subtract=lP,V.sum=cP,V.sumBy=uP,V.template=_M,V.times=KM,V.toFinite=Ar,V.toInteger=bt,V.toLength=b0,V.toLower=vM,V.toNumber=yi,V.toSafeInteger=v8,V.toString=Kt,V.toUpper=bM,V.trim=yM,V.trimEnd=wM,V.trimStart=xM,V.truncate=SM,V.unescape=EM,V.uniqueId=YM,V.upperCase=CM,V.upperFirst=Yg,V.each=r0,V.eachRight=o0,V.first=t0,Jg(V,(function(){var l={};return Ji(V,function(d,g){Yt.call(V.prototype,g)||(l[g]=d)}),l})(),{chain:!1}),V.VERSION=n,On(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){V[l].placeholder=V}),On(["drop","take"],function(l,d){Mt.prototype[l]=function(g){g=g===s?1:Ns(bt(g),0);var E=this.__filtered__&&!d?new Mt(this):this.clone();return E.__filtered__?E.__takeCount__=rn(g,E.__takeCount__):E.__views__.push({size:rn(g,je),type:l+(E.__dir__<0?"Right":"")}),E},Mt.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),On(["filter","map","takeWhile"],function(l,d){var g=d+1,E=g==Ce||g==he;Mt.prototype[l]=function(M){var q=this.clone();return q.__iteratees__.push({iteratee:at(M,3),type:g}),q.__filtered__=q.__filtered__||E,q}}),On(["head","last"],function(l,d){var g="take"+(d?"Right":"");Mt.prototype[l]=function(){return this[g](1).value()[0]}}),On(["initial","tail"],function(l,d){var g="drop"+(d?"":"Right");Mt.prototype[l]=function(){return this.__filtered__?new Mt(this):this[g](1)}}),Mt.prototype.compact=function(){return this.filter(In)},Mt.prototype.find=function(l){return this.filter(l).head()},Mt.prototype.findLast=function(l){return this.reverse().find(l)},Mt.prototype.invokeMap=Ct(function(l,d){return typeof l=="function"?new Mt(this):this.map(function(g){return Fc(g,l,d)})}),Mt.prototype.reject=function(l){return this.filter(Cf(at(l)))},Mt.prototype.slice=function(l,d){l=bt(l);var g=this;return g.__filtered__&&(l>0||d<0)?new Mt(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),d!==s&&(d=bt(d),g=d<0?g.dropRight(-d):g.take(d-l)),g)},Mt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Mt.prototype.toArray=function(){return this.take(je)},Ji(Mt.prototype,function(l,d){var g=/^(?:filter|find|map|reject)|While$/.test(d),E=/^(?:head|last)$/.test(d),M=V[E?"take"+(d=="last"?"Right":""):d],q=E||/^find/.test(d);M&&(V.prototype[d]=function(){var z=this.__wrapped__,J=E?[1]:arguments,se=z instanceof Mt,ve=J[0],be=se||gt(z),Ae=function(At){var It=M.apply(V,Ni([At],J));return E&&He?It[0]:It};be&&g&&typeof ve=="function"&&ve.length!=1&&(se=be=!1);var He=this.__chain__,Je=!!this.__actions__.length,ct=q&&!He,wt=se&&!Je;if(!q&&be){z=wt?z:new Mt(this);var ut=l.apply(z,J);return ut.__actions__.push({func:wf,args:[Ae],thisArg:s}),new gi(ut,He)}return ct&&wt?l.apply(this,J):(ut=this.thru(Ae),ct?E?ut.value()[0]:ut.value():ut)})}),On(["pop","push","shift","sort","splice","unshift"],function(l){var d=zd[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",E=/^(?:pop|shift)$/.test(l);V.prototype[l]=function(){var M=arguments;if(E&&!this.__chain__){var q=this.value();return d.apply(gt(q)?q:[],M)}return this[g](function(z){return d.apply(gt(z)?z:[],M)})}}),Ji(Mt.prototype,function(l,d){var g=V[d];if(g){var E=g.name+"";Yt.call(ol,E)||(ol[E]=[]),ol[E].push({name:d,func:g})}}),ol[pf(s,C).name]=[{name:"wrapper",func:s}],Mt.prototype.clone=ET,Mt.prototype.reverse=CT,Mt.prototype.value=kT,V.prototype.at=t4,V.prototype.chain=s4,V.prototype.commit=n4,V.prototype.next=i4,V.prototype.plant=o4,V.prototype.reverse=a4,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=l4,V.prototype.first=V.prototype.head,Pc&&(V.prototype[Pc]=r4),V}),nl=nT();_r?((_r.exports=nl)._=nl,el._=nl):_s._=nl}).call(TF)}
78)(cu,cu.exports)),cu.exports}var Eh=OF();const MF=(t,e,s)=>{const n={sections:{},types:{},specialties:{}};["sections","types"].forEach(r=>{t[r].forEach(o=>{n[r][o]=e[r][o]})});const i=r=>{if(!n.specialties[r]){const o=e.disciplines[r];n.specialties[r]=[],t.disciplines.includes(Number(r))&&n.specialties[r].push({id:r,name:`Discipline-wide ${o}`,isDiscipline:!0})}};return t.specialties.forEach(r=>{const o=Object.values(s).find(a=>a.specialties.some(c=>c.id===r));o&&(i(o.discipline.id),n.specialties[o.discipline.id].push({id:r,name:e.specialties[r],isDiscipline:!1}))}),t.disciplines.forEach(r=>i(r)),n},PF=t=>t.reduce((e,s)=>{var n,i;return e[s.id]=(n=s.child_sections)!=null&&n.length?`General ${s.name}`:s.name,(i=s.child_sections)==null||i.forEach(r=>{e[r.id]=r.name}),e},{});function DF(t,e){if(!e||e.length<=2)return!0;const s=e.trim().toLowerCase().split(/\s+/),n=`${t.title} ${t.description}`.toLowerCase();return s.every(i=>n.includes(i))}function RF(t,e){return e.length===0?!0:t.tool_sections?IF(t).some(n=>e.includes(n)):!1}function IF(t){const e=t.tool_sections||[],s=new Set;return e.forEach(n=>{s.add(n.id),n.parent_section&&s.add(n.parent_section.id)}),Array.from(s)}function LF(t,e){return e.length===0?!0:t.tool_type&&e.includes(t.tool_type.id)}function NF(t,e,s){const n=VF(t,s),i=FF(t,e);return s.length>0&&e.length>0?n||i:s.length>0&&e.length==0?n:s.length==0&&e.length>0?i:!0}const QA=t=>{var e,s,n;return{disciplineIds:((e=t.disciplines)==null?void 0:e.map(i=>i.id))||[],specialtyIds:((s=t.specialties)==null?void 0:s.map(i=>i.id))||[],specialtyDisciplineIds:((n=t.specialties)==null?void 0:n.map(i=>i.discipline.id))||[]}};function VF(t,e){if(e.length===0)return!0;if(!t.specialties)return!1;const{specialtyIds:s}=QA(t);return s.some(n=>e.includes(n))}function FF(t,e){if(e.length===0)return!0;if(!t.disciplines)return!1;const{disciplineIds:s,specialtyDisciplineIds:n}=QA(t);return s.some(o=>e.includes(o))?!n.some(o=>e.includes(o)):!1}const za=hi("toolbox",()=>{const t=W([]),e=W([]),s=W([]),n=W([]),i=W([]),r=W(!1),o=W(!1),a=W({search:null,disciplines:[],specialties:[],sections:[],types:[]}),c=te(()=>{const D=B=>Object.fromEntries(B.map(N=>[N.id,N.name]));return{types:D(n.value),specialties:D(s.value),disciplines:Object.fromEntries(Object.values(f.value).map(B=>[B.discipline.id,B.discipline.name])),sections:PF(e.value)}}),f=te(()=>s.value.reduce((D,B)=>{const N=B.discipline_id,F=B.discipline;return D[N]||(D[N]={discipline:{id:F.id,name:F.name},specialties:[]}),D[N].specialties.push({id:B.id,name:B.name}),D},{})),h=te(()=>MF(a.value,c.value,f.value)),p=te(()=>t.value.filter(B=>RF(B,a.value.sections)&&LF(B,a.value.types)&&NF(B,a.value.disciplines,a.value.specialties)&&DF(B,a.value.search)).sort((B,N)=>B.sort_score!==N.sort_score?N.sort_score-B.sort_score:B.title.localeCompare(N.title)));async function m(){r.value=!0;try{const[D,B,N,F,L]=await Promise.all([axios.get("/api/center/tools"),axios.get("/api/center/brand-tool-sections"),axios.get("/api/center/brand-specialties"),axios.get("/api/center/brand-tool-types"),axios.get("/portal/api/tool-vote-summary")]);e.value=B.data.data,s.value=N.data.data,n.value=F.data.data,i.value=L.data.data,t.value=D.data.data.map(Y=>({...Y,sort_score:_(Y)})),O()}finally{r.value=!1}}function _(D){var L,Y;let B=0;D.is_featured&&(B+=1e6);const N=(L=i.value[D.id])==null?void 0:L.upvote_count,F=(Y=i.value[D.id])==null?void 0:Y.downvote_count;return N!=null&&F!=null&&(B+=(N-F)*100),B}function v(D,B,N,F){const L=i.value[D];L?(L.upvote_count=B,L.downvote_count=N,L.user_vote=F):i.value[D]={tool_id:D,upvote_count:B,downvote_count:N,user_vote:F}}async function b(D,B){const F=(D.tool_sections||[]).map(Z=>Z.parent_section?`${Z.parent_section.name} - ${Z.name}`:Z.name).join(", "),L=new FormData;L.append("tool_id",D.id),L.append("sections",F),L.append("title",D.title??""),L.append("direction",B);const{data:Y}=await axios.post("/portal/api/tool-votes",L);v(D.id,Y.upvote_count,Y.downvote_count,Y.user_vote)}async function S(D){const N=(D.tool_sections||[]).map(L=>L.parent_section?`${L.parent_section.name} - ${L.name}`:L.name).join(", "),F=new FormData;F.append("tool_id",D.id),F.append("sections",N),F.append("title",D.title??""),await axios.post("/portal/api/tool-clicks",F)}function C(){const D=new URLSearchParams,B=(F,L)=>L.length?D.set(F,L.join(",")):D.delete(F);B("discipline",a.value.disciplines),B("specialty",a.value.specialties),B("section",a.value.sections),B("type",a.value.types),a.value.search&&a.value.search.trim().length>0?D.set("search",a.value.search.trim()):D.delete("search");const N=D.size?`${window.location.pathname}?${D.toString()}`:window.location.pathname;window.history.pushState({},"",N)}function O(){const D=new URLSearchParams(window.location.search),B=N=>{var F;return((F=D.get(N))==null?void 0:F.split(",").map(Number))||[]};a.value.disciplines=B("discipline"),a.value.specialties=B("specialty"),a.value.sections=B("section"),a.value.types=B("type"),a.value.search=D.get("search")||null,o.value=!0}function A(D,B=!0){const N=D.id,F=f.value[N].specialties.map(L=>L.id);B?(a.value.specialties=Eh.uniq([...a.value.specialties,...F]),a.value.disciplines=Eh.uniq([...a.value.disciplines,N])):(a.value.specialties=a.value.specialties.filter(L=>!F.includes(L)),a.value.disciplines=a.value.disciplines.filter(L=>L!==N)),C()}function $(D,B=!0){var F;const N=[D.id,...((F=D.child_sections)==null?void 0:F.map(L=>L.id))||[]];B?a.value.sections=Eh.uniq([...a.value.sections,...N]):a.value.sections=a.value.sections.filter(L=>!N.includes(L)),C()}function T(){a.value={search:null,disciplines:[],specialties:[],sections:[],types:[]},C()}return window.addEventListener("popstate",()=>O()),{tools:t,toolSections:e,toolSpecialties:s,toolTypes:n,loading:r,appliedFilters:a,filterLookup:c,isHydrated:o,toolVotes:i,filteredTools:p,specialtiesByDiscipline:f,selectionsAsLabels:h,fetchAllData:m,updateUrl:C,toggleDiscipline:A,toggleSection:$,clearAllFilters:T,vote:b,trackClick:S,resetFilterByKey:(D,B)=>{a.value[D]=a.value[D].filter(N=>N!=B),C()},resetSearch:()=>a.value.search=null}}),BF={class:"d-flex flex-wrap gap-2 align-items-center list-inline m-0 p-0"},UF={key:0},qF=["onClick"],HF=["onClick"],jF={class:"text-muted me-1"},WF={__name:"ActiveFilterChips",setup(t){const e=za(),{appliedFilters:s,selectionsAsLabels:n}=Qe(e),i=[{key:"sections",label:"Section"},{key:"types",label:"Type"}];return(r,o)=>(y(),x("ul",BF,[w(s).search?(y(),x("li",UF,[u("button",{class:"btn bg-light btn-sm rounded-pill border",onClick:o[0]||(o[0]=(...a)=>w(e).resetSearch&&w(e).resetSearch(...a))},[o[1]||(o[1]=u("span",{class:"text-muted me-1"},"Search:",-1)),re(" "+P(w(s).search)+" ",1),o[2]||(o[2]=u("i",{class:"bi bi-x-lg ms-2 small"},null,-1))])])):ie("",!0),(y(!0),x(G,null,ge(w(n).specialties,(a,c)=>(y(),x(G,{key:c},[(y(!0),x(G,null,ge(a,f=>(y(),x("li",{key:f.isDiscipline?"d"+f.id:"s"+f.id},[u("button",{class:"btn bg-light btn-sm rounded-pill border",onClick:h=>w(e).resetFilterByKey(f.isDiscipline?"disciplines":"specialties",f.id)},[o[3]||(o[3]=u("span",{class:"text-muted me-1"}
78,"Specialty:",-1)),re(" "+P(f.name)+" ",1),o[4]||(o[4]=u("i",{class:"bi bi-x-lg ms-2 small"},null,-1))],8,qF)]))),128))],64))),128)),(y(),x(G,null,ge(i,a=>(y(),x(G,{key:a.key},[(y(!0),x(G,null,ge(w(n)[a.key],(c,f)=>(y(),x("li",{key:a.key+f},[u("button",{class:"btn bg-light btn-sm rounded-pill border",onClick:h=>w(e).resetFilterByKey(a.key,f)},[u("span",jF,P(a.label)+":",1),re(" "+P(c)+" ",1),o[5]||(o[5]=u("i",{class:"bi bi-x-lg ms-2 small"},null,-1))],8,HF)]))),128))],64))),64))]))}},zF={class:"form-check"},KF=["id"],GF=["for"],YF={key:0,class:"ms-4"},ZF={class:"form-check d-flex align-items-center gap-2"},XF=["id","value"],JF=["for"],QF={class:"visually-hidden"},eB=["id","value"],tB=["for"],sB={__name:"DisciplineSpecialtyFilter",props:{disciplineSpecialties:{type:Object,required:!0}},setup(t){const e=t,s=za(),{appliedFilters:n}=Qe(s),i=W(null),r=te(()=>e.disciplineSpecialties.specialties.map(_=>_.id)),o=te(()=>e.disciplineSpecialties.discipline.id),a=te(()=>r.value.filter(_=>n.value.specialties.includes(_)).length),c=te(()=>n.value.disciplines.includes(o.value)),f=te(()=>c.value&&a.value===r.value.length),h=te(()=>{const _=a.value>0;return(c.value||_)&&!f.value}),p=te({get:()=>f.value,set:_=>s.toggleDiscipline(e.disciplineSpecialties.discipline,_)}),m=()=>{i.value&&(i.value.indeterminate=h.value)};return Ds(m),Et([f,h],m),(_,v)=>(y(),x(G,null,[u("div",zF,[Ge(u("input",{type:"checkbox",class:"form-check-input border border-secondary",id:"discipline-"+t.disciplineSpecialties.discipline.id,"onUpdate:modelValue":v[0]||(v[0]=b=>p.value=b),ref_key:"parentCheckbox",ref:i},null,8,KF),[[en,p.value]]),u("label",{for:"discipline-"+t.disciplineSpecialties.discipline.id,class:"form-check-label fw-bold"},P(t.disciplineSpecialties.discipline.name),9,GF)]),t.disciplineSpecialties.specialties.length>0?(y(),x("div",YF,[u("div",ZF,[Ge(u("input",{type:"checkbox",class:"form-check-input border border-secondary",id:t.disciplineSpecialties.discipline.name+"-wide",value:t.disciplineSpecialties.discipline.id,"onUpdate:modelValue":v[1]||(v[1]=b=>w(n).disciplines=b),onChange:v[2]||(v[2]=(...b)=>w(s).updateUrl&&w(s).updateUrl(...b))},null,40,XF),[[en,w(n).disciplines,void 0,{number:!0}]]),u("label",{for:t.disciplineSpecialties.discipline.name+"-wide",class:"form-check-label"},[v[5]||(v[5]=re(" Discipline-wide ")),u("span",QF,"for "+P(t.disciplineSpecialties.discipline.name),1)],8,JF)]),(y(!0),x(G,null,ge(t.disciplineSpecialties.specialties,b=>(y(),x("div",{key:b.id,class:"form-check"},[Ge(u("input",{type:"checkbox",class:"form-check-input border border-secondary",id:"specialty-"+b.id,value:b.id,"onUpdate:modelValue":v[3]||(v[3]=S=>w(n).specialties=S),onChange:v[4]||(v[4]=(...S)=>w(s).updateUrl&&w(s).updateUrl(...S))},null,40,eB),[[en,w(n).specialties,void 0,{number:!0}]]),u("label",{for:"specialty-"+b.id,class:"form-check-label"},P(b.name),9,tB)]))),128))])):ie("",!0)],64))}},nB={class:"form-check"},iB=["id"],rB=["for"],oB={key:0,class:"ms-4"},aB={class:"form-check"},lB=["id","value"],cB=["for"],uB=["id","value"],dB=["for"],fB={__name:"ToolSectionFilter",props:{section:{type:Object,required:!0}},setup(t){const e=t,s=za(),{appliedFilters:n}=Qe(s),i=W(null),r=te(()=>{var p;return[e.section.id,...((p=e.section.child_sections)==null?void 0:p.map(m=>m.id))||[]]}),o=te(()=>r.value.filter(p=>n.value.sections.includes(p)).length),a=te(()=>o.value===r.value.length),c=te(()=>o.value>0&&!a.value),f=te({get:()=>a.value,set:p=>s.toggleSection(e.section,p)}),h=()=>{i.value&&(i.value.indeterminate=c.value)};return Ds(h),Et([a,c],h),(p,m)=>{var _;return y(),x(G,null,[u("div",nB,[Ge(u("input",{type:"checkbox",class:"form-check-input border border-secondary",id:"section-"+t.section.id,"onUpdate:modelValue":m[0]||(m[0]=v=>f.value=v),ref_key:"parentCheckbox",ref:i},null,8,iB),[[en,f.value]]),u("label",{for:"section-"+t.section.id,class:"form-check-label fw-bold"},P(t.section.name),9,rB)]),(_=t.section.child_sections)!=null&&_.length?(y(),x("div",oB,[u("div",aB,[Ge(u("input",{type:"checkbox",class:"form-check-input border border-secondary",id:t.section.name+"-wide",value:t.section.id,"onUpdate:modelValue":m[1]||(m[1]=v=>w(n).sections=v),onChange:m[2]||(m[2]=(...v)=>w(s).updateUrl&&w(s).updateUrl(...v))},null,40,lB),[[en,w(n).sections,void 0,{number:!0}]]),u("label",{for:t.section.name+"-wide",class:"form-check-label"}," General "+P(t.section.name),9,cB)]),(y(!0),x(G,null,ge(t.section.child_sections,v=>(y(),x("div",{key:v.id,class:"form-check"},[Ge(u("input",{type:"checkbox",class:"form-check-input border border-secondary",id:"section-"+v.id,value:v.id,"onUpdate:modelValue":m[3]||(m[3]=b=>w(n).sections=b),onChange:m[4]||(m[4]=(...b)=>w(s).updateUrl&&w(s).updateUrl(...b))},null,40,uB),[[en,w(n).sections,void 0,{number:!0}]]),u("label",{for:"section-"+v.id,class:"form-check-label"},P(v.name),9,dB)]))),128))])):ie("",!0)],64)}}},hB={class:"form-check"},pB=["id","value"],mB=["for"],gB={__name:"ToolTypeFilter",props:{type:{type:Object,required:!0}},setup(t){const e=za(),{appliedFilters:s}=Qe(e);return(n,i)=>(y(),x("div",hB,[Ge(u("input",{type:"checkbox",class:"form-check-input border border-secondary",id:"type-"+t.type.id,value:t.type.id,"onUpdate:modelValue":i[0]||(i[0]=r=>w(s).types=r),onChange:i[1]||(i[1]=(...r)=>w(e).updateUrl&&w(e).updateUrl(...r))},null,40,pB),[[en,w(s).types,void 0,{number:!0}]]),u("label",{for:"type-"+t.type.id,class:"form-check-label"}
78,P(t.type.name),9,mB)]))}},ds=(t,e)=>{const s=t.__vccOpts||t;for(const[n,i]of e)s[n]=i;return s},_B={class:"accordion mb-2"},vB={class:"accordion-item border"},bB=["id"],yB=["aria-controls","aria-expanded"],wB={class:"fw-bold"},xB={key:0,class:"badge rounded-pill bg-primary ms-1"},SB={xmlns:"http://www.w3.org/2000/svg",width:"18px",height:"18px",fill:"none",viewBox:"0 0 24 24",role:"presentation",class:"text-muted"},EB={key:0,d:"M6 12L18 12",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},CB={key:1,d:"M12 6V18M6 12H18",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},kB=["id","aria-labelledby"],AB={__name:"FilterAccordion",props:Nt({title:{type:String,required:!0},filterCount:{type:Number,default:0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=Fh(),n=Fh();function i(){e.value=!e.value}return(r,o)=>(y(),x("div",_B,[u("div",vB,[u("h3",{class:"accordion-header",id:w(s)},[u("button",{"aria-controls":w(n),"aria-expanded":e.value,type:"button",class:"w-100 btn d-flex flex-row justify-content-between align-items-center py-2 px-3 bg-light text-start border-0",onClick:i},[u("span",wB,[re(P(t.title)+" ",1),t.filterCount?(y(),x("span",xB,P(t.filterCount),1)):ie("",!0)]),(y(),x("svg",SB,[e.value?(y(),x("path",EB)):(y(),x("path",CB))]))],8,yB)],8,bB),Ge(u("div",{id:w(n),class:"accordion-collapse px-3 py-2 border-top",role:"region","aria-labelledby":w(s)},[Ft(r.$slots,"panel",{},void 0,!0)],8,kB),[[ks,e.value]])])]))}},L_=ds(AB,[["__scopeId","data-v-c970592c"]]),$B={class:"sticky-md-top overflow-auto d-flex flex-column gap-3 px-3 stable-gutter"},TB={class:"form-group"},OB={class:"input-group"},MB={class:"accordion-container d-flex flex-column gap-2"},PB={__name:"FilterSidebar",setup(t){const e=za(),{appliedFilters:s,specialtiesByDiscipline:n,toolSections:i,toolTypes:r,isHydrated:o}=Qe(e),a=W({specialties:!1,sections:!1,types:!1}),c=te(()=>s.value.specialties.length+s.value.disciplines.length),f=Eh.debounce(()=>{console.log("bounce"),e.updateUrl()},500),h=Et(()=>o.value,p=>{p&&(a.value.specialties=!!c.value,a.value.sections=!!s.value.sections.length,a.value.types=!!s.value.types.length,h())});return Et(()=>s.value.search,p=>{f()}),(p,m)=>(y(),x("aside",$B,[m[6]||(m[6]=u("h2",{class:"fs-5 border-bottom pb-2"},"Filters",-1)),u("div",TB,[m[5]||(m[5]=u("label",{for:"search",class:"form-label small fw-bold text-muted"},"Search Tools",-1)),u("div",OB,[m[4]||(m[4]=u("span",{class:"input-group-text bg-white border-end-0"},[u("i",{class:"bi bi-search"})],-1)),Ge(u("input",{type:"text",class:"form-control border-start-0 ps-0",id:"search","onUpdate:modelValue":m[0]||(m[0]=_=>w(s).search=_),placeholder:"Keyword..."},null,512),[[Pi,w(s).search,void 0,{trim:!0}]])])]),u("div",MB,[U(L_,{title:"Disciplines & Specialties",modelValue:a.value.specialties,"onUpdate:modelValue":m[1]||(m[1]=_=>a.value.specialties=_),"filter-count":c.value},{panel:Fe(()=>[(y(!0),x(G,null,ge(w(n),_=>(y(),tt(sB,{key:_.discipline.id,"discipline-specialties":_},null,8,["discipline-specialties"]))),128))]),_:1},8,["modelValue","filter-count"]),U(L_,{title:"Tool Sections",modelValue:a.value.sections,"onUpdate:modelValue":m[2]||(m[2]=_=>a.value.sections=_),"filter-count":w(s).sections.length},{panel:Fe(()=>[(y(!0),x(G,null,ge(w(i),_=>(y(),tt(fB,{key:_.id,section:_},null,8,["section"]))),128))]),_:1},8,["modelValue","filter-count"]),U(L_,{title:"Tool Types",modelValue:a.value.types,"onUpdate:modelValue":m[3]||(m[3]=_=>a.value.types=_),"filter-count":w(s).types.length},{panel:Fe(()=>[(y(!0),x(G,null,ge(w(r),_=>(y(),tt(gB,{key:_.id,type:_},null,8,["type"]))),128))]),_:1},8,["modelValue","filter-count"])])]))}},DB=ds(PB,[["__scopeId","data-v-a44124d7"]]),RB=["width","height"],IB=["id"],LB=["fill"],NB={__name:"IconBase",props:{iconName:{type:String,default:"box"},width:{type:[Number,String],default:18},height:{type:[Number,String],default:18},iconColor:{type:String,default:"currentColor"}},setup(t){return(e,s)=>(y(),x("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,viewBox:"0 0 24 24","aria-hidden":"true"},[u("title",{id:t.iconName,lang:"en"},P(t.iconName)+" icon",9,IB),u("g",{fill:t.iconColor},[Ft(e.$slots,"default",{},void 0,!0)],8,LB)],8,RB))}},cr=ds(NB,[["__scopeId","data-v-45c6e335"]]),VB={};function FB(t,e){return y(),x(G,null,[e[0]||(e[0]=u("path",{d:"M12 3a1 1 0 0 1 1 1v9.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414L11 13.586V4a1 1 0 0 1 1-1Z",fill:"currentColor"},null,-1)),e[1]||(e[1]=u("path",{d:"M6 17a1 1 0 1 0-2 0v.6C4 19.482 5.518 21 7.4 21h9.2c1.882 0 3.4-1.518 3.4-3.4V17a1 1 0 1 0-2 0v.6c0 .778-.622 1.4-1.4 1.4H7.4c-.778
780-1.4-.622-1.4-1.4V17Z",fill:"currentColor"},null,-1))],64)}const BB=ds(VB,[["render",FB]]),UB={},qB={d:"M10.0002 5H8.2002C7.08009 5 6.51962 5 6.0918 5.21799C5.71547 5.40973 5.40973 5.71547 5.21799 6.0918C5 6.51962 5 7.08009 5 8.2002V15.8002C5 16.9203 5 17.4801 5.21799 17.9079C5.40973 18.2842 5.71547 18.5905 6.0918 18.7822C6.5192 19 7.07899 19 8.19691 19H15.8031C16.921 19 17.48 19 17.9074 18.7822C18.2837 18.5905 18.5905 18.2839 18.7822 17.9076C19 17.4802 19 16.921 19 15.8031V14M20 9V4M20 4H15M20 4L13 11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"};function HB(t,e){return y(),x("path",qB)}const jB=ds(UB,[["render",HB]]),WB=["fill"],zB=["fill"],KB=["fill"],GB={__name:"IconThumbsDown",props:{filled:{type:Boolean,default:!1}},setup(t){return(e,s)=>(y(),x(G,null,[u("path",{d:"M21 14C21 14.5523 20.5523 15 20 15H17V3H20C20.5523 3 21 3.44772 21 4V14Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",fill:t.filled?"currentColor":"none","fill-opacity":"0.4"},null,8,WB),u("path",{d:"M17 13V5L15.0077 3.6718C14.3506 3.23375 13.5786 3 12.7889 3H7.54138C6.07486 3 4.82329 4.06024 4.5822 5.5068L3.38813 12.6712C3.18496 13.8903 4.12504 15 5.36092 15H10",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",fill:t.filled?"currentColor":"none","fill-opacity":"0.4"},null,8,zB),u("path",{d:"M10 15L9.31283 18.4358C9.13411 19.3294 9.64876 20.2163 10.5133 20.5044V20.5044C11.3664 20.7888 12.2987 20.4026 12.7008 19.5983L16 13H17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",fill:t.filled?"currentColor":"none","fill-opacity":"0.4"},null,8,KB)],64))}},YB=["fill"],ZB=["fill"],XB=["fill"],JB={__name:"IconThumbsUp",props:{filled:{type:Boolean,default:!1}},setup(t){return(e,s)=>(y(),x(G,null,[u("path",{d:"M3 10C3 9.44772 3.44772 9 4 9H7V21H4C3.44772 21 3 20.5523 3 20V10Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",fill:t.filled?"currentColor":"none","fill-opacity":"0.4"},null,8,YB),u("path",{d:"M7 11V19L8.9923 20.3282C9.64937 20.7662 10.4214 21 11.2111 21H16.4586C17.9251 21 19.1767 19.9398 19.4178 18.4932L20.6119 11.3288C20.815 10.1097 19.875 9 18.6391 9H14",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",fill:t.filled?"currentColor":"none","fill-opacity":"0.4"},null,8,ZB),u("path",{d:"M14 9L14.6872 5.56415C14.8659 4.67057 14.3512 3.78375 13.4867 3.49558V3.49558C12.6336 3.21122 11.7013 3.59741 11.2992 4.4017L8 11H7",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",fill:t.filled?"currentColor":"none","fill-opacity":"0.4"},null,8,XB)],64))}},QB={class:"d-flex flex-column bg-white border shadow-sm hover-bg-whitesmoke mb-4 w-100 text-left tool-card"},eU={class:"d-flex flex-row"},tU={key:0,class:"p-4 flex-shrink-0"},sU=["src"],nU={class:"p-4 flex-grow-1 text-start"},iU={class:"text-open-sans small text-muted mb-2"},rU={key:0,class:"badge bg-primary me-2"},oU={class:"text-open-sans fs-6 fw-bold mb-1"},aU={class:"text-open-sans mb-0"},lU={class:"d-flex justify-content-between align-items-center w-100 px-4 py-2 border-top bg-light-subtle"},cU={class:"d-flex flex-row gap-3"},uU={class:"d-flex align-items-center"},dU={class:"small fw-bold"},fU={class:"d-flex align-items-center"},hU={class:"small fw-bold"},pU={class:"d-flex gap-4"},mU=["href"],gU=["href"],_U={__name:"Tool",props:{tool:{type:Object,required:!0}},setup(t){const e=t,s=za(),n=te(()=>`/api/center/tools/${e.tool.id}/download`),i=te(()=>e.tool.tool_section?`/images/${e.tool.tool_section.effective_icon_path}`:null),r=te(()=>(e.tool.tool_sections||[]).map(c=>c.parent_section?`${c.parent_section.name} - ${c.name}`:c.name).join(", ")),o=te(()=>{var c,f;const a=[];return(c=e.tool.disciplines)!=null&&c.length&&a.push(`Discipline: ${e.tool.disciplines.map(h=>h.name).join(", ")}`),(f=e.tool.specialties)!=null&&f.length&&a.push(`Specialty: ${e.tool.specialties.map(h=>h.name).join(", ")}`),r.value&&a.push(`Section: ${r.value}`),e.tool.tool_type&&a.push(`Type: ${e.tool.tool_type.name}`),e.tool.has_fee&&a.push("$"),a.join(" | ")});return(a,c)=>{var f,h;return y(),x("div",QB,[u("div",eU,[i.value?(y(),x("div",tU,[u("img",{src:i.value,width:"75",alt:"",loading:"lazy"},null,8,sU)])):ie("",!0),u("div",nU,[u("p",iU,[t.tool.is_featured?(y(),x("span",rU,"Featured")):ie("",!0),re(" "+P(o.value),1)]),u("h3",oU,P(t.tool.title),
781),u("p",aU,P(t.tool.description),1)])]),u("div",lU,[u("div",cU,[u("div",uU,[u("button",{class:"btn btn-sm btn-link p-1 me-1 text-decoration-none","aria-label":"Upvote",onClick:c[0]||(c[0]=p=>w(s).vote(t.tool,"up"))},[U(cr,{width:"20",height:"20","icon-name":"thumbs-up"},{default:Fe(()=>{var p;return[U(JB,{filled:((p=w(s).toolVotes[t.tool.id])==null?void 0:p.user_vote)=="1"},null,8,["filled"])]}),_:1})]),u("span",dU,P(((f=w(s).toolVotes[t.tool.id])==null?void 0:f.upvote_count)??"0"),1)]),u("div",fU,[u("button",{class:"btn btn-sm btn-link p-1 me-1 text-decoration-none","aria-label":"Downvote",onClick:c[1]||(c[1]=p=>w(s).vote(t.tool,"down"))},[U(cr,{width:"20",height:"20","icon-name":"thumbs-down"},{default:Fe(()=>{var p;return[U(GB,{filled:((p=w(s).toolVotes[t.tool.id])==null?void 0:p.user_vote)=="-1"},null,8,["filled"])]}),_:1})]),u("span",hU,P(((h=w(s).toolVotes[t.tool.id])==null?void 0:h.downvote_count)??"0"),1)])]),u("div",pU,[t.tool.url?(y(),x("a",{key:0,href:t.tool.url,target:"_blank",class:"tool-link",onClick:c[2]||(c[2]=p=>w(s).trackClick(t.tool))},[U(cr,{width:"18",height:"18","icon-name":"external-link",class:"me-1"},{default:Fe(()=>[U(jB)]),_:1}),c[4]||(c[4]=re(" Visit Site "))],8,mU)):ie("",!0),t.tool.file_name?(y(),x("a",{key:1,href:n.value,class:"tool-link",onClick:c[3]||(c[3]=p=>w(s).trackClick(t.tool)),download:""},[U(cr,{width:"18",height:"18","icon-name":"download",class:"me-1"},{default:Fe(()=>[U(BB)]),_:1}),re(" Download ("+P(t.tool.readable_file_size_bytes)+") ",1)],8,gU)):ie("",!0)])])])}}},vU=ds(_U,[["__scopeId","data-v-c26e5c18"]]),bU={},yU={class:"d-flex flex-column bg-light-subtle border shadow-sm w-100 text-left mb-4"};function wU(t,e){return y(),x("div",yU,e[0]||(e[0]=[ci('<div class="d-flex flex-row"><div class="p-4" style="background-color:#e0e0e0;width:75px;height:75px;"></div><div class="p-4 flex-grow-1 text-start"><div class="placeholder-glow"><span class="placeholder col-10 mb-3"></span><span class="placeholder col-7 mx-1"></span><span class="placeholder col-3 mx-1"></span><span class="placeholder col-5 mx-1"></span><span class="placeholder col-4 mx-1"></span><span class="placeholder col-6 mx-1"></span></div><div class="flex-grow-1 text-end"><div class="placeholder-glow"><span class="placeholder bg-primary col-1 mx-1"></span><span class="placeholder col-2 mx-1"></span></div></div></div></div>',1)]))}const xU=ds(bU,[["render",wU]]),SU={class:"container-fluid px-4"},EU={class:"row"},CU={class:"col-12 col-md-3 p-0 mb-4 mb-lg-0"},kU={class:"col-12 col-md-9",id:"tool-results"},AU={class:"d-flex flex-row"},$U={class:"d-flex flex-wrap gap-2 align-items-center mb-3"},TU={key:0},OU={key:1},MU={key:2,class:"text-center p-5 bg-light border rounded"},PU={__name:"ToolboxToolList",setup(t){const e=za(),{loading:s,filteredTools:n,appliedFilters:i}=Qe(e),r=te(()=>{const f=n.value.length;return f==1?"1 result":`${f} results`}),o=te(()=>Object.values(i.value).some(f=>(f==null?void 0:f.length)>0)),a=W(null);function c(){e.clearAllFilters(),Xr(()=>{var f;(f=a.value)==null||f.focus()})}return Ds(()=>e.fetchAllData()),(f,h)=>(y(),x("div",SU,[h[1]||(h[1]=u("a",{href:"#tool-results",class:"skip-link visually-hidden-focusable mb-3 d-block"}," Skip to results ",-1)),h[2]||(h[2]=u("div",{class:"row"},[u("div",{class:"col-12 text-center"},[u("h1",{class:"fs-3"},"Toolbox Tools")])],-1)),u("div",EU,[u("div",CU,[U(DB)]),u("div",kU,[u("div",AU,[u("div",$U,[u("span",{"aria-live":"polite",tabindex:"-1",ref_key:"resultsHeading",ref:a},P(r.value),513),o.value?(y(),tt(WF,{key:0})):ie("",!0),o.value?(y(),x("button",{key:1,class:"btn btn-link btn-sm p-0 text-decoration-none",onClick:c}," clear all ")):ie("",!0)])]),w(s)?(y(),x("div",TU,[(y(),x(G,null,ge(3,p=>U(xU,{key:p})),64))])):w(n).length>0?(y(),x("div",OU,[(y(!0),x(G,null,ge(w(n),p=>(y(),tt(vU,{key:p.id,tool:p},null,8,["tool"]))),128))])):(y(),x("div",MU,h[0]||(h[0]=[u("i",{class:"bi bi-search fs-1 text-muted"},null,-1),u("p",{class:"mt-2"},"No tools match your current filters.",-1)])))])])]))}};function im(t,e,s,n){const i=W([]),r=W([]),o=W(!1),a=W("asc"),c=W(e),f=W(25),h=W(1),p=W(""),m=W(s),_=JSON.parse(JSON.stringify(w(s)));async function v(){try{o.value=!0;
78const A=new URLSearchParams({page:w(h),limit:w(f),orderDirection:w(a),orderBy:c.value.orderField});w(p)&&A.append("search",w(p));for(const T in w(m)){const D=w(m)[T];typeof D=="string"&&D.length>0||typeof D=="number"&&D!==null?A.append(T,D):typeof D=="object"&&D!==null&&D.length>0?Object.values(D).forEach(B=>{A.append(`${T}[]`,B)}):A.append(T,"")}const $=await Lt.get(`${t}?${A}`);i.value=n?$.data.data.map(n):$.data.data,r.value={...$.data.meta,params:{page:w(h),limit:w(f),orderDirection:w(a),orderBy:c.value.orderField,searchText:w(p),filters:{...w(m)}}},window.scrollTo({top:0,left:0,behavior:"instant"})}catch{}finally{o.value=!1}}function b(A){(Array.isArray(A)?A:[A]).forEach(T=>{_.hasOwnProperty(T)&&m.value.hasOwnProperty(T)&&(m.value[T]=_[T])}),h.value=1,v()}function S(){h.value=1,v()}function C(){h.value=1,v()}function O(A){h.value=1,p.value=A,v()}return Et(f,async A=>{h.value=1,v()}),Et(h,async A=>{v()}),{items:i,meta:r,isLoading:o,orderDirection:a,orderBy:c,perPage:f,currentPage:h,searchText:p,filters:m,fetchData:v,filterUpdateHandler:S,resetFiltersHandler:b,sortUpdateHandler:C,searchUpdateHandler:O,filterUpdateHandler:S}}const DU={class:"row"},RU={class:"col-12"},IU={class:"input-group"},LU={class:"col-12"},NU={id:"searchHelp",class:"form-text text-body fst-italic"},VU={__name:"Search",props:Nt({searchCriteria:{type:Array,default:["id"]}},{searchText:{},searchTextModifiers:{}}),emits:Nt(["search"],["update:searchText"]),setup(t,{emit:e}){const s=e,n=Gt(t,"searchText");function i(){s("search")}return(r,o)=>(y(),x("div",DU,[u("div",RU,[u("form",{onSubmit:st(i,["prevent"]),role:"search"},[u("div",IU,[Ge(u("input",{type:"text",role:"searchbox",class:"form-control form-control-sm","aria-label":"Search table","onUpdate:modelValue":o[0]||(o[0]=a=>n.value=a),name:"search_text","aria-describedby":"searchHelp"},null,512),[[Pi,n.value]]),o[1]||(o[1]=u("button",{class:"btn btn-outline-primary btn-sm",type:"submit"},"Search",-1))])],32)]),u("div",LU,[u("div",NU,"Search by "+P(t.searchCriteria.join(", ")),1)])]))}},FU={class:"dropdown"},BU={class:"btn btn-outline-secondary btn-sm border-1 dropdown-toggle",type:"button","data-bs-toggle":"dropdown","data-bs-auto-close":"outside","aria-expanded":"false",ref:"dropdown-button"},UU={key:0,class:"fw-bold"},qU={class:"dropdown-menu dropdown-menu-lg-end dropdown-menu-start text-nowrap p-0"},HU={class:"options-container px-4 py-3"},jU={class:"visually-hidden"},WU={class:"form-check"},zU=["value","id"],KU=["for"],GU={__name:"CheckboxFilter",props:Nt({filter:{type:Object,required:!0},appliedFilters:{type:Object,default:{}}},{modelValue:{},modelModifiers:{}}),emits:Nt(["updateFilter"],["update:modelValue"]),setup(t,{emit:e}){const s=Gt(t,"modelValue"),n=e,i=zp("dropdown-button");let r=null;function o(){n("updateFilter"),r==null||r.hide()}return Ds(()=>{i.value&&(r=new Ai(i.value))}),(a,c)=>{var f,h;return y(),x("div",FU,[u("button",BU,[re(P(t.filter.label)+" ",1),(f=t.appliedFilters[t.filter.model])!=null&&f.length?(y(),x("span",UU,"("+P((h=t.appliedFilters[t.filter.model])==null?void 0:h.length)+")",1)):ie("",!0)],512),u("div",qU,[u("form",{onSubmit:st(o,["prevent"]),class:"d-flex flex-column"},[u("div",HU,[u("fieldset",null,[u("legend",jU,P(t.filter.label),1),(y(!0),x(G,null,ge(t.filter.options,(p,m)=>(y(),x("div",{key:`option_${m}`},[u("div",WU,[Ge(u("input",{class:"form-check-input border-secondary",type:"checkbox",value:p.value,"onUpdate:modelValue":c[0]||(c[0]=_=>s.value=_),id:`${t.filter.model}_${p.value}`},null,8,zU),[[en,s.value]]),u("label",{class:"form-check-label",for:`${t.filter.model}_${p.value}`},P(p.text),9,KU)])]))),128))])]),c[1]||(c[1]=u("div",{class:"dropdown-footer p-3 border-top bg-light flex-shrink-0"},[u("button",{type:"submit",class:"btn btn-sm btn-primary w-100"},"Apply")],-1))],32)])])}}},YU=ds(GU,[["__scopeId","data-v-ae789643"]]),ZU={class:"dropdown"},XU={class:"btn btn-outline-secondary btn-sm dropdown-toggle border-1 w-100",type:"button","data-bs-toggle":"dropdown","data-bs-auto-close":"outside","aria-expanded":"false",ref:"dropdown-button"},JU={key:0,class:"fw-bold"},QU={class:"dropdown-menu dropdown-menu-lg-end dropdown-menu-start text-nowrap p-0"},eq={class:"options-container px-4 py-3"},tq={class:"visually-hidden"},sq={class:"form-check mb-2"},nq=["value","id"],iq=["for"],rq={__name:"RadioFilter",props:Nt({filter:{type:Object,required:!0},appliedFilters:{type:Object,default:{}}},{modelValue:{},modelModifiers:{}}),emits:Nt(["updateFilter"],["update:modelValue"]),setup(t,{emit:e}){const s=t,n=Gt(t,"modelValue"),i=e,r=zp("dropdown-button");let o=null;function a(){i("updateFilter"),o==null||o.hide()}const c=te(()=>{var f;return(f=s.filter.options.find(h=>h.value==s.appliedFilters[s.filter.model]))==null?void 0:f.text});return Ds(()=>{r.value&&(o=new Ai(r.value))}),(f,h)=>(y(),x("div",ZU,[u("button",XU,[re(P(t.filter.label),1),t.appliedFilters[t.filter.model]!==void 0?(y(),x("span",JU,": "+P
78(c.value),1)):ie("",!0)],512),u("div",QU,[u("form",{onSubmit:st(a,["prevent"]),class:"d-flex flex-column"},[u("div",eq,[u("fieldset",null,[u("legend",tq,P(t.filter.label),1),(y(!0),x(G,null,ge(t.filter.options,(p,m)=>(y(),x("div",{key:`${t.filter.model}_option_${m}`},[u("div",sq,[Ge(u("input",{class:"form-check-input border-secondary",type:"radio",value:p.value,"onUpdate:modelValue":h[0]||(h[0]=_=>n.value=_),id:`${t.filter.model}_${p.value}`},null,8,nq),[[Ps,n.value]]),u("label",{class:"form-check-label",for:`${t.filter.model}_${p.value}`},P(p.text),9,iq)])]))),128))])]),h[1]||(h[1]=u("div",{class:"dropdown-footer p-3 border-top bg-light flex-shrink-0"},[u("button",{type:"submit",class:"btn btn-sm btn-primary w-100"},"Apply")],-1))],32)])]))}},oq=ds(rq,[["__scopeId","data-v-3273b58d"]]),aq={class:"d-flex flex-column flex-md-row gap-3 flex-md-wrap mx-auto justify-content-md-end"},lq={__name:"FilterSection",props:Nt({meta:{type:Object,default:{}},filterDefinitions:{type:Array,required:!0}},{filters:{},filtersModifiers:{}}),emits:Nt(["updateFilter"],["update:filters"]),setup(t,{emit:e}){const s=Gt(t,"filters"),n={checkbox:YU,radio:oq},i=r=>n[r]||"div";return(r,o)=>(y(),x("div",aq,[(y(!0),x(G,null,ge(t.filterDefinitions,(a,c)=>{var f,h;return y(),tt(Kr(i(a.type)),{key:a.model,modelValue:s.value[a.model],"onUpdate:modelValue":p=>s.value[a.model]=p,filter:a,"applied-filters":(h=(f=t.meta)==null?void 0:f.params)==null?void 0:h.filters,onUpdateFilter:o[0]||(o[0]=p=>r.$emit("updateFilter"))},null,40,["modelValue","onUpdate:modelValue","filter","applied-filters"])}),128))]))}},cq={"aria-live":"polite",role:"region","aria-atomic":"true"},uq={class:"visually-hidden"},dq={class:"d-flex flex-wrap gap-2 align-items-center justify-center list-unstyled"},fq={key:0},hq=["aria-label"],pq={class:"fw-bold"},mq=["onClick","aria-label"],gq={class:"fw-bold"},_q={key:1},vq={__name:"ResultsSection",props:{meta:{type:Object,default:{}},orderBy:{type:Object,required:!0},orderDirection:{type:String,required:!0},filterDefinitions:{type:Array,required:!0},defaultFilters:{type:Object,default:{}}},emits:["clearSearch","resetFilters"],setup(t,{emit:e}){const s=t,n=e,i=JSON.parse(JSON.stringify(s.defaultFilters));function r(){var m,_;n("resetFilters",Object.keys((_=(m=s.meta)==null?void 0:m.params)==null?void 0:_.filters)),n("clearSearch")}const o=te(()=>Object.keys(c.value).length>0),a=te(()=>{var m,_,v,b;return(_=(m=s.meta)==null?void 0:m.params)!=null&&_.searchText?((b=(v=s.meta)==null?void 0:v.params)==null?void 0:b.searchText)!="":!1}),c=te(()=>{var v,b;const m=(b=(v=s.meta)==null?void 0:v.params)==null?void 0:b.filters;if(!m)return{};const _=Object.entries(m).filter(([S,C])=>Object(i).hasOwnProperty(S)&&i[S]!=C);return Object.fromEntries(_)});function f(m){const _=s.filterDefinitions.findIndex(v=>v.model===m);return _!=-1?s.filterDefinitions[_].label:""}function h(m,_){var b;const v=s.filterDefinitions.findIndex(S=>S.model===m);return v!=-1?(b=s.filterDefinitions[v].options.find(S=>S.value==_))==null?void 0:b.text:""}function p(m){return["asc","desc"].includes(m)?m+"ending":""}return(m,_)=>{var v,b,S,C,O,A,$;return y(),x(G,null,[u("div",cq,[u("p",uq,P(((v=t.meta)==null?void 0:v.total)??"")+" results sorted by "+P((b=t.orderBy)==null?void 0:b.label)+", "+P(p(t.orderDirection))+".",1)]),u("ul",dq,[u("li",null,P(((S=t.meta)==null?void 0:S.total)??"")+" results ",1),a.value?(y(),x("li",fq,[u("button",{class:"btn btn-primary btn-sm rounded-pill",onClick:_[0]||(_[0]=T=>m.$emit("clearSearch")),"aria-label":"Clear current search: "+((O=(C=t.meta)==null?void 0:C.params)==null?void 0:O.searchText)},[_[1]||(_[1]=re("Search: ")),u("span",pq,P(($=(A=t.meta)==null?void 0:A.params)==null?void 0:$.searchText),1),_[2]||(_[2]=u("i",{class:"bi bi-x-lg ms-2","aria-hidden":"true"},null,-1))],8,hq)])):ie("",!0),(y(!0),x(G,null,ge(c.value,(T,D)=>(y(),x("li",{key:D},[u("button",{class:"btn btn-primary btn-sm rounded-pill",onClick:B=>m.$emit("resetFilters",D),"aria-label":"Reset filter "+f(D)+": "+h(D,T)},[re(P(f(D))+": ",1),u("span",gq,P(h(D,T)),1),_[3]||(_[3]=u("i",{class:"bi bi-x-lg ms-2","aria-hidden":"true"},null,-1))],8,mq)]))),128)),o.value||a.value?(y(),x("li",_q,[u("button",{class:"btn btn-link p-0 text-primary",onClick:r},"Reset all")])):ie("",!0)])],64)}}},bq={class:"row"},yq={class:"col-12 col-lg-4 mb-3 mb-md-0"},wq={class:"col-12 col-lg-8"},xq=["id"],Sq={class:"fw-bold"},Eq=["aria-sort","onClick","onKeypress","tabindex"],Cq={"aria-hidden":"true"},kq={class:"bi bi-caret-up-fill me-2 text-primary"},Aq={class:"bi bi-caret-down-fill me-2 text-primary"},$q={class:"table-group-divider"},Tq={key:0},Oq=["colspan"],Mq={__name:"Datatable",props:Nt({datatableId:{type:String,required:!0},items:{type:Array,required:!0},fields:{type:Array,required:!0},loading:{type:Boolean,default:!1},meta:{type:Object,default:{}},searchCriteria:{type:Array,required:!0},filterDefinitions:{type:Array,default:[]},defaultFilters:{type:Object,default:{}},tableFilters:{type:Array,default:()=>[]}},{orderBy:{},orderByModifiers:{},orderDirection:{},orderDirectionModifiers:{},filters:{},filtersModifiers:{}}),emits:Nt(["updateSort","updateSearch","updateFilter","resetFilters"],["update:orderBy","update:orderDirection","update:filters"]),setup(t,{emit:e}){const s=e,n=Gt(t,"orderBy"),i=Gt(t,"orderDirection"),r=Gt(t,"filters"),o=W("");function a(_){return _.hasOwnProperty("orderField")&&_.orderField!=""}function c(_){if(!a(_))return null;_.key==n.value.key?i.value=i.value=="asc"?"desc":"asc":i.value="asc",n.value=_,s("updateSort")}function f(){s("updateSearch",w(o))}function h(){o.value="",f()}function p(_){return a(_)&&w(n)==_.orderField?m(w(i)):null}function m(_){return["asc","desc"].includes(_)?_+"ending":""}return(_,v)=>(y(),x(G,null,[u("div",bq,[Ft(_.$slots,"controlsStartSlot",{},()=>[u("div",yq,[U(VU,{"search-text":o.value,"onUpdate:searchText":v[0]||(v[0]=b=>o.value=b),"search-criteria":t.searchCriteria,onSearch:f},null,8,["search-text","search-criteria"])])],!0),Ft(_.$slots,"controlsEndSlot",{},()=>[u("div",wq,[U(lq,{filterDefinitions:t.filterDefinitions,onUpdateFilter:v[1]||(v[1]=b=>_.$emit("updateFilter")),filters:r.value,"onUpdate:filters":v[2]||(v[2]=b=>r.value=b),meta:t.meta},null,8,["filterDefinitions","filters","meta"])])],!0)]),U(vq,{meta:t.meta,orderBy:n.value,orderDirection:i.value,filterDefinitions:t.filterDefinitions,defaultFilters:t.defaultFilters,onClearSearch:h,onResetFilters:v[3]||(v[3]=b=>_.$emit("resetFilters",b))},null,8,["meta","orderBy","orderDirection","filterDefinitions","defaultFilters"]),u("table",{class:"table table-hover",id:t.datatableId},[v[5]||(v[5]=u("caption",null,[u("span",{class:"visually-hidden"}
78,"Use column header buttons to sort")],-1)),u("thead",Sq,[u("tr",null,[(y(!0),x(G,null,ge(t.fields,b=>{var S,C;return y(),x("th",{key:b.key,scope:"col",class:Ve(["text-nowrap",{"bg-primary-subtle-hover cursor-pointer":a(b),"text-primary":a(b)&&b.orderField==n.value}]),"aria-sort":p(b),onClick:O=>a(b)?c(b):null,onKeypress:O=>a(b)?c(b):null,tabindex:a(b)?0:null},[u("span",Cq,[Ge(u("i",kq,null,512),[[ks,b.orderField==((S=n.value)==null?void 0:S.orderField)&&i.value=="asc"]]),Ge(u("i",Aq,null,512),[[ks,b.orderField==((C=n.value)==null?void 0:C.orderField)&&i.value=="desc"]])]),u("span",null,P(b.label),1)],42,Eq)}),128))])]),u("tbody",$q,[!t.loading&&t.items.length==0?(y(),x("tr",Tq,[u("td",{colspan:t.fields.length},[Ft(_.$slots,"emptyState",{},()=>[v[4]||(v[4]=u("div",{class:"text-center fs-4"},"No results found",-1))],!0)],8,Oq)])):(y(!0),x(G,{key:1},ge(t.items,(b,S)=>(y(),x("tr",{key:"item"+S},[(y(!0),x(G,null,ge(t.fields,C=>(y(),x("td",{key:"item"+S+"_"+C.key,class:Ve(C.class)},[Ft(_.$slots,C.key,{item:b,field:C},()=>{var O;return[re(P(((O=b[C.key])==null?void 0:O.toString().length)>0?b[C.key]:""),1)]},!0)],2))),128))]))),128))])],8,xq)],64))}},rm=ds(Mq,[["__scopeId","data-v-844f0d15"]]),Pq={class:"d-flex flex-row gap-4 align-items-center justify-content-end"},Dq={class:"font-medium"},Rq={class:"font-medium"},Iq={class:"font-medium"},Lq=["aria-controls"],Nq=["value"],Vq={class:"w-auto"},Fq=["aria-controls"],Bq={class:"pagination align-items-center m-0"},Uq={class:"page-item"},qq=["aria-disabled"],Hq=["aria-current"],jq=["onClick","aria-label"],Wq={class:"page-item"},zq=["aria-disabled"],om={__name:"Paginator",props:Nt({total:{type:Number,default:0},from:{type:Number,default:0},to:{type:Number,default:0},datatableId:{type:String,required:!0},maxPages:{type:Number,default:7},totalPages:{type:Number,default:0}},{perPage:{},perPageModifiers:{},currentPage:{},currentPageModifiers:{}}),emits:Nt(["goToPage"],["update:perPage","update:currentPage"]),setup(t,{emit:e}){const s=t,n=Gt(t,"perPage"),i=Gt(t,"currentPage"),r=[10,25,50,100],o=te(()=>{let a=s.totalPages;if(a<=s.maxPages)return Array.from({length:a},(m,_)=>_+1);const c=Math.floor(s.maxPages/2);let f=[];f.push(1);let h=Math.max(2,s.currentPage-c),p=Math.min(a-1,s.currentPage+c);for(;p-h+1>s.maxPages-2;)s.currentPage-h>=p-s.currentPage?h++:p--;return h>2&&f.push("..."),f.push(...Array.from({length:p-h+1},(m,_)=>h+_)),p<a-1&&f.push("..."),f.push(a),f});return(a,c)=>(y(),x("div",Pq,[u("div",null,[u("span",Dq,P(t.from),1),c[3]||(c[3]=re(" - ")),u("span",Rq,P(t.to),1),c[4]||(c[4]=re(" of ")),u("span",Iq,P(t.total),1)]),u("div",null,[Ge(u("select",{class:"form-select","onUpdate:modelValue":c[0]||(c[0]=f=>n.value=f),"aria-controls":t.datatableId,"aria-label":"Number of results shown per page",name:"paginator_per_page"},[(y(),x(G,null,ge(r,(f,h)=>u("option",{key:h,value:f},P(f)+" per page ",9,Nq)),64))],8,Lq),[[Wn,n.value]])]),u("div",Vq,[u("nav",{"aria-label":"pagination navigation","aria-controls":t.datatableId},[u("ul",Bq,[u("li",Uq,[u("button",{class:Ve(["page-link",{disabled:i.value==1}]),onClick:c[1]||(c[1]=f=>i.value==1?null:i.value--),"aria-label":"Go to previous page","aria-disabled":i.value==1?!0:null},"Previous",10,qq)]),(y(!0),x(G,null,ge(o.value,f=>(y(),x("li",{class:Ve(["page-item",{active:f==i.value}]),key:f,"aria-current":f==i.value?!0:null},[u("button",{class:"page-link",onClick:h=>f!=="..."&&a.$emit("update:currentPage",f),"aria-label":f==t.totalPages?"Last page, page "+f:"Page "+f},P(f),9,jq)],10,Hq))),128)),u("li",Wq,[u("button",{class:Ve(["page-link",{disabled:i.value==t.totalPages}]),onClick:c[2]||(c[2]=f=>i.value==t.totalPages?null:i.value++),"aria-label":"Go to next page","aria-disabled":i.value==t.totalPages?!0:null},"Next",10,zq)])])],8,Fq)])]))}},Kq={class:"container-fluid px-5"},Gq={class:"d-flex flex-column justify-content-center gap-2"},Yq=["href","aria-label"],Zq=["href","aria-label"],N2="users-table",Xq={__name:"UserList",props:{roles:{type:Object,default:{}}},setup(t){const e=t,s=["First Name","Last Name","Email","Onyen"],n=[{key:"first_name",label:"First Name",orderField:"first_name"},{key:"last_name",label:"Last Name",orderField:"last_name"},{key:"email",label:"Email",orderField:"email"},{key:"onyen",label:"Onyen",orderField:"onyen"},{key:"roles",label:"Role(s)"},{key:"status",label:"Status",orderField:"is_active"},{key:"actions",label:"Actions",class:"text-nowrap"}],i=te(()=>{const $=[{text:"All Roles",value:"all"},...Object.entries(e.roles).map(([T,D])=>({text:D,value:T}))];return[{type:"radio",label:"Status",model:"status",options:[{text:"All Statuses",value:"all"},{text:"Active",value:"active"},{text:"Inactive",value:"inactive"}]},{type:"radio",label:"Role",model:"roles",options:$}]}),r=W({status:"active",roles:"all"});function o($){var T;
78return{id:$.id,first_name:$.first_name,last_name:$.last_name,full_name:$.full_name,email:$.email,onyen:$.onyen,roles:(T=$.roles)==null?void 0:T.map(D=>D.name).join(", "),status:$.is_active?"Active":"Inactive"}}const{items:a,meta:c,isLoading:f,orderDirection:h,orderBy:p,perPage:m,currentPage:_,filters:v,fetchData:b,filterUpdateHandler:S,resetFiltersHandler:C,sortUpdateHandler:O,searchUpdateHandler:A}=im("/portal/admin/api/users",n[0],r,o);return b(),($,T)=>(y(),x("div",Kq,[T[7]||(T[7]=u("div",{class:"d-flex flex-row align-items-center justify-content-between mb-3"},[u("h1",null,"Users"),u("a",{href:"/portal/admin/users/create",class:"btn btn-primary"},"Create New User")],-1)),u("div",Gq,[U(rm,{"order-by":w(p),"onUpdate:orderBy":T[0]||(T[0]=D=>ft(p)?p.value=D:null),"order-direction":w(h),"onUpdate:orderDirection":T[1]||(T[1]=D=>ft(h)?h.value=D:null),filters:w(v),"onUpdate:filters":T[2]||(T[2]=D=>ft(v)?v.value=D:null),"datatable-id":N2,items:w(a),fields:n,loading:w(f),meta:w(c),"search-criteria":s,"filter-definitions":i.value,"default-filters":r.value,onUpdateSort:w(O),onUpdateSearch:w(A),onUpdateFilter:w(S),onResetFilters:w(C)},{actions:Fe(({item:D})=>[u("a",{href:"/portal/admin/users/"+D.id+"/edit",class:"link-primary py-2 px-1","aria-label":"Edit "+D.full_name},T[5]||(T[5]=[u("i",{class:"bi bi-pencil-fill","aria-hidden":"true"},null,-1),re(" Edit")]),8,Yq),u("a",{href:"/portal/admin/users/"+D.id+"/password-reset-link",class:"link-primary py-2 px-1","aria-label":"Generate password reset link for "+D.full_name},T[6]||(T[6]=[u("i",{class:"bi bi-link-45deg","aria-hidden":"true"},null,-1),re(" Password Reset Link")]),8,Zq)]),_:1},8,["order-by","order-direction","filters","items","loading","meta","filter-definitions","default-filters","onUpdateSort","onUpdateSearch","onUpdateFilter","onResetFilters"]),U(om,{onGoToPage:w(b),"per-page":w(m),"onUpdate:perPage":T[3]||(T[3]=D=>ft(m)?m.value=D:null),"current-page":w(_),"onUpdate:currentPage":T[4]||(T[4]=D=>ft(_)?_.value=D:null),"datatable-id":N2,from:w(c).from,to:w(c).to,total:w(c).total,totalPages:w(c).last_page},null,8,["onGoToPage","per-page","current-page","from","to","total","totalPages"])])]))}},Jq=["id"],Qq={class:"mb-0"},pn={__name:"ValidationFeedback",props:{errors:{type:Array,default:[]},field:{type:String,required:!0}},setup(t){const e=t,s=te(()=>e.errors.length>0);return(n,i)=>(y(),x("div",{class:"text-danger w-100 mt-1",id:t.field+"_error"},[s.value?(y(!0),x(G,{key:0},ge(t.errors,r=>(y(),x("p",Qq,[u("small",null,P(r),1)]))),256)):ie("",!0)],8,Jq))}},eH={class:"fs-base"},tH={key:0,"aria-hidden":"true",class:"text-danger"},sH={class:"d-grid gap-2"},nH={class:"form-check"},iH=["name","id","aria-describedby","required"],rH=["for"],oH={class:"form-check"},aH=["name","id","aria-describedby","required"],lH=["for"],cH={__name:"BooleanInput",props:Nt({label:{type:String,required:!1},field:{type:String,required:!0},trueLabel:{type:String,required:!1,default:"Yes"},falseLabel:{type:String,required:!1,default:"No"},errors:{type:Array,default:[]},required:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>s.errors.length>0);return(i,r)=>(y(),x("fieldset",null,[u("legend",eH,[re(P(t.label)+" ",1),t.required?(y(),x("span",tH,"*")):ie("",!0)]),u("div",sH,[u("div",{class:Ve(["p-2 border rounded",[n.value?"border-danger":e.value==1?"border-primary":"border-primary-subtle"]])},[u("div",nH,[Ge(u("input",{type:"radio",class:Ve(["form-check-input border border-secondary",{"is-invalid":n.value}]),"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),name:t.field,id:t.field+"TrueId",value:"1","aria-describedby":t.field+"_error",required:t.required},null,10,iH),[[Ps,e.value]]),u("label",{class:"form-check-label w-100",for:t.field+"TrueId"},P(t.trueLabel),9,rH)])],2),u("div",{class:Ve(["p-2 border rounded",[n.value?"border-danger":e.value==0?"border-primary":"border-primary-subtle"]])},[u("div",oH,[Ge(u("input",{type:"radio",class:Ve(["form-check-input border border-secondary",{"is-invalid":n.value}]),"onUpdate:modelValue":r[1]||(r[1]=o=>
78e.value=o),name:t.field,id:t.field+"FalseId",value:"0","aria-describedby":t.field+"_error",required:t.required},null,10,aH),[[Ps,e.value]]),u("label",{class:"form-check-label w-100",for:t.field+"FalseId"},P(t.falseLabel),9,lH)])],2)]),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])]))}},uH=["for"],dH={key:0,"aria-hidden":"true",class:"text-danger"},fH=["autocomplete","id","aria-required","aria-invalid","aria-describedby","disabled"],De={__name:"TextInput",props:Nt({field:{type:String,required:!0},label:{type:String,required:!0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autocomplete:{type:Boolean,default:!1},errors:{type:Array,default:[]},labelClass:{type:String,default:""},describedBy:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>s.errors.length>0);return(i,r)=>(y(),x(G,null,[u("label",{for:t.field+"Id",class:Ve(["form-label",t.labelClass])},[re(P(t.label)+" ",1),t.required?(y(),x("span",dH,"*")):ie("",!0)],10,uH),Ft(i.$slots,"helpText"),Ge(u("input",{type:"text",class:Ve(["form-control",{"is-invalid":n.value}]),autocomplete:t.autocomplete?"on":"off",id:t.field+"Id","aria-required":t.required,"aria-invalid":n.value,"aria-describedby":[t.field+"_error",t.describedBy].join(" "),disabled:t.disabled,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o)},null,10,fH),[[Pi,e.value]]),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])],64))}},hH={class:"mb-0"},pr={__name:"ValidationErrorAlert",props:{errors:{type:Object,default:{}},show:{type:Boolean,default:!0}},setup(t){const e=t,s=te(()=>{let n=Object.keys(e.errors);return n.length==0?"Unexpected error on submission. Please try again.":n.length==1?`The "${n.pop()}" field is invalid or does not match with the required format.`:"One or more fields are invalid or do not match with the required format."});return(n,i)=>(y(),x("div",{class:Ve({"alert alert-danger d-flex flex-row":t.show}),role:"alert"},[t.show?(y(),x(G,{key:0},[i[1]||(i[1]=u("i",{class:"bi bi-exclamation-circle-fill fs-4 px-3","aria-hidden":"true"},null,-1)),u("div",null,[i[0]||(i[0]=u("p",{class:"fs-5 mb-0"},"Submission failed",-1)),u("p",hH,P(s.value),1)])],64)):ie("",!0)],2))}},pH={class:"container-md"},mH={class:"row justify-content-center"},gH={class:"col-12 col-md-10 col-lg-8 bg-white p-5"},_H={role:"status"},vH={key:0,class:"text-center mt-4"},bH={key:0},yH={key:0},wH={key:1},xH={class:"d-flex justify-content-center mb-3"},SH={class:"fs-3"},EH={class:"row"},CH={class:"col-12"},kH={class:"mb-3 col-8 offset-2"},AH={class:"mb-3 col-8 offset-2"},$H={class:"mb-3 col-8 offset-2"},TH={class:"mb-3 col-8 offset-2"},OH={class:"mb-3 col-8 offset-2"},MH={class:"d-grid gap-2"},PH={class:"form-check"},DH=["id","value"],RH=["for"],IH={class:"mb-3 col-8 offset-2"},LH={class:"col-8 offset-2"},NH={class:"d-flex flex-row gap-2"},VH=["aria-disabled"],FH={__name:"UserEdit",props:{user:{type:Object,required:!0},roles:{type:Object,default:{}}},setup(t){const e=t,s=W(!1),n=W(!1),i=W(!1),r=W({}),o=W({first_name:e.user.first_name,last_name:e.user.last_name,email:e.user.email,onyen:e.user.onyen,is_active:e.user.is_active,roles:e.user.roles.map(f=>f.id)});async function a(){var f;if(!w(s))try{n.value=!1,r.value={},s.value=!0;const h="/portal/admin/api/users/"+e.user.id;let p=await axios.patch(h,w(o));i.value=!0}catch(h){window.scrollTo(0,0),(f=h.response.data)!=null&&f.errors&&(r.value=h.response.data.errors),n.value=!0}finally{window.scrollTo(0,0),s.value=!1}}function c(f){return Object.keys(r.value).includes(f)}return(f,h)=>{var p,m,_,v,b,S;return y(),x("div",pH,[u("div",mH,[u("div",gH,[h[10]||(h[10]=u("a",{href:"/portal/admin/users",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all users")],-1)),u("div",_H,[i.value?(y(),x("div",vH,[u("h1",null,[h[6]||(h[6]=u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"},null,-1)),re(" "+P(o.value.first_name+" "+o.value.last_name)+" updated.",1)]),o.value.is_active!=t.user.is_active?(y(),x("div",bH,[o.value.is_active==0?(y(),x("p",yH,P(o.value.first_name)+' is now inactive and cannot log in to the system. Change their status to "Active" to restore access.',1)):(y(),x("p",wH,P(o.value.first_name)+"'s system access has been restored.",1))])):ie("",!0)])):ie("",!0)]),i.value?ie("",!0):(y(),x(G,{key:0},[u("div",xH,[u("h1",SH,"Edit "+P(t.user.full_name),1)]),u("div",EH,[u("div",CH,[U(pr,{errors:r.value,show:n.value},null,8,["errors","show"])]),u("form",null,[u("div",kH,[U(De,{modelValue:o.value.first_name,"onUpdate:modelValue":h[0]||(h[0]=C=>o.value.first_name=C),required:!0,field:"first_name",label:"First Name",errors:(p=r.value)==null?void 0:p.first_name},null,8,["modelValue","errors"])]),u("div",AH,[U(De,{modelValue:o.value.last_name,"onUpdate:modelValue":h[1]||(h[1]=C=>o.value.last_name=C),required:!0,field:"last_name",label:"Last Name",errors:(m=r.value)==null?void 0:m.last_name},null,8,["modelValue","errors"])]),u("div",$H,[U(De,{modelValue:o.value.email,"onUpdate:modelValue":h[2]||(h[2]=C=>o.value.email=C),required:!0,field:"email",label:"Email",errors:(_=r.value)==null?void 0:_.email},null,8,["modelValue","errors"])]),u("div",TH,[U(De,{modelValue:o.value.onyen,"onUpdate:modelValue":h[3]||(h[3]=C=>o.value.onyen=C),field:"onyen",label:"Onyen",errors:(v=r.value)==null?void 0:v.onyen},null,8,["modelValue","errors"])]),u("fieldset",OH,[h[7]||(h[7]=u("legend",{class:"fs-base"},[re("Roles "),u("span",{"aria-hidden":"true",class:"text-danger"},"*")],-1)),u("div",MH,[(y(!0),x(G,null,ge(t.roles,(C,O)=>(y(),x("div",{key:"role_"+O,class:Ve(["p-2 border rounded",[c("roles")?"border-danger":o.value.roles.includes(parseInt(O))?"border-primary":"border-primary-subtle"]])},[u("div",PH,[Ge(u("input",{class:Ve(["form-check-input border border-secondary",{"is-invalid":c("roles")}]),type:"checkbox","onUpdate:modelValue":h[4]||(h[4]=A=>o.value.roles=A),"aria-required":"true",id:"role_"+O,value:parseInt(O),"aria-describedby":"roles_error",name:"roles[]"},null,10,DH),[[en,o.value.roles]]),u("label",{class:"form-check-label w-100",for:"role_"+O},P(C),9,RH)])],2))),128))]),U(pn,{errors:(b=r.value)==null?void 0:b.roles,field:"roles"},null,8,["errors"])]),u("div",IH,[U(cH,{field:"is_active",modelValue:o.value.is_active,"onUpdate:modelValue":h[5]||(h[5]=C=>o.value.is_active=C),"true-label":"Active","false-label":"Inactive",errors:(S=r.value)==null?void 0:S.is_active,label:"Status"},null,8,["modelValue","errors"])]),u("div",LH,[u("div",NH,[u("button",{class:Ve(["btn btn-primary w-100",{disabled:s.value}]),type:"submit",onClick:st(a,["prevent"]),"aria-disabled":s.value},[s.value?(y(),x(G,{key:0},[h[8]||(h[8]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),h[9]||(h[9]=re(" Saving... "))],64)):(y(),x(G,{key:1},[re(" Save Changes ")],64))],10,VH)])])])])],64))])])])}}},BH={class:"container-md"},UH={class:"row justify-content-center"},qH={class:"col-12 col-md-10 col-lg-8 bg-white p-5"},HH={"aria-live":"polite","aria-atomic":"true"},jH={class:"d-flex flex-column align-items-center"},WH={class:"row"},zH={role:"alert"},KH={key:0,class:"mb-3 col-12"},GH={class:"mb-3 col-8 offset-2"},YH={class:"mb-3 col-8 offset-2"},ZH={class:"mb-3 col-8 offset-2"},XH={class:"mb-3 col-8 offset-2"},JH={class:"mb-3 col-8 offset-2"},QH={class:"d-grid gap-2"},ej={class:"form-check"},tj=["id","value"],sj=["for"],nj={class:"row mt-3"},ij={class:"col-8 offset-2"},rj={class:"d-flex flex-row gap-2"},oj={key:0,class:"btn btn-primary w-100",type:"button",disabled:""},aj={__name:"UserCreate",props:{roles:{type:Object,default:{}}},setup(t){const e=W(!1),s=W(!1),n=W(!1),i=W({}),r=W({first_name:"",last_name:"",email:"",onyen:"",roles:[]});async function o(){var c;try{s.value=!1,i.value={},e.value=!0;let h=await axios.post("/portal/admin/api/users",w(r));if(h.statusText==="OK")n.value=!0;else throw new Error(h.error)}catch(f){window.scrollTo(0,0),(c=f.response.data)!=null&&c.errors&&(i.value=f.response.data.errors),s.value=!0,e.value=!1}}function a(c){return Object.keys(i.value).includes(c)}return(c,f)=>{var h,p,m,_,v;return y(),x("div",BH,[u("div",UH,[u("div",qH,[u("div",HH,[Ge(u("div",null,[u("div",jH,[u("h1",null,[f[5]||(f[5]=u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"},null,-1)),re(" "+P(r.value.first_name+" "+r.value.last_name)+" created.",1)]),u("p",null,[re(P(r.value.first_name)+" can set their password using the ",1),f[6]||(f[6]=u("span",{class:"fw-bold"},"Forgot Your Password?",-1)),f[7]||(f[7]=re(" link on the login page."))]),f[8]||(f[8]=u("div",{class:"d-grid gap-4 align-items-center"}
78,[u("a",{href:"/portal/admin/users",class:"btn btn-primary"},"View All Users"),u("a",{href:"/portal/admin/users/create",class:"link-primary"},[u("i",{class:"bi bi-plus-lg","aria-hidden":"true"}),re(" Create Another User")])],-1))])],512),[[ks,n.value]])]),Ge(u("div",null,[f[11]||(f[11]=u("div",{class:"d-flex flex-column mb-3 align-items-center gap-2"},[u("a",{href:"/portal/admin/users",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all users")]),u("h1",{class:"fs-3"},"Create New User")],-1)),u("div",WH,[u("div",zH,[s.value?(y(),x("div",KH,[U(pr,{errors:i.value},null,8,["errors"])])):ie("",!0)]),u("form",null,[u("div",GH,[U(De,{modelValue:r.value.first_name,"onUpdate:modelValue":f[0]||(f[0]=b=>r.value.first_name=b),required:!0,field:"first_name",label:"First Name",errors:(h=i.value)==null?void 0:h.first_name},null,8,["modelValue","errors"])]),u("div",YH,[U(De,{modelValue:r.value.last_name,"onUpdate:modelValue":f[1]||(f[1]=b=>r.value.last_name=b),required:!0,field:"last_name",label:"Last Name",errors:(p=i.value)==null?void 0:p.last_name},null,8,["modelValue","errors"])]),u("div",ZH,[U(De,{modelValue:r.value.email,"onUpdate:modelValue":f[2]||(f[2]=b=>r.value.email=b),required:!0,field:"email",label:"Email",errors:(m=i.value)==null?void 0:m.email},null,8,["modelValue","errors"])]),u("div",XH,[U(De,{modelValue:r.value.onyen,"onUpdate:modelValue":f[3]||(f[3]=b=>r.value.onyen=b),field:"onyen",label:"Onyen",errors:(_=i.value)==null?void 0:_.onyen},null,8,["modelValue","errors"])]),u("fieldset",JH,[f[9]||(f[9]=u("legend",{class:"fs-base"},[re("Role(s) "),u("span",{"aria-hidden":"true",class:"text-danger"},"*")],-1)),u("div",QH,[(y(!0),x(G,null,ge(t.roles,(b,S)=>(y(),x("div",{key:"role_"+S,class:Ve(["p-2 border rounded",[a("roles")?"border-danger":r.value.roles.includes(parseInt(S))?"border-primary":"border-primary-subtle"]])},[u("div",ej,[Ge(u("input",{class:Ve(["form-check-input border border-secondary",{"is-invalid":a("roles")}]),type:"checkbox","onUpdate:modelValue":f[4]||(f[4]=C=>r.value.roles=C),"aria-required":"true",id:"role_"+S,value:parseInt(S),"aria-describedby":"roles_error",name:"roles[]"},null,10,tj),[[en,r.value.roles]]),u("label",{class:"form-check-label w-100",for:"role_"+S},P(b),9,sj)])],2))),128))]),U(pn,{errors:(v=i.value)==null?void 0:v.roles,field:"roles"},null,8,["errors"])])])]),u("div",nj,[u("div",ij,[u("div",rj,[e.value?(y(),x("button",oj,f[10]||(f[10]=[u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1),re(" Saving... ")]))):(y(),x("button",{key:1,class:"btn btn-primary w-100",type:"button",onClick:o},"Create User"))])])])],512),[[ks,!n.value]])])])])}}},lj={class:"container-md"},cj={class:"row justify-content-center"},uj={class:"col-12 col-md-10 col-lg-8 col-xxl-6 bg-white p-5"},dj={class:"row"},fj={class:"col-12"},hj={class:"card mt-4"},pj={class:"card-body"},mj={class:"fs-3"},gj={class:"fw-bold"},_j={class:"list-unstyled"},vj={readonly:"",class:"form-control",rows:"4",id:"reset-link"},bj={__name:"UserPasswordResetLink",props:{user:{type:Object,required:!0},link:{type:String,required:!0},expiration:{type:String,required:!0}},setup(t){return(e,s)=>(y(),x("div",lj,[u("div",cj,[u("div",uj,[s[6]||(s[6]=u("a",{href:"/portal/admin/users",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all users")],-1)),u("div",dj,[u("div",fj,[u("div",hj,[u("div",pj,[u("h1",mj,[s[0]||(s[0]=re("Password Reset Link for ")),u("span",gj,P(t.user.first_name+" "+t.user.last_name),1)]),u("ul",_j,[u("li",null,[s[1]||(s[1]=u("span",{class:"fw-bold"},"User ID:",-1)),re(" "+P(t.user.id),1)]),u("li",null,[s[2]||(s[2]=u("span",{class:"fw-bold"},"Name:",-1)),re(" "+P(t.user.first_name+" "+t.user.last_name),1)]),u("li",null,[s[3]||(s[3]=u("span",{class:"fw-bold"},"Email:",-1)),re(" "+P(t.user.email),1)]),u("li",null,[s[4]||(s[4]=u("span",{class:"fw-bold"},"Link Expiration:",-1)),re(" "+P(t.expiration),1)])]),s[5]||(s[5]=u("label",{class:"visually-hidden",for:"reset-link"},"Password Reset Link",-1)),u("textarea",vj,P(t.link),1)])])])])])])]))}},yj={class:"container-fluid px-5"},wj={class:"d-flex flex-column justify-content-center gap-2"},xj=["href","aria-label"],V2="cohorts-table",Sj={__name:"CohortList",setup(t){const e=["Name","Description"],s=[{key:"name",label:"Name",orderField:"name"},{key:"description",label:"Description",orderField:"description"},{key:"actions",label:"Actions",class:"text-nowrap"}];function n(v){return{id:v.id,name:v.name,description:v.description}}const{items:i,meta:r,isLoading:o,orderDirection:a,orderBy:c,perPage:f,currentPage:h,fetchData:p,sortUpdateHandler:m,searchUpdateHandler:_}=im("/portal/admin/api/cohorts",s[0],{},n);return p(),(v,b)=>(y(),x("div",yj,[b[5]||(b[5]=u("div",{class:"d-flex flex-row align-items-center justify-content-between mb-3"},[u("h1",null,"Cohorts"),u("a",{href:"/portal/admin/cohorts/create",class:"btn btn-primary"},"Create New Cohort")],-1)),u("div",wj,[U(rm,{"order-by":w(c),"onUpdate:orderBy":b[0]||(b[0]=S=>ft(c)?c.value=S:null),"order-direction":w(a),"onUpdate:orderDirection":b[1]||(b[1]=S=>ft(a)?a.value=S:null),"datatable-id":V2,items:w(i),fields:s,loading:w(o),meta:w(r),"search-criteria":e,onUpdateSort:w(m),onUpdateSearch:w(_)},{actions:Fe(({item:S})=>[u("a",{href:"/portal/admin/cohorts/"+S.id+"/edit",class:"link-primary py-2 px-1","aria-label":"Click to edit "+S.name},b[4]||(b[4]=[u("i",{class:"bi bi-pencil-fill","aria-hidden":"true"},null,-1),re(" Edit")]),8,xj)]),_:1},8,["order-by","order-direction","items","loading","meta","onUpdateSort","onUpdateSearch"]),U(om,{onGoToPage:w(p),"per-page":w(f),"onUpdate:perPage":b[2]||(b[2]=S=>ft(f)?f.value=S:null),"current-page":w(h),"onUpdate:currentPage":b[3]||(b[3]=S=>ft(h)?h.value=S:null),"datatable-id":V2,from:w(r).from,to:w(r).to,total:w(r).total,totalPages:w(r).last_page},null,8,["onGoToPage","per-page","current-page","from","to","total","totalPages"])])]))}},Ej={class:"container-md"},Cj={class:"row justify-content-center"},kj={class:"col-12 col-md-10 col-lg-8 col-xxl-6 bg-white p-5"},Aj={"aria-live":"polite","aria-atomic":"true"},$j={class:"d-flex flex-column align-items-center"},Tj={class:"row"},Oj={role:"alert"},Mj={key:0,class:"mb-3 col-12"},Pj={class:"mb-3 col-8 offset-2"},Dj={class:"mb-3 col-8 offset-2"},Rj={class:"row mt-3"},Ij={class:"col-8 offset-2"},Lj={class:"d-flex flex-row gap-2"},Nj={key:0,class:"btn btn-primary w-100",type:"button",disabled:""},Vj={__name:"CohortCreate",setup(t){const e=W(!1),s=W(!1),n=W(!1),i=W({}),r=W({name:"",description:""});async function o(){var a;try{s.value=!1,i.value={},e.value=!0;
78let f=await axios.post("/portal/admin/api/cohorts",w(r));if(f.statusText==="OK")n.value=!0;else throw new Error(f.error)}catch(c){console.log(c.message),window.scrollTo(0,0),(a=c.response.data)!=null&&a.errors&&(i.value=c.response.data.errors),s.value=!0,e.value=!1}}return(a,c)=>{var f,h;return y(),x("div",Ej,[u("div",Cj,[u("div",kj,[u("div",Aj,[Ge(u("div",null,[u("div",$j,[u("h1",null,[c[2]||(c[2]=u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"},null,-1)),re(" "+P(r.value.name)+" created.",1)]),c[3]||(c[3]=u("div",{class:"d-grid gap-4 align-items-center"},[u("a",{href:"/portal/admin/cohorts",class:"btn btn-primary"},"View All Cohorts"),u("a",{href:"/portal/admin/cohorts/create",class:"link-primary"},[u("i",{class:"bi bi-plus-lg","aria-hidden":"true"}),re(" Create Another Cohort")])],-1))])],512),[[ks,n.value]])]),Ge(u("div",null,[c[5]||(c[5]=u("div",{class:"d-flex flex-column mb-3 align-items-center gap-2"},[u("a",{href:"/portal/admin/cohorts",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all cohorts")]),u("h1",{class:"fs-3"},"Create New Cohort")],-1)),u("div",Tj,[u("div",Oj,[s.value?(y(),x("div",Mj,[U(pr,{errors:i.value},null,8,["errors"])])):ie("",!0)]),u("form",null,[u("div",Pj,[U(De,{modelValue:r.value.name,"onUpdate:modelValue":c[0]||(c[0]=p=>r.value.name=p),required:!0,field:"name",label:"Name",errors:(f=i.value)==null?void 0:f.name},null,8,["modelValue","errors"])]),u("div",Dj,[U(De,{modelValue:r.value.description,"onUpdate:modelValue":c[1]||(c[1]=p=>r.value.description=p),field:"description",label:"Description",errors:(h=i.value)==null?void 0:h.description},null,8,["modelValue","errors"])])])]),u("div",Rj,[u("div",Ij,[u("div",Lj,[e.value?(y(),x("button",Nj,c[4]||(c[4]=[u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1),re(" Saving... ")]))):(y(),x("button",{key:1,class:"btn btn-primary w-100",type:"button",onClick:o},"Create Cohort"))])])])],512),[[ks,!n.value]])])])])}}},Fj={class:"container-md"},Bj={class:"row justify-content-center"},Uj={class:"col-12 col-md-10 col-lg-8 col-xxl-6 bg-white p-5"},qj={role:"status"},Hj={key:0,class:"text-center mt-4"},jj={class:"d-flex justify-content-center mb-3"},Wj={class:"fs-3"},zj={class:"row"},Kj={class:"col-12"},Gj={class:"mb-3 col-8 offset-2"},Yj={class:"mb-3 col-8 offset-2"},Zj={class:"col-8 offset-2"},Xj={class:"d-flex flex-row gap-2"},Jj=["aria-disabled"],Qj={__name:"CohortEdit",props:{cohort:{type:Object,required:!0}},setup(t){const e=t,s=W(!1),n=W(!1),i=W(!1),r=W({}),o=W({name:e.cohort.name,description:e.cohort.description});async function a(){var c;if(!w(s))try{n.value=!1,r.value={},s.value=!0;const f="/portal/admin/api/cohorts/"+e.cohort.id;let h=await axios.patch(f,w(o));i.value=!0}catch(f){window.scrollTo(0,0),(c=f.response.data)!=null&&c.errors&&(r.value=f.response.data.errors),n.value=!0}finally{window.scrollTo(0,0),s.value=!1}}return(c,f)=>{var h,p;return y(),x("div",Fj,[u("div",Bj,[u("div",Uj,[f[5]||(f[5]=u("a",{href:"/portal/admin/cohorts",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all cohorts")],-1)),u("div",qj,[i.value?(y(),x("div",Hj,[u("h1",null,[f[2]||(f[2]=u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"},null,-1)),re(" "+P(o.value.name)+" updated.",1)])])):ie("",!0)]),i.value?ie("",!0):(y(),x(G,{key:0},[u("div",jj,[u("h1",Wj,"Edit "+P(t.cohort.name),1)]),u("div",zj,[u("div",Kj,[U(pr,{errors:r.value,show:n.value},null,8,["errors","show"])]),u("form",null,[u("div",Gj,[U(De,{modelValue:o.value.name,"onUpdate:modelValue":f[0]||(f[0]=m=>o.value.name=m),required:!0,field:"name",label:"Name",errors:(h=r.value)==null?void 0:h.name},null,8,["modelValue","errors"])]),u("div",Yj,[U(De,{modelValue:o.value.description,"onUpdate:modelValue":f[1]||(f[1]=m=>o.value.description=m),field:"description",label:"Description",errors:(p=r.value)==null?void 0:p.description},null,8,["modelValue","errors"])]),u("div",Zj,[u("div",Xj,[u("button",{class:Ve(["btn btn-primary w-100",{disabled:s.value}]),type:"submit",onClick:st(a,["prevent"]),"aria-disabled":s.value},[s.value?(y(),x(G,{key:0},[f[3]||(f[3]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),f[4]||(f[4]=re(" Saving... "))],64)):(y(),x(G,{key:1},[re(" Save Changes ")],64))],10,Jj)])])])])],64))])])])}}},eW={class:"container-fluid px-5"},tW={class:"d-flex flex-column justify-content-center gap-2"},sW=["href","aria-label"],nW=["href"],F2="programs-table",iW={__name:"ProgramList",props:{advisors:{type:Object,default:{}},cohorts:{type:Object,default:{}},disciplines:{type:Object,default:{}},regions:{type:Object,default:{}},specialties:{type:Object,default:{}},states:{type:Object,default:{}}},setup(t){const e=t,s=["Program ID","Name","Institution","Discipline","Specialty","City","State","Region","Principal Investigator","Advisors","Cohort","Graduated Date","Relinquished Date"],n=[{key:"program_id",label:"Program ID",orderField:"program_id"},{key:"name",label:"Name",orderField:"name"},{key:"institution",label:"Institution",orderField:"institution"},{key:"discipline",label:"Discipline",orderField:"discipline.name"},{key:"specialty",label:"Specialty",orderField:"specialty.name"},{key:"city",label:"City",orderField:"city"},{key:"state",label:"State",orderField:"state.name"},{key:"region",label:"Region",orderField:"region"},{key:"principal_investigator",label:"Principal Investigator",orderField:"principal_investigator.name"},{key:"advisors",label:"Advisor(s)"},{key:"cohort",label:"Cohort",orderField:"cohort.name"},{key:"graduated_date",label:"Graduated",orderField:"graduated_date"},{key:"relinquished_date",label:"Relinquished",orderField:"relinquished_date"},{key:"actions",label:"Actions",class:"text-nowrap"}],i=te(()=>{const $=[{text:"All Cohorts",value:"all"},...e.cohorts.map(L=>({text:L.name,value:L.id}))],T=[{text:"All Disciplines",value:"all"},...e.disciplines.map(L=>({text:L.name,value:L.id}))],D=[{text:"All Specialties",value:"all"},...e.specialties.map(L=>({text:L.name,value:L.id}))],B=[{text:"All States",value:"all"},...e.states.map(L=>({text:L.name,value:L.id}))],N=[{text:"All Advisors",value:"all"},...e.advisors.map(L=>({text:`${L.first_name} ${L.last_name}`,value:L.id}))],F=[{text:"All Regions",value:"all"},...Object.entries(e.regions).map(([L,Y])=>({text:Y,value:Y}))];return[{type:"radio",label:"Discipline",model:"disciplines",options:T}
78,{type:"radio",label:"Specialty",model:"specialties",options:D},{type:"radio",label:"State",model:"states",options:B},{type:"radio",label:"Region",model:"regions",options:F},{type:"radio",label:"Advisor",model:"advisors",options:N},{type:"radio",label:"Cohort",model:"cohorts",options:$},{type:"radio",label:"Status",model:"status",options:[{text:"All Statuses",value:"all"},{text:"Active",value:"active"},{text:"Inactive",value:"inactive"}]}]}),r={status:"active",cohorts:"all",disciplines:"all",specialties:"all",states:"all",advisors:"all",regions:"all"};function o($){var T,D,B,N,F,L;return{id:$.id,program_id:$.program_id,name:$.name,institution:$.institution,discipline:(T=$.discipline)==null?void 0:T.name,specialty:(D=$.specialty)==null?void 0:D.name,city:$.city,state:(B=$.state)==null?void 0:B.abbreviation,region:$.region,principal_investigator:(N=$.principal_investigator)==null?void 0:N.full_name,advisors:(F=$.advisors)==null?void 0:F.map(Y=>Y.full_name).join(", "),cohort:(L=$.cohort)==null?void 0:L.name,graduated_date:$.graduated_date,relinquished_date:$.relinquished_date}}const{items:a,meta:c,isLoading:f,orderDirection:h,orderBy:p,perPage:m,currentPage:_,f
78ilters:v,fetchData:b,filterUpdateHandler:S,resetFiltersHandler:C,sortUpdateHandler:O,searchUpdateHandler:A}=im("/portal/admin/api/programs",n[0],r,o);return b(),($,T)=>(y(),x("div",eW,[T[7]||(T[7]=u("div",{class:"d-flex flex-row align-items-center justify-content-between mb-3"},[u("h1",null,"Programs"),u("a",{href:"/portal/admin/programs/create",class:"btn btn-primary"},"Create New Program")],-1)),u("div",tW,[U(rm,{"order-by":w(p),"onUpdate:orderBy":T[0]||(T[0]=D=>ft(p)?p.value=D:null),"order-direction":w(h),"onUpdate:orderDirection":T[1]||(T[1]=D=>ft(h)?h.value=D:null),filters:w(v),"onUpdate:filters":T[2]||(T[2]=D=>ft(v)?v.value=D:null),"datatable-id":F2,items:w(a),fields:n,loading:w(f),meta:w(c),"search-criteria":s,"filter-definitions":i.value,"default-filters":r,onUpdateSort:w(O),onUpdateSearch:w(A),onUpdateFilter:w(S),onResetFilters:w(C)},{actions:Fe(({item:D})=>[u("a",{href:"/portal/admin/programs/"+D.id+"/edit",class:"link-primary py-2 px-1","aria-label":"Edit "+D.name},T[5]||(T[5]=[u("i",{class:"bi bi-pencil-fill","aria-hidden":"true"},null,-1),re(" Edit")]),8,sW),u("a",{href:"/portal/programs/"+D.id,class:"link-primary py-2 px-1","aria-label":"View Program"},T[6]||(T[6]=[u("i",{class:"bi bi-eye-fill","aria-hidden":"true"},null,-1),re(" View")]),8,nW)]),_:1},8,["order-by","order-direction","filters","items","loading","meta","filter-definitions","onUpdateSort","onUpdateSearch","onUpdateFilter","onResetFilters"]),U(om,{onGoToPage:w(b),"per-page":w(m),"onUpdate:perPage":T[3]||(T[3]=D=>ft(m)?m.value=D:null),"current-page":w(_),"onUpdate:currentPage":T[4]||(T[4]=D=>ft(_)?_.value=D:null),"datatable-id":F2,from:w(c).from,to:w(c).to,total:w(c).total,totalPages:w(c).last_page},null,8,["onGoToPage","per-page","current-page","from","to","total","totalPages"])])]))}},rW={class:"form-check"},oW=["id","aria-required","aria-invalid","aria-describedby"],aW=["for"],Xs={__name:"CheckboxInput",props:Nt({field:{type:String,required:!0},label:{type:String,required:!0},labelClass:{type:String,default:""},required:{type:Boolean,default:!1},errors:{type:Array,default:[]},describedBy:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:Nt(["change"],["update:modelValue"]),setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>s.errors.length>0);return(i,r)=>(y(),x(G,null,[u("div",rW,[Ge(u("input",{type:"checkbox",class:Ve(["form-check-input border border-secondary",{"is-invalid":n.value}]),id:t.field+"-id","aria-required":t.required,"aria-invalid":n.value,"aria-describedby":[t.field+"_error",t.describedBy].join(" "),"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),onChange:r[1]||(r[1]=o=>i.$emit("change"))},null,42,oW),[[en,e.value]]),u("label",{for:t.field+"-id",class:Ve(["form-check-label",t.labelClass])},P(t.label),11,aW),Ft(i.$slots,"helpText")]),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])],64))}},lW=["for"],cW={key:0,"aria-hidden":"true",class:"text-danger"},uW=["autocomplete","id","aria-required","aria-invalid","aria-describedby"],Ia={__name:"DateInput",props:Nt({field:{type:String,required:!0},label:{type:String,required:!0},required:{type:Boolean,default:!1},autocomplete:{type:Boolean,default:!1},labelClass:{type:String,default:""},errors:{type:Array,default:[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>s.errors.length>0);return(i,r)=>(y(),x(G,null,[u("label",{for:t.field+"Id",class:Ve(["form-label",t.labelClass])},[re(P(t.label)+" ",1),t.required?(y(),x("span",cW,"*")):ie("",!0)],10,lW),Ge(u("input",{type:"date",class:Ve(["form-control",{"is-invalid":n.value}]),autocomplete:t.autocomplete?"on":"off",id:t.field+"Id","aria-required":t.required,"aria-invalid":n.value,"aria-describedby":t.field+"_error","onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o)},null,10,uW),[[Pi,e.value]]),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])],64))}};function N_(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function dW(t){return(...e)=>!t(...e)}function fW(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function hW(t){return t.filter(e=>!e.$isLabel)}function V_(t,e){return s=>s.reduce((n,i)=>i[t]&&i[t].length?(n.push({$groupLabel:i[e],$isLabel:!0}),n.concat(i[t])):n,[])}const B2=(...t)=>e=>t.reduce((s,n)=>n(s),e);var pW={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return N_(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let s=this.options.concat();return this.internalSearch?s=this.groupValues?this.filterAndFlat(s,e,this.label):this.filterOptions(s,e,this.label,this.customLabel):s=this.groupValues?V_(this.groupValues,this.groupLabel)(s):s,s=this.hideSelected?s.filter(dW(this.isSelected)):s,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?s.push({isTag:!0,label:t}):s.unshift({isTag:!0,label:t})),s.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0}
78,search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,s){return B2(this.filterGroups(e,s,this.groupValues,this.groupLabel,this.customLabel),V_(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return B2(V_(this.groupValues,this.groupLabel),hW)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(N_(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return N_(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(s=>s[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const s=this.trackBy?e[this.groupValues].map(i=>i[this.trackBy]):e[this.groupValues],n=this.internalValue.filter(i=>s.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",n)}else{const s=e[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&s.splice(this.max-this.internalValue.length),this.$emit("select",s,this.id),this.$emit("update:modelValue",this.internalValue.concat(s))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const s=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const n=this.internalValue.slice(0,s).concat(this.internalValue.slice(s+1));this.$emit("update:modelValue",n)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))},filterOptions(t,e,s,n){return e?t.filter(i=>fW(n(i,s),e)).sort((i,r)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(i,r):n(i,s).length-n(r,s).length):t},filterGroups(t,e,s,n,i){return r=>r.map(o=>{if(!o[s])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const a=this.filterOptions(o[s],t,e,i);return a.length?{[n]:o[n],[s]:a}:[]})}}},mW={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const s=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return s&&!this.wholeGroupDisabled(s)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(s)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerRe
78set()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},e$={name:"vue-multiselect",mixins:[pW,mW],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const gW=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],_W={ref:"tags",class:"multiselect__tags"},vW={class:"multiselect__tags-wrap"},bW=["textContent"],yW=["onKeypress","onMousedown"],wW=["textContent"],xW={class:"multiselect__spinner"},SW=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],EW=["id","aria-multiselectable"],CW={key:0},kW={class:"multiselect__option"},AW=["aria-selected","id","role"],$W=["onClick","onMouseenter","data-select","data-selected","data-deselect"],TW=["data-select","data-deselect","onMouseenter","onMousedown"],OW={class:"multiselect__option"},MW={class:"multiselect__option"};function PW(t,e,s,n,i,r){return y(),x("div",{tabindex:t.searchable?-1:s.tabindex,class:Ve([{"multiselect--active":t.isOpen,"multiselect--disabled":s.disabled,"multiselect--above":r.isAbove,"multiselect--has-options-group":r.hasOptionGroup},"multiselect"]),onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=Bn(st(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=Bn(st(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=Bn(st(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=Bn(o=>t.deactivate(),["esc"])),role:"combobox","aria-expanded":t.isOpen,"aria-owns":"listbox-"+t.id,"aria-activedescendant":t.isOpen&&t.pointer!==null?t.id+"-"+t.pointer:null},[Ft(t.$slots,"caret",{toggle:t.toggle},()=>[u("div",{onMousedown:e[0]||(e[0]=st(o=>
78t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),Ft(t.$slots,"clear",{search:t.search}),u("div",_W,[Ft(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:r.visibleValues,isOpen:t.isOpen},()=>[Ge(u("div",vW,[(y(!0),x(G,null,ge(r.visibleValues,(o,a)=>Ft(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(y(),x("span",{class:"multiselect__tag",key:a,onMousedown:e[1]||(e[1]=st(()=>{},["prevent"]))},[u("span",{textContent:P(t.getOptionLabel(o))},null,8,bW),u("i",{tabindex:"1",onKeypress:Bn(st(c=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:st(c=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,yW)],32))])),256))],512),[[ks,r.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>s.limit?Ft(t.$slots,"limit",{key:0},()=>[u("strong",{class:"multiselect__strong",textContent:P(s.limitText(t.internalValue.length-s.limit))},null,8,wW)]):ie("v-if",!0)]),U(Uu,{name:"multiselect__loading"},{default:Fe(()=>[Ft(t.$slots,"loading",{},()=>[Ge(u("div",xW,null,512),[[ks,s.loading]])])]),_:3}),t.searchable?(y(),x("input",{key:0,ref:"search",name:s.name,id:t.id,type:"text",autocomplete:"off",spellcheck:s.spellcheck,placeholder:t.placeholder,required:r.isRequired,style:qr(r.inputStyle),value:t.search,disabled:s.disabled,tabindex:s.tabindex,"aria-label":s.name+"-searchbox",onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=st(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=st(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=Bn(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=Bn(st(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=Bn(st(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=Bn(st(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=Bn(st(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,SW)):ie("v-if",!0),r.isSingleLabelVisible?(y(),x("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=st((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[Ft(t.$slots,"singleLabel",{option:r.singleValue},()=>[re(P(t.currentOptionLabel),1)])],32)):ie("v-if",!0),r.isPlaceholderVisible?(y(),x("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=st((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[Ft(t.$slots,"placeholder",{},()=>[re(P(t.placeholder),1)])],32)):ie("v-if",!0)],512),U(Uu,{name:"multiselect",persisted:""},{default:Fe(()=>[Ge(u("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=st(()=>{},["prevent"])),style:qr({maxHeight:t.optimizedHeight+"px"}),ref:"list"},[u("ul",{class:"multiselect__content",style:qr(r.contentStyle),role:"listbox",id:"listbox-"+t.id,"aria-multiselectable":t.multiple},[Ft(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(y(),x("li",CW,[u("span",kW,[Ft(t.$slots,"maxElements",{},()=>[re("Maximum of "+P(t.max)+" options selected. First remove a selected option to select another.",1)])])])):ie("v-if",!0),!t.max||t.internalValue.length<t.max?(y(!0),x(G,{key:1},ge(t.filteredOptions,(o,a)=>(y(),x("li",{class:"multiselect__element",key:a,"aria-selected":t.isSelected(o),id:t.id+"-"+a,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?ie("v-if",!0):(y(),x("span",{key:0,class:Ve([t.optionHighlight(a,o),"multiselect__option"]),onClick:st(c=>t.select(o),["stop"]),onMouseenter:st(c=>t.pointerSet(a),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:r.selectLabelText,"data-selected":r.selectedLabelText,"data-deselect":r.deselectLabelText},[Ft(t.$slots,"option",{option:o,search:t.search,index:a},()=>[u("span",null,P(t.getOptionLabel(o)),1)])],42,$W)),o&&(o.$isLabel||o.$isDisabled)?(y(),x("span",{key:1,"data-select":t.groupSelect&&r.selectGroupLabelText,"data-deselect":t.groupSelect&&r.deselectGroupLabelText,class:Ve([t.groupHighlight(a,o),"multiselect__option"]),onMouseenter:st(c=>t.groupSelect&&t.pointerSet(a),["self"]),onMousedown:st(c=>t.selectGroup(o),["prevent"])},[Ft(t.$slots,"option",{option:o,search:t.search,index:a},()=>[u("span",null,P(t.getOptionLabel(o)),1)])],42,TW)):ie("v-if",!0)],8,AW))),128)):ie("v-if",!0),Ge(u("li",null,[u("span",OW,[Ft(t.$slots,"noResult",{search:t.search},()=>[e[20]||(e[20]=re("No elements found. Consider changing the search query."))])])],512),[[ks,s.showNoResults&&t.filteredOptions.length===0&&t.search&&!s.loading]]),Ge(u("li",null,[u("span",MW,[Ft(t.$slots,"noOptions",{},()=>[e[21]||(e[21]=re("List is empty."))])])],512),[[ks,s.showNoOptions&&(t.options.length===0||r.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!s.loading]]),Ft(t.$slots,"afterList")],12,EW)],36),[[ks,t.isOpen]])]),_:3})],42,gW)}e$.render=PW;const DW=["for"],RW={key:0,"aria-hidden":"true",class:"text-danger"},np={__name:"MultiselectInput",props:Nt({errors:{type:Array,default:[]},inputLabel:{type:String,required:!0},id:{type:String,required:!0},required:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue");return(s,n)=>(y(),x(G,null,[u("label",{for:t.id,class:"form-label"},[re(P(t.inputLabel)+" ",1),t.required?(y(),x("span",RW,"*")):ie("",!0)],8,DW),U(w(e$),Xp({modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i)},s.$attrs,{id:t.id,required:t.required}),null,16,["modelValue","id","required"]),U(pn,{errors:t.errors,field:t.id},null,8,["errors","field"])],64))}},IW=["for"],LW={key:0,"aria-hidden":"true",class:"text-danger"},NW=["id","aria-required","aria-invalid","aria-describedby"],VW={value:null},FW=["label"],BW=["value"],UW=["value"],Ut={__name:"SelectInput",props:Nt({field:{type:String,required:!0},label:{type:String,required:!0},options:{type:Array,required:!0},required:{type:Boolean,default:!1},errors:{type:Array,default:[]},labelClass:{type:String},nullLabel:{type:String}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>s.errors.length>0);return(i,r)=>(y(),x(G,null,[u("label",{for:t.field+"Id",class:Ve(["form-label",t.labelClass])},[re(P(t.label)+" ",1),t.required?(y(),x("span",LW,"*")):ie("",!0)],10,IW),Ge(u("select",{class:Ve(["form-select",{"is-invalid":n.value}]),id:t.field+"Id","aria-required":t.required,"aria-invalid":n.value,"aria-describedby":t.field+"_error","onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o)},[u("option",VW," Select "+P(t.nullLabel??t.label),1),(y(!0),x(G,null,ge(t.options,o=>(y(),x(G,{key:o.id||o.label},[o.options?(y(),x("optgroup",{key:0,label:o.label},[(y(!0),x(G,null,ge(o.options,a=>(y(),x("option",{key:a.id,value:a.id},P(a.name),9,BW))),128))],8,FW)):(y(),x("option",{key:1,value:o.id},P(o.name),9,UW))],64))),128))],10,NW),[[Wn,e.value]]),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])],64))}},qW={class:"container-md"},HW={class:"row justify-content-center"},jW={class:"col-12 col-md-10 col-lg-8 bg-white p-5"},WW={role:"status"},zW={key:0,class:"text-center mt-4"},KW={class:"d-flex flex-row justify-content-center gap-2 mt-4"},GW=["href"],YW={class:"row"},ZW={class:"col-12"},XW={class:"mb-3 col-9 offset-1"},JW={class:"mb-3 col-9 offset-1"},QW={class:"mb-3 col-9 offset-1"},ez={class:"mb-3 col-9 offset-1"},tz={class:"mb-3 col-9 offset-1"},sz={class:"mb-3 col-9 offset-1"},nz={class:"mb-3 col-9 offset-1"},iz={class:"mb-3 col-9 offset-1"},rz={class:"mb-3 col-9 offset-1"},oz={class:"mb-3 col-9 offset-1"},az={class:"mb-3 col-9 offset-1"},lz={class:"mb-3 col-9 offset-1"},cz={class:"mb-3 col-9 offset-1"},uz={class:"mb-3 col-9 offset-1"},dz={class:"mb-3 col-9 offset-1"},fz={class:"mb-3 col-9 offset-1"},hz={class:"mb-3 col-9 offset-1"},pz={class:"mb-3 col-9 offset-1"},mz={class:"mb-3 col-9 offset-1"},gz={class:"mb-3 col-9 offset-1"},_z={class:"mb-3 col-9 offset-1"},vz={class:"mb-3 col-9 offset-1"},bz={class:"mb-3 col-9 offset-1"},yz={class:"mb-3 col-9 offset-1"},wz={class:"col-9 offset-1"},xz={class:"d-flex flex-row gap-2"},Sz=["aria-disabled"],Ez={__name:"ProgramCreate",props:{cohorts:{type:Array,required:!0},endeavors:{type:Array,required:!0},leadershipUsers:{type:Array,required:!0},specialties:{type:Array,required:!0},disciplines:{type:Array,required:!0},programUsers:{type:Array,required:!0},states:{type:Array,required:!0}},setup(t){const e={program_id:null,discipline_id:null,hrsa_grant_number:null,acgme_id:null,nrmp_id:null,name:null,grantee_organization_name:null,cohort_id:null,endeavor_id:null,institution:null,multiselect_pi_id:null,multiselect_advisor_ids:[],specialty_id:null,
78street_address:null,city:null,state_id:null,zip:null,region:null,graduated_date:null,relinquished_date:null,achieved_rtp_designation_1:!1,achieved_rtp_designation_2:!1,separately_accredited:!1,should_display_profile:!0},s=W(!1),n=W(!1),i=W(!1),r=W({}),o=W({}),a=t,c=W({...e});async function f(){var v;if(!w(s))try{s.value=!0,n.value=!1,i.value=!1,o.value={},c.value.pi_id=c.value.multiselect_pi_id?c.value.multiselect_pi_id.id:null,c.value.advisor_ids=c.value.multiselect_advisor_ids.length>0?c.value.multiselect_advisor_ids.map(C=>C.id):[];const S=await axios.post("/portal/admin/api/programs",w(c));i.value=!0,r.value=S.data.data}catch(b){(v=b.response.data)!=null&&v.errors&&(o.value=b.response.data.errors),n.value=!0}finally{window.scrollTo(0,0),s.value=!1}}function h(){o.value={},n.value=!1,i.value=!1,r.value={},c.value={...e}}const p=te(()=>a.programUsers.map(v=>({label:v.last_name+", "+v.first_name+" ("+v.email+")",id:v.id}))),m=te(()=>a.leadershipUsers.map(v=>({label:v.last_name+", "+v.first_name+" ("+v.email+")",id:v.id}))),_=te(()=>a.specialties.filter(v=>c.value.discipline_id==v.discipline_id));return Et(()=>c.value.discipline_id,v=>{c.value.specialty_id=null}),(v,b)=>{var S,C,O,A,$,T,D,B,N,F,L,Y,Z,le,Ce,Ee,he,ye,xe,_e,ze,je,it,es;return y(),x("div",qW,[u("div",HW,[u("div",jW,[b[29]||(b[29]=u("a",{href:"/portal/admin/programs",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all programs")],-1)),u("div",WW,[i.value?(y(),x("div",zW,[b[25]||(b[25]=u("h1",null,[u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"}),re(" Program successfully created.")],-1)),u("div",KW,[u("a",{href:"/portal/programs/"+r.value.id,class:"btn btn-primary"},"View Program",8,GW),u("button",{class:"btn btn-secondary",onClick:st(h,["prevent"])},b[24]||(b[24]=[u("i",{class:"bi bi-plus-lg","aria-hidden":"true"},null,-1),re(" Create Another Program")]))])])):ie("",!0)]),i.value?ie("",!0):(y(),x(G,{key:0},[b[28]||(b[28]=u("div",{class:"d-flex justify-content-center mb-3"},[u("h1",{class:"fs-3"},"Create New Program")],-1)),u("div",YW,[u("div",ZW,[U(pr,{errors:o.value,show:n.value},null,8,["errors","show"])]),u("form",null,[u("div",XW,[U(De,{modelValue:c.value.program_id,"onUpdate:modelValue":b[0]||(b[0]=ue=>c.value.program_id=ue),required:!0,field:"program_id",label:"Program ID",errors:(S=o.value)==null?void 0:S.program_id},null,8,["modelValue","errors"])]),u("div",JW,[U(Ut,{modelValue:c.value.discipline_id,"onUpdate:modelValue":b[1]||(b[1]=ue=>c.value.discipline_id=ue),required:!0,options:t.disciplines,field:"discipline_id",label:"Discipline",errors:(C=o.value)==null?void 0:C.discipline_id},null,8,["modelValue","options","errors"])]),u("div",QW,[U(Ut,{modelValue:c.value.specialty_id,"onUpdate:modelValue":b[2]||(b[2]=ue=>c.value.specialty_id=ue),required:!0,options:_.value,field:"specialty_id",label:"Specialty",errors:(O=o.value)==null?void 0:O.specialty_id},null,8,["modelValue","options","errors"])]),u("div",ez,[U(Ut,{modelValue:c.value.endeavor_id,"onUpdate:modelValue":b[3]||(b[3]=ue=>c.value.endeavor_id=ue),required:!0,options:t.endeavors,field:"endeavor_id",label:"Current Endeavor",errors:(A=o.value)==null?void 0:A.endeavor_id},null,8,["modelValue","options","errors"])]),u("div",tz,[U(De,{modelValue:c.value.hrsa_grant_number,"onUpdate:modelValue":b[4]||(b[4]=ue=>c.value.hrsa_grant_number=ue),required:!1,field:"hrsa_grant_number",label:"HRSA Grant Number",errors:($=o.value)==null?void 0:$.hrsa_grant_number},null,8,["modelValue","errors"])]),u("div",sz,[U(De,{modelValue:c.value.acgme_id,"onUpdate:modelValue":b[5]||(b[5]=ue=>c.value.acgme_id=ue),required:!1,field:"acgme_id",label:"ACGME ID",errors:(T=o.value)==null?void 0:T.acgme_id},null,8,["modelValue","errors"])]),u("div",nz,[U(De,{modelValue:c.value.nrmp_id,"onUpdate:modelValue":b[6]||(b[6]=ue=>c.value.nrmp_id=ue),required:!1,field:"nrmp_id",label:"NRMP ID",errors:(D=o.value)==null?void 0:D.nrmp_id},null,8,["modelValue","errors"])]),u("div",iz,[U(De,{modelValue:c.value.name,"onUpdate:modelValue":b[7]||(b[7]=ue=>c.value.name=ue),required:!0,field:"name",label:"Name",errors:(B=o.value)==null?void 0:B.name},null,8,["modelValue","errors"])]),u("div",rz,[U(De,{modelValue:c.value.grantee_organization_name,"onUpdate:modelValue":b[8]||(b[8]=ue=>c.value.grantee_organization_name=ue),required:!1,field:"grantee_organization_name",label:"Grant Recipient Application Name",errors:(N=o.value)==null?void 0:N.grantee_organization_name},null,8,["modelValue","errors"])]),u("div",oz,[U(De,{modelValue:c.value.institution,"onUpdate:modelValue":b[9]||(b[9]=ue=>c.value.institution=ue),required:!0,field:"institution",label:"Accreditation Institution N
78ame",errors:(F=o.value)==null?void 0:F.institution},null,8,["modelValue","errors"])]),u("div",az,[U(De,{modelValue:c.value.street_address,"onUpdate:modelValue":b[10]||(b[10]=ue=>c.value.street_address=ue),required:!1,field:"street_address",label:"Grant Recipient Street Address",errors:(L=o.value)==null?void 0:L.street_address},null,8,["modelValue","errors"])]),u("div",lz,[U(De,{modelValue:c.value.city,"onUpdate:modelValue":b[11]||(b[11]=ue=>c.value.city=ue),required:!0,field:"city",label:"Grant Recipient City",errors:(Y=o.value)==null?void 0:Y.city},null,8,["modelValue","errors"])]),u("div",cz,[U(Ut,{modelValue:c.value.state_id,"onUpdate:modelValue":b[12]||(b[12]=ue=>c.value.state_id=ue),required:!0,options:t.states,field:"state_id",label:"Grant Recipient State",errors:(Z=o.value)==null?void 0:Z.state_id},null,8,["modelValue","options","errors"])]),u("div",uz,[U(De,{modelValue:c.value.zip,"onUpdate:modelValue":b[13]||(b[13]=ue=>c.value.zip=ue),required:!1,field:"zip",label:"Grant Recipient Zip Code",errors:(le=o.value)==null?void 0:le.zip},null,8,["modelValue","errors"])]),u("div",dz,[U(De,{modelValue:c.value.region,"onUpdate:modelValue":b[14]||(b[14]=ue=>c.value.region=ue),required:!1,field:"region",label:"Region",errors:(Ce=o.value)==null?void 0:Ce.region},null,8,["modelValue","errors"])]),u("div",fz,[U(np,{modelValue:c.value.multiselect_pi_id,"onUpdate:modelValue":b[15]||(b[15]=ue=>c.value.multiselect_pi_id=ue),"track-by":"id",required:!1,options:p.value,name:"multiselect_pi_id",id:"multiselect_pi_id",label:"label",errors:(Ee=o.value)==null?void 0:Ee.multiselect_pi_id,"allow-empty":!0,"input-label":"Principal Investigator",placeholder:"Select user"},null,8,["modelValue","options","errors"])]),u("div",hz,[U(np,{modelValue:c.value.multiselect_advisor_ids,"onUpdate:modelValue":b[16]||(b[16]=ue=>c.value.multiselect_advisor_ids=ue),"track-by":"id",required:!1,options:m.value,name:"multiselect_advisor_ids",id:"multiselect_advisor_ids",label:"label",errors:(he=o.value)==null?void 0:he.advisor_ids,"allow-empty":!0,"input-label":"Advisor(s)",multiple:!0,placeholder:"Select user(s)"},null,8,["modelValue","options","errors"])]),u("div",pz,[U(Ut,{modelValue:c.value.cohort_id,"onUpdate:modelValue":b[17]||(b[17]=ue=>c.value.cohort_id=ue),required:!0,options:t.cohorts,field:"cohort_id",label:"Cohort",errors:(ye=o.value)==null?void 0:ye.cohort_id},null,8,["modelValue","options","errors"])]),u("div",mz,[U(Ia,{modelValue:c.value.graduated_date,"onUpdate:modelValue":b[18]||(b[18]=ue=>c.value.graduated_date=ue),required:!1,field:"graduated_date",label:"Graduated Date",errors:(xe=o.value)==null?void 0:xe.graduated_date},null,8,["modelValue","errors"])]),u("div",gz,[U(Ia,{modelValue:c.value.relinquished_date,"onUpdate:modelValue":b[19]||(b[19]=ue=>c.value.relinquished_date=ue),required:!1,field:"relinquished_date",label:"Relinquished Date",errors:(_e=o.value)==null?void 0:_e.relinquished_date},null,8,["modelValue","errors"])]),u("div",_z,[U(Xs,{field:"achieved_rtp_designation_1",required:!1,modelValue:c.value.achieved_rtp_designation_1,"onUpdate:modelValue":b[20]||(b[20]=ue=>c.value.achieved_rtp_designation_1=ue),errors:(ze=o.value)==null?void 0:ze.achieved_rtp_designation_1,label:"Achieved ACGME RTP Designation 1"},null,8,["modelValue","errors"])]),u("div",vz,[U(Xs,{field:"achieved_rtp_designation_2",required:!1,modelValue:c.value.achieved_rtp_designation_2,"onUpdate:modelValue":b[21]||(b[21]=ue=>c.value.achieved_rtp_designation_2=ue),errors:(je=o.value)==null?void 0:je.achieved_rtp_designation_2,label:"Achieved ACGME RTP Designation 2"},null,8,["modelValue","errors"])]),u("div",bz,[U(Xs,{field:"separately_accredited",required:!1,modelValue:c.value.separately_accredited,"onUpdate:modelValue":b[22]||(b[22]=ue=>c.value.separately_accredited=ue),errors:(it=o.value)==null?void 0:it.separately_accredited,label:"Residency program is separately accredited"},null,8,["modelValue","errors"])]),u("div",yz,[U(Xs,{field:"should_display_profile",required:!1,modelValue:c.value.should_display_profile,"onUpdate:modelValue":b[23]||(b[23]=ue=>c.value.should_display_profile=ue),errors:(es=o.value)==null?void 0:es.should_display_profile,label:"Display program's profile publicly"},null,8,["modelValue","errors"])]),u("div",wz,[u("div",xz,[u("button",{class:Ve(["btn btn-primary w-100",{disabled:s.value}]),type:"submit",onClick:st(f,["prevent"]),"aria-disabled":s.value},[s.value?(y(),x(G,{key:0},[b[26]||(b[26]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),b[27]||(b[27]=re(" Saving... "))],64)):(y(),x(G,{key:1},[re(" Save Program ")],64))],10,Sz)])])])])],64))])])])}}},Cz={class:"container-md"},kz={class:"row justify-content-center"},Az={class:"col-12 col-md-10 col-lg-8 bg-white p-5"},$z={role:"status"},Tz={key:0,class:"text-center mt-4"},Oz={class:"d-flex justify-content-center mb-3"},Mz={class:"fs-3"},Pz={class:"row"},Dz={class:"col-12"},Rz={class:"mb-3 col-9 offset-1"},Iz={class:"mb-3 col-9 offset-1"},Lz={class:"mb-3 col-9 offset-1"},Nz={class:"mb-3 col-9 offset-1"},Vz={class:"mb-3 col-9 offset-1"},Fz={class:"mb-3 col-9 offset-1"},Bz={class:"mb-3 col-9 offset-1"},Uz={class:"mb-3 col-9 offset-1"},qz={class:"mb-3 col-9 offset-1"},Hz={class:"mb-3 col-9 offset-1"},jz={class:"mb-3 col-9 offset-1"},Wz={class:"mb-3 col-9 offset-1"},zz={class:"mb-3 col-9 offset-1"},Kz={class:"mb-3 col-9 offset-1"},Gz={class:"mb-3 col-9 offset-1"},Yz={class:"mb-3 col-9 offset-1"},Zz={class:"mb-3 col-9 offset-1"},Xz={class:"mb-3 col-9 offset-1"},Jz={class:"mb-3 col-9 offset-1"},Qz={class:"mb-3 col-9 offset-1"},eK={class:"mb-3 col-9 offset-1"},tK={class:"mb-3 col-9 offset-1"},sK={class:"mb-3 col-9 offset-1"},nK={class:"mb-3 col-9 offset-1"},iK={class:"mb-3 col-9 offset-1"},rK={class:"col-9 offset-1"},oK={class:"d-flex flex-row gap-2"},aK=["aria-disabled"],lK={__name:"ProgramEdit",props:{program:{type:Object,required:!0},cohorts:{type:Array,required:!0},endeavors:{type:Array,required:!0},leadershipUsers:{type:Array,required:!0},specialties:{type:Array,required:!0},disciplines:{type:Array,required:!0},programUsers:{type:Array,required:!0},states:{type:Array,required:!0}},setup(t){const e=t,s=W({_method:"PATCH",program_id:e.program.program_id,discipline_id:e.program.discipline_id,endeavor_id:e.program.endeavor_id,hrsa_grant_number:e.program.hrsa_grant_number,acgme_id:e.program.acgme_id,nrmp_id:e.program.nrmp_id,name:e.program.name,grantee_organization_name:e.program.grantee_organization_name,cohort_id:e.program.cohort_id,institution:e.program.institution,multiselect_pi_id:p(),multiselect_advisor_ids:m(),specialty_id:e.program.specialty_id,street_address:e.program.street_address,city:e.program.city,state_id:e.program.state_id,zip:e.program.zip,region:e.program.region,is_active:!!e.program.is_active,graduated_date:e.program.graduated_date,relinquished_date:e.program.relinquished_date,achieved_rtp_designation_1:!!e.program.achieved_rtp_designation_1,achieved_rtp_designation_2:!!e.program.achieved_rtp_designation_2,separately_accredited:!!e.program.separately_accredited,should_display_profile:!!e.program.should_display_profile}),n=W(!1),i=W(!1),r=W(!1),o=W({});async function a(){var _;if(!w(n))try{i.value=!1,o.value={},n.value=!0,s.value.pi_id=s.value.multiselect_pi_id?s.value.multiselect_pi_id.id:null,
78s.value.advisor_ids=s.value.multiselect_advisor_ids.length>0?s.value.multiselect_advisor_ids.map(S=>S.id):[];const v="/portal/admin/api/programs/"+e.program.id;let b=await axios.patch(v,w(s));r.value=!0}catch(v){(_=v.response.data)!=null&&_.errors&&(o.value=v.response.data.errors),i.value=!0,window.scrollTo(0,0)}finally{window.scrollTo(0,0),n.value=!1}}const c=te(()=>e.programUsers.map(_=>({label:_.last_name+", "+_.first_name+" ("+_.email+")",id:_.id}))),f=te(()=>e.leadershipUsers.map(_=>({label:_.last_name+", "+_.first_name+" ("+_.email+")",id:_.id}))),h=te(()=>e.specialties.filter(_=>s.value.discipline_id==_.discipline_id));function p(){return e.program.principal_investigator?{label:e.program.principal_investigator.last_name+", "+e.program.principal_investigator.first_name+" ("+e.program.principal_investigator.email+")",id:e.program.principal_investigator.id}:null}function m(){return e.program.advisors?e.program.advisors.map(_=>({label:_.last_name+", "+_.first_name+" ("+_.email+")",id:_.id})):[]}return Et(()=>s.value.discipline_id,_=>{s.value.specialty_id=null}),(_,v)=>{var b,S,C,O,A,$,T,D,B,N,F,L,Y,Z,le,Ce,Ee,he,ye,xe,_e,ze,je,it,es;return y(),x("div",Cz,[u("div",kz,[u("div",Az,[v[28]||(v[28]=u("a",{href:"/portal/admin/programs",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all programs")],-1)),u("div",$z,[r.value?(y(),x("div",Tz,v[25]||(v[25]=[u("h1",null,[u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"}),re(" Program updated.")],-1)]))):ie("",!0)]),r.value?ie("",!0):(y(),x(G,{key:0},[u("div",Oz,[u("h1",Mz,"Edit "+P(t.program.name),1)]),u("div",Pz,[u("div",Dz,[U(pr,{errors:o.value,show:i.value},null,8,["errors","show"])]),u("form",null,[u("div",Rz,[U(De,{modelValue:s.value.program_id,"onUpdate:modelValue":v[0]||(v[0]=ue=>s.value.program_id=ue),required:!0,field:"program_id",label:"Program ID",errors:(b=o.value)==null?void 0:b.program_id},null,8,["modelValue","errors"])]),u("div",Iz,[U(Ut,{modelValue:s.value.discipline_id,"onUpdate:modelValue":v[1]||(v[1]=ue=>s.value.discipline_id=ue),required:!0,options:t.disciplines,field:"discipline_id",label:"Discipline",errors:(S=o.value)==null?void 0:S.discipline_id},null,8,["modelValue","options","errors"])]),u("div",Lz,[U(Ut,{modelValue:s.value.specialty_id,"onUpdate:modelValue":v[2]||(v[2]=ue=>s.value.specialty_id=ue),required:!0,options:h.value,field:"specialty_id",label:"Specialty",errors:(C=o.value)==null?void 0:C.specialty_id},null,8,["modelValue","options","errors"])]),u("div",Nz,[U(Ut,{modelValue:s.value.endeavor_id,"onUpdate:modelValue":v[3]||(v[3]=ue=>s.value.endeavor_id=ue),required:!0,options:t.endeavors,field:"endeavor_id",label:"Current Endeavor",errors:(O=o.value)==null?void 0:O.endeavor_id},null,8,["modelValue","options","errors"])]),u("div",Vz,[U(De,{modelValue:s.value.hrsa_grant_number,"onUpdate:modelValue":v[4]||(v[4]=ue=>s.value.hrsa_grant_number=ue),required:!1,field:"hrsa_grant_number",label:"HRSA Grant Number",errors:(A=o.value)==null?void 0:A.hrsa_grant_number},null,8,["modelValue","errors"])]),u("div",Fz,[U(De,{modelValue:s.value.acgme_id,"onUpdate:modelValue":v[5]||(v[5]=ue=>s.value.acgme_id=ue),required:!1,field:"acgme_id",label:"ACGME ID",errors:($=o.value)==null?void 0:$.acgme_id},null,8,["modelValue","errors"])]),u("div",Bz,[U(De,{modelValue:s.value.nrmp_id,"onUpdate:modelValue":v[6]||(v[6]=ue=>s.value.nrmp_id=ue),required:!1,field:"nrmp_id",label:"NRMP ID",errors:(T=o.value)==null?void 0:T.nrmp_id},null,8,["modelValue","errors"])]),u("div",Uz,[U(De,{modelValue:s.value.name,"onUpdate:modelValue":v[7]||(v[7]=ue=>s.value.name=ue),required:!0,field:"name",label:"Name",errors:(D=o.value)==null?void 0:D.name},null,8,["modelValue","errors"])]),u("div",qz,[U(De,{modelValue:s.value.grantee_organization_name,"onUpdate:modelValue":v[8]||(v[8]=ue=>s.value.grantee_organization_name=ue),required:!1,field:"grantee_organization_name",label:"Grant Recipient Application Name",errors:(B=o.value)==null?void 0:B.grantee_organization_name},null,8,["modelValue","errors"])]),u("div",Hz,[U(De,{modelValue:s.value.institution,"onUpdate:modelValue":v[9]||(v[9]=ue=>s.value.institution=ue),required:!0,field:"institution",label:"Accreditation Institution N
78ame",errors:(N=o.value)==null?void 0:N.institution},null,8,["modelValue","errors"])]),u("div",jz,[U(De,{modelValue:s.value.street_address,"onUpdate:modelValue":v[10]||(v[10]=ue=>s.value.street_address=ue),required:!1,field:"street_address",label:"Grant Recipient Street Address",errors:(F=o.value)==null?void 0:F.street_address},null,8,["modelValue","errors"])]),u("div",Wz,[U(De,{modelValue:s.value.city,"onUpdate:modelValue":v[11]||(v[11]=ue=>s.value.city=ue),required:!0,field:"city",label:"Grant Recipient City",errors:(L=o.value)==null?void 0:L.city},null,8,["modelValue","errors"])]),u("div",zz,[U(Ut,{modelValue:s.value.state_id,"onUpdate:modelValue":v[12]||(v[12]=ue=>s.value.state_id=ue),required:!0,options:t.states,field:"state_id",label:"Grant Recipient State",errors:(Y=o.value)==null?void 0:Y.state_id},null,8,["modelValue","options","errors"])]),u("div",Kz,[U(De,{modelValue:s.value.zip,"onUpdate:modelValue":v[13]||(v[13]=ue=>s.value.zip=ue),required:!1,field:"zip",label:"Grant Recipient Zip Code",errors:(Z=o.value)==null?void 0:Z.zip},null,8,["modelValue","errors"])]),u("div",Gz,[U(De,{modelValue:s.value.region,"onUpdate:modelValue":v[14]||(v[14]=ue=>s.value.region=ue),required:!1,field:"region",label:"Region",errors:(le=o.value)==null?void 0:le.region},null,8,["modelValue","errors"])]),u("div",Yz,[U(np,{modelValue:s.value.multiselect_pi_id,"onUpdate:modelValue":v[15]||(v[15]=ue=>s.value.multiselect_pi_id=ue),"track-by":"id",required:!1,options:c.value,name:"multiselect_pi_id",id:"multiselect_pi_id",label:"label",errors:(Ce=o.value)==null?void 0:Ce.multiselect_pi_id,"allow-empty":!0,"input-label":"Principal Investigator",placeholder:"Select user"},null,8,["modelValue","options","errors"])]),u("div",Zz,[U(np,{modelValue:s.value.multiselect_advisor_ids,"onUpdate:modelValue":v[16]||(v[16]=ue=>s.value.multiselect_advisor_ids=ue),"track-by":"id",required:!1,options:f.value,name:"multiselect_advisor_ids",id:"multiselect_advisor_ids",label:"label",errors:(Ee=o.value)==null?void 0:Ee.advisor_ids,"allow-empty":!0,"input-label":"Advisor(s)",multiple:!0,placeholder:"Select user(s)"},null,8,["modelValue","options","errors"])]),u("div",Xz,[U(Ut,{modelValue:s.value.cohort_id,"onUpdate:modelValue":v[17]||(v[17]=ue=>s.value.cohort_id=ue),required:!0,options:t.cohorts,field:"cohort_id",label:"Cohort",errors:(he=o.value)==null?void 0:he.cohort_id},null,8,["modelValue","options","errors"])]),u("div",Jz,[U(Ia,{modelValue:s.value.graduated_date,"onUpdate:modelValue":v[18]||(v[18]=ue=>s.value.graduated_date=ue),required:!1,field:"graduated_date",label:"Graduated Date",errors:(ye=o.value)==null?void 0:ye.graduated_date},null,8,["modelValue","errors"])]),u("div",Qz,[U(Ia,{modelValue:s.value.relinquished_date,"onUpdate:modelValue":v[19]||(v[19]=ue=>s.value.relinquished_date=ue),required:!1,field:"relinquished_date",label:"Relinquished Date",errors:(xe=o.value)==null?void 0:xe.relinquished_date},null,8,["modelValue","errors"])]),u("div",eK,[U(Xs,{field:"achieved_rtp_designation_1",required:!1,modelValue:s.value.achieved_rtp_designation_1,"onUpdate:modelValue":v[20]||(v[20]=ue=>s.value.achieved_rtp_designation_1=ue),errors:(_e=o.value)==null?void 0:_e.achieved_rtp_designation_1,label:"Achieved ACGME RTP Designation 1"},null,8,["modelValue","errors"])]),u("div",tK,[U(Xs,{field:"achieved_rtp_designation_2",required:!1,modelValue:s.value.achieved_rtp_designation_2,"onUpdate:modelValue":v[21]||(v[21]=ue=>s.value.achieved_rtp_designation_2=ue),errors:(ze=o.value)==null?void 0:ze.achieved_rtp_designation_2,label:"Achieved ACGME RTP Designation 2"},null,8,["modelValue","errors"])]),u("div",sK,[U(Xs,{field:"separately_accredited",required:!1,modelValue:s.value.separately_accredited,"onUpdate:modelValue":v[22]||(v[22]=ue=>s.value.separately_accredited=ue),errors:(je=o.value)==null?void 0:je.separately_accredited,label:"Residency program is separately accredited"},null,8,["modelValue","errors"])]),u("div",nK,[U(Xs,{field:"should_display_profile",required:!1,modelValue:s.value.should_display_profile,"onUpdate:modelValue":v[23]||(v[23]=ue=>s.value.should_display_profile=ue),errors:(it=o.value)==null?void 0:it.should_display_profile,label:"Display program's profile publicly"},null,8,["modelValue","errors"])]),u("div",iK,[U(Xs,{field:"is_active",required:!1,modelValue:s.value.is_active,"onUpdate:modelValue":v[24]||(v[24]=ue=>s.value.is_active=ue),errors:(es=o.value)==null?void 0:es.is_active,label:"Program is active"},null,8,["modelValue","errors"])]),u("div",rK,[u("div",oK,[u("button",{class:Ve(["btn btn-primary w-100",{disabled:n.value}]),type:"submit",onClick:st(a,["prevent"]),"aria-disabled":n.value},[n.value?(y(),x(G,{key:0},[v[26]||(v[26]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"}
78,null,-1)),v[27]||(v[27]=re(" Saving... "))],64)):(y(),x(G,{key:1},[re(" Save Program ")],64))],10,aK)])])])])],64))])])])}}},ky=hi("adminAssessments",()=>{const t=W([]),e=W([]),s=W([]),n=W({}),i=W(!1),r=W(!1),o=W(!1),a={id:""},c=W({...a}),f="assessments-table",h=["Period","Cohort","Program","Due Date","Submitted Date"],p=[{key:"period",label:"Period",orderField:"assessment_period.name"},{key:"cohort",label:"Cohort",orderField:"cohort.name"},{key:"program",label:"Program",orderField:"program.name"},{key:"status",label:"Status",orderField:"status"},{key:"due_date",label:"Due Date",orderField:"due_date"},{key:"submitted_date",label:"Submitted Date",orderField:"submitted_date"},{key:"actions",label:"Actions",class:"text-nowrap"}],m=te(()=>{const N=[{text:"All Cohorts",value:"all"},...e.value.map(Y=>({text:Y.name,value:Y.id}))],F=[{text:"All Programs",value:"all"},...s.value.map(Y=>({text:Y.name,value:Y.id}))];return[{type:"radio",label:"Period",model:"assessment_periods",options:[{text:"All Periods",value:"all"},...n.value.map(Y=>({text:`${Y.name} ${Y.endeavor.name}`,value:Y.id}))]},{type:"radio",label:"Cohort",model:"cohorts",options:N},{type:"radio",label:"Program",model:"programs",options:F},{type:"radio",label:"Status",model:"status",options:[{text:"All Statuses",value:"all"},{text:"Incomplete",value:"incomplete"},{text:"Submitted",value:"submitted"}]}]}),_=W({status:"all",cohorts:"all",programs:"all",assessment_periods:"all"});function v(N){var F,L,Y;return{id:N.id,period:((F=N.assessment_period)==null?void 0:F.name)+" "+((L=N.endeavor)==null?void 0:L.name),cohort:(Y=N.program.cohort)==null?void 0:Y.name,program:N.program.name,status:N.submitted_at?"Submitted":"Incomplete",due_date:N.due_date,submitted_date:N.submitted_at}}const b=im("/portal/admin/api/assessments",p[0],_,v);async function S(){i.value=!0,D();const N="/portal/admin/api/assessments/"+c.value.id;try{const F=await axios.delete(N);r.value=!1,T(),b.fetchData()}catch(F){F.response&&F.response.status==422&&(t.value=F.response.data.errors)}finally{i.value=!1}}async function C(){i.value=!0,D();const N="/portal/admin/api/assessments/"+c.value.id+"/reopen";try{const F=await axios.patch(N);o.value=!1,T(),b.fetchData()}catch(F){F.response&&F.response.status==422&&(t.value=F.response.data.errors)}finally{i.value=!1}}async function O(N){c.value={...N},r.value=!0}async function A(N){c.value={...N},o.value=!0}function $(){T()}function T(){c.value={...a},D()}function D(){t.value={}}function B(N){return t.value[N]!=null}return b.fetchData(),{...b,cohorts:e,programs:s,assessmentPeriods:n,errors:t,formData:c,isSaving:i,showDeleteModal:r,showReopenModal:o,datatableId:f,searchableFields:h,fields:p,filterDefinitions:m,defaultFilters:_,modalHidden:$,hasError:B,deleteAssessment:S,reopenAssessment:C,openDeleteModal:O,openReopenModal:A}}),cK=["aria-labelledby","aria-hidden"],uK={class:"modal-content"},dK={class:"modal-header"},fK=["id"],hK={class:"modal-body"},pK={class:"modal-footer"},mK={__name:"Modal",props:{show:{type:Boolean,default:!1},title:{type:String,default:"Modal Title"},modalId:{type:String,required:!0},cancelButtonLabel:{type:String,default:"Close"},saveButtonLabel:{type:String,default:"Save"},showSaveButton:{type:Boolean,default:!0},size:{type:String,default:"default"}},emits:["update:show","closed","saved"],setup(t,{emit:e}){const s=t,n=e,i=W(null),r=te(()=>`${s.modalId}Label`);let o=null;const a=m=>m?Array.from(m.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(_=>_.offsetWidth>0||_.offsetHeight>0):[],c=m=>{if(!i.value||!s.show)return;const _=a(i.value);if(_.length===0)return;const v=_[0],b=_[_.length-1];m.shiftKey?(document.activeElement===v||!i.value.contains(document.activeElement))&&(b.focus(),m.preventDefault()):(document.activeElement===b||!i.value.contains(document.activeElement))&&(v.focus(),m.preventDefault())};Et(()=>s.show,async(m,_)=>{if(m){if(o=document.activeElement,document.body.classList.add("modal-open"),await Xr(),i.value){i.value.focus();const v=a(i.value)[0];v&&v.focus()}}else _&&(document.body.classList.remove("modal-open"),o&&typeof o.focus=="function"&&o.focus(),n("closed"))});const f=()=>{n("update:show",!1)},h=m=>{n("saved",m)},p=te(()=>{let m="";switch(s.size){case"sm":m="modal-sm";break;case"lg":m="modal-lg";break;case"xl":m="modal-xl";break;default:m=""}return m});return Wa(()=>{document.body.classList.remove("modal-open")}),(m,_)=>(y(),tt($b,{to:"body"},[U(Uu,{name:"fade"},{default:Fe(()=>[t.show?(y(),x("div",{key:0,class:Ve(["modal",{"d-block":t.show,show:t.show}]),tabindex:"-1","aria-labelledby":r.value,"aria-hidden":!t.show,ref_key:"modalElement",ref:i,onClick:st(f,["self"]),onKeydown:[Bn(f,["esc"]),Bn(c,["tab"])]},[u("div",{class:Ve(["modal-dialog",p.value])},[u("div",uK,[u("div",dK,[u("h1",{class:"modal-title fs-5",id:r.value},P(t.title),9,fK),u("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:f})]),u("div",hK,[Ft(m.$slots,"default",{},void 0,!0)]),u("div",pK,[Ft(m.$slots,"footer",{closeModal:f,saveChanges:h},()=>[u("button",{type:"button",class:"btn btn-secondary",onClick:f},P(t.cancelButtonLabel),1),t.showSaveButton?(y(),x("button",{key:0,t
78ype:"button",class:"btn btn-primary",onClick:h},P(t.saveButtonLabel),1)):ie("",!0)],!0)])])],2)],42,cK)):ie("",!0)]),_:3})]))}},Ri=ds(mK,[["__scopeId","data-v-0d5c595b"]]),gK={class:"container-fluid"},_K={class:"row"},vK={class:"col"},bK={class:"p-2 bg-light list-unstyled"},yK=["onClick","disabled"],wK=["disabled"],xK={__name:"AssessmentDeleteModal",setup(t){const e=ky(),{isSaving:s,errors:n,formData:i,showDeleteModal:r}=Qe(e);return(o,a)=>(y(),tt(Ri,{show:w(r),"onUpdate:show":a[1]||(a[1]=c=>r.value=c),title:"Deleting Assessment",modalId:"deleteAssessmentModal",onClosed:w(e).modalHidden,onSaved:a[2]||(a[2]=c=>w(e).deleteAssessment(c))},{footer:Fe(({closeModal:c})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:c,disabled:w(s)}," Cancel ",8,yK),u("button",{type:"submit",form:"deleteAssessmentForm",class:"btn btn-danger",disabled:w(s)},P(w(s)?"Deleting...":"Delete Assessment"),9,wK)]),default:Fe(()=>[u("div",gK,[u("form",{id:"deleteAssessmentForm",class:"d-flex flex-column gap-3",onSubmit:a[0]||(a[0]=st((...c)=>w(e).deleteAssessment&&w(e).deleteAssessment(...c),["prevent"]))},[u("div",_K,[u("div",vK,[a[6]||(a[6]=u("p",null,"Are you sure you want to delete this assessment? This action cannot be undone.",-1)),u("ul",bK,[u("li",null,[a[3]||(a[3]=u("span",{class:"fw-bold"},"Program:",-1)),re(" "+P(w(i).program),1)]),u("li",null,[a[4]||(a[4]=u("span",{class:"fw-bold"},"Assessment:",-1)),re(" "+P(w(i).period),1)]),u("li",null,[a[5]||(a[5]=u("span",{class:"fw-bold"},"Due Date:",-1)),re(" "+P(w(i).due_date),1)])])])])],32)])]),_:1},8,["show","onClosed"]))}},SK={class:"container-fluid"},EK={class:"row"},CK={class:"col"},kK={class:"p-2 bg-light list-unstyled"},AK=["onClick","disabled"],$K=["disabled"],TK={__name:"AssessmentReopenModal",setup(t){const e=ky(),{isSaving:s,errors:n,formData:i,showReopenModal:r}=Qe(e);return(o,a)=>(y(),tt(Ri,{show:w(r),"onUpdate:show":a[1]||(a[1]=c=>r.value=c),title:"Reopening Assessment",modalId:"reopenAssessmentModal",onClosed:w(e).modalHidden,onSaved:a[2]||(a[2]=c=>w(e).reopenAssessment(c))},{footer:Fe(({closeModal:c})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:c,disabled:w(s)}," Cancel ",8,AK),u("button",{type:"submit",form:"reopenAssessmentForm",class:"btn btn-primary",disabled:w(s)},P(w(s)?"Reopening...":"Reopen Assessment"),9,$K)]),default:Fe(()=>[u("div",SK,[u("form",{id:"reopenAssessmentForm",class:"d-flex flex-column gap-3",onSubmit:a[0]||(a[0]=st((...c)=>w(e).reopenAssessment&&w(e).reopenAssessment(...c),["prevent"]))},[u("div",EK,[u("div",CK,[a[7]||(a[7]=u("p",null,"Are you sure you want to reopen this assessment?",-1)),u("ul",kK,[u("li",null,[a[3]||(a[3]=u("span",{class:"fw-bold"},"Program:",-1)),re(" "+P(w(i).program),1)]),u("li",null,[a[4]||(a[4]=u("span",{class:"fw-bold"},"Assessment:",-1)),re(" "+P(w(i).period),1)]),u("li",null,[a[5]||(a[5]=u("span",{class:"fw-bold"},"Due Date:",-1)),re(" "+P(w(i).due_date),1)]),u("li",null,[a[6]||(a[6]=u("span",{class:"fw-bold"},"Submitted:",-1)),re(" "+P(w(i).submitted_date),1)])])])])],32)])]),_:1},8,["show","onClosed"]))}},OK={class:"container-fluid px-4"},MK={class:"d-flex flex-column justify-content-center gap-2"},PK=["onClick","aria-label"],DK=["href","aria-label"],RK=["onClick","aria-label"],IK={__name:"AssessmentList",props:{cohorts:{type:Object,default:{}},programs:{type:Object,default:{}},assessmentPeriods:{type:Object,default:{}}},setup(t){const e=t,s=ky();return W(!1),Ds(()=>{s.cohorts=e.cohorts,s.programs=e.programs,s.assessmentPeriods=e.assessmentPeriods}),(n,i)=>(y(),x("div",OK,[i[8]||(i[8]=u("div",{class:"d-flex flex-row align-items-center justify-content-between mb-3"},[u("h1",null,"Assessments"),u("a",{href:"/portal/admin/assessments/create",class:"btn btn-primary"},"Create New Assessment")],-1)),u("div",MK,[U(rm,{"order-by":w(s).orderBy,"onUpdate:orderBy":i[0]||(i[0]=r=>w(s).orderBy=r),"order-direction":w(s).orderDirection,"onUpdate:orderDirection":i[1]||(i[1]=r=>w(s).orderDirection=r),filters:w(s).filters,"onUpdate:filters":i[2]||(i[2]=r=>w(s).filters=r),"datatable-id":w(s).datatableId,items:w(s).items,fields:w(s).fields,loading:w(s).isLoading,meta:w(s).meta,"search-criteria":w(s).searchableFields,"filter-definitions":w(s).filterDefinitions,"default-filters":w(s).defaultFilters,onUpdateSort:w(s).sortUpdateHandler,onUpdateSearch:w(s).searchUpdateHandler,onUpdateFilter:w(s).filterUpdateHandler,onResetFilters:w(s).resetFiltersHandler},{actions:Fe(({item:r})=>[r.submitted_date?(y(),x("button",{key:0,class:"btn btn-link p-0 text-primary text-decoration-none fs-base",onClick:o=>w(s).openReopenModal(r),"aria-label":"Reopen assessment "+r.id},i[5]||(i[5]=[u("i",{class:"bi bi-arrow-counterclockwise","aria-hidden":"true"},null,-1),re("Reopen")]),8,PK)):ie("",!0),r.submitted_date?ie("",!0):(y(),x("a",{key:1,href:"/portal/admin/assessments/"+r.id+"/edit",class:"link-primary py-2 px-1","aria-label":"Edit assessment "+r.id},i[6]||(i[6]=[u("i",{class:"bi bi-pencil-fill","aria-hidden":"true"},null,-1),re(" Edit")]),8,DK)),r.submitted_date?ie("",!0):(y(),x("button",{key:2,class:"btn btn-link p-0 text-danger text-decoration-none fs-base",onClick:o=>w(s).openDeleteModal(r),"aria-label":"Delete assessment "+r.id},i[7]||(i[7]=[u("i",{class:"bi bi-trash-fill","aria-hidden":"true"},null,-1),re("Delete")]),8,RK))]),_:1},8,["order-by","order-direction","filters","datatable-id","items","fields","loading","meta","search-criteria","filter-definitions","default-filters","onUpdateSort","onUpdateSearch","onUpdateFilter","onResetFilters"]),U(om,{onGoToPage:w(s).fetchData,"per-page":w(s).perPage,"onUpdate:perPage":i[3]||(i[3]=r=>w(s).perPage=r),"current-page":w(s).currentPage,"onUpdate:currentPage":i[4]||(i[4]=r=>w(s).currentPage=r),"datatable-id":w(s).datatableId,from:w(s).meta.from,to:w(s).meta.to,total:w(s).meta.total,totalPages:w(s).meta.last_page},null,8,["onGoToPage","per-page","current-page","datatable-id","from","to","total","totalPages"])]),U(xK),U(TK)]))}},LK={class:"form-check"},NK=["id","required","aria-describedby","value","name"],VK=["for"],FK={__name:"RadioInput",props:Nt({field:{type:String,required:!0},label:{type:String,required:!0},item:{type:Object,required:!0},required:{type:Boolean,default:!1},errors:{type:Array,default:[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>s.errors.length>0);return(i,r)=>(y(),x("div",LK,[Ge(u("input",{type:"radio",class:Ve(["form-check-input border border-secondary",{"is-invalid":n.value}]),id:t.field+"-"+t.item.id,required:t.required,"aria-describedby":t.field+"_error",value:t.item.id,"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),name:t.field},null,10,NK),[[Ps,e.value]]),u("label",{for:t.field+"-"+t.item.id,class:"form-check-label w-100"},P(t.label),9,VK)]))}},BK=["for"],UK={key:0,"aria-hidden":"true",class:"text-danger"},qK={class:"d-grid gap-2"},U2={__name:"RadioGroup",props:Nt({field:{type:String,required:!0},label:{type:String,required:!0},options:{type:Array,required:!0},required:{type:Boolean,default:!1},errors:{type:Array,default:[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>s.errors.length>0);return(i,r)=>(y(),x("fieldset",null,[u("legend",{for:t.field+"Id",class:"form-label fs-6"},[re(P(t.label)+" ",1),t.required?(y(),x("span",UK,"*")):ie("",!0)],8,BK),u("div",qK,[(y(!0),x(G,null,ge(t.options,o=>(y(),x("div",{key:o.id,class:Ve(["p-2 border rounded",[n.value?"border-danger":"border-primary-subtle"]])},[U(FK,{modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=a=>e.value=a),item:o,field:t.field,label:o.name},null,8,["modelValue","item","field","label"])],2))),128))]),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])]))}},HK={class:"container-md"},jK={class:"row justify-content-center"},WK={class:"col-12 col-md-10 col-lg-8 bg-white p-5"},zK={role:"status"},KK={key:0,class:"text-center mt-4"},GK={class:"row"},YK={class:"col-12"},ZK={class:"mb-3 col-8 offset-2"},XK={key:0,class:"mb-3 col-8 offset-2"},JK={key:1,class:"mb-3 col-8 offset-2"},QK={class:"mb-3 col-8 offset-2"},eG={class:"mb-3 col-8 offset-2"},tG={class:"bg-secondary bg-opacity-10 p-3 rounded-1"},sG={class:"mb-3"},nG={class:"visually-hidden"},iG={class:"row g-2 align-items-start"},rG={class:"col-md-7"},oG={class:"col-md-4"},aG={class:"col-md-1 align-self-center"},lG=["onClick"],cG={class:"col-8 offset-2"},uG={class:"d-flex flex-row gap-2"},dG=["aria-disabled"],fG={__name:"AssessmentCreate",props:{cohorts:{type:Array,required:!0},endeavors:{type:Array,required:!0}},setup(t){const e={cohort_id:null,program_id:null,endeavor_id:null,recipient:null,assessments:[{assessment_period_id:null,due_date:null}]},s=W(!1),n=W(!1),i=W(!1),r=W({});W([0]),W(1);const o=t,a=W({...e});
78function c(){a.value.assessments.push({assessment_period_id:null,due_date:null})}function f(S){S!=0&&a.value.assessments.splice(S,1)}async function h(){var S;if(!w(s))try{s.value=!0,n.value=!1,i.value=!1,r.value={};const O=await axios.post("/portal/admin/api/assessments/bulk",w(a));i.value=!0}catch(C){(S=C.response.data)!=null&&S.errors&&(r.value=C.response.data.errors),n.value=!0}finally{window.scrollTo(0,0),s.value=!1}}const p=te(()=>o.cohorts.map(S=>({label:S.name,options:S.programs.map(C=>({id:C.id,name:C.name}))}))),m=te(()=>o.cohorts.map(S=>({name:S.name,id:S.id}))),_=te(()=>o.endeavors.map(S=>({name:S.name,id:S.id}))),v=te(()=>{const S=w(o.endeavors).find(C=>C.id==a.value.endeavor_id);return S?S.assessment_periods.map(C=>({name:C.name,id:C.id})):[]}),b=te(()=>[{id:"cohort",name:"Cohort"},{id:"program",name:"Program"}]);return(S,C)=>{var O,A,$,T,D;return y(),x("div",HK,[u("div",jK,[u("div",WK,[C[9]||(C[9]=u("a",{href:"/portal/admin/assessments",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all assessments")],-1)),u("div",zK,[i.value?(y(),x("div",KK,C[4]||(C[4]=[u("h1",null,[u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"}),re(" Assessment successfully created.")],-1)]))):ie("",!0)]),i.value?ie("",!0):(y(),x(G,{key:0},[C[8]||(C[8]=u("div",{class:"d-flex justify-content-center mb-3"},[u("h1",{class:"fs-3"},"Create New Assessment")],-1)),u("div",GK,[u("div",YK,[U(pr,{errors:r.value,show:n.value},null,8,["errors","show"])]),u("form",null,[u("div",ZK,[U(U2,{modelValue:a.value.recipient,"onUpdate:modelValue":C[0]||(C[0]=B=>a.value.recipient=B),field:"recipient",label:"Recipient",errors:(O=r.value)==null?void 0:O.recipient,options:b.value,required:!0},null,8,["modelValue","errors","options"])]),a.value.recipient=="cohort"?(y(),x("div",XK,[U(Ut,{modelValue:a.value.cohort_id,"onUpdate:modelValue":C[1]||(C[1]=B=>a.value.cohort_id=B),required:a.value.recipient=="cohort",options:m.value,field:"cohort_id",label:"Cohort",errors:(A=r.value)==null?void 0:A.cohort_id},null,8,["modelValue","required","options","errors"])])):ie("",!0),a.value.recipient=="program"?(y(),x("div",JK,[U(Ut,{modelValue:a.value.program_id,"onUpdate:modelValue":C[2]||(C[2]=B=>a.value.program_id=B),required:a.value.recipient=="program",options:p.value,field:"program_id",label:"Program",errors:($=r.value)==null?void 0:$.program_id},null,8,["modelValue","required","options","errors"])])):ie("",!0),u("div",QK,[U(U2,{modelValue:a.value.endeavor_id,"onUpdate:modelValue":C[3]||(C[3]=B=>a.value.endeavor_id=B),field:"endeavor_id",label:"Type",errors:(T=r.value)==null?void 0:T.endeavor_id,options:_.value,required:!0},null,8,["modelValue","errors","options"])]),u("div",eG,[u("fieldset",tG,[C[5]||(C[5]=ci('<legend class="fs-6">Assessments <span aria-hidden="true" class="text-danger">*</span></legend><div class="row mb-2 d-none d-md-flex" aria-hidden="true"><div class="col-md-7">Assessment Period</div><div class="col-md-4">Due Date</div><div class="col-md-1"></div></div>',2)),(y(!0),x(G,null,ge(a.value.assessments,(B,N)=>{var F,L;return y(),x("fieldset",sG,[u("legend",nG,"Assessment "+P(N+1),1),u("div",iG,[u("div",rG,[U(Ut,{modelValue:a.value.assessments[N].assessment_period_id,"onUpdate:modelValue":Y=>a.value.assessments[N].assessment_period_id=Y,required:!0,options:v.value,field:`assessments.${N}.assessment_period_id`,label:"Assessment Period","label-class":"visually-hidden",errors:(F=r.value)==null?void 0:F[`assessments.${N}.assessment_period_id`]},null,8,["modelValue","onUpdate:modelValue","options","field","errors"])]),u("div",oG,[U(Ia,{modelValue:a.value.assessments[N].due_date,"onUpdate:modelValue":Y=>a.value.assessments[N].due_date=Y,required:!0,field:`assessments.${N}.due_date`,label:"Due Date","label-class":"visually-hidden",errors:(L=r.value)==null?void 0:L[`assessments.${N}.due_date`]},null,8,["modelValue","onUpdate:modelValue","field","errors"])]),u("div",aG,[N!=0?(y(),x("button",{key:0,type:"button",class:"btn w-100 btn-close","aria-label":"Remove Assessment {{ idx+1 }}",onClick:Y=>f(N)},null,8,lG)):ie("",!0)])])])}),256)),U(pn,{errors:(D=r.value)==null?void 0:D.assessments,field:"assessments"},null,8,["errors"]),u("button",{type:"button",class:"btn btn-link",i
78d:"add-row",onClick:c},"+ Add Another Assessment")])]),u("div",cG,[u("div",uG,[u("button",{class:Ve(["btn btn-primary w-100",{disabled:s.value}]),type:"submit",onClick:st(h,["prevent"]),"aria-disabled":s.value},[s.value?(y(),x(G,{key:0},[C[6]||(C[6]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),C[7]||(C[7]=re(" Saving... "))],64)):(y(),x(G,{key:1},[re(" Save Assessment ")],64))],10,dG)])])])])],64))])])])}}},hG={class:"container-md"},pG={class:"row justify-content-center"},mG={class:"col-12 col-md-10 col-lg-8 col-xxl-6 bg-white p-5"},gG={role:"status"},_G={key:0,class:"text-center mt-4"},vG={class:"d-flex flex-column align-items-center justify-content-center my-3"},bG={class:"fs-3"},yG={class:"fs-4"},wG={class:"row"},xG={class:"col-12"},SG={class:"mb-3 col-8 offset-2"},EG={class:"mb-3 col-8 offset-2"},CG={class:"mb-3 col-8 offset-2"},kG={class:"col-8 offset-2"},AG={class:"d-flex flex-row gap-2"},$G=["aria-disabled"],TG={__name:"AssessmentEdit",props:{assessment:{type:Object,required:!0}},setup(t){const e=t,s=W(!1),n=W(!1),i=W(!1),r=W({}),o=W({assessment_period_id:e.assessment.assessment_period_id,due_date:e.assessment.due_date,available_date:e.assessment.available_date}),a=te(()=>e.assessment.endeavor?e.assessment.endeavor.assessment_periods.map(f=>({name:f.name,id:f.id})):[]);async function c(){var f;if(!w(s))try{n.value=!1,r.value={},s.value=!0;const h="/portal/admin/api/assessments/"+e.assessment.id;let p=await axios.patch(h,w(o));i.value=!0}catch(h){(f=h.response.data)!=null&&f.errors&&(r.value=h.response.data.errors),n.value=!0}finally{window.scrollTo(0,0),s.value=!1}}return(f,h)=>{var p,m,_,v,b;return y(),x("div",hG,[u("div",pG,[u("div",mG,[h[6]||(h[6]=u("a",{href:"/portal/admin/assessments",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to all assessments")],-1)),u("div",gG,[i.value?(y(),x("div",_G,h[3]||(h[3]=[u("h1",null,[u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"}),re(" Assessment updated.")],-1)]))):ie("",!0)]),i.value?ie("",!0):(y(),x(G,{key:0},[u("div",vG,[u("h1",bG,"Edit "+P((p=t.assessment.endeavor)==null?void 0:p.name)+" Assessment",1),u("span",yG,P((m=t.assessment.program)==null?void 0:m.name),1)]),u("div",wG,[u("div",xG,[U(pr,{errors:r.value,show:n.value},null,8,["errors","show"])]),u("form",null,[u("div",SG,[U(Ut,{modelValue:o.value.assessment_period_id,"onUpdate:modelValue":h[0]||(h[0]=S=>o.value.assessment_period_id=S),required:!0,options:a.value,field:"assessment_period_id",label:"Assessment Period",errors:(_=r.value)==null?void 0:_.assessment_period_id},null,8,["modelValue","options","errors"])]),u("div",EG,[U(Ia,{modelValue:o.value.available_date,"onUpdate:modelValue":h[1]||(h[1]=S=>o.value.available_date=S),required:!0,field:"available_date",label:"Available Date",errors:(v=r.value)==null?void 0:v.available_date},null,8,["modelValue","errors"])]),u("div",CG,[U(Ia,{modelValue:o.value.due_date,"onUpdate:modelValue":h[2]||(h[2]=S=>o.value.due_date=S),required:!0,field:"due_date",label:"Due Date",errors:(b=r.value)==null?void 0:b.due_date},null,8,["modelValue","errors"])]),u("div",kG,[u("div",AG,[u("button",{class:Ve(["btn btn-primary w-100",{disabled:s.value}]),type:"submit",onClick:st(c,["prevent"]),"aria-disabled":s.value},[s.value?(y(),x(G,{key:0},[h[4]||(h[4]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),h[5]||(h[5]=re(" Saving... "))],64)):(y(),x(G,{key:1},[re(" Save Changes ")],64))],10,$G)])])])])],64))])])])}}},OG={class:"table table-hover"},MG={class:"table-light fw-bold"},PG={key:0},DG=["colspan"],t$={__name:"TableLite",props:{items:{type:Array,required:!0},fields:{type:Array,required:!0},loading:{type:Boolean,default:!1}},setup(t){return(e,s)=>(y(),x("table",OG,[u("thead",MG,[u("tr",null,[(y(!0),x(G,null,ge(t.fields,n=>(y(),x("th",{key:n.key,scope:"col"},[u("span",{class:Ve({"visually-hidden":n.visible===!1})},P(n.label),3)]))),128))])]),u("tbody",null,[!t.loading&&t.items.length==0?(y(),x("tr",PG,[u("td",{colspan:t.fields.length},[Ft(e.$slots,"emptyState",{},()=>[s[0]||(s[0]=u("div",{class:"text-center fs-5"},"No results found",-1))])],8,DG)])):(y(!0),x(G,{key:1},ge(t.items,(n,i)=>(y(),x("tr",{key:"item"+i},[(y(!0),x(G,null,ge(t.fields,r=>(y(),x("td",{key:"item"+i+"_"+r.key},[Ft(e.$slots,r.key,{item:n,field:r},()=>{var o;
78return[re(P(((o=n[r.key])==null?void 0:o.toString().length)>0?n[r.key]:""),1)]})]))),128))]))),128))])]))}},RG={class:"container-fluid px-4"},IG={key:0,class:"row g-3 mb-3"},LG=["for"],NG=["id","onUpdate:modelValue"],VG=["value"],FG={class:"col-md-3 d-flex align-items-end mb-2"},BG={class:"form-check form-check-reverse form-switch mb-0"},UG=["checked"],qG={class:"ms-1",id:"status-filter-help"},HG={class:"d-flex gap-1 align-items-center justify-center"},jG={"aria-live":"polite",role:"region","aria-atomic":"true",class:"py-2"},WG={key:0,class:"d-flex gap-1 align-items-center justify-center list-unstyled ms-2"},zG=["onClick","aria-label"],KG={class:"fw-bold"},GG={key:0},YG={class:"d-flex flex-row justify-content-center"},ZG=["href"],XG={key:0,class:"ms-1 badge bg-danger rounded-pill fs-base"},JG={__name:"ProgramList",props:{advisors:{type:Object,required:!0},cohorts:{type:Object,required:!0},programs:{type:Object,required:!0},regions:{type:Array,required:!0},states:{type:Object,required:!0},canFilterProgramsPermission:{type:Boolean,default:!1}},setup(t){W("ascending"),W("id");const e=W(!1),s=t,n=[{key:"id",label:"ID"},{key:"name",label:"Name"},{key:"cohort",label:"Cohort"},{key:"advisors",label:"Advisor(s)"},{key:"city",label:"City"},{key:"state",label:"State"},{key:"institution",label:"Institution"},{key:"specialty",label:"Specialty"},{key:"zip",label:"Zip"},{key:"region",label:"Region"}],i={cohorts:"all",advisors:"all",regions:"all",states:"all",status:!0},r=W({...i});function o(b,S){return[{value:"all",text:`All ${S}`},...Object.entries(b).map(([C,O])=>({value:C,text:O})).sort((C,O)=>C.text.localeCompare(O.text))]}const a=te(()=>({regions:o(s.regions,"Regions"),states:o(s.states,"States"),cohorts:o(s.cohorts,"Cohorts"),advisors:o(s.advisors,"Advisors")})),c=te(()=>s.programs.filter(b=>{var D,B;const S=r.value,C=S.regions==="all"||b.region==v("regions",S.regions),O=S.states==="all"||((D=b.state)==null?void 0:D.id)==S.states,A=S.cohorts==="all"||b.cohort_id==S.cohorts,$=S.advisors==="all"||((B=b.advisors)==null?void 0:B.some(N=>N.id==S.advisors)),T=!s.canFilterProgramsPermission||S.status==b.is_active;return C&&O&&A&&$&&T}).map(b=>{var S,C,O,A;return{id:b.id,name:b.name,is_active:b.is_active,cohort:(S=b.cohort)==null?void 0:S.name,advisors:(C=b.advisors)==null?void 0:C.map($=>$.first_name+" "+$.last_name).join(", "),city:b.city,state:(O=b.state)==null?void 0:O.name,institution:b.institution,specialty:(A=b.specialty)==null?void 0:A.name,zip:b.zip,region:b.region}}));function f(b){w(r)[b]=i[b]}function h(){for(const b in w(r))f(b)}const p=te(()=>Object.keys(i).some(b=>w(r)[b]!==i[b]));function m(b,S){return i[b]!==void 0&&S!==i[b]}function _(b){return{regions:"Region",states:"State",cohorts:"Cohort",advisors:"Advisor",status:"Program Status"}[b]||b}function v(b,S){return b=="status"?S?"Active":"Relinquished or Graduated":s[b][S]}return(b,S)=>(y(),x("div",RG,[S[3]||(S[3]=u("div",{class:"d-flex flex-row align-items-center justify-content-between mb-3"},[u("h1",null,"Program List")],-1)),t.canFilterProgramsPermission?(y(),x("div",IG,[(y(!0),x(G,null,ge(a.value,(C,O)=>(y(),x("div",{class:"col-md-2",key:O},[u("label",{for:`${O}-filter`,class:"form-label fw-bold"},P(_(O)),9,LG),Ge(u("select",{id:`${O}-filter`,class:"form-select","onUpdate:modelValue":A=>r.value[O]=A},[(y(!0),x(G,null,ge(C,A=>(y(),x("option",{key:A.value,value:A.value},P(A.text),9,VG))),128))],8,NG),[[Wn,r.value[O]]])]))),128)),u("div",FG,[u("div",BG,[S[1]||(S[1]=u("label",{class:"form-check-label fw-bold",for:"status-filter"},"Program Status",-1)),Ge(u("input",{class:"form-check-input",type:"checkbox",id:"status-filter",checked:r.value.status,"onUpdate:modelValue":S[0]||(S[0]=C=>r.value.status=C),"aria-describedby":"status-filter-help"},null,8,UG),[[en,r.value.status]])]),u("span",qG,P(r.value.status?"Active":"Relinquished or Graduated"),1)])])):ie("",!0),u("div",HG,[u("div",jG,[u("p",null,P(c.value.length??"")+" result(s)",1)]),t.canFilterProgramsPermission?(y(),x("ul",WG,[(y(!0),x(G,null,ge(r.value,(C,O)=>(y(),x("li",{key:O},[m(O,C)?(y(),x("button",{key:0,class:"btn btn-primary rounded-pill",onClick:A=>f(O),"aria-label":"Reset filter "+_(O)+": "+C},[re(P(_(O))+": ",1),u("span",KG,P(v(O,C)),1),S[2]||(S[2]=u("span",{class:"bi bi-x-lg ms-2","aria-hidden":"true"},null,-1))],8,zG)):ie("",!0)]))),128)),p.value?(y(),x("li",GG,[u("button",{class:"btn btn-link ms-2 p-0 text-primary",onClick:h},"Reset all")])):ie("",!0)])):ie("",!0)]),u("div",YG,[U(t$,{items:c.value,fields:n,loading:e.value},{id:Fe(({item:C})=>[u("a",{href:"/portal/programs/"+C.id,class:"link-primary py-2 px-1"}
78,P(C.id),9,ZG)]),name:Fe(({item:C})=>[re(P(C.name)+" ",1),C.is_active?ie("",!0):(y(),x("span",XG," Inactive "))]),_:1},8,["items","loading"])])]))}},kt=hi("programDetails",()=>{const t=W(null),e=W({}),s=W([]),n=W([]),i=W([]),r=W(null),o=W([]),a=W(!1);function c(m){var _;t.value=m.program.id,r.value=(_=m.program.endeavor)==null?void 0:_.name,s.value=m.permissions,n.value=m.developmentStages,i.value=m.vitalityStages,t.value&&f(),h()}async function f(){try{a.value=!0;const m=await axios.get("/portal/api/programs/"+w(t));e.value=m.data.data,a.value=!1}catch{a.value=!1}}async function h(){try{const m=await axios.get("/portal/api/states");o.value=m.data.data}catch{}}const p=te(()=>o.value.map(m=>({id:m.id,name:m.abbreviation+" - "+m.name})));return{programId:t,program:e,permissions:s,developmentStages:n,vitalityStages:i,isLoadingProgram:a,currentEndeavor:r,initializeData:c,stateOptions:p}}),QG={class:"p-4 bg-white border border-secondary"},eY={key:0},tY={key:1},sY={class:"row"},nY={class:"col-lg-6 col-12"},iY={class:"row mb-0"},rY={class:"col-sm-9"},oY={key:0,class:"ms-1 badge bg-danger rounded-pill fs-base"},aY={class:"col-sm-9"},lY={class:"col-sm-9"},cY={class:"col-sm-9"},uY={class:"col-sm-9"},dY={class:"col-lg-6 col-12"},fY={class:"row"},hY={class:"col-sm-9"},pY={class:"col-sm-9"},mY={class:"col-sm-9"},gY={class:"col-sm-9"},_Y={class:"col-sm-9"},vY={__name:"ProgramInformation",setup(t){const e=kt(),s=te(()=>{var n;return(n=e.program)==null?void 0:n.advisors.map(i=>`${i.full_name} (${i.email})`).join(", ")});return te(()=>{var n,i;return`${(n=e.program.principal_investigator)==null?void 0:n.full_name} (${(i=e.program.principal_investigator)==null?void 0:i.email})`}),(n,i)=>{var r,o,a,c,f,h;return y(),x("div",QG,[w(e).isLoadingProgram?(y(),x("div",eY," Loading... ")):(y(),x("div",tY,[i[10]||(i[10]=u("h1",{class:"p-0 m-0 fs-5 text-uppercase fw-bold"},"Program Information",-1)),i[11]||(i[11]=u("hr",null,null,-1)),u("div",sY,[u("div",nY,[u("dl",iY,[i[0]||(i[0]=u("dt",{class:"col-sm-3 col-xl-2"},"Name:",-1)),u("dd",rY,[re(P(w(e).program.name),1),w(e).program.is_active?ie("",!0):(y(),x("span",oY,"Inactive"))]),i[1]||(i[1]=u("dt",{class:"col-sm-3 col-xl-2"},"Program ID:",-1)),u("dd",aY,P(w(e).program.program_id),1),i[2]||(i[2]=u("dt",{class:"col-sm-3 col-xl-2"},"Location:",-1)),u("dd",lY,P(w(e).program.city)+", "+P((r=w(e).program.state)==null?void 0:r.abbreviation),1),i[3]||(i[3]=u("dt",{class:"col-sm-3 col-xl-2"},"Region:",-1)),u("dd",cY,P(w(e).program.region),1),i[4]||(i[4]=u("dt",{class:"col-sm-3 col-xl-2"},"Discipline:",-1)),u("dd",uY,P((o=w(e).program.discipline)==null?void 0:o.name),1)])]),u("div",dY,[u("dl",fY,[i[5]||(i[5]=u("dt",{class:"col-sm-3 col-xl-2"},"Cohort:",-1)),u("dd",hY,P((a=w(e).program.cohort)==null?void 0:a.name),1),i[6]||(i[6]=u("dt",{class:"col-sm-3 col-xl-2"},"Sponsor:",-1)),u("dd",pY,P(w(e).program.institution),1),i[7]||(i[7]=u("dt",{class:"col-sm-3 col-xl-2"},"Specialty:",-1)),u("dd",mY,P((c=w(e).program.specialty)==null?void 0:c.name),1),i[8]||(i[8]=u("dt",{class:"col-sm-3 col-xl-2"},"PI:",-1)),u("dd",gY,P((f=w(e).program.principal_investigator)==null?void 0:f.full_name)+" "+P((h=w(e).program.principal_investigator)==null?void 0:h.email),1),i[9]||(i[9]=u("dt",{class:"col-sm-3 col-xl-2"},"Advisor(s):",-1)),u("dd",_Y,P(s.value),1)])])])]))])}}},s$=6048e5,bY=864e5,n$=6e4,i$=36e5,q2=Symbol.for("constructDateFrom");function Gr(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&q2 in t?t[q2](e):t instanceof Date?new t.constructor(e):new Date(e)}function An(t,e){return Gr(e||t,t)}let yY={};function am(){return yY}function Gu(t,e){var a,c,f,h;const s=am(),n=(e==null?void 0:e.weekStartsOn)??((c=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:c.weekStartsOn)??s.weekStartsOn??((h=(f=s.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,i=An(t,e==null?void 0:e.in),r=i.getDay(),o=(r<n?7:0)+r-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function ip(t,e){return Gu(t,{...e,weekStartsOn:1})}function r$(t,e){const s=An(t,e==null?void 0:e.in),n=s.getFullYear(),i=Gr(s,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const r=ip(i),o=Gr(s,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=ip(o);return s.getTime()>=r.getTime()?n+1:s.getTime()>=a.getTime()?n:n-1}function H2(t){const e=An(t),s=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return s.setUTCFullYear(e.getFullYear()),+t-+s}function wY(t,...e){const s=Gr.bind(null,e.find(n=>typeof n=="object"));return e.map(s)}function j2(t,e){const s=An(t,e==null?void 0:e.in);return s.setHours(0,0,0,0),s}function xY(t,e,s){const[n,i]=wY(s==null?void 0:s.in,t,e),r=j2(n),o=j2(i),a=+r-H2(r),c=+o-H2(o);return Math.round((a-c)/bY)}function SY(t,e){const s=r$(t,e),n=Gr(t,0);return n.setFullYear(s,0,4),n.setHours(0,0,0,0),ip(n)}function EY(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function CY(t){return!(!EY(t)&&typeof t!="number"||isNaN(+An(t)))}function kY(t,e){const s=An(t,e==null?void 0:e.in);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}const AY={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$Y=(t,e,s)=>{let n;const i=AY[t];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}
78",e.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+n:n+" ago":n};function F_(t){return(e={})=>{const s=e.width?String(e.width):t.defaultWidth;return t.formats[s]||t.formats[t.defaultWidth]}}const TY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},OY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},MY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},PY={date:F_({formats:TY,defaultWidth:"full"}),time:F_({formats:OY,defaultWidth:"full"}),dateTime:F_({formats:MY,defaultWidth:"full"})},DY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},RY=(t,e,s,n)=>DY[t];function Jc(t){return(e,s)=>{const n=s!=null&&s.context?String(s.context):"standalone";let i;if(n==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=s!=null&&s.width?String(s.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=s!=null&&s.width?String(s.width):t.defaultWidth;i=t.values[a]||t.values[o]}const r=t.argumentCallback?t.argumentCallback(e):e;return i[r]}}const IY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},LY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},NY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},VY={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},FY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},BY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},UY=(t,e)=>{const s=Number(t),n=s%100;if(n>20||n<10)switch(n%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},qY={ordinalNumber:UY,era:Jc({values:IY,defaultWidth:"wide"}),quarter:Jc({values:LY,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Jc({values:NY,defaultWidth:"wide"}),day:Jc({values:VY,defaultWidth:"wide"}),dayPeriod:Jc({values:FY,defaultWidth:"wide",formattingValues:BY,defaultFormattingWidth:"wide"})};function Qc(t){return(e,s={})=>{const n=s.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],r=e.match(i);if(!r)return null;const o=r[0],a=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(a)?jY(a,p=>p.test(o)):HY(a,p=>p.test(o));let f;f=t.valueCallback?t.valueCallback(c):c,f=s.valueCallback?s.valueCallback(f):f;const h=e.slice(o.length);return{value:f,rest:h}}}function HY(t,e){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e(t[s]))return s}function jY(t,e){for(let s=0;s<t.length;s++)if(e(t[s]))return s}function WY(t){return(e,s={})=>{const n=e.match(t.matchPattern);if(!n)return null;const i=n[0],r=e.match(t.parsePattern);if(!r)return null;let o=t.valueCallback?t.valueCallback(r[0]):r[0];o=s.valueCallback?s.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const zY=/^(\d+)(th|st|nd|rd)?/i,KY=/\d+/i,GY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},YY={any:[/^b/i,/^(a|c)/i]},ZY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XY={any:[/1/i,/2/i,/3/i,/4/i]},JY={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},QY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},eZ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},tZ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sZ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nZ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},iZ={ordinalNumber:WY({matchPattern:zY,parsePattern:KY,valueCallback:t=>parseInt(t,10)}),era:Qc({matchPatterns:GY,defaultMatchWidth:"wide",parsePatterns:YY,defaultParseWidth:"any"}),quarter:Qc({matchPatterns:ZY,defaultMatchWidth:"wide",parsePatterns:XY,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Qc({matchPatterns:JY,defaultMatchWidth:"wide",parsePatterns:QY,defaultParseWidth:"any"}),day:Qc({matchPatterns:eZ,defaultMatchWidth:"wide",parsePatterns:tZ,defaultParseWidth:"any"}),dayPeriod:Qc({matchPatterns:sZ,defaultMatchWidth:"any",parsePatterns:nZ,defaultParseWidth:"any"})},rZ={code:"en-US",formatDistance:$Y,formatLong:PY,formatRelative:RY,localize:qY,match:iZ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function oZ(t,e){const s=An(t,e==null?void 0:e.in);return xY(s,kY(s))+1}function aZ(t,e){const s=An(t,e==null?void 0:e.in),n=+ip(s)-+SY(s);return Math.round(n/s$)+1}function o$(t,e){var h,p,m,_;
vendor: 6,521 bytes, line 78
78const s=An(t,e==null?void 0:e.in),n=s.getFullYear(),i=am(),r=(e==null?void 0:e.firstWeekContainsDate)??((p=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((_=(m=i.locale)==null?void 0:m.options)==null?void 0:_.firstWeekContainsDate)??1,o=Gr((e==null?void 0:e.in)||t,0);o.setFullYear(n+1,0,r),o.setHours(0,0,0,0);const a=Gu(o,e),c=Gr((e==null?void 0:e.in)||t,0);c.setFullYear(n,0,r),c.setHours(0,0,0,0);const f=Gu(c,e);return+s>=+a?n+1:+s>=+f?n:n-1}function lZ(t,e){var a,c,f,h;const s=am(),n=(e==null?void 0:e.firstWeekContainsDate)??((c=(a=e==null?void 0:e.locale)==null?void 0:a.options)==null?void 0:c.firstWeekContainsDate)??s.firstWeekContainsDate??((h=(f=s.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=o$(t,e),r=Gr((e==null?void 0:e.in)||t,0);return r.setFullYear(i,0,n),r.setHours(0,0,0,0),Gu(r,e)}function cZ(t,e){const s=An(t,e==null?void 0:e.in),n=+Gu(s,e)-+lZ(s,e);return Math.round(n/s$)+1}function Zt(t,e){const s=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return s+n}const co={y(t,e){const s=t.getFullYear(),n=s>0?s:1-s;return Zt(e==="yy"?n%100:n,e.length)},M(t,e){const s=t.getMonth();return e==="M"?String(s+1):Zt(s+1,2)},d(t,e){return Zt(t.getDate(),e.length)},a(t,e){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h(t,e){return Zt(t.getHours()%12||12,e.length)},H(t,e){return Zt(t.getHours(),e.length)},m(t,e){return Zt(t.getMinutes(),e.length)},s(t,e){return Zt(t.getSeconds(),e.length)},S(t,e){const s=e.length,n=t.getMilliseconds(),i=Math.trunc(n*Math.pow(10,s-3));return Zt(i,e.length)}},yl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},W2={G:function(t,e,s){const n=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})}},y:function(t,e,s){if(e==="yo"){const n=t.getFullYear(),i=n>0?n:1-n;return s.ordinalNumber(i,{unit:"year"})}return co.y(t,e)},Y:function(t,e,s,n){const i=o$(t,n),r=i>0?i:1-i;if(e==="YY"){const o=r%100;return Zt(o,2)}return e==="Yo"?s.ordinalNumber(r,{unit:"year"}):Zt(r,e.length)},R:function(t,e){const s=r$(t);return Zt(s,e.length)},u:function(t,e){const s=t.getFullYear();return Zt(s,e.length)},Q:function(t,e,s){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return Zt(n,2);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,s){const n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return Zt(n,2);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,s){const n=t.getMonth();switch(e){case"M":case"MM":return co.M(t,e);case"Mo":return s.ordinalNumber(n+1,{unit:"month"});case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,s){const n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return Zt(n+1,2);case"Lo":return s.ordinalNumber(n+1,{unit:"month"});case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,s,n){const i=cZ(t,n);return e==="wo"?s.ordinalNumber(i,{unit:"week"}):Zt(i,e.length)},I:function(t,e,s){const n=aZ(t);return e==="Io"?s.ordinalNumber(n,{unit:"week"}):Zt(n,e.length)},d:function(t,e,s){return e==="do"?s.ordinalNumber(t.getDate(),{unit:"date"}):co.d(t,e)},D:function(t,e,s){const n=oZ(t);return e==="Do"?s.ordinalNumber(n,{unit:"dayOfYear"}):Zt(n,e.length)},E:function(t,e,s){const n=t.getDay();switch(e){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,s,n){const i=t.getDay(),r=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return Zt(r,2);case"eo":return s.ordinalNumber(r,{unit:"day"});case"eee":return s.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(i,{width:"short",context:"formatting"});case"eeee":default:return s.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,s,n){const i=t.getDay(),r=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return Zt(r,e.length);case"co":return s.ordinalNumber(r,{unit:"day"});case"ccc":return s.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(i,{width:"narrow",context:"standalone"});case"cccccc":return s.day(i,{width:"short",context:"standalone"});case"cccc":default:return s.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,s){const n=t.getDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return Zt(i,e.length);case"io":return s.ordinalNumber(i,{unit:"day"});case"iii":return s.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(n,{width:"short",context:"formatting"});case"iiii":default:return s.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,s){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,s){const n=t.getHours();let i;switch(n===12?i=yl.noon:n===0?i=yl.midnight:i=n/12>
vendor: 4,685 bytes, line 78
78=1?"pm":"am",e){case"b":case"bb":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,s){const n=t.getHours();let i;switch(n>=17?i=yl.evening:n>=12?i=yl.afternoon:n>=4?i=yl.morning:i=yl.night,e){case"B":case"BB":case"BBB":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,s){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),s.ordinalNumber(n,{unit:"hour"})}return co.h(t,e)},H:function(t,e,s){return e==="Ho"?s.ordinalNumber(t.getHours(),{unit:"hour"}):co.H(t,e)},K:function(t,e,s){const n=t.getHours()%12;return e==="Ko"?s.ordinalNumber(n,{unit:"hour"}):Zt(n,e.length)},k:function(t,e,s){let n=t.getHours();return n===0&&(n=24),e==="ko"?s.ordinalNumber(n,{unit:"hour"}):Zt(n,e.length)},m:function(t,e,s){return e==="mo"?s.ordinalNumber(t.getMinutes(),{unit:"minute"}):co.m(t,e)},s:function(t,e,s){return e==="so"?s.ordinalNumber(t.getSeconds(),{unit:"second"}):co.s(t,e)},S:function(t,e){return co.S(t,e)},X:function(t,e,s){const n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return K2(n);case"XXXX":case"XX":return ua(n);case"XXXXX":case"XXX":default:return ua(n,":")}},x:function(t,e,s){const n=t.getTimezoneOffset();switch(e){case"x":return K2(n);case"xxxx":case"xx":return ua(n);case"xxxxx":case"xxx":default:return ua(n,":")}},O:function(t,e,s){const n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+z2(n,":");case"OOOO":default:return"GMT"+ua(n,":")}},z:function(t,e,s){const n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+z2(n,":");case"zzzz":default:return"GMT"+ua(n,":")}},t:function(t,e,s){const n=Math.trunc(+t/1e3);return Zt(n,e.length)},T:function(t,e,s){return Zt(+t,e.length)}};function z2(t,e=""){const s=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),r=n%60;return r===0?s+String(i):s+String(i)+e+Zt(r,2)}function K2(t,e){return t%60===0?(t>0?"-":"+")+Zt(Math.abs(t)/60,2):ua(t,e)}function ua(t,e=""){const s=t>0?"-":"+",n=Math.abs(t),i=Zt(Math.trunc(n/60),2),r=Zt(n%60,2);return s+i+e+r}const G2=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},a$=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},uZ=(t,e)=>{const s=t.match(/(P+)(p+)?/)||[],n=s[1],i=s[2];if(!i)return G2(t,e);let r;switch(n){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;case"PPPP":default:r=e.dateTime({width:"full"});break}return r.replace("{{date}}",G2(n,e)).replace("{{time}}",a$(i,e))},dZ={p:a$,P:uZ},fZ=/^D+$/,hZ=/^Y+$/,pZ=["D","DD","YY","YYYY"];function mZ(t){return fZ.test(t)}function gZ(t){return hZ.test(t)}function _Z(t,e,s){const n=vZ(t,e,s);if(console.warn(n),pZ.includes(t))throw new RangeError(n)}function vZ(t,e,s){const n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const bZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wZ=/^'([^]*?)'?$/,xZ=/''/g,SZ=/[a-zA-Z]/;function Ro(t,e,s){var h,p,m,_,v,b,S,C;const n=am(),i=(s==null?void 0:s.locale)??n.locale??rZ,r=(s==null?void 0:s.firstWeekContainsDate)??((p=(h=s==null?void 0:s.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??n.firstWeekContainsDate??((_=(m=n.locale)==null?void 0:m.options)==null?void 0:_.firstWeekContainsDate)??1,o=(s==null?void 0:s.weekStartsOn)??((b=(v=s==null?void 0:s.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??n.weekStartsOn??((C=(S=n.locale)==null?void 0:S.options)==null?void 0:C.weekStartsOn)??0,a=An(t,s==null?void 0:s.in);if(!CY(a))throw new RangeError("Invalid time value");let c=e.match(yZ).map(O=>{const A=O[0];if(A==="p"||A==="P"){const $=dZ[A];return $(O,i.formatLong)}return O}).join("").match(bZ).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const A=O[0];if(A==="'")return{isToken:!1,value:EZ(O)};if(W2[A])return{isToken:!0,value:O};
78if(A.match(SZ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return{isToken:!1,value:O}});i.localize.preprocessor&&(c=i.localize.preprocessor(a,c));const f={firstWeekContainsDate:r,weekStartsOn:o,locale:i};return c.map(O=>{if(!O.isToken)return O.value;const A=O.value;(!(s!=null&&s.useAdditionalWeekYearTokens)&&gZ(A)||!(s!=null&&s.useAdditionalDayOfYearTokens)&&mZ(A))&&_Z(A,e,String(t));const $=W2[A[0]];return $(a,A,i.localize,f)}).join("")}function EZ(t){const e=t.match(wZ);return e?e[1].replace(xZ,"'"):t}function B_(t,e){return An(t,e==null?void 0:e.in).getMonth()}function U_(t,e){return An(t,e==null?void 0:e.in).getFullYear()}function bo(t,e){const s=()=>Gr(e==null?void 0:e.in,NaN),i=$Z(t);let r;if(i.date){const f=TZ(i.date,2);r=OZ(f.restDateString,f.year)}if(!r||isNaN(+r))return s();const o=+r;let a=0,c;if(i.time&&(a=MZ(i.time),isNaN(a)))return s();if(i.timezone){if(c=PZ(i.timezone),isNaN(c))return s()}else{const f=new Date(o+a),h=An(0,e==null?void 0:e.in);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return An(o+a+c,e==null?void 0:e.in)}const Zf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},CZ=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,kZ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,AZ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $Z(t){const e={},s=t.split(Zf.dateTimeDelimiter);let n;if(s.length>2)return e;if(/:/.test(s[0])?n=s[0]:(e.date=s[0],n=s[1],Zf.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Zf.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){const i=Zf.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}function TZ(t,e){const s=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(s);if(!n)return{year:NaN,restDateString:""};const i=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:r===null?i:r*100,restDateString:t.slice((n[1]||n[2]).length)}}function OZ(t,e){if(e===null)return new Date(NaN);const s=t.match(CZ);if(!s)return new Date(NaN);const n=!!s[4],i=eu(s[1]),r=eu(s[2])-1,o=eu(s[3]),a=eu(s[4]),c=eu(s[5])-1;if(n)return NZ(e,a,c)?DZ(e,a,c):new Date(NaN);{const f=new Date(0);return!IZ(e,r,o)||!LZ(e,i)?new Date(NaN):(f.setUTCFullYear(e,r,Math.max(i,o)),f)}}function eu(t){return t?parseInt(t):1}function MZ(t){const e=t.match(kZ);if(!e)return NaN;const s=q_(e[1]),n=q_(e[2]),i=q_(e[3]);return VZ(s,n,i)?s*i$+n*n$+i*1e3:NaN}function q_(t){return t&&parseFloat(t.replace(",","."))||0}function PZ(t){if(t==="Z")return 0;const e=t.match(AZ);if(!e)return 0;const s=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return FZ(n,i)?s*(n*i$+i*n$):NaN}function DZ(t,e,s){const n=new Date(0);n.setUTCFullYear(t,0,4);const i=n.getUTCDay()||7,r=(e-1)*7+s+1-i;return n.setUTCDate(n.getUTCDate()+r),n}const RZ=[31,null,31,30,31,30,31,31,30,31,30,31];function l$(t){return t%400===0||t%4===0&&t%100!==0}function IZ(t,e,s){return e>=0&&e<=11&&s>=1&&s<=(RZ[e]||(l$(t)?29:28))}function LZ(t,e){return e>=1&&e<=(l$(t)?366:365)}function NZ(t,e,s){return e>=1&&e<=53&&s>=0&&s<=6}function VZ(t,e,s){return t===24?e===0&&s===0:s>=0&&s<60&&e>=0&&e<60&&t>=0&&t<25}function FZ(t,e){return e>=0&&e<=59}const BZ=hi("programAssessments",()=>{const t=W([]),e=W(!1),s=W(!1),n=W(!1);async function i(){try{const o=kt();s.value=o.permissions.viewAssessments,n.value=o.permissions.manageAssessments,s.value&&await r()}catch{}}async function r(){e.value=!0;let a="/portal/api/programs/"+kt().programId+"/assessments";try{const c=await axios.get(a);t.value=c.data.data}catch{}finally{e.value=!1}}return i(),{assessments:t,isLoading:e,canViewAssessments:s,canManageAssessments:n}}),UZ={},qZ={class:"p-4 container"},HZ={class:"d-flex flex-row mb-3 justify-content-between align-items-center"};function jZ(t,e){return y(),x("div",qZ,[u("div",HZ,[Ft(t.$slots,"header-row")]),u("div",null,[Ft(t.$slots,"tab-body")])])}const Ka=ds(UZ,[["render",jZ]]),WZ={class:"container d-flex flex-row justify-content-between align-items-center bg-light rounded p-2"},zZ={id:"assessments-list-heading",class:"fs-5 m-0"},KZ={class:"btn-group btn-group-sm",role:"group","aria-label":"Select assessments to view"},GZ={key:0,class:"text-center p-5","aria-live":"polite"},YZ={key:1,class:"text-muted text-center p-5","aria-live":"polite"},ZZ={key:2,class:"container"},XZ={class:"col-4"},JZ={class:"col-3"},QZ={class:"col-3"},eX=["href"],tX={key:1},sX={class:"col-4 d-flex flex-column"},nX={class:"col-3 d-flex flex-column"},iX={key:0},rX={key:1},oX={class:"col-3"},aX=["href"],lX={__name:"AssessmentsContent",setup(t){const e=BZ(),s=kt(),{isLoading:n,assessments:i,canViewAssessments:r,canManageAssessments:o}=Qe(e),a=W(s.currentEndeavor),c=te(()=>e.assessments.filter(f=>f.endeavor.name==a.value));return(f,h)=>(y(),tt(Ka,null,{"header-row":Fe(()=>{var p;return[u("div",WZ,[u("h2",zZ,P(a.value)+" Assessments ("+P((p=c.value)==null?void 0:p.length)+")",1),u("div",KZ,[Ge(u("input",{type:"radio",class:"btn-check",name:"endeavor_select",id:"development-assessments",value:"Development","onUpdate:modelValue":h[0]||(h[0]=m=>a.value=m)},null,512),[[Ps,a.value]]),h[2]||(h[2]=u("label",{class:"btn btn-outline-program-navy",for:"development-assessments"},"Development",-1)),Ge(u("input",{type:"radio",class:"btn-check",name:"endeavor_select",id:"vitality-assessments",value:"Vitality","onUpdate:modelValue":h[1]||(h[1]=m=>a.value=m)},null,512),[[Ps,a.value]]),h[3]||(h[3]=u("label",{class:"btn btn-outline-program-navy",for:"vitality-assessments"},"Vitality",-1))])])]}),"tab-body":Fe(()=>{var p;
78return[w(n)?(y(),x("div",GZ,h[4]||(h[4]=[u("p",null,"Loading assessments...",-1),u("div",{class:"spinner-border text-primary",role:"status"},[u("span",{class:"visually-hidden"},"Loading...")],-1)]))):!((p=c.value)!=null&&p.length)||!w(r)?(y(),x("p",YZ," No assessments to display. ")):(y(),x("ul",ZZ,[(y(!0),x(G,null,ge(c.value,m=>{var _,v,b;return y(),x("li",{key:m.id,class:"row p-3 border align-items-center"},[m.submitted_at?(y(),x(G,{key:1},[h[7]||(h[7]=u("div",{class:"col-2"},[u("img",{src:"/images/progressTracker/CircleCheck.svg",class:"d-inline-block",width:"40",alt:""})],-1)),u("div",sX,[re(P(m.assessment_period.name)+" Assessment ",1),h[6]||(h[6]=u("span",{class:"text-danger small"},"Completed",-1))]),u("div",nX,[((_=m.endeavor)==null?void 0:_.name)=="Development"?(y(),x("span",iX,"Stage: "+P((v=m.current_stage)==null?void 0:v.number),1)):ie("",!0),((b=m.endeavor)==null?void 0:b.name)=="Development"?(y(),x("span",rX,"Readiness: "+P(m.overall_score),1)):ie("",!0)]),u("div",oX,[w(r)?(y(),x("a",{key:0,href:"/portal/programs/"+m.program_id+"/assessments/"+m.id},"View Assessment",8,aX)):ie("",!0)])],64)):(y(),x(G,{key:0},[h[5]||(h[5]=u("div",{class:"col-2"},[u("img",{src:"/images/progressTracker/Circle.svg",class:"d-inline-block",width:"40",alt:""})],-1)),u("div",XZ,P(m.assessment_period.name)+" Assessment ",1),u("div",JZ," Date Due: "+P(w(Ro)(m.due_date,"MM/dd/yyyy")),1),u("div",QZ,[w(o)&&m.is_actionable?(y(),x("a",{key:0,href:"/portal/programs/"+m.program_id+"/assessments/"+m.id+"/edit"},"Start Assessment",8,eX)):(y(),x("span",tX,"Available "+P(w(Ro)(m.available_date,"MM/dd/yyyy")),1))])],64))])}),128))]))]}),_:1}))}},Ay=hi("programDocuments",()=>{const t=W([]),e=W({}),s=W(!1),n=W(!1),i=W(!1),r=W(!1),o=W(!1),a=W(!1),c={id:"",file:"",description:""},f=W({...c});async function h(){try{const T=kt();i.value=T.permissions.viewDocuments,r.value=T.permissions.manageDocuments,i.value&&await p()}catch{}}async function p(){s.value=!0;let D="/portal/api/programs/"+kt().programId+"/documents";try{const B=await axios.get(D);t.value=B.data.data}catch{}finally{s.value=!1}}async function m(){n.value=!0,O();const D="/portal/api/programs/"+kt().programId+"/documents",B={...f.value};try{const N=await axios.post(D,B,{headers:{"Content-Type":"multipart/form-data"}});o.value=!1,C(),await p()}catch(N){N.response&&N.response.status==422&&(e.value=N.response.data.errors)}finally{n.value=!1}}async function _(){n.value=!0,O();const D="/portal/api/programs/"+kt().programId+"/documents/"+f.value.id;try{const B=await axios.delete(D);a.value=!1,C(),await p()}catch(B){B.response&&B.response.status==422&&(e.value=B.response.data.errors)}finally{n.value=!1}}function v(){o.value=!0}async function b(T){f.value={...T},a.value=!0}function S(){C()}function C(){f.value={...c},O()}function O(){e.value={}}function A(T){return e.value[T]!=null}function $(T){return"/portal/api/programs/"+kt().programId+"/documents/"+T.id}return h(),{documents:t,errors:e,formData:f,isLoading:s,isSaving:n,canManageDocuments:r,canViewDocuments:i,showDocumentCreateModal:o,showDocumentDeleteModal:a,modalHidden:S,hasError:A,save:m,deleteDocument:_,openCreateModal:v,openDeleteModal:b,getDownloadLink:$}}),cX={class:"d-flex flex-column"},uX=["for"],dX={key:0,"aria-hidden":"true",class:"text-danger"},fX=["id","aria-required","aria-invalid","aria-describedby"],hX={__name:"FileInput",props:{modelValue:null,field:{type:String,required:!0},label:{type:String,required:!0},required:{type:Boolean,default:!1},labelClass:{type:String,default:""},errors:{type:Array,default:[]},describedBy:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const s=t,n=e,i=te(()=>s.errors.length>0);function r(o){const a=o.target.files[0];n("update:modelValue",a)}return(o,a)=>(y(),x("div",cX,[u("label",{for:t.field+"Id",class:Ve(["form-label",t.labelClass])},[re(P(t.label)+" ",1),t.required?(y(),x("span",dX,"*")):ie("",!0)],10,uX),u("input",{type:"file",class:Ve(["form-control",{"is-invalid":i.value}]),id:t.field+"Id","aria-required":t.required,"aria-invalid":i.value,"aria-describedby":[t.field+"_error",t.describedBy].join(" "),onChange:r,ref:"fileInput"},null,42,fX),Ft(o.$slots,"helpText"),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])]))}},pX={class:"container-fluid"},mX={class:"row"},gX={class:"col"},_X={role:"alert",class:"text-danger"},vX={key:0},bX=["onClick","disabled"],yX=["disabled"],wX={__name:"DocumentCreateModal",setup(t){const e=Ay(),{isSaving:s,formData:n,errors:i,showDocumentCreateModal:r}=Qe(e);return(o,a)=>(y(),x(G,null,[u("button",{class:"btn btn-primary",onClick:a[0]||(a[0]=(...c)=>w(e).openCreateModal&&w(e).openCreateModal(...c))},"Upload Document"),U(Ri,{show:w(r),"onUpdate:show":a[4]||(a[4]=c=>r.value=c),title:"Uploading Document",modalId:"createDocumentMod
78al",onClosed:w(e).modalHidden,onSaved:a[5]||(a[5]=c=>w(e).save(c))},{footer:Fe(({closeModal:c})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:c,disabled:w(s)}," Cancel ",8,bX),u("button",{type:"submit",form:"createDocumentForm",class:"btn btn-primary",disabled:w(s)},P(w(s)?"Saving...":"Save"),9,yX)]),default:Fe(()=>{var c,f;return[u("div",pX,[u("form",{id:"createDocumentForm",class:"d-flex flex-column gap-3",onSubmit:a[3]||(a[3]=st((...h)=>w(e).save&&w(e).save(...h),["prevent"]))},[u("div",mX,[u("div",gX,[U(hX,{labelClass:"mb-0",modelValue:w(n).file,"onUpdate:modelValue":a[1]||(a[1]=h=>w(n).file=h),field:"file",label:"File",errors:(c=w(i))==null?void 0:c.file,required:!0,"described-by":"fileHelp"},{helpText:Fe(()=>a[6]||(a[6]=[u("ul",{id:"fileHelp",class:"form-text text-muted my-0 list-unstyled"},[u("li",null,"30 MB limit."),u("li",null,"Supported file types: .doc, .docx, .xls, .xlsx, .csv, .txt, .pdf, .zip, .eml")],-1)])),_:1},8,["modelValue","errors"]),U(De,{labelClass:"mt-3 mb-0",modelValue:w(n).description,"onUpdate:modelValue":a[2]||(a[2]=h=>w(n).description=h),required:!1,field:"description",label:"Description",errors:(f=w(i))==null?void 0:f.description},null,8,["modelValue","errors"])])]),u("div",_X,[Object.entries(w(i)).length?(y(),x("span",vX,"Form submission failed, see errors above.")):ie("",!0)])],32)])]}),_:1},8,["show","onClosed"])],64))}},xX={class:"container-fluid"},SX={class:"row"},EX={class:"col"},CX={class:"p-2 bg-light"},kX=["onClick","disabled"],AX=["disabled"],$X={__name:"DocumentDeleteModal",setup(t){const e=Ay(),{isSaving:s,errors:n,formData:i,showDocumentDeleteModal:r}=Qe(e);return(o,a)=>(y(),tt(Ri,{show:w(r),"onUpdate:show":a[1]||(a[1]=c=>r.value=c),title:"Deleting Document",modalId:"deleteTrainingSiteModal",onClosed:w(e).modalHidden,onSaved:a[2]||(a[2]=c=>w(e).deleteDocument(c))},{footer:Fe(({closeModal:c})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:c,disabled:w(s)}," Cancel ",8,kX),u("button",{type:"submit",form:"deleteDocumentForm",class:"btn btn-danger",disabled:w(s)},P(w(s)?"Deleting...":"Delete Document"),9,AX)]),default:Fe(()=>[u("div",xX,[u("form",{id:"deleteDocumentForm",class:"d-flex flex-column gap-3",onSubmit:a[0]||(a[0]=st((...c)=>w(e).deleteDocument&&w(e).deleteDocument(...c),["prevent"]))},[u("div",SX,[u("div",EX,[a[3]||(a[3]=u("p",null,"Are you sure you want to delete this document? This action cannot be undone.",-1)),u("p",CX,P(w(i).original_file_name),1)])])],32)])]),_:1},8,["show","onClosed"]))}},TX={id:"documents-list-heading",class:"fs-5 m-0"},OX={key:0,class:"text-center p-5","aria-live":"polite"},MX={key:1,class:"text-muted text-center p-5","aria-live":"polite"},PX={key:0},DX={key:2,class:"table"},RX={class:"text-nowrap"},IX={class:"text-nowrap"},LX={class:"text-nowrap"},NX={class:"text-nowrap"},VX=["href","aria-label"],FX=["onClick"],BX={__name:"DocumentsContent",setup(t){const e=Ay(),{isLoading:s,documents:n,canManageDocuments:i,canViewDocuments:r,getDownloadLink:o}=Qe(e);return(a,c)=>(y(),tt(Ka,null,{"header-row":Fe(()=>{var f;return[u("h2",TX,"All Documents ("+P((f=w(n))==null?void 0:f.length)+")",1),w(i)?(y(),tt(wX,{key:0})):ie("",!0)]}),"tab-body":Fe(()=>{var f;return[w(s)?(y(),x("div",OX,c[0]||(c[0]=[u("p",null,"Loading documents...",-1),u("div",{class:"spinner-border text-primary",role:"status"},[u("span",{class:"visually-hidden"},"Loading...")],-1)]))):!((f=w(n))!=null&&f.length)||!w(r)?(y(),x("p",MX,[c[1]||(c[1]=re(" No documents to display. ")),w(i)?(y(),x("span",PX," Click 'Upload Document' to begin.")):ie("",!0)])):(y(),x("table",DX,[c[3]||(c[3]=u("thead",null,[u("tr",null,[u("th",{scope:"col",class:"text-nowrap"},"Document Name"),u("th",{scope:"col",class:"text-nowrap"},"Description"),u("th",{scope:"col",class:"text-nowrap"},"Size"),u("th",{scope:"col",class:"text-nowrap"},"Uploaded By"),u("th",{scope:"col",class:"text-nowrap"},"Created"),u("th",{scope:"col"},[u("span",{class:"visually-hidden"},"Actions")])])],-1)),u("tbody",null,[(y(!0),x(G,null,ge(w(n),h=>{var p;return y(),x("tr",{key:h.id},[u("td",null,P(h.original_file_name),1),u("td",null,P(h.description),1),u("td",RX,P(h.readable_size),
781),u("td",IX,P((p=h.uploaded_by)==null?void 0:p.full_name),1),u("td",LX,P(h.created_at),1),u("td",NX,[u("a",{class:"btn btn-secondary btn-sm",href:w(e).getDownloadLink(h),"aria-label":"download "+h.original_file_name,download:""},"download",8,VX),c[2]||(c[2]=re()),u("button",{class:"btn btn-danger btn-sm",onClick:m=>w(e).openDeleteModal(h)},"delete",8,FX)])])}),128))])])),U($X)]}),_:1}))}},lm=hi("programResidents",()=>{const t=W([]),e=W({}),s=W([]),n=W([]),i=W(!1),r=W(!1),o=W(!1),a=W(!1),c=W(!1),f=W(!1),h=W(!1),p=W(null),m=W([{id:"Hospital",name:"Hospital"},{id:"Outpatient",name:"Outpatient"}]),_={id:"",first_name:"",middle_name:"",last_name:"",npi:"",start_month:"",start_year:"",status_fellowship:"",status_graduated:"",status_currently_practicing:"",status_practicing_outside_us:"",other_information:"",fellowship_type:"",fellowship_name:"",fellowship_address_1:"",fellowship_city:"",fellowship_state_id:"",fellowship_zip:"",fellowship_county:"",graduation_month:"",graduation_year:"",current_practice_specialty_id:"",current_practice_specialty_other:"",current_practice_specialty_other_describe:"",primary_site_name:"",primary_site_type:"",primary_site_type_addl_info:"",primary_site_address_1:"",primary_site_city:"",primary_site_state_id:"",primary_site_zip:"",primary_site_county:"",primary_site_country_id:"",secondary_site_name:"",secondary_site_type:"",secondary_site_type_addl_info:"",secondary_site_address_1:"",secondary_site_city:"",secondary_site_state_id:"",secondary_site_zip:"",secondary_site_county:"",secondary_site_country_id:""},v=W({..._});async function b(){try{const _e=kt();c.value=_e.permissions.viewResidents,f.value=_e.permissions.manageResidents,c.value&&await S(),f.value&&await Promise.all([C(),O()])}catch{}}async function S(){o.value=!0;let ze="/portal/api/programs/"+kt().programId+"/residents";try{const je=await axios.get(ze);t.value=je.data.data}catch{}finally{o.value=!1}}async function C(){try{const _e=await axios.get("/portal/api/countries");s.value=_e.data.data}catch{}}async function O(){try{const _e=await axios.get("/portal/api/specialties");n.value=_e.data.data}catch{}}function A(){h.value=!1,i.value=!0}async function $(_e){h.value=!0,p.value=_e,T(),r.value=!0}function T(){let _e={...p.value};_e.graduated_at&&(_e.graduation_month=B_(bo(_e.graduated_at))+1,_e.graduation_year=U_(bo(_e.graduated_at))),_e.started_at&&(_e.start_month=B_(bo(_e.started_at))+1,_e.start_year=U_(bo(_e.started_at))),_e.current_practice_specialty_other==1&&(_e.current_practice_specialty_id=99),v.value={...v.value,..._e}}function D(){B()}function B(){p.value=null,v.value={..._},F()}async function N(){a.value=!0,F();const ze="/portal/api/programs/"+kt().programId+"/residents",je=v.value.id?`${ze}/${v.value.id}`:ze,it={...v.value};it.current_practice_specialty_id==99?(it.current_practice_specialty_other=1,it.current_practice_specialty_id=""):(it.current_practice_specialty_other="",it.current_practice_specialty_other_describe="");const es=v.value.id?"patch":"post";try{const ue=await axios[es](je,it);i.value=!1,r.value=!1,B(),await S()}catch(ue){ue.response&&ue.response.status==422&&(e.value=ue.response.data.errors)}finally{a.value=!1}}function F(){e.value={}}function L(){h.value&&p.value?(p.value.current_practice_specialty_other==1?v.value.current_practice_specialty_id=99:v.value.current_practice_specialty_id=p.value.current_practice_specialty_id??"",v.value.current_practice_specialty_other=p.value.current_practice_specialty_other??"",v.value.current_practice_specialty_other_describe=p.value.current_practice_specialty_other_describe??"",v.value.primary_site_name=p.value.primary_site_name??"",v.value.primary_site_type=p.value.primary_site_type??"",v.value.primary_site_type_addl_info=p.value.primary_site_type_addl_info??"",v.value.primary_site_address_1=p.value.primary_site_address_1??"",v.value.primary_site_city=p.value.primary_site_city??"",v.value.primary_site_state_id=p.value.primary_site_state_id??"",v.value.primary_site_zip=p.value.primary_site_zip??"",v.value.primary_site_county=p.value.primary_site_county??"",v.value.primary_site_country_id=p.value.primary_site_country_id??"",v.value.secondary_site_name=p.value.secondary_site_name??"",v.value.secondary_site_type=p.value.secondary_site_type??"",v.value.secondary_site_type_addl_info=p.value.secondary_site_type_addl_info??"",v.value.secondary_site_address_1=p.value.secondary_site_address_1??"",v.value.secondary_site_city=p.value.secondary_site_city??"",v.value.secondary_site_state_id=p.value.secondary_site_state_id??"",v.value.secondary_site_zip=p.value.secondary_site_zip??"",v.value.secondary_site_county=p.value.secondary_site_county??"",v.value.secondary_site_country_id=p.value.secondary_site_country_id??""):(v.value.current_practice_specialty_id="",v.value.current_practice_specialty_other="",v.value.current_practice_specialty_other_describe="",v.value.primary_site_name="",v.value.primary_site_type="",v.value.primary_site_type_addl_info="",v.value.primary_site_address_1="",v.value.primary_site_city="",v.value.primary_site_state_id="",v.value.primary_site_zip="",v.value.primary_site_county="",v.value.primary_site_country_id="",v.value.secondary_site_name="",v.value.secondary_site_type="",v.value.secondary_site_type_addl_info="",v.value.secondary_site_address_1="",v.value.secondary_site_city="",v.value.secondary_site_state_id="",v.value.secondary_site_zip="",v.value.secondary_site_county="",v.value.secondary_site_country_id="")}function Y(){h.value&&p.value?(v.value.fellowship_type=p.value.fellowship_type??"",v.value.fellowship_name=p.value.fellowship_name??"",v.value.fellowship_address_1=p.value.fellowship_address_1??"",v.value.fellowship_city=p.value.fellowship_city??"",v.value.fellowship_state_id=p.value.fellowship_state_id??"",v.value.fellowship_zip=p.value.fellowship_zip??"",v.value.fellowship_county=p.value.fellowship_county??""):(v.value.fellowship_type="",v.value.fellowship_name="",v.value.fellowship_address_1="",v.value.fellowship_city="",v.value.fellowship_state_id="",v.value.fellowship_zip="",v.value.fellowship_county="")}function Z(){h.value&&p.value&&p.value.graduated_at?(v.value.graduation_month=B_(bo(p.value.graduated_at))+1,v.value.graduation_year=U_(bo(p.value.graduated_at))):(v.value.graduation_month="",v.value.graduation_year="")}function le(_e){return e.value[_e]!=null}const Ce=te(()=>{const _e=[];for(let ze=0;ze<12;ze++){const je=new Date(2e3,ze,1);_e.push({id:ze+1,name:Ro(je,"MMMM")})}return _e}),Ee=te(()=>{const ze=new Date().getFullYear();let je=[];for(let it=2018;it<=ze;
78it++)je.push({id:it,name:it});return je}),he=te(()=>s.value.map(_e=>({id:_e.id,name:_e.abbreviation+" - "+_e.name})).filter(_e=>{var ze,je;return v.value.status_practicing_outside_us==="1"?_e.id!=((ze=xe.value)==null?void 0:ze.id):_e.id==((je=xe.value)==null?void 0:je.id)})),ye=te(()=>{let _e=n.value.map(ze=>({id:ze.id,name:ze.name}));return _e.push({id:99,name:"Other Specialty"}),_e}),xe=te(()=>s.value.find(_e=>_e.name.includes("United States of America")));return Et(()=>v.value.status_currently_practicing,_e=>{var ze,je;_e==!0?(v.value.primary_site_country_id=(ze=xe.value)==null?void 0:ze.id,v.value.secondary_site_country_id=(je=xe.value)==null?void 0:je.id):(v.value.status_practicing_outside_us="",L())}),Et(()=>v.value.status_practicing_outside_us,_e=>{var ze,je;_e==!0?(v.value.primary_site_country_id="",v.value.secondary_site_country_id=""):(v.value.primary_site_country_id=(ze=xe.value)==null?void 0:ze.id,v.value.secondary_site_country_id=(je=xe.value)==null?void 0:je.id)}),Et(()=>v.value.status_fellowship,_e=>{_e==!1&&Y()}),Et(()=>v.value.status_graduated,_e=>{_e==!1&&(v.value.status_currently_practicing="",Z())}),Et(()=>v.value.current_practice_specialty_id,_e=>{_e!=99&&(v.value.current_practice_specialty_other_describe="")}),b(),{showResidentCreateModal:i,showResidentEditModal:r,formData:v,errors:e,siteTypeOptions:m,isSaving:a,isLoading:o,residents:t,canViewResidents:c,canManageResidents:f,modalHidden:D,hasError:le,save:N,openCreateModal:A,openEditModal:$,monthOptions:Ce,yearOptions:Ee,countryOptions:he,specialtyOptions:ye}}),UX={class:"card"},qX={class:"card-header d-flex justify-content-between align-items-center"},HX={class:"fw-bold m-0"},jX={class:"card-body"},WX={class:"row"},zX={class:"col-sm-6"},KX={class:"ms-3 mb-0"},GX={class:"ms-3 mb-0"},YX={class:"ms-3 mb-0"},ZX={class:"ms-3 mb-0"},XX={class:"ms-3 mb-0"},JX={class:"ms-3 mb-0"},QX={class:"col-sm-6"},eJ={class:"row"},tJ={class:"col-md-12 mb-0"},sJ={class:"ms-3 mb-0"},nJ={class:"ms-3 mb-0"},iJ={class:"row"},rJ={class:"col-sm-12 col-md-6"},oJ={class:"ms-3 mb-0"},aJ={class:"ms-3 mb-0"},lJ={class:"ms-3 mb-0"},cJ={class:"col-sm-12 col-md-6"},uJ={class:"ms-3 mb-0"},dJ={class:"ms-3 mb-0"},fJ={class:"ms-3 mb-0"},hJ={__name:"ResidentCard",props:{resident:{type:Object,required:!0},canManageResidents:{type:Boolean,default:!1}},setup(t){const e=t,s=lm(),n=te(()=>[e.resident.first_name,e.resident.middle_name,e.resident.last_name].join(" ")),i=te(()=>e.resident.started_at?Ro(bo(e.resident.started_at),"MMMM y"):""),r=te(()=>e.resident.graduated_at?Ro(bo(e.resident.graduated_at),"MMMM y"):""),o=te(()=>{const v=m("status_graduated");return v==="Yes"?r.value?`Yes, ${r.value}`:"Yes":v}),a=te(()=>{var v;return e.resident.current_practice_specialty_other==!0?e.resident.current_practice_specialty_other_describe:((v=e.resident.current_practice_specialty)==null?void 0:v.name)||"--"}),c=te(()=>{let v=m("status_currently_practicing"),b=m("status_practicing_outside_us");return v=="Yes"&&b=="Yes"?"Yes, outside the U.S.":v}),f=te(()=>_(e.resident.fellowship_address_1,e.resident.fellowship_city,e.resident.fellowship_state,e.resident.fellowship_zip,e.resident.fellowship_county,"")),h=te(()=>_(e.resident.primary_site_address_1,e.resident.primary_site_city,e.resident.primary_site_state,e.resident.primary_site_zip,e.resident.primary_site_county,e.resident.primary_site_country)),p=te(()=>_(e.resident.secondary_site_address_1,e.resident.secondary_site_city,e.resident.secondary_site_state,e.resident.secondary_site_zip,e.resident.secondary_site_county,e.resident.secondary_site_country));function m(v){return e.resident[v]==null?"--":e.resident[v]?"Yes":"No"}function _(v,b,S,C,O,A){let $=O?O.trim():"";return[v||"",`${b?`${b}, `:""}${S?`${S.name}`:""}${C?` ${C}`:""}`.trim(),$,`${A?`${A.name}`:""}`]}return(v,b)=>(y(),x("div",UX,[u("div",qX,[u("p",HX,P(n.value)+" "+P(t.resident.npi),1),u("button",{class:"btn btn-secondary btn-sm",onClick:b[0]||(b[0]=S=>w(s).openEditModal(t.resident))},"Edit")]),u("div",jX,[u("div",WX,[u("dl",zX,[b[1]||(b[1]=u("dt",null,"Started Date:",-1)),u("dd",KX,P(i.value),1),b[2]||(b[2]=u("dt",null,"Graduated:",-1)),u("dd",GX,P(o.value),1),b[3]||(b[3]=u("dt",null,"Fellowship:",-1)),u("dd",YX,P(m("status_fellowship")),1),b[4]||(b[4]=u("dt",null,"Fellowship Details:",-1)),u("dd",ZX,P(t.resident.fellowship_type),1),u("dd",XX,P(t.resident.fellowship_name),1),(y(!0),x(G,null,ge(f.value,(S,C)=>(y(),x("dd",{key:"fellowship_address_"+C,class:"ms-3 mb-0"},P(S),1))),128)),b[5]||(b[5]=u("dt",null,"Other Information:",-1)),u("dd",JX,P(t.resident.other_information),1)]),u("div",QX,[u("div",eJ,[u("dl",tJ,[b[6]||(b[6]=u("dt",null,"Currently Practicing:",-1)),u("dd",sJ,P(c.value),1),b[7]||(b[7]=u("dt",null,"Current Practice Specialty:",-1)),u("dd",nJ,P(a.value),1)])]),u("div",iJ,[u("dl",rJ,[b[8]||(b[8]=u("dt",null,"Primary Site:",-1)),u("dd",oJ,P(t.resident.primary_site_name),1),u("dd",aJ,P(t.resident.primary_site_type),1),u("dd",lJ,P(t.resident.primary_site_type_addl_info),1),(y(!0),x(G,null,ge(h.value,(S,C)=>(y(),x("dd",{key:"primary_site_address_"+C,class:"ms-3 mb-0"},P(S),1))),128))]),u("dl",cJ,[b[9]||(b[9]=u("dt",null,"Secondary Site:",-1)),u("dd",uJ,P(t.resident.secondary_site_name),1),u("dd",dJ,P(t.resident.secondary_site_type),1),u("dd",fJ,P(t.resident.secondary_site_type_addl_info),1),(y(!0),x(G,null,ge(p.value,(S,C)=>(y(),x("dd",{key:"secondary_site_address_"+C,class:"ms-3 mb-0"},P(S),1))),128))])])])])])]))}},pJ={class:"card"},mJ={class:"card-body d-flex flex-column gap-2"},gJ={role:"group","aria-labelledby":"startDateLabel"},_J={class:"row"},vJ={class:"col-md-6 mb-0"},bJ={class:"col-md-6 mb-0"},c$={__name:"BasicInformationSection",props:Nt({errors:{type:Object,default:()=>({})},monthOptions:{type:Array,default:()=>[]},yearOptions:{type:Array,default:()=>[]}},{modelValue:{type:Object,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue");return(s,n)=>{var i,r,o,a,c,f;return y(),x("div",pJ,[n[7]||(n[7]=u("div",{class:"card-header"},"Basic Information",-1)),u("div",mJ,[u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.first_name,"onUpdate:modelValue":n[0]||(n[0]=h=>e.value.first_name=h),required:!0,field:"first_name",label:"First Name",errors:(i=t.errors)==null?void 0:i.first_name},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.middle_name,"onUpdate:modelValue":n[1]||(n[1]=h=>e.value.middle_name=h),required:!1,field:"middle_name",label:"Middle Name",errors:(r=t.errors)==null?void 0:r.middle_name},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.last_name,"onUpdate:modelValue":n[2]||(n[2]=h=>e.value.last_name=h),required:!0,field:"last_name",label:"Last Name",errors:(o=t.errors)==null?void 0:o.last_name},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.npi,"onUpdate:modelValue":n[3]||(n[3]=h=>e.value.npi=h),required:!0,field:"npi",label:"NPI",errors:(a=t.errors)==null?void 0:a.npi},null,8,["modelValue","errors"])]),u("div",gJ,[n[6]||(n[6]=u("div",{id:"startDateLabel"},"Started Date",-1)),u("div",_J,[u("div",vJ,[U(Ut,{labelClass:"mb-0",modelValue:e.value.start_month,"onUpdate:modelValue":n[4]||(n[4]=h=>e.value.start_month=h),required:!1,options:t.monthOptions,field:"start_month",label:"Month",errors:(c=t.errors)==null?void 0:c.start_month},null,8,["modelValue","options","errors"])]),u("div",bJ,[U(Ut,{labelClass:"mb-0",modelValue:e.value.start_year,"onUpdate:modelValue":n[5]||(n[5]=h=>e.value.start_year=h),required:!1,options:t.yearOptions,field:"start_year",label:"Year",errors:(f=t.errors)==null?void 0:f.start_year},null,8,["modelValue","options","errors"])])])])])])}}},yJ={key:0,"aria-hidden":"true",class:"text-danger"},wJ=["name","id","aria-describedby","required"],xJ=["for"],SJ=["name","id","aria-describedby","required"],EJ=["for"],lr={__name:"RadioButtonGroupInput",props:Nt({label:{type:String,required:!1},field:{type:String,required:!0},trueLabel:{type:String,required:!1,default:"Yes"},falseLabel:{type:String,required:!1,default:"No"},errors:{type:Array,default:()=>[]},required:{type:Boolean,default:!0},labelClass:{type:String,default:""}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>s.errors.length>0);return(i,r)=>(y(),x("fieldset",null,[u("legend",{class:Ve(["col-form-label",t.labelClass])},[re(P(t.label)+" ",1),t.required?(y(),x("span",yJ,"*")):ie("",!0)],2),u("div",{role:"radiogroup",class:Ve(["btn-group btn-group-sm",{"is-invalid":n.value}])},[Ge(u("input",{type:"radio",class:Ve(["btn-check",{"is-invalid":n.value}]),"onUpdate:modelValue":r[0]||(r[0]=o=>e.value=o),name:t.field,id:t.field+"TrueId",value:"1","aria-describedby":t.field+"_error",required:t.required},null,10,wJ),[[Ps,e.value]]),u("label",{class:"btn btn-outline-secondary",for:t.field+"TrueId"},P(t.trueLabel),9,xJ),Ge(u("input",{type:"radio",class:Ve(["btn-check",{"is-invalid":n.value}]),"onUpdate:modelValue":r[1]||(r[1]=o=>
78e.value=o),name:t.field,id:t.field+"FalseId",value:"0","aria-describedby":t.field+"_error",required:t.required},null,10,SJ),[[Ps,e.value]]),u("label",{class:"btn btn-outline-secondary",for:t.field+"FalseId"},P(t.falseLabel),9,EJ)],2),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])]))}},CJ={class:"card"},kJ={class:"card-body d-flex flex-column gap-2"},AJ={role:"group","aria-labelledby":"primarySiteDetails",class:"py-3"},$J={class:"row"},TJ={class:"col-md-7 mb-1"},OJ={class:"col-sm-5 mb-1"},MJ={role:"group","aria-labelledby":"secondarySiteDetails",class:"py-3"},PJ={class:"row"},DJ={class:"col-md-7 mb-1"},RJ={class:"col-sm-5 mb-1"},u$={__name:"CurrentPracticeSection",props:Nt({errors:{type:Object,default:()=>({})},countryOptions:{type:Array,default:()=>[]},stateOptions:{type:Array,default:()=>[]},siteTypeOptions:{type:Array,default:()=>[]},specialtyOptions:{type:Array,default:()=>[]}},{modelValue:{type:Object,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue");return(s,n)=>{var i,r,o,a,c,f,h,p,m,_,v,b,S,C,O,A,$,T,D,B;return y(),x("div",CJ,[n[24]||(n[24]=u("div",{class:"card-header"},"Current Practice",-1)),u("div",kJ,[u("div",null,[U(Ut,{labelClass:"mb-0",modelValue:e.value.current_practice_specialty_id,"onUpdate:modelValue":n[0]||(n[0]=N=>e.value.current_practice_specialty_id=N),required:!0,options:t.specialtyOptions,field:"current_practice_specialty_id",label:"Current Practice Specialty",errors:(i=t.errors)==null?void 0:i.current_practice_specialty_id},null,8,["modelValue","options","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.current_practice_specialty_other_describe,"onUpdate:modelValue":n[1]||(n[1]=N=>e.value.current_practice_specialty_other_describe=N),required:e.value.current_practice_specialty_id=="99",disabled:e.value.current_practice_specialty_id!="99",field:"current_practice_specialty_other_describe",label:'If "Other Specialty", Please Specify',errors:(r=t.errors)==null?void 0:r.current_practice_specialty_other_describe},null,8,["modelValue","required","disabled","errors"])]),u("div",AJ,[n[21]||(n[21]=u("div",{id:"primarySiteDetails",class:"lead"},"Primary Site",-1)),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.primary_site_name,"onUpdate:modelValue":n[2]||(n[2]=N=>e.value.primary_site_name=N),required:!0,field:"primary_site_name",label:"Name",errors:(o=t.errors)==null?void 0:o.primary_site_name},null,8,["modelValue","errors"])]),u("div",null,[U(Ut,{labelClass:"mb-0",modelValue:e.value.primary_site_type,"onUpdate:modelValue":n[3]||(n[3]=N=>e.value.primary_site_type=N),required:!1,options:t.siteTypeOptions,field:"primary_site_type",label:"Site Type",errors:(a=t.errors)==null?void 0:a.primary_site_type},null,8,["modelValue","options","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.primary_site_type_addl_info,"onUpdate:modelValue":n[4]||(n[4]=N=>e.value.primary_site_type_addl_info=N),required:!1,field:"primary_site_type_addl_info",label:"Additional Type Info",errors:(c=t.errors)==null?void 0:c.primary_site_type_addl_info,"described-by":"primarySiteTypeAddlInfoHelp"},{helpText:Fe(()=>n[20]||(n[20]=[u("br",null,null,-1),u("small",{id:"primarySiteTypeAddlInfoHelp",class:"form-text text-muted my-0"},"ex., Sole Community Hospital, Federally Qualified Health Center, Critical Access Hospital, Teaching Hospital, etc.",-1)])),_:1},8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.primary_site_address_1,"onUpdate:modelValue":n[5]||(n[5]=N=>e.value.primary_site_address_1=N),required:!1,field:"primary_site_address_1",label:"Street",errors:(f=t.errors)==null?void 0:f.primary_site_address_1},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.primary_site_city,"onUpdate:modelValue":n[6]||(n[6]=N=>e.value.primary_site_city=N),required:!1,field:"primary_site_city",label:"City",errors:(h=t.errors)==null?void 0:h.primary_site_city},null,8,["modelValue","errors"])]),u("div",$J,[u("div",TJ,[U(Ut,{labelClass:"mb-0",modelValue:e.value.primary_site_state_id,"onUpdate:modelValue":n[7]||(n[7]=N=>e.value.primary_site_state_id=N),required:!1,options:t.stateOptions,field:"primary_site_state_id",label:"State",errors:(p=t.errors)==null?void 0:p.primary_site_state_id},null,8,["modelValue","options","errors"])]),u("div",OJ,[U(De,{labelClass:"mb-0",modelValue:e.value.primary_site_zip,"onUpdate:modelValue":n[8]||(n[8]=N=>e.value.primary_site_zip=N),required:!1,field:"primary_site_zip",label:"Zip",errors:(m=t.errors)==null?void 0:m.primary_site_zip},null,8,["modelValue","errors"])])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.primary_site_county,"onUpdate:modelValue":n[9]||(n[9]=N=>e.value.primary_site_county=N),required:!1,field:"primary_site_county",label:"County",errors:(_=t.errors)==null?void 0:_.primary_site_county},null,8,["modelValue","errors"])]),u("div",null,[U(Ut,{labelClass:"mb-0",modelValue:e.value.primary_site_country_id,"onUpdate:modelValue":n[10]||(n[10]=N=>e.value.primary_site_country_id=N),required:!1,options:t.countryOptions,field:"primary_site_country_id",label:"Country",errors:(v=t.errors)==null?void 0:v.primary_site_country_id},null,8,["modelValue","options","errors"])])]),u("div",MJ,[n[23]||(n[23]=u("div",{id:"secondarySiteDetails",class:"lead"},"Secondary Site",-1)),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.secondary_site_name,"onUpdate:modelValue":n[11]||(n[11]=N=>e.value.secondary_site_name=N),required:!1,field:"secondary_site_name",label:"Name",errors:(b=t.errors)==null?void 0:b.secondary_site_name},null,8,["modelValue","errors"])]),u("div",null,[U(Ut,{labelClass:"mb-0",modelValue:e.value.secondary_site_type,"onUpdate:modelValue":n[12]||(n[12]=N=>e.value.secondary_site_type=N),required:!1,options:t.siteTypeOptions,field:"secondary_site_type",label:"Site Type",errors:(S=t.errors)==null?void 0:S.secondary_site_type},null,8,["modelValue","options","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.secondary_site_type_addl_info,"onUpdate:modelValue":n[13]||(n[13]=N=>e.value.secondary_site_type_addl_info=N),required:!1,field:"secondary_site_type_addl_info",label:"Additional Type Info",errors:(C=t.errors)==null?void 0:C.secondary_site_type_addl_info,"described-by":"secondarySiteTypeAddlInfoHelp"},{helpText:Fe(()=>n[22]||(n[22]=[u("br",null,null,-1),u("small",{id:"secondarySiteTypeAddlInfoHelp",class:"form-text text-muted my-0"},"ex., Sole Community Hospital, Federally Qualified Health Center, Critical Access Hospital, Teaching Hospital, etc.",-1)])),_:1},8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.secondary_site_address_1,"onUpdate:modelValue":n[14]||(n[14]=N=>e.value.secondary_site_address_1=N),required:!1,field:"secondary_site_address_1",label:"Street",errors:(O=t.errors)==null?void 0:O.secondary_site_address_1},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.secondary_site_city,"onUpdate:modelValue":n[15]||(n[15]=N=>e.value.secondary_site_city=N),required:!1,field:"secondary_site_city",label:"City",errors:(A=t.errors)==null?void 0:A.secondary_site_city},null,8,["modelValue","errors"])]),u("div",PJ,[u("div",DJ,[U(Ut,{labelClass:"mb-0",modelValue:e.value.secondary_site_state_id,"onUpdate:modelValue":n[16]||(n[16]=N=>e.value.secondary_site_state_id=N),required:!1,options:t.stateOptions,field:"secondary_site_state_id",label:"State",errors:($=t.errors)==null?void 0:$.secondary_site_state_id},null,8,["modelValue","options","errors"])]),u("div",RJ,[U(De,{labelClass:"mb-0",modelValue:e.value.secondary_site_zip,"onUpdate:modelValue":n[17]||(n[17]=N=>e.value.secondary_site_zip=N),required:!1,field:"secondary_site_zip",label:"Zip",errors:(T=t.errors)==null?void 0:T.secondary_site_zip},null,8,["modelValue","errors"])])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.secondary_site_county,"onUpdate:modelValue":n[18]||(n[18]=N=>e.value.secondary_site_county=N),required:!1,field:"secondary_site_county",label:"County",errors:(D=t.errors)==null?void 0:D.secondary_site_county},null,8,["modelValue","errors"])]),u("div",null,[U(Ut,{labelClass:"mb-0",modelValue:e.value.secondary_site_country_id,"onUpdate:modelValue":n[19]||(n[19]=N=>e.value.secondary_site_country_id=N),required:!1,options:t.countryOptions,field:"secondary_site_country_id",label:"Country",errors:(B=t.errors)==null?void 0:B.secondary_site_country_id},null,8,["modelValue","options","errors"])])])])])}}},IJ={class:"card"},LJ={class:"card-body d-flex flex-column gap-2"},NJ={role:"group","aria-labelledby":"fellowshipDetails"},VJ={class:"row"}
78,FJ={class:"col-md-7 col-12"},BJ={class:"col-md-5 col-12"},UJ={role:"group","aria-labelledby":"graduationDateLabel"},qJ={class:"row"},HJ={class:"col-md-6 mb-0"},jJ={class:"col-md-6 mb-0"},d$={__name:"CurrentStatusSection",props:Nt({errors:{type:Object,default:()=>({})},monthOptions:{type:Array,default:()=>[]},yearOptions:{type:Array,default:()=>[]},stateOptions:{type:Array,default:()=>[]}},{modelValue:{type:Object,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue");return(s,n)=>{var i,r,o,a,c,f,h,p,m,_,v,b,S;return y(),x("div",IJ,[n[20]||(n[20]=u("div",{class:"card-header"},"Current Status",-1)),u("div",LJ,[u("div",null,[U(lr,{labelClass:"mb-0 p-0",field:"status_fellowship",required:!1,modelValue:e.value.status_fellowship,"onUpdate:modelValue":n[0]||(n[0]=C=>e.value.status_fellowship=C),"true-label":"Yes","false-label":"No",errors:(i=t.errors)==null?void 0:i.status_fellowship,label:"Fellowship?"},null,8,["modelValue","errors"])]),Ge(u("div",NJ,[n[14]||(n[14]=u("div",{id:"fellowshipDetails",class:"visually-hidden"},"Fellowship Details",-1)),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.fellowship_type,"onUpdate:modelValue":n[1]||(n[1]=C=>e.value.fellowship_type=C),required:!1,field:"fellowship_type",label:"Type",errors:(r=t.errors)==null?void 0:r.fellowship_type},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.fellowship_name,"onUpdate:modelValue":n[2]||(n[2]=C=>e.value.fellowship_name=C),required:!0,field:"fellowship_name",label:"Name",errors:(o=t.errors)==null?void 0:o.fellowship_name},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.fellowship_address_1,"onUpdate:modelValue":n[3]||(n[3]=C=>e.value.fellowship_address_1=C),required:!1,field:"fellowship_address_1",label:"Street",errors:(a=t.errors)==null?void 0:a.fellowship_address_1},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.fellowship_city,"onUpdate:modelValue":n[4]||(n[4]=C=>e.value.fellowship_city=C),required:!1,field:"fellowship_city",label:"City",errors:(c=t.errors)==null?void 0:c.fellowship_city},null,8,["modelValue","errors"])]),u("div",VJ,[u("div",FJ,[U(Ut,{labelClass:"mb-0",modelValue:e.value.fellowship_state_id,"onUpdate:modelValue":n[5]||(n[5]=C=>e.value.fellowship_state_id=C),required:!1,options:t.stateOptions,field:"fellowship_state_id",label:"State",errors:(f=t.errors)==null?void 0:f.fellowship_state_id},null,8,["modelValue","options","errors"])]),u("div",BJ,[U(De,{labelClass:"mb-0",modelValue:e.value.fellowship_zip,"onUpdate:modelValue":n[6]||(n[6]=C=>e.value.fellowship_zip=C),required:!1,field:"fellowship_zip",label:"Zip",errors:(h=t.errors)==null?void 0:h.fellowship_zip},null,8,["modelValue","errors"])])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.fellowship_county,"onUpdate:modelValue":n[7]||(n[7]=C=>e.value.fellowship_county=C),required:!1,field:"fellowship_county",label:"County",errors:(p=t.errors)==null?void 0:p.fellowship_county},null,8,["modelValue","errors"])])],512),[[ks,e.value.status_fellowship==!0]]),u("div",null,[U(lr,{labelClass:"mb-0 p-0",field:"status_graduated",required:!1,modelValue:e.value.status_graduated,"onUpdate:modelValue":n[8]||(n[8]=C=>e.value.status_graduated=C),"true-label":"Yes","false-label":"No",errors:(m=t.errors)==null?void 0:m.status_graduated,label:"Graduated?"},null,8,["modelValue","errors"])]),Ge(u("div",UJ,[n[15]||(n[15]=u("div",{id:"graduationDateLabel"},"Graduation Date",-1)),u("div",qJ,[u("div",HJ,[U(Ut,{labelClass:"mb-0",modelValue:e.value.graduation_month,"onUpdate:modelValue":n[9]||(n[9]=C=>e.value.graduation_month=C),required:!1,options:t.monthOptions,field:"graduation_month",label:"Month",errors:(_=t.errors)==null?void 0:_.graduation_month},null,8,["modelValue","options","errors"])]),u("div",jJ,[U(Ut,{labelClass:"mb-0",modelValue:e.value.graduation_year,"onUpdate:modelValue":n[10]||(n[10]=C=>e.value.graduation_year=C),required:!1,options:t.yearOptions,field:"graduation_year",label:"Year",errors:(v=t.errors)==null?void 0:v.graduation_year},null,8,["modelValue","options","errors"])])])],512),[[ks,e.value.status_graduated==!0]]),Ge(u("div",null,[U(lr,{labelClass:"mb-0 p-0",field:"status_currently_practicing",required:!1,modelValue:e.value.status_currently_practicing,"onUpdate:modelValue":n[11]||(n[11]=C=>e.value.status_currently_practicing=C),"true-label":"Yes","false-label":"No",errors:(b=t.errors)==null?void 0:b.status_currently_practicing,label:"Currently Practicing?"},null,8,["modelValue","errors"])],512),[[ks,e.value.status_graduated==!0]]),Ge(u("div",null,[U(lr,{labelClass:"mb-0 p-0",field:"status_practicing_outside_us",required:!1,modelValue:e.value.status_practicing_outside_us,"onUpdate:modelValue":n[12]||(n[12]=C=>e.value.status_practicing_outside_us=C),"true-label":"Yes","false-label":"No",errors:(S=t.errors)==null?void 0:S.status_practicing_outside_us,label:"Practicing Outside the U.S.?"},null,8,["modelValue","errors"])],512),[[ks,e.value.status_currently_practicing==!0]]),u("div",null,[n[16]||(n[16]=u("hr",null,null,-1)),n[17]||(n[17]=u("label",{for:"otherInformation",class:"mb-0"},"Please add any other information you would like to share.",-1)),n[18]||(n[18]=u("br",null,null,-1)),n[19]||(n[19]=u("small",{id:"otherInformationHelp",class:"form-text text-muted my-0"},"ex. primary type of service: direct patient care, teaching, administration, etc.",-1)),Ge(u("textarea",{"onUpdate:modelValue":n[13]||(n[13]=C=>e.value.other_information=C),class:"form-control","aria-describedby":"otherInformationHelp",id:"otherInformation"},P(e.value.other_information),513),[[Pi,e.value.other_information]])])])])}}},WJ={class:"container-fluid"},zJ={class:"row"},KJ={class:"col"},GJ={class:"row"},YJ={class:"col"},ZJ={class:"row"},XJ={class:"col"},JJ={role:"alert",class:"text-danger"},QJ={key:0},eQ=["onClick","disabled"],tQ=["disabled"],sQ={__name:"ResidentCreateModal",setup(t){const e=kt(),s=lm(),{stateOptions:n}=Qe(e),{isSaving:i,formData:r,errors:o,showResidentCreateModal:a,monthOptions:c,yearOptions:f,countryOptions:h,specialtyOptions:p,siteTypeOptions:m}=Qe(s);return(_,v)=>(y(),x(G,null,[u("button",{class:"btn btn-primary",onClick:v[0]||(v[0]=(...b)=>w(s).openCreateModal&&w(s).openCreateModal(...b))},"Add Resident"),U(Ri,{show:w(a),"onUpdate:show":v[5]||(v[5]=b=>a.value=b),title:"Creating Resident",modalId:"createResidentModal",onClosed:w(s).modalHidden,onSaved:v[6]||(v[6]=b=>w(s).save(b))},{footer:Fe(({closeModal:b})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:b,disabled:w(i)}," Cancel ",8,eQ),u("button",{type:"submit",form:"createResidentForm",class:"btn btn-primary",disabled:w(i)},P(w(i)?"Saving...":"Save"),9,tQ)]),default:Fe(()=>[u("div",WJ,[u("form",{id:"createResidentForm",class:"d-flex flex-column gap-3",onSubmit:v[4]||(v[4]=st((...b)=>w(s).save&&w(s).save(...b),["prevent"]))},[u("div",zJ,[u("div",KJ,[U(c$,{modelValue:w(r),"onUpdate:modelValue":v[1]||(v[1]=b=>ft(r)?r.value=b:null),errors:w(o),"month-options":w(c),"year-options":w(f)},null,8,["modelValue","errors","month-options","year-options"])])]),u("div",GJ,[u("div",YJ,[U(d$,{modelValue:w(r),"onUpdate:modelValue":v[2]||(v[2]=b=>ft(r)?r.value=b:null),errors:w(o),"month-options":w(c),"year-options":w(f),"state-options":w(n)},null,8,["modelValue","errors","month-options","year-options","state-options"])])]),Ge(u("div",ZJ,[u("div",XJ,[U(u$,{modelValue:w(r),"onUpdate:modelValue":v[3]||(v[3]=b=>ft(r)?r.value=b:null),errors:w(o),"site-type-options":w(m),"specialty-options":w(p),"state-options":w(n),"country-options":w(h)},null,8,["modelValue","errors","site-type-options","specialty-options","state-options","country-options"])])],512),[[ks,w(r).status_currently_practicing==!0]]),u("div",JJ,[Object.entries(w(o)).length?(y(),x("span",QJ,"Form submission failed, see errors above.")):ie("",!0)])],32)])]),_:1},8,["show","onClosed"])],64))}},nQ={class:"container-fluid"},iQ={class:"row"},rQ={class:"col"},oQ={class:"row"},aQ={class:"col"},lQ={class:"row"},cQ={class:"col"},uQ={role:"alert",class:"text-danger"},dQ={key:0},fQ=["onClick","disabled"],hQ=["disabled"],pQ={__name:"ResidentEditModal",setup(t){const e=kt(),s=lm(),{stateOptions:n}=Qe(e),{isSaving:i,formData:r,errors:o,showResidentEditModal:a,monthOptions:c,yearOptions:f,countryOptions:h,specialtyOptions:p,siteTypeOptions:m}=Qe(s);return(_,v)=>(y(),tt(Ri,{show:w(a),"onUpdate:show":v[4]||(v[4]=b=>a.value=b),title:"Editing Resident",modalId:"editResidentModal",onClosed:w(s).modalHidden,onSaved:v[5]||(v[5]=b=>w(s).save(b))},{footer:Fe(({closeModal:b})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:b,disabled:w(i)}," Cancel ",8,fQ),u("button",{type:"submit",form:"editResidentForm",class:"btn btn-primary",disabled:w(i)}
78,P(w(i)?"Saving...":"Save"),9,hQ)]),default:Fe(()=>[u("div",nQ,[u("form",{id:"editResidentForm",class:"d-flex flex-column gap-3",onSubmit:v[3]||(v[3]=st((...b)=>w(s).save&&w(s).save(...b),["prevent"]))},[u("div",iQ,[u("div",rQ,[U(c$,{modelValue:w(r),"onUpdate:modelValue":v[0]||(v[0]=b=>ft(r)?r.value=b:null),errors:w(o),"month-options":w(c),"year-options":w(f)},null,8,["modelValue","errors","month-options","year-options"])])]),u("div",oQ,[u("div",aQ,[U(d$,{modelValue:w(r),"onUpdate:modelValue":v[1]||(v[1]=b=>ft(r)?r.value=b:null),errors:w(o),"month-options":w(c),"year-options":w(f),"state-options":w(n)},null,8,["modelValue","errors","month-options","year-options","state-options"])])]),Ge(u("div",lQ,[u("div",cQ,[U(u$,{modelValue:w(r),"onUpdate:modelValue":v[2]||(v[2]=b=>ft(r)?r.value=b:null),errors:w(o),"site-type-options":w(m),"specialty-options":w(p),"state-options":w(n),"country-options":w(h)},null,8,["modelValue","errors","site-type-options","specialty-options","state-options","country-options"])])],512),[[ks,w(r).status_currently_practicing==!0]]),u("div",uQ,[Object.entries(w(o)).length?(y(),x("span",dQ,"Form submission failed, see errors above.")):ie("",!0)])],32)])]),_:1},8,["show","onClosed"]))}},mQ={id:"residents-list-heading",class:"fs-5 m-0"},gQ={key:0,class:"text-center p-5","aria-live":"polite"},_Q={key:1,class:"text-muted text-center p-5","aria-live":"polite"},vQ={key:0},bQ={key:2,class:"list-unstyled d-flex flex-column gap-4","aria-labelledby":"residents-list-heading"},yQ={__name:"ResidentsContent",setup(t){const e=lm(),{isLoading:s,residents:n,canManageResidents:i,canViewResidents:r}=Qe(e);return(o,a)=>(y(),tt(Ka,null,{"header-row":Fe(()=>[u("h2",mQ,"All Residents ("+P(w(n).length)+")",1),w(i)?(y(),tt(sQ,{key:0})):ie("",!0)]),"tab-body":Fe(()=>[w(s)?(y(),x("div",gQ,a[0]||(a[0]=[u("p",null,"Loading residents...",-1),u("div",{class:"spinner-border text-primary",role:"status"},[u("span",{class:"visually-hidden"},"Loading...")],-1)]))):!w(n).length||!w(r)?(y(),x("p",_Q,[a[1]||(a[1]=re(" No residents to display. ")),w(i)?(y(),x("span",vQ," Click 'Add Resident' to begin.")):ie("",!0)])):(y(),x("ul",bQ,[(y(!0),x(G,null,ge(w(n),c=>(y(),x("li",{key:c.id},[U(hJ,{resident:c,"can-manage-residents":w(i)},null,8,["resident","can-manage-residents"])]))),128))])),w(i)?(y(),tt(pQ,{key:3})):ie("",!0)]),_:1}))}},cm=hi("programMembers",()=>{const t=W([]),e=W({}),s=W(""),n=W(!1),i=W(!1),r=W(!1),o=W(!1),a=W(!1),c=W({}),f=W(!1),h=W(!1),p=W(!1),m=W({}),_=W(null),v={id:"",first_name:"",last_name:"",email:"",responsibilities:"",is_pi_proxy:0},b=W({...v});async function S(){try{const F=kt();h.value=F.permissions.manageMembers,f.value=F.permissions.viewMembers,f.value&&await C()}catch{}}async function C(){o.value=!0;let L="/portal/api/programs/"+kt().programId+"/members";try{const Y=await axios.get(L);t.value=Y.data.data}catch{}finally{o.value=!1}}function O(){n.value=!0}async function A(F){p.value=!0,_.value={...F},m.value={...F},b.value={...F},i.value=!0}function $(){T()}function T(){_.value=null,b.value={...v},m.value={},c.value={},a.value=!1,N()}async function D(){c.value={},r.value=!0,N();const L="/portal/api/programs/"+kt().programId+"/members",Y=b.value.id?`${L}/${b.value.id}/attach`:L,Z={...b.value};try{const le=await axios.post(Y,Z);n.value=!1,T(),await C()}catch(le){le.response&&le.response.status==422&&(e.value=le.response.data.errors,e.value.existing_user!=null&&(e.value.email=[],e.value.is_attached_to_program!=null?s.value=le.response.data.errors.is_attached_to_program[0]:(c.value=e.value.existing_user[0],b.value.id=c.value.id,b.value.first_name=c.value.first_name,b.value.last_name=c.value.last_name,a.value=!0)))}finally{r.value=!1}}async function B(){c.value={},r.value=!0,N();let L="/portal/api/programs/"+kt().programId+"/members/"+b.value.id,Y="patch";a.value&&(L+="/attach",Y="post");const Z={...b.value};try{const le=await axios[Y](L,Z);i.value=!1,T(),await C()}catch(le){le.response&&le.response.status==422&&(e.value=le.response.data.errors,e.value.existing_user!=null&&(e.value.email=[],e.value.is_attached_to_program!=null?s.value=le.response.data.errors.is_attached_to_program[0]:(c.value=e.value.existing_user[0],b.value.id=c.value.id,b.value.first_name=c.value.first_name,b.value.last_name=c.value.last_name,a.value=!0)))}finally{r.value=!1}}function N(){e.value={},s.value=""}
78return S(),{canManageMembers:h,canViewMembers:f,formData:b,foundUserResult:c,errors:e,members:t,globalError:s,isSaving:r,isAttachingExistingUser:a,showMemberCreateModal:n,showMemberEditModal:i,activeMember:m,openCreateModal:O,openEditModal:A,createMember:D,editMember:B,modalHidden:$}}),wQ={class:"card"},xQ={class:"card-header d-flex justify-content-between align-items-center"},SQ={class:"fw-bold m-0"},EQ={key:0,class:"badge text-bg-primary align-middle"},CQ={class:"card-body"},kQ={class:"row"},AQ={class:"col-sm-6 mb-0"},$Q={class:"ms-3 mb-0"},TQ={class:"ms-3 mb-0"},OQ={__name:"MemberCard",props:{member:{type:Object,required:!0},canManageMembers:{type:Boolean,default:!1}},setup(t){const e=cm();return(s,n)=>(y(),x("div",wQ,[u("div",xQ,[u("p",SQ,[re(P(t.member.full_name)+" ",1),t.member.is_pi_proxy?(y(),x("span",EQ,"PI Proxy")):ie("",!0)]),t.canManageMembers?(y(),x("button",{key:0,class:"btn btn-secondary btn-sm",onClick:n[0]||(n[0]=i=>w(e).openEditModal(t.member))},"Edit")):ie("",!0)]),u("div",CQ,[u("div",kQ,[u("dl",AQ,[n[1]||(n[1]=u("dt",null,"Email:",-1)),u("dd",$Q,P(t.member.email),1),n[2]||(n[2]=u("dt",null,"Role:",-1)),u("dd",TQ,P(t.member.responsibilities??"--"),1)])])])]))}},MQ={class:"container-fluid"},PQ={class:"row"},DQ={class:"col"},RQ={class:"fw-bold"},IQ={role:"alert",class:"text-danger"},LQ={key:0},NQ=["onClick","disabled"],VQ=["disabled"],FQ={__name:"MemberCreateModal",setup(t){const e=cm(),{isSaving:s,isAttachingExistingUser:n,formData:i,globalError:r,errors:o,showMemberCreateModal:a,foundUserResult:c}=Qe(e);return(f,h)=>(y(),x(G,null,[u("button",{class:"btn btn-primary",onClick:h[0]||(h[0]=(...p)=>w(e).openCreateModal&&w(e).openCreateModal(...p))},"Add Member"),U(Ri,{show:w(a),"onUpdate:show":h[7]||(h[7]=p=>a.value=p),title:"Creating Program Member",modalId:"createMemberModal",onClosed:w(e).modalHidden,onSaved:h[8]||(h[8]=p=>w(e).createMember(p))},{footer:Fe(({closeModal:p})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:p,disabled:w(s)}," Cancel ",8,NQ),u("button",{type:"submit",form:"createMemberForm",class:"btn btn-primary",disabled:w(s)},P(w(s)?"Saving...":"Save"),9,VQ)]),default:Fe(()=>{var p,m,_,v,b;return[u("div",MQ,[u("div",{class:Ve({"alert alert-info":Object.entries(w(c)).length>0}),role:"alert"},[Object.entries(w(c)).length>0?(y(),x(G,{key:0},[re("We found an existing user who matches that email! Click 'Save' to confirm adding them to this program.")],64)):ie("",!0)],2),u("form",{id:"createMemberForm",class:"d-flex flex-column gap-3",onSubmit:h[6]||(h[6]=st((...S)=>w(e).createMember&&w(e).createMember(...S),["prevent"]))},[u("div",PQ,[u("div",DQ,[w(n)?(y(),x(G,{key:0},[h[9]||(h[9]=u("p",{class:"m-0"},"Existing User:",-1)),u("p",RQ,P(w(i).first_name)+" "+P(w(i).last_name)+", "+P(w(i).email),1)],64)):(y(),x(G,{key:1},[U(De,{labelClass:"mb-0",modelValue:w(i).email,"onUpdate:modelValue":h[1]||(h[1]=S=>w(i).email=S),required:!0,disabled:w(n),field:"email",label:"Email",errors:(p=w(o))==null?void 0:p.email},null,8,["modelValue","disabled","errors"]),U(De,{labelClass:"mb-0",modelValue:w(i).first_name,"onUpdate:modelValue":h[2]||(h[2]=S=>w(i).first_name=S),required:!0,disabled:w(n),field:"first_name",label:"First Name",errors:(m=w(o))==null?void 0:m.first_name},null,8,["modelValue","disabled","errors"]),U(De,{labelClass:"mb-0",modelValue:w(i).last_name,"onUpdate:modelValue":h[3]||(h[3]=S=>w(i).last_name=S),disabled:w(n),required:!0,field:"last_name",label:"Last Name",errors:(_=w(o))==null?void 0:_.last_name},null,8,["modelValue","disabled","errors"])],64)),U(De,{labelClass:"mb-0",modelValue:w(i).responsibilities,"onUpdate:modelValue":h[4]||(h[4]=S=>w(i).responsibilities=S),required:!1,field:"responsibilities",label:"Role",errors:(v=w(o))==null?void 0:v.responsibilities},null,8,["modelValue","errors"]),U(Xs,{field:"is_pi_proxy",modelValue:w(i).is_pi_proxy,"onUpdate:modelValue":h[5]||(h[5]=S=>w(i).is_pi_proxy=S),errors:(b=w(o))==null?void 0:b.is_pi_proxy,label:"Designate as PI Proxy?","described-by":"piProxyHelp"},{helpText:Fe(()=>h[10]||(h[10]=[u("br",null,null,-1),u("small",{id:"piProxyHelp",class:"form-text text-muted my-0"},"By checking this, you are allowing this member to edit the tracker, assessments, and members for this program as if they were the PI.",-1)])),_:1},8,["modelValue","errors"])])]),u("div",IQ,[Object.entries(w(o)).length?(y(),x("span",LQ,P(w(r)??"Form submission failed, see errors above."),1)):ie("",!0)])],32)])]}),_:1},8,["show","onClosed"])],64))}},BQ={class:"container-fluid"},UQ={key:0,class:"alert alert-info"},qQ={class:"row"},HQ={class:"col"},jQ={class:"fw-bold"},WQ={role:"alert",class:"text-danger"},zQ={key:0},KQ=["onClick","disabled"],GQ=["disabled"],YQ={__name:"MemberEditModal",setup(t){const e=te(()=>h.value&&h.value.programs.length>1),s=cm(),{isSaving:n,isAttachingExistingUser:i,formData:r,globalError:o,errors:a,showMemberEditModal:c,foundUserResult:f,activeMember:h}=Qe(s);return(p,m)=>(y(),tt(Ri,{show:w(c),"onUpdate:show":m[6]||(m[6]=_=>c.value=_),title:"Editing Program Member",modalId:"editMemberModal",onClosed:w(s).modalHidden,onSaved:m[7]||(m[7]=_=>w(s).editMember(_))},{footer:Fe(({closeModal:_})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:_,disabled:w(n)}," Cancel ",8,KQ),u("button",{type:"submit",form:"editMemberForm",class:"btn btn-primary",disabled:w(n)},P(w(n)?"Saving...":"Save"),9,GQ)]),default:Fe(()=>{var _,v,b,S,C;return[u("div",BQ,[u("div",{class:Ve({"alert alert-info":w(i)}),role:"alert"},[w(i)?(y(),x(G,{key:0},[re("We found an existing user who matches that email! Click 'Save' to confirm adding them to this program.")],64)):ie("",!0)],2),e.value&&!w(i)?(y(),x("div",UQ,m[8]||(m[8]=[u("p",null,"Note: This user is associated with multiple programs.",-1),u("p",{cl:""},[re("Changes to their "),u("span",{class:"fw-bold"},"Name"),re(" or "),u("span",{class:"fw-bold"},"Email"),re(" will update their profile across all programs. Other
78changes (Role, PI Proxy status) will only apply to this program.")],-1)]))):ie("",!0),u("form",{id:"editMemberForm",class:"d-flex flex-column gap-3",onSubmit:m[5]||(m[5]=st((...O)=>w(s).editMember&&w(s).editMember(...O),["prevent"]))},[u("div",qQ,[u("div",HQ,[w(i)?(y(),x(G,{key:0},[m[9]||(m[9]=u("p",{class:"m-0"},"Existing User:",-1)),u("p",jQ,P(w(r).first_name)+" "+P(w(r).last_name)+", "+P(w(r).email),1)],64)):(y(),x(G,{key:1},[U(De,{labelClass:"mb-0",modelValue:w(r).email,"onUpdate:modelValue":m[0]||(m[0]=O=>w(r).email=O),required:!0,disabled:w(i),field:"email",label:"Email",errors:(_=w(a))==null?void 0:_.email,"described-by":"memberEmailHelp"},{helpText:Fe(()=>m[10]||(m[10]=[u("br",null,null,-1),u("small",{id:"memberEmailHelp",class:"form-text text-muted my-0"},"Note: Updating the member's email also changes their login email.",-1)])),_:1},8,["modelValue","disabled","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).first_name,"onUpdate:modelValue":m[1]||(m[1]=O=>w(r).first_name=O),required:!0,disabled:w(i),field:"first_name",label:"First Name",errors:(v=w(a))==null?void 0:v.first_name},null,8,["modelValue","disabled","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).last_name,"onUpdate:modelValue":m[2]||(m[2]=O=>w(r).last_name=O),disabled:w(i),required:!0,field:"last_name",label:"Last Name",errors:(b=w(a))==null?void 0:b.last_name},null,8,["modelValue","disabled","errors"])],64)),U(De,{labelClass:"mb-0",modelValue:w(r).responsibilities,"onUpdate:modelValue":m[3]||(m[3]=O=>w(r).responsibilities=O),required:!1,field:"responsibilities",label:"Role",errors:(S=w(a))==null?void 0:S.responsibilities},null,8,["modelValue","errors"]),U(Xs,{field:"is_pi_proxy",modelValue:w(r).is_pi_proxy,"onUpdate:modelValue":m[4]||(m[4]=O=>w(r).is_pi_proxy=O),errors:(C=w(a))==null?void 0:C.is_pi_proxy,label:"Designate as PI Proxy?","described-by":"piProxyHelp"},{helpText:Fe(()=>m[11]||(m[11]=[u("br",null,null,-1),u("small",{id:"piProxyHelp",class:"form-text text-muted my-0"},"By checking this, you are allowing this member to edit the tracker, assessments, and members for this program as if they were the PI.",-1)])),_:1},8,["modelValue","errors"])])]),u("div",WQ,[Object.entries(w(a)).length?(y(),x("span",zQ,P(w(o)??"Form submission failed, see errors above."),1)):ie("",!0)])],32)])]}),_:1},8,["show","onClosed"]))}},ZQ={id:"members-list-heading",class:"fs-5 m-0"},XQ={key:0,class:"text-center p-5","aria-live":"polite"},JQ={key:1,class:"text-muted text-center p-5","aria-live":"polite"},QQ={key:0},eee={key:2,class:"list-unstyled d-flex flex-column gap-4","aria-labelledby":"members-list-heading"},tee={__name:"MembersContent",setup(t){const e=cm(),{isLoading:s,members:n,canViewMembers:i,canManageMembers:r}=Qe(e);return(o,a)=>(y(),tt(Ka,null,{"header-row":Fe(()=>[u("h2",ZQ,"All Members ("+P(w(n).length)+")",1),w(r)?(y(),tt(FQ,{key:0})):ie("",!0)]),"tab-body":Fe(()=>[w(s)?(y(),x("div",XQ,a[0]||(a[0]=[u("p",null,"Loading members...",-1),u("div",{class:"spinner-border text-primary",role:"status"},[u("span",{class:"visually-hidden"},"Loading...")],-1)]))):!w(n).length||!w(i)?(y(),x("p",JQ,[a[1]||(a[1]=re(" No members to display. ")),w(r)?(y(),x("span",QQ," Click 'Add Member' to begin.")):ie("",!0)])):(y(),x("ul",eee,[(y(!0),x(G,null,ge(w(n),c=>(y(),x("li",{key:c.id},[U(OQ,{member:c,"can-manage-members":w(r)},null,8,["member","can-manage-members"])]))),128))])),w(r)?(y(),tt(YQ,{key:3})):ie("",!0)]),_:1}))}},f$=hi("programProfile",()=>{const t=W({}),e=W({}),s=W(!1),n=W(!1),i=W(!1),r=W(!1),o=W(!1),a=W([]),c=W([]),h=W({...{id:"",program_id:"",residency_program_name:"",is_rural_track_program:"",class_size:"",academic_affiliation_allopathic:"",academic_affiliation_allopathic_desc:"",academic_affiliation_osteopathic:"",academic_affiliation_osteopathic_desc:"",academic_affiliation_dentistry:"",academic_affiliation_dentistry_desc:"",academic_affiliation_pharmacy:"",academic_affiliation_pharmacy_desc:"",academic_affiliation_nursing:"",academic_affiliation_nursing_desc:"",academic_affiliation_public_health:"",academic_affiliation_public_health_desc:"",academic_affiliation_other:"",academic_affiliation_other_desc:"",itu_affiliation:"",va_affiliation:"",ahec_affiliation:"",pca_affiliation:"",consortium_supported:"",sponsoring_institution:"",sponsoring_institution_address:"",sponsoring_institution_city:"",sponsoring_institution_state_id:"",sponsoring_institution_zip:"",sponsoring_institution_type_id:"",num_approved_positions:"",num_residents_in_training:"",program_website:"",program_start_year:"",other_program_family_med:"",other_program_internal_med:"",other_program_psychiatry:"",other_program_pediatrics:"",other_program_general_surgery:"",other_program_geriatrics:"",other_program_multi_specialty:"",other_program_obgyn:"",other_program_internal_med_peds:"",other_program_preventive_med:"",other_program_general_dentistry:"",other_program_pediatric_dentistry:"",other_program_physician_assistant:"",other_program_nurse_practitioner:"",other_program_social_worker:"",other_program_pharmacy:"",other_program_other:"",other_program_other_desc:"",funding_source_hrsa_arp:"",funding_source_hrsa_thcgme:"",funding_source_patient_revenue:"",funding_source_medicaid:"",funding_source_medicare:"",funding_source_state:"",funding_source_federal:"",funding_source_private:"",funding_source_other:"",funding_source_other_desc:"",match_2020:"",match_2021:"",match_2022:"",match_2023:"",match_2024:"",match_2025:"",match_2026:"",match_2027:"",match_2028:"",match_2029:"",match_2030:"",match_2031:"",match_2032:""}});async function p(){try{const T=kt();i.value=T.permissions.viewProfile,r.value=T.permissions.manageProfile,i.value&&await m(),r.value&&await _()}catch{}}async function m(){s.value=!0;let D="/portal/api/programs/"+kt().programId+"/profile";try{const B=await axios.get(D);t.value=B.data.data,a.value=t.value.available_program_start_years}catch{}finally{s.value=!1}}async function _(){try{const T=await axios.get("/portal/api/sponsoring-institution-types");c.value=T.data.data}catch{}}async function v(){n.value=!0,C();const D="/portal/api/programs/"+kt().programId+"/profile",B={...h.value};try{const N=await axios.patch(D,B);o.value=!1,S(),await m()}catch(N){N.response&&N.response.status==422&&(e.value=N.response.data.errors)}finally{n.value=!1}}function b(){S()}function S(){h.value={...w(t)},C()}function C(){e.value={}}function O(){h.value={...w(t)},o.value=!0}const A=te(()=>a.value.map(T=>({id:T,name:T}))),$=te(()=>c.value.map(T=>({id:T.id,name:T.name})));return Et(()=>h.value.academic_affiliation_allopathic,T=>{T==0&&(h.value.academic_affiliation_allopathic_desc="")}),Et(()=>h.value.academic_affiliation_osteopathic,T=>{T==0&&(h.value.academic_affiliation_osteopathic_desc="")}),Et(()=>h.value.academic_affiliation_dentistry,T=>{T==0&&(h.value.academic_affiliation_dentistry_desc="")}),Et(()=>h.value.academic_affiliation_pharmacy,T=>{T==0&&(h.value.academic_affiliation_pharmacy_desc="")}),Et(()=>h.value.academic_affiliation_nursing,T=>{T==0&&(h.value.academic_affiliation_nursing_desc="")}),Et(()=>h.value.academic_affiliation_public_health,T=>{T==0&&(h.value.academic_affiliation_public_health_desc="")}),Et(()=>h.value.academic_affiliation_other,T=>{T==0&&(h.value.academic_affiliation_other_desc="")}),Et(()=>h.value.academic_affiliation_other,T=>{T==0&&(h.value.academic_affiliation_other_desc="")}),Et(()=>h.value.other_program_other,T=>{T==0&&(h.value.other_program_other_desc="")}),Et(()=>h.value.funding_source_other,T=>{T==0&&(h.value.funding_source_other_desc="")}),p(),{profile:t,isLoading:s,isSaving:n,formData:h,errors:e,canViewProfile:i,canManageProfile:r,showProgramProfileEditModal:o,save:v,modalHidden:b,openEditModal:O,programStartYearOptions:A,sponsoringInstitutionTypesOptions:$}}),see={class:"card mt-4"},nee={class:"card-body"},iee={class:"ms-3 mb-0"},ree={class:"ms-3 mb-0"},oee={class:"mb-0"},aee={class:"list-group list-group-flush"},lee={__name:"AccreditationAndMatchInfoCard",props:{profile:{type:Object,required:!0}},setup(t){const e=t,s=te(()=>{var n;return(n=e.profile.available_match_year_fields)==null?void 0:n.map(i=>({name:i.replace("match_","Match Year "),key:i}))});return(n,i)=>(y(),x("div",see,[i[3]||(i[3]=u("div",{class:"card-header"},[u("h3",{class:"fw-bold fs-6 m-0 py-2"},"Accreditation and Match Information")],-1)),u("div",nee,[u("dl",null,[i[0]||(i[0]=u("dt",null,"How many ACGME accredited positions does the program have?",-1)),u("dd",iee,P(t.profile.num_approved_positions),1),i[1]||(i[1]=u("dt",null,"How many residents does your residency program have in training?",-1)),u("dd",ree,P(t.profile.num_residents_in_training),1),i[2]||(i[2]=u("dt",null,"For the following years, how many residents did you match, including matches through NRMP, SOAP, and the Postdoctoral Dental Matching Program?",-1)),u("dd",oee,[u("ul",aee,[(y(!0),x(G,null,ge(s.value,(r,o)=>(y(),x("li",{key:o,class:"list-group-item m-0 p-1 ms-3"},P(r.name)+": "+P(t.profile[r.key]),1))),128))])])])])]))}},cee={class:"card"},uee={class:"card-body"},dee={class:"ms-3 mb-0"},fee={class:"ms-3 mb-0"},hee={__name:"ProfileBasicInfoCard",props:{profile:{type:Object,required:!0}}
78,setup(t){return(e,s)=>(y(),x("div",cee,[s[2]||(s[2]=u("div",{class:"card-header"},[u("h3",{class:"fw-bold fs-6 m-0 py-2"},"Program Basic Information")],-1)),u("div",uee,[u("dl",null,[s[0]||(s[0]=u("dt",null,"Residency Program Name:",-1)),u("dd",dee,P(t.profile.residency_program_name),1),s[1]||(s[1]=u("dt",null,"Program Website",-1)),u("dd",fee,P(t.profile.program_website),1)])])]))}},pee={class:"card"},mee={class:"card-body"},gee={class:"mb-0"},_ee={class:"list-group list-group-flush"},vee={class:"container-fluid"},bee={class:"row align-items-start"},yee={class:"col-1 d-flex justify-content-center align-items-center"},wee={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.9",stroke:"currentColor",class:"text-success",style:{width:"1.5rem",height:"1.5rem"},"aria-hidden":"true"},xee={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.9",stroke:"currentColor",class:"text-danger",style:{width:"1.5rem",height:"1.5rem"},"aria-hidden":"true"},See={class:"col-11"},Eee={class:"mb-0"},Cee={key:0,class:"mb-0"},kee={__name:"ProfileFundingModelCard",props:{profile:{type:Object,required:!0}},setup(t){const e=n=>n||"",s=[{name:"HRSA American Rescue Plan Funding (âH8Fâ) Funding",key:"funding_source_hrsa_arp",descKey:null},{name:"HRSA Teaching Health Center Graduate Medical Education (THCGME) Funding",key:"funding_source_hrsa_thcgme",descKey:null},{name:"General patient service revenue",key:"funding_source_patient_revenue",descKey:null},{name:"Medicaid GME Payments",key:"funding_source_medicaid",descKey:null},{name:"Medicare GME Payments",key:"funding_source_medicare",descKey:null},{name:"Other State Grants",key:"funding_source_state",descKey:null},{name:"Other Federal Grants",key:"funding_source_federal",descKey:null},{name:"Private Foundation Grants",key:"funding_source_private",descKey:null},{name:"Other Source",key:"funding_source_other",descKey:"funding_source_other_desc"}];return(n,i)=>(y(),x("div",pee,[i[5]||(i[5]=u("div",{class:"card-header"},[u("h3",{class:"fw-bold fs-6 m-0 py-2"},"Program Funding Model")],-1)),u("div",mee,[i[4]||(i[4]=u("dt",null,"What funding sources do you plan to utilize to ensure program sustainability?",-1)),u("dd",gee,[u("ul",_ee,[(y(),x(G,null,ge(s,(r,o)=>u("li",{key:o,class:"list-group-item m-0 p-1"},[u("div",vee,[u("div",bee,[u("div",yee,[t.profile[r.key]?(y(),x(G,{key:0},[(y(),x("svg",wee,i[0]||(i[0]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1)]))),i[1]||(i[1]=u("span",{class:"visually-hidden"},"Yes",-1))],64)):(y(),x(G,{key:1},[(y(),x("svg",xee,i[2]||(i[2]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)]))),i[3]||(i[3]=u("span",{class:"visually-hidden"},"No",-1))],64))]),u("div",See,[u("p",Eee,P(r.name),1),r.descKey?(y(),x("p",Cee," Description: "+P(e(t.profile[r.descKey])),1)):ie("",!0)])])])])),64))])])])]))}},Aee={class:"card mt-4"},$ee={class:"card-body"},Tee={class:"ms-3 mb-0"},Oee={class:"ms-3 mb-0"},Mee={class:"mb-0"},Pee={class:"list-group list-group-flush"},Dee={class:"container-fluid"},Ree={class:"row align-items-start"},Iee={class:"col-1 d-flex justify-content-center align-items-center"},Lee={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.9",stroke:"currentColor",class:"text-success",style:{width:"1.5rem",height:"1.5rem"},"aria-hidden":"true"},Nee={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.75",stroke:"currentColor",class:"text-danger",style:{width:"1.5rem",height:"1.5rem"},"aria-hidden":"true"},Vee={class:"col-11"},Fee={class:"mb-0"},Bee={class:"mb-0"},Uee={class:"ms-3 mb-0"},qee={class:"ms-3 mb-0"},Hee={class:"ms-3 mb-0"},jee={class:"ms-3 mb-0"},Wee={class:"ms-3 mb-0"},zee={class:"ms-3 mb-0"},Kee={class:"mb-0"},Gee={class:"list-group list-group-flush"},Yee={class:"container-fluid"},Zee={class:"row align-items-start"},Xee={class:"col-1 d-flex justify-content-center align-items-center"},Jee={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.9",stroke:"currentColor",class:"text-success",style:{width:"1.5rem",height:"1.5rem"},"aria-hidden":"true"},Qee={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.9",stroke:"currentColor",class:"text-danger",style:{width:"1.5rem",height:"1.5rem"},"aria-hidden":"true"},ete={class:"col-11"},tte={class:"mb-0"},ste={key:0,class:"mb-0"},nte={__name:"ProfileStructureAndAffiliationsCard",props:{profile:{type:Object,required:!0}},setup(t){const e=r=>{switch(r){case 1:return"Yes";case 0:return"No";default:return"No"}},s=r=>r||"",n=[{name:"Allopathic School of Medicine",key:"academic_affiliation_allopathic",descKey:"academic_affiliation_allopathic_desc"},{name:"Osteopathic School of Medicine",key:"academic_affiliation_osteopathic",descKey:"academic_affiliation_osteopathic_desc"},{name:"School of Dentistry",key:"academic_affiliation_dentistry",descKey:"academic_affiliation_dentistry_desc"},{name:"School of Pharmacy",key:"academic_affiliation_pharmacy",descKey:"academic_affiliation_pharmacy_desc"},{name:"School of Nursing",key:"academic_affiliation_nursing",descKey:"academic_affiliation_nursing_desc"},{name:"School of Public Health",key:"academic_affiliation_public_health",descKey:"academic_affiliation_public_health_desc"},{name:"Other Academic Affiliation",key:"academic_affiliation_other",descKey:"academic_affiliation_other_desc"}],i=[{name:"Family Medicine",key:"other_program_family_med",descKey:null},{name:"Internal Medicine",key:"other_program_internal_med",descKey:null},{name:"Psychiatry",key:"other_program_psychiatry",descKey:null},{name:"Pediatrics",key:"other_program_pediatrics",descKey:null},{name:"General Surgery",key:"other_program_general_surgery",descKey:null},{name:"Geriatrics",key:"other_program_geriatrics",descKey:null},{name:"Multi Specialty",key:"other_program_multi_specialty",descKey:null},{name:"OB/GYN",key:"other_program_obgyn",descKey:null},{name:"Internal Medicine - Pediatrics",key:"other_program_internal_med_peds",descKey:null},{name:"Preventive Medicine",key:"other_program_preventive_med",descKey:null},{name:"General Dentistry",key:"other_program_general_dentistry",descKey:null},{name:"Pediatric Dentistry",key:"other_program_pediatric_dentistry",descKey:null},{name:"Physician Assistant",key:"other_program_physician_assistant",descKey:null},{name:"Nurse Practitioner",key:"other_program_nurse_practitioner",descKey:null},{name:"Social Worker",key:"other_program_social_worker",descKey:null},{name:"Pharmacy",key:"other_program_pharmacy",descKey:null},{name:"Other Program",key:"other_program_other",descKey:"other_program_other_desc"}];return(r,o)=>(y(),x("div",Aee,[o[18]||(o[18]=u("div",{class:"card-header"},[u("h3",{class:"fw-bold fs-6 m-0 py-2"},"Program Structure and Affiliations")],-1)),u("div",$ee,[u("dl",null,[o[8]||(o[8]=u("dt",null,"Is your program a Rural Track Program?",-1)),u("dd",Tee,P(t.profile.is_rural_track_program),1),o[9]||(o[9]=u("dt",null,"Class Size:",-1)),u("dd",Oee,P(t.profile.class_
78size),1),o[10]||(o[10]=u("dt",null,"Academic Affiliations:",-1)),u("dd",Mee,[u("ul",Pee,[(y(),x(G,null,ge(n,(a,c)=>u("li",{key:c,class:"list-group-item m-0 p-1"},[u("div",Dee,[u("div",Ree,[u("div",Iee,[t.profile[a.key]?(y(),x(G,{key:0},[(y(),x("svg",Lee,o[0]||(o[0]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1)]))),o[1]||(o[1]=u("span",{class:"visually-hidden"},"Affiliated",-1))],64)):(y(),x(G,{key:1},[(y(),x("svg",Nee,o[2]||(o[2]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)]))),o[3]||(o[3]=u("span",{class:"visually-hidden"},"Not Affiliated",-1))],64))]),u("div",Vee,[u("p",Fee,P(a.name),1),u("p",Bee," Description: "+P(s(t.profile[a.descKey])),1)])])])])),64))])]),o[11]||(o[11]=u("dt",{class:"mt-3"},"Does your program partner with the Indian Health Service (IHS)?",-1)),u("dd",Uee,P(e(t.profile.itu_affiliation)),1),o[12]||(o[12]=u("dt",null,"Does your program partner with the Department of Veterans Affairs?",-1)),u("dd",qee,P(e(t.profile.va_affiliation)),1),o[13]||(o[13]=u("dt",null,"Does your program partner with an Area Health Education Center (AHEC) program?",-1)),u("dd",Hee,P(e(t.profile.ahec_affiliation)),1),o[14]||(o[14]=u("dt",null,"Does your program partner with a Primary Care Association (PCA)?",-1)),u("dd",jee,P(e(t.profile.pca_affiliation)),1),o[15]||(o[15]=u("dt",null,"Is your program supported by a Consortium?",-1)),u("dd",Wee,P(e(t.profile.consortium_supported)),1),o[16]||(o[16]=u("dt",null,"When does your program plan to welcome its first class of residents?",-1)),u("dd",zee,P(t.profile.program_start_year),1),o[17]||(o[17]=u("dt",null,"Are there other graduate medical education programs located at any of the program's primary care training sites?",-1)),u("dd",Kee,[u("ul",Gee,[(y(),x(G,null,ge(i,(a,c)=>u("li",{key:c,class:"list-group-item m-0 p-1"},[u("div",Yee,[u("div",Zee,[u("div",Xee,[t.profile[a.key]?(y(),x(G,{key:0},[(y(),x("svg",Jee,o[4]||(o[4]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1)]))),o[5]||(o[5]=u("span",{class:"visually-hidden"},"Yes",-1))],64)):(y(),x(G,{key:1},[(y(),x("svg",Qee,o[6]||(o[6]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"},null,-1)]))),o[7]||(o[7]=u("span",{class:"visually-hidden"},"No",-1))],64))]),u("div",ete,[u("p",tte,P(a.name),1),a.descKey?(y(),x("p",ste," Description: "+P(s(t.profile[a.descKey])),1)):ie("",!0)])])])])),64))])])])])]))}},ite={class:"card mt-4"},rte={class:"card-body d-flex flex-column gap-2"},ote={__name:"AccreditationAndMatchInfoSection",props:Nt({errors:{type:Object,default:()=>({})},profile:{type:Object,required:!0}},{modelValue:{type:Object,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=t,n=te(()=>{var i;return(i=s.profile.available_match_year_fields)==null?void 0:i.map(r=>({name:r.replace("match_","Match Year "),key:r}))});return(i,r)=>{var o,a;return y(),x("div",ite,[r[3]||(r[3]=u("div",{class:"card-header"},"Accreditation and Match Information",-1)),u("div",rte,[u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.num_approved_positions,"onUpdate:modelValue":r[0]||(r[0]=c=>e.value.num_approved_positions=c),required:!1,field:"num_approved_positions",label:"How many ACGME accredited positions does the program have?",errors:(o=t.errors)==null?void 0:o.num_approved_positions},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.num_residents_in_training,"onUpdate:modelValue":r[1]||(r[1]=c=>e.value.num_residents_in_training=c),required:!1,field:"num_residents_in_training",label:"How many residents does your residency program have in training?",errors:(a=t.errors)==null?void 0:a.num_residents_in_training},null,8,["modelValue","errors"])]),u("fieldset",null,[r[2]||(r[2]=u("legend",{class:"fs-base"},"For the following years, how many residents did you match, including matches through NRMP, SOAP, and the Postdoctoral Dental Matching Program?",-1)),(y(!0),x(G,null,ge(n.value,(c,f)=>(y(),tt(De,{key:"year_"+f,labelClass:"mb-0",modelValue:e.value[c.key],"onUpdate:modelValue":h=>e.value[c.key]=h,required:!1,field:c.key,label:c.name,errors:t.errors[c.key]},null,8,["modelValue","onUpdate:modelValue","field","label","errors"]))),128))])])])}}},ate={class:"card"},lte={class:"card-body d-flex flex-column gap-2"},cte={__name:"ProfileBasicInfoSection",props:Nt({errors:{type:Object,default:()=>({})}},{modelValue:{type:Object,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue");return(s,n)=>{var i,r;return y(),x("div",ate,[n[2]||(n[2]=u("div",{class:"card-header"},"Program Basic Information",-1)),u("div",lte,[u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.residency_program_name,"onUpdate:modelValue":n[0]||(n[0]=o=>e.value.residency_program_name=o),required:!1,field:"residency_program_name",label:"Residency Program Name",errors:(i=t.errors)==null?void 0:i.residency_program_name},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.program_website,"onUpdate:modelValue":n[1]||(n[1]=o=>e.value.program_website=o),required:!1,field:"program_website",label:"What is your program's or sponsor's website address?",errors:(r=t.errors)==null?void 0:r.program_website},null,8,["modelValue","errors"])])])])}}},ute={class:"card"},dte={class:"card-body d-flex flex-column gap-2"},fte={__name:"ProfileFundingModelSection",props:Nt({errors:{type:Object,default:()=>({})}},{modelValue:{type:Object,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=[{name:"HRSA American Rescue Plan Funding (âH8Fâ) Funding",key:"funding_source_hrsa_arp",descKey:null},{name:"HRSA Teaching Health Center Graduate Medical Education (THCGME) Funding",key:"funding_source_hrsa_thcgme",descKey:null}
78,{name:"General patient service revenue",key:"funding_source_patient_revenue",descKey:null},{name:"Medicaid GME Payments",key:"funding_source_medicaid",descKey:null},{name:"Medicare GME Payments",key:"funding_source_medicare",descKey:null},{name:"Other State Grants",key:"funding_source_state",descKey:null},{name:"Other Federal Grants",key:"funding_source_federal",descKey:null},{name:"Private Foundation Grants",key:"funding_source_private",descKey:null},{name:"Other Source",key:"funding_source_other",descKey:"funding_source_other_desc"}];return(n,i)=>(y(),x("div",ute,[i[1]||(i[1]=u("div",{class:"card-header"},"Program Funding Model",-1)),u("div",dte,[u("fieldset",null,[i[0]||(i[0]=u("legend",{class:"fs-base"},"What funding sources do you plan to utilize to ensure program sustainability (select all that are applicable)?",-1)),(y(),x(G,null,ge(s,(r,o)=>(y(),x(G,{key:"source_"+o},[U(Xs,{field:r.key,modelValue:e.value[r.key],"onUpdate:modelValue":a=>e.value[r.key]=a,required:!1,errors:t.errors[r.key],label:r.name},null,8,["field","modelValue","onUpdate:modelValue","errors","label"]),r.descKey?(y(),tt(De,{key:0,labelClass:"mb-0",modelValue:e.value[r.descKey],"onUpdate:modelValue":a=>e.value[r.descKey]=a,required:!1,disabled:!e.value[r.key],field:r.descKey,label:"Please Describe:",errors:t.errors[r.descKey]},null,8,["modelValue","onUpdate:modelValue","disabled","field","errors"])):ie("",!0)],64))),64))])])]))}},hte={class:"card mt-4"},pte={class:"card-body d-flex flex-column gap-2"},mte={class:"form-group"},gte={role:"radiogroup",class:"btn-group-vertical",tabindex:"-1"},_te={__name:"ProfileStructureAndAffiliationsSection",props:Nt({errors:{type:Object,default:()=>({})},programStartYearOptions:{type:Array,default:[]}},{modelValue:{type:Object,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue"),s=[{name:"Allopathic School of Medicine",key:"academic_affiliation_allopathic",descKey:"academic_affiliation_allopathic_desc"},{name:"Osteopathic School of Medicine",key:"academic_affiliation_osteopathic",descKey:"academic_affiliation_osteopathic_desc"},{name:"School of Dentistry",key:"academic_affiliation_dentistry",descKey:"academic_affiliation_dentistry_desc"},{name:"School of Pharmacy",key:"academic_affiliation_pharmacy",descKey:"academic_affiliation_pharmacy_desc"},{name:"School of Nursing",key:"academic_affiliation_nursing",descKey:"academic_affiliation_nursing_desc"},{name:"School of Public Health",key:"academic_affiliation_public_health",descKey:"academic_affiliation_public_health_desc"},{name:"Other Academic Affiliation",key:"academic_affiliation_other",descKey:"academic_affiliation_other_desc"}],n=[{name:"Family Medicine",key:"other_program_family_med",descKey:null},{name:"Internal Medicine",key:"other_program_internal_med",descKey:null},{name:"Psychiatry",key:"other_program_psychiatry",descKey:null},{name:"Pediatrics",key:"other_program_pediatrics",descKey:null},{name:"General Surgery",key:"other_program_general_surgery",descKey:null},{name:"Geriatrics",key:"other_program_geriatrics",descKey:null},{name:"Multi Specialty",key:"other_program_multi_specialty",descKey:null},{name:"OB/GYN",key:"other_program_obgyn",descKey:null},{name:"Internal Medicine - Pediatrics",key:"other_program_internal_med_peds",descKey:null},{name:"Preventive Medicine",key:"other_program_preventive_med",descKey:null},{name:"General Dentistry",key:"other_program_general_dentistry",descKey:null},{name:"Pediatric Dentistry",key:"other_program_pediatric_dentistry",descKey:null},{name:"Physician Assistant",key:"other_program_physician_assistant",descKey:null},{name:"Nurse Practitioner",key:"other_program_nurse_practitioner",descKey:null},{name:"Social Worker",key:"other_program_social_worker",descKey:null},{name:"Pharmacy",key:"other_program_pharmacy",descKey:null},{name:"Other Program",key:"other_program_other",descKey:"other_program_other_desc"}];return(i,r)=>{var o,a,c,f,h,p,m,_;return y(),x("div",hte,[r[16]||(r[16]=u("div",{class:"card-header"},"Program Structure and Affiliations",-1)),u("div",pte,[u("div",null,[u("fieldset",mte,[r[13]||(r[13]=u("legend",{class:"fs-base"},"Is your program a Rural Track Program?",-1)),u("div",gte,[Ge(u("input",{type:"radio","onUpdate:modelValue":r[0]||(r[0]=v=>e.value.is_rural_track_program=v),name:"is_rural_track_program",id:"existing_rural_track_program",class:Ve(["btn-check",{active:e.value.is_rural_track_program=="Yes, rural track within an existing residency program"}]),value:"Yes, rural track within an existing residency program","aria-describedby":"is_rural_track_program_error"},null,2),[[Ps,e.value.is_rural_track_program]]),r[10]||(r[10]=u("label",{class:"btn btn-outline-secondary btn-sm",for:"existing_rural_track_program"},"Yes, rural track within an existing residency program",-1)),Ge(u("input",{type:"radio","onUpdate:modelValue":r[1]||(r[1]=v=>e.value.is_rural_track_program=v),name:"is_rural_track_program",id:"new_rural_track_program",class:Ve(["btn-check",{active:e.value.is_rural_track_program=="Yes, new rural residency program"}]),value:"Yes, new rural residency program","aria-describedby":"is_rural_track_program_error"},null,2),[[Ps,e.value.is_rural_track_program]]),r[11]||(r[11]=u("label",{class:"btn btn-outline-secondary btn-sm",for:"new_rural_track_program"},"Yes, new rural residency program",-1)),Ge(u("input",{type:"radio","onUpdate:modelValue":r[2]||(r[2]=v=>e.value.is_rural_track_program=v),name:"is_rural_track_program",id:"is_not_rural_track_program",class:Ve(["btn-check",{active:e.value.is_rural_track_program=="No"}]),value:"No","aria-describedby":"is_rural_track_program_error"},null,2),[[Ps,e.value.is_rural_track_program]]),r[12]||(r[12]=u("label",{class:"btn btn-outline-secondary btn-sm",for:"is_not_rural_track_program"},"No",-1)),U(pn,{errors:(o=t.errors)==null?void 0:o.is_rural_track_program,field:"is_rural_track_program"},null,8,["errors"])])])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.class_
78size,"onUpdate:modelValue":r[3]||(r[3]=v=>e.value.class_size=v),required:!1,field:"class_size",label:"Class Size",errors:(a=t.errors)==null?void 0:a.class_size},null,8,["modelValue","errors"])]),u("fieldset",null,[r[14]||(r[14]=u("legend",{class:"fs-base"},"Is your program affiliated with any health professions schools (select all that are applicable)?",-1)),(y(),x(G,null,ge(s,(v,b)=>(y(),x(G,{key:"affiliation_"+b},[U(Xs,{field:v.key,modelValue:e.value[v.key],"onUpdate:modelValue":S=>e.value[v.key]=S,required:!1,errors:t.errors[v.key],label:v.name},null,8,["field","modelValue","onUpdate:modelValue","errors","label"]),U(De,{labelClass:"mb-0",modelValue:e.value[v.descKey],"onUpdate:modelValue":S=>e.value[v.descKey]=S,required:!1,disabled:!e.value[v.key],field:v.descKey,label:"Please Describe:",errors:t.errors[v.descKey]},null,8,["modelValue","onUpdate:modelValue","disabled","field","errors"])],64))),64))]),u("div",null,[U(lr,{field:"itu_affiliation",modelValue:e.value.itu_affiliation,"onUpdate:modelValue":r[4]||(r[4]=v=>e.value.itu_affiliation=v),"true-label":"Yes","false-label":"No",required:!1,errors:(c=t.errors)==null?void 0:c.itu_affiliation,label:"Does your program partner with the Indian Health Service (IHS)?"},null,8,["modelValue","errors"])]),u("div",null,[U(lr,{field:"va_affiliation",modelValue:e.value.va_affiliation,"onUpdate:modelValue":r[5]||(r[5]=v=>e.value.va_affiliation=v),"true-label":"Yes","false-label":"No",required:!1,errors:(f=t.errors)==null?void 0:f.va_affiliation,label:"Does your program partner with the Department of Veterans Affairs?"},null,8,["modelValue","errors"])]),u("div",null,[U(lr,{field:"ahec_affiliation",modelValue:e.value.ahec_affiliation,"onUpdate:modelValue":r[6]||(r[6]=v=>e.value.ahec_affiliation=v),"true-label":"Yes","false-label":"No",required:!1,errors:(h=t.errors)==null?void 0:h.ahec_affiliation,label:"Does your program partner with an Area Health Education Center (AHEC) program?"},null,8,["modelValue","errors"])]),u("div",null,[U(lr,{field:"pca_affiliation",modelValue:e.value.pca_affiliation,"onUpdate:modelValue":r[7]||(r[7]=v=>e.value.pca_affiliation=v),"true-label":"Yes","false-label":"No",required:!1,errors:(p=t.errors)==null?void 0:p.pca_affiliation,label:"Does your program partner with a Primary Care Association (PCA)?"},null,8,["modelValue","errors"])]),u("div",null,[U(lr,{field:"consortium_supported",modelValue:e.value.consortium_supported,"onUpdate:modelValue":r[8]||(r[8]=v=>e.value.consortium_supported=v),"true-label":"Yes","false-label":"No",required:!1,errors:(m=t.errors)==null?void 0:m.consortium_supported,label:"Is your program supported by a Consortium?"},null,8,["modelValue","errors"])]),u("div",null,[U(Ut,{modelValue:e.value.program_start_year,"onUpdate:modelValue":r[9]||(r[9]=v=>e.value.program_start_year=v),required:!1,options:t.programStartYearOptions,field:"program_start_year",label:"When does your program plan to welcome its first class of residents?","null-label":"Year",errors:(_=t.errors)==null?void 0:_.program_start_year},null,8,["modelValue","options","errors"])]),u("fieldset",null,[r[15]||(r[15]=u("legend",{class:"fs-base"},"Are there other graduate medical education programs located at any of the program's primary care training sites (select all that are applicable)?",-1)),(y(),x(G,null,ge(n,(v,b)=>(y(),x(G,{key:"program_"+b},[U(Xs,{field:v.key,modelValue:e.value[v.key],"onUpdate:modelValue":S=>e.value[v.key]=S,required:!1,errors:t.errors[v.key],label:v.name},null,8,["field","modelValue","onUpdate:modelValue","errors","label"]),v.descKey?(y(),tt(De,{key:0,labelClass:"mb-0",modelValue:e.value[v.descKey],"onUpdate:modelValue":S=>e.value[v.descKey]=S,required:!1,disabled:!e.value[v.key],field:v.descKey,label:"Please Describe:",errors:t.errors[v.descKey]},null,8,["modelValue","onUpdate:modelValue","disabled","field","errors"])):ie("",!0)],64))),64))])])])}}},vte={class:"card mt-4"},bte={class:"card-body d-flex flex-column gap-2"},yte={__name:"SponsoringInstitutionInfoSection",props:Nt({errors:{type:Object,default:()=>({})},stateOptions:{type:Array,default:()=>[]},typeOptions:{type:Array,default:()=>[]}},{modelValue:{type:Object,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Gt(t,"modelValue");return(s,n)=>{var i,r,o,a,c,f;return y(),x("div",vte,[n[6]||(n[6]=u("div",{class:"card-header"},"Sponsoring Institution Information",-1)),u("div",bte,[u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.sponsoring_institution,"onUpdate:modelValue":n[0]||(n[0]=h=>e.value.sponsoring_institution=h),required:!1,field:"sponsoring_institution",label:"Who is your sponsoring institution?",errors:(i=t.errors)==null?void 0:i.sponsoring_institution},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.sponsoring_institution_address,"onUpdate:modelValue":n[1]||(n[1]=h=>e.value.sponsoring_institution_address=h),required:!1,field:"sponsoring_institution_address",label:"What is your sponsoring institution's street address?",errors:(r=t.errors)==null?void 0:r.sponsoring_institution_address},null,8,["modelValue","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.sponsoring_institution_city,"onUpdate:modelValue":n[2]||(n[2]=h=>e.value.sponsoring_institution_city=h),required:!1,field:"sponsoring_institution_city",label:"What is your sponsoring institution's city?",errors:(o=t.errors)==null?void 0:o.sponsoring_institution_city},null,8,["modelValue","errors"])]),u("div",null,[U(Ut,{labelClass:"mb-0",modelValue:e.value.sponsoring_institution_state_id,"onUpdate:modelValue":n[3]||(n[3]=h=>e.value.sponsoring_institution_state_id=h),required:!1,options:t.stateOptions,field:"sponsoring_institution_state_id",label:"What is your sponsoring institution's state?","null-label":"State",errors:(a=t.errors)==null?void 0:a.sponsoring_institution_state_id},null,8,["modelValue","options","errors"])]),u("div",null,[U(De,{labelClass:"mb-0",modelValue:e.value.sponsoring_institution_zip,"onUpdate:modelValue":n[4]||(n[4]=h=>e.value.sponsoring_institution_zip=h),required:!1,field:"sponsoring_institution_zip",label:"What is your sponsoring institution's 5-digit zip code?",errors:(c=t.errors)==null?void 0:c.sponsoring_institution_zip},null,8,["modelValue","errors"])]),u("div",null,[U(Ut,{labelClass:"mb-0",modelValue:e.value.sponsoring_institution_type_id,"onUpdate:modelValue":n[5]||(n[5]=h=>
78e.value.sponsoring_institution_type_id=h),required:!1,options:t.typeOptions,field:"sponsoring_institution_type_id",label:"What category does your sponsoring institution fall under?","null-label":"Category",errors:(f=t.errors)==null?void 0:f.sponsoring_institution_type_id},null,8,["modelValue","options","errors"])])])])}}},wte={class:"container-fluid"},xte={class:"row"},Ste={class:"col-6"},Ete={class:"col-6"},Cte={role:"alert",class:"text-danger"},kte={key:0},Ate=["onClick","disabled"],$te=["disabled"],Tte={__name:"ProgramProfileEditModal",setup(t){const e=kt(),s=f$(),{stateOptions:n}=Qe(e),{profile:i,isSaving:r,formData:o,errors:a,showProgramProfileEditModal:c,programStartYearOptions:f,sponsoringInstitutionTypesOptions:h}=Qe(s);return(p,m)=>(y(),tt(Ri,{show:w(c),"onUpdate:show":m[6]||(m[6]=_=>c.value=_),title:"Editing Program Profile",modalId:"editProgramProfileModal",onClosed:w(s).modalHidden,onSaved:m[7]||(m[7]=_=>w(s).save(_)),size:"xl"},{footer:Fe(({closeModal:_})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:_,disabled:w(r)}," Cancel ",8,Ate),u("button",{type:"submit",form:"editProgramProfileForm",class:"btn btn-primary",disabled:w(r)},P(w(r)?"Saving...":"Save"),9,$te)]),default:Fe(()=>[u("div",wte,[u("form",{id:"editProgramProfileForm",onSubmit:m[5]||(m[5]=st((..._)=>w(s).save&&w(s).save(..._),["prevent"]))},[u("div",xte,[u("div",Ste,[U(cte,{modelValue:w(o),"onUpdate:modelValue":m[0]||(m[0]=_=>ft(o)?o.value=_:null),errors:w(a)},null,8,["modelValue","errors"]),U(_te,{modelValue:w(o),"onUpdate:modelValue":m[1]||(m[1]=_=>ft(o)?o.value=_:null),errors:w(a),"program-start-year-options":w(f)},null,8,["modelValue","errors","program-start-year-options"])]),u("div",Ete,[U(fte,{modelValue:w(o),"onUpdate:modelValue":m[2]||(m[2]=_=>ft(o)?o.value=_:null),errors:w(a)},null,8,["modelValue","errors"]),U(yte,{modelValue:w(o),"onUpdate:modelValue":m[3]||(m[3]=_=>ft(o)?o.value=_:null),errors:w(a),"state-options":w(n),"type-options":w(h)},null,8,["modelValue","errors","state-options","type-options"]),U(ote,{modelValue:w(o),"onUpdate:modelValue":m[4]||(m[4]=_=>ft(o)?o.value=_:null),errors:w(a),profile:w(i)},null,8,["modelValue","errors","profile"])])]),u("div",Cte,[Object.entries(w(a)).length?(y(),x("span",kte,"Form submission failed, see errors above.")):ie("",!0)])],32)])]),_:1},8,["show","onClosed"]))}},Ote={class:"card mt-4"},Mte={class:"card-body"},Pte={class:"ms-3 mb-0"},Dte={class:"ms-3 mb-0"},Rte={class:"ms-3 mb-0"},Ite={class:"ms-3 mb-0"},Lte={class:"ms-3 mb-0"},Nte={class:"ms-3 mb-0"},Vte={__name:"SponsoringInstitutionInfoCard",props:{profile:{type:Object,required:!0}},setup(t){return(e,s)=>{var n,i;return y(),x("div",Ote,[s[6]||(s[6]=u("div",{class:"card-header"},[u("h3",{class:"fw-bold fs-6 m-0 py-2"},"Sponsoring Institution Information")],-1)),u("div",Mte,[u("dl",null,[s[0]||(s[0]=u("dt",null,"Who is your sponsoring institution?",-1)),u("dd",Pte,P(t.profile.sponsoring_institution),1),s[1]||(s[1]=u("dt",null,"What is your sponsoring institution's street address?",-1)),u("dd",Dte,P(t.profile.sponsoring_institution_address),1),s[2]||(s[2]=u("dt",null,"What is your sponsoring institution's city?",-1)),u("dd",Rte,P(t.profile.sponsoring_institution_city),1),s[3]||(s[3]=u("dt",null,"What is your sponsoring institution's state?",-1)),u("dd",Ite,P((n=t.profile.sponsoring_institution_state)==null?void 0:n.abbreviation),1),s[4]||(s[4]=u("dt",null,"What is your sponsoring institution's 5-digit zip code?",-1)),u("dd",Lte,P(t.profile.sponsoring_institution_zip),1),s[5]||(s[5]=u("dt",null,"What category does your sponsoring institution fall under?",-1)),u("dd",Nte,P((i=t.profile.sponsoring_institution_type)==null?void 0:i.name),1)])])])}}},Fte={class:"row"},Bte={class:"col-sm-6"},Ute={class:"col-sm-6"},qte={__name:"ProgramProfileContent",setup(t){const e=f$(),{isLoading:s,profile:n,trainingSites:i,canViewProfile:r,canManageProfile:o}=Qe(e);return(a,c)=>(y(),tt(Ka,null,{"header-row":Fe(()=>[c[1]||(c[1]=u("h2",{id:"program-profile-heading",class:"fs-5 m-0"},"Program Profile",-1)),u("button",{class:"btn btn-primary",onClick:c[0]||(c[0]=(...f)=>w(e).openEditModal&&w(e).openEditModal(...f))},"Edit Program Profile")]),"tab-body":Fe(()=>[u("div",Fte,[u("div",Bte,[U(hee,{profile:w(n)},null,8,["profile"]),U(nte,{profile:w(n)},null,8,["profile"])]),u("div",Ute,[U(kee,{profile:w(n)},null,8,["profile"]),U(Vte,{profile:w(n)},null,8,["profile"]),U(lee,{profile:w(n)},null,8,["profile"])])]),U(Tte)]),_:1}))}},um=hi("programTrainingSites",()=>{const t=W([]),e=W([]),s=W({}),n=W(!1),i=W(!1),r=W(!1),o=W(!1),a=W(!1),c=W(!1),f={id:"",name:"",address_1:"",address_2:"",city:"",county:"",state_id:null,zip:"",percent_training_time:"",site_type_id:null,
78site_type_other_desc:"",bed_size:"",is_primary:"",is_active:""},h=W({...f});async function p(){try{const B=kt();a.value=B.permissions.viewTrainingSites,c.value=B.permissions.manageTrainingSites,a.value&&await m(),c.value&&await _()}catch{}}async function m(){n.value=!0;let N="/portal/api/programs/"+kt().programId+"/training-sites";try{const F=await axios.get(N);t.value=F.data.data}catch{}finally{n.value=!1}}async function _(){try{const B=await axios.get("/portal/api/site-types");e.value=B.data.data}catch{}}async function v(){i.value=!0,A();const N="/portal/api/programs/"+kt().programId+"/training-sites",F=h.value.id?`${N}/${h.value.id}`:N,L={...h.value};L.site_type_id!==D.value.id&&(L.site_type_other_desc="");const Y=h.value.id?"patch":"post";try{const Z=await axios[Y](F,L);r.value=!1,o.value=!1,O(),await m()}catch(Z){Z.response&&Z.response.status==422&&(s.value=Z.response.data.errors)}finally{i.value=!1}}function b(){r.value=!0}async function S(B){h.value={...B},o.value=!0}function C(){O()}function O(){h.value={...f},A()}function A(){s.value={}}function $(B){return s.value[B]!=null}const T=te(()=>e.value.map(B=>({id:B.id,name:B.name}))),D=te(()=>e.value.find(B=>B.name==="Other"));return Et(()=>h.value.site_type_id,B=>{B!=D.value.id&&(h.value.site_type_other_desc="")}),p(),{formData:h,errors:s,isSaving:i,isLoading:n,trainingSites:t,canViewTrainingSites:a,canManageTrainingSites:c,showTrainingSiteCreateModal:r,showTrainingSiteEditModal:o,modalHidden:C,hasError:$,save:v,openCreateModal:b,openEditModal:S,siteTypeOptions:T,otherSiteType:D}}),Hte={class:"card"},jte={class:"card-header d-flex justify-content-between align-items-center"},Wte={class:"fw-bold m-0"},zte={key:0,class:"badge text-bg-info align-middle"},Kte={key:1,class:"badge text-bg-danger align-middle"},Gte={class:"card-body"},Yte={class:"row"},Zte={class:"col-sm-6"},Xte={class:"col-sm-6"},Jte={class:"row"},Qte={class:"col-md-12 mb-0"},ese={class:"ms-3 mb-0"},tse={class:"ms-3 mb-0"},sse={class:"ms-3 mb-0"},nse={__name:"TrainingSiteCard",props:{trainingSite:{type:Object,required:!0}},setup(t){const e=t,s=um(),n=te(()=>e.trainingSite.site_type.name!=="Other"?e.trainingSite.site_type.name:e.trainingSite.site_type.name+": "+e.trainingSite.site_type_other_desc),i=te(()=>r(e.trainingSite.address_1,e.trainingSite.address_2,e.trainingSite.city,e.trainingSite.state,e.trainingSite.zip,e.trainingSite.county));function r(o,a,c,f,h,p,m){let _=p?p.trim():"";return[`${o?`${o} `:""}`,`${a?`${a} `:""}`,`${c?`${c}, `:""}${f?`${f.name}`:""}${h?` ${h}`:""}`.trim(),_,""]}return(o,a)=>(y(),x("div",Hte,[u("div",jte,[u("div",null,[u("p",Wte,[re(P(t.trainingSite.name)+" ",1),t.trainingSite.is_primary?(y(),x("span",zte,"Primary")):ie("",!0),t.trainingSite.is_active?ie("",!0):(y(),x("span",Kte,"Inactive"))])]),u("button",{class:"btn btn-secondary btn-sm",onClick:a[0]||(a[0]=c=>w(s).openEditModal(t.trainingSite))},"Edit")]),u("div",Gte,[u("div",Yte,[u("dl",Zte,[a[1]||(a[1]=u("dt",null,"Address:",-1)),(y(!0),x(G,null,ge(i.value,(c,f)=>(y(),x("dd",{key:"site_address_"+f,class:"ms-3 mb-0"},P(c),1))),128))]),u("div",Xte,[u("div",Jte,[u("dl",Qte,[a[2]||(a[2]=u("dt",null,"Percent Training Time:",-1)),u("dd",ese,P(t.trainingSite.percent_training_time)+"%",1),a[3]||(a[3]=u("dt",null,"Site Type:",-1)),u("dd",tse,P(n.value),1),a[4]||(a[4]=u("dt",null,"Bed Size:",-1)),u("dd",sse,P(t.trainingSite.bed_size),1)])])])])])]))}},ise={class:"container-fluid"},rse={class:"row"},ose={class:"col"},ase={class:"row"},lse={class:"col-md-7 mb-1"},cse={class:"col-sm-5 mb-1"},use={role:"alert",class:"text-danger"},dse={key:0},fse=["onClick","disabled"],hse=["disabled"],pse={__name:"TrainingSiteCreateModal",setup(t){const e=kt(),s=um(),{stateOptions:n}=Qe(e),{isSaving:i,formData:r,errors:o,showTrainingSiteCreateModal:a,siteTypeOptions:c,otherSiteType:f}=Qe(s);return(h,p)=>(y(),x(G,null,[u("button",{class:"btn btn-primary",onClick:p[0]||(p[0]=(...m)=>w(s).openCreateModal&&w(s).openCreateModal(...m))},"Add Training Site"),U(Ri,{show:w(a),"onUpdate:show":p[13]||(p[13]=m=>a.value=m),title:"Creating Training Site",modalId:"createTrainingSiteModal",onClosed:w(s).modalHidden,onSaved:p[14]||(p[14]=m=>w(s).save(m))},{footer:Fe(({closeModal:m})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:m,disabled:w(i)}," Cancel ",8,fse),u("button",{type:"submit",form:"createTrainingSiteForm",class:"btn btn-primary",disabled:w(i)},P(w(i)?"Saving...":"Save"),9,hse)]),default:Fe(()=>{var m,_,v,b,S,C,O,A,$,T,D;return[u("div",ise,[u("form",{id:"createTrainingSiteForm",class:"d-flex flex-column gap-3",onSubmit:p[12]||(p[12]=st((...B)=>w(s).save&&w(s).save(...B),["prevent"]))},[u("div",rse,[u("div",ose,[U(De,{labelClass:"mb-0",modelValue:w(r).name,"onUpdate:modelValue":p[1]||(p[1]=B=>w(r).name=B),required:!0,field:"name",label:"Name",errors:(m=w(o))==null?void 0:m.name},null,8,["modelValue","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).address_1,"onUpdate:modelValue":p[2]||(p[2]=B=>w(r).address_1=B),required:!0,field:"address_1",label:"Address 1",errors:(_=w(o))==null?void 0:_.address_1},null,8,["modelValue","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).address_2,"onUpdate:modelValue":p[3]||(p[3]=B=>w(r).address_2=B),required:!1,field:"address_2",label:"Address 2",errors:(v=w(o))==null?void 0:v.address_2},null,8,["modelValue","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).city,"onUpdate:modelValue":p[4]||(p[4]=B=>w(r).city=B),required:!0,field:"city",label:"City",errors:(b=w(o))==null?void 0:b.city},null,8,["modelValue","errors"]),u("div",ase,[u("div",lse,[U(Ut,{labelClass:"mb-0",modelValue:w(r).state_id,"onUpdate:modelValue":p[5]||(p[5]=B=>w(r).state_id=B),required:!0,options:w(n),field:"state_id",label:"State",errors:(S=w(o))==null?void 0:S.state_id},null,8,["modelValue","options","errors"])]),u("div",cse,[U(De,{labelClass:"mb-0",modelValue:w(r).zip,"onUpdate:modelValue":p[6]||(p[6]=B=>w(r).zip=B),required:!0,field:"zip",label:"Zip",errors:(C=w(o))==null?void 0:C.zip},null,8,["modelValue","errors"])])]),U(De,{labelClass:"mb-0",modelValue:w(r).county,"onUpdate:modelValue":p[7]||(p[7]=B=>w(r).county=B),required:!0,field:"county",label:"County",errors:(O=w(o))==null?void 0:O.county},null,8,["modelValue","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).percent_training_time,"onUpdate:modelValue":p[8]||(p[8]=B=>w(r).percent_training_time=B),required:!0,field:"percent_training_time",label:"Percent Training Time",errors:(A=w(o))==null?void 0:A.percent_training_time},null,8,["modelValue","errors"]),U(Ut,{labelClass:"mb-0",modelValue:w(r).site_type_id,"onUpdate:modelValue":p[9]||(p[9]=B=>w(r).site_type_id=B),required:!0,options:w(c),field:"site_type_id",label:"Site Type",errors:($=w(o))==null?void 0:$.site_type_id},null,8,["modelValue","options","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).site_type_other_desc,"onUpdate:modelValue":p[10]||(p[10]=B=>w(r).site_type_other_desc=B),required:w(r).site_type_id==w(f).id,disabled:w(r).site_type_id!=w(f).id,field:"site_type_other_desc",label:'If "Other Site Type", Please Specify',errors:(T=w(o))==null?void 0:T.site_type_other_desc},null,8,["modelValue","required","disabled","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).bed_size,"onUpdate:modelValue":p[11]||(p[11]=B=>w(r).bed_size=B),required:!1,field:"bed_size",label:"Bed Size",errors:(D=w(o))==null?void 0:D.bed_size},null,8,["modelValue","errors"])])]),u("div",use,[Object.entries(w(o)).length?(y(),x("span",dse,"Form submission failed, see errors above.")):ie("",!0)])],32)])]}),_:1},8,["show","onClosed"])],64))}},mse={class:"container-fluid"},gse={class:"row"},_se={class:"col"},vse={class:"row"},bse={class:"col-md-7 mb-1"},yse={class:"col-sm-5 mb-1"},wse={role:"alert",class:"text-danger"},xse={key:0},Sse=["onClick","disabled"],Ese=["disabled"],Cse={__name:"TrainingSiteEditModal",setup(t){const e=kt(),s=um(),{stateOptions:n}=Qe(e),{isSaving:i,formData:r,errors:o,showTrainingSiteEditModal:a,siteTypeOptions:c,otherSiteType:f}=Qe(s);
78return(h,p)=>(y(),tt(Ri,{show:w(a),"onUpdate:show":p[14]||(p[14]=m=>a.value=m),title:"Editing Training Site",modalId:"editTrainingSiteModal",onClosed:w(s).modalHidden,onSaved:p[15]||(p[15]=m=>w(s).save(m))},{footer:Fe(({closeModal:m})=>[u("button",{type:"button",class:"btn btn-secondary",onClick:m,disabled:w(i)}," Cancel ",8,Sse),u("button",{type:"submit",form:"editTrainingSiteForm",class:"btn btn-primary",disabled:w(i)},P(w(i)?"Saving...":"Save"),9,Ese)]),default:Fe(()=>{var m,_,v,b,S,C,O,A,$,T,D,B,N;return[u("div",mse,[u("form",{id:"editTrainingSiteForm",class:"d-flex flex-column gap-3",onSubmit:p[13]||(p[13]=st((...F)=>w(s).save&&w(s).save(...F),["prevent"]))},[u("div",gse,[u("div",_se,[U(De,{labelClass:"mb-0",modelValue:w(r).name,"onUpdate:modelValue":p[0]||(p[0]=F=>w(r).name=F),required:!0,field:"name",label:"Name",errors:(m=w(o))==null?void 0:m.name},null,8,["modelValue","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).address_1,"onUpdate:modelValue":p[1]||(p[1]=F=>w(r).address_1=F),required:!0,field:"address_1",label:"Address 1",errors:(_=w(o))==null?void 0:_.address_1},null,8,["modelValue","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).address_2,"onUpdate:modelValue":p[2]||(p[2]=F=>w(r).address_2=F),required:!1,field:"address_2",label:"Address 2",errors:(v=w(o))==null?void 0:v.address_2},null,8,["modelValue","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).city,"onUpdate:modelValue":p[3]||(p[3]=F=>w(r).city=F),required:!0,field:"city",label:"City",errors:(b=w(o))==null?void 0:b.city},null,8,["modelValue","errors"]),u("div",vse,[u("div",bse,[U(Ut,{labelClass:"mb-0",modelValue:w(r).state_id,"onUpdate:modelValue":p[4]||(p[4]=F=>w(r).state_id=F),required:!0,options:w(n),field:"state_id",label:"State",errors:(S=w(o))==null?void 0:S.state_id},null,8,["modelValue","options","errors"])]),u("div",yse,[U(De,{labelClass:"mb-0",modelValue:w(r).zip,"onUpdate:modelValue":p[5]||(p[5]=F=>w(r).zip=F),required:!0,field:"zip",label:"Zip",errors:(C=w(o))==null?void 0:C.zip},null,8,["modelValue","errors"])])]),U(De,{labelClass:"mb-0",modelValue:w(r).county,"onUpdate:modelValue":p[6]||(p[6]=F=>w(r).county=F),required:!0,field:"county",label:"County",errors:(O=w(o))==null?void 0:O.county},null,8,["modelValue","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).percent_training_time,"onUpdate:modelValue":p[7]||(p[7]=F=>w(r).percent_training_time=F),required:!0,field:"percent_training_time",label:"Percent Training Time",errors:(A=w(o))==null?void 0:A.percent_training_time},null,8,["modelValue","errors"]),U(Ut,{labelClass:"mb-0",modelValue:w(r).site_type_id,"onUpdate:modelValue":p[8]||(p[8]=F=>w(r).site_type_id=F),required:!0,options:w(c),field:"site_type_id",label:"Site Type",errors:($=w(o))==null?void 0:$.site_type_id},null,8,["modelValue","options","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).site_type_other_desc,"onUpdate:modelValue":p[9]||(p[9]=F=>w(r).site_type_other_desc=F),required:w(r).site_type_id==w(f).id,disabled:w(r).site_type_id!=w(f).id,field:"site_type_other_desc",label:'If "Other Site Type", Please Specify',errors:(T=w(o))==null?void 0:T.site_type_other_desc},null,8,["modelValue","required","disabled","errors"]),U(De,{labelClass:"mb-0",modelValue:w(r).bed_size,"onUpdate:modelValue":p[10]||(p[10]=F=>w(r).bed_size=F),required:!1,field:"bed_size",label:"Bed Size",errors:(D=w(o))==null?void 0:D.bed_size},null,8,["modelValue","errors"]),U(Xs,{field:"is_primary",modelValue:w(r).is_primary,"onUpdate:modelValue":p[11]||(p[11]=F=>w(r).is_primary=F),required:!0,errors:(B=w(o))==null?void 0:B.is_primary,label:"Is Primary Site?"},null,8,["modelValue","errors"]),U(lr,{labelClass:"mb-0 p-0 mt-1",field:"is_active",modelValue:w(r).is_active,"onUpdate:modelValue":p[12]||(p[12]=F=>w(r).is_active=F),required:!0,"true-label":"Active","false-label":"Inactive",errors:(N=w(o))==null?void 0:N.is_active,label:"Site Status"},null,8,["modelValue","errors"])])]),u("div",wse,[Object.entries(w(o)).length?(y(),x("span",xse,"Form submission failed, see errors above.")):ie("",!0)])],32)])]}),_:1},8,["show","onClosed"]))}},kse={id:"training-sites-list-heading",class:"fs-5 m-0"},Ase={key:0,class:"text-center p-5","aria-live":"polite"},$se={key:1,class:"text-muted text-center p-5","aria-live":"polite"},Tse={key:0},Ose={key:2,class:"list-unstyled d-flex flex-column gap-4","aria-labelledby":"training-sites-list-heading"},Mse={__name:"TrainingSitesContent",setup(t){const e=um(),{isLoading:s,trainingSites:n,canViewTrainingSites:i,canManageTrainingSites:r}=Qe(e);return(o,a)=>(y(),tt(Ka,null,{"header-row":Fe(()=>[u("h2",kse,"All Training Sites ("+P(w(n).length)+")",1),w(r)?(y(),tt(pse,{key:0})):ie("",!0)]),"tab-body":Fe(()=>
78[w(s)?(y(),x("div",Ase,a[0]||(a[0]=[u("p",null,"Loading training sites...",-1),u("div",{class:"spinner-border text-primary",role:"status"},[u("span",{class:"visually-hidden"},"Loading...")],-1)]))):!w(n).length||!w(i)?(y(),x("p",$se,[a[1]||(a[1]=re(" No training sites to display. ")),w(r)?(y(),x("span",Tse," Click 'Add Training Site' to begin.")):ie("",!0)])):(y(),x("ul",Ose,[(y(!0),x(G,null,ge(w(n),c=>(y(),x("li",{key:c.id},[U(nse,{"training-site":c},null,8,["training-site"])]))),128))])),w(r)?(y(),tt(Cse,{key:3})):ie("",!0)]),_:1}))}};function h$(){const t=W([]),e=W([]),s=W(!1);async function n(){try{s.value=!0;const o="/portal/api/programs/"+kt().programId+"/progress",a=await axios.get(o);t.value=a.data.data,s.value=!1}catch{s.value=!1}}async function i(r,o,a,c){const h="/portal/api/programs/"+kt().programId+"/progress",p={ratable_type:r,ratable_id:o,response_user_type:a,response:c};try{const _=(await axios.post(h,p)).data.data,v=t.value.findIndex(b=>b.ratable_id===_.ratable_id&&b.ratable_type===_.ratable_type&&b.response_user_type===_.response_user_type);v!==-1?t.value[v]=_:t.value.push(_),e.value={}}catch(m){m.response&&m.response.status==422&&(e.value=m.response.data.errors)}}return{progress:t,errors:e,isLoadingProgress:s,save:i,fetchProgress:n}}const oc=hi("programDevelopmentProgress",()=>{const t=W([]),e=W(!1),{progress:s,isLoadingProgress:n,save:i,fetchProgress:r}=h$();async function o(){try{const S=kt();e.value=S.permissions.viewProgress,e.value&&(t.value=S.developmentStages,r())}catch{}}const a=te(()=>{let S=[];return w(t).forEach(C=>{let O=C.goals.length,A=0;C.goals.forEach($=>{let T=$.objectives.length,D=0;$.objectives.forEach(B=>{let N=w(s).find(L=>L.ratable_type=="objective"&&L.ratable_id==B.id&&L.response_user_type=="advisor"),F=w(s).find(L=>L.ratable_type=="objective"&&L.ratable_id==B.id&&L.response_user_type=="program");(N==null?void 0:N.response)==2&&(F==null?void 0:F.response)==2&&D++}),T==D&&A++}),S.push({stageId:C.id,stageNumber:C.number,stageName:C.name,iconPath:C.icon_path,numGoals:O,numCompletedGoals:A})}),S}),c=te(()=>{let S=[];return w(t).forEach(C=>{C.goals.length,C.goals.forEach(O=>{let A=!0;O.objectives.forEach($=>{let T=w(s).find(B=>B.ratable_type=="objective"&&B.ratable_id==$.id&&B.response_user_type=="advisor"),D=w(s).find(B=>B.ratable_type=="objective"&&B.ratable_id==$.id&&B.response_user_type=="program");(!T||T.response!=2||!D||D.response!=2)&&(A=!1)}),S.push({goalId:O.id,completed:A})})}),S}),f=te(()=>{let S=1;for(let C=0;C<w(a).length;C++){let O=w(a)[C];if(O.numCompletedGoals<O.numGoals){S=O;break}}return S}),h=te(()=>w(a).reduce((S,C)=>C.stageNumber==5?S:S+C.numGoals,0)),p=te(()=>w(a).reduce((S,C)=>C.stageNumber==5?S:S+C.numCompletedGoals,0)),m=te(()=>{let S=[];return w(t).forEach(C=>{C.goals.forEach(O=>{O.objectives.forEach(A=>{S.push(A)})})}),S}),_=te(()=>{let S=[];return w(m).forEach(C=>{let O=w(s).find($=>$.ratable_type=="objective"&&$.ratable_id==C.id&&$.response_user_type=="advisor"),A=w(s).find($=>$.ratable_type=="objective"&&$.ratable_id==C.id&&$.response_user_type=="program");(O==null?void 0:O.response)==2&&(A==null?void 0:A.response)==2&&S.push(C)}),S}),v=te(()=>w(m).reduce((S,C)=>S+C.weight,0)),b=te(()=>w(_).reduce((S,C)=>S+C.weight,0));return o(),{progress:s,stages:t,isLoadingProgress:n,save:i,programCurrentStage:f,numGoalsTotal:h,numGoalsCompleted:p,goalProgressByStage:a,completedObjectiveScore:b,totalObjectiveScore:v,progressByGoal:c}}),Pse={key:0,class:"placeholder-glow"},Dse=["name"],Rse={class:"visually-hidden"},Ise={class:"btn-group btn-group-responsive"},Lse=["name","id","value","onInput"],Nse=["for"],Vse={key:0,class:"placeholder-glow"},Fse={key:1,class:"fs-6 m-0"},Bse={__name:"AdvisorProgressCell",props:{ratable:{type:Object,required:!0},ratableType:{type:String,required:!0}},setup(t){const e=t,s=oc(),n=kt(),{progress:i,save:r}=Qe(s),{permissions:o}=Qe(n),a=W(null),c=[{rating:0,ariaLabel:"0: Not Started"},{rating:1,ariaLabel:"1: Started"},{rating:2,ariaLabel:"2: Completed"}];function f(p){s.save(e.ratableType,e.ratable.id,"advisor",p)}const h=te(()=>{const p=s.progress.find(function(m){return m.ratable_type==e.ratableType&&m.ratable_id==e.ratable.id&&m.response_user_type=="advisor"&&m.is_current==!0});return p!=null?p.response:null});return Et(h,p=>{p!==null&&(a.value=p)},{immediate:!0}),(p,m)=>
78w(n).permissions.manageAdvisorDevelopmentProgress?(y(),x(G,{key:0},[w(s).isLoadingProgress?(y(),x("div",Pse,m[1]||(m[1]=[u("div",{class:"btn-group"},[u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"}),u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"}),u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"})],-1)]))):(y(),x("form",{key:1,name:"advisor_rating_"+t.ratableType+"_"+t.ratable.number},[u("fieldset",null,[u("legend",Rse,"Advisor rating for "+P(t.ratableType)+" "+P(t.ratable.number),1),u("div",Ise,[(y(),x(G,null,ge(c,(_,v)=>(y(),x(G,{key:t.ratableType+"_"+t.ratable.id+"_option_"+v},[Ge(u("input",{type:"radio",class:"btn-check",name:"advisor_rating_"+t.ratableType+"_"+t.ratable.id,id:"advisor_rating_"+_.rating+"_"+t.ratableType+"_"+t.ratable.id,value:_.rating,autocomplete:"off","onUpdate:modelValue":m[0]||(m[0]=b=>a.value=b),onInput:b=>f(_.rating)},null,40,Lse),[[Ps,a.value,void 0,{number:!0}]]),u("label",{class:"btn btn-outline-program-maroon",for:"advisor_rating_"+_.rating+"_"+t.ratableType+"_"+t.ratable.id},P(_.rating),9,Nse)],64))),64))])])],8,Dse))],64)):w(n).permissions.viewProgress?(y(),x(G,{key:1},[w(s).isLoadingProgress?(y(),x("p",Vse,m[2]||(m[2]=[u("span",{class:"placeholder col-12"},null,-1)]))):(y(),x("p",Fse,P(h.value),1))],64)):ie("",!0)}},Use=ds(Bse,[["__scopeId","data-v-9859017f"]]),qse={},Hse={fill:"currentColor","fill-rule":"evenodd",d:"M12 2A10 10 0 1 0 22 12 10 10 0 0 0 12 2Zm4.71 8.71-5 5a1 1 0 0 1-1.42 0l-3-3a1 1 0 1 1 1.42-1.42L11 13.59l4.29-4.3a1 1 0 0 1 1.42 1.42Z","clip-rule":"evenodd"};function jse(t,e){return y(),x("path",Hse)}const Fv=ds(qse,[["render",jse]]),Wse={},zse={"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.29289 7.29289C3.68342 6.90237 4.31658 6.90237 4.70711 7.29289L12 14.5858L19.2929 7.29289C19.6834 6.90237 20.3166 6.90237 20.7071 7.29289C21.0976 7.68342 21.0976 8.31658 20.7071 8.70711L12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L3.29289 8.70711C2.90237 8.31658 2.90237 7.68342 3.29289 7.29289Z",fill:"currentColor"};function Kse(t,e){return y(),x("path",zse)}const Gse=ds(Wse,[["render",Kse]]),Yse={},Zse={"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.2929 7.29289C11.6834 6.90237 12.3166 6.90237 12.7071 7.29289L20.7071 15.2929C21.0976 15.6834 21.0976 16.3166 20.7071 16.7071C20.3166 17.0976 19.6834 17.0976 19.2929 16.7071L12 9.41421L4.70711 16.7071C4.31658 17.0976 3.68342 17.0976 3.29289 16.7071C2.90237 16.3166 2.90237 15.6834 3.29289 15.2929L11.2929 7.29289Z",fill:"currentColor"};function Xse(t,e){return y(),x("path",Zse)}const Jse=ds(Yse,[["render",Xse]]),Qse={},ene={d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor","stroke-width":"1",fill:"none"};function tne(t,e){return y(),x("path",ene)}const sne=ds(Qse,[["render",tne]]),nne={key:0,class:"placeholder-glow"},ine=["name"],rne={class:"visually-hidden"},one={class:"btn-group btn-group-responsive"},ane=["name","id","value","onInput"],lne=["for"],cne={key:0,class:"placeholder-glow"},une={key:1,class:"fs-6 m-0"},dne={__name:"ProgramProgressCell",props:{ratable:{type:Object,required:!0},ratableType:{type:String,required:!0}},setup(t){const e=t,s=oc(),n=kt(),{progress:i,save:r}=Qe(s),{permissions:o}=Qe(n),a=W(null),c=[{rating:0,ariaLabel:"0: Not Started"},{rating:1,ariaLabel:"1: Started"},{rating:2,ariaLabel:"2: Completed"}];function f(p){s.save(e.ratableType,e.ratable.id,"program",p)}const h=te(()=>{const p=s.progress.find(function(m){return m.ratable_type==e.ratableType&&m.ratable_id==e.ratable.id&&m.response_user_type=="program"&&m.is_current==!0});return p!=null?p.response:null});return Et(h,p=>{p!==null&&(a.value=p)},{immediate:!0}),(p,m)=>w(n).permissions.manageProgramDevelopmentProgress?(y(),x(G,{key:0},[w(s).isLoadingProgress?(y(),x("div",nne,m[1]||(m[1]=[u("div",{class:"btn-group"},[u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"}),u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"}),u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"})],-1)]))):(y(),x("form",{key:1,name:"program_rating_"+t.ratableType+"_"+t.ratable.number},[u("fieldset",null,[u("legend",rne,"Program rating for "+P(t.ratableType)+" "+P(t.ratable.number),1),u("div",one,[(y(),x(G,null,ge(c,(_,v)=>(y(),x(G,{key:t.ratableType+"_"+t.ratable.id+"_option_"+v},[Ge(u("input",{type:"radio",class:"btn-check",name:"program_rating_"+t.ratableType+"_"+t.ratable.id,id:"program_rating_"+_.rating+"_"+t.ratableType+"_"+t.ratable.id,value:_.rating,autocomplete:"off","onUpdate:modelValue":m[0]||(m[0]=b=>a.value=b),onInput:b=>f(_.rating)},null,40,ane),[[Ps,a.value,void 0,{number:!0}]]),u("label",{class:"btn btn-outline-program-maroon",for:"program_rating_"+_.rating+"_"+t.ratableType+"_"+t.ratable.id},P(_.rating),9,lne)],64))),64))])])],8,ine))],64)):w(n).permissions.viewProgress?(y(),x(G,{key:1},[w(s).isLoadingProgress?(y(),x("p",cne,m[2]||(m[2]=[u("span",{class:"placeholder col-12"},null,-1)]))):(y(),x("p",une,P(h.value),1))],64)):ie("",!0)}},fne=ds(dne,[["__scopeId","data-v-3ee8b4cf"]]),hne={class:"mt-2"},pne={class:"m-0"}
78,mne=["arial-controls","aria-expanded","id"],gne={class:"d-flex flex-row"},_ne={class:"visually-hidden"},vne=["id","aria-labelledby"],bne={class:"container"},yne={class:"row py-3 px-sm-2 px-md-5 mb-2 border-bottom border-ddd"},wne={class:"col-8 col-md-6 col-lg-5 text-end d-flex flex-column"},xne={key:0},Sne={class:"col-6 col-md-8"},Ene={class:"col-3 col-md-2 d-flex flex-column justify-content-center align-items-center"},Cne={class:"col-3 col-md-2 d-flex flex-column justify-content-center align-items-center"},kne={__name:"GoalPanel",props:{goal:{type:Object,required:!0},isCompleted:{type:Boolean,default:!1}},setup(t){const e=kt(),{permissions:s}=Qe(e),n=W(!1),i=r=>{n.value=!n.value};return(r,o)=>(y(),x("div",hne,[u("h4",pne,[u("button",{"arial-controls":"accordion-content-"+t.goal.id,"aria-expanded":n.value,id:"accordion-control-"+t.goal.id,class:Ve(["btn btn-goal-header text-start rounded-0 p-3 d-flex flex-row w-100 justify-content-between align-items-center",{"open-goal":n.value}]),onClick:st(i,["prevent"])},[u("div",gne,[n.value?(y(),tt(cr,{key:0,width:"30",height:"30","icon-name":"chevron-down",class:"me-1 text-primary flex-shrink-0"},{default:Fe(()=>[U(Gse)]),_:1})):(y(),tt(cr,{key:1,width:"30",height:"30","icon-name":"chevron-up",class:"me-1 text-primary flex-shrink-0"},{default:Fe(()=>[U(Jse)]),_:1})),re(" Goal "+P(t.goal.number)+" ",1),o[0]||(o[0]=u("br",null,null,-1)),re(" "+P(t.goal.description),1)]),u("div",null,[u("span",_ne,"Status: "+P(t.isCompleted?"Completed":"Incomplete"),1),t.isCompleted?(y(),tt(cr,{key:0,width:"45",height:"45","icon-name":"check-circle-filled",class:"me-1 text-program-green flex-shrink-0"},{default:Fe(()=>[U(Fv)]),_:1})):(y(),tt(cr,{key:1,width:"45",height:"45","icon-name":"circle",class:"me-1 text-secondary flex-shrink-0"},{default:Fe(()=>[U(sne)]),_:1}))])],10,mne)]),n.value?(y(),x("div",{key:0,class:"border-start border-end border-bottom border-secondary",id:"accordion-content-"+t.goal.id,role:"region","aria-labelledby":"accordion-control-"+t.goal.id},[u("div",bne,[u("div",yne,[o[2]||(o[2]=u("div",{class:"col-4 col-md-6 col-lg-7 d-flex flex-column justify-content-center"},[u("h5",{class:"fs-6 text-uppercase mb-0"},"Objectives")],-1)),u("div",wne,[o[1]||(o[1]=u("span",null,[u("span",{class:"visually-hidden"},"Scoring rubric:"),re(" 0: Not Started, 1: Started, 2: Completed")],-1)),w(e).permissions.manageAdvisorDevelopmentProgress||w(e).permissions.manageProgramDevelopmentProgress?(y(),x("span",xne,"All changes autosaved.")):ie("",!0)])]),o[3]||(o[3]=u("div",{class:"row text-center border-bottom px-sm-2 px-md-5 py-2","aria-hidden":"true"},[u("div",{class:"col-3 col-md-2 offset-6 offset-md-8 text-uppercase fw-bold"},"Program"),u("div",{class:"col-3 col-md-2 text-uppercase fw-bold"},"Advisor")],-1)),(y(!0),x(G,null,ge(t.goal.objectives,a=>(y(),x("div",{key:"objective_"+a.id,class:"row py-3 px-sm-2 px-md-5 border-bottom"},[u("div",Sne,"Objective "+P(a.number)+": "+P(a.description),1),u("div",Ene,[U(fne,{"ratable-type":"objective",ratable:a},null,8,["ratable"])]),u("div",Cne,[U(Use,{"ratable-type":"objective",ratable:a},null,8,["ratable"])])]))),128))])],8,vne)):ie("",!0)]))}},Ane=ds(kne,[["__scopeId","data-v-fc018113"]]),$ne={class:"fs-5 mt-2"},Tne={class:"fw-bold"},One={class:"d-flex justify-content-between flex-row mb-2"},Mne={class:"fw-bold text-end"},Pne={__name:"StageSection",props:{stage:{type:Object,required:!0}},setup(t){const e=t,s=oc(),{goalProgressByStage:n,progressByGoal:i}=Qe(s),r=te(()=>s.goalProgressByStage.find(a=>a.stageId==e.stage.id));function o(a){return s.progressByGoal.find(c=>c.goalId==a.id)}return(a,c)=>(y(),x(G,null,[u("h3",$ne,[re("Stage "+P(t.stage.number)+" ",1),u("span",Tne,P(t.stage.name),1)]),u("div",One,[c[0]||(c[0]=u("span",null,"Select goals to open objectives",-1)),u("span",Mne,P(r.value.numCompletedGoals)+" of "+P(r.value.numGoals)+" Goals Completed",1)]),(y(!0),x(G,null,ge(t.stage.goals,f=>{var h;return y(),tt(Ane,{key:"goal_"+f.id,goal:f,"is-completed":((h=o(f))==null?void 0:h.completed)??!1},null,8,["goal","is-completed"])}),128))],64))}},Dne={__name:"DevelopmentDetails",setup(t){const e=oc(),{stages:s}
78=Qe(e);return(n,i)=>(y(),x(G,null,[i[0]||(i[0]=u("h2",{id:"progress-list-heading",class:"fs-4 m-0 text-uppercase fw-bold"},"Development Details",-1)),(y(!0),x(G,null,ge(w(s),r=>(y(),x("div",{key:"stage_"+r.id,class:"mb-4"},[U(Pne,{stage:r},null,8,["stage"])]))),128))],64))}},Rne={class:"position-relative"},Ine=["width","height","viewBox"],Lne=["cx","cy"],Nne=["cx","cy","stroke-dashoffset"],Vne={class:"position-absolute top-50 start-50 translate-middle"},Fne={class:"fs-3 mb-0"},Bne={__name:"ProgramProgressBar",props:{size:{type:Number,default:200}},setup(t){const e=oc(),s=t,n=s.size/2-10,i=3.14*n*2,r=te(()=>`-${s.size*.125} -${s.size*.125} ${s.size*1.25} ${s.size*1.25}`),o=te(()=>Math.round(e.completedObjectiveScore/e.totalObjectiveScore*100)),a=te(()=>Math.round(i*((100-w(o))/100))+"px");return(c,f)=>(y(),x("div",Rne,[(y(),x("svg",{width:t.size,height:t.size,viewBox:r.value,version:"1.1",xmlns:"http://www.w3.org/2000/svg",style:{transform:"rotate(-90deg)"},"aria-hidden":"true"},[u("circle",{r:n,cx:t.size/2,cy:t.size/2,fill:"transparent",stroke:"#e0e0e0","stroke-width":"10px"},null,8,Lne),u("circle",{r:n,cx:t.size/2,cy:t.size/2,stroke:"#805e73","stroke-width":"10px","stroke-linecap":"round","stroke-dashoffset":a.value,fill:"transparent","stroke-dasharray":i},null,8,Nne)],8,Ine)),u("div",Vne,[u("p",Fne,P(o.value)+"%",1),f[0]||(f[0]=u("p",{class:"text-uppercase mb-0"},"completed",-1))])]))}},Une={class:"container mb-5"},qne={class:"row row-cols-1 row-cols-sm-2 row-cols-lg-4 g-4"},Hne={class:"col"},jne={class:"card rounded-0 text-center h-100"},Wne={class:"card-body d-flex align-items-center justify-content-center p-0"},zne={class:"col"},Kne={class:"card rounded-0 text-center h-100"},Gne={class:"card-body d-flex flex-column align-items-center justify-content-center"},Yne=["src"],Zne={class:"fw-bold ms-1"},Xne={class:"col"},Jne={class:"card rounded-0 text-center h-100"},Qne={class:"card-body d-flex flex-column align-items-center justify-content-center"},eie={class:"my-4 fs-3"},tie={class:"fw-bold"},sie={__name:"ProgramReadiness",setup(t){const e=oc(),{programCurrentStage:s,numGoalsTotal:n,numGoalsCompleted:i}=Qe(e);return(r,o)=>(y(),x("div",Une,[u("div",qne,[o[5]||(o[5]=u("div",{class:"col"},[u("div",{class:"card rounded-0 h-100"},[u("div",{class:"card-body"},[u("h2",{class:"card-title"},"Overall Development Progress")])])],-1)),u("div",Hne,[u("div",jne,[o[0]||(o[0]=u("h3",{class:"card-header fs-6 text-uppercase text-center bg-program-maroon text-white rounded-0 py-1"},"Overall",-1)),u("div",Wne,[U(Bne)])])]),u("div",zne,[u("div",Kne,[o[2]||(o[2]=u("h3",{class:"card-header fs-6 text-uppercase bg-program-navy text-white rounded-0 py-1"},"Program Status",-1)),u("div",Gne,[o[1]||(o[1]=u("p",{class:"text-body mb-0"},"You are currently in",-1)),u("img",{src:"/images/"+w(s).iconPath,alt:"","aria-hidden":"true"},null,8,Yne),u("p",null,[re("Stage "+P(w(s).stageNumber),1),u("span",Zne,P(w(s).stageName),1)])])])]),u("div",Xne,[u("div",Jne,[o[4]||(o[4]=u("h3",{class:"card-header fs-6 text-uppercase bg-program-green text-white rounded-0 py-1"},"Goal Status",-1)),u("div",Qne,[o[3]||(o[3]=u("p",{class:"text-body mb-0"},"You have completed",-1)),u("p",eie,P(w(i))+" Goals",1),u("p",tie,"Out of "+P(w(n))+".",1)])])])])]))}},nie={__name:"DevelopmentContent",setup(t){return(e,s)=>(y(),x(G,null,[U(sie),U(Dne)],64))}},dm=hi("programVitalityProgress",()=>{const t=W([]),e=W(!1),{progress:s,isLoadingProgress:n,save:i,fetchProgress:r}=h$();async function o(){try{const c=kt();e.value=c.permissions.viewProgress,e.value&&(t.value=c.vitalityStages,r())}catch{}}const a=te(()=>{let c=[];return w(t).forEach(f=>{f.goals.length,f.goals.forEach(h=>{let p=!0,m=w(s).find(_=>_.ratable_type=="goal"&&_.ratable_id==h.id&&_.response_user_type=="program");(!m||m.response!=2)&&(p=!1),c.push({goalId:h.id,completed:p,rating:m==null?void 0:m.response})})}),c});return o(),{progress:s,stages:t,isLoadingProgress:n,save:i,progressByGoal:a}}),iie={key:0,class:"placeholder-glow"},rie=["name"],oie={class:"visually-hidden"},aie={class:"btn-group btn-group-responsive bg-white"},lie=["name","id","value","onInput"],cie=["for"],uie={key:0,class:"placeholder-glow"},die={__name:"ProgramVitalityProgressCell",props:{ratable:{type:Object,required:!0},ratableType:{type:String,required:!0}},setup(t){const e=t,s=dm(),n=kt(),{progress:i,save:r}=Qe(s),{permissions:o}=Qe(n),a=W(null),c=[{rating:0,ariaLabel:"0: Not Started"},{rating:1,ariaLabel:"1: Started"},{rating:2,ariaLabel:"2: Completed"}];function f(p){s.save(e.ratableType,e.ratable.id,"program",p)}const h=te(()=>{const p=s.progress.find(function(m){return m.ratable_type==e.ratableType&&m.ratable_id==e.ratable.id&&m.response_user_type=="program"&&m.is_current==!0});return p!=null?p.response:null});return Et(h,p=>{p!==null&&(a.value=p)},{immediate:!0}),(p,m)=>w(n).permissions.manageProgramVitalityProgress?(y(),x(G,{key:0},[w(s).isLoadingProgress?(y(),x("div",iie,m[1]||(m[1]=[u("div",{class:"btn-group"},[u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"}),u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"}),u("button",{tabindex:"-1",class:"btn btn-program-maroon disabled placeholder col-4","aria-hidden":"true"})],-1)]))):(y(),x("form",{key:1,name:"program_rating_"+t.ratableType+"_"+t.ratable.number},[u("fieldset",null,[u("legend",oie,"Program rating for "+P(t.ratableType)+" "+P(t.ratable.number),1),u("div",aie,[(y(),x(G,null,ge(c,(_,v)=>(y(),x(G,{key:t.ratableType+"_"+t.ratable.id+"_option_"+v},[Ge(u("input",{type:"radio",class:"btn-check",name:"program_rating_"+t.ratableType+"_"+t.ratable.id,id:"program_rating_"+_.rating+"_"+t.ratableType+"_"+t.ratable.id,value:_.rating,autocomplete:"off","onUpdate:modelValue":m[0]||(m[0]=b=>a.value=b),onInput:b=>f(_.rating)},null,40,lie),[[Ps,a.value,void 0,{number:!0}]]),u("label",{class:"btn btn-outline-program-maroon",for:"program_rating_"+_.rating+"_"+t.ratableType+"_"+t.ratable.id},P(_.rating),9,cie)],64))),64))])])],8,rie))],64)):w(n).permissions.viewProgress?(y(),x(G,{key:1},[w(s).isLoadingProgress?(y(),x("p",uie,m[2]||(m[2]=[u("span",{class:"placeholder col-12"},null,-1)]))):(y(),x("p",{key:1,class:Ve(["m-0",{"fs-6 bg-program-blue py-2 px-3 rounded-1":h.value!=null}])},P(h.value),3))],64)):ie("",!0)}},fie=ds(die,[["__scopeId","data-v-09af7d64"]]),hie={class:"row g-0"},pie={class:"col-5"},mie={class:"nav nav-tabs flex-column fw-bold",role:"tablist","aria-label":"Vitality Goals"},gie=["id","data-bs-target","aria-controls","aria-selected","tabindex"],_ie={class:"fw-bold"},vie={class:"fw-bold fs-3 rating-display"},bie={class:"col-7 bg-light-blue border-top border-bottom border-end"},yie={class:"tab-content"},wie=["id","aria-labelledby"],xie={class:"d-flex justify-content-between mb-4"},Sie={class:"fs-6"},Eie={class:"justify-content-end"},Cie={class:"d-flex flex-column gap-4"},kie={__name:"VitalityDetails",setup(t){const e=dm(),{stages:s,progressByGoal:n}=Qe(e),i=te(()=>e.stages[0].goals);function r(o){return e.progressByGoal.find(a=>a.goalId==o)}return(o,a)=>(y(),x(G,null,[a[2]||(a[2]=ci('<div class="d-flex flex-row border-top align-items-center gap-5 py-2" data-v-58cddd46><h3 id="rating-scale" class="fs-5 mb-0 text-uppercase fw-bold" data-v-58cddd46>Rating</h3><ul class="list-inline list-unstyled mb-0 d-flex gap-4" aria-labelledby="rating-scale" data-v-58cddd46><li class="list-inline-item d-flex align-items-center" data-v-58cddd46><span class="fs-5 me-2 fw-bold" data-v-58cddd46>0</span> Needs Improvement</li><li class="list-inline-item d-flex align-items-center" data-v-58cddd46><span class="fs-5 me-2 fw-bold" data-v-58cddd46>1</span> Satisfactory</li><li class="list-inline-item d-flex align-items-center" data-v-58cddd46><span class="fs-5 me-2 fw-bold" data-v-58cddd46>2</span> Excelling</li></ul></div>',1)),u("div",hie,[u("div",pie,[u("div",mie,[(y(!0),x(G,null,ge(i.value,(c,f)=>(y(),x("div",{key:c.id,class:"bg-light d-flex border-top border-bottom"},[u("button",{id:`goal-${c.id}`,type:"button",class:Ve(["btn btn-light-blue flex-fill rounded-0 p-4 d-flex flex-row flex-row-reverse justify-content-end gap-4 align-items-center",{active:f===0}]),role:"tab","data-bs-toggle":"tab","data-bs-target":`#${c.id}-panel`,"aria-controls":`${c.id}-panel`,"aria-selected":f===0?"true":"false",tabindex:f===0?"0":"-1"},[u("span",null,[u("span",_ie,"Goal "+P(f+1)+":",1),re(" "+P(c.description),1)]),u("span",vie,[a[0]||(a[0]=u("span",{class:"visually-hidden"}
78,"Â Rating:",-1)),re(" "+P(r(c.id).rating),1)])],10,gie)]))),128))])]),u("div",bie,[u("div",yie,[(y(!0),x(G,null,ge(i.value,(c,f)=>(y(),x("div",{key:c.id,id:`${c.id}-panel`,class:Ve(["tab-pane px-5 py-3",{active:f===0}]),role:"tabpanel",tabindex:"0","aria-labelledby":`goal-${c.id}`},[u("div",xie,[u("div",Sie,[re("Goal "+P(f+1),1),a[1]||(a[1]=u("br",null,null,-1)),re(" "+P(c.description),1)]),u("div",Eie,[U(fie,{"ratable-type":"goal",ratable:c},null,8,["ratable"])])]),u("ul",Cie,[(y(!0),x(G,null,ge(c.objectives,(h,p)=>(y(),x("li",{key:`objective-${h.id}`}," Objective "+P(p+1)+": "+P(h.description),1))),128))])],10,wie))),128))])])])],64))}},Aie=ds(kie,[["__scopeId","data-v-58cddd46"]]),$ie=["d"],Tie=["d"],Oie={__name:"GoalSegment",props:{goalId:{type:[String,Number],required:!0},title:{type:String,required:!0},pathData1:{type:String,required:!0},pathData2:{type:String,required:!0},baseClass:{type:String,required:!0},getRatingForGoal:{type:Function,required:!0}},setup(t){const e=t,s=te(()=>{const n=e.getRatingForGoal(e.goalId);return n?n.rating:0});return(n,i)=>(y(),x("g",null,[u("title",null,P(t.title),1),u("desc",null,"Rating: "+P(s.value),1),u("path",{class:Ve([s.value>=1?`${t.baseClass}-1`:"goal-incomplete"]),d:t.pathData1},null,10,$ie),u("path",{class:Ve([s.value==2?`${t.baseClass}-2`:"goal-incomplete"]),d:t.pathData2},null,10,Tie)]))}},Mie=ds(Oie,[["__scopeId","data-v-422b4838"]]),Pie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 510.67 510.67",width:"325",height:"325",title:"Vitality Progress Wheel"},Die={__name:"Wheel",setup(t){const e=dm(),{stages:s,progressByGoal:n}=Qe(e),i=te(()=>e.stages[0].goals);function r(a){return e.progressByGoal.find(c=>c.goalId==a)}const o=[{title:"Goal 1",baseClass:"goal-1",path1:"M251.12,260.89l85.83-85.83c-4.54-4.6-9.51-8.91-14.89-12.86-21.82-15.98-47.17-23.66-72.28-23.64v122.33h1.34Z",path2:"M321.48,161.99c5.39,3.93,10.37,8.23,14.92,12.82l62.21-62.5c-7.71-7.72-16.1-14.95-25.2-21.57-37.61-27.41-81.26-40.53-124.48-40.4l.2,88.18c25.12-.08,50.48,7.54,72.34,23.47Z"},{title:"Goal 2",baseClass:"goal-2",path1:"M336.95,175.06l-85.83,85.83h120.98c-.03-31.43-12.12-62.49-35.15-85.83Z",path2:"M371.41,260.67h88.18c-.04-54.31-21.02-107.98-60.97-148.19l-62.36,62.36c23.03,23.33,35.13,54.4,35.15,85.83Z"},{title:"Goal 3",baseClass:"goal-3",path1:"M249.99,262.02l85.83,85.83c4.52-4.48,8.75-9.37,12.63-14.67,15.98-21.82,23.66-47.17,23.64-72.28h-120.98l-1.13,1.13Z",path2:"M371.41,260.67c.02,25.12-7.66,50.47-23.64,72.28-3.88,5.3-8.11,10.19-12.63,14.67l62.36,62.36c7.66-7.63,14.83-15.94,21.41-24.93,27.5-37.54,40.72-81.16,40.68-124.39h-88.18Z"},{title:"Goal 4",baseClass:"goal-4",path1:"M249.77,262.24v120.98c31.53-.03,62.69-12.2,86.05-35.37l-85.83-85.83-.22.22Z",path2:"M249.08,383v88.18c54.4-.04,108.18-21.1,148.41-61.19l-62.36-62.36c-23.36,23.17-54.52,35.34-86.05,35.37Z"},{title:"Goal 5",baseClass:"goal-5",path1:"M163.94,348.07c4.17,4.1,8.69,7.95,13.54,11.51,21.82,15.98,47.17,23.66,72.28,23.64v-120.98l-85.83,85.83Z",path2:"M177.71,359.84c-4.86-3.56-9.37-7.41-13.54-11.51l-62.36,62.36c7.32,7.23,15.25,14.03,23.8,20.29,37.54,27.5,81.16,40.72,124.39,40.68v-88.18c-25.12.02-50.47-7.66-72.28-23.64Z"},{title:"Goal 6",baseClass:"goal-6",path1:"M249.77,261.8l-.91-.91h-121.42c.03,32.04,12.59,63.7,36.5,87.17l85.83-85.83v-.44Z",path2:"M126.76,260.67H38.58c.04,54.91,21.5,109.18,62.32,149.53l62.36-62.36c-23.91-23.48-36.47-55.14-36.5-87.17Z"},{title:"Goal 7",baseClass:"goal-7",path1:"M162.81,174.84c-4.18,4.23-8.11,8.82-11.73,13.77-15.98,21.82-23.66,47.17-23.64,72.28h121.42l-86.05-86.05Z",path2:"M150.4,188.39c3.62-4.94,7.55-9.53,11.73-13.77l-62.36-62.36c-7.32,7.38-14.18,15.39-20.5,24.02-27.5,37.54-40.72,81.16-40.68,124.39h88.18c-.02-25.12,7.66-50.47,23.64-72.28Z"},{title:"Goal 8",baseClass:"goal-8",path1:"M249.77,260.89v-122.33c-31.94.03-63.5,12.51-86.96,36.28l86.05,86.05h.91Z",path2:"M249.08,138.35V50.17c-54.81.04-108.99,21.42-149.32,62.09l62.36,62.36c23.46-23.76,55.02-36.25,86.96-36.28Z"}];return(a,c)=>(y(),x("svg",Pie,[c[0]||(c[0]=ci('<g data-v-809f2f0d><path class="cls-2" d="M399.52,112.49c-7.69-7.74-16.07-14.99-25.15-21.63-37.54-27.5-81.17-40.72-124.39-40.68" data-v-809f2f0d></path><path class="cls-2" d="M249.99,138.35V50.17c-54.82.04-108.99,21.41-149.32,62.09" data-v-809f2f0d></path><path class="cls-2" d="M163.03,174.62l-62.36-62.36c-7.31,7.38-14.18,15.38-20.5,24.02-27.5,37.54-40.72,81.17-40.68,124.39" data-v-809f2f0d></path><path class="cls-2" d="M460.5,260.68c-.04-54.31-21.03-107.98-60.97-148.19l-62.3
786,62.36" data-v-809f2f0d></path><path class="cls-2" d="M249.99,471.17c54.4-.04,108.17-21.1,148.4-61.18" data-v-809f2f0d></path><path class="cls-2" d="M127.67,260.68H39.49c.04,54.91,21.49,109.18,62.31,149.53" data-v-809f2f0d></path><path class="cls-2" d="M336.04,347.63l62.36,62.36c7.66-7.63,14.83-15.94,21.41-24.93,27.5-37.54,40.72-81.17,40.69-124.39h-88.18" data-v-809f2f0d></path><path class="cls-2" d="M164.16,347.85l-62.36,62.36c7.32,7.23,15.25,14.02,23.8,20.28,37.54,27.5,81.17,40.72,124.39,40.68v-88.17" data-v-809f2f0d></path><path class="cls-2" d="M249.99,138.35c-31.94.03-63.5,12.52-86.96,36.28" data-v-809f2f0d></path><path class="cls-2" d="M337.17,174.84c-4.55-4.6-9.51-8.91-14.89-12.86-21.82-15.97-47.17-23.66-72.28-23.64v122.33" data-v-809f2f0d></path><line class="cls-2" x1="249.99" y1="260.68" x2="249.09" y2="260.68" data-v-809f2f0d></line><polyline class="cls-2" points="251.33 260.68 249.99 260.68 249.99 261.58 250.21 261.8" data-v-809f2f0d></polyline><path class="cls-2" d="M249.09,260.68l-86.05-86.05c-4.18,4.23-8.11,8.83-11.72,13.77-15.98,21.81-23.67,47.16-23.64,72.28" data-v-809f2f0d></path><path class="cls-2" d="M372.32,260.68c-.03-31.43-12.12-62.5-35.15-85.83l-85.83,85.83" data-v-809f2f0d></path><path class="cls-2" d="M249.99,262.02v-.43l-.91-.91h-121.42c.03,32.03,12.59,63.69,36.5,87.17" data-v-809f2f0d></path><path class="cls-2" d="M336.04,347.63c4.52-4.49,8.76-9.37,12.64-14.68,15.98-21.81,23.66-47.16,23.64-72.28h-120.98l-1.13,1.12" data-v-809f2f0d></path><path class="cls-2" d="M249.99,262.02l-85.83,85.83c4.17,4.1,8.69,7.96,13.54,11.52,21.81,15.98,47.16,23.66,72.28,23.64" data-v-809f2f0d></path><path class="cls-2" d="M249.99,262.02v120.98c31.53-.03,62.69-12.2,86.05-35.37l-85.83-85.83-.21.22Z" data-v-809f2f0d></path></g>',1)),(y(),x(G,null,ge(o,(f,h)=>U(Mie,{key:f.baseClass,"goal-id":i.value[h].id,title:f.title,"path-data1":f.path1,"path-data2":f.path2,"base-class":f.baseClass,"get-rating-for-goal":r},null,8,["goal-id","title","path-data1","path-data2","base-class"])),64)),c[1]||(c[1]=ci('<g data-v-809f2f0d><path class="text-dark" d="M310.53,49.49c-.99.12-2.91.26-5.04-.21-2.39-.53-4.22-1.58-5.44-3.4-1.07-1.61-1.44-3.91-.89-6.37,1.07-4.7,5.07-7.43,10.37-6.25,1.83.41,3.17,1.12,3.77,1.6l-.86,1.55c-.76-.56-1.75-1.1-3.34-1.46-3.84-.86-6.88.97-7.76,4.93-.89,4.01.99,6.91,4.67,7.73,1.33.3,2.29.31,2.81.18l1.05-4.71-3.21-.71.37-1.64,5.2,1.16-1.69,7.59Z" data-v-809f2f0d></path><path class="text-dark" d="M328.8,46.89c-1.57,5.34-5.64,7.22-9.6,6.06-4.1-1.2-6.05-5.22-4.67-9.92,1.44-4.93,5.45-7.25,9.59-6.04,4.24,1.24,6.03,5.29,4.68,9.9ZM316.69,43.62c-.97,3.32-.04,6.81,3.11,7.74,3.18.93,5.83-1.47,6.86-4.99.9-3.09.24-6.78-3.1-7.76-3.32-.97-5.87,1.61-6.87,5.01Z" data-v-809f2f0d></path><path class="text-dark" d="M332.7,51.64l-3.31,4.21-2.03-.74,10.68-13.34,2.37.86-.32,17.09-2.1-.76.11-5.37-5.39-1.96ZM338.24,51.92l.1-4.92c.02-1.12.12-2.1.22-3.06l-.04-.02c-.55.82-1.14,1.66-1.76,2.48l-3.08,3.86,4.58,1.66Z" data-v-809f2f0d></path><path class="text-dark" d="M348.39,45.71l1.92.82-5.63,13.28,6.36,2.7-.68,1.61-8.29-3.51,6.32-14.89Z" data-v-809f2f0d></path><path class="text-dark" d="M366.41,56.74l-.04-.02-3.08.08.37-1.62,3.86-.08,1.6.82-7.07,13.91-1.82-.92,6.18-12.15Z" data-v-809f2f0d></path></g><g data-v-809f2f0d><path class="text-dark" d="M450.71,152.94c-.79-.61-2.24-1.87-3.41-3.71-1.31-2.07-1.87-4.1-1.44-6.25.39-1.89,1.75-3.78,3.87-5.13,4.08-2.57,8.84-1.67,11.75,2.91,1,1.58,1.45,3.03,1.53,3.8l-1.71.49c-.14-.93-.46-2.01-1.33-3.39-2.11-3.32-5.55-4.18-8.98-2-3.46,2.2-4.18,5.59-2.16,8.77.73,1.16,1.4,1.84,1.86,2.12l4.07-2.59-1.76-2.77,1.42-.9,2.86,4.5-6.56,4.17Z" data-v-809f2f0d></path><path class="text-dark" d="M465.47,164.02c-4.88,2.67-9.1,1.12-11.08-2.5-2.05-3.75-.58-7.97,3.71-10.32,4.5-2.46,8.98-1.28,11.06,2.51,2.12,3.87.52,8-3.69,10.3ZM459.21,153.13c-3.03,1.66-4.85,4.79-3.27,7.67,1.59,2.9,5.16,3.08,8.38,1.32,2.82-1.54,4.96-4.63,3.29-7.68-1.66-3.03-5.29-3.02-8.4-1.31Z" data-v-809f2f0d></path><path class="text-dark" d="M464.86,170.13l-5.32.64-.92-1.96,16.98-1.88,1.07,2.28-12.31,11.86-.95-2.02,3.88-3.72-2.43-5.2ZM468.59,174.24l3.55-3.41c.8-.77,1.57-1.4,2.32-2.01l-.02-.04c-.97.19-1.97.37-3,.5l-4.91.55,2.07,4.41Z" data-v-809f2f0d></path><path class="text-dark" d="M480.15,177.03l.78,1.94-13.37,5.41,2.59,6.41-1.62.66-3.38-8.34,14.99-6.07Z" data-v-809f2f0d></path><path class="text-dark" d="M470.71,197.44l1.23-.4,2.04,1.08c4.84,2.62,7.31,3.7,9.56,2.99,1.51-.49,2.66-1.67,1.94-3.89-.44-1.35-1.49-2.24-2.28-2.74l1.21-1.1c1.2.75,2.32,2,2.87,3.71,1.04,3.2-.71,5.25-2.83,5.95-2.74.89-5.6-.37-9.63-2.52l-1.48-.83h-.04s2.17,6.68,2.17,6.68l-1.67.54-3.09-9.47Z" data-v-809f2f0d></path></g><g data-v-809f2f0d><path class="text-dark" d="M31.96,206.87c.08.99.13,2.92-.43,5.03-.64,2.36-1.76,4.15-3.63,5.29-1.66,1-3.97,1.27-6.4.62-4.65-1.27-7.2-5.39-5.79-10.62.49-1.81,1.26-3.12,1.77-3.7l1.51.93c-.59.73-1.18,1.7-1.6,3.27-1.02,3.8.68,6.92,4.59,7.97,3.96,1.06,6.94-.7,7.92-4.33.36-1.32.41-2.28.31-2.8l-4.66-1.25-.85,3.17-1.62-.44,1.38-5.14,7.51,2.02Z" data-v-809f2f0d></path><path class="text-dark" d="M30.15,188.51c5.27,1.79,6.97,5.95,5.64,9.86-1.38,4.04-5.48,5.81-10.11,4.24-4.86-1.65-7.01-5.76-5.62-9.85,1.42-4.18,5.55-5.79,10.09-4.25ZM26.35,200.47c3.27,1.11,6.8.34,7.86-2.77,1.07-3.13-1.22-5.89-4.69-7.07-3.04-1.04-6.76-.53-7.89,2.76-1.11,3.27,1.35,5.93,4.71,7.08Z" data-v-809f2f0d></path><path class="text-dark" d="M35.07,184.82l4.07,3.49-.82,2-12.86-11.25.96-2.33,17.06,1.06-.85,2.06-5.36-.34-2.19,5.3ZM35.58,179.3l-4.91-.31c-1.11-.07-2.09-.21-3.05-.35l-.02.04c.8.59,1.61,1.21,2.4,1.87l3.72,3.25,1.86-4.5Z" data-v-809f2f0d></path><path class="text-dark" d="M29.82,168.89l.9-1.88,13.02,6.2,2.97-6.24,1.58.75-3.87,8.13-14.61-6.95
78Z" data-v-809f2f0d></path><path class="text-dark" d="M42.63,145.57l1.21.69,9.04,12.9-1.08,1.9-8.69-12.68-.04-.02-3.75,6.65-1.53-.86,4.84-8.57Z" data-v-809f2f0d></path></g><g data-v-809f2f0d><path class="text-dark" d="M135.64,71.94c-.64.76-1.97,2.16-3.86,3.25-2.12,1.22-4.18,1.69-6.31,1.17-1.88-.47-3.7-1.91-4.96-4.09-2.39-4.19-1.28-8.9,3.42-11.61,1.62-.94,3.09-1.31,3.86-1.37l.41,1.73c-.94.1-2.03.37-3.44,1.18-3.41,1.97-4.41,5.37-2.39,8.88,2.05,3.55,5.4,4.42,8.67,2.54,1.19-.68,1.9-1.32,2.2-1.76l-2.41-4.18-2.85,1.64-.84-1.46,4.61-2.66,3.88,6.73Z" data-v-809f2f0d></path><path class="text-dark" d="M147.35,57.68c2.46,4.99.72,9.14-2.98,10.96-3.83,1.88-7.98.24-10.15-4.15-2.27-4.61-.89-9.03,2.99-10.94,3.96-1.95,8.02-.17,10.14,4.13ZM136.2,63.45c1.53,3.1,4.57,5.05,7.52,3.6,2.97-1.46,3.3-5.02,1.68-8.32-1.42-2.88-4.41-5.16-7.53-3.62-3.1,1.52-3.24,5.15-1.67,8.34Z" data-v-809f2f0d></path><path class="text-dark" d="M153.43,58.55l.41,5.34-1.99.83-1.14-17.05,2.33-.97,11.32,12.81-2.06.86-3.55-4.03-5.3,2.21ZM157.7,55l-3.25-3.69c-.74-.84-1.33-1.63-1.91-2.4l-.04.02c.15.98.28,1.99.37,3.02l.34,4.93,4.5-1.87Z" data-v-809f2f0d></path><path class="text-dark" d="M160.98,43.57l1.97-.7,4.83,13.59,6.51-2.31.59,1.65-8.48,3.01-5.41-15.24Z" data-v-809f2f0d></path><path class="text-dark" d="M179.71,50.12c-.53-1.89.23-3.55,1.86-4.85l-.04-.06c-1.88-.32-2.96-1.42-3.32-2.71-.66-2.38.9-4.56,3.53-5.29,2.91-.81,4.88.61,5.4,2.48.35,1.27.11,2.81-1.49,4.2l.02.07c2.08.22,3.6,1.21,4.11,3.04.73,2.61-1.03,4.99-3.89,5.79-3.14.88-5.56-.47-6.17-2.67ZM180.09,41.82c.42,1.5,1.78,2,3.64,1.97,1.17-.8,1.91-2,1.53-3.37-.33-1.2-1.4-2.25-3.23-1.74-1.69.47-2.3,1.84-1.94,3.13ZM187.78,47.77c-.51-1.83-2.03-2.35-4.22-2.36-1.62,1-2.24,2.42-1.84,3.85.36,1.54,1.88,2.56,3.8,2.03,1.83-.51,2.69-1.97,2.26-3.52Z" data-v-809f2f0d></path></g><g data-v-809f2f0d><path class="text-dark" d="M23.44,334.63c-.64-.76-1.79-2.31-2.54-4.36-.84-2.3-.95-4.41-.08-6.41.78-1.77,2.51-3.32,4.88-4.19,4.54-1.64,8.99.26,10.86,5.35.65,1.76.77,3.27.69,4.04l-1.77.11c.06-.94-.02-2.06-.58-3.6-1.36-3.7-4.54-5.26-8.35-3.87-3.85,1.41-5.28,4.57-3.98,8.11.47,1.29.97,2.1,1.36,2.47l4.53-1.66-1.13-3.09,1.58-.58,1.84,5-7.3,2.68Z" data-v-809f2f0d></path><path class="text-dark" d="M37.13,347.81c-5.13,2.18-9.17.22-10.78-3.58-1.67-3.93.2-7.99,4.71-9.9,4.73-2.01,9.07-.38,10.76,3.59,1.73,4.07-.27,8.02-4.69,9.89ZM31.98,336.36c-3.18,1.35-5.3,4.29-4.01,7.31,1.29,3.05,4.83,3.58,8.21,2.14,2.96-1.26,5.4-4.12,4.04-7.32-1.35-3.18-4.96-3.52-8.23-2.13Z" data-v-809f2f0d></path><path class="text-dark" d="M36.46,353.78l-5.32.68-.93-1.95,16.96-2.02,1.09,2.27-12.21,11.96-.96-2.01,3.84-3.75-2.47-5.18ZM40.22,357.87l3.52-3.44c.8-.78,1.56-1.41,2.3-2.03l-.02-.04c-.97.2-1.97.38-2.99.53l-4.91.59,2.1,4.4Z" data-v-809f2f0d></path><path class="text-dark" d="M51.67,359.64l.97,1.85-12.78,6.7,3.21,6.12-1.55.81-4.18-7.97,14.33-7.51Z" data-v-809f2f0d></path><path class="text-dark" d="M59.09,377.57c-.19-.39-.49-.86-.86-1.33-2.11-2.61-5.09-2.94-7.5-1.99l.04.06c1.22.16,2.57.89,3.42,2.39,1.36,2.4.58,5.08-2.07,6.58-2.49,1.41-5.74,1.01-7.34-1.8-1.64-2.9-.46-6.08,3.07-8.08,2.67-1.52,5.33-1.75,7.42-1.17,1.75.5,3.29,1.62,4.47,3.21.39.5.67.94.86,1.28l-1.5.85ZM50.96,381.48c1.94-1.1,2.48-2.87,1.53-4.56-.63-1.11-1.9-1.74-3.16-1.69-.28,0-.6.06-.93.25-2.21,1.31-3.28,3.27-2.19,5.19.9,1.59,2.82,1.91,4.76.81Z" data-v-809f2f0d></path></g><g data-v-809f2f0d><path class="text-dark" d="M136.75,468.49c-.99-.12-2.89-.45-4.84-1.42-2.19-1.09-3.72-2.55-4.46-4.61-.65-1.82-.46-4.14.67-6.4,2.18-4.31,6.71-5.99,11.57-3.56,1.67.83,2.8,1.85,3.28,2.46l-1.21,1.3c-.6-.73-1.43-1.49-2.89-2.22-3.52-1.76-6.91-.71-8.72,2.92-1.83,3.67-.7,6.94,2.67,8.63,1.22.61,2.15.86,2.68.86l2.15-4.32-2.94-1.47.75-1.5,4.77,2.38-3.47,6.96Z" data-v-809f2f0d></path><path class="text-dark" d="M155.76,468.68c-2.23,5.1-6.52,6.45-10.3,4.79-3.92-1.71-5.34-5.95-3.37-10.44,2.06-4.71,6.33-6.51,10.29-4.77,4.05,1.77,5.3,6.02,3.38,10.42ZM144.15,463.89c-1.39,3.17-.91,6.75,2.1,8.07,3.03,1.33,5.97-.71,7.44-4.08,1.29-2.95,1.1-6.7-2.09-8.09-3.17-1.39-6.03.85-7.45,4.1Z" data-v-809f2f0d></path><path class="text-dark" d="M159.36,473.48l-3.4,4.14-2.01-.78,10.95-13.11,2.35.91-.68,17.08-2.08-.8.22-5.37-5.35-2.07ZM164.9,473.87l.2-4.91c.04-1.12.17-2.1.28-3.06l-.05-.02c-.57.81-1.17,1.63-1.82,2.44l-3.16,3.79,4.54,1.75Z" data-v-809f2f0d></path><path class="text-dark" d="M174.44,467.31l1.98.68-4.69,13.64,6.54,2.25-.57,1.66-8.51-2.93,5.26-15.3Z" data-v-809f2f0d></path><path class="text-dark" d="M192.45,475.65l-5.69-1.75-1.75,3.65c.36.06.69.11,1.24.28,1.15.35,2.22.96,2.96,1.79.96,1.03,1.53,2.61.95,4.49-.9,2.91-3.89,4.38-7.12,3.38-1.63-.5-2.86-1.39-3.43-2.06l.98-1.38c.51.56,1.58,1.39,2.93,1.81,1.9.59,3.91-.15,4.53-2.14.57-1.93-.29-3.71-3.27-4.63-.85-.26-1.54-.38-2.11-.48l3.17-6.86,7.13,2.2-.52,1.7Z" data-v-809f2f0d></path></g><g data-v-809f2f0d><path class="text-dark" d="M318.64,486.16c-.8.59-2.41,1.65-4.5,2.28-2.34.7-4.46.68-6.41-.31-1.72-.89-3.17-2.71-3.89-5.12-1.36-4.63.8-8.96,5.99-10.52,1.79-.54,3.31-.57,4.08-.45v1.78c-.93-.12-2.06-.11-3.62.36-3.77,1.13-5.53,4.21-4.36,8.1,1.18,3.93,4.24,5.54,7.85,4.46,1.31-.39,2.15-.85,2.54-1.21l-1.39-4.62-3.15.94-.48-1.61,5.1-1.53,2.23,7.45Z" data-v-809f2f0d></path><path class="text-dark" d="M332.63,473.28c1.87,5.25-.34,9.16-4.23,10.54-4.03,1.43-7.96-.69-9.6-5.3-1.72-4.84.16-9.08,4.24-10.52,4.16-1.48,7.99.75,9.59,5.28ZM320.89,477.73c1.16,3.26,3.96,5.55,7.06,4.45,3.12-1.11,3.86-4.61,2.63-8.07-1.08-3.03-3.79-5.64-7.06-4.47-3.26,1.16-3.82,4.75-2.63,8.09Z" data-v-809f2f0d></path><path class="text-dark" d="M338.55,474.31l.36,5.35-2,.81-.99-17.06,2.34-.95,11.2,12.91-2.07.84-3.51-4.06-5.32,2.16ZM342.85,470.81l-3.22-3.72c-.73-.84-1.31-1.64-1.89-2.42l-.04.02c.14.98.26,1.99.34,3.02l.29,4.93,4.52-1.83Z" data-v-809f2f0d></path><path class="text-dark" d="M345.31,459.49l1.9-.86,5.92,13.16,6.31-2.83.72,1.6-8.21,3.69-6.63-14.76Z" data-v-809f2f0d></path><path class="text-dark" d="M367.72,466.89l-1.87-3.82-6.51,3.18-.61-1.25,1.88-12.01,2.05-1,4.26,8.71,1.96-.96.73,1.49-1.96.96,1.87,3.82-1.79.88ZM365.13,461.58l-2.29-4.68c-.36-.73-.7-1.48-1.01-2.23l-.06.03c-.03,1.03-.08,1.8-.15,2.64l-1.1,6.44.02.04,4.59-2.25Z" data-v-809f2f0d></path></g><g data-v-809f2f0d><path class="text-dark" d="M459.73,369.8c-.15.98-.53,2.87-1.56,4.8-1.16,2.16-2.66,3.64-4.74,4.32-1.84.59-4.15.34-6.38-.85-4.24-2.3-5.79-6.88-3.23-11.67.88-1.65,1.93-2.75,2.56-3.2l1.27,1.25c-.75.58-1.53,1.39-2.3,2.82-1.86,3.47-.91,6.89,2.66,8.81,3.62,1.94,6.92.9,8.7-2.42.65-1.21.92-2.12.93-2.66l-4.25-2.28-1.55,2.9-1.48-.79,2.52-4.7,6.85,3.67Z" data-v-809f2f0d></path><path class="text-dark" d="M460.47,350.8c5.04,2.38,6.26,6.7,4.49,10.43-1.83,3.86-6.1,5.16-10.53,3.07-4.64-2.19-6.32-6.52-4.47-10.42,1.89-3.99,6.17-5.13,10.51-3.08ZM455.34,362.26c3.13,1.48,6.73,1.11,8.13-1.87,1.41-2.99-.54-5.99-3.86-7.56-2.91-1.37-6.66-1.29-8.15,1.86-1.48,3.13.67,6.05,3.88,7.57Z" data-v-809f2f0d></path><path class="text-dark" d="M465.38,347.33l4.04,3.52-.84,1.99-12.79-11.33.97-2.32,17.05,1.17-.86,2.06-5.36-.38-2.22,5.29ZM465.92,341.81l-4.91-.34c-1.11-.08-2.09-.23-3.05-.37l-.02.04c.79.59,1.6,1.22,2.38,1.89l3.7,3.27,1.88-4.49Z" data-v-809f2f0d></path><path class="text-dark" d="M459.64,332.09l.74-1.95,13.5,5.09,2.44-6.47,1.64.62-3.17,8.42-15.14-5.7Z" data-v-809f2f0d></path><path class="text-dark" d="M476.45,326.34c.56-.44,1.57-1.57,2.05-2.96.87-2.57-.49-3.92-1.73-4.31-2.08-.68-3.6.88-4.25,2.81l-.38,1.11-1.5-.51.38-1.11c.5-1.45.37-3.55-1.38-4.15-1.18-.4-2.48,0-3.11,1.83-.4,1.18-.27,2.5-.03,3.29l-1.63.03c-.31-.97-.36-2.66.18-4.25.99-2.91,3.17-3.64,4.96-3.03,1.52.52,2.51,1.87,2.55,3.91h.04c.98-1.68,2.85-2.69,4.92-1.99,2.36.8,3.8,3.35,2.6,6.89-.56,1.66-1.58,2.94-2.31,3.5l-1.36-1.07Z" data-v-809f2f0d></path></g>
78<line class="cls-8" x1="64.28" y1="77.43" x2="426.2" y2="437.69" data-v-809f2f0d></line><line class="cls-8" x1="248.34" y1="0" x2="249.51" y2="510.66" data-v-809f2f0d></line><line class="cls-8" x1="433.24" y1="75.4" x2="72.97" y2="437.32" data-v-809f2f0d></line><line class="cls-8" x1="510.66" y1="259.46" x2="0" y2="260.63" data-v-809f2f0d></line><circle class="cls-8" cx="249.9" cy="261.03" r="123.05" data-v-809f2f0d></circle>',13))]))}},Rie=ds(Die,[["__scopeId","data-v-809f2f0d"]]),Iie={class:"container mb-5"},Lie={class:"row g-4"},Nie={class:"col-6"},Vie={class:"d-flex flex-column flex-lg-row gap-2 justify-content-between align-items-lg-end mb-2"},Fie={class:"fs-5 fw-bold"},Bie={class:"col-6 d-flex justify-content-center"},Uie={__name:"VitalitySummary",setup(t){const e=dm(),{stages:s,progressByGoal:n}=Qe(e),i=te(()=>e.stages[0].goals),r=te(()=>e.progressByGoal.filter(o=>o.completed==!0).length);return(o,a)=>(y(),x("div",Iie,[u("div",Lie,[u("div",Nie,[u("div",Vie,[a[0]||(a[0]=u("h2",{class:"mb-0"},"Program Vitality",-1)),u("span",Fie,P(r.value)+" of "+P(i.value.length)+" Goals Completed",1)]),a[1]||(a[1]=u("p",{class:"fs-6"},"Below are eight unique goals designed to keep you on track. You can approach these ever-changing milestones in any order you choose.",-1)),a[2]||(a[2]=u("p",{class:"fs-6"},"As you rate yourself, the progress wheel visualizes your journey. A rating of '0' leaves a slice empty, '1' marks satisfactory, and '2' completes the section. Aim to bring every goal to an 'excelling' to fully color in your wheel!",-1))]),u("div",Bie,[U(Rie)])])]))}},qie={__name:"VitalityContent",setup(t){return(e,s)=>(y(),x(G,null,[U(Uie),U(Aie)],64))}},Hie={class:"container d-flex flex-row justify-content-between align-items-center bg-light rounded p-2"},jie={class:"fs-5 m-0"},Wie={class:"btn-group btn-group-sm",role:"group","aria-label":"Select tracker to view"},zie={__name:"TrackerContent",setup(t){const e=kt(),s=te(()=>{var r;return(r=i.find(o=>o.name==n.value))==null?void 0:r.component}),n=W(e.currentEndeavor),i=[{name:"Development",component:nie},{name:"Vitality",component:qie}];return(r,o)=>(y(),tt(Ka,null,{"header-row":Fe(()=>[u("div",Hie,[u("h2",jie,P(n.value)+" Tracker",1),u("div",Wie,[Ge(u("input",{type:"radio",class:"btn-check",name:"tracker_select",id:"development-tracker",value:"Development","onUpdate:modelValue":o[0]||(o[0]=a=>n.value=a)},null,512),[[Ps,n.value]]),o[2]||(o[2]=u("label",{class:"btn btn-outline-program-navy",for:"development-tracker"},"Development",-1)),Ge(u("input",{type:"radio",class:"btn-check",name:"tracker_select",id:"vitality-tracker",value:"Vitality","onUpdate:modelValue":o[1]||(o[1]=a=>n.value=a)},null,512),[[Ps,n.value]]),o[3]||(o[3]=u("label",{class:"btn btn-outline-program-navy",for:"vitality-tracker"},"Vitality",-1))])])]),"tab-body":Fe(()=>[(y(),tt(Kr(s.value)))]),_:1}))}},Kie={class:"nav nav-tabs program-tabs fw-bold gap-1",role:"tablist","aria-label":"Program Sections"},Gie=["id","aria-controls","aria-selected","tabindex","onClick"],Yie={class:"tab-content bg-white"},Zie=["id","aria-labelledby"],Xie={__name:"ProgramTabs",setup(t){const e=[{id:"tracker",name:"Tracker",component:zie,permission:"viewProgress"},{id:"assessments",name:"Assessments",component:lX,permission:"viewAssessments"},{id:"members",name:"Members",component:tee,permission:"viewMembers"},{id:"program-profile",name:"Program Profile",component:qte,permission:"viewProfile"},{id:"documents",name:"Documents",component:BX,permission:"viewDocuments"},{id:"training-sites",name:"Training Sites",component:Mse,permission:"viewTrainingSites"},{id:"residents",name:"Residents",component:yQ,permission:"viewResidents"}],s=te(()=>{const r=kt();return e.filter(o=>r.permissions[o.permission]!==void 0?r.permissions[o.permission]:!1)}),n=W(null);Ds(()=>{s.value.length>0&&(n.value=s.value[0].id)});const i=te(()=>s.value.find(r=>r.id===n.value));return(r,o)=>(y(),x(G,null,[u("ul",Kie,[(y(!0),x(G,null,ge(s.value,(a,c)=>(y(),x("li",{key:a.id,class:"nav-item"},[u("button",{id:`${a.id}-tab`,type:"button",class:Ve(["nav-link text-dark bg-program-light-grey px-5",{active:n.value===a.id}]),role:"tab","aria-controls":`${a.id}-panel`,"aria-selected":n.value===a.id?"true":"false",tabindex:n.value===a.id?"0":"-1",onClick:f=>n.value=a.id},P(a.name),11,Gie)]))),128))]),u("div",Yie,[i.value?(y(),x("div",{key:0,class:"tab-pane active",role:"tabpanel",id:`${i.value.id}
78-panel`,tabindex:"0","aria-labelledby":`${i.value.id}-tab`},[(y(),tt(Kr(i.value.component)))],8,Zie)):ie("",!0)])],64))}},Jie=ds(Xie,[["__scopeId","data-v-d3749abb"]]),Qie={class:"row m-0 p-5 bg-program-blue"},ere={class:"col-12"},tre={class:"m-0 p-0 bg-program-blue"},sre={__name:"ProgramDetail",setup(t){return(e,s)=>(y(),x(G,null,[u("div",Qie,[u("div",ere,[U(vY)])]),u("div",tre,[U(Jie)])],64))}},Ts=hi("assessments",()=>{const t=W(null),e=W(null),s=W(null),n=W([]),i=W([]),r=W([]),o=W([]),a=W([]),c=W(!1),f=W(!1);function h(T){t.value=T.program,e.value=T.assessment,s.value=T.assessmentState,n.value=T.permissions,i.value=T.stages,o.value=T.assessmentResponses,r.value=T.progress}async function p(T){let D=`/portal/api/programs/${e.value.program_id}/assessments/${e.value.id}`;c.value=!1;try{const B=await axios.patch(D,T);e.value=B.data.data}catch(B){throw B}}async function m(){f.value=!0,c.value=!1,a.value=[];let T=`/portal/api/programs/${e.value.program_id}/assessments/${e.value.id}/submit`;try{const D=await axios.patch(T);window.location.href=D.data.redirect_url}catch(D){D.response&&D.response.status==422&&(a.value=D.response.data.errors,c.value=!0)}finally{f.value=!1}}async function _(T,D=null){let B=`/portal/api/programs/${e.value.program_id}/assessments/${e.value.id}/assessment-responses`;const N=D!=null?"patch":"post";D!=null&&(B+="/"+D),c.value=!1;try{const L=(await axios[N](B,T)).data.data,Y=o.value.findIndex(Z=>Z.ratable_id===L.ratable_id&&Z.ratable_type===L.ratable_type&&Z.assessment_id===L.assessment_id);Y!==-1?o.value[Y]=L:o.value.push(L)}catch(F){throw F}}function v(T,D){return{count:T,required:D,valid:D?T>=1&&T<=8:T<=8,ideal:T>=3&&T<=5,tooMany:T>8,noneSelected:T===0}}const b=te(()=>{let T=[];return w(i).forEach(D=>{D.goals.forEach(B=>{B.objectives.forEach(N=>{T.push(N)})})}),T}),S=te(()=>{let T=[];return w(i).forEach(D=>{D.goals.forEach(B=>{T.push(B)})}),T}),C=te(()=>e.value.endeavor.name=="Development"),O=te(()=>C.value?"Quarterly":"Semiannual"),A=te(()=>C.value?"objective":"goal"),$=te(()=>C.value?"objectives":"goals");return te(()=>(C.value?b.value:S.value).reduce((D,B)=>{const N=r.value.filter(Y=>Y.ratable_id===B.id&&Y.is_current),F=N.some(Y=>Y.response_user_type==="program"),L=C.value?N.some(Y=>Y.response_user_type==="advisor"):!0;return(!F||!L)&&D.push({id:B.id,label:B.description||`${C.value?"Objective":"Goal"} ${B.number}`,piMissing:!F,...C.value&&{advisorMissing:!L}}),D},[])),{program:t,assessment:e,assessmentState:s,stages:i,responses:o,progress:r,saving:f,permissions:n,submissionErrors:a,showSubmissionErrors:c,objectives:b,goals:S,isDevelopment:C,assessmentPeriodName:O,ratableType:A,ratableTypePlural:$,initializeData:h,saveResponse:_,updateAssessment:p,submitAssessment:m,createSelectionStatus:v}}),nre={class:"border p-3 mb-4 gap-2"},ire={class:"row"},rre={class:"col-12 col-lg-6"},ore={class:"d-flex flex-row align-items-center fw-semibold"},are={key:0},lre={key:0,class:"d-flex flex-row gap-2"},cre=["aria-disabled"],p$={__name:"Summary",setup(t){const e=Ts(),{assessment:s,assessmentState:n,permissions:i,responses:r,saving:o,showSubmissionErrors:a,submissionErrors:c,submitAssessment:f}=Qe(e),h=te(()=>e.responses.filter(L=>L.is_barrier)),p=te(()=>e.responses.filter(L=>L.focus_on_next_period)),m=te(()=>{const L=h.value.length;return n.value.requiresFocusesAndBarriers?L>=1&&L<=8:!0}),_=te(()=>{const L=p.value.length;return n.value.requiresFocusesAndBarriers?L>=1&&L<=8:!0}),v=te(()=>{var L;return!!((L=s.value.advisor_comments)!=null&&L.length)}),b=te(()=>n.value.missingRatings.length==0&&v.value&&m.value&&_.value),S=te(()=>n.value.missingRatings.length),C=te(()=>b.value?"This assessment is ready to be submitted.":a.value?"There was a problem with the submission. Please review the errors below.":"The following items must be completed before this assessment can be submitted."),O=te(()=>e.createSelectionStatus(p.value.length,n.value.requiresFocusesAndBarriers)),A=te(()=>{const L=O.value;return L.valid?!L.required&&L.noneSelected?"No Focuses are required for this assessment.":L.required?`${L.count} ${L.count===1?"Focus":"Focuses"} selected.`:`${L.count} ${L.count===1?"Focus":"Focuses"} selected (optional).`:L.tooMany?`${L.count} Focuses selected. Select no more than 8.`:"Select 1â8 Focuses (3â5 recommended)."}),$=te(()=>e.createSelectionStatus(h.value.length,n.value.requiresFocusesAndBarriers)),T=te(()=>{const L=$.value;
78return L.valid?!L.required&&L.noneSelected?"No Barriers are required for this assessment.":L.required?`${L.count} ${L.count===1?"Barrier":"Barriers"} selected.`:`${L.count} ${L.count===1?"Barrier":"Barriers"} selected (optional).`:L.tooMany?`${L.count} Barriers selected. Select no more than 8.`:"Select 1â8 Barriers (3â5 recommended)."}),D=te(()=>({complete:v.value,message:v.value?"Advisor comments completed.":"Add advisor comments."})),B=te(()=>Object.keys(N.value).length),N=te(()=>{const L=[];return D.value.complete||L.push({key:"advisor_comments",message:D.value.message}),n.value.missingRatings.length&&L.push({key:"progress",message:`${S.value} Progress Tracker ${S.value===1?"item needs":"items need"} ratings.`,details:n.value.missingRatingsByStage}),O.value.valid||L.push({key:"focuses",message:A.value}),$.value.valid||L.push({key:"barriers",message:T.value}),L}),F=te(()=>{if(!a.value)return N.value;const L=[...N.value];return Object.entries(c.value).forEach(([Y,Z])=>{const le=L.findIndex(Ee=>Ee.key===Y),Ce=Array.isArray(Z)?Z[0]:Z;le>=0?L[le]={...L[le],message:Ce}:L.push({key:Y,message:Ce})}),L});return(L,Y)=>(y(),x("div",nre,[u("div",ire,[u("div",rre,[u("div",ore,[u("i",{class:Ve(["fs-5 me-2",{"bi bi-check-circle-fill text-success":b.value},{"bi bi-exclamation-triangle-fill text-danger":w(a)},{"bi bi-exclamation-triangle-fill text-warning":B.value&&!w(a)}]),"aria-hidden":"true"},null,2),u("span",null,P(C.value),1)]),u("ul",null,[(y(!0),x(G,null,ge(F.value,Z=>(y(),x("li",{key:Z.key},[re(P(Z.message)+" ",1),Z.details?(y(),x("ul",are,[(y(!0),x(G,null,ge(Z.details,le=>(y(),x("li",{key:le},P(le),1))),128))])):ie("",!0)]))),128))]),w(i).submitAssessment?(y(),x("div",lre,[u("button",{class:Ve(["btn btn-primary w-100",{disabled:w(o)}]),type:"submit",onClick:Y[0]||(Y[0]=st((...Z)=>w(e).submitAssessment&&w(e).submitAssessment(...Z),["prevent"])),"aria-disabled":w(o)},[w(o)?(y(),x(G,{key:0},[Y[1]||(Y[1]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),Y[2]||(Y[2]=re(" Saving... "))],64)):(y(),x(G,{key:1},[re(" Submit Finalized Assessment ")],64))],10,cre)])):ie("",!0)])])]))}},ure=["for"],dre={key:0,"aria-hidden":"true",class:"text-danger"},fre=["autocomplete","id","aria-required","aria-invalid","aria-describedby","rows","readonly","maxlength","disabled"],Yu={__name:"TextareaInput",props:Nt({field:{type:String,required:!0},label:{type:String,required:!0},labelClass:{type:String,default:""},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autocomplete:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},maxlength:{type:Number,default:null},rows:{type:Number,default:2},errors:{type:Array,default:[]}},{modelValue:{},modelModifiers:{}}),emits:Nt(["input","blur"],["update:modelValue"]),setup(t,{expose:e}){const s=Gt(t,"modelValue"),n=t,i=W(null);e({textareaInput:i});const r=te(()=>n.errors.length>0);return(o,a)=>(y(),x(G,null,[u("label",{for:t.field+"Id",class:Ve(["form-label",t.labelClass])},[re(P(t.label)+" ",1),t.required?(y(),x("span",dre,"*")):ie("",!0)],10,ure),Ge(u("textarea",{ref_key:"textareaInput",ref:i,class:Ve(["form-control",{"is-invalid":r.value}]),autocomplete:t.autocomplete?"on":"off",id:t.field+"Id","aria-required":t.required,"aria-invalid":r.value,"aria-describedby":t.field+"_error",rows:t.rows,readonly:t.readonly,maxlength:t.maxlength,disabled:t.disabled,"onUpdate:modelValue":a[0]||(a[0]=c=>s.value=c),onInput:a[1]||(a[1]=c=>o.$emit("input")),onBlur:a[2]||(a[2]=c=>o.$emit("blur"))},null,42,fre),[[Pi,s.value]]),U(pn,{errors:t.errors,field:t.field},null,8,["errors","field"])],64))}},hre={class:"col-12 col-md-8"},pre={class:"fw-bold"},mre={class:"col-12 col-md-4 mt-3 mt-md-0"},gre={class:"d-flex flex-row justify-content-around bg-light p-1"},_re=["id"],vre={key:0,class:"fw-bold"},bre={key:1,class:"bi bi-exclamation-triangle-fill text-warning",title:"Score missing in tracker"},yre=["id"],wre={key:0,class:"fw-bold"},xre={key:1,class:"bi bi-exclamation-triangle-fill text-warning",title:"Score missing in tracker"},Sre={class:"col-12 mt-3"},Ere={class:"row flex-row-reverse"},Cre={class:"col-12 col-md-4"},kre={key:0,class:"d-flex flex-column gap-2 mb-3 mb-md-0"},Are={key:1,class:"d-flex flex-column gap-2"},$re={key:0,class:"d-flex align-items-center px-3 py-2 border border-2 rounded border-primary-subtle"},Tre={key:1,class:"d-flex align-items-center px-3 py-2 border border-2 rounded border-primary-subtle mb-3 mb-md-0"},Ore={class:"col-12 col-md-8"},Mre={key:0},Pre={key:0,class:"d-flex flex-row gap-2 mt-2"},Dre=["disabled","aria-disabled"],Rre={"aria-live":"polite",role:"status",class:"mt-2"},Ire={key:1},Lre=["id"],Nre={key:0,class:"px-3 py-2 border border rounded border-secondary-subtle"},Vre={class:"mb-0"},Fre={__name:"DevelopmentObjective",props:{ratable:{type:Object,required:!0},ratableType:{type:String,required:!0}},setup(t){const e=t,s=Ts(),{saveResponse:n,responses:i,assessment:r,permissions:o,progress:a,errors:c}=Qe(s),f=W({is_barrier:null,focus_on_next_period:null,pi_notes:null}),h=W("idle"),p=W(null),m=te(()=>{const A=s.responses.find(function($){return $.ratable_type==e.ratableType&&$.ratable_id==e.ratable.id&&$.assessment_id==s.assessment.id});return A??{is_barrier:null,focus_on_next_period:null,pi_notes:null}}),_=te(()=>{const A=s.progress.find(function($){return $.ratable_type==e.ratableType&&$.ratable_id==e.ratable.id&&$.response_user_type=="advisor"&&$.is_current==!0});return A!=null?A.response:null}),v=te(()=>{const A=s.progress.find(function($){return $.ratable_type==e.ratableType&&$.ratable_id==e.ratable.id&&$.response_user_type=="program"&&$.is_current==!0});return A!=null?A.response:null});function b(A){var T;const $={ratable_type:e.ratableType,ratable_id:e.ratable.id,[A]:f.value[A]};s.saveResponse($,(T=f.value)==null?void 0:T.id)}async function S(){var $,T;h.value="saving",p.value=null;const A={ratable_type:e.ratableType,ratable_id:e.ratable.id,pi_notes:f.value.pi_notes};try{await s.saveResponse(A,($=f.value)==null?void 0:$.id),h.value="success",setTimeout(()=>h.value="idle",3e3)}catch(D){h.value="error",((T=D.response)==null?void 0:T.status)===422?p.value=D.response.data.errors:p.value={pi_notes:["Unable to save changes. Please try again."]}}}function C(){f.value.pi_notes=m.value.pi_notes,p.value=null}const O=te(()=>{const A=f.value.pi_notes??"",$=m.value.pi_notes??"";return A!==$});return Et(m,A=>{A!==null&&(f.value={...A})},{immediate:!0}),(A,$)=>{var T;return y(),x(G,null,[u("div",hre,[u("span",pre,P(t.ratable.number),1),re(" "+P(t.ratable.description),1)]),u("div",mre,[u("div",gre,[u("div",{class:"text-center",id:"advisor-tracker-rating-"+t.ratable.id},[$[5]||($[5]=u("span",{class:"small text-muted d-block text-uppercase"},"Advisor",-1)),_.value!==null?(y(),x("span",vre,P(_.value),1)):(y(),x("i",bre))],8,_re),u("div",{class:"text-center",id:"program-tracker-rating-"+t.ratable.id},[$[6]||($[6]=u("span",{class:"small text-muted d-block text-uppercase"},"Program",-1)),v.value!==null?(y(),x("span",wre,P(v.value),1)):(y(),x("i",xre))],8,yre)])]),u("div",Sre,[u("div",Ere,[u("div",Cre,[
78w(o).manageProgramPortion?(y(),x("div",kre,[u("div",{class:Ve([f.value.is_barrier?"border-primary fw-bold text-primary":"border-secondary-subtle","px-3 py-2 border rounded"])},[U(Xs,{field:"is_barrier_"+t.ratable.id,required:!1,modelValue:f.value.is_barrier,"onUpdate:modelValue":$[0]||($[0]=D=>f.value.is_barrier=D),label:"Barrier","label-class":"w-100",onChange:$[1]||($[1]=D=>b("is_barrier"))},null,8,["field","modelValue"])],2),u("div",{class:Ve([f.value.focus_on_next_period?"border-primary fw-bold text-primary":"border-secondary-subtle","px-3 py-2 border rounded"])},[U(Xs,{field:"focus_on_next_period"+t.ratable.id,required:!1,modelValue:f.value.focus_on_next_period,"onUpdate:modelValue":$[2]||($[2]=D=>f.value.focus_on_next_period=D),label:"Focus on Next Quarter","label-class":"w-100",onChange:$[3]||($[3]=D=>b("focus_on_next_period"))},null,8,["field","modelValue"])],2)])):(y(),x("div",Are,[f.value.is_barrier?(y(),x("div",$re,[U(cr,{width:"24",height:"24","icon-name":"check-circle-filled",class:"me-1 text-primary flex-shrink-0"},{default:Fe(()=>[U(Fv)]),_:1}
78),$[7]||($[7]=u("span",{class:"fw-bold text-primary"},"Barrier",-1))])):ie("",!0),f.value.focus_on_next_period?(y(),x("div",Tre,[U(cr,{width:"24",height:"24","icon-name":"check-circle-filled",class:"me-1 text-primary flex-shrink-0"},{default:Fe(()=>[U(Fv)]),_:1}),$[8]||($[8]=u("span",{class:"fw-bold text-primary"},"Focus on Next Quarter",-1))])):ie("",!0)]))]),u("div",Ore,[w(o).manageProgramPortion?(y(),x("div",Mre,[U(Yu,{field:"pi_notes_"+t.ratable.id,required:!1,modelValue:f.value.pi_notes,"onUpdate:modelValue":$[4]||($[4]=D=>f.value.pi_notes=D),label:"PI Notes","label-class":"fw-bold",rows:3,maxlength:1e3,disabled:h.value=="saving"},null,8,["field","modelValue","disabled"]),O.value?(y(),x("div",Pre,[u("button",{type:"button",class:Ve(["btn btn-sm btn-primary",{disabled:h.value=="saving"}]),onClick:st(S,["prevent"]),disabled:h.value=="saving"||!O.value,"aria-disabled":h.value=="saving"}," save ",10,Dre),u("button",{type:"button",class:Ve(["btn btn-sm btn-light border",{disabled:h.value=="saving"}]),onClick:st(C,["prevent"])}," cancel ",2)])):ie("",!0),u("div",Rre,[h.value=="saving"?(y(),x(G,{key:0},[$[9]||($[9]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),$[10]||($[10]=re(" saving... "))],64)):ie("",!0),h.value=="success"&&!O.value?(y(),x("span",Ire,$[11]||($[11]=[u("i",{class:"bi bi-check-lg text-success me-1","aria-hidden":"true"},null,-1),re("saved! ")]))):ie("",!0),U(pn,{errors:(T=p.value)==null?void 0:T.pi_notes,field:"pi_notes_"+t.ratable.id},null,8,["errors","field"])])])):(y(),x("div",{key:1,id:"readonly-pi-notes-"+t.ratable.id},[f.value.pi_notes?(y(),x("div",Nre,[$[12]||($[12]=u("span",{class:"small text-muted d-block text-uppercase"},"PI Notes",-1)),u("p",Vre,P(f.value.pi_notes),1)])):ie("",!0)],8,Lre))])])])],64)}}},Bre={class:"mb-4"},Ure={key:1,id:"readonly-advisor-comments"},qre={key:2,class:"d-flex flex-row gap-2 mt-2"},Hre=["disabled","aria-disabled"],jre={"aria-live":"polite",role:"status",class:"mt-2"},Wre={key:1},zre={__name:"AdvisorWorkplan",setup(t){const e=Ts(),{assessment:s,permissions:n,updateAssessment:i}=Qe(e),r=W({advisor_comments:"idle"}),o=W(null),a=W({advisor_comments:e.assessment.advisor_comments});async function c(p){var _;r.value[p]="saving",p in(o.value||{})&&(o.value[p]=null);const m={[p]:a.value[p]};try{await e.updateAssessment(m),r.value[p]="success",setTimeout(()=>r.value[p]="idle",3e3)}catch(v){r.value[p]="error",((_=v.response)==null?void 0:_.status)===422?o.value[p]=v.response.data.errors:o.value[p]=["Unable to save changes. Please try again."]}}function f(p){a.value[p]=e.assessment[p],p in(o.value||{})&&(o.value[p]=null)}const h=te(()=>{const p=a.value.advisor_comments??"",m=e.assessment.advisor_comments??"";return p!==m});return(p,m)=>{var _;return y(),x("div",Bre,[w(n).manageAdvisorPortion?(y(),tt(Yu,{key:0,field:"advisor_comments",required:w(n).manageAdvisorPortion,modelValue:a.value.advisor_comments,"onUpdate:modelValue":m[0]||(m[0]=v=>a.value.advisor_comments=v),label:"Advisor Comments","label-class":"fw-bold",maxlength:1e3,errors:(_=o.value)==null?void 0:_.advisor_comments},null,8,["required","modelValue","errors"])):(y(),x("div",Ure,[m[3]||(m[3]=u("p",{class:"fw-bold mb-0"},"Advisor Comments",-1)),u("p",null,P(a.value.advisor_comments),1)])),h.value?(y(),x("div",qre,[u("button",{type:"button",class:Ve(["btn btn-sm btn-primary",{disabled:r.value.advisor_comments=="saving"}]),onClick:m[1]||(m[1]=st(v=>c("advisor_comments"),["prevent"])),disabled:r.value.advisor_comments=="saving"||!h.value,"aria-disabled":r.value.advisor_comments=="saving"}," save ",10,Hre),u("button",{type:"button",class:Ve(["btn btn-sm btn-light border",{disabled:r.value.advisor_comments=="saving"}]),onClick:m[2]||(m[2]=st(v=>f("advisor_comments"),["prevent"]))}," cancel ",2)])):ie("",!0),u("div",jre,[r.value.advisor_comments=="saving"?(y(),x(G,{key:0},[m[4]||(m[4]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),m[5]||(m[5]=re(" saving... "))],64)):ie("",!0),r.value.advisor_comments=="success"&&!h.value?(y(),x("span",Wre,m[6]||(m[6]=[u("i",{class:"bi bi-check-lg text-success me-1","aria-hidden":"true"},null,-1),re("saved! ")]))):ie("",!0)])])}}},Kre={class:"mb-4"},Gre={class:"d-flex align-items-center gap-3"},Yre={key:0},Zre={class:"d-flex align-items-center gap-3 mt-4"},Xre={key:1},Jre={__name:"DevelopmentBarriersObjectives",setup(t){const e=Ts(),{responses:s,objectives:n,assessmentState:i}=Qe(e),r=te(()=>e.responses.filter(h=>h.is_barrier)),o=te(()=>e.responses.filter(h=>h.focus_on_next_period)),a=te(()=>e.createSelectionStatus(r.value.length,i.value.requiresFocusesAndBarriers)),c=te(()=>e.createSelectionStatus(o.value.length,i.value.requiresFocusesAndBarriers));function f(h){const m=e.objectives.find(_=>_.id==h);return m?`${m.number}: ${m.description}`:""}return(h,p)=>(y(),x("div",Kre,[u("div",Gre,[p[0]||(p[0]=u("h3",{class:"fs-5 mb-0"},"Barriers",-1)),u("span",{class:Ve({"badge text-bg-success":a.value.ideal,"badge text-bg-danger":!a.value.valid,"badge text-bg-primary":!a.value.ideal&&a.value.valid})},P(a.value.count)+" Selected ",3)]),r.value.length?(y(),x("ul",Yre,[(y(!0),x(G,null,ge(r.value,(m,_)=>(y(),x("li",{key:"barrier-"+_},P(f(m.ratable_id)),1))),128))])):ie("",!0),u("div",Zre,[p[1]||(p[1]=u("h3",{class:"fs-5 mb-0"}
78,"Key objectives to focus on in the next quarter",-1)),u("span",{class:Ve({"badge text-bg-success":c.value.ideal,"badge text-bg-danger":!c.value.valid,"badge text-bg-primary":!c.value.ideal&&c.value.valid})},P(c.value.count)+" Selected ",3)]),o.value.length?(y(),x("ul",Xre,[(y(!0),x(G,null,ge(o.value,(m,_)=>(y(),x("li",{key:"focus-"+_},P(f(m.ratable_id)),1))),128))])):ie("",!0)]))}},Qre={class:"mb-4"},eoe={key:1,id:"readonly-resources-needed"},toe={key:2,class:"d-flex flex-row gap-2 mt-2"},soe=["disabled","aria-disabled"],noe={"aria-live":"polite",role:"status",class:"mt-2"},ioe={key:1},roe={class:"mb-4"},ooe={key:1,id:"readonly-additional-comments"},aoe={key:2,class:"d-flex flex-row gap-2 mt-2"},loe=["disabled","aria-disabled"],coe={"aria-live":"polite",role:"status",class:"mt-2"},uoe={key:1},doe={__name:"PiWorkplan",setup(t){const e=Ts(),{assessment:s,permissions:n,updateAssessment:i}=Qe(e),r=W({resources_needed:"idle",additional_comments:"idle"}),o=W({resources_needed:[],additional_comments:[]}),a=W({resources_needed:e.assessment.resources_needed,additional_comments:e.assessment.additional_comments});async function c(m){var v;r.value[m]="saving",m in(o.value||{})&&(o.value[m]=[]);const _={[m]:a.value[m]};try{await e.updateAssessment(_),r.value[m]="success",setTimeout(()=>r.value[m]="idle",3e3)}catch(b){r.value[m]="error",((v=b.response)==null?void 0:v.status)===422?o.value[m]=b.response.data.errors[m]:o.value[m]="Unable to save changes. Please try again."}}function f(m){a.value[m]=e.assessment[m],m in(o.value||{})&&(o.value[m]=[])}const h=te(()=>{const m=a.value.additional_comments??"",_=e.assessment.additional_comments??"";return m!==_}),p=te(()=>{const m=a.value.resources_needed??"",_=e.assessment.resources_needed??"";return m!==_});return(m,_)=>{var v,b;return y(),x(G,null,[u("div",Qre,[w(n).manageProgramPortion?(y(),tt(Yu,{key:0,field:"resources_needed",required:!1,modelValue:a.value.resources_needed,"onUpdate:modelValue":_[0]||(_[0]=S=>a.value.resources_needed=S),label:"Resources Needed","label-class":"fw-bold",maxlength:1e3,errors:(v=o.value)==null?void 0:v.resources_needed},null,8,["modelValue","errors"])):(y(),x("div",eoe,[_[6]||(_[6]=u("p",{class:"fw-bold mb-0"},"Resources Needed",-1)),u("p",null,P(a.value.resources_needed),1)])),p.value?(y(),x("div",toe,[u("button",{type:"button",class:Ve(["btn btn-sm btn-primary",{disabled:r.value.resources_needed=="saving"}]),onClick:_[1]||(_[1]=st(S=>c("resources_needed"),["prevent"])),disabled:r.value.resources_needed=="saving"||!p.value,"aria-disabled":r.value.resources_needed=="saving"}," save ",10,soe),u("button",{type:"button",class:Ve(["btn btn-sm btn-light border",{disabled:r.value.resources_needed=="saving"}]),onClick:_[2]||(_[2]=st(S=>f("resources_needed"),["prevent"]))}," cancel ",2)])):ie("",!0),u("div",noe,[r.value.resources_needed=="saving"?(y(),x(G,{key:0},[_[7]||(_[7]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),_[8]||(_[8]=re(" saving... "))],64)):ie("",!0),r.value.resources_needed=="success"&&!p.value?(y(),x("span",ioe,_[9]||(_[9]=[u("i",{class:"bi bi-check-lg text-success me-1","aria-hidden":"true"},null,-1),re("saved! ")]))):ie("",!0)])]),u("div",roe,[w(n).manageProgramPortion?(y(),tt(Yu,{key:0,field:"additional_comments",required:!1,modelValue:a.value.additional_comments,"onUpdate:modelValue":_[3]||(_[3]=S=>a.value.additional_comments=S),label:"Additional Comments","label-class":"fw-bold",maxlength:1e3,errors:(b=o.value)==null?void 0:b.additional_comments},null,8,["modelValue","errors"])):(y(),x("div",ooe,[_[10]||(_[10]=u("p",{class:"fw-bold mb-0"},"Additional Comments",-1)),u("p",null,P(a.value.additional_comments),1)])),h.value?(y(),x("div",aoe,[u("button",{type:"button",class:Ve(["btn btn-sm btn-primary",{disabled:r.value.additional_comments=="saving"}]),onClick:_[4]||(_[4]=st(S=>c("additional_comments"),["prevent"])),disabled:r.value.additional_comments=="saving"||!h.value,"aria-disabled":r.value.additional_comments=="saving"}," save ",10,loe),u("button",{type:"button",class:Ve(["btn btn-sm btn-light border",{disabled:r.value.additional_comments=="saving"}]),onClick:_[5]||(_[5]=st(S=>f("additional_comments"),["prevent"]))}," cancel ",2)])):ie("",!0),u("div",coe,[r.value.additional_comments=="saving"?(y(),x(G,{key:0},[_[11]||(_[11]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),_[12]||(_[12]=re(" saving... "))],64)):ie("",!0),r.value.additional_comments=="success"&&!h.value?(y(),x("span",uoe,_[13]||(_[13]=[u("i",{class:"bi bi-check-lg text-success me-1","aria-hidden":"true"},null,-1),re("saved! ")]))):ie("",!0)])])],64)}}},foe={key:0},hoe={key:1},poe={__name:"VitalityBarriersObjectives",setup(t){const e=Ts(),{progress:s,goals:n}=Qe(e),i=te(()=>{const r=e.progress.reduce((o,a)=>(a.ratable_type==="goal"&&(o[a.ratable_id]=a.response),o),{});return e.goals.filter(o=>{const a=r[o.id];return a===void 0||a<2})});return(r,o)=>(y(),x(G,null,[o[0]||(o[0]=u("h3",{class:"fs-5"},"Barriers",-1)),i.value.length?(y(),x("ul",foe,[(y(!0),x(G,null,ge(i.value,(a,c)=>(y(),x("li",{key:"barrier-"+c},P(`${a.number}: ${a.description}`),1))),128))])):ie("",!0),o[1]||(o[1]=u("h3",{class:"fs-5"}
78,"Key objectives to focus on in the next quarter",-1)),i.value.length?(y(),x("ul",hoe,[(y(!0),x(G,null,ge(i.value,(a,c)=>(y(),x("li",{key:"focus-"+c},P(`${a.number}: ${a.description}`),1))),128))])):ie("",!0)],64))}},moe={class:"border p-3 mb-4 gap-2"},m$={__name:"Workplan",setup(t){const e=Ts(),{isDevelopment:s}=Qe(e),n=te(()=>e.isDevelopment?Jre:poe);return(i,r)=>(y(),x("div",moe,[(y(),tt(Kr(n.value))),U(doe),U(zre)]))}},goe=["id"],_oe={class:"py-2 d-flex flex-column"},voe={class:"fs-4 mb-0"},boe={class:"fw-bold"},yoe={key:0,href:"#main-content",class:"link-primary"},woe={class:"d-flex flex-column flex-sm-row justify-content-between align-items-sm-center"},xoe={class:"fs-5"},Soe={class:"container"},Eoe={class:"py-2",id:"workplan"},Coe={class:"py-2",id:"summary"},koe={__name:"DevelopmentAssessmentForm",setup(t){const e=Ts(),{stages:s}=Qe(e);return(n,i)=>(y(),x("form",null,[(y(!0),x(G,null,ge(w(s),(r,o)=>(y(),x("div",{key:r.id,id:"stage-"+r.number},[u("div",_oe,[u("h2",voe,[re("Stage "+P(r.number)+" ",1),u("span",boe,P(r.name),1)]),o?(y(),x("a",yoe,i[0]||(i[0]=[u("span",{"aria-hidden":"true"},"â",-1),re(" return to top")]))):ie("",!0),i[1]||(i[1]=u("span",null,[u("span",{class:"visually-hidden"},"Scoring rubric:"),re(" 0: Not Started, 1: Started, 2: Completed")],-1))]),(y(!0),x(G,null,ge(r.goals,a=>(y(),x("div",{key:a.id,class:"border p-3 mb-4 gap-2"},[u("div",woe,[u("h3",xoe,"Goal "+P(a.number)+" "+P(a.description),1)]),u("div",Soe,[i[2]||(i[2]=u("div",{class:"row border-bottom py-2","aria-hidden":"true"},[u("div",{class:"col-12 col-md-8 text-uppercase fw-bold"},"Objective"),u("div",{class:"col-12 col-md-4 text-uppercase fw-bold text-center d-none d-md-inline"},"Scores")],-1)),(y(!0),x(G,null,ge(a.objectives,(c,f)=>(y(),x("div",{key:"objective_"+c.id,class:Ve(["row py-3",[f!=a.objectives.length-1?"border-bottom":""]])},[U(Fre,{ratable:c,"ratable-type":"objective"},null,8,["ratable"])],2))),128))])]))),128))],8,goe))),128)),u("div",Eoe,[i[3]||(i[3]=u("h2",{class:"fs-4 mb-0"},"Individualized Workplan",-1)),i[4]||(i[4]=u("a",{href:"#main-content",class:"link-primary"},[u("span",{"aria-hidden":"true"},"â"),re(" return to top")],-1)),U(m$)]),u("div",Coe,[i[5]||(i[5]=u("h2",{class:"fs-4 mb-0"},"Assessment Summary",-1)),i[6]||(i[6]=u("a",{href:"#main-content",class:"link-primary"},[u("span",{"aria-hidden":"true"},"â"),re(" return to top")],-1)),U(p$)])]))}},Aoe={class:"col-12 col-md-8"},$oe={class:"fw-bold"},Toe={class:"col-12 col-md-4 mt-3 mt-md-0"},Ooe={class:"d-flex flex-row justify-content-around bg-light p-1"},Moe=["id"],Poe={key:0,class:"fw-bold"},Doe={key:1,class:"bi bi-exclamation-triangle-fill text-warning",title:"Score missing in tracker"},Roe={class:"col-12 col-md-8 mt-3"},Ioe={key:0},Loe={key:0,class:"d-flex flex-row gap-2 mt-2"},Noe=["disabled","aria-disabled"],Voe={"aria-live":"polite",role:"status",class:"mt-2"},Foe={key:1},Boe=["id"],Uoe={key:0,class:"px-3 py-2 border border rounded border-secondary-subtle"},qoe={class:"mb-0"},Hoe={__name:"VitalityGoal",props:{ratable:{type:Object,required:!0},ratableType:{type:String,required:!0}},setup(t){const e=t,s=Ts(),{saveResponse:n,responses:i,assessment:r,permissions:o,progress:a,errors:c}=Qe(s),f=W({is_barrier:null,focus_on_next_period:null,pi_notes:null}),h=W("idle"),p=W(null),m=te(()=>{const C=s.responses.find(function(O){return O.ratable_type==e.ratableType&&O.ratable_id==e.ratable.id&&O.assessment_id==s.assessment.id});return C??{is_barrier:null,focus_on_next_period:null,pi_notes:null}});te(()=>{const C=s.progress.find(function(O){return O.ratable_type==e.ratableType&&O.ratable_id==e.ratable.id&&O.response_user_type=="advisor"&&O.is_current==!0});return C!=null?C.response:null});const _=te(()=>{const C=s.progress.find(function(O){return O.ratable_type==e.ratableType&&O.ratable_id==e.ratable.id&&O.response_user_type=="program"&&O.is_current==!0});return C!=null?C.response:null});async function v(){var O,A;h.value="saving",p.value=null;const C={ratable_type:e.ratableType,ratable_id:e.ratable.id,pi_notes:f.value.pi_notes};try{await s.saveResponse(C,(O=f.value)==null?void 0:O.id),h.value="success",setTimeout(()=>h.value="idle",3e3)}catch($){h.value="error",((A=$.response)==null?void 0:A.status)===422?p.value=$.response.data.errors:p.value={pi_notes:["Unable to save changes. Please try again."]}}}function b(){f.value.pi_notes=m.value.pi_notes,p.value=null}const S=te(()=>f.value.pi_notes!==m.value.pi_notes);return Et(m,C=>{C!==null&&(f.value={...C})},{immediate:!0}),(C,O)=>{var A;return y(),x(G,null,[u("div",Aoe,[(y(!0),x(G,null,ge(t.ratable.objectives,($,T)=>
78(y(),x("div",{key:"objective_"+$.id,class:Ve(["py-3",[T!=t.ratable.objectives.length-1?"border-bottom":""]])},[u("span",$oe,P($.number)+":",1),re(" "+P($.description),1)],2))),128))]),u("div",Toe,[u("div",Ooe,[u("div",{class:"text-center",id:"program-tracker-rating-"+t.ratable.id},[O[1]||(O[1]=u("span",{class:"small text-muted d-block text-uppercase"},"Program",-1)),_.value!==null?(y(),x("span",Poe,P(_.value),1)):(y(),x("i",Doe))],8,Moe)])]),u("div",Roe,[w(o).manageProgramPortion?(y(),x("div",Ioe,[U(Yu,{field:"pi_notes_"+t.ratable.id,required:!1,modelValue:f.value.pi_notes,"onUpdate:modelValue":O[0]||(O[0]=$=>f.value.pi_notes=$),label:"PI Notes","label-class":"fw-bold",rows:3,maxlength:1e3,disabled:h.value=="saving"},null,8,["field","modelValue","disabled"]),S.value?(y(),x("div",Loe,[u("button",{type:"button",class:Ve(["btn btn-sm btn-primary",{disabled:h.value=="saving"}]),onClick:st(v,["prevent"]),disabled:h.value=="saving"||!S.value,"aria-disabled":h.value=="saving"}," save ",10,Noe),u("button",{type:"button",class:Ve(["btn btn-sm btn-light border",{disabled:h.value=="saving"}]),onClick:st(b,["prevent"])}," cancel ",2)])):ie("",!0),u("div",Voe,[h.value=="saving"?(y(),x(G,{key:0},[O[2]||(O[2]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),O[3]||(O[3]=re(" saving... "))],64)):ie("",!0),h.value=="success"&&!S.value?(y(),x("span",Foe,O[4]||(O[4]=[u("i",{class:"bi bi-check-lg text-success me-1","aria-hidden":"true"},null,-1),re("saved! ")]))):ie("",!0),U(pn,{errors:(A=p.value)==null?void 0:A.pi_notes,field:"pi_notes_"+t.ratable.id},null,8,["errors","field"])])])):(y(),x("div",{key:1,id:"readonly-pi-notes-"+t.ratable.id},[f.value.pi_notes?(y(),x("div",Uoe,[O[5]||(O[5]=u("span",{class:"small text-muted d-block text-uppercase"},"PI Notes",-1)),u("p",qoe,P(f.value.pi_notes),1)])):ie("",!0)],8,Boe))])],64)}}},joe=["id"],Woe={class:"py-2 d-flex flex-column"},zoe={class:"fs-4 mb-0"},Koe={class:"fw-bold"},Goe={key:0,href:"#main-content",class:"link-primary"},Yoe={class:"d-flex justify-content-between align-items-center"},Zoe={class:"fs-5"},Xoe={class:"container"},Joe={class:"row"},Qoe={class:"py-2",id:"workplan"},eae={class:"py-2",id:"summary"},tae={__name:"VitalityAssessmentForm",setup(t){const e=Ts(),{goals:s,stages:n}=Qe(e);return(i,r)=>(y(),x("form",null,[(y(!0),x(G,null,ge(w(n),(o,a)=>(y(),x("div",{key:o.id,id:"stage-"+o.number},[u("div",Woe,[u("h2",zoe,[re("Stage "+P(o.number)+" ",1),u("span",Koe,P(o.name),1)]),a?(y(),x("a",Goe,r[0]||(r[0]=[u("span",{"aria-hidden":"true"},"â",-1),re(" return to top")]))):ie("",!0),r[1]||(r[1]=u("span",null,[u("span",{class:"visually-hidden"},"Scoring rubric:"),re(" 0: Needs Improvement, 1: Satisfactory, 2: Excelling")],-1))]),(y(!0),x(G,null,ge(o.goals,c=>(y(),x("div",{key:c.id,class:"border p-3 mb-4 gap-2"},[u("div",Yoe,[u("h3",Zoe,"Goal "+P(c.number)+" "+P(c.description),1)]),u("div",Xoe,[r[2]||(r[2]=u("div",{class:"row border-bottom py-2","aria-hidden":"true"},[u("div",{class:"col-12 col-md-8 text-uppercase fw-bold"},"Objective"),u("div",{class:"col-12 col-md-4 text-uppercase fw-bold text-center d-none d-md-inline"},"Score")],-1)),u("div",Joe,[U(Hoe,{ratable:c,"ratable-type":"goal"},null,8,["ratable"])])])]))),128))],8,joe))),128)),u("div",Qoe,[r[3]||(r[3]=u("h2",{class:"fs-4 mb-0"},"Individualized Workplan",-1)),r[4]||(r[4]=u("a",{href:"#main-content",class:"link-primary"},[u("span",{"aria-hidden":"true"},"â"),re(" return to top")],-1)),U(m$)]),u("div",eae,[r[5]||(r[5]=u("h2",{class:"fs-4 mb-0"},"Assessment Summary",-1)),r[6]||(r[6]=u("a",{href:"#main-content",class:"link-primary"},[u("span",{"aria-hidden":"true"},"â"),re(" return to top")],-1)),U(p$)])]))}},sae={class:"flex-shrink-0 px-3 bg-white sticky-lg-top"},nae={class:"list-unstyled ps-0"},iae=["href"],rae={__name:"AssessmentSidebar",setup(t){const e=Ts(),{stages:s}=Qe(e);return(n,i)=>(y(),x("div",sae,[i[2]||(i[2]=u("span",{class:"fs-5 fw-semibold"},"Jump to Section",-1)),u("ul",nae,[(y(!0),x(G,null,ge(w(s),r=>(y(),x("li",{class:"mb-3",key:r.id},[u("a",{class:"link-primary",href:"#stage-"+r.number},P(r.name),9,iae)]))),128)),i[0]||(i[0]=u("hr",null,null,-1)),i[1]||(i[1]=u("li",{class:"mb-1"},[u("a",{class:"btn btn-primary btn-sm w-100",href:"#workplan"}," View Workplan ")],-1))])]))}},oae={class:"row m-0 px-5 justify-content-center"},aae={class:"col-12"},lae={"aria-label":"breadcrumb"},cae={class:"breadcrumb"},uae={class:"breadcrumb-item"},dae=["href"],fae={class:"breadcrumb-item active","aria-current":"page"},hae={class:"card border-0 shadow-sm mb-5"},pae={class:"card-body p-0"},mae={class:"row g-0"},gae={class:"p-4"},_ae={class:"mb-0 leading-relaxed"},vae={key:0,class:"col-lg-6 border-start border-info border-4 bg-light-subtle"},bae={class:"d-flex flex-column px-5 my-3 align-items-center"},yae={class:"fs-3"},wae={class:"row m-0 px-5 pb-5 justify-content-center"},xae={class:"col-12 col-lg-2"},Sae={class:"col-12 col-lg-10"},Eae={__name:"AssessmentFormManager",setup(t){const e=Ts(),{assessment:s,program:n,isDevelopment:i,assessmentPeriodName:r,ratableTypePlural:o}=Qe(e),a=te(()=>i.value?koe:tae),c=te(()=>rae);return(f,h)=>{var p,m,_,v;return y(),x(G,null,[u("div",oae,[u("div",aae,[u("nav",lae,[u("ol",cae,[u("li",uae,[u("a",{href:"/portal/programs/"+w(n).id},P(w(n).name),9,dae)]),u("li",fae,P((p=w(s).assessment_period)==null?void 0:p.name)+" "+P((m=w(s).endeavor)==null?void 0:m.name)+" Assessment",1)])]),u("div",hae,[u("div",pae,[u("div",mae,[u("div",{class:Ve(["col-lg-"+(w(i)?"6":"12"),"border-start border-primary border-4 bg-light-subtle"])},[u("div",gae,[h[3]||(h[3]=u("div",{class:"d-flex align-items-center"}
78,[u("i",{class:"bi bi-exclamation-circle-fill text-primary me-2","aria-hidden":"true"}),u("span",{class:"mb-0 fw-bold fs-5"},"Update Progress Tracker")],-1)),u("p",_ae,[h[0]||(h[0]=re(" Before completing your ")),u("strong",null,P(w(r))+" Assessment",1),h[1]||(h[1]=re(", you ")),h[2]||(h[2]=u("strong",null,"must update the Progress Tracker",-1)),re(". The information below is drawn from the Tracker; please ensure all "+P(w(o))+" have been scored and are up-to-date. ",1)])])],2),w(i)?(y(),x("div",vae,h[4]||(h[4]=[ci('<div class="p-4"><div class="d-flex align-items-center"><i class="bi bi-lightbulb-fill text-info me-2" aria-hidden="true"></i><span class="mb-0 fw-bold fs-5">New Recommendation</span></div><p class="mb-0 leading-normal"> For programs in development (Stages 1â4), we recommend choosing <span class="fw-bold">3 to 5 barriers</span> and <span class="fw-bold">3 to 5 focuses</span> for the upcoming quarter. </p></div>',1)]))):ie("",!0)])])])])]),u("div",bae,[u("h1",yae,P((_=w(s).assessment_period)==null?void 0:_.name)+" "+P((v=w(s).endeavor)==null?void 0:v.name)+" Assessment",1),u("span",null,P(w(n).name)+" | Due Date: "+P(w(Ro)(w(s).due_date,"MM/dd/yyyy")),1)]),u("div",wae,[u("div",xae,[(y(),tt(Kr(c.value)))]),u("div",Sae,[(y(),tt(Kr(a.value)))])])],64)}}},Cae={class:"container-lg"},kae={class:"row m-0 d-print-none"},Aae={class:"col-12"},$ae={"aria-label":"breadcrumb"},Tae={class:"breadcrumb"},Oae={class:"breadcrumb-item"},Mae=["href"],Pae={class:"breadcrumb-item active","aria-current":"page"},Dae={class:"row px-5 mb-3"},Rae={class:"col-12"},Iae={class:"row px-5 pb-5"},Lae={class:"col-12"},g$={__name:"StaticManager",setup(t){const e=Ts(),{assessment:s,program:n}=Qe(e);return(i,r)=>{var o,a;return y(),x("div",Cae,[u("div",kae,[u("div",Aae,[u("nav",$ae,[u("ol",Tae,[u("li",Oae,[u("a",{href:"/portal/programs/"+w(n).id},P(w(n).name),9,Mae)]),u("li",Pae,P((o=w(s).assessment_period)==null?void 0:o.name)+" "+P((a=w(s).endeavor)==null?void 0:a.name)+" Assessment",1)])])])]),u("div",Dae,[u("div",Rae,[Ft(i.$slots,"assessmentMetaInfo")])]),u("div",Iae,[u("div",Lae,[Ft(i.$slots,"ratableContent")])])])}}},Nae={class:"w-75"},Vae={class:"fw-bold"},Fae={key:0,class:"p-2 small text-secondary"},Bae={__name:"DevelopmentTableRow",props:{ratable:{type:Object,required:!0},ratableType:{type:String,required:!0}},setup(t){const e=t,s=Ts(),{responses:n,assessment:i}=Qe(s),r=te(()=>{const o=s.responses.find(function(a){return a.ratable_type==e.ratableType&&a.ratable_id==e.ratable.id&&a.assessment_id==s.assessment.id});return o??{pi_score:null,advisor_score:null,pi_notes:null,is_barrier:null,focus_on_next_period:null}});return(o,a)=>(y(),x("tr",null,[u("td",Nae,[u("span",Vae,P(t.ratable.number)+":",1),re(" "+P(t.ratable.description)+" ",1),a[1]||(a[1]=u("br",null,null,-1)),r.value.pi_notes?(y(),x("div",Fae,[a[0]||(a[0]=u("strong",null,"PI Notes:",-1)),re(" "+P(r.value.pi_notes),1)])):ie("",!0)]),u("td",null,P(r.value.pi_score),1),u("td",null,P(r.value.advisor_score),1),u("td",null,P(r.value.is_barrier?"Yes":"No"),1),u("td",null,P(r.value.focus_on_next_period?"Yes":"No"),1)]))}},Uae={class:"my-2 gap-2"},qae={key:0},Hae={key:1},jae={class:"mb-4"},Wae={class:"mb-4"},zae={class:"mb-4"},_$={__name:"Workplan",setup(t){const e=Ts(),{assessment:s,responses:n,objectives:i,goals:r}=Qe(e),o=W({resources_needed:e.assessment.resources_needed,additional_comments:e.assessment.additional_comments,advisor_comments:e.assessment.advisor_comments}),a=te(()=>e.responses.filter(h=>h.is_barrier)),c=te(()=>e.responses.filter(h=>h.focus_on_next_period));function f(h){const m=(e.assessment.endeavor.name=="Development"?e.objectives:e.goals).find(_=>_.id==h);return m?`(${m.number}) ${m.description}`:""}return(h,p)=>(y(),x("div",Uae,[p[3]||(p[3]=u("h3",{class:"fs-5"},"Barriers",-1)),a.value.length?(y(),x("ul",qae,[(y(!0),x(G,null,ge(a.value,(m,_)=>(y(),x("li",{key:"barrier-"+_},P(f(m.ratable_id)),1))),128))])):ie("",!0),p[4]||(p[4]=u("h3",{class:"fs-5"},"Key objectives to focus on in the next quarter",-1)),c.value.length?(y(),x("ul",Hae,[(y(!0),x(G,null,ge(c.value,(m,_)=>(y(),x("li",{key:"focus-"+_},P(f(m.ratable_id)),1))),128))])):ie("",!0),u("div",jae,[p[0]||(p[0]=u("p",{class:"fw-bold mb-0"},"Resources Needed",-1)),u("p",null,P(o.value.resources_needed),1)]),u("div",Wae,[p[1]||(p[1]=u("p",{class:"fw-bold mb-0"},"Additional Comments",-1)),u("p",null,P(o.value.additional_comments),1)]),u("div",zae,[p[2]||(p[2]=u("p",{class:"fw-bold mb-0"},"Advisor Comments",-1)),u("p",null,P(o.value.advisor_comments),1)])]))}},Kae={class:"fs-4"},Gae={class:"row"},Yae={class:"col-12 col-sm-6 col-md-8 col-lg-9"},Zae={class:"col-12 col-sm-6 col-md-8 col-lg-9"},Xae={class:"col-12 col-sm-6 col-md-8 col-lg-9"},Jae={class:"col-12 col-sm-6 col-md-8 col-lg-9"},Qae={class:"d-flex justify-content-between align-items-center"},ele={class:"fs-5"},tle={class:"table"},sle={class:"py-2",id:"workplan"},nle={__name:"DevelopmentAssessmentView",setup(t){const e=Ts(),{program:s,assessment:n,goals:i}
78=Qe(e);return(r,o)=>(y(),tt(g$,null,{assessmentMetaInfo:Fe(()=>{var a,c,f;return[u("h1",Kae,P(w(s).name)+": "+P((a=w(n).assessment_period)==null?void 0:a.name)+" Development Assessment",1),u("dl",Gae,[o[0]||(o[0]=u("dt",{class:"col-12 col-sm-6 col-md-4 col-lg-3"},"Advisor(s)",-1)),u("dd",Yae,P((c=w(s).advisors)==null?void 0:c.map(h=>h.full_name).join(", ")),1),o[1]||(o[1]=u("dt",{class:"col-12 col-sm-6 col-md-4 col-lg-3"},"Submitted Date",-1)),u("dd",Zae,P(w(Ro)(w(n).submitted_at,"MM/dd/yyyy")),1),o[2]||(o[2]=u("dt",{class:"col-12 col-sm-6 col-md-4 col-lg-3"},"Current Stage",-1)),u("dd",Xae,P((f=w(n).current_stage)==null?void 0:f.number),1),o[3]||(o[3]=u("dt",{class:"col-12 col-sm-6 col-md-4 col-lg-3"},"Overall Development Score",-1)),u("dd",Jae,P(w(n).overall_score),1)])]}),ratableContent:Fe(()=>[(y(!0),x(G,null,ge(w(i),a=>(y(),x("div",{key:a.id,class:"mb-4 gap-2"},[u("div",Qae,[u("h2",ele,"Goal "+P(a.number)+" "+P(a.description),1)]),u("table",tle,[o[4]||(o[4]=u("thead",null,[u("tr",null,[u("th",{scope:"col"},"Objective"),u("th",{scope:"col"},"PI Score"),u("th",{scope:"col"},"Advisor Score"),u("th",{scope:"col"},"Barrier"),u("th",{scope:"col"},"Focus")])],-1)),u("tbody",null,[(y(!0),x(G,null,ge(a.objectives,(c,f)=>(y(),tt(Bae,{key:"objective_"+c.id,ratable:c,"ratable-type":"objective"},null,8,["ratable"]))),128))])])]))),128)),u("div",sle,[o[5]||(o[5]=u("h2",{class:"fs-4 mb-0"},"Individualized Workplan",-1)),U(_$)])]),_:1}))}},ile={class:"fs-5"},rle={class:"ms-3"},ole={class:"ms-3"},ale={class:"ms-3"},lle={class:"list-unstyled ms-3"},cle={class:"fw-bold"},ule={__name:"VitalityRatableContent",props:{goal:{type:Object,required:!0}},setup(t){const e=t,s=Ts(),{responses:n,assessment:i}=Qe(s),r=te(()=>{const o=s.responses.find(function(a){return a.ratable_type=="goal"&&a.ratable_id==e.goal.id&&a.assessment_id==s.assessment.id});return o??{pi_score:null,advisor_score:null,pi_notes:null,is_barrier:null,focus_on_next_period:null}});return(o,a)=>(y(),x(G,null,[u("h2",ile,"Goal "+P(t.goal.number)+" "+P(t.goal.description),1),u("dl",rle,[a[0]||(a[0]=u("dt",{class:"fs-6 fw-bold"},"PI Score",-1)),u("dd",ole,P(r.value.pi_score??"Â "),1),a[1]||(a[1]=u("dt",{class:"fs-6 fw-bold"},"PI Notes",-1)),u("dd",ale,P(r.value.pi_notes??"Â "),1),a[2]||(a[2]=u("dt",null,[u("span",{class:"fs-6 fw-bold mb-0"},"Objectives")],-1)),u("dd",null,[u("ul",lle,[(y(!0),x(G,null,ge(t.goal.objectives,(c,f)=>(y(),x("li",{key:"objective_"+c.id},[u("span",cle,P(c.number)+":",1),re(" "+P(c.description),1)]))),128))])])])],64))}},dle={class:"fs-4"},fle={class:"row"},hle={class:"col-12 col-sm-6 col-md-8 col-lg-9"},ple={class:"col-12 col-sm-6 col-md-8 col-lg-9"},mle={class:"py-2",id:"workplan"},gle={__name:"VitalityAssessmentView",setup(t){const e=Ts(),{program:s,assessment:n,goals:i}=Qe(e);return(r,o)=>(y(),tt(g$,null,{assessmentMetaInfo:Fe(()=>{var a;return[u("h1",dle,P(w(s).name)+": Semiannual Vitality Assessment",1),u("dl",fle,[o[0]||(o[0]=u("dt",{class:"col-12 col-sm-6 col-md-4 col-lg-3"},"Advisor(s)",-1)),u("dd",hle,P((a=w(s).advisors)==null?void 0:a.map(c=>c.full_name).join(", ")),1),o[1]||(o[1]=u("dt",{class:"col-12 col-sm-6 col-md-4 col-lg-3"},"Submitted Date",-1)),u("dd",ple,P(w(Ro)(w(n).submitted_at,"MM/dd/yyyy")),1)])]}),ratableContent:Fe(()=>[(y(!0),x(G,null,ge(w(i),a=>(y(),x("div",{key:a.id,class:"mb-5 gap-2"},[U(ule,{goal:a},null,8,["goal"])]))),128)),u("div",mle,[o[2]||(o[2]=u("h2",{class:"fs-4 mb-0"},"Individualized Workplan",-1)),U(_$)])]),_:1}))}},_le={__name:"View",setup(t){const e=Ts(),{assessment:s,program:n}=Qe(e),i=te(()=>e.assessment.endeavor.name=="Development"?nle:gle);return(r,o)=>(y(),tt(Kr(i.value)))}},vle={__name:"ConfirmReportRequestModal",props:{show:Boolean},emits:["update:show","confirmed"],setup(t,{emit:e}){const s=e,n=()=>s("update:show",!1),i=()=>{s("confirmed"),n()};return(r,o)=>(y(),tt(Ri,{show:t.show,"onUpdate:show":o[0]||(o[0]=a=>s("update:show",a)),title:"Generate Data Report?",modalId:"generateReportModal"},{footer:Fe(({closeModal:a})=>[u("button",{class:"btn btn-secondary",onClick:n,type:"button"},"Cancel"),u("button",{class:"btn btn-primary",onClickOnce:i,type:"button"},"Confirm",32)]),default:Fe(()=>[o[1]||(o[1]=u("div",{class:"container-fluid"},[u("p",null,"Are you sure you want to generate a Data Report? This may take some time depending on the amount of data.")],-1))]),_:1},8,["show"]))}},ble={class:"container mt-4"},yle={class:"d-flex align-items-center justify-content-between mb-4"},wle={key:0,class:"alert alert-success alert-dismissible fade show d-flex justify-content-between align-items-center",role:"alert"},xle={class:"dropdown"},Sle={class:"dropdown-menu","aria-labelledby":"reportDropdown"},Ele={key:0},Cle={class:"dropdown-header text-uppercase fw-bold"},kle=["onClick"],Ale={key:0,class:"px-2 py-1 rounded-1 bg-warning-subtle text-dark"},$le=["href"],Tle={__name:"ReportList",props:{requests:Array},setup(t){const e=W(!1),s=W(null),n=W(!1),r=W([...t.requests]),o=[{key:"report_name",label:"Report Name"},{key:"requested_by",label:"Requested By"},{key:"created_at",label:"Requested At"},{key:"status",label:"Status"},{key:"download_link",label:"Download",class:"text-nowrap"}],a=[{name:"Development Assessments",slug:"development-assessments",category:"Assessments"},{name:"Vitality Assessments",slug:"vitality-assessments",category:"Assessments"},{name:"Research Clicks",slug:"research-clicks",category:"Activity"},{name:"Toolbox Clicks",slug:"tool-clicks",category:"Activity"},{name:"Toolbox Ratings",slug:"tool-votes",category:"Activity"},{name:"Program Profiles",slug:"program-profiles",category:"Program Data"},{name:"Program Residents",slug:"program-residents",category:"Program Data"},{name:"Users",slug:"users",category:"General"}],c=[...new Set(a.map(C=>C.category))];let f=null;const h=C=>({Complete:"bg-success-subtle",Failed:"bg-danger-subtle"})[C]||"bg-secondary",p=C=>
78{s.value=C,e.value=!0},m=()=>{s.value=null,e.value=!1},_=()=>{n.value=!1},v=async()=>{try{const C=await Lt.post("/portal/api/report-requests",{report_name:s.value.name,report_type:s.value.slug});r.value.unshift(C.data.data),n.value=!0,m(),b(),setTimeout(()=>{_()},5e3)}catch{}},b=()=>{f||(f=setInterval(S,5e3))},S=async()=>{try{const C=r.value.filter(O=>O.status==="In Progress").map(O=>O.id);if(!C.length){f&&(clearInterval(f),f=null);return}for(const O of C){const $=(await Lt.get(`/portal/api/report-requests/${O}/status`)).data,T=r.value.findIndex(D=>D.id===O);T!==-1&&(r.value[T]={...r.value[T],...$})}}catch{}};return(C,O)=>(y(),x("div",ble,[u("div",yle,[O[5]||(O[5]=u("h1",{class:"mb-0"},"Reports",-1)),n.value?(y(),x("div",wle,[O[1]||(O[1]=u("span",null,"Report successfully requested.",-1)),u("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:_})])):ie("",!0),u("div",xle,[O[4]||(O[4]=u("button",{class:"btn btn-outline-secondary dropdown-toggle",type:"button",id:"reportDropdown","data-bs-toggle":"dropdown","aria-expanded":"false"}," Create Report ",-1)),u("ul",Sle,[(y(),x(G,null,ge(c,(A,$)=>(y(),x(G,{key:A},[$>0?(y(),x("li",Ele,O[2]||(O[2]=[u("hr",{class:"dropdown-divider"},null,-1)]))):ie("",!0),u("li",null,[u("h6",Cle,P(A),1)]),(y(!0),x(G,null,ge(a.filter(T=>T.category===A),T=>(y(),x("li",{key:T.slug},[u("button",{class:"dropdown-item d-flex align-items-center",type:"button",onClick:D=>p(T)},[O[3]||(O[3]=u("i",{class:"bi bi-file-earmark-text me-2 text-muted","aria-hidden":"true"},null,-1)),re(" "+P(T.name),1)],8,kle)]))),128))],64))),64))])])]),U(vle,{show:e.value,"onUpdate:show":O[0]||(O[0]=A=>e.value=A),onConfirmed:v},null,8,["show"]),U(t$,{loading:!1,items:r.value,fields:o},{requested_by:Fe(({item:A})=>{var $;return[re(P((($=A.requested_by)==null?void 0:$.full_name)||"â"),1)]}),status:Fe(({item:A})=>[A.status==="In Progress"?(y(),x("span",Ale,O[6]||(O[6]=[u("div",{class:"spinner-border spinner-border-sm",role:"status"},[u("span",{class:"visually-hidden"},"Loading...")],-1),re(" Processing... ")]))):(y(),x("span",{key:1,class:Ve(["px-2 py-1 rounded-1 text-dark",h(A.status)])},P(A.status),3))]),download_link:Fe(({item:A})=>[A.download_link?(y(),x("a",{key:0,href:A.download_link,class:"btn btn-link p-0 d-inline-flex align-items-center",download:""},[O[7]||(O[7]=u("i",{class:"bi bi-download me-2"},null,-1)),re(" Download ("+P(A.download_size)+") ",1)],8,$le)):ie("",!0)]),_:1},8,["items"])]))}},Ole=hi("hospitalAnalyzer",()=>{const t=W([]),e=W(!1),s=W([]),n=W(""),i=W([]);async function r(){e.value=!0;try{const m=await axios.get("/api/center/hospital-analysis-documents");t.value=Array.isArray(m.data.data)?m.data.data:m.data}catch{}finally{e.value=!1}}function o(){i.value=[]}async function a(){try{const m=await axios.get("/portal/api/states");s.value=m.data.data}catch{}}async function c(){try{await axios.post("/portal/api/hospital-document-search",{state:n.value})}catch{}}const f=te(()=>s.value.map(m=>({label:m.name,value:m.abbreviation}))),h=te(()=>n.value?[...new Set(t.value.filter(m=>m.state===n.value).map(m=>m.city))].sort():[]),p=te(()=>{let m=t.value;return n.value&&(m=m.filter(_=>_.state===n.value)),i.value.length&&(m=m.filter(_=>i.value.includes(_.city))),m});return{documents:t,loading:e,states:s,selectedState:n,selectedCities:i,clearCities:o,fetchDocuments:r,fetchStates:a,trackFilterSearch:c,cities:h,filteredDocuments:p,stateOptions:f}}),Mle={key:0,class:"mb-3"},Ple={class:"row mb-4"},Dle={class:"col-sm-6 col-md-4 mb-3",style:{"max-width":"25%"}},Rle=["value"],Ile={class:"d-flex gap-3"},Lle={key:0,class:"d-flex flex-column",style:{width:"25%"}},Nle={class:"flex-column",style:{width:"100%","max-height":"200px","overflow-y":"auto",padding:"0.5rem",border:"1px solid #dee2e6","border-radius":"0.25rem"}},Vle=["id","value"],Fle=["for"],Ble={key:1,class:"table-responsive flex-grow-1"},Ule={key:0,class:"table table-striped table-bordered"},qle=["href","onClick"],Hle={class:"ms-1 text-body"},jle={key:1},Wle={__name:"HospitalAnalyzerList",setup(t){const e=Ole();Ds(()=>{e.fetchDocuments(),e.fetchStates()});async function s(n){try{await Lt.post(`/portal/api/hospital-document-download/${n.id}`)}catch{}}return(n,i)=>(y(),x(G,null,[i[9]||(i[9]=u("h1",{class:"mb-4"},"Hospital Analysis Documents",-1)),w(e).loading?(y(),x("p",Mle,"Fetching documents...")):ie("",!0),u("div",Ple,[u("div",Dle,[i[5]||(i[5]=u("label",{for:"stateSelect",class:"form-label fw-bold"},"State:",-1)),Ge(u("select",{id:"stateSelect",class:"form-select","onUpdate:modelValue":i[0]||(i[0]=r=>w(e).selectedState=r),onChange:i[1]||(i[1]=()=>{w(e).clearCities(),w(e).trackFilterSearch()})},[i[4]||(i[4]=u("option",{value:"",disabled:"",selected:""},"Select a state",-1)),(y(!0),x(G,null,ge(w(e).states,r=>(y(),x("option",{key:r.id,value:r.abbreviation},P(r.name),9,Rle))),128))],544),[[Wn,w(e).selectedState]])]),i[6]||(i[6]=u("div",{class:"col-sm-6 col-md-4 offset-md-4"},[u("div",{class:"alert alert-success"},[re(" For more information on any thing listed in the report, please see the attached "),u("a",{href:"/api/center/hospital-analysis-documents/glossary",download:""}
78,"glossary"),re(". ")])],-1))]),u("div",Ile,[w(e).selectedState&&w(e).cities.length?(y(),x("div",Lle,[i[7]||(i[7]=u("label",{class:"form-label fw-bold"},"City:",-1)),u("div",Nle,[(y(!0),x(G,null,ge(w(e).cities,r=>(y(),x("div",{key:r,class:"mb-1 d-flex align-items-center"},[Ge(u("input",{type:"checkbox",id:r,value:r,"onUpdate:modelValue":i[2]||(i[2]=o=>w(e).selectedCities=o),class:"me-2"},null,8,Vle),[[en,w(e).selectedCities]]),u("label",{for:r},P(r),9,Fle)]))),128))]),w(e).selectedCities.length?(y(),x("button",{key:0,type:"button",class:"btn btn-sm btn-outline-secondary mt-2",onClick:i[3]||(i[3]=(...r)=>w(e).clearCities&&w(e).clearCities(...r))}," Clear Cities ")):ie("",!0)])):ie("",!0),w(e).selectedState?(y(),x("div",Ble,[w(e).filteredDocuments.length?(y(),x("table",Ule,[i[8]||(i[8]=u("thead",{class:"table-light"},[u("tr",null,[u("th",null,"Hospital"),u("th",null,"City"),u("th",null,"State"),u("th",null,"CCN"),u("th",null,"Download")])],-1)),u("tbody",null,[(y(!0),x(G,null,ge(w(e).filteredDocuments,r=>(y(),x("tr",{key:r.id},[u("td",null,P(r.name),1),u("td",null,P(r.city),1),u("td",null,P(r.state),1),u("td",null,P(r.ccn),1),u("td",null,[u("a",{href:`/api/center/hospital-analysis-documents/${r.id}/download`,onClick:o=>s(r),class:"btn btn-link p-0",download:""},[re(P(r.filename)+" ",1),u("span",Hle," ("+P(r.readable_file_size_bytes)+") ",1)],8,qle)])]))),128))])])):(y(),x("p",jle,"No documents to show."))])):ie("",!0)])],64))}},zle={class:"container pt-4"},Kle={class:"row mb-4"},Gle={class:"col-12"},Yle={__name:"HospitalAnalyzer",setup(t){return(e,s)=>(y(),x("div",zle,[u("div",Kle,[u("div",Gle,[U(Wle)])])]))}},Zle={class:"container-md"},Xle={class:"row justify-content-center"},Jle={class:"col-12 col-md-10 col-lg-8 col-xxl-6 bg-white p-5"},Qle={role:"status"},ece={key:0,class:"text-center mt-4"},tce={class:"row"},sce={class:"col-12"},nce={key:0,class:"mt-3"},ice={class:"text-danger"},rce={class:"mb-3 col-8 offset-2"},oce={class:"col-8 offset-2"},ace={class:"d-flex flex-row gap-2"},lce=["disabled","aria-disabled"],cce={__name:"ProgramProfileImport",setup(t){const e=W(null),s=W(!1),n=W(!1),i=W(!1),r=W({}),o=c=>{e.value=c.target.files[0]},a=async()=>{var f;if(!e.value||i.value)return;const c=new FormData;c.append("file",e.value),s.value=!1,n.value=!1,r.value={},i.value=!0;try{await Lt.post("/portal/admin/api/programs/program-profile-import",c,{headers:{"Content-Type":"multipart/form-data"}}),n.value=!0,e.value=null;const h=document.getElementById("file");h&&(h.value="")}catch(h){((f=h.response)==null?void 0:f.status)===422?r.value=h.response.data.errors||{}:r.value={general:["Upload failed. Please try again."]},s.value=!0}finally{i.value=!1,window.scrollTo(0,0)}};return(c,f)=>(y(),x("div",Zle,[u("div",Xle,[u("div",Jle,[f[5]||(f[5]=u("a",{href:"/portal/admin",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to admin dashboard ")],-1)),u("div",Qle,[n.value?(y(),x("div",ece,f[0]||(f[0]=[u("h1",null,[u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"}),re(" File Uploaded")],-1),u("p",{class:"mt-2"},"The program profile records were successfully imported.",-1)]))):ie("",!0)]),f[6]||(f[6]=u("div",{class:"d-flex justify-content-center my-4"},[u("h1",{class:"fs-3"},"Upload Program Profiles Import")],-1)),u("div",tce,[u("div",sce,[U(pr,{errors:r.value,show:s.value},null,8,["errors","show"])]),s.value&&Object.keys(r.value).length?(y(),x("div",nce,[u("ul",ice,[(y(!0),x(G,null,ge(r.value,(h,p)=>(y(),x("li",{key:p},[(y(!0),x(G,null,ge(h,(m,_)=>(y(),x("div",{key:_},P(m),1))),128))]))),128))])])):ie("",!0),u("form",{onSubmit:st(a,["prevent"])},[u("div",rce,[f[1]||(f[1]=u("label",{for:"file",class:"form-label"},"File",-1)),u("input",{type:"file",class:"form-control",id:"file",accept:".xlsx",onChange:o},null,32)]),u("div",oce,[u("div",ace,[u("button",{class:"btn btn-primary w-100",type:"submit",disabled:i.value,"aria-disabled":i.value},[i.value?(y(),x(G,{key:0},[f[2]||(f[2]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),f[3]||(f[3]=re(" Uploading... "))],64)):(y(),x(G,{key:1},[re(" Upload File ")],64))],8,lce)]),f[4]||(f[4]=u("div",{class:"d-flex flex-row gap-2 pt-2"},[u("a",{href:"/portal/admin/api/programs/download-template",class:"bi"},[u("i",{class:"bi","aria-hidden":"true"}),re(" Download Template ")])],-1))])],32)])])])]))}},uce={class:"container-md"},dce={class:"row justify-content-center"},fce={class:"col-12 col-md-10 col-lg-8 col-xxl-6 bg-white p-5"},hce={role:"status"},pce={key:0,class:"text-center mt-4"},mce={class:"row"},gce={class:"col-12"},_ce={key:0,class:"mt-3"},vce={class:"text-danger"},bce={class:"mb-3 col-8 offset-2"},yce={class:"col-8 offset-2"},wce={class:"d-flex flex-row gap-2"},xce=["disabled","aria-disabled"],Sce={__name:"TrainingSiteImport",setup(t){const e=W(null),s=W(!1),n=W(!1),i=W(!1),r=W({}),o=c=>{e.value=c.target.files[0]},a=async()=>{var f;if(!e.value||i.value)return;const c=new FormData;c.append("file",e.value),s.value=!1,n.value=!1,r.value={},i.value=!0;try{await Lt.post("/portal/admin/api/training-sites/training-site-import",c,{headers:{"Content-Type":"multipart/form-data"}}),n.value=!0,e.value=null;const h=document.getElementById("file");h&&(h.value="")}catch(h){if(((f=h.response)==null?void 0:f.status)===422){const p=h.response.data.errors;r.value=Array.isArray(p)?{general:p}:p||{}}else r.value={general:["Upload failed. Please try again."]};s.value=!0}finally{i.value=!1,window.scrollTo(0,0)}};return(c,f)=>(y(),x("div",uce,[u("div",dce,[u("div",fce,[f[5]||(f[5]=u("a",{href:"/portal/admin",class:"align-self-start link-primary"},[u("i",{class:"bi bi-arrow-left","aria-hidden":"true"}),re(" back to admin dashboard ")],-1)),u("div",hce,[n.value?(y(),x("div",pce,f[0]||(f[0]=[u("h1",null,[u("i",{class:"bi bi-check2 text-success","aria-hidden":"true"}),re(" File Uploaded")],-1),u("p",{class:"mt-2"},"The training sites records were successfully imported.",-1)]))):ie("",!0)]),f[6]||(f[6]=u("div",{class:"d-flex justify-content-center my-4"},[u("h1",{class:"fs-3"},"Upload Training Sites Import")],-1)),u("div",mce,[u("div",gce,[U(pr,{errors:r.value,show:s.value},null,8,["errors","show"])]),s.value&&Object.keys(r.value).length?(y(),x("div",_ce,[u("ul",vce,[(y(!0),x(G,null,ge(r.value,(h,p)=>(y(),x("li",{key:p},[(y(!0),x(G,null,ge(h,(m,_)=>(y(),x("div",{key:_},P(m),1))),128))]))),128))])])):ie("",!0),u("form",{onSubmit:st(a,["prevent"])},[u("div",bce,[f[1]||(f[1]=u("label",{for:"file",class:"form-label"},"File",-1)),u("input",{type:"file",class:"form-control",id:"file",accept:".xlsx",onChange:o},null,32)]),u("div",yce,[u("div",wce,[u("button",{class:"btn btn-primary w-100",type:"submit",disabled:i.value,"aria-disabled":i.value},[i.value?(y(),x(G,{key:0},[f[2]||(f[2]=u("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),f[3]||(f[3]=re(" Uploading... "))],64)):(y(),x(G,{key:1},[re(" Upload File ")],64))],8,xce)]),f[4]||(f[4]=u("div",{class:"d-flex flex-row gap-2 pt-2"},[u("a",{href:"/portal/admin/api/training-sites/download-template",class:"bi"},[u("i",{class:"bi","aria-hidden":"true"}),re(" Download Template ")])],-1))])],32)])])])]))}};if(document.getElementById("toolbox-tool-list")){const t=Rt({}),e=$n();t.use(e).component("ToolboxToolList",PU).mount("#toolbox-tool-list")}document.getElementById("user-list")&&Rt({}).component("UserList",Xq).mount("#user-list");document.getElementById("user-edit")&&Rt({}).component("UserEdit",FH).mount("#user-edit");document.getElementById("user-create")&&Rt({}).component("UserCreate",aj).mount("#user-create");document.getElementById("user-password-reset-link")&&Rt({}).component("UserPasswordResetLink",bj).mount("#user-password-reset-link");document.getElementById("cohort-list")&&Rt({}).component("CohortList",Sj).mount("#cohort-list");document.getElementById("cohort-create")&&Rt({}
78).component("CohortCreate",Vj).mount("#cohort-create");document.getElementById("cohort-edit")&&Rt({}).component("CohortEdit",Qj).mount("#cohort-edit");document.getElementById("admin-program-list")&&Rt({}).component("AdminProgramList",iW).mount("#admin-program-list");document.getElementById("program-create")&&Rt({}).component("ProgramCreate",Ez).mount("#program-create");document.getElementById("program-edit")&&Rt({}).component("ProgramEdit",lK).mount("#program-edit");if(document.getElementById("assessment-list")){const t=Rt({}),e=$n();t.use(e).component("AssessmentList",IK).mount("#assessment-list")}document.getElementById("assessment-create")&&Rt({}).component("AssessmentCreate",fG).mount("#assessment-create");document.getElementById("assessment-edit")&&Rt({}).component("AssessmentEdit",TG).mount("#assessment-edit");document.getElementById("portal-program-list")&&Rt({}).component("PortalProgramList",JG).mount("#portal-program-list");if(document.getElementById("portal-program-detail")){const t=Rt({}),e=$n();t.use(e).component("PortalProgramDetail",sre);const s=kt();window.initialAppData&&(s.initializeData(window.initialAppData),delete window.initialAppData),t.mount("#portal-program-detail")}if(document.getElementById("portal-program-assessment-form")){const t=Rt({}),e=$n();t.use(e).component("PortalProgramAssessmentForm",Eae);const s=Ts();window.initialAppData&&(s.initializeData(window.initialAppData),delete window.initialAppData),t.mount("#portal-program-assessment-form")}if(document.getElementById("portal-program-assessment-show")){const t=Rt({}),e=$n();t.use(e).component("AssessmentView",_le);const s=Ts();window.initialAppData&&(s.initializeData(window.initialAppData),delete window.initialAppData),t.mount("#portal-program-assessment-show")}document.getElementById("report-list")&&Rt({}).component("ReportList",Tle).mount("#report-list");if(document.getElementById("hospital-analyzer")){const t=Rt({});t.use($n()),t.component("HospitalAnalyzer",Yle).mount("#hospital-analyzer")}if(document.getElementById("program-profile-import")){const t=Rt({});t.use($n()),t.component("ProgramProfileImport",cce).mount("#program-profile-import")}if(document.getElementById("training-site-import")){const t=Rt({});t.use($n()),t.component("TrainingSiteImport",Sce).mount("#training-site-import")}const Ece={class:"d-flex flex-column gap-2"},Cce=["src","alt"],kce={class:"text-22",style:{"max-width":"80%"}},Ace={__name:"Service",props:{image:{type:String,required:!0},label:{type:String,required:!0}},setup(t){return(e,s)=>(y(),x("div",Ece,[u("img",{src:t.image,class:"img-fluid mb-3",style:{width:"60px",height:"60px","object-fit":"contain"},alt:t.label},null,8,Cce),u("p",kce,P(t.label),1)]))}},$ce={class:"col-12 col-sm-6 col-md-4 col-lg-3"},Tce={class:"card m-4 p-4 bg-f7f7f7"},Oce={class:"card-header border-0 text-center p-0 bg-light d-flex align-items-center justify-content-center",style:{height:"225px"}},Mce=["src","alt"],Pce={__name:"PartnerCard",props:{partner:{type:Object,required:!0}},setup(t){return(e,s)=>(y(),x("div",$ce,[u("div",Tce,[u("div",Oce,[u("img",{class:"img img-fluid m-auto",src:t.partner.logo,alt:t.partner.name,style:{"max-height":"70%","object-fit":"contain","object-position":"center"}},null,8,Mce)])])]))}},Dce={class:"flex-grow-1"},Rce={class:"container-fluid"},Ice={class:"row pt-5 bg-f7f7f7"},Lce={class:"col-md-10 offset-md-1"},Nce={class:"row my-4 row-cols-1 row-cols-sm-2 row-cols-md-4 g-4 mx-auto"},Vce={class:"container-fluid bg-white py-5"},Fce={key:0,class:"row mb-4"},Bce={key:1,class:"row"},Uce={class:"card h-100"},qce={class:"card-header p-0"},Hce=["src","alt"],jce={class:"card-body"},Wce={class:"text-16 mb-0"},zce={key:0},Kce={class:"text-16 mb-0"},Gce={key:2,class:"row bg-light mt-5 py-5"},Yce={key:3,class:"row bg-light"},Zce={class:"card h-100"},Xce={class:"card-header p-0"},Jce=["src","alt"],Qce={class:"card-body"},eue={class:"text-16 mb-0"},tue={key:0},sue={key:0,class:"text-16 mb-0"},nue={key:4,class:"row mt-5 py-5"},iue={key:5,class:"row"},rue={class:"card h-100"},oue={class:"card-header p-0"},aue=["src","alt"],lue={class:"card-body"},cue={class:"text-16 mb-0"},uue={key:0},due={key:6,class:"row bg-light mt-5 py-4"},fue={key:7,class:"row bg-light pb-4"},hue={class:"card h-100"},pue={class:"card-header p-0"},mue=["src","alt"],gue={class:"card-body"},_ue={class:"mb-0"},vue={key:0},bue={class:"row"},yue={class:"col-12"},wue={class:"row row-cols-1 row-cols-sm-2 row-cols-md-4 g-4 px-4"},xue={__name:"About",setup(t){const e=W([]),s=W([]),n=W([]),i=W([]),r=W([]),o=async()=>{try{const f=await axios.get("/api/center/colleagues");e.value=f.data.data,s.value=e.value.filter(h=>h.section==="team"),n.value=e.value.filter(h=>h.section==="advisor"),i.value=e.value.filter(h=>h.section==="content expert"),r.value=e.value.filter(h=>h.section==="hrsa")}catch(f){console.error("Error retrieving colleagues:",f)}},a=[{image:"/images/public/partnerships/iconService1-program.png",label:"New Program Planning"},{image:"/images/public/partnerships/iconService2-Help.png",label:"Help with GME Funding Questions"},{image:"/images/public/partnerships/iconService3-resources.png",label:"Best Practice Resources"},{image:"/images/public/partnerships/iconService4-support.png",label:"GME Office Staff Support"},{image:"/images/public/partnerships/iconService5-info.png",label:"Informational Meetings"},{image:"/images/public/partnerships/iconService6-admin.png",label:"Administration & Accreditation Assistance"},{image:"/images/public/partnerships/iconService7-faculty.png",label:"Faculty Development Support"},{image:"/images/public/partnerships/iconService8-recruit.png",label:"Recruitment & Marketing"}],c=[{name:"Mountain Area Health Education Center (MAHEC)",logo:"/images/public/about-us/partner-logos/mahec.png",url:null},{name:"ECu Brody school of Medicine",logo:"/images/public/about-us/partner-logos/ecu-brody-school-of-medicine.png",url:null},{name:"UNC Cecil G Sheps Center for Health Services Research",logo:"/images/public/about-us/partner-logos/Sheps.png",url:null},{name:"NC Health Workforce",logo:"/images/public/about-us/partner-logos/nc-health-workforce.png",url:null},{name:"UNC Health",logo:"/images/public/about-us/partner-logos/unc-health.png",url:null},{name:"ECU Health",logo:"/images/public/about-us/partner-logos/ecu-health-vertical.png",url:null},{name:"UNC School of Medicine",logo:"/images/public/about-us/partner-logos/unc-som-vertical.png",url:null},{name:"SEAHEC",logo:"/images/public/about-us/partner-logos/seahec.jpg",url:null},{name:"ShepsGME",logo:"/images/public/about-us/partner-logos/sheps_gme_logo_vertical.svg",url:null}];return Ds(()=>{o()}),(f,h)=>(y(),x("main",Dce,[u("div",Rce,[h[5]||(h[5]=ci('<div class="row pt-5"><div class="col-md-10 offset-md-1"><h1 class="text-raleway fw-bold">About</h1><p class="text-22">North Carolina has a persistent gap in the physician workforce between urban and rural areas as well as maldistribution of the workforce within urban areas.</p><p class="fw-bold text-22">NCGME provides technical assistance to organizations looking to build, expand, and sustain residency programs in rural and underserved areas, and facilitates collaborations across training sites that wish to
78support residency training.</p><div class="row align-items-center my-5"><div class="col-md-5 mb-4 mb-md-0 text-center text-md-start"><img src="/images/public/about-us/imgAbout.png" alt="Description of image" class="img-fluid"></div><div class="col-md-5 offset-md-1"><h2 class="fw-bold text-raleway mb-3">Our Vision and Mission</h2><p class="text-22">Our vision is that all North Carolina communities will have access to the high-quality medical care that they need as close to home as possible. To realize this vision, our mission is to support training in communities that currently lack sufficient access to care with the goal of retaining trainees as clinicians following their graduation.</p></div></div></div></div>',1)),u("div",Ice,[u("div",Lce,[h[0]||(h[0]=u("h2",{class:"text-raleway fw-bold"},"Services include:",-1)),u("div",Nce,[(y(),x(G,null,ge(a,(p,m)=>u("div",{key:m,class:"col"},[U(Ace,{image:p.image,label:p.label},null,8,["image","label"])])),64))])])]),u("div",Vce,[s.value.length?(y(),x("div",Fce,h[1]||(h[1]=[u("div",{class:"col"},[u("h1",{class:"public"},"Team")],-1)]))):ie("",!0),s.value.length?(y(),x("div",Bce,[(y(!0),x(G,null,ge(s.value,p=>(y(),x("div",{key:p.id,class:"col-12 col-sm-6 col-md-4 col-lg-3 mb-5 px-4"},[u("div",Uce,[u("div",qce,[u("img",{class:"img-fluid w-100 px-3 py-2",src:p.image_path,alt:`Headshot of ${p.first_name} ${p.last_name}`},null,8,Hce)]),u("div",jce,[u("p",Wce,[u("span",null,P(p.first_name)+" "+P(p.last_name),1),p.credentials?(y(),x("span",zce,", "+P(p.credentials),1)):ie("",!0)]),u("p",Kce,P(p.position),1)])])]))),128))])):ie("",!0),n.value.length?(y(),x("div",Gce,h[2]||(h[2]=[u("div",{class:"col"},[u("h1",{class:"public mb-0"},"Advisors")],-1)]))):ie("",!0),n.value.length?(y(),x("div",Yce,[(y(!0),x(G,null,ge(n.value,p=>(y(),x("div",{key:p.id,class:"col-12 col-sm-6 col-md-4 col-lg-3 mb-5 px-4"},[u("div",Zce,[u("div",Xce,[u("img",{class:"img-fluid w-100 px-3 py-2",src:p.image_path,alt:`Headshot of ${p.first_name} ${p.last_name}`},null,8,Jce)]),u("div",Qce,[u("p",eue,[u("span",null,P(p.first_name)+" "+P(p.last_name),1),p.credentials?(y(),x("span",tue,", "+P(p.credentials),1)):ie("",!0)]),p.position?(y(),x("p",sue,P(p.position),1)):ie("",!0)])])]))),128))])):ie("",!0),i.value.length?(y(),x("div",nue,h[3]||(h[3]=[u("div",{class:"col"},[u("h1",{class:"public mb-0"},"Content Experts")],-1)]))):ie("",!0),i.value.length?(y(),x("div",iue,[(y(!0),x(G,null,ge(i.value,p=>(y(),x("div",{key:p.id,class:"col-12 col-sm-6 col-md-4 col-lg-3 mb-5 px-4"},[u("div",rue,[u("div",oue,[u("img",{class:"img-fluid w-100 px-3 py-2",src:p.image_path,alt:`Headshot of ${p.first_name} ${p.last_name}`},null,8,aue)]),u("div",lue,[u("p",cue,[u("span",null,P(p.first_name)+" "+P(p.last_name),1),p.credentials?(y(),x("span",uue,", "+P(p.credentials),1)):ie("",!0)])])])]))),128))])):ie("",!0),r.value.length?(y(),x("div",due,h[4]||(h[4]=[u("div",{class:"col"},[u("h1",{class:"public mb-0"},"HRSA")],-1)]))):ie("",!0),r.value.length?(y(),x("div",fue,[(y(!0),x(G,null,ge(r.value,p=>(y(),x("div",{key:p.id,class:"col-12 col-sm-6 col-md-4 col-lg-3 mb-5 px-4"},[u("div",hue,[u("div",pue,[u("img",{class:"img-fluid w-100 px-3 py-2",src:p.image_path,alt:`Headshot of ${p.first_name} ${p.last_name}`},null,8,mue)]),u("div",gue,[u("p",_ue,[u("span",null,P(p.first_name)+" "+P(p.last_name),1),p.credentials?(y(),x("span",vue,", "+P(p.credentials),1)):ie("",!0)])])])]))),128))])):ie("",!0)]),h[6]||(h[6]=u("div",{class:"row mt-5 py-5"},[u("div",{class:"col"},[u("h1",{class:"public mb-0"},"Partners")])],-1)),u("div",bue,[u("div",yue,[u("div",wue,[(y(),x(G,null,ge(c,p=>U(Pce,{key:p.name,partner:p},null,8,["partner"])),64))])])])])]))}};/*! 79 * @kurkle/color v0.3.4 80 * https://github.com/kurkle/color#readme 81 * (c) 2024 Jukka Kurkela 82 * Released under the MIT License 83 */function wd(t){return t+.5|0}const wo=(t,e,s)=>Math.max(Math.min(t,s),e);function uu(t){return wo(wd(t*2.55),0,255)}function $o(t){return wo(wd(t*255),0,255)}function Lr(t){return wo(wd(t/2.55)/100,0,1)}function Y2(t){return wo(wd(t*100),0,100)}const xi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Bv=[..."0123456789ABCDEF"],Sue=t=>Bv[t&15],Eue=t=>Bv[(t&240)>>4]+Bv[t&15],Xf=t=>(t&240)>>4===(t&15),Cue=t=>Xf(t.r)&&Xf(t.g)&&Xf(t.b)&&Xf(t.a);function kue(t){var e=t.length,s;return t[0]==="#"&&(e===4||e===5?s={r:255&xi[t[1]]*17,g:255&xi[t[2]]*17,b:255&xi[t[3]]*17,a:e===5?xi[t[4]]*17:255}:(e===7||e===9)&&(s={r:xi[t[1]]<<4|xi[t[2]],g:xi[t[3]]<<4|xi[t[4]],b:xi[t[5]]<<4|xi[t[6]],a:e===9?xi[t[7]]<<4|xi[t[8]]:255})),s}const Aue=(t,e)=>t<255?e(t):"";function $ue(t){var e=Cue(t)?Sue:Eue;return t?"#"+e(t.r)+e(t.g)+e(t.b)+Aue(t.a,e):void 0}const Tue=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function v$(t,e,s){const n=e*Math.min(s,1-s),i=(r,o=(r+t/30)%12)=>s-n*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function Oue(t,e,s){const n=(i,r=(i+t/60)%6)=>s-s*e*Math.max(Math.min(r,4-r,1),0);return[n(5),n(3),n(1)]}function Mue(t,e,s){const n=v$(t,1,.5);let i;for(e+s>1&&(i=1/(e+s),e*=i,s*=i),i=0;i<3;i++)n[i]*=1-e-s,n[i]+=e;return n}function Pue(t,e,s,n,i){return t===i?(e-s)/n+(e<s?6:0):e===i?(s-t)/n+2:(t-e)/n+4}function $y(t){const s=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(s,n,i),o=Math.min(s,n,i),a=(r+o)/2;let c,f,h;return r!==o&&(h=r-o,f=a>.5?h/(2-r-o):h/(r+o),c=Pue(s,n,i,h,r),c=c*60+.5),[c|0,f||0,a]}function Ty(t,e,s,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,s,n)).map($o)}function Oy(t,e,s){return Ty(v$,t,e,s)}function Due(t,e,s){return Ty(Mue,t,e,s)}function Rue(t,e,s){return Ty(Oue,t,e,s)}function b$(t){return(t%360+360)%360}function Iue(t){const e=Tue.exec(t);let s=255,n;if(!e)return;e[5]!==n&&(s=e[6]?uu(+e[5]):$o(+e[5]));const i=b$(+e[2]),r=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?n=Due(i,r,o):e[1]==="hsv"?n=Rue(i,r,o):n=Oy(i,r,o),{r:n[0],g:n[1],b:n[2],a:s}}function Lue(t,e){var s=$y(t);s[0]=b$(s[0]+e),s=Oy(s),t.r=s[0],t.g=s[1],t.b=s[2]}function Nue(t){if(!t)return;const e=$y(t),s=e[0],n=Y2(e[1]),i=Y2(e[2]);return t.a<255?`hsla(${s}, ${n}%, ${i}%, ${Lr(t.a)})`:`hsl(${s}, ${n}%, ${i}%)`}const Z2={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},X2={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
vendor: 5,205 bytes, lines 83-88
83ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Vue(){const t={},e=Object.keys(X2),s=Object.keys(Z2);let n,i,r,o,a;for(n=0;n<e.length;n++){for(o=a=e[n],i=0;i<s.length;i++)r=s[i],a=a.replace(r,Z2[r]);r=parseInt(X2[o],16),t[a]=[r>>16&255,r>>8&255,r&255]}return t}let Jf;function Fue(t){Jf||(Jf=Vue(),Jf.transparent=[0,0,0,0]);const e=Jf[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Bue=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Uue(t){const e=Bue.exec(t);let s=255,n,i,r;if(e){if(e[7]!==n){const o=+e[7];s=e[8]?uu(o):wo(o*255,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?uu(n):wo(n,0,255)),i=255&(e[4]?uu(i):wo(i,0,255)),r=255&(e[6]?uu(r):wo(r,0,255)),{r:n,g:i,b:r,a:s}}}function que(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Lr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const H_=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,wl=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Hue(t,e,s){const n=wl(Lr(t.r)),i=wl(Lr(t.g)),r=wl(Lr(t.b));return{r:$o(H_(n+s*(wl(Lr(e.r))-n))),g:$o(H_(i+s*(wl(Lr(e.g))-i))),b:$o(H_(r+s*(wl(Lr(e.b))-r))),a:t.a+s*(e.a-t.a)}}function Qf(t,e,s){if(t){let n=$y(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*s,e===0?360:1)),n=Oy(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function y$(t,e){return t&&Object.assign(e||{},t)}function J2(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=$o(t[3]))):(e=y$(t,{r:0,g:0,b:0,a:1}),e.a=$o(e.a)),e}function jue(t){return t.charAt(0)==="r"?Uue(t):Iue(t)}class Zu{constructor(e){if(e instanceof Zu)return e;const s=typeof e;let n;s==="object"?n=J2(e):s==="string"&&(n=kue(e)||Fue(e)||jue(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=y$(this._rgb);return e&&(e.a=Lr(e.a)),e}set rgb(e){this._rgb=J2(e)}rgbString(){return this._valid?que(this._rgb):void 0}hexString(){return this._valid?$ue(this._rgb):void 0}hslString(){return this._valid?Nue(this._rgb):void 0}mix(e,s){if(e){const n=this.rgb,i=e.rgb;let r;const o=s===r?.5:s,a=2*o-1,c=n.a-i.a,f=((a*c===-1?a:(a+c)/(1+a*c))+1)/2;r=1-f,n.r=255&f*n.r+r*i.r+.5,n.g=255&f*n.g+r*i.g+.5,n.b=255&f*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(e,s){return e&&(this._rgb=Hue(this._rgb,e._rgb,s)),this}clone(){return new Zu(this.rgb)}alpha(e){return this._rgb.a=$o(e),this}clearer(e){const s=this._rgb;return s.a*=1-e,this}greyscale(){const e=this._rgb,s=wd(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=s,this}opaquer(e){const s=this._rgb;return s.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Qf(this._rgb,2,e),this}darken(e){return Qf(this._rgb,2,-e),this}saturate(e){return Qf(this._rgb,1,e),this}desaturate(e){return Qf(this._rgb,1,-e),this}rotate(e){return Lue(this._rgb,e),this}}/*! 84 * Chart.js v4.5.1 85 * https://www.chartjs.org 86 * (c) 2025 Chart.js Contributors 87 * Released under the MIT License 88 */function Mr(){}const Wue=(()=>{let t=0;return()=>t++})();function hn(t){return t==null}function Js(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);
vendor: 44,632 bytes, lines 88-93
88return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function qt(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Yr(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function tr(t,e){return Yr(t)?t:e}function Jt(t,e){return typeof t>"u"?e:t}const zue=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,w$=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function cs(t,e,s){if(t&&typeof t.call=="function")return t.apply(s,e)}function Xt(t,e,s,n){let i,r,o;if(Js(t))for(r=t.length,i=0;i<r;i++)e.call(s,t[i],i);else if(qt(t))for(o=Object.keys(t),r=o.length,i=0;i<r;i++)e.call(s,t[o[i]],o[i])}function rp(t,e){let s,n,i,r;if(!t||!e||t.length!==e.length)return!1;for(s=0,n=t.length;s<n;++s)if(i=t[s],r=e[s],i.datasetIndex!==r.datasetIndex||i.index!==r.index)return!1;return!0}function op(t){if(Js(t))return t.map(op);if(qt(t)){const e=Object.create(null),s=Object.keys(t),n=s.length;let i=0;for(;i<n;++i)e[s[i]]=op(t[s[i]]);return e}return t}function x$(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function Kue(t,e,s,n){if(!x$(t))return;const i=e[t],r=s[t];qt(i)&&qt(r)?Xu(i,r,n):e[t]=op(r)}function Xu(t,e,s){const n=Js(e)?e:[e],i=n.length;if(!qt(t))return t;s=s||{};const r=s.merger||Kue;let o;for(let a=0;a<i;++a){if(o=n[a],!qt(o))continue;const c=Object.keys(o);for(let f=0,h=c.length;f<h;++f)r(c[f],t,o,s)}return t}function Au(t,e){return Xu(t,e,{merger:Gue})}function Gue(t,e,s){if(!x$(t))return;const n=e[t],i=s[t];qt(n)&&qt(i)?Au(n,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=op(i))}const Q2={"":t=>t,x:t=>t.x,y:t=>t.y};function Yue(t){const e=t.split("."),s=[];let n="";for(const i of e)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(s.push(n),n="");return s}function Zue(t){const e=Yue(t);return s=>{for(const n of e){if(n==="")break;s=s&&s[n]}return s}}function Ju(t,e){return(Q2[e]||(Q2[e]=Zue(e)))(t)}function My(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ap=t=>typeof t<"u",Io=t=>typeof t=="function",ex=(t,e)=>{if(t.size!==e.size)return!1;for(const s of t)if(!e.has(s))return!1;return!0};function Xue(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const us=Math.PI,Ms=2*us,lp=Number.POSITIVE_INFINITY,Jue=us/180,qs=us/2,oa=us/4,tx=us*2/3,sx=Math.sign;function Que(t){const e=[],s=Math.sqrt(t);let n;for(n=1;n<s;n++)t%n===0&&(e.push(n),e.push(t/n));return s===(s|0)&&e.push(s),e.sort((i,r)=>i-r).pop(),e}function ede(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function cp(t){return!ede(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function _a(t){return t*(us/180)}function tde(t){return t*(180/us)}function S$(t,e){const s=e.x-t.x,n=e.y-t.y,i=Math.sqrt(s*s+n*n);let r=Math.atan2(n,s);return r<-.5*us&&(r+=Ms),{angle:r,distance:i}}function sde(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ar(t){return(t%Ms+Ms)%Ms}function up(t,e,s,n){const i=ar(t),r=ar(e),o=ar(s),a=ar(r-i),c=ar(o-i),f=ar(i-r),h=ar(i-o);return i===r||i===o||n&&r===o||a>c&&f<h}function Ci(t,e,s){return Math.max(e,Math.min(s,t))}function nde(t){return Ci(t,-32768,32767)}function du(t,e,s,n=1e-6){return t>=Math.min(e,s)-n&&t<=Math.max(e,s)+n}function Py(t,e,s){s=s||(o=>t[o]<e);let n=t.length-1,i=0,r;for(;n-i>1;)r=i+n>>1,s(r)?i=r:n=r;return{lo:i,hi:n}}const Uv=(t,e,s,n)=>Py(t,s,n?i=>{const r=t[i][e];return r<s||r===s&&t[i+1][e]===s}:i=>t[i][e]<s),ide=(t,e,s)=>Py(t,s,n=>t[n][e]>=s);function rde(t,e,s){let n=0,i=t.length;for(;n<i&&t[n]<e;)n++;for(;i>n&&t[i-1]>s;)i--;return n>0||i<t.length?t.slice(n,i):t}const E$=["push","pop","shift","splice","unshift"];function ode(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),E$.forEach(s=>{const n="_onData"+My(s),i=t[s];Object.defineProperty(t,s,{configurable:!0,enumerable:!1,value(...r){const o=i.apply(this,r);return t._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...r)}),o}})})}function nx(t,e){const s=t._chartjs;if(!s)return;const n=s.listeners,i=n.indexOf(e);i!==-1&&n.splice(i,1),!(n.length>0)&&(E$.forEach(r=>{delete t[r]}),delete t._chartjs)}function ade(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const C$=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function k$(t,e){let s=[],n=!1;return function(...i){s=i,n||(n=!0,C$.call(window,()=>{n=!1,t.apply(e,s)}))}}function lde(t,e){let s;return function(...n){return e?(clearTimeout(s),s=setTimeout(t,e,n)):t.apply(this,n),e}}const A$=t=>t==="start"?"left":t==="end"?"right":"center",si=(t,e,s)=>t==="start"?e:t==="end"?s:(e+s)/2,cde=(t,e,s,n)=>t===(n?"left":"right")?s:t==="center"?(e+s)/2:e,eh=t=>t===0||t===1,ix=(t,e,s)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ms/s)),rx=(t,e,s)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ms/s)+1,$u={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*qs)+1,easeOutSine:t=>Math.sin(t*qs),easeInOutSine:t=>-.5*(Math.cos(us*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>eh(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>eh(t)?t:ix(t,.075,.3),easeOutElastic:t=>eh(t)?t:rx(t,.075,.3),easeInOutElastic(t){return eh(t)?t:t<.5?.5*ix(t*2,.1125,.45):.5+.5*rx(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-$u.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?$u.easeInBounce(t*2)*.5:$u.easeOutBounce(t*2-1)*.5+.5};function $$(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function ox(t){return $$(t)?t:new Zu(t)}function j_(t){return $$(t)?t:new Zu(t).saturate(.5).darken(.1).hexString()}const ude=["x","y","borderWidth","radius","tension"],dde=["color","borderColor","backgroundColor"];function fde(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:dde},numbers:{type:"number",properties:ude}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function hde(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const ax=new Map;function pde(t,e){e=e||{};const s=t+JSON.stringify(e);let n=ax.get(s);return n||(n=new Intl.NumberFormat(t,e),ax.set(s,n)),n}function mde(t,e,s){return pde(e,s).format(t)}const gde={values(t){return Js(t)?t:""+t}};var _de={formatters:gde};function vde(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,s)=>s.lineWidth,tickColor:(e,s)=>s.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:_de.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const La=Object.create(null),qv=Object.create(null);function Tu(t,e){if(!e)return t;const s=e.split(".");for(let n=0,i=s.length;n<i;++n){const r=s[n];t=t[r]||(t[r]=Object.create(null))}return t}function W_(t,e,s){return typeof e=="string"?Xu(Tu(t,e),s):Xu(Tu(t,""),e)}class bde{constructor(e,s){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>j_(i.backgroundColor),this.hoverBorderColor=(n,i)=>j_(i.borderColor),this.hoverColor=(n,i)=>j_(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(s)}set(e,s){return W_(this,e,s)}get(e){return Tu(this,e)}describe(e,s){return W_(qv,e,s)}override(e,s){return W_(La,e,s)}route(e,s,n,i){const r=Tu(this,e),o=Tu(this,n),a="_"+s;Object.defineProperties(r,{[a]:{value:r[s],writable:!0},[s]:{enumerable:!0,get(){const c=this[a],f=o[i];return qt(c)?Object.assign({},f,c):Jt(c,f)},set(c){this[a]=c}}})}apply(e){e.forEach(s=>s(this))}}var $s=new bde({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[fde,hde,vde]);function yde(t){return!t||hn(t.size)||hn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function lx(t,e,s,n,i){let r=e[i];return r||(r=e[i]=t.measureText(i).width,s.push(i)),r>n&&(n=r),n}function aa(t,e,s){const n=t.currentDevicePixelRatio,i=s!==0?Math.max(s/2,.5):0;return Math.round((e-i)*n)/n+i}function cx(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ux(t,e,s,n){T$(t,e,s,n,null)}function T$(t,e,s,n,i){let r,o,a,c,f,h,p,m;const _=e.pointStyle,v=e.rotation,b=e.radius;let S=(v||0)*Jue;if(_&&typeof _=="object"&&(r=_.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){t.save(),t.translate(s,n),t.rotate(S),t.drawImage(_,-_.width/2,-_.height/2,_.width,_.height),t.restore();return}if(!(isNaN(b)||b<=0)){switch(t.beginPath(),_){default:i?t.ellipse(s,n,i/2,b,0,0,Ms):t.arc(s,n,b,0,Ms),t.closePath();break;case"triangle":h=i?i/2:b,t.moveTo(s+Math.sin(S)*h,n-Math.cos(S)*b),S+=tx,t.lineTo(s+Math.sin(S)*h,n-Math.cos(S)*b),S+=tx,t.lineTo(s+Math.sin(S)*h,n-Math.cos(S)*b),t.closePath();break;case"rectRounded":f=b*.516,c=b-f,o=Math.cos(S+oa)*c,p=Math.cos(S+oa)*(i?i/2-f:c),a=Math.sin(S+oa)*c,m=Math.sin(S+oa)*(i?i/2-f:c),t.arc(s-p,n-a,f,S-us,S-qs),t.arc(s+m,n-o,f,S-qs,S),t.arc(s+p,n+a,f,S,S+qs),t.arc(s-m,n+o,f,S+qs,S+us),t.closePath();break;case"rect":if(!v){c=Math.SQRT1_2*b,h=i?i/2:c,t.rect(s-h,n-c,2*h,2*c);break}S+=oa;case"rectRot":p=Math.cos(S)*(i?i/2:b),o=Math.cos(S)*b,a=Math.sin(S)*b,m=Math.sin(S)*(i?i/2:b),t.moveTo(s-p,n-a),t.lineTo(s+m,n-o),t.lineTo(s+p,n+a),t.lineTo(s-m,n+o),t.closePath();break;case"crossRot":S+=oa;case"cross":p=Math.cos(S)*(i?i/2:b),o=Math.cos(S)*b,a=Math.sin(S)*b,m=Math.sin(S)*(i?i/2:b),t.moveTo(s-p,n-a),t.lineTo(s+p,n+a),t.moveTo(s+m,n-o),t.lineTo(s-m,n+o);break;case"star":p=Math.cos(S)*(i?i/2:b),o=Math.cos(S)*b,a=Math.sin(S)*b,m=Math.sin(S)*(i?i/2:b),t.moveTo(s-p,n-a),t.lineTo(s+p,n+a),t.moveTo(s+m,n-o),t.lineTo(s-m,n+o),S+=oa,p=Math.cos(S)*(i?i/2:b),o=Math.cos(S)*b,a=Math.sin(S)*b,m=Math.sin(S)*(i?i/2:b),t.moveTo(s-p,n-a),t.lineTo(s+p,n+a),t.moveTo(s+m,n-o),t.lineTo(s-m,n+o);break;case"line":o=i?i/2:Math.cos(S)*b,a=Math.sin(S)*b,t.moveTo(s-o,n-a),t.lineTo(s+o,n+a);break;case"dash":t.moveTo(s,n),t.lineTo(s+Math.cos(S)*(i?i/2:b),n+Math.sin(S)*b);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function O$(t,e,s){return s=s||.5,!e||t&&t.x>e.left-s&&t.x<e.right+s&&t.y>e.top-s&&t.y<e.bottom+s}function Dy(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ry(t){t.restore()}function wde(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),hn(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function xde(t,e,s,n,i){if(i.strikethrough||i.underline){const r=t.measureText(n),o=e-r.actualBoundingBoxLeft,a=e+r.actualBoundingBoxRight,c=s-r.actualBoundingBoxAscent,f=s+r.actualBoundingBoxDescent,h=i.strikethrough?(c+f)/2:f;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(o,h),t.lineTo(a,h),t.stroke()}}function Sde(t,e){const s=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=s}function dp(t,e,s,n,i,r={}){const o=Js(e)?e:[e],a=r.strokeWidth>0&&r.strokeColor!=="";let c,f;for(t.save(),t.font=i.string,wde(t,r),c=0;c<o.length;++c)f=o[c],r.backdrop&&Sde(t,r.backdrop),a&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),hn(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(f,s,n,r.maxWidth)),t.fillText(f,s,n,r.maxWidth),xde(t,s,n,f,r),n+=Number(i.lineHeight);t.restore()}function Hv(t,e){const{x:s,y:n,w:i,h:r,radius:o}=e;t.arc(s+o.topLeft,n+o.topLeft,o.topLeft,1.5*us,us,!0),t.lineTo(s,n+r-o.bottomLeft),t.arc(s+o.bottomLeft,n+r-o.bottomLeft,o.bottomLeft,us,qs,!0),t.lineTo(s+i-o.bottomRight,n+r),t.arc(s+i-o.bottomRight,n+r-o.bottomRight,o.bottomRight,qs,0,!0),t.lineTo(s+i,n+o.topRight),t.arc(s+i-o.topRight,n+o.topRight,o.topRight,0,-qs,!0),t.lineTo(s+o.topLeft,n)}const Ede=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Cde=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function kde(t,e){const s=(""+t).match(Ede);if(!s||s[1]==="normal")return e*1.2;switch(t=+s[2],s[3]){case"px":return t;case"%":t/=100;break}return e*t}const Ade=t=>+t||0;function Iy(t,e){const s={},n=qt(e),i=n?Object.keys(e):e,r=qt(t)?n?o=>Jt(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of i)s[o]=Ade(r(o));return s}function $de(t){return Iy(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ou(t){return Iy(t,["topLeft","topRight","bottomLeft","bottomRight"])}function zi(t){const e=$de(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Kn(t,e){t=t||{},e=e||$s.font;let s=Jt(t.size,e.size);typeof s=="string"&&(s=parseInt(s,10));let n=Jt(t.style,e.style);n&&!(""+n).match(Cde)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:Jt(t.family,e.family),lineHeight:kde(Jt(t.lineHeight,e.lineHeight),s),size:s,style:n,weight:Jt(t.weight,e.weight),string:""};return i.string=yde(i),i}function th(t,e,s,n){let i,r,o;for(i=0,r=t.length;i<r;++i)if(o=t[i],o!==void 0&&o!==void 0)return o}function Tde(t,e,s){const{min:n,max:i}=t,r=w$(e,(i-n)/2),o=(a,c)=>s&&a===0?0:a+c;return{min:o(n,-Math.abs(r)),max:o(i,r)}}function ac(t,e){return Object.assign(Object.create(t),e)}function Ly(t,e=[""],s,n,i=()=>t[0]){const r=s||t;typeof n>"u"&&(n=R$("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:n,_getTarget:i,override:a=>Ly([a,...t],e,r,n)};return new Proxy(o,{deleteProperty(a,c){return delete a[c],delete a._keys,delete t[0][c],!0},get(a,c){return P$(a,c,()=>Nde(c,e,t,a))},getOwnPropertyDescriptor(a,c){return Reflect.getOwnPropertyDescriptor(a._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,c){return fx(a).includes(c)},ownKeys(a){return fx(a)},set(a,c,f){const h=a._storage||(a._storage=i());return a[c]=h[c]=f,delete a._keys,!0}})}function ec(t,e,s,n){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:s,_stack:new Set,_descriptors:M$(t,n),setContext:r=>ec(t,r,s,n),override:r=>ec(t.override(r),e,s,n)};return new Proxy(i,{deleteProperty(r,o){return delete r[o],delete t[o],!0},get(r,o,a){return P$(r,o,()=>Mde(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(r,o,a){return t[o]=a,delete r[o],!0}})}function M$(t,e={scriptable:!0,indexable:!0}){const{_scriptable:s=e.scriptable,_indexable:n=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:s,indexable:n,isScriptable:Io(s)?s:()=>s,isIndexable:Io(n)?n:()=>n}}const Ode=(t,e)=>t?t+My(e):e,Ny=(t,e)=>qt(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function P$(t,e,s){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const n=s();return t[e]=n,n}function Mde(t,e,s){const{_proxy:n,_context:i,_subProxy:r,_descriptors:o}=t;let a=n[e];return Io(a)&&o.isScriptable(e)&&(a=Pde(e,a,t,s)),Js(a)&&a.length&&(a=Dde(e,a,t,o.isIndexable)),Ny(e,a)&&(a=ec(a,i,r&&r[e],o)),a}function Pde(t,e,s,n){const{_proxy:i,_context:r,_subProxy:o,_stack:a}=s;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let c=e(r,o||n);return a.delete(t),Ny(t,c)&&(c=Vy(i._scopes,i,t,c)),c}function Dde(t,e,s,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=s;if(typeof r.index<"u"&&n(t))return e[r.index%e.length];if(qt(e[0])){const c=e,f=i._scopes.filter(h=>h!==c);e=[];for(const h of c){const p=Vy(f,i,t,h);e.push(ec(p,r,o&&o[t],a))}}return e}function D$(t,e,s){return Io(t)?t(e,s):t}const Rde=(t,e)=>t===!0?e:typeof t=="string"?Ju(e,t):void 0;function Ide(t,e,s,n,i){for(const r of e){const o=Rde(s,r);if(o){t.add(o);const a=D$(o._fallback,s,i);if(typeof a<"u"&&a!==s&&a!==n)return a}else if(o===!1&&typeof n<"u"&&s!==n)return null}return!1}function Vy(t,e,s,n){const i=e._rootScopes,r=D$(e._fallback,s,n),o=[...t,...i],a=new Set;a.add(n);let c=dx(a,o,s,r||s,n);return c===null||typeof r<"u"&&r!==s&&(c=dx(a,o,r,c,n),c===null)?!1:Ly(Array.from(a),[""],i,r,()=>Lde(e,s,n))}function dx(t,e,s,n,i){for(;s;)s=Ide(t,e,s,n,i);return s}function Lde(t,e,s){const n=t._getTarget();e in n||(n[e]={});const i=n[e];return Js(i)&&qt(s)?s:i||{}}function Nde(t,e,s,n){let i;for(const r of e)if(i=R$(Ode(r,t),s),typeof i<"u")return Ny(t,i)?Vy(s,n,t,i):i}function R$(t,e){for(const s of e){if(!s)continue;const n=s[t];if(typeof n<"u")return n}}function fx(t){let e=t._keys;return e||(e=t._keys=Vde(t._scopes)),e}function Vde(t){const e=new Set;for(const s of t)for(const n of Object.keys(s).filter(i=>!i.startsWith("_")))e.add(n);return Array.from(e)}function Fy(){return typeof window<"u"&&typeof document<"u"}function By(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function fp(t,e,s){let n;return typeof t=="string"?(n=parseInt(t,10),t.indexOf("%")!==-1&&(n=n/100*e.parentNode[s])):n=t,n}const fm=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function Fde(t,e){return fm(t).getPropertyValue(e)}const Bde=["top","right","bottom","left"];function ka(t,e,s){const n={};s=s?"-"+s:"";for(let i=0;i<4;i++){const r=Bde[i];n[r]=parseFloat(t[e+"-"+r+s])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const Ude=(t,e,s)=>(t>0||e>0)&&(!s||!s.shadowRoot);function qde(t,e){const s=t.touches,n=s&&s.length?s[0]:t,{offsetX:i,offsetY:r}=n;let o=!1,a,c;if(Ude(i,r,t.target))a=i,c=r;else{const f=e.getBoundingClientRect();a=n.clientX-f.left,c=n.clientY-f.top,o=!0}return{x:a,y:c,box:o}}function da(t,e){if("native"in t)return t;const{canvas:s,currentDevicePixelRatio:n}=e,i=fm(s),r=i.boxSizing==="border-box",o=ka(i,"padding"),a=ka(i,"border","width"),{x:c,y:f,box:h}=qde(t,s),p=o.left+(h&&a.left),m=o.top+(h&&a.top);let{width:_,height:v}=e;return r&&(_-=o.width+a.width,v-=o.height+a.height),{x:Math.round((c-p)/_*s.width/n),y:Math.round((f-m)/v*s.height/n)}}function Hde(t,e,s){let n,i;if(e===void 0||s===void 0){const r=t&&By(t);if(!r)e=t.clientWidth,s=t.clientHeight;else{const o=r.getBoundingClientRect(),a=fm(r),c=ka(a,"border","width"),f=ka(a,"padding");e=o.width-f.width-c.width,s=o.height-f.height-c.height,n=fp(a.maxWidth,r,"clientWidth"),i=fp(a.maxHeight,r,"clientHeight")}}return{width:e,height:s,maxWidth:n||lp,maxHeight:i||lp}}const xo=t=>Math.round(t*10)/10;function jde(t,e,s,n){const i=fm(t),r=ka(i,"margin"),o=fp(i.maxWidth,t,"clientWidth")||lp,a=fp(i.maxHeight,t,"clientHeight")||lp,c=Hde(t,e,s);let{width:f,height:h}=c;if(i.boxSizing==="content-box"){const m=ka(i,"border","width"),_=ka(i,"padding");f-=_.width+m.width,h-=_.height+m.height}return f=Math.max(0,f-r.width),h=Math.max(0,n?f/n:h-r.height),f=xo(Math.min(f,o,c.maxWidth)),h=xo(Math.min(h,a,c.maxHeight)),f&&!h&&(h=xo(f/2)),(e!==void 0||s!==void 0)&&n&&c.height&&h>c.height&&(h=c.height,f=xo(Math.floor(h*n))),{width:f,height:h}}function hx(t,e,s){const n=e||1,i=xo(t.height*n),r=xo(t.width*n);t.height=xo(t.height),t.width=xo(t.width);const o=t.canvas;return o.style&&(s||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==n||o.height!==i||o.width!==r?(t.currentDevicePixelRatio=n,o.height=i,o.width=r,t.ctx.setTransform(n,0,0,n,0,0),!0):!1}const Wde=(function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Fy()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t})();function px(t,e){const s=Fde(t,e),n=s&&s.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}const zde=function(t,e){return{x(s){return t+t+e-s},setWidth(s){e=s},textAlign(s){return s==="center"?s:s==="right"?"left":"right"},xPlus(s,n){return s-n},leftForLtr(s,n){return s-n}}},Kde=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ll(t,e,s){return t?zde(e,s):Kde()}function I$(t,e){let s,n;(e==="ltr"||e==="rtl")&&(s=t.canvas.style,n=[s.getPropertyValue("direction"),s.getPropertyPriority("direction")],s.setProperty("direction",e,"important"),t.prevTextDirection=n)}function L$(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function sh(t,e,s){return t.options.clip?t[s]:e[s]}function Gde(t,e){const{xScale:s,yScale:n}=t;return s&&n?{left:sh(s,e,"left"),right:sh(s,e,"right"),top:sh(n,e,"top"),bottom:sh(n,e,"bottom")}:e}function Yde(t,e){const s=e._clip;if(s.disabled)return!1;const n=Gde(e,t.chartArea);return{left:s.left===!1?0:n.left-(s.left===!0?0:s.left),right:s.right===!1?t.width:n.right+(s.right===!0?0:s.right),top:s.top===!1?0:n.top-(s.top===!0?0:s.top),bottom:s.bottom===!1?t.height:n.bottom+(s.bottom===!0?0:s.bottom)}}/*! 89 * Chart.js v4.5.1 90 * https://www.chartjs.org 91 * (c) 2025 Chart.js Contributors 92 * Released under the MIT License 93 */class Zde{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,s,n,i){const r=s.listeners[i],o=s.duration;r.forEach(a=>a({chart:e,initial:s.initial,numSteps:o,currentStep:Math.min(n-s.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=C$.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let s=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o=r.length-1,a=!1,c;for(;o>=0;--o)c=r[o],c._active?(c._total>n.duration&&(n.duration=c._total),c.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,e,"progress")),r.length||(n.running=!1,this._notify(i,n,e,"complete"),n.initial=!1),s+=r.length}),this._lastDate=e,s===0&&(this._running=!1)}_getAnims(e){const s=this._charts;let n=s.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},s.set(e,n)),n}listen(e,s,n){this._getAnims(e).listeners[s].push(n)}add(e,s){!s||!s.length||this._getAnims(e).items.push(...s)}has(e){return this._getAnims(e).items.length>0}start(e){const s=this._charts.get(e);s&&(s.running=!0,s.start=Date.now(),s.duration=s.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const s=this._charts.get(e);return!(!s||!s.running||!s.items.length)}stop(e){const s=this._charts.get(e);if(!s||!s.items.length)return;const n=s.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();s.items=[],this._notify(e,s,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Dr=new Zde;const mx="transparent",Xde={boolean(t,e,s){return s>.5?e:t},color(t,e,s){const n=ox(t||mx),i=n.valid&&ox(e||mx);return i&&i.valid?i.mix(n,s).hexString():e},number(t,e,s){return t+(e-t)*s}};class Jde{constructor(e,s,n,i){const r=s[n];i=th([e.to,i,r,e.from]);const o=th([e.from,r,i]);this._active=!0,this._fn=e.fn||Xde[e.type||typeof o],this._easing=$u[e.easing]||$u.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=s,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(e,s,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=th([e.to,s,i,e.from]),this._from=th([e.from,i,s])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const s=e-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,a=this._to;let c;if(this._active=r!==a&&(o||s<n),!this._active){this._target[i]=a,this._notify(!0);return}if(s<0){this._target[i]=r;return}c=s/n%2,c=o&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[i]=this._fn(r,a,c)}wait(){const e=this._promises||(this._promises=[]);return new Promise((s,n)=>{e.push({res:s,rej:n})})}_notify(e){const s=e?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][s]()}}class N${constructor(e,s){this._chart=e,this._properties=new Map,this.configure(s)}configure(e){if(!qt(e))return;const s=Object.keys($s.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const r=e[i];if(!qt(r))return;const o={};for(const a of s)o[a]=r[a];(Js(r.properties)&&r.properties||[i]).forEach(a=>{(a===i||!n.has(a))&&n.set(a,o)})})}_animateOptions(e,s){const n=s.options,i=efe(e,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&Qde(e.options.$animations,n).then(()=>{e.options=n},()=>{}),r}_createAnimations(e,s){const n=this._properties,i=[],r=e.$animations||(e.$animations={}),o=Object.keys(s),a=Date.now();let c;for(c=o.length-1;c>=0;--c){const f=o[c];if(f.charAt(0)==="$")continue;if(f==="options"){i.push(...this._animateOptions(e,s));continue}const h=s[f];let p=r[f];const m=n.get(f);if(p)if(m&&p.active()){p.update(m,h,a);continue}else p.cancel();if(!m||!m.duration){e[f]=h;continue}r[f]=p=new Jde(m,e,f,h),i.push(p)}return i}update(e,s){if(this._properties.size===0){Object.assign(e,s);return}const n=this._createAnimations(e,s);if(n.length)return Dr.add(this._chart,n),!0}}function Qde(t,e){const s=[],n=Object.keys(e);for(let i=0;i<n.length;i++){const r=t[n[i]];r&&r.active()&&s.push(r.wait())}return Promise.all(s)}function efe(t,e){if(!e)return;let s=t.options;if(!s){t.options=e;return}return s.$shared&&(t.options=s=Object.assign({},s,{$shared:!1,$animations:{}})),s}function gx(t,e){const s=t&&t.options||{},n=s.reverse,i=s.min===void 0?e:0,r=s.max===void 0?e:0;return{start:n?r:i,end:n?i:r}}function tfe(t,e,s){if(s===!1)return!1;const n=gx(t,s),i=gx(e,s);return{top:i.end,right:n.end,bottom:i.start,left:n.start}}function sfe(t){let e,s,n,i;return qt(t)?(e=t.top,s=t.right,n=t.bottom,i=t.left):e=s=n=i=t,{top:e,right:s,bottom:n,left:i,disabled:t===!1}}function V$(t,e){const s=[],n=t._getSortedDatasetMetas(e);let i,r;for(i=0,r=n.length;i<r;++i)s.push(n[i].index);return s}function _x(t,e,s,n={}){const i=t.keys,r=n.mode==="single";let o,a,c,f;if(e===null)return;let h=!1;for(o=0,a=i.length;o<a;++o){if(c=+i[o],c===s){if(h=!0,n.all)continue;break}f=t.values[c],Yr(f)&&(r||e===0||sx(e)===sx(f))&&(e+=f)}return!h&&!n.all?0:e}function nfe(t,e){const{iScale:s,vScale:n}=e,i=s.axis==="x"?"x":"y",r=n.axis==="x"?"x":"y",o=Object.keys(t),a=new Array(o.length);let c,f,h;for(c=0,f=o.length;c<f;++c)h=o[c],a[c]={[i]:h,[r]:t[h]};return a}function z_(t,e){const s=t&&t.options.stacked;return s||s===void 0&&e.stack!==void 0}function ife(t,e,s){return`${t.id}.${e.id}.${s.stack||s.type}`}function rfe(t){const{min:e,max:s,minDefined:n,maxDefined:i}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:i?s:Number.POSITIVE_INFINITY}}function ofe(t,e,s){const n=t[e]||(t[e]={});return n[s]||(n[s]={})}function vx(t,e,s,n){for(const i of e.getMatchingVisibleMetas(n).reverse()){const r=t[i.index];if(s&&r>0||!s&&r<0)return i.index}return null}function bx(t,e){const{chart:s,_cachedMeta:n}=t,i=s._stacks||(s._stacks={}),{iScale:r,vScale:o,index:a}=n,c=r.axis,f=o.axis,h=ife(r,o,n),p=e.length;let m;for(let _=0;_<p;++_){const v=e[_],{[c]:b,[f]:S}=v,C=v._stacks||(v._stacks={});m=C[f]=ofe(i,h,b),m[a]=S,m._top=vx(m,o,!0,n.type),m._bottom=vx(m,o,!1,n.type);const O=m._visualValues||(m._visualValues={});O[a]=S}}function K_(t,e){const s=t.scales;return Object.keys(s).filter(n=>s[n].axis===e).shift()}function afe(t,e){return ac(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function lfe(t,e,s){return ac(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:s,index:e,mode:"default",type:"data"})}function tu(t,e){const s=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const i of e){const r=i._stacks;if(!r||r[n]===void 0||r[n][s]===void 0)return;delete r[n][s],r[n]._visualValues!==void 0&&r[n]._visualValues[s]!==void 0&&delete r[n]._visualValues[s]}}}const G_=t=>t==="reset"||t==="none",yx=(t,e)=>e?t:Object.assign({},t),cfe=(t,e,s)=>t&&!e.hidden&&e._stacked&&{keys:V$(s,!0),values:null};class Mu{constructor(e,s){this.chart=e,this._ctx=e.ctx,this.index=s,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=z_(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&tu(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,s=this._cachedMeta,n=this.getDataset(),i=(p,m,_,v)=>p==="x"?m:p==="r"?v:_,r=s.xAxisID=Jt(n.xAxisID,K_(e,"x")),o=s.yAxisID=Jt(n.yAxisID,K_(e,"y")),a=s.rAxisID=Jt(n.rAxisID,K_(e,"r")),c=s.indexAxis,f=s.iAxisID=i(c,r,o,a),h=s.vAxisID=i(c,o,r,a);s.xScale=this.getScaleForId(r),s.yScale=this.getScaleForId(o),s.rScale=this.getScaleForId(a),s.iScale=this.getScaleForId(f),s.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const s=this._cachedMeta;return e===s.iScale?s.vScale:s.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&nx(this._data,this),e._stacked&&tu(e)}_dataCheck(){const e=this.getDataset(),s=e.data||(e.data=[]),n=this._data;if(qt(s)){const i=this._cachedMeta;this._data=nfe(s,i)}else if(n!==s){if(n){nx(n,this);const i=this._cachedMeta;tu(i),i._parsed=[]}s&&Object.isExtensible(s)&&ode(s,this),this._syncList=[],this._data=s}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const s=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=s._stacked;s._stacked=z_(s.vScale,s),s.stack!==n.stack&&(i=!0,tu(s),s.stack=n.stack),this._resyncElements(e),(i||r!==s._stacked)&&(bx(this,s._parsed),s._stacked=z_(s.vScale,s))}configure(){const e=this.chart.config,s=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),s,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,s){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:o}=n,a=r.axis;let c=e===0&&s===i.length?!0:n._sorted,f=e>0&&n._parsed[e-1],h,p,m;if(this._parsing===!1)n._parsed=i,n._sorted=!0,m=i;else{Js(i[e])?m=this.parseArrayData(n,i,e,s):qt(i[e])?m=this.parseObjectData(n,i,e,s):m=this.parsePrimitiveData(n,i,e,s);const _=()=>p[a]===null||f&&p[a]<f[a];for(h=0;h<s;++h)n._parsed[h+e]=p=m[h],c&&(_()&&(c=!1),f=p);n._sorted=c}o&&bx(this,m)}parsePrimitiveData(e,s,n,i){const{iScale:r,vScale:o}=e,a=r.axis,c=o.axis,f=r.getLabels(),h=r===o,p=new Array(i);let m,_,v;for(m=0,_=i;m<_;++m)v=m+n,p[m]={[a]:h||r.parse(f[v],v),[c]:o.parse(s[v],v)};return p}parseArrayData(e,s,n,i){const{xScale:r,yScale:o}=e,a=new Array(i);let c,f,h,p;for(c=0,f=i;c<f;++c)h=c+n,p=s[h],a[c]={x:r.parse(p[0],h),y:o.parse(p[1],h)};return a}parseObjectData(e,s,n,i){const{xScale:r,yScale:o}=e,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,f=new Array(i);let h,p,m,_;for(h=0,p=i;h<p;++h)m=h+n,_=s[m],f[h]={x:r.parse(Ju(_,a),m),y:o.parse(Ju(_,c),m)};return f}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,s,n){const i=this.chart,r=this._cachedMeta,o=s[e.axis],a={keys:V$(i,!0),values:s._stacks[e.axis]._visualValues};return _x(a,o,r.index,{mode:n})}updateRangeFromParsed(e,s,n,i){const r=n[s.axis];let o=r===null?NaN:r;const a=i&&n._stacks[s.axis];i&&a&&(i.values=a,o=_x(i,r,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,s){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&e===n.iScale,o=i.length,a=this._getOtherScale(e),c=cfe(s,n,this.chart),f={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:p}=rfe(a);let m,_;function v(){_=i[m];const b=_[a.axis];return!Yr(_[e.axis])||h>b||p<b}for(m=0;m<o&&!(!v()&&(this.updateRangeFromParsed(f,e,_,c),r));++m);if(r){for(m=o-1;m>=0;--m)if(!v()){this.updateRangeFromParsed(f,e,_,c);break}}return f}getAllParsedValues(e){const s=this._cachedMeta._parsed,n=[];let i,r,o;for(i=0,r=s.length;i<r;++i)o=s[i][e.axis],Yr(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const s=this._cachedMeta,n=s.iScale,i=s.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(e){const s=this._cachedMeta;this.update(e||"default"),s._clip=sfe(Jt(this.options.clip,tfe(s.xScale,s.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,s=this.chart,n=this._cachedMeta,i=n.data||[],r=s.chartArea,o=[],a=this._drawStart||0,c=this._drawCount||i.length-a,f=this.options.drawActiveElementsOnTop;let h;for(n.dataset&&n.dataset.draw(e,r,a,c),h=a;h<a+c;++h){const p=i[h];p.hidden||(p.active&&f?o.push(p):p.draw(e,r))}for(h=0;h<o.length;++h)o[h].draw(e,r)}getStyle(e,s){const n=s?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,s,n){const i=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];r=o.$context||(o.$context=lfe(this.getContext(),e,o)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=afe(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!s,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,s){return this._resolveElementOptions(this.dataElementType.id,s,e)}_resolveElementOptions(e,s="default",n){const i=s==="active",r=this._cachedDataOpts,o=e+"-"+s,a=r[o],c=this.enableOptionSharing&&ap(n);if(a)return yx(a,c);const f=this.chart.config,h=f.datasetElementScopeKeys(this._type,e),p=i?[`${e}Hover`,"hover",e,""]:[e,""],m=f.getOptionScopes(this.getDataset(),h),_=Object.keys($s.elements[e]),v=()=>this.getContext(n,i,s),b=f.resolveNamedOptions(m,_,v,p);return b.$shared&&(b.$shared=c,r[o]=Object.freeze(yx(b,c))),b}_resolveAnimations(e,s,n){const i=this.chart,r=this._cachedDataOpts,o=`animation-${s}`,a=r[o];if(a)return a;let c;if(i.options.animation!==!1){const h=this.chart.config,p=h.datasetAnimationScopeKeys(this._type,s),m=h.getOptionScopes(this.getDataset(),p);c=h.createResolver(m,this.getContext(e,n,s))}const f=new N$(i,c&&c.animations);return c&&c._cacheable&&(r[o]=Object.freeze(f)),f}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,s){return!s||G_(e)||this.chart._animationsDisabled}_getSharedOptions(e,s){const n=this.resolveDataElementOptions(e,s),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(s,r)||r!==i;return this.updateSharedOptions(r,s,n),{sharedOptions:r,includeOptions:o}}updateElement(e,s,n,i){G_(i)?Object.assign(e,n):this._resolveAnimations(s,i).update(e,n)}updateSharedOptions(e,s,n){e&&!G_(s)&&this._resolveAnimations(void 0,s).update(e,n)}_setStyle(e,s,n,i){e.active=i;const r=this.getStyle(s,i);this._resolveAnimations(s,n,i).update(e,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(e,s,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,s,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const s=this._data,n=this._cachedMeta.data;for(const[a,c,f]of this._syncList)this[a](c,f);this._syncList=[];const i=n.length,r=s.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,e):r<i&&this._removeElements(r,i-r)}_insertElements(e,s,n=!0){const i=this._cachedMeta,r=i.data,o=e+s;let a;const c=f=>{for(f.length+=s,a=f.length-1;a>=o;a--)f[a]=f[a-s]};for(c(r),a=e;a<o;++a)r[a]=new this.dataElementType;this._parsing&&c(i._parsed),this.parse(e,s),n&&this.updateElements(r,e,s,"reset")}updateElements(e,s,n,i){}_removeElements(e,s){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(e,s);n._stacked&&tu(n,i)}n.data.splice(e,s)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[s,n,i]=e;this[s](n,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,s){s&&this._sync(["_removeElements",e,s]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}xt(Mu,"defaults",{}),xt(Mu,"datasetElementType",null),xt(Mu,"dataElementType",null);function ufe(t,e,s){let n=1,i=1,r=0,o=0;if(e<Ms){const a=t,c=a+e,f=Math.cos(a),h=Math.sin(a),p=Math.cos(c),m=Math.sin(c),_=(A,$,T)=>up(A,a,c,!0)?1:Math.max($,$*s,T,T*s),v=(A,$,T)=>up(A,a,c,!0)?-1:Math.min($,$*s,T,T*s),b=_(0,f,p),S=_(qs,h,m),C=v(us,f,p),O=v(us+qs,h,m);n=(b-C)/2,i=(S-O)/2,r=-(b+C)/2,o=-(S+O)/2}return{ratioX:n,ratioY:i,offsetX:r,offsetY:o}}class fu extends Mu{constructor(e,s){super(e,s),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,s){const n=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=n;else{let r=c=>+n[c];if(qt(n[e])){const{key:c="value"}=this._parsing;r=f=>+Ju(n[f],c)}let o,a;for(o=e,a=e+s;o<a;++o)i._parsed[o]=r(o)}}_getRotation(){return _a(this.options.rotation-90)}_getCircumference(){return _a(this.options.circumference)}_getRotationExtents(){let e=Ms,s=-Ms;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,r=i._getRotation(),o=i._getCircumference();e=Math.min(e,r),s=Math.max(s,r+o)}return{rotation:e,circumference:s-e}}update(e){const s=this.chart,{chartArea:n}=s,i=this._cachedMeta,r=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-o)/2,0),c=Math.min(zue(this.options.cutout,a),1),f=this._getRingWeight(this.index),{circumference:h,rotation:p}=this._getRotationExtents(),{ratioX:m,ratioY:_,offsetX:v,offsetY:b}=ufe(p,h,c),S=(n.width-o)/m,C=(n.height-o)/_,O=Math.max(Math.min(S,C)/2,0),A=w$(this.options.radius,O),$=Math.max(A*c,0),T=(A-$)/this._getVisibleDatasetWeightTotal();this.offsetX=v*A,this.offsetY=b*A,i.total=this.calculateTotal(),this.outerRadius=A-T*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-T*f,0),this.updateElements(r,0,r.length,e)}_circumference(e,s){const n=this.options,i=this._cachedMeta,r=this._getCircumference();return s&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||i._parsed[e]===null||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*r/Ms)}updateElements(e,s,n,i){const r=i==="reset",o=this.chart,a=o.chartArea,f=o.options.animation,h=(a.left+a.right)/2,p=(a.top+a.bottom)/2,m=r&&f.animateScale,_=m?0:this.innerRadius,v=m?0:this.outerRadius,{sharedOptions:b,includeOptions:S}=this._getSharedOptions(s,i);let C=this._getRotation(),O;for(O=0;O<s;++O)C+=this._circumference(O,r);for(O=s;O<s+n;++O){const A=this._circumference(O,r),$=e[O],T={x:h+this.offsetX,y:p+this.offsetY,startAngle:C,endAngle:C+A,circumference:A,outerRadius:v,innerRadius:_};S&&(T.options=b||this.resolveDataElementOptions(O,$.active?"active":i)),C+=A,this.updateElement($,O,T,i)}}calculateTotal(){const e=this._cachedMeta,s=e.data;let n=0,i;for(i=0;i<s.length;i++){const r=e._parsed[i];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(i)&&!s[i].hidden&&(n+=Math.abs(r))}return n}calculateCircumference(e){const s=this._cachedMeta.total;return s>0&&!isNaN(e)?Ms*(Math.abs(e)/s):0}getLabelAndValue(e){const s=this._cachedMeta,n=this.chart,i=n.data.labels||[],r=mde(s._parsed[e],n.options.locale);return{label:i[e]||"",value:r}}getMaxBorderWidth(e){let s=0;const n=this.chart;let i,r,o,a,c;if(!e){for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){o=n.getDatasetMeta(i),e=o.data,a=o.controller;break}}if(!e)return 0;for(i=0,r=e.length;i<r;++i)c=a.resolveDataElementOptions(i),c.borderAlign!=="inner"&&(s=Math.max(s,c.borderWidth||0,c.hoverBorderWidth||0));return s}getMaxOffset(e){let s=0;for(let n=0,i=e.length;n<i;++n){const r=this.resolveDataElementOptions(n);s=Math.max(s,r.offset||0,r.hoverOffset||0)}return s}_getRingWeightOffset(e){let s=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(s+=this._getRingWeight(n));return s}_getRingWeight(e){return Math.max(Jt(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}xt(fu,"id","doughnut"),xt(fu,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}}
93,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),xt(fu,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),xt(fu,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const s=e.data,{labels:{pointStyle:n,textAlign:i,color:r,useBorderRadius:o,borderRadius:a}}=e.legend.options;return s.labels.length&&s.datasets.length?s.labels.map((c,f)=>{const p=e.getDatasetMeta(0).controller.getStyle(f);return{text:c,fillStyle:p.backgroundColor,fontColor:r,hidden:!e.getDataVisibility(f),lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:p.borderWidth,strokeStyle:p.borderColor,textAlign:i,pointStyle:n,borderRadius:o&&(a||p.borderRadius),index:f}}):[]}},onClick(e,s,n){n.chart.toggleDataVisibility(s.index),n.chart.update()}}}});class jv extends fu{}xt(jv,"id","pie"),xt(jv,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function la(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Uy{constructor(e){xt(this,"options");this.options=e||{}}static override(e){Object.assign(Uy.prototype,e)}init(){}formats(){return la()}parse(){return la()}format(){return la()}add(){return la()}diff(){return la()}startOf(){return la()}endOf(){return la()}}var dfe={_date:Uy};function ffe(t,e,s,n){const{controller:i,data:r,_sorted:o}=t,a=i._cachedMeta.iScale,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&o&&r.length){const f=a._reversePixels?ide:Uv;if(n){if(i._sharedOptions){const h=r[0],p=typeof h.getRange=="function"&&h.getRange(e);if(p){const m=f(r,e,s-p),_=f(r,e,s+p);return{lo:m.lo,hi:_.hi}}}}else{const h=f(r,e,s);if(c){const{vScale:p}=i._cachedMeta,{_parsed:m}=t,_=m.slice(0,h.lo+1).reverse().findIndex(b=>!hn(b[p.axis]));h.lo-=Math.max(0,_);const v=m.slice(h.hi).findIndex(b=>!hn(b[p.axis]));h.hi+=Math.max(0,v)}return h}}return{lo:0,hi:r.length-1}}function hm(t,e,s,n,i){const r=t.getSortedVisibleDatasetMetas(),o=s[e];for(let a=0,c=r.length;a<c;++a){const{index:f,data:h}=r[a],{lo:p,hi:m}=ffe(r[a],e,o,i);for(let _=p;_<=m;++_){const v=h[_];v.skip||n(v,f,_)}}}function hfe(t){const e=t.indexOf("x")!==-1,s=t.indexOf("y")!==-1;return function(n,i){const r=e?Math.abs(n.x-i.x):0,o=s?Math.abs(n.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function Y_(t,e,s,n,i){const r=[];return!i&&!t.isPointInArea(e)||hm(t,s,e,function(a,c,f){!i&&!O$(a,t.chartArea,0)||a.inRange(e.x,e.y,n)&&r.push({element:a,datasetIndex:c,index:f})},!0),r}function pfe(t,e,s,n){let i=[];function r(o,a,c){const{startAngle:f,endAngle:h}=o.getProps(["startAngle","endAngle"],n),{angle:p}=S$(o,{x:e.x,y:e.y});up(p,f,h)&&i.push({element:o,datasetIndex:a,index:c})}return hm(t,s,e,r),i}function mfe(t,e,s,n,i,r){let o=[];const a=hfe(s);let c=Number.POSITIVE_INFINITY;function f(h,p,m){const _=h.inRange(e.x,e.y,i);if(n&&!_)return;const v=h.getCenterPoint(i);if(!(!!r||t.isPointInArea(v))&&!_)return;const S=a(e,v);S<c?(o=[{element:h,datasetIndex:p,index:m}],c=S):S===c&&o.push({element:h,datasetIndex:p,index:m})}return hm(t,s,e,f),o}function Z_(t,e,s,n,i,r){return!r&&!t.isPointInArea(e)?[]:s==="r"&&!n?pfe(t,e,s,i):mfe(t,e,s,n,i,r)}function wx(t,e,s,n,i){const r=[],o=s==="x"?"inXRange":"inYRange";let a=!1;return hm(t,s,e,(c,f,h)=>{c[o]&&c[o](e[s],i)&&(r.push({element:c,datasetIndex:f,index:h}),a=a||c.inRange(e.x,e.y,i))}),n&&!a?[]:r}var gfe={modes:{index(t,e,s,n){const i=da(e,t),r=s.axis||"x",o=s.includeInvisible||!1,a=s.intersect?Y_(t,i,r,n,o):Z_(t,i,r,!1,n,o),c=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(f=>{const h=a[0].index,p=f.data[h];p&&!p.skip&&c.push({element:p,datasetIndex:f.index,index:h})}),c):[]},dataset(t,e,s,n){const i=da(e,t),r=s.axis||"xy",o=s.includeInvisible||!1;let a=s.intersect?Y_(t,i,r,n,o):Z_(t,i,r,!1,n,o);if(a.length>0){const c=a[0].datasetIndex,f=t.getDatasetMeta(c).data;a=[];for(let h=0;h<f.length;++h)a.push({element:f[h],datasetIndex:c,index:h})}return a},point(t,e,s,n){const i=da(e,t),r=s.axis||"xy",o=s.includeInvisible||!1;return Y_(t,i,r,n,o)},nearest(t,e,s,n){const i=da(e,t),r=s.axis||"xy",o=s.includeInvisible||!1;return Z_(t,i,r,s.intersect,n,o)},x(t,e,s,n){const i=da(e,t);return wx(t,i,"x",s.intersect,n)},y(t,e,s,n){const i=da(e,t);return wx(t,i,"y",s.intersect,n)}}};const F$=["left","top","right","bottom"];function su(t,e){return t.filter(s=>s.pos===e)}function xx(t,e){return t.filter(s=>F$.indexOf(s.pos)===-1&&s.box.axis===e)}function nu(t,e){return t.sort((s,n)=>{const i=e?n:s,r=e?s:n;
vendor: 7,191 bytes, line 93
93return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function _fe(t){const e=[];let s,n,i,r,o,a;for(s=0,n=(t||[]).length;s<n;++s)i=t[s],{position:r,options:{stack:o,stackWeight:a=1}}=i,e.push({index:s,box:i,pos:r,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&r+o,stackWeight:a});return e}function vfe(t){const e={};for(const s of t){const{stack:n,pos:i,stackWeight:r}=s;if(!n||!F$.includes(i))continue;const o=e[n]||(e[n]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}function bfe(t,e){const s=vfe(t),{vBoxMaxWidth:n,hBoxMaxHeight:i}=e;let r,o,a;for(r=0,o=t.length;r<o;++r){a=t[r];const{fullSize:c}=a.box,f=s[a.stack],h=f&&a.stackWeight/f.weight;a.horizontal?(a.width=h?h*n:c&&e.availableWidth,a.height=i):(a.width=n,a.height=h?h*i:c&&e.availableHeight)}return s}function yfe(t){const e=_fe(t),s=nu(e.filter(f=>f.box.fullSize),!0),n=nu(su(e,"left"),!0),i=nu(su(e,"right")),r=nu(su(e,"top"),!0),o=nu(su(e,"bottom")),a=xx(e,"x"),c=xx(e,"y");return{fullSize:s,leftAndTop:n.concat(r),rightAndBottom:i.concat(c).concat(o).concat(a),chartArea:su(e,"chartArea"),vertical:n.concat(i).concat(c),horizontal:r.concat(o).concat(a)}}function Sx(t,e,s,n){return Math.max(t[s],e[s])+Math.max(t[n],e[n])}function B$(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function wfe(t,e,s,n){const{pos:i,box:r}=s,o=t.maxPadding;if(!qt(i)){s.size&&(t[i]-=s.size);const p=n[s.stack]||{size:0,count:1};p.size=Math.max(p.size,s.horizontal?r.height:r.width),s.size=p.size/p.count,t[i]+=s.size}r.getPadding&&B$(o,r.getPadding());const a=Math.max(0,e.outerWidth-Sx(o,t,"left","right")),c=Math.max(0,e.outerHeight-Sx(o,t,"top","bottom")),f=a!==t.w,h=c!==t.h;return t.w=a,t.h=c,s.horizontal?{same:f,other:h}:{same:h,other:f}}function xfe(t){const e=t.maxPadding;function s(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=s("top"),t.x+=s("left"),s("right"),s("bottom")}function Sfe(t,e){const s=e.maxPadding;function n(i){const r={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{r[o]=Math.max(e[o],s[o])}),r}return n(t?["left","right"]:["top","bottom"])}function hu(t,e,s,n){const i=[];let r,o,a,c,f,h;for(r=0,o=t.length,f=0;r<o;++r){a=t[r],c=a.box,c.update(a.width||e.w,a.height||e.h,Sfe(a.horizontal,e));const{same:p,other:m}=wfe(e,s,a,n);f|=p&&i.length,h=h||m,c.fullSize||i.push(a)}return f&&hu(i,e,s,n)||h}function nh(t,e,s,n,i){t.top=s,t.left=e,t.right=e+n,t.bottom=s+i,t.width=n,t.height=i}function Ex(t,e,s,n){const i=s.padding;let{x:r,y:o}=e;for(const a of t){const c=a.box,f=n[a.stack]||{placed:0,weight:1},h=a.stackWeight/f.weight||1;if(a.horizontal){const p=e.w*h,m=f.size||c.height;ap(f.start)&&(o=f.start),c.fullSize?nh(c,i.left,o,s.outerWidth-i.right-i.left,m):nh(c,e.left+f.placed,o,p,m),f.start=o,f.placed+=p,o=c.bottom}else{const p=e.h*h,m=f.size||c.width;ap(f.start)&&(r=f.start),c.fullSize?nh(c,r,i.top,m,s.outerHeight-i.bottom-i.top):nh(c,r,e.top+f.placed,m,p),f.start=r,f.placed+=p,r=c.right}}e.x=r,e.y=o}var So={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(s){e.draw(s)}}]},t.boxes.push(e)},removeBox(t,e){const s=t.boxes?t.boxes.indexOf(e):-1;s!==-1&&t.boxes.splice(s,1)},configure(t,e,s){e.fullSize=s.fullSize,e.position=s.position,e.weight=s.weight},update(t,e,s,n){if(!t)return;const i=zi(t.options.layout.padding),r=Math.max(e-i.width,0),o=Math.max(s-i.height,0),a=yfe(t.boxes),c=a.vertical,f=a.horizontal;Xt(t.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});const h=c.reduce((b,S)=>S.box.options&&S.box.options.display===!1?b:b+1,0)||1,p=Object.freeze({outerWidth:e,outerHeight:s,padding:i,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/h,hBoxMaxHeight:o/2}),m=Object.assign({},i);B$(m,zi(n));const _=Object.assign({maxPadding:m,w:r,h:o,x:i.left,y:i.top},i),v=bfe(c.concat(f),p);hu(a.fullSize,_,p,v),hu(c,_,p,v),hu(f,_,p,v)&&hu(c,_,p,v),xfe(_),Ex(a.leftAndTop,_,p,v),_.x+=_.w,_.y+=_.h,Ex(a.rightAndBottom,_,p,v),t.chartArea={left:_.left,top:_.top,right:_.left+_.w,bottom:_.top+_.h,height:_.h,width:_.w},Xt(a.chartArea,b=>{const S=b.box;Object.assign(S,t.chartArea),S.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class U${acquireContext(e,s){}releaseContext(e){return!1}addEventListener(e,s,n){}removeEventListener(e,s,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,s,n,i){return s=Math.max(0,s||e.width),n=n||e.height,{width:s,height:Math.max(0,i?Math.floor(s/i):n)}}isAttached(e){return!0}updateConfig(e){}}class Efe extends U${acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Ch="$chartjs",Cfe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Cx=t=>t===null||t==="";function kfe(t,e){const s=t.style,n=t.getAttribute("height"),i=t.getAttribute("width");if(t[Ch]={initial:{height:n,width:i,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",Cx(i)){const r=px(t,"width");r!==void 0&&(t.width=r)}if(Cx(n))if(t.style.height==="")t.height=t.width/(e||2);else{const r=px(t,"height");r!==void 0&&(t.height=r)}return t}const q$=Wde?{passive:!0}:!1;function Afe(t,e,s){t&&t.addEventListener(e,s,q$)}function $fe(t,e,s){t&&t.canvas&&t.canvas.removeEventListener(e,s,q$)}function Tfe(t,e){const s=Cfe[t.type]||t.type,{x:n,y:i}=da(t,e);return{type:s,chart:e,native:t,x:n!==void 0?n:null,y:i!==void 0?i:null}}function hp(t,e){for(const s of t)if(s===e||s.contains(e))return!0}function Ofe(t,e,s){const n=t.canvas,i=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||hp(a.addedNodes,n),o=o&&!hp(a.removedNodes,n);o&&s()});return i.observe(document,{childList:!0,subtree:!0}),i}function Mfe(t,e,s){const n=t.canvas,i=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||hp(a.removedNodes,n),o=o&&!hp(a.addedNodes,n);o&&s()});return i.observe(document,{childList:!0,subtree:!0}),i}const Qu=new Map;let kx=0;function H$(){const t=window.devicePixelRatio;t!==kx&&(kx=t,Qu.forEach((e,s)=>{s.currentDevicePixelRatio!==t&&e()}))}function Pfe(t,e){Qu.size||window.addEventListener("resize",H$),Qu.set(t,e)}function Dfe(t){Qu.delete(t),Qu.size||window.removeEventListener("resize",H$)}function Rfe(t,e,s){const n=t.canvas,i=n&&By(n);if(!i)return;const r=k$((a,c)=>{const f=i.clientWidth;s(a,c),f<i.clientWidth&&s()},window),o=new ResizeObserver(a=>{const c=a[0],f=c.contentRect.width,h=c.contentRect.height;f===0&&h===0||r(f,h)});return o.observe(i),Pfe(t,r),o}function X_(t,e,s){s&&s.disconnect(),e==="resize"&&Dfe(t)}function Ife(t,e,s){const n=t.canvas,i=k$(r=>{t.ctx!==null&&s(Tfe(r,t))},t);return Afe(n,e,i),i}class Lfe extends U${acquireContext(e,s){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(kfe(e,s),n):null}releaseContext(e){const s=e.canvas;if(!s[Ch])return!1;const n=s[Ch].initial;["height","width"].forEach(r=>{const o=n[r];hn(o)?s.removeAttribute(r):s.setAttribute(r,o)});const i=n.style||{};
vendor: 5,414 bytes, line 93
93return Object.keys(i).forEach(r=>{s.style[r]=i[r]}),s.width=s.width,delete s[Ch],!0}addEventListener(e,s,n){this.removeEventListener(e,s);const i=e.$proxies||(e.$proxies={}),o={attach:Ofe,detach:Mfe,resize:Rfe}[s]||Ife;i[s]=o(e,s,n)}removeEventListener(e,s){const n=e.$proxies||(e.$proxies={}),i=n[s];if(!i)return;({attach:X_,detach:X_,resize:X_}[s]||$fe)(e,s,i),n[s]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,s,n,i){return jde(e,s,n,i)}isAttached(e){const s=e&&By(e);return!!(s&&s.isConnected)}}function Nfe(t){return!Fy()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Efe:Lfe}var ch;let xd=(ch=class{constructor(){xt(this,"x");xt(this,"y");xt(this,"active",!1);xt(this,"options");xt(this,"$animations")}tooltipPosition(e){const{x:s,y:n}=this.getProps(["x","y"],e);return{x:s,y:n}}hasValue(){return cp(this.x)&&cp(this.y)}getProps(e,s){const n=this.$animations;if(!s||!n)return this;const i={};return e.forEach(r=>{i[r]=n[r]&&n[r].active()?n[r]._to:this[r]}),i}},xt(ch,"defaults",{}),xt(ch,"defaultRoutes"),ch);function Vfe(t,e){const s=t.options.ticks,n=Ffe(t),i=Math.min(s.maxTicksLimit||n,n),r=s.major.enabled?Ufe(e):[],o=r.length,a=r[0],c=r[o-1],f=[];if(o>i)return qfe(e,f,r,o/i),f;const h=Bfe(r,e,i);if(o>0){let p,m;const _=o>1?Math.round((c-a)/(o-1)):null;for(ih(e,f,h,hn(_)?0:a-_,a),p=0,m=o-1;p<m;p++)ih(e,f,h,r[p],r[p+1]);return ih(e,f,h,c,hn(_)?e.length:c+_),f}return ih(e,f,h),f}function Ffe(t){const e=t.options.offset,s=t._tickSize(),n=t._length/s+(e?0:1),i=t._maxLength/s;return Math.floor(Math.min(n,i))}function Bfe(t,e,s){const n=Hfe(t),i=e.length/s;if(!n)return Math.max(i,1);const r=Que(n);for(let o=0,a=r.length-1;o<a;o++){const c=r[o];if(c>i)return c}return Math.max(i,1)}function Ufe(t){const e=[];let s,n;for(s=0,n=t.length;s<n;s++)t[s].major&&e.push(s);return e}function qfe(t,e,s,n){let i=0,r=s[0],o;for(n=Math.ceil(n),o=0;o<t.length;o++)o===r&&(e.push(t[o]),i++,r=s[i*n])}function ih(t,e,s,n,i){const r=Jt(n,0),o=Math.min(Jt(i,t.length),t.length);let a=0,c,f,h;for(s=Math.ceil(s),i&&(c=i-n,s=c/Math.floor(c/s)),h=r;h<0;)a++,h=Math.round(r+a*s);for(f=Math.max(r,0);f<o;f++)f===h&&(e.push(t[f]),a++,h=Math.round(r+a*s))}function Hfe(t){const e=t.length;let s,n;if(e<2)return!1;for(n=t[0],s=1;s<e;++s)if(t[s]-t[s-1]!==n)return!1;return n}const jfe=t=>t==="left"?"right":t==="right"?"left":t,Ax=(t,e,s)=>e==="top"||e==="left"?t[e]+s:t[e]-s,$x=(t,e)=>Math.min(e||t,t);function Tx(t,e){const s=[],n=t.length/e,i=t.length;let r=0;for(;r<i;r+=n)s.push(t[Math.floor(r)]);return s}function Wfe(t,e,s){const n=t.ticks.length,i=Math.min(e,n-1),r=t._startPixel,o=t._endPixel,a=1e-6;let c=t.getPixelForTick(i),f;if(!(s&&(n===1?f=Math.max(c-r,o-c):e===0?f=(t.getPixelForTick(1)-c)/2:f=(c-t.getPixelForTick(i-1))/2,c+=i<e?f:-f,c<r-a||c>o+a)))return c}function zfe(t,e){Xt(t,s=>{const n=s.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete s.data[n[r]];n.splice(0,i)}})}function iu(t){return t.drawTicks?t.tickLength:0}function Ox(t,e){if(!t.display)return 0;const s=Kn(t.font,e),n=zi(t.padding);return(Js(t.text)?t.text.length:1)*s.lineHeight+n.height}function Kfe(t,e){return ac(t,{scale:e,type:"scale"})}function Gfe(t,e,s){return ac(t,{tick:s,index:e,type:"tick"})}function Yfe(t,e,s){let n=A$(t);return(s&&e!=="right"||!s&&e==="right")&&(n=jfe(n)),n}function Zfe(t,e,s,n){const{top:i,left:r,bottom:o,right:a,chart:c}=t,{chartArea:f,scales:h}=c;let p=0,m,_,v;const b=o-i,S=a-r;if(t.isHorizontal()){if(_=si(n,r,a),qt(s)){const C=Object.keys(s)[0],O=s[C];v=h[C].getPixelForValue(O)+b-e}else s==="center"?v=(f.bottom+f.top)/2+b-e:v=Ax(t,s,e);m=a-r}else{if(qt(s)){const C=Object.keys(s)[0],O=s[C];_=h[C].getPixelForValue(O)-S+e}else s==="center"?_=(f.left+f.right)/2-S+e:_=Ax(t,s,e);v=si(n,o,i),p=s==="left"?-qs:qs}return{titleX:_,titleY:v,maxWidth:m,rotation:p}}class pm extends xd{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,s){return e}getUserBounds(){let{_userMin:e,_userMax:s,_suggestedMin:n,_suggestedMax:i}=this;return e=tr(e,Number.POSITIVE_INFINITY),s=tr(s,Number.NEGATIVE_INFINITY),n=tr(n,Number.POSITIVE_INFINITY),i=tr(i,Number.NEGATIVE_INFINITY),{min:tr(e,n),max:tr(s,i),minDefined:Yr(e),maxDefined:Yr(s)}}getMinMax(e){let{min:s,max:n,minDefined:i,maxDefined:r}=this.getUserBounds(),o;if(i&&r)return{min:s,max:n};const a=this.getMatchingVisibleMetas();
vendor: 38,584 bytes, line 93
93for(let c=0,f=a.length;c<f;++c)o=a[c].controller.getMinMax(this,e),i||(s=Math.min(s,o.min)),r||(n=Math.max(n,o.max));return s=r&&s>n?n:s,n=i&&s>n?s:n,{min:tr(s,tr(n,s)),max:tr(n,tr(s,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){cs(this.options.beforeUpdate,[this])}update(e,s,n){const{beginAtZero:i,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=s,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Tde(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=a<this.ticks.length;this._convertTicksToLabels(c?Tx(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Vfe(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,s,n;this.isHorizontal()?(s=this.left,n=this.right):(s=this.top,n=this.bottom,e=!e),this._startPixel=s,this._endPixel=n,this._reversePixels=e,this._length=n-s,this._alignToPixels=this.options.alignToPixels}afterUpdate(){cs(this.options.afterUpdate,[this])}beforeSetDimensions(){cs(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){cs(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),cs(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){cs(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const s=this.options.ticks;let n,i,r;for(n=0,i=e.length;n<i;n++)r=e[n],r.label=cs(s.callback,[r.value,n,e],this)}afterTickToLabelConversion(){cs(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){cs(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,s=e.ticks,n=$x(this.ticks.length,e.ticks.maxTicksLimit),i=s.minRotation||0,r=s.maxRotation;let o=i,a,c,f;if(!this._isVisible()||!s.display||i>=r||n<=1||!this.isHorizontal()){this.labelRotation=i;return}const h=this._getLabelSizes(),p=h.widest.width,m=h.highest.height,_=Ci(this.chart.width-p,0,this.maxWidth);a=e.offset?this.maxWidth/n:_/(n-1),p+6>a&&(a=_/(n-(e.offset?.5:1)),c=this.maxHeight-iu(e.grid)-s.padding-Ox(e.title,this.chart.options.font),f=Math.sqrt(p*p+m*m),o=tde(Math.min(Math.asin(Ci((h.highest.height+6)/a,-1,1)),Math.asin(Ci(c/f,-1,1))-Math.asin(Ci(m/f,-1,1)))),o=Math.max(i,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){cs(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){cs(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:s,options:{ticks:n,title:i,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const c=Ox(i,s.options.font);if(a?(e.width=this.maxWidth,e.height=iu(r)+c):(e.height=this.maxHeight,e.width=iu(r)+c),n.display&&this.ticks.length){const{first:f,last:h,widest:p,highest:m}=this._getLabelSizes(),_=n.padding*2,v=_a(this.labelRotation),b=Math.cos(v),S=Math.sin(v);if(a){const C=n.mirror?0:S*p.width+b*m.height;e.height=Math.min(this.maxHeight,e.height+C+_)}else{const C=n.mirror?0:b*p.width+S*m.height;e.width=Math.min(this.maxWidth,e.width+C+_)}this._calculatePadding(f,h,S,b)}}this._handleMargins(),a?(this.width=this._length=s.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=s.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,s,n,i){const{ticks:{align:r,padding:o},position:a}=this.options,c=this.labelRotation!==0,f=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,_=0;c?f?(m=i*e.width,_=n*s.height):(m=n*e.height,_=i*s.width):r==="start"?_=s.width:r==="end"?m=e.width:r!=="inner"&&(m=e.width/2,_=s.width/2),this.paddingLeft=Math.max((m-h+o)*this.width/(this.width-h),0),this.paddingRight=Math.max((_-p+o)*this.width/(this.width-p),0)}else{let h=s.height/2,p=e.height/2;r==="start"?(h=0,p=e.height):r==="end"&&(h=s.height,p=0),this.paddingTop=h+o,this.paddingBottom=p+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){cs(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:s}=this.options;return s==="top"||s==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let s,n;for(s=0,n=e.length;s<n;s++)hn(e[s].label)&&(e.splice(s,1),n--,s--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const s=this.options.ticks.sampleSize;let n=this.ticks;s<n.length&&(n=Tx(n,s)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,s,n){const{ctx:i,_longestTextCache:r}=this,o=[],a=[],c=Math.floor(s/$x(s,n));let f=0,h=0,p,m,_,v,b,S,C,O,A,$,T;for(p=0;p<s;p+=c){if(v=e[p].label,b=this._resolveTickFontOptions(p),i.font=S=b.string,C=r[S]=r[S]||{data:{},gc:[]},O=b.lineHeight,A=$=0,!hn(v)&&!Js(v))A=lx(i,C.data,C.gc,A,v),$=O;else if(Js(v))for(m=0,_=v.length;m<_;++m)T=v[m],!hn(T)&&!Js(T)&&(A=lx(i,C.data,C.gc,A,T),$+=O);o.push(A),a.push($),f=Math.max(A,f),h=Math.max($,h)}zfe(r,s);const D=o.indexOf(f),B=a.indexOf(h),N=F=>({width:o[F]||0,height:a[F]||0});return{first:N(0),last:N(s-1),widest:N(D),highest:N(B),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,s){return NaN}getValueForPixel(e){}getPixelForTick(e){const s=this.ticks;return e<0||e>s.length-1?null:this.getPixelForValue(s[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const s=this._startPixel+e*this._length;return nde(this._alignToPixels?aa(this.chart,s,0):s)}getDecimalForPixel(e){const s=(e-this._startPixel)/this._length;return this._reversePixels?1-s:s}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:s}=this;return e<0&&s<0?s:e>0&&s>0?e:0}getContext(e){const s=this.ticks||[];if(e>=0&&e<s.length){const n=s[e];return n.$context||(n.$context=Gfe(this.getContext(),e,n))}return this.$context||(this.$context=Kfe(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,s=_a(this.labelRotation),n=Math.abs(Math.cos(s)),i=Math.abs(Math.sin(s)),r=this._getLabelSizes(),o=e.autoSkipPadding||0,a=r?r.widest.width+o:0,c=r?r.highest.height+o:0;return this.isHorizontal()?c*n>a*i?a/n:c/i:c*i<a*n?c/n:a/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const s=this.axis,n=this.chart,i=this.options,{grid:r,position:o,border:a}=i,c=r.offset,f=this.isHorizontal(),p=this.ticks.length+(c?1:0),m=iu(r),_=[],v=a.setContext(this.getContext()),b=v.display?v.width:0,S=b/2,C=function(he){return aa(n,he,b)};let O,A,$,T,D,B,N,F,L,Y,Z,le;if(o==="top")O=C(this.bottom),B=this.bottom-m,F=O-S,Y=C(e.top)+S,le=e.bottom;else if(o==="bottom")O=C(this.top),Y=e.top,le=C(e.bottom)-S,B=O+S,F=this.top+m;else if(o==="left")O=C(this.right),D=this.right-m,N=O-S,L=C(e.left)+S,Z=e.right;else if(o==="right")O=C(this.left),L=e.left,Z=C(e.right)-S,D=O+S,N=this.left+m;else if(s==="x"){if(o==="center")O=C((e.top+e.bottom)/2+.5);else if(qt(o)){const he=Object.keys(o)[0],ye=o[he];O=C(this.chart.scales[he].getPixelForValue(ye))}Y=e.top,le=e.bottom,B=O+S,F=B+m}else if(s==="y"){if(o==="center")O=C((e.left+e.right)/2);else if(qt(o)){const he=Object.keys(o)[0],ye=o[he];O=C(this.chart.scales[he].getPixelForValue(ye))}D=O-S,N=D-m,L=e.left,Z=e.right}const Ce=Jt(i.ticks.maxTicksLimit,p),Ee=Math.max(1,Math.ceil(p/Ce));for(A=0;A<p;A+=Ee){const he=this.getContext(A),ye=r.setContext(he),xe=a.setContext(he),_e=ye.lineWidth,ze=ye.color,je=xe.dash||[],it=xe.dashOffset,es=ye.tickWidth,ue=ye.tickColor,$t=ye.tickBorderDash||[],Bt=ye.tickBorderDashOffset;$=Wfe(this,A,c),$!==void 0&&(T=aa(n,$,_e),f?D=N=L=Z=T:B=F=Y=le=T,_.push({tx1:D,ty1:B,tx2:N,ty2:F,x1:L,y1:Y,x2:Z,y2:le,width:_e,color:ze,borderDash:je,borderDashOffset:it,tickWidth:es,tickColor:ue,tickBorderDash:$t,tickBorderDashOffset:Bt}))}return this._ticksLength=p,this._borderValue=O,_}_computeLabelItems(e){const s=this.axis,n=this.options,{position:i,ticks:r}=n,o=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:f,padding:h,mirror:p}=r,m=iu(n.grid),_=m+h,v=p?-h:_,b=-_a(this.labelRotation),S=[];let C,O,A,$,T,D,B,N,F,L,Y,Z,le="middle";if(i==="top")D=this.bottom-v,B=this._getXAxisLabelAlignment();else if(i==="bottom")D=this.top+v,B=this._getXAxisLabelAlignment();else if(i==="left"){const Ee=this._getYAxisLabelAlignment(m);B=Ee.textAlign,T=Ee.x}else if(i==="right"){const Ee=this._getYAxisLabelAlignment(m);B=Ee.textAlign,T=Ee.x}else if(s==="x"){if(i==="center")D=(e.top+e.bottom)/2+_;else if(qt(i)){const Ee=Object.keys(i)[0],he=i[Ee];D=this.chart.scales[Ee].getPixelForValue(he)+_}B=this._getXAxisLabelAlignment()}else if(s==="y"){if(i==="center")T=(e.left+e.right)/2-_;else if(qt(i)){const Ee=Object.keys(i)[0],he=i[Ee];T=this.chart.scales[Ee].getPixelForValue(he)}B=this._getYAxisLabelAlignment(m).textAlign}s==="y"&&(c==="start"?le="top":c==="end"&&(le="bottom"));const Ce=this._getLabelSizes();for(C=0,O=a.length;C<O;++C){A=a[C],$=A.label;const Ee=r.setContext(this.getContext(C));N=this.getPixelForTick(C)+r.labelOffset,F=this._resolveTickFontOptions(C),L=F.lineHeight,Y=Js($)?$.length:1;const he=Y/2,ye=Ee.color,xe=Ee.textStrokeColor,_e=Ee.textStrokeWidth;let ze=B;o?(T=N,B==="inner"&&(C===O-1?ze=this.options.reverse?"left":"right":C===0?ze=this.options.reverse?"right":"left":ze="center"),i==="top"?f==="near"||b!==0?Z=-Y*L+L/2:f==="center"?Z=-Ce.highest.height/2-he*L+L:Z=-Ce.highest.height+L/2:f==="near"||b!==0?Z=L/2:f==="center"?Z=Ce.highest.height/2-he*L:Z=Ce.highest.height-Y*L,p&&(Z*=-1),b!==0&&!Ee.showLabelBackdrop&&(T+=L/2*Math.sin(b))):(D=N,Z=(1-Y)*L/2);let je;if(Ee.showLabelBackdrop){const it=zi(Ee.backdropPadding),es=Ce.heights[C],ue=Ce.widths[C];let $t=Z-it.top,Bt=0-it.left;switch(le){case"middle":$t-=es/2;break;case"bottom":$t-=es;break}switch(B){case"center":Bt-=ue/2;break;case"right":Bt-=ue;break;case"inner":C===O-1?Bt-=ue:C>0&&(Bt-=ue/2);break}je={left:Bt,top:$t,width:ue+it.width,height:es+it.height,color:Ee.backdropColor}}S.push({label:$,font:F,textOffset:Z,options:{rotation:b,color:ye,strokeColor:xe,strokeWidth:_e,textAlign:ze,textBaseline:le,translation:[T,D],backdrop:je}})}return S}_getXAxisLabelAlignment(){const{position:e,ticks:s}=this.options;if(-_a(this.labelRotation))return e==="top"?"left":"right";let i="center";return s.align==="start"?i="left":s.align==="end"?i="right":s.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:s,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,o=this._getLabelSizes(),a=e+r,c=o.widest.width;let f,h;return s==="left"?i?(h=this.right+r,n==="near"?f="left":n==="center"?(f="center",h+=c/2):(f="right",h+=c)):(h=this.right-a,n==="near"?f="right":n==="center"?(f="center",h-=c/2):(f="left",h=this.left)):s==="right"?i?(h=this.left+r,n==="near"?f="right":n==="center"?(f="center",h-=c/2):(f="left",h-=c)):(h=this.left+a,n==="near"?f="left":n==="center"?(f="center",h+=c/2):(f="right",h=this.right)):f="right",{textAlign:f,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,s=this.options.position;if(s==="left"||s==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(s==="top"||s==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:s},left:n,top:i,width:r,height:o}=this;s&&(e.save(),e.fillStyle=s,e.fillRect(n,i,r,o),e.restore())}getLineWidthForValue(e){const s=this.options.grid;if(!this._isVisible()||!s.display)return 0;const i=this.ticks.findIndex(r=>r.value===e);return i>=0?s.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const s=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const a=(c,f,h)=>{!h.width||!h.color||(n.save(),n.lineWidth=h.width,n.strokeStyle=h.color,n.setLineDash(h.borderDash||[]),n.lineDashOffset=h.borderDashOffset,n.beginPath(),n.moveTo(c.x,c.y),n.lineTo(f.x,f.y),n.stroke(),n.restore())};if(s.display)for(r=0,o=i.length;r<o;++r){const c=i[r];s.drawOnChartArea&&a({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),s.drawTicks&&a({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:s,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),o=n.display?r.width:0;if(!o)return;const a=i.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let f,h,p,m;this.isHorizontal()?(f=aa(e,this.left,o)-o/2,h=aa(e,this.right,a)+a/2,p=m=c):(p=aa(e,this.top,o)-o/2,m=aa(e,this.bottom,a)+a/2,f=h=c),s.save(),s.lineWidth=r.width,s.strokeStyle=r.color,s.beginPath(),s.moveTo(f,p),s.lineTo(h,m),s.stroke(),s.restore()}drawLabels(e){if(!this.options.ticks.display)return;const n=this.ctx,i=this._computeLabelArea();i&&Dy(n,i);const r=this.getLabelItems(e);for(const o of r){const a=o.options,c=o.font,f=o.label,h=o.textOffset;dp(n,f,0,h,c,a)}i&&Ry(n)}drawTitle(){const{ctx:e,options:{position:s,title:n,reverse:i}}=this;if(!n.display)return;const r=Kn(n.font),o=zi(n.padding),a=n.align;let c=r.lineHeight/2;s==="bottom"||s==="center"||qt(s)?(c+=o.bottom,Js(n.text)&&(c+=r.lineHeight*(n.text.length-1))):c+=o.top;const{titleX:f,titleY:h,maxWidth:p,rotation:m}=Zfe(this,c,s,a);dp(e,n.text,0,0,r,{color:n.color,maxWidth:p,rotation:m,textAlign:Yfe(a,s,i),textBaseline:"middle",translation:[f,h]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,s=e.ticks&&e.ticks.z||0,n=Jt(e.grid&&e.grid.z,-1),i=Jt(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==pm.prototype.draw?[{z:s,draw:r=>{this.draw(r)}}]:[{z:n,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:s,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const s=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=s.length;r<o;++r){const a=s[r];a[n]===this.id&&(!e||a.type===e)&&i.push(a)}return i}_resolveTickFontOptions(e){const s=this.options.ticks.setContext(this.getContext(e));return Kn(s.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class rh{constructor(e,s,n){this.type=e,this.scope=s,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const s=Object.getPrototypeOf(e);let n;Qfe(s)&&(n=this.register(s));const i=this.items,r=e.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in i||(i[r]=e,Xfe(e,o,n),this.override&&$s.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const s=this.items,n=e.id,i=this.scope;n in s&&delete s[n],i&&n in $s[i]&&(delete $s[i][n],this.override&&delete La[n])}}function Xfe(t,e,s){const n=Xu(Object.create(null),[s?$s.get(s):{},$s.get(e),t.defaults]);$s.set(e,n),t.defaultRoutes&&Jfe(e,t.defaultRoutes),t.descriptors&&$s.describe(e,t.descriptors)}function Jfe(t,e){Object.keys(e).forEach(s=>{const n=s.split("."),i=n.pop(),r=[t].concat(n).join("."),o=e[s].split("."),a=o.pop(),c=o.join(".");$s.route(r,i,c,a)})}function Qfe(t){return"id"in t&&"defaults"in t}class ehe{constructor(){this.controllers=new rh(Mu,"datasets",!0),this.elements=new rh(xd,"elements"),this.plugins=new rh(Object,"plugins"),this.scales=new rh(pm,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,s,n){[...s].forEach(i=>{const r=n||this._getRegistryForType(i);n||r.isForType(i)||r===this.plugins&&i.id?this._exec(e,r,i):Xt(i,o=>{const a=n||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,s,n){const i=My(e);cs(n["before"+i],[],n),s[e](n),cs(n["after"+i],[],n)}_getRegistryForType(e){for(let s=0;s<this._typedRegistries.length;s++){const n=this._typedRegistries[s];if(n.isForType(e))return n}return this.plugins}_get(e,s,n){const i=s.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+n+".");return i}}var rr=new ehe;class the{constructor(){this._init=void 0}notify(e,s,n,i){if(s==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const r=i?this._descriptors(e).filter(i):this._descriptors(e),o=this._notify(r,e,s,n);return s==="afterDestroy"&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),o}_notify(e,s,n,i){i=i||{};for(const r of e){const o=r.plugin,a=o[n],c=[s,i,r.options];if(cs(a,c,o)===!1&&i.cancelable)return!1}return!0}invalidate(){hn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const s=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),s}_createDescriptors(e,s){const n=e&&e.config,i=Jt(n.options&&n.options.plugins,{}),r=she(n);return i===!1&&!s?[]:ihe(e,r,i,s)}_notifyStateChanges(e){const s=this._oldCache||[],n=this._cache,i=(r,o)=>r.filter(a=>!o.some(c=>a.plugin.id===c.plugin.id));this._notify(i(s,n),e,"stop"),this._notify(i(n,s),e,"start")}}function she(t){const e={},s=[],n=Object.keys(rr.plugins.items);for(let r=0;r<n.length;r++)s.push(rr.getPlugin(n[r]));const i=t.plugins||[];for(let r=0;r<i.length;r++){const o=i[r];s.indexOf(o)===-1&&(s.push(o),e[o.id]=!0)}return{plugins:s,localIds:e}}function nhe(t,e){return!e&&t===!1?null:t===!0?{}:t}function ihe(t,{plugins:e,localIds:s},n,i){const r=[],o=t.getContext();for(const a of e){const c=a.id,f=nhe(n[c],i);f!==null&&r.push({plugin:a,options:rhe(t.config,{plugin:a,local:s[c]},f,o)})}return r}function rhe(t,{plugin:e,local:s},n,i){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(n,r);return s&&e.defaults&&o.push(e.defaults),t.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Wv(t,e){const s=$s.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||s.indexAxis||"x"}function ohe(t,e){let s=t;return t==="_index_"?s=e:t==="_value_"&&(s=e==="x"?"y":"x"),s}function ahe(t,e){return t===e?"_index_":"_value_"}function Mx(t){if(t==="x"||t==="y"||t==="r")return t}function lhe(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function zv(t,...e){if(Mx(t))return t;for(const s of e){const n=s.axis||lhe(s.position)||t.length>1&&Mx(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Px(t,e,s){if(s[e+"AxisID"]===t)return{axis:e}}function che(t,e){if(e.data&&e.data.datasets){const s=e.data.datasets.filter(n=>n.xAxisID===t||n.yAxisID===t);if(s.length)return Px(t,"x",s[0])||Px(t,"y",s[0])}return{}}function uhe(t,e){const s=La[t.type]||{scales:{}},n=e.scales||{},i=Wv(t.type,e),r=Object.create(null);return Object.keys(n).forEach(o=>{const a=n[o];if(!qt(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const c=zv(o,a,che(o,t),$s.scales[a.type]),f=ahe(c,i),h=s.scales||{};r[o]=Au(Object.create(null),[{axis:c},a,h[c],h[f]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,c=o.indexAxis||Wv(a,e),h=(La[a]||{}).scales||{};Object.keys(h).forEach(p=>{const m=ohe(p,c),_=o[m+"AxisID"]||m;r[_]=r[_]||Object.create(null),Au(r[_],[{axis:m},n[_],h[p]])})}),Object.keys(r).forEach(o=>{const a=r[o];Au(a,[$s.scales[a.type],$s.scale])}),r}function j$(t){const e=t.options||(t.options={});e.plugins=Jt(e.plugins,{}),e.scales=uhe(t,e)}function W$(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function dhe(t){return t=t||{},t.data=W$(t.data),j$(t),t}const Dx=new Map,z$=new Set;function oh(t,e){let s=Dx.get(t);return s||(s=e(),Dx.set(t,s),z$.add(s)),s}const ru=(t,e,s)=>{const n=Ju(e,s);n!==void 0&&t.add(n)};class fhe{constructor(e){this._config=dhe(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=W$(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),j$(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return oh(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,s){return oh(`${e}.transition.${s}`,()=>[[`datasets.${e}.transitions.${s}`,`transitions.${s}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,s){return oh(`${e}-${s}`,()=>[[`datasets.${e}.elements.${s}`,`datasets.${e}`,`elements.${s}`,""]])}pluginScopeKeys(e){const s=e.id,n=this.type;return oh(`${n}-plugin-${s}`,()=>[[`plugins.${s}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,s){const n=this._scopeCache;let i=n.get(e);return(!i||s)&&(i=new Map,n.set(e,i)),i}getOptionScopes(e,s,n){const{options:i,type:r}=this,o=this._cachedScopes(e,n),a=o.get(s);if(a)return a;const c=new Set;s.forEach(h=>{e&&(c.add(e),h.forEach(p=>ru(c,e,p))),h.forEach(p=>ru(c,i,p)),h.forEach(p=>ru(c,La[r]||{},p)),h.forEach(p=>ru(c,$s,p)),h.forEach(p=>ru(c,qv,p))});const f=Array.from(c);return f.length===0&&f.push(Object.create(null)),z$.has(s)&&o.set(s,f),f}chartOptionScopes(){const{options:e,type:s}=this;return[e,La[s]||{},$s.datasets[s]||{},{type:s},$s,qv]}resolveNamedOptions(e,s,n,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=Rx(this._resolverCache,e,i);let c=o;if(phe(o,s)){r.$shared=!1,n=Io(n)?n():n;const f=this.createResolver(e,n,a);c=ec(o,n,f)}for(const f of s)r[f]=c[f];return r}createResolver(e,s,n=[""],i){const{resolver:r}=Rx(this._resolverCache,e,n);return qt(s)?ec(r,s,void 0,i):r}}function Rx(t,e,s){let n=t.get(e);n||(n=new Map,t.set(e,n));const i=s.join();let r=n.get(i);return r||(r={resolver:Ly(e,s),subPrefixes:s.filter(a=>!a.toLowerCase().includes("hover"))},n.set(i,r)),r}const hhe=t=>qt(t)&&Object.getOwnPropertyNames(t).some(e=>Io(t[e]));function phe(t,e){const{isScriptable:s,isIndexable:n}=M$(t);for(const i of e){const r=s(i),o=n(i),a=(o||r)&&t[i];if(r&&(Io(a)||hhe(a))||o&&Js(a))return!0}return!1}var mhe="4.5.1";const ghe=["top","bottom","left","right","chartArea"];function Ix(t,e){return t==="top"||t==="bottom"||ghe.indexOf(t)===-1&&e==="x"}function Lx(t,e){return function(s,n){return s[t]===n[t]?s[e]-n[e]:s[t]-n[t]}}function Nx(t){const e=t.chart,s=e.options.animation;e.notifyPlugins("afterRender"),cs(s&&s.onComplete,[t],e)}function _he(t){const e=t.chart,s=e.options.animation;cs(s&&s.onProgress,[t],e)}function K$(t){return Fy()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const kh={},Vx=t=>{const e=K$(t);return Object.values(kh).filter(s=>s.canvas===e).pop()};function vhe(t,e,s){const n=Object.keys(t);for(const i of n){const r=+i;if(r>=e){const o=t[i];delete t[i],(s>0||r>e)&&(t[r+s]=o)}}}function bhe(t,e,s,n){return!s||t.type==="mouseout"?null:n?e:t}var uo;let mm=(uo=class{static register(...e){rr.add(...e),Fx()}static unregister(...e){rr.remove(...e),Fx()}constructor(e,s){const n=this.config=new fhe(s),i=K$(e),r=Vx(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Nfe(i)),this.platform.updateConfig(n);const a=this.platform.acquireContext(i,o.aspectRatio),c=a&&a.canvas,f=c&&c.height,h=c&&c.width;if(this.id=Wue(),this.ctx=a,this.canvas=c,this.width=h,this.height=f,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new the,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=lde(p=>this.update(p),o.resizeDelay||0),this._dataChanges=[],kh[this.id]=this,!a||!c){console.error("Failed to create chart: can't acquire context from the given item");return}Dr.listen(this,"complete",Nx),Dr.listen(this,"progress",_he),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:s},width:n,height:i,_aspectRatio:r}=this;return hn(e)?s&&r?r:i?n/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return rr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():hx(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return cx(this.canvas,this.ctx),this}stop(){return Dr.stop(this),this}resize(e,s){Dr.running(this)?this._resizeBeforeDraw={width:e,height:s}:this._resize(e,s)}_resize(e,s){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,e,s,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,hx(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),cs(n.onResize,[this,o],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const s=this.options.scales||{};Xt(s,(n,i)=>{n.id=i})}buildOrUpdateScales(){const e=this.options,s=e.scales,n=this.scales,i=Object.keys(n).reduce((o,a)=>(o[a]=!1,o),{});let r=[];s&&(r=r.concat(Object.keys(s).map(o=>{const a=s[o],c=zv(o,a),f=c==="r",h=c==="x";return{options:a,dposition:f?"chartArea":h?"bottom":"left",dtype:f?"radialLinear":h?"category":"linear"}}))),Xt(r,o=>{const a=o.options,c=a.id,f=zv(c,a),h=Jt(a.type,o.dtype);(a.position===void 0||Ix(a.position,f)!==Ix(o.dposition))&&(a.position=o.dposition),i[c]=!0;let p=null;if(c in n&&n[c].type===h)p=n[c];else{const m=rr.getScale(h);p=new m({id:c,type:h,ctx:this.ctx,chart:this}),n[p.id]=p}p.init(a,e)}),Xt(i,(o,a)=>{o||delete n[a]}),Xt(n,o=>{So.configure(this,o,o.options),So.addBox(this,o)})}_updateMetasets(){const e=this._metasets,s=this.data.datasets.length,n=e.length;if(e.sort((i,r)=>i.index-r.index),n>s){for(let i=s;i<n;++i)this._destroyDatasetMeta(i);e.splice(s,n-s)}this._sortedMetasets=e.slice(0).sort(Lx("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:s}}=this;e.length>s.length&&delete this._stacks,e.forEach((n,i)=>{s.filter(r=>r===n._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],s=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=s.length;n<i;n++){const r=s[n];let o=this.getDatasetMeta(n);const a=r.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=r.indexAxis||Wv(a,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const c=rr.getController(a),{datasetElementType:f,dataElementType:h}=$s.datasets[a];Object.assign(c,{dataElementType:rr.getElement(h),datasetElementType:f&&rr.getElement(f)}),o.controller=new c(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Xt(this.data.datasets,(e,s)=>{this.getDatasetMeta(s).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const s=this.config;s.update();const n=this._options=s.createResolver(s.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let f=0,h=this.data.datasets.length;f<h;f++){const{controller:p}=this.getDatasetMeta(f),m=!i&&r.indexOf(p)===-1;p.buildOrUpdateElements(m),o=Math.max(+p.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||Xt(r,f=>{f.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Lx("z","_idx"));const{_active:a,_lastEvent:c}=this;c?this._eventHandler(c,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Xt(this.scales,e=>{So.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,s=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!ex(s,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,s=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of s){const o=n==="_removeElements"?-r:r;vhe(e,i,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const s=this.data.datasets.length,n=r=>new Set(e.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),i=n(0);for(let r=1;r<s;r++)if(!ex(i,n(r)))return;return Array.from(i).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;So.update(this,this.width,this.height,e);const s=this.chartArea,n=s.width<=0||s.height<=0;this._layers=[],Xt(this.boxes,i=>{n&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,r)=>{i._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let s=0,n=this.data.datasets.length;s<n;++s)this.getDatasetMeta(s).controller.configure();for(let s=0,n=this.data.datasets.length;s<n;++s)this._updateDataset(s,Io(e)?e({datasetIndex:s}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,s){const n=this.getDatasetMeta(e),i={meta:n,index:e,mode:s,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(n.controller._update(s),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Dr.has(this)?this.attached&&!Dr.running(this)&&Dr.start(this):(this.draw(),Nx({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:n,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const s=this._layers;for(e=0;e<s.length&&s[e].z<=0;++e)s[e].draw(this.chartArea);for(this._drawDatasets();e<s.length;++e)s[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const s=this._sortedMetasets,n=[];let i,r;for(i=0,r=s.length;i<r;++i){const o=s[i];(!e||o.visible)&&n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let s=e.length-1;s>=0;--s)this._drawDataset(e[s]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const s=this.ctx,n={meta:e,index:e.index,cancelable:!0},i=Yde(this,e);this.notifyPlugins("beforeDatasetDraw",n)!==!1&&(i&&Dy(s,i),e.controller.draw(),i&&Ry(s),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(e){return O$(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,s,n,i){const r=gfe.modes[s];return typeof r=="function"?r(this,e,n,i):[]}getDatasetMeta(e){const s=this.data.datasets[e],n=this._metasets;let i=n.filter(r=>r&&r._dataset===s).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:s&&s.order||0,index:e,_dataset:s,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=ac(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const s=this.data.datasets[e];if(!s)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!s.hidden}setDatasetVisibility(e,s){const n=this.getDatasetMeta(e);n.hidden=!s}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,s,n){const i=n?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,i);ap(s)?(r.data[s].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(r,{visible:n}),this.update(a=>a.datasetIndex===e?i:void 0))}hide(e,s){this._updateVisibility(e,s,!1)}show(e,s){this._updateVisibility(e,s,!0)}_destroyDatasetMeta(e){const s=this._metasets[e];s&&s.controller&&s.controller._destroy(),delete this._metasets[e]}_stop(){let e,s;for(this.stop(),Dr.remove(this),e=0,s=this.data.datasets.length;e<s;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:s}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),cx(e,s),this.platform.releaseContext(s),this.canvas=null,this.ctx=null),delete kh[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,s=this.platform,n=(r,o)=>{s.addEventListener(this,r,o),e[r]=o},i=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};Xt(this.options.events,r=>n(r,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,s=this.platform,n=(c,f)=>{s.addEventListener(this,c,f),e[c]=f},i=(c,f)=>{e[c]&&(s.removeEventListener(this,c,f),delete e[c])},r=(c,f)=>{this.canvas&&this.resize(c,f)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",a)},s.isAttached(this.canvas)?a():o()}unbindEvents(){Xt(this._listeners,(e,s)=>{this.platform.removeEventListener(this,s,e)}),this._listeners={},Xt(this._responsiveListeners,(e,s)=>{this.platform.removeEventListener(this,s,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,s,n){const i=n?"set":"remove";let r,o,a,c;for(s==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),a=0,c=e.length;a<c;++a){o=e[a];const f=o&&this.getDatasetMeta(o.datasetIndex).controller;f&&f[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const s=this._active||[],n=e.map(({datasetIndex:r,index:o})=>{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!rp(n,s)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,s))}notifyPlugins(e,s,n){return this._plugins.notify(this,e,s,n)}isPluginEnabled(e){return this._plugins._cache.filter(s=>s.plugin.id===e).length===1}_updateHoverStyles(e,s,n){const i=this.options.hover,r=(c,f)=>c.filter(h=>!f.some(p=>h.datasetIndex===p.datasetIndex&&h.index===p.index)),o=r(s,e),a=n?e:r(e,s);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,s){const n={event:e,replay:s,cancelable:!0,inChartArea:this.isPointInArea(e)},i=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,i)===!1)return;const r=this._handleEvent(e,s,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(e,s,n){const{_active:i=[],options:r}=this,o=s,a=this._getActiveElements(e,i,n,o),c=Xue(e),f=bhe(e,this._lastEvent,n,c);n&&(this._lastEvent=null,cs(r.onHover,[e,a,this],this),c&&cs(r.onClick,[e,a,this],this));const h=!rp(a,i);
93return(h||s)&&(this._active=a,this._updateHoverStyles(a,i,s)),this._lastEvent=f,h}_getActiveElements(e,s,n,i){if(e.type==="mouseout")return[];if(!n)return s;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,i)}},xt(uo,"defaults",$s),xt(uo,"instances",kh),xt(uo,"overrides",La),xt(uo,"registry",rr),xt(uo,"version",mhe),xt(uo,"getChart",Vx),uo);function Fx(){return Xt(mm.instances,t=>t._plugins.invalidate())}function yhe(t,e,s){const{startAngle:n,x:i,y:r,outerRadius:o,innerRadius:a,options:c}=e,{borderWidth:f,borderJoinStyle:h}=c,p=Math.min(f/o,ar(n-s));if(t.beginPath(),t.arc(i,r,o-f/2,n+p/2,s-p/2),a>0){const m=Math.min(f/a,ar(n-s));t.arc(i,r,a+f/2,s-m/2,n+m/2,!0)}else{const m=Math.min(f/2,o*ar(n-s));if(h==="round")t.arc(i,r,m,s-us/2,n+us/2,!0);else if(h==="bevel"){const _=2*m*m,v=-_*Math.cos(s+us/2)+i,b=-_*Math.sin(s+us/2)+r,S=_*Math.cos(n+us/2)+i,C=_*Math.sin(n+us/2)+r;t.lineTo(v,b),t.lineTo(S,C)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function whe(t,e,s){const{startAngle:n,pixelMargin:i,x:r,y:o,outerRadius:a,innerRadius:c}=e;let f=i/a;t.beginPath(),t.arc(r,o,a,n-f,s+f),c>i?(f=i/c,t.arc(r,o,c,s+f,n-f,!0)):t.arc(r,o,i,s+qs,n-qs),t.closePath(),t.clip()}function xhe(t){return Iy(t,["outerStart","outerEnd","innerStart","innerEnd"])}function She(t,e,s,n){const i=xhe(t.options.borderRadius),r=(s-e)/2,o=Math.min(r,n*e/2),a=c=>{const f=(s-Math.min(r,c))*n/2;return Ci(c,0,Math.min(r,f))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Ci(i.innerStart,0,o),innerEnd:Ci(i.innerEnd,0,o)}}function xl(t,e,s,n){return{x:s+t*Math.cos(e),y:n+t*Math.sin(e)}}function pp(t,e,s,n,i,r){const{x:o,y:a,startAngle:c,pixelMargin:f,innerRadius:h}=e,p=Math.max(e.outerRadius+n+s-f,0),m=h>0?h+n+s+f:0;let _=0;const v=i-c;if(n){const Ee=h>0?h-n:0,he=p>0?p-n:0,ye=(Ee+he)/2,xe=ye!==0?v*ye/(ye+n):v;_=(v-xe)/2}const b=Math.max(.001,v*p-s/us)/p,S=(v-b)/2,C=c+S+_,O=i-S-_,{outerStart:A,outerEnd:$,innerStart:T,innerEnd:D}=She(e,m,p,O-C),B=p-A,N=p-$,F=C+A/B,L=O-$/N,Y=m+T,Z=m+D,le=C+T/Y,Ce=O-D/Z;if(t.beginPath(),r){const Ee=(F+L)/2;if(t.arc(o,a,p,F,Ee),t.arc(o,a,p,Ee,L),$>0){const _e=xl(N,L,o,a);t.arc(_e.x,_e.y,$,L,O+qs)}const he=xl(Z,O,o,a);if(t.lineTo(he.x,he.y),D>0){const _e=xl(Z,Ce,o,a);t.arc(_e.x,_e.y,D,O+qs,Ce+Math.PI)}const ye=(O-D/m+(C+T/m))/2;if(t.arc(o,a,m,O-D/m,ye,!0),t.arc(o,a,m,ye,C+T/m,!0),T>0){const _e=xl(Y,le,o,a);t.arc(_e.x,_e.y,T,le+Math.PI,C-qs)}const xe=xl(B,C,o,a);if(t.lineTo(xe.x,xe.y),A>0){const _e=xl(B,F,o,a);t.arc(_e.x,_e.y,A,C-qs,F)}}else{t.moveTo(o,a);const Ee=Math.cos(F)*p+o,he=Math.sin(F)*p+a;t.lineTo(Ee,he);const ye=Math.cos(L)*p+o,xe=Math.sin(L)*p+a;t.lineTo(ye,xe)}t.closePath()}function Ehe(t,e,s,n,i){const{fullCircles:r,startAngle:o,circumference:a}=e;let c=e.endAngle;if(r){pp(t,e,s,n,c,i);for(let f=0;f<r;++f)t.fill();isNaN(a)||(c=o+(a%Ms||Ms))}return pp(t,e,s,n,c,i),t.fill(),c}function Che(t,e,s,n,i){const{fullCircles:r,startAngle:o,circumference:a,options:c}=e,{borderWidth:f,borderJoinStyle:h,borderDash:p,borderDashOffset:m,borderRadius:_}=c,v=c.borderAlign==="inner";if(!f)return;t.setLineDash(p||[]),t.lineDashOffset=m,v?(t.lineWidth=f*2,t.lineJoin=h||"round"):(t.lineWidth=f,t.lineJoin=h||"bevel");let b=e.endAngle;if(r){pp(t,e,s,n,b,i);for(let S=0;S<r;++S)t.stroke();isNaN(a)||(b=o+(a%Ms||Ms))}v&&whe(t,e,b),c.selfJoin&&b-o>=us&&_===0&&h!=="miter"&&yhe(t,e,b),r||(pp(t,e,s,n,b,i),t.stroke())}class pu extends xd{constructor(s){super();xt(this,"circumference");xt(this,"endAngle");xt(this,"fullCircles");xt(this,"innerRadius");xt(this,"outerRadius");xt(this,"pixelMargin");xt(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,s&&Object.assign(this,s)}inRange(s,n,i){const r=this.getProps(["x","y"],i),{angle:o,distance:a}=S$(r,{x:s,y:n}),{startAngle:c,endAngle:f,innerRadius:h,outerRadius:p,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),_=(this.options.spacing+this.options.borderWidth)/2,v=Jt(m,f-c),b=up(o,c,f)&&c!==f,S=v>=Ms||b,C=du(a,h+_,p+_);return S&&C}getCenterPoint(s){const{x:n,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],s),{offset:f,spacing:h}=this.options,p=(r+o)/2,m=(a+c+h+f)/2;return{x:n+Math.cos(p)*m,y:i+Math.sin(p)*m}}tooltipPosition(s){return this.getCenterPoint(s)}draw(s){const{options:n,circumference:i}=this,r=(n.offset||0)/4,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>Ms?Math.floor(i/Ms):0,i===0||this.innerRadius<0||this.outerRadius<0)return;s.save();const c=(this.startAngle+this.endAngle)/2;s.translate(Math.cos(c)*r,Math.sin(c)*r);const f=1-Math.sin(Math.min(us,i||0)),h=r*f;s.fillStyle=n.backgroundColor,s.strokeStyle=n.borderColor,Ehe(s,this,h,o,a),Che(s,this,h,o,a),s.restore(
vendor: 29,845 bytes, lines 93-95
93)}}xt(pu,"id","arc"),xt(pu,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),xt(pu,"defaultRoutes",{backgroundColor:"backgroundColor"}),xt(pu,"descriptors",{_scriptable:!0,_indexable:s=>s!=="borderDash"});const Bx=(t,e)=>{let{boxHeight:s=e,boxWidth:n=e}=t;return t.usePointStyle&&(s=Math.min(s,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:s,itemHeight:Math.max(e,s)}},khe=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Ux extends xd{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,s,n){this.maxWidth=e,this.maxHeight=s,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let s=cs(e.generateLabels,[this.chart],this)||[];e.filter&&(s=s.filter(n=>e.filter(n,this.chart.data))),e.sort&&(s=s.sort((n,i)=>e.sort(n,i,this.chart.data))),this.options.reverse&&s.reverse(),this.legendItems=s}fit(){const{options:e,ctx:s}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,i=Kn(n.font),r=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:c}=Bx(n,r);let f,h;s.font=i.string,this.isHorizontal()?(f=this.maxWidth,h=this._fitRows(o,r,a,c)+10):(h=this.maxHeight,f=this._fitCols(o,i,a,c)+10),this.width=Math.min(f,e.maxWidth||this.maxWidth),this.height=Math.min(h,e.maxHeight||this.maxHeight)}_fitRows(e,s,n,i){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,c=this.legendHitBoxes=[],f=this.lineWidths=[0],h=i+a;let p=e;r.textAlign="left",r.textBaseline="middle";let m=-1,_=-h;return this.legendItems.forEach((v,b)=>{const S=n+s/2+r.measureText(v.text).width;(b===0||f[f.length-1]+S+2*a>o)&&(p+=h,f[f.length-(b>0?0:1)]=0,_+=h,m++),c[b]={left:0,top:_,row:m,width:S,height:i},f[f.length-1]+=S+a}),p}_fitCols(e,s,n,i){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,c=this.legendHitBoxes=[],f=this.columnSizes=[],h=o-e;let p=a,m=0,_=0,v=0,b=0;return this.legendItems.forEach((S,C)=>{const{itemWidth:O,itemHeight:A}=Ahe(n,s,r,S,i);C>0&&_+A+2*a>h&&(p+=m+a,f.push({width:m,height:_}),v+=m+a,b++,m=_=0),c[C]={left:v,top:_,col:b,width:O,height:A},m=Math.max(m,O),_+=A+a}),p+=m,f.push({width:m,height:_}),p}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:s,options:{align:n,labels:{padding:i},rtl:r}}=this,o=Ll(r,this.left,this.width);if(this.isHorizontal()){let a=0,c=si(n,this.left+i,this.right-this.lineWidths[a]);for(const f of s)a!==f.row&&(a=f.row,c=si(n,this.left+i,this.right-this.lineWidths[a])),f.top+=this.top+e+i,f.left=o.leftForLtr(o.x(c),f.width),c+=f.width+i}else{let a=0,c=si(n,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const f of s)f.col!==a&&(a=f.col,c=si(n,this.top+e+i,this.bottom-this.columnSizes[a].height)),f.top=c,f.left+=this.left+i,f.left=o.leftForLtr(o.x(f.left),f.width),c+=f.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Dy(e,this),this._draw(),Ry(e)}}_draw(){const{options:e,columnSizes:s,lineWidths:n,ctx:i}=this,{align:r,labels:o}=e,a=$s.color,c=Ll(e.rtl,this.left,this.width),f=Kn(o.font),{padding:h}=o,p=f.size,m=p/2;let _;this.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=f.string;const{boxWidth:v,boxHeight:b,itemHeight:S}=Bx(o,p),C=function(D,B,N){if(isNaN(v)||v<=0||isNaN(b)||b<0)return;i.save();const F=Jt(N.lineWidth,1);if(i.fillStyle=Jt(N.fillStyle,a),i.lineCap=Jt(N.lineCap,"butt"),i.lineDashOffset=Jt(N.lineDashOffset,0),i.lineJoin=Jt(N.lineJoin,"miter"),i.lineWidth=F,i.strokeStyle=Jt(N.strokeStyle,a),i.setLineDash(Jt(N.lineDash,[])),o.usePointStyle){const L={radius:b*Math.SQRT2/2,pointStyle:N.pointStyle,rotation:N.rotation,borderWidth:F},Y=c.xPlus(D,v/2),Z=B+m;T$(i,L,Y,Z,o.pointStyleWidth&&v)}else{const L=B+Math.max((p-b)/2,0),Y=c.leftForLtr(D,v),Z=Ou(N.borderRadius);i.beginPath(),Object.values(Z).some(le=>le!==0)?Hv(i,{x:Y,y:L,w:v,h:b,radius:Z}):i.rect(Y,L,v,b),i.fill(),F!==0&&i.stroke()}i.restore()},O=function(D,B,N){dp(i,N.text,D,B+S/2,f,{strikethrough:N.hidden,textAlign:c.textAlign(N.textAlign)})},A=this.isHorizontal(),$=this._computeTitleHeight();A?_={x:si(r,this.left+h,this.right-n[0]),y:this.top+h+$,line:0}:_={x:this.left+h,y:si(r,this.top+$+h,this.bottom-s[0].height),line:0},I$(this.ctx,e.textDirection);const T=S+h;this.legendItems.forEach((D,B)=>{i.strokeStyle=D.fontColor,i.fillStyle=D.fontColor;const N=i.measureText(D.text).width,F=c.textAlign(D.textAlign||(D.textAlign=o.textAlign)),L=v+m+N;let Y=_.x,Z=_.y;c.setWidth(this.width),A?B>0&&Y+L+h>this.right&&(Z=_.y+=T,_.line++,Y=_.x=si(r,this.left+h,this.right-n[_.line])):B>0&&Z+T>this.bottom&&(Y=_.x=Y+s[_.line].width+h,_.line++,Z=_.y=si(r,this.top+$+h,this.bottom-s[_.line].height));const le=c.x(Y);if(C(le,Z,D),Y=cde(F,Y+v+m,A?Y+L:this.right,e.rtl),O(c.x(Y),Z,D),A)_.x+=L+h;else if(typeof D.text!="string"){const Ce=f.lineHeight;_.y+=G$(D,Ce)+h}else _.y+=T}),L$(this.ctx,e.textDirection)}drawTitle(){const e=this.options,s=e.title,n=Kn(s.font),i=zi(s.padding);if(!s.display)return;const r=Ll(e.rtl,this.left,this.width),o=this.ctx,a=s.position,c=n.size/2,f=i.top+c;let h,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),h=this.top+f,p=si(e.align,p,this.right-m);else{const v=this.columnSizes.reduce((b,S)=>Math.max(b,S.height),0);h=f+si(e.align,this.top,this.bottom-v-e.labels.padding-this._computeTitleHeight())}const _=si(a,p,p+m);o.textAlign=r.textAlign(A$(a)),o.textBaseline="middle",o.strokeStyle=s.color,o.fillStyle=s.color,o.font=n.string,dp(o,s.text,_,h,n)}_computeTitleHeight(){const e=this.options.title,s=Kn(e.font),n=zi(e.padding);return e.display?s.lineHeight+n.height:0}_getLegendItemAt(e,s){let n,i,r;if(du(e,this.left,this.right)&&du(s,this.top,this.bottom)){for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(i=r[n],du(e,i.left,i.left+i.width)&&du(s,i.top,i.top+i.height))return this.legendItems[n]}return null}handleEvent(e){const s=this.options;if(!Ohe(e.type,s))return;const n=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,r=khe(i,n);i&&!r&&cs(s.onLeave,[e,i,this],this),this._hoveredItem=n,n&&!r&&cs(s.onHover,[e,n,this],this)}else n&&cs(s.onClick,[e,n,this],this)}}function Ahe(t,e,s,n,i){const r=$he(n,t,e,s),o=The(i,n,e.lineHeight);return{itemWidth:r,itemHeight:o}}function $he(t,e,s,n){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((r,o)=>r.length>o.length?r:o)),e+s.size/2+n.measureText(i).width}function The(t,e,s){let n=t;return typeof e.text!="string"&&(n=G$(e,s)),n}function G$(t,e){const s=t.text?t.text.length:0;return e*s}function Ohe(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Mhe={id:"legend",_element:Ux,start(t,e,s){const n=t.legend=new Ux({ctx:t.ctx,options:s,chart:t});So.configure(t,n,s),So.addBox(t,n)},stop(t){So.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,s){const n=t.legend;So.configure(t,n,s),n.options=s},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,s){const n=e.datasetIndex,i=s.chart;i.isDatasetVisible(n)?(i.hide(n),e.hidden=!0):(i.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:s,pointStyle:n,textAlign:i,color:r,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(c=>{const f=c.controller.getStyle(s?0:void 0),h=zi(f.borderWidth);return{text:e[c.index].label,fillStyle:f.backgroundColor,fontColor:r,hidden:!c.visible,lineCap:f.borderCapStyle,lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:f.borderColor,pointStyle:n||f.pointStyle,rotation:f.rotation,textAlign:i||f.textAlign,borderRadius:o&&(a||f.borderRadius),datasetIndex:c.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const mu={average(t){if(!t.length)return!1;let e,s,n=new Set,i=0,r=0;for(e=0,s=t.length;e<s;++e){const a=t[e].element;if(a&&a.hasValue()){const c=a.tooltipPosition();n.add(c.x),i+=c.y,++r}}return r===0||n.size===0?!1:{x:[...n].reduce((a,c)=>a+c)/n.size,y:i/r}},nearest(t,e){if(!t.length)return!1;let s=e.x,n=e.y,i=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=t.length;r<o;++r){const c=t[r].element;if(c&&c.hasValue()){const f=c.getCenterPoint(),h=sde(e,f);h<i&&(i=h,a=c)}}if(a){const c=a.tooltipPosition();s=c.x,n=c.y}return{x:s,y:n}}};function nr(t,e){return e&&(Js(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Rr(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(` 94`)>-1?t.split(` 95`):t}function Phe(t,e){const{element:s,datasetIndex:n,index:i}=e,r=t.getDatasetMeta(n).controller,{label:o,value:a}=r.getLabelAndValue(i);return{chart:t,label:o,parsed:r.getParsed(i),raw:t.data.datasets[n].data[i],formattedValue:a,dataset:r.getDataset(),dataIndex:i,datasetIndex:n,element:s}}function qx(t,e){const s=t.chart.ctx,{body:n,footer:i,title:r}=t,{boxWidth:o,boxHeight:a}=e,c=Kn(e.bodyFont),f=Kn(e.titleFont),h=Kn(e.footerFont),p=r.length,m=i.length,_=n.length,v=zi(e.padding);let b=v.height,S=0,C=n.reduce(($,T)=>$+T.before.length+T.lines.length+T.after.length,0);if(C+=t.beforeBody.length+t.afterBody.length,p&&(b+=p*f.lineHeight+(p-1)*e.titleSpacing+e.titleMarginBottom),C){const $=e.displayColors?Math.max(a,c.lineHeight):c.lineHeight;b+=_*$+(C-_)*c.lineHeight+(C-1)*e.bodySpacing}m&&(b+=e.footerMarginTop+m*h.lineHeight+(m-1)*e.footerSpacing);let O=0;const A=function($){S=Math.max(S,s.measureText($).width+O)};return s.save(),s.font=f.string,Xt(t.title,A),s.font=c.string,Xt(t.beforeBody.concat(t.afterBody),A),O=e.displayColors?o+2+e.boxPadding:0,Xt(n,$=>{Xt($.before,A),Xt($.lines,A),Xt($.after,A)}),O=0,s.font=h.string,Xt(t.footer,A),s.restore(),S+=v.width,{width:S,height:b}}function Dhe(t,e){const{y:s,height:n}=e;return s<n/2?"top":s>t.height-n/2?"bottom":"center"}function Rhe(t,e,s,n){const{x:i,width:r}=n,o=s.caretSize+s.caretPadding;if(t==="left"&&i+r+o>e.width||t==="right"&&i-r-o<0)return!0}function Ihe(t,e,s,n){const{x:i,width:r}=s,{width:o,chartArea:{left:a,right:c}}=t;let f="center";return n==="center"?f=i<=(a+c)/2?"left":"right":i<=r/2?f="left":i>=o-r/2&&(f="right"),Rhe(f,t,e,s)&&(f="center"),f}function Hx(t,e,s){const n=s.yAlign||e.yAlign||Dhe(t,s);return{xAlign:s.xAlign||e.xAlign||Ihe(t,e,s,n),yAlign:n}}function Lhe(t,e){let{x:s,width:n}=t;return e==="right"?s-=n:e==="center"&&(s-=n/2),s}function Nhe(t,e,s){let{y:n,height:i}=t;return e==="top"?n+=s:e==="bottom"?n-=i+s:n-=i/2,n}function jx(t,e,s,n){const{caretSize:i,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:c}=s,f=i+r,{topLeft:h,topRight:p,bottomLeft:m,bottomRight:_}=Ou(o);let v=Lhe(e,a);const b=Nhe(e,c,f);return c==="center"?a==="left"?v+=f:a==="right"&&(v-=f):a==="left"?v-=Math.max(h,m)+i:a==="right"&&(v+=Math.max(p,_)+i),{x:Ci(v,0,n.width-e.width),y:Ci(b,0,n.height-e.height)}}function ah(t,e,s){const n=zi(s.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function Wx(t){return nr([],Rr(t))}function Vhe(t,e,s){return ac(t,{tooltip:e,tooltipItems:s,type:"tooltip"})}function zx(t,e){const s=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return s?t.override(s):t}const Y$={beforeTitle:Mr,title(t){if(t.length>0){const e=t[0],s=e.chart.data.labels,n=s?s.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return s[e.dataIndex]}return""},afterTitle:Mr,beforeBody:Mr,beforeLabel:Mr,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const s=t.formattedValue;return hn(s)||(e+=s),e},labelColor(t){const s=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:s.borderColor,backgroundColor:s.backgroundColor,borderWidth:s.borderWidth,borderDash:s.borderDash,borderDashOffset:s.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const s=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:s.pointStyle,rotation:s.rotation}},afterLabel:Mr,afterBody:Mr,beforeFooter:Mr,footer:Mr,afterFooter:Mr};function Nn(t,e,s,n){const i=t[e].call(s,n);return typeof i>"u"?Y$[e].call(s,n):i}class Kv extends xd{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const s=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&s.options.animation&&n.animations,r=new N$(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Vhe(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,s){const{callbacks:n}=s,i=Nn(n,"beforeTitle",this,e),r=Nn(n,"title",this,e),o=Nn(n,"afterTitle",this,e);let a=[];return a=nr(a,Rr(i)),a=nr(a,Rr(r)),a=nr(a,Rr(o)),a}getBeforeBody(e,s){return Wx(Nn(s.callbacks,"beforeBody",this,e))}getBody(e,s){const{callbacks:n}=s,i=[];return Xt(e,r=>{const o={before:[],lines:[],after:[]},a=zx(n,r);nr(o.before,Rr(Nn(a,"beforeLabel",this,r))),nr(o.lines,Nn(a,"label",this,r)),nr(o.after,Rr(Nn(a,"afterLabel",this,r))),i.push(o)}),i}getAfterBody(e,s){return Wx(Nn(s.callbacks,"afterBody",this,e))}getFooter(e,s){const{callbacks:n}=s,i=Nn(n,"beforeFooter",this,e),r=Nn(n,"footer",this,e),o=Nn(n,"afterFooter",this,e);let a=[];return a=nr(a,Rr(i)),a=nr(a,Rr(r)),a=nr(a,Rr(o)),a}_createItems(e){const s=this._active,n=this.chart.data,i=[],r=[],o=[];let a=[],c,f;for(c=0,f=s.length;c<f;++c)a.push(Phe(this.chart,s[c]));return e.filter&&(a=a.filter((h,p,m)=>e.filter(h,p,m,n))),e.itemSort&&(a=a.sort((h,p)=>e.itemSort(h,p,n))),Xt(a,h=>{const p=zx(e.callbacks,h);i.push(Nn(p,"labelColor",this,h)),r.push(Nn(p,"labelPointStyle",this,h)),o.push(Nn(p,"labelTextColor",this,h))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(e,s){const n=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(!i.length)this.opacity!==0&&(r={opacity:0});else{const a=mu[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const c=this._size=qx(this,n),f=Object.assign({},a,c),h=Hx(this.chart,n,f),p=jx(n,f,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,r={opacity:1,x:p.x,y:p.y,width:c.width,height:c.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:s})}drawCaret(e,s,n,i){const r=this.getCaretPosition(e,n,i);s.lineTo(r.x1,r.y1),s.lineTo(r.x2,r.y2),s.lineTo(r.x3,r.y3)}getCaretPosition(e,s,n){const{xAlign:i,yAlign:r}=this,{caretSize:o,cornerRadius:a}=n,{topLeft:c,topRight:f,bottomLeft:h,bottomRight:p}=Ou(a),{x:m,y:_}=e,{width:v,height:b}=s;let S,C,O,A,$,T;return r==="center"?($=_+b/2,i==="left"?(S=m,C=S-o,A=$+o,T=$-o):(S=m+v,C=S+o,A=$-o,T=$+o),O=S):(i==="left"?C=m+Math.max(c,h)+o:i==="right"?C=m+v-Math.max(f,p)-o:C=this.caretX,r==="top"?(A=_,$=A-o,S=C-o,O=C+o):(A=_+b,$=A+o,S=C+o,O=C-o),T=A),{x1:S,x2:C,x3:O,y1:A,y2:$,y3:T}}drawTitle(e,s,n){const i=this.title,r=i.length;let o,a,c;if(r){const f=Ll(n.rtl,this.x,this.width);for(e.x=ah(this,n.titleAlign,n),s.textAlign=f.textAlign(n.titleAlign),s.textBaseline="middle",o=Kn(n.titleFont),a=n.titleSpacing,s.fillStyle=n.titleColor,s.font=o.string,c=0;c<r;++c)s.fillText(i[c],f.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+a,c+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,s,n,i,r){const o=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:c,boxWidth:f}=r,h=Kn(r.bodyFont),p=ah(this,"left",r),m=i.x(p),_=c<h.lineHeight?(h.lineHeight-c)/2:0,v=s.y+_;if(r.usePointStyle){const b={radius:Math.min(f,c)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},S=i.leftForLtr(m,f)+f/2,C=v+c/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,ux(e,b,S,C),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,ux(e,b,S,C)}else{e.lineWidth=qt(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const b=i.leftForLtr(m,f),S=i.leftForLtr(i.xPlus(m,1),f-2),C=Ou(o.borderRadius);Object.values(C).some(O=>O!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Hv(e,{x:b,y:v,w:f,h:c,radius:C}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Hv(e,{x:S,y:v+1,w:f-2,h:c-2,radius:C}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(b,v,f,c),e.strokeRect(b,v,f,c),e.fillStyle=o.backgroundColor,e.fillRect(S,v+1,f-2,c-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,s,n){const{body:i}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:c,boxWidth:f,boxPadding:h}=n,p=Kn(n.bodyFont);let m=p.lineHeight,_=0;const v=Ll(n.rtl,this.x,this.width),b=function(N){s.fillText(N,v.x(e.x+_),e.y+m/2),e.y+=m+r},S=v.textAlign(o);let C,O,A,$,T,D,B;for(s.textAlign=o,s.textBaseline="middle",s.font=p.string,e.x=ah(this,S,n),s.fillStyle=n.bodyColor,Xt(this.beforeBody,b),_=a&&S!=="right"?o==="center"?f/2+h:f+2+h:0,$=0,D=i.length;$<D;++$){for(C=i[$],O=this.labelTextColors[$],s.fillStyle=O,Xt(C.before,b),A=C.lines,a&&A.length&&(this._drawColorBox(s,e,$,v,n),m=Math.max(p.lineHeight,c)),T=0,B=A.length;T<B;++T)b(A[T]),m=p.lineHeight;Xt(C.after,b)}_=0,m=p.lineHeight,Xt(this.afterBody,b),e.y-=r}drawFooter(e,s,n){const i=this.footer,r=i.length;let o,a;if(r){const c=Ll(n.rtl,this.x,this.width);for(e.x=ah(this,n.footerAlign,n),e.y+=n.footerMarginTop,s.textAlign=c.textAlign(n.footerAlign),s.textBaseline="middle",o=Kn(n.footerFont),s.fillStyle=n.footerColor,s.font=o.string,a=0;a<r;++a)s.fillText(i[a],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+n.footerSpacing}}drawBackground(e,s,n,i){const{xAlign:r,yAlign:o}=this,{x:a,y:c}=e,{width:f,height:h}=n,{topLeft:p,topRight:m,bottomLeft:_,bottomRight:v}=Ou(i.cornerRadius);s.fillStyle=i.backgroundColor,s.strokeStyle=i.borderColor,s.lineWidth=i.borderWidth,s.beginPath(),s.moveTo(a+p,c),o==="top"&&this.drawCaret(e,s,n,i),s.lineTo(a+f-m,c),s.quadraticCurveTo(a+f,c,a+f,c+m),o==="center"&&r==="right"&&this.drawCaret(e,s,n,i),s.lineTo(a+f,c+h-v),s.quadraticCurveTo(a+f,c+h,a+f-v,c+h),o==="bottom"&&this.drawCaret(e,s,n,i),s.lineTo(a+_,c+h),s.quadraticCurveTo(a,c+h,a,c+h-_),o==="center"&&r==="left"&&this.drawCaret(e,s,n,i),s.lineTo(a,c+p),s.quadraticCurveTo(a,c,a+p,c),s.closePath(),s.fill(),i.borderWidth>0&&s.stroke()}_updateAnimationTarget(e){const s=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const o=mu[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=qx(this,e),c=Object.assign({},o,this._size),f=Hx(s,e,c),h=jx(e,c,f,s);(i._to!==h.x||r._to!==h.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(e){const s=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(s);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=zi(s.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;s.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,i,s),I$(e,s.textDirection),r.y+=o.top,this.drawTitle(r,e,s),this.drawBody(r,e,s),this.drawFooter(r,e,s),L$(e,s.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,s){const n=this._active,i=e.map(({datasetIndex:a,index:c})=>{const f=this.chart.getDatasetMeta(a);if(!f)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:f.data[c],index:c}}),r=!rp(n,i),o=this._positionChanged(i,s);(r||o)&&(this._active=i,this._eventPosition=s,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,s,n=!0){if(s&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],o=this._getActiveElements(e,r,s,n),a=this._positionChanged(o,e),c=s||!rp(o,r)||a;return c&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,s))),c}_getActiveElements(e,s,n,i){const r=this.options;if(e.type==="mouseout")return[];if(!i)return s.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&o.reverse(),o}_positionChanged(e,s){const{caretX:n,caretY:i,options:r}=this,o=mu[r.position].call(this,e,s);return o!==!1&&(n!==o.x||i!==o.y)}}xt(Kv,"positioners",mu);var Fhe={id:"tooltip",_element:Kv,positioners:mu,afterInit(t,e,s){s&&(t.tooltip=new Kv({chart:t,options:s}))},beforeUpdate(t,e,s){t.tooltip&&t.tooltip.initialize(s)},reset(t,e,s){t.tooltip&&t.tooltip.initialize(s)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const s={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...s,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",s)}},afterEvent(t,e){if(t.tooltip){const s=e.replay;t.tooltip.handleEvent(e.event,s,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Y$},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const gm={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},jn=Object.keys(gm);function Kx(t,e){return t-e}function Gx(t,e){if(hn(e))return null;const s=t._adapter,{parser:n,round:i,isoWeekday:r}=t._parseOpts;let o=e;return typeof n=="function"&&(o=n(o)),Yr(o)||(o=typeof n=="string"?s.parse(o,n):s.parse(o)),o===null?null:(i&&(o=i==="week"&&(cp(r)||r===!0)?s.startOf(o,"isoWeek",r):s.startOf(o,i)),+o)}function Yx(t,e,s,n){const i=jn.length;for(let r=jn.indexOf(t);r<i-1;++r){const o=gm[jn[r]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((s-e)/(a*o.size))<=n)return jn[r]}return jn[i-1]}function Bhe(t,e,s,n,i){for(let r=jn.length-1;r>=jn.indexOf(s);r--){const o=jn[r];if(gm[o].common&&t._adapter.diff(i,n,o)>=e-1)return o}return jn[s?jn.indexOf(s):0]}function Uhe(t){for(let e=jn.indexOf(t)+1,s=jn.length;e<s;++e)if(gm[jn[e]].common)return jn[e]}function Zx(t,e,s){if(!s)t[e]=!0;else if(s.length){const{lo:n,hi:i}=Py(s,e),r=s[n]>=e?s[n]:s[i];t[r]=!0}}function qhe(t,e,s,n){const i=t._adapter,r=+i.startOf(e[0].value,n),o=e[e.length-1].value;let a,c;for(a=r;a<=o;a=+i.add(a,1,n))c=s[a],c>=0&&(e[c].major=!0);return e}function Xx(t,e,s){const n=[],i={},r=e.length;let o,a;for(o=0;o<r;++o)a=e[o],i[a]=o,n.push({value:a,major:!1});return r===0||!s?n:qhe(t,n,i,s)}class mp extends pm{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,s={}){const n=e.time||(e.time={}),i=this._adapter=new dfe._date(e.adapters.date);i.init(s),Au(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=s.normalized}parse(e,s){return e===void 0?null:Gx(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,s=this._adapter,n=e.time.unit||"day";let{min:i,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();function c(f){!o&&!isNaN(f.min)&&(i=Math.min(i,f.min)),!a&&!isNaN(f.max)&&(r=Math.max(r,f.max))}(!o||!a)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),i=Yr(i)&&!isNaN(i)?i:+s.startOf(Date.now(),n),r=Yr(r)&&!isNaN(r)?r:+s.endOf(Date.now(),n)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let s=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(s=e[0],n=e[e.length-1]),{min:s,max:n}}buildTicks(){const e=this.options,s=e.time,n=e.ticks,i=n.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,o=this.max,a=rde(i,r,o);return this._unit=s.unit||(n.autoSkip?Yx(s.minUnit,this.min,this.max,this._getLabelCapacity(r)):Bhe(this,a.length,s.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Uhe(this._unit),this.initOffsets(i),e.reverse&&a.reverse(),Xx(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let s=0,n=0,i,r;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?s=1-i:s=(this.getDecimalForValue(e[1])-i)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?n=r:n=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;s=Ci(s,0,o),n=Ci(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const e=this._adapter,s=this.min,n=this.max,i=this.options,r=i.time,o=r.unit||Yx(r.minUnit,s,n,this._getLabelCapacity(s)),a=Jt(i.ticks.stepSize,1),c=o==="week"?r.isoWeekday:!1,f=cp(c)||c===!0,h={};let p=s,m,_;if(f&&(p=+e.startOf(p,"isoWeek",c)),p=+e.startOf(p,f?"day":o),e.diff(n,s,o)>1e5*a)throw new Error(s+" and "+n+" are too far apart with stepSize of "+a+" "+o);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(m=p,_=0;m<n;m=+e.add(m,a,o),_++)Zx(h,m,v);return(m===n||i.bounds==="ticks"||_===1)&&Zx(h,m,v),Object.keys(h).sort(Kx).map(b=>+b)}getLabelForValue(e){const s=this._adapter,n=this.options.time;return n.tooltipFormat?s.format(e,n.tooltipFormat):s.format(e,n.displayFormats.datetime)}format(e,s){const i=this.options.time.displayFormats,r=this._unit,o=s||i[r];return this._adapter.format(e,o)}_tickFormatFunction(e,s,n,i){const r=this.options,o=r.ticks.callback;if(o)return cs(o,[e,s,n],this);const a=r.time.displayFormats,c=this._unit,f=this._majorUnit,h=c&&a[c],p=f&&a[f],m=n[s],_=f&&p&&m&&m.major;return this._adapter.format(e,i||(_?p:h))}generateTickLabels(e){let s,n,i;for(s=0,n=e.length;s<n;++s)i=e[s],i.label=this._tickFormatFunction(i.value,s,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const s=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((s.start+n)*s.factor)}getValueForPixel(e){const s=this._offsets,n=this.getDecimalForPixel(e)/s.factor-s.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const s=this.options.ticks,n=this.ctx.measureText(e).width,i=_a(this.isHorizontal()?s.maxRotation:s.minRotation),r=Math.cos(i),o=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:n*r+a*o,h:n*o+a*r}}_getLabelCapacity(e){const s=this.options.time,n=s.displayFormats,i=n[s.unit]||n.millisecond,r=this._tick
95FormatFunction(e,0,Xx(this,[e],this._majorUnit),i),o=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],s,n;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(s=0,n=i.length;s<n;++s)e=e.concat(i[s].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let s,n;if(e.length)return e;const i=this.getLabels();for(s=0,n=i.length;s<n;++s)e.push(Gx(this,i[s]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ade(e.sort(Kx))}}xt(mp,"id","time"),xt(mp,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function lh(t,e,s){let n=0,i=t.length-1,r,o,a,c;s?(e>=t[n].pos&&e<=t[i].pos&&({lo:n,hi:i}=Uv(t,"pos",e)),{pos:r,time:a}=t[n],{pos:o,time:c}=t[i]):(e>=t[n].time&&e<=t[i].time&&({lo:n,hi:i}=Uv(t,"time",e)),{time:r,pos:a}=t[n],{time:o,pos:c}=t[i]);const f=o-r;return f?a+(c-a)*(e-r)/f:a}class Jx extends mp{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),s=this._table=this.buildLookupTable(e);this._minPos=lh(s,this.min),this._tableRange=lh(s,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:s,max:n}=this,i=[],r=[];let o,a,c,f,h;for(o=0,a=e.length;o<a;++o)f=e[o],f>=s&&f<=n&&i.push(f);if(i.length<2)return[{time:s,pos:0},{time:n,pos:1}];for(o=0,a=i.length;o<a;++o)h=i[o+1],c=i[o-1],f=i[o],Math.round((h+c)/2)!==f&&r.push({time:f,pos:o/(a-1)});return r}_generate(){const e=this.min,s=this.max;let n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(s)||n.length===1)&&n.push(s),n.sort((i,r)=>i-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const s=this.getDataTimestamps(),n=this.getLabelTimestamps();return s.length&&n.length?e=this.normalize(s.concat(n)):e=s.length?s:n,e=this._cache.all=e,e}getDecimalForValue(e){return(lh(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const s=this._offsets,n=this.getDecimalForPixel(e)/s.factor-s.end;return lh(this._table,n*this._tableRange+this._minPos,!0)}}xt(Jx,"id","timeseries"),xt(Jx,"defaults",mp.defaults);const Z$={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},Hhe={ariaLabel:{type:String},ariaDescribedby:{type:String}},jhe={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Z$,...Hhe},Whe=Jp[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Sl(t){return qa(t)?St(t):t}function zhe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return qa(e)?new Proxy(t,{}):t}function Khe(t,e){const s=t.options;s&&e&&Object.assign(s,e)}function X$(t,e){t.labels=e}function J$(t,e,s){const n=[];t.datasets=e.map(i=>{const r=t.datasets.find(o=>o[s]===i[s]);return!r||!i.data||n.includes(r)?{...i}:(n.push(r),Object.assign(r,i),r)})}function Ghe(t,e){const s={labels:[],datasets:[]};return X$(s,t.labels),J$(s,t.datasets,e),s}const Yhe=ja({props:jhe,setup(t,e){let{expose:s,slots:n}=e;const i=W(null),r=ud(null);s({chart:r});const o=()=>{if(!i.value)return;const{type:f,data:h,options:p,plugins:m,datasetIdKey:_}=t,v=Ghe(h,_),b=zhe(v,h);r.value=new mm(i.value,{type:f,data:b,options:{...p},plugins:m})},a=()=>{const f=St(r.value);f&&(t.destroyDelay>0?setTimeout(()=>{f.destroy(),r.value=null},t.destroyDelay):(f.destroy(),r.value=null))},c=f=>{f.update(t.updateMode)};return Ds(o),Wa(a),Et([()=>t.options,()=>t.data],(f,h)=>{let[p,m]=f,[_,v]=h;const b=St(r.value);if(!b)return;let S=!1;if(p){const C=Sl(p),O=Sl(_);C&&C!==O&&(Khe(b,C),S=!0)}if(m){const C=Sl(m.labels),O=Sl(v.labels),A=Sl(m.datasets),$=Sl(v.datasets);C!==O&&(X$(b.config.data,C),S=!0),A&&A!==$&&(J$(b.config.data,A,t.datasetIdKey),S=!0)}S&&Xr(()=>{c(b)})},{deep:!0}),()=>Kl("canvas",{role:"img","aria-label":t.ariaLabel,"aria-describedby":t.ariaDescribedby,ref:i},[Kl("p",{},[n.default?n.default():""])])}});function Zhe(t,e){return mm.register(e),ja({props:Z$,setup(s,n){let{expose:i}=n;const r=ud(null),o=a=>{r.value=a==null?void 0:a.chart};return i({chart:r}),()=>Kl(Yhe,Whe({ref:o},{type:t,...s}))}})}const Xhe=Zhe("pie",jv),Jhe=ja({__name:"PieChart",props:{value:{type:Number,default:0,required:!0}},setup(t){mm.register(pu,Fhe,Mhe);const e=t,s=te(()=>({datasets:[{backgroundColor:["rgba(29,155,240,0.3)","rgba(29,155,240,1)"],data:[100-e.value,e.value]}]})),n={responsive:!0,maintainAspectRatio:!0,plugins:{tooltip:{enabled:!1}
95,legend:{display:!1}}};return(i,r)=>(y(),tt(w(Xhe),{data:s.value,options:n},null,8,["data"]))}});var gu={exports:{}};const Qhe=$F(xF);var epe=gu.exports,Qx;function tpe(){return Qx||(Qx=1,(function(t,e){(function(){var s;try{if(typeof document<"u"){var n=document.createElement("style");n.nonce=(s=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:s.content,n.appendChild(document.createTextNode(".mapdiv[data-v-c6aa3e71]{width:100%;height:100%}.advanced-marker-wrapper{display:none}.mapdiv .advanced-marker-wrapper{display:inline-block}.custom-control-wrapper[data-v-ae91c15f]{display:none}.mapdiv .custom-control-wrapper[data-v-ae91c15f]{display:inline-block}.info-window-wrapper[data-v-5660e752]{display:none}.mapdiv .info-window-wrapper[data-v-5660e752]{display:inline-block}.custom-marker-wrapper[data-v-90fe8380]{display:none}.mapdiv .custom-marker-wrapper[data-v-90fe8380]{display:inline-block}")),document.head.appendChild(n)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})(),(function(s,n){n(e,Qhe)})(epe,function(s,n){var i=Object.defineProperty,r=(R,k,I)=>k in R?i(R,k,{enumerable:!0,configurable:!0,writable:!0,value:I}):R[k]=I,o=(R,k,I)=>(r(R,typeof k!="symbol"?k+"":k,I),I);const a=Symbol("map"),c=Symbol("api"),f=Symbol("marker"),h=Symbol("markerCluster"),p=Symbol("CustomMarker"),m=Symbol("mapTilesLoaded"),_=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];function v(R,k){R.src=k}const b=R=>{var k,I,H,j="The Google Maps JavaScript API",Q="google",ae="importLibrary",ce="__ib__",oe=document,we=window,Ie=we[Q]||(we[Q]={}),Se=Ie.maps||(Ie.maps={}),Le=new Set,Pe=new URLSearchParams,qe=()=>k||(k=new Promise(async(Ne,Xe)=>{var lt;await(I=oe.createElement("script")),Pe.set("libraries",[...Le]+"");for(H in R)Pe.set(H.replace(/[A-Z]/g,yt=>"_"+yt[0].toLowerCase()),R[H]);Pe.set("callback",Q+".maps."+ce),v(I,"https://maps.googleapis.com/maps/api/js?"+Pe),Se[ce]=Ne,I.onerror=()=>k=Xe(Error(j+" could not load.")),I.nonce=((lt=oe.querySelector("script[nonce]"))==null?void 0:lt.nonce)||"",oe.head.append(I)}));Se[ae]?console.warn(j+" only loads once. Ignoring:",R):Se[ae]=(Ne,...Xe)=>Le.add(Ne)&&qe().then(()=>Se[ae](Ne,...Xe))},S=R=>`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(R)}) will be ignored.`,C=R=>`The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(R)}) will be ignored.`,O=()=>{},A=()=>{};let $=!1;function T(R){if($){O(S(R));return}B(R),$=!0}async function D(R){var k,I;if(!((I=(k=window==null?void 0:window.google)==null?void 0:k.maps)!=null&&I.importLibrary))throw new Error("google.maps.importLibrary is not installed.");return await google.maps.importLibrary(R)}function B(R){var k,I;const H=!!((I=(k=window.google)==null?void 0:k.maps)!=null&&I.importLibrary);H&&A(C(R)),H||b(R)}function N(R){return class extends R.OverlayView{constructor(k){super(),o(this,"element"),o(this,"opts");const{element:I,...H}=k;this.element=I,this.opts=H,this.opts.map&&this.setMap(this.opts.map)}getPosition(){return this.opts.position?this.opts.position instanceof R.LatLng?this.opts.position:new R.LatLng(this.opts.position):null}getVisible(){if(!this.element)return!1;const k=this.element;return k.style.display!=="none"&&k.style.visibility!=="hidden"&&(k.style.opacity===""||Number(k.style.opacity)>.01)}onAdd(){if(!this.element)return;const k=this.getPanes();k&&k.overlayMouseTarget.appendChild(this.element)}draw(){if(!this.element)return;const k=this.getProjection(),I=k==null?void 0:k.fromLatLngToDivPixel(this.getPosition());if(I){this.element.style.position="absolute";let H,j;switch(this.opts.anchorPoint){case"TOP_CENTER":H="-50%",j="-100%";break;case"BOTTOM_CENTER":H="-50%",j="0";break;case"LEFT_CENTER":H="-100%",j="-50%";break;case"RIGHT_CENTER":H="0",j="-50%";break;case"TOP_LEFT":H="-100%",j="-100%";break;case"TOP_RIGHT":H="0",j="-100%";break;case"BOTTOM_LEFT":H="-100%",j="0";break;case"BOTTOM_RIGHT":H="0",j="0";break;default:H="-50%",j="-50%"}const Q=I.x+(this.opts.offsetX||0)+"px",ae=I.y+(this.opts.offsetY||0)+"px";this.element.style.transform=`translateX(${H}) translateX(${Q}) translateY(${j}) translateY(${ae})`,this.opts.zIndex&&(this.element.style.zIndex=this.opts.zIndex.toString())}}onRemove(){this.element&&this.element.remove()}setOptions(k){const{element:I,...H}=k;this.element=I,this.opts=H,this.draw()}}}let F=!1;const L=["bounds_changed","center_changed","click","contextmenu","dblclick","drag","dragend","dragstart","heading_changed","idle","isfractionalzoomenabled_changed","mapcapabilities_changed","maptypeid_changed","mousemove","mouseout","mouseover","projection_changed","renderingtype_changed","rightclick","tilesloaded","tilt_changed","zoom_
95changed"],Y=n.defineComponent({props:{apiPromise:{type:Promise},apiKey:{type:String,default:""},version:{type:String,default:"weekly"},libraries:{type:Array,default:()=>["places","marker"]},region:{type:String,required:!1},language:{type:String,required:!1},backgroundColor:{type:String,required:!1},center:{type:Object,default:()=>({lat:0,lng:0})},clickableIcons:{type:Boolean,required:!1,default:void 0},colorScheme:{type:String,required:!1},controlSize:{type:Number,required:!1},disableDefaultUi:{type:Boolean,required:!1,default:void 0},disableDoubleClickZoom:{type:Boolean,required:!1,default:void 0},draggable:{type:Boolean,required:!1,default:void 0},draggableCursor:{type:String,required:!1},draggingCursor:{type:String,required:!1},fullscreenControl:{type:Boolean,required:!1,default:void 0},fullscreenControlPosition:{type:String,required:!1},gestureHandling:{type:String,required:!1},heading:{type:Number,required:!1},isFractionalZoomEnabled:{type:Boolean,required:!1,default:void 0},keyboardShortcuts:{type:Boolean,required:!1,default:void 0},mapTypeControl:{type:Boolean,required:!1,default:void 0},mapTypeControlOptions:{type:Object,required:!1},mapTypeId:{type:[Number,String],required:!1},mapId:{type:String,required:!1},maxZoom:{type:Number,required:!1},minZoom:{type:Number,required:!1},noClear:{type:Boolean,required:!1,default:void 0},panControl:{type:Boolean,required:!1,default:void 0},panControlPosition:{type:String,required:!1},restriction:{type:Object,required:!1},rotateControl:{type:Boolean,required:!1,default:void 0},rotateControlPosition:{type:String,required:!1},scaleControl:{type:Boolean,required:!1,default:void 0},scaleControlStyle:{type:Number,required:!1},scrollwheel:{type:Boolean,required:!1,default:void 0},streetView:{type:Object,required:!1},streetViewControl:{type:Boolean,required:!1,default:void 0},streetViewControlPosition:{type:String,required:!1},styles:{type:Array,required:!1},tilt:{type:Number,required:!1},zoom:{type:Number,required:!1},zoomControl:{type:Boolean,required:!1,default:void 0},zoomControlPosition:{type:String,required:!1},cameraControl:{type:Boolean,required:!1,default:void 0},cameraControlPosition:{type:String,required:!1}},emits:L,setup(R,{emit:k}){const I=n.ref(),H=n.ref(!1),j=n.ref(),Q=n.ref(),ae=n.ref(!1);n.provide(a,j),n.provide(c,Q),n.provide(m,ae);const ce=()=>{const Se={...R};Object.keys(Se).forEach(qe=>{Se[qe]===void 0&&delete Se[qe]});const Le=qe=>{var Ne;return qe?{position:(Ne=Q.value)==null?void 0:Ne.ControlPosition[qe]}:{}},Pe={scaleControlOptions:R.scaleControlStyle?{style:R.scaleControlStyle}:{},panControlOptions:Le(R.panControlPosition),zoomControlOptions:Le(R.zoomControlPosition),rotateControlOptions:Le(R.rotateControlPosition),streetViewControlOptions:Le(R.streetViewControlPosition),fullscreenControlOptions:Le(R.fullscreenControlPosition),cameraControlOptions:Le(R.cameraControlPosition),disableDefaultUI:R.disableDefaultUi};return{...Se,...Pe}},oe=n.watch([Q,j],([Se,Le])=>{const Pe=Se,qe=Le;Pe&&qe&&(Pe.event.addListenerOnce(qe,"tilesloaded",()=>{ae.value=!0}),setTimeout(oe,0))},{immediate:!0}),we=()=>{const{apiKey:Se,region:Le,version:Pe,language:qe,libraries:Ne}=R;T({key:Se,region:Le,v:Pe,language:qe,libraries:Ne})},Ie=Se=>{const Le=Se?Se.maps:google.maps;Q.value=n.markRaw(Le),j.value=n.markRaw(new Le.Map(I.value,ce()));const Pe=N(Q.value);Q.value[p]=Pe,L.forEach(Ne=>{var Xe;(Xe=j.value)==null||Xe.addListener(Ne,lt=>k(Ne,lt))}),H.value=!0;const qe=Object.keys(R).filter(Ne=>!["apiPromise","apiKey","version","libraries","region","language","center","zoom"].includes(Ne)).map(Ne=>n.toRef(R,Ne));n.watch([()=>R.center,()=>R.zoom,...qe],([Ne,Xe],[lt,yt])=>{var ws,nn,js;const{center:Ot,zoom:os,...Mn}=ce();(ws=j.value)==null||ws.setOptions(Mn),Xe!==void 0&&Xe!==yt&&((nn=j.value)==null||nn.setZoom(Xe));const br=!lt||Ne.lng!==lt.lng||Ne.lat!==lt.lat;Ne&&br&&((js=j.value)==null||js.panTo(Ne))})};return n.onMounted(()=>{if(R.apiPromise&&R.apiPromise instanceof Promise)R.apiPromise.then(Ie);else{F||(we(),F=!0);const Se=R.libraries&&R.libraries.length>0?R.libraries:["maps","marker"];Promise.all(Se.map(Le=>D(Le))).then(()=>Ie())}}),n.onBeforeUnmount(()=>{var Se;ae.value=!1,j.value&&((Se=Q.value)==null||Se.event.clearInstanceListeners(j.value))}),{mapRef:I,ready:H,map:j,api:Q,mapTilesLoaded:ae}}}),Z=(R,k)=>{const I=R.__vccOpts||R;for(const[H,j]of k)I[H]=j;return I},le={ref:"mapRef",class:"mapdiv"};function Ce(R,k,I,H,j,Q){return n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",le,null,512),n.renderSlot(R.$slots,"default",n.normalizeProps(n.guardReactiveProps({ready:R.ready,map:R.map,api:R.api,mapTilesLoaded:R.mapTilesLoaded})),void 0,!0)])}const Ee=Z(Y,[["render",Ce],["__scopeId","data-v-c6aa3e71"]]);function he(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var ye=function R(k,I){if(k===I)return!0;
95if(k&&I&&typeof k=="object"&&typeof I=="object"){if(k.constructor!==I.constructor)return!1;var H,j,Q;if(Array.isArray(k)){if(H=k.length,H!=I.length)return!1;for(j=H;j--!==0;)if(!R(k[j],I[j]))return!1;return!0}if(k.constructor===RegExp)return k.source===I.source&&k.flags===I.flags;if(k.valueOf!==Object.prototype.valueOf)return k.valueOf()===I.valueOf();if(k.toString!==Object.prototype.toString)return k.toString()===I.toString();if(Q=Object.keys(k),H=Q.length,H!==Object.keys(I).length)return!1;for(j=H;j--!==0;)if(!Object.prototype.hasOwnProperty.call(I,Q[j]))return!1;for(j=H;j--!==0;){var ae=Q[j];if(!R(k[ae],I[ae]))return!1}return!0}return k!==k&&I!==I};const xe=he(ye),_e=["click","drag","dragend","dragstart","gmp-click"],ze=n.defineComponent({name:"AdvancedMarker",props:{options:{type:Object,required:!0},pinOptions:{type:Object,required:!1}},emits:_e,setup(R,{emit:k,expose:I,slots:H}){const j=n.ref(),Q=n.computed(()=>{var Pe;return(Pe=H.content)==null?void 0:Pe.call(H).some(qe=>qe.type!==n.Comment)}),ae=n.toRef(R,"options"),ce=n.toRef(R,"pinOptions"),oe=n.ref(),we=n.inject(a,n.ref()),Ie=n.inject(c,n.ref()),Se=n.inject(h,n.ref()),Le=n.computed(()=>!!(Se.value&&Ie.value&&oe.value instanceof google.maps.marker.AdvancedMarkerElement));return n.watch([we,ae,ce,j],async(Pe,[qe,Ne,Xe,lt])=>{var yt,ws,nn;const js=!xe(ae.value,Ne)||!xe(ce.value,Xe),Ot=j.value!==lt,os=js||Ot||we.value!==qe;if(!we.value||!Ie.value||!os||Q.value&&!j.value)return;const{AdvancedMarkerElement:Mn,PinElement:br}=Ie.value.marker;if(oe.value){const{map:Mc,content:Vi,...gn}=ae.value;Object.assign(oe.value,{content:Q.value?j.value:ce.value?new br(ce.value).element:Vi,...gn}),Le.value&&((yt=Se.value)==null||yt.removeMarker(oe.value),(ws=Se.value)==null||ws.addMarker(oe.value))}else Q.value?ae.value.content=j.value:ce.value&&(ae.value.content=new br(ce.value).element),oe.value=n.markRaw(new Mn(ae.value)),Le.value?(nn=Se.value)==null||nn.addMarker(oe.value):oe.value.map=we.value,_e.forEach(Mc=>{var Vi;(Vi=oe.value)==null||Vi.addListener(Mc,gn=>k(Mc,gn))})},{immediate:!0,flush:"post"}),n.onBeforeUnmount(()=>{var Pe,qe;oe.value&&((Pe=Ie.value)==null||Pe.event.clearInstanceListeners(oe.value),Le.value?(qe=Se.value)==null||qe.removeMarker(oe.value):oe.value.map=null)}),n.provide(f,oe),I({marker:oe}),{hasCustomSlotContent:Q,markerRef:j}}}),je={key:0,class:"advanced-marker-wrapper"};function it(R,k,I,H,j,Q){return n.openBlock(),n.createElementBlock(n.Fragment,null,[R.hasCustomSlotContent?(n.openBlock(),n.createElementBlock("div",je,[n.createElementVNode("div",n.mergeProps({ref:"markerRef"},R.$attrs),[n.renderSlot(R.$slots,"content")],16)])):n.createCommentVNode("v-if",!0),n.renderSlot(R.$slots,"default")],64)}const es=Z(ze,[["render",it]]),ue=R=>R==="Marker",$t=R=>R===p,Bt=(R,k,I,H)=>{const j=n.ref(),Q=n.inject(a,n.ref()),ae=n.inject(c,n.ref()),ce=n.inject(h,n.ref()),oe=n.computed(()=>!!(ce.value&&ae.value&&(j.value instanceof ae.value.Marker||j.value instanceof ae.value[p])));return n.watch([Q,I],(we,[Ie,Se])=>{var Le,Pe,qe;const Ne=!xe(I.value,Se)||Q.value!==Ie;if(!(!Q.value||!ae.value||!Ne))if(j.value)j.value.setOptions(I.value),oe.value&&((Le=ce.value)==null||Le.removeMarker(j.value),(Pe=ce.value)==null||Pe.addMarker(j.value));else{if(ue(R))j.value=n.markRaw(new ae.value[R](I.value));else if($t(R)){const Xe=I.value;Xe.element&&(j.value=n.markRaw(new ae.value[R](Xe)))}else j.value=n.markRaw(new ae.value[R]({...I.value,map:Q.value}));j.value&&(oe.value?(qe=ce.value)==null||qe.addMarker(j.value):(ue(R)||$t(R))&&j.value.setMap(Q.value)),k.forEach(Xe=>{var lt;(lt=j.value)==null||lt.addListener(Xe,yt=>H(Xe,yt))})}},{immediate:!0,flush:"post"}),n.onBeforeUnmount(()=>{var we,Ie;j.value&&((we=ae.value)==null||we.event.clearInstanceListeners(j.value),oe.value?(Ie=ce.value)==null||Ie.removeMarker(j.value):j.value.setMap(null))}),j},zs=["animation_changed","click","dblclick","rightclick","dragstart","dragend","drag","mouseover","mousedown","mouseout","mouseup","draggable_changed","clickable_changed","contextmenu","cursor_changed","flat_changed","zindex_changed","icon_changed","position_changed","shape_changed","title_changed","visible_changed"],zt=n.defineComponent({name:"Marker",props:{options:{type:Object,required:!0}},emits:zs,setup(R,{emit:k,expose:I,slots:H}){const j=n.toRef(R,"options"),Q=Bt("Marker",zs,j,k);return n.provide(f,Q),I({marker:Q}),()=>{var ae;return(ae=H.default)==null?void 0:ae.call(H)}}}),Hs=n.defineComponent({name:"Polyline",props:{options:{type:Object,required:!0}},emits:_,setup(R,{emit:k}){const I=n.toRef(R,"options");return{polyline:Bt("Polyline",_,I,k)}},render:()=>null}),gs=n.defineComponent({name:"Polygon",props:{options:{type:Object,required:!0}},emits:_,setup(R,{emit:k}){const I=n.toRef(R,"options");return{polygon:Bt("Polygon",_,I,k)}},render:()=>null}),nt=_.concat(["bounds_changed"]),ps=n.defineComponent({name:"Rectangle",props:{options:{type:Object,required:!0}},emits:nt,setup(R,{emit:k}){const I=n.toRef(R,"options");return{rectangle:Bt("Rectangle",nt,I,k)}},render:()=>null}),K=_.concat(["center_changed","radius_changed"]),X=n.defineComponent({name:"Circle",props:{options:{type:Object,required:!0}},emits:K,setup(R,{emit:k}){const I=n.toRef(R,"options");return{circle:Bt("Circle",K,I,k)}},render:()=>null}),fe=n.defineComponent({props:{position:{type:String,required:!0},index:{type:Number,default:1}},emits:["content:loaded"],setup(R,{emit:k}){const I=n.ref(null),H=n.inject(a,n.ref()),j=n.inject(c,n.ref()),Q=n.inject(m,n.ref(!1)),ae=n.watch([Q,j,I],([we,Ie,Se])=>{Ie&&we&&Se&&(ce(R.position),k("content:loaded"),setTimeout(ae,0))},{immediate:!0}),ce=we=>{if(H.value&&j.value&&I.value){const Ie=j.value.ControlPosition[we];I.value.index=R.index,H.value.controls[Ie].push(I.value)}},oe=we=>{if(H.value&&j.value){let Ie=null;const Se=j.value.ControlPosition[we];H.value.controls[Se].forEach((Le,Pe)=>
95{Le===I.value&&(Ie=Pe)}),Ie!==null&&H.value.controls[Se].removeAt(Ie)}};return n.onBeforeUnmount(()=>oe(R.position)),n.watch(()=>R.position,(we,Ie)=>{oe(Ie),ce(we)}),n.watch(()=>R.index,we=>{I.value&&(I.value.index=we)}),{controlRef:I}}}),$e={ref:"controlRef",class:"custom-control-wrapper"};function me(R,k,I,H,j,Q){return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createCommentVNode(` 96 v-show must be used instead of v-if otherwise there 97 would be no rendered content pushed to the map controls 98 `),n.createElementVNode("div",$e,[n.renderSlot(R.$slots,"default",{},void 0,!0)],512)],2112)}const Te=Z(fe,[["render",me],["__scopeId","data-v-ae91c15f"]]),Be=["closeclick","content_changed","domready","position_changed","visible","zindex_changed"],Re=n.defineComponent({inheritAttrs:!1,props:{options:{type:Object,default:()=>({})},modelValue:{type:Boolean}},emits:[...Be,"update:modelValue"],setup(R,{slots:k,emit:I,expose:H}){const j=n.ref(),Q=n.ref(),ae=n.inject(a,n.ref()),ce=n.inject(c,n.ref()),oe=n.inject(f,n.ref());let we,Ie=R.modelValue;const Se=n.computed(()=>{var Ne;return(Ne=k.default)==null?void 0:Ne.call(k).some(Xe=>Xe.type!==n.Comment)}),Le=Ne=>{Ie=Ne,I("update:modelValue",Ne)},Pe=Ne=>{j.value&&(j.value.open({map:ae.value,anchor:oe.value,...Ne}),Le(!0))},qe=()=>{j.value&&(j.value.close(),Le(!1))};return n.onMounted(()=>{n.watch([ae,()=>R.options],([Ne,Xe],[lt,yt])=>{var ws;const nn=!xe(Xe,yt)||ae.value!==lt;ae.value&&ce.value&&nn&&(j.value?(j.value.setOptions({...Xe,content:Se.value?Q.value:Xe.content}),oe.value||Pe()):(j.value=n.markRaw(new ce.value.InfoWindow({...Xe,content:Se.value?Q.value:Xe.content})),oe.value&&(we=oe.value.addListener("click",()=>Pe())),(!oe.value||Ie)&&Pe(),Be.forEach(js=>{var Ot;(Ot=j.value)==null||Ot.addListener(js,os=>I(js,os))}),(ws=j.value)==null||ws.addListener("closeclick",()=>Le(!1))))},{immediate:!0,flush:"post"}),n.watch(oe,(Ne,Xe)=>{!j.value||Ne===Xe||(we&&(we.remove(),we=void 0),Ne&&(we=Ne.addListener("click",()=>Pe())))},{flush:"post"}),n.watch(()=>R.modelValue,Ne=>{Ne!==Ie&&(Ne?Pe():qe())})}),n.onBeforeUnmount(()=>{var Ne;we&&we.remove(),j.value&&((Ne=ce.value)==null||Ne.event.clearInstanceListeners(j.value),qe())}),H({infoWindow:j,open:Pe,close:qe}),{infoWindow:j,infoWindowRef:Q,hasSlotContent:Se,open:Pe,close:qe}}}),Me={key:0,class:"info-window-wrapper"};function ke(R,k,I,H,j,Q){return R.hasSlotContent?(n.openBlock(),n.createElementBlock("div",Me,[n.createElementVNode("div",n.mergeProps({ref:"infoWindowRef"},R.$attrs),[n.renderSlot(R.$slots,"default",{},void 0,!0)],16)])):n.createCommentVNode("v-if",!0)}const et=Z(Re,[["render",ke],["__scopeId","data-v-5660e752"]]);var Ue=Object.getOwnPropertyNames,Ye=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty;function ht(R,k){return function(I,H,j){return R(I,H,j)&&k(I,H,j)}}function vt(R){return function(k,I,H){if(!k||!I||typeof k!="object"||typeof I!="object")return R(k,I,H);var j=H.cache,Q=j.get(k),ae=j.get(I);if(Q&&ae)return Q===I&&ae===k;j.set(k,I),j.set(I,k);var ce=R(k,I,H);return j.delete(k),j.delete(I),ce}}function Tt(R){return Ue(R).concat(Ye(R))}var Rs=Object.hasOwn||function(R,k){return ot.call(R,k)};function ts(R,k){return R===k||!R&&!k&&R!==R&&k!==k}var Ks="__v",Is="__o",Ii="_owner",mr=Object.getOwnPropertyDescriptor,Os=Object.keys;function tn(R,k,I){var H=R.length;if(k.length!==H)return!1;for(;H-- >0;)if(!I.equals(R[H],k[H],H,H,R,k,I))return!1;return!0}function Ga(R,k){return ts(R.getTime(),k.getTime())}function _m(R,k){return R.name===k.name&&R.message===k.message&&R.cause===k.cause&&R.stack===k.stack}function vm(R,k){return R===k}function lc(R,k,I){var H=R.size;if(H!==k.size)return!1;if(!H)return!0;for(var j=new Array(H),Q=R.entries(),ae,ce,oe=0;(ae=Q.next())&&!ae.done;){for(var we=k.entries(),Ie=!1,Se=0;(ce=we.next())&&!ce.done;){if(j[Se]){Se++;continue}var Le=ae.value,Pe=ce.value;if(I.equals(Le[0],Pe[0],oe,Se,R,k,I)&&I.equals(Le[1],Pe[1],Le[0],Pe[0],R,k,I)){Ie=j[Se]=!0;break}Se++}if(!Ie)return!1;oe++}return!0}var Sd=ts;function bm(R,k,I){var H=Os(R),j=H.length;if(Os(k).length!==j)return!1;for(;j-- >0;)if(!Ed(R,k,I,H[j]))return!1;return!0}function Ho(R,k,I){var H=Tt(R),j=H.length;if(Tt(k).length!==j)return!1;for(var Q,ae,ce;j-- >0;)if(Q=H[j],!Ed(R,k,I,Q)||(ae=mr(R,Q),ce=mr(k,Q),(ae||ce)&&(!ae||!ce||ae.configurable!==ce.configurable||ae.enumerable!==ce.enumerable||ae.writable!==ce.writable)))return!1;return!0}function ym(R,k){return ts(R.valueOf(),k.valueOf())}function wm(R,k){return R.source===k.source&&R.flags===k.flags}function cc(R,k,I){var H=R.size;if(H!==k.size)return!1;if(!H)return!0;for(var j=new Array(H),Q=R.values(),ae,ce;(ae=Q.next())&&!ae.done;){for(var oe=k.values(),we=!1,Ie=0;(ce=oe.next())&&!ce.done;){if(!j[Ie]&&I.equals(ae.value,ce.value,ae.value,ce.value,R,k,I)){we=j[Ie]=!0;break}Ie++}if(!we)return!1}return!0}function xm(R,k){var I=R.length;if(k.length!==I)return!1;for(;I-- >0;)if(R[I]!==k[I])return!1;return!0}function Sm(R,k){return R.hostname===k.hostname&&R.pathname===k.pathname&&R.protocol===k.protocol&&R.port===k.port&&R.hash===k.hash&&R.username===k.username&&R.password===k.password}function Ed(R,k,I,H){return(H===Ii||H===Is||H===Ks)&&(R.$$typeof||k.$$typeof)?!0:Rs(k,H)&&I.equals(R[H],k[H],H,H,R,k,I)}var uc="[object Arguments]",Em="[object Boolean]",dc="[object Date]",Cm="[object Error]",km="[object Map]",Am="[object Number]",$m="[object Object]",Tm="[object RegExp]",Om="[object Set]",Mm="[object String]",Pm="[object URL]",Cd=Array.isArray,kd=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ad=Object.assign,Dm
98=Object.prototype.toString.call.bind(Object.prototype.toString);function Rm(R){var k=R.areArraysEqual,I=R.areDatesEqual,H=R.areErrorsEqual,j=R.areFunctionsEqual,Q=R.areMapsEqual,ae=R.areNumbersEqual,ce=R.areObjectsEqual,oe=R.arePrimitiveWrappersEqual,we=R.areRegExpsEqual,Ie=R.areSetsEqual,Se=R.areTypedArraysEqual,Le=R.areUrlsEqual;return function(Pe,qe,Ne){if(Pe===qe)return!0;if(Pe==null||qe==null)return!1;var Xe=typeof Pe;if(Xe!==typeof qe)return!1;if(Xe!=="object")return Xe==="number"?ae(Pe,qe,Ne):Xe==="function"?j(Pe,qe,Ne):!1;var lt=Pe.constructor;if(lt!==qe.constructor)return!1;if(lt===Object)return ce(Pe,qe,Ne);if(Cd(Pe))return k(Pe,qe,Ne);if(kd!=null&&kd(Pe))return Se(Pe,qe,Ne);if(lt===Date)return I(Pe,qe,Ne);if(lt===RegExp)return we(Pe,qe,Ne);if(lt===Map)return Q(Pe,qe,Ne);if(lt===Set)return Ie(Pe,qe,Ne);var yt=Dm(Pe);return yt===dc?I(Pe,qe,Ne):yt===Tm?we(Pe,qe,Ne):yt===km?Q(Pe,qe,Ne):yt===Om?Ie(Pe,qe,Ne):yt===$m?typeof Pe.then!="function"&&typeof qe.then!="function"&&ce(Pe,qe,Ne):yt===Pm?Le(Pe,qe,Ne):yt===Cm?H(Pe,qe,Ne):yt===uc?ce(Pe,qe,Ne):yt===Em||yt===Am||yt===Mm?oe(Pe,qe,Ne):!1}}function Im(R){var k=R.circular,I=R.createCustomConfig,H=R.strict,j={areArraysEqual:H?Ho:tn,areDatesEqual:Ga,areErrorsEqual:_m,areFunctionsEqual:vm,areMapsEqual:H?ht(lc,Ho):lc,areNumbersEqual:Sd,areObjectsEqual:H?Ho:bm,arePrimitiveWrappersEqual:ym,areRegExpsEqual:wm,areSetsEqual:H?ht(cc,Ho):cc,areTypedArraysEqual:H?Ho:xm,areUrlsEqual:Sm};if(I&&(j=Ad({},j,I(j))),k){var Q=vt(j.areArraysEqual),ae=vt(j.areMapsEqual),ce=vt(j.areObjectsEqual),oe=vt(j.areSetsEqual);j=Ad({},j,{areArraysEqual:Q,areMapsEqual:ae,areObjectsEqual:ce,areSetsEqual:oe})}return j}function Lm(R){return function(k,I,H,j,Q,ae,ce){return R(k,I,ce)}}function Ya(R){var k=R.circular,I=R.comparator,H=R.createState,j=R.equals,Q=R.strict;if(H)return function(ce,oe){var we=H(),Ie=we.cache,Se=Ie===void 0?k?new WeakMap:void 0:Ie,Le=we.meta;return I(ce,oe,{cache:Se,equals:j,meta:Le,strict:Q})};if(k)return function(ce,oe){return I(ce,oe,{cache:new WeakMap,equals:j,meta:void 0,strict:Q})};var ae={cache:void 0,equals:j,meta:void 0,strict:Q};return function(ce,oe){return I(ce,oe,ae)}}var Za=Xn();Xn({strict:!0}),Xn({circular:!0}),Xn({circular:!0,strict:!0}),Xn({createInternalComparator:function(){return ts}}),Xn({strict:!0,createInternalComparator:function(){return ts}}),Xn({circular:!0,createInternalComparator:function(){return ts}}),Xn({circular:!0,createInternalComparator:function(){return ts},strict:!0});function Xn(R){R===void 0&&(R={});var k=R.circular,I=k===void 0?!1:k,H=R.createInternalComparator,j=R.createState,Q=R.strict,ae=Q===void 0?!1:Q,ce=Im(R),oe=Rm(ce),we=H?H(oe):Lm(oe);return Ya({circular:I,comparator:oe,createState:j,equals:we,strict:ae})}const $d=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],fc=1,jo=8;class Xa{static from(k){if(!(k instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[I,H]=new Uint8Array(k,0,2);
98if(I!==219)throw new Error("Data does not appear to be in a KDBush format.");const j=H>>4;if(j!==fc)throw new Error(`Got v${j} data when expected v${fc}.`);const Q=$d[H&15];if(!Q)throw new Error("Unrecognized array type.");const[ae]=new Uint16Array(k,2,1),[ce]=new Uint32Array(k,4,1);return new Xa(ce,ae,Q,k)}constructor(k,I=64,H=Float64Array,j){if(isNaN(k)||k<0)throw new Error(`Unpexpected numItems value: ${k}.`);this.numItems=+k,this.nodeSize=Math.min(Math.max(+I,2),65535),this.ArrayType=H,this.IndexArrayType=k<65536?Uint16Array:Uint32Array;const Q=$d.indexOf(this.ArrayType),ae=k*2*this.ArrayType.BYTES_PER_ELEMENT,ce=k*this.IndexArrayType.BYTES_PER_ELEMENT,oe=(8-ce%8)%8;if(Q<0)throw new Error(`Unexpected typed array class: ${H}.`);j&&j instanceof ArrayBuffer?(this.data=j,this.ids=new this.IndexArrayType(this.data,jo,k),this.coords=new this.ArrayType(this.data,jo+ce+oe,k*2),this._pos=k*2,this._finished=!0):(this.data=new ArrayBuffer(jo+ae+ce+oe),this.ids=new this.IndexArrayType(this.data,jo,k),this.coords=new this.ArrayType(this.data,jo+ce+oe,k*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(fc<<4)+Q]),new Uint16Array(this.data,2,1)[0]=I,new Uint32Array(this.data,4,1)[0]=k)}add(k,I){const H=this._pos>>1;return this.ids[H]=H,this.coords[this._pos++]=k,this.coords[this._pos++]=I,H}finish(){const k=this._pos>>1;if(k!==this.numItems)throw new Error(`Added ${k} items when expected ${this.numItems}.`);return Ja(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(k,I,H,j){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:Q,coords:ae,nodeSize:ce}=this,oe=[0,Q.length-1,0],we=[];for(;oe.length;){const Ie=oe.pop()||0,Se=oe.pop()||0,Le=oe.pop()||0;if(Se-Le<=ce){for(let Xe=Le;Xe<=Se;Xe++){const lt=ae[2*Xe],yt=ae[2*Xe+1];lt>=k&<<=H&&yt>=I&&yt<=j&&we.push(Q[Xe])}continue}const Pe=Le+Se>>1,qe=ae[2*Pe],Ne=ae[2*Pe+1];qe>=k&&qe<=H&&Ne>=I&&Ne<=j&&we.push(Q[Pe]),(Ie===0?k<=qe:I<=Ne)&&(oe.push(Le),oe.push(Pe-1),oe.push(1-Ie)),(Ie===0?H>=qe:j>=Ne)&&(oe.push(Pe+1),oe.push(Se),oe.push(1-Ie))}return we}within(k,I,H){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:j,coords:Q,nodeSize:ae}=this,ce=[0,j.length-1,0],oe=[],we=H*H;for(;ce.length;){const Ie=ce.pop()||0,Se=ce.pop()||0,Le=ce.pop()||0;if(Se-Le<=ae){for(let Xe=Le;Xe<=Se;Xe++)Td(Q[2*Xe],Q[2*Xe+1],k,I)<=we&&oe.push(j[Xe]);continue}const Pe=Le+Se>>1,qe=Q[2*Pe],Ne=Q[2*Pe+1];Td(qe,Ne,k,I)<=we&&oe.push(j[Pe]),(Ie===0?k-H<=qe:I-H<=Ne)&&(ce.push(Le),ce.push(Pe-1),ce.push(1-Ie)),(Ie===0?k+H>=qe:I+H>=Ne)&&(ce.push(Pe+1),ce.push(Se),ce.push(1-Ie))}return oe}}function Ja(R,k,I,H,j,Q){if(j-H<=I)return;const ae=H+j>>1;hc(R,k,ae,H,j,Q),Ja(R,k,I,H,ae-1,1-Q),Ja(R,k,I,ae+1,j,1-Q)}function hc(R,k,I,H,j,Q){for(;j>H;){if(j-H>600){const we=j-H+1,Ie=I-H+1,Se=Math.log(we),Le=.5*Math.exp(2*Se/3),Pe=.5*Math.sqrt(Se*Le*(we-Le)/we)*(Ie-we/2<0?-1:1),qe=Math.max(H,Math.floor(I-Ie*Le/we+Pe)),Ne=Math.min(j,Math.floor(I+(we-Ie)*Le/we+Pe));hc(R,k,I,qe,Ne,Q)}const ae=k[2*I+Q];let ce=H,oe=j;for(Wo(R,k,H,I),k[2*j+Q]>ae&&Wo(R,k,H,j);ce<oe;){for(Wo(R,k,ce,oe),ce++,oe--;k[2*ce+Q]<ae;)ce++;for(;k[2*oe+Q]>ae;)oe--}k[2*H+Q]===ae?Wo(R,k,H,oe):(oe++,Wo(R,k,oe,j)),oe<=I&&(H=oe+1),I<=oe&&(j=oe-1)}}function Wo(R,k,I,H){pc(R,I,H),pc(k,2*I,2*H),pc(k,2*I+1,2*H+1)}function pc(R,k,I){const H=R[k];R[k]=R[I],R[I]=H}function Td(R,k,I,H){const j=R-I,Q=k-H;return j*j+Q*Q}const Nm={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:R=>R},mc=Math.fround||(R=>k=>(R[0]=+k,R[0]))(new Float32Array(1)),Yi=2,Li=3,zo=4,Zi=5,gc=6;class Ko{constructor(k){this.options=Object.assign(Object.create(Nm),k),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(k){const{log:I,minZoom:H,maxZoom:j}=this.options;I&&console.time("total time");const Q=`prepare ${k.length} points`;I&&console.time(Q),this.points=k;const ae=[];for(let oe=0;oe<k.length;oe++){const we=k[oe];if(!we.geometry)continue;const[Ie,Se]=we.geometry.coordinates,Le=mc(Go(Ie)),Pe=mc(Yo(Se));ae.push(Le,Pe,1/0,oe,-1,1),this.options.reduce&&ae.push(0)}let ce=this.trees[j+1]=this._createTree(ae);I&&console.timeEnd(Q);for(let oe=j;oe>=H;oe--){const we=+Date.now();ce=this.trees[oe]=this._createTree(this._cluster(ce,oe)),I&&console.log("z%d: %d clusters in %dms",oe,ce.numItems,+Date.now()-we)}return I&&console.timeEnd("total time"),this}getClusters(k,I){let H=((k[0]+180)%360+360)%360-180;const j=Math.max(-90,Math.min(90,k[1]));let Q=k[2]===180?180:((k[2]+180)%360+360)%360-180;const ae=Math.max(-90,Math.min(90,k[3]));if(k[2]-k[0]>=360)H=-180,Q=180;else if(H>Q){const Se=this.getClusters([H,j,180,ae],I),Le=this.getClusters([-180,j,Q,ae],I);return Se.concat(Le)}const ce=this.trees[this._limitZoom(I)],oe=ce.range(Go(H),Yo(ae),Go(Q),Yo(j)),we=ce.data,Ie=[];for(const Se of oe){const Le=this.stride*Se;Ie.push(we[Le+Zi]>1?_c(we,Le,this.clusterProps):this.points[we[Le+Li]])}return Ie}getChildren(k){const I=this._getOriginId(k),H=this._getOriginZoom(k),j="No cluster with the specified id.",Q=this.trees[H];if(!Q)throw new Error(j);const ae=Q.data;if(I*this.stride>=ae.length)throw new Error(j);const ce=this.options.radius/(this.options.extent*Math.pow(2,H-1)),oe=ae[I*this.stride],we=ae[I*this.stride+1],Ie=Q.within(oe,we,ce),Se=[];for(const Le of Ie){const Pe=Le*this.stride;ae[Pe+zo]===k&&Se.push(ae[Pe+Zi]>1?_c(ae,Pe,this.clusterProps):this.points[ae[Pe+Li]])}if(Se.length===0)throw new Error(j);return Se}getLeaves(k,I,H){I=I||10,H=H||0;const j=[];return this._appendLeaves(j,k,I,H,0),j}getTile(k,I,H){const j=this.trees[this._limitZoom(k)],Q=Math.pow(2,k),{extent:ae,radius:ce}=this.options,oe=ce/ae,we=(H-oe)/Q,Ie=(H+1+oe)/Q,Se={features:[]};return this._addTileFeatures(j.range((I-oe)/Q,we,(I+1+oe)/Q,Ie),j.data,I,H,Q,Se),I===0&&this._addTileFeatures(j.range(1-oe/Q,we,1,Ie),j.data,Q,H,Q,Se),I===Q-1&&this._addTileFeatures(j.range(0,we,oe/Q,Ie),j.data,-1,H,Q,Se),Se.features.length?Se:null}getClusterExpansionZoom(k){let I=this._getOriginZoom(k)-1;for(;I<=this.options.maxZoom;){const H=this.getChildren(k);if(I++,H.length!==1)break;k=H[0].properties.cluster_id}return I}_appendLeaves(k,I,H,j,Q){const ae=this.getChildren(I);for(const ce of ae){const oe=ce.properties;if(oe&&oe.cluster?Q+oe.point_count<=j?Q+=oe.point_count:Q=this._appendLeaves(k,oe.cluster_id,H,j,Q):Q<j?Q++:k.push(ce),k.length===H)break}return Q}_createTree(k){const I=new Xa(k.length/this.stride|0,this.options.nodeSize,Float32Array);for(let H=0;H<k.length;H+=this.stride)I.add(k[H],k[H+1]);return I.finish(),I.data=k,I}_addTileFeatures(k,I,H,j,Q,ae){for(const ce of k){const oe=ce*this.stride,we=I[oe+Zi]>1;let Ie,Se,Le;if(we)Ie=Od(I,oe,this.clusterProps),Se=I[oe],Le=I[oe+1];else{const Ne=this.points[I[oe+Li]];Ie=Ne.properties;const[Xe,lt]=Ne.geometry.coordinates;Se=Go(Xe),Le=Yo(lt)}const Pe={type:1,geometry:[[Math.round(this.options.extent*(Se*Q-H)),Math.round(this.options.extent*(Le*Q-j))]],tags:Ie};let qe;we||this.options.generateId?qe=I[oe+Li]:qe=this.points[I[oe+Li]].id,qe!==void 0&&(Pe.id=qe),ae.features.push(Pe)}}_limitZoom(k){return Math.max(this.options.minZoom,Math.min(Math.floor(+k),this.options.maxZoom+1))}_cluster(k,I){const{radius:H,extent:j,reduce:Q,minPoints:ae}=this.options,ce=H/(j*Math.pow(2,I)),oe=k.data,we=[],Ie=this.stride;for(let Se=0;Se<oe.length;Se+=Ie){if(oe[Se+Yi]<=I)continue;oe[Se+Yi]=I;const Le=oe[Se],Pe=oe[Se+1],qe=k.within(oe[Se],oe[Se+1],ce),Ne=oe[Se+Zi];let Xe=Ne;for(const lt of qe){const yt=lt*Ie;oe[yt+Yi]>I&&(Xe+=oe[yt+Zi])}if(Xe>Ne&&Xe>=ae){let lt=Le*Ne,yt=Pe*Ne,ws,nn=-1;const js=((Se/Ie|0)<<5)+(I+1)+this.points.length;for(const Ot of qe){const os=Ot*Ie;if(oe[os+Yi]<=I)continue;oe[os+Yi]=I;const Mn=oe[os+Zi];lt+=oe[os]*Mn,yt+=oe[os+1]*Mn,oe[os+zo]=js,Q&&(ws||(ws=this._map(oe,Se,!0),nn=this.clusterProps.length,this.clusterProps.push(ws)),Q(ws,this._map(oe,os)))}
98oe[Se+zo]=js,we.push(lt/Xe,yt/Xe,1/0,js,-1,Xe),Q&&we.push(nn)}else{for(let lt=0;lt<Ie;lt++)we.push(oe[Se+lt]);if(Xe>1)for(const lt of qe){const yt=lt*Ie;if(!(oe[yt+Yi]<=I)){oe[yt+Yi]=I;for(let ws=0;ws<Ie;ws++)we.push(oe[yt+ws])}}}}return we}_getOriginId(k){return k-this.points.length>>5}_getOriginZoom(k){return(k-this.points.length)%32}_map(k,I,H){if(k[I+Zi]>1){const ae=this.clusterProps[k[I+gc]];return H?Object.assign({},ae):ae}const j=this.points[k[I+Li]].properties,Q=this.options.map(j);return H&&Q===j?Object.assign({},Q):Q}}function _c(R,k,I){return{type:"Feature",id:R[k+Li],properties:Od(R,k,I),geometry:{type:"Point",coordinates:[vc(R[k]),Vm(R[k+1])]}}}function Od(R,k,I){const H=R[k+Zi],j=H>=1e4?`${Math.round(H/1e3)}k`:H>=1e3?`${Math.round(H/100)/10}k`:H,Q=R[k+gc],ae=Q===-1?{}:Object.assign({},I[Q]);return Object.assign(ae,{cluster:!0,cluster_id:R[k+Li],point_count:H,point_count_abbreviated:j})}function Go(R){return R/360+.5}function Yo(R){const k=Math.sin(R*Math.PI/180),I=.5-.25*Math.log((1+k)/(1-k))/Math.PI;return I<0?0:I>1?1:I}function vc(R){return(R-.5)*360}function Vm(R){const k=(180-R*360)*Math.PI/180;return 360*Math.atan(Math.exp(k))/Math.PI-90}function Qa(R,k){var I={};for(var H in R)Object.prototype.hasOwnProperty.call(R,H)&&k.indexOf(H)<0&&(I[H]=R[H]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,H=Object.getOwnPropertySymbols(R);j<H.length;j++)k.indexOf(H[j])<0&&Object.prototype.propertyIsEnumerable.call(R,H[j])&&(I[H[j]]=R[H[j]]);return I}typeof SuppressedError=="function"&&SuppressedError;class ys{static isAdvancedMarkerAvailable(k){return google.maps.marker&&k.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(k){return google.maps.marker&&k instanceof google.maps.marker.AdvancedMarkerElement}static setMap(k,I){this.isAdvancedMarker(k)?k.map=I:k.setMap(I)}static getPosition(k){if(this.isAdvancedMarker(k)){if(k.position){if(k.position instanceof google.maps.LatLng)return k.position;if(Number.isFinite(k.position.lat)&&Number.isFinite(k.position.lng))return new google.maps.LatLng(k.position.lat,k.position.lng)}return new google.maps.LatLng(null)}return k.getPosition()}static getVisible(k){return this.isAdvancedMarker(k)?!0:k.getVisible()}}class gr{constructor({markers:k,position:I}){this.markers=[],k&&(this.markers=k),I&&(I instanceof google.maps.LatLng?this._position=I:this._position=new google.maps.LatLng(I))}get bounds(){if(this.markers.length===0&&!this._position)return;const k=new google.maps.LatLngBounds(this._position,this._position);for(const I of this.markers)k.extend(ys.getPosition(I));return k}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(k=>ys.getVisible(k)).length}push(k){this.markers.push(k)}delete(){this.marker&&(ys.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function sn(R,k="assertion failed"){if(R==null)throw Error(k)}const Md=(R,k,I,H)=>{const j=R.getBounds();sn(j);const Q=bc(j,k,H);return I.filter(ae=>Q.contains(ys.getPosition(ae)))},bc=(R,k,I)=>{const{northEast:H,southWest:j}=Pd(R,k),Q=Dd({northEast:H,southWest:j},I);return Rd(Q,k)},Fm=(R,k,I)=>
98{const H=bc(R,k,I),j=H.getNorthEast(),Q=H.getSouthWest();return[Q.lng(),Q.lat(),j.lng(),j.lat()]},Pd=(R,k)=>{const I=k.fromLatLngToDivPixel(R.getNorthEast()),H=k.fromLatLngToDivPixel(R.getSouthWest());return sn(I),sn(H),{northEast:I,southWest:H}},Dd=({northEast:R,southWest:k},I)=>(R.x+=I,R.y-=I,k.x-=I,k.y+=I,{northEast:R,southWest:k}),Rd=({northEast:R,southWest:k},I)=>{const H=I.fromDivPixelToLatLng(k),j=I.fromDivPixelToLatLng(R);return new google.maps.LatLngBounds(H,j)};class yc{constructor({maxZoom:k=16}){this.maxZoom=k}noop({markers:k}){return Um(k)}}class Bm extends yc{constructor(k){var{viewportPadding:I=60}=k,H=Qa(k,["viewportPadding"]);super(H),this.viewportPadding=60,this.viewportPadding=I}calculate({markers:k,map:I,mapCanvasProjection:H}){const j=I.getZoom();return sn(j),j>=this.maxZoom?{clusters:this.noop({markers:k}),changed:!1}:{clusters:this.cluster({markers:Md(I,H,k,this.viewportPadding),map:I,mapCanvasProjection:H})}}}const Um=R=>R.map(k=>new gr({position:ys.getPosition(k),markers:[k]}));class qm extends yc{constructor(k){var{maxZoom:I,radius:H=60}=k,j=Qa(k,["maxZoom","radius"]);super({maxZoom:I}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new Ko(Object.assign({maxZoom:this.maxZoom,radius:H},j))}calculate(k){let I=!1,H=k.map.getZoom();sn(H),H=Math.round(H);const j={zoom:H};if(!Za(k.markers,this.markers)){I=!0,this.markers=[...k.markers];const Q=this.markers.map(ae=>{const ce=ys.getPosition(ae);return{type:"Feature",geometry:{type:"Point",coordinates:[ce.lng(),ce.lat()]},properties:{marker:ae}}});this.superCluster.load(Q)}return I||(this.state.zoom<=this.maxZoom||j.zoom<=this.maxZoom)&&(I=!Za(this.state,j)),this.state=j,k.markers.length===0?(this.cluster
98s=[],{clusters:this.clusters,changed:I}):(I&&(this.clusters=this.cluster(k)),{clusters:this.clusters,changed:I})}cluster({map:k}){const I=k.getZoom();return sn(I),this.superCluster.getClusters([-180,-90,180,90],Math.round(I)).map(H=>this.transformCluster(H))}transformCluster({geometry:{coordinates:[k,I]},properties:H}){if(H.cluster)return new gr({markers:this.superCluster.getLeaves(H.cluster_id,1/0).map(Q=>Q.properties.marker),position:{lat:I,lng:k}});const j=H.marker;return new gr({markers:[j],position:ys.getPosition(j)})}}class Id extends Bm{constructor(k){var{maxZoom:I,radius:H=60,viewportPadding:j=60}=k,Q=Qa(k,["maxZoom","radius","viewportPadding"]);super({maxZoom:I,viewportPadding:j}),this.markers=[],this.clusters=[],this.superCluster=new Ko(Object.assign({maxZoom:this.maxZoom,radius:H},Q)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(k){const I=this.getViewportState(k);let H=!Za(this.state,I);if(!Za(k.markers,this.markers)){H=!0,this.markers=[...k.markers];const j=this.markers.map(Q=>{const ae=ys.getPosition(Q);return{type:"Feature",geometry:{type:"Point",coordinates:[ae.lng(),ae.lat()]},properties:{marker:Q}}});this.superCluster.load(j)}
98return H&&(this.clusters=this.cluster(k),this.state=I),{clusters:this.clusters,changed:H}}cluster(k){const I=this.getViewportState(k);return this.superCluster.getClusters(I.view,I.zoom).map(H=>this.transformCluster(H))}transformCluster({geometry:{coordinates:[k,I]},properties:H}){if(H.cluster)return new gr({markers:this.superCluster.getLeaves(H.cluster_id,1/0).map(Q=>Q.properties.marker),position:{lat:I,lng:k}});const j=H.marker;return new gr({markers:[j],position:ys.getPosition(j)})}getViewportState(k){const I=k.map.getZoom(),H=k.map.getBounds();return sn(I),sn(H),{zoom:Math.round(I),view:Fm(H,k.mapCanvasProjection,this.viewportPadding)}}}class Hm{constructor(k,I){this.markers={sum:k.length};const H=I.map(Q=>Q.count),j=H.reduce((Q,ae)=>Q+ae,0);this.clusters={count:I.length,markers:{mean:j/I.length,sum:j,min:Math.min(...H),max:Math.max(...H)}}}}class jm{render({count:k,position:I},H,j){const Q=`<svg fill="${k>Math.max(10,H.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50"> 99<circle cx="120" cy="120" opacity=".6" r="70" /> 100<circle cx="120" cy="120" opacity=".3" r="90" /> 101<circle cx="120" cy="120" opacity=".2" r="110" /> 102<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${k}</text> 103</svg>`,ae=`Cluster of ${k} markers`,ce=Number(google.maps.Marker.MAX_ZINDEX)+k;if(ys.isAdvancedMarkerAvailable(j)){const we=new DOMParser().parseFromString(Q,"image/svg+xml").documentElement;we.setAttribute("transform","translate(0 25)");const Ie={map:j,position:I,zIndex:ce,title:ae,content:we};return new google.maps.marker.AdvancedMarkerElement(Ie)}const oe={position:I,zIndex:ce,title:ae,icon:{url:`data:image/svg+xml;base64,${btoa(Q)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(oe)}}function Wm(R,k){for(let I in k.prototype)R.prototype[I]=k.prototype[I]}class wc{constructor(){Wm(wc,google.maps.OverlayView)}}var pi;(function(R){R.CLUSTERING_BEGIN="clusteringbegin",R.CLUSTERING_END="clusteringend",R.CLUSTER_CLICK="click",R.GMP_CLICK="gmp-click"})(pi||(pi={}));const zm=(R,k,I)=>{k.bounds&&I.fitBounds(k.bounds)};class Km extends wc{constructor({map:k,markers:I=[],algorithmOptions:H={},algorithm:j=new qm(H),renderer:Q=new jm,onClusterClick:ae=zm}){super(),this.map=null,this.idleListener=null,this.markers=[...I],this.clusters=[],this.algorithm=j,this.renderer=Q,this.onClusterClick=ae,k&&this.setMap(k)}addMarker(k,I){this.markers.includes(k)||(this.markers.push(k),I||this.render())}addMarkers(k,I){k.forEach(H=>{this.addMarker(H,!0)}),I||this.render()}removeMarker(k,I){const H=this.markers.indexOf(k);return H===-1?!1:(ys.setMap(k,null),this.markers.splice(H,1),I||this.render(),!0)}removeMarkers(k,I){let H=!1;return k.forEach(j=>{H=this.removeMarker(j,!0)||H}),H&&!I&&this.render(),H}clearMarkers(k){this.markers.length=0,k||this.render()}render(){const k=this.getMap();if(k instanceof google.maps.Map&&k.getProjection()){google.maps.event.trigger(this,pi.CLUSTERING_BEGIN,this);const{clusters:I,changed:H}=this.algorithm.calculate({markers:this.markers,map:k,mapCanvasProjection:this.getProjection()});if(H||H==null){const j=new Set;for(const ae of I)ae.markers.length==1&&j.add(ae.markers[0]);const Q=[];for(const ae of this.clusters)ae.marker!=null&&(ae.markers.length==1?j.has(ae.marker)||ys.setMap(ae.marker,null):Q.push(ae.marker));this.clusters=I,this.renderClusters(),requestAnimationFrame(()=>Q.forEach(ae=>ys.setMap(ae,null)))}google.maps.event.trigger(this,pi.CLUSTERING_END,this)}}onAdd(){const k=this.getMap();sn(k),this.idleListener=k.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(k=>ys.setMap(k,null)),this.clusters.forEach(k=>k.delete()),this.clusters=[]}renderClusters(){const k=new Hm(this.markers,this.clusters),I=this.getMap();this.clusters.forEach(H=>{if(H.markers.length===1)H.marker=H.markers[0];
103else if(H.marker=this.renderer.render(H,k,I),H.markers.forEach(j=>ys.setMap(j,null)),this.onClusterClick){const j=ys.isAdvancedMarker(H.marker)?pi.GMP_CLICK:pi.CLUSTER_CLICK;H.marker.addListener(j,Q=>{google.maps.event.trigger(this,pi.CLUSTER_CLICK,H),this.onClusterClick(Q,H,I)})}ys.setMap(H.marker,I)})}}function xc(R){var k=typeof R;return R!=null&&(k=="object"||k=="function")}var Gm=typeof yo=="object"&&yo&&yo.Object===Object&&yo;const Ym=Gm;var ns=typeof self=="object"&&self&&self.Object===Object&&self,ss=Ym||ns||Function("return this")();const Ld=ss;var Zm=function(){return Ld.Date.now()};const Sc=Zm;var Xm=/\s/;function Jm(R){for(var k=R.length;k--&&Xm.test(R.charAt(k)););return k}var Qm=/^\s+/;function Nd(R){return R&&R.slice(0,Jm(R)+1).replace(Qm,"")}var eg=Ld.Symbol;const _s=eg;var el=Object.prototype,_r=el.hasOwnProperty,Vd=el.toString,vr=_s?_s.toStringTag:void 0;function Tn(R){var k=_r.call(R,vr),I=R[vr];try{R[vr]=void 0;var H=!0}catch{}var j=Vd.call(R);return H&&(k?R[vr]=I:delete R[vr]),j}var Fd=Object.prototype,Bd=Fd.toString;function Ud(R){return Bd.call(R)}var qd="[object Null]",Hd="[object Undefined]",Ec=_s?_s.toStringTag:void 0;function mn(R){return R==null?R===void 0?Hd:qd:Ec&&Ec in Object(R)?Tn(R):Ud(R)}function tg(R){return R!=null&&typeof R=="object"}var On="[object Symbol]";function sg(R){return typeof R=="symbol"||tg(R)&&mn(R)==On}var Cc=NaN,Xi=/^[-+]0x[0-9a-f]+$/i,tl=/^0b[01]+$/i,kc=/^0o[0-7]+$/i,rs=parseInt;function Ni(R){if(typeof R=="number")return R;if(sg(R))return Cc;if(xc(R)){var k=typeof R.valueOf=="function"?R.valueOf():R;R=xc(k)?k+"":k}if(typeof R!="string")return R===0?R:+R;R=Nd(R);var I=tl.test(R);return I||kc.test(R)?rs(R.slice(2),I?2:8):Xi.test(R)?Cc:+R}var Ac="Expected a function",ng=Math.max,$c=Math.min;function ig(R,k,I){var H,j,Q,ae,ce,oe,we=0,Ie=!1,Se=!1,Le=!0;if(typeof R!="function")throw new TypeError(Ac);k=Ni(k)||0,xc(I)&&(Ie=!0,Se="maxWait"in I,Q=Se?ng(Ni(I.maxWait)||0,k):Q,Le="trailing"in I?!0:Le);function Pe(Ot){var os=H,Mn=j;return H=j=void 0,we=Ot,ae=R.apply(Mn,os),ae}function qe(Ot){return we=Ot,ce=setTimeout(lt,k),Ie?Pe(Ot):ae}function Ne(Ot){var os=Ot-oe,Mn=Ot-we,br=k-os;return Se?$c(br,Q-Mn):br}function Xe(Ot){var os=Ot-oe,Mn=Ot-we;return oe===void 0||os>=k||os<0||Se&&Mn>=Q}function lt(){var Ot=Sc();if(Xe(Ot))return yt(Ot);ce=setTimeout(lt,Ne(Ot))}function yt(Ot){return ce=void 0,Le&&H?Pe(Ot):(H=j=void 0,ae)}function ws(){ce!==void 0&&clearTimeout(ce),we=0,H=oe=j=ce=void 0}function nn(){return ce===void 0?ae:yt(Sc())}function js(){var Ot=Sc(),os=Xe(Ot);
103if(H=arguments,j=this,oe=Ot,os){if(ce===void 0)return qe(oe);if(Se)return clearTimeout(ce),ce=setTimeout(lt,k),Pe(oe)}return ce===void 0&&(ce=setTimeout(lt,k)),ae}return js.cancel=ws,js.flush=nn,js}class rg extends Km{constructor(k,I=10){super(k),o(this,"debouncedRender"),this.debouncedRender=ig(()=>{super.render()},I,{leading:!0,trailing:!0})}addMarker(k,I){super.addMarker(k,!0),I||this.debouncedRender()}removeMarker(k,I){const H=super.removeMarker(k,!0);return I||this.debouncedRender(),H}addMarkers(k,I){super.addMarkers(k,!0),I||this.debouncedRender()}removeMarkers(k,I){const H=super.removeMarkers(k,!0);return I||this.debouncedRender(),H}clearMarkers(k){super.clearMarkers(!0),k||this.debouncedRender()}render(){this.debouncedRender.cancel(),super.render()}destroy(){this.debouncedRender.cancel()}}class og extends Id{calculate(k){return k.markers.length===0?{clusters:[],changed:!0}:super.calculate(k)}}const Tc=Object.values(pi),sl=n.defineComponent({name:"MarkerCluster",props:{options:{type:Object,default:()=>({})},renderDebounceDelay:{type:Number,default:10}},emits:Tc,setup(R,{emit:k,expose:I,slots:H}){const j=n.ref(),Q=n.inject(a,n.ref()),ae=n.inject(c,n.ref());return n.provide(h,j),n.watch(Q,()=>{Q.value&&(j.value=n.markRaw(new rg({map:Q.value,algorithm:new og(R.options.algorithmOptions??{}),...R.options},R.renderDebounceDelay)),Tc.forEach(ce=>{var oe;(oe=j.value)==null||oe.addListener(ce,we=>k(ce,we))}))},{immediate:!0}),n.onBeforeUnmount(()=>{var ce;j.value&&((ce=ae.value)==null||ce.event.clearInstanceListeners(j.value),j.value.clearMarkers(!0),j.value.setMap(null),j.value.destroy())}),I({markerCluster:j}),()=>{var ce;return(ce=H.default)==null?void 0:ce.call(H)}}}),Qr=n.defineComponent({inheritAttrs:!1,props:{options:{type:Object,required:!0}},setup(R,{slots:k,emit:I,expose:H}){const j=n.ref(),Q=n.computed(()=>{var oe;return(oe=k.default)==null?void 0:oe.call(k).some(we=>we.type!==n.Comment)}),ae=n.computed(()=>({...R.options,element:j.value})),ce=Bt(p,[],ae,I);return H({customMarker:ce}),{customMarkerRef:j,customMarker:ce,hasSlotContent:Q}}}),ag={key:0,class:"custom-marker-wrapper"};function jd(R,k,I,H,j,Q){return R.hasSlotContent?(n.openBlock(),n.createElementBlock("div",ag,[n.createElementVNode("div",n.mergeProps({ref:"customMarkerRef",style:{cursor:R.$attrs.onClick?"pointer":void 0}},R.$attrs),[n.renderSlot(R.$slots,"default",{},void 0,!0)],16)])):n.createCommentVNode("v-if",!0)}const Wd=Z(Qr,[["render",jd],["__scopeId","data-v-90fe8380"]]),Oc=n.defineComponent({name:"HeatmapLayer",props:{options:{type:Object,default:()=>({})}},setup(R){const k=n.ref(),I=n.inject(a,n.ref()),H=n.inject(c,n.ref());return n.watch([I,()=>R.options],([j,Q],[ae,ce])=>{const oe=!xe(Q,ce)||I.value!==ae;if(I.value&&H.value&&oe){let we;if(Q.data&&!(Q.data instanceof H.value.MVCArray)){const Ie=H.value.LatLng,Se=Q.data.map(Le=>Le instanceof Ie||"location"in Le&&(Le.location instanceof Ie||Le.location===null)?Le:"location"in Le?{...Le,location:new Ie(Le.location)}:new Ie(Le));we={...Q,data:Se}}else we=Q;k.value?k.value.setOptions(we):k.value=n.markRaw(new H.value.visualization.HeatmapLayer({...we,map:I.value}))}},{immediate:!0}),n.onBeforeUnmount(()=>{k.value&&k.value.setMap(null)}),{heatmapLayer:k}},render:()=>null});s.AdvancedMarker=es,s.Circle=X,s.CustomControl=Te,s.CustomMarker=Wd,s.GoogleMap=Ee,s.HeatmapLayer=Oc,s.InfoWindow=et,s.Marker=zt,s.MarkerCluster=sl,s.Polygon=gs,s.Polyline=Hs,s.Rectangle=ps,s.apiSymbol=c,s.mapSymbol=a,s.mapTilesLoadedSymbol=m,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})})})(gu,gu.exports)),gu.exports}var Pu=tpe();const spe={__name:"TrainingSiteMap",props:{trainingSites:{type:Array,required:!0},googleMapsApiKey:{type:String,required:!0}},setup(t){const e=t,s=W(null),n=te(()=>e.trainingSites.filter(i=>i.lat!=null&&i.lng!=null).map(i=>({id:i.id,lat:parseFloat(i.lat),lng:parseFloat(i.lng)})));return Et(()=>{var i;return(i=s.value)==null?void 0:i.ready},i=>{if(!i)return;const r=s.value.map;if(!r||!n.value.length)return;const o=new google.maps.LatLngBounds;n.value.forEach(a=>o.extend({lat:a.lat,lng:a.lng})),n.value.length===1?(r.setCenter(o.getCenter()),r.setZoom(10)):r.fitBounds(o,50)}),(i,r)=>(y(),tt(w(Pu.GoogleMap),{ref_key:"mapRef",ref:s,"map-id":"DEMO_MAP_ID","api-key":"AIzaSyBxMh4uTpVaKGH3SIHDDP8hTwSwPH-usVA",style:{width:"100%",height:"269px"}},{default:Fe(()=>[(y(!0),x(G,null,ge(n.value,(o,a)=>(y(),tt(w(Pu.AdvancedMarker),{key:`location-${o.id}`,options:{position:{lat:o.lat,lng:o.lng}},"pin-options":{glyph:(a+1).toString()}},null,8,["options","pin-options"]))),128))]),_:1},512))}},npe={class:"bg-white p-4 mb-4"},ipe={role:"status","aria-live":"polite",class:"visually-hidden"},rpe={key:0,class:"list-group list-group-flush border-top border-bottom py-1 placeholder-glow","aria-hidden":"true"},ope={key:1,class:"list-group list-group-flush border-top border-bottom py-1"},ape={key:0,class:"list-group-item text-open-sans text-16"},lpe={class:"d-flex"},cpe={class:"flex-shrink-0 text-center"}
103,upe={class:"text-open-sans small"},dpe={class:"text-open-sans fw-bold fs-5"},fpe={class:"flex-grow-1 ms-4"},hpe={class:"text-open-sans small text-uppercase"},ppe={class:"text-open-sans fs-5"},mpe=["href"],gpe={key:1},_pe={__name:"EventsList",setup(t){const e=W([]),s=W(!1),n=i=>{const[r,o,a]=i.split("-");return new Date(r,o-1,a)};return Ds(async()=>{try{s.value=!0;const i=await Lt.get("/api/center/events");e.value=i.data.data.map(r=>{var a;const o=n(r.start_date);return{...r,typeName:((a=r.event_type)==null?void 0:a.name)??null,shortMonth:o.toLocaleString("en-US",{month:"short"}),day:o.getDate()}})}catch{}finally{s.value=!1}}),(i,r)=>(y(),x("div",npe,[r[1]||(r[1]=u("h3",{class:"text-raleway fw-semibold fs-4"},"Upcoming Events",-1)),r[2]||(r[2]=u("p",{class:"text-open-sans text-16"}," Led by the University of North Carolina (UNC), NCGME.org brings together experts from across the U.S. in all aspects of graduate medical education. ",-1)),u("div",ipe,P(s.value?"Loading upcoming events...":"Events loaded."),1),s.value?(y(),x("ul",rpe,[(y(),x(G,null,ge(2,o=>u("li",{key:"event_skeleton_"+o,class:"list-group-item py-3"},r[0]||(r[0]=[ci('<div class="d-flex align-items-center"><div class="flex-shrink-0 text-center" style="width:45px;"><span class="placeholder col-8 bg-secondary mb-1 d-inline-block" style="height:14px;"></span><span class="placeholder col-10 bg-secondary d-inline-block" style="height:24px;"></span></div><div class="flex-grow-1 ms-4"><span class="placeholder col-3 bg-secondary mb-2 d-block" style="height:20px;"></span><span class="placeholder col-9 bg-secondary d-block" style="height:14px;"></span></div></div>',1)]))),64))])):(y(),x("ul",ope,[e.value.length?ie("",!0):(y(),x("li",ape," There are currently no upcoming events. ")),(y(!0),x(G,null,ge(e.value,o=>(y(),x("li",{key:o.id,class:"list-group-item py-3"},[u("div",lpe,[u("div",cpe,[u("div",upe,P(o.shortMonth),1),u("div",dpe,P(o.day),1)]),u("div",fpe,[u("div",hpe,P(o.typeName),1),u("div",ppe,[o.link?(y(),x("a",{key:0,href:o.link,class:"fw-semibold link"},P(o.title),9,mpe)):(y(),x("span",gpe,P(o.title),1))])])])]))),128))])),r[3]||(r[3]=u("p",{class:"text-open-sans fs-6 mt-3"},[u("a",{href:"/register",class:"fw-semibold link"},"Create an account"),re(" for free access to past webinars, or "),u("a",{href:"/portal",class:"fw-semibold link"},"sign in"),re(" if you already have one. ")],-1))]))}},vpe={class:"mt-4"},bpe={class:"d-flex justify-content-between text-open-sans text-18 p-4 border"},ype=["innerHTML"],wpe=["innerHTML"],xpe={__name:"AccordionItem",props:{id:Number,question:String,answer:String,open:Boolean},emits:["toggle"],setup(t,{emit:e}){const s=t,n=e,i=te(()=>s.open?'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M200-440v-80h560v80H200Z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"/></svg>'),r=te(()=>s.open),o=()=>{n("toggle",s.id)};return(a,c)=>(y(),x("div",vpe,[u("div",bpe,[u("p",null,P(t.question),1),u("p",{onClick:o,class:"ms-5",innerHTML:i.value},null,8,ype)]),r.value?(y(),x("div",{key:0,class:"text-open-sans text-18 p-4 border-bottom border-start border-end bg-F0F8FF",innerHTML:t.answer},null,8,wpe)):ie("",!0)]))}},eS="mailto:[email protected]",Spe="https://www.cms.gov/medicare/payment/prospective-payment-systems/acute-inpatient-pps/fy-2026-ipps-final-rule-home-page",Epe="https://www.hrsa.gov/rural-health/about-us/what-is-rural",Cpe="https://www.ncruralcenter.org/how-we-define-rural/",kpe="https://www.hrsa.gov/rural-health/grants/rural-health-research-policy/rrpd",Ape="https://www.ncdhhs.gov/about/department-initiatives/rural-health-transformation-program",$pe="https://www.northcarolina.edu/rural-health/",Tpe={__name:"GettingStartedQuestions",setup(t){const e=W([{id:1,question:"We are interested in starting/expanding rural training in North Carolina. Can we access the tools and resources through NCGME?",answer:"Yes, anyone considering starting or expanding rural training is encouraged to register for our free toolbox with access to best practice documents and accreditation resources. When you register for the portal, you will be added to our email listserv and receive updates as well as information on upcoming webinars.",open:!1},{id:2,question:"What is the timeline for starting a new rural program?",answer:"The timeline for developing a new rural program will vary depending on several factors. A new rural residency program on average takes three to four years to develop. Expansion of an existing program often requires less time to launch. The Roadmap for Rural Residency Development highlights the 5 stages of development with specific goals and measurable milestones to be achieved.",open:!1},{id:3,question:"How do I learn if I am eligible for support through NCGME-TAC?",answer:`We support all existing rural and underserved programs and are eager to see new programs launch. Please reach out to <a href="${eS}">[email protected] </a>for support.`,open:!1},{id:4,question:"What specialties are eligible for NCGME-TAC support?",answer:"The TAC supports development, expansion, and sustainability of new rural and underserved residency programs in fam
103ily medicine, internal medicine, pediatrics, psychiatry, general surgery, obstetrics and gynecology, dentistry, as well as interprofessional training in related areas.",open:!1},{id:5,question:"How do I know if my program is rural?",answer:`There are several different definitions of rural that are used by different funding sources. The most common ones used in North Carolina are the <a href="${Spe}">Centers for Medicare and Medicaid Services</a>, the <a href="${Epe}">Federal Office of Rural Health Policy</a>, and the <a href="${Cpe}">NC Rural Center</a>. Please reach out to us for assistance with identifying rural sites for your program at <a href="${eS}">[email protected]</a>.`,open:!1},{id:6,question:"What funding opportunities are available to support rural program development?",answer:`There are a number of federal and state funding opportunities available to support rural program development including those listed below. Please pay attention to eligibility requirements as these differ across funding opportunities. 104 <ul class='pt-4'> 105 <li><a href="${kpe}">Health Resources and Services Administrationâs Rural Residency Planning and Development Program</a></li> 106 <li><a href="${Ape}">Rural Health Transformation Program</a></li> 107 <li><a href="${$pe}">UNC System Office</a></li> 108 </ul>`,open:!1}]),s=n=>{const i=e.value.find(r=>r.id===n);i&&(i.open=!i.open)};return(n,i)=>(y(),x("div",null,[(y(!0),x(G,null,ge(e.value,(r,o)=>(y(),x("div",{key:"faqs-"+o},[U(xpe,{id:r.id,question:r.question,answer:r.answer,open:r.open,onToggle:s},null,8,["id","question","answer","open"])]))),128))]))}},Ope={class:"bg-white p-4"},Mpe={role:"status","aria-live":"polite",class:"visually-hidden"},Ppe={key:0,class:"list-group list-group-flush border-top border-bottom py-1 placeholder-glow","aria-hidden":"true"},Dpe={key:1,class:"list-group list-group-flush border-top border-bottom py-1"},Rpe={key:0,class:"list-group-item text-open-sans text-16"},Ipe={class:"d-flex"},Lpe={class:"flex-shrink-0 text-center"},Npe={class:"text-open-sans small"},Vpe={class:"text-open-sans fw-bold fs-5"},Fpe={class:"flex-grow-1 ms-4"},Bpe={class:"text-open-sans fs-5"},Upe=["href"],qpe={key:1},Hpe={class:"text-open-sans fs-6"},jpe={__name:"SpeakingEventList",setup(t){const e=W([]),s=W(!1),n=i=>{const[r,o,a]=i.split("-");return new Date(r,o-1,a)};return Ds(async()=>{try{s.value=!0;const i=await Lt.get("/api/center/research/speaking-events");e.value=i.data.data.map(r=>{const o=n(r.start_date);return{...r,shortMonth:o.toLocaleString("en-US",{month:"short"}),day:o.getDate()}})}catch{}finally{s.value=!1}}),(i,r)=>(y(),x("div",Ope,[r[1]||(r[1]=u("h3",{class:"text-raleway fw-semibold fs-4"},"Speaking Events",-1)),r[2]||(r[2]=u("p",{class:"text-open-sans text-16"}," Check out our upcoming speaking engagements or contact us if you would like us to speak at your event. ",-1)),u("div",Mpe,P(s.value?"Loading upcoming speaking events...":"Speaking events loaded."),1),s.value?(y(),x("ul",Ppe,[(y(),x(G,null,ge(2,o=>u("li",{key:"event_skeleton_"+o,class:"list-group-item py-3"},r[0]||(r[0]=[ci('<div class="d-flex align-items-center"><div class="flex-shrink-0 text-center" style="width:45px;"><span class="placeholder col-8 bg-secondary mb-1 d-inline-block" style="height:14px;"></span><span class="placeholder col-10 bg-secondary d-inline-block" style="height:24px;"></span></div><div class="flex-grow-1 ms-4"><span class="placeholder col-3 bg-secondary mb-2 d-block" style="height:20px;"></span><span class="placeholder col-9 bg-secondary d-block" style="height:14px;"></span></div></div>',1)]))),64))])):(y(),x("ul",Dpe,[e.value.length?ie("",!0):(y(),x("li",Rpe," There are currently no upcoming events. ")),(y(!0),x(G,null,ge(e.value,o=>(y(),x("li",{key:o.id,class:"list-group-item py-3"},[u("div",Ipe,[u("div",Lpe,[u("div",Npe,P(o.shortMonth),1),u("div",Vpe,P(o.day),1)]),u("div",Fpe,[u("div",Bpe,[o.link?(y(),x("a",{key:0,href:o.link,class:"fw-semibold link"},P(o.title),9,Upe)):(y(),x("span",qpe,P(o.title),1))]),u("div",Hpe,P(o.location),1)])])]))),128))]))]))}},Wpe={class:"container-fluid m-0 p-0"},zpe={class:"container-fluid bg-white p-2"},Kpe={class:"row"},Gpe={class:"col"},Ype={class:"weight-700 m-0 p-0"},Zpe={class:"m-0 p-0"},Xpe={class:"m-0 p-0"},Jpe={class:"m-0 p-0"},Qpe={class:"row my-4"},eme={class:"col-md-10 offset-md-1"},tme={class:"row g-3"},sme={class:"col-md-4"},nme={value:null},ime=["value"],rme={class:"col-md-4"},ome={value:null},ame=["value"],lme={class:"col-md-4"},cme={value:null},ume=["value"],dme={class:"container-fluid bg-FAFAFA m-0 p-0"},fme={class:"row py-4"},hme={class:"col-12"},pme={key:0,class:"row"},mme=["onClick"],gme={class:"row bg-white"},_me={class:"col-md-5 pt-3 pb-0 pb-md-3"},vme={class:"text-raleway text-22 text-semibold"},bme={class:"text-raleway text-18"},yme={class:"col-md-5 offset-md-1 pt-0 pt-md-3 pb-3"},wme={class:"container-fluid p-0"},xme={class:"row"},Sme={class:"col-6"},Eme={class:"row"},Cme={class:"col-6"},kme={class:"row"},Ame={class:"col-6"},$me={class:"row"},Tme={class:"col-6"},Ome={class:"row"},Mme={class:"col-6"},Pme={__name:"ProgramProfileIndex",props:{programs:{type:Array,required:!0},states:{type:Array,required:!0},cohorts:{type:Array,required:!0},specialties:{type:Array,required:!0}},setup(t){const e=t,s=W(null),n=W(null),i=W(null),r={lat:45,lng:-107},o=W(null),a=Ua({});function c(b){window.location.href=`/program-profiles/${b.id}`}const f=b=>{o.value=b},h=(b,S)=>{b&&b.marker&&(a[S]=b.marker)},p=te(()=>{let b=e.programs;return s.value!==null&&(b=b.filter(S=>S.primary_training_site_state_id==s.value)),n.value!==null&&(b=b.filter(S=>S.cohort_id==n.value)),i.value!==null&&(b=b.filter(S=>S.specialty_id==i.value)),b}),m=te(()=>s.value===null?"Select State":"All States"),_=te(()=>n.value===null?"Select Cohort":"All Cohorts"),v=te(()=>i.value===null?"Select Specialty":"All Specialties");return(b,S)=>(y(),x("div",Wpe,[u("div",zpe,[u("div",Kpe,[u("div",Gpe,[U(w(Pu.GoogleMap),{"api-key":"AIzaSyBxMh4uTpVaKGH3SIHDDP8hTwSwPH-usVA","map-id":"DEMO_MAP_ID",zoom:3,center:r,style:{width:"100%",height:"500px"}},{default:Fe(()=>[(y(!0),x(G,null,ge(p.value,C=>(y(),tt(w(Pu.AdvancedMarker),{key:"location-"+C.id,options:{position:{lat:parseFloat(C.primary_training_site_lat),lng:parseFloat(C.primary_training_site_lng)}},"pin-options":{background:"red",borderColor:"black",glyphColor:"black"},onClick:O=>f(C.id),ref_for:!0,ref:O=>h(O,C.id)},{default:Fe(()=>[o.value===C.id?(y(),tt(w(Pu.InfoWindow),{key:0,options:{anchor:a[C.id]}},{default:Fe(()=>[u("p",Ype,P(C.profile_residency_program_name),1),u("p",Zpe,P(C.primary_training_site_state_name),1),u("p",Xpe,P(C.specialty_name),1),u("p",Jpe,P(C.primary_training_site_city+", "+C.primary_training_site_state_name),1)]),_:2},1032,["options"])):ie("",!0)]),_:2},1032,["options","onClick"]))),128))]),_:1})])]),u("div",Qpe,[u("div",eme,[u("div",tme,[u("div",sme,[Ge(u("select",{"onUpdate:modelValue":S[0]||(S[0]=C=>s.value=C),class:"form-select"},[u("option",nme,P(m.value),1),(y(!0),x(G,null,ge(t.states,C=>(y(),x("option",{key:`state-${C.id}`,value:C.id},P(C.name),9,ime))),128))],512),[[Wn,s.value]])]),u("div",rme,[Ge(u("select",{"onUpdate:modelValue":S[1]||(S[1]=C=>n.value=C),class:"form-select"},[u("option",ome,P(_.value),1),(y(!0),x(G,null,ge(t.cohorts,C=>(y(),x("option",{key:`cohort-${C.id}`,value:C.id},P(C.name),9,ame))),128))],512),[[Wn,n.value]])]),u("div",lme,[Ge(u("select",{"onUpdate:modelValue":S[2]||(S[2]=C=>i.value=C),class:"form-select"},[u("option",cme,P(v.value),1),(y(!0),x(G,null,ge(t.specialties,C=>(y(),x("option",{key:`specialty-${C.id}`,value:C.id},P(C.name),9,ume))),128))],512),[[Wn,i.value]])])])])])]),u("div",dme,[u("div",fme,[u("div",hme,[p.value.length===0?(y(),x("div",pme,S[3]||(S[3]=[u("div",{class:"col-10 offset-1"}," There are no programs to display given the filters selected. ",-1)]))):ie("",!0),(y(!0),x(G,null,ge(p.value,C=>(y(),x("div",{key:`program-${C.id}`,class:"row mt-3 mx-2 mx-md-0"},[u("div",{class:"col-md-10 offset-md-1 border cursor-pointer",role:"button",onClick:O=>c(C)},[u("div",gme,[u("div",_me,[u("h3",vme,P(C.profile_residency_program_name),1),u("p",bme,P(C.profile_sponsoring_institution),1)]),u("div",yme,[u("div",wme,[u("div",xme,[S[4]||(S[4]=u("div",{class:"col-6"},"Specialty",-1)),u("div",Sme,P(C.specialty_name),1)]),u("div",Eme,[S[5]||(S[5]=u("div",{class:"col-6"},"State",-1)),u("div",Cme,P(C.primary_training_site_state_name),1)]),u("div",kme,[S[6]||(S[6]=u("div",{class:"col-6"},"Program Start Date",-1)),u("div",Ame,P(C.profile_start_date),1)]),u("div",$me,[S[7]||(S[7]=u("div",{class:"col-6"},"Class Size",-1)),u("div",Tme,P(C.profile_class_size),1)]),u("div",Ome,[S[8]||(S[8]=u("div",{class:"col-6"},"HRSA Cohort",-1)),u("div",Mme,P(C.cohort_name),1)])])])])],8,mme)]))),128))])])])]))}},Dme={class:"row"},Rme={class:"col-md-10 offset-md-1"},Ime={class:"row pb-4 m-0"},Lme={role:"status","aria-live":"polite",class:"visually-hidden"},Nme={class:"text-white text-open-sans weight-700 text-12 p-0"},Vme={class:"row mb-md-4 gy-5"},Fme={class:"d-flex align-items-top"},Bme={class:"flex-shrink-0 mt-2"},Ume=["src"],qme={class:"flex-grow-1 ms-4"},Hme={class:"weight-700 text-white text-raleway text-42 m-0"},jme={class:"weight-700 text-white text-open-sans text-18 m-0"},Wme={__name:"OurImpact",setup(t){const e=W([]),s=W(!1),n=te(()=>{if(!e.value.length)return"";const o=e.value.map(f=>f.updated_at).map(f=>Date.parse(f)),a=Math.max(...o);return new Date(a).toLocaleDateString()}),i=te(()=>e.value.length===0?"Loading impacts...":"Impacts loaded.");return Ds(async()=>{try{s.value=!0;const r=await Lt.get("/api/center/impacts");e.value=r.data.data}catch{}finally{s.value=!1}}),(r,o)=>(y(),x("div",Dme,[u("div",Rme,[u("div",Ime,[u("div",Lme,P(i.value),1),u("p",Nme,"NUMBERS AS OF DATE: "+P(n.value),1)]),u("dl",Vme,[e.value.length?(y(!0),x(G,{key:1},ge(e.value,(a,c)=>(y(),x("div",{key:"impact_"+c,class:"col-lg-4 col-md-6 col-sm-12"},[u("div",Fme,[u("div",Bme,[u("img",{src:a.icon_url,width:"70",alt:""},null,8,Ume)]),u("div",qme,[u("dt",Hme,P(a.value),1),u("dd",jme,P(a.label),1)])])]))),128)):(y(),x(G,{key:0},ge(6,a=>u("div",{key:"placeholder_"+a,class:"col-lg-4 col-md-6 col-sm-12 placeholder-glow","aria-hidden":"true"},o[0]||(o[0]=[ci('<div class="d-flex align-items-top"><div class="flex-shrink-0 mt-2"><div class="placeholder bg-light" style="width:70px;height:70px;border-radius:8px;"></div></div><div class="flex-grow-1 ms-4 d-flex flex-column justify-content-center"><span class="placeholder col-4 bg-light placeholder-lg mb-2" style="height:42px;"></span><span class="placeholder col-8 bg-light" style="height:18px;"></span></div></div>',1)]))),64))])])]))}},zme={class:"card mb-3 p-0 text-raleway"},Kme={class:"row g-0 p-4"},Gme={class:"col-3 justify-content-center d-flex align-items-start"},Yme=["src"],Zme={class:"col-12 col-sm-9"},Xme={class:"fs-6 d-flex flex-column"},Jme={key:0,class:"mb-0 text-uppercase"},Qme={key:1,class:"mb-0"},ege={key:2,class:"mb-0"},tge={key:3,class:"mb-0"},sge=["href"],nge=["href"],ige={__name:"ResearchItem",props:{research:{type:Object,required:!0}},setup(t){const e=t,s=te(()=>`/api/center/research/${e.research.id}/download`);async function n(i){var o,a;const r=new FormData;r.append("research_id",i.id),r.append("title",i.title),r.append("type",i.research_type?i.research_type.n
108ame:""),r.append("topics",(o=i.research_topics)==null?void 0:o.map(c=>c.name).join(" , ")),r.append("discipline",(a=i.specialty)!=null&&a.discipline?i.specialty.discipline.name:""),r.append("specialty",i.specialty?i.specialty.name:""),await Lt.post("/api/research-clicks",r)}return(i,r)=>{var o,a,c,f,h;return y(),x("div",zme,[u("div",Kme,[u("div",Gme,[(o=t.research.research_type)!=null&&o.name?(y(),x("img",{key:0,src:`/images/public/research/icon_${t.research.research_type.name}.svg`,class:"img-fluid mt-2",style:{"max-width":"80px"},alt:""},null,8,Yme)):ie("",!0)]),u("div",Zme,[u("h2",null,P(t.research.title),1),u("div",Xme,[(a=t.research.research_topics)!=null&&a.length?(y(),x("p",Jme,P(t.research.research_topics.map(p=>p.name).join(" | ")),1)):ie("",!0),t.research.specialty?(y(),x("p",Qme,P((c=t.research.specialty.discipline)==null?void 0:c.name)+" "+P(t.research.specialty.name),1)):ie("",!0),t.research.display_month?(y(),x("p",ege,P(t.research.display_month)+" "+P(t.research.display_year),1)):ie("",!0),t.research.location?(y(),x("p",tge,P(t.research.location),1)):ie("",!0),t.research.link?(y(),x("a",{key:4,href:t.research.link,target:"_blank",onClick:r[0]||(r[0]=p=>n(t.research)),class:"link-primary text-decoration-underline"},[r[2]||(r[2]=u("i",{class:"bi bi-link-45deg me-2","aria-hidden":"true"},null,-1)),re("View "+P(((f=t.research.research_type)==null?void 0:f.name)??"site"),1)],8,sge)):ie("",!0),t.research.file?(y(),x("a",{key:5,href:s.value,onClick:r[1]||(r[1]=p=>n(t.research)),class:"link-primary text-decoration-underline",download:""},[r[3]||(r[3]=u("i",{class:"bi bi-download me-2","aria-hidden":"true"},null,-1)),re("Download "+P(((h=t.research.research_type)==null?void 0:h.name)??"file")+" ("+P(t.research.readable_file_size_bytes)+")",1)],8,nge)):ie("",!0)])])])])}}},rge={},oge={class:"card mb-3 p-0"};function age(t,e){return y(),x("div",oge,e[0]||(e[0]=[ci('<div class="row g-0 p-4"><div class="col-3 justify-content-center d-flex align-items-start"><div class="p-4" style="background-color:#e0e0e0;width:75px;height:75px;"></div></div><div class="col-9"><div class="placeholder-glow"><span class="placeholder col-12 col-lg-10 mb-3" style="height:45px;"></span><span class="placeholder col-2 mx-1"></span><br><span class="placeholder col-8 mx-1"></span></div><div class="flex-grow-1 text-start"><div class="placeholder-glow"><span class="placeholder bg-primary col-1 mx-1"></span></div></div></div></div>',1)]))}const lge=ds(rge,[["render",age]]),cge={class:"container-fluid m-0 p-0"},uge={class:"row"},dge={class:"col-md-10 offset-md-1"},fge={class:"row mb-4 gy-3"},hge={class:"col-md-4"},pge=["value"],mge={class:"col-md-4"},gge=["value"],_ge={class:"col-md-4"},vge=["value"],bge={class:"col-md-4"},yge={class:"col-md-4"},wge=["value"],xge={role:"status","aria-live":"polite",class:"visually-hidden"},Sge={key:0},Ege={key:1},Cge={class:"list-unstyled"},kge={key:2,class:"text-center p-5 bg-light border rounded"},Age={__name:"ResearchList",setup(t){const e=W([]),s=W([]),n=W([]),i=W([]),r=W(""),o=W(""),a=W(""),c=W(""),f=W(""),h=W(!1);Ds(async()=>{try{h.value=!0;const[_,v,b,S]=await Promise.all([Lt.get("/api/center/research"),Lt.get("/api/center/research-topics"),Lt.get("/api/center/brand-specialties"),Lt.get("/api/center/research-types")]);e.value=_.data.data,s.value=v.data.data,n.value=b.data.data,i.value=S.data.data}finally{h.value=!1}});const p=te(()=>{if(!e.value.length)return[];const _=e.value.map(C=>Number(C.display_year)).filter(Boolean);if(!_.length)return[];const v=Math.min(..._),b=Math.max(..._),S=[];for(let C=b;C>=v;C--)S.push(C);return S}),m=te(()=>{let _=e.value;return r.value&&(_=_.filter(v=>{var b;return(b=v.research_topics)==null?void 0:b.some(S=>S.id==r.value)})),o.value&&(_=_.filter(v=>v.specialty&&v.specialty.id==o.value)),a.value&&(_=_.filter(v=>v.research_type&&v.research_type.id==a.value)),c.value&&(_=_.filter(v=>{var b;return(b=v.title)==null?void 0:b.toUpperCase().includes(c.value.toUpperCase())})),f.value&&(_=_.filter(v=>v.display_year==f.value)),_});return(_,v)=>(y(),x("div",cge,[u("div",uge,[u("div",dge,[u("div",fge,[u("div",hge,[v[6]||(v[6]=u("label",{class:"font-raleway mb-1 text-white",for:"topics-filter"},"Topic",-1)),Ge(u("select",{class:"form-select","onUpdate:modelValue":v[0]||(v[0]=b=>r.value=b),id:"topics-filter"},[v[5]||(v[5]=u("option",{value:""},"All",-1)),(y(!0),x(G,null,ge(s.value,b=>(y(),x("option",{key:b.id,value:b.id},P(b.name),9,pge))),128))],512),[[Wn,r.value]])]),u("div",mge,[v[8]||(v[8]=u("label",{class:"font-raleway mb-1 text-white",for:"specialties-filter"},"Specialty",-1)),Ge(u("select",{class:"form-select","onUpdate:modelValue":v[1]||(v[1]=b=>o.value=b),id:"specialties-filter"},[v[7]||(v[7]=u("option",{value:""},"All",-1)),(y(!0),x(G,null,ge(n.value,b=>(y(),x("option",{key:b.id,value:b.id},P(b.name),9,gge))),128))],512),[[Wn,o.value]])]),u("div",_ge,[v[10]||(v[10]=u("label",{class:"font-raleway mb-1 text-white",for:"types-filter"},"Type",-1)),Ge(u("select",{class:"form-select","onUpdate:modelValue":v[2]||(v[2]=b=>a.value=b),id:"types-filter"},[v[9]||(v[9]=u("option",{value:""},"All",-1)),(y(!0),x(G,null,ge(i.value,b=>(y(),x("option",{key:b.id,value:b.id},P(b.name),9,vge))),128))],512),[[Wn,a.value]])]),u("div",bge,[v[11]||(v[11]=u("label",{class:"font-raleway mb-1 text-white",for:"search-input"},"Search Title",-1)),Ge(u("input",{class:"form-control","onUpdate:modelValue":v[3]||(v[3]=b=>c.value=b),id:"search-input"},null,512),[[Pi,c.value]])]),u("div",yge,[v[13]||(v[13]=u("label",{class:"font-raleway mb-1 text-white",for:"years-filter"},"Year",-1)),Ge(u("select",{class:"form-select","onUpdate:modelValue":v[4]||(v[4]=b=>f.value=b),id:"years-filter"},[v[12]||(v[12]=u("option",{value:""},"All",-1)),(y(!0),x(G,null,ge(p.value,b=>(y(),x("option",{key:b,value:b},P(b),9,wge))),128))],512),[[Wn,f.value]])])]),u("div",xge,P(h.value?"Loading research...":"Research loaded."),1),h.value?(y(),x("div",Sge,[(y(),x(G,null,ge(3,b=>
108U(lge,{key:b})),64))])):m.value.length>0?(y(),x("div",Ege,[u("ul",Cge,[(y(!0),x(G,null,ge(m.value,b=>(y(),x("li",{key:b.id},[U(ige,{research:b},null,8,["research"])]))),128))])])):(y(),x("div",kge,v[14]||(v[14]=[u("i",{class:"bi bi-search fs-1 text-muted"},null,-1),u("p",{class:"mt-2"},"There are no results based on your filter selections.",-1)])))])])]))}},$ge={class:"py-3"},Tge=["href"],Oge={class:"text-18 mt-2 mb-0 text-open-sans"},Mge={class:"text-18 mb-0 text-open-sans"},Pge={__name:"ResidencyProgramList",props:{initialPrograms:{type:Array,required:!0}},setup(t){return(e,s)=>(y(),x("div",$ge,[(y(!0),x(G,null,ge(t.initialPrograms,(n,i)=>(y(),x("div",{key:i,class:"my-1 px-4"},[u("a",{href:n.url,class:"text-18 link fw-semibold",target:"_blank",rel:"noopener noreferrer"},P(n.name),9,Tge),u("p",Oge," Location: "+P(n.location),1),u("p",Mge," Program Director: "+P(n.director),1),s[0]||(s[0]=u("hr",{class:"border-dark border-1 opacity-100"},null,-1))]))),128))]))}};if(document.getElementById("about-us")){const t=Rt({});t.use($n()),t.component("AboutUs",xue).mount("#about-us")}if(document.getElementById("pie-chart")){const t=Rt({});t.use($n()),t.component("PieChart",Jhe).mount("#pie-chart")}if(document.getElementById("training-site-map")){const t=Rt({});t.use($n()),t.component("TrainingSiteMap",spe).mount("#training-site-map")}if(document.getElementById("events-list")){const t=Rt({});t.use($n()),t.component("EventsList",_pe).mount("#events-list")}document.getElementById("getting-started-questions")&&Rt({}).component("GettingStartedQuestions",Tpe).mount("#getting-started-questions");if(document.getElementById("speaking-event-list")){const t=Rt({});t.use($n()),t.component("SpeakingEventList",jpe).mount("#speaking-event-list")}if(document.getElementById("profiles-list")){const t=Rt({});t.use($n()),t.component("ProfilesList",Pme).mount("#profiles-list")}document.getElementById("our-impact")&&Rt({}).component("OurImpact",Wme).mount("#our-impact");if(document.getElementById("research-list")){const t=Rt({});t.use($n()),t.component("ResearchList",Age).mount("#research-list")}document.getElementById("residency-program-list")&&Rt({}).component("ResidencyProgramList",Pge).mount("#residency-program-list");
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.