agendash 6.0.1 → 7.0.0

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.
@@ -0,0 +1,17 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
2
+ * @vue/shared v3.5.27
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function so(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},tn=[],Xe=()=>{},kr=()=>!1,ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),oo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,ro=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zi=Object.prototype.hasOwnProperty,ae=(e,t)=>zi.call(e,t),V=Array.isArray,nn=e=>Nn(e)==="[object Map]",cn=e=>Nn(e)==="[object Set]",To=e=>Nn(e)==="[object Date]",z=e=>typeof e=="function",we=e=>typeof e=="string",Qe=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",$r=e=>(me(e)||z(e))&&z(e.then)&&z(e.catch),Sr=Object.prototype.toString,Nn=e=>Sr.call(e),Xi=e=>Nn(e).slice(8,-1),Tr=e=>Nn(e)==="[object Object]",io=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vn=so(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Qi=/-\w/g,Pt=gs(e=>e.replace(Qi,t=>t.slice(1).toUpperCase())),Zi=/\B([A-Z])/g,Yt=gs(e=>e.replace(Zi,"-$1").toLowerCase()),Dr=gs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ts=gs(e=>e?`on${Dr(e)}`:""),Mt=(e,t)=>!Object.is(e,t),Zn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Mr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},bs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},el=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let Do;const vs=()=>Do||(Do=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pe(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=we(s)?ol(s):pe(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(we(e)||me(e))return e}const tl=/;(?![^(]*\))/g,nl=/:([^]+)/,sl=/\/\*[^]*?\*\//g;function ol(e){const t={};return e.replace(sl,"").split(tl).forEach(n=>{if(n){const s=n.split(nl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function de(e){let t="";if(we(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=de(e[n]);s&&(t+=s+" ")}else if(me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const rl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",il=so(rl);function Pr(e){return!!e||e===""}function ll(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Rn(e[s],t[s]);return n}function Rn(e,t){if(e===t)return!0;let n=To(e),s=To(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Qe(e),s=Qe(t),n||s)return e===t;if(n=V(e),s=V(t),n||s)return n&&s?ll(e,t):!1;if(n=me(e),s=me(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const l=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(l&&!c||!l&&c||!Rn(e[i],t[i]))return!1}}return String(e)===String(t)}function lo(e,t){return e.findIndex(n=>Rn(n,t))}const jr=e=>!!(e&&e.__v_isRef===!0),j=e=>we(e)?e:e==null?"":V(e)||me(e)&&(e.toString===Sr||!z(e.toString))?jr(e)?j(e.value):JSON.stringify(e,Or,2):String(e),Or=(e,t)=>jr(t)?Or(e,t.value):nn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[Ds(s,r)+" =>"]=o,n),{})}:cn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ds(n))}:Qe(t)?Ds(t):me(t)&&!V(t)&&!Tr(t)?String(t):t,Ds=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.27
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let Ee;class al{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ee,!t&&Ee&&(this.index=(Ee.scopes||(Ee.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ee;try{return Ee=this,t()}finally{Ee=n}}}on(){++this._on===1&&(this.prevScope=Ee,Ee=this)}off(){this._on>0&&--this._on===0&&(Ee=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function cl(){return Ee}let ge;const Ms=new WeakSet;class Ar{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,Ee&&Ee.active&&Ee.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ms.has(this)&&(Ms.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Nr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Mo(this),Rr(this);const t=ge,n=We;ge=this,We=!0;try{return this.fn()}finally{Fr(this),ge=t,We=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)uo(t);this.deps=this.depsTail=void 0,Mo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ms.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qs(this)&&this.run()}get dirty(){return qs(this)}}let Er=0,yn,_n;function Nr(e,t=!1){if(e.flags|=8,t){e.next=_n,_n=e;return}e.next=yn,yn=e}function ao(){Er++}function co(){if(--Er>0)return;if(_n){let t=_n;for(_n=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;yn;){let t=yn;for(yn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Rr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Fr(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),uo(s),ul(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function qs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ir(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ir(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Tn)||(e.globalVersion=Tn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qs(e))))return;e.flags|=2;const t=e.dep,n=ge,s=We;ge=e,We=!0;try{Rr(e);const o=e.fn(e._value);(t.version===0||Mt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ge=n,We=s,Fr(e),e.flags&=-3}}function uo(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)uo(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ul(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let We=!0;const Lr=[];function it(){Lr.push(We),We=!1}function lt(){const e=Lr.pop();We=e===void 0?!0:e}function Mo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ge;ge=void 0;try{t()}finally{ge=n}}}let Tn=0;class fl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fo{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(!ge||!We||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new fl(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,Jr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=s)}return n}trigger(t){this.version++,Tn++,this.notify(t)}notify(t){ao();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{co()}}}function Jr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Jr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Vs=new WeakMap,qt=Symbol(""),Us=Symbol(""),Dn=Symbol("");function Te(e,t,n){if(We&&ge){let s=Vs.get(e);s||Vs.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new fo),o.map=s,o.key=n),o.track()}}function st(e,t,n,s,o,r){const i=Vs.get(e);if(!i){Tn++;return}const l=c=>{c&&c.trigger()};if(ao(),t==="clear")i.forEach(l);else{const c=V(e),u=c&&io(n);if(c&&n==="length"){const f=Number(s);i.forEach((m,g)=>{(g==="length"||g===Dn||!Qe(g)&&g>=f)&&l(m)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),u&&l(i.get(Dn)),t){case"add":c?u&&l(i.get("length")):(l(i.get(qt)),nn(e)&&l(i.get(Us)));break;case"delete":c||(l(i.get(qt)),nn(e)&&l(i.get(Us)));break;case"set":nn(e)&&l(i.get(qt));break}}co()}function zt(e){const t=ie(e);return t===e?t:(Te(t,"iterate",Dn),Je(e)?t:t.map(He))}function ys(e){return Te(e=ie(e),"iterate",Dn),e}function kt(e,t){return at(e)?rn(Vt(e)?He(t):t):He(t)}const dl={__proto__:null,[Symbol.iterator](){return Ps(this,Symbol.iterator,e=>kt(this,e))},concat(...e){return zt(this).concat(...e.map(t=>V(t)?zt(t):t))},entries(){return Ps(this,"entries",e=>(e[1]=kt(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,n=>n.map(s=>kt(this,s)),arguments)},find(e,t){return et(this,"find",e,t,n=>kt(this,n),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,n=>kt(this,n),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return js(this,"includes",e)},indexOf(...e){return js(this,"indexOf",e)},join(e){return zt(this).join(e)},lastIndexOf(...e){return js(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return un(this,"pop")},push(...e){return un(this,"push",e)},reduce(e,...t){return Po(this,"reduce",e,t)},reduceRight(e,...t){return Po(this,"reduceRight",e,t)},shift(){return un(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return un(this,"splice",e)},toReversed(){return zt(this).toReversed()},toSorted(e){return zt(this).toSorted(e)},toSpliced(...e){return zt(this).toSpliced(...e)},unshift(...e){return un(this,"unshift",e)},values(){return Ps(this,"values",e=>kt(this,e))}};function Ps(e,t,n){const s=ys(e),o=s[t]();return s!==e&&!Je(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const hl=Array.prototype;function et(e,t,n,s,o,r){const i=ys(e),l=i!==e&&!Je(e),c=i[t];if(c!==hl[t]){const m=c.apply(e,r);return l?He(m):m}let u=n;i!==e&&(l?u=function(m,g){return n.call(this,kt(e,m),g,e)}:n.length>2&&(u=function(m,g){return n.call(this,m,g,e)}));const f=c.call(i,u,s);return l&&o?o(f):f}function Po(e,t,n,s){const o=ys(e);let r=n;return o!==e&&(Je(e)?n.length>3&&(r=function(i,l,c){return n.call(this,i,l,c,e)}):r=function(i,l,c){return n.call(this,i,kt(e,l),c,e)}),o[t](r,...s)}function js(e,t,n){const s=ie(e);Te(s,"iterate",Dn);const o=s[t](...n);return(o===-1||o===!1)&&go(n[0])?(n[0]=ie(n[0]),s[t](...n)):o}function un(e,t,n=[]){it(),ao();const s=ie(e)[t].apply(e,n);return co(),lt(),s}const ml=so("__proto__,__v_isRef,__isVue"),Wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe));function pl(e){Qe(e)||(e=String(e));const t=ie(this);return Te(t,"has",e),t.hasOwnProperty(e)}class Hr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?$l:Yr:r?Ur:Vr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=V(t);if(!o){let c;if(i&&(c=dl[n]))return c;if(n==="hasOwnProperty")return pl}const l=Reflect.get(t,n,De(t)?t:s);if((Qe(n)?Wr.has(n):ml(n))||(o||Te(t,"get",n),r))return l;if(De(l)){const c=i&&io(n)?l:l.value;return o&&me(c)?Bs(c):c}return me(l)?o?Bs(l):mo(l):l}}class qr extends Hr{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const i=V(t)&&io(n);if(!this._isShallow){const u=at(r);if(!Je(s)&&!at(s)&&(r=ie(r),s=ie(s)),!i&&De(r)&&!De(s))return u||(r.value=s),!0}const l=i?Number(n)<t.length:ae(t,n),c=Reflect.set(t,n,s,De(t)?t:o);return t===ie(o)&&(l?Mt(s,r)&&st(t,"set",n,s):st(t,"add",n,s)),c}deleteProperty(t,n){const s=ae(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&st(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Qe(n)||!Wr.has(n))&&Te(t,"has",n),s}ownKeys(t){return Te(t,"iterate",V(t)?"length":qt),Reflect.ownKeys(t)}}class gl extends Hr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const bl=new qr,vl=new gl,yl=new qr(!0);const Ys=e=>e,Hn=e=>Reflect.getPrototypeOf(e);function _l(e,t,n){return function(...s){const o=this.__v_raw,r=ie(o),i=nn(r),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=o[e](...s),f=n?Ys:t?rn:He;return!t&&Te(r,"iterate",c?Us:qt),Ce(Object.create(u),{next(){const{value:m,done:g}=u.next();return g?{value:m,done:g}:{value:l?[f(m[0]),f(m[1])]:f(m),done:g}}})}}function qn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wl(e,t){const n={get(o){const r=this.__v_raw,i=ie(r),l=ie(o);e||(Mt(o,l)&&Te(i,"get",o),Te(i,"get",l));const{has:c}=Hn(i),u=t?Ys:e?rn:He;if(c.call(i,o))return u(r.get(o));if(c.call(i,l))return u(r.get(l));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Te(ie(o),"iterate",qt),o.size},has(o){const r=this.__v_raw,i=ie(r),l=ie(o);return e||(Mt(o,l)&&Te(i,"has",o),Te(i,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const i=this,l=i.__v_raw,c=ie(l),u=t?Ys:e?rn:He;return!e&&Te(c,"iterate",qt),l.forEach((f,m)=>o.call(r,u(f),u(m),i))}};return Ce(n,e?{add:qn("add"),set:qn("set"),delete:qn("delete"),clear:qn("clear")}:{add(o){!t&&!Je(o)&&!at(o)&&(o=ie(o));const r=ie(this);return Hn(r).has.call(r,o)||(r.add(o),st(r,"add",o,o)),this},set(o,r){!t&&!Je(r)&&!at(r)&&(r=ie(r));const i=ie(this),{has:l,get:c}=Hn(i);let u=l.call(i,o);u||(o=ie(o),u=l.call(i,o));const f=c.call(i,o);return i.set(o,r),u?Mt(r,f)&&st(i,"set",o,r):st(i,"add",o,r),this},delete(o){const r=ie(this),{has:i,get:l}=Hn(r);let c=i.call(r,o);c||(o=ie(o),c=i.call(r,o)),l&&l.call(r,o);const u=r.delete(o);return c&&st(r,"delete",o,void 0),u},clear(){const o=ie(this),r=o.size!==0,i=o.clear();return r&&st(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=_l(o,e,t)}),n}function ho(e,t){const n=wl(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(ae(n,o)&&o in s?n:s,o,r)}const xl={get:ho(!1,!1)},Cl={get:ho(!1,!0)},kl={get:ho(!0,!1)};const Vr=new WeakMap,Ur=new WeakMap,Yr=new WeakMap,$l=new WeakMap;function Sl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tl(e){return e.__v_skip||!Object.isExtensible(e)?0:Sl(Xi(e))}function mo(e){return at(e)?e:po(e,!1,bl,xl,Vr)}function Dl(e){return po(e,!1,yl,Cl,Ur)}function Bs(e){return po(e,!0,vl,kl,Yr)}function po(e,t,n,s,o){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Tl(e);if(r===0)return e;const i=o.get(e);if(i)return i;const l=new Proxy(e,r===2?s:n);return o.set(e,l),l}function Vt(e){return at(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Je(e){return!!(e&&e.__v_isShallow)}function go(e){return e?!!e.__v_raw:!1}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function Ml(e){return!ae(e,"__v_skip")&&Object.isExtensible(e)&&Mr(e,"__v_skip",!0),e}const He=e=>me(e)?mo(e):e,rn=e=>me(e)?Bs(e):e;function De(e){return e?e.__v_isRef===!0:!1}function Y(e){return Pl(e,!1)}function Pl(e,t){return De(e)?e:new jl(e,t)}class jl{constructor(t,n){this.dep=new fo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ie(t),this._value=n?t:He(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Je(t)||at(t);t=s?t:ie(t),Mt(t,n)&&(this._rawValue=t,this._value=s?t:He(t),this.dep.trigger())}}function U(e){return De(e)?e.value:e}const Ol={get:(e,t,n)=>t==="__v_raw"?e:U(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return De(o)&&!De(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Br(e){return Vt(e)?e:new Proxy(e,Ol)}class Al{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new fo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Tn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return Nr(this,!0),!0}get value(){const t=this.dep.track();return Ir(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function El(e,t,n=!1){let s,o;return z(e)?s=e:(s=e.get,o=e.set),new Al(s,o,n)}const Vn={},rs=new WeakMap;let Jt;function Nl(e,t=!1,n=Jt){if(n){let s=rs.get(n);s||rs.set(n,s=[]),s.push(e)}}function Rl(e,t,n=he){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:l,call:c}=n,u=k=>o?k:Je(k)||o===!1||o===0?ot(k,1):ot(k);let f,m,g,p,y=!1,$=!1;if(De(e)?(m=()=>e.value,y=Je(e)):Vt(e)?(m=()=>u(e),y=!0):V(e)?($=!0,y=e.some(k=>Vt(k)||Je(k)),m=()=>e.map(k=>{if(De(k))return k.value;if(Vt(k))return u(k);if(z(k))return c?c(k,2):k()})):z(e)?t?m=c?()=>c(e,2):e:m=()=>{if(g){it();try{g()}finally{lt()}}const k=Jt;Jt=f;try{return c?c(e,3,[p]):e(p)}finally{Jt=k}}:m=Xe,t&&o){const k=m,R=o===!0?1/0:o;m=()=>ot(k(),R)}const P=cl(),b=()=>{f.stop(),P&&P.active&&ro(P.effects,f)};if(r&&t){const k=t;t=(...R)=>{k(...R),b()}}let v=$?new Array(e.length).fill(Vn):Vn;const x=k=>{if(!(!(f.flags&1)||!f.dirty&&!k))if(t){const R=f.run();if(o||y||($?R.some((H,se)=>Mt(H,v[se])):Mt(R,v))){g&&g();const H=Jt;Jt=f;try{const se=[R,v===Vn?void 0:$&&v[0]===Vn?[]:v,p];v=R,c?c(t,3,se):t(...se)}finally{Jt=H}}}else f.run()};return l&&l(x),f=new Ar(m),f.scheduler=i?()=>i(x,!1):x,p=k=>Nl(k,!1,f),g=f.onStop=()=>{const k=rs.get(f);if(k){if(c)c(k,4);else for(const R of k)R();rs.delete(f)}},t?s?x(!0):v=f.run():i?i(x.bind(null,!0),!0):f.run(),b.pause=f.pause.bind(f),b.resume=f.resume.bind(f),b.stop=b,b}function ot(e,t=1/0,n){if(t<=0||!me(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,De(e))ot(e.value,t,n);else if(V(e))for(let s=0;s<e.length;s++)ot(e[s],t,n);else if(cn(e)||nn(e))e.forEach(s=>{ot(s,t,n)});else if(Tr(e)){for(const s in e)ot(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ot(e[s],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.27
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function Fn(e,t,n,s){try{return s?e(...s):e()}catch(o){_s(o,t,n)}}function qe(e,t,n,s){if(z(e)){const o=Fn(e,t,n,s);return o&&$r(o)&&o.catch(r=>{_s(r,t,n)}),o}if(V(e)){const o=[];for(let r=0;r<e.length;r++)o.push(qe(e[r],t,n,s));return o}}function _s(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||he;if(t){let l=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let m=0;m<f.length;m++)if(f[m](e,c,u)===!1)return}l=l.parent}if(r){it(),Fn(r,null,10,[e,c,u]),lt();return}}Fl(e,n,o,s,i)}function Fl(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Oe=[];let Be=-1;const sn=[];let $t=null,Zt=0;const Kr=Promise.resolve();let is=null;function Gr(e){const t=is||Kr;return e?t.then(this?e.bind(this):e):t}function Il(e){let t=Be+1,n=Oe.length;for(;t<n;){const s=t+n>>>1,o=Oe[s],r=Mn(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function bo(e){if(!(e.flags&1)){const t=Mn(e),n=Oe[Oe.length-1];!n||!(e.flags&2)&&t>=Mn(n)?Oe.push(e):Oe.splice(Il(t),0,e),e.flags|=1,zr()}}function zr(){is||(is=Kr.then(Qr))}function Ll(e){V(e)?sn.push(...e):$t&&e.id===-1?$t.splice(Zt+1,0,e):e.flags&1||(sn.push(e),e.flags|=1),zr()}function jo(e,t,n=Be+1){for(;n<Oe.length;n++){const s=Oe[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Oe.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Xr(e){if(sn.length){const t=[...new Set(sn)].sort((n,s)=>Mn(n)-Mn(s));if(sn.length=0,$t){$t.push(...t);return}for($t=t,Zt=0;Zt<$t.length;Zt++){const n=$t[Zt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}$t=null,Zt=0}}const Mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Qr(e){try{for(Be=0;Be<Oe.length;Be++){const t=Oe[Be];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Be<Oe.length;Be++){const t=Oe[Be];t&&(t.flags&=-2)}Be=-1,Oe.length=0,Xr(),is=null,(Oe.length||sn.length)&&Qr()}}let Le=null,Zr=null;function ls(e){const t=Le;return Le=e,Zr=e&&e.type.__scopeId||null,t}function ei(e,t=Le,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Vo(-1);const r=ls(t);let i;try{i=e(...o)}finally{ls(r),s._d&&Vo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ke(e,t){if(Le===null)return e;const n=ks(Le),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,l,c=he]=t[o];r&&(z(r)&&(r={mounted:r,updated:r}),r.deep&&ot(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:c}))}return e}function Ft(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const l=o[i];r&&(l.oldValue=r[i].value);let c=l.dir[s];c&&(it(),qe(c,n,8,[e.el,l,e,t]),lt())}}function Jl(e,t){if(Ae){let n=Ae.provides;const s=Ae.parent&&Ae.parent.provides;s===n&&(n=Ae.provides=Object.create(s)),n[e]=t}}function es(e,t,n=!1){const s=ji();if(s||on){let o=on?on._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&z(t)?t.call(s&&s.proxy):t}}const Wl=Symbol.for("v-scx"),Hl=()=>es(Wl);function wn(e,t,n){return ti(e,t,n)}function ti(e,t,n=he){const{immediate:s,deep:o,flush:r,once:i}=n,l=Ce({},n),c=t&&s||!t&&r!=="post";let u;if(On){if(r==="sync"){const p=Hl();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!c){const p=()=>{};return p.stop=Xe,p.resume=Xe,p.pause=Xe,p}}const f=Ae;l.call=(p,y,$)=>qe(p,f,y,$);let m=!1;r==="post"?l.scheduler=p=>{je(p,f&&f.suspense)}:r!=="sync"&&(m=!0,l.scheduler=(p,y)=>{y?p():bo(p)}),l.augmentJob=p=>{t&&(p.flags|=4),m&&(p.flags|=2,f&&(p.id=f.uid,p.i=f))};const g=Rl(e,t,l);return On&&(u?u.push(g):c&&g()),g}function ql(e,t,n){const s=this.proxy,o=we(e)?e.includes(".")?ni(s,e):()=>s[e]:e.bind(s,s);let r;z(t)?r=t:(r=t.handler,n=t);const i=In(this),l=ti(o,r.bind(s),n);return i(),l}function ni(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const si=Symbol("_vte"),Vl=e=>e.__isTeleport,xn=e=>e&&(e.disabled||e.disabled===""),Oo=e=>e&&(e.defer||e.defer===""),Ao=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Eo=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ks=(e,t)=>{const n=e&&e.to;return we(n)?t?t(n):null:n},oi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,r,i,l,c,u){const{mc:f,pc:m,pbc:g,o:{insert:p,querySelector:y,createText:$,createComment:P}}=u,b=xn(t.props);let{shapeFlag:v,children:x,dynamicChildren:k}=t;if(e==null){const R=t.el=$(""),H=t.anchor=$("");p(R,n,s),p(H,n,s);const se=(J,Q)=>{v&16&&f(x,J,Q,o,r,i,l,c)},ee=()=>{const J=t.target=Ks(t.props,y),Q=ii(J,t,$,p);J&&(i!=="svg"&&Ao(J)?i="svg":i!=="mathml"&&Eo(J)&&(i="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(J),b||(se(J,Q),ts(t,!1)))};b&&(se(n,H),ts(t,!0)),Oo(t.props)?(t.el.__isMounted=!1,je(()=>{ee(),delete t.el.__isMounted},r)):ee()}else{if(Oo(t.props)&&e.el.__isMounted===!1){je(()=>{oi.process(e,t,n,s,o,r,i,l,c,u)},r);return}t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,H=t.target=e.target,se=t.targetAnchor=e.targetAnchor,ee=xn(e.props),J=ee?n:H,Q=ee?R:se;if(i==="svg"||Ao(H)?i="svg":(i==="mathml"||Eo(H))&&(i="mathml"),k?(g(e.dynamicChildren,k,J,o,r,i,l),_o(e,t,!0)):c||m(e,t,J,Q,o,r,i,l,!1),b)ee?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Un(t,n,R,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ne=t.target=Ks(t.props,y);ne&&Un(t,ne,null,u,0)}else ee&&Un(t,H,se,u,1);ts(t,b)}},remove(e,t,n,{um:s,o:{remove:o}},r){const{shapeFlag:i,children:l,anchor:c,targetStart:u,targetAnchor:f,target:m,props:g}=e;if(m&&(o(u),o(f)),r&&o(c),i&16){const p=r||!xn(g);for(let y=0;y<l.length;y++){const $=l[y];s($,t,n,p,!!$.dynamicChildren)}}},move:Un,hydrate:Ul};function Un(e,t,n,{o:{insert:s},m:o},r=2){r===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:c,children:u,props:f}=e,m=r===2;if(m&&s(i,t,n),(!m||xn(f))&&c&16)for(let g=0;g<u.length;g++)o(u[g],t,n,2);m&&s(l,t,n)}function Ul(e,t,n,s,o,r,{o:{nextSibling:i,parentNode:l,querySelector:c,insert:u,createText:f}},m){function g($,P,b,v){P.anchor=m(i($),P,l($),n,s,o,r),P.targetStart=b,P.targetAnchor=v}const p=t.target=Ks(t.props,c),y=xn(t.props);if(p){const $=p._lpa||p.firstChild;if(t.shapeFlag&16)if(y)g(e,t,$,$&&i($));else{t.anchor=i(e);let P=$;for(;P;){if(P&&P.nodeType===8){if(P.data==="teleport start anchor")t.targetStart=P;else if(P.data==="teleport anchor"){t.targetAnchor=P,p._lpa=t.targetAnchor&&i(t.targetAnchor);break}}P=i(P)}t.targetAnchor||ii(p,t,f,u),m($&&i($),t,p,n,s,o,r)}ts(t,y)}else y&&t.shapeFlag&16&&g(e,t,e,i(e));return t.anchor&&i(t.anchor)}const ri=oi;function ts(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function ii(e,t,n,s){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[si]=r,e&&(s(o,e),s(r,e)),r}const Wt=Symbol("_leaveCb"),Yn=Symbol("_enterCb");function Yl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return At(()=>{e.isMounted=!0}),di(()=>{e.isUnmounting=!0}),e}const Ie=[Function,Array],Bl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ie,onEnter:Ie,onAfterEnter:Ie,onEnterCancelled:Ie,onBeforeLeave:Ie,onLeave:Ie,onAfterLeave:Ie,onLeaveCancelled:Ie,onBeforeAppear:Ie,onAppear:Ie,onAfterAppear:Ie,onAppearCancelled:Ie};function Kl(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Gs(e,t,n,s,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:m,onBeforeLeave:g,onLeave:p,onAfterLeave:y,onLeaveCancelled:$,onBeforeAppear:P,onAppear:b,onAfterAppear:v,onAppearCancelled:x}=t,k=String(e.key),R=Kl(n,e),H=(J,Q)=>{J&&qe(J,s,9,Q)},se=(J,Q)=>{const ne=Q[1];H(J,Q),V(J)?J.every(F=>F.length<=1)&&ne():J.length<=1&&ne()},ee={mode:i,persisted:l,beforeEnter(J){let Q=c;if(!n.isMounted)if(r)Q=P||c;else return;J[Wt]&&J[Wt](!0);const ne=R[k];ne&&en(e,ne)&&ne.el[Wt]&&ne.el[Wt](),H(Q,[J])},enter(J){let Q=u,ne=f,F=m;if(!n.isMounted)if(r)Q=b||u,ne=v||f,F=x||m;else return;let le=!1;const _e=J[Yn]=Me=>{le||(le=!0,Me?H(F,[J]):H(ne,[J]),ee.delayedLeave&&ee.delayedLeave(),J[Yn]=void 0)};Q?se(Q,[J,_e]):_e()},leave(J,Q){const ne=String(e.key);if(J[Yn]&&J[Yn](!0),n.isUnmounting)return Q();H(g,[J]);let F=!1;const le=J[Wt]=_e=>{F||(F=!0,Q(),_e?H($,[J]):H(y,[J]),J[Wt]=void 0,R[ne]===e&&delete R[ne])};R[ne]=e,p?se(p,[J,le]):le()},clone(J){return Gs(J,t,n,s)}};return ee}function Pn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Pn(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 li(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===xe?(i.patchFlag&128&&o++,s=s.concat(li(i.children,t,l))):(t||i.type!==ct)&&s.push(l!=null?Ut(i,{key:l}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function ft(e,t){return z(e)?Ce({name:e.name},t,{setup:e}):e}function ai(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const as=new WeakMap;function Cn(e,t,n,s,o=!1){if(V(e)){e.forEach((y,$)=>Cn(y,t&&(V(t)?t[$]:t),n,s,o));return}if(kn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Cn(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?ks(s.component):s.el,i=o?null:r,{i:l,r:c}=e,u=t&&t.r,f=l.refs===he?l.refs={}:l.refs,m=l.setupState,g=ie(m),p=m===he?kr:y=>ae(g,y);if(u!=null&&u!==c){if(No(t),we(u))f[u]=null,p(u)&&(m[u]=null);else if(De(u)){u.value=null;const y=t;y.k&&(f[y.k]=null)}}if(z(c))Fn(c,l,12,[i,f]);else{const y=we(c),$=De(c);if(y||$){const P=()=>{if(e.f){const b=y?p(c)?m[c]:f[c]:c.value;if(o)V(b)&&ro(b,r);else if(V(b))b.includes(r)||b.push(r);else if(y)f[c]=[r],p(c)&&(m[c]=f[c]);else{const v=[r];c.value=v,e.k&&(f[e.k]=v)}}else y?(f[c]=i,p(c)&&(m[c]=i)):$&&(c.value=i,e.k&&(f[e.k]=i))};if(i){const b=()=>{P(),as.delete(e)};b.id=-1,as.set(e,b),je(b,n)}else No(e),P()}}}function No(e){const t=as.get(e);t&&(t.flags|=8,as.delete(e))}vs().requestIdleCallback;vs().cancelIdleCallback;const kn=e=>!!e.type.__asyncLoader,ci=e=>e.type.__isKeepAlive;function Gl(e,t){ui(e,"a",t)}function zl(e,t){ui(e,"da",t)}function ui(e,t,n=Ae){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ws(t,s,n),n){let o=n.parent;for(;o&&o.parent;)ci(o.parent.vnode)&&Xl(s,t,n,o),o=o.parent}}function Xl(e,t,n,s){const o=ws(t,e,s,!0);Et(()=>{ro(s[t],o)},n)}function ws(e,t,n=Ae,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{it();const l=In(n),c=qe(t,n,e,i);return l(),lt(),c});return s?o.unshift(r):o.push(r),r}}const dt=e=>(t,n=Ae)=>{(!On||e==="sp")&&ws(e,(...s)=>t(...s),n)},Ql=dt("bm"),At=dt("m"),Zl=dt("bu"),fi=dt("u"),di=dt("bum"),Et=dt("um"),ea=dt("sp"),ta=dt("rtg"),na=dt("rtc");function sa(e,t=Ae){ws("ec",e,t)}const oa=Symbol.for("v-ndc");function jt(e,t,n,s){let o;const r=n,i=V(e);if(i||we(e)){const l=i&&Vt(e);let c=!1,u=!1;l&&(c=!Je(e),u=at(e),e=ys(e)),o=new Array(e.length);for(let f=0,m=e.length;f<m;f++)o[f]=t(c?u?rn(He(e[f])):He(e[f]):e[f],f,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,r)}else if(me(e))if(e[Symbol.iterator])o=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,u=l.length;c<u;c++){const f=l[c];o[c]=t(e[f],f,c,r)}}else o=[];return o}const zs=e=>e?Oi(e)?ks(e):zs(e.parent):null,$n=Ce(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=>zs(e.parent),$root:e=>zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mi(e),$forceUpdate:e=>e.f||(e.f=()=>{bo(e.update)}),$nextTick:e=>e.n||(e.n=Gr.bind(e.proxy)),$watch:e=>ql.bind(e)}),Os=(e,t)=>e!==he&&!e.__isScriptSetup&&ae(e,t),ra={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:c}=e;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Os(s,t))return i[t]=1,s[t];if(o!==he&&ae(o,t))return i[t]=2,o[t];if(ae(r,t))return i[t]=3,r[t];if(n!==he&&ae(n,t))return i[t]=4,n[t];Xs&&(i[t]=0)}}const u=$n[t];let f,m;if(u)return t==="$attrs"&&Te(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==he&&ae(n,t))return i[t]=4,n[t];if(m=c.config.globalProperties,ae(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Os(o,t)?(o[t]=n,!0):s!==he&&ae(s,t)?(s[t]=n,!0):ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:i}},l){let c;return!!(n[l]||e!==he&&l[0]!=="$"&&ae(e,l)||Os(t,l)||ae(r,l)||ae(s,l)||ae($n,l)||ae(o.config.globalProperties,l)||(c=i.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ro(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Xs=!0;function ia(e){const t=mi(e),n=e.proxy,s=e.ctx;Xs=!1,t.beforeCreate&&Fo(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:c,inject:u,created:f,beforeMount:m,mounted:g,beforeUpdate:p,updated:y,activated:$,deactivated:P,beforeDestroy:b,beforeUnmount:v,destroyed:x,unmounted:k,render:R,renderTracked:H,renderTriggered:se,errorCaptured:ee,serverPrefetch:J,expose:Q,inheritAttrs:ne,components:F,directives:le,filters:_e}=t;if(u&&la(u,s,null),i)for(const ce in i){const oe=i[ce];z(oe)&&(s[ce]=oe.bind(n))}if(o){const ce=o.call(n,n);me(ce)&&(e.data=mo(ce))}if(Xs=!0,r)for(const ce in r){const oe=r[ce],Ne=z(oe)?oe.bind(n,n):z(oe.get)?oe.get.bind(n,n):Xe,X=!z(oe)&&z(oe.set)?oe.set.bind(n):Xe,ye=Ot({get:Ne,set:X});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>ye.value,set:K=>ye.value=K})}if(l)for(const ce in l)hi(l[ce],s,n,ce);if(c){const ce=z(c)?c.call(n):c;Reflect.ownKeys(ce).forEach(oe=>{Jl(oe,ce[oe])})}f&&Fo(f,e,"c");function ve(ce,oe){V(oe)?oe.forEach(Ne=>ce(Ne.bind(n))):oe&&ce(oe.bind(n))}if(ve(Ql,m),ve(At,g),ve(Zl,p),ve(fi,y),ve(Gl,$),ve(zl,P),ve(sa,ee),ve(na,H),ve(ta,se),ve(di,v),ve(Et,k),ve(ea,J),V(Q))if(Q.length){const ce=e.exposed||(e.exposed={});Q.forEach(oe=>{Object.defineProperty(ce,oe,{get:()=>n[oe],set:Ne=>n[oe]=Ne,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===Xe&&(e.render=R),ne!=null&&(e.inheritAttrs=ne),F&&(e.components=F),le&&(e.directives=le),J&&ai(e)}function la(e,t,n=Xe){V(e)&&(e=Qs(e));for(const s in e){const o=e[s];let r;me(o)?"default"in o?r=es(o.from||s,o.default,!0):r=es(o.from||s):r=es(o),De(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Fo(e,t,n){qe(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function hi(e,t,n,s){let o=s.includes(".")?ni(n,s):()=>n[s];if(we(e)){const r=t[e];z(r)&&wn(o,r)}else if(z(e))wn(o,e.bind(n));else if(me(e))if(V(e))e.forEach(r=>hi(r,t,n,s));else{const r=z(e.handler)?e.handler.bind(n):t[e.handler];z(r)&&wn(o,r,e)}}function mi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let c;return l?c=l:!o.length&&!n&&!s?c=t:(c={},o.length&&o.forEach(u=>cs(c,u,i,!0)),cs(c,t,i)),me(t)&&r.set(t,c),c}function cs(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&cs(e,r,n,!0),o&&o.forEach(i=>cs(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=aa[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const aa={data:Io,props:Lo,emits:Lo,methods:bn,computed:bn,beforeCreate:Pe,created:Pe,beforeMount:Pe,mounted:Pe,beforeUpdate:Pe,updated:Pe,beforeDestroy:Pe,beforeUnmount:Pe,destroyed:Pe,unmounted:Pe,activated:Pe,deactivated:Pe,errorCaptured:Pe,serverPrefetch:Pe,components:bn,directives:bn,watch:ua,provide:Io,inject:ca};function Io(e,t){return t?e?function(){return Ce(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function ca(e,t){return bn(Qs(e),Qs(t))}function Qs(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Pe(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?Ce(Object.create(null),e,t):t}function Lo(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Ro(e),Ro(t??{})):t}function ua(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const s in t)n[s]=Pe(e[s],t[s]);return n}function pi(){return{app:null,config:{isNativeTag:kr,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 fa=0;function da(e,t){return function(s,o=null){z(s)||(s=Ce({},s)),o!=null&&!me(o)&&(o=null);const r=pi(),i=new WeakSet,l=[];let c=!1;const u=r.app={_uid:fa++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:qa,get config(){return r.config},set config(f){},use(f,...m){return i.has(f)||(f&&z(f.install)?(i.add(f),f.install(u,...m)):z(f)&&(i.add(f),f(u,...m))),u},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),u},component(f,m){return m?(r.components[f]=m,u):r.components[f]},directive(f,m){return m?(r.directives[f]=m,u):r.directives[f]},mount(f,m,g){if(!c){const p=u._ceVNode||be(s,o);return p.appContext=r,g===!0?g="svg":g===!1&&(g=void 0),e(p,f,g),c=!0,u._container=f,f.__vue_app__=u,ks(p.component)}},onUnmount(f){l.push(f)},unmount(){c&&(qe(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(f,m){return r.provides[f]=m,u},runWithContext(f){const m=on;on=u;try{return f()}finally{on=m}}};return u}}let on=null;const ha=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Pt(t)}Modifiers`]||e[`${Yt(t)}Modifiers`];function ma(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;let o=n;const r=t.startsWith("update:"),i=r&&ha(s,t.slice(7));i&&(i.trim&&(o=n.map(f=>we(f)?f.trim():f)),i.number&&(o=n.map(bs)));let l,c=s[l=Ts(t)]||s[l=Ts(Pt(t))];!c&&r&&(c=s[l=Ts(Yt(t))]),c&&qe(c,e,6,o);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,qe(u,e,6,o)}}const pa=new WeakMap;function gi(e,t,n=!1){const s=n?pa:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!z(e)){const c=u=>{const f=gi(u,t,!0);f&&(l=!0,Ce(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(me(e)&&s.set(e,null),null):(V(r)?r.forEach(c=>i[c]=null):Ce(i,r),me(e)&&s.set(e,i),i)}function xs(e,t){return!e||!ps(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Yt(t))||ae(e,t))}function Jo(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:l,emit:c,render:u,renderCache:f,props:m,data:g,setupState:p,ctx:y,inheritAttrs:$}=e,P=ls(e);let b,v;try{if(n.shapeFlag&4){const k=o||s,R=k;b=ze(u.call(R,k,f,m,p,g,y)),v=l}else{const k=t;b=ze(k.length>1?k(m,{attrs:l,slots:i,emit:c}):k(m,null)),v=t.props?l:ga(l)}}catch(k){Sn.length=0,_s(k,e,1),b=be(ct)}let x=b;if(v&&$!==!1){const k=Object.keys(v),{shapeFlag:R}=x;k.length&&R&7&&(r&&k.some(oo)&&(v=ba(v,r)),x=Ut(x,v,!1,!0))}return n.dirs&&(x=Ut(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&Pn(x,n.transition),b=x,ls(P),b}const ga=e=>{let t;for(const n in e)(n==="class"||n==="style"||ps(n))&&((t||(t={}))[n]=e[n]);return t},ba=(e,t)=>{const n={};for(const s in e)(!oo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function va(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Wo(s,i,u):!!i;if(c&8){const f=t.dynamicProps;for(let m=0;m<f.length;m++){const g=f[m];if(i[g]!==s[g]&&!xs(u,g))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Wo(s,i,u):!0:!!i;return!1}function Wo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!xs(n,r))return!0}return!1}function ya({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const bi={},vi=()=>Object.create(bi),yi=e=>Object.getPrototypeOf(e)===bi;function _a(e,t,n,s=!1){const o={},r=vi();e.propsDefaults=Object.create(null),_i(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Dl(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function wa(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=ie(o),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let m=0;m<f.length;m++){let g=f[m];if(xs(e.emitsOptions,g))continue;const p=t[g];if(c)if(ae(r,g))p!==r[g]&&(r[g]=p,u=!0);else{const y=Pt(g);o[y]=Zs(c,l,y,p,e,!1)}else p!==r[g]&&(r[g]=p,u=!0)}}}else{_i(e,t,o,r)&&(u=!0);let f;for(const m in l)(!t||!ae(t,m)&&((f=Yt(m))===m||!ae(t,f)))&&(c?n&&(n[m]!==void 0||n[f]!==void 0)&&(o[m]=Zs(c,l,m,void 0,e,!0)):delete o[m]);if(r!==l)for(const m in r)(!t||!ae(t,m))&&(delete r[m],u=!0)}u&&st(e.attrs,"set","")}function _i(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,l;if(t)for(let c in t){if(vn(c))continue;const u=t[c];let f;o&&ae(o,f=Pt(c))?!r||!r.includes(f)?n[f]=u:(l||(l={}))[f]=u:xs(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,i=!0)}if(r){const c=ie(n),u=l||he;for(let f=0;f<r.length;f++){const m=r[f];n[m]=Zs(o,c,m,u[m],e,!ae(u,m))}}return i}function Zs(e,t,n,s,o,r){const i=e[n];if(i!=null){const l=ae(i,"default");if(l&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&z(c)){const{propsDefaults:u}=o;if(n in u)s=u[n];else{const f=In(o);s=u[n]=c.call(null,t),f()}}else s=c;o.ce&&o.ce._setProp(n,s)}i[0]&&(r&&!l?s=!1:i[1]&&(s===""||s===Yt(n))&&(s=!0))}return s}const xa=new WeakMap;function wi(e,t,n=!1){const s=n?xa:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},l=[];let c=!1;if(!z(e)){const f=m=>{c=!0;const[g,p]=wi(m,t,!0);Ce(i,g),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!c)return me(e)&&s.set(e,tn),tn;if(V(r))for(let f=0;f<r.length;f++){const m=Pt(r[f]);Ho(m)&&(i[m]=he)}else if(r)for(const f in r){const m=Pt(f);if(Ho(m)){const g=r[f],p=i[m]=V(g)||z(g)?{type:g}:Ce({},g),y=p.type;let $=!1,P=!0;if(V(y))for(let b=0;b<y.length;++b){const v=y[b],x=z(v)&&v.name;if(x==="Boolean"){$=!0;break}else x==="String"&&(P=!1)}else $=z(y)&&y.name==="Boolean";p[0]=$,p[1]=P,($||ae(p,"default"))&&l.push(m)}}const u=[i,l];return me(e)&&s.set(e,u),u}function Ho(e){return e[0]!=="$"&&!vn(e)}const vo=e=>e==="_"||e==="_ctx"||e==="$stable",yo=e=>V(e)?e.map(ze):[ze(e)],Ca=(e,t,n)=>{if(t._n)return t;const s=ei((...o)=>yo(t(...o)),n);return s._c=!1,s},xi=(e,t,n)=>{const s=e._ctx;for(const o in e){if(vo(o))continue;const r=e[o];if(z(r))t[o]=Ca(o,r,s);else if(r!=null){const i=yo(r);t[o]=()=>i}}},Ci=(e,t)=>{const n=yo(t);e.slots.default=()=>n},ki=(e,t,n)=>{for(const s in t)(n||!vo(s))&&(e[s]=t[s])},ka=(e,t,n)=>{const s=e.slots=vi();if(e.vnode.shapeFlag&32){const o=t._;o?(ki(s,t,n),n&&Mr(s,"_",o,!0)):xi(t,s)}else t&&Ci(e,t)},$a=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=he;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:ki(o,t,n):(r=!t.$stable,xi(t,o)),i=t}else t&&(Ci(e,t),i={default:1});if(r)for(const l in o)!vo(l)&&i[l]==null&&delete o[l]},je=Pa;function Sa(e){return Ta(e)}function Ta(e,t){const n=vs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:c,setText:u,setElementText:f,parentNode:m,nextSibling:g,setScopeId:p=Xe,insertStaticContent:y}=e,$=(d,h,_,M=null,S=null,T=null,E=void 0,A=null,O=!!h.dynamicChildren)=>{if(d===h)return;d&&!en(d,h)&&(M=Gt(d),K(d,S,T,!0),d=null),h.patchFlag===-2&&(O=!1,h.dynamicChildren=null);const{type:D,ref:q,shapeFlag:N}=h;switch(D){case Cs:P(d,h,_,M);break;case ct:b(d,h,_,M);break;case Es:d==null&&v(h,_,M,E);break;case xe:F(d,h,_,M,S,T,E,A,O);break;default:N&1?R(d,h,_,M,S,T,E,A,O):N&6?le(d,h,_,M,S,T,E,A,O):(N&64||N&128)&&D.process(d,h,_,M,S,T,E,A,O,Nt)}q!=null&&S?Cn(q,d&&d.ref,T,h||d,!h):q==null&&d&&d.ref!=null&&Cn(d.ref,null,T,d,!0)},P=(d,h,_,M)=>{if(d==null)s(h.el=l(h.children),_,M);else{const S=h.el=d.el;h.children!==d.children&&u(S,h.children)}},b=(d,h,_,M)=>{d==null?s(h.el=c(h.children||""),_,M):h.el=d.el},v=(d,h,_,M)=>{[d.el,d.anchor]=y(d.children,h,_,M,d.el,d.anchor)},x=({el:d,anchor:h},_,M)=>{let S;for(;d&&d!==h;)S=g(d),s(d,_,M),d=S;s(h,_,M)},k=({el:d,anchor:h})=>{let _;for(;d&&d!==h;)_=g(d),o(d),d=_;o(h)},R=(d,h,_,M,S,T,E,A,O)=>{if(h.type==="svg"?E="svg":h.type==="math"&&(E="mathml"),d==null)H(h,_,M,S,T,E,A,O);else{const D=d.el&&d.el._isVueCE?d.el:null;try{D&&D._beginPatch(),J(d,h,S,T,E,A,O)}finally{D&&D._endPatch()}}},H=(d,h,_,M,S,T,E,A)=>{let O,D;const{props:q,shapeFlag:N,transition:W,dirs:B}=d;if(O=d.el=i(d.type,T,q&&q.is,q),N&8?f(O,d.children):N&16&&ee(d.children,O,null,M,S,As(d,T),E,A),B&&Ft(d,null,M,"created"),se(O,d,d.scopeId,E,M),q){for(const ue in q)ue!=="value"&&!vn(ue)&&r(O,ue,null,q[ue],T,M);"value"in q&&r(O,"value",null,q.value,T),(D=q.onVnodeBeforeMount)&&Ue(D,M,d)}B&&Ft(d,null,M,"beforeMount");const Z=Da(S,W);Z&&W.beforeEnter(O),s(O,h,_),((D=q&&q.onVnodeMounted)||Z||B)&&je(()=>{D&&Ue(D,M,d),Z&&W.enter(O),B&&Ft(d,null,M,"mounted")},S)},se=(d,h,_,M,S)=>{if(_&&p(d,_),M)for(let T=0;T<M.length;T++)p(d,M[T]);if(S){let T=S.subTree;if(h===T||Ti(T.type)&&(T.ssContent===h||T.ssFallback===h)){const E=S.vnode;se(d,E,E.scopeId,E.slotScopeIds,S.parent)}}},ee=(d,h,_,M,S,T,E,A,O=0)=>{for(let D=O;D<d.length;D++){const q=d[D]=A?St(d[D]):ze(d[D]);$(null,q,h,_,M,S,T,E,A)}},J=(d,h,_,M,S,T,E)=>{const A=h.el=d.el;let{patchFlag:O,dynamicChildren:D,dirs:q}=h;O|=d.patchFlag&16;const N=d.props||he,W=h.props||he;let B;if(_&&It(_,!1),(B=W.onVnodeBeforeUpdate)&&Ue(B,_,h,d),q&&Ft(h,d,_,"beforeUpdate"),_&&It(_,!0),(N.innerHTML&&W.innerHTML==null||N.textContent&&W.textContent==null)&&f(A,""),D?Q(d.dynamicChildren,D,A,_,M,As(h,S),T):E||oe(d,h,A,null,_,M,As(h,S),T,!1),O>0){if(O&16)ne(A,N,W,_,S);else if(O&2&&N.class!==W.class&&r(A,"class",null,W.class,S),O&4&&r(A,"style",N.style,W.style,S),O&8){const Z=h.dynamicProps;for(let ue=0;ue<Z.length;ue++){const re=Z[ue],$e=N[re],G=W[re];(G!==$e||re==="value")&&r(A,re,$e,G,S,_)}}O&1&&d.children!==h.children&&f(A,h.children)}else!E&&D==null&&ne(A,N,W,_,S);((B=W.onVnodeUpdated)||q)&&je(()=>{B&&Ue(B,_,h,d),q&&Ft(h,d,_,"updated")},M)},Q=(d,h,_,M,S,T,E)=>{for(let A=0;A<h.length;A++){const O=d[A],D=h[A],q=O.el&&(O.type===xe||!en(O,D)||O.shapeFlag&198)?m(O.el):_;$(O,D,q,null,M,S,T,E,!0)}},ne=(d,h,_,M,S)=>{if(h!==_){if(h!==he)for(const T in h)!vn(T)&&!(T in _)&&r(d,T,h[T],null,S,M);for(const T in _){if(vn(T))continue;const E=_[T],A=h[T];E!==A&&T!=="value"&&r(d,T,A,E,S,M)}"value"in _&&r(d,"value",h.value,_.value,S)}},F=(d,h,_,M,S,T,E,A,O)=>{const D=h.el=d?d.el:l(""),q=h.anchor=d?d.anchor:l("");let{patchFlag:N,dynamicChildren:W,slotScopeIds:B}=h;B&&(A=A?A.concat(B):B),d==null?(s(D,_,M),s(q,_,M),ee(h.children||[],_,q,S,T,E,A,O)):N>0&&N&64&&W&&d.dynamicChildren&&d.dynamicChildren.length===W.length?(Q(d.dynamicChildren,W,_,S,T,E,A),(h.key!=null||S&&h===S.subTree)&&_o(d,h,!0)):oe(d,h,_,q,S,T,E,A,O)},le=(d,h,_,M,S,T,E,A,O)=>{h.slotScopeIds=A,d==null?h.shapeFlag&512?S.ctx.activate(h,_,M,E,O):_e(h,_,M,S,T,E,O):Me(d,h,O)},_e=(d,h,_,M,S,T,E)=>{const A=d.component=Fa(d,M,S);if(ci(d)&&(A.ctx.renderer=Nt),Ia(A,!1,E),A.asyncDep){if(S&&S.registerDep(A,ve,E),!d.el){const O=A.subTree=be(ct);b(null,O,h,_),d.placeholder=O.el}}else ve(A,d,h,_,S,T,E)},Me=(d,h,_)=>{const M=h.component=d.component;if(va(d,h,_))if(M.asyncDep&&!M.asyncResolved){ce(M,h,_);return}else M.next=h,M.update();else h.el=d.el,M.vnode=h},ve=(d,h,_,M,S,T,E)=>{const A=()=>{if(d.isMounted){let{next:N,bu:W,u:B,parent:Z,vnode:ue}=d;{const te=$i(d);if(te){N&&(N.el=ue.el,ce(d,N,E)),te.asyncDep.then(()=>{d.isUnmounted||A()});return}}let re=N,$e;It(d,!1),N?(N.el=ue.el,ce(d,N,E)):N=ue,W&&Zn(W),($e=N.props&&N.props.onVnodeBeforeUpdate)&&Ue($e,Z,N,ue),It(d,!0);const G=Jo(d),I=d.subTree;d.subTree=G,$(I,G,m(I.el),Gt(I),d,S,T),N.el=G.el,re===null&&ya(d,G.el),B&&je(B,S),($e=N.props&&N.props.onVnodeUpdated)&&je(()=>Ue($e,Z,N,ue),S)}else{let N;const{el:W,props:B}=h,{bm:Z,m:ue,parent:re,root:$e,type:G}=d,I=kn(h);It(d,!1),Z&&Zn(Z),!I&&(N=B&&B.onVnodeBeforeMount)&&Ue(N,re,h),It(d,!0);{$e.ce&&$e.ce._def.shadowRoot!==!1&&$e.ce._injectChildStyle(G);const te=d.subTree=Jo(d);$(null,te,_,M,d,S,T),h.el=te.el}if(ue&&je(ue,S),!I&&(N=B&&B.onVnodeMounted)){const te=h;je(()=>Ue(N,re,te),S)}(h.shapeFlag&256||re&&kn(re.vnode)&&re.vnode.shapeFlag&256)&&d.a&&je(d.a,S),d.isMounted=!0,h=_=M=null}};d.scope.on();const O=d.effect=new Ar(A);d.scope.off();const D=d.update=O.run.bind(O),q=d.job=O.runIfDirty.bind(O);q.i=d,q.id=d.uid,O.scheduler=()=>bo(q),It(d,!0),D()},ce=(d,h,_)=>{h.component=d;const M=d.vnode.props;d.vnode=h,d.next=null,wa(d,h.props,M,_),$a(d,h.children,_),it(),jo(d),lt()},oe=(d,h,_,M,S,T,E,A,O=!1)=>{const D=d&&d.children,q=d?d.shapeFlag:0,N=h.children,{patchFlag:W,shapeFlag:B}=h;if(W>0){if(W&128){X(D,N,_,M,S,T,E,A,O);return}else if(W&256){Ne(D,N,_,M,S,T,E,A,O);return}}B&8?(q&16&&mt(D,S,T),N!==D&&f(_,N)):q&16?B&16?X(D,N,_,M,S,T,E,A,O):mt(D,S,T,!0):(q&8&&f(_,""),B&16&&ee(N,_,M,S,T,E,A,O))},Ne=(d,h,_,M,S,T,E,A,O)=>{d=d||tn,h=h||tn;const D=d.length,q=h.length,N=Math.min(D,q);let W;for(W=0;W<N;W++){const B=h[W]=O?St(h[W]):ze(h[W]);$(d[W],B,_,null,S,T,E,A,O)}D>q?mt(d,S,T,!0,!1,N):ee(h,_,M,S,T,E,A,O,N)},X=(d,h,_,M,S,T,E,A,O)=>{let D=0;const q=h.length;let N=d.length-1,W=q-1;for(;D<=N&&D<=W;){const B=d[D],Z=h[D]=O?St(h[D]):ze(h[D]);if(en(B,Z))$(B,Z,_,null,S,T,E,A,O);else break;D++}for(;D<=N&&D<=W;){const B=d[N],Z=h[W]=O?St(h[W]):ze(h[W]);if(en(B,Z))$(B,Z,_,null,S,T,E,A,O);else break;N--,W--}if(D>N){if(D<=W){const B=W+1,Z=B<q?h[B].el:M;for(;D<=W;)$(null,h[D]=O?St(h[D]):ze(h[D]),_,Z,S,T,E,A,O),D++}}else if(D>W)for(;D<=N;)K(d[D],S,T,!0),D++;else{const B=D,Z=D,ue=new Map;for(D=Z;D<=W;D++){const Re=h[D]=O?St(h[D]):ze(h[D]);Re.key!=null&&ue.set(Re.key,D)}let re,$e=0;const G=W-Z+1;let I=!1,te=0;const Rt=new Array(G);for(D=0;D<G;D++)Rt[D]=0;for(D=B;D<=N;D++){const Re=d[D];if($e>=G){K(Re,S,T,!0);continue}let Ve;if(Re.key!=null)Ve=ue.get(Re.key);else for(re=Z;re<=W;re++)if(Rt[re-Z]===0&&en(Re,h[re])){Ve=re;break}Ve===void 0?K(Re,S,T,!0):(Rt[Ve-Z]=D+1,Ve>=te?te=Ve:I=!0,$(Re,h[Ve],_,null,S,T,E,A,O),$e++)}const ko=I?Ma(Rt):tn;for(re=ko.length-1,D=G-1;D>=0;D--){const Re=Z+D,Ve=h[Re],$o=h[Re+1],So=Re+1<q?$o.el||Si($o):M;Rt[D]===0?$(null,Ve,_,So,S,T,E,A,O):I&&(re<0||D!==ko[re]?ye(Ve,_,So,2):re--)}}},ye=(d,h,_,M,S=null)=>{const{el:T,type:E,transition:A,children:O,shapeFlag:D}=d;if(D&6){ye(d.component.subTree,h,_,M);return}if(D&128){d.suspense.move(h,_,M);return}if(D&64){E.move(d,h,_,Nt);return}if(E===xe){s(T,h,_);for(let N=0;N<O.length;N++)ye(O[N],h,_,M);s(d.anchor,h,_);return}if(E===Es){x(d,h,_);return}if(M!==2&&D&1&&A)if(M===0)A.beforeEnter(T),s(T,h,_),je(()=>A.enter(T),S);else{const{leave:N,delayLeave:W,afterLeave:B}=A,Z=()=>{d.ctx.isUnmounted?o(T):s(T,h,_)},ue=()=>{T._isLeaving&&T[Wt](!0),N(T,()=>{Z(),B&&B()})};W?W(T,Z,ue):ue()}else s(T,h,_)},K=(d,h,_,M=!1,S=!1)=>{const{type:T,props:E,ref:A,children:O,dynamicChildren:D,shapeFlag:q,patchFlag:N,dirs:W,cacheIndex:B}=d;if(N===-2&&(S=!1),A!=null&&(it(),Cn(A,null,_,d,!0),lt()),B!=null&&(h.renderCache[B]=void 0),q&256){h.ctx.deactivate(d);return}const Z=q&1&&W,ue=!kn(d);let re;if(ue&&(re=E&&E.onVnodeBeforeUnmount)&&Ue(re,h,d),q&6)Ss(d.component,_,M);else{if(q&128){d.suspense.unmount(_,M);return}Z&&Ft(d,null,h,"beforeUnmount"),q&64?d.type.remove(d,h,_,Nt,M):D&&!D.hasOnce&&(T!==xe||N>0&&N&64)?mt(D,h,_,!1,!0):(T===xe&&N&384||!S&&q&16)&&mt(O,h,_),M&&ht(d)}(ue&&(re=E&&E.onVnodeUnmounted)||Z)&&je(()=>{re&&Ue(re,h,d),Z&&Ft(d,null,h,"unmounted")},_)},ht=d=>{const{type:h,el:_,anchor:M,transition:S}=d;if(h===xe){Kt(_,M);return}if(h===Es){k(d);return}const T=()=>{o(_),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(d.shapeFlag&1&&S&&!S.persisted){const{leave:E,delayLeave:A}=S,O=()=>E(_,T);A?A(d.el,T,O):O()}else T()},Kt=(d,h)=>{let _;for(;d!==h;)_=g(d),o(d),d=_;o(h)},Ss=(d,h,_)=>{const{bum:M,scope:S,job:T,subTree:E,um:A,m:O,a:D}=d;qo(O),qo(D),M&&Zn(M),S.stop(),T&&(T.flags|=8,K(E,d,h,_)),A&&je(A,h),je(()=>{d.isUnmounted=!0},h)},mt=(d,h,_,M=!1,S=!1,T=0)=>{for(let E=T;E<d.length;E++)K(d[E],h,_,M,S)},Gt=d=>{if(d.shapeFlag&6)return Gt(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=g(d.anchor||d.el),_=h&&h[si];return _?g(_):h};let pt=!1;const Wn=(d,h,_)=>{let M;d==null?h._vnode&&(K(h._vnode,null,null,!0),M=h._vnode.component):$(h._vnode||null,d,h,null,null,null,_),h._vnode=d,pt||(pt=!0,jo(M),Xr(),pt=!1)},Nt={p:$,um:K,m:ye,r:ht,mt:_e,mc:ee,pc:oe,pbc:Q,n:Gt,o:e};return{render:Wn,hydrate:void 0,createApp:da(Wn)}}function As({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Da(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _o(e,t,n=!1){const s=e.children,o=t.children;if(V(s)&&V(o))for(let r=0;r<s.length;r++){const i=s[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=St(o[r]),l.el=i.el),!n&&l.patchFlag!==-2&&_o(i,l)),l.type===Cs&&(l.patchFlag!==-1?l.el=i.el:l.__elIndex=r+(e.type===xe?1:0)),l.type===ct&&!l.el&&(l.el=i.el)}}function Ma(e){const t=e.slice(),n=[0];let s,o,r,i,l;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(o=n[n.length-1],e[o]<u){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)l=r+i>>1,e[n[l]]<u?r=l+1:i=l;u<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function $i(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$i(t)}function qo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Si(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Si(t.subTree):null}const Ti=e=>e.__isSuspense;function Pa(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Ll(e)}const xe=Symbol.for("v-fgt"),Cs=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),Es=Symbol.for("v-stc"),Sn=[];let Fe=null;function w(e=!1){Sn.push(Fe=e?null:[])}function ja(){Sn.pop(),Fe=Sn[Sn.length-1]||null}let jn=1;function Vo(e,t=!1){jn+=e,e<0&&Fe&&t&&(Fe.hasOnce=!0)}function Di(e){return e.dynamicChildren=jn>0?Fe||tn:null,ja(),jn>0&&Fe&&Fe.push(e),e}function C(e,t,n,s,o,r){return Di(a(e,t,n,s,o,r,!0))}function us(e,t,n,s,o){return Di(be(e,t,n,s,o,!0))}function Mi(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const Pi=({key:e})=>e??null,ns=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||De(e)||z(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function a(e,t=null,n=null,s=0,o=null,r=e===xe?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pi(t),ref:t&&ns(t),scopeId:Zr,slotScopeIds:null,children:n,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:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Le};return l?(wo(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=we(n)?8:16),jn>0&&!i&&Fe&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Fe.push(c),c}const be=Oa;function Oa(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===oa)&&(e=ct),Mi(e)){const l=Ut(e,t,!0);return n&&wo(l,n),jn>0&&!r&&Fe&&(l.shapeFlag&6?Fe[Fe.indexOf(e)]=l:Fe.push(l)),l.patchFlag=-2,l}if(Ha(e)&&(e=e.__vccOpts),t){t=Aa(t);let{class:l,style:c}=t;l&&!we(l)&&(t.class=de(l)),me(c)&&(go(c)&&!V(c)&&(c=Ce({},c)),t.style=pe(c))}const i=we(e)?1:Ti(e)?128:Vl(e)?64:me(e)?4:z(e)?2:0;return a(e,t,n,s,o,i,r,!0)}function Aa(e){return e?go(e)||yi(e)?Ce({},e):e:null}function Ut(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:l,transition:c}=e,u=t?Ea(o||{},t):o,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Pi(u),ref:t&&t.ref?n&&r?V(r)?r.concat(ns(t)):[r,ns(t)]:ns(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!==xe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ut(e.ssContent),ssFallback:e.ssFallback&&Ut(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Pn(f,c.clone(f)),f}function Ge(e=" ",t=0){return be(Cs,null,e,t)}function L(e="",t=!1){return t?(w(),us(ct,null,e)):be(ct,null,e)}function ze(e){return e==null||typeof e=="boolean"?be(ct):V(e)?be(xe,null,e.slice()):Mi(e)?St(e):be(Cs,null,String(e))}function St(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ut(e)}function wo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),wo(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!yi(t)?t._ctx=Le:o===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else z(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),s&64?(n=16,t=[Ge(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ea(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=de([t.class,s.class]));else if(o==="style")t.style=pe([t.style,s.style]);else if(ps(o)){const r=t[o],i=s[o];i&&r!==i&&!(V(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function Ue(e,t,n,s=null){qe(e,t,7,[n,s])}const Na=pi();let Ra=0;function Fa(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Na,r={uid:Ra++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new al(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:wi(s,o),emitsOptions:gi(s,o),emit:null,emitted:null,propsDefaults:he,inheritAttrs:s.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.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=ma.bind(null,r),e.ce&&e.ce(r),r}let Ae=null;const ji=()=>Ae||Le;let fs,eo;{const e=vs(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};fs=t("__VUE_INSTANCE_SETTERS__",n=>Ae=n),eo=t("__VUE_SSR_SETTERS__",n=>On=n)}const In=e=>{const t=Ae;return fs(e),e.scope.on(),()=>{e.scope.off(),fs(t)}},Uo=()=>{Ae&&Ae.scope.off(),fs(null)};function Oi(e){return e.vnode.shapeFlag&4}let On=!1;function Ia(e,t=!1,n=!1){t&&eo(t);const{props:s,children:o}=e.vnode,r=Oi(e);_a(e,s,r,t),ka(e,o,n||t);const i=r?La(e,t):void 0;return t&&eo(!1),i}function La(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ra);const{setup:s}=n;if(s){it();const o=e.setupContext=s.length>1?Wa(e):null,r=In(e),i=Fn(s,e,0,[e.props,o]),l=$r(i);if(lt(),r(),(l||e.sp)&&!kn(e)&&ai(e),l){if(i.then(Uo,Uo),t)return i.then(c=>{Yo(e,c)}).catch(c=>{_s(c,e,0)});e.asyncDep=i}else Yo(e,i)}else Ai(e)}function Yo(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=Br(t)),Ai(e)}function Ai(e,t,n){const s=e.type;e.render||(e.render=s.render||Xe);{const o=In(e);it();try{ia(e)}finally{lt(),o()}}}const Ja={get(e,t){return Te(e,"get",""),e[t]}};function Wa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ja),slots:e.slots,emit:e.emit,expose:t}}function ks(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Br(Ml(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in $n)return $n[n](e)},has(t,n){return n in t||n in $n}})):e.proxy}function Ha(e){return z(e)&&"__vccOpts"in e}const Ot=(e,t)=>El(e,t,On),qa="3.5.27";/**
14
+ * @vue/runtime-dom v3.5.27
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let to;const Bo=typeof window<"u"&&window.trustedTypes;if(Bo)try{to=Bo.createPolicy("vue",{createHTML:e=>e})}catch{}const Ei=to?e=>to.createHTML(e):e=>e,Va="http://www.w3.org/2000/svg",Ua="http://www.w3.org/1998/Math/MathML",nt=typeof document<"u"?document:null,Ko=nt&&nt.createElement("template"),Ya={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?nt.createElementNS(Va,e):t==="mathml"?nt.createElementNS(Ua,e):n?nt.createElement(e,{is:n}):nt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>nt.createTextNode(e),createComment:e=>nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Ko.innerHTML=Ei(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Ko.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},gt="transition",fn="animation",ln=Symbol("_vtc"),Ni={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},Ba=Ce({},Bl,Ni),Lt=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},Go=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function Ka(e){const t={};for(const F in e)F in Ni||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:u=i,appearToClass:f=l,leaveFromClass:m=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,y=Ga(o),$=y&&y[0],P=y&&y[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:x,onLeave:k,onLeaveCancelled:R,onBeforeAppear:H=b,onAppear:se=v,onAppearCancelled:ee=x}=t,J=(F,le,_e,Me)=>{F._enterCancelled=Me,Ct(F,le?f:l),Ct(F,le?u:i),_e&&_e()},Q=(F,le)=>{F._isLeaving=!1,Ct(F,m),Ct(F,p),Ct(F,g),le&&le()},ne=F=>(le,_e)=>{const Me=F?se:v,ve=()=>J(le,F,_e);Lt(Me,[le,ve]),zo(()=>{Ct(le,F?c:r),Ye(le,F?f:l),Go(Me)||Xo(le,s,$,ve)})};return Ce(t,{onBeforeEnter(F){Lt(b,[F]),Ye(F,r),Ye(F,i)},onBeforeAppear(F){Lt(H,[F]),Ye(F,c),Ye(F,u)},onEnter:ne(!1),onAppear:ne(!0),onLeave(F,le){F._isLeaving=!0;const _e=()=>Q(F,le);Ye(F,m),F._enterCancelled?(Ye(F,g),no(F)):(no(F),Ye(F,g)),zo(()=>{F._isLeaving&&(Ct(F,m),Ye(F,p),Go(k)||Xo(F,s,P,_e))}),Lt(k,[F,_e])},onEnterCancelled(F){J(F,!1,void 0,!0),Lt(x,[F])},onAppearCancelled(F){J(F,!0,void 0,!0),Lt(ee,[F])},onLeaveCancelled(F){Q(F),Lt(R,[F])}})}function Ga(e){if(e==null)return null;if(me(e))return[Ns(e.enter),Ns(e.leave)];{const t=Ns(e);return[t,t]}}function Ns(e){return el(e)}function Ye(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ln]||(e[ln]=new Set)).add(t)}function Ct(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[ln];n&&(n.delete(t),n.size||(e[ln]=void 0))}function zo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let za=0;function Xo(e,t,n,s){const o=e._endId=++za,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:i,timeout:l,propCount:c}=Ri(e,t);if(!i)return s();const u=i+"end";let f=0;const m=()=>{e.removeEventListener(u,g),r()},g=p=>{p.target===e&&++f>=c&&m()};setTimeout(()=>{f<c&&m()},l+1),e.addEventListener(u,g)}function Ri(e,t){const n=window.getComputedStyle(e),s=y=>(n[y]||"").split(", "),o=s(`${gt}Delay`),r=s(`${gt}Duration`),i=Qo(o,r),l=s(`${fn}Delay`),c=s(`${fn}Duration`),u=Qo(l,c);let f=null,m=0,g=0;t===gt?i>0&&(f=gt,m=i,g=r.length):t===fn?u>0&&(f=fn,m=u,g=c.length):(m=Math.max(i,u),f=m>0?i>u?gt:fn:null,g=f?f===gt?r.length:c.length:0);const p=f===gt&&/\b(?:transform|all)(?:,|$)/.test(s(`${gt}Property`).toString());return{type:f,timeout:m,propCount:g,hasTransform:p}}function Qo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Zo(n)+Zo(e[s])))}function Zo(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function no(e){return(e?e.ownerDocument:document).body.offsetHeight}function Xa(e,t,n){const s=e[ln];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const er=Symbol("_vod"),Qa=Symbol("_vsh"),Za=Symbol(""),ec=/(?:^|;)\s*display\s*:/;function tc(e,t,n){const s=e.style,o=we(n);let r=!1;if(n&&!o){if(t)if(we(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&ss(s,l,"")}else for(const i in t)n[i]==null&&ss(s,i,"");for(const i in n)i==="display"&&(r=!0),ss(s,i,n[i])}else if(o){if(t!==n){const i=s[Za];i&&(n+=";"+i),s.cssText=n,r=ec.test(n)}}else t&&e.removeAttribute("style");er in e&&(e[er]=r?s.display:"",e[Qa]&&(s.display="none"))}const tr=/\s*!important$/;function ss(e,t,n){if(V(n))n.forEach(s=>ss(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=nc(e,t);tr.test(n)?e.setProperty(Yt(s),n.replace(tr,""),"important"):e[s]=n}}const nr=["Webkit","Moz","ms"],Rs={};function nc(e,t){const n=Rs[t];if(n)return n;let s=Pt(t);if(s!=="filter"&&s in e)return Rs[t]=s;s=Dr(s);for(let o=0;o<nr.length;o++){const r=nr[o]+s;if(r in e)return Rs[t]=r}return t}const sr="http://www.w3.org/1999/xlink";function or(e,t,n,s,o,r=il(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(sr,t.slice(6,t.length)):e.setAttributeNS(sr,t,n):n==null||r&&!Pr(n)?e.removeAttribute(t):e.setAttribute(t,r?"":Qe(n)?String(n):n)}function rr(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ei(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Pr(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function Tt(e,t,n,s){e.addEventListener(t,n,s)}function sc(e,t,n,s){e.removeEventListener(t,n,s)}const ir=Symbol("_vei");function oc(e,t,n,s,o=null){const r=e[ir]||(e[ir]={}),i=r[t];if(s&&i)i.value=s;else{const[l,c]=rc(t);if(s){const u=r[t]=ac(s,o);Tt(e,l,u,c)}else i&&(sc(e,l,i,c),r[t]=void 0)}}const lr=/(?:Once|Passive|Capture)$/;function rc(e){let t;if(lr.test(e)){t={};let s;for(;s=e.match(lr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Yt(e.slice(2)),t]}let Fs=0;const ic=Promise.resolve(),lc=()=>Fs||(ic.then(()=>Fs=0),Fs=Date.now());function ac(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(cc(s,n.value),t,5,[s])};return n.value=e,n.attached=lc(),n}function cc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const ar=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uc=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?Xa(e,s,i):t==="style"?tc(e,n,s):ps(t)?oo(t)||oc(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fc(e,t,s,i))?(rr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&or(e,t,s,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(s))?rr(e,Pt(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),or(e,t,s,i))};function fc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ar(t)&&z(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return ar(t)&&we(n)?!1:t in e}const Fi=new WeakMap,Ii=new WeakMap,ds=Symbol("_moveCb"),cr=Symbol("_enterCb"),dc=e=>(delete e.props.mode,e),hc=dc({name:"TransitionGroup",props:Ce({},Ba,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ji(),s=Yl();let o,r;return fi(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!vc(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(pc),o.forEach(gc);const l=o.filter(bc);no(n.vnode.el),l.forEach(c=>{const u=c.el,f=u.style;Ye(u,i),f.transform=f.webkitTransform=f.transitionDuration="";const m=u[ds]=g=>{g&&g.target!==u||(!g||g.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",m),u[ds]=null,Ct(u,i))};u.addEventListener("transitionend",m)}),o=[]}),()=>{const i=ie(e),l=Ka(i);let c=i.tag||xe;if(o=[],r)for(let u=0;u<r.length;u++){const f=r[u];f.el&&f.el instanceof Element&&(o.push(f),Pn(f,Gs(f,l,s,n)),Fi.set(f,{left:f.el.offsetLeft,top:f.el.offsetTop}))}r=t.default?li(t.default()):[];for(let u=0;u<r.length;u++){const f=r[u];f.key!=null&&Pn(f,Gs(f,l,s,n))}return be(c,null,r)}}}),mc=hc;function pc(e){const t=e.el;t[ds]&&t[ds](),t[cr]&&t[cr]()}function gc(e){Ii.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function bc(e){const t=Fi.get(e),n=Ii.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${o}px)`,r.transitionDuration="0s",e}}function vc(e,t,n){const s=e.cloneNode(),o=e[ln];o&&o.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Ri(s);return r.removeChild(s),i}const an=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Zn(t,n):t};function yc(e){e.target.composing=!0}function ur(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const rt=Symbol("_assign");function fr(e,t,n){return t&&(e=e.trim()),n&&(e=bs(e)),e}const Dt={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[rt]=an(o);const r=s||o.props&&o.props.type==="number";Tt(e,t?"change":"input",i=>{i.target.composing||e[rt](fr(e.value,n,r))}),(n||r)&&Tt(e,"change",()=>{e.value=fr(e.value,n,r)}),t||(Tt(e,"compositionstart",yc),Tt(e,"compositionend",ur),Tt(e,"change",ur))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[rt]=an(i),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?bs(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===c)||(e.value=c))}},_c={deep:!0,created(e,t,n){e[rt]=an(n),Tt(e,"change",()=>{const s=e._modelValue,o=An(e),r=e.checked,i=e[rt];if(V(s)){const l=lo(s,o),c=l!==-1;if(r&&!c)i(s.concat(o));else if(!r&&c){const u=[...s];u.splice(l,1),i(u)}}else if(cn(s)){const l=new Set(s);r?l.add(o):l.delete(o),i(l)}else i(Li(e,r))})},mounted:dr,beforeUpdate(e,t,n){e[rt]=an(n),dr(e,t,n)}};function dr(e,{value:t,oldValue:n},s){e._modelValue=t;let o;if(V(t))o=lo(t,s.props.value)>-1;else if(cn(t))o=t.has(s.props.value);else{if(t===n)return;o=Rn(t,Li(e,!0))}e.checked!==o&&(e.checked=o)}const wc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const o=cn(t);Tt(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?bs(An(i)):An(i));e[rt](e.multiple?o?new Set(r):r:r[0]),e._assigning=!0,Gr(()=>{e._assigning=!1})}),e[rt]=an(s)},mounted(e,{value:t}){hr(e,t)},beforeUpdate(e,t,n){e[rt]=an(n)},updated(e,{value:t}){e._assigning||hr(e,t)}};function hr(e,t){const n=e.multiple,s=V(t);if(!(n&&!s&&!cn(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],l=An(i);if(n)if(s){const c=typeof l;c==="string"||c==="number"?i.selected=t.some(u=>String(u)===String(l)):i.selected=lo(t,l)>-1}else i.selected=t.has(l);else if(Rn(An(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function An(e){return"_value"in e?e._value:e.value}function Li(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xc=["ctrl","shift","alt","meta"],Cc={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)=>xc.some(n=>e[`${n}Key`]&&!t.includes(n))},Se=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((o,...r)=>{for(let i=0;i<t.length;i++){const l=Cc[t[i]];if(l&&l(o,t))return}return e(o,...r)}))},kc=Ce({patchProp:uc},Ya);let mr;function $c(){return mr||(mr=Sa(kc))}const Sc=((...e)=>{const t=$c().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Dc(s);if(!o)return;const r=t._component;!z(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,Tc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function Tc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Dc(e){return we(e)?document.querySelector(e):e}const ut="api";async function Bt(e,t){const n=await fetch(e,{headers:{"Content-Type":"application/json",...t==null?void 0:t.headers},...t});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return n.json()}async function Mc(e={}){const t=new URLSearchParams;e.limit!==void 0&&t.set("limit",String(e.limit)),e.name&&t.set("job",e.name),e.skip!==void 0&&t.set("skip",String(e.skip)),e.property&&t.set("property",e.property),e.isObjectId==="true"&&t.set("isObjectId","true"),e.state&&t.set("state",e.state),e.search&&t.set("q",e.search);const n=`${ut}?${t.toString()}`;return Bt(n)}async function Pc(e){return Bt(`${ut}/jobs/requeue`,{method:"POST",body:JSON.stringify({jobIds:e})})}async function jc(e){return Bt(`${ut}/jobs/delete`,{method:"POST",body:JSON.stringify({jobIds:e})})}async function Oc(e){return Bt(`${ut}/jobs/create`,{method:"POST",body:JSON.stringify(e)})}async function Ac(e){return Bt(`${ut}/jobs/pause`,{method:"POST",body:JSON.stringify({jobIds:e})})}async function Ec(e){return Bt(`${ut}/jobs/resume`,{method:"POST",body:JSON.stringify({jobIds:e})})}async function Ji(e=!1){const t=e?`${ut}/stats?fullDetails=true`:`${ut}/stats`;return Bt(t)}function Nc(e,t,n){const s=new EventSource(`${ut}/events`);return s.onmessage=o=>{try{const r=JSON.parse(o.data);e(r)}catch{}},s.addEventListener("connected",()=>{n==null||n()}),s.onerror=o=>{t==null||t(o)},()=>{s.close()}}const Rc={class:"p-3 sidebar-container"},Fc={key:0,class:"sidebar-loading-indicator"},Ic={class:"stats-summary-header"},Lc={key:0,class:"spinner-border spinner-border-sm"},Jc={key:0,class:"stats-summary-badges"},Wc={class:"stats-badge running"},Hc={class:"stats-badge queued"},qc={class:"stats-badge locked"},Vc={key:1,class:"text-center py-4 text-muted"},Uc={key:2,class:"job-list"},Yc=["onClick"],Bc={key:0,class:"status-dots"},Kc=["title"],Gc=["title"],zc=["title"],Xc=["title"],Qc=["title"],Zc=["title"],eu=["title"],tu={class:"job-total"},nu={key:0,class:"mini-progress mx-4 mb-1"},su={key:1,class:"job-details"},ou=["onClick"],ru={class:"count"},iu=["onClick"],lu={class:"count"},au=["onClick"],cu={class:"count"},uu=["onClick"],fu={class:"count"},du=["onClick"],hu={class:"count"},mu=["onClick"],pu={class:"count"},gu=["onClick"],bu={class:"count"},vu=ft({__name:"Sidebar",props:{overview:{},pageSize:{},loading:{type:Boolean},currentFilters:{},showingStats:{type:Boolean}},emits:["search","new-job","show-stats"],setup(e,{emit:t}){const n=e,s=t,o=Y(new Set(["All Jobs"])),r=Y(null),i=Y(!1);let l=null;async function c(){i.value=!0;try{r.value=await Ji(!1)}catch($){console.error("Failed to fetch stats:",$)}finally{i.value=!1}}At(()=>{c(),l=setInterval(c,5e3)}),Et(()=>{l&&clearInterval(l)});function u($){if(n.showingStats)return!1;const P=n.currentFilters.name||"";return $==="All Jobs"?P===""||P==="All Jobs":P===$}function f($,P){return u($)?(n.currentFilters.state||"")===P:!1}function m($){return o.value.has($)}function g($){const P=u($),b=!!n.currentFilters.state;P&&!b&&o.value.has($)?o.value.delete($):o.value.add($),s("search",$,"")}function p($,P=""){s("search",$,P)}function y($){return{scheduled:"#17a2b8",queued:"#4a6fa5",running:"#ffc107",completed:"#28a745",failed:"#dc3545",repeating:"#98c1d9",paused:"#6c757d"}[$]||"#6c757d"}return($,P)=>(w(),C("div",Rc,[e.loading&&e.overview.length>0?(w(),C("div",Fc,[...P[2]||(P[2]=[a("div",{class:"spinner-border spinner-border-sm"},null,-1)])])):L("",!0),a("button",{class:"btn btn-success btn-sm w-100 mb-3",onClick:P[0]||(P[0]=b=>$.$emit("new-job"))}," + New Job "),a("div",{class:de(["stats-summary-card mb-3",{"stats-selected":e.showingStats}]),onClick:P[1]||(P[1]=b=>$.$emit("show-stats"))},[a("div",Ic,[P[3]||(P[3]=a("span",{class:"stats-summary-title"},"Agenda Status",-1)),i.value?(w(),C("span",Lc)):L("",!0)]),r.value?(w(),C("div",Jc,[a("span",Wc,j(typeof r.value.runningJobs=="number"?r.value.runningJobs:r.value.runningJobs.length)+" running",1),a("span",Hc,j(typeof r.value.queuedJobs=="number"?r.value.queuedJobs:r.value.queuedJobs.length)+" queued",1),a("span",qc,j(typeof r.value.lockedJobs=="number"?r.value.lockedJobs:r.value.lockedJobs.length)+" locked",1)])):L("",!0)],2),e.loading&&e.overview.length===0?(w(),C("div",Vc,[...P[4]||(P[4]=[a("div",{class:"spinner-border spinner-border-sm mb-2"},null,-1),a("small",{class:"d-block"},"Loading...",-1)])])):L("",!0),e.overview.length>0?(w(),C("div",Uc,[(w(!0),C(xe,null,jt(e.overview,b=>(w(),C("div",{key:b.displayName,class:"job-item mb-1"},[a("div",{class:de(["job-header d-flex align-items-center",{"job-header-selected":u(b.displayName)&&!e.currentFilters.state}]),onClick:v=>g(b.displayName)},[a("span",{class:de(["expand-icon",{rotated:m(b.displayName)}])},"►",2),a("span",{class:de(["job-name flex-grow-1",{"job-name-selected":u(b.displayName)}])},j(b.displayName),3),m(b.displayName)?L("",!0):(w(),C("span",Bc,[b.scheduled?(w(),C("span",{key:0,class:"status-dot",style:pe({backgroundColor:y("scheduled")}),title:`${b.scheduled} scheduled`},null,12,Kc)):L("",!0),b.queued?(w(),C("span",{key:1,class:"status-dot",style:pe({backgroundColor:y("queued")}),title:`${b.queued} queued`},null,12,Gc)):L("",!0),b.running?(w(),C("span",{key:2,class:"status-dot",style:pe({backgroundColor:y("running")}),title:`${b.running} running`},null,12,zc)):L("",!0),b.completed?(w(),C("span",{key:3,class:"status-dot",style:pe({backgroundColor:y("completed")}),title:`${b.completed} completed`},null,12,Xc)):L("",!0),b.failed?(w(),C("span",{key:4,class:"status-dot",style:pe({backgroundColor:y("failed")}),title:`${b.failed} failed`},null,12,Qc)):L("",!0),b.repeating?(w(),C("span",{key:5,class:"status-dot",style:pe({backgroundColor:y("repeating")}),title:`${b.repeating} repeating`},null,12,Zc)):L("",!0),b.paused?(w(),C("span",{key:6,class:"status-dot",style:pe({backgroundColor:y("paused")}),title:`${b.paused} paused`},null,12,eu)):L("",!0)])),a("span",tu,j(b.total),1)],10,Yc),m(b.displayName)?(w(),C("div",nu,[b.scheduled?(w(),C("div",{key:0,class:"mini-bar",style:pe({flex:b.scheduled,backgroundColor:y("scheduled")})},null,4)):L("",!0),b.queued?(w(),C("div",{key:1,class:"mini-bar",style:pe({flex:b.queued,backgroundColor:y("queued")})},null,4)):L("",!0),b.running?(w(),C("div",{key:2,class:"mini-bar",style:pe({flex:b.running,backgroundColor:y("running")})},null,4)):L("",!0),b.completed?(w(),C("div",{key:3,class:"mini-bar",style:pe({flex:b.completed,backgroundColor:y("completed")})},null,4)):L("",!0),b.failed?(w(),C("div",{key:4,class:"mini-bar",style:pe({flex:b.failed,backgroundColor:y("failed")})},null,4)):L("",!0),b.paused?(w(),C("div",{key:5,class:"mini-bar",style:pe({flex:b.paused,backgroundColor:y("paused")})},null,4)):L("",!0)])):L("",!0),m(b.displayName)?(w(),C("div",su,[a("div",{class:de(["detail-row",{"detail-row-selected":f(b.displayName,"scheduled")}]),onClick:v=>p(b.displayName,"scheduled")},[a("span",{class:"dot",style:pe({backgroundColor:y("scheduled")})},null,4),P[5]||(P[5]=a("span",{class:"label"},"Scheduled",-1)),a("span",ru,j(b.scheduled),1)],10,ou),a("div",{class:de(["detail-row",{"detail-row-selected":f(b.displayName,"queued")}]),onClick:v=>p(b.displayName,"queued")},[a("span",{class:"dot",style:pe({backgroundColor:y("queued")})},null,4),P[6]||(P[6]=a("span",{class:"label"},"Queued",-1)),a("span",lu,j(b.queued),1)],10,iu),a("div",{class:de(["detail-row",{"detail-row-selected":f(b.displayName,"running")}]),onClick:v=>p(b.displayName,"running")},[a("span",{class:"dot",style:pe({backgroundColor:y("running")})},null,4),P[7]||(P[7]=a("span",{class:"label"},"Running",-1)),a("span",cu,j(b.running),1)],10,au),a("div",{class:de(["detail-row",{"detail-row-selected":f(b.displayName,"completed")}]),onClick:v=>p(b.displayName,"completed")},[a("span",{class:"dot",style:pe({backgroundColor:y("completed")})},null,4),P[8]||(P[8]=a("span",{class:"label"},"Completed",-1)),a("span",fu,j(b.completed),1)],10,uu),a("div",{class:de(["detail-row",{"detail-row-selected":f(b.displayName,"failed")}]),onClick:v=>p(b.displayName,"failed")},[a("span",{class:"dot",style:pe({backgroundColor:y("failed")})},null,4),P[9]||(P[9]=a("span",{class:"label"},"Failed",-1)),a("span",hu,j(b.failed),1)],10,du),a("div",{class:de(["detail-row",{"detail-row-selected":f(b.displayName,"repeating")}]),onClick:v=>p(b.displayName,"repeating")},[a("span",{class:"dot",style:pe({backgroundColor:y("repeating")})},null,4),P[10]||(P[10]=a("span",{class:"label"},"Repeating",-1)),a("span",pu,j(b.repeating),1)],10,mu),b.paused?(w(),C("div",{key:0,class:de(["detail-row",{"detail-row-selected":f(b.displayName,"paused")}]),onClick:v=>p(b.displayName,"paused")},[a("span",{class:"dot",style:pe({backgroundColor:y("paused")})},null,4),P[11]||(P[11]=a("span",{class:"label"},"Paused",-1)),a("span",bu,j(b.paused),1)],10,gu)):L("",!0)])):L("",!0)]))),128))])):L("",!0)]))}}),Ln=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},pr=Ln(vu,[["__scopeId","data-v-3c13e3c1"]]),yu={class:"row"},_u={class:"col-xs-12 col-md-6"},wu={class:"input-group mt-2 mb-2"},xu={class:"input-group mt-2 mb-2"},Cu={class:"input-group mt-2 mb-2"},ku={class:"form-check mx-2 pt-2"},$u={class:"col-xs-12 col-md-6"},Su={class:"input-group mt-2 mb-2"},Tu={class:"input-group mt-2 mb-2"},Du=["value"],Mu=ft({__name:"Topbar",props:{currentFilters:{}},emits:["search"],setup(e,{emit:t}){const n=e,s=t,o=Y(""),r=Y(""),i=Y(""),l=Y(!1),c=Y(50),u=Y("");wn(()=>n.currentFilters,g=>{o.value=g.name||"",u.value=g.state||"",r.value=g.property||"",i.value=g.search||"",l.value=g.isObjectId||!1,c.value=g.limit||50},{immediate:!0});const f=[{text:"All",value:"",class:""},{text:"Scheduled",value:"scheduled",class:""},{text:"Queued",value:"queued",class:"text-primary"},{text:"Running",value:"running",class:"text-warning"},{text:"Completed",value:"completed",class:"text-success"},{text:"Failed",value:"failed",class:"text-danger"},{text:"Repeating",value:"repeating",class:"text-info"}];function m(){s("search",{name:o.value,search:i.value,property:r.value,limit:c.value,skip:0,state:u.value,isObjectId:l.value})}return(g,p)=>(w(),C("form",{onSubmit:Se(m,["prevent"])},[a("div",yu,[a("div",_u,[a("div",wu,[p[6]||(p[6]=a("span",{class:"input-group-text"},"Name",-1)),Ke(a("input",{"onUpdate:modelValue":p[0]||(p[0]=y=>o.value=y),type:"text",class:"form-control",placeholder:"job name"},null,512),[[Dt,o.value]])]),a("div",xu,[p[7]||(p[7]=a("span",{class:"input-group-text"},"Property",-1)),Ke(a("input",{"onUpdate:modelValue":p[1]||(p[1]=y=>r.value=y),type:"text",class:"form-control",placeholder:"data.color"},null,512),[[Dt,r.value]])]),a("div",Cu,[p[9]||(p[9]=a("span",{class:"input-group-text"},"Value",-1)),Ke(a("input",{"onUpdate:modelValue":p[2]||(p[2]=y=>i.value=y),class:"form-control",placeholder:"green"},null,512),[[Dt,i.value]]),a("div",ku,[Ke(a("input",{id:"isObjectId","onUpdate:modelValue":p[3]||(p[3]=y=>l.value=y),type:"checkbox",class:"form-check-input"},null,512),[[_c,l.value]]),p[8]||(p[8]=a("label",{class:"form-check-label",for:"isObjectId"},"Is ObjectId?",-1))])])]),a("div",$u,[a("div",Su,[p[10]||(p[10]=a("span",{class:"input-group-text"},"Page Size",-1)),Ke(a("input",{"onUpdate:modelValue":p[4]||(p[4]=y=>c.value=y),type:"number",class:"form-control"},null,512),[[Dt,c.value,void 0,{number:!0}]])]),a("div",Tu,[p[11]||(p[11]=a("span",{class:"input-group-text"},"State",-1)),Ke(a("select",{id:"selectStateInput","onUpdate:modelValue":p[5]||(p[5]=y=>u.value=y),class:"form-select"},[(w(),C(xe,null,jt(f,y=>a("option",{key:y.value,value:y.value,class:de(y.class)},j(y.text),11,Du)),64))],512),[[wc,u.value]])])])]),p[12]||(p[12]=a("div",{class:"row mb-3"},[a("div",{class:"col-xs-12 col-md-3 ms-auto text-end"},[a("button",{type:"submit",class:"d-none d-md-inline-block btn btn-success"},"Apply"),a("button",{type:"submit",class:"d-inline-block d-md-none btn btn-block w-100 btn-success"}," Apply ")])],-1))],32))}}),Wi=6048e5,Pu=864e5,Hi=6e4,qi=36e5,Bn=43200,gr=1440,br=Symbol.for("constructDateFrom");function Ze(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&br in e?e[br](t):e instanceof Date?new e.constructor(t):new Date(t)}function ke(e,t){return Ze(t||e,e)}let ju={};function Jn(){return ju}function En(e,t){var l,c,u,f;const n=Jn(),s=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,o=ke(e,t==null?void 0:t.in),r=o.getDay(),i=(r<s?7:0)+r-s;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function hs(e,t){return En(e,{...t,weekStartsOn:1})}function Vi(e,t){const n=ke(e,t==null?void 0:t.in),s=n.getFullYear(),o=Ze(n,0);o.setFullYear(s+1,0,4),o.setHours(0,0,0,0);const r=hs(o),i=Ze(n,0);i.setFullYear(s,0,4),i.setHours(0,0,0,0);const l=hs(i);return n.getTime()>=r.getTime()?s+1:n.getTime()>=l.getTime()?s:s-1}function ms(e){const t=ke(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function $s(e,...t){const n=Ze.bind(null,e||t.find(s=>typeof s=="object"));return t.map(n)}function vr(e,t){const n=ke(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Ou(e,t,n){const[s,o]=$s(n==null?void 0:n.in,e,t),r=vr(s),i=vr(o),l=+r-ms(r),c=+i-ms(i);return Math.round((l-c)/Pu)}function Au(e,t){const n=Vi(e,t),s=Ze(e,0);return s.setFullYear(n,0,4),s.setHours(0,0,0,0),hs(s)}function os(e,t){const n=+ke(e)-+ke(t);return n<0?-1:n>0?1:n}function Eu(e){return Ze(e,Date.now())}function Nu(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ru(e){return!(!Nu(e)&&typeof e!="number"||isNaN(+ke(e)))}function Fu(e,t,n){const[s,o]=$s(n==null?void 0:n.in,e,t),r=s.getFullYear()-o.getFullYear(),i=s.getMonth()-o.getMonth();return r*12+i}function Iu(e){return t=>{const s=(e?Math[e]:Math.trunc)(t);return s===0?0:s}}function Lu(e,t){return+ke(e)-+ke(t)}function Ju(e,t){const n=ke(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function Wu(e,t){const n=ke(e,t==null?void 0:t.in),s=n.getMonth();return n.setFullYear(n.getFullYear(),s+1,0),n.setHours(23,59,59,999),n}function Hu(e,t){const n=ke(e,t==null?void 0:t.in);return+Ju(n,t)==+Wu(n,t)}function qu(e,t,n){const[s,o,r]=$s(n==null?void 0:n.in,e,e,t),i=os(o,r),l=Math.abs(Fu(o,r));if(l<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*l);let c=os(o,r)===-i;Hu(s)&&l===1&&os(s,r)===1&&(c=!1);const u=i*(l-+c);return u===0?0:u}function Vu(e,t,n){const s=Lu(e,t)/1e3;return Iu(n==null?void 0:n.roundingMethod)(s)}function Uu(e,t){const n=ke(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Yu={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"}},Bu=(e,t,n)=>{let s;const o=Yu[e];return typeof o=="string"?s=o:t===1?s=o.one:s=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function Is(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ku={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xu={date:Is({formats:Ku,defaultWidth:"full"}),time:Is({formats:Gu,defaultWidth:"full"}),dateTime:Is({formats:zu,defaultWidth:"full"})},Qu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zu=(e,t,n,s)=>Qu[e];function dn(e){return(t,n)=>{const s=n!=null&&n.context?String(n.context):"standalone";let o;if(s==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):i;o=e.formattingValues[l]||e.formattingValues[i]}else{const i=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[i]}const r=e.argumentCallback?e.argumentCallback(t):t;return o[r]}}const ef={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nf={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"]},sf={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"]},of={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"}},rf={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"}},lf=(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},af={ordinalNumber:lf,era:dn({values:ef,defaultWidth:"wide"}),quarter:dn({values:tf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:dn({values:nf,defaultWidth:"wide"}),day:dn({values:sf,defaultWidth:"wide"}),dayPeriod:dn({values:of,defaultWidth:"wide",formattingValues:rf,defaultFormattingWidth:"wide"})};function hn(e){return(t,n={})=>{const s=n.width,o=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],r=t.match(o);if(!r)return null;const i=r[0],l=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?uf(l,m=>m.test(i)):cf(l,m=>m.test(i));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}function cf(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function uf(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ff(e){return(t,n={})=>{const s=t.match(e.matchPattern);if(!s)return null;const o=s[0],r=t.match(e.parsePattern);if(!r)return null;let i=e.valueCallback?e.valueCallback(r[0]):r[0];i=n.valueCallback?n.valueCallback(i):i;const l=t.slice(o.length);return{value:i,rest:l}}}const df=/^(\d+)(th|st|nd|rd)?/i,hf=/\d+/i,mf={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},pf={any:[/^b/i,/^(a|c)/i]},gf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bf={any:[/1/i,/2/i,/3/i,/4/i]},vf={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},yf={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]},_f={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},wf={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]},xf={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},Cf={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}},kf={ordinalNumber:ff({matchPattern:df,parsePattern:hf,valueCallback:e=>parseInt(e,10)}),era:hn({matchPatterns:mf,defaultMatchWidth:"wide",parsePatterns:pf,defaultParseWidth:"any"}),quarter:hn({matchPatterns:gf,defaultMatchWidth:"wide",parsePatterns:bf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:hn({matchPatterns:vf,defaultMatchWidth:"wide",parsePatterns:yf,defaultParseWidth:"any"}),day:hn({matchPatterns:_f,defaultMatchWidth:"wide",parsePatterns:wf,defaultParseWidth:"any"}),dayPeriod:hn({matchPatterns:xf,defaultMatchWidth:"any",parsePatterns:Cf,defaultParseWidth:"any"})},Ui={code:"en-US",formatDistance:Bu,formatLong:Xu,formatRelative:Zu,localize:af,match:kf,options:{weekStartsOn:0,firstWeekContainsDate:1}};function $f(e,t){const n=ke(e,t==null?void 0:t.in);return Ou(n,Uu(n))+1}function Sf(e,t){const n=ke(e,t==null?void 0:t.in),s=+hs(n)-+Au(n);return Math.round(s/Wi)+1}function Yi(e,t){var f,m,g,p;const n=ke(e,t==null?void 0:t.in),s=n.getFullYear(),o=Jn(),r=(t==null?void 0:t.firstWeekContainsDate)??((m=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(g=o.locale)==null?void 0:g.options)==null?void 0:p.firstWeekContainsDate)??1,i=Ze((t==null?void 0:t.in)||e,0);i.setFullYear(s+1,0,r),i.setHours(0,0,0,0);const l=En(i,t),c=Ze((t==null?void 0:t.in)||e,0);c.setFullYear(s,0,r),c.setHours(0,0,0,0);const u=En(c,t);return+n>=+l?s+1:+n>=+u?s:s-1}function Tf(e,t){var l,c,u,f;const n=Jn(),s=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,o=Yi(e,t),r=Ze((t==null?void 0:t.in)||e,0);return r.setFullYear(o,0,s),r.setHours(0,0,0,0),En(r,t)}function Df(e,t){const n=ke(e,t==null?void 0:t.in),s=+En(n,t)-+Tf(n,t);return Math.round(s/Wi)+1}function fe(e,t){const n=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return n+s}const bt={y(e,t){const n=e.getFullYear(),s=n>0?n:1-n;return fe(t==="yy"?s%100:s,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):fe(n+1,2)},d(e,t){return fe(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return fe(e.getHours()%12||12,t.length)},H(e,t){return fe(e.getHours(),t.length)},m(e,t){return fe(e.getMinutes(),t.length)},s(e,t){return fe(e.getSeconds(),t.length)},S(e,t){const n=t.length,s=e.getMilliseconds(),o=Math.trunc(s*Math.pow(10,n-3));return fe(o,t.length)}},Xt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yr={G:function(e,t,n){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});case"GGGG":default:return n.era(s,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const s=e.getFullYear(),o=s>0?s:1-s;return n.ordinalNumber(o,{unit:"year"})}return bt.y(e,t)},Y:function(e,t,n,s){const o=Yi(e,s),r=o>0?o:1-o;if(t==="YY"){const i=r%100;return fe(i,2)}return t==="Yo"?n.ordinalNumber(r,{unit:"year"}):fe(r,t.length)},R:function(e,t){const n=Vi(e);return fe(n,t.length)},u:function(e,t){const n=e.getFullYear();return fe(n,t.length)},Q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return fe(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return fe(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){const s=e.getMonth();switch(t){case"M":case"MM":return bt.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return fe(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){const o=Df(e,s);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):fe(o,t.length)},I:function(e,t,n){const s=Sf(e);return t==="Io"?n.ordinalNumber(s,{unit:"week"}):fe(s,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):bt.d(e,t)},D:function(e,t,n){const s=$f(e);return t==="Do"?n.ordinalNumber(s,{unit:"dayOfYear"}):fe(s,t.length)},E:function(e,t,n){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(s,{width:"short",context:"formatting"});case"EEEE":default:return n.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,n,s){const o=e.getDay(),r=(o-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return fe(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,s){const o=e.getDay(),r=(o-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return fe(r,t.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const s=e.getDay(),o=s===0?7:s;switch(t){case"i":return String(o);case"ii":return fe(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});case"iiii":default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const s=e.getHours();let o;switch(s===12?o=Xt.noon:s===0?o=Xt.midnight:o=s/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const s=e.getHours();let o;switch(s>=17?o=Xt.evening:s>=12?o=Xt.afternoon:s>=4?o=Xt.morning:o=Xt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),n.ordinalNumber(s,{unit:"hour"})}return bt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):bt.H(e,t)},K:function(e,t,n){const s=e.getHours()%12;return t==="Ko"?n.ordinalNumber(s,{unit:"hour"}):fe(s,t.length)},k:function(e,t,n){let s=e.getHours();return s===0&&(s=24),t==="ko"?n.ordinalNumber(s,{unit:"hour"}):fe(s,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):bt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):bt.s(e,t)},S:function(e,t){return bt.S(e,t)},X:function(e,t,n){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return wr(s);case"XXXX":case"XX":return Ht(s);case"XXXXX":case"XXX":default:return Ht(s,":")}},x:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"x":return wr(s);case"xxxx":case"xx":return Ht(s);case"xxxxx":case"xxx":default:return Ht(s,":")}},O:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_r(s,":");case"OOOO":default:return"GMT"+Ht(s,":")}},z:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_r(s,":");case"zzzz":default:return"GMT"+Ht(s,":")}},t:function(e,t,n){const s=Math.trunc(+e/1e3);return fe(s,t.length)},T:function(e,t,n){return fe(+e,t.length)}};function _r(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),o=Math.trunc(s/60),r=s%60;return r===0?n+String(o):n+String(o)+t+fe(r,2)}function wr(e,t){return e%60===0?(e>0?"-":"+")+fe(Math.abs(e)/60,2):Ht(e,t)}function Ht(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),o=fe(Math.trunc(s/60),2),r=fe(s%60,2);return n+o+t+r}const xr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Bi=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Mf=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],s=n[1],o=n[2];if(!o)return xr(e,t);let r;switch(s){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",xr(s,t)).replace("{{time}}",Bi(o,t))},Pf={p:Bi,P:Mf},jf=/^D+$/,Of=/^Y+$/,Af=["D","DD","YY","YYYY"];function Ef(e){return jf.test(e)}function Nf(e){return Of.test(e)}function Rf(e,t,n){const s=Ff(e,t,n);if(console.warn(s),Af.includes(e))throw new RangeError(s)}function Ff(e,t,n){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const If=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jf=/^'([^]*?)'?$/,Wf=/''/g,Hf=/[a-zA-Z]/;function qf(e,t,n){var f,m,g,p;const s=Jn(),o=s.locale??Ui,r=s.firstWeekContainsDate??((m=(f=s.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,i=s.weekStartsOn??((p=(g=s.locale)==null?void 0:g.options)==null?void 0:p.weekStartsOn)??0,l=ke(e,n==null?void 0:n.in);if(!Ru(l))throw new RangeError("Invalid time value");let c=t.match(Lf).map(y=>{const $=y[0];if($==="p"||$==="P"){const P=Pf[$];return P(y,o.formatLong)}return y}).join("").match(If).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const $=y[0];if($==="'")return{isToken:!1,value:Vf(y)};if(yr[$])return{isToken:!0,value:y};if($.match(Hf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return{isToken:!1,value:y}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const u={firstWeekContainsDate:r,weekStartsOn:i,locale:o};return c.map(y=>{if(!y.isToken)return y.value;const $=y.value;(Nf($)||Ef($))&&Rf($,t,String(e));const P=yr[$[0]];return P(l,$,o.localize,u)}).join("")}function Vf(e){const t=e.match(Jf);return t?t[1].replace(Wf,"'"):e}function Uf(e,t,n){const s=Jn(),o=(n==null?void 0:n.locale)??s.locale??Ui,r=2520,i=os(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:i}),[c,u]=$s(n==null?void 0:n.in,...i>0?[t,e]:[e,t]),f=Vu(u,c),m=(ms(u)-ms(c))/1e3,g=Math.round((f-m)/60);let p;if(g<2)return n!=null&&n.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,l):f<10?o.formatDistance("lessThanXSeconds",10,l):f<20?o.formatDistance("lessThanXSeconds",20,l):f<40?o.formatDistance("halfAMinute",0,l):f<60?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",1,l):g===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",g,l);if(g<45)return o.formatDistance("xMinutes",g,l);if(g<90)return o.formatDistance("aboutXHours",1,l);if(g<gr){const y=Math.round(g/60);return o.formatDistance("aboutXHours",y,l)}else{if(g<r)return o.formatDistance("xDays",1,l);if(g<Bn){const y=Math.round(g/gr);return o.formatDistance("xDays",y,l)}else if(g<Bn*2)return p=Math.round(g/Bn),o.formatDistance("aboutXMonths",p,l)}if(p=qu(u,c),p<12){const y=Math.round(g/Bn);return o.formatDistance("xMonths",y,l)}else{const y=p%12,$=Math.trunc(p/12);return y<3?o.formatDistance("aboutXYears",$,l):y<9?o.formatDistance("overXYears",$,l):o.formatDistance("almostXYears",$+1,l)}}function Yf(e,t){return Uf(e,Eu(e),t)}function xo(e,t){const n=()=>Ze(t==null?void 0:t.in,NaN),o=zf(e);let r;if(o.date){const u=Xf(o.date,2);r=Qf(u.restDateString,u.year)}if(!r||isNaN(+r))return n();const i=+r;let l=0,c;if(o.time&&(l=Zf(o.time),isNaN(l)))return n();if(o.timezone){if(c=ed(o.timezone),isNaN(c))return n()}else{const u=new Date(i+l),f=ke(0,t==null?void 0:t.in);return f.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),f.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),f}return ke(i+l+c,t==null?void 0:t.in)}const Kn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Bf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Gf=/^([+-])(\d{2})(?::?(\d{2}))?$/;function zf(e){const t={},n=e.split(Kn.dateTimeDelimiter);let s;if(n.length>2)return t;if(/:/.test(n[0])?s=n[0]:(t.date=n[0],s=n[1],Kn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Kn.timeZoneDelimiter)[0],s=e.substr(t.date.length,e.length))),s){const o=Kn.timezone.exec(s);o?(t.time=s.replace(o[1],""),t.timezone=o[1]):t.time=s}return t}function Xf(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),s=e.match(n);if(!s)return{year:NaN,restDateString:""};const o=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:r===null?o:r*100,restDateString:e.slice((s[1]||s[2]).length)}}function Qf(e,t){if(t===null)return new Date(NaN);const n=e.match(Bf);if(!n)return new Date(NaN);const s=!!n[4],o=mn(n[1]),r=mn(n[2])-1,i=mn(n[3]),l=mn(n[4]),c=mn(n[5])-1;if(s)return rd(t,l,c)?td(t,l,c):new Date(NaN);{const u=new Date(0);return!sd(t,r,i)||!od(t,o)?new Date(NaN):(u.setUTCFullYear(t,r,Math.max(o,i)),u)}}function mn(e){return e?parseInt(e):1}function Zf(e){const t=e.match(Kf);if(!t)return NaN;const n=Ls(t[1]),s=Ls(t[2]),o=Ls(t[3]);return id(n,s,o)?n*qi+s*Hi+o*1e3:NaN}function Ls(e){return e&&parseFloat(e.replace(",","."))||0}function ed(e){if(e==="Z")return 0;const t=e.match(Gf);if(!t)return 0;const n=t[1]==="+"?-1:1,s=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return ld(s,o)?n*(s*qi+o*Hi):NaN}function td(e,t,n){const s=new Date(0);s.setUTCFullYear(e,0,4);const o=s.getUTCDay()||7,r=(t-1)*7+n+1-o;return s.setUTCDate(s.getUTCDate()+r),s}const nd=[31,null,31,30,31,30,31,31,30,31,30,31];function Ki(e){return e%400===0||e%4===0&&e%100!==0}function sd(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(nd[t]||(Ki(e)?29:28))}function od(e,t){return t>=1&&t<=(Ki(e)?366:365)}function rd(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function id(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function ld(e,t){return t>=0&&t<=59}function vt(e){if(!e)return"";const t=typeof e=="string"?xo(e):e;return isNaN(t.getTime())?"":Yf(t,{addSuffix:!0})}function pn(e){if(!e)return"";const t=typeof e=="string"?xo(e):e;return isNaN(t.getTime())?"":qf(t,"dd-MM-yyyy HH:mm:ss")}function yt(e){if(!e)return"";const t=typeof e=="string"?xo(e):e;return isNaN(t.getTime())?"":t.toISOString()}const ad={class:"d-flex justify-content-end mb-2 flex-wrap gap-2"},cd={class:"me-2 align-self-center"},ud=["disabled"],fd=["disabled"],dd=["disabled"],hd=["disabled"],md={class:"table table-striped d-none d-xl-table"},pd={class:"table-dark"},gd=["checked"],bd={key:0,class:"sort-icon"},vd={key:0,class:"sort-icon"},yd={key:0,class:"sort-icon"},_d={key:0,class:"sort-icon"},wd={key:0},xd={key:1},Cd={colspan:"8",scope:"row"},kd={class:"text-center py-5 text-muted"},$d={key:0},Sd={key:1},Td={key:2},Dd={width:"10",class:"mult-select"},Md=["checked","onChange"],Pd={scope:"row",class:"job-name"},jd={key:0,class:"pill-own bg-secondary pill-without-icon"},Od={key:1,class:"pill-own bg-info"},Ad={key:2,class:"pill-own bg-info pill-without-icon"},Ed={key:3,class:"pill-own bg-success pill-without-icon"},Nd={key:4,class:"pill-own bg-primary pill-without-icon"},Rd={key:5,class:"pill-own bg-danger pill-without-icon"},Fd={key:6,class:"pill-own bg-warning pill-without-icon"},Id={key:7,class:"progress mt-1",style:{height:"4px","min-width":"60px"}},Ld=["aria-valuenow"],Jd=["onClick"],Wd=["title","onClick"],Hd=["title","onClick"],qd=["title","onClick"],Vd=["title","onClick"],Ud={class:"job-actions"},Yd=["onClick"],Bd=["onClick"],Kd=["onClick"],Gd=["onClick"],zd=["onClick"],Xd={class:"d-xl-none"},Qd={key:0,class:"col-12 my-5 ms-auto text-center"},Zd={key:1,class:"text-center py-5 text-muted"},eh={key:0},th={key:1},nh={key:2,class:"row"},sh={class:"card bg-light"},oh={class:"card-header card-responsive-title-container"},rh=["onClick"],ih={class:"d-flex align-items-center"},lh={class:"card-responsive-status-title me-2"},ah=["checked","onChange"],ch=["onClick"],uh=["onClick"],fh=["onClick"],dh=["onClick"],hh=["onClick"],mh={class:"card-body"},ph={class:"d-flex justify-content-center mb-2 flex-wrap"},gh={key:0,class:"pill-own me-2 bg-secondary pill-without-icon pill-own-card"},bh={key:1,class:"pill-own me-2 bg-info pill-own-card"},vh={class:"pill-own-card-info"},yh={key:2,class:"pill-own me-2 bg-info pill-without-icon pill-own-card"},_h={key:3,class:"pill-own me-2 bg-success pill-without-icon pill-own-card"},wh={key:4,class:"pill-own me-2 bg-primary pill-without-icon pill-own-card"},xh={key:5,class:"pill-own me-2 bg-danger pill-without-icon pill-own-card"},Ch={key:6,class:"pill-own me-2 bg-warning pill-without-icon pill-own-card"},kh={key:0,class:"w-100 px-3 mb-2"},$h={class:"progress",style:{height:"6px"}},Sh=["aria-valuenow"],Th={class:"text-muted d-block text-center mt-1"},Dh={class:"row"},Mh={class:"col col-md-6 text-center"},Ph=["title"],jh=["title"],Oh={class:"col col-md-6 text-center"},Ah=["title"],Eh=["title"],Nh={class:"row mt-3"},Rh={class:"col d-flex justify-content-center"},Fh={"aria-label":"Page navigation"},Ih={class:"pagination"},Lh={class:"row"},Jh={class:"col d-flex justify-content-center"},Wh={class:"d-none d-xl-block"},Hh={class:"row mt-3"},qh={class:"col d-flex justify-content-center"},Vh={"aria-label":"Page navigation"},Uh={class:"pagination"},Yh={class:"row"},Bh={class:"col d-flex justify-content-center"},Kh=ft({__name:"JobList",props:{jobs:{},pageSize:{},pageNumber:{},totalPages:{},loading:{type:Boolean},filterDisplay:{}},emits:["show-job-detail","confirm-delete","confirm-requeue","confirm-pause","confirm-resume","confirm-delete-multi","confirm-requeue-multi","confirm-pause-multi","confirm-resume-multi","page-next","page-prev"],setup(e,{emit:t}){const n=e,s=t,o=Y([]),r=Y("name"),i=Y("asc");wn(()=>n.jobs,()=>{o.value=[]});const l=Ot(()=>{const b=[...n.jobs].sort((v,x)=>{let k,R;r.value==="name"?(k=(v.job.name||"").toLowerCase(),R=(x.job.name||"").toLowerCase()):(k=v.job[r.value]?new Date(v.job[r.value]).getTime():0,R=x.job[r.value]?new Date(x.job[r.value]).getTime():0);const H=i.value==="desc"?-1:1;return k<R?-1*H:k>R?1*H:0});return[...b.filter(v=>v.repeating),...b.filter(v=>!v.repeating)]});function c(b){b===r.value?i.value=i.value==="asc"?"desc":"asc":(r.value=b,i.value="asc")}function u(b){const v=b.job._id,x=o.value.indexOf(v);x===-1?o.value.push(v):o.value.splice(x,1)}function f(){o.value.length===n.jobs.length?o.value=[]:o.value=n.jobs.map(b=>b.job._id)}function m(b){return o.value.includes(b.job._id)}function g(){s("confirm-requeue-multi",[...o.value])}function p(){s("confirm-delete-multi",[...o.value])}function y(){s("confirm-pause-multi",[...o.value])}function $(){s("confirm-resume-multi",[...o.value])}function P(b){return r.value!==b?"":i.value==="asc"?"▲":"▼"}return(b,v)=>(w(),C("div",null,[a("div",ad,[a("span",cd,j(o.value.length)+" jobs selected",1),a("button",{disabled:!o.value.length,class:"btn btn-primary",title:"Requeue list of selected jobs",onClick:g}," Multiple Requeue ",8,ud),a("button",{disabled:!o.value.length,class:"btn btn-secondary",title:"Pause list of selected jobs",onClick:y}," Multiple Pause ",8,fd),a("button",{disabled:!o.value.length,class:"btn btn-success",title:"Resume list of selected jobs",onClick:$}," Multiple Resume ",8,dd),a("button",{disabled:!o.value.length,class:"btn btn-danger",title:"Delete list of selected jobs",onClick:p}," Multiple Delete ",8,hd)]),a("table",md,[a("thead",pd,[a("tr",null,[a("th",{scope:"col",onClick:f},[a("input",{type:"checkbox",checked:o.value.length===e.jobs.length&&e.jobs.length>0},null,8,gd)]),v[12]||(v[12]=a("th",{scope:"col"},"Status",-1)),a("th",{scope:"col",onClick:v[0]||(v[0]=x=>c("name"))},[v[8]||(v[8]=Ge(" Name ",-1)),r.value==="name"?(w(),C("span",bd,j(P("name")),1)):L("",!0)]),a("th",{scope:"col",onClick:v[1]||(v[1]=x=>c("lastRunAt"))},[v[9]||(v[9]=Ge(" Last run started ",-1)),r.value==="lastRunAt"?(w(),C("span",vd,j(P("lastRunAt")),1)):L("",!0)]),a("th",{scope:"col",onClick:v[2]||(v[2]=x=>c("nextRunAt"))},[v[10]||(v[10]=Ge(" Next run starts ",-1)),r.value==="nextRunAt"?(w(),C("span",yd,j(P("nextRunAt")),1)):L("",!0)]),a("th",{scope:"col",onClick:v[3]||(v[3]=x=>c("lastFinishedAt"))},[v[11]||(v[11]=Ge(" Last finished ",-1)),r.value==="lastFinishedAt"?(w(),C("span",_d,j(P("lastFinishedAt")),1)):L("",!0)]),v[13]||(v[13]=a("th",{scope:"col"},"Locked",-1)),v[14]||(v[14]=a("th",{scope:"col"},"Actions",-1))])]),e.loading?(w(),C("tbody",wd,[...v[15]||(v[15]=[a("tr",null,[a("td",{colspan:"8",scope:"row"},[a("div",{class:"col-12 my-5 ms-auto text-center"},[a("div",{class:"text-center my-5 py-5"},[a("div",{class:"spinner-border",role:"status"},[a("span",{class:"visually-hidden"},"Loading...")]),a("div",null,[a("span",null,"Loading Jobs...")])])])])],-1)])])):e.jobs.length===0?(w(),C("tbody",xd,[a("tr",null,[a("td",Cd,[a("div",kd,[v[18]||(v[18]=a("div",{class:"mb-2",style:{"font-size":"2rem"}},"🔍",-1)),e.filterDisplay?(w(),C("div",$d,[v[16]||(v[16]=a("strong",null,"No jobs found",-1)),Ge(' for filter "'+j(e.filterDisplay)+'" ',1)])):(w(),C("div",Sd,[...v[17]||(v[17]=[a("strong",null,"No jobs found",-1)])])),v[19]||(v[19]=a("small",{class:"d-block mt-2"},"Try adjusting your filter criteria",-1))])])])])):(w(),C("tbody",Td,[(w(!0),C(xe,null,jt(l.value,x=>(w(),C("tr",{key:x.job._id},[a("td",Dd,[a("input",{type:"checkbox",checked:m(x),onChange:k=>u(x)},null,40,Md)]),a("td",Pd,[x.paused?(w(),C("span",jd,[...v[20]||(v[20]=[a("span",null,"Paused",-1)])])):L("",!0),x.repeating?(w(),C("span",Od,[a("span",null,j(x.job.repeatInterval),1)])):L("",!0),x.scheduled?(w(),C("span",Ad,[...v[21]||(v[21]=[a("span",null,"Scheduled",-1)])])):L("",!0),x.completed?(w(),C("span",Ed,[...v[22]||(v[22]=[a("span",null,"Completed",-1)])])):L("",!0),x.queued?(w(),C("span",Nd,[...v[23]||(v[23]=[a("span",null,"Queued",-1)])])):L("",!0),x.failed?(w(),C("span",Rd,[...v[24]||(v[24]=[a("span",null,"Failed",-1)])])):L("",!0),x.running?(w(),C("span",Fd,[...v[25]||(v[25]=[a("span",null,"Running",-1)])])):L("",!0),x.running&&x.job.progress!=null?(w(),C("div",Id,[a("div",{class:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar",style:pe({width:x.job.progress+"%"}),"aria-valuenow":x.job.progress,"aria-valuemin":"0","aria-valuemax":"100"},null,12,Ld)])):L("",!0)]),a("td",{class:"job-name",onClick:k=>u(x)},j(x.job.name),9,Jd),a("td",{class:"job-lastRunAt",title:U(yt)(x.job.lastRunAt),onClick:k=>u(x)},j(U(vt)(x.job.lastRunAt)),9,Wd),a("td",{class:"job-nextRunAt",title:U(yt)(x.job.nextRunAt),onClick:k=>u(x)},j(U(vt)(x.job.nextRunAt)),9,Hd),a("td",{class:"job-finishedAt",title:U(yt)(x.job.lastFinishedAt),onClick:k=>u(x)},j(U(vt)(x.job.lastFinishedAt)),9,qd),a("td",{class:"job-lockedAt",title:U(yt)(x.job.lockedAt),onClick:k=>u(x)},j(U(vt)(x.job.lockedAt)),9,Vd),a("td",Ud,[a("span",{class:"action-btn text-primary",title:"Requeue",onClick:k=>b.$emit("confirm-requeue",x)},"↻",8,Yd),x.paused?(w(),C("span",{key:0,class:"action-btn text-success",title:"Resume job",onClick:k=>b.$emit("confirm-resume",x)},"▶",8,Bd)):(w(),C("span",{key:1,class:"action-btn text-secondary",title:"Pause job",onClick:k=>b.$emit("confirm-pause",x)},"⏸",8,Kd)),a("span",{class:"action-btn text-success",title:"Job Data",onClick:k=>b.$emit("show-job-detail",x)},"👁",8,Gd),a("span",{class:"action-btn text-danger",title:"Delete permanently",onClick:k=>b.$emit("confirm-delete",x)},"🗑",8,zd)])]))),128))]))]),a("div",Xd,[e.loading?(w(),C("div",Qd,[...v[26]||(v[26]=[a("div",{class:"text-center my-5 py-5"},[a("div",{class:"spinner-border",role:"status"},[a("span",{class:"visually-hidden"},"Loading...")]),a("div",null,[a("span",null,"Loading Jobs...")])],-1)])])):e.jobs.length===0?(w(),C("div",Zd,[v[29]||(v[29]=a("div",{class:"mb-2",style:{"font-size":"2rem"}},"🔍",-1)),e.filterDisplay?(w(),C("div",eh,[v[27]||(v[27]=a("strong",null,"No jobs found",-1)),Ge(' for filter "'+j(e.filterDisplay)+'" ',1)])):(w(),C("div",th,[...v[28]||(v[28]=[a("strong",null,"No jobs found",-1)])])),v[30]||(v[30]=a("small",{class:"d-block mt-2"},"Try adjusting your filter criteria",-1))])):(w(),C("div",nh,[(w(!0),C(xe,null,jt(l.value,x=>(w(),C("div",{key:x.job._id,class:"col col-xs-6 order-1 p-1"},[a("div",sh,[a("div",oh,[a("div",{class:"card-responsive-name",onClick:k=>u(x)},j(x.job.name),9,rh),a("div",ih,[a("div",lh,[a("input",{type:"checkbox",class:"card-responsive-checkbox",checked:m(x),onChange:k=>u(x)},null,40,ah)]),a("span",{class:"action-btn text-primary material-icons-size me-1",title:"Requeue",onClick:k=>b.$emit("confirm-requeue",x)},"↻",8,ch),x.paused?(w(),C("span",{key:0,class:"action-btn text-success material-icons-size me-1",title:"Resume job",onClick:k=>b.$emit("confirm-resume",x)},"▶",8,uh)):(w(),C("span",{key:1,class:"action-btn text-secondary material-icons-size me-1",title:"Pause job",onClick:k=>b.$emit("confirm-pause",x)},"⏸",8,fh)),a("span",{class:"action-btn text-success material-icons-size me-1",title:"Job Data",onClick:k=>b.$emit("show-job-detail",x)},"👁",8,dh),a("span",{class:"action-btn text-danger material-icons-size",title:"Delete permanently",onClick:k=>b.$emit("confirm-delete",x)},"🗑",8,hh)])]),a("div",mh,[a("div",ph,[x.paused?(w(),C("span",gh,[...v[31]||(v[31]=[a("span",{class:"pill-own-card-info"},"Paused",-1)])])):L("",!0),x.repeating?(w(),C("span",bh,[a("span",vh,j(x.job.repeatInterval),1)])):L("",!0),x.scheduled?(w(),C("span",yh,[...v[32]||(v[32]=[a("span",{class:"pill-own-card-info"},"Scheduled",-1)])])):L("",!0),x.completed?(w(),C("span",_h,[...v[33]||(v[33]=[a("span",{class:"pill-own-card-info"},"Completed",-1)])])):L("",!0),x.queued?(w(),C("span",wh,[...v[34]||(v[34]=[a("span",{class:"pill-own-card-info"},"Queued",-1)])])):L("",!0),x.failed?(w(),C("span",xh,[...v[35]||(v[35]=[a("span",{class:"pill-own-card-info"},"Failed",-1)])])):L("",!0),x.running?(w(),C("span",Ch,[...v[36]||(v[36]=[a("span",{class:"pill-own-card-info"},"Running",-1)])])):L("",!0)]),x.running&&x.job.progress!=null?(w(),C("div",kh,[a("div",$h,[a("div",{class:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar",style:pe({width:x.job.progress+"%"}),"aria-valuenow":x.job.progress,"aria-valuemin":"0","aria-valuemax":"100"},null,12,Sh)]),a("small",Th,j(x.job.progress)+"%",1)])):L("",!0),a("div",Dh,[a("div",Mh,[v[37]||(v[37]=a("div",{class:"card-responsive-status-title"},"Last run started",-1)),a("div",{class:"mb-3",title:U(yt)(x.job.lastRunAt)},j(U(vt)(x.job.lastRunAt)||"-"),9,Ph),v[38]||(v[38]=a("div",{class:"card-responsive-status-title"},"Last finished",-1)),a("div",{title:U(yt)(x.job.lastFinishedAt)},j(U(vt)(x.job.lastFinishedAt)||"-"),9,jh)]),a("div",Oh,[v[39]||(v[39]=a("div",{class:"card-responsive-status-title"},"Next run starts",-1)),a("div",{class:"mb-3",title:U(yt)(x.job.nextRunAt)},j(U(vt)(x.job.nextRunAt)||"-"),9,Ah),v[40]||(v[40]=a("div",{class:"card-responsive-status-title"},"Locked",-1)),a("div",{title:U(yt)(x.job.lockedAt)},j(U(vt)(x.job.lockedAt)||"-"),9,Eh)])])])])]))),128))])),a("div",Nh,[a("div",Rh,[a("nav",Fh,[a("ul",Ih,[a("li",{class:de(["page-item",{disabled:e.pageNumber===1}])},[a("a",{class:"page-link",href:"#",onClick:v[4]||(v[4]=Se(x=>b.$emit("page-prev"),["prevent"]))},"Previous")],2),a("li",{class:de(["page-item",{disabled:e.pageNumber>=e.totalPages}])},[a("a",{class:"page-link",href:"#",onClick:v[5]||(v[5]=Se(x=>b.$emit("page-next"),["prevent"]))},"Next")],2)])])])]),a("div",Lh,[a("div",Jh,"Page: "+j(e.pageNumber)+" / "+j(e.totalPages),1)])]),a("div",Wh,[a("div",Hh,[a("div",qh,[a("nav",Vh,[a("ul",Uh,[a("li",{class:de(["page-item",{disabled:e.pageNumber===1}])},[a("a",{class:"page-link",href:"#",onClick:v[6]||(v[6]=Se(x=>b.$emit("page-prev"),["prevent"]))},"Previous")],2),a("li",{class:de(["page-item",{disabled:e.pageNumber>=e.totalPages}])},[a("a",{class:"page-link",href:"#",onClick:v[7]||(v[7]=Se(x=>b.$emit("page-next"),["prevent"]))},"Next")],2)])])])]),a("div",Yh,[a("div",Bh,"Page: "+j(e.pageNumber)+" / "+j(e.totalPages),1)])])]))}}),Gh={class:"modal-header"},zh={class:"modal-title"},Xh={class:"tab-nav"},Qh={class:"modal-body"},Zh={key:0},em={key:0,class:"alert alert-secondary mb-3"},tm={class:"mb-3"},nm={class:"row"},sm={class:"col-6"},om={class:"col-6"},rm={class:"mb-3"},im={class:"row"},lm={class:"col-6"},am={class:"col-6"},cm={key:1,class:"mb-3"},um={key:0,class:"text-muted ms-2"},fm={class:"mb-3"},dm={class:"row"},hm={class:"col-6"},mm={class:"col-6"},pm={key:0,class:"progress-container"},gm={class:"progress",style:{height:"20px"}},bm=["aria-valuenow"],vm={key:1},ym={class:"mb-3"},_m={class:"json-editor"},wm={key:2,class:"alert alert-danger mb-0"},xm={class:"row"},Cm={class:"col-6"},km={class:"col-6"},$m={key:1},Sm={class:"json-editor json-editor-large"},Tm={class:"modal-footer"},Dm={class:"text-muted me-auto"},Mm=ft({__name:"JobDetail",props:{job:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=t;function o(c){c.key==="Escape"&&(c.preventDefault(),s("close"))}At(()=>{document.addEventListener("keydown",o)}),Et(()=>{document.removeEventListener("keydown",o)});const r=Y("details"),i=Ot(()=>{try{return JSON.stringify(n.job.job.data,null,2)}catch{return String(n.job.job.data)}}),l=Ot(()=>{try{return JSON.stringify(n.job,null,2)}catch{return String(n.job)}});return(c,u)=>(w(),C("div",null,[a("div",Gh,[a("h5",zh,j(e.job.job.name),1),a("button",{type:"button",class:"btn-close",onClick:u[0]||(u[0]=f=>c.$emit("close"))})]),a("div",Xh,[a("button",{class:de(["tab-btn",{active:r.value==="details"}]),onClick:u[1]||(u[1]=f=>r.value="details")}," Details ",2),a("button",{class:de(["tab-btn",{active:r.value==="raw"}]),onClick:u[2]||(u[2]=f=>r.value="raw")}," Raw Data ",2)]),a("div",Qh,[r.value==="details"?(w(),C("div",Zh,[e.job.paused?(w(),C("div",em,[...u[4]||(u[4]=[a("strong",null,"Status: Paused",-1),a("div",{class:"small"},"This job is paused and will not run until resumed.",-1)])])):L("",!0),a("div",tm,[a("div",nm,[a("div",sm,[u[5]||(u[5]=a("small",{class:"text-muted d-block"},"Next run",-1)),a("strong",null,j(U(pn)(e.job.job.nextRunAt)||"Not scheduled"),1)]),a("div",om,[u[6]||(u[6]=a("small",{class:"text-muted d-block"},"Last run",-1)),a("strong",null,j(U(pn)(e.job.job.lastRunAt)||"Never"),1)])])]),a("div",rm,[a("div",im,[a("div",lm,[u[7]||(u[7]=a("small",{class:"text-muted d-block"},"Last finished",-1)),a("strong",null,j(U(pn)(e.job.job.lastFinishedAt)||"Never"),1)]),a("div",am,[u[8]||(u[8]=a("small",{class:"text-muted d-block"},"Locked at",-1)),a("strong",null,j(U(pn)(e.job.job.lockedAt)||"Not locked"),1)])])]),e.job.job.repeatInterval?(w(),C("div",cm,[u[9]||(u[9]=a("small",{class:"text-muted d-block"},"Repeat Interval",-1)),a("strong",null,j(e.job.job.repeatInterval),1),e.job.job.repeatTimezone?(w(),C("span",um,"("+j(e.job.job.repeatTimezone)+")",1)):L("",!0)])):L("",!0),a("div",fm,[a("div",dm,[a("div",hm,[u[10]||(u[10]=a("small",{class:"text-muted d-block"},"Priority",-1)),a("strong",null,j(e.job.job.priority??0),1)]),a("div",mm,[u[11]||(u[11]=a("small",{class:"text-muted d-block"},"Progress",-1)),e.job.job.progress!=null?(w(),C("div",pm,[a("div",gm,[a("div",{class:de(["progress-bar",{"progress-bar-striped progress-bar-animated":e.job.running}]),role:"progressbar",style:pe({width:e.job.job.progress+"%"}),"aria-valuenow":e.job.job.progress,"aria-valuemin":"0","aria-valuemax":"100"},j(e.job.job.progress)+"% ",15,bm)])])):(w(),C("strong",vm,"Not set"))])])]),a("div",ym,[u[12]||(u[12]=a("small",{class:"text-muted d-block mb-1"},"Job Data",-1)),a("pre",_m,j(i.value),1)]),e.job.failed?(w(),C("div",wm,[a("div",xm,[a("div",Cm,[u[13]||(u[13]=a("small",{class:"d-block"},"Fail Count",-1)),a("strong",null,j(e.job.job.failCount),1)]),a("div",km,[u[14]||(u[14]=a("small",{class:"d-block"},"Failed At",-1)),a("strong",null,j(U(pn)(e.job.job.failedAt)),1)])]),u[15]||(u[15]=a("hr",{class:"my-2"},null,-1)),u[16]||(u[16]=a("small",{class:"d-block"},"Reason",-1)),a("code",null,j(e.job.job.failReason),1)])):L("",!0)])):r.value==="raw"?(w(),C("div",$m,[u[17]||(u[17]=a("small",{class:"text-muted d-block mb-2"},"Complete job object (for debugging)",-1)),a("pre",Sm,j(l.value),1)])):L("",!0)]),a("div",Tm,[a("small",Dm,"ID: "+j(e.job.job._id),1),a("button",{type:"button",class:"btn btn-secondary",onClick:u[3]||(u[3]=f=>c.$emit("close"))},"Close")])]))}}),Pm=Ln(Mm,[["__scopeId","data-v-c75926e3"]]),jm={class:"modal-body"},Om={class:"mb-3"},Am={class:"mb-3"},Em={class:"mb-3"},Nm={class:"mb-3"},Rm={key:0,class:"text-danger"},Fm={class:"modal-footer"},Im=["disabled"],Lm=ft({__name:"NewJob",emits:["close","create"],setup(e,{emit:t}){const n=t;function s(g){g.key==="Escape"&&(g.preventDefault(),m())}At(()=>{document.addEventListener("keydown",s)}),Et(()=>{document.removeEventListener("keydown",s)});const o=Y(""),r=Y(""),i=Y(""),l=Y("{}"),c=Y("");function u(){o.value="",r.value="",i.value="",l.value="{}",c.value=""}function f(){let g;try{g=JSON.parse(l.value),c.value=""}catch(p){c.value=p instanceof Error?p.message:"Invalid JSON";return}n("create",o.value,r.value,i.value,g),u()}function m(){u(),n("close")}return(g,p)=>(w(),C("div",null,[a("div",{class:"modal-header"},[p[4]||(p[4]=a("h5",{class:"modal-title"},"Create Job",-1)),a("button",{type:"button",class:"btn-close",onClick:m})]),a("div",jm,[a("form",{onSubmit:Se(f,["prevent"])},[a("div",Om,[p[5]||(p[5]=a("label",{for:"jobname",class:"form-label"},[Ge("Job Name "),a("span",{class:"text-danger"},"*")],-1)),Ke(a("input",{id:"jobname","onUpdate:modelValue":p[0]||(p[0]=y=>o.value=y),type:"text",class:"form-control",placeholder:"e.g., send-email",required:""},null,512),[[Dt,o.value]])]),a("div",Am,[p[6]||(p[6]=a("label",{for:"jobSchedule",class:"form-label"},"Schedule (when to run)",-1)),Ke(a("input",{id:"jobSchedule","onUpdate:modelValue":p[1]||(p[1]=y=>r.value=y),type:"text",class:"form-control",placeholder:"e.g., in 5 minutes"},null,512),[[Dt,r.value]]),p[7]||(p[7]=a("small",{class:"text-muted"},'Human interval: "in 5 minutes", "tomorrow at 9am"',-1))]),a("div",Em,[p[8]||(p[8]=a("label",{for:"jobRepeatEvery",class:"form-label"},"Repeat Every",-1)),Ke(a("input",{id:"jobRepeatEvery","onUpdate:modelValue":p[2]||(p[2]=y=>i.value=y),type:"text",class:"form-control",placeholder:"e.g., 1 hour"},null,512),[[Dt,i.value]]),p[9]||(p[9]=a("small",{class:"text-muted"},'Interval: "1 hour", "5 minutes", or cron: "0 * * * *"',-1))]),a("div",Nm,[p[10]||(p[10]=a("label",{for:"jobData",class:"form-label"},"Job Data (JSON)",-1)),Ke(a("textarea",{id:"jobData","onUpdate:modelValue":p[3]||(p[3]=y=>l.value=y),class:"form-control json-textarea",rows:"4",placeholder:'{"key": "value"}'},null,512),[[Dt,l.value]]),c.value?(w(),C("small",Rm,j(c.value),1)):L("",!0)])],32)]),a("div",Fm,[a("button",{type:"button",class:"btn btn-secondary",onClick:m},"Cancel"),a("button",{type:"button",class:"btn btn-primary",disabled:!o.value,onClick:f}," Create Job ",8,Im)])]))}}),Jm={class:"modal-header"},Wm={class:"modal-title"},Hm=["disabled"],qm={class:"modal-body"},Vm={class:"mb-3"},Um={key:0,class:"bg-light rounded p-3 mb-3"},Ym={class:"text-muted"},Bm={key:0},Km={key:1},Gm={class:"text-muted d-block mb-1"},zm={class:"json-editor json-editor-compact"},Xm={class:"modal-footer"},Qm=["disabled"],Zm=["disabled"],ep={key:0,class:"spinner-border spinner-border-sm me-1"},tp=ft({__name:"ConfirmDialog",props:{title:{},message:{},details:{},confirmText:{},confirmClass:{},loading:{type:Boolean}},emits:["confirm","cancel"],setup(e,{emit:t}){const n=e,s=t;function o(l){n.loading||(l.key==="Enter"?(l.preventDefault(),s("confirm")):l.key==="Escape"&&(l.preventDefault(),s("cancel")))}At(()=>{document.addEventListener("keydown",o)}),Et(()=>{document.removeEventListener("keydown",o)});const r=Ot(()=>{var l;return((l=n.details)==null?void 0:l.filter(c=>c.type!=="json"))??[]}),i=Ot(()=>{var l;return((l=n.details)==null?void 0:l.filter(c=>c.type==="json"))??[]});return(l,c)=>(w(),C("div",null,[a("div",Jm,[a("h5",Wm,j(e.title),1),a("button",{type:"button",class:"btn-close",disabled:e.loading,onClick:c[0]||(c[0]=u=>l.$emit("cancel"))},null,8,Hm)]),a("div",qm,[a("p",Vm,j(e.message),1),r.value.length?(w(),C("div",Um,[(w(!0),C(xe,null,jt(r.value,u=>(w(),C("div",{key:u.label,class:"d-flex justify-content-between mb-1"},[a("span",Ym,j(u.label)+":",1),u.type==="code"?(w(),C("code",Bm,j(u.value),1)):(w(),C("span",Km,j(u.value),1))]))),128))])):L("",!0),(w(!0),C(xe,null,jt(i.value,u=>(w(),C("div",{key:u.label},[a("small",Gm,j(u.label),1),a("pre",zm,j(u.value),1)]))),128))]),a("div",Xm,[a("button",{type:"button",class:"btn btn-secondary",disabled:e.loading,onClick:c[1]||(c[1]=u=>l.$emit("cancel"))},"Cancel",8,Qm),a("button",{type:"button",class:de(["btn",e.confirmClass||"btn-primary"]),disabled:e.loading,onClick:c[2]||(c[2]=u=>l.$emit("confirm"))},[e.loading?(w(),C("span",ep)):L("",!0),Ge(" "+j(e.confirmText||"Confirm"),1)],10,Zm)])]))}}),_t=Ln(tp,[["__scopeId","data-v-6fa5a122"]]),Gn=Y([]);let np=0;function Gi(){function e(r,i="success",l=3e3){const c=np++,u={id:c,message:r,type:i};Gn.value.push(u),setTimeout(()=>{t(c)},l)}function t(r){const i=Gn.value.findIndex(l=>l.id===r);i!==-1&&Gn.value.splice(i,1)}function n(r){e(r,"success")}function s(r){e(r,"error")}function o(r){e(r,"info")}return{toasts:Gn,show:e,remove:t,success:n,error:s,info:o}}const sp={class:"toast-container"},op={class:"flex-grow-1"},rp=["onClick"],ip=ft({__name:"Toast",setup(e){const{toasts:t,remove:n}=Gi();return(s,o)=>(w(),us(ri,{to:"body"},[a("div",sp,[be(mc,{name:"toast"},{default:ei(()=>[(w(!0),C(xe,null,jt(U(t),r=>(w(),C("div",{key:r.id,class:de(["toast-item",{"toast-success":r.type==="success","toast-error":r.type==="error","toast-info":r.type==="info"}])},[a("span",op,j(r.message),1),a("button",{type:"button",class:"btn-close btn-close-sm",onClick:i=>U(n)(r.id)},null,8,rp)],2))),128))]),_:1})])]))}}),lp=Ln(ip,[["__scopeId","data-v-f853b4ff"]]),ap={class:"stats-panel"},cp={key:0,class:"stats-loading-full"},up={key:1,class:"alert alert-danger"},fp={key:2,class:"stats-content"},dp={class:"stats-section"},hp={class:"stats-grid"},mp={class:"stat-item"},pp={class:"stat-value"},gp={class:"stat-item"},bp={class:"stat-value"},vp={class:"stat-item"},yp={class:"stat-item"},_p={class:"stat-value"},wp={class:"stat-item"},xp={class:"stat-value"},Cp={class:"stat-item"},kp={class:"stat-value"},$p={class:"stat-item"},Sp={class:"stat-value"},Tp={class:"stat-item"},Dp={class:"stat-value"},Mp={class:"stats-section"},Pp={class:"stats-grid"},jp={class:"stat-item"},Op={class:"stat-value stat-running"},Ap={class:"stat-item"},Ep={class:"stat-value stat-queued"},Np={class:"stat-item"},Rp={class:"stat-value stat-locked"},Fp={class:"stat-item"},Ip={class:"stat-value"},Lp={key:0,class:"stats-section"},Jp={class:"job-status-list"},Wp={class:"job-status-name"},Hp={class:"job-status-badges"},qp={class:"stat-badge running"},Vp={class:"stat-badge locked"},Up={key:0,class:"stat-badge config"},Yp=ft({__name:"StatsPanel",setup(e){const t=Y(null),n=Y(!1),s=Y(null);let o=null;async function r(){n.value=!0,s.value=null;try{t.value=await Ji(!0)}catch(l){s.value="Failed to load stats",console.error("Failed to fetch stats:",l)}finally{n.value=!1}}function i(l){return typeof l=="number"?`${l}ms`:l}return At(()=>{r(),o=setInterval(r,5e3)}),Et(()=>{o&&clearInterval(o)}),(l,c)=>{var u,f,m;return w(),C("div",ap,[n.value&&!t.value?(w(),C("div",cp,[...c[0]||(c[0]=[a("div",{class:"spinner-border"},null,-1),a("span",null,"Loading stats...",-1)])])):s.value?(w(),C("div",up,j(s.value),1)):t.value?(w(),C("div",fp,[a("div",dp,[c[9]||(c[9]=a("div",{class:"stats-section-title"},"Configuration",-1)),a("div",hp,[a("div",mp,[c[1]||(c[1]=a("span",{class:"stat-label"},"Version",-1)),a("span",pp,j(t.value.version),1)]),a("div",gp,[c[2]||(c[2]=a("span",{class:"stat-label"},"Backend",-1)),a("span",bp,j(((u=t.value.backend)==null?void 0:u.name)||"unknown"),1)]),a("div",vp,[c[3]||(c[3]=a("span",{class:"stat-label"},"Notifications",-1)),a("span",{class:de(["stat-value",{"stat-enabled":(f=t.value.backend)==null?void 0:f.hasNotificationChannel}])},j((m=t.value.backend)!=null&&m.hasNotificationChannel?"enabled":"polling"),3)]),a("div",yp,[c[4]||(c[4]=a("span",{class:"stat-label"},"Queue Name",-1)),a("span",_p,j(t.value.queueName||"default"),1)]),a("div",wp,[c[5]||(c[5]=a("span",{class:"stat-label"},"Process Every",-1)),a("span",xp,j(i(t.value.config.processEvery)),1)]),a("div",Cp,[c[6]||(c[6]=a("span",{class:"stat-label"},"Max Concurrency",-1)),a("span",kp,j(t.value.config.maxConcurrency),1)]),a("div",$p,[c[7]||(c[7]=a("span",{class:"stat-label"},"Lock Limit",-1)),a("span",Sp,j(t.value.config.totalLockLimit||"unlimited"),1)]),a("div",Tp,[c[8]||(c[8]=a("span",{class:"stat-label"},"Jobs Ready to Run",-1)),a("span",Dp,j(t.value.totalQueueSizeDB),1)])])]),a("div",Mp,[c[14]||(c[14]=a("div",{class:"stats-section-title"},"Live Status",-1)),a("div",Pp,[a("div",jp,[c[10]||(c[10]=a("span",{class:"stat-label"},"Running Jobs",-1)),a("span",Op,j(typeof t.value.runningJobs=="number"?t.value.runningJobs:t.value.runningJobs.length),1)]),a("div",Ap,[c[11]||(c[11]=a("span",{class:"stat-label"},"Queued Jobs",-1)),a("span",Ep,j(typeof t.value.queuedJobs=="number"?t.value.queuedJobs:t.value.queuedJobs.length),1)]),a("div",Np,[c[12]||(c[12]=a("span",{class:"stat-label"},"Locked Jobs",-1)),a("span",Rp,j(typeof t.value.lockedJobs=="number"?t.value.lockedJobs:t.value.lockedJobs.length),1)]),a("div",Fp,[c[13]||(c[13]=a("span",{class:"stat-label"},"Local Queue Processing",-1)),a("span",Ip,j(t.value.internal.localQueueProcessing),1)])])]),t.value.jobStatus&&Object.keys(t.value.jobStatus).length>0?(w(),C("div",Lp,[c[15]||(c[15]=a("div",{class:"stats-section-title"},"Per-Job Status",-1)),a("div",Jp,[(w(!0),C(xe,null,jt(t.value.jobStatus,(g,p)=>(w(),C("div",{key:p,class:"job-status-item"},[a("span",Wp,j(p),1),a("div",Hp,[a("span",qp,j(g.running)+" running",1),a("span",Vp,j(g.locked)+" locked",1),g.config.concurrency?(w(),C("span",Up,"concurrency: "+j(g.config.concurrency),1)):L("",!0)])]))),128))])])):L("",!0)])):L("",!0)])}}}),Bp=Ln(Yp,[["__scopeId","data-v-c810d8d3"]]),wt=Y([]),Js=Y([]),zn=Y(!1),Ws=Y(!1),Hs=Y(0),Cr=Y(0),xt=Y(1),Xn=Y(50),tt=Y({}),Qn=Y(!1);let gn=null,Qt=null;function Kp(){const{success:e,error:t}=Gi(),n=Ot(()=>[...Js.value].sort((k,R)=>{const H=k.displayName.toLowerCase(),se=R.displayName.toLowerCase();return H==="all jobs"?-1:se==="all jobs"?1:H.localeCompare(se)})),s=Ot(()=>{const k=[];return tt.value.name&&k.push(tt.value.name),tt.value.state&&k.push(tt.value.state),k.length>0?k.join(" / "):"All Jobs"});async function o(k={}){zn.value=!0,Qt&&clearTimeout(Qt),Qt=setTimeout(()=>{zn.value&&(Ws.value=!0)},200);const R={...tt.value,...k};tt.value=R;try{const H=await Mc({name:R.name,search:R.search,property:R.property,isObjectId:R.isObjectId?"true":void 0,state:R.state,skip:R.skip,limit:R.limit||Xn.value});wt.value=H.jobs,Js.value=H.overview,Hs.value=H.totalPages,Cr.value=H.total}catch(H){console.error("Failed to fetch jobs:",H),wt.value=[],t("Failed to fetch jobs")}finally{zn.value=!1,Ws.value=!1,Qt&&(clearTimeout(Qt),Qt=null)}}async function r(k){try{await Pc(k),e("Jobs requeued successfully"),await o()}catch(R){console.error("Failed to requeue jobs:",R),t("Failed to requeue jobs")}}async function i(k){try{await jc(k),e("Jobs deleted successfully"),await o()}catch(R){console.error("Failed to delete jobs:",R),t("Failed to delete jobs")}}async function l(k){try{await Ac(k),e("Jobs paused successfully"),await o()}catch(R){console.error("Failed to pause jobs:",R),t("Failed to pause jobs")}}async function c(k){try{await Ec(k),e("Jobs resumed successfully"),await o()}catch(R){console.error("Failed to resume jobs:",R),t("Failed to resume jobs")}}async function u(k,R,H,se){try{await Oc({jobName:k,jobSchedule:R,jobRepeatEvery:H,jobData:se}),e("Job created successfully"),await o()}catch(ee){console.error("Failed to create job:",ee),t("Failed to create job")}}function f(k){xt.value=k;const R=(k-1)*Xn.value;o({...tt.value,skip:R})}function m(){xt.value<Hs.value&&f(xt.value+1)}function g(){xt.value>1&&f(xt.value-1)}function p(k){Xn.value=k,xt.value=1,o({...tt.value,skip:0,limit:k})}function y(k){xt.value=1,o({...k,skip:0})}function $(k){const R=wt.value.findIndex(H=>H.job._id===k.jobId);if(k.type==="progress"){if(R!==-1&&k.progress!==void 0){const H=wt.value[R];wt.value[R]={...H,job:{...H.job,progress:k.progress}}}}else if(k.type==="start"){if(R!==-1){const H=wt.value[R];wt.value[R]={...H,running:!0,job:{...H.job,progress:0}}}}else["success","fail","complete"].includes(k.type)&&b()}let P=null;function b(){P&&clearTimeout(P),P=setTimeout(()=>{o(),P=null},500)}function v(){gn||(gn=Nc($,k=>{console.error("SSE connection error:",k),Qn.value=!1},()=>{Qn.value=!0}))}function x(){gn&&(gn(),gn=null,Qn.value=!1)}return{jobs:wt,overview:Js,sortedOverview:n,loading:zn,showLoading:Ws,totalPages:Hs,total:Cr,currentPage:xt,pageSize:Xn,currentFilters:tt,currentFilterDisplay:s,realTimeConnected:Qn,fetchJobs:o,requeueJobs:r,deleteJobs:i,pauseJobs:l,resumeJobs:c,createJob:u,setPage:f,nextPage:m,prevPage:g,setPageSize:p,search:y,startRealTimeUpdates:v,stopRealTimeUpdates:x}}const Gp={class:"app-wrapper"},zp={class:"navbar navbar-custom navbar-dark sticky-top px-3 py-2"},Xp={class:"d-flex align-items-center gap-3"},Qp={key:0,class:"d-none d-md-flex align-items-center gap-1 text-success",title:"Real-time updates active"},Zp={class:"d-none d-md-flex align-items-center gap-2 text-white-50"},eg=["disabled"],tg={key:0,class:"spinner-border spinner-border-sm"},ng={key:1},sg={class:"d-flex flex-grow-1",style:{"min-height":"0"}},og={class:"sidebar d-none d-md-block"},rg={class:"flex-grow-1 p-4"},ig={class:"d-md-none d-flex justify-content-end mb-3"},lg=["disabled"],ag={key:0,class:"spinner-border spinner-border-sm me-1"},cg={key:1,class:"me-1"},ug={key:0},fg={key:1},dg={class:"current-filter-display mb-3"},hg={class:"filter-badge"},mg={class:"modal-container",style:{width:"600px"}},pg={class:"modal-container",style:{width:"500px"}},gg={class:"modal-container",style:{width:"400px"}},bg={class:"modal-container",style:{width:"400px"}},vg={class:"modal-container",style:{width:"400px"}},yg={class:"modal-container",style:{width:"400px"}},_g={class:"modal-container",style:{width:"400px"}},wg={class:"modal-container",style:{width:"400px"}},xg={class:"modal-container",style:{width:"400px"}},Cg={class:"modal-container",style:{width:"400px"}},kg=ft({__name:"App",setup(e){const{jobs:t,sortedOverview:n,loading:s,showLoading:o,totalPages:r,currentPage:i,pageSize:l,currentFilters:c,currentFilterDisplay:u,realTimeConnected:f,fetchJobs:m,requeueJobs:g,deleteJobs:p,pauseJobs:y,resumeJobs:$,createJob:P,nextPage:b,prevPage:v,search:x,startRealTimeUpdates:k,stopRealTimeUpdates:R}=Kp(),H=Y(!1),se=Y(30),ee=Y(30);let J=null;const Q=Y(!1),ne=Y(!1),F=Y(!1),le=Y(!1),_e=Y(!1),Me=Y(!1),ve=Y(!1),ce=Y(!1),oe=Y(!1),Ne=Y(!1),X=Y(null),ye=Y([]),K=Y(!1),ht=Y(!1);function Kt(G){try{return JSON.stringify(G,null,2)}catch{return String(G)}}function Ss(){J&&clearInterval(J),ee.value=se.value,J=setInterval(()=>{ee.value--,ee.value<=0&&(m(),ee.value=se.value)},1e3)}function mt(){m(),ee.value=se.value}function Gt(){H.value=!0}function pt(){H.value=!1}function Wn(G){X.value=G,Q.value=!0}function Nt(G){X.value=G,F.value=!0}function Co(G){X.value=G,le.value=!0}function d(G){ye.value=G,ve.value=!0}function h(G){ye.value=G,ce.value=!0}function _(G){X.value=G,_e.value=!0}function M(G){X.value=G,Me.value=!0}function S(G){ye.value=G,oe.value=!0}function T(G){ye.value=G,Ne.value=!0}async function E(){if(X.value){K.value=!0;try{await p([X.value.job._id])}finally{K.value=!1}}F.value=!1}async function A(){if(X.value){K.value=!0;try{await g([X.value.job._id])}finally{K.value=!1}}le.value=!1}async function O(){K.value=!0;try{await p(ye.value)}finally{K.value=!1}ve.value=!1,ye.value=[]}async function D(){K.value=!0;try{await g(ye.value)}finally{K.value=!1}ce.value=!1,ye.value=[]}async function q(){if(X.value){K.value=!0;try{await y([X.value.job._id])}finally{K.value=!1}}_e.value=!1}async function N(){if(X.value){K.value=!0;try{await $([X.value.job._id])}finally{K.value=!1}}Me.value=!1}async function W(){K.value=!0;try{await y(ye.value)}finally{K.value=!1}oe.value=!1,ye.value=[]}async function B(){K.value=!0;try{await $(ye.value)}finally{K.value=!1}Ne.value=!1,ye.value=[]}function Z(G){x(G),pt(),ee.value=se.value}function ue(G,I){ht.value=!1,x({name:G==="All Jobs"?"":G,state:I,skip:0}),pt(),ee.value=se.value}function re(){ht.value=!0,c.value={},pt()}async function $e(G,I,te,Rt){await P(G,I||void 0,te||void 0,Rt),ne.value=!1}return At(()=>{m(),Ss(),k()}),Et(()=>{J&&clearInterval(J),R()}),(G,I)=>(w(),C("div",Gp,[a("nav",zp,[I[23]||(I[23]=a("span",{class:"navbar-brand mb-0"},"Agendash",-1)),a("div",Xp,[U(f)?(w(),C("div",Qp,[...I[22]||(I[22]=[a("span",{class:"realtime-dot"},null,-1),a("small",null,"Live",-1)])])):L("",!0),a("div",Zp,[a("button",{class:"btn btn-sm btn-outline-light",disabled:U(s),title:"Refresh now",onClick:mt},[U(s)?(w(),C("span",tg)):(w(),C("span",ng,"↻"))],8,eg),a("small",null,j(ee.value)+"s",1)]),a("button",{class:"mobile-menu-btn d-md-none",onClick:Gt},"☰")])]),a("div",{class:de(["sidebar-mobile",{open:H.value}])},[a("button",{class:"sidebar-mobile-close",onClick:pt},"×"),H.value?(w(),us(pr,{key:0,overview:U(n),"page-size":U(l),loading:U(s),"current-filters":U(c),"showing-stats":ht.value,onSearch:ue,onNewJob:I[0]||(I[0]=te=>ne.value=!0),onShowStats:re},null,8,["overview","page-size","loading","current-filters","showing-stats"])):L("",!0)],2),a("div",sg,[a("aside",og,[be(pr,{overview:U(n),"page-size":U(l),loading:U(s),"current-filters":U(c),"showing-stats":ht.value,onSearch:ue,onNewJob:I[1]||(I[1]=te=>ne.value=!0),onShowStats:re},null,8,["overview","page-size","loading","current-filters","showing-stats"])]),a("main",rg,[a("div",ig,[a("button",{class:"btn btn-sm btn-outline-secondary",disabled:U(s),onClick:mt},[U(s)?(w(),C("span",ag)):(w(),C("span",cg,"↻")),Ge(" Refresh ("+j(ee.value)+"s) ",1)],8,lg)]),ht.value?(w(),C("div",ug,[I[24]||(I[24]=a("h4",{class:"mb-4"},"Agenda Status",-1)),be(Bp)])):(w(),C("div",fg,[a("div",dg,[I[25]||(I[25]=a("span",{class:"text-muted"},"Showing:",-1)),a("span",hg,j(U(c).name||"All Jobs"),1),U(c).state?(w(),C("span",{key:0,class:de(["filter-state-badge",`state-${U(c).state}`])},j(U(c).state),3)):L("",!0)]),be(Mu,{"current-filters":U(c),onSearch:Z},null,8,["current-filters"]),be(Kh,{jobs:U(t),"page-size":U(l),"page-number":U(i),"total-pages":U(r),loading:U(o),"filter-display":U(u),onShowJobDetail:Wn,onConfirmDelete:Nt,onConfirmRequeue:Co,onConfirmPause:_,onConfirmResume:M,onConfirmDeleteMulti:d,onConfirmRequeueMulti:h,onConfirmPauseMulti:S,onConfirmResumeMulti:T,onPageNext:U(b),onPagePrev:U(v)},null,8,["jobs","page-size","page-number","total-pages","loading","filter-display","onPageNext","onPagePrev"])]))])]),(w(),us(ri,{to:"body"},[Q.value&&X.value?(w(),C("div",{key:0,class:"modal-overlay",onClick:I[3]||(I[3]=Se(te=>Q.value=!1,["self"]))},[a("div",mg,[be(Pm,{job:X.value,onClose:I[2]||(I[2]=te=>Q.value=!1)},null,8,["job"])])])):L("",!0),ne.value?(w(),C("div",{key:1,class:"modal-overlay",onClick:I[5]||(I[5]=Se(te=>ne.value=!1,["self"]))},[a("div",pg,[be(Lm,{onClose:I[4]||(I[4]=te=>ne.value=!1),onCreate:$e})])])):L("",!0),F.value&&X.value?(w(),C("div",{key:2,class:"modal-overlay",onClick:I[7]||(I[7]=Se(te=>!K.value&&(F.value=!1),["self"]))},[a("div",gg,[be(_t,{title:"Delete Job",message:`Delete job '${X.value.job.name}'?`,details:[{label:"ID",value:X.value.job._id,type:"code"},{label:"Name",value:X.value.job.name},{label:"Data",value:Kt(X.value.job.data),type:"json"}],"confirm-text":"Delete","confirm-class":"btn-danger",loading:K.value,onConfirm:E,onCancel:I[6]||(I[6]=te=>F.value=!1)},null,8,["message","details","loading"])])])):L("",!0),le.value&&X.value?(w(),C("div",{key:3,class:"modal-overlay",onClick:I[9]||(I[9]=Se(te=>!K.value&&(le.value=!1),["self"]))},[a("div",bg,[be(_t,{title:"Requeue Job",message:`Requeue job '${X.value.job.name}'?`,details:[{label:"ID",value:X.value.job._id,type:"code"},{label:"Name",value:X.value.job.name},{label:"Data",value:Kt(X.value.job.data),type:"json"}],"confirm-text":"Requeue","confirm-class":"btn-primary",loading:K.value,onConfirm:A,onCancel:I[8]||(I[8]=te=>le.value=!1)},null,8,["message","details","loading"])])])):L("",!0),ve.value?(w(),C("div",{key:4,class:"modal-overlay",onClick:I[11]||(I[11]=Se(te=>!K.value&&(ve.value=!1),["self"]))},[a("div",vg,[be(_t,{title:"Delete Multiple Jobs",message:`Delete ${ye.value.length} selected jobs?`,"confirm-text":"Delete All","confirm-class":"btn-danger",loading:K.value,onConfirm:O,onCancel:I[10]||(I[10]=te=>ve.value=!1)},null,8,["message","loading"])])])):L("",!0),ce.value?(w(),C("div",{key:5,class:"modal-overlay",onClick:I[13]||(I[13]=Se(te=>!K.value&&(ce.value=!1),["self"]))},[a("div",yg,[be(_t,{title:"Requeue Multiple Jobs",message:`Requeue ${ye.value.length} selected jobs?`,"confirm-text":"Requeue All","confirm-class":"btn-primary",loading:K.value,onConfirm:D,onCancel:I[12]||(I[12]=te=>ce.value=!1)},null,8,["message","loading"])])])):L("",!0),_e.value&&X.value?(w(),C("div",{key:6,class:"modal-overlay",onClick:I[15]||(I[15]=Se(te=>!K.value&&(_e.value=!1),["self"]))},[a("div",_g,[be(_t,{title:"Pause Job",message:`Pause job '${X.value.job.name}'?`,details:[{label:"ID",value:X.value.job._id,type:"code"},{label:"Name",value:X.value.job.name},{label:"Data",value:Kt(X.value.job.data),type:"json"}],"confirm-text":"Pause","confirm-class":"btn-secondary",loading:K.value,onConfirm:q,onCancel:I[14]||(I[14]=te=>_e.value=!1)},null,8,["message","details","loading"])])])):L("",!0),Me.value&&X.value?(w(),C("div",{key:7,class:"modal-overlay",onClick:I[17]||(I[17]=Se(te=>!K.value&&(Me.value=!1),["self"]))},[a("div",wg,[be(_t,{title:"Resume Job",message:`Resume job '${X.value.job.name}'?`,details:[{label:"ID",value:X.value.job._id,type:"code"},{label:"Name",value:X.value.job.name},{label:"Data",value:Kt(X.value.job.data),type:"json"}],"confirm-text":"Resume","confirm-class":"btn-success",loading:K.value,onConfirm:N,onCancel:I[16]||(I[16]=te=>Me.value=!1)},null,8,["message","details","loading"])])])):L("",!0),oe.value?(w(),C("div",{key:8,class:"modal-overlay",onClick:I[19]||(I[19]=Se(te=>!K.value&&(oe.value=!1),["self"]))},[a("div",xg,[be(_t,{title:"Pause Multiple Jobs",message:`Pause ${ye.value.length} selected jobs?`,"confirm-text":"Pause All","confirm-class":"btn-secondary",loading:K.value,onConfirm:W,onCancel:I[18]||(I[18]=te=>oe.value=!1)},null,8,["message","loading"])])])):L("",!0),Ne.value?(w(),C("div",{key:9,class:"modal-overlay",onClick:I[21]||(I[21]=Se(te=>!K.value&&(Ne.value=!1),["self"]))},[a("div",Cg,[be(_t,{title:"Resume Multiple Jobs",message:`Resume ${ye.value.length} selected jobs?`,"confirm-text":"Resume All","confirm-class":"btn-success",loading:K.value,onConfirm:B,onCancel:I[20]||(I[20]=te=>Ne.value=!1)},null,8,["message","loading"])])])):L("",!0)])),be(lp)]))}}),$g=Sc(kg);$g.mount("#app");
package/public/index.html CHANGED
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Agendash</title>
7
- <script type="module" crossorigin src="./assets/index-Ct6Ovrls.js"></script>
8
- <link rel="stylesheet" crossorigin href="./assets/index-CIdOb8D1.css">
7
+ <script type="module" crossorigin src="./assets/index-CJumc868.js"></script>
8
+ <link rel="stylesheet" crossorigin href="./assets/index-BII8ez3v.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="app"></div>