redis-smq-web-ui 9.0.0-next.3 → 9.0.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +14 -11
- package/dist/browser/assets/{QueuesView-CaPQRTLA.js → QueuesView-BoC_jjup.js} +1 -1
- package/dist/browser/assets/{index-DZKBl9eI.css → index-Bt_mTIwJ.css} +1 -1
- package/dist/browser/assets/index-CRTYBxrI.js +43 -0
- package/dist/browser/index.html +6 -6
- package/package.json +5 -5
- package/dist/browser/assets/index-D9klXO36.js +0 -43
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/QueuesView-BoC_jjup.js","assets/QueuesView-BOytmHBz.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Ff=e=>{throw TypeError(e)};var mu=(e,t,s)=>t.has(e)||Ff("Cannot "+s);var Q=(e,t,s)=>(mu(e,t,"read from private field"),s?s.call(e):t.get(e)),Ve=(e,t,s)=>t.has(e)?Ff("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),xe=(e,t,s,n)=>(mu(e,t,"write to private field"),n?n.call(e,s):t.set(e,s),s),Ze=(e,t,s)=>(mu(e,t,"access private method"),s);var Eo=(e,t,s,n)=>({set _(i){xe(e,t,i,s)},get _(){return Q(e,t,n)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=s(i);fetch(i.href,r)}})();function AE(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(s,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),s}var Do={exports:{}},ns="top",Cs="bottom",As="right",is="left",bl="auto",zr=[ns,Cs,As,is],Ki="start",Ir="end",gm="clippingParents",Wc="viewport",dr="popper",vm="reference",Qu=zr.reduce(function(e,t){return e.concat([t+"-"+Ki,t+"-"+Ir])},[]),zc=[].concat(zr,[bl]).reduce(function(e,t){return e.concat([t,t+"-"+Ki,t+"-"+Ir])},[]),bm="beforeRead",ym="read",_m="afterRead",Em="beforeMain",wm="main",Cm="afterMain",Am="beforeWrite",Sm="write",$m="afterWrite",Tm=[bm,ym,_m,Em,wm,Cm,Am,Sm,$m];function cn(e){return e?(e.nodeName||"").toLowerCase():null}function Ss(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hi(e){var t=Ss(e).Element;return e instanceof t||e instanceof Element}function Rs(e){var t=Ss(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yc(e){if(typeof ShadowRoot>"u")return!1;var t=Ss(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SE(e){var t=e.state;Object.keys(t.elements).forEach(function(s){var n=t.styles[s]||{},i=t.attributes[s]||{},r=t.elements[s];!Rs(r)||!cn(r)||(Object.assign(r.style,n),Object.keys(i).forEach(function(o){var l=i[o];l===!1?r.removeAttribute(o):r.setAttribute(o,l===!0?"":l)}))})}function $E(e){var t=e.state,s={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,s.popper),t.styles=s,t.elements.arrow&&Object.assign(t.elements.arrow.style,s.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],r=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:s[n]),l=o.reduce(function(u,d){return u[d]="",u},{});!Rs(i)||!cn(i)||(Object.assign(i.style,l),Object.keys(r).forEach(function(u){i.removeAttribute(u)}))})}}const Zc={name:"applyStyles",enabled:!0,phase:"write",fn:SE,effect:$E,requires:["computeStyles"]};function on(e){return e.split("-")[0]}var Vi=Math.max,Ho=Math.min,Mr=Math.round;function ju(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xm(){return!/^((?!chrome|android).)*safari/i.test(ju())}function qr(e,t,s){t===void 0&&(t=!1),s===void 0&&(s=!1);var n=e.getBoundingClientRect(),i=1,r=1;t&&Rs(e)&&(i=e.offsetWidth>0&&Mr(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Mr(n.height)/e.offsetHeight||1);var o=Hi(e)?Ss(e):window,l=o.visualViewport,u=!xm()&&s,d=(n.left+(u&&l?l.offsetLeft:0))/i,c=(n.top+(u&&l?l.offsetTop:0))/r,h=n.width/i,p=n.height/r;return{width:h,height:p,top:c,right:d+h,bottom:c+p,left:d,x:d,y:c}}function Jc(e){var t=qr(e),s=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-s)<=1&&(s=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:s,height:n}}function Om(e,t){var s=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(s&&Yc(s)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Tn(e){return Ss(e).getComputedStyle(e)}function TE(e){return["table","td","th"].indexOf(cn(e))>=0}function oi(e){return((Hi(e)?e.ownerDocument:e.document)||window.document).documentElement}function yl(e){return cn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yc(e)?e.host:null)||oi(e)}function Vf(e){return!Rs(e)||Tn(e).position==="fixed"?null:e.offsetParent}function xE(e){var t=/firefox/i.test(ju()),s=/Trident/i.test(ju());if(s&&Rs(e)){var n=Tn(e);if(n.position==="fixed")return null}var i=yl(e);for(Yc(i)&&(i=i.host);Rs(i)&&["html","body"].indexOf(cn(i))<0;){var r=Tn(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function Wa(e){for(var t=Ss(e),s=Vf(e);s&&TE(s)&&Tn(s).position==="static";)s=Vf(s);return s&&(cn(s)==="html"||cn(s)==="body"&&Tn(s).position==="static")?t:s||xE(e)||t}function Xc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ya(e,t,s){return Vi(e,Ho(t,s))}function OE(e,t,s){var n=ya(e,t,s);return n>s?s:n}function Nm(){return{top:0,right:0,bottom:0,left:0}}function km(e){return Object.assign({},Nm(),e)}function Pm(e,t){return t.reduce(function(s,n){return s[n]=e,s},{})}var NE=function(t,s){return t=typeof t=="function"?t(Object.assign({},s.rects,{placement:s.placement})):t,km(typeof t!="number"?t:Pm(t,zr))};function kE(e){var t,s=e.state,n=e.name,i=e.options,r=s.elements.arrow,o=s.modifiersData.popperOffsets,l=on(s.placement),u=Xc(l),d=[is,As].indexOf(l)>=0,c=d?"height":"width";if(!(!r||!o)){var h=NE(i.padding,s),p=Jc(r),m=u==="y"?ns:is,g=u==="y"?Cs:As,C=s.rects.reference[c]+s.rects.reference[u]-o[u]-s.rects.popper[c],y=o[u]-s.rects.reference[u],A=Wa(r),x=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,S=C/2-y/2,_=h[m],$=x-p[c]-h[g],V=x/2-p[c]/2+S,j=ya(_,V,$),R=u;s.modifiersData[n]=(t={},t[R]=j,t.centerOffset=j-V,t)}}function PE(e){var t=e.state,s=e.options,n=s.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Om(t.elements.popper,i)&&(t.elements.arrow=i))}const Dm={name:"arrow",enabled:!0,phase:"main",fn:kE,effect:PE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Lr(e){return e.split("-")[1]}var DE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function RE(e,t){var s=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Mr(s*i)/i||0,y:Mr(n*i)/i||0}}function Qf(e){var t,s=e.popper,n=e.popperRect,i=e.placement,r=e.variation,o=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,h=e.isFixed,p=o.x,m=p===void 0?0:p,g=o.y,C=g===void 0?0:g,y=typeof c=="function"?c({x:m,y:C}):{x:m,y:C};m=y.x,C=y.y;var A=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),S=is,_=ns,$=window;if(d){var V=Wa(s),j="clientHeight",R="clientWidth";if(V===Ss(s)&&(V=oi(s),Tn(V).position!=="static"&&l==="absolute"&&(j="scrollHeight",R="scrollWidth")),V=V,i===ns||(i===is||i===As)&&r===Ir){_=Cs;var E=h&&V===$&&$.visualViewport?$.visualViewport.height:V[j];C-=E-n.height,C*=u?1:-1}if(i===is||(i===ns||i===Cs)&&r===Ir){S=As;var T=h&&V===$&&$.visualViewport?$.visualViewport.width:V[R];m-=T-n.width,m*=u?1:-1}}var N=Object.assign({position:l},d&&DE),w=c===!0?RE({x:m,y:C},Ss(s)):{x:m,y:C};if(m=w.x,C=w.y,u){var z;return Object.assign({},N,(z={},z[_]=x?"0":"",z[S]=A?"0":"",z.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+C+"px)":"translate3d("+m+"px, "+C+"px, 0)",z))}return Object.assign({},N,(t={},t[_]=x?C+"px":"",t[S]=A?m+"px":"",t.transform="",t))}function IE(e){var t=e.state,s=e.options,n=s.gpuAcceleration,i=n===void 0?!0:n,r=s.adaptive,o=r===void 0?!0:r,l=s.roundOffsets,u=l===void 0?!0:l,d={placement:on(t.placement),variation:Lr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Qf(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Qf(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ed={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IE,data:{}};var wo={passive:!0};function ME(e){var t=e.state,s=e.instance,n=e.options,i=n.scroll,r=i===void 0?!0:i,o=n.resize,l=o===void 0?!0:o,u=Ss(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(c){c.addEventListener("scroll",s.update,wo)}),l&&u.addEventListener("resize",s.update,wo),function(){r&&d.forEach(function(c){c.removeEventListener("scroll",s.update,wo)}),l&&u.removeEventListener("resize",s.update,wo)}}const td={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ME,data:{}};var qE={left:"right",right:"left",bottom:"top",top:"bottom"};function Ro(e){return e.replace(/left|right|bottom|top/g,function(t){return qE[t]})}var LE={start:"end",end:"start"};function jf(e){return e.replace(/start|end/g,function(t){return LE[t]})}function sd(e){var t=Ss(e),s=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:s,scrollTop:n}}function nd(e){return qr(oi(e)).left+sd(e).scrollLeft}function FE(e,t){var s=Ss(e),n=oi(e),i=s.visualViewport,r=n.clientWidth,o=n.clientHeight,l=0,u=0;if(i){r=i.width,o=i.height;var d=xm();(d||!d&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:r,height:o,x:l+nd(e),y:u}}function VE(e){var t,s=oi(e),n=sd(e),i=(t=e.ownerDocument)==null?void 0:t.body,r=Vi(s.scrollWidth,s.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Vi(s.scrollHeight,s.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+nd(e),u=-n.scrollTop;return Tn(i||s).direction==="rtl"&&(l+=Vi(s.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:l,y:u}}function id(e){var t=Tn(e),s=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(s+i+n)}function Rm(e){return["html","body","#document"].indexOf(cn(e))>=0?e.ownerDocument.body:Rs(e)&&id(e)?e:Rm(yl(e))}function _a(e,t){var s;t===void 0&&(t=[]);var n=Rm(e),i=n===((s=e.ownerDocument)==null?void 0:s.body),r=Ss(n),o=i?[r].concat(r.visualViewport||[],id(n)?n:[]):n,l=t.concat(o);return i?l:l.concat(_a(yl(o)))}function Bu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function QE(e,t){var s=qr(e,!1,t==="fixed");return s.top=s.top+e.clientTop,s.left=s.left+e.clientLeft,s.bottom=s.top+e.clientHeight,s.right=s.left+e.clientWidth,s.width=e.clientWidth,s.height=e.clientHeight,s.x=s.left,s.y=s.top,s}function Bf(e,t,s){return t===Wc?Bu(FE(e,s)):Hi(t)?QE(t,s):Bu(VE(oi(e)))}function jE(e){var t=_a(yl(e)),s=["absolute","fixed"].indexOf(Tn(e).position)>=0,n=s&&Rs(e)?Wa(e):e;return Hi(n)?t.filter(function(i){return Hi(i)&&Om(i,n)&&cn(i)!=="body"}):[]}function BE(e,t,s,n){var i=t==="clippingParents"?jE(e):[].concat(t),r=[].concat(i,[s]),o=r[0],l=r.reduce(function(u,d){var c=Bf(e,d,n);return u.top=Vi(c.top,u.top),u.right=Ho(c.right,u.right),u.bottom=Ho(c.bottom,u.bottom),u.left=Vi(c.left,u.left),u},Bf(e,o,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Im(e){var t=e.reference,s=e.element,n=e.placement,i=n?on(n):null,r=n?Lr(n):null,o=t.x+t.width/2-s.width/2,l=t.y+t.height/2-s.height/2,u;switch(i){case ns:u={x:o,y:t.y-s.height};break;case Cs:u={x:o,y:t.y+t.height};break;case As:u={x:t.x+t.width,y:l};break;case is:u={x:t.x-s.width,y:l};break;default:u={x:t.x,y:t.y}}var d=i?Xc(i):null;if(d!=null){var c=d==="y"?"height":"width";switch(r){case Ki:u[d]=u[d]-(t[c]/2-s[c]/2);break;case Ir:u[d]=u[d]+(t[c]/2-s[c]/2);break}}return u}function Fr(e,t){t===void 0&&(t={});var s=t,n=s.placement,i=n===void 0?e.placement:n,r=s.strategy,o=r===void 0?e.strategy:r,l=s.boundary,u=l===void 0?gm:l,d=s.rootBoundary,c=d===void 0?Wc:d,h=s.elementContext,p=h===void 0?dr:h,m=s.altBoundary,g=m===void 0?!1:m,C=s.padding,y=C===void 0?0:C,A=km(typeof y!="number"?y:Pm(y,zr)),x=p===dr?vm:dr,S=e.rects.popper,_=e.elements[g?x:p],$=BE(Hi(_)?_:_.contextElement||oi(e.elements.popper),u,c,o),V=qr(e.elements.reference),j=Im({reference:V,element:S,placement:i}),R=Bu(Object.assign({},S,j)),E=p===dr?R:V,T={top:$.top-E.top+A.top,bottom:E.bottom-$.bottom+A.bottom,left:$.left-E.left+A.left,right:E.right-$.right+A.right},N=e.modifiersData.offset;if(p===dr&&N){var w=N[i];Object.keys(T).forEach(function(z){var se=[As,Cs].indexOf(z)>=0?1:-1,ne=[ns,Cs].indexOf(z)>=0?"y":"x";T[z]+=w[ne]*se})}return T}function UE(e,t){t===void 0&&(t={});var s=t,n=s.placement,i=s.boundary,r=s.rootBoundary,o=s.padding,l=s.flipVariations,u=s.allowedAutoPlacements,d=u===void 0?zc:u,c=Lr(n),h=c?l?Qu:Qu.filter(function(g){return Lr(g)===c}):zr,p=h.filter(function(g){return d.indexOf(g)>=0});p.length===0&&(p=h);var m=p.reduce(function(g,C){return g[C]=Fr(e,{placement:C,boundary:i,rootBoundary:r,padding:o})[on(C)],g},{});return Object.keys(m).sort(function(g,C){return m[g]-m[C]})}function KE(e){if(on(e)===bl)return[];var t=Ro(e);return[jf(e),t,jf(t)]}function HE(e){var t=e.state,s=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=s.mainAxis,r=i===void 0?!0:i,o=s.altAxis,l=o===void 0?!0:o,u=s.fallbackPlacements,d=s.padding,c=s.boundary,h=s.rootBoundary,p=s.altBoundary,m=s.flipVariations,g=m===void 0?!0:m,C=s.allowedAutoPlacements,y=t.options.placement,A=on(y),x=A===y,S=u||(x||!g?[Ro(y)]:KE(y)),_=[y].concat(S).reduce(function(Re,_e){return Re.concat(on(_e)===bl?UE(t,{placement:_e,boundary:c,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:C}):_e)},[]),$=t.rects.reference,V=t.rects.popper,j=new Map,R=!0,E=_[0],T=0;T<_.length;T++){var N=_[T],w=on(N),z=Lr(N)===Ki,se=[ns,Cs].indexOf(w)>=0,ne=se?"width":"height",te=Fr(t,{placement:N,boundary:c,rootBoundary:h,altBoundary:p,padding:d}),W=se?z?As:is:z?Cs:ns;$[ne]>V[ne]&&(W=Ro(W));var ee=Ro(W),fe=[];if(r&&fe.push(te[w]<=0),l&&fe.push(te[W]<=0,te[ee]<=0),fe.every(function(Re){return Re})){E=N,R=!1;break}j.set(N,fe)}if(R)for(var Oe=g?3:1,Ue=function(_e){var K=_.find(function(D){var B=j.get(D);if(B)return B.slice(0,_e).every(function(J){return J})});if(K)return E=K,"break"},ue=Oe;ue>0;ue--){var ve=Ue(ue);if(ve==="break")break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}}const Mm={name:"flip",enabled:!0,phase:"main",fn:HE,requiresIfExists:["offset"],data:{_skip:!1}};function Uf(e,t,s){return s===void 0&&(s={x:0,y:0}),{top:e.top-t.height-s.y,right:e.right-t.width+s.x,bottom:e.bottom-t.height+s.y,left:e.left-t.width-s.x}}function Kf(e){return[ns,As,Cs,is].some(function(t){return e[t]>=0})}function GE(e){var t=e.state,s=e.name,n=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,o=Fr(t,{elementContext:"reference"}),l=Fr(t,{altBoundary:!0}),u=Uf(o,n),d=Uf(l,i,r),c=Kf(u),h=Kf(d);t.modifiersData[s]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}const qm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:GE};function WE(e,t,s){var n=on(e),i=[is,ns].indexOf(n)>=0?-1:1,r=typeof s=="function"?s(Object.assign({},t,{placement:e})):s,o=r[0],l=r[1];return o=o||0,l=(l||0)*i,[is,As].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function zE(e){var t=e.state,s=e.options,n=e.name,i=s.offset,r=i===void 0?[0,0]:i,o=zc.reduce(function(c,h){return c[h]=WE(h,t.rects,r),c},{}),l=o[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=o}const Lm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zE};function YE(e){var t=e.state,s=e.name;t.modifiersData[s]=Im({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const rd={name:"popperOffsets",enabled:!0,phase:"read",fn:YE,data:{}};function ZE(e){return e==="x"?"y":"x"}function JE(e){var t=e.state,s=e.options,n=e.name,i=s.mainAxis,r=i===void 0?!0:i,o=s.altAxis,l=o===void 0?!1:o,u=s.boundary,d=s.rootBoundary,c=s.altBoundary,h=s.padding,p=s.tether,m=p===void 0?!0:p,g=s.tetherOffset,C=g===void 0?0:g,y=Fr(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:c}),A=on(t.placement),x=Lr(t.placement),S=!x,_=Xc(A),$=ZE(_),V=t.modifiersData.popperOffsets,j=t.rects.reference,R=t.rects.popper,E=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,T=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,w={x:0,y:0};if(V){if(r){var z,se=_==="y"?ns:is,ne=_==="y"?Cs:As,te=_==="y"?"height":"width",W=V[_],ee=W+y[se],fe=W-y[ne],Oe=m?-R[te]/2:0,Ue=x===Ki?j[te]:R[te],ue=x===Ki?-R[te]:-j[te],ve=t.elements.arrow,Re=m&&ve?Jc(ve):{width:0,height:0},_e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nm(),K=_e[se],D=_e[ne],B=ya(0,j[te],Re[te]),J=S?j[te]/2-Oe-B-K-T.mainAxis:Ue-B-K-T.mainAxis,ce=S?-j[te]/2+Oe+B+D+T.mainAxis:ue+B+D+T.mainAxis,Y=t.elements.arrow&&Wa(t.elements.arrow),P=Y?_==="y"?Y.clientTop||0:Y.clientLeft||0:0,M=(z=N==null?void 0:N[_])!=null?z:0,U=W+J-M-P,ie=W+ce-M,ae=ya(m?Ho(ee,U):ee,W,m?Vi(fe,ie):fe);V[_]=ae,w[_]=ae-W}if(l){var oe,pe=_==="x"?ns:is,ge=_==="x"?Cs:As,Z=V[$],he=$==="y"?"height":"width",qe=Z+y[pe],Ce=Z-y[ge],ke=[ns,is].indexOf(A)!==-1,Be=(oe=N==null?void 0:N[$])!=null?oe:0,We=ke?qe:Z-j[he]-R[he]-Be+T.altAxis,ot=ke?Z+j[he]+R[he]-Be-T.altAxis:Ce,nt=m&&ke?OE(We,Z,ot):ya(m?We:qe,Z,m?ot:Ce);V[$]=nt,w[$]=nt-Z}t.modifiersData[n]=w}}const Fm={name:"preventOverflow",enabled:!0,phase:"main",fn:JE,requiresIfExists:["offset"]};function XE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function e0(e){return e===Ss(e)||!Rs(e)?sd(e):XE(e)}function t0(e){var t=e.getBoundingClientRect(),s=Mr(t.width)/e.offsetWidth||1,n=Mr(t.height)/e.offsetHeight||1;return s!==1||n!==1}function s0(e,t,s){s===void 0&&(s=!1);var n=Rs(t),i=Rs(t)&&t0(t),r=oi(t),o=qr(e,i,s),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!s)&&((cn(t)!=="body"||id(r))&&(l=e0(t)),Rs(t)?(u=qr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=nd(r))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function n0(e){var t=new Map,s=new Set,n=[];e.forEach(function(r){t.set(r.name,r)});function i(r){s.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(l){if(!s.has(l)){var u=t.get(l);u&&i(u)}}),n.push(r)}return e.forEach(function(r){s.has(r.name)||i(r)}),n}function i0(e){var t=n0(e);return Tm.reduce(function(s,n){return s.concat(t.filter(function(i){return i.phase===n}))},[])}function r0(e){var t;return function(){return t||(t=new Promise(function(s){Promise.resolve().then(function(){t=void 0,s(e())})})),t}}function a0(e){var t=e.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(t).map(function(s){return t[s]})}var Hf={placement:"bottom",modifiers:[],strategy:"absolute"};function Gf(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function _l(e){e===void 0&&(e={});var t=e,s=t.defaultModifiers,n=s===void 0?[]:s,i=t.defaultOptions,r=i===void 0?Hf:i;return function(l,u,d){d===void 0&&(d=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hf,r),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],p=!1,m={state:c,setOptions:function(A){var x=typeof A=="function"?A(c.options):A;C(),c.options=Object.assign({},r,c.options,x),c.scrollParents={reference:Hi(l)?_a(l):l.contextElement?_a(l.contextElement):[],popper:_a(u)};var S=i0(a0([].concat(n,c.options.modifiers)));return c.orderedModifiers=S.filter(function(_){return _.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var A=c.elements,x=A.reference,S=A.popper;if(Gf(x,S)){c.rects={reference:s0(x,Wa(S),c.options.strategy==="fixed"),popper:Jc(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(T){return c.modifiersData[T.name]=Object.assign({},T.data)});for(var _=0;_<c.orderedModifiers.length;_++){if(c.reset===!0){c.reset=!1,_=-1;continue}var $=c.orderedModifiers[_],V=$.fn,j=$.options,R=j===void 0?{}:j,E=$.name;typeof V=="function"&&(c=V({state:c,options:R,name:E,instance:m})||c)}}}},update:r0(function(){return new Promise(function(y){m.forceUpdate(),y(c)})}),destroy:function(){C(),p=!0}};if(!Gf(l,u))return m;m.setOptions(d).then(function(y){!p&&d.onFirstUpdate&&d.onFirstUpdate(y)});function g(){c.orderedModifiers.forEach(function(y){var A=y.name,x=y.options,S=x===void 0?{}:x,_=y.effect;if(typeof _=="function"){var $=_({state:c,name:A,instance:m,options:S}),V=function(){};h.push($||V)}})}function C(){h.forEach(function(y){return y()}),h=[]}return m}}var o0=_l(),l0=[td,rd,ed,Zc],u0=_l({defaultModifiers:l0}),c0=[td,rd,ed,Zc,Lm,Mm,Fm,Dm,qm],d0=_l({defaultModifiers:c0});const f0=Object.freeze(Object.defineProperty({__proto__:null,afterMain:Cm,afterRead:_m,afterWrite:$m,applyStyles:Zc,arrow:Dm,auto:bl,basePlacements:zr,beforeMain:Em,beforeRead:bm,beforeWrite:Am,bottom:Cs,clippingParents:gm,computeStyles:ed,createPopper:d0,createPopperBase:o0,createPopperLite:u0,detectOverflow:Fr,end:Ir,eventListeners:td,flip:Mm,hide:qm,left:is,main:wm,modifierPhases:Tm,offset:Lm,placements:zc,popper:dr,popperGenerator:_l,popperOffsets:rd,preventOverflow:Fm,read:ym,reference:vm,right:As,start:Ki,top:ns,variationPlacements:Qu,viewport:Wc,write:Sm},Symbol.toStringTag,{value:"Module"})),h0=AE(f0);/*!
|
|
3
|
+
* Bootstrap v5.3.6 (https://getbootstrap.com/)
|
|
4
|
+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
|
+
*/var p0=Do.exports,Wf;function m0(){return Wf||(Wf=1,(function(e,t){(function(s,n){e.exports=n(h0)})(p0,(function(s){function n(q){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(q){for(const b in q)if(b!=="default"){const L=Object.getOwnPropertyDescriptor(q,b);Object.defineProperty(f,b,L.get?L:{enumerable:!0,get:()=>q[b]})}}return f.default=q,Object.freeze(f)}const i=n(s),r=new Map,o={set(q,f,b){r.has(q)||r.set(q,new Map);const L=r.get(q);if(!L.has(f)&&L.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(L.keys())[0]}.`);return}L.set(f,b)},get(q,f){return r.has(q)&&r.get(q).get(f)||null},remove(q,f){if(!r.has(q))return;const b=r.get(q);b.delete(f),b.size===0&&r.delete(q)}},l=1e6,u=1e3,d="transitionend",c=q=>(q&&window.CSS&&window.CSS.escape&&(q=q.replace(/#([^\s"#']+)/g,(f,b)=>`#${CSS.escape(b)}`)),q),h=q=>q==null?`${q}`:Object.prototype.toString.call(q).match(/\s([a-z]+)/i)[1].toLowerCase(),p=q=>{do q+=Math.floor(Math.random()*l);while(document.getElementById(q));return q},m=q=>{if(!q)return 0;let{transitionDuration:f,transitionDelay:b}=window.getComputedStyle(q);const L=Number.parseFloat(f),le=Number.parseFloat(b);return!L&&!le?0:(f=f.split(",")[0],b=b.split(",")[0],(Number.parseFloat(f)+Number.parseFloat(b))*u)},g=q=>{q.dispatchEvent(new Event(d))},C=q=>!q||typeof q!="object"?!1:(typeof q.jquery<"u"&&(q=q[0]),typeof q.nodeType<"u"),y=q=>C(q)?q.jquery?q[0]:q:typeof q=="string"&&q.length>0?document.querySelector(c(q)):null,A=q=>{if(!C(q)||q.getClientRects().length===0)return!1;const f=getComputedStyle(q).getPropertyValue("visibility")==="visible",b=q.closest("details:not([open])");if(!b)return f;if(b!==q){const L=q.closest("summary");if(L&&L.parentNode!==b||L===null)return!1}return f},x=q=>!q||q.nodeType!==Node.ELEMENT_NODE||q.classList.contains("disabled")?!0:typeof q.disabled<"u"?q.disabled:q.hasAttribute("disabled")&&q.getAttribute("disabled")!=="false",S=q=>{if(!document.documentElement.attachShadow)return null;if(typeof q.getRootNode=="function"){const f=q.getRootNode();return f instanceof ShadowRoot?f:null}return q instanceof ShadowRoot?q:q.parentNode?S(q.parentNode):null},_=()=>{},$=q=>{q.offsetHeight},V=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,j=[],R=q=>{document.readyState==="loading"?(j.length||document.addEventListener("DOMContentLoaded",()=>{for(const f of j)f()}),j.push(q)):q()},E=()=>document.documentElement.dir==="rtl",T=q=>{R(()=>{const f=V();if(f){const b=q.NAME,L=f.fn[b];f.fn[b]=q.jQueryInterface,f.fn[b].Constructor=q,f.fn[b].noConflict=()=>(f.fn[b]=L,q.jQueryInterface)}})},N=(q,f=[],b=q)=>typeof q=="function"?q.call(...f):b,w=(q,f,b=!0)=>{if(!b){N(q);return}const le=m(f)+5;let Ee=!1;const ye=({target:Je})=>{Je===f&&(Ee=!0,f.removeEventListener(d,ye),N(q))};f.addEventListener(d,ye),setTimeout(()=>{Ee||g(f)},le)},z=(q,f,b,L)=>{const le=q.length;let Ee=q.indexOf(f);return Ee===-1?!b&&L?q[le-1]:q[0]:(Ee+=b?1:-1,L&&(Ee=(Ee+le)%le),q[Math.max(0,Math.min(Ee,le-1))])},se=/[^.]*(?=\..*)\.|.*/,ne=/\..*/,te=/::\d+$/,W={};let ee=1;const fe={mouseenter:"mouseover",mouseleave:"mouseout"},Oe=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 Ue(q,f){return f&&`${f}::${ee++}`||q.uidEvent||ee++}function ue(q){const f=Ue(q);return q.uidEvent=f,W[f]=W[f]||{},W[f]}function ve(q,f){return function b(L){return P(L,{delegateTarget:q}),b.oneOff&&Y.off(q,L.type,f),f.apply(q,[L])}}function Re(q,f,b){return function L(le){const Ee=q.querySelectorAll(f);for(let{target:ye}=le;ye&&ye!==this;ye=ye.parentNode)for(const Je of Ee)if(Je===ye)return P(le,{delegateTarget:ye}),L.oneOff&&Y.off(q,le.type,f,b),b.apply(ye,[le])}}function _e(q,f,b=null){return Object.values(q).find(L=>L.callable===f&&L.delegationSelector===b)}function K(q,f,b){const L=typeof f=="string",le=L?b:f||b;let Ee=ce(q);return Oe.has(Ee)||(Ee=q),[L,le,Ee]}function D(q,f,b,L,le){if(typeof f!="string"||!q)return;let[Ee,ye,Je]=K(f,b,L);f in fe&&(ye=(CE=>function(lr){if(!lr.relatedTarget||lr.relatedTarget!==lr.delegateTarget&&!lr.delegateTarget.contains(lr.relatedTarget))return CE.call(this,lr)})(ye));const us=ue(q),Ns=us[Je]||(us[Je]={}),Mt=_e(Ns,ye,Ee?b:null);if(Mt){Mt.oneOff=Mt.oneOff&≤return}const Js=Ue(ye,f.replace(se,"")),Vs=Ee?Re(q,b,ye):ve(q,ye);Vs.delegationSelector=Ee?b:null,Vs.callable=ye,Vs.oneOff=le,Vs.uidEvent=Js,Ns[Js]=Vs,q.addEventListener(Je,Vs,Ee)}function B(q,f,b,L,le){const Ee=_e(f[b],L,le);Ee&&(q.removeEventListener(b,Ee,!!le),delete f[b][Ee.uidEvent])}function J(q,f,b,L){const le=f[b]||{};for(const[Ee,ye]of Object.entries(le))Ee.includes(L)&&B(q,f,b,ye.callable,ye.delegationSelector)}function ce(q){return q=q.replace(ne,""),fe[q]||q}const Y={on(q,f,b,L){D(q,f,b,L,!1)},one(q,f,b,L){D(q,f,b,L,!0)},off(q,f,b,L){if(typeof f!="string"||!q)return;const[le,Ee,ye]=K(f,b,L),Je=ye!==f,us=ue(q),Ns=us[ye]||{},Mt=f.startsWith(".");if(typeof Ee<"u"){if(!Object.keys(Ns).length)return;B(q,us,ye,Ee,le?b:null);return}if(Mt)for(const Js of Object.keys(us))J(q,us,Js,f.slice(1));for(const[Js,Vs]of Object.entries(Ns)){const _o=Js.replace(te,"");(!Je||f.includes(_o))&&B(q,us,ye,Vs.callable,Vs.delegationSelector)}},trigger(q,f,b){if(typeof f!="string"||!q)return null;const L=V(),le=ce(f),Ee=f!==le;let ye=null,Je=!0,us=!0,Ns=!1;Ee&&L&&(ye=L.Event(f,b),L(q).trigger(ye),Je=!ye.isPropagationStopped(),us=!ye.isImmediatePropagationStopped(),Ns=ye.isDefaultPrevented());const Mt=P(new Event(f,{bubbles:Je,cancelable:!0}),b);return Ns&&Mt.preventDefault(),us&&q.dispatchEvent(Mt),Mt.defaultPrevented&&ye&&ye.preventDefault(),Mt}};function P(q,f={}){for(const[b,L]of Object.entries(f))try{q[b]=L}catch{Object.defineProperty(q,b,{configurable:!0,get(){return L}})}return q}function M(q){if(q==="true")return!0;if(q==="false")return!1;if(q===Number(q).toString())return Number(q);if(q===""||q==="null")return null;if(typeof q!="string")return q;try{return JSON.parse(decodeURIComponent(q))}catch{return q}}function U(q){return q.replace(/[A-Z]/g,f=>`-${f.toLowerCase()}`)}const ie={setDataAttribute(q,f,b){q.setAttribute(`data-bs-${U(f)}`,b)},removeDataAttribute(q,f){q.removeAttribute(`data-bs-${U(f)}`)},getDataAttributes(q){if(!q)return{};const f={},b=Object.keys(q.dataset).filter(L=>L.startsWith("bs")&&!L.startsWith("bsConfig"));for(const L of b){let le=L.replace(/^bs/,"");le=le.charAt(0).toLowerCase()+le.slice(1),f[le]=M(q.dataset[L])}return f},getDataAttribute(q,f){return M(q.getAttribute(`data-bs-${U(f)}`))}};class ae{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(f){return f=this._mergeConfigObj(f),f=this._configAfterMerge(f),this._typeCheckConfig(f),f}_configAfterMerge(f){return f}_mergeConfigObj(f,b){const L=C(b)?ie.getDataAttribute(b,"config"):{};return{...this.constructor.Default,...typeof L=="object"?L:{},...C(b)?ie.getDataAttributes(b):{},...typeof f=="object"?f:{}}}_typeCheckConfig(f,b=this.constructor.DefaultType){for(const[L,le]of Object.entries(b)){const Ee=f[L],ye=C(Ee)?"element":h(Ee);if(!new RegExp(le).test(ye))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${L}" provided type "${ye}" but expected type "${le}".`)}}}const oe="5.3.6";class pe extends ae{constructor(f,b){super(),f=y(f),f&&(this._element=f,this._config=this._getConfig(b),o.set(this._element,this.constructor.DATA_KEY,this))}dispose(){o.remove(this._element,this.constructor.DATA_KEY),Y.off(this._element,this.constructor.EVENT_KEY);for(const f of Object.getOwnPropertyNames(this))this[f]=null}_queueCallback(f,b,L=!0){w(f,b,L)}_getConfig(f){return f=this._mergeConfigObj(f,this._element),f=this._configAfterMerge(f),this._typeCheckConfig(f),f}static getInstance(f){return o.get(y(f),this.DATA_KEY)}static getOrCreateInstance(f,b={}){return this.getInstance(f)||new this(f,typeof b=="object"?b:null)}static get VERSION(){return oe}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(f){return`${f}${this.EVENT_KEY}`}}const ge=q=>{let f=q.getAttribute("data-bs-target");if(!f||f==="#"){let b=q.getAttribute("href");if(!b||!b.includes("#")&&!b.startsWith("."))return null;b.includes("#")&&!b.startsWith("#")&&(b=`#${b.split("#")[1]}`),f=b&&b!=="#"?b.trim():null}return f?f.split(",").map(b=>c(b)).join(","):null},Z={find(q,f=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(f,q))},findOne(q,f=document.documentElement){return Element.prototype.querySelector.call(f,q)},children(q,f){return[].concat(...q.children).filter(b=>b.matches(f))},parents(q,f){const b=[];let L=q.parentNode.closest(f);for(;L;)b.push(L),L=L.parentNode.closest(f);return b},prev(q,f){let b=q.previousElementSibling;for(;b;){if(b.matches(f))return[b];b=b.previousElementSibling}return[]},next(q,f){let b=q.nextElementSibling;for(;b;){if(b.matches(f))return[b];b=b.nextElementSibling}return[]},focusableChildren(q){const f=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(b=>`${b}:not([tabindex^="-"])`).join(",");return this.find(f,q).filter(b=>!x(b)&&A(b))},getSelectorFromElement(q){const f=ge(q);return f&&Z.findOne(f)?f:null},getElementFromSelector(q){const f=ge(q);return f?Z.findOne(f):null},getMultipleElementsFromSelector(q){const f=ge(q);return f?Z.find(f):[]}},he=(q,f="hide")=>{const b=`click.dismiss${q.EVENT_KEY}`,L=q.NAME;Y.on(document,b,`[data-bs-dismiss="${L}"]`,function(le){if(["A","AREA"].includes(this.tagName)&&le.preventDefault(),x(this))return;const Ee=Z.getElementFromSelector(this)||this.closest(`.${L}`);q.getOrCreateInstance(Ee)[f]()})},qe="alert",ke=".bs.alert",Be=`close${ke}`,We=`closed${ke}`,ot="fade",nt="show";class Nt extends pe{static get NAME(){return qe}close(){if(Y.trigger(this._element,Be).defaultPrevented)return;this._element.classList.remove(nt);const b=this._element.classList.contains(ot);this._queueCallback(()=>this._destroyElement(),this._element,b)}_destroyElement(){this._element.remove(),Y.trigger(this._element,We),this.dispose()}static jQueryInterface(f){return this.each(function(){const b=Nt.getOrCreateInstance(this);if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f](this)}})}}he(Nt,"close"),T(Nt);const kt="button",H=".bs.button",de=".data-api",Se="active",Ne='[data-bs-toggle="button"]',Fe=`click${H}${de}`;class Me extends pe{static get NAME(){return kt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Se))}static jQueryInterface(f){return this.each(function(){const b=Me.getOrCreateInstance(this);f==="toggle"&&b[f]()})}}Y.on(document,Fe,Ne,q=>{q.preventDefault();const f=q.target.closest(Ne);Me.getOrCreateInstance(f).toggle()}),T(Me);const wt="swipe",yt=".bs.swipe",Rt=`touchstart${yt}`,_t=`touchmove${yt}`,It=`touchend${yt}`,Ut=`pointerdown${yt}`,ls=`pointerup${yt}`,fi="touch",Xr="pen",ea="pointer-event",ta=40,sa={endCallback:null,leftCallback:null,rightCallback:null},iy={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class lo extends ae{constructor(f,b){super(),this._element=f,!(!f||!lo.isSupported())&&(this._config=this._getConfig(b),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return sa}static get DefaultType(){return iy}static get NAME(){return wt}dispose(){Y.off(this._element,yt)}_start(f){if(!this._supportPointerEvents){this._deltaX=f.touches[0].clientX;return}this._eventIsPointerPenTouch(f)&&(this._deltaX=f.clientX)}_end(f){this._eventIsPointerPenTouch(f)&&(this._deltaX=f.clientX-this._deltaX),this._handleSwipe(),N(this._config.endCallback)}_move(f){this._deltaX=f.touches&&f.touches.length>1?0:f.touches[0].clientX-this._deltaX}_handleSwipe(){const f=Math.abs(this._deltaX);if(f<=ta)return;const b=f/this._deltaX;this._deltaX=0,b&&N(b>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Y.on(this._element,Ut,f=>this._start(f)),Y.on(this._element,ls,f=>this._end(f)),this._element.classList.add(ea)):(Y.on(this._element,Rt,f=>this._start(f)),Y.on(this._element,_t,f=>this._move(f)),Y.on(this._element,It,f=>this._end(f)))}_eventIsPointerPenTouch(f){return this._supportPointerEvents&&(f.pointerType===Xr||f.pointerType===fi)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ry="carousel",Pn=".bs.carousel",Zd=".data-api",ay="ArrowLeft",oy="ArrowRight",ly=500,na="next",tr="prev",sr="left",uo="right",uy=`slide${Pn}`,tu=`slid${Pn}`,cy=`keydown${Pn}`,dy=`mouseenter${Pn}`,fy=`mouseleave${Pn}`,hy=`dragstart${Pn}`,py=`load${Pn}${Zd}`,my=`click${Pn}${Zd}`,Jd="carousel",co="active",gy="slide",vy="carousel-item-end",by="carousel-item-start",yy="carousel-item-next",_y="carousel-item-prev",Xd=".active",ef=".carousel-item",Ey=Xd+ef,wy=".carousel-item img",Cy=".carousel-indicators",Ay="[data-bs-slide], [data-bs-slide-to]",Sy='[data-bs-ride="carousel"]',$y={[ay]:uo,[oy]:sr},Ty={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},xy={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class nr extends pe{constructor(f,b){super(f,b),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Z.findOne(Cy,this._element),this._addEventListeners(),this._config.ride===Jd&&this.cycle()}static get Default(){return Ty}static get DefaultType(){return xy}static get NAME(){return ry}next(){this._slide(na)}nextWhenVisible(){!document.hidden&&A(this._element)&&this.next()}prev(){this._slide(tr)}pause(){this._isSliding&&g(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){Y.one(this._element,tu,()=>this.cycle());return}this.cycle()}}to(f){const b=this._getItems();if(f>b.length-1||f<0)return;if(this._isSliding){Y.one(this._element,tu,()=>this.to(f));return}const L=this._getItemIndex(this._getActive());if(L===f)return;const le=f>L?na:tr;this._slide(le,b[f])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(f){return f.defaultInterval=f.interval,f}_addEventListeners(){this._config.keyboard&&Y.on(this._element,cy,f=>this._keydown(f)),this._config.pause==="hover"&&(Y.on(this._element,dy,()=>this.pause()),Y.on(this._element,fy,()=>this._maybeEnableCycle())),this._config.touch&&lo.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const L of Z.find(wy,this._element))Y.on(L,hy,le=>le.preventDefault());const b={leftCallback:()=>this._slide(this._directionToOrder(sr)),rightCallback:()=>this._slide(this._directionToOrder(uo)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),ly+this._config.interval))}};this._swipeHelper=new lo(this._element,b)}_keydown(f){if(/input|textarea/i.test(f.target.tagName))return;const b=$y[f.key];b&&(f.preventDefault(),this._slide(this._directionToOrder(b)))}_getItemIndex(f){return this._getItems().indexOf(f)}_setActiveIndicatorElement(f){if(!this._indicatorsElement)return;const b=Z.findOne(Xd,this._indicatorsElement);b.classList.remove(co),b.removeAttribute("aria-current");const L=Z.findOne(`[data-bs-slide-to="${f}"]`,this._indicatorsElement);L&&(L.classList.add(co),L.setAttribute("aria-current","true"))}_updateInterval(){const f=this._activeElement||this._getActive();if(!f)return;const b=Number.parseInt(f.getAttribute("data-bs-interval"),10);this._config.interval=b||this._config.defaultInterval}_slide(f,b=null){if(this._isSliding)return;const L=this._getActive(),le=f===na,Ee=b||z(this._getItems(),L,le,this._config.wrap);if(Ee===L)return;const ye=this._getItemIndex(Ee),Je=_o=>Y.trigger(this._element,_o,{relatedTarget:Ee,direction:this._orderToDirection(f),from:this._getItemIndex(L),to:ye});if(Je(uy).defaultPrevented||!L||!Ee)return;const Ns=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(ye),this._activeElement=Ee;const Mt=le?by:vy,Js=le?yy:_y;Ee.classList.add(Js),$(Ee),L.classList.add(Mt),Ee.classList.add(Mt);const Vs=()=>{Ee.classList.remove(Mt,Js),Ee.classList.add(co),L.classList.remove(co,Js,Mt),this._isSliding=!1,Je(tu)};this._queueCallback(Vs,L,this._isAnimated()),Ns&&this.cycle()}_isAnimated(){return this._element.classList.contains(gy)}_getActive(){return Z.findOne(Ey,this._element)}_getItems(){return Z.find(ef,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(f){return E()?f===sr?tr:na:f===sr?na:tr}_orderToDirection(f){return E()?f===tr?sr:uo:f===tr?uo:sr}static jQueryInterface(f){return this.each(function(){const b=nr.getOrCreateInstance(this,f);if(typeof f=="number"){b.to(f);return}if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f]()}})}}Y.on(document,my,Ay,function(q){const f=Z.getElementFromSelector(this);if(!f||!f.classList.contains(Jd))return;q.preventDefault();const b=nr.getOrCreateInstance(f),L=this.getAttribute("data-bs-slide-to");if(L){b.to(L),b._maybeEnableCycle();return}if(ie.getDataAttribute(this,"slide")==="next"){b.next(),b._maybeEnableCycle();return}b.prev(),b._maybeEnableCycle()}),Y.on(window,py,()=>{const q=Z.find(Sy);for(const f of q)nr.getOrCreateInstance(f)}),T(nr);const Oy="collapse",ia=".bs.collapse",Ny=".data-api",ky=`show${ia}`,Py=`shown${ia}`,Dy=`hide${ia}`,Ry=`hidden${ia}`,Iy=`click${ia}${Ny}`,su="show",ir="collapse",fo="collapsing",My="collapsed",qy=`:scope .${ir} .${ir}`,Ly="collapse-horizontal",Fy="width",Vy="height",Qy=".collapse.show, .collapse.collapsing",nu='[data-bs-toggle="collapse"]',jy={parent:null,toggle:!0},By={parent:"(null|element)",toggle:"boolean"};class rr extends pe{constructor(f,b){super(f,b),this._isTransitioning=!1,this._triggerArray=[];const L=Z.find(nu);for(const le of L){const Ee=Z.getSelectorFromElement(le),ye=Z.find(Ee).filter(Je=>Je===this._element);Ee!==null&&ye.length&&this._triggerArray.push(le)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return jy}static get DefaultType(){return By}static get NAME(){return Oy}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let f=[];if(this._config.parent&&(f=this._getFirstLevelChildren(Qy).filter(Je=>Je!==this._element).map(Je=>rr.getOrCreateInstance(Je,{toggle:!1}))),f.length&&f[0]._isTransitioning||Y.trigger(this._element,ky).defaultPrevented)return;for(const Je of f)Je.hide();const L=this._getDimension();this._element.classList.remove(ir),this._element.classList.add(fo),this._element.style[L]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const le=()=>{this._isTransitioning=!1,this._element.classList.remove(fo),this._element.classList.add(ir,su),this._element.style[L]="",Y.trigger(this._element,Py)},ye=`scroll${L[0].toUpperCase()+L.slice(1)}`;this._queueCallback(le,this._element,!0),this._element.style[L]=`${this._element[ye]}px`}hide(){if(this._isTransitioning||!this._isShown()||Y.trigger(this._element,Dy).defaultPrevented)return;const b=this._getDimension();this._element.style[b]=`${this._element.getBoundingClientRect()[b]}px`,$(this._element),this._element.classList.add(fo),this._element.classList.remove(ir,su);for(const le of this._triggerArray){const Ee=Z.getElementFromSelector(le);Ee&&!this._isShown(Ee)&&this._addAriaAndCollapsedClass([le],!1)}this._isTransitioning=!0;const L=()=>{this._isTransitioning=!1,this._element.classList.remove(fo),this._element.classList.add(ir),Y.trigger(this._element,Ry)};this._element.style[b]="",this._queueCallback(L,this._element,!0)}_isShown(f=this._element){return f.classList.contains(su)}_configAfterMerge(f){return f.toggle=!!f.toggle,f.parent=y(f.parent),f}_getDimension(){return this._element.classList.contains(Ly)?Fy:Vy}_initializeChildren(){if(!this._config.parent)return;const f=this._getFirstLevelChildren(nu);for(const b of f){const L=Z.getElementFromSelector(b);L&&this._addAriaAndCollapsedClass([b],this._isShown(L))}}_getFirstLevelChildren(f){const b=Z.find(qy,this._config.parent);return Z.find(f,this._config.parent).filter(L=>!b.includes(L))}_addAriaAndCollapsedClass(f,b){if(f.length)for(const L of f)L.classList.toggle(My,!b),L.setAttribute("aria-expanded",b)}static jQueryInterface(f){const b={};return typeof f=="string"&&/show|hide/.test(f)&&(b.toggle=!1),this.each(function(){const L=rr.getOrCreateInstance(this,b);if(typeof f=="string"){if(typeof L[f]>"u")throw new TypeError(`No method named "${f}"`);L[f]()}})}}Y.on(document,Iy,nu,function(q){(q.target.tagName==="A"||q.delegateTarget&&q.delegateTarget.tagName==="A")&&q.preventDefault();for(const f of Z.getMultipleElementsFromSelector(this))rr.getOrCreateInstance(f,{toggle:!1}).toggle()}),T(rr);const tf="dropdown",hi=".bs.dropdown",iu=".data-api",Uy="Escape",sf="Tab",Ky="ArrowUp",nf="ArrowDown",Hy=2,Gy=`hide${hi}`,Wy=`hidden${hi}`,zy=`show${hi}`,Yy=`shown${hi}`,rf=`click${hi}${iu}`,af=`keydown${hi}${iu}`,Zy=`keyup${hi}${iu}`,ar="show",Jy="dropup",Xy="dropend",e_="dropstart",t_="dropup-center",s_="dropdown-center",pi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',n_=`${pi}.${ar}`,ho=".dropdown-menu",i_=".navbar",r_=".navbar-nav",a_=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",o_=E()?"top-end":"top-start",l_=E()?"top-start":"top-end",u_=E()?"bottom-end":"bottom-start",c_=E()?"bottom-start":"bottom-end",d_=E()?"left-start":"right-start",f_=E()?"right-start":"left-start",h_="top",p_="bottom",m_={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},g_={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Fs extends pe{constructor(f,b){super(f,b),this._popper=null,this._parent=this._element.parentNode,this._menu=Z.next(this._element,ho)[0]||Z.prev(this._element,ho)[0]||Z.findOne(ho,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return m_}static get DefaultType(){return g_}static get NAME(){return tf}toggle(){return this._isShown()?this.hide():this.show()}show(){if(x(this._element)||this._isShown())return;const f={relatedTarget:this._element};if(!Y.trigger(this._element,zy,f).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(r_))for(const L of[].concat(...document.body.children))Y.on(L,"mouseover",_);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ar),this._element.classList.add(ar),Y.trigger(this._element,Yy,f)}}hide(){if(x(this._element)||!this._isShown())return;const f={relatedTarget:this._element};this._completeHide(f)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(f){if(!Y.trigger(this._element,Gy,f).defaultPrevented){if("ontouchstart"in document.documentElement)for(const L of[].concat(...document.body.children))Y.off(L,"mouseover",_);this._popper&&this._popper.destroy(),this._menu.classList.remove(ar),this._element.classList.remove(ar),this._element.setAttribute("aria-expanded","false"),ie.removeDataAttribute(this._menu,"popper"),Y.trigger(this._element,Wy,f),this._element.focus()}}_getConfig(f){if(f=super._getConfig(f),typeof f.reference=="object"&&!C(f.reference)&&typeof f.reference.getBoundingClientRect!="function")throw new TypeError(`${tf.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return f}_createPopper(){if(typeof i>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let f=this._element;this._config.reference==="parent"?f=this._parent:C(this._config.reference)?f=y(this._config.reference):typeof this._config.reference=="object"&&(f=this._config.reference);const b=this._getPopperConfig();this._popper=i.createPopper(f,this._menu,b)}_isShown(){return this._menu.classList.contains(ar)}_getPlacement(){const f=this._parent;if(f.classList.contains(Xy))return d_;if(f.classList.contains(e_))return f_;if(f.classList.contains(t_))return h_;if(f.classList.contains(s_))return p_;const b=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return f.classList.contains(Jy)?b?l_:o_:b?c_:u_}_detectNavbar(){return this._element.closest(i_)!==null}_getOffset(){const{offset:f}=this._config;return typeof f=="string"?f.split(",").map(b=>Number.parseInt(b,10)):typeof f=="function"?b=>f(b,this._element):f}_getPopperConfig(){const f={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ie.setDataAttribute(this._menu,"popper","static"),f.modifiers=[{name:"applyStyles",enabled:!1}]),{...f,...N(this._config.popperConfig,[void 0,f])}}_selectMenuItem({key:f,target:b}){const L=Z.find(a_,this._menu).filter(le=>A(le));L.length&&z(L,b,f===nf,!L.includes(b)).focus()}static jQueryInterface(f){return this.each(function(){const b=Fs.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof b[f]>"u")throw new TypeError(`No method named "${f}"`);b[f]()}})}static clearMenus(f){if(f.button===Hy||f.type==="keyup"&&f.key!==sf)return;const b=Z.find(n_);for(const L of b){const le=Fs.getInstance(L);if(!le||le._config.autoClose===!1)continue;const Ee=f.composedPath(),ye=Ee.includes(le._menu);if(Ee.includes(le._element)||le._config.autoClose==="inside"&&!ye||le._config.autoClose==="outside"&&ye||le._menu.contains(f.target)&&(f.type==="keyup"&&f.key===sf||/input|select|option|textarea|form/i.test(f.target.tagName)))continue;const Je={relatedTarget:le._element};f.type==="click"&&(Je.clickEvent=f),le._completeHide(Je)}}static dataApiKeydownHandler(f){const b=/input|textarea/i.test(f.target.tagName),L=f.key===Uy,le=[Ky,nf].includes(f.key);if(!le&&!L||b&&!L)return;f.preventDefault();const Ee=this.matches(pi)?this:Z.prev(this,pi)[0]||Z.next(this,pi)[0]||Z.findOne(pi,f.delegateTarget.parentNode),ye=Fs.getOrCreateInstance(Ee);if(le){f.stopPropagation(),ye.show(),ye._selectMenuItem(f);return}ye._isShown()&&(f.stopPropagation(),ye.hide(),Ee.focus())}}Y.on(document,af,pi,Fs.dataApiKeydownHandler),Y.on(document,af,ho,Fs.dataApiKeydownHandler),Y.on(document,rf,Fs.clearMenus),Y.on(document,Zy,Fs.clearMenus),Y.on(document,rf,pi,function(q){q.preventDefault(),Fs.getOrCreateInstance(this).toggle()}),T(Fs);const of="backdrop",v_="fade",lf="show",uf=`mousedown.bs.${of}`,b_={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},y_={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class cf extends ae{constructor(f){super(),this._config=this._getConfig(f),this._isAppended=!1,this._element=null}static get Default(){return b_}static get DefaultType(){return y_}static get NAME(){return of}show(f){if(!this._config.isVisible){N(f);return}this._append();const b=this._getElement();this._config.isAnimated&&$(b),b.classList.add(lf),this._emulateAnimation(()=>{N(f)})}hide(f){if(!this._config.isVisible){N(f);return}this._getElement().classList.remove(lf),this._emulateAnimation(()=>{this.dispose(),N(f)})}dispose(){this._isAppended&&(Y.off(this._element,uf),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const f=document.createElement("div");f.className=this._config.className,this._config.isAnimated&&f.classList.add(v_),this._element=f}return this._element}_configAfterMerge(f){return f.rootElement=y(f.rootElement),f}_append(){if(this._isAppended)return;const f=this._getElement();this._config.rootElement.append(f),Y.on(f,uf,()=>{N(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(f){w(f,this._getElement(),this._config.isAnimated)}}const __="focustrap",po=".bs.focustrap",E_=`focusin${po}`,w_=`keydown.tab${po}`,C_="Tab",A_="forward",df="backward",S_={autofocus:!0,trapElement:null},$_={autofocus:"boolean",trapElement:"element"};class ff extends ae{constructor(f){super(),this._config=this._getConfig(f),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return S_}static get DefaultType(){return $_}static get NAME(){return __}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Y.off(document,po),Y.on(document,E_,f=>this._handleFocusin(f)),Y.on(document,w_,f=>this._handleKeydown(f)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Y.off(document,po))}_handleFocusin(f){const{trapElement:b}=this._config;if(f.target===document||f.target===b||b.contains(f.target))return;const L=Z.focusableChildren(b);L.length===0?b.focus():this._lastTabNavDirection===df?L[L.length-1].focus():L[0].focus()}_handleKeydown(f){f.key===C_&&(this._lastTabNavDirection=f.shiftKey?df:A_)}}const hf=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pf=".sticky-top",mo="padding-right",mf="margin-right";class ru{constructor(){this._element=document.body}getWidth(){const f=document.documentElement.clientWidth;return Math.abs(window.innerWidth-f)}hide(){const f=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,mo,b=>b+f),this._setElementAttributes(hf,mo,b=>b+f),this._setElementAttributes(pf,mf,b=>b-f)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,mo),this._resetElementAttributes(hf,mo),this._resetElementAttributes(pf,mf)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(f,b,L){const le=this.getWidth(),Ee=ye=>{if(ye!==this._element&&window.innerWidth>ye.clientWidth+le)return;this._saveInitialAttribute(ye,b);const Je=window.getComputedStyle(ye).getPropertyValue(b);ye.style.setProperty(b,`${L(Number.parseFloat(Je))}px`)};this._applyManipulationCallback(f,Ee)}_saveInitialAttribute(f,b){const L=f.style.getPropertyValue(b);L&&ie.setDataAttribute(f,b,L)}_resetElementAttributes(f,b){const L=le=>{const Ee=ie.getDataAttribute(le,b);if(Ee===null){le.style.removeProperty(b);return}ie.removeDataAttribute(le,b),le.style.setProperty(b,Ee)};this._applyManipulationCallback(f,L)}_applyManipulationCallback(f,b){if(C(f)){b(f);return}for(const L of Z.find(f,this._element))b(L)}}const T_="modal",Os=".bs.modal",x_=".data-api",O_="Escape",N_=`hide${Os}`,k_=`hidePrevented${Os}`,gf=`hidden${Os}`,vf=`show${Os}`,P_=`shown${Os}`,D_=`resize${Os}`,R_=`click.dismiss${Os}`,I_=`mousedown.dismiss${Os}`,M_=`keydown.dismiss${Os}`,q_=`click${Os}${x_}`,bf="modal-open",L_="fade",yf="show",au="modal-static",F_=".modal.show",V_=".modal-dialog",Q_=".modal-body",j_='[data-bs-toggle="modal"]',B_={backdrop:!0,focus:!0,keyboard:!0},U_={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class mi extends pe{constructor(f,b){super(f,b),this._dialog=Z.findOne(V_,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ru,this._addEventListeners()}static get Default(){return B_}static get DefaultType(){return U_}static get NAME(){return T_}toggle(f){return this._isShown?this.hide():this.show(f)}show(f){this._isShown||this._isTransitioning||Y.trigger(this._element,vf,{relatedTarget:f}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(bf),this._adjustDialog(),this._backdrop.show(()=>this._showElement(f)))}hide(){!this._isShown||this._isTransitioning||Y.trigger(this._element,N_).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(yf),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Y.off(window,Os),Y.off(this._dialog,Os),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new cf({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ff({trapElement:this._element})}_showElement(f){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 b=Z.findOne(Q_,this._dialog);b&&(b.scrollTop=0),$(this._element),this._element.classList.add(yf);const L=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Y.trigger(this._element,P_,{relatedTarget:f})};this._queueCallback(L,this._dialog,this._isAnimated())}_addEventListeners(){Y.on(this._element,M_,f=>{if(f.key===O_){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Y.on(window,D_,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Y.on(this._element,I_,f=>{Y.one(this._element,R_,b=>{if(!(this._element!==f.target||this._element!==b.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(bf),this._resetAdjustments(),this._scrollBar.reset(),Y.trigger(this._element,gf)})}_isAnimated(){return this._element.classList.contains(L_)}_triggerBackdropTransition(){if(Y.trigger(this._element,k_).defaultPrevented)return;const b=this._element.scrollHeight>document.documentElement.clientHeight,L=this._element.style.overflowY;L==="hidden"||this._element.classList.contains(au)||(b||(this._element.style.overflowY="hidden"),this._element.classList.add(au),this._queueCallback(()=>{this._element.classList.remove(au),this._queueCallback(()=>{this._element.style.overflowY=L},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const f=this._element.scrollHeight>document.documentElement.clientHeight,b=this._scrollBar.getWidth(),L=b>0;if(L&&!f){const le=E()?"paddingLeft":"paddingRight";this._element.style[le]=`${b}px`}if(!L&&f){const le=E()?"paddingRight":"paddingLeft";this._element.style[le]=`${b}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(f,b){return this.each(function(){const L=mi.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof L[f]>"u")throw new TypeError(`No method named "${f}"`);L[f](b)}})}}Y.on(document,q_,j_,function(q){const f=Z.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&q.preventDefault(),Y.one(f,vf,le=>{le.defaultPrevented||Y.one(f,gf,()=>{A(this)&&this.focus()})});const b=Z.findOne(F_);b&&mi.getInstance(b).hide(),mi.getOrCreateInstance(f).toggle(this)}),he(mi),T(mi);const K_="offcanvas",fn=".bs.offcanvas",_f=".data-api",H_=`load${fn}${_f}`,G_="Escape",Ef="show",wf="showing",Cf="hiding",W_="offcanvas-backdrop",Af=".offcanvas.show",z_=`show${fn}`,Y_=`shown${fn}`,Z_=`hide${fn}`,Sf=`hidePrevented${fn}`,$f=`hidden${fn}`,J_=`resize${fn}`,X_=`click${fn}${_f}`,e1=`keydown.dismiss${fn}`,t1='[data-bs-toggle="offcanvas"]',s1={backdrop:!0,keyboard:!0,scroll:!1},n1={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class hn extends pe{constructor(f,b){super(f,b),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return s1}static get DefaultType(){return n1}static get NAME(){return K_}toggle(f){return this._isShown?this.hide():this.show(f)}show(f){if(this._isShown||Y.trigger(this._element,z_,{relatedTarget:f}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ru().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(wf);const L=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ef),this._element.classList.remove(wf),Y.trigger(this._element,Y_,{relatedTarget:f})};this._queueCallback(L,this._element,!0)}hide(){if(!this._isShown||Y.trigger(this._element,Z_).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Cf),this._backdrop.hide();const b=()=>{this._element.classList.remove(Ef,Cf),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ru().reset(),Y.trigger(this._element,$f)};this._queueCallback(b,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const f=()=>{if(this._config.backdrop==="static"){Y.trigger(this._element,Sf);return}this.hide()},b=!!this._config.backdrop;return new cf({className:W_,isVisible:b,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:b?f:null})}_initializeFocusTrap(){return new ff({trapElement:this._element})}_addEventListeners(){Y.on(this._element,e1,f=>{if(f.key===G_){if(this._config.keyboard){this.hide();return}Y.trigger(this._element,Sf)}})}static jQueryInterface(f){return this.each(function(){const b=hn.getOrCreateInstance(this,f);if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f](this)}})}}Y.on(document,X_,t1,function(q){const f=Z.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&q.preventDefault(),x(this))return;Y.one(f,$f,()=>{A(this)&&this.focus()});const b=Z.findOne(Af);b&&b!==f&&hn.getInstance(b).hide(),hn.getOrCreateInstance(f).toggle(this)}),Y.on(window,H_,()=>{for(const q of Z.find(Af))hn.getOrCreateInstance(q).show()}),Y.on(window,J_,()=>{for(const q of Z.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(q).position!=="fixed"&&hn.getOrCreateInstance(q).hide()}),he(hn),T(hn);const Tf={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},i1=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),r1=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,a1=(q,f)=>{const b=q.nodeName.toLowerCase();return f.includes(b)?i1.has(b)?!!r1.test(q.nodeValue):!0:f.filter(L=>L instanceof RegExp).some(L=>L.test(b))};function o1(q,f,b){if(!q.length)return q;if(b&&typeof b=="function")return b(q);const le=new window.DOMParser().parseFromString(q,"text/html"),Ee=[].concat(...le.body.querySelectorAll("*"));for(const ye of Ee){const Je=ye.nodeName.toLowerCase();if(!Object.keys(f).includes(Je)){ye.remove();continue}const us=[].concat(...ye.attributes),Ns=[].concat(f["*"]||[],f[Je]||[]);for(const Mt of us)a1(Mt,Ns)||ye.removeAttribute(Mt.nodeName)}return le.body.innerHTML}const l1="TemplateFactory",u1={allowList:Tf,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},c1={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},d1={entry:"(string|element|function|null)",selector:"(string|element)"};class f1 extends ae{constructor(f){super(),this._config=this._getConfig(f)}static get Default(){return u1}static get DefaultType(){return c1}static get NAME(){return l1}getContent(){return Object.values(this._config.content).map(f=>this._resolvePossibleFunction(f)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(f){return this._checkContent(f),this._config.content={...this._config.content,...f},this}toHtml(){const f=document.createElement("div");f.innerHTML=this._maybeSanitize(this._config.template);for(const[le,Ee]of Object.entries(this._config.content))this._setContent(f,Ee,le);const b=f.children[0],L=this._resolvePossibleFunction(this._config.extraClass);return L&&b.classList.add(...L.split(" ")),b}_typeCheckConfig(f){super._typeCheckConfig(f),this._checkContent(f.content)}_checkContent(f){for(const[b,L]of Object.entries(f))super._typeCheckConfig({selector:b,entry:L},d1)}_setContent(f,b,L){const le=Z.findOne(L,f);if(le){if(b=this._resolvePossibleFunction(b),!b){le.remove();return}if(C(b)){this._putElementInTemplate(y(b),le);return}if(this._config.html){le.innerHTML=this._maybeSanitize(b);return}le.textContent=b}}_maybeSanitize(f){return this._config.sanitize?o1(f,this._config.allowList,this._config.sanitizeFn):f}_resolvePossibleFunction(f){return N(f,[void 0,this])}_putElementInTemplate(f,b){if(this._config.html){b.innerHTML="",b.append(f);return}b.textContent=f.textContent}}const h1="tooltip",p1=new Set(["sanitize","allowList","sanitizeFn"]),ou="fade",m1="modal",go="show",g1=".tooltip-inner",xf=`.${m1}`,Of="hide.bs.modal",ra="hover",lu="focus",v1="click",b1="manual",y1="hide",_1="hidden",E1="show",w1="shown",C1="inserted",A1="click",S1="focusin",$1="focusout",T1="mouseenter",x1="mouseleave",O1={AUTO:"auto",TOP:"top",RIGHT:E()?"left":"right",BOTTOM:"bottom",LEFT:E()?"right":"left"},N1={allowList:Tf,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"},k1={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class gi extends pe{constructor(f,b){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(f,b),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 N1}static get DefaultType(){return k1}static get NAME(){return h1}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Y.off(this._element.closest(xf),Of,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 f=Y.trigger(this._element,this.constructor.eventName(E1)),L=(S(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(f.defaultPrevented||!L)return;this._disposePopper();const le=this._getTipElement();this._element.setAttribute("aria-describedby",le.getAttribute("id"));const{container:Ee}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(Ee.append(le),Y.trigger(this._element,this.constructor.eventName(C1))),this._popper=this._createPopper(le),le.classList.add(go),"ontouchstart"in document.documentElement)for(const Je of[].concat(...document.body.children))Y.on(Je,"mouseover",_);const ye=()=>{Y.trigger(this._element,this.constructor.eventName(w1)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(ye,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Y.trigger(this._element,this.constructor.eventName(y1)).defaultPrevented)return;if(this._getTipElement().classList.remove(go),"ontouchstart"in document.documentElement)for(const le of[].concat(...document.body.children))Y.off(le,"mouseover",_);this._activeTrigger[v1]=!1,this._activeTrigger[lu]=!1,this._activeTrigger[ra]=!1,this._isHovered=null;const L=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Y.trigger(this._element,this.constructor.eventName(_1)))};this._queueCallback(L,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(f){const b=this._getTemplateFactory(f).toHtml();if(!b)return null;b.classList.remove(ou,go),b.classList.add(`bs-${this.constructor.NAME}-auto`);const L=p(this.constructor.NAME).toString();return b.setAttribute("id",L),this._isAnimated()&&b.classList.add(ou),b}setContent(f){this._newContent=f,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(f){return this._templateFactory?this._templateFactory.changeContent(f):this._templateFactory=new f1({...this._config,content:f,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[g1]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(f){return this.constructor.getOrCreateInstance(f.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ou)}_isShown(){return this.tip&&this.tip.classList.contains(go)}_createPopper(f){const b=N(this._config.placement,[this,f,this._element]),L=O1[b.toUpperCase()];return i.createPopper(this._element,f,this._getPopperConfig(L))}_getOffset(){const{offset:f}=this._config;return typeof f=="string"?f.split(",").map(b=>Number.parseInt(b,10)):typeof f=="function"?b=>f(b,this._element):f}_resolvePossibleFunction(f){return N(f,[this._element,this._element])}_getPopperConfig(f){const b={placement:f,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:L=>{this._getTipElement().setAttribute("data-popper-placement",L.state.placement)}}]};return{...b,...N(this._config.popperConfig,[void 0,b])}}_setListeners(){const f=this._config.trigger.split(" ");for(const b of f)if(b==="click")Y.on(this._element,this.constructor.eventName(A1),this._config.selector,L=>{this._initializeOnDelegatedTarget(L).toggle()});else if(b!==b1){const L=b===ra?this.constructor.eventName(T1):this.constructor.eventName(S1),le=b===ra?this.constructor.eventName(x1):this.constructor.eventName($1);Y.on(this._element,L,this._config.selector,Ee=>{const ye=this._initializeOnDelegatedTarget(Ee);ye._activeTrigger[Ee.type==="focusin"?lu:ra]=!0,ye._enter()}),Y.on(this._element,le,this._config.selector,Ee=>{const ye=this._initializeOnDelegatedTarget(Ee);ye._activeTrigger[Ee.type==="focusout"?lu:ra]=ye._element.contains(Ee.relatedTarget),ye._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Y.on(this._element.closest(xf),Of,this._hideModalHandler)}_fixTitle(){const f=this._element.getAttribute("title");f&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",f),this._element.setAttribute("data-bs-original-title",f),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(f,b){clearTimeout(this._timeout),this._timeout=setTimeout(f,b)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(f){const b=ie.getDataAttributes(this._element);for(const L of Object.keys(b))p1.has(L)&&delete b[L];return f={...b,...typeof f=="object"&&f?f:{}},f=this._mergeConfigObj(f),f=this._configAfterMerge(f),this._typeCheckConfig(f),f}_configAfterMerge(f){return f.container=f.container===!1?document.body:y(f.container),typeof f.delay=="number"&&(f.delay={show:f.delay,hide:f.delay}),typeof f.title=="number"&&(f.title=f.title.toString()),typeof f.content=="number"&&(f.content=f.content.toString()),f}_getDelegateConfig(){const f={};for(const[b,L]of Object.entries(this._config))this.constructor.Default[b]!==L&&(f[b]=L);return f.selector=!1,f.trigger="manual",f}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(f){return this.each(function(){const b=gi.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof b[f]>"u")throw new TypeError(`No method named "${f}"`);b[f]()}})}}T(gi);const P1="popover",D1=".popover-header",R1=".popover-body",I1={...gi.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"},M1={...gi.DefaultType,content:"(null|string|element|function)"};class vo extends gi{static get Default(){return I1}static get DefaultType(){return M1}static get NAME(){return P1}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[D1]:this._getTitle(),[R1]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(f){return this.each(function(){const b=vo.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof b[f]>"u")throw new TypeError(`No method named "${f}"`);b[f]()}})}}T(vo);const q1="scrollspy",uu=".bs.scrollspy",L1=".data-api",F1=`activate${uu}`,Nf=`click${uu}`,V1=`load${uu}${L1}`,Q1="dropdown-item",or="active",j1='[data-bs-spy="scroll"]',cu="[href]",B1=".nav, .list-group",kf=".nav-link",U1=`${kf}, .nav-item > ${kf}, .list-group-item`,K1=".dropdown",H1=".dropdown-toggle",G1={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},W1={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class aa extends pe{constructor(f,b){super(f,b),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 G1}static get DefaultType(){return W1}static get NAME(){return q1}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const f of this._observableSections.values())this._observer.observe(f)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(f){return f.target=y(f.target)||document.body,f.rootMargin=f.offset?`${f.offset}px 0px -30%`:f.rootMargin,typeof f.threshold=="string"&&(f.threshold=f.threshold.split(",").map(b=>Number.parseFloat(b))),f}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Y.off(this._config.target,Nf),Y.on(this._config.target,Nf,cu,f=>{const b=this._observableSections.get(f.target.hash);if(b){f.preventDefault();const L=this._rootElement||window,le=b.offsetTop-this._element.offsetTop;if(L.scrollTo){L.scrollTo({top:le,behavior:"smooth"});return}L.scrollTop=le}}))}_getNewObserver(){const f={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(b=>this._observerCallback(b),f)}_observerCallback(f){const b=ye=>this._targetLinks.get(`#${ye.target.id}`),L=ye=>{this._previousScrollData.visibleEntryTop=ye.target.offsetTop,this._process(b(ye))},le=(this._rootElement||document.documentElement).scrollTop,Ee=le>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=le;for(const ye of f){if(!ye.isIntersecting){this._activeTarget=null,this._clearActiveClass(b(ye));continue}const Je=ye.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(Ee&&Je){if(L(ye),!le)return;continue}!Ee&&!Je&&L(ye)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const f=Z.find(cu,this._config.target);for(const b of f){if(!b.hash||x(b))continue;const L=Z.findOne(decodeURI(b.hash),this._element);A(L)&&(this._targetLinks.set(decodeURI(b.hash),b),this._observableSections.set(b.hash,L))}}_process(f){this._activeTarget!==f&&(this._clearActiveClass(this._config.target),this._activeTarget=f,f.classList.add(or),this._activateParents(f),Y.trigger(this._element,F1,{relatedTarget:f}))}_activateParents(f){if(f.classList.contains(Q1)){Z.findOne(H1,f.closest(K1)).classList.add(or);return}for(const b of Z.parents(f,B1))for(const L of Z.prev(b,U1))L.classList.add(or)}_clearActiveClass(f){f.classList.remove(or);const b=Z.find(`${cu}.${or}`,f);for(const L of b)L.classList.remove(or)}static jQueryInterface(f){return this.each(function(){const b=aa.getOrCreateInstance(this,f);if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f]()}})}}Y.on(window,V1,()=>{for(const q of Z.find(j1))aa.getOrCreateInstance(q)}),T(aa);const z1="tab",vi=".bs.tab",Y1=`hide${vi}`,Z1=`hidden${vi}`,J1=`show${vi}`,X1=`shown${vi}`,eE=`click${vi}`,tE=`keydown${vi}`,sE=`load${vi}`,nE="ArrowLeft",Pf="ArrowRight",iE="ArrowUp",Df="ArrowDown",du="Home",Rf="End",bi="active",If="fade",fu="show",rE="dropdown",Mf=".dropdown-toggle",aE=".dropdown-menu",hu=`:not(${Mf})`,oE='.list-group, .nav, [role="tablist"]',lE=".nav-item, .list-group-item",uE=`.nav-link${hu}, .list-group-item${hu}, [role="tab"]${hu}`,qf='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',pu=`${uE}, ${qf}`,cE=`.${bi}[data-bs-toggle="tab"], .${bi}[data-bs-toggle="pill"], .${bi}[data-bs-toggle="list"]`;class yi extends pe{constructor(f){super(f),this._parent=this._element.closest(oE),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Y.on(this._element,tE,b=>this._keydown(b)))}static get NAME(){return z1}show(){const f=this._element;if(this._elemIsActive(f))return;const b=this._getActiveElem(),L=b?Y.trigger(b,Y1,{relatedTarget:f}):null;Y.trigger(f,J1,{relatedTarget:b}).defaultPrevented||L&&L.defaultPrevented||(this._deactivate(b,f),this._activate(f,b))}_activate(f,b){if(!f)return;f.classList.add(bi),this._activate(Z.getElementFromSelector(f));const L=()=>{if(f.getAttribute("role")!=="tab"){f.classList.add(fu);return}f.removeAttribute("tabindex"),f.setAttribute("aria-selected",!0),this._toggleDropDown(f,!0),Y.trigger(f,X1,{relatedTarget:b})};this._queueCallback(L,f,f.classList.contains(If))}_deactivate(f,b){if(!f)return;f.classList.remove(bi),f.blur(),this._deactivate(Z.getElementFromSelector(f));const L=()=>{if(f.getAttribute("role")!=="tab"){f.classList.remove(fu);return}f.setAttribute("aria-selected",!1),f.setAttribute("tabindex","-1"),this._toggleDropDown(f,!1),Y.trigger(f,Z1,{relatedTarget:b})};this._queueCallback(L,f,f.classList.contains(If))}_keydown(f){if(![nE,Pf,iE,Df,du,Rf].includes(f.key))return;f.stopPropagation(),f.preventDefault();const b=this._getChildren().filter(le=>!x(le));let L;if([du,Rf].includes(f.key))L=b[f.key===du?0:b.length-1];else{const le=[Pf,Df].includes(f.key);L=z(b,f.target,le,!0)}L&&(L.focus({preventScroll:!0}),yi.getOrCreateInstance(L).show())}_getChildren(){return Z.find(pu,this._parent)}_getActiveElem(){return this._getChildren().find(f=>this._elemIsActive(f))||null}_setInitialAttributes(f,b){this._setAttributeIfNotExists(f,"role","tablist");for(const L of b)this._setInitialAttributesOnChild(L)}_setInitialAttributesOnChild(f){f=this._getInnerElement(f);const b=this._elemIsActive(f),L=this._getOuterElement(f);f.setAttribute("aria-selected",b),L!==f&&this._setAttributeIfNotExists(L,"role","presentation"),b||f.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(f,"role","tab"),this._setInitialAttributesOnTargetPanel(f)}_setInitialAttributesOnTargetPanel(f){const b=Z.getElementFromSelector(f);b&&(this._setAttributeIfNotExists(b,"role","tabpanel"),f.id&&this._setAttributeIfNotExists(b,"aria-labelledby",`${f.id}`))}_toggleDropDown(f,b){const L=this._getOuterElement(f);if(!L.classList.contains(rE))return;const le=(Ee,ye)=>{const Je=Z.findOne(Ee,L);Je&&Je.classList.toggle(ye,b)};le(Mf,bi),le(aE,fu),L.setAttribute("aria-expanded",b)}_setAttributeIfNotExists(f,b,L){f.hasAttribute(b)||f.setAttribute(b,L)}_elemIsActive(f){return f.classList.contains(bi)}_getInnerElement(f){return f.matches(pu)?f:Z.findOne(pu,f)}_getOuterElement(f){return f.closest(lE)||f}static jQueryInterface(f){return this.each(function(){const b=yi.getOrCreateInstance(this);if(typeof f=="string"){if(b[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);b[f]()}})}}Y.on(document,eE,qf,function(q){["A","AREA"].includes(this.tagName)&&q.preventDefault(),!x(this)&&yi.getOrCreateInstance(this).show()}),Y.on(window,sE,()=>{for(const q of Z.find(cE))yi.getOrCreateInstance(q)}),T(yi);const dE="toast",Dn=".bs.toast",fE=`mouseover${Dn}`,hE=`mouseout${Dn}`,pE=`focusin${Dn}`,mE=`focusout${Dn}`,gE=`hide${Dn}`,vE=`hidden${Dn}`,bE=`show${Dn}`,yE=`shown${Dn}`,_E="fade",Lf="hide",bo="show",yo="showing",EE={animation:"boolean",autohide:"boolean",delay:"number"},wE={animation:!0,autohide:!0,delay:5e3};class oa extends pe{constructor(f,b){super(f,b),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return wE}static get DefaultType(){return EE}static get NAME(){return dE}show(){if(Y.trigger(this._element,bE).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(_E);const b=()=>{this._element.classList.remove(yo),Y.trigger(this._element,yE),this._maybeScheduleHide()};this._element.classList.remove(Lf),$(this._element),this._element.classList.add(bo,yo),this._queueCallback(b,this._element,this._config.animation)}hide(){if(!this.isShown()||Y.trigger(this._element,gE).defaultPrevented)return;const b=()=>{this._element.classList.add(Lf),this._element.classList.remove(yo,bo),Y.trigger(this._element,vE)};this._element.classList.add(yo),this._queueCallback(b,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(bo),super.dispose()}isShown(){return this._element.classList.contains(bo)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(f,b){switch(f.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=b;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=b;break}}if(b){this._clearTimeout();return}const L=f.relatedTarget;this._element===L||this._element.contains(L)||this._maybeScheduleHide()}_setListeners(){Y.on(this._element,fE,f=>this._onInteraction(f,!0)),Y.on(this._element,hE,f=>this._onInteraction(f,!1)),Y.on(this._element,pE,f=>this._onInteraction(f,!0)),Y.on(this._element,mE,f=>this._onInteraction(f,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(f){return this.each(function(){const b=oa.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof b[f]>"u")throw new TypeError(`No method named "${f}"`);b[f](this)}})}}return he(oa),T(oa),{Alert:Nt,Button:Me,Carousel:nr,Collapse:rr,Dropdown:Fs,Modal:mi,Offcanvas:hn,Popover:vo,ScrollSpy:aa,Tab:yi,Toast:oa,Tooltip:gi}}))})(Do)),Do.exports}m0();/**
|
|
7
|
+
* @vue/shared v3.5.13
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**//*! #__NO_SIDE_EFFECTS__ */function ad(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Et={},mr=[],ln=()=>{},g0=()=>!1,El=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),od=e=>e.startsWith("onUpdate:"),Lt=Object.assign,ld=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},v0=Object.prototype.hasOwnProperty,pt=(e,t)=>v0.call(e,t),je=Array.isArray,gr=e=>za(e)==="[object Map]",wl=e=>za(e)==="[object Set]",zf=e=>za(e)==="[object Date]",Ke=e=>typeof e=="function",St=e=>typeof e=="string",Ws=e=>typeof e=="symbol",bt=e=>e!==null&&typeof e=="object",Vm=e=>(bt(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),Qm=Object.prototype.toString,za=e=>Qm.call(e),b0=e=>za(e).slice(8,-1),jm=e=>za(e)==="[object Object]",ud=e=>St(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ea=ad(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cl=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},y0=/-(\w)/g,Ms=Cl(e=>e.replace(y0,(t,s)=>s?s.toUpperCase():"")),_0=/\B([A-Z])/g,li=Cl(e=>e.replace(_0,"-$1").toLowerCase()),Al=Cl(e=>e.charAt(0).toUpperCase()+e.slice(1)),gu=Cl(e=>e?`on${Al(e)}`:""),ei=(e,t)=>!Object.is(e,t),Io=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Bm=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Go=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Um=e=>{const t=St(e)?Number(e):NaN;return isNaN(t)?e:t};let Yf;const Sl=()=>Yf||(Yf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cd(e){if(je(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=St(n)?A0(n):cd(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(St(e)||bt(e))return e}const E0=/;(?![^(]*\))/g,w0=/:([^]+)/,C0=/\/\*[^]*?\*\//g;function A0(e){const t={};return e.replace(C0,"").split(E0).forEach(s=>{if(s){const n=s.split(w0);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function De(e){let t="";if(St(e))t=e;else if(je(e))for(let s=0;s<e.length;s++){const n=De(e[s]);n&&(t+=n+" ")}else if(bt(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const S0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$0=ad(S0);function Km(e){return!!e||e===""}function T0(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=$l(e[n],t[n]);return s}function $l(e,t){if(e===t)return!0;let s=zf(e),n=zf(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ws(e),n=Ws(t),s||n)return e===t;if(s=je(e),n=je(t),s||n)return s&&n?T0(e,t):!1;if(s=bt(e),n=bt(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),u=t.hasOwnProperty(o);if(l&&!u||!l&&u||!$l(e[o],t[o]))return!1}}return String(e)===String(t)}function x0(e,t){return e.findIndex(s=>$l(s,t))}const Hm=e=>!!(e&&e.__v_isRef===!0),F=e=>St(e)?e:e==null?"":je(e)||bt(e)&&(e.toString===Qm||!Ke(e.toString))?Hm(e)?F(e.value):JSON.stringify(e,Gm,2):String(e),Gm=(e,t)=>Hm(t)?Gm(e,t.value):gr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[vu(n,r)+" =>"]=i,s),{})}:wl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>vu(s))}:Ws(t)?vu(t):bt(t)&&!je(t)&&!jm(t)?String(t):t,vu=(e,t="")=>{var s;return Ws(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
11
|
+
* @vue/reactivity v3.5.13
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/let es;class Wm{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=es,!t&&es&&(this.index=(es.scopes||(es.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=es;try{return es=this,t()}finally{es=s}}}on(){es=this}off(){es=this.parent}stop(t){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&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function zm(e){return new Wm(e)}function Ym(){return es}function dd(e,t=!1){es&&es.cleanups.push(e)}let Ct;const bu=new WeakSet;class Zm{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,es&&es.active&&es.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,bu.has(this)&&(bu.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xm(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Zf(this),eg(this);const t=Ct,s=Gs;Ct=this,Gs=!0;try{return this.fn()}finally{tg(this),Ct=t,Gs=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)pd(t);this.deps=this.depsTail=void 0,Zf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?bu.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Uu(this)&&this.run()}get dirty(){return Uu(this)}}let Jm=0,wa,Ca;function Xm(e,t=!1){if(e.flags|=8,t){e.next=Ca,Ca=e;return}e.next=wa,wa=e}function fd(){Jm++}function hd(){if(--Jm>0)return;if(Ca){let t=Ca;for(Ca=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;wa;){let t=wa;for(wa=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function eg(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function tg(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),pd(n),O0(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Uu(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(sg(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function sg(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Na))return;e.globalVersion=Na;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Uu(e)){e.flags&=-3;return}const s=Ct,n=Gs;Ct=e,Gs=!0;try{eg(e);const i=e.fn(e._value);(t.version===0||ei(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ct=s,Gs=n,tg(e),e.flags&=-3}}function pd(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)pd(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function O0(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Gs=!0;const ng=[];function ui(){ng.push(Gs),Gs=!1}function ci(){const e=ng.pop();Gs=e===void 0?!0:e}function Zf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Ct;Ct=void 0;try{t()}finally{Ct=s}}}let Na=0;class N0{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class md{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Ct||!Gs||Ct===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ct)s=this.activeLink=new N0(Ct,this),Ct.deps?(s.prevDep=Ct.depsTail,Ct.depsTail.nextDep=s,Ct.depsTail=s):Ct.deps=Ct.depsTail=s,ig(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=Ct.depsTail,s.nextDep=void 0,Ct.depsTail.nextDep=s,Ct.depsTail=s,Ct.deps===s&&(Ct.deps=n)}return s}trigger(t){this.version++,Na++,this.notify(t)}notify(t){fd();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{hd()}}}function ig(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ig(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Wo=new WeakMap,Qi=Symbol(""),Ku=Symbol(""),ka=Symbol("");function Gt(e,t,s){if(Gs&&Ct){let n=Wo.get(e);n||Wo.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new md),i.map=n,i.key=s),i.track()}}function Cn(e,t,s,n,i,r){const o=Wo.get(e);if(!o){Na++;return}const l=u=>{u&&u.trigger()};if(fd(),t==="clear")o.forEach(l);else{const u=je(e),d=u&&ud(s);if(u&&s==="length"){const c=Number(n);o.forEach((h,p)=>{(p==="length"||p===ka||!Ws(p)&&p>=c)&&l(h)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(ka)),t){case"add":u?d&&l(o.get("length")):(l(o.get(Qi)),gr(e)&&l(o.get(Ku)));break;case"delete":u||(l(o.get(Qi)),gr(e)&&l(o.get(Ku)));break;case"set":gr(e)&&l(o.get(Qi));break}}hd()}function k0(e,t){const s=Wo.get(e);return s&&s.get(t)}function ur(e){const t=lt(e);return t===e?t:(Gt(t,"iterate",ka),Is(e)?t:t.map(Wt))}function Tl(e){return Gt(e=lt(e),"iterate",ka),e}const P0={__proto__:null,[Symbol.iterator](){return yu(this,Symbol.iterator,Wt)},concat(...e){return ur(this).concat(...e.map(t=>je(t)?ur(t):t))},entries(){return yu(this,"entries",e=>(e[1]=Wt(e[1]),e))},every(e,t){return pn(this,"every",e,t,void 0,arguments)},filter(e,t){return pn(this,"filter",e,t,s=>s.map(Wt),arguments)},find(e,t){return pn(this,"find",e,t,Wt,arguments)},findIndex(e,t){return pn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pn(this,"findLast",e,t,Wt,arguments)},findLastIndex(e,t){return pn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pn(this,"forEach",e,t,void 0,arguments)},includes(...e){return _u(this,"includes",e)},indexOf(...e){return _u(this,"indexOf",e)},join(e){return ur(this).join(e)},lastIndexOf(...e){return _u(this,"lastIndexOf",e)},map(e,t){return pn(this,"map",e,t,void 0,arguments)},pop(){return la(this,"pop")},push(...e){return la(this,"push",e)},reduce(e,...t){return Jf(this,"reduce",e,t)},reduceRight(e,...t){return Jf(this,"reduceRight",e,t)},shift(){return la(this,"shift")},some(e,t){return pn(this,"some",e,t,void 0,arguments)},splice(...e){return la(this,"splice",e)},toReversed(){return ur(this).toReversed()},toSorted(e){return ur(this).toSorted(e)},toSpliced(...e){return ur(this).toSpliced(...e)},unshift(...e){return la(this,"unshift",e)},values(){return yu(this,"values",Wt)}};function yu(e,t,s){const n=Tl(e),i=n[t]();return n!==e&&!Is(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.value&&(r.value=s(r.value)),r}),i}const D0=Array.prototype;function pn(e,t,s,n,i,r){const o=Tl(e),l=o!==e&&!Is(e),u=o[t];if(u!==D0[t]){const h=u.apply(e,r);return l?Wt(h):h}let d=s;o!==e&&(l?d=function(h,p){return s.call(this,Wt(h),p,e)}:s.length>2&&(d=function(h,p){return s.call(this,h,p,e)}));const c=u.call(o,d,n);return l&&i?i(c):c}function Jf(e,t,s,n){const i=Tl(e);let r=s;return i!==e&&(Is(e)?s.length>3&&(r=function(o,l,u){return s.call(this,o,l,u,e)}):r=function(o,l,u){return s.call(this,o,Wt(l),u,e)}),i[t](r,...n)}function _u(e,t,s){const n=lt(e);Gt(n,"iterate",ka);const i=n[t](...s);return(i===-1||i===!1)&&gd(s[0])?(s[0]=lt(s[0]),n[t](...s)):i}function la(e,t,s=[]){ui(),fd();const n=lt(e)[t].apply(e,s);return hd(),ci(),n}const R0=ad("__proto__,__v_isRef,__isVue"),rg=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ws));function I0(e){Ws(e)||(e=String(e));const t=lt(this);return Gt(t,"has",e),t.hasOwnProperty(e)}class ag{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__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?fg:dg:r?cg:ug).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=je(t);if(!i){let u;if(o&&(u=P0[s]))return u;if(s==="hasOwnProperty")return I0}const l=Reflect.get(t,s,vt(t)?t:n);return(Ws(s)?rg.has(s):R0(s))||(i||Gt(t,"get",s),r)?l:vt(l)?o&&ud(s)?l:l.value:bt(l)?i?Ya(l):qs(l):l}}class og extends ag{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];if(!this._isShallow){const u=Gi(r);if(!Is(n)&&!Gi(n)&&(r=lt(r),n=lt(n)),!je(t)&&vt(r)&&!vt(n))return u?!1:(r.value=n,!0)}const o=je(t)&&ud(s)?Number(s)<t.length:pt(t,s),l=Reflect.set(t,s,n,vt(t)?t:i);return t===lt(i)&&(o?ei(n,r)&&Cn(t,"set",s,n):Cn(t,"add",s,n)),l}deleteProperty(t,s){const n=pt(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&Cn(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!Ws(s)||!rg.has(s))&&Gt(t,"has",s),n}ownKeys(t){return Gt(t,"iterate",je(t)?"length":Qi),Reflect.ownKeys(t)}}class lg extends ag{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const M0=new og,q0=new lg,L0=new og(!0),F0=new lg(!0),Hu=e=>e,Co=e=>Reflect.getPrototypeOf(e);function V0(e,t,s){return function(...n){const i=this.__v_raw,r=lt(i),o=gr(r),l=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=i[e](...n),c=s?Hu:t?Gu:Wt;return!t&&Gt(r,"iterate",u?Ku:Qi),{next(){const{value:h,done:p}=d.next();return p?{value:h,done:p}:{value:l?[c(h[0]),c(h[1])]:c(h),done:p}},[Symbol.iterator](){return this}}}}function Ao(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Q0(e,t){const s={get(i){const r=this.__v_raw,o=lt(r),l=lt(i);e||(ei(i,l)&&Gt(o,"get",i),Gt(o,"get",l));const{has:u}=Co(o),d=t?Hu:e?Gu:Wt;if(u.call(o,i))return d(r.get(i));if(u.call(o,l))return d(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Gt(lt(i),"iterate",Qi),Reflect.get(i,"size",i)},has(i){const r=this.__v_raw,o=lt(r),l=lt(i);return e||(ei(i,l)&&Gt(o,"has",i),Gt(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,u=lt(l),d=t?Hu:e?Gu:Wt;return!e&&Gt(u,"iterate",Qi),l.forEach((c,h)=>i.call(r,d(c),d(h),o))}};return Lt(s,e?{add:Ao("add"),set:Ao("set"),delete:Ao("delete"),clear:Ao("clear")}:{add(i){!t&&!Is(i)&&!Gi(i)&&(i=lt(i));const r=lt(this);return Co(r).has.call(r,i)||(r.add(i),Cn(r,"add",i,i)),this},set(i,r){!t&&!Is(r)&&!Gi(r)&&(r=lt(r));const o=lt(this),{has:l,get:u}=Co(o);let d=l.call(o,i);d||(i=lt(i),d=l.call(o,i));const c=u.call(o,i);return o.set(i,r),d?ei(r,c)&&Cn(o,"set",i,r):Cn(o,"add",i,r),this},delete(i){const r=lt(this),{has:o,get:l}=Co(r);let u=o.call(r,i);u||(i=lt(i),u=o.call(r,i)),l&&l.call(r,i);const d=r.delete(i);return u&&Cn(r,"delete",i,void 0),d},clear(){const i=lt(this),r=i.size!==0,o=i.clear();return r&&Cn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=V0(i,e,t)}),s}function xl(e,t){const s=Q0(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(pt(s,i)&&i in n?s:n,i,r)}const j0={get:xl(!1,!1)},B0={get:xl(!1,!0)},U0={get:xl(!0,!1)},K0={get:xl(!0,!0)},ug=new WeakMap,cg=new WeakMap,dg=new WeakMap,fg=new WeakMap;function H0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function G0(e){return e.__v_skip||!Object.isExtensible(e)?0:H0(b0(e))}function qs(e){return Gi(e)?e:Nl(e,!1,M0,j0,ug)}function Ol(e){return Nl(e,!1,L0,B0,cg)}function Ya(e){return Nl(e,!0,q0,U0,dg)}function hg(e){return Nl(e,!0,F0,K0,fg)}function Nl(e,t,s,n,i){if(!bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=G0(e);if(o===0)return e;const l=new Proxy(e,o===2?n:s);return i.set(e,l),l}function ti(e){return Gi(e)?ti(e.__v_raw):!!(e&&e.__v_isReactive)}function Gi(e){return!!(e&&e.__v_isReadonly)}function Is(e){return!!(e&&e.__v_isShallow)}function gd(e){return e?!!e.__v_raw:!1}function lt(e){const t=e&&e.__v_raw;return t?lt(t):e}function vd(e){return!pt(e,"__v_skip")&&Object.isExtensible(e)&&Bm(e,"__v_skip",!0),e}const Wt=e=>bt(e)?qs(e):e,Gu=e=>bt(e)?Ya(e):e;function vt(e){return e?e.__v_isRef===!0:!1}function we(e){return mg(e,!1)}function pg(e){return mg(e,!0)}function mg(e,t){return vt(e)?e:new W0(e,t)}class W0{constructor(t,s){this.dep=new md,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:lt(t),this._value=s?t:Wt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Is(t)||Gi(t);t=n?t:lt(t),ei(t,s)&&(this._rawValue=t,this._value=n?t:Wt(t),this.dep.trigger())}}function O(e){return vt(e)?e.value:e}function Qe(e){return Ke(e)?e():O(e)}const z0={get:(e,t,s)=>t==="__v_raw"?e:O(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return vt(i)&&!vt(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function gg(e){return ti(e)?e:new Proxy(e,z0)}function bd(e){const t=je(e)?new Array(e.length):{};for(const s in e)t[s]=vg(e,s);return t}class Y0{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return k0(lt(this._object),this._key)}}class Z0{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ti(e,t,s){return vt(e)?e:Ke(e)?new Z0(e):bt(e)&&arguments.length>1?vg(e,t,s):we(e)}function vg(e,t,s){const n=e[t];return vt(n)?n:new Y0(e,t,s)}class J0{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new md(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Na-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ct!==this)return Xm(this,!0),!0}get value(){const t=this.dep.track();return sg(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function X0(e,t,s=!1){let n,i;return Ke(e)?n=e:(n=e.get,i=e.set),new J0(n,i,s)}const So={},zo=new WeakMap;let Ai;function ew(e,t=!1,s=Ai){if(s){let n=zo.get(s);n||zo.set(s,n=[]),n.push(e)}}function tw(e,t,s=Et){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:l,call:u}=s,d=_=>i?_:Is(_)||i===!1||i===0?An(_,1):An(_);let c,h,p,m,g=!1,C=!1;if(vt(e)?(h=()=>e.value,g=Is(e)):ti(e)?(h=()=>d(e),g=!0):je(e)?(C=!0,g=e.some(_=>ti(_)||Is(_)),h=()=>e.map(_=>{if(vt(_))return _.value;if(ti(_))return d(_);if(Ke(_))return u?u(_,2):_()})):Ke(e)?t?h=u?()=>u(e,2):e:h=()=>{if(p){ui();try{p()}finally{ci()}}const _=Ai;Ai=c;try{return u?u(e,3,[m]):e(m)}finally{Ai=_}}:h=ln,t&&i){const _=h,$=i===!0?1/0:i;h=()=>An(_(),$)}const y=Ym(),A=()=>{c.stop(),y&&y.active&&ld(y.effects,c)};if(r&&t){const _=t;t=(...$)=>{_(...$),A()}}let x=C?new Array(e.length).fill(So):So;const S=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const $=c.run();if(i||g||(C?$.some((V,j)=>ei(V,x[j])):ei($,x))){p&&p();const V=Ai;Ai=c;try{const j=[$,x===So?void 0:C&&x[0]===So?[]:x,m];u?u(t,3,j):t(...j),x=$}finally{Ai=V}}}else c.run()};return l&&l(S),c=new Zm(h),c.scheduler=o?()=>o(S,!1):S,m=_=>ew(_,!1,c),p=c.onStop=()=>{const _=zo.get(c);if(_){if(u)u(_,4);else for(const $ of _)$();zo.delete(c)}},t?n?S(!0):x=c.run():o?o(S.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function An(e,t=1/0,s){if(t<=0||!bt(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,vt(e))An(e.value,t,s);else if(je(e))for(let n=0;n<e.length;n++)An(e[n],t,s);else if(wl(e)||gr(e))e.forEach(n=>{An(n,t,s)});else if(jm(e)){for(const n in e)An(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&An(e[n],t,s)}return e}/**
|
|
15
|
+
* @vue/runtime-core v3.5.13
|
|
16
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
+
* @license MIT
|
|
18
|
+
**/function Za(e,t,s,n){try{return n?e(...n):e()}catch(i){Ja(i,t,s)}}function zs(e,t,s,n){if(Ke(e)){const i=Za(e,t,s,n);return i&&Vm(i)&&i.catch(r=>{Ja(r,t,s)}),i}if(je(e)){const i=[];for(let r=0;r<e.length;r++)i.push(zs(e[r],t,s,n));return i}}function Ja(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Et;if(t){let l=t.parent;const u=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const c=l.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](e,u,d)===!1)return}l=l.parent}if(r){ui(),Za(r,null,10,[e,u,d]),ci();return}}sw(e,s,i,n,o)}function sw(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const ss=[];let tn=-1;const vr=[];let Ln=null,fr=0;const bg=Promise.resolve();let Yo=null;function Ht(e){const t=Yo||bg;return e?t.then(this?e.bind(this):e):t}function nw(e){let t=tn+1,s=ss.length;for(;t<s;){const n=t+s>>>1,i=ss[n],r=Pa(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function yd(e){if(!(e.flags&1)){const t=Pa(e),s=ss[ss.length-1];!s||!(e.flags&2)&&t>=Pa(s)?ss.push(e):ss.splice(nw(t),0,e),e.flags|=1,yg()}}function yg(){Yo||(Yo=bg.then(Eg))}function Wu(e){je(e)?vr.push(...e):Ln&&e.id===-1?Ln.splice(fr+1,0,e):e.flags&1||(vr.push(e),e.flags|=1),yg()}function Xf(e,t,s=tn+1){for(;s<ss.length;s++){const n=ss[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ss.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function _g(e){if(vr.length){const t=[...new Set(vr)].sort((s,n)=>Pa(s)-Pa(n));if(vr.length=0,Ln){Ln.push(...t);return}for(Ln=t,fr=0;fr<Ln.length;fr++){const s=Ln[fr];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ln=null,fr=0}}const Pa=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Eg(e){try{for(tn=0;tn<ss.length;tn++){const t=ss[tn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Za(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;tn<ss.length;tn++){const t=ss[tn];t&&(t.flags&=-2)}tn=-1,ss.length=0,_g(),Yo=null,(ss.length||vr.length)&&Eg()}}let Pt=null,wg=null;function Zo(e){const t=Pt;return Pt=e,wg=e&&e.type.__scopeId||null,t}function et(e,t=Pt,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&mh(-1);const r=Zo(t);let o;try{o=e(...i)}finally{Zo(r),n._d&&mh(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function _s(e,t){if(Pt===null)return e;const s=ql(Pt),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,l,u=Et]=t[i];r&&(Ke(r)&&(r={mounted:r,updated:r}),r.deep&&An(o),n.push({dir:r,instance:s,value:o,oldValue:void 0,arg:l,modifiers:u}))}return e}function _i(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let u=l.dir[n];u&&(ui(),zs(u,s,8,[e.el,l,e,t]),ci())}}const Cg=Symbol("_vte"),Ag=e=>e.__isTeleport,Aa=e=>e&&(e.disabled||e.disabled===""),eh=e=>e&&(e.defer||e.defer===""),th=e=>typeof SVGElement<"u"&&e instanceof SVGElement,sh=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zu=(e,t)=>{const s=e&&e.to;return St(s)?t?t(s):null:s},Sg={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,r,o,l,u,d){const{mc:c,pc:h,pbc:p,o:{insert:m,querySelector:g,createText:C,createComment:y}}=d,A=Aa(t.props);let{shapeFlag:x,children:S,dynamicChildren:_}=t;if(e==null){const $=t.el=C(""),V=t.anchor=C("");m($,s,n),m(V,s,n);const j=(E,T)=>{x&16&&(i&&i.isCE&&(i.ce._teleportTarget=E),c(S,E,T,i,r,o,l,u))},R=()=>{const E=t.target=zu(t.props,g),T=$g(E,t,C,m);E&&(o!=="svg"&&th(E)?o="svg":o!=="mathml"&&sh(E)&&(o="mathml"),A||(j(E,T),Mo(t,!1)))};A&&(j(s,V),Mo(t,!0)),eh(t.props)?Xt(()=>{R(),t.el.__isMounted=!0},r):R()}else{if(eh(t.props)&&!e.el.__isMounted){Xt(()=>{Sg.process(e,t,s,n,i,r,o,l,u,d),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const $=t.anchor=e.anchor,V=t.target=e.target,j=t.targetAnchor=e.targetAnchor,R=Aa(e.props),E=R?s:V,T=R?$:j;if(o==="svg"||th(V)?o="svg":(o==="mathml"||sh(V))&&(o="mathml"),_?(p(e.dynamicChildren,_,E,i,r,o,l),wd(e,t,!0)):u||h(e,t,E,T,i,r,o,l,!1),A)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$o(t,s,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=zu(t.props,g);N&&$o(t,N,null,d,0)}else R&&$o(t,V,j,d,1);Mo(t,A)}},remove(e,t,s,{um:n,o:{remove:i}},r){const{shapeFlag:o,children:l,anchor:u,targetStart:d,targetAnchor:c,target:h,props:p}=e;if(h&&(i(d),i(c)),r&&i(u),o&16){const m=r||!Aa(p);for(let g=0;g<l.length;g++){const C=l[g];n(C,t,s,m,!!C.dynamicChildren)}}},move:$o,hydrate:iw};function $o(e,t,s,{o:{insert:n},m:i},r=2){r===0&&n(e.targetAnchor,t,s);const{el:o,anchor:l,shapeFlag:u,children:d,props:c}=e,h=r===2;if(h&&n(o,t,s),(!h||Aa(c))&&u&16)for(let p=0;p<d.length;p++)i(d[p],t,s,2);h&&n(l,t,s)}function iw(e,t,s,n,i,r,{o:{nextSibling:o,parentNode:l,querySelector:u,insert:d,createText:c}},h){const p=t.target=zu(t.props,u);if(p){const m=Aa(t.props),g=p._lpa||p.firstChild;if(t.shapeFlag&16)if(m)t.anchor=h(o(e),t,l(e),s,n,i,r),t.targetStart=g,t.targetAnchor=g&&o(g);else{t.anchor=o(e);let C=g;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}C=o(C)}t.targetAnchor||$g(p,t,c,d),h(g&&o(g),t,p,s,n,i,r)}Mo(t,m)}return t.anchor&&o(t.anchor)}const Xa=Sg;function Mo(e,t){const s=e.ctx;if(s&&s.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function $g(e,t,s,n){const i=t.targetStart=s(""),r=t.targetAnchor=s("");return i[Cg]=r,e&&(n(i,e),n(r,e)),r}const Fn=Symbol("_leaveCb"),To=Symbol("_enterCb");function rw(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gs(()=>{e.isMounted=!0}),Dl(()=>{e.isUnmounting=!0}),e}const ks=[Function,Array],Tg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ks,onEnter:ks,onAfterEnter:ks,onEnterCancelled:ks,onBeforeLeave:ks,onLeave:ks,onAfterLeave:ks,onLeaveCancelled:ks,onBeforeAppear:ks,onAppear:ks,onAfterAppear:ks,onAppearCancelled:ks},xg=e=>{const t=e.subTree;return t.component?xg(t.component):t},aw={name:"BaseTransition",props:Tg,setup(e,{slots:t}){const s=eo(),n=rw();return()=>{const i=t.default&&kg(t.default(),!0);if(!i||!i.length)return;const r=Og(i),o=lt(e),{mode:l}=o;if(n.isLeaving)return Eu(r);const u=nh(r);if(!u)return Eu(r);let d=Yu(u,o,n,s,h=>d=h);u.type!==Qt&&Da(u,d);let c=s.subTree&&nh(s.subTree);if(c&&c.type!==Qt&&!an(u,c)&&xg(s).type!==Qt){let h=Yu(c,o,n,s);if(Da(c,h),l==="out-in"&&u.type!==Qt)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete h.afterLeave,c=void 0},Eu(r);l==="in-out"&&u.type!==Qt?h.delayLeave=(p,m,g)=>{const C=Ng(n,c);C[String(c.key)]=c,p[Fn]=()=>{m(),p[Fn]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{g(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function Og(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Qt){t=s;break}}return t}const ow=aw;function Ng(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Yu(e,t,s,n,i){const{appear:r,mode:o,persisted:l=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:c,onEnterCancelled:h,onBeforeLeave:p,onLeave:m,onAfterLeave:g,onLeaveCancelled:C,onBeforeAppear:y,onAppear:A,onAfterAppear:x,onAppearCancelled:S}=t,_=String(e.key),$=Ng(s,e),V=(E,T)=>{E&&zs(E,n,9,T)},j=(E,T)=>{const N=T[1];V(E,T),je(E)?E.every(w=>w.length<=1)&&N():E.length<=1&&N()},R={mode:o,persisted:l,beforeEnter(E){let T=u;if(!s.isMounted)if(r)T=y||u;else return;E[Fn]&&E[Fn](!0);const N=$[_];N&&an(e,N)&&N.el[Fn]&&N.el[Fn](),V(T,[E])},enter(E){let T=d,N=c,w=h;if(!s.isMounted)if(r)T=A||d,N=x||c,w=S||h;else return;let z=!1;const se=E[To]=ne=>{z||(z=!0,ne?V(w,[E]):V(N,[E]),R.delayedLeave&&R.delayedLeave(),E[To]=void 0)};T?j(T,[E,se]):se()},leave(E,T){const N=String(e.key);if(E[To]&&E[To](!0),s.isUnmounting)return T();V(p,[E]);let w=!1;const z=E[Fn]=se=>{w||(w=!0,T(),se?V(C,[E]):V(g,[E]),E[Fn]=void 0,$[N]===e&&delete $[N])};$[N]=e,m?j(m,[E,z]):z()},clone(E){const T=Yu(E,t,s,n,i);return i&&i(T),T}};return R}function Eu(e){if(kl(e))return e=ii(e),e.children=null,e}function nh(e){if(!kl(e))return Ag(e.type)&&e.children?Og(e.children):e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Ke(s.default))return s.default()}}function Da(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Da(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function kg(e,t=!1,s){let n=[],i=0;for(let r=0;r<e.length;r++){let o=e[r];const l=s==null?o.key:String(s)+String(o.key!=null?o.key:r);o.type===$e?(o.patchFlag&128&&i++,n=n.concat(kg(o.children,t,l))):(t||o.type!==Qt)&&n.push(l!=null?ii(o,{key:l}):o)}if(i>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function ze(e,t){return Ke(e)?Lt({name:e.name},t,{setup:e}):e}function Pg(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Jo(e,t,s,n,i=!1){if(je(e)){e.forEach((g,C)=>Jo(g,t&&(je(t)?t[C]:t),s,n,i));return}if(br(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Jo(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?ql(n.component):n.el,o=i?null:r,{i:l,r:u}=e,d=t&&t.r,c=l.refs===Et?l.refs={}:l.refs,h=l.setupState,p=lt(h),m=h===Et?()=>!1:g=>pt(p,g);if(d!=null&&d!==u&&(St(d)?(c[d]=null,m(d)&&(h[d]=null)):vt(d)&&(d.value=null)),Ke(u))Za(u,l,12,[o,c]);else{const g=St(u),C=vt(u);if(g||C){const y=()=>{if(e.f){const A=g?m(u)?h[u]:c[u]:u.value;i?je(A)&&ld(A,r):je(A)?A.includes(r)||A.push(r):g?(c[u]=[r],m(u)&&(h[u]=c[u])):(u.value=[r],e.k&&(c[e.k]=u.value))}else g?(c[u]=o,m(u)&&(h[u]=o)):C&&(u.value=o,e.k&&(c[e.k]=o))};o?(y.id=-1,Xt(y,s)):y()}}}Sl().requestIdleCallback;Sl().cancelIdleCallback;const br=e=>!!e.type.__asyncLoader,kl=e=>e.type.__isKeepAlive;function lw(e,t){Dg(e,"a",t)}function uw(e,t){Dg(e,"da",t)}function Dg(e,t,s=qt){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Pl(t,n,s),s){let i=s.parent;for(;i&&i.parent;)kl(i.parent.vnode)&&cw(n,t,s,i),i=i.parent}}function cw(e,t,s,n){const i=Pl(t,e,n,!0);_d(()=>{ld(n[t],i)},s)}function Pl(e,t,s=qt,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...o)=>{ui();const l=to(s),u=zs(t,s,e,o);return l(),ci(),u});return n?i.unshift(r):i.push(r),r}}const Nn=e=>(t,s=qt)=>{(!Ia||e==="sp")&&Pl(e,(...n)=>t(...n),s)},dw=Nn("bm"),gs=Nn("m"),fw=Nn("bu"),hw=Nn("u"),Dl=Nn("bum"),_d=Nn("um"),pw=Nn("sp"),mw=Nn("rtg"),gw=Nn("rtc");function vw(e,t=qt){Pl("ec",e,t)}const Rg="components";function ih(e,t){return Mg(Rg,e,!0,t)||e}const Ig=Symbol.for("v-ndc");function Rl(e){return St(e)?Mg(Rg,e,!1)||e:e||Ig}function Mg(e,t,s=!0,n=!1){const i=Pt||qt;if(i){const r=i.type;{const l=uC(r,!1);if(l&&(l===t||l===Ms(t)||l===Al(Ms(t))))return r}const o=rh(i[e]||r[e],t)||rh(i.appContext[e],t);return!o&&n?r:o}}function rh(e,t){return e&&(e[t]||e[Ms(t)]||e[Al(Ms(t))])}function At(e,t,s,n){let i;const r=s,o=je(e);if(o||St(e)){const l=o&&ti(e);let u=!1;l&&(u=!Is(e),e=Tl(e)),i=new Array(e.length);for(let d=0,c=e.length;d<c;d++)i[d]=t(u?Wt(e[d]):e[d],d,void 0,r)}else if(typeof e=="number"){i=new Array(e);for(let l=0;l<e;l++)i[l]=t(l+1,l,void 0,r)}else if(bt(e))if(e[Symbol.iterator])i=Array.from(e,(l,u)=>t(l,u,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let u=0,d=l.length;u<d;u++){const c=l[u];i[u]=t(e[c],c,u,r)}}else i=[];return i}function yr(e,t,s={},n,i){if(Pt.ce||Pt.parent&&br(Pt.parent)&&Pt.parent.ce)return t!=="default"&&(s.name=t),k(),gt($e,null,[Ae("slot",s,n&&n())],64);let r=e[t];r&&r._c&&(r._d=!1),k();const o=r&&qg(r(s)),l=s.key||o&&o.key,u=gt($e,{key:(l&&!Ws(l)?l:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return r&&r._c&&(r._d=!0),u}function qg(e){return e.some(t=>Qr(t)?!(t.type===Qt||t.type===$e&&!qg(t.children)):!0)?e:null}const Zu=e=>e?rv(e)?ql(e):Zu(e.parent):null,Sa=Lt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zu(e.parent),$root:e=>Zu(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fg(e),$forceUpdate:e=>e.f||(e.f=()=>{yd(e.update)}),$nextTick:e=>e.n||(e.n=Ht.bind(e.proxy)),$watch:e=>Lw.bind(e)}),wu=(e,t)=>e!==Et&&!e.__isScriptSetup&&pt(e,t),bw={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:o,type:l,appContext:u}=e;let d;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(wu(n,t))return o[t]=1,n[t];if(i!==Et&&pt(i,t))return o[t]=2,i[t];if((d=e.propsOptions[0])&&pt(d,t))return o[t]=3,r[t];if(s!==Et&&pt(s,t))return o[t]=4,s[t];Ju&&(o[t]=0)}}const c=Sa[t];let h,p;if(c)return t==="$attrs"&&Gt(e.attrs,"get",""),c(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(s!==Et&&pt(s,t))return o[t]=4,s[t];if(p=u.config.globalProperties,pt(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return wu(i,t)?(i[t]=s,!0):n!==Et&&pt(n,t)?(n[t]=s,!0):pt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,propsOptions:r}},o){let l;return!!s[o]||e!==Et&&pt(e,o)||wu(t,o)||(l=r[0])&&pt(l,o)||pt(n,o)||pt(Sa,o)||pt(i.config.globalProperties,o)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:pt(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function ah(e){return je(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Ju=!0;function yw(e){const t=Fg(e),s=e.proxy,n=e.ctx;Ju=!1,t.beforeCreate&&oh(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:u,inject:d,created:c,beforeMount:h,mounted:p,beforeUpdate:m,updated:g,activated:C,deactivated:y,beforeDestroy:A,beforeUnmount:x,destroyed:S,unmounted:_,render:$,renderTracked:V,renderTriggered:j,errorCaptured:R,serverPrefetch:E,expose:T,inheritAttrs:N,components:w,directives:z,filters:se}=t;if(d&&_w(d,n,null),o)for(const W in o){const ee=o[W];Ke(ee)&&(n[W]=ee.bind(s))}if(i){const W=i.call(s,s);bt(W)&&(e.data=qs(W))}if(Ju=!0,r)for(const W in r){const ee=r[W],fe=Ke(ee)?ee.bind(s,s):Ke(ee.get)?ee.get.bind(s,s):ln,Oe=!Ke(ee)&&Ke(ee.set)?ee.set.bind(s):ln,Ue=v({get:fe,set:Oe});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:ue=>Ue.value=ue})}if(l)for(const W in l)Lg(l[W],n,s,W);if(u){const W=Ke(u)?u.call(s):u;Reflect.ownKeys(W).forEach(ee=>{Bi(ee,W[ee])})}c&&oh(c,e,"c");function te(W,ee){je(ee)?ee.forEach(fe=>W(fe.bind(s))):ee&&W(ee.bind(s))}if(te(dw,h),te(gs,p),te(fw,m),te(hw,g),te(lw,C),te(uw,y),te(vw,R),te(gw,V),te(mw,j),te(Dl,x),te(_d,_),te(pw,E),je(T))if(T.length){const W=e.exposed||(e.exposed={});T.forEach(ee=>{Object.defineProperty(W,ee,{get:()=>s[ee],set:fe=>s[ee]=fe})})}else e.exposed||(e.exposed={});$&&e.render===ln&&(e.render=$),N!=null&&(e.inheritAttrs=N),w&&(e.components=w),z&&(e.directives=z),E&&Pg(e)}function _w(e,t,s=ln){je(e)&&(e=Xu(e));for(const n in e){const i=e[n];let r;bt(i)?"default"in i?r=rs(i.from||n,i.default,!0):r=rs(i.from||n):r=rs(i),vt(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r}}function oh(e,t,s){zs(je(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Lg(e,t,s,n){let i=n.includes(".")?Jg(s,n):()=>s[n];if(St(e)){const r=t[e];Ke(r)&&rt(i,r)}else if(Ke(e))rt(i,e.bind(s));else if(bt(e))if(je(e))e.forEach(r=>Lg(r,t,s,n));else{const r=Ke(e.handler)?e.handler.bind(s):t[e.handler];Ke(r)&&rt(i,r,e)}}function Fg(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let u;return l?u=l:!i.length&&!s&&!n?u=t:(u={},i.length&&i.forEach(d=>Xo(u,d,o,!0)),Xo(u,t,o)),bt(t)&&r.set(t,u),u}function Xo(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&Xo(e,r,s,!0),i&&i.forEach(o=>Xo(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=Ew[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ew={data:lh,props:uh,emits:uh,methods:ma,computed:ma,beforeCreate:Yt,created:Yt,beforeMount:Yt,mounted:Yt,beforeUpdate:Yt,updated:Yt,beforeDestroy:Yt,beforeUnmount:Yt,destroyed:Yt,unmounted:Yt,activated:Yt,deactivated:Yt,errorCaptured:Yt,serverPrefetch:Yt,components:ma,directives:ma,watch:Cw,provide:lh,inject:ww};function lh(e,t){return t?e?function(){return Lt(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function ww(e,t){return ma(Xu(e),Xu(t))}function Xu(e){if(je(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Yt(e,t){return e?[...new Set([].concat(e,t))]:t}function ma(e,t){return e?Lt(Object.create(null),e,t):t}function uh(e,t){return e?je(e)&&je(t)?[...new Set([...e,...t])]:Lt(Object.create(null),ah(e),ah(t??{})):t}function Cw(e,t){if(!e)return t;if(!t)return e;const s=Lt(Object.create(null),e);for(const n in t)s[n]=Yt(e[n],t[n]);return s}function Vg(){return{app:null,config:{isNativeTag:g0,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 Aw=0;function Sw(e,t){return function(n,i=null){Ke(n)||(n=Lt({},n)),i!=null&&!bt(i)&&(i=null);const r=Vg(),o=new WeakSet,l=[];let u=!1;const d=r.app={_uid:Aw++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:dC,get config(){return r.config},set config(c){},use(c,...h){return o.has(c)||(c&&Ke(c.install)?(o.add(c),c.install(d,...h)):Ke(c)&&(o.add(c),c(d,...h))),d},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),d},component(c,h){return h?(r.components[c]=h,d):r.components[c]},directive(c,h){return h?(r.directives[c]=h,d):r.directives[c]},mount(c,h,p){if(!u){const m=d._ceVNode||Ae(n,i);return m.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),e(m,c,p),u=!0,d._container=c,c.__vue_app__=d,ql(m.component)}},onUnmount(c){l.push(c)},unmount(){u&&(zs(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(c,h){return r.provides[c]=h,d},runWithContext(c){const h=ji;ji=d;try{return c()}finally{ji=h}}};return d}}let ji=null;function Bi(e,t){if(qt){let s=qt.provides;const n=qt.parent&&qt.parent.provides;n===s&&(s=qt.provides=Object.create(n)),s[e]=t}}function rs(e,t,s=!1){const n=qt||Pt;if(n||ji){const i=ji?ji._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&Ke(t)?t.call(n&&n.proxy):t}}function Qg(){return!!(qt||Pt||ji)}const jg={},Bg=()=>Object.create(jg),Ug=e=>Object.getPrototypeOf(e)===jg;function $w(e,t,s,n=!1){const i={},r=Bg();e.propsDefaults=Object.create(null),Kg(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);s?e.props=n?i:Ol(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Tw(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=lt(i),[u]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let h=0;h<c.length;h++){let p=c[h];if(Il(e.emitsOptions,p))continue;const m=t[p];if(u)if(pt(r,p))m!==r[p]&&(r[p]=m,d=!0);else{const g=Ms(p);i[g]=ec(u,l,g,m,e,!1)}else m!==r[p]&&(r[p]=m,d=!0)}}}else{Kg(e,t,i,r)&&(d=!0);let c;for(const h in l)(!t||!pt(t,h)&&((c=li(h))===h||!pt(t,c)))&&(u?s&&(s[h]!==void 0||s[c]!==void 0)&&(i[h]=ec(u,l,h,void 0,e,!0)):delete i[h]);if(r!==l)for(const h in r)(!t||!pt(t,h))&&(delete r[h],d=!0)}d&&Cn(e.attrs,"set","")}function Kg(e,t,s,n){const[i,r]=e.propsOptions;let o=!1,l;if(t)for(let u in t){if(Ea(u))continue;const d=t[u];let c;i&&pt(i,c=Ms(u))?!r||!r.includes(c)?s[c]=d:(l||(l={}))[c]=d:Il(e.emitsOptions,u)||(!(u in n)||d!==n[u])&&(n[u]=d,o=!0)}if(r){const u=lt(s),d=l||Et;for(let c=0;c<r.length;c++){const h=r[c];s[h]=ec(i,u,h,d[h],e,!pt(d,h))}}return o}function ec(e,t,s,n,i,r){const o=e[s];if(o!=null){const l=pt(o,"default");if(l&&n===void 0){const u=o.default;if(o.type!==Function&&!o.skipFactory&&Ke(u)){const{propsDefaults:d}=i;if(s in d)n=d[s];else{const c=to(i);n=d[s]=u.call(null,t),c()}}else n=u;i.ce&&i.ce._setProp(s,n)}o[0]&&(r&&!l?n=!1:o[1]&&(n===""||n===li(s))&&(n=!0))}return n}const xw=new WeakMap;function Hg(e,t,s=!1){const n=s?xw:t.propsCache,i=n.get(e);if(i)return i;const r=e.props,o={},l=[];let u=!1;if(!Ke(e)){const c=h=>{u=!0;const[p,m]=Hg(h,t,!0);Lt(o,p),m&&l.push(...m)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!u)return bt(e)&&n.set(e,mr),mr;if(je(r))for(let c=0;c<r.length;c++){const h=Ms(r[c]);ch(h)&&(o[h]=Et)}else if(r)for(const c in r){const h=Ms(c);if(ch(h)){const p=r[c],m=o[h]=je(p)||Ke(p)?{type:p}:Lt({},p),g=m.type;let C=!1,y=!0;if(je(g))for(let A=0;A<g.length;++A){const x=g[A],S=Ke(x)&&x.name;if(S==="Boolean"){C=!0;break}else S==="String"&&(y=!1)}else C=Ke(g)&&g.name==="Boolean";m[0]=C,m[1]=y,(C||pt(m,"default"))&&l.push(h)}}const d=[o,l];return bt(e)&&n.set(e,d),d}function ch(e){return e[0]!=="$"&&!Ea(e)}const Gg=e=>e[0]==="_"||e==="$stable",Ed=e=>je(e)?e.map(Bs):[Bs(e)],Ow=(e,t,s)=>{if(t._n)return t;const n=et((...i)=>Ed(t(...i)),s);return n._c=!1,n},Wg=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Gg(i))continue;const r=e[i];if(Ke(r))t[i]=Ow(i,r,n);else if(r!=null){const o=Ed(r);t[i]=()=>o}}},zg=(e,t)=>{const s=Ed(t);e.slots.default=()=>s},Yg=(e,t,s)=>{for(const n in t)(s||n!=="_")&&(e[n]=t[n])},Nw=(e,t,s)=>{const n=e.slots=Bg();if(e.vnode.shapeFlag&32){const i=t._;i?(Yg(n,t,s),s&&Bm(n,"_",i,!0)):Wg(t,n)}else t&&zg(e,t)},kw=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,o=Et;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:Yg(i,t,s):(r=!t.$stable,Wg(t,i)),o=t}else t&&(zg(e,t),o={default:1});if(r)for(const l in i)!Gg(l)&&o[l]==null&&delete i[l]},Xt=Zw;function Pw(e){return Dw(e)}function Dw(e,t){const s=Sl();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:l,createComment:u,setText:d,setElementText:c,parentNode:h,nextSibling:p,setScopeId:m=ln,insertStaticContent:g}=e,C=(P,M,U,ie=null,ae=null,oe=null,pe=void 0,ge=null,Z=!!M.dynamicChildren)=>{if(P===M)return;P&&!an(P,M)&&(ie=D(P),ue(P,ae,oe,!0),P=null),M.patchFlag===-2&&(Z=!1,M.dynamicChildren=null);const{type:he,ref:qe,shapeFlag:Ce}=M;switch(he){case Ml:y(P,M,U,ie);break;case Qt:A(P,M,U,ie);break;case qo:P==null&&x(M,U,ie,pe);break;case $e:w(P,M,U,ie,ae,oe,pe,ge,Z);break;default:Ce&1?$(P,M,U,ie,ae,oe,pe,ge,Z):Ce&6?z(P,M,U,ie,ae,oe,pe,ge,Z):(Ce&64||Ce&128)&&he.process(P,M,U,ie,ae,oe,pe,ge,Z,ce)}qe!=null&&ae&&Jo(qe,P&&P.ref,oe,M||P,!M)},y=(P,M,U,ie)=>{if(P==null)n(M.el=l(M.children),U,ie);else{const ae=M.el=P.el;M.children!==P.children&&d(ae,M.children)}},A=(P,M,U,ie)=>{P==null?n(M.el=u(M.children||""),U,ie):M.el=P.el},x=(P,M,U,ie)=>{[P.el,P.anchor]=g(P.children,M,U,ie,P.el,P.anchor)},S=({el:P,anchor:M},U,ie)=>{let ae;for(;P&&P!==M;)ae=p(P),n(P,U,ie),P=ae;n(M,U,ie)},_=({el:P,anchor:M})=>{let U;for(;P&&P!==M;)U=p(P),i(P),P=U;i(M)},$=(P,M,U,ie,ae,oe,pe,ge,Z)=>{M.type==="svg"?pe="svg":M.type==="math"&&(pe="mathml"),P==null?V(M,U,ie,ae,oe,pe,ge,Z):E(P,M,ae,oe,pe,ge,Z)},V=(P,M,U,ie,ae,oe,pe,ge)=>{let Z,he;const{props:qe,shapeFlag:Ce,transition:ke,dirs:Be}=P;if(Z=P.el=o(P.type,oe,qe&&qe.is,qe),Ce&8?c(Z,P.children):Ce&16&&R(P.children,Z,null,ie,ae,Cu(P,oe),pe,ge),Be&&_i(P,null,ie,"created"),j(Z,P,P.scopeId,pe,ie),qe){for(const ot in qe)ot!=="value"&&!Ea(ot)&&r(Z,ot,null,qe[ot],oe,ie);"value"in qe&&r(Z,"value",null,qe.value,oe),(he=qe.onVnodeBeforeMount)&&Xs(he,ie,P)}Be&&_i(P,null,ie,"beforeMount");const We=Rw(ae,ke);We&&ke.beforeEnter(Z),n(Z,M,U),((he=qe&&qe.onVnodeMounted)||We||Be)&&Xt(()=>{he&&Xs(he,ie,P),We&&ke.enter(Z),Be&&_i(P,null,ie,"mounted")},ae)},j=(P,M,U,ie,ae)=>{if(U&&m(P,U),ie)for(let oe=0;oe<ie.length;oe++)m(P,ie[oe]);if(ae){let oe=ae.subTree;if(M===oe||ev(oe.type)&&(oe.ssContent===M||oe.ssFallback===M)){const pe=ae.vnode;j(P,pe,pe.scopeId,pe.slotScopeIds,ae.parent)}}},R=(P,M,U,ie,ae,oe,pe,ge,Z=0)=>{for(let he=Z;he<P.length;he++){const qe=P[he]=ge?Vn(P[he]):Bs(P[he]);C(null,qe,M,U,ie,ae,oe,pe,ge)}},E=(P,M,U,ie,ae,oe,pe)=>{const ge=M.el=P.el;let{patchFlag:Z,dynamicChildren:he,dirs:qe}=M;Z|=P.patchFlag&16;const Ce=P.props||Et,ke=M.props||Et;let Be;if(U&&Ei(U,!1),(Be=ke.onVnodeBeforeUpdate)&&Xs(Be,U,M,P),qe&&_i(M,P,U,"beforeUpdate"),U&&Ei(U,!0),(Ce.innerHTML&&ke.innerHTML==null||Ce.textContent&&ke.textContent==null)&&c(ge,""),he?T(P.dynamicChildren,he,ge,U,ie,Cu(M,ae),oe):pe||ee(P,M,ge,null,U,ie,Cu(M,ae),oe,!1),Z>0){if(Z&16)N(ge,Ce,ke,U,ae);else if(Z&2&&Ce.class!==ke.class&&r(ge,"class",null,ke.class,ae),Z&4&&r(ge,"style",Ce.style,ke.style,ae),Z&8){const We=M.dynamicProps;for(let ot=0;ot<We.length;ot++){const nt=We[ot],Nt=Ce[nt],kt=ke[nt];(kt!==Nt||nt==="value")&&r(ge,nt,Nt,kt,ae,U)}}Z&1&&P.children!==M.children&&c(ge,M.children)}else!pe&&he==null&&N(ge,Ce,ke,U,ae);((Be=ke.onVnodeUpdated)||qe)&&Xt(()=>{Be&&Xs(Be,U,M,P),qe&&_i(M,P,U,"updated")},ie)},T=(P,M,U,ie,ae,oe,pe)=>{for(let ge=0;ge<M.length;ge++){const Z=P[ge],he=M[ge],qe=Z.el&&(Z.type===$e||!an(Z,he)||Z.shapeFlag&70)?h(Z.el):U;C(Z,he,qe,null,ie,ae,oe,pe,!0)}},N=(P,M,U,ie,ae)=>{if(M!==U){if(M!==Et)for(const oe in M)!Ea(oe)&&!(oe in U)&&r(P,oe,M[oe],null,ae,ie);for(const oe in U){if(Ea(oe))continue;const pe=U[oe],ge=M[oe];pe!==ge&&oe!=="value"&&r(P,oe,ge,pe,ae,ie)}"value"in U&&r(P,"value",M.value,U.value,ae)}},w=(P,M,U,ie,ae,oe,pe,ge,Z)=>{const he=M.el=P?P.el:l(""),qe=M.anchor=P?P.anchor:l("");let{patchFlag:Ce,dynamicChildren:ke,slotScopeIds:Be}=M;Be&&(ge=ge?ge.concat(Be):Be),P==null?(n(he,U,ie),n(qe,U,ie),R(M.children||[],U,qe,ae,oe,pe,ge,Z)):Ce>0&&Ce&64&&ke&&P.dynamicChildren?(T(P.dynamicChildren,ke,U,ae,oe,pe,ge),(M.key!=null||ae&&M===ae.subTree)&&wd(P,M,!0)):ee(P,M,U,qe,ae,oe,pe,ge,Z)},z=(P,M,U,ie,ae,oe,pe,ge,Z)=>{M.slotScopeIds=ge,P==null?M.shapeFlag&512?ae.ctx.activate(M,U,ie,pe,Z):se(M,U,ie,ae,oe,pe,Z):ne(P,M,Z)},se=(P,M,U,ie,ae,oe,pe)=>{const ge=P.component=iC(P,ie,ae);if(kl(P)&&(ge.ctx.renderer=ce),rC(ge,!1,pe),ge.asyncDep){if(ae&&ae.registerDep(ge,te,pe),!P.el){const Z=ge.subTree=Ae(Qt);A(null,Z,M,U)}}else te(ge,P,M,U,ae,oe,pe)},ne=(P,M,U)=>{const ie=M.component=P.component;if(Uw(P,M,U))if(ie.asyncDep&&!ie.asyncResolved){W(ie,M,U);return}else ie.next=M,ie.update();else M.el=P.el,ie.vnode=M},te=(P,M,U,ie,ae,oe,pe)=>{const ge=()=>{if(P.isMounted){let{next:Ce,bu:ke,u:Be,parent:We,vnode:ot}=P;{const H=Zg(P);if(H){Ce&&(Ce.el=ot.el,W(P,Ce,pe)),H.asyncDep.then(()=>{P.isUnmounted||ge()});return}}let nt=Ce,Nt;Ei(P,!1),Ce?(Ce.el=ot.el,W(P,Ce,pe)):Ce=ot,ke&&Io(ke),(Nt=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&Xs(Nt,We,Ce,ot),Ei(P,!0);const kt=fh(P),G=P.subTree;P.subTree=kt,C(G,kt,h(G.el),D(G),P,ae,oe),Ce.el=kt.el,nt===null&&Ad(P,kt.el),Be&&Xt(Be,ae),(Nt=Ce.props&&Ce.props.onVnodeUpdated)&&Xt(()=>Xs(Nt,We,Ce,ot),ae)}else{let Ce;const{el:ke,props:Be}=M,{bm:We,m:ot,parent:nt,root:Nt,type:kt}=P,G=br(M);Ei(P,!1),We&&Io(We),!G&&(Ce=Be&&Be.onVnodeBeforeMount)&&Xs(Ce,nt,M),Ei(P,!0);{Nt.ce&&Nt.ce._injectChildStyle(kt);const H=P.subTree=fh(P);C(null,H,U,ie,P,ae,oe),M.el=H.el}if(ot&&Xt(ot,ae),!G&&(Ce=Be&&Be.onVnodeMounted)){const H=M;Xt(()=>Xs(Ce,nt,H),ae)}(M.shapeFlag&256||nt&&br(nt.vnode)&&nt.vnode.shapeFlag&256)&&P.a&&Xt(P.a,ae),P.isMounted=!0,M=U=ie=null}};P.scope.on();const Z=P.effect=new Zm(ge);P.scope.off();const he=P.update=Z.run.bind(Z),qe=P.job=Z.runIfDirty.bind(Z);qe.i=P,qe.id=P.uid,Z.scheduler=()=>yd(qe),Ei(P,!0),he()},W=(P,M,U)=>{M.component=P;const ie=P.vnode.props;P.vnode=M,P.next=null,Tw(P,M.props,ie,U),kw(P,M.children,U),ui(),Xf(P),ci()},ee=(P,M,U,ie,ae,oe,pe,ge,Z=!1)=>{const he=P&&P.children,qe=P?P.shapeFlag:0,Ce=M.children,{patchFlag:ke,shapeFlag:Be}=M;if(ke>0){if(ke&128){Oe(he,Ce,U,ie,ae,oe,pe,ge,Z);return}else if(ke&256){fe(he,Ce,U,ie,ae,oe,pe,ge,Z);return}}Be&8?(qe&16&&K(he,ae,oe),Ce!==he&&c(U,Ce)):qe&16?Be&16?Oe(he,Ce,U,ie,ae,oe,pe,ge,Z):K(he,ae,oe,!0):(qe&8&&c(U,""),Be&16&&R(Ce,U,ie,ae,oe,pe,ge,Z))},fe=(P,M,U,ie,ae,oe,pe,ge,Z)=>{P=P||mr,M=M||mr;const he=P.length,qe=M.length,Ce=Math.min(he,qe);let ke;for(ke=0;ke<Ce;ke++){const Be=M[ke]=Z?Vn(M[ke]):Bs(M[ke]);C(P[ke],Be,U,null,ae,oe,pe,ge,Z)}he>qe?K(P,ae,oe,!0,!1,Ce):R(M,U,ie,ae,oe,pe,ge,Z,Ce)},Oe=(P,M,U,ie,ae,oe,pe,ge,Z)=>{let he=0;const qe=M.length;let Ce=P.length-1,ke=qe-1;for(;he<=Ce&&he<=ke;){const Be=P[he],We=M[he]=Z?Vn(M[he]):Bs(M[he]);if(an(Be,We))C(Be,We,U,null,ae,oe,pe,ge,Z);else break;he++}for(;he<=Ce&&he<=ke;){const Be=P[Ce],We=M[ke]=Z?Vn(M[ke]):Bs(M[ke]);if(an(Be,We))C(Be,We,U,null,ae,oe,pe,ge,Z);else break;Ce--,ke--}if(he>Ce){if(he<=ke){const Be=ke+1,We=Be<qe?M[Be].el:ie;for(;he<=ke;)C(null,M[he]=Z?Vn(M[he]):Bs(M[he]),U,We,ae,oe,pe,ge,Z),he++}}else if(he>ke)for(;he<=Ce;)ue(P[he],ae,oe,!0),he++;else{const Be=he,We=he,ot=new Map;for(he=We;he<=ke;he++){const Ne=M[he]=Z?Vn(M[he]):Bs(M[he]);Ne.key!=null&&ot.set(Ne.key,he)}let nt,Nt=0;const kt=ke-We+1;let G=!1,H=0;const de=new Array(kt);for(he=0;he<kt;he++)de[he]=0;for(he=Be;he<=Ce;he++){const Ne=P[he];if(Nt>=kt){ue(Ne,ae,oe,!0);continue}let Fe;if(Ne.key!=null)Fe=ot.get(Ne.key);else for(nt=We;nt<=ke;nt++)if(de[nt-We]===0&&an(Ne,M[nt])){Fe=nt;break}Fe===void 0?ue(Ne,ae,oe,!0):(de[Fe-We]=he+1,Fe>=H?H=Fe:G=!0,C(Ne,M[Fe],U,null,ae,oe,pe,ge,Z),Nt++)}const Se=G?Iw(de):mr;for(nt=Se.length-1,he=kt-1;he>=0;he--){const Ne=We+he,Fe=M[Ne],Me=Ne+1<qe?M[Ne+1].el:ie;de[he]===0?C(null,Fe,U,Me,ae,oe,pe,ge,Z):G&&(nt<0||he!==Se[nt]?Ue(Fe,U,Me,2):nt--)}}},Ue=(P,M,U,ie,ae=null)=>{const{el:oe,type:pe,transition:ge,children:Z,shapeFlag:he}=P;if(he&6){Ue(P.component.subTree,M,U,ie);return}if(he&128){P.suspense.move(M,U,ie);return}if(he&64){pe.move(P,M,U,ce);return}if(pe===$e){n(oe,M,U);for(let Ce=0;Ce<Z.length;Ce++)Ue(Z[Ce],M,U,ie);n(P.anchor,M,U);return}if(pe===qo){S(P,M,U);return}if(ie!==2&&he&1&&ge)if(ie===0)ge.beforeEnter(oe),n(oe,M,U),Xt(()=>ge.enter(oe),ae);else{const{leave:Ce,delayLeave:ke,afterLeave:Be}=ge,We=()=>n(oe,M,U),ot=()=>{Ce(oe,()=>{We(),Be&&Be()})};ke?ke(oe,We,ot):ot()}else n(oe,M,U)},ue=(P,M,U,ie=!1,ae=!1)=>{const{type:oe,props:pe,ref:ge,children:Z,dynamicChildren:he,shapeFlag:qe,patchFlag:Ce,dirs:ke,cacheIndex:Be}=P;if(Ce===-2&&(ae=!1),ge!=null&&Jo(ge,null,U,P,!0),Be!=null&&(M.renderCache[Be]=void 0),qe&256){M.ctx.deactivate(P);return}const We=qe&1&&ke,ot=!br(P);let nt;if(ot&&(nt=pe&&pe.onVnodeBeforeUnmount)&&Xs(nt,M,P),qe&6)_e(P.component,U,ie);else{if(qe&128){P.suspense.unmount(U,ie);return}We&&_i(P,null,M,"beforeUnmount"),qe&64?P.type.remove(P,M,U,ce,ie):he&&!he.hasOnce&&(oe!==$e||Ce>0&&Ce&64)?K(he,M,U,!1,!0):(oe===$e&&Ce&384||!ae&&qe&16)&&K(Z,M,U),ie&&ve(P)}(ot&&(nt=pe&&pe.onVnodeUnmounted)||We)&&Xt(()=>{nt&&Xs(nt,M,P),We&&_i(P,null,M,"unmounted")},U)},ve=P=>{const{type:M,el:U,anchor:ie,transition:ae}=P;if(M===$e){Re(U,ie);return}if(M===qo){_(P);return}const oe=()=>{i(U),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(P.shapeFlag&1&&ae&&!ae.persisted){const{leave:pe,delayLeave:ge}=ae,Z=()=>pe(U,oe);ge?ge(P.el,oe,Z):Z()}else oe()},Re=(P,M)=>{let U;for(;P!==M;)U=p(P),i(P),P=U;i(M)},_e=(P,M,U)=>{const{bum:ie,scope:ae,job:oe,subTree:pe,um:ge,m:Z,a:he}=P;dh(Z),dh(he),ie&&Io(ie),ae.stop(),oe&&(oe.flags|=8,ue(pe,P,M,U)),ge&&Xt(ge,M),Xt(()=>{P.isUnmounted=!0},M),M&&M.pendingBranch&&!M.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===M.pendingId&&(M.deps--,M.deps===0&&M.resolve())},K=(P,M,U,ie=!1,ae=!1,oe=0)=>{for(let pe=oe;pe<P.length;pe++)ue(P[pe],M,U,ie,ae)},D=P=>{if(P.shapeFlag&6)return D(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const M=p(P.anchor||P.el),U=M&&M[Cg];return U?p(U):M};let B=!1;const J=(P,M,U)=>{P==null?M._vnode&&ue(M._vnode,null,null,!0):C(M._vnode||null,P,M,null,null,null,U),M._vnode=P,B||(B=!0,Xf(),_g(),B=!1)},ce={p:C,um:ue,m:Ue,r:ve,mt:se,mc:R,pc:ee,pbc:T,n:D,o:e};return{render:J,hydrate:void 0,createApp:Sw(J)}}function Cu({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Ei({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Rw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wd(e,t,s=!1){const n=e.children,i=t.children;if(je(n)&&je(i))for(let r=0;r<n.length;r++){const o=n[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=Vn(i[r]),l.el=o.el),!s&&l.patchFlag!==-2&&wd(o,l)),l.type===Ml&&(l.el=o.el)}}function Iw(e){const t=e.slice(),s=[0];let n,i,r,o,l;const u=e.length;for(n=0;n<u;n++){const d=e[n];if(d!==0){if(i=s[s.length-1],e[i]<d){t[n]=i,s.push(n);continue}for(r=0,o=s.length-1;r<o;)l=r+o>>1,e[s[l]]<d?r=l+1:o=l;d<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,o=s[r-1];r-- >0;)s[r]=o,o=t[o];return s}function Zg(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zg(t)}function dh(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Mw=Symbol.for("v-scx"),qw=()=>rs(Mw);function Dt(e,t){return Cd(e,null,t)}function rt(e,t,s){return Cd(e,t,s)}function Cd(e,t,s=Et){const{immediate:n,deep:i,flush:r,once:o}=s,l=Lt({},s),u=t&&n||!t&&r!=="post";let d;if(Ia){if(r==="sync"){const m=qw();d=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=ln,m.resume=ln,m.pause=ln,m}}const c=qt;l.call=(m,g,C)=>zs(m,c,g,C);let h=!1;r==="post"?l.scheduler=m=>{Xt(m,c&&c.suspense)}:r!=="sync"&&(h=!0,l.scheduler=(m,g)=>{g?m():yd(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const p=tw(e,t,l);return Ia&&(d?d.push(p):u&&p()),p}function Lw(e,t,s){const n=this.proxy,i=St(e)?e.includes(".")?Jg(n,e):()=>n[e]:e.bind(n,n);let r;Ke(t)?r=t:(r=t.handler,s=t);const o=to(this),l=Cd(i,r.bind(n),s);return o(),l}function Jg(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const Fw=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ms(t)}Modifiers`]||e[`${li(t)}Modifiers`];function Vw(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||Et;let i=s;const r=t.startsWith("update:"),o=r&&Fw(n,t.slice(7));o&&(o.trim&&(i=s.map(c=>St(c)?c.trim():c)),o.number&&(i=s.map(Go)));let l,u=n[l=gu(t)]||n[l=gu(Ms(t))];!u&&r&&(u=n[l=gu(li(t))]),u&&zs(u,e,6,i);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,zs(d,e,6,i)}}function Xg(e,t,s=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!Ke(e)){const u=d=>{const c=Xg(d,t,!0);c&&(l=!0,Lt(o,c))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!l?(bt(e)&&n.set(e,null),null):(je(r)?r.forEach(u=>o[u]=null):Lt(o,r),bt(e)&&n.set(e,o),o)}function Il(e,t){return!e||!El(t)?!1:(t=t.slice(2).replace(/Once$/,""),pt(e,t[0].toLowerCase()+t.slice(1))||pt(e,li(t))||pt(e,t))}function fh(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:u,render:d,renderCache:c,props:h,data:p,setupState:m,ctx:g,inheritAttrs:C}=e,y=Zo(e);let A,x;try{if(s.shapeFlag&4){const _=i||n,$=_;A=Bs(d.call($,_,c,h,m,p,g)),x=l}else{const _=t;A=Bs(_.length>1?_(h,{attrs:l,slots:o,emit:u}):_(h,null)),x=t.props?l:jw(l)}}catch(_){$a.length=0,Ja(_,e,1),A=Ae(Qt)}let S=A;if(x&&C!==!1){const _=Object.keys(x),{shapeFlag:$}=S;_.length&&$&7&&(r&&_.some(od)&&(x=Bw(x,r)),S=ii(S,x,!1,!0))}return s.dirs&&(S=ii(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(s.dirs):s.dirs),s.transition&&Da(S,s.transition),A=S,Zo(y),A}function Qw(e,t=!0){let s;for(let n=0;n<e.length;n++){const i=e[n];if(Qr(i)){if(i.type!==Qt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const jw=e=>{let t;for(const s in e)(s==="class"||s==="style"||El(s))&&((t||(t={}))[s]=e[s]);return t},Bw=(e,t)=>{const s={};for(const n in e)(!od(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Uw(e,t,s){const{props:n,children:i,component:r}=e,{props:o,children:l,patchFlag:u}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?hh(n,o,d):!!o;if(u&8){const c=t.dynamicProps;for(let h=0;h<c.length;h++){const p=c[h];if(o[p]!==n[p]&&!Il(d,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?hh(n,o,d):!0:!!o;return!1}function hh(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==e[r]&&!Il(s,r))return!0}return!1}function Ad({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const ev=e=>e.__isSuspense;let tc=0;const Kw={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,r,o,l,u,d){if(e==null)Gw(t,s,n,i,r,o,l,u,d);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Ww(e,t,s,n,i,o,l,u,d)}},hydrate:zw,normalize:Yw},Hw=Kw;function Ra(e,t){const s=e.props&&e.props[t];Ke(s)&&s()}function Gw(e,t,s,n,i,r,o,l,u){const{p:d,o:{createElement:c}}=u,h=c("div"),p=e.suspense=tv(e,i,n,t,h,s,r,o,l,u);d(null,p.pendingBranch=e.ssContent,h,null,n,p,r,o),p.deps>0?(Ra(e,"onPending"),Ra(e,"onFallback"),d(null,e.ssFallback,t,s,n,null,r,o),_r(p,e.ssFallback)):p.resolve(!1,!0)}function Ww(e,t,s,n,i,r,o,l,{p:u,um:d,o:{createElement:c}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const p=t.ssContent,m=t.ssFallback,{activeBranch:g,pendingBranch:C,isInFallback:y,isHydrating:A}=h;if(C)h.pendingBranch=p,an(p,C)?(u(C,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0?h.resolve():y&&(A||(u(g,m,s,n,i,null,r,o,l),_r(h,m)))):(h.pendingId=tc++,A?(h.isHydrating=!1,h.activeBranch=C):d(C,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=c("div"),y?(u(null,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0?h.resolve():(u(g,m,s,n,i,null,r,o,l),_r(h,m))):g&&an(p,g)?(u(g,p,s,n,i,h,r,o,l),h.resolve(!0)):(u(null,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0&&h.resolve()));else if(g&&an(p,g))u(g,p,s,n,i,h,r,o,l),_r(h,p);else if(Ra(t,"onPending"),h.pendingBranch=p,p.shapeFlag&512?h.pendingId=p.component.suspenseId:h.pendingId=tc++,u(null,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0)h.resolve();else{const{timeout:x,pendingId:S}=h;x>0?setTimeout(()=>{h.pendingId===S&&h.fallback(m)},x):x===0&&h.fallback(m)}}function tv(e,t,s,n,i,r,o,l,u,d,c=!1){const{p:h,m:p,um:m,n:g,o:{parentNode:C,remove:y}}=d;let A;const x=Jw(e);x&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const S=e.props?Um(e.props.timeout):void 0,_=r,$={vnode:e,parent:t,parentComponent:s,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:tc++,timeout:typeof S=="number"?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(V=!1,j=!1){const{vnode:R,activeBranch:E,pendingBranch:T,pendingId:N,effects:w,parentComponent:z,container:se}=$;let ne=!1;$.isHydrating?$.isHydrating=!1:V||(ne=E&&T.transition&&T.transition.mode==="out-in",ne&&(E.transition.afterLeave=()=>{N===$.pendingId&&(p(T,se,r===_?g(E):r,0),Wu(w))}),E&&(C(E.el)===se&&(r=g(E)),m(E,z,$,!0)),ne||p(T,se,r,0)),_r($,T),$.pendingBranch=null,$.isInFallback=!1;let te=$.parent,W=!1;for(;te;){if(te.pendingBranch){te.effects.push(...w),W=!0;break}te=te.parent}!W&&!ne&&Wu(w),$.effects=[],x&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!j&&t.resolve()),Ra(R,"onResolve")},fallback(V){if(!$.pendingBranch)return;const{vnode:j,activeBranch:R,parentComponent:E,container:T,namespace:N}=$;Ra(j,"onFallback");const w=g(R),z=()=>{$.isInFallback&&(h(null,V,T,w,E,null,N,l,u),_r($,V))},se=V.transition&&V.transition.mode==="out-in";se&&(R.transition.afterLeave=z),$.isInFallback=!0,m(R,E,null,!0),se||z()},move(V,j,R){$.activeBranch&&p($.activeBranch,V,j,R),$.container=V},next(){return $.activeBranch&&g($.activeBranch)},registerDep(V,j,R){const E=!!$.pendingBranch;E&&$.deps++;const T=V.vnode.el;V.asyncDep.catch(N=>{Ja(N,V,0)}).then(N=>{if(V.isUnmounted||$.isUnmounted||$.pendingId!==V.suspenseId)return;V.asyncResolved=!0;const{vnode:w}=V;nc(V,N),T&&(w.el=T);const z=!T&&V.subTree.el;j(V,w,C(T||V.subTree.el),T?null:g(V.subTree),$,o,R),z&&y(z),Ad(V,w.el),E&&--$.deps===0&&$.resolve()})},unmount(V,j){$.isUnmounted=!0,$.activeBranch&&m($.activeBranch,s,V,j),$.pendingBranch&&m($.pendingBranch,s,V,j)}};return $}function zw(e,t,s,n,i,r,o,l,u){const d=t.suspense=tv(t,n,s,e.parentNode,document.createElement("div"),null,i,r,o,l,!0),c=u(e,d.pendingBranch=t.ssContent,s,d,r,o);return d.deps===0&&d.resolve(!1,!0),c}function Yw(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=ph(n?s.default:s),e.ssFallback=n?ph(s.fallback):Ae(Qt)}function ph(e){let t;if(Ke(e)){const s=Vr&&e._c;s&&(e._d=!1,k()),e=e(),s&&(e._d=!0,t=hs,sv())}return je(e)&&(e=Qw(e)),e=Bs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Zw(e,t){t&&t.pendingBranch?je(e)?t.effects.push(...e):t.effects.push(e):Wu(e)}function _r(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,Ad(n,i))}function Jw(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const $e=Symbol.for("v-fgt"),Ml=Symbol.for("v-txt"),Qt=Symbol.for("v-cmt"),qo=Symbol.for("v-stc"),$a=[];let hs=null;function k(e=!1){$a.push(hs=e?null:[])}function sv(){$a.pop(),hs=$a[$a.length-1]||null}let Vr=1;function mh(e,t=!1){Vr+=e,e<0&&hs&&t&&(hs.hasOnce=!0)}function nv(e){return e.dynamicChildren=Vr>0?hs||mr:null,sv(),Vr>0&&hs&&hs.push(e),e}function I(e,t,s,n,i,r){return nv(a(e,t,s,n,i,r,!0))}function gt(e,t,s,n,i){return nv(Ae(e,t,s,n,i,!0))}function Qr(e){return e?e.__v_isVNode===!0:!1}function an(e,t){return e.type===t.type&&e.key===t.key}const iv=({key:e})=>e??null,Lo=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?St(e)||vt(e)||Ke(e)?{i:Pt,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,i=null,r=e===$e?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&iv(t),ref:t&&Lo(t),scopeId:wg,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:Pt};return l?(Sd(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=St(s)?8:16),Vr>0&&!o&&hs&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&hs.push(u),u}const Ae=Xw;function Xw(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===Ig)&&(e=Qt),Qr(e)){const l=ii(e,t,!0);return s&&Sd(l,s),Vr>0&&!r&&hs&&(l.shapeFlag&6?hs[hs.indexOf(e)]=l:hs.push(l)),l.patchFlag=-2,l}if(cC(e)&&(e=e.__vccOpts),t){t=eC(t);let{class:l,style:u}=t;l&&!St(l)&&(t.class=De(l)),bt(u)&&(gd(u)&&!je(u)&&(u=Lt({},u)),t.style=cd(u))}const o=St(e)?1:ev(e)?128:Ag(e)?64:bt(e)?4:Ke(e)?2:0;return a(e,t,s,n,i,o,r,!0)}function eC(e){return e?gd(e)||Ug(e)?Lt({},e):e:null}function ii(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:u}=e,d=t?tC(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&iv(d),ref:t&&t.ref?s&&r?je(r)?r.concat(Lo(t)):[r,Lo(t)]:Lo(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ii(e.ssContent),ssFallback:e.ssFallback&&ii(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&Da(c,u.clone(c)),c}function X(e=" ",t=0){return Ae(Ml,null,e,t)}function xn(e,t){const s=Ae(qo,null,e);return s.staticCount=t,s}function me(e="",t=!1){return t?(k(),gt(Qt,null,e)):Ae(Qt,null,e)}function Bs(e){return e==null||typeof e=="boolean"?Ae(Qt):je(e)?Ae($e,null,e.slice()):Qr(e)?Vn(e):Ae(Ml,null,String(e))}function Vn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ii(e)}function Sd(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(je(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Sd(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Ug(t)?t._ctx=Pt:i===3&&Pt&&(Pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(t)?(t={default:t,_ctx:Pt},s=32):(t=String(t),n&64?(s=16,t=[X(t)]):s=8);e.children=t,e.shapeFlag|=s}function tC(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=De([t.class,n.class]));else if(i==="style")t.style=cd([t.style,n.style]);else if(El(i)){const r=t[i],o=n[i];o&&r!==o&&!(je(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function Xs(e,t,s,n=null){zs(e,t,7,[s,n])}const sC=Vg();let nC=0;function iC(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||sC,r={uid:nC++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Wm(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hg(n,i),emitsOptions:Xg(n,i),emit:null,emitted:null,propsDefaults:Et,inheritAttrs:n.inheritAttrs,ctx:Et,data:Et,props:Et,attrs:Et,slots:Et,refs:Et,setupState:Et,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=t?t.root:r,r.emit=Vw.bind(null,r),e.ce&&e.ce(r),r}let qt=null;const eo=()=>qt||Pt;let el,sc;{const e=Sl(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};el=t("__VUE_INSTANCE_SETTERS__",s=>qt=s),sc=t("__VUE_SSR_SETTERS__",s=>Ia=s)}const to=e=>{const t=qt;return el(e),e.scope.on(),()=>{e.scope.off(),el(t)}},gh=()=>{qt&&qt.scope.off(),el(null)};function rv(e){return e.vnode.shapeFlag&4}let Ia=!1;function rC(e,t=!1,s=!1){t&&sc(t);const{props:n,children:i}=e.vnode,r=rv(e);$w(e,n,r,t),Nw(e,i,s);const o=r?aC(e,t):void 0;return t&&sc(!1),o}function aC(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bw);const{setup:n}=s;if(n){ui();const i=e.setupContext=n.length>1?lC(e):null,r=to(e),o=Za(n,e,0,[e.props,i]),l=Vm(o);if(ci(),r(),(l||e.sp)&&!br(e)&&Pg(e),l){if(o.then(gh,gh),t)return o.then(u=>{nc(e,u)}).catch(u=>{Ja(u,e,0)});e.asyncDep=o}else nc(e,o)}else av(e)}function nc(e,t,s){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bt(t)&&(e.setupState=gg(t)),av(e)}function av(e,t,s){const n=e.type;e.render||(e.render=n.render||ln);{const i=to(e);ui();try{yw(e)}finally{ci(),i()}}}const oC={get(e,t){return Gt(e,"get",""),e[t]}};function lC(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,oC),slots:e.slots,emit:e.emit,expose:t}}function ql(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gg(vd(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Sa)return Sa[s](e)},has(t,s){return s in t||s in Sa}})):e.proxy}function uC(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function cC(e){return Ke(e)&&"__vccOpts"in e}const v=(e,t)=>X0(e,t,Ia);function Wi(e,t,s){const n=arguments.length;return n===2?bt(t)&&!je(t)?Qr(t)?Ae(e,null,[t]):Ae(e,t):Ae(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Qr(s)&&(s=[s]),Ae(e,t,s))}const dC="3.5.13";/**
|
|
19
|
+
* @vue/runtime-dom v3.5.13
|
|
20
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
|
+
* @license MIT
|
|
22
|
+
**/let ic;const vh=typeof window<"u"&&window.trustedTypes;if(vh)try{ic=vh.createPolicy("vue",{createHTML:e=>e})}catch{}const ov=ic?e=>ic.createHTML(e):e=>e,fC="http://www.w3.org/2000/svg",hC="http://www.w3.org/1998/Math/MathML",_n=typeof document<"u"?document:null,bh=_n&&_n.createElement("template"),pC={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?_n.createElementNS(fC,e):t==="mathml"?_n.createElementNS(hC,e):s?_n.createElement(e,{is:s}):_n.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>_n.createTextNode(e),createComment:e=>_n.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_n.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{bh.innerHTML=ov(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=bh.content;if(n==="svg"||n==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Rn="transition",ua="animation",Ma=Symbol("_vtc"),lv={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},mC=Lt({},Tg,lv),gC=e=>(e.displayName="Transition",e.props=mC,e),vC=gC((e,{slots:t})=>Wi(ow,bC(e),t)),wi=(e,t=[])=>{je(e)?e.forEach(s=>s(...t)):e&&e(...t)},yh=e=>e?je(e)?e.some(t=>t.length>1):e.length>1:!1;function bC(e){const t={};for(const w in e)w in lv||(t[w]=e[w]);if(e.css===!1)return t;const{name:s="v",type:n,duration:i,enterFromClass:r=`${s}-enter-from`,enterActiveClass:o=`${s}-enter-active`,enterToClass:l=`${s}-enter-to`,appearFromClass:u=r,appearActiveClass:d=o,appearToClass:c=l,leaveFromClass:h=`${s}-leave-from`,leaveActiveClass:p=`${s}-leave-active`,leaveToClass:m=`${s}-leave-to`}=e,g=yC(i),C=g&&g[0],y=g&&g[1],{onBeforeEnter:A,onEnter:x,onEnterCancelled:S,onLeave:_,onLeaveCancelled:$,onBeforeAppear:V=A,onAppear:j=x,onAppearCancelled:R=S}=t,E=(w,z,se,ne)=>{w._enterCancelled=ne,Ci(w,z?c:l),Ci(w,z?d:o),se&&se()},T=(w,z)=>{w._isLeaving=!1,Ci(w,h),Ci(w,m),Ci(w,p),z&&z()},N=w=>(z,se)=>{const ne=w?j:x,te=()=>E(z,w,se);wi(ne,[z,te]),_h(()=>{Ci(z,w?u:r),mn(z,w?c:l),yh(ne)||Eh(z,n,C,te)})};return Lt(t,{onBeforeEnter(w){wi(A,[w]),mn(w,r),mn(w,o)},onBeforeAppear(w){wi(V,[w]),mn(w,u),mn(w,d)},onEnter:N(!1),onAppear:N(!0),onLeave(w,z){w._isLeaving=!0;const se=()=>T(w,z);mn(w,h),w._enterCancelled?(mn(w,p),Ah()):(Ah(),mn(w,p)),_h(()=>{w._isLeaving&&(Ci(w,h),mn(w,m),yh(_)||Eh(w,n,y,se))}),wi(_,[w,se])},onEnterCancelled(w){E(w,!1,void 0,!0),wi(S,[w])},onAppearCancelled(w){E(w,!0,void 0,!0),wi(R,[w])},onLeaveCancelled(w){T(w),wi($,[w])}})}function yC(e){if(e==null)return null;if(bt(e))return[Au(e.enter),Au(e.leave)];{const t=Au(e);return[t,t]}}function Au(e){return Um(e)}function mn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Ma]||(e[Ma]=new Set)).add(t)}function Ci(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Ma];s&&(s.delete(t),s.size||(e[Ma]=void 0))}function _h(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let _C=0;function Eh(e,t,s,n){const i=e._endId=++_C,r=()=>{i===e._endId&&n()};if(s!=null)return setTimeout(r,s);const{type:o,timeout:l,propCount:u}=EC(e,t);if(!o)return n();const d=o+"end";let c=0;const h=()=>{e.removeEventListener(d,p),r()},p=m=>{m.target===e&&++c>=u&&h()};setTimeout(()=>{c<u&&h()},l+1),e.addEventListener(d,p)}function EC(e,t){const s=window.getComputedStyle(e),n=g=>(s[g]||"").split(", "),i=n(`${Rn}Delay`),r=n(`${Rn}Duration`),o=wh(i,r),l=n(`${ua}Delay`),u=n(`${ua}Duration`),d=wh(l,u);let c=null,h=0,p=0;t===Rn?o>0&&(c=Rn,h=o,p=r.length):t===ua?d>0&&(c=ua,h=d,p=u.length):(h=Math.max(o,d),c=h>0?o>d?Rn:ua:null,p=c?c===Rn?r.length:u.length:0);const m=c===Rn&&/\b(transform|all)(,|$)/.test(n(`${Rn}Property`).toString());return{type:c,timeout:h,propCount:p,hasTransform:m}}function wh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>Ch(s)+Ch(e[n])))}function Ch(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ah(){return document.body.offsetHeight}function wC(e,t,s){const n=e[Ma];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Sh=Symbol("_vod"),CC=Symbol("_vsh"),AC=Symbol(""),SC=/(^|;)\s*display\s*:/;function $C(e,t,s){const n=e.style,i=St(s);let r=!1;if(s&&!i){if(t)if(St(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Fo(n,l,"")}else for(const o in t)s[o]==null&&Fo(n,o,"");for(const o in s)o==="display"&&(r=!0),Fo(n,o,s[o])}else if(i){if(t!==s){const o=n[AC];o&&(s+=";"+o),n.cssText=s,r=SC.test(s)}}else t&&e.removeAttribute("style");Sh in e&&(e[Sh]=r?n.display:"",e[CC]&&(n.display="none"))}const $h=/\s*!important$/;function Fo(e,t,s){if(je(s))s.forEach(n=>Fo(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=TC(e,t);$h.test(s)?e.setProperty(li(n),s.replace($h,""),"important"):e[n]=s}}const Th=["Webkit","Moz","ms"],Su={};function TC(e,t){const s=Su[t];if(s)return s;let n=Ms(t);if(n!=="filter"&&n in e)return Su[t]=n;n=Al(n);for(let i=0;i<Th.length;i++){const r=Th[i]+n;if(r in e)return Su[t]=r}return t}const xh="http://www.w3.org/1999/xlink";function Oh(e,t,s,n,i,r=$0(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(xh,t.slice(6,t.length)):e.setAttributeNS(xh,t,s):s==null||r&&!Km(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ws(s)?String(s):s)}function Nh(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ov(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(l!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Km(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(i||t)}function xi(e,t,s,n){e.addEventListener(t,s,n)}function xC(e,t,s,n){e.removeEventListener(t,s,n)}const kh=Symbol("_vei");function OC(e,t,s,n,i=null){const r=e[kh]||(e[kh]={}),o=r[t];if(n&&o)o.value=n;else{const[l,u]=NC(t);if(n){const d=r[t]=DC(n,i);xi(e,l,d,u)}else o&&(xC(e,l,o,u),r[t]=void 0)}}const Ph=/(?:Once|Passive|Capture)$/;function NC(e){let t;if(Ph.test(e)){t={};let n;for(;n=e.match(Ph);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):li(e.slice(2)),t]}let $u=0;const kC=Promise.resolve(),PC=()=>$u||(kC.then(()=>$u=0),$u=Date.now());function DC(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;zs(RC(n,s.value),t,5,[n])};return s.value=e,s.attached=PC(),s}function RC(e,t){if(je(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Dh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,IC=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?wC(e,n,o):t==="style"?$C(e,s,n):El(t)?od(t)||OC(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):MC(e,t,n,o))?(Nh(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Oh(e,t,n,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!St(n))?Nh(e,Ms(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Oh(e,t,n,o))};function MC(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dh(t)&&Ke(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Dh(t)&&St(s)?!1:t in e}const tl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return je(t)?s=>Io(t,s):t};function qC(e){e.target.composing=!0}function Rh(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Er=Symbol("_assign"),Sn={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Er]=tl(i);const r=n||i.props&&i.props.type==="number";xi(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;s&&(l=l.trim()),r&&(l=Go(l)),e[Er](l)}),s&&xi(e,"change",()=>{e.value=e.value.trim()}),t||(xi(e,"compositionstart",qC),xi(e,"compositionend",Rh),xi(e,"change",Rh))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},o){if(e[Er]=tl(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Go(e.value):e.value,u=t??"";l!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===u)||(e.value=u))}},uv={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=wl(t);xi(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>s?Go(sl(o)):sl(o));e[Er](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,Ht(()=>{e._assigning=!1})}),e[Er]=tl(n)},mounted(e,{value:t}){Ih(e,t)},beforeUpdate(e,t,s){e[Er]=tl(s)},updated(e,{value:t}){e._assigning||Ih(e,t)}};function Ih(e,t){const s=e.multiple,n=je(t);if(!(s&&!n&&!wl(t))){for(let i=0,r=e.options.length;i<r;i++){const o=e.options[i],l=sl(o);if(s)if(n){const u=typeof l;u==="string"||u==="number"?o.selected=t.some(d=>String(d)===String(l)):o.selected=x0(t,l)>-1}else o.selected=t.has(l);else if($l(sl(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function sl(e){return"_value"in e?e._value:e.value}const LC=["ctrl","shift","alt","meta"],FC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>LC.some(s=>e[`${s}Key`]&&!t.includes(s))},xt=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(i,...r)=>{for(let o=0;o<t.length;o++){const l=FC[t[o]];if(l&&l(i,t))return}return e(i,...r)})},VC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ps=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=i=>{if(!("key"in i))return;const r=li(i.key);if(t.some(o=>o===r||VC[o]===r))return e(i)})},QC=Lt({patchProp:IC},pC);let Mh;function jC(){return Mh||(Mh=Pw(QC))}const BC=(...e)=>{const t=jC().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=KC(n);if(!i)return;const r=t._component;!Ke(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,UC(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function UC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function KC(e){return St(e)?document.querySelector(e):e}/*!
|
|
23
|
+
* pinia v3.0.1
|
|
24
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/let cv;const Ll=e=>cv=e,dv=Symbol();function rc(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ta;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ta||(Ta={}));function HC(){const e=zm(!0),t=e.run(()=>we({}));let s=[],n=[];const i=vd({install(r){Ll(i),i._a=r,r.provide(dv,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:e,_s:new Map,state:t});return i}const fv=()=>{};function qh(e,t,s,n=fv){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),n())};return!s&&Ym()&&dd(i),i}function cr(e,...t){e.slice().forEach(s=>{s(...t)})}const GC=e=>e(),Lh=Symbol(),Tu=Symbol();function ac(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,n)=>e.set(n,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],i=e[s];rc(i)&&rc(n)&&e.hasOwnProperty(s)&&!vt(n)&&!ti(n)?e[s]=ac(i,n):e[s]=n}return e}const WC=Symbol();function zC(e){return!rc(e)||!e.hasOwnProperty(WC)}const{assign:Mn}=Object;function YC(e){return!!(vt(e)&&e.effect)}function ZC(e,t,s,n){const{state:i,actions:r,getters:o}=t,l=s.state.value[e];let u;function d(){l||(s.state.value[e]=i?i():{});const c=bd(s.state.value[e]);return Mn(c,r,Object.keys(o||{}).reduce((h,p)=>(h[p]=vd(v(()=>{Ll(s);const m=s._s.get(e);return o[p].call(m,m)})),h),{}))}return u=hv(e,d,t,s,n,!0),u}function hv(e,t,s={},n,i,r){let o;const l=Mn({actions:{}},s),u={deep:!0};let d,c,h=[],p=[],m;const g=n.state.value[e];!r&&!g&&(n.state.value[e]={}),we({});let C;function y(R){let E;d=c=!1,typeof R=="function"?(R(n.state.value[e]),E={type:Ta.patchFunction,storeId:e,events:m}):(ac(n.state.value[e],R),E={type:Ta.patchObject,payload:R,storeId:e,events:m});const T=C=Symbol();Ht().then(()=>{C===T&&(d=!0)}),c=!0,cr(h,E,n.state.value[e])}const A=r?function(){const{state:E}=s,T=E?E():{};this.$patch(N=>{Mn(N,T)})}:fv;function x(){o.stop(),h=[],p=[],n._s.delete(e)}const S=(R,E="")=>{if(Lh in R)return R[Tu]=E,R;const T=function(){Ll(n);const N=Array.from(arguments),w=[],z=[];function se(W){w.push(W)}function ne(W){z.push(W)}cr(p,{args:N,name:T[Tu],store:$,after:se,onError:ne});let te;try{te=R.apply(this&&this.$id===e?this:$,N)}catch(W){throw cr(z,W),W}return te instanceof Promise?te.then(W=>(cr(w,W),W)).catch(W=>(cr(z,W),Promise.reject(W))):(cr(w,te),te)};return T[Lh]=!0,T[Tu]=E,T},_={_p:n,$id:e,$onAction:qh.bind(null,p),$patch:y,$reset:A,$subscribe(R,E={}){const T=qh(h,R,E.detached,()=>N()),N=o.run(()=>rt(()=>n.state.value[e],w=>{(E.flush==="sync"?c:d)&&R({storeId:e,type:Ta.direct,events:m},w)},Mn({},u,E)));return T},$dispose:x},$=qs(_);n._s.set(e,$);const j=(n._a&&n._a.runWithContext||GC)(()=>n._e.run(()=>(o=zm()).run(()=>t({action:S}))));for(const R in j){const E=j[R];if(vt(E)&&!YC(E)||ti(E))r||(g&&zC(E)&&(vt(E)?E.value=g[R]:ac(E,g[R])),n.state.value[e][R]=E);else if(typeof E=="function"){const T=S(E,R);j[R]=T,l.actions[R]=E}}return Mn($,j),Mn(lt($),j),Object.defineProperty($,"$state",{get:()=>n.state.value[e],set:R=>{y(E=>{Mn(E,R)})}}),n._p.forEach(R=>{Mn($,o.run(()=>R({store:$,app:n._a,pinia:n,options:l})))}),g&&r&&s.hydrate&&s.hydrate($.$state,g),d=!0,c=!0,$}/*! #__NO_SIDE_EFFECTS__ */function Fl(e,t,s){let n;const i=typeof t=="function";n=i?s:t;function r(o,l){const u=Qg();return o=o||(u?rs(dv,null):null),o&&Ll(o),o=cv,o._s.has(e)||(i?hv(e,t,n,o):ZC(e,n,o)),o._s.get(e)}return r.$id=e,r}var Yr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},zi=typeof window>"u"||"Deno"in globalThis;function Ds(){}function JC(e,t){return typeof e=="function"?e(t):e}function oc(e){return typeof e=="number"&&e>=0&&e!==1/0}function pv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function si(e,t){return typeof e=="function"?e(t):e}function Us(e,t){return typeof e=="function"?e(t):e}function Fh(e,t){const{type:s="all",exact:n,fetchStatus:i,predicate:r,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==$d(o,t.options))return!1}else if(!qa(t.queryKey,o))return!1}if(s!=="all"){const u=t.isActive();if(s==="active"&&!u||s==="inactive"&&u)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||r&&!r(t))}function Vh(e,t){const{exact:s,status:n,predicate:i,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(s){if(Yi(t.options.mutationKey)!==Yi(r))return!1}else if(!qa(t.options.mutationKey,r))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function $d(e,t){return((t==null?void 0:t.queryKeyHashFn)||Yi)(e)}function Yi(e){return JSON.stringify(e,(t,s)=>lc(s)?Object.keys(s).sort().reduce((n,i)=>(n[i]=s[i],n),{}):s)}function qa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>qa(e[s],t[s])):!1}function mv(e,t){if(e===t)return e;const s=Qh(e)&&Qh(t);if(s||lc(e)&&lc(t)){const n=s?e:Object.keys(e),i=n.length,r=s?t:Object.keys(t),o=r.length,l=s?[]:{},u=new Set(n);let d=0;for(let c=0;c<o;c++){const h=s?c:r[c];(!s&&u.has(h)||s)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,d++):(l[h]=mv(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&d++)}return i===o&&d===i?e:l}return t}function nl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Qh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lc(e){if(!jh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!jh(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jh(e){return Object.prototype.toString.call(e)==="[object Object]"}function XC(e){return new Promise(t=>{setTimeout(t,e)})}function uc(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?mv(e,t):t}function eA(e,t,s=0){const n=[...e,t];return s&&n.length>s?n.slice(1):n}function tA(e,t,s=0){const n=[t,...e];return s&&n.length>s?n.slice(0,-1):n}var Td=Symbol();function gv(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Td?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function cc(e,t){return typeof e=="function"?e(...t):!!e}var Pi,Bn,wr,am,sA=(am=class extends Yr{constructor(){super();Ve(this,Pi);Ve(this,Bn);Ve(this,wr);xe(this,wr,t=>{if(!zi&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){Q(this,Bn)||this.setEventListener(Q(this,wr))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,Bn))==null||t.call(this),xe(this,Bn,void 0))}setEventListener(t){var s;xe(this,wr,t),(s=Q(this,Bn))==null||s.call(this),xe(this,Bn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Q(this,Pi)!==t&&(xe(this,Pi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof Q(this,Pi)=="boolean"?Q(this,Pi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Pi=new WeakMap,Bn=new WeakMap,wr=new WeakMap,am),xd=new sA,Cr,Un,Ar,om,nA=(om=class extends Yr{constructor(){super();Ve(this,Cr,!0);Ve(this,Un);Ve(this,Ar);xe(this,Ar,t=>{if(!zi&&window.addEventListener){const s=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",n)}}})}onSubscribe(){Q(this,Un)||this.setEventListener(Q(this,Ar))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,Un))==null||t.call(this),xe(this,Un,void 0))}setEventListener(t){var s;xe(this,Ar,t),(s=Q(this,Un))==null||s.call(this),xe(this,Un,t(this.setOnline.bind(this)))}setOnline(t){Q(this,Cr)!==t&&(xe(this,Cr,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Q(this,Cr)}},Cr=new WeakMap,Un=new WeakMap,Ar=new WeakMap,om),il=new nA;function dc(){let e,t;const s=new Promise((i,r)=>{e=i,t=r});s.status="pending",s.catch(()=>{});function n(i){Object.assign(s,i),delete s.resolve,delete s.reject}return s.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},s.reject=i=>{n({status:"rejected",reason:i}),t(i)},s}function iA(e){return Math.min(1e3*2**e,3e4)}function vv(e){return(e??"online")==="online"?il.isOnline():!0}var bv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function xu(e){return e instanceof bv}function yv(e){let t=!1,s=0,n=!1,i;const r=dc(),o=C=>{var y;n||(p(new bv(C)),(y=e.abort)==null||y.call(e))},l=()=>{t=!0},u=()=>{t=!1},d=()=>xd.isFocused()&&(e.networkMode==="always"||il.isOnline())&&e.canRun(),c=()=>vv(e.networkMode)&&e.canRun(),h=C=>{var y;n||(n=!0,(y=e.onSuccess)==null||y.call(e,C),i==null||i(),r.resolve(C))},p=C=>{var y;n||(n=!0,(y=e.onError)==null||y.call(e,C),i==null||i(),r.reject(C))},m=()=>new Promise(C=>{var y;i=A=>{(n||d())&&C(A)},(y=e.onPause)==null||y.call(e)}).then(()=>{var C;i=void 0,n||(C=e.onContinue)==null||C.call(e)}),g=()=>{if(n)return;let C;const y=s===0?e.initialPromise:void 0;try{C=y??e.fn()}catch(A){C=Promise.reject(A)}Promise.resolve(C).then(h).catch(A=>{var V;if(n)return;const x=e.retry??(zi?0:3),S=e.retryDelay??iA,_=typeof S=="function"?S(s,A):S,$=x===!0||typeof x=="number"&&s<x||typeof x=="function"&&x(s,A);if(t||!$){p(A);return}s++,(V=e.onFail)==null||V.call(e,s,A),XC(_).then(()=>d()?void 0:m()).then(()=>{t?p(A):g()})})};return{promise:r,cancel:o,continue:()=>(i==null||i(),r),cancelRetry:l,continueRetry:u,canStart:c,start:()=>(c()?g():m().then(g),r)}}var rA=e=>setTimeout(e,0);function aA(){let e=[],t=0,s=l=>{l()},n=l=>{l()},i=rA;const r=l=>{t?e.push(l):i(()=>{s(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{n(()=>{l.forEach(u=>{s(u)})})})};return{batch:l=>{let u;t++;try{u=l()}finally{t--,t||o()}return u},batchCalls:l=>(...u)=>{r(()=>{l(...u)})},schedule:r,setNotifyFunction:l=>{s=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{i=l}}}var Vt=aA(),Di,lm,_v=(lm=class{constructor(){Ve(this,Di)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oc(this.gcTime)&&xe(this,Di,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zi?1/0:300*1e3))}clearGcTimeout(){Q(this,Di)&&(clearTimeout(Q(this,Di)),xe(this,Di,void 0))}},Di=new WeakMap,lm),Sr,$r,Ps,Ri,Kt,Ua,Ii,Qs,vn,um,oA=(um=class extends _v{constructor(t){super();Ve(this,Qs);Ve(this,Sr);Ve(this,$r);Ve(this,Ps);Ve(this,Ri);Ve(this,Kt);Ve(this,Ua);Ve(this,Ii);xe(this,Ii,!1),xe(this,Ua,t.defaultOptions),this.setOptions(t.options),this.observers=[],xe(this,Ri,t.client),xe(this,Ps,Q(this,Ri).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,xe(this,Sr,lA(this.options)),this.state=t.state??Q(this,Sr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Q(this,Kt))==null?void 0:t.promise}setOptions(t){this.options={...Q(this,Ua),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Q(this,Ps).remove(this)}setData(t,s){const n=uc(this.state.data,t,this.options);return Ze(this,Qs,vn).call(this,{data:n,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),n}setState(t,s){Ze(this,Qs,vn).call(this,{type:"setState",state:t,setStateOptions:s})}cancel(t){var n,i;const s=(n=Q(this,Kt))==null?void 0:n.promise;return(i=Q(this,Kt))==null||i.cancel(t),s?s.then(Ds).catch(Ds):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Q(this,Sr))}isActive(){return this.observers.some(t=>Us(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Td||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>si(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!pv(this.state.dataUpdatedAt,t)}onFocus(){var s;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(s=Q(this,Kt))==null||s.continue()}onOnline(){var s;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(s=Q(this,Kt))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Q(this,Ps).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(s=>s!==t),this.observers.length||(Q(this,Kt)&&(Q(this,Ii)?Q(this,Kt).cancel({revert:!0}):Q(this,Kt).cancelRetry()),this.scheduleGc()),Q(this,Ps).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ze(this,Qs,vn).call(this,{type:"invalidate"})}fetch(t,s){var d,c,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(Q(this,Kt))return Q(this,Kt).continueRetry(),Q(this,Kt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const n=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(xe(this,Ii,!0),n.signal)})},r=()=>{const p=gv(this.options,s),g=(()=>{const C={client:Q(this,Ri),queryKey:this.queryKey,meta:this.meta};return i(C),C})();return xe(this,Ii,!1),this.options.persister?this.options.persister(p,g,this):p(g)},l=(()=>{const p={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:Q(this,Ri),state:this.state,fetchFn:r};return i(p),p})();(d=this.options.behavior)==null||d.onFetch(l,this),xe(this,$r,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Ze(this,Qs,vn).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const u=p=>{var m,g,C,y;xu(p)&&p.silent||Ze(this,Qs,vn).call(this,{type:"error",error:p}),xu(p)||((g=(m=Q(this,Ps).config).onError)==null||g.call(m,p,this),(y=(C=Q(this,Ps).config).onSettled)==null||y.call(C,this.state.data,p,this)),this.scheduleGc()};return xe(this,Kt,yv({initialPromise:s==null?void 0:s.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:p=>{var m,g,C,y;if(p===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(A){u(A);return}(g=(m=Q(this,Ps).config).onSuccess)==null||g.call(m,p,this),(y=(C=Q(this,Ps).config).onSettled)==null||y.call(C,p,this.state.error,this),this.scheduleGc()},onError:u,onFail:(p,m)=>{Ze(this,Qs,vn).call(this,{type:"failed",failureCount:p,error:m})},onPause:()=>{Ze(this,Qs,vn).call(this,{type:"pause"})},onContinue:()=>{Ze(this,Qs,vn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),Q(this,Kt).start()}},Sr=new WeakMap,$r=new WeakMap,Ps=new WeakMap,Ri=new WeakMap,Kt=new WeakMap,Ua=new WeakMap,Ii=new WeakMap,Qs=new WeakSet,vn=function(t){const s=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Ev(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return xu(i)&&i.revert&&Q(this,$r)?{...Q(this,$r),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=s(this.state),Vt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Q(this,Ps).notify({query:this,type:"updated",action:t})})},um);function Ev(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vv(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function lA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,n=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var sn,cm,wv=(cm=class extends Yr{constructor(s={}){super();Ve(this,sn);this.config=s,xe(this,sn,new Map)}build(s,n,i){const r=n.queryKey,o=n.queryHash??$d(r,n);let l=this.get(o);return l||(l=new oA({client:s,queryKey:r,queryHash:o,options:s.defaultQueryOptions(n),state:i,defaultOptions:s.getQueryDefaults(r)}),this.add(l)),l}add(s){Q(this,sn).has(s.queryHash)||(Q(this,sn).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const n=Q(this,sn).get(s.queryHash);n&&(s.destroy(),n===s&&Q(this,sn).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){Vt.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return Q(this,sn).get(s)}getAll(){return[...Q(this,sn).values()]}find(s){const n={exact:!0,...s};return this.getAll().find(i=>Fh(n,i))}findAll(s={}){const n=this.getAll();return Object.keys(s).length>0?n.filter(i=>Fh(s,i)):n}notify(s){Vt.batch(()=>{this.listeners.forEach(n=>{n(s)})})}onFocus(){Vt.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){Vt.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},sn=new WeakMap,cm),nn,Zt,Mi,rn,qn,dm,uA=(dm=class extends _v{constructor(t){super();Ve(this,rn);Ve(this,nn);Ve(this,Zt);Ve(this,Mi);this.mutationId=t.mutationId,xe(this,Zt,t.mutationCache),xe(this,nn,[]),this.state=t.state||Cv(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Q(this,nn).includes(t)||(Q(this,nn).push(t),this.clearGcTimeout(),Q(this,Zt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){xe(this,nn,Q(this,nn).filter(s=>s!==t)),this.scheduleGc(),Q(this,Zt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Q(this,nn).length||(this.state.status==="pending"?this.scheduleGc():Q(this,Zt).remove(this))}continue(){var t;return((t=Q(this,Mi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,o,l,u,d,c,h,p,m,g,C,y,A,x,S,_,$,V,j,R;const s=()=>{Ze(this,rn,qn).call(this,{type:"continue"})};xe(this,Mi,yv({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,T)=>{Ze(this,rn,qn).call(this,{type:"failed",failureCount:E,error:T})},onPause:()=>{Ze(this,rn,qn).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Q(this,Zt).canRun(this)}));const n=this.state.status==="pending",i=!Q(this,Mi).canStart();try{if(n)s();else{Ze(this,rn,qn).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(r=Q(this,Zt).config).onMutate)==null?void 0:o.call(r,t,this));const T=await((u=(l=this.options).onMutate)==null?void 0:u.call(l,t));T!==this.state.context&&Ze(this,rn,qn).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const E=await Q(this,Mi).start();return await((c=(d=Q(this,Zt).config).onSuccess)==null?void 0:c.call(d,E,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,E,t,this.state.context)),await((g=(m=Q(this,Zt).config).onSettled)==null?void 0:g.call(m,E,null,this.state.variables,this.state.context,this)),await((y=(C=this.options).onSettled)==null?void 0:y.call(C,E,null,t,this.state.context)),Ze(this,rn,qn).call(this,{type:"success",data:E}),E}catch(E){try{throw await((x=(A=Q(this,Zt).config).onError)==null?void 0:x.call(A,E,t,this.state.context,this)),await((_=(S=this.options).onError)==null?void 0:_.call(S,E,t,this.state.context)),await((V=($=Q(this,Zt).config).onSettled)==null?void 0:V.call($,void 0,E,this.state.variables,this.state.context,this)),await((R=(j=this.options).onSettled)==null?void 0:R.call(j,void 0,E,t,this.state.context)),E}finally{Ze(this,rn,qn).call(this,{type:"error",error:E})}}finally{Q(this,Zt).runNext(this)}}},nn=new WeakMap,Zt=new WeakMap,Mi=new WeakMap,rn=new WeakSet,qn=function(t){const s=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Vt.batch(()=>{Q(this,nn).forEach(n=>{n.onMutationUpdate(t)}),Q(this,Zt).notify({mutation:this,type:"updated",action:t})})},dm);function Cv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var En,js,Ka,fm,Av=(fm=class extends Yr{constructor(s={}){super();Ve(this,En);Ve(this,js);Ve(this,Ka);this.config=s,xe(this,En,new Set),xe(this,js,new Map),xe(this,Ka,0)}build(s,n,i){const r=new uA({mutationCache:this,mutationId:++Eo(this,Ka)._,options:s.defaultMutationOptions(n),state:i});return this.add(r),r}add(s){Q(this,En).add(s);const n=xo(s);if(typeof n=="string"){const i=Q(this,js).get(n);i?i.push(s):Q(this,js).set(n,[s])}this.notify({type:"added",mutation:s})}remove(s){if(Q(this,En).delete(s)){const n=xo(s);if(typeof n=="string"){const i=Q(this,js).get(n);if(i)if(i.length>1){const r=i.indexOf(s);r!==-1&&i.splice(r,1)}else i[0]===s&&Q(this,js).delete(n)}}this.notify({type:"removed",mutation:s})}canRun(s){const n=xo(s);if(typeof n=="string"){const i=Q(this,js).get(n),r=i==null?void 0:i.find(o=>o.state.status==="pending");return!r||r===s}else return!0}runNext(s){var i;const n=xo(s);if(typeof n=="string"){const r=(i=Q(this,js).get(n))==null?void 0:i.find(o=>o!==s&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Vt.batch(()=>{Q(this,En).forEach(s=>{this.notify({type:"removed",mutation:s})}),Q(this,En).clear(),Q(this,js).clear()})}getAll(){return Array.from(Q(this,En))}find(s){const n={exact:!0,...s};return this.getAll().find(i=>Vh(n,i))}findAll(s={}){return this.getAll().filter(n=>Vh(s,n))}notify(s){Vt.batch(()=>{this.listeners.forEach(n=>{n(s)})})}resumePausedMutations(){const s=this.getAll().filter(n=>n.state.isPaused);return Vt.batch(()=>Promise.all(s.map(n=>n.continue().catch(Ds))))}},En=new WeakMap,js=new WeakMap,Ka=new WeakMap,fm);function xo(e){var t;return(t=e.options.scope)==null?void 0:t.id}function rl(e){return{onFetch:(t,s)=>{var c,h,p,m,g;const n=t.options,i=(p=(h=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,r=((m=t.state.data)==null?void 0:m.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let l={pages:[],pageParams:[]},u=0;const d=async()=>{let C=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?C=!0:t.signal.addEventListener("abort",()=>{C=!0}),t.signal)})},A=gv(t.options,t.fetchOptions),x=async(S,_,$)=>{if(C)return Promise.reject();if(_==null&&S.pages.length)return Promise.resolve(S);const j=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:_,direction:$?"backward":"forward",meta:t.options.meta};return y(N),N})(),R=await A(j),{maxPages:E}=t.options,T=$?tA:eA;return{pages:T(S.pages,R,E),pageParams:T(S.pageParams,_,E)}};if(i&&r.length){const S=i==="backward",_=S?Sv:fc,$={pages:r,pageParams:o},V=_(n,$);l=await x($,V,S)}else{const S=e??r.length;do{const _=u===0?o[0]??n.initialPageParam:fc(n,l);if(u>0&&_==null)break;l=await x(l,_),u++}while(u<S)}return l};t.options.persister?t.fetchFn=()=>{var C,y;return(y=(C=t.options).persister)==null?void 0:y.call(C,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s)}:t.fetchFn=d}}}function fc(e,{pages:t,pageParams:s}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,s[n],s):void 0}function Sv(e,{pages:t,pageParams:s}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,s[0],s):void 0}function cA(e,t){return t?fc(e,t)!=null:!1}function dA(e,t){return!t||!e.getPreviousPageParam?!1:Sv(e,t)!=null}var $t,Kn,Hn,Tr,xr,Gn,Or,Nr,hm,fA=(hm=class{constructor(t={}){Ve(this,$t);Ve(this,Kn);Ve(this,Hn);Ve(this,Tr);Ve(this,xr);Ve(this,Gn);Ve(this,Or);Ve(this,Nr);xe(this,$t,t.queryCache||new wv),xe(this,Kn,t.mutationCache||new Av),xe(this,Hn,t.defaultOptions||{}),xe(this,Tr,new Map),xe(this,xr,new Map),xe(this,Gn,0)}mount(){Eo(this,Gn)._++,Q(this,Gn)===1&&(xe(this,Or,xd.subscribe(async t=>{t&&(await this.resumePausedMutations(),Q(this,$t).onFocus())})),xe(this,Nr,il.subscribe(async t=>{t&&(await this.resumePausedMutations(),Q(this,$t).onOnline())})))}unmount(){var t,s;Eo(this,Gn)._--,Q(this,Gn)===0&&((t=Q(this,Or))==null||t.call(this),xe(this,Or,void 0),(s=Q(this,Nr))==null||s.call(this),xe(this,Nr,void 0))}isFetching(t){return Q(this,$t).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return Q(this,Kn).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const s=this.defaultQueryOptions({queryKey:t});return(n=Q(this,$t).get(s.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const s=this.defaultQueryOptions(t),n=Q(this,$t).build(this,s),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(si(s.staleTime,n))&&this.prefetchQuery(s),Promise.resolve(i))}getQueriesData(t){return Q(this,$t).findAll(t).map(({queryKey:s,state:n})=>{const i=n.data;return[s,i]})}setQueryData(t,s,n){const i=this.defaultQueryOptions({queryKey:t}),r=Q(this,$t).get(i.queryHash),o=r==null?void 0:r.state.data,l=JC(s,o);if(l!==void 0)return Q(this,$t).build(this,i).setData(l,{...n,manual:!0})}setQueriesData(t,s,n){return Vt.batch(()=>Q(this,$t).findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,s,n)]))}getQueryState(t){var n;const s=this.defaultQueryOptions({queryKey:t});return(n=Q(this,$t).get(s.queryHash))==null?void 0:n.state}removeQueries(t){const s=Q(this,$t);Vt.batch(()=>{s.findAll(t).forEach(n=>{s.remove(n)})})}resetQueries(t,s){const n=Q(this,$t);return Vt.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},s)))}cancelQueries(t,s={}){const n={revert:!0,...s},i=Vt.batch(()=>Q(this,$t).findAll(t).map(r=>r.cancel(n)));return Promise.all(i).then(Ds).catch(Ds)}invalidateQueries(t,s={}){return Vt.batch(()=>(Q(this,$t).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},s)))}refetchQueries(t,s={}){const n={...s,cancelRefetch:s.cancelRefetch??!0},i=Vt.batch(()=>Q(this,$t).findAll(t).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let o=r.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ds)),r.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Ds)}fetchQuery(t){const s=this.defaultQueryOptions(t);s.retry===void 0&&(s.retry=!1);const n=Q(this,$t).build(this,s);return n.isStaleByTime(si(s.staleTime,n))?n.fetch(s):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Ds).catch(Ds)}fetchInfiniteQuery(t){return t.behavior=rl(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Ds).catch(Ds)}ensureInfiniteQueryData(t){return t.behavior=rl(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return il.isOnline()?Q(this,Kn).resumePausedMutations():Promise.resolve()}getQueryCache(){return Q(this,$t)}getMutationCache(){return Q(this,Kn)}getDefaultOptions(){return Q(this,Hn)}setDefaultOptions(t){xe(this,Hn,t)}setQueryDefaults(t,s){Q(this,Tr).set(Yi(t),{queryKey:t,defaultOptions:s})}getQueryDefaults(t){const s=[...Q(this,Tr).values()],n={};return s.forEach(i=>{qa(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,s){Q(this,xr).set(Yi(t),{mutationKey:t,defaultOptions:s})}getMutationDefaults(t){const s=[...Q(this,xr).values()],n={};return s.forEach(i=>{qa(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const s={...Q(this,Hn).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return s.queryHash||(s.queryHash=$d(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===Td&&(s.enabled=!1),s}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...Q(this,Hn).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){Q(this,$t).clear(),Q(this,Kn).clear()}},$t=new WeakMap,Kn=new WeakMap,Hn=new WeakMap,Tr=new WeakMap,xr=new WeakMap,Gn=new WeakMap,Or=new WeakMap,Nr=new WeakMap,hm),cs,it,Ha,Jt,qi,kr,Wn,zn,Ga,Pr,Dr,Li,Fi,Yn,Rr,mt,ga,hc,pc,mc,gc,vc,bc,yc,Tv,pm,$v=(pm=class extends Yr{constructor(t,s){super();Ve(this,mt);Ve(this,cs);Ve(this,it);Ve(this,Ha);Ve(this,Jt);Ve(this,qi);Ve(this,kr);Ve(this,Wn);Ve(this,zn);Ve(this,Ga);Ve(this,Pr);Ve(this,Dr);Ve(this,Li);Ve(this,Fi);Ve(this,Yn);Ve(this,Rr,new Set);this.options=s,xe(this,cs,t),xe(this,zn,null),xe(this,Wn,dc()),this.options.experimental_prefetchInRender||Q(this,Wn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Q(this,it).addObserver(this),Bh(Q(this,it),this.options)?Ze(this,mt,ga).call(this):this.updateResult(),Ze(this,mt,gc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _c(Q(this,it),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _c(Q(this,it),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ze(this,mt,vc).call(this),Ze(this,mt,bc).call(this),Q(this,it).removeObserver(this)}setOptions(t){const s=this.options,n=Q(this,it);if(this.options=Q(this,cs).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Us(this.options.enabled,Q(this,it))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ze(this,mt,yc).call(this),Q(this,it).setOptions(this.options),s._defaulted&&!nl(this.options,s)&&Q(this,cs).getQueryCache().notify({type:"observerOptionsUpdated",query:Q(this,it),observer:this});const i=this.hasListeners();i&&Uh(Q(this,it),n,this.options,s)&&Ze(this,mt,ga).call(this),this.updateResult(),i&&(Q(this,it)!==n||Us(this.options.enabled,Q(this,it))!==Us(s.enabled,Q(this,it))||si(this.options.staleTime,Q(this,it))!==si(s.staleTime,Q(this,it)))&&Ze(this,mt,hc).call(this);const r=Ze(this,mt,pc).call(this);i&&(Q(this,it)!==n||Us(this.options.enabled,Q(this,it))!==Us(s.enabled,Q(this,it))||r!==Q(this,Yn))&&Ze(this,mt,mc).call(this,r)}getOptimisticResult(t){const s=Q(this,cs).getQueryCache().build(Q(this,cs),t),n=this.createResult(s,t);return pA(this,n)&&(xe(this,Jt,n),xe(this,kr,this.options),xe(this,qi,Q(this,it).state)),n}getCurrentResult(){return Q(this,Jt)}trackResult(t,s){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),s==null||s(i),Reflect.get(n,i))})}trackProp(t){Q(this,Rr).add(t)}getCurrentQuery(){return Q(this,it)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=Q(this,cs).defaultQueryOptions(t),n=Q(this,cs).getQueryCache().build(Q(this,cs),s);return n.fetch().then(()=>this.createResult(n,s))}fetch(t){return Ze(this,mt,ga).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Q(this,Jt)))}createResult(t,s){var E;const n=Q(this,it),i=this.options,r=Q(this,Jt),o=Q(this,qi),l=Q(this,kr),d=t!==n?t.state:Q(this,Ha),{state:c}=t;let h={...c},p=!1,m;if(s._optimisticResults){const T=this.hasListeners(),N=!T&&Bh(t,s),w=T&&Uh(t,n,s,i);(N||w)&&(h={...h,...Ev(c.data,t.options)}),s._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:g,errorUpdatedAt:C,status:y}=h;m=h.data;let A=!1;if(s.placeholderData!==void 0&&m===void 0&&y==="pending"){let T;r!=null&&r.isPlaceholderData&&s.placeholderData===(l==null?void 0:l.placeholderData)?(T=r.data,A=!0):T=typeof s.placeholderData=="function"?s.placeholderData((E=Q(this,Dr))==null?void 0:E.state.data,Q(this,Dr)):s.placeholderData,T!==void 0&&(y="success",m=uc(r==null?void 0:r.data,T,s),p=!0)}if(s.select&&m!==void 0&&!A)if(r&&m===(o==null?void 0:o.data)&&s.select===Q(this,Ga))m=Q(this,Pr);else try{xe(this,Ga,s.select),m=s.select(m),m=uc(r==null?void 0:r.data,m,s),xe(this,Pr,m),xe(this,zn,null)}catch(T){xe(this,zn,T)}Q(this,zn)&&(g=Q(this,zn),m=Q(this,Pr),C=Date.now(),y="error");const x=h.fetchStatus==="fetching",S=y==="pending",_=y==="error",$=S&&x,V=m!==void 0,R={status:y,fetchStatus:h.fetchStatus,isPending:S,isSuccess:y==="success",isError:_,isInitialLoading:$,isLoading:$,data:m,dataUpdatedAt:h.dataUpdatedAt,error:g,errorUpdatedAt:C,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:_&&!V,isPaused:h.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:_&&V,isStale:Od(t,s),refetch:this.refetch,promise:Q(this,Wn)};if(this.options.experimental_prefetchInRender){const T=z=>{R.status==="error"?z.reject(R.error):R.data!==void 0&&z.resolve(R.data)},N=()=>{const z=xe(this,Wn,R.promise=dc());T(z)},w=Q(this,Wn);switch(w.status){case"pending":t.queryHash===n.queryHash&&T(w);break;case"fulfilled":(R.status==="error"||R.data!==w.value)&&N();break;case"rejected":(R.status!=="error"||R.error!==w.reason)&&N();break}}return R}updateResult(){const t=Q(this,Jt),s=this.createResult(Q(this,it),this.options);if(xe(this,qi,Q(this,it).state),xe(this,kr,this.options),Q(this,qi).data!==void 0&&xe(this,Dr,Q(this,it)),nl(s,t))return;xe(this,Jt,s);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,r=typeof i=="function"?i():i;if(r==="all"||!r&&!Q(this,Rr).size)return!0;const o=new Set(r??Q(this,Rr));return this.options.throwOnError&&o.add("error"),Object.keys(Q(this,Jt)).some(l=>{const u=l;return Q(this,Jt)[u]!==t[u]&&o.has(u)})};Ze(this,mt,Tv).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ze(this,mt,gc).call(this)}},cs=new WeakMap,it=new WeakMap,Ha=new WeakMap,Jt=new WeakMap,qi=new WeakMap,kr=new WeakMap,Wn=new WeakMap,zn=new WeakMap,Ga=new WeakMap,Pr=new WeakMap,Dr=new WeakMap,Li=new WeakMap,Fi=new WeakMap,Yn=new WeakMap,Rr=new WeakMap,mt=new WeakSet,ga=function(t){Ze(this,mt,yc).call(this);let s=Q(this,it).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(Ds)),s},hc=function(){Ze(this,mt,vc).call(this);const t=si(this.options.staleTime,Q(this,it));if(zi||Q(this,Jt).isStale||!oc(t))return;const n=pv(Q(this,Jt).dataUpdatedAt,t)+1;xe(this,Li,setTimeout(()=>{Q(this,Jt).isStale||this.updateResult()},n))},pc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Q(this,it)):this.options.refetchInterval)??!1},mc=function(t){Ze(this,mt,bc).call(this),xe(this,Yn,t),!(zi||Us(this.options.enabled,Q(this,it))===!1||!oc(Q(this,Yn))||Q(this,Yn)===0)&&xe(this,Fi,setInterval(()=>{(this.options.refetchIntervalInBackground||xd.isFocused())&&Ze(this,mt,ga).call(this)},Q(this,Yn)))},gc=function(){Ze(this,mt,hc).call(this),Ze(this,mt,mc).call(this,Ze(this,mt,pc).call(this))},vc=function(){Q(this,Li)&&(clearTimeout(Q(this,Li)),xe(this,Li,void 0))},bc=function(){Q(this,Fi)&&(clearInterval(Q(this,Fi)),xe(this,Fi,void 0))},yc=function(){const t=Q(this,cs).getQueryCache().build(Q(this,cs),this.options);if(t===Q(this,it))return;const s=Q(this,it);xe(this,it,t),xe(this,Ha,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},Tv=function(t){Vt.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(Q(this,Jt))}),Q(this,cs).getQueryCache().notify({query:Q(this,it),type:"observerResultsUpdated"})})},pm);function hA(e,t){return Us(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Bh(e,t){return hA(e,t)||e.state.data!==void 0&&_c(e,t,t.refetchOnMount)}function _c(e,t,s){if(Us(t.enabled,e)!==!1&&si(t.staleTime,e)!=="static"){const n=typeof s=="function"?s(e):s;return n==="always"||n!==!1&&Od(e,t)}return!1}function Uh(e,t,s,n){return(e!==t||Us(n.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&Od(e,s)}function Od(e,t){return Us(t.enabled,e)!==!1&&e.isStaleByTime(si(t.staleTime,e))}function pA(e,t){return!nl(e.getCurrentResult(),t)}var mA=class extends $v{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:rl()})}getOptimisticResult(e){return e.behavior=rl(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var g,C;const{state:s}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:r,isError:o,isRefetchError:l}=n,u=(C=(g=s.fetchMeta)==null?void 0:g.fetchMore)==null?void 0:C.direction,d=o&&u==="forward",c=i&&u==="forward",h=o&&u==="backward",p=i&&u==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:cA(t,s.data),hasPreviousPage:dA(t,s.data),isFetchNextPageError:d,isFetchingNextPage:c,isFetchPreviousPageError:h,isFetchingPreviousPage:p,isRefetchError:l&&!d&&!h,isRefetching:r&&!c&&!p}}},Zn,Jn,ds,wn,$n,Vo,Ec,mm,gA=(mm=class extends Yr{constructor(s,n){super();Ve(this,$n);Ve(this,Zn);Ve(this,Jn);Ve(this,ds);Ve(this,wn);xe(this,Zn,s),this.setOptions(n),this.bindMethods(),Ze(this,$n,Vo).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var i;const n=this.options;this.options=Q(this,Zn).defaultMutationOptions(s),nl(this.options,n)||Q(this,Zn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Q(this,ds),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Yi(n.mutationKey)!==Yi(this.options.mutationKey)?this.reset():((i=Q(this,ds))==null?void 0:i.state.status)==="pending"&&Q(this,ds).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=Q(this,ds))==null||s.removeObserver(this)}onMutationUpdate(s){Ze(this,$n,Vo).call(this),Ze(this,$n,Ec).call(this,s)}getCurrentResult(){return Q(this,Jn)}reset(){var s;(s=Q(this,ds))==null||s.removeObserver(this),xe(this,ds,void 0),Ze(this,$n,Vo).call(this),Ze(this,$n,Ec).call(this)}mutate(s,n){var i;return xe(this,wn,n),(i=Q(this,ds))==null||i.removeObserver(this),xe(this,ds,Q(this,Zn).getMutationCache().build(Q(this,Zn),this.options)),Q(this,ds).addObserver(this),Q(this,ds).execute(s)}},Zn=new WeakMap,Jn=new WeakMap,ds=new WeakMap,wn=new WeakMap,$n=new WeakSet,Vo=function(){var n;const s=((n=Q(this,ds))==null?void 0:n.state)??Cv();xe(this,Jn,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},Ec=function(s){Vt.batch(()=>{var n,i,r,o,l,u,d,c;if(Q(this,wn)&&this.hasListeners()){const h=Q(this,Jn).variables,p=Q(this,Jn).context;(s==null?void 0:s.type)==="success"?((i=(n=Q(this,wn)).onSuccess)==null||i.call(n,s.data,h,p),(o=(r=Q(this,wn)).onSettled)==null||o.call(r,s.data,null,h,p)):(s==null?void 0:s.type)==="error"&&((u=(l=Q(this,wn)).onError)==null||u.call(l,s.error,h,p),(c=(d=Q(this,wn)).onSettled)==null||c.call(d,void 0,s.error,h,p))}this.listeners.forEach(h=>{h(Q(this,Jn))})})},mm),vA="VUE_QUERY_CLIENT";function xv(e){const t=e?`:${e}`:"";return`${vA}${t}`}function wc(e,t){Object.keys(e).forEach(s=>{e[s]=t[s]})}function Cc(e,t,s="",n=0){if(t){const i=t(e,s,n);if(i===void 0&&vt(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((i,r)=>Cc(i,t,String(r),n+1));if(typeof e=="object"&&yA(e)){const i=Object.entries(e).map(([r,o])=>[r,Cc(o,t,r,n+1)]);return Object.fromEntries(i)}return e}function bA(e,t){return Cc(e,t)}function Xe(e,t=!1){return bA(e,(s,n,i)=>{if(i===1&&n==="queryKey")return Xe(s,!0);if(t&&_A(s))return Xe(s(),t);if(vt(s))return Xe(O(s),t)})}function yA(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function _A(e){return typeof e=="function"}function kn(e=""){if(!Qg())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=xv(e),s=rs(t);if(!s)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return s}var EA=class extends wv{find(e){return super.find(Xe(e))}findAll(e={}){return super.findAll(Xe(e))}},wA=class extends Av{find(e){return super.find(Xe(e))}findAll(e={}){return super.findAll(Xe(e))}},CA=class extends fA{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new EA,mutationCache:e.mutationCache||new wA};super(t),this.isRestoring=we(!1)}isFetching(e={}){return super.isFetching(Xe(e))}isMutating(e={}){return super.isMutating(Xe(e))}getQueryData(e){return super.getQueryData(Xe(e))}ensureQueryData(e){return super.ensureQueryData(Xe(e))}getQueriesData(e){return super.getQueriesData(Xe(e))}setQueryData(e,t,s={}){return super.setQueryData(Xe(e),t,Xe(s))}setQueriesData(e,t,s={}){return super.setQueriesData(Xe(e),t,Xe(s))}getQueryState(e){return super.getQueryState(Xe(e))}removeQueries(e={}){return super.removeQueries(Xe(e))}resetQueries(e={},t={}){return super.resetQueries(Xe(e),Xe(t))}cancelQueries(e={},t={}){return super.cancelQueries(Xe(e),Xe(t))}invalidateQueries(e={},t={}){const s=Xe(e),n=Xe(t);if(super.invalidateQueries({...s,refetchType:"none"},n),s.refetchType==="none")return Promise.resolve();const i={...s,type:s.refetchType??s.type??"active"};return Ht().then(()=>super.refetchQueries(i,n))}refetchQueries(e={},t={}){return super.refetchQueries(Xe(e),Xe(t))}fetchQuery(e){return super.fetchQuery(Xe(e))}prefetchQuery(e){return super.prefetchQuery(Xe(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Xe(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Xe(e))}setDefaultOptions(e){super.setDefaultOptions(Xe(e))}setQueryDefaults(e,t){super.setQueryDefaults(Xe(e),Xe(t))}getQueryDefaults(e){return super.getQueryDefaults(Xe(e))}setMutationDefaults(e,t){super.setMutationDefaults(Xe(e),Xe(t))}getMutationDefaults(e){return super.getMutationDefaults(Xe(e))}},AA={install:(e,t={})=>{const s=xv(t.queryClientKey);let n;if("queryClient"in t&&t.queryClient)n=t.queryClient;else{const o="queryClientConfig"in t?t.queryClientConfig:void 0;n=new CA(o)}zi||n.mount();let i=()=>{};if(t.clientPersister){n.isRestoring.value=!0;const[o,l]=t.clientPersister(n);i=o,l.then(()=>{var u;n.isRestoring.value=!1,(u=t.clientPersisterOnSuccess)==null||u.call(t,n)})}const r=()=>{n.unmount(),i()};if(e.onUnmount)e.onUnmount(r);else{const o=e.unmount;e.unmount=function(){r(),o()}}e.provide(s,n)}};function Ov(e,t,s){const n=kn(),i=v(()=>{const m=Xe(t);typeof m.enabled=="function"&&(m.enabled=m.enabled());const g=n.defaultQueryOptions(m);return g._optimisticResults=n.isRestoring.value?"isRestoring":"optimistic",g}),r=new e(n,i.value),o=i.value.shallow?Ol(r.getCurrentResult()):qs(r.getCurrentResult());let l=()=>{};rt(n.isRestoring,m=>{m||(l(),l=r.subscribe(g=>{wc(o,g)}))},{immediate:!0});const u=()=>{r.setOptions(i.value),wc(o,r.getCurrentResult())};rt(i,u),dd(()=>{l()});const d=(...m)=>(u(),o.refetch(...m)),c=()=>new Promise((m,g)=>{let C=()=>{};const y=()=>{if(i.value.enabled!==!1){r.setOptions(i.value);const A=r.getOptimisticResult(i.value);A.isStale?(C(),r.fetchOptimistic(i.value).then(m,x=>{cc(i.value.throwOnError,[x,r.getCurrentQuery()])?g(x):m(r.getCurrentResult())})):(C(),m(A))}};y(),C=rt(i,y)});rt(()=>o.error,m=>{if(o.isError&&!o.isFetching&&cc(i.value.throwOnError,[m,r.getCurrentQuery()]))throw m});const h=i.value.shallow?hg(o):Ya(o),p=bd(h);for(const m in o)typeof o[m]=="function"&&(p[m]=o[m]);return p.suspense=c,p.refetch=d,p}function vs(e,t){return Ov($v,e)}function SA(e,t){return Ov(mA,e)}function Ft(e,t){const s=kn(),n=v(()=>s.defaultMutationOptions(Xe(e))),i=new gA(s,n.value),r=n.value.shallow?Ol(i.getCurrentResult()):qs(i.getCurrentResult()),o=i.subscribe(c=>{wc(r,c)}),l=(c,h)=>{i.mutate(c,h).catch(()=>{})};rt(n,()=>{i.setOptions(n.value)}),dd(()=>{o()});const u=n.value.shallow?hg(r):Ya(r),d=bd(u);return rt(()=>r.error,c=>{if(c&&cc(n.value.throwOnError,[c]))throw c}),{...d,mutate:l,mutateAsync:r.mutate,reset:r.reset}}const $A="modulepreload",TA=function(e){return"/"+e},Kh={},Hh=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(s.map(u=>{if(u=TA(u),u in Kh)return;Kh[u]=!0;const d=u.endsWith(".css"),c=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":$A,d||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function r(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&r(l.reason);return t().catch(r)})};/*!
|
|
27
|
+
* vue-router v4.5.0
|
|
28
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/const hr=typeof document<"u";function Nv(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function xA(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Nv(e.default)}const ht=Object.assign;function Ou(e,t){const s={};for(const n in t){const i=t[n];s[n]=Ys(i)?i.map(e):e(i)}return s}const xa=()=>{},Ys=Array.isArray,kv=/#/g,OA=/&/g,NA=/\//g,kA=/=/g,PA=/\?/g,Pv=/\+/g,DA=/%5B/g,RA=/%5D/g,Dv=/%5E/g,IA=/%60/g,Rv=/%7B/g,MA=/%7C/g,Iv=/%7D/g,qA=/%20/g;function Nd(e){return encodeURI(""+e).replace(MA,"|").replace(DA,"[").replace(RA,"]")}function LA(e){return Nd(e).replace(Rv,"{").replace(Iv,"}").replace(Dv,"^")}function Ac(e){return Nd(e).replace(Pv,"%2B").replace(qA,"+").replace(kv,"%23").replace(OA,"%26").replace(IA,"`").replace(Rv,"{").replace(Iv,"}").replace(Dv,"^")}function FA(e){return Ac(e).replace(kA,"%3D")}function VA(e){return Nd(e).replace(kv,"%23").replace(PA,"%3F")}function QA(e){return e==null?"":VA(e).replace(NA,"%2F")}function La(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const jA=/\/$/,BA=e=>e.replace(jA,"");function Nu(e,t,s="/"){let n,i={},r="",o="";const l=t.indexOf("#");let u=t.indexOf("?");return l<u&&l>=0&&(u=-1),u>-1&&(n=t.slice(0,u),r=t.slice(u+1,l>-1?l:t.length),i=e(r)),l>-1&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=GA(n??t,s),{fullPath:n+(r&&"?")+r+o,path:n,query:i,hash:La(o)}}function UA(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Gh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KA(e,t,s){const n=t.matched.length-1,i=s.matched.length-1;return n>-1&&n===i&&jr(t.matched[n],s.matched[i])&&Mv(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function jr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Mv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!HA(e[s],t[s]))return!1;return!0}function HA(e,t){return Ys(e)?Wh(e,t):Ys(t)?Wh(t,e):e===t}function Wh(e,t){return Ys(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function GA(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let r=s.length-1,o,l;for(o=0;o<n.length;o++)if(l=n[o],l!==".")if(l==="..")r>1&&r--;else break;return s.slice(0,r).join("/")+"/"+n.slice(o).join("/")}const In={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Fa;(function(e){e.pop="pop",e.push="push"})(Fa||(Fa={}));var Oa;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Oa||(Oa={}));function WA(e){if(!e)if(hr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),BA(e)}const zA=/^[^#]+#/;function YA(e,t){return e.replace(zA,"#")+t}function ZA(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const Vl=()=>({left:window.scrollX,top:window.scrollY});function JA(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),i=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!i)return;t=ZA(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function zh(e,t){return(history.state?history.state.position-t:-1)+e}const Sc=new Map;function XA(e,t){Sc.set(e,t)}function eS(e){const t=Sc.get(e);return Sc.delete(e),t}let tS=()=>location.protocol+"//"+location.host;function qv(e,t){const{pathname:s,search:n,hash:i}=t,r=e.indexOf("#");if(r>-1){let l=i.includes(e.slice(r))?e.slice(r).length:1,u=i.slice(l);return u[0]!=="/"&&(u="/"+u),Gh(u,"")}return Gh(s,e)+n+i}function sS(e,t,s,n){let i=[],r=[],o=null;const l=({state:p})=>{const m=qv(e,location),g=s.value,C=t.value;let y=0;if(p){if(s.value=m,t.value=p,o&&o===g){o=null;return}y=C?p.position-C.position:0}else n(m);i.forEach(A=>{A(s.value,g,{delta:y,type:Fa.pop,direction:y?y>0?Oa.forward:Oa.back:Oa.unknown})})};function u(){o=s.value}function d(p){i.push(p);const m=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return r.push(m),m}function c(){const{history:p}=window;p.state&&p.replaceState(ht({},p.state,{scroll:Vl()}),"")}function h(){for(const p of r)p();r=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:u,listen:d,destroy:h}}function Yh(e,t,s,n=!1,i=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:i?Vl():null}}function nS(e){const{history:t,location:s}=window,n={value:qv(e,s)},i={value:t.state};i.value||r(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(u,d,c){const h=e.indexOf("#"),p=h>-1?(s.host&&document.querySelector("base")?e:e.slice(h))+u:tS()+e+u;try{t[c?"replaceState":"pushState"](d,"",p),i.value=d}catch(m){console.error(m),s[c?"replace":"assign"](p)}}function o(u,d){const c=ht({},t.state,Yh(i.value.back,u,i.value.forward,!0),d,{position:i.value.position});r(u,c,!0),n.value=u}function l(u,d){const c=ht({},i.value,t.state,{forward:u,scroll:Vl()});r(c.current,c,!0);const h=ht({},Yh(n.value,u,null),{position:c.position+1},d);r(u,h,!1),n.value=u}return{location:n,state:i,push:l,replace:o}}function iS(e){e=WA(e);const t=nS(e),s=sS(e,t.state,t.location,t.replace);function n(r,o=!0){o||s.pauseListeners(),history.go(r)}const i=ht({location:"",base:e,go:n,createHref:YA.bind(null,e)},t,s);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function rS(e){return typeof e=="string"||e&&typeof e=="object"}function Lv(e){return typeof e=="string"||typeof e=="symbol"}const Fv=Symbol("");var Zh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zh||(Zh={}));function Br(e,t){return ht(new Error,{type:e,[Fv]:!0},t)}function gn(e,t){return e instanceof Error&&Fv in e&&(t==null||!!(e.type&t))}const Jh="[^/]+?",aS={sensitive:!1,strict:!1,start:!0,end:!0},oS=/[.+*?^${}()[\]/\\]/g;function lS(e,t){const s=ht({},aS,t),n=[];let i=s.start?"^":"";const r=[];for(const d of e){const c=d.length?[]:[90];s.strict&&!d.length&&(i+="/");for(let h=0;h<d.length;h++){const p=d[h];let m=40+(s.sensitive?.25:0);if(p.type===0)h||(i+="/"),i+=p.value.replace(oS,"\\$&"),m+=40;else if(p.type===1){const{value:g,repeatable:C,optional:y,regexp:A}=p;r.push({name:g,repeatable:C,optional:y});const x=A||Jh;if(x!==Jh){m+=10;try{new RegExp(`(${x})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${g}" (${x}): `+_.message)}}let S=C?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;h||(S=y&&d.length<2?`(?:/${S})`:"/"+S),y&&(S+="?"),i+=S,m+=20,y&&(m+=-8),C&&(m+=-20),x===".*"&&(m+=-50)}c.push(m)}n.push(c)}if(s.strict&&s.end){const d=n.length-1;n[d][n[d].length-1]+=.7000000000000001}s.strict||(i+="/?"),s.end?i+="$":s.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,s.sensitive?"":"i");function l(d){const c=d.match(o),h={};if(!c)return null;for(let p=1;p<c.length;p++){const m=c[p]||"",g=r[p-1];h[g.name]=m&&g.repeatable?m.split("/"):m}return h}function u(d){let c="",h=!1;for(const p of e){(!h||!c.endsWith("/"))&&(c+="/"),h=!1;for(const m of p)if(m.type===0)c+=m.value;else if(m.type===1){const{value:g,repeatable:C,optional:y}=m,A=g in d?d[g]:"";if(Ys(A)&&!C)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const x=Ys(A)?A.join("/"):A;if(!x)if(y)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):h=!0);else throw new Error(`Missing required param "${g}"`);c+=x}}return c||"/"}return{re:o,score:n,keys:r,parse:l,stringify:u}}function uS(e,t){let s=0;for(;s<e.length&&s<t.length;){const n=t[s]-e[s];if(n)return n;s++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Vv(e,t){let s=0;const n=e.score,i=t.score;for(;s<n.length&&s<i.length;){const r=uS(n[s],i[s]);if(r)return r;s++}if(Math.abs(i.length-n.length)===1){if(Xh(n))return 1;if(Xh(i))return-1}return i.length-n.length}function Xh(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const cS={type:0,value:""},dS=/[a-zA-Z0-9_]/;function fS(e){if(!e)return[[]];if(e==="/")return[[cS]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${s})/"${d}": ${m}`)}let s=0,n=s;const i=[];let r;function o(){r&&i.push(r),r=[]}let l=0,u,d="",c="";function h(){d&&(s===0?r.push({type:0,value:d}):s===1||s===2||s===3?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:d,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),d="")}function p(){d+=u}for(;l<e.length;){if(u=e[l++],u==="\\"&&s!==2){n=s,s=4;continue}switch(s){case 0:u==="/"?(d&&h(),o()):u===":"?(h(),s=1):p();break;case 4:p(),s=n;break;case 1:u==="("?s=2:dS.test(u)?p():(h(),s=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+u:s=3:c+=u;break;case 3:h(),s=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,c="";break;default:t("Unknown state");break}}return s===2&&t(`Unfinished custom RegExp for param "${d}"`),h(),o(),i}function hS(e,t,s){const n=lS(fS(e.path),s),i=ht(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function pS(e,t){const s=[],n=new Map;t=np({strict:!1,end:!0,sensitive:!1},t);function i(h){return n.get(h)}function r(h,p,m){const g=!m,C=tp(h);C.aliasOf=m&&m.record;const y=np(t,h),A=[C];if("alias"in h){const _=typeof h.alias=="string"?[h.alias]:h.alias;for(const $ of _)A.push(tp(ht({},C,{components:m?m.record.components:C.components,path:$,aliasOf:m?m.record:C})))}let x,S;for(const _ of A){const{path:$}=_;if(p&&$[0]!=="/"){const V=p.record.path,j=V[V.length-1]==="/"?"":"/";_.path=p.record.path+($&&j+$)}if(x=hS(_,p,y),m?m.alias.push(x):(S=S||x,S!==x&&S.alias.push(x),g&&h.name&&!sp(x)&&o(h.name)),Qv(x)&&u(x),C.children){const V=C.children;for(let j=0;j<V.length;j++)r(V[j],x,m&&m.children[j])}m=m||x}return S?()=>{o(S)}:xa}function o(h){if(Lv(h)){const p=n.get(h);p&&(n.delete(h),s.splice(s.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=s.indexOf(h);p>-1&&(s.splice(p,1),h.record.name&&n.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function l(){return s}function u(h){const p=vS(h,s);s.splice(p,0,h),h.record.name&&!sp(h)&&n.set(h.record.name,h)}function d(h,p){let m,g={},C,y;if("name"in h&&h.name){if(m=n.get(h.name),!m)throw Br(1,{location:h});y=m.record.name,g=ht(ep(p.params,m.keys.filter(S=>!S.optional).concat(m.parent?m.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),h.params&&ep(h.params,m.keys.map(S=>S.name))),C=m.stringify(g)}else if(h.path!=null)C=h.path,m=s.find(S=>S.re.test(C)),m&&(g=m.parse(C),y=m.record.name);else{if(m=p.name?n.get(p.name):s.find(S=>S.re.test(p.path)),!m)throw Br(1,{location:h,currentLocation:p});y=m.record.name,g=ht({},p.params,h.params),C=m.stringify(g)}const A=[];let x=m;for(;x;)A.unshift(x.record),x=x.parent;return{name:y,path:C,params:g,matched:A,meta:gS(A)}}e.forEach(h=>r(h));function c(){s.length=0,n.clear()}return{addRoute:r,resolve:d,removeRoute:o,clearRoutes:c,getRoutes:l,getRecordMatcher:i}}function ep(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function tp(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function mS(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function sp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gS(e){return e.reduce((t,s)=>ht(t,s.meta),{})}function np(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}function vS(e,t){let s=0,n=t.length;for(;s!==n;){const r=s+n>>1;Vv(e,t[r])<0?n=r:s=r+1}const i=bS(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function bS(e){let t=e;for(;t=t.parent;)if(Qv(t)&&Vv(e,t)===0)return t}function Qv({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function yS(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const r=n[i].replace(Pv," "),o=r.indexOf("="),l=La(o<0?r:r.slice(0,o)),u=o<0?null:La(r.slice(o+1));if(l in t){let d=t[l];Ys(d)||(d=t[l]=[d]),d.push(u)}else t[l]=u}return t}function ip(e){let t="";for(let s in e){const n=e[s];if(s=FA(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(Ys(n)?n.map(r=>r&&Ac(r)):[n&&Ac(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function _S(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=Ys(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const ES=Symbol(""),rp=Symbol(""),Ql=Symbol(""),kd=Symbol(""),$c=Symbol("");function ca(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Qn(e,t,s,n,i,r=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((l,u)=>{const d=p=>{p===!1?u(Br(4,{from:s,to:t})):p instanceof Error?u(p):rS(p)?u(Br(2,{from:t,to:p})):(o&&n.enterCallbacks[i]===o&&typeof p=="function"&&o.push(p),l())},c=r(()=>e.call(n&&n.instances[i],t,s,d));let h=Promise.resolve(c);e.length<3&&(h=h.then(d)),h.catch(p=>u(p))})}function ku(e,t,s,n,i=r=>r()){const r=[];for(const o of e)for(const l in o.components){let u=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(Nv(u)){const c=(u.__vccOpts||u)[t];c&&r.push(Qn(c,s,n,o,l,i))}else{let d=u();r.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const h=xA(c)?c.default:c;o.mods[l]=c,o.components[l]=h;const m=(h.__vccOpts||h)[t];return m&&Qn(m,s,n,o,l,i)()}))}}return r}function ap(e){const t=rs(Ql),s=rs(kd),n=v(()=>{const u=O(e.to);return t.resolve(u)}),i=v(()=>{const{matched:u}=n.value,{length:d}=u,c=u[d-1],h=s.matched;if(!c||!h.length)return-1;const p=h.findIndex(jr.bind(null,c));if(p>-1)return p;const m=op(u[d-2]);return d>1&&op(c)===m&&h[h.length-1].path!==m?h.findIndex(jr.bind(null,u[d-2])):p}),r=v(()=>i.value>-1&&$S(s.params,n.value.params)),o=v(()=>i.value>-1&&i.value===s.matched.length-1&&Mv(s.params,n.value.params));function l(u={}){if(SS(u)){const d=t[O(e.replace)?"replace":"push"](O(e.to)).catch(xa);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:v(()=>n.value.href),isActive:r,isExactActive:o,navigate:l}}function wS(e){return e.length===1?e[0]:e}const CS=ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ap,setup(e,{slots:t}){const s=qs(ap(e)),{options:n}=rs(Ql),i=v(()=>({[lp(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[lp(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const r=t.default&&wS(t.default(s));return e.custom?r:Wi("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:i.value},r)}}}),AS=CS;function SS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $S(e,t){for(const s in t){const n=t[s],i=e[s];if(typeof n=="string"){if(n!==i)return!1}else if(!Ys(i)||i.length!==n.length||n.some((r,o)=>r!==i[o]))return!1}return!0}function op(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lp=(e,t,s)=>e??t??s,TS=ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=rs($c),i=v(()=>e.route||n.value),r=rs(rp,0),o=v(()=>{let d=O(r);const{matched:c}=i.value;let h;for(;(h=c[d])&&!h.components;)d++;return d}),l=v(()=>i.value.matched[o.value]);Bi(rp,v(()=>o.value+1)),Bi(ES,l),Bi($c,i);const u=we();return rt(()=>[u.value,l.value,e.name],([d,c,h],[p,m,g])=>{c&&(c.instances[h]=d,m&&m!==c&&d&&d===p&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),d&&c&&(!m||!jr(c,m)||!p)&&(c.enterCallbacks[h]||[]).forEach(C=>C(d))},{flush:"post"}),()=>{const d=i.value,c=e.name,h=l.value,p=h&&h.components[c];if(!p)return up(s.default,{Component:p,route:d});const m=h.props[c],g=m?m===!0?d.params:typeof m=="function"?m(d):m:null,y=Wi(p,ht({},g,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(h.instances[c]=null)},ref:u}));return up(s.default,{Component:y,route:d})||y}}});function up(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const xS=TS;function OS(e){const t=pS(e.routes,e),s=e.parseQuery||yS,n=e.stringifyQuery||ip,i=e.history,r=ca(),o=ca(),l=ca(),u=pg(In);let d=In;hr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ou.bind(null,D=>""+D),h=Ou.bind(null,QA),p=Ou.bind(null,La);function m(D,B){let J,ce;return Lv(D)?(J=t.getRecordMatcher(D),ce=B):ce=D,t.addRoute(ce,J)}function g(D){const B=t.getRecordMatcher(D);B&&t.removeRoute(B)}function C(){return t.getRoutes().map(D=>D.record)}function y(D){return!!t.getRecordMatcher(D)}function A(D,B){if(B=ht({},B||u.value),typeof D=="string"){const U=Nu(s,D,B.path),ie=t.resolve({path:U.path},B),ae=i.createHref(U.fullPath);return ht(U,ie,{params:p(ie.params),hash:La(U.hash),redirectedFrom:void 0,href:ae})}let J;if(D.path!=null)J=ht({},D,{path:Nu(s,D.path,B.path).path});else{const U=ht({},D.params);for(const ie in U)U[ie]==null&&delete U[ie];J=ht({},D,{params:h(U)}),B.params=h(B.params)}const ce=t.resolve(J,B),Y=D.hash||"";ce.params=c(p(ce.params));const P=UA(n,ht({},D,{hash:LA(Y),path:ce.path})),M=i.createHref(P);return ht({fullPath:P,hash:Y,query:n===ip?_S(D.query):D.query||{}},ce,{redirectedFrom:void 0,href:M})}function x(D){return typeof D=="string"?Nu(s,D,u.value.path):ht({},D)}function S(D,B){if(d!==D)return Br(8,{from:B,to:D})}function _(D){return j(D)}function $(D){return _(ht(x(D),{replace:!0}))}function V(D){const B=D.matched[D.matched.length-1];if(B&&B.redirect){const{redirect:J}=B;let ce=typeof J=="function"?J(D):J;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=x(ce):{path:ce},ce.params={}),ht({query:D.query,hash:D.hash,params:ce.path!=null?{}:D.params},ce)}}function j(D,B){const J=d=A(D),ce=u.value,Y=D.state,P=D.force,M=D.replace===!0,U=V(J);if(U)return j(ht(x(U),{state:typeof U=="object"?ht({},Y,U.state):Y,force:P,replace:M}),B||J);const ie=J;ie.redirectedFrom=B;let ae;return!P&&KA(n,ce,J)&&(ae=Br(16,{to:ie,from:ce}),Ue(ce,ce,!0,!1)),(ae?Promise.resolve(ae):T(ie,ce)).catch(oe=>gn(oe)?gn(oe,2)?oe:Oe(oe):ee(oe,ie,ce)).then(oe=>{if(oe){if(gn(oe,2))return j(ht({replace:M},x(oe.to),{state:typeof oe.to=="object"?ht({},Y,oe.to.state):Y,force:P}),B||ie)}else oe=w(ie,ce,!0,M,Y);return N(ie,ce,oe),oe})}function R(D,B){const J=S(D,B);return J?Promise.reject(J):Promise.resolve()}function E(D){const B=Re.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(D):D()}function T(D,B){let J;const[ce,Y,P]=NS(D,B);J=ku(ce.reverse(),"beforeRouteLeave",D,B);for(const U of ce)U.leaveGuards.forEach(ie=>{J.push(Qn(ie,D,B))});const M=R.bind(null,D,B);return J.push(M),K(J).then(()=>{J=[];for(const U of r.list())J.push(Qn(U,D,B));return J.push(M),K(J)}).then(()=>{J=ku(Y,"beforeRouteUpdate",D,B);for(const U of Y)U.updateGuards.forEach(ie=>{J.push(Qn(ie,D,B))});return J.push(M),K(J)}).then(()=>{J=[];for(const U of P)if(U.beforeEnter)if(Ys(U.beforeEnter))for(const ie of U.beforeEnter)J.push(Qn(ie,D,B));else J.push(Qn(U.beforeEnter,D,B));return J.push(M),K(J)}).then(()=>(D.matched.forEach(U=>U.enterCallbacks={}),J=ku(P,"beforeRouteEnter",D,B,E),J.push(M),K(J))).then(()=>{J=[];for(const U of o.list())J.push(Qn(U,D,B));return J.push(M),K(J)}).catch(U=>gn(U,8)?U:Promise.reject(U))}function N(D,B,J){l.list().forEach(ce=>E(()=>ce(D,B,J)))}function w(D,B,J,ce,Y){const P=S(D,B);if(P)return P;const M=B===In,U=hr?history.state:{};J&&(ce||M?i.replace(D.fullPath,ht({scroll:M&&U&&U.scroll},Y)):i.push(D.fullPath,Y)),u.value=D,Ue(D,B,J,M),Oe()}let z;function se(){z||(z=i.listen((D,B,J)=>{if(!_e.listening)return;const ce=A(D),Y=V(ce);if(Y){j(ht(Y,{replace:!0,force:!0}),ce).catch(xa);return}d=ce;const P=u.value;hr&&XA(zh(P.fullPath,J.delta),Vl()),T(ce,P).catch(M=>gn(M,12)?M:gn(M,2)?(j(ht(x(M.to),{force:!0}),ce).then(U=>{gn(U,20)&&!J.delta&&J.type===Fa.pop&&i.go(-1,!1)}).catch(xa),Promise.reject()):(J.delta&&i.go(-J.delta,!1),ee(M,ce,P))).then(M=>{M=M||w(ce,P,!1),M&&(J.delta&&!gn(M,8)?i.go(-J.delta,!1):J.type===Fa.pop&&gn(M,20)&&i.go(-1,!1)),N(ce,P,M)}).catch(xa)}))}let ne=ca(),te=ca(),W;function ee(D,B,J){Oe(D);const ce=te.list();return ce.length?ce.forEach(Y=>Y(D,B,J)):console.error(D),Promise.reject(D)}function fe(){return W&&u.value!==In?Promise.resolve():new Promise((D,B)=>{ne.add([D,B])})}function Oe(D){return W||(W=!D,se(),ne.list().forEach(([B,J])=>D?J(D):B()),ne.reset()),D}function Ue(D,B,J,ce){const{scrollBehavior:Y}=e;if(!hr||!Y)return Promise.resolve();const P=!J&&eS(zh(D.fullPath,0))||(ce||!J)&&history.state&&history.state.scroll||null;return Ht().then(()=>Y(D,B,P)).then(M=>M&&JA(M)).catch(M=>ee(M,D,B))}const ue=D=>i.go(D);let ve;const Re=new Set,_e={currentRoute:u,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:C,resolve:A,options:e,push:_,replace:$,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:te.add,isReady:fe,install(D){const B=this;D.component("RouterLink",AS),D.component("RouterView",xS),D.config.globalProperties.$router=B,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>O(u)}),hr&&!ve&&u.value===In&&(ve=!0,_(i.location).catch(Y=>{}));const J={};for(const Y in In)Object.defineProperty(J,Y,{get:()=>u.value[Y],enumerable:!0});D.provide(Ql,B),D.provide(kd,Ol(J)),D.provide($c,u);const ce=D.unmount;Re.add(D),D.unmount=function(){Re.delete(D),Re.size<1&&(d=In,z&&z(),z=null,u.value=In,ve=!1,W=!1),ce()}}};function K(D){return D.reduce((B,J)=>B.then(()=>E(J)),Promise.resolve())}return _e}function NS(e,t){const s=[],n=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;o<r;o++){const l=t.matched[o];l&&(e.matched.find(d=>jr(d,l))?n.push(l):s.push(l));const u=e.matched[o];u&&(t.matched.find(d=>jr(d,u))||i.push(u))}return[s,n,i]}function bs(){return rs(Ql)}function Ts(e){return rs(kd)}typeof window<"u"&&!window.configs&&(window.configs={API_URL:"http://127.0.0.1:22534/",BASE_PATH:"/"});function kS(e){const t=window.configs[e];if(t===void 0)throw new Error(`Environment variable "${e}" is not defined`);return t}function jv(e,t){return function(){return e.apply(t,arguments)}}const{toString:PS}=Object.prototype,{getPrototypeOf:Pd}=Object,jl=(e=>t=>{const s=PS.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Zs=e=>(e=e.toLowerCase(),t=>jl(t)===e),Bl=e=>t=>typeof t===e,{isArray:Zr}=Array,Va=Bl("undefined");function DS(e){return e!==null&&!Va(e)&&e.constructor!==null&&!Va(e.constructor)&&ws(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Bv=Zs("ArrayBuffer");function RS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bv(e.buffer),t}const IS=Bl("string"),ws=Bl("function"),Uv=Bl("number"),Ul=e=>e!==null&&typeof e=="object",MS=e=>e===!0||e===!1,Qo=e=>{if(jl(e)!=="object")return!1;const t=Pd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qS=Zs("Date"),LS=Zs("File"),FS=Zs("Blob"),VS=Zs("FileList"),QS=e=>Ul(e)&&ws(e.pipe),jS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ws(e.append)&&((t=jl(e))==="formdata"||t==="object"&&ws(e.toString)&&e.toString()==="[object FormData]"))},BS=Zs("URLSearchParams"),[US,KS,HS,GS]=["ReadableStream","Request","Response","Headers"].map(Zs),WS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function so(e,t,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Zr(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const r=s?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let l;for(n=0;n<o;n++)l=r[n],t.call(null,e[l],l,e)}}function Kv(e,t){t=t.toLowerCase();const s=Object.keys(e);let n=s.length,i;for(;n-- >0;)if(i=s[n],t===i.toLowerCase())return i;return null}const Oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hv=e=>!Va(e)&&e!==Oi;function Tc(){const{caseless:e}=Hv(this)&&this||{},t={},s=(n,i)=>{const r=e&&Kv(t,i)||i;Qo(t[r])&&Qo(n)?t[r]=Tc(t[r],n):Qo(n)?t[r]=Tc({},n):Zr(n)?t[r]=n.slice():t[r]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&so(arguments[n],s);return t}const zS=(e,t,s,{allOwnKeys:n}={})=>(so(t,(i,r)=>{s&&ws(i)?e[r]=jv(i,s):e[r]=i},{allOwnKeys:n}),e),YS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZS=(e,t,s,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},JS=(e,t,s,n)=>{let i,r,o;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],(!n||n(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=s!==!1&&Pd(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},XS=(e,t,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=t.length;const n=e.indexOf(t,s);return n!==-1&&n===s},e$=e=>{if(!e)return null;if(Zr(e))return e;let t=e.length;if(!Uv(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},t$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pd(Uint8Array)),s$=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},n$=(e,t)=>{let s;const n=[];for(;(s=e.exec(t))!==null;)n.push(s);return n},i$=Zs("HTMLFormElement"),r$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,n,i){return n.toUpperCase()+i}),cp=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),a$=Zs("RegExp"),Gv=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),n={};so(s,(i,r)=>{let o;(o=t(i,r,e))!==!1&&(n[r]=o||i)}),Object.defineProperties(e,n)},o$=e=>{Gv(e,(t,s)=>{if(ws(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const n=e[s];if(ws(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},l$=(e,t)=>{const s={},n=i=>{i.forEach(r=>{s[r]=!0})};return Zr(e)?n(e):n(String(e).split(t)),s},u$=()=>{},c$=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function d$(e){return!!(e&&ws(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const f$=e=>{const t=new Array(10),s=(n,i)=>{if(Ul(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const r=Zr(n)?[]:{};return so(n,(o,l)=>{const u=s(o,i+1);!Va(u)&&(r[l]=u)}),t[i]=void 0,r}}return n};return s(e,0)},h$=Zs("AsyncFunction"),p$=e=>e&&(Ul(e)||ws(e))&&ws(e.then)&&ws(e.catch),Wv=((e,t)=>e?setImmediate:t?((s,n)=>(Oi.addEventListener("message",({source:i,data:r})=>{i===Oi&&r===s&&n.length&&n.shift()()},!1),i=>{n.push(i),Oi.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",ws(Oi.postMessage)),m$=typeof queueMicrotask<"u"?queueMicrotask.bind(Oi):typeof process<"u"&&process.nextTick||Wv,re={isArray:Zr,isArrayBuffer:Bv,isBuffer:DS,isFormData:jS,isArrayBufferView:RS,isString:IS,isNumber:Uv,isBoolean:MS,isObject:Ul,isPlainObject:Qo,isReadableStream:US,isRequest:KS,isResponse:HS,isHeaders:GS,isUndefined:Va,isDate:qS,isFile:LS,isBlob:FS,isRegExp:a$,isFunction:ws,isStream:QS,isURLSearchParams:BS,isTypedArray:t$,isFileList:VS,forEach:so,merge:Tc,extend:zS,trim:WS,stripBOM:YS,inherits:ZS,toFlatObject:JS,kindOf:jl,kindOfTest:Zs,endsWith:XS,toArray:e$,forEachEntry:s$,matchAll:n$,isHTMLForm:i$,hasOwnProperty:cp,hasOwnProp:cp,reduceDescriptors:Gv,freezeMethods:o$,toObjectSet:l$,toCamelCase:r$,noop:u$,toFiniteNumber:c$,findKey:Kv,global:Oi,isContextDefined:Hv,isSpecCompliantForm:d$,toJSONObject:f$,isAsyncFn:h$,isThenable:p$,setImmediate:Wv,asap:m$};function Ye(e,t,s,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),s&&(this.config=s),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}re.inherits(Ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}});const zv=Ye.prototype,Yv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Yv[e]={value:e}});Object.defineProperties(Ye,Yv);Object.defineProperty(zv,"isAxiosError",{value:!0});Ye.from=(e,t,s,n,i,r)=>{const o=Object.create(zv);return re.toFlatObject(e,o,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),Ye.call(o,e.message,t,s,n,i),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};const g$=null;function xc(e){return re.isPlainObject(e)||re.isArray(e)}function Zv(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function dp(e,t,s){return e?e.concat(t).map(function(i,r){return i=Zv(i),!s&&r?"["+i+"]":i}).join(s?".":""):t}function v$(e){return re.isArray(e)&&!e.some(xc)}const b$=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function Kl(e,t,s){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,s=re.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,y){return!re.isUndefined(y[C])});const n=s.metaTokens,i=s.visitor||c,r=s.dots,o=s.indexes,u=(s.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(i))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(re.isDate(g))return g.toISOString();if(!u&&re.isBlob(g))throw new Ye("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(g)||re.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,C,y){let A=g;if(g&&!y&&typeof g=="object"){if(re.endsWith(C,"{}"))C=n?C:C.slice(0,-2),g=JSON.stringify(g);else if(re.isArray(g)&&v$(g)||(re.isFileList(g)||re.endsWith(C,"[]"))&&(A=re.toArray(g)))return C=Zv(C),A.forEach(function(S,_){!(re.isUndefined(S)||S===null)&&t.append(o===!0?dp([C],_,r):o===null?C:C+"[]",d(S))}),!1}return xc(g)?!0:(t.append(dp(y,C,r),d(g)),!1)}const h=[],p=Object.assign(b$,{defaultVisitor:c,convertValue:d,isVisitable:xc});function m(g,C){if(!re.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+C.join("."));h.push(g),re.forEach(g,function(A,x){(!(re.isUndefined(A)||A===null)&&i.call(t,A,re.isString(x)?x.trim():x,C,p))===!0&&m(A,C?C.concat(x):[x])}),h.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return m(e),t}function fp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Dd(e,t){this._pairs=[],e&&Kl(e,this,t)}const Jv=Dd.prototype;Jv.append=function(t,s){this._pairs.push([t,s])};Jv.toString=function(t){const s=t?function(n){return t.call(this,n,fp)}:fp;return this._pairs.map(function(i){return s(i[0])+"="+s(i[1])},"").join("&")};function y$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xv(e,t,s){if(!t)return e;const n=s&&s.encode||y$;re.isFunction(s)&&(s={serialize:s});const i=s&&s.serialize;let r;if(i?r=i(t,s):r=re.isURLSearchParams(t)?t.toString():new Dd(t,s).toString(n),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class hp{constructor(){this.handlers=[]}use(t,s,n){return this.handlers.push({fulfilled:t,rejected:s,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(n){n!==null&&t(n)})}}const eb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_$=typeof URLSearchParams<"u"?URLSearchParams:Dd,E$=typeof FormData<"u"?FormData:null,w$=typeof Blob<"u"?Blob:null,C$={isBrowser:!0,classes:{URLSearchParams:_$,FormData:E$,Blob:w$},protocols:["http","https","file","blob","url","data"]},Rd=typeof window<"u"&&typeof document<"u",Oc=typeof navigator=="object"&&navigator||void 0,A$=Rd&&(!Oc||["ReactNative","NativeScript","NS"].indexOf(Oc.product)<0),S$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$$=Rd&&window.location.href||"http://localhost",T$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Rd,hasStandardBrowserEnv:A$,hasStandardBrowserWebWorkerEnv:S$,navigator:Oc,origin:$$},Symbol.toStringTag,{value:"Module"})),zt={...T$,...C$};function x$(e,t){return Kl(e,new zt.classes.URLSearchParams,Object.assign({visitor:function(s,n,i,r){return zt.isNode&&re.isBuffer(s)?(this.append(n,s.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function O$(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function N$(e){const t={},s=Object.keys(e);let n;const i=s.length;let r;for(n=0;n<i;n++)r=s[n],t[r]=e[r];return t}function tb(e){function t(s,n,i,r){let o=s[r++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=r>=s.length;return o=!o&&re.isArray(i)?i.length:o,u?(re.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!l):((!i[o]||!re.isObject(i[o]))&&(i[o]=[]),t(s,n,i[o],r)&&re.isArray(i[o])&&(i[o]=N$(i[o])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const s={};return re.forEachEntry(e,(n,i)=>{t(O$(n),i,s,0)}),s}return null}function k$(e,t,s){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(e)}const no={transitional:eb,adapter:["xhr","http","fetch"],transformRequest:[function(t,s){const n=s.getContentType()||"",i=n.indexOf("application/json")>-1,r=re.isObject(t);if(r&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return i?JSON.stringify(tb(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t)||re.isReadableStream(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return x$(t,this.formSerializer).toString();if((l=re.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Kl(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return r||i?(s.setContentType("application/json",!1),k$(t)):t}],transformResponse:[function(t){const s=this.transitional||no.transitional,n=s&&s.forcedJSONParsing,i=this.responseType==="json";if(re.isResponse(t)||re.isReadableStream(t))return t;if(t&&re.isString(t)&&(n&&!this.responseType||i)){const o=!(s&&s.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?Ye.from(l,Ye.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zt.classes.FormData,Blob:zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],e=>{no.headers[e]={}});const P$=re.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"]),D$=e=>{const t={};let s,n,i;return e&&e.split(`
|
|
31
|
+
`).forEach(function(o){i=o.indexOf(":"),s=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!s||t[s]&&P$[s])&&(s==="set-cookie"?t[s]?t[s].push(n):t[s]=[n]:t[s]=t[s]?t[s]+", "+n:n)}),t},pp=Symbol("internals");function da(e){return e&&String(e).trim().toLowerCase()}function jo(e){return e===!1||e==null?e:re.isArray(e)?e.map(jo):String(e)}function R$(e){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=s.exec(e);)t[n[1]]=n[2];return t}const I$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pu(e,t,s,n,i){if(re.isFunction(n))return n.call(this,t,s);if(i&&(t=s),!!re.isString(t)){if(re.isString(n))return t.indexOf(n)!==-1;if(re.isRegExp(n))return n.test(t)}}function M$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,n)=>s.toUpperCase()+n)}function q$(e,t){const s=re.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+s,{value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})})}let ms=class{constructor(t){t&&this.set(t)}set(t,s,n){const i=this;function r(l,u,d){const c=da(u);if(!c)throw new Error("header name must be a non-empty string");const h=re.findKey(i,c);(!h||i[h]===void 0||d===!0||d===void 0&&i[h]!==!1)&&(i[h||u]=jo(l))}const o=(l,u)=>re.forEach(l,(d,c)=>r(d,c,u));if(re.isPlainObject(t)||t instanceof this.constructor)o(t,s);else if(re.isString(t)&&(t=t.trim())&&!I$(t))o(D$(t),s);else if(re.isHeaders(t))for(const[l,u]of t.entries())r(u,l,n);else t!=null&&r(s,t,n);return this}get(t,s){if(t=da(t),t){const n=re.findKey(this,t);if(n){const i=this[n];if(!s)return i;if(s===!0)return R$(i);if(re.isFunction(s))return s.call(this,i,n);if(re.isRegExp(s))return s.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=da(t),t){const n=re.findKey(this,t);return!!(n&&this[n]!==void 0&&(!s||Pu(this,this[n],n,s)))}return!1}delete(t,s){const n=this;let i=!1;function r(o){if(o=da(o),o){const l=re.findKey(n,o);l&&(!s||Pu(n,n[l],l,s))&&(delete n[l],i=!0)}}return re.isArray(t)?t.forEach(r):r(t),i}clear(t){const s=Object.keys(this);let n=s.length,i=!1;for(;n--;){const r=s[n];(!t||Pu(this,this[r],r,t,!0))&&(delete this[r],i=!0)}return i}normalize(t){const s=this,n={};return re.forEach(this,(i,r)=>{const o=re.findKey(n,r);if(o){s[o]=jo(i),delete s[r];return}const l=t?M$(r):String(r).trim();l!==r&&delete s[r],s[l]=jo(i),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const s=Object.create(null);return re.forEach(this,(n,i)=>{n!=null&&n!==!1&&(s[i]=t&&re.isArray(n)?n.join(", "):n)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,s])=>t+": "+s).join(`
|
|
32
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...s){const n=new this(t);return s.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[pp]=this[pp]={accessors:{}}).accessors,i=this.prototype;function r(o){const l=da(o);n[l]||(q$(i,o),n[l]=!0)}return re.isArray(t)?t.forEach(r):r(t),this}};ms.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);re.reduceDescriptors(ms.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[s]=n}}});re.freezeMethods(ms);function Du(e,t){const s=this||no,n=t||s,i=ms.from(n.headers);let r=n.data;return re.forEach(e,function(l){r=l.call(s,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function sb(e){return!!(e&&e.__CANCEL__)}function Jr(e,t,s){Ye.call(this,e??"canceled",Ye.ERR_CANCELED,t,s),this.name="CanceledError"}re.inherits(Jr,Ye,{__CANCEL__:!0});function nb(e,t,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):t(new Ye("Request failed with status code "+s.status,[Ye.ERR_BAD_REQUEST,Ye.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function L$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function F$(e,t){e=e||10;const s=new Array(e),n=new Array(e);let i=0,r=0,o;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),c=n[r];o||(o=d),s[i]=u,n[i]=d;let h=r,p=0;for(;h!==i;)p+=s[h++],h=h%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-o<t)return;const m=c&&d-c;return m?Math.round(p*1e3/m):void 0}}function V$(e,t){let s=0,n=1e3/t,i,r;const o=(d,c=Date.now())=>{s=c,i=null,r&&(clearTimeout(r),r=null),e.apply(null,d)};return[(...d)=>{const c=Date.now(),h=c-s;h>=n?o(d,c):(i=d,r||(r=setTimeout(()=>{r=null,o(i)},n-h)))},()=>i&&o(i)]}const al=(e,t,s=3)=>{let n=0;const i=F$(50,250);return V$(r=>{const o=r.loaded,l=r.lengthComputable?r.total:void 0,u=o-n,d=i(u),c=o<=l;n=o;const h={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l&&c?(l-o)/d:void 0,event:r,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},s)},mp=(e,t)=>{const s=e!=null;return[n=>t[0]({lengthComputable:s,total:e,loaded:n}),t[1]]},gp=e=>(...t)=>re.asap(()=>e(...t)),Q$=zt.hasStandardBrowserEnv?((e,t)=>s=>(s=new URL(s,zt.origin),e.protocol===s.protocol&&e.host===s.host&&(t||e.port===s.port)))(new URL(zt.origin),zt.navigator&&/(msie|trident)/i.test(zt.navigator.userAgent)):()=>!0,j$=zt.hasStandardBrowserEnv?{write(e,t,s,n,i,r){const o=[e+"="+encodeURIComponent(t)];re.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),re.isString(n)&&o.push("path="+n),re.isString(i)&&o.push("domain="+i),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function B$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function U$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ib(e,t,s){let n=!B$(t);return e&&(n||s==!1)?U$(e,t):t}const vp=e=>e instanceof ms?{...e}:e;function Zi(e,t){t=t||{};const s={};function n(d,c,h,p){return re.isPlainObject(d)&&re.isPlainObject(c)?re.merge.call({caseless:p},d,c):re.isPlainObject(c)?re.merge({},c):re.isArray(c)?c.slice():c}function i(d,c,h,p){if(re.isUndefined(c)){if(!re.isUndefined(d))return n(void 0,d,h,p)}else return n(d,c,h,p)}function r(d,c){if(!re.isUndefined(c))return n(void 0,c)}function o(d,c){if(re.isUndefined(c)){if(!re.isUndefined(d))return n(void 0,d)}else return n(void 0,c)}function l(d,c,h){if(h in t)return n(d,c);if(h in e)return n(void 0,d)}const u={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,responseEncoding:o,validateStatus:l,headers:(d,c,h)=>i(vp(d),vp(c),h,!0)};return re.forEach(Object.keys(Object.assign({},e,t)),function(c){const h=u[c]||i,p=h(e[c],t[c],c);re.isUndefined(p)&&h!==l||(s[c]=p)}),s}const rb=e=>{const t=Zi({},e);let{data:s,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:r,headers:o,auth:l}=t;t.headers=o=ms.from(o),t.url=Xv(ib(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(re.isFormData(s)){if(zt.hasStandardBrowserEnv||zt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[d,...c]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...c].join("; "))}}if(zt.hasStandardBrowserEnv&&(n&&re.isFunction(n)&&(n=n(t)),n||n!==!1&&Q$(t.url))){const d=i&&r&&j$.read(r);d&&o.set(i,d)}return t},K$=typeof XMLHttpRequest<"u",H$=K$&&function(e){return new Promise(function(s,n){const i=rb(e);let r=i.data;const o=ms.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=i,c,h,p,m,g;function C(){m&&m(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function A(){if(!y)return;const S=ms.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),$={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:e,request:y};nb(function(j){s(j),C()},function(j){n(j),C()},$),y=null}"onloadend"in y?y.onloadend=A:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(A)},y.onabort=function(){y&&(n(new Ye("Request aborted",Ye.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new Ye("Network Error",Ye.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const $=i.transitional||eb;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),n(new Ye(_,$.clarifyTimeoutError?Ye.ETIMEDOUT:Ye.ECONNABORTED,e,y)),y=null},r===void 0&&o.setContentType(null),"setRequestHeader"in y&&re.forEach(o.toJSON(),function(_,$){y.setRequestHeader($,_)}),re.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),l&&l!=="json"&&(y.responseType=i.responseType),d&&([p,g]=al(d,!0),y.addEventListener("progress",p)),u&&y.upload&&([h,m]=al(u),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(c=S=>{y&&(n(!S||S.type?new Jr(null,e,y):S),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const x=L$(i.url);if(x&&zt.protocols.indexOf(x)===-1){n(new Ye("Unsupported protocol "+x+":",Ye.ERR_BAD_REQUEST,e));return}y.send(r||null)})},G$=(e,t)=>{const{length:s}=e=e?e.filter(Boolean):[];if(t||s){let n=new AbortController,i;const r=function(d){if(!i){i=!0,l();const c=d instanceof Error?d:this.reason;n.abort(c instanceof Ye?c:new Jr(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,r(new Ye(`timeout ${t} of ms exceeded`,Ye.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),e=null)};e.forEach(d=>d.addEventListener("abort",r));const{signal:u}=n;return u.unsubscribe=()=>re.asap(l),u}},W$=function*(e,t){let s=e.byteLength;if(s<t){yield e;return}let n=0,i;for(;n<s;)i=n+t,yield e.slice(n,i),n=i},z$=async function*(e,t){for await(const s of Y$(e))yield*W$(s,t)},Y$=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:s,value:n}=await t.read();if(s)break;yield n}}finally{await t.cancel()}},bp=(e,t,s,n)=>{const i=z$(e,t);let r=0,o,l=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:c}=await i.next();if(d){l(),u.close();return}let h=c.byteLength;if(s){let p=r+=h;s(p)}u.enqueue(new Uint8Array(c))}catch(d){throw l(d),d}},cancel(u){return l(u),i.return()}},{highWaterMark:2})},Hl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ab=Hl&&typeof ReadableStream=="function",Z$=Hl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ob=(e,...t)=>{try{return!!e(...t)}catch{return!1}},J$=ab&&ob(()=>{let e=!1;const t=new Request(zt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yp=64*1024,Nc=ab&&ob(()=>re.isReadableStream(new Response("").body)),ol={stream:Nc&&(e=>e.body)};Hl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ol[t]&&(ol[t]=re.isFunction(e[t])?s=>s[t]():(s,n)=>{throw new Ye(`Response type '${t}' is not supported`,Ye.ERR_NOT_SUPPORT,n)})})})(new Response);const X$=async e=>{if(e==null)return 0;if(re.isBlob(e))return e.size;if(re.isSpecCompliantForm(e))return(await new Request(zt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(re.isArrayBufferView(e)||re.isArrayBuffer(e))return e.byteLength;if(re.isURLSearchParams(e)&&(e=e+""),re.isString(e))return(await Z$(e)).byteLength},eT=async(e,t)=>{const s=re.toFiniteNumber(e.getContentLength());return s??X$(t)},tT=Hl&&(async e=>{let{url:t,method:s,data:n,signal:i,cancelToken:r,timeout:o,onDownloadProgress:l,onUploadProgress:u,responseType:d,headers:c,withCredentials:h="same-origin",fetchOptions:p}=rb(e);d=d?(d+"").toLowerCase():"text";let m=G$([i,r&&r.toAbortSignal()],o),g;const C=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(u&&J$&&s!=="get"&&s!=="head"&&(y=await eT(c,n))!==0){let $=new Request(t,{method:"POST",body:n,duplex:"half"}),V;if(re.isFormData(n)&&(V=$.headers.get("content-type"))&&c.setContentType(V),$.body){const[j,R]=mp(y,al(gp(u)));n=bp($.body,yp,j,R)}}re.isString(h)||(h=h?"include":"omit");const A="credentials"in Request.prototype;g=new Request(t,{...p,signal:m,method:s.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:A?h:void 0});let x=await fetch(g);const S=Nc&&(d==="stream"||d==="response");if(Nc&&(l||S&&C)){const $={};["status","statusText","headers"].forEach(E=>{$[E]=x[E]});const V=re.toFiniteNumber(x.headers.get("content-length")),[j,R]=l&&mp(V,al(gp(l),!0))||[];x=new Response(bp(x.body,yp,j,()=>{R&&R(),C&&C()}),$)}d=d||"text";let _=await ol[re.findKey(ol,d)||"text"](x,e);return!S&&C&&C(),await new Promise(($,V)=>{nb($,V,{data:_,headers:ms.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:g})})}catch(A){throw C&&C(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new Ye("Network Error",Ye.ERR_NETWORK,e,g),{cause:A.cause||A}):Ye.from(A,A&&A.code,e,g)}}),kc={http:g$,xhr:H$,fetch:tT};re.forEach(kc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _p=e=>`- ${e}`,sT=e=>re.isFunction(e)||e===null||e===!1,lb={getAdapter:e=>{e=re.isArray(e)?e:[e];const{length:t}=e;let s,n;const i={};for(let r=0;r<t;r++){s=e[r];let o;if(n=s,!sT(s)&&(n=kc[(o=String(s)).toLowerCase()],n===void 0))throw new Ye(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+r]=n}if(!n){const r=Object.entries(i).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?r.length>1?`since :
|
|
33
|
+
`+r.map(_p).join(`
|
|
34
|
+
`):" "+_p(r[0]):"as no adapter specified";throw new Ye("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:kc};function Ru(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Jr(null,e)}function Ep(e){return Ru(e),e.headers=ms.from(e.headers),e.data=Du.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lb.getAdapter(e.adapter||no.adapter)(e).then(function(n){return Ru(e),n.data=Du.call(e,e.transformResponse,n),n.headers=ms.from(n.headers),n},function(n){return sb(n)||(Ru(e),n&&n.response&&(n.response.data=Du.call(e,e.transformResponse,n.response),n.response.headers=ms.from(n.response.headers))),Promise.reject(n)})}const ub="1.8.4",Gl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gl[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const wp={};Gl.transitional=function(t,s,n){function i(r,o){return"[Axios v"+ub+"] Transitional option '"+r+"'"+o+(n?". "+n:"")}return(r,o,l)=>{if(t===!1)throw new Ye(i(o," has been removed"+(s?" in "+s:"")),Ye.ERR_DEPRECATED);return s&&!wp[o]&&(wp[o]=!0,console.warn(i(o," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(r,o,l):!0}};Gl.spelling=function(t){return(s,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function nT(e,t,s){if(typeof e!="object")throw new Ye("options must be an object",Ye.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const r=n[i],o=t[r];if(o){const l=e[r],u=l===void 0||o(l,r,e);if(u!==!0)throw new Ye("option "+r+" must be "+u,Ye.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new Ye("Unknown option "+r,Ye.ERR_BAD_OPTION)}}const Bo={assertOptions:nT,validators:Gl},en=Bo.validators;let Ui=class{constructor(t){this.defaults=t,this.interceptors={request:new hp,response:new hp}}async request(t,s){try{return await this._request(t,s)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const r=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?r&&!String(n.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
35
|
+
`+r):n.stack=r}catch{}}throw n}}_request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Zi(this.defaults,s);const{transitional:n,paramsSerializer:i,headers:r}=s;n!==void 0&&Bo.assertOptions(n,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),i!=null&&(re.isFunction(i)?s.paramsSerializer={serialize:i}:Bo.assertOptions(i,{encode:en.function,serialize:en.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Bo.assertOptions(s,{baseUrl:en.spelling("baseURL"),withXsrfToken:en.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let o=r&&re.merge(r.common,r[s.method]);r&&re.forEach(["delete","get","head","post","put","patch","common"],g=>{delete r[g]}),s.headers=ms.concat(o,r);const l=[];let u=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(s)===!1||(u=u&&C.synchronous,l.unshift(C.fulfilled,C.rejected))});const d=[];this.interceptors.response.forEach(function(C){d.push(C.fulfilled,C.rejected)});let c,h=0,p;if(!u){const g=[Ep.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,d),p=g.length,c=Promise.resolve(s);h<p;)c=c.then(g[h++],g[h++]);return c}p=l.length;let m=s;for(h=0;h<p;){const g=l[h++],C=l[h++];try{m=g(m)}catch(y){C.call(this,y);break}}try{c=Ep.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,p=d.length;h<p;)c=c.then(d[h++],d[h++]);return c}getUri(t){t=Zi(this.defaults,t);const s=ib(t.baseURL,t.url,t.allowAbsoluteUrls);return Xv(s,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){Ui.prototype[t]=function(s,n){return this.request(Zi(n||{},{method:t,url:s,data:(n||{}).data}))}});re.forEach(["post","put","patch"],function(t){function s(n){return function(r,o,l){return this.request(Zi(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Ui.prototype[t]=s(),Ui.prototype[t+"Form"]=s(!0)});let iT=class cb{constructor(t){if(typeof t!="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(l=>{n.subscribe(l),r=l}).then(i);return o.cancel=function(){n.unsubscribe(r)},o},t(function(r,o,l){n.reason||(n.reason=new Jr(r,o,l),s(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const t=new AbortController,s=n=>{t.abort(n)};return this.subscribe(s),t.signal.unsubscribe=()=>this.unsubscribe(s),t.signal}static source(){let t;return{token:new cb(function(i){t=i}),cancel:t}}};function rT(e){return function(s){return e.apply(null,s)}}function aT(e){return re.isObject(e)&&e.isAxiosError===!0}const Pc={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};Object.entries(Pc).forEach(([e,t])=>{Pc[t]=e});function db(e){const t=new Ui(e),s=jv(Ui.prototype.request,t);return re.extend(s,Ui.prototype,t,{allOwnKeys:!0}),re.extend(s,t,null,{allOwnKeys:!0}),s.create=function(i){return db(Zi(e,i))},s}const Ot=db(no);Ot.Axios=Ui;Ot.CanceledError=Jr;Ot.CancelToken=iT;Ot.isCancel=sb;Ot.VERSION=ub;Ot.toFormData=Kl;Ot.AxiosError=Ye;Ot.Cancel=Ot.CanceledError;Ot.all=function(t){return Promise.all(t)};Ot.spread=rT;Ot.isAxiosError=aT;Ot.mergeConfig=Zi;Ot.AxiosHeaders=ms;Ot.formToJSON=e=>tb(re.isHTMLForm(e)?new FormData(e):e);Ot.getAdapter=lb.getAdapter;Ot.HttpStatusCode=Pc;Ot.default=Ot;const{Axios:o6,AxiosError:l6,CanceledError:u6,isCancel:c6,CancelToken:d6,VERSION:f6,all:h6,Cancel:p6,isAxiosError:m6,spread:g6,toFormData:v6,AxiosHeaders:b6,HttpStatusCode:y6,formToJSON:_6,getAdapter:E6,mergeConfig:w6}=Ot,oT=kS("API_URL").replace(/\/+$/,""),lT=Ot.create({baseURL:oT,headers:{"Content-Type":"application/json"}}),st=e=>{const t=Ot.CancelToken.source(),s=lT({...e,cancelToken:t.token}).then(n=>n.data).catch(n=>{var i;throw(i=n.response)!=null&&i.data.error?{error:n.response.data.error}:n});return s.cancel=()=>{t.cancel("Query was cancelled")},s},uT=e=>st({url:"/api/v1/exchanges",method:"GET",signal:e}),Si=()=>["api","v1","exchanges"],cT=e=>{const{query:t}={};return{queryKey:Si(),queryFn:({signal:i})=>uT(i),...t}};function fb(e,t){const s=cT(),n=vs(s);return n.queryKey=O(s).queryKey,n}const dT=(e,t)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}`,method:"DELETE"})),fT=e=>{const t=["deleteApiV1NamespacesNsExchangesFanoutFanout"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,fanout:o}=i??{};return dT(r,o)},...s}},Id=(e,t)=>{const s=fT(e);return Ft(s)},hT=(e,t,s)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues`,method:"GET",signal:s})),Dc=(e,t)=>["api","v1","namespaces",e,"exchanges","fanout",t,"queues"],pT=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Dc(e,t),queryFn:({signal:o})=>hT(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function hb(e,t,s,n){const i=pT(e,t,s),r=vs(i);return r.queryKey=O(i).queryKey,r}const mT=(e,t,s)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues/${s}`,method:"PUT"})),gT=e=>{const t=["putApiV1NamespacesNsExchangesFanoutFanoutQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,fanout:o,queue:l}=i??{};return mT(r,o,l)},...s}},Md=(e,t)=>{const s=gT(e);return Ft(s)},vT=(e,t,s)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues/${s}`,method:"DELETE"})),bT=e=>{const t=["deleteApiV1NamespacesNsExchangesFanoutFanoutQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,fanout:o,queue:l}=i??{};return vT(r,o,l)},...s}},yT=(e,t)=>{const s=bT(e);return Ft(s)},_T=(e,t)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}`,method:"DELETE"})),ET=e=>{const t=["deleteApiV1NamespacesNsExchangesDirectDirect"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,direct:o}=i??{};return _T(r,o)},...s}},qd=(e,t)=>{const s=ET(e);return Ft(s)},wT=(e,t,s)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/routing-keys`,method:"GET",signal:s})),Rc=(e,t)=>["api","v1","namespaces",e,"exchanges","direct",t,"routing-keys"],CT=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Rc(e,t),queryFn:({signal:o})=>wT(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function pb(e,t,s,n){const i=CT(e,t,s),r=vs(i);return r.queryKey=O(i).queryKey,r}const AT=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues`,method:"GET",params:O(s),signal:n})),Ic=(e,t,s)=>["api","v1","namespaces",e,"exchanges","direct",t,"queues",...s?[s]:[]],ST=(e,t,s,n)=>{const{query:i}=n??{};return{queryKey:Ic(e,t,s),queryFn:({signal:l})=>AT(e,t,s,l),enabled:v(()=>!!(O(e)&&O(t))),...i}};function mb(e,t,s,n,i){const r=ST(e,t,s,n),o=vs(r);return o.queryKey=O(r).queryKey,o}const $T=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),n=O(n),st({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues/${s}`,method:"PUT",params:O(n)})),TT=e=>{const t=["putApiV1NamespacesNsExchangesDirectDirectQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,direct:o,queue:l,params:u}=i??{};return $T(r,o,l,u)},...s}},Ld=(e,t)=>{const s=TT(e);return Ft(s)},xT=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),n=O(n),st({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues/${s}`,method:"DELETE",params:O(n)})),OT=e=>{const t=["deleteApiV1NamespacesNsExchangesDirectDirectQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,direct:o,queue:l,params:u}=i??{};return xT(r,o,l,u)},...s}},NT=(e,t)=>{const s=OT(e);return Ft(s)},kT=(e,t)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}`,method:"DELETE"})),PT=e=>{const t=["deleteApiV1NamespacesNsExchangesTopicTopic"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,topic:o}=i??{};return kT(r,o)},...s}},Fd=(e,t)=>{const s=PT(e);return Ft(s)},DT=(e,t,s)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/binding-patterns`,method:"GET",signal:s})),Mc=(e,t)=>["api","v1","namespaces",e,"exchanges","topic",t,"binding-patterns"],RT=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Mc(e,t),queryFn:({signal:o})=>DT(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function gb(e,t,s,n){const i=RT(e,t,s),r=vs(i);return r.queryKey=O(i).queryKey,r}const IT=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues`,method:"GET",params:O(s),signal:n})),qc=(e,t,s)=>["api","v1","namespaces",e,"exchanges","topic",t,"queues",...s?[s]:[]],MT=(e,t,s,n)=>{const{query:i}=n??{};return{queryKey:qc(e,t,s),queryFn:({signal:l})=>IT(e,t,s,l),enabled:v(()=>!!(O(e)&&O(t))),...i}};function vb(e,t,s,n,i){const r=MT(e,t,s,n),o=vs(r);return o.queryKey=O(r).queryKey,o}const qT=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),n=O(n),st({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues/${s}`,method:"PUT",params:O(n)})),LT=e=>{const t=["putApiV1NamespacesNsExchangesTopicTopicQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,topic:o,queue:l,params:u}=i??{};return qT(r,o,l,u)},...s}},Vd=(e,t)=>{const s=LT(e);return Ft(s)},FT=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),n=O(n),st({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues/${s}`,method:"DELETE",params:O(n)})),VT=e=>{const t=["deleteApiV1NamespacesNsExchangesTopicTopicQueuesQueue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,topic:o,queue:l,params:u}=i??{};return FT(r,o,l,u)},...s}},QT=(e,t)=>{const s=VT(e);return Ft(s)},os=Fl("pageContent",()=>{const e=we({pageTitle:"",pageSubtitle:void 0,pageIcon:void 0,pageActions:[],sectionTitle:void 0,sectionMeta:void 0,isLoading:!1,error:null,isEmpty:!1,emptyStateConfig:void 0}),t=v(()=>e.value.pageActions.length>0),s=v(()=>!!(e.value.sectionTitle||e.value.sectionMeta)),n=v(()=>!!e.value.error),i=v(()=>e.value.isEmpty&&!e.value.isLoading&&!n.value);function r(y){e.value.pageTitle=y.title,e.value.pageSubtitle=y.subtitle,e.value.pageIcon=y.icon}function o(y){e.value.pageActions=y}function l(y){const A=e.value.pageActions.findIndex(x=>x.id===y.id);A>=0?e.value.pageActions[A]=y:e.value.pageActions.push(y)}function u(y){e.value.pageActions=e.value.pageActions.filter(A=>A.id!==y)}function d(y,A){const x=e.value.pageActions.find(S=>S.id===y);x&&Object.assign(x,A)}function c(y){e.value.sectionTitle=y.title,e.value.sectionMeta=y.meta}function h(y){e.value.isLoading=y,y&&(e.value.error=null)}function p(y){e.value.error=y,y&&(e.value.isLoading=!1)}function m(y,A){e.value.isEmpty=y,e.value.emptyStateConfig=A}function g(){e.value={pageTitle:"",pageSubtitle:void 0,pageIcon:void 0,pageActions:[],sectionTitle:void 0,sectionMeta:void 0,isLoading:!1,error:null,isEmpty:!1,emptyStateConfig:void 0}}function C(y){Object.assign(e.value,y)}return{state:e,hasPageActions:t,hasSectionHeader:s,hasError:n,showEmptyState:i,setPageHeader:r,setPageActions:o,addPageAction:l,removePageAction:u,updatePageAction:d,setSectionHeader:c,setLoadingState:h,setErrorState:p,setEmptyState:m,resetPageContent:g,setPageContent:C}});function bb(e){return typeof e=="object"&&e!==null}function jT(e){return!bb(e)||!("message"in e)?!1:typeof e.message=="string"}function BT(e){return!bb(e)||!("details"in e)?!1:typeof e.details=="object"&&e.details!==null}function ft(e){var t;if(e==null)return null;if(typeof e=="string"){const s=e.trim();return s?{message:s}:null}if(e instanceof Error)return{message:((t=e.message)==null?void 0:t.trim())||e.name||"Unknown error",details:{name:e.name,stack:e.stack??void 0}};if(jT(e)){const s={message:e.message.trim()};if(s.message)return BT(e)&&(s.details=e.details),s}return{message:"An unexpected error occurred"}}const UT={class:"page-content"},KT={key:0,class:"page-header"},HT={class:"page-header-content"},GT={class:"page-title-section"},WT={key:0,class:"page-icon"},zT={key:0,class:"emoji-icon"},YT={class:"title-content"},ZT={class:"page-title"},JT={key:0,class:"page-subtitle"},XT={key:0,class:"page-actions"},ex=["disabled","title","onClick"],tx={class:"btn-text"},sx={class:"content-section"},nx={key:0,class:"section-header"},ix={key:0,class:"section-title"},rx={key:1,class:"section-meta"},ax={key:1,class:"state-container loading-state"},ox={class:"state-content"},lx={class:"loading-spinner"},ux={class:"spinner-border",role:"status"},cx={class:"visually-hidden"},dx={class:"state-title"},fx={class:"state-message"},hx={key:2,class:"state-container error-state"},px={class:"state-content"},mx={class:"state-title"},gx={class:"state-message"},vx={key:0,class:"state-details"},bx={class:"state-actions"},yx={key:3,class:"state-container empty-state"},_x={class:"state-content"},Ex={class:"state-icon empty-icon"},wx={key:0,class:"emoji-icon"},Cx={class:"state-title"},Ax={class:"state-message"},Sx={class:"state-actions"},$x={key:4,class:"main-content"},Tx=ze({__name:"PageContent",props:{showPageHeader:{type:Boolean,default:!0},showSectionHeader:{type:Boolean,default:!0},loadingMessage:{default:"Please wait while we load the content..."},loadingTitle:{default:"Loading"}},setup(e){const t=e,s=os(),n=v(()=>s.state),i=v(()=>s.hasPageActions),r=v(()=>s.hasSectionHeader),o=v(()=>s.hasError),l=v(()=>s.showEmptyState);function u(p){if(!p||p.includes("bi-")||p.includes("bi ")||p.includes("-")||p.includes(" "))return!1;const m=p.trim();return m.length>=1&&m.length<=4&&!/^[a-zA-Z]/.test(m)&&!/\d+$/.test(m)}function d(p){!p.disabled&&!p.loading&&p.handler()}function c(){var p;(p=n.value.emptyStateConfig)!=null&&p.actionHandler&&n.value.emptyStateConfig.actionHandler()}function h(p){return`btn ${{primary:"btn-primary",secondary:"btn-secondary",danger:"btn-danger",refresh:"btn-refresh"}[p.variant||"refresh"]}`}return(p,m)=>{var g,C,y;return k(),I("div",UT,[p.showPageHeader?(k(),I("div",KT,[a("div",HT,[a("div",GT,[n.value.pageIcon?(k(),I("div",WT,[u(n.value.pageIcon)?(k(),I("span",zT,F(n.value.pageIcon),1)):(k(),I("i",{key:1,class:De(n.value.pageIcon)},null,2))])):me("",!0),a("div",YT,[a("h1",ZT,F(n.value.pageTitle),1),n.value.pageSubtitle?(k(),I("p",JT,F(n.value.pageSubtitle),1)):me("",!0)])])]),i.value?(k(),I("div",XT,[(k(!0),I($e,null,At(n.value.pageActions,A=>(k(),I("button",{key:A.id,class:De(h(A)),disabled:A.disabled||A.loading,title:A.tooltip||A.label,onClick:x=>d(A)},[A.icon&&u(A.icon)?(k(),I("span",{key:0,class:De([{"spin-emoji":A.loading},"action-emoji"])},F(A.icon),3)):A.icon?(k(),I("i",{key:1,class:De([A.icon,{spin:A.loading}])},null,2)):me("",!0),a("span",tx,F(A.label),1)],10,ex))),128))])):me("",!0)])):me("",!0),a("div",sx,[t.showSectionHeader&&r.value?(k(),I("div",nx,[n.value.sectionTitle?(k(),I("h2",ix,F(n.value.sectionTitle),1)):me("",!0),n.value.sectionMeta?(k(),I("div",rx,F(n.value.sectionMeta),1)):me("",!0)])):me("",!0),n.value.isLoading?(k(),I("div",ax,[a("div",ox,[a("div",lx,[a("div",ux,[a("span",cx,F(t.loadingMessage),1)])]),a("h3",dx,F(t.loadingTitle),1),a("p",fx,F(t.loadingMessage),1)])])):o.value?(k(),I("div",hx,[a("div",px,[m[0]||(m[0]=a("div",{class:"state-icon error-icon"},[a("span",{class:"emoji-icon"},"⚠️")],-1)),a("h3",mx,F(((g=n.value.error)==null?void 0:g.title)||"An unexpected error occurred"),1),a("p",gx,F((C=n.value.error)==null?void 0:C.message),1),(y=n.value.error)!=null&&y.details?(k(),I("p",vx,F(n.value.error.details),1)):me("",!0),a("div",bx,[yr(p.$slots,"error-actions",{},void 0)])])])):l.value&&n.value.emptyStateConfig?(k(),I("div",yx,[a("div",_x,[a("div",Ex,[u(n.value.emptyStateConfig.icon)?(k(),I("span",wx,F(n.value.emptyStateConfig.icon),1)):(k(),I("i",{key:1,class:De(n.value.emptyStateConfig.icon)},null,2))]),a("h3",Cx,F(n.value.emptyStateConfig.title),1),a("p",Ax,F(n.value.emptyStateConfig.message),1),a("div",Sx,[yr(p.$slots,"empty-actions",{},()=>[n.value.emptyStateConfig.actionHandler?(k(),I("button",{key:0,class:"btn btn-primary",onClick:c},F(n.value.emptyStateConfig.actionLabel||"Refresh"),1)):me("",!0)])])])])):(k(),I("div",$x,[yr(p.$slots,"default",{},void 0)]))])])}}}),at=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},xs=at(Tx,[["__scopeId","data-v-ebc5c045"]]);function yb(e){rt(e.map(t=>t.isVisible),t=>{if(t.some(n=>n)){const n=i=>{if(i.key==="Escape"){for(const r of e)if(r.isVisible.value){r.onEscape();break}}};return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}},{immediate:!0})}const xx=["aria-labelledby"],Ox={class:"confirmation-content"},Nx={class:"confirmation-icon"},kx={class:"confirmation-title"},Px={class:"confirmation-body"},Dx={class:"confirmation-message"},Rx={key:0,class:"message-preview"},Ix={class:"confirmation-actions"},Mx=["disabled"],qx=["disabled"],Lx={key:0,class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},Fx=ze({__name:"ConfirmationDialogModal",props:{isVisible:{type:Boolean},title:{},message:{},confirmText:{default:"Confirm"},variant:{default:"primary"},isLoading:{type:Boolean,default:!1}},emits:["close","confirm"],setup(e,{emit:t}){const s=e,n=t;function i(){s.isLoading||n("close")}function r(){s.isLoading||n("confirm")}const o=v(()=>{const u={primary:"btn-primary",danger:"btn-danger",warning:"btn-warning",secondary:"btn-secondary"},d={primary:"header-primary",danger:"header-danger",warning:"header-warning",secondary:"header-secondary"};return{btn:u[s.variant]||"btn-primary",header:d[s.variant]||"header-secondary"}}),l=v(()=>{switch(s.variant){case"danger":return"bi-exclamation-triangle-fill";case"warning":return"bi-exclamation-circle-fill";default:return"bi-question-circle-fill"}});return yb([{isVisible:v(()=>s.isVisible),onEscape:i}]),(u,d)=>(k(),gt(Xa,{to:"body"},[u.isVisible?(k(),I("div",{key:0,class:"confirmation-backdrop",onClick:xt(i,["self"])},[a("div",{class:"confirmation-dialog",role:"dialog","aria-modal":"true","aria-labelledby":u.title},[a("div",Ox,[a("header",{class:De(["confirmation-header",o.value.header])},[a("div",Nx,[a("i",{class:De(l.value)},null,2)]),a("h4",kx,F(u.title),1)],2),a("main",Px,[a("p",Dx,F(u.message),1),u.$slots["message-preview"]?(k(),I("div",Rx,[yr(u.$slots,"message-preview",{},void 0)])):me("",!0)]),a("footer",Ix,[a("button",{class:"btn btn-outline-secondary",disabled:u.isLoading,onClick:i}," Cancel ",8,Mx),a("button",{class:De(["btn",o.value.btn]),disabled:u.isLoading,onClick:r},[u.isLoading?(k(),I("span",Lx)):me("",!0),X(" "+F(u.isLoading?"Processing...":u.confirmText),1)],10,qx)])])],8,xx)])):me("",!0)]))}}),Ji=at(Fx,[["__scopeId","data-v-395f493a"]]);var Le=(e=>(e[e.DIRECT=0]="DIRECT",e[e.FANOUT=1]="FANOUT",e[e.TOPIC=2]="TOPIC",e))(Le||{});const Vx=["aria-labelledby"],Qx={class:"modal-content"},jx={class:"modal-header"},Bx={key:0,class:"header-icon"},Ux={class:"header-content"},Kx=["id"],Hx={key:0,class:"modal-subtitle"},Gx={class:"modal-body"},Wx={key:0,class:"modal-footer"},zx=ze({__name:"BaseModal",props:{isVisible:{type:Boolean},title:{},subtitle:{},size:{},icon:{}},emits:["close"],setup(e,{emit:t}){const s=e,n=t,i=v(()=>{switch(s.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}});function r(){n("close")}function o(){n("close")}return(l,u)=>l.isVisible?(k(),gt(Xa,{key:0,to:"body"},[a("div",{class:"modal-overlay",role:"dialog","aria-labelledby":`modal-title-${l.title.replace(/\s+/g,"-").toLowerCase()}`,"aria-modal":"true",onClick:o,onKeydown:ps(r,["esc"])},[a("div",{class:De(["modal-container",i.value]),onClick:u[0]||(u[0]=xt(()=>{},["stop"]))},[a("div",Qx,[a("header",jx,[l.icon?(k(),I("div",Bx,[a("i",{class:De(l.icon)},null,2)])):me("",!0),a("div",Ux,[a("h2",{id:`modal-title-${l.title.replace(/\s+/g,"-").toLowerCase()}`,class:"modal-title"},F(l.title),9,Kx),l.subtitle?(k(),I("p",Hx,F(l.subtitle),1)):me("",!0)]),a("button",{type:"button",class:"btn-close","aria-label":"Close modal",onClick:r},u[1]||(u[1]=[a("i",{class:"bi bi-x"},null,-1)]))]),a("main",Gx,[yr(l.$slots,"body",{},void 0)]),l.$slots.footer?(k(),I("footer",Wx,[yr(l.$slots,"footer",{},void 0)])):me("",!0)])],2)],40,Vx)])):me("",!0)}}),Wl=at(zx,[["__scopeId","data-v-e6ce96d3"]]),Yx={class:"form-content"},Zx={class:"form-section"},Jx={class:"form-grid"},Xx={class:"form-group"},eO=["disabled"],tO={class:"form-group"},sO=["disabled"],nO={class:"form-group"},iO=["disabled"],rO=["value"],aO={id:"exchange-type-help",class:"field-help"},oO={key:0,class:"help-options"},lO={class:"help-option"},uO={class:"form-section"},cO={class:"form-grid"},dO={class:"form-group"},fO=["disabled"],hO={key:0,class:"form-group"},pO=["disabled"],mO={key:1,class:"form-group"},gO=["disabled"],vO={key:0,class:"error-section"},bO={class:"error-content"},yO={class:"error-text"},_O={class:"error-message"},EO=["disabled"],wO=["disabled"],CO=ze({__name:"CreateExchangeModal",props:{isVisible:{type:Boolean},isLoading:{type:Boolean},error:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const s={mounted:S=>S.focus()},n=e,i=t,r=we(""),o=we("default"),l=we(Le.DIRECT),u=we(""),d=we(""),c=we(""),h=[{value:Le.DIRECT,label:"Direct",description:"Routes messages to queues based on exact routing key match"},{value:Le.FANOUT,label:"Fanout",description:"Routes messages to all bound queues (ignores routing key)"},{value:Le.TOPIC,label:"Topic",description:"Routes messages based on wildcard pattern matching (* and #)"}],p=v(()=>h.find(S=>S.value===l.value)),m=v(()=>{const S=r.value.trim()!==""&&o.value.trim()!==""&&u.value.trim()!=="";return l.value===Le.DIRECT?S&&d.value.trim()!=="":l.value===Le.TOPIC?S&&c.value.trim()!=="":S}),g=v(()=>l.value===Le.DIRECT),C=v(()=>l.value===Le.TOPIC),y=v(()=>n.error?ft(n.error):null);function A(){if(m.value&&!n.isLoading){const S={name:r.value.trim(),ns:o.value.trim(),type:l.value,queueName:u.value.trim()};l.value===Le.DIRECT&&d.value.trim()&&(S.routingKey=d.value.trim()),l.value===Le.TOPIC&&c.value.trim()&&(S.bindingPattern=c.value.trim()),i("confirm",S)}}function x(){i("cancel")}return rt(()=>n.isVisible,S=>{S||(r.value="",o.value="default",l.value=Le.DIRECT,u.value="",d.value="",c.value="")}),rt(()=>l.value,()=>{d.value="",c.value=""}),(S,_)=>(k(),gt(Wl,{"is-visible":S.isVisible,title:"Create New Exchange",subtitle:"Configure your message exchange settings",icon:"bi bi-diagram-3-fill",onClose:x},{body:et(()=>[a("div",Yx,[_[21]||(_[21]=a("div",{class:"alert alert-info mb-4"},[a("i",{class:"bi bi-info-circle me-2"}),a("strong",null,"Note:"),X(" Exchanges are created by binding the first queue to them. You'll need to specify both the exchange details and the initial queue binding. ")],-1)),a("form",{onSubmit:xt(A,["prevent"])},[a("section",Zx,[_[11]||(_[11]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),X(" Exchange Details ")]),a("p",{class:"section-description"}," Define the exchange name, namespace, and type ")],-1)),a("div",Jx,[a("div",Xx,[_[6]||(_[6]=a("label",{for:"exchange-name",class:"form-label"},[a("i",{class:"bi bi-diagram-3 label-icon"}),X(" Exchange Name "),a("span",{class:"required-indicator"},"*")],-1)),_s(a("input",{id:"exchange-name","onUpdate:modelValue":_[0]||(_[0]=$=>r.value=$),type:"text",class:"form-control",placeholder:"e.g., user-events",required:"",disabled:S.isLoading,autocomplete:"off","aria-describedby":"exchange-name-help"},null,8,eO),[[Sn,r.value],[s]]),_[7]||(_[7]=a("div",{id:"exchange-name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Use letters, numbers, underscores, and hyphens only ")],-1))]),a("div",tO,[_[8]||(_[8]=a("label",{for:"exchange-ns",class:"form-label"},[a("i",{class:"bi bi-folder-fill label-icon"}),X(" Namespace "),a("span",{class:"required-indicator"},"*")],-1)),_s(a("input",{id:"exchange-ns","onUpdate:modelValue":_[1]||(_[1]=$=>o.value=$),type:"text",class:"form-control",placeholder:"e.g., default",required:"",disabled:S.isLoading,autocomplete:"off","aria-describedby":"exchange-ns-help"},null,8,sO),[[Sn,o.value]]),_[9]||(_[9]=a("div",{id:"exchange-ns-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Organize exchanges by environment or application ")],-1))]),a("div",nO,[_[10]||(_[10]=a("label",{for:"exchange-type",class:"form-label"},[a("i",{class:"bi bi-gear-fill label-icon"}),X(" Exchange Type "),a("span",{class:"required-indicator"},"*")],-1)),_s(a("select",{id:"exchange-type","onUpdate:modelValue":_[2]||(_[2]=$=>l.value=$),class:"form-select",disabled:S.isLoading,"aria-describedby":"exchange-type-help"},[(k(),I($e,null,At(h,$=>a("option",{key:$.value,value:$.value},F($.label),9,rO)),64))],8,iO),[[uv,l.value]]),a("div",aO,[p.value?(k(),I("div",oO,[a("div",lO,[a("strong",null,F(p.value.label)+":",1),X(" "+F(p.value.description),1)])])):me("",!0)])])])]),a("section",uO,[_[18]||(_[18]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-link-45deg section-icon"}),X(" Initial Queue Binding ")]),a("p",{class:"section-description"}," Exchanges are created by binding the first queue to them ")],-1)),a("div",cO,[a("div",dO,[_[12]||(_[12]=a("label",{for:"queue-name",class:"form-label"},[a("i",{class:"bi bi-list-ul label-icon"}),X(" Queue Name "),a("span",{class:"required-indicator"},"*")],-1)),_s(a("input",{id:"queue-name","onUpdate:modelValue":_[3]||(_[3]=$=>u.value=$),type:"text",class:"form-control",placeholder:"e.g., user-notifications",required:"",disabled:S.isLoading,autocomplete:"off","aria-describedby":"queue-name-help"},null,8,fO),[[Sn,u.value]]),_[13]||(_[13]=a("div",{id:"queue-name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" The first queue to bind to this exchange ")],-1))]),g.value?(k(),I("div",hO,[_[14]||(_[14]=a("label",{for:"routing-key",class:"form-label"},[a("i",{class:"bi bi-key-fill label-icon"}),X(" Routing Key "),a("span",{class:"required-indicator"},"*")],-1)),_s(a("input",{id:"routing-key","onUpdate:modelValue":_[4]||(_[4]=$=>d.value=$),type:"text",class:"form-control",placeholder:"e.g., user.created",required:"",disabled:S.isLoading,autocomplete:"off","aria-describedby":"routing-key-help"},null,8,pO),[[Sn,d.value]]),_[15]||(_[15]=a("div",{id:"routing-key-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Messages with this exact routing key will be routed to the queue ")],-1))])):me("",!0),C.value?(k(),I("div",mO,[_[16]||(_[16]=a("label",{for:"binding-pattern",class:"form-label"},[a("i",{class:"bi bi-asterisk label-icon"}),X(" Binding Pattern "),a("span",{class:"required-indicator"},"*")],-1)),_s(a("input",{id:"binding-pattern","onUpdate:modelValue":_[5]||(_[5]=$=>c.value=$),type:"text",class:"form-control",placeholder:"e.g., user.* or user.#",required:"",disabled:S.isLoading,autocomplete:"off","aria-describedby":"binding-pattern-help"},null,8,gO),[[Sn,c.value]]),_[17]||(_[17]=a("div",{id:"binding-pattern-help",class:"field-help"},[a("div",{class:"help-options"},[a("div",{class:"help-option"},[a("strong",null,"*"),X(" matches exactly one word ")]),a("div",{class:"help-option"},[a("strong",null,"#"),X(" matches zero or more words ")])])],-1))])):me("",!0)])]),y.value?(k(),I("div",vO,[a("div",bO,[_[20]||(_[20]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",yO,[_[19]||(_[19]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",_O,F(y.value),1)])])])):me("",!0)],32)])]),footer:et(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:S.isLoading,onClick:x},_[22]||(_[22]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ")]),8,EO),a("button",{type:"button",class:"btn btn-primary",disabled:!m.value||S.isLoading,onClick:A},[S.isLoading?(k(),I($e,{key:0},[_[23]||(_[23]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),_[24]||(_[24]=X(" Creating Exchange... "))],64)):(k(),I($e,{key:1},[_[25]||(_[25]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),_[26]||(_[26]=X(" Create Exchange "))],64))],8,wO)]),_:1},8,["is-visible"]))}}),_b=at(CO,[["__scopeId","data-v-b1fc3af7"]]);var Eb=(e=>(e[e.UNPUBLISHED=-1]="UNPUBLISHED",e[e.SCHEDULED=0]="SCHEDULED",e[e.PENDING=1]="PENDING",e[e.PROCESSING=2]="PROCESSING",e[e.ACKNOWLEDGED=3]="ACKNOWLEDGED",e[e.UNACK_DELAYING=4]="UNACK_DELAYING",e[e.UNACK_REQUEUING=5]="UNACK_REQUEUING",e[e.DEAD_LETTERED=6]="DEAD_LETTERED",e))(Eb||{}),Es=(e=>(e[e.POINT_TO_POINT=0]="POINT_TO_POINT",e[e.PUB_SUB=1]="PUB_SUB",e))(Es||{}),ts=(e=>(e[e.LIFO_QUEUE=0]="LIFO_QUEUE",e[e.FIFO_QUEUE=1]="FIFO_QUEUE",e[e.PRIORITY_QUEUE=2]="PRIORITY_QUEUE",e))(ts||{});const AO=["aria-label"],SO={key:0,class:"loading-overlay",role:"status","aria-live":"polite"},$O={class:"card-header"},TO={class:"header-content"},xO=["title"],OO={class:"header-text"},NO=["title"],kO={class:"card-subtitle"},PO=["aria-label","aria-expanded","onKeydown"],DO={key:0,class:"dropdown-menu",role:"menu","aria-label":"Exchange actions"},RO={class:"card-body"},IO={key:0,class:"body-loading-overlay",role:"status","aria-live":"polite"},MO={key:1,class:"error-state",role:"alert"},qO={class:"error-message"},LO={class:"stats-section"},FO={class:"stat-item"},VO=["aria-label"],QO={class:"stat-label"},jO={class:"queues-section"},BO={class:"queues-title"},UO={key:0,class:"metadata-info"},KO={key:0,class:"queues-list",role:"list"},HO={class:"queue-info"},GO={class:"queue-name"},WO=["aria-label","onClick"],zO={key:0,class:"queue-item more",role:"listitem"},YO={class:"queue-info"},ZO={key:1,class:"no-queues-message"},JO={class:"card-footer"},XO=["aria-label"],Cp=10,eN=ze({__name:"ExchangeCard",props:{exchange:{},isDeleting:{type:Boolean}},emits:["delete","viewDetails","bindQueue","unbindQueue","publishMessage"],setup(e,{emit:t}){const s=e,n=t,i=v(()=>s.exchange.type===Le.DIRECT),r=v(()=>s.exchange.type===Le.TOPIC),o=v(()=>s.exchange.type===Le.FANOUT),{data:l,isLoading:u,error:d,refetch:c}=pb(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:i}}),{data:h,isLoading:p,error:m,refetch:g}=gb(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:r}}),{data:C,isLoading:y,error:A,refetch:x}=hb(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:o}}),S=v(()=>{var D;return s.exchange.type!==Le.DIRECT?[]:((D=l.value)==null?void 0:D.data)||[]}),_=v(()=>{var D;return s.exchange.type!==Le.TOPIC?[]:((D=h.value)==null?void 0:D.data)||[]}),$=Array.from({length:Cp},(D,B)=>{const J=v(()=>S.value[B]||""),ce=v(()=>s.exchange.type===Le.DIRECT&&B<S.value.length&&!!S.value[B]);return mb(v(()=>s.exchange.ns),v(()=>s.exchange.name),v(()=>({routingKey:J.value})),{query:{enabled:ce}})}),V=Array.from({length:Cp},(D,B)=>{const J=v(()=>_.value[B]||""),ce=v(()=>s.exchange.type===Le.TOPIC&&B<_.value.length&&!!_.value[B]);return vb(v(()=>s.exchange.ns),v(()=>s.exchange.name),v(()=>({bindingPattern:J.value})),{query:{enabled:ce}})}),j=v(()=>{switch(s.exchange.type){case Le.DIRECT:return u.value||$.some((D,B)=>B<S.value.length&&D.isLoading.value);case Le.FANOUT:return y.value;case Le.TOPIC:return p.value||V.some((D,B)=>B<_.value.length&&D.isLoading.value);default:return!1}}),R=v(()=>{var D,B;switch(s.exchange.type){case Le.DIRECT:return d.value||((D=$.find((J,ce)=>ce<S.value.length&&J.error.value))==null?void 0:D.error.value);case Le.FANOUT:return A.value;case Le.TOPIC:return m.value||((B=V.find((J,ce)=>ce<_.value.length&&J.error.value))==null?void 0:B.error.value);default:return null}}),E=v(()=>!!R.value),T=v(()=>ft(R.value)),N=()=>{switch(s.exchange.type){case Le.DIRECT:c(),$.forEach((D,B)=>{B<S.value.length&&D.refetch()});break;case Le.FANOUT:x();break;case Le.TOPIC:g(),V.forEach((D,B)=>{B<_.value.length&&D.refetch()});break}},w=v(()=>{var P;let D=[],B=[],J=[];const ce=s.exchange.type;if(ce===Le.DIRECT)$.forEach((M,U)=>{var ae,oe;if(U>=S.value.length)return;const ie=(oe=(ae=M.data)==null?void 0:ae.value)==null?void 0:oe.data;if(ie&&Array.isArray(ie)){const pe=ie.map(ge=>ge.name).filter(Boolean);D.push(...pe),pe.length>0&&B.push(S.value[U])}});else if(ce===Le.FANOUT){const M=(P=C.value)==null?void 0:P.data;M&&Array.isArray(M)&&(D=M.map(U=>U.name).filter(Boolean))}else V.forEach((M,U)=>{var ae,oe;if(U>=_.value.length)return;const ie=(oe=(ae=M.data)==null?void 0:ae.value)==null?void 0:oe.data;if(ie&&Array.isArray(ie)){const pe=ie.map(ge=>ge.name).filter(Boolean);D.push(...pe),pe.length>0&&J.push(_.value[U])}});const Y=[...new Set(D)];return{items:Y,total:Y.length,routingKeys:B,bindingPatterns:J}}),z=we(!1),se=we(null),ne=D=>{se.value&&!se.value.contains(D.target)&&(z.value=!1)},te=D=>{D.key==="Escape"&&z.value&&(z.value=!1)};gs(()=>{document.addEventListener("click",ne),document.addEventListener("keydown",te)}),Dl(()=>{document.removeEventListener("click",ne),document.removeEventListener("keydown",te)});const W=v(()=>{switch(s.exchange.type){case Le.DIRECT:return{icon:"bi-arrow-right",color:"direct",name:"Direct",description:"Routes messages to queues based on exact routing key matches"};case Le.FANOUT:return{icon:"bi-arrows-angle-expand",color:"fanout",name:"Fanout",description:"Broadcasts messages to all bound queues"};case Le.TOPIC:return{icon:"bi-hash",color:"topic",name:"Topic",description:"Routes messages based on routing key patterns"};default:return{icon:"bi-question-circle",color:"gray",name:"Unknown",description:"Unknown exchange type"}}}),ee=v(()=>w.value.items.slice(0,3)),fe=v(()=>Math.max(0,w.value.total-ee.value.length)),Oe=v(()=>{var D,B;switch(s.exchange.type){case Le.DIRECT:return(D=w.value.routingKeys)!=null&&D.length?`${w.value.routingKeys.length} routing key${w.value.routingKeys.length>1?"s":""}`:null;case Le.TOPIC:return(B=w.value.bindingPatterns)!=null&&B.length?`${w.value.bindingPatterns.length} binding pattern${w.value.bindingPatterns.length>1?"s":""}`:null;default:return null}}),Ue=()=>{z.value=!1,n("delete",s.exchange)},ue=()=>{z.value=!1,n("bindQueue",s.exchange)},ve=D=>{z.value=!1,n("unbindQueue",{exchange:s.exchange,queueName:D})},Re=()=>{z.value=!1,n("publishMessage",s.exchange)},_e=()=>{n("viewDetails",s.exchange)},K=()=>{z.value=!z.value};return(D,B)=>(k(),I("article",{class:De(["exchange-card",{"is-deleting":D.isDeleting}]),role:"article","aria-label":`${W.value.name} exchange ${D.exchange.name} in ${D.exchange.ns} namespace`},[D.isDeleting?(k(),I("div",SO,B[0]||(B[0]=[a("div",{class:"spinner-border text-light",role:"status","aria-hidden":"true"},null,-1),a("span",{class:"loading-text"},"Deleting exchange...",-1)]))):me("",!0),a("header",$O,[a("div",TO,[a("div",{class:De(["header-icon",W.value.color]),title:W.value.description},[a("i",{class:De(["bi",W.value.icon]),"aria-hidden":"true"},null,2)],10,xO),a("div",OO,[a("h3",{class:"card-title",title:D.exchange.name},F(D.exchange.name),9,NO),a("span",kO,F(W.value.name)+" Exchange in '"+F(D.exchange.ns)+"' ",1)])]),a("div",{ref_key:"dropdown",ref:se,class:"actions-menu"},[a("button",{type:"button",class:"btn-actions","aria-label":`More options for ${D.exchange.name} exchange`,"aria-expanded":z.value,"aria-haspopup":"true",onClick:K,onKeydown:[ps(K,["enter"]),ps(xt(K,["prevent"]),["space"])]},B[1]||(B[1]=[a("i",{class:"bi bi-three-dots-vertical","aria-hidden":"true"},null,-1)]),40,PO),Ae(vC,{name:"dropdown"},{default:et(()=>[z.value?(k(),I("div",DO,[a("button",{type:"button",class:"dropdown-item",role:"menuitem",onClick:ue},B[2]||(B[2]=[a("i",{class:"bi bi-link-45deg","aria-hidden":"true"},null,-1),a("span",null,"Bind Queue",-1)])),a("button",{type:"button",class:"dropdown-item",role:"menuitem",onClick:Re},B[3]||(B[3]=[a("i",{class:"bi bi-send","aria-hidden":"true"},null,-1),a("span",null,"Publish Message",-1)])),B[5]||(B[5]=a("div",{class:"dropdown-divider",role:"separator"},null,-1)),a("button",{type:"button",class:"dropdown-item danger",role:"menuitem",onClick:Ue},B[4]||(B[4]=[a("i",{class:"bi bi-trash","aria-hidden":"true"},null,-1),a("span",null,"Delete Exchange",-1)]))])):me("",!0)]),_:1})],512)]),a("main",RO,[j.value?(k(),I("div",IO,B[6]||(B[6]=[a("div",{class:"spinner-border text-primary",role:"status","aria-hidden":"true"},null,-1),a("span",null,"Loading queue data...",-1)]))):E.value?(k(),I("div",MO,[B[8]||(B[8]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("p",qO,F(T.value),1),a("button",{type:"button",class:"btn-retry",onClick:N},B[7]||(B[7]=[a("i",{class:"bi bi-arrow-clockwise","aria-hidden":"true"},null,-1),X(" Retry ")]))])):(k(),I($e,{key:2},[a("div",LO,[a("div",FO,[a("span",{class:"stat-value","aria-label":`${w.value.total} queues bound`},F(w.value.total),9,VO),a("span",QO,F(w.value.total===1?"Queue":"Queues")+" Bound ",1)])]),a("div",jO,[a("h4",BO,[B[9]||(B[9]=a("i",{class:"bi bi-card-list me-2","aria-hidden":"true"},null,-1)),X(" "+F(w.value.total>0?"Sample Queues":"Bound Queues")+" ",1),Oe.value?(k(),I("span",UO," ("+F(Oe.value)+") ",1)):me("",!0)]),w.value.total>0?(k(),I("ul",KO,[(k(!0),I($e,null,At(ee.value,J=>(k(),I("li",{key:J,class:"queue-item",role:"listitem"},[a("div",HO,[B[10]||(B[10]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",GO,F(J),1)]),a("button",{type:"button",class:"btn-unbind-queue","aria-label":`Unbind queue ${J}`,onClick:ce=>ve(J)},B[11]||(B[11]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1)]),8,WO)]))),128)),fe.value>0?(k(),I("li",zO,[a("div",YO,[B[12]||(B[12]=a("i",{class:"bi bi-three-dots","aria-hidden":"true"},null,-1)),a("span",null,"+"+F(fe.value)+" more",1)])])):me("",!0)])):(k(),I("div",ZO,[B[14]||(B[14]=a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1)),B[15]||(B[15]=a("p",null,"No queues are bound to this exchange.",-1)),a("button",{type:"button",class:"btn-bind-now",onClick:ue},B[13]||(B[13]=[a("i",{class:"bi bi-link-45deg","aria-hidden":"true"},null,-1),X(" Bind a queue ")]))]))])],64))]),a("footer",JO,[a("button",{type:"button",class:"btn-details","aria-label":`View details for ${D.exchange.name} exchange`,onClick:_e},B[16]||(B[16]=[a("span",null,"View Details",-1),a("i",{class:"bi bi-arrow-right-circle","aria-hidden":"true"},null,-1)]),8,XO)])],10,AO))}}),wb=at(eN,[["__scopeId","data-v-f8df5fef"]]),tN={key:0,class:"grid grid-cols-2 gap-6"},sN=ze({__name:"ExchangesView",setup(e){const t=bs(),s=os(),n=kn(),i=we(!1),r=we(!1),o=we(null),{data:l,isLoading:u,isError:d,error:c,refetch:h}=fb(),p=Id({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Si()}),i.value=!1,o.value=null},onError:ne=>{console.error("Failed to delete fanout exchange:",ne)}}}),m=qd({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Si()}),i.value=!1,o.value=null},onError:ne=>{console.error("Failed to delete direct exchange:",ne)}}}),g=Fd({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Si()}),i.value=!1,o.value=null},onError:ne=>{console.error("Failed to delete topic exchange:",ne)}}}),C=Md({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Si()}),r.value=!1},onError:ne=>{console.error("Failed to create fanout exchange:",ne)}}}),y=Ld({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Si()}),r.value=!1},onError:ne=>{console.error("Failed to create direct exchange:",ne)}}}),A=Vd({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:Si()}),r.value=!1},onError:ne=>{console.error("Failed to create topic exchange:",ne)}}}),x=v(()=>p.isPending.value||m.isPending.value||g.isPending.value),S=v(()=>C.isPending.value||y.isPending.value||A.isPending.value),_=v(()=>{var ne,te,W;return ft(((ne=C.error.value)==null?void 0:ne.error)||((te=y.error.value)==null?void 0:te.error)||((W=A.error.value)==null?void 0:W.error))}),$=v(()=>{var ne;return((ne=l.value)==null?void 0:ne.data)??[]}),V=v(()=>ft(c.value)),j=ne=>{o.value=ne,i.value=!0},R=()=>{r.value=!0},E=ne=>{console.log("Binding queue to:",ne.name)},T=async()=>{if(!o.value)return;const{type:ne,name:te,ns:W}=o.value;try{switch(ne){case Le.FANOUT:await p.mutateAsync({ns:W,fanout:te});break;case Le.DIRECT:await m.mutateAsync({ns:W,direct:te});break;case Le.TOPIC:await g.mutateAsync({ns:W,topic:te});break;default:throw new Error(`Unsupported exchange type: ${ne}`)}}catch(ee){console.error("Failed to delete exchange:",ee)}},N=async ne=>{const{name:te,type:W,ns:ee,queueName:fe,routingKey:Oe,bindingPattern:Ue}=ne;try{switch(W){case Le.FANOUT:await C.mutateAsync({ns:ee,fanout:te,queue:fe});break;case Le.DIRECT:await y.mutateAsync({ns:ee,direct:te,queue:fe,params:{routingKey:String(Oe)}});break;case Le.TOPIC:await A.mutateAsync({ns:ee,topic:te,queue:fe,params:{bindingPattern:String(Ue)}});break;default:throw new Error(`Unsupported exchange type: ${W}`)}}catch(ue){console.error("Failed to create exchange:",ue)}},w=ne=>{const te={exchange:ne.name,ns:ne.ns};return ne.type==Le.DIRECT?{name:"Direct Exchange",params:te}:ne.type==Le.TOPIC?{name:"Topic Exchange",params:te}:{name:"Fanout Exchange",params:te}},z=ne=>{const te=w(ne);t.push(te)},se=v(()=>[{id:"create-exchange",label:"Create Exchange",icon:"bi bi-plus-lg",variant:"primary",disabled:S.value,loading:S.value,handler:R,tooltip:"Create a new exchange by binding a queue to it"},{id:"refresh-exchanges",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:u.value,loading:u.value,handler:()=>h(),tooltip:"Refresh exchanges list"}]);return Dt(()=>{s.setPageHeader({title:"Exchanges",subtitle:"View and manage exchange queue bindings in your RedisSMQ instance",icon:"bi bi-diagram-3"}),s.setPageActions(se.value),s.setLoadingState(u.value),d.value?(s.setErrorState(V.value),s.setEmptyState(!1)):!u.value&&$.value.length===0?(s.setErrorState(null),s.setEmptyState(!0,{icon:"bi bi-diagram-3",title:"No Exchanges Found",message:"No exchanges are currently configured in your RedisSMQ instance. Create your first exchange to start routing messages.",actionLabel:"Create Exchange",actionHandler:R})):(s.setErrorState(null),s.setEmptyState(!1))}),(ne,te)=>{var W;return k(),I("div",null,[Ae(xs,null,{default:et(()=>[$.value.length>0?(k(),I("div",tN,[(k(!0),I($e,null,At($.value,ee=>{var fe,Oe;return k(),gt(wb,{key:`${ee.name}-${ee.ns}`,exchange:ee,"is-deleting":x.value&&((fe=o.value)==null?void 0:fe.name)===ee.name&&((Oe=o.value)==null?void 0:Oe.ns)===ee.ns,onDelete:j,onViewDetails:z,onBindQueue:E},null,8,["exchange","is-deleting"])}),128))])):me("",!0)]),_:1}),Ae(Ji,{"is-visible":i.value,"is-loading":x.value,title:"Delete Exchange",message:`Are you sure you want to delete the exchange '${(W=o.value)==null?void 0:W.name}'? This action cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:T,onClose:te[0]||(te[0]=ee=>{i.value=!1,o.value=null})},null,8,["is-visible","is-loading","message"]),Ae(_b,{"is-visible":r.value,"is-loading":S.value,error:_.value,onConfirm:N,onCancel:te[1]||(te[1]=ee=>r.value=!1)},null,8,["is-visible","is-loading","error"])])}}}),nN=at(sN,[["__scopeId","data-v-3662fcb4"]]),Cb=e=>st({url:"/api/v1/queues",method:"GET",signal:e}),Ab=()=>["api","v1","queues"],iN=e=>{const{query:t}={};return{queryKey:Ab(),queryFn:({signal:i})=>Cb(i),...t}};function rN(e,t){const s=iN(),n=vs(s);return n.queryKey=O(s).queryKey,n}const aN=(e,t)=>(e=O(e),st({url:"/api/v1/queues",method:"POST",headers:{"Content-Type":"application/json"},data:e,signal:t})),oN=e=>{const t=["postApiV1Queues"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{data:r}=i??{};return aN(r)},...s}},lN=(e,t)=>{const s=oN(e);return Ft(s)},Sb=(e,t,s)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/queues/${t}`,method:"GET",signal:s})),$b=(e,t)=>["api","v1","namespaces",e,"queues",t],uN=(e,t,s)=>{const{query:n}=s??{};return{queryKey:$b(e,t),queryFn:({signal:o})=>Sb(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function cN(e,t,s,n){const i=uN(e,t,s),r=vs(i);return r.queryKey=O(i).queryKey,r}const dN=(e,t)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/queues/${t}`,method:"DELETE"})),fN=e=>{const t=["deleteApiV1NamespacesNsQueuesName"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o}=i??{};return dN(r,o)},...s}},hN=(e,t)=>{const s=fN(e);return Ft(s)},Tb=(e,t,s)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/queues/${t}/consumers`,method:"GET",signal:s})),xb=(e,t)=>["api","v1","namespaces",e,"queues",t,"consumers"],pN=(e,t,s)=>{const{query:n}=s??{};return{queryKey:xb(e,t),queryFn:({signal:o})=>Tb(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function mN(e,t,s,n){const i=pN(e,t,s),r=vs(i);return r.queryKey=O(i).queryKey,r}const gN={class:"home-page"},vN={class:"hero-section"},bN={class:"hero-content"},yN={class:"hero-text"},_N={class:"hero-stats"},EN={class:"stat-item"},wN={class:"stat-value"},CN={class:"stat-item"},AN={class:"stat-value"},SN={class:"stat-item"},$N={class:"stat-value"},TN={class:"hero-actions"},xN={class:"dashboard-main"},ON={key:0,class:"loading-section"},NN={key:1,class:"dashboard-content"},kN={class:"overview-section"},PN={class:"stats-grid"},DN={class:"stat-card"},RN={class:"stat-content"},IN={class:"stat-number"},MN={class:"stat-card"},qN={class:"stat-content"},LN={class:"stat-number"},FN={class:"stat-card"},VN={class:"stat-content"},QN={class:"stat-number"},jN={class:"stat-card"},BN={class:"stat-content"},UN={class:"stat-number"},KN={class:"stat-card"},HN={class:"stat-content"},GN={class:"stat-number"},WN={class:"actions-section"},zN={class:"actions-grid"},YN=["onClick"],ZN={class:"action-icon"},JN={class:"action-content"},XN={class:"action-title"},ek={class:"action-description"},tk={class:"getting-started-section"},sk={class:"getting-started-card"},nk={class:"getting-started-content"},ik={class:"getting-started-actions"},rk=ze({__name:"HomeView",setup(e){const t=bs(),s=kn(),n=we({totalQueues:0,totalMessages:0,currentlyInProcess:0,pendingMessages:0,activeConsumers:0,lastUpdated:new Date}),i=[{title:"Create Queue",description:"Set up a new message queue",icon:"bi-plus-circle-fill",color:"primary",action:()=>t.push({name:"Queues"})},{title:"View Queues",description:"Manage existing queues",icon:"bi-list-ul",color:"info",action:()=>t.push({name:"Queues"})},{title:"Monitor Activity",description:"Check system performance",icon:"bi-graph-up",color:"success",action:()=>t.push({name:"Monitoring"})},{title:"Documentation",description:"Learn more about RedisSMQ",icon:"bi-book-fill",color:"secondary",action:()=>window.open("https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq/docs/README.md","_blank")}],r=we(!0),o=v(()=>({totalQueues:n.value.totalQueues.toLocaleString(),totalMessages:n.value.totalMessages.toLocaleString(),pendingMessages:n.value.pendingMessages.toLocaleString(),currentlyInProcess:n.value.currentlyInProcess.toLocaleString(),activeConsumers:n.value.activeConsumers.toLocaleString()})),l=async()=>{try{r.value=!0;const c=(await s.fetchQuery({queryKey:Ab(),queryFn:()=>Cb()})).data;if(!c||c.length===0){Object.assign(n.value,{totalQueues:0,totalMessages:0,pendingMessages:0,currentlyInProcess:0,activeConsumers:0,lastUpdated:new Date});return}const h=c.map(async g=>{const C=s.fetchQuery({queryKey:$b(g.ns,g.name),queryFn:()=>Sb(g.ns,g.name)}),y=s.fetchQuery({queryKey:xb(g.ns,g.name),queryFn:()=>Tb(g.ns,g.name)}),[A,x]=await Promise.all([C,y]),S=A.data,_=x.data??{};return{details:S,consumers:_}}),m=(await Promise.all(h)).reduce((g,C)=>(C.details&&(g.totalMessages+=C.details.messagesCount??0,g.pendingMessages+=C.details.pendingMessagesCount??0,g.currentlyInProcess+=C.details.processingMessagesCount??0),C.consumers&&(g.activeConsumers+=Object.keys(C.consumers).length),g),{totalMessages:0,pendingMessages:0,currentlyInProcess:0,activeConsumers:0});n.value={...m,totalQueues:c.length,lastUpdated:new Date}}catch(d){console.error("Failed to load dashboard data:",d)}finally{r.value=!1}},u=()=>{l()};return gs(()=>{l()}),(d,c)=>(k(),I("div",gN,[a("section",vN,[a("div",bN,[a("div",yN,[c[5]||(c[5]=a("h1",{class:"hero-title"},[a("span",{class:"hero-icon"},"🚀"),X(" Welcome to RedisSMQ ")],-1)),c[6]||(c[6]=a("p",{class:"hero-subtitle"}," Powerful Redis-based message queue management made simple ",-1)),a("div",_N,[a("div",EN,[a("span",wN,F(o.value.totalQueues),1),c[2]||(c[2]=a("span",{class:"stat-label"},"Active Queues",-1))]),a("div",CN,[a("span",AN,F(o.value.totalMessages),1),c[3]||(c[3]=a("span",{class:"stat-label"},"Messages Processed",-1))]),a("div",SN,[a("span",$N,F(o.value.activeConsumers),1),c[4]||(c[4]=a("span",{class:"stat-label"},"Active Consumers",-1))])])]),a("div",TN,[a("button",{class:"btn btn-primary btn-lg hero-btn",onClick:c[0]||(c[0]=h=>O(t).push({name:"Queues"}))},c[7]||(c[7]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),X(" Get Started ")]))])])]),a("main",xN,[r.value?(k(),I("div",ON,c[8]||(c[8]=[a("div",{class:"loading-content"},[a("div",{class:"spinner-border text-primary mb-3"}),a("h5",{class:"loading-title"},"Loading dashboard..."),a("p",{class:"loading-subtitle"},"Fetching system information")],-1)]))):(k(),I("div",NN,[a("section",kN,[a("div",{class:"section-header"},[c[10]||(c[10]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-speedometer2 me-2"}),X(" System Overview ")],-1)),a("button",{class:"btn btn-outline-primary btn-sm",onClick:u},c[9]||(c[9]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),X(" Refresh ")]))]),a("div",PN,[a("div",DN,[c[13]||(c[13]=a("div",{class:"stat-icon queues-icon"},[a("i",{class:"bi bi-list-ul"})],-1)),a("div",RN,[a("div",IN,F(o.value.totalQueues),1),c[11]||(c[11]=a("div",{class:"stat-title"},"Total Queues",-1)),c[12]||(c[12]=a("div",{class:"stat-description"},"Active message queues",-1))])]),a("div",MN,[c[16]||(c[16]=a("div",{class:"stat-icon messages-icon"},[a("i",{class:"bi bi-envelope-fill"})],-1)),a("div",qN,[a("div",LN,F(o.value.totalMessages),1),c[14]||(c[14]=a("div",{class:"stat-title"},"Messages Processed",-1)),c[15]||(c[15]=a("div",{class:"stat-description"},"Total messages handled",-1))])]),a("div",FN,[c[19]||(c[19]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-gear-fill"})],-1)),a("div",VN,[a("div",QN,F(o.value.currentlyInProcess),1),c[17]||(c[17]=a("div",{class:"stat-title"},"Currently in Process",-1)),c[18]||(c[18]=a("div",{class:"stat-description"}," Total message being processed ",-1))])]),a("div",jN,[c[22]||(c[22]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-hourglass-split"})],-1)),a("div",BN,[a("div",UN,F(o.value.pendingMessages),1),c[20]||(c[20]=a("div",{class:"stat-title"},"Pending Messages",-1)),c[21]||(c[21]=a("div",{class:"stat-description"}," Total message in the waiting queue ",-1))])]),a("div",KN,[c[25]||(c[25]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",HN,[a("div",GN,F(o.value.activeConsumers),1),c[23]||(c[23]=a("div",{class:"stat-title"},"Active Consumers",-1)),c[24]||(c[24]=a("div",{class:"stat-description"},"Connected consumers",-1))])])])]),a("section",WN,[c[27]||(c[27]=a("div",{class:"section-header"},[a("h2",{class:"section-title"},[a("i",{class:"bi bi-lightning-fill me-2"}),X(" Quick Actions ")])],-1)),a("div",zN,[(k(),I($e,null,At(i,h=>a("div",{key:h.title,class:De(["action-card",`action-${h.color}`]),onClick:h.action},[a("div",ZN,[a("i",{class:De(h.icon)},null,2)]),a("div",JN,[a("h3",XN,F(h.title),1),a("p",ek,F(h.description),1)]),c[26]||(c[26]=a("div",{class:"action-arrow"},[a("i",{class:"bi bi-arrow-right"})],-1))],10,YN)),64))])]),a("section",tk,[a("div",sk,[a("div",nk,[c[30]||(c[30]=xn('<h2 class="getting-started-title" data-v-4fe5efff><i class="bi bi-rocket-takeoff me-2" data-v-4fe5efff></i> Getting Started </h2><p class="getting-started-description" data-v-4fe5efff> New to RedisSMQ? Follow these steps to set up your first message queue and start processing messages. </p><div class="getting-started-steps" data-v-4fe5efff><div class="step-item" data-v-4fe5efff><div class="step-number" data-v-4fe5efff>1</div><div class="step-content" data-v-4fe5efff><h4 class="step-title" data-v-4fe5efff>Create a Queue</h4><p class="step-description" data-v-4fe5efff> Set up your first message queue with the desired configuration </p></div></div><div class="step-item" data-v-4fe5efff><div class="step-number" data-v-4fe5efff>2</div><div class="step-content" data-v-4fe5efff><h4 class="step-title" data-v-4fe5efff>Configure Consumers</h4><p class="step-description" data-v-4fe5efff> Add consumer groups to process messages efficiently </p></div></div><div class="step-item" data-v-4fe5efff><div class="step-number" data-v-4fe5efff>3</div><div class="step-content" data-v-4fe5efff><h4 class="step-title" data-v-4fe5efff>Monitor Performance</h4><p class="step-description" data-v-4fe5efff> Track message processing and system performance </p></div></div></div>',3)),a("div",ik,[a("button",{class:"btn btn-primary",onClick:c[1]||(c[1]=h=>O(t).push({name:"Queues"}))},c[28]||(c[28]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),X(" Create Your First Queue ")])),c[29]||(c[29]=a("a",{href:"https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq/docs/README.md",target:"_blank",rel:"noopener noreferrer",class:"btn btn-outline-secondary"},[a("i",{class:"bi bi-book me-2"}),X(" Read Documentation ")],-1))])])])])]))])]))}}),ak=at(rk,[["__scopeId","data-v-4fe5efff"]]),Uo=[{path:"/",name:"Home",component:ak,meta:{title:"Home"}},{path:"/queues",name:"Queues",component:()=>Hh(()=>import("./QueuesView-BoC_jjup.js"),__vite__mapDeps([0,1])),meta:{title:"Queue Management",breadcrumbs:"Queues"}},{path:"/ns",name:"Namespaces",component:()=>Hh(()=>Promise.resolve().then(()=>C2),void 0),meta:{title:"Namespace Management",breadcrumbs:"Namespaces"}},{path:"/exchanges",name:"Exchanges",component:nN}],Ob=6e4,Nb=36e5,Oo=43200,Ap=1440,Sp=Symbol.for("constructDateFrom");function zl(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Sp in e?e[Sp](t):e instanceof Date?new e.constructor(t):new Date(t)}function dn(e,t){return zl(e,e)}let ok={};function lk(){return ok}function $p(e){const t=dn(e),s=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return s.setUTCFullYear(t.getFullYear()),+e-+s}function Qd(e,...t){const s=zl.bind(null,e||t.find(n=>typeof n=="object"));return t.map(s)}function Ko(e,t){const s=+dn(e)-+dn(t);return s<0?-1:s>0?1:s}function uk(e){return zl(e,Date.now())}function ck(e,t,s){const[n,i]=Qd(s==null?void 0:s.in,e,t),r=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return r*12+o}function dk(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function fk(e,t){return+dn(e)-+dn(t)}function hk(e,t){const s=dn(e);return s.setHours(23,59,59,999),s}function pk(e,t){const s=dn(e),n=s.getMonth();return s.setFullYear(s.getFullYear(),n+1,0),s.setHours(23,59,59,999),s}function mk(e,t){const s=dn(e);return+hk(s)==+pk(s)}function gk(e,t,s){const[n,i,r]=Qd(s==null?void 0:s.in,e,e,t),o=Ko(i,r),l=Math.abs(ck(i,r));if(l<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*l);let u=Ko(i,r)===-o;mk(n)&&l===1&&Ko(n,r)===1&&(u=!1);const d=o*(l-+u);return d===0?0:d}function vk(e,t,s){const n=fk(e,t)/1e3;return dk(s==null?void 0:s.roundingMethod)(n)}const bk={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"}},yk=(e,t,s)=>{let n;const i=bk[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+n:n+" ago":n};function Iu(e){return(t={})=>{const s=t.width?String(t.width):e.defaultWidth;return e.formats[s]||e.formats[e.defaultWidth]}}const _k={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ek={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ck={date:Iu({formats:_k,defaultWidth:"full"}),time:Iu({formats:Ek,defaultWidth:"full"}),dateTime:Iu({formats:wk,defaultWidth:"full"})},Ak={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Sk=(e,t,s,n)=>Ak[e];function fa(e){return(t,s)=>{const n=s!=null&&s.context?String(s.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=s!=null&&s.width?String(s.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=s!=null&&s.width?String(s.width):e.defaultWidth;i=e.values[l]||e.values[o]}const r=e.argumentCallback?e.argumentCallback(t):t;return i[r]}}const $k={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tk={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xk={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"]},Ok={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"]},Nk={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"}},kk={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"}},Pk=(e,t)=>{const s=Number(e),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"},Dk={ordinalNumber:Pk,era:fa({values:$k,defaultWidth:"wide"}),quarter:fa({values:Tk,defaultWidth:"wide",argumentCallback:e=>e-1}),month:fa({values:xk,defaultWidth:"wide"}),day:fa({values:Ok,defaultWidth:"wide"}),dayPeriod:fa({values:Nk,defaultWidth:"wide",formattingValues:kk,defaultFormattingWidth:"wide"})};function ha(e){return(t,s={})=>{const n=s.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],r=t.match(i);if(!r)return null;const o=r[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?Ik(l,h=>h.test(o)):Rk(l,h=>h.test(o));let d;d=e.valueCallback?e.valueCallback(u):u,d=s.valueCallback?s.valueCallback(d):d;const c=t.slice(o.length);return{value:d,rest:c}}}function Rk(e,t){for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t(e[s]))return s}function Ik(e,t){for(let s=0;s<e.length;s++)if(t(e[s]))return s}function Mk(e){return(t,s={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],r=t.match(e.parsePattern);if(!r)return null;let o=e.valueCallback?e.valueCallback(r[0]):r[0];o=s.valueCallback?s.valueCallback(o):o;const l=t.slice(i.length);return{value:o,rest:l}}}const qk=/^(\d+)(th|st|nd|rd)?/i,Lk=/\d+/i,Fk={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},Vk={any:[/^b/i,/^(a|c)/i]},Qk={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},jk={any:[/1/i,/2/i,/3/i,/4/i]},Bk={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},Uk={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]},Kk={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},Hk={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]},Gk={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},Wk={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}},zk={ordinalNumber:Mk({matchPattern:qk,parsePattern:Lk,valueCallback:e=>parseInt(e,10)}),era:ha({matchPatterns:Fk,defaultMatchWidth:"wide",parsePatterns:Vk,defaultParseWidth:"any"}),quarter:ha({matchPatterns:Qk,defaultMatchWidth:"wide",parsePatterns:jk,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ha({matchPatterns:Bk,defaultMatchWidth:"wide",parsePatterns:Uk,defaultParseWidth:"any"}),day:ha({matchPatterns:Kk,defaultMatchWidth:"wide",parsePatterns:Hk,defaultParseWidth:"any"}),dayPeriod:ha({matchPatterns:Gk,defaultMatchWidth:"any",parsePatterns:Wk,defaultParseWidth:"any"})},Yk={code:"en-US",formatDistance:yk,formatLong:Ck,formatRelative:Sk,localize:Dk,match:zk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Zk(e,t,s){const n=lk(),i=(s==null?void 0:s.locale)??n.locale??Yk,r=2520,o=Ko(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},s,{addSuffix:s==null?void 0:s.addSuffix,comparison:o}),[u,d]=Qd(s==null?void 0:s.in,...o>0?[t,e]:[e,t]),c=vk(d,u),h=($p(d)-$p(u))/1e3,p=Math.round((c-h)/60);let m;if(p<2)return s!=null&&s.includeSeconds?c<5?i.formatDistance("lessThanXSeconds",5,l):c<10?i.formatDistance("lessThanXSeconds",10,l):c<20?i.formatDistance("lessThanXSeconds",20,l):c<40?i.formatDistance("halfAMinute",0,l):c<60?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",1,l):p===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",p,l);if(p<45)return i.formatDistance("xMinutes",p,l);if(p<90)return i.formatDistance("aboutXHours",1,l);if(p<Ap){const g=Math.round(p/60);return i.formatDistance("aboutXHours",g,l)}else{if(p<r)return i.formatDistance("xDays",1,l);if(p<Oo){const g=Math.round(p/Ap);return i.formatDistance("xDays",g,l)}else if(p<Oo*2)return m=Math.round(p/Oo),i.formatDistance("aboutXMonths",m,l)}if(m=gk(d,u),m<12){const g=Math.round(p/Oo);return i.formatDistance("xMonths",g,l)}else{const g=m%12,C=Math.trunc(m/12);return g<3?i.formatDistance("aboutXYears",C,l):g<9?i.formatDistance("overXYears",C,l):i.formatDistance("almostXYears",C+1,l)}}function bn(e,t){return Zk(e,uk(e),t)}function Jk(e,t){const s=()=>zl(t==null?void 0:t.in,NaN),i=sP(e);let r;if(i.date){const d=nP(i.date,2);r=iP(d.restDateString,d.year)}if(!r||isNaN(+r))return s();const o=+r;let l=0,u;if(i.time&&(l=rP(i.time),isNaN(l)))return s();if(i.timezone){if(u=aP(i.timezone),isNaN(u))return s()}else{const d=new Date(o+l),c=dn(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return dn(o+l+u)}const No={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Xk=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,eP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function sP(e){const t={},s=e.split(No.dateTimeDelimiter);let n;if(s.length>2)return t;if(/:/.test(s[0])?n=s[0]:(t.date=s[0],n=s[1],No.timeZoneDelimiter.test(t.date)&&(t.date=e.split(No.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const i=No.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function nP(e,t){const s=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.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:e.slice((n[1]||n[2]).length)}}function iP(e,t){if(t===null)return new Date(NaN);const s=e.match(Xk);if(!s)return new Date(NaN);const n=!!s[4],i=pa(s[1]),r=pa(s[2])-1,o=pa(s[3]),l=pa(s[4]),u=pa(s[5])-1;if(n)return dP(t,l,u)?oP(t,l,u):new Date(NaN);{const d=new Date(0);return!uP(t,r,o)||!cP(t,i)?new Date(NaN):(d.setUTCFullYear(t,r,Math.max(i,o)),d)}}function pa(e){return e?parseInt(e):1}function rP(e){const t=e.match(eP);if(!t)return NaN;const s=Mu(t[1]),n=Mu(t[2]),i=Mu(t[3]);return fP(s,n,i)?s*Nb+n*Ob+i*1e3:NaN}function Mu(e){return e&&parseFloat(e.replace(",","."))||0}function aP(e){if(e==="Z")return 0;const t=e.match(tP);if(!t)return 0;const s=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return hP(n,i)?s*(n*Nb+i*Ob):NaN}function oP(e,t,s){const n=new Date(0);n.setUTCFullYear(e,0,4);const i=n.getUTCDay()||7,r=(t-1)*7+s+1-i;return n.setUTCDate(n.getUTCDate()+r),n}const lP=[31,null,31,30,31,30,31,31,30,31,30,31];function kb(e){return e%400===0||e%4===0&&e%100!==0}function uP(e,t,s){return t>=0&&t<=11&&s>=1&&s<=(lP[t]||(kb(e)?29:28))}function cP(e,t){return t>=1&&t<=(kb(e)?366:365)}function dP(e,t,s){return t>=1&&t<=53&&s>=0&&s<=6}function fP(e,t,s){return e===24?t===0&&s===0:s>=0&&s<60&&t>=0&&t<60&&e>=0&&e<25}function hP(e,t){return t>=0&&t<=59}function Tp(e){const t=Date.now()-e,s=Math.floor(t/1e3),n=Math.floor(s/60),i=Math.floor(n/60),r=Math.floor(i/24);return r>0?`${r}d ${i%24}h`:i>0?`${i}h ${n%60}m`:n>0?`${n}m ${s%60}s`:`${s}s`}function jd(e){if(!e)return"N/A";try{const t=typeof e=="string"?Jk(e):new Date(e);return`${t.toLocaleString()} (${bn(t,{addSuffix:!0})})`}catch{return"Invalid Date"}}const pP={class:"modal-dialog"},mP={class:"modal-content"},gP={class:"modal-header"},vP={class:"modal-title-section"},bP={class:"message-id"},yP={class:"ms-1"},_P=["disabled"],EP={class:"status-bar"},wP={class:"status-info"},CP={class:"text-muted ms-3"},AP={class:"queue-info"},SP={class:"badge bg-light text-dark"},$P={class:"modal-tabs"},TP=["disabled"],xP=["disabled"],OP=["disabled"],NP=["disabled"],kP=["disabled"],PP={class:"modal-body"},DP={key:0,class:"tab-content"},RP={class:"info-grid"},IP={class:"info-section"},MP={class:"info-items"},qP={class:"info-item"},LP={class:"info-item"},FP={class:"info-value"},VP={class:"info-item"},QP={class:"info-value"},jP={class:"info-item"},BP={class:"info-value"},UP={class:"info-section"},KP={class:"info-items"},HP={class:"info-item"},GP={class:"info-value"},WP={class:"info-item"},zP={class:"info-value"},YP={class:"info-item"},ZP={class:"info-value"},JP={class:"info-item"},XP={class:"info-value"},eD={class:"info-item"},tD={class:"info-value"},sD={key:0,class:"info-section"},nD={class:"info-items"},iD={class:"info-item"},rD={class:"info-value"},aD={class:"info-item"},oD={class:"info-value"},lD={key:1,class:"info-section"},uD={class:"info-items"},cD={class:"info-item"},dD={class:"info-value"},fD={key:1,class:"tab-content"},hD={class:"body-section"},pD={class:"d-flex justify-content-between align-items-center mb-3"},mD=["disabled"],gD={class:"message-body"},vD={key:2,class:"tab-content"},bD={class:"info-grid"},yD={class:"info-section"},_D={class:"info-items"},ED={class:"info-item"},wD={class:"info-value"},CD={class:"info-item"},AD={class:"info-value"},SD={class:"info-item"},$D={class:"info-value"},TD={class:"info-item"},xD={class:"info-section"},OD={class:"info-items"},ND={class:"info-item"},kD={class:"info-value"},PD={class:"info-item"},DD={class:"info-value"},RD={class:"info-item"},ID={class:"info-value"},MD={class:"info-item"},qD={class:"info-value"},LD={class:"info-item"},FD={class:"info-value"},VD={class:"info-item"},QD={class:"info-value"},jD={key:3,class:"tab-content"},BD={class:"info-grid"},UD={class:"info-section"},KD={class:"info-items"},HD={class:"info-item"},GD={class:"info-value"},WD={class:"info-item"},zD={class:"info-value"},YD={class:"info-item"},ZD={class:"info-value"},JD={class:"info-item"},XD={class:"info-section"},eR={class:"info-items"},tR={class:"info-item"},sR={class:"info-value"},nR={class:"info-item"},iR={class:"info-value"},rR={class:"info-item"},aR={class:"info-value"},oR={class:"info-item"},lR={class:"info-value"},uR={key:0,class:"info-section"},cR={class:"info-items"},dR={class:"info-item"},fR={class:"d-flex align-items-center"},hR={class:"info-value"},pR={key:1,class:"info-section"},mR={class:"info-items"},gR={class:"info-item"},vR={class:"d-flex align-items-center"},bR={class:"info-value"},yR={key:4,class:"timeline-section"},_R={class:"timeline"},ER={class:"timeline-content"},wR={class:"timeline-title"},CR={class:"timeline-time"},AR={class:"modal-footer"},SR={class:"footer-info"},$R={class:"text-muted"},TR={class:"footer-actions"},xR=["disabled"],OR=["disabled"],NR=["disabled"],kR=ze({__name:"ViewMessageModal",props:{message:{},show:{type:Boolean},isDeleting:{type:Boolean,default:!1},isRequeuing:{type:Boolean,default:!1}},emits:["close","update:show","delete-message","requeue-message"],setup(e,{emit:t}){const s=e,n=t,i=we("overview"),r=we(!1),o=we(!1),l=v(()=>{var w;if(!((w=s.message)!=null&&w.createdAt))return"N/A";const N=new Date(s.message.createdAt);return`${N.toLocaleString()} (${bn(N,{addSuffix:!0})})`}),u=v(()=>{var w;if(!((w=s.message)!=null&&w.messageState.publishedAt))return"Not published";const N=new Date(s.message.messageState.publishedAt);return`${N.toLocaleString()} (${bn(N,{addSuffix:!0})})`}),d=v(()=>{var w;if(!((w=s.message)!=null&&w.messageState.scheduledAt))return"Not scheduled";const N=new Date(s.message.messageState.scheduledAt);return`${N.toLocaleString()} (${bn(N,{addSuffix:!0})})`}),c=v(()=>{var w;if(!((w=s.message)!=null&&w.messageState.lastRetriedAttemptAt))return"Never";const N=new Date(s.message.messageState.lastRetriedAttemptAt);return`${N.toLocaleString()} (${bn(N,{addSuffix:!0})})`}),h=v(()=>{var w;if(!((w=s.message)!=null&&w.messageState.processingStartedAt))return"N/A";const N=new Date(s.message.messageState.processingStartedAt);return`${N.toLocaleString()} (${bn(N,{addSuffix:!0})})`}),p=v(()=>{var w;if(!((w=s.message)!=null&&w.messageState.acknowledgedAt))return"N/A";const N=new Date(s.message.messageState.acknowledgedAt);return`${N.toLocaleString()} (${bn(N,{addSuffix:!0})})`}),m=v(()=>{var w;if(!((w=s.message)!=null&&w.messageState.deadLetteredAt))return"N/A";const N=new Date(s.message.messageState.deadLetteredAt);return`${N.toLocaleString()} (${bn(N,{addSuffix:!0})})`}),g=v(()=>{var w;if(!((w=s.message)!=null&&w.messageState.lastRequeuedAt))return"Never";const N=new Date(s.message.messageState.lastRequeuedAt);return`${N.toLocaleString()} (${bn(N,{addSuffix:!0})})`}),C=v(()=>{if(!s.message)return"";switch(s.message.status){case 0:return"badge bg-secondary";case 1:return"badge bg-warning";case 2:return"badge bg-info";case 3:return"badge bg-success";case 4:return"badge bg-warning";case 5:return"badge bg-warning";case 6:return"badge bg-danger";default:return"badge bg-secondary"}}),y=v(()=>{if(!s.message)return"";switch(s.message.status){case 0:return"Scheduled";case 1:return"Pending";case 2:return"Processing";case 3:return"Acknowledged";case 4:return"Unack Delaying";case 5:return"Unack Requeuing";case 6:return"Dead Lettered";default:return"Unknown"}}),A=v(()=>{var w;return(w=s.message)!=null&&w.priority&&["Highest","Very High","High","Above Normal","Normal","Low","Very Low","Lowest"][s.message.priority]||"Normal"}),x=v(()=>{var N;if(!((N=s.message)!=null&&N.body))return"";try{if(typeof s.message.body=="string"){const w=JSON.parse(s.message.body);return JSON.stringify(w,null,2)}return JSON.stringify(s.message.body,null,2)}catch{return String(s.message.body)}}),S=v(()=>{var N;return((N=s.message)==null?void 0:N.status)===6}),_=v(()=>s.isDeleting||s.isRequeuing),$=v(()=>s.message?[{type:"Created",timestamp:s.message.createdAt,icon:"bi-plus-circle-fill",color:"text-primary"},{type:"Scheduled",timestamp:s.message.messageState.scheduledAt,icon:"bi-calendar-plus-fill",color:"text-info"},{type:"Last Scheduled",timestamp:s.message.messageState.lastScheduledAt,icon:"bi-calendar-check-fill",color:"text-info"},{type:"Published",timestamp:s.message.messageState.publishedAt,icon:"bi-send-fill",color:"text-primary"},{type:"Processing Started",timestamp:s.message.messageState.processingStartedAt,icon:"bi-play-circle-fill",color:"text-warning"},{type:"Acknowledged",timestamp:s.message.messageState.acknowledgedAt,icon:"bi-check2-circle",color:"text-success"},{type:"Unacknowledged",timestamp:s.message.messageState.unacknowledgedAt,icon:"bi-arrow-counterclockwise",color:"text-warning"},{type:"Last Unacknowledged",timestamp:s.message.messageState.lastUnacknowledgedAt,icon:"bi-arrow-counterclockwise",color:"text-warning"},{type:"Requeued",timestamp:s.message.messageState.requeuedAt,icon:"bi-arrow-repeat",color:"text-secondary"},{type:"Last Requeued",timestamp:s.message.messageState.lastRequeuedAt,icon:"bi-arrow-repeat",color:"text-secondary"},{type:"Last Retry Attempt",timestamp:s.message.messageState.lastRetriedAttemptAt,icon:"bi-bootstrap-reboot",color:"text-warning"},{type:"Dead-lettered",timestamp:s.message.messageState.deadLetteredAt,icon:"bi-x-octagon-fill",color:"text-danger"}].filter(w=>!!w.timestamp).sort((w,z)=>Number(w.timestamp)-Number(z.timestamp)):[]);function V(){_.value||(n("close"),n("update:show",!1))}function j(N){N.target===N.currentTarget&&!_.value&&V()}function R(N){navigator.clipboard.writeText(N).then(()=>{console.log("Copied to clipboard")})}function E(){var N;(N=s.message)!=null&&N.id&&n("delete-message",s.message.id),r.value=!1}function T(){var N;(N=s.message)!=null&&N.id&&n("requeue-message",s.message.id),o.value=!1}return(N,w)=>N.show&&N.message?(k(),I("div",{key:0,class:"modal-backdrop",onClick:j},[a("div",pP,[a("div",mP,[a("div",gP,[a("div",vP,[w[15]||(w[15]=a("h4",{class:"modal-title"},[a("i",{class:"bi bi-envelope-fill me-2"}),X(" Message Details ")],-1)),a("div",bP,[w[14]||(w[14]=a("span",{class:"text-muted"},"ID:",-1)),a("code",yP,F(N.message.id),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy ID",onClick:w[0]||(w[0]=z=>R(N.message.id))},w[13]||(w[13]=[a("i",{class:"bi bi-clipboard"},null,-1)]))])]),a("button",{type:"button",class:"btn-close","aria-label":"Close",disabled:_.value,onClick:V},null,8,_P)]),a("div",EP,[a("div",wP,[a("span",{class:De(C.value)},F(y.value),3),a("span",CP,[w[16]||(w[16]=a("i",{class:"bi bi-clock me-1"},null,-1)),X(" "+F(l.value),1)])]),a("div",AP,[a("span",SP,[w[17]||(w[17]=a("i",{class:"bi bi-collection me-1"},null,-1)),X(" "+F(N.message.destinationQueue.ns)+":"+F(N.message.destinationQueue.name),1)])])]),a("div",$P,[a("button",{class:De(["tab-button",{active:i.value==="overview"}]),disabled:_.value,onClick:w[1]||(w[1]=z=>i.value="overview")},w[18]||(w[18]=[a("i",{class:"bi bi-info-circle me-1"},null,-1),X(" Overview ")]),10,TP),a("button",{class:De(["tab-button",{active:i.value==="body"}]),disabled:_.value,onClick:w[2]||(w[2]=z=>i.value="body")},w[19]||(w[19]=[a("i",{class:"bi bi-file-text me-1"},null,-1),X(" Message Body ")]),10,xP),a("button",{class:De(["tab-button",{active:i.value==="state"}]),disabled:_.value,onClick:w[3]||(w[3]=z=>i.value="state")},w[20]||(w[20]=[a("i",{class:"bi bi-gear me-1"},null,-1),X(" State ")]),10,OP),a("button",{class:De(["tab-button",{active:i.value==="scheduling"}]),disabled:_.value,onClick:w[4]||(w[4]=z=>i.value="scheduling")},w[21]||(w[21]=[a("i",{class:"bi bi-calendar me-1"},null,-1),X(" Scheduling ")]),10,NP),a("button",{class:De(["tab-button",{active:i.value==="timeline"}]),disabled:_.value,onClick:w[5]||(w[5]=z=>i.value="timeline")},w[22]||(w[22]=[a("i",{class:"bi bi-clock-history me-2"},null,-1),X(" Timeline ")]),10,kP)]),a("div",PP,[i.value==="overview"?(k(),I("div",DP,[a("div",RP,[a("div",IP,[w[27]||(w[27]=a("h6",{class:"section-title"},"Basic Information",-1)),a("div",MP,[a("div",qP,[w[23]||(w[23]=a("span",{class:"info-label"},"Status:",-1)),a("span",{class:De(C.value)},F(y.value),3)]),a("div",LP,[w[24]||(w[24]=a("span",{class:"info-label"},"Priority:",-1)),a("span",FP,F(A.value),1)]),a("div",VP,[w[25]||(w[25]=a("span",{class:"info-label"},"TTL:",-1)),a("span",QP,F(N.message.ttl)+"ms",1)]),a("div",jP,[w[26]||(w[26]=a("span",{class:"info-label"},"Consumer Group:",-1)),a("span",BP,F(N.message.consumerGroupId||"None"),1)])])]),a("div",UP,[w[33]||(w[33]=a("h6",{class:"section-title"},"Retry Configuration",-1)),a("div",KP,[a("div",HP,[w[28]||(w[28]=a("span",{class:"info-label"},"Retry Threshold:",-1)),a("span",GP,F(N.message.retryThreshold),1)]),a("div",WP,[w[29]||(w[29]=a("span",{class:"info-label"},"Retry Delay:",-1)),a("span",zP,F(N.message.retryDelay)+"ms",1)]),a("div",YP,[w[30]||(w[30]=a("span",{class:"info-label"},"Consume Timeout:",-1)),a("span",ZP,F(N.message.consumeTimeout)+"ms",1)]),a("div",JP,[w[31]||(w[31]=a("span",{class:"info-label"},"Current Attempts:",-1)),a("span",XP,F(N.message.messageState.attempts),1)]),a("div",eD,[w[32]||(w[32]=a("span",{class:"info-label"},"Requeue Count:",-1)),a("span",tD,F(N.message.messageState.requeueCount),1)])])]),N.message.exchange?(k(),I("div",sD,[w[36]||(w[36]=a("h6",{class:"section-title"},"Exchange Information",-1)),a("div",nD,[a("div",iD,[w[34]||(w[34]=a("span",{class:"info-label"},"Exchange Params:",-1)),a("span",rD,F(N.message.exchange.name)+"@"+F(N.message.exchange.ns),1)]),a("div",aD,[w[35]||(w[35]=a("span",{class:"info-label"},"Type:",-1)),a("span",oD,F(O(Le)[N.message.exchange.type]),1)])])])):me("",!0),N.message.queue?(k(),I("div",lD,[w[38]||(w[38]=a("h6",{class:"section-title"},"Queue Information",-1)),a("div",uD,[a("div",cD,[w[37]||(w[37]=a("span",{class:"info-label"},"Queue Params:",-1)),a("span",dD,F(N.message.queue.name)+"@"+F(N.message.queue.ns),1)])])])):me("",!0)])])):me("",!0),i.value==="body"?(k(),I("div",fD,[a("div",hD,[a("div",pD,[w[40]||(w[40]=a("h6",{class:"section-title mb-0"},"Message Body",-1)),a("button",{class:"btn btn-sm btn-outline-primary",disabled:_.value,onClick:w[6]||(w[6]=z=>R(x.value))},w[39]||(w[39]=[a("i",{class:"bi bi-clipboard me-1"},null,-1),X(" Copy ")]),8,mD)]),a("pre",gD,[a("code",null,F(x.value),1)])])])):me("",!0),i.value==="state"?(k(),I("div",vD,[a("div",bD,[a("div",yD,[w[45]||(w[45]=a("h6",{class:"section-title"},"Message State",-1)),a("div",_D,[a("div",ED,[w[41]||(w[41]=a("span",{class:"info-label"},"UUID:",-1)),a("code",wD,F(N.message.messageState.uuid),1)]),a("div",CD,[w[42]||(w[42]=a("span",{class:"info-label"},"Published At:",-1)),a("span",AD,F(u.value),1)]),a("div",SD,[w[43]||(w[43]=a("span",{class:"info-label"},"Attempts:",-1)),a("span",$D,F(N.message.messageState.attempts),1)]),a("div",TD,[w[44]||(w[44]=a("span",{class:"info-label"},"Expired:",-1)),a("span",{class:De(["badge",N.message.messageState.expired?"bg-danger":"bg-success"])},F(N.message.messageState.expired?"Yes":"No"),3)])])]),a("div",xD,[w[52]||(w[52]=a("h6",{class:"section-title"},"Timing Information",-1)),a("div",OD,[a("div",ND,[w[46]||(w[46]=a("span",{class:"info-label"},"Processing Started At:",-1)),a("span",kD,F(h.value),1)]),a("div",PD,[w[47]||(w[47]=a("span",{class:"info-label"},"Acknowledged At:",-1)),a("span",DD,F(p.value),1)]),a("div",RD,[w[48]||(w[48]=a("span",{class:"info-label"},"Last Retried At:",-1)),a("span",ID,F(c.value),1)]),a("div",MD,[w[49]||(w[49]=a("span",{class:"info-label"},"Last Requeued At:",-1)),a("span",qD,F(g.value),1)]),a("div",LD,[w[50]||(w[50]=a("span",{class:"info-label"},"Dead-Lettered At:",-1)),a("span",FD,F(m.value),1)]),a("div",VD,[w[51]||(w[51]=a("span",{class:"info-label"},"Scheduled Times:",-1)),a("span",QD,F(N.message.messageState.scheduledTimes),1)])])])])])):me("",!0),i.value==="scheduling"?(k(),I("div",jD,[a("div",BD,[a("div",UD,[w[57]||(w[57]=a("h6",{class:"section-title"},"Schedule Configuration",-1)),a("div",KD,[a("div",HD,[w[53]||(w[53]=a("span",{class:"info-label"},"Scheduled At:",-1)),a("span",GD,F(d.value),1)]),a("div",WD,[w[54]||(w[54]=a("span",{class:"info-label"},"Scheduled Cron:",-1)),a("span",zD,F(N.message.scheduledCron||"None"),1)]),a("div",YD,[w[55]||(w[55]=a("span",{class:"info-label"},"Scheduled Delay:",-1)),a("span",ZD,F(N.message.scheduledDelay?`${N.message.scheduledDelay} ms`:"None"),1)]),a("div",JD,[w[56]||(w[56]=a("span",{class:"info-label"},"Cron Fired:",-1)),a("span",{class:De(["badge",N.message.messageState.scheduledCronFired?"bg-success":"bg-secondary"])},F(N.message.messageState.scheduledCronFired?"Yes":"No"),3)])])]),a("div",XD,[w[62]||(w[62]=a("h6",{class:"section-title"},"Repeat Configuration",-1)),a("div",eR,[a("div",tR,[w[58]||(w[58]=a("span",{class:"info-label"},"Repeat Period:",-1)),a("span",sR,F(N.message.scheduledRepeatPeriod?`${N.message.scheduledRepeatPeriod} ms`:"None"),1)]),a("div",nR,[w[59]||(w[59]=a("span",{class:"info-label"},"Repeat Count:",-1)),a("span",iR,F(N.message.scheduledRepeat),1)]),a("div",rR,[w[60]||(w[60]=a("span",{class:"info-label"},"Current Repeat:",-1)),a("span",aR,F(N.message.messageState.scheduledRepeatCount),1)]),a("div",oR,[w[61]||(w[61]=a("span",{class:"info-label"},"Last Scheduled At:",-1)),a("span",lR,F(N.message.messageState.lastScheduledAt?new Date(N.message.messageState.lastScheduledAt).toLocaleString():"Never"),1)])])]),N.message.messageState.scheduledMessageParentId?(k(),I("div",uR,[w[65]||(w[65]=a("h6",{class:"section-title"},"Scheduled Message Reference",-1)),a("div",cR,[a("div",dR,[w[64]||(w[64]=a("span",{class:"info-label"},"Scheduled Message Parent ID:",-1)),a("div",fR,[a("code",hR,F(N.message.messageState.scheduledMessageParentId),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy Scheduled Message Parent ID",onClick:w[7]||(w[7]=z=>R(N.message.messageState.scheduledMessageParentId))},w[63]||(w[63]=[a("i",{class:"bi bi-clipboard"},null,-1)]))])])])])):me("",!0),N.message.messageState.requeuedMessageParentId?(k(),I("div",pR,[w[68]||(w[68]=a("h6",{class:"section-title"},"Requeued Message Reference",-1)),a("div",mR,[a("div",gR,[w[67]||(w[67]=a("span",{class:"info-label"},"Requeued Message Parent ID:",-1)),a("div",vR,[a("code",bR,F(N.message.messageState.requeuedMessageParentId),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy Requeued Message Parent ID",onClick:w[8]||(w[8]=z=>R(N.message.messageState.requeuedMessageParentId))},w[66]||(w[66]=[a("i",{class:"bi bi-clipboard"},null,-1)]))])])])])):me("",!0)])])):me("",!0),i.value==="timeline"?(k(),I("div",yR,[a("ul",_R,[(k(!0),I($e,null,At($.value,z=>(k(),I("li",{key:z.type,class:"timeline-item"},[a("div",{class:De(["timeline-marker",z.color])},[a("i",{class:De(z.icon)},null,2)],2),a("div",ER,[a("h5",wR,F(z.type),1),a("p",CR,F(O(jd)(z.timestamp)),1)])]))),128))])])):me("",!0)]),a("div",AR,[a("div",SR,[a("small",$R,[w[69]||(w[69]=a("i",{class:"bi bi-info-circle me-1"},null,-1)),X(" Message created "+F(l.value),1)])]),a("div",TR,[S.value?(k(),I("button",{key:0,type:"button",class:"btn btn-warning",disabled:_.value,onClick:w[9]||(w[9]=z=>o.value=!0)},[N.isRequeuing?(k(),I($e,{key:0},[w[70]||(w[70]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),w[71]||(w[71]=X(" Requeuing... "))],64)):(k(),I($e,{key:1},[w[72]||(w[72]=a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),w[73]||(w[73]=X(" Requeue Message "))],64))],8,xR)):me("",!0),a("button",{type:"button",class:"btn btn-danger",disabled:_.value,onClick:w[10]||(w[10]=z=>r.value=!0)},[N.isDeleting?(k(),I($e,{key:0},[w[74]||(w[74]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),w[75]||(w[75]=X(" Deleting... "))],64)):(k(),I($e,{key:1},[w[76]||(w[76]=a("i",{class:"bi bi-trash me-2"},null,-1)),w[77]||(w[77]=X(" Delete Message "))],64))],8,OR),a("button",{type:"button",class:"btn btn-secondary",disabled:_.value,onClick:V}," Close ",8,NR)])])])]),Ae(Ji,{"is-visible":r.value,title:"Delete Message",message:"Are you sure you want to delete this message? This action cannot be undone.","confirm-text":"Delete Message",variant:"danger","is-loading":N.isDeleting,onConfirm:E,onClose:w[11]||(w[11]=z=>r.value=!1)},{"message-preview":et(()=>{var z;return[w[78]||(w[78]=a("strong",null,"Message ID: ",-1)),a("code",null,F((z=N.message)==null?void 0:z.id),1)]}),_:1},8,["is-visible","is-loading"]),Ae(Ji,{"is-visible":o.value,title:"Requeue Message",message:"Are you sure you want to requeue this dead-lettered message? It will be moved back to the pending queue for processing.","confirm-text":"Requeue Message",variant:"warning","is-loading":N.isRequeuing,onConfirm:T,onClose:w[12]||(w[12]=z=>o.value=!1)},{"message-preview":et(()=>{var z;return[w[79]||(w[79]=a("strong",null,"Message ID: ",-1)),a("code",null,F((z=N.message)==null?void 0:z.id),1)]}),_:1},8,["is-visible","is-loading"])])):me("",!0)}}),PR=at(kR,[["__scopeId","data-v-73d0da1f"]]),DR={class:"messages-component"},RR={key:0,class:"messages-controls"},IR={class:"controls-left"},MR={key:0,class:"pagination-info"},qR={class:"info-text"},LR={class:"controls-right"},FR={key:0,class:"page-size-selector"},VR=["value"],QR=["disabled"],jR={class:"messages-content"},BR={key:0,class:"state-card loading-state"},UR={key:1,class:"state-card error-state"},KR={class:"state-content"},HR={class:"state-text"},GR={class:"state-message"},WR={class:"state-actions"},zR={key:2,class:"state-card empty-state"},YR={class:"state-content"},ZR={class:"state-title"},JR={key:3,class:"messages-list"},XR=["onClick"],eI={class:"message-header"},tI={class:"message-id-section"},sI={class:"message-id"},nI={class:"message-date"},iI={class:"message-metadata"},rI={key:0,class:"metadata-item"},aI={class:"metadata-value priority-badge"},oI={key:1,class:"metadata-item"},lI={class:"metadata-value"},uI={key:2,class:"metadata-item"},cI={class:"message-body"},dI={class:"body-content"},fI={key:1,class:"messages-pagination"},hI={class:"pagination-nav","aria-label":"Messages pagination"},pI={class:"pagination"},mI=["disabled"],gI=["disabled"],vI=["title","onClick"],bI=["disabled"],yI=["disabled"],_I=ze({__name:"MessageList",props:{messages:{},isLoading:{type:Boolean},error:{},pagination:{},showPagination:{type:Boolean},emptyMessage:{default:"No messages found"},icon:{default:"bi-envelope"},isDeleting:{type:Boolean},isRequeuing:{type:Boolean}},emits:["refresh","delete-message","requeue-message","page-change","page-size-change","first-page","previous-page","next-page","last-page"],setup(e,{emit:t}){const s=e,n=t,i=we(!1),r=we(null),o=v(()=>s.messages.length>0),l=v(()=>s.pagination.currentPage>1),u=v(()=>s.pagination.currentPage<s.pagination.totalPages),d=v(()=>{const y=[],x=Math.floor(2.5),{currentPage:S,totalPages:_}=s.pagination;let $=Math.max(1,S-x),V=Math.min(_,$+5-1);V-$+1<5&&($=Math.max(1,V-5+1));for(let j=$;j<=V;j++)y.push(j);return y});function c(y){r.value=y,i.value=!0}function h(){i.value=!1}function p(y){n("delete-message",y),h()}function m(y){n("requeue-message",y),h()}function g(y){const A=y.target;n("page-size-change",Number(A.value))}function C(y){if(typeof y=="string")return y.length>100?`${y.substring(0,100)}...`:y;if(y==null)return"null";try{const A=JSON.stringify(y);return A.length>100?`${A.substring(0,100)}...`:A}catch{return String(y)}}return(y,A)=>(k(),I("div",DR,[o.value||y.showPagination?(k(),I("div",RR,[a("div",IR,[y.showPagination&&y.pagination&&y.pagination.hasItems?(k(),I("div",MR,[a("span",qR," Showing "+F(y.pagination.start)+"-"+F(y.pagination.end)+" of "+F(y.pagination.totalCount)+" messages ",1)])):me("",!0)]),a("div",LR,[y.showPagination&&y.pagination?(k(),I("div",FR,[A[7]||(A[7]=a("label",{for:"pageSize",class:"selector-label"},"Per page:",-1)),a("select",{id:"pageSize",class:"form-select form-select-sm",value:y.pagination.pageSize,onChange:g},A[6]||(A[6]=[a("option",{value:"10"},"10",-1),a("option",{value:"20"},"20",-1),a("option",{value:"50"},"50",-1),a("option",{value:"100"},"100",-1)]),40,VR)])):me("",!0),a("button",{class:De(["btn btn-refresh",{"btn-loading":y.isLoading}]),disabled:y.isLoading,onClick:A[0]||(A[0]=x=>n("refresh"))},[y.isLoading?(k(),I($e,{key:0},[A[8]||(A[8]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),A[9]||(A[9]=X(" Refreshing... "))],64)):(k(),I($e,{key:1},[A[10]||(A[10]=a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),A[11]||(A[11]=X(" Refresh "))],64))],10,QR)])])):me("",!0),a("div",jR,[y.isLoading&&!o.value?(k(),I("div",BR,A[12]||(A[12]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3"}),a("h5",{class:"state-title"},"Loading messages..."),a("p",{class:"state-subtitle"},"Please wait while we fetch your messages")],-1)]))):y.error?(k(),I("div",UR,[a("div",KR,[A[14]||(A[14]=a("div",{class:"state-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",HR,[A[13]||(A[13]=a("h5",{class:"state-title"},"Failed to load messages",-1)),a("p",GR,F(y.error.message),1)])]),a("div",WR,[a("button",{class:"btn btn-primary",onClick:A[1]||(A[1]=x=>n("refresh"))},A[15]||(A[15]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ")]))])])):o.value?(k(),I("div",JR,[(k(!0),I($e,null,At(y.messages,x=>(k(),I("div",{key:x.id,class:"message-card",onClick:S=>c(x)},[a("div",eI,[a("div",tI,[a("span",sI,F(x.id),1),a("span",nI,F(O(jd)(x.createdAt)),1)]),a("div",iI,[x.priority!==void 0&&x.priority!==null?(k(),I("div",rI,[A[18]||(A[18]=a("span",{class:"metadata-label"},"Priority:",-1)),a("span",aI,F(x.priority),1)])):me("",!0),x.consumerGroupId?(k(),I("div",oI,[A[19]||(A[19]=a("span",{class:"metadata-label"},"Group:",-1)),a("span",lI,F(x.consumerGroupId),1)])):me("",!0),x.status!==void 0?(k(),I("div",uI,[A[20]||(A[20]=a("span",{class:"metadata-label"},"Status:",-1)),a("span",{class:De(["metadata-value status-badge",`status-${x.status}`])},F(O(Eb)[x.status]),3)])):me("",!0)])]),a("div",cI,[a("pre",dI,F(C(x.body)),1)])],8,XR))),128))])):(k(),I("div",zR,[a("div",YR,[A[16]||(A[16]=a("div",{class:"state-icon"},"📭",-1)),a("h4",ZR,F(y.emptyMessage),1),A[17]||(A[17]=a("p",{class:"state-subtitle"}," Messages will appear here when they are available ",-1))])]))]),y.showPagination&&y.pagination&&y.pagination.totalPages>1?(k(),I("div",fI,[a("nav",hI,[a("ul",pI,[a("li",{class:De(["page-item",{disabled:!l.value}])},[a("button",{class:"page-link",disabled:!l.value,title:"First page",onClick:A[2]||(A[2]=x=>n("first-page"))},A[21]||(A[21]=[a("i",{class:"bi bi-chevron-double-left"},null,-1)]),8,mI)],2),a("li",{class:De(["page-item",{disabled:!l.value}])},[a("button",{class:"page-link",disabled:!l.value,title:"Previous page",onClick:A[3]||(A[3]=x=>n("previous-page"))},A[22]||(A[22]=[a("i",{class:"bi bi-chevron-left"},null,-1)]),8,gI)],2),(k(!0),I($e,null,At(d.value,x=>(k(),I("li",{key:x,class:De(["page-item",{active:x===y.pagination.currentPage}])},[a("button",{class:"page-link",title:`Go to page ${x}`,onClick:S=>n("page-change",x)},F(x),9,vI)],2))),128)),a("li",{class:De(["page-item",{disabled:!u.value}])},[a("button",{class:"page-link",disabled:!u.value,title:"Next page",onClick:A[4]||(A[4]=x=>n("next-page"))},A[23]||(A[23]=[a("i",{class:"bi bi-chevron-right"},null,-1)]),8,bI)],2),a("li",{class:De(["page-item",{disabled:!u.value}])},[a("button",{class:"page-link",disabled:!u.value,title:"Last page",onClick:A[5]||(A[5]=x=>n("last-page"))},A[24]||(A[24]=[a("i",{class:"bi bi-chevron-double-right"},null,-1)]),8,yI)],2)])])])):me("",!0),Ae(PR,{show:i.value,message:r.value,"is-deleting":y.isDeleting,"is-requeuing":y.isRequeuing,onClose:h,onDeleteMessage:p,onRequeueMessage:m},null,8,["show","message","is-deleting","is-requeuing"])]))}}),io=at(_I,[["__scopeId","data-v-64abc007"]]),Yl=Fl("selectedNamespace",()=>{const e=we(null);function t(n){e.value=n}function s(){e.value=null}return{selectedNamespace:e,selectNamespace:t,clearSelectedNamespace:s}}),Bt=Fl("selectedQueue",()=>{const e=Yl(),t=we(null),s=v(()=>e.selectedNamespace&&t.value?{ns:e.selectedNamespace,name:t.value}:null);function n(r,o){e.selectNamespace(r),t.value=o}function i(){t.value=null,e.clearSelectedNamespace()}return{selectedQueue:s,selectQueue:n,clearSelectedQueue:i}}),di=Fl("queueProperties",()=>{const e=Bt(),t=v(()=>e.selectedQueue),s=cN(v(()=>{var p;return((p=t.value)==null?void 0:p.ns)||""}),v(()=>{var p;return((p=t.value)==null?void 0:p.name)||""}),{query:{enabled:v(()=>!!t.value)}}),n=v(()=>s.data.value),i=v(()=>s.isLoading.value),r=v(()=>s.error.value),o=v(()=>{var p;return((p=n.value)==null?void 0:p.data.deliveryModel)===Es.PUB_SUB}),l=v(()=>{var p;return((p=n.value)==null?void 0:p.data.deliveryModel)===Es.POINT_TO_POINT}),u=v(()=>{var p;return(p=n.value)==null?void 0:p.data.queueType}),d=v(()=>{var p;return(p=n.value)==null?void 0:p.data.deliveryModel}),c=v(()=>{var p;return!!((p=n.value)!=null&&p.data)});async function h(){await s.refetch()}return{queuePropertiesQuery:s,queueProperties:n,isLoadingQueueProperties:i,queuePropertiesError:r,isPubSubQueue:o,isPointToPointQueue:l,queueType:u,queueDeliveryModel:d,hasQueueProperties:c,refreshQueueProperties:h}}),EI=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/queues/${t}/acknowledged-messages`,method:"GET",params:O(s),signal:n})),wI=e=>(e=O(e),st({url:`/api/v1/messages/${e}`,method:"DELETE"})),CI=e=>{const t=["deleteApiV1MessagesId"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{id:r}=i??{};return wI(r)},...s}},AI=(e,t)=>{const s=CI(e);return Ft(s)},SI=(e,t)=>(e=O(e),st({url:`/api/v1/messages/${e}/requeue`,method:"POST",signal:t})),$I=e=>{const t=["postApiV1MessagesIdRequeue"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{id:r}=i??{};return SI(r)},...s}},TI=(e,t)=>{const s=$I(e);return Ft(s)};function ro(e,t,s=20,n=we({})){const i=kn(),r=qs({currentPage:1,pageSize:s}),o=v(()=>{if(!e.value)return["disabled"];const se=[t.queryKeyPrefix,e.value.ns,e.value.name],ne=Object.entries(n.value);return ne.length>0&&ne.forEach(([te,W])=>{W!=null&&se.push(te,String(W))}),se});function l(se){var ne;return((ne=se==null?void 0:se.data)==null?void 0:ne.totalItems)??0}const{data:u,error:d,fetchNextPage:c,hasNextPage:h,isLoading:p,isFetchingNextPage:m,refetch:g}=SA({queryKey:o,initialPageParam:1,enabled:v(()=>{var se,ne;return!!((se=e.value)!=null&&se.ns&&((ne=e.value)!=null&&ne.name))}),retry:(se,ne)=>{var ee;const te=ne;return((te==null?void 0:te.status)??((ee=te==null?void 0:te.response)==null?void 0:ee.status))===422?!1:se<3},queryFn:async({pageParam:se=1})=>{if(!e.value)throw new Error("Queue parameters are required");return t.queryFn({ns:e.value.ns,name:e.value.name,page:Number(se),pageSize:r.pageSize,extraParams:n.value})},getNextPageParam:(se,ne)=>{var fe;const te=((fe=se==null?void 0:se.data)==null?void 0:fe.items)??[],W=l(ne==null?void 0:ne[0]),ee=ne.flatMap(Oe=>{var Ue;return((Ue=Oe==null?void 0:Oe.data)==null?void 0:Ue.items)??[]}).length;if(!(!te.length||W&&ee>=W))return ne.length+1}}),C=async()=>{await i.invalidateQueries({queryKey:o.value})},y=t.enableDelete?AI({mutation:{onSuccess:C}}):null,A=t.enableRequeue?TI({mutation:{onSuccess:C}}):null,x=v(()=>{var se;return((se=u.value)==null?void 0:se.pages.flatMap(ne=>{var te;return((te=ne==null?void 0:ne.data)==null?void 0:te.items)??[]}))??[]}),S=v(()=>{var se,ne;return l(((ne=(se=u.value)==null?void 0:se.pages)==null?void 0:ne[0])??{})}),_=v(()=>(y==null?void 0:y.isPending.value)??!1),$=v(()=>(A==null?void 0:A.isPending.value)??!1),V=v(()=>{const se=d.value||(y==null?void 0:y.error.value)||(A==null?void 0:A.error.value);return ft(se)}),j=v(()=>{const se=(r.currentPage-1)*r.pageSize,ne=se+r.pageSize;return x.value.slice(se,ne)}),R=v(()=>{const se=S.value||0,ne=se>0?Math.ceil(se/r.pageSize):1,te=se>0?(r.currentPage-1)*r.pageSize+1:0,W=Math.min(te+r.pageSize-1,se);return{currentPage:r.currentPage,pageSize:r.pageSize,totalCount:se,totalPages:ne,start:te,end:W,hasItems:se>0}});async function E(se){if(se<1)return;r.currentPage=se;const ne=se*r.pageSize;for(;x.value.length<ne&&h.value&&!m.value;)await c()}async function T(se){r.pageSize=se,r.currentPage=1,await g()}async function N(){r.currentPage=1,await g()}async function w(se){if(!y)throw new Error("Delete operation is not enabled for this message type");await y.mutateAsync({id:se})}async function z(se){if(!A)throw new Error("Requeue operation is not enabled for this message type");await A.mutateAsync({id:se})}return rt(()=>[e.value&&[e.value.ns,e.value.name],n.value],async()=>{e.value&&(r.currentPage=1,await g())},{deep:!0}),{messages:j,pagination:R,isLoading:p,isDeleting:_,isRequeuing:$,error:V,goToPage:E,setPageSize:T,refresh:N,deleteMessage:t.enableDelete?w:void 0,requeueMessage:t.enableRequeue?z:void 0,hasNextPage:h,isFetchingNextPage:m,totalMessages:S,allMessages:x}}function xI(e,t=20){return ro(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>EI(n,i,{page:r,pageSize:o}),queryKeyPrefix:"acknowledged-messages",enableDelete:!0,enableRequeue:!0},t)}const OI=ze({__name:"AcknowledgedMessagesView",setup(e){const t=Bt(),s=di(),n=os(),i=Ts(),r=v(()=>i.params.ns),o=v(()=>i.params.queue),l=v(()=>({ns:r.value,name:o.value}));rt([r,o],([j,R])=>{j&&R&&t.selectQueue(j,R)},{immediate:!0});const u=v(()=>t.selectedQueue),{messages:d,pagination:c,isLoading:h,isDeleting:p,error:m,goToPage:g,setPageSize:C,refresh:y,deleteMessage:A}=xI(l,20),x=v(()=>u.value?`Acknowledged Messages - ${`${u.value.ns}/${u.value.name}`}`:"Acknowledged Messages"),S=v(()=>{if(u.value)return s.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});Dt(()=>{n.setPageHeader({title:x.value,subtitle:S.value,icon:"bi bi-check-circle"})}),Dt(()=>{if(!u.value){n.setEmptyState(!0,{icon:"bi bi-inbox",title:"No Queue Selected",message:"Please select a queue from the sidebar to view its acknowledged messages."}),n.setPageActions([]),n.setLoadingState(!1),n.setErrorState(null);return}n.setLoadingState(!1),n.setErrorState(null),n.setEmptyState(!1),n.setPageActions([])});async function _(j){A&&await A(j)}function $(j){g(j)}async function V(j){await C(j)}return(j,R)=>(k(),gt(xs,{"show-section-header":!1},{default:et(()=>[u.value?(k(),gt(io,{key:0,messages:O(d),"is-loading":O(h),error:O(m),pagination:O(c),"show-pagination":!0,"empty-message":"No acknowledged messages found for this queue. Messages appear here when they have been successfully processed and acknowledged by consumers.",icon:"bi-check-circle","is-deleting":O(p),"is-requeuing":!1,onRefresh:O(y),onDeleteMessage:_,onPageChange:$,onPageSizeChange:V,onFirstPage:R[0]||(R[0]=E=>$(1)),onPreviousPage:R[1]||(R[1]=E=>$(O(c).currentPage-1)),onNextPage:R[2]||(R[2]=E=>$(O(c).currentPage+1)),onLastPage:R[3]||(R[3]=E=>$(O(c).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","onRefresh"])):me("",!0)]),_:1}))}}),NI=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/queues/${t}/dead-lettered-messages`,method:"GET",params:O(s),signal:n}));function kI(e,t=20){return ro(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>NI(n,i,{page:r,pageSize:o}),queryKeyPrefix:"dead-lettered-messages",enableDelete:!0,enableRequeue:!0},t)}const PI=ze({__name:"DeadLetteredMessagesView",setup(e){const t=Bt(),s=di(),n=os(),i=Ts(),r=v(()=>i.params.ns),o=v(()=>i.params.queue),l=v(()=>({ns:r.value,name:o.value}));rt([r,o],([T,N])=>{T&&N&&t.selectQueue(T,N)},{immediate:!0});const u=v(()=>t.selectedQueue),{messages:d,pagination:c,isLoading:h,isDeleting:p,isRequeuing:m,error:g,goToPage:C,setPageSize:y,refresh:A,deleteMessage:x,requeueMessage:S}=kI(l,20),_=v(()=>u.value?`Dead-Lettered Messages - ${`${u.value.ns}/${u.value.name}`}`:"Dead-Lettered Messages"),$=v(()=>{if(u.value)return s.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});Dt(()=>{n.setPageHeader({title:_.value,subtitle:$.value,icon:"bi bi-x-circle"})}),Dt(()=>{if(!u.value){n.setEmptyState(!0,{icon:"bi bi-inbox",title:"No Queue Selected",message:"Please select a queue from the sidebar to view its dead-lettered messages."}),n.setPageActions([]),n.setLoadingState(!1),n.setErrorState(null);return}n.setLoadingState(!1),n.setErrorState(null),n.setEmptyState(!1),n.setPageActions([])});async function V(T){x&&await x(T)}async function j(T){S&&await S(T)}function R(T){C(T)}async function E(T){await y(T)}return(T,N)=>(k(),gt(xs,{"show-section-header":!1},{default:et(()=>[u.value?(k(),gt(io,{key:0,messages:O(d),"is-loading":O(h),error:O(g),pagination:O(c),"show-pagination":!0,"empty-message":"No dead-lettered messages found for this queue. Messages appear here when they fail processing and exceed retry limits.",icon:"bi-x-circle","is-deleting":O(p),"is-requeuing":O(m),onRefresh:O(A),onDeleteMessage:V,onRequeueMessage:j,onPageChange:R,onPageSizeChange:E,onFirstPage:N[0]||(N[0]=w=>R(1)),onPreviousPage:N[1]||(N[1]=w=>R(O(c).currentPage-1)),onNextPage:N[2]||(N[2]=w=>R(O(c).currentPage+1)),onLastPage:N[3]||(N[3]=w=>R(O(c).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","is-requeuing","onRefresh"])):me("",!0)]),_:1}))}}),DI=e=>st({url:"/api/v1/namespaces",method:"GET",signal:e}),RI=()=>["api","v1","namespaces"],II=e=>{const{query:t}={};return{queryKey:RI(),queryFn:({signal:i})=>DI(i),...t}};function MI(e,t){const s=II(),n=vs(s);return n.queryKey=O(s).queryKey,n}const qI=e=>(e=O(e),st({url:`/api/v1/namespaces/${e}`,method:"DELETE"})),LI=e=>{const t=["deleteApiV1NamespacesNs"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r}=i??{};return qI(r)},...s}},FI=(e,t)=>{const s=LI(e);return Ft(s)},VI=(e,t)=>(e=O(e),st({url:`/api/v1/namespaces/${e}/queues`,method:"GET",signal:t})),QI=e=>["api","v1","namespaces",e,"queues"],jI=(e,t)=>{const{query:s}=t??{};return{queryKey:QI(e),queryFn:({signal:r})=>VI(e,r),enabled:v(()=>!!O(e)),...s}};function BI(e,t,s){const n=jI(e,t),i=vs(n);return i.queryKey=O(n).queryKey,i}const UI=(e,t)=>(e=O(e),st({url:`/api/v1/namespaces/${e}/exchanges`,method:"GET",signal:t})),$i=e=>["api","v1","namespaces",e,"exchanges"],KI=(e,t)=>{const{query:s}=t??{};return{queryKey:$i(e),queryFn:({signal:r})=>UI(e,r),enabled:v(()=>!!O(e)),...s}};function HI(e,t,s){const n=KI(e,t),i=vs(n);return i.queryKey=O(n).queryKey,i}function Pb(){const e=Yl(),t=v(()=>e.selectedNamespace),s=MI(),n=BI(v(()=>t.value||""),{query:{enabled:v(()=>!!t.value)}}),i=FI({mutation:{onSuccess:async()=>{e.clearSelectedNamespace(),await s.refetch()}}}),r=v(()=>s.data.value),o=v(()=>n.data.value),l=v(()=>s.isLoading.value),u=v(()=>n.isLoading.value),d=v(()=>i.isPending.value),c=v(()=>l.value||u.value||d.value),h=v(()=>s.error.value),p=v(()=>n.error.value),m=v(()=>i.error.value),g=v(()=>h.value||p.value||m.value),C=v(()=>{var E;return(E=r.value)!=null&&E.data.length?[...r.value.data].sort((T,N)=>T.localeCompare(N)):[]}),y=v(()=>{var E;return(E=o.value)!=null&&E.data.length?[...o.value.data].sort((T,N)=>T.name.localeCompare(N.name)):[]}),A=v(()=>{var E;return!!((E=r.value)!=null&&E.data)&&r.value.data.length>0}),x=v(()=>{var E;return!!((E=o.value)!=null&&E.data)&&o.value.data.length>0}),S=v(()=>E=>{var T;return(T=r.value)!=null&&T.data?r.value.data.includes(E):!1});async function _(){await s.refetch()}async function $(E){if(E||t.value){const N=t.value;E&&E!==t.value&&e.selectNamespace(E);try{await n.refetch()}finally{E&&E!==N&&(N?e.selectNamespace(N):e.clearSelectedNamespace())}}}async function V(E){await i.mutateAsync({ns:E})}function j(E){const T=E||t.value;if(!T)return Promise.resolve([]);const N=[s.refetch()];return T===t.value&&N.push(n.refetch()),Promise.all(N)}function R(E){return!!E&&E.trim().length>0}return{namespacesQuery:s,namespaceQueuesQuery:n,deleteNamespaceMutation:i,namespaces:r,namespaceQueues:o,isLoading:c,isLoadingNamespaces:l,isLoadingNamespaceQueues:u,isDeletingNamespace:d,error:g,namespacesError:h,namespaceQueuesError:p,deleteNamespaceError:m,sortedNamespaces:C,sortedNamespaceQueues:y,hasNamespaces:A,hasNamespaceQueues:x,namespaceExists:S,refreshNamespaces:_,refreshNamespaceQueues:$,deleteNamespace:V,refetchNamespaceData:j,isValidNamespace:R}}function GI(e){const t=lN({mutation:{onSuccess:async()=>{await e()}}}),s=v(()=>t.isPending.value),n=v(()=>{var i;return(i=t.error.value)==null?void 0:i.error});return{createQueue:t.mutateAsync,isCreatingQueue:s,createQueueError:n,createQueueMutation:t}}function Db(e){const t=hN({mutation:{onSuccess:async()=>{await e()}}}),s=v(()=>t.isPending.value),n=v(()=>{var i;return(i=t.error.value)==null?void 0:i.error});return{deleteQueue:t.mutateAsync,isDeletingQueue:s,deleteQueueError:n,deleteQueueMutation:t}}/**
|
|
36
|
+
* vee-validate v4.15.0
|
|
37
|
+
* (c) 2024 Abdelrahman Awad
|
|
38
|
+
* @license MIT
|
|
39
|
+
*/function jt(e){return typeof e=="function"}function Rb(e){return e==null}const Xi=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Bd(e){return Number(e)>=0}function WI(e){const t=parseFloat(e);return isNaN(t)?e:t}function zI(e){return typeof e=="object"&&e!==null}function YI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function xp(e){if(!zI(e)||YI(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Qa(e,t){return Object.keys(t).forEach(s=>{if(xp(t[s])&&xp(e[s])){e[s]||(e[s]={}),Qa(e[s],t[s]);return}e[s]=t[s]}),e}function va(e){const t=e.split(".");if(!t.length)return"";let s=String(t[0]);for(let n=1;n<t.length;n++){if(Bd(t[n])){s+=`[${t[n]}]`;continue}s+=`.${t[n]}`}return s}const ZI={};function JI(e){return ZI[e]}function Op(e,t,s){typeof s.value=="object"&&(s.value=dt(s.value)),!s.enumerable||s.get||s.set||!s.configurable||!s.writable||t==="__proto__"?Object.defineProperty(e,t,s):e[t]=s.value}function dt(e){if(typeof e!="object")return e;var t=0,s,n,i,r=Object.prototype.toString.call(e);if(r==="[object Object]"?i=Object.create(e.__proto__||null):r==="[object Array]"?i=Array(e.length):r==="[object Set]"?(i=new Set,e.forEach(function(o){i.add(dt(o))})):r==="[object Map]"?(i=new Map,e.forEach(function(o,l){i.set(dt(l),dt(o))})):r==="[object Date]"?i=new Date(+e):r==="[object RegExp]"?i=new RegExp(e.source,e.flags):r==="[object DataView]"?i=new e.constructor(dt(e.buffer)):r==="[object ArrayBuffer]"?i=e.slice(0):r.slice(-6)==="Array]"&&(i=new e.constructor(e)),i){for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)Op(i,n[t],Object.getOwnPropertyDescriptor(e,n[t]));for(t=0,n=Object.getOwnPropertyNames(e);t<n.length;t++)Object.hasOwnProperty.call(i,s=n[t])&&i[s]===e[s]||Op(i,s,Object.getOwnPropertyDescriptor(e,s))}return i||e}const Zl=Symbol("vee-validate-form"),XI=Symbol("vee-validate-form-context"),eM=Symbol("vee-validate-field-instance"),ll=Symbol("Default empty value"),tM=typeof window<"u";function Lc(e){return jt(e)&&!!e.__locatorRef}function Hs(e){return!!e&&jt(e.parse)&&e.__type==="VVTypedSchema"}function ul(e){return!!e&&jt(e.validate)}function ao(e){return e==="checkbox"||e==="radio"}function sM(e){return Xi(e)||Array.isArray(e)}function nM(e){return Array.isArray(e)?e.length===0:Xi(e)&&Object.keys(e).length===0}function oo(e){return/^\[.+\]$/i.test(e)}function iM(e){return Ib(e)&&e.multiple}function Ib(e){return e.tagName==="SELECT"}function rM(e,t){const s=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e==="select"&&"multiple"in t&&s}function aM(e,t){return!rM(e,t)&&t.type!=="file"&&!ao(t.type)}function Mb(e){return Ud(e)&&e.target&&"submit"in e.target}function Ud(e){return e?!!(typeof Event<"u"&&jt(Event)&&e instanceof Event||e&&e.srcElement):!1}function Np(e,t){return t in e&&e[t]!==ll}function as(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var s,n,i;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!as(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!as(n[1],t.get(n[0])))return!1;return!0}if(Pp(e)&&Pp(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),s=i.length-kp(e,i),s!==Object.keys(t).length-kp(t,Object.keys(t)))return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=s;n--!==0;){var r=i[n];if(!as(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function kp(e,t){let s=0;for(let i=t.length;i--!==0;){var n=t[i];e[n]===void 0&&s++}return s}function Pp(e){return tM?e instanceof File:!1}function Jl(e){return oo(e)?e.replace(/\[|\]/gi,""):e}function fs(e,t,s){return e?oo(t)?e[Jl(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i,r)=>sM(i)&&r in i?i[r]:s,e):s}function yn(e,t,s){if(oo(t)){e[Jl(t)]=s;return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i=e;for(let r=0;r<n.length;r++){if(r===n.length-1){i[n[r]]=s;return}(!(n[r]in i)||Rb(i[n[r]]))&&(i[n[r]]=Bd(n[r+1])?[]:{}),i=i[n[r]]}}function qu(e,t){if(Array.isArray(e)&&Bd(t)){e.splice(Number(t),1);return}Xi(e)&&delete e[t]}function Dp(e,t){if(oo(t)){delete e[Jl(t)];return}const s=t.split(/\.|\[(\d+)\]/).filter(Boolean);let n=e;for(let r=0;r<s.length;r++){if(r===s.length-1){qu(n,s[r]);break}if(!(s[r]in n)||Rb(n[s[r]]))break;n=n[s[r]]}const i=s.map((r,o)=>fs(e,s.slice(0,o).join(".")));for(let r=i.length-1;r>=0;r--)if(nM(i[r])){if(r===0){qu(e,s[0]);continue}qu(i[r-1],s[r-1])}}function ys(e){return Object.keys(e)}function qb(e,t=void 0){const s=eo();return(s==null?void 0:s.provides[e])||rs(e,t)}function Rp(e,t,s){if(Array.isArray(e)){const n=[...e],i=n.findIndex(r=>as(r,t));return i>=0?n.splice(i,1):n.push(t),n}return as(e,t)?s:t}function Ip(e,t=0){let s=null,n=[];return function(...i){return s&&clearTimeout(s),s=setTimeout(()=>{const r=e(...i);n.forEach(o=>o(r)),n=[]},t),new Promise(r=>n.push(r))}}function oM(e,t){return Xi(t)&&t.number?WI(e):e}function Fc(e,t){let s;return async function(...i){const r=e(...i);s=r;const o=await r;return r!==s?o:(s=void 0,t(o,i))}}function Vc(e){return Array.isArray(e)?e:e?[e]:[]}function ko(e,t){const s={};for(const n in e)t.includes(n)||(s[n]=e[n]);return s}function lM(e){let t=null,s=[];return function(...n){const i=Ht(()=>{if(t!==i)return;const r=e(...n);s.forEach(o=>o(r)),s=[],t=null});return t=i,new Promise(r=>s.push(r))}}function Kd(e,t,s){return t.slots.default?typeof e=="string"||!e?t.slots.default(s()):{default:()=>{var n,i;return(i=(n=t.slots).default)===null||i===void 0?void 0:i.call(n,s())}}:t.slots.default}function Lu(e){if(Lb(e))return e._value}function Lb(e){return"_value"in e}function uM(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function cl(e){if(!Ud(e))return e;const t=e.target;if(ao(t.type)&&Lb(t))return Lu(t);if(t.type==="file"&&t.files){const s=Array.from(t.files);return t.multiple?s:s[0]}if(iM(t))return Array.from(t.options).filter(s=>s.selected&&!s.disabled).map(Lu);if(Ib(t)){const s=Array.from(t.options).find(n=>n.selected);return s?Lu(s):t.value}return uM(t)}function Fb(e){const t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?Xi(e)&&e._$$isNormalized?e:Xi(e)?Object.keys(e).reduce((s,n)=>{const i=cM(e[n]);return e[n]!==!1&&(s[n]=Mp(i)),s},t):typeof e!="string"?t:e.split("|").reduce((s,n)=>{const i=dM(n);return i.name&&(s[i.name]=Mp(i.params)),s},t):t}function cM(e){return e===!0?[]:Array.isArray(e)||Xi(e)?e:[e]}function Mp(e){const t=s=>typeof s=="string"&&s[0]==="@"?fM(s.slice(1)):s;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((s,n)=>(s[n]=t(e[n]),s),{})}const dM=e=>{let t=[];const s=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:s,params:t}};function fM(e){const t=s=>{var n;return(n=fs(s,e))!==null&&n!==void 0?n:s[e]};return t.__locatorRef=e,t}function hM(e){return Array.isArray(e)?e.filter(Lc):ys(e).filter(t=>Lc(e[t])).map(t=>e[t])}const pM={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let mM=Object.assign({},pM);const Ni=()=>mM;async function Vb(e,t,s={}){const n=s==null?void 0:s.bails,i={name:(s==null?void 0:s.name)||"{field}",rules:t,label:s==null?void 0:s.label,bails:n??!0,formData:(s==null?void 0:s.values)||{}},r=await gM(i,e);return Object.assign(Object.assign({},r),{valid:!r.errors.length})}async function gM(e,t){const s=e.rules;if(Hs(s)||ul(s))return bM(t,Object.assign(Object.assign({},e),{rules:s}));if(jt(s)||Array.isArray(s)){const l={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},u=Array.isArray(s)?s:[s],d=u.length,c=[];for(let h=0;h<d;h++){const p=u[h],m=await p(t,l);if(!(typeof m!="string"&&!Array.isArray(m)&&m)){if(Array.isArray(m))c.push(...m);else{const C=typeof m=="string"?m:jb(l);c.push(C)}if(e.bails)return{errors:c}}}return{errors:c}}const n=Object.assign(Object.assign({},e),{rules:Fb(s)}),i=[],r=Object.keys(n.rules),o=r.length;for(let l=0;l<o;l++){const u=r[l],d=await yM(n,t,{name:u,params:n.rules[u]});if(d.error&&(i.push(d.error),e.bails))return{errors:i}}return{errors:i}}function vM(e){return!!e&&e.name==="ValidationError"}function Qb(e){return{__type:"VVTypedSchema",async parse(s,n){var i;try{return{output:await e.validate(s,{abortEarly:!1,context:(n==null?void 0:n.formData)||{}}),errors:[]}}catch(r){if(!vM(r))throw r;if(!(!((i=r.inner)===null||i===void 0)&&i.length)&&r.errors.length)return{errors:[{path:r.path,errors:r.errors}]};const o=r.inner.reduce((l,u)=>{const d=u.path||"";return l[d]||(l[d]={errors:[],path:d}),l[d].errors.push(...u.errors),l},{});return{errors:Object.values(o)}}}}}async function bM(e,t){const n=await(Hs(t.rules)?t.rules:Qb(t.rules)).parse(e,{formData:t.formData}),i=[];for(const r of n.errors)r.errors.length&&i.push(...r.errors);return{value:n.value,errors:i}}async function yM(e,t,s){const n=JI(s.name);if(!n)throw new Error(`No such validator '${s.name}' exists.`);const i=_M(s.params,e.formData),r={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},s),{params:i})},o=await n(t,i,r);return typeof o=="string"?{error:o}:{error:o?void 0:jb(r)}}function jb(e){const t=Ni().generateMessage;return t?t(e):"Field is invalid"}function _M(e,t){const s=n=>Lc(n)?n(t):n;return Array.isArray(e)?e.map(s):Object.keys(e).reduce((n,i)=>(n[i]=s(e[i]),n),{})}async function EM(e,t){const n=await(Hs(e)?e:Qb(e)).parse(dt(t),{formData:dt(t)}),i={},r={};for(const o of n.errors){const l=o.errors,u=(o.path||"").replace(/\["(\d+)"\]/g,(d,c)=>`[${c}]`);i[u]={valid:!l.length,errors:l},l.length&&(r[u]=l[0])}return{valid:!n.errors.length,results:i,errors:r,values:n.value,source:"schema"}}async function wM(e,t,s){const i=ys(e).map(async d=>{var c,h,p;const m=(c=s==null?void 0:s.names)===null||c===void 0?void 0:c[d],g=await Vb(fs(t,d),e[d],{name:(m==null?void 0:m.name)||d,label:m==null?void 0:m.label,values:t,bails:(p=(h=s==null?void 0:s.bailsMap)===null||h===void 0?void 0:h[d])!==null&&p!==void 0?p:!0});return Object.assign(Object.assign({},g),{path:d})});let r=!0;const o=await Promise.all(i),l={},u={};for(const d of o)l[d.path]={valid:d.valid,errors:d.errors},d.valid||(r=!1,u[d.path]=d.errors[0]);return{valid:r,results:l,errors:u,source:"schema"}}let qp=0;function CM(e,t){const{value:s,initialValue:n,setInitialValue:i}=AM(e,t.modelValue,t.form);if(!t.form){let u=function(m){var g;"value"in m&&(s.value=m.value),"errors"in m&&c(m.errors),"touched"in m&&(p.touched=(g=m.touched)!==null&&g!==void 0?g:p.touched),"initialValue"in m&&i(m.initialValue)};const{errors:d,setErrors:c}=TM(),h=qp>=Number.MAX_SAFE_INTEGER?0:++qp,p=$M(s,n,d,t.schema);return{id:h,path:e,value:s,initialValue:n,meta:p,flags:{pendingUnmount:{[h]:!1},pendingReset:!1},errors:d,setState:u}}const r=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate,schema:t.schema}),o=v(()=>r.errors);function l(u){var d,c,h;"value"in u&&(s.value=u.value),"errors"in u&&((d=t.form)===null||d===void 0||d.setFieldError(O(e),u.errors)),"touched"in u&&((c=t.form)===null||c===void 0||c.setFieldTouched(O(e),(h=u.touched)!==null&&h!==void 0?h:!1)),"initialValue"in u&&i(u.initialValue)}return{id:Array.isArray(r.id)?r.id[r.id.length-1]:r.id,path:e,value:s,errors:o,meta:r,initialValue:n,flags:r.__flags,setState:l}}function AM(e,t,s){const n=we(O(t));function i(){return s?fs(s.initialValues.value,O(e),O(n)):O(n)}function r(d){if(!s){n.value=d;return}s.setFieldInitialValue(O(e),d,!0)}const o=v(i);if(!s)return{value:we(i()),initialValue:o,setInitialValue:r};const l=SM(t,s,o,e);return s.stageInitialValue(O(e),l,!0),{value:v({get(){return fs(s.values,O(e))},set(d){s.setFieldValue(O(e),d,!1)}}),initialValue:o,setInitialValue:r}}function SM(e,t,s,n){return vt(e)?O(e):e!==void 0?e:fs(t.values,O(n),O(s))}function $M(e,t,s,n){const i=v(()=>{var o,l,u;return(u=(l=(o=Qe(n))===null||o===void 0?void 0:o.describe)===null||l===void 0?void 0:l.call(o).required)!==null&&u!==void 0?u:!1}),r=qs({touched:!1,pending:!1,valid:!0,required:i,validated:!!O(s).length,initialValue:v(()=>O(t)),dirty:v(()=>!as(O(e),O(t)))});return rt(s,o=>{r.valid=!o.length},{immediate:!0,flush:"sync"}),r}function TM(){const e=we([]);return{errors:e,setErrors:t=>{e.value=Vc(t)}}}function xM(e,t,s){return ao(s==null?void 0:s.type)?NM(e,t,s):Bb(e,t,s)}function Bb(e,t,s){const{initialValue:n,validateOnMount:i,bails:r,type:o,checkedValue:l,label:u,validateOnValueUpdate:d,uncheckedValue:c,controlled:h,keepValueOnUnmount:p,syncVModel:m,form:g}=OM(s),C=h?qb(Zl):void 0,y=g||C,A=v(()=>va(Qe(e))),x=v(()=>{if(Qe(y==null?void 0:y.schema))return;const D=O(t);return ul(D)||Hs(D)||jt(D)||Array.isArray(D)?D:Fb(D)}),S=!jt(x.value)&&Hs(Qe(t)),{id:_,value:$,initialValue:V,meta:j,setState:R,errors:E,flags:T}=CM(A,{modelValue:n,form:y,bails:r,label:u,type:o,validate:x.value?te:void 0,schema:S?t:void 0}),N=v(()=>E.value[0]);m&&kM({value:$,prop:m,handleChange:W,shouldValidate:()=>d&&!T.pendingReset});const w=(K,D=!1)=>{j.touched=!0,D&&se()};async function z(K){var D,B;if(y!=null&&y.validateSchema){const{results:J}=await y.validateSchema(K);return(D=J[Qe(A)])!==null&&D!==void 0?D:{valid:!0,errors:[]}}return x.value?Vb($.value,x.value,{name:Qe(A),label:Qe(u),values:(B=y==null?void 0:y.values)!==null&&B!==void 0?B:{},bails:r}):{valid:!0,errors:[]}}const se=Fc(async()=>(j.pending=!0,j.validated=!0,z("validated-only")),K=>(T.pendingUnmount[Re.id]||(R({errors:K.errors}),j.pending=!1,j.valid=K.valid),K)),ne=Fc(async()=>z("silent"),K=>(j.valid=K.valid,K));function te(K){return(K==null?void 0:K.mode)==="silent"?ne():se()}function W(K,D=!0){const B=cl(K);Ue(B,D)}gs(()=>{if(i)return se();(!y||!y.validateSchema)&&ne()});function ee(K){j.touched=K}function fe(K){var D;const B=K&&"value"in K?K.value:V.value;R({value:dt(B),initialValue:dt(B),touched:(D=K==null?void 0:K.touched)!==null&&D!==void 0?D:!1,errors:(K==null?void 0:K.errors)||[]}),j.pending=!1,j.validated=!1,ne()}const Oe=eo();function Ue(K,D=!0){$.value=Oe&&m?oM(K,Oe.props.modelModifiers):K,(D?se:ne)()}function ue(K){R({errors:Array.isArray(K)?K:[K]})}const ve=v({get(){return $.value},set(K){Ue(K,d)}}),Re={id:_,name:A,label:u,value:ve,meta:j,errors:E,errorMessage:N,type:o,checkedValue:l,uncheckedValue:c,bails:r,keepValueOnUnmount:p,resetField:fe,handleReset:()=>fe(),validate:te,handleChange:W,handleBlur:w,setState:R,setTouched:ee,setErrors:ue,setValue:Ue};if(Bi(eM,Re),vt(t)&&typeof O(t)!="function"&&rt(t,(K,D)=>{as(K,D)||(j.validated?se():ne())},{deep:!0}),!y)return Re;const _e=v(()=>{const K=x.value;return!K||jt(K)||ul(K)||Hs(K)||Array.isArray(K)?{}:Object.keys(K).reduce((D,B)=>{const J=hM(K[B]).map(ce=>ce.__locatorRef).reduce((ce,Y)=>{const P=fs(y.values,Y)||y.values[Y];return P!==void 0&&(ce[Y]=P),ce},{});return Object.assign(D,J),D},{})});return rt(_e,(K,D)=>{if(!Object.keys(K).length)return;!as(K,D)&&(j.validated?se():ne())}),Dl(()=>{var K;const D=(K=Qe(Re.keepValueOnUnmount))!==null&&K!==void 0?K:Qe(y.keepValuesOnUnmount),B=Qe(A);if(D||!y||T.pendingUnmount[Re.id]){y==null||y.removePathState(B,_);return}T.pendingUnmount[Re.id]=!0;const J=y.getPathState(B);if(Array.isArray(J==null?void 0:J.id)&&(J!=null&&J.multiple)?J!=null&&J.id.includes(Re.id):(J==null?void 0:J.id)===Re.id){if(J!=null&&J.multiple&&Array.isArray(J.value)){const Y=J.value.findIndex(P=>as(P,Qe(Re.checkedValue)));if(Y>-1){const P=[...J.value];P.splice(Y,1),y.setFieldValue(B,P)}Array.isArray(J.id)&&J.id.splice(J.id.indexOf(Re.id),1)}else y.unsetPathValue(Qe(A));y.removePathState(B,_)}}),Re}function OM(e){const t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),s=!!(e!=null&&e.syncVModel),n=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",i=s&&!("initialValue"in(e||{}))?Qc(eo(),n):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:i});const r="valueProp"in e?e.valueProp:e.checkedValue,o="standalone"in e?!e.standalone:e.controlled,l=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:i,controlled:o??!0,checkedValue:r,syncVModel:l})}function NM(e,t,s){const n=s!=null&&s.standalone?void 0:qb(Zl),i=s==null?void 0:s.checkedValue,r=s==null?void 0:s.uncheckedValue;function o(l){const u=l.handleChange,d=v(()=>{const h=Qe(l.value),p=Qe(i);return Array.isArray(h)?h.findIndex(m=>as(m,p))>=0:as(p,h)});function c(h,p=!0){var m,g;if(d.value===((m=h==null?void 0:h.target)===null||m===void 0?void 0:m.checked)){p&&l.validate();return}const C=Qe(e),y=n==null?void 0:n.getPathState(C),A=cl(h);let x=(g=Qe(i))!==null&&g!==void 0?g:A;n&&(y!=null&&y.multiple)&&y.type==="checkbox"?x=Rp(fs(n.values,C)||[],x,void 0):(s==null?void 0:s.type)==="checkbox"&&(x=Rp(Qe(l.value),x,Qe(r))),u(x,p)}return Object.assign(Object.assign({},l),{checked:d,checkedValue:i,uncheckedValue:r,handleChange:c})}return o(Bb(e,t,s))}function kM({prop:e,value:t,handleChange:s,shouldValidate:n}){const i=eo();if(!i||!e)return;const r=typeof e=="string"?e:"modelValue",o=`update:${r}`;r in i.props&&(rt(t,l=>{as(l,Qc(i,r))||i.emit(o,l)}),rt(()=>Qc(i,r),l=>{if(l===ll&&t.value===void 0)return;const u=l===ll?void 0:l;as(u,t.value)||s(u,n())}))}function Qc(e,t){if(e)return e.props[t]}const PM=ze({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>Ni().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:ll},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,t){const s=Ti(e,"rules"),n=Ti(e,"name"),i=Ti(e,"label"),r=Ti(e,"uncheckedValue"),o=Ti(e,"keepValue"),{errors:l,value:u,errorMessage:d,validate:c,handleChange:h,handleBlur:p,setTouched:m,resetField:g,handleReset:C,meta:y,checked:A,setErrors:x,setValue:S}=xM(n,s,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:t.attrs.type,initialValue:RM(e,t),checkedValue:t.attrs.value,uncheckedValue:r,label:i,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:o,syncVModel:!0}),_=function(T,N=!0){h(T,N)},$=v(()=>{const{validateOnInput:E,validateOnChange:T,validateOnBlur:N,validateOnModelUpdate:w}=DM(e);function z(W){p(W,N),jt(t.attrs.onBlur)&&t.attrs.onBlur(W)}function se(W){_(W,E),jt(t.attrs.onInput)&&t.attrs.onInput(W)}function ne(W){_(W,T),jt(t.attrs.onChange)&&t.attrs.onChange(W)}const te={name:e.name,onBlur:z,onInput:se,onChange:ne};return te["onUpdate:modelValue"]=W=>_(W,w),te}),V=v(()=>{const E=Object.assign({},$.value);ao(t.attrs.type)&&A&&(E.checked=A.value);const T=Lp(e,t);return aM(T,t.attrs)&&(E.value=u.value),E}),j=v(()=>Object.assign(Object.assign({},$.value),{modelValue:u.value}));function R(){return{field:V.value,componentField:j.value,value:u.value,meta:y,errors:l.value,errorMessage:d.value,validate:c,resetField:g,handleChange:_,handleInput:E=>_(E,!1),handleReset:C,handleBlur:$.value.onBlur,setTouched:m,setErrors:x,setValue:S}}return t.expose({value:u,meta:y,errors:l,errorMessage:d,setErrors:x,setTouched:m,setValue:S,reset:g,validate:c,handleChange:h}),()=>{const E=Rl(Lp(e,t)),T=Kd(E,t,R);return E?Wi(E,Object.assign(Object.assign({},t.attrs),V.value),T):T}}});function Lp(e,t){let s=e.as||"";return!e.as&&!t.slots.default&&(s="input"),s}function DM(e){var t,s,n,i;const{validateOnInput:r,validateOnChange:o,validateOnBlur:l,validateOnModelUpdate:u}=Ni();return{validateOnInput:(t=e.validateOnInput)!==null&&t!==void 0?t:r,validateOnChange:(s=e.validateOnChange)!==null&&s!==void 0?s:o,validateOnBlur:(n=e.validateOnBlur)!==null&&n!==void 0?n:l,validateOnModelUpdate:(i=e.validateOnModelUpdate)!==null&&i!==void 0?i:u}}function RM(e,t){return ao(t.attrs.type)?Np(e,"modelValue")?e.modelValue:void 0:Np(e,"modelValue")?e.modelValue:t.attrs.value}const Ks=PM;let IM=0;const Po=["bails","fieldsCount","id","multiple","type","validate"];function Ub(e){const t=(e==null?void 0:e.initialValues)||{},s=Object.assign({},Qe(t)),n=O(e==null?void 0:e.validationSchema);return n&&Hs(n)&&jt(n.cast)?dt(n.cast(s)||{}):dt(s)}function Xl(e){var t;const s=IM++,n=(e==null?void 0:e.name)||"Form";let i=0;const r=we(!1),o=we(!1),l=we(0),u=[],d=qs(Ub(e)),c=we([]),h=we({}),p=we({}),m=lM(()=>{p.value=c.value.reduce((G,H)=>(G[va(Qe(H.path))]=H,G),{})});function g(G,H){const de=W(G);if(!de){typeof G=="string"&&(h.value[va(G)]=Vc(H));return}if(typeof G=="string"){const Se=va(G);h.value[Se]&&delete h.value[Se]}de.errors=Vc(H),de.valid=!de.errors.length}function C(G){ys(G).forEach(H=>{g(H,G[H])})}e!=null&&e.initialErrors&&C(e.initialErrors);const y=v(()=>{const G=c.value.reduce((H,de)=>(de.errors.length&&(H[Qe(de.path)]=de.errors),H),{});return Object.assign(Object.assign({},h.value),G)}),A=v(()=>ys(y.value).reduce((G,H)=>{const de=y.value[H];return de!=null&&de.length&&(G[H]=de[0]),G},{})),x=v(()=>c.value.reduce((G,H)=>(G[Qe(H.path)]={name:Qe(H.path)||"",label:H.label||""},G),{})),S=v(()=>c.value.reduce((G,H)=>{var de;return G[Qe(H.path)]=(de=H.bails)!==null&&de!==void 0?de:!0,G},{})),_=Object.assign({},(e==null?void 0:e.initialErrors)||{}),$=(t=e==null?void 0:e.keepValuesOnUnmount)!==null&&t!==void 0?t:!1,{initialValues:V,originalInitialValues:j,setInitialValues:R}=qM(c,d,e),E=MM(c,d,j,A),T=v(()=>c.value.reduce((G,H)=>{const de=fs(d,Qe(H.path));return yn(G,Qe(H.path),de),G},{})),N=e==null?void 0:e.validationSchema;function w(G,H){var de,Se;const Ne=v(()=>fs(V.value,Qe(G))),Fe=p.value[Qe(G)],Me=(H==null?void 0:H.type)==="checkbox"||(H==null?void 0:H.type)==="radio";if(Fe&&Me){Fe.multiple=!0;const ls=i++;return Array.isArray(Fe.id)?Fe.id.push(ls):Fe.id=[Fe.id,ls],Fe.fieldsCount++,Fe.__flags.pendingUnmount[ls]=!1,Fe}const wt=v(()=>fs(d,Qe(G))),yt=Qe(G),Rt=fe.findIndex(ls=>ls===yt);Rt!==-1&&fe.splice(Rt,1);const _t=v(()=>{var ls,fi,Xr,ea;const ta=Qe(N);if(Hs(ta))return(fi=(ls=ta.describe)===null||ls===void 0?void 0:ls.call(ta,Qe(G)).required)!==null&&fi!==void 0?fi:!1;const sa=Qe(H==null?void 0:H.schema);return Hs(sa)&&(ea=(Xr=sa.describe)===null||Xr===void 0?void 0:Xr.call(sa).required)!==null&&ea!==void 0?ea:!1}),It=i++,Ut=qs({id:It,path:G,touched:!1,pending:!1,valid:!0,validated:!!(!((de=_[yt])===null||de===void 0)&&de.length),required:_t,initialValue:Ne,errors:pg([]),bails:(Se=H==null?void 0:H.bails)!==null&&Se!==void 0?Se:!1,label:H==null?void 0:H.label,type:(H==null?void 0:H.type)||"default",value:wt,multiple:!1,__flags:{pendingUnmount:{[It]:!1},pendingReset:!1},fieldsCount:1,validate:H==null?void 0:H.validate,dirty:v(()=>!as(O(wt),O(Ne)))});return c.value.push(Ut),p.value[yt]=Ut,m(),A.value[yt]&&!_[yt]&&Ht(()=>{Z(yt,{mode:"silent"})}),vt(G)&&rt(G,ls=>{m();const fi=dt(wt.value);p.value[ls]=Ut,Ht(()=>{yn(d,ls,fi)})}),Ut}const z=Ip(ke,5),se=Ip(ke,5),ne=Fc(async G=>await(G==="silent"?z():se()),(G,[H])=>{const de=ys(D.errorBag.value),Ne=[...new Set([...ys(G.results),...c.value.map(Fe=>Fe.path),...de])].sort().reduce((Fe,Me)=>{var wt;const yt=Me,Rt=W(yt)||ee(yt),_t=((wt=G.results[yt])===null||wt===void 0?void 0:wt.errors)||[],It=Qe(Rt==null?void 0:Rt.path)||yt,Ut=LM({errors:_t,valid:!_t.length},Fe.results[It]);return Fe.results[It]=Ut,Ut.valid||(Fe.errors[It]=Ut.errors[0]),Rt&&h.value[It]&&delete h.value[It],Rt?(Rt.valid=Ut.valid,H==="silent"||H==="validated-only"&&!Rt.validated||g(Rt,Ut.errors),Fe):(g(It,_t),Fe)},{valid:G.valid,results:{},errors:{},source:G.source});return G.values&&(Ne.values=G.values,Ne.source=G.source),ys(Ne.results).forEach(Fe=>{var Me;const wt=W(Fe);wt&&H!=="silent"&&(H==="validated-only"&&!wt.validated||g(wt,(Me=Ne.results[Fe])===null||Me===void 0?void 0:Me.errors))}),Ne});function te(G){c.value.forEach(G)}function W(G){const H=typeof G=="string"?va(G):G;return typeof H=="string"?p.value[H]:H}function ee(G){return c.value.filter(de=>G.startsWith(Qe(de.path))).reduce((de,Se)=>de?Se.path.length>de.path.length?Se:de:Se,void 0)}let fe=[],Oe;function Ue(G){return fe.push(G),Oe||(Oe=Ht(()=>{[...fe].sort().reverse().forEach(de=>{Dp(d,de)}),fe=[],Oe=null})),Oe}function ue(G){return function(de,Se){return function(Fe){return Fe instanceof Event&&(Fe.preventDefault(),Fe.stopPropagation()),te(Me=>Me.touched=!0),r.value=!0,l.value++,ge().then(Me=>{const wt=dt(d);if(Me.valid&&typeof de=="function"){const yt=dt(T.value);let Rt=G?yt:wt;return Me.values&&(Rt=Me.source==="schema"?Me.values:Object.assign({},Rt,Me.values)),de(Rt,{evt:Fe,controlledValues:yt,setErrors:C,setFieldError:g,setTouched:ae,setFieldTouched:P,setValues:ce,setFieldValue:B,resetForm:pe,resetField:oe})}!Me.valid&&typeof Se=="function"&&Se({values:wt,evt:Fe,errors:Me.errors,results:Me.results})}).then(Me=>(r.value=!1,Me),Me=>{throw r.value=!1,Me})}}}const Re=ue(!1);Re.withControlled=ue(!0);function _e(G,H){const de=c.value.findIndex(Ne=>Ne.path===G&&(Array.isArray(Ne.id)?Ne.id.includes(H):Ne.id===H)),Se=c.value[de];if(!(de===-1||!Se)){if(Ht(()=>{Z(G,{mode:"silent",warn:!1})}),Se.multiple&&Se.fieldsCount&&Se.fieldsCount--,Array.isArray(Se.id)){const Ne=Se.id.indexOf(H);Ne>=0&&Se.id.splice(Ne,1),delete Se.__flags.pendingUnmount[H]}(!Se.multiple||Se.fieldsCount<=0)&&(c.value.splice(de,1),he(G),m(),delete p.value[G])}}function K(G){ys(p.value).forEach(H=>{H.startsWith(G)&&delete p.value[H]}),c.value=c.value.filter(H=>!H.path.startsWith(G)),Ht(()=>{m()})}const D={name:n,formId:s,values:d,controlledValues:T,errorBag:y,errors:A,schema:N,submitCount:l,meta:E,isSubmitting:r,isValidating:o,fieldArrays:u,keepValuesOnUnmount:$,validateSchema:O(N)?ne:void 0,validate:ge,setFieldError:g,validateField:Z,setFieldValue:B,setValues:ce,setErrors:C,setFieldTouched:P,setTouched:ae,resetForm:pe,resetField:oe,handleSubmit:Re,useFieldModel:ot,defineInputBinds:nt,defineComponentBinds:Nt,defineField:We,stageInitialValue:qe,unsetInitialValue:he,setFieldInitialValue:Ce,createPathState:w,getPathState:W,unsetPathValue:Ue,removePathState:_e,initialValues:V,getAllPathStates:()=>c.value,destroyPath:K,isFieldTouched:M,isFieldDirty:U,isFieldValid:ie};function B(G,H,de=!0){const Se=dt(H),Ne=typeof G=="string"?G:G.path;W(Ne)||w(Ne),yn(d,Ne,Se),de&&Z(Ne)}function J(G,H=!0){ys(d).forEach(de=>{delete d[de]}),ys(G).forEach(de=>{B(de,G[de],!1)}),H&&ge()}function ce(G,H=!0){Qa(d,G),u.forEach(de=>de&&de.reset()),H&&ge()}function Y(G,H){const de=W(Qe(G))||w(G);return v({get(){return de.value},set(Se){var Ne;const Fe=Qe(G);B(Fe,Se,(Ne=Qe(H))!==null&&Ne!==void 0?Ne:!1)}})}function P(G,H){const de=W(G);de&&(de.touched=H)}function M(G){const H=W(G);return H?H.touched:c.value.filter(de=>de.path.startsWith(G)).some(de=>de.touched)}function U(G){const H=W(G);return H?H.dirty:c.value.filter(de=>de.path.startsWith(G)).some(de=>de.dirty)}function ie(G){const H=W(G);return H?H.valid:c.value.filter(de=>de.path.startsWith(G)).every(de=>de.valid)}function ae(G){if(typeof G=="boolean"){te(H=>{H.touched=G});return}ys(G).forEach(H=>{P(H,!!G[H])})}function oe(G,H){var de;const Se=H&&"value"in H?H.value:fs(V.value,G),Ne=W(G);Ne&&(Ne.__flags.pendingReset=!0),Ce(G,dt(Se),!0),B(G,Se,!1),P(G,(de=H==null?void 0:H.touched)!==null&&de!==void 0?de:!1),g(G,(H==null?void 0:H.errors)||[]),Ht(()=>{Ne&&(Ne.__flags.pendingReset=!1)})}function pe(G,H){let de=dt(G!=null&&G.values?G.values:j.value);de=H!=null&&H.force?de:Qa(j.value,de),de=Hs(N)&&jt(N.cast)?N.cast(de):de,R(de,{force:H==null?void 0:H.force}),te(Se=>{var Ne;Se.__flags.pendingReset=!0,Se.validated=!1,Se.touched=((Ne=G==null?void 0:G.touched)===null||Ne===void 0?void 0:Ne[Qe(Se.path)])||!1,B(Qe(Se.path),fs(de,Qe(Se.path)),!1),g(Qe(Se.path),void 0)}),H!=null&&H.force?J(de,!1):ce(de,!1),C((G==null?void 0:G.errors)||{}),l.value=(G==null?void 0:G.submitCount)||0,Ht(()=>{ge({mode:"silent"}),te(Se=>{Se.__flags.pendingReset=!1})})}async function ge(G){const H=(G==null?void 0:G.mode)||"force";if(H==="force"&&te(Me=>Me.validated=!0),D.validateSchema)return D.validateSchema(H);o.value=!0;const de=await Promise.all(c.value.map(Me=>Me.validate?Me.validate(G).then(wt=>({key:Qe(Me.path),valid:wt.valid,errors:wt.errors,value:wt.value})):Promise.resolve({key:Qe(Me.path),valid:!0,errors:[],value:void 0})));o.value=!1;const Se={},Ne={},Fe={};for(const Me of de)Se[Me.key]={valid:Me.valid,errors:Me.errors},Me.value&&yn(Fe,Me.key,Me.value),Me.errors.length&&(Ne[Me.key]=Me.errors[0]);return{valid:de.every(Me=>Me.valid),results:Se,errors:Ne,values:Fe,source:"fields"}}async function Z(G,H){var de;const Se=W(G);if(Se&&(H==null?void 0:H.mode)!=="silent"&&(Se.validated=!0),N){const{results:Ne}=await ne((H==null?void 0:H.mode)||"validated-only");return Ne[G]||{errors:[],valid:!0}}return Se!=null&&Se.validate?Se.validate(H):(!Se&&(de=H==null?void 0:H.warn),Promise.resolve({errors:[],valid:!0}))}function he(G){Dp(V.value,G)}function qe(G,H,de=!1){Ce(G,H),yn(d,G,H),de&&!(e!=null&&e.initialValues)&&yn(j.value,G,dt(H))}function Ce(G,H,de=!1){yn(V.value,G,dt(H)),de&&yn(j.value,G,dt(H))}async function ke(){const G=O(N);if(!G)return{valid:!0,results:{},errors:{},source:"none"};o.value=!0;const H=ul(G)||Hs(G)?await EM(G,d):await wM(G,d,{names:x.value,bailsMap:S.value});return o.value=!1,H}const Be=Re((G,{evt:H})=>{Mb(H)&&H.target.submit()});gs(()=>{if(e!=null&&e.initialErrors&&C(e.initialErrors),e!=null&&e.initialTouched&&ae(e.initialTouched),e!=null&&e.validateOnMount){ge();return}D.validateSchema&&D.validateSchema("silent")}),vt(N)&&rt(N,()=>{var G;(G=D.validateSchema)===null||G===void 0||G.call(D,"validated-only")}),Bi(Zl,D);function We(G,H){const de=jt(H)||H==null?void 0:H.label,Se=W(Qe(G))||w(G,{label:de}),Ne=()=>jt(H)?H(ko(Se,Po)):H||{};function Fe(){var _t;Se.touched=!0,((_t=Ne().validateOnBlur)!==null&&_t!==void 0?_t:Ni().validateOnBlur)&&Z(Qe(Se.path))}function Me(){var _t;((_t=Ne().validateOnInput)!==null&&_t!==void 0?_t:Ni().validateOnInput)&&Ht(()=>{Z(Qe(Se.path))})}function wt(){var _t;((_t=Ne().validateOnChange)!==null&&_t!==void 0?_t:Ni().validateOnChange)&&Ht(()=>{Z(Qe(Se.path))})}const yt=v(()=>{const _t={onChange:wt,onInput:Me,onBlur:Fe};return jt(H)?Object.assign(Object.assign({},_t),H(ko(Se,Po)).props||{}):H!=null&&H.props?Object.assign(Object.assign({},_t),H.props(ko(Se,Po))):_t});return[Y(G,()=>{var _t,It,Ut;return(Ut=(_t=Ne().validateOnModelUpdate)!==null&&_t!==void 0?_t:(It=Ni())===null||It===void 0?void 0:It.validateOnModelUpdate)!==null&&Ut!==void 0?Ut:!0}),yt]}function ot(G){return Array.isArray(G)?G.map(H=>Y(H,!0)):Y(G)}function nt(G,H){const[de,Se]=We(G,H);function Ne(){Se.value.onBlur()}function Fe(wt){const yt=cl(wt);B(Qe(G),yt,!1),Se.value.onInput()}function Me(wt){const yt=cl(wt);B(Qe(G),yt,!1),Se.value.onChange()}return v(()=>Object.assign(Object.assign({},Se.value),{onBlur:Ne,onInput:Fe,onChange:Me,value:de.value}))}function Nt(G,H){const[de,Se]=We(G,H),Ne=W(Qe(G));function Fe(Me){de.value=Me}return v(()=>{const Me=jt(H)?H(ko(Ne,Po)):H||{};return Object.assign({[Me.model||"modelValue"]:de.value,[`onUpdate:${Me.model||"modelValue"}`]:Fe},Se.value)})}const kt=Object.assign(Object.assign({},D),{values:Ya(d),handleReset:()=>pe(),submitForm:Be});return Bi(XI,kt),kt}function MM(e,t,s,n){const i={touched:"some",pending:"some",valid:"every"},r=v(()=>!as(t,O(s)));function o(){const u=e.value;return ys(i).reduce((d,c)=>{const h=i[c];return d[c]=u[h](p=>p[c]),d},{})}const l=qs(o());return Dt(()=>{const u=o();l.touched=u.touched,l.valid=u.valid,l.pending=u.pending}),v(()=>Object.assign(Object.assign({initialValues:O(s)},l),{valid:l.valid&&!ys(n.value).length,dirty:r.value}))}function qM(e,t,s){const n=Ub(s),i=we(n),r=we(dt(n));function o(l,u){u!=null&&u.force?(i.value=dt(l),r.value=dt(l)):(i.value=Qa(dt(i.value)||{},dt(l)),r.value=Qa(dt(r.value)||{},dt(l))),u!=null&&u.updateFields&&e.value.forEach(d=>{if(d.touched)return;const h=fs(i.value,Qe(d.path));yn(t,Qe(d.path),dt(h))})}return{initialValues:i,originalInitialValues:r,setInitialValues:o}}function LM(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}const FM=ze({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(e,t){const s=Ti(e,"validationSchema"),n=Ti(e,"keepValues"),{errors:i,errorBag:r,values:o,meta:l,isSubmitting:u,isValidating:d,submitCount:c,controlledValues:h,validate:p,validateField:m,handleReset:g,resetForm:C,handleSubmit:y,setErrors:A,setFieldError:x,setFieldValue:S,setValues:_,setFieldTouched:$,setTouched:V,resetField:j}=Xl({validationSchema:s.value?s:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:n,name:e.name}),R=y((te,{evt:W})=>{Mb(W)&&W.target.submit()},e.onInvalidSubmit),E=e.onSubmit?y(e.onSubmit,e.onInvalidSubmit):R;function T(te){Ud(te)&&te.preventDefault(),g(),typeof t.attrs.onReset=="function"&&t.attrs.onReset()}function N(te,W){return y(typeof te=="function"&&!W?te:W,e.onInvalidSubmit)(te)}function w(){return dt(o)}function z(){return dt(l.value)}function se(){return dt(i.value)}function ne(){return{meta:l.value,errors:i.value,errorBag:r.value,values:o,isSubmitting:u.value,isValidating:d.value,submitCount:c.value,controlledValues:h.value,validate:p,validateField:m,handleSubmit:N,handleReset:g,submitForm:R,setErrors:A,setFieldError:x,setFieldValue:S,setValues:_,setFieldTouched:$,setTouched:V,resetForm:C,resetField:j,getValues:w,getMeta:z,getErrors:se}}return t.expose({setFieldError:x,setErrors:A,setFieldValue:S,setValues:_,setFieldTouched:$,setTouched:V,resetForm:C,validate:p,validateField:m,resetField:j,getValues:w,getMeta:z,getErrors:se,values:o,meta:l,errors:i}),function(){const W=e.as==="form"?e.as:e.as?Rl(e.as):null,ee=Kd(W,t,ne);return W?Wi(W,Object.assign(Object.assign(Object.assign({},W==="form"?{novalidate:!0}:{}),t.attrs),{onSubmit:E,onReset:T}),ee):ee}}}),Kb=FM,VM=ze({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){const s=rs(Zl,void 0),n=v(()=>s==null?void 0:s.errors.value[e.name]);function i(){return{message:n.value}}return()=>{if(!n.value)return;const r=e.as?Rl(e.as):e.as,o=Kd(r,t,i),l=Object.assign({role:"alert"},t.attrs);return!r&&(Array.isArray(o)||!o)&&(o!=null&&o.length)?o:(Array.isArray(o)||!o)&&!(o!=null&&o.length)?Wi(r||"span",l,n.value):Wi(r,l,o)}}}),ki=VM;var ct;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function s(i){throw new Error}e.assertNever=s,e.arrayToEnum=i=>{const r={};for(const o of i)r[o]=o;return r},e.getValidEnumValues=i=>{const r=e.objectKeys(i).filter(l=>typeof i[i[l]]!="number"),o={};for(const l of r)o[l]=i[l];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(r){return i[r]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const r=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&r.push(o);return r},e.find=(i,r)=>{for(const o of i)if(r(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,r=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(r)}e.joinValues=n,e.jsonStringifyReplacer=(i,r)=>typeof r=="bigint"?r.toString():r})(ct||(ct={}));var Fp;(function(e){e.mergeShapes=(t,s)=>({...t,...s})})(Fp||(Fp={}));const Pe=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),jn=e=>{switch(typeof e){case"undefined":return Pe.undefined;case"string":return Pe.string;case"number":return Number.isNaN(e)?Pe.nan:Pe.number;case"boolean":return Pe.boolean;case"function":return Pe.function;case"bigint":return Pe.bigint;case"symbol":return Pe.symbol;case"object":return Array.isArray(e)?Pe.array:e===null?Pe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Pe.promise:typeof Map<"u"&&e instanceof Map?Pe.map:typeof Set<"u"&&e instanceof Set?Pe.set:typeof Date<"u"&&e instanceof Date?Pe.date:Pe.object;default:return Pe.unknown}},be=ct.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class On extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const s=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,s):this.__proto__=s,this.name="ZodError",this.issues=t}format(t){const s=t||function(r){return r.message},n={_errors:[]},i=r=>{for(const o of r.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(s(o));else{let l=n,u=0;for(;u<o.path.length;){const d=o.path[u];u===o.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(s(o))):l[d]=l[d]||{_errors:[]},l=l[d],u++}}};return i(this),n}static assert(t){if(!(t instanceof On))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=s=>s.message){const s={},n=[];for(const i of this.issues)i.path.length>0?(s[i.path[0]]=s[i.path[0]]||[],s[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:s}}get formErrors(){return this.flatten()}}On.create=e=>new On(e);const jc=(e,t)=>{let s;switch(e.code){case be.invalid_type:e.received===Pe.undefined?s="Required":s=`Expected ${e.expected}, received ${e.received}`;break;case be.invalid_literal:s=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case be.unrecognized_keys:s=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case be.invalid_union:s="Invalid input";break;case be.invalid_union_discriminator:s=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case be.invalid_enum_value:s=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case be.invalid_arguments:s="Invalid function arguments";break;case be.invalid_return_type:s="Invalid function return type";break;case be.invalid_date:s="Invalid date";break;case be.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(s=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(s=`${s} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?s=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?s=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?s=`Invalid ${e.validation}`:s="Invalid";break;case be.too_small:e.type==="array"?s=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?s=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?s=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?s=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:s="Invalid input";break;case be.too_big:e.type==="array"?s=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?s=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?s=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?s=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?s=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:s="Invalid input";break;case be.custom:s="Invalid input";break;case be.invalid_intersection_types:s="Intersection results could not be merged";break;case be.not_multiple_of:s=`Number must be a multiple of ${e.multipleOf}`;break;case be.not_finite:s="Number must be finite";break;default:s=t.defaultError,ct.assertNever(e)}return{message:s}};let QM=jc;function jM(){return QM}const BM=e=>{const{data:t,path:s,errorMaps:n,issueData:i}=e,r=[...s,...i.path||[]],o={...i,path:r};if(i.message!==void 0)return{...i,path:r,message:i.message};let l="";const u=n.filter(d=>!!d).slice().reverse();for(const d of u)l=d(o,{data:t,defaultError:l}).message;return{...i,path:r,message:l}};function Te(e,t){const s=jM(),n=BM({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,s,s===jc?void 0:jc].filter(i=>!!i)});e.common.issues.push(n)}class $s{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,s){const n=[];for(const i of s){if(i.status==="aborted")return Ge;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,s){const n=[];for(const i of s){const r=await i.key,o=await i.value;n.push({key:r,value:o})}return $s.mergeObjectSync(t,n)}static mergeObjectSync(t,s){const n={};for(const i of s){const{key:r,value:o}=i;if(r.status==="aborted"||o.status==="aborted")return Ge;r.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),r.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[r.value]=o.value)}return{status:t.value,value:n}}}const Ge=Object.freeze({status:"aborted"}),ba=e=>({status:"dirty",value:e}),Ls=e=>({status:"valid",value:e}),Vp=e=>e.status==="aborted",Qp=e=>e.status==="dirty",Ur=e=>e.status==="valid",dl=e=>typeof Promise<"u"&&e instanceof Promise;var Ie;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ie||(Ie={}));class ri{constructor(t,s,n,i){this._cachedPath=[],this.parent=t,this.data=s,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const jp=(e,t)=>{if(Ur(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const s=new On(e.common.issues);return this._error=s,this._error}}};function tt(e){if(!e)return{};const{errorMap:t,invalid_type_error:s,required_error:n,description:i}=e;if(t&&(s||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,l)=>{const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??l.defaultError}:typeof l.data>"u"?{message:u??n??l.defaultError}:o.code!=="invalid_type"?{message:l.defaultError}:{message:u??s??l.defaultError}},description:i}}class ut{get description(){return this._def.description}_getType(t){return jn(t.data)}_getOrReturnCtx(t,s){return s||{common:t.parent.common,data:t.data,parsedType:jn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new $s,ctx:{common:t.parent.common,data:t.data,parsedType:jn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const s=this._parse(t);if(dl(s))throw new Error("Synchronous parse encountered promise.");return s}_parseAsync(t){const s=this._parse(t);return Promise.resolve(s)}parse(t,s){const n=this.safeParse(t,s);if(n.success)return n.data;throw n.error}safeParse(t,s){const n={common:{issues:[],async:(s==null?void 0:s.async)??!1,contextualErrorMap:s==null?void 0:s.errorMap},path:(s==null?void 0:s.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jn(t)},i=this._parseSync({data:t,path:n.path,parent:n});return jp(n,i)}"~validate"(t){var n,i;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jn(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:s});return Ur(r)?{value:r.value}:{issues:s.common.issues}}catch(r){(i=(n=r==null?void 0:r.message)==null?void 0:n.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(r=>Ur(r)?{value:r.value}:{issues:s.common.issues})}async parseAsync(t,s){const n=await this.safeParseAsync(t,s);if(n.success)return n.data;throw n.error}async safeParseAsync(t,s){const n={common:{issues:[],contextualErrorMap:s==null?void 0:s.errorMap,async:!0},path:(s==null?void 0:s.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:jn(t)},i=this._parse({data:t,path:n.path,parent:n}),r=await(dl(i)?i:Promise.resolve(i));return jp(n,r)}refine(t,s){const n=i=>typeof s=="string"||typeof s>"u"?{message:s}:typeof s=="function"?s(i):s;return this._refinement((i,r)=>{const o=t(i),l=()=>r.addIssue({code:be.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(l(),!1)):o?!0:(l(),!1)})}refinement(t,s){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof s=="function"?s(n,i):s),!1))}_refinement(t){return new Gr({schema:this,typeName:He.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:s=>this["~validate"](s)}}optional(){return ni.create(this,this._def)}nullable(){return Wr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return un.create(this)}promise(){return ml.create(this,this._def)}or(t){return hl.create([this,t],this._def)}and(t){return pl.create(this,t,this._def)}transform(t){return new Gr({...tt(this._def),schema:this,typeName:He.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const s=typeof t=="function"?t:()=>t;return new gl({...tt(this._def),innerType:this,defaultValue:s,typeName:He.ZodDefault})}brand(){return new fq({typeName:He.ZodBranded,type:this,...tt(this._def)})}catch(t){const s=typeof t=="function"?t:()=>t;return new Kc({...tt(this._def),innerType:this,catchValue:s,typeName:He.ZodCatch})}describe(t){const s=this.constructor;return new s({...this._def,description:t})}pipe(t){return Hd.create(this,t)}readonly(){return Hc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const UM=/^c[^\s-]{8,}$/i,KM=/^[0-9a-z]+$/,HM=/^[0-9A-HJKMNP-TV-Z]{26}$/i,GM=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,WM=/^[a-z0-9_-]{21}$/i,zM=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,YM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ZM=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,JM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Fu;const XM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,eq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,sq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nq=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iq=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Hb="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rq=new RegExp(`^${Hb}$`);function Gb(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const s=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${s}`}function aq(e){return new RegExp(`^${Gb(e)}$`)}function oq(e){let t=`${Hb}T${Gb(e)}`;const s=[];return s.push(e.local?"Z?":"Z"),e.offset&&s.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${s.join("|")})`,new RegExp(`^${t}$`)}function lq(e,t){return!!((t==="v4"||!t)&&XM.test(e)||(t==="v6"||!t)&&tq.test(e))}function uq(e,t){if(!zM.test(e))return!1;try{const[s]=e.split("."),n=s.replace(/-/g,"+").replace(/_/g,"/").padEnd(s.length+(4-s.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function cq(e,t){return!!((t==="v4"||!t)&&eq.test(e)||(t==="v6"||!t)&&sq.test(e))}class Xn extends ut{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Pe.string){const r=this._getOrReturnCtx(t);return Te(r,{code:be.invalid_type,expected:Pe.string,received:r.parsedType}),Ge}const n=new $s;let i;for(const r of this._def.checks)if(r.kind==="min")t.data.length<r.value&&(i=this._getOrReturnCtx(t,i),Te(i,{code:be.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="max")t.data.length>r.value&&(i=this._getOrReturnCtx(t,i),Te(i,{code:be.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),n.dirty());else if(r.kind==="length"){const o=t.data.length>r.value,l=t.data.length<r.value;(o||l)&&(i=this._getOrReturnCtx(t,i),o?Te(i,{code:be.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):l&&Te(i,{code:be.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),n.dirty())}else if(r.kind==="email")ZM.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"email",code:be.invalid_string,message:r.message}),n.dirty());else if(r.kind==="emoji")Fu||(Fu=new RegExp(JM,"u")),Fu.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"emoji",code:be.invalid_string,message:r.message}),n.dirty());else if(r.kind==="uuid")GM.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"uuid",code:be.invalid_string,message:r.message}),n.dirty());else if(r.kind==="nanoid")WM.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"nanoid",code:be.invalid_string,message:r.message}),n.dirty());else if(r.kind==="cuid")UM.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"cuid",code:be.invalid_string,message:r.message}),n.dirty());else if(r.kind==="cuid2")KM.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"cuid2",code:be.invalid_string,message:r.message}),n.dirty());else if(r.kind==="ulid")HM.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"ulid",code:be.invalid_string,message:r.message}),n.dirty());else if(r.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Te(i,{validation:"url",code:be.invalid_string,message:r.message}),n.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"regex",code:be.invalid_string,message:r.message}),n.dirty())):r.kind==="trim"?t.data=t.data.trim():r.kind==="includes"?t.data.includes(r.value,r.position)||(i=this._getOrReturnCtx(t,i),Te(i,{code:be.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),n.dirty()):r.kind==="toLowerCase"?t.data=t.data.toLowerCase():r.kind==="toUpperCase"?t.data=t.data.toUpperCase():r.kind==="startsWith"?t.data.startsWith(r.value)||(i=this._getOrReturnCtx(t,i),Te(i,{code:be.invalid_string,validation:{startsWith:r.value},message:r.message}),n.dirty()):r.kind==="endsWith"?t.data.endsWith(r.value)||(i=this._getOrReturnCtx(t,i),Te(i,{code:be.invalid_string,validation:{endsWith:r.value},message:r.message}),n.dirty()):r.kind==="datetime"?oq(r).test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{code:be.invalid_string,validation:"datetime",message:r.message}),n.dirty()):r.kind==="date"?rq.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{code:be.invalid_string,validation:"date",message:r.message}),n.dirty()):r.kind==="time"?aq(r).test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{code:be.invalid_string,validation:"time",message:r.message}),n.dirty()):r.kind==="duration"?YM.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"duration",code:be.invalid_string,message:r.message}),n.dirty()):r.kind==="ip"?lq(t.data,r.version)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"ip",code:be.invalid_string,message:r.message}),n.dirty()):r.kind==="jwt"?uq(t.data,r.alg)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"jwt",code:be.invalid_string,message:r.message}),n.dirty()):r.kind==="cidr"?cq(t.data,r.version)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"cidr",code:be.invalid_string,message:r.message}),n.dirty()):r.kind==="base64"?nq.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"base64",code:be.invalid_string,message:r.message}),n.dirty()):r.kind==="base64url"?iq.test(t.data)||(i=this._getOrReturnCtx(t,i),Te(i,{validation:"base64url",code:be.invalid_string,message:r.message}),n.dirty()):ct.assertNever(r);return{status:n.value,value:t.data}}_regex(t,s,n){return this.refinement(i=>t.test(i),{validation:s,code:be.invalid_string,...Ie.errToObj(n)})}_addCheck(t){return new Xn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ie.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ie.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ie.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ie.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ie.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ie.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ie.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ie.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ie.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ie.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ie.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ie.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ie.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Ie.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ie.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ie.errToObj(t)})}regex(t,s){return this._addCheck({kind:"regex",regex:t,...Ie.errToObj(s)})}includes(t,s){return this._addCheck({kind:"includes",value:t,position:s==null?void 0:s.position,...Ie.errToObj(s==null?void 0:s.message)})}startsWith(t,s){return this._addCheck({kind:"startsWith",value:t,...Ie.errToObj(s)})}endsWith(t,s){return this._addCheck({kind:"endsWith",value:t,...Ie.errToObj(s)})}min(t,s){return this._addCheck({kind:"min",value:t,...Ie.errToObj(s)})}max(t,s){return this._addCheck({kind:"max",value:t,...Ie.errToObj(s)})}length(t,s){return this._addCheck({kind:"length",value:t,...Ie.errToObj(s)})}nonempty(t){return this.min(1,Ie.errToObj(t))}trim(){return new Xn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Xn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Xn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const s of this._def.checks)s.kind==="min"&&(t===null||s.value>t)&&(t=s.value);return t}get maxLength(){let t=null;for(const s of this._def.checks)s.kind==="max"&&(t===null||s.value<t)&&(t=s.value);return t}}Xn.create=e=>new Xn({checks:[],typeName:He.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...tt(e)});function dq(e,t){const s=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=s>n?s:n,r=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return r%o/10**i}class Kr extends ut{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Pe.number){const r=this._getOrReturnCtx(t);return Te(r,{code:be.invalid_type,expected:Pe.number,received:r.parsedType}),Ge}let n;const i=new $s;for(const r of this._def.checks)r.kind==="int"?ct.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),Te(n,{code:be.invalid_type,expected:"integer",received:"float",message:r.message}),i.dirty()):r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(n=this._getOrReturnCtx(t,n),Te(n,{code:be.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(n=this._getOrReturnCtx(t,n),Te(n,{code:be.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):r.kind==="multipleOf"?dq(t.data,r.value)!==0&&(n=this._getOrReturnCtx(t,n),Te(n,{code:be.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):r.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),Te(n,{code:be.not_finite,message:r.message}),i.dirty()):ct.assertNever(r);return{status:i.value,value:t.data}}gte(t,s){return this.setLimit("min",t,!0,Ie.toString(s))}gt(t,s){return this.setLimit("min",t,!1,Ie.toString(s))}lte(t,s){return this.setLimit("max",t,!0,Ie.toString(s))}lt(t,s){return this.setLimit("max",t,!1,Ie.toString(s))}setLimit(t,s,n,i){return new Kr({...this._def,checks:[...this._def.checks,{kind:t,value:s,inclusive:n,message:Ie.toString(i)}]})}_addCheck(t){return new Kr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ie.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ie.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ie.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ie.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ie.toString(t)})}multipleOf(t,s){return this._addCheck({kind:"multipleOf",value:t,message:Ie.toString(s)})}finite(t){return this._addCheck({kind:"finite",message:Ie.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ie.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ie.toString(t)})}get minValue(){let t=null;for(const s of this._def.checks)s.kind==="min"&&(t===null||s.value>t)&&(t=s.value);return t}get maxValue(){let t=null;for(const s of this._def.checks)s.kind==="max"&&(t===null||s.value<t)&&(t=s.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,s=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(s===null||n.value>s)&&(s=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(s)&&Number.isFinite(t)}}Kr.create=e=>new Kr({checks:[],typeName:He.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class ja extends ut{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Pe.bigint)return this._getInvalidInput(t);let n;const i=new $s;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(n=this._getOrReturnCtx(t,n),Te(n,{code:be.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(n=this._getOrReturnCtx(t,n),Te(n,{code:be.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):r.kind==="multipleOf"?t.data%r.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),Te(n,{code:be.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):ct.assertNever(r);return{status:i.value,value:t.data}}_getInvalidInput(t){const s=this._getOrReturnCtx(t);return Te(s,{code:be.invalid_type,expected:Pe.bigint,received:s.parsedType}),Ge}gte(t,s){return this.setLimit("min",t,!0,Ie.toString(s))}gt(t,s){return this.setLimit("min",t,!1,Ie.toString(s))}lte(t,s){return this.setLimit("max",t,!0,Ie.toString(s))}lt(t,s){return this.setLimit("max",t,!1,Ie.toString(s))}setLimit(t,s,n,i){return new ja({...this._def,checks:[...this._def.checks,{kind:t,value:s,inclusive:n,message:Ie.toString(i)}]})}_addCheck(t){return new ja({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ie.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ie.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ie.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ie.toString(t)})}multipleOf(t,s){return this._addCheck({kind:"multipleOf",value:t,message:Ie.toString(s)})}get minValue(){let t=null;for(const s of this._def.checks)s.kind==="min"&&(t===null||s.value>t)&&(t=s.value);return t}get maxValue(){let t=null;for(const s of this._def.checks)s.kind==="max"&&(t===null||s.value<t)&&(t=s.value);return t}}ja.create=e=>new ja({checks:[],typeName:He.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...tt(e)});class Bp extends ut{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Pe.boolean){const n=this._getOrReturnCtx(t);return Te(n,{code:be.invalid_type,expected:Pe.boolean,received:n.parsedType}),Ge}return Ls(t.data)}}Bp.create=e=>new Bp({typeName:He.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class fl extends ut{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Pe.date){const r=this._getOrReturnCtx(t);return Te(r,{code:be.invalid_type,expected:Pe.date,received:r.parsedType}),Ge}if(Number.isNaN(t.data.getTime())){const r=this._getOrReturnCtx(t);return Te(r,{code:be.invalid_date}),Ge}const n=new $s;let i;for(const r of this._def.checks)r.kind==="min"?t.data.getTime()<r.value&&(i=this._getOrReturnCtx(t,i),Te(i,{code:be.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),n.dirty()):r.kind==="max"?t.data.getTime()>r.value&&(i=this._getOrReturnCtx(t,i),Te(i,{code:be.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):ct.assertNever(r);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new fl({...this._def,checks:[...this._def.checks,t]})}min(t,s){return this._addCheck({kind:"min",value:t.getTime(),message:Ie.toString(s)})}max(t,s){return this._addCheck({kind:"max",value:t.getTime(),message:Ie.toString(s)})}get minDate(){let t=null;for(const s of this._def.checks)s.kind==="min"&&(t===null||s.value>t)&&(t=s.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const s of this._def.checks)s.kind==="max"&&(t===null||s.value<t)&&(t=s.value);return t!=null?new Date(t):null}}fl.create=e=>new fl({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:He.ZodDate,...tt(e)});class Up extends ut{_parse(t){if(this._getType(t)!==Pe.symbol){const n=this._getOrReturnCtx(t);return Te(n,{code:be.invalid_type,expected:Pe.symbol,received:n.parsedType}),Ge}return Ls(t.data)}}Up.create=e=>new Up({typeName:He.ZodSymbol,...tt(e)});class Kp extends ut{_parse(t){if(this._getType(t)!==Pe.undefined){const n=this._getOrReturnCtx(t);return Te(n,{code:be.invalid_type,expected:Pe.undefined,received:n.parsedType}),Ge}return Ls(t.data)}}Kp.create=e=>new Kp({typeName:He.ZodUndefined,...tt(e)});class Hp extends ut{_parse(t){if(this._getType(t)!==Pe.null){const n=this._getOrReturnCtx(t);return Te(n,{code:be.invalid_type,expected:Pe.null,received:n.parsedType}),Ge}return Ls(t.data)}}Hp.create=e=>new Hp({typeName:He.ZodNull,...tt(e)});class Gp extends ut{constructor(){super(...arguments),this._any=!0}_parse(t){return Ls(t.data)}}Gp.create=e=>new Gp({typeName:He.ZodAny,...tt(e)});class Wp extends ut{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ls(t.data)}}Wp.create=e=>new Wp({typeName:He.ZodUnknown,...tt(e)});class ai extends ut{_parse(t){const s=this._getOrReturnCtx(t);return Te(s,{code:be.invalid_type,expected:Pe.never,received:s.parsedType}),Ge}}ai.create=e=>new ai({typeName:He.ZodNever,...tt(e)});class zp extends ut{_parse(t){if(this._getType(t)!==Pe.undefined){const n=this._getOrReturnCtx(t);return Te(n,{code:be.invalid_type,expected:Pe.void,received:n.parsedType}),Ge}return Ls(t.data)}}zp.create=e=>new zp({typeName:He.ZodVoid,...tt(e)});class un extends ut{_parse(t){const{ctx:s,status:n}=this._processInputParams(t),i=this._def;if(s.parsedType!==Pe.array)return Te(s,{code:be.invalid_type,expected:Pe.array,received:s.parsedType}),Ge;if(i.exactLength!==null){const o=s.data.length>i.exactLength.value,l=s.data.length<i.exactLength.value;(o||l)&&(Te(s,{code:o?be.too_big:be.too_small,minimum:l?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&s.data.length<i.minLength.value&&(Te(s,{code:be.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&s.data.length>i.maxLength.value&&(Te(s,{code:be.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),s.common.async)return Promise.all([...s.data].map((o,l)=>i.type._parseAsync(new ri(s,o,s.path,l)))).then(o=>$s.mergeArray(n,o));const r=[...s.data].map((o,l)=>i.type._parseSync(new ri(s,o,s.path,l)));return $s.mergeArray(n,r)}get element(){return this._def.type}min(t,s){return new un({...this._def,minLength:{value:t,message:Ie.toString(s)}})}max(t,s){return new un({...this._def,maxLength:{value:t,message:Ie.toString(s)}})}length(t,s){return new un({...this._def,exactLength:{value:t,message:Ie.toString(s)}})}nonempty(t){return this.min(1,t)}}un.create=(e,t)=>new un({type:e,minLength:null,maxLength:null,exactLength:null,typeName:He.ZodArray,...tt(t)});function pr(e){if(e instanceof Tt){const t={};for(const s in e.shape){const n=e.shape[s];t[s]=ni.create(pr(n))}return new Tt({...e._def,shape:()=>t})}else return e instanceof un?new un({...e._def,type:pr(e.element)}):e instanceof ni?ni.create(pr(e.unwrap())):e instanceof Wr?Wr.create(pr(e.unwrap())):e instanceof er?er.create(e.items.map(t=>pr(t))):e}class Tt extends ut{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),s=ct.objectKeys(t);return this._cached={shape:t,keys:s},this._cached}_parse(t){if(this._getType(t)!==Pe.object){const d=this._getOrReturnCtx(t);return Te(d,{code:be.invalid_type,expected:Pe.object,received:d.parsedType}),Ge}const{status:n,ctx:i}=this._processInputParams(t),{shape:r,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof ai&&this._def.unknownKeys==="strip"))for(const d in i.data)o.includes(d)||l.push(d);const u=[];for(const d of o){const c=r[d],h=i.data[d];u.push({key:{status:"valid",value:d},value:c._parse(new ri(i,h,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof ai){const d=this._def.unknownKeys;if(d==="passthrough")for(const c of l)u.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(d==="strict")l.length>0&&(Te(i,{code:be.unrecognized_keys,keys:l}),n.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const c of l){const h=i.data[c];u.push({key:{status:"valid",value:c},value:d._parse(new ri(i,h,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const d=[];for(const c of u){const h=await c.key,p=await c.value;d.push({key:h,value:p,alwaysSet:c.alwaysSet})}return d}).then(d=>$s.mergeObjectSync(n,d)):$s.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return Ie.errToObj,new Tt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(s,n)=>{var r,o;const i=((o=(r=this._def).errorMap)==null?void 0:o.call(r,s,n).message)??n.defaultError;return s.code==="unrecognized_keys"?{message:Ie.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Tt({...this._def,unknownKeys:"strip"})}passthrough(){return new Tt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Tt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Tt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:He.ZodObject})}setKey(t,s){return this.augment({[t]:s})}catchall(t){return new Tt({...this._def,catchall:t})}pick(t){const s={};for(const n of ct.objectKeys(t))t[n]&&this.shape[n]&&(s[n]=this.shape[n]);return new Tt({...this._def,shape:()=>s})}omit(t){const s={};for(const n of ct.objectKeys(this.shape))t[n]||(s[n]=this.shape[n]);return new Tt({...this._def,shape:()=>s})}deepPartial(){return pr(this)}partial(t){const s={};for(const n of ct.objectKeys(this.shape)){const i=this.shape[n];t&&!t[n]?s[n]=i:s[n]=i.optional()}return new Tt({...this._def,shape:()=>s})}required(t){const s={};for(const n of ct.objectKeys(this.shape))if(t&&!t[n])s[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof ni;)r=r._def.innerType;s[n]=r}return new Tt({...this._def,shape:()=>s})}keyof(){return Wb(ct.objectKeys(this.shape))}}Tt.create=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strip",catchall:ai.create(),typeName:He.ZodObject,...tt(t)});Tt.strictCreate=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strict",catchall:ai.create(),typeName:He.ZodObject,...tt(t)});Tt.lazycreate=(e,t)=>new Tt({shape:e,unknownKeys:"strip",catchall:ai.create(),typeName:He.ZodObject,...tt(t)});class hl extends ut{_parse(t){const{ctx:s}=this._processInputParams(t),n=this._def.options;function i(r){for(const l of r)if(l.result.status==="valid")return l.result;for(const l of r)if(l.result.status==="dirty")return s.common.issues.push(...l.ctx.common.issues),l.result;const o=r.map(l=>new On(l.ctx.common.issues));return Te(s,{code:be.invalid_union,unionErrors:o}),Ge}if(s.common.async)return Promise.all(n.map(async r=>{const o={...s,common:{...s.common,issues:[]},parent:null};return{result:await r._parseAsync({data:s.data,path:s.path,parent:o}),ctx:o}})).then(i);{let r;const o=[];for(const u of n){const d={...s,common:{...s.common,issues:[]},parent:null},c=u._parseSync({data:s.data,path:s.path,parent:d});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:d}),d.common.issues.length&&o.push(d.common.issues)}if(r)return s.common.issues.push(...r.ctx.common.issues),r.result;const l=o.map(u=>new On(u));return Te(s,{code:be.invalid_union,unionErrors:l}),Ge}}get options(){return this._def.options}}hl.create=(e,t)=>new hl({options:e,typeName:He.ZodUnion,...tt(t)});function Bc(e,t){const s=jn(e),n=jn(t);if(e===t)return{valid:!0,data:e};if(s===Pe.object&&n===Pe.object){const i=ct.objectKeys(t),r=ct.objectKeys(e).filter(l=>i.indexOf(l)!==-1),o={...e,...t};for(const l of r){const u=Bc(e[l],t[l]);if(!u.valid)return{valid:!1};o[l]=u.data}return{valid:!0,data:o}}else if(s===Pe.array&&n===Pe.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let r=0;r<e.length;r++){const o=e[r],l=t[r],u=Bc(o,l);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return s===Pe.date&&n===Pe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class pl extends ut{_parse(t){const{status:s,ctx:n}=this._processInputParams(t),i=(r,o)=>{if(Vp(r)||Vp(o))return Ge;const l=Bc(r.value,o.value);return l.valid?((Qp(r)||Qp(o))&&s.dirty(),{status:s.value,value:l.data}):(Te(n,{code:be.invalid_intersection_types}),Ge)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([r,o])=>i(r,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}pl.create=(e,t,s)=>new pl({left:e,right:t,typeName:He.ZodIntersection,...tt(s)});class er extends ut{_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.parsedType!==Pe.array)return Te(n,{code:be.invalid_type,expected:Pe.array,received:n.parsedType}),Ge;if(n.data.length<this._def.items.length)return Te(n,{code:be.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ge;!this._def.rest&&n.data.length>this._def.items.length&&(Te(n,{code:be.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),s.dirty());const r=[...n.data].map((o,l)=>{const u=this._def.items[l]||this._def.rest;return u?u._parse(new ri(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(r).then(o=>$s.mergeArray(s,o)):$s.mergeArray(s,r)}get items(){return this._def.items}rest(t){return new er({...this._def,rest:t})}}er.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new er({items:e,typeName:He.ZodTuple,rest:null,...tt(t)})};class Yp extends ut{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.parsedType!==Pe.map)return Te(n,{code:be.invalid_type,expected:Pe.map,received:n.parsedType}),Ge;const i=this._def.keyType,r=this._def.valueType,o=[...n.data.entries()].map(([l,u],d)=>({key:i._parse(new ri(n,l,n.path,[d,"key"])),value:r._parse(new ri(n,u,n.path,[d,"value"]))}));if(n.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const u of o){const d=await u.key,c=await u.value;if(d.status==="aborted"||c.status==="aborted")return Ge;(d.status==="dirty"||c.status==="dirty")&&s.dirty(),l.set(d.value,c.value)}return{status:s.value,value:l}})}else{const l=new Map;for(const u of o){const d=u.key,c=u.value;if(d.status==="aborted"||c.status==="aborted")return Ge;(d.status==="dirty"||c.status==="dirty")&&s.dirty(),l.set(d.value,c.value)}return{status:s.value,value:l}}}}Yp.create=(e,t,s)=>new Yp({valueType:t,keyType:e,typeName:He.ZodMap,...tt(s)});class Ba extends ut{_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.parsedType!==Pe.set)return Te(n,{code:be.invalid_type,expected:Pe.set,received:n.parsedType}),Ge;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(Te(n,{code:be.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),s.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(Te(n,{code:be.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),s.dirty());const r=this._def.valueType;function o(u){const d=new Set;for(const c of u){if(c.status==="aborted")return Ge;c.status==="dirty"&&s.dirty(),d.add(c.value)}return{status:s.value,value:d}}const l=[...n.data.values()].map((u,d)=>r._parse(new ri(n,u,n.path,d)));return n.common.async?Promise.all(l).then(u=>o(u)):o(l)}min(t,s){return new Ba({...this._def,minSize:{value:t,message:Ie.toString(s)}})}max(t,s){return new Ba({...this._def,maxSize:{value:t,message:Ie.toString(s)}})}size(t,s){return this.min(t,s).max(t,s)}nonempty(t){return this.min(1,t)}}Ba.create=(e,t)=>new Ba({valueType:e,minSize:null,maxSize:null,typeName:He.ZodSet,...tt(t)});class Zp extends ut{get schema(){return this._def.getter()}_parse(t){const{ctx:s}=this._processInputParams(t);return this._def.getter()._parse({data:s.data,path:s.path,parent:s})}}Zp.create=(e,t)=>new Zp({getter:e,typeName:He.ZodLazy,...tt(t)});class Jp extends ut{_parse(t){if(t.data!==this._def.value){const s=this._getOrReturnCtx(t);return Te(s,{received:s.data,code:be.invalid_literal,expected:this._def.value}),Ge}return{status:"valid",value:t.data}}get value(){return this._def.value}}Jp.create=(e,t)=>new Jp({value:e,typeName:He.ZodLiteral,...tt(t)});function Wb(e,t){return new Hr({values:e,typeName:He.ZodEnum,...tt(t)})}class Hr extends ut{_parse(t){if(typeof t.data!="string"){const s=this._getOrReturnCtx(t),n=this._def.values;return Te(s,{expected:ct.joinValues(n),received:s.parsedType,code:be.invalid_type}),Ge}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const s=this._getOrReturnCtx(t),n=this._def.values;return Te(s,{received:s.data,code:be.invalid_enum_value,options:n}),Ge}return Ls(t.data)}get options(){return this._def.values}get enum(){const t={};for(const s of this._def.values)t[s]=s;return t}get Values(){const t={};for(const s of this._def.values)t[s]=s;return t}get Enum(){const t={};for(const s of this._def.values)t[s]=s;return t}extract(t,s=this._def){return Hr.create(t,{...this._def,...s})}exclude(t,s=this._def){return Hr.create(this.options.filter(n=>!t.includes(n)),{...this._def,...s})}}Hr.create=Wb;class Uc extends ut{_parse(t){const s=ct.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Pe.string&&n.parsedType!==Pe.number){const i=ct.objectValues(s);return Te(n,{expected:ct.joinValues(i),received:n.parsedType,code:be.invalid_type}),Ge}if(this._cache||(this._cache=new Set(ct.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=ct.objectValues(s);return Te(n,{received:n.data,code:be.invalid_enum_value,options:i}),Ge}return Ls(t.data)}get enum(){return this._def.values}}Uc.create=(e,t)=>new Uc({values:e,typeName:He.ZodNativeEnum,...tt(t)});class ml extends ut{unwrap(){return this._def.type}_parse(t){const{ctx:s}=this._processInputParams(t);if(s.parsedType!==Pe.promise&&s.common.async===!1)return Te(s,{code:be.invalid_type,expected:Pe.promise,received:s.parsedType}),Ge;const n=s.parsedType===Pe.promise?s.data:Promise.resolve(s.data);return Ls(n.then(i=>this._def.type.parseAsync(i,{path:s.path,errorMap:s.common.contextualErrorMap})))}}ml.create=(e,t)=>new ml({type:e,typeName:He.ZodPromise,...tt(t)});class Gr extends ut{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===He.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:s,ctx:n}=this._processInputParams(t),i=this._def.effect||null,r={addIssue:o=>{Te(n,o),o.fatal?s.abort():s.dirty()},get path(){return n.path}};if(r.addIssue=r.addIssue.bind(r),i.type==="preprocess"){const o=i.transform(n.data,r);if(n.common.async)return Promise.resolve(o).then(async l=>{if(s.value==="aborted")return Ge;const u=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return u.status==="aborted"?Ge:u.status==="dirty"||s.value==="dirty"?ba(u.value):u});{if(s.value==="aborted")return Ge;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?Ge:l.status==="dirty"||s.value==="dirty"?ba(l.value):l}}if(i.type==="refinement"){const o=l=>{const u=i.refinement(l,r);if(n.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){const l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?Ge:(l.status==="dirty"&&s.dirty(),o(l.value),{status:s.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?Ge:(l.status==="dirty"&&s.dirty(),o(l.value).then(()=>({status:s.value,value:l.value}))))}if(i.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Ur(o))return Ge;const l=i.transform(o.value,r);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:s.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Ur(o)?Promise.resolve(i.transform(o.value,r)).then(l=>({status:s.value,value:l})):Ge);ct.assertNever(i)}}Gr.create=(e,t,s)=>new Gr({schema:e,typeName:He.ZodEffects,effect:t,...tt(s)});Gr.createWithPreprocess=(e,t,s)=>new Gr({schema:t,effect:{type:"preprocess",transform:e},typeName:He.ZodEffects,...tt(s)});class ni extends ut{_parse(t){return this._getType(t)===Pe.undefined?Ls(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ni.create=(e,t)=>new ni({innerType:e,typeName:He.ZodOptional,...tt(t)});class Wr extends ut{_parse(t){return this._getType(t)===Pe.null?Ls(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Wr.create=(e,t)=>new Wr({innerType:e,typeName:He.ZodNullable,...tt(t)});class gl extends ut{_parse(t){const{ctx:s}=this._processInputParams(t);let n=s.data;return s.parsedType===Pe.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:s.path,parent:s})}removeDefault(){return this._def.innerType}}gl.create=(e,t)=>new gl({innerType:e,typeName:He.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...tt(t)});class Kc extends ut{_parse(t){const{ctx:s}=this._processInputParams(t),n={...s,common:{...s.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return dl(i)?i.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new On(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new On(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Kc.create=(e,t)=>new Kc({innerType:e,typeName:He.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...tt(t)});class Xp extends ut{_parse(t){if(this._getType(t)!==Pe.nan){const n=this._getOrReturnCtx(t);return Te(n,{code:be.invalid_type,expected:Pe.nan,received:n.parsedType}),Ge}return{status:"valid",value:t.data}}}Xp.create=e=>new Xp({typeName:He.ZodNaN,...tt(e)});class fq extends ut{_parse(t){const{ctx:s}=this._processInputParams(t),n=s.data;return this._def.type._parse({data:n,path:s.path,parent:s})}unwrap(){return this._def.type}}class Hd extends ut{_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?Ge:r.status==="dirty"?(s.dirty(),ba(r.value)):this._def.out._parseAsync({data:r.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ge:i.status==="dirty"?(s.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,s){return new Hd({in:t,out:s,typeName:He.ZodPipeline})}}class Hc extends ut{_parse(t){const s=this._def.innerType._parse(t),n=i=>(Ur(i)&&(i.value=Object.freeze(i.value)),i);return dl(s)?s.then(i=>n(i)):n(s)}unwrap(){return this._def.innerType}}Hc.create=(e,t)=>new Hc({innerType:e,typeName:He.ZodReadonly,...tt(t)});var He;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(He||(He={}));const vl=Xn.create,em=Kr.create;ai.create;un.create;const Gd=Tt.create;hl.create;pl.create;er.create;Hr.create;const tm=Uc.create;ml.create;ni.create;Wr.create;/**
|
|
40
|
+
* vee-validate v4.15.0
|
|
41
|
+
* (c) 2024 Abdelrahman Awad
|
|
42
|
+
* @license MIT
|
|
43
|
+
*/const sm=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function zb(e){return Number(e)>=0}function hq(e){return typeof e=="object"&&e!==null}function pq(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function nm(e){if(!hq(e)||pq(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Yb(e,t){return Object.keys(t).forEach(s=>{if(nm(t[s])&&nm(e[s])){e[s]||(e[s]={}),Yb(e[s],t[s]);return}e[s]=t[s]}),e}function mq(e){const t=e.split(".");if(!t.length)return"";let s=String(t[0]);for(let n=1;n<t.length;n++){if(zb(t[n])){s+=`[${t[n]}]`;continue}s+=`.${t[n]}`}return s}function Wd(e,t){return{__type:"VVTypedSchema",async parse(n){const i=await e.safeParseAsync(n,t);if(i.success)return{value:i.data,errors:[]};const r={};return Zb(i.error.issues,r),{errors:Object.values(r)}},cast(n){try{return e.parse(n)}catch{const r=Jb(e);return sm(r)&&sm(n)?Yb(r,n):n}},describe(n){try{if(!n)return{required:!e.isOptional(),exists:!0};const i=gq(n,e);return i?{required:!i.isOptional(),exists:!0}:{required:!1,exists:!1}}catch{return{required:!1,exists:!1}}}}}function Zb(e,t){e.forEach(s=>{const n=mq(s.path.join("."));s.code==="invalid_union"&&(Zb(s.unionErrors.flatMap(i=>i.issues),t),!n)||(t[n]||(t[n]={errors:[],path:n}),t[n].errors.push(s.message))})}function Jb(e){if(e instanceof Tt)return Object.fromEntries(Object.entries(e.shape).map(([t,s])=>s instanceof gl?[t,s._def.defaultValue()]:s instanceof Tt?[t,Jb(s)]:[t,void 0]))}function gq(e,t){if(!im(t))return null;if(oo(e))return t.shape[Jl(e)];const s=(e||"").split(/\.|\[(\d+)\]/).filter(Boolean);let n=t;for(let i=0;i<=s.length;i++){const r=s[i];if(!r||!n)return n;if(im(n)){n=n.shape[r]||null;continue}zb(r)&&vq(n)&&(n=n._def.type)}return null}function Xb(e){return e._def.typeName}function vq(e){return Xb(e)===He.ZodArray}function im(e){return Xb(e)===He.ZodObject}function rm(e){return!e||!e.length?!1:!e.toLowerCase().replace(/(?:[a-z][a-z0-9]?)+(?:[-_.]?[a-z0-9])*/g,"").length}function bq(e){const t=Gd({name:vl().min(1,"Queue name is required").max(100,"Queue name must be less than 100 characters").refine(rm,{message:"Name must start with a letter and contain only letters, numbers, and single separators (-, _, .). It cannot end with a separator."}),ns:vl().min(1,"Namespace is required").max(100,"Namespace must be less than 100 characters").refine(rm,{message:"Namespace must start with a letter and contain only letters, numbers, and single separators (-, _, .). It cannot end with a separator."}),type:tm(ts,{errorMap:()=>({message:"Please select a valid queue type"})}),deliveryModel:tm(Es,{errorMap:()=>({message:"Please select a valid delivery model"})})}),s=Wd(t),n={name:"",ns:"",type:ts.FIFO_QUEUE,deliveryModel:Es.POINT_TO_POINT},i={...n,...e},{errors:r,values:o,meta:l,resetForm:u,handleSubmit:d,setFieldValue:c,setValues:h}=Xl({validationSchema:s,initialValues:i});return{errors:r,values:o,meta:l,resetForm:u,resetFormWithValues:m=>{const g=m?{...n,...m}:i;u({values:g})},handleSubmit:d,setFieldValue:c,setValues:h,initialValues:i,defaultInitialValues:n,validationSchema:s}}const yq={class:"form-content"},_q={class:"form-section"},Eq={class:"form-grid"},wq={class:"form-group"},Cq={class:"form-group"},Aq={class:"form-section"},Sq={class:"form-grid"},$q={class:"form-group"},Tq=["value"],xq=["value"],Oq=["value"],Nq={class:"form-group"},kq=["value"],Pq=["value"],Dq={key:0,class:"error-section"},Rq={class:"error-content"},Iq={class:"error-text"},Mq={class:"error-message"},qq=["disabled"],Lq=ze({__name:"CreateQueueModal",props:{isVisible:{type:Boolean},isCreating:{type:Boolean},createError:{},namespace:{}},emits:["close","create"],setup(e,{emit:t}){const s={mounted:m=>m.focus()},n=e,i=t,{errors:r,resetForm:o,initialValues:l,validationSchema:u}=bq({ns:n.namespace}),{meta:d,handleSubmit:c}=Xl({initialValues:l,validationSchema:u});rt(()=>n.isVisible,m=>{m||o()});const h=c(m=>{i("create",{...m})});function p(){i("close")}return(m,g)=>(k(),gt(Wl,{"is-visible":m.isVisible,title:"Create New Queue",subtitle:"Configure your message queue settings",icon:"bi bi-plus-circle-fill",onClose:p},{body:et(()=>[a("form",{onSubmit:g[0]||(g[0]=xt((...C)=>O(h)&&O(h)(...C),["prevent"]))},[a("div",yq,[a("section",_q,[g[6]||(g[6]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),X(" Basic Information ")]),a("p",{class:"section-description"}," Define the queue name and namespace ")],-1)),a("div",Eq,[a("div",wq,[g[2]||(g[2]=a("label",{for:"name",class:"form-label"},[a("i",{class:"bi bi-tag-fill label-icon"}),X(" Queue Name "),a("span",{class:"required-indicator"},"*")],-1)),_s(Ae(O(Ks),{id:"name",name:"name",type:"text",placeholder:"e.g. user-notifications",class:De(["form-control",{error:O(r).name}]),autocomplete:"off","aria-describedby":"name-help name-error"},null,8,["class"]),[[s]]),Ae(O(ki),{id:"name-error",name:"name",class:"field-error"}),g[3]||(g[3]=a("div",{id:"name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Use letters, numbers, underscores, and hyphens only ")],-1))]),a("div",Cq,[g[4]||(g[4]=a("label",{for:"ns",class:"form-label"},[a("i",{class:"bi bi-folder-fill label-icon"}),X(" Namespace "),a("span",{class:"required-indicator"},"*")],-1)),Ae(O(Ks),{id:"ns",name:"ns",type:"text",placeholder:"e.g. production",class:De(["form-control",{error:O(r).ns}]),autocomplete:"off","aria-describedby":"ns-help ns-error"},null,8,["class"]),Ae(O(ki),{id:"ns-error",name:"ns",class:"field-error"}),g[5]||(g[5]=a("div",{id:"ns-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Organize queues by environment or application ")],-1))])])]),a("section",Aq,[g[13]||(g[13]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-gear-fill section-icon"}),X(" Queue Configuration ")]),a("p",{class:"section-description"}," Choose how messages are processed and delivered ")],-1)),a("div",Sq,[a("div",$q,[g[8]||(g[8]=a("label",{for:"type",class:"form-label"},[a("i",{class:"bi bi-list-ol label-icon"}),X(" Queue Type "),a("span",{class:"required-indicator"},"*")],-1)),Ae(O(Ks),{id:"type",name:"type",as:"select",class:De(["form-select",{error:O(r).type}]),"aria-describedby":"type-help type-error"},{default:et(()=>[g[7]||(g[7]=a("option",{value:""},"Select processing order",-1)),a("option",{value:O(ts).FIFO_QUEUE},"FIFO Queue",8,Tq),a("option",{value:O(ts).LIFO_QUEUE},"LIFO Queue",8,xq),a("option",{value:O(ts).PRIORITY_QUEUE}," Priority Queue ",8,Oq)]),_:1},8,["class"]),Ae(O(ki),{id:"type-error",name:"type",class:"field-error"}),g[9]||(g[9]=a("div",{id:"type-help",class:"field-help"},[a("div",{class:"help-options"},[a("div",{class:"help-option"},[a("strong",null,"FIFO:"),X(" First message in, first message out ")]),a("div",{class:"help-option"},[a("strong",null,"LIFO:"),X(" Last message in, first message out ")]),a("div",{class:"help-option"},[a("strong",null,"Priority:"),X(" Higher priority messages processed first ")])])],-1))]),a("div",Nq,[g[11]||(g[11]=a("label",{for:"deliveryModel",class:"form-label"},[a("i",{class:"bi bi-arrow-left-right label-icon"}),X(" Delivery Model "),a("span",{class:"required-indicator"},"*")],-1)),Ae(O(Ks),{id:"deliveryModel",name:"deliveryModel",as:"select",class:De(["form-select",{error:O(r).deliveryModel}]),"aria-describedby":"deliveryModel-help deliveryModel-error"},{default:et(()=>[g[10]||(g[10]=a("option",{value:""},"Select delivery pattern",-1)),a("option",{value:O(Es).POINT_TO_POINT}," Point to Point ",8,kq),a("option",{value:O(Es).PUB_SUB}," Publish/Subscribe ",8,Pq)]),_:1},8,["class"]),Ae(O(ki),{id:"deliveryModel-error",name:"deliveryModel",class:"field-error"}),g[12]||(g[12]=a("div",{id:"deliveryModel-help",class:"field-help"},[a("div",{class:"help-options"},[a("div",{class:"help-option"},[a("strong",null,"Point to Point:"),X(" One-to-one message delivery ")]),a("div",{class:"help-option"},[a("strong",null,"Pub/Sub:"),X(" One-to-many message broadcasting ")])])],-1))])])]),m.createError?(k(),I("div",Dq,[a("div",Rq,[g[15]||(g[15]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",Iq,[g[14]||(g[14]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",Mq,F(m.createError),1)])])])):me("",!0)])],32)]),footer:et(()=>[a("button",{type:"button",class:"btn btn-secondary",onClick:p},g[16]||(g[16]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ")])),a("button",{type:"submit",class:"btn btn-primary",disabled:m.isCreating||!O(d).valid,onClick:g[1]||(g[1]=(...C)=>O(h)&&O(h)(...C))},[m.isCreating?(k(),I($e,{key:0},[g[17]||(g[17]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),g[18]||(g[18]=X(" Creating Queue... "))],64)):(k(),I($e,{key:1},[g[19]||(g[19]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),g[20]||(g[20]=X(" Create Queue "))],64))],8,qq)]),_:1},8,["is-visible"]))}}),Fq=at(Lq,[["__scopeId","data-v-c221a394"]]),Vq={class:"modal-content"},Qq={class:"modal-header"},jq={class:"modal-body"},Bq={class:"confirmation-message"},Uq={class:"queue-details"},Kq={class:"queue-info"},Hq={class:"info-item"},Gq={class:"info-value queue-name"},Wq={class:"info-item"},zq={class:"info-value namespace"},Yq={class:"modal-footer"},Zq=["disabled"],Jq=ze({__name:"DeleteQueueModal",props:{isVisible:{type:Boolean},isDeleting:{type:Boolean},queue:{}},emits:["cancel","confirm"],setup(e){function t(){}return(s,n)=>s.isVisible?(k(),I("div",{key:0,class:"modal-overlay",role:"dialog","aria-labelledby":"deleteModalLabel","aria-modal":"true",onClick:t,onKeydown:n[4]||(n[4]=ps(i=>s.$emit("cancel"),["esc"]))},[a("div",{class:"modal-container",onClick:n[3]||(n[3]=xt(()=>{},["stop"]))},[a("div",Vq,[a("header",Qq,[n[6]||(n[6]=xn('<div class="header-icon" data-v-3acc7b3e><i class="bi bi-exclamation-triangle-fill" data-v-3acc7b3e></i></div><div class="header-content" data-v-3acc7b3e><h2 id="deleteModalLabel" class="modal-title" data-v-3acc7b3e>Delete Queue</h2><p class="modal-subtitle" data-v-3acc7b3e>This action cannot be undone</p></div>',2)),a("button",{type:"button",class:"btn-close","aria-label":"Close modal",onClick:n[0]||(n[0]=i=>s.$emit("cancel"))},n[5]||(n[5]=[a("i",{class:"bi bi-x"},null,-1)]))]),a("main",jq,[a("div",Bq,[n[9]||(n[9]=a("p",{class:"message-text"}," Are you sure you want to permanently delete the following queue? ",-1)),a("div",Uq,[a("div",Kq,[a("div",Hq,[n[7]||(n[7]=a("span",{class:"info-label"},"Queue Name:",-1)),a("span",Gq,F(s.queue.name),1)]),a("div",Wq,[n[8]||(n[8]=a("span",{class:"info-label"},"Namespace:",-1)),a("span",zq,F(s.queue.ns),1)])])])]),n[10]||(n[10]=xn('<div class="warning-section" data-v-3acc7b3e><div class="warning-content" data-v-3acc7b3e><div class="warning-icon" data-v-3acc7b3e><i class="bi bi-shield-exclamation" data-v-3acc7b3e></i></div><div class="warning-text" data-v-3acc7b3e><h4 class="warning-title" data-v-3acc7b3e>Warning</h4><ul class="warning-list" data-v-3acc7b3e><li data-v-3acc7b3e>All messages in this queue will be permanently lost</li><li data-v-3acc7b3e> Make sure that all consumers connected to this queue are disconnected </li><li data-v-3acc7b3e>This action cannot be reversed</li></ul></div></div></div>',1))]),a("footer",Yq,[a("button",{type:"button",class:"btn btn-secondary",onClick:n[1]||(n[1]=i=>s.$emit("cancel"))},n[11]||(n[11]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ")])),a("button",{type:"button",class:"btn btn-danger",disabled:s.isDeleting,onClick:n[2]||(n[2]=i=>s.$emit("confirm"))},[s.isDeleting?(k(),I($e,{key:0},[n[12]||(n[12]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),n[13]||(n[13]=X(" Deleting Queue... "))],64)):(k(),I($e,{key:1},[n[14]||(n[14]=a("i",{class:"bi bi-trash-fill me-2"},null,-1)),n[15]||(n[15]=X(" Delete Queue "))],64))],8,Zq)])])])],32)):me("",!0)}}),ey=at(Jq,[["__scopeId","data-v-3acc7b3e"]]),Xq=["onKeydown"],eL={class:"queue-content"},tL={class:"queue-info"},sL={class:"queue-header"},nL=["title"],iL={class:"queue-details"},rL={class:"queue-namespace"},aL={class:"namespace-text"},oL={class:"queue-actions"},lL=ze({__name:"QueueListItem",props:{queue:{}},emits:["select","delete"],setup(e,{emit:t}){const s=e,n=t;function i(){n("select",s.queue.ns,s.queue.name)}function r(){n("delete",s.queue.ns,s.queue.name)}return(o,l)=>(k(),I("li",{class:"queue-item",tabindex:"0",onClick:i,onKeydown:[ps(i,["enter"]),ps(xt(i,["prevent"]),["space"])]},[a("div",eL,[l[1]||(l[1]=a("div",{class:"queue-icon"},[a("i",{class:"bi bi-collection"})],-1)),a("div",tL,[a("div",sL,[a("h5",{class:"queue-name",title:`${o.queue.ns}:${o.queue.name}`},F(o.queue.name),9,nL)]),a("div",iL,[a("div",rL,[l[0]||(l[0]=a("i",{class:"bi bi-tag-fill namespace-icon"},null,-1)),a("span",aL,F(o.queue.ns),1)])])])]),l[4]||(l[4]=a("div",{class:"queue-status"},[a("span",{class:"status-indicator active",title:"Queue is active"},[a("i",{class:"bi bi-circle-fill"})])],-1)),a("div",oL,[a("button",{class:"action-btn view-btn",title:"View Queue Details",onClick:xt(i,["stop"])},l[2]||(l[2]=[a("i",{class:"bi bi-eye-fill"},null,-1)])),a("button",{class:"action-btn delete-btn",title:"Delete Queue",onClick:xt(r,["stop"])},l[3]||(l[3]=[a("i",{class:"bi bi-trash3-fill"},null,-1)]))]),l[5]||(l[5]=a("div",{class:"hover-indicator"},[a("i",{class:"bi bi-chevron-right"})],-1))],40,Xq))}}),uL=at(lL,[["__scopeId","data-v-4d0fd916"]]),cL={key:0,class:"alert alert-warning alert-dismissible fade show error-banner"},dL={class:"d-flex align-items-center"},fL={key:1,class:"alert alert-warning alert-dismissible fade show error-banner"},hL={class:"d-flex align-items-center"},pL={class:"content-card namespace-summary"},mL={class:"summary-content"},gL={class:"summary-stats"},vL={class:"stat-item"},bL={class:"stat-content"},yL={class:"stat-number"},_L={class:"stat-label"},EL={class:"stat-item"},wL={class:"stat-content"},CL={class:"stat-number"},AL={class:"content-card queues-card"},SL={class:"queues-header"},$L={class:"queues-count"},TL={class:"queues-list"},xL=ze({__name:"NamespaceQueuesView",setup(e){const t=Ts(),s=bs(),n=Pb(),i=Yl(),r=Bt(),o=os(),l=GI(async()=>{d.value=!1,await n.refreshNamespaceQueues(p.value)}),u=Db(async()=>{c.value=!1,h.value=null,await n.refreshNamespaceQueues(p.value)}),d=we(!1),c=we(!1),h=we(null),p=v(()=>t.params.ns),m=v(()=>n.sortedNamespaceQueues.value),g=v(()=>n.isLoadingNamespaceQueues.value),C=v(()=>n.namespaceQueuesError.value),y=v(()=>m.value.length>0),A=v(()=>p.value?n.namespaceExists.value(p.value):!1),x=v(()=>l.isCreatingQueue.value),S=v(()=>l.createQueueError.value),_=v(()=>u.isDeletingQueue.value),$=v(()=>u.deleteQueueError.value);function V(te,W){r.selectQueue(te,W),s.push({name:"Queue",params:{ns:te,queue:W}})}function j(){i.clearSelectedNamespace(),s.push({name:"Namespaces"})}function R(){d.value=!0}function E(){d.value=!1}function T(te,W){h.value={ns:te,name:W},c.value=!0}function N(){c.value=!1,h.value=null}async function w(te){const W={queue:{ns:te.ns,name:te.name},queueType:te.type,queueDeliveryModel:te.deliveryModel};await l.createQueueMutation.mutateAsync({data:W})}async function z(){h.value&&await u.deleteQueueMutation.mutateAsync({ns:h.value.ns,name:h.value.name})}function se(){n.refreshNamespaceQueues(p.value)}const ne=v(()=>[{id:"refresh-queues",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"secondary",disabled:g.value,handler:se},{id:"create-queue",label:"Create Queue",icon:"bi bi-plus-circle",variant:"primary",disabled:x.value,loading:x.value,handler:R}]);return Dt(()=>{o.setPageHeader({title:p.value,subtitle:"Manage queues in this namespace",icon:"bi bi-folder-fill"}),o.setPageActions(ne.value),o.setLoadingState(g.value),g.value||(A.value?C.value?(o.setErrorState(ft(C.value)),o.setEmptyState(!1)):y.value?(o.setErrorState(null),o.setEmptyState(!1)):(o.setErrorState(null),o.setEmptyState(!0,{icon:"bi bi-inbox",title:"No queues in this namespace",message:`Create your first queue in the "${p.value}" namespace to start managing messages.`,actionLabel:"Create Your First Queue",actionHandler:R})):(o.setEmptyState(!0,{icon:"bi bi-folder-x",title:"Namespace Not Found",message:`The namespace "${p.value}" does not exist or has been deleted.`,actionLabel:"Back to Namespaces",actionHandler:j}),o.setPageActions([])))}),rt(p,te=>{te&&i.selectNamespace(te)},{immediate:!0}),gs(()=>{p.value&&i.selectNamespace(p.value)}),(te,W)=>{var ee;return k(),I("div",null,[Ae(xs,null,{default:et(()=>[S.value&&!d.value?(k(),I("div",cL,[a("div",dL,[W[2]||(W[2]=a("i",{class:"bi bi-exclamation-triangle me-2"},null,-1)),a("span",null,"Failed to create queue: "+F(O(ft)(S.value)),1)]),a("button",{type:"button",class:"btn-close",onClick:W[0]||(W[0]=fe=>O(l).createQueueMutation.reset())})])):me("",!0),$.value&&!c.value?(k(),I("div",fL,[a("div",hL,[W[3]||(W[3]=a("i",{class:"bi bi-exclamation-triangle me-2"},null,-1)),a("span",null,"Failed to delete queue: "+F(O(ft)($.value)),1)]),a("button",{type:"button",class:"btn-close",onClick:W[1]||(W[1]=fe=>O(u).deleteQueueMutation.reset())})])):me("",!0),a("div",pL,[a("div",mL,[a("div",gL,[a("div",vL,[W[4]||(W[4]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-list-ul"})],-1)),a("div",bL,[a("div",yL,F(m.value.length),1),a("div",_L," Queue"+F(m.value.length!==1?"s":""),1)])]),a("div",EL,[W[6]||(W[6]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-folder-fill"})],-1)),a("div",wL,[a("div",CL,F(p.value),1),W[5]||(W[5]=a("div",{class:"stat-label"},"Namespace",-1))])])])])]),a("div",AL,[a("div",SL,[a("h5",$L,F(m.value.length)+" Queue"+F(m.value.length!==1?"s":""),1)]),a("div",TL,[(k(!0),I($e,null,At(m.value,fe=>(k(),gt(uL,{key:`${fe.ns}-${fe.name}`,queue:fe,onSelect:V,onDelete:T},null,8,["queue"]))),128))])])]),_:1}),Ae(Fq,{"is-visible":d.value,"is-creating":x.value,"create-error":S.value?`${(ee=O(ft)(S.value))==null?void 0:ee.message}`:"",namespace:p.value,onClose:E,onCreate:w},null,8,["is-visible","is-creating","create-error","namespace"]),h.value?(k(),gt(ey,{key:0,"is-visible":c.value,"is-deleting":_.value,queue:h.value,onCancel:N,onConfirm:z},null,8,["is-visible","is-deleting","queue"])):me("",!0)])}}}),OL=at(xL,[["__scopeId","data-v-f49e06d7"]]),NL=["aria-label"],kL={key:0,class:"deleting-overlay"},PL={class:"card-header"},DL={class:"header-content"},RL={class:"header-text"},IL={class:"namespace-name"},ML={class:"header-actions"},qL={class:"card-body"},LL={class:"stats-section"},FL={class:"stat-item"},VL={class:"stat-value"},QL={class:"stat-label"},jL={class:"stat-item"},BL={class:"stat-value"},UL={class:"stat-label"},KL={class:"queues-section"},HL={key:0,class:"queues-list"},GL=["onClick","onKeydown"],WL={class:"queue-name"},zL={key:1,class:"no-queues-message"},YL={class:"card-footer"},ZL={class:"footer-actions"},JL=ze({__name:"NamespaceCard",props:{namespace:{},queueCount:{},exchangeCount:{default:0},recentQueues:{},isDeleting:{type:Boolean}},emits:["click","delete","view-exchanges","queue-click"],setup(e,{emit:t}){const s=e,n=t;function i(o){n("queue-click",o)}function r(o){o.stopPropagation(),n("view-exchanges",s.namespace)}return(o,l)=>(k(),I("article",{class:De(["namespace-card",{"is-deleting":o.isDeleting}]),tabindex:"0","aria-label":`View details for namespace ${o.namespace}`,onClick:l[2]||(l[2]=u=>n("click",o.namespace)),onKeydown:[l[3]||(l[3]=ps(u=>n("click",o.namespace),["enter"])),l[4]||(l[4]=ps(xt(u=>n("click",o.namespace),["prevent"]),["space"]))]},[o.isDeleting?(k(),I("div",kL,l[5]||(l[5]=[a("div",{class:"spinner-border text-light",role:"status"},null,-1),a("span",{class:"deleting-text"},"Deleting...",-1)]))):me("",!0),a("header",PL,[a("div",DL,[l[7]||(l[7]=a("div",{class:"header-icon"},[a("i",{class:"bi bi-folder2-open"})],-1)),a("div",RL,[a("h3",IL,F(o.namespace),1),l[6]||(l[6]=a("span",{class:"namespace-label"},"Namespace",-1))])]),a("div",ML,[a("button",{type:"button",class:"btn-action btn-exchanges","aria-label":"View exchanges",title:"View exchanges in this namespace",onClick:xt(r,["stop"])},l[8]||(l[8]=[a("i",{class:"bi bi-diagram-3"},null,-1)])),a("button",{type:"button",class:"btn-action btn-delete","aria-label":"Delete namespace",title:"Delete namespace",onClick:l[0]||(l[0]=xt(u=>n("delete",o.namespace),["stop"]))},l[9]||(l[9]=[a("i",{class:"bi bi-trash"},null,-1)]))])]),a("main",qL,[a("div",LL,[a("div",FL,[a("span",VL,F(o.queueCount),1),a("span",QL,F(o.queueCount===1?"Queue":"Queues"),1)]),a("div",jL,[a("span",BL,F(o.exchangeCount),1),a("span",UL,F(o.exchangeCount===1?"Exchange":"Exchanges"),1)])]),a("div",KL,[l[11]||(l[11]=a("h4",{class:"queues-title"},[a("i",{class:"bi bi-card-list me-2"}),X(" Sample Queues ")],-1)),o.recentQueues.length?(k(),I("ul",HL,[(k(!0),I($e,null,At(o.recentQueues,u=>(k(),I("li",{key:`${u.name}@${u.ns}`,class:"queue-item"},[a("a",{href:"#",class:"queue-link",onClick:xt(d=>i(u),["stop"]),onKeydown:ps(xt(d=>i(u),["stop"]),["enter"])},[a("span",WL,F(u.name),1),l[10]||(l[10]=a("i",{class:"bi bi-box-arrow-up-right queue-icon"},null,-1))],40,GL)]))),128))])):(k(),I("p",zL,"No queues in this namespace."))])]),a("footer",YL,[a("div",ZL,[a("button",{type:"button",class:"footer-action",onClick:l[1]||(l[1]=xt(u=>n("click",o.namespace),["stop"]))},l[12]||(l[12]=[a("span",{class:"footer-text"},"View all queues",-1),a("i",{class:"bi bi-arrow-right"},null,-1)])),a("button",{type:"button",class:"footer-action",onClick:xt(r,["stop"])},l[13]||(l[13]=[a("span",{class:"footer-text"},"View exchanges",-1),a("i",{class:"bi bi-diagram-3"},null,-1)]))])])],42,NL))}}),XL=at(JL,[["__scopeId","data-v-7f15066d"]]),e2={class:"modal-content"},t2={class:"modal-header delete-header"},s2={class:"modal-body"},n2={class:"confirmation-message"},i2={class:"message-text"},r2={class:"namespace-identifier"},a2={class:"namespace-details"},o2={class:"detail-item"},l2={class:"detail-value"},u2={key:0,class:"error-section"},c2={class:"error-content"},d2={class:"error-text"},f2={class:"error-message"},h2={class:"modal-footer"},p2=["disabled"],m2=ze({__name:"DeleteNamespaceModal",props:{isVisible:{type:Boolean},namespace:{},queueCount:{},isDeleting:{type:Boolean},error:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const s=t;return(n,i)=>{var r;return k(),gt(Xa,{to:"body"},[n.isVisible?(k(),I("div",{key:0,"aria-labelledby":"delete-namespace-title","aria-modal":"true",class:"modal-overlay",role:"dialog",onClick:i[4]||(i[4]=o=>s("cancel")),onKeydown:i[5]||(i[5]=ps(o=>s("cancel"),["esc"]))},[a("div",{class:"modal-container",onClick:i[3]||(i[3]=xt(()=>{},["stop"]))},[a("div",e2,[a("header",t2,[i[7]||(i[7]=a("div",{class:"header-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),i[8]||(i[8]=a("div",{class:"header-content"},[a("h2",{id:"delete-namespace-title",class:"modal-title"}," Delete Namespace "),a("p",{class:"modal-subtitle"},"This action cannot be undone")],-1)),a("button",{"aria-label":"Close modal",class:"btn-close",type:"button",onClick:i[0]||(i[0]=o=>s("cancel"))},i[6]||(i[6]=[a("i",{class:"bi bi-x"},null,-1)]))]),a("main",s2,[a("div",n2,[a("p",i2,[i[9]||(i[9]=X(" Are you sure you want to permanently delete the namespace ")),a("strong",r2,F(n.namespace),1),i[10]||(i[10]=X("? "))]),a("div",a2,[a("div",o2,[i[11]||(i[11]=a("span",{class:"detail-label"},"Queues in namespace:",-1)),a("span",l2,F(n.queueCount),1)])])]),i[14]||(i[14]=a("div",{class:"warning-section"},[a("div",{class:"warning-content"},[a("div",{class:"warning-icon"},[a("i",{class:"bi bi-shield-exclamation"})]),a("div",{class:"warning-text"},[a("h4",{class:"warning-title"},"Warning"),a("ul",{class:"warning-list"},[a("li",null," All queues in this namespace will be permanently deleted "),a("li",null,"All messages in these queues will be lost"),a("li",null," Make sure that all consumers connected to these queues are disconnected "),a("li",null,"This action cannot be reversed")])])])],-1)),n.error?(k(),I("div",u2,[a("div",c2,[i[13]||(i[13]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-circle-fill"})],-1)),a("div",d2,[i[12]||(i[12]=a("h4",{class:"error-title"},"Deletion Failed",-1)),a("p",f2,F((r=O(ft)(n.error))==null?void 0:r.message),1)])])])):me("",!0)]),a("footer",h2,[a("button",{class:"btn btn-secondary",type:"button",onClick:i[1]||(i[1]=o=>s("cancel"))},i[15]||(i[15]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ")])),a("button",{disabled:n.isDeleting,class:"btn btn-danger",type:"button",onClick:i[2]||(i[2]=o=>s("confirm"))},[n.isDeleting?(k(),I($e,{key:0},[i[16]||(i[16]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),i[17]||(i[17]=X(" Deleting... "))],64)):(k(),I($e,{key:1},[i[18]||(i[18]=a("i",{class:"bi bi-trash-fill me-2"},null,-1)),i[19]||(i[19]=X(" Delete Namespace "))],64))],8,p2)])])])],32)):me("",!0)])}}}),g2=at(m2,[["__scopeId","data-v-c085d20d"]]);function v2(){const e=rN(),t=v(()=>e.data.value),s=v(()=>e.isLoading.value),n=v(()=>e.error.value),i=v(()=>{var u;return(u=t.value)!=null&&u.data.length?[...t.value.data].sort((d,c)=>d.name.localeCompare(c.name)):[]}),r=v(()=>u=>{var d;return(d=t.value)!=null&&d.data?t.value.data.filter(c=>c.ns===u).length:0});function o(u){var d;return(d=t.value)!=null&&d.data?t.value.data.filter(c=>c.ns===u):[]}function l(u,d){return o(u).find(h=>h.name===d)}return{queuesQuery:e,queues:t,isLoadingQueues:s,queuesError:n,sortedQueues:i,getNamespaceQueueCount:r,getQueuesInNamespace:o,findQueueInNamespace:l,refetchQueues:e.refetch}}const b2={key:0,class:"alert alert-warning alert-dismissible fade show mb-4",role:"alert"},y2={class:"namespaces-grid"},_2="Namespaces",E2="Organize and manage your message queue namespaces",w2=ze({__name:"NamespacesView",setup(e){const t=bs(),s=Pb(),n=v2(),i=Bt(),r=Yl(),o=os(),{data:l,isLoading:u,refetch:d}=fb(),c=we(!1),h=we(null),p=v(()=>s.sortedNamespaces.value),m=v(()=>s.isLoadingNamespaces.value||u.value),g=v(()=>s.namespacesError.value),C=v(()=>s.isDeletingNamespace.value),y=v(()=>s.deleteNamespaceError.value),A=v(()=>p.value.length>0),x=v(()=>{var z;return((z=l.value)==null?void 0:z.data)||[]}),S=z=>x.value.filter(se=>se.ns===z).length,_=v(()=>[{id:"refresh-namespaces",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"primary",disabled:m.value,loading:m.value,handler:$,tooltip:"Refresh namespaces and exchanges data"}]);function $(){s.refreshNamespaces(),d()}function V(){t.push({name:"Queues"})}function j(z){r.selectNamespace(z),t.push({name:"Namespace Queues",params:{ns:z}})}function R(z){r.selectNamespace(z),t.push({name:"Namespace Exchanges",params:{ns:z}})}function E(z){i.selectQueue(z.ns,z.name),t.push({name:"Queue",params:{ns:z.ns,queue:z.name}})}function T(z){h.value=z,c.value=!0}function N(){c.value=!1,h.value=null}async function w(){if(h.value)try{await s.deleteNamespace(h.value),N(),d()}catch(z){console.error("Failed to delete namespace:",z)}}return Dt(()=>{o.setPageHeader({title:_2,subtitle:E2,icon:"bi bi-folder"}),o.setPageActions(_.value),o.setLoadingState(m.value),g.value?(o.setErrorState(ft(g.value)),o.setEmptyState(!1)):!m.value&&!A.value?(o.setErrorState(null),o.setEmptyState(!0,{icon:"bi bi-folder-plus",title:"No Namespaces Found",message:"Namespaces are created automatically when you create queues. Start by creating your first queue.",actionLabel:"Create Queue",actionHandler:V})):(o.setErrorState(null),o.setEmptyState(!1))}),Dt(()=>{i.clearSelectedQueue()}),gs(()=>{$()}),(z,se)=>(k(),I("div",null,[Ae(xs,null,{default:et(()=>[y.value&&!c.value?(k(),I("div",b2,[se[1]||(se[1]=a("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),X(" "+F(O(ft)(y.value))+" ",1),a("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:se[0]||(se[0]=ne=>O(s).deleteNamespaceMutation.reset())})])):me("",!0),a("div",y2,[(k(!0),I($e,null,At(p.value,ne=>(k(),gt(XL,{key:ne,namespace:ne,"queue-count":O(n).getNamespaceQueueCount.value(ne),"exchange-count":S(ne),"recent-queues":O(n).getQueuesInNamespace(ne).slice(0,3),"is-deleting":C.value&&h.value===ne,onClick:te=>j(ne),onQueueClick:E,onDelete:T,onViewExchanges:R},null,8,["namespace","queue-count","exchange-count","recent-queues","is-deleting","onClick"]))),128))])]),_:1}),Ae(g2,{"is-visible":c.value,namespace:h.value,"queue-count":h.value?O(n).getNamespaceQueueCount.value(h.value):0,"is-deleting":C.value,error:y.value,onCancel:N,onConfirm:w},null,8,["is-visible","namespace","queue-count","is-deleting","error"])]))}}),ty=at(w2,[["__scopeId","data-v-cb848219"]]),C2=Object.freeze(Object.defineProperty({__proto__:null,default:ty},Symbol.toStringTag,{value:"Module"})),A2=(e,t,s)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups`,method:"GET",signal:s})),S2=(e,t)=>["api","v1","namespaces",e,"queues",t,"consumer-groups"],$2=(e,t,s)=>{const{query:n}=s??{};return{queryKey:S2(e,t),queryFn:({signal:o})=>A2(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function T2(e,t,s,n){const i=$2(e,t,s),r=vs(i);return r.queryKey=O(i).queryKey,r}const x2=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups`,method:"POST",headers:{"Content-Type":"application/json"},data:s,signal:n})),O2=e=>{const t=["postApiV1NamespacesNsQueuesNameConsumerGroups"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o,data:l}=i??{};return x2(r,o,l)},...s}},N2=(e,t)=>{const s=O2(e);return Ft(s)},k2=(e,t,s)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups/${s}`,method:"DELETE"})),P2=e=>{const t=["deleteApiV1NamespacesNsQueuesNameConsumerGroupsConsumerGroupId"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o,consumerGroupId:l}=i??{};return k2(r,o,l)},...s}},D2=(e,t)=>{const s=P2(e);return Ft(s)};function sy(){const e=Bt(),t=di(),s=v(()=>e.selectedQueue),n=T2(v(()=>{var T;return((T=s.value)==null?void 0:T.ns)||""}),v(()=>{var T;return((T=s.value)==null?void 0:T.name)||""}),{query:{enabled:v(()=>!!s.value&&t.isPubSubQueue)}}),i=N2({mutation:{onSuccess:async()=>{await n.refetch()}}}),r=D2({mutation:{onSuccess:async()=>{await n.refetch()}}}),o=v(()=>n.data.value),l=v(()=>n.isLoading.value),u=v(()=>i.isPending.value),d=v(()=>r.isPending.value),c=v(()=>l.value||u.value||d.value),h=v(()=>n.error.value),p=v(()=>i.error.value),m=v(()=>r.error.value),g=v(()=>h.value||p.value||m.value),C=v(()=>{var T;return t.isPubSubQueue&&!!((T=o.value)!=null&&T.data)&&Array.isArray(o.value.data)&&o.value.data.length>0}),y=v(()=>{var T;return(T=o.value)!=null&&T.data?[...o.value.data].sort((N,w)=>N.localeCompare(w)):[]});async function A(T){if(!s.value)throw new Error("No queue selected");const N={consumerGroupId:T};await i.mutateAsync({ns:s.value.ns,name:s.value.name,data:N})}async function x(T){if(!s.value)throw new Error("No queue selected");await r.mutateAsync({ns:s.value.ns,name:s.value.name,consumerGroupId:T})}async function S(){await n.refetch()}function _(){return!s.value||!t.isPubSubQueue?Promise.resolve():n.refetch()}function $(){i.reset()}function V(){r.reset()}function j(){i.reset(),r.reset()}function R(T){return/^[a-zA-Z0-9_-]+$/.test(T)&&T.length>=1&&T.length<=50}function E(T){var N;return(N=o.value)!=null&&N.data?o.value.data.includes(T):!1}return{consumerGroupsQuery:n,createConsumerGroupMutation:i,deleteConsumerGroupMutation:r,consumerGroups:o,isLoading:c,isLoadingConsumerGroups:l,isCreatingConsumerGroup:u,isDeletingConsumerGroup:d,error:g,consumerGroupsError:h,createConsumerGroupError:p,deleteConsumerGroupError:m,hasConsumerGroups:C,sortedConsumerGroups:y,createConsumerGroup:A,deleteConsumerGroup:x,refreshConsumerGroups:S,refetchConsumerGroupsData:_,resetCreateConsumerGroupMutation:$,resetDeleteConsumerGroupMutation:V,resetAllMutations:j,isValidConsumerGroupId:R,consumerGroupExists:E}}const R2={class:"consumer-group-selector"},I2={key:0,class:"section-header"},M2={key:0,class:"section-meta"},q2={key:1,class:"state-container loading-state"},L2={key:2,class:"consumer-groups-grid"},F2=["aria-label","onClick","onKeydown"],V2={class:"card-header"},Q2={class:"group-info"},j2={class:"group-name"},B2={key:3,class:"state-container empty-state"},U2={class:"state-content"},K2={class:"state-description"},H2={key:0,class:"state-actions"},G2=ze({__name:"ConsumerGroupSelector",props:{showSectionHeader:{type:Boolean,default:!0}},setup(e){const t=Bt(),s=sy(),n=bs(),i=v(()=>t.selectedQueue),r=v(()=>s.sortedConsumerGroups.value),o=v(()=>s.hasConsumerGroups.value),l=v(()=>s.isLoading.value),u=v(()=>{const p=r.value.length;return`${p} group${p!==1?"s":""} found`}),d=v(()=>i.value?`${i.value.ns}/${i.value.name}`:"");function c(p){i.value&&n.push({name:"Pending Messages",params:{ns:i.value.ns,queue:i.value.name},query:{consumerGroupId:p}})}function h(){i.value&&s.consumerGroupsQuery.refetch()}return(p,m)=>(k(),I("div",R2,[p.showSectionHeader?(k(),I("header",I2,[m[0]||(m[0]=a("h2",{class:"section-title"},"Consumer Groups",-1)),o.value&&!l.value?(k(),I("div",M2,F(u.value),1)):me("",!0)])):me("",!0),l.value?(k(),I("div",q2,m[1]||(m[1]=[a("div",{class:"state-content"},[a("div",{class:"loading-spinner"},[a("i",{class:"bi bi-arrow-clockwise"})]),a("p",{class:"state-text"},"Loading consumer groups...")],-1)]))):o.value?(k(),I("div",L2,[(k(!0),I($e,null,At(r.value,g=>(k(),I("article",{key:g,class:"consumer-group-card",role:"button",tabindex:"0","aria-label":`View pending messages for consumer group ${g}`,onClick:C=>c(g),onKeydown:[ps(C=>c(g),["enter"]),ps(xt(C=>c(g),["prevent"]),["space"])]},[a("div",V2,[m[3]||(m[3]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",Q2,[a("h3",j2,F(g),1),m[2]||(m[2]=a("span",{class:"group-type"},"Consumer Group",-1))])]),m[4]||(m[4]=a("div",{class:"card-footer"},[a("span",{class:"action-hint"},[a("i",{class:"bi bi-eye"}),X(" View pending messages ")]),a("i",{class:"bi bi-arrow-right action-arrow"})],-1))],40,F2))),128))])):(k(),I("div",B2,[a("div",U2,[m[8]||(m[8]=a("div",{class:"state-icon"},[a("i",{class:"bi bi-people"})],-1)),m[9]||(m[9]=a("h3",{class:"state-title"},"No Consumer Groups Found",-1)),a("p",K2,[i.value?(k(),I($e,{key:0},[m[5]||(m[5]=X(" The queue ")),a("strong",null,F(d.value),1),m[6]||(m[6]=X(" doesn't have any consumer groups yet. Consumer groups are created automatically when consumers start subscribing to this pub/sub queue. "))],64)):(k(),I($e,{key:1},[X(" Select a pub/sub queue to view its consumer groups. ")],64))]),i.value?(k(),I("div",H2,[a("button",{type:"button",class:"btn btn-secondary",onClick:h},m[7]||(m[7]=[a("i",{class:"bi bi-arrow-clockwise"},null,-1),X(" Refresh ")]))])):me("",!0),m[10]||(m[10]=a("details",{class:"help-section"},[a("summary",{class:"help-summary"},[a("i",{class:"bi bi-question-circle"}),X(" What are consumer groups? ")]),a("div",{class:"help-content"},[a("p",null," Consumer groups allow multiple consumers to work together to process messages from a pub/sub queue. Each message is delivered to only one consumer within the group, enabling load balancing and parallel processing. "),a("ul",null,[a("li",null," Consumer groups are created automatically when consumers connect "),a("li",null," Each group maintains its own message offset and processing state "),a("li",null,"Groups enable horizontal scaling of message processing")])])],-1))])]))]))}}),W2=at(G2,[["__scopeId","data-v-2c88981d"]]),z2=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/queues/${t}/pending-messages`,method:"GET",params:O(s),signal:n}));function Y2(e,t,s=20){const n=v(()=>{const r={};return t.value&&(r.consumerGroupId=t.value),r});return ro(e,{queryFn:async({ns:r,name:o,page:l,pageSize:u,extraParams:d={}})=>{const c={page:l,pageSize:u};return d.consumerGroupId&&(c.consumerGroupId=String(d.consumerGroupId)),z2(r,o,c)},queryKeyPrefix:"pending-messages",enableDelete:!0,enableRequeue:!1},s,n)}const Z2={key:0,class:"loading-state"},J2=ze({__name:"PendingMessagesView",setup(e){const t=Bt(),s=di(),n=os(),i=Ts(),r=v(()=>i.params.ns),o=v(()=>i.params.queue),l=v(()=>i.query.consumerGroupId),u=v(()=>!r.value||!o.value?null:{ns:r.value,name:o.value});rt([r,o],([fe,Oe])=>{fe&&Oe&&t.selectQueue(fe,Oe)},{immediate:!0});const d=v(()=>t.selectedQueue),c=v(()=>s.isPubSubQueue),h=v(()=>s.isLoadingQueueProperties),p=v(()=>s.queueProperties),m=v(()=>d.value&&p.value&&c.value&&!l.value),g=v(()=>d.value&&p.value&&(!c.value||l.value)),C=v(()=>d.value&&h.value),y=v(()=>g.value?u.value:null),{messages:A,pagination:x,isLoading:S,isDeleting:_,isRequeuing:$,error:V,goToPage:j,setPageSize:R,refresh:E,deleteMessage:T,requeueMessage:N}=Y2(y,l,20),w=v(()=>{if(!d.value)return"Pending Messages";const fe=`${d.value.name}@${d.value.ns}`;return c.value&&l.value?`Pending Messages - ${fe} (${l.value})`:`Pending Messages - ${fe}`}),z=v(()=>{if(d.value)return h.value?"Loading queue properties...":c.value&&l.value?`Pub/Sub Queue • Consumer Group: ${l.value}`:c.value?"Pub/Sub Queue • Select Consumer Group":"Point-2-Point Queue"}),se=v(()=>c.value&&l.value?`No pending messages found for consumer group "${l.value}". Messages appear here when they are waiting to be processed by consumers in this group.`:"No pending messages found for this queue. Messages appear here when they are waiting to be processed.");Dt(()=>{n.setPageHeader({title:w.value,subtitle:z.value,icon:"bi bi-hourglass-split"})}),Dt(()=>{if(!d.value){n.setEmptyState(!0,{icon:"bi bi-inbox",title:"No Queue Selected",message:"Please select a queue from the sidebar to view its pending messages."}),n.setPageActions([]),n.setLoadingState(!1),n.setErrorState(null);return}if(h.value){n.setLoadingState(!0),n.setErrorState(null),n.setEmptyState(!1),n.setPageActions([]);return}n.setLoadingState(!1),n.setErrorState(null),n.setEmptyState(!1),n.setPageActions([])});async function ne(fe){T&&await T(fe)}async function te(fe){N&&await N(fe)}function W(fe){j(fe)}async function ee(fe){await R(fe)}return(fe,Oe)=>(k(),gt(xs,{"show-section-header":!1},{default:et(()=>[C.value?(k(),I("div",Z2,Oe[4]||(Oe[4]=[a("div",{class:"d-flex justify-content-center align-items-center py-5"},[a("div",{class:"spinner-border text-primary me-3",role:"status"},[a("span",{class:"visually-hidden"},"Loading...")]),a("span",{class:"text-muted"},"Loading queue properties...")],-1)]))):m.value?(k(),gt(W2,{key:1,"show-section-header":!1})):g.value?(k(),gt(io,{key:2,messages:O(A),"is-loading":O(S),error:O(V),pagination:O(x),"show-pagination":!0,"empty-message":se.value,icon:"bi-hourglass-split","is-deleting":O(_),"is-requeuing":O($),onRefresh:O(E),onDeleteMessage:ne,onRequeueMessage:te,onPageChange:W,onPageSizeChange:ee,onFirstPage:Oe[0]||(Oe[0]=Ue=>W(1)),onPreviousPage:Oe[1]||(Oe[1]=Ue=>W(O(x).currentPage-1)),onNextPage:Oe[2]||(Oe[2]=Ue=>W(O(x).currentPage+1)),onLastPage:Oe[3]||(Oe[3]=Ue=>W(O(x).totalPages))},null,8,["messages","is-loading","error","pagination","empty-message","is-deleting","is-requeuing","onRefresh"])):me("",!0)]),_:1}))}}),X2=at(J2,[["__scopeId","data-v-30086d3d"]]),eF={class:"queue-info-card"},tF={class:"card-header"},sF={class:"header-actions"},nF=["disabled"],iF={class:"card-content"},rF={key:0,class:"content-state loading-state"},aF={key:1,class:"content-state error-state"},oF={class:"error-content"},lF={key:2,class:"queue-details-wrapper"},uF={class:"info-section"},cF={class:"info-grid"},dF={class:"info-item"},fF={class:"info-content"},hF={class:"info-details"},pF={class:"info-value"},mF={class:"queue-name"},gF={class:"info-item"},vF={class:"info-content"},bF={class:"info-details"},yF={class:"info-value"},_F={class:"namespace"},EF={class:"info-item"},wF={class:"info-content"},CF={class:"info-details"},AF={class:"info-value"},SF=["title"],$F={class:"info-item"},TF={class:"info-content"},xF={class:"info-details"},OF={class:"info-value"},NF=["title"],kF={class:"info-section"},PF={class:"info-grid"},DF={class:"info-item"},RF={class:"info-content"},IF={class:"info-details"},MF={class:"info-value"},qF={class:"rate-limit"},LF={class:"info-section"},FF={class:"info-grid stats-grid"},VF=["role","onClick"],QF={class:"info-content"},jF={class:"info-details"},BF={class:"info-label"},UF={class:"info-value stat-value"},KF={key:0,class:"info-arrow"},HF={key:3,class:"content-state empty-state"},GF=ze({__name:"QueuePropertiesCard",setup(e){const t=Bt(),s=di(),n=bs(),i=v(()=>t.selectedQueue),r=v(()=>{var S;return(S=s.queueProperties)==null?void 0:S.data}),o=v(()=>s.isLoadingQueueProperties),l=v(()=>{var _;const S=(_=s.queuePropertiesError)==null?void 0:_.error;return S?`Failed to load queue information: ${S.message}`:null}),u=v(()=>r.value?[{label:"Pending",value:r.value.pendingMessagesCount,icon:"bi-clock-history",iconClass:"pending-icon",routeName:"Pending Messages"},{label:"Dead-lettered",value:r.value.deadLetteredMessagesCount,icon:"bi-x-octagon-fill",iconClass:"dead-lettered-icon",routeName:"Dead-Lettered Messages"},{label:"Processing",value:r.value.processingMessagesCount,icon:"bi-hourglass-split",iconClass:"processing-icon",routeName:null},{label:"Acknowledged",value:r.value.acknowledgedMessagesCount,icon:"bi-check-circle-fill",iconClass:"acknowledged-icon",routeName:"Acknowledged Messages"},{label:"Scheduled",value:r.value.scheduledMessagesCount,icon:"bi-calendar-plus-fill",iconClass:"scheduled-icon",routeName:"Scheduled Messages"},{label:"Requeued",value:r.value.requeuedMessagesCount,icon:"bi-arrow-repeat",iconClass:"requeued-icon",routeName:null},{label:"Delayed",value:r.value.delayedMessagesCount,icon:"bi-stopwatch-fill",iconClass:"delayed-icon",routeName:null},{label:"Total Messages",value:r.value.messagesCount,icon:"bi-collection-fill",iconClass:"total-icon",routeName:"Messages"}]:[]);function d(S){!S||!i.value||n.push({name:S,params:{ns:i.value.ns,queue:i.value.name}})}function c(){s.refreshQueueProperties()}function h(S){return S===null||typeof S>"u"?"0":S.toLocaleString()}function p(S){switch(S){case ts.FIFO_QUEUE:return"FIFO";case ts.LIFO_QUEUE:return"LIFO";case ts.PRIORITY_QUEUE:return"Priority";default:return"Unknown"}}function m(S){switch(S){case ts.FIFO_QUEUE:return"queue-type-fifo";case ts.LIFO_QUEUE:return"queue-type-lifo";case ts.PRIORITY_QUEUE:return"queue-type-priority";default:return"queue-type-unknown"}}function g(S){switch(S){case ts.FIFO_QUEUE:return"First In, First Out - Messages processed in order";case ts.LIFO_QUEUE:return"Last In, First Out - Most recent messages processed first";case ts.PRIORITY_QUEUE:return"Priority-based - Higher priority messages processed first";default:return"Unknown queue processing order"}}function C(S){switch(S){case Es.POINT_TO_POINT:return"Point-to-Point";case Es.PUB_SUB:return"Pub/Sub";default:return"Unknown"}}function y(S){switch(S){case Es.POINT_TO_POINT:return"delivery-model-p2p";case Es.PUB_SUB:return"delivery-model-pubsub";default:return"delivery-model-unknown"}}function A(S){switch(S){case Es.POINT_TO_POINT:return"One-to-one message delivery between producer and consumer";case Es.PUB_SUB:return"One-to-many message delivery to multiple subscribers";default:return"Unknown message delivery pattern"}}function x(S){if(!S||!S.limit||!S.interval)return"None";const _=S.interval/1e3;return`${S.limit} msg / ${_}s`}return(S,_)=>(k(),I("div",eF,[a("header",tF,[_[0]||(_[0]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-info-circle-fill title-icon"}),X(" Queue Details ")]),a("p",{class:"card-subtitle"}," Configuration and real-time statistics for the selected queue ")],-1)),a("div",sF,[a("button",{class:"btn btn-refresh",disabled:o.value,title:"Refresh queue information",onClick:c},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:o.value}])},null,2)],8,nF)])]),a("main",iF,[o.value?(k(),I("div",rF,_[1]||(_[1]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-2"}),a("h5",{class:"state-title"},"Loading...")],-1)]))):l.value?(k(),I("div",aF,[a("div",oF,[_[2]||(_[2]=a("i",{class:"bi bi-exclamation-triangle-fill text-danger me-2"},null,-1)),a("span",null,F(l.value),1)]),a("button",{class:"btn btn-sm btn-primary mt-2",onClick:c},_[3]||(_[3]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),X(" Retry ")]))])):i.value&&r.value?(k(),I("div",lF,[a("section",uF,[_[12]||(_[12]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-gear-fill"}),X(" Configuration ")],-1)),a("div",cF,[a("div",dF,[a("div",fF,[_[5]||(_[5]=a("div",{class:"info-icon queue-name-icon"},[a("i",{class:"bi bi-tag-fill"})],-1)),a("div",hF,[_[4]||(_[4]=a("div",{class:"info-label"},"Queue Name",-1)),a("div",pF,[a("span",mF,F(i.value.name),1)])])])]),a("div",gF,[a("div",vF,[_[7]||(_[7]=a("div",{class:"info-icon namespace-icon"},[a("i",{class:"bi bi-folder-fill"})],-1)),a("div",bF,[_[6]||(_[6]=a("div",{class:"info-label"},"Namespace",-1)),a("div",yF,[a("span",_F,F(i.value.ns),1)])])])]),a("div",EF,[a("div",wF,[_[9]||(_[9]=a("div",{class:"info-icon queue-type-icon"},[a("i",{class:"bi bi-list-ol"})],-1)),a("div",CF,[_[8]||(_[8]=a("div",{class:"info-label"},"Queue Type",-1)),a("div",AF,[a("span",{class:De(["queue-type-badge",m(r.value.queueType)]),title:g(r.value.queueType)},F(p(r.value.queueType)),11,SF)])])])]),a("div",$F,[a("div",TF,[_[11]||(_[11]=a("div",{class:"info-icon delivery-model-icon"},[a("i",{class:"bi bi-arrow-left-right"})],-1)),a("div",xF,[_[10]||(_[10]=a("div",{class:"info-label"},"Delivery Model",-1)),a("div",OF,[a("span",{class:De(["delivery-model-badge",y(r.value.deliveryModel)]),title:A(r.value.deliveryModel)},F(C(r.value.deliveryModel)),11,NF)])])])])])]),a("section",kF,[_[15]||(_[15]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-speedometer2"}),X(" Rate Limit ")],-1)),a("div",PF,[a("div",DF,[a("div",RF,[_[14]||(_[14]=a("div",{class:"info-icon rate-limit-icon"},[a("i",{class:"bi bi-speedometer2"})],-1)),a("div",IF,[_[13]||(_[13]=a("div",{class:"info-label"},"Current Limit",-1)),a("div",MF,[a("span",qF,F(x(r.value.rateLimit)),1)])])])])])]),a("section",LF,[_[17]||(_[17]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-bar-chart-line-fill"}),X(" Message Statistics ")],-1)),a("div",FF,[(k(!0),I($e,null,At(u.value,$=>(k(),I("div",{key:$.label,class:De(["info-item stat-item",{clickable:!!$.routeName}]),role:$.routeName?"link":"listitem",onClick:V=>d($.routeName)},[a("div",QF,[a("div",{class:De(["info-icon",$.iconClass])},[a("i",{class:De($.icon)},null,2)],2),a("div",jF,[a("div",BF,F($.label),1),a("div",UF,F(h($.value)),1)]),$.routeName?(k(),I("div",KF,_[16]||(_[16]=[a("i",{class:"bi bi-chevron-right"},null,-1)]))):me("",!0)])],10,VF))),128))])])])):(k(),I("div",HF,_[18]||(_[18]=[a("div",{class:"state-content"},[a("div",{class:"empty-icon"},"📋"),a("h4",{class:"state-title"},"No Queue Selected"),a("p",{class:"state-subtitle"},"Select a queue to view its properties")],-1)])))])]))}}),WF=at(GF,[["__scopeId","data-v-b3751305"]]),zF=Gd({consumerGroupName:vl().min(2,{message:"Name must be at least 2 characters"}).max(64,{message:"Name must be at most 64 characters"}).regex(/^[a-zA-Z0-9_-]+$/,{message:"Only letters, numbers, underscores, and hyphens are allowed"})});function YF(){const e=Wd(zF),{errors:t,values:s,meta:n,resetForm:i,handleSubmit:r,setFieldValue:o,setValues:l}=Xl({validationSchema:e});return{errors:t,values:s,meta:n,resetForm:i,handleSubmit:r,setFieldValue:o,setValues:l,validationSchema:e}}const ZF={class:"modal-content"},JF={class:"modal-body"},XF={class:"form-content"},eV={class:"form-section"},tV={class:"form-group"},sV={key:0,class:"error-section"},nV={class:"error-content"},iV={class:"error-text"},rV={class:"error-message"},aV={class:"modal-footer"},oV=["disabled"],lV=ze({__name:"CreateConsumerGroupModal",props:{isVisible:{type:Boolean},isCreating:{type:Boolean},createError:{}},emits:["close","submit"],setup(e,{emit:t}){const s={mounted:h=>h.focus()},n=e,{errors:i,resetForm:r,validationSchema:o}=YF();rt(()=>n.isVisible,h=>{h||r()});const l=t;function u(h){l("submit",h)}function d(){l("close")}function c(){d()}return(h,p)=>(k(),gt(Xa,{to:"body"},[h.isVisible?(k(),I("div",{key:0,class:"modal-overlay",role:"dialog","aria-labelledby":"create-consumer-group-title","aria-modal":"true",onClick:c,onKeydown:ps(d,["esc"])},[a("div",{class:"modal-container",onClick:p[0]||(p[0]=xt(()=>{},["stop"]))},[a("div",ZF,[a("header",{class:"modal-header"},[p[2]||(p[2]=a("div",{class:"header-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),p[3]||(p[3]=a("div",{class:"header-content"},[a("h2",{id:"create-consumer-group-title",class:"modal-title"}," Create Consumer Group "),a("p",{class:"modal-subtitle"}," Add a new consumer group for message processing ")],-1)),a("button",{type:"button",class:"btn-close","aria-label":"Close modal",onClick:d},p[1]||(p[1]=[a("i",{class:"bi bi-x"},null,-1)]))]),a("main",JF,[Ae(O(Kb),{"validation-schema":O(o),onSubmit:u},{default:et(({meta:m})=>[a("div",XF,[a("section",eV,[p[6]||(p[6]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),X(" Group Information ")]),a("p",{class:"section-description"}," Define the consumer group identifier ")],-1)),a("div",tV,[p[4]||(p[4]=a("label",{for:"consumerGroupName",class:"form-label"},[a("i",{class:"bi bi-tag-fill label-icon"}),X(" Consumer Group Name "),a("span",{class:"required-indicator"},"*")],-1)),_s(Ae(O(Ks),{id:"consumerGroupName",name:"consumerGroupName",type:"text",placeholder:"e.g. email-processors",class:De(["form-control",{error:O(i).consumerGroupName}]),autocomplete:"off","aria-describedby":"consumerGroupName-help consumerGroupName-error"},null,8,["class"]),[[s]]),Ae(O(ki),{id:"consumerGroupName-error",name:"consumerGroupName",class:"field-error"}),p[5]||(p[5]=a("div",{id:"consumerGroupName-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),X(" Use letters, numbers, underscores, and hyphens only ")],-1))])]),p[9]||(p[9]=a("section",{class:"benefits-section"},[a("div",{class:"benefits-header"},[a("h4",{class:"benefits-title"},[a("i",{class:"bi bi-check-circle-fill me-2"}),X(" Consumer Group Benefits ")])]),a("div",{class:"benefits-list"},[a("div",{class:"benefit-item"},[a("i",{class:"bi bi-arrow-right benefit-icon"}),a("span",null,"Parallel message processing across multiple consumers")]),a("div",{class:"benefit-item"},[a("i",{class:"bi bi-arrow-right benefit-icon"}),a("span",null,"Automatic load balancing and fault tolerance")]),a("div",{class:"benefit-item"},[a("i",{class:"bi bi-arrow-right benefit-icon"}),a("span",null,"Scalable message consumption patterns")])])],-1)),h.createError?(k(),I("div",sV,[a("div",nV,[p[8]||(p[8]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",iV,[p[7]||(p[7]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",rV,F(h.createError),1)])])])):me("",!0)]),a("footer",aV,[a("button",{type:"button",class:"btn btn-secondary",onClick:d},p[10]||(p[10]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ")])),a("button",{type:"submit",class:"btn btn-primary",disabled:h.isCreating||!m.valid},[h.isCreating?(k(),I($e,{key:0},[p[11]||(p[11]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),p[12]||(p[12]=X(" Creating Group... "))],64)):(k(),I($e,{key:1},[p[13]||(p[13]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),p[14]||(p[14]=X(" Create Consumer Group "))],64))],8,oV)])]),_:1},8,["validation-schema"])])])])],32)):me("",!0)]))}}),uV=at(lV,[["__scopeId","data-v-e3f4da61"]]),cV={class:"modal-content"},dV={class:"modal-body"},fV={class:"confirmation-message"},hV={class:"consumer-group-details"},pV={class:"group-info"},mV={class:"group-content"},gV={class:"group-name"},vV={key:0,class:"error-section"},bV={class:"error-content"},yV={class:"error-text"},_V={class:"error-message"},EV={class:"modal-footer"},wV=["disabled"],CV=ze({__name:"DeleteConsumerGroupModal",props:{isVisible:{type:Boolean},isPending:{type:Boolean},error:{},consumerGroup:{}},emits:["close","delete"],setup(e,{emit:t}){const s=t;function n(){s("delete")}function i(){s("close")}function r(){i()}return(o,l)=>(k(),gt(Xa,{to:"body"},[o.isVisible?(k(),I("div",{key:0,class:"modal-overlay",role:"dialog","aria-labelledby":"deleteConsumerGroupModalLabel","aria-modal":"true",onClick:r,onKeydown:ps(i,["esc"])},[a("div",{class:"modal-container",onClick:l[0]||(l[0]=xt(()=>{},["stop"]))},[a("div",cV,[a("header",{class:"modal-header"},[l[2]||(l[2]=a("div",{class:"header-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),l[3]||(l[3]=a("div",{class:"header-content"},[a("h2",{id:"deleteConsumerGroupModalLabel",class:"modal-title"}," Delete Consumer Group "),a("p",{class:"modal-subtitle"},"This action cannot be undone")],-1)),a("button",{type:"button",class:"btn-close","aria-label":"Close modal",onClick:i},l[1]||(l[1]=[a("i",{class:"bi bi-x"},null,-1)]))]),a("main",dV,[a("div",fV,[l[6]||(l[6]=a("p",{class:"message-text"}," Are you sure you want to permanently delete the following consumer group? ",-1)),a("div",hV,[a("div",pV,[l[5]||(l[5]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",mV,[l[4]||(l[4]=a("div",{class:"group-label"},"Consumer Group",-1)),a("div",gV,F(o.consumerGroup),1)])])])]),l[9]||(l[9]=a("div",{class:"warning-section"},[a("div",{class:"warning-content"},[a("div",{class:"warning-icon"},[a("i",{class:"bi bi-shield-exclamation"})]),a("div",{class:"warning-text"},[a("h4",{class:"warning-title"},"Warning"),a("ul",{class:"warning-list"},[a("li",null,"All consumers in this group will be disconnected"),a("li",null," Message processing for this group will stop immediately "),a("li",null,"This action cannot be reversed")])])])],-1)),o.error?(k(),I("div",vV,[a("div",bV,[l[8]||(l[8]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-circle-fill"})],-1)),a("div",yV,[l[7]||(l[7]=a("h4",{class:"error-title"},"Deletion Failed",-1)),a("p",_V,F(o.error),1)])])])):me("",!0)]),a("footer",EV,[a("button",{type:"button",class:"btn btn-secondary",onClick:i},l[10]||(l[10]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),X(" Cancel ")])),a("button",{type:"button",class:"btn btn-danger",disabled:o.isPending,onClick:n},[o.isPending?(k(),I($e,{key:0},[l[11]||(l[11]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),l[12]||(l[12]=X(" Deleting Group... "))],64)):(k(),I($e,{key:1},[l[13]||(l[13]=a("i",{class:"bi bi-trash-fill me-2"},null,-1)),l[14]||(l[14]=X(" Delete Consumer Group "))],64))],8,wV)])])])],32)):me("",!0)]))}}),AV=at(CV,[["__scopeId","data-v-684b3d7e"]]);function SV(){const e=Ts(),t=v(()=>{const u=e.params.ns;return Array.isArray(u)?u[0]:u}),s=v(()=>{const u=e.params.queue;return Array.isArray(u)?u[0]:u}),n=v(()=>!!(t.value&&s.value)),i=v(()=>!!(t.value&&t.value.length>0)),r=v(()=>!!(s.value&&s.value.length>0)),o=v(()=>t.value||"Unknown"),l=v(()=>s.value||"Unknown");return{ns:t,queueName:s,hasValidParams:n,isValidNamespace:i,isValidQueueName:r,displayNamespace:o,displayQueueName:l}}const $V={key:0,class:"consumer-groups-card"},TV={class:"card-header"},xV={class:"header-actions"},OV=["disabled"],NV={class:"card-content"},kV={key:0,class:"content-state not-supported-state"},PV={key:0,class:"content-state loading-state"},DV={key:1,class:"content-state error-state"},RV={class:"error-content"},IV={class:"error-text"},MV={class:"error-message"},qV={key:2,class:"content-state empty-state"},LV={class:"state-content"},FV=["disabled"],VV={key:3,class:"consumer-groups-content"},QV={class:"groups-header"},jV={class:"groups-count"},BV={class:"count-number"},UV={class:"count-label"},KV=["disabled"],HV={class:"consumer-groups-list"},GV={class:"group-info"},WV={class:"group-details"},zV={class:"group-name"},YV={class:"group-actions"},ZV=["disabled","onClick"],JV=ze({__name:"ConsumerGroupsCard",setup(e){const t=Bt(),s=di(),n=sy(),i=we(!1),r=we(!1),o=we(null),{ns:l,queueName:u}=SV();rt([l,u],([E,T])=>{E&&T&&t.selectQueue(E,T)},{immediate:!0});function d(E){o.value=E,r.value=!0}function c(){r.value=!1,o.value=null}const h=v(()=>s.isPubSubQueue),p=v(()=>{var E;return!h.value||!((E=n.consumerGroups.value)!=null&&E.data)?[]:n.sortedConsumerGroups.value}),m=v(()=>n.hasConsumerGroups.value),g=v(()=>{var T;const E=(T=n.consumerGroupsError.value)==null?void 0:T.error;if(E)return E.message?E.message:"Failed to load consumer groups"}),C=v(()=>{var T;const E=(T=n.createConsumerGroupError.value)==null?void 0:T.error;if(E)return E.message?E.message:"Failed to create consumer group"}),y=v(()=>{var T;const E=(T=n.deleteConsumerGroupError.value)==null?void 0:T.error;if(E)return E.message?E.message:"Failed to delete consumer group"}),A=v(()=>n.isDeletingConsumerGroup.value),x=v(()=>n.isCreatingConsumerGroup.value),S=v(()=>n.isLoadingConsumerGroups.value);function _(){n.refreshConsumerGroups()}async function $(E){try{const T=E;await n.createConsumerGroup(T.consumerGroupName),i.value=!1}catch(T){console.error("Failed to create consumer group:",T)}}async function V(){if(o.value)try{await n.deleteConsumerGroup(o.value),c()}catch(E){console.error("Failed to delete consumer group:",E)}}function j(){i.value=!1,n.resetCreateConsumerGroupMutation()}function R(){c(),n.resetDeleteConsumerGroupMutation()}return(E,T)=>O(t).selectedQueue?(k(),I("div",$V,[a("header",TV,[T[2]||(T[2]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-people-fill title-icon"}),X(" Consumer Groups ")]),a("p",{class:"card-subtitle"}," Manage message consumer groups for pub/sub queues ")],-1)),a("div",xV,[h.value?(k(),I("button",{key:0,class:"btn btn-refresh",disabled:S.value,title:"Refresh consumer groups",onClick:_},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:S.value}])},null,2)],8,OV)):me("",!0)])]),a("main",NV,[h.value?(k(),I($e,{key:1},[S.value?(k(),I("div",PV,T[4]||(T[4]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3"}),a("h5",{class:"state-title"},"Loading consumer groups..."),a("p",{class:"state-subtitle"}," Please wait while we fetch the consumer groups ")],-1)]))):g.value?(k(),I("div",DV,[a("div",RV,[T[6]||(T[6]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",IV,[T[5]||(T[5]=a("h5",{class:"error-title"},"Failed to load consumer groups",-1)),a("p",MV,F(g.value),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:_},T[7]||(T[7]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ")]))])])):m.value?(k(),I("div",VV,[a("div",QV,[a("div",jV,[a("span",BV,F(p.value.length),1),a("span",UV,"Consumer Group"+F(p.value.length!==1?"s":""),1)]),a("button",{class:"btn btn-primary btn-create",disabled:x.value,onClick:T[1]||(T[1]=N=>i.value=!0)},[x.value?(k(),I($e,{key:0},[T[13]||(T[13]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),T[14]||(T[14]=X(" Creating... "))],64)):(k(),I($e,{key:1},[T[15]||(T[15]=a("i",{class:"bi bi-plus-circle me-2"},null,-1)),T[16]||(T[16]=X(" Create Group "))],64))],8,KV)]),a("div",HV,[(k(!0),I($e,null,At(p.value,N=>(k(),I("div",{key:N,class:"consumer-group-item"},[a("div",GV,[T[18]||(T[18]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",WV,[a("div",zV,F(N),1),T[17]||(T[17]=a("div",{class:"group-description"}," Consumer group for message processing ",-1))])]),a("div",YV,[a("button",{class:"btn btn-outline-danger btn-delete",disabled:A.value,title:"Delete consumer group",onClick:w=>d(N)},[A.value&&o.value===N?(k(),I($e,{key:0},[T[19]||(T[19]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),T[20]||(T[20]=X(" Deleting... "))],64)):(k(),I($e,{key:1},[T[21]||(T[21]=a("i",{class:"bi bi-trash me-2"},null,-1)),T[22]||(T[22]=X(" Delete "))],64))],8,ZV)])]))),128))])])):(k(),I("div",qV,[a("div",LV,[T[12]||(T[12]=xn('<div class="empty-icon" data-v-56316510>👥</div><h4 class="state-title" data-v-56316510>No Consumer Groups</h4><p class="state-subtitle" data-v-56316510> Organize consumers into groups to load-balance message consumption from a queue. Each message is delivered to only one consumer within a group. </p><div class="empty-benefits" data-v-56316510><div class="benefit-item" data-v-56316510><i class="bi bi-check-circle-fill benefit-icon" data-v-56316510></i><span data-v-56316510>Load-balance message processing within a group</span></div><div class="benefit-item" data-v-56316510><i class="bi bi-check-circle-fill benefit-icon" data-v-56316510></i><span data-v-56316510>Ensure each message is processed only once per group</span></div><div class="benefit-item" data-v-56316510><i class="bi bi-check-circle-fill benefit-icon" data-v-56316510></i><span data-v-56316510>Build fault-tolerant and scalable consumer systems</span></div></div>',4)),a("button",{class:"btn btn-primary btn-create-first",disabled:x.value,onClick:T[0]||(T[0]=N=>i.value=!0)},[x.value?(k(),I($e,{key:0},[T[8]||(T[8]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),T[9]||(T[9]=X(" Creating... "))],64)):(k(),I($e,{key:1},[T[10]||(T[10]=a("i",{class:"bi bi-plus-circle me-2"},null,-1)),T[11]||(T[11]=X(" Create Your First Consumer Group "))],64))],8,FV)])]))],64)):(k(),I("div",kV,T[3]||(T[3]=[xn('<div class="state-content" data-v-56316510><div class="not-supported-icon" data-v-56316510><i class="bi bi-info-circle-fill" data-v-56316510></i></div><h4 class="state-title" data-v-56316510>Consumer Groups Not Supported</h4><p class="state-subtitle" data-v-56316510> Point-to-point queues use direct messaging where messages are delivered directly to individual consumers. </p><div class="state-info" data-v-56316510><div class="info-item" data-v-56316510><i class="bi bi-arrow-right me-2" data-v-56316510></i><span data-v-56316510>Messages are consumed by a single consumer</span></div><div class="info-item" data-v-56316510><i class="bi bi-arrow-right me-2" data-v-56316510></i><span data-v-56316510>No message broadcasting or group management needed</span></div></div></div>',1)])))]),Ae(uV,{"is-visible":i.value,"is-creating":x.value,"create-error":C.value,onSubmit:$,onClose:j},null,8,["is-visible","is-creating","create-error"]),Ae(AV,{error:y.value,"is-pending":A.value,"consumer-group":String(o.value),"is-visible":r.value,onClose:R,onDelete:V},null,8,["error","is-pending","consumer-group","is-visible"])])):me("",!0)}}),XV=at(JV,[["__scopeId","data-v-56316510"]]),eQ=(e,t,s)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"GET",signal:s})),tQ=(e,t)=>["api","v1","namespaces",e,"queues",t,"rate-limit"],sQ=(e,t,s)=>{const{query:n}=s??{};return{queryKey:tQ(e,t),queryFn:({signal:o})=>eQ(e,t,o),enabled:v(()=>!!(O(e)&&O(t))),...n}};function nQ(e,t,s,n){const i=sQ(e,t,s),r=vs(i);return r.queryKey=O(i).queryKey,r}const iQ=(e,t,s)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"PUT",headers:{"Content-Type":"application/json"},data:s})),rQ=e=>{const t=["putApiV1NamespacesNsQueuesNameRateLimit"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o,data:l}=i??{};return iQ(r,o,l)},...s}},aQ=(e,t)=>{const s=rQ(e);return Ft(s)},oQ=(e,t)=>(e=O(e),t=O(t),st({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"DELETE"})),lQ=e=>{const t=["deleteApiV1NamespacesNsQueuesNameRateLimit"],{mutation:s}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:t}}:{mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,name:o}=i??{};return oQ(r,o)},...s}},uQ=(e,t)=>{const s=lQ(e);return Ft(s)};function cQ(){const e=Bt(),t=nQ(v(()=>{var $;return(($=e.selectedQueue)==null?void 0:$.ns)||""}),v(()=>{var $;return(($=e.selectedQueue)==null?void 0:$.name)||""}),{query:{enabled:v(()=>{var $,V;return!!(($=e.selectedQueue)!=null&&$.ns)&&!!((V=e.selectedQueue)!=null&&V.name)}),retry:!1}}),s=aQ({mutation:{onSuccess:async()=>{await t.refetch()}}}),n=uQ({mutation:{onSuccess:async()=>{await t.refetch()}}}),i=v(()=>t.data.value),r=v(()=>t.isLoading.value),o=v(()=>s.isPending.value),l=v(()=>n.isPending.value),u=v(()=>r.value||o.value||l.value),d=v(()=>t.error.value),c=v(()=>s.error.value),h=v(()=>n.error.value),p=v(()=>d.value||c.value||h.value),m=v(()=>{var $;return!!(($=i.value)!=null&&$.data)});async function g($){if(!e.selectedQueue)throw new Error("No queue selected");await s.mutateAsync({...e.selectedQueue,data:$})}async function C(){if(!e.selectedQueue)throw new Error("No queue selected");await n.mutateAsync(e.selectedQueue)}async function y(){await t.refetch()}function A(){return e.selectedQueue?t.refetch():Promise.resolve()}function x(){s.reset()}function S(){n.reset()}function _(){s.reset(),n.reset()}return{rateLimitQuery:t,setRateLimitMutation:s,clearRateLimitMutation:n,rateLimit:i,isLoading:u,isLoadingRateLimit:r,isUpdatingRateLimit:o,isClearingRateLimit:l,error:p,rateLimitError:d,setRateLimitError:c,clearRateLimitError:h,hasRateLimit:m,setRateLimit:g,clearRateLimit:C,refreshRateLimit:y,refetchRateLimitData:A,resetSetRateLimitMutation:x,resetClearRateLimitMutation:S,resetAllMutations:_}}const dQ={key:0,class:"rate-limit-card"},fQ={class:"card-header"},hQ={class:"header-actions"},pQ=["disabled"],mQ={class:"card-content"},gQ={key:0,class:"content-state loading-state"},vQ={key:1,class:"content-state error-state"},bQ={class:"error-content"},yQ={class:"error-text"},_Q={class:"error-message"},EQ={key:2,class:"rate-limit-content"},wQ={key:0,class:"rate-limit-display"},CQ={key:0,class:"no-limit-section"},AQ={class:"no-limit-actions"},SQ=["disabled"],$Q={key:1,class:"rate-limit-info"},TQ={class:"rate-limit-status"},xQ={class:"rate-limit-details"},OQ={class:"rate-limit-value"},NQ={class:"rate-limit-interval"},kQ={class:"rate-limit-actions"},PQ=["disabled"],DQ=["disabled"],RQ={key:1,class:"rate-limit-form"},IQ={class:"form-header"},MQ={class:"form-title"},qQ={class:"form-body"},LQ={class:"form-grid"},FQ={class:"form-group"},VQ={class:"form-group"},QQ={class:"input-group"},jQ={class:"rate-limit-preview"},BQ={class:"preview-content"},UQ={class:"preview-text"},KQ={class:"form-footer"},HQ=["disabled"],GQ=["disabled"],WQ={key:1,class:"content-state empty-state"},zQ={class:"modal-content"},YQ={class:"modal-header"},ZQ={class:"modal-body"},JQ={class:"modal-message"},XQ={class:"queue-identifier"},e3={class:"modal-footer"},t3=["disabled"],s3=ze({__name:"QueueRateLimitCard",setup(e){const t=Bt(),s=cQ(),n=v(()=>t.selectedQueue),i=Gd({limit:em().int("Rate limit must be a whole number").positive("Rate limit must be greater than 0").max(1e6,"Rate limit must be less than 1,000,000"),interval:em().int("Interval must be a whole number").positive("Interval must be greater than 0"),intervalUnit:vl().refine(R=>["1000","60000","3600000"].includes(R),{message:"Please select a valid time unit"})}),r=Wd(i),o={limit:100,interval:1,intervalUnit:"1000"},l=we(!1),u=v(()=>s.isClearingRateLimit.value||s.isUpdatingRateLimit.value),d=we(!1),c=we(o),h=v(()=>s.isLoadingRateLimit.value),p=v(()=>{var N,w;const R=s.setRateLimitError,E=s.clearRateLimitError,T=((N=R.value)==null?void 0:N.error)||((w=E.value)==null?void 0:w.error);return T?`Failed to load rate limit settings: ${T.message} (${T.code})`:null}),m=v(()=>{var R;return((R=s.rateLimit.value)==null?void 0:R.data)||null}),g=v(()=>s.hasRateLimit.value);function C(R){if(!R)return"1 second";if(R>=36e5&&R%36e5===0){const E=R/36e5;return`${E} hour${E>1?"s":""}`}else if(R>=6e4&&R%6e4===0){const E=R/6e4;return`${E} minute${E>1?"s":""}`}else{const E=R/1e3;return`${E} second${E>1?"s":""}`}}function y(R){switch(R){case"3600000":return"hour";case"60000":return"minute";default:return"second"}}function A(R){return R?R>=36e5&&R%36e5===0?{interval:R/36e5,intervalUnit:"3600000"}:R>=6e4&&R%6e4===0?{interval:R/6e4,intervalUnit:"60000"}:{interval:R/1e3,intervalUnit:"1000"}:{interval:1,intervalUnit:"1000"}}rt(m,R=>{if(R){const{interval:E,intervalUnit:T}=A(R.interval);c.value={limit:R.limit,interval:E,intervalUnit:T}}else c.value=o},{immediate:!0});function x(){s.refreshRateLimit()}function S(){if(g.value&&m.value){const{interval:R,intervalUnit:E}=A(m.value.interval);c.value={limit:m.value.limit,interval:R,intervalUnit:E}}else c.value=o;l.value=!0}async function _(R){const{interval:E,limit:T,intervalUnit:N}=R;try{const w=E*parseInt(N);if(w<1e3){alert("Minimum interval is 1 second (1000ms)");return}const z={limit:T,interval:w};await s.setRateLimit(z),l.value=!1}catch(w){console.error("Error saving rate limit:",w)}}async function $(){try{await s.clearRateLimit(),d.value=!1}catch(R){console.error("Error clearing rate limit:",R)}}function V(){d.value=!0}function j(){l.value=!1}return gs(()=>{x()}),(R,E)=>{var T,N,w,z;return n.value?(k(),I("div",dQ,[a("header",fQ,[E[4]||(E[4]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-speedometer2 title-icon"}),X(" Rate Limiting ")]),a("p",{class:"card-subtitle"},"Control message processing speed")],-1)),a("div",hQ,[a("button",{class:"btn btn-refresh",disabled:h.value,title:"Refresh rate limit settings",onClick:x},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:h.value}])},null,2)],8,pQ)])]),a("main",mQ,[n.value?(k(),I($e,{key:0},[h.value?(k(),I("div",gQ,E[5]||(E[5]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3"}),a("h5",{class:"state-title"},"Loading rate limit settings..."),a("p",{class:"state-subtitle"}," Please wait while we fetch the configuration ")],-1)]))):p.value?(k(),I("div",vQ,[a("div",bQ,[E[7]||(E[7]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",yQ,[E[6]||(E[6]=a("h5",{class:"error-title"},"Failed to load rate limit settings",-1)),a("p",_Q,F(p.value),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:x},E[8]||(E[8]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ")]))])])):(k(),I("div",EQ,[l.value?me("",!0):(k(),I("div",wQ,[g.value?(k(),I("div",$Q,[a("div",TQ,[E[12]||(E[12]=a("div",{class:"status-indicator"},[a("div",{class:"status-badge active"},[a("i",{class:"bi bi-check-circle-fill me-1"}),X(" Active ")])],-1)),a("div",xQ,[a("h4",OQ,[X(F(((T=m.value)==null?void 0:T.limit)||0)+" messages ",1),a("span",NQ," per "+F(C((N=m.value)==null?void 0:N.interval)),1)]),E[11]||(E[11]=a("p",{class:"rate-limit-description"}," Current rate limiting configuration for this queue ",-1))])]),a("div",kQ,[a("button",{class:"btn btn-outline-primary btn-edit",disabled:u.value,onClick:S},E[13]||(E[13]=[a("i",{class:"bi bi-pencil me-2"},null,-1),X(" Edit ")]),8,PQ),a("button",{class:"btn btn-outline-danger btn-clear",disabled:u.value,onClick:V},E[14]||(E[14]=[a("i",{class:"bi bi-trash me-2"},null,-1),X(" Clear ")]),8,DQ)])])):(k(),I("div",CQ,[E[10]||(E[10]=xn('<div class="no-limit-content" data-v-82d94b9e><div class="no-limit-icon" data-v-82d94b9e>⚡</div><div class="no-limit-text" data-v-82d94b9e><h4 class="no-limit-title" data-v-82d94b9e>No Rate Limit Configured</h4><p class="no-limit-description" data-v-82d94b9e> Messages are processed without speed restrictions. Set a rate limit to control processing speed and prevent system overload. </p></div></div>',1)),a("div",AQ,[a("button",{class:"btn btn-primary btn-set-limit",disabled:u.value,onClick:S},E[9]||(E[9]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),X(" Set Rate Limit ")]),8,SQ)])]))])),l.value?(k(),I("div",RQ,[a("div",IQ,[a("h4",MQ,F(g.value?"Edit Rate Limit":"Set Rate Limit"),1),E[15]||(E[15]=a("p",{class:"form-subtitle"}," Configure the maximum number of messages processed per time interval ",-1))]),Ae(O(Kb),{"initial-values":c.value,"validation-schema":O(r),onSubmit:_},{default:et(()=>[a("div",qQ,[a("div",LQ,[a("div",FQ,[E[16]||(E[16]=a("label",{for:"limit",class:"form-label"},[a("i",{class:"bi bi-hash me-1"}),X(" Message Limit ")],-1)),Ae(O(Ks),{id:"limit",name:"limit",type:"number",class:"form-control",min:"1",max:"1000000",required:"",disabled:u.value,placeholder:"e.g. 100"},null,8,["disabled"]),Ae(O(ki),{name:"limit",class:"field-error"}),E[17]||(E[17]=a("div",{class:"field-help"},"Maximum messages to process",-1))]),a("div",VQ,[E[19]||(E[19]=a("label",{for:"interval",class:"form-label"},[a("i",{class:"bi bi-clock me-1"}),X(" Time Interval ")],-1)),a("div",QQ,[Ae(O(Ks),{id:"interval",name:"interval",type:"number",class:"form-control",min:"1",required:"",disabled:u.value,placeholder:"e.g. 1"},null,8,["disabled"]),Ae(O(Ks),{name:"intervalUnit",as:"select",class:"form-select"},{default:et(()=>E[18]||(E[18]=[a("option",{value:"1000"},"Seconds",-1),a("option",{value:"60000"},"Minutes",-1),a("option",{value:"3600000"},"Hours",-1)])),_:1})]),Ae(O(ki),{name:"interval",class:"field-error"}),E[20]||(E[20]=a("div",{class:"field-help"},"Minimum interval is 1 second",-1))])]),a("div",jQ,[a("div",BQ,[E[23]||(E[23]=a("i",{class:"bi bi-info-circle preview-icon"},null,-1)),a("div",UQ,[E[21]||(E[21]=X(" This will limit the queue to processing ")),Ae(O(Ks),{name:"limit"},{default:et(({field:se})=>[a("strong",null,F(se.value||0),1)]),_:1}),E[22]||(E[22]=X(" messages per ")),Ae(O(Ks),{name:"interval"},{default:et(({field:se})=>[a("strong",null,F(se.value||1),1)]),_:1}),Ae(O(Ks),{name:"intervalUnit"},{default:et(({field:se})=>[a("strong",null,F(y(se.value))+"(s)",1)]),_:1})])])])]),a("div",KQ,[a("button",{type:"button",class:"btn btn-outline-secondary btn-cancel",disabled:u.value,onClick:j}," Cancel ",8,HQ),a("button",{type:"submit",class:"btn btn-primary btn-save",disabled:u.value},[u.value?(k(),I($e,{key:0},[E[24]||(E[24]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),E[25]||(E[25]=X(" Saving... "))],64)):(k(),I($e,{key:1},[E[26]||(E[26]=a("i",{class:"bi bi-check-lg me-2"},null,-1)),E[27]||(E[27]=X(" Save Rate Limit "))],64))],8,GQ)])]),_:1},8,["initial-values","validation-schema"])])):me("",!0)]))],64)):(k(),I("div",WQ,E[28]||(E[28]=[a("div",{class:"state-content"},[a("div",{class:"empty-icon"},"🎯"),a("h4",{class:"state-title"},"No Queue Selected"),a("p",{class:"state-subtitle"}," Select a queue to configure its rate limiting settings ")],-1)])))]),d.value?(k(),I("div",{key:0,class:"modal-overlay",onClick:E[3]||(E[3]=se=>d.value=!1)},[a("div",{class:"modal-dialog",onClick:E[2]||(E[2]=xt(()=>{},["stop"]))},[a("div",zQ,[a("header",YQ,[E[30]||(E[30]=a("h4",{class:"modal-title"},[a("i",{class:"bi bi-exclamation-triangle-fill text-warning me-2"}),X(" Clear Rate Limit ")],-1)),a("button",{type:"button",class:"btn-close",title:"Close",onClick:E[0]||(E[0]=se=>d.value=!1)},E[29]||(E[29]=[a("i",{class:"bi bi-x"},null,-1)]))]),a("main",ZQ,[a("p",JQ,[E[31]||(E[31]=X(" Are you sure you want to remove the rate limit for queue ")),a("strong",XQ,'"'+F((w=n.value)==null?void 0:w.name)+"@"+F((z=n.value)==null?void 0:z.ns)+'"',1),E[32]||(E[32]=X("? "))]),E[33]||(E[33]=a("div",{class:"modal-warning"},[a("i",{class:"bi bi-info-circle me-2"}),X(" This will allow messages to be processed without any rate restrictions. ")],-1))]),a("footer",e3,[a("button",{type:"button",class:"btn btn-outline-secondary",onClick:E[1]||(E[1]=se=>d.value=!1)}," Cancel "),a("button",{type:"button",class:"btn btn-danger",disabled:u.value,onClick:$},[u.value?(k(),I($e,{key:0},[E[34]||(E[34]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),E[35]||(E[35]=X(" Clearing... "))],64)):(k(),I($e,{key:1},[E[36]||(E[36]=a("i",{class:"bi bi-trash me-2"},null,-1)),E[37]||(E[37]=X(" Clear Rate Limit "))],64))],8,t3)])])])])):me("",!0)])):me("",!0)}}}),n3=at(s3,[["__scopeId","data-v-82d94b9e"]]),Vu=5e3;function i3(){const e=Bt(),t=we(Vu),s=mN(v(()=>{var ee;return((ee=e.selectedQueue)==null?void 0:ee.ns)||""}),v(()=>{var ee;return((ee=e.selectedQueue)==null?void 0:ee.name)||""}),{query:{enabled:v(()=>{var ee,fe;return!!((ee=e.selectedQueue)!=null&&ee.ns)&&!!((fe=e.selectedQueue)!=null&&fe.name)}),refetchInterval:v(()=>t.value),refetchIntervalInBackground:!1}}),n=v(()=>s.data.value),i=v(()=>s.isLoading.value),r=v(()=>s.isRefetching.value),o=v(()=>s.error.value),l=v(()=>{var ee;return(ee=n.value)!=null&&ee.data?Object.entries(n.value.data).map(([fe,Oe])=>({id:fe,consumerId:fe,...Oe})):[]}),u=v(()=>{var ee;return((ee=n.value)==null?void 0:ee.data)||{}}),d=v(()=>Object.keys(u.value)),c=v(()=>l.value.length>0),h=v(()=>[...l.value].sort((ee,fe)=>ee.id.localeCompare(fe.id))),p=v(()=>[...l.value].sort((ee,fe)=>fe.createdAt-ee.createdAt)),m=v(()=>[...l.value].sort((ee,fe)=>ee.hostname.localeCompare(fe.hostname))),g=v(()=>l.value.length),C=v(()=>{const ee={};return l.value.forEach(fe=>{ee[fe.hostname]||(ee[fe.hostname]=[]),ee[fe.hostname].push(fe)}),ee}),y=v(()=>[...new Set(l.value.map(ee=>ee.hostname))].sort()),A=v(()=>{const ee={total:l.value.length,uniqueHostnames:y.value.length,averageCreatedAt:0,oldestConsumer:null,newestConsumer:null};if(l.value.length>0){const fe=l.value.reduce((Ue,ue)=>Ue+ue.createdAt,0);ee.averageCreatedAt=fe/l.value.length;const Oe=[...l.value].sort((Ue,ue)=>Ue.createdAt-ue.createdAt);ee.oldestConsumer=Oe[0],ee.newestConsumer=Oe[Oe.length-1]}return ee});async function x(){await s.refetch()}function S(){return e.selectedQueue?s.refetch():Promise.resolve()}function _(){t.value=Vu,console.log(`Real-time updates enabled with ${Vu}ms interval`)}function $(){t.value=!1,console.log("Real-time updates disabled")}function V(ee){return l.value.find(fe=>fe.id===ee)||null}function j(ee){return u.value[ee]||null}function R(ee){return l.value.filter(fe=>fe.hostname===ee)}function E(ee){return l.value.filter(fe=>fe.pid===ee)}function T(ee){return l.value.filter(fe=>fe.createdAt>ee)}function N(ee){return l.value.filter(fe=>fe.createdAt<ee)}function w(ee){const fe=ee.toLowerCase();return l.value.filter(Oe=>Oe.id.toLowerCase().includes(fe)||Oe.hostname.toLowerCase().includes(fe)||Oe.pid.toString().includes(fe)||Oe.ipAddress.some(Ue=>Ue.includes(ee)))}function z(ee){return!!ee&&ee.trim().length>0}function se(ee){return ee in u.value}function ne(){var ee,fe;return!!((ee=e.selectedQueue)!=null&&ee.ns)&&!!((fe=e.selectedQueue)!=null&&fe.name)}function te(){return e.selectedQueue?`${e.selectedQueue.ns}/${e.selectedQueue.name}`:""}function W(ee){return Date.now()-ee.createdAt}return{queuesStore:e,consumersQuery:s,consumers:n,consumersArray:l,consumersObject:u,consumerIds:d,isLoadingConsumers:i,isRefetchingConsumers:r,consumersError:o,hasConsumers:c,sortedConsumers:h,sortedConsumersByCreatedAt:p,sortedConsumersByHostname:m,consumerCount:g,consumersByHostname:C,uniqueHostnames:y,consumerStats:A,refreshConsumers:x,refetchConsumersData:S,enableRealTimeUpdates:_,disableRealTimeUpdates:$,findConsumerById:V,getConsumerData:j,getConsumersByHostname:R,getConsumersByPid:E,getConsumersCreatedAfter:T,getConsumersCreatedBefore:N,searchConsumers:w,isValidConsumerId:z,hasConsumerWithId:se,isValidQueue:ne,getQueueDisplayName:te,getConsumerUptime:W}}const r3={key:0,class:"queue-consumers-card"},a3={class:"card-header"},o3={class:"header-actions"},l3=["title"],u3=["disabled"],c3={class:"card-content"},d3={key:0,class:"content-state loading-state"},f3={key:1,class:"content-state error-state"},h3={class:"error-content"},p3={class:"error-text"},m3={class:"error-message"},g3={key:2,class:"content-state empty-state"},v3={class:"state-content"},b3={class:"empty-info"},y3={class:"info-item"},_3={key:3,class:"consumers-content"},E3={class:"consumers-stats"},w3={class:"stat-item"},C3={class:"stat-content"},A3={class:"stat-number"},S3={class:"stat-item"},$3={class:"stat-content"},T3={class:"stat-number"},x3={key:0,class:"stat-item"},O3={class:"stat-content"},N3={class:"stat-number"},k3={class:"consumers-filters"},P3={class:"filter-group"},D3={class:"filter-group"},R3=["value"],I3={class:"consumers-header"},M3={class:"consumers-count"},q3={key:0,class:"filtered-count"},L3={class:"indicator-text"},F3={class:"consumers-list"},V3={class:"consumer-header"},Q3={class:"consumer-id"},j3={class:"id-text"},B3={class:"consumer-status"},U3=["title"],K3={class:"consumer-details"},H3={class:"detail-row"},G3={class:"detail-item"},W3={class:"detail-value hostname"},z3={class:"detail-item"},Y3={class:"detail-value pid"},Z3={class:"detail-row"},J3={class:"detail-item"},X3={class:"detail-value uptime"},e4={class:"detail-item"},t4={class:"detail-value created-at"},s4={class:"detail-row"},n4={class:"detail-item ip-addresses"},i4={class:"ip-list"},r4=ze({__name:"QueueConsumersCard",setup(e){const t=Bt(),s=i3(),n=we(!0),i=we(""),r=we(""),o=v(()=>s.consumersArray.value),l=v(()=>s.isLoadingConsumers.value),u=v(()=>s.isRefetchingConsumers.value),d=v(()=>s.consumersError.value),c=v(()=>s.hasConsumers.value),h=v(()=>s.consumerStats.value),p=v(()=>s.uniqueHostnames.value),m=v(()=>{let S=o.value;return i.value&&(S=S.filter(_=>_.hostname===i.value)),r.value.trim()&&(S=s.searchConsumers(r.value)),S});function g(){s.refreshConsumers()}function C(){n.value=!n.value,n.value?s.enableRealTimeUpdates():s.disableRealTimeUpdates()}function y(){i.value="",r.value=""}function A(S){const $=s.getConsumerUptime(S)/(1e3*60);return $<1?"status-new":$<60?"status-active":"status-stable"}function x(S){const $=s.getConsumerUptime(S)/(1e3*60);return $<1?"New":$<60?"Active":"Stable"}return gs(()=>{n.value&&s.enableRealTimeUpdates()}),_d(()=>{s.disableRealTimeUpdates()}),(S,_)=>{var $,V;return O(t).selectedQueue?(k(),I("div",r3,[a("header",a3,[_[2]||(_[2]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-people-fill title-icon"}),X(" Queue Consumers ")]),a("p",{class:"card-subtitle"}," Active consumers processing messages from this queue ")],-1)),a("div",o3,[a("button",{class:De(["btn btn-toggle",{active:n.value}]),title:n.value?"Disable real-time updates":"Enable real-time updates",onClick:C},[a("i",{class:De(["bi",n.value?"bi-pause-fill":"bi-play-fill"])},null,2)],10,l3),a("button",{class:"btn btn-refresh",disabled:l.value,title:"Refresh consumers",onClick:g},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:u.value}])},null,2)],8,u3)])]),a("main",c3,[l.value?(k(),I("div",d3,_[3]||(_[3]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3"}),a("h5",{class:"state-title"},"Loading consumers..."),a("p",{class:"state-subtitle"}," Please wait while we fetch the active consumers ")],-1)]))):d.value?(k(),I("div",f3,[a("div",h3,[_[5]||(_[5]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",p3,[_[4]||(_[4]=a("h5",{class:"error-title"},"Failed to load consumers",-1)),a("p",m3,F(($=O(ft)(d.value))==null?void 0:$.message),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:g},_[6]||(_[6]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ")]))])])):c.value?(k(),I("div",_3,[a("div",E3,[a("div",w3,[_[13]||(_[13]=a("div",{class:"stat-icon total-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",C3,[a("div",A3,F(h.value.total),1),_[12]||(_[12]=a("div",{class:"stat-label"},"Total Consumers",-1))])]),a("div",S3,[_[15]||(_[15]=a("div",{class:"stat-icon hostnames-icon"},[a("i",{class:"bi bi-hdd-network-fill"})],-1)),a("div",$3,[a("div",T3,F(h.value.uniqueHostnames),1),_[14]||(_[14]=a("div",{class:"stat-label"},"Unique Hosts",-1))])]),h.value.newestConsumer?(k(),I("div",x3,[_[17]||(_[17]=a("div",{class:"stat-icon newest-icon"},[a("i",{class:"bi bi-clock-fill"})],-1)),a("div",O3,[a("div",N3,F(O(Tp)((V=h.value.newestConsumer)==null?void 0:V.createdAt)),1),_[16]||(_[16]=a("div",{class:"stat-label"},"Newest Consumer",-1))])])):me("",!0)]),a("div",k3,[a("div",P3,[_[18]||(_[18]=a("label",{class:"filter-label"},"Search:",-1)),_s(a("input",{"onUpdate:modelValue":_[0]||(_[0]=j=>r.value=j),type:"text",class:"form-control filter-input",placeholder:"Search by ID, hostname, PID, or IP..."},null,512),[[Sn,r.value]])]),a("div",D3,[_[20]||(_[20]=a("label",{class:"filter-label"},"Hostname:",-1)),_s(a("select",{"onUpdate:modelValue":_[1]||(_[1]=j=>i.value=j),class:"form-select filter-select"},[_[19]||(_[19]=a("option",{value:""},"All Hostnames",-1)),(k(!0),I($e,null,At(p.value,j=>(k(),I("option",{key:j,value:j},F(j),9,R3))),128))],512),[[uv,i.value]])]),i.value||r.value?(k(),I("button",{key:0,class:"btn btn-outline-secondary btn-clear-filters",onClick:y},_[21]||(_[21]=[a("i",{class:"bi bi-x-circle me-1"},null,-1),X(" Clear ")]))):me("",!0)]),a("div",I3,[a("h5",M3,[X(F(m.value.length)+" Consumer"+F(m.value.length!==1?"s":"")+" ",1),m.value.length!==o.value.length?(k(),I("span",q3," (filtered from "+F(o.value.length)+") ",1)):me("",!0)]),a("div",{class:De(["real-time-indicator",{active:n.value}])},[_[22]||(_[22]=a("i",{class:"bi bi-circle-fill indicator-dot"},null,-1)),a("span",L3,F(n.value?"Live":"Paused"),1)],2)]),a("div",F3,[(k(!0),I($e,null,At(m.value,j=>(k(),I("div",{key:j.id,class:"consumer-item"},[a("div",V3,[a("div",Q3,[_[23]||(_[23]=a("i",{class:"bi bi-person-fill consumer-icon"},null,-1)),a("span",j3,F(j.id),1)]),a("div",B3,[a("span",{class:De(["status-badge",A(j)]),title:`Consumer status: ${x(j)}`},F(x(j)),11,U3)])]),a("div",K3,[a("div",H3,[a("div",G3,[_[24]||(_[24]=a("i",{class:"bi bi-hdd-network detail-icon"},null,-1)),_[25]||(_[25]=a("span",{class:"detail-label"},"Hostname:",-1)),a("span",W3,F(j.hostname),1)]),a("div",z3,[_[26]||(_[26]=a("i",{class:"bi bi-gear detail-icon"},null,-1)),_[27]||(_[27]=a("span",{class:"detail-label"},"PID:",-1)),a("span",Y3,F(j.pid),1)])]),a("div",Z3,[a("div",J3,[_[28]||(_[28]=a("i",{class:"bi bi-clock detail-icon"},null,-1)),_[29]||(_[29]=a("span",{class:"detail-label"},"Uptime:",-1)),a("span",X3,F(O(Tp)(j.createdAt)),1)]),a("div",e4,[_[30]||(_[30]=a("i",{class:"bi bi-calendar detail-icon"},null,-1)),_[31]||(_[31]=a("span",{class:"detail-label"},"Started:",-1)),a("span",t4,F(O(jd)(j.createdAt)),1)])]),a("div",s4,[a("div",n4,[_[32]||(_[32]=a("i",{class:"bi bi-router detail-icon"},null,-1)),_[33]||(_[33]=a("span",{class:"detail-label"},"IP Addresses:",-1)),a("div",i4,[(k(!0),I($e,null,At(j.ipAddress,R=>(k(),I("span",{key:R,class:"ip-badge"},F(R),1))),128))])])])])]))),128))])])):(k(),I("div",g3,[a("div",v3,[_[9]||(_[9]=a("div",{class:"empty-icon"},"👥",-1)),_[10]||(_[10]=a("h4",{class:"state-title"},"No Active Consumers",-1)),_[11]||(_[11]=a("p",{class:"state-subtitle"}," No consumers are currently connected to this queue. Start a consumer application to begin processing messages. ",-1)),a("div",b3,[_[8]||(_[8]=a("div",{class:"info-item"},[a("i",{class:"bi bi-info-circle me-2"}),a("span",null,"Consumers will appear here when they connect to the queue")],-1)),a("div",y3,[_[7]||(_[7]=a("i",{class:"bi bi-info-circle me-2"},null,-1)),a("span",null,"Real-time updates are "+F(n.value?"enabled":"disabled"),1)])])])]))])])):me("",!0)}}}),a4=at(r4,[["__scopeId","data-v-58fa12ba"]]),o4={key:0,class:"details-grid"},l4={class:"details-column-main"},u4={class:"details-column-secondary"},c4="Queue Details & Management",d4=ze({__name:"QueuePropertiesView",setup(e){const t=Ts(),s=bs(),n=os(),i=Bt(),r=di(),o=v(()=>t.params.ns),l=v(()=>t.params.queue),u=v(()=>i.selectedQueue),d=v(()=>r.isLoadingQueueProperties),c=v(()=>r.queuePropertiesError),{deleteQueue:h,isDeletingQueue:p,deleteQueueError:m,deleteQueueMutation:g}=Db(async()=>{await s.push({name:"Queues"})}),C=we(!1);function y(){g.reset(),C.value=!0}function A(){C.value=!1}async function x(){u.value&&await h({ns:u.value.ns,name:u.value.name})}const S=v(()=>{const R=m.value||c.value;return ft(R)}),_=v(()=>{var E;const R=(E=c.value)==null?void 0:E.error;return(R==null?void 0:R.message)==="QueueNotFoundError"}),$=v(()=>`${l.value} @ ${o.value}`),V=v(()=>[{id:"delete-queue",label:"Delete",icon:"bi bi-trash",variant:"danger",disabled:d.value||p.value,loading:p.value,handler:y}]);function j(){i.clearSelectedQueue(),s.push({name:"Queues"})}return Dt(()=>{n.setPageHeader({title:$.value,subtitle:c4,icon:"bi bi-card-list"}),n.setLoadingState(d.value),_.value?(n.setEmptyState(!0,{icon:"bi bi-question-circle",title:"Queue Not Found",message:`The queue "${l.value}" in namespace "${o.value}" could not be found. It may have been deleted.`,actionLabel:"Back to Queues",actionHandler:j}),n.setPageActions([])):S.value&&!C.value?(n.setErrorState(S.value),n.setPageActions([])):(n.setEmptyState(!1),n.setErrorState(null),n.setPageActions(V.value))}),rt([o,l],([R,E])=>{R&&E?i.selectQueue(R,E):i.clearSelectedQueue()},{immediate:!0}),yb([{isVisible:C,onEscape:A}]),(R,E)=>(k(),I("div",null,[Ae(xs,null,{default:et(()=>[u.value?(k(),I("div",o4,[a("div",l4,[Ae(WF),Ae(XV)]),a("div",u4,[Ae(n3),Ae(a4)])])):me("",!0)]),_:1}),Ae(ey,{queue:{ns:o.value,name:l.value},"is-deleting":O(p),"is-visible":C.value,error:O(m)?O(ft)(O(m)):null,onCancel:A,onConfirm:x},null,8,["queue","is-deleting","is-visible","error"])]))}}),f4=at(d4,[["__scopeId","data-v-5ba72f15"]]),h4=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/queues/${t}/scheduled-messages`,method:"GET",params:O(s),signal:n}));function p4(e,t=20){return ro(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>h4(n,i,{page:r,pageSize:o}),queryKeyPrefix:"scheduled-messages",enableDelete:!0,enableRequeue:!1},t)}const m4=ze({__name:"ScheduledMessagesView",setup(e){const t=Ts(),s=os(),n=Bt(),i=di(),r=v(()=>({ns:t.params.ns,name:t.params.queue}));rt(r,$=>{$.ns&&$.name&&n.selectQueue($.ns,$.name)},{immediate:!0,deep:!0});const o=v(()=>n.selectedQueue),{messages:l,pagination:u,isLoading:d,isDeleting:c,error:h,goToPage:p,setPageSize:m,refresh:g,deleteMessage:C}=p4(r,20),y=v(()=>o.value?`Scheduled Messages - ${`${o.value.ns}/${o.value.name}`}`:"Scheduled Messages"),A=v(()=>{if(o.value)return i.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});Dt(()=>{s.setPageHeader({title:y.value,subtitle:A.value,icon:"bi bi-clock"})}),Dt(()=>{if(!o.value){s.setEmptyState(!0,{icon:"bi bi-inbox",title:"No Queue Selected",message:"Please select a queue from the sidebar to view its scheduled messages."}),s.setPageActions([]),s.setLoadingState(!1),s.setErrorState(null);return}s.setLoadingState(!1),s.setErrorState(null),s.setEmptyState(!1),s.setPageActions([])});async function x($){C&&await C($)}function S($){p($)}async function _($){await m($)}return($,V)=>(k(),gt(xs,{"show-section-header":!1},{default:et(()=>[o.value?(k(),gt(io,{key:0,messages:O(l),"is-loading":O(d),error:O(h),pagination:O(u),"show-pagination":!0,"empty-message":"No scheduled messages found for this queue. Messages appear here when they are scheduled for future delivery.",icon:"bi-clock","is-deleting":O(c),"is-requeuing":!1,onRefresh:O(g),onDeleteMessage:x,onPageChange:S,onPageSizeChange:_,onFirstPage:V[0]||(V[0]=j=>S(1)),onPreviousPage:V[1]||(V[1]=j=>S(O(u).currentPage-1)),onNextPage:V[2]||(V[2]=j=>S(O(u).currentPage+1)),onLastPage:V[3]||(V[3]=j=>S(O(u).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","onRefresh"])):me("",!0)]),_:1}))}}),g4=(e,t,s,n)=>(e=O(e),t=O(t),s=O(s),st({url:`/api/v1/namespaces/${e}/queues/${t}/messages`,method:"GET",params:O(s),signal:n}));function v4(e,t=20){return ro(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>g4(n,i,{page:r,pageSize:o}),queryKeyPrefix:"queue-messages",enableDelete:!0,enableRequeue:!0},t)}const b4=ze({__name:"QueueMessagesView",setup(e){const t=Ts(),s=os(),n=Bt(),i=v(()=>({ns:t.params.ns,name:t.params.queue}));rt(i,$=>{$.ns&&$.name&&n.selectQueue($.ns,$.name)},{immediate:!0,deep:!0});const{messages:r,pagination:o,isLoading:l,isDeleting:u,isRequeuing:d,error:c,goToPage:h,setPageSize:p,refresh:m,deleteMessage:g,requeueMessage:C}=v4(i,20),y=v(()=>i.value.ns?`Queue Messages - ${i.value.name}@${i.value.ns}`:"Queue Messages");Dt(()=>{s.setPageHeader({title:y.value,subtitle:"View and manage messages for this queue.",icon:"bi bi-clock"}),s.setLoadingState(!1),s.setErrorState(null),s.setEmptyState(!1),s.setPageActions([])});async function A($){g&&await g($)}async function x($){C&&await C($)}function S($){h($)}async function _($){await p($)}return($,V)=>(k(),gt(xs,{"show-section-header":!1},{default:et(()=>[Ae(io,{messages:O(r),"is-loading":O(l),error:O(c),pagination:O(o),"show-pagination":!0,"empty-message":"No messages found for this queue",icon:"bi-clock","is-deleting":O(u),"is-requeuing":O(d),onRefresh:O(m),onDeleteMessage:A,onRequeueMessage:x,onPageChange:S,onPageSizeChange:_,onFirstPage:V[0]||(V[0]=j=>S(1)),onPreviousPage:V[1]||(V[1]=j=>S(O(o).currentPage-1)),onNextPage:V[2]||(V[2]=j=>S(O(o).currentPage+1)),onLastPage:V[3]||(V[3]=j=>S(O(o).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","is-requeuing","onRefresh"])]),_:1}))}}),y4={class:"bind-queue-content"},_4={class:"modal-description"},E4={key:0,class:"error-alert",role:"alert"},w4={class:"form-group"},C4=["disabled"],A4={key:0,class:"field-error",role:"alert"},S4={key:0,class:"form-group"},$4=["disabled"],T4={key:0,class:"field-error",role:"alert"},x4={key:1,class:"form-group"},O4=["disabled"],N4={key:0,class:"field-error",role:"alert"},k4=["disabled"],P4=["disabled"],D4={key:0,class:"loading-spinner","aria-hidden":"true"},R4={key:1,class:"bi bi-link-45deg","aria-hidden":"true"},I4=ze({__name:"BindQueueModal",props:{isVisible:{type:Boolean},isLoading:{type:Boolean,default:!1},error:{default:null},exchangeType:{},exchangeName:{},namespace:{}},emits:["confirm","cancel"],setup(e,{emit:t}){const s=e,n=t,i=we(""),r=we(""),o=we(""),l=we(""),u=we(""),d=we(""),c=we(null),h=v(()=>`Bind Queue to ${s.exchangeType.charAt(0).toUpperCase()+s.exchangeType.slice(1)} Exchange`),p=v(()=>`${s.exchangeName} • ${s.namespace}`),m=v(()=>{switch(s.exchangeType){case"direct":return"Bind a queue to this direct exchange with a specific routing key. Messages will be routed to the queue only when the routing key matches exactly.";case"fanout":return"Bind a queue to this fanout exchange. All messages published to this exchange will be delivered to the bound queue.";case"topic":return"Bind a queue to this topic exchange with a binding pattern. Messages will be routed based on pattern matching with routing keys.";default:return"Bind a queue to this exchange."}}),g=v(()=>s.exchangeType==="direct"),C=v(()=>s.exchangeType==="topic"),y=v(()=>{const R=i.value.trim().length>0,E=!g.value||r.value.trim().length>0,T=!C.value||o.value.trim().length>0;return R&&E&&T&&!l.value&&!u.value&&!d.value}),A=()=>{const R=i.value.trim();return R?R.length<1||R.length>255?(l.value="Queue name must be between 1 and 255 characters",!1):/^[a-zA-Z0-9._-]+$/.test(R)?(l.value="",!0):(l.value="Queue name can only contain letters, numbers, dots, underscores, and hyphens",!1):(l.value="Queue name is required",!1)},x=()=>{if(!g.value)return u.value="",!0;const R=r.value.trim();return R?R.length>255?(u.value="Routing key must not exceed 255 characters",!1):(u.value="",!0):(u.value="Routing key is required for direct exchanges",!1)},S=()=>{if(!C.value)return d.value="",!0;const R=o.value.trim();return R?R.length>255?(d.value="Binding pattern must not exceed 255 characters",!1):(d.value="",!0):(d.value="Binding pattern is required for topic exchanges",!1)},_=()=>{const R=A(),E=x(),T=S();return R&&E&&T},$=()=>{if(!_()||s.isLoading)return;const R={queueName:i.value.trim()};g.value&&(R.routingKey=r.value.trim()),C.value&&(R.bindingPattern=o.value.trim()),n("confirm",R)},V=()=>{s.isLoading||n("cancel")},j=()=>{i.value="",r.value="",o.value="",l.value="",u.value="",d.value=""};return rt(()=>s.isVisible,async R=>{var E;R&&(j(),await Ht(),(E=c.value)==null||E.focus())}),rt(()=>s.error,R=>{R||(l.value="",u.value="",d.value="")}),(R,E)=>(k(),gt(Wl,{"is-visible":R.isVisible,title:h.value,subtitle:p.value,icon:"bi bi-link-45deg",size:"md",onClose:V},{body:et(()=>[a("div",y4,[a("p",_4,F(m.value),1),R.error?(k(),I("div",E4,[E[6]||(E[6]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("span",null,F(R.error),1)])):me("",!0),a("form",{onSubmit:xt($,["prevent"])},[a("div",w4,[E[7]||(E[7]=a("label",{for:"queueName",class:"form-label"},[X(" Queue Name "),a("span",{class:"required"},"*")],-1)),_s(a("input",{id:"queueName",ref_key:"queueNameInput",ref:c,"onUpdate:modelValue":E[0]||(E[0]=T=>i.value=T),type:"text",class:De(["form-input",{error:l.value}]),placeholder:"Enter queue name",disabled:R.isLoading,onBlur:A,onInput:E[1]||(E[1]=T=>l.value="")},null,42,C4),[[Sn,i.value]]),l.value?(k(),I("div",A4,F(l.value),1)):me("",!0),E[8]||(E[8]=a("div",{class:"field-hint"}," Queue name can contain letters, numbers, dots, underscores, and hyphens ",-1))]),g.value?(k(),I("div",S4,[E[9]||(E[9]=a("label",{for:"routingKey",class:"form-label"},[X(" Routing Key "),a("span",{class:"required"},"*")],-1)),_s(a("input",{id:"routingKey","onUpdate:modelValue":E[2]||(E[2]=T=>r.value=T),type:"text",class:De(["form-input",{error:u.value}]),placeholder:"Enter routing key",disabled:R.isLoading,onBlur:x,onInput:E[3]||(E[3]=T=>u.value="")},null,42,$4),[[Sn,r.value]]),u.value?(k(),I("div",T4,F(u.value),1)):me("",!0),E[10]||(E[10]=a("div",{class:"field-hint"}," Messages will be routed to this queue only when the routing key matches exactly ",-1))])):me("",!0),C.value?(k(),I("div",x4,[E[11]||(E[11]=a("label",{for:"bindingPattern",class:"form-label"},[X(" Binding Pattern "),a("span",{class:"required"},"*")],-1)),_s(a("input",{id:"bindingPattern","onUpdate:modelValue":E[4]||(E[4]=T=>o.value=T),type:"text",class:De(["form-input",{error:d.value}]),placeholder:"Enter binding pattern (e.g., user.*.created)",disabled:R.isLoading,onBlur:S,onInput:E[5]||(E[5]=T=>d.value="")},null,42,O4),[[Sn,o.value]]),d.value?(k(),I("div",N4,F(d.value),1)):me("",!0),E[12]||(E[12]=a("div",{class:"field-hint"}," Use * to match one word, # to match zero or more words (e.g., user.*.created, logs.#) ",-1))])):me("",!0)],32)])]),footer:et(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:R.isLoading,onClick:V}," Cancel ",8,k4),a("button",{type:"button",class:"btn btn-primary",disabled:!y.value||R.isLoading,onClick:$},[R.isLoading?(k(),I("span",D4)):(k(),I("i",R4)),X(" "+F(R.isLoading?"Binding...":"Bind Queue"),1)],8,P4)]),_:1},8,["is-visible","title","subtitle"]))}}),zd=at(I4,[["__scopeId","data-v-5779d51d"]]),M4={class:"unbind-queue-content"},q4={key:0,class:"error-alert",role:"alert"},L4={class:"confirmation-section"},F4={class:"confirmation-content"},V4={class:"confirmation-message"},Q4={class:"warning-message"},j4={class:"binding-details"},B4={class:"detail-item"},U4={class:"detail-value queue-name"},K4={class:"detail-item"},H4={class:"detail-value exchange-type"},G4={key:0,class:"detail-item"},W4={class:"detail-label"},z4={class:"detail-value binding-key"},Y4=["disabled"],Z4=["disabled"],J4={key:0,class:"loading-spinner","aria-hidden":"true"},X4={key:1,class:"bi bi-unlink","aria-hidden":"true"},ej=ze({__name:"UnbindQueueModal",props:{isVisible:{type:Boolean},isLoading:{type:Boolean,default:!1},error:{default:null},queueName:{},routingKey:{default:""},bindingPattern:{default:""},exchangeType:{}},emits:["confirm","cancel"],setup(e,{emit:t}){const s=e,n=t,i=v(()=>`Unbind Queue from ${s.exchangeType.charAt(0).toUpperCase()+s.exchangeType.slice(1)} Exchange`),r=v(()=>`${s.queueName}`),o=v(()=>{switch(s.exchangeType){case"direct":return s.routingKey;case"topic":return s.bindingPattern;case"fanout":return null;default:return null}}),l=v(()=>{switch(s.exchangeType){case"direct":return"Routing Key";case"topic":return"Binding Pattern";default:return null}}),u=v(()=>{var m;const p=`Are you sure you want to unbind the queue "${s.queueName}"`;return o.value?`${p} with ${(m=l.value)==null?void 0:m.toLowerCase()} "${o.value}"?`:`${p}?`}),d=v(()=>{switch(s.exchangeType){case"direct":return"Messages with this routing key will no longer be delivered to this queue.";case"fanout":return"This queue will no longer receive messages published to this exchange.";case"topic":return"Messages matching this binding pattern will no longer be delivered to this queue.";default:return"This queue will no longer receive messages from this exchange."}}),c=()=>{s.isLoading||n("confirm")},h=()=>{s.isLoading||n("cancel")};return(p,m)=>(k(),gt(Wl,{"is-visible":p.isVisible,title:i.value,subtitle:r.value,icon:"bi bi-unlink",size:"sm",onClose:h},{body:et(()=>[a("div",M4,[p.error?(k(),I("div",q4,[m[0]||(m[0]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("span",null,F(p.error),1)])):me("",!0),a("div",L4,[m[1]||(m[1]=a("div",{class:"confirmation-icon"},[a("i",{class:"bi bi-question-circle-fill","aria-hidden":"true"})],-1)),a("div",F4,[a("p",V4,F(u.value),1),a("p",Q4,F(d.value),1)])]),a("div",j4,[a("div",B4,[m[2]||(m[2]=a("span",{class:"detail-label"},"Queue:",-1)),a("span",U4,F(p.queueName),1)]),a("div",K4,[m[3]||(m[3]=a("span",{class:"detail-label"},"Exchange Type:",-1)),a("span",H4,F(p.exchangeType),1)]),o.value&&l.value?(k(),I("div",G4,[a("span",W4,F(l.value)+":",1),a("span",z4,F(o.value),1)])):me("",!0)])])]),footer:et(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:p.isLoading,onClick:h}," Cancel ",8,Y4),a("button",{type:"button",class:"btn btn-danger",disabled:p.isLoading,onClick:c},[p.isLoading?(k(),I("span",J4)):(k(),I("i",X4)),X(" "+F(p.isLoading?"Unbinding...":"Unbind Queue"),1)],8,Z4)]),_:1},8,["is-visible","title","subtitle"]))}}),Yd=at(ej,[["__scopeId","data-v-1556a4bd"]]),tj={key:0,class:"stats-overview"},sj={class:"stats-grid"},nj={class:"stat-card"},ij={class:"stat-content"},rj={class:"stat-value"},aj={class:"stat-label"},oj={class:"stat-card"},lj={class:"stat-content"},uj={class:"stat-value"},cj={class:"stat-label"},dj={key:1,class:"bindings-section"},fj={class:"bindings-list"},hj={class:"binding-header"},pj={class:"routing-key-info"},mj={class:"routing-key-badge"},gj={class:"routing-key-text"},vj={class:"queue-count"},bj={key:0,class:"queues-list"},yj={class:"queue-info"},_j={class:"queue-name"},Ej=["disabled","aria-label","onClick"],wj={key:1,class:"no-queues"},Cj=20,Aj=ze({__name:"ExchangeDirectView",setup(e){const t=Ts(),s=bs(),n=os(),i=kn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!r.value&&!!o.value),u=we(!1),d=we(!1),c=we(!1),h=we(null),{data:p,isLoading:m,error:g,refetch:C}=pb(o,r,{query:{enabled:l}}),y=v(()=>{var _e;return((_e=p.value)==null?void 0:_e.data)||[]}),A=Array.from({length:Cj},(_e,K)=>{const D=v(()=>y.value[K]||""),B=v(()=>l.value&&K<y.value.length&&!!y.value[K]);return mb(o,r,v(()=>({routingKey:D.value})),{query:{enabled:B}})}),x=Ld({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Rc(o.value,r.value)}),y.value.forEach(_e=>{i.invalidateQueries({queryKey:Ic(o.value,r.value,{routingKey:_e})})}),d.value=!1},onError:_e=>{console.error("Failed to bind queue:",_e)}}}),S=NT({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Rc(o.value,r.value)}),y.value.forEach(_e=>{i.invalidateQueries({queryKey:Ic(o.value,r.value,{routingKey:_e})})}),c.value=!1,h.value=null},onError:_e=>{console.error("Failed to unbind queue:",_e)}}}),_=qd({mutation:{onSuccess:()=>{s.push("/exchanges")},onError:_e=>{console.error("Failed to delete exchange:",_e)}}}),$=v(()=>m.value||A.some((_e,K)=>K<y.value.length&&_e.isLoading.value)),V=v(()=>!!g.value||A.some((_e,K)=>K<y.value.length&&!!_e.error.value)),j=v(()=>{var K;if(g.value)return ft(g.value);const _e=(K=A.find((D,B)=>B<y.value.length&&D.error.value))==null?void 0:K.error.value;return _e?ft(_e):null}),R=v(()=>{const _e=[];return y.value.forEach((K,D)=>{var ce,Y;if(D>=A.length)return;const J=((Y=(ce=A[D].data)==null?void 0:ce.value)==null?void 0:Y.data)||[];_e.push({routingKey:K,queues:J.map(P=>({name:P.name})),totalQueues:J.length})}),_e}),E=v(()=>R.value.reduce((_e,K)=>_e+K.totalQueues,0)),T=v(()=>y.value.length),N=v(()=>x.isPending.value),w=v(()=>S.isPending.value),z=v(()=>_.isPending.value),se=v(()=>{var _e;return ft((_e=x.error.value)==null?void 0:_e.error)}),ne=v(()=>{var _e;return ft((_e=S.error.value)==null?void 0:_e.error)}),te=v(()=>{var _e;return ft((_e=_.error.value)==null?void 0:_e.error)}),W=()=>{d.value=!0},ee=(_e,K)=>{h.value={name:_e,routingKey:K},c.value=!0},fe=()=>{u.value=!0},Oe=()=>{C(),A.forEach((_e,K)=>{K<y.value.length&&_e.refetch()})},Ue=async _e=>{await x.mutateAsync({ns:o.value,direct:r.value,queue:_e.queueName,params:{routingKey:String(_e.routingKey)}})},ue=async()=>{h.value&&await S.mutateAsync({ns:o.value,direct:r.value,queue:h.value.name,params:{routingKey:h.value.routingKey}})},ve=async()=>{await _.mutateAsync({ns:o.value,direct:r.value})},Re=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:N.value,loading:N.value,handler:W,tooltip:"Bind a queue to this exchange with a routing key"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:$.value,loading:$.value,handler:Oe,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:z.value,loading:z.value,handler:fe,tooltip:"Delete this exchange and all its bindings"}]);return Dt(()=>{if(!l.value){n.setPageHeader({title:"Invalid Exchange",subtitle:"Exchange name and namespace are required",icon:"bi bi-exclamation-triangle"}),n.setPageActions([]),n.setErrorState({message:"Invalid route parameters"});return}n.setPageHeader({title:`Direct Exchange: ${r.value}`,subtitle:`Namespace: ${o.value} • Routes messages based on exact routing key matches`,icon:"bi bi-arrow-right"}),n.setPageActions(Re.value),n.setLoadingState($.value),V.value?(n.setErrorState(j.value),n.setEmptyState(!1)):!$.value&&T.value===0?(n.setErrorState(null),n.setEmptyState(!0,{icon:"bi bi-arrow-right",title:"No Queue Bindings",message:"This direct exchange has no queue bindings. Bind a queue with a routing key to start routing messages.",actionLabel:"Bind Queue",actionHandler:W})):(n.setErrorState(null),n.setEmptyState(!1))}),gs(()=>{l.value||s.push("/exchanges")}),(_e,K)=>{var D,B;return k(),I("div",null,[Ae(xs,null,{default:et(()=>[!$.value&&!V.value&&T.value>0?(k(),I("div",tj,[a("div",sj,[a("div",nj,[K[3]||(K[3]=a("div",{class:"stat-icon routing-keys"},[a("i",{class:"bi bi-key","aria-hidden":"true"})],-1)),a("div",ij,[a("div",rj,F(T.value),1),a("div",aj," Routing "+F(T.value===1?"Key":"Keys"),1)])]),a("div",oj,[K[4]||(K[4]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",lj,[a("div",uj,F(E.value),1),a("div",cj," Bound "+F(E.value===1?"Queue":"Queues"),1)])])])])):me("",!0),!$.value&&!V.value&&R.value.length>0?(k(),I("div",dj,[K[9]||(K[9]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"}),X(" Queue Bindings ")],-1)),a("div",fj,[(k(!0),I($e,null,At(R.value,J=>(k(),I("div",{key:J.routingKey,class:"binding-card"},[a("div",hj,[a("div",pj,[a("div",mj,[K[5]||(K[5]=a("i",{class:"bi bi-key","aria-hidden":"true"},null,-1)),a("span",gj,F(J.routingKey),1)]),a("div",vj,F(J.totalQueues)+" "+F(J.totalQueues===1?"queue":"queues"),1)])]),J.queues.length>0?(k(),I("div",bj,[(k(!0),I($e,null,At(J.queues,ce=>(k(),I("div",{key:`${J.routingKey}-${ce.name}`,class:"queue-item"},[a("div",yj,[K[6]||(K[6]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",_j,F(ce.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:w.value,"aria-label":`Unbind queue ${ce.name} from routing key ${J.routingKey}`,onClick:Y=>ee(ce.name,J.routingKey)},K[7]||(K[7]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)]),8,Ej)]))),128))])):(k(),I("div",wj,K[8]||(K[8]=[a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1),a("span",null,"No queues bound to this routing key",-1)])))]))),128))])])):me("",!0)]),_:1}),Ae(Ji,{"is-visible":u.value,"is-loading":z.value,error:te.value,title:"Delete Direct Exchange",message:`Are you sure you want to delete the direct exchange '${r.value}'? This will remove all queue bindings and cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:ve,onClose:K[0]||(K[0]=J=>u.value=!1)},null,8,["is-visible","is-loading","error","message"]),Ae(zd,{"is-visible":d.value,"is-loading":N.value,error:se.value,"exchange-type":"direct","exchange-name":r.value,namespace:o.value,onConfirm:Ue,onCancel:K[1]||(K[1]=J=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),Ae(Yd,{"is-visible":c.value,"is-loading":w.value,error:ne.value,"queue-name":((D=h.value)==null?void 0:D.name)||"","routing-key":((B=h.value)==null?void 0:B.routingKey)||"","exchange-type":"direct",onConfirm:ue,onCancel:K[2]||(K[2]=J=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name","routing-key"])])}}}),Sj=at(Aj,[["__scopeId","data-v-2045c4c0"]]),$j={key:0,class:"stats-overview"},Tj={class:"stats-grid"},xj={class:"stat-card"},Oj={class:"stat-content"},Nj={class:"stat-value"},kj={class:"stat-label"},Pj={class:"stat-card"},Dj={class:"stat-content"},Rj={class:"stat-value"},Ij={class:"stat-label"},Mj={key:1,class:"bindings-section"},qj={class:"bindings-list"},Lj={class:"binding-header"},Fj={class:"binding-pattern-info"},Vj={class:"binding-pattern-badge"},Qj={class:"binding-pattern-text"},jj={class:"queue-count"},Bj={class:"pattern-explanation"},Uj={class:"explanation-text"},Kj={key:0,class:"queues-list"},Hj={class:"queue-info"},Gj={class:"queue-name"},Wj=["disabled","aria-label","onClick"],zj={key:1,class:"no-queues"},Yj=20,Zj=ze({__name:"ExchangeTopicView",setup(e){const t=Ts(),s=bs(),n=os(),i=kn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!(r.value&&o.value)),u=we(!1),d=we(!1),c=we(!1),h=we(null),p=K=>{let D=K.replace(/\*/g,"word").replace(/#/g,"any.nested.keys");return!K.includes("*")&&!K.includes("#")?K:D},{data:m,isLoading:g,error:C,refetch:y}=gb(o,r,{query:{enabled:l}}),A=v(()=>{var K;return((K=m.value)==null?void 0:K.data)||[]}),x=Array.from({length:Yj},(K,D)=>{const B=v(()=>A.value[D]||""),J=v(()=>l.value&&D<A.value.length&&!!A.value[D]);return vb(o,r,v(()=>({bindingPattern:B.value})),{query:{enabled:J}})}),S=Vd({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Mc(o.value,r.value)}),A.value.forEach(K=>{i.invalidateQueries({queryKey:qc(o.value,r.value,{bindingPattern:K})})}),d.value=!1},onError:K=>{console.error("Failed to bind queue:",K)}}}),_=QT({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Mc(o.value,r.value)}),A.value.forEach(K=>{i.invalidateQueries({queryKey:qc(o.value,r.value,{bindingPattern:K})})}),c.value=!1,h.value=null},onError:K=>{console.error("Failed to unbind queue:",K)}}}),$=Fd({mutation:{onSuccess:()=>{s.push("/exchanges")},onError:K=>{console.error("Failed to delete exchange:",K)}}}),V=v(()=>g.value||x.some((K,D)=>D<A.value.length&&K.isLoading.value)),j=v(()=>!!C.value||x.some((K,D)=>D<A.value.length&&!!K.error.value)),R=v(()=>{var D;if(C.value)return ft(C.value);const K=(D=x.find((B,J)=>J<A.value.length&&B.error.value))==null?void 0:D.error.value;return K?ft(K):null}),E=v(()=>{const K=[];return A.value.forEach((D,B)=>{var Y,P;if(B>=x.length)return;const ce=((P=(Y=x[B].data)==null?void 0:Y.value)==null?void 0:P.data)||[];K.push({bindingPattern:D,queues:ce.map(M=>({name:M.name})),totalQueues:ce.length})}),K}),T=v(()=>E.value.reduce((K,D)=>K+D.totalQueues,0)),N=v(()=>A.value.length),w=v(()=>S.isPending.value),z=v(()=>_.isPending.value),se=v(()=>$.isPending.value),ne=v(()=>{var K;return ft((K=S.error.value)==null?void 0:K.error)}),te=v(()=>{var K;return ft((K=_.error.value)==null?void 0:K.error)}),W=v(()=>{var K;return ft((K=$.error.value)==null?void 0:K.error)}),ee=()=>{d.value=!0},fe=(K,D)=>{h.value={name:K,bindingPattern:D},c.value=!0},Oe=()=>{u.value=!0},Ue=()=>{y(),x.forEach((K,D)=>{D<A.value.length&&K.refetch()})},ue=async K=>{await S.mutateAsync({ns:o.value,topic:r.value,queue:K.queueName,params:{bindingPattern:String(K.bindingPattern)}})},ve=async()=>{h.value&&await _.mutateAsync({ns:o.value,topic:r.value,queue:h.value.name,params:{bindingPattern:h.value.bindingPattern}})},Re=async()=>{await $.mutateAsync({ns:o.value,topic:r.value})},_e=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:w.value,loading:w.value,handler:ee,tooltip:"Bind a queue to this exchange with a binding pattern"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:V.value,loading:V.value,handler:Ue,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:se.value,loading:se.value,handler:Oe,tooltip:"Delete this exchange and all its bindings"}]);return Dt(()=>{if(!l.value){n.setPageHeader({title:"Invalid Exchange",subtitle:"Exchange name and namespace are required",icon:"bi bi-exclamation-triangle"}),n.setPageActions([]),n.setErrorState({message:"Invalid route parameters"});return}n.setPageHeader({title:`Topic Exchange: ${r.value}`,subtitle:`Namespace: ${o.value} • Routes messages based on routing key patterns`,icon:"bi bi-hash"}),n.setPageActions(_e.value),n.setLoadingState(V.value),j.value?(n.setErrorState(R.value),n.setEmptyState(!1)):!V.value&&N.value===0?(n.setErrorState(null),n.setEmptyState(!0,{icon:"bi bi-hash",title:"No Queue Bindings",message:"This topic exchange has no queue bindings. Bind a queue with a binding pattern to start routing messages.",actionLabel:"Bind Queue",actionHandler:ee})):(n.setErrorState(null),n.setEmptyState(!1))}),gs(()=>{l.value||s.push("/exchanges")}),(K,D)=>{var B,J;return k(),I("div",null,[Ae(xs,null,{default:et(()=>[!V.value&&!j.value&&N.value>0?(k(),I("div",$j,[a("div",Tj,[a("div",xj,[D[3]||(D[3]=a("div",{class:"stat-icon binding-patterns"},[a("i",{class:"bi bi-hash","aria-hidden":"true"})],-1)),a("div",Oj,[a("div",Nj,F(N.value),1),a("div",kj," Binding "+F(N.value===1?"Pattern":"Patterns"),1)])]),a("div",Pj,[D[4]||(D[4]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",Dj,[a("div",Rj,F(T.value),1),a("div",Ij," Bound "+F(T.value===1?"Queue":"Queues"),1)])])])])):me("",!0),!V.value&&!j.value&&E.value.length>0?(k(),I("div",Mj,[D[10]||(D[10]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"}),X(" Queue Bindings ")],-1)),a("div",qj,[(k(!0),I($e,null,At(E.value,ce=>(k(),I("div",{key:ce.bindingPattern,class:"binding-card"},[a("div",Lj,[a("div",Fj,[a("div",Vj,[D[5]||(D[5]=a("i",{class:"bi bi-hash","aria-hidden":"true"},null,-1)),a("span",Qj,F(ce.bindingPattern),1)]),a("div",jj,F(ce.totalQueues)+" "+F(ce.totalQueues===1?"queue":"queues"),1)]),a("div",Bj,[D[6]||(D[6]=a("i",{class:"bi bi-info-circle","aria-hidden":"true"},null,-1)),a("span",Uj," Matches routing keys like: "+F(p(ce.bindingPattern)),1)])]),ce.queues.length>0?(k(),I("div",Kj,[(k(!0),I($e,null,At(ce.queues,Y=>(k(),I("div",{key:`${ce.bindingPattern}-${Y.name}`,class:"queue-item"},[a("div",Hj,[D[7]||(D[7]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",Gj,F(Y.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:z.value,"aria-label":`Unbind queue ${Y.name} from binding pattern ${ce.bindingPattern}`,onClick:P=>fe(Y.name,ce.bindingPattern)},D[8]||(D[8]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)]),8,Wj)]))),128))])):(k(),I("div",zj,D[9]||(D[9]=[a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1),a("span",null,"No queues bound to this pattern",-1)])))]))),128))])])):me("",!0)]),_:1}),Ae(Ji,{"is-visible":u.value,"is-loading":se.value,error:W.value,title:"Delete Topic Exchange",message:`Are you sure you want to delete the topic exchange '${r.value}'? This will remove all queue bindings and cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:Re,onClose:D[0]||(D[0]=ce=>u.value=!1)},null,8,["is-visible","is-loading","error","message"]),Ae(zd,{"is-visible":d.value,"is-loading":w.value,error:ne.value,"exchange-type":"topic","exchange-name":r.value,namespace:o.value,onConfirm:ue,onCancel:D[1]||(D[1]=ce=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),Ae(Yd,{"is-visible":c.value,"is-loading":z.value,error:te.value,"queue-name":((B=h.value)==null?void 0:B.name)||"","binding-pattern":((J=h.value)==null?void 0:J.bindingPattern)||"","exchange-type":"topic",onConfirm:ve,onCancel:D[2]||(D[2]=ce=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name","binding-pattern"])])}}}),Jj=at(Zj,[["__scopeId","data-v-74aca265"]]),Xj={key:0,class:"stats-overview"},eB={class:"stats-grid"},tB={class:"stat-card"},sB={class:"stat-content"},nB={class:"stat-value"},iB={class:"stat-label"},rB={key:1,class:"exchange-info"},aB={class:"info-card"},oB={class:"info-description"},lB={key:2,class:"queues-section"},uB={class:"queues-grid"},cB={class:"queue-header"},dB={class:"queue-info"},fB={class:"queue-name"},hB=["disabled","aria-label","onClick"],pB=ze({__name:"ExchangeFanoutView",setup(e){const t=Ts(),s=bs(),n=os(),i=kn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!(r.value&&o.value)),u=we(!1),d=we(!1),c=we(!1),h=we(null),{data:p,isLoading:m,error:g,refetch:C}=hb(o,r,{query:{enabled:l}}),y=Md({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Dc(o.value,r.value)}),d.value=!1},onError:ue=>{console.error("Failed to bind queue:",ue)}}}),A=yT({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Dc(o.value,r.value)}),c.value=!1,h.value=null},onError:ue=>{console.error("Failed to unbind queue:",ue)}}}),x=Id({mutation:{onSuccess:()=>{s.push("/exchanges")},onError:ue=>{console.error("Failed to delete exchange:",ue)}}}),S=v(()=>m.value),_=v(()=>!!g.value),$=v(()=>ft(g.value)),V=v(()=>{var ve;return(((ve=p.value)==null?void 0:ve.data)||[]).map(Re=>({name:Re.name}))}),j=v(()=>V.value.length),R=v(()=>y.isPending.value),E=v(()=>A.isPending.value),T=v(()=>x.isPending.value),N=v(()=>{var ue;return ft((ue=y.error.value)==null?void 0:ue.error)}),w=v(()=>{var ue;return ft((ue=A.error.value)==null?void 0:ue.error)}),z=v(()=>{var ue;return ft((ue=x.error.value)==null?void 0:ue.error)}),se=()=>{d.value=!0},ne=ue=>{h.value=ue,c.value=!0},te=()=>{u.value=!0},W=()=>{C()},ee=async ue=>{await y.mutateAsync({ns:o.value,fanout:r.value,queue:ue.queueName})},fe=async()=>{h.value&&await A.mutateAsync({ns:o.value,fanout:r.value,queue:h.value})},Oe=async()=>{await x.mutateAsync({ns:o.value,fanout:r.value})},Ue=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:R.value,loading:R.value,handler:se,tooltip:"Bind a queue to this fanout exchange"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:S.value,loading:S.value,handler:W,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:T.value,loading:T.value,handler:te,tooltip:"Delete this exchange and all its bindings"}]);return Dt(()=>{if(!l.value){n.setPageHeader({title:"Invalid Exchange",subtitle:"Exchange name and namespace are required",icon:"bi bi-exclamation-triangle"}),n.setPageActions([]),n.setErrorState({message:"Invalid route parameters"});return}n.setPageHeader({title:`Fanout Exchange: ${r.value}`,subtitle:`Namespace: ${o.value} • Broadcasts messages to all bound queues`,icon:"bi bi-arrows-angle-expand"}),n.setPageActions(Ue.value),n.setLoadingState(S.value),_.value?(n.setErrorState($.value),n.setEmptyState(!1)):!S.value&&j.value===0?(n.setErrorState(null),n.setEmptyState(!0,{icon:"bi bi-arrows-angle-expand",title:"No Queue Bindings",message:"This fanout exchange has no queue bindings. Bind a queue to start broadcasting messages.",actionLabel:"Bind Queue",actionHandler:se})):(n.setErrorState(null),n.setEmptyState(!1))}),gs(()=>{l.value||s.push("/exchanges")}),(ue,ve)=>(k(),I("div",null,[Ae(xs,null,{default:et(()=>[!S.value&&!_.value&&j.value>0?(k(),I("div",Xj,[a("div",eB,[a("div",tB,[ve[3]||(ve[3]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",sB,[a("div",nB,F(j.value),1),a("div",iB," Bound "+F(j.value===1?"Queue":"Queues"),1)])]),ve[4]||(ve[4]=a("div",{class:"stat-card"},[a("div",{class:"stat-icon broadcast"},[a("i",{class:"bi bi-broadcast","aria-hidden":"true"})]),a("div",{class:"stat-content"},[a("div",{class:"stat-value"},"100%"),a("div",{class:"stat-label"},"Message Delivery")])],-1))])])):me("",!0),!S.value&&!_.value&&j.value>0?(k(),I("div",rB,[a("div",aB,[ve[7]||(ve[7]=a("div",{class:"info-header"},[a("i",{class:"bi bi-info-circle","aria-hidden":"true"}),a("h3",null,"How Fanout Exchange Works")],-1)),a("p",oB,[ve[5]||(ve[5]=X(" Fanout exchanges broadcast every message to all bound queues. When you publish a message to this exchange, it will be delivered to ")),a("strong",null,"all "+F(j.value)+" bound queue"+F(j.value===1?"":"s"),1),ve[6]||(ve[6]=X(" regardless of routing keys. "))])])])):me("",!0),!S.value&&!_.value&&V.value.length>0?(k(),I("div",lB,[ve[11]||(ve[11]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-box","aria-hidden":"true"}),X(" Bound Queues ")],-1)),a("div",uB,[(k(!0),I($e,null,At(V.value,Re=>(k(),I("div",{key:Re.name,class:"queue-card"},[a("div",cB,[a("div",dB,[ve[8]||(ve[8]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",fB,F(Re.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:E.value,"aria-label":`Unbind queue ${Re.name}`,onClick:_e=>ne(Re.name)},ve[9]||(ve[9]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)]),8,hB)]),ve[10]||(ve[10]=a("div",{class:"queue-status"},[a("div",{class:"status-indicator active"},[a("i",{class:"bi bi-check-circle-fill","aria-hidden":"true"}),a("span",null,"Receiving all messages")])],-1))]))),128))])])):me("",!0)]),_:1}),Ae(Ji,{"is-visible":u.value,"is-loading":T.value,error:z.value,title:"Delete Fanout Exchange",message:`Are you sure you want to delete the fanout exchange '${r.value}'? This will remove all queue bindings and cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:Oe,onClose:ve[0]||(ve[0]=Re=>u.value=!1)},null,8,["is-visible","is-loading","error","message"]),Ae(zd,{"is-visible":d.value,"is-loading":R.value,error:N.value,"exchange-type":"fanout","exchange-name":r.value,namespace:o.value,onConfirm:ee,onCancel:ve[1]||(ve[1]=Re=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),Ae(Yd,{"is-visible":c.value,"is-loading":E.value,error:w.value,"queue-name":h.value||"","exchange-type":"fanout",onConfirm:fe,onCancel:ve[2]||(ve[2]=Re=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name"])]))}}),mB=at(pB,[["__scopeId","data-v-000c0a36"]]),gB={key:0,class:"namespace-stats"},vB={class:"stats-grid"},bB={class:"stat-card total"},yB={class:"stat-content"},_B={class:"stat-value"},EB={class:"stat-card direct"},wB={class:"stat-content"},CB={class:"stat-value"},AB={class:"stat-card fanout"},SB={class:"stat-content"},$B={class:"stat-value"},TB={class:"stat-card topic"},xB={class:"stat-content"},OB={class:"stat-value"},NB={key:1,class:"namespace-info"},kB={class:"info-card"},PB={class:"info-header"},DB={class:"info-description"},RB={key:2,class:"grid grid-cols-2 gap-6"},IB=ze({__name:"NamespaceExchangesView",setup(e){const t=Ts(),s=bs(),n=os(),i=kn(),r=v(()=>String(t.params.ns)),o=v(()=>!!r.value),l=we(!1),u=we(!1),d=we(null),{data:c,isLoading:h,isError:p,error:m,refetch:g}=HI(r,{query:{enabled:o}}),C=Id({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:$i(r)}),l.value=!1,d.value=null},onError:ue=>{console.error("Failed to delete fanout exchange:",ue)}}}),y=qd({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:$i(r)}),l.value=!1,d.value=null},onError:ue=>{console.error("Failed to delete direct exchange:",ue)}}}),A=Fd({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:$i(r)}),l.value=!1,d.value=null},onError:ue=>{console.error("Failed to delete topic exchange:",ue)}}}),x=Md({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:$i(r)}),u.value=!1},onError:ue=>{console.error("Failed to create fanout exchange:",ue)}}}),S=Ld({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:$i(r)}),u.value=!1},onError:ue=>{console.error("Failed to create direct exchange:",ue)}}}),_=Vd({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:$i(r)}),u.value=!1},onError:ue=>{console.error("Failed to create topic exchange:",ue)}}}),$=v(()=>C.isPending.value||y.isPending.value||A.isPending.value),V=v(()=>x.isPending.value||S.isPending.value||_.isPending.value),j=v(()=>{var ue,ve,Re;return ft(((ue=x.error.value)==null?void 0:ue.error)||((ve=S.error.value)==null?void 0:ve.error)||((Re=_.error.value)==null?void 0:Re.error))}),R=v(()=>{var ue;return((ue=c.value)==null?void 0:ue.data)??[]}),E=v(()=>r.value?R.value.filter(ue=>ue.ns===r.value):[]),T=v(()=>ft(m.value)),N=v(()=>{const ue={total:E.value.length,direct:0,fanout:0,topic:0};return E.value.forEach(ve=>{switch(ve.type){case Le.DIRECT:ue.direct++;break;case Le.FANOUT:ue.fanout++;break;case Le.TOPIC:ue.topic++;break}}),ue}),w=ue=>{d.value=ue,l.value=!0},z=()=>{u.value=!0},se=ue=>{console.log("Binding queue to:",ue.name)},ne=ue=>{console.log("Unbinding queue from:",ue.exchange.name,"queue:",ue.queueName)},te=ue=>{console.log("Publishing message to:",ue.name)},W=async()=>{if(!d.value)return;const{type:ue,name:ve,ns:Re}=d.value;try{switch(ue){case Le.FANOUT:await C.mutateAsync({ns:Re,fanout:ve});break;case Le.DIRECT:await y.mutateAsync({ns:Re,direct:ve});break;case Le.TOPIC:await A.mutateAsync({ns:Re,topic:ve});break;default:throw new Error(`Unsupported exchange type: ${ue}`)}}catch(_e){console.error("Failed to delete exchange:",_e)}},ee=async ue=>{const{name:ve,type:Re,ns:_e,queueName:K,routingKey:D,bindingPattern:B}=ue;try{switch(Re){case Le.FANOUT:await x.mutateAsync({ns:_e,fanout:ve,queue:K});break;case Le.DIRECT:await S.mutateAsync({ns:_e,direct:ve,queue:K,params:{routingKey:String(D)}});break;case Le.TOPIC:await _.mutateAsync({ns:_e,topic:ve,queue:K,params:{bindingPattern:String(B)}});break;default:throw new Error(`Unsupported exchange type: ${Re}`)}}catch(J){console.error("Failed to create exchange:",J)}},fe=ue=>{const ve={exchange:ue.name,ns:ue.ns};return ue.type==Le.DIRECT?{name:"Direct Exchange",params:ve}:ue.type==Le.TOPIC?{name:"Topic Exchange",params:ve}:{name:"Fanout Exchange",params:ve}},Oe=ue=>{const ve=fe(ue);s.push(ve)},Ue=v(()=>[{id:"create-exchange",label:"Create Exchange",icon:"bi bi-plus-lg",variant:"primary",disabled:V.value,loading:V.value,handler:z,tooltip:"Create a new exchange by binding a queue to it"},{id:"refresh-exchanges",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:h.value,loading:h.value,handler:()=>g(),tooltip:"Refresh exchanges list"}]);return Dt(()=>{if(!o.value){n.setPageHeader({title:"Invalid Namespace",subtitle:"Namespace parameter is required",icon:"bi bi-exclamation-triangle"}),n.setPageActions([]),n.setErrorState({message:"Invalid route parameters"});return}n.setPageHeader({title:`Exchanges in "${r.value}"`,subtitle:`View and manage exchanges in the ${r.value} namespace`,icon:"bi bi-diagram-3"}),n.setPageActions(Ue.value),n.setLoadingState(h.value),p.value?(n.setErrorState(T.value),n.setEmptyState(!1)):!h.value&&E.value.length===0?(n.setErrorState(null),n.setEmptyState(!0,{icon:"bi bi-diagram-3",title:"No Exchanges Found",message:`No exchanges are currently configured in the "${r.value}" namespace. Create your first exchange to start routing messages.`,actionLabel:"Create Exchange",actionHandler:z})):(n.setErrorState(null),n.setEmptyState(!1))}),(ue,ve)=>{var Re;return k(),I("div",null,[Ae(xs,null,{default:et(()=>[!O(h)&&!O(p)&&E.value.length>0?(k(),I("div",gB,[a("div",vB,[a("div",bB,[ve[3]||(ve[3]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"})],-1)),a("div",yB,[a("div",_B,F(N.value.total),1),ve[2]||(ve[2]=a("div",{class:"stat-label"},"Total Exchanges",-1))])]),a("div",EB,[ve[5]||(ve[5]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-arrow-right","aria-hidden":"true"})],-1)),a("div",wB,[a("div",CB,F(N.value.direct),1),ve[4]||(ve[4]=a("div",{class:"stat-label"},"Direct",-1))])]),a("div",AB,[ve[7]||(ve[7]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-arrows-angle-expand","aria-hidden":"true"})],-1)),a("div",SB,[a("div",$B,F(N.value.fanout),1),ve[6]||(ve[6]=a("div",{class:"stat-label"},"Fanout",-1))])]),a("div",TB,[ve[9]||(ve[9]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-hash","aria-hidden":"true"})],-1)),a("div",xB,[a("div",OB,F(N.value.topic),1),ve[8]||(ve[8]=a("div",{class:"stat-label"},"Topic",-1))])])])])):me("",!0),!O(h)&&!O(p)&&E.value.length>0?(k(),I("div",NB,[a("div",kB,[a("div",PB,[ve[10]||(ve[10]=a("i",{class:"bi bi-folder-fill","aria-hidden":"true"},null,-1)),a("h3",null,"Namespace: "+F(r.value),1)]),a("p",DB," This namespace contains "+F(N.value.total)+" exchange"+F(N.value.total===1?"":"s")+". Exchanges in this namespace are isolated from other namespaces and can be managed independently. ",1)])])):me("",!0),E.value.length>0?(k(),I("div",RB,[(k(!0),I($e,null,At(E.value,_e=>{var K,D;return k(),gt(wb,{key:`${_e.name}-${_e.ns}`,exchange:_e,"is-deleting":$.value&&((K=d.value)==null?void 0:K.name)===_e.name&&((D=d.value)==null?void 0:D.ns)===_e.ns,onDelete:w,onViewDetails:Oe,onBindQueue:se,onUnbindQueue:ne,onPublishMessage:te},null,8,["exchange","is-deleting"])}),128))])):me("",!0)]),_:1}),Ae(Ji,{"is-visible":l.value,"is-loading":$.value,title:"Delete Exchange",message:`Are you sure you want to delete the exchange '${(Re=d.value)==null?void 0:Re.name}'? This action cannot be undone.`,"confirm-text":"Delete Exchange",variant:"danger",onConfirm:W,onClose:ve[0]||(ve[0]=_e=>{l.value=!1,d.value=null})},null,8,["is-visible","is-loading","message"]),Ae(_b,{"is-visible":u.value,"is-loading":V.value,error:j.value,onConfirm:ee,onCancel:ve[1]||(ve[1]=_e=>u.value=!1)},null,8,["is-visible","is-loading","error"])])}}}),MB=at(IB,[["__scopeId","data-v-0bac120d"]]),qB=[{path:"/ns",name:"Namespaces",component:ty,meta:{title:"NamespacesView",breadcrumb:"NamespacesView"}},{path:"/ns/:ns/queues",name:"Namespace Queues",component:OL,meta:{title:"Namespace Queues",breadcrumb:"Namespace Queues"}},{path:"/ns/:ns/queues/:queue",name:"Queue",component:f4,meta:{title:"Queue Details",breadcrumb:"Queue Details"}},{path:"/ns/:ns/queues/:queue/pending-messages",name:"Pending Messages",component:X2,meta:{title:"Queue Pending Messages"}},{path:"/ns/:ns/queues/:queue/acknowledged-messages",name:"Acknowledged Messages",component:OI,meta:{title:"Queue Acknowledged Messages"}},{path:"/ns/:ns/queues/:queue/dead-lettered-messages",name:"Dead-Lettered Messages",component:PI,meta:{title:"Queue Dead-Lettered Messages"}},{path:"/ns/:ns/queues/:queue/scheduled-messages",name:"Scheduled Messages",component:m4,meta:{title:"Queue Scheduled Messages"}},{path:"/ns/:ns/queues/:queue/messages",name:"Messages",component:b4,meta:{title:"Queue Messages"}},{path:"/ns/:ns/exchanges",name:"Namespace Exchanges",component:MB,meta:{title:"Namespace Exchanges",breadcrumb:"Namespace Exchanges"}},{path:"/ns/:ns/exchanges/direct/:exchange",name:"Direct Exchange",component:Sj,meta:{title:"Direct Exchange Details",breadcrumb:"Direct Exchange Details"}},{path:"/ns/:ns/exchanges/topic/:exchange",name:"Topic Exchange",component:Jj,meta:{title:"Topic Exchange Details",breadcrumb:"Topic Exchange Details"}},{path:"/ns/:ns/exchanges/fanout/:exchange",name:"Fanout Exchange",component:mB,meta:{title:"Fanout Exchange Details",breadcrumb:"Fanout Exchange Details"}}],Gc=[...Uo,...qB],LB={key:0,"aria-label":"breadcrumb",class:"breadcrumb-navigation"},FB={class:"breadcrumb-container"},VB={class:"breadcrumb-content"},QB={class:"breadcrumb-list"},jB=["aria-current"],BB={key:0,class:"breadcrumb-separator"},UB=["title","onClick"],KB={class:"breadcrumb-text"},HB=["title"],GB={class:"breadcrumb-text"},WB=ze({__name:"BreadcrumbsPanel",setup(e){const t=Ts(),s=bs(),n=v(()=>{try{const h=[],p=t.path,m=t.params,g=i(p,m);return g.forEach((C,y)=>{const A=u(C.pattern);if(!A)return;const x=y===g.length-1,S=d(A);S&&h.push({title:S,to:x?void 0:C.actualPath,active:x})}),h}catch(h){return console.warn("Error building breadcrumbs:",h),[]}});function i(h,p){const m=[],g=h.split("/").filter(y=>y);let C="";h!=="/"&&u("/")&&m.push({pattern:"/",actualPath:"/"});for(let y=0;y<g.length;y++){C+="/"+g[y];const A=r(C,p);A&&m.push({pattern:A,actualPath:C})}return m}function r(h,p){const m=[...Gc].sort((g,C)=>{const y=o(g.path);return o(C.path)-y});for(const g of m)if(l(h,g.path,p))return g.path;return null}function o(h){const p=h.split("/").filter(g=>g);let m=p.length*10;for(const g of p)g.startsWith(":")&&(m-=5);return m}function l(h,p,m){const g=h.split("/").filter(y=>y),C=p.split("/").filter(y=>y);if(g.length!==C.length)return!1;for(let y=0;y<C.length;y++){const A=C[y],x=g[y];if(A.startsWith(":")){const S=A.substring(1);if(m[S]!==x)return!1}else if(A!==x)return!1}return!0}function u(h){return Gc.find(p=>p.path===h)}function d(h){var p;return String(((p=h.meta)==null?void 0:p.title)||h.name)}function c(h){try{s.push(h)}catch(p){console.error("Navigation error:",p)}}return(h,p)=>n.value.length>0?(k(),I("nav",LB,[a("div",FB,[a("div",VB,[p[1]||(p[1]=a("div",{class:"breadcrumb-home"},[a("i",{class:"bi bi-house-fill"})],-1)),a("ol",QB,[(k(!0),I($e,null,At(n.value,(m,g)=>(k(),I("li",{key:`${m.title}-${g}`,class:De(["breadcrumb-item",{"breadcrumb-item-active":m.active,"breadcrumb-item-clickable":!m.active&&m.to}]),"aria-current":m.active?"page":void 0},[g>0?(k(),I("div",BB,p[0]||(p[0]=[a("i",{class:"bi bi-chevron-right"},null,-1)]))):me("",!0),!m.active&&m.to?(k(),I("button",{key:1,type:"button",class:"breadcrumb-link",title:`Navigate to ${m.title}`,onClick:C=>c(m.to)},[a("span",KB,F(m.title),1)],8,UB)):(k(),I("div",{key:2,class:"breadcrumb-current",title:m.title},[a("span",GB,F(m.title),1)],8,HB))],10,jB))),128))])])])])):me("",!0)}}),zB=at(WB,[["__scopeId","data-v-f3d4f943"]]),YB="9.0.0-next.3",ZB={version:YB},JB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAAA2CAYAAACoXOUdAAAACXBIWXMAAC4jAAAuIwF4pT92AAACaklEQVR42u2cv2sUQRzF35MLXhEUNahFRMSzFUt7m5Ar9A+wCNqaKghpRIKFQixsrIyFpVgkUYKdrRAEC4sVDFhE0CIKomCh4WvhHkzGmbkfu9ndkPfg4Oa7b/a7+9nvzs4ezMH+KUMu26kXCMjzLOexrplZxJul+qb8fXJmiZy+dy7k9XOa2aIF5HiHyXnWDR6AVJkEW7AFWxJswZYEW7AFWxJswZYEW7AFWxJswZYEW7AlwRZswZYEW7AlwRZswZYEW7AlwRZsSbAFW5IkSZKk/SY27YDMbAlAm+TVAvuYA9AC8MfbtE3yQZ0nZ73lZgHd3qWclxPL5H7Gtg15TiH9SvifRfose+3NAZbmBdVy/BvO99MAxgB8q+H6ny9p/v8KwHO/shP+3x6D4wAOAfjixduR/u8HrmwvlhWtrlEru8S79U4Rv5k9ilRwqrI3I/v/2MhFp/6K2n3/up4alyLet55npeRny+JegN0asd8WgB8A1pzYGQDdRB933BsHcHLE3BuB2NdA7KaZzfw3/SJP1Q47VpX5AfpTxAkAWyRnHW83BZvkOXfMHqW6/f300UEAk02t7BuB7dP5J3Zr33WanYrG9OuB8DuS684FYaDfJQBXGgGb5MPAAU6kYAOYr+GYlwKx+wDW+/S7kBfU7F4bs3uqslJmAHwHcNiJ3QJwAsDTBs6qXgL4TPJaKbBJrlb2uwL5JHBC8wDGSb5p4ORjyn+YtwpevQ+B8GOS9wLe107zaEm5Oj3obs6I98guw/3Ue+lx2m23XXQYCT0Uj0W8Fwfc58IQuWI5OzVU8iSkRozfmf4jqmL9BR+MejvoqIOKAAAAAElFTkSuQmCC",XB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW0AAADXCAYAAADRJwCFAAAACXBIWXMAAC4jAAAuIwF4pT92AAAFnElEQVR42u3cP2icZRzA8d9zCUEQa65KBx1yqUUz2MVJQcHBUTo7Fgw4WJvrIMYtBaEdOlxKt7aQLqLg6CSUIkQUBxcVKi3tBRwrdy2d2rt73FzMe9G379vc5T6f9eH9c8/7vt8cx5M3dbq9HAVSjpNry81rRePjtt3DdrvVfCcqVtf5dLq9WxFxrGCWVtutxavVn+/4/Zb/rOmndmvxrTrneq/7ZkKuaem5H2ez27ucI1an5R6s4pp27jx4LRrDm1GDdquZCs93p38ucl7frzl5suvZ/zEiv1lmx40AYGqINoBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAMg2gCiDYBoAyDaAKINgGgDINoAog2AaAOINgCiDYBoA4g2AKINgGgDiDYAog2AaAOINgCiDYBoA4g2AKINgGgDiDYAog2AaAOINgCiDYBoA4g2AKINgGgDiDYAog2AaAOINgCiDYBoA4g2AKINgGgDiDYAog2AaAOINgCiDYBoA4g2AKINgGgDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0y6ZAqjOpT8fvFA0NnjUmJ9fGA2qPua9l5+7v5HSwOzPhvlOt5cLi57jZE6xVceB262mPxg1GXdNI9Jqu7V49YmPcbf/UYpRc9fBRmyvLR3ensW5HwyG9woHG8MY1JDWw93+uxHxfb33zSR+5UznI+f1OhsziXMyL3GUe2DypznSK7sN5VGcjYhtkwTVa5gCANEGQLQBRBsA0QaganuuHim7bGavZWemnhn0e0pxueqdDuaGt5/CuV9qt5qflGrBTv+zyPl8UQvKLkHt7PTP1f2hJ3FpsiV/lL2Zj5mF/+3G2lJz0zRMj7FfPlM6315a/LzyY+70z41bf+7nEYApItoAog2AaAOINgCiDUDlDtSSv/14jWJO+e0zS4d/qP58082IvDKNc51znD2z3NyY1msao7mV9tFDf8gDvmkDINoAog2AaAMg2gCiDcBkOWhv+fu2aCCl1FlbWrxeZqedbu9WRDzVt9rlNFqtZynhwZFynFxbbl6bolM+1en2TtUwE6Vfb8oBjHY9AchXOt3elaLRJ3iH7fuFI6P8jcsNTDs/jwCINgCiDSDaAIg2AJX7L0v+fqvp2K8/zQ+aU7x46U5vqcy2A/fJRMoRb2ze7fUrfyiefXz94yNHHpbcvK7n5dWIWNhtIKX8yN0g2v9ot5rH6zjwPqwlvjBoxIWS2952q0ygFKdzxOmqd/v44TMrEVHq1aw1Pi+F/yswinzHzTA7/DwCINoAiDaAaAMg2gBUbt4UAFTr4q2/Dg0XUuFKorJv8JyxaKcvU8o/l9lyNIr7jUY8v9vYXBredYvWKKcP6rkd8heFQ43hS1FyyR9ERAwX0vGU0/a4O1C093xG83drral69zIR0V5e/LqO/Xa6va8K/05EOhoRN8w+k8hv2gCiDYBoA4g2AKINQOWs055UozixudN7r8ymOZs+qF3O651ub333sfGbjn3L6R4P8MxEO6fY6nR7W9XHdW6lffRQ5Wt6U2qcyDmvzPpzsQ+v8I3RKP06TefLbPHzCPzroUj3zQKiDYBoA4g2AKINgGgDzIxkCgAmR6fb/zAiX/FNG+AAEG0A0QZAtAFEGwDRBqByXs0KMFHfpPMvOcVG0fjf8tFYjp6FvpMAAAAASUVORK5CYII=",eU={class:"app"},tU={key:0,class:"loading-screen"},sU={class:"loading-container"},nU={class:"loading-content"},iU={class:"brand-section"},rU={class:"brand-logo loading-logo"},aU=["src"],oU={key:1,class:"error-screen"},lU={class:"error-container"},uU={class:"error-content"},cU={class:"error-message"},dU={key:2,class:"app-layout"},fU={class:"app-header"},hU={class:"header-container"},pU={class:"header-content"},mU={class:"brand-section"},gU={class:"brand-logo"},vU=["src"],bU={class:"app-navigation",role:"navigation","aria-label":"Main navigation"},yU={class:"nav-list nav-desktop",role:"tablist"},_U={class:"nav-label"},EU={key:0,class:"nav-indicator"},wU={class:"nav-mobile"},CU={class:"mobile-nav-dropdown"},AU={class:"mobile-nav-toggle",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},SU={class:"current-page"},$U={class:"mobile-nav-menu"},TU={class:"app-main",role:"main"},xU={class:"content-wrapper"},OU={class:"content-container"},NU={class:"app-footer",role:"contentinfo"},kU={class:"footer-container"},PU={class:"footer-content"},DU={class:"footer-info"},RU={class:"version-info"},IU={class:"version"},MU=ze({__name:"App",setup(e){const t=we(!0),s=we(null),n=bs(),i=v(()=>ZB.version),r=async()=>{try{t.value=!0,s.value=null,await new Promise(u=>setTimeout(u,1500))}catch(u){console.error("App initialization failed:",u),s.value="Failed to initialize application"}finally{t.value=!1}};gs(()=>{r()});const o=u=>n.currentRoute.value.name===u,l=()=>{r()};return(u,d)=>{var p;const c=ih("RouterLink"),h=ih("RouterView");return k(),I("div",eU,[t.value?(k(),I("div",tU,[a("div",sU,[a("div",nU,[a("div",iU,[a("div",rU,[a("img",{src:O(XB),alt:"RedisSMQ Logo",class:"logo-image"},null,8,aU)])]),d[0]||(d[0]=a("div",{class:"loading-animation"},[a("div",{class:"spinner"}),a("p",{class:"loading-text"},"Initializing application...")],-1))])])])):s.value?(k(),I("div",oU,[a("div",lU,[a("div",uU,[d[2]||(d[2]=a("div",{class:"error-icon"},"⚠️",-1)),d[3]||(d[3]=a("h2",{class:"error-title"},"Application Error",-1)),a("p",cU,F(s.value),1),a("button",{class:"btn btn-primary btn-retry",onClick:l},d[1]||(d[1]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),X(" Try Again ")]))])])])):(k(),I("div",dU,[a("header",fU,[a("div",hU,[a("div",pU,[a("div",mU,[a("div",gU,[a("img",{src:O(JB),alt:"RedisSMQ Logo",class:"logo-image"},null,8,vU)]),d[4]||(d[4]=a("div",{class:"brand-info"},[a("h1",{class:"brand-title"},"RedisSMQ"),a("span",{class:"brand-subtitle"},"Web UI")],-1))])]),a("nav",bU,[a("ul",yU,[(k(!0),I($e,null,At(O(Uo),m=>(k(),I("li",{key:m.name,class:"nav-item",role:"presentation"},[Ae(c,{to:{name:m.name},class:De(["nav-link",{"nav-link-active":o(m.name)}]),"aria-current":o(m.name)?"page":void 0},{default:et(()=>[a("span",_U,F(m.name),1),o(m.name)?(k(),I("span",EU)):me("",!0)]),_:2},1032,["to","class","aria-current"])]))),128))]),a("div",wU,[a("div",CU,[a("button",AU,[a("span",SU,F(((p=O(Uo).find(m=>o(m.name)))==null?void 0:p.name)||"Navigation"),1),d[5]||(d[5]=a("i",{class:"bi bi-chevron-down toggle-icon"},null,-1))]),a("ul",$U,[(k(!0),I($e,null,At(O(Uo),m=>(k(),I("li",{key:m.name},[Ae(c,{to:{name:m.name},class:De(["mobile-nav-link",{"mobile-nav-link-active":o(m.name)}])},{default:et(()=>[X(F(m.name),1)]),_:2},1032,["to","class"])]))),128))])])])])])]),a("main",TU,[Ae(zB),a("div",xU,[a("div",OU,[(k(),gt(Hw,null,{default:et(()=>[Ae(h,null,{default:et(({Component:m,route:g})=>[(k(),gt(Rl(m),{key:g.path}))]),_:1})]),fallback:et(()=>d[6]||(d[6]=[a("div",{class:"page-loading"},[a("div",{class:"loading-content"},[a("div",{class:"spinner-small"}),a("p",{class:"loading-text"},"Loading page...")])],-1)])),_:1}))])])]),a("footer",NU,[a("div",kU,[a("div",PU,[a("div",DU,[a("div",RU,[a("span",IU,"RedisSMQ Web UI "+F(i.value),1),d[7]||(d[7]=a("span",{class:"separator"},"•",-1)),d[8]||(d[8]=a("span",{class:"license"},[X(" Licensed under "),a("a",{href:"https://github.com/weyoss/redis-smq/blob/master/LICENSE",target:"_blank",rel:"noopener noreferrer",class:"license-link"}," MIT License ")],-1))])]),d[9]||(d[9]=xn('<div class="footer-links" data-v-3c2dc913><a href="https://github.com/weyoss/redis-smq" target="_blank" rel="noopener noreferrer" class="footer-link" aria-label="View on GitHub" data-v-3c2dc913><i class="bi bi-github me-1" data-v-3c2dc913></i> GitHub </a><a href="https://github.com/weyoss/redis-smq/blob/master/packages/redis-smq/docs/README.md" target="_blank" rel="noopener noreferrer" class="footer-link" data-v-3c2dc913><i class="bi bi-book me-1" data-v-3c2dc913></i> Documentation </a></div>',1))])])])]))])}}}),qU=at(MU,[["__scopeId","data-v-3c2dc913"]]),LU={class:"not-found-page"},FU=ze({__name:"NotFoundView",setup(e){const t=bs();function s(){t.push({name:"Home"})}function n(){window.history.length>1?t.go(-1):s()}function i(){t.push({name:"Queues"})}return(r,o)=>(k(),I("div",LU,[a("div",{class:"not-found-container"},[a("main",{class:"not-found-content"},[o[3]||(o[3]=xn('<div class="error-illustration" data-v-d6cdc787><div class="error-number" data-v-d6cdc787>404</div><div class="error-icon" data-v-d6cdc787>🔍</div></div><div class="error-message" data-v-d6cdc787><h1 class="error-title" data-v-d6cdc787>Page Not Found</h1><p class="error-subtitle" data-v-d6cdc787> Sorry, we couldn't find the page you're looking for. </p><p class="error-description" data-v-d6cdc787> The page might have been moved, deleted, or you may have entered an incorrect URL. </p></div>',2)),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary btn-home",onClick:s},o[0]||(o[0]=[a("i",{class:"bi bi-house-fill me-2"},null,-1),X(" Go to Home ")])),a("button",{class:"btn btn-outline-secondary btn-back",onClick:n},o[1]||(o[1]=[a("i",{class:"bi bi-arrow-left me-2"},null,-1),X(" Go Back ")])),a("button",{class:"btn btn-outline-primary btn-queues",onClick:i},o[2]||(o[2]=[a("i",{class:"bi bi-list-ul me-2"},null,-1),X(" View Queues ")]))]),o[4]||(o[4]=xn('<div class="help-section" data-v-d6cdc787><h3 class="help-title" data-v-d6cdc787>What can you do?</h3><ul class="help-list" data-v-d6cdc787><li class="help-item" data-v-d6cdc787><i class="bi bi-check-circle-fill help-icon" data-v-d6cdc787></i><span data-v-d6cdc787>Check the URL for any typos</span></li><li class="help-item" data-v-d6cdc787><i class="bi bi-check-circle-fill help-icon" data-v-d6cdc787></i><span data-v-d6cdc787>Use the navigation menu to find what you're looking for</span></li><li class="help-item" data-v-d6cdc787><i class="bi bi-check-circle-fill help-icon" data-v-d6cdc787></i><span data-v-d6cdc787>Go back to the previous page or start from the home page</span></li></ul></div>',1))]),o[5]||(o[5]=a("footer",{class:"not-found-footer"},[a("p",{class:"footer-text"}," Need help? Check the documentation or contact support. ")],-1))])]))}}),VU=at(FU,[["__scopeId","data-v-d6cdc787"]]),ny=OS({history:iS("/"),routes:[...Gc,{path:"/:pathMatch(.*)*",name:"NotFound",component:VU}]});ny.beforeEach((e,t,s)=>{e.path!==t.path&&os().resetPageContent(),s()});const eu=BC(qU);eu.use(HC());eu.use(ny);eu.use(AA,{queryClientConfig:{defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}});eu.mount("#app");export{Fq as C,ey as D,$e as F,xs as P,uL as Q,at as _,Bt as a,v2 as b,GI as c,ze as d,Db as e,v as f,yb as g,I as h,Ae as i,gt as j,me as k,et as l,O as m,ft as n,gs as o,k as p,a as q,we as r,X as s,F as t,os as u,At as v,Dt as w,bs as x};
|