redis-smq-web-ui 9.0.0-next.6 → 9.0.0-next.7
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 +11 -0
- package/dist/browser/assets/{QueuesView-fi_k5qBC.js → QueuesView-vKnXW-IF.js} +1 -1
- package/dist/browser/assets/index-B5beP3_q.js +43 -0
- package/dist/browser/assets/{index-xp6ZEm68.css → index-DzC8s2bm.css} +1 -1
- package/dist/browser/index.html +2 -2
- package/docs/screenshots/img01.png +0 -0
- package/package.json +5 -5
- package/dist/browser/assets/index-CdZ76axm.js +0 -43
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/QueuesView-vKnXW-IF.js","assets/QueuesView-BOytmHBz.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(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 s1(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function n(){var i=!1;try{i=this instanceof n}catch{}return i?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 Da={exports:{}},Wt="top",cs="bottom",ds="right",zt="left",_o="auto",Zi=[Wt,cs,ds,zt],ii="start",Mi="end",Yh="clippingParents",qu="viewport",Ai="popper",Zh="reference",Fl=Zi.reduce(function(e,t){return e.concat([t+"-"+ii,t+"-"+Mi])},[]),Lu=[].concat(Zi,[_o]).reduce(function(e,t){return e.concat([t,t+"-"+ii,t+"-"+Mi])},[]),Jh="beforeRead",Xh="read",em="afterRead",tm="beforeMain",sm="main",nm="afterMain",im="beforeWrite",rm="write",am="afterWrite",om=[Jh,Xh,em,tm,sm,nm,im,rm,am];function Ks(e){return e?(e.nodeName||"").toLowerCase():null}function fs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ri(e){var t=fs(e).Element;return e instanceof t||e instanceof Element}function Es(e){var t=fs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fu(e){if(typeof ShadowRoot>"u")return!1;var t=fs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function n1(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];!Es(r)||!Ks(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 i1(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},{});!Es(i)||!Ks(i)||(Object.assign(i.style,l),Object.keys(r).forEach(function(u){i.removeAttribute(u)}))})}}const Vu={name:"applyStyles",enabled:!0,phase:"write",fn:n1,effect:i1,requires:["computeStyles"]};function js(e){return e.split("-")[0]}var Xn=Math.max,Ka=Math.min,Ii=Math.round;function Vl(){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 lm(){return!/^((?!chrome|android).)*safari/i.test(Vl())}function qi(e,t,s){t===void 0&&(t=!1),s===void 0&&(s=!1);var n=e.getBoundingClientRect(),i=1,r=1;t&&Es(e)&&(i=e.offsetWidth>0&&Ii(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Ii(n.height)/e.offsetHeight||1);var o=ri(e)?fs(e):window,l=o.visualViewport,u=!lm()&&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 Qu(e){var t=qi(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 um(e,t){var s=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(s&&Fu(s)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function on(e){return fs(e).getComputedStyle(e)}function r1(e){return["table","td","th"].indexOf(Ks(e))>=0}function kn(e){return((ri(e)?e.ownerDocument:e.document)||window.document).documentElement}function Eo(e){return Ks(e)==="html"?e:e.assignedSlot||e.parentNode||(Fu(e)?e.host:null)||kn(e)}function Sd(e){return!Es(e)||on(e).position==="fixed"?null:e.offsetParent}function a1(e){var t=/firefox/i.test(Vl()),s=/Trident/i.test(Vl());if(s&&Es(e)){var n=on(e);if(n.position==="fixed")return null}var i=Eo(e);for(Fu(i)&&(i=i.host);Es(i)&&["html","body"].indexOf(Ks(i))<0;){var r=on(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 zr(e){for(var t=fs(e),s=Sd(e);s&&r1(s)&&on(s).position==="static";)s=Sd(s);return s&&(Ks(s)==="html"||Ks(s)==="body"&&on(s).position==="static")?t:s||a1(e)||t}function ju(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ar(e,t,s){return Xn(e,Ka(t,s))}function o1(e,t,s){var n=Ar(e,t,s);return n>s?s:n}function cm(){return{top:0,right:0,bottom:0,left:0}}function dm(e){return Object.assign({},cm(),e)}function fm(e,t){return t.reduce(function(s,n){return s[n]=e,s},{})}var l1=function(t,s){return t=typeof t=="function"?t(Object.assign({},s.rects,{placement:s.placement})):t,dm(typeof t!="number"?t:fm(t,Zi))};function u1(e){var t,s=e.state,n=e.name,i=e.options,r=s.elements.arrow,o=s.modifiersData.popperOffsets,l=js(s.placement),u=ju(l),d=[zt,ds].indexOf(l)>=0,c=d?"height":"width";if(!(!r||!o)){var h=l1(i.padding,s),p=Qu(r),m=u==="y"?Wt:zt,g=u==="y"?cs:ds,E=s.rects.reference[c]+s.rects.reference[u]-o[u]-s.rects.popper[c],_=o[u]-s.rects.reference[u],x=zr(r),C=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,A=E/2-_/2,b=h[m],$=C-p[c]-h[g],L=C/2-p[c]/2+A,F=Ar(b,L,$),I=u;s.modifiersData[n]=(t={},t[I]=F,t.centerOffset=F-L,t)}}function c1(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)||um(t.elements.popper,i)&&(t.elements.arrow=i))}const hm={name:"arrow",enabled:!0,phase:"main",fn:u1,effect:c1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Li(e){return e.split("-")[1]}var d1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function f1(e,t){var s=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Ii(s*i)/i||0,y:Ii(n*i)/i||0}}function xd(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,E=g===void 0?0:g,_=typeof c=="function"?c({x:m,y:E}):{x:m,y:E};m=_.x,E=_.y;var x=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),A=zt,b=Wt,$=window;if(d){var L=zr(s),F="clientHeight",I="clientWidth";if(L===fs(s)&&(L=kn(s),on(L).position!=="static"&&l==="absolute"&&(F="scrollHeight",I="scrollWidth")),L=L,i===Wt||(i===zt||i===ds)&&r===Mi){b=cs;var w=h&&L===$&&$.visualViewport?$.visualViewport.height:L[F];E-=w-n.height,E*=u?1:-1}if(i===zt||(i===Wt||i===cs)&&r===Mi){A=ds;var O=h&&L===$&&$.visualViewport?$.visualViewport.width:L[I];m-=O-n.width,m*=u?1:-1}}var S=Object.assign({position:l},d&&d1),j=c===!0?f1({x:m,y:E},fs(s)):{x:m,y:E};if(m=j.x,E=j.y,u){var X;return Object.assign({},S,(X={},X[b]=C?"0":"",X[A]=x?"0":"",X.transform=($.devicePixelRatio||1)<=1?"translate("+m+"px, "+E+"px)":"translate3d("+m+"px, "+E+"px, 0)",X))}return Object.assign({},S,(t={},t[b]=C?E+"px":"",t[A]=x?m+"px":"",t.transform="",t))}function h1(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:js(t.placement),variation:Li(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,xd(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,xd(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 Bu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:h1,data:{}};var Ea={passive:!0};function m1(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=fs(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(c){c.addEventListener("scroll",s.update,Ea)}),l&&u.addEventListener("resize",s.update,Ea),function(){r&&d.forEach(function(c){c.removeEventListener("scroll",s.update,Ea)}),l&&u.removeEventListener("resize",s.update,Ea)}}const Uu={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:m1,data:{}};var p1={left:"right",right:"left",bottom:"top",top:"bottom"};function Ra(e){return e.replace(/left|right|bottom|top/g,function(t){return p1[t]})}var g1={start:"end",end:"start"};function $d(e){return e.replace(/start|end/g,function(t){return g1[t]})}function Ku(e){var t=fs(e),s=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:s,scrollTop:n}}function Hu(e){return qi(kn(e)).left+Ku(e).scrollLeft}function v1(e,t){var s=fs(e),n=kn(e),i=s.visualViewport,r=n.clientWidth,o=n.clientHeight,l=0,u=0;if(i){r=i.width,o=i.height;var d=lm();(d||!d&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:r,height:o,x:l+Hu(e),y:u}}function b1(e){var t,s=kn(e),n=Ku(e),i=(t=e.ownerDocument)==null?void 0:t.body,r=Xn(s.scrollWidth,s.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Xn(s.scrollHeight,s.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+Hu(e),u=-n.scrollTop;return on(i||s).direction==="rtl"&&(l+=Xn(s.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:l,y:u}}function Gu(e){var t=on(e),s=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(s+i+n)}function mm(e){return["html","body","#document"].indexOf(Ks(e))>=0?e.ownerDocument.body:Es(e)&&Gu(e)?e:mm(Eo(e))}function Sr(e,t){var s;t===void 0&&(t=[]);var n=mm(e),i=n===((s=e.ownerDocument)==null?void 0:s.body),r=fs(n),o=i?[r].concat(r.visualViewport||[],Gu(n)?n:[]):n,l=t.concat(o);return i?l:l.concat(Sr(Eo(o)))}function Ql(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y1(e,t){var s=qi(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 Td(e,t,s){return t===qu?Ql(v1(e,s)):ri(t)?y1(t,s):Ql(b1(kn(e)))}function _1(e){var t=Sr(Eo(e)),s=["absolute","fixed"].indexOf(on(e).position)>=0,n=s&&Es(e)?zr(e):e;return ri(n)?t.filter(function(i){return ri(i)&&um(i,n)&&Ks(i)!=="body"}):[]}function E1(e,t,s,n){var i=t==="clippingParents"?_1(e):[].concat(t),r=[].concat(i,[s]),o=r[0],l=r.reduce(function(u,d){var c=Td(e,d,n);return u.top=Xn(c.top,u.top),u.right=Ka(c.right,u.right),u.bottom=Ka(c.bottom,u.bottom),u.left=Xn(c.left,u.left),u},Td(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 pm(e){var t=e.reference,s=e.element,n=e.placement,i=n?js(n):null,r=n?Li(n):null,o=t.x+t.width/2-s.width/2,l=t.y+t.height/2-s.height/2,u;switch(i){case Wt:u={x:o,y:t.y-s.height};break;case cs:u={x:o,y:t.y+t.height};break;case ds:u={x:t.x+t.width,y:l};break;case zt:u={x:t.x-s.width,y:l};break;default:u={x:t.x,y:t.y}}var d=i?ju(i):null;if(d!=null){var c=d==="y"?"height":"width";switch(r){case ii:u[d]=u[d]-(t[c]/2-s[c]/2);break;case Mi:u[d]=u[d]+(t[c]/2-s[c]/2);break}}return u}function Fi(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?Yh:l,d=s.rootBoundary,c=d===void 0?qu:d,h=s.elementContext,p=h===void 0?Ai:h,m=s.altBoundary,g=m===void 0?!1:m,E=s.padding,_=E===void 0?0:E,x=dm(typeof _!="number"?_:fm(_,Zi)),C=p===Ai?Zh:Ai,A=e.rects.popper,b=e.elements[g?C:p],$=E1(ri(b)?b:b.contextElement||kn(e.elements.popper),u,c,o),L=qi(e.elements.reference),F=pm({reference:L,element:A,placement:i}),I=Ql(Object.assign({},A,F)),w=p===Ai?I:L,O={top:$.top-w.top+x.top,bottom:w.bottom-$.bottom+x.bottom,left:$.left-w.left+x.left,right:w.right-$.right+x.right},S=e.modifiersData.offset;if(p===Ai&&S){var j=S[i];Object.keys(O).forEach(function(X){var W=[ds,cs].indexOf(X)>=0?1:-1,fe=[Wt,cs].indexOf(X)>=0?"y":"x";O[X]+=j[fe]*W})}return O}function w1(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?Lu:u,c=Li(n),h=c?l?Fl:Fl.filter(function(g){return Li(g)===c}):Zi,p=h.filter(function(g){return d.indexOf(g)>=0});p.length===0&&(p=h);var m=p.reduce(function(g,E){return g[E]=Fi(e,{placement:E,boundary:i,rootBoundary:r,padding:o})[js(E)],g},{});return Object.keys(m).sort(function(g,E){return m[g]-m[E]})}function C1(e){if(js(e)===_o)return[];var t=Ra(e);return[$d(e),t,$d(t)]}function A1(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,E=s.allowedAutoPlacements,_=t.options.placement,x=js(_),C=x===_,A=u||(C||!g?[Ra(_)]:C1(_)),b=[_].concat(A).reduce(function(Ie,tt){return Ie.concat(js(tt)===_o?w1(t,{placement:tt,boundary:c,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:E}):tt)},[]),$=t.rects.reference,L=t.rects.popper,F=new Map,I=!0,w=b[0],O=0;O<b.length;O++){var S=b[O],j=js(S),X=Li(S)===ii,W=[Wt,cs].indexOf(j)>=0,fe=W?"width":"height",ne=Fi(t,{placement:S,boundary:c,rootBoundary:h,altBoundary:p,padding:d}),Q=W?X?ds:zt:X?cs:Wt;$[fe]>L[fe]&&(Q=Ra(Q));var Z=Ra(Q),Y=[];if(r&&Y.push(ne[j]<=0),l&&Y.push(ne[Q]<=0,ne[Z]<=0),Y.every(function(Ie){return Ie})){w=S,I=!1;break}F.set(S,Y)}if(I)for(var G=g?3:1,se=function(tt){var ve=b.find(function(V){var H=F.get(V);if(H)return H.slice(0,tt).every(function(le){return le})});if(ve)return w=ve,"break"},ue=G;ue>0;ue--){var Re=se(ue);if(Re==="break")break}t.placement!==w&&(t.modifiersData[n]._skip=!0,t.placement=w,t.reset=!0)}}const gm={name:"flip",enabled:!0,phase:"main",fn:A1,requiresIfExists:["offset"],data:{_skip:!1}};function Od(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 Nd(e){return[Wt,ds,cs,zt].some(function(t){return e[t]>=0})}function S1(e){var t=e.state,s=e.name,n=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,o=Fi(t,{elementContext:"reference"}),l=Fi(t,{altBoundary:!0}),u=Od(o,n),d=Od(l,i,r),c=Nd(u),h=Nd(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 vm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S1};function x1(e,t,s){var n=js(e),i=[zt,Wt].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,[zt,ds].indexOf(n)>=0?{x:l,y:o}:{x:o,y:l}}function $1(e){var t=e.state,s=e.options,n=e.name,i=s.offset,r=i===void 0?[0,0]:i,o=Lu.reduce(function(c,h){return c[h]=x1(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 bm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$1};function T1(e){var t=e.state,s=e.name;t.modifiersData[s]=pm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Wu={name:"popperOffsets",enabled:!0,phase:"read",fn:T1,data:{}};function O1(e){return e==="x"?"y":"x"}function N1(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,E=g===void 0?0:g,_=Fi(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:c}),x=js(t.placement),C=Li(t.placement),A=!C,b=ju(x),$=O1(b),L=t.modifiersData.popperOffsets,F=t.rects.reference,I=t.rects.popper,w=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,O=typeof w=="number"?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(L){if(r){var X,W=b==="y"?Wt:zt,fe=b==="y"?cs:ds,ne=b==="y"?"height":"width",Q=L[b],Z=Q+_[W],Y=Q-_[fe],G=m?-I[ne]/2:0,se=C===ii?F[ne]:I[ne],ue=C===ii?-I[ne]:-F[ne],Re=t.elements.arrow,Ie=m&&Re?Qu(Re):{width:0,height:0},tt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cm(),ve=tt[W],V=tt[fe],H=Ar(0,F[ne],Ie[ne]),le=A?F[ne]/2-G-H-ve-O.mainAxis:se-H-ve-O.mainAxis,Ee=A?-F[ne]/2+G+H+V+O.mainAxis:ue+H+V+O.mainAxis,J=t.elements.arrow&&zr(t.elements.arrow),k=J?b==="y"?J.clientTop||0:J.clientLeft||0:0,R=(X=S?.[b])!=null?X:0,B=Q+le-R-k,ie=Q+Ee-R,re=Ar(m?Ka(Z,B):Z,Q,m?Xn(Y,ie):Y);L[b]=re,j[b]=re-Q}if(l){var oe,me=b==="x"?Wt:zt,pe=b==="x"?cs:ds,z=L[$],de=$==="y"?"height":"width",Me=z+_[me],we=z-_[pe],Oe=[Wt,zt].indexOf(x)!==-1,Qe=(oe=S?.[$])!=null?oe:0,He=Oe?Me:z-F[de]-I[de]-Qe+O.altAxis,st=Oe?z+F[de]+I[de]-Qe-O.altAxis:we,et=m&&Oe?o1(He,z,st):Ar(m?He:Me,z,m?st:we);L[$]=et,j[$]=et-z}t.modifiersData[n]=j}}const ym={name:"preventOverflow",enabled:!0,phase:"main",fn:N1,requiresIfExists:["offset"]};function k1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function P1(e){return e===fs(e)||!Es(e)?Ku(e):k1(e)}function D1(e){var t=e.getBoundingClientRect(),s=Ii(t.width)/e.offsetWidth||1,n=Ii(t.height)/e.offsetHeight||1;return s!==1||n!==1}function R1(e,t,s){s===void 0&&(s=!1);var n=Es(t),i=Es(t)&&D1(t),r=kn(t),o=qi(e,i,s),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!s)&&((Ks(t)!=="body"||Gu(r))&&(l=P1(t)),Es(t)?(u=qi(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=Hu(r))),{x:o.left+l.scrollLeft-u.x,y:o.top+l.scrollTop-u.y,width:o.width,height:o.height}}function M1(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 I1(e){var t=M1(e);return om.reduce(function(s,n){return s.concat(t.filter(function(i){return i.phase===n}))},[])}function q1(e){var t;return function(){return t||(t=new Promise(function(s){Promise.resolve().then(function(){t=void 0,s(e())})})),t}}function L1(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 kd={placement:"bottom",modifiers:[],strategy:"absolute"};function Pd(){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 wo(e){e===void 0&&(e={});var t=e,s=t.defaultModifiers,n=s===void 0?[]:s,i=t.defaultOptions,r=i===void 0?kd:i;return function(l,u,d){d===void 0&&(d=r);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},kd,r),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},h=[],p=!1,m={state:c,setOptions:function(x){var C=typeof x=="function"?x(c.options):x;E(),c.options=Object.assign({},r,c.options,C),c.scrollParents={reference:ri(l)?Sr(l):l.contextElement?Sr(l.contextElement):[],popper:Sr(u)};var A=I1(L1([].concat(n,c.options.modifiers)));return c.orderedModifiers=A.filter(function(b){return b.enabled}),g(),m.update()},forceUpdate:function(){if(!p){var x=c.elements,C=x.reference,A=x.popper;if(Pd(C,A)){c.rects={reference:R1(C,zr(A),c.options.strategy==="fixed"),popper:Qu(A)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var $=c.orderedModifiers[b],L=$.fn,F=$.options,I=F===void 0?{}:F,w=$.name;typeof L=="function"&&(c=L({state:c,options:I,name:w,instance:m})||c)}}}},update:q1(function(){return new Promise(function(_){m.forceUpdate(),_(c)})}),destroy:function(){E(),p=!0}};if(!Pd(l,u))return m;m.setOptions(d).then(function(_){!p&&d.onFirstUpdate&&d.onFirstUpdate(_)});function g(){c.orderedModifiers.forEach(function(_){var x=_.name,C=_.options,A=C===void 0?{}:C,b=_.effect;if(typeof b=="function"){var $=b({state:c,name:x,instance:m,options:A}),L=function(){};h.push($||L)}})}function E(){h.forEach(function(_){return _()}),h=[]}return m}}var F1=wo(),V1=[Uu,Wu,Bu,Vu],Q1=wo({defaultModifiers:V1}),j1=[Uu,Wu,Bu,Vu,bm,gm,ym,hm,vm],B1=wo({defaultModifiers:j1});const U1=Object.freeze(Object.defineProperty({__proto__:null,afterMain:nm,afterRead:em,afterWrite:am,applyStyles:Vu,arrow:hm,auto:_o,basePlacements:Zi,beforeMain:tm,beforeRead:Jh,beforeWrite:im,bottom:cs,clippingParents:Yh,computeStyles:Bu,createPopper:B1,createPopperBase:F1,createPopperLite:Q1,detectOverflow:Fi,end:Mi,eventListeners:Uu,flip:gm,hide:vm,left:zt,main:sm,modifierPhases:om,offset:bm,placements:Lu,popper:Ai,popperGenerator:wo,popperOffsets:Wu,preventOverflow:ym,read:Xh,reference:Zh,right:ds,start:ii,top:Wt,variationPlacements:Fl,viewport:qu,write:rm},Symbol.toStringTag,{value:"Module"})),K1=s1(U1);/*!
|
|
3
|
+
* Bootstrap v5.3.8 (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 H1=Da.exports,Dd;function G1(){return Dd||(Dd=1,(function(e,t){(function(s,n){e.exports=n(K1)})(H1,(function(s){function n(D){const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(D){for(const y in D)if(y!=="default"){const M=Object.getOwnPropertyDescriptor(D,y);Object.defineProperty(f,y,M.get?M:{enumerable:!0,get:()=>D[y]})}}return f.default=D,Object.freeze(f)}const i=n(s),r=new Map,o={set(D,f,y){r.has(D)||r.set(D,new Map);const M=r.get(D);if(!M.has(f)&&M.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(M.keys())[0]}.`);return}M.set(f,y)},get(D,f){return r.has(D)&&r.get(D).get(f)||null},remove(D,f){if(!r.has(D))return;const y=r.get(D);y.delete(f),y.size===0&&r.delete(D)}},l=1e6,u=1e3,d="transitionend",c=D=>(D&&window.CSS&&window.CSS.escape&&(D=D.replace(/#([^\s"#']+)/g,(f,y)=>`#${CSS.escape(y)}`)),D),h=D=>D==null?`${D}`:Object.prototype.toString.call(D).match(/\s([a-z]+)/i)[1].toLowerCase(),p=D=>{do D+=Math.floor(Math.random()*l);while(document.getElementById(D));return D},m=D=>{if(!D)return 0;let{transitionDuration:f,transitionDelay:y}=window.getComputedStyle(D);const M=Number.parseFloat(f),ae=Number.parseFloat(y);return!M&&!ae?0:(f=f.split(",")[0],y=y.split(",")[0],(Number.parseFloat(f)+Number.parseFloat(y))*u)},g=D=>{D.dispatchEvent(new Event(d))},E=D=>!D||typeof D!="object"?!1:(typeof D.jquery<"u"&&(D=D[0]),typeof D.nodeType<"u"),_=D=>E(D)?D.jquery?D[0]:D:typeof D=="string"&&D.length>0?document.querySelector(c(D)):null,x=D=>{if(!E(D)||D.getClientRects().length===0)return!1;const f=getComputedStyle(D).getPropertyValue("visibility")==="visible",y=D.closest("details:not([open])");if(!y)return f;if(y!==D){const M=D.closest("summary");if(M&&M.parentNode!==y||M===null)return!1}return f},C=D=>!D||D.nodeType!==Node.ELEMENT_NODE||D.classList.contains("disabled")?!0:typeof D.disabled<"u"?D.disabled:D.hasAttribute("disabled")&&D.getAttribute("disabled")!=="false",A=D=>{if(!document.documentElement.attachShadow)return null;if(typeof D.getRootNode=="function"){const f=D.getRootNode();return f instanceof ShadowRoot?f:null}return D instanceof ShadowRoot?D:D.parentNode?A(D.parentNode):null},b=()=>{},$=D=>{D.offsetHeight},L=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,F=[],I=D=>{document.readyState==="loading"?(F.length||document.addEventListener("DOMContentLoaded",()=>{for(const f of F)f()}),F.push(D)):D()},w=()=>document.documentElement.dir==="rtl",O=D=>{I(()=>{const f=L();if(f){const y=D.NAME,M=f.fn[y];f.fn[y]=D.jQueryInterface,f.fn[y].Constructor=D,f.fn[y].noConflict=()=>(f.fn[y]=M,D.jQueryInterface)}})},S=(D,f=[],y=D)=>typeof D=="function"?D.call(...f):y,j=(D,f,y=!0)=>{if(!y){S(D);return}const ae=m(f)+5;let _e=!1;const be=({target:We})=>{We===f&&(_e=!0,f.removeEventListener(d,be),S(D))};f.addEventListener(d,be),setTimeout(()=>{_e||g(f)},ae)},X=(D,f,y,M)=>{const ae=D.length;let _e=D.indexOf(f);return _e===-1?!y&&M?D[ae-1]:D[0]:(_e+=y?1:-1,M&&(_e=(_e+ae)%ae),D[Math.max(0,Math.min(_e,ae-1))])},W=/[^.]*(?=\..*)\.|.*/,fe=/\..*/,ne=/::\d+$/,Q={};let Z=1;const Y={mouseenter:"mouseover",mouseleave:"mouseout"},G=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 se(D,f){return f&&`${f}::${Z++}`||D.uidEvent||Z++}function ue(D){const f=se(D);return D.uidEvent=f,Q[f]=Q[f]||{},Q[f]}function Re(D,f){return function y(M){return k(M,{delegateTarget:D}),y.oneOff&&J.off(D,M.type,f),f.apply(D,[M])}}function Ie(D,f,y){return function M(ae){const _e=D.querySelectorAll(f);for(let{target:be}=ae;be&&be!==this;be=be.parentNode)for(const We of _e)if(We===be)return k(ae,{delegateTarget:be}),M.oneOff&&J.off(D,ae.type,f,y),y.apply(be,[ae])}}function tt(D,f,y=null){return Object.values(D).find(M=>M.callable===f&&M.delegationSelector===y)}function ve(D,f,y){const M=typeof f=="string",ae=M?y:f||y;let _e=Ee(D);return G.has(_e)||(_e=D),[M,ae,_e]}function V(D,f,y,M,ae){if(typeof f!="string"||!D)return;let[_e,be,We]=ve(f,y,M);f in Y&&(be=(t1=>function(Ei){if(!Ei.relatedTarget||Ei.relatedTarget!==Ei.delegateTarget&&!Ei.delegateTarget.contains(Ei.relatedTarget))return t1.call(this,Ei)})(be));const ts=ue(D),vs=ts[We]||(ts[We]={}),$t=tt(vs,be,_e?y:null);if($t){$t.oneOff=$t.oneOff&&ae;return}const qs=se(be,f.replace(W,"")),Ts=_e?Ie(D,y,be):Re(D,be);Ts.delegationSelector=_e?y:null,Ts.callable=be,Ts.oneOff=ae,Ts.uidEvent=qs,vs[qs]=Ts,D.addEventListener(We,Ts,_e)}function H(D,f,y,M,ae){const _e=tt(f[y],M,ae);_e&&(D.removeEventListener(y,_e,!!ae),delete f[y][_e.uidEvent])}function le(D,f,y,M){const ae=f[y]||{};for(const[_e,be]of Object.entries(ae))_e.includes(M)&&H(D,f,y,be.callable,be.delegationSelector)}function Ee(D){return D=D.replace(fe,""),Y[D]||D}const J={on(D,f,y,M){V(D,f,y,M,!1)},one(D,f,y,M){V(D,f,y,M,!0)},off(D,f,y,M){if(typeof f!="string"||!D)return;const[ae,_e,be]=ve(f,y,M),We=be!==f,ts=ue(D),vs=ts[be]||{},$t=f.startsWith(".");if(typeof _e<"u"){if(!Object.keys(vs).length)return;H(D,ts,be,_e,ae?y:null);return}if($t)for(const qs of Object.keys(ts))le(D,ts,qs,f.slice(1));for(const[qs,Ts]of Object.entries(vs)){const _a=qs.replace(ne,"");(!We||f.includes(_a))&&H(D,ts,be,Ts.callable,Ts.delegationSelector)}},trigger(D,f,y){if(typeof f!="string"||!D)return null;const M=L(),ae=Ee(f),_e=f!==ae;let be=null,We=!0,ts=!0,vs=!1;_e&&M&&(be=M.Event(f,y),M(D).trigger(be),We=!be.isPropagationStopped(),ts=!be.isImmediatePropagationStopped(),vs=be.isDefaultPrevented());const $t=k(new Event(f,{bubbles:We,cancelable:!0}),y);return vs&&$t.preventDefault(),ts&&D.dispatchEvent($t),$t.defaultPrevented&&be&&be.preventDefault(),$t}};function k(D,f={}){for(const[y,M]of Object.entries(f))try{D[y]=M}catch{Object.defineProperty(D,y,{configurable:!0,get(){return M}})}return D}function R(D){if(D==="true")return!0;if(D==="false")return!1;if(D===Number(D).toString())return Number(D);if(D===""||D==="null")return null;if(typeof D!="string")return D;try{return JSON.parse(decodeURIComponent(D))}catch{return D}}function B(D){return D.replace(/[A-Z]/g,f=>`-${f.toLowerCase()}`)}const ie={setDataAttribute(D,f,y){D.setAttribute(`data-bs-${B(f)}`,y)},removeDataAttribute(D,f){D.removeAttribute(`data-bs-${B(f)}`)},getDataAttributes(D){if(!D)return{};const f={},y=Object.keys(D.dataset).filter(M=>M.startsWith("bs")&&!M.startsWith("bsConfig"));for(const M of y){let ae=M.replace(/^bs/,"");ae=ae.charAt(0).toLowerCase()+ae.slice(1),f[ae]=R(D.dataset[M])}return f},getDataAttribute(D,f){return R(D.getAttribute(`data-bs-${B(f)}`))}};class re{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,y){const M=E(y)?ie.getDataAttribute(y,"config"):{};return{...this.constructor.Default,...typeof M=="object"?M:{},...E(y)?ie.getDataAttributes(y):{},...typeof f=="object"?f:{}}}_typeCheckConfig(f,y=this.constructor.DefaultType){for(const[M,ae]of Object.entries(y)){const _e=f[M],be=E(_e)?"element":h(_e);if(!new RegExp(ae).test(be))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${M}" provided type "${be}" but expected type "${ae}".`)}}}const oe="5.3.8";class me extends re{constructor(f,y){super(),f=_(f),f&&(this._element=f,this._config=this._getConfig(y),o.set(this._element,this.constructor.DATA_KEY,this))}dispose(){o.remove(this._element,this.constructor.DATA_KEY),J.off(this._element,this.constructor.EVENT_KEY);for(const f of Object.getOwnPropertyNames(this))this[f]=null}_queueCallback(f,y,M=!0){j(f,y,M)}_getConfig(f){return f=this._mergeConfigObj(f,this._element),f=this._configAfterMerge(f),this._typeCheckConfig(f),f}static getInstance(f){return o.get(_(f),this.DATA_KEY)}static getOrCreateInstance(f,y={}){return this.getInstance(f)||new this(f,typeof y=="object"?y: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 pe=D=>{let f=D.getAttribute("data-bs-target");if(!f||f==="#"){let y=D.getAttribute("href");if(!y||!y.includes("#")&&!y.startsWith("."))return null;y.includes("#")&&!y.startsWith("#")&&(y=`#${y.split("#")[1]}`),f=y&&y!=="#"?y.trim():null}return f?f.split(",").map(y=>c(y)).join(","):null},z={find(D,f=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(f,D))},findOne(D,f=document.documentElement){return Element.prototype.querySelector.call(f,D)},children(D,f){return[].concat(...D.children).filter(y=>y.matches(f))},parents(D,f){const y=[];let M=D.parentNode.closest(f);for(;M;)y.push(M),M=M.parentNode.closest(f);return y},prev(D,f){let y=D.previousElementSibling;for(;y;){if(y.matches(f))return[y];y=y.previousElementSibling}return[]},next(D,f){let y=D.nextElementSibling;for(;y;){if(y.matches(f))return[y];y=y.nextElementSibling}return[]},focusableChildren(D){const f=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(y=>`${y}:not([tabindex^="-"])`).join(",");return this.find(f,D).filter(y=>!C(y)&&x(y))},getSelectorFromElement(D){const f=pe(D);return f&&z.findOne(f)?f:null},getElementFromSelector(D){const f=pe(D);return f?z.findOne(f):null},getMultipleElementsFromSelector(D){const f=pe(D);return f?z.find(f):[]}},de=(D,f="hide")=>{const y=`click.dismiss${D.EVENT_KEY}`,M=D.NAME;J.on(document,y,`[data-bs-dismiss="${M}"]`,function(ae){if(["A","AREA"].includes(this.tagName)&&ae.preventDefault(),C(this))return;const _e=z.getElementFromSelector(this)||this.closest(`.${M}`);D.getOrCreateInstance(_e)[f]()})},Me="alert",Oe=".bs.alert",Qe=`close${Oe}`,He=`closed${Oe}`,st="fade",et="show";class _t extends me{static get NAME(){return Me}close(){if(J.trigger(this._element,Qe).defaultPrevented)return;this._element.classList.remove(et);const y=this._element.classList.contains(st);this._queueCallback(()=>this._destroyElement(),this._element,y)}_destroyElement(){this._element.remove(),J.trigger(this._element,He),this.dispose()}static jQueryInterface(f){return this.each(function(){const y=_t.getOrCreateInstance(this);if(typeof f=="string"){if(y[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);y[f](this)}})}}de(_t,"close"),O(_t);const Ct="button",U=".bs.button",ce=".data-api",Se="active",$e='[data-bs-toggle="button"]',Le=`click${U}${ce}`;class Pe extends me{static get NAME(){return Ct}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Se))}static jQueryInterface(f){return this.each(function(){const y=Pe.getOrCreateInstance(this);f==="toggle"&&y[f]()})}}J.on(document,Le,$e,D=>{D.preventDefault();const f=D.target.closest($e);Pe.getOrCreateInstance(f).toggle()}),O(Pe);const dt="swipe",mt=".bs.swipe",St=`touchstart${mt}`,pt=`touchmove${mt}`,xt=`touchend${mt}`,qt=`pointerdown${mt}`,es=`pointerup${mt}`,Rn="touch",sr="pen",nr="pointer-event",ir=40,rr={endCallback:null,leftCallback:null,rightCallback:null},qv={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ua extends re{constructor(f,y){super(),this._element=f,!(!f||!ua.isSupported())&&(this._config=this._getConfig(y),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return rr}static get DefaultType(){return qv}static get NAME(){return dt}dispose(){J.off(this._element,mt)}_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(),S(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<=ir)return;const y=f/this._deltaX;this._deltaX=0,y&&S(y>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(J.on(this._element,qt,f=>this._start(f)),J.on(this._element,es,f=>this._end(f)),this._element.classList.add(nr)):(J.on(this._element,St,f=>this._start(f)),J.on(this._element,pt,f=>this._move(f)),J.on(this._element,xt,f=>this._end(f)))}_eventIsPointerPenTouch(f){return this._supportPointerEvents&&(f.pointerType===sr||f.pointerType===Rn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Lv="carousel",hn=".bs.carousel",Lc=".data-api",Fv="ArrowLeft",Vv="ArrowRight",Qv=500,ar="next",mi="prev",pi="left",ca="right",jv=`slide${hn}`,el=`slid${hn}`,Bv=`keydown${hn}`,Uv=`mouseenter${hn}`,Kv=`mouseleave${hn}`,Hv=`dragstart${hn}`,Gv=`load${hn}${Lc}`,Wv=`click${hn}${Lc}`,Fc="carousel",da="active",zv="slide",Yv="carousel-item-end",Zv="carousel-item-start",Jv="carousel-item-next",Xv="carousel-item-prev",Vc=".active",Qc=".carousel-item",eb=Vc+Qc,tb=".carousel-item img",sb=".carousel-indicators",nb="[data-bs-slide], [data-bs-slide-to]",ib='[data-bs-ride="carousel"]',rb={[Fv]:ca,[Vv]:pi},ab={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ob={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class gi extends me{constructor(f,y){super(f,y),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=z.findOne(sb,this._element),this._addEventListeners(),this._config.ride===Fc&&this.cycle()}static get Default(){return ab}static get DefaultType(){return ob}static get NAME(){return Lv}next(){this._slide(ar)}nextWhenVisible(){!document.hidden&&x(this._element)&&this.next()}prev(){this._slide(mi)}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){J.one(this._element,el,()=>this.cycle());return}this.cycle()}}to(f){const y=this._getItems();if(f>y.length-1||f<0)return;if(this._isSliding){J.one(this._element,el,()=>this.to(f));return}const M=this._getItemIndex(this._getActive());if(M===f)return;const ae=f>M?ar:mi;this._slide(ae,y[f])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(f){return f.defaultInterval=f.interval,f}_addEventListeners(){this._config.keyboard&&J.on(this._element,Bv,f=>this._keydown(f)),this._config.pause==="hover"&&(J.on(this._element,Uv,()=>this.pause()),J.on(this._element,Kv,()=>this._maybeEnableCycle())),this._config.touch&&ua.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const M of z.find(tb,this._element))J.on(M,Hv,ae=>ae.preventDefault());const y={leftCallback:()=>this._slide(this._directionToOrder(pi)),rightCallback:()=>this._slide(this._directionToOrder(ca)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Qv+this._config.interval))}};this._swipeHelper=new ua(this._element,y)}_keydown(f){if(/input|textarea/i.test(f.target.tagName))return;const y=rb[f.key];y&&(f.preventDefault(),this._slide(this._directionToOrder(y)))}_getItemIndex(f){return this._getItems().indexOf(f)}_setActiveIndicatorElement(f){if(!this._indicatorsElement)return;const y=z.findOne(Vc,this._indicatorsElement);y.classList.remove(da),y.removeAttribute("aria-current");const M=z.findOne(`[data-bs-slide-to="${f}"]`,this._indicatorsElement);M&&(M.classList.add(da),M.setAttribute("aria-current","true"))}_updateInterval(){const f=this._activeElement||this._getActive();if(!f)return;const y=Number.parseInt(f.getAttribute("data-bs-interval"),10);this._config.interval=y||this._config.defaultInterval}_slide(f,y=null){if(this._isSliding)return;const M=this._getActive(),ae=f===ar,_e=y||X(this._getItems(),M,ae,this._config.wrap);if(_e===M)return;const be=this._getItemIndex(_e),We=_a=>J.trigger(this._element,_a,{relatedTarget:_e,direction:this._orderToDirection(f),from:this._getItemIndex(M),to:be});if(We(jv).defaultPrevented||!M||!_e)return;const vs=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(be),this._activeElement=_e;const $t=ae?Zv:Yv,qs=ae?Jv:Xv;_e.classList.add(qs),$(_e),M.classList.add($t),_e.classList.add($t);const Ts=()=>{_e.classList.remove($t,qs),_e.classList.add(da),M.classList.remove(da,qs,$t),this._isSliding=!1,We(el)};this._queueCallback(Ts,M,this._isAnimated()),vs&&this.cycle()}_isAnimated(){return this._element.classList.contains(zv)}_getActive(){return z.findOne(eb,this._element)}_getItems(){return z.find(Qc,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(f){return w()?f===pi?mi:ar:f===pi?ar:mi}_orderToDirection(f){return w()?f===mi?pi:ca:f===mi?ca:pi}static jQueryInterface(f){return this.each(function(){const y=gi.getOrCreateInstance(this,f);if(typeof f=="number"){y.to(f);return}if(typeof f=="string"){if(y[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);y[f]()}})}}J.on(document,Wv,nb,function(D){const f=z.getElementFromSelector(this);if(!f||!f.classList.contains(Fc))return;D.preventDefault();const y=gi.getOrCreateInstance(f),M=this.getAttribute("data-bs-slide-to");if(M){y.to(M),y._maybeEnableCycle();return}if(ie.getDataAttribute(this,"slide")==="next"){y.next(),y._maybeEnableCycle();return}y.prev(),y._maybeEnableCycle()}),J.on(window,Gv,()=>{const D=z.find(ib);for(const f of D)gi.getOrCreateInstance(f)}),O(gi);const lb="collapse",or=".bs.collapse",ub=".data-api",cb=`show${or}`,db=`shown${or}`,fb=`hide${or}`,hb=`hidden${or}`,mb=`click${or}${ub}`,tl="show",vi="collapse",fa="collapsing",pb="collapsed",gb=`:scope .${vi} .${vi}`,vb="collapse-horizontal",bb="width",yb="height",_b=".collapse.show, .collapse.collapsing",sl='[data-bs-toggle="collapse"]',Eb={parent:null,toggle:!0},wb={parent:"(null|element)",toggle:"boolean"};class bi extends me{constructor(f,y){super(f,y),this._isTransitioning=!1,this._triggerArray=[];const M=z.find(sl);for(const ae of M){const _e=z.getSelectorFromElement(ae),be=z.find(_e).filter(We=>We===this._element);_e!==null&&be.length&&this._triggerArray.push(ae)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Eb}static get DefaultType(){return wb}static get NAME(){return lb}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let f=[];if(this._config.parent&&(f=this._getFirstLevelChildren(_b).filter(We=>We!==this._element).map(We=>bi.getOrCreateInstance(We,{toggle:!1}))),f.length&&f[0]._isTransitioning||J.trigger(this._element,cb).defaultPrevented)return;for(const We of f)We.hide();const M=this._getDimension();this._element.classList.remove(vi),this._element.classList.add(fa),this._element.style[M]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const ae=()=>{this._isTransitioning=!1,this._element.classList.remove(fa),this._element.classList.add(vi,tl),this._element.style[M]="",J.trigger(this._element,db)},be=`scroll${M[0].toUpperCase()+M.slice(1)}`;this._queueCallback(ae,this._element,!0),this._element.style[M]=`${this._element[be]}px`}hide(){if(this._isTransitioning||!this._isShown()||J.trigger(this._element,fb).defaultPrevented)return;const y=this._getDimension();this._element.style[y]=`${this._element.getBoundingClientRect()[y]}px`,$(this._element),this._element.classList.add(fa),this._element.classList.remove(vi,tl);for(const ae of this._triggerArray){const _e=z.getElementFromSelector(ae);_e&&!this._isShown(_e)&&this._addAriaAndCollapsedClass([ae],!1)}this._isTransitioning=!0;const M=()=>{this._isTransitioning=!1,this._element.classList.remove(fa),this._element.classList.add(vi),J.trigger(this._element,hb)};this._element.style[y]="",this._queueCallback(M,this._element,!0)}_isShown(f=this._element){return f.classList.contains(tl)}_configAfterMerge(f){return f.toggle=!!f.toggle,f.parent=_(f.parent),f}_getDimension(){return this._element.classList.contains(vb)?bb:yb}_initializeChildren(){if(!this._config.parent)return;const f=this._getFirstLevelChildren(sl);for(const y of f){const M=z.getElementFromSelector(y);M&&this._addAriaAndCollapsedClass([y],this._isShown(M))}}_getFirstLevelChildren(f){const y=z.find(gb,this._config.parent);return z.find(f,this._config.parent).filter(M=>!y.includes(M))}_addAriaAndCollapsedClass(f,y){if(f.length)for(const M of f)M.classList.toggle(pb,!y),M.setAttribute("aria-expanded",y)}static jQueryInterface(f){const y={};return typeof f=="string"&&/show|hide/.test(f)&&(y.toggle=!1),this.each(function(){const M=bi.getOrCreateInstance(this,y);if(typeof f=="string"){if(typeof M[f]>"u")throw new TypeError(`No method named "${f}"`);M[f]()}})}}J.on(document,mb,sl,function(D){(D.target.tagName==="A"||D.delegateTarget&&D.delegateTarget.tagName==="A")&&D.preventDefault();for(const f of z.getMultipleElementsFromSelector(this))bi.getOrCreateInstance(f,{toggle:!1}).toggle()}),O(bi);const jc="dropdown",Mn=".bs.dropdown",nl=".data-api",Cb="Escape",Bc="Tab",Ab="ArrowUp",Uc="ArrowDown",Sb=2,xb=`hide${Mn}`,$b=`hidden${Mn}`,Tb=`show${Mn}`,Ob=`shown${Mn}`,Kc=`click${Mn}${nl}`,Hc=`keydown${Mn}${nl}`,Nb=`keyup${Mn}${nl}`,yi="show",kb="dropup",Pb="dropend",Db="dropstart",Rb="dropup-center",Mb="dropdown-center",In='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ib=`${In}.${yi}`,ha=".dropdown-menu",qb=".navbar",Lb=".navbar-nav",Fb=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Vb=w()?"top-end":"top-start",Qb=w()?"top-start":"top-end",jb=w()?"bottom-end":"bottom-start",Bb=w()?"bottom-start":"bottom-end",Ub=w()?"left-start":"right-start",Kb=w()?"right-start":"left-start",Hb="top",Gb="bottom",Wb={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},zb={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class $s extends me{constructor(f,y){super(f,y),this._popper=null,this._parent=this._element.parentNode,this._menu=z.next(this._element,ha)[0]||z.prev(this._element,ha)[0]||z.findOne(ha,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Wb}static get DefaultType(){return zb}static get NAME(){return jc}toggle(){return this._isShown()?this.hide():this.show()}show(){if(C(this._element)||this._isShown())return;const f={relatedTarget:this._element};if(!J.trigger(this._element,Tb,f).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Lb))for(const M of[].concat(...document.body.children))J.on(M,"mouseover",b);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(yi),this._element.classList.add(yi),J.trigger(this._element,Ob,f)}}hide(){if(C(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(!J.trigger(this._element,xb,f).defaultPrevented){if("ontouchstart"in document.documentElement)for(const M of[].concat(...document.body.children))J.off(M,"mouseover",b);this._popper&&this._popper.destroy(),this._menu.classList.remove(yi),this._element.classList.remove(yi),this._element.setAttribute("aria-expanded","false"),ie.removeDataAttribute(this._menu,"popper"),J.trigger(this._element,$b,f)}}_getConfig(f){if(f=super._getConfig(f),typeof f.reference=="object"&&!E(f.reference)&&typeof f.reference.getBoundingClientRect!="function")throw new TypeError(`${jc.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:E(this._config.reference)?f=_(this._config.reference):typeof this._config.reference=="object"&&(f=this._config.reference);const y=this._getPopperConfig();this._popper=i.createPopper(f,this._menu,y)}_isShown(){return this._menu.classList.contains(yi)}_getPlacement(){const f=this._parent;if(f.classList.contains(Pb))return Ub;if(f.classList.contains(Db))return Kb;if(f.classList.contains(Rb))return Hb;if(f.classList.contains(Mb))return Gb;const y=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return f.classList.contains(kb)?y?Qb:Vb:y?Bb:jb}_detectNavbar(){return this._element.closest(qb)!==null}_getOffset(){const{offset:f}=this._config;return typeof f=="string"?f.split(",").map(y=>Number.parseInt(y,10)):typeof f=="function"?y=>f(y,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,...S(this._config.popperConfig,[void 0,f])}}_selectMenuItem({key:f,target:y}){const M=z.find(Fb,this._menu).filter(ae=>x(ae));M.length&&X(M,y,f===Uc,!M.includes(y)).focus()}static jQueryInterface(f){return this.each(function(){const y=$s.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof y[f]>"u")throw new TypeError(`No method named "${f}"`);y[f]()}})}static clearMenus(f){if(f.button===Sb||f.type==="keyup"&&f.key!==Bc)return;const y=z.find(Ib);for(const M of y){const ae=$s.getInstance(M);if(!ae||ae._config.autoClose===!1)continue;const _e=f.composedPath(),be=_e.includes(ae._menu);if(_e.includes(ae._element)||ae._config.autoClose==="inside"&&!be||ae._config.autoClose==="outside"&&be||ae._menu.contains(f.target)&&(f.type==="keyup"&&f.key===Bc||/input|select|option|textarea|form/i.test(f.target.tagName)))continue;const We={relatedTarget:ae._element};f.type==="click"&&(We.clickEvent=f),ae._completeHide(We)}}static dataApiKeydownHandler(f){const y=/input|textarea/i.test(f.target.tagName),M=f.key===Cb,ae=[Ab,Uc].includes(f.key);if(!ae&&!M||y&&!M)return;f.preventDefault();const _e=this.matches(In)?this:z.prev(this,In)[0]||z.next(this,In)[0]||z.findOne(In,f.delegateTarget.parentNode),be=$s.getOrCreateInstance(_e);if(ae){f.stopPropagation(),be.show(),be._selectMenuItem(f);return}be._isShown()&&(f.stopPropagation(),be.hide(),_e.focus())}}J.on(document,Hc,In,$s.dataApiKeydownHandler),J.on(document,Hc,ha,$s.dataApiKeydownHandler),J.on(document,Kc,$s.clearMenus),J.on(document,Nb,$s.clearMenus),J.on(document,Kc,In,function(D){D.preventDefault(),$s.getOrCreateInstance(this).toggle()}),O($s);const Gc="backdrop",Yb="fade",Wc="show",zc=`mousedown.bs.${Gc}`,Zb={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Jb={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Yc extends re{constructor(f){super(),this._config=this._getConfig(f),this._isAppended=!1,this._element=null}static get Default(){return Zb}static get DefaultType(){return Jb}static get NAME(){return Gc}show(f){if(!this._config.isVisible){S(f);return}this._append();const y=this._getElement();this._config.isAnimated&&$(y),y.classList.add(Wc),this._emulateAnimation(()=>{S(f)})}hide(f){if(!this._config.isVisible){S(f);return}this._getElement().classList.remove(Wc),this._emulateAnimation(()=>{this.dispose(),S(f)})}dispose(){this._isAppended&&(J.off(this._element,zc),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(Yb),this._element=f}return this._element}_configAfterMerge(f){return f.rootElement=_(f.rootElement),f}_append(){if(this._isAppended)return;const f=this._getElement();this._config.rootElement.append(f),J.on(f,zc,()=>{S(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(f){j(f,this._getElement(),this._config.isAnimated)}}const Xb="focustrap",ma=".bs.focustrap",ey=`focusin${ma}`,ty=`keydown.tab${ma}`,sy="Tab",ny="forward",Zc="backward",iy={autofocus:!0,trapElement:null},ry={autofocus:"boolean",trapElement:"element"};class Jc extends re{constructor(f){super(),this._config=this._getConfig(f),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return iy}static get DefaultType(){return ry}static get NAME(){return Xb}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),J.off(document,ma),J.on(document,ey,f=>this._handleFocusin(f)),J.on(document,ty,f=>this._handleKeydown(f)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,J.off(document,ma))}_handleFocusin(f){const{trapElement:y}=this._config;if(f.target===document||f.target===y||y.contains(f.target))return;const M=z.focusableChildren(y);M.length===0?y.focus():this._lastTabNavDirection===Zc?M[M.length-1].focus():M[0].focus()}_handleKeydown(f){f.key===sy&&(this._lastTabNavDirection=f.shiftKey?Zc:ny)}}const Xc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ed=".sticky-top",pa="padding-right",td="margin-right";class il{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,pa,y=>y+f),this._setElementAttributes(Xc,pa,y=>y+f),this._setElementAttributes(ed,td,y=>y-f)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,pa),this._resetElementAttributes(Xc,pa),this._resetElementAttributes(ed,td)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(f,y,M){const ae=this.getWidth(),_e=be=>{if(be!==this._element&&window.innerWidth>be.clientWidth+ae)return;this._saveInitialAttribute(be,y);const We=window.getComputedStyle(be).getPropertyValue(y);be.style.setProperty(y,`${M(Number.parseFloat(We))}px`)};this._applyManipulationCallback(f,_e)}_saveInitialAttribute(f,y){const M=f.style.getPropertyValue(y);M&&ie.setDataAttribute(f,y,M)}_resetElementAttributes(f,y){const M=ae=>{const _e=ie.getDataAttribute(ae,y);if(_e===null){ae.style.removeProperty(y);return}ie.removeDataAttribute(ae,y),ae.style.setProperty(y,_e)};this._applyManipulationCallback(f,M)}_applyManipulationCallback(f,y){if(E(f)){y(f);return}for(const M of z.find(f,this._element))y(M)}}const ay="modal",gs=".bs.modal",oy=".data-api",ly="Escape",uy=`hide${gs}`,cy=`hidePrevented${gs}`,sd=`hidden${gs}`,nd=`show${gs}`,dy=`shown${gs}`,fy=`resize${gs}`,hy=`click.dismiss${gs}`,my=`mousedown.dismiss${gs}`,py=`keydown.dismiss${gs}`,gy=`click${gs}${oy}`,id="modal-open",vy="fade",rd="show",rl="modal-static",by=".modal.show",yy=".modal-dialog",_y=".modal-body",Ey='[data-bs-toggle="modal"]',wy={backdrop:!0,focus:!0,keyboard:!0},Cy={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qn extends me{constructor(f,y){super(f,y),this._dialog=z.findOne(yy,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new il,this._addEventListeners()}static get Default(){return wy}static get DefaultType(){return Cy}static get NAME(){return ay}toggle(f){return this._isShown?this.hide():this.show(f)}show(f){this._isShown||this._isTransitioning||J.trigger(this._element,nd,{relatedTarget:f}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(id),this._adjustDialog(),this._backdrop.show(()=>this._showElement(f)))}hide(){!this._isShown||this._isTransitioning||J.trigger(this._element,uy).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(rd),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){J.off(window,gs),J.off(this._dialog,gs),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Yc({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Jc({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 y=z.findOne(_y,this._dialog);y&&(y.scrollTop=0),$(this._element),this._element.classList.add(rd);const M=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,J.trigger(this._element,dy,{relatedTarget:f})};this._queueCallback(M,this._dialog,this._isAnimated())}_addEventListeners(){J.on(this._element,py,f=>{if(f.key===ly){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),J.on(window,fy,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),J.on(this._element,my,f=>{J.one(this._element,hy,y=>{if(!(this._element!==f.target||this._element!==y.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(id),this._resetAdjustments(),this._scrollBar.reset(),J.trigger(this._element,sd)})}_isAnimated(){return this._element.classList.contains(vy)}_triggerBackdropTransition(){if(J.trigger(this._element,cy).defaultPrevented)return;const y=this._element.scrollHeight>document.documentElement.clientHeight,M=this._element.style.overflowY;M==="hidden"||this._element.classList.contains(rl)||(y||(this._element.style.overflowY="hidden"),this._element.classList.add(rl),this._queueCallback(()=>{this._element.classList.remove(rl),this._queueCallback(()=>{this._element.style.overflowY=M},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const f=this._element.scrollHeight>document.documentElement.clientHeight,y=this._scrollBar.getWidth(),M=y>0;if(M&&!f){const ae=w()?"paddingLeft":"paddingRight";this._element.style[ae]=`${y}px`}if(!M&&f){const ae=w()?"paddingRight":"paddingLeft";this._element.style[ae]=`${y}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(f,y){return this.each(function(){const M=qn.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof M[f]>"u")throw new TypeError(`No method named "${f}"`);M[f](y)}})}}J.on(document,gy,Ey,function(D){const f=z.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&D.preventDefault(),J.one(f,nd,ae=>{ae.defaultPrevented||J.one(f,sd,()=>{x(this)&&this.focus()})});const y=z.findOne(by);y&&qn.getInstance(y).hide(),qn.getOrCreateInstance(f).toggle(this)}),de(qn),O(qn);const Ay="offcanvas",Gs=".bs.offcanvas",ad=".data-api",Sy=`load${Gs}${ad}`,xy="Escape",od="show",ld="showing",ud="hiding",$y="offcanvas-backdrop",cd=".offcanvas.show",Ty=`show${Gs}`,Oy=`shown${Gs}`,Ny=`hide${Gs}`,dd=`hidePrevented${Gs}`,fd=`hidden${Gs}`,ky=`resize${Gs}`,Py=`click${Gs}${ad}`,Dy=`keydown.dismiss${Gs}`,Ry='[data-bs-toggle="offcanvas"]',My={backdrop:!0,keyboard:!0,scroll:!1},Iy={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ws extends me{constructor(f,y){super(f,y),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return My}static get DefaultType(){return Iy}static get NAME(){return Ay}toggle(f){return this._isShown?this.hide():this.show(f)}show(f){if(this._isShown||J.trigger(this._element,Ty,{relatedTarget:f}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new il().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ld);const M=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(od),this._element.classList.remove(ld),J.trigger(this._element,Oy,{relatedTarget:f})};this._queueCallback(M,this._element,!0)}hide(){if(!this._isShown||J.trigger(this._element,Ny).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(ud),this._backdrop.hide();const y=()=>{this._element.classList.remove(od,ud),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new il().reset(),J.trigger(this._element,fd)};this._queueCallback(y,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const f=()=>{if(this._config.backdrop==="static"){J.trigger(this._element,dd);return}this.hide()},y=!!this._config.backdrop;return new Yc({className:$y,isVisible:y,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:y?f:null})}_initializeFocusTrap(){return new Jc({trapElement:this._element})}_addEventListeners(){J.on(this._element,Dy,f=>{if(f.key===xy){if(this._config.keyboard){this.hide();return}J.trigger(this._element,dd)}})}static jQueryInterface(f){return this.each(function(){const y=Ws.getOrCreateInstance(this,f);if(typeof f=="string"){if(y[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);y[f](this)}})}}J.on(document,Py,Ry,function(D){const f=z.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&D.preventDefault(),C(this))return;J.one(f,fd,()=>{x(this)&&this.focus()});const y=z.findOne(cd);y&&y!==f&&Ws.getInstance(y).hide(),Ws.getOrCreateInstance(f).toggle(this)}),J.on(window,Sy,()=>{for(const D of z.find(cd))Ws.getOrCreateInstance(D).show()}),J.on(window,ky,()=>{for(const D of z.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(D).position!=="fixed"&&Ws.getOrCreateInstance(D).hide()}),de(Ws),O(Ws);const hd={"*":["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:[]},qy=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ly=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Fy=(D,f)=>{const y=D.nodeName.toLowerCase();return f.includes(y)?qy.has(y)?!!Ly.test(D.nodeValue):!0:f.filter(M=>M instanceof RegExp).some(M=>M.test(y))};function Vy(D,f,y){if(!D.length)return D;if(y&&typeof y=="function")return y(D);const ae=new window.DOMParser().parseFromString(D,"text/html"),_e=[].concat(...ae.body.querySelectorAll("*"));for(const be of _e){const We=be.nodeName.toLowerCase();if(!Object.keys(f).includes(We)){be.remove();continue}const ts=[].concat(...be.attributes),vs=[].concat(f["*"]||[],f[We]||[]);for(const $t of ts)Fy($t,vs)||be.removeAttribute($t.nodeName)}return ae.body.innerHTML}const Qy="TemplateFactory",jy={allowList:hd,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},By={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Uy={entry:"(string|element|function|null)",selector:"(string|element)"};class Ky extends re{constructor(f){super(),this._config=this._getConfig(f)}static get Default(){return jy}static get DefaultType(){return By}static get NAME(){return Qy}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[ae,_e]of Object.entries(this._config.content))this._setContent(f,_e,ae);const y=f.children[0],M=this._resolvePossibleFunction(this._config.extraClass);return M&&y.classList.add(...M.split(" ")),y}_typeCheckConfig(f){super._typeCheckConfig(f),this._checkContent(f.content)}_checkContent(f){for(const[y,M]of Object.entries(f))super._typeCheckConfig({selector:y,entry:M},Uy)}_setContent(f,y,M){const ae=z.findOne(M,f);if(ae){if(y=this._resolvePossibleFunction(y),!y){ae.remove();return}if(E(y)){this._putElementInTemplate(_(y),ae);return}if(this._config.html){ae.innerHTML=this._maybeSanitize(y);return}ae.textContent=y}}_maybeSanitize(f){return this._config.sanitize?Vy(f,this._config.allowList,this._config.sanitizeFn):f}_resolvePossibleFunction(f){return S(f,[void 0,this])}_putElementInTemplate(f,y){if(this._config.html){y.innerHTML="",y.append(f);return}y.textContent=f.textContent}}const Hy="tooltip",Gy=new Set(["sanitize","allowList","sanitizeFn"]),al="fade",Wy="modal",ga="show",zy=".tooltip-inner",md=`.${Wy}`,pd="hide.bs.modal",lr="hover",ol="focus",ll="click",Yy="manual",Zy="hide",Jy="hidden",Xy="show",e_="shown",t_="inserted",s_="click",n_="focusin",i_="focusout",r_="mouseenter",a_="mouseleave",o_={AUTO:"auto",TOP:"top",RIGHT:w()?"left":"right",BOTTOM:"bottom",LEFT:w()?"right":"left"},l_={allowList:hd,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"},u_={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 Ln extends me{constructor(f,y){if(typeof i>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(f,y),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 l_}static get DefaultType(){return u_}static get NAME(){return Hy}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),J.off(this._element.closest(md),pd,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=J.trigger(this._element,this.constructor.eventName(Xy)),M=(A(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(f.defaultPrevented||!M)return;this._disposePopper();const ae=this._getTipElement();this._element.setAttribute("aria-describedby",ae.getAttribute("id"));const{container:_e}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(_e.append(ae),J.trigger(this._element,this.constructor.eventName(t_))),this._popper=this._createPopper(ae),ae.classList.add(ga),"ontouchstart"in document.documentElement)for(const We of[].concat(...document.body.children))J.on(We,"mouseover",b);const be=()=>{J.trigger(this._element,this.constructor.eventName(e_)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(be,this.tip,this._isAnimated())}hide(){if(!this._isShown()||J.trigger(this._element,this.constructor.eventName(Zy)).defaultPrevented)return;if(this._getTipElement().classList.remove(ga),"ontouchstart"in document.documentElement)for(const ae of[].concat(...document.body.children))J.off(ae,"mouseover",b);this._activeTrigger[ll]=!1,this._activeTrigger[ol]=!1,this._activeTrigger[lr]=!1,this._isHovered=null;const M=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),J.trigger(this._element,this.constructor.eventName(Jy)))};this._queueCallback(M,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 y=this._getTemplateFactory(f).toHtml();if(!y)return null;y.classList.remove(al,ga),y.classList.add(`bs-${this.constructor.NAME}-auto`);const M=p(this.constructor.NAME).toString();return y.setAttribute("id",M),this._isAnimated()&&y.classList.add(al),y}setContent(f){this._newContent=f,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(f){return this._templateFactory?this._templateFactory.changeContent(f):this._templateFactory=new Ky({...this._config,content:f,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[zy]: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(al)}_isShown(){return this.tip&&this.tip.classList.contains(ga)}_createPopper(f){const y=S(this._config.placement,[this,f,this._element]),M=o_[y.toUpperCase()];return i.createPopper(this._element,f,this._getPopperConfig(M))}_getOffset(){const{offset:f}=this._config;return typeof f=="string"?f.split(",").map(y=>Number.parseInt(y,10)):typeof f=="function"?y=>f(y,this._element):f}_resolvePossibleFunction(f){return S(f,[this._element,this._element])}_getPopperConfig(f){const y={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:M=>{this._getTipElement().setAttribute("data-popper-placement",M.state.placement)}}]};return{...y,...S(this._config.popperConfig,[void 0,y])}}_setListeners(){const f=this._config.trigger.split(" ");for(const y of f)if(y==="click")J.on(this._element,this.constructor.eventName(s_),this._config.selector,M=>{const ae=this._initializeOnDelegatedTarget(M);ae._activeTrigger[ll]=!(ae._isShown()&&ae._activeTrigger[ll]),ae.toggle()});else if(y!==Yy){const M=y===lr?this.constructor.eventName(r_):this.constructor.eventName(n_),ae=y===lr?this.constructor.eventName(a_):this.constructor.eventName(i_);J.on(this._element,M,this._config.selector,_e=>{const be=this._initializeOnDelegatedTarget(_e);be._activeTrigger[_e.type==="focusin"?ol:lr]=!0,be._enter()}),J.on(this._element,ae,this._config.selector,_e=>{const be=this._initializeOnDelegatedTarget(_e);be._activeTrigger[_e.type==="focusout"?ol:lr]=be._element.contains(_e.relatedTarget),be._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},J.on(this._element.closest(md),pd,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,y){clearTimeout(this._timeout),this._timeout=setTimeout(f,y)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(f){const y=ie.getDataAttributes(this._element);for(const M of Object.keys(y))Gy.has(M)&&delete y[M];return f={...y,...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:_(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[y,M]of Object.entries(this._config))this.constructor.Default[y]!==M&&(f[y]=M);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 y=Ln.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof y[f]>"u")throw new TypeError(`No method named "${f}"`);y[f]()}})}}O(Ln);const c_="popover",d_=".popover-header",f_=".popover-body",h_={...Ln.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"},m_={...Ln.DefaultType,content:"(null|string|element|function)"};class va extends Ln{static get Default(){return h_}static get DefaultType(){return m_}static get NAME(){return c_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[d_]:this._getTitle(),[f_]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(f){return this.each(function(){const y=va.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof y[f]>"u")throw new TypeError(`No method named "${f}"`);y[f]()}})}}O(va);const p_="scrollspy",ul=".bs.scrollspy",g_=".data-api",v_=`activate${ul}`,gd=`click${ul}`,b_=`load${ul}${g_}`,y_="dropdown-item",_i="active",__='[data-bs-spy="scroll"]',cl="[href]",E_=".nav, .list-group",vd=".nav-link",w_=`${vd}, .nav-item > ${vd}, .list-group-item`,C_=".dropdown",A_=".dropdown-toggle",S_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},x_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ur extends me{constructor(f,y){super(f,y),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 S_}static get DefaultType(){return x_}static get NAME(){return p_}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=_(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(y=>Number.parseFloat(y))),f}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(J.off(this._config.target,gd),J.on(this._config.target,gd,cl,f=>{const y=this._observableSections.get(f.target.hash);if(y){f.preventDefault();const M=this._rootElement||window,ae=y.offsetTop-this._element.offsetTop;if(M.scrollTo){M.scrollTo({top:ae,behavior:"smooth"});return}M.scrollTop=ae}}))}_getNewObserver(){const f={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(y=>this._observerCallback(y),f)}_observerCallback(f){const y=be=>this._targetLinks.get(`#${be.target.id}`),M=be=>{this._previousScrollData.visibleEntryTop=be.target.offsetTop,this._process(y(be))},ae=(this._rootElement||document.documentElement).scrollTop,_e=ae>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ae;for(const be of f){if(!be.isIntersecting){this._activeTarget=null,this._clearActiveClass(y(be));continue}const We=be.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(_e&&We){if(M(be),!ae)return;continue}!_e&&!We&&M(be)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const f=z.find(cl,this._config.target);for(const y of f){if(!y.hash||C(y))continue;const M=z.findOne(decodeURI(y.hash),this._element);x(M)&&(this._targetLinks.set(decodeURI(y.hash),y),this._observableSections.set(y.hash,M))}}_process(f){this._activeTarget!==f&&(this._clearActiveClass(this._config.target),this._activeTarget=f,f.classList.add(_i),this._activateParents(f),J.trigger(this._element,v_,{relatedTarget:f}))}_activateParents(f){if(f.classList.contains(y_)){z.findOne(A_,f.closest(C_)).classList.add(_i);return}for(const y of z.parents(f,E_))for(const M of z.prev(y,w_))M.classList.add(_i)}_clearActiveClass(f){f.classList.remove(_i);const y=z.find(`${cl}.${_i}`,f);for(const M of y)M.classList.remove(_i)}static jQueryInterface(f){return this.each(function(){const y=ur.getOrCreateInstance(this,f);if(typeof f=="string"){if(y[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);y[f]()}})}}J.on(window,b_,()=>{for(const D of z.find(__))ur.getOrCreateInstance(D)}),O(ur);const $_="tab",Fn=".bs.tab",T_=`hide${Fn}`,O_=`hidden${Fn}`,N_=`show${Fn}`,k_=`shown${Fn}`,P_=`click${Fn}`,D_=`keydown${Fn}`,R_=`load${Fn}`,M_="ArrowLeft",bd="ArrowRight",I_="ArrowUp",yd="ArrowDown",dl="Home",_d="End",Vn="active",Ed="fade",fl="show",q_="dropdown",wd=".dropdown-toggle",L_=".dropdown-menu",hl=`:not(${wd})`,F_='.list-group, .nav, [role="tablist"]',V_=".nav-item, .list-group-item",Q_=`.nav-link${hl}, .list-group-item${hl}, [role="tab"]${hl}`,Cd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ml=`${Q_}, ${Cd}`,j_=`.${Vn}[data-bs-toggle="tab"], .${Vn}[data-bs-toggle="pill"], .${Vn}[data-bs-toggle="list"]`;class Qn extends me{constructor(f){super(f),this._parent=this._element.closest(F_),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),J.on(this._element,D_,y=>this._keydown(y)))}static get NAME(){return $_}show(){const f=this._element;if(this._elemIsActive(f))return;const y=this._getActiveElem(),M=y?J.trigger(y,T_,{relatedTarget:f}):null;J.trigger(f,N_,{relatedTarget:y}).defaultPrevented||M&&M.defaultPrevented||(this._deactivate(y,f),this._activate(f,y))}_activate(f,y){if(!f)return;f.classList.add(Vn),this._activate(z.getElementFromSelector(f));const M=()=>{if(f.getAttribute("role")!=="tab"){f.classList.add(fl);return}f.removeAttribute("tabindex"),f.setAttribute("aria-selected",!0),this._toggleDropDown(f,!0),J.trigger(f,k_,{relatedTarget:y})};this._queueCallback(M,f,f.classList.contains(Ed))}_deactivate(f,y){if(!f)return;f.classList.remove(Vn),f.blur(),this._deactivate(z.getElementFromSelector(f));const M=()=>{if(f.getAttribute("role")!=="tab"){f.classList.remove(fl);return}f.setAttribute("aria-selected",!1),f.setAttribute("tabindex","-1"),this._toggleDropDown(f,!1),J.trigger(f,O_,{relatedTarget:y})};this._queueCallback(M,f,f.classList.contains(Ed))}_keydown(f){if(![M_,bd,I_,yd,dl,_d].includes(f.key))return;f.stopPropagation(),f.preventDefault();const y=this._getChildren().filter(ae=>!C(ae));let M;if([dl,_d].includes(f.key))M=y[f.key===dl?0:y.length-1];else{const ae=[bd,yd].includes(f.key);M=X(y,f.target,ae,!0)}M&&(M.focus({preventScroll:!0}),Qn.getOrCreateInstance(M).show())}_getChildren(){return z.find(ml,this._parent)}_getActiveElem(){return this._getChildren().find(f=>this._elemIsActive(f))||null}_setInitialAttributes(f,y){this._setAttributeIfNotExists(f,"role","tablist");for(const M of y)this._setInitialAttributesOnChild(M)}_setInitialAttributesOnChild(f){f=this._getInnerElement(f);const y=this._elemIsActive(f),M=this._getOuterElement(f);f.setAttribute("aria-selected",y),M!==f&&this._setAttributeIfNotExists(M,"role","presentation"),y||f.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(f,"role","tab"),this._setInitialAttributesOnTargetPanel(f)}_setInitialAttributesOnTargetPanel(f){const y=z.getElementFromSelector(f);y&&(this._setAttributeIfNotExists(y,"role","tabpanel"),f.id&&this._setAttributeIfNotExists(y,"aria-labelledby",`${f.id}`))}_toggleDropDown(f,y){const M=this._getOuterElement(f);if(!M.classList.contains(q_))return;const ae=(_e,be)=>{const We=z.findOne(_e,M);We&&We.classList.toggle(be,y)};ae(wd,Vn),ae(L_,fl),M.setAttribute("aria-expanded",y)}_setAttributeIfNotExists(f,y,M){f.hasAttribute(y)||f.setAttribute(y,M)}_elemIsActive(f){return f.classList.contains(Vn)}_getInnerElement(f){return f.matches(ml)?f:z.findOne(ml,f)}_getOuterElement(f){return f.closest(V_)||f}static jQueryInterface(f){return this.each(function(){const y=Qn.getOrCreateInstance(this);if(typeof f=="string"){if(y[f]===void 0||f.startsWith("_")||f==="constructor")throw new TypeError(`No method named "${f}"`);y[f]()}})}}J.on(document,P_,Cd,function(D){["A","AREA"].includes(this.tagName)&&D.preventDefault(),!C(this)&&Qn.getOrCreateInstance(this).show()}),J.on(window,R_,()=>{for(const D of z.find(j_))Qn.getOrCreateInstance(D)}),O(Qn);const B_="toast",mn=".bs.toast",U_=`mouseover${mn}`,K_=`mouseout${mn}`,H_=`focusin${mn}`,G_=`focusout${mn}`,W_=`hide${mn}`,z_=`hidden${mn}`,Y_=`show${mn}`,Z_=`shown${mn}`,J_="fade",Ad="hide",ba="show",ya="showing",X_={animation:"boolean",autohide:"boolean",delay:"number"},e1={animation:!0,autohide:!0,delay:5e3};class cr extends me{constructor(f,y){super(f,y),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return e1}static get DefaultType(){return X_}static get NAME(){return B_}show(){if(J.trigger(this._element,Y_).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(J_);const y=()=>{this._element.classList.remove(ya),J.trigger(this._element,Z_),this._maybeScheduleHide()};this._element.classList.remove(Ad),$(this._element),this._element.classList.add(ba,ya),this._queueCallback(y,this._element,this._config.animation)}hide(){if(!this.isShown()||J.trigger(this._element,W_).defaultPrevented)return;const y=()=>{this._element.classList.add(Ad),this._element.classList.remove(ya,ba),J.trigger(this._element,z_)};this._element.classList.add(ya),this._queueCallback(y,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ba),super.dispose()}isShown(){return this._element.classList.contains(ba)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(f,y){switch(f.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=y;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=y;break}}if(y){this._clearTimeout();return}const M=f.relatedTarget;this._element===M||this._element.contains(M)||this._maybeScheduleHide()}_setListeners(){J.on(this._element,U_,f=>this._onInteraction(f,!0)),J.on(this._element,K_,f=>this._onInteraction(f,!1)),J.on(this._element,H_,f=>this._onInteraction(f,!0)),J.on(this._element,G_,f=>this._onInteraction(f,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(f){return this.each(function(){const y=cr.getOrCreateInstance(this,f);if(typeof f=="string"){if(typeof y[f]>"u")throw new TypeError(`No method named "${f}"`);y[f](this)}})}}return de(cr),O(cr),{Alert:_t,Button:Pe,Carousel:gi,Collapse:bi,Dropdown:$s,Modal:qn,Offcanvas:Ws,Popover:va,ScrollSpy:ur,Tab:Qn,Toast:cr,Tooltip:Ln}}))})(Da)),Da.exports}G1();/**
|
|
7
|
+
* @vue/shared v3.5.22
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/function zu(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const gt={},Ti=[],Bs=()=>{},_m=()=>!1,Co=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Yu=e=>e.startsWith("onUpdate:"),Ot=Object.assign,Zu=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},W1=Object.prototype.hasOwnProperty,ut=(e,t)=>W1.call(e,t),Ve=Array.isArray,Oi=e=>Yr(e)==="[object Map]",Ao=e=>Yr(e)==="[object Set]",Rd=e=>Yr(e)==="[object Date]",je=e=>typeof e=="function",yt=e=>typeof e=="string",Ds=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",Em=e=>(ft(e)||je(e))&&je(e.then)&&je(e.catch),wm=Object.prototype.toString,Yr=e=>wm.call(e),z1=e=>Yr(e).slice(8,-1),Cm=e=>Yr(e)==="[object Object]",Ju=e=>yt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xr=zu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),So=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Y1=/-\w/g,Cs=So(e=>e.replace(Y1,t=>t.slice(1).toUpperCase())),Z1=/\B([A-Z])/g,Pn=So(e=>e.replace(Z1,"-$1").toLowerCase()),xo=So(e=>e.charAt(0).toUpperCase()+e.slice(1)),pl=So(e=>e?`on${xo(e)}`:""),Cn=(e,t)=>!Object.is(e,t),Ma=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Am=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Ha=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Sm=e=>{const t=yt(e)?Number(e):NaN;return isNaN(t)?e:t};let Md;const $o=()=>Md||(Md=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xu(e){if(Ve(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=yt(n)?tE(n):Xu(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(yt(e)||ft(e))return e}const J1=/;(?![^(]*\))/g,X1=/:([^]+)/,eE=/\/\*[^]*?\*\//g;function tE(e){const t={};return e.replace(eE,"").split(J1).forEach(s=>{if(s){const n=s.split(X1);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function De(e){let t="";if(yt(e))t=e;else if(Ve(e))for(let s=0;s<e.length;s++){const n=De(e[s]);n&&(t+=n+" ")}else if(ft(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const sE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",nE=zu(sE);function xm(e){return!!e||e===""}function iE(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=To(e[n],t[n]);return s}function To(e,t){if(e===t)return!0;let s=Rd(e),n=Rd(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ds(e),n=Ds(t),s||n)return e===t;if(s=Ve(e),n=Ve(t),s||n)return s&&n?iE(e,t):!1;if(s=ft(e),n=ft(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||!To(e[o],t[o]))return!1}}return String(e)===String(t)}function rE(e,t){return e.findIndex(s=>To(s,t))}const $m=e=>!!(e&&e.__v_isRef===!0),q=e=>yt(e)?e:e==null?"":Ve(e)||ft(e)&&(e.toString===wm||!je(e.toString))?$m(e)?q(e.value):JSON.stringify(e,Tm,2):String(e),Tm=(e,t)=>$m(t)?Tm(e,t.value):Oi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[gl(n,r)+" =>"]=i,s),{})}:Ao(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>gl(s))}:Ds(t)?gl(t):ft(t)&&!Ve(t)&&!Cm(t)?String(t):t,gl=(e,t="")=>{var s;return Ds(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
11
|
+
* @vue/reactivity v3.5.22
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/let Lt;class Om{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Lt,!t&&Lt&&(this.index=(Lt.scopes||(Lt.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=Lt;try{return Lt=this,t()}finally{Lt=s}}}on(){++this._on===1&&(this.prevScope=Lt,Lt=this)}off(){this._on>0&&--this._on===0&&(Lt=this.prevScope,this.prevScope=void 0)}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 Nm(e){return new Om(e)}function km(){return Lt}function ec(e,t=!1){Lt&&Lt.cleanups.push(e)}let vt;const vl=new WeakSet;class Pm{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,Lt&&Lt.active&&Lt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,vl.has(this)&&(vl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Rm(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Id(this),Mm(this);const t=vt,s=Ps;vt=this,Ps=!0;try{return this.fn()}finally{Im(this),vt=t,Ps=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nc(t);this.deps=this.depsTail=void 0,Id(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?vl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){jl(this)&&this.run()}get dirty(){return jl(this)}}let Dm=0,$r,Tr;function Rm(e,t=!1){if(e.flags|=8,t){e.next=Tr,Tr=e;return}e.next=$r,$r=e}function tc(){Dm++}function sc(){if(--Dm>0)return;if(Tr){let t=Tr;for(Tr=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;$r;){let t=$r;for($r=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 Mm(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Im(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),nc(n),aE(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function jl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qm(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qm(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir)||(e.globalVersion=Ir,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!jl(e))))return;e.flags|=2;const t=e.dep,s=vt,n=Ps;vt=e,Ps=!0;try{Mm(e);const i=e.fn(e._value);(t.version===0||Cn(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{vt=s,Ps=n,Im(e),e.flags&=-3}}function nc(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)nc(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function aE(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ps=!0;const Lm=[];function ln(){Lm.push(Ps),Ps=!1}function un(){const e=Lm.pop();Ps=e===void 0?!0:e}function Id(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=vt;vt=void 0;try{t()}finally{vt=s}}}let Ir=0;class oE{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 ic{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,this.__v_skip=!0}track(t){if(!vt||!Ps||vt===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==vt)s=this.activeLink=new oE(vt,this),vt.deps?(s.prevDep=vt.depsTail,vt.depsTail.nextDep=s,vt.depsTail=s):vt.deps=vt.depsTail=s,Fm(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=vt.depsTail,s.nextDep=void 0,vt.depsTail.nextDep=s,vt.depsTail=s,vt.deps===s&&(vt.deps=n)}return s}trigger(t){this.version++,Ir++,this.notify(t)}notify(t){tc();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{sc()}}}function Fm(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)Fm(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Ga=new WeakMap,ei=Symbol(""),Bl=Symbol(""),qr=Symbol("");function Vt(e,t,s){if(Ps&&vt){let n=Ga.get(e);n||Ga.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new ic),i.map=n,i.key=s),i.track()}}function sn(e,t,s,n,i,r){const o=Ga.get(e);if(!o){Ir++;return}const l=u=>{u&&u.trigger()};if(tc(),t==="clear")o.forEach(l);else{const u=Ve(e),d=u&&Ju(s);if(u&&s==="length"){const c=Number(n);o.forEach((h,p)=>{(p==="length"||p===qr||!Ds(p)&&p>=c)&&l(h)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(qr)),t){case"add":u?d&&l(o.get("length")):(l(o.get(ei)),Oi(e)&&l(o.get(Bl)));break;case"delete":u||(l(o.get(ei)),Oi(e)&&l(o.get(Bl)));break;case"set":Oi(e)&&l(o.get(ei));break}}sc()}function lE(e,t){const s=Ga.get(e);return s&&s.get(t)}function wi(e){const t=nt(e);return t===e?t:(Vt(t,"iterate",qr),ws(e)?t:t.map(Pt))}function Oo(e){return Vt(e=nt(e),"iterate",qr),e}const uE={__proto__:null,[Symbol.iterator](){return bl(this,Symbol.iterator,Pt)},concat(...e){return wi(this).concat(...e.map(t=>Ve(t)?wi(t):t))},entries(){return bl(this,"entries",e=>(e[1]=Pt(e[1]),e))},every(e,t){return zs(this,"every",e,t,void 0,arguments)},filter(e,t){return zs(this,"filter",e,t,s=>s.map(Pt),arguments)},find(e,t){return zs(this,"find",e,t,Pt,arguments)},findIndex(e,t){return zs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return zs(this,"findLast",e,t,Pt,arguments)},findLastIndex(e,t){return zs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return zs(this,"forEach",e,t,void 0,arguments)},includes(...e){return yl(this,"includes",e)},indexOf(...e){return yl(this,"indexOf",e)},join(e){return wi(this).join(e)},lastIndexOf(...e){return yl(this,"lastIndexOf",e)},map(e,t){return zs(this,"map",e,t,void 0,arguments)},pop(){return dr(this,"pop")},push(...e){return dr(this,"push",e)},reduce(e,...t){return qd(this,"reduce",e,t)},reduceRight(e,...t){return qd(this,"reduceRight",e,t)},shift(){return dr(this,"shift")},some(e,t){return zs(this,"some",e,t,void 0,arguments)},splice(...e){return dr(this,"splice",e)},toReversed(){return wi(this).toReversed()},toSorted(e){return wi(this).toSorted(e)},toSpliced(...e){return wi(this).toSpliced(...e)},unshift(...e){return dr(this,"unshift",e)},values(){return bl(this,"values",Pt)}};function bl(e,t,s){const n=Oo(e),i=n[t]();return n!==e&&!ws(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const cE=Array.prototype;function zs(e,t,s,n,i,r){const o=Oo(e),l=o!==e&&!ws(e),u=o[t];if(u!==cE[t]){const h=u.apply(e,r);return l?Pt(h):h}let d=s;o!==e&&(l?d=function(h,p){return s.call(this,Pt(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 qd(e,t,s,n){const i=Oo(e);let r=s;return i!==e&&(ws(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,Pt(l),u,e)}),i[t](r,...n)}function yl(e,t,s){const n=nt(e);Vt(n,"iterate",qr);const i=n[t](...s);return(i===-1||i===!1)&&rc(s[0])?(s[0]=nt(s[0]),n[t](...s)):i}function dr(e,t,s=[]){ln(),tc();const n=nt(e)[t].apply(e,s);return sc(),un(),n}const dE=zu("__proto__,__v_isRef,__isVue"),Vm=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ds));function fE(e){Ds(e)||(e=String(e));const t=nt(this);return Vt(t,"has",e),t.hasOwnProperty(e)}class Qm{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?Gm:Hm:r?Km:Um).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Ve(t);if(!i){let u;if(o&&(u=uE[s]))return u;if(s==="hasOwnProperty")return fE}const l=Reflect.get(t,s,ht(t)?t:n);if((Ds(s)?Vm.has(s):dE(s))||(i||Vt(t,"get",s),r))return l;if(ht(l)){const u=o&&Ju(s)?l:l.value;return i&&ft(u)?Vi(u):u}return ft(l)?i?Vi(l):As(l):l}}class jm extends Qm{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];if(!this._isShallow){const u=$n(r);if(!ws(n)&&!$n(n)&&(r=nt(r),n=nt(n)),!Ve(t)&&ht(r)&&!ht(n))return u||(r.value=n),!0}const o=Ve(t)&&Ju(s)?Number(s)<t.length:ut(t,s),l=Reflect.set(t,s,n,ht(t)?t:i);return t===nt(i)&&(o?Cn(n,r)&&sn(t,"set",s,n):sn(t,"add",s,n)),l}deleteProperty(t,s){const n=ut(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&sn(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!Ds(s)||!Vm.has(s))&&Vt(t,"has",s),n}ownKeys(t){return Vt(t,"iterate",Ve(t)?"length":ei),Reflect.ownKeys(t)}}class Bm extends Qm{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const hE=new jm,mE=new Bm,pE=new jm(!0),gE=new Bm(!0),Ul=e=>e,wa=e=>Reflect.getPrototypeOf(e);function vE(e,t,s){return function(...n){const i=this.__v_raw,r=nt(i),o=Oi(r),l=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=i[e](...n),c=s?Ul:t?Wa:Pt;return!t&&Vt(r,"iterate",u?Bl:ei),{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 Ca(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function bE(e,t){const s={get(i){const r=this.__v_raw,o=nt(r),l=nt(i);e||(Cn(i,l)&&Vt(o,"get",i),Vt(o,"get",l));const{has:u}=wa(o),d=t?Ul:e?Wa:Pt;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&&Vt(nt(i),"iterate",ei),i.size},has(i){const r=this.__v_raw,o=nt(r),l=nt(i);return e||(Cn(i,l)&&Vt(o,"has",i),Vt(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=nt(l),d=t?Ul:e?Wa:Pt;return!e&&Vt(u,"iterate",ei),l.forEach((c,h)=>i.call(r,d(c),d(h),o))}};return Ot(s,e?{add:Ca("add"),set:Ca("set"),delete:Ca("delete"),clear:Ca("clear")}:{add(i){!t&&!ws(i)&&!$n(i)&&(i=nt(i));const r=nt(this);return wa(r).has.call(r,i)||(r.add(i),sn(r,"add",i,i)),this},set(i,r){!t&&!ws(r)&&!$n(r)&&(r=nt(r));const o=nt(this),{has:l,get:u}=wa(o);let d=l.call(o,i);d||(i=nt(i),d=l.call(o,i));const c=u.call(o,i);return o.set(i,r),d?Cn(r,c)&&sn(o,"set",i,r):sn(o,"add",i,r),this},delete(i){const r=nt(this),{has:o,get:l}=wa(r);let u=o.call(r,i);u||(i=nt(i),u=o.call(r,i)),l&&l.call(r,i);const d=r.delete(i);return u&&sn(r,"delete",i,void 0),d},clear(){const i=nt(this),r=i.size!==0,o=i.clear();return r&&sn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=vE(i,e,t)}),s}function No(e,t){const s=bE(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ut(s,i)&&i in n?s:n,i,r)}const yE={get:No(!1,!1)},_E={get:No(!1,!0)},EE={get:No(!0,!1)},wE={get:No(!0,!0)},Um=new WeakMap,Km=new WeakMap,Hm=new WeakMap,Gm=new WeakMap;function CE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function AE(e){return e.__v_skip||!Object.isExtensible(e)?0:CE(z1(e))}function As(e){return $n(e)?e:Po(e,!1,hE,yE,Um)}function ko(e){return Po(e,!1,pE,_E,Km)}function Vi(e){return Po(e,!0,mE,EE,Hm)}function Wm(e){return Po(e,!0,gE,wE,Gm)}function Po(e,t,s,n,i){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=AE(e);if(r===0)return e;const o=i.get(e);if(o)return o;const l=new Proxy(e,r===2?n:s);return i.set(e,l),l}function An(e){return $n(e)?An(e.__v_raw):!!(e&&e.__v_isReactive)}function $n(e){return!!(e&&e.__v_isReadonly)}function ws(e){return!!(e&&e.__v_isShallow)}function rc(e){return e?!!e.__v_raw:!1}function nt(e){const t=e&&e.__v_raw;return t?nt(t):e}function ac(e){return!ut(e,"__v_skip")&&Object.isExtensible(e)&&Am(e,"__v_skip",!0),e}const Pt=e=>ft(e)?As(e):e,Wa=e=>ft(e)?Vi(e):e;function ht(e){return e?e.__v_isRef===!0:!1}function ye(e){return Ym(e,!1)}function zm(e){return Ym(e,!0)}function Ym(e,t){return ht(e)?e:new SE(e,t)}class SE{constructor(t,s){this.dep=new ic,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:nt(t),this._value=s?t:Pt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ws(t)||$n(t);t=n?t:nt(t),Cn(t,s)&&(this._rawValue=t,this._value=n?t:Pt(t),this.dep.trigger())}}function T(e){return ht(e)?e.value:e}function Fe(e){return je(e)?e():T(e)}const xE={get:(e,t,s)=>t==="__v_raw"?e:T(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return ht(i)&&!ht(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Zm(e){return An(e)?e:new Proxy(e,xE)}function oc(e){const t=Ve(e)?new Array(e.length):{};for(const s in e)t[s]=Jm(e,s);return t}class $E{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 lE(nt(this._object),this._key)}}class TE{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 Gn(e,t,s){return ht(e)?e:je(e)?new TE(e):ft(e)&&arguments.length>1?Jm(e,t,s):ye(e)}function Jm(e,t,s){const n=e[t];return ht(n)?n:new $E(e,t,s)}class OE{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ic(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&vt!==this)return Rm(this,!0),!0}get value(){const t=this.dep.track();return qm(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function NE(e,t,s=!1){let n,i;return je(e)?n=e:(n=e.get,i=e.set),new OE(n,i,s)}const Aa={},za=new WeakMap;let Hn;function kE(e,t=!1,s=Hn){if(s){let n=za.get(s);n||za.set(s,n=[]),n.push(e)}}function PE(e,t,s=gt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:l,call:u}=s,d=b=>i?b:ws(b)||i===!1||i===0?nn(b,1):nn(b);let c,h,p,m,g=!1,E=!1;if(ht(e)?(h=()=>e.value,g=ws(e)):An(e)?(h=()=>d(e),g=!0):Ve(e)?(E=!0,g=e.some(b=>An(b)||ws(b)),h=()=>e.map(b=>{if(ht(b))return b.value;if(An(b))return d(b);if(je(b))return u?u(b,2):b()})):je(e)?t?h=u?()=>u(e,2):e:h=()=>{if(p){ln();try{p()}finally{un()}}const b=Hn;Hn=c;try{return u?u(e,3,[m]):e(m)}finally{Hn=b}}:h=Bs,t&&i){const b=h,$=i===!0?1/0:i;h=()=>nn(b(),$)}const _=km(),x=()=>{c.stop(),_&&_.active&&Zu(_.effects,c)};if(r&&t){const b=t;t=(...$)=>{b(...$),x()}}let C=E?new Array(e.length).fill(Aa):Aa;const A=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const $=c.run();if(i||g||(E?$.some((L,F)=>Cn(L,C[F])):Cn($,C))){p&&p();const L=Hn;Hn=c;try{const F=[$,C===Aa?void 0:E&&C[0]===Aa?[]:C,m];C=$,u?u(t,3,F):t(...F)}finally{Hn=L}}}else c.run()};return l&&l(A),c=new Pm(h),c.scheduler=o?()=>o(A,!1):A,m=b=>kE(b,!1,c),p=c.onStop=()=>{const b=za.get(c);if(b){if(u)u(b,4);else for(const $ of b)$();za.delete(c)}},t?n?A(!0):C=c.run():o?o(A.bind(null,!0),!0):c.run(),x.pause=c.pause.bind(c),x.resume=c.resume.bind(c),x.stop=x,x}function nn(e,t=1/0,s){if(t<=0||!ft(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ht(e))nn(e.value,t,s);else if(Ve(e))for(let n=0;n<e.length;n++)nn(e[n],t,s);else if(Ao(e)||Oi(e))e.forEach(n=>{nn(n,t,s)});else if(Cm(e)){for(const n in e)nn(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&nn(e[n],t,s)}return e}/**
|
|
15
|
+
* @vue/runtime-core v3.5.22
|
|
16
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
|
+
* @license MIT
|
|
18
|
+
**/function Zr(e,t,s,n){try{return n?e(...n):e()}catch(i){Jr(i,t,s)}}function Rs(e,t,s,n){if(je(e)){const i=Zr(e,t,s,n);return i&&Em(i)&&i.catch(r=>{Jr(r,t,s)}),i}if(Ve(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Rs(e[r],t,s,n));return i}}function Jr(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||gt;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){ln(),Zr(r,null,10,[e,u,d]),un();return}}DE(e,s,i,n,o)}function DE(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const Gt=[];let Vs=-1;const Ni=[];let bn=null,Si=0;const Xm=Promise.resolve();let Ya=null;function kt(e){const t=Ya||Xm;return e?t.then(this?e.bind(this):e):t}function RE(e){let t=Vs+1,s=Gt.length;for(;t<s;){const n=t+s>>>1,i=Gt[n],r=Lr(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function lc(e){if(!(e.flags&1)){const t=Lr(e),s=Gt[Gt.length-1];!s||!(e.flags&2)&&t>=Lr(s)?Gt.push(e):Gt.splice(RE(t),0,e),e.flags|=1,ep()}}function ep(){Ya||(Ya=Xm.then(sp))}function Kl(e){Ve(e)?Ni.push(...e):bn&&e.id===-1?bn.splice(Si+1,0,e):e.flags&1||(Ni.push(e),e.flags|=1),ep()}function Ld(e,t,s=Vs+1){for(;s<Gt.length;s++){const n=Gt[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Gt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function tp(e){if(Ni.length){const t=[...new Set(Ni)].sort((s,n)=>Lr(s)-Lr(n));if(Ni.length=0,bn){bn.push(...t);return}for(bn=t,Si=0;Si<bn.length;Si++){const s=bn[Si];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}bn=null,Si=0}}const Lr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function sp(e){try{for(Vs=0;Vs<Gt.length;Vs++){const t=Gt[Vs];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Zr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Vs<Gt.length;Vs++){const t=Gt[Vs];t&&(t.flags&=-2)}Vs=-1,Gt.length=0,tp(),Ya=null,(Gt.length||Ni.length)&&sp()}}let Mt=null,np=null;function Za(e){const t=Mt;return Mt=e,np=e&&e.type.__scopeId||null,t}function qe(e,t=Mt,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&eo(-1);const r=Za(t);let o;try{o=e(...i)}finally{Za(r),n._d&&eo(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ss(e,t){if(Mt===null)return e;const s=Lo(Mt),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,l,u=gt]=t[i];r&&(je(r)&&(r={mounted:r,updated:r}),r.deep&&nn(o),n.push({dir:r,instance:s,value:o,oldValue:void 0,arg:l,modifiers:u}))}return e}function jn(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&&(ln(),Rs(u,s,8,[e.el,l,e,t]),un())}}const ip=Symbol("_vte"),rp=e=>e.__isTeleport,Or=e=>e&&(e.disabled||e.disabled===""),Fd=e=>e&&(e.defer||e.defer===""),Vd=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Qd=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hl=(e,t)=>{const s=e&&e.to;return yt(s)?t?t(s):null:s},ap={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:E,createComment:_}}=d,x=Or(t.props);let{shapeFlag:C,children:A,dynamicChildren:b}=t;if(e==null){const $=t.el=E(""),L=t.anchor=E("");m($,s,n),m(L,s,n);const F=(w,O)=>{C&16&&c(A,w,O,i,r,o,l,u)},I=()=>{const w=t.target=Hl(t.props,g),O=op(w,t,E,m);w&&(o!=="svg"&&Vd(w)?o="svg":o!=="mathml"&&Qd(w)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(w),x||(F(w,O),Ia(t,!1)))};x&&(F(s,L),Ia(t,!0)),Fd(t.props)?(t.el.__isMounted=!1,Kt(()=>{I(),delete t.el.__isMounted},r)):I()}else{if(Fd(t.props)&&e.el.__isMounted===!1){Kt(()=>{ap.process(e,t,s,n,i,r,o,l,u,d)},r);return}t.el=e.el,t.targetStart=e.targetStart;const $=t.anchor=e.anchor,L=t.target=e.target,F=t.targetAnchor=e.targetAnchor,I=Or(e.props),w=I?s:L,O=I?$:F;if(o==="svg"||Vd(L)?o="svg":(o==="mathml"||Qd(L))&&(o="mathml"),b?(p(e.dynamicChildren,b,w,i,r,o,l),fc(e,t,!0)):u||h(e,t,w,O,i,r,o,l,!1),x)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sa(t,s,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const S=t.target=Hl(t.props,g);S&&Sa(t,S,null,d,0)}else I&&Sa(t,L,F,d,1);Ia(t,x)}},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||!Or(p);for(let g=0;g<l.length;g++){const E=l[g];n(E,t,s,m,!!E.dynamicChildren)}}},move:Sa,hydrate:ME};function Sa(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||Or(c))&&u&16)for(let p=0;p<d.length;p++)i(d[p],t,s,2);h&&n(l,t,s)}function ME(e,t,s,n,i,r,{o:{nextSibling:o,parentNode:l,querySelector:u,insert:d,createText:c}},h){function p(E,_,x,C){_.anchor=h(o(E),_,l(E),s,n,i,r),_.targetStart=x,_.targetAnchor=C}const m=t.target=Hl(t.props,u),g=Or(t.props);if(m){const E=m._lpa||m.firstChild;if(t.shapeFlag&16)if(g)p(e,t,E,E&&o(E));else{t.anchor=o(e);let _=E;for(;_;){if(_&&_.nodeType===8){if(_.data==="teleport start anchor")t.targetStart=_;else if(_.data==="teleport anchor"){t.targetAnchor=_,m._lpa=t.targetAnchor&&o(t.targetAnchor);break}}_=o(_)}t.targetAnchor||op(m,t,c,d),h(E&&o(E),t,m,s,n,i,r)}Ia(t,g)}else g&&t.shapeFlag&16&&p(e,t,e,o(e));return t.anchor&&o(t.anchor)}const IE=ap;function Ia(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 op(e,t,s,n){const i=t.targetStart=s(""),r=t.targetAnchor=s("");return i[ip]=r,e&&(n(i,e),n(r,e)),r}const tn=Symbol("_leaveCb"),xa=Symbol("_enterCb");function qE(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bt(()=>{e.isMounted=!0}),Ji(()=>{e.isUnmounting=!0}),e}const bs=[Function,Array],lp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bs,onEnter:bs,onAfterEnter:bs,onEnterCancelled:bs,onBeforeLeave:bs,onLeave:bs,onAfterLeave:bs,onLeaveCancelled:bs,onBeforeAppear:bs,onAppear:bs,onAfterAppear:bs,onAppearCancelled:bs},up=e=>{const t=e.subTree;return t.component?up(t.component):t},LE={name:"BaseTransition",props:lp,setup(e,{slots:t}){const s=hi(),n=qE();return()=>{const i=t.default&&fp(t.default(),!0);if(!i||!i.length)return;const r=cp(i),o=nt(e),{mode:l}=o;if(n.isLeaving)return _l(r);const u=jd(r);if(!u)return _l(r);let d=Gl(u,o,n,s,h=>d=h);u.type!==Tt&&Fr(u,d);let c=s.subTree&&jd(s.subTree);if(c&&c.type!==Tt&&!Qs(c,u)&&up(s).type!==Tt){let h=Gl(c,o,n,s);if(Fr(c,h),l==="out-in"&&u.type!==Tt)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete h.afterLeave,c=void 0},_l(r);l==="in-out"&&u.type!==Tt?h.delayLeave=(p,m,g)=>{const E=dp(n,c);E[String(c.key)]=c,p[tn]=()=>{m(),p[tn]=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 cp(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Tt){t=s;break}}return t}const FE=LE;function dp(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 Gl(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:E,onBeforeAppear:_,onAppear:x,onAfterAppear:C,onAppearCancelled:A}=t,b=String(e.key),$=dp(s,e),L=(w,O)=>{w&&Rs(w,n,9,O)},F=(w,O)=>{const S=O[1];L(w,O),Ve(w)?w.every(j=>j.length<=1)&&S():w.length<=1&&S()},I={mode:o,persisted:l,beforeEnter(w){let O=u;if(!s.isMounted)if(r)O=_||u;else return;w[tn]&&w[tn](!0);const S=$[b];S&&Qs(e,S)&&S.el[tn]&&S.el[tn](),L(O,[w])},enter(w){let O=d,S=c,j=h;if(!s.isMounted)if(r)O=x||d,S=C||c,j=A||h;else return;let X=!1;const W=w[xa]=fe=>{X||(X=!0,fe?L(j,[w]):L(S,[w]),I.delayedLeave&&I.delayedLeave(),w[xa]=void 0)};O?F(O,[w,W]):W()},leave(w,O){const S=String(e.key);if(w[xa]&&w[xa](!0),s.isUnmounting)return O();L(p,[w]);let j=!1;const X=w[tn]=W=>{j||(j=!0,O(),W?L(E,[w]):L(g,[w]),w[tn]=void 0,$[S]===e&&delete $[S])};$[S]=e,m?F(m,[w,X]):X()},clone(w){const O=Gl(w,t,s,n,i);return i&&i(O),O}};return I}function _l(e){if(Do(e))return e=Tn(e),e.children=null,e}function jd(e){if(!Do(e))return rp(e.type)&&e.children?cp(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&je(s.default))return s.default()}}function Fr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fr(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 fp(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===Ae?(o.patchFlag&128&&i++,n=n.concat(fp(o.children,t,l))):(t||o.type!==Tt)&&n.push(l!=null?Tn(o,{key:l}):o)}if(i>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function Ue(e,t){return je(e)?Ot({name:e.name},t,{setup:e}):e}function hp(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ja=new WeakMap;function Nr(e,t,s,n,i=!1){if(Ve(e)){e.forEach((g,E)=>Nr(g,t&&(Ve(t)?t[E]:t),s,n,i));return}if(ki(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Nr(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Lo(n.component):n.el,o=i?null:r,{i:l,r:u}=e,d=t&&t.r,c=l.refs===gt?l.refs={}:l.refs,h=l.setupState,p=nt(h),m=h===gt?_m:g=>ut(p,g);if(d!=null&&d!==u){if(Bd(t),yt(d))c[d]=null,m(d)&&(h[d]=null);else if(ht(d)){d.value=null;const g=t;g.k&&(c[g.k]=null)}}if(je(u))Zr(u,l,12,[o,c]);else{const g=yt(u),E=ht(u);if(g||E){const _=()=>{if(e.f){const x=g?m(u)?h[u]:c[u]:u.value;if(i)Ve(x)&&Zu(x,r);else if(Ve(x))x.includes(r)||x.push(r);else if(g)c[u]=[r],m(u)&&(h[u]=c[u]);else{const C=[r];u.value=C,e.k&&(c[e.k]=C)}}else g?(c[u]=o,m(u)&&(h[u]=o)):E&&(u.value=o,e.k&&(c[e.k]=o))};if(o){const x=()=>{_(),Ja.delete(e)};x.id=-1,Ja.set(e,x),Kt(x,s)}else Bd(e),_()}}}function Bd(e){const t=Ja.get(e);t&&(t.flags|=8,Ja.delete(e))}$o().requestIdleCallback;$o().cancelIdleCallback;const ki=e=>!!e.type.__asyncLoader,Do=e=>e.type.__isKeepAlive;function VE(e,t){mp(e,"a",t)}function QE(e,t){mp(e,"da",t)}function mp(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(Ro(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Do(i.parent.vnode)&&jE(n,t,s,i),i=i.parent}}function jE(e,t,s,n){const i=Ro(t,e,n,!0);uc(()=>{Zu(n[t],i)},s)}function Ro(e,t,s=Qt,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...o)=>{ln();const l=Xr(s),u=Rs(t,s,e,o);return l(),un(),u});return n?i.unshift(r):i.push(r),r}}const dn=e=>(t,s=Qt)=>{(!Qr||e==="sp")&&Ro(e,(...n)=>t(...n),s)},BE=dn("bm"),Bt=dn("m"),UE=dn("bu"),KE=dn("u"),Ji=dn("bum"),uc=dn("um"),HE=dn("sp"),GE=dn("rtg"),WE=dn("rtc");function zE(e,t=Qt){Ro("ec",e,t)}const pp="components";function Ud(e,t){return vp(pp,e,!0,t)||e}const gp=Symbol.for("v-ndc");function Mo(e){return yt(e)?vp(pp,e,!1)||e:e||gp}function vp(e,t,s=!0,n=!1){const i=Mt||Qt;if(i){const r=i.type;{const l=jw(r,!1);if(l&&(l===t||l===Cs(t)||l===xo(Cs(t))))return r}const o=Kd(i[e]||r[e],t)||Kd(i.appContext[e],t);return!o&&n?r:o}}function Kd(e,t){return e&&(e[t]||e[Cs(t)]||e[xo(Cs(t))])}function bt(e,t,s,n){let i;const r=s,o=Ve(e);if(o||yt(e)){const l=o&&An(e);let u=!1,d=!1;l&&(u=!ws(e),d=$n(e),e=Oo(e)),i=new Array(e.length);for(let c=0,h=e.length;c<h;c++)i[c]=t(u?d?Wa(Pt(e[c])):Pt(e[c]):e[c],c,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(ft(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 Pi(e,t,s={},n,i){if(Mt.ce||Mt.parent&&ki(Mt.parent)&&Mt.parent.ce){const d=Object.keys(s).length>0;return t!=="default"&&(s.name=t),N(),at(Ae,null,[Ce("slot",s,n&&n())],d?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),N();const o=r&&bp(r(s)),l=s.key||o&&o.key,u=at(Ae,{key:(l&&!Ds(l)?l:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return r&&r._c&&(r._d=!0),u}function bp(e){return e.some(t=>ji(t)?!(t.type===Tt||t.type===Ae&&!bp(t.children)):!0)?e:null}const Wl=e=>e?Fp(e)?Lo(e):Wl(e.parent):null,kr=Ot(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=>Wl(e.parent),$root:e=>Wl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>_p(e),$forceUpdate:e=>e.f||(e.f=()=>{lc(e.update)}),$nextTick:e=>e.n||(e.n=kt.bind(e.proxy)),$watch:e=>gw.bind(e)}),El=(e,t)=>e!==gt&&!e.__isScriptSetup&&ut(e,t),YE={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(El(n,t))return o[t]=1,n[t];if(i!==gt&&ut(i,t))return o[t]=2,i[t];if((d=e.propsOptions[0])&&ut(d,t))return o[t]=3,r[t];if(s!==gt&&ut(s,t))return o[t]=4,s[t];zl&&(o[t]=0)}}const c=kr[t];let h,p;if(c)return t==="$attrs"&&Vt(e.attrs,"get",""),c(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(s!==gt&&ut(s,t))return o[t]=4,s[t];if(p=u.config.globalProperties,ut(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return El(i,t)?(i[t]=s,!0):n!==gt&&ut(n,t)?(n[t]=s,!0):ut(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,type:o}},l){let u,d;return!!(s[l]||e!==gt&&l[0]!=="$"&&ut(e,l)||El(t,l)||(u=r[0])&&ut(u,l)||ut(n,l)||ut(kr,l)||ut(i.config.globalProperties,l)||(d=o.__cssModules)&&d[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ut(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Hd(e){return Ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let zl=!0;function ZE(e){const t=_p(e),s=e.proxy,n=e.ctx;zl=!1,t.beforeCreate&&Gd(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:E,deactivated:_,beforeDestroy:x,beforeUnmount:C,destroyed:A,unmounted:b,render:$,renderTracked:L,renderTriggered:F,errorCaptured:I,serverPrefetch:w,expose:O,inheritAttrs:S,components:j,directives:X,filters:W}=t;if(d&&JE(d,n,null),o)for(const Q in o){const Z=o[Q];je(Z)&&(n[Q]=Z.bind(s))}if(i){const Q=i.call(s,s);ft(Q)&&(e.data=As(Q))}if(zl=!0,r)for(const Q in r){const Z=r[Q],Y=je(Z)?Z.bind(s,s):je(Z.get)?Z.get.bind(s,s):Bs,G=!je(Z)&&je(Z.set)?Z.set.bind(s):Bs,se=v({get:Y,set:G});Object.defineProperty(n,Q,{enumerable:!0,configurable:!0,get:()=>se.value,set:ue=>se.value=ue})}if(l)for(const Q in l)yp(l[Q],n,s,Q);if(u){const Q=je(u)?u.call(s):u;Reflect.ownKeys(Q).forEach(Z=>{si(Z,Q[Z])})}c&&Gd(c,e,"c");function ne(Q,Z){Ve(Z)?Z.forEach(Y=>Q(Y.bind(s))):Z&&Q(Z.bind(s))}if(ne(BE,h),ne(Bt,p),ne(UE,m),ne(KE,g),ne(VE,E),ne(QE,_),ne(zE,I),ne(WE,L),ne(GE,F),ne(Ji,C),ne(uc,b),ne(HE,w),Ve(O))if(O.length){const Q=e.exposed||(e.exposed={});O.forEach(Z=>{Object.defineProperty(Q,Z,{get:()=>s[Z],set:Y=>s[Z]=Y,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===Bs&&(e.render=$),S!=null&&(e.inheritAttrs=S),j&&(e.components=j),X&&(e.directives=X),w&&hp(e)}function JE(e,t,s=Bs){Ve(e)&&(e=Yl(e));for(const n in e){const i=e[n];let r;ft(i)?"default"in i?r=Yt(i.from||n,i.default,!0):r=Yt(i.from||n):r=Yt(i),ht(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r}}function Gd(e,t,s){Rs(Ve(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function yp(e,t,s,n){let i=n.includes(".")?Pp(s,n):()=>s[n];if(yt(e)){const r=t[e];je(r)&&Ye(i,r)}else if(je(e))Ye(i,e.bind(s));else if(ft(e))if(Ve(e))e.forEach(r=>yp(r,t,s,n));else{const r=je(e.handler)?e.handler.bind(s):t[e.handler];je(r)&&Ye(i,r,e)}}function _p(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=>Xa(u,d,o,!0)),Xa(u,t,o)),ft(t)&&r.set(t,u),u}function Xa(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&Xa(e,r,s,!0),i&&i.forEach(o=>Xa(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=XE[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const XE={data:Wd,props:zd,emits:zd,methods:yr,computed:yr,beforeCreate:Ut,created:Ut,beforeMount:Ut,mounted:Ut,beforeUpdate:Ut,updated:Ut,beforeDestroy:Ut,beforeUnmount:Ut,destroyed:Ut,unmounted:Ut,activated:Ut,deactivated:Ut,errorCaptured:Ut,serverPrefetch:Ut,components:yr,directives:yr,watch:tw,provide:Wd,inject:ew};function Wd(e,t){return t?e?function(){return Ot(je(e)?e.call(this,this):e,je(t)?t.call(this,this):t)}:t:e}function ew(e,t){return yr(Yl(e),Yl(t))}function Yl(e){if(Ve(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Ut(e,t){return e?[...new Set([].concat(e,t))]:t}function yr(e,t){return e?Ot(Object.create(null),e,t):t}function zd(e,t){return e?Ve(e)&&Ve(t)?[...new Set([...e,...t])]:Ot(Object.create(null),Hd(e),Hd(t??{})):t}function tw(e,t){if(!e)return t;if(!t)return e;const s=Ot(Object.create(null),e);for(const n in t)s[n]=Ut(e[n],t[n]);return s}function Ep(){return{app:null,config:{isNativeTag:_m,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 sw=0;function nw(e,t){return function(n,i=null){je(n)||(n=Ot({},n)),i!=null&&!ft(i)&&(i=null);const r=Ep(),o=new WeakSet,l=[];let u=!1;const d=r.app={_uid:sw++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Uw,get config(){return r.config},set config(c){},use(c,...h){return o.has(c)||(c&&je(c.install)?(o.add(c),c.install(d,...h)):je(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||Ce(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,Lo(m.component)}},onUnmount(c){l.push(c)},unmount(){u&&(Rs(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=ti;ti=d;try{return c()}finally{ti=h}}};return d}}let ti=null;function si(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 Yt(e,t,s=!1){const n=hi();if(n||ti){let i=ti?ti._context.provides:n?n.parent==null||n.ce?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&&je(t)?t.call(n&&n.proxy):t}}function wp(){return!!(hi()||ti)}const Cp={},Ap=()=>Object.create(Cp),Sp=e=>Object.getPrototypeOf(e)===Cp;function iw(e,t,s,n=!1){const i={},r=Ap();e.propsDefaults=Object.create(null),xp(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);s?e.props=n?i:ko(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function rw(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=nt(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(Io(e.emitsOptions,p))continue;const m=t[p];if(u)if(ut(r,p))m!==r[p]&&(r[p]=m,d=!0);else{const g=Cs(p);i[g]=Zl(u,l,g,m,e,!1)}else m!==r[p]&&(r[p]=m,d=!0)}}}else{xp(e,t,i,r)&&(d=!0);let c;for(const h in l)(!t||!ut(t,h)&&((c=Pn(h))===h||!ut(t,c)))&&(u?s&&(s[h]!==void 0||s[c]!==void 0)&&(i[h]=Zl(u,l,h,void 0,e,!0)):delete i[h]);if(r!==l)for(const h in r)(!t||!ut(t,h))&&(delete r[h],d=!0)}d&&sn(e.attrs,"set","")}function xp(e,t,s,n){const[i,r]=e.propsOptions;let o=!1,l;if(t)for(let u in t){if(xr(u))continue;const d=t[u];let c;i&&ut(i,c=Cs(u))?!r||!r.includes(c)?s[c]=d:(l||(l={}))[c]=d:Io(e.emitsOptions,u)||(!(u in n)||d!==n[u])&&(n[u]=d,o=!0)}if(r){const u=nt(s),d=l||gt;for(let c=0;c<r.length;c++){const h=r[c];s[h]=Zl(i,u,h,d[h],e,!ut(d,h))}}return o}function Zl(e,t,s,n,i,r){const o=e[s];if(o!=null){const l=ut(o,"default");if(l&&n===void 0){const u=o.default;if(o.type!==Function&&!o.skipFactory&&je(u)){const{propsDefaults:d}=i;if(s in d)n=d[s];else{const c=Xr(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===Pn(s))&&(n=!0))}return n}const aw=new WeakMap;function $p(e,t,s=!1){const n=s?aw:t.propsCache,i=n.get(e);if(i)return i;const r=e.props,o={},l=[];let u=!1;if(!je(e)){const c=h=>{u=!0;const[p,m]=$p(h,t,!0);Ot(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 ft(e)&&n.set(e,Ti),Ti;if(Ve(r))for(let c=0;c<r.length;c++){const h=Cs(r[c]);Yd(h)&&(o[h]=gt)}else if(r)for(const c in r){const h=Cs(c);if(Yd(h)){const p=r[c],m=o[h]=Ve(p)||je(p)?{type:p}:Ot({},p),g=m.type;let E=!1,_=!0;if(Ve(g))for(let x=0;x<g.length;++x){const C=g[x],A=je(C)&&C.name;if(A==="Boolean"){E=!0;break}else A==="String"&&(_=!1)}else E=je(g)&&g.name==="Boolean";m[0]=E,m[1]=_,(E||ut(m,"default"))&&l.push(h)}}const d=[o,l];return ft(e)&&n.set(e,d),d}function Yd(e){return e[0]!=="$"&&!xr(e)}const cc=e=>e==="_"||e==="_ctx"||e==="$stable",dc=e=>Ve(e)?e.map(Os):[Os(e)],ow=(e,t,s)=>{if(t._n)return t;const n=qe((...i)=>dc(t(...i)),s);return n._c=!1,n},Tp=(e,t,s)=>{const n=e._ctx;for(const i in e){if(cc(i))continue;const r=e[i];if(je(r))t[i]=ow(i,r,n);else if(r!=null){const o=dc(r);t[i]=()=>o}}},Op=(e,t)=>{const s=dc(t);e.slots.default=()=>s},Np=(e,t,s)=>{for(const n in t)(s||!cc(n))&&(e[n]=t[n])},lw=(e,t,s)=>{const n=e.slots=Ap();if(e.vnode.shapeFlag&32){const i=t._;i?(Np(n,t,s),s&&Am(n,"_",i,!0)):Tp(t,n)}else t&&Op(e,t)},uw=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,o=gt;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:Np(i,t,s):(r=!t.$stable,Tp(t,i)),o=t}else t&&(Op(e,t),o={default:1});if(r)for(const l in i)!cc(l)&&o[l]==null&&delete i[l]},Kt=Nw;function cw(e){return dw(e)}function dw(e,t){const s=$o();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=Bs,insertStaticContent:g}=e,E=(k,R,B,ie=null,re=null,oe=null,me=void 0,pe=null,z=!!R.dynamicChildren)=>{if(k===R)return;k&&!Qs(k,R)&&(ie=V(k),ue(k,re,oe,!0),k=null),R.patchFlag===-2&&(z=!1,R.dynamicChildren=null);const{type:de,ref:Me,shapeFlag:we}=R;switch(de){case qo:_(k,R,B,ie);break;case Tt:x(k,R,B,ie);break;case qa:k==null&&C(R,B,ie,me);break;case Ae:j(k,R,B,ie,re,oe,me,pe,z);break;default:we&1?$(k,R,B,ie,re,oe,me,pe,z):we&6?X(k,R,B,ie,re,oe,me,pe,z):(we&64||we&128)&&de.process(k,R,B,ie,re,oe,me,pe,z,Ee)}Me!=null&&re?Nr(Me,k&&k.ref,oe,R||k,!R):Me==null&&k&&k.ref!=null&&Nr(k.ref,null,oe,k,!0)},_=(k,R,B,ie)=>{if(k==null)n(R.el=l(R.children),B,ie);else{const re=R.el=k.el;R.children!==k.children&&d(re,R.children)}},x=(k,R,B,ie)=>{k==null?n(R.el=u(R.children||""),B,ie):R.el=k.el},C=(k,R,B,ie)=>{[k.el,k.anchor]=g(k.children,R,B,ie,k.el,k.anchor)},A=({el:k,anchor:R},B,ie)=>{let re;for(;k&&k!==R;)re=p(k),n(k,B,ie),k=re;n(R,B,ie)},b=({el:k,anchor:R})=>{let B;for(;k&&k!==R;)B=p(k),i(k),k=B;i(R)},$=(k,R,B,ie,re,oe,me,pe,z)=>{R.type==="svg"?me="svg":R.type==="math"&&(me="mathml"),k==null?L(R,B,ie,re,oe,me,pe,z):w(k,R,re,oe,me,pe,z)},L=(k,R,B,ie,re,oe,me,pe)=>{let z,de;const{props:Me,shapeFlag:we,transition:Oe,dirs:Qe}=k;if(z=k.el=o(k.type,oe,Me&&Me.is,Me),we&8?c(z,k.children):we&16&&I(k.children,z,null,ie,re,wl(k,oe),me,pe),Qe&&jn(k,null,ie,"created"),F(z,k,k.scopeId,me,ie),Me){for(const st in Me)st!=="value"&&!xr(st)&&r(z,st,null,Me[st],oe,ie);"value"in Me&&r(z,"value",null,Me.value,oe),(de=Me.onVnodeBeforeMount)&&Ls(de,ie,k)}Qe&&jn(k,null,ie,"beforeMount");const He=fw(re,Oe);He&&Oe.beforeEnter(z),n(z,R,B),((de=Me&&Me.onVnodeMounted)||He||Qe)&&Kt(()=>{de&&Ls(de,ie,k),He&&Oe.enter(z),Qe&&jn(k,null,ie,"mounted")},re)},F=(k,R,B,ie,re)=>{if(B&&m(k,B),ie)for(let oe=0;oe<ie.length;oe++)m(k,ie[oe]);if(re){let oe=re.subTree;if(R===oe||Rp(oe.type)&&(oe.ssContent===R||oe.ssFallback===R)){const me=re.vnode;F(k,me,me.scopeId,me.slotScopeIds,re.parent)}}},I=(k,R,B,ie,re,oe,me,pe,z=0)=>{for(let de=z;de<k.length;de++){const Me=k[de]=pe?yn(k[de]):Os(k[de]);E(null,Me,R,B,ie,re,oe,me,pe)}},w=(k,R,B,ie,re,oe,me)=>{const pe=R.el=k.el;let{patchFlag:z,dynamicChildren:de,dirs:Me}=R;z|=k.patchFlag&16;const we=k.props||gt,Oe=R.props||gt;let Qe;if(B&&Bn(B,!1),(Qe=Oe.onVnodeBeforeUpdate)&&Ls(Qe,B,R,k),Me&&jn(R,k,B,"beforeUpdate"),B&&Bn(B,!0),(we.innerHTML&&Oe.innerHTML==null||we.textContent&&Oe.textContent==null)&&c(pe,""),de?O(k.dynamicChildren,de,pe,B,ie,wl(R,re),oe):me||Z(k,R,pe,null,B,ie,wl(R,re),oe,!1),z>0){if(z&16)S(pe,we,Oe,B,re);else if(z&2&&we.class!==Oe.class&&r(pe,"class",null,Oe.class,re),z&4&&r(pe,"style",we.style,Oe.style,re),z&8){const He=R.dynamicProps;for(let st=0;st<He.length;st++){const et=He[st],_t=we[et],Ct=Oe[et];(Ct!==_t||et==="value")&&r(pe,et,_t,Ct,re,B)}}z&1&&k.children!==R.children&&c(pe,R.children)}else!me&&de==null&&S(pe,we,Oe,B,re);((Qe=Oe.onVnodeUpdated)||Me)&&Kt(()=>{Qe&&Ls(Qe,B,R,k),Me&&jn(R,k,B,"updated")},ie)},O=(k,R,B,ie,re,oe,me)=>{for(let pe=0;pe<R.length;pe++){const z=k[pe],de=R[pe],Me=z.el&&(z.type===Ae||!Qs(z,de)||z.shapeFlag&198)?h(z.el):B;E(z,de,Me,null,ie,re,oe,me,!0)}},S=(k,R,B,ie,re)=>{if(R!==B){if(R!==gt)for(const oe in R)!xr(oe)&&!(oe in B)&&r(k,oe,R[oe],null,re,ie);for(const oe in B){if(xr(oe))continue;const me=B[oe],pe=R[oe];me!==pe&&oe!=="value"&&r(k,oe,pe,me,re,ie)}"value"in B&&r(k,"value",R.value,B.value,re)}},j=(k,R,B,ie,re,oe,me,pe,z)=>{const de=R.el=k?k.el:l(""),Me=R.anchor=k?k.anchor:l("");let{patchFlag:we,dynamicChildren:Oe,slotScopeIds:Qe}=R;Qe&&(pe=pe?pe.concat(Qe):Qe),k==null?(n(de,B,ie),n(Me,B,ie),I(R.children||[],B,Me,re,oe,me,pe,z)):we>0&&we&64&&Oe&&k.dynamicChildren?(O(k.dynamicChildren,Oe,B,re,oe,me,pe),(R.key!=null||re&&R===re.subTree)&&fc(k,R,!0)):Z(k,R,B,Me,re,oe,me,pe,z)},X=(k,R,B,ie,re,oe,me,pe,z)=>{R.slotScopeIds=pe,k==null?R.shapeFlag&512?re.ctx.activate(R,B,ie,me,z):W(R,B,ie,re,oe,me,z):fe(k,R,z)},W=(k,R,B,ie,re,oe,me)=>{const pe=k.component=qw(k,ie,re);if(Do(k)&&(pe.ctx.renderer=Ee),Lw(pe,!1,me),pe.asyncDep){if(re&&re.registerDep(pe,ne,me),!k.el){const z=pe.subTree=Ce(Tt);x(null,z,R,B),k.placeholder=z.el}}else ne(pe,k,R,B,re,oe,me)},fe=(k,R,B)=>{const ie=R.component=k.component;if(Cw(k,R,B))if(ie.asyncDep&&!ie.asyncResolved){Q(ie,R,B);return}else ie.next=R,ie.update();else R.el=k.el,ie.vnode=R},ne=(k,R,B,ie,re,oe,me)=>{const pe=()=>{if(k.isMounted){let{next:we,bu:Oe,u:Qe,parent:He,vnode:st}=k;{const U=kp(k);if(U){we&&(we.el=st.el,Q(k,we,me)),U.asyncDep.then(()=>{k.isUnmounted||pe()});return}}let et=we,_t;Bn(k,!1),we?(we.el=st.el,Q(k,we,me)):we=st,Oe&&Ma(Oe),(_t=we.props&&we.props.onVnodeBeforeUpdate)&&Ls(_t,He,we,st),Bn(k,!0);const Ct=Jd(k),K=k.subTree;k.subTree=Ct,E(K,Ct,h(K.el),V(K),k,re,oe),we.el=Ct.el,et===null&&mc(k,Ct.el),Qe&&Kt(Qe,re),(_t=we.props&&we.props.onVnodeUpdated)&&Kt(()=>Ls(_t,He,we,st),re)}else{let we;const{el:Oe,props:Qe}=R,{bm:He,m:st,parent:et,root:_t,type:Ct}=k,K=ki(R);Bn(k,!1),He&&Ma(He),!K&&(we=Qe&&Qe.onVnodeBeforeMount)&&Ls(we,et,R),Bn(k,!0);{_t.ce&&_t.ce._def.shadowRoot!==!1&&_t.ce._injectChildStyle(Ct);const U=k.subTree=Jd(k);E(null,U,B,ie,k,re,oe),R.el=U.el}if(st&&Kt(st,re),!K&&(we=Qe&&Qe.onVnodeMounted)){const U=R;Kt(()=>Ls(we,et,U),re)}(R.shapeFlag&256||et&&ki(et.vnode)&&et.vnode.shapeFlag&256)&&k.a&&Kt(k.a,re),k.isMounted=!0,R=B=ie=null}};k.scope.on();const z=k.effect=new Pm(pe);k.scope.off();const de=k.update=z.run.bind(z),Me=k.job=z.runIfDirty.bind(z);Me.i=k,Me.id=k.uid,z.scheduler=()=>lc(Me),Bn(k,!0),de()},Q=(k,R,B)=>{R.component=k;const ie=k.vnode.props;k.vnode=R,k.next=null,rw(k,R.props,ie,B),uw(k,R.children,B),ln(),Ld(k),un()},Z=(k,R,B,ie,re,oe,me,pe,z=!1)=>{const de=k&&k.children,Me=k?k.shapeFlag:0,we=R.children,{patchFlag:Oe,shapeFlag:Qe}=R;if(Oe>0){if(Oe&128){G(de,we,B,ie,re,oe,me,pe,z);return}else if(Oe&256){Y(de,we,B,ie,re,oe,me,pe,z);return}}Qe&8?(Me&16&&ve(de,re,oe),we!==de&&c(B,we)):Me&16?Qe&16?G(de,we,B,ie,re,oe,me,pe,z):ve(de,re,oe,!0):(Me&8&&c(B,""),Qe&16&&I(we,B,ie,re,oe,me,pe,z))},Y=(k,R,B,ie,re,oe,me,pe,z)=>{k=k||Ti,R=R||Ti;const de=k.length,Me=R.length,we=Math.min(de,Me);let Oe;for(Oe=0;Oe<we;Oe++){const Qe=R[Oe]=z?yn(R[Oe]):Os(R[Oe]);E(k[Oe],Qe,B,null,re,oe,me,pe,z)}de>Me?ve(k,re,oe,!0,!1,we):I(R,B,ie,re,oe,me,pe,z,we)},G=(k,R,B,ie,re,oe,me,pe,z)=>{let de=0;const Me=R.length;let we=k.length-1,Oe=Me-1;for(;de<=we&&de<=Oe;){const Qe=k[de],He=R[de]=z?yn(R[de]):Os(R[de]);if(Qs(Qe,He))E(Qe,He,B,null,re,oe,me,pe,z);else break;de++}for(;de<=we&&de<=Oe;){const Qe=k[we],He=R[Oe]=z?yn(R[Oe]):Os(R[Oe]);if(Qs(Qe,He))E(Qe,He,B,null,re,oe,me,pe,z);else break;we--,Oe--}if(de>we){if(de<=Oe){const Qe=Oe+1,He=Qe<Me?R[Qe].el:ie;for(;de<=Oe;)E(null,R[de]=z?yn(R[de]):Os(R[de]),B,He,re,oe,me,pe,z),de++}}else if(de>Oe)for(;de<=we;)ue(k[de],re,oe,!0),de++;else{const Qe=de,He=de,st=new Map;for(de=He;de<=Oe;de++){const $e=R[de]=z?yn(R[de]):Os(R[de]);$e.key!=null&&st.set($e.key,de)}let et,_t=0;const Ct=Oe-He+1;let K=!1,U=0;const ce=new Array(Ct);for(de=0;de<Ct;de++)ce[de]=0;for(de=Qe;de<=we;de++){const $e=k[de];if(_t>=Ct){ue($e,re,oe,!0);continue}let Le;if($e.key!=null)Le=st.get($e.key);else for(et=He;et<=Oe;et++)if(ce[et-He]===0&&Qs($e,R[et])){Le=et;break}Le===void 0?ue($e,re,oe,!0):(ce[Le-He]=de+1,Le>=U?U=Le:K=!0,E($e,R[Le],B,null,re,oe,me,pe,z),_t++)}const Se=K?hw(ce):Ti;for(et=Se.length-1,de=Ct-1;de>=0;de--){const $e=He+de,Le=R[$e],Pe=R[$e+1],dt=$e+1<Me?Pe.el||Pe.placeholder:ie;ce[de]===0?E(null,Le,B,dt,re,oe,me,pe,z):K&&(et<0||de!==Se[et]?se(Le,B,dt,2):et--)}}},se=(k,R,B,ie,re=null)=>{const{el:oe,type:me,transition:pe,children:z,shapeFlag:de}=k;if(de&6){se(k.component.subTree,R,B,ie);return}if(de&128){k.suspense.move(R,B,ie);return}if(de&64){me.move(k,R,B,Ee);return}if(me===Ae){n(oe,R,B);for(let we=0;we<z.length;we++)se(z[we],R,B,ie);n(k.anchor,R,B);return}if(me===qa){A(k,R,B);return}if(ie!==2&&de&1&&pe)if(ie===0)pe.beforeEnter(oe),n(oe,R,B),Kt(()=>pe.enter(oe),re);else{const{leave:we,delayLeave:Oe,afterLeave:Qe}=pe,He=()=>{k.ctx.isUnmounted?i(oe):n(oe,R,B)},st=()=>{oe._isLeaving&&oe[tn](!0),we(oe,()=>{He(),Qe&&Qe()})};Oe?Oe(oe,He,st):st()}else n(oe,R,B)},ue=(k,R,B,ie=!1,re=!1)=>{const{type:oe,props:me,ref:pe,children:z,dynamicChildren:de,shapeFlag:Me,patchFlag:we,dirs:Oe,cacheIndex:Qe}=k;if(we===-2&&(re=!1),pe!=null&&(ln(),Nr(pe,null,B,k,!0),un()),Qe!=null&&(R.renderCache[Qe]=void 0),Me&256){R.ctx.deactivate(k);return}const He=Me&1&&Oe,st=!ki(k);let et;if(st&&(et=me&&me.onVnodeBeforeUnmount)&&Ls(et,R,k),Me&6)tt(k.component,B,ie);else{if(Me&128){k.suspense.unmount(B,ie);return}He&&jn(k,null,R,"beforeUnmount"),Me&64?k.type.remove(k,R,B,Ee,ie):de&&!de.hasOnce&&(oe!==Ae||we>0&&we&64)?ve(de,R,B,!1,!0):(oe===Ae&&we&384||!re&&Me&16)&&ve(z,R,B),ie&&Re(k)}(st&&(et=me&&me.onVnodeUnmounted)||He)&&Kt(()=>{et&&Ls(et,R,k),He&&jn(k,null,R,"unmounted")},B)},Re=k=>{const{type:R,el:B,anchor:ie,transition:re}=k;if(R===Ae){Ie(B,ie);return}if(R===qa){b(k);return}const oe=()=>{i(B),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(k.shapeFlag&1&&re&&!re.persisted){const{leave:me,delayLeave:pe}=re,z=()=>me(B,oe);pe?pe(k.el,oe,z):z()}else oe()},Ie=(k,R)=>{let B;for(;k!==R;)B=p(k),i(k),k=B;i(R)},tt=(k,R,B)=>{const{bum:ie,scope:re,job:oe,subTree:me,um:pe,m:z,a:de}=k;Zd(z),Zd(de),ie&&Ma(ie),re.stop(),oe&&(oe.flags|=8,ue(me,k,R,B)),pe&&Kt(pe,R),Kt(()=>{k.isUnmounted=!0},R)},ve=(k,R,B,ie=!1,re=!1,oe=0)=>{for(let me=oe;me<k.length;me++)ue(k[me],R,B,ie,re)},V=k=>{if(k.shapeFlag&6)return V(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const R=p(k.anchor||k.el),B=R&&R[ip];return B?p(B):R};let H=!1;const le=(k,R,B)=>{k==null?R._vnode&&ue(R._vnode,null,null,!0):E(R._vnode||null,k,R,null,null,null,B),R._vnode=k,H||(H=!0,Ld(),tp(),H=!1)},Ee={p:E,um:ue,m:se,r:Re,mt:W,mc:I,pc:Z,pbc:O,n:V,o:e};return{render:le,hydrate:void 0,createApp:nw(le)}}function wl({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 Bn({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fc(e,t,s=!1){const n=e.children,i=t.children;if(Ve(n)&&Ve(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]=yn(i[r]),l.el=o.el),!s&&l.patchFlag!==-2&&fc(o,l)),l.type===qo&&l.patchFlag!==-1&&(l.el=o.el),l.type===Tt&&!l.el&&(l.el=o.el)}}function hw(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 kp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kp(t)}function Zd(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const mw=Symbol.for("v-scx"),pw=()=>Yt(mw);function At(e,t){return hc(e,null,t)}function Ye(e,t,s){return hc(e,t,s)}function hc(e,t,s=gt){const{immediate:n,deep:i,flush:r,once:o}=s,l=Ot({},s),u=t&&n||!t&&r!=="post";let d;if(Qr){if(r==="sync"){const m=pw();d=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=Bs,m.resume=Bs,m.pause=Bs,m}}const c=Qt;l.call=(m,g,E)=>Rs(m,c,g,E);let h=!1;r==="post"?l.scheduler=m=>{Kt(m,c&&c.suspense)}:r!=="sync"&&(h=!0,l.scheduler=(m,g)=>{g?m():lc(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const p=PE(e,t,l);return Qr&&(d?d.push(p):u&&p()),p}function gw(e,t,s){const n=this.proxy,i=yt(e)?e.includes(".")?Pp(n,e):()=>n[e]:e.bind(n,n);let r;je(t)?r=t:(r=t.handler,s=t);const o=Xr(this),l=hc(i,r.bind(n),s);return o(),l}function Pp(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 vw=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Cs(t)}Modifiers`]||e[`${Pn(t)}Modifiers`];function bw(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||gt;let i=s;const r=t.startsWith("update:"),o=r&&vw(n,t.slice(7));o&&(o.trim&&(i=s.map(c=>yt(c)?c.trim():c)),o.number&&(i=s.map(Ha)));let l,u=n[l=pl(t)]||n[l=pl(Cs(t))];!u&&r&&(u=n[l=pl(Pn(t))]),u&&Rs(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,Rs(d,e,6,i)}}const yw=new WeakMap;function Dp(e,t,s=!1){const n=s?yw:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!je(e)){const u=d=>{const c=Dp(d,t,!0);c&&(l=!0,Ot(o,c))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!l?(ft(e)&&n.set(e,null),null):(Ve(r)?r.forEach(u=>o[u]=null):Ot(o,r),ft(e)&&n.set(e,o),o)}function Io(e,t){return!e||!Co(t)?!1:(t=t.slice(2).replace(/Once$/,""),ut(e,t[0].toLowerCase()+t.slice(1))||ut(e,Pn(t))||ut(e,t))}function Jd(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:E}=e,_=Za(e);let x,C;try{if(s.shapeFlag&4){const b=i||n,$=b;x=Os(d.call($,b,c,h,m,p,g)),C=l}else{const b=t;x=Os(b.length>1?b(h,{attrs:l,slots:o,emit:u}):b(h,null)),C=t.props?l:Ew(l)}}catch(b){Pr.length=0,Jr(b,e,1),x=Ce(Tt)}let A=x;if(C&&E!==!1){const b=Object.keys(C),{shapeFlag:$}=A;b.length&&$&7&&(r&&b.some(Yu)&&(C=ww(C,r)),A=Tn(A,C,!1,!0))}return s.dirs&&(A=Tn(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(s.dirs):s.dirs),s.transition&&Fr(A,s.transition),x=A,Za(_),x}function _w(e,t=!0){let s;for(let n=0;n<e.length;n++){const i=e[n];if(ji(i)){if(i.type!==Tt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const Ew=e=>{let t;for(const s in e)(s==="class"||s==="style"||Co(s))&&((t||(t={}))[s]=e[s]);return t},ww=(e,t)=>{const s={};for(const n in e)(!Yu(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Cw(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?Xd(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]&&!Io(d,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?Xd(n,o,d):!0:!!o;return!1}function Xd(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]&&!Io(s,r))return!0}return!1}function mc({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 Rp=e=>e.__isSuspense;let Jl=0;const Aw={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,r,o,l,u,d){if(e==null)xw(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}$w(e,t,s,n,i,o,l,u,d)}},hydrate:Tw,normalize:Ow},Sw=Aw;function Vr(e,t){const s=e.props&&e.props[t];je(s)&&s()}function xw(e,t,s,n,i,r,o,l,u){const{p:d,o:{createElement:c}}=u,h=c("div"),p=e.suspense=Mp(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?(Vr(e,"onPending"),Vr(e,"onFallback"),d(null,e.ssFallback,t,s,n,null,r,o),Di(p,e.ssFallback)):p.resolve(!1,!0)}function $w(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:E,isInFallback:_,isHydrating:x}=h;if(E)h.pendingBranch=p,Qs(E,p)?(u(E,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0?h.resolve():_&&(x||(u(g,m,s,n,i,null,r,o,l),Di(h,m)))):(h.pendingId=Jl++,x?(h.isHydrating=!1,h.activeBranch=E):d(E,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=c("div"),_?(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),Di(h,m))):g&&Qs(g,p)?(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&&Qs(g,p))u(g,p,s,n,i,h,r,o,l),Di(h,p);else if(Vr(t,"onPending"),h.pendingBranch=p,p.shapeFlag&512?h.pendingId=p.component.suspenseId:h.pendingId=Jl++,u(null,p,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0)h.resolve();else{const{timeout:C,pendingId:A}=h;C>0?setTimeout(()=>{h.pendingId===A&&h.fallback(m)},C):C===0&&h.fallback(m)}}function Mp(e,t,s,n,i,r,o,l,u,d,c=!1){const{p:h,m:p,um:m,n:g,o:{parentNode:E,remove:_}}=d;let x;const C=kw(e);C&&t&&t.pendingBranch&&(x=t.pendingId,t.deps++);const A=e.props?Sm(e.props.timeout):void 0,b=r,$={vnode:e,parent:t,parentComponent:s,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:Jl++,timeout:typeof A=="number"?A:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(L=!1,F=!1){const{vnode:I,activeBranch:w,pendingBranch:O,pendingId:S,effects:j,parentComponent:X,container:W}=$;let fe=!1;$.isHydrating?$.isHydrating=!1:L||(fe=w&&O.transition&&O.transition.mode==="out-in",fe&&(w.transition.afterLeave=()=>{S===$.pendingId&&(p(O,W,r===b?g(w):r,0),Kl(j))}),w&&(E(w.el)===W&&(r=g(w)),m(w,X,$,!0)),fe||p(O,W,r,0)),Di($,O),$.pendingBranch=null,$.isInFallback=!1;let ne=$.parent,Q=!1;for(;ne;){if(ne.pendingBranch){ne.effects.push(...j),Q=!0;break}ne=ne.parent}!Q&&!fe&&Kl(j),$.effects=[],C&&t&&t.pendingBranch&&x===t.pendingId&&(t.deps--,t.deps===0&&!F&&t.resolve()),Vr(I,"onResolve")},fallback(L){if(!$.pendingBranch)return;const{vnode:F,activeBranch:I,parentComponent:w,container:O,namespace:S}=$;Vr(F,"onFallback");const j=g(I),X=()=>{$.isInFallback&&(h(null,L,O,j,w,null,S,l,u),Di($,L))},W=L.transition&&L.transition.mode==="out-in";W&&(I.transition.afterLeave=X),$.isInFallback=!0,m(I,w,null,!0),W||X()},move(L,F,I){$.activeBranch&&p($.activeBranch,L,F,I),$.container=L},next(){return $.activeBranch&&g($.activeBranch)},registerDep(L,F,I){const w=!!$.pendingBranch;w&&$.deps++;const O=L.vnode.el;L.asyncDep.catch(S=>{Jr(S,L,0)}).then(S=>{if(L.isUnmounted||$.isUnmounted||$.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:j}=L;eu(L,S),O&&(j.el=O);const X=!O&&L.subTree.el;F(L,j,E(O||L.subTree.el),O?null:g(L.subTree),$,o,I),X&&_(X),mc(L,j.el),w&&--$.deps===0&&$.resolve()})},unmount(L,F){$.isUnmounted=!0,$.activeBranch&&m($.activeBranch,s,L,F),$.pendingBranch&&m($.pendingBranch,s,L,F)}};return $}function Tw(e,t,s,n,i,r,o,l,u){const d=t.suspense=Mp(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 Ow(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=ef(n?s.default:s),e.ssFallback=n?ef(s.fallback):Ce(Tt)}function ef(e){let t;if(je(e)){const s=Qi&&e._c;s&&(e._d=!1,N()),e=e(),s&&(e._d=!0,t=is,Ip())}return Ve(e)&&(e=_w(e)),e=Os(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Nw(e,t){t&&t.pendingBranch?Ve(e)?t.effects.push(...e):t.effects.push(e):Kl(e)}function Di(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,mc(n,i))}function kw(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ae=Symbol.for("v-fgt"),qo=Symbol.for("v-txt"),Tt=Symbol.for("v-cmt"),qa=Symbol.for("v-stc"),Pr=[];let is=null;function N(e=!1){Pr.push(is=e?null:[])}function Ip(){Pr.pop(),is=Pr[Pr.length-1]||null}let Qi=1;function eo(e,t=!1){Qi+=e,e<0&&is&&t&&(is.hasOnce=!0)}function qp(e){return e.dynamicChildren=Qi>0?is||Ti:null,Ip(),Qi>0&&is&&is.push(e),e}function P(e,t,s,n,i,r){return qp(a(e,t,s,n,i,r,!0))}function at(e,t,s,n,i){return qp(Ce(e,t,s,n,i,!0))}function ji(e){return e?e.__v_isVNode===!0:!1}function Qs(e,t){return e.type===t.type&&e.key===t.key}const Lp=({key:e})=>e??null,La=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?yt(e)||ht(e)||je(e)?{i:Mt,r:e,k:t,f:!!s}:e:null);function a(e,t=null,s=null,n=0,i=null,r=e===Ae?0:1,o=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lp(t),ref:t&&La(t),scopeId:np,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:Mt};return l?(pc(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=yt(s)?8:16),Qi>0&&!o&&is&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&is.push(u),u}const Ce=Pw;function Pw(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===gp)&&(e=Tt),ji(e)){const l=Tn(e,t,!0);return s&&pc(l,s),Qi>0&&!r&&is&&(l.shapeFlag&6?is[is.indexOf(e)]=l:is.push(l)),l.patchFlag=-2,l}if(Bw(e)&&(e=e.__vccOpts),t){t=Dw(t);let{class:l,style:u}=t;l&&!yt(l)&&(t.class=De(l)),ft(u)&&(rc(u)&&!Ve(u)&&(u=Ot({},u)),t.style=Xu(u))}const o=yt(e)?1:Rp(e)?128:rp(e)?64:ft(e)?4:je(e)?2:0;return a(e,t,s,n,i,o,r,!0)}function Dw(e){return e?rc(e)||Sp(e)?Ot({},e):e:null}function Tn(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:u}=e,d=t?Rw(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Lp(d),ref:t&&t.ref?s&&r?Ve(r)?r.concat(La(t)):[r,La(t)]:La(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!==Ae?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&&Tn(e.ssContent),ssFallback:e.ssFallback&&Tn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&Fr(c,u.clone(c)),c}function ee(e=" ",t=0){return Ce(qo,null,e,t)}function ai(e,t){const s=Ce(qa,null,e);return s.staticCount=t,s}function he(e="",t=!1){return t?(N(),at(Tt,null,e)):Ce(Tt,null,e)}function Os(e){return e==null||typeof e=="boolean"?Ce(Tt):Ve(e)?Ce(Ae,null,e.slice()):ji(e)?yn(e):Ce(qo,null,String(e))}function yn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tn(e)}function pc(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Ve(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),pc(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Sp(t)?t._ctx=Mt:i===3&&Mt&&(Mt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else je(t)?(t={default:t,_ctx:Mt},s=32):(t=String(t),n&64?(s=16,t=[ee(t)]):s=8);e.children=t,e.shapeFlag|=s}function Rw(...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=Xu([t.style,n.style]);else if(Co(i)){const r=t[i],o=n[i];o&&r!==o&&!(Ve(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function Ls(e,t,s,n=null){Rs(e,t,7,[s,n])}const Mw=Ep();let Iw=0;function qw(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||Mw,r={uid:Iw++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Om(!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:$p(n,i),emitsOptions:Dp(n,i),emit:null,emitted:null,propsDefaults:gt,inheritAttrs:n.inheritAttrs,ctx:gt,data:gt,props:gt,attrs:gt,slots:gt,refs:gt,setupState:gt,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=bw.bind(null,r),e.ce&&e.ce(r),r}let Qt=null;const hi=()=>Qt||Mt;let to,Xl;{const e=$o(),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)}};to=t("__VUE_INSTANCE_SETTERS__",s=>Qt=s),Xl=t("__VUE_SSR_SETTERS__",s=>Qr=s)}const Xr=e=>{const t=Qt;return to(e),e.scope.on(),()=>{e.scope.off(),to(t)}},tf=()=>{Qt&&Qt.scope.off(),to(null)};function Fp(e){return e.vnode.shapeFlag&4}let Qr=!1;function Lw(e,t=!1,s=!1){t&&Xl(t);const{props:n,children:i}=e.vnode,r=Fp(e);iw(e,n,r,t),lw(e,i,s||t);const o=r?Fw(e,t):void 0;return t&&Xl(!1),o}function Fw(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,YE);const{setup:n}=s;if(n){ln();const i=e.setupContext=n.length>1?Qw(e):null,r=Xr(e),o=Zr(n,e,0,[e.props,i]),l=Em(o);if(un(),r(),(l||e.sp)&&!ki(e)&&hp(e),l){if(o.then(tf,tf),t)return o.then(u=>{eu(e,u)}).catch(u=>{Jr(u,e,0)});e.asyncDep=o}else eu(e,o)}else Vp(e)}function eu(e,t,s){je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=Zm(t)),Vp(e)}function Vp(e,t,s){const n=e.type;e.render||(e.render=n.render||Bs);{const i=Xr(e);ln();try{ZE(e)}finally{un(),i()}}}const Vw={get(e,t){return Vt(e,"get",""),e[t]}};function Qw(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Vw),slots:e.slots,emit:e.emit,expose:t}}function Lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zm(ac(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in kr)return kr[s](e)},has(t,s){return s in t||s in kr}})):e.proxy}function jw(e,t=!0){return je(e)?e.displayName||e.name:e.name||t&&e.__name}function Bw(e){return je(e)&&"__vccOpts"in e}const v=(e,t)=>NE(e,t,Qr);function oi(e,t,s){try{eo(-1);const n=arguments.length;return n===2?ft(t)&&!Ve(t)?ji(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&ji(s)&&(s=[s]),Ce(e,t,s))}finally{eo(1)}}const Uw="3.5.22";/**
|
|
19
|
+
* @vue/runtime-dom v3.5.22
|
|
20
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
|
+
* @license MIT
|
|
22
|
+
**/let tu;const sf=typeof window<"u"&&window.trustedTypes;if(sf)try{tu=sf.createPolicy("vue",{createHTML:e=>e})}catch{}const Qp=tu?e=>tu.createHTML(e):e=>e,Kw="http://www.w3.org/2000/svg",Hw="http://www.w3.org/1998/Math/MathML",en=typeof document<"u"?document:null,nf=en&&en.createElement("template"),Gw={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"?en.createElementNS(Kw,e):t==="mathml"?en.createElementNS(Hw,e):s?en.createElement(e,{is:s}):en.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>en.createTextNode(e),createComment:e=>en.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>en.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{nf.innerHTML=Qp(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=nf.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]}},pn="transition",fr="animation",jr=Symbol("_vtc"),jp={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},Ww=Ot({},lp,jp),zw=e=>(e.displayName="Transition",e.props=Ww,e),Yw=zw((e,{slots:t})=>oi(FE,Zw(e),t)),Un=(e,t=[])=>{Ve(e)?e.forEach(s=>s(...t)):e&&e(...t)},rf=e=>e?Ve(e)?e.some(t=>t.length>1):e.length>1:!1;function Zw(e){const t={};for(const j in e)j in jp||(t[j]=e[j]);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=Jw(i),E=g&&g[0],_=g&&g[1],{onBeforeEnter:x,onEnter:C,onEnterCancelled:A,onLeave:b,onLeaveCancelled:$,onBeforeAppear:L=x,onAppear:F=C,onAppearCancelled:I=A}=t,w=(j,X,W,fe)=>{j._enterCancelled=fe,Kn(j,X?c:l),Kn(j,X?d:o),W&&W()},O=(j,X)=>{j._isLeaving=!1,Kn(j,h),Kn(j,m),Kn(j,p),X&&X()},S=j=>(X,W)=>{const fe=j?F:C,ne=()=>w(X,j,W);Un(fe,[X,ne]),af(()=>{Kn(X,j?u:r),Ys(X,j?c:l),rf(fe)||of(X,n,E,ne)})};return Ot(t,{onBeforeEnter(j){Un(x,[j]),Ys(j,r),Ys(j,o)},onBeforeAppear(j){Un(L,[j]),Ys(j,u),Ys(j,d)},onEnter:S(!1),onAppear:S(!0),onLeave(j,X){j._isLeaving=!0;const W=()=>O(j,X);Ys(j,h),j._enterCancelled?(Ys(j,p),cf(j)):(cf(j),Ys(j,p)),af(()=>{j._isLeaving&&(Kn(j,h),Ys(j,m),rf(b)||of(j,n,_,W))}),Un(b,[j,W])},onEnterCancelled(j){w(j,!1,void 0,!0),Un(A,[j])},onAppearCancelled(j){w(j,!0,void 0,!0),Un(I,[j])},onLeaveCancelled(j){O(j),Un($,[j])}})}function Jw(e){if(e==null)return null;if(ft(e))return[Cl(e.enter),Cl(e.leave)];{const t=Cl(e);return[t,t]}}function Cl(e){return Sm(e)}function Ys(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[jr]||(e[jr]=new Set)).add(t)}function Kn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[jr];s&&(s.delete(t),s.size||(e[jr]=void 0))}function af(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Xw=0;function of(e,t,s,n){const i=e._endId=++Xw,r=()=>{i===e._endId&&n()};if(s!=null)return setTimeout(r,s);const{type:o,timeout:l,propCount:u}=e0(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 e0(e,t){const s=window.getComputedStyle(e),n=g=>(s[g]||"").split(", "),i=n(`${pn}Delay`),r=n(`${pn}Duration`),o=lf(i,r),l=n(`${fr}Delay`),u=n(`${fr}Duration`),d=lf(l,u);let c=null,h=0,p=0;t===pn?o>0&&(c=pn,h=o,p=r.length):t===fr?d>0&&(c=fr,h=d,p=u.length):(h=Math.max(o,d),c=h>0?o>d?pn:fr:null,p=c?c===pn?r.length:u.length:0);const m=c===pn&&/\b(?:transform|all)(?:,|$)/.test(n(`${pn}Property`).toString());return{type:c,timeout:h,propCount:p,hasTransform:m}}function lf(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>uf(s)+uf(e[n])))}function uf(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function cf(e){return(e?e.ownerDocument:document).body.offsetHeight}function t0(e,t,s){const n=e[jr];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const so=Symbol("_vod"),Bp=Symbol("_vsh"),s0={name:"show",beforeMount(e,{value:t},{transition:s}){e[so]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):hr(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),hr(e,!0),n.enter(e)):n.leave(e,()=>{hr(e,!1)}):hr(e,t))},beforeUnmount(e,{value:t}){hr(e,t)}};function hr(e,t){e.style.display=t?e[so]:"none",e[Bp]=!t}const n0=Symbol(""),i0=/(?:^|;)\s*display\s*:/;function r0(e,t,s){const n=e.style,i=yt(s);let r=!1;if(s&&!i){if(t)if(yt(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Fa(n,l,"")}else for(const o in t)s[o]==null&&Fa(n,o,"");for(const o in s)o==="display"&&(r=!0),Fa(n,o,s[o])}else if(i){if(t!==s){const o=n[n0];o&&(s+=";"+o),n.cssText=s,r=i0.test(s)}}else t&&e.removeAttribute("style");so in e&&(e[so]=r?n.display:"",e[Bp]&&(n.display="none"))}const df=/\s*!important$/;function Fa(e,t,s){if(Ve(s))s.forEach(n=>Fa(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=a0(e,t);df.test(s)?e.setProperty(Pn(n),s.replace(df,""),"important"):e[n]=s}}const ff=["Webkit","Moz","ms"],Al={};function a0(e,t){const s=Al[t];if(s)return s;let n=Cs(t);if(n!=="filter"&&n in e)return Al[t]=n;n=xo(n);for(let i=0;i<ff.length;i++){const r=ff[i]+n;if(r in e)return Al[t]=r}return t}const hf="http://www.w3.org/1999/xlink";function mf(e,t,s,n,i,r=nE(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(hf,t.slice(6,t.length)):e.setAttributeNS(hf,t,s):s==null||r&&!xm(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ds(s)?String(s):s)}function pf(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Qp(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=xm(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 Wn(e,t,s,n){e.addEventListener(t,s,n)}function o0(e,t,s,n){e.removeEventListener(t,s,n)}const gf=Symbol("_vei");function l0(e,t,s,n,i=null){const r=e[gf]||(e[gf]={}),o=r[t];if(n&&o)o.value=n;else{const[l,u]=u0(t);if(n){const d=r[t]=f0(n,i);Wn(e,l,d,u)}else o&&(o0(e,l,o,u),r[t]=void 0)}}const vf=/(?:Once|Passive|Capture)$/;function u0(e){let t;if(vf.test(e)){t={};let n;for(;n=e.match(vf);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pn(e.slice(2)),t]}let Sl=0;const c0=Promise.resolve(),d0=()=>Sl||(c0.then(()=>Sl=0),Sl=Date.now());function f0(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Rs(h0(n,s.value),t,5,[n])};return s.value=e,s.attached=d0(),s}function h0(e,t){if(Ve(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 bf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,m0=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?t0(e,n,o):t==="style"?r0(e,s,n):Co(t)?Yu(t)||l0(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):p0(e,t,n,o))?(pf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&mf(e,t,n,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!yt(n))?pf(e,Cs(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),mf(e,t,n,o))};function p0(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&bf(t)&&je(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 bf(t)&&yt(s)?!1:t in e}const no=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ve(t)?s=>Ma(t,s):t};function g0(e){e.target.composing=!0}function yf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ri=Symbol("_assign"),rn={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Ri]=no(i);const r=n||i.props&&i.props.type==="number";Wn(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;s&&(l=l.trim()),r&&(l=Ha(l)),e[Ri](l)}),s&&Wn(e,"change",()=>{e.value=e.value.trim()}),t||(Wn(e,"compositionstart",g0),Wn(e,"compositionend",yf),Wn(e,"change",yf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},o){if(e[Ri]=no(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ha(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))}},Up={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=Ao(t);Wn(e,"change",()=>{const r=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>s?Ha(io(o)):io(o));e[Ri](e.multiple?i?new Set(r):r:r[0]),e._assigning=!0,kt(()=>{e._assigning=!1})}),e[Ri]=no(n)},mounted(e,{value:t}){_f(e,t)},beforeUpdate(e,t,s){e[Ri]=no(s)},updated(e,{value:t}){e._assigning||_f(e,t)}};function _f(e,t){const s=e.multiple,n=Ve(t);if(!(s&&!n&&!Ao(t))){for(let i=0,r=e.options.length;i<r;i++){const o=e.options[i],l=io(o);if(s)if(n){const u=typeof l;u==="string"||u==="number"?o.selected=t.some(d=>String(d)===String(l)):o.selected=rE(t,l)>-1}else o.selected=t.has(l);else if(To(io(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function io(e){return"_value"in e?e._value:e.value}const v0=["ctrl","shift","alt","meta"],b0={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)=>v0.some(s=>e[`${s}Key`]&&!t.includes(s))},Ft=(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=b0[t[o]];if(l&&l(i,t))return}return e(i,...r)}))},y0={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},an=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(i=>{if(!("key"in i))return;const r=Pn(i.key);if(t.some(o=>o===r||y0[o]===r))return e(i)}))},_0=Ot({patchProp:m0},Gw);let Ef;function E0(){return Ef||(Ef=cw(_0))}const w0=((...e)=>{const t=E0().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=A0(n);if(!i)return;const r=t._component;!je(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,C0(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function C0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function A0(e){return yt(e)?document.querySelector(e):e}/*!
|
|
23
|
+
* pinia v3.0.3
|
|
24
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/let Kp;const Fo=e=>Kp=e,Hp=Symbol();function su(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Dr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Dr||(Dr={}));function S0(){const e=Nm(!0),t=e.run(()=>ye({}));let s=[],n=[];const i=ac({install(r){Fo(i),i._a=r,r.provide(Hp,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 Gp=()=>{};function wf(e,t,s,n=Gp){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),n())};return!s&&km()&&ec(i),i}function Ci(e,...t){e.slice().forEach(s=>{s(...t)})}const x0=e=>e(),Cf=Symbol(),xl=Symbol();function nu(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];su(i)&&su(n)&&e.hasOwnProperty(s)&&!ht(n)&&!An(n)?e[s]=nu(i,n):e[s]=n}return e}const $0=Symbol();function T0(e){return!su(e)||!Object.prototype.hasOwnProperty.call(e,$0)}const{assign:vn}=Object;function O0(e){return!!(ht(e)&&e.effect)}function N0(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=oc(s.state.value[e]);return vn(c,r,Object.keys(o||{}).reduce((h,p)=>(h[p]=ac(v(()=>{Fo(s);const m=s._s.get(e);return o[p].call(m,m)})),h),{}))}return u=Wp(e,d,t,s,n,!0),u}function Wp(e,t,s={},n,i,r){let o;const l=vn({actions:{}},s),u={deep:!0};let d,c,h=[],p=[],m;const g=n.state.value[e];!r&&!g&&(n.state.value[e]={}),ye({});let E;function _(I){let w;d=c=!1,typeof I=="function"?(I(n.state.value[e]),w={type:Dr.patchFunction,storeId:e,events:m}):(nu(n.state.value[e],I),w={type:Dr.patchObject,payload:I,storeId:e,events:m});const O=E=Symbol();kt().then(()=>{E===O&&(d=!0)}),c=!0,Ci(h,w,n.state.value[e])}const x=r?function(){const{state:w}=s,O=w?w():{};this.$patch(S=>{vn(S,O)})}:Gp;function C(){o.stop(),h=[],p=[],n._s.delete(e)}const A=(I,w="")=>{if(Cf in I)return I[xl]=w,I;const O=function(){Fo(n);const S=Array.from(arguments),j=[],X=[];function W(Q){j.push(Q)}function fe(Q){X.push(Q)}Ci(p,{args:S,name:O[xl],store:$,after:W,onError:fe});let ne;try{ne=I.apply(this&&this.$id===e?this:$,S)}catch(Q){throw Ci(X,Q),Q}return ne instanceof Promise?ne.then(Q=>(Ci(j,Q),Q)).catch(Q=>(Ci(X,Q),Promise.reject(Q))):(Ci(j,ne),ne)};return O[Cf]=!0,O[xl]=w,O},b={_p:n,$id:e,$onAction:wf.bind(null,p),$patch:_,$reset:x,$subscribe(I,w={}){const O=wf(h,I,w.detached,()=>S()),S=o.run(()=>Ye(()=>n.state.value[e],j=>{(w.flush==="sync"?c:d)&&I({storeId:e,type:Dr.direct,events:m},j)},vn({},u,w)));return O},$dispose:C},$=As(b);n._s.set(e,$);const F=(n._a&&n._a.runWithContext||x0)(()=>n._e.run(()=>(o=Nm()).run(()=>t({action:A}))));for(const I in F){const w=F[I];if(ht(w)&&!O0(w)||An(w))r||(g&&T0(w)&&(ht(w)?w.value=g[I]:nu(w,g[I])),n.state.value[e][I]=w);else if(typeof w=="function"){const O=A(w,I);F[I]=O,l.actions[I]=w}}return vn($,F),vn(nt($),F),Object.defineProperty($,"$state",{get:()=>n.state.value[e],set:I=>{_(w=>{vn(w,I)})}}),n._p.forEach(I=>{vn($,o.run(()=>I({store:$,app:n._a,pinia:n,options:l})))}),g&&r&&s.hydrate&&s.hydrate($.$state,g),d=!0,c=!0,$}/*! #__NO_SIDE_EFFECTS__ */function Vo(e,t,s){let n;const i=typeof t=="function";n=i?s:t;function r(o,l){const u=wp();return o=o||(u?Yt(Hp,null):null),o&&Fo(o),o=Kp,o._s.has(e)||(i?Wp(e,t,n,o):N0(e,n,o)),o._s.get(e)}return r.$id=e,r}var Xi=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(){}},k0={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},P0=class{#e=k0;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},zn=new P0;function D0(e){setTimeout(e,0)}var li=typeof window>"u"||"Deno"in globalThis;function ys(){}function R0(e,t){return typeof e=="function"?e(t):e}function iu(e){return typeof e=="number"&&e>=0&&e!==1/0}function zp(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sn(e,t){return typeof e=="function"?e(t):e}function _s(e,t){return typeof e=="function"?e(t):e}function Af(e,t){const{type:s="all",exact:n,fetchStatus:i,predicate:r,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==gc(o,t.options))return!1}else if(!Br(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 Sf(e,t){const{exact:s,status:n,predicate:i,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(s){if(ui(t.options.mutationKey)!==ui(r))return!1}else if(!Br(t.options.mutationKey,r))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function gc(e,t){return(t?.queryKeyHashFn||ui)(e)}function ui(e){return JSON.stringify(e,(t,s)=>ru(s)?Object.keys(s).sort().reduce((n,i)=>(n[i]=s[i],n),{}):s)}function Br(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>Br(e[s],t[s])):!1}var M0=Object.prototype.hasOwnProperty;function Yp(e,t){if(e===t)return e;const s=xf(e)&&xf(t);if(!s&&!(ru(e)&&ru(t)))return t;const i=(s?e:Object.keys(e)).length,r=s?t:Object.keys(t),o=r.length,l=s?new Array(o):{};let u=0;for(let d=0;d<o;d++){const c=s?d:r[d],h=e[c],p=t[c];if(h===p){l[c]=h,(s?d<i:M0.call(e,c))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){l[c]=p;continue}const m=Yp(h,p);l[c]=m,m===h&&u++}return i===o&&u===i?e:l}function ro(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 xf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ru(e){if(!$f(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!$f(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $f(e){return Object.prototype.toString.call(e)==="[object Object]"}function I0(e){return new Promise(t=>{zn.setTimeout(t,e)})}function au(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?Yp(e,t):t}function q0(e,t,s=0){const n=[...e,t];return s&&n.length>s?n.slice(1):n}function L0(e,t,s=0){const n=[t,...e];return s&&n.length>s?n.slice(0,-1):n}var vc=Symbol();function Zp(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===vc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ou(e,t){return typeof e=="function"?e(...t):!!e}var F0=class extends Xi{#e;#t;#s;constructor(){super(),this.#s=e=>{if(!li&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},bc=new F0;function lu(){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}var V0=D0;function Q0(){let e=[],t=0,s=l=>{l()},n=l=>{l()},i=V0;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 Dt=Q0(),j0=class extends Xi{#e=!0;#t;#s;constructor(){super(),this.#s=e=>{if(!li&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#e}},ao=new j0;function B0(e){return Math.min(1e3*2**e,3e4)}function Jp(e){return(e??"online")==="online"?ao.isOnline():!0}var uu=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Xp(e){let t=!1,s=0,n;const i=lu(),r=()=>i.status!=="pending",o=E=>{if(!r()){const _=new uu(E);p(_),e.onCancel?.(_)}},l=()=>{t=!0},u=()=>{t=!1},d=()=>bc.isFocused()&&(e.networkMode==="always"||ao.isOnline())&&e.canRun(),c=()=>Jp(e.networkMode)&&e.canRun(),h=E=>{r()||(n?.(),i.resolve(E))},p=E=>{r()||(n?.(),i.reject(E))},m=()=>new Promise(E=>{n=_=>{(r()||d())&&E(_)},e.onPause?.()}).then(()=>{n=void 0,r()||e.onContinue?.()}),g=()=>{if(r())return;let E;const _=s===0?e.initialPromise:void 0;try{E=_??e.fn()}catch(x){E=Promise.reject(x)}Promise.resolve(E).then(h).catch(x=>{if(r())return;const C=e.retry??(li?0:3),A=e.retryDelay??B0,b=typeof A=="function"?A(s,x):A,$=C===!0||typeof C=="number"&&s<C||typeof C=="function"&&C(s,x);if(t||!$){p(x);return}s++,e.onFail?.(s,x),I0(b).then(()=>d()?void 0:m()).then(()=>{t?p(x):g()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n?.(),i),cancelRetry:l,continueRetry:u,canStart:c,start:()=>(c()?g():m().then(g),i)}}var eg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),iu(this.gcTime)&&(this.#e=zn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(li?1/0:300*1e3))}clearGcTimeout(){this.#e&&(zn.clearTimeout(this.#e),this.#e=void 0)}},U0=class extends eg{#e;#t;#s;#i;#n;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#s=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Tf(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Tf(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(e,t){const s=au(this.state.data,e,this.options);return this.#r({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#r({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(ys).catch(ys):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>_s(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Sn(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!zp(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#o?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}const s=new AbortController,n=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},i=()=>{const l=Zp(this.options,t),d=(()=>{const c={client:this.#i,queryKey:this.queryKey,meta:this.meta};return n(c),c})();return this.#o=!1,this.options.persister?this.options.persister(l,d,this):l(d)},o=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return n(l),l})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#r({type:"fetch",meta:o.fetchOptions?.meta}),this.#n=Xp({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof uu&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),s.abort()},onFail:(l,u)=>{this.#r({type:"failed",failureCount:l,error:u})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const l=await this.#n.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#s.config.onSuccess?.(l,this),this.#s.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof uu){if(l.silent)return this.#n.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#r({type:"error",error:l}),this.#s.config.onError?.(l,this),this.#s.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#r(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...tg(s.data,this.options),fetchMeta:e.meta??null};case"success":const n={...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const i=e.error;return{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),Dt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function tg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jp(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Tf(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 sg=class extends Xi{constructor(e,t){super(),this.options=t,this.#e=e,this.#r=null,this.#o=lu(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#s=void 0;#i=void 0;#n;#a;#o;#r;#p;#f;#h;#u;#c;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Of(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cu(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cu(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#_(),this.#E(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _s(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!ro(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&Nf(this.#t,s,this.options,t)&&this.#d(),this.updateResult(),n&&(this.#t!==s||_s(this.options.enabled,this.#t)!==_s(t.enabled,this.#t)||Sn(this.options.staleTime,this.#t)!==Sn(t.staleTime,this.#t))&&this.#g();const i=this.#v();n&&(this.#t!==s||_s(this.options.enabled,this.#t)!==_s(t.enabled,this.#t)||i!==this.#l)&&this.#b(i)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),s=this.createResult(t,e);return H0(this,s)&&(this.#i=s,this.#a=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(s,n)=>(this.trackProp(n),t?.(n),n==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#d(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ys)),t}#g(){this.#_();const e=Sn(this.options.staleTime,this.#t);if(li||this.#i.isStale||!iu(e))return;const s=zp(this.#i.dataUpdatedAt,e)+1;this.#u=zn.setTimeout(()=>{this.#i.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#E(),this.#l=e,!(li||_s(this.options.enabled,this.#t)===!1||!iu(this.#l)||this.#l===0)&&(this.#c=zn.setInterval(()=>{(this.options.refetchIntervalInBackground||bc.isFocused())&&this.#d()},this.#l))}#y(){this.#g(),this.#b(this.#v())}#_(){this.#u&&(zn.clearTimeout(this.#u),this.#u=void 0)}#E(){this.#c&&(zn.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const s=this.#t,n=this.options,i=this.#i,r=this.#n,o=this.#a,u=e!==s?e.state:this.#s,{state:d}=e;let c={...d},h=!1,p;if(t._optimisticResults){const I=this.hasListeners(),w=!I&&Of(e,t),O=I&&Nf(e,s,t,n);(w||O)&&(c={...c,...tg(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:E}=c;p=c.data;let _=!1;if(t.placeholderData!==void 0&&p===void 0&&E==="pending"){let I;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(I=i.data,_=!0):I=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,I!==void 0&&(E="success",p=au(i?.data,I,t),h=!0)}if(t.select&&p!==void 0&&!_)if(i&&p===r?.data&&t.select===this.#p)p=this.#f;else try{this.#p=t.select,p=t.select(p),p=au(i?.data,p,t),this.#f=p,this.#r=null}catch(I){this.#r=I}this.#r&&(m=this.#r,p=this.#f,g=Date.now(),E="error");const x=c.fetchStatus==="fetching",C=E==="pending",A=E==="error",b=C&&x,$=p!==void 0,F={status:E,fetchStatus:c.fetchStatus,isPending:C,isSuccess:E==="success",isError:A,isInitialLoading:b,isLoading:b,data:p,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:A&&!$,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:A&&$,isStale:yc(e,t),refetch:this.refetch,promise:this.#o,isEnabled:_s(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const I=S=>{F.status==="error"?S.reject(F.error):F.data!==void 0&&S.resolve(F.data)},w=()=>{const S=this.#o=F.promise=lu();I(S)},O=this.#o;switch(O.status){case"pending":e.queryHash===s.queryHash&&I(O);break;case"fulfilled":(F.status==="error"||F.data!==O.value)&&w();break;case"rejected":(F.status!=="error"||F.error!==O.reason)&&w();break}}return F}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#a=this.options,this.#n.data!==void 0&&(this.#h=this.#t),ro(t,e))return;this.#i=t;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,i=typeof n=="function"?n():n;if(i==="all"||!i&&!this.#m.size)return!0;const r=new Set(i??this.#m);return this.options.throwOnError&&r.add("error"),Object.keys(this.#i).some(o=>{const l=o;return this.#i[l]!==e[l]&&r.has(l)})};this.#C({listeners:s()})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){Dt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function K0(e,t){return _s(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Of(e,t){return K0(e,t)||e.state.data!==void 0&&cu(e,t,t.refetchOnMount)}function cu(e,t,s){if(_s(t.enabled,e)!==!1&&Sn(t.staleTime,e)!=="static"){const n=typeof s=="function"?s(e):s;return n==="always"||n!==!1&&yc(e,t)}return!1}function Nf(e,t,s,n){return(e!==t||_s(n.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&yc(e,s)}function yc(e,t){return _s(t.enabled,e)!==!1&&e.isStaleByTime(Sn(t.staleTime,e))}function H0(e,t){return!ro(e.getCurrentResult(),t)}function oo(e){return{onFetch:(t,s)=>{const n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,r=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},u=0;const d=async()=>{let c=!1;const h=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},p=Zp(t.options,t.fetchOptions),m=async(g,E,_)=>{if(c)return Promise.reject();if(E==null&&g.pages.length)return Promise.resolve(g);const C=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:E,direction:_?"backward":"forward",meta:t.options.meta};return h(L),L})(),A=await p(C),{maxPages:b}=t.options,$=_?L0:q0;return{pages:$(g.pages,A,b),pageParams:$(g.pageParams,E,b)}};if(i&&r.length){const g=i==="backward",E=g?ng:du,_={pages:r,pageParams:o},x=E(n,_);l=await m(_,x,g)}else{const g=e??r.length;do{const E=u===0?o[0]??n.initialPageParam:du(n,l);if(u>0&&E==null)break;l=await m(l,E),u++}while(u<g)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=d}}}function du(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 ng(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}function G0(e,t){return t?du(e,t)!=null:!1}function W0(e,t){return!t||!e.getPreviousPageParam?!1:ng(e,t)!=null}var z0=class extends sg{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:oo()})}getOptimisticResult(e){return e.behavior=oo(),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){const{state:s}=e,n=super.createResult(e,t),{isFetching:i,isRefetching:r,isError:o,isRefetchError:l}=n,u=s.fetchMeta?.fetchMore?.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:G0(t,s.data),hasPreviousPage:W0(t,s.data),isFetchNextPageError:d,isFetchingNextPage:c,isFetchPreviousPageError:h,isFetchingPreviousPage:p,isRefetchError:l&&!d&&!h,isRefetching:r&&!c&&!p}}},Y0=class extends eg{#e;#t;#s;#i;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#t=[],this.state=e.state||ig(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Xp({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(r,o)=>{this.#n({type:"failed",failureCount:r,error:o})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const n=this.state.status==="pending",i=!this.#i.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:i}),await this.#s.config.onMutate?.(e,this,s);const o=await this.options.onMutate?.(e,s);o!==this.state.context&&this.#n({type:"pending",context:o,variables:e,isPaused:i})}const r=await this.#i.start();return await this.#s.config.onSuccess?.(r,e,this.state.context,this,s),await this.options.onSuccess?.(r,e,this.state.context,s),await this.#s.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(r,null,e,this.state.context,s),this.#n({type:"success",data:r}),r}catch(r){try{throw await this.#s.config.onError?.(r,e,this.state.context,this,s),await this.options.onError?.(r,e,this.state.context,s),await this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(void 0,r,e,this.state.context,s),r}finally{this.#n({type:"error",error:r})}}finally{this.#s.runNext(this)}}#n(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Dt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function ig(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rg=class extends Xi{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#s=0}#e;#t;#s;build(t,s,n){const i=new Y0({client:t,mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(s),state:n});return this.add(i),i}add(t){this.#e.add(t);const s=$a(t);if(typeof s=="string"){const n=this.#t.get(s);n?n.push(t):this.#t.set(s,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const s=$a(t);if(typeof s=="string"){const n=this.#t.get(s);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&this.#t.delete(s)}}this.notify({type:"removed",mutation:t})}canRun(t){const s=$a(t);if(typeof s=="string"){const i=this.#t.get(s)?.find(r=>r.state.status==="pending");return!i||i===t}else return!0}runNext(t){const s=$a(t);return typeof s=="string"?this.#t.get(s)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Dt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const s={exact:!0,...t};return this.getAll().find(n=>Sf(s,n))}findAll(t={}){return this.getAll().filter(s=>Sf(t,s))}notify(t){Dt.batch(()=>{this.listeners.forEach(s=>{s(t)})})}resumePausedMutations(){const t=this.getAll().filter(s=>s.state.isPaused);return Dt.batch(()=>Promise.all(t.map(s=>s.continue().catch(ys))))}};function $a(e){return e.options.scope?.id}var Z0=class extends Xi{#e;#t=void 0;#s;#i;constructor(t,s){super(),this.#e=t,this.setOptions(s),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#e.defaultMutationOptions(t),ro(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),s?.mutationKey&&this.options.mutationKey&&ui(s.mutationKey)!==ui(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#n(),this.#a()}mutate(t,s){return this.#i=s,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(t)}#n(){const t=this.#s?.state??ig();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){Dt.batch(()=>{if(this.#i&&this.hasListeners()){const s=this.#t.variables,n=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,s,n,i),this.#i.onSettled?.(t.data,null,s,n,i)):t?.type==="error"&&(this.#i.onError?.(t.error,s,n,i),this.#i.onSettled?.(void 0,t.error,s,n,i))}this.listeners.forEach(s=>{s(this.#t)})})}},ag=class extends Xi{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,s,n){const i=s.queryKey,r=s.queryHash??gc(i,s);let o=this.get(r);return o||(o=new U0({client:t,queryKey:i,queryHash:r,options:t.defaultQueryOptions(s),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const s=this.#e.get(t.queryHash);s&&(t.destroy(),s===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Dt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const s={exact:!0,...t};return this.getAll().find(n=>Af(s,n))}findAll(t={}){const s=this.getAll();return Object.keys(t).length>0?s.filter(n=>Af(t,n)):s}notify(t){Dt.batch(()=>{this.listeners.forEach(s=>{s(t)})})}onFocus(){Dt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Dt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},J0=class{#e;#t;#s;#i;#n;#a;#o;#r;constructor(t={}){this.#e=t.queryCache||new ag,this.#t=t.mutationCache||new rg,this.#s=t.defaultOptions||{},this.#i=new Map,this.#n=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=bc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=ao.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#r?.(),this.#r=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const s=this.defaultQueryOptions({queryKey:t});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(t){const s=this.defaultQueryOptions(t),n=this.#e.build(this,s),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Sn(s.staleTime,n))&&this.prefetchQuery(s),Promise.resolve(i))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:s,state:n})=>{const i=n.data;return[s,i]})}setQueryData(t,s,n){const i=this.defaultQueryOptions({queryKey:t}),o=this.#e.get(i.queryHash)?.state.data,l=R0(s,o);if(l!==void 0)return this.#e.build(this,i).setData(l,{...n,manual:!0})}setQueriesData(t,s,n){return Dt.batch(()=>this.#e.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,s,n)]))}getQueryState(t){const s=this.defaultQueryOptions({queryKey:t});return this.#e.get(s.queryHash)?.state}removeQueries(t){const s=this.#e;Dt.batch(()=>{s.findAll(t).forEach(n=>{s.remove(n)})})}resetQueries(t,s){const n=this.#e;return Dt.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},s)))}cancelQueries(t,s={}){const n={revert:!0,...s},i=Dt.batch(()=>this.#e.findAll(t).map(r=>r.cancel(n)));return Promise.all(i).then(ys).catch(ys)}invalidateQueries(t,s={}){return Dt.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},s)))}refetchQueries(t,s={}){const n={...s,cancelRefetch:s.cancelRefetch??!0},i=Dt.batch(()=>this.#e.findAll(t).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let o=r.fetch(void 0,n);return n.throwOnError||(o=o.catch(ys)),r.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(ys)}fetchQuery(t){const s=this.defaultQueryOptions(t);s.retry===void 0&&(s.retry=!1);const n=this.#e.build(this,s);return n.isStaleByTime(Sn(s.staleTime,n))?n.fetch(s):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(ys).catch(ys)}fetchInfiniteQuery(t){return t.behavior=oo(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(ys).catch(ys)}ensureInfiniteQueryData(t){return t.behavior=oo(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ao.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(t){this.#s=t}setQueryDefaults(t,s){this.#i.set(ui(t),{queryKey:t,defaultOptions:s})}getQueryDefaults(t){const s=[...this.#i.values()],n={};return s.forEach(i=>{Br(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,s){this.#n.set(ui(t),{mutationKey:t,defaultOptions:s})}getMutationDefaults(t){const s=[...this.#n.values()],n={};return s.forEach(i=>{Br(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const s={...this.#s.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return s.queryHash||(s.queryHash=gc(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===vc&&(s.enabled=!1),s}defaultMutationOptions(t){return t?._defaulted?t:{...this.#s.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},X0="VUE_QUERY_CLIENT";function og(e){const t=e?`:${e}`:"";return`${X0}${t}`}function fu(e,t){Object.keys(e).forEach(s=>{e[s]=t[s]})}function hu(e,t,s="",n=0){if(t){const i=t(e,s,n);if(i===void 0&&ht(e)||i!==void 0)return i}if(Array.isArray(e))return e.map((i,r)=>hu(i,t,String(r),n+1));if(typeof e=="object"&&tC(e)){const i=Object.entries(e).map(([r,o])=>[r,hu(o,t,r,n+1)]);return Object.fromEntries(i)}return e}function eC(e,t){return hu(e,t)}function ze(e,t=!1){return eC(e,(s,n,i)=>{if(i===1&&n==="queryKey")return ze(s,!0);if(t&&sC(s))return ze(s(),t);if(ht(s))return ze(T(s),t)})}function tC(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function sC(e){return typeof e=="function"}function fn(e=""){if(!wp())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=og(e),s=Yt(t);if(!s)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return s}var nC=class extends ag{find(e){return super.find(ze(e))}findAll(e={}){return super.findAll(ze(e))}},iC=class extends rg{find(e){return super.find(ze(e))}findAll(e={}){return super.findAll(ze(e))}},rC=class extends J0{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new nC,mutationCache:e.mutationCache||new iC};super(t),this.isRestoring=ye(!1)}isFetching(e={}){return super.isFetching(ze(e))}isMutating(e={}){return super.isMutating(ze(e))}getQueryData(e){return super.getQueryData(ze(e))}ensureQueryData(e){return super.ensureQueryData(ze(e))}getQueriesData(e){return super.getQueriesData(ze(e))}setQueryData(e,t,s={}){return super.setQueryData(ze(e),t,ze(s))}setQueriesData(e,t,s={}){return super.setQueriesData(ze(e),t,ze(s))}getQueryState(e){return super.getQueryState(ze(e))}removeQueries(e={}){return super.removeQueries(ze(e))}resetQueries(e={},t={}){return super.resetQueries(ze(e),ze(t))}cancelQueries(e={},t={}){return super.cancelQueries(ze(e),ze(t))}invalidateQueries(e={},t={}){const s=ze(e),n=ze(t);if(super.invalidateQueries({...s,refetchType:"none"},n),s.refetchType==="none")return Promise.resolve();const i={...s,type:s.refetchType??s.type??"active"};return kt().then(()=>super.refetchQueries(i,n))}refetchQueries(e={},t={}){return super.refetchQueries(ze(e),ze(t))}fetchQuery(e){return super.fetchQuery(ze(e))}prefetchQuery(e){return super.prefetchQuery(ze(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(ze(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(ze(e))}setDefaultOptions(e){super.setDefaultOptions(ze(e))}setQueryDefaults(e,t){super.setQueryDefaults(ze(e),ze(t))}getQueryDefaults(e){return super.getQueryDefaults(ze(e))}setMutationDefaults(e,t){super.setMutationDefaults(ze(e),ze(t))}getMutationDefaults(e){return super.getMutationDefaults(ze(e))}},aC={install:(e,t={})=>{const s=og(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 rC(o)}li||n.mount();let i=()=>{};if(t.clientPersister){n.isRestoring&&(n.isRestoring.value=!0);const[o,l]=t.clientPersister(n);i=o,l.then(()=>{n.isRestoring&&(n.isRestoring.value=!1),t.clientPersisterOnSuccess?.(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 lg(e,t,s){const n=fn(),i=v(()=>{const m=ze(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?ko(r.getCurrentResult()):As(r.getCurrentResult());let l=()=>{};n.isRestoring&&Ye(n.isRestoring,m=>{m||(l(),l=r.subscribe(g=>{fu(o,g)}))},{immediate:!0});const u=()=>{r.setOptions(i.value),fu(o,r.getCurrentResult())};Ye(i,u),ec(()=>{l()});const d=(...m)=>(u(),o.refetch(...m)),c=()=>new Promise((m,g)=>{let E=()=>{};const _=()=>{if(i.value.enabled!==!1){r.setOptions(i.value);const x=r.getOptimisticResult(i.value);x.isStale?(E(),r.fetchOptimistic(i.value).then(m,C=>{ou(i.value.throwOnError,[C,r.getCurrentQuery()])?g(C):m(r.getCurrentResult())})):(E(),m(x))}};_(),E=Ye(i,_)});Ye(()=>o.error,m=>{if(o.isError&&!o.isFetching&&ou(i.value.throwOnError,[m,r.getCurrentQuery()]))throw m});const h=i.value.shallow?Wm(o):Vi(o),p=oc(h);for(const m in o)typeof o[m]=="function"&&(p[m]=o[m]);return p.suspense=c,p.refetch=d,p}function Jt(e,t){return lg(sg,e)}function oC(e,t){return lg(z0,e)}function Nt(e,t){const s=fn(),n=v(()=>s.defaultMutationOptions(ze(e))),i=new Z0(s,n.value),r=n.value.shallow?ko(i.getCurrentResult()):As(i.getCurrentResult()),o=i.subscribe(c=>{fu(r,c)}),l=(c,h)=>{i.mutate(c,h).catch(()=>{})};Ye(n,()=>{i.setOptions(n.value)}),ec(()=>{o()});const u=n.value.shallow?Wm(r):Vi(r),d=oc(u);return Ye(()=>r.error,c=>{if(c&&ou(n.value.throwOnError,[c]))throw c}),{...d,mutate:l,mutateAsync:r.mutate,reset:r.reset}}const lC="modulepreload",uC=function(e){return"/"+e},kf={},Pf=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){let u=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=u(s.map(d=>{if(d=uC(d),d in kf)return;kf[d]=!0;const c=d.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":lC,c||(p.as="script"),p.crossOrigin="",p.href=d,l&&p.setAttribute("nonce",l),document.head.appendChild(p),c)return new Promise((m,g)=>{p.addEventListener("load",m),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${d}`)))})}))}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.1
|
|
28
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/const xi=typeof document<"u";function ug(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cC(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ug(e.default)}const lt=Object.assign;function $l(e,t){const s={};for(const n in t){const i=t[n];s[n]=Ms(i)?i.map(e):e(i)}return s}const Rr=()=>{},Ms=Array.isArray,cg=/#/g,dC=/&/g,fC=/\//g,hC=/=/g,mC=/\?/g,dg=/\+/g,pC=/%5B/g,gC=/%5D/g,fg=/%5E/g,vC=/%60/g,hg=/%7B/g,bC=/%7C/g,mg=/%7D/g,yC=/%20/g;function _c(e){return encodeURI(""+e).replace(bC,"|").replace(pC,"[").replace(gC,"]")}function _C(e){return _c(e).replace(hg,"{").replace(mg,"}").replace(fg,"^")}function mu(e){return _c(e).replace(dg,"%2B").replace(yC,"+").replace(cg,"%23").replace(dC,"%26").replace(vC,"`").replace(hg,"{").replace(mg,"}").replace(fg,"^")}function EC(e){return mu(e).replace(hC,"%3D")}function wC(e){return _c(e).replace(cg,"%23").replace(mC,"%3F")}function CC(e){return e==null?"":wC(e).replace(fC,"%2F")}function Ur(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const AC=/\/$/,SC=e=>e.replace(AC,"");function Tl(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=OC(n??t,s),{fullPath:n+(r&&"?")+r+o,path:n,query:i,hash:Ur(o)}}function xC(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Df(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $C(e,t,s){const n=t.matched.length-1,i=s.matched.length-1;return n>-1&&n===i&&Bi(t.matched[n],s.matched[i])&&pg(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function Bi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!TC(e[s],t[s]))return!1;return!0}function TC(e,t){return Ms(e)?Rf(e,t):Ms(t)?Rf(t,e):e===t}function Rf(e,t){return Ms(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function OC(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 gn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Kr;(function(e){e.pop="pop",e.push="push"})(Kr||(Kr={}));var Mr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Mr||(Mr={}));function NC(e){if(!e)if(xi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),SC(e)}const kC=/^[^#]+#/;function PC(e,t){return e.replace(kC,"#")+t}function DC(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 Qo=()=>({left:window.scrollX,top:window.scrollY});function RC(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=DC(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 Mf(e,t){return(history.state?history.state.position-t:-1)+e}const pu=new Map;function MC(e,t){pu.set(e,t)}function IC(e){const t=pu.get(e);return pu.delete(e),t}let qC=()=>location.protocol+"//"+location.host;function gg(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),Df(u,"")}return Df(s,e)+n+i}function LC(e,t,s,n){let i=[],r=[],o=null;const l=({state:p})=>{const m=gg(e,location),g=s.value,E=t.value;let _=0;if(p){if(s.value=m,t.value=p,o&&o===g){o=null;return}_=E?p.position-E.position:0}else n(m);i.forEach(x=>{x(s.value,g,{delta:_,type:Kr.pop,direction:_?_>0?Mr.forward:Mr.back:Mr.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(lt({},p.state,{scroll:Qo()}),"")}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 If(e,t,s,n=!1,i=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:i?Qo():null}}function FC(e){const{history:t,location:s}=window,n={value:gg(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:qC()+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=lt({},t.state,If(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=lt({},i.value,t.state,{forward:u,scroll:Qo()});r(c.current,c,!0);const h=lt({},If(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 VC(e){e=NC(e);const t=FC(e),s=LC(e,t.state,t.location,t.replace);function n(r,o=!0){o||s.pauseListeners(),history.go(r)}const i=lt({location:"",base:e,go:n,createHref:PC.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 QC(e){return typeof e=="string"||e&&typeof e=="object"}function vg(e){return typeof e=="string"||typeof e=="symbol"}const bg=Symbol("");var qf;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(qf||(qf={}));function Ui(e,t){return lt(new Error,{type:e,[bg]:!0},t)}function Zs(e,t){return e instanceof Error&&bg in e&&(t==null||!!(e.type&t))}const Lf="[^/]+?",jC={sensitive:!1,strict:!1,start:!0,end:!0},BC=/[.+*?^${}()[\]/\\]/g;function UC(e,t){const s=lt({},jC,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(BC,"\\$&"),m+=40;else if(p.type===1){const{value:g,repeatable:E,optional:_,regexp:x}=p;r.push({name:g,repeatable:E,optional:_});const C=x||Lf;if(C!==Lf){m+=10;try{new RegExp(`(${C})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${g}" (${C}): `+b.message)}}let A=E?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;h||(A=_&&d.length<2?`(?:/${A})`:"/"+A),_&&(A+="?"),i+=A,m+=20,_&&(m+=-8),E&&(m+=-20),C===".*"&&(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:E,optional:_}=m,x=g in d?d[g]:"";if(Ms(x)&&!E)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const C=Ms(x)?x.join("/"):x;if(!C)if(_)p.length<2&&(c.endsWith("/")?c=c.slice(0,-1):h=!0);else throw new Error(`Missing required param "${g}"`);c+=C}}return c||"/"}return{re:o,score:n,keys:r,parse:l,stringify:u}}function KC(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 yg(e,t){let s=0;const n=e.score,i=t.score;for(;s<n.length&&s<i.length;){const r=KC(n[s],i[s]);if(r)return r;s++}if(Math.abs(i.length-n.length)===1){if(Ff(n))return 1;if(Ff(i))return-1}return i.length-n.length}function Ff(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const HC={type:0,value:""},GC=/[a-zA-Z0-9_]/;function WC(e){if(!e)return[[]];if(e==="/")return[[HC]];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:GC.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 zC(e,t,s){const n=UC(WC(e.path),s),i=lt(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function YC(e,t){const s=[],n=new Map;t=Bf({strict:!1,end:!0,sensitive:!1},t);function i(h){return n.get(h)}function r(h,p,m){const g=!m,E=Qf(h);E.aliasOf=m&&m.record;const _=Bf(t,h),x=[E];if("alias"in h){const b=typeof h.alias=="string"?[h.alias]:h.alias;for(const $ of b)x.push(Qf(lt({},E,{components:m?m.record.components:E.components,path:$,aliasOf:m?m.record:E})))}let C,A;for(const b of x){const{path:$}=b;if(p&&$[0]!=="/"){const L=p.record.path,F=L[L.length-1]==="/"?"":"/";b.path=p.record.path+($&&F+$)}if(C=zC(b,p,_),m?m.alias.push(C):(A=A||C,A!==C&&A.alias.push(C),g&&h.name&&!jf(C)&&o(h.name)),_g(C)&&u(C),E.children){const L=E.children;for(let F=0;F<L.length;F++)r(L[F],C,m&&m.children[F])}m=m||C}return A?()=>{o(A)}:Rr}function o(h){if(vg(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=XC(h,s);s.splice(p,0,h),h.record.name&&!jf(h)&&n.set(h.record.name,h)}function d(h,p){let m,g={},E,_;if("name"in h&&h.name){if(m=n.get(h.name),!m)throw Ui(1,{location:h});_=m.record.name,g=lt(Vf(p.params,m.keys.filter(A=>!A.optional).concat(m.parent?m.parent.keys.filter(A=>A.optional):[]).map(A=>A.name)),h.params&&Vf(h.params,m.keys.map(A=>A.name))),E=m.stringify(g)}else if(h.path!=null)E=h.path,m=s.find(A=>A.re.test(E)),m&&(g=m.parse(E),_=m.record.name);else{if(m=p.name?n.get(p.name):s.find(A=>A.re.test(p.path)),!m)throw Ui(1,{location:h,currentLocation:p});_=m.record.name,g=lt({},p.params,h.params),E=m.stringify(g)}const x=[];let C=m;for(;C;)x.unshift(C.record),C=C.parent;return{name:_,path:E,params:g,matched:x,meta:JC(x)}}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 Vf(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function Qf(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ZC(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 ZC(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 jf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function JC(e){return e.reduce((t,s)=>lt(t,s.meta),{})}function Bf(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}function XC(e,t){let s=0,n=t.length;for(;s!==n;){const r=s+n>>1;yg(e,t[r])<0?n=r:s=r+1}const i=eA(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function eA(e){let t=e;for(;t=t.parent;)if(_g(t)&&yg(e,t)===0)return t}function _g({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tA(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(dg," "),o=r.indexOf("="),l=Ur(o<0?r:r.slice(0,o)),u=o<0?null:Ur(r.slice(o+1));if(l in t){let d=t[l];Ms(d)||(d=t[l]=[d]),d.push(u)}else t[l]=u}return t}function Uf(e){let t="";for(let s in e){const n=e[s];if(s=EC(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(Ms(n)?n.map(r=>r&&mu(r)):[n&&mu(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function sA(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=Ms(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const nA=Symbol(""),Kf=Symbol(""),jo=Symbol(""),Ec=Symbol(""),gu=Symbol("");function mr(){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 _n(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(Ui(4,{from:s,to:t})):p instanceof Error?u(p):QC(p)?u(Ui(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 Ol(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(ug(u)){const c=(u.__vccOpts||u)[t];c&&r.push(_n(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=cC(c)?c.default:c;o.mods[l]=c,o.components[l]=h;const m=(h.__vccOpts||h)[t];return m&&_n(m,s,n,o,l,i)()}))}}return r}function Hf(e){const t=Yt(jo),s=Yt(Ec),n=v(()=>{const u=T(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(Bi.bind(null,c));if(p>-1)return p;const m=Gf(u[d-2]);return d>1&&Gf(c)===m&&h[h.length-1].path!==m?h.findIndex(Bi.bind(null,u[d-2])):p}),r=v(()=>i.value>-1&&lA(s.params,n.value.params)),o=v(()=>i.value>-1&&i.value===s.matched.length-1&&pg(s.params,n.value.params));function l(u={}){if(oA(u)){const d=t[T(e.replace)?"replace":"push"](T(e.to)).catch(Rr);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 iA(e){return e.length===1?e[0]:e}const rA=Ue({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"},viewTransition:Boolean},useLink:Hf,setup(e,{slots:t}){const s=As(Hf(e)),{options:n}=Yt(jo),i=v(()=>({[Wf(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[Wf(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const r=t.default&&iA(t.default(s));return e.custom?r:oi("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:i.value},r)}}}),aA=rA;function oA(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 lA(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(!Ms(i)||i.length!==n.length||n.some((r,o)=>r!==i[o]))return!1}return!0}function Gf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wf=(e,t,s)=>e??t??s,uA=Ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=Yt(gu),i=v(()=>e.route||n.value),r=Yt(Kf,0),o=v(()=>{let d=T(r);const{matched:c}=i.value;let h;for(;(h=c[d])&&!h.components;)d++;return d}),l=v(()=>i.value.matched[o.value]);si(Kf,v(()=>o.value+1)),si(nA,l),si(gu,i);const u=ye();return Ye(()=>[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||!Bi(c,m)||!p)&&(c.enterCallbacks[h]||[]).forEach(E=>E(d))},{flush:"post"}),()=>{const d=i.value,c=e.name,h=l.value,p=h&&h.components[c];if(!p)return zf(s.default,{Component:p,route:d});const m=h.props[c],g=m?m===!0?d.params:typeof m=="function"?m(d):m:null,_=oi(p,lt({},g,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(h.instances[c]=null)},ref:u}));return zf(s.default,{Component:_,route:d})||_}}});function zf(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const cA=uA;function dA(e){const t=YC(e.routes,e),s=e.parseQuery||tA,n=e.stringifyQuery||Uf,i=e.history,r=mr(),o=mr(),l=mr(),u=zm(gn);let d=gn;xi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=$l.bind(null,V=>""+V),h=$l.bind(null,CC),p=$l.bind(null,Ur);function m(V,H){let le,Ee;return vg(V)?(le=t.getRecordMatcher(V),Ee=H):Ee=V,t.addRoute(Ee,le)}function g(V){const H=t.getRecordMatcher(V);H&&t.removeRoute(H)}function E(){return t.getRoutes().map(V=>V.record)}function _(V){return!!t.getRecordMatcher(V)}function x(V,H){if(H=lt({},H||u.value),typeof V=="string"){const B=Tl(s,V,H.path),ie=t.resolve({path:B.path},H),re=i.createHref(B.fullPath);return lt(B,ie,{params:p(ie.params),hash:Ur(B.hash),redirectedFrom:void 0,href:re})}let le;if(V.path!=null)le=lt({},V,{path:Tl(s,V.path,H.path).path});else{const B=lt({},V.params);for(const ie in B)B[ie]==null&&delete B[ie];le=lt({},V,{params:h(B)}),H.params=h(H.params)}const Ee=t.resolve(le,H),J=V.hash||"";Ee.params=c(p(Ee.params));const k=xC(n,lt({},V,{hash:_C(J),path:Ee.path})),R=i.createHref(k);return lt({fullPath:k,hash:J,query:n===Uf?sA(V.query):V.query||{}},Ee,{redirectedFrom:void 0,href:R})}function C(V){return typeof V=="string"?Tl(s,V,u.value.path):lt({},V)}function A(V,H){if(d!==V)return Ui(8,{from:H,to:V})}function b(V){return F(V)}function $(V){return b(lt(C(V),{replace:!0}))}function L(V){const H=V.matched[V.matched.length-1];if(H&&H.redirect){const{redirect:le}=H;let Ee=typeof le=="function"?le(V):le;return typeof Ee=="string"&&(Ee=Ee.includes("?")||Ee.includes("#")?Ee=C(Ee):{path:Ee},Ee.params={}),lt({query:V.query,hash:V.hash,params:Ee.path!=null?{}:V.params},Ee)}}function F(V,H){const le=d=x(V),Ee=u.value,J=V.state,k=V.force,R=V.replace===!0,B=L(le);if(B)return F(lt(C(B),{state:typeof B=="object"?lt({},J,B.state):J,force:k,replace:R}),H||le);const ie=le;ie.redirectedFrom=H;let re;return!k&&$C(n,Ee,le)&&(re=Ui(16,{to:ie,from:Ee}),se(Ee,Ee,!0,!1)),(re?Promise.resolve(re):O(ie,Ee)).catch(oe=>Zs(oe)?Zs(oe,2)?oe:G(oe):Z(oe,ie,Ee)).then(oe=>{if(oe){if(Zs(oe,2))return F(lt({replace:R},C(oe.to),{state:typeof oe.to=="object"?lt({},J,oe.to.state):J,force:k}),H||ie)}else oe=j(ie,Ee,!0,R,J);return S(ie,Ee,oe),oe})}function I(V,H){const le=A(V,H);return le?Promise.reject(le):Promise.resolve()}function w(V){const H=Ie.values().next().value;return H&&typeof H.runWithContext=="function"?H.runWithContext(V):V()}function O(V,H){let le;const[Ee,J,k]=fA(V,H);le=Ol(Ee.reverse(),"beforeRouteLeave",V,H);for(const B of Ee)B.leaveGuards.forEach(ie=>{le.push(_n(ie,V,H))});const R=I.bind(null,V,H);return le.push(R),ve(le).then(()=>{le=[];for(const B of r.list())le.push(_n(B,V,H));return le.push(R),ve(le)}).then(()=>{le=Ol(J,"beforeRouteUpdate",V,H);for(const B of J)B.updateGuards.forEach(ie=>{le.push(_n(ie,V,H))});return le.push(R),ve(le)}).then(()=>{le=[];for(const B of k)if(B.beforeEnter)if(Ms(B.beforeEnter))for(const ie of B.beforeEnter)le.push(_n(ie,V,H));else le.push(_n(B.beforeEnter,V,H));return le.push(R),ve(le)}).then(()=>(V.matched.forEach(B=>B.enterCallbacks={}),le=Ol(k,"beforeRouteEnter",V,H,w),le.push(R),ve(le))).then(()=>{le=[];for(const B of o.list())le.push(_n(B,V,H));return le.push(R),ve(le)}).catch(B=>Zs(B,8)?B:Promise.reject(B))}function S(V,H,le){l.list().forEach(Ee=>w(()=>Ee(V,H,le)))}function j(V,H,le,Ee,J){const k=A(V,H);if(k)return k;const R=H===gn,B=xi?history.state:{};le&&(Ee||R?i.replace(V.fullPath,lt({scroll:R&&B&&B.scroll},J)):i.push(V.fullPath,J)),u.value=V,se(V,H,le,R),G()}let X;function W(){X||(X=i.listen((V,H,le)=>{if(!tt.listening)return;const Ee=x(V),J=L(Ee);if(J){F(lt(J,{replace:!0,force:!0}),Ee).catch(Rr);return}d=Ee;const k=u.value;xi&&MC(Mf(k.fullPath,le.delta),Qo()),O(Ee,k).catch(R=>Zs(R,12)?R:Zs(R,2)?(F(lt(C(R.to),{force:!0}),Ee).then(B=>{Zs(B,20)&&!le.delta&&le.type===Kr.pop&&i.go(-1,!1)}).catch(Rr),Promise.reject()):(le.delta&&i.go(-le.delta,!1),Z(R,Ee,k))).then(R=>{R=R||j(Ee,k,!1),R&&(le.delta&&!Zs(R,8)?i.go(-le.delta,!1):le.type===Kr.pop&&Zs(R,20)&&i.go(-1,!1)),S(Ee,k,R)}).catch(Rr)}))}let fe=mr(),ne=mr(),Q;function Z(V,H,le){G(V);const Ee=ne.list();return Ee.length?Ee.forEach(J=>J(V,H,le)):console.error(V),Promise.reject(V)}function Y(){return Q&&u.value!==gn?Promise.resolve():new Promise((V,H)=>{fe.add([V,H])})}function G(V){return Q||(Q=!V,W(),fe.list().forEach(([H,le])=>V?le(V):H()),fe.reset()),V}function se(V,H,le,Ee){const{scrollBehavior:J}=e;if(!xi||!J)return Promise.resolve();const k=!le&&IC(Mf(V.fullPath,0))||(Ee||!le)&&history.state&&history.state.scroll||null;return kt().then(()=>J(V,H,k)).then(R=>R&&RC(R)).catch(R=>Z(R,V,H))}const ue=V=>i.go(V);let Re;const Ie=new Set,tt={currentRoute:u,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:E,resolve:x,options:e,push:b,replace:$,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:ne.add,isReady:Y,install(V){const H=this;V.component("RouterLink",aA),V.component("RouterView",cA),V.config.globalProperties.$router=H,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>T(u)}),xi&&!Re&&u.value===gn&&(Re=!0,b(i.location).catch(J=>{}));const le={};for(const J in gn)Object.defineProperty(le,J,{get:()=>u.value[J],enumerable:!0});V.provide(jo,H),V.provide(Ec,ko(le)),V.provide(gu,u);const Ee=V.unmount;Ie.add(V),V.unmount=function(){Ie.delete(V),Ie.size<1&&(d=gn,X&&X(),X=null,u.value=gn,Re=!1,Q=!1),Ee()}}};function ve(V){return V.reduce((H,le)=>H.then(()=>w(le)),Promise.resolve())}return tt}function fA(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=>Bi(d,l))?n.push(l):s.push(l));const u=e.matched[o];u&&(t.matched.find(d=>Bi(d,u))||i.push(u))}return[s,n,i]}function os(){return Yt(jo)}function ms(e){return Yt(Ec)}typeof window<"u"&&!window.configs&&(window.configs={API_URL:"http://127.0.0.1:12448/",BASE_PATH:"/"});function hA(e){const t=window.configs[e];if(t===void 0)throw new Error(`Environment variable "${e}" is not defined`);return t}function Eg(e,t){return function(){return e.apply(t,arguments)}}const{toString:mA}=Object.prototype,{getPrototypeOf:wc}=Object,{iterator:Bo,toStringTag:wg}=Symbol,Uo=(e=>t=>{const s=mA.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Is=e=>(e=e.toLowerCase(),t=>Uo(t)===e),Ko=e=>t=>typeof t===e,{isArray:er}=Array,Ki=Ko("undefined");function ea(e){return e!==null&&!Ki(e)&&e.constructor!==null&&!Ki(e.constructor)&&rs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cg=Is("ArrayBuffer");function pA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cg(e.buffer),t}const gA=Ko("string"),rs=Ko("function"),Ag=Ko("number"),ta=e=>e!==null&&typeof e=="object",vA=e=>e===!0||e===!1,Va=e=>{if(Uo(e)!=="object")return!1;const t=wc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(wg in e)&&!(Bo in e)},bA=e=>{if(!ta(e)||ea(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yA=Is("Date"),_A=Is("File"),EA=Is("Blob"),wA=Is("FileList"),CA=e=>ta(e)&&rs(e.pipe),AA=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||rs(e.append)&&((t=Uo(e))==="formdata"||t==="object"&&rs(e.toString)&&e.toString()==="[object FormData]"))},SA=Is("URLSearchParams"),[xA,$A,TA,OA]=["ReadableStream","Request","Response","Headers"].map(Is),NA=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sa(e,t,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),er(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(ea(e))return;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 Sg(e,t){if(ea(e))return null;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 Yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xg=e=>!Ki(e)&&e!==Yn;function vu(){const{caseless:e,skipUndefined:t}=xg(this)&&this||{},s={},n=(i,r)=>{const o=e&&Sg(s,r)||r;Va(s[o])&&Va(i)?s[o]=vu(s[o],i):Va(i)?s[o]=vu({},i):er(i)?s[o]=i.slice():(!t||!Ki(i))&&(s[o]=i)};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&sa(arguments[i],n);return s}const kA=(e,t,s,{allOwnKeys:n}={})=>(sa(t,(i,r)=>{s&&rs(i)?e[r]=Eg(i,s):e[r]=i},{allOwnKeys:n}),e),PA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),DA=(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)},RA=(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&&wc(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},MA=(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},IA=e=>{if(!e)return null;if(er(e))return e;let t=e.length;if(!Ag(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},qA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wc(Uint8Array)),LA=(e,t)=>{const n=(e&&e[Bo]).call(e);let i;for(;(i=n.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},FA=(e,t)=>{let s;const n=[];for(;(s=e.exec(t))!==null;)n.push(s);return n},VA=Is("HTMLFormElement"),QA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,n,i){return n.toUpperCase()+i}),Yf=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),jA=Is("RegExp"),$g=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),n={};sa(s,(i,r)=>{let o;(o=t(i,r,e))!==!1&&(n[r]=o||i)}),Object.defineProperties(e,n)},BA=e=>{$g(e,(t,s)=>{if(rs(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const n=e[s];if(rs(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+"'")})}})},UA=(e,t)=>{const s={},n=i=>{i.forEach(r=>{s[r]=!0})};return er(e)?n(e):n(String(e).split(t)),s},KA=()=>{},HA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function GA(e){return!!(e&&rs(e.append)&&e[wg]==="FormData"&&e[Bo])}const WA=e=>{const t=new Array(10),s=(n,i)=>{if(ta(n)){if(t.indexOf(n)>=0)return;if(ea(n))return n;if(!("toJSON"in n)){t[i]=n;const r=er(n)?[]:{};return sa(n,(o,l)=>{const u=s(o,i+1);!Ki(u)&&(r[l]=u)}),t[i]=void 0,r}}return n};return s(e,0)},zA=Is("AsyncFunction"),YA=e=>e&&(ta(e)||rs(e))&&rs(e.then)&&rs(e.catch),Tg=((e,t)=>e?setImmediate:t?((s,n)=>(Yn.addEventListener("message",({source:i,data:r})=>{i===Yn&&r===s&&n.length&&n.shift()()},!1),i=>{n.push(i),Yn.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",rs(Yn.postMessage)),ZA=typeof queueMicrotask<"u"?queueMicrotask.bind(Yn):typeof process<"u"&&process.nextTick||Tg,JA=e=>e!=null&&rs(e[Bo]),te={isArray:er,isArrayBuffer:Cg,isBuffer:ea,isFormData:AA,isArrayBufferView:pA,isString:gA,isNumber:Ag,isBoolean:vA,isObject:ta,isPlainObject:Va,isEmptyObject:bA,isReadableStream:xA,isRequest:$A,isResponse:TA,isHeaders:OA,isUndefined:Ki,isDate:yA,isFile:_A,isBlob:EA,isRegExp:jA,isFunction:rs,isStream:CA,isURLSearchParams:SA,isTypedArray:qA,isFileList:wA,forEach:sa,merge:vu,extend:kA,trim:NA,stripBOM:PA,inherits:DA,toFlatObject:RA,kindOf:Uo,kindOfTest:Is,endsWith:MA,toArray:IA,forEachEntry:LA,matchAll:FA,isHTMLForm:VA,hasOwnProperty:Yf,hasOwnProp:Yf,reduceDescriptors:$g,freezeMethods:BA,toObjectSet:UA,toCamelCase:QA,noop:KA,toFiniteNumber:HA,findKey:Sg,global:Yn,isContextDefined:xg,isSpecCompliantForm:GA,toJSONObject:WA,isAsyncFn:zA,isThenable:YA,setImmediate:Tg,asap:ZA,isIterable:JA};function Ge(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)}te.inherits(Ge,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:te.toJSONObject(this.config),code:this.code,status:this.status}}});const Og=Ge.prototype,Ng={};["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=>{Ng[e]={value:e}});Object.defineProperties(Ge,Ng);Object.defineProperty(Og,"isAxiosError",{value:!0});Ge.from=(e,t,s,n,i,r)=>{const o=Object.create(Og);te.toFlatObject(e,o,function(c){return c!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",u=t==null&&e?e.code:t;return Ge.call(o,l,u,s,n,i),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",r&&Object.assign(o,r),o};const XA=null;function bu(e){return te.isPlainObject(e)||te.isArray(e)}function kg(e){return te.endsWith(e,"[]")?e.slice(0,-2):e}function Zf(e,t,s){return e?e.concat(t).map(function(i,r){return i=kg(i),!s&&r?"["+i+"]":i}).join(s?".":""):t}function eS(e){return te.isArray(e)&&!e.some(bu)}const tS=te.toFlatObject(te,{},null,function(t){return/^is[A-Z]/.test(t)});function Ho(e,t,s){if(!te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,s=te.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,_){return!te.isUndefined(_[E])});const n=s.metaTokens,i=s.visitor||c,r=s.dots,o=s.indexes,u=(s.Blob||typeof Blob<"u"&&Blob)&&te.isSpecCompliantForm(t);if(!te.isFunction(i))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(te.isDate(g))return g.toISOString();if(te.isBoolean(g))return g.toString();if(!u&&te.isBlob(g))throw new Ge("Blob is not supported. Use a Buffer instead.");return te.isArrayBuffer(g)||te.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,E,_){let x=g;if(g&&!_&&typeof g=="object"){if(te.endsWith(E,"{}"))E=n?E:E.slice(0,-2),g=JSON.stringify(g);else if(te.isArray(g)&&eS(g)||(te.isFileList(g)||te.endsWith(E,"[]"))&&(x=te.toArray(g)))return E=kg(E),x.forEach(function(A,b){!(te.isUndefined(A)||A===null)&&t.append(o===!0?Zf([E],b,r):o===null?E:E+"[]",d(A))}),!1}return bu(g)?!0:(t.append(Zf(_,E,r),d(g)),!1)}const h=[],p=Object.assign(tS,{defaultVisitor:c,convertValue:d,isVisitable:bu});function m(g,E){if(!te.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(g),te.forEach(g,function(x,C){(!(te.isUndefined(x)||x===null)&&i.call(t,x,te.isString(C)?C.trim():C,E,p))===!0&&m(x,E?E.concat(C):[C])}),h.pop()}}if(!te.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Jf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Cc(e,t){this._pairs=[],e&&Ho(e,this,t)}const Pg=Cc.prototype;Pg.append=function(t,s){this._pairs.push([t,s])};Pg.toString=function(t){const s=t?function(n){return t.call(this,n,Jf)}:Jf;return this._pairs.map(function(i){return s(i[0])+"="+s(i[1])},"").join("&")};function sS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Dg(e,t,s){if(!t)return e;const n=s&&s.encode||sS;te.isFunction(s)&&(s={serialize:s});const i=s&&s.serialize;let r;if(i?r=i(t,s):r=te.isURLSearchParams(t)?t.toString():new Cc(t,s).toString(n),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Xf{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){te.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Rg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nS=typeof URLSearchParams<"u"?URLSearchParams:Cc,iS=typeof FormData<"u"?FormData:null,rS=typeof Blob<"u"?Blob:null,aS={isBrowser:!0,classes:{URLSearchParams:nS,FormData:iS,Blob:rS},protocols:["http","https","file","blob","url","data"]},Ac=typeof window<"u"&&typeof document<"u",yu=typeof navigator=="object"&&navigator||void 0,oS=Ac&&(!yu||["ReactNative","NativeScript","NS"].indexOf(yu.product)<0),lS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uS=Ac&&window.location.href||"http://localhost",cS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ac,hasStandardBrowserEnv:oS,hasStandardBrowserWebWorkerEnv:lS,navigator:yu,origin:uS},Symbol.toStringTag,{value:"Module"})),jt={...cS,...aS};function dS(e,t){return Ho(e,new jt.classes.URLSearchParams,{visitor:function(s,n,i,r){return jt.isNode&&te.isBuffer(s)?(this.append(n,s.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function fS(e){return te.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hS(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 Mg(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&&te.isArray(i)?i.length:o,u?(te.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!l):((!i[o]||!te.isObject(i[o]))&&(i[o]=[]),t(s,n,i[o],r)&&te.isArray(i[o])&&(i[o]=hS(i[o])),!l)}if(te.isFormData(e)&&te.isFunction(e.entries)){const s={};return te.forEachEntry(e,(n,i)=>{t(fS(n),i,s,0)}),s}return null}function mS(e,t,s){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(e)}const na={transitional:Rg,adapter:["xhr","http","fetch"],transformRequest:[function(t,s){const n=s.getContentType()||"",i=n.indexOf("application/json")>-1,r=te.isObject(t);if(r&&te.isHTMLForm(t)&&(t=new FormData(t)),te.isFormData(t))return i?JSON.stringify(Mg(t)):t;if(te.isArrayBuffer(t)||te.isBuffer(t)||te.isStream(t)||te.isFile(t)||te.isBlob(t)||te.isReadableStream(t))return t;if(te.isArrayBufferView(t))return t.buffer;if(te.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 dS(t,this.formSerializer).toString();if((l=te.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ho(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return r||i?(s.setContentType("application/json",!1),mS(t)):t}],transformResponse:[function(t){const s=this.transitional||na.transitional,n=s&&s.forcedJSONParsing,i=this.responseType==="json";if(te.isResponse(t)||te.isReadableStream(t))return t;if(t&&te.isString(t)&&(n&&!this.responseType||i)){const o=!(s&&s.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?Ge.from(l,Ge.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:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(["delete","get","head","post","put","patch"],e=>{na.headers[e]={}});const pS=te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gS=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]&&pS[s])&&(s==="set-cookie"?t[s]?t[s].push(n):t[s]=[n]:t[s]=t[s]?t[s]+", "+n:n)}),t},eh=Symbol("internals");function pr(e){return e&&String(e).trim().toLowerCase()}function Qa(e){return e===!1||e==null?e:te.isArray(e)?e.map(Qa):String(e)}function vS(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 bS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nl(e,t,s,n,i){if(te.isFunction(n))return n.call(this,t,s);if(i&&(t=s),!!te.isString(t)){if(te.isString(n))return t.indexOf(n)!==-1;if(te.isRegExp(n))return n.test(t)}}function yS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,n)=>s.toUpperCase()+n)}function _S(e,t){const s=te.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 as=class{constructor(t){t&&this.set(t)}set(t,s,n){const i=this;function r(l,u,d){const c=pr(u);if(!c)throw new Error("header name must be a non-empty string");const h=te.findKey(i,c);(!h||i[h]===void 0||d===!0||d===void 0&&i[h]!==!1)&&(i[h||u]=Qa(l))}const o=(l,u)=>te.forEach(l,(d,c)=>r(d,c,u));if(te.isPlainObject(t)||t instanceof this.constructor)o(t,s);else if(te.isString(t)&&(t=t.trim())&&!bS(t))o(gS(t),s);else if(te.isObject(t)&&te.isIterable(t)){let l={},u,d;for(const c of t){if(!te.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[d=c[0]]=(u=l[d])?te.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}o(l,s)}else t!=null&&r(s,t,n);return this}get(t,s){if(t=pr(t),t){const n=te.findKey(this,t);if(n){const i=this[n];if(!s)return i;if(s===!0)return vS(i);if(te.isFunction(s))return s.call(this,i,n);if(te.isRegExp(s))return s.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=pr(t),t){const n=te.findKey(this,t);return!!(n&&this[n]!==void 0&&(!s||Nl(this,this[n],n,s)))}return!1}delete(t,s){const n=this;let i=!1;function r(o){if(o=pr(o),o){const l=te.findKey(n,o);l&&(!s||Nl(n,n[l],l,s))&&(delete n[l],i=!0)}}return te.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||Nl(this,this[r],r,t,!0))&&(delete this[r],i=!0)}return i}normalize(t){const s=this,n={};return te.forEach(this,(i,r)=>{const o=te.findKey(n,r);if(o){s[o]=Qa(i),delete s[r];return}const l=t?yS(r):String(r).trim();l!==r&&delete s[r],s[l]=Qa(i),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const s=Object.create(null);return te.forEach(this,(n,i)=>{n!=null&&n!==!1&&(s[i]=t&&te.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
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}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[eh]=this[eh]={accessors:{}}).accessors,i=this.prototype;function r(o){const l=pr(o);n[l]||(_S(i,o),n[l]=!0)}return te.isArray(t)?t.forEach(r):r(t),this}};as.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);te.reduceDescriptors(as.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[s]=n}}});te.freezeMethods(as);function kl(e,t){const s=this||na,n=t||s,i=as.from(n.headers);let r=n.data;return te.forEach(e,function(l){r=l.call(s,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function Ig(e){return!!(e&&e.__CANCEL__)}function tr(e,t,s){Ge.call(this,e??"canceled",Ge.ERR_CANCELED,t,s),this.name="CanceledError"}te.inherits(tr,Ge,{__CANCEL__:!0});function qg(e,t,s){const n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):t(new Ge("Request failed with status code "+s.status,[Ge.ERR_BAD_REQUEST,Ge.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function ES(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wS(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 CS(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(...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 lo=(e,t,s=3)=>{let n=0;const i=wS(50,250);return CS(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)},th=(e,t)=>{const s=e!=null;return[n=>t[0]({lengthComputable:s,total:e,loaded:n}),t[1]]},sh=e=>(...t)=>te.asap(()=>e(...t)),AS=jt.hasStandardBrowserEnv?((e,t)=>s=>(s=new URL(s,jt.origin),e.protocol===s.protocol&&e.host===s.host&&(t||e.port===s.port)))(new URL(jt.origin),jt.navigator&&/(msie|trident)/i.test(jt.navigator.userAgent)):()=>!0,SS=jt.hasStandardBrowserEnv?{write(e,t,s,n,i,r){const o=[e+"="+encodeURIComponent(t)];te.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),te.isString(n)&&o.push("path="+n),te.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 xS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $S(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Lg(e,t,s){let n=!xS(t);return e&&(n||s==!1)?$S(e,t):t}const nh=e=>e instanceof as?{...e}:e;function ci(e,t){t=t||{};const s={};function n(d,c,h,p){return te.isPlainObject(d)&&te.isPlainObject(c)?te.merge.call({caseless:p},d,c):te.isPlainObject(c)?te.merge({},c):te.isArray(c)?c.slice():c}function i(d,c,h,p){if(te.isUndefined(c)){if(!te.isUndefined(d))return n(void 0,d,h,p)}else return n(d,c,h,p)}function r(d,c){if(!te.isUndefined(c))return n(void 0,c)}function o(d,c){if(te.isUndefined(c)){if(!te.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(nh(d),nh(c),h,!0)};return te.forEach(Object.keys({...e,...t}),function(c){const h=u[c]||i,p=h(e[c],t[c],c);te.isUndefined(p)&&h!==l||(s[c]=p)}),s}const Fg=e=>{const t=ci({},e);let{data:s,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:r,headers:o,auth:l}=t;if(t.headers=o=as.from(o),t.url=Dg(Lg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),te.isFormData(s)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(te.isFunction(s.getHeaders)){const u=s.getHeaders(),d=["content-type","content-length"];Object.entries(u).forEach(([c,h])=>{d.includes(c.toLowerCase())&&o.set(c,h)})}}if(jt.hasStandardBrowserEnv&&(n&&te.isFunction(n)&&(n=n(t)),n||n!==!1&&AS(t.url))){const u=i&&r&&SS.read(r);u&&o.set(i,u)}return t},TS=typeof XMLHttpRequest<"u",OS=TS&&function(e){return new Promise(function(s,n){const i=Fg(e);let r=i.data;const o=as.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=i,c,h,p,m,g;function E(){m&&m(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function x(){if(!_)return;const A=as.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),$={data:!l||l==="text"||l==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:A,config:e,request:_};qg(function(F){s(F),E()},function(F){n(F),E()},$),_=null}"onloadend"in _?_.onloadend=x:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(x)},_.onabort=function(){_&&(n(new Ge("Request aborted",Ge.ECONNABORTED,e,_)),_=null)},_.onerror=function(b){const $=b&&b.message?b.message:"Network Error",L=new Ge($,Ge.ERR_NETWORK,e,_);L.event=b||null,n(L),_=null},_.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const $=i.transitional||Rg;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new Ge(b,$.clarifyTimeoutError?Ge.ETIMEDOUT:Ge.ECONNABORTED,e,_)),_=null},r===void 0&&o.setContentType(null),"setRequestHeader"in _&&te.forEach(o.toJSON(),function(b,$){_.setRequestHeader($,b)}),te.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),l&&l!=="json"&&(_.responseType=i.responseType),d&&([p,g]=lo(d,!0),_.addEventListener("progress",p)),u&&_.upload&&([h,m]=lo(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(c=A=>{_&&(n(!A||A.type?new tr(null,e,_):A),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const C=ES(i.url);if(C&&jt.protocols.indexOf(C)===-1){n(new Ge("Unsupported protocol "+C+":",Ge.ERR_BAD_REQUEST,e));return}_.send(r||null)})},NS=(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 Ge?c:new tr(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,r(new Ge(`timeout ${t} of ms exceeded`,Ge.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=()=>te.asap(l),u}},kS=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},PS=async function*(e,t){for await(const s of DS(e))yield*kS(s,t)},DS=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()}},ih=(e,t,s,n)=>{const i=PS(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})},rh=64*1024,{isFunction:Ta}=te,RS=(({Request:e,Response:t})=>({Request:e,Response:t}))(te.global),{ReadableStream:ah,TextEncoder:oh}=te.global,lh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},MS=e=>{e=te.merge.call({skipUndefined:!0},RS,e);const{fetch:t,Request:s,Response:n}=e,i=t?Ta(t):typeof fetch=="function",r=Ta(s),o=Ta(n);if(!i)return!1;const l=i&&Ta(ah),u=i&&(typeof oh=="function"?(g=>E=>g.encode(E))(new oh):async g=>new Uint8Array(await new s(g).arrayBuffer())),d=r&&l&&lh(()=>{let g=!1;const E=new s(jt.origin,{body:new ah,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!E}),c=o&&l&&lh(()=>te.isReadableStream(new n("").body)),h={stream:c&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(E,_)=>{let x=E&&E[g];if(x)return x.call(E);throw new Ge(`Response type '${g}' is not supported`,Ge.ERR_NOT_SUPPORT,_)})});const p=async g=>{if(g==null)return 0;if(te.isBlob(g))return g.size;if(te.isSpecCompliantForm(g))return(await new s(jt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(te.isArrayBufferView(g)||te.isArrayBuffer(g))return g.byteLength;if(te.isURLSearchParams(g)&&(g=g+""),te.isString(g))return(await u(g)).byteLength},m=async(g,E)=>{const _=te.toFiniteNumber(g.getContentLength());return _??p(E)};return async g=>{let{url:E,method:_,data:x,signal:C,cancelToken:A,timeout:b,onDownloadProgress:$,onUploadProgress:L,responseType:F,headers:I,withCredentials:w="same-origin",fetchOptions:O}=Fg(g),S=t||fetch;F=F?(F+"").toLowerCase():"text";let j=NS([C,A&&A.toAbortSignal()],b),X=null;const W=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let fe;try{if(L&&d&&_!=="get"&&_!=="head"&&(fe=await m(I,x))!==0){let se=new s(E,{method:"POST",body:x,duplex:"half"}),ue;if(te.isFormData(x)&&(ue=se.headers.get("content-type"))&&I.setContentType(ue),se.body){const[Re,Ie]=th(fe,lo(sh(L)));x=ih(se.body,rh,Re,Ie)}}te.isString(w)||(w=w?"include":"omit");const ne=r&&"credentials"in s.prototype,Q={...O,signal:j,method:_.toUpperCase(),headers:I.normalize().toJSON(),body:x,duplex:"half",credentials:ne?w:void 0};X=r&&new s(E,Q);let Z=await(r?S(X,O):S(E,Q));const Y=c&&(F==="stream"||F==="response");if(c&&($||Y&&W)){const se={};["status","statusText","headers"].forEach(tt=>{se[tt]=Z[tt]});const ue=te.toFiniteNumber(Z.headers.get("content-length")),[Re,Ie]=$&&th(ue,lo(sh($),!0))||[];Z=new n(ih(Z.body,rh,Re,()=>{Ie&&Ie(),W&&W()}),se)}F=F||"text";let G=await h[te.findKey(h,F)||"text"](Z,g);return!Y&&W&&W(),await new Promise((se,ue)=>{qg(se,ue,{data:G,headers:as.from(Z.headers),status:Z.status,statusText:Z.statusText,config:g,request:X})})}catch(ne){throw W&&W(),ne&&ne.name==="TypeError"&&/Load failed|fetch/i.test(ne.message)?Object.assign(new Ge("Network Error",Ge.ERR_NETWORK,g,X),{cause:ne.cause||ne}):Ge.from(ne,ne&&ne.code,g,X)}}},IS=new Map,Vg=e=>{let t=e?e.env:{};const{fetch:s,Request:n,Response:i}=t,r=[n,i,s];let o=r.length,l=o,u,d,c=IS;for(;l--;)u=r[l],d=c.get(u),d===void 0&&c.set(u,d=l?new Map:MS(t)),c=d;return d};Vg();const _u={http:XA,xhr:OS,fetch:{get:Vg}};te.forEach(_u,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const uh=e=>`- ${e}`,qS=e=>te.isFunction(e)||e===null||e===!1,Qg={getAdapter:(e,t)=>{e=te.isArray(e)?e:[e];const{length:s}=e;let n,i;const r={};for(let o=0;o<s;o++){n=e[o];let l;if(i=n,!qS(n)&&(i=_u[(l=String(n)).toLowerCase()],i===void 0))throw new Ge(`Unknown adapter '${l}'`);if(i&&(te.isFunction(i)||(i=i.get(t))))break;r[l||"#"+o]=i}if(!i){const o=Object.entries(r).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=s?o.length>1?`since :
|
|
33
|
+
`+o.map(uh).join(`
|
|
34
|
+
`):" "+uh(o[0]):"as no adapter specified";throw new Ge("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:_u};function Pl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tr(null,e)}function ch(e){return Pl(e),e.headers=as.from(e.headers),e.data=kl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qg.getAdapter(e.adapter||na.adapter,e)(e).then(function(n){return Pl(e),n.data=kl.call(e,e.transformResponse,n),n.headers=as.from(n.headers),n},function(n){return Ig(n)||(Pl(e),n&&n.response&&(n.response.data=kl.call(e,e.transformResponse,n.response),n.response.headers=as.from(n.response.headers))),Promise.reject(n)})}const jg="1.12.2",Go={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Go[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const dh={};Go.transitional=function(t,s,n){function i(r,o){return"[Axios v"+jg+"] Transitional option '"+r+"'"+o+(n?". "+n:"")}return(r,o,l)=>{if(t===!1)throw new Ge(i(o," has been removed"+(s?" in "+s:"")),Ge.ERR_DEPRECATED);return s&&!dh[o]&&(dh[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}};Go.spelling=function(t){return(s,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function LS(e,t,s){if(typeof e!="object")throw new Ge("options must be an object",Ge.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 Ge("option "+r+" must be "+u,Ge.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new Ge("Unknown option "+r,Ge.ERR_BAD_OPTION)}}const ja={assertOptions:LS,validators:Go},Fs=ja.validators;let ni=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Xf,response:new Xf}}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=ci(this.defaults,s);const{transitional:n,paramsSerializer:i,headers:r}=s;n!==void 0&&ja.assertOptions(n,{silentJSONParsing:Fs.transitional(Fs.boolean),forcedJSONParsing:Fs.transitional(Fs.boolean),clarifyTimeoutError:Fs.transitional(Fs.boolean)},!1),i!=null&&(te.isFunction(i)?s.paramsSerializer={serialize:i}:ja.assertOptions(i,{encode:Fs.function,serialize:Fs.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),ja.assertOptions(s,{baseUrl:Fs.spelling("baseURL"),withXsrfToken:Fs.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let o=r&&te.merge(r.common,r[s.method]);r&&te.forEach(["delete","get","head","post","put","patch","common"],g=>{delete r[g]}),s.headers=as.concat(o,r);const l=[];let u=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(s)===!1||(u=u&&E.synchronous,l.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let c,h=0,p;if(!u){const g=[ch.bind(this),void 0];for(g.unshift(...l),g.push(...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<p;){const g=l[h++],E=l[h++];try{m=g(m)}catch(_){E.call(this,_);break}}try{c=ch.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=ci(this.defaults,t);const s=Lg(t.baseURL,t.url,t.allowAbsoluteUrls);return Dg(s,t.params,t.paramsSerializer)}};te.forEach(["delete","get","head","options"],function(t){ni.prototype[t]=function(s,n){return this.request(ci(n||{},{method:t,url:s,data:(n||{}).data}))}});te.forEach(["post","put","patch"],function(t){function s(n){return function(r,o,l){return this.request(ci(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ni.prototype[t]=s(),ni.prototype[t+"Form"]=s(!0)});let FS=class Bg{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 tr(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 Bg(function(i){t=i}),cancel:t}}};function VS(e){return function(s){return e.apply(null,s)}}function QS(e){return te.isObject(e)&&e.isAxiosError===!0}const Eu={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(Eu).forEach(([e,t])=>{Eu[t]=e});function Ug(e){const t=new ni(e),s=Eg(ni.prototype.request,t);return te.extend(s,ni.prototype,t,{allOwnKeys:!0}),te.extend(s,t,null,{allOwnKeys:!0}),s.create=function(i){return Ug(ci(e,i))},s}const wt=Ug(na);wt.Axios=ni;wt.CanceledError=tr;wt.CancelToken=FS;wt.isCancel=Ig;wt.VERSION=jg;wt.toFormData=Ho;wt.AxiosError=Ge;wt.Cancel=wt.CanceledError;wt.all=function(t){return Promise.all(t)};wt.spread=VS;wt.isAxiosError=QS;wt.mergeConfig=ci;wt.AxiosHeaders=as;wt.formToJSON=e=>Mg(te.isHTMLForm(e)?new FormData(e):e);wt.getAdapter=Qg.getAdapter;wt.HttpStatusCode=Eu;wt.default=wt;const{Axios:yU,AxiosError:_U,CanceledError:EU,isCancel:wU,CancelToken:CU,VERSION:AU,all:SU,Cancel:xU,isAxiosError:$U,spread:TU,toFormData:OU,AxiosHeaders:NU,HttpStatusCode:kU,formToJSON:PU,getAdapter:DU,mergeConfig:RU}=wt,jS=hA("API_URL").replace(/\/+$/,""),BS=wt.create({baseURL:jS,headers:{"Content-Type":"application/json"}}),Je=e=>{const t=wt.CancelToken.source(),s=BS({...e,cancelToken:t.token}).then(n=>n.data).catch(n=>{throw n.response?.data.error?{error:n.response.data.error}:n});return s.cancel=()=>{t.cancel("Query was cancelled")},s},US=e=>Je({url:"/api/v1/exchanges",method:"GET",signal:e}),_r=()=>["api","v1","exchanges"],KS=e=>{const{query:t}={};return{queryKey:_r(),queryFn:({signal:i})=>US(i),...t}};function Kg(e,t){const s=KS(),n=Jt(s);return n.queryKey=T(s).queryKey,n}const HS=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}`,method:"DELETE"})),GS=e=>{const t=["deleteApiV1NamespacesNsExchangesFanoutFanout"],{mutation:s}={mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,fanout:o}=i??{};return HS(r,o)},...s}},WS=(e,t)=>{const s=GS();return Nt(s)},zS=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues`,method:"GET",signal:s})),wu=(e,t)=>["api","v1","namespaces",e,"exchanges","fanout",t,"queues"],YS=(e,t,s)=>{const{query:n}=s??{};return{queryKey:wu(e,t),queryFn:({signal:o})=>zS(e,t,o),enabled:v(()=>!!(T(e)&&T(t))),...n}};function Hg(e,t,s,n){const i=YS(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const ZS=(e,t,s)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues/${s}`,method:"PUT"})),JS=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 ZS(r,o,l)},...s}},Sc=(e,t)=>{const s=JS(e);return Nt(s)},XS=(e,t,s)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}/queues/${s}`,method:"DELETE"})),ex=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 XS(r,o,l)},...s}},tx=(e,t)=>{const s=ex(e);return Nt(s)},sx=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}`,method:"DELETE"})),nx=e=>{const t=["deleteApiV1NamespacesNsExchangesDirectDirect"],{mutation:s}={mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,direct:o}=i??{};return sx(r,o)},...s}},ix=(e,t)=>{const s=nx();return Nt(s)},rx=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/routing-keys`,method:"GET",signal:s})),Cu=(e,t)=>["api","v1","namespaces",e,"exchanges","direct",t,"routing-keys"],ax=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Cu(e,t),queryFn:({signal:o})=>rx(e,t,o),enabled:v(()=>!!(T(e)&&T(t))),...n}};function Gg(e,t,s,n){const i=ax(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const ox=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues`,method:"GET",params:T(s),signal:n})),Au=(e,t,s)=>["api","v1","namespaces",e,"exchanges","direct",t,"queues",...s?[s]:[]],lx=(e,t,s,n)=>{const{query:i}=n??{};return{queryKey:Au(e,t,s),queryFn:({signal:l})=>ox(e,t,s,l),enabled:v(()=>!!(T(e)&&T(t))),...i}};function Wg(e,t,s,n,i){const r=lx(e,t,s,n),o=Jt(r);return o.queryKey=T(r).queryKey,o}const ux=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),n=T(n),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues/${s}`,method:"PUT",params:T(n)})),cx=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 ux(r,o,l,u)},...s}},xc=(e,t)=>{const s=cx(e);return Nt(s)},dx=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),n=T(n),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}/queues/${s}`,method:"DELETE",params:T(n)})),fx=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 dx(r,o,l,u)},...s}},hx=(e,t)=>{const s=fx(e);return Nt(s)},mx=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}`,method:"DELETE"})),px=e=>{const t=["deleteApiV1NamespacesNsExchangesTopicTopic"],{mutation:s}={mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,topic:o}=i??{};return mx(r,o)},...s}},gx=(e,t)=>{const s=px();return Nt(s)},vx=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/binding-patterns`,method:"GET",signal:s})),Su=(e,t)=>["api","v1","namespaces",e,"exchanges","topic",t,"binding-patterns"],bx=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Su(e,t),queryFn:({signal:o})=>vx(e,t,o),enabled:v(()=>!!(T(e)&&T(t))),...n}};function zg(e,t,s,n){const i=bx(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const yx=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues`,method:"GET",params:T(s),signal:n})),xu=(e,t,s)=>["api","v1","namespaces",e,"exchanges","topic",t,"queues",...s?[s]:[]],_x=(e,t,s,n)=>{const{query:i}=n??{};return{queryKey:xu(e,t,s),queryFn:({signal:l})=>yx(e,t,s,l),enabled:v(()=>!!(T(e)&&T(t))),...i}};function Yg(e,t,s,n,i){const r=_x(e,t,s,n),o=Jt(r);return o.queryKey=T(r).queryKey,o}const Ex=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),n=T(n),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues/${s}`,method:"PUT",params:T(n)})),wx=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 Ex(r,o,l,u)},...s}},$c=(e,t)=>{const s=wx(e);return Nt(s)},Cx=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),n=T(n),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}/queues/${s}`,method:"DELETE",params:T(n)})),Ax=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 Cx(r,o,l,u)},...s}},Sx=(e,t)=>{const s=Ax(e);return Nt(s)},Xt=Vo("pageContent",()=>{const e=ye({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(_){e.value.pageTitle=_.title,e.value.pageSubtitle=_.subtitle,e.value.pageIcon=_.icon}function o(_){e.value.pageActions=_}function l(_){const x=e.value.pageActions.findIndex(C=>C.id===_.id);x>=0?e.value.pageActions[x]=_:e.value.pageActions.push(_)}function u(_){e.value.pageActions=e.value.pageActions.filter(x=>x.id!==_)}function d(_,x){const C=e.value.pageActions.find(A=>A.id===_);C&&Object.assign(C,x)}function c(_){e.value.sectionTitle=_.title,e.value.sectionMeta=_.meta}function h(_){e.value.isLoading=_,_&&(e.value.error=null)}function p(_){e.value.error=_,_&&(e.value.isLoading=!1)}function m(_,x){e.value.isEmpty=_,e.value.emptyStateConfig=x}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 E(_){Object.assign(e.value,_)}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:E}});function Zg(e){return typeof e=="object"&&e!==null}function xx(e){return!Zg(e)||!("message"in e)?!1:typeof e.message=="string"}function $x(e){return!Zg(e)||!("details"in e)?!1:typeof e.details=="object"&&e.details!==null}function ct(e){if(e==null)return null;if(typeof e=="string"){const t=e.trim();return t?{message:t}:null}if(e instanceof Error)return{message:e.message?.trim()||e.name||"Unknown error",details:{name:e.name,stack:e.stack??void 0}};if(xx(e)){const t={message:e.message.trim()};if(t.message)return $x(e)&&(t.details=e.details),t}return{message:"An unexpected error occurred"}}const Tx={class:"page-content"},Ox={key:0,class:"page-header"},Nx={class:"page-header-content"},kx={class:"page-title-section"},Px={key:0,class:"page-icon"},Dx={key:0,class:"emoji-icon"},Rx={class:"title-content"},Mx={class:"page-title"},Ix={key:0,class:"page-subtitle"},qx={key:0,class:"page-actions"},Lx=["disabled","title","onClick"],Fx={class:"btn-text"},Vx={class:"content-section"},Qx={key:0,class:"section-header"},jx={key:0,class:"section-title"},Bx={key:1,class:"section-meta"},Ux={key:1,class:"state-container loading-state"},Kx={class:"state-content"},Hx={class:"loading-spinner"},Gx={class:"spinner-border",role:"status"},Wx={class:"visually-hidden"},zx={class:"state-title"},Yx={class:"state-message"},Zx={key:2,class:"state-container error-state"},Jx={class:"state-content"},Xx={class:"state-title"},e$={class:"state-message"},t$={key:0,class:"state-details"},s$={class:"state-actions"},n$={key:3,class:"state-container empty-state"},i$={class:"state-content"},r$={class:"state-icon empty-icon"},a$={key:0,class:"emoji-icon"},o$={class:"state-title"},l$={class:"state-message"},u$={class:"state-actions"},c$={key:4,class:"main-content"},d$=Ue({__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=Xt(),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(){n.value.emptyStateConfig?.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)=>(N(),P("div",Tx,[e.showPageHeader?(N(),P("div",Ox,[a("div",Nx,[a("div",kx,[n.value.pageIcon?(N(),P("div",Px,[u(n.value.pageIcon)?(N(),P("span",Dx,q(n.value.pageIcon),1)):(N(),P("i",{key:1,class:De(n.value.pageIcon)},null,2))])):he("",!0),a("div",Rx,[a("h1",Mx,q(n.value.pageTitle),1),n.value.pageSubtitle?(N(),P("p",Ix,q(n.value.pageSubtitle),1)):he("",!0)])])]),i.value?(N(),P("div",qx,[(N(!0),P(Ae,null,bt(n.value.pageActions,g=>(N(),P("button",{key:g.id,class:De(h(g)),disabled:g.disabled||g.loading,title:g.tooltip||g.label,onClick:E=>d(g)},[g.icon&&u(g.icon)?(N(),P("span",{key:0,class:De([{"spin-emoji":g.loading},"action-emoji"])},q(g.icon),3)):g.icon?(N(),P("i",{key:1,class:De([g.icon,{spin:g.loading}])},null,2)):he("",!0),a("span",Fx,q(g.label),1)],10,Lx))),128))])):he("",!0)])):he("",!0),a("div",Vx,[t.showSectionHeader&&r.value?(N(),P("div",Qx,[n.value.sectionTitle?(N(),P("h2",jx,q(n.value.sectionTitle),1)):he("",!0),n.value.sectionMeta?(N(),P("div",Bx,q(n.value.sectionMeta),1)):he("",!0)])):he("",!0),n.value.isLoading?(N(),P("div",Ux,[a("div",Kx,[a("div",Hx,[a("div",Gx,[a("span",Wx,q(t.loadingMessage),1)])]),a("h3",zx,q(t.loadingTitle),1),a("p",Yx,q(t.loadingMessage),1)])])):o.value?(N(),P("div",Zx,[a("div",Jx,[m[0]||(m[0]=a("div",{class:"state-icon error-icon"},[a("span",{class:"emoji-icon"},"⚠️")],-1)),a("h3",Xx,q(n.value.error?.title||"An unexpected error occurred"),1),a("p",e$,q(n.value.error?.message),1),n.value.error?.details?(N(),P("p",t$,q(n.value.error.details),1)):he("",!0),a("div",s$,[Pi(p.$slots,"error-actions",{},void 0)])])])):l.value&&n.value.emptyStateConfig?(N(),P("div",n$,[a("div",i$,[a("div",r$,[u(n.value.emptyStateConfig.icon)?(N(),P("span",a$,q(n.value.emptyStateConfig.icon),1)):(N(),P("i",{key:1,class:De(n.value.emptyStateConfig.icon)},null,2))]),a("h3",o$,q(n.value.emptyStateConfig.title),1),a("p",l$,q(n.value.emptyStateConfig.message),1),a("div",u$,[Pi(p.$slots,"empty-actions",{},()=>[n.value.emptyStateConfig.actionHandler?(N(),P("button",{key:0,class:"btn btn-primary",onClick:c},q(n.value.emptyStateConfig.actionLabel||"Refresh"),1)):he("",!0)])])])])):(N(),P("div",c$,[Pi(p.$slots,"default",{},void 0)]))])]))}}),Xe=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},ps=Xe(d$,[["__scopeId","data-v-d8f5921f"]]);var Te=(e=>(e[e.DIRECT=0]="DIRECT",e[e.FANOUT=1]="FANOUT",e[e.TOPIC=2]="TOPIC",e))(Te||{});const f$=["aria-labelledby","aria-describedby"],h$={class:"modal-content"},m$={class:"modal-header"},p$={key:0,class:"header-icon"},g$={class:"header-content"},v$=["id"],b$=["id"],y$={class:"modal-body"},_$={class:"modal-body-inner"},E$={key:0,class:"modal-footer"},w$=Ue({__name:"BaseModal",props:{isVisible:{type:Boolean},title:{},subtitle:{},size:{},icon:{}},emits:["close"],setup(e,{emit:t}){const s=e,n=t,i=ye(null),r=ye(null),o=v(()=>{switch(s.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}}),l=v(()=>`modal-title-${s.title.replace(/\s+/g,"-").toLowerCase()}`),u=v(()=>s.subtitle?`modal-desc-${s.title.replace(/\s+/g,"-").toLowerCase()}`:void 0);function d(){n("close")}function c(){n("close")}function h(){document.body.style.overflow="hidden"}function p(){document.body.style.overflow=""}async function m(){await kt(),r.value=document.activeElement||null;const x=i.value;if(!x)return;(x.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0]||x).focus()}function g(){r.value?.focus?.()}function E(x){if(x.key!=="Tab")return;const C=i.value;if(!C)return;const A=Array.from(C.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(F=>!F.hasAttribute("disabled")&&!F.getAttribute("aria-hidden"));if(A.length===0){x.preventDefault(),C.focus();return}const b=A[0],$=A[A.length-1],L=document.activeElement;x.shiftKey?(L===b||L===C)&&(x.preventDefault(),$.focus()):L===$&&(x.preventDefault(),b.focus())}function _(x){if(x.key==="Escape"){x.stopPropagation(),d();return}E(x)}return Ye(()=>s.isVisible,async x=>{x?(h(),await m(),document.addEventListener("keydown",_,!0)):(document.removeEventListener("keydown",_,!0),p(),g())},{immediate:!0}),Bt(()=>{s.isVisible&&(h(),m(),document.addEventListener("keydown",_,!0))}),Ji(()=>{document.removeEventListener("keydown",_,!0),p()}),(x,C)=>e.isVisible?(N(),at(IE,{key:0,to:"body"},[a("div",{class:"modal-overlay",role:"dialog","aria-labelledby":l.value,"aria-describedby":u.value,"aria-modal":"true",onClick:c},[a("div",{ref_key:"modalContainer",ref:i,class:De(["modal-container",o.value]),tabindex:"-1",onClick:C[0]||(C[0]=Ft(()=>{},["stop"]))},[a("div",h$,[a("header",m$,[e.icon?(N(),P("div",p$,[a("i",{class:De(e.icon)},null,2)])):he("",!0),a("div",g$,[a("h2",{id:l.value,class:"modal-title"},q(e.title),9,v$),e.subtitle?(N(),P("p",{key:0,id:u.value,class:"modal-subtitle"},q(e.subtitle),9,b$)):he("",!0)]),a("button",{type:"button",class:"btn-close","aria-label":"Close modal",onClick:d},[...C[1]||(C[1]=[a("i",{class:"bi bi-x"},null,-1)])])]),a("main",y$,[a("div",_$,[Pi(x.$slots,"body",{},void 0)])]),x.$slots.footer?(N(),P("footer",E$,[Pi(x.$slots,"footer",{},void 0)])):he("",!0)])],2)],8,f$)])):he("",!0)}}),Ss=Xe(w$,[["__scopeId","data-v-b6985a1b"]]),C$={class:"form-content"},A$={class:"form-section"},S$={class:"form-grid"},x$={class:"form-group"},$$=["disabled"],T$={class:"form-group"},O$=["disabled"],N$={class:"form-group"},k$=["disabled"],P$=["value"],D$={id:"exchange-type-help",class:"field-help"},R$={key:0,class:"help-options"},M$={class:"help-option"},I$={class:"form-section"},q$={class:"form-grid"},L$={class:"form-group"},F$=["disabled"],V$={key:0,class:"form-group"},Q$=["disabled"],j$={key:1,class:"form-group"},B$=["disabled"],U$={key:0,class:"error-section"},K$={class:"error-content"},H$={class:"error-text"},G$={class:"error-message"},W$=["disabled"],z$=["disabled"],Y$=Ue({__name:"CreateExchangeModal",props:{isVisible:{type:Boolean},isLoading:{type:Boolean},error:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const s={mounted:A=>A.focus()},n=e,i=t,r=ye(""),o=ye("default"),l=ye(Te.DIRECT),u=ye(""),d=ye(""),c=ye(""),h=[{value:Te.DIRECT,label:"Direct",description:"Routes messages to queues based on exact routing key match"},{value:Te.FANOUT,label:"Fanout",description:"Routes messages to all bound queues (ignores routing key)"},{value:Te.TOPIC,label:"Topic",description:"Routes messages based on wildcard pattern matching (* and #)"}],p=v(()=>h.find(A=>A.value===l.value)),m=v(()=>{const A=r.value.trim()!==""&&o.value.trim()!==""&&u.value.trim()!=="";return l.value===Te.DIRECT?A&&d.value.trim()!=="":l.value===Te.TOPIC?A&&c.value.trim()!=="":A}),g=v(()=>l.value===Te.DIRECT),E=v(()=>l.value===Te.TOPIC),_=v(()=>n.error?ct(n.error):null);function x(){if(m.value&&!n.isLoading){const A={name:r.value.trim(),ns:o.value.trim(),type:l.value,queueName:u.value.trim()};l.value===Te.DIRECT&&d.value.trim()&&(A.routingKey=d.value.trim()),l.value===Te.TOPIC&&c.value.trim()&&(A.bindingPattern=c.value.trim()),i("confirm",A)}}function C(){i("cancel")}return Ye(()=>n.isVisible,A=>{A||(r.value="",o.value="default",l.value=Te.DIRECT,u.value="",d.value="",c.value="")}),Ye(()=>l.value,()=>{d.value="",c.value=""}),(A,b)=>(N(),at(Ss,{"is-visible":e.isVisible,title:"Create New Exchange",subtitle:"Configure your message exchange settings",icon:"bi bi-diagram-3-fill",onClose:C},{body:qe(()=>[a("div",C$,[b[21]||(b[21]=a("div",{class:"alert alert-info mb-4"},[a("i",{class:"bi bi-info-circle me-2"}),a("strong",null,"Note:"),ee(" 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:Ft(x,["prevent"])},[a("section",A$,[b[11]||(b[11]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),ee(" Exchange Details ")]),a("p",{class:"section-description"}," Define the exchange name, namespace, and type ")],-1)),a("div",S$,[a("div",x$,[b[6]||(b[6]=a("label",{for:"exchange-name",class:"form-label"},[a("i",{class:"bi bi-diagram-3 label-icon"}),ee(" Exchange Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"exchange-name","onUpdate:modelValue":b[0]||(b[0]=$=>r.value=$),type:"text",class:"form-control",placeholder:"e.g., user-events",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"exchange-name-help"},null,8,$$),[[rn,r.value],[s]]),b[7]||(b[7]=a("div",{id:"exchange-name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),ee(" Use letters, numbers, underscores, and hyphens only ")],-1))]),a("div",T$,[b[8]||(b[8]=a("label",{for:"exchange-ns",class:"form-label"},[a("i",{class:"bi bi-folder-fill label-icon"}),ee(" Namespace "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"exchange-ns","onUpdate:modelValue":b[1]||(b[1]=$=>o.value=$),type:"text",class:"form-control",placeholder:"e.g., default",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"exchange-ns-help"},null,8,O$),[[rn,o.value]]),b[9]||(b[9]=a("div",{id:"exchange-ns-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),ee(" Organize exchanges by environment or application ")],-1))]),a("div",N$,[b[10]||(b[10]=a("label",{for:"exchange-type",class:"form-label"},[a("i",{class:"bi bi-gear-fill label-icon"}),ee(" Exchange Type "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("select",{id:"exchange-type","onUpdate:modelValue":b[2]||(b[2]=$=>l.value=$),class:"form-select",disabled:e.isLoading,"aria-describedby":"exchange-type-help"},[(N(),P(Ae,null,bt(h,$=>a("option",{key:$.value,value:$.value},q($.label),9,P$)),64))],8,k$),[[Up,l.value]]),a("div",D$,[p.value?(N(),P("div",R$,[a("div",M$,[a("strong",null,q(p.value.label)+":",1),ee(" "+q(p.value.description),1)])])):he("",!0)])])])]),a("section",I$,[b[18]||(b[18]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-link-45deg section-icon"}),ee(" Initial Queue Binding ")]),a("p",{class:"section-description"}," Exchanges are created by binding the first queue to them ")],-1)),a("div",q$,[a("div",L$,[b[12]||(b[12]=a("label",{for:"queue-name",class:"form-label"},[a("i",{class:"bi bi-list-ul label-icon"}),ee(" Queue Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"queue-name","onUpdate:modelValue":b[3]||(b[3]=$=>u.value=$),type:"text",class:"form-control",placeholder:"e.g., user-notifications",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"queue-name-help"},null,8,F$),[[rn,u.value]]),b[13]||(b[13]=a("div",{id:"queue-name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),ee(" The first queue to bind to this exchange ")],-1))]),g.value?(N(),P("div",V$,[b[14]||(b[14]=a("label",{for:"routing-key",class:"form-label"},[a("i",{class:"bi bi-key-fill label-icon"}),ee(" Routing Key "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"routing-key","onUpdate:modelValue":b[4]||(b[4]=$=>d.value=$),type:"text",class:"form-control",placeholder:"e.g., user.created",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"routing-key-help"},null,8,Q$),[[rn,d.value]]),b[15]||(b[15]=a("div",{id:"routing-key-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),ee(" Messages with this exact routing key will be routed to the queue ")],-1))])):he("",!0),E.value?(N(),P("div",j$,[b[16]||(b[16]=a("label",{for:"binding-pattern",class:"form-label"},[a("i",{class:"bi bi-asterisk label-icon"}),ee(" Binding Pattern "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"binding-pattern","onUpdate:modelValue":b[5]||(b[5]=$=>c.value=$),type:"text",class:"form-control",placeholder:"e.g., user.* or user.#",required:"",disabled:e.isLoading,autocomplete:"off","aria-describedby":"binding-pattern-help"},null,8,B$),[[rn,c.value]]),b[17]||(b[17]=a("div",{id:"binding-pattern-help",class:"field-help"},[a("div",{class:"help-options"},[a("div",{class:"help-option"},[a("strong",null,"*"),ee(" matches exactly one word ")]),a("div",{class:"help-option"},[a("strong",null,"#"),ee(" matches zero or more words ")])])],-1))])):he("",!0)])]),_.value?(N(),P("div",U$,[a("div",K$,[b[20]||(b[20]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",H$,[b[19]||(b[19]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",G$,q(_.value),1)])])])):he("",!0)],32)])]),footer:qe(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isLoading,onClick:C},[...b[22]||(b[22]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),ee(" Cancel ",-1)])],8,W$),a("button",{type:"button",class:"btn btn-primary",disabled:!m.value||e.isLoading,onClick:x},[e.isLoading?(N(),P(Ae,{key:0},[b[23]||(b[23]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),b[24]||(b[24]=ee(" Creating Exchange... ",-1))],64)):(N(),P(Ae,{key:1},[b[25]||(b[25]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),b[26]||(b[26]=ee(" Create Exchange ",-1))],64))],8,z$)]),_:1},8,["is-visible"]))}}),Jg=Xe(Y$,[["__scopeId","data-v-b1fc3af7"]]),Z$={class:"dialog-body"},J$={key:0,class:"cannot-delete"},X$={class:"message"},eT={class:"stats",role:"group","aria-label":"Exchange deletion blockers"},tT={key:0,class:"stat"},sT={class:"label"},nT={class:"value"},iT={class:"stat"},rT={class:"value"},aT={key:1,class:"confirmation"},oT={class:"message"},lT={key:0,class:"error",role:"alert","aria-live":"assertive"},uT={class:"error-text"},cT={key:0,class:"actions"},dT={key:1,class:"actions"},fT=["disabled"],hT=["disabled"],mT=Ue({__name:"DeleteExchangeModal",props:{isVisible:{type:Boolean},exchangeName:{},namespace:{},exchangeType:{},totalQueues:{},totalRoutingKeys:{},totalBindingPatterns:{}},emits:["close","deleted"],setup(e,{emit:t}){const s=e,n=t,i=v(()=>s.totalQueues===0),r=v(()=>{switch(s.exchangeType){case Te.DIRECT:return"Direct";case Te.TOPIC:return"Topic";case Te.FANOUT:return"Fanout";default:return"Exchange"}}),o=v(()=>`Delete ${r.value} Exchange`),l=v(()=>s.exchangeType===Te.DIRECT?{label:"Routing Keys",value:s.totalRoutingKeys??0}:s.exchangeType===Te.TOPIC?{label:"Binding Patterns",value:s.totalBindingPatterns??0}:null),u=v(()=>{const C=s.totalQueues,A=C===1?"queue":"queues";if(s.exchangeType===Te.DIRECT){const b=s.totalRoutingKeys??0;return`This direct exchange cannot be deleted because it has ${C} bound ${A} across ${b} ${b===1?"routing key":"routing keys"}. Unbind all queues first.`}if(s.exchangeType===Te.TOPIC){const b=s.totalBindingPatterns??0;return`This topic exchange cannot be deleted because it has ${C} bound ${A} across ${b} ${b===1?"binding pattern":"binding patterns"}. Unbind all queues first.`}return`This fanout exchange cannot be deleted because it has ${C} bound ${A}. Unbind all queues first.`}),d=v(()=>`Are you sure you want to delete the ${r.value.toLowerCase()} exchange "${s.exchangeName}"? This will remove all queue bindings and cannot be undone.`),c=WS(),h=ix(),p=gx(),m=v(()=>h.isPending.value||p.isPending.value||c.isPending.value),g=v(()=>ct(h.error.value?.error||p.error.value?.error||c.error.value?.error)),E=ye(!1);Ye(()=>s.isVisible,C=>{C&&(h.reset?.(),p.reset?.(),c.reset?.(),E.value=!1)});function _(){!m.value&&!E.value&&(h.reset?.(),p.reset?.(),c.reset?.(),E.value=!1,n("close"))}async function x(){if(!(m.value||E.value||!i.value)){E.value=!0;try{switch(s.exchangeType){case Te.FANOUT:await c.mutateAsync({ns:s.namespace,fanout:s.exchangeName});break;case Te.DIRECT:await h.mutateAsync({ns:s.namespace,direct:s.exchangeName});break;case Te.TOPIC:await p.mutateAsync({ns:s.namespace,topic:s.exchangeName});break;default:throw new Error("Unsupported exchange type")}n("deleted"),n("close")}finally{E.value=!1}}}return(C,A)=>(N(),at(Ss,{"is-visible":e.isVisible,title:i.value?o.value:"Cannot Delete Exchange",subtitle:`Namespace: ${e.namespace}`,icon:"bi bi-exclamation-triangle-fill",size:"sm",onClose:_},{body:qe(()=>[a("div",Z$,[i.value?(N(),P("section",aT,[a("p",oT,q(d.value),1),g.value?(N(),P("div",lT,[A[2]||(A[2]=a("i",{class:"bi bi-exclamation-circle-fill me-2","aria-hidden":"true"},null,-1)),a("span",uT,q(g.value),1)])):he("",!0)])):(N(),P("section",J$,[a("p",X$,q(u.value),1),a("div",eT,[l.value?(N(),P("div",tT,[a("span",sT,q(l.value.label),1),a("span",nT,q(l.value.value),1)])):he("",!0),a("div",iT,[A[0]||(A[0]=a("span",{class:"label"},"Bound Queues",-1)),a("span",rT,q(e.totalQueues),1)])]),A[1]||(A[1]=a("div",{class:"hint"}," Unbind all queues from this exchange to proceed with deletion. ",-1))]))])]),footer:qe(()=>[i.value?(N(),P("div",dT,[a("button",{type:"button",class:"btn btn-outline-secondary",disabled:m.value||E.value,onClick:_},[...A[3]||(A[3]=[a("i",{class:"bi bi-x-circle me-2","aria-hidden":"true"},null,-1),ee(" Cancel ",-1)])],8,fT),a("button",{type:"button",class:"btn btn-danger",disabled:m.value||E.value,onClick:x},[m.value||E.value?(N(),P(Ae,{key:0},[A[4]||(A[4]=a("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},null,-1)),A[5]||(A[5]=ee(" Deleting... ",-1))],64)):(N(),P(Ae,{key:1},[A[6]||(A[6]=a("i",{class:"bi bi-trash-fill me-2","aria-hidden":"true"},null,-1)),A[7]||(A[7]=ee(" Delete Exchange ",-1))],64))],8,hT)])):(N(),P("div",cT,[a("button",{type:"button",class:"btn btn-primary",onClick:_}," OK, got it ")]))]),_:1},8,["is-visible","title","subtitle"]))}}),ia=Xe(mT,[["__scopeId","data-v-4b3e446b"]]);var Xg=(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))(Xg||{}),us=(e=>(e[e.POINT_TO_POINT=0]="POINT_TO_POINT",e[e.PUB_SUB=1]="PUB_SUB",e))(us||{}),Ht=(e=>(e[e.LIFO_QUEUE=0]="LIFO_QUEUE",e[e.FIFO_QUEUE=1]="FIFO_QUEUE",e[e.PRIORITY_QUEUE=2]="PRIORITY_QUEUE",e))(Ht||{});const pT=["aria-label"],gT={key:0,class:"loading-overlay",role:"status","aria-live":"polite"},vT={class:"card-header"},bT={class:"header-content"},yT=["title"],_T={class:"header-text"},ET=["title"],wT={class:"card-subtitle"},CT=["aria-label","aria-expanded","onKeydown"],AT={key:0,class:"dropdown-menu",role:"menu","aria-label":"Exchange actions"},ST={class:"card-body"},xT={key:0,class:"body-loading-overlay",role:"status","aria-live":"polite"},$T={key:1,class:"error-state",role:"alert"},TT={class:"error-message"},OT={class:"stats-section"},NT={class:"stat-item"},kT=["aria-label"],PT={class:"stat-label"},DT={class:"queues-section"},RT={class:"queues-title"},MT={key:0,class:"metadata-info"},IT={key:0,class:"queues-list",role:"list"},qT={class:"queue-info"},LT={class:"queue-name"},FT=["aria-label","onClick"],VT={key:0,class:"queue-item more",role:"listitem"},QT={class:"queue-info"},jT={key:1,class:"no-queues-message"},BT={class:"card-footer"},UT=["aria-label"],fh=10,KT=Ue({__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===Te.DIRECT),r=v(()=>s.exchange.type===Te.TOPIC),o=v(()=>s.exchange.type===Te.FANOUT),{data:l,isLoading:u,error:d,refetch:c}=Gg(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:i}}),{data:h,isLoading:p,error:m,refetch:g}=zg(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:r}}),{data:E,isLoading:_,error:x,refetch:C}=Hg(v(()=>s.exchange.ns),v(()=>s.exchange.name),{query:{enabled:o}}),A=v(()=>s.exchange.type!==Te.DIRECT?[]:l.value?.data||[]),b=v(()=>s.exchange.type!==Te.TOPIC?[]:h.value?.data||[]),$=Array.from({length:fh},(V,H)=>{const le=v(()=>A.value[H]||""),Ee=v(()=>s.exchange.type===Te.DIRECT&&H<A.value.length&&!!A.value[H]);return Wg(v(()=>s.exchange.ns),v(()=>s.exchange.name),v(()=>({routingKey:le.value})),{query:{enabled:Ee}})}),L=Array.from({length:fh},(V,H)=>{const le=v(()=>b.value[H]||""),Ee=v(()=>s.exchange.type===Te.TOPIC&&H<b.value.length&&!!b.value[H]);return Yg(v(()=>s.exchange.ns),v(()=>s.exchange.name),v(()=>({bindingPattern:le.value})),{query:{enabled:Ee}})}),F=v(()=>{switch(s.exchange.type){case Te.DIRECT:return u.value||$.some((V,H)=>H<A.value.length&&V.isLoading.value);case Te.FANOUT:return _.value;case Te.TOPIC:return p.value||L.some((V,H)=>H<b.value.length&&V.isLoading.value);default:return!1}}),I=v(()=>{switch(s.exchange.type){case Te.DIRECT:return d.value||$.find((V,H)=>H<A.value.length&&V.error.value)?.error.value;case Te.FANOUT:return x.value;case Te.TOPIC:return m.value||L.find((V,H)=>H<b.value.length&&V.error.value)?.error.value;default:return null}}),w=v(()=>!!I.value),O=v(()=>ct(I.value)),S=()=>{switch(s.exchange.type){case Te.DIRECT:c(),$.forEach((V,H)=>{H<A.value.length&&V.refetch()});break;case Te.FANOUT:C();break;case Te.TOPIC:g(),L.forEach((V,H)=>{H<b.value.length&&V.refetch()});break}},j=v(()=>{let V=[],H=[],le=[];const Ee=s.exchange.type;if(Ee===Te.DIRECT)$.forEach((k,R)=>{if(R>=A.value.length)return;const B=k.data?.value?.data;if(B&&Array.isArray(B)){const ie=B.map(re=>re.name).filter(Boolean);V.push(...ie),ie.length>0&&H.push(A.value[R])}});else if(Ee===Te.FANOUT){const k=E.value?.data;k&&Array.isArray(k)&&(V=k.map(R=>R.name).filter(Boolean))}else L.forEach((k,R)=>{if(R>=b.value.length)return;const B=k.data?.value?.data;if(B&&Array.isArray(B)){const ie=B.map(re=>re.name).filter(Boolean);V.push(...ie),ie.length>0&&le.push(b.value[R])}});const J=[...new Set(V)];return{items:J,total:J.length,routingKeys:H,bindingPatterns:le}}),X=ye(!1),W=ye(null),fe=V=>{W.value&&!W.value.contains(V.target)&&(X.value=!1)},ne=V=>{V.key==="Escape"&&X.value&&(X.value=!1)};Bt(()=>{document.addEventListener("click",fe),document.addEventListener("keydown",ne)}),Ji(()=>{document.removeEventListener("click",fe),document.removeEventListener("keydown",ne)});const Q=v(()=>{switch(s.exchange.type){case Te.DIRECT:return{icon:"bi-arrow-right",color:"direct",name:"Direct",description:"Routes messages to queues based on exact routing key matches"};case Te.FANOUT:return{icon:"bi-arrows-angle-expand",color:"fanout",name:"Fanout",description:"Broadcasts messages to all bound queues"};case Te.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"}}}),Z=v(()=>j.value.items.slice(0,3)),Y=v(()=>Math.max(0,j.value.total-Z.value.length)),G=v(()=>{switch(s.exchange.type){case Te.DIRECT:return j.value.routingKeys?.length?`${j.value.routingKeys.length} routing key${j.value.routingKeys.length>1?"s":""}`:null;case Te.TOPIC:return j.value.bindingPatterns?.length?`${j.value.bindingPatterns.length} binding pattern${j.value.bindingPatterns.length>1?"s":""}`:null;default:return null}}),se=()=>{X.value=!1;const V={totalQueues:j.value.total,totalRoutingKeys:s.exchange.type===Te.DIRECT?j.value.routingKeys?.length??0:void 0,totalBindingPatterns:s.exchange.type===Te.TOPIC?j.value.bindingPatterns?.length??0:void 0};n("delete",{exchange:s.exchange,totals:V})},ue=()=>{X.value=!1,n("bindQueue",s.exchange)},Re=V=>{X.value=!1,n("unbindQueue",{exchange:s.exchange,queueName:V})},Ie=()=>{X.value=!1,n("publishMessage",s.exchange)},tt=()=>{n("viewDetails",s.exchange)},ve=()=>{X.value=!X.value};return(V,H)=>(N(),P("article",{class:De(["exchange-card",{"is-deleting":e.isDeleting}]),role:"article","aria-label":`${Q.value.name} exchange ${e.exchange.name} in ${e.exchange.ns} namespace`},[e.isDeleting?(N(),P("div",gT,[...H[0]||(H[0]=[a("div",{class:"spinner-border text-light",role:"status","aria-hidden":"true"},null,-1),a("span",{class:"loading-text"},"Deleting exchange...",-1)])])):he("",!0),a("header",vT,[a("div",bT,[a("div",{class:De(["header-icon",Q.value.color]),title:Q.value.description},[a("i",{class:De(["bi",Q.value.icon]),"aria-hidden":"true"},null,2)],10,yT),a("div",_T,[a("h3",{class:"card-title",title:e.exchange.name},q(e.exchange.name),9,ET),a("span",wT,q(Q.value.name)+" Exchange in '"+q(e.exchange.ns)+"' ",1)])]),a("div",{ref_key:"dropdown",ref:W,class:"actions-menu"},[a("button",{type:"button",class:"btn-actions","aria-label":`More options for ${e.exchange.name} exchange`,"aria-expanded":X.value,"aria-haspopup":"true",onClick:ve,onKeydown:[an(ve,["enter"]),an(Ft(ve,["prevent"]),["space"])]},[...H[1]||(H[1]=[a("i",{class:"bi bi-three-dots-vertical","aria-hidden":"true"},null,-1)])],40,CT),Ce(Yw,{name:"dropdown"},{default:qe(()=>[X.value?(N(),P("div",AT,[a("button",{type:"button",class:"dropdown-item",role:"menuitem",onClick:ue},[...H[2]||(H[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:Ie},[...H[3]||(H[3]=[a("i",{class:"bi bi-send","aria-hidden":"true"},null,-1),a("span",null,"Publish Message",-1)])]),H[5]||(H[5]=a("div",{class:"dropdown-divider",role:"separator"},null,-1)),a("button",{type:"button",class:"dropdown-item danger",role:"menuitem",onClick:se},[...H[4]||(H[4]=[a("i",{class:"bi bi-trash","aria-hidden":"true"},null,-1),a("span",null,"Delete Exchange",-1)])])])):he("",!0)]),_:1})],512)]),a("main",ST,[F.value?(N(),P("div",xT,[...H[6]||(H[6]=[a("div",{class:"spinner-border text-primary",role:"status","aria-hidden":"true"},null,-1),a("span",null,"Loading queue data...",-1)])])):w.value?(N(),P("div",$T,[H[8]||(H[8]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("p",TT,q(O.value),1),a("button",{type:"button",class:"btn-retry",onClick:S},[...H[7]||(H[7]=[a("i",{class:"bi bi-arrow-clockwise","aria-hidden":"true"},null,-1),ee(" Retry ",-1)])])])):(N(),P(Ae,{key:2},[a("div",OT,[a("div",NT,[a("span",{class:"stat-value","aria-label":`${j.value.total} queues bound`},q(j.value.total),9,kT),a("span",PT,q(j.value.total===1?"Queue":"Queues")+" Bound ",1)])]),a("div",DT,[a("h4",RT,[H[9]||(H[9]=a("i",{class:"bi bi-card-list me-2","aria-hidden":"true"},null,-1)),ee(" "+q(j.value.total>0?"Sample Queues":"Bound Queues")+" ",1),G.value?(N(),P("span",MT," ("+q(G.value)+") ",1)):he("",!0)]),j.value.total>0?(N(),P("ul",IT,[(N(!0),P(Ae,null,bt(Z.value,le=>(N(),P("li",{key:le,class:"queue-item",role:"listitem"},[a("div",qT,[H[10]||(H[10]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",LT,q(le),1)]),a("button",{type:"button",class:"btn-unbind-queue","aria-label":`Unbind queue ${le}`,onClick:Ee=>Re(le)},[...H[11]||(H[11]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1)])],8,FT)]))),128)),Y.value>0?(N(),P("li",VT,[a("div",QT,[H[12]||(H[12]=a("i",{class:"bi bi-three-dots","aria-hidden":"true"},null,-1)),a("span",null,"+"+q(Y.value)+" more",1)])])):he("",!0)])):(N(),P("div",jT,[H[14]||(H[14]=a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1)),H[15]||(H[15]=a("p",null,"No queues are bound to this exchange.",-1)),a("button",{type:"button",class:"btn-bind-now",onClick:ue},[...H[13]||(H[13]=[a("i",{class:"bi bi-link-45deg","aria-hidden":"true"},null,-1),ee(" Bind a queue ",-1)])])]))])],64))]),a("footer",BT,[a("button",{type:"button",class:"btn-details","aria-label":`View details for ${e.exchange.name} exchange`,onClick:tt},[...H[16]||(H[16]=[a("span",null,"View Details",-1),a("i",{class:"bi bi-arrow-right-circle","aria-hidden":"true"},null,-1)])],8,UT)])],10,pT))}}),ev=Xe(KT,[["__scopeId","data-v-f617579d"]]),HT={class:"exchanges-view"},GT={key:0,class:"grid grid-cols-2 gap-6"},WT=Ue({__name:"ExchangesView",setup(e){const t=os(),s=Xt(),n=fn(),i=ye(!1),r=ye(!1),o=ye(null),l=ye(null),{data:u,isLoading:d,isError:c,error:h,refetch:p}=Kg(),m=Sc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:_r()}),r.value=!1},onError:Z=>{console.error("Failed to create fanout exchange:",Z)}}}),g=xc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:_r()}),r.value=!1},onError:Z=>{console.error("Failed to create direct exchange:",Z)}}}),E=$c({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:_r()}),r.value=!1},onError:Z=>{console.error("Failed to create topic exchange:",Z)}}}),_=v(()=>m.isPending.value||g.isPending.value||E.isPending.value),x=v(()=>ct(m.error.value?.error||g.error.value?.error||E.error.value?.error)),C=v(()=>u.value?.data??[]),A=v(()=>ct(h.value)),b=Z=>{const Y=C.value.find(G=>G.name===Z.exchange.name&&G.ns===Z.exchange.ns)||null;o.value=Y??{name:Z.exchange.name,ns:Z.exchange.ns,type:Z.exchange.type},l.value=Z.totals,i.value=!0},$=()=>{r.value=!0},L=Z=>{console.log("Binding queue to:",Z.name)},F=async Z=>{const{name:Y,type:G,ns:se,queueName:ue,routingKey:Re,bindingPattern:Ie}=Z;try{switch(G){case Te.FANOUT:await m.mutateAsync({ns:se,fanout:Y,queue:ue});break;case Te.DIRECT:await g.mutateAsync({ns:se,direct:Y,queue:ue,params:{routingKey:String(Re)}});break;case Te.TOPIC:await E.mutateAsync({ns:se,topic:Y,queue:ue,params:{bindingPattern:String(Ie)}});break;default:throw new Error(`Unsupported exchange type: ${G}`)}}catch(tt){console.error("Failed to create exchange:",tt)}},I=Z=>{const Y={exchange:Z.name,ns:Z.ns};return Z.type==Te.DIRECT?{name:"Direct Exchange",params:Y}:Z.type==Te.TOPIC?{name:"Topic Exchange",params:Y}:{name:"Fanout Exchange",params:Y}},w=Z=>{const Y=I(Z);t.push(Y)},O=v(()=>[{id:"create-exchange",label:"Create Exchange",icon:"bi bi-plus-lg",variant:"primary",disabled:_.value,loading:_.value,handler:$,tooltip:"Create a new exchange by binding a queue to it"},{id:"refresh-exchanges",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:d.value,loading:d.value,handler:()=>p(),tooltip:"Refresh exchanges list"}]);At(()=>{s.setPageHeader({title:"Exchanges",subtitle:"View and manage exchange queue bindings in your RedisSMQ instance",icon:"bi bi-diagram-3"}),s.setPageActions(O.value),s.setLoadingState(d.value),c.value?(s.setErrorState(A.value),s.setEmptyState(!1)):!d.value&&C.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:$})):(s.setErrorState(null),s.setEmptyState(!1))});const S=v(()=>o.value?.ns??""),j=v(()=>o.value?.name??""),X=v(()=>o.value?.type??0),W=v(()=>l.value?.totalQueues??0),fe=v(()=>l.value?.totalRoutingKeys),ne=v(()=>l.value?.totalBindingPatterns),Q=()=>{n.invalidateQueries({queryKey:_r()}),i.value=!1,o.value=null,l.value=null};return(Z,Y)=>(N(),P("div",HT,[Ce(ps,null,{default:qe(()=>[C.value.length>0?(N(),P("div",GT,[(N(!0),P(Ae,null,bt(C.value,G=>(N(),at(ev,{key:`${G.name}-${G.ns}`,exchange:G,onDelete:b,onViewDetails:w,onBindQueue:L},null,8,["exchange"]))),128))])):he("",!0)]),_:1}),Ce(ia,{"is-visible":i.value,"exchange-type":X.value,"exchange-name":j.value,namespace:S.value,"total-queues":W.value,"total-routing-keys":fe.value,"total-binding-patterns":ne.value,onDeleted:Q,onClose:Y[0]||(Y[0]=G=>{i.value=!1,o.value=null,l.value=null})},null,8,["is-visible","exchange-type","exchange-name","namespace","total-queues","total-routing-keys","total-binding-patterns"]),Ce(Jg,{"is-visible":r.value,"is-loading":_.value,error:x.value,onConfirm:F,onCancel:Y[1]||(Y[1]=G=>r.value=!1)},null,8,["is-visible","is-loading","error"])]))}}),zT=Xe(WT,[["__scopeId","data-v-0231c378"]]),tv=e=>Je({url:"/api/v1/queues",method:"GET",signal:e}),sv=()=>["api","v1","queues"],YT=e=>{const{query:t}={};return{queryKey:sv(),queryFn:({signal:i})=>tv(i),...t}};function ZT(e,t){const s=YT(),n=Jt(s);return n.queryKey=T(s).queryKey,n}const JT=(e,t)=>(e=T(e),Je({url:"/api/v1/queues",method:"POST",headers:{"Content-Type":"application/json"},data:e,signal:t})),XT=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 JT(r)},...s}},eO=(e,t)=>{const s=XT(e);return Nt(s)},nv=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}`,method:"GET",signal:s})),iv=(e,t)=>["api","v1","namespaces",e,"queues",t],tO=(e,t,s)=>{const{query:n}=s??{};return{queryKey:iv(e,t),queryFn:({signal:o})=>nv(e,t,o),enabled:v(()=>!!(T(e)&&T(t))),...n}};function sO(e,t,s,n){const i=tO(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const nO=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}`,method:"DELETE"})),iO=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 nO(r,o)},...s}},rO=(e,t)=>{const s=iO(e);return Nt(s)},rv=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumers`,method:"GET",signal:s})),av=(e,t)=>["api","v1","namespaces",e,"queues",t,"consumers"],aO=(e,t,s)=>{const{query:n}=s??{};return{queryKey:av(e,t),queryFn:({signal:o})=>rv(e,t,o),enabled:v(()=>!!(T(e)&&T(t))),...n}};function oO(e,t,s,n){const i=aO(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const lO={class:"home-page"},uO={class:"hero-section"},cO={class:"hero-content"},dO={class:"hero-text"},fO={class:"hero-stats"},hO={class:"stat-item"},mO={class:"stat-value"},pO={class:"stat-item"},gO={class:"stat-value"},vO={class:"stat-item"},bO={class:"stat-value"},yO={class:"hero-actions"},_O={class:"dashboard-main"},EO={key:0,class:"loading-section"},wO={key:1,class:"dashboard-content"},CO={class:"overview-section"},AO={class:"stats-grid"},SO={class:"stat-card"},xO={class:"stat-content"},$O={class:"stat-number"},TO={class:"stat-card"},OO={class:"stat-content"},NO={class:"stat-number"},kO={class:"stat-card"},PO={class:"stat-content"},DO={class:"stat-number"},RO={class:"stat-card"},MO={class:"stat-content"},IO={class:"stat-number"},qO={class:"stat-card"},LO={class:"stat-content"},FO={class:"stat-number"},VO={class:"actions-section"},QO={class:"actions-grid"},jO=["onClick"],BO={class:"action-icon"},UO={class:"action-content"},KO={class:"action-title"},HO={class:"action-description"},GO={class:"getting-started-section"},WO={class:"getting-started-card"},zO={class:"getting-started-content"},YO={class:"getting-started-actions"},ZO=Ue({__name:"HomeView",setup(e){const t=os(),s=fn(),n=ye({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=ye(!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:sv(),queryFn:()=>tv()})).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 E=s.fetchQuery({queryKey:iv(g.ns,g.name),queryFn:()=>nv(g.ns,g.name)}),_=s.fetchQuery({queryKey:av(g.ns,g.name),queryFn:()=>rv(g.ns,g.name)}),[x,C]=await Promise.all([E,_]),A=x.data,b=C.data??{};return{details:A,consumers:b}}),m=(await Promise.all(h)).reduce((g,E)=>(E.details&&(g.totalMessages+=E.details.messagesCount??0,g.pendingMessages+=E.details.pendingMessagesCount??0,g.currentlyInProcess+=E.details.processingMessagesCount??0),E.consumers&&(g.activeConsumers+=Object.keys(E.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 Bt(()=>{l()}),(d,c)=>(N(),P("div",lO,[a("section",uO,[a("div",cO,[a("div",dO,[c[5]||(c[5]=a("h1",{class:"hero-title"},[a("span",{class:"hero-icon"},"🚀"),ee(" Welcome to RedisSMQ ")],-1)),c[6]||(c[6]=a("p",{class:"hero-subtitle"}," Powerful Redis-based message queue management made simple ",-1)),a("div",fO,[a("div",hO,[a("span",mO,q(o.value.totalQueues),1),c[2]||(c[2]=a("span",{class:"stat-label"},"Active Queues",-1))]),a("div",pO,[a("span",gO,q(o.value.totalMessages),1),c[3]||(c[3]=a("span",{class:"stat-label"},"Messages Processed",-1))]),a("div",vO,[a("span",bO,q(o.value.activeConsumers),1),c[4]||(c[4]=a("span",{class:"stat-label"},"Active Consumers",-1))])])]),a("div",yO,[a("button",{class:"btn btn-primary btn-lg hero-btn",onClick:c[0]||(c[0]=h=>T(t).push({name:"Queues"}))},[...c[7]||(c[7]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),ee(" Get Started ",-1)])])])])]),a("main",_O,[r.value?(N(),P("div",EO,[...c[8]||(c[8]=[a("div",{class:"loading-content"},[a("div",{class:"spinner-border text-primary mb-3",role:"status","aria-live":"polite","aria-label":"Loading dashboard"}),a("h5",{class:"loading-title"},"Loading dashboard..."),a("p",{class:"loading-subtitle"},"Fetching system information")],-1)])])):(N(),P("div",wO,[a("section",CO,[a("div",{class:"section-header"},[c[10]||(c[10]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-speedometer2 me-2"}),ee(" System Overview ")],-1)),a("button",{class:"btn btn-outline-primary btn-sm refresh-btn",onClick:u},[...c[9]||(c[9]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),ee(" Refresh ",-1)])])]),a("div",AO,[a("div",SO,[c[13]||(c[13]=a("div",{class:"stat-icon queues-icon"},[a("i",{class:"bi bi-list-ul"})],-1)),a("div",xO,[a("div",$O,q(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",TO,[c[16]||(c[16]=a("div",{class:"stat-icon messages-icon"},[a("i",{class:"bi bi-envelope-fill"})],-1)),a("div",OO,[a("div",NO,q(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",kO,[c[19]||(c[19]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-gear-fill"})],-1)),a("div",PO,[a("div",DO,q(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",RO,[c[22]||(c[22]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-hourglass-split"})],-1)),a("div",MO,[a("div",IO,q(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",qO,[c[25]||(c[25]=a("div",{class:"stat-icon consumers-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",LO,[a("div",FO,q(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",VO,[c[27]||(c[27]=a("div",{class:"section-header"},[a("h2",{class:"section-title"},[a("i",{class:"bi bi-lightning-fill me-2"}),ee(" Quick Actions ")])],-1)),a("div",QO,[(N(),P(Ae,null,bt(i,h=>a("div",{key:h.title,class:De(["action-card",`action-${h.color}`]),onClick:h.action},[a("div",BO,[a("i",{class:De(h.icon)},null,2)]),a("div",UO,[a("h3",KO,q(h.title),1),a("p",HO,q(h.description),1)]),c[26]||(c[26]=a("div",{class:"action-arrow"},[a("i",{class:"bi bi-arrow-right"})],-1))],10,jO)),64))])]),a("section",GO,[a("div",WO,[a("div",zO,[c[30]||(c[30]=ai('<h2 class="getting-started-title" data-v-a461c207><i class="bi bi-rocket-takeoff me-2" data-v-a461c207></i> Getting Started </h2><p class="getting-started-description" data-v-a461c207> 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-a461c207><div class="step-item" data-v-a461c207><div class="step-number" data-v-a461c207>1</div><div class="step-content" data-v-a461c207><h4 class="step-title" data-v-a461c207>Create a Queue</h4><p class="step-description" data-v-a461c207> Set up your first message queue with the desired configuration </p></div></div><div class="step-item" data-v-a461c207><div class="step-number" data-v-a461c207>2</div><div class="step-content" data-v-a461c207><h4 class="step-title" data-v-a461c207>Configure Consumers</h4><p class="step-description" data-v-a461c207> Add consumer groups to process messages efficiently </p></div></div><div class="step-item" data-v-a461c207><div class="step-number" data-v-a461c207>3</div><div class="step-content" data-v-a461c207><h4 class="step-title" data-v-a461c207>Monitor Performance</h4><p class="step-description" data-v-a461c207> Track message processing and system performance </p></div></div></div>',3)),a("div",YO,[a("button",{class:"btn btn-primary",onClick:c[1]||(c[1]=h=>T(t).push({name:"Queues"}))},[...c[28]||(c[28]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),ee(" Create Your First Queue ",-1)])]),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"}),ee(" Read Documentation ")],-1))])])])])]))])]))}}),JO=Xe(ZO,[["__scopeId","data-v-a461c207"]]),Ba=[{path:"/",name:"Home",component:JO,meta:{title:"Home"}},{path:"/ns",name:"Namespaces",component:()=>Pf(()=>Promise.resolve().then(()=>DL),void 0),meta:{title:"Namespace Management",breadcrumbs:"Namespaces"}},{path:"/queues",name:"Queues",component:()=>Pf(()=>import("./QueuesView-vKnXW-IF.js"),__vite__mapDeps([0,1])),meta:{title:"Queue Management",breadcrumbs:"Queues"}},{path:"/exchanges",name:"Exchanges",component:zT}],ov=6e4,lv=36e5,Oa=43200,hh=1440,mh=Symbol.for("constructDateFrom");function Wo(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&mh in e?e[mh](t):e instanceof Date?new e.constructor(t):new Date(t)}function Hs(e,t){return Wo(e,e)}let XO={};function eN(){return XO}function ph(e){const t=Hs(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 Tc(e,...t){const s=Wo.bind(null,e||t.find(n=>typeof n=="object"));return t.map(s)}function Ua(e,t){const s=+Hs(e)-+Hs(t);return s<0?-1:s>0?1:s}function tN(e){return Wo(e,Date.now())}function sN(e,t,s){const[n,i]=Tc(s?.in,e,t),r=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return r*12+o}function nN(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function iN(e,t){return+Hs(e)-+Hs(t)}function rN(e,t){const s=Hs(e);return s.setHours(23,59,59,999),s}function aN(e,t){const s=Hs(e),n=s.getMonth();return s.setFullYear(s.getFullYear(),n+1,0),s.setHours(23,59,59,999),s}function oN(e,t){const s=Hs(e);return+rN(s)==+aN(s)}function lN(e,t,s){const[n,i,r]=Tc(s?.in,e,e,t),o=Ua(i,r),l=Math.abs(sN(i,r));if(l<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*l);let u=Ua(i,r)===-o;oN(n)&&l===1&&Ua(n,r)===1&&(u=!1);const d=o*(l-+u);return d===0?0:d}function uN(e,t,s){const n=iN(e,t)/1e3;return nN(s?.roundingMethod)(n)}const cN={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"}},dN=(e,t,s)=>{let n;const i=cN[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),s?.addSuffix?s.comparison&&s.comparison>0?"in "+n:n+" ago":n};function Dl(e){return(t={})=>{const s=t.width?String(t.width):e.defaultWidth;return e.formats[s]||e.formats[e.defaultWidth]}}const fN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pN={date:Dl({formats:fN,defaultWidth:"full"}),time:Dl({formats:hN,defaultWidth:"full"}),dateTime:Dl({formats:mN,defaultWidth:"full"})},gN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vN=(e,t,s,n)=>gN[e];function gr(e){return(t,s)=>{const n=s?.context?String(s.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=s?.width?String(s.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=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 bN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_N={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"]},EN={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"]},wN={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"}},CN={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"}},AN=(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"},SN={ordinalNumber:AN,era:gr({values:bN,defaultWidth:"wide"}),quarter:gr({values:yN,defaultWidth:"wide",argumentCallback:e=>e-1}),month:gr({values:_N,defaultWidth:"wide"}),day:gr({values:EN,defaultWidth:"wide"}),dayPeriod:gr({values:wN,defaultWidth:"wide",formattingValues:CN,defaultFormattingWidth:"wide"})};function vr(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)?$N(l,h=>h.test(o)):xN(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 xN(e,t){for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t(e[s]))return s}function $N(e,t){for(let s=0;s<e.length;s++)if(t(e[s]))return s}function TN(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 ON=/^(\d+)(th|st|nd|rd)?/i,NN=/\d+/i,kN={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},PN={any:[/^b/i,/^(a|c)/i]},DN={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},RN={any:[/1/i,/2/i,/3/i,/4/i]},MN={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},IN={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]},qN={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},LN={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]},FN={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},VN={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}},QN={ordinalNumber:TN({matchPattern:ON,parsePattern:NN,valueCallback:e=>parseInt(e,10)}),era:vr({matchPatterns:kN,defaultMatchWidth:"wide",parsePatterns:PN,defaultParseWidth:"any"}),quarter:vr({matchPatterns:DN,defaultMatchWidth:"wide",parsePatterns:RN,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vr({matchPatterns:MN,defaultMatchWidth:"wide",parsePatterns:IN,defaultParseWidth:"any"}),day:vr({matchPatterns:qN,defaultMatchWidth:"wide",parsePatterns:LN,defaultParseWidth:"any"}),dayPeriod:vr({matchPatterns:FN,defaultMatchWidth:"any",parsePatterns:VN,defaultParseWidth:"any"})},jN={code:"en-US",formatDistance:dN,formatLong:pN,formatRelative:vN,localize:SN,match:QN,options:{weekStartsOn:0,firstWeekContainsDate:1}};function BN(e,t,s){const n=eN(),i=s?.locale??n.locale??jN,r=2520,o=Ua(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},s,{addSuffix:s?.addSuffix,comparison:o}),[u,d]=Tc(s?.in,...o>0?[t,e]:[e,t]),c=uN(d,u),h=(ph(d)-ph(u))/1e3,p=Math.round((c-h)/60);let m;if(p<2)return 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<hh){const g=Math.round(p/60);return i.formatDistance("aboutXHours",g,l)}else{if(p<r)return i.formatDistance("xDays",1,l);if(p<Oa){const g=Math.round(p/hh);return i.formatDistance("xDays",g,l)}else if(p<Oa*2)return m=Math.round(p/Oa),i.formatDistance("aboutXMonths",m,l)}if(m=lN(d,u),m<12){const g=Math.round(p/Oa);return i.formatDistance("xMonths",g,l)}else{const g=m%12,E=Math.trunc(m/12);return g<3?i.formatDistance("aboutXYears",E,l):g<9?i.formatDistance("overXYears",E,l):i.formatDistance("almostXYears",E+1,l)}}function Js(e,t){return BN(e,tN(e),t)}function UN(e,t){const s=()=>Wo(t?.in,NaN),i=WN(e);let r;if(i.date){const d=zN(i.date,2);r=YN(d.restDateString,d.year)}if(!r||isNaN(+r))return s();const o=+r;let l=0,u;if(i.time&&(l=ZN(i.time),isNaN(l)))return s();if(i.timezone){if(u=JN(i.timezone),isNaN(u))return s()}else{const d=new Date(o+l),c=Hs(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return Hs(o+l+u)}const Na={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},KN=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,HN=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,GN=/^([+-])(\d{2})(?::?(\d{2}))?$/;function WN(e){const t={},s=e.split(Na.dateTimeDelimiter);let n;if(s.length>2)return t;if(/:/.test(s[0])?n=s[0]:(t.date=s[0],n=s[1],Na.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Na.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const i=Na.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function zN(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 YN(e,t){if(t===null)return new Date(NaN);const s=e.match(KN);if(!s)return new Date(NaN);const n=!!s[4],i=br(s[1]),r=br(s[2])-1,o=br(s[3]),l=br(s[4]),u=br(s[5])-1;if(n)return nk(t,l,u)?XN(t,l,u):new Date(NaN);{const d=new Date(0);return!tk(t,r,o)||!sk(t,i)?new Date(NaN):(d.setUTCFullYear(t,r,Math.max(i,o)),d)}}function br(e){return e?parseInt(e):1}function ZN(e){const t=e.match(HN);if(!t)return NaN;const s=Rl(t[1]),n=Rl(t[2]),i=Rl(t[3]);return ik(s,n,i)?s*lv+n*ov+i*1e3:NaN}function Rl(e){return e&&parseFloat(e.replace(",","."))||0}function JN(e){if(e==="Z")return 0;const t=e.match(GN);if(!t)return 0;const s=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return rk(n,i)?s*(n*lv+i*ov):NaN}function XN(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 ek=[31,null,31,30,31,30,31,31,30,31,30,31];function uv(e){return e%400===0||e%4===0&&e%100!==0}function tk(e,t,s){return t>=0&&t<=11&&s>=1&&s<=(ek[t]||(uv(e)?29:28))}function sk(e,t){return t>=1&&t<=(uv(e)?366:365)}function nk(e,t,s){return t>=1&&t<=53&&s>=0&&s<=6}function ik(e,t,s){return e===24?t===0&&s===0:s>=0&&s<60&&t>=0&&t<60&&e>=0&&e<25}function rk(e,t){return t>=0&&t<=59}function gh(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 Oc(e){if(!e)return"N/A";try{const t=typeof e=="string"?UN(e):new Date(e);return`${t.toLocaleString()} (${Js(t,{addSuffix:!0})})`}catch{return"Invalid Date"}}const ak={class:"dialog-body"},ok={class:"confirmation-message"},lk={key:0,class:"message-preview"},uk={class:"actions"},ck=["disabled"],dk=["disabled"],fk={key:0,class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},hk=Ue({__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(()=>{switch(s.variant){case"danger":return"btn-danger";case"warning":return"btn-warning";case"secondary":return"btn-secondary";case"primary":default:return"btn-primary"}}),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(u,d)=>(N(),at(Ss,{"is-visible":e.isVisible,title:e.title,subtitle:void 0,icon:`bi ${l.value}`,size:"sm",onClose:i},{body:qe(()=>[a("div",ak,[a("p",ok,q(e.message),1),u.$slots["message-preview"]?(N(),P("div",lk,[Pi(u.$slots,"message-preview",{},void 0,!0)])):he("",!0)])]),footer:qe(()=>[a("div",uk,[a("button",{class:"btn btn-outline-secondary",type:"button",disabled:e.isLoading,onClick:i}," Cancel ",8,ck),a("button",{class:De(["btn",o.value]),type:"button",disabled:e.isLoading,onClick:r},[e.isLoading?(N(),P("span",fk)):he("",!0),ee(" "+q(e.isLoading?"Processing...":e.confirmText),1)],10,dk)])]),_:3},8,["is-visible","title","icon"]))}}),vh=Xe(hk,[["__scopeId","data-v-7963a349"]]),mk={class:"vm-body"},pk={class:"status-bar"},gk={class:"status-info"},vk={class:"text-muted ms-3"},bk={key:0,class:"queue-info"},yk={class:"badge bg-light text-dark"},_k={class:"modal-tabs"},Ek=["disabled"],wk=["disabled"],Ck=["disabled"],Ak=["disabled"],Sk=["disabled"],xk={class:"tab-panels"},$k={key:0,class:"tab-content"},Tk={class:"info-grid"},Ok={class:"info-section"},Nk={class:"info-items"},kk={class:"info-item"},Pk={class:"info-item"},Dk={class:"info-value"},Rk={class:"info-item"},Mk={class:"info-value"},Ik={class:"info-item"},qk={class:"info-value"},Lk={class:"info-section"},Fk={class:"info-items"},Vk={class:"info-item"},Qk={class:"info-value"},jk={class:"info-item"},Bk={class:"info-value"},Uk={class:"info-item"},Kk={class:"info-value"},Hk={class:"info-item"},Gk={class:"info-value"},Wk={class:"info-item"},zk={class:"info-value"},Yk={key:0,class:"info-section"},Zk={class:"info-items"},Jk={class:"info-item"},Xk={class:"info-value"},eP={class:"info-item"},tP={class:"info-value"},sP={key:1,class:"info-section"},nP={class:"info-items"},iP={class:"info-item"},rP={class:"info-value"},aP={key:1,class:"tab-content"},oP={class:"body-section"},lP={class:"d-flex justify-content-between align-items-center mb-3"},uP=["disabled"],cP={class:"message-body"},dP={key:2,class:"tab-content"},fP={class:"info-grid"},hP={class:"info-section"},mP={class:"info-items"},pP={class:"info-item"},gP={class:"info-value"},vP={class:"info-item"},bP={class:"info-value"},yP={class:"info-item"},_P={class:"info-value"},EP={class:"info-item"},wP={class:"info-section"},CP={class:"info-items"},AP={class:"info-item"},SP={class:"info-value"},xP={class:"info-item"},$P={class:"info-value"},TP={class:"info-item"},OP={class:"info-value"},NP={class:"info-item"},kP={class:"info-value"},PP={class:"info-item"},DP={class:"info-value"},RP={class:"info-item"},MP={class:"info-value"},IP={key:3,class:"tab-content"},qP={class:"info-grid"},LP={class:"info-section"},FP={class:"info-items"},VP={class:"info-item"},QP={class:"info-value"},jP={class:"info-item"},BP={class:"info-value"},UP={class:"info-item"},KP={class:"info-value"},HP={class:"info-item"},GP={class:"info-section"},WP={class:"info-items"},zP={class:"info-item"},YP={class:"info-value"},ZP={class:"info-item"},JP={class:"info-value"},XP={class:"info-item"},eD={class:"info-value"},tD={class:"info-item"},sD={class:"info-value"},nD={key:0,class:"info-section"},iD={class:"info-items"},rD={class:"info-item"},aD={class:"d-flex align-items-center"},oD={class:"info-value"},lD={key:1,class:"info-section"},uD={class:"info-items"},cD={class:"info-item"},dD={class:"d-flex align-items-center"},fD={class:"info-value"},hD={key:4,class:"timeline-section"},mD={class:"timeline"},pD={class:"timeline-content"},gD={class:"timeline-title"},vD={class:"timeline-time"},bD={class:"footer-info"},yD={class:"text-muted"},_D={class:"footer-actions"},ED=["disabled"],wD=["disabled"],CD=["disabled"],AD=Ue({__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=ye("overview"),r=ye(!1),o=ye(!1),l=v(()=>{if(!s.message?.createdAt)return"N/A";const O=new Date(s.message.createdAt);return`${O.toLocaleString()} (${Js(O,{addSuffix:!0})})`}),u=v(()=>{if(!s.message?.messageState.publishedAt)return"Not published";const O=new Date(s.message.messageState.publishedAt);return`${O.toLocaleString()} (${Js(O,{addSuffix:!0})})`}),d=v(()=>{if(!s.message?.messageState.scheduledAt)return"Not scheduled";const O=new Date(s.message.messageState.scheduledAt);return`${O.toLocaleString()} (${Js(O,{addSuffix:!0})})`}),c=v(()=>{if(!s.message?.messageState.lastRetriedAttemptAt)return"Never";const O=new Date(s.message.messageState.lastRetriedAttemptAt);return`${O.toLocaleString()} (${Js(O,{addSuffix:!0})})`}),h=v(()=>{if(!s.message?.messageState.processingStartedAt)return"N/A";const O=new Date(s.message.messageState.processingStartedAt);return`${O.toLocaleString()} (${Js(O,{addSuffix:!0})})`}),p=v(()=>{if(!s.message?.messageState.acknowledgedAt)return"N/A";const O=new Date(s.message.messageState.acknowledgedAt);return`${O.toLocaleString()} (${Js(O,{addSuffix:!0})})`}),m=v(()=>{if(!s.message?.messageState.deadLetteredAt)return"N/A";const O=new Date(s.message.messageState.deadLetteredAt);return`${O.toLocaleString()} (${Js(O,{addSuffix:!0})})`}),g=v(()=>{if(!s.message?.messageState.lastRequeuedAt)return"Never";const O=new Date(s.message.messageState.lastRequeuedAt);return`${O.toLocaleString()} (${Js(O,{addSuffix:!0})})`}),E=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"}}),_=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"}}),x=v(()=>!s.message?.priority&&s.message?.priority!==0?"Normal":["Highest","Very High","High","Above Normal","Normal","Low","Very Low","Lowest"][s.message.priority]||"Normal"),C=v(()=>{if(!s.message?.body)return"";try{if(typeof s.message.body=="string"){const O=JSON.parse(s.message.body);return JSON.stringify(O,null,2)}return JSON.stringify(s.message.body,null,2)}catch{return String(s.message.body)}}),A=v(()=>s.message?.status===6),b=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(S=>!!S.timestamp).sort((S,j)=>Number(S.timestamp)-Number(j.timestamp)):[]);function L(){b.value||(n("close"),n("update:show",!1))}function F(O){navigator.clipboard.writeText(O).then(()=>{})}function I(){s.message?.id&&n("delete-message",s.message.id),r.value=!1}function w(){s.message?.id&&n("requeue-message",s.message.id),o.value=!1}return(O,S)=>(N(),P(Ae,null,[Ce(Ss,{"is-visible":!!e.message&&e.show,title:"Message Details",subtitle:e.message?`ID: ${e.message.id}`:void 0,icon:"bi bi-envelope-fill",size:"lg",onClose:L},{body:qe(()=>[a("div",mk,[a("div",pk,[a("div",gk,[a("span",{class:De(E.value)},q(_.value),3),a("span",vk,[S[12]||(S[12]=a("i",{class:"bi bi-clock me-1"},null,-1)),ee(" "+q(l.value),1)])]),e.message?(N(),P("div",bk,[a("span",yk,[S[13]||(S[13]=a("i",{class:"bi bi-collection me-1"},null,-1)),ee(" "+q(e.message.destinationQueue.name)+"@"+q(e.message.destinationQueue.ns),1)])])):he("",!0)]),a("div",_k,[a("button",{class:De(["tab-button",{active:i.value==="overview"}]),disabled:b.value,onClick:S[0]||(S[0]=j=>i.value="overview")},[...S[14]||(S[14]=[a("i",{class:"bi bi-info-circle me-1"},null,-1),ee(" Overview ",-1)])],10,Ek),a("button",{class:De(["tab-button",{active:i.value==="body"}]),disabled:b.value,onClick:S[1]||(S[1]=j=>i.value="body")},[...S[15]||(S[15]=[a("i",{class:"bi bi-file-text me-1"},null,-1),ee(" Message Body ",-1)])],10,wk),a("button",{class:De(["tab-button",{active:i.value==="state"}]),disabled:b.value,onClick:S[2]||(S[2]=j=>i.value="state")},[...S[16]||(S[16]=[a("i",{class:"bi bi-gear me-1"},null,-1),ee(" State ",-1)])],10,Ck),a("button",{class:De(["tab-button",{active:i.value==="scheduling"}]),disabled:b.value,onClick:S[3]||(S[3]=j=>i.value="scheduling")},[...S[17]||(S[17]=[a("i",{class:"bi bi-calendar me-1"},null,-1),ee(" Scheduling ",-1)])],10,Ak),a("button",{class:De(["tab-button",{active:i.value==="timeline"}]),disabled:b.value,onClick:S[4]||(S[4]=j=>i.value="timeline")},[...S[18]||(S[18]=[a("i",{class:"bi bi-clock-history me-2"},null,-1),ee(" Timeline ",-1)])],10,Sk)]),a("div",xk,[i.value==="overview"?(N(),P("div",$k,[a("div",Tk,[a("div",Ok,[S[23]||(S[23]=a("h6",{class:"section-title"},"Basic Information",-1)),a("div",Nk,[a("div",kk,[S[19]||(S[19]=a("span",{class:"info-label"},"Status:",-1)),a("span",{class:De(E.value)},q(_.value),3)]),a("div",Pk,[S[20]||(S[20]=a("span",{class:"info-label"},"Priority:",-1)),a("span",Dk,q(x.value),1)]),a("div",Rk,[S[21]||(S[21]=a("span",{class:"info-label"},"TTL:",-1)),a("span",Mk,q(e.message.ttl)+"ms",1)]),a("div",Ik,[S[22]||(S[22]=a("span",{class:"info-label"},"Consumer Group:",-1)),a("span",qk,q(e.message.consumerGroupId||"None"),1)])])]),a("div",Lk,[S[29]||(S[29]=a("h6",{class:"section-title"},"Retry Configuration",-1)),a("div",Fk,[a("div",Vk,[S[24]||(S[24]=a("span",{class:"info-label"},"Retry Threshold:",-1)),a("span",Qk,q(e.message.retryThreshold),1)]),a("div",jk,[S[25]||(S[25]=a("span",{class:"info-label"},"Retry Delay:",-1)),a("span",Bk,q(e.message.retryDelay)+"ms",1)]),a("div",Uk,[S[26]||(S[26]=a("span",{class:"info-label"},"Consume Timeout:",-1)),a("span",Kk,q(e.message.consumeTimeout)+"ms",1)]),a("div",Hk,[S[27]||(S[27]=a("span",{class:"info-label"},"Current Attempts:",-1)),a("span",Gk,q(e.message.messageState.attempts),1)]),a("div",Wk,[S[28]||(S[28]=a("span",{class:"info-label"},"Requeue Count:",-1)),a("span",zk,q(e.message.messageState.requeueCount),1)])])]),e.message?.exchange?(N(),P("div",Yk,[S[32]||(S[32]=a("h6",{class:"section-title"},"Exchange Information",-1)),a("div",Zk,[a("div",Jk,[S[30]||(S[30]=a("span",{class:"info-label"},"Exchange Params:",-1)),a("span",Xk,q(e.message.exchange.name)+"@"+q(e.message.exchange.ns),1)]),a("div",eP,[S[31]||(S[31]=a("span",{class:"info-label"},"Type:",-1)),a("span",tP,q(T(Te)[e.message.exchange.type]),1)])])])):he("",!0),e.message?.queue?(N(),P("div",sP,[S[34]||(S[34]=a("h6",{class:"section-title"},"Queue Information",-1)),a("div",nP,[a("div",iP,[S[33]||(S[33]=a("span",{class:"info-label"},"Queue Params:",-1)),a("span",rP,q(e.message.queue.name)+"@"+q(e.message.queue.ns),1)])])])):he("",!0)])])):he("",!0),i.value==="body"?(N(),P("div",aP,[a("div",oP,[a("div",lP,[S[36]||(S[36]=a("h6",{class:"section-title mb-0"},"Message Body",-1)),a("button",{class:"btn btn-sm btn-outline-primary",disabled:b.value,onClick:S[5]||(S[5]=j=>F(C.value))},[...S[35]||(S[35]=[a("i",{class:"bi bi-clipboard me-1"},null,-1),ee(" Copy ",-1)])],8,uP)]),a("pre",cP,[a("code",null,q(C.value),1)])])])):he("",!0),i.value==="state"?(N(),P("div",dP,[a("div",fP,[a("div",hP,[S[41]||(S[41]=a("h6",{class:"section-title"},"Message State",-1)),a("div",mP,[a("div",pP,[S[37]||(S[37]=a("span",{class:"info-label"},"UUID:",-1)),a("code",gP,q(e.message.messageState.uuid),1)]),a("div",vP,[S[38]||(S[38]=a("span",{class:"info-label"},"Published At:",-1)),a("span",bP,q(u.value),1)]),a("div",yP,[S[39]||(S[39]=a("span",{class:"info-label"},"Attempts:",-1)),a("span",_P,q(e.message.messageState.attempts),1)]),a("div",EP,[S[40]||(S[40]=a("span",{class:"info-label"},"Expired:",-1)),a("span",{class:De(["badge",e.message.messageState.expired?"bg-danger":"bg-success"])},q(e.message.messageState.expired?"Yes":"No"),3)])])]),a("div",wP,[S[48]||(S[48]=a("h6",{class:"section-title"},"Timing Information",-1)),a("div",CP,[a("div",AP,[S[42]||(S[42]=a("span",{class:"info-label"},"Processing Started At:",-1)),a("span",SP,q(h.value),1)]),a("div",xP,[S[43]||(S[43]=a("span",{class:"info-label"},"Acknowledged At:",-1)),a("span",$P,q(p.value),1)]),a("div",TP,[S[44]||(S[44]=a("span",{class:"info-label"},"Last Retried At:",-1)),a("span",OP,q(c.value),1)]),a("div",NP,[S[45]||(S[45]=a("span",{class:"info-label"},"Last Requeued At:",-1)),a("span",kP,q(g.value),1)]),a("div",PP,[S[46]||(S[46]=a("span",{class:"info-label"},"Dead-Lettered At:",-1)),a("span",DP,q(m.value),1)]),a("div",RP,[S[47]||(S[47]=a("span",{class:"info-label"},"Scheduled Times:",-1)),a("span",MP,q(e.message.messageState.scheduledTimes),1)])])])])])):he("",!0),i.value==="scheduling"?(N(),P("div",IP,[a("div",qP,[a("div",LP,[S[53]||(S[53]=a("h6",{class:"section-title"},"Schedule Configuration",-1)),a("div",FP,[a("div",VP,[S[49]||(S[49]=a("span",{class:"info-label"},"Scheduled At:",-1)),a("span",QP,q(d.value),1)]),a("div",jP,[S[50]||(S[50]=a("span",{class:"info-label"},"Scheduled Cron:",-1)),a("span",BP,q(e.message.scheduledCron||"None"),1)]),a("div",UP,[S[51]||(S[51]=a("span",{class:"info-label"},"Scheduled Delay:",-1)),a("span",KP,q(e.message.scheduledDelay?`${e.message.scheduledDelay} ms`:"None"),1)]),a("div",HP,[S[52]||(S[52]=a("span",{class:"info-label"},"Cron Fired:",-1)),a("span",{class:De(["badge",e.message.messageState.scheduledCronFired?"bg-success":"bg-secondary"])},q(e.message.messageState.scheduledCronFired?"Yes":"No"),3)])])]),a("div",GP,[S[58]||(S[58]=a("h6",{class:"section-title"},"Repeat Configuration",-1)),a("div",WP,[a("div",zP,[S[54]||(S[54]=a("span",{class:"info-label"},"Repeat Period:",-1)),a("span",YP,q(e.message.scheduledRepeatPeriod?`${e.message.scheduledRepeatPeriod} ms`:"None"),1)]),a("div",ZP,[S[55]||(S[55]=a("span",{class:"info-label"},"Repeat Count:",-1)),a("span",JP,q(e.message.scheduledRepeat),1)]),a("div",XP,[S[56]||(S[56]=a("span",{class:"info-label"},"Current Repeat:",-1)),a("span",eD,q(e.message.messageState.scheduledRepeatCount),1)]),a("div",tD,[S[57]||(S[57]=a("span",{class:"info-label"},"Last Scheduled At:",-1)),a("span",sD,q(e.message.messageState.lastScheduledAt?new Date(e.message.messageState.lastScheduledAt).toLocaleString():"Never"),1)])])]),e.message?.messageState.scheduledMessageParentId?(N(),P("div",nD,[S[61]||(S[61]=a("h6",{class:"section-title"},"Scheduled Message Reference",-1)),a("div",iD,[a("div",rD,[S[60]||(S[60]=a("span",{class:"info-label"},"Scheduled Message Parent ID:",-1)),a("div",aD,[a("code",oD,q(e.message.messageState.scheduledMessageParentId),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy Scheduled Message Parent ID",onClick:S[6]||(S[6]=j=>F(e.message.messageState.scheduledMessageParentId))},[...S[59]||(S[59]=[a("i",{class:"bi bi-clipboard"},null,-1)])])])])])])):he("",!0),e.message?.messageState.requeuedMessageParentId?(N(),P("div",lD,[S[64]||(S[64]=a("h6",{class:"section-title"},"Requeued Message Reference",-1)),a("div",uD,[a("div",cD,[S[63]||(S[63]=a("span",{class:"info-label"},"Requeued Message Parent ID:",-1)),a("div",dD,[a("code",fD,q(e.message.messageState.requeuedMessageParentId),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy Requeued Message Parent ID",onClick:S[7]||(S[7]=j=>F(e.message.messageState.requeuedMessageParentId))},[...S[62]||(S[62]=[a("i",{class:"bi bi-clipboard"},null,-1)])])])])])])):he("",!0)])])):he("",!0),i.value==="timeline"?(N(),P("div",hD,[a("ul",mD,[(N(!0),P(Ae,null,bt($.value,j=>(N(),P("li",{key:`${j.type}-${j.timestamp}`,class:"timeline-item"},[a("div",{class:De(["timeline-marker",j.color])},[a("i",{class:De(j.icon)},null,2)],2),a("div",pD,[a("h5",gD,q(j.type),1),a("p",vD,q(T(Oc)(j.timestamp)),1)])]))),128))])])):he("",!0)])])]),footer:qe(()=>[a("div",bD,[a("small",yD,[S[65]||(S[65]=a("i",{class:"bi bi-info-circle me-1"},null,-1)),ee(" Message created "+q(l.value),1)])]),a("div",_D,[A.value?(N(),P("button",{key:0,type:"button",class:"btn btn-warning",disabled:b.value,onClick:S[8]||(S[8]=j=>o.value=!0)},[e.isRequeuing?(N(),P(Ae,{key:0},[S[66]||(S[66]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),S[67]||(S[67]=ee(" Requeuing... ",-1))],64)):(N(),P(Ae,{key:1},[S[68]||(S[68]=a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),S[69]||(S[69]=ee(" Requeue Message ",-1))],64))],8,ED)):he("",!0),a("button",{type:"button",class:"btn btn-danger",disabled:b.value,onClick:S[9]||(S[9]=j=>r.value=!0)},[e.isDeleting?(N(),P(Ae,{key:0},[S[70]||(S[70]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),S[71]||(S[71]=ee(" Deleting... ",-1))],64)):(N(),P(Ae,{key:1},[S[72]||(S[72]=a("i",{class:"bi bi-trash me-2"},null,-1)),S[73]||(S[73]=ee(" Delete Message ",-1))],64))],8,wD),a("button",{type:"button",class:"btn btn-secondary",disabled:b.value,onClick:L}," Close ",8,CD)])]),_:1},8,["is-visible","subtitle"]),Ce(vh,{"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":e.isDeleting,onConfirm:I,onClose:S[10]||(S[10]=j=>r.value=!1)},{"message-preview":qe(()=>[S[74]||(S[74]=a("strong",null,"Message ID: ",-1)),a("code",null,q(e.message?.id),1)]),_:1},8,["is-visible","is-loading"]),Ce(vh,{"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":e.isRequeuing,onConfirm:w,onClose:S[11]||(S[11]=j=>o.value=!1)},{"message-preview":qe(()=>[S[75]||(S[75]=a("strong",null,"Message ID: ",-1)),a("code",null,q(e.message?.id),1)]),_:1},8,["is-visible","is-loading"])],64))}}),SD=Xe(AD,[["__scopeId","data-v-65801e3a"]]),xD={class:"messages-component","aria-live":"polite"},$D={key:0,class:"messages-controls"},TD={class:"controls-left"},OD={key:0,class:"pagination-info"},ND={class:"info-text"},kD={class:"controls-right"},PD={key:0,class:"page-size-selector"},DD=["value"],RD=["disabled"],MD={class:"messages-content"},ID={key:0,class:"state-card loading-state"},qD={key:1,class:"state-card error-state"},LD={class:"state-content"},FD={class:"state-text"},VD={class:"state-message"},QD={class:"state-actions"},jD={key:2,class:"state-card empty-state"},BD={class:"state-content"},UD={class:"state-title"},KD={key:3,class:"messages-list",role:"list","aria-label":"Messages list"},HD=["aria-label","onClick","onKeydown"],GD={class:"message-header"},WD={class:"message-id-section"},zD={class:"message-id"},YD={class:"message-date"},ZD={class:"message-metadata"},JD={key:0,class:"metadata-item"},XD={class:"metadata-value priority-badge"},eR={key:1,class:"metadata-item"},tR={class:"metadata-value"},sR={key:2,class:"metadata-item"},nR={class:"message-body"},iR={class:"body-content"},rR={key:1,class:"messages-pagination"},aR={class:"pagination-nav","aria-label":"Messages pagination"},oR={class:"pagination"},lR=["disabled"],uR=["disabled"],cR=["title","onClick"],dR=["disabled"],fR=["disabled"],hR=Ue({__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=ye(!1),r=ye(null),o=v(()=>s.messages.length>0),l=v(()=>s.pagination.currentPage>1),u=v(()=>s.pagination.currentPage<s.pagination.totalPages),d=v(()=>{const x=[],A=Math.floor(2.5),{currentPage:b,totalPages:$}=s.pagination;let L=Math.max(1,b-A),F=Math.min($,L+5-1);F-L+1<5&&(L=Math.max(1,F-5+1));for(let I=L;I<=F;I++)x.push(I);return x});function c(x){r.value=x,i.value=!0}function h(){i.value=!1}function p(x){n("delete-message",x),h()}function m(x){n("requeue-message",x),h()}function g(x){const C=x.target;n("page-size-change",Number(C.value))}function E(x){if(typeof x=="string")return x.length>100?`${x.substring(0,100)}...`:x;if(x==null)return"null";try{const C=JSON.stringify(x);return C.length>100?`${C.substring(0,100)}...`:C}catch{return String(x)}}function _(x,C){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),c(C))}return(x,C)=>(N(),P("section",xD,[o.value||e.showPagination?(N(),P("div",$D,[a("div",TD,[e.showPagination&&e.pagination&&e.pagination.hasItems?(N(),P("div",OD,[a("span",ND," Showing "+q(e.pagination.start)+"-"+q(e.pagination.end)+" of "+q(e.pagination.totalCount)+" messages ",1)])):he("",!0)]),a("div",kD,[e.showPagination&&e.pagination?(N(),P("div",PD,[C[7]||(C[7]=a("label",{for:"pageSize",class:"selector-label"},"Per page:",-1)),a("select",{id:"pageSize",class:"form-select form-select-sm",value:e.pagination.pageSize,onChange:g},[...C[6]||(C[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,DD)])):he("",!0),a("button",{class:De(["btn btn-refresh",{"btn-loading":e.isLoading}]),disabled:e.isLoading,onClick:C[0]||(C[0]=A=>n("refresh"))},[e.isLoading?(N(),P(Ae,{key:0},[C[8]||(C[8]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),C[9]||(C[9]=ee(" Refreshing... ",-1))],64)):(N(),P(Ae,{key:1},[C[10]||(C[10]=a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),C[11]||(C[11]=ee(" Refresh ",-1))],64))],10,RD)])])):he("",!0),a("div",MD,[e.isLoading&&!o.value?(N(),P("div",ID,[...C[12]||(C[12]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3",role:"status"}),a("h5",{class:"state-title"},"Loading messages..."),a("p",{class:"state-subtitle"},"Please wait while we fetch your messages")],-1)])])):e.error?(N(),P("div",qD,[a("div",LD,[C[14]||(C[14]=a("div",{class:"state-icon","aria-hidden":"true"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",FD,[C[13]||(C[13]=a("h5",{class:"state-title"},"Failed to load messages",-1)),a("p",VD,q(e.error.message),1)])]),a("div",QD,[a("button",{class:"btn btn-primary",onClick:C[1]||(C[1]=A=>n("refresh"))},[...C[15]||(C[15]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),ee(" Try Again ",-1)])])])])):o.value?(N(),P("div",KD,[(N(!0),P(Ae,null,bt(e.messages,A=>(N(),P("div",{key:A.id,class:"message-card",role:"button",tabindex:"0","aria-label":`View message ${A.id} details`,onClick:b=>c(A),onKeydown:b=>_(b,A)},[a("div",GD,[a("div",WD,[a("span",zD,q(A.id),1),a("span",YD,q(T(Oc)(A.createdAt)),1)]),a("div",ZD,[A.priority!==void 0&&A.priority!==null?(N(),P("div",JD,[C[18]||(C[18]=a("span",{class:"metadata-label"},"Priority:",-1)),a("span",XD,q(A.priority),1)])):he("",!0),A.consumerGroupId?(N(),P("div",eR,[C[19]||(C[19]=a("span",{class:"metadata-label"},"Group:",-1)),a("span",tR,q(A.consumerGroupId),1)])):he("",!0),A.status!==void 0?(N(),P("div",sR,[C[20]||(C[20]=a("span",{class:"metadata-label"},"Status:",-1)),a("span",{class:De(["metadata-value status-badge",`status-${A.status}`])},q(T(Xg)[A.status]),3)])):he("",!0)])]),a("div",nR,[a("pre",iR,q(E(A.body)),1)])],40,HD))),128))])):(N(),P("div",jD,[a("div",BD,[C[16]||(C[16]=a("div",{class:"state-icon","aria-hidden":"true"},"📭",-1)),a("h4",UD,q(e.emptyMessage),1),C[17]||(C[17]=a("p",{class:"state-subtitle"}," Messages will appear here when they are available ",-1))])]))]),e.showPagination&&e.pagination&&e.pagination.totalPages>1?(N(),P("div",rR,[a("nav",aR,[a("ul",oR,[a("li",{class:De(["page-item",{disabled:!l.value}])},[a("button",{class:"page-link",disabled:!l.value,title:"First page",onClick:C[2]||(C[2]=A=>n("first-page"))},[...C[21]||(C[21]=[a("i",{class:"bi bi-chevron-double-left"},null,-1)])],8,lR)],2),a("li",{class:De(["page-item",{disabled:!l.value}])},[a("button",{class:"page-link",disabled:!l.value,title:"Previous page",onClick:C[3]||(C[3]=A=>n("previous-page"))},[...C[22]||(C[22]=[a("i",{class:"bi bi-chevron-left"},null,-1)])],8,uR)],2),(N(!0),P(Ae,null,bt(d.value,A=>(N(),P("li",{key:A,class:De(["page-item",{active:A===e.pagination.currentPage}])},[a("button",{class:"page-link",title:`Go to page ${A}`,onClick:b=>n("page-change",A)},q(A),9,cR)],2))),128)),a("li",{class:De(["page-item",{disabled:!u.value}])},[a("button",{class:"page-link",disabled:!u.value,title:"Next page",onClick:C[4]||(C[4]=A=>n("next-page"))},[...C[23]||(C[23]=[a("i",{class:"bi bi-chevron-right"},null,-1)])],8,dR)],2),a("li",{class:De(["page-item",{disabled:!u.value}])},[a("button",{class:"page-link",disabled:!u.value,title:"Last page",onClick:C[5]||(C[5]=A=>n("last-page"))},[...C[24]||(C[24]=[a("i",{class:"bi bi-chevron-double-right"},null,-1)])],8,fR)],2)])])])):he("",!0),Ce(SD,{show:i.value,message:r.value,"is-deleting":e.isDeleting,"is-requeuing":e.isRequeuing,onClose:h,onDeleteMessage:p,onRequeueMessage:m},null,8,["show","message","is-deleting","is-requeuing"])]))}}),ra=Xe(hR,[["__scopeId","data-v-4aecad5a"]]),zo=Vo("selectedNamespace",()=>{const e=ye(null);function t(n){e.value=n}function s(){e.value=null}return{selectedNamespace:e,selectNamespace:t,clearSelectedNamespace:s}}),It=Vo("selectedQueue",()=>{const e=zo(),t=ye(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}}),Dn=Vo("queueProperties",()=>{const e=It(),t=v(()=>e.selectedQueue),s=sO(v(()=>t.value?.ns||""),v(()=>t.value?.name||""),{query:{enabled:v(()=>!!t.value)}}),n=v(()=>s.data.value),i=v(()=>s.isLoading.value),r=v(()=>s.error.value),o=v(()=>n.value?.data.deliveryModel===us.PUB_SUB),l=v(()=>n.value?.data.deliveryModel===us.POINT_TO_POINT),u=v(()=>n.value?.data.queueType),d=v(()=>n.value?.data.deliveryModel),c=v(()=>!!n.value?.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}}),mR=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/acknowledged-messages`,method:"GET",params:T(s),signal:n})),pR=e=>(e=T(e),Je({url:`/api/v1/messages/${e}`,method:"DELETE"})),gR=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 pR(r)},...s}},vR=(e,t)=>{const s=gR(e);return Nt(s)},bR=(e,t)=>(e=T(e),Je({url:`/api/v1/messages/${e}/requeue`,method:"POST",signal:t})),yR=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 bR(r)},...s}},_R=(e,t)=>{const s=yR(e);return Nt(s)};function aa(e,t,s=20,n=ye({})){const i=fn(),r=As({currentPage:1,pageSize:s}),o=v(()=>{if(!e.value)return["disabled"];const W=[t.queryKeyPrefix,e.value.ns,e.value.name],fe=Object.entries(n.value);return fe.length>0&&fe.forEach(([ne,Q])=>{Q!=null&&W.push(ne,String(Q))}),W});function l(W){return W?.data?.totalItems??0}const{data:u,error:d,fetchNextPage:c,hasNextPage:h,isLoading:p,isFetchingNextPage:m,refetch:g}=oC({queryKey:o,initialPageParam:1,enabled:v(()=>!!(e.value?.ns&&e.value?.name)),retry:(W,fe)=>{const ne=fe;return(ne?.status??ne?.response?.status)===422?!1:W<3},queryFn:async({pageParam:W=1})=>{if(!e.value)throw new Error("Queue parameters are required");return t.queryFn({ns:e.value.ns,name:e.value.name,page:Number(W),pageSize:r.pageSize,extraParams:n.value})},getNextPageParam:(W,fe)=>{const ne=W?.data?.items??[],Q=l(fe?.[0]),Z=fe.flatMap(Y=>Y?.data?.items??[]).length;if(!(!ne.length||Q&&Z>=Q))return fe.length+1}}),E=async()=>{await i.invalidateQueries({queryKey:o.value})},_=t.enableDelete?vR({mutation:{onSuccess:E}}):null,x=t.enableRequeue?_R({mutation:{onSuccess:E}}):null,C=v(()=>u.value?.pages.flatMap(W=>W?.data?.items??[])??[]),A=v(()=>l(u.value?.pages?.[0]??{})),b=v(()=>_?.isPending.value??!1),$=v(()=>x?.isPending.value??!1),L=v(()=>{const W=d.value||_?.error.value||x?.error.value;return ct(W)}),F=v(()=>{const W=(r.currentPage-1)*r.pageSize,fe=W+r.pageSize;return C.value.slice(W,fe)}),I=v(()=>{const W=A.value||0,fe=W>0?Math.ceil(W/r.pageSize):1,ne=W>0?(r.currentPage-1)*r.pageSize+1:0,Q=Math.min(ne+r.pageSize-1,W);return{currentPage:r.currentPage,pageSize:r.pageSize,totalCount:W,totalPages:fe,start:ne,end:Q,hasItems:W>0}});async function w(W){if(W<1)return;r.currentPage=W;const fe=W*r.pageSize;for(;C.value.length<fe&&h.value&&!m.value;)await c()}async function O(W){r.pageSize=W,r.currentPage=1,await g()}async function S(){r.currentPage=1,await g()}async function j(W){if(!_)throw new Error("Delete operation is not enabled for this message type");await _.mutateAsync({id:W})}async function X(W){if(!x)throw new Error("Requeue operation is not enabled for this message type");await x.mutateAsync({id:W})}return Ye(()=>[e.value&&[e.value.ns,e.value.name],n.value],async()=>{e.value&&(r.currentPage=1,await g())},{deep:!0}),{messages:F,pagination:I,isLoading:p,isDeleting:b,isRequeuing:$,error:L,goToPage:w,setPageSize:O,refresh:S,deleteMessage:t.enableDelete?j:void 0,requeueMessage:t.enableRequeue?X:void 0,hasNextPage:h,isFetchingNextPage:m,totalMessages:A,allMessages:C}}function ER(e,t=20){return aa(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>mR(n,i,{page:r,pageSize:o}),queryKeyPrefix:"acknowledged-messages",enableDelete:!0,enableRequeue:!0},t)}const wR=e=>Je({url:"/api/v1/config",method:"GET",signal:e}),CR=()=>["api","v1","config"],AR=e=>{const{query:t}={};return{queryKey:CR(),queryFn:({signal:i})=>wR(i),...t}};function cv(e,t){const s=AR(),n=Jt(s);return n.queryKey=T(s).queryKey,n}const SR={key:0,class:"ack-loading-alert",role:"status","aria-live":"polite"},xR={key:1,class:"ack-error-alert",role:"alert","aria-live":"polite"},$R={class:"ack-alert-row"},TR={class:"ack-alert-text"},OR={class:"ack-alert-message"},NR={class:"ack-alert-actions"},kR={key:2,class:"ack-disabled-alert",role:"status","aria-live":"polite"},PR=Ue({__name:"AcknowledgedMessagesView",setup(e){const t=It(),s=Dn(),n=Xt(),i=ms(),r=v(()=>i.params.ns),o=v(()=>i.params.queue),l=v(()=>({ns:r.value,name:o.value}));Ye([r,o],([X,W])=>{X&&W&&t.selectQueue(X,W)},{immediate:!0});const u=v(()=>t.selectedQueue),{messages:d,pagination:c,isLoading:h,isDeleting:p,error:m,goToPage:g,setPageSize:E,refresh:_,deleteMessage:x}=ER(l,20),C=v(()=>u.value?`Acknowledged Messages - ${`${u.value.name}@${u.value.ns}`}`:"Acknowledged Messages"),A=v(()=>{if(u.value)return s.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});At(()=>{n.setPageHeader({title:C.value,subtitle:A.value,icon:"bi bi-check-circle"})}),At(()=>{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([])});const{data:b,isLoading:$,error:L,refetch:F}=cv(),I=v(()=>{const X=b.value?.data?.messages?.store?.acknowledged?.store;return typeof X=="boolean"?X:null}),w=v(()=>ct(L.value));async function O(X){x&&await x(X)}function S(X){g(X)}async function j(X){await E(X)}return(X,W)=>(N(),at(ps,{"show-section-header":!1},{default:qe(()=>[T($)?(N(),P("div",SR,[...W[5]||(W[5]=[a("div",{class:"ack-alert-row"},[a("i",{class:"bi bi-arrow-repeat ack-alert-icon","aria-hidden":"true"}),a("div",{class:"ack-alert-text"},[a("strong",null,"Loading configuration…"),a("p",{class:"ack-alert-message"}," Checking server settings for acknowledged messages storage. ")]),a("div",{class:"ack-alert-actions"},[a("span",{class:"spinner-border spinner-border-sm","aria-hidden":"true"})])],-1)])])):T(L)?(N(),P("div",xR,[a("div",$R,[W[8]||(W[8]=a("i",{class:"bi bi-exclamation-triangle-fill ack-alert-icon","aria-hidden":"true"},null,-1)),a("div",TR,[W[6]||(W[6]=a("strong",null,"Could not load server configuration",-1)),a("p",OR,q(w.value),1)]),a("div",NR,[a("button",{class:"btn btn-sm btn-outline-primary",type:"button",onClick:W[0]||(W[0]=fe=>T(F)())},[...W[7]||(W[7]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),ee(" Retry ",-1)])])])])])):I.value===!1?(N(),P("div",kR,[...W[9]||(W[9]=[a("div",{class:"ack-alert-row"},[a("i",{class:"bi bi-info-circle-fill ack-alert-icon","aria-hidden":"true"}),a("div",{class:"ack-alert-text"},[a("strong",null,"Acknowledged messages storage is disabled"),a("p",{class:"ack-alert-message"}," The server configuration indicates that acknowledged messages are not being stored. This view may be empty or missing data until storage is enabled on the server. ")])],-1)])])):he("",!0),u.value?(N(),at(ra,{key:3,messages:T(d),"is-loading":T(h),error:T(m),pagination:T(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":T(p),"is-requeuing":!1,onRefresh:T(_),onDeleteMessage:O,onPageChange:S,onPageSizeChange:j,onFirstPage:W[1]||(W[1]=fe=>S(1)),onPreviousPage:W[2]||(W[2]=fe=>S(T(c).currentPage-1)),onNextPage:W[3]||(W[3]=fe=>S(T(c).currentPage+1)),onLastPage:W[4]||(W[4]=fe=>S(T(c).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","onRefresh"])):he("",!0)]),_:1}))}}),DR=Xe(PR,[["__scopeId","data-v-e4e2acbd"]]),RR=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/dead-lettered-messages`,method:"GET",params:T(s),signal:n}));function MR(e,t=20){return aa(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>RR(n,i,{page:r,pageSize:o}),queryKeyPrefix:"dead-lettered-messages",enableDelete:!0,enableRequeue:!0},t)}const IR={key:0,class:"dl-loading-alert",role:"status","aria-live":"polite"},qR={key:1,class:"dl-error-alert",role:"alert","aria-live":"polite"},LR={class:"dl-alert-row"},FR={class:"dl-alert-text"},VR={class:"dl-alert-message"},QR={class:"dl-alert-actions"},jR={key:2,class:"dl-disabled-alert",role:"status","aria-live":"polite"},BR=Ue({__name:"DeadLetteredMessagesView",setup(e){const t=It(),s=Dn(),n=Xt(),i=ms(),r=v(()=>i.params.ns),o=v(()=>i.params.queue),l=v(()=>({ns:r.value,name:o.value}));Ye([r,o],([ne,Q])=>{ne&&Q&&t.selectQueue(ne,Q)},{immediate:!0});const u=v(()=>t.selectedQueue),{messages:d,pagination:c,isLoading:h,isDeleting:p,isRequeuing:m,error:g,goToPage:E,setPageSize:_,refresh:x,deleteMessage:C,requeueMessage:A}=MR(l,20),b=v(()=>u.value?`Dead-Lettered Messages - ${`${u.value.name}@${u.value.ns}`}`:"Dead-Lettered Messages"),$=v(()=>{if(u.value)return s.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});At(()=>{n.setPageHeader({title:b.value,subtitle:$.value,icon:"bi bi-x-circle"})}),At(()=>{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([])});const{data:L,isLoading:F,error:I,refetch:w}=cv(),O=v(()=>{const ne=L.value?.data?.messages?.store?.deadLettered?.store;return typeof ne=="boolean"?ne:null}),S=v(()=>ct(I));async function j(ne){C&&await C(ne)}async function X(ne){A&&await A(ne)}function W(ne){E(ne)}async function fe(ne){await _(ne)}return(ne,Q)=>(N(),at(ps,{"show-section-header":!1},{default:qe(()=>[T(F)?(N(),P("div",IR,[...Q[5]||(Q[5]=[a("div",{class:"dl-alert-row"},[a("i",{class:"bi bi-arrow-repeat dl-alert-icon","aria-hidden":"true"}),a("div",{class:"dl-alert-text"},[a("strong",null,"Loading configuration…"),a("p",{class:"dl-alert-message"}," Checking server settings for dead-lettered messages storage. ")]),a("div",{class:"dl-alert-actions"},[a("span",{class:"spinner-border spinner-border-sm","aria-hidden":"true"})])],-1)])])):T(I)?(N(),P("div",qR,[a("div",LR,[Q[8]||(Q[8]=a("i",{class:"bi bi-exclamation-triangle-fill dl-alert-icon","aria-hidden":"true"},null,-1)),a("div",FR,[Q[6]||(Q[6]=a("strong",null,"Could not load server configuration",-1)),a("p",VR,q(S.value),1)]),a("div",QR,[a("button",{class:"btn btn-sm btn-outline-primary",type:"button",onClick:Q[0]||(Q[0]=Z=>T(w)())},[...Q[7]||(Q[7]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),ee(" Retry ",-1)])])])])])):O.value===!1?(N(),P("div",jR,[...Q[9]||(Q[9]=[a("div",{class:"dl-alert-row"},[a("i",{class:"bi bi-info-circle-fill dl-alert-icon","aria-hidden":"true"}),a("div",{class:"dl-alert-text"},[a("strong",null,"Dead-lettered messages storage is disabled"),a("p",{class:"dl-alert-message"}," The server configuration indicates that dead-lettered messages are not being stored. This view may be empty or missing data until storage is enabled on the server. ")])],-1)])])):he("",!0),u.value?(N(),at(ra,{key:3,messages:T(d),"is-loading":T(h),error:T(g),pagination:T(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":T(p),"is-requeuing":T(m),onRefresh:T(x),onDeleteMessage:j,onRequeueMessage:X,onPageChange:W,onPageSizeChange:fe,onFirstPage:Q[1]||(Q[1]=Z=>W(1)),onPreviousPage:Q[2]||(Q[2]=Z=>W(T(c).currentPage-1)),onNextPage:Q[3]||(Q[3]=Z=>W(T(c).currentPage+1)),onLastPage:Q[4]||(Q[4]=Z=>W(T(c).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","is-requeuing","onRefresh"])):he("",!0)]),_:1}))}}),UR=Xe(BR,[["__scopeId","data-v-76f66201"]]),KR=e=>Je({url:"/api/v1/namespaces",method:"GET",signal:e}),HR=()=>["api","v1","namespaces"],GR=e=>{const{query:t}={};return{queryKey:HR(),queryFn:({signal:i})=>KR(i),...t}};function WR(e,t){const s=GR(),n=Jt(s);return n.queryKey=T(s).queryKey,n}const zR=e=>(e=T(e),Je({url:`/api/v1/namespaces/${e}`,method:"DELETE"})),YR=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 zR(r)},...s}},ZR=(e,t)=>{const s=YR(e);return Nt(s)},JR=(e,t)=>(e=T(e),Je({url:`/api/v1/namespaces/${e}/queues`,method:"GET",signal:t})),XR=e=>["api","v1","namespaces",e,"queues"],eM=(e,t)=>{const{query:s}=t??{};return{queryKey:XR(e),queryFn:({signal:r})=>JR(e,r),enabled:v(()=>!!T(e)),...s}};function tM(e,t,s){const n=eM(e,t),i=Jt(n);return i.queryKey=T(n).queryKey,i}const sM=(e,t)=>(e=T(e),Je({url:`/api/v1/namespaces/${e}/exchanges`,method:"GET",signal:t})),Er=e=>["api","v1","namespaces",e,"exchanges"],nM=(e,t)=>{const{query:s}=t??{};return{queryKey:Er(e),queryFn:({signal:r})=>sM(e,r),enabled:v(()=>!!T(e)),...s}};function iM(e,t,s){const n=nM(e,t),i=Jt(n);return i.queryKey=T(n).queryKey,i}function dv(){const e=zo(),t=v(()=>e.selectedNamespace),s=WR(),n=tM(v(()=>t.value||""),{query:{enabled:v(()=>!!t.value)}}),i=ZR({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),E=v(()=>r.value?.data.length?[...r.value.data].sort((w,O)=>w.localeCompare(O)):[]),_=v(()=>o.value?.data.length?[...o.value.data].sort((w,O)=>w.name.localeCompare(O.name)):[]),x=v(()=>!!r.value?.data&&r.value.data.length>0),C=v(()=>!!o.value?.data&&o.value.data.length>0),A=v(()=>w=>r.value?.data?r.value.data.includes(w):!1);async function b(){await s.refetch()}async function $(w){if(w||t.value){const S=t.value;w&&w!==t.value&&e.selectNamespace(w);try{await n.refetch()}finally{w&&w!==S&&(S?e.selectNamespace(S):e.clearSelectedNamespace())}}}async function L(w){await i.mutateAsync({ns:w})}function F(w){const O=w||t.value;if(!O)return Promise.resolve([]);const S=[s.refetch()];return O===t.value&&S.push(n.refetch()),Promise.all(S)}function I(w){return!!w&&w.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:E,sortedNamespaceQueues:_,hasNamespaces:x,hasNamespaceQueues:C,namespaceExists:A,refreshNamespaces:b,refreshNamespaceQueues:$,deleteNamespace:L,refetchNamespaceData:F,isValidNamespace:I}}function rM(e){const t=eO({mutation:{onSuccess:async()=>{await e()}}}),s=v(()=>t.isPending.value),n=v(()=>t.error.value?.error);return{createQueue:t.mutateAsync,isCreatingQueue:s,createQueueError:n,createQueueMutation:t}}function fv(e){const t=rO({mutation:{onSuccess:async()=>{await e()}}}),s=v(()=>t.isPending.value),n=v(()=>t.error.value?.error);return{deleteQueue:t.mutateAsync,isDeletingQueue:s,deleteQueueError:n,deleteQueueMutation:t}}/**
|
|
36
|
+
* vee-validate v4.15.1
|
|
37
|
+
* (c) 2025 Abdelrahman Awad
|
|
38
|
+
* @license MIT
|
|
39
|
+
*/function Rt(e){return typeof e=="function"}function hv(e){return e==null}const di=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Nc(e){return Number(e)>=0}function aM(e){const t=parseFloat(e);return isNaN(t)?e:t}function oM(e){return typeof e=="object"&&e!==null}function lM(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function bh(e){if(!oM(e)||lM(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 Hr(e,t){return Object.keys(t).forEach(s=>{if(bh(t[s])&&bh(e[s])){e[s]||(e[s]={}),Hr(e[s],t[s]);return}e[s]=t[s]}),e}function wr(e){const t=e.split(".");if(!t.length)return"";let s=String(t[0]);for(let n=1;n<t.length;n++){if(Nc(t[n])){s+=`[${t[n]}]`;continue}s+=`.${t[n]}`}return s}const uM={};function cM(e){return uM[e]}function yh(e,t,s){typeof s.value=="object"&&(s.value=ot(s.value)),!s.enumerable||s.get||s.set||!s.configurable||!s.writable||t==="__proto__"?Object.defineProperty(e,t,s):e[t]=s.value}function ot(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(ot(o))})):r==="[object Map]"?(i=new Map,e.forEach(function(o,l){i.set(ot(l),ot(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(ot(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++)yh(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]||yh(i,s,Object.getOwnPropertyDescriptor(e,s))}return i||e}const Yo=Symbol("vee-validate-form"),dM=Symbol("vee-validate-form-context"),fM=Symbol("vee-validate-field-instance"),uo=Symbol("Default empty value"),hM=typeof window<"u";function $u(e){return Rt(e)&&!!e.__locatorRef}function ks(e){return!!e&&Rt(e.parse)&&e.__type==="VVTypedSchema"}function co(e){return!!e&&Rt(e.validate)}function oa(e){return e==="checkbox"||e==="radio"}function mM(e){return di(e)||Array.isArray(e)}function pM(e){return Array.isArray(e)?e.length===0:di(e)&&Object.keys(e).length===0}function la(e){return/^\[.+\]$/i.test(e)}function gM(e){return mv(e)&&e.multiple}function mv(e){return e.tagName==="SELECT"}function vM(e,t){const s=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e==="select"&&"multiple"in t&&s}function bM(e,t){return!vM(e,t)&&t.type!=="file"&&!oa(t.type)}function pv(e){return kc(e)&&e.target&&"submit"in e.target}function kc(e){return e?!!(typeof Event<"u"&&Rt(Event)&&e instanceof Event||e&&e.srcElement):!1}function _h(e,t){return t in e&&e[t]!==uo}function Zt(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(!Zt(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(!Zt(n[1],t.get(n[0])))return!1;return!0}if(wh(e)&&wh(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(e=Eh(e),t=Eh(t),i=Object.keys(e),s=i.length,s!==Object.keys(t).length)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(!Zt(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function Eh(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function wh(e){return hM?e instanceof File:!1}function Zo(e){return la(e)?e.replace(/\[|\]/gi,""):e}function ns(e,t,s){return e?la(t)?e[Zo(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i,r)=>mM(i)&&r in i?i[r]:s,e):s}function Xs(e,t,s){if(la(t)){e[Zo(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)||hv(i[n[r]]))&&(i[n[r]]=Nc(n[r+1])?[]:{}),i=i[n[r]]}}function Ml(e,t){if(Array.isArray(e)&&Nc(t)){e.splice(Number(t),1);return}di(e)&&delete e[t]}function Ch(e,t){if(la(t)){delete e[Zo(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){Ml(n,s[r]);break}if(!(s[r]in n)||hv(n[s[r]]))break;n=n[s[r]]}const i=s.map((r,o)=>ns(e,s.slice(0,o).join(".")));for(let r=i.length-1;r>=0;r--)if(pM(i[r])){if(r===0){Ml(e,s[0]);continue}Ml(i[r-1],s[r-1])}}function ls(e){return Object.keys(e)}function gv(e,t=void 0){const s=hi();return s?.provides[e]||Yt(e,t)}function Ah(e,t,s){if(Array.isArray(e)){const n=[...e],i=n.findIndex(r=>Zt(r,t));return i>=0?n.splice(i,1):n.push(t),n}return Zt(e,t)?s:t}function Sh(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 yM(e,t){return di(t)&&t.number?aM(e):e}function Tu(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 Ou(e){return Array.isArray(e)?e:e?[e]:[]}function ka(e,t){const s={};for(const n in e)t.includes(n)||(s[n]=e[n]);return s}function _M(e){let t=null,s=[];return function(...n){const i=kt(()=>{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 Pc(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 Il(e){if(vv(e))return e._value}function vv(e){return"_value"in e}function EM(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function fo(e){if(!kc(e))return e;const t=e.target;if(oa(t.type)&&vv(t))return Il(t);if(t.type==="file"&&t.files){const s=Array.from(t.files);return t.multiple?s:s[0]}if(gM(t))return Array.from(t.options).filter(s=>s.selected&&!s.disabled).map(Il);if(mv(t)){const s=Array.from(t.options).find(n=>n.selected);return s?Il(s):t.value}return EM(t)}function bv(e){const t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?di(e)&&e._$$isNormalized?e:di(e)?Object.keys(e).reduce((s,n)=>{const i=wM(e[n]);return e[n]!==!1&&(s[n]=xh(i)),s},t):typeof e!="string"?t:e.split("|").reduce((s,n)=>{const i=CM(n);return i.name&&(s[i.name]=xh(i.params)),s},t):t}function wM(e){return e===!0?[]:Array.isArray(e)||di(e)?e:[e]}function xh(e){const t=s=>typeof s=="string"&&s[0]==="@"?AM(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 CM=e=>{let t=[];const s=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:s,params:t}};function AM(e){const t=s=>{var n;return(n=ns(s,e))!==null&&n!==void 0?n:s[e]};return t.__locatorRef=e,t}function SM(e){return Array.isArray(e)?e.filter($u):ls(e).filter(t=>$u(e[t])).map(t=>e[t])}const xM={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let $M=Object.assign({},xM);const Zn=()=>$M;async function yv(e,t,s={}){const n=s?.bails,i={name:s?.name||"{field}",rules:t,label:s?.label,bails:n??!0,formData:s?.values||{}},r=await TM(i,e);return Object.assign(Object.assign({},r),{valid:!r.errors.length})}async function TM(e,t){const s=e.rules;if(ks(s)||co(s))return NM(t,Object.assign(Object.assign({},e),{rules:s}));if(Rt(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 E=typeof m=="string"?m:Ev(l);c.push(E)}if(e.bails)return{errors:c}}}return{errors:c}}const n=Object.assign(Object.assign({},e),{rules:bv(s)}),i=[],r=Object.keys(n.rules),o=r.length;for(let l=0;l<o;l++){const u=r[l],d=await kM(n,t,{name:u,params:n.rules[u]});if(d.error&&(i.push(d.error),e.bails))return{errors:i}}return{errors:i}}function OM(e){return!!e&&e.name==="ValidationError"}function _v(e){return{__type:"VVTypedSchema",async parse(s,n){var i;try{return{output:await e.validate(s,{abortEarly:!1,context:n?.formData||{}}),errors:[]}}catch(r){if(!OM(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 NM(e,t){const n=await(ks(t.rules)?t.rules:_v(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 kM(e,t,s){const n=cM(s.name);if(!n)throw new Error(`No such validator '${s.name}' exists.`);const i=PM(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:Ev(r)}}function Ev(e){const t=Zn().generateMessage;return t?t(e):"Field is invalid"}function PM(e,t){const s=n=>$u(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 DM(e,t){const n=await(ks(e)?e:_v(e)).parse(ot(t),{formData:ot(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 RM(e,t,s){const i=ls(e).map(async d=>{var c,h,p;const m=(c=s?.names)===null||c===void 0?void 0:c[d],g=await yv(ns(t,d),e[d],{name:m?.name||d,label:m?.label,values:t,bails:(p=(h=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 $h=0;function MM(e,t){const{value:s,initialValue:n,setInitialValue:i}=IM(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}=FM(),h=$h>=Number.MAX_SAFE_INTEGER?0:++$h,p=LM(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(T(e),u.errors)),"touched"in u&&((c=t.form)===null||c===void 0||c.setFieldTouched(T(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 IM(e,t,s){const n=ye(T(t));function i(){return s?ns(s.initialValues.value,T(e),T(n)):T(n)}function r(d){if(!s){n.value=d;return}s.setFieldInitialValue(T(e),d,!0)}const o=v(i);if(!s)return{value:ye(i()),initialValue:o,setInitialValue:r};const l=qM(t,s,o,e);return s.stageInitialValue(T(e),l,!0),{value:v({get(){return ns(s.values,T(e))},set(d){s.setFieldValue(T(e),d,!1)}}),initialValue:o,setInitialValue:r}}function qM(e,t,s,n){return ht(e)?T(e):e!==void 0?e:ns(t.values,T(n),T(s))}function LM(e,t,s,n){const i=v(()=>{var o,l,u;return(u=(l=(o=Fe(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=As({touched:!1,pending:!1,valid:!0,required:i,validated:!!T(s).length,initialValue:v(()=>T(t)),dirty:v(()=>!Zt(T(e),T(t)))});return Ye(s,o=>{r.valid=!o.length},{immediate:!0,flush:"sync"}),r}function FM(){const e=ye([]);return{errors:e,setErrors:t=>{e.value=Ou(t)}}}function VM(e,t,s){return oa(s?.type)?jM(e,t,s):wv(e,t,s)}function wv(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}=QM(s),E=h?gv(Yo):void 0,_=g||E,x=v(()=>wr(Fe(e))),C=v(()=>{if(Fe(_?.schema))return;const V=T(t);return co(V)||ks(V)||Rt(V)||Array.isArray(V)?V:bv(V)}),A=!Rt(C.value)&&ks(Fe(t)),{id:b,value:$,initialValue:L,meta:F,setState:I,errors:w,flags:O}=MM(x,{modelValue:n,form:_,bails:r,label:u,type:o,validate:C.value?ne:void 0,schema:A?t:void 0}),S=v(()=>w.value[0]);m&&BM({value:$,prop:m,handleChange:Q,shouldValidate:()=>d&&!O.pendingReset});const j=(ve,V=!1)=>{F.touched=!0,V&&W()};async function X(ve){var V,H;if(_?.validateSchema){const{results:le}=await _.validateSchema(ve);return(V=le[Fe(x)])!==null&&V!==void 0?V:{valid:!0,errors:[]}}return C.value?yv($.value,C.value,{name:Fe(x),label:Fe(u),values:(H=_?.values)!==null&&H!==void 0?H:{},bails:r}):{valid:!0,errors:[]}}const W=Tu(async()=>(F.pending=!0,F.validated=!0,X("validated-only")),ve=>(O.pendingUnmount[Ie.id]||(I({errors:ve.errors}),F.pending=!1,F.valid=ve.valid),ve)),fe=Tu(async()=>X("silent"),ve=>(F.valid=ve.valid,ve));function ne(ve){return ve?.mode==="silent"?fe():W()}function Q(ve,V=!0){const H=fo(ve);se(H,V)}Bt(()=>{if(i)return W();(!_||!_.validateSchema)&&fe()});function Z(ve){F.touched=ve}function Y(ve){var V;const H=ve&&"value"in ve?ve.value:L.value;I({value:ot(H),initialValue:ot(H),touched:(V=ve?.touched)!==null&&V!==void 0?V:!1,errors:ve?.errors||[]}),F.pending=!1,F.validated=!1,fe()}const G=hi();function se(ve,V=!0){$.value=G&&m?yM(ve,G.props.modelModifiers):ve,(V?W:fe)()}function ue(ve){I({errors:Array.isArray(ve)?ve:[ve]})}const Re=v({get(){return $.value},set(ve){se(ve,d)}}),Ie={id:b,name:x,label:u,value:Re,meta:F,errors:w,errorMessage:S,type:o,checkedValue:l,uncheckedValue:c,bails:r,keepValueOnUnmount:p,resetField:Y,handleReset:()=>Y(),validate:ne,handleChange:Q,handleBlur:j,setState:I,setTouched:Z,setErrors:ue,setValue:se};if(si(fM,Ie),ht(t)&&typeof T(t)!="function"&&Ye(t,(ve,V)=>{Zt(ve,V)||(F.validated?W():fe())},{deep:!0}),!_)return Ie;const tt=v(()=>{const ve=C.value;return!ve||Rt(ve)||co(ve)||ks(ve)||Array.isArray(ve)?{}:Object.keys(ve).reduce((V,H)=>{const le=SM(ve[H]).map(Ee=>Ee.__locatorRef).reduce((Ee,J)=>{const k=ns(_.values,J)||_.values[J];return k!==void 0&&(Ee[J]=k),Ee},{});return Object.assign(V,le),V},{})});return Ye(tt,(ve,V)=>{if(!Object.keys(ve).length)return;!Zt(ve,V)&&(F.validated?W():fe())}),Ji(()=>{var ve;const V=(ve=Fe(Ie.keepValueOnUnmount))!==null&&ve!==void 0?ve:Fe(_.keepValuesOnUnmount),H=Fe(x);if(V||!_||O.pendingUnmount[Ie.id]){_?.removePathState(H,b);return}O.pendingUnmount[Ie.id]=!0;const le=_.getPathState(H);if(Array.isArray(le?.id)&&le?.multiple?le?.id.includes(Ie.id):le?.id===Ie.id){if(le?.multiple&&Array.isArray(le.value)){const J=le.value.findIndex(k=>Zt(k,Fe(Ie.checkedValue)));if(J>-1){const k=[...le.value];k.splice(J,1),_.setFieldValue(H,k)}Array.isArray(le.id)&&le.id.splice(le.id.indexOf(Ie.id),1)}else _.unsetPathValue(Fe(x));_.removePathState(H,b)}}),Ie}function QM(e){const t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),s=!!e?.syncVModel,n=typeof e?.syncVModel=="string"?e.syncVModel:e?.modelPropName||"modelValue",i=s&&!("initialValue"in(e||{}))?Nu(hi(),n):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?.modelPropName||e?.syncVModel||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:i,controlled:o??!0,checkedValue:r,syncVModel:l})}function jM(e,t,s){const n=s?.standalone?void 0:gv(Yo),i=s?.checkedValue,r=s?.uncheckedValue;function o(l){const u=l.handleChange,d=v(()=>{const h=Fe(l.value),p=Fe(i);return Array.isArray(h)?h.findIndex(m=>Zt(m,p))>=0:Zt(p,h)});function c(h,p=!0){var m,g;if(d.value===((m=h?.target)===null||m===void 0?void 0:m.checked)){p&&l.validate();return}const E=Fe(e),_=n?.getPathState(E),x=fo(h);let C=(g=Fe(i))!==null&&g!==void 0?g:x;n&&_?.multiple&&_.type==="checkbox"?C=Ah(ns(n.values,E)||[],C,void 0):s?.type==="checkbox"&&(C=Ah(Fe(l.value),C,Fe(r))),u(C,p)}return Object.assign(Object.assign({},l),{checked:d,checkedValue:i,uncheckedValue:r,handleChange:c})}return o(wv(e,t,s))}function BM({prop:e,value:t,handleChange:s,shouldValidate:n}){const i=hi();if(!i||!e)return;const r=typeof e=="string"?e:"modelValue",o=`update:${r}`;r in i.props&&(Ye(t,l=>{Zt(l,Nu(i,r))||i.emit(o,l)}),Ye(()=>Nu(i,r),l=>{if(l===uo&&t.value===void 0)return;const u=l===uo?void 0:l;Zt(u,t.value)||s(u,n())}))}function Nu(e,t){if(e)return e.props[t]}const UM=Ue({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:()=>Zn().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:uo},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=Gn(e,"rules"),n=Gn(e,"name"),i=Gn(e,"label"),r=Gn(e,"uncheckedValue"),o=Gn(e,"keepValue"),{errors:l,value:u,errorMessage:d,validate:c,handleChange:h,handleBlur:p,setTouched:m,resetField:g,handleReset:E,meta:_,checked:x,setErrors:C,setValue:A}=VM(n,s,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:t.attrs.type,initialValue:HM(e,t),checkedValue:t.attrs.value,uncheckedValue:r,label:i,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:o,syncVModel:!0}),b=function(O,S=!0){h(O,S)},$=v(()=>{const{validateOnInput:w,validateOnChange:O,validateOnBlur:S,validateOnModelUpdate:j}=KM(e);function X(Q){p(Q,S),Rt(t.attrs.onBlur)&&t.attrs.onBlur(Q)}function W(Q){b(Q,w),Rt(t.attrs.onInput)&&t.attrs.onInput(Q)}function fe(Q){b(Q,O),Rt(t.attrs.onChange)&&t.attrs.onChange(Q)}const ne={name:e.name,onBlur:X,onInput:W,onChange:fe};return ne["onUpdate:modelValue"]=Q=>b(Q,j),ne}),L=v(()=>{const w=Object.assign({},$.value);oa(t.attrs.type)&&x&&(w.checked=x.value);const O=Th(e,t);return bM(O,t.attrs)&&(w.value=u.value),w}),F=v(()=>Object.assign(Object.assign({},$.value),{modelValue:u.value}));function I(){return{field:L.value,componentField:F.value,value:u.value,meta:_,errors:l.value,errorMessage:d.value,validate:c,resetField:g,handleChange:b,handleInput:w=>b(w,!1),handleReset:E,handleBlur:$.value.onBlur,setTouched:m,setErrors:C,setValue:A}}return t.expose({value:u,meta:_,errors:l,errorMessage:d,setErrors:C,setTouched:m,setValue:A,reset:g,validate:c,handleChange:h}),()=>{const w=Mo(Th(e,t)),O=Pc(w,t,I);return w?oi(w,Object.assign(Object.assign({},t.attrs),L.value),O):O}}});function Th(e,t){let s=e.as||"";return!e.as&&!t.slots.default&&(s="input"),s}function KM(e){var t,s,n,i;const{validateOnInput:r,validateOnChange:o,validateOnBlur:l,validateOnModelUpdate:u}=Zn();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 HM(e,t){return oa(t.attrs.type)?_h(e,"modelValue")?e.modelValue:void 0:_h(e,"modelValue")?e.modelValue:t.attrs.value}const Ns=UM;let GM=0;const Pa=["bails","fieldsCount","id","multiple","type","validate"];function Cv(e){const t=e?.initialValues||{},s=Object.assign({},Fe(t)),n=T(e?.validationSchema);return n&&ks(n)&&Rt(n.cast)?ot(n.cast(s)||{}):ot(s)}function Jo(e){var t;const s=GM++,n=e?.name||"Form";let i=0;const r=ye(!1),o=ye(!1),l=ye(0),u=[],d=As(Cv(e)),c=ye([]),h=ye({}),p=ye({}),m=_M(()=>{p.value=c.value.reduce((K,U)=>(K[wr(Fe(U.path))]=U,K),{})});function g(K,U){const ce=Q(K);if(!ce){typeof K=="string"&&(h.value[wr(K)]=Ou(U));return}if(typeof K=="string"){const Se=wr(K);h.value[Se]&&delete h.value[Se]}ce.errors=Ou(U),ce.valid=!ce.errors.length}function E(K){ls(K).forEach(U=>{g(U,K[U])})}e?.initialErrors&&E(e.initialErrors);const _=v(()=>{const K=c.value.reduce((U,ce)=>(ce.errors.length&&(U[Fe(ce.path)]=ce.errors),U),{});return Object.assign(Object.assign({},h.value),K)}),x=v(()=>ls(_.value).reduce((K,U)=>{const ce=_.value[U];return ce?.length&&(K[U]=ce[0]),K},{})),C=v(()=>c.value.reduce((K,U)=>(K[Fe(U.path)]={name:Fe(U.path)||"",label:U.label||""},K),{})),A=v(()=>c.value.reduce((K,U)=>{var ce;return K[Fe(U.path)]=(ce=U.bails)!==null&&ce!==void 0?ce:!0,K},{})),b=Object.assign({},e?.initialErrors||{}),$=(t=e?.keepValuesOnUnmount)!==null&&t!==void 0?t:!1,{initialValues:L,originalInitialValues:F,setInitialValues:I}=zM(c,d,e),w=WM(c,d,F,x),O=v(()=>c.value.reduce((K,U)=>{const ce=ns(d,Fe(U.path));return Xs(K,Fe(U.path),ce),K},{})),S=e?.validationSchema;function j(K,U){var ce,Se;const $e=v(()=>ns(L.value,Fe(K))),Le=p.value[Fe(K)],Pe=U?.type==="checkbox"||U?.type==="radio";if(Le&&Pe){Le.multiple=!0;const es=i++;return Array.isArray(Le.id)?Le.id.push(es):Le.id=[Le.id,es],Le.fieldsCount++,Le.__flags.pendingUnmount[es]=!1,Le}const dt=v(()=>ns(d,Fe(K))),mt=Fe(K),St=Y.findIndex(es=>es===mt);St!==-1&&Y.splice(St,1);const pt=v(()=>{var es,Rn,sr,nr;const ir=Fe(S);if(ks(ir))return(Rn=(es=ir.describe)===null||es===void 0?void 0:es.call(ir,Fe(K)).required)!==null&&Rn!==void 0?Rn:!1;const rr=Fe(U?.schema);return ks(rr)&&(nr=(sr=rr.describe)===null||sr===void 0?void 0:sr.call(rr).required)!==null&&nr!==void 0?nr:!1}),xt=i++,qt=As({id:xt,path:K,touched:!1,pending:!1,valid:!0,validated:!!(!((ce=b[mt])===null||ce===void 0)&&ce.length),required:pt,initialValue:$e,errors:zm([]),bails:(Se=U?.bails)!==null&&Se!==void 0?Se:!1,label:U?.label,type:U?.type||"default",value:dt,multiple:!1,__flags:{pendingUnmount:{[xt]:!1},pendingReset:!1},fieldsCount:1,validate:U?.validate,dirty:v(()=>!Zt(T(dt),T($e)))});return c.value.push(qt),p.value[mt]=qt,m(),x.value[mt]&&!b[mt]&&kt(()=>{z(mt,{mode:"silent"})}),ht(K)&&Ye(K,es=>{m();const Rn=ot(dt.value);p.value[es]=qt,kt(()=>{Xs(d,es,Rn)})}),qt}const X=Sh(Oe,5),W=Sh(Oe,5),fe=Tu(async K=>await(K==="silent"?X():W()),(K,[U])=>{const ce=ls(V.errorBag.value),$e=[...new Set([...ls(K.results),...c.value.map(Le=>Le.path),...ce])].sort().reduce((Le,Pe)=>{var dt;const mt=Pe,St=Q(mt)||Z(mt),pt=((dt=K.results[mt])===null||dt===void 0?void 0:dt.errors)||[],xt=Fe(St?.path)||mt,qt=YM({errors:pt,valid:!pt.length},Le.results[xt]);return Le.results[xt]=qt,qt.valid||(Le.errors[xt]=qt.errors[0]),St&&h.value[xt]&&delete h.value[xt],St?(St.valid=qt.valid,U==="silent"||U==="validated-only"&&!St.validated||g(St,qt.errors),Le):(g(xt,pt),Le)},{valid:K.valid,results:{},errors:{},source:K.source});return K.values&&($e.values=K.values,$e.source=K.source),ls($e.results).forEach(Le=>{var Pe;const dt=Q(Le);dt&&U!=="silent"&&(U==="validated-only"&&!dt.validated||g(dt,(Pe=$e.results[Le])===null||Pe===void 0?void 0:Pe.errors))}),$e});function ne(K){c.value.forEach(K)}function Q(K){const U=typeof K=="string"?wr(K):K;return typeof U=="string"?p.value[U]:U}function Z(K){return c.value.filter(ce=>K.startsWith(Fe(ce.path))).reduce((ce,Se)=>ce?Se.path.length>ce.path.length?Se:ce:Se,void 0)}let Y=[],G;function se(K){return Y.push(K),G||(G=kt(()=>{[...Y].sort().reverse().forEach(ce=>{Ch(d,ce)}),Y=[],G=null})),G}function ue(K){return function(ce,Se){return function(Le){return Le instanceof Event&&(Le.preventDefault(),Le.stopPropagation()),ne(Pe=>Pe.touched=!0),r.value=!0,l.value++,pe().then(Pe=>{const dt=ot(d);if(Pe.valid&&typeof ce=="function"){const mt=ot(O.value);let St=K?mt:dt;return Pe.values&&(St=Pe.source==="schema"?Pe.values:Object.assign({},St,Pe.values)),ce(St,{evt:Le,controlledValues:mt,setErrors:E,setFieldError:g,setTouched:re,setFieldTouched:k,setValues:Ee,setFieldValue:H,resetForm:me,resetField:oe})}!Pe.valid&&typeof Se=="function"&&Se({values:dt,evt:Le,errors:Pe.errors,results:Pe.results})}).then(Pe=>(r.value=!1,Pe),Pe=>{throw r.value=!1,Pe})}}}const Ie=ue(!1);Ie.withControlled=ue(!0);function tt(K,U){const ce=c.value.findIndex($e=>$e.path===K&&(Array.isArray($e.id)?$e.id.includes(U):$e.id===U)),Se=c.value[ce];if(!(ce===-1||!Se)){if(kt(()=>{z(K,{mode:"silent",warn:!1})}),Se.multiple&&Se.fieldsCount&&Se.fieldsCount--,Array.isArray(Se.id)){const $e=Se.id.indexOf(U);$e>=0&&Se.id.splice($e,1),delete Se.__flags.pendingUnmount[U]}(!Se.multiple||Se.fieldsCount<=0)&&(c.value.splice(ce,1),de(K),m(),delete p.value[K])}}function ve(K){ls(p.value).forEach(U=>{U.startsWith(K)&&delete p.value[U]}),c.value=c.value.filter(U=>!U.path.startsWith(K)),kt(()=>{m()})}const V={name:n,formId:s,values:d,controlledValues:O,errorBag:_,errors:x,schema:S,submitCount:l,meta:w,isSubmitting:r,isValidating:o,fieldArrays:u,keepValuesOnUnmount:$,validateSchema:T(S)?fe:void 0,validate:pe,setFieldError:g,validateField:z,setFieldValue:H,setValues:Ee,setErrors:E,setFieldTouched:k,setTouched:re,resetForm:me,resetField:oe,handleSubmit:Ie,useFieldModel:st,defineInputBinds:et,defineComponentBinds:_t,defineField:He,stageInitialValue:Me,unsetInitialValue:de,setFieldInitialValue:we,createPathState:j,getPathState:Q,unsetPathValue:se,removePathState:tt,initialValues:L,getAllPathStates:()=>c.value,destroyPath:ve,isFieldTouched:R,isFieldDirty:B,isFieldValid:ie};function H(K,U,ce=!0){const Se=ot(U),$e=typeof K=="string"?K:K.path;Q($e)||j($e),Xs(d,$e,Se),ce&&z($e)}function le(K,U=!0){ls(d).forEach(ce=>{delete d[ce]}),ls(K).forEach(ce=>{H(ce,K[ce],!1)}),U&&pe()}function Ee(K,U=!0){Hr(d,K),u.forEach(ce=>ce&&ce.reset()),U&&pe()}function J(K,U){const ce=Q(Fe(K))||j(K);return v({get(){return ce.value},set(Se){var $e;const Le=Fe(K);H(Le,Se,($e=Fe(U))!==null&&$e!==void 0?$e:!1)}})}function k(K,U){const ce=Q(K);ce&&(ce.touched=U)}function R(K){const U=Q(K);return U?U.touched:c.value.filter(ce=>ce.path.startsWith(K)).some(ce=>ce.touched)}function B(K){const U=Q(K);return U?U.dirty:c.value.filter(ce=>ce.path.startsWith(K)).some(ce=>ce.dirty)}function ie(K){const U=Q(K);return U?U.valid:c.value.filter(ce=>ce.path.startsWith(K)).every(ce=>ce.valid)}function re(K){if(typeof K=="boolean"){ne(U=>{U.touched=K});return}ls(K).forEach(U=>{k(U,!!K[U])})}function oe(K,U){var ce;const Se=U&&"value"in U?U.value:ns(L.value,K),$e=Q(K);$e&&($e.__flags.pendingReset=!0),we(K,ot(Se),!0),H(K,Se,!1),k(K,(ce=U?.touched)!==null&&ce!==void 0?ce:!1),g(K,U?.errors||[]),kt(()=>{$e&&($e.__flags.pendingReset=!1)})}function me(K,U){let ce=ot(K?.values?K.values:F.value);ce=U?.force?ce:Hr(F.value,ce),ce=ks(S)&&Rt(S.cast)?S.cast(ce):ce,I(ce,{force:U?.force}),ne(Se=>{var $e;Se.__flags.pendingReset=!0,Se.validated=!1,Se.touched=(($e=K?.touched)===null||$e===void 0?void 0:$e[Fe(Se.path)])||!1,H(Fe(Se.path),ns(ce,Fe(Se.path)),!1),g(Fe(Se.path),void 0)}),U?.force?le(ce,!1):Ee(ce,!1),E(K?.errors||{}),l.value=K?.submitCount||0,kt(()=>{pe({mode:"silent"}),ne(Se=>{Se.__flags.pendingReset=!1})})}async function pe(K){const U=K?.mode||"force";if(U==="force"&&ne(Pe=>Pe.validated=!0),V.validateSchema)return V.validateSchema(U);o.value=!0;const ce=await Promise.all(c.value.map(Pe=>Pe.validate?Pe.validate(K).then(dt=>({key:Fe(Pe.path),valid:dt.valid,errors:dt.errors,value:dt.value})):Promise.resolve({key:Fe(Pe.path),valid:!0,errors:[],value:void 0})));o.value=!1;const Se={},$e={},Le={};for(const Pe of ce)Se[Pe.key]={valid:Pe.valid,errors:Pe.errors},Pe.value&&Xs(Le,Pe.key,Pe.value),Pe.errors.length&&($e[Pe.key]=Pe.errors[0]);return{valid:ce.every(Pe=>Pe.valid),results:Se,errors:$e,values:Le,source:"fields"}}async function z(K,U){var ce;const Se=Q(K);if(Se&&U?.mode!=="silent"&&(Se.validated=!0),S){const{results:$e}=await fe(U?.mode||"validated-only");return $e[K]||{errors:[],valid:!0}}return Se?.validate?Se.validate(U):(!Se&&(ce=U?.warn),Promise.resolve({errors:[],valid:!0}))}function de(K){Ch(L.value,K)}function Me(K,U,ce=!1){we(K,U),Xs(d,K,U),ce&&!e?.initialValues&&Xs(F.value,K,ot(U))}function we(K,U,ce=!1){Xs(L.value,K,ot(U)),ce&&Xs(F.value,K,ot(U))}async function Oe(){const K=T(S);if(!K)return{valid:!0,results:{},errors:{},source:"none"};o.value=!0;const U=co(K)||ks(K)?await DM(K,d):await RM(K,d,{names:C.value,bailsMap:A.value});return o.value=!1,U}const Qe=Ie((K,{evt:U})=>{pv(U)&&U.target.submit()});Bt(()=>{if(e?.initialErrors&&E(e.initialErrors),e?.initialTouched&&re(e.initialTouched),e?.validateOnMount){pe();return}V.validateSchema&&V.validateSchema("silent")}),ht(S)&&Ye(S,()=>{var K;(K=V.validateSchema)===null||K===void 0||K.call(V,"validated-only")}),si(Yo,V);function He(K,U){const ce=Rt(U)?void 0:U?.label,Se=Q(Fe(K))||j(K,{label:ce}),$e=()=>Rt(U)?U(ka(Se,Pa)):U||{};function Le(){var pt;Se.touched=!0,((pt=$e().validateOnBlur)!==null&&pt!==void 0?pt:Zn().validateOnBlur)&&z(Fe(Se.path))}function Pe(){var pt;((pt=$e().validateOnInput)!==null&&pt!==void 0?pt:Zn().validateOnInput)&&kt(()=>{z(Fe(Se.path))})}function dt(){var pt;((pt=$e().validateOnChange)!==null&&pt!==void 0?pt:Zn().validateOnChange)&&kt(()=>{z(Fe(Se.path))})}const mt=v(()=>{const pt={onChange:dt,onInput:Pe,onBlur:Le};return Rt(U)?Object.assign(Object.assign({},pt),U(ka(Se,Pa)).props||{}):U?.props?Object.assign(Object.assign({},pt),U.props(ka(Se,Pa))):pt});return[J(K,()=>{var pt,xt,qt;return(qt=(pt=$e().validateOnModelUpdate)!==null&&pt!==void 0?pt:(xt=Zn())===null||xt===void 0?void 0:xt.validateOnModelUpdate)!==null&&qt!==void 0?qt:!0}),mt]}function st(K){return Array.isArray(K)?K.map(U=>J(U,!0)):J(K)}function et(K,U){const[ce,Se]=He(K,U);function $e(){Se.value.onBlur()}function Le(dt){const mt=fo(dt);H(Fe(K),mt,!1),Se.value.onInput()}function Pe(dt){const mt=fo(dt);H(Fe(K),mt,!1),Se.value.onChange()}return v(()=>Object.assign(Object.assign({},Se.value),{onBlur:$e,onInput:Le,onChange:Pe,value:ce.value}))}function _t(K,U){const[ce,Se]=He(K,U),$e=Q(Fe(K));function Le(Pe){ce.value=Pe}return v(()=>{const Pe=Rt(U)?U(ka($e,Pa)):U||{};return Object.assign({[Pe.model||"modelValue"]:ce.value,[`onUpdate:${Pe.model||"modelValue"}`]:Le},Se.value)})}const Ct=Object.assign(Object.assign({},V),{values:Vi(d),handleReset:()=>me(),submitForm:Qe});return si(dM,Ct),Ct}function WM(e,t,s,n){const i={touched:"some",pending:"some",valid:"every"},r=v(()=>!Zt(t,T(s)));function o(){const u=e.value;return ls(i).reduce((d,c)=>{const h=i[c];return d[c]=u[h](p=>p[c]),d},{})}const l=As(o());return At(()=>{const u=o();l.touched=u.touched,l.valid=u.valid,l.pending=u.pending}),v(()=>Object.assign(Object.assign({initialValues:T(s)},l),{valid:l.valid&&!ls(n.value).length,dirty:r.value}))}function zM(e,t,s){const n=Cv(s),i=ye(n),r=ye(ot(n));function o(l,u){u?.force?(i.value=ot(l),r.value=ot(l)):(i.value=Hr(ot(i.value)||{},ot(l)),r.value=Hr(ot(r.value)||{},ot(l))),u?.updateFields&&e.value.forEach(d=>{if(d.touched)return;const h=ns(i.value,Fe(d.path));Xs(t,Fe(d.path),ot(h))})}return{initialValues:i,originalInitialValues:r,setInitialValues:o}}function YM(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}const ZM=Ue({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=Gn(e,"validationSchema"),n=Gn(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:E,handleSubmit:_,setErrors:x,setFieldError:C,setFieldValue:A,setValues:b,setFieldTouched:$,setTouched:L,resetField:F}=Jo({validationSchema:s.value?s:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:n,name:e.name}),I=_((ne,{evt:Q})=>{pv(Q)&&Q.target.submit()},e.onInvalidSubmit),w=e.onSubmit?_(e.onSubmit,e.onInvalidSubmit):I;function O(ne){kc(ne)&&ne.preventDefault(),g(),typeof t.attrs.onReset=="function"&&t.attrs.onReset()}function S(ne,Q){return _(typeof ne=="function"&&!Q?ne:Q,e.onInvalidSubmit)(ne)}function j(){return ot(o)}function X(){return ot(l.value)}function W(){return ot(i.value)}function fe(){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:S,handleReset:g,submitForm:I,setErrors:x,setFieldError:C,setFieldValue:A,setValues:b,setFieldTouched:$,setTouched:L,resetForm:E,resetField:F,getValues:j,getMeta:X,getErrors:W}}return t.expose({setFieldError:C,setErrors:x,setFieldValue:A,setValues:b,setFieldTouched:$,setTouched:L,resetForm:E,validate:p,validateField:m,resetField:F,getValues:j,getMeta:X,getErrors:W,values:o,meta:l,errors:i}),function(){const Q=e.as==="form"?e.as:e.as?Mo(e.as):null,Z=Pc(Q,t,fe);return Q?oi(Q,Object.assign(Object.assign(Object.assign({},Q==="form"?{novalidate:!0}:{}),t.attrs),{onSubmit:w,onReset:O}),Z):Z}}}),Av=ZM,JM=Ue({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){const s=Yt(Yo,void 0),n=v(()=>s?.errors.value[e.name]);function i(){return{message:n.value}}return()=>{if(!n.value)return;const r=e.as?Mo(e.as):e.as,o=Pc(r,t,i),l=Object.assign({role:"alert"},t.attrs);return!r&&(Array.isArray(o)||!o)&&o?.length?o:(Array.isArray(o)||!o)&&!o?.length?oi(r||"span",l,n.value):oi(r,l,o)}}}),Jn=JM;var rt;(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})(rt||(rt={}));var Oh;(function(e){e.mergeShapes=(t,s)=>({...t,...s})})(Oh||(Oh={}));const Ne=rt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),En=e=>{switch(typeof e){case"undefined":return Ne.undefined;case"string":return Ne.string;case"number":return Number.isNaN(e)?Ne.nan:Ne.number;case"boolean":return Ne.boolean;case"function":return Ne.function;case"bigint":return Ne.bigint;case"symbol":return Ne.symbol;case"object":return Array.isArray(e)?Ne.array:e===null?Ne.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ne.promise:typeof Map<"u"&&e instanceof Map?Ne.map:typeof Set<"u"&&e instanceof Set?Ne.set:typeof Date<"u"&&e instanceof Date?Ne.date:Ne.object;default:return Ne.unknown}},ge=rt.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 cn 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 cn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,rt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=s=>s.message){const s={},n=[];for(const i of this.issues)if(i.path.length>0){const r=i.path[0];s[r]=s[r]||[],s[r].push(t(i))}else n.push(t(i));return{formErrors:n,fieldErrors:s}}get formErrors(){return this.flatten()}}cn.create=e=>new cn(e);const ku=(e,t)=>{let s;switch(e.code){case ge.invalid_type:e.received===Ne.undefined?s="Required":s=`Expected ${e.expected}, received ${e.received}`;break;case ge.invalid_literal:s=`Invalid literal value, expected ${JSON.stringify(e.expected,rt.jsonStringifyReplacer)}`;break;case ge.unrecognized_keys:s=`Unrecognized key(s) in object: ${rt.joinValues(e.keys,", ")}`;break;case ge.invalid_union:s="Invalid input";break;case ge.invalid_union_discriminator:s=`Invalid discriminator value. Expected ${rt.joinValues(e.options)}`;break;case ge.invalid_enum_value:s=`Invalid enum value. Expected ${rt.joinValues(e.options)}, received '${e.received}'`;break;case ge.invalid_arguments:s="Invalid function arguments";break;case ge.invalid_return_type:s="Invalid function return type";break;case ge.invalid_date:s="Invalid date";break;case ge.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}"`:rt.assertNever(e.validation):e.validation!=="regex"?s=`Invalid ${e.validation}`:s="Invalid";break;case ge.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==="bigint"?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 ge.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 ge.custom:s="Invalid input";break;case ge.invalid_intersection_types:s="Intersection results could not be merged";break;case ge.not_multiple_of:s=`Number must be a multiple of ${e.multipleOf}`;break;case ge.not_finite:s="Number must be finite";break;default:s=t.defaultError,rt.assertNever(e)}return{message:s}};let XM=ku;function eI(){return XM}const tI=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 xe(e,t){const s=eI(),n=tI({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,s,s===ku?void 0:ku].filter(i=>!!i)});e.common.issues.push(n)}class hs{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 Ke;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 hs.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 Ke;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 Ke=Object.freeze({status:"aborted"}),Cr=e=>({status:"dirty",value:e}),xs=e=>({status:"valid",value:e}),Nh=e=>e.status==="aborted",kh=e=>e.status==="dirty",Hi=e=>e.status==="valid",ho=e=>typeof Promise<"u"&&e instanceof Promise;var ke;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ke||(ke={}));class On{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 Ph=(e,t)=>{if(Hi(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 cn(e.common.issues);return this._error=s,this._error}}};function Ze(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 it{get description(){return this._def.description}_getType(t){return En(t.data)}_getOrReturnCtx(t,s){return s||{common:t.parent.common,data:t.data,parsedType:En(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new hs,ctx:{common:t.parent.common,data:t.data,parsedType:En(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const s=this._parse(t);if(ho(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?.async??!1,contextualErrorMap:s?.errorMap},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:En(t)},i=this._parseSync({data:t,path:n.path,parent:n});return Ph(n,i)}"~validate"(t){const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:En(t)};if(!this["~standard"].async)try{const n=this._parseSync({data:t,path:[],parent:s});return Hi(n)?{value:n.value}:{issues:s.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:s}).then(n=>Hi(n)?{value:n.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?.errorMap,async:!0},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:En(t)},i=this._parse({data:t,path:n.path,parent:n}),r=await(ho(i)?i:Promise.resolve(i));return Ph(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:ge.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 zi({schema:this,typeName:Be.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 xn.create(this,this._def)}nullable(){return Yi.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Us.create(this)}promise(){return vo.create(this,this._def)}or(t){return po.create([this,t],this._def)}and(t){return go.create(this,t,this._def)}transform(t){return new zi({...Ze(this._def),schema:this,typeName:Be.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const s=typeof t=="function"?t:()=>t;return new bo({...Ze(this._def),innerType:this,defaultValue:s,typeName:Be.ZodDefault})}brand(){return new AI({typeName:Be.ZodBranded,type:this,...Ze(this._def)})}catch(t){const s=typeof t=="function"?t:()=>t;return new Ru({...Ze(this._def),innerType:this,catchValue:s,typeName:Be.ZodCatch})}describe(t){const s=this.constructor;return new s({...this._def,description:t})}pipe(t){return Dc.create(this,t)}readonly(){return Mu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sI=/^c[^\s-]{8,}$/i,nI=/^[0-9a-z]+$/,iI=/^[0-9A-HJKMNP-TV-Z]{26}$/i,rI=/^[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,aI=/^[a-z0-9_-]{21}$/i,oI=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,lI=/^[-+]?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)?)??$/,uI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ql;const dI=/^(?:(?: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])$/,fI=/^(?:(?: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])$/,hI=/^(([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]))$/,mI=/^(([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])$/,pI=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gI=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Sv="((\\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])))",vI=new RegExp(`^${Sv}$`);function xv(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 bI(e){return new RegExp(`^${xv(e)}$`)}function yI(e){let t=`${Sv}T${xv(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 _I(e,t){return!!((t==="v4"||!t)&&dI.test(e)||(t==="v6"||!t)&&hI.test(e))}function EI(e,t){if(!oI.test(e))return!1;try{const[s]=e.split(".");if(!s)return!1;const 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?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function wI(e,t){return!!((t==="v4"||!t)&&fI.test(e)||(t==="v6"||!t)&&mI.test(e))}class wn extends it{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ne.string){const r=this._getOrReturnCtx(t);return xe(r,{code:ge.invalid_type,expected:Ne.string,received:r.parsedType}),Ke}const n=new hs;let i;for(const r of this._def.checks)if(r.kind==="min")t.data.length<r.value&&(i=this._getOrReturnCtx(t,i),xe(i,{code:ge.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),xe(i,{code:ge.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?xe(i,{code:ge.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):l&&xe(i,{code:ge.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),n.dirty())}else if(r.kind==="email")uI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"email",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="emoji")ql||(ql=new RegExp(cI,"u")),ql.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"emoji",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="uuid")rI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"uuid",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="nanoid")aI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"nanoid",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="cuid")sI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"cuid",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="cuid2")nI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"cuid2",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="ulid")iI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"ulid",code:ge.invalid_string,message:r.message}),n.dirty());else if(r.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),xe(i,{validation:"url",code:ge.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),xe(i,{validation:"regex",code:ge.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),xe(i,{code:ge.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),xe(i,{code:ge.invalid_string,validation:{startsWith:r.value},message:r.message}),n.dirty()):r.kind==="endsWith"?t.data.endsWith(r.value)||(i=this._getOrReturnCtx(t,i),xe(i,{code:ge.invalid_string,validation:{endsWith:r.value},message:r.message}),n.dirty()):r.kind==="datetime"?yI(r).test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:ge.invalid_string,validation:"datetime",message:r.message}),n.dirty()):r.kind==="date"?vI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:ge.invalid_string,validation:"date",message:r.message}),n.dirty()):r.kind==="time"?bI(r).test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:ge.invalid_string,validation:"time",message:r.message}),n.dirty()):r.kind==="duration"?lI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"duration",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="ip"?_I(t.data,r.version)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"ip",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="jwt"?EI(t.data,r.alg)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"jwt",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="cidr"?wI(t.data,r.version)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"cidr",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="base64"?pI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"base64",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="base64url"?gI.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"base64url",code:ge.invalid_string,message:r.message}),n.dirty()):rt.assertNever(r);return{status:n.value,value:t.data}}_regex(t,s,n){return this.refinement(i=>t.test(i),{validation:s,code:ge.invalid_string,...ke.errToObj(n)})}_addCheck(t){return new wn({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ke.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ke.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ke.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ke.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ke.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ke.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ke.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ke.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ke.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ke.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ke.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ke.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ke.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?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...ke.errToObj(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?.precision>"u"?null:t?.precision,...ke.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ke.errToObj(t)})}regex(t,s){return this._addCheck({kind:"regex",regex:t,...ke.errToObj(s)})}includes(t,s){return this._addCheck({kind:"includes",value:t,position:s?.position,...ke.errToObj(s?.message)})}startsWith(t,s){return this._addCheck({kind:"startsWith",value:t,...ke.errToObj(s)})}endsWith(t,s){return this._addCheck({kind:"endsWith",value:t,...ke.errToObj(s)})}min(t,s){return this._addCheck({kind:"min",value:t,...ke.errToObj(s)})}max(t,s){return this._addCheck({kind:"max",value:t,...ke.errToObj(s)})}length(t,s){return this._addCheck({kind:"length",value:t,...ke.errToObj(s)})}nonempty(t){return this.min(1,ke.errToObj(t))}trim(){return new wn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wn({...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}}wn.create=e=>new wn({checks:[],typeName:Be.ZodString,coerce:e?.coerce??!1,...Ze(e)});function CI(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 Gi extends it{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)!==Ne.number){const r=this._getOrReturnCtx(t);return xe(r,{code:ge.invalid_type,expected:Ne.number,received:r.parsedType}),Ke}let n;const i=new hs;for(const r of this._def.checks)r.kind==="int"?rt.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),xe(n,{code:ge.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),xe(n,{code:ge.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),xe(n,{code:ge.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):r.kind==="multipleOf"?CI(t.data,r.value)!==0&&(n=this._getOrReturnCtx(t,n),xe(n,{code:ge.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):r.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),xe(n,{code:ge.not_finite,message:r.message}),i.dirty()):rt.assertNever(r);return{status:i.value,value:t.data}}gte(t,s){return this.setLimit("min",t,!0,ke.toString(s))}gt(t,s){return this.setLimit("min",t,!1,ke.toString(s))}lte(t,s){return this.setLimit("max",t,!0,ke.toString(s))}lt(t,s){return this.setLimit("max",t,!1,ke.toString(s))}setLimit(t,s,n,i){return new Gi({...this._def,checks:[...this._def.checks,{kind:t,value:s,inclusive:n,message:ke.toString(i)}]})}_addCheck(t){return new Gi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ke.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ke.toString(t)})}multipleOf(t,s){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(s)})}finite(t){return this._addCheck({kind:"finite",message:ke.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ke.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ke.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"&&rt.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)}}Gi.create=e=>new Gi({checks:[],typeName:Be.ZodNumber,coerce:e?.coerce||!1,...Ze(e)});class Gr extends it{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)!==Ne.bigint)return this._getInvalidInput(t);let n;const i=new hs;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),xe(n,{code:ge.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),xe(n,{code:ge.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),xe(n,{code:ge.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):rt.assertNever(r);return{status:i.value,value:t.data}}_getInvalidInput(t){const s=this._getOrReturnCtx(t);return xe(s,{code:ge.invalid_type,expected:Ne.bigint,received:s.parsedType}),Ke}gte(t,s){return this.setLimit("min",t,!0,ke.toString(s))}gt(t,s){return this.setLimit("min",t,!1,ke.toString(s))}lte(t,s){return this.setLimit("max",t,!0,ke.toString(s))}lt(t,s){return this.setLimit("max",t,!1,ke.toString(s))}setLimit(t,s,n,i){return new Gr({...this._def,checks:[...this._def.checks,{kind:t,value:s,inclusive:n,message:ke.toString(i)}]})}_addCheck(t){return new Gr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}multipleOf(t,s){return this._addCheck({kind:"multipleOf",value:t,message:ke.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}}Gr.create=e=>new Gr({checks:[],typeName:Be.ZodBigInt,coerce:e?.coerce??!1,...Ze(e)});class Dh extends it{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ne.boolean){const n=this._getOrReturnCtx(t);return xe(n,{code:ge.invalid_type,expected:Ne.boolean,received:n.parsedType}),Ke}return xs(t.data)}}Dh.create=e=>new Dh({typeName:Be.ZodBoolean,coerce:e?.coerce||!1,...Ze(e)});class mo extends it{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ne.date){const r=this._getOrReturnCtx(t);return xe(r,{code:ge.invalid_type,expected:Ne.date,received:r.parsedType}),Ke}if(Number.isNaN(t.data.getTime())){const r=this._getOrReturnCtx(t);return xe(r,{code:ge.invalid_date}),Ke}const n=new hs;let i;for(const r of this._def.checks)r.kind==="min"?t.data.getTime()<r.value&&(i=this._getOrReturnCtx(t,i),xe(i,{code:ge.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),xe(i,{code:ge.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),n.dirty()):rt.assertNever(r);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new mo({...this._def,checks:[...this._def.checks,t]})}min(t,s){return this._addCheck({kind:"min",value:t.getTime(),message:ke.toString(s)})}max(t,s){return this._addCheck({kind:"max",value:t.getTime(),message:ke.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}}mo.create=e=>new mo({checks:[],coerce:e?.coerce||!1,typeName:Be.ZodDate,...Ze(e)});class Rh extends it{_parse(t){if(this._getType(t)!==Ne.symbol){const n=this._getOrReturnCtx(t);return xe(n,{code:ge.invalid_type,expected:Ne.symbol,received:n.parsedType}),Ke}return xs(t.data)}}Rh.create=e=>new Rh({typeName:Be.ZodSymbol,...Ze(e)});class Mh extends it{_parse(t){if(this._getType(t)!==Ne.undefined){const n=this._getOrReturnCtx(t);return xe(n,{code:ge.invalid_type,expected:Ne.undefined,received:n.parsedType}),Ke}return xs(t.data)}}Mh.create=e=>new Mh({typeName:Be.ZodUndefined,...Ze(e)});class Ih extends it{_parse(t){if(this._getType(t)!==Ne.null){const n=this._getOrReturnCtx(t);return xe(n,{code:ge.invalid_type,expected:Ne.null,received:n.parsedType}),Ke}return xs(t.data)}}Ih.create=e=>new Ih({typeName:Be.ZodNull,...Ze(e)});class qh extends it{constructor(){super(...arguments),this._any=!0}_parse(t){return xs(t.data)}}qh.create=e=>new qh({typeName:Be.ZodAny,...Ze(e)});class Lh extends it{constructor(){super(...arguments),this._unknown=!0}_parse(t){return xs(t.data)}}Lh.create=e=>new Lh({typeName:Be.ZodUnknown,...Ze(e)});class Nn extends it{_parse(t){const s=this._getOrReturnCtx(t);return xe(s,{code:ge.invalid_type,expected:Ne.never,received:s.parsedType}),Ke}}Nn.create=e=>new Nn({typeName:Be.ZodNever,...Ze(e)});class Fh extends it{_parse(t){if(this._getType(t)!==Ne.undefined){const n=this._getOrReturnCtx(t);return xe(n,{code:ge.invalid_type,expected:Ne.void,received:n.parsedType}),Ke}return xs(t.data)}}Fh.create=e=>new Fh({typeName:Be.ZodVoid,...Ze(e)});class Us extends it{_parse(t){const{ctx:s,status:n}=this._processInputParams(t),i=this._def;if(s.parsedType!==Ne.array)return xe(s,{code:ge.invalid_type,expected:Ne.array,received:s.parsedType}),Ke;if(i.exactLength!==null){const o=s.data.length>i.exactLength.value,l=s.data.length<i.exactLength.value;(o||l)&&(xe(s,{code:o?ge.too_big:ge.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&&(xe(s,{code:ge.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&&(xe(s,{code:ge.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 On(s,o,s.path,l)))).then(o=>hs.mergeArray(n,o));const r=[...s.data].map((o,l)=>i.type._parseSync(new On(s,o,s.path,l)));return hs.mergeArray(n,r)}get element(){return this._def.type}min(t,s){return new Us({...this._def,minLength:{value:t,message:ke.toString(s)}})}max(t,s){return new Us({...this._def,maxLength:{value:t,message:ke.toString(s)}})}length(t,s){return new Us({...this._def,exactLength:{value:t,message:ke.toString(s)}})}nonempty(t){return this.min(1,t)}}Us.create=(e,t)=>new Us({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Be.ZodArray,...Ze(t)});function $i(e){if(e instanceof Et){const t={};for(const s in e.shape){const n=e.shape[s];t[s]=xn.create($i(n))}return new Et({...e._def,shape:()=>t})}else return e instanceof Us?new Us({...e._def,type:$i(e.element)}):e instanceof xn?xn.create($i(e.unwrap())):e instanceof Yi?Yi.create($i(e.unwrap())):e instanceof fi?fi.create(e.items.map(t=>$i(t))):e}class Et extends it{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=rt.objectKeys(t);return this._cached={shape:t,keys:s},this._cached}_parse(t){if(this._getType(t)!==Ne.object){const d=this._getOrReturnCtx(t);return xe(d,{code:ge.invalid_type,expected:Ne.object,received:d.parsedType}),Ke}const{status:n,ctx:i}=this._processInputParams(t),{shape:r,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof Nn&&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 On(i,h,i.path,d)),alwaysSet:d in i.data})}if(this._def.catchall instanceof Nn){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&&(xe(i,{code:ge.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 On(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=>hs.mergeObjectSync(n,d)):hs.mergeObjectSync(n,u)}get shape(){return this._def.shape()}strict(t){return ke.errToObj,new Et({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(s,n)=>{const i=this._def.errorMap?.(s,n).message??n.defaultError;return s.code==="unrecognized_keys"?{message:ke.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Et({...this._def,unknownKeys:"strip"})}passthrough(){return new Et({...this._def,unknownKeys:"passthrough"})}extend(t){return new Et({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Et({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Be.ZodObject})}setKey(t,s){return this.augment({[t]:s})}catchall(t){return new Et({...this._def,catchall:t})}pick(t){const s={};for(const n of rt.objectKeys(t))t[n]&&this.shape[n]&&(s[n]=this.shape[n]);return new Et({...this._def,shape:()=>s})}omit(t){const s={};for(const n of rt.objectKeys(this.shape))t[n]||(s[n]=this.shape[n]);return new Et({...this._def,shape:()=>s})}deepPartial(){return $i(this)}partial(t){const s={};for(const n of rt.objectKeys(this.shape)){const i=this.shape[n];t&&!t[n]?s[n]=i:s[n]=i.optional()}return new Et({...this._def,shape:()=>s})}required(t){const s={};for(const n of rt.objectKeys(this.shape))if(t&&!t[n])s[n]=this.shape[n];else{let r=this.shape[n];for(;r instanceof xn;)r=r._def.innerType;s[n]=r}return new Et({...this._def,shape:()=>s})}keyof(){return $v(rt.objectKeys(this.shape))}}Et.create=(e,t)=>new Et({shape:()=>e,unknownKeys:"strip",catchall:Nn.create(),typeName:Be.ZodObject,...Ze(t)});Et.strictCreate=(e,t)=>new Et({shape:()=>e,unknownKeys:"strict",catchall:Nn.create(),typeName:Be.ZodObject,...Ze(t)});Et.lazycreate=(e,t)=>new Et({shape:e,unknownKeys:"strip",catchall:Nn.create(),typeName:Be.ZodObject,...Ze(t)});class po extends it{_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 cn(l.ctx.common.issues));return xe(s,{code:ge.invalid_union,unionErrors:o}),Ke}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 cn(u));return xe(s,{code:ge.invalid_union,unionErrors:l}),Ke}}get options(){return this._def.options}}po.create=(e,t)=>new po({options:e,typeName:Be.ZodUnion,...Ze(t)});function Pu(e,t){const s=En(e),n=En(t);if(e===t)return{valid:!0,data:e};if(s===Ne.object&&n===Ne.object){const i=rt.objectKeys(t),r=rt.objectKeys(e).filter(l=>i.indexOf(l)!==-1),o={...e,...t};for(const l of r){const u=Pu(e[l],t[l]);if(!u.valid)return{valid:!1};o[l]=u.data}return{valid:!0,data:o}}else if(s===Ne.array&&n===Ne.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=Pu(o,l);if(!u.valid)return{valid:!1};i.push(u.data)}return{valid:!0,data:i}}else return s===Ne.date&&n===Ne.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class go extends it{_parse(t){const{status:s,ctx:n}=this._processInputParams(t),i=(r,o)=>{if(Nh(r)||Nh(o))return Ke;const l=Pu(r.value,o.value);return l.valid?((kh(r)||kh(o))&&s.dirty(),{status:s.value,value:l.data}):(xe(n,{code:ge.invalid_intersection_types}),Ke)};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}))}}go.create=(e,t,s)=>new go({left:e,right:t,typeName:Be.ZodIntersection,...Ze(s)});class fi extends it{_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ne.array)return xe(n,{code:ge.invalid_type,expected:Ne.array,received:n.parsedType}),Ke;if(n.data.length<this._def.items.length)return xe(n,{code:ge.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ke;!this._def.rest&&n.data.length>this._def.items.length&&(xe(n,{code:ge.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 On(n,o,n.path,l)):null}).filter(o=>!!o);return n.common.async?Promise.all(r).then(o=>hs.mergeArray(s,o)):hs.mergeArray(s,r)}get items(){return this._def.items}rest(t){return new fi({...this._def,rest:t})}}fi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new fi({items:e,typeName:Be.ZodTuple,rest:null,...Ze(t)})};class Vh extends it{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!==Ne.map)return xe(n,{code:ge.invalid_type,expected:Ne.map,received:n.parsedType}),Ke;const i=this._def.keyType,r=this._def.valueType,o=[...n.data.entries()].map(([l,u],d)=>({key:i._parse(new On(n,l,n.path,[d,"key"])),value:r._parse(new On(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 Ke;(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 Ke;(d.status==="dirty"||c.status==="dirty")&&s.dirty(),l.set(d.value,c.value)}return{status:s.value,value:l}}}}Vh.create=(e,t,s)=>new Vh({valueType:t,keyType:e,typeName:Be.ZodMap,...Ze(s)});class Wr extends it{_parse(t){const{status:s,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ne.set)return xe(n,{code:ge.invalid_type,expected:Ne.set,received:n.parsedType}),Ke;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(xe(n,{code:ge.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&&(xe(n,{code:ge.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 Ke;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 On(n,u,n.path,d)));return n.common.async?Promise.all(l).then(u=>o(u)):o(l)}min(t,s){return new Wr({...this._def,minSize:{value:t,message:ke.toString(s)}})}max(t,s){return new Wr({...this._def,maxSize:{value:t,message:ke.toString(s)}})}size(t,s){return this.min(t,s).max(t,s)}nonempty(t){return this.min(1,t)}}Wr.create=(e,t)=>new Wr({valueType:e,minSize:null,maxSize:null,typeName:Be.ZodSet,...Ze(t)});class Qh extends it{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})}}Qh.create=(e,t)=>new Qh({getter:e,typeName:Be.ZodLazy,...Ze(t)});class jh extends it{_parse(t){if(t.data!==this._def.value){const s=this._getOrReturnCtx(t);return xe(s,{received:s.data,code:ge.invalid_literal,expected:this._def.value}),Ke}return{status:"valid",value:t.data}}get value(){return this._def.value}}jh.create=(e,t)=>new jh({value:e,typeName:Be.ZodLiteral,...Ze(t)});function $v(e,t){return new Wi({values:e,typeName:Be.ZodEnum,...Ze(t)})}class Wi extends it{_parse(t){if(typeof t.data!="string"){const s=this._getOrReturnCtx(t),n=this._def.values;return xe(s,{expected:rt.joinValues(n),received:s.parsedType,code:ge.invalid_type}),Ke}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 xe(s,{received:s.data,code:ge.invalid_enum_value,options:n}),Ke}return xs(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 Wi.create(t,{...this._def,...s})}exclude(t,s=this._def){return Wi.create(this.options.filter(n=>!t.includes(n)),{...this._def,...s})}}Wi.create=$v;class Du extends it{_parse(t){const s=rt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Ne.string&&n.parsedType!==Ne.number){const i=rt.objectValues(s);return xe(n,{expected:rt.joinValues(i),received:n.parsedType,code:ge.invalid_type}),Ke}if(this._cache||(this._cache=new Set(rt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=rt.objectValues(s);return xe(n,{received:n.data,code:ge.invalid_enum_value,options:i}),Ke}return xs(t.data)}get enum(){return this._def.values}}Du.create=(e,t)=>new Du({values:e,typeName:Be.ZodNativeEnum,...Ze(t)});class vo extends it{unwrap(){return this._def.type}_parse(t){const{ctx:s}=this._processInputParams(t);if(s.parsedType!==Ne.promise&&s.common.async===!1)return xe(s,{code:ge.invalid_type,expected:Ne.promise,received:s.parsedType}),Ke;const n=s.parsedType===Ne.promise?s.data:Promise.resolve(s.data);return xs(n.then(i=>this._def.type.parseAsync(i,{path:s.path,errorMap:s.common.contextualErrorMap})))}}vo.create=(e,t)=>new vo({type:e,typeName:Be.ZodPromise,...Ze(t)});class zi extends it{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Be.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=>{xe(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 Ke;const u=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return u.status==="aborted"?Ke:u.status==="dirty"||s.value==="dirty"?Cr(u.value):u});{if(s.value==="aborted")return Ke;const l=this._def.schema._parseSync({data:o,path:n.path,parent:n});return l.status==="aborted"?Ke:l.status==="dirty"||s.value==="dirty"?Cr(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"?Ke:(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"?Ke:(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(!Hi(o))return Ke;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=>Hi(o)?Promise.resolve(i.transform(o.value,r)).then(l=>({status:s.value,value:l})):Ke);rt.assertNever(i)}}zi.create=(e,t,s)=>new zi({schema:e,typeName:Be.ZodEffects,effect:t,...Ze(s)});zi.createWithPreprocess=(e,t,s)=>new zi({schema:t,effect:{type:"preprocess",transform:e},typeName:Be.ZodEffects,...Ze(s)});class xn extends it{_parse(t){return this._getType(t)===Ne.undefined?xs(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}xn.create=(e,t)=>new xn({innerType:e,typeName:Be.ZodOptional,...Ze(t)});class Yi extends it{_parse(t){return this._getType(t)===Ne.null?xs(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Yi.create=(e,t)=>new Yi({innerType:e,typeName:Be.ZodNullable,...Ze(t)});class bo extends it{_parse(t){const{ctx:s}=this._processInputParams(t);let n=s.data;return s.parsedType===Ne.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:s.path,parent:s})}removeDefault(){return this._def.innerType}}bo.create=(e,t)=>new bo({innerType:e,typeName:Be.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class Ru extends it{_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 ho(i)?i.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new cn(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new cn(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ru.create=(e,t)=>new Ru({innerType:e,typeName:Be.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class Bh extends it{_parse(t){if(this._getType(t)!==Ne.nan){const n=this._getOrReturnCtx(t);return xe(n,{code:ge.invalid_type,expected:Ne.nan,received:n.parsedType}),Ke}return{status:"valid",value:t.data}}}Bh.create=e=>new Bh({typeName:Be.ZodNaN,...Ze(e)});class AI extends it{_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 Dc extends it{_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"?Ke:r.status==="dirty"?(s.dirty(),Cr(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"?Ke: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 Dc({in:t,out:s,typeName:Be.ZodPipeline})}}class Mu extends it{_parse(t){const s=this._def.innerType._parse(t),n=i=>(Hi(i)&&(i.value=Object.freeze(i.value)),i);return ho(s)?s.then(i=>n(i)):n(s)}unwrap(){return this._def.innerType}}Mu.create=(e,t)=>new Mu({innerType:e,typeName:Be.ZodReadonly,...Ze(t)});var Be;(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"})(Be||(Be={}));const yo=wn.create,Uh=Gi.create;Nn.create;Us.create;const Rc=Et.create;po.create;go.create;fi.create;Wi.create;const Kh=Du.create;vo.create;xn.create;Yi.create;/**
|
|
40
|
+
* vee-validate v4.15.1
|
|
41
|
+
* (c) 2025 Abdelrahman Awad
|
|
42
|
+
* @license MIT
|
|
43
|
+
*/const Hh=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Tv(e){return Number(e)>=0}function SI(e){return typeof e=="object"&&e!==null}function xI(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Gh(e){if(!SI(e)||xI(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 Ov(e,t){return Object.keys(t).forEach(s=>{if(Gh(t[s])&&Gh(e[s])){e[s]||(e[s]={}),Ov(e[s],t[s]);return}e[s]=t[s]}),e}function $I(e){const t=e.split(".");if(!t.length)return"";let s=String(t[0]);for(let n=1;n<t.length;n++){if(Tv(t[n])){s+=`[${t[n]}]`;continue}s+=`.${t[n]}`}return s}function Mc(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 Nv(i.error.issues,r),{errors:Object.values(r)}},cast(n){try{return e.parse(n)}catch{const r=kv(e);return Hh(r)&&Hh(n)?Ov(r,n):n}},describe(n){try{if(!n)return{required:!e.isOptional(),exists:!0};const i=TI(n,e);return i?{required:!i.isOptional(),exists:!0}:{required:!1,exists:!1}}catch{return{required:!1,exists:!1}}}}}function Nv(e,t){e.forEach(s=>{const n=$I(s.path.join("."));s.code==="invalid_union"&&(Nv(s.unionErrors.flatMap(i=>i.issues),t),!n)||(t[n]||(t[n]={errors:[],path:n}),t[n].errors.push(s.message))})}function kv(e){if(e instanceof Et)return Object.fromEntries(Object.entries(e.shape).map(([t,s])=>s instanceof bo?[t,s._def.defaultValue()]:s instanceof Et?[t,kv(s)]:[t,void 0]))}function TI(e,t){if(!Wh(t))return null;if(la(e))return t.shape[Zo(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(Wh(n)){n=n.shape[r]||null;continue}Tv(r)&&OI(n)&&(n=n._def.type)}return null}function Pv(e){return e._def.typeName}function OI(e){return Pv(e)===Be.ZodArray}function Wh(e){return Pv(e)===Be.ZodObject}function zh(e){return!e||!e.length?!1:!e.toLowerCase().replace(/(?:[a-z][a-z0-9]?)+(?:[-_.]?[a-z0-9])*/g,"").length}function NI(e){const t=Rc({name:yo().min(1,"Queue name is required").max(100,"Queue name must be less than 100 characters").refine(zh,{message:"Name must start with a letter and contain only letters, numbers, and single separators (-, _, .). It cannot end with a separator."}),ns:yo().min(1,"Namespace is required").max(100,"Namespace must be less than 100 characters").refine(zh,{message:"Namespace must start with a letter and contain only letters, numbers, and single separators (-, _, .). It cannot end with a separator."}),type:Kh(Ht,{errorMap:()=>({message:"Please select a valid queue type"})}),deliveryModel:Kh(us,{errorMap:()=>({message:"Please select a valid delivery model"})})}),s=Mc(t),n={name:"",ns:"",type:Ht.FIFO_QUEUE,deliveryModel:us.POINT_TO_POINT},i={...n,...e},{errors:r,values:o,meta:l,resetForm:u,handleSubmit:d,setFieldValue:c,setValues:h}=Jo({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 kI={class:"form-content"},PI={class:"form-section"},DI={class:"form-grid"},RI={class:"form-group"},MI={class:"form-group"},II={class:"form-section"},qI={class:"form-grid"},LI={class:"form-group"},FI=["value"],VI=["value"],QI=["value"],jI={class:"form-group"},BI=["value"],UI=["value"],KI={key:0,class:"error-section"},HI={class:"error-content"},GI={class:"error-text"},WI={class:"error-message"},zI=["disabled"],YI=Ue({__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}=NI({ns:n.namespace}),{meta:d,handleSubmit:c}=Jo({initialValues:l,validationSchema:u});Ye(()=>n.isVisible,m=>{m||o()});const h=c(m=>{i("create",{...m})});function p(){i("close")}return(m,g)=>(N(),at(Ss,{"is-visible":e.isVisible,title:"Create New Queue",subtitle:"Configure your message queue settings",icon:"bi bi-plus-circle-fill",onClose:p},{body:qe(()=>[a("form",{onSubmit:g[0]||(g[0]=Ft((...E)=>T(h)&&T(h)(...E),["prevent"]))},[a("div",kI,[a("section",PI,[g[6]||(g[6]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),ee(" Basic Information ")]),a("p",{class:"section-description"}," Define the queue name and namespace ")],-1)),a("div",DI,[a("div",RI,[g[2]||(g[2]=a("label",{for:"name",class:"form-label"},[a("i",{class:"bi bi-tag-fill label-icon"}),ee(" Queue Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(Ce(T(Ns),{id:"name",name:"name",type:"text",placeholder:"e.g. user-notifications",class:De(["form-control",{error:T(r).name}]),autocomplete:"off","aria-describedby":"name-help name-error"},null,8,["class"]),[[s]]),Ce(T(Jn),{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"}),ee(" Use letters, numbers, underscores, and hyphens only ")],-1))]),a("div",MI,[g[4]||(g[4]=a("label",{for:"ns",class:"form-label"},[a("i",{class:"bi bi-folder-fill label-icon"}),ee(" Namespace "),a("span",{class:"required-indicator"},"*")],-1)),Ce(T(Ns),{id:"ns",name:"ns",type:"text",placeholder:"e.g. production",class:De(["form-control",{error:T(r).ns}]),autocomplete:"off","aria-describedby":"ns-help ns-error"},null,8,["class"]),Ce(T(Jn),{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"}),ee(" Organize queues by environment or application ")],-1))])])]),a("section",II,[g[13]||(g[13]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-gear-fill section-icon"}),ee(" Queue Configuration ")]),a("p",{class:"section-description"}," Choose how messages are processed and delivered ")],-1)),a("div",qI,[a("div",LI,[g[8]||(g[8]=a("label",{for:"type",class:"form-label"},[a("i",{class:"bi bi-list-ol label-icon"}),ee(" Queue Type "),a("span",{class:"required-indicator"},"*")],-1)),Ce(T(Ns),{id:"type",name:"type",as:"select",class:De(["form-select",{error:T(r).type}]),"aria-describedby":"type-help type-error"},{default:qe(()=>[g[7]||(g[7]=a("option",{value:""},"Select processing order",-1)),a("option",{value:T(Ht).FIFO_QUEUE},"FIFO Queue",8,FI),a("option",{value:T(Ht).LIFO_QUEUE},"LIFO Queue",8,VI),a("option",{value:T(Ht).PRIORITY_QUEUE}," Priority Queue ",8,QI)]),_:1},8,["class"]),Ce(T(Jn),{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:"),ee(" First message in, first message out ")]),a("div",{class:"help-option"},[a("strong",null,"LIFO:"),ee(" Last message in, first message out ")]),a("div",{class:"help-option"},[a("strong",null,"Priority:"),ee(" Higher priority messages processed first ")])])],-1))]),a("div",jI,[g[11]||(g[11]=a("label",{for:"deliveryModel",class:"form-label"},[a("i",{class:"bi bi-arrow-left-right label-icon"}),ee(" Delivery Model "),a("span",{class:"required-indicator"},"*")],-1)),Ce(T(Ns),{id:"deliveryModel",name:"deliveryModel",as:"select",class:De(["form-select",{error:T(r).deliveryModel}]),"aria-describedby":"deliveryModel-help deliveryModel-error"},{default:qe(()=>[g[10]||(g[10]=a("option",{value:""},"Select delivery pattern",-1)),a("option",{value:T(us).POINT_TO_POINT}," Point to Point ",8,BI),a("option",{value:T(us).PUB_SUB}," Publish/Subscribe ",8,UI)]),_:1},8,["class"]),Ce(T(Jn),{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:"),ee(" One-to-one message delivery ")]),a("div",{class:"help-option"},[a("strong",null,"Pub/Sub:"),ee(" One-to-many message broadcasting ")])])],-1))])])]),e.createError?(N(),P("div",KI,[a("div",HI,[g[15]||(g[15]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",GI,[g[14]||(g[14]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",WI,q(e.createError),1)])])])):he("",!0)])],32)]),footer:qe(()=>[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),ee(" Cancel ",-1)])]),a("button",{type:"submit",class:"btn btn-primary",disabled:e.isCreating||!T(d).valid,onClick:g[1]||(g[1]=(...E)=>T(h)&&T(h)(...E))},[e.isCreating?(N(),P(Ae,{key:0},[g[17]||(g[17]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),g[18]||(g[18]=ee(" Creating Queue... ",-1))],64)):(N(),P(Ae,{key:1},[g[19]||(g[19]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),g[20]||(g[20]=ee(" Create Queue ",-1))],64))],8,zI)]),_:1},8,["is-visible"]))}}),ZI=Xe(YI,[["__scopeId","data-v-01f67f2d"]]),JI={class:"dialog-body"},XI={class:"confirmation-message"},eq={class:"queue-details",role:"group","aria-label":"Queue details"},tq={class:"queue-info"},sq={class:"info-item"},nq=["title"],iq={class:"info-item"},rq=["title"],aq={class:"actions"},oq=["disabled"],lq=["disabled"],uq=Ue({__name:"DeleteQueueModal",props:{isVisible:{type:Boolean},isDeleting:{type:Boolean},queue:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const s=e,n=t;function i(){s.isDeleting||n("cancel")}function r(){s.isDeleting||n("confirm")}return(o,l)=>(N(),at(Ss,{"is-visible":e.isVisible,title:"Delete Queue",subtitle:"This action cannot be undone",icon:"bi bi-exclamation-triangle-fill",size:"sm",onClose:i},{body:qe(()=>[a("div",JI,[a("section",XI,[l[2]||(l[2]=a("p",{class:"message-text"}," Are you sure you want to permanently delete the following queue? ",-1)),a("div",eq,[a("div",tq,[a("div",sq,[l[0]||(l[0]=a("span",{class:"info-label"},"Queue Name:",-1)),a("span",{class:"info-value queue-name",title:e.queue.name},q(e.queue.name),9,nq)]),a("div",iq,[l[1]||(l[1]=a("span",{class:"info-label"},"Namespace:",-1)),a("span",{class:"info-value namespace",title:e.queue.ns},q(e.queue.ns),9,rq)])])])]),l[3]||(l[3]=a("section",{class:"warning-section","aria-live":"polite"},[a("div",{class:"warning-content"},[a("div",{class:"warning-icon","aria-hidden":"true"},[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 messages in this queue will be permanently lost"),a("li",null," Ensure all consumers connected to this queue are disconnected "),a("li",null,"This action cannot be reversed")])])])],-1))])]),footer:qe(()=>[a("div",aq,[a("button",{type:"button",class:"btn btn-outline-secondary",disabled:e.isDeleting,onClick:i},[...l[4]||(l[4]=[a("i",{class:"bi bi-x-circle me-2","aria-hidden":"true"},null,-1),ee(" Cancel ",-1)])],8,oq),a("button",{type:"button",class:"btn btn-danger",disabled:e.isDeleting,onClick:r},[e.isDeleting?(N(),P(Ae,{key:0},[l[5]||(l[5]=a("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},null,-1)),l[6]||(l[6]=ee(" Deleting Queue... ",-1))],64)):(N(),P(Ae,{key:1},[l[7]||(l[7]=a("i",{class:"bi bi-trash-fill me-2","aria-hidden":"true"},null,-1)),l[8]||(l[8]=ee(" Delete Queue ",-1))],64))],8,lq)])]),_:1},8,["is-visible"]))}}),Dv=Xe(uq,[["__scopeId","data-v-ccaa6d3f"]]),cq=["onKeydown"],dq={class:"queue-content"},fq={class:"queue-info"},hq={class:"queue-header"},mq=["title"],pq={class:"queue-details"},gq={class:"queue-namespace"},vq={class:"namespace-text"},bq={class:"queue-actions"},yq=Ue({__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)=>(N(),P("li",{class:"queue-item",tabindex:"0",onClick:i,onKeydown:[an(i,["enter"]),an(Ft(i,["prevent"]),["space"])]},[a("div",dq,[l[1]||(l[1]=a("div",{class:"queue-icon"},[a("i",{class:"bi bi-collection"})],-1)),a("div",fq,[a("div",hq,[a("h5",{class:"queue-name",title:`${e.queue.ns}:${e.queue.name}`},q(e.queue.name),9,mq)]),a("div",pq,[a("div",gq,[l[0]||(l[0]=a("i",{class:"bi bi-tag-fill namespace-icon"},null,-1)),a("span",vq,q(e.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",bq,[a("button",{class:"action-btn view-btn",title:"View Queue Details",onClick:Ft(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:Ft(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,cq))}}),_q=Xe(yq,[["__scopeId","data-v-f4df47cc"]]),Eq={key:0,class:"alert alert-warning alert-dismissible fade show error-banner"},wq={class:"d-flex align-items-center"},Cq={key:1,class:"alert alert-warning alert-dismissible fade show error-banner"},Aq={class:"d-flex align-items-center"},Sq={class:"content-card namespace-summary"},xq={class:"summary-content"},$q={class:"summary-stats"},Tq={class:"stat-item"},Oq={class:"stat-content"},Nq={class:"stat-number"},kq={class:"stat-label"},Pq={class:"stat-item"},Dq={class:"stat-content"},Rq={class:"stat-number"},Mq={class:"content-card queues-card"},Iq={class:"queues-header"},qq={class:"queues-count"},Lq={class:"queues-list"},Fq=Ue({__name:"NamespaceQueuesView",setup(e){const t=ms(),s=os(),n=dv(),i=zo(),r=It(),o=Xt(),l=rM(async()=>{d.value=!1,await n.refreshNamespaceQueues(p.value)}),u=fv(async()=>{c.value=!1,h.value=null,await n.refreshNamespaceQueues(p.value)}),d=ye(!1),c=ye(!1),h=ye(null),p=v(()=>t.params.ns),m=v(()=>n.sortedNamespaceQueues.value),g=v(()=>n.isLoadingNamespaceQueues.value),E=v(()=>n.namespaceQueuesError.value),_=v(()=>m.value.length>0),x=v(()=>p.value?n.namespaceExists.value(p.value):!1),C=v(()=>l.isCreatingQueue.value),A=v(()=>l.createQueueError.value),b=v(()=>u.isDeletingQueue.value),$=v(()=>u.deleteQueueError.value);function L(ne,Q){r.selectQueue(ne,Q),s.push({name:"Queue",params:{ns:ne,queue:Q}})}function F(){i.clearSelectedNamespace(),s.push({name:"Namespaces"})}function I(){d.value=!0}function w(){d.value=!1}function O(ne,Q){h.value={ns:ne,name:Q},c.value=!0}function S(){c.value=!1,h.value=null}async function j(ne){const Q={queue:{ns:ne.ns,name:ne.name},queueType:ne.type,queueDeliveryModel:ne.deliveryModel};await l.createQueueMutation.mutateAsync({data:Q})}async function X(){h.value&&await u.deleteQueueMutation.mutateAsync({ns:h.value.ns,name:h.value.name})}function W(){n.refreshNamespaceQueues(p.value)}const fe=v(()=>[{id:"refresh-queues",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"secondary",disabled:g.value,handler:W},{id:"create-queue",label:"Create Queue",icon:"bi bi-plus-circle",variant:"primary",disabled:C.value,loading:C.value,handler:I}]);return At(()=>{o.setPageHeader({title:p.value,subtitle:"Manage queues in this namespace",icon:"bi bi-folder-fill"}),o.setPageActions(fe.value),o.setLoadingState(g.value),g.value||(x.value?E.value?(o.setErrorState(ct(E.value)),o.setEmptyState(!1)):_.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:I})):(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:F}),o.setPageActions([])))}),Ye(p,ne=>{ne&&i.selectNamespace(ne)},{immediate:!0}),Bt(()=>{p.value&&i.selectNamespace(p.value)}),(ne,Q)=>(N(),P("div",null,[Ce(ps,null,{default:qe(()=>[A.value&&!d.value?(N(),P("div",Eq,[a("div",wq,[Q[2]||(Q[2]=a("i",{class:"bi bi-exclamation-triangle me-2"},null,-1)),a("span",null,"Failed to create queue: "+q(T(ct)(A.value)),1)]),a("button",{type:"button",class:"btn-close",onClick:Q[0]||(Q[0]=Z=>T(l).createQueueMutation.reset())})])):he("",!0),$.value&&!c.value?(N(),P("div",Cq,[a("div",Aq,[Q[3]||(Q[3]=a("i",{class:"bi bi-exclamation-triangle me-2"},null,-1)),a("span",null,"Failed to delete queue: "+q(T(ct)($.value)),1)]),a("button",{type:"button",class:"btn-close",onClick:Q[1]||(Q[1]=Z=>T(u).deleteQueueMutation.reset())})])):he("",!0),a("div",Sq,[a("div",xq,[a("div",$q,[a("div",Tq,[Q[4]||(Q[4]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-list-ul"})],-1)),a("div",Oq,[a("div",Nq,q(m.value.length),1),a("div",kq," Queue"+q(m.value.length!==1?"s":""),1)])]),a("div",Pq,[Q[6]||(Q[6]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-folder-fill"})],-1)),a("div",Dq,[a("div",Rq,q(p.value),1),Q[5]||(Q[5]=a("div",{class:"stat-label"},"Namespace",-1))])])])])]),a("div",Mq,[a("div",Iq,[a("h5",qq,q(m.value.length)+" Queue"+q(m.value.length!==1?"s":""),1)]),a("div",Lq,[(N(!0),P(Ae,null,bt(m.value,Z=>(N(),at(_q,{key:`${Z.ns}-${Z.name}`,queue:Z,onSelect:L,onDelete:O},null,8,["queue"]))),128))])])]),_:1}),Ce(ZI,{"is-visible":d.value,"is-creating":C.value,"create-error":A.value?`${T(ct)(A.value)?.message}`:"",namespace:p.value,onClose:w,onCreate:j},null,8,["is-visible","is-creating","create-error","namespace"]),h.value?(N(),at(Dv,{key:0,"is-visible":c.value,"is-deleting":b.value,queue:h.value,onCancel:S,onConfirm:X},null,8,["is-visible","is-deleting","queue"])):he("",!0)]))}}),Vq=Xe(Fq,[["__scopeId","data-v-d8768830"]]),Qq=["aria-label"],jq={key:0,class:"deleting-overlay"},Bq={class:"card-header"},Uq={class:"header-content"},Kq={class:"header-text"},Hq={class:"namespace-name"},Gq={class:"header-actions"},Wq={class:"card-body"},zq={class:"stats-section",role:"group","aria-label":"Namespace stats"},Yq={class:"stat-item"},Zq={class:"stat-value"},Jq={class:"stat-label"},Xq={class:"stat-item"},eL={class:"stat-value"},tL={class:"stat-label"},sL={class:"queues-section"},nL={key:0,class:"queues-list",role:"list"},iL=["onClick","onKeydown"],rL={class:"queue-name"},aL={key:1,class:"no-queues-message"},oL={class:"card-footer"},lL={class:"footer-actions"},uL=Ue({__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)=>(N(),P("article",{class:De(["namespace-card",{"is-deleting":e.isDeleting}]),tabindex:"0","aria-label":`View details for namespace ${e.namespace}`,onClick:l[2]||(l[2]=u=>n("click",e.namespace)),onKeydown:[l[3]||(l[3]=an(u=>n("click",e.namespace),["enter"])),l[4]||(l[4]=an(Ft(u=>n("click",e.namespace),["prevent"]),["space"]))]},[e.isDeleting?(N(),P("div",jq,[...l[5]||(l[5]=[a("div",{class:"spinner-border text-light",role:"status","aria-live":"polite","aria-label":"Deleting namespace"},null,-1),a("span",{class:"deleting-text"},"Deleting...",-1)])])):he("",!0),a("header",Bq,[a("div",Uq,[l[7]||(l[7]=a("div",{class:"header-icon","aria-hidden":"true"},[a("i",{class:"bi bi-folder2-open"})],-1)),a("div",Kq,[a("h3",Hq,q(e.namespace),1),l[6]||(l[6]=a("span",{class:"namespace-label"},"Namespace",-1))])]),a("div",Gq,[a("button",{type:"button",class:"btn-action btn-exchanges","aria-label":"View exchanges",title:"View exchanges in this namespace",onClick:Ft(r,["stop"])},[...l[8]||(l[8]=[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"},null,-1)])]),a("button",{type:"button",class:"btn-action btn-delete","aria-label":"Delete namespace",title:"Delete namespace",onClick:l[0]||(l[0]=Ft(u=>n("delete",e.namespace),["stop"]))},[...l[9]||(l[9]=[a("i",{class:"bi bi-trash","aria-hidden":"true"},null,-1)])])])]),a("main",Wq,[a("div",zq,[a("div",Yq,[a("span",Zq,q(e.queueCount),1),a("span",Jq,q(e.queueCount===1?"Queue":"Queues"),1)]),a("div",Xq,[a("span",eL,q(e.exchangeCount),1),a("span",tL,q(e.exchangeCount===1?"Exchange":"Exchanges"),1)])]),a("div",sL,[l[11]||(l[11]=a("h4",{class:"queues-title"},[a("i",{class:"bi bi-card-list me-2","aria-hidden":"true"}),ee(" Sample Queues ")],-1)),e.recentQueues.length?(N(),P("ul",nL,[(N(!0),P(Ae,null,bt(e.recentQueues,u=>(N(),P("li",{key:`${u.name}@${u.ns}`,class:"queue-item",role:"listitem"},[a("a",{href:"#",class:"queue-link",onClick:Ft(d=>i(u),["prevent","stop"]),onKeydown:an(Ft(d=>i(u),["prevent","stop"]),["enter"])},[a("span",rL,q(u.name),1),l[10]||(l[10]=a("i",{class:"bi bi-box-arrow-up-right queue-icon","aria-hidden":"true"},null,-1))],40,iL)]))),128))])):(N(),P("p",aL,"No queues in this namespace."))])]),a("footer",oL,[a("div",lL,[a("button",{type:"button",class:"footer-action",onClick:l[1]||(l[1]=Ft(u=>n("click",e.namespace),["stop"]))},[...l[12]||(l[12]=[a("span",{class:"footer-text"},"View all queues",-1),a("i",{class:"bi bi-arrow-right","aria-hidden":"true"},null,-1)])]),a("button",{type:"button",class:"footer-action",onClick:Ft(r,["stop"])},[...l[13]||(l[13]=[a("span",{class:"footer-text"},"View exchanges",-1),a("i",{class:"bi bi-diagram-3","aria-hidden":"true"},null,-1)])])])])],42,Qq))}}),cL=Xe(uL,[["__scopeId","data-v-b80eed74"]]),dL={class:"dialog-body"},fL={class:"confirmation-message"},hL={class:"message-text"},mL=["title"],pL={class:"namespace-details",role:"group","aria-label":"Namespace details"},gL={class:"detail-item"},vL={class:"detail-value"},bL={key:0,class:"error-section",role:"alert"},yL={class:"error-content"},_L={class:"error-text"},EL={class:"error-message"},wL={class:"actions"},CL=["disabled"],AL=["disabled"],SL=Ue({__name:"DeleteNamespaceModal",props:{isVisible:{type:Boolean},namespace:{},queueCount:{},isDeleting:{type:Boolean},error:{}},emits:["cancel","confirm"],setup(e,{emit:t}){const s=e,n=t;function i(){s.isDeleting||n("cancel")}function r(){s.isDeleting||n("confirm")}return(o,l)=>(N(),at(Ss,{"is-visible":e.isVisible,title:"Delete Namespace",subtitle:"This action cannot be undone",icon:"bi bi-exclamation-triangle-fill",size:"sm",onClose:i},{body:qe(()=>[a("div",dL,[a("section",fL,[a("p",hL,[l[0]||(l[0]=ee(" Are you sure you want to permanently delete the namespace ",-1)),a("strong",{class:"namespace-identifier",title:e.namespace??""},q(e.namespace),9,mL),l[1]||(l[1]=ee(" ? ",-1))]),a("div",pL,[a("div",gL,[l[2]||(l[2]=a("span",{class:"detail-label"},"Queues in namespace:",-1)),a("span",vL,q(e.queueCount),1)])])]),l[5]||(l[5]=a("section",{class:"warning-section","aria-live":"polite"},[a("div",{class:"warning-content"},[a("div",{class:"warning-icon","aria-hidden":"true"},[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," Ensure all consumers connected to these queues are disconnected "),a("li",null,"This action cannot be reversed")])])])],-1)),e.error?(N(),P("section",bL,[a("div",yL,[l[4]||(l[4]=a("div",{class:"error-icon","aria-hidden":"true"},[a("i",{class:"bi bi-exclamation-circle-fill"})],-1)),a("div",_L,[l[3]||(l[3]=a("h4",{class:"error-title"},"Deletion Failed",-1)),a("p",EL,q(e.error),1)])])])):he("",!0)])]),footer:qe(()=>[a("div",wL,[a("button",{class:"btn btn-outline-secondary",type:"button",disabled:e.isDeleting,onClick:i},[...l[6]||(l[6]=[a("i",{class:"bi bi-x-circle me-2","aria-hidden":"true"},null,-1),ee(" Cancel ",-1)])],8,CL),a("button",{class:"btn btn-danger",type:"button",disabled:e.isDeleting,onClick:r},[e.isDeleting?(N(),P(Ae,{key:0},[l[7]||(l[7]=a("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},null,-1)),l[8]||(l[8]=ee(" Deleting... ",-1))],64)):(N(),P(Ae,{key:1},[l[9]||(l[9]=a("i",{class:"bi bi-trash-fill me-2","aria-hidden":"true"},null,-1)),l[10]||(l[10]=ee(" Delete Namespace ",-1))],64))],8,AL)])]),_:1},8,["is-visible"]))}}),xL=Xe(SL,[["__scopeId","data-v-221b2a02"]]);function $L(){const e=ZT(),t=v(()=>e.data.value),s=v(()=>e.isLoading.value),n=v(()=>e.error.value),i=v(()=>t.value?.data.length?[...t.value.data].sort((u,d)=>u.name.localeCompare(d.name)):[]),r=v(()=>u=>t.value?.data?t.value.data.filter(d=>d.ns===u).length:0);function o(u){return t.value?.data?t.value.data.filter(d=>d.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 TL={key:0,class:"alert alert-warning alert-dismissible fade show mb-4",role:"alert"},OL={class:"namespaces-grid"},NL="Namespaces",kL="Organize and manage your message queue namespaces",PL=Ue({__name:"NamespacesView",setup(e){const t=os(),s=dv(),n=$L(),i=It(),r=zo(),o=Xt(),{data:l,isLoading:u,refetch:d}=Kg(),c=ye(!1),h=ye(null),p=v(()=>s.sortedNamespaces.value),m=v(()=>s.isLoadingNamespaces.value||u.value),g=v(()=>s.namespacesError.value),E=v(()=>s.isDeletingNamespace.value),_=v(()=>ct(s.deleteNamespaceError.value?.error)),x=v(()=>p.value.length>0),C=v(()=>l.value?.data||[]),A=X=>C.value.filter(W=>W.ns===X).length,b=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 L(){t.push({name:"Queues"})}function F(X){r.selectNamespace(X),t.push({name:"Namespace Queues",params:{ns:X}})}function I(X){r.selectNamespace(X),t.push({name:"Namespace Exchanges",params:{ns:X}})}function w(X){i.selectQueue(X.ns,X.name),t.push({name:"Queue",params:{ns:X.ns,queue:X.name}})}function O(X){h.value=X,c.value=!0}function S(){c.value=!1,h.value=null}async function j(){if(h.value)try{await s.deleteNamespace(h.value),S(),d()}catch(X){console.error("Failed to delete namespace:",X)}}return At(()=>{o.setPageHeader({title:NL,subtitle:kL,icon:"bi bi-folder"}),o.setPageActions(b.value),o.setLoadingState(m.value),g.value?(o.setErrorState(ct(g.value)),o.setEmptyState(!1)):!m.value&&!x.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:L})):(o.setErrorState(null),o.setEmptyState(!1))}),At(()=>{i.clearSelectedQueue()}),Bt(()=>{$()}),(X,W)=>(N(),P("div",null,[Ce(ps,null,{default:qe(()=>[_.value&&!c.value?(N(),P("div",TL,[W[1]||(W[1]=a("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),ee(" "+q(T(ct)(_.value))+" ",1),a("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:W[0]||(W[0]=fe=>T(s).deleteNamespaceMutation.reset())})])):he("",!0),a("div",OL,[(N(!0),P(Ae,null,bt(p.value,fe=>(N(),at(cL,{key:fe,namespace:fe,"queue-count":T(n).getNamespaceQueueCount.value(fe),"exchange-count":A(fe),"recent-queues":T(n).getQueuesInNamespace(fe).slice(0,3),"is-deleting":E.value&&h.value===fe,onClick:ne=>F(fe),onQueueClick:w,onDelete:O,onViewExchanges:I},null,8,["namespace","queue-count","exchange-count","recent-queues","is-deleting","onClick"]))),128))])]),_:1}),Ce(xL,{"is-visible":c.value,namespace:h.value,"queue-count":h.value?T(n).getNamespaceQueueCount.value(h.value):0,"is-deleting":E.value,error:_.value,onCancel:S,onConfirm:j},null,8,["is-visible","namespace","queue-count","is-deleting","error"])]))}}),Rv=Xe(PL,[["__scopeId","data-v-d9e0902c"]]),DL=Object.freeze(Object.defineProperty({__proto__:null,default:Rv},Symbol.toStringTag,{value:"Module"})),RL=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups`,method:"GET",signal:s})),ML=(e,t)=>["api","v1","namespaces",e,"queues",t,"consumer-groups"],IL=(e,t,s)=>{const{query:n}=s??{};return{queryKey:ML(e,t),queryFn:({signal:o})=>RL(e,t,o),enabled:v(()=>!!(T(e)&&T(t))),...n}};function qL(e,t,s,n){const i=IL(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const LL=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups`,method:"POST",headers:{"Content-Type":"application/json"},data:s,signal:n})),FL=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 LL(r,o,l)},...s}},VL=(e,t)=>{const s=FL(e);return Nt(s)},QL=(e,t,s)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups/${s}`,method:"DELETE"})),jL=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 QL(r,o,l)},...s}},BL=(e,t)=>{const s=jL(e);return Nt(s)};function Mv(){const e=It(),t=Dn(),s=v(()=>e.selectedQueue),n=qL(v(()=>s.value?.ns||""),v(()=>s.value?.name||""),{query:{enabled:v(()=>!!s.value&&t.isPubSubQueue)}}),i=VL({mutation:{onSuccess:async()=>{await n.refetch()}}}),r=BL({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),E=v(()=>t.isPubSubQueue&&!!o.value?.data&&Array.isArray(o.value.data)&&o.value.data.length>0),_=v(()=>o.value?.data?[...o.value.data].sort((O,S)=>O.localeCompare(S)):[]);async function x(O){if(!s.value)throw new Error("No queue selected");const S={consumerGroupId:O};await i.mutateAsync({ns:s.value.ns,name:s.value.name,data:S})}async function C(O){if(!s.value)throw new Error("No queue selected");await r.mutateAsync({ns:s.value.ns,name:s.value.name,consumerGroupId:O})}async function A(){await n.refetch()}function b(){return!s.value||!t.isPubSubQueue?Promise.resolve():n.refetch()}function $(){i.reset()}function L(){r.reset()}function F(){i.reset(),r.reset()}function I(O){return/^[a-zA-Z0-9_-]+$/.test(O)&&O.length>=1&&O.length<=50}function w(O){return o.value?.data?o.value.data.includes(O):!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:E,sortedConsumerGroups:_,createConsumerGroup:x,deleteConsumerGroup:C,refreshConsumerGroups:A,refetchConsumerGroupsData:b,resetCreateConsumerGroupMutation:$,resetDeleteConsumerGroupMutation:L,resetAllMutations:F,isValidConsumerGroupId:I,consumerGroupExists:w}}const UL={class:"consumer-group-selector"},KL={key:0,class:"section-header"},HL={key:0,class:"section-meta"},GL={key:1,class:"state-container loading-state"},WL={key:2,class:"consumer-groups-grid"},zL=["aria-label","onClick","onKeydown"],YL={class:"card-header"},ZL={class:"group-info"},JL={class:"group-name"},XL={key:3,class:"state-container empty-state"},e2={class:"state-content"},t2={class:"state-description"},s2={key:0,class:"state-actions"},n2=Ue({__name:"ConsumerGroupSelector",props:{showSectionHeader:{type:Boolean,default:!0}},setup(e){const t=It(),s=Mv(),n=os(),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)=>(N(),P("div",UL,[e.showSectionHeader?(N(),P("header",KL,[m[0]||(m[0]=a("h2",{class:"section-title"},"Consumer Groups",-1)),o.value&&!l.value?(N(),P("div",HL,q(u.value),1)):he("",!0)])):he("",!0),l.value?(N(),P("div",GL,[...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?(N(),P("div",WL,[(N(!0),P(Ae,null,bt(r.value,g=>(N(),P("article",{key:g,class:"consumer-group-card",role:"button",tabindex:"0","aria-label":`View pending messages for consumer group ${g}`,onClick:E=>c(g),onKeydown:[an(E=>c(g),["enter"]),an(Ft(E=>c(g),["prevent"]),["space"])]},[a("div",YL,[m[3]||(m[3]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",ZL,[a("h3",JL,q(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"}),ee(" View pending messages ")]),a("i",{class:"bi bi-arrow-right action-arrow"})],-1))],40,zL))),128))])):(N(),P("div",XL,[a("div",e2,[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",t2,[i.value?(N(),P(Ae,{key:0},[m[5]||(m[5]=ee(" The queue ",-1)),a("strong",null,q(d.value),1),m[6]||(m[6]=ee(" doesn't have any consumer groups yet. Consumer groups are created automatically when consumers start subscribing to this pub/sub queue. ",-1))],64)):(N(),P(Ae,{key:1},[ee(" Select a pub/sub queue to view its consumer groups. ")],64))]),i.value?(N(),P("div",s2,[a("button",{type:"button",class:"btn btn-secondary",onClick:h},[...m[7]||(m[7]=[a("i",{class:"bi bi-arrow-clockwise"},null,-1),ee(" Refresh ",-1)])])])):he("",!0),m[10]||(m[10]=a("details",{class:"help-section"},[a("summary",{class:"help-summary"},[a("i",{class:"bi bi-question-circle"}),ee(" 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))])]))]))}}),i2=Xe(n2,[["__scopeId","data-v-2c88981d"]]),r2=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/pending-messages`,method:"GET",params:T(s),signal:n}));function a2(e,t,s=20){const n=v(()=>{const r={};return t.value&&(r.consumerGroupId=t.value),r});return aa(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)),r2(r,o,c)},queryKeyPrefix:"pending-messages",enableDelete:!0,enableRequeue:!1},s,n)}const o2={key:0,class:"loading-state"},l2=Ue({__name:"PendingMessagesView",setup(e){const t=It(),s=Dn(),n=Xt(),i=ms(),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});Ye([r,o],([Y,G])=>{Y&&G&&t.selectQueue(Y,G)},{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)),E=v(()=>d.value&&h.value),_=v(()=>g.value?u.value:null),{messages:x,pagination:C,isLoading:A,isDeleting:b,isRequeuing:$,error:L,goToPage:F,setPageSize:I,refresh:w,deleteMessage:O,requeueMessage:S}=a2(_,l,20),j=v(()=>{if(!d.value)return"Pending Messages";const Y=`${d.value.name}@${d.value.ns}`;return c.value&&l.value?`Pending Messages - ${Y} (${l.value})`:`Pending Messages - ${Y}`}),X=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"}),W=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.");At(()=>{n.setPageHeader({title:j.value,subtitle:X.value,icon:"bi bi-hourglass-split"})}),At(()=>{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 fe(Y){O&&await O(Y)}async function ne(Y){S&&await S(Y)}function Q(Y){F(Y)}async function Z(Y){await I(Y)}return(Y,G)=>(N(),at(ps,{"show-section-header":!1},{default:qe(()=>[E.value?(N(),P("div",o2,[...G[4]||(G[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?(N(),at(i2,{key:1,"show-section-header":!1})):g.value?(N(),at(ra,{key:2,messages:T(x),"is-loading":T(A),error:T(L),pagination:T(C),"show-pagination":!0,"empty-message":W.value,icon:"bi-hourglass-split","is-deleting":T(b),"is-requeuing":T($),onRefresh:T(w),onDeleteMessage:fe,onRequeueMessage:ne,onPageChange:Q,onPageSizeChange:Z,onFirstPage:G[0]||(G[0]=se=>Q(1)),onPreviousPage:G[1]||(G[1]=se=>Q(T(C).currentPage-1)),onNextPage:G[2]||(G[2]=se=>Q(T(C).currentPage+1)),onLastPage:G[3]||(G[3]=se=>Q(T(C).totalPages))},null,8,["messages","is-loading","error","pagination","empty-message","is-deleting","is-requeuing","onRefresh"])):he("",!0)]),_:1}))}}),u2=Xe(l2,[["__scopeId","data-v-30086d3d"]]);function c2(e){Ye(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 d2={class:"queue-info-card"},f2={class:"card-header"},h2={class:"header-actions"},m2=["disabled"],p2={class:"card-content"},g2={key:0,class:"content-state loading-state"},v2={key:1,class:"content-state error-state",role:"alert"},b2={class:"error-content"},y2={key:2,class:"queue-details-wrapper"},_2={class:"info-section"},E2={class:"info-grid"},w2={class:"info-item"},C2={class:"info-content"},A2={class:"info-details"},S2={class:"info-value"},x2=["title"],$2={class:"info-item"},T2={class:"info-content"},O2={class:"info-details"},N2={class:"info-value"},k2=["title"],P2={class:"info-item"},D2={class:"info-content"},R2={class:"info-details"},M2={class:"info-value"},I2=["title"],q2={class:"info-item"},L2={class:"info-content"},F2={class:"info-details"},V2={class:"info-value"},Q2=["title"],j2={class:"info-section"},B2={class:"info-grid"},U2={class:"info-item"},K2={class:"info-content"},H2={class:"info-details"},G2={class:"info-value"},W2={class:"rate-limit"},z2={class:"info-section"},Y2={class:"info-grid stats-grid"},Z2=["role","onClick"],J2={class:"info-content"},X2={class:"info-details"},eF={class:"info-label"},tF={class:"info-value stat-value"},sF={key:0,class:"info-arrow","aria-hidden":"true"},nF={key:3,class:"content-state empty-state"},iF=Ue({__name:"QueuePropertiesCard",setup(e){const t=It(),s=Dn(),n=os(),i=v(()=>t.selectedQueue),r=v(()=>s.queueProperties?.data),o=v(()=>s.isLoadingQueueProperties),l=v(()=>{const A=s.queuePropertiesError?.error;return A?`Failed to load queue information: ${A.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(A){!A||!i.value||n.push({name:A,params:{ns:i.value.ns,queue:i.value.name}})}function c(){s.refreshQueueProperties()}function h(A){return A===null||typeof A>"u"?"0":A.toLocaleString()}function p(A){switch(A){case Ht.FIFO_QUEUE:return"FIFO";case Ht.LIFO_QUEUE:return"LIFO";case Ht.PRIORITY_QUEUE:return"Priority";default:return"Unknown"}}function m(A){switch(A){case Ht.FIFO_QUEUE:return"queue-type-fifo";case Ht.LIFO_QUEUE:return"queue-type-lifo";case Ht.PRIORITY_QUEUE:return"queue-type-priority";default:return"queue-type-unknown"}}function g(A){switch(A){case Ht.FIFO_QUEUE:return"First In, First Out - Messages processed in order";case Ht.LIFO_QUEUE:return"Last In, First Out - Most recent messages processed first";case Ht.PRIORITY_QUEUE:return"Priority-based - Higher priority messages processed first";default:return"Unknown queue processing order"}}function E(A){switch(A){case us.POINT_TO_POINT:return"Point-to-Point";case us.PUB_SUB:return"Pub/Sub";default:return"Unknown"}}function _(A){switch(A){case us.POINT_TO_POINT:return"delivery-model-p2p";case us.PUB_SUB:return"delivery-model-pubsub";default:return"delivery-model-unknown"}}function x(A){switch(A){case us.POINT_TO_POINT:return"One-to-one message delivery between producer and consumer";case us.PUB_SUB:return"One-to-many message delivery to multiple subscribers";default:return"Unknown message delivery pattern"}}function C(A){if(!A||!A.limit||!A.interval)return"None";const b=A.interval/1e3;return`${A.limit} msg / ${b}s`}return(A,b)=>(N(),P("div",d2,[a("header",f2,[b[0]||(b[0]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-info-circle-fill title-icon"}),ee(" Queue Details ")]),a("p",{class:"card-subtitle"}," Configuration and real-time statistics for the selected queue ")],-1)),a("div",h2,[a("button",{class:"btn btn-refresh",disabled:o.value,"aria-label":"Refresh queue information",title:"Refresh queue information",onClick:c},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:o.value}])},null,2)],8,m2)])]),a("main",p2,[o.value?(N(),P("div",g2,[...b[1]||(b[1]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-2",role:"status","aria-live":"polite","aria-label":"Loading queue"}),a("h5",{class:"state-title"},"Loading...")],-1)])])):l.value?(N(),P("div",v2,[a("div",b2,[b[2]||(b[2]=a("i",{class:"bi bi-exclamation-triangle-fill text-danger me-2","aria-hidden":"true"},null,-1)),a("span",null,q(l.value),1)]),a("button",{class:"btn btn-sm btn-primary mt-2",onClick:c},[...b[3]||(b[3]=[a("i",{class:"bi bi-arrow-clockwise me-1","aria-hidden":"true"},null,-1),ee(" Retry ",-1)])])])):i.value&&r.value?(N(),P("div",y2,[a("section",_2,[b[12]||(b[12]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-gear-fill","aria-hidden":"true"}),ee(" Configuration ")],-1)),a("div",E2,[a("div",w2,[a("div",C2,[b[5]||(b[5]=a("div",{class:"info-icon queue-name-icon"},[a("i",{class:"bi bi-tag-fill","aria-hidden":"true"})],-1)),a("div",A2,[b[4]||(b[4]=a("div",{class:"info-label"},"Queue Name",-1)),a("div",S2,[a("span",{class:"queue-name",title:i.value.name},q(i.value.name),9,x2)])])])]),a("div",$2,[a("div",T2,[b[7]||(b[7]=a("div",{class:"info-icon namespace-icon"},[a("i",{class:"bi bi-folder-fill","aria-hidden":"true"})],-1)),a("div",O2,[b[6]||(b[6]=a("div",{class:"info-label"},"Namespace",-1)),a("div",N2,[a("span",{class:"namespace",title:i.value.ns},q(i.value.ns),9,k2)])])])]),a("div",P2,[a("div",D2,[b[9]||(b[9]=a("div",{class:"info-icon queue-type-icon"},[a("i",{class:"bi bi-list-ol","aria-hidden":"true"})],-1)),a("div",R2,[b[8]||(b[8]=a("div",{class:"info-label"},"Queue Type",-1)),a("div",M2,[a("span",{class:De(["queue-type-badge",m(r.value.queueType)]),title:g(r.value.queueType)},q(p(r.value.queueType)),11,I2)])])])]),a("div",q2,[a("div",L2,[b[11]||(b[11]=a("div",{class:"info-icon delivery-model-icon"},[a("i",{class:"bi bi-arrow-left-right","aria-hidden":"true"})],-1)),a("div",F2,[b[10]||(b[10]=a("div",{class:"info-label"},"Delivery Model",-1)),a("div",V2,[a("span",{class:De(["delivery-model-badge",_(r.value.deliveryModel)]),title:x(r.value.deliveryModel)},q(E(r.value.deliveryModel)),11,Q2)])])])])])]),a("section",j2,[b[15]||(b[15]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-speedometer2","aria-hidden":"true"}),ee(" Rate Limit ")],-1)),a("div",B2,[a("div",U2,[a("div",K2,[b[14]||(b[14]=a("div",{class:"info-icon rate-limit-icon"},[a("i",{class:"bi bi-speedometer2","aria-hidden":"true"})],-1)),a("div",H2,[b[13]||(b[13]=a("div",{class:"info-label"},"Current Limit",-1)),a("div",G2,[a("span",W2,q(C(r.value.rateLimit)),1)])])])])])]),a("section",z2,[b[17]||(b[17]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-bar-chart-line-fill","aria-hidden":"true"}),ee(" Message Statistics ")],-1)),a("div",Y2,[(N(!0),P(Ae,null,bt(u.value,$=>(N(),P("div",{key:$.label,class:De(["info-item stat-item",{clickable:!!$.routeName}]),role:$.routeName?"link":"listitem",onClick:L=>d($.routeName)},[a("div",J2,[a("div",{class:De(["info-icon",$.iconClass])},[a("i",{class:De($.icon),"aria-hidden":"true"},null,2)],2),a("div",X2,[a("div",eF,q($.label),1),a("div",tF,q(h($.value)),1)]),$.routeName?(N(),P("div",sF,[...b[16]||(b[16]=[a("i",{class:"bi bi-chevron-right"},null,-1)])])):he("",!0)])],10,Z2))),128))])])])):(N(),P("div",nF,[...b[18]||(b[18]=[a("div",{class:"state-content"},[a("div",{class:"empty-icon","aria-hidden":"true"},"📋"),a("h4",{class:"state-title"},"No Queue Selected"),a("p",{class:"state-subtitle"},"Select a queue to view its properties")],-1)])]))])]))}}),rF=Xe(iF,[["__scopeId","data-v-38070cee"]]),aF=Rc({consumerGroupName:yo().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 oF(){const e=Mc(aF),{errors:t,values:s,meta:n,resetForm:i,handleSubmit:r,setFieldValue:o,setValues:l}=Jo({validationSchema:e});return{errors:t,values:s,meta:n,resetForm:i,handleSubmit:r,setFieldValue:o,setValues:l,validationSchema:e}}const lF={class:"form-content"},uF={class:"form-section"},cF={class:"form-group"},dF={key:0,class:"error-section"},fF={class:"error-content"},hF={class:"error-text"},mF={class:"error-message"},pF=["disabled"],gF=["disabled"],vF=Ue({__name:"CreateConsumerGroupModal",props:{isVisible:{type:Boolean},isCreating:{type:Boolean},createError:{}},emits:["close","submit"],setup(e,{emit:t}){const s={mounted:c=>c.focus()},n=e,{errors:i,resetForm:r,validationSchema:o}=oF();Ye(()=>n.isVisible,c=>{c||r()});const l=t;function u(c){l("submit",c)}function d(){l("close")}return(c,h)=>(N(),at(Ss,{"is-visible":e.isVisible,title:"Create Consumer Group",subtitle:"Add a new consumer group for message processing",icon:"bi bi-people-fill",size:"md",onClose:d},{body:qe(()=>[Ce(T(Av),{id:"create-consumer-group-form","validation-schema":T(o),onSubmit:u},{default:qe(()=>[a("div",lF,[a("section",uF,[h[2]||(h[2]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),ee(" Group Information ")]),a("p",{class:"section-description"}," Define the consumer group identifier ")],-1)),a("div",cF,[h[0]||(h[0]=a("label",{for:"consumerGroupName",class:"form-label"},[a("i",{class:"bi bi-tag-fill label-icon"}),ee(" Consumer Group Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(Ce(T(Ns),{id:"consumerGroupName",name:"consumerGroupName",type:"text",placeholder:"e.g. email-processors",class:De(["form-control",{error:T(i).consumerGroupName}]),autocomplete:"off","aria-describedby":"consumerGroupName-help consumerGroupName-error"},null,8,["class"]),[[s]]),Ce(T(Jn),{id:"consumerGroupName-error",name:"consumerGroupName",class:"field-error"}),h[1]||(h[1]=a("div",{id:"consumerGroupName-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),ee(" Use letters, numbers, underscores, and hyphens only ")],-1))])]),h[5]||(h[5]=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"}),ee(" 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)),e.createError?(N(),P("div",dF,[a("div",fF,[h[4]||(h[4]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",hF,[h[3]||(h[3]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",mF,q(e.createError),1)])])])):he("",!0)])]),_:1},8,["validation-schema"])]),footer:qe(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isCreating,onClick:d},[...h[6]||(h[6]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),ee(" Cancel ",-1)])],8,pF),a("button",{type:"submit",class:"btn btn-primary",disabled:e.isCreating,form:"create-consumer-group-form"},[e.isCreating?(N(),P(Ae,{key:0},[h[7]||(h[7]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),h[8]||(h[8]=ee(" Creating Group... ",-1))],64)):(N(),P(Ae,{key:1},[h[9]||(h[9]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),h[10]||(h[10]=ee(" Create Consumer Group ",-1))],64))],8,gF)]),_:1},8,["is-visible"]))}}),bF=Xe(vF,[["__scopeId","data-v-0a3bbba0"]]),yF={class:"dialog-body"},_F={class:"confirmation-message"},EF={class:"consumer-group-details"},wF={class:"group-info"},CF={class:"group-content"},AF=["title"],SF={key:0,class:"error-section",role:"alert"},xF={class:"error-content"},$F={class:"error-text"},TF={class:"error-message"},OF={class:"actions"},NF=["disabled"],kF=["disabled"],PF=Ue({__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")}return(r,o)=>(N(),at(Ss,{"is-visible":e.isVisible,title:"Delete Consumer Group",subtitle:"This action cannot be undone",icon:"bi bi-exclamation-triangle-fill",size:"sm",onClose:i},{body:qe(()=>[a("div",yF,[a("section",_F,[o[2]||(o[2]=a("p",{class:"message-text"}," Are you sure you want to permanently delete the following consumer group? ",-1)),a("div",EF,[a("div",wF,[o[1]||(o[1]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill","aria-hidden":"true"})],-1)),a("div",CF,[o[0]||(o[0]=a("div",{class:"group-label"},"Consumer Group",-1)),a("div",{class:"group-name",title:e.consumerGroup},q(e.consumerGroup),9,AF)])])])]),o[5]||(o[5]=a("section",{class:"warning-section","aria-live":"polite"},[a("div",{class:"warning-content"},[a("div",{class:"warning-icon"},[a("i",{class:"bi bi-shield-exclamation","aria-hidden":"true"})]),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)),e.error?(N(),P("section",SF,[a("div",xF,[o[4]||(o[4]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-circle-fill","aria-hidden":"true"})],-1)),a("div",$F,[o[3]||(o[3]=a("h4",{class:"error-title"},"Deletion Failed",-1)),a("p",TF,q(e.error),1)])])])):he("",!0)])]),footer:qe(()=>[a("div",OF,[a("button",{type:"button",class:"btn btn-outline-secondary",disabled:e.isPending,onClick:i},[...o[6]||(o[6]=[a("i",{class:"bi bi-x-circle me-2","aria-hidden":"true"},null,-1),ee(" Cancel ",-1)])],8,NF),a("button",{type:"button",class:"btn btn-danger",disabled:e.isPending,onClick:n},[e.isPending?(N(),P(Ae,{key:0},[o[7]||(o[7]=a("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},null,-1)),o[8]||(o[8]=ee(" Deleting Group... ",-1))],64)):(N(),P(Ae,{key:1},[o[9]||(o[9]=a("i",{class:"bi bi-trash-fill me-2","aria-hidden":"true"},null,-1)),o[10]||(o[10]=ee(" Delete Consumer Group ",-1))],64))],8,kF)])]),_:1},8,["is-visible"]))}}),DF=Xe(PF,[["__scopeId","data-v-5d5b710f"]]);function RF(){const e=ms(),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 MF={key:0,class:"consumer-groups-card"},IF={class:"card-header"},qF={class:"header-actions"},LF=["disabled"],FF={class:"card-content"},VF={key:0,class:"content-state not-supported-state"},QF={key:0,class:"content-state loading-state"},jF={key:1,class:"content-state error-state"},BF={class:"error-content"},UF={class:"error-text"},KF={class:"error-message"},HF={key:2,class:"content-state empty-state"},GF={class:"state-content"},WF=["disabled"],zF={key:3,class:"consumer-groups-content"},YF={class:"groups-header"},ZF={class:"groups-count"},JF={class:"count-number"},XF={class:"count-label"},eV=["disabled"],tV={class:"consumer-groups-list"},sV={class:"group-info"},nV={class:"group-details"},iV={class:"group-name"},rV={class:"group-actions"},aV=["disabled","onClick"],oV=Ue({__name:"ConsumerGroupsCard",setup(e){const t=It(),s=Dn(),n=Mv(),i=ye(!1),r=ye(!1),o=ye(null),{ns:l,queueName:u}=RF();Ye([l,u],([w,O])=>{w&&O&&t.selectQueue(w,O)},{immediate:!0});function d(w){o.value=w,r.value=!0}function c(){r.value=!1,o.value=null}const h=v(()=>s.isPubSubQueue),p=v(()=>!h.value||!n.consumerGroups.value?.data?[]:n.sortedConsumerGroups.value),m=v(()=>n.hasConsumerGroups.value),g=v(()=>{const w=n.consumerGroupsError.value?.error;if(w)return w.message?w.message:"Failed to load consumer groups"}),E=v(()=>{const w=n.createConsumerGroupError.value?.error;if(w)return w.message?w.message:"Failed to create consumer group"}),_=v(()=>{const w=n.deleteConsumerGroupError.value?.error;if(w)return w.message?w.message:"Failed to delete consumer group"}),x=v(()=>n.isDeletingConsumerGroup.value),C=v(()=>n.isCreatingConsumerGroup.value),A=v(()=>n.isLoadingConsumerGroups.value);function b(){n.refreshConsumerGroups()}async function $(w){try{const O=w;await n.createConsumerGroup(O.consumerGroupName),i.value=!1}catch(O){console.error("Failed to create consumer group:",O)}}async function L(){if(o.value)try{await n.deleteConsumerGroup(o.value),c()}catch(w){console.error("Failed to delete consumer group:",w)}}function F(){i.value=!1,n.resetCreateConsumerGroupMutation()}function I(){c(),n.resetDeleteConsumerGroupMutation()}return(w,O)=>T(t).selectedQueue?(N(),P("div",MF,[a("header",IF,[O[2]||(O[2]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-people-fill title-icon"}),ee(" Consumer Groups ")]),a("p",{class:"card-subtitle"}," Manage message consumer groups for pub/sub queues ")],-1)),a("div",qF,[h.value?(N(),P("button",{key:0,class:"btn btn-refresh",disabled:A.value,title:"Refresh consumer groups",onClick:b},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:A.value}])},null,2)],8,LF)):he("",!0)])]),a("main",FF,[h.value?(N(),P(Ae,{key:1},[A.value?(N(),P("div",QF,[...O[4]||(O[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?(N(),P("div",jF,[a("div",BF,[O[6]||(O[6]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",UF,[O[5]||(O[5]=a("h5",{class:"error-title"},"Failed to load consumer groups",-1)),a("p",KF,q(g.value),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:b},[...O[7]||(O[7]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),ee(" Try Again ",-1)])])])])):m.value?(N(),P("div",zF,[a("div",YF,[a("div",ZF,[a("span",JF,q(p.value.length),1),a("span",XF,"Consumer Group"+q(p.value.length!==1?"s":""),1)]),a("button",{class:"btn btn-primary btn-create",disabled:C.value,onClick:O[1]||(O[1]=S=>i.value=!0)},[C.value?(N(),P(Ae,{key:0},[O[13]||(O[13]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),O[14]||(O[14]=ee(" Creating... ",-1))],64)):(N(),P(Ae,{key:1},[O[15]||(O[15]=a("i",{class:"bi bi-plus-circle me-2"},null,-1)),O[16]||(O[16]=ee(" Create Group ",-1))],64))],8,eV)]),a("div",tV,[(N(!0),P(Ae,null,bt(p.value,S=>(N(),P("div",{key:S,class:"consumer-group-item"},[a("div",sV,[O[18]||(O[18]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",nV,[a("div",iV,q(S),1),O[17]||(O[17]=a("div",{class:"group-description"}," Consumer group for message processing ",-1))])]),a("div",rV,[a("button",{class:"btn btn-outline-danger btn-delete",disabled:x.value,title:"Delete consumer group",onClick:j=>d(S)},[x.value&&o.value===S?(N(),P(Ae,{key:0},[O[19]||(O[19]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),O[20]||(O[20]=ee(" Deleting... ",-1))],64)):(N(),P(Ae,{key:1},[O[21]||(O[21]=a("i",{class:"bi bi-trash me-2"},null,-1)),O[22]||(O[22]=ee(" Delete ",-1))],64))],8,aV)])]))),128))])])):(N(),P("div",HF,[a("div",GF,[O[12]||(O[12]=ai('<div class="empty-icon" data-v-2744aa11>👥</div><h4 class="state-title" data-v-2744aa11>No Consumer Groups</h4><p class="state-subtitle" data-v-2744aa11> 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-2744aa11><div class="benefit-item" data-v-2744aa11><i class="bi bi-check-circle-fill benefit-icon" data-v-2744aa11></i><span data-v-2744aa11>Load-balance message processing within a group</span></div><div class="benefit-item" data-v-2744aa11><i class="bi bi-check-circle-fill benefit-icon" data-v-2744aa11></i><span data-v-2744aa11>Ensure each message is processed only once per group</span></div><div class="benefit-item" data-v-2744aa11><i class="bi bi-check-circle-fill benefit-icon" data-v-2744aa11></i><span data-v-2744aa11>Build fault-tolerant and scalable consumer systems</span></div></div>',4)),a("button",{class:"btn btn-primary btn-create-first",disabled:C.value,onClick:O[0]||(O[0]=S=>i.value=!0)},[C.value?(N(),P(Ae,{key:0},[O[8]||(O[8]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),O[9]||(O[9]=ee(" Creating... ",-1))],64)):(N(),P(Ae,{key:1},[O[10]||(O[10]=a("i",{class:"bi bi-plus-circle me-2"},null,-1)),O[11]||(O[11]=ee(" Create Your First Consumer Group ",-1))],64))],8,WF)])]))],64)):(N(),P("div",VF,[...O[3]||(O[3]=[ai('<div class="state-content" data-v-2744aa11><div class="not-supported-icon" data-v-2744aa11><i class="bi bi-info-circle-fill" data-v-2744aa11></i></div><h4 class="state-title" data-v-2744aa11>Consumer Groups Not Supported</h4><p class="state-subtitle" data-v-2744aa11> Point-to-point queues use direct messaging where messages are delivered directly to individual consumers. </p><div class="state-info" data-v-2744aa11><div class="info-item" data-v-2744aa11><i class="bi bi-arrow-right me-2" data-v-2744aa11></i><span data-v-2744aa11>Messages are consumed by a single consumer</span></div><div class="info-item" data-v-2744aa11><i class="bi bi-arrow-right me-2" data-v-2744aa11></i><span data-v-2744aa11>No message broadcasting or group management needed</span></div></div></div>',1)])]))]),Ce(bF,{"is-visible":i.value,"is-creating":C.value,"create-error":E.value,onSubmit:$,onClose:F},null,8,["is-visible","is-creating","create-error"]),Ce(DF,{error:_.value,"is-pending":x.value,"consumer-group":String(o.value),"is-visible":r.value,onClose:I,onDelete:L},null,8,["error","is-pending","consumer-group","is-visible"])])):he("",!0)}}),lV=Xe(oV,[["__scopeId","data-v-2744aa11"]]),uV=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"GET",signal:s})),cV=(e,t)=>["api","v1","namespaces",e,"queues",t,"rate-limit"],dV=(e,t,s)=>{const{query:n}=s??{};return{queryKey:cV(e,t),queryFn:({signal:o})=>uV(e,t,o),enabled:v(()=>!!(T(e)&&T(t))),...n}};function fV(e,t,s,n){const i=dV(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const hV=(e,t,s)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"PUT",headers:{"Content-Type":"application/json"},data:s})),mV=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 hV(r,o,l)},...s}},pV=(e,t)=>{const s=mV(e);return Nt(s)},gV=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"DELETE"})),vV=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 gV(r,o)},...s}},bV=(e,t)=>{const s=vV(e);return Nt(s)};function yV(){const e=It(),t=fV(v(()=>e.selectedQueue?.ns||""),v(()=>e.selectedQueue?.name||""),{query:{enabled:v(()=>!!e.selectedQueue?.ns&&!!e.selectedQueue?.name),retry:!1}}),s=pV({mutation:{onSuccess:async()=>{await t.refetch()}}}),n=bV({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(()=>!!i.value?.data);async function g($){if(!e.selectedQueue)throw new Error("No queue selected");await s.mutateAsync({...e.selectedQueue,data:$})}async function E(){if(!e.selectedQueue)throw new Error("No queue selected");await n.mutateAsync(e.selectedQueue)}async function _(){await t.refetch()}function x(){return e.selectedQueue?t.refetch():Promise.resolve()}function C(){s.reset()}function A(){n.reset()}function b(){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:E,refreshRateLimit:_,refetchRateLimitData:x,resetSetRateLimitMutation:C,resetClearRateLimitMutation:A,resetAllMutations:b}}const _V={class:"body"},EV={class:"message"},wV={class:"subject"},CV=["disabled"],AV=Ue({__name:"ClearRateLimitConfirmationModal",props:{isVisible:{type:Boolean},queueName:{},queueNs:{},isProcessing:{type:Boolean,default:!1}},emits:["close","confirm"],setup(e,{emit:t}){const s=e,n=t,i=v(()=>{const u=(s.queueName??"").trim(),d=(s.queueNs??"").trim();return u&&d?`"${u}@${d}"`:u?`"${u}"`:d?`"@${d}"`:"this queue"});function r(){n("close")}function o(){n("close")}function l(){s.isProcessing||n("confirm")}return(u,d)=>(N(),at(Ss,{"is-visible":e.isVisible,title:"Clear rate limit",icon:"bi bi-exclamation-triangle-fill",size:"sm",onClose:r},{body:qe(()=>[a("div",_V,[a("p",EV,[d[0]||(d[0]=ee(" Are you sure you want to clear the rate limit for ",-1)),a("strong",wV,q(i.value),1),d[1]||(d[1]=ee("? ",-1))]),d[2]||(d[2]=a("div",{class:"callout warning",role:"note","aria-label":"Warning"},[a("i",{class:"bi bi-info-circle me-2","aria-hidden":"true"}),a("span",null," This will remove any active throttling and allow messages to be without rate restriction until a new limit is applied. ")],-1))])]),footer:qe(()=>[a("button",{type:"button",class:"btn btn-outline-secondary",onClick:o}," Cancel "),a("button",{type:"button",class:"btn btn-danger",disabled:e.isProcessing,onClick:l},[e.isProcessing?(N(),P(Ae,{key:0},[d[3]||(d[3]=a("span",{class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},null,-1)),d[4]||(d[4]=ee(" Clearing... ",-1))],64)):(N(),P(Ae,{key:1},[d[5]||(d[5]=a("i",{class:"bi bi-trash me-2","aria-hidden":"true"},null,-1)),d[6]||(d[6]=ee(" Clear rate limit ",-1))],64))],8,CV)]),_:1},8,["is-visible"]))}}),SV=Xe(AV,[["__scopeId","data-v-22e684ae"]]),xV={key:0,class:"rate-limit-card"},$V={class:"card-header"},TV={class:"header-actions"},OV=["disabled"],NV={class:"card-content"},kV={key:0,class:"content-state loading-state"},PV={key:1,class:"content-state error-state"},DV={class:"error-content"},RV={class:"error-text"},MV={class:"error-message"},IV={key:2,class:"rate-limit-content"},qV={key:0,class:"rate-limit-display"},LV={key:0,class:"no-limit-section"},FV={class:"no-limit-actions"},VV=["disabled"],QV={key:1,class:"rate-limit-info"},jV={class:"rate-limit-status"},BV={class:"rate-limit-details"},UV={class:"rate-limit-value"},KV={class:"rate-limit-interval"},HV={class:"rate-limit-actions"},GV=["disabled"],WV=["disabled"],zV={key:1,class:"rate-limit-form"},YV={class:"form-header"},ZV={class:"form-title"},JV={class:"form-body"},XV={class:"form-grid"},eQ={class:"form-group"},tQ={class:"form-group"},sQ={class:"input-group"},nQ={class:"rate-limit-preview"},iQ={class:"preview-content"},rQ={class:"preview-text"},aQ={class:"form-footer"},oQ=["disabled"],lQ=["disabled"],uQ={key:1,class:"content-state empty-state"},cQ=Ue({__name:"QueueRateLimitCard",setup(e){const t=It(),s=yV(),n=v(()=>t.selectedQueue),i=Rc({limit:Uh().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:Uh().int("Interval must be a whole number").positive("Interval must be greater than 0"),intervalUnit:yo().refine(I=>["1000","60000","3600000"].includes(I),{message:"Please select a valid time unit"})}),r=Mc(i),o={limit:100,interval:1,intervalUnit:"1000"},l=ye(!1),u=v(()=>s.isClearingRateLimit.value||s.isUpdatingRateLimit.value),d=ye(!1),c=ye(o),h=v(()=>s.isLoadingRateLimit.value),p=v(()=>{const I=s.setRateLimitError,w=s.clearRateLimitError,O=I.value?.error||w.value?.error;return O?`Failed to load rate limit settings: ${O.message} (${O.code})`:null}),m=v(()=>s.rateLimit.value?.data||null),g=v(()=>s.hasRateLimit.value);function E(I){if(!I)return"1 second";if(I>=36e5&&I%36e5===0){const w=I/36e5;return`${w} hour${w>1?"s":""}`}else if(I>=6e4&&I%6e4===0){const w=I/6e4;return`${w} minute${w>1?"s":""}`}else{const w=I/1e3;return`${w} second${w>1?"s":""}`}}function _(I){switch(I){case"3600000":return"hour";case"60000":return"minute";default:return"second"}}function x(I){return I?I>=36e5&&I%36e5===0?{interval:I/36e5,intervalUnit:"3600000"}:I>=6e4&&I%6e4===0?{interval:I/6e4,intervalUnit:"60000"}:{interval:I/1e3,intervalUnit:"1000"}:{interval:1,intervalUnit:"1000"}}Ye(m,I=>{if(I){const{interval:w,intervalUnit:O}=x(I.interval);c.value={limit:I.limit,interval:w,intervalUnit:O}}else c.value=o},{immediate:!0});function C(){s.refreshRateLimit()}function A(){if(g.value&&m.value){const{interval:I,intervalUnit:w}=x(m.value.interval);c.value={limit:m.value.limit,interval:I,intervalUnit:w}}else c.value=o;l.value=!0}async function b(I){const{interval:w,limit:O,intervalUnit:S}=I;try{const j=w*parseInt(S);if(j<1e3){alert("Minimum interval is 1 second (1000ms)");return}const X={limit:O,interval:j};await s.setRateLimit(X),l.value=!1}catch(j){console.error("Error saving rate limit:",j)}}async function $(){try{await s.clearRateLimit(),d.value=!1}catch(I){console.error("Error clearing rate limit:",I)}}function L(){d.value=!0}function F(){l.value=!1}return Bt(()=>{C()}),(I,w)=>n.value?(N(),P("div",xV,[a("header",$V,[w[1]||(w[1]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-speedometer2 title-icon"}),ee(" Rate Limiting ")]),a("p",{class:"card-subtitle"},"Control message processing speed")],-1)),a("div",TV,[a("button",{class:"btn btn-refresh",disabled:h.value,title:"Refresh rate limit settings",onClick:C},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:h.value}])},null,2)],8,OV)])]),a("main",NV,[n.value?(N(),P(Ae,{key:0},[h.value?(N(),P("div",kV,[...w[2]||(w[2]=[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?(N(),P("div",PV,[a("div",DV,[w[4]||(w[4]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",RV,[w[3]||(w[3]=a("h5",{class:"error-title"},"Failed to load rate limit settings",-1)),a("p",MV,q(p.value),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:C},[...w[5]||(w[5]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),ee(" Try Again ",-1)])])])])):(N(),P("div",IV,[l.value?he("",!0):(N(),P("div",qV,[g.value?(N(),P("div",QV,[a("div",jV,[w[9]||(w[9]=a("div",{class:"status-indicator"},[a("div",{class:"status-badge active"},[a("i",{class:"bi bi-check-circle-fill me-1"}),ee(" Active ")])],-1)),a("div",BV,[a("h4",UV,[ee(q(m.value?.limit||0)+" messages ",1),a("span",KV," per "+q(E(m.value?.interval)),1)]),w[8]||(w[8]=a("p",{class:"rate-limit-description"}," Current rate limiting configuration for this queue ",-1))])]),a("div",HV,[a("button",{class:"btn btn-outline-primary btn-edit",disabled:u.value,onClick:A},[...w[10]||(w[10]=[a("i",{class:"bi bi-pencil me-2"},null,-1),ee(" Edit ",-1)])],8,GV),a("button",{class:"btn btn-outline-danger btn-clear",disabled:u.value,onClick:L},[...w[11]||(w[11]=[a("i",{class:"bi bi-trash me-2"},null,-1),ee(" Clear ",-1)])],8,WV)])])):(N(),P("div",LV,[w[7]||(w[7]=ai('<div class="no-limit-content" data-v-43b7689a><div class="no-limit-icon" data-v-43b7689a>⚡</div><div class="no-limit-text" data-v-43b7689a><h4 class="no-limit-title" data-v-43b7689a>No Rate Limit Configured</h4><p class="no-limit-description" data-v-43b7689a> Messages are processed without speed restrictions. Set a rate limit to control processing speed and prevent system overload. </p></div></div>',1)),a("div",FV,[a("button",{class:"btn btn-primary btn-set-limit",disabled:u.value,onClick:A},[...w[6]||(w[6]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),ee(" Set Rate Limit ",-1)])],8,VV)])]))])),l.value?(N(),P("div",zV,[a("div",YV,[a("h4",ZV,q(g.value?"Edit Rate Limit":"Set Rate Limit"),1),w[12]||(w[12]=a("p",{class:"form-subtitle"}," Configure the maximum number of messages processed per time interval ",-1))]),Ce(T(Av),{"initial-values":c.value,"validation-schema":T(r),onSubmit:b},{default:qe(()=>[a("div",JV,[a("div",XV,[a("div",eQ,[w[13]||(w[13]=a("label",{for:"limit",class:"form-label"},[a("i",{class:"bi bi-hash me-1"}),ee(" Message Limit ")],-1)),Ce(T(Ns),{id:"limit",name:"limit",type:"number",class:"form-control",min:"1",max:"1000000",required:"",disabled:u.value,placeholder:"e.g. 100"},null,8,["disabled"]),Ce(T(Jn),{name:"limit",class:"field-error"}),w[14]||(w[14]=a("div",{class:"field-help"},"Maximum messages to process",-1))]),a("div",tQ,[w[16]||(w[16]=a("label",{for:"interval",class:"form-label"},[a("i",{class:"bi bi-clock me-1"}),ee(" Time Interval ")],-1)),a("div",sQ,[Ce(T(Ns),{id:"interval",name:"interval",type:"number",class:"form-control",min:"1",required:"",disabled:u.value,placeholder:"e.g. 1"},null,8,["disabled"]),Ce(T(Ns),{name:"intervalUnit",as:"select",class:"form-select"},{default:qe(()=>[...w[15]||(w[15]=[a("option",{value:"1000"},"Seconds",-1),a("option",{value:"60000"},"Minutes",-1),a("option",{value:"3600000"},"Hours",-1)])]),_:1})]),Ce(T(Jn),{name:"interval",class:"field-error"}),w[17]||(w[17]=a("div",{class:"field-help"},"Minimum interval is 1 second",-1))])]),a("div",nQ,[a("div",iQ,[w[20]||(w[20]=a("i",{class:"bi bi-info-circle preview-icon"},null,-1)),a("div",rQ,[w[18]||(w[18]=ee(" This will limit the queue to processing ",-1)),Ce(T(Ns),{name:"limit"},{default:qe(({field:O})=>[a("strong",null,q(O.value||0),1)]),_:1}),w[19]||(w[19]=ee(" messages per ",-1)),Ce(T(Ns),{name:"interval"},{default:qe(({field:O})=>[a("strong",null,q(O.value||1),1)]),_:1}),Ce(T(Ns),{name:"intervalUnit"},{default:qe(({field:O})=>[a("strong",null,q(_(O.value))+"(s)",1)]),_:1})])])])]),a("div",aQ,[a("button",{type:"button",class:"btn btn-outline-secondary btn-cancel",disabled:u.value,onClick:F}," Cancel ",8,oQ),a("button",{type:"submit",class:"btn btn-primary btn-save",disabled:u.value},[u.value?(N(),P(Ae,{key:0},[w[21]||(w[21]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),w[22]||(w[22]=ee(" Saving... ",-1))],64)):(N(),P(Ae,{key:1},[w[23]||(w[23]=a("i",{class:"bi bi-check-lg me-2"},null,-1)),w[24]||(w[24]=ee(" Save Rate Limit ",-1))],64))],8,lQ)])]),_:1},8,["initial-values","validation-schema"])])):he("",!0)]))],64)):(N(),P("div",uQ,[...w[25]||(w[25]=[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)])]))]),Ce(SV,{"is-visible":d.value,"queue-name":n.value?.name??null,"queue-ns":n.value?.ns??null,"is-processing":u.value,onClose:w[0]||(w[0]=O=>d.value=!1),onConfirm:$},null,8,["is-visible","queue-name","queue-ns","is-processing"])])):he("",!0)}}),dQ=Xe(cQ,[["__scopeId","data-v-43b7689a"]]),Ll=5e3;function fQ(){const e=It(),t=ye(Ll),s=oO(v(()=>e.selectedQueue?.ns||""),v(()=>e.selectedQueue?.name||""),{query:{enabled:v(()=>!!e.selectedQueue?.ns&&!!e.selectedQueue?.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(()=>n.value?.data?Object.entries(n.value.data).map(([Z,Y])=>({id:Z,consumerId:Z,...Y})):[]),u=v(()=>n.value?.data||{}),d=v(()=>Object.keys(u.value)),c=v(()=>l.value.length>0),h=v(()=>[...l.value].sort((Z,Y)=>Z.id.localeCompare(Y.id))),p=v(()=>[...l.value].sort((Z,Y)=>Y.createdAt-Z.createdAt)),m=v(()=>[...l.value].sort((Z,Y)=>Z.hostname.localeCompare(Y.hostname))),g=v(()=>l.value.length),E=v(()=>{const Z={};return l.value.forEach(Y=>{Z[Y.hostname]||(Z[Y.hostname]=[]),Z[Y.hostname].push(Y)}),Z}),_=v(()=>[...new Set(l.value.map(Z=>Z.hostname))].sort()),x=v(()=>{const Z={total:l.value.length,uniqueHostnames:_.value.length,averageCreatedAt:0,oldestConsumer:null,newestConsumer:null};if(l.value.length>0){const Y=l.value.reduce((se,ue)=>se+ue.createdAt,0);Z.averageCreatedAt=Y/l.value.length;const G=[...l.value].sort((se,ue)=>se.createdAt-ue.createdAt);Z.oldestConsumer=G[0],Z.newestConsumer=G[G.length-1]}return Z});async function C(){await s.refetch()}function A(){return e.selectedQueue?s.refetch():Promise.resolve()}function b(){t.value=Ll,console.log(`Real-time updates enabled with ${Ll}ms interval`)}function $(){t.value=!1,console.log("Real-time updates disabled")}function L(Z){return l.value.find(Y=>Y.id===Z)||null}function F(Z){return u.value[Z]||null}function I(Z){return l.value.filter(Y=>Y.hostname===Z)}function w(Z){return l.value.filter(Y=>Y.pid===Z)}function O(Z){return l.value.filter(Y=>Y.createdAt>Z)}function S(Z){return l.value.filter(Y=>Y.createdAt<Z)}function j(Z){const Y=Z.toLowerCase();return l.value.filter(G=>G.id.toLowerCase().includes(Y)||G.hostname.toLowerCase().includes(Y)||G.pid.toString().includes(Y)||G.ipAddress.some(se=>se.includes(Z)))}function X(Z){return!!Z&&Z.trim().length>0}function W(Z){return Z in u.value}function fe(){return!!e.selectedQueue?.ns&&!!e.selectedQueue?.name}function ne(){return e.selectedQueue?`${e.selectedQueue.ns}/${e.selectedQueue.name}`:""}function Q(Z){return Date.now()-Z.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:E,uniqueHostnames:_,consumerStats:x,refreshConsumers:C,refetchConsumersData:A,enableRealTimeUpdates:b,disableRealTimeUpdates:$,findConsumerById:L,getConsumerData:F,getConsumersByHostname:I,getConsumersByPid:w,getConsumersCreatedAfter:O,getConsumersCreatedBefore:S,searchConsumers:j,isValidConsumerId:X,hasConsumerWithId:W,isValidQueue:fe,getQueueDisplayName:ne,getConsumerUptime:Q}}const hQ={key:0,class:"queue-consumers-card"},mQ={class:"card-header"},pQ={class:"header-actions"},gQ=["title"],vQ=["disabled"],bQ={class:"card-content"},yQ={key:0,class:"content-state loading-state"},_Q={key:1,class:"content-state error-state",role:"alert"},EQ={class:"error-content"},wQ={class:"error-text"},CQ={class:"error-message"},AQ={key:2,class:"content-state empty-state"},SQ={class:"state-content"},xQ={class:"empty-info"},$Q={class:"info-item"},TQ={key:3,class:"consumers-content"},OQ={class:"consumers-stats",role:"group","aria-label":"Consumers statistics"},NQ={class:"stat-item"},kQ={class:"stat-content"},PQ={class:"stat-number"},DQ={class:"stat-item"},RQ={class:"stat-content"},MQ={class:"stat-number"},IQ={key:0,class:"stat-item"},qQ={class:"stat-content"},LQ={class:"stat-number"},FQ={class:"consumers-filters"},VQ={class:"filter-group"},QQ={class:"filter-group"},jQ=["value"],BQ={class:"consumers-header"},UQ={class:"consumers-count"},KQ={key:0,class:"filtered-count"},HQ={class:"indicator-text"},GQ={class:"consumers-list"},WQ={class:"consumer-header"},zQ={class:"consumer-id"},YQ=["title"],ZQ={class:"consumer-status"},JQ=["title"],XQ={class:"consumer-details"},e4={class:"detail-row"},t4={class:"detail-item"},s4=["title"],n4={class:"detail-item"},i4=["title"],r4={class:"detail-row"},a4={class:"detail-item"},o4={class:"detail-value uptime"},l4={class:"detail-item"},u4={class:"detail-value created-at"},c4={class:"detail-row"},d4={class:"detail-item ip-addresses"},f4={class:"ip-list"},h4=Ue({__name:"QueueConsumersCard",setup(e){const t=It(),s=fQ(),n=ye(!0),i=ye(""),r=ye(""),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 A=o.value;return i.value&&(A=A.filter(b=>b.hostname===i.value)),r.value.trim()&&(A=s.searchConsumers(r.value)),A});function g(){s.refreshConsumers()}function E(){n.value=!n.value,n.value?s.enableRealTimeUpdates():s.disableRealTimeUpdates()}function _(){i.value="",r.value=""}function x(A){const $=s.getConsumerUptime(A)/(1e3*60);return $<1?"status-new":$<60?"status-active":"status-stable"}function C(A){const $=s.getConsumerUptime(A)/(1e3*60);return $<1?"New":$<60?"Active":"Stable"}return Bt(()=>{n.value&&s.enableRealTimeUpdates()}),uc(()=>{s.disableRealTimeUpdates()}),(A,b)=>T(t).selectedQueue?(N(),P("div",hQ,[a("header",mQ,[b[2]||(b[2]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-people-fill title-icon"}),ee(" Queue Consumers ")]),a("p",{class:"card-subtitle"}," Active consumers processing messages from this queue ")],-1)),a("div",pQ,[a("button",{class:De(["btn btn-toggle",{active:n.value}]),title:n.value?"Disable real-time updates":"Enable real-time updates",onClick:E},[a("i",{class:De(["bi",n.value?"bi-pause-fill":"bi-play-fill"])},null,2)],10,gQ),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,vQ)])]),a("main",bQ,[l.value?(N(),P("div",yQ,[...b[3]||(b[3]=[a("div",{class:"state-content"},[a("div",{class:"spinner-border text-primary mb-3",role:"status","aria-live":"polite","aria-label":"Loading consumers"}),a("h5",{class:"state-title"},"Loading consumers..."),a("p",{class:"state-subtitle"}," Please wait while we fetch the active consumers ")],-1)])])):d.value?(N(),P("div",_Q,[a("div",EQ,[b[5]||(b[5]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger","aria-hidden":"true"})],-1)),a("div",wQ,[b[4]||(b[4]=a("h5",{class:"error-title"},"Failed to load consumers",-1)),a("p",CQ,q(T(ct)(d.value)?.message),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:g},[...b[6]||(b[6]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),ee(" Try Again ",-1)])])])])):c.value?(N(),P("div",TQ,[a("div",OQ,[a("div",NQ,[b[13]||(b[13]=a("div",{class:"stat-icon total-icon","aria-hidden":"true"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",kQ,[a("div",PQ,q(h.value.total),1),b[12]||(b[12]=a("div",{class:"stat-label"},"Total Consumers",-1))])]),a("div",DQ,[b[15]||(b[15]=a("div",{class:"stat-icon hostnames-icon","aria-hidden":"true"},[a("i",{class:"bi bi-hdd-network-fill"})],-1)),a("div",RQ,[a("div",MQ,q(h.value.uniqueHostnames),1),b[14]||(b[14]=a("div",{class:"stat-label"},"Unique Hosts",-1))])]),h.value.newestConsumer?(N(),P("div",IQ,[b[17]||(b[17]=a("div",{class:"stat-icon newest-icon","aria-hidden":"true"},[a("i",{class:"bi bi-clock-fill"})],-1)),a("div",qQ,[a("div",LQ,q(T(gh)(h.value.newestConsumer?.createdAt)),1),b[16]||(b[16]=a("div",{class:"stat-label"},"Newest Consumer",-1))])])):he("",!0)]),a("div",FQ,[a("div",VQ,[b[18]||(b[18]=a("label",{class:"filter-label",for:"consumers-search"},"Search:",-1)),ss(a("input",{id:"consumers-search","onUpdate:modelValue":b[0]||(b[0]=$=>r.value=$),type:"text",class:"form-control filter-input",placeholder:"Search by ID, hostname, PID, or IP..."},null,512),[[rn,r.value]])]),a("div",QQ,[b[20]||(b[20]=a("label",{class:"filter-label",for:"hostname-select"},"Hostname:",-1)),ss(a("select",{id:"hostname-select","onUpdate:modelValue":b[1]||(b[1]=$=>i.value=$),class:"form-select filter-select"},[b[19]||(b[19]=a("option",{value:""},"All Hostnames",-1)),(N(!0),P(Ae,null,bt(p.value,$=>(N(),P("option",{key:$,value:$},q($),9,jQ))),128))],512),[[Up,i.value]])]),i.value||r.value?(N(),P("button",{key:0,class:"btn btn-outline-secondary btn-clear-filters",onClick:_},[...b[21]||(b[21]=[a("i",{class:"bi bi-x-circle me-1","aria-hidden":"true"},null,-1),ee(" Clear ",-1)])])):he("",!0)]),a("div",BQ,[a("h5",UQ,[ee(q(m.value.length)+" Consumer"+q(m.value.length!==1?"s":"")+" ",1),m.value.length!==o.value.length?(N(),P("span",KQ," (filtered from "+q(o.value.length)+") ",1)):he("",!0)]),a("div",{class:De(["real-time-indicator",{active:n.value}]),role:"status","aria-live":"polite"},[b[22]||(b[22]=a("i",{class:"bi bi-circle-fill indicator-dot","aria-hidden":"true"},null,-1)),a("span",HQ,q(n.value?"Live":"Paused"),1)],2)]),a("div",GQ,[(N(!0),P(Ae,null,bt(m.value,$=>(N(),P("div",{key:$.id,class:"consumer-item"},[a("div",WQ,[a("div",zQ,[b[23]||(b[23]=a("i",{class:"bi bi-person-fill consumer-icon","aria-hidden":"true"},null,-1)),a("span",{class:"id-text",title:$.id},q($.id),9,YQ)]),a("div",ZQ,[a("span",{class:De(["status-badge",x($)]),title:`Consumer status: ${C($)}`},q(C($)),11,JQ)])]),a("div",XQ,[a("div",e4,[a("div",t4,[b[24]||(b[24]=a("i",{class:"bi bi-hdd-network detail-icon","aria-hidden":"true"},null,-1)),b[25]||(b[25]=a("span",{class:"detail-label"},"Hostname:",-1)),a("span",{class:"detail-value hostname",title:$.hostname},q($.hostname),9,s4)]),a("div",n4,[b[26]||(b[26]=a("i",{class:"bi bi-gear detail-icon","aria-hidden":"true"},null,-1)),b[27]||(b[27]=a("span",{class:"detail-label"},"PID:",-1)),a("span",{class:"detail-value pid",title:String($.pid)},q($.pid),9,i4)])]),a("div",r4,[a("div",a4,[b[28]||(b[28]=a("i",{class:"bi bi-clock detail-icon","aria-hidden":"true"},null,-1)),b[29]||(b[29]=a("span",{class:"detail-label"},"Uptime:",-1)),a("span",o4,q(T(gh)($.createdAt)),1)]),a("div",l4,[b[30]||(b[30]=a("i",{class:"bi bi-calendar detail-icon","aria-hidden":"true"},null,-1)),b[31]||(b[31]=a("span",{class:"detail-label"},"Started:",-1)),a("span",u4,q(T(Oc)($.createdAt)),1)])]),a("div",c4,[a("div",d4,[b[32]||(b[32]=a("i",{class:"bi bi-router detail-icon","aria-hidden":"true"},null,-1)),b[33]||(b[33]=a("span",{class:"detail-label"},"IP Addresses:",-1)),a("div",f4,[(N(!0),P(Ae,null,bt($.ipAddress,L=>(N(),P("span",{key:L,class:"ip-badge"},q(L),1))),128))])])])])]))),128))])])):(N(),P("div",AQ,[a("div",SQ,[b[9]||(b[9]=a("div",{class:"empty-icon","aria-hidden":"true"},"👥",-1)),b[10]||(b[10]=a("h4",{class:"state-title"},"No Active Consumers",-1)),b[11]||(b[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",xQ,[b[8]||(b[8]=a("div",{class:"info-item"},[a("i",{class:"bi bi-info-circle me-2","aria-hidden":"true"}),a("span",null,"Consumers will appear here when they connect to the queue")],-1)),a("div",$Q,[b[7]||(b[7]=a("i",{class:"bi bi-info-circle me-2","aria-hidden":"true"},null,-1)),a("span",null,"Real-time updates are "+q(n.value?"enabled":"disabled"),1)])])])]))])])):he("",!0)}}),m4=Xe(h4,[["__scopeId","data-v-a0e686b6"]]),p4={class:"queue-properties-view"},g4={key:0,class:"details-grid"},v4={class:"details-column-main"},b4={class:"details-column-secondary"},y4="Queue Details & Management",_4=Ue({__name:"QueuePropertiesView",setup(e){const t=ms(),s=os(),n=Xt(),i=It(),r=Dn(),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}=fv(async()=>{await s.push({name:"Queues"})}),E=ye(!1);function _(){g.reset(),E.value=!0}function x(){E.value=!1}async function C(){u.value&&await h({ns:u.value.ns,name:u.value.name})}const A=v(()=>{const I=m.value||c.value;return ct(I)}),b=v(()=>c.value?.error?.message==="QueueNotFoundError"),$=v(()=>`${l.value} @ ${o.value}`),L=v(()=>[{id:"delete-queue",label:"Delete",icon:"bi bi-trash",variant:"danger",disabled:d.value||p.value,loading:p.value,handler:_}]);function F(){i.clearSelectedQueue(),s.push({name:"Queues"})}return At(()=>{n.setPageHeader({title:$.value,subtitle:y4,icon:"bi bi-card-list"}),n.setLoadingState(d.value),b.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:F}),n.setPageActions([])):A.value&&!E.value?(n.setErrorState(A.value),n.setPageActions([])):(n.setEmptyState(!1),n.setErrorState(null),n.setPageActions(L.value))}),Ye([o,l],([I,w])=>{I&&w?i.selectQueue(I,w):i.clearSelectedQueue()},{immediate:!0}),c2([{isVisible:E,onEscape:x}]),(I,w)=>(N(),P("div",p4,[Ce(ps,null,{default:qe(()=>[u.value?(N(),P("div",g4,[a("div",v4,[Ce(rF),Ce(lV)]),a("div",b4,[Ce(dQ),Ce(m4)])])):he("",!0)]),_:1}),Ce(Dv,{queue:{ns:o.value,name:l.value},"is-deleting":T(p),"is-visible":E.value,onCancel:x,onConfirm:C},null,8,["queue","is-deleting","is-visible"])]))}}),E4=Xe(_4,[["__scopeId","data-v-8e3989c7"]]),w4=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/scheduled-messages`,method:"GET",params:T(s),signal:n}));function C4(e,t=20){return aa(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>w4(n,i,{page:r,pageSize:o}),queryKeyPrefix:"scheduled-messages",enableDelete:!0,enableRequeue:!1},t)}const A4=Ue({__name:"ScheduledMessagesView",setup(e){const t=ms(),s=Xt(),n=It(),i=Dn(),r=v(()=>({ns:t.params.ns,name:t.params.queue}));Ye(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:E}=C4(r,20),_=v(()=>o.value?`Scheduled Messages - ${`${o.value.name}@${o.value.ns}`}`:"Scheduled Messages"),x=v(()=>{if(o.value)return i.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});At(()=>{s.setPageHeader({title:_.value,subtitle:x.value,icon:"bi bi-clock"})}),At(()=>{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 C($){E&&await E($)}function A($){p($)}async function b($){await m($)}return($,L)=>(N(),at(ps,{"show-section-header":!1},{default:qe(()=>[o.value?(N(),at(ra,{key:0,messages:T(l),"is-loading":T(d),error:T(h),pagination:T(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":T(c),"is-requeuing":!1,onRefresh:T(g),onDeleteMessage:C,onPageChange:A,onPageSizeChange:b,onFirstPage:L[0]||(L[0]=F=>A(1)),onPreviousPage:L[1]||(L[1]=F=>A(T(u).currentPage-1)),onNextPage:L[2]||(L[2]=F=>A(T(u).currentPage+1)),onLastPage:L[3]||(L[3]=F=>A(T(u).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","onRefresh"])):he("",!0)]),_:1}))}}),S4=(e,t,s,n)=>(e=T(e),t=T(t),s=T(s),Je({url:`/api/v1/namespaces/${e}/queues/${t}/messages`,method:"GET",params:T(s),signal:n}));function x4(e,t=20){return aa(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>S4(n,i,{page:r,pageSize:o}),queryKeyPrefix:"queue-messages",enableDelete:!0,enableRequeue:!0},t)}const $4=Ue({__name:"QueueMessagesView",setup(e){const t=ms(),s=Xt(),n=It(),i=v(()=>({ns:t.params.ns,name:t.params.queue}));Ye(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:E}=x4(i,20),_=v(()=>i.value.ns?`Queue Messages - ${i.value.name}@${i.value.ns}`:"Queue Messages");At(()=>{s.setPageHeader({title:_.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 x($){g&&await g($)}async function C($){E&&await E($)}function A($){h($)}async function b($){await p($)}return($,L)=>(N(),at(ps,{"show-section-header":!1},{default:qe(()=>[Ce(ra,{messages:T(r),"is-loading":T(l),error:T(c),pagination:T(o),"show-pagination":!0,"empty-message":"No messages found for this queue",icon:"bi-clock","is-deleting":T(u),"is-requeuing":T(d),onRefresh:T(m),onDeleteMessage:x,onRequeueMessage:C,onPageChange:A,onPageSizeChange:b,onFirstPage:L[0]||(L[0]=F=>A(1)),onPreviousPage:L[1]||(L[1]=F=>A(T(o).currentPage-1)),onNextPage:L[2]||(L[2]=F=>A(T(o).currentPage+1)),onLastPage:L[3]||(L[3]=F=>A(T(o).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","is-requeuing","onRefresh"])]),_:1}))}}),T4={class:"bind-queue-content"},O4={class:"modal-description","aria-live":"polite"},N4={key:0,class:"error-alert",role:"alert"},k4={class:"error-text"},P4={class:"form-group"},D4=["disabled","aria-invalid"],R4={key:0,id:"queueName-error",class:"field-error",role:"alert"},M4={key:0,class:"form-group"},I4=["disabled","aria-invalid"],q4={key:0,id:"routingKey-error",class:"field-error",role:"alert"},L4={key:1,class:"form-group"},F4=["disabled","aria-invalid"],V4={key:0,id:"bindingPattern-error",class:"field-error",role:"alert"},Q4=["disabled"],j4=["disabled"],B4={key:0,class:"loading-spinner","aria-hidden":"true"},U4={key:1,class:"bi bi-link-45deg","aria-hidden":"true"},K4=Ue({__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=ye(""),r=ye(""),o=ye(""),l=ye(""),u=ye(""),d=ye(""),c=ye(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"),E=v(()=>s.exchangeType==="topic"),_=v(()=>{const I=i.value.trim().length>0,w=!g.value||r.value.trim().length>0,O=!E.value||o.value.trim().length>0;return I&&w&&O&&!l.value&&!u.value&&!d.value}),x=()=>{const I=i.value.trim();return I?I.length<1||I.length>255?(l.value="Queue name must be between 1 and 255 characters",!1):/^[a-zA-Z0-9._-]+$/.test(I)?(l.value="",!0):(l.value="Queue name can only contain letters, numbers, dots, underscores, and hyphens",!1):(l.value="Queue name is required",!1)},C=()=>{if(!g.value)return u.value="",!0;const I=r.value.trim();return I?I.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)},A=()=>{if(!E.value)return d.value="",!0;const I=o.value.trim();return I?I.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)},b=()=>{const I=x(),w=C(),O=A();return I&&w&&O},$=()=>{if(!b()||s.isLoading)return;const I={queueName:i.value.trim()};g.value&&(I.routingKey=r.value.trim()),E.value&&(I.bindingPattern=o.value.trim()),n("confirm",I)},L=()=>{s.isLoading||n("cancel")},F=()=>{i.value="",r.value="",o.value="",l.value="",u.value="",d.value=""};return Ye(()=>s.isVisible,async I=>{I&&(F(),await kt(),c.value?.focus())}),Ye(()=>s.error,I=>{I||(l.value="",u.value="",d.value="")}),(I,w)=>(N(),at(Ss,{"is-visible":e.isVisible,title:h.value,subtitle:p.value,icon:"bi bi-link-45deg",size:"md",onClose:L},{body:qe(()=>[a("div",T4,[a("p",O4,q(m.value),1),e.error?(N(),P("div",N4,[w[6]||(w[6]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("span",k4,q(e.error),1)])):he("",!0),a("form",{class:"bind-form",onSubmit:Ft($,["prevent"])},[a("div",P4,[w[7]||(w[7]=a("label",{for:"queueName",class:"form-label"},[ee(" Queue Name "),a("span",{class:"required"},"*")],-1)),ss(a("input",{id:"queueName",ref_key:"queueNameInput",ref:c,"onUpdate:modelValue":w[0]||(w[0]=O=>i.value=O),type:"text",class:De(["form-input",{error:!!l.value}]),placeholder:"Enter queue name",disabled:e.isLoading,"aria-invalid":!!l.value,"aria-describedby":"queueName-hint queueName-error",inputmode:"text",autocomplete:"off",autocapitalize:"off",autocorrect:"off",spellcheck:"false",maxlength:"255",pattern:"[A-Za-z0-9._-]+",onBlur:x,onInput:w[1]||(w[1]=O=>l.value="")},null,42,D4),[[rn,i.value]]),l.value?(N(),P("div",R4,q(l.value),1)):he("",!0),w[8]||(w[8]=a("div",{id:"queueName-hint",class:"field-hint"}," Queue name can contain letters, numbers, dots, underscores, and hyphens ",-1))]),g.value?(N(),P("div",M4,[w[9]||(w[9]=a("label",{for:"routingKey",class:"form-label"},[ee(" Routing Key "),a("span",{class:"required"},"*")],-1)),ss(a("input",{id:"routingKey","onUpdate:modelValue":w[2]||(w[2]=O=>r.value=O),type:"text",class:De(["form-input",{error:!!u.value}]),placeholder:"Enter routing key",disabled:e.isLoading,"aria-invalid":!!u.value,"aria-describedby":"routingKey-hint routingKey-error",inputmode:"text",autocomplete:"off",autocapitalize:"off",autocorrect:"off",spellcheck:"false",maxlength:"255",onBlur:C,onInput:w[3]||(w[3]=O=>u.value="")},null,42,I4),[[rn,r.value]]),u.value?(N(),P("div",q4,q(u.value),1)):he("",!0),w[10]||(w[10]=a("div",{id:"routingKey-hint",class:"field-hint"}," Messages will be routed to this queue only when the routing key matches exactly ",-1))])):he("",!0),E.value?(N(),P("div",L4,[w[11]||(w[11]=a("label",{for:"bindingPattern",class:"form-label"},[ee(" Binding Pattern "),a("span",{class:"required"},"*")],-1)),ss(a("input",{id:"bindingPattern","onUpdate:modelValue":w[4]||(w[4]=O=>o.value=O),type:"text",class:De(["form-input",{error:!!d.value}]),placeholder:"Enter binding pattern (e.g., user.*.created)",disabled:e.isLoading,"aria-invalid":!!d.value,"aria-describedby":"bindingPattern-hint bindingPattern-error",inputmode:"text",autocomplete:"off",autocapitalize:"off",autocorrect:"off",spellcheck:"false",maxlength:"255",onBlur:A,onInput:w[5]||(w[5]=O=>d.value="")},null,42,F4),[[rn,o.value]]),d.value?(N(),P("div",V4,q(d.value),1)):he("",!0),w[12]||(w[12]=a("div",{id:"bindingPattern-hint",class:"field-hint"}," Use * to match one word, # to match zero or more words (e.g., user.*.created, logs.#) ",-1))])):he("",!0)],32)])]),footer:qe(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isLoading,onClick:L}," Cancel ",8,Q4),a("button",{type:"submit",class:"btn btn-primary",disabled:!_.value||e.isLoading,onClick:$},[e.isLoading?(N(),P("span",B4)):(N(),P("i",U4)),ee(" "+q(e.isLoading?"Binding...":"Bind Queue"),1)],8,j4)]),_:1},8,["is-visible","title","subtitle"]))}}),Ic=Xe(K4,[["__scopeId","data-v-15924699"]]),H4={class:"unbind-queue-content"},G4={key:0,class:"error-alert",role:"alert"},W4={class:"confirmation-section"},z4={class:"confirmation-content"},Y4={class:"confirmation-message"},Z4={class:"warning-message"},J4={class:"binding-details"},X4={class:"detail-item"},e3={class:"detail-value queue-name"},t3={class:"detail-item"},s3={class:"detail-value exchange-type"},n3={key:0,class:"detail-item"},i3={class:"detail-label"},r3={class:"detail-value binding-key"},a3=["disabled"],o3=["disabled"],l3={key:0,class:"loading-spinner","aria-hidden":"true"},u3={key:1,class:"bi bi-unlink","aria-hidden":"true"},c3=Ue({__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(()=>{const p=`Are you sure you want to unbind the queue "${s.queueName}"`;return o.value?`${p} with ${l.value?.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)=>(N(),at(Ss,{"is-visible":e.isVisible,title:i.value,subtitle:r.value,icon:"bi bi-unlink",size:"sm",onClose:h},{body:qe(()=>[a("div",H4,[e.error?(N(),P("div",G4,[m[0]||(m[0]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("span",null,q(e.error),1)])):he("",!0),a("div",W4,[m[1]||(m[1]=a("div",{class:"confirmation-icon"},[a("i",{class:"bi bi-question-circle-fill","aria-hidden":"true"})],-1)),a("div",z4,[a("p",Y4,q(u.value),1),a("p",Z4,q(d.value),1)])]),a("div",J4,[a("div",X4,[m[2]||(m[2]=a("span",{class:"detail-label"},"Queue:",-1)),a("span",e3,q(e.queueName),1)]),a("div",t3,[m[3]||(m[3]=a("span",{class:"detail-label"},"Exchange Type:",-1)),a("span",s3,q(e.exchangeType),1)]),o.value&&l.value?(N(),P("div",n3,[a("span",i3,q(l.value)+":",1),a("span",r3,q(o.value),1)])):he("",!0)])])]),footer:qe(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isLoading,onClick:h}," Cancel ",8,a3),a("button",{type:"button",class:"btn btn-danger",disabled:e.isLoading,onClick:c},[e.isLoading?(N(),P("span",l3)):(N(),P("i",u3)),ee(" "+q(e.isLoading?"Unbinding...":"Unbind Queue"),1)],8,o3)]),_:1},8,["is-visible","title","subtitle"]))}}),qc=Xe(c3,[["__scopeId","data-v-1556a4bd"]]),d3={class:"exchange-content"},f3={key:0,class:"stats-overview"},h3={class:"stats-grid",role:"group","aria-label":"Exchange stats"},m3={class:"stat-card"},p3={class:"stat-content"},g3={class:"stat-value"},v3={class:"stat-label"},b3={class:"stat-card"},y3={class:"stat-content"},_3={class:"stat-value"},E3={class:"stat-label"},w3={key:1,class:"bindings-section","aria-labelledby":"bindings-title"},C3={class:"bindings-list"},A3={class:"binding-header"},S3={class:"routing-key-info"},x3={class:"routing-key-badge",title:"Routing key"},$3={class:"routing-key-text"},T3={class:"queue-count"},O3={key:0,class:"queues-list"},N3={class:"queue-info"},k3={class:"queue-name"},P3=["disabled","aria-label","onClick"],D3={key:1,class:"no-queues"},R3=20,M3=Ue({__name:"ExchangeDirectView",setup(e){const t=ms(),s=os(),n=Xt(),i=fn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!r.value&&!!o.value),u=ye(!1),d=ye(!1),c=ye(!1),h=ye(null),{data:p,isLoading:m,error:g,refetch:E}=Gg(o,r,{query:{enabled:l}}),_=v(()=>p.value?.data||[]),x=Array.from({length:R3},(G,se)=>{const ue=v(()=>_.value[se]||""),Re=v(()=>l.value&&se<_.value.length&&!!_.value[se]);return Wg(o,r,v(()=>({routingKey:ue.value})),{query:{enabled:Re}})}),C=xc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cu(o.value,r.value)}),_.value.forEach(G=>{i.invalidateQueries({queryKey:Au(o.value,r.value,{routingKey:G})})}),d.value=!1},onError:G=>{console.error("Failed to bind queue:",G)}}}),A=hx({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cu(o.value,r.value)}),_.value.forEach(G=>{i.invalidateQueries({queryKey:Au(o.value,r.value,{routingKey:G})})}),c.value=!1,h.value=null},onError:G=>{console.error("Failed to unbind queue:",G)}}}),b=v(()=>m.value||x.some((G,se)=>se<_.value.length&&G.isLoading.value)),$=v(()=>!!g.value||x.some((G,se)=>se<_.value.length&&!!G.error.value)),L=v(()=>{if(g.value)return ct(g.value);const G=x.find((se,ue)=>ue<_.value.length&&se.error.value)?.error.value;return G?ct(G):null}),F=v(()=>{const G=[];return _.value.forEach((se,ue)=>{if(ue>=x.length)return;const Ie=x[ue].data?.value?.data||[];G.push({routingKey:se,queues:Ie.map(tt=>({name:tt.name})),totalQueues:Ie.length})}),G}),I=v(()=>F.value.reduce((G,se)=>G+se.totalQueues,0)),w=v(()=>_.value.length),O=v(()=>C.isPending.value),S=v(()=>A.isPending.value),j=()=>{d.value=!0},X=(G,se)=>{h.value={name:G,routingKey:se},c.value=!0},W=()=>{u.value=!0},fe=()=>{E(),x.forEach((G,se)=>{se<_.value.length&&G.refetch()})},ne=async G=>{await C.mutateAsync({ns:o.value,direct:r.value,queue:G.queueName,params:{routingKey:String(G.routingKey)}})},Q=async()=>{h.value&&await A.mutateAsync({ns:o.value,direct:r.value,queue:h.value.name,params:{routingKey:h.value.routingKey}})},Z=()=>{s.push("/exchanges")},Y=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:O.value,loading:O.value,handler:j,tooltip:"Bind a queue to this exchange with a routing key"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:b.value,loading:b.value,handler:fe,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:!1,loading:!1,handler:W,tooltip:"Delete this exchange. If any queues are bound, you will be prompted to unbind them first."}]);return At(()=>{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(Y.value),n.setLoadingState(b.value),$.value?(n.setErrorState(L.value),n.setEmptyState(!1)):!b.value&&w.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:j})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(G,se)=>(N(),P("div",d3,[Ce(ps,null,{default:qe(()=>[!b.value&&!$.value&&w.value>0?(N(),P("div",f3,[a("div",h3,[a("div",m3,[se[3]||(se[3]=a("div",{class:"stat-icon routing-keys","aria-hidden":"true"},[a("i",{class:"bi bi-key"})],-1)),a("div",p3,[a("div",g3,q(w.value),1),a("div",v3," Routing "+q(w.value===1?"Key":"Keys"),1)])]),a("div",b3,[se[4]||(se[4]=a("div",{class:"stat-icon queues","aria-hidden":"true"},[a("i",{class:"bi bi-box"})],-1)),a("div",y3,[a("div",_3,q(I.value),1),a("div",E3," Bound "+q(I.value===1?"Queue":"Queues"),1)])])])])):he("",!0),!b.value&&!$.value&&F.value.length>0?(N(),P("section",w3,[se[9]||(se[9]=a("h2",{id:"bindings-title",class:"section-title"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"}),ee(" Queue Bindings ")],-1)),a("div",C3,[(N(!0),P(Ae,null,bt(F.value,ue=>(N(),P("article",{key:ue.routingKey,class:"binding-card"},[a("header",A3,[a("div",S3,[a("div",x3,[se[5]||(se[5]=a("i",{class:"bi bi-key","aria-hidden":"true"},null,-1)),a("span",$3,q(ue.routingKey),1)]),a("div",T3,q(ue.totalQueues)+" "+q(ue.totalQueues===1?"queue":"queues"),1)])]),ue.queues.length>0?(N(),P("div",O3,[(N(!0),P(Ae,null,bt(ue.queues,Re=>(N(),P("div",{key:`${ue.routingKey}-${Re.name}`,class:"queue-item"},[a("div",N3,[se[6]||(se[6]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",k3,q(Re.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:S.value,"aria-label":`Unbind queue ${Re.name} from routing key ${ue.routingKey}`,onClick:Ie=>X(Re.name,ue.routingKey)},[...se[7]||(se[7]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)])],8,P3)]))),128))])):(N(),P("div",D3,[...se[8]||(se[8]=[a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1),a("span",null,"No queues bound to this routing key",-1)])]))]))),128))])])):he("",!0)]),_:1}),Ce(ia,{"is-visible":u.value,"exchange-type":T(Te).DIRECT,"exchange-name":r.value,namespace:o.value,"total-queues":I.value,"total-routing-keys":w.value,onDeleted:Z,onClose:se[0]||(se[0]=ue=>u.value=!1)},null,8,["is-visible","exchange-type","exchange-name","namespace","total-queues","total-routing-keys"]),Ce(Ic,{"is-visible":d.value,"is-loading":O.value,error:T(ct)(T(C).error.value?.error),"exchange-type":"direct","exchange-name":r.value,namespace:o.value,onConfirm:ne,onCancel:se[1]||(se[1]=ue=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),Ce(qc,{"is-visible":c.value,"is-loading":S.value,error:T(ct)(T(A).error.value?.error),"queue-name":h.value?.name||"","routing-key":h.value?.routingKey||"","exchange-type":"direct",onConfirm:Q,onCancel:se[2]||(se[2]=ue=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name","routing-key"])]))}}),I3=Xe(M3,[["__scopeId","data-v-205a050e"]]),q3={class:"topic-exchange-view"},L3={key:0,class:"stats-overview"},F3={class:"stats-grid"},V3={class:"stat-card"},Q3={class:"stat-content"},j3={class:"stat-value"},B3={class:"stat-label"},U3={class:"stat-card"},K3={class:"stat-content"},H3={class:"stat-value"},G3={class:"stat-label"},W3={key:1,class:"bindings-section"},z3={class:"bindings-list"},Y3={class:"binding-header"},Z3={class:"binding-pattern-info"},J3={class:"binding-pattern-badge",title:"Binding pattern"},X3={class:"binding-pattern-text"},ej={class:"queue-count"},tj={class:"pattern-explanation"},sj={class:"explanation-text"},nj={key:0,class:"queues-list"},ij={class:"queue-info"},rj={class:"queue-name"},aj=["disabled","aria-label","onClick"],oj={key:1,class:"no-queues"},lj=20,uj=Ue({__name:"ExchangeTopicView",setup(e){const t=ms(),s=os(),n=Xt(),i=fn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!(r.value&&o.value)),u=ye(!1),d=ye(!1),c=ye(!1),h=ye(null),p=se=>{let ue=se.replace(/\*/g,"word").replace(/#/g,"any.nested.keys");return!se.includes("*")&&!se.includes("#")?se:ue},{data:m,isLoading:g,error:E,refetch:_}=zg(o,r,{query:{enabled:l}}),x=v(()=>m.value?.data||[]),C=Array.from({length:lj},(se,ue)=>{const Re=v(()=>x.value[ue]||""),Ie=v(()=>l.value&&ue<x.value.length&&!!x.value[ue]);return Yg(o,r,v(()=>({bindingPattern:Re.value})),{query:{enabled:Ie}})}),A=$c({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Su(o.value,r.value)}),x.value.forEach(se=>{i.invalidateQueries({queryKey:xu(o.value,r.value,{bindingPattern:se})})}),d.value=!1},onError:se=>{console.error("Failed to bind queue:",se)}}}),b=Sx({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Su(o.value,r.value)}),x.value.forEach(se=>{i.invalidateQueries({queryKey:xu(o.value,r.value,{bindingPattern:se})})}),c.value=!1,h.value=null},onError:se=>{console.error("Failed to unbind queue:",se)}}}),$=v(()=>g.value||C.some((se,ue)=>ue<x.value.length&&se.isLoading.value)),L=v(()=>!!E.value||C.some((se,ue)=>ue<x.value.length&&!!se.error.value)),F=v(()=>{if(E.value)return ct(E.value);const se=C.find((ue,Re)=>Re<x.value.length&&ue.error.value)?.error.value;return se?ct(se):null}),I=v(()=>{const se=[];return x.value.forEach((ue,Re)=>{if(Re>=C.length)return;const tt=C[Re].data?.value?.data||[];se.push({bindingPattern:ue,queues:tt.map(ve=>({name:ve.name})),totalQueues:tt.length})}),se}),w=v(()=>I.value.reduce((se,ue)=>se+ue.totalQueues,0)),O=v(()=>x.value.length),S=v(()=>A.isPending.value),j=v(()=>b.isPending.value),X=()=>{d.value=!0},W=(se,ue)=>{h.value={name:se,bindingPattern:ue},c.value=!0},fe=()=>{u.value=!0},ne=()=>{_(),C.forEach((se,ue)=>{ue<x.value.length&&se.refetch()})},Q=async se=>{await A.mutateAsync({ns:o.value,topic:r.value,queue:se.queueName,params:{bindingPattern:String(se.bindingPattern)}})},Z=async()=>{h.value&&await b.mutateAsync({ns:o.value,topic:r.value,queue:h.value.name,params:{bindingPattern:h.value.bindingPattern}})},Y=()=>{s.push("/exchanges")},G=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:S.value,loading:S.value,handler:X,tooltip:"Bind a queue to this exchange with a binding pattern"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:$.value,loading:$.value,handler:ne,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:!1,loading:!1,handler:fe,tooltip:"Delete this exchange. If any queues are bound, you will be prompted to unbind them first."}]);return At(()=>{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(G.value),n.setLoadingState($.value),L.value?(n.setErrorState(F.value),n.setEmptyState(!1)):!$.value&&O.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:X})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(se,ue)=>(N(),P("div",q3,[Ce(ps,null,{default:qe(()=>[!$.value&&!L.value&&O.value>0?(N(),P("div",L3,[a("div",F3,[a("div",V3,[ue[3]||(ue[3]=a("div",{class:"stat-icon binding-patterns"},[a("i",{class:"bi bi-hash","aria-hidden":"true"})],-1)),a("div",Q3,[a("div",j3,q(O.value),1),a("div",B3," Binding "+q(O.value===1?"Pattern":"Patterns"),1)])]),a("div",U3,[ue[4]||(ue[4]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",K3,[a("div",H3,q(w.value),1),a("div",G3," Bound "+q(w.value===1?"Queue":"Queues"),1)])])])])):he("",!0),!$.value&&!L.value&&I.value.length>0?(N(),P("div",W3,[ue[10]||(ue[10]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"}),ee(" Queue Bindings ")],-1)),a("div",z3,[(N(!0),P(Ae,null,bt(I.value,Re=>(N(),P("div",{key:Re.bindingPattern,class:"binding-card"},[a("div",Y3,[a("div",Z3,[a("div",J3,[ue[5]||(ue[5]=a("i",{class:"bi bi-hash","aria-hidden":"true"},null,-1)),a("span",X3,q(Re.bindingPattern),1)]),a("div",ej,q(Re.totalQueues)+" "+q(Re.totalQueues===1?"queue":"queues"),1)]),a("div",tj,[ue[6]||(ue[6]=a("i",{class:"bi bi-info-circle","aria-hidden":"true"},null,-1)),a("span",sj," Matches routing keys like: "+q(p(Re.bindingPattern)),1)])]),Re.queues.length>0?(N(),P("div",nj,[(N(!0),P(Ae,null,bt(Re.queues,Ie=>(N(),P("div",{key:`${Re.bindingPattern}-${Ie.name}`,class:"queue-item"},[a("div",ij,[ue[7]||(ue[7]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",rj,q(Ie.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:j.value,"aria-label":`Unbind queue ${Ie.name} from binding pattern ${Re.bindingPattern}`,onClick:tt=>W(Ie.name,Re.bindingPattern)},[...ue[8]||(ue[8]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)])],8,aj)]))),128))])):(N(),P("div",oj,[...ue[9]||(ue[9]=[a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1),a("span",null,"No queues bound to this pattern",-1)])]))]))),128))])])):he("",!0)]),_:1}),Ce(ia,{"is-visible":u.value,"exchange-type":T(Te).TOPIC,"exchange-name":r.value,namespace:o.value,"total-queues":w.value,"total-binding-patterns":O.value,onDeleted:Y,onClose:ue[0]||(ue[0]=Re=>u.value=!1)},null,8,["is-visible","exchange-type","exchange-name","namespace","total-queues","total-binding-patterns"]),Ce(Ic,{"is-visible":d.value,"is-loading":S.value,error:T(ct)(T(A).error.value?.error),"exchange-type":"topic","exchange-name":r.value,namespace:o.value,onConfirm:Q,onCancel:ue[1]||(ue[1]=Re=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),Ce(qc,{"is-visible":c.value,"is-loading":j.value,error:T(ct)(T(b).error.value?.error),"queue-name":h.value?.name||"","binding-pattern":h.value?.bindingPattern||"","exchange-type":"topic",onConfirm:Z,onCancel:ue[2]||(ue[2]=Re=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name","binding-pattern"])]))}}),cj=Xe(uj,[["__scopeId","data-v-00510631"]]),dj={class:"fanout-exchange-view"},fj={key:0,class:"stats-overview"},hj={class:"stats-grid"},mj={class:"stat-card"},pj={class:"stat-content"},gj={class:"stat-value"},vj={class:"stat-label"},bj={key:1,class:"exchange-info"},yj={class:"info-card"},_j={class:"info-description"},Ej={key:2,class:"queues-section"},wj={class:"queues-grid"},Cj={class:"queue-header"},Aj={class:"queue-info"},Sj={class:"queue-name"},xj=["disabled","aria-label","onClick"],$j=Ue({__name:"ExchangeFanoutView",setup(e){const t=ms(),s=os(),n=Xt(),i=fn(),r=v(()=>String(t.params.exchange)),o=v(()=>String(t.params.ns)),l=v(()=>!!(r.value&&o.value)),u=ye(!1),d=ye(!1),c=ye(!1),h=ye(null),{data:p,isLoading:m,error:g,refetch:E}=Hg(o,r,{query:{enabled:l}}),_=Sc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:wu(o.value,r.value)}),d.value=!1},onError:Y=>{console.error("Failed to bind queue:",Y)}}}),x=tx({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:wu(o.value,r.value)}),c.value=!1,h.value=null},onError:Y=>{console.error("Failed to unbind queue:",Y)}}}),C=v(()=>m.value),A=v(()=>!!g.value),b=v(()=>ct(g.value)),$=v(()=>(p.value?.data||[]).map(G=>({name:G.name}))),L=v(()=>$.value.length),F=v(()=>_.isPending.value),I=v(()=>x.isPending.value),w=v(()=>ct(_.error.value?.error)),O=v(()=>ct(x.error.value?.error)),S=()=>{d.value=!0},j=Y=>{h.value=Y,c.value=!0},X=()=>{u.value=!0},W=()=>{E()},fe=async Y=>{await _.mutateAsync({ns:o.value,fanout:r.value,queue:Y.queueName})},ne=async()=>{h.value&&await x.mutateAsync({ns:o.value,fanout:r.value,queue:h.value})},Q=()=>{s.push("/exchanges")},Z=v(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:F.value,loading:F.value,handler:S,tooltip:"Bind a queue to this fanout exchange"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:C.value,loading:C.value,handler:W,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:!1,loading:!1,handler:X,tooltip:"Delete this exchange. If any queues are bound, you will be prompted to unbind them first."}]);return At(()=>{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(Z.value),n.setLoadingState(C.value),A.value?(n.setErrorState(b.value),n.setEmptyState(!1)):!C.value&&L.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:S})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(Y,G)=>(N(),P("div",dj,[Ce(ps,null,{default:qe(()=>[!C.value&&!A.value&&L.value>0?(N(),P("div",fj,[a("div",hj,[a("div",mj,[G[3]||(G[3]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",pj,[a("div",gj,q(L.value),1),a("div",vj," Bound "+q(L.value===1?"Queue":"Queues"),1)])]),G[4]||(G[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))])])):he("",!0),!C.value&&!A.value&&L.value>0?(N(),P("div",bj,[a("div",yj,[G[7]||(G[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",_j,[G[5]||(G[5]=ee(" Fanout exchanges broadcast every message to all bound queues. When you publish a message to this exchange, it will be delivered to ",-1)),a("strong",null,"all "+q(L.value)+" bound queue"+q(L.value===1?"":"s"),1),G[6]||(G[6]=ee(" regardless of routing keys. ",-1))])])])):he("",!0),!C.value&&!A.value&&$.value.length>0?(N(),P("div",Ej,[G[11]||(G[11]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-box","aria-hidden":"true"}),ee(" Bound Queues ")],-1)),a("div",wj,[(N(!0),P(Ae,null,bt($.value,se=>(N(),P("div",{key:se.name,class:"queue-card"},[a("div",Cj,[a("div",Aj,[G[8]||(G[8]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",Sj,q(se.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:I.value,"aria-label":`Unbind queue ${se.name}`,onClick:ue=>j(se.name)},[...G[9]||(G[9]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)])],8,xj)]),G[10]||(G[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))])])):he("",!0)]),_:1}),Ce(ia,{"is-visible":u.value,"exchange-type":T(Te).FANOUT,"exchange-name":r.value,namespace:o.value,"total-queues":L.value,onDeleted:Q,onClose:G[0]||(G[0]=se=>u.value=!1)},null,8,["is-visible","exchange-type","exchange-name","namespace","total-queues"]),Ce(Ic,{"is-visible":d.value,"is-loading":F.value,error:w.value,"exchange-type":"fanout","exchange-name":r.value,namespace:o.value,onConfirm:fe,onCancel:G[1]||(G[1]=se=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),Ce(qc,{"is-visible":c.value,"is-loading":I.value,error:O.value,"queue-name":h.value||"","exchange-type":"fanout",onConfirm:ne,onCancel:G[2]||(G[2]=se=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name"])]))}}),Tj=Xe($j,[["__scopeId","data-v-1d5cc708"]]),Oj={class:"namespace-exchanges-view"},Nj={key:0,class:"namespace-stats"},kj={class:"stats-grid"},Pj={class:"stat-card total"},Dj={class:"stat-content"},Rj={class:"stat-value"},Mj={class:"stat-card direct"},Ij={class:"stat-content"},qj={class:"stat-value"},Lj={class:"stat-card fanout"},Fj={class:"stat-content"},Vj={class:"stat-value"},Qj={class:"stat-card topic"},jj={class:"stat-content"},Bj={class:"stat-value"},Uj={key:1,class:"namespace-info"},Kj={class:"info-card"},Hj={class:"info-header"},Gj={class:"info-description"},Wj={key:2,class:"grid grid-cols-2 gap-6"},zj=Ue({__name:"NamespaceExchangesView",setup(e){const t=ms(),s=os(),n=Xt(),i=fn(),r=v(()=>String(t.params.ns)),o=v(()=>!!r.value),l=ye(!1),u=ye(!1),d=ye(null),c=ye(null),{data:h,isLoading:p,isError:m,error:g,refetch:E}=iM(r,{query:{enabled:o}}),_=Sc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Er(r)}),u.value=!1},onError:Y=>{console.error("Failed to create fanout exchange:",Y)}}}),x=xc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Er(r)}),u.value=!1},onError:Y=>{console.error("Failed to create direct exchange:",Y)}}}),C=$c({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Er(r)}),u.value=!1},onError:Y=>{console.error("Failed to create topic exchange:",Y)}}}),A=v(()=>_.isPending.value||x.isPending.value||C.isPending.value),b=v(()=>ct(_.error.value?.error||x.error.value?.error||C.error.value?.error)),$=v(()=>h.value?.data??[]),L=v(()=>r.value?$.value.filter(Y=>Y.ns===r.value):[]),F=v(()=>ct(g.value)),I=v(()=>{const Y={total:L.value.length,direct:0,fanout:0,topic:0};return L.value.forEach(G=>{switch(G.type){case Te.DIRECT:Y.direct++;break;case Te.FANOUT:Y.fanout++;break;case Te.TOPIC:Y.topic++;break}}),Y}),w=Y=>{const G=L.value.find(se=>se.name===Y.exchange.name&&se.ns===Y.exchange.ns)||null;d.value=G??{name:Y.exchange.name,ns:Y.exchange.ns,type:Y.exchange.type},c.value=Y.totals,l.value=!0},O=()=>{u.value=!0},S=Y=>{console.log("Binding queue to:",Y.name)},j=Y=>{console.log("Unbinding queue from:",Y.exchange.name,"queue:",Y.queueName)},X=Y=>{console.log("Publishing message to:",Y.name)},W=async Y=>{const{name:G,type:se,ns:ue,queueName:Re,routingKey:Ie,bindingPattern:tt}=Y;try{switch(se){case Te.FANOUT:await _.mutateAsync({ns:ue,fanout:G,queue:Re});break;case Te.DIRECT:await x.mutateAsync({ns:ue,direct:G,queue:Re,params:{routingKey:String(Ie)}});break;case Te.TOPIC:await C.mutateAsync({ns:ue,topic:G,queue:Re,params:{bindingPattern:String(tt)}});break;default:throw new Error(`Unsupported exchange type: ${se}`)}}catch(ve){console.error("Failed to create exchange:",ve)}},fe=Y=>{const G={exchange:Y.name,ns:Y.ns};return Y.type==Te.DIRECT?{name:"Direct Exchange",params:G}:Y.type==Te.TOPIC?{name:"Topic Exchange",params:G}:{name:"Fanout Exchange",params:G}},ne=Y=>{const G=fe(Y);s.push(G)},Q=()=>{i.invalidateQueries({queryKey:Er(r)}),l.value=!1,d.value=null,c.value=null},Z=v(()=>[{id:"create-exchange",label:"Create Exchange",icon:"bi bi-plus-lg",variant:"primary",disabled:A.value,loading:A.value,handler:O,tooltip:"Create a new exchange by binding a queue to it"},{id:"refresh-exchanges",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:p.value,loading:p.value,handler:()=>E(),tooltip:"Refresh exchanges list"}]);return At(()=>{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(Z.value),n.setLoadingState(p.value),m.value?(n.setErrorState(F.value),n.setEmptyState(!1)):!p.value&&L.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:O})):(n.setErrorState(null),n.setEmptyState(!1))}),(Y,G)=>(N(),P("div",Oj,[Ce(ps,null,{default:qe(()=>[!T(p)&&!T(m)&&L.value.length>0?(N(),P("div",Nj,[a("div",kj,[a("div",Pj,[G[3]||(G[3]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"})],-1)),a("div",Dj,[a("div",Rj,q(I.value.total),1),G[2]||(G[2]=a("div",{class:"stat-label"},"Total Exchanges",-1))])]),a("div",Mj,[G[5]||(G[5]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-arrow-right","aria-hidden":"true"})],-1)),a("div",Ij,[a("div",qj,q(I.value.direct),1),G[4]||(G[4]=a("div",{class:"stat-label"},"Direct",-1))])]),a("div",Lj,[G[7]||(G[7]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-arrows-angle-expand","aria-hidden":"true"})],-1)),a("div",Fj,[a("div",Vj,q(I.value.fanout),1),G[6]||(G[6]=a("div",{class:"stat-label"},"Fanout",-1))])]),a("div",Qj,[G[9]||(G[9]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-hash","aria-hidden":"true"})],-1)),a("div",jj,[a("div",Bj,q(I.value.topic),1),G[8]||(G[8]=a("div",{class:"stat-label"},"Topic",-1))])])])])):he("",!0),!T(p)&&!T(m)&&L.value.length>0?(N(),P("div",Uj,[a("div",Kj,[a("div",Hj,[G[10]||(G[10]=a("i",{class:"bi bi-folder-fill","aria-hidden":"true"},null,-1)),a("h3",null,"Namespace: "+q(r.value),1)]),a("p",Gj," This namespace contains "+q(I.value.total)+" exchange"+q(I.value.total===1?"":"s")+". Exchanges in this namespace are isolated from other namespaces and can be managed independently. ",1)])])):he("",!0),L.value.length>0?(N(),P("div",Wj,[(N(!0),P(Ae,null,bt(L.value,se=>(N(),at(ev,{key:`${se.name}-${se.ns}`,exchange:se,onDelete:w,onViewDetails:ne,onBindQueue:S,onUnbindQueue:j,onPublishMessage:X},null,8,["exchange"]))),128))])):he("",!0)]),_:1}),Ce(ia,{"is-visible":l.value,"exchange-type":d.value?.type??0,"exchange-name":d.value?.name??"",namespace:d.value?.ns??"","total-queues":c.value?.totalQueues??0,"total-routing-keys":c.value?.totalRoutingKeys,"total-binding-patterns":c.value?.totalBindingPatterns,onDeleted:Q,onClose:G[0]||(G[0]=se=>{l.value=!1,d.value=null,c.value=null})},null,8,["is-visible","exchange-type","exchange-name","namespace","total-queues","total-routing-keys","total-binding-patterns"]),Ce(Jg,{"is-visible":u.value,"is-loading":A.value,error:b.value,onConfirm:W,onCancel:G[1]||(G[1]=se=>u.value=!1)},null,8,["is-visible","is-loading","error"])]))}}),Yj=Xe(zj,[["__scopeId","data-v-2acb12a4"]]),Zj=[{path:"/ns",name:"Namespaces",component:Rv,meta:{title:"NamespacesView",breadcrumb:"NamespacesView"}},{path:"/ns/:ns/queues",name:"Namespace Queues",component:Vq,meta:{title:"Namespace Queues",breadcrumb:"Namespace Queues"}},{path:"/ns/:ns/queues/:queue",name:"Queue",component:E4,meta:{title:"Queue Details",breadcrumb:"Queue Details"}},{path:"/ns/:ns/queues/:queue/pending-messages",name:"Pending Messages",component:u2,meta:{title:"Queue Pending Messages"}},{path:"/ns/:ns/queues/:queue/acknowledged-messages",name:"Acknowledged Messages",component:DR,meta:{title:"Queue Acknowledged Messages"}},{path:"/ns/:ns/queues/:queue/dead-lettered-messages",name:"Dead-Lettered Messages",component:UR,meta:{title:"Queue Dead-Lettered Messages"}},{path:"/ns/:ns/queues/:queue/scheduled-messages",name:"Scheduled Messages",component:A4,meta:{title:"Queue Scheduled Messages"}},{path:"/ns/:ns/queues/:queue/messages",name:"Messages",component:$4,meta:{title:"Queue Messages"}},{path:"/ns/:ns/exchanges",name:"Namespace Exchanges",component:Yj,meta:{title:"Namespace Exchanges",breadcrumb:"Namespace Exchanges"}},{path:"/ns/:ns/exchanges/direct/:exchange",name:"Direct Exchange",component:I3,meta:{title:"Direct Exchange Details",breadcrumb:"Direct Exchange Details"}},{path:"/ns/:ns/exchanges/topic/:exchange",name:"Topic Exchange",component:cj,meta:{title:"Topic Exchange Details",breadcrumb:"Topic Exchange Details"}},{path:"/ns/:ns/exchanges/fanout/:exchange",name:"Fanout Exchange",component:Tj,meta:{title:"Fanout Exchange Details",breadcrumb:"Fanout Exchange Details"}}],Iu=[...Ba,...Zj],Jj={key:0,"aria-label":"breadcrumb",class:"breadcrumb-navigation"},Xj={class:"breadcrumb-container"},eB={class:"breadcrumb-content"},tB={class:"breadcrumb-list"},sB=["aria-current"],nB={key:0,class:"breadcrumb-separator"},iB=["title","onClick"],rB={class:"breadcrumb-text"},aB=["title"],oB={class:"breadcrumb-text"},lB=Ue({__name:"BreadcrumbsPanel",setup(e){const t=ms(),s=os(),n=v(()=>{try{const h=[],p=t.path,m=t.params,g=i(p,m);return g.forEach((E,_)=>{const x=u(E.pattern);if(!x)return;const C=_===g.length-1,A=d(x);A&&h.push({title:A,to:C?void 0:E.actualPath,active:C})}),h}catch(h){return console.warn("Error building breadcrumbs:",h),[]}});function i(h,p){const m=[],g=h.split("/").filter(_=>_);let E="";h!=="/"&&u("/")&&m.push({pattern:"/",actualPath:"/"});for(let _=0;_<g.length;_++){E+="/"+g[_];const x=r(E,p);x&&m.push({pattern:x,actualPath:E})}return m}function r(h,p){const m=[...Iu].sort((g,E)=>{const _=o(g.path);return o(E.path)-_});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(_=>_),E=p.split("/").filter(_=>_);if(g.length!==E.length)return!1;for(let _=0;_<E.length;_++){const x=E[_],C=g[_];if(x.startsWith(":")){const A=x.substring(1);if(m[A]!==C)return!1}else if(x!==C)return!1}return!0}function u(h){return Iu.find(p=>p.path===h)}function d(h){return String(h.meta?.title||h.name)}function c(h){try{s.push(h)}catch(p){console.error("Navigation error:",p)}}return(h,p)=>n.value.length>0?(N(),P("nav",Jj,[a("div",Xj,[a("div",eB,[p[1]||(p[1]=a("div",{class:"breadcrumb-home","aria-hidden":"true"},[a("i",{class:"bi bi-house-fill"}),a("span",{class:"sr-only"},"Home")],-1)),a("ol",tB,[(N(!0),P(Ae,null,bt(n.value,(m,g)=>(N(),P("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?(N(),P("div",nB,[...p[0]||(p[0]=[a("i",{class:"bi bi-chevron-right"},null,-1)])])):he("",!0),!m.active&&m.to?(N(),P("button",{key:1,type:"button",class:"breadcrumb-link",title:`Navigate to ${m.title}`,onClick:E=>c(m.to)},[a("span",rB,q(m.title),1)],8,iB)):(N(),P("div",{key:2,class:"breadcrumb-current",title:m.title},[a("span",oB,q(m.title),1)],8,aB))],10,sB))),128))])])])])):he("",!0)}}),uB=Xe(lB,[["__scopeId","data-v-778a84ef"]]),cB="9.0.0-next.6",dB={version:cB},fB="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",hB="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=",mB={class:"app"},pB={key:0,class:"loading-screen"},gB={class:"loading-container"},vB={class:"loading-content"},bB={class:"brand-section"},yB={class:"brand-logo loading-logo"},_B=["src"],EB={key:1,class:"error-screen"},wB={class:"error-container"},CB={class:"error-content"},AB={class:"error-message"},SB={key:2,class:"app-layout"},xB={class:"app-header"},$B={class:"header-container"},TB={class:"header-content"},OB={class:"brand-section"},NB={class:"brand-logo"},kB=["src"],PB={class:"app-navigation",role:"navigation","aria-label":"Main navigation"},DB={class:"nav-list nav-desktop",role:"tablist"},RB={class:"nav-label"},MB={key:0,class:"nav-indicator"},IB={class:"nav-mobile"},qB=["aria-expanded"],LB={class:"current-page"},FB={id:"mobile-nav-menu",class:"mobile-nav-menu",role:"menu"},VB={class:"app-main",role:"main"},QB={class:"content-wrapper"},jB={class:"content-container"},BB={class:"app-footer",role:"contentinfo"},UB={class:"footer-container"},KB={class:"footer-content"},HB={class:"footer-info"},GB={class:"version-info"},WB={class:"version"},zB=Ue({__name:"App",setup(e){const t=ye(!0),s=ye(null),n=os(),i=v(()=>dB.version),r=async()=>{try{t.value=!0,s.value=null,await new Promise(p=>setTimeout(p,1500))}catch(p){console.error("App initialization failed:",p),s.value="Failed to initialize application"}finally{t.value=!1}};Bt(()=>{r()});const o=p=>n.currentRoute.value.name===p,l=()=>{r()},u=ye(!1),d=ye(null);Ye(()=>n.currentRoute.value.fullPath,()=>{u.value=!1});function c(p){if(!u.value)return;const m=p.target,g=d.value;g&&!g.contains(m)&&(u.value=!1)}function h(p){p.key==="Escape"&&u.value&&(u.value=!1)}return Bt(()=>{document.addEventListener("click",c,!0),document.addEventListener("keydown",h,!0)}),Ji(()=>{document.removeEventListener("click",c,!0),document.removeEventListener("keydown",h,!0)}),(p,m)=>{const g=Ud("RouterLink"),E=Ud("RouterView");return N(),P("div",mB,[t.value?(N(),P("div",pB,[a("div",gB,[a("div",vB,[a("div",bB,[a("div",yB,[a("img",{src:T(hB),alt:"RedisSMQ Logo",class:"logo-image"},null,8,_B)])]),m[1]||(m[1]=a("div",{class:"loading-animation"},[a("div",{class:"spinner"}),a("p",{class:"loading-text"},"Initializing application...")],-1))])])])):s.value?(N(),P("div",EB,[a("div",wB,[a("div",CB,[m[3]||(m[3]=a("div",{class:"error-icon"},"⚠️",-1)),m[4]||(m[4]=a("h2",{class:"error-title"},"Application Error",-1)),a("p",AB,q(s.value),1),a("button",{class:"btn btn-primary btn-retry",onClick:l},[...m[2]||(m[2]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),ee(" Try Again ",-1)])])])])])):(N(),P("div",SB,[a("header",xB,[a("div",$B,[a("div",TB,[a("div",OB,[a("div",NB,[a("img",{src:T(fB),alt:"RedisSMQ Logo",class:"logo-image"},null,8,kB)]),m[5]||(m[5]=a("div",{class:"brand-info"},[a("h1",{class:"brand-title"},"RedisSMQ"),a("span",{class:"brand-subtitle"},"Web UI")],-1))])]),a("nav",PB,[a("ul",DB,[(N(!0),P(Ae,null,bt(T(Ba),_=>(N(),P("li",{key:_.name,class:"nav-item",role:"presentation"},[Ce(g,{to:{name:_.name},class:De(["nav-link",{"nav-link-active":o(_.name)}]),"aria-current":o(_.name)?"page":void 0},{default:qe(()=>[a("span",RB,q(_.name),1),o(_.name)?(N(),P("span",MB)):he("",!0)]),_:2},1032,["to","class","aria-current"])]))),128))]),a("div",IB,[a("div",{ref_key:"mobileNavDropdown",ref:d,class:"mobile-nav-dropdown"},[a("button",{class:"mobile-nav-toggle",type:"button","aria-expanded":u.value,"aria-haspopup":"true","aria-controls":"mobile-nav-menu",onClick:m[0]||(m[0]=_=>u.value=!u.value)},[a("span",LB,q(T(Ba).find(_=>o(_.name))?.name||"Navigation"),1),m[6]||(m[6]=a("i",{class:"bi bi-chevron-down toggle-icon"},null,-1))],8,qB),ss(a("ul",FB,[(N(!0),P(Ae,null,bt(T(Ba),_=>(N(),P("li",{key:_.name,role:"none"},[Ce(g,{to:{name:_.name},class:De(["mobile-nav-link",{"mobile-nav-link-active":o(_.name)}]),role:"menuitem"},{default:qe(()=>[ee(q(_.name),1)]),_:2},1032,["to","class"])]))),128))],512),[[s0,u.value]])],512)])])])]),a("main",VB,[Ce(uB),a("div",QB,[a("div",jB,[(N(),at(Sw,null,{default:qe(()=>[Ce(E,null,{default:qe(({Component:_,route:x})=>[(N(),at(Mo(_),{key:x.path}))]),_:1})]),fallback:qe(()=>[...m[7]||(m[7]=[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",BB,[a("div",UB,[a("div",KB,[a("div",HB,[a("div",GB,[a("span",WB,"RedisSMQ Web UI "+q(i.value),1),m[8]||(m[8]=a("span",{class:"separator"},"•",-1)),m[9]||(m[9]=a("span",{class:"license"},[ee(" 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))])]),m[10]||(m[10]=ai('<div class="footer-links" data-v-c7b8ec48><a href="https://github.com/weyoss/redis-smq" target="_blank" rel="noopener noreferrer" class="footer-link" aria-label="View on GitHub" data-v-c7b8ec48><i class="bi bi-github me-1" data-v-c7b8ec48></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-c7b8ec48><i class="bi bi-book me-1" data-v-c7b8ec48></i> Documentation </a></div>',1))])])])]))])}}}),YB=Xe(zB,[["__scopeId","data-v-c7b8ec48"]]),ZB={class:"not-found-page"},JB=Ue({__name:"NotFoundView",setup(e){const t=os();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)=>(N(),P("div",ZB,[a("div",{class:"not-found-container"},[a("main",{class:"not-found-content"},[o[3]||(o[3]=ai('<div class="error-illustration" data-v-b9948732><div class="error-number" data-v-b9948732>404</div><div class="error-icon" data-v-b9948732>🔍</div></div><div class="error-message" data-v-b9948732><h1 class="error-title" data-v-b9948732>Page Not Found</h1><p class="error-subtitle" data-v-b9948732> Sorry, we couldn't find the page you're looking for. </p><p class="error-description" data-v-b9948732> 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),ee(" Go to Home ",-1)])]),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),ee(" Go Back ",-1)])]),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),ee(" View Queues ",-1)])])]),o[4]||(o[4]=ai('<div class="help-section" data-v-b9948732><h3 class="help-title" data-v-b9948732>What can you do?</h3><ul class="help-list" data-v-b9948732><li class="help-item" data-v-b9948732><i class="bi bi-check-circle-fill help-icon" data-v-b9948732></i><span data-v-b9948732>Check the URL for any typos</span></li><li class="help-item" data-v-b9948732><i class="bi bi-check-circle-fill help-icon" data-v-b9948732></i><span data-v-b9948732>Use the navigation menu to find what you're looking for</span></li><li class="help-item" data-v-b9948732><i class="bi bi-check-circle-fill help-icon" data-v-b9948732></i><span data-v-b9948732>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))])]))}}),XB=Xe(JB,[["__scopeId","data-v-b9948732"]]),Iv=dA({history:VC("/"),routes:[...Iu,{path:"/:pathMatch(.*)*",name:"NotFound",component:XB}]});Iv.beforeEach((e,t,s)=>{e.path!==t.path&&Xt().resetPageContent(),s()});const Xo=w0(YB);Xo.use(S0());Xo.use(Iv);Xo.use(aC,{queryClientConfig:{defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}});Xo.mount("#app");export{ZI as C,Dv as D,Ae as F,ps as P,_q as Q,Xe as _,It as a,$L as b,rM as c,Ue as d,fv as e,v as f,c2 as g,P as h,Ce as i,at as j,he as k,qe as l,T as m,ct as n,Bt as o,N as p,a as q,ye as r,ee as s,q as t,Xt as u,bt as v,At as w,os as x};
|