redis-smq-web-ui 9.0.2-next.0 → 9.0.2-next.1

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.
@@ -1,43 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./QueuesView-DLQWQwCh.js","./QueuesView-DC-q0QNm.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 i1(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",ep="afterRead",tp="beforeMain",sp="main",np="afterMain",ip="beforeWrite",rp="write",ap="afterWrite",op=[Jh,Xh,ep,tp,sp,np,ip,rp,ap];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 r1(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 a1(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:r1,effect:a1,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 lp(){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=!lp()&&s,d=(n.left+(u&&l?l.offsetLeft:0))/i,c=(n.top+(u&&l?l.offsetTop:0))/r,h=n.width/i,m=n.height/r;return{width:h,height:m,top:c,right:d+h,bottom:c+m,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 up(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 o1(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 l1(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&&o1(s)&&on(s).position==="static";)s=Sd(s);return s&&(Ks(s)==="html"||Ks(s)==="body"&&on(s).position==="static")?t:s||l1(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 u1(e,t,s){var n=Ar(e,t,s);return n>s?s:n}function cp(){return{top:0,right:0,bottom:0,left:0}}function dp(e){return Object.assign({},cp(),e)}function fp(e,t){return t.reduce(function(s,n){return s[n]=e,s},{})}var c1=function(t,s){return t=typeof t=="function"?t(Object.assign({},s.rects,{placement:s.placement})):t,dp(typeof t!="number"?t:fp(t,Zi))};function d1(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=c1(i.padding,s),m=Qu(r),p=u==="y"?Wt:zt,v=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],S=zr(r),C=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,A=E/2-_/2,g=h[p],$=C-m[c]-h[v],L=C/2-m[c]/2+A,V=Ar(g,L,$),I=u;s.modifiersData[n]=(t={},t[I]=V,t.centerOffset=V-L,t)}}function f1(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)||up(t.elements.popper,i)&&(t.elements.arrow=i))}const hp={name:"arrow",enabled:!0,phase:"main",fn:d1,effect:f1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Li(e){return e.split("-")[1]}var h1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p1(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,m=o.x,p=m===void 0?0:m,v=o.y,E=v===void 0?0:v,_=typeof c=="function"?c({x:p,y:E}):{x:p,y:E};p=_.x,E=_.y;var S=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),A=zt,g=Wt,$=window;if(d){var L=zr(s),V="clientHeight",I="clientWidth";if(L===fs(s)&&(L=kn(s),on(L).position!=="static"&&l==="absolute"&&(V="scrollHeight",I="scrollWidth")),L=L,i===Wt||(i===zt||i===ds)&&r===Mi){g=cs;var w=h&&L===$&&$.visualViewport?$.visualViewport.height:L[V];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];p-=O-n.width,p*=u?1:-1}}var x=Object.assign({position:l},d&&h1),F=c===!0?p1({x:p,y:E},fs(s)):{x:p,y:E};if(p=F.x,E=F.y,u){var H;return Object.assign({},x,(H={},H[g]=C?"0":"",H[A]=S?"0":"",H.transform=($.devicePixelRatio||1)<=1?"translate("+p+"px, "+E+"px)":"translate3d("+p+"px, "+E+"px, 0)",H))}return Object.assign({},x,(t={},t[g]=C?E+"px":"",t[A]=S?p+"px":"",t.transform="",t))}function m1(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:m1,data:{}};var Ea={passive:!0};function g1(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:g1,data:{}};var v1={left:"right",right:"left",bottom:"top",top:"bottom"};function Ra(e){return e.replace(/left|right|bottom|top/g,function(t){return v1[t]})}var b1={start:"end",end:"start"};function $d(e){return e.replace(/start|end/g,function(t){return b1[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 y1(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=lp();(d||!d&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:r,height:o,x:l+Hu(e),y:u}}function _1(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 pp(e){return["html","body","#document"].indexOf(Ks(e))>=0?e.ownerDocument.body:Es(e)&&Gu(e)?e:pp(Eo(e))}function Sr(e,t){var s;t===void 0&&(t=[]);var n=pp(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 E1(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(y1(e,s)):ri(t)?E1(t,s):Ql(_1(kn(e)))}function w1(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)&&up(i,n)&&Ks(i)!=="body"}):[]}function C1(e,t,s,n){var i=t==="clippingParents"?w1(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 mp(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,m=h===void 0?Ai:h,p=s.altBoundary,v=p===void 0?!1:p,E=s.padding,_=E===void 0?0:E,S=dp(typeof _!="number"?_:fp(_,Zi)),C=m===Ai?Zh:Ai,A=e.rects.popper,g=e.elements[v?C:m],$=C1(ri(g)?g:g.contextElement||kn(e.elements.popper),u,c,o),L=qi(e.elements.reference),V=mp({reference:L,element:A,placement:i}),I=Ql(Object.assign({},A,V)),w=m===Ai?I:L,O={top:$.top-w.top+S.top,bottom:w.bottom-$.bottom+S.bottom,left:$.left-w.left+S.left,right:w.right-$.right+S.right},x=e.modifiersData.offset;if(m===Ai&&x){var F=x[i];Object.keys(O).forEach(function(H){var z=[ds,cs].indexOf(H)>=0?1:-1,fe=[Wt,cs].indexOf(H)>=0?"y":"x";O[H]+=F[fe]*z})}return O}function A1(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(v){return Li(v)===c}):Zi,m=h.filter(function(v){return d.indexOf(v)>=0});m.length===0&&(m=h);var p=m.reduce(function(v,E){return v[E]=Fi(e,{placement:E,boundary:i,rootBoundary:r,padding:o})[js(E)],v},{});return Object.keys(p).sort(function(v,E){return p[v]-p[E]})}function S1(e){if(js(e)===_o)return[];var t=Ra(e);return[$d(e),t,$d(t)]}function x1(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,m=s.altBoundary,p=s.flipVariations,v=p===void 0?!0:p,E=s.allowedAutoPlacements,_=t.options.placement,S=js(_),C=S===_,A=u||(C||!v?[Ra(_)]:S1(_)),g=[_].concat(A).reduce(function(Ie,tt){return Ie.concat(js(tt)===_o?A1(t,{placement:tt,boundary:c,rootBoundary:h,padding:d,flipVariations:v,allowedAutoPlacements:E}):tt)},[]),$=t.rects.reference,L=t.rects.popper,V=new Map,I=!0,w=g[0],O=0;O<g.length;O++){var x=g[O],F=js(x),H=Li(x)===ii,z=[Wt,cs].indexOf(F)>=0,fe=z?"width":"height",ie=Fi(t,{placement:x,boundary:c,rootBoundary:h,altBoundary:m,padding:d}),G=z?H?ds:zt:H?cs:Wt;$[fe]>L[fe]&&(G=Ra(G));var X=Ra(G),Z=[];if(r&&Z.push(ie[F]<=0),l&&Z.push(ie[G]<=0,ie[X]<=0),Z.every(function(Ie){return Ie})){w=x,I=!1;break}V.set(x,Z)}if(I)for(var W=v?3:1,se=function(tt){var ve=g.find(function(Q){var K=V.get(Q);if(K)return K.slice(0,tt).every(function(le){return le})});if(ve)return w=ve,"break"},ue=W;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 gp={name:"flip",enabled:!0,phase:"main",fn:x1,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 $1(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 vp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$1};function T1(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 O1(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]=T1(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 bp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:O1};function N1(e){var t=e.state,s=e.name;t.modifiersData[s]=mp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Wu={name:"popperOffsets",enabled:!0,phase:"read",fn:N1,data:{}};function k1(e){return e==="x"?"y":"x"}function P1(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,m=s.tether,p=m===void 0?!0:m,v=s.tetherOffset,E=v===void 0?0:v,_=Fi(t,{boundary:u,rootBoundary:d,padding:h,altBoundary:c}),S=js(t.placement),C=Li(t.placement),A=!C,g=ju(S),$=k1(g),L=t.modifiersData.popperOffsets,V=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),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(L){if(r){var H,z=g==="y"?Wt:zt,fe=g==="y"?cs:ds,ie=g==="y"?"height":"width",G=L[g],X=G+_[z],Z=G-_[fe],W=p?-I[ie]/2:0,se=C===ii?V[ie]:I[ie],ue=C===ii?-I[ie]:-V[ie],Re=t.elements.arrow,Ie=p&&Re?Qu(Re):{width:0,height:0},tt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cp(),ve=tt[z],Q=tt[fe],K=Ar(0,V[ie],Ie[ie]),le=A?V[ie]/2-W-K-ve-O.mainAxis:se-K-ve-O.mainAxis,Ee=A?-V[ie]/2+W+K+Q+O.mainAxis:ue+K+Q+O.mainAxis,J=t.elements.arrow&&zr(t.elements.arrow),k=J?g==="y"?J.clientTop||0:J.clientLeft||0:0,R=(H=x?.[g])!=null?H:0,j=G+le-R-k,ne=G+Ee-R,re=Ar(p?Ka(X,j):X,G,p?Xn(Z,ne):Z);L[g]=re,F[g]=re-G}if(l){var oe,pe=g==="x"?Wt:zt,me=g==="x"?cs:ds,Y=L[$],de=$==="y"?"height":"width",Me=Y+_[pe],Ce=Y-_[me],Oe=[Wt,zt].indexOf(S)!==-1,Qe=(oe=x?.[$])!=null?oe:0,He=Oe?Me:Y-V[de]-I[de]-Qe+O.altAxis,st=Oe?Y+V[de]+I[de]-Qe-O.altAxis:Ce,et=p&&Oe?u1(He,Y,st):Ar(p?He:Me,Y,p?st:Ce);L[$]=et,F[$]=et-Y}t.modifiersData[n]=F}}const yp={name:"preventOverflow",enabled:!0,phase:"main",fn:P1,requiresIfExists:["offset"]};function D1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function R1(e){return e===fs(e)||!Es(e)?Ku(e):D1(e)}function M1(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 I1(e,t,s){s===void 0&&(s=!1);var n=Es(t),i=Es(t)&&M1(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=R1(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 q1(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 L1(e){var t=q1(e);return op.reduce(function(s,n){return s.concat(t.filter(function(i){return i.phase===n}))},[])}function F1(e){var t;return function(){return t||(t=new Promise(function(s){Promise.resolve().then(function(){t=void 0,s(e())})})),t}}function V1(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=[],m=!1,p={state:c,setOptions:function(S){var C=typeof S=="function"?S(c.options):S;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=L1(V1([].concat(n,c.options.modifiers)));return c.orderedModifiers=A.filter(function(g){return g.enabled}),v(),p.update()},forceUpdate:function(){if(!m){var S=c.elements,C=S.reference,A=S.popper;if(Pd(C,A)){c.rects={reference:I1(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 g=0;g<c.orderedModifiers.length;g++){if(c.reset===!0){c.reset=!1,g=-1;continue}var $=c.orderedModifiers[g],L=$.fn,V=$.options,I=V===void 0?{}:V,w=$.name;typeof L=="function"&&(c=L({state:c,options:I,name:w,instance:p})||c)}}}},update:F1(function(){return new Promise(function(_){p.forceUpdate(),_(c)})}),destroy:function(){E(),m=!0}};if(!Pd(l,u))return p;p.setOptions(d).then(function(_){!m&&d.onFirstUpdate&&d.onFirstUpdate(_)});function v(){c.orderedModifiers.forEach(function(_){var S=_.name,C=_.options,A=C===void 0?{}:C,g=_.effect;if(typeof g=="function"){var $=g({state:c,name:S,instance:p,options:A}),L=function(){};h.push($||L)}})}function E(){h.forEach(function(_){return _()}),h=[]}return p}}var Q1=wo(),j1=[Uu,Wu,Bu,Vu],B1=wo({defaultModifiers:j1}),U1=[Uu,Wu,Bu,Vu,bp,gp,yp,hp,vp],K1=wo({defaultModifiers:U1});const H1=Object.freeze(Object.defineProperty({__proto__:null,afterMain:np,afterRead:ep,afterWrite:ap,applyStyles:Vu,arrow:hp,auto:_o,basePlacements:Zi,beforeMain:tp,beforeRead:Jh,beforeWrite:ip,bottom:cs,clippingParents:Yh,computeStyles:Bu,createPopper:K1,createPopperBase:Q1,createPopperLite:B1,detectOverflow:Fi,end:Mi,eventListeners:Uu,flip:gp,hide:vp,left:zt,main:sp,modifierPhases:op,offset:bp,placements:Lu,popper:Ai,popperGenerator:wo,popperOffsets:Wu,preventOverflow:yp,read:Xh,reference:Zh,right:ds,start:ii,top:Wt,variationPlacements:Fl,viewport:qu,write:rp},Symbol.toStringTag,{value:"Module"})),G1=i1(H1);/*!
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 W1=Da.exports,Dd;function z1(){return Dd||(Dd=1,(function(e,t){(function(s,n){e.exports=n(G1)})(W1,(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(),m=D=>{do D+=Math.floor(Math.random()*l);while(document.getElementById(D));return D},p=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)},v=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,S=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},g=()=>{},$=D=>{D.offsetHeight},L=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,V=[],I=D=>{document.readyState==="loading"?(V.length||document.addEventListener("DOMContentLoaded",()=>{for(const f of V)f()}),V.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)}})},x=(D,f=[],y=D)=>typeof D=="function"?D.call(...f):y,F=(D,f,y=!0)=>{if(!y){x(D);return}const ae=p(f)+5;let _e=!1;const ye=({target:We})=>{We===f&&(_e=!0,f.removeEventListener(d,ye),x(D))};f.addEventListener(d,ye),setTimeout(()=>{_e||v(f)},ae)},H=(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))])},z=/[^.]*(?=\..*)\.|.*/,fe=/\..*/,ie=/::\d+$/,G={};let X=1;const Z={mouseenter:"mouseover",mouseleave:"mouseout"},W=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}::${X++}`||D.uidEvent||X++}function ue(D){const f=se(D);return D.uidEvent=f,G[f]=G[f]||{},G[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:ye}=ae;ye&&ye!==this;ye=ye.parentNode)for(const We of _e)if(We===ye)return k(ae,{delegateTarget:ye}),M.oneOff&&J.off(D,ae.type,f,y),y.apply(ye,[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 W.has(_e)||(_e=D),[M,ae,_e]}function Q(D,f,y,M,ae){if(typeof f!="string"||!D)return;let[_e,ye,We]=ve(f,y,M);f in Z&&(ye=(n1=>function(Ei){if(!Ei.relatedTarget||Ei.relatedTarget!==Ei.delegateTarget&&!Ei.delegateTarget.contains(Ei.relatedTarget))return n1.call(this,Ei)})(ye));const ts=ue(D),vs=ts[We]||(ts[We]={}),$t=tt(vs,ye,_e?y:null);if($t){$t.oneOff=$t.oneOff&&ae;return}const qs=se(ye,f.replace(z,"")),Ts=_e?Ie(D,y,ye):Re(D,ye);Ts.delegationSelector=_e?y:null,Ts.callable=ye,Ts.oneOff=ae,Ts.uidEvent=qs,vs[qs]=Ts,D.addEventListener(We,Ts,_e)}function K(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,ye]of Object.entries(ae))_e.includes(M)&&K(D,f,y,ye.callable,ye.delegationSelector)}function Ee(D){return D=D.replace(fe,""),Z[D]||D}const J={on(D,f,y,M){Q(D,f,y,M,!1)},one(D,f,y,M){Q(D,f,y,M,!0)},off(D,f,y,M){if(typeof f!="string"||!D)return;const[ae,_e,ye]=ve(f,y,M),We=ye!==f,ts=ue(D),vs=ts[ye]||{},$t=f.startsWith(".");if(typeof _e<"u"){if(!Object.keys(vs).length)return;K(D,ts,ye,_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(ie,"");(!We||f.includes(_a))&&K(D,ts,ye,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 ye=null,We=!0,ts=!0,vs=!1;_e&&M&&(ye=M.Event(f,y),M(D).trigger(ye),We=!ye.isPropagationStopped(),ts=!ye.isImmediatePropagationStopped(),vs=ye.isDefaultPrevented());const $t=k(new Event(f,{bubbles:We,cancelable:!0}),y);return vs&&$t.preventDefault(),ts&&D.dispatchEvent($t),$t.defaultPrevented&&ye&&ye.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 j(D){return D.replace(/[A-Z]/g,f=>`-${f.toLowerCase()}`)}const ne={setDataAttribute(D,f,y){D.setAttribute(`data-bs-${j(f)}`,y)},removeDataAttribute(D,f){D.removeAttribute(`data-bs-${j(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-${j(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)?ne.getDataAttribute(y,"config"):{};return{...this.constructor.Default,...typeof M=="object"?M:{},...E(y)?ne.getDataAttributes(y):{},...typeof f=="object"?f:{}}}_typeCheckConfig(f,y=this.constructor.DefaultType){for(const[M,ae]of Object.entries(y)){const _e=f[M],ye=E(_e)?"element":h(_e);if(!new RegExp(ae).test(ye))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${M}" provided type "${ye}" but expected type "${ae}".`)}}}const oe="5.3.8";class pe 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){F(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 me=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},Y={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)&&S(y))},getSelectorFromElement(D){const f=me(D);return f&&Y.findOne(f)?f:null},getElementFromSelector(D){const f=me(D);return f?Y.findOne(f):null},getMultipleElementsFromSelector(D){const f=me(D);return f?Y.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=Y.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 pe{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",B=".bs.button",ce=".data-api",Se="active",$e='[data-bs-toggle="button"]',Le=`click${B}${ce}`;class Pe extends pe{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 ct="swipe",pt=".bs.swipe",St=`touchstart${pt}`,mt=`touchmove${pt}`,xt=`touchend${pt}`,qt=`pointerdown${pt}`,es=`pointerup${pt}`,Rn="touch",sr="pen",nr="pointer-event",ir=40,rr={endCallback:null,leftCallback:null,rightCallback:null},Fv={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 Fv}static get NAME(){return ct}dispose(){J.off(this._element,pt)}_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(),x(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&&x(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,mt,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 Vv="carousel",hn=".bs.carousel",Lc=".data-api",Qv="ArrowLeft",jv="ArrowRight",Bv=500,ar="next",pi="prev",mi="left",ca="right",Uv=`slide${hn}`,el=`slid${hn}`,Kv=`keydown${hn}`,Hv=`mouseenter${hn}`,Gv=`mouseleave${hn}`,Wv=`dragstart${hn}`,zv=`load${hn}${Lc}`,Yv=`click${hn}${Lc}`,Fc="carousel",da="active",Zv="slide",Jv="carousel-item-end",Xv="carousel-item-start",eb="carousel-item-next",tb="carousel-item-prev",Vc=".active",Qc=".carousel-item",sb=Vc+Qc,nb=".carousel-item img",ib=".carousel-indicators",rb="[data-bs-slide], [data-bs-slide-to]",ab='[data-bs-ride="carousel"]',ob={[Qv]:ca,[jv]:mi},lb={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ub={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class gi extends pe{constructor(f,y){super(f,y),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Y.findOne(ib,this._element),this._addEventListeners(),this._config.ride===Fc&&this.cycle()}static get Default(){return lb}static get DefaultType(){return ub}static get NAME(){return Vv}next(){this._slide(ar)}nextWhenVisible(){!document.hidden&&S(this._element)&&this.next()}prev(){this._slide(pi)}pause(){this._isSliding&&v(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:pi;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,Kv,f=>this._keydown(f)),this._config.pause==="hover"&&(J.on(this._element,Hv,()=>this.pause()),J.on(this._element,Gv,()=>this._maybeEnableCycle())),this._config.touch&&ua.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const M of Y.find(nb,this._element))J.on(M,Wv,ae=>ae.preventDefault());const y={leftCallback:()=>this._slide(this._directionToOrder(mi)),rightCallback:()=>this._slide(this._directionToOrder(ca)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Bv+this._config.interval))}};this._swipeHelper=new ua(this._element,y)}_keydown(f){if(/input|textarea/i.test(f.target.tagName))return;const y=ob[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=Y.findOne(Vc,this._indicatorsElement);y.classList.remove(da),y.removeAttribute("aria-current");const M=Y.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||H(this._getItems(),M,ae,this._config.wrap);if(_e===M)return;const ye=this._getItemIndex(_e),We=_a=>J.trigger(this._element,_a,{relatedTarget:_e,direction:this._orderToDirection(f),from:this._getItemIndex(M),to:ye});if(We(Uv).defaultPrevented||!M||!_e)return;const vs=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(ye),this._activeElement=_e;const $t=ae?Xv:Jv,qs=ae?eb:tb;_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 Y.findOne(sb,this._element)}_getItems(){return Y.find(Qc,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(f){return w()?f===mi?pi:ar:f===mi?ar:pi}_orderToDirection(f){return w()?f===pi?mi:ca:f===pi?ca:mi}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,Yv,rb,function(D){const f=Y.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(ne.getDataAttribute(this,"slide")==="next"){y.next(),y._maybeEnableCycle();return}y.prev(),y._maybeEnableCycle()}),J.on(window,zv,()=>{const D=Y.find(ab);for(const f of D)gi.getOrCreateInstance(f)}),O(gi);const cb="collapse",or=".bs.collapse",db=".data-api",fb=`show${or}`,hb=`shown${or}`,pb=`hide${or}`,mb=`hidden${or}`,gb=`click${or}${db}`,tl="show",vi="collapse",fa="collapsing",vb="collapsed",bb=`:scope .${vi} .${vi}`,yb="collapse-horizontal",_b="width",Eb="height",wb=".collapse.show, .collapse.collapsing",sl='[data-bs-toggle="collapse"]',Cb={parent:null,toggle:!0},Ab={parent:"(null|element)",toggle:"boolean"};class bi extends pe{constructor(f,y){super(f,y),this._isTransitioning=!1,this._triggerArray=[];const M=Y.find(sl);for(const ae of M){const _e=Y.getSelectorFromElement(ae),ye=Y.find(_e).filter(We=>We===this._element);_e!==null&&ye.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 Cb}static get DefaultType(){return Ab}static get NAME(){return cb}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let f=[];if(this._config.parent&&(f=this._getFirstLevelChildren(wb).filter(We=>We!==this._element).map(We=>bi.getOrCreateInstance(We,{toggle:!1}))),f.length&&f[0]._isTransitioning||J.trigger(this._element,fb).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,hb)},ye=`scroll${M[0].toUpperCase()+M.slice(1)}`;this._queueCallback(ae,this._element,!0),this._element.style[M]=`${this._element[ye]}px`}hide(){if(this._isTransitioning||!this._isShown()||J.trigger(this._element,pb).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=Y.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,mb)};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(yb)?_b:Eb}_initializeChildren(){if(!this._config.parent)return;const f=this._getFirstLevelChildren(sl);for(const y of f){const M=Y.getElementFromSelector(y);M&&this._addAriaAndCollapsedClass([y],this._isShown(M))}}_getFirstLevelChildren(f){const y=Y.find(bb,this._config.parent);return Y.find(f,this._config.parent).filter(M=>!y.includes(M))}_addAriaAndCollapsedClass(f,y){if(f.length)for(const M of f)M.classList.toggle(vb,!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,gb,sl,function(D){(D.target.tagName==="A"||D.delegateTarget&&D.delegateTarget.tagName==="A")&&D.preventDefault();for(const f of Y.getMultipleElementsFromSelector(this))bi.getOrCreateInstance(f,{toggle:!1}).toggle()}),O(bi);const jc="dropdown",Mn=".bs.dropdown",nl=".data-api",Sb="Escape",Bc="Tab",xb="ArrowUp",Uc="ArrowDown",$b=2,Tb=`hide${Mn}`,Ob=`hidden${Mn}`,Nb=`show${Mn}`,kb=`shown${Mn}`,Kc=`click${Mn}${nl}`,Hc=`keydown${Mn}${nl}`,Pb=`keyup${Mn}${nl}`,yi="show",Db="dropup",Rb="dropend",Mb="dropstart",Ib="dropup-center",qb="dropdown-center",In='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Lb=`${In}.${yi}`,ha=".dropdown-menu",Fb=".navbar",Vb=".navbar-nav",Qb=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",jb=w()?"top-end":"top-start",Bb=w()?"top-start":"top-end",Ub=w()?"bottom-end":"bottom-start",Kb=w()?"bottom-start":"bottom-end",Hb=w()?"left-start":"right-start",Gb=w()?"right-start":"left-start",Wb="top",zb="bottom",Yb={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 pe{constructor(f,y){super(f,y),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,ha)[0]||Y.prev(this._element,ha)[0]||Y.findOne(ha,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Yb}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,Nb,f).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Vb))for(const M of[].concat(...document.body.children))J.on(M,"mouseover",g);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(yi),this._element.classList.add(yi),J.trigger(this._element,kb,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,Tb,f).defaultPrevented){if("ontouchstart"in document.documentElement)for(const M of[].concat(...document.body.children))J.off(M,"mouseover",g);this._popper&&this._popper.destroy(),this._menu.classList.remove(yi),this._element.classList.remove(yi),this._element.setAttribute("aria-expanded","false"),ne.removeDataAttribute(this._menu,"popper"),J.trigger(this._element,Ob,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(Rb))return Hb;if(f.classList.contains(Mb))return Gb;if(f.classList.contains(Ib))return Wb;if(f.classList.contains(qb))return zb;const y=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return f.classList.contains(Db)?y?Bb:jb:y?Kb:Ub}_detectNavbar(){return this._element.closest(Fb)!==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")&&(ne.setDataAttribute(this._menu,"popper","static"),f.modifiers=[{name:"applyStyles",enabled:!1}]),{...f,...x(this._config.popperConfig,[void 0,f])}}_selectMenuItem({key:f,target:y}){const M=Y.find(Qb,this._menu).filter(ae=>S(ae));M.length&&H(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===$b||f.type==="keyup"&&f.key!==Bc)return;const y=Y.find(Lb);for(const M of y){const ae=$s.getInstance(M);if(!ae||ae._config.autoClose===!1)continue;const _e=f.composedPath(),ye=_e.includes(ae._menu);if(_e.includes(ae._element)||ae._config.autoClose==="inside"&&!ye||ae._config.autoClose==="outside"&&ye||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===Sb,ae=[xb,Uc].includes(f.key);if(!ae&&!M||y&&!M)return;f.preventDefault();const _e=this.matches(In)?this:Y.prev(this,In)[0]||Y.next(this,In)[0]||Y.findOne(In,f.delegateTarget.parentNode),ye=$s.getOrCreateInstance(_e);if(ae){f.stopPropagation(),ye.show(),ye._selectMenuItem(f);return}ye._isShown()&&(f.stopPropagation(),ye.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,Pb,$s.clearMenus),J.on(document,Kc,In,function(D){D.preventDefault(),$s.getOrCreateInstance(this).toggle()}),O($s);const Gc="backdrop",Jb="fade",Wc="show",zc=`mousedown.bs.${Gc}`,Xb={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ey={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 Xb}static get DefaultType(){return ey}static get NAME(){return Gc}show(f){if(!this._config.isVisible){x(f);return}this._append();const y=this._getElement();this._config.isAnimated&&$(y),y.classList.add(Wc),this._emulateAnimation(()=>{x(f)})}hide(f){if(!this._config.isVisible){x(f);return}this._getElement().classList.remove(Wc),this._emulateAnimation(()=>{this.dispose(),x(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(Jb),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,()=>{x(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(f){F(f,this._getElement(),this._config.isAnimated)}}const ty="focustrap",pa=".bs.focustrap",sy=`focusin${pa}`,ny=`keydown.tab${pa}`,iy="Tab",ry="forward",Zc="backward",ay={autofocus:!0,trapElement:null},oy={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 ay}static get DefaultType(){return oy}static get NAME(){return ty}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),J.off(document,pa),J.on(document,sy,f=>this._handleFocusin(f)),J.on(document,ny,f=>this._handleKeydown(f)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,J.off(document,pa))}_handleFocusin(f){const{trapElement:y}=this._config;if(f.target===document||f.target===y||y.contains(f.target))return;const M=Y.focusableChildren(y);M.length===0?y.focus():this._lastTabNavDirection===Zc?M[M.length-1].focus():M[0].focus()}_handleKeydown(f){f.key===iy&&(this._lastTabNavDirection=f.shiftKey?Zc:ry)}}const Xc=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ed=".sticky-top",ma="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,ma,y=>y+f),this._setElementAttributes(Xc,ma,y=>y+f),this._setElementAttributes(ed,td,y=>y-f)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ma),this._resetElementAttributes(Xc,ma),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=ye=>{if(ye!==this._element&&window.innerWidth>ye.clientWidth+ae)return;this._saveInitialAttribute(ye,y);const We=window.getComputedStyle(ye).getPropertyValue(y);ye.style.setProperty(y,`${M(Number.parseFloat(We))}px`)};this._applyManipulationCallback(f,_e)}_saveInitialAttribute(f,y){const M=f.style.getPropertyValue(y);M&&ne.setDataAttribute(f,y,M)}_resetElementAttributes(f,y){const M=ae=>{const _e=ne.getDataAttribute(ae,y);if(_e===null){ae.style.removeProperty(y);return}ne.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 Y.find(f,this._element))y(M)}}const ly="modal",gs=".bs.modal",uy=".data-api",cy="Escape",dy=`hide${gs}`,fy=`hidePrevented${gs}`,sd=`hidden${gs}`,nd=`show${gs}`,hy=`shown${gs}`,py=`resize${gs}`,my=`click.dismiss${gs}`,gy=`mousedown.dismiss${gs}`,vy=`keydown.dismiss${gs}`,by=`click${gs}${uy}`,id="modal-open",yy="fade",rd="show",rl="modal-static",_y=".modal.show",Ey=".modal-dialog",wy=".modal-body",Cy='[data-bs-toggle="modal"]',Ay={backdrop:!0,focus:!0,keyboard:!0},Sy={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qn extends pe{constructor(f,y){super(f,y),this._dialog=Y.findOne(Ey,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 Ay}static get DefaultType(){return Sy}static get NAME(){return ly}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,dy).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=Y.findOne(wy,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,hy,{relatedTarget:f})};this._queueCallback(M,this._dialog,this._isAnimated())}_addEventListeners(){J.on(this._element,vy,f=>{if(f.key===cy){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),J.on(window,py,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),J.on(this._element,gy,f=>{J.one(this._element,my,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(yy)}_triggerBackdropTransition(){if(J.trigger(this._element,fy).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,by,Cy,function(D){const f=Y.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&D.preventDefault(),J.one(f,nd,ae=>{ae.defaultPrevented||J.one(f,sd,()=>{S(this)&&this.focus()})});const y=Y.findOne(_y);y&&qn.getInstance(y).hide(),qn.getOrCreateInstance(f).toggle(this)}),de(qn),O(qn);const xy="offcanvas",Gs=".bs.offcanvas",ad=".data-api",$y=`load${Gs}${ad}`,Ty="Escape",od="show",ld="showing",ud="hiding",Oy="offcanvas-backdrop",cd=".offcanvas.show",Ny=`show${Gs}`,ky=`shown${Gs}`,Py=`hide${Gs}`,dd=`hidePrevented${Gs}`,fd=`hidden${Gs}`,Dy=`resize${Gs}`,Ry=`click${Gs}${ad}`,My=`keydown.dismiss${Gs}`,Iy='[data-bs-toggle="offcanvas"]',qy={backdrop:!0,keyboard:!0,scroll:!1},Ly={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ws extends pe{constructor(f,y){super(f,y),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return qy}static get DefaultType(){return Ly}static get NAME(){return xy}toggle(f){return this._isShown?this.hide():this.show(f)}show(f){if(this._isShown||J.trigger(this._element,Ny,{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,ky,{relatedTarget:f})};this._queueCallback(M,this._element,!0)}hide(){if(!this._isShown||J.trigger(this._element,Py).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:Oy,isVisible:y,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:y?f:null})}_initializeFocusTrap(){return new Jc({trapElement:this._element})}_addEventListeners(){J.on(this._element,My,f=>{if(f.key===Ty){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,Ry,Iy,function(D){const f=Y.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&D.preventDefault(),C(this))return;J.one(f,fd,()=>{S(this)&&this.focus()});const y=Y.findOne(cd);y&&y!==f&&Ws.getInstance(y).hide(),Ws.getOrCreateInstance(f).toggle(this)}),J.on(window,$y,()=>{for(const D of Y.find(cd))Ws.getOrCreateInstance(D).show()}),J.on(window,Dy,()=>{for(const D of Y.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:[]},Fy=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Vy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Qy=(D,f)=>{const y=D.nodeName.toLowerCase();return f.includes(y)?Fy.has(y)?!!Vy.test(D.nodeValue):!0:f.filter(M=>M instanceof RegExp).some(M=>M.test(y))};function jy(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 ye of _e){const We=ye.nodeName.toLowerCase();if(!Object.keys(f).includes(We)){ye.remove();continue}const ts=[].concat(...ye.attributes),vs=[].concat(f["*"]||[],f[We]||[]);for(const $t of ts)Qy($t,vs)||ye.removeAttribute($t.nodeName)}return ae.body.innerHTML}const By="TemplateFactory",Uy={allowList:hd,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ky={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Hy={entry:"(string|element|function|null)",selector:"(string|element)"};class Gy extends re{constructor(f){super(),this._config=this._getConfig(f)}static get Default(){return Uy}static get DefaultType(){return Ky}static get NAME(){return By}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},Hy)}_setContent(f,y,M){const ae=Y.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?jy(f,this._config.allowList,this._config.sanitizeFn):f}_resolvePossibleFunction(f){return x(f,[void 0,this])}_putElementInTemplate(f,y){if(this._config.html){y.innerHTML="",y.append(f);return}y.textContent=f.textContent}}const Wy="tooltip",zy=new Set(["sanitize","allowList","sanitizeFn"]),al="fade",Yy="modal",ga="show",Zy=".tooltip-inner",pd=`.${Yy}`,md="hide.bs.modal",lr="hover",ol="focus",ll="click",Jy="manual",Xy="hide",e_="hidden",t_="show",s_="shown",n_="inserted",i_="click",r_="focusin",a_="focusout",o_="mouseenter",l_="mouseleave",u_={AUTO:"auto",TOP:"top",RIGHT:w()?"left":"right",BOTTOM:"bottom",LEFT:w()?"right":"left"},c_={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"},d_={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 pe{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 c_}static get DefaultType(){return d_}static get NAME(){return Wy}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(pd),md,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(t_)),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(n_))),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",g);const ye=()=>{J.trigger(this._element,this.constructor.eventName(s_)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(ye,this.tip,this._isAnimated())}hide(){if(!this._isShown()||J.trigger(this._element,this.constructor.eventName(Xy)).defaultPrevented)return;if(this._getTipElement().classList.remove(ga),"ontouchstart"in document.documentElement)for(const ae of[].concat(...document.body.children))J.off(ae,"mouseover",g);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(e_)))};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=m(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 Gy({...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=x(this._config.placement,[this,f,this._element]),M=u_[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 x(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,...x(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(i_),this._config.selector,M=>{const ae=this._initializeOnDelegatedTarget(M);ae._activeTrigger[ll]=!(ae._isShown()&&ae._activeTrigger[ll]),ae.toggle()});else if(y!==Jy){const M=y===lr?this.constructor.eventName(o_):this.constructor.eventName(r_),ae=y===lr?this.constructor.eventName(l_):this.constructor.eventName(a_);J.on(this._element,M,this._config.selector,_e=>{const ye=this._initializeOnDelegatedTarget(_e);ye._activeTrigger[_e.type==="focusin"?ol:lr]=!0,ye._enter()}),J.on(this._element,ae,this._config.selector,_e=>{const ye=this._initializeOnDelegatedTarget(_e);ye._activeTrigger[_e.type==="focusout"?ol:lr]=ye._element.contains(_e.relatedTarget),ye._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},J.on(this._element.closest(pd),md,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=ne.getDataAttributes(this._element);for(const M of Object.keys(y))zy.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 f_="popover",h_=".popover-header",p_=".popover-body",m_={...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"},g_={...Ln.DefaultType,content:"(null|string|element|function)"};class va extends Ln{static get Default(){return m_}static get DefaultType(){return g_}static get NAME(){return f_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[h_]:this._getTitle(),[p_]: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 v_="scrollspy",ul=".bs.scrollspy",b_=".data-api",y_=`activate${ul}`,gd=`click${ul}`,__=`load${ul}${b_}`,E_="dropdown-item",_i="active",w_='[data-bs-spy="scroll"]',cl="[href]",C_=".nav, .list-group",vd=".nav-link",A_=`${vd}, .nav-item > ${vd}, .list-group-item`,S_=".dropdown",x_=".dropdown-toggle",$_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},T_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ur extends pe{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 $_}static get DefaultType(){return T_}static get NAME(){return v_}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=ye=>this._targetLinks.get(`#${ye.target.id}`),M=ye=>{this._previousScrollData.visibleEntryTop=ye.target.offsetTop,this._process(y(ye))},ae=(this._rootElement||document.documentElement).scrollTop,_e=ae>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ae;for(const ye of f){if(!ye.isIntersecting){this._activeTarget=null,this._clearActiveClass(y(ye));continue}const We=ye.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(_e&&We){if(M(ye),!ae)return;continue}!_e&&!We&&M(ye)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const f=Y.find(cl,this._config.target);for(const y of f){if(!y.hash||C(y))continue;const M=Y.findOne(decodeURI(y.hash),this._element);S(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,y_,{relatedTarget:f}))}_activateParents(f){if(f.classList.contains(E_)){Y.findOne(x_,f.closest(S_)).classList.add(_i);return}for(const y of Y.parents(f,C_))for(const M of Y.prev(y,A_))M.classList.add(_i)}_clearActiveClass(f){f.classList.remove(_i);const y=Y.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,__,()=>{for(const D of Y.find(w_))ur.getOrCreateInstance(D)}),O(ur);const O_="tab",Fn=".bs.tab",N_=`hide${Fn}`,k_=`hidden${Fn}`,P_=`show${Fn}`,D_=`shown${Fn}`,R_=`click${Fn}`,M_=`keydown${Fn}`,I_=`load${Fn}`,q_="ArrowLeft",bd="ArrowRight",L_="ArrowUp",yd="ArrowDown",dl="Home",_d="End",Vn="active",Ed="fade",fl="show",F_="dropdown",wd=".dropdown-toggle",V_=".dropdown-menu",hl=`:not(${wd})`,Q_='.list-group, .nav, [role="tablist"]',j_=".nav-item, .list-group-item",B_=`.nav-link${hl}, .list-group-item${hl}, [role="tab"]${hl}`,Cd='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',pl=`${B_}, ${Cd}`,U_=`.${Vn}[data-bs-toggle="tab"], .${Vn}[data-bs-toggle="pill"], .${Vn}[data-bs-toggle="list"]`;class Qn extends pe{constructor(f){super(f),this._parent=this._element.closest(Q_),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),J.on(this._element,M_,y=>this._keydown(y)))}static get NAME(){return O_}show(){const f=this._element;if(this._elemIsActive(f))return;const y=this._getActiveElem(),M=y?J.trigger(y,N_,{relatedTarget:f}):null;J.trigger(f,P_,{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(Y.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,D_,{relatedTarget:y})};this._queueCallback(M,f,f.classList.contains(Ed))}_deactivate(f,y){if(!f)return;f.classList.remove(Vn),f.blur(),this._deactivate(Y.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,k_,{relatedTarget:y})};this._queueCallback(M,f,f.classList.contains(Ed))}_keydown(f){if(![q_,bd,L_,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=H(y,f.target,ae,!0)}M&&(M.focus({preventScroll:!0}),Qn.getOrCreateInstance(M).show())}_getChildren(){return Y.find(pl,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=Y.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(F_))return;const ae=(_e,ye)=>{const We=Y.findOne(_e,M);We&&We.classList.toggle(ye,y)};ae(wd,Vn),ae(V_,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(pl)?f:Y.findOne(pl,f)}_getOuterElement(f){return f.closest(j_)||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,R_,Cd,function(D){["A","AREA"].includes(this.tagName)&&D.preventDefault(),!C(this)&&Qn.getOrCreateInstance(this).show()}),J.on(window,I_,()=>{for(const D of Y.find(U_))Qn.getOrCreateInstance(D)}),O(Qn);const K_="toast",pn=".bs.toast",H_=`mouseover${pn}`,G_=`mouseout${pn}`,W_=`focusin${pn}`,z_=`focusout${pn}`,Y_=`hide${pn}`,Z_=`hidden${pn}`,J_=`show${pn}`,X_=`shown${pn}`,e1="fade",Ad="hide",ba="show",ya="showing",t1={animation:"boolean",autohide:"boolean",delay:"number"},s1={animation:!0,autohide:!0,delay:5e3};class cr extends pe{constructor(f,y){super(f,y),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return s1}static get DefaultType(){return t1}static get NAME(){return K_}show(){if(J.trigger(this._element,J_).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(e1);const y=()=>{this._element.classList.remove(ya),J.trigger(this._element,X_),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,Y_).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,H_,f=>this._onInteraction(f,!0)),J.on(this._element,G_,f=>this._onInteraction(f,!1)),J.on(this._element,W_,f=>this._onInteraction(f,!0)),J.on(this._element,z_,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}z1();/**
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=()=>{},_p=()=>!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)},Y1=Object.prototype.hasOwnProperty,ut=(e,t)=>Y1.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",Ep=e=>(ft(e)||je(e))&&je(e.then)&&je(e.catch),wp=Object.prototype.toString,Yr=e=>wp.call(e),Z1=e=>Yr(e).slice(8,-1),Cp=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)))},J1=/-\w/g,Cs=So(e=>e.replace(J1,t=>t.slice(1).toUpperCase())),X1=/\B([A-Z])/g,Pn=So(e=>e.replace(X1,"-$1").toLowerCase()),xo=So(e=>e.charAt(0).toUpperCase()+e.slice(1)),ml=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)},Ap=(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},Sp=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)?nE(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 eE=/;(?![^(]*\))/g,tE=/:([^]+)/,sE=/\/\*[^]*?\*\//g;function nE(e){const t={};return e.replace(sE,"").split(eE).forEach(s=>{if(s){const n=s.split(tE);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 iE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",rE=zu(iE);function xp(e){return!!e||e===""}function aE(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?aE(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 oE(e,t){return e.findIndex(s=>To(s,t))}const $p=e=>!!(e&&e.__v_isRef===!0),q=e=>yt(e)?e:e==null?"":Ve(e)||ft(e)&&(e.toString===wp||!je(e.toString))?$p(e)?q(e.value):JSON.stringify(e,Tp,2):String(e),Tp=(e,t)=>$p(t)?Tp(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)&&!Cp(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 Op{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 Np(e){return new Op(e)}function kp(){return Lt}function ec(e,t=!1){Lt&&Lt.cleanups.push(e)}let vt;const vl=new WeakSet;class Pp{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||Rp(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Id(this),Mp(this);const t=vt,s=Ps;vt=this,Ps=!0;try{return this.fn()}finally{Ip(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 Dp=0,$r,Tr;function Rp(e,t=!1){if(e.flags|=8,t){e.next=Tr,Tr=e;return}e.next=$r,$r=e}function tc(){Dp++}function sc(){if(--Dp>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 Mp(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ip(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),nc(n),lE(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&&(qp(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qp(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{Mp(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,Ip(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 lE(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 Lp=[];function ln(){Lp.push(Ps),Ps=!1}function un(){const e=Lp.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 uE{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 uE(vt,this),vt.deps?(s.prevDep=vt.depsTail,vt.depsTail.nextDep=s,vt.depsTail=s):vt.deps=vt.depsTail=s,Fp(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 Fp(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)Fp(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,m)=>{(m==="length"||m===qr||!Ds(m)&&m>=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 cE(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 dE={__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 fE=Array.prototype;function zs(e,t,s,n,i,r){const o=Oo(e),l=o!==e&&!ws(e),u=o[t];if(u!==fE[t]){const h=u.apply(e,r);return l?Pt(h):h}let d=s;o!==e&&(l?d=function(h,m){return s.call(this,Pt(h),m,e)}:s.length>2&&(d=function(h,m){return s.call(this,h,m,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 hE=zu("__proto__,__v_isRef,__isVue"),Vp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ds));function pE(e){Ds(e)||(e=String(e));const t=nt(this);return Vt(t,"has",e),t.hasOwnProperty(e)}class Qp{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?Gp:Hp:r?Kp:Up).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Ve(t);if(!i){let u;if(o&&(u=dE[s]))return u;if(s==="hasOwnProperty")return pE}const l=Reflect.get(t,s,ht(t)?t:n);if((Ds(s)?Vp.has(s):hE(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 jp extends Qp{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)||!Vp.has(s))&&Vt(t,"has",s),n}ownKeys(t){return Vt(t,"iterate",Ve(t)?"length":ei),Reflect.ownKeys(t)}}class Bp extends Qp{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const mE=new jp,gE=new Bp,vE=new jp(!0),bE=new Bp(!0),Ul=e=>e,wa=e=>Reflect.getPrototypeOf(e);function yE(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:m}=d.next();return m?{value:h,done:m}:{value:l?[c(h[0]),c(h[1])]:c(h),done:m}},[Symbol.iterator](){return this}}}}function Ca(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _E(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]=yE(i,e,t)}),s}function No(e,t){const s=_E(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 EE={get:No(!1,!1)},wE={get:No(!1,!0)},CE={get:No(!0,!1)},AE={get:No(!0,!0)},Up=new WeakMap,Kp=new WeakMap,Hp=new WeakMap,Gp=new WeakMap;function SE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xE(e){return e.__v_skip||!Object.isExtensible(e)?0:SE(Z1(e))}function As(e){return $n(e)?e:Po(e,!1,mE,EE,Up)}function ko(e){return Po(e,!1,vE,wE,Kp)}function Vi(e){return Po(e,!0,gE,CE,Hp)}function Wp(e){return Po(e,!0,bE,AE,Gp)}function Po(e,t,s,n,i){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=xE(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)&&Ap(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 be(e){return Yp(e,!1)}function zp(e){return Yp(e,!0)}function Yp(e,t){return ht(e)?e:new $E(e,t)}class $E{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 TE={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 Zp(e){return An(e)?e:new Proxy(e,TE)}function oc(e){const t=Ve(e)?new Array(e.length):{};for(const s in e)t[s]=Jp(e,s);return t}class OE{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 cE(nt(this._object),this._key)}}class NE{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 NE(e):ft(e)&&arguments.length>1?Jp(e,t,s):be(e)}function Jp(e,t,s){const n=e[t];return ht(n)?n:new OE(e,t,s)}class kE{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 Rp(this,!0),!0}get value(){const t=this.dep.track();return qp(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function PE(e,t,s=!1){let n,i;return je(e)?n=e:(n=e.get,i=e.set),new kE(n,i,s)}const Aa={},za=new WeakMap;let Hn;function DE(e,t=!1,s=Hn){if(s){let n=za.get(s);n||za.set(s,n=[]),n.push(e)}}function RE(e,t,s=gt){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:l,call:u}=s,d=g=>i?g:ws(g)||i===!1||i===0?nn(g,1):nn(g);let c,h,m,p,v=!1,E=!1;if(ht(e)?(h=()=>e.value,v=ws(e)):An(e)?(h=()=>d(e),v=!0):Ve(e)?(E=!0,v=e.some(g=>An(g)||ws(g)),h=()=>e.map(g=>{if(ht(g))return g.value;if(An(g))return d(g);if(je(g))return u?u(g,2):g()})):je(e)?t?h=u?()=>u(e,2):e:h=()=>{if(m){ln();try{m()}finally{un()}}const g=Hn;Hn=c;try{return u?u(e,3,[p]):e(p)}finally{Hn=g}}:h=Bs,t&&i){const g=h,$=i===!0?1/0:i;h=()=>nn(g(),$)}const _=kp(),S=()=>{c.stop(),_&&_.active&&Zu(_.effects,c)};if(r&&t){const g=t;t=(...$)=>{g(...$),S()}}let C=E?new Array(e.length).fill(Aa):Aa;const A=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const $=c.run();if(i||v||(E?$.some((L,V)=>Cn(L,C[V])):Cn($,C))){m&&m();const L=Hn;Hn=c;try{const V=[$,C===Aa?void 0:E&&C[0]===Aa?[]:C,p];C=$,u?u(t,3,V):t(...V)}finally{Hn=L}}}else c.run()};return l&&l(A),c=new Pp(h),c.scheduler=o?()=>o(A,!1):A,p=g=>DE(g,!1,c),m=c.onStop=()=>{const g=za.get(c);if(g){if(u)u(g,4);else for(const $ of g)$();za.delete(c)}},t?n?A(!0):C=c.run():o?o(A.bind(null,!0),!0):c.run(),S.pause=c.pause.bind(c),S.resume=c.resume.bind(c),S.stop=S,S}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(Cp(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&&Ep(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}}ME(e,s,i,n,o)}function ME(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 Xp=Promise.resolve();let Ya=null;function kt(e){const t=Ya||Xp;return e?t.then(this?e.bind(this):e):t}function IE(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(IE(t),0,e),e.flags|=1,em()}}function em(){Ya||(Ya=Xp.then(sm))}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),em()}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 tm(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 sm(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,tm(),Ya=null,(Gt.length||Ni.length)&&sm()}}let Mt=null,nm=null;function Za(e){const t=Mt;return Mt=e,nm=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 im=Symbol("_vte"),rm=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},am={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,r,o,l,u,d){const{mc:c,pc:h,pbc:m,o:{insert:p,querySelector:v,createText:E,createComment:_}}=d,S=Or(t.props);let{shapeFlag:C,children:A,dynamicChildren:g}=t;if(e==null){const $=t.el=E(""),L=t.anchor=E("");p($,s,n),p(L,s,n);const V=(w,O)=>{C&16&&c(A,w,O,i,r,o,l,u)},I=()=>{const w=t.target=Hl(t.props,v),O=om(w,t,E,p);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),S||(V(w,O),Ia(t,!1)))};S&&(V(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(()=>{am.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,V=t.targetAnchor=e.targetAnchor,I=Or(e.props),w=I?s:L,O=I?$:V;if(o==="svg"||Vd(L)?o="svg":(o==="mathml"||Qd(L))&&(o="mathml"),g?(m(e.dynamicChildren,g,w,i,r,o,l),fc(e,t,!0)):u||h(e,t,w,O,i,r,o,l,!1),S)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 x=t.target=Hl(t.props,v);x&&Sa(t,x,null,d,0)}else I&&Sa(t,L,V,d,1);Ia(t,S)}},remove(e,t,s,{um:n,o:{remove:i}},r){const{shapeFlag:o,children:l,anchor:u,targetStart:d,targetAnchor:c,target:h,props:m}=e;if(h&&(i(d),i(c)),r&&i(u),o&16){const p=r||!Or(m);for(let v=0;v<l.length;v++){const E=l[v];n(E,t,s,p,!!E.dynamicChildren)}}},move:Sa,hydrate:qE};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 m=0;m<d.length;m++)i(d[m],t,s,2);h&&n(l,t,s)}function qE(e,t,s,n,i,r,{o:{nextSibling:o,parentNode:l,querySelector:u,insert:d,createText:c}},h){function m(E,_,S,C){_.anchor=h(o(E),_,l(E),s,n,i,r),_.targetStart=S,_.targetAnchor=C}const p=t.target=Hl(t.props,u),v=Or(t.props);if(p){const E=p._lpa||p.firstChild;if(t.shapeFlag&16)if(v)m(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=_,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}_=o(_)}t.targetAnchor||om(p,t,c,d),h(E&&o(E),t,p,s,n,i,r)}Ia(t,v)}else v&&t.shapeFlag&16&&m(e,t,e,o(e));return t.anchor&&o(t.anchor)}const LE=am;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 om(e,t,s,n){const i=t.targetStart=s(""),r=t.targetAnchor=s("");return i[im]=r,e&&(n(i,e),n(r,e)),r}const tn=Symbol("_leaveCb"),xa=Symbol("_enterCb");function FE(){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],lm={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},um=e=>{const t=e.subTree;return t.component?um(t.component):t},VE={name:"BaseTransition",props:lm,setup(e,{slots:t}){const s=hi(),n=FE();return()=>{const i=t.default&&fm(t.default(),!0);if(!i||!i.length)return;const r=cm(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)&&um(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=(m,p,v)=>{const E=dm(n,c);E[String(c.key)]=c,m[tn]=()=>{p(),m[tn]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{v(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return r}}};function cm(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Tt){t=s;break}}return t}const QE=VE;function dm(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:m,onLeave:p,onAfterLeave:v,onLeaveCancelled:E,onBeforeAppear:_,onAppear:S,onAfterAppear:C,onAppearCancelled:A}=t,g=String(e.key),$=dm(s,e),L=(w,O)=>{w&&Rs(w,n,9,O)},V=(w,O)=>{const x=O[1];L(w,O),Ve(w)?w.every(F=>F.length<=1)&&x():w.length<=1&&x()},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 x=$[g];x&&Qs(e,x)&&x.el[tn]&&x.el[tn](),L(O,[w])},enter(w){let O=d,x=c,F=h;if(!s.isMounted)if(r)O=S||d,x=C||c,F=A||h;else return;let H=!1;const z=w[xa]=fe=>{H||(H=!0,fe?L(F,[w]):L(x,[w]),I.delayedLeave&&I.delayedLeave(),w[xa]=void 0)};O?V(O,[w,z]):z()},leave(w,O){const x=String(e.key);if(w[xa]&&w[xa](!0),s.isUnmounting)return O();L(m,[w]);let F=!1;const H=w[tn]=z=>{F||(F=!0,O(),z?L(E,[w]):L(v,[w]),w[tn]=void 0,$[x]===e&&delete $[x])};$[x]=e,p?V(p,[w,H]):H()},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 rm(e.type)&&e.children?cm(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 fm(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(fm(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 hm(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((v,E)=>Nr(v,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,m=nt(h),p=h===gt?_p:v=>ut(m,v);if(d!=null&&d!==u){if(Bd(t),yt(d))c[d]=null,p(d)&&(h[d]=null);else if(ht(d)){d.value=null;const v=t;v.k&&(c[v.k]=null)}}if(je(u))Zr(u,l,12,[o,c]);else{const v=yt(u),E=ht(u);if(v||E){const _=()=>{if(e.f){const S=v?p(u)?h[u]:c[u]:u.value;if(i)Ve(S)&&Zu(S,r);else if(Ve(S))S.includes(r)||S.push(r);else if(v)c[u]=[r],p(u)&&(h[u]=c[u]);else{const C=[r];u.value=C,e.k&&(c[e.k]=C)}}else v?(c[u]=o,p(u)&&(h[u]=o)):E&&(u.value=o,e.k&&(c[e.k]=o))};if(o){const S=()=>{_(),Ja.delete(e)};S.id=-1,Ja.set(e,S),Kt(S,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 jE(e,t){pm(e,"a",t)}function BE(e,t){pm(e,"da",t)}function pm(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)&&UE(n,t,s,i),i=i.parent}}function UE(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)},KE=dn("bm"),Bt=dn("m"),HE=dn("bu"),GE=dn("u"),Ji=dn("bum"),uc=dn("um"),WE=dn("sp"),zE=dn("rtg"),YE=dn("rtc");function ZE(e,t=Qt){Ro("ec",e,t)}const mm="components";function Ud(e,t){return vm(mm,e,!0,t)||e}const gm=Symbol.for("v-ndc");function Mo(e){return yt(e)?vm(mm,e,!1)||e:e||gm}function vm(e,t,s=!0,n=!1){const i=Mt||Qt;if(i){const r=i.type;{const l=Uw(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,[we("slot",s,n&&n())],d?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),N();const o=r&&bm(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 bm(e){return e.some(t=>ji(t)?!(t.type===Tt||t.type===Ae&&!bm(t.children)):!0)?e:null}const Wl=e=>e?Fm(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=>_m(e),$forceUpdate:e=>e.f||(e.f=()=>{lc(e.update)}),$nextTick:e=>e.n||(e.n=kt.bind(e.proxy)),$watch:e=>bw.bind(e)}),El=(e,t)=>e!==gt&&!e.__isScriptSetup&&ut(e,t),JE={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 p=o[t];if(p!==void 0)switch(p){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,m;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(m=u.config.globalProperties,ut(m,t))return m[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 XE(e){const t=_m(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:m,beforeUpdate:p,updated:v,activated:E,deactivated:_,beforeDestroy:S,beforeUnmount:C,destroyed:A,unmounted:g,render:$,renderTracked:L,renderTriggered:V,errorCaptured:I,serverPrefetch:w,expose:O,inheritAttrs:x,components:F,directives:H,filters:z}=t;if(d&&ew(d,n,null),o)for(const G in o){const X=o[G];je(X)&&(n[G]=X.bind(s))}if(i){const G=i.call(s,s);ft(G)&&(e.data=As(G))}if(zl=!0,r)for(const G in r){const X=r[G],Z=je(X)?X.bind(s,s):je(X.get)?X.get.bind(s,s):Bs,W=!je(X)&&je(X.set)?X.set.bind(s):Bs,se=b({get:Z,set:W});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>se.value,set:ue=>se.value=ue})}if(l)for(const G in l)ym(l[G],n,s,G);if(u){const G=je(u)?u.call(s):u;Reflect.ownKeys(G).forEach(X=>{si(X,G[X])})}c&&Gd(c,e,"c");function ie(G,X){Ve(X)?X.forEach(Z=>G(Z.bind(s))):X&&G(X.bind(s))}if(ie(KE,h),ie(Bt,m),ie(HE,p),ie(GE,v),ie(jE,E),ie(BE,_),ie(ZE,I),ie(YE,L),ie(zE,V),ie(Ji,C),ie(uc,g),ie(WE,w),Ve(O))if(O.length){const G=e.exposed||(e.exposed={});O.forEach(X=>{Object.defineProperty(G,X,{get:()=>s[X],set:Z=>s[X]=Z,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===Bs&&(e.render=$),x!=null&&(e.inheritAttrs=x),F&&(e.components=F),H&&(e.directives=H),w&&hm(e)}function ew(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 ym(e,t,s,n){let i=n.includes(".")?Pm(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=>ym(r,t,s,n));else{const r=je(e.handler)?e.handler.bind(s):t[e.handler];je(r)&&Ye(i,r,e)}}function _m(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=tw[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const tw={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:nw,provide:Wd,inject:sw};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 sw(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 nw(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 Em(){return{app:null,config:{isNativeTag:_p,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 iw=0;function rw(e,t){return function(n,i=null){je(n)||(n=Ot({},n)),i!=null&&!ft(i)&&(i=null);const r=Em(),o=new WeakSet,l=[];let u=!1;const d=r.app={_uid:iw++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Hw,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,m){if(!u){const p=d._ceVNode||we(n,i);return p.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),e(p,c,m),u=!0,d._container=c,c.__vue_app__=d,Lo(p.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 wm(){return!!(hi()||ti)}const Cm={},Am=()=>Object.create(Cm),Sm=e=>Object.getPrototypeOf(e)===Cm;function aw(e,t,s,n=!1){const i={},r=Am();e.propsDefaults=Object.create(null),xm(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 ow(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 m=c[h];if(Io(e.emitsOptions,m))continue;const p=t[m];if(u)if(ut(r,m))p!==r[m]&&(r[m]=p,d=!0);else{const v=Cs(m);i[v]=Zl(u,l,v,p,e,!1)}else p!==r[m]&&(r[m]=p,d=!0)}}}else{xm(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 xm(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 lw=new WeakMap;function $m(e,t,s=!1){const n=s?lw: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[m,p]=$m(h,t,!0);Ot(o,m),p&&l.push(...p)};!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 m=r[c],p=o[h]=Ve(m)||je(m)?{type:m}:Ot({},m),v=p.type;let E=!1,_=!0;if(Ve(v))for(let S=0;S<v.length;++S){const C=v[S],A=je(C)&&C.name;if(A==="Boolean"){E=!0;break}else A==="String"&&(_=!1)}else E=je(v)&&v.name==="Boolean";p[0]=E,p[1]=_,(E||ut(p,"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)],uw=(e,t,s)=>{if(t._n)return t;const n=qe((...i)=>dc(t(...i)),s);return n._c=!1,n},Tm=(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]=uw(i,r,n);else if(r!=null){const o=dc(r);t[i]=()=>o}}},Om=(e,t)=>{const s=dc(t);e.slots.default=()=>s},Nm=(e,t,s)=>{for(const n in t)(s||!cc(n))&&(e[n]=t[n])},cw=(e,t,s)=>{const n=e.slots=Am();if(e.vnode.shapeFlag&32){const i=t._;i?(Nm(n,t,s),s&&Ap(n,"_",i,!0)):Tm(t,n)}else t&&Om(e,t)},dw=(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:Nm(i,t,s):(r=!t.$stable,Tm(t,i)),o=t}else t&&(Om(e,t),o={default:1});if(r)for(const l in i)!cc(l)&&o[l]==null&&delete i[l]},Kt=Pw;function fw(e){return hw(e)}function hw(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:m,setScopeId:p=Bs,insertStaticContent:v}=e,E=(k,R,j,ne=null,re=null,oe=null,pe=void 0,me=null,Y=!!R.dynamicChildren)=>{if(k===R)return;k&&!Qs(k,R)&&(ne=Q(k),ue(k,re,oe,!0),k=null),R.patchFlag===-2&&(Y=!1,R.dynamicChildren=null);const{type:de,ref:Me,shapeFlag:Ce}=R;switch(de){case qo:_(k,R,j,ne);break;case Tt:S(k,R,j,ne);break;case qa:k==null&&C(R,j,ne,pe);break;case Ae:F(k,R,j,ne,re,oe,pe,me,Y);break;default:Ce&1?$(k,R,j,ne,re,oe,pe,me,Y):Ce&6?H(k,R,j,ne,re,oe,pe,me,Y):(Ce&64||Ce&128)&&de.process(k,R,j,ne,re,oe,pe,me,Y,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,j,ne)=>{if(k==null)n(R.el=l(R.children),j,ne);else{const re=R.el=k.el;R.children!==k.children&&d(re,R.children)}},S=(k,R,j,ne)=>{k==null?n(R.el=u(R.children||""),j,ne):R.el=k.el},C=(k,R,j,ne)=>{[k.el,k.anchor]=v(k.children,R,j,ne,k.el,k.anchor)},A=({el:k,anchor:R},j,ne)=>{let re;for(;k&&k!==R;)re=m(k),n(k,j,ne),k=re;n(R,j,ne)},g=({el:k,anchor:R})=>{let j;for(;k&&k!==R;)j=m(k),i(k),k=j;i(R)},$=(k,R,j,ne,re,oe,pe,me,Y)=>{R.type==="svg"?pe="svg":R.type==="math"&&(pe="mathml"),k==null?L(R,j,ne,re,oe,pe,me,Y):w(k,R,re,oe,pe,me,Y)},L=(k,R,j,ne,re,oe,pe,me)=>{let Y,de;const{props:Me,shapeFlag:Ce,transition:Oe,dirs:Qe}=k;if(Y=k.el=o(k.type,oe,Me&&Me.is,Me),Ce&8?c(Y,k.children):Ce&16&&I(k.children,Y,null,ne,re,wl(k,oe),pe,me),Qe&&jn(k,null,ne,"created"),V(Y,k,k.scopeId,pe,ne),Me){for(const st in Me)st!=="value"&&!xr(st)&&r(Y,st,null,Me[st],oe,ne);"value"in Me&&r(Y,"value",null,Me.value,oe),(de=Me.onVnodeBeforeMount)&&Ls(de,ne,k)}Qe&&jn(k,null,ne,"beforeMount");const He=pw(re,Oe);He&&Oe.beforeEnter(Y),n(Y,R,j),((de=Me&&Me.onVnodeMounted)||He||Qe)&&Kt(()=>{de&&Ls(de,ne,k),He&&Oe.enter(Y),Qe&&jn(k,null,ne,"mounted")},re)},V=(k,R,j,ne,re)=>{if(j&&p(k,j),ne)for(let oe=0;oe<ne.length;oe++)p(k,ne[oe]);if(re){let oe=re.subTree;if(R===oe||Rm(oe.type)&&(oe.ssContent===R||oe.ssFallback===R)){const pe=re.vnode;V(k,pe,pe.scopeId,pe.slotScopeIds,re.parent)}}},I=(k,R,j,ne,re,oe,pe,me,Y=0)=>{for(let de=Y;de<k.length;de++){const Me=k[de]=me?yn(k[de]):Os(k[de]);E(null,Me,R,j,ne,re,oe,pe,me)}},w=(k,R,j,ne,re,oe,pe)=>{const me=R.el=k.el;let{patchFlag:Y,dynamicChildren:de,dirs:Me}=R;Y|=k.patchFlag&16;const Ce=k.props||gt,Oe=R.props||gt;let Qe;if(j&&Bn(j,!1),(Qe=Oe.onVnodeBeforeUpdate)&&Ls(Qe,j,R,k),Me&&jn(R,k,j,"beforeUpdate"),j&&Bn(j,!0),(Ce.innerHTML&&Oe.innerHTML==null||Ce.textContent&&Oe.textContent==null)&&c(me,""),de?O(k.dynamicChildren,de,me,j,ne,wl(R,re),oe):pe||X(k,R,me,null,j,ne,wl(R,re),oe,!1),Y>0){if(Y&16)x(me,Ce,Oe,j,re);else if(Y&2&&Ce.class!==Oe.class&&r(me,"class",null,Oe.class,re),Y&4&&r(me,"style",Ce.style,Oe.style,re),Y&8){const He=R.dynamicProps;for(let st=0;st<He.length;st++){const et=He[st],_t=Ce[et],Ct=Oe[et];(Ct!==_t||et==="value")&&r(me,et,_t,Ct,re,j)}}Y&1&&k.children!==R.children&&c(me,R.children)}else!pe&&de==null&&x(me,Ce,Oe,j,re);((Qe=Oe.onVnodeUpdated)||Me)&&Kt(()=>{Qe&&Ls(Qe,j,R,k),Me&&jn(R,k,j,"updated")},ne)},O=(k,R,j,ne,re,oe,pe)=>{for(let me=0;me<R.length;me++){const Y=k[me],de=R[me],Me=Y.el&&(Y.type===Ae||!Qs(Y,de)||Y.shapeFlag&198)?h(Y.el):j;E(Y,de,Me,null,ne,re,oe,pe,!0)}},x=(k,R,j,ne,re)=>{if(R!==j){if(R!==gt)for(const oe in R)!xr(oe)&&!(oe in j)&&r(k,oe,R[oe],null,re,ne);for(const oe in j){if(xr(oe))continue;const pe=j[oe],me=R[oe];pe!==me&&oe!=="value"&&r(k,oe,me,pe,re,ne)}"value"in j&&r(k,"value",R.value,j.value,re)}},F=(k,R,j,ne,re,oe,pe,me,Y)=>{const de=R.el=k?k.el:l(""),Me=R.anchor=k?k.anchor:l("");let{patchFlag:Ce,dynamicChildren:Oe,slotScopeIds:Qe}=R;Qe&&(me=me?me.concat(Qe):Qe),k==null?(n(de,j,ne),n(Me,j,ne),I(R.children||[],j,Me,re,oe,pe,me,Y)):Ce>0&&Ce&64&&Oe&&k.dynamicChildren?(O(k.dynamicChildren,Oe,j,re,oe,pe,me),(R.key!=null||re&&R===re.subTree)&&fc(k,R,!0)):X(k,R,j,Me,re,oe,pe,me,Y)},H=(k,R,j,ne,re,oe,pe,me,Y)=>{R.slotScopeIds=me,k==null?R.shapeFlag&512?re.ctx.activate(R,j,ne,pe,Y):z(R,j,ne,re,oe,pe,Y):fe(k,R,Y)},z=(k,R,j,ne,re,oe,pe)=>{const me=k.component=Fw(k,ne,re);if(Do(k)&&(me.ctx.renderer=Ee),Vw(me,!1,pe),me.asyncDep){if(re&&re.registerDep(me,ie,pe),!k.el){const Y=me.subTree=we(Tt);S(null,Y,R,j),k.placeholder=Y.el}}else ie(me,k,R,j,re,oe,pe)},fe=(k,R,j)=>{const ne=R.component=k.component;if(Sw(k,R,j))if(ne.asyncDep&&!ne.asyncResolved){G(ne,R,j);return}else ne.next=R,ne.update();else R.el=k.el,ne.vnode=R},ie=(k,R,j,ne,re,oe,pe)=>{const me=()=>{if(k.isMounted){let{next:Ce,bu:Oe,u:Qe,parent:He,vnode:st}=k;{const B=km(k);if(B){Ce&&(Ce.el=st.el,G(k,Ce,pe)),B.asyncDep.then(()=>{k.isUnmounted||me()});return}}let et=Ce,_t;Bn(k,!1),Ce?(Ce.el=st.el,G(k,Ce,pe)):Ce=st,Oe&&Ma(Oe),(_t=Ce.props&&Ce.props.onVnodeBeforeUpdate)&&Ls(_t,He,Ce,st),Bn(k,!0);const Ct=Jd(k),U=k.subTree;k.subTree=Ct,E(U,Ct,h(U.el),Q(U),k,re,oe),Ce.el=Ct.el,et===null&&pc(k,Ct.el),Qe&&Kt(Qe,re),(_t=Ce.props&&Ce.props.onVnodeUpdated)&&Kt(()=>Ls(_t,He,Ce,st),re)}else{let Ce;const{el:Oe,props:Qe}=R,{bm:He,m:st,parent:et,root:_t,type:Ct}=k,U=ki(R);Bn(k,!1),He&&Ma(He),!U&&(Ce=Qe&&Qe.onVnodeBeforeMount)&&Ls(Ce,et,R),Bn(k,!0);{_t.ce&&_t.ce._def.shadowRoot!==!1&&_t.ce._injectChildStyle(Ct);const B=k.subTree=Jd(k);E(null,B,j,ne,k,re,oe),R.el=B.el}if(st&&Kt(st,re),!U&&(Ce=Qe&&Qe.onVnodeMounted)){const B=R;Kt(()=>Ls(Ce,et,B),re)}(R.shapeFlag&256||et&&ki(et.vnode)&&et.vnode.shapeFlag&256)&&k.a&&Kt(k.a,re),k.isMounted=!0,R=j=ne=null}};k.scope.on();const Y=k.effect=new Pp(me);k.scope.off();const de=k.update=Y.run.bind(Y),Me=k.job=Y.runIfDirty.bind(Y);Me.i=k,Me.id=k.uid,Y.scheduler=()=>lc(Me),Bn(k,!0),de()},G=(k,R,j)=>{R.component=k;const ne=k.vnode.props;k.vnode=R,k.next=null,ow(k,R.props,ne,j),dw(k,R.children,j),ln(),Ld(k),un()},X=(k,R,j,ne,re,oe,pe,me,Y=!1)=>{const de=k&&k.children,Me=k?k.shapeFlag:0,Ce=R.children,{patchFlag:Oe,shapeFlag:Qe}=R;if(Oe>0){if(Oe&128){W(de,Ce,j,ne,re,oe,pe,me,Y);return}else if(Oe&256){Z(de,Ce,j,ne,re,oe,pe,me,Y);return}}Qe&8?(Me&16&&ve(de,re,oe),Ce!==de&&c(j,Ce)):Me&16?Qe&16?W(de,Ce,j,ne,re,oe,pe,me,Y):ve(de,re,oe,!0):(Me&8&&c(j,""),Qe&16&&I(Ce,j,ne,re,oe,pe,me,Y))},Z=(k,R,j,ne,re,oe,pe,me,Y)=>{k=k||Ti,R=R||Ti;const de=k.length,Me=R.length,Ce=Math.min(de,Me);let Oe;for(Oe=0;Oe<Ce;Oe++){const Qe=R[Oe]=Y?yn(R[Oe]):Os(R[Oe]);E(k[Oe],Qe,j,null,re,oe,pe,me,Y)}de>Me?ve(k,re,oe,!0,!1,Ce):I(R,j,ne,re,oe,pe,me,Y,Ce)},W=(k,R,j,ne,re,oe,pe,me,Y)=>{let de=0;const Me=R.length;let Ce=k.length-1,Oe=Me-1;for(;de<=Ce&&de<=Oe;){const Qe=k[de],He=R[de]=Y?yn(R[de]):Os(R[de]);if(Qs(Qe,He))E(Qe,He,j,null,re,oe,pe,me,Y);else break;de++}for(;de<=Ce&&de<=Oe;){const Qe=k[Ce],He=R[Oe]=Y?yn(R[Oe]):Os(R[Oe]);if(Qs(Qe,He))E(Qe,He,j,null,re,oe,pe,me,Y);else break;Ce--,Oe--}if(de>Ce){if(de<=Oe){const Qe=Oe+1,He=Qe<Me?R[Qe].el:ne;for(;de<=Oe;)E(null,R[de]=Y?yn(R[de]):Os(R[de]),j,He,re,oe,pe,me,Y),de++}}else if(de>Oe)for(;de<=Ce;)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]=Y?yn(R[de]):Os(R[de]);$e.key!=null&&st.set($e.key,de)}let et,_t=0;const Ct=Oe-He+1;let U=!1,B=0;const ce=new Array(Ct);for(de=0;de<Ct;de++)ce[de]=0;for(de=Qe;de<=Ce;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>=B?B=Le:U=!0,E($e,R[Le],j,null,re,oe,pe,me,Y),_t++)}const Se=U?mw(ce):Ti;for(et=Se.length-1,de=Ct-1;de>=0;de--){const $e=He+de,Le=R[$e],Pe=R[$e+1],ct=$e+1<Me?Pe.el||Pe.placeholder:ne;ce[de]===0?E(null,Le,j,ct,re,oe,pe,me,Y):U&&(et<0||de!==Se[et]?se(Le,j,ct,2):et--)}}},se=(k,R,j,ne,re=null)=>{const{el:oe,type:pe,transition:me,children:Y,shapeFlag:de}=k;if(de&6){se(k.component.subTree,R,j,ne);return}if(de&128){k.suspense.move(R,j,ne);return}if(de&64){pe.move(k,R,j,Ee);return}if(pe===Ae){n(oe,R,j);for(let Ce=0;Ce<Y.length;Ce++)se(Y[Ce],R,j,ne);n(k.anchor,R,j);return}if(pe===qa){A(k,R,j);return}if(ne!==2&&de&1&&me)if(ne===0)me.beforeEnter(oe),n(oe,R,j),Kt(()=>me.enter(oe),re);else{const{leave:Ce,delayLeave:Oe,afterLeave:Qe}=me,He=()=>{k.ctx.isUnmounted?i(oe):n(oe,R,j)},st=()=>{oe._isLeaving&&oe[tn](!0),Ce(oe,()=>{He(),Qe&&Qe()})};Oe?Oe(oe,He,st):st()}else n(oe,R,j)},ue=(k,R,j,ne=!1,re=!1)=>{const{type:oe,props:pe,ref:me,children:Y,dynamicChildren:de,shapeFlag:Me,patchFlag:Ce,dirs:Oe,cacheIndex:Qe}=k;if(Ce===-2&&(re=!1),me!=null&&(ln(),Nr(me,null,j,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=pe&&pe.onVnodeBeforeUnmount)&&Ls(et,R,k),Me&6)tt(k.component,j,ne);else{if(Me&128){k.suspense.unmount(j,ne);return}He&&jn(k,null,R,"beforeUnmount"),Me&64?k.type.remove(k,R,j,Ee,ne):de&&!de.hasOnce&&(oe!==Ae||Ce>0&&Ce&64)?ve(de,R,j,!1,!0):(oe===Ae&&Ce&384||!re&&Me&16)&&ve(Y,R,j),ne&&Re(k)}(st&&(et=pe&&pe.onVnodeUnmounted)||He)&&Kt(()=>{et&&Ls(et,R,k),He&&jn(k,null,R,"unmounted")},j)},Re=k=>{const{type:R,el:j,anchor:ne,transition:re}=k;if(R===Ae){Ie(j,ne);return}if(R===qa){g(k);return}const oe=()=>{i(j),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(k.shapeFlag&1&&re&&!re.persisted){const{leave:pe,delayLeave:me}=re,Y=()=>pe(j,oe);me?me(k.el,oe,Y):Y()}else oe()},Ie=(k,R)=>{let j;for(;k!==R;)j=m(k),i(k),k=j;i(R)},tt=(k,R,j)=>{const{bum:ne,scope:re,job:oe,subTree:pe,um:me,m:Y,a:de}=k;Zd(Y),Zd(de),ne&&Ma(ne),re.stop(),oe&&(oe.flags|=8,ue(pe,k,R,j)),me&&Kt(me,R),Kt(()=>{k.isUnmounted=!0},R)},ve=(k,R,j,ne=!1,re=!1,oe=0)=>{for(let pe=oe;pe<k.length;pe++)ue(k[pe],R,j,ne,re)},Q=k=>{if(k.shapeFlag&6)return Q(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const R=m(k.anchor||k.el),j=R&&R[im];return j?m(j):R};let K=!1;const le=(k,R,j)=>{k==null?R._vnode&&ue(R._vnode,null,null,!0):E(R._vnode||null,k,R,null,null,null,j),R._vnode=k,K||(K=!0,Ld(),tm(),K=!1)},Ee={p:E,um:ue,m:se,r:Re,mt:z,mc:I,pc:X,pbc:O,n:Q,o:e};return{render:le,hydrate:void 0,createApp:rw(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 pw(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 mw(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 km(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:km(t)}function Zd(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const gw=Symbol.for("v-scx"),vw=()=>Yt(gw);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 p=vw();d=p.__watcherHandles||(p.__watcherHandles=[])}else if(!u){const p=()=>{};return p.stop=Bs,p.resume=Bs,p.pause=Bs,p}}const c=Qt;l.call=(p,v,E)=>Rs(p,c,v,E);let h=!1;r==="post"?l.scheduler=p=>{Kt(p,c&&c.suspense)}:r!=="sync"&&(h=!0,l.scheduler=(p,v)=>{v?p():lc(p)}),l.augmentJob=p=>{t&&(p.flags|=4),h&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const m=RE(e,t,l);return Qr&&(d?d.push(m):u&&m()),m}function bw(e,t,s){const n=this.proxy,i=yt(e)?e.includes(".")?Pm(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 Pm(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 yw=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Cs(t)}Modifiers`]||e[`${Pn(t)}Modifiers`];function _w(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||gt;let i=s;const r=t.startsWith("update:"),o=r&&yw(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=ml(t)]||n[l=ml(Cs(t))];!u&&r&&(u=n[l=ml(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 Ew=new WeakMap;function Dm(e,t,s=!1){const n=s?Ew: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=Dm(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:m,setupState:p,ctx:v,inheritAttrs:E}=e,_=Za(e);let S,C;try{if(s.shapeFlag&4){const g=i||n,$=g;S=Os(d.call($,g,c,h,p,m,v)),C=l}else{const g=t;S=Os(g.length>1?g(h,{attrs:l,slots:o,emit:u}):g(h,null)),C=t.props?l:Cw(l)}}catch(g){Pr.length=0,Jr(g,e,1),S=we(Tt)}let A=S;if(C&&E!==!1){const g=Object.keys(C),{shapeFlag:$}=A;g.length&&$&7&&(r&&g.some(Yu)&&(C=Aw(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),S=A,Za(_),S}function ww(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 Cw=e=>{let t;for(const s in e)(s==="class"||s==="style"||Co(s))&&((t||(t={}))[s]=e[s]);return t},Aw=(e,t)=>{const s={};for(const n in e)(!Yu(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Sw(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 m=c[h];if(o[m]!==n[m]&&!Io(d,m))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 pc({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 Rm=e=>e.__isSuspense;let Jl=0;const xw={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,r,o,l,u,d){if(e==null)Tw(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}Ow(e,t,s,n,i,o,l,u,d)}},hydrate:Nw,normalize:kw},$w=xw;function Vr(e,t){const s=e.props&&e.props[t];je(s)&&s()}function Tw(e,t,s,n,i,r,o,l,u){const{p:d,o:{createElement:c}}=u,h=c("div"),m=e.suspense=Mm(e,i,n,t,h,s,r,o,l,u);d(null,m.pendingBranch=e.ssContent,h,null,n,m,r,o),m.deps>0?(Vr(e,"onPending"),Vr(e,"onFallback"),d(null,e.ssFallback,t,s,n,null,r,o),Di(m,e.ssFallback)):m.resolve(!1,!0)}function Ow(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 m=t.ssContent,p=t.ssFallback,{activeBranch:v,pendingBranch:E,isInFallback:_,isHydrating:S}=h;if(E)h.pendingBranch=m,Qs(E,m)?(u(E,m,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0?h.resolve():_&&(S||(u(v,p,s,n,i,null,r,o,l),Di(h,p)))):(h.pendingId=Jl++,S?(h.isHydrating=!1,h.activeBranch=E):d(E,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=c("div"),_?(u(null,m,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0?h.resolve():(u(v,p,s,n,i,null,r,o,l),Di(h,p))):v&&Qs(v,m)?(u(v,m,s,n,i,h,r,o,l),h.resolve(!0)):(u(null,m,h.hiddenContainer,null,i,h,r,o,l),h.deps<=0&&h.resolve()));else if(v&&Qs(v,m))u(v,m,s,n,i,h,r,o,l),Di(h,m);else if(Vr(t,"onPending"),h.pendingBranch=m,m.shapeFlag&512?h.pendingId=m.component.suspenseId:h.pendingId=Jl++,u(null,m,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(p)},C):C===0&&h.fallback(p)}}function Mm(e,t,s,n,i,r,o,l,u,d,c=!1){const{p:h,m,um:p,n:v,o:{parentNode:E,remove:_}}=d;let S;const C=Dw(e);C&&t&&t.pendingBranch&&(S=t.pendingId,t.deps++);const A=e.props?Sp(e.props.timeout):void 0,g=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,V=!1){const{vnode:I,activeBranch:w,pendingBranch:O,pendingId:x,effects:F,parentComponent:H,container:z}=$;let fe=!1;$.isHydrating?$.isHydrating=!1:L||(fe=w&&O.transition&&O.transition.mode==="out-in",fe&&(w.transition.afterLeave=()=>{x===$.pendingId&&(m(O,z,r===g?v(w):r,0),Kl(F))}),w&&(E(w.el)===z&&(r=v(w)),p(w,H,$,!0)),fe||m(O,z,r,0)),Di($,O),$.pendingBranch=null,$.isInFallback=!1;let ie=$.parent,G=!1;for(;ie;){if(ie.pendingBranch){ie.effects.push(...F),G=!0;break}ie=ie.parent}!G&&!fe&&Kl(F),$.effects=[],C&&t&&t.pendingBranch&&S===t.pendingId&&(t.deps--,t.deps===0&&!V&&t.resolve()),Vr(I,"onResolve")},fallback(L){if(!$.pendingBranch)return;const{vnode:V,activeBranch:I,parentComponent:w,container:O,namespace:x}=$;Vr(V,"onFallback");const F=v(I),H=()=>{$.isInFallback&&(h(null,L,O,F,w,null,x,l,u),Di($,L))},z=L.transition&&L.transition.mode==="out-in";z&&(I.transition.afterLeave=H),$.isInFallback=!0,p(I,w,null,!0),z||H()},move(L,V,I){$.activeBranch&&m($.activeBranch,L,V,I),$.container=L},next(){return $.activeBranch&&v($.activeBranch)},registerDep(L,V,I){const w=!!$.pendingBranch;w&&$.deps++;const O=L.vnode.el;L.asyncDep.catch(x=>{Jr(x,L,0)}).then(x=>{if(L.isUnmounted||$.isUnmounted||$.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:F}=L;eu(L,x),O&&(F.el=O);const H=!O&&L.subTree.el;V(L,F,E(O||L.subTree.el),O?null:v(L.subTree),$,o,I),H&&_(H),pc(L,F.el),w&&--$.deps===0&&$.resolve()})},unmount(L,V){$.isUnmounted=!0,$.activeBranch&&p($.activeBranch,s,L,V),$.pendingBranch&&p($.pendingBranch,s,L,V)}};return $}function Nw(e,t,s,n,i,r,o,l,u){const d=t.suspense=Mm(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 kw(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=ef(n?s.default:s),e.ssFallback=n?ef(s.fallback):we(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,Im())}return Ve(e)&&(e=ww(e)),e=Os(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Pw(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,pc(n,i))}function Dw(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 Im(){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 qm(e){return e.dynamicChildren=Qi>0?is||Ti:null,Im(),Qi>0&&is&&is.push(e),e}function P(e,t,s,n,i,r){return qm(a(e,t,s,n,i,r,!0))}function at(e,t,s,n,i){return qm(we(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 Lm=({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&&Lm(t),ref:t&&La(t),scopeId:nm,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?(mc(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 we=Rw;function Rw(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===gm)&&(e=Tt),ji(e)){const l=Tn(e,t,!0);return s&&mc(l,s),Qi>0&&!r&&is&&(l.shapeFlag&6?is[is.indexOf(e)]=l:is.push(l)),l.patchFlag=-2,l}if(Kw(e)&&(e=e.__vccOpts),t){t=Mw(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:Rm(e)?128:rm(e)?64:ft(e)?4:je(e)?2:0;return a(e,t,s,n,i,o,r,!0)}function Mw(e){return e?rc(e)||Sm(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?Iw(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Lm(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 te(e=" ",t=0){return we(qo,null,e,t)}function ai(e,t){const s=we(qa,null,e);return s.staticCount=t,s}function he(e="",t=!1){return t?(N(),at(Tt,null,e)):we(Tt,null,e)}function Os(e){return e==null||typeof e=="boolean"?we(Tt):Ve(e)?we(Ae,null,e.slice()):ji(e)?yn(e):we(qo,null,String(e))}function yn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tn(e)}function mc(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),mc(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Sm(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=[te(t)]):s=8);e.children=t,e.shapeFlag|=s}function Iw(...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 qw=Em();let Lw=0;function Fw(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||qw,r={uid:Lw++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Op(!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:$m(n,i),emitsOptions:Dm(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=_w.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 Fm(e){return e.vnode.shapeFlag&4}let Qr=!1;function Vw(e,t=!1,s=!1){t&&Xl(t);const{props:n,children:i}=e.vnode,r=Fm(e);aw(e,n,r,t),cw(e,i,s||t);const o=r?Qw(e,t):void 0;return t&&Xl(!1),o}function Qw(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,JE);const{setup:n}=s;if(n){ln();const i=e.setupContext=n.length>1?Bw(e):null,r=Xr(e),o=Zr(n,e,0,[e.props,i]),l=Ep(o);if(un(),r(),(l||e.sp)&&!ki(e)&&hm(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 Vm(e)}function eu(e,t,s){je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=Zp(t)),Vm(e)}function Vm(e,t,s){const n=e.type;e.render||(e.render=n.render||Bs);{const i=Xr(e);ln();try{XE(e)}finally{un(),i()}}}const jw={get(e,t){return Vt(e,"get",""),e[t]}};function Bw(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,jw),slots:e.slots,emit:e.emit,expose:t}}function Lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zp(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 Uw(e,t=!0){return je(e)?e.displayName||e.name:e.name||t&&e.__name}function Kw(e){return je(e)&&"__vccOpts"in e}const b=(e,t)=>PE(e,t,Qr);function oi(e,t,s){try{eo(-1);const n=arguments.length;return n===2?ft(t)&&!Ve(t)?ji(t)?we(e,null,[t]):we(e,t):we(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&ji(s)&&(s=[s]),we(e,t,s))}finally{eo(1)}}const Hw="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 Qm=tu?e=>tu.createHTML(e):e=>e,Gw="http://www.w3.org/2000/svg",Ww="http://www.w3.org/1998/Math/MathML",en=typeof document<"u"?document:null,nf=en&&en.createElement("template"),zw={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(Gw,e):t==="mathml"?en.createElementNS(Ww,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=Qm(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]}},mn="transition",fr="animation",jr=Symbol("_vtc"),jm={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},Yw=Ot({},lm,jm),Zw=e=>(e.displayName="Transition",e.props=Yw,e),Jw=Zw((e,{slots:t})=>oi(QE,Xw(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 Xw(e){const t={};for(const F in e)F in jm||(t[F]=e[F]);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:m=`${s}-leave-active`,leaveToClass:p=`${s}-leave-to`}=e,v=e0(i),E=v&&v[0],_=v&&v[1],{onBeforeEnter:S,onEnter:C,onEnterCancelled:A,onLeave:g,onLeaveCancelled:$,onBeforeAppear:L=S,onAppear:V=C,onAppearCancelled:I=A}=t,w=(F,H,z,fe)=>{F._enterCancelled=fe,Kn(F,H?c:l),Kn(F,H?d:o),z&&z()},O=(F,H)=>{F._isLeaving=!1,Kn(F,h),Kn(F,p),Kn(F,m),H&&H()},x=F=>(H,z)=>{const fe=F?V:C,ie=()=>w(H,F,z);Un(fe,[H,ie]),af(()=>{Kn(H,F?u:r),Ys(H,F?c:l),rf(fe)||of(H,n,E,ie)})};return Ot(t,{onBeforeEnter(F){Un(S,[F]),Ys(F,r),Ys(F,o)},onBeforeAppear(F){Un(L,[F]),Ys(F,u),Ys(F,d)},onEnter:x(!1),onAppear:x(!0),onLeave(F,H){F._isLeaving=!0;const z=()=>O(F,H);Ys(F,h),F._enterCancelled?(Ys(F,m),cf(F)):(cf(F),Ys(F,m)),af(()=>{F._isLeaving&&(Kn(F,h),Ys(F,p),rf(g)||of(F,n,_,z))}),Un(g,[F,z])},onEnterCancelled(F){w(F,!1,void 0,!0),Un(A,[F])},onAppearCancelled(F){w(F,!0,void 0,!0),Un(I,[F])},onLeaveCancelled(F){O(F),Un($,[F])}})}function e0(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 Sp(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 t0=0;function of(e,t,s,n){const i=e._endId=++t0,r=()=>{i===e._endId&&n()};if(s!=null)return setTimeout(r,s);const{type:o,timeout:l,propCount:u}=s0(e,t);if(!o)return n();const d=o+"end";let c=0;const h=()=>{e.removeEventListener(d,m),r()},m=p=>{p.target===e&&++c>=u&&h()};setTimeout(()=>{c<u&&h()},l+1),e.addEventListener(d,m)}function s0(e,t){const s=window.getComputedStyle(e),n=v=>(s[v]||"").split(", "),i=n(`${mn}Delay`),r=n(`${mn}Duration`),o=lf(i,r),l=n(`${fr}Delay`),u=n(`${fr}Duration`),d=lf(l,u);let c=null,h=0,m=0;t===mn?o>0&&(c=mn,h=o,m=r.length):t===fr?d>0&&(c=fr,h=d,m=u.length):(h=Math.max(o,d),c=h>0?o>d?mn:fr:null,m=c?c===mn?r.length:u.length:0);const p=c===mn&&/\b(?:transform|all)(?:,|$)/.test(n(`${mn}Property`).toString());return{type:c,timeout:h,propCount:m,hasTransform:p}}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 n0(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"),Bm=Symbol("_vsh"),i0={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[Bm]=!t}const r0=Symbol(""),a0=/(?:^|;)\s*display\s*:/;function o0(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[r0];o&&(s+=";"+o),n.cssText=s,r=a0.test(s)}}else t&&e.removeAttribute("style");so in e&&(e[so]=r?n.display:"",e[Bm]&&(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=l0(e,t);df.test(s)?e.setProperty(Pn(n),s.replace(df,""),"important"):e[n]=s}}const ff=["Webkit","Moz","ms"],Al={};function l0(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 pf(e,t,s,n,i,r=rE(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(hf,t.slice(6,t.length)):e.setAttributeNS(hf,t,s):s==null||r&&!xp(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ds(s)?String(s):s)}function mf(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Qm(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=xp(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 u0(e,t,s,n){e.removeEventListener(t,s,n)}const gf=Symbol("_vei");function c0(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]=d0(t);if(n){const d=r[t]=p0(n,i);Wn(e,l,d,u)}else o&&(u0(e,l,o,u),r[t]=void 0)}}const vf=/(?:Once|Passive|Capture)$/;function d0(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 f0=Promise.resolve(),h0=()=>Sl||(f0.then(()=>Sl=0),Sl=Date.now());function p0(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Rs(m0(n,s.value),t,5,[n])};return s.value=e,s.attached=h0(),s}function m0(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,g0=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?n0(e,n,o):t==="style"?o0(e,s,n):Co(t)?Yu(t)||c0(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):v0(e,t,n,o))?(mf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&pf(e,t,n,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!yt(n))?mf(e,Cs(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),pf(e,t,n,o))};function v0(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 b0(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",b0),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))}},Um={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=oE(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 y0=["ctrl","shift","alt","meta"],_0={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)=>y0.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=_0[t[o]];if(l&&l(i,t))return}return e(i,...r)}))},E0={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||E0[o]===r))return e(i)}))},w0=Ot({patchProp:g0},zw);let Ef;function C0(){return Ef||(Ef=fw(w0))}const A0=((...e)=>{const t=C0().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=x0(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,S0(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function S0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function x0(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 Km;const Fo=e=>Km=e,Hm=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 $0(){const e=Np(!0),t=e.run(()=>be({}));let s=[],n=[];const i=ac({install(r){Fo(i),i._a=r,r.provide(Hm,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 Gm=()=>{};function wf(e,t,s,n=Gm){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),n())};return!s&&kp()&&ec(i),i}function Ci(e,...t){e.slice().forEach(s=>{s(...t)})}const T0=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 O0=Symbol();function N0(e){return!su(e)||!Object.prototype.hasOwnProperty.call(e,O0)}const{assign:vn}=Object;function k0(e){return!!(ht(e)&&e.effect)}function P0(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,m)=>(h[m]=ac(b(()=>{Fo(s);const p=s._s.get(e);return o[m].call(p,p)})),h),{}))}return u=Wm(e,d,t,s,n,!0),u}function Wm(e,t,s={},n,i,r){let o;const l=vn({actions:{}},s),u={deep:!0};let d,c,h=[],m=[],p;const v=n.state.value[e];!r&&!v&&(n.state.value[e]={}),be({});let E;function _(I){let w;d=c=!1,typeof I=="function"?(I(n.state.value[e]),w={type:Dr.patchFunction,storeId:e,events:p}):(nu(n.state.value[e],I),w={type:Dr.patchObject,payload:I,storeId:e,events:p});const O=E=Symbol();kt().then(()=>{E===O&&(d=!0)}),c=!0,Ci(h,w,n.state.value[e])}const S=r?function(){const{state:w}=s,O=w?w():{};this.$patch(x=>{vn(x,O)})}:Gm;function C(){o.stop(),h=[],m=[],n._s.delete(e)}const A=(I,w="")=>{if(Cf in I)return I[xl]=w,I;const O=function(){Fo(n);const x=Array.from(arguments),F=[],H=[];function z(G){F.push(G)}function fe(G){H.push(G)}Ci(m,{args:x,name:O[xl],store:$,after:z,onError:fe});let ie;try{ie=I.apply(this&&this.$id===e?this:$,x)}catch(G){throw Ci(H,G),G}return ie instanceof Promise?ie.then(G=>(Ci(F,G),G)).catch(G=>(Ci(H,G),Promise.reject(G))):(Ci(F,ie),ie)};return O[Cf]=!0,O[xl]=w,O},g={_p:n,$id:e,$onAction:wf.bind(null,m),$patch:_,$reset:S,$subscribe(I,w={}){const O=wf(h,I,w.detached,()=>x()),x=o.run(()=>Ye(()=>n.state.value[e],F=>{(w.flush==="sync"?c:d)&&I({storeId:e,type:Dr.direct,events:p},F)},vn({},u,w)));return O},$dispose:C},$=As(g);n._s.set(e,$);const V=(n._a&&n._a.runWithContext||T0)(()=>n._e.run(()=>(o=Np()).run(()=>t({action:A}))));for(const I in V){const w=V[I];if(ht(w)&&!k0(w)||An(w))r||(v&&N0(w)&&(ht(w)?w.value=v[I]:nu(w,v[I])),n.state.value[e][I]=w);else if(typeof w=="function"){const O=A(w,I);V[I]=O,l.actions[I]=w}}return vn($,V),vn(nt($),V),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})))}),v&&r&&s.hydrate&&s.hydrate($.$state,v),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=wm();return o=o||(u?Yt(Hm,null):null),o&&Fo(o),o=Km,o._s.has(e)||(i?Wm(e,t,n,o):P0(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(){}},D0={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},R0=class{#e=D0;#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 R0;function M0(e){setTimeout(e,0)}var li=typeof window>"u"||"Deno"in globalThis;function ys(){}function I0(e,t){return typeof e=="function"?e(t):e}function iu(e){return typeof e=="number"&&e>=0&&e!==1/0}function zm(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 q0=Object.prototype.hasOwnProperty;function Ym(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],m=t[c];if(h===m){l[c]=h,(s?d<i:q0.call(e,c))&&u++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){l[c]=m;continue}const p=Ym(h,m);l[c]=p,p===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 L0(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?Ym(e,t):t}function F0(e,t,s=0){const n=[...e,t];return s&&n.length>s?n.slice(1):n}function V0(e,t,s=0){const n=[t,...e];return s&&n.length>s?n.slice(0,-1):n}var vc=Symbol();function Zm(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 Q0=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 Q0;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 j0=M0;function B0(){let e=[],t=0,s=l=>{l()},n=l=>{l()},i=j0;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=B0(),U0=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 U0;function K0(e){return Math.min(1e3*2**e,3e4)}function Jm(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 Xm(e){let t=!1,s=0,n;const i=lu(),r=()=>i.status!=="pending",o=E=>{if(!r()){const _=new uu(E);m(_),e.onCancel?.(_)}},l=()=>{t=!0},u=()=>{t=!1},d=()=>bc.isFocused()&&(e.networkMode==="always"||ao.isOnline())&&e.canRun(),c=()=>Jm(e.networkMode)&&e.canRun(),h=E=>{r()||(n?.(),i.resolve(E))},m=E=>{r()||(n?.(),i.reject(E))},p=()=>new Promise(E=>{n=_=>{(r()||d())&&E(_)},e.onPause?.()}).then(()=>{n=void 0,r()||e.onContinue?.()}),v=()=>{if(r())return;let E;const _=s===0?e.initialPromise:void 0;try{E=_??e.fn()}catch(S){E=Promise.reject(S)}Promise.resolve(E).then(h).catch(S=>{if(r())return;const C=e.retry??(li?0:3),A=e.retryDelay??K0,g=typeof A=="function"?A(s,S):A,$=C===!0||typeof C=="number"&&s<C||typeof C=="function"&&C(s,S);if(t||!$){m(S);return}s++,e.onFail?.(s,S),L0(g).then(()=>d()?void 0:p()).then(()=>{t?m(S):v()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n?.(),i),cancelRetry:l,continueRetry:u,canStart:c,start:()=>(c()?v():p().then(v),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)}},H0=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:!zm(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=Zm(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=Xm({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:Jm(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;#m;#f;#h;#u;#c;#l;#p=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 W0(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.#p.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=zm(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,m;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:p,errorUpdatedAt:v,status:E}=c;m=c.data;let _=!1;if(t.placeholderData!==void 0&&m===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",m=au(i?.data,I,t),h=!0)}if(t.select&&m!==void 0&&!_)if(i&&m===r?.data&&t.select===this.#m)m=this.#f;else try{this.#m=t.select,m=t.select(m),m=au(i?.data,m,t),this.#f=m,this.#r=null}catch(I){this.#r=I}this.#r&&(p=this.#r,m=this.#f,v=Date.now(),E="error");const S=c.fetchStatus==="fetching",C=E==="pending",A=E==="error",g=C&&S,$=m!==void 0,V={status:E,fetchStatus:c.fetchStatus,isPending:C,isSuccess:E==="success",isError:A,isInitialLoading:g,isLoading:g,data:m,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:v,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:S,isRefetching:S&&!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=x=>{V.status==="error"?x.reject(V.error):V.data!==void 0&&x.resolve(V.data)},w=()=>{const x=this.#o=V.promise=lu();I(x)},O=this.#o;switch(O.status){case"pending":e.queryHash===s.queryHash&&I(O);break;case"fulfilled":(V.status==="error"||V.data!==O.value)&&w();break;case"rejected":(V.status!=="error"||V.error!==O.reason)&&w();break}}return V}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.#p.size)return!0;const r=new Set(i??this.#p);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 G0(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 G0(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 W0(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=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},m=Zm(t.options,t.fetchOptions),p=async(v,E,_)=>{if(c)return Promise.reject();if(E==null&&v.pages.length)return Promise.resolve(v);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 m(C),{maxPages:g}=t.options,$=_?V0:F0;return{pages:$(v.pages,A,g),pageParams:$(v.pageParams,E,g)}};if(i&&r.length){const v=i==="backward",E=v?ng:du,_={pages:r,pageParams:o},S=E(n,_);l=await p(_,S,v)}else{const v=e??r.length;do{const E=u===0?o[0]??n.initialPageParam:du(n,l);if(u>0&&E==null)break;l=await p(l,E),u++}while(u<v)}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 z0(e,t){return t?du(e,t)!=null:!1}function Y0(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",m=i&&u==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:z0(t,s.data),hasPreviousPage:Y0(t,s.data),isFetchNextPageError:d,isFetchingNextPage:c,isFetchPreviousPageError:h,isFetchingPreviousPage:m,isRefetchError:l&&!d&&!h,isRefetching:r&&!c&&!m}}},J0=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=Xm({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 J0({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 X0=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 H0({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()})})}},eC=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=I0(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()}},tC="VUE_QUERY_CLIENT";function og(e){const t=e?`:${e}`:"";return`${tC}${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"&&nC(e)){const i=Object.entries(e).map(([r,o])=>[r,hu(o,t,r,n+1)]);return Object.fromEntries(i)}return e}function sC(e,t){return hu(e,t)}function ze(e,t=!1){return sC(e,(s,n,i)=>{if(i===1&&n==="queryKey")return ze(s,!0);if(t&&iC(s))return ze(s(),t);if(ht(s))return ze(T(s),t)})}function nC(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function iC(e){return typeof e=="function"}function fn(e=""){if(!wm())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 rC=class extends ag{find(e){return super.find(ze(e))}findAll(e={}){return super.findAll(ze(e))}},aC=class extends rg{find(e){return super.find(ze(e))}findAll(e={}){return super.findAll(ze(e))}},oC=class extends eC{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new rC,mutationCache:e.mutationCache||new aC};super(t),this.isRestoring=be(!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))}},lC={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 oC(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=b(()=>{const p=ze(t);typeof p.enabled=="function"&&(p.enabled=p.enabled());const v=n.defaultQueryOptions(p);return v._optimisticResults=n.isRestoring?.value?"isRestoring":"optimistic",v}),r=new e(n,i.value),o=i.value.shallow?ko(r.getCurrentResult()):As(r.getCurrentResult());let l=()=>{};n.isRestoring&&Ye(n.isRestoring,p=>{p||(l(),l=r.subscribe(v=>{fu(o,v)}))},{immediate:!0});const u=()=>{r.setOptions(i.value),fu(o,r.getCurrentResult())};Ye(i,u),ec(()=>{l()});const d=(...p)=>(u(),o.refetch(...p)),c=()=>new Promise((p,v)=>{let E=()=>{};const _=()=>{if(i.value.enabled!==!1){r.setOptions(i.value);const S=r.getOptimisticResult(i.value);S.isStale?(E(),r.fetchOptimistic(i.value).then(p,C=>{ou(i.value.throwOnError,[C,r.getCurrentQuery()])?v(C):p(r.getCurrentResult())})):(E(),p(S))}};_(),E=Ye(i,_)});Ye(()=>o.error,p=>{if(o.isError&&!o.isFetching&&ou(i.value.throwOnError,[p,r.getCurrentQuery()]))throw p});const h=i.value.shallow?Wp(o):Vi(o),m=oc(h);for(const p in o)typeof o[p]=="function"&&(m[p]=o[p]);return m.suspense=c,m.refetch=d,m}function Jt(e,t){return lg(sg,e)}function uC(e,t){return lg(Z0,e)}function Nt(e,t){const s=fn(),n=b(()=>s.defaultMutationOptions(ze(e))),i=new X0(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?Wp(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 cC="modulepreload",dC=function(e,t){return new URL(e,t).href},kf={},Pf=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){let d=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const o=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");i=d(s.map(c=>{if(c=dC(c,n),c in kf)return;kf[c]=!0;const h=c.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(n)for(let v=o.length-1;v>=0;v--){const E=o[v];if(E.href===c&&(!h||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${m}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":cC,h||(p.as="script"),p.crossOrigin="",p.href=c,u&&p.setAttribute("nonce",u),document.head.appendChild(p),h)return new Promise((v,E)=>{p.addEventListener("load",v),p.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${c}`)))})}))}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 fC(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,hC=/&/g,pC=/\//g,mC=/=/g,gC=/\?/g,dg=/\+/g,vC=/%5B/g,bC=/%5D/g,fg=/%5E/g,yC=/%60/g,hg=/%7B/g,_C=/%7C/g,pg=/%7D/g,EC=/%20/g;function _c(e){return encodeURI(""+e).replace(_C,"|").replace(vC,"[").replace(bC,"]")}function wC(e){return _c(e).replace(hg,"{").replace(pg,"}").replace(fg,"^")}function pu(e){return _c(e).replace(dg,"%2B").replace(EC,"+").replace(cg,"%23").replace(hC,"%26").replace(yC,"`").replace(hg,"{").replace(pg,"}").replace(fg,"^")}function CC(e){return pu(e).replace(mC,"%3D")}function AC(e){return _c(e).replace(cg,"%23").replace(gC,"%3F")}function SC(e){return e==null?"":AC(e).replace(pC,"%2F")}function Ur(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const xC=/\/$/,$C=e=>e.replace(xC,"");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=kC(n??t,s),{fullPath:n+(r&&"?")+r+o,path:n,query:i,hash:Ur(o)}}function TC(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 OC(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])&&mg(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 mg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(!NC(e[s],t[s]))return!1;return!0}function NC(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 kC(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 PC(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),$C(e)}const DC=/^[^#]+#/;function RC(e,t){return e.replace(DC,"#")+t}function MC(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 IC(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=MC(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 mu=new Map;function qC(e,t){mu.set(e,t)}function LC(e){const t=mu.get(e);return mu.delete(e),t}let FC=()=>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 VC(e,t,s,n){let i=[],r=[],o=null;const l=({state:m})=>{const p=gg(e,location),v=s.value,E=t.value;let _=0;if(m){if(s.value=p,t.value=m,o&&o===v){o=null;return}_=E?m.position-E.position:0}else n(p);i.forEach(S=>{S(s.value,v,{delta:_,type:Kr.pop,direction:_?_>0?Mr.forward:Mr.back:Mr.unknown})})};function u(){o=s.value}function d(m){i.push(m);const p=()=>{const v=i.indexOf(m);v>-1&&i.splice(v,1)};return r.push(p),p}function c(){const{history:m}=window;m.state&&m.replaceState(lt({},m.state,{scroll:Qo()}),"")}function h(){for(const m of r)m();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 QC(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("#"),m=h>-1?(s.host&&document.querySelector("base")?e:e.slice(h))+u:FC()+e+u;try{t[c?"replaceState":"pushState"](d,"",m),i.value=d}catch(p){console.error(p),s[c?"replace":"assign"](m)}}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 jC(e){e=PC(e);const t=QC(e),s=VC(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:RC.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 BC(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="[^/]+?",UC={sensitive:!1,strict:!1,start:!0,end:!0},KC=/[.+*?^${}()[\]/\\]/g;function HC(e,t){const s=lt({},UC,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 m=d[h];let p=40+(s.sensitive?.25:0);if(m.type===0)h||(i+="/"),i+=m.value.replace(KC,"\\$&"),p+=40;else if(m.type===1){const{value:v,repeatable:E,optional:_,regexp:S}=m;r.push({name:v,repeatable:E,optional:_});const C=S||Lf;if(C!==Lf){p+=10;try{new RegExp(`(${C})`)}catch(g){throw new Error(`Invalid custom RegExp for param "${v}" (${C}): `+g.message)}}let A=E?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;h||(A=_&&d.length<2?`(?:/${A})`:"/"+A),_&&(A+="?"),i+=A,p+=20,_&&(p+=-8),E&&(p+=-20),C===".*"&&(p+=-50)}c.push(p)}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 m=1;m<c.length;m++){const p=c[m]||"",v=r[m-1];h[v.name]=p&&v.repeatable?p.split("/"):p}return h}function u(d){let c="",h=!1;for(const m of e){(!h||!c.endsWith("/"))&&(c+="/"),h=!1;for(const p of m)if(p.type===0)c+=p.value;else if(p.type===1){const{value:v,repeatable:E,optional:_}=p,S=v in d?d[v]:"";if(Ms(S)&&!E)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const C=Ms(S)?S.join("/"):S;if(!C)if(_)m.length<2&&(c.endsWith("/")?c=c.slice(0,-1):h=!0);else throw new Error(`Missing required param "${v}"`);c+=C}}return c||"/"}return{re:o,score:n,keys:r,parse:l,stringify:u}}function GC(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=GC(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 WC={type:0,value:""},zC=/[a-zA-Z0-9_]/;function YC(e){if(!e)return[[]];if(e==="/")return[[WC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${s})/"${d}": ${p}`)}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 m(){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):m();break;case 4:m(),s=n;break;case 1:u==="("?s=2:zC.test(u)?m():(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=HC(YC(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 JC(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,m,p){const v=!p,E=Qf(h);E.aliasOf=p&&p.record;const _=Bf(t,h),S=[E];if("alias"in h){const g=typeof h.alias=="string"?[h.alias]:h.alias;for(const $ of g)S.push(Qf(lt({},E,{components:p?p.record.components:E.components,path:$,aliasOf:p?p.record:E})))}let C,A;for(const g of S){const{path:$}=g;if(m&&$[0]!=="/"){const L=m.record.path,V=L[L.length-1]==="/"?"":"/";g.path=m.record.path+($&&V+$)}if(C=ZC(g,m,_),p?p.alias.push(C):(A=A||C,A!==C&&A.alias.push(C),v&&h.name&&!jf(C)&&o(h.name)),_g(C)&&u(C),E.children){const L=E.children;for(let V=0;V<L.length;V++)r(L[V],C,p&&p.children[V])}p=p||C}return A?()=>{o(A)}:Rr}function o(h){if(vg(h)){const m=n.get(h);m&&(n.delete(h),s.splice(s.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=s.indexOf(h);m>-1&&(s.splice(m,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 m=tA(h,s);s.splice(m,0,h),h.record.name&&!jf(h)&&n.set(h.record.name,h)}function d(h,m){let p,v={},E,_;if("name"in h&&h.name){if(p=n.get(h.name),!p)throw Ui(1,{location:h});_=p.record.name,v=lt(Vf(m.params,p.keys.filter(A=>!A.optional).concat(p.parent?p.parent.keys.filter(A=>A.optional):[]).map(A=>A.name)),h.params&&Vf(h.params,p.keys.map(A=>A.name))),E=p.stringify(v)}else if(h.path!=null)E=h.path,p=s.find(A=>A.re.test(E)),p&&(v=p.parse(E),_=p.record.name);else{if(p=m.name?n.get(m.name):s.find(A=>A.re.test(m.path)),!p)throw Ui(1,{location:h,currentLocation:m});_=p.record.name,v=lt({},m.params,h.params),E=p.stringify(v)}const S=[];let C=p;for(;C;)S.unshift(C.record),C=C.parent;return{name:_,path:E,params:v,matched:S,meta:eA(S)}}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:XC(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 XC(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 eA(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 tA(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=sA(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function sA(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 nA(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=CC(s),n==null){n!==void 0&&(t+=(t.length?"&":"")+s);continue}(Ms(n)?n.map(r=>r&&pu(r)):[n&&pu(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function iA(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 rA=Symbol(""),Kf=Symbol(""),jo=Symbol(""),Ec=Symbol(""),gu=Symbol("");function pr(){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=m=>{m===!1?u(Ui(4,{from:s,to:t})):m instanceof Error?u(m):BC(m)?u(Ui(2,{from:t,to:m})):(o&&n.enterCallbacks[i]===o&&typeof m=="function"&&o.push(m),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(m=>u(m))})}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=fC(c)?c.default:c;o.mods[l]=c,o.components[l]=h;const p=(h.__vccOpts||h)[t];return p&&_n(p,s,n,o,l,i)()}))}}return r}function Hf(e){const t=Yt(jo),s=Yt(Ec),n=b(()=>{const u=T(e.to);return t.resolve(u)}),i=b(()=>{const{matched:u}=n.value,{length:d}=u,c=u[d-1],h=s.matched;if(!c||!h.length)return-1;const m=h.findIndex(Bi.bind(null,c));if(m>-1)return m;const p=Gf(u[d-2]);return d>1&&Gf(c)===p&&h[h.length-1].path!==p?h.findIndex(Bi.bind(null,u[d-2])):m}),r=b(()=>i.value>-1&&cA(s.params,n.value.params)),o=b(()=>i.value>-1&&i.value===s.matched.length-1&&mg(s.params,n.value.params));function l(u={}){if(uA(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:b(()=>n.value.href),isActive:r,isExactActive:o,navigate:l}}function aA(e){return e.length===1?e[0]:e}const oA=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=b(()=>({[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&&aA(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)}}}),lA=oA;function uA(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 cA(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,dA=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=b(()=>e.route||n.value),r=Yt(Kf,0),o=b(()=>{let d=T(r);const{matched:c}=i.value;let h;for(;(h=c[d])&&!h.components;)d++;return d}),l=b(()=>i.value.matched[o.value]);si(Kf,b(()=>o.value+1)),si(rA,l),si(gu,i);const u=be();return Ye(()=>[u.value,l.value,e.name],([d,c,h],[m,p,v])=>{c&&(c.instances[h]=d,p&&p!==c&&d&&d===m&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),d&&c&&(!p||!Bi(c,p)||!m)&&(c.enterCallbacks[h]||[]).forEach(E=>E(d))},{flush:"post"}),()=>{const d=i.value,c=e.name,h=l.value,m=h&&h.components[c];if(!m)return zf(s.default,{Component:m,route:d});const p=h.props[c],v=p?p===!0?d.params:typeof p=="function"?p(d):p:null,_=oi(m,lt({},v,t,{onVnodeUnmounted:S=>{S.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 fA=dA;function hA(e){const t=JC(e.routes,e),s=e.parseQuery||nA,n=e.stringifyQuery||Uf,i=e.history,r=pr(),o=pr(),l=pr(),u=zp(gn);let d=gn;xi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=$l.bind(null,Q=>""+Q),h=$l.bind(null,SC),m=$l.bind(null,Ur);function p(Q,K){let le,Ee;return vg(Q)?(le=t.getRecordMatcher(Q),Ee=K):Ee=Q,t.addRoute(Ee,le)}function v(Q){const K=t.getRecordMatcher(Q);K&&t.removeRoute(K)}function E(){return t.getRoutes().map(Q=>Q.record)}function _(Q){return!!t.getRecordMatcher(Q)}function S(Q,K){if(K=lt({},K||u.value),typeof Q=="string"){const j=Tl(s,Q,K.path),ne=t.resolve({path:j.path},K),re=i.createHref(j.fullPath);return lt(j,ne,{params:m(ne.params),hash:Ur(j.hash),redirectedFrom:void 0,href:re})}let le;if(Q.path!=null)le=lt({},Q,{path:Tl(s,Q.path,K.path).path});else{const j=lt({},Q.params);for(const ne in j)j[ne]==null&&delete j[ne];le=lt({},Q,{params:h(j)}),K.params=h(K.params)}const Ee=t.resolve(le,K),J=Q.hash||"";Ee.params=c(m(Ee.params));const k=TC(n,lt({},Q,{hash:wC(J),path:Ee.path})),R=i.createHref(k);return lt({fullPath:k,hash:J,query:n===Uf?iA(Q.query):Q.query||{}},Ee,{redirectedFrom:void 0,href:R})}function C(Q){return typeof Q=="string"?Tl(s,Q,u.value.path):lt({},Q)}function A(Q,K){if(d!==Q)return Ui(8,{from:K,to:Q})}function g(Q){return V(Q)}function $(Q){return g(lt(C(Q),{replace:!0}))}function L(Q){const K=Q.matched[Q.matched.length-1];if(K&&K.redirect){const{redirect:le}=K;let Ee=typeof le=="function"?le(Q):le;return typeof Ee=="string"&&(Ee=Ee.includes("?")||Ee.includes("#")?Ee=C(Ee):{path:Ee},Ee.params={}),lt({query:Q.query,hash:Q.hash,params:Ee.path!=null?{}:Q.params},Ee)}}function V(Q,K){const le=d=S(Q),Ee=u.value,J=Q.state,k=Q.force,R=Q.replace===!0,j=L(le);if(j)return V(lt(C(j),{state:typeof j=="object"?lt({},J,j.state):J,force:k,replace:R}),K||le);const ne=le;ne.redirectedFrom=K;let re;return!k&&OC(n,Ee,le)&&(re=Ui(16,{to:ne,from:Ee}),se(Ee,Ee,!0,!1)),(re?Promise.resolve(re):O(ne,Ee)).catch(oe=>Zs(oe)?Zs(oe,2)?oe:W(oe):X(oe,ne,Ee)).then(oe=>{if(oe){if(Zs(oe,2))return V(lt({replace:R},C(oe.to),{state:typeof oe.to=="object"?lt({},J,oe.to.state):J,force:k}),K||ne)}else oe=F(ne,Ee,!0,R,J);return x(ne,Ee,oe),oe})}function I(Q,K){const le=A(Q,K);return le?Promise.reject(le):Promise.resolve()}function w(Q){const K=Ie.values().next().value;return K&&typeof K.runWithContext=="function"?K.runWithContext(Q):Q()}function O(Q,K){let le;const[Ee,J,k]=pA(Q,K);le=Ol(Ee.reverse(),"beforeRouteLeave",Q,K);for(const j of Ee)j.leaveGuards.forEach(ne=>{le.push(_n(ne,Q,K))});const R=I.bind(null,Q,K);return le.push(R),ve(le).then(()=>{le=[];for(const j of r.list())le.push(_n(j,Q,K));return le.push(R),ve(le)}).then(()=>{le=Ol(J,"beforeRouteUpdate",Q,K);for(const j of J)j.updateGuards.forEach(ne=>{le.push(_n(ne,Q,K))});return le.push(R),ve(le)}).then(()=>{le=[];for(const j of k)if(j.beforeEnter)if(Ms(j.beforeEnter))for(const ne of j.beforeEnter)le.push(_n(ne,Q,K));else le.push(_n(j.beforeEnter,Q,K));return le.push(R),ve(le)}).then(()=>(Q.matched.forEach(j=>j.enterCallbacks={}),le=Ol(k,"beforeRouteEnter",Q,K,w),le.push(R),ve(le))).then(()=>{le=[];for(const j of o.list())le.push(_n(j,Q,K));return le.push(R),ve(le)}).catch(j=>Zs(j,8)?j:Promise.reject(j))}function x(Q,K,le){l.list().forEach(Ee=>w(()=>Ee(Q,K,le)))}function F(Q,K,le,Ee,J){const k=A(Q,K);if(k)return k;const R=K===gn,j=xi?history.state:{};le&&(Ee||R?i.replace(Q.fullPath,lt({scroll:R&&j&&j.scroll},J)):i.push(Q.fullPath,J)),u.value=Q,se(Q,K,le,R),W()}let H;function z(){H||(H=i.listen((Q,K,le)=>{if(!tt.listening)return;const Ee=S(Q),J=L(Ee);if(J){V(lt(J,{replace:!0,force:!0}),Ee).catch(Rr);return}d=Ee;const k=u.value;xi&&qC(Mf(k.fullPath,le.delta),Qo()),O(Ee,k).catch(R=>Zs(R,12)?R:Zs(R,2)?(V(lt(C(R.to),{force:!0}),Ee).then(j=>{Zs(j,20)&&!le.delta&&le.type===Kr.pop&&i.go(-1,!1)}).catch(Rr),Promise.reject()):(le.delta&&i.go(-le.delta,!1),X(R,Ee,k))).then(R=>{R=R||F(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)),x(Ee,k,R)}).catch(Rr)}))}let fe=pr(),ie=pr(),G;function X(Q,K,le){W(Q);const Ee=ie.list();return Ee.length?Ee.forEach(J=>J(Q,K,le)):console.error(Q),Promise.reject(Q)}function Z(){return G&&u.value!==gn?Promise.resolve():new Promise((Q,K)=>{fe.add([Q,K])})}function W(Q){return G||(G=!Q,z(),fe.list().forEach(([K,le])=>Q?le(Q):K()),fe.reset()),Q}function se(Q,K,le,Ee){const{scrollBehavior:J}=e;if(!xi||!J)return Promise.resolve();const k=!le&&LC(Mf(Q.fullPath,0))||(Ee||!le)&&history.state&&history.state.scroll||null;return kt().then(()=>J(Q,K,k)).then(R=>R&&IC(R)).catch(R=>X(R,Q,K))}const ue=Q=>i.go(Q);let Re;const Ie=new Set,tt={currentRoute:u,listening:!0,addRoute:p,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:E,resolve:S,options:e,push:g,replace:$,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:ie.add,isReady:Z,install(Q){const K=this;Q.component("RouterLink",lA),Q.component("RouterView",fA),Q.config.globalProperties.$router=K,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>T(u)}),xi&&!Re&&u.value===gn&&(Re=!0,g(i.location).catch(J=>{}));const le={};for(const J in gn)Object.defineProperty(le,J,{get:()=>u.value[J],enumerable:!0});Q.provide(jo,K),Q.provide(Ec,ko(le)),Q.provide(gu,u);const Ee=Q.unmount;Ie.add(Q),Q.unmount=function(){Ie.delete(Q),Ie.size<1&&(d=gn,H&&H(),H=null,u.value=gn,Re=!1,G=!1),Ee()}}};function ve(Q){return Q.reduce((K,le)=>K.then(()=>w(le)),Promise.resolve())}return tt}function pA(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 ps(e){return Yt(Ec)}typeof window<"u"&&!window.configs&&(window.configs={API_URL:"http://127.0.0.1:3000/api",BASE_PATH:"/"});function Eg(e){const t=window.configs[e];if(t===void 0)throw new Error(`Environment variable "${e}" is not defined`);return t}function wg(e,t){return function(){return e.apply(t,arguments)}}const{toString:mA}=Object.prototype,{getPrototypeOf:wc}=Object,{iterator:Bo,toStringTag:Cg}=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 Ag=Is("ArrayBuffer");function gA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ag(e.buffer),t}const vA=Ko("string"),rs=Ko("function"),Sg=Ko("number"),ta=e=>e!==null&&typeof e=="object",bA=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)&&!(Cg in e)&&!(Bo in e)},yA=e=>{if(!ta(e)||ea(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_A=Is("Date"),EA=Is("File"),wA=Is("Blob"),CA=Is("FileList"),AA=e=>ta(e)&&rs(e.pipe),SA=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]"))},xA=Is("URLSearchParams"),[$A,TA,OA,NA]=["ReadableStream","Request","Response","Headers"].map(Is),kA=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 xg(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,$g=e=>!Ki(e)&&e!==Yn;function vu(){const{caseless:e,skipUndefined:t}=$g(this)&&this||{},s={},n=(i,r)=>{const o=e&&xg(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 PA=(e,t,s,{allOwnKeys:n}={})=>(sa(t,(i,r)=>{s&&rs(i)?e[r]=wg(i,s):e[r]=i},{allOwnKeys:n}),e),DA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RA=(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)},MA=(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},IA=(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},qA=e=>{if(!e)return null;if(er(e))return e;let t=e.length;if(!Sg(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},LA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wc(Uint8Array)),FA=(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])}},VA=(e,t)=>{let s;const n=[];for(;(s=e.exec(t))!==null;)n.push(s);return n},QA=Is("HTMLFormElement"),jA=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),BA=Is("RegExp"),Tg=(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)},UA=e=>{Tg(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+"'")})}})},KA=(e,t)=>{const s={},n=i=>{i.forEach(r=>{s[r]=!0})};return er(e)?n(e):n(String(e).split(t)),s},HA=()=>{},GA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function WA(e){return!!(e&&rs(e.append)&&e[Cg]==="FormData"&&e[Bo])}const zA=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)},YA=Is("AsyncFunction"),ZA=e=>e&&(ta(e)||rs(e))&&rs(e.then)&&rs(e.catch),Og=((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)),JA=typeof queueMicrotask<"u"?queueMicrotask.bind(Yn):typeof process<"u"&&process.nextTick||Og,XA=e=>e!=null&&rs(e[Bo]),ee={isArray:er,isArrayBuffer:Ag,isBuffer:ea,isFormData:SA,isArrayBufferView:gA,isString:vA,isNumber:Sg,isBoolean:bA,isObject:ta,isPlainObject:Va,isEmptyObject:yA,isReadableStream:$A,isRequest:TA,isResponse:OA,isHeaders:NA,isUndefined:Ki,isDate:_A,isFile:EA,isBlob:wA,isRegExp:BA,isFunction:rs,isStream:AA,isURLSearchParams:xA,isTypedArray:LA,isFileList:CA,forEach:sa,merge:vu,extend:PA,trim:kA,stripBOM:DA,inherits:RA,toFlatObject:MA,kindOf:Uo,kindOfTest:Is,endsWith:IA,toArray:qA,forEachEntry:FA,matchAll:VA,isHTMLForm:QA,hasOwnProperty:Yf,hasOwnProp:Yf,reduceDescriptors:Tg,freezeMethods:UA,toObjectSet:KA,toCamelCase:jA,noop:HA,toFiniteNumber:GA,findKey:xg,global:Yn,isContextDefined:$g,isSpecCompliantForm:WA,toJSONObject:zA,isAsyncFn:YA,isThenable:ZA,setImmediate:Og,asap:JA,isIterable:XA};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)}ee.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:ee.toJSONObject(this.config),code:this.code,status:this.status}}});const Ng=Ge.prototype,kg={};["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=>{kg[e]={value:e}});Object.defineProperties(Ge,kg);Object.defineProperty(Ng,"isAxiosError",{value:!0});Ge.from=(e,t,s,n,i,r)=>{const o=Object.create(Ng);ee.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 eS=null;function bu(e){return ee.isPlainObject(e)||ee.isArray(e)}function Pg(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function Zf(e,t,s){return e?e.concat(t).map(function(i,r){return i=Pg(i),!s&&r?"["+i+"]":i}).join(s?".":""):t}function tS(e){return ee.isArray(e)&&!e.some(bu)}const sS=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Ho(e,t,s){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,s=ee.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,_){return!ee.isUndefined(_[E])});const n=s.metaTokens,i=s.visitor||c,r=s.dots,o=s.indexes,u=(s.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(i))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(ee.isDate(v))return v.toISOString();if(ee.isBoolean(v))return v.toString();if(!u&&ee.isBlob(v))throw new Ge("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(v)||ee.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,E,_){let S=v;if(v&&!_&&typeof v=="object"){if(ee.endsWith(E,"{}"))E=n?E:E.slice(0,-2),v=JSON.stringify(v);else if(ee.isArray(v)&&tS(v)||(ee.isFileList(v)||ee.endsWith(E,"[]"))&&(S=ee.toArray(v)))return E=Pg(E),S.forEach(function(A,g){!(ee.isUndefined(A)||A===null)&&t.append(o===!0?Zf([E],g,r):o===null?E:E+"[]",d(A))}),!1}return bu(v)?!0:(t.append(Zf(_,E,r),d(v)),!1)}const h=[],m=Object.assign(sS,{defaultVisitor:c,convertValue:d,isVisitable:bu});function p(v,E){if(!ee.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+E.join("."));h.push(v),ee.forEach(v,function(S,C){(!(ee.isUndefined(S)||S===null)&&i.call(t,S,ee.isString(C)?C.trim():C,E,m))===!0&&p(S,E?E.concat(C):[C])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return p(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 Dg=Cc.prototype;Dg.append=function(t,s){this._pairs.push([t,s])};Dg.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 nS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Rg(e,t,s){if(!t)return e;const n=s&&s.encode||nS;ee.isFunction(s)&&(s={serialize:s});const i=s&&s.serialize;let r;if(i?r=i(t,s):r=ee.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){ee.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Mg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iS=typeof URLSearchParams<"u"?URLSearchParams:Cc,rS=typeof FormData<"u"?FormData:null,aS=typeof Blob<"u"?Blob:null,oS={isBrowser:!0,classes:{URLSearchParams:iS,FormData:rS,Blob:aS},protocols:["http","https","file","blob","url","data"]},Ac=typeof window<"u"&&typeof document<"u",yu=typeof navigator=="object"&&navigator||void 0,lS=Ac&&(!yu||["ReactNative","NativeScript","NS"].indexOf(yu.product)<0),uS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cS=Ac&&window.location.href||"http://localhost",dS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ac,hasStandardBrowserEnv:lS,hasStandardBrowserWebWorkerEnv:uS,navigator:yu,origin:cS},Symbol.toStringTag,{value:"Module"})),jt={...dS,...oS};function fS(e,t){return Ho(e,new jt.classes.URLSearchParams,{visitor:function(s,n,i,r){return jt.isNode&&ee.isBuffer(s)?(this.append(n,s.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function hS(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pS(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 Ig(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&&ee.isArray(i)?i.length:o,u?(ee.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!l):((!i[o]||!ee.isObject(i[o]))&&(i[o]=[]),t(s,n,i[o],r)&&ee.isArray(i[o])&&(i[o]=pS(i[o])),!l)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const s={};return ee.forEachEntry(e,(n,i)=>{t(hS(n),i,s,0)}),s}return null}function mS(e,t,s){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(s||JSON.stringify)(e)}const na={transitional:Mg,adapter:["xhr","http","fetch"],transformRequest:[function(t,s){const n=s.getContentType()||"",i=n.indexOf("application/json")>-1,r=ee.isObject(t);if(r&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return i?JSON.stringify(Ig(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.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 fS(t,this.formSerializer).toString();if((l=ee.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(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.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}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{na.headers[e]={}});const gS=ee.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"]),vS=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]&&gS[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 mr(e){return e&&String(e).trim().toLowerCase()}function Qa(e){return e===!1||e==null?e:ee.isArray(e)?e.map(Qa):String(e)}function bS(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 yS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nl(e,t,s,n,i){if(ee.isFunction(n))return n.call(this,t,s);if(i&&(t=s),!!ee.isString(t)){if(ee.isString(n))return t.indexOf(n)!==-1;if(ee.isRegExp(n))return n.test(t)}}function _S(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,n)=>s.toUpperCase()+n)}function ES(e,t){const s=ee.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=mr(u);if(!c)throw new Error("header name must be a non-empty string");const h=ee.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)=>ee.forEach(l,(d,c)=>r(d,c,u));if(ee.isPlainObject(t)||t instanceof this.constructor)o(t,s);else if(ee.isString(t)&&(t=t.trim())&&!yS(t))o(vS(t),s);else if(ee.isObject(t)&&ee.isIterable(t)){let l={},u,d;for(const c of t){if(!ee.isArray(c))throw TypeError("Object iterator must return a key-value pair");l[d=c[0]]=(u=l[d])?ee.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=mr(t),t){const n=ee.findKey(this,t);if(n){const i=this[n];if(!s)return i;if(s===!0)return bS(i);if(ee.isFunction(s))return s.call(this,i,n);if(ee.isRegExp(s))return s.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=mr(t),t){const n=ee.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=mr(o),o){const l=ee.findKey(n,o);l&&(!s||Nl(n,n[l],l,s))&&(delete n[l],i=!0)}}return ee.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 ee.forEach(this,(i,r)=>{const o=ee.findKey(n,r);if(o){s[o]=Qa(i),delete s[r];return}const l=t?_S(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 ee.forEach(this,(n,i)=>{n!=null&&n!==!1&&(s[i]=t&&ee.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=mr(o);n[l]||(ES(i,o),n[l]=!0)}return ee.isArray(t)?t.forEach(r):r(t),this}};as.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(as.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[s]=n}}});ee.freezeMethods(as);function kl(e,t){const s=this||na,n=t||s,i=as.from(n.headers);let r=n.data;return ee.forEach(e,function(l){r=l.call(s,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function qg(e){return!!(e&&e.__CANCEL__)}function tr(e,t,s){Ge.call(this,e??"canceled",Ge.ERR_CANCELED,t,s),this.name="CanceledError"}ee.inherits(tr,Ge,{__CANCEL__:!0});function Lg(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 wS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function CS(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,m=0;for(;h!==i;)m+=s[h++],h=h%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-o<t)return;const p=c&&d-c;return p?Math.round(m*1e3/p):void 0}}function AS(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=CS(50,250);return AS(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)=>ee.asap(()=>e(...t)),SS=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,xS=jt.hasStandardBrowserEnv?{write(e,t,s,n,i,r){const o=[e+"="+encodeURIComponent(t)];ee.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),ee.isString(n)&&o.push("path="+n),ee.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 $S(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fg(e,t,s){let n=!$S(t);return e&&(n||s==!1)?TS(e,t):t}const nh=e=>e instanceof as?{...e}:e;function ci(e,t){t=t||{};const s={};function n(d,c,h,m){return ee.isPlainObject(d)&&ee.isPlainObject(c)?ee.merge.call({caseless:m},d,c):ee.isPlainObject(c)?ee.merge({},c):ee.isArray(c)?c.slice():c}function i(d,c,h,m){if(ee.isUndefined(c)){if(!ee.isUndefined(d))return n(void 0,d,h,m)}else return n(d,c,h,m)}function r(d,c){if(!ee.isUndefined(c))return n(void 0,c)}function o(d,c){if(ee.isUndefined(c)){if(!ee.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 ee.forEach(Object.keys({...e,...t}),function(c){const h=u[c]||i,m=h(e[c],t[c],c);ee.isUndefined(m)&&h!==l||(s[c]=m)}),s}const Vg=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=Rg(Fg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ee.isFormData(s)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(ee.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&&ee.isFunction(n)&&(n=n(t)),n||n!==!1&&SS(t.url))){const u=i&&r&&xS.read(r);u&&o.set(i,u)}return t},OS=typeof XMLHttpRequest<"u",NS=OS&&function(e){return new Promise(function(s,n){const i=Vg(e);let r=i.data;const o=as.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=i,c,h,m,p,v;function E(){p&&p(),v&&v(),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 S(){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:_};Lg(function(V){s(V),E()},function(V){n(V),E()},$),_=null}"onloadend"in _?_.onloadend=S:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(S)},_.onabort=function(){_&&(n(new Ge("Request aborted",Ge.ECONNABORTED,e,_)),_=null)},_.onerror=function(g){const $=g&&g.message?g.message:"Network Error",L=new Ge($,Ge.ERR_NETWORK,e,_);L.event=g||null,n(L),_=null},_.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const $=i.transitional||Mg;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),n(new Ge(g,$.clarifyTimeoutError?Ge.ETIMEDOUT:Ge.ECONNABORTED,e,_)),_=null},r===void 0&&o.setContentType(null),"setRequestHeader"in _&&ee.forEach(o.toJSON(),function(g,$){_.setRequestHeader($,g)}),ee.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),l&&l!=="json"&&(_.responseType=i.responseType),d&&([m,v]=lo(d,!0),_.addEventListener("progress",m)),u&&_.upload&&([h,p]=lo(u),_.upload.addEventListener("progress",h),_.upload.addEventListener("loadend",p)),(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=wS(i.url);if(C&&jt.protocols.indexOf(C)===-1){n(new Ge("Unsupported protocol "+C+":",Ge.ERR_BAD_REQUEST,e));return}_.send(r||null)})},kS=(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=()=>ee.asap(l),u}},PS=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},DS=async function*(e,t){for await(const s of RS(e))yield*PS(s,t)},RS=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=DS(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 m=r+=h;s(m)}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}=ee,MS=(({Request:e,Response:t})=>({Request:e,Response:t}))(ee.global),{ReadableStream:ah,TextEncoder:oh}=ee.global,lh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},IS=e=>{e=ee.merge.call({skipUndefined:!0},MS,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"?(v=>E=>v.encode(E))(new oh):async v=>new Uint8Array(await new s(v).arrayBuffer())),d=r&&l&&lh(()=>{let v=!1;const E=new s(jt.origin,{body:new ah,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!E}),c=o&&l&&lh(()=>ee.isReadableStream(new n("").body)),h={stream:c&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!h[v]&&(h[v]=(E,_)=>{let S=E&&E[v];if(S)return S.call(E);throw new Ge(`Response type '${v}' is not supported`,Ge.ERR_NOT_SUPPORT,_)})});const m=async v=>{if(v==null)return 0;if(ee.isBlob(v))return v.size;if(ee.isSpecCompliantForm(v))return(await new s(jt.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(v)||ee.isArrayBuffer(v))return v.byteLength;if(ee.isURLSearchParams(v)&&(v=v+""),ee.isString(v))return(await u(v)).byteLength},p=async(v,E)=>{const _=ee.toFiniteNumber(v.getContentLength());return _??m(E)};return async v=>{let{url:E,method:_,data:S,signal:C,cancelToken:A,timeout:g,onDownloadProgress:$,onUploadProgress:L,responseType:V,headers:I,withCredentials:w="same-origin",fetchOptions:O}=Vg(v),x=t||fetch;V=V?(V+"").toLowerCase():"text";let F=kS([C,A&&A.toAbortSignal()],g),H=null;const z=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let fe;try{if(L&&d&&_!=="get"&&_!=="head"&&(fe=await p(I,S))!==0){let se=new s(E,{method:"POST",body:S,duplex:"half"}),ue;if(ee.isFormData(S)&&(ue=se.headers.get("content-type"))&&I.setContentType(ue),se.body){const[Re,Ie]=th(fe,lo(sh(L)));S=ih(se.body,rh,Re,Ie)}}ee.isString(w)||(w=w?"include":"omit");const ie=r&&"credentials"in s.prototype,G={...O,signal:F,method:_.toUpperCase(),headers:I.normalize().toJSON(),body:S,duplex:"half",credentials:ie?w:void 0};H=r&&new s(E,G);let X=await(r?x(H,O):x(E,G));const Z=c&&(V==="stream"||V==="response");if(c&&($||Z&&z)){const se={};["status","statusText","headers"].forEach(tt=>{se[tt]=X[tt]});const ue=ee.toFiniteNumber(X.headers.get("content-length")),[Re,Ie]=$&&th(ue,lo(sh($),!0))||[];X=new n(ih(X.body,rh,Re,()=>{Ie&&Ie(),z&&z()}),se)}V=V||"text";let W=await h[ee.findKey(h,V)||"text"](X,v);return!Z&&z&&z(),await new Promise((se,ue)=>{Lg(se,ue,{data:W,headers:as.from(X.headers),status:X.status,statusText:X.statusText,config:v,request:H})})}catch(ie){throw z&&z(),ie&&ie.name==="TypeError"&&/Load failed|fetch/i.test(ie.message)?Object.assign(new Ge("Network Error",Ge.ERR_NETWORK,v,H),{cause:ie.cause||ie}):Ge.from(ie,ie&&ie.code,v,H)}}},qS=new Map,Qg=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=qS;for(;l--;)u=r[l],d=c.get(u),d===void 0&&c.set(u,d=l?new Map:IS(t)),c=d;return d};Qg();const _u={http:eS,xhr:NS,fetch:{get:Qg}};ee.forEach(_u,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const uh=e=>`- ${e}`,LS=e=>ee.isFunction(e)||e===null||e===!1,jg={getAdapter:(e,t)=>{e=ee.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,!LS(n)&&(i=_u[(l=String(n)).toLowerCase()],i===void 0))throw new Ge(`Unknown adapter '${l}'`);if(i&&(ee.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),jg.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 qg(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 Bg="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"+Bg+"] 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 FS(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:FS,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&&(ee.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&&ee.merge(r.common,r[s.method]);r&&ee.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),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,m;if(!u){const v=[ch.bind(this),void 0];for(v.unshift(...l),v.push(...d),m=v.length,c=Promise.resolve(s);h<m;)c=c.then(v[h++],v[h++]);return c}m=l.length;let p=s;for(;h<m;){const v=l[h++],E=l[h++];try{p=v(p)}catch(_){E.call(this,_);break}}try{c=ch.call(this,p)}catch(v){return Promise.reject(v)}for(h=0,m=d.length;h<m;)c=c.then(d[h++],d[h++]);return c}getUri(t){t=ci(this.defaults,t);const s=Fg(t.baseURL,t.url,t.allowAbsoluteUrls);return Rg(s,t.params,t.paramsSerializer)}};ee.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}))}});ee.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 VS=class Ug{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 Ug(function(i){t=i}),cancel:t}}};function QS(e){return function(s){return e.apply(null,s)}}function jS(e){return ee.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 Kg(e){const t=new ni(e),s=wg(ni.prototype.request,t);return ee.extend(s,ni.prototype,t,{allOwnKeys:!0}),ee.extend(s,t,null,{allOwnKeys:!0}),s.create=function(i){return Kg(ci(e,i))},s}const wt=Kg(na);wt.Axios=ni;wt.CanceledError=tr;wt.CancelToken=VS;wt.isCancel=qg;wt.VERSION=Bg;wt.toFormData=Ho;wt.AxiosError=Ge;wt.Cancel=wt.CanceledError;wt.all=function(t){return Promise.all(t)};wt.spread=QS;wt.isAxiosError=jS;wt.mergeConfig=ci;wt.AxiosHeaders=as;wt.formToJSON=e=>Ig(ee.isHTMLForm(e)?new FormData(e):e);wt.getAdapter=jg.getAdapter;wt.HttpStatusCode=Eu;wt.default=wt;const{Axios:eU,AxiosError:tU,CanceledError:sU,isCancel:nU,CancelToken:iU,VERSION:rU,all:aU,Cancel:oU,isAxiosError:lU,spread:uU,toFormData:cU,AxiosHeaders:dU,HttpStatusCode:fU,formToJSON:hU,getAdapter:pU,mergeConfig:mU}=wt,BS=Eg("API_URL").replace(/\/+$/,""),US=wt.create({baseURL:BS,headers:{"Content-Type":"application/json"}}),Je=e=>{const t=wt.CancelToken.source(),s=US({...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},KS=e=>Je({url:"/api/v1/exchanges",method:"GET",signal:e}),_r=()=>["api","v1","exchanges"],HS=e=>{const{query:t}={};return{queryKey:_r(),queryFn:({signal:i})=>KS(i),...t}};function Hg(e,t){const s=HS(),n=Jt(s);return n.queryKey=T(s).queryKey,n}const GS=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/fanout/${t}`,method:"DELETE"})),WS=e=>{const t=["deleteApiV1NamespacesNsExchangesFanoutFanout"],{mutation:s}={mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,fanout:o}=i??{};return GS(r,o)},...s}},zS=(e,t)=>{const s=WS();return Nt(s)},YS=(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"],ZS=(e,t,s)=>{const{query:n}=s??{};return{queryKey:wu(e,t),queryFn:({signal:o})=>YS(e,t,o),enabled:b(()=>!!(T(e)&&T(t))),...n}};function Gg(e,t,s,n){const i=ZS(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const JS=(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"})),XS=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 JS(r,o,l)},...s}},Sc=(e,t)=>{const s=XS(e);return Nt(s)},ex=(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"})),tx=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 ex(r,o,l)},...s}},sx=(e,t)=>{const s=tx(e);return Nt(s)},nx=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/direct/${t}`,method:"DELETE"})),ix=e=>{const t=["deleteApiV1NamespacesNsExchangesDirectDirect"],{mutation:s}={mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,direct:o}=i??{};return nx(r,o)},...s}},rx=(e,t)=>{const s=ix();return Nt(s)},ax=(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"],ox=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Cu(e,t),queryFn:({signal:o})=>ax(e,t,o),enabled:b(()=>!!(T(e)&&T(t))),...n}};function Wg(e,t,s,n){const i=ox(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const lx=(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]:[]],ux=(e,t,s,n)=>{const{query:i}=n??{};return{queryKey:Au(e,t,s),queryFn:({signal:l})=>lx(e,t,s,l),enabled:b(()=>!!(T(e)&&T(t))),...i}};function zg(e,t,s,n,i){const r=ux(e,t,s,n),o=Jt(r);return o.queryKey=T(r).queryKey,o}const cx=(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)})),dx=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 cx(r,o,l,u)},...s}},xc=(e,t)=>{const s=dx(e);return Nt(s)},fx=(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)})),hx=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 fx(r,o,l,u)},...s}},px=(e,t)=>{const s=hx(e);return Nt(s)},mx=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/exchanges/topic/${t}`,method:"DELETE"})),gx=e=>{const t=["deleteApiV1NamespacesNsExchangesTopicTopic"],{mutation:s}={mutation:{mutationKey:t}};return{mutationFn:i=>{const{ns:r,topic:o}=i??{};return mx(r,o)},...s}},vx=(e,t)=>{const s=gx();return Nt(s)},bx=(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"],yx=(e,t,s)=>{const{query:n}=s??{};return{queryKey:Su(e,t),queryFn:({signal:o})=>bx(e,t,o),enabled:b(()=>!!(T(e)&&T(t))),...n}};function Yg(e,t,s,n){const i=yx(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const _x=(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]:[]],Ex=(e,t,s,n)=>{const{query:i}=n??{};return{queryKey:xu(e,t,s),queryFn:({signal:l})=>_x(e,t,s,l),enabled:b(()=>!!(T(e)&&T(t))),...i}};function Zg(e,t,s,n,i){const r=Ex(e,t,s,n),o=Jt(r);return o.queryKey=T(r).queryKey,o}const wx=(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)})),Cx=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 wx(r,o,l,u)},...s}},$c=(e,t)=>{const s=Cx(e);return Nt(s)},Ax=(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)})),Sx=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 Ax(r,o,l,u)},...s}},xx=(e,t)=>{const s=Sx(e);return Nt(s)},Xt=Vo("pageContent",()=>{const e=be({pageTitle:"",pageSubtitle:void 0,pageIcon:void 0,pageActions:[],sectionTitle:void 0,sectionMeta:void 0,isLoading:!1,error:null,isEmpty:!1,emptyStateConfig:void 0}),t=b(()=>e.value.pageActions.length>0),s=b(()=>!!(e.value.sectionTitle||e.value.sectionMeta)),n=b(()=>!!e.value.error),i=b(()=>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 S=e.value.pageActions.findIndex(C=>C.id===_.id);S>=0?e.value.pageActions[S]=_:e.value.pageActions.push(_)}function u(_){e.value.pageActions=e.value.pageActions.filter(S=>S.id!==_)}function d(_,S){const C=e.value.pageActions.find(A=>A.id===_);C&&Object.assign(C,S)}function c(_){e.value.sectionTitle=_.title,e.value.sectionMeta=_.meta}function h(_){e.value.isLoading=_,_&&(e.value.error=null)}function m(_){e.value.error=_,_&&(e.value.isLoading=!1)}function p(_,S){e.value.isEmpty=_,e.value.emptyStateConfig=S}function v(){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:m,setEmptyState:p,resetPageContent:v,setPageContent:E}});function Jg(e){return typeof e=="object"&&e!==null}function $x(e){return!Jg(e)||!("message"in e)?!1:typeof e.message=="string"}function Tx(e){return!Jg(e)||!("details"in e)?!1:typeof e.details=="object"&&e.details!==null}function dt(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($x(e)){const t={message:e.message.trim()};if(t.message)return Tx(e)&&(t.details=e.details),t}return{message:"An unexpected error occurred"}}const Ox={class:"page-content"},Nx={key:0,class:"page-header"},kx={class:"page-header-content"},Px={class:"page-title-section"},Dx={key:0,class:"page-icon"},Rx={key:0,class:"emoji-icon"},Mx={class:"title-content"},Ix={class:"page-title"},qx={key:0,class:"page-subtitle"},Lx={key:0,class:"page-actions"},Fx=["disabled","title","onClick"],Vx={class:"btn-text"},Qx={class:"content-section"},jx={key:0,class:"section-header"},Bx={key:0,class:"section-title"},Ux={key:1,class:"section-meta"},Kx={key:1,class:"state-container loading-state"},Hx={class:"state-content"},Gx={class:"loading-spinner"},Wx={class:"spinner-border",role:"status"},zx={class:"visually-hidden"},Yx={class:"state-title"},Zx={class:"state-message"},Jx={key:2,class:"state-container error-state"},Xx={class:"state-content"},e$={class:"state-title"},t$={class:"state-message"},s$={key:0,class:"state-details"},n$={class:"state-actions"},i$={key:3,class:"state-container empty-state"},r$={class:"state-content"},a$={class:"state-icon empty-icon"},o$={key:0,class:"emoji-icon"},l$={class:"state-title"},u$={class:"state-message"},c$={class:"state-actions"},d$={key:4,class:"main-content"},f$=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=b(()=>s.state),i=b(()=>s.hasPageActions),r=b(()=>s.hasSectionHeader),o=b(()=>s.hasError),l=b(()=>s.showEmptyState);function u(m){if(!m||m.includes("bi-")||m.includes("bi ")||m.includes("-")||m.includes(" "))return!1;const p=m.trim();return p.length>=1&&p.length<=4&&!/^[a-zA-Z]/.test(p)&&!/\d+$/.test(p)}function d(m){!m.disabled&&!m.loading&&m.handler()}function c(){n.value.emptyStateConfig?.actionHandler&&n.value.emptyStateConfig.actionHandler()}function h(m){return`btn ${{primary:"btn-primary",secondary:"btn-secondary",danger:"btn-danger",refresh:"btn-refresh"}[m.variant||"refresh"]}`}return(m,p)=>(N(),P("div",Ox,[e.showPageHeader?(N(),P("div",Nx,[a("div",kx,[a("div",Px,[n.value.pageIcon?(N(),P("div",Dx,[u(n.value.pageIcon)?(N(),P("span",Rx,q(n.value.pageIcon),1)):(N(),P("i",{key:1,class:De(n.value.pageIcon)},null,2))])):he("",!0),a("div",Mx,[a("h1",Ix,q(n.value.pageTitle),1),n.value.pageSubtitle?(N(),P("p",qx,q(n.value.pageSubtitle),1)):he("",!0)])])]),i.value?(N(),P("div",Lx,[(N(!0),P(Ae,null,bt(n.value.pageActions,v=>(N(),P("button",{key:v.id,class:De(h(v)),disabled:v.disabled||v.loading,title:v.tooltip||v.label,onClick:E=>d(v)},[v.icon&&u(v.icon)?(N(),P("span",{key:0,class:De([{"spin-emoji":v.loading},"action-emoji"])},q(v.icon),3)):v.icon?(N(),P("i",{key:1,class:De([v.icon,{spin:v.loading}])},null,2)):he("",!0),a("span",Vx,q(v.label),1)],10,Fx))),128))])):he("",!0)])):he("",!0),a("div",Qx,[t.showSectionHeader&&r.value?(N(),P("div",jx,[n.value.sectionTitle?(N(),P("h2",Bx,q(n.value.sectionTitle),1)):he("",!0),n.value.sectionMeta?(N(),P("div",Ux,q(n.value.sectionMeta),1)):he("",!0)])):he("",!0),n.value.isLoading?(N(),P("div",Kx,[a("div",Hx,[a("div",Gx,[a("div",Wx,[a("span",zx,q(t.loadingMessage),1)])]),a("h3",Yx,q(t.loadingTitle),1),a("p",Zx,q(t.loadingMessage),1)])])):o.value?(N(),P("div",Jx,[a("div",Xx,[p[0]||(p[0]=a("div",{class:"state-icon error-icon"},[a("span",{class:"emoji-icon"},"⚠️")],-1)),a("h3",e$,q(n.value.error?.title||"An unexpected error occurred"),1),a("p",t$,q(n.value.error?.message),1),n.value.error?.details?(N(),P("p",s$,q(n.value.error.details),1)):he("",!0),a("div",n$,[Pi(m.$slots,"error-actions",{},void 0)])])])):l.value&&n.value.emptyStateConfig?(N(),P("div",i$,[a("div",r$,[a("div",a$,[u(n.value.emptyStateConfig.icon)?(N(),P("span",o$,q(n.value.emptyStateConfig.icon),1)):(N(),P("i",{key:1,class:De(n.value.emptyStateConfig.icon)},null,2))]),a("h3",l$,q(n.value.emptyStateConfig.title),1),a("p",u$,q(n.value.emptyStateConfig.message),1),a("div",c$,[Pi(m.$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",d$,[Pi(m.$slots,"default",{},void 0)]))])]))}}),Xe=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},ms=Xe(f$,[["__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 h$=["aria-labelledby","aria-describedby"],p$={class:"modal-content"},m$={class:"modal-header"},g$={key:0,class:"header-icon"},v$={class:"header-content"},b$=["id"],y$=["id"],_$={class:"modal-body"},E$={class:"modal-body-inner"},w$={key:0,class:"modal-footer"},C$=Ue({__name:"BaseModal",props:{isVisible:{type:Boolean},title:{},subtitle:{},size:{},icon:{}},emits:["close"],setup(e,{emit:t}){const s=e,n=t,i=be(null),r=be(null),o=b(()=>{switch(s.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}}),l=b(()=>`modal-title-${s.title.replace(/\s+/g,"-").toLowerCase()}`),u=b(()=>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 m(){document.body.style.overflow=""}async function p(){await kt(),r.value=document.activeElement||null;const S=i.value;if(!S)return;(S.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0]||S).focus()}function v(){r.value?.focus?.()}function E(S){if(S.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(V=>!V.hasAttribute("disabled")&&!V.getAttribute("aria-hidden"));if(A.length===0){S.preventDefault(),C.focus();return}const g=A[0],$=A[A.length-1],L=document.activeElement;S.shiftKey?(L===g||L===C)&&(S.preventDefault(),$.focus()):L===$&&(S.preventDefault(),g.focus())}function _(S){if(S.key==="Escape"){S.stopPropagation(),d();return}E(S)}return Ye(()=>s.isVisible,async S=>{S?(h(),await p(),document.addEventListener("keydown",_,!0)):(document.removeEventListener("keydown",_,!0),m(),v())},{immediate:!0}),Bt(()=>{s.isVisible&&(h(),p(),document.addEventListener("keydown",_,!0))}),Ji(()=>{document.removeEventListener("keydown",_,!0),m()}),(S,C)=>e.isVisible?(N(),at(LE,{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",p$,[a("header",m$,[e.icon?(N(),P("div",g$,[a("i",{class:De(e.icon)},null,2)])):he("",!0),a("div",v$,[a("h2",{id:l.value,class:"modal-title"},q(e.title),9,b$),e.subtitle?(N(),P("p",{key:0,id:u.value,class:"modal-subtitle"},q(e.subtitle),9,y$)):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",_$,[a("div",E$,[Pi(S.$slots,"body",{},void 0)])]),S.$slots.footer?(N(),P("footer",w$,[Pi(S.$slots,"footer",{},void 0)])):he("",!0)])],2)],8,h$)])):he("",!0)}}),Ss=Xe(C$,[["__scopeId","data-v-b6985a1b"]]),A$={class:"form-content"},S$={class:"form-section"},x$={class:"form-grid"},$$={class:"form-group"},T$=["disabled"],O$={class:"form-group"},N$=["disabled"],k$={class:"form-group"},P$=["disabled"],D$=["value"],R$={id:"exchange-type-help",class:"field-help"},M$={key:0,class:"help-options"},I$={class:"help-option"},q$={class:"form-section"},L$={class:"form-grid"},F$={class:"form-group"},V$=["disabled"],Q$={key:0,class:"form-group"},j$=["disabled"],B$={key:1,class:"form-group"},U$=["disabled"],K$={key:0,class:"error-section"},H$={class:"error-content"},G$={class:"error-text"},W$={class:"error-message"},z$=["disabled"],Y$=["disabled"],Z$=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=be(""),o=be("default"),l=be(Te.DIRECT),u=be(""),d=be(""),c=be(""),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 #)"}],m=b(()=>h.find(A=>A.value===l.value)),p=b(()=>{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}),v=b(()=>l.value===Te.DIRECT),E=b(()=>l.value===Te.TOPIC),_=b(()=>n.error?dt(n.error):null);function S(){if(p.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,g)=>(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",A$,[g[21]||(g[21]=a("div",{class:"alert alert-info mb-4"},[a("i",{class:"bi bi-info-circle me-2"}),a("strong",null,"Note:"),te(" 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(S,["prevent"])},[a("section",S$,[g[11]||(g[11]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),te(" Exchange Details ")]),a("p",{class:"section-description"}," Define the exchange name, namespace, and type ")],-1)),a("div",x$,[a("div",$$,[g[6]||(g[6]=a("label",{for:"exchange-name",class:"form-label"},[a("i",{class:"bi bi-diagram-3 label-icon"}),te(" Exchange Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"exchange-name","onUpdate:modelValue":g[0]||(g[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,T$),[[rn,r.value],[s]]),g[7]||(g[7]=a("div",{id:"exchange-name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),te(" Use letters, numbers, underscores, and hyphens only ")],-1))]),a("div",O$,[g[8]||(g[8]=a("label",{for:"exchange-ns",class:"form-label"},[a("i",{class:"bi bi-folder-fill label-icon"}),te(" Namespace "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"exchange-ns","onUpdate:modelValue":g[1]||(g[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,N$),[[rn,o.value]]),g[9]||(g[9]=a("div",{id:"exchange-ns-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),te(" Organize exchanges by environment or application ")],-1))]),a("div",k$,[g[10]||(g[10]=a("label",{for:"exchange-type",class:"form-label"},[a("i",{class:"bi bi-gear-fill label-icon"}),te(" Exchange Type "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("select",{id:"exchange-type","onUpdate:modelValue":g[2]||(g[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,D$)),64))],8,P$),[[Um,l.value]]),a("div",R$,[m.value?(N(),P("div",M$,[a("div",I$,[a("strong",null,q(m.value.label)+":",1),te(" "+q(m.value.description),1)])])):he("",!0)])])])]),a("section",q$,[g[18]||(g[18]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-link-45deg section-icon"}),te(" Initial Queue Binding ")]),a("p",{class:"section-description"}," Exchanges are created by binding the first queue to them ")],-1)),a("div",L$,[a("div",F$,[g[12]||(g[12]=a("label",{for:"queue-name",class:"form-label"},[a("i",{class:"bi bi-list-ul label-icon"}),te(" Queue Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"queue-name","onUpdate:modelValue":g[3]||(g[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,V$),[[rn,u.value]]),g[13]||(g[13]=a("div",{id:"queue-name-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),te(" The first queue to bind to this exchange ")],-1))]),v.value?(N(),P("div",Q$,[g[14]||(g[14]=a("label",{for:"routing-key",class:"form-label"},[a("i",{class:"bi bi-key-fill label-icon"}),te(" Routing Key "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"routing-key","onUpdate:modelValue":g[4]||(g[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,j$),[[rn,d.value]]),g[15]||(g[15]=a("div",{id:"routing-key-help",class:"field-help"},[a("i",{class:"bi bi-lightbulb help-icon"}),te(" Messages with this exact routing key will be routed to the queue ")],-1))])):he("",!0),E.value?(N(),P("div",B$,[g[16]||(g[16]=a("label",{for:"binding-pattern",class:"form-label"},[a("i",{class:"bi bi-asterisk label-icon"}),te(" Binding Pattern "),a("span",{class:"required-indicator"},"*")],-1)),ss(a("input",{id:"binding-pattern","onUpdate:modelValue":g[5]||(g[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,U$),[[rn,c.value]]),g[17]||(g[17]=a("div",{id:"binding-pattern-help",class:"field-help"},[a("div",{class:"help-options"},[a("div",{class:"help-option"},[a("strong",null,"*"),te(" matches exactly one word ")]),a("div",{class:"help-option"},[a("strong",null,"#"),te(" matches zero or more words ")])])],-1))])):he("",!0)])]),_.value?(N(),P("div",K$,[a("div",H$,[g[20]||(g[20]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",G$,[g[19]||(g[19]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",W$,q(_.value),1)])])])):he("",!0)],32)])]),footer:qe(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isLoading,onClick:C},[...g[22]||(g[22]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),te(" Cancel ",-1)])],8,z$),a("button",{type:"button",class:"btn btn-primary",disabled:!p.value||e.isLoading,onClick:S},[e.isLoading?(N(),P(Ae,{key:0},[g[23]||(g[23]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),g[24]||(g[24]=te(" Creating Exchange... ",-1))],64)):(N(),P(Ae,{key:1},[g[25]||(g[25]=a("i",{class:"bi bi-check-circle me-2"},null,-1)),g[26]||(g[26]=te(" Create Exchange ",-1))],64))],8,Y$)]),_:1},8,["is-visible"]))}}),Xg=Xe(Z$,[["__scopeId","data-v-b1fc3af7"]]),J$={class:"dialog-body"},X$={key:0,class:"cannot-delete"},eT={class:"message"},tT={class:"stats",role:"group","aria-label":"Exchange deletion blockers"},sT={key:0,class:"stat"},nT={class:"label"},iT={class:"value"},rT={class:"stat"},aT={class:"value"},oT={key:1,class:"confirmation"},lT={class:"message"},uT={key:0,class:"error",role:"alert","aria-live":"assertive"},cT={class:"error-text"},dT={key:0,class:"actions"},fT={key:1,class:"actions"},hT=["disabled"],pT=["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=b(()=>s.totalQueues===0),r=b(()=>{switch(s.exchangeType){case Te.DIRECT:return"Direct";case Te.TOPIC:return"Topic";case Te.FANOUT:return"Fanout";default:return"Exchange"}}),o=b(()=>`Delete ${r.value} Exchange`),l=b(()=>s.exchangeType===Te.DIRECT?{label:"Routing Keys",value:s.totalRoutingKeys??0}:s.exchangeType===Te.TOPIC?{label:"Binding Patterns",value:s.totalBindingPatterns??0}:null),u=b(()=>{const C=s.totalQueues,A=C===1?"queue":"queues";if(s.exchangeType===Te.DIRECT){const g=s.totalRoutingKeys??0;return`This direct exchange cannot be deleted because it has ${C} bound ${A} across ${g} ${g===1?"routing key":"routing keys"}. Unbind all queues first.`}if(s.exchangeType===Te.TOPIC){const g=s.totalBindingPatterns??0;return`This topic exchange cannot be deleted because it has ${C} bound ${A} across ${g} ${g===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=b(()=>`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=zS(),h=rx(),m=vx(),p=b(()=>h.isPending.value||m.isPending.value||c.isPending.value),v=b(()=>dt(h.error.value?.error||m.error.value?.error||c.error.value?.error)),E=be(!1);Ye(()=>s.isVisible,C=>{C&&(h.reset?.(),m.reset?.(),c.reset?.(),E.value=!1)});function _(){!p.value&&!E.value&&(h.reset?.(),m.reset?.(),c.reset?.(),E.value=!1,n("close"))}async function S(){if(!(p.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 m.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",J$,[i.value?(N(),P("section",oT,[a("p",lT,q(d.value),1),v.value?(N(),P("div",uT,[A[2]||(A[2]=a("i",{class:"bi bi-exclamation-circle-fill me-2","aria-hidden":"true"},null,-1)),a("span",cT,q(v.value),1)])):he("",!0)])):(N(),P("section",X$,[a("p",eT,q(u.value),1),a("div",tT,[l.value?(N(),P("div",sT,[a("span",nT,q(l.value.label),1),a("span",iT,q(l.value.value),1)])):he("",!0),a("div",rT,[A[0]||(A[0]=a("span",{class:"label"},"Bound Queues",-1)),a("span",aT,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",fT,[a("button",{type:"button",class:"btn btn-outline-secondary",disabled:p.value||E.value,onClick:_},[...A[3]||(A[3]=[a("i",{class:"bi bi-x-circle me-2","aria-hidden":"true"},null,-1),te(" Cancel ",-1)])],8,hT),a("button",{type:"button",class:"btn btn-danger",disabled:p.value||E.value,onClick:S},[p.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]=te(" 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]=te(" Delete Exchange ",-1))],64))],8,pT)])):(N(),P("div",dT,[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 ev=(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))(ev||{}),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 gT=["aria-label"],vT={key:0,class:"loading-overlay",role:"status","aria-live":"polite"},bT={class:"card-header"},yT={class:"header-content"},_T=["title"],ET={class:"header-text"},wT=["title"],CT={class:"card-subtitle"},AT=["aria-label","aria-expanded","onKeydown"],ST={key:0,class:"dropdown-menu",role:"menu","aria-label":"Exchange actions"},xT={class:"card-body"},$T={key:0,class:"body-loading-overlay",role:"status","aria-live":"polite"},TT={key:1,class:"error-state",role:"alert"},OT={class:"error-message"},NT={class:"stats-section"},kT={class:"stat-item"},PT=["aria-label"],DT={class:"stat-label"},RT={class:"queues-section"},MT={class:"queues-title"},IT={key:0,class:"metadata-info"},qT={key:0,class:"queues-list",role:"list"},LT={class:"queue-info"},FT={class:"queue-name"},VT=["aria-label","onClick"],QT={key:0,class:"queue-item more",role:"listitem"},jT={class:"queue-info"},BT={key:1,class:"no-queues-message"},UT={class:"card-footer"},KT=["aria-label"],fh=10,HT=Ue({__name:"ExchangeCard",props:{exchange:{},isDeleting:{type:Boolean}},emits:["delete","viewDetails","bindQueue","unbindQueue","publishMessage"],setup(e,{emit:t}){const s=e,n=t,i=b(()=>s.exchange.type===Te.DIRECT),r=b(()=>s.exchange.type===Te.TOPIC),o=b(()=>s.exchange.type===Te.FANOUT),{data:l,isLoading:u,error:d,refetch:c}=Wg(b(()=>s.exchange.ns),b(()=>s.exchange.name),{query:{enabled:i}}),{data:h,isLoading:m,error:p,refetch:v}=Yg(b(()=>s.exchange.ns),b(()=>s.exchange.name),{query:{enabled:r}}),{data:E,isLoading:_,error:S,refetch:C}=Gg(b(()=>s.exchange.ns),b(()=>s.exchange.name),{query:{enabled:o}}),A=b(()=>s.exchange.type!==Te.DIRECT?[]:l.value?.data||[]),g=b(()=>s.exchange.type!==Te.TOPIC?[]:h.value?.data||[]),$=Array.from({length:fh},(Q,K)=>{const le=b(()=>A.value[K]||""),Ee=b(()=>s.exchange.type===Te.DIRECT&&K<A.value.length&&!!A.value[K]);return zg(b(()=>s.exchange.ns),b(()=>s.exchange.name),b(()=>({routingKey:le.value})),{query:{enabled:Ee}})}),L=Array.from({length:fh},(Q,K)=>{const le=b(()=>g.value[K]||""),Ee=b(()=>s.exchange.type===Te.TOPIC&&K<g.value.length&&!!g.value[K]);return Zg(b(()=>s.exchange.ns),b(()=>s.exchange.name),b(()=>({bindingPattern:le.value})),{query:{enabled:Ee}})}),V=b(()=>{switch(s.exchange.type){case Te.DIRECT:return u.value||$.some((Q,K)=>K<A.value.length&&Q.isLoading.value);case Te.FANOUT:return _.value;case Te.TOPIC:return m.value||L.some((Q,K)=>K<g.value.length&&Q.isLoading.value);default:return!1}}),I=b(()=>{switch(s.exchange.type){case Te.DIRECT:return d.value||$.find((Q,K)=>K<A.value.length&&Q.error.value)?.error.value;case Te.FANOUT:return S.value;case Te.TOPIC:return p.value||L.find((Q,K)=>K<g.value.length&&Q.error.value)?.error.value;default:return null}}),w=b(()=>!!I.value),O=b(()=>dt(I.value)),x=()=>{switch(s.exchange.type){case Te.DIRECT:c(),$.forEach((Q,K)=>{K<A.value.length&&Q.refetch()});break;case Te.FANOUT:C();break;case Te.TOPIC:v(),L.forEach((Q,K)=>{K<g.value.length&&Q.refetch()});break}},F=b(()=>{let Q=[],K=[],le=[];const Ee=s.exchange.type;if(Ee===Te.DIRECT)$.forEach((k,R)=>{if(R>=A.value.length)return;const j=k.data?.value?.data;if(j&&Array.isArray(j)){const ne=j.map(re=>re.name).filter(Boolean);Q.push(...ne),ne.length>0&&K.push(A.value[R])}});else if(Ee===Te.FANOUT){const k=E.value?.data;k&&Array.isArray(k)&&(Q=k.map(R=>R.name).filter(Boolean))}else L.forEach((k,R)=>{if(R>=g.value.length)return;const j=k.data?.value?.data;if(j&&Array.isArray(j)){const ne=j.map(re=>re.name).filter(Boolean);Q.push(...ne),ne.length>0&&le.push(g.value[R])}});const J=[...new Set(Q)];return{items:J,total:J.length,routingKeys:K,bindingPatterns:le}}),H=be(!1),z=be(null),fe=Q=>{z.value&&!z.value.contains(Q.target)&&(H.value=!1)},ie=Q=>{Q.key==="Escape"&&H.value&&(H.value=!1)};Bt(()=>{document.addEventListener("click",fe),document.addEventListener("keydown",ie)}),Ji(()=>{document.removeEventListener("click",fe),document.removeEventListener("keydown",ie)});const G=b(()=>{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"}}}),X=b(()=>F.value.items.slice(0,3)),Z=b(()=>Math.max(0,F.value.total-X.value.length)),W=b(()=>{switch(s.exchange.type){case Te.DIRECT:return F.value.routingKeys?.length?`${F.value.routingKeys.length} routing key${F.value.routingKeys.length>1?"s":""}`:null;case Te.TOPIC:return F.value.bindingPatterns?.length?`${F.value.bindingPatterns.length} binding pattern${F.value.bindingPatterns.length>1?"s":""}`:null;default:return null}}),se=()=>{H.value=!1;const Q={totalQueues:F.value.total,totalRoutingKeys:s.exchange.type===Te.DIRECT?F.value.routingKeys?.length??0:void 0,totalBindingPatterns:s.exchange.type===Te.TOPIC?F.value.bindingPatterns?.length??0:void 0};n("delete",{exchange:s.exchange,totals:Q})},ue=()=>{H.value=!1,n("bindQueue",s.exchange)},Re=Q=>{H.value=!1,n("unbindQueue",{exchange:s.exchange,queueName:Q})},Ie=()=>{H.value=!1,n("publishMessage",s.exchange)},tt=()=>{n("viewDetails",s.exchange)},ve=()=>{H.value=!H.value};return(Q,K)=>(N(),P("article",{class:De(["exchange-card",{"is-deleting":e.isDeleting}]),role:"article","aria-label":`${G.value.name} exchange ${e.exchange.name} in ${e.exchange.ns} namespace`},[e.isDeleting?(N(),P("div",vT,[...K[0]||(K[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",bT,[a("div",yT,[a("div",{class:De(["header-icon",G.value.color]),title:G.value.description},[a("i",{class:De(["bi",G.value.icon]),"aria-hidden":"true"},null,2)],10,_T),a("div",ET,[a("h3",{class:"card-title",title:e.exchange.name},q(e.exchange.name),9,wT),a("span",CT,q(G.value.name)+" Exchange in '"+q(e.exchange.ns)+"' ",1)])]),a("div",{ref_key:"dropdown",ref:z,class:"actions-menu"},[a("button",{type:"button",class:"btn-actions","aria-label":`More options for ${e.exchange.name} exchange`,"aria-expanded":H.value,"aria-haspopup":"true",onClick:ve,onKeydown:[an(ve,["enter"]),an(Ft(ve,["prevent"]),["space"])]},[...K[1]||(K[1]=[a("i",{class:"bi bi-three-dots-vertical","aria-hidden":"true"},null,-1)])],40,AT),we(Jw,{name:"dropdown"},{default:qe(()=>[H.value?(N(),P("div",ST,[a("button",{type:"button",class:"dropdown-item",role:"menuitem",onClick:ue},[...K[2]||(K[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},[...K[3]||(K[3]=[a("i",{class:"bi bi-send","aria-hidden":"true"},null,-1),a("span",null,"Publish Message",-1)])]),K[5]||(K[5]=a("div",{class:"dropdown-divider",role:"separator"},null,-1)),a("button",{type:"button",class:"dropdown-item danger",role:"menuitem",onClick:se},[...K[4]||(K[4]=[a("i",{class:"bi bi-trash","aria-hidden":"true"},null,-1),a("span",null,"Delete Exchange",-1)])])])):he("",!0)]),_:1})],512)]),a("main",xT,[V.value?(N(),P("div",$T,[...K[6]||(K[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",TT,[K[8]||(K[8]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("p",OT,q(O.value),1),a("button",{type:"button",class:"btn-retry",onClick:x},[...K[7]||(K[7]=[a("i",{class:"bi bi-arrow-clockwise","aria-hidden":"true"},null,-1),te(" Retry ",-1)])])])):(N(),P(Ae,{key:2},[a("div",NT,[a("div",kT,[a("span",{class:"stat-value","aria-label":`${F.value.total} queues bound`},q(F.value.total),9,PT),a("span",DT,q(F.value.total===1?"Queue":"Queues")+" Bound ",1)])]),a("div",RT,[a("h4",MT,[K[9]||(K[9]=a("i",{class:"bi bi-card-list me-2","aria-hidden":"true"},null,-1)),te(" "+q(F.value.total>0?"Sample Queues":"Bound Queues")+" ",1),W.value?(N(),P("span",IT," ("+q(W.value)+") ",1)):he("",!0)]),F.value.total>0?(N(),P("ul",qT,[(N(!0),P(Ae,null,bt(X.value,le=>(N(),P("li",{key:le,class:"queue-item",role:"listitem"},[a("div",LT,[K[10]||(K[10]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",FT,q(le),1)]),a("button",{type:"button",class:"btn-unbind-queue","aria-label":`Unbind queue ${le}`,onClick:Ee=>Re(le)},[...K[11]||(K[11]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1)])],8,VT)]))),128)),Z.value>0?(N(),P("li",QT,[a("div",jT,[K[12]||(K[12]=a("i",{class:"bi bi-three-dots","aria-hidden":"true"},null,-1)),a("span",null,"+"+q(Z.value)+" more",1)])])):he("",!0)])):(N(),P("div",BT,[K[14]||(K[14]=a("i",{class:"bi bi-inbox","aria-hidden":"true"},null,-1)),K[15]||(K[15]=a("p",null,"No queues are bound to this exchange.",-1)),a("button",{type:"button",class:"btn-bind-now",onClick:ue},[...K[13]||(K[13]=[a("i",{class:"bi bi-link-45deg","aria-hidden":"true"},null,-1),te(" Bind a queue ",-1)])])]))])],64))]),a("footer",UT,[a("button",{type:"button",class:"btn-details","aria-label":`View details for ${e.exchange.name} exchange`,onClick:tt},[...K[16]||(K[16]=[a("span",null,"View Details",-1),a("i",{class:"bi bi-arrow-right-circle","aria-hidden":"true"},null,-1)])],8,KT)])],10,gT))}}),tv=Xe(HT,[["__scopeId","data-v-f617579d"]]),GT={class:"exchanges-view"},WT={key:0,class:"grid grid-cols-2 gap-6"},zT=Ue({__name:"ExchangesView",setup(e){const t=os(),s=Xt(),n=fn(),i=be(!1),r=be(!1),o=be(null),l=be(null),{data:u,isLoading:d,isError:c,error:h,refetch:m}=Hg(),p=Sc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:_r()}),r.value=!1},onError:X=>{console.error("Failed to create fanout exchange:",X)}}}),v=xc({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:_r()}),r.value=!1},onError:X=>{console.error("Failed to create direct exchange:",X)}}}),E=$c({mutation:{onSuccess:()=>{n.invalidateQueries({queryKey:_r()}),r.value=!1},onError:X=>{console.error("Failed to create topic exchange:",X)}}}),_=b(()=>p.isPending.value||v.isPending.value||E.isPending.value),S=b(()=>dt(p.error.value?.error||v.error.value?.error||E.error.value?.error)),C=b(()=>u.value?.data??[]),A=b(()=>dt(h.value)),g=X=>{const Z=C.value.find(W=>W.name===X.exchange.name&&W.ns===X.exchange.ns)||null;o.value=Z??{name:X.exchange.name,ns:X.exchange.ns,type:X.exchange.type},l.value=X.totals,i.value=!0},$=()=>{r.value=!0},L=X=>{console.log("Binding queue to:",X.name)},V=async X=>{const{name:Z,type:W,ns:se,queueName:ue,routingKey:Re,bindingPattern:Ie}=X;try{switch(W){case Te.FANOUT:await p.mutateAsync({ns:se,fanout:Z,queue:ue});break;case Te.DIRECT:await v.mutateAsync({ns:se,direct:Z,queue:ue,params:{routingKey:String(Re)}});break;case Te.TOPIC:await E.mutateAsync({ns:se,topic:Z,queue:ue,params:{bindingPattern:String(Ie)}});break;default:throw new Error(`Unsupported exchange type: ${W}`)}}catch(tt){console.error("Failed to create exchange:",tt)}},I=X=>{const Z={exchange:X.name,ns:X.ns};return X.type==Te.DIRECT?{name:"Direct Exchange",params:Z}:X.type==Te.TOPIC?{name:"Topic Exchange",params:Z}:{name:"Fanout Exchange",params:Z}},w=X=>{const Z=I(X);t.push(Z)},O=b(()=>[{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:()=>m(),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 x=b(()=>o.value?.ns??""),F=b(()=>o.value?.name??""),H=b(()=>o.value?.type??0),z=b(()=>l.value?.totalQueues??0),fe=b(()=>l.value?.totalRoutingKeys),ie=b(()=>l.value?.totalBindingPatterns),G=()=>{n.invalidateQueries({queryKey:_r()}),i.value=!1,o.value=null,l.value=null};return(X,Z)=>(N(),P("div",GT,[we(ms,null,{default:qe(()=>[C.value.length>0?(N(),P("div",WT,[(N(!0),P(Ae,null,bt(C.value,W=>(N(),at(tv,{key:`${W.name}-${W.ns}`,exchange:W,onDelete:g,onViewDetails:w,onBindQueue:L},null,8,["exchange"]))),128))])):he("",!0)]),_:1}),we(ia,{"is-visible":i.value,"exchange-type":H.value,"exchange-name":F.value,namespace:x.value,"total-queues":z.value,"total-routing-keys":fe.value,"total-binding-patterns":ie.value,onDeleted:G,onClose:Z[0]||(Z[0]=W=>{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"]),we(Xg,{"is-visible":r.value,"is-loading":_.value,error:S.value,onConfirm:V,onCancel:Z[1]||(Z[1]=W=>r.value=!1)},null,8,["is-visible","is-loading","error"])]))}}),YT=Xe(zT,[["__scopeId","data-v-0231c378"]]),sv=e=>Je({url:"/api/v1/queues",method:"GET",signal:e}),nv=()=>["api","v1","queues"],ZT=e=>{const{query:t}={};return{queryKey:nv(),queryFn:({signal:i})=>sv(i),...t}};function JT(e,t){const s=ZT(),n=Jt(s);return n.queryKey=T(s).queryKey,n}const XT=(e,t)=>(e=T(e),Je({url:"/api/v1/queues",method:"POST",headers:{"Content-Type":"application/json"},data:e,signal:t})),eO=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 XT(r)},...s}},tO=(e,t)=>{const s=eO(e);return Nt(s)},iv=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}`,method:"GET",signal:s})),rv=(e,t)=>["api","v1","namespaces",e,"queues",t],sO=(e,t,s)=>{const{query:n}=s??{};return{queryKey:rv(e,t),queryFn:({signal:o})=>iv(e,t,o),enabled:b(()=>!!(T(e)&&T(t))),...n}};function nO(e,t,s,n){const i=sO(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const iO=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}`,method:"DELETE"})),rO=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 iO(r,o)},...s}},aO=(e,t)=>{const s=rO(e);return Nt(s)},av=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumers`,method:"GET",signal:s})),ov=(e,t)=>["api","v1","namespaces",e,"queues",t,"consumers"],oO=(e,t,s)=>{const{query:n}=s??{};return{queryKey:ov(e,t),queryFn:({signal:o})=>av(e,t,o),enabled:b(()=>!!(T(e)&&T(t))),...n}};function lO(e,t,s,n){const i=oO(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}/**
36
- * vee-validate v4.15.1
37
- * (c) 2025 Abdelrahman Awad
38
- * @license MIT
39
- */function Rt(e){return typeof e=="function"}function lv(e){return e==null}const di=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Tc(e){return Number(e)>=0}function uO(e){const t=parseFloat(e);return isNaN(t)?e:t}function cO(e){return typeof e=="object"&&e!==null}function dO(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function hh(e){if(!cO(e)||dO(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(hh(t[s])&&hh(e[s])){e[s]||(e[s]={}),Hr(e[s],t[s]);return}e[s]=t[s]}),e}function Er(e){const t=e.split(".");if(!t.length)return"";let s=String(t[0]);for(let n=1;n<t.length;n++){if(Tc(t[n])){s+=`[${t[n]}]`;continue}s+=`.${t[n]}`}return s}const fO={};function hO(e){return fO[e]}function ph(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++)ph(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]||ph(i,s,Object.getOwnPropertyDescriptor(e,s))}return i||e}const Wo=Symbol("vee-validate-form"),pO=Symbol("vee-validate-form-context"),mO=Symbol("vee-validate-field-instance"),uo=Symbol("Default empty value"),gO=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 ra(e){return e==="checkbox"||e==="radio"}function vO(e){return di(e)||Array.isArray(e)}function bO(e){return Array.isArray(e)?e.length===0:di(e)&&Object.keys(e).length===0}function aa(e){return/^\[.+\]$/i.test(e)}function yO(e){return uv(e)&&e.multiple}function uv(e){return e.tagName==="SELECT"}function _O(e,t){const s=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e==="select"&&"multiple"in t&&s}function EO(e,t){return!_O(e,t)&&t.type!=="file"&&!ra(t.type)}function cv(e){return Oc(e)&&e.target&&"submit"in e.target}function Oc(e){return e?!!(typeof Event<"u"&&Rt(Event)&&e instanceof Event||e&&e.srcElement):!1}function mh(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(vh(e)&&vh(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=gh(e),t=gh(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 gh(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function vh(e){return gO?e instanceof File:!1}function zo(e){return aa(e)?e.replace(/\[|\]/gi,""):e}function ns(e,t,s){return e?aa(t)?e[zo(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i,r)=>vO(i)&&r in i?i[r]:s,e):s}function Js(e,t,s){if(aa(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)||lv(i[n[r]]))&&(i[n[r]]=Tc(n[r+1])?[]:{}),i=i[n[r]]}}function Dl(e,t){if(Array.isArray(e)&&Tc(t)){e.splice(Number(t),1);return}di(e)&&delete e[t]}function bh(e,t){if(aa(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){Dl(n,s[r]);break}if(!(s[r]in n)||lv(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(bO(i[r])){if(r===0){Dl(e,s[0]);continue}Dl(i[r-1],s[r-1])}}function ls(e){return Object.keys(e)}function dv(e,t=void 0){const s=hi();return s?.provides[e]||Yt(e,t)}function yh(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 _h(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 wO(e,t){return di(t)&&t.number?uO(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 Oa(e,t){const s={};for(const n in e)t.includes(n)||(s[n]=e[n]);return s}function CO(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 Nc(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 Rl(e){if(fv(e))return e._value}function fv(e){return"_value"in e}function AO(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function fo(e){if(!Oc(e))return e;const t=e.target;if(ra(t.type)&&fv(t))return Rl(t);if(t.type==="file"&&t.files){const s=Array.from(t.files);return t.multiple?s:s[0]}if(yO(t))return Array.from(t.options).filter(s=>s.selected&&!s.disabled).map(Rl);if(uv(t)){const s=Array.from(t.options).find(n=>n.selected);return s?Rl(s):t.value}return AO(t)}function hv(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=SO(e[n]);return e[n]!==!1&&(s[n]=Eh(i)),s},t):typeof e!="string"?t:e.split("|").reduce((s,n)=>{const i=xO(n);return i.name&&(s[i.name]=Eh(i.params)),s},t):t}function SO(e){return e===!0?[]:Array.isArray(e)||di(e)?e:[e]}function Eh(e){const t=s=>typeof s=="string"&&s[0]==="@"?$O(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 xO=e=>{let t=[];const s=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:s,params:t}};function $O(e){const t=s=>{var n;return(n=ns(s,e))!==null&&n!==void 0?n:s[e]};return t.__locatorRef=e,t}function TO(e){return Array.isArray(e)?e.filter($u):ls(e).filter(t=>$u(e[t])).map(t=>e[t])}const OO={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let NO=Object.assign({},OO);const Zn=()=>NO;async function pv(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 kO(i,e);return Object.assign(Object.assign({},r),{valid:!r.errors.length})}async function kO(e,t){const s=e.rules;if(ks(s)||co(s))return DO(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 m=u[h],p=await m(t,l);if(!(typeof p!="string"&&!Array.isArray(p)&&p)){if(Array.isArray(p))c.push(...p);else{const E=typeof p=="string"?p:gv(l);c.push(E)}if(e.bails)return{errors:c}}}return{errors:c}}const n=Object.assign(Object.assign({},e),{rules:hv(s)}),i=[],r=Object.keys(n.rules),o=r.length;for(let l=0;l<o;l++){const u=r[l],d=await RO(n,t,{name:u,params:n.rules[u]});if(d.error&&(i.push(d.error),e.bails))return{errors:i}}return{errors:i}}function PO(e){return!!e&&e.name==="ValidationError"}function mv(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(!PO(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 DO(e,t){const n=await(ks(t.rules)?t.rules:mv(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 RO(e,t,s){const n=hO(s.name);if(!n)throw new Error(`No such validator '${s.name}' exists.`);const i=MO(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:gv(r)}}function gv(e){const t=Zn().generateMessage;return t?t(e):"Field is invalid"}function MO(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 IO(e,t){const n=await(ks(e)?e:mv(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 qO(e,t,s){const i=ls(e).map(async d=>{var c,h,m;const p=(c=s?.names)===null||c===void 0?void 0:c[d],v=await pv(ns(t,d),e[d],{name:p?.name||d,label:p?.label,values:t,bails:(m=(h=s?.bailsMap)===null||h===void 0?void 0:h[d])!==null&&m!==void 0?m:!0});return Object.assign(Object.assign({},v),{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 wh=0;function LO(e,t){const{value:s,initialValue:n,setInitialValue:i}=FO(e,t.modelValue,t.form);if(!t.form){let u=function(p){var v;"value"in p&&(s.value=p.value),"errors"in p&&c(p.errors),"touched"in p&&(m.touched=(v=p.touched)!==null&&v!==void 0?v:m.touched),"initialValue"in p&&i(p.initialValue)};const{errors:d,setErrors:c}=jO(),h=wh>=Number.MAX_SAFE_INTEGER?0:++wh,m=QO(s,n,d,t.schema);return{id:h,path:e,value:s,initialValue:n,meta:m,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=b(()=>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 FO(e,t,s){const n=be(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=b(i);if(!s)return{value:be(i()),initialValue:o,setInitialValue:r};const l=VO(t,s,o,e);return s.stageInitialValue(T(e),l,!0),{value:b({get(){return ns(s.values,T(e))},set(d){s.setFieldValue(T(e),d,!1)}}),initialValue:o,setInitialValue:r}}function VO(e,t,s,n){return ht(e)?T(e):e!==void 0?e:ns(t.values,T(n),T(s))}function QO(e,t,s,n){const i=b(()=>{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:b(()=>T(t)),dirty:b(()=>!Zt(T(e),T(t)))});return Ye(s,o=>{r.valid=!o.length},{immediate:!0,flush:"sync"}),r}function jO(){const e=be([]);return{errors:e,setErrors:t=>{e.value=Ou(t)}}}function BO(e,t,s){return ra(s?.type)?KO(e,t,s):vv(e,t,s)}function vv(e,t,s){const{initialValue:n,validateOnMount:i,bails:r,type:o,checkedValue:l,label:u,validateOnValueUpdate:d,uncheckedValue:c,controlled:h,keepValueOnUnmount:m,syncVModel:p,form:v}=UO(s),E=h?dv(Wo):void 0,_=v||E,S=b(()=>Er(Fe(e))),C=b(()=>{if(Fe(_?.schema))return;const Q=T(t);return co(Q)||ks(Q)||Rt(Q)||Array.isArray(Q)?Q:hv(Q)}),A=!Rt(C.value)&&ks(Fe(t)),{id:g,value:$,initialValue:L,meta:V,setState:I,errors:w,flags:O}=LO(S,{modelValue:n,form:_,bails:r,label:u,type:o,validate:C.value?ie:void 0,schema:A?t:void 0}),x=b(()=>w.value[0]);p&&HO({value:$,prop:p,handleChange:G,shouldValidate:()=>d&&!O.pendingReset});const F=(ve,Q=!1)=>{V.touched=!0,Q&&z()};async function H(ve){var Q,K;if(_?.validateSchema){const{results:le}=await _.validateSchema(ve);return(Q=le[Fe(S)])!==null&&Q!==void 0?Q:{valid:!0,errors:[]}}return C.value?pv($.value,C.value,{name:Fe(S),label:Fe(u),values:(K=_?.values)!==null&&K!==void 0?K:{},bails:r}):{valid:!0,errors:[]}}const z=Tu(async()=>(V.pending=!0,V.validated=!0,H("validated-only")),ve=>(O.pendingUnmount[Ie.id]||(I({errors:ve.errors}),V.pending=!1,V.valid=ve.valid),ve)),fe=Tu(async()=>H("silent"),ve=>(V.valid=ve.valid,ve));function ie(ve){return ve?.mode==="silent"?fe():z()}function G(ve,Q=!0){const K=fo(ve);se(K,Q)}Bt(()=>{if(i)return z();(!_||!_.validateSchema)&&fe()});function X(ve){V.touched=ve}function Z(ve){var Q;const K=ve&&"value"in ve?ve.value:L.value;I({value:ot(K),initialValue:ot(K),touched:(Q=ve?.touched)!==null&&Q!==void 0?Q:!1,errors:ve?.errors||[]}),V.pending=!1,V.validated=!1,fe()}const W=hi();function se(ve,Q=!0){$.value=W&&p?wO(ve,W.props.modelModifiers):ve,(Q?z:fe)()}function ue(ve){I({errors:Array.isArray(ve)?ve:[ve]})}const Re=b({get(){return $.value},set(ve){se(ve,d)}}),Ie={id:g,name:S,label:u,value:Re,meta:V,errors:w,errorMessage:x,type:o,checkedValue:l,uncheckedValue:c,bails:r,keepValueOnUnmount:m,resetField:Z,handleReset:()=>Z(),validate:ie,handleChange:G,handleBlur:F,setState:I,setTouched:X,setErrors:ue,setValue:se};if(si(mO,Ie),ht(t)&&typeof T(t)!="function"&&Ye(t,(ve,Q)=>{Zt(ve,Q)||(V.validated?z():fe())},{deep:!0}),!_)return Ie;const tt=b(()=>{const ve=C.value;return!ve||Rt(ve)||co(ve)||ks(ve)||Array.isArray(ve)?{}:Object.keys(ve).reduce((Q,K)=>{const le=TO(ve[K]).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(Q,le),Q},{})});return Ye(tt,(ve,Q)=>{if(!Object.keys(ve).length)return;!Zt(ve,Q)&&(V.validated?z():fe())}),Ji(()=>{var ve;const Q=(ve=Fe(Ie.keepValueOnUnmount))!==null&&ve!==void 0?ve:Fe(_.keepValuesOnUnmount),K=Fe(S);if(Q||!_||O.pendingUnmount[Ie.id]){_?.removePathState(K,g);return}O.pendingUnmount[Ie.id]=!0;const le=_.getPathState(K);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(K,k)}Array.isArray(le.id)&&le.id.splice(le.id.indexOf(Ie.id),1)}else _.unsetPathValue(Fe(S));_.removePathState(K,g)}}),Ie}function UO(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 KO(e,t,s){const n=s?.standalone?void 0:dv(Wo),i=s?.checkedValue,r=s?.uncheckedValue;function o(l){const u=l.handleChange,d=b(()=>{const h=Fe(l.value),m=Fe(i);return Array.isArray(h)?h.findIndex(p=>Zt(p,m))>=0:Zt(m,h)});function c(h,m=!0){var p,v;if(d.value===((p=h?.target)===null||p===void 0?void 0:p.checked)){m&&l.validate();return}const E=Fe(e),_=n?.getPathState(E),S=fo(h);let C=(v=Fe(i))!==null&&v!==void 0?v:S;n&&_?.multiple&&_.type==="checkbox"?C=yh(ns(n.values,E)||[],C,void 0):s?.type==="checkbox"&&(C=yh(Fe(l.value),C,Fe(r))),u(C,m)}return Object.assign(Object.assign({},l),{checked:d,checkedValue:i,uncheckedValue:r,handleChange:c})}return o(vv(e,t,s))}function HO({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 GO=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:m,setTouched:p,resetField:v,handleReset:E,meta:_,checked:S,setErrors:C,setValue:A}=BO(n,s,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:t.attrs.type,initialValue:zO(e,t),checkedValue:t.attrs.value,uncheckedValue:r,label:i,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:o,syncVModel:!0}),g=function(O,x=!0){h(O,x)},$=b(()=>{const{validateOnInput:w,validateOnChange:O,validateOnBlur:x,validateOnModelUpdate:F}=WO(e);function H(G){m(G,x),Rt(t.attrs.onBlur)&&t.attrs.onBlur(G)}function z(G){g(G,w),Rt(t.attrs.onInput)&&t.attrs.onInput(G)}function fe(G){g(G,O),Rt(t.attrs.onChange)&&t.attrs.onChange(G)}const ie={name:e.name,onBlur:H,onInput:z,onChange:fe};return ie["onUpdate:modelValue"]=G=>g(G,F),ie}),L=b(()=>{const w=Object.assign({},$.value);ra(t.attrs.type)&&S&&(w.checked=S.value);const O=Ch(e,t);return EO(O,t.attrs)&&(w.value=u.value),w}),V=b(()=>Object.assign(Object.assign({},$.value),{modelValue:u.value}));function I(){return{field:L.value,componentField:V.value,value:u.value,meta:_,errors:l.value,errorMessage:d.value,validate:c,resetField:v,handleChange:g,handleInput:w=>g(w,!1),handleReset:E,handleBlur:$.value.onBlur,setTouched:p,setErrors:C,setValue:A}}return t.expose({value:u,meta:_,errors:l,errorMessage:d,setErrors:C,setTouched:p,setValue:A,reset:v,validate:c,handleChange:h}),()=>{const w=Mo(Ch(e,t)),O=Nc(w,t,I);return w?oi(w,Object.assign(Object.assign({},t.attrs),L.value),O):O}}});function Ch(e,t){let s=e.as||"";return!e.as&&!t.slots.default&&(s="input"),s}function WO(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 zO(e,t){return ra(t.attrs.type)?mh(e,"modelValue")?e.modelValue:void 0:mh(e,"modelValue")?e.modelValue:t.attrs.value}const Ns=GO;let YO=0;const Na=["bails","fieldsCount","id","multiple","type","validate"];function bv(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 Yo(e){var t;const s=YO++,n=e?.name||"Form";let i=0;const r=be(!1),o=be(!1),l=be(0),u=[],d=As(bv(e)),c=be([]),h=be({}),m=be({}),p=CO(()=>{m.value=c.value.reduce((U,B)=>(U[Er(Fe(B.path))]=B,U),{})});function v(U,B){const ce=G(U);if(!ce){typeof U=="string"&&(h.value[Er(U)]=Ou(B));return}if(typeof U=="string"){const Se=Er(U);h.value[Se]&&delete h.value[Se]}ce.errors=Ou(B),ce.valid=!ce.errors.length}function E(U){ls(U).forEach(B=>{v(B,U[B])})}e?.initialErrors&&E(e.initialErrors);const _=b(()=>{const U=c.value.reduce((B,ce)=>(ce.errors.length&&(B[Fe(ce.path)]=ce.errors),B),{});return Object.assign(Object.assign({},h.value),U)}),S=b(()=>ls(_.value).reduce((U,B)=>{const ce=_.value[B];return ce?.length&&(U[B]=ce[0]),U},{})),C=b(()=>c.value.reduce((U,B)=>(U[Fe(B.path)]={name:Fe(B.path)||"",label:B.label||""},U),{})),A=b(()=>c.value.reduce((U,B)=>{var ce;return U[Fe(B.path)]=(ce=B.bails)!==null&&ce!==void 0?ce:!0,U},{})),g=Object.assign({},e?.initialErrors||{}),$=(t=e?.keepValuesOnUnmount)!==null&&t!==void 0?t:!1,{initialValues:L,originalInitialValues:V,setInitialValues:I}=JO(c,d,e),w=ZO(c,d,V,S),O=b(()=>c.value.reduce((U,B)=>{const ce=ns(d,Fe(B.path));return Js(U,Fe(B.path),ce),U},{})),x=e?.validationSchema;function F(U,B){var ce,Se;const $e=b(()=>ns(L.value,Fe(U))),Le=m.value[Fe(U)],Pe=B?.type==="checkbox"||B?.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 ct=b(()=>ns(d,Fe(U))),pt=Fe(U),St=Z.findIndex(es=>es===pt);St!==-1&&Z.splice(St,1);const mt=b(()=>{var es,Rn,sr,nr;const ir=Fe(x);if(ks(ir))return(Rn=(es=ir.describe)===null||es===void 0?void 0:es.call(ir,Fe(U)).required)!==null&&Rn!==void 0?Rn:!1;const rr=Fe(B?.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:U,touched:!1,pending:!1,valid:!0,validated:!!(!((ce=g[pt])===null||ce===void 0)&&ce.length),required:mt,initialValue:$e,errors:zp([]),bails:(Se=B?.bails)!==null&&Se!==void 0?Se:!1,label:B?.label,type:B?.type||"default",value:ct,multiple:!1,__flags:{pendingUnmount:{[xt]:!1},pendingReset:!1},fieldsCount:1,validate:B?.validate,dirty:b(()=>!Zt(T(ct),T($e)))});return c.value.push(qt),m.value[pt]=qt,p(),S.value[pt]&&!g[pt]&&kt(()=>{Y(pt,{mode:"silent"})}),ht(U)&&Ye(U,es=>{p();const Rn=ot(ct.value);m.value[es]=qt,kt(()=>{Js(d,es,Rn)})}),qt}const H=_h(Oe,5),z=_h(Oe,5),fe=Tu(async U=>await(U==="silent"?H():z()),(U,[B])=>{const ce=ls(Q.errorBag.value),$e=[...new Set([...ls(U.results),...c.value.map(Le=>Le.path),...ce])].sort().reduce((Le,Pe)=>{var ct;const pt=Pe,St=G(pt)||X(pt),mt=((ct=U.results[pt])===null||ct===void 0?void 0:ct.errors)||[],xt=Fe(St?.path)||pt,qt=XO({errors:mt,valid:!mt.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,B==="silent"||B==="validated-only"&&!St.validated||v(St,qt.errors),Le):(v(xt,mt),Le)},{valid:U.valid,results:{},errors:{},source:U.source});return U.values&&($e.values=U.values,$e.source=U.source),ls($e.results).forEach(Le=>{var Pe;const ct=G(Le);ct&&B!=="silent"&&(B==="validated-only"&&!ct.validated||v(ct,(Pe=$e.results[Le])===null||Pe===void 0?void 0:Pe.errors))}),$e});function ie(U){c.value.forEach(U)}function G(U){const B=typeof U=="string"?Er(U):U;return typeof B=="string"?m.value[B]:B}function X(U){return c.value.filter(ce=>U.startsWith(Fe(ce.path))).reduce((ce,Se)=>ce?Se.path.length>ce.path.length?Se:ce:Se,void 0)}let Z=[],W;function se(U){return Z.push(U),W||(W=kt(()=>{[...Z].sort().reverse().forEach(ce=>{bh(d,ce)}),Z=[],W=null})),W}function ue(U){return function(ce,Se){return function(Le){return Le instanceof Event&&(Le.preventDefault(),Le.stopPropagation()),ie(Pe=>Pe.touched=!0),r.value=!0,l.value++,me().then(Pe=>{const ct=ot(d);if(Pe.valid&&typeof ce=="function"){const pt=ot(O.value);let St=U?pt:ct;return Pe.values&&(St=Pe.source==="schema"?Pe.values:Object.assign({},St,Pe.values)),ce(St,{evt:Le,controlledValues:pt,setErrors:E,setFieldError:v,setTouched:re,setFieldTouched:k,setValues:Ee,setFieldValue:K,resetForm:pe,resetField:oe})}!Pe.valid&&typeof Se=="function"&&Se({values:ct,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(U,B){const ce=c.value.findIndex($e=>$e.path===U&&(Array.isArray($e.id)?$e.id.includes(B):$e.id===B)),Se=c.value[ce];if(!(ce===-1||!Se)){if(kt(()=>{Y(U,{mode:"silent",warn:!1})}),Se.multiple&&Se.fieldsCount&&Se.fieldsCount--,Array.isArray(Se.id)){const $e=Se.id.indexOf(B);$e>=0&&Se.id.splice($e,1),delete Se.__flags.pendingUnmount[B]}(!Se.multiple||Se.fieldsCount<=0)&&(c.value.splice(ce,1),de(U),p(),delete m.value[U])}}function ve(U){ls(m.value).forEach(B=>{B.startsWith(U)&&delete m.value[B]}),c.value=c.value.filter(B=>!B.path.startsWith(U)),kt(()=>{p()})}const Q={name:n,formId:s,values:d,controlledValues:O,errorBag:_,errors:S,schema:x,submitCount:l,meta:w,isSubmitting:r,isValidating:o,fieldArrays:u,keepValuesOnUnmount:$,validateSchema:T(x)?fe:void 0,validate:me,setFieldError:v,validateField:Y,setFieldValue:K,setValues:Ee,setErrors:E,setFieldTouched:k,setTouched:re,resetForm:pe,resetField:oe,handleSubmit:Ie,useFieldModel:st,defineInputBinds:et,defineComponentBinds:_t,defineField:He,stageInitialValue:Me,unsetInitialValue:de,setFieldInitialValue:Ce,createPathState:F,getPathState:G,unsetPathValue:se,removePathState:tt,initialValues:L,getAllPathStates:()=>c.value,destroyPath:ve,isFieldTouched:R,isFieldDirty:j,isFieldValid:ne};function K(U,B,ce=!0){const Se=ot(B),$e=typeof U=="string"?U:U.path;G($e)||F($e),Js(d,$e,Se),ce&&Y($e)}function le(U,B=!0){ls(d).forEach(ce=>{delete d[ce]}),ls(U).forEach(ce=>{K(ce,U[ce],!1)}),B&&me()}function Ee(U,B=!0){Hr(d,U),u.forEach(ce=>ce&&ce.reset()),B&&me()}function J(U,B){const ce=G(Fe(U))||F(U);return b({get(){return ce.value},set(Se){var $e;const Le=Fe(U);K(Le,Se,($e=Fe(B))!==null&&$e!==void 0?$e:!1)}})}function k(U,B){const ce=G(U);ce&&(ce.touched=B)}function R(U){const B=G(U);return B?B.touched:c.value.filter(ce=>ce.path.startsWith(U)).some(ce=>ce.touched)}function j(U){const B=G(U);return B?B.dirty:c.value.filter(ce=>ce.path.startsWith(U)).some(ce=>ce.dirty)}function ne(U){const B=G(U);return B?B.valid:c.value.filter(ce=>ce.path.startsWith(U)).every(ce=>ce.valid)}function re(U){if(typeof U=="boolean"){ie(B=>{B.touched=U});return}ls(U).forEach(B=>{k(B,!!U[B])})}function oe(U,B){var ce;const Se=B&&"value"in B?B.value:ns(L.value,U),$e=G(U);$e&&($e.__flags.pendingReset=!0),Ce(U,ot(Se),!0),K(U,Se,!1),k(U,(ce=B?.touched)!==null&&ce!==void 0?ce:!1),v(U,B?.errors||[]),kt(()=>{$e&&($e.__flags.pendingReset=!1)})}function pe(U,B){let ce=ot(U?.values?U.values:V.value);ce=B?.force?ce:Hr(V.value,ce),ce=ks(x)&&Rt(x.cast)?x.cast(ce):ce,I(ce,{force:B?.force}),ie(Se=>{var $e;Se.__flags.pendingReset=!0,Se.validated=!1,Se.touched=(($e=U?.touched)===null||$e===void 0?void 0:$e[Fe(Se.path)])||!1,K(Fe(Se.path),ns(ce,Fe(Se.path)),!1),v(Fe(Se.path),void 0)}),B?.force?le(ce,!1):Ee(ce,!1),E(U?.errors||{}),l.value=U?.submitCount||0,kt(()=>{me({mode:"silent"}),ie(Se=>{Se.__flags.pendingReset=!1})})}async function me(U){const B=U?.mode||"force";if(B==="force"&&ie(Pe=>Pe.validated=!0),Q.validateSchema)return Q.validateSchema(B);o.value=!0;const ce=await Promise.all(c.value.map(Pe=>Pe.validate?Pe.validate(U).then(ct=>({key:Fe(Pe.path),valid:ct.valid,errors:ct.errors,value:ct.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&&Js(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 Y(U,B){var ce;const Se=G(U);if(Se&&B?.mode!=="silent"&&(Se.validated=!0),x){const{results:$e}=await fe(B?.mode||"validated-only");return $e[U]||{errors:[],valid:!0}}return Se?.validate?Se.validate(B):(!Se&&(ce=B?.warn),Promise.resolve({errors:[],valid:!0}))}function de(U){bh(L.value,U)}function Me(U,B,ce=!1){Ce(U,B),Js(d,U,B),ce&&!e?.initialValues&&Js(V.value,U,ot(B))}function Ce(U,B,ce=!1){Js(L.value,U,ot(B)),ce&&Js(V.value,U,ot(B))}async function Oe(){const U=T(x);if(!U)return{valid:!0,results:{},errors:{},source:"none"};o.value=!0;const B=co(U)||ks(U)?await IO(U,d):await qO(U,d,{names:C.value,bailsMap:A.value});return o.value=!1,B}const Qe=Ie((U,{evt:B})=>{cv(B)&&B.target.submit()});Bt(()=>{if(e?.initialErrors&&E(e.initialErrors),e?.initialTouched&&re(e.initialTouched),e?.validateOnMount){me();return}Q.validateSchema&&Q.validateSchema("silent")}),ht(x)&&Ye(x,()=>{var U;(U=Q.validateSchema)===null||U===void 0||U.call(Q,"validated-only")}),si(Wo,Q);function He(U,B){const ce=Rt(B)?void 0:B?.label,Se=G(Fe(U))||F(U,{label:ce}),$e=()=>Rt(B)?B(Oa(Se,Na)):B||{};function Le(){var mt;Se.touched=!0,((mt=$e().validateOnBlur)!==null&&mt!==void 0?mt:Zn().validateOnBlur)&&Y(Fe(Se.path))}function Pe(){var mt;((mt=$e().validateOnInput)!==null&&mt!==void 0?mt:Zn().validateOnInput)&&kt(()=>{Y(Fe(Se.path))})}function ct(){var mt;((mt=$e().validateOnChange)!==null&&mt!==void 0?mt:Zn().validateOnChange)&&kt(()=>{Y(Fe(Se.path))})}const pt=b(()=>{const mt={onChange:ct,onInput:Pe,onBlur:Le};return Rt(B)?Object.assign(Object.assign({},mt),B(Oa(Se,Na)).props||{}):B?.props?Object.assign(Object.assign({},mt),B.props(Oa(Se,Na))):mt});return[J(U,()=>{var mt,xt,qt;return(qt=(mt=$e().validateOnModelUpdate)!==null&&mt!==void 0?mt:(xt=Zn())===null||xt===void 0?void 0:xt.validateOnModelUpdate)!==null&&qt!==void 0?qt:!0}),pt]}function st(U){return Array.isArray(U)?U.map(B=>J(B,!0)):J(U)}function et(U,B){const[ce,Se]=He(U,B);function $e(){Se.value.onBlur()}function Le(ct){const pt=fo(ct);K(Fe(U),pt,!1),Se.value.onInput()}function Pe(ct){const pt=fo(ct);K(Fe(U),pt,!1),Se.value.onChange()}return b(()=>Object.assign(Object.assign({},Se.value),{onBlur:$e,onInput:Le,onChange:Pe,value:ce.value}))}function _t(U,B){const[ce,Se]=He(U,B),$e=G(Fe(U));function Le(Pe){ce.value=Pe}return b(()=>{const Pe=Rt(B)?B(Oa($e,Na)):B||{};return Object.assign({[Pe.model||"modelValue"]:ce.value,[`onUpdate:${Pe.model||"modelValue"}`]:Le},Se.value)})}const Ct=Object.assign(Object.assign({},Q),{values:Vi(d),handleReset:()=>pe(),submitForm:Qe});return si(pO,Ct),Ct}function ZO(e,t,s,n){const i={touched:"some",pending:"some",valid:"every"},r=b(()=>!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](m=>m[c]),d},{})}const l=As(o());return At(()=>{const u=o();l.touched=u.touched,l.valid=u.valid,l.pending=u.pending}),b(()=>Object.assign(Object.assign({initialValues:T(s)},l),{valid:l.valid&&!ls(n.value).length,dirty:r.value}))}function JO(e,t,s){const n=bv(s),i=be(n),r=be(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));Js(t,Fe(d.path),ot(h))})}return{initialValues:i,originalInitialValues:r,setInitialValues:o}}function XO(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}const eN=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:m,validateField:p,handleReset:v,resetForm:E,handleSubmit:_,setErrors:S,setFieldError:C,setFieldValue:A,setValues:g,setFieldTouched:$,setTouched:L,resetField:V}=Yo({validationSchema:s.value?s:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:n,name:e.name}),I=_((ie,{evt:G})=>{cv(G)&&G.target.submit()},e.onInvalidSubmit),w=e.onSubmit?_(e.onSubmit,e.onInvalidSubmit):I;function O(ie){Oc(ie)&&ie.preventDefault(),v(),typeof t.attrs.onReset=="function"&&t.attrs.onReset()}function x(ie,G){return _(typeof ie=="function"&&!G?ie:G,e.onInvalidSubmit)(ie)}function F(){return ot(o)}function H(){return ot(l.value)}function z(){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:m,validateField:p,handleSubmit:x,handleReset:v,submitForm:I,setErrors:S,setFieldError:C,setFieldValue:A,setValues:g,setFieldTouched:$,setTouched:L,resetForm:E,resetField:V,getValues:F,getMeta:H,getErrors:z}}return t.expose({setFieldError:C,setErrors:S,setFieldValue:A,setValues:g,setFieldTouched:$,setTouched:L,resetForm:E,validate:m,validateField:p,resetField:V,getValues:F,getMeta:H,getErrors:z,values:o,meta:l,errors:i}),function(){const G=e.as==="form"?e.as:e.as?Mo(e.as):null,X=Nc(G,t,fe);return G?oi(G,Object.assign(Object.assign(Object.assign({},G==="form"?{novalidate:!0}:{}),t.attrs),{onSubmit:w,onReset:O}),X):X}}}),yv=eN,tN=Ue({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,t){const s=Yt(Wo,void 0),n=b(()=>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=Nc(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=tN;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 Ah;(function(e){e.mergeShapes=(t,s)=>({...t,...s})})(Ah||(Ah={}));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 sN=ku;function nN(){return sN}const iN=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=nN(),n=iN({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"}),wr=e=>({status:"dirty",value:e}),xs=e=>({status:"valid",value:e}),Sh=e=>e.status==="aborted",xh=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 $h=(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 $h(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 $h(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 mo.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 $N({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 kc.create(this,t)}readonly(){return Mu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const rN=/^c[^\s-]{8,}$/i,aN=/^[0-9a-z]+$/,oN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,lN=/^[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,uN=/^[a-z0-9_-]{21}$/i,cN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,dN=/^[-+]?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)?)??$/,fN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,hN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ml;const pN=/^(?:(?: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])$/,mN=/^(?:(?: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])$/,gN=/^(([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]))$/,vN=/^(([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])$/,bN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,_v="((\\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])))",_N=new RegExp(`^${_v}$`);function Ev(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 EN(e){return new RegExp(`^${Ev(e)}$`)}function wN(e){let t=`${_v}T${Ev(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 CN(e,t){return!!((t==="v4"||!t)&&pN.test(e)||(t==="v6"||!t)&&gN.test(e))}function AN(e,t){if(!cN.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 SN(e,t){return!!((t==="v4"||!t)&&mN.test(e)||(t==="v6"||!t)&&vN.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")fN.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")Ml||(Ml=new RegExp(hN,"u")),Ml.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")lN.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")uN.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")rN.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")aN.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")oN.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"?wN(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"?_N.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{code:ge.invalid_string,validation:"date",message:r.message}),n.dirty()):r.kind==="time"?EN(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"?dN.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"duration",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="ip"?CN(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"?AN(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"?SN(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"?bN.test(t.data)||(i=this._getOrReturnCtx(t,i),xe(i,{validation:"base64",code:ge.invalid_string,message:r.message}),n.dirty()):r.kind==="base64url"?yN.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 xN(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"?xN(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 Th 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)}}Th.create=e=>new Th({typeName:Be.ZodBoolean,coerce:e?.coerce||!1,...Ze(e)});class po 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 po({...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}}po.create=e=>new po({checks:[],coerce:e?.coerce||!1,typeName:Be.ZodDate,...Ze(e)});class Oh 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)}}Oh.create=e=>new Oh({typeName:Be.ZodSymbol,...Ze(e)});class Nh 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)}}Nh.create=e=>new Nh({typeName:Be.ZodUndefined,...Ze(e)});class kh 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)}}kh.create=e=>new kh({typeName:Be.ZodNull,...Ze(e)});class Ph extends it{constructor(){super(...arguments),this._any=!0}_parse(t){return xs(t.data)}}Ph.create=e=>new Ph({typeName:Be.ZodAny,...Ze(e)});class Dh extends it{constructor(){super(...arguments),this._unknown=!0}_parse(t){return xs(t.data)}}Dh.create=e=>new Dh({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 Rh 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)}}Rh.create=e=>new Rh({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,m=await c.value;d.push({key:h,value:m,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 wv(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 mo 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}}mo.create=(e,t)=>new mo({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(Sh(r)||Sh(o))return Ke;const l=Pu(r.value,o.value);return l.valid?((xh(r)||xh(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 Mh 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}}}}Mh.create=(e,t,s)=>new Mh({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 Ih 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})}}Ih.create=(e,t)=>new Ih({getter:e,typeName:Be.ZodLazy,...Ze(t)});class qh 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}}qh.create=(e,t)=>new qh({value:e,typeName:Be.ZodLiteral,...Ze(t)});function wv(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=wv;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"?wr(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"?wr(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 Lh 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}}}Lh.create=e=>new Lh({typeName:Be.ZodNaN,...Ze(e)});class $N 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 kc 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(),wr(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 kc({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,Fh=Gi.create;Nn.create;Us.create;const Pc=Et.create;mo.create;go.create;fi.create;Wi.create;const Vh=Du.create;vo.create;xn.create;Yi.create;/**
40
- * vee-validate v4.15.1
41
- * (c) 2025 Abdelrahman Awad
42
- * @license MIT
43
- */const Qh=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function Cv(e){return Number(e)>=0}function TN(e){return typeof e=="object"&&e!==null}function ON(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function jh(e){if(!TN(e)||ON(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 Av(e,t){return Object.keys(t).forEach(s=>{if(jh(t[s])&&jh(e[s])){e[s]||(e[s]={}),Av(e[s],t[s]);return}e[s]=t[s]}),e}function NN(e){const t=e.split(".");if(!t.length)return"";let s=String(t[0]);for(let n=1;n<t.length;n++){if(Cv(t[n])){s+=`[${t[n]}]`;continue}s+=`.${t[n]}`}return s}function Dc(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 Sv(i.error.issues,r),{errors:Object.values(r)}},cast(n){try{return e.parse(n)}catch{const r=xv(e);return Qh(r)&&Qh(n)?Av(r,n):n}},describe(n){try{if(!n)return{required:!e.isOptional(),exists:!0};const i=kN(n,e);return i?{required:!i.isOptional(),exists:!0}:{required:!1,exists:!1}}catch{return{required:!1,exists:!1}}}}}function Sv(e,t){e.forEach(s=>{const n=NN(s.path.join("."));s.code==="invalid_union"&&(Sv(s.unionErrors.flatMap(i=>i.issues),t),!n)||(t[n]||(t[n]={errors:[],path:n}),t[n].errors.push(s.message))})}function xv(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,xv(s)]:[t,void 0]))}function kN(e,t){if(!Bh(t))return null;if(aa(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(Bh(n)){n=n.shape[r]||null;continue}Cv(r)&&PN(n)&&(n=n._def.type)}return null}function $v(e){return e._def.typeName}function PN(e){return $v(e)===Be.ZodArray}function Bh(e){return $v(e)===Be.ZodObject}function Uh(e){return!e||!e.length?!1:!e.toLowerCase().replace(/(?:[a-z][a-z0-9]?)+(?:[-_.]?[a-z0-9])*/g,"").length}function DN(e){const t=Pc({name:yo().min(1,"Queue name is required").max(100,"Queue name must be less than 100 characters").refine(Uh,{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(Uh,{message:"Namespace must start with a letter and contain only letters, numbers, and single separators (-, _, .). It cannot end with a separator."}),type:Vh(Ht,{errorMap:()=>({message:"Please select a valid queue type"})}),deliveryModel:Vh(us,{errorMap:()=>({message:"Please select a valid delivery model"})})}),s=Dc(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}=Yo({validationSchema:s,initialValues:i});return{errors:r,values:o,meta:l,resetForm:u,resetFormWithValues:p=>{const v=p?{...n,...p}:i;u({values:v})},handleSubmit:d,setFieldValue:c,setValues:h,initialValues:i,defaultInitialValues:n,validationSchema:s}}function RN(e){const t=tO({mutation:{onSuccess:async()=>{await e()}}}),s=b(()=>t.isPending.value),n=b(()=>t.error.value?.error);return{createQueue:t.mutateAsync,isCreatingQueue:s,createQueueError:n,createQueueMutation:t}}const MN={class:"form-content"},IN={class:"form-section"},qN={class:"form-grid"},LN={class:"form-group"},FN={class:"form-group"},VN={class:"form-section"},QN={class:"form-grid"},jN={class:"form-group"},BN=["value"],UN=["value"],KN=["value"],HN={class:"form-group"},GN=["value"],WN=["value"],zN={key:0,class:"error-section"},YN={class:"error-content"},ZN={class:"error-text"},JN={class:"error-message"},XN=["disabled"],ek=Ue({__name:"CreateQueueModal",props:{isVisible:{type:Boolean},namespace:{}},emits:["close","created"],setup(e,{emit:t}){const s={mounted:A=>A.focus()},n=e,i=t,{errors:r,resetForm:o,initialValues:l,validationSchema:u}=DN({ns:n.namespace}),{meta:d,handleSubmit:c}=Yo({initialValues:l,validationSchema:u}),h=be(null),{createQueue:m,isCreatingQueue:p,createQueueError:v,createQueueMutation:E}=RN(async()=>{h.value&&i("created",h.value),o(),h.value=null,i("close")}),_=b(()=>{if(!v.value)return"";const A=dt(v.value);return typeof A=="string"?A:A?.message??"Failed to create queue"});Ye(()=>n.isVisible,A=>{A||(o(),h.value=null,E.reset())});const S=c(async A=>{const g=A;h.value=g;const $={queue:{ns:g.ns,name:g.name},queueType:g.type,queueDeliveryModel:g.deliveryModel};await m({data:$})});function C(){i("close")}return(A,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:C},{body:qe(()=>[a("form",{onSubmit:g[0]||(g[0]=Ft((...$)=>T(S)&&T(S)(...$),["prevent"]))},[a("div",MN,[a("section",IN,[g[6]||(g[6]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-info-circle-fill section-icon"}),te(" Basic Information ")]),a("p",{class:"section-description"}," Define the queue name and namespace ")],-1)),a("div",qN,[a("div",LN,[g[2]||(g[2]=a("label",{for:"name",class:"form-label"},[a("i",{class:"bi bi-tag-fill label-icon"}),te(" Queue Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(we(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]]),we(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"}),te(" Use letters, numbers, underscores, and hyphens only ")],-1))]),a("div",FN,[g[4]||(g[4]=a("label",{for:"ns",class:"form-label"},[a("i",{class:"bi bi-folder-fill label-icon"}),te(" Namespace "),a("span",{class:"required-indicator"},"*")],-1)),we(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"]),we(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"}),te(" Organize queues by environment or application ")],-1))])])]),a("section",VN,[g[13]||(g[13]=a("div",{class:"section-header"},[a("h3",{class:"section-title"},[a("i",{class:"bi bi-gear-fill section-icon"}),te(" Queue Configuration ")]),a("p",{class:"section-description"}," Choose how messages are processed and delivered ")],-1)),a("div",QN,[a("div",jN,[g[8]||(g[8]=a("label",{for:"type",class:"form-label"},[a("i",{class:"bi bi-list-ol label-icon"}),te(" Queue Type "),a("span",{class:"required-indicator"},"*")],-1)),we(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,BN),a("option",{value:T(Ht).LIFO_QUEUE},"LIFO Queue",8,UN),a("option",{value:T(Ht).PRIORITY_QUEUE}," Priority Queue ",8,KN)]),_:1},8,["class"]),we(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:"),te(" First message in, first message out ")]),a("div",{class:"help-option"},[a("strong",null,"LIFO:"),te(" Last message in, first message out ")]),a("div",{class:"help-option"},[a("strong",null,"Priority:"),te(" Higher priority messages processed first ")])])],-1))]),a("div",HN,[g[11]||(g[11]=a("label",{for:"deliveryModel",class:"form-label"},[a("i",{class:"bi bi-arrow-left-right label-icon"}),te(" Delivery Model "),a("span",{class:"required-indicator"},"*")],-1)),we(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,GN),a("option",{value:T(us).PUB_SUB}," Publish/Subscribe ",8,WN)]),_:1},8,["class"]),we(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:"),te(" One-to-one message delivery ")]),a("div",{class:"help-option"},[a("strong",null,"Pub/Sub:"),te(" One-to-many message broadcasting ")])])],-1))])])]),T(v)?(N(),P("div",zN,[a("div",YN,[g[15]||(g[15]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",ZN,[g[14]||(g[14]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",JN,q(_.value),1)])])])):he("",!0)])],32)]),footer:qe(()=>[a("button",{type:"button",class:"btn btn-secondary",onClick:C},[...g[16]||(g[16]=[a("i",{class:"bi bi-x-circle me-2"},null,-1),te(" Cancel ",-1)])]),a("button",{type:"submit",class:"btn btn-primary",disabled:T(p)||!T(d).valid,onClick:g[1]||(g[1]=(...$)=>T(S)&&T(S)(...$))},[T(p)?(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]=te(" 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]=te(" Create Queue ",-1))],64))],8,XN)]),_:1},8,["is-visible"]))}}),Tv=Xe(ek,[["__scopeId","data-v-aeb7b34f"]]),tk={class:"home-page"},sk={class:"hero-section"},nk={class:"hero-content"},ik={class:"hero-text"},rk={class:"hero-stats"},ak={class:"stat-item"},ok={class:"stat-value"},lk={class:"stat-item"},uk={class:"stat-value"},ck={class:"stat-item"},dk={class:"stat-value"},fk={class:"hero-actions"},hk={class:"dashboard-main"},pk={key:0,class:"loading-section"},mk={key:1,class:"dashboard-content"},gk={class:"actions-section"},vk={class:"actions-grid"},bk=["onClick"],yk={class:"action-icon"},_k={class:"action-content"},Ek={class:"action-title"},wk={class:"action-description"},Ck={class:"getting-started-section"},Ak={class:"getting-started-card"},Sk={class:"getting-started-content"},xk={class:"getting-started-actions"},$k=Ue({__name:"HomeView",setup(e){const t=os(),s=fn(),n=be(!1),i=be({totalQueues:0,totalMessages:0,currentlyInProcess:0,pendingMessages:0,activeConsumers:0,lastUpdated:new Date}),r=[{title:"Create Queue",description:"Set up a new message queue",icon:"bi-plus-circle-fill",color:"info",action:()=>{n.value=!0}},{title:"Set up Exchange",description:"Bind your queue to an exchange",icon:"bi-diagram-3",color:"info",action:()=>t.push({name:"Exchanges"})},{title:"View Queues",description:"Manage existing queues",icon:"bi-list-ul",color:"info",action:()=>t.push({name:"Queues"})},{title:"Documentation",description:"Learn more about RedisSMQ",icon:"bi-book-fill",color:"info",action:()=>window.open("https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq/docs/README.md","_blank")}],o=be(!0),l=b(()=>({totalQueues:i.value.totalQueues.toLocaleString(),totalMessages:i.value.totalMessages.toLocaleString(),pendingMessages:i.value.pendingMessages.toLocaleString(),currentlyInProcess:i.value.currentlyInProcess.toLocaleString(),activeConsumers:i.value.activeConsumers.toLocaleString()})),u=async()=>{try{o.value=!0;const c=(await s.fetchQuery({queryKey:nv(),queryFn:()=>sv()})).data;if(!c||c.length===0){Object.assign(i.value,{totalQueues:0,totalMessages:0,pendingMessages:0,currentlyInProcess:0,activeConsumers:0,lastUpdated:new Date});return}const h=c.map(async v=>{const E=s.fetchQuery({queryKey:rv(v.ns,v.name),queryFn:()=>iv(v.ns,v.name)}),_=s.fetchQuery({queryKey:ov(v.ns,v.name),queryFn:()=>av(v.ns,v.name)}),[S,C]=await Promise.all([E,_]),A=S.data,g=C.data??{};return{details:A,consumers:g}}),p=(await Promise.all(h)).reduce((v,E)=>(E.details&&(v.totalMessages+=E.details.messagesCount??0,v.pendingMessages+=E.details.pendingMessagesCount??0,v.currentlyInProcess+=E.details.processingMessagesCount??0),E.consumers&&(v.activeConsumers+=Object.keys(E.consumers).length),v),{totalMessages:0,pendingMessages:0,currentlyInProcess:0,activeConsumers:0});i.value={...p,totalQueues:c.length,lastUpdated:new Date}}catch(d){console.error("Failed to load dashboard data:",d)}finally{o.value=!1}};return Bt(()=>{u()}),(d,c)=>(N(),P("div",tk,[a("section",sk,[a("div",nk,[a("div",ik,[c[6]||(c[6]=a("h1",{class:"hero-title"},[a("span",{class:"hero-icon"},"🚀"),te(" Welcome to RedisSMQ ")],-1)),c[7]||(c[7]=a("p",{class:"hero-subtitle"}," Powerful Redis-based message queue management made simple ",-1)),a("div",rk,[a("div",ak,[a("span",ok,q(l.value.totalQueues),1),c[3]||(c[3]=a("span",{class:"stat-label"},"Active Queues",-1))]),a("div",lk,[a("span",uk,q(l.value.totalMessages),1),c[4]||(c[4]=a("span",{class:"stat-label"},"Messages Processed",-1))]),a("div",ck,[a("span",dk,q(l.value.activeConsumers),1),c[5]||(c[5]=a("span",{class:"stat-label"},"Active Consumers",-1))])])]),a("div",fk,[a("button",{class:"btn btn-primary btn-lg hero-btn",onClick:c[0]||(c[0]=h=>T(t).push({name:"Queues"}))},[...c[8]||(c[8]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),te(" Get Started ",-1)])])])])]),a("main",hk,[o.value?(N(),P("div",pk,[...c[9]||(c[9]=[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",mk,[a("section",gk,[c[11]||(c[11]=a("div",{class:"section-header"},[a("h2",{class:"section-title"},[a("i",{class:"bi bi-lightning-fill me-2"}),te(" Quick Actions ")])],-1)),a("div",vk,[(N(),P(Ae,null,bt(r,h=>a("div",{key:h.title,class:De(["action-card",`action-${h.color}`]),onClick:h.action},[a("div",yk,[a("i",{class:De(h.icon)},null,2)]),a("div",_k,[a("h3",Ek,q(h.title),1),a("p",wk,q(h.description),1)]),c[10]||(c[10]=a("div",{class:"action-arrow"},[a("i",{class:"bi bi-arrow-right"})],-1))],10,bk)),64))])]),a("section",Ck,[a("div",Ak,[a("div",Sk,[c[14]||(c[14]=ai('<h2 class="getting-started-title" data-v-61ad89e8><i class="bi bi-rocket-takeoff me-2" data-v-61ad89e8></i> Getting Started </h2><p class="getting-started-description" data-v-61ad89e8> 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-61ad89e8><div class="step-item" data-v-61ad89e8><div class="step-number" data-v-61ad89e8>1</div><div class="step-content" data-v-61ad89e8><h4 class="step-title" data-v-61ad89e8>Create a Queue</h4><p class="step-description" data-v-61ad89e8> Create a new queue to hold your messages. </p></div></div><div class="step-item" data-v-61ad89e8><div class="step-number" data-v-61ad89e8>2</div><div class="step-content" data-v-61ad89e8><h4 class="step-title" data-v-61ad89e8>Publish a Message</h4><p class="step-description" data-v-61ad89e8> Send messages directly to your queue or publish them through an exchange. </p></div></div><div class="step-item" data-v-61ad89e8><div class="step-number" data-v-61ad89e8>3</div><div class="step-content" data-v-61ad89e8><h4 class="step-title" data-v-61ad89e8>Consume Messages</h4><p class="step-description" data-v-61ad89e8> Build a consumer in your application to process messages from the queue. </p></div></div><div class="step-item" data-v-61ad89e8><div class="step-number" data-v-61ad89e8>4</div><div class="step-content" data-v-61ad89e8><h4 class="step-title" data-v-61ad89e8>Monitor &amp; Manage</h4><p class="step-description" data-v-61ad89e8> Use the Web UI to monitor your queues, exchanges, and messages in real-time. </p></div></div></div>',3)),a("div",xk,[i.value.totalQueues===0?(N(),P("button",{key:0,class:"btn btn-primary",onClick:c[1]||(c[1]=h=>n.value=!0)},[...c[12]||(c[12]=[a("i",{class:"bi bi-plus-circle me-2"},null,-1),te(" Create Your First Queue ",-1)])])):he("",!0),c[13]||(c[13]=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"}),te(" Read Documentation ")],-1))])])])])]))]),we(Tv,{"is-visible":n.value,onClose:c[2]||(c[2]=h=>n.value=!1),onCreated:u},null,8,["is-visible"])]))}}),Tk=Xe($k,[["__scopeId","data-v-61ad89e8"]]),Ba=[{path:"/",name:"Home",component:Tk,meta:{title:"Home"}},{path:"/ns",name:"Namespaces",component:()=>Pf(()=>Promise.resolve().then(()=>pL),void 0,import.meta.url),meta:{title:"Namespace Management",breadcrumbs:"Namespaces"}},{path:"/queues",name:"Queues",component:()=>Pf(()=>import("./QueuesView-DLQWQwCh.js"),__vite__mapDeps([0,1]),import.meta.url),meta:{title:"Queue Management",breadcrumbs:"Queues"}},{path:"/exchanges",name:"Exchanges",component:YT}],Ov=6e4,Nv=36e5,ka=43200,Kh=1440,Hh=Symbol.for("constructDateFrom");function Zo(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Hh in e?e[Hh](t):e instanceof Date?new e.constructor(t):new Date(t)}function Hs(e,t){return Zo(e,e)}let Ok={};function Nk(){return Ok}function Gh(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 Rc(e,...t){const s=Zo.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 kk(e){return Zo(e,Date.now())}function Pk(e,t,s){const[n,i]=Rc(s?.in,e,t),r=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return r*12+o}function Dk(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Rk(e,t){return+Hs(e)-+Hs(t)}function Mk(e,t){const s=Hs(e);return s.setHours(23,59,59,999),s}function Ik(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 qk(e,t){const s=Hs(e);return+Mk(s)==+Ik(s)}function Lk(e,t,s){const[n,i,r]=Rc(s?.in,e,e,t),o=Ua(i,r),l=Math.abs(Pk(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;qk(n)&&l===1&&Ua(n,r)===1&&(u=!1);const d=o*(l-+u);return d===0?0:d}function Fk(e,t,s){const n=Rk(e,t)/1e3;return Dk(s?.roundingMethod)(n)}const Vk={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"}},Qk=(e,t,s)=>{let n;const i=Vk[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 Il(e){return(t={})=>{const s=t.width?String(t.width):e.defaultWidth;return e.formats[s]||e.formats[e.defaultWidth]}}const jk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Bk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Uk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kk={date:Il({formats:jk,defaultWidth:"full"}),time:Il({formats:Bk,defaultWidth:"full"}),dateTime:Il({formats:Uk,defaultWidth:"full"})},Hk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gk=(e,t,s,n)=>Hk[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 Wk={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zk={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yk={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"]},Zk={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"]},Jk={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"}},Xk={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"}},eP=(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"},tP={ordinalNumber:eP,era:gr({values:Wk,defaultWidth:"wide"}),quarter:gr({values:zk,defaultWidth:"wide",argumentCallback:e=>e-1}),month:gr({values:Yk,defaultWidth:"wide"}),day:gr({values:Zk,defaultWidth:"wide"}),dayPeriod:gr({values:Jk,defaultWidth:"wide",formattingValues:Xk,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)?nP(l,h=>h.test(o)):sP(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 sP(e,t){for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t(e[s]))return s}function nP(e,t){for(let s=0;s<e.length;s++)if(t(e[s]))return s}function iP(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 rP=/^(\d+)(th|st|nd|rd)?/i,aP=/\d+/i,oP={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},lP={any:[/^b/i,/^(a|c)/i]},uP={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cP={any:[/1/i,/2/i,/3/i,/4/i]},dP={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},fP={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]},hP={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},pP={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]},mP={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},gP={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}},vP={ordinalNumber:iP({matchPattern:rP,parsePattern:aP,valueCallback:e=>parseInt(e,10)}),era:vr({matchPatterns:oP,defaultMatchWidth:"wide",parsePatterns:lP,defaultParseWidth:"any"}),quarter:vr({matchPatterns:uP,defaultMatchWidth:"wide",parsePatterns:cP,defaultParseWidth:"any",valueCallback:e=>e+1}),month:vr({matchPatterns:dP,defaultMatchWidth:"wide",parsePatterns:fP,defaultParseWidth:"any"}),day:vr({matchPatterns:hP,defaultMatchWidth:"wide",parsePatterns:pP,defaultParseWidth:"any"}),dayPeriod:vr({matchPatterns:mP,defaultMatchWidth:"any",parsePatterns:gP,defaultParseWidth:"any"})},bP={code:"en-US",formatDistance:Qk,formatLong:Kk,formatRelative:Gk,localize:tP,match:vP,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yP(e,t,s){const n=Nk(),i=s?.locale??n.locale??bP,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]=Rc(s?.in,...o>0?[t,e]:[e,t]),c=Fk(d,u),h=(Gh(d)-Gh(u))/1e3,m=Math.round((c-h)/60);let p;if(m<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):m===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",m,l);if(m<45)return i.formatDistance("xMinutes",m,l);if(m<90)return i.formatDistance("aboutXHours",1,l);if(m<Kh){const v=Math.round(m/60);return i.formatDistance("aboutXHours",v,l)}else{if(m<r)return i.formatDistance("xDays",1,l);if(m<ka){const v=Math.round(m/Kh);return i.formatDistance("xDays",v,l)}else if(m<ka*2)return p=Math.round(m/ka),i.formatDistance("aboutXMonths",p,l)}if(p=Lk(d,u),p<12){const v=Math.round(m/ka);return i.formatDistance("xMonths",v,l)}else{const v=p%12,E=Math.trunc(p/12);return v<3?i.formatDistance("aboutXYears",E,l):v<9?i.formatDistance("overXYears",E,l):i.formatDistance("almostXYears",E+1,l)}}function Xs(e,t){return yP(e,kk(e),t)}function _P(e,t){const s=()=>Zo(t?.in,NaN),i=AP(e);let r;if(i.date){const d=SP(i.date,2);r=xP(d.restDateString,d.year)}if(!r||isNaN(+r))return s();const o=+r;let l=0,u;if(i.time&&(l=$P(i.time),isNaN(l)))return s();if(i.timezone){if(u=TP(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 Pa={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},EP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,wP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,CP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function AP(e){const t={},s=e.split(Pa.dateTimeDelimiter);let n;if(s.length>2)return t;if(/:/.test(s[0])?n=s[0]:(t.date=s[0],n=s[1],Pa.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Pa.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const i=Pa.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function SP(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 xP(e,t){if(t===null)return new Date(NaN);const s=e.match(EP);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 DP(t,l,u)?OP(t,l,u):new Date(NaN);{const d=new Date(0);return!kP(t,r,o)||!PP(t,i)?new Date(NaN):(d.setUTCFullYear(t,r,Math.max(i,o)),d)}}function br(e){return e?parseInt(e):1}function $P(e){const t=e.match(wP);if(!t)return NaN;const s=ql(t[1]),n=ql(t[2]),i=ql(t[3]);return RP(s,n,i)?s*Nv+n*Ov+i*1e3:NaN}function ql(e){return e&&parseFloat(e.replace(",","."))||0}function TP(e){if(e==="Z")return 0;const t=e.match(CP);if(!t)return 0;const s=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return MP(n,i)?s*(n*Nv+i*Ov):NaN}function OP(e,t,s){const n=new Date(0);n.setUTCFullYear(e,0,4);const i=n.getUTCDay()||7,r=(t-1)*7+s+1-i;return n.setUTCDate(n.getUTCDate()+r),n}const NP=[31,null,31,30,31,30,31,31,30,31,30,31];function kv(e){return e%400===0||e%4===0&&e%100!==0}function kP(e,t,s){return t>=0&&t<=11&&s>=1&&s<=(NP[t]||(kv(e)?29:28))}function PP(e,t){return t>=1&&t<=(kv(e)?366:365)}function DP(e,t,s){return t>=1&&t<=53&&s>=0&&s<=6}function RP(e,t,s){return e===24?t===0&&s===0:s>=0&&s<60&&t>=0&&t<60&&e>=0&&e<25}function MP(e,t){return t>=0&&t<=59}function Wh(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 Mc(e){if(!e)return"N/A";try{const t=typeof e=="string"?_P(e):new Date(e);return`${t.toLocaleString()} (${Xs(t,{addSuffix:!0})})`}catch{return"Invalid Date"}}const IP={class:"dialog-body"},qP={class:"confirmation-message"},LP={key:0,class:"message-preview"},FP={class:"actions"},VP=["disabled"],QP=["disabled"],jP={key:0,class:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"},BP=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=b(()=>{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=b(()=>{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",IP,[a("p",qP,q(e.message),1),u.$slots["message-preview"]?(N(),P("div",LP,[Pi(u.$slots,"message-preview",{},void 0,!0)])):he("",!0)])]),footer:qe(()=>[a("div",FP,[a("button",{class:"btn btn-outline-secondary",type:"button",disabled:e.isLoading,onClick:i}," Cancel ",8,VP),a("button",{class:De(["btn",o.value]),type:"button",disabled:e.isLoading,onClick:r},[e.isLoading?(N(),P("span",jP)):he("",!0),te(" "+q(e.isLoading?"Processing...":e.confirmText),1)],10,QP)])]),_:3},8,["is-visible","title","icon"]))}}),zh=Xe(BP,[["__scopeId","data-v-7963a349"]]),UP={class:"vm-body"},KP={class:"status-bar"},HP={class:"status-info"},GP={class:"text-muted ms-3"},WP={key:0,class:"queue-info"},zP={class:"badge bg-light text-dark"},YP={class:"modal-tabs"},ZP=["disabled"],JP=["disabled"],XP=["disabled"],eD=["disabled"],tD=["disabled"],sD={class:"tab-panels"},nD={key:0,class:"tab-content"},iD={class:"info-grid"},rD={class:"info-section"},aD={class:"info-items"},oD={class:"info-item"},lD={class:"info-item"},uD={class:"info-value"},cD={class:"info-item"},dD={class:"info-value"},fD={class:"info-item"},hD={class:"info-value"},pD={class:"info-section"},mD={class:"info-items"},gD={class:"info-item"},vD={class:"info-value"},bD={class:"info-item"},yD={class:"info-value"},_D={class:"info-item"},ED={class:"info-value"},wD={class:"info-item"},CD={class:"info-value"},AD={class:"info-item"},SD={class:"info-value"},xD={key:0,class:"info-section"},$D={class:"info-items"},TD={class:"info-item"},OD={class:"info-value"},ND={class:"info-item"},kD={class:"info-value"},PD={key:1,class:"info-section"},DD={class:"info-items"},RD={class:"info-item"},MD={class:"info-value"},ID={key:1,class:"tab-content"},qD={class:"body-section"},LD={class:"d-flex justify-content-between align-items-center mb-3"},FD=["disabled"],VD={class:"message-body"},QD={key:2,class:"tab-content"},jD={class:"info-grid"},BD={class:"info-section"},UD={class:"info-items"},KD={class:"info-item"},HD={class:"info-value"},GD={class:"info-item"},WD={class:"info-value"},zD={class:"info-item"},YD={class:"info-value"},ZD={class:"info-item"},JD={class:"info-section"},XD={class:"info-items"},eR={class:"info-item"},tR={class:"info-value"},sR={class:"info-item"},nR={class:"info-value"},iR={class:"info-item"},rR={class:"info-value"},aR={class:"info-item"},oR={class:"info-value"},lR={class:"info-item"},uR={class:"info-value"},cR={class:"info-item"},dR={class:"info-value"},fR={key:3,class:"tab-content"},hR={class:"info-grid"},pR={class:"info-section"},mR={class:"info-items"},gR={class:"info-item"},vR={class:"info-value"},bR={class:"info-item"},yR={class:"info-value"},_R={class:"info-item"},ER={class:"info-value"},wR={class:"info-item"},CR={class:"info-section"},AR={class:"info-items"},SR={class:"info-item"},xR={class:"info-value"},$R={class:"info-item"},TR={class:"info-value"},OR={class:"info-item"},NR={class:"info-value"},kR={class:"info-item"},PR={class:"info-value"},DR={key:0,class:"info-section"},RR={class:"info-items"},MR={class:"info-item"},IR={class:"d-flex align-items-center"},qR={class:"info-value"},LR={key:1,class:"info-section"},FR={class:"info-items"},VR={class:"info-item"},QR={class:"d-flex align-items-center"},jR={class:"info-value"},BR={key:4,class:"timeline-section"},UR={class:"timeline"},KR={class:"timeline-content"},HR={class:"timeline-title"},GR={class:"timeline-time"},WR={class:"footer-info"},zR={class:"text-muted"},YR={class:"footer-actions"},ZR=["disabled"],JR=["disabled"],XR=["disabled"],eM=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=be("overview"),r=be(!1),o=be(!1),l=b(()=>{if(!s.message?.createdAt)return"N/A";const O=new Date(s.message.createdAt);return`${O.toLocaleString()} (${Xs(O,{addSuffix:!0})})`}),u=b(()=>{if(!s.message?.messageState.publishedAt)return"Not published";const O=new Date(s.message.messageState.publishedAt);return`${O.toLocaleString()} (${Xs(O,{addSuffix:!0})})`}),d=b(()=>{if(!s.message?.messageState.scheduledAt)return"Not scheduled";const O=new Date(s.message.messageState.scheduledAt);return`${O.toLocaleString()} (${Xs(O,{addSuffix:!0})})`}),c=b(()=>{if(!s.message?.messageState.lastRetriedAttemptAt)return"Never";const O=new Date(s.message.messageState.lastRetriedAttemptAt);return`${O.toLocaleString()} (${Xs(O,{addSuffix:!0})})`}),h=b(()=>{if(!s.message?.messageState.processingStartedAt)return"N/A";const O=new Date(s.message.messageState.processingStartedAt);return`${O.toLocaleString()} (${Xs(O,{addSuffix:!0})})`}),m=b(()=>{if(!s.message?.messageState.acknowledgedAt)return"N/A";const O=new Date(s.message.messageState.acknowledgedAt);return`${O.toLocaleString()} (${Xs(O,{addSuffix:!0})})`}),p=b(()=>{if(!s.message?.messageState.deadLetteredAt)return"N/A";const O=new Date(s.message.messageState.deadLetteredAt);return`${O.toLocaleString()} (${Xs(O,{addSuffix:!0})})`}),v=b(()=>{if(!s.message?.messageState.lastRequeuedAt)return"Never";const O=new Date(s.message.messageState.lastRequeuedAt);return`${O.toLocaleString()} (${Xs(O,{addSuffix:!0})})`}),E=b(()=>{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"}}),_=b(()=>{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"}}),S=b(()=>!s.message?.priority&&s.message?.priority!==0?"Normal":["Highest","Very High","High","Above Normal","Normal","Low","Very Low","Lowest"][s.message.priority]||"Normal"),C=b(()=>{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=b(()=>s.message?.status===6),g=b(()=>s.isDeleting||s.isRequeuing),$=b(()=>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(x=>!!x.timestamp).sort((x,F)=>Number(x.timestamp)-Number(F.timestamp)):[]);function L(){g.value||(n("close"),n("update:show",!1))}function V(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,x)=>(N(),P(Ae,null,[we(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",UP,[a("div",KP,[a("div",HP,[a("span",{class:De(E.value)},q(_.value),3),a("span",GP,[x[12]||(x[12]=a("i",{class:"bi bi-clock me-1"},null,-1)),te(" "+q(l.value),1)])]),e.message?(N(),P("div",WP,[a("span",zP,[x[13]||(x[13]=a("i",{class:"bi bi-collection me-1"},null,-1)),te(" "+q(e.message.destinationQueue.name)+"@"+q(e.message.destinationQueue.ns),1)])])):he("",!0)]),a("div",YP,[a("button",{class:De(["tab-button",{active:i.value==="overview"}]),disabled:g.value,onClick:x[0]||(x[0]=F=>i.value="overview")},[...x[14]||(x[14]=[a("i",{class:"bi bi-info-circle me-1"},null,-1),te(" Overview ",-1)])],10,ZP),a("button",{class:De(["tab-button",{active:i.value==="body"}]),disabled:g.value,onClick:x[1]||(x[1]=F=>i.value="body")},[...x[15]||(x[15]=[a("i",{class:"bi bi-file-text me-1"},null,-1),te(" Message Body ",-1)])],10,JP),a("button",{class:De(["tab-button",{active:i.value==="state"}]),disabled:g.value,onClick:x[2]||(x[2]=F=>i.value="state")},[...x[16]||(x[16]=[a("i",{class:"bi bi-gear me-1"},null,-1),te(" State ",-1)])],10,XP),a("button",{class:De(["tab-button",{active:i.value==="scheduling"}]),disabled:g.value,onClick:x[3]||(x[3]=F=>i.value="scheduling")},[...x[17]||(x[17]=[a("i",{class:"bi bi-calendar me-1"},null,-1),te(" Scheduling ",-1)])],10,eD),a("button",{class:De(["tab-button",{active:i.value==="timeline"}]),disabled:g.value,onClick:x[4]||(x[4]=F=>i.value="timeline")},[...x[18]||(x[18]=[a("i",{class:"bi bi-clock-history me-2"},null,-1),te(" Timeline ",-1)])],10,tD)]),a("div",sD,[i.value==="overview"?(N(),P("div",nD,[a("div",iD,[a("div",rD,[x[23]||(x[23]=a("h6",{class:"section-title"},"Basic Information",-1)),a("div",aD,[a("div",oD,[x[19]||(x[19]=a("span",{class:"info-label"},"Status:",-1)),a("span",{class:De(E.value)},q(_.value),3)]),a("div",lD,[x[20]||(x[20]=a("span",{class:"info-label"},"Priority:",-1)),a("span",uD,q(S.value),1)]),a("div",cD,[x[21]||(x[21]=a("span",{class:"info-label"},"TTL:",-1)),a("span",dD,q(e.message.ttl)+"ms",1)]),a("div",fD,[x[22]||(x[22]=a("span",{class:"info-label"},"Consumer Group:",-1)),a("span",hD,q(e.message.consumerGroupId||"None"),1)])])]),a("div",pD,[x[29]||(x[29]=a("h6",{class:"section-title"},"Retry Configuration",-1)),a("div",mD,[a("div",gD,[x[24]||(x[24]=a("span",{class:"info-label"},"Retry Threshold:",-1)),a("span",vD,q(e.message.retryThreshold),1)]),a("div",bD,[x[25]||(x[25]=a("span",{class:"info-label"},"Retry Delay:",-1)),a("span",yD,q(e.message.retryDelay)+"ms",1)]),a("div",_D,[x[26]||(x[26]=a("span",{class:"info-label"},"Consume Timeout:",-1)),a("span",ED,q(e.message.consumeTimeout)+"ms",1)]),a("div",wD,[x[27]||(x[27]=a("span",{class:"info-label"},"Current Attempts:",-1)),a("span",CD,q(e.message.messageState.attempts),1)]),a("div",AD,[x[28]||(x[28]=a("span",{class:"info-label"},"Requeue Count:",-1)),a("span",SD,q(e.message.messageState.requeueCount),1)])])]),e.message?.exchange?(N(),P("div",xD,[x[32]||(x[32]=a("h6",{class:"section-title"},"Exchange Information",-1)),a("div",$D,[a("div",TD,[x[30]||(x[30]=a("span",{class:"info-label"},"Exchange Params:",-1)),a("span",OD,q(e.message.exchange.name)+"@"+q(e.message.exchange.ns),1)]),a("div",ND,[x[31]||(x[31]=a("span",{class:"info-label"},"Type:",-1)),a("span",kD,q(T(Te)[e.message.exchange.type]),1)])])])):he("",!0),e.message?.queue?(N(),P("div",PD,[x[34]||(x[34]=a("h6",{class:"section-title"},"Queue Information",-1)),a("div",DD,[a("div",RD,[x[33]||(x[33]=a("span",{class:"info-label"},"Queue Params:",-1)),a("span",MD,q(e.message.queue.name)+"@"+q(e.message.queue.ns),1)])])])):he("",!0)])])):he("",!0),i.value==="body"?(N(),P("div",ID,[a("div",qD,[a("div",LD,[x[36]||(x[36]=a("h6",{class:"section-title mb-0"},"Message Body",-1)),a("button",{class:"btn btn-sm btn-outline-primary",disabled:g.value,onClick:x[5]||(x[5]=F=>V(C.value))},[...x[35]||(x[35]=[a("i",{class:"bi bi-clipboard me-1"},null,-1),te(" Copy ",-1)])],8,FD)]),a("pre",VD,[a("code",null,q(C.value),1)])])])):he("",!0),i.value==="state"?(N(),P("div",QD,[a("div",jD,[a("div",BD,[x[41]||(x[41]=a("h6",{class:"section-title"},"Message State",-1)),a("div",UD,[a("div",KD,[x[37]||(x[37]=a("span",{class:"info-label"},"UUID:",-1)),a("code",HD,q(e.message.messageState.uuid),1)]),a("div",GD,[x[38]||(x[38]=a("span",{class:"info-label"},"Published At:",-1)),a("span",WD,q(u.value),1)]),a("div",zD,[x[39]||(x[39]=a("span",{class:"info-label"},"Attempts:",-1)),a("span",YD,q(e.message.messageState.attempts),1)]),a("div",ZD,[x[40]||(x[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",JD,[x[48]||(x[48]=a("h6",{class:"section-title"},"Timing Information",-1)),a("div",XD,[a("div",eR,[x[42]||(x[42]=a("span",{class:"info-label"},"Processing Started At:",-1)),a("span",tR,q(h.value),1)]),a("div",sR,[x[43]||(x[43]=a("span",{class:"info-label"},"Acknowledged At:",-1)),a("span",nR,q(m.value),1)]),a("div",iR,[x[44]||(x[44]=a("span",{class:"info-label"},"Last Retried At:",-1)),a("span",rR,q(c.value),1)]),a("div",aR,[x[45]||(x[45]=a("span",{class:"info-label"},"Last Requeued At:",-1)),a("span",oR,q(v.value),1)]),a("div",lR,[x[46]||(x[46]=a("span",{class:"info-label"},"Dead-Lettered At:",-1)),a("span",uR,q(p.value),1)]),a("div",cR,[x[47]||(x[47]=a("span",{class:"info-label"},"Scheduled Times:",-1)),a("span",dR,q(e.message.messageState.scheduledTimes),1)])])])])])):he("",!0),i.value==="scheduling"?(N(),P("div",fR,[a("div",hR,[a("div",pR,[x[53]||(x[53]=a("h6",{class:"section-title"},"Schedule Configuration",-1)),a("div",mR,[a("div",gR,[x[49]||(x[49]=a("span",{class:"info-label"},"Scheduled At:",-1)),a("span",vR,q(d.value),1)]),a("div",bR,[x[50]||(x[50]=a("span",{class:"info-label"},"Scheduled Cron:",-1)),a("span",yR,q(e.message.scheduledCron||"None"),1)]),a("div",_R,[x[51]||(x[51]=a("span",{class:"info-label"},"Scheduled Delay:",-1)),a("span",ER,q(e.message.scheduledDelay?`${e.message.scheduledDelay} ms`:"None"),1)]),a("div",wR,[x[52]||(x[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",CR,[x[58]||(x[58]=a("h6",{class:"section-title"},"Repeat Configuration",-1)),a("div",AR,[a("div",SR,[x[54]||(x[54]=a("span",{class:"info-label"},"Repeat Period:",-1)),a("span",xR,q(e.message.scheduledRepeatPeriod?`${e.message.scheduledRepeatPeriod} ms`:"None"),1)]),a("div",$R,[x[55]||(x[55]=a("span",{class:"info-label"},"Repeat Count:",-1)),a("span",TR,q(e.message.scheduledRepeat),1)]),a("div",OR,[x[56]||(x[56]=a("span",{class:"info-label"},"Current Repeat:",-1)),a("span",NR,q(e.message.messageState.scheduledRepeatCount),1)]),a("div",kR,[x[57]||(x[57]=a("span",{class:"info-label"},"Last Scheduled At:",-1)),a("span",PR,q(e.message.messageState.lastScheduledAt?new Date(e.message.messageState.lastScheduledAt).toLocaleString():"Never"),1)])])]),e.message?.messageState.scheduledMessageParentId?(N(),P("div",DR,[x[61]||(x[61]=a("h6",{class:"section-title"},"Scheduled Message Reference",-1)),a("div",RR,[a("div",MR,[x[60]||(x[60]=a("span",{class:"info-label"},"Scheduled Message Parent ID:",-1)),a("div",IR,[a("code",qR,q(e.message.messageState.scheduledMessageParentId),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy Scheduled Message Parent ID",onClick:x[6]||(x[6]=F=>V(e.message.messageState.scheduledMessageParentId))},[...x[59]||(x[59]=[a("i",{class:"bi bi-clipboard"},null,-1)])])])])])])):he("",!0),e.message?.messageState.requeuedMessageParentId?(N(),P("div",LR,[x[64]||(x[64]=a("h6",{class:"section-title"},"Requeued Message Reference",-1)),a("div",FR,[a("div",VR,[x[63]||(x[63]=a("span",{class:"info-label"},"Requeued Message Parent ID:",-1)),a("div",QR,[a("code",jR,q(e.message.messageState.requeuedMessageParentId),1),a("button",{class:"btn btn-sm btn-outline-secondary ms-2",title:"Copy Requeued Message Parent ID",onClick:x[7]||(x[7]=F=>V(e.message.messageState.requeuedMessageParentId))},[...x[62]||(x[62]=[a("i",{class:"bi bi-clipboard"},null,-1)])])])])])])):he("",!0)])])):he("",!0),i.value==="timeline"?(N(),P("div",BR,[a("ul",UR,[(N(!0),P(Ae,null,bt($.value,F=>(N(),P("li",{key:`${F.type}-${F.timestamp}`,class:"timeline-item"},[a("div",{class:De(["timeline-marker",F.color])},[a("i",{class:De(F.icon)},null,2)],2),a("div",KR,[a("h5",HR,q(F.type),1),a("p",GR,q(T(Mc)(F.timestamp)),1)])]))),128))])])):he("",!0)])])]),footer:qe(()=>[a("div",WR,[a("small",zR,[x[65]||(x[65]=a("i",{class:"bi bi-info-circle me-1"},null,-1)),te(" Message created "+q(l.value),1)])]),a("div",YR,[A.value?(N(),P("button",{key:0,type:"button",class:"btn btn-warning",disabled:g.value,onClick:x[8]||(x[8]=F=>o.value=!0)},[e.isRequeuing?(N(),P(Ae,{key:0},[x[66]||(x[66]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),x[67]||(x[67]=te(" Requeuing... ",-1))],64)):(N(),P(Ae,{key:1},[x[68]||(x[68]=a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1)),x[69]||(x[69]=te(" Requeue Message ",-1))],64))],8,ZR)):he("",!0),a("button",{type:"button",class:"btn btn-danger",disabled:g.value,onClick:x[9]||(x[9]=F=>r.value=!0)},[e.isDeleting?(N(),P(Ae,{key:0},[x[70]||(x[70]=a("span",{class:"spinner-border spinner-border-sm me-2"},null,-1)),x[71]||(x[71]=te(" Deleting... ",-1))],64)):(N(),P(Ae,{key:1},[x[72]||(x[72]=a("i",{class:"bi bi-trash me-2"},null,-1)),x[73]||(x[73]=te(" Delete Message ",-1))],64))],8,JR),a("button",{type:"button",class:"btn btn-secondary",disabled:g.value,onClick:L}," Close ",8,XR)])]),_:1},8,["is-visible","subtitle"]),we(zh,{"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:x[10]||(x[10]=F=>r.value=!1)},{"message-preview":qe(()=>[x[74]||(x[74]=a("strong",null,"Message ID: ",-1)),a("code",null,q(e.message?.id),1)]),_:1},8,["is-visible","is-loading"]),we(zh,{"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:x[11]||(x[11]=F=>o.value=!1)},{"message-preview":qe(()=>[x[75]||(x[75]=a("strong",null,"Message ID: ",-1)),a("code",null,q(e.message?.id),1)]),_:1},8,["is-visible","is-loading"])],64))}}),tM=Xe(eM,[["__scopeId","data-v-65801e3a"]]),sM={class:"messages-component","aria-live":"polite"},nM={key:0,class:"messages-controls"},iM={class:"controls-left"},rM={key:0,class:"pagination-info"},aM={class:"info-text"},oM={class:"controls-right"},lM={key:0,class:"page-size-selector"},uM=["value"],cM=["disabled"],dM={class:"messages-content"},fM={key:0,class:"state-card loading-state"},hM={key:1,class:"state-card error-state"},pM={class:"state-content"},mM={class:"state-text"},gM={class:"state-message"},vM={class:"state-actions"},bM={key:2,class:"state-card empty-state"},yM={class:"state-content"},_M={class:"state-title"},EM={key:3,class:"messages-list",role:"list","aria-label":"Messages list"},wM=["aria-label","onClick","onKeydown"],CM={class:"message-header"},AM={class:"message-id-section"},SM={class:"message-id"},xM={class:"message-date"},$M={class:"message-metadata"},TM={key:0,class:"metadata-item"},OM={class:"metadata-value priority-badge"},NM={key:1,class:"metadata-item"},kM={class:"metadata-value"},PM={key:2,class:"metadata-item"},DM={class:"message-body"},RM={class:"body-content"},MM={key:1,class:"messages-pagination"},IM={class:"pagination-nav","aria-label":"Messages pagination"},qM={class:"pagination"},LM=["disabled"],FM=["disabled"],VM=["title","onClick"],QM=["disabled"],jM=["disabled"],BM=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=be(!1),r=be(null),o=b(()=>s.messages.length>0),l=b(()=>s.pagination.currentPage>1),u=b(()=>s.pagination.currentPage<s.pagination.totalPages),d=b(()=>{const S=[],A=Math.floor(2.5),{currentPage:g,totalPages:$}=s.pagination;let L=Math.max(1,g-A),V=Math.min($,L+5-1);V-L+1<5&&(L=Math.max(1,V-5+1));for(let I=L;I<=V;I++)S.push(I);return S});function c(S){r.value=S,i.value=!0}function h(){i.value=!1}function m(S){n("delete-message",S),h()}function p(S){n("requeue-message",S),h()}function v(S){const C=S.target;n("page-size-change",Number(C.value))}function E(S){if(typeof S=="string")return S.length>100?`${S.substring(0,100)}...`:S;if(S==null)return"null";try{const C=JSON.stringify(S);return C.length>100?`${C.substring(0,100)}...`:C}catch{return String(S)}}function _(S,C){(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),c(C))}return(S,C)=>(N(),P("section",sM,[o.value||e.showPagination?(N(),P("div",nM,[a("div",iM,[e.showPagination&&e.pagination&&e.pagination.hasItems?(N(),P("div",rM,[a("span",aM," Showing "+q(e.pagination.start)+"-"+q(e.pagination.end)+" of "+q(e.pagination.totalCount)+" messages ",1)])):he("",!0)]),a("div",oM,[e.showPagination&&e.pagination?(N(),P("div",lM,[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:v},[...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,uM)])):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]=te(" 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]=te(" Refresh ",-1))],64))],10,cM)])])):he("",!0),a("div",dM,[e.isLoading&&!o.value?(N(),P("div",fM,[...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",hM,[a("div",pM,[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",mM,[C[13]||(C[13]=a("h5",{class:"state-title"},"Failed to load messages",-1)),a("p",gM,q(e.error.message),1)])]),a("div",vM,[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),te(" Try Again ",-1)])])])])):o.value?(N(),P("div",EM,[(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:g=>c(A),onKeydown:g=>_(g,A)},[a("div",CM,[a("div",AM,[a("span",SM,q(A.id),1),a("span",xM,q(T(Mc)(A.createdAt)),1)]),a("div",$M,[A.priority!==void 0&&A.priority!==null?(N(),P("div",TM,[C[18]||(C[18]=a("span",{class:"metadata-label"},"Priority:",-1)),a("span",OM,q(A.priority),1)])):he("",!0),A.consumerGroupId?(N(),P("div",NM,[C[19]||(C[19]=a("span",{class:"metadata-label"},"Group:",-1)),a("span",kM,q(A.consumerGroupId),1)])):he("",!0),A.status!==void 0?(N(),P("div",PM,[C[20]||(C[20]=a("span",{class:"metadata-label"},"Status:",-1)),a("span",{class:De(["metadata-value status-badge",`status-${A.status}`])},q(T(ev)[A.status]),3)])):he("",!0)])]),a("div",DM,[a("pre",RM,q(E(A.body)),1)])],40,wM))),128))])):(N(),P("div",bM,[a("div",yM,[C[16]||(C[16]=a("div",{class:"state-icon","aria-hidden":"true"},"📭",-1)),a("h4",_M,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",MM,[a("nav",IM,[a("ul",qM,[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,LM)],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,FM)],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:g=>n("page-change",A)},q(A),9,VM)],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,QM)],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,jM)],2)])])])):he("",!0),we(tM,{show:i.value,message:r.value,"is-deleting":e.isDeleting,"is-requeuing":e.isRequeuing,onClose:h,onDeleteMessage:m,onRequeueMessage:p},null,8,["show","message","is-deleting","is-requeuing"])]))}}),oa=Xe(BM,[["__scopeId","data-v-4aecad5a"]]),Jo=Vo("selectedNamespace",()=>{const e=be(null);function t(n){e.value=n}function s(){e.value=null}return{selectedNamespace:e,selectNamespace:t,clearSelectedNamespace:s}}),It=Vo("selectedQueue",()=>{const e=Jo(),t=be(null),s=b(()=>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=b(()=>e.selectedQueue),s=nO(b(()=>t.value?.ns||""),b(()=>t.value?.name||""),{query:{enabled:b(()=>!!t.value)}}),n=b(()=>s.data.value),i=b(()=>s.isLoading.value),r=b(()=>s.error.value),o=b(()=>n.value?.data.deliveryModel===us.PUB_SUB),l=b(()=>n.value?.data.deliveryModel===us.POINT_TO_POINT),u=b(()=>n.value?.data.queueType),d=b(()=>n.value?.data.deliveryModel),c=b(()=>!!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}}),UM=(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})),KM=e=>(e=T(e),Je({url:`/api/v1/messages/${e}`,method:"DELETE"})),HM=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 KM(r)},...s}},GM=(e,t)=>{const s=HM(e);return Nt(s)},WM=(e,t)=>(e=T(e),Je({url:`/api/v1/messages/${e}/requeue`,method:"POST",signal:t})),zM=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 WM(r)},...s}},YM=(e,t)=>{const s=zM(e);return Nt(s)};function la(e,t,s=20,n=be({})){const i=fn(),r=As({currentPage:1,pageSize:s}),o=b(()=>{if(!e.value)return["disabled"];const z=[t.queryKeyPrefix,e.value.ns,e.value.name],fe=Object.entries(n.value);return fe.length>0&&fe.forEach(([ie,G])=>{G!=null&&z.push(ie,String(G))}),z});function l(z){return z?.data?.totalItems??0}const{data:u,error:d,fetchNextPage:c,hasNextPage:h,isLoading:m,isFetchingNextPage:p,refetch:v}=uC({queryKey:o,initialPageParam:1,enabled:b(()=>!!(e.value?.ns&&e.value?.name)),retry:(z,fe)=>{const ie=fe;return(ie?.status??ie?.response?.status)===422?!1:z<3},queryFn:async({pageParam:z=1})=>{if(!e.value)throw new Error("Queue parameters are required");return t.queryFn({ns:e.value.ns,name:e.value.name,page:Number(z),pageSize:r.pageSize,extraParams:n.value})},getNextPageParam:(z,fe)=>{const ie=z?.data?.items??[],G=l(fe?.[0]),X=fe.flatMap(Z=>Z?.data?.items??[]).length;if(!(!ie.length||G&&X>=G))return fe.length+1}}),E=async()=>{await i.invalidateQueries({queryKey:o.value})},_=t.enableDelete?GM({mutation:{onSuccess:E}}):null,S=t.enableRequeue?YM({mutation:{onSuccess:E}}):null,C=b(()=>u.value?.pages.flatMap(z=>z?.data?.items??[])??[]),A=b(()=>l(u.value?.pages?.[0]??{})),g=b(()=>_?.isPending.value??!1),$=b(()=>S?.isPending.value??!1),L=b(()=>{const z=d.value||_?.error.value||S?.error.value;return dt(z)}),V=b(()=>{const z=(r.currentPage-1)*r.pageSize,fe=z+r.pageSize;return C.value.slice(z,fe)}),I=b(()=>{const z=A.value||0,fe=z>0?Math.ceil(z/r.pageSize):1,ie=z>0?(r.currentPage-1)*r.pageSize+1:0,G=Math.min(ie+r.pageSize-1,z);return{currentPage:r.currentPage,pageSize:r.pageSize,totalCount:z,totalPages:fe,start:ie,end:G,hasItems:z>0}});async function w(z){if(z<1)return;r.currentPage=z;const fe=z*r.pageSize;for(;C.value.length<fe&&h.value&&!p.value;)await c()}async function O(z){r.pageSize=z,r.currentPage=1,await v()}async function x(){r.currentPage=1,await v()}async function F(z){if(!_)throw new Error("Delete operation is not enabled for this message type");await _.mutateAsync({id:z})}async function H(z){if(!S)throw new Error("Requeue operation is not enabled for this message type");await S.mutateAsync({id:z})}return Ye(()=>[e.value&&[e.value.ns,e.value.name],n.value],async()=>{e.value&&(r.currentPage=1,await v())},{deep:!0}),{messages:V,pagination:I,isLoading:m,isDeleting:g,isRequeuing:$,error:L,goToPage:w,setPageSize:O,refresh:x,deleteMessage:t.enableDelete?F:void 0,requeueMessage:t.enableRequeue?H:void 0,hasNextPage:h,isFetchingNextPage:p,totalMessages:A,allMessages:C}}function ZM(e,t=20){return la(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>UM(n,i,{page:r,pageSize:o}),queryKeyPrefix:"acknowledged-messages",enableDelete:!0,enableRequeue:!0},t)}const JM=e=>Je({url:"/api/v1/config",method:"GET",signal:e}),XM=()=>["api","v1","config"],eI=e=>{const{query:t}={};return{queryKey:XM(),queryFn:({signal:i})=>JM(i),...t}};function Pv(e,t){const s=eI(),n=Jt(s);return n.queryKey=T(s).queryKey,n}const tI={key:0,class:"ack-loading-alert",role:"status","aria-live":"polite"},sI={key:1,class:"ack-error-alert",role:"alert","aria-live":"polite"},nI={class:"ack-alert-row"},iI={class:"ack-alert-text"},rI={class:"ack-alert-message"},aI={class:"ack-alert-actions"},oI={key:2,class:"ack-disabled-alert",role:"status","aria-live":"polite"},lI=Ue({__name:"AcknowledgedMessagesView",setup(e){const t=It(),s=Dn(),n=Xt(),i=ps(),r=b(()=>i.params.ns),o=b(()=>i.params.queue),l=b(()=>({ns:r.value,name:o.value}));Ye([r,o],([H,z])=>{H&&z&&t.selectQueue(H,z)},{immediate:!0});const u=b(()=>t.selectedQueue),{messages:d,pagination:c,isLoading:h,isDeleting:m,error:p,goToPage:v,setPageSize:E,refresh:_,deleteMessage:S}=ZM(l,20),C=b(()=>u.value?`Acknowledged Messages - ${`${u.value.name}@${u.value.ns}`}`:"Acknowledged Messages"),A=b(()=>{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:g,isLoading:$,error:L,refetch:V}=Pv(),I=b(()=>{const H=g.value?.data?.messageAudit?.acknowledgedMessages?.enabled;return typeof H=="boolean"?H:null}),w=b(()=>dt(L.value));async function O(H){S&&await S(H)}function x(H){v(H)}async function F(H){await E(H)}return(H,z)=>(N(),at(ms,{"show-section-header":!1},{default:qe(()=>[T($)?(N(),P("div",tI,[...z[5]||(z[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",sI,[a("div",nI,[z[8]||(z[8]=a("i",{class:"bi bi-exclamation-triangle-fill ack-alert-icon","aria-hidden":"true"},null,-1)),a("div",iI,[z[6]||(z[6]=a("strong",null,"Could not load server configuration",-1)),a("p",rI,q(w.value),1)]),a("div",aI,[a("button",{class:"btn btn-sm btn-outline-primary",type:"button",onClick:z[0]||(z[0]=fe=>T(V)())},[...z[7]||(z[7]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),te(" Retry ",-1)])])])])])):I.value===!1?(N(),P("div",oI,[...z[9]||(z[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 audit is disabled"),a("p",{class:"ack-alert-message"}," Acknowledged message auditing is disabled in the RedisSMQ configuration. This view will remain empty until auditing is enabled. ")])],-1)])])):he("",!0),u.value?(N(),at(oa,{key:3,messages:T(d),"is-loading":T(h),error:T(p),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(m),"is-requeuing":!1,onRefresh:T(_),onDeleteMessage:O,onPageChange:x,onPageSizeChange:F,onFirstPage:z[1]||(z[1]=fe=>x(1)),onPreviousPage:z[2]||(z[2]=fe=>x(T(c).currentPage-1)),onNextPage:z[3]||(z[3]=fe=>x(T(c).currentPage+1)),onLastPage:z[4]||(z[4]=fe=>x(T(c).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","onRefresh"])):he("",!0)]),_:1}))}}),uI=Xe(lI,[["__scopeId","data-v-685bdbeb"]]),cI=(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 dI(e,t=20){return la(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>cI(n,i,{page:r,pageSize:o}),queryKeyPrefix:"dead-lettered-messages",enableDelete:!0,enableRequeue:!0},t)}const fI={key:0,class:"dl-loading-alert",role:"status","aria-live":"polite"},hI={key:1,class:"dl-error-alert",role:"alert","aria-live":"polite"},pI={class:"dl-alert-row"},mI={class:"dl-alert-text"},gI={class:"dl-alert-message"},vI={class:"dl-alert-actions"},bI={key:2,class:"dl-disabled-alert",role:"status","aria-live":"polite"},yI=Ue({__name:"DeadLetteredMessagesView",setup(e){const t=It(),s=Dn(),n=Xt(),i=ps(),r=b(()=>i.params.ns),o=b(()=>i.params.queue),l=b(()=>({ns:r.value,name:o.value}));Ye([r,o],([ie,G])=>{ie&&G&&t.selectQueue(ie,G)},{immediate:!0});const u=b(()=>t.selectedQueue),{messages:d,pagination:c,isLoading:h,isDeleting:m,isRequeuing:p,error:v,goToPage:E,setPageSize:_,refresh:S,deleteMessage:C,requeueMessage:A}=dI(l,20),g=b(()=>u.value?`Dead-Lettered Messages - ${`${u.value.name}@${u.value.ns}`}`:"Dead-Lettered Messages"),$=b(()=>{if(u.value)return s.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});At(()=>{n.setPageHeader({title:g.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:V,error:I,refetch:w}=Pv(),O=b(()=>{const ie=L.value?.data?.messageAudit.deadLetteredMessages?.enabled;return typeof ie=="boolean"?ie:null}),x=b(()=>dt(I));async function F(ie){C&&await C(ie)}async function H(ie){A&&await A(ie)}function z(ie){E(ie)}async function fe(ie){await _(ie)}return(ie,G)=>(N(),at(ms,{"show-section-header":!1},{default:qe(()=>[T(V)?(N(),P("div",fI,[...G[5]||(G[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",hI,[a("div",pI,[G[8]||(G[8]=a("i",{class:"bi bi-exclamation-triangle-fill dl-alert-icon","aria-hidden":"true"},null,-1)),a("div",mI,[G[6]||(G[6]=a("strong",null,"Could not load server configuration",-1)),a("p",gI,q(x.value),1)]),a("div",vI,[a("button",{class:"btn btn-sm btn-outline-primary",type:"button",onClick:G[0]||(G[0]=X=>T(w)())},[...G[7]||(G[7]=[a("i",{class:"bi bi-arrow-clockwise me-1"},null,-1),te(" Retry ",-1)])])])])])):O.value===!1?(N(),P("div",bI,[...G[9]||(G[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 audit is disabled"),a("p",{class:"dl-alert-message"}," Dead-lettered message auditing is disabled in the RedisSMQ configuration. This view will remain empty until auditing is enabled. ")])],-1)])])):he("",!0),u.value?(N(),at(oa,{key:3,messages:T(d),"is-loading":T(h),error:T(v),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(m),"is-requeuing":T(p),onRefresh:T(S),onDeleteMessage:F,onRequeueMessage:H,onPageChange:z,onPageSizeChange:fe,onFirstPage:G[1]||(G[1]=X=>z(1)),onPreviousPage:G[2]||(G[2]=X=>z(T(c).currentPage-1)),onNextPage:G[3]||(G[3]=X=>z(T(c).currentPage+1)),onLastPage:G[4]||(G[4]=X=>z(T(c).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","is-requeuing","onRefresh"])):he("",!0)]),_:1}))}}),_I=Xe(yI,[["__scopeId","data-v-87bf9c6f"]]),EI=e=>Je({url:"/api/v1/namespaces",method:"GET",signal:e}),wI=()=>["api","v1","namespaces"],CI=e=>{const{query:t}={};return{queryKey:wI(),queryFn:({signal:i})=>EI(i),...t}};function AI(e,t){const s=CI(),n=Jt(s);return n.queryKey=T(s).queryKey,n}const SI=e=>(e=T(e),Je({url:`/api/v1/namespaces/${e}`,method:"DELETE"})),xI=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 SI(r)},...s}},$I=(e,t)=>{const s=xI(e);return Nt(s)},TI=(e,t)=>(e=T(e),Je({url:`/api/v1/namespaces/${e}/queues`,method:"GET",signal:t})),OI=e=>["api","v1","namespaces",e,"queues"],NI=(e,t)=>{const{query:s}=t??{};return{queryKey:OI(e),queryFn:({signal:r})=>TI(e,r),enabled:b(()=>!!T(e)),...s}};function kI(e,t,s){const n=NI(e,t),i=Jt(n);return i.queryKey=T(n).queryKey,i}const PI=(e,t)=>(e=T(e),Je({url:`/api/v1/namespaces/${e}/exchanges`,method:"GET",signal:t})),Cr=e=>["api","v1","namespaces",e,"exchanges"],DI=(e,t)=>{const{query:s}=t??{};return{queryKey:Cr(e),queryFn:({signal:r})=>PI(e,r),enabled:b(()=>!!T(e)),...s}};function RI(e,t,s){const n=DI(e,t),i=Jt(n);return i.queryKey=T(n).queryKey,i}function Dv(){const e=Jo(),t=b(()=>e.selectedNamespace),s=AI(),n=kI(b(()=>t.value||""),{query:{enabled:b(()=>!!t.value)}}),i=$I({mutation:{onSuccess:async()=>{e.clearSelectedNamespace(),await s.refetch()}}}),r=b(()=>s.data.value),o=b(()=>n.data.value),l=b(()=>s.isLoading.value),u=b(()=>n.isLoading.value),d=b(()=>i.isPending.value),c=b(()=>l.value||u.value||d.value),h=b(()=>s.error.value),m=b(()=>n.error.value),p=b(()=>i.error.value),v=b(()=>h.value||m.value||p.value),E=b(()=>r.value?.data.length?[...r.value.data].sort((w,O)=>w.localeCompare(O)):[]),_=b(()=>o.value?.data.length?[...o.value.data].sort((w,O)=>w.name.localeCompare(O.name)):[]),S=b(()=>!!r.value?.data&&r.value.data.length>0),C=b(()=>!!o.value?.data&&o.value.data.length>0),A=b(()=>w=>r.value?.data?r.value.data.includes(w):!1);async function g(){await s.refetch()}async function $(w){if(w||t.value){const x=t.value;w&&w!==t.value&&e.selectNamespace(w);try{await n.refetch()}finally{w&&w!==x&&(x?e.selectNamespace(x):e.clearSelectedNamespace())}}}async function L(w){await i.mutateAsync({ns:w})}function V(w){const O=w||t.value;if(!O)return Promise.resolve([]);const x=[s.refetch()];return O===t.value&&x.push(n.refetch()),Promise.all(x)}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:v,namespacesError:h,namespaceQueuesError:m,deleteNamespaceError:p,sortedNamespaces:E,sortedNamespaceQueues:_,hasNamespaces:S,hasNamespaceQueues:C,namespaceExists:A,refreshNamespaces:g,refreshNamespaceQueues:$,deleteNamespace:L,refetchNamespaceData:V,isValidNamespace:I}}function Rv(e){const t=aO({mutation:{onSuccess:async()=>{await e()}}}),s=b(()=>t.isPending.value),n=b(()=>t.error.value?.error);return{deleteQueue:t.mutateAsync,isDeletingQueue:s,deleteQueueError:n,deleteQueueMutation:t}}const MI={class:"dialog-body"},II={class:"confirmation-message"},qI={class:"queue-details",role:"group","aria-label":"Queue details"},LI={class:"queue-info"},FI={class:"info-item"},VI=["title"],QI={class:"info-item"},jI=["title"],BI={class:"actions"},UI=["disabled"],KI=["disabled"],HI=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",MI,[a("section",II,[l[2]||(l[2]=a("p",{class:"message-text"}," Are you sure you want to permanently delete the following queue? ",-1)),a("div",qI,[a("div",LI,[a("div",FI,[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,VI)]),a("div",QI,[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,jI)])])])]),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",BI,[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),te(" Cancel ",-1)])],8,UI),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]=te(" 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]=te(" Delete Queue ",-1))],64))],8,KI)])]),_:1},8,["is-visible"]))}}),Mv=Xe(HI,[["__scopeId","data-v-6e38dfa1"]]),GI=["onKeydown"],WI={class:"queue-content"},zI={class:"queue-info"},YI={class:"queue-header"},ZI=["title"],JI={class:"queue-details"},XI={class:"queue-namespace"},eq={class:"namespace-text"},tq={class:"queue-actions"},sq=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",WI,[l[1]||(l[1]=a("div",{class:"queue-icon"},[a("i",{class:"bi bi-collection"})],-1)),a("div",zI,[a("div",YI,[a("h5",{class:"queue-name",title:`${e.queue.ns}:${e.queue.name}`},q(e.queue.name),9,ZI)]),a("div",JI,[a("div",XI,[l[0]||(l[0]=a("i",{class:"bi bi-tag-fill namespace-icon"},null,-1)),a("span",eq,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",tq,[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,GI))}}),nq=Xe(sq,[["__scopeId","data-v-f4df47cc"]]),iq={key:0,class:"alert alert-warning alert-dismissible fade show error-banner"},rq={class:"d-flex align-items-center"},aq={class:"content-card namespace-summary"},oq={class:"summary-content"},lq={class:"summary-stats"},uq={class:"stat-item"},cq={class:"stat-content"},dq={class:"stat-number"},fq={class:"stat-label"},hq={class:"stat-item"},pq={class:"stat-content"},mq={class:"stat-number"},gq={class:"content-card queues-card"},vq={class:"queues-header"},bq={class:"queues-count"},yq={class:"queues-list"},_q=Ue({__name:"NamespaceQueuesView",setup(e){const t=ps(),s=os(),n=Dv(),i=Jo(),r=It(),o=Xt(),l=Rv(async()=>{d.value=!1,c.value=null,await n.refreshNamespaceQueues(h.value)}),u=be(!1),d=be(!1),c=be(null),h=b(()=>t.params.ns),m=b(()=>n.sortedNamespaceQueues.value),p=b(()=>n.isLoadingNamespaceQueues.value),v=b(()=>n.namespaceQueuesError.value),E=b(()=>m.value.length>0),_=b(()=>h.value?n.namespaceExists.value(h.value):!1),S=b(()=>l.isDeletingQueue.value),C=b(()=>l.deleteQueueError.value);function A(F,H){r.selectQueue(F,H),s.push({name:"Queue",params:{ns:F,queue:H}})}function g(){i.clearSelectedNamespace(),s.push({name:"Namespaces"})}function $(){u.value=!0}function L(){u.value=!1}function V(F,H){c.value={ns:F,name:H},d.value=!0}function I(){d.value=!1,c.value=null}async function w(){c.value&&await l.deleteQueueMutation.mutateAsync({ns:c.value.ns,name:c.value.name})}function O(){n.refreshNamespaceQueues(h.value)}const x=b(()=>[{id:"refresh-queues",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"secondary",disabled:p.value,handler:O},{id:"create-queue",label:"Create Queue",icon:"bi bi-plus-circle",variant:"primary",disabled:!1,loading:!1,handler:$}]);return At(()=>{o.setPageHeader({title:h.value,subtitle:"Manage queues in this namespace",icon:"bi bi-folder-fill"}),o.setPageActions(x.value),o.setLoadingState(p.value),p.value||(_.value?v.value?(o.setErrorState(dt(v.value)),o.setEmptyState(!1)):E.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 "${h.value}" namespace to start managing messages.`,actionLabel:"Create Your First Queue",actionHandler:$})):(o.setEmptyState(!0,{icon:"bi bi-folder-x",title:"Namespace Not Found",message:`The namespace "${h.value}" does not exist or has been deleted.`,actionLabel:"Back to Namespaces",actionHandler:g}),o.setPageActions([])))}),Ye(h,F=>{F&&i.selectNamespace(F)},{immediate:!0}),Bt(()=>{h.value&&i.selectNamespace(h.value)}),(F,H)=>(N(),P("div",null,[we(ms,null,{default:qe(()=>[C.value&&!d.value?(N(),P("div",iq,[a("div",rq,[H[2]||(H[2]=a("i",{class:"bi bi-exclamation-triangle me-2"},null,-1)),a("span",null,"Failed to delete queue: "+q(T(dt)(C.value)),1)]),a("button",{type:"button",class:"btn-close",onClick:H[0]||(H[0]=z=>T(l).deleteQueueMutation.reset())})])):he("",!0),a("div",aq,[a("div",oq,[a("div",lq,[a("div",uq,[H[3]||(H[3]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-list-ul"})],-1)),a("div",cq,[a("div",dq,q(m.value.length),1),a("div",fq," Queue"+q(m.value.length!==1?"s":""),1)])]),a("div",hq,[H[5]||(H[5]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-folder-fill"})],-1)),a("div",pq,[a("div",mq,q(h.value),1),H[4]||(H[4]=a("div",{class:"stat-label"},"Namespace",-1))])])])])]),a("div",gq,[a("div",vq,[a("h5",bq,q(m.value.length)+" Queue"+q(m.value.length!==1?"s":""),1)]),a("div",yq,[(N(!0),P(Ae,null,bt(m.value,z=>(N(),at(nq,{key:`${z.ns}-${z.name}`,queue:z,onSelect:A,onDelete:V},null,8,["queue"]))),128))])])]),_:1}),we(Tv,{"is-visible":u.value,namespace:h.value,onClose:L,onCreated:H[1]||(H[1]=z=>T(n).refreshNamespaceQueues(h.value))},null,8,["is-visible","namespace"]),c.value?(N(),at(Mv,{key:0,"is-visible":d.value,"is-deleting":S.value,queue:c.value,onCancel:I,onConfirm:w},null,8,["is-visible","is-deleting","queue"])):he("",!0)]))}}),Eq=Xe(_q,[["__scopeId","data-v-125bc741"]]),wq=["aria-label"],Cq={key:0,class:"deleting-overlay"},Aq={class:"card-header"},Sq={class:"header-content"},xq={class:"header-text"},$q={class:"namespace-name"},Tq={class:"header-actions"},Oq={class:"card-body"},Nq={class:"stats-section",role:"group","aria-label":"Namespace stats"},kq={class:"stat-item"},Pq={class:"stat-value"},Dq={class:"stat-label"},Rq={class:"stat-item"},Mq={class:"stat-value"},Iq={class:"stat-label"},qq={class:"queues-section"},Lq={key:0,class:"queues-list",role:"list"},Fq=["onClick","onKeydown"],Vq={class:"queue-name"},Qq={key:1,class:"no-queues-message"},jq={class:"card-footer"},Bq={class:"footer-actions"},Uq=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",Cq,[...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",Aq,[a("div",Sq,[l[7]||(l[7]=a("div",{class:"header-icon","aria-hidden":"true"},[a("i",{class:"bi bi-folder2-open"})],-1)),a("div",xq,[a("h3",$q,q(e.namespace),1),l[6]||(l[6]=a("span",{class:"namespace-label"},"Namespace",-1))])]),a("div",Tq,[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",Oq,[a("div",Nq,[a("div",kq,[a("span",Pq,q(e.queueCount),1),a("span",Dq,q(e.queueCount===1?"Queue":"Queues"),1)]),a("div",Rq,[a("span",Mq,q(e.exchangeCount),1),a("span",Iq,q(e.exchangeCount===1?"Exchange":"Exchanges"),1)])]),a("div",qq,[l[11]||(l[11]=a("h4",{class:"queues-title"},[a("i",{class:"bi bi-card-list me-2","aria-hidden":"true"}),te(" Sample Queues ")],-1)),e.recentQueues.length?(N(),P("ul",Lq,[(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",Vq,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,Fq)]))),128))])):(N(),P("p",Qq,"No queues in this namespace."))])]),a("footer",jq,[a("div",Bq,[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,wq))}}),Kq=Xe(Uq,[["__scopeId","data-v-b80eed74"]]),Hq={class:"dialog-body"},Gq={class:"confirmation-message"},Wq={class:"message-text"},zq=["title"],Yq={class:"namespace-details",role:"group","aria-label":"Namespace details"},Zq={class:"detail-item"},Jq={class:"detail-value"},Xq={key:0,class:"error-section",role:"alert"},eL={class:"error-content"},tL={class:"error-text"},sL={class:"error-message"},nL={class:"actions"},iL=["disabled"],rL=["disabled"],aL=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",Hq,[a("section",Gq,[a("p",Wq,[l[0]||(l[0]=te(" Are you sure you want to permanently delete the namespace ",-1)),a("strong",{class:"namespace-identifier",title:e.namespace??""},q(e.namespace),9,zq),l[1]||(l[1]=te(" ? ",-1))]),a("div",Yq,[a("div",Zq,[l[2]||(l[2]=a("span",{class:"detail-label"},"Queues in namespace:",-1)),a("span",Jq,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",Xq,[a("div",eL,[l[4]||(l[4]=a("div",{class:"error-icon","aria-hidden":"true"},[a("i",{class:"bi bi-exclamation-circle-fill"})],-1)),a("div",tL,[l[3]||(l[3]=a("h4",{class:"error-title"},"Deletion Failed",-1)),a("p",sL,q(e.error),1)])])])):he("",!0)])]),footer:qe(()=>[a("div",nL,[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),te(" Cancel ",-1)])],8,iL),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]=te(" 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]=te(" Delete Namespace ",-1))],64))],8,rL)])]),_:1},8,["is-visible"]))}}),oL=Xe(aL,[["__scopeId","data-v-221b2a02"]]);function lL(){const e=JT(),t=b(()=>e.data.value),s=b(()=>e.isLoading.value),n=b(()=>e.error.value),i=b(()=>t.value?.data.length?[...t.value.data].sort((u,d)=>u.name.localeCompare(d.name)):[]),r=b(()=>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 uL={key:0,class:"alert alert-warning alert-dismissible fade show mb-4",role:"alert"},cL={class:"namespaces-grid"},dL="Namespaces",fL="Organize and manage your message queue namespaces",hL=Ue({__name:"NamespacesView",setup(e){const t=os(),s=Dv(),n=lL(),i=It(),r=Jo(),o=Xt(),{data:l,isLoading:u,refetch:d}=Hg(),c=be(!1),h=be(null),m=b(()=>s.sortedNamespaces.value),p=b(()=>s.isLoadingNamespaces.value||u.value),v=b(()=>s.namespacesError.value),E=b(()=>s.isDeletingNamespace.value),_=b(()=>dt(s.deleteNamespaceError.value?.error)),S=b(()=>m.value.length>0),C=b(()=>l.value?.data||[]),A=H=>C.value.filter(z=>z.ns===H).length,g=b(()=>[{id:"refresh-namespaces",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"primary",disabled:p.value,loading:p.value,handler:$,tooltip:"Refresh namespaces and exchanges data"}]);function $(){s.refreshNamespaces(),d()}function L(){t.push({name:"Queues"})}function V(H){r.selectNamespace(H),t.push({name:"Namespace Queues",params:{ns:H}})}function I(H){r.selectNamespace(H),t.push({name:"Namespace Exchanges",params:{ns:H}})}function w(H){i.selectQueue(H.ns,H.name),t.push({name:"Queue",params:{ns:H.ns,queue:H.name}})}function O(H){h.value=H,c.value=!0}function x(){c.value=!1,h.value=null}async function F(){if(h.value)try{await s.deleteNamespace(h.value),x(),d()}catch(H){console.error("Failed to delete namespace:",H)}}return At(()=>{o.setPageHeader({title:dL,subtitle:fL,icon:"bi bi-folder"}),o.setPageActions(g.value),o.setLoadingState(p.value),v.value?(o.setErrorState(dt(v.value)),o.setEmptyState(!1)):!p.value&&!S.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(()=>{$()}),(H,z)=>(N(),P("div",null,[we(ms,null,{default:qe(()=>[_.value&&!c.value?(N(),P("div",uL,[z[1]||(z[1]=a("i",{class:"bi bi-exclamation-triangle-fill me-2"},null,-1)),te(" "+q(T(dt)(_.value))+" ",1),a("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:z[0]||(z[0]=fe=>T(s).deleteNamespaceMutation.reset())})])):he("",!0),a("div",cL,[(N(!0),P(Ae,null,bt(m.value,fe=>(N(),at(Kq,{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:ie=>V(fe),onQueueClick:w,onDelete:O,onViewExchanges:I},null,8,["namespace","queue-count","exchange-count","recent-queues","is-deleting","onClick"]))),128))])]),_:1}),we(oL,{"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:x,onConfirm:F},null,8,["is-visible","namespace","queue-count","is-deleting","error"])]))}}),Iv=Xe(hL,[["__scopeId","data-v-d9e0902c"]]),pL=Object.freeze(Object.defineProperty({__proto__:null,default:Iv},Symbol.toStringTag,{value:"Module"})),mL=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/consumer-groups`,method:"GET",signal:s})),gL=(e,t)=>["api","v1","namespaces",e,"queues",t,"consumer-groups"],vL=(e,t,s)=>{const{query:n}=s??{};return{queryKey:gL(e,t),queryFn:({signal:o})=>mL(e,t,o),enabled:b(()=>!!(T(e)&&T(t))),...n}};function bL(e,t,s,n){const i=vL(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const yL=(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})),_L=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 yL(r,o,l)},...s}},EL=(e,t)=>{const s=_L(e);return Nt(s)},wL=(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"})),CL=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 wL(r,o,l)},...s}},AL=(e,t)=>{const s=CL(e);return Nt(s)};function qv(){const e=It(),t=Dn(),s=b(()=>e.selectedQueue),n=bL(b(()=>s.value?.ns||""),b(()=>s.value?.name||""),{query:{enabled:b(()=>!!s.value&&t.isPubSubQueue)}}),i=EL({mutation:{onSuccess:async()=>{await n.refetch()}}}),r=AL({mutation:{onSuccess:async()=>{await n.refetch()}}}),o=b(()=>n.data.value),l=b(()=>n.isLoading.value),u=b(()=>i.isPending.value),d=b(()=>r.isPending.value),c=b(()=>l.value||u.value||d.value),h=b(()=>n.error.value),m=b(()=>i.error.value),p=b(()=>r.error.value),v=b(()=>h.value||m.value||p.value),E=b(()=>t.isPubSubQueue&&!!o.value?.data&&Array.isArray(o.value.data)&&o.value.data.length>0),_=b(()=>o.value?.data?[...o.value.data].sort((O,x)=>O.localeCompare(x)):[]);async function S(O){if(!s.value)throw new Error("No queue selected");const x={consumerGroupId:O};await i.mutateAsync({ns:s.value.ns,name:s.value.name,data:x})}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 g(){return!s.value||!t.isPubSubQueue?Promise.resolve():n.refetch()}function $(){i.reset()}function L(){r.reset()}function V(){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:v,consumerGroupsError:h,createConsumerGroupError:m,deleteConsumerGroupError:p,hasConsumerGroups:E,sortedConsumerGroups:_,createConsumerGroup:S,deleteConsumerGroup:C,refreshConsumerGroups:A,refetchConsumerGroupsData:g,resetCreateConsumerGroupMutation:$,resetDeleteConsumerGroupMutation:L,resetAllMutations:V,isValidConsumerGroupId:I,consumerGroupExists:w}}const SL={class:"consumer-group-selector"},xL={key:0,class:"section-header"},$L={key:0,class:"section-meta"},TL={key:1,class:"state-container loading-state"},OL={key:2,class:"consumer-groups-grid"},NL=["aria-label","onClick","onKeydown"],kL={class:"card-header"},PL={class:"group-info"},DL={class:"group-name"},RL={key:3,class:"state-container empty-state"},ML={class:"state-content"},IL={class:"state-description"},qL={key:0,class:"state-actions"},LL=Ue({__name:"ConsumerGroupSelector",props:{showSectionHeader:{type:Boolean,default:!0}},setup(e){const t=It(),s=qv(),n=os(),i=b(()=>t.selectedQueue),r=b(()=>s.sortedConsumerGroups.value),o=b(()=>s.hasConsumerGroups.value),l=b(()=>s.isLoading.value),u=b(()=>{const m=r.value.length;return`${m} group${m!==1?"s":""} found`}),d=b(()=>i.value?`${i.value.ns}/${i.value.name}`:"");function c(m){i.value&&n.push({name:"Pending Messages",params:{ns:i.value.ns,queue:i.value.name},query:{consumerGroupId:m}})}function h(){i.value&&s.consumerGroupsQuery.refetch()}return(m,p)=>(N(),P("div",SL,[e.showSectionHeader?(N(),P("header",xL,[p[0]||(p[0]=a("h2",{class:"section-title"},"Consumer Groups",-1)),o.value&&!l.value?(N(),P("div",$L,q(u.value),1)):he("",!0)])):he("",!0),l.value?(N(),P("div",TL,[...p[1]||(p[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",OL,[(N(!0),P(Ae,null,bt(r.value,v=>(N(),P("article",{key:v,class:"consumer-group-card",role:"button",tabindex:"0","aria-label":`View pending messages for consumer group ${v}`,onClick:E=>c(v),onKeydown:[an(E=>c(v),["enter"]),an(Ft(E=>c(v),["prevent"]),["space"])]},[a("div",kL,[p[3]||(p[3]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",PL,[a("h3",DL,q(v),1),p[2]||(p[2]=a("span",{class:"group-type"},"Consumer Group",-1))])]),p[4]||(p[4]=a("div",{class:"card-footer"},[a("span",{class:"action-hint"},[a("i",{class:"bi bi-eye"}),te(" View pending messages ")]),a("i",{class:"bi bi-arrow-right action-arrow"})],-1))],40,NL))),128))])):(N(),P("div",RL,[a("div",ML,[p[8]||(p[8]=a("div",{class:"state-icon"},[a("i",{class:"bi bi-people"})],-1)),p[9]||(p[9]=a("h3",{class:"state-title"},"No Consumer Groups Found",-1)),a("p",IL,[i.value?(N(),P(Ae,{key:0},[p[5]||(p[5]=te(" The queue ",-1)),a("strong",null,q(d.value),1),p[6]||(p[6]=te(" 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},[te(" Select a pub/sub queue to view its consumer groups. ")],64))]),i.value?(N(),P("div",qL,[a("button",{type:"button",class:"btn btn-secondary",onClick:h},[...p[7]||(p[7]=[a("i",{class:"bi bi-arrow-clockwise"},null,-1),te(" Refresh ",-1)])])])):he("",!0),p[10]||(p[10]=a("details",{class:"help-section"},[a("summary",{class:"help-summary"},[a("i",{class:"bi bi-question-circle"}),te(" 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))])]))]))}}),FL=Xe(LL,[["__scopeId","data-v-2c88981d"]]),VL=(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 QL(e,t,s=20){const n=b(()=>{const r={};return t.value&&(r.consumerGroupId=t.value),r});return la(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)),VL(r,o,c)},queryKeyPrefix:"pending-messages",enableDelete:!0,enableRequeue:!1},s,n)}const jL={key:0,class:"loading-state"},BL=Ue({__name:"PendingMessagesView",setup(e){const t=It(),s=Dn(),n=Xt(),i=ps(),r=b(()=>i.params.ns),o=b(()=>i.params.queue),l=b(()=>i.query.consumerGroupId),u=b(()=>!r.value||!o.value?null:{ns:r.value,name:o.value});Ye([r,o],([Z,W])=>{Z&&W&&t.selectQueue(Z,W)},{immediate:!0});const d=b(()=>t.selectedQueue),c=b(()=>s.isPubSubQueue),h=b(()=>s.isLoadingQueueProperties),m=b(()=>s.queueProperties),p=b(()=>d.value&&m.value&&c.value&&!l.value),v=b(()=>d.value&&m.value&&(!c.value||l.value)),E=b(()=>d.value&&h.value),_=b(()=>v.value?u.value:null),{messages:S,pagination:C,isLoading:A,isDeleting:g,isRequeuing:$,error:L,goToPage:V,setPageSize:I,refresh:w,deleteMessage:O,requeueMessage:x}=QL(_,l,20),F=b(()=>{if(!d.value)return"Pending Messages";const Z=`${d.value.name}@${d.value.ns}`;return c.value&&l.value?`Pending Messages - ${Z} (${l.value})`:`Pending Messages - ${Z}`}),H=b(()=>{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"}),z=b(()=>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:F.value,subtitle:H.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(Z){O&&await O(Z)}async function ie(Z){x&&await x(Z)}function G(Z){V(Z)}async function X(Z){await I(Z)}return(Z,W)=>(N(),at(ms,{"show-section-header":!1},{default:qe(()=>[E.value?(N(),P("div",jL,[...W[4]||(W[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)])])):p.value?(N(),at(FL,{key:1,"show-section-header":!1})):v.value?(N(),at(oa,{key:2,messages:T(S),"is-loading":T(A),error:T(L),pagination:T(C),"show-pagination":!0,"empty-message":z.value,icon:"bi-hourglass-split","is-deleting":T(g),"is-requeuing":T($),onRefresh:T(w),onDeleteMessage:fe,onRequeueMessage:ie,onPageChange:G,onPageSizeChange:X,onFirstPage:W[0]||(W[0]=se=>G(1)),onPreviousPage:W[1]||(W[1]=se=>G(T(C).currentPage-1)),onNextPage:W[2]||(W[2]=se=>G(T(C).currentPage+1)),onLastPage:W[3]||(W[3]=se=>G(T(C).totalPages))},null,8,["messages","is-loading","error","pagination","empty-message","is-deleting","is-requeuing","onRefresh"])):he("",!0)]),_:1}))}}),UL=Xe(BL,[["__scopeId","data-v-30086d3d"]]);function KL(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 HL={class:"queue-info-card"},GL={class:"card-header"},WL={class:"header-actions"},zL=["disabled"],YL={class:"card-content"},ZL={key:0,class:"content-state loading-state"},JL={key:1,class:"content-state error-state",role:"alert"},XL={class:"error-content"},eF={key:2,class:"queue-details-wrapper"},tF={class:"info-section"},sF={class:"info-grid"},nF={class:"info-item"},iF={class:"info-content"},rF={class:"info-details"},aF={class:"info-value"},oF=["title"],lF={class:"info-item"},uF={class:"info-content"},cF={class:"info-details"},dF={class:"info-value"},fF=["title"],hF={class:"info-item"},pF={class:"info-content"},mF={class:"info-details"},gF={class:"info-value"},vF=["title"],bF={class:"info-item"},yF={class:"info-content"},_F={class:"info-details"},EF={class:"info-value"},wF=["title"],CF={class:"info-section"},AF={class:"info-grid"},SF={class:"info-item"},xF={class:"info-content"},$F={class:"info-details"},TF={class:"info-value"},OF={class:"rate-limit"},NF={class:"info-section"},kF={class:"info-grid stats-grid"},PF=["role","onClick"],DF={class:"info-content"},RF={class:"info-details"},MF={class:"info-label"},IF={class:"info-value stat-value"},qF={key:0,class:"info-arrow","aria-hidden":"true"},LF={key:3,class:"content-state empty-state"},FF=Ue({__name:"QueuePropertiesCard",setup(e){const t=It(),s=Dn(),n=os(),i=b(()=>t.selectedQueue),r=b(()=>s.queueProperties?.data),o=b(()=>s.isLoadingQueueProperties),l=b(()=>{const A=s.queuePropertiesError?.error;return A?`Failed to load queue information: ${A.message}`:null}),u=b(()=>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 m(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 p(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 v(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 S(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 g=A.interval/1e3;return`${A.limit} msg / ${g}s`}return(A,g)=>(N(),P("div",HL,[a("header",GL,[g[0]||(g[0]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-info-circle-fill title-icon"}),te(" Queue Details ")]),a("p",{class:"card-subtitle"}," Configuration and real-time statistics for the selected queue ")],-1)),a("div",WL,[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,zL)])]),a("main",YL,[o.value?(N(),P("div",ZL,[...g[1]||(g[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",JL,[a("div",XL,[g[2]||(g[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},[...g[3]||(g[3]=[a("i",{class:"bi bi-arrow-clockwise me-1","aria-hidden":"true"},null,-1),te(" Retry ",-1)])])])):i.value&&r.value?(N(),P("div",eF,[a("section",tF,[g[12]||(g[12]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-gear-fill","aria-hidden":"true"}),te(" Configuration ")],-1)),a("div",sF,[a("div",nF,[a("div",iF,[g[5]||(g[5]=a("div",{class:"info-icon queue-name-icon"},[a("i",{class:"bi bi-tag-fill","aria-hidden":"true"})],-1)),a("div",rF,[g[4]||(g[4]=a("div",{class:"info-label"},"Queue Name",-1)),a("div",aF,[a("span",{class:"queue-name",title:i.value.name},q(i.value.name),9,oF)])])])]),a("div",lF,[a("div",uF,[g[7]||(g[7]=a("div",{class:"info-icon namespace-icon"},[a("i",{class:"bi bi-folder-fill","aria-hidden":"true"})],-1)),a("div",cF,[g[6]||(g[6]=a("div",{class:"info-label"},"Namespace",-1)),a("div",dF,[a("span",{class:"namespace",title:i.value.ns},q(i.value.ns),9,fF)])])])]),a("div",hF,[a("div",pF,[g[9]||(g[9]=a("div",{class:"info-icon queue-type-icon"},[a("i",{class:"bi bi-list-ol","aria-hidden":"true"})],-1)),a("div",mF,[g[8]||(g[8]=a("div",{class:"info-label"},"Queue Type",-1)),a("div",gF,[a("span",{class:De(["queue-type-badge",p(r.value.queueType)]),title:v(r.value.queueType)},q(m(r.value.queueType)),11,vF)])])])]),a("div",bF,[a("div",yF,[g[11]||(g[11]=a("div",{class:"info-icon delivery-model-icon"},[a("i",{class:"bi bi-arrow-left-right","aria-hidden":"true"})],-1)),a("div",_F,[g[10]||(g[10]=a("div",{class:"info-label"},"Delivery Model",-1)),a("div",EF,[a("span",{class:De(["delivery-model-badge",_(r.value.deliveryModel)]),title:S(r.value.deliveryModel)},q(E(r.value.deliveryModel)),11,wF)])])])])])]),a("section",CF,[g[15]||(g[15]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-speedometer2","aria-hidden":"true"}),te(" Rate Limit ")],-1)),a("div",AF,[a("div",SF,[a("div",xF,[g[14]||(g[14]=a("div",{class:"info-icon rate-limit-icon"},[a("i",{class:"bi bi-speedometer2","aria-hidden":"true"})],-1)),a("div",$F,[g[13]||(g[13]=a("div",{class:"info-label"},"Current Limit",-1)),a("div",TF,[a("span",OF,q(C(r.value.rateLimit)),1)])])])])])]),a("section",NF,[g[17]||(g[17]=a("h4",{class:"section-title"},[a("i",{class:"bi bi-bar-chart-line-fill","aria-hidden":"true"}),te(" Message Statistics ")],-1)),a("div",kF,[(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",DF,[a("div",{class:De(["info-icon",$.iconClass])},[a("i",{class:De($.icon),"aria-hidden":"true"},null,2)],2),a("div",RF,[a("div",MF,q($.label),1),a("div",IF,q(h($.value)),1)]),$.routeName?(N(),P("div",qF,[...g[16]||(g[16]=[a("i",{class:"bi bi-chevron-right"},null,-1)])])):he("",!0)])],10,PF))),128))])])])):(N(),P("div",LF,[...g[18]||(g[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)])]))])]))}}),VF=Xe(FF,[["__scopeId","data-v-38070cee"]]),QF=Pc({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 jF(){const e=Dc(QF),{errors:t,values:s,meta:n,resetForm:i,handleSubmit:r,setFieldValue:o,setValues:l}=Yo({validationSchema:e});return{errors:t,values:s,meta:n,resetForm:i,handleSubmit:r,setFieldValue:o,setValues:l,validationSchema:e}}const BF={class:"form-content"},UF={class:"form-section"},KF={class:"form-group"},HF={key:0,class:"error-section"},GF={class:"error-content"},WF={class:"error-text"},zF={class:"error-message"},YF=["disabled"],ZF=["disabled"],JF=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}=jF();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(()=>[we(T(yv),{id:"create-consumer-group-form","validation-schema":T(o),onSubmit:u},{default:qe(()=>[a("div",BF,[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"}),te(" Group Information ")]),a("p",{class:"section-description"}," Define the consumer group identifier ")],-1)),a("div",KF,[h[0]||(h[0]=a("label",{for:"consumerGroupName",class:"form-label"},[a("i",{class:"bi bi-tag-fill label-icon"}),te(" Consumer Group Name "),a("span",{class:"required-indicator"},"*")],-1)),ss(we(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]]),we(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"}),te(" 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"}),te(" 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",HF,[a("div",GF,[h[4]||(h[4]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill"})],-1)),a("div",WF,[h[3]||(h[3]=a("h4",{class:"error-title"},"Creation Failed",-1)),a("p",zF,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),te(" Cancel ",-1)])],8,YF),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]=te(" 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]=te(" Create Consumer Group ",-1))],64))],8,ZF)]),_:1},8,["is-visible"]))}}),XF=Xe(JF,[["__scopeId","data-v-0a3bbba0"]]),e2={class:"dialog-body"},t2={class:"confirmation-message"},s2={class:"consumer-group-details"},n2={class:"group-info"},i2={class:"group-content"},r2=["title"],a2={key:0,class:"error-section",role:"alert"},o2={class:"error-content"},l2={class:"error-text"},u2={class:"error-message"},c2={class:"actions"},d2=["disabled"],f2=["disabled"],h2=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",e2,[a("section",t2,[o[2]||(o[2]=a("p",{class:"message-text"}," Are you sure you want to permanently delete the following consumer group? ",-1)),a("div",s2,[a("div",n2,[o[1]||(o[1]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill","aria-hidden":"true"})],-1)),a("div",i2,[o[0]||(o[0]=a("div",{class:"group-label"},"Consumer Group",-1)),a("div",{class:"group-name",title:e.consumerGroup},q(e.consumerGroup),9,r2)])])])]),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",a2,[a("div",o2,[o[4]||(o[4]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-circle-fill","aria-hidden":"true"})],-1)),a("div",l2,[o[3]||(o[3]=a("h4",{class:"error-title"},"Deletion Failed",-1)),a("p",u2,q(e.error),1)])])])):he("",!0)])]),footer:qe(()=>[a("div",c2,[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),te(" Cancel ",-1)])],8,d2),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]=te(" 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]=te(" Delete Consumer Group ",-1))],64))],8,f2)])]),_:1},8,["is-visible"]))}}),p2=Xe(h2,[["__scopeId","data-v-5d5b710f"]]);function m2(){const e=ps(),t=b(()=>{const u=e.params.ns;return Array.isArray(u)?u[0]:u}),s=b(()=>{const u=e.params.queue;return Array.isArray(u)?u[0]:u}),n=b(()=>!!(t.value&&s.value)),i=b(()=>!!(t.value&&t.value.length>0)),r=b(()=>!!(s.value&&s.value.length>0)),o=b(()=>t.value||"Unknown"),l=b(()=>s.value||"Unknown");return{ns:t,queueName:s,hasValidParams:n,isValidNamespace:i,isValidQueueName:r,displayNamespace:o,displayQueueName:l}}const g2={key:0,class:"consumer-groups-card"},v2={class:"card-header"},b2={class:"header-actions"},y2=["disabled"],_2={class:"card-content"},E2={key:0,class:"content-state not-supported-state"},w2={key:0,class:"content-state loading-state"},C2={key:1,class:"content-state error-state"},A2={class:"error-content"},S2={class:"error-text"},x2={class:"error-message"},$2={key:2,class:"content-state empty-state"},T2={class:"state-content"},O2=["disabled"],N2={key:3,class:"consumer-groups-content"},k2={class:"groups-header"},P2={class:"groups-count"},D2={class:"count-number"},R2={class:"count-label"},M2=["disabled"],I2={class:"consumer-groups-list"},q2={class:"group-info"},L2={class:"group-details"},F2={class:"group-name"},V2={class:"group-actions"},Q2=["disabled","onClick"],j2=Ue({__name:"ConsumerGroupsCard",setup(e){const t=It(),s=Dn(),n=qv(),i=be(!1),r=be(!1),o=be(null),{ns:l,queueName:u}=m2();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=b(()=>s.isPubSubQueue),m=b(()=>!h.value||!n.consumerGroups.value?.data?[]:n.sortedConsumerGroups.value),p=b(()=>n.hasConsumerGroups.value),v=b(()=>{const w=n.consumerGroupsError.value?.error;if(w)return w.message?w.message:"Failed to load consumer groups"}),E=b(()=>{const w=n.createConsumerGroupError.value?.error;if(w)return w.message?w.message:"Failed to create consumer group"}),_=b(()=>{const w=n.deleteConsumerGroupError.value?.error;if(w)return w.message?w.message:"Failed to delete consumer group"}),S=b(()=>n.isDeletingConsumerGroup.value),C=b(()=>n.isCreatingConsumerGroup.value),A=b(()=>n.isLoadingConsumerGroups.value);function g(){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 V(){i.value=!1,n.resetCreateConsumerGroupMutation()}function I(){c(),n.resetDeleteConsumerGroupMutation()}return(w,O)=>T(t).selectedQueue?(N(),P("div",g2,[a("header",v2,[O[2]||(O[2]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-people-fill title-icon"}),te(" Consumer Groups ")]),a("p",{class:"card-subtitle"}," Manage message consumer groups for pub/sub queues ")],-1)),a("div",b2,[h.value?(N(),P("button",{key:0,class:"btn btn-refresh",disabled:A.value,title:"Refresh consumer groups",onClick:g},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:A.value}])},null,2)],8,y2)):he("",!0)])]),a("main",_2,[h.value?(N(),P(Ae,{key:1},[A.value?(N(),P("div",w2,[...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)])])):v.value?(N(),P("div",C2,[a("div",A2,[O[6]||(O[6]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",S2,[O[5]||(O[5]=a("h5",{class:"error-title"},"Failed to load consumer groups",-1)),a("p",x2,q(v.value),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:g},[...O[7]||(O[7]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),te(" Try Again ",-1)])])])])):p.value?(N(),P("div",N2,[a("div",k2,[a("div",P2,[a("span",D2,q(m.value.length),1),a("span",R2,"Consumer Group"+q(m.value.length!==1?"s":""),1)]),a("button",{class:"btn btn-primary btn-create",disabled:C.value,onClick:O[1]||(O[1]=x=>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]=te(" 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]=te(" Create Group ",-1))],64))],8,M2)]),a("div",I2,[(N(!0),P(Ae,null,bt(m.value,x=>(N(),P("div",{key:x,class:"consumer-group-item"},[a("div",q2,[O[18]||(O[18]=a("div",{class:"group-icon"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",L2,[a("div",F2,q(x),1),O[17]||(O[17]=a("div",{class:"group-description"}," Consumer group for message processing ",-1))])]),a("div",V2,[a("button",{class:"btn btn-outline-danger btn-delete",disabled:S.value,title:"Delete consumer group",onClick:F=>d(x)},[S.value&&o.value===x?(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]=te(" 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]=te(" Delete ",-1))],64))],8,Q2)])]))),128))])])):(N(),P("div",$2,[a("div",T2,[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]=x=>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]=te(" 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]=te(" Create Your First Consumer Group ",-1))],64))],8,O2)])]))],64)):(N(),P("div",E2,[...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)])]))]),we(XF,{"is-visible":i.value,"is-creating":C.value,"create-error":E.value,onSubmit:$,onClose:V},null,8,["is-visible","is-creating","create-error"]),we(p2,{error:_.value,"is-pending":S.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)}}),B2=Xe(j2,[["__scopeId","data-v-2744aa11"]]),U2=(e,t,s)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"GET",signal:s})),K2=(e,t)=>["api","v1","namespaces",e,"queues",t,"rate-limit"],H2=(e,t,s)=>{const{query:n}=s??{};return{queryKey:K2(e,t),queryFn:({signal:o})=>U2(e,t,o),enabled:b(()=>!!(T(e)&&T(t))),...n}};function G2(e,t,s,n){const i=H2(e,t,s),r=Jt(i);return r.queryKey=T(i).queryKey,r}const W2=(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})),z2=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 W2(r,o,l)},...s}},Y2=(e,t)=>{const s=z2(e);return Nt(s)},Z2=(e,t)=>(e=T(e),t=T(t),Je({url:`/api/v1/namespaces/${e}/queues/${t}/rate-limit`,method:"DELETE"})),J2=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 Z2(r,o)},...s}},X2=(e,t)=>{const s=J2(e);return Nt(s)};function eV(){const e=It(),t=G2(b(()=>e.selectedQueue?.ns||""),b(()=>e.selectedQueue?.name||""),{query:{enabled:b(()=>!!e.selectedQueue?.ns&&!!e.selectedQueue?.name),retry:!1}}),s=Y2({mutation:{onSuccess:async()=>{await t.refetch()}}}),n=X2({mutation:{onSuccess:async()=>{await t.refetch()}}}),i=b(()=>t.data.value),r=b(()=>t.isLoading.value),o=b(()=>s.isPending.value),l=b(()=>n.isPending.value),u=b(()=>r.value||o.value||l.value),d=b(()=>t.error.value),c=b(()=>s.error.value),h=b(()=>n.error.value),m=b(()=>d.value||c.value||h.value),p=b(()=>!!i.value?.data);async function v($){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 S(){return e.selectedQueue?t.refetch():Promise.resolve()}function C(){s.reset()}function A(){n.reset()}function g(){s.reset(),n.reset()}return{rateLimitQuery:t,setRateLimitMutation:s,clearRateLimitMutation:n,rateLimit:i,isLoading:u,isLoadingRateLimit:r,isUpdatingRateLimit:o,isClearingRateLimit:l,error:m,rateLimitError:d,setRateLimitError:c,clearRateLimitError:h,hasRateLimit:p,setRateLimit:v,clearRateLimit:E,refreshRateLimit:_,refetchRateLimitData:S,resetSetRateLimitMutation:C,resetClearRateLimitMutation:A,resetAllMutations:g}}const tV={class:"body"},sV={class:"message"},nV={class:"subject"},iV=["disabled"],rV=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=b(()=>{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",tV,[a("p",sV,[d[0]||(d[0]=te(" Are you sure you want to clear the rate limit for ",-1)),a("strong",nV,q(i.value),1),d[1]||(d[1]=te("? ",-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]=te(" 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]=te(" Clear rate limit ",-1))],64))],8,iV)]),_:1},8,["is-visible"]))}}),aV=Xe(rV,[["__scopeId","data-v-22e684ae"]]),oV={key:0,class:"rate-limit-card"},lV={class:"card-header"},uV={class:"header-actions"},cV=["disabled"],dV={class:"card-content"},fV={key:0,class:"content-state loading-state"},hV={key:1,class:"content-state error-state"},pV={class:"error-content"},mV={class:"error-text"},gV={class:"error-message"},vV={key:2,class:"rate-limit-content"},bV={key:0,class:"rate-limit-display"},yV={key:0,class:"no-limit-section"},_V={class:"no-limit-actions"},EV=["disabled"],wV={key:1,class:"rate-limit-info"},CV={class:"rate-limit-status"},AV={class:"rate-limit-details"},SV={class:"rate-limit-value"},xV={class:"rate-limit-interval"},$V={class:"rate-limit-actions"},TV=["disabled"],OV=["disabled"],NV={key:1,class:"rate-limit-form"},kV={class:"form-header"},PV={class:"form-title"},DV={class:"form-body"},RV={class:"form-grid"},MV={class:"form-group"},IV={class:"form-group"},qV={class:"input-group"},LV={class:"rate-limit-preview"},FV={class:"preview-content"},VV={class:"preview-text"},QV={class:"form-footer"},jV=["disabled"],BV=["disabled"],UV={key:1,class:"content-state empty-state"},KV=Ue({__name:"QueueRateLimitCard",setup(e){const t=It(),s=eV(),n=b(()=>t.selectedQueue),i=Pc({limit:Fh().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:Fh().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=Dc(i),o={limit:100,interval:1,intervalUnit:"1000"},l=be(!1),u=b(()=>s.isClearingRateLimit.value||s.isUpdatingRateLimit.value),d=be(!1),c=be(o),h=b(()=>s.isLoadingRateLimit.value),m=b(()=>{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}),p=b(()=>s.rateLimit.value?.data||null),v=b(()=>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 S(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(p,I=>{if(I){const{interval:w,intervalUnit:O}=S(I.interval);c.value={limit:I.limit,interval:w,intervalUnit:O}}else c.value=o},{immediate:!0});function C(){s.refreshRateLimit()}function A(){if(v.value&&p.value){const{interval:I,intervalUnit:w}=S(p.value.interval);c.value={limit:p.value.limit,interval:I,intervalUnit:w}}else c.value=o;l.value=!0}async function g(I){const{interval:w,limit:O,intervalUnit:x}=I;try{const F=w*parseInt(x);if(F<1e3){alert("Minimum interval is 1 second (1000ms)");return}const H={limit:O,interval:F};await s.setRateLimit(H),l.value=!1}catch(F){console.error("Error saving rate limit:",F)}}async function $(){try{await s.clearRateLimit(),d.value=!1}catch(I){console.error("Error clearing rate limit:",I)}}function L(){d.value=!0}function V(){l.value=!1}return Bt(()=>{C()}),(I,w)=>n.value?(N(),P("div",oV,[a("header",lV,[w[1]||(w[1]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-speedometer2 title-icon"}),te(" Rate Limiting ")]),a("p",{class:"card-subtitle"},"Control message processing speed")],-1)),a("div",uV,[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,cV)])]),a("main",dV,[n.value?(N(),P(Ae,{key:0},[h.value?(N(),P("div",fV,[...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)])])):m.value?(N(),P("div",hV,[a("div",pV,[w[4]||(w[4]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger"})],-1)),a("div",mV,[w[3]||(w[3]=a("h5",{class:"error-title"},"Failed to load rate limit settings",-1)),a("p",gV,q(m.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),te(" Try Again ",-1)])])])])):(N(),P("div",vV,[l.value?he("",!0):(N(),P("div",bV,[v.value?(N(),P("div",wV,[a("div",CV,[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"}),te(" Active ")])],-1)),a("div",AV,[a("h4",SV,[te(q(p.value?.limit||0)+" messages ",1),a("span",xV," per "+q(E(p.value?.interval)),1)]),w[8]||(w[8]=a("p",{class:"rate-limit-description"}," Current rate limiting configuration for this queue ",-1))])]),a("div",$V,[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),te(" Edit ",-1)])],8,TV),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),te(" Clear ",-1)])],8,OV)])])):(N(),P("div",yV,[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",_V,[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),te(" Set Rate Limit ",-1)])],8,EV)])]))])),l.value?(N(),P("div",NV,[a("div",kV,[a("h4",PV,q(v.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))]),we(T(yv),{"initial-values":c.value,"validation-schema":T(r),onSubmit:g},{default:qe(()=>[a("div",DV,[a("div",RV,[a("div",MV,[w[13]||(w[13]=a("label",{for:"limit",class:"form-label"},[a("i",{class:"bi bi-hash me-1"}),te(" Message Limit ")],-1)),we(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"]),we(T(Jn),{name:"limit",class:"field-error"}),w[14]||(w[14]=a("div",{class:"field-help"},"Maximum messages to process",-1))]),a("div",IV,[w[16]||(w[16]=a("label",{for:"interval",class:"form-label"},[a("i",{class:"bi bi-clock me-1"}),te(" Time Interval ")],-1)),a("div",qV,[we(T(Ns),{id:"interval",name:"interval",type:"number",class:"form-control",min:"1",required:"",disabled:u.value,placeholder:"e.g. 1"},null,8,["disabled"]),we(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})]),we(T(Jn),{name:"interval",class:"field-error"}),w[17]||(w[17]=a("div",{class:"field-help"},"Minimum interval is 1 second",-1))])]),a("div",LV,[a("div",FV,[w[20]||(w[20]=a("i",{class:"bi bi-info-circle preview-icon"},null,-1)),a("div",VV,[w[18]||(w[18]=te(" This will limit the queue to processing ",-1)),we(T(Ns),{name:"limit"},{default:qe(({field:O})=>[a("strong",null,q(O.value||0),1)]),_:1}),w[19]||(w[19]=te(" messages per ",-1)),we(T(Ns),{name:"interval"},{default:qe(({field:O})=>[a("strong",null,q(O.value||1),1)]),_:1}),we(T(Ns),{name:"intervalUnit"},{default:qe(({field:O})=>[a("strong",null,q(_(O.value))+"(s)",1)]),_:1})])])])]),a("div",QV,[a("button",{type:"button",class:"btn btn-outline-secondary btn-cancel",disabled:u.value,onClick:V}," Cancel ",8,jV),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]=te(" 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]=te(" Save Rate Limit ",-1))],64))],8,BV)])]),_:1},8,["initial-values","validation-schema"])])):he("",!0)]))],64)):(N(),P("div",UV,[...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)])]))]),we(aV,{"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)}}),HV=Xe(KV,[["__scopeId","data-v-43b7689a"]]),Ll=5e3;function GV(){const e=It(),t=be(Ll),s=lO(b(()=>e.selectedQueue?.ns||""),b(()=>e.selectedQueue?.name||""),{query:{enabled:b(()=>!!e.selectedQueue?.ns&&!!e.selectedQueue?.name),refetchInterval:b(()=>t.value),refetchIntervalInBackground:!1}}),n=b(()=>s.data.value),i=b(()=>s.isLoading.value),r=b(()=>s.isRefetching.value),o=b(()=>s.error.value),l=b(()=>n.value?.data?Object.entries(n.value.data).map(([X,Z])=>({id:X,consumerId:X,...Z})):[]),u=b(()=>n.value?.data||{}),d=b(()=>Object.keys(u.value)),c=b(()=>l.value.length>0),h=b(()=>[...l.value].sort((X,Z)=>X.id.localeCompare(Z.id))),m=b(()=>[...l.value].sort((X,Z)=>Z.createdAt-X.createdAt)),p=b(()=>[...l.value].sort((X,Z)=>X.hostname.localeCompare(Z.hostname))),v=b(()=>l.value.length),E=b(()=>{const X={};return l.value.forEach(Z=>{X[Z.hostname]||(X[Z.hostname]=[]),X[Z.hostname].push(Z)}),X}),_=b(()=>[...new Set(l.value.map(X=>X.hostname))].sort()),S=b(()=>{const X={total:l.value.length,uniqueHostnames:_.value.length,averageCreatedAt:0,oldestConsumer:null,newestConsumer:null};if(l.value.length>0){const Z=l.value.reduce((se,ue)=>se+ue.createdAt,0);X.averageCreatedAt=Z/l.value.length;const W=[...l.value].sort((se,ue)=>se.createdAt-ue.createdAt);X.oldestConsumer=W[0],X.newestConsumer=W[W.length-1]}return X});async function C(){await s.refetch()}function A(){return e.selectedQueue?s.refetch():Promise.resolve()}function g(){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(X){return l.value.find(Z=>Z.id===X)||null}function V(X){return u.value[X]||null}function I(X){return l.value.filter(Z=>Z.hostname===X)}function w(X){return l.value.filter(Z=>Z.pid===X)}function O(X){return l.value.filter(Z=>Z.createdAt>X)}function x(X){return l.value.filter(Z=>Z.createdAt<X)}function F(X){const Z=X.toLowerCase();return l.value.filter(W=>W.id.toLowerCase().includes(Z)||W.hostname.toLowerCase().includes(Z)||W.pid.toString().includes(Z)||W.ipAddress.some(se=>se.includes(X)))}function H(X){return!!X&&X.trim().length>0}function z(X){return X in u.value}function fe(){return!!e.selectedQueue?.ns&&!!e.selectedQueue?.name}function ie(){return e.selectedQueue?`${e.selectedQueue.ns}/${e.selectedQueue.name}`:""}function G(X){return Date.now()-X.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:m,sortedConsumersByHostname:p,consumerCount:v,consumersByHostname:E,uniqueHostnames:_,consumerStats:S,refreshConsumers:C,refetchConsumersData:A,enableRealTimeUpdates:g,disableRealTimeUpdates:$,findConsumerById:L,getConsumerData:V,getConsumersByHostname:I,getConsumersByPid:w,getConsumersCreatedAfter:O,getConsumersCreatedBefore:x,searchConsumers:F,isValidConsumerId:H,hasConsumerWithId:z,isValidQueue:fe,getQueueDisplayName:ie,getConsumerUptime:G}}const WV={key:0,class:"queue-consumers-card"},zV={class:"card-header"},YV={class:"header-actions"},ZV=["title"],JV=["disabled"],XV={class:"card-content"},eQ={key:0,class:"content-state loading-state"},tQ={key:1,class:"content-state error-state",role:"alert"},sQ={class:"error-content"},nQ={class:"error-text"},iQ={class:"error-message"},rQ={key:2,class:"content-state empty-state"},aQ={class:"state-content"},oQ={class:"empty-info"},lQ={class:"info-item"},uQ={key:3,class:"consumers-content"},cQ={class:"consumers-stats",role:"group","aria-label":"Consumers statistics"},dQ={class:"stat-item"},fQ={class:"stat-content"},hQ={class:"stat-number"},pQ={class:"stat-item"},mQ={class:"stat-content"},gQ={class:"stat-number"},vQ={key:0,class:"stat-item"},bQ={class:"stat-content"},yQ={class:"stat-number"},_Q={class:"consumers-filters"},EQ={class:"filter-group"},wQ={class:"filter-group"},CQ=["value"],AQ={class:"consumers-header"},SQ={class:"consumers-count"},xQ={key:0,class:"filtered-count"},$Q={class:"indicator-text"},TQ={class:"consumers-list"},OQ={class:"consumer-header"},NQ={class:"consumer-id"},kQ=["title"],PQ={class:"consumer-status"},DQ=["title"],RQ={class:"consumer-details"},MQ={class:"detail-row"},IQ={class:"detail-item"},qQ=["title"],LQ={class:"detail-item"},FQ=["title"],VQ={class:"detail-row"},QQ={class:"detail-item"},jQ={class:"detail-value uptime"},BQ={class:"detail-item"},UQ={class:"detail-value created-at"},KQ={class:"detail-row"},HQ={class:"detail-item ip-addresses"},GQ={class:"ip-list"},WQ=Ue({__name:"QueueConsumersCard",setup(e){const t=It(),s=GV(),n=be(!0),i=be(""),r=be(""),o=b(()=>s.consumersArray.value),l=b(()=>s.isLoadingConsumers.value),u=b(()=>s.isRefetchingConsumers.value),d=b(()=>s.consumersError.value),c=b(()=>s.hasConsumers.value),h=b(()=>s.consumerStats.value),m=b(()=>s.uniqueHostnames.value),p=b(()=>{let A=o.value;return i.value&&(A=A.filter(g=>g.hostname===i.value)),r.value.trim()&&(A=s.searchConsumers(r.value)),A});function v(){s.refreshConsumers()}function E(){n.value=!n.value,n.value?s.enableRealTimeUpdates():s.disableRealTimeUpdates()}function _(){i.value="",r.value=""}function S(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,g)=>T(t).selectedQueue?(N(),P("div",WV,[a("header",zV,[g[2]||(g[2]=a("div",{class:"header-content"},[a("h3",{class:"card-title"},[a("i",{class:"bi bi-people-fill title-icon"}),te(" Queue Consumers ")]),a("p",{class:"card-subtitle"}," Active consumers processing messages from this queue ")],-1)),a("div",YV,[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,ZV),a("button",{class:"btn btn-refresh",disabled:l.value,title:"Refresh consumers",onClick:v},[a("i",{class:De(["bi bi-arrow-clockwise",{spinning:u.value}])},null,2)],8,JV)])]),a("main",XV,[l.value?(N(),P("div",eQ,[...g[3]||(g[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",tQ,[a("div",sQ,[g[5]||(g[5]=a("div",{class:"error-icon"},[a("i",{class:"bi bi-exclamation-triangle-fill text-danger","aria-hidden":"true"})],-1)),a("div",nQ,[g[4]||(g[4]=a("h5",{class:"error-title"},"Failed to load consumers",-1)),a("p",iQ,q(T(dt)(d.value)?.message),1)])]),a("div",{class:"error-actions"},[a("button",{class:"btn btn-primary",onClick:v},[...g[6]||(g[6]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),te(" Try Again ",-1)])])])])):c.value?(N(),P("div",uQ,[a("div",cQ,[a("div",dQ,[g[13]||(g[13]=a("div",{class:"stat-icon total-icon","aria-hidden":"true"},[a("i",{class:"bi bi-people-fill"})],-1)),a("div",fQ,[a("div",hQ,q(h.value.total),1),g[12]||(g[12]=a("div",{class:"stat-label"},"Total Consumers",-1))])]),a("div",pQ,[g[15]||(g[15]=a("div",{class:"stat-icon hostnames-icon","aria-hidden":"true"},[a("i",{class:"bi bi-hdd-network-fill"})],-1)),a("div",mQ,[a("div",gQ,q(h.value.uniqueHostnames),1),g[14]||(g[14]=a("div",{class:"stat-label"},"Unique Hosts",-1))])]),h.value.newestConsumer?(N(),P("div",vQ,[g[17]||(g[17]=a("div",{class:"stat-icon newest-icon","aria-hidden":"true"},[a("i",{class:"bi bi-clock-fill"})],-1)),a("div",bQ,[a("div",yQ,q(T(Wh)(h.value.newestConsumer?.createdAt)),1),g[16]||(g[16]=a("div",{class:"stat-label"},"Newest Consumer",-1))])])):he("",!0)]),a("div",_Q,[a("div",EQ,[g[18]||(g[18]=a("label",{class:"filter-label",for:"consumers-search"},"Search:",-1)),ss(a("input",{id:"consumers-search","onUpdate:modelValue":g[0]||(g[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",wQ,[g[20]||(g[20]=a("label",{class:"filter-label",for:"hostname-select"},"Hostname:",-1)),ss(a("select",{id:"hostname-select","onUpdate:modelValue":g[1]||(g[1]=$=>i.value=$),class:"form-select filter-select"},[g[19]||(g[19]=a("option",{value:""},"All Hostnames",-1)),(N(!0),P(Ae,null,bt(m.value,$=>(N(),P("option",{key:$,value:$},q($),9,CQ))),128))],512),[[Um,i.value]])]),i.value||r.value?(N(),P("button",{key:0,class:"btn btn-outline-secondary btn-clear-filters",onClick:_},[...g[21]||(g[21]=[a("i",{class:"bi bi-x-circle me-1","aria-hidden":"true"},null,-1),te(" Clear ",-1)])])):he("",!0)]),a("div",AQ,[a("h5",SQ,[te(q(p.value.length)+" Consumer"+q(p.value.length!==1?"s":"")+" ",1),p.value.length!==o.value.length?(N(),P("span",xQ," (filtered from "+q(o.value.length)+") ",1)):he("",!0)]),a("div",{class:De(["real-time-indicator",{active:n.value}]),role:"status","aria-live":"polite"},[g[22]||(g[22]=a("i",{class:"bi bi-circle-fill indicator-dot","aria-hidden":"true"},null,-1)),a("span",$Q,q(n.value?"Live":"Paused"),1)],2)]),a("div",TQ,[(N(!0),P(Ae,null,bt(p.value,$=>(N(),P("div",{key:$.id,class:"consumer-item"},[a("div",OQ,[a("div",NQ,[g[23]||(g[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,kQ)]),a("div",PQ,[a("span",{class:De(["status-badge",S($)]),title:`Consumer status: ${C($)}`},q(C($)),11,DQ)])]),a("div",RQ,[a("div",MQ,[a("div",IQ,[g[24]||(g[24]=a("i",{class:"bi bi-hdd-network detail-icon","aria-hidden":"true"},null,-1)),g[25]||(g[25]=a("span",{class:"detail-label"},"Hostname:",-1)),a("span",{class:"detail-value hostname",title:$.hostname},q($.hostname),9,qQ)]),a("div",LQ,[g[26]||(g[26]=a("i",{class:"bi bi-gear detail-icon","aria-hidden":"true"},null,-1)),g[27]||(g[27]=a("span",{class:"detail-label"},"PID:",-1)),a("span",{class:"detail-value pid",title:String($.pid)},q($.pid),9,FQ)])]),a("div",VQ,[a("div",QQ,[g[28]||(g[28]=a("i",{class:"bi bi-clock detail-icon","aria-hidden":"true"},null,-1)),g[29]||(g[29]=a("span",{class:"detail-label"},"Uptime:",-1)),a("span",jQ,q(T(Wh)($.createdAt)),1)]),a("div",BQ,[g[30]||(g[30]=a("i",{class:"bi bi-calendar detail-icon","aria-hidden":"true"},null,-1)),g[31]||(g[31]=a("span",{class:"detail-label"},"Started:",-1)),a("span",UQ,q(T(Mc)($.createdAt)),1)])]),a("div",KQ,[a("div",HQ,[g[32]||(g[32]=a("i",{class:"bi bi-router detail-icon","aria-hidden":"true"},null,-1)),g[33]||(g[33]=a("span",{class:"detail-label"},"IP Addresses:",-1)),a("div",GQ,[(N(!0),P(Ae,null,bt($.ipAddress,L=>(N(),P("span",{key:L,class:"ip-badge"},q(L),1))),128))])])])])]))),128))])])):(N(),P("div",rQ,[a("div",aQ,[g[9]||(g[9]=a("div",{class:"empty-icon","aria-hidden":"true"},"👥",-1)),g[10]||(g[10]=a("h4",{class:"state-title"},"No Active Consumers",-1)),g[11]||(g[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",oQ,[g[8]||(g[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",lQ,[g[7]||(g[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)}}),zQ=Xe(WQ,[["__scopeId","data-v-a0e686b6"]]),YQ={class:"queue-properties-view"},ZQ={key:0,class:"details-grid"},JQ={class:"details-column-main"},XQ={class:"details-column-secondary"},e4="Queue Details & Management",t4=Ue({__name:"QueuePropertiesView",setup(e){const t=ps(),s=os(),n=Xt(),i=It(),r=Dn(),o=b(()=>t.params.ns),l=b(()=>t.params.queue),u=b(()=>i.selectedQueue),d=b(()=>r.isLoadingQueueProperties),c=b(()=>r.queuePropertiesError),{deleteQueue:h,isDeletingQueue:m,deleteQueueError:p,deleteQueueMutation:v}=Rv(async()=>{await s.push({name:"Queues"})}),E=be(!1);function _(){v.reset(),E.value=!0}function S(){E.value=!1}async function C(){u.value&&await h({ns:u.value.ns,name:u.value.name})}const A=b(()=>{const I=p.value||c.value;return dt(I)}),g=b(()=>c.value?.error?.message==="QueueNotFoundError"),$=b(()=>`${l.value} @ ${o.value}`),L=b(()=>[{id:"delete-queue",label:"Delete",icon:"bi bi-trash",variant:"danger",disabled:d.value||m.value,loading:m.value,handler:_}]);function V(){i.clearSelectedQueue(),s.push({name:"Queues"})}return At(()=>{n.setPageHeader({title:$.value,subtitle:e4,icon:"bi bi-card-list"}),n.setLoadingState(d.value),g.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:V}),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}),KL([{isVisible:E,onEscape:S}]),(I,w)=>(N(),P("div",YQ,[we(ms,null,{default:qe(()=>[u.value?(N(),P("div",ZQ,[a("div",JQ,[we(VF),we(B2)]),a("div",XQ,[we(HV),we(zQ)])])):he("",!0)]),_:1}),we(Mv,{queue:{ns:o.value,name:l.value},"is-deleting":T(m),"is-visible":E.value,onCancel:S,onConfirm:C},null,8,["queue","is-deleting","is-visible"])]))}}),s4=Xe(t4,[["__scopeId","data-v-8e3989c7"]]),n4=(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 i4(e,t=20){return la(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>n4(n,i,{page:r,pageSize:o}),queryKeyPrefix:"scheduled-messages",enableDelete:!0,enableRequeue:!1},t)}const r4=Ue({__name:"ScheduledMessagesView",setup(e){const t=ps(),s=Xt(),n=It(),i=Dn(),r=b(()=>({ns:t.params.ns,name:t.params.queue}));Ye(r,$=>{$.ns&&$.name&&n.selectQueue($.ns,$.name)},{immediate:!0,deep:!0});const o=b(()=>n.selectedQueue),{messages:l,pagination:u,isLoading:d,isDeleting:c,error:h,goToPage:m,setPageSize:p,refresh:v,deleteMessage:E}=i4(r,20),_=b(()=>o.value?`Scheduled Messages - ${`${o.value.name}@${o.value.ns}`}`:"Scheduled Messages"),S=b(()=>{if(o.value)return i.isPubSubQueue?"Pub/Sub Queue":"Point-2-Point Queue"});At(()=>{s.setPageHeader({title:_.value,subtitle:S.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($){m($)}async function g($){await p($)}return($,L)=>(N(),at(ms,{"show-section-header":!1},{default:qe(()=>[o.value?(N(),at(oa,{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(v),onDeleteMessage:C,onPageChange:A,onPageSizeChange:g,onFirstPage:L[0]||(L[0]=V=>A(1)),onPreviousPage:L[1]||(L[1]=V=>A(T(u).currentPage-1)),onNextPage:L[2]||(L[2]=V=>A(T(u).currentPage+1)),onLastPage:L[3]||(L[3]=V=>A(T(u).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","onRefresh"])):he("",!0)]),_:1}))}}),a4=(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 o4(e,t=20){return la(e,{queryFn:async({ns:n,name:i,page:r,pageSize:o})=>a4(n,i,{page:r,pageSize:o}),queryKeyPrefix:"queue-messages",enableDelete:!0,enableRequeue:!0},t)}const l4=Ue({__name:"QueueMessagesView",setup(e){const t=ps(),s=Xt(),n=It(),i=b(()=>({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:m,refresh:p,deleteMessage:v,requeueMessage:E}=o4(i,20),_=b(()=>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 S($){v&&await v($)}async function C($){E&&await E($)}function A($){h($)}async function g($){await m($)}return($,L)=>(N(),at(ms,{"show-section-header":!1},{default:qe(()=>[we(oa,{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(p),onDeleteMessage:S,onRequeueMessage:C,onPageChange:A,onPageSizeChange:g,onFirstPage:L[0]||(L[0]=V=>A(1)),onPreviousPage:L[1]||(L[1]=V=>A(T(o).currentPage-1)),onNextPage:L[2]||(L[2]=V=>A(T(o).currentPage+1)),onLastPage:L[3]||(L[3]=V=>A(T(o).totalPages))},null,8,["messages","is-loading","error","pagination","is-deleting","is-requeuing","onRefresh"])]),_:1}))}}),u4={class:"bind-queue-content"},c4={class:"modal-description","aria-live":"polite"},d4={key:0,class:"error-alert",role:"alert"},f4={class:"error-text"},h4={class:"form-group"},p4=["disabled","aria-invalid"],m4={key:0,id:"queueName-error",class:"field-error",role:"alert"},g4={key:0,class:"form-group"},v4=["disabled","aria-invalid"],b4={key:0,id:"routingKey-error",class:"field-error",role:"alert"},y4={key:1,class:"form-group"},_4=["disabled","aria-invalid"],E4={key:0,id:"bindingPattern-error",class:"field-error",role:"alert"},w4=["disabled"],C4=["disabled"],A4={key:0,class:"loading-spinner","aria-hidden":"true"},S4={key:1,class:"bi bi-link-45deg","aria-hidden":"true"},x4=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=be(""),r=be(""),o=be(""),l=be(""),u=be(""),d=be(""),c=be(null),h=b(()=>`Bind Queue to ${s.exchangeType.charAt(0).toUpperCase()+s.exchangeType.slice(1)} Exchange`),m=b(()=>`${s.exchangeName} • ${s.namespace}`),p=b(()=>{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."}}),v=b(()=>s.exchangeType==="direct"),E=b(()=>s.exchangeType==="topic"),_=b(()=>{const I=i.value.trim().length>0,w=!v.value||r.value.trim().length>0,O=!E.value||o.value.trim().length>0;return I&&w&&O&&!l.value&&!u.value&&!d.value}),S=()=>{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(!v.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)},g=()=>{const I=S(),w=C(),O=A();return I&&w&&O},$=()=>{if(!g()||s.isLoading)return;const I={queueName:i.value.trim()};v.value&&(I.routingKey=r.value.trim()),E.value&&(I.bindingPattern=o.value.trim()),n("confirm",I)},L=()=>{s.isLoading||n("cancel")},V=()=>{i.value="",r.value="",o.value="",l.value="",u.value="",d.value=""};return Ye(()=>s.isVisible,async I=>{I&&(V(),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:m.value,icon:"bi bi-link-45deg",size:"md",onClose:L},{body:qe(()=>[a("div",u4,[a("p",c4,q(p.value),1),e.error?(N(),P("div",d4,[w[6]||(w[6]=a("i",{class:"bi bi-exclamation-triangle-fill","aria-hidden":"true"},null,-1)),a("span",f4,q(e.error),1)])):he("",!0),a("form",{class:"bind-form",onSubmit:Ft($,["prevent"])},[a("div",h4,[w[7]||(w[7]=a("label",{for:"queueName",class:"form-label"},[te(" 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:S,onInput:w[1]||(w[1]=O=>l.value="")},null,42,p4),[[rn,i.value]]),l.value?(N(),P("div",m4,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))]),v.value?(N(),P("div",g4,[w[9]||(w[9]=a("label",{for:"routingKey",class:"form-label"},[te(" 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,v4),[[rn,r.value]]),u.value?(N(),P("div",b4,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",y4,[w[11]||(w[11]=a("label",{for:"bindingPattern",class:"form-label"},[te(" 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,_4),[[rn,o.value]]),d.value?(N(),P("div",E4,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,w4),a("button",{type:"submit",class:"btn btn-primary",disabled:!_.value||e.isLoading,onClick:$},[e.isLoading?(N(),P("span",A4)):(N(),P("i",S4)),te(" "+q(e.isLoading?"Binding...":"Bind Queue"),1)],8,C4)]),_:1},8,["is-visible","title","subtitle"]))}}),Ic=Xe(x4,[["__scopeId","data-v-15924699"]]),$4={class:"unbind-queue-content"},T4={key:0,class:"error-alert",role:"alert"},O4={class:"confirmation-section"},N4={class:"confirmation-content"},k4={class:"confirmation-message"},P4={class:"warning-message"},D4={class:"binding-details"},R4={class:"detail-item"},M4={class:"detail-value queue-name"},I4={class:"detail-item"},q4={class:"detail-value exchange-type"},L4={key:0,class:"detail-item"},F4={class:"detail-label"},V4={class:"detail-value binding-key"},Q4=["disabled"],j4=["disabled"],B4={key:0,class:"loading-spinner","aria-hidden":"true"},U4={key:1,class:"bi bi-unlink","aria-hidden":"true"},K4=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=b(()=>`Unbind Queue from ${s.exchangeType.charAt(0).toUpperCase()+s.exchangeType.slice(1)} Exchange`),r=b(()=>`${s.queueName}`),o=b(()=>{switch(s.exchangeType){case"direct":return s.routingKey;case"topic":return s.bindingPattern;case"fanout":return null;default:return null}}),l=b(()=>{switch(s.exchangeType){case"direct":return"Routing Key";case"topic":return"Binding Pattern";default:return null}}),u=b(()=>{const m=`Are you sure you want to unbind the queue "${s.queueName}"`;return o.value?`${m} with ${l.value?.toLowerCase()} "${o.value}"?`:`${m}?`}),d=b(()=>{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(m,p)=>(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",$4,[e.error?(N(),P("div",T4,[p[0]||(p[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",O4,[p[1]||(p[1]=a("div",{class:"confirmation-icon"},[a("i",{class:"bi bi-question-circle-fill","aria-hidden":"true"})],-1)),a("div",N4,[a("p",k4,q(u.value),1),a("p",P4,q(d.value),1)])]),a("div",D4,[a("div",R4,[p[2]||(p[2]=a("span",{class:"detail-label"},"Queue:",-1)),a("span",M4,q(e.queueName),1)]),a("div",I4,[p[3]||(p[3]=a("span",{class:"detail-label"},"Exchange Type:",-1)),a("span",q4,q(e.exchangeType),1)]),o.value&&l.value?(N(),P("div",L4,[a("span",F4,q(l.value)+":",1),a("span",V4,q(o.value),1)])):he("",!0)])])]),footer:qe(()=>[a("button",{type:"button",class:"btn btn-secondary",disabled:e.isLoading,onClick:h}," Cancel ",8,Q4),a("button",{type:"button",class:"btn btn-danger",disabled:e.isLoading,onClick:c},[e.isLoading?(N(),P("span",B4)):(N(),P("i",U4)),te(" "+q(e.isLoading?"Unbinding...":"Unbind Queue"),1)],8,j4)]),_:1},8,["is-visible","title","subtitle"]))}}),qc=Xe(K4,[["__scopeId","data-v-1556a4bd"]]),H4={class:"exchange-content"},G4={key:0,class:"stats-overview"},W4={class:"stats-grid",role:"group","aria-label":"Exchange stats"},z4={class:"stat-card"},Y4={class:"stat-content"},Z4={class:"stat-value"},J4={class:"stat-label"},X4={class:"stat-card"},e3={class:"stat-content"},t3={class:"stat-value"},s3={class:"stat-label"},n3={key:1,class:"bindings-section","aria-labelledby":"bindings-title"},i3={class:"bindings-list"},r3={class:"binding-header"},a3={class:"routing-key-info"},o3={class:"routing-key-badge",title:"Routing key"},l3={class:"routing-key-text"},u3={class:"queue-count"},c3={key:0,class:"queues-list"},d3={class:"queue-info"},f3={class:"queue-name"},h3=["disabled","aria-label","onClick"],p3={key:1,class:"no-queues"},m3=20,g3=Ue({__name:"ExchangeDirectView",setup(e){const t=ps(),s=os(),n=Xt(),i=fn(),r=b(()=>String(t.params.exchange)),o=b(()=>String(t.params.ns)),l=b(()=>!!r.value&&!!o.value),u=be(!1),d=be(!1),c=be(!1),h=be(null),{data:m,isLoading:p,error:v,refetch:E}=Wg(o,r,{query:{enabled:l}}),_=b(()=>m.value?.data||[]),S=Array.from({length:m3},(W,se)=>{const ue=b(()=>_.value[se]||""),Re=b(()=>l.value&&se<_.value.length&&!!_.value[se]);return zg(o,r,b(()=>({routingKey:ue.value})),{query:{enabled:Re}})}),C=xc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cu(o.value,r.value)}),_.value.forEach(W=>{i.invalidateQueries({queryKey:Au(o.value,r.value,{routingKey:W})})}),d.value=!1},onError:W=>{console.error("Failed to bind queue:",W)}}}),A=px({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cu(o.value,r.value)}),_.value.forEach(W=>{i.invalidateQueries({queryKey:Au(o.value,r.value,{routingKey:W})})}),c.value=!1,h.value=null},onError:W=>{console.error("Failed to unbind queue:",W)}}}),g=b(()=>p.value||S.some((W,se)=>se<_.value.length&&W.isLoading.value)),$=b(()=>!!v.value||S.some((W,se)=>se<_.value.length&&!!W.error.value)),L=b(()=>{if(v.value)return dt(v.value);const W=S.find((se,ue)=>ue<_.value.length&&se.error.value)?.error.value;return W?dt(W):null}),V=b(()=>{const W=[];return _.value.forEach((se,ue)=>{if(ue>=S.length)return;const Ie=S[ue].data?.value?.data||[];W.push({routingKey:se,queues:Ie.map(tt=>({name:tt.name})),totalQueues:Ie.length})}),W}),I=b(()=>V.value.reduce((W,se)=>W+se.totalQueues,0)),w=b(()=>_.value.length),O=b(()=>C.isPending.value),x=b(()=>A.isPending.value),F=()=>{d.value=!0},H=(W,se)=>{h.value={name:W,routingKey:se},c.value=!0},z=()=>{u.value=!0},fe=()=>{E(),S.forEach((W,se)=>{se<_.value.length&&W.refetch()})},ie=async W=>{await C.mutateAsync({ns:o.value,direct:r.value,queue:W.queueName,params:{routingKey:String(W.routingKey)}})},G=async()=>{h.value&&await A.mutateAsync({ns:o.value,direct:r.value,queue:h.value.name,params:{routingKey:h.value.routingKey}})},X=()=>{s.push("/exchanges")},Z=b(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:O.value,loading:O.value,handler:F,tooltip:"Bind a queue to this exchange with a routing key"},{id:"refresh",label:"Refresh",icon:"bi bi-arrow-clockwise",variant:"refresh",disabled:g.value,loading:g.value,handler:fe,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:!1,loading:!1,handler:z,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(Z.value),n.setLoadingState(g.value),$.value?(n.setErrorState(L.value),n.setEmptyState(!1)):!g.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:F})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(W,se)=>(N(),P("div",H4,[we(ms,null,{default:qe(()=>[!g.value&&!$.value&&w.value>0?(N(),P("div",G4,[a("div",W4,[a("div",z4,[se[3]||(se[3]=a("div",{class:"stat-icon routing-keys","aria-hidden":"true"},[a("i",{class:"bi bi-key"})],-1)),a("div",Y4,[a("div",Z4,q(w.value),1),a("div",J4," Routing "+q(w.value===1?"Key":"Keys"),1)])]),a("div",X4,[se[4]||(se[4]=a("div",{class:"stat-icon queues","aria-hidden":"true"},[a("i",{class:"bi bi-box"})],-1)),a("div",e3,[a("div",t3,q(I.value),1),a("div",s3," Bound "+q(I.value===1?"Queue":"Queues"),1)])])])])):he("",!0),!g.value&&!$.value&&V.value.length>0?(N(),P("section",n3,[se[9]||(se[9]=a("h2",{id:"bindings-title",class:"section-title"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"}),te(" Queue Bindings ")],-1)),a("div",i3,[(N(!0),P(Ae,null,bt(V.value,ue=>(N(),P("article",{key:ue.routingKey,class:"binding-card"},[a("header",r3,[a("div",a3,[a("div",o3,[se[5]||(se[5]=a("i",{class:"bi bi-key","aria-hidden":"true"},null,-1)),a("span",l3,q(ue.routingKey),1)]),a("div",u3,q(ue.totalQueues)+" "+q(ue.totalQueues===1?"queue":"queues"),1)])]),ue.queues.length>0?(N(),P("div",c3,[(N(!0),P(Ae,null,bt(ue.queues,Re=>(N(),P("div",{key:`${ue.routingKey}-${Re.name}`,class:"queue-item"},[a("div",d3,[se[6]||(se[6]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",f3,q(Re.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:x.value,"aria-label":`Unbind queue ${Re.name} from routing key ${ue.routingKey}`,onClick:Ie=>H(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,h3)]))),128))])):(N(),P("div",p3,[...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}),we(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:X,onClose:se[0]||(se[0]=ue=>u.value=!1)},null,8,["is-visible","exchange-type","exchange-name","namespace","total-queues","total-routing-keys"]),we(Ic,{"is-visible":d.value,"is-loading":O.value,error:T(dt)(T(C).error.value?.error),"exchange-type":"direct","exchange-name":r.value,namespace:o.value,onConfirm:ie,onCancel:se[1]||(se[1]=ue=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),we(qc,{"is-visible":c.value,"is-loading":x.value,error:T(dt)(T(A).error.value?.error),"queue-name":h.value?.name||"","routing-key":h.value?.routingKey||"","exchange-type":"direct",onConfirm:G,onCancel:se[2]||(se[2]=ue=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name","routing-key"])]))}}),v3=Xe(g3,[["__scopeId","data-v-205a050e"]]),b3={class:"topic-exchange-view"},y3={key:0,class:"stats-overview"},_3={class:"stats-grid"},E3={class:"stat-card"},w3={class:"stat-content"},C3={class:"stat-value"},A3={class:"stat-label"},S3={class:"stat-card"},x3={class:"stat-content"},$3={class:"stat-value"},T3={class:"stat-label"},O3={key:1,class:"bindings-section"},N3={class:"bindings-list"},k3={class:"binding-header"},P3={class:"binding-pattern-info"},D3={class:"binding-pattern-badge",title:"Binding pattern"},R3={class:"binding-pattern-text"},M3={class:"queue-count"},I3={class:"pattern-explanation"},q3={class:"explanation-text"},L3={key:0,class:"queues-list"},F3={class:"queue-info"},V3={class:"queue-name"},Q3=["disabled","aria-label","onClick"],j3={key:1,class:"no-queues"},B3=20,U3=Ue({__name:"ExchangeTopicView",setup(e){const t=ps(),s=os(),n=Xt(),i=fn(),r=b(()=>String(t.params.exchange)),o=b(()=>String(t.params.ns)),l=b(()=>!!(r.value&&o.value)),u=be(!1),d=be(!1),c=be(!1),h=be(null),m=se=>{let ue=se.replace(/\*/g,"word").replace(/#/g,"any.nested.keys");return!se.includes("*")&&!se.includes("#")?se:ue},{data:p,isLoading:v,error:E,refetch:_}=Yg(o,r,{query:{enabled:l}}),S=b(()=>p.value?.data||[]),C=Array.from({length:B3},(se,ue)=>{const Re=b(()=>S.value[ue]||""),Ie=b(()=>l.value&&ue<S.value.length&&!!S.value[ue]);return Zg(o,r,b(()=>({bindingPattern:Re.value})),{query:{enabled:Ie}})}),A=$c({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Su(o.value,r.value)}),S.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)}}}),g=xx({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Su(o.value,r.value)}),S.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)}}}),$=b(()=>v.value||C.some((se,ue)=>ue<S.value.length&&se.isLoading.value)),L=b(()=>!!E.value||C.some((se,ue)=>ue<S.value.length&&!!se.error.value)),V=b(()=>{if(E.value)return dt(E.value);const se=C.find((ue,Re)=>Re<S.value.length&&ue.error.value)?.error.value;return se?dt(se):null}),I=b(()=>{const se=[];return S.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=b(()=>I.value.reduce((se,ue)=>se+ue.totalQueues,0)),O=b(()=>S.value.length),x=b(()=>A.isPending.value),F=b(()=>g.isPending.value),H=()=>{d.value=!0},z=(se,ue)=>{h.value={name:se,bindingPattern:ue},c.value=!0},fe=()=>{u.value=!0},ie=()=>{_(),C.forEach((se,ue)=>{ue<S.value.length&&se.refetch()})},G=async se=>{await A.mutateAsync({ns:o.value,topic:r.value,queue:se.queueName,params:{bindingPattern:String(se.bindingPattern)}})},X=async()=>{h.value&&await g.mutateAsync({ns:o.value,topic:r.value,queue:h.value.name,params:{bindingPattern:h.value.bindingPattern}})},Z=()=>{s.push("/exchanges")},W=b(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:x.value,loading:x.value,handler:H,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:ie,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(W.value),n.setLoadingState($.value),L.value?(n.setErrorState(V.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:H})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(se,ue)=>(N(),P("div",b3,[we(ms,null,{default:qe(()=>[!$.value&&!L.value&&O.value>0?(N(),P("div",y3,[a("div",_3,[a("div",E3,[ue[3]||(ue[3]=a("div",{class:"stat-icon binding-patterns"},[a("i",{class:"bi bi-hash","aria-hidden":"true"})],-1)),a("div",w3,[a("div",C3,q(O.value),1),a("div",A3," Binding "+q(O.value===1?"Pattern":"Patterns"),1)])]),a("div",S3,[ue[4]||(ue[4]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",x3,[a("div",$3,q(w.value),1),a("div",T3," Bound "+q(w.value===1?"Queue":"Queues"),1)])])])])):he("",!0),!$.value&&!L.value&&I.value.length>0?(N(),P("div",O3,[ue[10]||(ue[10]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"}),te(" Queue Bindings ")],-1)),a("div",N3,[(N(!0),P(Ae,null,bt(I.value,Re=>(N(),P("div",{key:Re.bindingPattern,class:"binding-card"},[a("div",k3,[a("div",P3,[a("div",D3,[ue[5]||(ue[5]=a("i",{class:"bi bi-hash","aria-hidden":"true"},null,-1)),a("span",R3,q(Re.bindingPattern),1)]),a("div",M3,q(Re.totalQueues)+" "+q(Re.totalQueues===1?"queue":"queues"),1)]),a("div",I3,[ue[6]||(ue[6]=a("i",{class:"bi bi-info-circle","aria-hidden":"true"},null,-1)),a("span",q3," Matches routing keys like: "+q(m(Re.bindingPattern)),1)])]),Re.queues.length>0?(N(),P("div",L3,[(N(!0),P(Ae,null,bt(Re.queues,Ie=>(N(),P("div",{key:`${Re.bindingPattern}-${Ie.name}`,class:"queue-item"},[a("div",F3,[ue[7]||(ue[7]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",V3,q(Ie.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:F.value,"aria-label":`Unbind queue ${Ie.name} from binding pattern ${Re.bindingPattern}`,onClick:tt=>z(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,Q3)]))),128))])):(N(),P("div",j3,[...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}),we(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:Z,onClose:ue[0]||(ue[0]=Re=>u.value=!1)},null,8,["is-visible","exchange-type","exchange-name","namespace","total-queues","total-binding-patterns"]),we(Ic,{"is-visible":d.value,"is-loading":x.value,error:T(dt)(T(A).error.value?.error),"exchange-type":"topic","exchange-name":r.value,namespace:o.value,onConfirm:G,onCancel:ue[1]||(ue[1]=Re=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),we(qc,{"is-visible":c.value,"is-loading":F.value,error:T(dt)(T(g).error.value?.error),"queue-name":h.value?.name||"","binding-pattern":h.value?.bindingPattern||"","exchange-type":"topic",onConfirm:X,onCancel:ue[2]||(ue[2]=Re=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name","binding-pattern"])]))}}),K3=Xe(U3,[["__scopeId","data-v-00510631"]]),H3={class:"fanout-exchange-view"},G3={key:0,class:"stats-overview"},W3={class:"stats-grid"},z3={class:"stat-card"},Y3={class:"stat-content"},Z3={class:"stat-value"},J3={class:"stat-label"},X3={key:1,class:"exchange-info"},ej={class:"info-card"},tj={class:"info-description"},sj={key:2,class:"queues-section"},nj={class:"queues-grid"},ij={class:"queue-header"},rj={class:"queue-info"},aj={class:"queue-name"},oj=["disabled","aria-label","onClick"],lj=Ue({__name:"ExchangeFanoutView",setup(e){const t=ps(),s=os(),n=Xt(),i=fn(),r=b(()=>String(t.params.exchange)),o=b(()=>String(t.params.ns)),l=b(()=>!!(r.value&&o.value)),u=be(!1),d=be(!1),c=be(!1),h=be(null),{data:m,isLoading:p,error:v,refetch:E}=Gg(o,r,{query:{enabled:l}}),_=Sc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:wu(o.value,r.value)}),d.value=!1},onError:Z=>{console.error("Failed to bind queue:",Z)}}}),S=sx({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:wu(o.value,r.value)}),c.value=!1,h.value=null},onError:Z=>{console.error("Failed to unbind queue:",Z)}}}),C=b(()=>p.value),A=b(()=>!!v.value),g=b(()=>dt(v.value)),$=b(()=>(m.value?.data||[]).map(W=>({name:W.name}))),L=b(()=>$.value.length),V=b(()=>_.isPending.value),I=b(()=>S.isPending.value),w=b(()=>dt(_.error.value?.error)),O=b(()=>dt(S.error.value?.error)),x=()=>{d.value=!0},F=Z=>{h.value=Z,c.value=!0},H=()=>{u.value=!0},z=()=>{E()},fe=async Z=>{await _.mutateAsync({ns:o.value,fanout:r.value,queue:Z.queueName})},ie=async()=>{h.value&&await S.mutateAsync({ns:o.value,fanout:r.value,queue:h.value})},G=()=>{s.push("/exchanges")},X=b(()=>[{id:"bind-queue",label:"Bind Queue",icon:"bi bi-link-45deg",variant:"primary",disabled:V.value,loading:V.value,handler:x,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:z,tooltip:"Refresh exchange data"},{id:"delete-exchange",label:"Delete Exchange",icon:"bi bi-trash",variant:"danger",disabled:!1,loading:!1,handler:H,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(X.value),n.setLoadingState(C.value),A.value?(n.setErrorState(g.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:x})):(n.setErrorState(null),n.setEmptyState(!1))}),Bt(()=>{l.value||s.push("/exchanges")}),(Z,W)=>(N(),P("div",H3,[we(ms,null,{default:qe(()=>[!C.value&&!A.value&&L.value>0?(N(),P("div",G3,[a("div",W3,[a("div",z3,[W[3]||(W[3]=a("div",{class:"stat-icon queues"},[a("i",{class:"bi bi-box","aria-hidden":"true"})],-1)),a("div",Y3,[a("div",Z3,q(L.value),1),a("div",J3," Bound "+q(L.value===1?"Queue":"Queues"),1)])]),W[4]||(W[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",X3,[a("div",ej,[W[7]||(W[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",tj,[W[5]||(W[5]=te(" 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),W[6]||(W[6]=te(" regardless of routing keys. ",-1))])])])):he("",!0),!C.value&&!A.value&&$.value.length>0?(N(),P("div",sj,[W[11]||(W[11]=a("h2",{class:"section-title"},[a("i",{class:"bi bi-box","aria-hidden":"true"}),te(" Bound Queues ")],-1)),a("div",nj,[(N(!0),P(Ae,null,bt($.value,se=>(N(),P("div",{key:se.name,class:"queue-card"},[a("div",ij,[a("div",rj,[W[8]||(W[8]=a("i",{class:"bi bi-box","aria-hidden":"true"},null,-1)),a("span",aj,q(se.name),1)]),a("button",{type:"button",class:"btn-unbind",disabled:I.value,"aria-label":`Unbind queue ${se.name}`,onClick:ue=>F(se.name)},[...W[9]||(W[9]=[a("i",{class:"bi bi-x-circle","aria-hidden":"true"},null,-1),a("span",null,"Unbind",-1)])],8,oj)]),W[10]||(W[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}),we(ia,{"is-visible":u.value,"exchange-type":T(Te).FANOUT,"exchange-name":r.value,namespace:o.value,"total-queues":L.value,onDeleted:G,onClose:W[0]||(W[0]=se=>u.value=!1)},null,8,["is-visible","exchange-type","exchange-name","namespace","total-queues"]),we(Ic,{"is-visible":d.value,"is-loading":V.value,error:w.value,"exchange-type":"fanout","exchange-name":r.value,namespace:o.value,onConfirm:fe,onCancel:W[1]||(W[1]=se=>d.value=!1)},null,8,["is-visible","is-loading","error","exchange-name","namespace"]),we(qc,{"is-visible":c.value,"is-loading":I.value,error:O.value,"queue-name":h.value||"","exchange-type":"fanout",onConfirm:ie,onCancel:W[2]||(W[2]=se=>{c.value=!1,h.value=null})},null,8,["is-visible","is-loading","error","queue-name"])]))}}),uj=Xe(lj,[["__scopeId","data-v-1d5cc708"]]),cj={class:"namespace-exchanges-view"},dj={key:0,class:"namespace-stats"},fj={class:"stats-grid"},hj={class:"stat-card total"},pj={class:"stat-content"},mj={class:"stat-value"},gj={class:"stat-card direct"},vj={class:"stat-content"},bj={class:"stat-value"},yj={class:"stat-card fanout"},_j={class:"stat-content"},Ej={class:"stat-value"},wj={class:"stat-card topic"},Cj={class:"stat-content"},Aj={class:"stat-value"},Sj={key:1,class:"namespace-info"},xj={class:"info-card"},$j={class:"info-header"},Tj={class:"info-description"},Oj={key:2,class:"grid grid-cols-2 gap-6"},Nj=Ue({__name:"NamespaceExchangesView",setup(e){const t=ps(),s=os(),n=Xt(),i=fn(),r=b(()=>String(t.params.ns)),o=b(()=>!!r.value),l=be(!1),u=be(!1),d=be(null),c=be(null),{data:h,isLoading:m,isError:p,error:v,refetch:E}=RI(r,{query:{enabled:o}}),_=Sc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cr(r)}),u.value=!1},onError:Z=>{console.error("Failed to create fanout exchange:",Z)}}}),S=xc({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cr(r)}),u.value=!1},onError:Z=>{console.error("Failed to create direct exchange:",Z)}}}),C=$c({mutation:{onSuccess:()=>{i.invalidateQueries({queryKey:Cr(r)}),u.value=!1},onError:Z=>{console.error("Failed to create topic exchange:",Z)}}}),A=b(()=>_.isPending.value||S.isPending.value||C.isPending.value),g=b(()=>dt(_.error.value?.error||S.error.value?.error||C.error.value?.error)),$=b(()=>h.value?.data??[]),L=b(()=>r.value?$.value.filter(Z=>Z.ns===r.value):[]),V=b(()=>dt(v.value)),I=b(()=>{const Z={total:L.value.length,direct:0,fanout:0,topic:0};return L.value.forEach(W=>{switch(W.type){case Te.DIRECT:Z.direct++;break;case Te.FANOUT:Z.fanout++;break;case Te.TOPIC:Z.topic++;break}}),Z}),w=Z=>{const W=L.value.find(se=>se.name===Z.exchange.name&&se.ns===Z.exchange.ns)||null;d.value=W??{name:Z.exchange.name,ns:Z.exchange.ns,type:Z.exchange.type},c.value=Z.totals,l.value=!0},O=()=>{u.value=!0},x=Z=>{console.log("Binding queue to:",Z.name)},F=Z=>{console.log("Unbinding queue from:",Z.exchange.name,"queue:",Z.queueName)},H=Z=>{console.log("Publishing message to:",Z.name)},z=async Z=>{const{name:W,type:se,ns:ue,queueName:Re,routingKey:Ie,bindingPattern:tt}=Z;try{switch(se){case Te.FANOUT:await _.mutateAsync({ns:ue,fanout:W,queue:Re});break;case Te.DIRECT:await S.mutateAsync({ns:ue,direct:W,queue:Re,params:{routingKey:String(Ie)}});break;case Te.TOPIC:await C.mutateAsync({ns:ue,topic:W,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=Z=>{const W={exchange:Z.name,ns:Z.ns};return Z.type==Te.DIRECT?{name:"Direct Exchange",params:W}:Z.type==Te.TOPIC?{name:"Topic Exchange",params:W}:{name:"Fanout Exchange",params:W}},ie=Z=>{const W=fe(Z);s.push(W)},G=()=>{i.invalidateQueries({queryKey:Cr(r)}),l.value=!1,d.value=null,c.value=null},X=b(()=>[{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:m.value,loading:m.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(X.value),n.setLoadingState(m.value),p.value?(n.setErrorState(V.value),n.setEmptyState(!1)):!m.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))}),(Z,W)=>(N(),P("div",cj,[we(ms,null,{default:qe(()=>[!T(m)&&!T(p)&&L.value.length>0?(N(),P("div",dj,[a("div",fj,[a("div",hj,[W[3]||(W[3]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-diagram-3","aria-hidden":"true"})],-1)),a("div",pj,[a("div",mj,q(I.value.total),1),W[2]||(W[2]=a("div",{class:"stat-label"},"Total Exchanges",-1))])]),a("div",gj,[W[5]||(W[5]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-arrow-right","aria-hidden":"true"})],-1)),a("div",vj,[a("div",bj,q(I.value.direct),1),W[4]||(W[4]=a("div",{class:"stat-label"},"Direct",-1))])]),a("div",yj,[W[7]||(W[7]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-arrows-angle-expand","aria-hidden":"true"})],-1)),a("div",_j,[a("div",Ej,q(I.value.fanout),1),W[6]||(W[6]=a("div",{class:"stat-label"},"Fanout",-1))])]),a("div",wj,[W[9]||(W[9]=a("div",{class:"stat-icon"},[a("i",{class:"bi bi-hash","aria-hidden":"true"})],-1)),a("div",Cj,[a("div",Aj,q(I.value.topic),1),W[8]||(W[8]=a("div",{class:"stat-label"},"Topic",-1))])])])])):he("",!0),!T(m)&&!T(p)&&L.value.length>0?(N(),P("div",Sj,[a("div",xj,[a("div",$j,[W[10]||(W[10]=a("i",{class:"bi bi-folder-fill","aria-hidden":"true"},null,-1)),a("h3",null,"Namespace: "+q(r.value),1)]),a("p",Tj," 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",Oj,[(N(!0),P(Ae,null,bt(L.value,se=>(N(),at(tv,{key:`${se.name}-${se.ns}`,exchange:se,onDelete:w,onViewDetails:ie,onBindQueue:x,onUnbindQueue:F,onPublishMessage:H},null,8,["exchange"]))),128))])):he("",!0)]),_:1}),we(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:G,onClose:W[0]||(W[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"]),we(Xg,{"is-visible":u.value,"is-loading":A.value,error:g.value,onConfirm:z,onCancel:W[1]||(W[1]=se=>u.value=!1)},null,8,["is-visible","is-loading","error"])]))}}),kj=Xe(Nj,[["__scopeId","data-v-2acb12a4"]]),Pj=[{path:"/ns",name:"Namespaces",component:Iv,meta:{title:"NamespacesView",breadcrumb:"NamespacesView"}},{path:"/ns/:ns/queues",name:"Namespace Queues",component:Eq,meta:{title:"Namespace Queues",breadcrumb:"Namespace Queues"}},{path:"/ns/:ns/queues/:queue",name:"Queue",component:s4,meta:{title:"Queue Details",breadcrumb:"Queue Details"}},{path:"/ns/:ns/queues/:queue/pending-messages",name:"Pending Messages",component:UL,meta:{title:"Queue Pending Messages"}},{path:"/ns/:ns/queues/:queue/acknowledged-messages",name:"Acknowledged Messages",component:uI,meta:{title:"Queue Acknowledged Messages"}},{path:"/ns/:ns/queues/:queue/dead-lettered-messages",name:"Dead-Lettered Messages",component:_I,meta:{title:"Queue Dead-Lettered Messages"}},{path:"/ns/:ns/queues/:queue/scheduled-messages",name:"Scheduled Messages",component:r4,meta:{title:"Queue Scheduled Messages"}},{path:"/ns/:ns/queues/:queue/messages",name:"Messages",component:l4,meta:{title:"Queue Messages"}},{path:"/ns/:ns/exchanges",name:"Namespace Exchanges",component:kj,meta:{title:"Namespace Exchanges",breadcrumb:"Namespace Exchanges"}},{path:"/ns/:ns/exchanges/direct/:exchange",name:"Direct Exchange",component:v3,meta:{title:"Direct Exchange Details",breadcrumb:"Direct Exchange Details"}},{path:"/ns/:ns/exchanges/topic/:exchange",name:"Topic Exchange",component:K3,meta:{title:"Topic Exchange Details",breadcrumb:"Topic Exchange Details"}},{path:"/ns/:ns/exchanges/fanout/:exchange",name:"Fanout Exchange",component:uj,meta:{title:"Fanout Exchange Details",breadcrumb:"Fanout Exchange Details"}}],Iu=[...Ba,...Pj],Dj={key:0,"aria-label":"breadcrumb",class:"breadcrumb-navigation"},Rj={class:"breadcrumb-container"},Mj={class:"breadcrumb-content"},Ij={class:"breadcrumb-list"},qj=["aria-current"],Lj={key:0,class:"breadcrumb-separator"},Fj=["title","onClick"],Vj={class:"breadcrumb-text"},Qj=["title"],jj={class:"breadcrumb-text"},Bj=Ue({__name:"BreadcrumbsPanel",setup(e){const t=ps(),s=os(),n=b(()=>{try{const h=[],m=t.path,p=t.params,v=i(m,p);return v.forEach((E,_)=>{const S=u(E.pattern);if(!S)return;const C=_===v.length-1,A=d(S);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,m){const p=[],v=h.split("/").filter(_=>_);let E="";h!=="/"&&u("/")&&p.push({pattern:"/",actualPath:"/"});for(let _=0;_<v.length;_++){E+="/"+v[_];const S=r(E,m);S&&p.push({pattern:S,actualPath:E})}return p}function r(h,m){const p=[...Iu].sort((v,E)=>{const _=o(v.path);return o(E.path)-_});for(const v of p)if(l(h,v.path,m))return v.path;return null}function o(h){const m=h.split("/").filter(v=>v);let p=m.length*10;for(const v of m)v.startsWith(":")&&(p-=5);return p}function l(h,m,p){const v=h.split("/").filter(_=>_),E=m.split("/").filter(_=>_);if(v.length!==E.length)return!1;for(let _=0;_<E.length;_++){const S=E[_],C=v[_];if(S.startsWith(":")){const A=S.substring(1);if(p[A]!==C)return!1}else if(S!==C)return!1}return!0}function u(h){return Iu.find(m=>m.path===h)}function d(h){return String(h.meta?.title||h.name)}function c(h){try{s.push(h)}catch(m){console.error("Navigation error:",m)}}return(h,m)=>n.value.length>0?(N(),P("nav",Dj,[a("div",Rj,[a("div",Mj,[m[1]||(m[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",Ij,[(N(!0),P(Ae,null,bt(n.value,(p,v)=>(N(),P("li",{key:`${p.title}-${v}`,class:De(["breadcrumb-item",{"breadcrumb-item-active":p.active,"breadcrumb-item-clickable":!p.active&&p.to}]),"aria-current":p.active?"page":void 0},[v>0?(N(),P("div",Lj,[...m[0]||(m[0]=[a("i",{class:"bi bi-chevron-right"},null,-1)])])):he("",!0),!p.active&&p.to?(N(),P("button",{key:1,type:"button",class:"breadcrumb-link",title:`Navigate to ${p.title}`,onClick:E=>c(p.to)},[a("span",Vj,q(p.title),1)],8,Fj)):(N(),P("div",{key:2,class:"breadcrumb-current",title:p.title},[a("span",jj,q(p.title),1)],8,Qj))],10,qj))),128))])])])])):he("",!0)}}),Uj=Xe(Bj,[["__scopeId","data-v-778a84ef"]]),Kj="9.0.1",Hj={version:Kj},Gj="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",Wj="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=",zj={class:"app"},Yj={key:0,class:"loading-screen"},Zj={class:"loading-container"},Jj={class:"loading-content"},Xj={class:"brand-section"},eB={class:"brand-logo loading-logo"},tB=["src"],sB={key:1,class:"error-screen"},nB={class:"error-container"},iB={class:"error-content"},rB={class:"error-message"},aB={key:2,class:"app-layout"},oB={class:"app-header"},lB={class:"header-container"},uB={class:"header-content"},cB={class:"brand-section"},dB={class:"brand-logo"},fB=["src"],hB={class:"app-navigation",role:"navigation","aria-label":"Main navigation"},pB={class:"nav-list nav-desktop",role:"tablist"},mB={class:"nav-label"},gB={key:0,class:"nav-indicator"},vB={class:"nav-mobile"},bB=["aria-expanded"],yB={class:"current-page"},_B={id:"mobile-nav-menu",class:"mobile-nav-menu",role:"menu"},EB={class:"app-main",role:"main"},wB={class:"content-wrapper"},CB={class:"content-container"},AB={class:"app-footer",role:"contentinfo"},SB={class:"footer-container"},xB={class:"footer-content"},$B={class:"footer-info"},TB={class:"version-info"},OB={class:"version"},NB=Ue({__name:"App",setup(e){const t=be(!0),s=be(null),n=os(),i=b(()=>Hj.version),r=async()=>{try{t.value=!0,s.value=null,await new Promise(m=>setTimeout(m,1500))}catch(m){console.error("App initialization failed:",m),s.value="Failed to initialize application"}finally{t.value=!1}};Bt(()=>{r()});const o=m=>n.currentRoute.value.name===m,l=()=>{r()},u=be(!1),d=be(null);Ye(()=>n.currentRoute.value.fullPath,()=>{u.value=!1});function c(m){if(!u.value)return;const p=m.target,v=d.value;v&&!v.contains(p)&&(u.value=!1)}function h(m){m.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)}),(m,p)=>{const v=Ud("RouterLink"),E=Ud("RouterView");return N(),P("div",zj,[t.value?(N(),P("div",Yj,[a("div",Zj,[a("div",Jj,[a("div",Xj,[a("div",eB,[a("img",{src:T(Wj),alt:"RedisSMQ Logo",class:"logo-image"},null,8,tB)])]),p[1]||(p[1]=a("div",{class:"loading-animation"},[a("div",{class:"spinner"}),a("p",{class:"loading-text"},"Initializing application...")],-1))])])])):s.value?(N(),P("div",sB,[a("div",nB,[a("div",iB,[p[3]||(p[3]=a("div",{class:"error-icon"},"⚠️",-1)),p[4]||(p[4]=a("h2",{class:"error-title"},"Application Error",-1)),a("p",rB,q(s.value),1),a("button",{class:"btn btn-primary btn-retry",onClick:l},[...p[2]||(p[2]=[a("i",{class:"bi bi-arrow-clockwise me-2"},null,-1),te(" Try Again ",-1)])])])])])):(N(),P("div",aB,[a("header",oB,[a("div",lB,[a("div",uB,[a("div",cB,[a("div",dB,[a("img",{src:T(Gj),alt:"RedisSMQ Logo",class:"logo-image"},null,8,fB)]),p[5]||(p[5]=a("div",{class:"brand-info"},[a("h1",{class:"brand-title"},"RedisSMQ"),a("span",{class:"brand-subtitle"},"Web UI")],-1))])]),a("nav",hB,[a("ul",pB,[(N(!0),P(Ae,null,bt(T(Ba),_=>(N(),P("li",{key:_.name,class:"nav-item",role:"presentation"},[we(v,{to:{name:_.name},class:De(["nav-link",{"nav-link-active":o(_.name)}]),"aria-current":o(_.name)?"page":void 0},{default:qe(()=>[a("span",mB,q(_.name),1),o(_.name)?(N(),P("span",gB)):he("",!0)]),_:2},1032,["to","class","aria-current"])]))),128))]),a("div",vB,[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:p[0]||(p[0]=_=>u.value=!u.value)},[a("span",yB,q(T(Ba).find(_=>o(_.name))?.name||"Navigation"),1),p[6]||(p[6]=a("i",{class:"bi bi-chevron-down toggle-icon"},null,-1))],8,bB),ss(a("ul",_B,[(N(!0),P(Ae,null,bt(T(Ba),_=>(N(),P("li",{key:_.name,role:"none"},[we(v,{to:{name:_.name},class:De(["mobile-nav-link",{"mobile-nav-link-active":o(_.name)}]),role:"menuitem"},{default:qe(()=>[te(q(_.name),1)]),_:2},1032,["to","class"])]))),128))],512),[[i0,u.value]])],512)])])])]),a("main",EB,[we(Uj),a("div",wB,[a("div",CB,[(N(),at($w,null,{default:qe(()=>[we(E,null,{default:qe(({Component:_,route:S})=>[(N(),at(Mo(_),{key:S.path}))]),_:1})]),fallback:qe(()=>[...p[7]||(p[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",AB,[a("div",SB,[a("div",xB,[a("div",$B,[a("div",TB,[a("span",OB,"RedisSMQ Web UI "+q(i.value),1),p[8]||(p[8]=a("span",{class:"separator"},"•",-1)),p[9]||(p[9]=a("span",{class:"license"},[te(" 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))])]),p[10]||(p[10]=ai('<div class="footer-links" data-v-08e652ea><a href="https://github.com/weyoss/redis-smq" target="_blank" rel="noopener noreferrer" class="footer-link" aria-label="View on GitHub" data-v-08e652ea><i class="bi bi-github me-1" data-v-08e652ea></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-08e652ea><i class="bi bi-book me-1" data-v-08e652ea></i> Documentation </a></div>',1))])])])]))])}}}),kB=Xe(NB,[["__scopeId","data-v-08e652ea"]]),PB={class:"not-found-page"},DB=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",PB,[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&#39;t find the page you&#39;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),te(" 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),te(" 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),te(" 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&#39;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))])]))}}),RB=Xe(DB,[["__scopeId","data-v-b9948732"]]),Lv=hA({history:jC(Eg("BASE_PATH")),routes:[...Iu,{path:"/:pathMatch(.*)*",name:"NotFound",component:RB}]});Lv.beforeEach((e,t,s)=>{e.path!==t.path&&Xt().resetPageContent(),s()});const Xo=A0(kB);Xo.use($0());Xo.use(Lv);Xo.use(lC,{queryClientConfig:{defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}});Xo.mount("#app");export{Tv as C,Mv as D,Ae as F,ms as P,nq as Q,Xe as _,It as a,lL as b,Rv as c,Ue as d,b as e,KL as f,P as g,we as h,at as i,he as j,qe as k,T as l,dt as m,N as n,Bt as o,a as p,te as q,be as r,bt as s,q as t,Xt as u,os as v,At as w};