$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.217.123
Web Server : Apache
System : Linux cpanel.krtk.mta.hu 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64
User : krtkhu ( 1061)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/assets/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/assets/admin/app.js
var Uk=Object.defineProperty;var Hc=Je=>{throw TypeError(Je)};var Hk=(Je,$e,rt)=>$e in Je?Uk(Je,$e,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Je[$e]=rt;var at=(Je,$e,rt)=>Hk(Je,typeof $e!="symbol"?$e+"":$e,rt),Wk=(Je,$e,rt)=>$e.has(Je)||Hc("Cannot "+rt);var Kn=(Je,$e,rt)=>(Wk(Je,$e,"read from private field"),rt?rt.call(Je):$e.get(Je)),Wc=(Je,$e,rt)=>$e.has(Je)?Hc("Cannot add the same private member more than once"):$e instanceof WeakSet?$e.add(Je):$e.set(Je,rt);(function(){"use strict";/**
* @vue/shared v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Je(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const $e={},rt=[],Is=()=>{},Ji=()=>!1,Gn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cr=e=>e.startsWith("onUpdate:"),Pt=Object.assign,Qi=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Kc=Object.prototype.hasOwnProperty,je=(e,t)=>Kc.call(e,t),Ae=Array.isArray,Ks=e=>bn(e)==="[object Map]",ea=e=>bn(e)==="[object Set]",ta=e=>bn(e)==="[object Date]",Fe=e=>typeof e=="function",Ze=e=>typeof e=="string",Ot=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",sa=e=>(He(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),na=Object.prototype.toString,bn=e=>na.call(e),Gc=e=>bn(e).slice(8,-1),oa=e=>bn(e)==="[object Object]",Yn=e=>Ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_n=Je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xn=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Yc=/-\w/g,mt=Xn(e=>e.replace(Yc,t=>t.slice(1).toUpperCase())),Xc=/\B([A-Z])/g,es=Xn(e=>e.replace(Xc,"-$1").toLowerCase()),Zn=Xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Jn=Xn(e=>e?`on${Zn(e)}`:""),bt=(e,t)=>!Object.is(e,t),Qn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ra=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},dr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ia;const eo=()=>ia||(ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mt(e){if(Ae(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],o=Ze(n)?ed(n):Mt(n);if(o)for(const r in o)t[r]=o[r]}return t}else if(Ze(e)||He(e))return e}const Zc=/;(?![^(]*\))/g,Jc=/:([^]+)/,Qc=/\/\*[^]*?\*\//g;function ed(e){const t={};return e.replace(Qc,"").split(Zc).forEach(s=>{if(s){const n=s.split(Jc);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){let t="";if(Ze(e))t=e;else if(Ae(e))for(let s=0;s<e.length;s++){const n=_e(e[s]);n&&(t+=n+" ")}else if(He(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function st(e){if(!e)return null;let{class:t,style:s}=e;return t&&!Ze(t)&&(e.class=_e(t)),s&&(e.style=Mt(s)),e}const td=Je("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function aa(e){return!!e||e===""}function sd(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=fr(e[n],t[n]);return s}function fr(e,t){if(e===t)return!0;let s=ta(e),n=ta(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ot(e),n=Ot(t),s||n)return e===t;if(s=Ae(e),n=Ae(t),s||n)return s&&n?sd(e,t):!1;if(s=He(e),n=He(t),s||n){if(!s||!n)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const a in e){const l=e.hasOwnProperty(a),u=t.hasOwnProperty(a);if(l&&!u||!l&&u||!fr(e[a],t[a]))return!1}}return String(e)===String(t)}const la=e=>!!(e&&e.__v_isRef===!0),S=e=>Ze(e)?e:e==null?"":Ae(e)||He(e)&&(e.toString===na||!Fe(e.toString))?la(e)?S(e.value):JSON.stringify(e,ua,2):String(e),ua=(e,t)=>la(t)?ua(e,t.value):Ks(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,o],r)=>(s[pr(n,r)+" =>"]=o,s),{})}:ea(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>pr(s))}:Ot(t)?pr(t):He(t)&&!Ae(t)&&!oa(t)?String(t):t,pr=(e,t="")=>{var s;return Ot(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
* @vue/reactivity v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ct;class ca{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ct,!t&&ct&&(this.index=(ct.scopes||(ct.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=ct;try{return ct=this,t()}finally{ct=s}}}on(){++this._on===1&&(this.prevScope=ct,ct=this)}off(){this._on>0&&--this._on===0&&(ct=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function to(e){return new ca(e)}function so(){return ct}function hr(e,t=!1){ct&&ct.cleanups.push(e)}let We;const mr=new WeakSet;class da{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,ct&&ct.active&&ct.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,mr.has(this)&&(mr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||pa(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ya(this),ha(this);const t=We,s=It;We=this,It=!0;try{return this.fn()}finally{ma(this),We=t,It=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)br(t);this.deps=this.depsTail=void 0,ya(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?mr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){yr(this)&&this.run()}get dirty(){return yr(this)}}let fa=0,wn,xn;function pa(e,t=!1){if(e.flags|=8,t){e.next=xn,xn=e;return}e.next=wn,wn=e}function gr(){fa++}function vr(){if(--fa>0)return;if(xn){let t=xn;for(xn=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;wn;){let t=wn;for(wn=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function ha(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ma(e){let t,s=e.depsTail,n=s;for(;n;){const o=n.prevDep;n.version===-1?(n===s&&(s=o),br(n),nd(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=t,e.depsTail=s}function yr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ga(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ga(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===kn)||(e.globalVersion=kn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!yr(e))))return;e.flags|=2;const t=e.dep,s=We,n=It;We=e,It=!0;try{ha(e);const o=e.fn(e._value);(t.version===0||bt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{We=s,It=n,ma(e),e.flags&=-3}}function br(e,t=!1){const{dep:s,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)br(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function nd(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let It=!0;const va=[];function ts(){va.push(It),It=!1}function ss(){const e=va.pop();It=e===void 0?!0:e}function ya(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=We;We=void 0;try{t()}finally{We=s}}}let kn=0;class od{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class no{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(!We||!It||We===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==We)s=this.activeLink=new od(We,this),We.deps?(s.prevDep=We.depsTail,We.depsTail.nextDep=s,We.depsTail=s):We.deps=We.depsTail=s,ba(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=We.depsTail,s.nextDep=void 0,We.depsTail.nextDep=s,We.depsTail=s,We.deps===s&&(We.deps=n)}return s}trigger(t){this.version++,kn++,this.notify(t)}notify(t){gr();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{vr()}}}function ba(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)ba(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const oo=new WeakMap,Ds=Symbol(""),_r=Symbol(""),Cn=Symbol("");function dt(e,t,s){if(It&&We){let n=oo.get(e);n||oo.set(e,n=new Map);let o=n.get(s);o||(n.set(s,o=new no),o.map=n,o.key=s),o.track()}}function ns(e,t,s,n,o,r){const a=oo.get(e);if(!a){kn++;return}const l=u=>{u&&u.trigger()};if(gr(),t==="clear")a.forEach(l);else{const u=Ae(e),c=u&&Yn(s);if(u&&s==="length"){const d=Number(n);a.forEach((f,h)=>{(h==="length"||h===Cn||!Ot(h)&&h>=d)&&l(f)})}else switch((s!==void 0||a.has(void 0))&&l(a.get(s)),c&&l(a.get(Cn)),t){case"add":u?c&&l(a.get("length")):(l(a.get(Ds)),Ks(e)&&l(a.get(_r)));break;case"delete":u||(l(a.get(Ds)),Ks(e)&&l(a.get(_r)));break;case"set":Ks(e)&&l(a.get(Ds));break}}vr()}function rd(e,t){const s=oo.get(e);return s&&s.get(t)}function Gs(e){const t=Be(e);return t===e?t:(dt(t,"iterate",Cn),kt(e)?t:t.map(Dt))}function ro(e){return dt(e=Be(e),"iterate",Cn),e}function _s(e,t){return rs(e)?Xs(Lt(e)?Dt(t):t):Dt(t)}const id={__proto__:null,[Symbol.iterator](){return wr(this,Symbol.iterator,e=>_s(this,e))},concat(...e){return Gs(this).concat(...e.map(t=>Ae(t)?Gs(t):t))},entries(){return wr(this,"entries",e=>(e[1]=_s(this,e[1]),e))},every(e,t){return os(this,"every",e,t,void 0,arguments)},filter(e,t){return os(this,"filter",e,t,s=>s.map(n=>_s(this,n)),arguments)},find(e,t){return os(this,"find",e,t,s=>_s(this,s),arguments)},findIndex(e,t){return os(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return os(this,"findLast",e,t,s=>_s(this,s),arguments)},findLastIndex(e,t){return os(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return os(this,"forEach",e,t,void 0,arguments)},includes(...e){return xr(this,"includes",e)},indexOf(...e){return xr(this,"indexOf",e)},join(e){return Gs(this).join(e)},lastIndexOf(...e){return xr(this,"lastIndexOf",e)},map(e,t){return os(this,"map",e,t,void 0,arguments)},pop(){return Sn(this,"pop")},push(...e){return Sn(this,"push",e)},reduce(e,...t){return _a(this,"reduce",e,t)},reduceRight(e,...t){return _a(this,"reduceRight",e,t)},shift(){return Sn(this,"shift")},some(e,t){return os(this,"some",e,t,void 0,arguments)},splice(...e){return Sn(this,"splice",e)},toReversed(){return Gs(this).toReversed()},toSorted(e){return Gs(this).toSorted(e)},toSpliced(...e){return Gs(this).toSpliced(...e)},unshift(...e){return Sn(this,"unshift",e)},values(){return wr(this,"values",e=>_s(this,e))}};function wr(e,t,s){const n=ro(e),o=n[t]();return n!==e&&!kt(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=s(r.value)),r}),o}const ad=Array.prototype;function os(e,t,s,n,o,r){const a=ro(e),l=a!==e&&!kt(e),u=a[t];if(u!==ad[t]){const f=u.apply(e,r);return l?Dt(f):f}let c=s;a!==e&&(l?c=function(f,h){return s.call(this,_s(e,f),h,e)}:s.length>2&&(c=function(f,h){return s.call(this,f,h,e)}));const d=u.call(a,c,n);return l&&o?o(d):d}function _a(e,t,s,n){const o=ro(e);let r=s;return o!==e&&(kt(e)?s.length>3&&(r=function(a,l,u){return s.call(this,a,l,u,e)}):r=function(a,l,u){return s.call(this,a,_s(e,l),u,e)}),o[t](r,...n)}function xr(e,t,s){const n=Be(e);dt(n,"iterate",Cn);const o=n[t](...s);return(o===-1||o===!1)&&fo(s[0])?(s[0]=Be(s[0]),n[t](...s)):o}function Sn(e,t,s=[]){ts(),gr();const n=Be(e)[t].apply(e,s);return vr(),ss(),n}const ld=Je("__proto__,__v_isRef,__isVue"),wa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ot));function ud(e){Ot(e)||(e=String(e));const t=Be(this);return dt(t,"has",e),t.hasOwnProperty(e)}class xa{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(o?r?Pa:Aa:r?$a:Sa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=Ae(t);if(!o){let u;if(a&&(u=id[s]))return u;if(s==="hasOwnProperty")return ud}const l=Reflect.get(t,s,ze(t)?t:n);if((Ot(s)?wa.has(s):ld(s))||(o||dt(t,"get",s),r))return l;if(ze(l)){const u=a&&Yn(s)?l:l.value;return o&&He(u)?uo(u):u}return He(l)?o?uo(l):Bs(l):l}}class ka extends xa{constructor(t=!1){super(!1,t)}set(t,s,n,o){let r=t[s];const a=Ae(t)&&Yn(s);if(!this._isShallow){const c=rs(r);if(!kt(n)&&!rs(n)&&(r=Be(r),n=Be(n)),!a&&ze(r)&&!ze(n))return c||(r.value=n),!0}const l=a?Number(s)<t.length:je(t,s),u=Reflect.set(t,s,n,ze(t)?t:o);return t===Be(o)&&(l?bt(n,r)&&ns(t,"set",s,n):ns(t,"add",s,n)),u}deleteProperty(t,s){const n=je(t,s);t[s];const o=Reflect.deleteProperty(t,s);return o&&n&&ns(t,"delete",s,void 0),o}has(t,s){const n=Reflect.has(t,s);return(!Ot(s)||!wa.has(s))&&dt(t,"has",s),n}ownKeys(t){return dt(t,"iterate",Ae(t)?"length":Ds),Reflect.ownKeys(t)}}class Ca extends xa{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const cd=new ka,dd=new Ca,fd=new ka(!0),pd=new Ca(!0),kr=e=>e,io=e=>Reflect.getPrototypeOf(e);function hd(e,t,s){return function(...n){const o=this.__v_raw,r=Be(o),a=Ks(r),l=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,c=o[e](...n),d=s?kr:t?Xs:Dt;return!t&&dt(r,"iterate",u?_r:Ds),Pt(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}}})}}function ao(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function md(e,t){const s={get(o){const r=this.__v_raw,a=Be(r),l=Be(o);e||(bt(o,l)&&dt(a,"get",o),dt(a,"get",l));const{has:u}=io(a),c=t?kr:e?Xs:Dt;if(u.call(a,o))return c(r.get(o));if(u.call(a,l))return c(r.get(l));r!==a&&r.get(o)},get size(){const o=this.__v_raw;return!e&&dt(Be(o),"iterate",Ds),o.size},has(o){const r=this.__v_raw,a=Be(r),l=Be(o);return e||(bt(o,l)&&dt(a,"has",o),dt(a,"has",l)),o===l?r.has(o):r.has(o)||r.has(l)},forEach(o,r){const a=this,l=a.__v_raw,u=Be(l),c=t?kr:e?Xs:Dt;return!e&&dt(u,"iterate",Ds),l.forEach((d,f)=>o.call(r,c(d),c(f),a))}};return Pt(s,e?{add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear")}:{add(o){!t&&!kt(o)&&!rs(o)&&(o=Be(o));const r=Be(this);return io(r).has.call(r,o)||(r.add(o),ns(r,"add",o,o)),this},set(o,r){!t&&!kt(r)&&!rs(r)&&(r=Be(r));const a=Be(this),{has:l,get:u}=io(a);let c=l.call(a,o);c||(o=Be(o),c=l.call(a,o));const d=u.call(a,o);return a.set(o,r),c?bt(r,d)&&ns(a,"set",o,r):ns(a,"add",o,r),this},delete(o){const r=Be(this),{has:a,get:l}=io(r);let u=a.call(r,o);u||(o=Be(o),u=a.call(r,o)),l&&l.call(r,o);const c=r.delete(o);return u&&ns(r,"delete",o,void 0),c},clear(){const o=Be(this),r=o.size!==0,a=o.clear();return r&&ns(o,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=hd(o,e,t)}),s}function lo(e,t){const s=md(e,t);return(n,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(je(s,o)&&o in n?s:n,o,r)}const gd={get:lo(!1,!1)},vd={get:lo(!1,!0)},yd={get:lo(!0,!1)},bd={get:lo(!0,!0)},Sa=new WeakMap,$a=new WeakMap,Aa=new WeakMap,Pa=new WeakMap;function _d(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wd(e){return e.__v_skip||!Object.isExtensible(e)?0:_d(Gc(e))}function Bs(e){return rs(e)?e:co(e,!1,cd,gd,Sa)}function xd(e){return co(e,!1,fd,vd,$a)}function uo(e){return co(e,!0,dd,yd,Aa)}function Ys(e){return co(e,!0,pd,bd,Pa)}function co(e,t,s,n,o){if(!He(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=wd(e);if(r===0)return e;const a=o.get(e);if(a)return a;const l=new Proxy(e,r===2?n:s);return o.set(e,l),l}function Lt(e){return rs(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function rs(e){return!!(e&&e.__v_isReadonly)}function kt(e){return!!(e&&e.__v_isShallow)}function fo(e){return e?!!e.__v_raw:!1}function Be(e){const t=e&&e.__v_raw;return t?Be(t):e}function po(e){return!je(e,"__v_skip")&&Object.isExtensible(e)&&ra(e,"__v_skip",!0),e}const Dt=e=>He(e)?Bs(e):e,Xs=e=>He(e)?uo(e):e;function ze(e){return e?e.__v_isRef===!0:!1}function R(e){return Ta(e,!1)}function Cr(e){return Ta(e,!0)}function Ta(e,t){return ze(e)?e:new kd(e,t)}class kd{constructor(t,s){this.dep=new no,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Be(t),this._value=s?t:Dt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||kt(t)||rs(t);t=n?t:Be(t),bt(t,s)&&(this._rawValue=t,this._value=n?t:Dt(t),this.dep.trigger())}}function i(e){return ze(e)?e.value:e}function ft(e){return Fe(e)?e():i(e)}const Cd={get:(e,t,s)=>t==="__v_raw"?e:i(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const o=e[t];return ze(o)&&!ze(s)?(o.value=s,!0):Reflect.set(e,t,s,n)}};function Ea(e){return Lt(e)?e:new Proxy(e,Cd)}class Sd{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new no,{get:n,set:o}=t(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Oa(e){return new Sd(e)}function Nt(e){const t=Ae(e)?new Array(e.length):{};for(const s in e)t[s]=Ia(e,s);return t}class $d{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Be(t);let o=!0,r=t;if(!Ae(t)||!Yn(String(s)))do o=!fo(r)||kt(r);while(o&&(r=r.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=i(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ze(this._raw[this._key])){const s=this._object[this._key];if(ze(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return rd(this._raw,this._key)}}class Ad{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ma(e,t,s){return ze(e)?e:Fe(e)?new Ad(e):He(e)&&arguments.length>1?Ia(e,t,s):R(e)}function Ia(e,t,s){return new $d(e,t,s)}class Pd{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new no(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=kn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&We!==this)return pa(this,!0),!0}get value(){const t=this.dep.track();return ga(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Td(e,t,s=!1){let n,o;return Fe(e)?n=e:(n=e.get,o=e.set),new Pd(n,o,s)}const ho={},mo=new WeakMap;let Rs;function Ed(e,t=!1,s=Rs){if(s){let n=mo.get(s);n||mo.set(s,n=[]),n.push(e)}}function Od(e,t,s=$e){const{immediate:n,deep:o,once:r,scheduler:a,augmentJob:l,call:u}=s,c=A=>o?A:kt(A)||o===!1||o===0?is(A,1):is(A);let d,f,h,p,g=!1,v=!1;if(ze(e)?(f=()=>e.value,g=kt(e)):Lt(e)?(f=()=>c(e),g=!0):Ae(e)?(v=!0,g=e.some(A=>Lt(A)||kt(A)),f=()=>e.map(A=>{if(ze(A))return A.value;if(Lt(A))return c(A);if(Fe(A))return u?u(A,2):A()})):Fe(e)?t?f=u?()=>u(e,2):e:f=()=>{if(h){ts();try{h()}finally{ss()}}const A=Rs;Rs=d;try{return u?u(e,3,[p]):e(p)}finally{Rs=A}}:f=Is,t&&o){const A=f,q=o===!0?1/0:o;f=()=>is(A(),q)}const k=so(),O=()=>{d.stop(),k&&k.active&&Qi(k.effects,d)};if(r&&t){const A=t;t=(...q)=>{A(...q),O()}}let b=v?new Array(e.length).fill(ho):ho;const P=A=>{if(!(!(d.flags&1)||!d.dirty&&!A))if(t){const q=d.run();if(o||g||(v?q.some((z,H)=>bt(z,b[H])):bt(q,b))){h&&h();const z=Rs;Rs=d;try{const H=[q,b===ho?void 0:v&&b[0]===ho?[]:b,p];b=q,u?u(t,3,H):t(...H)}finally{Rs=z}}}else d.run()};return l&&l(P),d=new da(f),d.scheduler=a?()=>a(P,!1):P,p=A=>Ed(A,!1,d),h=d.onStop=()=>{const A=mo.get(d);if(A){if(u)u(A,4);else for(const q of A)q();mo.delete(d)}},t?n?P(!0):b=d.run():a?a(P.bind(null,!0),!0):d.run(),O.pause=d.pause.bind(d),O.resume=d.resume.bind(d),O.stop=O,O}function is(e,t=1/0,s){if(t<=0||!He(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ze(e))is(e.value,t,s);else if(Ae(e))for(let n=0;n<e.length;n++)is(e[n],t,s);else if(ea(e)||Ks(e))e.forEach(n=>{is(n,t,s)});else if(oa(e)){for(const n in e)is(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&is(e[n],t,s)}return e}/**
* @vue/runtime-core v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const $n=[];let Sr=!1;function Gk(e,...t){if(Sr)return;Sr=!0,ts();const s=$n.length?$n[$n.length-1].component:null,n=s&&s.appContext.config.warnHandler,o=Md();if(n)Zs(n,s,11,[e+t.map(r=>{var a,l;return(l=(a=r.toString)==null?void 0:a.call(r))!=null?l:JSON.stringify(r)}).join(""),s&&s.proxy,o.map(({vnode:r})=>`at <${$l(s,r.type)}>`).join(`
`),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push(`
`,...Id(o)),console.warn(...r)}ss(),Sr=!1}function Md(){let e=$n[$n.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function Id(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
`],...Dd(s))}),t}function Dd({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,o=` at <${$l(e.component,e.type,n)}`,r=">"+s;return e.props?[o,...Bd(e.props),r]:[o+r]}function Bd(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...Da(n,e[n]))}),s.length>3&&t.push(" ..."),t}function Da(e,t,s){return Ze(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ze(t)?(t=Da(e,Be(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):Fe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Be(t),s?t:[`${e}=`,t])}function Zs(e,t,s,n){try{return n?e(...n):e()}catch(o){go(o,t,s)}}function as(e,t,s,n){if(Fe(e)){const o=Zs(e,t,s,n);return o&&sa(o)&&o.catch(r=>{go(r,t,s)}),o}if(Ae(e)){const o=[];for(let r=0;r<e.length;r++)o.push(as(e[r],t,s,n));return o}}function go(e,t,s,n=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||$e;if(t){let l=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const d=l.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}l=l.parent}if(r){ts(),Zs(r,null,10,[e,u,c]),ss();return}}Rd(e,s,o,n,a)}function Rd(e,t,s,n=!0,o=!1){if(o)throw e;console.error(e)}const gt=[];let zt=-1;const Js=[];let ws=null,Qs=0;const Ba=Promise.resolve();let vo=null;function nt(e){const t=vo||Ba;return e?t.then(this?e.bind(this):e):t}function Fd(e){let t=zt+1,s=gt.length;for(;t<s;){const n=t+s>>>1,o=gt[n],r=An(o);r<e||r===e&&o.flags&2?t=n+1:s=n}return t}function $r(e){if(!(e.flags&1)){const t=An(e),s=gt[gt.length-1];!s||!(e.flags&2)&&t>=An(s)?gt.push(e):gt.splice(Fd(t),0,e),e.flags|=1,Ra()}}function Ra(){vo||(vo=Ba.then(La))}function qd(e){Ae(e)?Js.push(...e):ws&&e.id===-1?ws.splice(Qs+1,0,e):e.flags&1||(Js.push(e),e.flags|=1),Ra()}function Fa(e,t,s=zt+1){for(;s<gt.length;s++){const n=gt[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;gt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function qa(e){if(Js.length){const t=[...new Set(Js)].sort((s,n)=>An(s)-An(n));if(Js.length=0,ws){ws.push(...t);return}for(ws=t,Qs=0;Qs<ws.length;Qs++){const s=ws[Qs];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ws=null,Qs=0}}const An=e=>e.id==null?e.flags&2?-1:1/0:e.id;function La(e){try{for(zt=0;zt<gt.length;zt++){const t=gt[zt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Zs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;zt<gt.length;zt++){const t=gt[zt];t&&(t.flags&=-2)}zt=-1,gt.length=0,qa(),vo=null,(gt.length||Js.length)&&La()}}let lt=null,Na=null;function yo(e){const t=lt;return lt=e,Na=e&&e.type.__scopeId||null,t}function x(e,t=lt,s){if(!t||e._n)return e;const n=(...o)=>{n._d&&So(-1);const r=yo(t);let a;try{a=e(...o)}finally{yo(r),n._d&&So(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function za(e,t){if(lt===null)return e;const s=Po(lt),n=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,a,l,u=$e]=t[o];r&&(Fe(r)&&(r={mounted:r,updated:r}),r.deep&&is(a),n.push({dir:r,instance:s,value:a,oldValue:void 0,arg:l,modifiers:u}))}return e}function Fs(e,t,s,n){const o=e.dirs,r=t&&t.dirs;for(let a=0;a<o.length;a++){const l=o[a];r&&(l.oldValue=r[a].value);let u=l.dir[n];u&&(ts(),as(u,s,8,[e.el,l,e,t]),ss())}}function Ar(e,t){if(_t){let s=_t.provides;const n=_t.parent&&_t.parent.provides;n===s&&(s=_t.provides=Object.create(n)),s[e]=t}}function Pn(e,t,s=!1){const n=Tt();if(n||Ls){let o=Ls?Ls._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return s&&Fe(t)?t.call(n&&n.proxy):t}}function Ld(){return!!(Tt()||Ls)}const Nd=Symbol.for("v-scx"),zd=()=>Pn(Nd);function Ye(e,t){return bo(e,null,t)}function Va(e,t){return bo(e,null,{flush:"post"})}function Vd(e,t){return bo(e,null,{flush:"sync"})}function Ke(e,t,s){return bo(e,t,s)}function bo(e,t,s=$e){const{immediate:n,deep:o,flush:r,once:a}=s,l=Pt({},s),u=t&&n||!t&&r!=="post";let c;if(Bn){if(r==="sync"){const p=zd();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!u){const p=()=>{};return p.stop=Is,p.resume=Is,p.pause=Is,p}}const d=_t;l.call=(p,g,v)=>as(p,d,g,v);let f=!1;r==="post"?l.scheduler=p=>{pt(p,d&&d.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(p,g)=>{g?p():$r(p)}),l.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const h=Od(e,t,l);return Bn&&(c?c.push(h):u&&h()),h}const ja=Symbol("_vte"),jd=e=>e.__isTeleport,Tn=e=>e&&(e.disabled||e.disabled===""),Ua=e=>e&&(e.defer||e.defer===""),Ha=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wa=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Pr=(e,t)=>{const s=e&&e.to;return Ze(s)?t?t(s):null:s},Ka={name:"Teleport",__isTeleport:!0,process(e,t,s,n,o,r,a,l,u,c){const{mc:d,pc:f,pbc:h,o:{insert:p,querySelector:g,createText:v,createComment:k}}=c,O=Tn(t.props);let{shapeFlag:b,children:P,dynamicChildren:A}=t;if(e==null){const q=t.el=v(""),z=t.anchor=v("");p(q,s,n),p(z,s,n);const H=(K,B)=>{b&16&&d(P,K,B,o,r,a,l,u)},L=()=>{const K=t.target=Pr(t.props,g),B=Tr(K,t,v,p);K&&(a!=="svg"&&Ha(K)?a="svg":a!=="mathml"&&Wa(K)&&(a="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(K),O||(H(K,B),wo(t,!1)))};O&&(H(s,z),wo(t,!0)),Ua(t.props)?(t.el.__isMounted=!1,pt(()=>{L(),delete t.el.__isMounted},r)):L()}else{if(Ua(t.props)&&e.el.__isMounted===!1){pt(()=>{Ka.process(e,t,s,n,o,r,a,l,u,c)},r);return}t.el=e.el,t.targetStart=e.targetStart;const q=t.anchor=e.anchor,z=t.target=e.target,H=t.targetAnchor=e.targetAnchor,L=Tn(e.props),K=L?s:z,B=L?q:H;if(a==="svg"||Ha(z)?a="svg":(a==="mathml"||Wa(z))&&(a="mathml"),A?(h(e.dynamicChildren,A,K,o,r,a,l),jr(e,t,!0)):u||f(e,t,K,B,o,r,a,l,!1),O)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):_o(t,s,q,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const te=t.target=Pr(t.props,g);te&&_o(t,te,null,c,0)}else L&&_o(t,z,H,c,1);wo(t,O)}},remove(e,t,s,{um:n,o:{remove:o}},r){const{shapeFlag:a,children:l,anchor:u,targetStart:c,targetAnchor:d,target:f,props:h}=e;if(f&&(o(c),o(d)),r&&o(u),a&16){const p=r||!Tn(h);for(let g=0;g<l.length;g++){const v=l[g];n(v,t,s,p,!!v.dynamicChildren)}}},move:_o,hydrate:Ud};function _o(e,t,s,{o:{insert:n},m:o},r=2){r===0&&n(e.targetAnchor,t,s);const{el:a,anchor:l,shapeFlag:u,children:c,props:d}=e,f=r===2;if(f&&n(a,t,s),(!f||Tn(d))&&u&16)for(let h=0;h<c.length;h++)o(c[h],t,s,2);f&&n(l,t,s)}function Ud(e,t,s,n,o,r,{o:{nextSibling:a,parentNode:l,querySelector:u,insert:c,createText:d}},f){function h(k,O){let b=O;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,k._lpa=t.targetAnchor&&a(t.targetAnchor);break}}b=a(b)}}function p(k,O){O.anchor=f(a(k),O,l(k),s,n,o,r)}const g=t.target=Pr(t.props,u),v=Tn(t.props);if(g){const k=g._lpa||g.firstChild;t.shapeFlag&16&&(v?(p(e,t),h(g,k),t.targetAnchor||Tr(g,t,d,c,l(e)===g?e:null)):(t.anchor=a(e),h(g,k),t.targetAnchor||Tr(g,t,d,c),f(k&&a(k),t,g,s,n,o,r))),wo(t,v)}else v&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const Ga=Ka;function wo(e,t){const s=e.ctx;if(s&&s.ut){let n,o;for(t?(n=e.el,o=e.anchor):(n=e.targetStart,o=e.targetAnchor);n&&n!==o;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function Tr(e,t,s,n,o=null){const r=t.targetStart=s(""),a=t.targetAnchor=s("");return r[ja]=a,e&&(n(r,e,o),n(a,e,o)),a}const Hd=Symbol("_leaveCb");function Er(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Er(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 N(e,t){return Fe(e)?Pt({name:e.name},t,{setup:e}):e}function Or(){const e=Tt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Wd(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ya(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const xo=new WeakMap;function En(e,t,s,n,o=!1){if(Ae(e)){e.forEach((v,k)=>En(v,t&&(Ae(t)?t[k]:t),s,n,o));return}if(en(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&En(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Po(n.component):n.el,a=o?null:r,{i:l,r:u}=e,c=t&&t.r,d=l.refs===$e?l.refs={}:l.refs,f=l.setupState,h=Be(f),p=f===$e?Ji:v=>Ya(d,v)?!1:je(h,v),g=(v,k)=>!(k&&Ya(d,k));if(c!=null&&c!==u){if(Xa(t),Ze(c))d[c]=null,p(c)&&(f[c]=null);else if(ze(c)){const v=t;g(c,v.k)&&(c.value=null),v.k&&(d[v.k]=null)}}if(Fe(u))Zs(u,l,12,[a,d]);else{const v=Ze(u),k=ze(u);if(v||k){const O=()=>{if(e.f){const b=v?p(u)?f[u]:d[u]:g()||!e.k?u.value:d[e.k];if(o)Ae(b)&&Qi(b,r);else if(Ae(b))b.includes(r)||b.push(r);else if(v)d[u]=[r],p(u)&&(f[u]=d[u]);else{const P=[r];g(u,e.k)&&(u.value=P),e.k&&(d[e.k]=P)}}else v?(d[u]=a,p(u)&&(f[u]=a)):k&&(g(u,e.k)&&(u.value=a),e.k&&(d[e.k]=a))};if(a){const b=()=>{O(),xo.delete(e)};b.id=-1,xo.set(e,b),pt(b,s)}else Xa(e),O()}}}function Xa(e){const t=xo.get(e);t&&(t.flags|=8,xo.delete(e))}eo().requestIdleCallback,eo().cancelIdleCallback;const en=e=>!!e.type.__asyncLoader,Kd=e=>e.type.__isKeepAlive;function Gd(e,t,s=_t,n=!1){if(s){const o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...a)=>{ts();const l=Kr(s),u=as(t,s,e,a);return l(),ss(),u});return n?o.unshift(r):o.push(r),r}}const Mr=e=>(t,s=_t)=>{(!Bn||e==="sp")&&Gd(e,(...n)=>t(...n),s)},Qe=Mr("m"),Ir=Mr("bum"),Dr=Mr("um"),Yd="components",Za=Symbol.for("v-ndc");function qs(e){return Ze(e)?Xd(Yd,e,!1)||e:e||Za}function Xd(e,t,s=!0,n=!1){const o=lt||_t;if(o){const r=o.type;{const l=Sl(r,!1);if(l&&(l===t||l===mt(t)||l===Zn(mt(t))))return r}const a=Ja(o[e]||r[e],t)||Ja(o.appContext[e],t);return!a&&n?r:a}}function Ja(e,t){return e&&(e[t]||e[mt(t)]||e[Zn(mt(t))])}function Ue(e,t,s,n){let o;const r=s,a=Ae(e);if(a||Ze(e)){const l=a&&Lt(e);let u=!1,c=!1;l&&(u=!kt(e),c=rs(e),e=ro(e)),o=new Array(e.length);for(let d=0,f=e.length;d<f;d++)o[d]=t(u?c?Xs(Dt(e[d])):Dt(e[d]):e[d],d,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(He(e))if(e[Symbol.iterator])o=Array.from(e,(l,u)=>t(l,u,void 0,r));else{const l=Object.keys(e);o=new Array(l.length);for(let u=0,c=l.length;u<c;u++){const d=l[u];o[u]=t(e[d],d,u,r)}}else o=[];return o}function W(e,t,s={},n,o){if(lt.ce||lt.parent&&en(lt.parent)&&lt.parent.ce){const c=Object.keys(s).length>0;return t!=="default"&&(s.name=t),m(),M(be,null,[C("slot",s,n&&n())],c?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),m();const a=r&&Qa(r(s)),l=s.key||a&&a.key,u=M(be,{key:(l&&!Ot(l)?l:`_${t}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),r&&r._c&&(r._d=!0),u}function Qa(e){return e.some(t=>jt(t)?!(t.type===Vt||t.type===be&&!Qa(t.children)):!0)?e:null}const Br=e=>e?wl(e)?Po(e):Br(e.parent):null,On=Pt(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=>Br(e.parent),$root:e=>Br(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{$r(e.update)}),$nextTick:e=>e.n||(e.n=nt.bind(e.proxy)),$watch:e=>Is}),Rr=(e,t)=>e!==$e&&!e.__isScriptSetup&&je(e,t),Zd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:o,props:r,accessCache:a,type:l,appContext:u}=e;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Rr(n,t))return a[t]=1,n[t];if(je(r,t))return a[t]=3,r[t];if(s!==$e&&je(s,t))return a[t]=4,s[t];a[t]=0}}const c=On[t];let d,f;if(c)return t==="$attrs"&&dt(e.attrs,"get",""),c(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(s!==$e&&je(s,t))return a[t]=4,s[t];if(f=u.config.globalProperties,je(f,t))return f[t]},set({_:e},t,s){const{data:n,setupState:o,ctx:r}=e;return Rr(o,t)?(o[t]=s,!0):je(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:o,props:r,type:a}},l){let u;return!!(s[l]||Rr(t,l)||je(r,l)||je(n,l)||je(On,l)||je(o.config.globalProperties,l)||(u=a.__cssModules)&&u[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:je(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Jd(){return Qd().attrs}function Qd(e){const t=Tt();return t.setupContext||(t.setupContext=Cl(t))}function Fr(e){return Ae(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function ef(e,t){const s=Fr(e);for(const n in t){if(n.startsWith("__skip"))continue;let o=s[n];o?Ae(o)||Fe(o)?o=s[n]={type:o,default:t[n]}:o.default=t[n]:o===null&&(o=s[n]={default:t[n]}),o&&t[`__skip_${n}`]&&(o.skipFactory=!0)}return s}function el(e,t){return!e||!t?e||t:Ae(e)&&Ae(t)?e.concat(t):Pt({},Fr(e),Fr(t))}function tl(){return{app:null,config:{isNativeTag:Ji,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 tf=0;function sf(e,t){return function(n,o=null){Fe(n)||(n=Pt({},n)),o!=null&&!He(o)&&(o=null);const r=tl(),a=new WeakSet,l=[];let u=!1;const c=r.app={_uid:tf++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:Mf,get config(){return r.config},set config(d){},use(d,...f){return a.has(d)||(d&&Fe(d.install)?(a.add(d),d.install(c,...f)):Fe(d)&&(a.add(d),d(c,...f))),c},mixin(d){return c},component(d,f){return f?(r.components[d]=f,c):r.components[d]},directive(d,f){return f?(r.directives[d]=f,c):r.directives[d]},mount(d,f,h){if(!u){const p=c._ceVNode||C(n,o);return p.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),e(p,d,h),u=!0,c._container=d,d.__vue_app__=c,Po(p.component)}},onUnmount(d){l.push(d)},unmount(){u&&(as(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(d,f){return r.provides[d]=f,c},runWithContext(d){const f=Ls;Ls=c;try{return d()}finally{Ls=f}}};return c}}let Ls=null;function qr(e,t,s=$e){const n=Tt(),o=mt(t),r=es(t),a=sl(e,o),l=Oa((u,c)=>{let d,f=$e,h;return Vd(()=>{const p=e[o];bt(d,p)&&(d=p,c())}),{get(){return u(),s.get?s.get(d):d},set(p){const g=s.set?s.set(p):p;if(!bt(g,d)&&!(f!==$e&&bt(p,f)))return;const v=n.vnode.props;v&&(t in v||o in v||r in v)&&(`onUpdate:${t}`in v||`onUpdate:${o}`in v||`onUpdate:${r}`in v)||(d=p,c()),n.emit(`update:${t}`,g),bt(p,g)&&bt(p,f)&&!bt(g,h)&&c(),f=p,h=g}}});return l[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?a||$e:l,done:!1}:{done:!0}}}},l}const sl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mt(t)}Modifiers`]||e[`${es(t)}Modifiers`];function nf(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||$e;let o=s;const r=t.startsWith("update:"),a=r&&sl(n,t.slice(7));a&&(a.trim&&(o=s.map(d=>Ze(d)?d.trim():d)),a.number&&(o=s.map(dr)));let l,u=n[l=Jn(t)]||n[l=Jn(mt(t))];!u&&r&&(u=n[l=Jn(es(t))]),u&&as(u,e,6,o);const c=n[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,as(c,e,6,o)}}function of(e,t,s=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const r=e.emits;let a={};return r?(Ae(r)?r.forEach(l=>a[l]=null):Pt(a,r),He(e)&&n.set(e,a),a):(He(e)&&n.set(e,null),null)}function ko(e,t){return!e||!Gn(t)?!1:(t=t.slice(2).replace(/Once$/,""),je(e,t[0].toLowerCase()+t.slice(1))||je(e,es(t))||je(e,t))}function Yk(){}function nl(e){const{type:t,vnode:s,proxy:n,withProxy:o,propsOptions:[r],slots:a,attrs:l,emit:u,render:c,renderCache:d,props:f,data:h,setupState:p,ctx:g,inheritAttrs:v}=e,k=yo(e);let O,b;try{if(s.shapeFlag&4){const A=o||n,q=A;O=Ut(c.call(q,A,d,f,p,h,g)),b=l}else{const A=t;O=Ut(A.length>1?A(f,{attrs:l,slots:a,emit:u}):A(f,null)),b=t.props?l:rf(l)}}catch(A){Mn.length=0,go(A,e,1),O=C(Vt)}let P=O;if(b&&v!==!1){const A=Object.keys(b),{shapeFlag:q}=P;A.length&&q&7&&(r&&A.some(cr)&&(b=af(b,r)),P=zs(P,b,!1,!0))}return s.dirs&&(P=zs(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&Er(P,s.transition),O=P,yo(k),O}const rf=e=>{let t;for(const s in e)(s==="class"||s==="style"||Gn(s))&&((t||(t={}))[s]=e[s]);return t},af=(e,t)=>{const s={};for(const n in e)(!cr(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function lf(e,t,s){const{props:n,children:o,component:r}=e,{props:a,children:l,patchFlag:u}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?ol(n,a,c):!!a;if(u&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const h=d[f];if(rl(a,n,h)&&!ko(c,h))return!0}}}else return(o||l)&&(!l||!l.$stable)?!0:n===a?!1:n?a?ol(n,a,c):!0:!!a;return!1}function ol(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const r=n[o];if(rl(t,e,r)&&!ko(s,r))return!0}return!1}function rl(e,t,s){const n=e[s],o=t[s];return s==="style"&&He(n)&&He(o)?!fr(n,o):n!==o}function uf({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const il={},al=()=>Object.create(il),ll=e=>Object.getPrototypeOf(e)===il;function cf(e,t,s,n=!1){const o={},r=al();e.propsDefaults=Object.create(null),ul(e,t,o,r);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);s?e.props=n?o:xd(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function df(e,t,s,n){const{props:o,attrs:r,vnode:{patchFlag:a}}=e,l=Be(o),[u]=e.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let h=d[f];if(ko(e.emitsOptions,h))continue;const p=t[h];if(u)if(je(r,h))p!==r[h]&&(r[h]=p,c=!0);else{const g=mt(h);o[g]=Lr(u,l,g,p,e,!1)}else p!==r[h]&&(r[h]=p,c=!0)}}}else{ul(e,t,o,r)&&(c=!0);let d;for(const f in l)(!t||!je(t,f)&&((d=es(f))===f||!je(t,d)))&&(u?s&&(s[f]!==void 0||s[d]!==void 0)&&(o[f]=Lr(u,l,f,void 0,e,!0)):delete o[f]);if(r!==l)for(const f in r)(!t||!je(t,f))&&(delete r[f],c=!0)}c&&ns(e.attrs,"set","")}function ul(e,t,s,n){const[o,r]=e.propsOptions;let a=!1,l;if(t)for(let u in t){if(_n(u))continue;const c=t[u];let d;o&&je(o,d=mt(u))?!r||!r.includes(d)?s[d]=c:(l||(l={}))[d]=c:ko(e.emitsOptions,u)||(!(u in n)||c!==n[u])&&(n[u]=c,a=!0)}if(r){const u=Be(s),c=l||$e;for(let d=0;d<r.length;d++){const f=r[d];s[f]=Lr(o,u,f,c[f],e,!je(c,f))}}return a}function Lr(e,t,s,n,o,r){const a=e[s];if(a!=null){const l=je(a,"default");if(l&&n===void 0){const u=a.default;if(a.type!==Function&&!a.skipFactory&&Fe(u)){const{propsDefaults:c}=o;if(s in c)n=c[s];else{const d=Kr(o);n=c[s]=u.call(null,t),d()}}else n=u;o.ce&&o.ce._setProp(s,n)}a[0]&&(r&&!l?n=!1:a[1]&&(n===""||n===es(s))&&(n=!0))}return n}function ff(e,t,s=!1){const n=t.propsCache,o=n.get(e);if(o)return o;const r=e.props,a={},l=[];if(!r)return He(e)&&n.set(e,rt),rt;if(Ae(r))for(let c=0;c<r.length;c++){const d=mt(r[c]);cl(d)&&(a[d]=$e)}else if(r)for(const c in r){const d=mt(c);if(cl(d)){const f=r[c],h=a[d]=Ae(f)||Fe(f)?{type:f}:Pt({},f),p=h.type;let g=!1,v=!0;if(Ae(p))for(let k=0;k<p.length;++k){const O=p[k],b=Fe(O)&&O.name;if(b==="Boolean"){g=!0;break}else b==="String"&&(v=!1)}else g=Fe(p)&&p.name==="Boolean";h[0]=g,h[1]=v,(g||je(h,"default"))&&l.push(d)}}const u=[a,l];return He(e)&&n.set(e,u),u}function cl(e){return e[0]!=="$"&&!_n(e)}const Nr=e=>e==="_"||e==="_ctx"||e==="$stable",zr=e=>Ae(e)?e.map(Ut):[Ut(e)],pf=(e,t,s)=>{if(t._n)return t;const n=x((...o)=>zr(t(...o)),s);return n._c=!1,n},dl=(e,t,s)=>{const n=e._ctx;for(const o in e){if(Nr(o))continue;const r=e[o];if(Fe(r))t[o]=pf(o,r,n);else if(r!=null){const a=zr(r);t[o]=()=>a}}},fl=(e,t)=>{const s=zr(t);e.slots.default=()=>s},pl=(e,t,s)=>{for(const n in t)(s||!Nr(n))&&(e[n]=t[n])},hf=(e,t,s)=>{const n=e.slots=al();if(e.vnode.shapeFlag&32){const o=t._;o?(pl(n,t,s),s&&ra(n,"_",o,!0)):dl(t,n)}else t&&fl(e,t)},mf=(e,t,s)=>{const{vnode:n,slots:o}=e;let r=!0,a=$e;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:pl(o,t,s):(r=!t.$stable,dl(t,o)),a=t}else t&&(fl(e,t),a={default:1});if(r)for(const l in o)!Nr(l)&&a[l]==null&&delete o[l]},pt=_f;function gf(e){return vf(e)}function vf(e,t){const s=eo();s.__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:a,createText:l,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:p=Is,insertStaticContent:g}=e,v=(_,$,D,j=null,V=null,U=null,J=void 0,ee=null,Q=!!$.dynamicChildren)=>{if(_===$)return;_&&!Dn(_,$)&&(j=E(_),re(_,V,U,!0),_=null),$.patchFlag===-2&&(Q=!1,$.dynamicChildren=null);const{type:X,ref:ye,shapeFlag:ie}=$;switch(X){case Co:k(_,$,D,j);break;case Vt:O(_,$,D,j);break;case Ur:_==null&&b($,D,j,J);break;case be:Z(_,$,D,j,V,U,J,ee,Q);break;default:ie&1?q(_,$,D,j,V,U,J,ee,Q):ie&6?he(_,$,D,j,V,U,J,ee,Q):(ie&64||ie&128)&&X.process(_,$,D,j,V,U,J,ee,Q,de)}ye!=null&&V?En(ye,_&&_.ref,U,$||_,!$):ye==null&&_&&_.ref!=null&&En(_.ref,null,U,_,!0)},k=(_,$,D,j)=>{if(_==null)n($.el=l($.children),D,j);else{const V=$.el=_.el;$.children!==_.children&&c(V,$.children)}},O=(_,$,D,j)=>{_==null?n($.el=u($.children||""),D,j):$.el=_.el},b=(_,$,D,j)=>{[_.el,_.anchor]=g(_.children,$,D,j,_.el,_.anchor)},P=({el:_,anchor:$},D,j)=>{let V;for(;_&&_!==$;)V=h(_),n(_,D,j),_=V;n($,D,j)},A=({el:_,anchor:$})=>{let D;for(;_&&_!==$;)D=h(_),o(_),_=D;o($)},q=(_,$,D,j,V,U,J,ee,Q)=>{if($.type==="svg"?J="svg":$.type==="math"&&(J="mathml"),_==null)z($,D,j,V,U,J,ee,Q);else{const X=_.el&&_.el._isVueCE?_.el:null;try{X&&X._beginPatch(),K(_,$,V,U,J,ee,Q)}finally{X&&X._endPatch()}}},z=(_,$,D,j,V,U,J,ee)=>{let Q,X;const{props:ye,shapeFlag:ie,transition:me,dirs:Se}=_;if(Q=_.el=a(_.type,U,ye&&ye.is,ye),ie&8?d(Q,_.children):ie&16&&L(_.children,Q,null,j,V,Vr(_,U),J,ee),Se&&Fs(_,null,j,"created"),H(Q,_,_.scopeId,J,j),ye){for(const Ne in ye)Ne!=="value"&&!_n(Ne)&&r(Q,Ne,null,ye[Ne],U,j);"value"in ye&&r(Q,"value",null,ye.value,U),(X=ye.onVnodeBeforeMount)&&Ht(X,j,_)}Se&&Fs(_,null,j,"beforeMount");const Te=yf(V,me);Te&&me.beforeEnter(Q),n(Q,$,D),((X=ye&&ye.onVnodeMounted)||Te||Se)&&pt(()=>{X&&Ht(X,j,_),Te&&me.enter(Q),Se&&Fs(_,null,j,"mounted")},V)},H=(_,$,D,j,V)=>{if(D&&p(_,D),j)for(let U=0;U<j.length;U++)p(_,j[U]);if(V){let U=V.subTree;if($===U||vl(U.type)&&(U.ssContent===$||U.ssFallback===$)){const J=V.vnode;H(_,J,J.scopeId,J.slotScopeIds,V.parent)}}},L=(_,$,D,j,V,U,J,ee,Q=0)=>{for(let X=Q;X<_.length;X++){const ye=_[X]=ee?ls(_[X]):Ut(_[X]);v(null,ye,$,D,j,V,U,J,ee)}},K=(_,$,D,j,V,U,J)=>{const ee=$.el=_.el;let{patchFlag:Q,dynamicChildren:X,dirs:ye}=$;Q|=_.patchFlag&16;const ie=_.props||$e,me=$.props||$e;let Se;if(D&&Ns(D,!1),(Se=me.onVnodeBeforeUpdate)&&Ht(Se,D,$,_),ye&&Fs($,_,D,"beforeUpdate"),D&&Ns(D,!0),(ie.innerHTML&&me.innerHTML==null||ie.textContent&&me.textContent==null)&&d(ee,""),X?B(_.dynamicChildren,X,ee,D,j,Vr($,V),U):J||se(_,$,ee,null,D,j,Vr($,V),U,!1),Q>0){if(Q&16)te(ee,ie,me,D,V);else if(Q&2&&ie.class!==me.class&&r(ee,"class",null,me.class,V),Q&4&&r(ee,"style",ie.style,me.style,V),Q&8){const Te=$.dynamicProps;for(let Ne=0;Ne<Te.length;Ne++){const Re=Te[Ne],et=ie[Re],tt=me[Re];(tt!==et||Re==="value")&&r(ee,Re,et,tt,V,D)}}Q&1&&_.children!==$.children&&d(ee,$.children)}else!J&&X==null&&te(ee,ie,me,D,V);((Se=me.onVnodeUpdated)||ye)&&pt(()=>{Se&&Ht(Se,D,$,_),ye&&Fs($,_,D,"updated")},j)},B=(_,$,D,j,V,U,J)=>{for(let ee=0;ee<$.length;ee++){const Q=_[ee],X=$[ee],ye=Q.el&&(Q.type===be||!Dn(Q,X)||Q.shapeFlag&198)?f(Q.el):D;v(Q,X,ye,null,j,V,U,J,!0)}},te=(_,$,D,j,V)=>{if($!==D){if($!==$e)for(const U in $)!_n(U)&&!(U in D)&&r(_,U,$[U],null,V,j);for(const U in D){if(_n(U))continue;const J=D[U],ee=$[U];J!==ee&&U!=="value"&&r(_,U,ee,J,V,j)}"value"in D&&r(_,"value",$.value,D.value,V)}},Z=(_,$,D,j,V,U,J,ee,Q)=>{const X=$.el=_?_.el:l(""),ye=$.anchor=_?_.anchor:l("");let{patchFlag:ie,dynamicChildren:me,slotScopeIds:Se}=$;Se&&(ee=ee?ee.concat(Se):Se),_==null?(n(X,D,j),n(ye,D,j),L($.children||[],D,ye,V,U,J,ee,Q)):ie>0&&ie&64&&me&&_.dynamicChildren&&_.dynamicChildren.length===me.length?(B(_.dynamicChildren,me,D,V,U,J,ee),($.key!=null||V&&$===V.subTree)&&jr(_,$,!0)):se(_,$,D,ye,V,U,J,ee,Q)},he=(_,$,D,j,V,U,J,ee,Q)=>{$.slotScopeIds=ee,_==null?$.shapeFlag&512?V.ctx.activate($,D,j,J,Q):ge($,D,j,V,U,J,Q):Pe(_,$,Q)},ge=(_,$,D,j,V,U,J)=>{const ee=_.component=Sf(_,j,V);if(Kd(_)&&(ee.ctx.renderer=de),$f(ee,!1,J),ee.asyncDep){if(V&&V.registerDep(ee,we,J),!_.el){const Q=ee.subTree=C(Vt);O(null,Q,$,D),_.placeholder=Q.el}}else we(ee,_,$,D,V,U,J)},Pe=(_,$,D)=>{const j=$.component=_.component;if(lf(_,$,D))if(j.asyncDep&&!j.asyncResolved){ke(j,$,D);return}else j.next=$,j.update();else $.el=_.el,j.vnode=$},we=(_,$,D,j,V,U,J)=>{const ee=()=>{if(_.isMounted){let{next:ie,bu:me,u:Se,parent:Te,vnode:Ne}=_;{const vt=hl(_);if(vt){ie&&(ie.el=Ne.el,ke(_,ie,J)),vt.asyncDep.then(()=>{pt(()=>{_.isUnmounted||X()},V)});return}}let Re=ie,et;Ns(_,!1),ie?(ie.el=Ne.el,ke(_,ie,J)):ie=Ne,me&&Qn(me),(et=ie.props&&ie.props.onVnodeBeforeUpdate)&&Ht(et,Te,ie,Ne),Ns(_,!0);const tt=nl(_),ut=_.subTree;_.subTree=tt,v(ut,tt,f(ut.el),E(ut),_,V,U),ie.el=tt.el,Re===null&&uf(_,tt.el),Se&&pt(Se,V),(et=ie.props&&ie.props.onVnodeUpdated)&&pt(()=>Ht(et,Te,ie,Ne),V)}else{let ie;const{el:me,props:Se}=$,{bm:Te,m:Ne,parent:Re,root:et,type:tt}=_,ut=en($);Ns(_,!1),Te&&Qn(Te),!ut&&(ie=Se&&Se.onVnodeBeforeMount)&&Ht(ie,Re,$),Ns(_,!0);{et.ce&&et.ce._hasShadowRoot()&&et.ce._injectChildStyle(tt);const vt=_.subTree=nl(_);v(null,vt,D,j,_,V,U),$.el=vt.el}if(Ne&&pt(Ne,V),!ut&&(ie=Se&&Se.onVnodeMounted)){const vt=$;pt(()=>Ht(ie,Re,vt),V)}($.shapeFlag&256||Re&&en(Re.vnode)&&Re.vnode.shapeFlag&256)&&_.a&&pt(_.a,V),_.isMounted=!0,$=D=j=null}};_.scope.on();const Q=_.effect=new da(ee);_.scope.off();const X=_.update=Q.run.bind(Q),ye=_.job=Q.runIfDirty.bind(Q);ye.i=_,ye.id=_.uid,Q.scheduler=()=>$r(ye),Ns(_,!0),X()},ke=(_,$,D)=>{$.component=_;const j=_.vnode.props;_.vnode=$,_.next=null,df(_,$.props,j,D),mf(_,$.children,D),ts(),Fa(_),ss()},se=(_,$,D,j,V,U,J,ee,Q=!1)=>{const X=_&&_.children,ye=_?_.shapeFlag:0,ie=$.children,{patchFlag:me,shapeFlag:Se}=$;if(me>0){if(me&128){I(X,ie,D,j,V,U,J,ee,Q);return}else if(me&256){Oe(X,ie,D,j,V,U,J,ee,Q);return}}Se&8?(ye&16&&Ce(X,V,U),ie!==X&&d(D,ie)):ye&16?Se&16?I(X,ie,D,j,V,U,J,ee,Q):Ce(X,V,U,!0):(ye&8&&d(D,""),Se&16&&L(ie,D,j,V,U,J,ee,Q))},Oe=(_,$,D,j,V,U,J,ee,Q)=>{_=_||rt,$=$||rt;const X=_.length,ye=$.length,ie=Math.min(X,ye);let me;for(me=0;me<ie;me++){const Se=$[me]=Q?ls($[me]):Ut($[me]);v(_[me],Se,D,null,V,U,J,ee,Q)}X>ye?Ce(_,V,U,!0,!1,ie):L($,D,j,V,U,J,ee,Q,ie)},I=(_,$,D,j,V,U,J,ee,Q)=>{let X=0;const ye=$.length;let ie=_.length-1,me=ye-1;for(;X<=ie&&X<=me;){const Se=_[X],Te=$[X]=Q?ls($[X]):Ut($[X]);if(Dn(Se,Te))v(Se,Te,D,null,V,U,J,ee,Q);else break;X++}for(;X<=ie&&X<=me;){const Se=_[ie],Te=$[me]=Q?ls($[me]):Ut($[me]);if(Dn(Se,Te))v(Se,Te,D,null,V,U,J,ee,Q);else break;ie--,me--}if(X>ie){if(X<=me){const Se=me+1,Te=Se<ye?$[Se].el:j;for(;X<=me;)v(null,$[X]=Q?ls($[X]):Ut($[X]),D,Te,V,U,J,ee,Q),X++}}else if(X>me)for(;X<=ie;)re(_[X],V,U,!0),X++;else{const Se=X,Te=X,Ne=new Map;for(X=Te;X<=me;X++){const ht=$[X]=Q?ls($[X]):Ut($[X]);ht.key!=null&&Ne.set(ht.key,X)}let Re,et=0;const tt=me-Te+1;let ut=!1,vt=0;const Qt=new Array(tt);for(X=0;X<tt;X++)Qt[X]=0;for(X=Se;X<=ie;X++){const ht=_[X];if(et>=tt){re(ht,V,U,!0);continue}let yt;if(ht.key!=null)yt=Ne.get(ht.key);else for(Re=Te;Re<=me;Re++)if(Qt[Re-Te]===0&&Dn(ht,$[Re])){yt=Re;break}yt===void 0?re(ht,V,U,!0):(Qt[yt-Te]=X+1,yt>=vt?vt=yt:ut=!0,v(ht,$[yt],D,null,V,U,J,ee,Q),et++)}const Wn=ut?bf(Qt):rt;for(Re=Wn.length-1,X=tt-1;X>=0;X--){const ht=Te+X,yt=$[ht],Os=$[ht+1],Ms=ht+1<ye?Os.el||gl(Os):j;Qt[X]===0?v(null,yt,D,Ms,V,U,J,ee,Q):ut&&(Re<0||X!==Wn[Re]?T(yt,D,Ms,2):Re--)}}},T=(_,$,D,j,V=null)=>{const{el:U,type:J,transition:ee,children:Q,shapeFlag:X}=_;if(X&6){T(_.component.subTree,$,D,j);return}if(X&128){_.suspense.move($,D,j);return}if(X&64){J.move(_,$,D,de);return}if(J===be){n(U,$,D);for(let ie=0;ie<Q.length;ie++)T(Q[ie],$,D,j);n(_.anchor,$,D);return}if(J===Ur){P(_,$,D);return}if(j!==2&&X&1&&ee)if(j===0)ee.beforeEnter(U),n(U,$,D),pt(()=>ee.enter(U),V);else{const{leave:ie,delayLeave:me,afterLeave:Se}=ee,Te=()=>{_.ctx.isUnmounted?o(U):n(U,$,D)},Ne=()=>{U._isLeaving&&U[Hd](!0),ie(U,()=>{Te(),Se&&Se()})};me?me(U,Te,Ne):Ne()}else n(U,$,D)},re=(_,$,D,j=!1,V=!1)=>{const{type:U,props:J,ref:ee,children:Q,dynamicChildren:X,shapeFlag:ye,patchFlag:ie,dirs:me,cacheIndex:Se}=_;if(ie===-2&&(V=!1),ee!=null&&(ts(),En(ee,null,D,_,!0),ss()),Se!=null&&($.renderCache[Se]=void 0),ye&256){$.ctx.deactivate(_);return}const Te=ye&1&&me,Ne=!en(_);let Re;if(Ne&&(Re=J&&J.onVnodeBeforeUnmount)&&Ht(Re,$,_),ye&6)xe(_.component,D,j);else{if(ye&128){_.suspense.unmount(D,j);return}Te&&Fs(_,null,$,"beforeUnmount"),ye&64?_.type.remove(_,$,D,de,j):X&&!X.hasOnce&&(U!==be||ie>0&&ie&64)?Ce(X,$,D,!1,!0):(U===be&&ie&384||!V&&ye&16)&&Ce(Q,$,D),j&&le(_)}(Ne&&(Re=J&&J.onVnodeUnmounted)||Te)&&pt(()=>{Re&&Ht(Re,$,_),Te&&Fs(_,null,$,"unmounted")},D)},le=_=>{const{type:$,el:D,anchor:j,transition:V}=_;if($===be){ce(D,j);return}if($===Ur){A(_);return}const U=()=>{o(D),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(_.shapeFlag&1&&V&&!V.persisted){const{leave:J,delayLeave:ee}=V,Q=()=>J(D,U);ee?ee(_.el,U,Q):Q()}else U()},ce=(_,$)=>{let D;for(;_!==$;)D=h(_),o(_),_=D;o($)},xe=(_,$,D)=>{const{bum:j,scope:V,job:U,subTree:J,um:ee,m:Q,a:X}=_;ml(Q),ml(X),j&&Qn(j),V.stop(),U&&(U.flags|=8,re(J,_,$,D)),ee&&pt(ee,$),pt(()=>{_.isUnmounted=!0},$)},Ce=(_,$,D,j=!1,V=!1,U=0)=>{for(let J=U;J<_.length;J++)re(_[J],$,D,j,V)},E=_=>{if(_.shapeFlag&6)return E(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const $=h(_.anchor||_.el),D=$&&$[ja];return D?h(D):$};let oe=!1;const ae=(_,$,D)=>{let j;_==null?$._vnode&&(re($._vnode,null,null,!0),j=$._vnode.component):v($._vnode||null,_,$,null,null,null,D),$._vnode=_,oe||(oe=!0,Fa(j),qa(),oe=!1)},de={p:v,um:re,m:T,r:le,mt:ge,mc:L,pc:se,pbc:B,n:E,o:e};return{render:ae,hydrate:void 0,createApp:sf(ae)}}function Vr({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Ns({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function yf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function jr(e,t,s=!1){const n=e.children,o=t.children;if(Ae(n)&&Ae(o))for(let r=0;r<n.length;r++){const a=n[r];let l=o[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=o[r]=ls(o[r]),l.el=a.el),!s&&l.patchFlag!==-2&&jr(a,l)),l.type===Co&&(l.patchFlag===-1&&(l=o[r]=ls(l)),l.el=a.el),l.type===Vt&&!l.el&&(l.el=a.el)}}function bf(e){const t=e.slice(),s=[0];let n,o,r,a,l;const u=e.length;for(n=0;n<u;n++){const c=e[n];if(c!==0){if(o=s[s.length-1],e[o]<c){t[n]=o,s.push(n);continue}for(r=0,a=s.length-1;r<a;)l=r+a>>1,e[s[l]]<c?r=l+1:a=l;c<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,a=s[r-1];r-- >0;)s[r]=a,a=t[a];return s}function hl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:hl(t)}function ml(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function gl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?gl(t.subTree):null}const vl=e=>e.__isSuspense;function _f(e,t){t&&t.pendingBranch?Ae(e)?t.effects.push(...e):t.effects.push(e):qd(e)}const be=Symbol.for("v-fgt"),Co=Symbol.for("v-txt"),Vt=Symbol.for("v-cmt"),Ur=Symbol.for("v-stc"),Mn=[];let Ct=null;function m(e=!1){Mn.push(Ct=e?null:[])}function wf(){Mn.pop(),Ct=Mn[Mn.length-1]||null}let In=1;function So(e,t=!1){In+=e,e<0&&Ct&&t&&(Ct.hasOnce=!0)}function yl(e){return e.dynamicChildren=In>0?Ct||rt:null,wf(),In>0&&Ct&&Ct.push(e),e}function F(e,t,s,n,o,r){return yl(y(e,t,s,n,o,r,!0))}function M(e,t,s,n,o){return yl(C(e,t,s,n,o,!0))}function jt(e){return e?e.__v_isVNode===!0:!1}function Dn(e,t){return e.type===t.type&&e.key===t.key}const bl=({key:e})=>e??null,$o=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ze(e)||ze(e)||Fe(e)?{i:lt,r:e,k:t,f:!!s}:e:null);function y(e,t=null,s=null,n=0,o=null,r=e===be?0:1,a=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bl(t),ref:t&&$o(t),scopeId:Na,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:lt};return l?(Hr(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=Ze(s)?8:16),In>0&&!a&&Ct&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Ct.push(u),u}const C=xf;function xf(e,t=null,s=null,n=0,o=null,r=!1){if((!e||e===Za)&&(e=Vt),jt(e)){const l=zs(e,t,!0);return s&&Hr(l,s),In>0&&!r&&Ct&&(l.shapeFlag&6?Ct[Ct.indexOf(e)]=l:Ct.push(l)),l.patchFlag=-2,l}if(Of(e)&&(e=e.__vccOpts),t){t=it(t);let{class:l,style:u}=t;l&&!Ze(l)&&(t.class=_e(l)),He(u)&&(fo(u)&&!Ae(u)&&(u=Pt({},u)),t.style=Mt(u))}const a=Ze(e)?1:vl(e)?128:jd(e)?64:He(e)?4:Fe(e)?2:0;return y(e,t,s,n,o,a,r,!0)}function it(e){return e?fo(e)||ll(e)?Pt({},e):e:null}function zs(e,t,s=!1,n=!1){const{props:o,ref:r,patchFlag:a,children:l,transition:u}=e,c=t?ue(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&bl(c),ref:t&&t.ref?s&&r?Ae(r)?r.concat($o(t)):[r,$o(t)]:$o(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!==be?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&zs(e.ssContent),ssFallback:e.ssFallback&&zs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&Er(d,u.clone(d)),d}function G(e=" ",t=0){return C(Co,null,e,t)}function ne(e="",t=!1){return t?(m(),M(Vt,null,e)):C(Vt,null,e)}function Ut(e){return e==null||typeof e=="boolean"?C(Vt):Ae(e)?C(be,null,e.slice()):jt(e)?ls(e):C(Co,null,String(e))}function ls(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zs(e)}function Hr(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Ae(t))s=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),Hr(e,o()),o._c&&(o._d=!0));return}else{s=32;const o=t._;!o&&!ll(t)?t._ctx=lt:o===3&&lt&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fe(t)?(t={default:t,_ctx:lt},s=32):(t=String(t),n&64?(s=16,t=[G(t)]):s=8);e.children=t,e.shapeFlag|=s}function ue(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=_e([t.class,n.class]));else if(o==="style")t.style=Mt([t.style,n.style]);else if(Gn(o)){const r=t[o],a=n[o];a&&r!==a&&!(Ae(r)&&r.includes(a))&&(t[o]=r?[].concat(r,a):a)}else o!==""&&(t[o]=n[o])}return t}function Ht(e,t,s,n=null){as(e,t,7,[s,n])}const kf=tl();let Cf=0;function Sf(e,t,s){const n=e.type,o=(t?t.appContext:e.appContext)||kf,r={uid:Cf++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ca(!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:ff(n,o),emitsOptions:of(n,o),emit:null,emitted:null,propsDefaults:$e,inheritAttrs:n.inheritAttrs,ctx:$e,data:$e,props:$e,attrs:$e,slots:$e,refs:$e,setupState:$e,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=nf.bind(null,r),e.ce&&e.ce(r),r}let _t=null;const Tt=()=>_t||lt;let Ao,Wr;{const e=eo(),t=(s,n)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(n),r=>{o.length>1?o.forEach(a=>a(r)):o[0](r)}};Ao=t("__VUE_INSTANCE_SETTERS__",s=>_t=s),Wr=t("__VUE_SSR_SETTERS__",s=>Bn=s)}const Kr=e=>{const t=_t;return Ao(e),e.scope.on(),()=>{e.scope.off(),Ao(t)}},_l=()=>{_t&&_t.scope.off(),Ao(null)};function wl(e){return e.vnode.shapeFlag&4}let Bn=!1;function $f(e,t=!1,s=!1){t&&Wr(t);const{props:n,children:o}=e.vnode,r=wl(e);cf(e,n,r,t),hf(e,o,s||t);const a=r?Af(e,t):void 0;return t&&Wr(!1),a}function Af(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Zd);const{setup:n}=s;if(n){ts();const o=e.setupContext=n.length>1?Cl(e):null,r=Kr(e),a=Zs(n,e,0,[e.props,o]),l=sa(a);if(ss(),r(),(l||e.sp)&&!en(e)&&Wd(e),l){if(a.then(_l,_l),t)return a.then(u=>{xl(e,u)}).catch(u=>{go(u,e,0)});e.asyncDep=a}else xl(e,a)}else kl(e)}function xl(e,t,s){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)&&(e.setupState=Ea(t)),kl(e)}function kl(e,t,s){const n=e.type;e.render||(e.render=n.render||Is)}const Pf={get(e,t){return dt(e,"get",""),e[t]}};function Cl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Pf),slots:e.slots,emit:e.emit,expose:t}}function Po(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ea(po(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in On)return On[s](e)},has(t,s){return s in t||s in On}})):e.proxy}const Tf=/(?:^|[-_])\w/g,Ef=e=>e.replace(Tf,t=>t.toUpperCase()).replace(/[-_]/g,"");function Sl(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function $l(e,t,s=!1){let n=Sl(t);if(!n&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(n=o[1])}if(!n&&e){const o=r=>{for(const a in r)if(r[a]===t)return a};n=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return n?Ef(n):s?"App":"Anonymous"}function Of(e){return Fe(e)&&"__vccOpts"in e}const Y=(e,t)=>Td(e,t,Bn);function us(e,t,s){try{So(-1);const n=arguments.length;return n===2?He(t)&&!Ae(t)?jt(t)?C(e,null,[t]):C(e,t):C(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&jt(s)&&(s=[s]),C(e,t,s))}finally{So(1)}}const Mf="3.5.28";/**
* @vue/runtime-dom v3.5.28
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Gr;const Al=typeof window<"u"&&window.trustedTypes;if(Al)try{Gr=Al.createPolicy("vue",{createHTML:e=>e})}catch{}const Pl=Gr?e=>Gr.createHTML(e):e=>e,If="http://www.w3.org/2000/svg",Df="http://www.w3.org/1998/Math/MathML",cs=typeof document<"u"?document:null,Tl=cs&&cs.createElement("template"),Bf={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const o=t==="svg"?cs.createElementNS(If,e):t==="mathml"?cs.createElementNS(Df,e):s?cs.createElement(e,{is:s}):cs.createElement(e);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>cs.createTextNode(e),createComment:e=>cs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,o,r){const a=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{Tl.innerHTML=Pl(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Tl.content;if(n==="svg"||n==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Rf=Symbol("_vtc");function Ff(e,t,s){const n=e[Rf];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const El=Symbol("_vod"),qf=Symbol("_vsh"),Lf=Symbol(""),Nf=/(?:^|;)\s*display\s*:/;function zf(e,t,s){const n=e.style,o=Ze(s);let r=!1;if(s&&!o){if(t)if(Ze(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();s[l]==null&&To(n,l,"")}else for(const a in t)s[a]==null&&To(n,a,"");for(const a in s)a==="display"&&(r=!0),To(n,a,s[a])}else if(o){if(t!==s){const a=n[Lf];a&&(s+=";"+a),n.cssText=s,r=Nf.test(s)}}else t&&e.removeAttribute("style");El in e&&(e[El]=r?n.display:"",e[qf]&&(n.display="none"))}const Ol=/\s*!important$/;function To(e,t,s){if(Ae(s))s.forEach(n=>To(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Vf(e,t);Ol.test(s)?e.setProperty(es(n),s.replace(Ol,""),"important"):e[n]=s}}const Ml=["Webkit","Moz","ms"],Yr={};function Vf(e,t){const s=Yr[t];if(s)return s;let n=mt(t);if(n!=="filter"&&n in e)return Yr[t]=n;n=Zn(n);for(let o=0;o<Ml.length;o++){const r=Ml[o]+n;if(r in e)return Yr[t]=r}return t}const Il="http://www.w3.org/1999/xlink";function Dl(e,t,s,n,o,r=td(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Il,t.slice(6,t.length)):e.setAttributeNS(Il,t,s):s==null||r&&!aa(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ot(s)?String(s):s)}function Bl(e,t,s,n,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Pl(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(l!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let a=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=aa(s):s==null&&l==="string"?(s="",a=!0):l==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(o||t)}function tn(e,t,s,n){e.addEventListener(t,s,n)}function jf(e,t,s,n){e.removeEventListener(t,s,n)}const Rl=Symbol("_vei");function Uf(e,t,s,n,o=null){const r=e[Rl]||(e[Rl]={}),a=r[t];if(n&&a)a.value=n;else{const[l,u]=Hf(t);if(n){const c=r[t]=Gf(n,o);tn(e,l,c,u)}else a&&(jf(e,l,a,u),r[t]=void 0)}}const Fl=/(?:Once|Passive|Capture)$/;function Hf(e){let t;if(Fl.test(e)){t={};let n;for(;n=e.match(Fl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):es(e.slice(2)),t]}let Xr=0;const Wf=Promise.resolve(),Kf=()=>Xr||(Wf.then(()=>Xr=0),Xr=Date.now());function Gf(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;as(Yf(n,s.value),t,5,[n])};return s.value=e,s.attached=Kf(),s}function Yf(e,t){if(Ae(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const ql=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xf=(e,t,s,n,o,r)=>{const a=o==="svg";t==="class"?Ff(e,n,a):t==="style"?zf(e,s,n):Gn(t)?cr(t)||Uf(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zf(e,t,n,a))?(Bl(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Dl(e,t,n,a,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ze(n))?Bl(e,mt(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Dl(e,t,n,a))};function Zf(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ql(t)&&Fe(s));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 ql(t)&&Ze(s)?!1:t in e}const Ll=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ae(t)?s=>Qn(t,s):t};function Jf(e){e.target.composing=!0}function Nl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Zr=Symbol("_assign");function zl(e,t,s){return t&&(e=e.trim()),s&&(e=dr(e)),e}const Vl={created(e,{modifiers:{lazy:t,trim:s,number:n}},o){e[Zr]=Ll(o);const r=n||o.props&&o.props.type==="number";tn(e,t?"change":"input",a=>{a.target.composing||e[Zr](zl(e.value,s,r))}),(s||r)&&tn(e,"change",()=>{e.value=zl(e.value,s,r)}),t||(tn(e,"compositionstart",Jf),tn(e,"compositionend",Nl),tn(e,"change",Nl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:o,number:r}},a){if(e[Zr]=Ll(a),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?dr(e.value):e.value,u=t??"";l!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||o&&e.value.trim()===u)||(e.value=u))}},Qf=["ctrl","shift","alt","meta"],ep={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)=>Qf.some(s=>e[`${s}Key`]&&!t.includes(s))},wt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((o,...r)=>{for(let a=0;a<t.length;a++){const l=ep[t[a]];if(l&&l(o,t))return}return e(o,...r)}))},tp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},sp=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(o=>{if(!("key"in o))return;const r=es(o.key);if(t.some(a=>a===r||tp[a]===r))return e(o)}))},np=Pt({patchProp:Xf},Bf);let jl;function op(){return jl||(jl=gf(np))}const rp=((...e)=>{const t=op().createApp(...e),{mount:s}=t;return t.mount=n=>{const o=ap(n);if(!o)return;const r=t._component;!Fe(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const a=s(o,!1,ip(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t});function ip(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ap(e){return Ze(e)?document.querySelector(e):e}/*!
 * pinia v2.3.1
 * (c) 2025 Eduardo San Martin Morote
 * @license MIT
 */let Ul;const Eo=e=>Ul=e,Hl=Symbol();function Jr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Rn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Rn||(Rn={}));function lp(){const e=to(!0),t=e.run(()=>R({}));let s=[],n=[];const o=po({install(r){Eo(o),o._a=r,r.provide(Hl,o),r.config.globalProperties.$pinia=o,n.forEach(a=>s.push(a)),n=[]},use(r){return this._a?s.push(r):n.push(r),this},_p:s,_a:null,_e:e,_s:new Map,state:t});return o}const Wl=()=>{};function Kl(e,t,s,n=Wl){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),n())};return!s&&so()&&hr(o),o}function sn(e,...t){e.slice().forEach(s=>{s(...t)})}const up=e=>e(),Gl=Symbol(),Qr=Symbol();function ei(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,n)=>e.set(n,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const n=t[s],o=e[s];Jr(o)&&Jr(n)&&e.hasOwnProperty(s)&&!ze(n)&&!Lt(n)?e[s]=ei(o,n):e[s]=n}return e}const cp=Symbol();function dp(e){return!Jr(e)||!e.hasOwnProperty(cp)}const{assign:xs}=Object;function fp(e){return!!(ze(e)&&e.effect)}function pp(e,t,s,n){const{state:o,actions:r,getters:a}=t,l=s.state.value[e];let u;function c(){l||(s.state.value[e]=o?o():{});const d=Nt(s.state.value[e]);return xs(d,r,Object.keys(a||{}).reduce((f,h)=>(f[h]=po(Y(()=>{Eo(s);const p=s._s.get(e);return a[h].call(p,p)})),f),{}))}return u=Yl(e,c,t,s,n,!0),u}function Yl(e,t,s={},n,o,r){let a;const l=xs({actions:{}},s),u={deep:!0};let c,d,f=[],h=[],p;const g=n.state.value[e];!r&&!g&&(n.state.value[e]={});let v;function k(L){let K;c=d=!1,typeof L=="function"?(L(n.state.value[e]),K={type:Rn.patchFunction,storeId:e,events:p}):(ei(n.state.value[e],L),K={type:Rn.patchObject,payload:L,storeId:e,events:p});const B=v=Symbol();nt().then(()=>{v===B&&(c=!0)}),d=!0,sn(f,K,n.state.value[e])}const O=r?function(){const{state:K}=s,B=K?K():{};this.$patch(te=>{xs(te,B)})}:Wl;function b(){a.stop(),f=[],h=[],n._s.delete(e)}const P=(L,K="")=>{if(Gl in L)return L[Qr]=K,L;const B=function(){Eo(n);const te=Array.from(arguments),Z=[],he=[];function ge(ke){Z.push(ke)}function Pe(ke){he.push(ke)}sn(h,{args:te,name:B[Qr],store:q,after:ge,onError:Pe});let we;try{we=L.apply(this&&this.$id===e?this:q,te)}catch(ke){throw sn(he,ke),ke}return we instanceof Promise?we.then(ke=>(sn(Z,ke),ke)).catch(ke=>(sn(he,ke),Promise.reject(ke))):(sn(Z,we),we)};return B[Gl]=!0,B[Qr]=K,B},A={_p:n,$id:e,$onAction:Kl.bind(null,h),$patch:k,$reset:O,$subscribe(L,K={}){const B=Kl(f,L,K.detached,()=>te()),te=a.run(()=>Ke(()=>n.state.value[e],Z=>{(K.flush==="sync"?d:c)&&L({storeId:e,type:Rn.direct,events:p},Z)},xs({},u,K)));return B},$dispose:b},q=Bs(A);n._s.set(e,q);const H=(n._a&&n._a.runWithContext||up)(()=>n._e.run(()=>(a=to()).run(()=>t({action:P}))));for(const L in H){const K=H[L];if(ze(K)&&!fp(K)||Lt(K))r||(g&&dp(K)&&(ze(K)?K.value=g[L]:ei(K,g[L])),n.state.value[e][L]=K);else if(typeof K=="function"){const B=P(K,L);H[L]=B,l.actions[L]=K}}return xs(q,H),xs(Be(q),H),Object.defineProperty(q,"$state",{get:()=>n.state.value[e],set:L=>{k(K=>{xs(K,L)})}}),n._p.forEach(L=>{xs(q,a.run(()=>L({store:q,app:n._a,pinia:n,options:l})))}),g&&r&&s.hydrate&&s.hydrate(q.$state,g),c=!0,d=!0,q}/*! #__NO_SIDE_EFFECTS__ */function nn(e,t,s){let n,o;const r=typeof t=="function";typeof e=="string"?(n=e,o=r?s:t):(o=e,n=e.id);function a(l,u){const c=Ld();return l=l||(c?Pn(Hl,null):null),l&&Eo(l),l=Ul,l._s.has(n)||(r?Yl(n,t,o,l):pp(n,o,l)),l._s.get(n)}return a.$id=n,a}function Oo(e){{const t=Be(e),s={};for(const n in t){const o=t[n];o.effect?s[n]=Y({get:()=>e[n],set(r){e[n]=r}}):(ze(o)||Lt(o))&&(s[n]=Ma(e,n))}return s}}/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xl=e=>e==="";/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mp=(...e)=>e.filter((t,s,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===s).join(" ").trim();/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,s,n)=>n?n.toUpperCase():s.toLowerCase());/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vp=e=>{const t=gp(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Fn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yp=({name:e,iconNode:t,absoluteStrokeWidth:s,"absolute-stroke-width":n,strokeWidth:o,"stroke-width":r,size:a=Fn.width,color:l=Fn.stroke,...u},{slots:c})=>us("svg",{...Fn,...u,width:a,height:a,stroke:l,"stroke-width":Xl(s)||Xl(n)||s===!0||n===!0?Number(o||r||Fn["stroke-width"])*24/Number(a):o||r||Fn["stroke-width"],class:mp("lucide",u.class,...e?[`lucide-${Zl(vp(e))}-icon`,`lucide-${Zl(e)}`]:["lucide-icon"]),...!c.default&&!hp(u)&&{"aria-hidden":"true"}},[...t.map(d=>us(...d)),...c.default?[c.default()]:[]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Me=(e,t)=>(s,{slots:n,attrs:o})=>us(yp,{...o,...s,iconNode:t,name:e},n);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ti=Me("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jl=Me("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bp=Me("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _p=Me("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wp=Me("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xp=Me("circle-arrow-up",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ql=Me("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kp=Me("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eu=Me("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cp=Me("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tu=Me("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sp=Me("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const on=Me("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const su=Me("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $p=Me("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ap=Me("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nu=Me("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pp=Me("hard-drive",[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tp=Me("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ep=Me("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ou=Me("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Op=Me("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ds=Me("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mp=Me("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ip=Me("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dp=Me("octagon-x",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bp=Me("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rp=Me("paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fp=Me("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qp=Me("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mo=Me("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lp=Me("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ru=Me("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Np=Me("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zp=Me("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const si=Me("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Io=Me("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-vue-next v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vp=Me("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);let ni=1;var jp=class{constructor(){at(this,"subscribers");at(this,"toasts");at(this,"dismissedToasts");at(this,"subscribe",e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}));at(this,"publish",e=>{this.subscribers.forEach(t=>t(e))});at(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]});at(this,"create",e=>{var a;const{message:t,...s}=e,n=typeof e.id=="number"||e.id&&((a=e.id)==null?void 0:a.length)>0?e.id:ni++,o=this.toasts.find(l=>l.id===n),r=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),o?this.toasts=this.toasts.map(l=>l.id===n?(this.publish({...l,...e,id:n,title:t}),{...l,...e,id:n,dismissible:r,title:t}):l):this.addToast({title:t,...s,dismissible:r,id:n}),n});at(this,"dismiss",e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(s=>s({id:t.id,dismiss:!0}))}),e));at(this,"message",(e,t)=>this.create({...t,message:e,type:"default"}));at(this,"error",(e,t)=>this.create({...t,type:"error",message:e}));at(this,"success",(e,t)=>this.create({...t,type:"success",message:e}));at(this,"info",(e,t)=>this.create({...t,type:"info",message:e}));at(this,"warning",(e,t)=>this.create({...t,type:"warning",message:e}));at(this,"loading",(e,t)=>this.create({...t,type:"loading",message:e}));at(this,"promise",(e,t)=>{if(!t)return;let s;t.loading!==void 0&&(s=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));const n=Promise.resolve(e instanceof Function?e():e);let o=s!==void 0,r;const a=n.then(async u=>{if(r=["resolve",u],jt(u))o=!1,this.create({id:s,type:"default",message:u});else if(Hp(u)&&!u.ok){o=!1;const d=typeof t.error=="function"?await t.error(`HTTP error! status: ${u.status}`):t.error,f=typeof t.description=="function"?await t.description(`HTTP error! status: ${u.status}`):t.description,p=typeof d=="object"&&!jt(d)?d:{message:d||"",id:s||""};this.create({id:s,type:"error",description:f,...p})}else if(u instanceof Error){o=!1;const d=typeof t.error=="function"?await t.error(u):t.error,f=typeof t.description=="function"?await t.description(u):t.description,p=typeof d=="object"&&!jt(d)?d:{message:d||"",id:s||""};this.create({id:s,type:"error",description:f,...p})}else if(t.success!==void 0){o=!1;const d=typeof t.success=="function"?await t.success(u):t.success,f=typeof t.description=="function"?await t.description(u):t.description,p=typeof d=="object"&&!jt(d)?d:{message:d||"",id:s||""};this.create({id:s,type:"success",description:f,...p})}}).catch(async u=>{if(r=["reject",u],t.error!==void 0){o=!1;const c=typeof t.error=="function"?await t.error(u):t.error,d=typeof t.description=="function"?await t.description(u):t.description,h=typeof c=="object"&&!jt(c)?c:{message:c||"",id:s||""};this.create({id:s,type:"error",description:d,...h})}}).finally(()=>{var u;o&&(this.dismiss(s),s=void 0),(u=t.finally)==null||u.call(t)}),l=()=>new Promise((u,c)=>a.then(()=>r[0]==="reject"?c(r[1]):u(r[1])).catch(c));return typeof s!="string"&&typeof s!="number"?{unwrap:l}:Object.assign(s,{unwrap:l})});at(this,"custom",(e,t)=>{const s=(t==null?void 0:t.id)||ni++,n=this.toasts.find(r=>r.id===s),o=(t==null?void 0:t.dismissible)===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),n?this.toasts=this.toasts.map(r=>r.id===s?(this.publish({...r,component:e,dismissible:o,id:s,...t}),{...r,component:e,dismissible:o,id:s,...t}):r):this.addToast({component:e,dismissible:o,id:s,...t}),s});at(this,"getActiveToasts",()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)));this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}};const xt=new jp;function Up(e,t){const s=(t==null?void 0:t.id)||ni++;return xt.create({message:e,id:s,type:"default",...t}),s}const Hp=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Wp=Up,Kp=()=>xt.toasts,Gp=()=>xt.getActiveToasts(),fs=Object.assign(Wp,{success:xt.success,info:xt.info,warning:xt.warning,error:xt.error,custom:xt.custom,message:xt.message,promise:xt.promise,dismiss:xt.dismiss,loading:xt.loading},{getHistory:Kp,getToasts:Gp});function Do(e){return e.label!==void 0}const Yp=3,iu="24px",au="16px",lu=4e3,Xp=356,Zp=14,Jp=45,uu=200;function Qp(){const e=R(!1);return Ye(()=>{const t=()=>{e.value=document.hidden};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)}),{isDocumentHidden:e}}function ks(...e){return e.filter(Boolean).join(" ")}function eh(e){const[t,s]=e.split("-"),n=[];return t&&n.push(t),s&&n.push(s),n}function th(e,t){const s={};return[e,t].forEach((n,o)=>{const r=o===1,a=r?"--mobile-offset":"--offset",l=r?au:iu;function u(c){["top","right","bottom","left"].forEach(d=>{s[`${a}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?u(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?s[`${a}-${c}`]=l:s[`${a}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):u(l)}),s}const sh=["data-rich-colors","data-styled","data-mounted","data-promise","data-swiped","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-dismissible","data-type","data-invert","data-swipe-out","data-swipe-direction","data-expanded","data-testid"],nh=["aria-label","data-disabled","data-close-button-position"];var oh=N({__name:"Toast",props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},closeButtonPosition:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:["update:heights","update:height","removeToast"],setup(e,{emit:t}){const s=e,n=t,o=R(null),r=R(null),a=R(!1),l=R(!1),u=R(!1),c=R(!1),d=R(!1),f=R(0),h=R(0),p=R(s.toast.duration||s.duration||lu),g=R(null),v=R(null),k=Y(()=>s.index===0),O=Y(()=>s.index+1<=s.visibleToasts),b=Y(()=>s.toast.type),P=Y(()=>s.toast.dismissible!==!1),A=Y(()=>s.toast.class||""),q=Y(()=>s.descriptionClass||""),z=Y(()=>{const E=s.toast.position||s.position,ae=s.heights.filter(de=>de.position===E).findIndex(de=>de.toastId===s.toast.id);return ae>=0?ae:0}),H=Y(()=>{const E=s.toast.position||s.position;return s.heights.filter(ae=>ae.position===E).reduce((ae,de,ve)=>ve>=z.value?ae:ae+de.height,0)}),L=Y(()=>z.value*s.gap+H.value||0),K=Y(()=>s.toast.closeButton??s.closeButton),B=Y(()=>s.toast.duration||s.duration||lu),te=R(0),Z=R(0),he=R(null),ge=Y(()=>s.position.split("-")),Pe=Y(()=>ge.value[0]),we=Y(()=>ge.value[1]),ke=Y(()=>typeof s.toast.title!="string"),se=Y(()=>typeof s.toast.description!="string"),{isDocumentHidden:Oe}=Qp(),I=Y(()=>b.value&&b.value==="loading");Qe(()=>{a.value=!0,p.value=B.value}),Ye(async()=>{if(!a.value||!v.value)return;await nt();const E=v.value,oe=E.style.height;E.style.height="auto";const ae=E.getBoundingClientRect().height;E.style.height=oe,h.value=ae,n("update:height",{toastId:s.toast.id,height:ae,position:s.toast.position||s.position})});function T(){l.value=!0,f.value=L.value,setTimeout(()=>{n("removeToast",s.toast)},uu)}function re(){var E,oe;if(I.value||!P.value)return{};T(),(oe=(E=s.toast).onDismiss)==null||oe.call(E,s.toast)}function le(E){E.button!==2&&(I.value||!P.value||(g.value=new Date,f.value=L.value,E.target.setPointerCapture(E.pointerId),E.target.tagName!=="BUTTON"&&(u.value=!0,he.value={x:E.clientX,y:E.clientY})))}function ce(){var _,$,D,j,V,U,J;if(c.value||!P.value)return;he.value=null;const E=Number(((_=v.value)==null?void 0:_.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),oe=Number((($=v.value)==null?void 0:$.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ae=new Date().getTime()-(((D=g.value)==null?void 0:D.getTime())||0),de=o.value==="x"?E:oe,ve=Math.abs(de)/ae;if(Math.abs(de)>=Jp||ve>.11){f.value=L.value,(V=(j=s.toast).onDismiss)==null||V.call(j,s.toast),o.value==="x"?r.value=E>0?"right":"left":r.value=oe>0?"down":"up",T(),c.value=!0;return}else(U=v.value)==null||U.style.setProperty("--swipe-amount-x","0px"),(J=v.value)==null||J.style.setProperty("--swipe-amount-y","0px");d.value=!1,u.value=!1,o.value=null}function xe(E){var D,j,V,U;if(!he.value||!P.value||(((j=(D=window==null?void 0:window.getSelection())==null?void 0:D.toString())==null?void 0:j.length)??!1))return;const ae=E.clientY-he.value.y,de=E.clientX-he.value.x,ve=s.swipeDirections??eh(s.position);!o.value&&(Math.abs(de)>1||Math.abs(ae)>1)&&(o.value=Math.abs(de)>Math.abs(ae)?"x":"y");let _={x:0,y:0};const $=J=>1/(1.5+Math.abs(J)/20);if(o.value==="y"){if(ve.includes("top")||ve.includes("bottom"))if(ve.includes("top")&&ae<0||ve.includes("bottom")&&ae>0)_.y=ae;else{const J=ae*$(ae);_.y=Math.abs(J)<Math.abs(ae)?J:ae}}else if(o.value==="x"&&(ve.includes("left")||ve.includes("right")))if(ve.includes("left")&&de<0||ve.includes("right")&&de>0)_.x=de;else{const J=de*$(de);_.x=Math.abs(J)<Math.abs(de)?J:de}(Math.abs(_.x)>0||Math.abs(_.y)>0)&&(d.value=!0),(V=v.value)==null||V.style.setProperty("--swipe-amount-x",`${_.x}px`),(U=v.value)==null||U.style.setProperty("--swipe-amount-y",`${_.y}px`)}Qe(()=>{if(a.value=!0,!v.value)return;const E=v.value.getBoundingClientRect().height;h.value=E;const oe=[{toastId:s.toast.id,height:E,position:s.toast.position},...s.heights];n("update:heights",oe)}),Ir(()=>{v.value&&n("removeToast",s.toast)}),Ye(E=>{if(s.toast.promise&&b.value==="loading"||s.toast.duration===1/0||s.toast.type==="loading")return;let oe;const ae=()=>{if(Z.value<te.value){const ve=new Date().getTime()-te.value;p.value=p.value-ve}Z.value=new Date().getTime()},de=()=>{p.value!==1/0&&(te.value=new Date().getTime(),oe=setTimeout(()=>{var ve,_;(_=(ve=s.toast).onAutoClose)==null||_.call(ve,s.toast),T()},p.value))};s.expanded||s.interacting||Oe.value?ae():de(),E(()=>{clearTimeout(oe)})}),Ke(()=>s.toast.delete,E=>{var oe,ae;E!==void 0&&E&&(T(),(ae=(oe=s.toast).onDismiss)==null||ae.call(oe,s.toast))},{deep:!0});function Ce(){u.value=!1,o.value=null,he.value=null}return(E,oe)=>{var ae,de,ve,_,$,D,j,V,U,J,ee,Q,X,ye,ie,me,Se,Te,Ne,Re,et,tt,ut,vt,Qt,Wn,ht;return m(),F("li",{tabindex:"0",ref_key:"toastRef",ref:v,class:_e(i(ks)(s.class,A.value,(ae=E.classes)==null?void 0:ae.toast,(de=E.toast.classes)==null?void 0:de.toast,(ve=E.classes)==null?void 0:ve[b.value],($=(_=E.toast)==null?void 0:_.classes)==null?void 0:$[b.value])),"data-sonner-toast":"","data-rich-colors":E.toast.richColors??E.defaultRichColors,"data-styled":!(E.toast.component||(D=E.toast)!=null&&D.unstyled||E.unstyled),"data-mounted":a.value,"data-promise":!!E.toast.promise,"data-swiped":d.value,"data-removed":l.value,"data-visible":O.value,"data-y-position":Pe.value,"data-x-position":we.value,"data-index":E.index,"data-front":k.value,"data-swiping":u.value,"data-dismissible":P.value,"data-type":b.value,"data-invert":E.toast.invert||E.invert,"data-swipe-out":c.value,"data-swipe-direction":r.value,"data-expanded":!!(E.expanded||E.expandByDefault&&a.value),"data-testid":E.toast.testId,style:Mt({"--index":E.index,"--toasts-before":E.index,"--z-index":E.toasts.length-E.index,"--offset":`${l.value?f.value:L.value}px`,"--initial-height":E.expandByDefault?"auto":`${h.value}px`,...E.style,...s.toast.style}),onDragend:Ce,onPointerdown:le,onPointerup:ce,onPointermove:xe},[K.value&&!E.toast.component&&b.value!=="loading"?(m(),F("button",{key:0,"aria-label":E.closeButtonAriaLabel||"Close toast","data-disabled":I.value,"data-close-button":"true","data-close-button-position":E.closeButtonPosition,class:_e(i(ks)((j=E.classes)==null?void 0:j.closeButton,(U=(V=E.toast)==null?void 0:V.classes)==null?void 0:U.closeButton)),onClick:re},[(J=E.icons)!=null&&J.close?(m(),M(qs((ee=E.icons)==null?void 0:ee.close),{key:0})):W(E.$slots,"close-icon",{key:1})],10,nh)):ne("v-if",!0),E.toast.component?(m(),M(qs(E.toast.component),ue({key:1},E.toast.componentProps,{onCloseToast:re,isPaused:E.$props.expanded||E.$props.interacting||i(Oe)}),null,16,["isPaused"])):(m(),F(be,{key:2},[b.value!=="default"||E.toast.icon||E.toast.promise?(m(),F("div",{key:0,"data-icon":"",class:_e(i(ks)((Q=E.classes)==null?void 0:Q.icon,(ye=(X=E.toast)==null?void 0:X.classes)==null?void 0:ye.icon))},[E.toast.icon?(m(),M(qs(E.toast.icon),{key:0})):(m(),F(be,{key:1},[b.value==="loading"?W(E.$slots,"loading-icon",{key:0}):b.value==="success"?W(E.$slots,"success-icon",{key:1}):b.value==="error"?W(E.$slots,"error-icon",{key:2}):b.value==="warning"?W(E.$slots,"warning-icon",{key:3}):b.value==="info"?W(E.$slots,"info-icon",{key:4}):ne("v-if",!0)],64))],2)):ne("v-if",!0),y("div",{"data-content":"",class:_e(i(ks)((ie=E.classes)==null?void 0:ie.content,(Se=(me=E.toast)==null?void 0:me.classes)==null?void 0:Se.content))},[y("div",{"data-title":"",class:_e(i(ks)((Te=E.classes)==null?void 0:Te.title,(Ne=E.toast.classes)==null?void 0:Ne.title))},[ke.value?(m(),M(qs(E.toast.title),st(ue({key:0},E.toast.componentProps)),null,16)):(m(),F(be,{key:1},[G(S(E.toast.title),1)],64))],2),E.toast.description?(m(),F("div",{key:0,"data-description":"",class:_e(i(ks)(E.descriptionClass,q.value,(Re=E.classes)==null?void 0:Re.description,(et=E.toast.classes)==null?void 0:et.description))},[se.value?(m(),M(qs(E.toast.description),st(ue({key:0},E.toast.componentProps)),null,16)):(m(),F(be,{key:1},[G(S(E.toast.description),1)],64))],2)):ne("v-if",!0)],2),E.toast.cancel?(m(),F("button",{key:1,style:Mt(E.toast.cancelButtonStyle||E.cancelButtonStyle),class:_e(i(ks)((tt=E.classes)==null?void 0:tt.cancelButton,(ut=E.toast.classes)==null?void 0:ut.cancelButton)),"data-button":"","data-cancel":"",onClick:oe[0]||(oe[0]=yt=>{var Os,Ms;i(Do)(E.toast.cancel)&&P.value&&((Ms=(Os=E.toast.cancel).onClick)==null||Ms.call(Os,yt),T())})},S(i(Do)(E.toast.cancel)?(vt=E.toast.cancel)==null?void 0:vt.label:E.toast.cancel),7)):ne("v-if",!0),E.toast.action?(m(),F("button",{key:2,style:Mt(E.toast.actionButtonStyle||E.actionButtonStyle),class:_e(i(ks)((Qt=E.classes)==null?void 0:Qt.actionButton,(Wn=E.toast.classes)==null?void 0:Wn.actionButton)),"data-button":"","data-action":"",onClick:oe[1]||(oe[1]=yt=>{var Os,Ms;i(Do)(E.toast.action)&&((Ms=(Os=E.toast.action).onClick)==null||Ms.call(Os,yt),!yt.defaultPrevented&&T())})},S(i(Do)(E.toast.action)?(ht=E.toast.action)==null?void 0:ht.label:E.toast.action),7)):ne("v-if",!0)],64))],46,sh)}}}),rh=oh,qn=(e,t)=>{const s=e.__vccOpts||e;for(const[n,o]of t)s[n]=o;return s};const ih={},ah={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"};function lh(e,t){return m(),F("svg",ah,t[0]||(t[0]=[y("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),y("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)]))}var uh=qn(ih,[["render",lh]]);const ch=["data-visible"],dh={class:"sonner-spinner"};var fh=N({__name:"Loader",props:{visible:{type:Boolean}},setup(e){const t=Array(12).fill(0);return(s,n)=>(m(),F("div",{class:"sonner-loading-wrapper","data-visible":s.visible},[y("div",dh,[(m(!0),F(be,null,Ue(i(t),o=>(m(),F("div",{key:`spinner-bar-${o}`,class:"sonner-loading-bar"}))),128))])],8,ch))}}),ph=fh;const hh={},mh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function gh(e,t){return m(),F("svg",mh,t[0]||(t[0]=[y("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1)]))}var vh=qn(hh,[["render",gh]]);const yh={},bh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function _h(e,t){return m(),F("svg",bh,t[0]||(t[0]=[y("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1)]))}var wh=qn(yh,[["render",_h]]);const xh={},kh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"};function Ch(e,t){return m(),F("svg",kh,t[0]||(t[0]=[y("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1)]))}var Sh=qn(xh,[["render",Ch]]);const $h={},Ah={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"};function Ph(e,t){return m(),F("svg",Ah,t[0]||(t[0]=[y("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1)]))}var Th=qn($h,[["render",Ph]]);const Eh=["aria-label"],Oh=["data-sonner-theme","dir","data-theme","data-rich-colors","data-y-position","data-x-position"],Mh=typeof window<"u"&&typeof document<"u";function Ih(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var Dh=N({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{id:{},invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},closeButtonPosition:{default:"top-left"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:Zp},visibleToasts:{default:Yp},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:""},style:{},offset:{default:iu},mobileOffset:{default:au},dir:{default:"auto"},swipeDirections:{},icons:{},containerAriaLabel:{default:"Notifications"}},setup(e){const t=e,s=Jd(),n=R([]),o=Y(()=>t.id?n.value.filter(B=>B.toasterId===t.id):n.value.filter(B=>!B.toasterId));function r(B,te){return o.value.filter(Z=>!Z.position&&te===0||Z.position===B)}const a=Y(()=>{const B=o.value.filter(te=>te.position).map(te=>te.position);return B.length>0?Array.from(new Set([t.position].concat(B))):[t.position]}),l=Y(()=>{const B={};return a.value.forEach(te=>{B[te]=n.value.filter(Z=>Z.position===te)}),B}),u=R([]),c=R({}),d=R(!1);Ye(()=>{a.value.forEach(B=>{B in c.value||(c.value[B]=!1)})});const f=R(t.theme!=="system"?t.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),h=R(null),p=R(null),g=R(!1),v=t.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function k(B){var te;(te=n.value.find(Z=>Z.id===B.id))!=null&&te.delete||xt.dismiss(B.id),n.value=n.value.filter(({id:Z})=>Z!==B.id),setTimeout(()=>{n.value.find(Z=>Z.id===B.id)||(u.value=u.value.filter(Z=>Z.toastId!==B.id))},uu+50)}function O(B){var te,Z;g.value&&!((Z=(te=B.currentTarget)==null?void 0:te.contains)!=null&&Z.call(te,B.relatedTarget))&&(g.value=!1,p.value&&(p.value.focus({preventScroll:!0}),p.value=null))}function b(B){B.target instanceof HTMLElement&&B.target.dataset.dismissible==="false"||g.value||(g.value=!0,p.value=B.relatedTarget)}function P(B){B.target&&B.target instanceof HTMLElement&&B.target.dataset.dismissible==="false"||(d.value=!0)}Ye(B=>{const te=xt.subscribe(Z=>{if(Z.dismiss){requestAnimationFrame(()=>{n.value=n.value.map(he=>he.id===Z.id?{...he,delete:!0}:he)});return}nt(()=>{const he=n.value.findIndex(ge=>ge.id===Z.id);he!==-1?n.value=[...n.value.slice(0,he),{...n.value[he],...Z},...n.value.slice(he+1)]:n.value=[Z,...n.value]})});B(te)}),Ye(B=>{if(typeof window>"u")return;if(t.theme!=="system"){f.value=t.theme;return}const te=window.matchMedia("(prefers-color-scheme: dark)"),Z=ge=>{f.value=ge?"dark":"light"};Z(te.matches);const he=ge=>{Z(ge.matches)};try{te.addEventListener("change",he)}catch{te.addListener(he)}B(()=>{try{te.removeEventListener("change",he)}catch{te.removeListener(he)}})}),Ye(()=>{h.value&&p.value&&(p.value.focus({preventScroll:!0}),p.value=null,g.value=!1)}),Ye(()=>{n.value.length<=1&&Object.keys(c.value).forEach(B=>{c.value[B]=!1})}),Ye(B=>{function te(Z){const he=t.hotkey.every(we=>Z[we]||Z.code===we),ge=Array.isArray(h.value)?h.value[0]:h.value;he&&(a.value.forEach(we=>{c.value[we]=!0}),ge==null||ge.focus());const Pe=document.activeElement===h.value||(ge==null?void 0:ge.contains(document.activeElement));Z.code==="Escape"&&Pe&&a.value.forEach(we=>{c.value[we]=!1})}Mh&&(document.addEventListener("keydown",te),B(()=>{document.removeEventListener("keydown",te)}))});function A(B){const te=B.currentTarget,Z=te.getAttribute("data-y-position")+"-"+te.getAttribute("data-x-position");c.value[Z]=!0}function q(B){if(!d.value){const te=B.currentTarget,Z=te.getAttribute("data-y-position")+"-"+te.getAttribute("data-x-position");c.value[Z]=!1}}function z(){Object.keys(c.value).forEach(B=>{c.value[B]=!1})}function H(){d.value=!1}function L(B){u.value=B}function K(B){const te=u.value.findIndex(Z=>Z.toastId===B.toastId);if(te!==-1)u.value[te]=B;else{const Z=u.value.findIndex(he=>he.position===B.position);Z!==-1?u.value.splice(Z,0,B):u.value.unshift(B)}}return(B,te)=>(m(),F(be,null,[ne(" Remove item from normal navigation flow, only available via hotkey "),y("section",{"aria-label":`${B.containerAriaLabel} ${i(v)}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false"},[(m(!0),F(be,null,Ue(a.value,(Z,he)=>{var ge;return m(),F("ol",ue({key:Z,ref_for:!0,ref_key:"listRef",ref:h,"data-sonner-toaster":"","data-sonner-theme":f.value,class:t.class,dir:B.dir==="auto"?Ih():B.dir,tabIndex:-1,"data-theme":B.theme,"data-rich-colors":B.richColors,"data-y-position":Z.split("-")[0],"data-x-position":Z.split("-")[1],style:{"--front-toast-height":`${((ge=u.value[0])==null?void 0:ge.height)||0}px`,"--width":`${i(Xp)}px`,"--gap":`${B.gap}px`,...B.style,...i(s).style,...i(th)(B.offset,B.mobileOffset)}},{ref_for:!0},B.$attrs,{onBlur:O,onFocus:b,onMouseenter:A,onMousemove:A,onMouseleave:q,onDragend:z,onPointerdown:P,onPointerup:H}),[(m(!0),F(be,null,Ue(r(Z,he),(Pe,we)=>{var ke,se,Oe,I,T,re,le,ce,xe,Ce,E;return m(),M(rh,{key:Pe.id,heights:u.value,icons:B.icons,index:we,toast:Pe,defaultRichColors:B.richColors,duration:((ke=B.toastOptions)==null?void 0:ke.duration)??B.duration,class:_e(((se=B.toastOptions)==null?void 0:se.class)??""),descriptionClass:(Oe=B.toastOptions)==null?void 0:Oe.descriptionClass,invert:B.invert,visibleToasts:B.visibleToasts,closeButton:((I=B.toastOptions)==null?void 0:I.closeButton)??B.closeButton,interacting:d.value,position:Z,closeButtonPosition:((T=B.toastOptions)==null?void 0:T.closeButtonPosition)??B.closeButtonPosition,style:Mt((re=B.toastOptions)==null?void 0:re.style),unstyled:(le=B.toastOptions)==null?void 0:le.unstyled,classes:(ce=B.toastOptions)==null?void 0:ce.classes,cancelButtonStyle:(xe=B.toastOptions)==null?void 0:xe.cancelButtonStyle,actionButtonStyle:(Ce=B.toastOptions)==null?void 0:Ce.actionButtonStyle,"close-button-aria-label":(E=B.toastOptions)==null?void 0:E.closeButtonAriaLabel,toasts:l.value[Z],expandByDefault:B.expand,gap:B.gap,expanded:c.value[Z]||!1,swipeDirections:t.swipeDirections,"onUpdate:heights":L,"onUpdate:height":K,onRemoveToast:k},{"close-icon":x(()=>[W(B.$slots,"close-icon",{},()=>[C(uh)])]),"loading-icon":x(()=>[W(B.$slots,"loading-icon",{},()=>[C(ph,{visible:Pe.type==="loading"},null,8,["visible"])])]),"success-icon":x(()=>[W(B.$slots,"success-icon",{},()=>[C(vh)])]),"error-icon":x(()=>[W(B.$slots,"error-icon",{},()=>[C(Th)])]),"warning-icon":x(()=>[W(B.$slots,"warning-icon",{},()=>[C(Sh)])]),"info-icon":x(()=>[W(B.$slots,"info-icon",{},()=>[C(wh)])]),_:2},1032,["heights","icons","index","toast","defaultRichColors","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","closeButtonPosition","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","close-button-aria-label","toasts","expandByDefault","gap","expanded","swipeDirections"])}),128))],16,Oh)}),128))],8,Eh)],2112))}}),Bh=Dh;function cu(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(s=cu(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function du(){for(var e,t,s=0,n="",o=arguments.length;s<o;s++)(e=arguments[s])&&(t=cu(e))&&(n&&(n+=" "),n+=t);return n}const Rh=(e,t)=>{const s=new Array(e.length+t.length);for(let n=0;n<e.length;n++)s[n]=e[n];for(let n=0;n<t.length;n++)s[e.length+n]=t[n];return s},Fh=(e,t)=>({classGroupId:e,validator:t}),fu=(e=new Map,t=null,s)=>({nextPart:e,validators:t,classGroupId:s}),Bo="-",pu=[],qh="arbitrary..",Lh=e=>{const t=zh(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Nh(a);const l=a.split(Bo),u=l[0]===""&&l.length>1?1:0;return hu(l,u,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const u=n[a],c=s[a];return u?c?Rh(c,u):u:c||pu}return s[a]||pu}}},hu=(e,t,s)=>{if(e.length-t===0)return s.classGroupId;const o=e[t],r=s.nextPart.get(o);if(r){const c=hu(e,t+1,r);if(c)return c}const a=s.validators;if(a===null)return;const l=t===0?e.join(Bo):e.slice(t).join(Bo),u=a.length;for(let c=0;c<u;c++){const d=a[c];if(d.validator(l))return d.classGroupId}},Nh=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),s=t.indexOf(":"),n=t.slice(0,s);return n?qh+n:void 0})(),zh=e=>{const{theme:t,classGroups:s}=e;return Vh(s,t)},Vh=(e,t)=>{const s=fu();for(const n in e){const o=e[n];oi(o,s,n,t)}return s},oi=(e,t,s,n)=>{const o=e.length;for(let r=0;r<o;r++){const a=e[r];jh(a,t,s,n)}},jh=(e,t,s,n)=>{if(typeof e=="string"){Uh(e,t,s);return}if(typeof e=="function"){Hh(e,t,s,n);return}Wh(e,t,s,n)},Uh=(e,t,s)=>{const n=e===""?t:mu(t,e);n.classGroupId=s},Hh=(e,t,s,n)=>{if(Kh(e)){oi(e(n),t,s,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Fh(s,e))},Wh=(e,t,s,n)=>{const o=Object.entries(e),r=o.length;for(let a=0;a<r;a++){const[l,u]=o[a];oi(u,mu(t,l),s,n)}},mu=(e,t)=>{let s=e;const n=t.split(Bo),o=n.length;for(let r=0;r<o;r++){const a=n[r];let l=s.nextPart.get(a);l||(l=fu(),s.nextPart.set(a,l)),s=l}return s},Kh=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Gh=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,s=Object.create(null),n=Object.create(null);const o=(r,a)=>{s[r]=a,t++,t>e&&(t=0,n=s,s=Object.create(null))};return{get(r){let a=s[r];if(a!==void 0)return a;if((a=n[r])!==void 0)return o(r,a),a},set(r,a){r in s?s[r]=a:o(r,a)}}},ri="!",gu=":",Yh=[],vu=(e,t,s,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:s,maybePostfixModifierPosition:n,isExternal:o}),Xh=e=>{const{prefix:t,experimentalParseClassName:s}=e;let n=o=>{const r=[];let a=0,l=0,u=0,c;const d=o.length;for(let v=0;v<d;v++){const k=o[v];if(a===0&&l===0){if(k===gu){r.push(o.slice(u,v)),u=v+1;continue}if(k==="/"){c=v;continue}}k==="["?a++:k==="]"?a--:k==="("?l++:k===")"&&l--}const f=r.length===0?o:o.slice(u);let h=f,p=!1;f.endsWith(ri)?(h=f.slice(0,-1),p=!0):f.startsWith(ri)&&(h=f.slice(1),p=!0);const g=c&&c>u?c-u:void 0;return vu(r,p,h,g)};if(t){const o=t+gu,r=n;n=a=>a.startsWith(o)?r(a.slice(o.length)):vu(Yh,!1,a,void 0,!0)}if(s){const o=n;n=r=>s({className:r,parseClassName:o})}return n},Zh=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((s,n)=>{t.set(s,1e6+n)}),s=>{const n=[];let o=[];for(let r=0;r<s.length;r++){const a=s[r],l=a[0]==="[",u=t.has(a);l||u?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},Jh=e=>({cache:Gh(e.cacheSize),parseClassName:Xh(e),sortModifiers:Zh(e),...Lh(e)}),Qh=/\s+/,em=(e,t)=>{const{parseClassName:s,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:r}=t,a=[],l=e.trim().split(Qh);let u="";for(let c=l.length-1;c>=0;c-=1){const d=l[c],{isExternal:f,modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:v}=s(d);if(f){u=d+(u.length>0?" "+u:u);continue}let k=!!v,O=n(k?g.substring(0,v):g);if(!O){if(!k){u=d+(u.length>0?" "+u:u);continue}if(O=n(g),!O){u=d+(u.length>0?" "+u:u);continue}k=!1}const b=h.length===0?"":h.length===1?h[0]:r(h).join(":"),P=p?b+ri:b,A=P+O;if(a.indexOf(A)>-1)continue;a.push(A);const q=o(O,k);for(let z=0;z<q.length;++z){const H=q[z];a.push(P+H)}u=d+(u.length>0?" "+u:u)}return u},tm=(...e)=>{let t=0,s,n,o="";for(;t<e.length;)(s=e[t++])&&(n=yu(s))&&(o&&(o+=" "),o+=n);return o},yu=e=>{if(typeof e=="string")return e;let t,s="";for(let n=0;n<e.length;n++)e[n]&&(t=yu(e[n]))&&(s&&(s+=" "),s+=t);return s},sm=(e,...t)=>{let s,n,o,r;const a=u=>{const c=t.reduce((d,f)=>f(d),e());return s=Jh(c),n=s.cache.get,o=s.cache.set,r=l,l(u)},l=u=>{const c=n(u);if(c)return c;const d=em(u,s);return o(u,d),d};return r=a,(...u)=>r(tm(...u))},nm=[],ot=e=>{const t=s=>s[e]||nm;return t.isThemeGetter=!0,t},bu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_u=/^\((?:(\w[\w-]*):)?(.+)\)$/i,om=/^\d+\/\d+$/,rm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,im=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,am=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,um=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rn=e=>om.test(e),Ee=e=>!!e&&!Number.isNaN(Number(e)),Cs=e=>!!e&&Number.isInteger(Number(e)),ii=e=>e.endsWith("%")&&Ee(e.slice(0,-1)),ps=e=>rm.test(e),cm=()=>!0,dm=e=>im.test(e)&&!am.test(e),wu=()=>!1,fm=e=>lm.test(e),pm=e=>um.test(e),hm=e=>!fe(e)&&!pe(e),mm=e=>an(e,$u,wu),fe=e=>bu.test(e),Vs=e=>an(e,Au,dm),ai=e=>an(e,_m,Ee),xu=e=>an(e,Cu,wu),gm=e=>an(e,Su,pm),Ro=e=>an(e,Pu,fm),pe=e=>_u.test(e),Ln=e=>ln(e,Au),vm=e=>ln(e,wm),ku=e=>ln(e,Cu),ym=e=>ln(e,$u),bm=e=>ln(e,Su),Fo=e=>ln(e,Pu,!0),an=(e,t,s)=>{const n=bu.exec(e);return n?n[1]?t(n[1]):s(n[2]):!1},ln=(e,t,s=!1)=>{const n=_u.exec(e);return n?n[1]?t(n[1]):s:!1},Cu=e=>e==="position"||e==="percentage",Su=e=>e==="image"||e==="url",$u=e=>e==="length"||e==="size"||e==="bg-size",Au=e=>e==="length",_m=e=>e==="number",wm=e=>e==="family-name",Pu=e=>e==="shadow",xm=sm(()=>{const e=ot("color"),t=ot("font"),s=ot("text"),n=ot("font-weight"),o=ot("tracking"),r=ot("leading"),a=ot("breakpoint"),l=ot("container"),u=ot("spacing"),c=ot("radius"),d=ot("shadow"),f=ot("inset-shadow"),h=ot("text-shadow"),p=ot("drop-shadow"),g=ot("blur"),v=ot("perspective"),k=ot("aspect"),O=ot("ease"),b=ot("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],q=()=>[...A(),pe,fe],z=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],L=()=>[pe,fe,u],K=()=>[rn,"full","auto",...L()],B=()=>[Cs,"none","subgrid",pe,fe],te=()=>["auto",{span:["full",Cs,pe,fe]},Cs,pe,fe],Z=()=>[Cs,"auto",pe,fe],he=()=>["auto","min","max","fr",pe,fe],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Pe=()=>["start","end","center","stretch","center-safe","end-safe"],we=()=>["auto",...L()],ke=()=>[rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],se=()=>[e,pe,fe],Oe=()=>[...A(),ku,xu,{position:[pe,fe]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",ym,mm,{size:[pe,fe]}],re=()=>[ii,Ln,Vs],le=()=>["","none","full",c,pe,fe],ce=()=>["",Ee,Ln,Vs],xe=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>[Ee,ii,ku,xu],oe=()=>["","none",g,pe,fe],ae=()=>["none",Ee,pe,fe],de=()=>["none",Ee,pe,fe],ve=()=>[Ee,pe,fe],_=()=>[rn,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ps],breakpoint:[ps],color:[cm],container:[ps],"drop-shadow":[ps],ease:["in","out","in-out"],font:[hm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ps],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ps],shadow:[ps],spacing:["px",Ee],text:[ps],"text-shadow":[ps],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rn,fe,pe,k]}],container:["container"],columns:[{columns:[Ee,fe,pe,l]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{start:K()}],end:[{end:K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Cs,"auto",pe,fe]}],basis:[{basis:[rn,"full","auto",l,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,rn,"auto","initial","none",fe]}],grow:[{grow:["",Ee,pe,fe]}],shrink:[{shrink:["",Ee,pe,fe]}],order:[{order:[Cs,"first","last","none",pe,fe]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...Pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...Pe()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...Pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...Pe(),"baseline"]}],"place-self":[{"place-self":["auto",...Pe()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:we()}],mx:[{mx:we()}],my:[{my:we()}],ms:[{ms:we()}],me:[{me:we()}],mt:[{mt:we()}],mr:[{mr:we()}],mb:[{mb:we()}],ml:[{ml:we()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:ke()}],w:[{w:[l,"screen",...ke()]}],"min-w":[{"min-w":[l,"screen","none",...ke()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...ke()]}],h:[{h:["screen","lh",...ke()]}],"min-h":[{"min-h":["screen","lh","none",...ke()]}],"max-h":[{"max-h":["screen","lh",...ke()]}],"font-size":[{text:["base",s,Ln,Vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,pe,ai]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ii,fe]}],"font-family":[{font:[vm,fe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,fe]}],"line-clamp":[{"line-clamp":[Ee,"none",pe,ai]}],leading:[{leading:[r,...L()]}],"list-image":[{"list-image":["none",pe,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:se()}],"text-color":[{text:se()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",pe,Vs]}],"text-decoration-color":[{decoration:se()}],"underline-offset":[{"underline-offset":[Ee,"auto",pe,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Oe()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Cs,pe,fe],radial:["",pe,fe],conic:[Cs,pe,fe]},bm,gm]}],"bg-color":[{bg:se()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:se()}],"gradient-via":[{via:se()}],"gradient-to":[{to:se()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:se()}],"border-color-x":[{"border-x":se()}],"border-color-y":[{"border-y":se()}],"border-color-s":[{"border-s":se()}],"border-color-e":[{"border-e":se()}],"border-color-t":[{"border-t":se()}],"border-color-r":[{"border-r":se()}],"border-color-b":[{"border-b":se()}],"border-color-l":[{"border-l":se()}],"divide-color":[{divide:se()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,pe,fe]}],"outline-w":[{outline:["",Ee,Ln,Vs]}],"outline-color":[{outline:se()}],shadow:[{shadow:["","none",d,Fo,Ro]}],"shadow-color":[{shadow:se()}],"inset-shadow":[{"inset-shadow":["none",f,Fo,Ro]}],"inset-shadow-color":[{"inset-shadow":se()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:se()}],"ring-offset-w":[{"ring-offset":[Ee,Vs]}],"ring-offset-color":[{"ring-offset":se()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":se()}],"text-shadow":[{"text-shadow":["none",h,Fo,Ro]}],"text-shadow-color":[{"text-shadow":se()}],opacity:[{opacity:[Ee,pe,fe]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":E()}],"mask-image-linear-to-pos":[{"mask-linear-to":E()}],"mask-image-linear-from-color":[{"mask-linear-from":se()}],"mask-image-linear-to-color":[{"mask-linear-to":se()}],"mask-image-t-from-pos":[{"mask-t-from":E()}],"mask-image-t-to-pos":[{"mask-t-to":E()}],"mask-image-t-from-color":[{"mask-t-from":se()}],"mask-image-t-to-color":[{"mask-t-to":se()}],"mask-image-r-from-pos":[{"mask-r-from":E()}],"mask-image-r-to-pos":[{"mask-r-to":E()}],"mask-image-r-from-color":[{"mask-r-from":se()}],"mask-image-r-to-color":[{"mask-r-to":se()}],"mask-image-b-from-pos":[{"mask-b-from":E()}],"mask-image-b-to-pos":[{"mask-b-to":E()}],"mask-image-b-from-color":[{"mask-b-from":se()}],"mask-image-b-to-color":[{"mask-b-to":se()}],"mask-image-l-from-pos":[{"mask-l-from":E()}],"mask-image-l-to-pos":[{"mask-l-to":E()}],"mask-image-l-from-color":[{"mask-l-from":se()}],"mask-image-l-to-color":[{"mask-l-to":se()}],"mask-image-x-from-pos":[{"mask-x-from":E()}],"mask-image-x-to-pos":[{"mask-x-to":E()}],"mask-image-x-from-color":[{"mask-x-from":se()}],"mask-image-x-to-color":[{"mask-x-to":se()}],"mask-image-y-from-pos":[{"mask-y-from":E()}],"mask-image-y-to-pos":[{"mask-y-to":E()}],"mask-image-y-from-color":[{"mask-y-from":se()}],"mask-image-y-to-color":[{"mask-y-to":se()}],"mask-image-radial":[{"mask-radial":[pe,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":E()}],"mask-image-radial-to-pos":[{"mask-radial-to":E()}],"mask-image-radial-from-color":[{"mask-radial-from":se()}],"mask-image-radial-to-color":[{"mask-radial-to":se()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":E()}],"mask-image-conic-to-pos":[{"mask-conic-to":E()}],"mask-image-conic-from-color":[{"mask-conic-from":se()}],"mask-image-conic-to-color":[{"mask-conic-to":se()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oe()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,fe]}],filter:[{filter:["","none",pe,fe]}],blur:[{blur:oe()}],brightness:[{brightness:[Ee,pe,fe]}],contrast:[{contrast:[Ee,pe,fe]}],"drop-shadow":[{"drop-shadow":["","none",p,Fo,Ro]}],"drop-shadow-color":[{"drop-shadow":se()}],grayscale:[{grayscale:["",Ee,pe,fe]}],"hue-rotate":[{"hue-rotate":[Ee,pe,fe]}],invert:[{invert:["",Ee,pe,fe]}],saturate:[{saturate:[Ee,pe,fe]}],sepia:[{sepia:["",Ee,pe,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,fe]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,pe,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,pe,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,pe,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,pe,fe]}],"backdrop-invert":[{"backdrop-invert":["",Ee,pe,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,pe,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,pe,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,pe,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",pe,fe]}],ease:[{ease:["linear","initial",O,pe,fe]}],delay:[{delay:[Ee,pe,fe]}],animate:[{animate:["none",b,pe,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,pe,fe]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[pe,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_()}],"translate-x":[{"translate-x":_()}],"translate-y":[{"translate-y":_()}],"translate-z":[{"translate-z":_()}],"translate-none":["translate-none"],accent:[{accent:se()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:se()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,fe]}],fill:[{fill:["none",...se()]}],"stroke-w":[{stroke:[Ee,Ln,Vs,ai]}],stroke:[{stroke:["none",...se()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ie(...e){return xm(du(e))}const km=N({__name:"Sonner",props:{id:{},invert:{type:Boolean},theme:{},position:{},closeButtonPosition:{},hotkey:{},richColors:{type:Boolean},expand:{type:Boolean},duration:{},gap:{},visibleToasts:{},closeButton:{type:Boolean},toastOptions:{},class:{},style:{},offset:{},mobileOffset:{},dir:{},swipeDirections:{},icons:{},containerAriaLabel:{}},setup(e){const t=e;return(s,n)=>(m(),M(i(Bh),ue({class:i(Ie)("toaster group",t.class),style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"}},t),{"success-icon":x(()=>[C(i(kp),{class:"size-4"})]),"info-icon":x(()=>[C(i(Ep),{class:"size-4"})]),"warning-icon":x(()=>[C(i(si),{class:"size-4"})]),"error-icon":x(()=>[C(i(Dp),{class:"size-4"})]),"loading-icon":x(()=>[y("div",null,[C(i(ds),{class:"size-4 animate-spin"})])]),"close-icon":x(()=>[C(i(Io),{class:"size-4"})]),_:1},16,["class"]))}}),Tu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Eu=du,li=(e,t)=>s=>{var n;if((t==null?void 0:t.variants)==null)return Eu(e,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:o,defaultVariants:r}=t,a=Object.keys(o).map(c=>{const d=s==null?void 0:s[c],f=r==null?void 0:r[c];if(d===null)return null;const h=Tu(d)||Tu(f);return o[c][h]}),l=s&&Object.entries(s).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:f,className:h,...p}=d;return Object.entries(p).every(g=>{let[v,k]=g;return Array.isArray(k)?k.includes({...r,...l}[v]):{...r,...l}[v]===k})?[...c,f,h]:c},[]);return Eu(e,a,u,s==null?void 0:s.class,s==null?void 0:s.className)};function Ou(e){return typeof e=="string"?`'${e}'`:new Cm().serialize(e)}const Cm=(function(){var t;class e{constructor(){Wc(this,t,new Map)}compare(n,o){const r=typeof n,a=typeof o;return r==="string"&&a==="string"?n.localeCompare(o):r==="number"&&a==="number"?n-o:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(o,!0))}serialize(n,o){if(n===null)return"null";switch(typeof n){case"string":return o?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const o=Object.prototype.toString.call(n);if(o!=="[object Object]")return this.serializeBuiltInType(o.length<10?`unknown:${o}`:o.slice(8,-1),n);const r=n.constructor,a=r===Object||r===void 0?"":r.name;if(a!==""&&globalThis[a]===r)return this.serializeBuiltInType(a,n);if(typeof n.toJSON=="function"){const l=n.toJSON();return a+(l!==null&&typeof l=="object"?this.$object(l):`(${this.serialize(l)})`)}return this.serializeObjectEntries(a,Object.entries(n))}serializeBuiltInType(n,o){const r=this["$"+n];if(r)return r.call(this,o);if(typeof(o==null?void 0:o.entries)=="function")return this.serializeObjectEntries(n,o.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,o){const r=Array.from(o).sort((l,u)=>this.compare(l[0],u[0]));let a=`${n}{`;for(let l=0;l<r.length;l++){const[u,c]=r[l];a+=`${this.serialize(u,!0)}:${this.serialize(c)}`,l<r.length-1&&(a+=",")}return a+"}"}$object(n){let o=Kn(this,t).get(n);return o===void 0&&(Kn(this,t).set(n,`#${Kn(this,t).size}`),o=this.serializeObject(n),Kn(this,t).set(n,o)),o}$function(n){const o=Function.prototype.toString.call(n);return o.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${o.replace(/\s*\n\s*/g,"")}`}$Array(n){let o="[";for(let r=0;r<n.length;r++)o+=this.serialize(n[r]),r<n.length-1&&(o+=",");return o+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((o,r)=>this.compare(o,r)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}t=new WeakMap;for(const s of["Error","RegExp","URL"])e.prototype["$"+s]=function(n){return`${s}(${n})`};for(const s of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+s]=function(n){return`${s}[${n.join(",")}]`};for(const s of["BigInt64Array","BigUint64Array"])e.prototype["$"+s]=function(n){return`${s}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function Sm(e,t){return e===t||Ou(e)===Ou(t)}function Mu(e,t=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY){return Math.min(s,Math.max(t,e))}function Bt(e,t){const s=typeof e=="string"&&!t?`${e}Context`:t,n=Symbol(s);return[a=>{const l=Pn(n,a);if(l||l===null)return l;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},a=>(Ar(n,a),a)]}function St(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function ui(e,t,s){const n=s.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:s});t&&n.addEventListener(e,t,{once:!0}),n.dispatchEvent(o)}function ci(e){return e==null}function di(e){return e?e.flatMap(t=>t.type===be?di(t.children):[t]):[]}const[fi]=Bt("ConfigProvider");function $m(e,t){var s;const n=Cr();return Ye(()=>{n.value=e()},{...t,flush:(s=t==null?void 0:t.flush)!==null&&s!==void 0?s:"sync"}),uo(n)}function pi(e,t){return so()?(hr(e,t),!0):!1}function Am(e){let t=!1,s;const n=to(!0);return((...o)=>(t||(s=n.run(()=>e(...o)),t=!0),s))}const hs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Pm=e=>typeof e<"u",Tm=Object.prototype.toString,Em=e=>Tm.call(e)==="[object Object]",Iu=Om();function Om(){var e,t,s;return hs&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((s=window)===null||s===void 0?void 0:s.navigator.userAgent))}function hi(e){return Array.isArray(e)?e:[e]}function Mm(e){return Tt()}function Im(e){if(!hs)return e;let t=0,s,n;const o=()=>{t-=1,n&&t<=0&&(n.stop(),s=void 0,n=void 0)};return((...r)=>(t+=1,n||(n=to(!0),s=n.run(()=>e(...r))),pi(o),s))}function Dm(e){return Bs(ze(e)?new Proxy({},{get(t,s,n){return i(Reflect.get(e.value,s,n))},set(t,s,n){return ze(e.value[s])&&!ze(n)?e.value[s].value=n:e.value[s]=n,!0},deleteProperty(t,s){return Reflect.deleteProperty(e.value,s)},has(t,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function Bm(e){return Dm(Y(e))}function Xe(e,...t){const s=t.flat(),n=s[0];return Bm(()=>Object.fromEntries(typeof n=="function"?Object.entries(Nt(e)).filter(([o,r])=>!n(ft(r),o)):Object.entries(Nt(e)).filter(o=>!s.includes(o[0]))))}function Rm(e,t=1e4){return Oa((s,n)=>{let o=ft(e),r;const a=()=>setTimeout(()=>{o=ft(e),n()},ft(t));return pi(()=>{clearTimeout(r)}),{get(){return s(),o},set(l){o=l,n(),clearTimeout(r),r=a()}}})}function Fm(e,t){Mm()&&Ir(e,t)}function qm(e,t,s){return Ke(e,t,{...s,immediate:!0})}const qo=hs?window:void 0;function Wt(e){var t;const s=ft(e);return(t=s==null?void 0:s.$el)!==null&&t!==void 0?t:s}function Du(...e){const t=(n,o,r,a)=>(n.addEventListener(o,r,a),()=>n.removeEventListener(o,r,a)),s=Y(()=>{const n=hi(ft(e[0])).filter(o=>o!=null);return n.every(o=>typeof o!="string")?n:void 0});return qm(()=>{var n,o;return[(n=(o=s.value)===null||o===void 0?void 0:o.map(r=>Wt(r)))!==null&&n!==void 0?n:[qo].filter(r=>r!=null),hi(ft(s.value?e[1]:e[0])),hi(i(s.value?e[2]:e[1])),ft(s.value?e[3]:e[2])]},([n,o,r,a],l,u)=>{if(!(n!=null&&n.length)||!(o!=null&&o.length)||!(r!=null&&r.length))return;const c=Em(a)?{...a}:a,d=n.flatMap(f=>o.flatMap(h=>r.map(p=>t(f,h,p,c))));u(()=>{d.forEach(f=>f())})},{flush:"post"})}function Bu(){const e=Cr(!1),t=Tt();return t&&Qe(()=>{e.value=!0},t),e}function Lm(e){const t=Bu();return Y(()=>(t.value,!!e()))}function Nm(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function zm(...e){let t,s,n={};e.length===3?(t=e[0],s=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,s=e[0],n=e[1]):(t=e[0],s=e[1]):(t=!0,s=e[0]);const{target:o=qo,eventName:r="keydown",passive:a=!1,dedupe:l=!1}=n,u=Nm(t);return Du(o,r,d=>{d.repeat&&ft(l)||u(d)&&s(d)},a)}function Vm(e){return JSON.parse(JSON.stringify(e))}function jm(e,t,s={}){const{window:n=qo,...o}=s;let r;const a=Lm(()=>n&&"ResizeObserver"in n),l=()=>{r&&(r.disconnect(),r=void 0)},u=Ke(Y(()=>{const d=ft(e);return Array.isArray(d)?d.map(f=>Wt(f)):[Wt(d)]}),d=>{if(l(),a.value&&n){r=new ResizeObserver(t);for(const f of d)f&&r.observe(f,o)}},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return pi(c),{isSupported:a,stop:c}}function un(e,t,s,n={}){var o,r;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:d,shouldEmit:f}=n,h=Tt(),p=s||(h==null?void 0:h.emit)||(h==null||(o=h.$emit)===null||o===void 0?void 0:o.bind(h))||(h==null||(r=h.proxy)===null||r===void 0||(r=r.$emit)===null||r===void 0?void 0:r.bind(h==null?void 0:h.proxy));let g=u;t||(t="modelValue"),g=g||`update:${t.toString()}`;const v=b=>a?typeof a=="function"?a(b):Vm(b):b,k=()=>Pm(e[t])?v(e[t]):d,O=b=>{f?f(b)&&p(g,b):p(g,b)};if(l){const b=R(k());let P=!1;return Ke(()=>e[t],A=>{P||(P=!0,b.value=v(A),nt(()=>P=!1))}),Ke(b,A=>{!P&&(A!==e[t]||c)&&O(A)},{deep:c}),b}else return Y({get(){return k()},set(b){O(b)}})}function mi(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function gi(e,t,s=".",n){if(!mi(t))return gi(e,{},s,n);const o=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const a=e[r];a!=null&&(n&&n(o,r,a,s)||(Array.isArray(a)&&Array.isArray(o[r])?o[r]=[...a,...o[r]]:mi(a)&&mi(o[r])?o[r]=gi(a,o[r],(s?`${s}.`:"")+r.toString(),n):o[r]=a))}return o}function Um(e){return(...t)=>t.reduce((s,n)=>gi(s,n,"",e),{})}const Hm=Um(),Wm=Im(()=>{const e=R(new Map),t=R(),s=Y(()=>{for(const a of e.value.values())if(a)return!0;return!1}),n=fi({scrollBody:R(!0)});let o=null;const r=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",Iu&&(o==null||o()),t.value=void 0};return Ke(s,(a,l)=>{var f;if(!hs)return;if(!a){l&&r();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,c={padding:u,margin:0},d=(f=n.scrollBody)!=null&&f.value?typeof n.scrollBody.value=="object"?Hm({padding:n.scrollBody.value.padding===!0?u:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?u:n.scrollBody.value.margin},c):c:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof d.padding=="number"?`${d.padding}px`:String(d.padding),document.body.style.marginRight=typeof d.margin=="number"?`${d.margin}px`:String(d.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),Iu&&(o=Du(document,"touchmove",h=>Km(h),{passive:!1})),nt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function Ru(e){const t=Math.random().toString(36).substring(2,7),s=Wm();s.value.set(t,e??!1);const n=Y({get:()=>s.value.get(t)??!1,set:o=>s.value.set(t,o)});return Fm(()=>{s.value.delete(t)}),n}function Fu(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const s=e.parentNode;return!(s instanceof Element)||s.tagName==="BODY"?!1:Fu(s)}}function Km(e){const t=e||window.event,s=t.target;return s instanceof Element&&Fu(s)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Gm(e){const t=fi({dir:R("ltr")});return Y(()=>{var s;return(e==null?void 0:e.value)||((s=t.dir)==null?void 0:s.value)||"ltr"})}function Nn(e){const t=Tt(),s=t==null?void 0:t.type.emits,n={};return s!=null&&s.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),s==null||s.forEach(o=>{n[Jn(mt(o))]=(...r)=>e(o,...r)}),n}let vi=0;function Ym(){Ye(e=>{if(!hs)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??qu()),document.body.insertAdjacentElement("beforeend",t[1]??qu()),vi++,e(()=>{vi===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(s=>s.remove()),vi--})})}function qu(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Lu(e){return Y(()=>{var t;return ft(e)?!!((t=Wt(e))!=null&&t.closest("form")):!0})}function De(){const e=Tt(),t=R(),s=Y(()=>{var a,l;return["#text","#comment"].includes((a=t.value)==null?void 0:a.$el.nodeName)?(l=t.value)==null?void 0:l.$el.nextElementSibling:Wt(t)}),n=Object.assign({},e.exposed),o={};for(const a in e.props)Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>e.props[a]});if(Object.keys(n).length>0)for(const a in n)Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>n[a]});Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=o;function r(a){if(t.value=a,!!a&&(Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,get:()=>a instanceof Element?a:a.$el}),!(a instanceof Element)&&!Object.hasOwn(a,"$el"))){const l=a.$.exposed,u=Object.assign({},o);for(const c in l)Object.defineProperty(u,c,{enumerable:!0,configurable:!0,get:()=>l[c]});e.exposed=u}}return{forwardRef:r,currentRef:t,currentElement:s}}function Kt(e){const t=Tt(),s=Object.keys((t==null?void 0:t.type.props)??{}).reduce((o,r)=>{const a=(t==null?void 0:t.type.props[r]).default;return a!==void 0&&(o[r]=a),o},{}),n=Ma(e);return Y(()=>{const o={},r=(t==null?void 0:t.vnode.props)??{};return Object.keys(r).forEach(a=>{o[mt(a)]=r[a]}),Object.keys({...s,...o}).reduce((a,l)=>(n.value[l]!==void 0&&(a[l]=n.value[l]),a),{})})}function Gt(e,t){const s=Kt(e),n=t?Nn(t):{};return Y(()=>({...s.value,...n}))}var Xm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},cn=new WeakMap,Lo=new WeakMap,No={},yi=0,Nu=function(e){return e&&(e.host||Nu(e.parentNode))},Zm=function(e,t){return t.map(function(s){if(e.contains(s))return s;var n=Nu(s);return n&&e.contains(n)?n:(console.error("aria-hidden",s,"in not contained inside",e,". Doing nothing"),null)}).filter(function(s){return!!s})},Jm=function(e,t,s,n){var o=Zm(t,Array.isArray(e)?e:[e]);No[s]||(No[s]=new WeakMap);var r=No[s],a=[],l=new Set,u=new Set(o),c=function(f){!f||l.has(f)||(l.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))d(h);else try{var p=h.getAttribute(n),g=p!==null&&p!=="false",v=(cn.get(h)||0)+1,k=(r.get(h)||0)+1;cn.set(h,v),r.set(h,k),a.push(h),v===1&&g&&Lo.set(h,!0),k===1&&h.setAttribute(s,"true"),g||h.setAttribute(n,"true")}catch(O){console.error("aria-hidden: cannot operate on ",h,O)}})};return d(t),l.clear(),yi++,function(){a.forEach(function(f){var h=cn.get(f)-1,p=r.get(f)-1;cn.set(f,h),r.set(f,p),h||(Lo.has(f)||f.removeAttribute(n),Lo.delete(f)),p||f.removeAttribute(s)}),yi--,yi||(cn=new WeakMap,cn=new WeakMap,Lo=new WeakMap,No={})}},Qm=function(e,t,s){s===void 0&&(s="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Xm(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Jm(n,o,s,"aria-hidden")):function(){return null}};function zu(e){let t;Ke(()=>Wt(e),s=>{s?t=Qm(s):t&&t()}),Dr(()=>{t&&t()})}function zo(e,t="reka"){return`${t}-${Or==null?void 0:Or()}`}function eg(e){const t=R(),s=Y(()=>{var o;return((o=t.value)==null?void 0:o.width)??0}),n=Y(()=>{var o;return((o=t.value)==null?void 0:o.height)??0});return Qe(()=>{const o=Wt(e);if(o){t.value={width:o.offsetWidth,height:o.offsetHeight};const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let u,c;if("borderBoxSize"in l){const d=l.borderBoxSize,f=Array.isArray(d)?d[0]:d;u=f.inlineSize,c=f.blockSize}else u=o.offsetWidth,c=o.offsetHeight;t.value={width:u,height:c}});return r.observe(o,{box:"border-box"}),()=>r.unobserve(o)}else t.value=void 0}),{width:s,height:n}}function tg(e,t){const s=R(e);function n(r){return t[s.value][r]??s.value}return{state:s,dispatch:r=>{s.value=n(r)}}}function Vu(e){const t=Rm("",1e3);return{search:t,handleTypeaheadSearch:(o,r)=>{t.value=t.value+o;{const a=St(),l=r.map(h=>{var p,g;return{...h,textValue:((p=h.value)==null?void 0:p.textValue)??((g=h.ref.textContent)==null?void 0:g.trim())??""}}),u=l.find(h=>h.ref===a),c=l.map(h=>h.textValue),d=ng(c,t.value,u==null?void 0:u.textValue),f=l.find(h=>h.textValue===d);return f&&f.ref.focus(),f==null?void 0:f.ref}},resetTypeahead:()=>{t.value=""}}}function sg(e,t){return e.map((s,n)=>e[(t+n)%e.length])}function ng(e,t,s){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,r=s?e.indexOf(s):-1;let a=sg(e,Math.max(r,0));o.length===1&&(a=a.filter(c=>c!==s));const u=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return u!==s?u:void 0}function og(e,t){var k;const s=R({}),n=R("none"),o=R(e),r=e.value?"mounted":"unmounted";let a;const l=((k=t.value)==null?void 0:k.ownerDocument.defaultView)??qo,{state:u,dispatch:c}=tg(r,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=O=>{var b;if(hs){const P=new CustomEvent(O,{bubbles:!1,cancelable:!1});(b=t.value)==null||b.dispatchEvent(P)}};Ke(e,async(O,b)=>{var A;const P=b!==O;if(await nt(),P){const q=n.value,z=Vo(t.value);O?(c("MOUNT"),d("enter"),z==="none"&&d("after-enter")):z==="none"||z==="undefined"||((A=s.value)==null?void 0:A.display)==="none"?(c("UNMOUNT"),d("leave"),d("after-leave")):b&&q!==z?(c("ANIMATION_OUT"),d("leave")):(c("UNMOUNT"),d("after-leave"))}},{immediate:!0});const f=O=>{const b=Vo(t.value),P=b.includes(CSS.escape(O.animationName)),A=u.value==="mounted"?"enter":"leave";if(O.target===t.value&&P&&(d(`after-${A}`),c("ANIMATION_END"),!o.value)){const q=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",a=l==null?void 0:l.setTimeout(()=>{var z;((z=t.value)==null?void 0:z.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=q)})}O.target===t.value&&b==="none"&&c("ANIMATION_END")},h=O=>{O.target===t.value&&(n.value=Vo(t.value))},p=Ke(t,(O,b)=>{O?(s.value=getComputedStyle(O),O.addEventListener("animationstart",h),O.addEventListener("animationcancel",f),O.addEventListener("animationend",f)):(c("ANIMATION_END"),a!==void 0&&(l==null||l.clearTimeout(a)),b==null||b.removeEventListener("animationstart",h),b==null||b.removeEventListener("animationcancel",f),b==null||b.removeEventListener("animationend",f))},{immediate:!0}),g=Ke(u,()=>{const O=Vo(t.value);n.value=u.value==="mounted"?O:"none"});return Dr(()=>{p(),g()}),{isPresent:Y(()=>["mounted","unmountSuspended"].includes(u.value))}}function Vo(e){return e&&getComputedStyle(e).animationName||"none"}var bi=N({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:s}){var c;const{present:n,forceMount:o}=Nt(e),r=R(),{isPresent:a}=og(n,r);s({present:a});let l=t.default({present:a.value});l=di(l||[]);const u=Tt();if(l&&(l==null?void 0:l.length)>1){const d=(c=u==null?void 0:u.parent)!=null&&c.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${d}\` for  \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>`  - ${f}`).join(`
`)].join(`
`))}return()=>o.value||n.value||a.value?us(t.default({present:a.value})[0],{ref:d=>{const f=Wt(d);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-reka-popper-content-wrapper")?r.value=f.firstElementChild:r.value=f),f}}):null}});const _i=N({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:s}){return()=>{var u;if(!s.default)return null;const n=di(s.default()),o=n.findIndex(c=>c.type!==Vt);if(o===-1)return n;const r=n[o];(u=r.props)==null||delete u.ref;const a=r.props?ue(t,r.props):t,l=zs({...r,props:{}},a);return n.length===1?l:(n[o]=l,n)}}}),rg=["area","img","input"],qe=N({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:s}){const n=e.asChild?"template":e.as;return typeof n=="string"&&rg.includes(n)?()=>us(n,t):n!=="template"?()=>us(e.as,t,{default:s.default}):()=>us(_i,t,{default:s.default})}});function wi(){const e=R(),t=Y(()=>{var s,n;return["#text","#comment"].includes((s=e.value)==null?void 0:s.$el.nodeName)?(n=e.value)==null?void 0:n.$el.nextElementSibling:Wt(e)});return{primitiveElement:e,currentElement:t}}const[ms,ig]=Bt("DialogRoot");var ag=N({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const s=e,o=un(s,"open",t,{defaultValue:s.defaultOpen,passive:s.open===void 0}),r=R(),a=R(),{modal:l}=Nt(s);return ig({open:o,modal:l,openModal:()=>{o.value=!0},onOpenChange:u=>{o.value=u},onOpenToggle:()=>{o.value=!o.value},contentId:"",titleId:"",descriptionId:"",triggerElement:r,contentElement:a}),(u,c)=>W(u.$slots,"default",{open:i(o),close:()=>o.value=!1})}}),ju=ag,lg=N({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;De();const s=ms();return(n,o)=>(m(),M(i(qe),ue(t,{type:n.as==="button"?"button":void 0,onClick:o[0]||(o[0]=r=>i(s).onOpenChange(!1))}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["type"]))}}),xi=lg;const ug="dismissableLayer.pointerDownOutside",cg="dismissableLayer.focusOutside";function Uu(e,t){const s=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(s&&(n===s||o.indexOf(n)<o.indexOf(s)))}function dg(e,t,s=!0){var a;const n=((a=t==null?void 0:t.value)==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=R(!1),r=R(()=>{});return Ye(l=>{if(!hs||!ft(s))return;const u=async d=>{const f=d.target;if(!(!(t!=null&&t.value)||!f)){if(Uu(t.value,f)){o.value=!1;return}if(d.target&&!o.value){let p=function(){ui(ug,e,h)};const h={originalEvent:d};d.pointerType==="touch"?(n.removeEventListener("click",r.value),r.value=p,n.addEventListener("click",r.value,{once:!0})):p()}else n.removeEventListener("click",r.value);o.value=!1}},c=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);l(()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",u),n.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>{ft(s)&&(o.value=!0)}}}function fg(e,t,s=!0){var r;const n=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),o=R(!1);return Ye(a=>{if(!hs||!ft(s))return;const l=async u=>{if(!(t!=null&&t.value))return;await nt(),await nt();const c=u.target;!t.value||!c||Uu(t.value,c)||u.target&&!o.value&&ui(cg,e,{originalEvent:u})};n.addEventListener("focusin",l),a(()=>n.removeEventListener("focusin",l))}),{onFocusCapture:()=>{ft(s)&&(o.value=!0)},onBlurCapture:()=>{ft(s)&&(o.value=!1)}}}const Et=Bs({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var pg=N({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const s=e,n=t,{forwardRef:o,currentElement:r}=De(),a=Y(()=>{var p;return((p=r.value)==null?void 0:p.ownerDocument)??globalThis.document}),l=Y(()=>Et.layersRoot),u=Y(()=>r.value?Array.from(l.value).indexOf(r.value):-1),c=Y(()=>Et.layersWithOutsidePointerEventsDisabled.size>0),d=Y(()=>{const p=Array.from(l.value),[g]=[...Et.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(g);return u.value>=v}),f=dg(async p=>{const g=[...Et.branches].some(v=>v==null?void 0:v.contains(p.target));!d.value||g||(n("pointerDownOutside",p),n("interactOutside",p),await nt(),p.defaultPrevented||n("dismiss"))},r),h=fg(p=>{[...Et.branches].some(v=>v==null?void 0:v.contains(p.target))||(n("focusOutside",p),n("interactOutside",p),p.defaultPrevented||n("dismiss"))},r);return zm("Escape",p=>{u.value===l.value.size-1&&(n("escapeKeyDown",p),p.defaultPrevented||n("dismiss"))}),Ye(p=>{r.value&&(s.disableOutsidePointerEvents&&(Et.layersWithOutsidePointerEventsDisabled.size===0&&(Et.originalBodyPointerEvents=a.value.body.style.pointerEvents,a.value.body.style.pointerEvents="none"),Et.layersWithOutsidePointerEventsDisabled.add(r.value)),l.value.add(r.value),p(()=>{s.disableOutsidePointerEvents&&Et.layersWithOutsidePointerEventsDisabled.size===1&&!ci(Et.originalBodyPointerEvents)&&(a.value.body.style.pointerEvents=Et.originalBodyPointerEvents)}))}),Ye(p=>{p(()=>{r.value&&(l.value.delete(r.value),Et.layersWithOutsidePointerEventsDisabled.delete(r.value))})}),(p,g)=>(m(),M(i(qe),{ref:i(o),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:Mt({pointerEvents:c.value?d.value?"auto":"none":void 0}),onFocusCapture:i(h).onFocusCapture,onBlurCapture:i(h).onBlurCapture,onPointerdownCapture:i(f).onPointerDownCapture},{default:x(()=>[W(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Hu=pg;const hg=Am(()=>R([]));function mg(){const e=hg();return{add(t){const s=e.value[0];t!==s&&(s==null||s.pause()),e.value=Wu(e.value,t),e.value.unshift(t)},remove(t){var s;e.value=Wu(e.value,t),(s=e.value[0])==null||s.resume()}}}function Wu(e,t){const s=[...e],n=s.indexOf(t);return n!==-1&&s.splice(n,1),s}const ki="focusScope.autoFocusOnMount",Ci="focusScope.autoFocusOnUnmount",Ku={bubbles:!1,cancelable:!0};function gg(e,{select:t=!1}={}){const s=St();for(const n of e)if(Ss(n,{select:t}),St()!==s)return!0}function vg(e){const t=Gu(e),s=Yu(t,e),n=Yu(t.reverse(),e);return[s,n]}function Gu(e){const t=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)t.push(s.currentNode);return t}function Yu(e,t){for(const s of e)if(!yg(s,{upTo:t}))return s}function yg(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function bg(e){return e instanceof HTMLInputElement&&"select"in e}function Ss(e,{select:t=!1}={}){if(e&&e.focus){const s=St();e.focus({preventScroll:!0}),e!==s&&bg(e)&&t&&e.select()}}var _g=N({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const s=e,n=t,{currentRef:o,currentElement:r}=De(),a=R(null),l=mg(),u=Bs({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Ye(d=>{if(!hs)return;const f=r.value;if(!s.trapped)return;function h(k){if(u.paused||!f)return;const O=k.target;f.contains(O)?a.value=O:Ss(a.value,{select:!0})}function p(k){if(u.paused||!f)return;const O=k.relatedTarget;O!==null&&(f.contains(O)||Ss(a.value,{select:!0}))}function g(k){f.contains(a.value)||Ss(f)}document.addEventListener("focusin",h),document.addEventListener("focusout",p);const v=new MutationObserver(g);f&&v.observe(f,{childList:!0,subtree:!0}),d(()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",p),v.disconnect()})}),Ye(async d=>{const f=r.value;if(await nt(),!f)return;l.add(u);const h=St();if(!f.contains(h)){const g=new CustomEvent(ki,Ku);f.addEventListener(ki,v=>n("mountAutoFocus",v)),f.dispatchEvent(g),g.defaultPrevented||(gg(Gu(f),{select:!0}),St()===h&&Ss(f))}d(()=>{f.removeEventListener(ki,k=>n("mountAutoFocus",k));const g=new CustomEvent(Ci,Ku),v=k=>{n("unmountAutoFocus",k)};f.addEventListener(Ci,v),f.dispatchEvent(g),setTimeout(()=>{g.defaultPrevented||Ss(h??document.body,{select:!0}),f.removeEventListener(Ci,v),l.remove(u)},0)})});function c(d){if(!s.loop&&!s.trapped||u.paused)return;const f=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,h=St();if(f&&h){const p=d.currentTarget,[g,v]=vg(p);g&&v?!d.shiftKey&&h===v?(d.preventDefault(),s.loop&&Ss(g,{select:!0})):d.shiftKey&&h===g&&(d.preventDefault(),s.loop&&Ss(v,{select:!0})):h===p&&d.preventDefault()}}return(d,f)=>(m(),M(i(qe),{ref_key:"currentRef",ref:o,tabindex:"-1","as-child":d.asChild,as:d.as,onKeydown:c},{default:x(()=>[W(d.$slots,"default")]),_:3},8,["as-child","as"]))}}),Xu=_g;function wg(e){return e?"open":"closed"}function Zu(e){const t=St();for(const s of e)if(s===t||(s.focus(),St()!==t))return}var xg=N({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const s=e,n=t,o=ms(),{forwardRef:r,currentElement:a}=De();return o.titleId||(o.titleId=zo(void 0,"reka-dialog-title")),o.descriptionId||(o.descriptionId=zo(void 0,"reka-dialog-description")),Qe(()=>{o.contentElement=a,St()!==document.body&&(o.triggerElement.value=St())}),(l,u)=>(m(),M(i(Xu),{"as-child":"",loop:"",trapped:s.trapFocus,onMountAutoFocus:u[5]||(u[5]=c=>n("openAutoFocus",c)),onUnmountAutoFocus:u[6]||(u[6]=c=>n("closeAutoFocus",c))},{default:x(()=>[C(i(Hu),ue({id:i(o).contentId,ref:i(r),as:l.as,"as-child":l.asChild,"disable-outside-pointer-events":l.disableOutsidePointerEvents,role:"dialog","aria-describedby":i(o).descriptionId,"aria-labelledby":i(o).titleId,"data-state":i(wg)(i(o).open.value)},l.$attrs,{onDismiss:u[0]||(u[0]=c=>i(o).onOpenChange(!1)),onEscapeKeyDown:u[1]||(u[1]=c=>n("escapeKeyDown",c)),onFocusOutside:u[2]||(u[2]=c=>n("focusOutside",c)),onInteractOutside:u[3]||(u[3]=c=>n("interactOutside",c)),onPointerDownOutside:u[4]||(u[4]=c=>n("pointerDownOutside",c))}),{default:x(()=>[W(l.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Ju=xg,kg=N({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const s=e,n=t,o=ms(),r=Nn(n),{forwardRef:a,currentElement:l}=De();return zu(l),(u,c)=>(m(),M(Ju,ue({...s,...i(r)},{ref:i(a),"trap-focus":i(o).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:c[0]||(c[0]=d=>{var f;d.defaultPrevented||(d.preventDefault(),(f=i(o).triggerElement.value)==null||f.focus())}),onPointerDownOutside:c[1]||(c[1]=d=>{const f=d.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&d.preventDefault()}),onFocusOutside:c[2]||(c[2]=d=>{d.preventDefault()})}),{default:x(()=>[W(u.$slots,"default")]),_:3},16,["trap-focus"]))}}),Cg=kg,Sg=N({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const s=e,o=Nn(t);De();const r=ms(),a=R(!1),l=R(!1);return(u,c)=>(m(),M(Ju,ue({...s,...i(o)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=d=>{var f;d.defaultPrevented||(a.value||(f=i(r).triggerElement.value)==null||f.focus(),d.preventDefault()),a.value=!1,l.value=!1}),onInteractOutside:c[1]||(c[1]=d=>{var p;d.defaultPrevented||(a.value=!0,d.detail.originalEvent.type==="pointerdown"&&(l.value=!0));const f=d.target;((p=i(r).triggerElement.value)==null?void 0:p.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&l.value&&d.preventDefault()})}),{default:x(()=>[W(u.$slots,"default")]),_:3},16))}}),$g=Sg,Ag=N({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const s=e,n=t,o=ms(),r=Nn(n),{forwardRef:a}=De();return(l,u)=>(m(),M(i(bi),{present:l.forceMount||i(o).open.value},{default:x(()=>[i(o).modal.value?(m(),M(Cg,ue({key:0,ref:i(a)},{...s,...i(r),...l.$attrs}),{default:x(()=>[W(l.$slots,"default")]),_:3},16)):(m(),M($g,ue({key:1,ref:i(a)},{...s,...i(r),...l.$attrs}),{default:x(()=>[W(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Qu=Ag,Pg=N({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;De();const s=ms();return(n,o)=>(m(),M(i(qe),ue(t,{id:i(s).descriptionId}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["id"]))}}),Tg=Pg,Eg=N({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ms();return Ru(!0),De(),(s,n)=>(m(),M(i(qe),{as:s.as,"as-child":s.asChild,"data-state":i(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:x(()=>[W(s.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),Og=Eg,Mg=N({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=ms(),{forwardRef:s}=De();return(n,o)=>{var r;return(r=i(t))!=null&&r.modal.value?(m(),M(i(bi),{key:0,present:n.forceMount||i(t).open.value},{default:x(()=>[C(Og,ue(n.$attrs,{ref:i(s),as:n.as,"as-child":n.asChild}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):ne("v-if",!0)}}}),ec=Mg,Ig=N({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=Bu();return(s,n)=>i(t)||s.forceMount?(m(),M(Ga,{key:0,to:s.to,disabled:s.disabled,defer:s.defer},[W(s.$slots,"default")],8,["to","disabled","defer"])):ne("v-if",!0)}}),Si=Ig,Dg=N({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(s,n)=>(m(),M(i(Si),st(it(t)),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),Bg=Dg,Rg=N({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,s=ms();return De(),(n,o)=>(m(),M(i(qe),ue(t,{id:i(s).titleId}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["id"]))}}),tc=Rg,Fg=N({__name:"AlertDialogAction",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;return De(),(s,n)=>(m(),M(i(xi),st(it(t)),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),qg=Fg;const[Lg,Ng]=Bt("AlertDialogContent");var zg=N({__name:"AlertDialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const s=e,o=Nn(t);De();const r=R();return Ng({onCancelElementChange:a=>{r.value=a}}),(a,l)=>(m(),M(i(Qu),ue({...s,...i(o)},{role:"alertdialog",onPointerDownOutside:l[0]||(l[0]=wt(()=>{},["prevent"])),onInteractOutside:l[1]||(l[1]=wt(()=>{},["prevent"])),onOpenAutoFocus:l[2]||(l[2]=()=>{nt(()=>{var u;(u=r.value)==null||u.focus({preventScroll:!0})})})}),{default:x(()=>[W(a.$slots,"default")]),_:3},16))}}),Vg=zg,jg=N({__name:"AlertDialogCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,s=Lg(),{forwardRef:n,currentElement:o}=De();return Qe(()=>{s.onCancelElementChange(o.value)}),(r,a)=>(m(),M(i(xi),ue(t,{ref:i(n)}),{default:x(()=>[W(r.$slots,"default")]),_:3},16))}}),Ug=jg,Hg=N({__name:"AlertDialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;return De(),(s,n)=>(m(),M(i(Tg),st(it(t)),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),Wg=Hg,Kg=N({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return De(),(s,n)=>(m(),M(i(ec),st(it(t)),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),Gg=Kg,Yg=N({__name:"AlertDialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(s,n)=>(m(),M(i(Si),st(it(t)),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),Xg=Yg,Zg=N({__name:"AlertDialogRoot",props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const o=Gt(e,t);return De(),(r,a)=>(m(),M(i(ju),ue(i(o),{modal:!0}),{default:x(l=>[W(r.$slots,"default",st(it(l)))]),_:3},16))}}),Jg=Zg,Qg=N({__name:"AlertDialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e;return De(),(s,n)=>(m(),M(i(tc),st(it(t)),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),ev=Qg;const sc="data-reka-collection-item";function dn(e={}){const{key:t="",isProvider:s=!1}=e,n=`${t}CollectionProvider`;let o;s?(o={collectionRef:R(),itemMap:R(new Map)},Ar(n,o)):o=Pn(n);const r=(d=!1)=>{const f=o.collectionRef.value;if(!f)return[];const h=Array.from(f.querySelectorAll(`[${sc}]`)),g=Array.from(o.itemMap.value.values()).sort((v,k)=>h.indexOf(v.ref)-h.indexOf(k.ref));return d?g:g.filter(v=>v.ref.dataset.disabled!=="")},a=N({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:h}){const{primitiveElement:p,currentElement:g}=wi();return Ke(g,()=>{o.collectionRef.value=g.value}),()=>us(_i,{ref:p,...h},f)}}),l=N({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(d,{slots:f,attrs:h}){const{primitiveElement:p,currentElement:g}=wi();return Ye(v=>{if(g.value){const k=po(g.value);o.itemMap.value.set(k,{ref:g.value,value:d.value}),v(()=>o.itemMap.value.delete(k))}}),()=>us(_i,{...h,[sc]:"",ref:p},f)}}),u=Y(()=>Array.from(o.itemMap.value.values())),c=Y(()=>o.itemMap.value.size);return{getItems:r,reactiveItems:u,itemMapSize:c,CollectionSlot:a,CollectionItem:l}}var tv=N({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,s)=>(m(),M(i(qe),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:x(()=>[W(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),nc=tv,sv=N({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:s,currentElement:n}=wi(),o=Y(()=>t.checked??t.value);return Ke(o,(r,a)=>{if(!n.value)return;const l=n.value,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"value").set;if(d&&r!==a){const f=new Event("input",{bubbles:!0}),h=new Event("change",{bubbles:!0});d.call(l,r),l.dispatchEvent(f),l.dispatchEvent(h)}}),(r,a)=>(m(),M(nc,ue({ref_key:"primitiveElement",ref:s},{...t,...r.$attrs},{as:"input"}),null,16))}}),oc=sv,nv=N({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,s=Y(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=Y(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((o,r)=>typeof o=="object"?Object.entries(o).map(([a,l])=>({name:`${t.name}[${r}][${a}]`,value:l})):{name:`${t.name}[${r}]`,value:o}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([o,r])=>({name:`${t.name}[${o}]`,value:r})):[]);return(o,r)=>(m(),F(be,null,[ne(" We render single input if it's required "),s.value?(m(),M(oc,ue({key:o.name},{...t,...o.$attrs},{name:o.name,value:o.value}),null,16,["name","value"])):(m(!0),F(be,{key:1},Ue(n.value,a=>(m(),M(oc,ue({key:a.name},{ref_for:!0},{...t,...o.$attrs},{name:a.name,value:a.value}),null,16,["name","value"]))),128))],2112))}}),ov=nv;const[rc,rv]=Bt("PopperRoot");var iv=N({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=R();return rv({anchor:t,onAnchorChange:s=>t.value=s}),(s,n)=>W(s.$slots,"default")}}),av=iv,lv=N({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:s,currentElement:n}=De(),o=rc();return Va(()=>{o.onAnchorChange(t.reference??n.value)}),(r,a)=>(m(),M(i(qe),{ref:i(s),as:r.as,"as-child":r.asChild},{default:x(()=>[W(r.$slots,"default")]),_:3},8,["as","as-child"]))}}),uv=lv;function cv(e){return e!==null}function dv(e){return{name:"transformOrigin",options:e,fn(t){var k,O,b;const{placement:s,rects:n,middlewareData:o}=t,a=((k=o.arrow)==null?void 0:k.centerOffset)!==0,l=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[c,d]=$i(s),f={start:"0%",center:"50%",end:"100%"}[d],h=(((O=o.arrow)==null?void 0:O.x)??0)+l/2,p=(((b=o.arrow)==null?void 0:b.y)??0)+u/2;let g="",v="";return c==="bottom"?(g=a?f:`${h}px`,v=`${-u}px`):c==="top"?(g=a?f:`${h}px`,v=`${n.floating.height+u}px`):c==="right"?(g=`${-u}px`,v=a?f:`${p}px`):c==="left"&&(g=`${n.floating.width+u}px`,v=a?f:`${p}px`),{data:{x:g,y:v}}}}}function $i(e){const[t,s="center"]=e.split("-");return[t,s]}const fv=["top","right","bottom","left"],$s=Math.min,$t=Math.max,jo=Math.round,Uo=Math.floor,Yt=e=>({x:e,y:e}),pv={left:"right",right:"left",bottom:"top",top:"bottom"},hv={start:"end",end:"start"};function Ai(e,t,s){return $t(e,$s(t,s))}function gs(e,t){return typeof e=="function"?e(t):e}function vs(e){return e.split("-")[0]}function fn(e){return e.split("-")[1]}function Pi(e){return e==="x"?"y":"x"}function Ti(e){return e==="y"?"height":"width"}const mv=new Set(["top","bottom"]);function Xt(e){return mv.has(vs(e))?"y":"x"}function Ei(e){return Pi(Xt(e))}function gv(e,t,s){s===void 0&&(s=!1);const n=fn(e),o=Ei(e),r=Ti(o);let a=o==="x"?n===(s?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(a=Ho(a)),[a,Ho(a)]}function vv(e){const t=Ho(e);return[Oi(e),t,Oi(t)]}function Oi(e){return e.replace(/start|end/g,t=>hv[t])}const ic=["left","right"],ac=["right","left"],yv=["top","bottom"],bv=["bottom","top"];function _v(e,t,s){switch(e){case"top":case"bottom":return s?t?ac:ic:t?ic:ac;case"left":case"right":return t?yv:bv;default:return[]}}function wv(e,t,s,n){const o=fn(e);let r=_v(vs(e),s==="start",n);return o&&(r=r.map(a=>a+"-"+o),t&&(r=r.concat(r.map(Oi)))),r}function Ho(e){return e.replace(/left|right|bottom|top/g,t=>pv[t])}function xv(e){return{top:0,right:0,bottom:0,left:0,...e}}function lc(e){return typeof e!="number"?xv(e):{top:e,right:e,bottom:e,left:e}}function Wo(e){const{x:t,y:s,width:n,height:o}=e;return{width:n,height:o,top:s,left:t,right:t+n,bottom:s+o,x:t,y:s}}function uc(e,t,s){let{reference:n,floating:o}=e;const r=Xt(t),a=Ei(t),l=Ti(a),u=vs(t),c=r==="y",d=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,h=n[l]/2-o[l]/2;let p;switch(u){case"top":p={x:d,y:n.y-o.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(fn(t)){case"start":p[a]-=h*(s&&c?-1:1);break;case"end":p[a]+=h*(s&&c?-1:1);break}return p}async function kv(e,t){var s;t===void 0&&(t={});const{x:n,y:o,platform:r,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=gs(t,e),g=lc(p),k=l[h?f==="floating"?"reference":"floating":f],O=Wo(await r.getClippingRect({element:(s=await(r.isElement==null?void 0:r.isElement(k)))==null||s?k:k.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,P=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),A=await(r.isElement==null?void 0:r.isElement(P))?await(r.getScale==null?void 0:r.getScale(P))||{x:1,y:1}:{x:1,y:1},q=Wo(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:P,strategy:u}):b);return{top:(O.top-q.top+g.top)/A.y,bottom:(q.bottom-O.bottom+g.bottom)/A.y,left:(O.left-q.left+g.left)/A.x,right:(q.right-O.right+g.right)/A.x}}const Cv=async(e,t,s)=>{const{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:a}=s,l=r.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=uc(c,n,u),h=n,p={},g=0;for(let k=0;k<l.length;k++){var v;const{name:O,fn:b}=l[k],{x:P,y:A,data:q,reset:z}=await b({x:d,y:f,initialPlacement:n,placement:h,strategy:o,middlewareData:p,rects:c,platform:{...a,detectOverflow:(v=a.detectOverflow)!=null?v:kv},elements:{reference:e,floating:t}});d=P??d,f=A??f,p={...p,[O]:{...p[O],...q}},z&&g<=50&&(g++,typeof z=="object"&&(z.placement&&(h=z.placement),z.rects&&(c=z.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):z.rects),{x:d,y:f}=uc(c,h,u)),k=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:p}},Sv=e=>({name:"arrow",options:e,async fn(t){const{x:s,y:n,placement:o,rects:r,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=gs(e,t)||{};if(c==null)return{};const f=lc(d),h={x:s,y:n},p=Ei(o),g=Ti(p),v=await a.getDimensions(c),k=p==="y",O=k?"top":"left",b=k?"bottom":"right",P=k?"clientHeight":"clientWidth",A=r.reference[g]+r.reference[p]-h[p]-r.floating[g],q=h[p]-r.reference[p],z=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let H=z?z[P]:0;(!H||!await(a.isElement==null?void 0:a.isElement(z)))&&(H=l.floating[P]||r.floating[g]);const L=A/2-q/2,K=H/2-v[g]/2-1,B=$s(f[O],K),te=$s(f[b],K),Z=B,he=H-v[g]-te,ge=H/2-v[g]/2+L,Pe=Ai(Z,ge,he),we=!u.arrow&&fn(o)!=null&&ge!==Pe&&r.reference[g]/2-(ge<Z?B:te)-v[g]/2<0,ke=we?ge<Z?ge-Z:ge-he:0;return{[p]:h[p]+ke,data:{[p]:Pe,centerOffset:ge-Pe-ke,...we&&{alignmentOffset:ke}},reset:we}}}),$v=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var s,n;const{placement:o,middlewareData:r,rects:a,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...k}=gs(e,t);if((s=r.arrow)!=null&&s.alignmentOffset)return{};const O=vs(o),b=Xt(l),P=vs(l)===l,A=await(u.isRTL==null?void 0:u.isRTL(c.floating)),q=h||(P||!v?[Ho(l)]:vv(l)),z=g!=="none";!h&&z&&q.push(...wv(l,v,g,A));const H=[l,...q],L=await u.detectOverflow(t,k),K=[];let B=((n=r.flip)==null?void 0:n.overflows)||[];if(d&&K.push(L[O]),f){const ge=gv(o,a,A);K.push(L[ge[0]],L[ge[1]])}if(B=[...B,{placement:o,overflows:K}],!K.every(ge=>ge<=0)){var te,Z;const ge=(((te=r.flip)==null?void 0:te.index)||0)+1,Pe=H[ge];if(Pe&&(!(f==="alignment"?b!==Xt(Pe):!1)||B.every(se=>Xt(se.placement)===b?se.overflows[0]>0:!0)))return{data:{index:ge,overflows:B},reset:{placement:Pe}};let we=(Z=B.filter(ke=>ke.overflows[0]<=0).sort((ke,se)=>ke.overflows[1]-se.overflows[1])[0])==null?void 0:Z.placement;if(!we)switch(p){case"bestFit":{var he;const ke=(he=B.filter(se=>{if(z){const Oe=Xt(se.placement);return Oe===b||Oe==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(Oe=>Oe>0).reduce((Oe,I)=>Oe+I,0)]).sort((se,Oe)=>se[1]-Oe[1])[0])==null?void 0:he[0];ke&&(we=ke);break}case"initialPlacement":we=l;break}if(o!==we)return{reset:{placement:we}}}return{}}}};function cc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dc(e){return fv.some(t=>e[t]>=0)}const Av=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:s,platform:n}=t,{strategy:o="referenceHidden",...r}=gs(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...r,elementContext:"reference"}),l=cc(a,s.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:dc(l)}}}case"escaped":{const a=await n.detectOverflow(t,{...r,altBoundary:!0}),l=cc(a,s.floating);return{data:{escapedOffsets:l,escaped:dc(l)}}}default:return{}}}}},fc=new Set(["left","top"]);async function Pv(e,t){const{placement:s,platform:n,elements:o}=e,r=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=vs(s),l=fn(s),u=Xt(s)==="y",c=fc.has(a)?-1:1,d=r&&u?-1:1,f=gs(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof g=="number"&&(p=l==="end"?g*-1:g),u?{x:p*d,y:h*c}:{x:h*c,y:p*d}}const Tv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var s,n;const{x:o,y:r,placement:a,middlewareData:l}=t,u=await Pv(t,e);return a===((s=l.offset)==null?void 0:s.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:r+u.y,data:{...u,placement:a}}}}},Ev=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:s,y:n,placement:o,platform:r}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:O=>{let{x:b,y:P}=O;return{x:b,y:P}}},...c}=gs(e,t),d={x:s,y:n},f=await r.detectOverflow(t,c),h=Xt(vs(o)),p=Pi(h);let g=d[p],v=d[h];if(a){const O=p==="y"?"top":"left",b=p==="y"?"bottom":"right",P=g+f[O],A=g-f[b];g=Ai(P,g,A)}if(l){const O=h==="y"?"top":"left",b=h==="y"?"bottom":"right",P=v+f[O],A=v-f[b];v=Ai(P,v,A)}const k=u.fn({...t,[p]:g,[h]:v});return{...k,data:{x:k.x-s,y:k.y-n,enabled:{[p]:a,[h]:l}}}}}},Ov=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:s,y:n,placement:o,rects:r,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=gs(e,t),d={x:s,y:n},f=Xt(o),h=Pi(f);let p=d[h],g=d[f];const v=gs(l,t),k=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const P=h==="y"?"height":"width",A=r.reference[h]-r.floating[P]+k.mainAxis,q=r.reference[h]+r.reference[P]-k.mainAxis;p<A?p=A:p>q&&(p=q)}if(c){var O,b;const P=h==="y"?"width":"height",A=fc.has(vs(o)),q=r.reference[f]-r.floating[P]+(A&&((O=a.offset)==null?void 0:O[f])||0)+(A?0:k.crossAxis),z=r.reference[f]+r.reference[P]+(A?0:((b=a.offset)==null?void 0:b[f])||0)-(A?k.crossAxis:0);g<q?g=q:g>z&&(g=z)}return{[h]:p,[f]:g}}}},Mv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var s,n;const{placement:o,rects:r,platform:a,elements:l}=t,{apply:u=()=>{},...c}=gs(e,t),d=await a.detectOverflow(t,c),f=vs(o),h=fn(o),p=Xt(o)==="y",{width:g,height:v}=r.floating;let k,O;f==="top"||f==="bottom"?(k=f,O=h===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(O=f,k=h==="end"?"top":"bottom");const b=v-d.top-d.bottom,P=g-d.left-d.right,A=$s(v-d[k],b),q=$s(g-d[O],P),z=!t.middlewareData.shift;let H=A,L=q;if((s=t.middlewareData.shift)!=null&&s.enabled.x&&(L=P),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(H=b),z&&!h){const B=$t(d.left,0),te=$t(d.right,0),Z=$t(d.top,0),he=$t(d.bottom,0);p?L=g-2*(B!==0||te!==0?B+te:$t(d.left,d.right)):H=v-2*(Z!==0||he!==0?Z+he:$t(d.top,d.bottom))}await u({...t,availableWidth:L,availableHeight:H});const K=await a.getDimensions(l.floating);return g!==K.width||v!==K.height?{reset:{rects:!0}}:{}}}};function Ko(){return typeof window<"u"}function js(e){return Mi(e)?(e.nodeName||"").toLowerCase():"#document"}function At(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zt(e){var t;return(t=(Mi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mi(e){return Ko()?e instanceof Node||e instanceof At(e).Node:!1}function Rt(e){return Ko()?e instanceof Element||e instanceof At(e).Element:!1}function Jt(e){return Ko()?e instanceof HTMLElement||e instanceof At(e).HTMLElement:!1}function pc(e){return!Ko()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof At(e).ShadowRoot}const Iv=new Set(["inline","contents"]);function zn(e){const{overflow:t,overflowX:s,overflowY:n,display:o}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+s)&&!Iv.has(o)}const Dv=new Set(["table","td","th"]);function Bv(e){return Dv.has(js(e))}const Rv=[":popover-open",":modal"];function Go(e){return Rv.some(t=>{try{return e.matches(t)}catch{return!1}})}const Fv=["transform","translate","scale","rotate","perspective"],qv=["transform","translate","scale","rotate","perspective","filter"],Lv=["paint","layout","strict","content"];function Ii(e){const t=Di(),s=Rt(e)?Ft(e):e;return Fv.some(n=>s[n]?s[n]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!t&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!t&&(s.filter?s.filter!=="none":!1)||qv.some(n=>(s.willChange||"").includes(n))||Lv.some(n=>(s.contain||"").includes(n))}function Nv(e){let t=As(e);for(;Jt(t)&&!pn(t);){if(Ii(t))return t;if(Go(t))return null;t=As(t)}return null}function Di(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zv=new Set(["html","body","#document"]);function pn(e){return zv.has(js(e))}function Ft(e){return At(e).getComputedStyle(e)}function Yo(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function As(e){if(js(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pc(e)&&e.host||Zt(e);return pc(t)?t.host:t}function hc(e){const t=As(e);return pn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&zn(t)?t:hc(t)}function Vn(e,t,s){var n;t===void 0&&(t=[]),s===void 0&&(s=!0);const o=hc(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),a=At(o);if(r){const l=Bi(a);return t.concat(a,a.visualViewport||[],zn(o)?o:[],l&&s?Vn(l):[])}return t.concat(o,Vn(o,[],s))}function Bi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mc(e){const t=Ft(e);let s=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Jt(e),r=o?e.offsetWidth:s,a=o?e.offsetHeight:n,l=jo(s)!==r||jo(n)!==a;return l&&(s=r,n=a),{width:s,height:n,$:l}}function Ri(e){return Rt(e)?e:e.contextElement}function hn(e){const t=Ri(e);if(!Jt(t))return Yt(1);const s=t.getBoundingClientRect(),{width:n,height:o,$:r}=mc(t);let a=(r?jo(s.width):s.width)/n,l=(r?jo(s.height):s.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Vv=Yt(0);function gc(e){const t=At(e);return!Di()||!t.visualViewport?Vv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jv(e,t,s){return t===void 0&&(t=!1),!s||t&&s!==At(e)?!1:t}function Us(e,t,s,n){t===void 0&&(t=!1),s===void 0&&(s=!1);const o=e.getBoundingClientRect(),r=Ri(e);let a=Yt(1);t&&(n?Rt(n)&&(a=hn(n)):a=hn(e));const l=jv(r,s,n)?gc(r):Yt(0);let u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(r){const h=At(r),p=n&&Rt(n)?At(n):n;let g=h,v=Bi(g);for(;v&&n&&p!==g;){const k=hn(v),O=v.getBoundingClientRect(),b=Ft(v),P=O.left+(v.clientLeft+parseFloat(b.paddingLeft))*k.x,A=O.top+(v.clientTop+parseFloat(b.paddingTop))*k.y;u*=k.x,c*=k.y,d*=k.x,f*=k.y,u+=P,c+=A,g=At(v),v=Bi(g)}}return Wo({width:d,height:f,x:u,y:c})}function Xo(e,t){const s=Yo(e).scrollLeft;return t?t.left+s:Us(Zt(e)).left+s}function vc(e,t){const s=e.getBoundingClientRect(),n=s.left+t.scrollLeft-Xo(e,s),o=s.top+t.scrollTop;return{x:n,y:o}}function Uv(e){let{elements:t,rect:s,offsetParent:n,strategy:o}=e;const r=o==="fixed",a=Zt(n),l=t?Go(t.floating):!1;if(n===a||l&&r)return s;let u={scrollLeft:0,scrollTop:0},c=Yt(1);const d=Yt(0),f=Jt(n);if((f||!f&&!r)&&((js(n)!=="body"||zn(a))&&(u=Yo(n)),Jt(n))){const p=Us(n);c=hn(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const h=a&&!f&&!r?vc(a,u):Yt(0);return{width:s.width*c.x,height:s.height*c.y,x:s.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:s.y*c.y-u.scrollTop*c.y+d.y+h.y}}function Hv(e){return Array.from(e.getClientRects())}function Wv(e){const t=Zt(e),s=Yo(e),n=e.ownerDocument.body,o=$t(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),r=$t(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-s.scrollLeft+Xo(e);const l=-s.scrollTop;return Ft(n).direction==="rtl"&&(a+=$t(t.clientWidth,n.clientWidth)-o),{width:o,height:r,x:a,y:l}}const yc=25;function Kv(e,t){const s=At(e),n=Zt(e),o=s.visualViewport;let r=n.clientWidth,a=n.clientHeight,l=0,u=0;if(o){r=o.width,a=o.height;const d=Di();(!d||d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const c=Xo(n);if(c<=0){const d=n.ownerDocument,f=d.body,h=getComputedStyle(f),p=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(n.clientWidth-f.clientWidth-p);g<=yc&&(r-=g)}else c<=yc&&(r+=c);return{width:r,height:a,x:l,y:u}}const Gv=new Set(["absolute","fixed"]);function Yv(e,t){const s=Us(e,!0,t==="fixed"),n=s.top+e.clientTop,o=s.left+e.clientLeft,r=Jt(e)?hn(e):Yt(1),a=e.clientWidth*r.x,l=e.clientHeight*r.y,u=o*r.x,c=n*r.y;return{width:a,height:l,x:u,y:c}}function bc(e,t,s){let n;if(t==="viewport")n=Kv(e,s);else if(t==="document")n=Wv(Zt(e));else if(Rt(t))n=Yv(t,s);else{const o=gc(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Wo(n)}function _c(e,t){const s=As(e);return s===t||!Rt(s)||pn(s)?!1:Ft(s).position==="fixed"||_c(s,t)}function Xv(e,t){const s=t.get(e);if(s)return s;let n=Vn(e,[],!1).filter(l=>Rt(l)&&js(l)!=="body"),o=null;const r=Ft(e).position==="fixed";let a=r?As(e):e;for(;Rt(a)&&!pn(a);){const l=Ft(a),u=Ii(a);!u&&l.position==="fixed"&&(o=null),(r?!u&&!o:!u&&l.position==="static"&&!!o&&Gv.has(o.position)||zn(a)&&!u&&_c(e,a))?n=n.filter(d=>d!==a):o=l,a=As(a)}return t.set(e,n),n}function Zv(e){let{element:t,boundary:s,rootBoundary:n,strategy:o}=e;const a=[...s==="clippingAncestors"?Go(t)?[]:Xv(t,this._c):[].concat(s),n],l=a[0],u=a.reduce((c,d)=>{const f=bc(t,d,o);return c.top=$t(f.top,c.top),c.right=$s(f.right,c.right),c.bottom=$s(f.bottom,c.bottom),c.left=$t(f.left,c.left),c},bc(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Jv(e){const{width:t,height:s}=mc(e);return{width:t,height:s}}function Qv(e,t,s){const n=Jt(t),o=Zt(t),r=s==="fixed",a=Us(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const u=Yt(0);function c(){u.x=Xo(o)}if(n||!n&&!r)if((js(t)!=="body"||zn(o))&&(l=Yo(t)),n){const p=Us(t,!0,r,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&c();r&&!n&&o&&c();const d=o&&!n&&!r?vc(o,l):Yt(0),f=a.left+l.scrollLeft-u.x-d.x,h=a.top+l.scrollTop-u.y-d.y;return{x:f,y:h,width:a.width,height:a.height}}function Fi(e){return Ft(e).position==="static"}function wc(e,t){if(!Jt(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let s=e.offsetParent;return Zt(e)===s&&(s=s.ownerDocument.body),s}function xc(e,t){const s=At(e);if(Go(e))return s;if(!Jt(e)){let o=As(e);for(;o&&!pn(o);){if(Rt(o)&&!Fi(o))return o;o=As(o)}return s}let n=wc(e,t);for(;n&&Bv(n)&&Fi(n);)n=wc(n,t);return n&&pn(n)&&Fi(n)&&!Ii(n)?s:n||Nv(e)||s}const ey=async function(e){const t=this.getOffsetParent||xc,s=this.getDimensions,n=await s(e.floating);return{reference:Qv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ty(e){return Ft(e).direction==="rtl"}const sy={convertOffsetParentRelativeRectToViewportRelativeRect:Uv,getDocumentElement:Zt,getClippingRect:Zv,getOffsetParent:xc,getElementRects:ey,getClientRects:Hv,getDimensions:Jv,getScale:hn,isElement:Rt,isRTL:ty};function kc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ny(e,t){let s=null,n;const o=Zt(e);function r(){var l;clearTimeout(n),(l=s)==null||l.disconnect(),s=null}function a(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),r();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=c;if(l||t(),!h||!p)return;const g=Uo(f),v=Uo(o.clientWidth-(d+h)),k=Uo(o.clientHeight-(f+p)),O=Uo(d),P={rootMargin:-g+"px "+-v+"px "+-k+"px "+-O+"px",threshold:$t(0,$s(1,u))||1};let A=!0;function q(z){const H=z[0].intersectionRatio;if(H!==u){if(!A)return a();H?a(!1,H):n=setTimeout(()=>{a(!1,1e-7)},1e3)}H===1&&!kc(c,e.getBoundingClientRect())&&a(),A=!1}try{s=new IntersectionObserver(q,{...P,root:o.ownerDocument})}catch{s=new IntersectionObserver(q,P)}s.observe(e)}return a(!0),r}function oy(e,t,s,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=Ri(e),d=o||r?[...c?Vn(c):[],...Vn(t)]:[];d.forEach(O=>{o&&O.addEventListener("scroll",s,{passive:!0}),r&&O.addEventListener("resize",s)});const f=c&&l?ny(c,s):null;let h=-1,p=null;a&&(p=new ResizeObserver(O=>{let[b]=O;b&&b.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=p)==null||P.observe(t)})),s()}),c&&!u&&p.observe(c),p.observe(t));let g,v=u?Us(e):null;u&&k();function k(){const O=Us(e);v&&!kc(v,O)&&s(),v=O,g=requestAnimationFrame(k)}return s(),()=>{var O;d.forEach(b=>{o&&b.removeEventListener("scroll",s),r&&b.removeEventListener("resize",s)}),f==null||f(),(O=p)==null||O.disconnect(),p=null,u&&cancelAnimationFrame(g)}}const ry=Tv,iy=Ev,Cc=$v,ay=Mv,ly=Av,uy=Sv,cy=Ov,dy=(e,t,s)=>{const n=new Map,o={platform:sy,...s},r={...o.platform,_c:n};return Cv(e,t,{...o,platform:r})};function fy(e){return e!=null&&typeof e=="object"&&"$el"in e}function qi(e){if(fy(e)){const t=e.$el;return Mi(t)&&js(t)==="#comment"?null:t}return e}function mn(e){return typeof e=="function"?e():i(e)}function py(e){return{name:"arrow",options:e,fn(t){const s=qi(mn(e.element));return s==null?{}:uy({element:s,padding:e.padding}).fn(t)}}}function Sc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $c(e,t){const s=Sc(e);return Math.round(t*s)/s}function hy(e,t,s){s===void 0&&(s={});const n=s.whileElementsMounted,o=Y(()=>{var H;return(H=mn(s.open))!=null?H:!0}),r=Y(()=>mn(s.middleware)),a=Y(()=>{var H;return(H=mn(s.placement))!=null?H:"bottom"}),l=Y(()=>{var H;return(H=mn(s.strategy))!=null?H:"absolute"}),u=Y(()=>{var H;return(H=mn(s.transform))!=null?H:!0}),c=Y(()=>qi(e.value)),d=Y(()=>qi(t.value)),f=R(0),h=R(0),p=R(l.value),g=R(a.value),v=Cr({}),k=R(!1),O=Y(()=>{const H={position:p.value,left:"0",top:"0"};if(!d.value)return H;const L=$c(d.value,f.value),K=$c(d.value,h.value);return u.value?{...H,transform:"translate("+L+"px, "+K+"px)",...Sc(d.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:L+"px",top:K+"px"}});let b;function P(){if(c.value==null||d.value==null)return;const H=o.value;dy(c.value,d.value,{middleware:r.value,placement:a.value,strategy:l.value}).then(L=>{f.value=L.x,h.value=L.y,p.value=L.strategy,g.value=L.placement,v.value=L.middlewareData,k.value=H!==!1})}function A(){typeof b=="function"&&(b(),b=void 0)}function q(){if(A(),n===void 0){P();return}if(c.value!=null&&d.value!=null){b=n(c.value,d.value,P);return}}function z(){o.value||(k.value=!1)}return Ke([r,a,l,o],P,{flush:"sync"}),Ke([c,d],q,{flush:"sync"}),Ke(o,z,{flush:"sync"}),so()&&hr(A),{x:Ys(f),y:Ys(h),strategy:Ys(p),placement:Ys(g),middlewareData:Ys(v),isPositioned:Ys(k),floatingStyles:O,update:P}}const my={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[Zk,gy]=Bt("PopperContent");var vy=N({inheritAttrs:!1,__name:"PopperContent",props:ef({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...my}),emits:["placed"],setup(e,{emit:t}){const s=e,n=t,o=rc(),{forwardRef:r,currentElement:a}=De(),l=R(),u=R(),{width:c,height:d}=eg(u),f=Y(()=>s.side+(s.align!=="center"?`-${s.align}`:"")),h=Y(()=>typeof s.collisionPadding=="number"?s.collisionPadding:{top:0,right:0,bottom:0,left:0,...s.collisionPadding}),p=Y(()=>Array.isArray(s.collisionBoundary)?s.collisionBoundary:[s.collisionBoundary]),g=Y(()=>({padding:h.value,boundary:p.value.filter(cv),altBoundary:p.value.length>0})),v=Y(()=>({mainAxis:s.sideFlip,crossAxis:s.alignFlip})),k=$m(()=>[ry({mainAxis:s.sideOffset+d.value,alignmentAxis:s.alignOffset}),s.prioritizePosition&&s.avoidCollisions&&Cc({...g.value,...v.value}),s.avoidCollisions&&iy({mainAxis:!0,crossAxis:!!s.prioritizePosition,limiter:s.sticky==="partial"?cy():void 0,...g.value}),!s.prioritizePosition&&s.avoidCollisions&&Cc({...g.value,...v.value}),ay({...g.value,apply:({elements:Z,rects:he,availableWidth:ge,availableHeight:Pe})=>{const{width:we,height:ke}=he.reference,se=Z.floating.style;se.setProperty("--reka-popper-available-width",`${ge}px`),se.setProperty("--reka-popper-available-height",`${Pe}px`),se.setProperty("--reka-popper-anchor-width",`${we}px`),se.setProperty("--reka-popper-anchor-height",`${ke}px`)}}),u.value&&py({element:u.value,padding:s.arrowPadding}),dv({arrowWidth:c.value,arrowHeight:d.value}),s.hideWhenDetached&&ly({strategy:"referenceHidden",...g.value})]),O=Y(()=>s.reference??o.anchor.value),{floatingStyles:b,placement:P,isPositioned:A,middlewareData:q}=hy(O,l,{strategy:s.positionStrategy,placement:f,whileElementsMounted:(...Z)=>oy(...Z,{layoutShift:!s.disableUpdateOnLayoutShift,animationFrame:s.updatePositionStrategy==="always"}),middleware:k}),z=Y(()=>$i(P.value)[0]),H=Y(()=>$i(P.value)[1]);Va(()=>{A.value&&n("placed")});const L=Y(()=>{var he;const Z=((he=q.value.arrow)==null?void 0:he.centerOffset)!==0;return s.hideShiftedArrow&&Z}),K=R("");Ye(()=>{a.value&&(K.value=window.getComputedStyle(a.value).zIndex)});const B=Y(()=>{var Z;return((Z=q.value.arrow)==null?void 0:Z.x)??0}),te=Y(()=>{var Z;return((Z=q.value.arrow)==null?void 0:Z.y)??0});return gy({placedSide:z,onArrowChange:Z=>u.value=Z,arrowX:B,arrowY:te,shouldHideArrow:L}),(Z,he)=>{var ge,Pe,we;return m(),F("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:Mt({...i(b),transform:i(A)?i(b).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K.value,"--reka-popper-transform-origin":[(ge=i(q).transformOrigin)==null?void 0:ge.x,(Pe=i(q).transformOrigin)==null?void 0:Pe.y].join(" "),...((we=i(q).hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[C(i(qe),ue({ref:i(r)},Z.$attrs,{"as-child":s.asChild,as:Z.as,"data-side":z.value,"data-align":H.value,style:{animation:i(A)?void 0:"none"}}),{default:x(()=>[W(Z.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),yy=vy;function by(e){const t=fi({nonce:R()});return Y(()=>{var s;return(e==null?void 0:e.value)||((s=t.nonce)==null?void 0:s.value)})}var _y=N({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(e){const t=e;return De(),(s,n)=>(m(),M(i(qe),ue(t,{onMousedown:n[0]||(n[0]=o=>{!o.defaultPrevented&&o.detail>1&&o.preventDefault()})}),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),wy=_y,xy=N({__name:"PaginationEllipsis",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return De(),(s,n)=>(m(),M(i(qe),ue(t,{"data-type":"ellipsis"}),{default:x(()=>[W(s.$slots,"default",{},()=>[n[0]||(n[0]=G("…"))])]),_:3},16))}}),ky=xy;const[Zo,Cy]=Bt("PaginationRoot");var Sy=N({__name:"PaginationRoot",props:{page:{type:Number,required:!1},defaultPage:{type:Number,required:!1,default:1},itemsPerPage:{type:Number,required:!0},total:{type:Number,required:!1,default:0},siblingCount:{type:Number,required:!1,default:2},disabled:{type:Boolean,required:!1},showEdges:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"nav"}},emits:["update:page"],setup(e,{emit:t}){const s=e,n=t,{siblingCount:o,disabled:r,showEdges:a}=Nt(s);De();const l=un(s,"page",n,{defaultValue:s.defaultPage,passive:s.page===void 0}),u=Y(()=>Math.max(1,Math.ceil(s.total/(s.itemsPerPage||1))));return Cy({page:l,onPageChange(c){l.value=c},pageCount:u,siblingCount:o,disabled:r,showEdges:a}),(c,d)=>(m(),M(i(qe),{as:c.as,"as-child":c.asChild},{default:x(()=>[W(c.$slots,"default",{page:i(l),pageCount:u.value})]),_:3},8,["as","as-child"]))}}),$y=Sy;function Ps(e,t){const s=t-e+1;return Array.from({length:s},(n,o)=>o+e)}function Ay(e){return e.map(t=>typeof t=="number"?{type:"page",value:t}:{type:"ellipsis"})}const Jo="ellipsis";function Py(e,t,s,n){const r=t,a=Math.max(e-s,1),l=Math.min(e+s,r);if(n){const c=Math.min(2*s+5,t)-2,d=a>3&&Math.abs(r-c-1+1)>2&&Math.abs(a-1)>2,f=l<r-2&&Math.abs(r-c)>2&&Math.abs(r-l)>2;if(!d&&f)return[...Ps(1,c),Jo,r];if(d&&!f){const p=Ps(r-c+1,r);return[1,Jo,...p]}if(d&&f){const p=Ps(a,l);return[1,Jo,...p,Jo,r]}return Ps(1,r)}else{const u=s*2+1;return t<u?Ps(1,r):e<=s+1?Ps(1,u):t-e<=s?Ps(t-u+1,r):Ps(a,l)}}var Ty=N({__name:"PaginationList",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;De();const s=Zo(),n=Y(()=>Ay(Py(s.page.value,s.pageCount.value,s.siblingCount.value,s.showEdges.value)));return(o,r)=>(m(),M(i(qe),st(it(t)),{default:x(()=>[W(o.$slots,"default",{items:n.value})]),_:3},16))}}),Ey=Ty,Oy=N({__name:"PaginationListItem",props:{value:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;De();const s=Zo(),n=Y(()=>s.page.value===t.value),o=Y(()=>s.disabled.value);return(r,a)=>(m(),M(i(qe),ue(t,{"data-type":"page","aria-label":`Page ${r.value}`,"aria-current":n.value?"page":void 0,"data-selected":n.value?"true":void 0,disabled:o.value,type:r.as==="button"?"button":void 0,onClick:a[0]||(a[0]=l=>!o.value&&i(s).onPageChange(r.value))}),{default:x(()=>[W(r.$slots,"default",{},()=>[G(S(r.value),1)])]),_:3},16,["aria-label","aria-current","data-selected","disabled","type"]))}}),My=Oy,Iy=N({__name:"PaginationNext",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;De();const s=Zo(),n=Y(()=>s.page.value===s.pageCount.value||s.disabled.value);return(o,r)=>(m(),M(i(qe),ue(t,{"aria-label":"Next Page",type:o.as==="button"?"button":void 0,disabled:n.value,onClick:r[0]||(r[0]=a=>!n.value&&i(s).onPageChange(i(s).page.value+1))}),{default:x(()=>[W(o.$slots,"default",{},()=>[r[1]||(r[1]=G("Next page"))])]),_:3},16,["type","disabled"]))}}),Dy=Iy,By=N({__name:"PaginationPrev",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;De();const s=Zo(),n=Y(()=>s.page.value===1||s.disabled.value);return(o,r)=>(m(),M(i(qe),ue(t,{"aria-label":"Previous Page",type:o.as==="button"?"button":void 0,disabled:n.value,onClick:r[0]||(r[0]=a=>!n.value&&i(s).onPageChange(i(s).page.value-1))}),{default:x(()=>[W(o.$slots,"default",{},()=>[r[1]||(r[1]=G("Prev page"))])]),_:3},16,["type","disabled"]))}}),Ry=By;const Fy=[" ","Enter","ArrowUp","ArrowDown"],qy=[" ","Enter"],qt=10;function jn(e,t,s){return e===void 0?!1:Array.isArray(e)?e.some(n=>Li(n,t,s)):Li(e,t,s)}function Li(e,t,s){return e===void 0||t===void 0?!1:typeof e=="string"?e===t:typeof s=="function"?s(e,t):typeof s=="string"?(e==null?void 0:e[s])===(t==null?void 0:t[s]):Sm(e,t)}function Ly(e){return e==null||e===""||Array.isArray(e)&&e.length===0}const Ny={key:0,value:""},[Ts,Ac]=Bt("SelectRoot");var zy=N({inheritAttrs:!1,__name:"SelectRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1},defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},by:{type:[String,Function],required:!1},dir:{type:String,required:!1},multiple:{type:Boolean,required:!1},autocomplete:{type:String,required:!1},disabled:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const s=e,n=t,{required:o,disabled:r,multiple:a,dir:l}=Nt(s),u=un(s,"modelValue",n,{defaultValue:s.defaultValue??(a.value?[]:void 0),passive:s.modelValue===void 0,deep:!0}),c=un(s,"open",n,{defaultValue:s.defaultOpen,passive:s.open===void 0}),d=R(),f=R(),h=R({x:0,y:0}),p=Y(()=>{var A;return a.value&&Array.isArray(u.value)?((A=u.value)==null?void 0:A.length)===0:ci(u.value)});dn({isProvider:!0});const g=Gm(l),v=Lu(d),k=R(new Set),O=Y(()=>Array.from(k.value).map(A=>A.value).join(";"));function b(A){if(a.value){const q=Array.isArray(u.value)?[...u.value]:[],z=q.findIndex(H=>Li(H,A,s.by));z===-1?q.push(A):q.splice(z,1),u.value=[...q]}else u.value=A}function P(A){return Array.from(k.value).find(q=>jn(A,q.value,s.by))}return Ac({triggerElement:d,onTriggerChange:A=>{d.value=A},valueElement:f,onValueElementChange:A=>{f.value=A},contentId:"",modelValue:u,onValueChange:b,by:s.by,open:c,multiple:a,required:o,onOpenChange:A=>{c.value=A},dir:g,triggerPointerDownPosRef:h,disabled:r,isEmptyModelValue:p,optionsSet:k,onOptionAdd:A=>{const q=P(A.value);q&&k.value.delete(q),k.value.add(A)},onOptionRemove:A=>{const q=P(A.value);q&&k.value.delete(q)}}),(A,q)=>(m(),M(i(av),null,{default:x(()=>[W(A.$slots,"default",{modelValue:i(u),open:i(c)}),i(v)?(m(),M(Uy,{key:O.value,"aria-hidden":"true",tabindex:"-1",multiple:i(a),required:i(o),name:A.name,autocomplete:A.autocomplete,disabled:i(r),value:i(u)},{default:x(()=>[i(ci)(i(u))?(m(),F("option",Ny)):ne("v-if",!0),(m(!0),F(be,null,Ue(Array.from(k.value),z=>(m(),F("option",ue({key:z.value??""},{ref_for:!0},z),null,16))),128))]),_:1},8,["multiple","required","name","autocomplete","disabled","value"])):ne("v-if",!0)]),_:3}))}}),Vy=zy,jy=N({__name:"BubbleSelect",props:{autocomplete:{type:String,required:!1},autofocus:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},form:{type:String,required:!1},multiple:{type:Boolean,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},size:{type:Number,required:!1},value:{type:null,required:!1}},setup(e){const t=e,s=R(),n=Ts();Ke(()=>t.value,(r,a)=>{const l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(r!==a&&c&&s.value){const d=new Event("change",{bubbles:!0});c.call(s.value,r),s.value.dispatchEvent(d)}});function o(r){n.onValueChange(r.target.value)}return(r,a)=>(m(),M(i(nc),{"as-child":""},{default:x(()=>[y("select",ue({ref_key:"selectElement",ref:s},t,{onInput:o}),[W(r.$slots,"default")],16)]),_:3}))}}),Uy=jy,Hy=N({__name:"SelectPopperPosition",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1,default:qt},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const s=Kt(e);return(n,o)=>(m(),M(i(yy),ue(i(s),{style:{boxSizing:"border-box","--reka-select-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-select-content-available-width":"var(--reka-popper-available-width)","--reka-select-content-available-height":"var(--reka-popper-available-height)","--reka-select-trigger-width":"var(--reka-popper-anchor-width)","--reka-select-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:x(()=>[W(n.$slots,"default")]),_:3},16))}}),Wy=Hy;const Ky={onViewportChange:()=>{},itemTextRefCallback:()=>{},itemRefCallback:()=>{}},[Hs,Pc]=Bt("SelectContent");var Gy=N({__name:"SelectContentImpl",props:{position:{type:String,required:!1,default:"item-aligned"},bodyLock:{type:Boolean,required:!1,default:!0},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1,default:"start"},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const s=e,n=t,o=Ts();Ym(),Ru(s.bodyLock);const{CollectionSlot:r,getItems:a}=dn(),l=R();zu(l);const{search:u,handleTypeaheadSearch:c}=Vu(),d=R(),f=R(),h=R(),p=R(!1),g=R(!1),v=R(!1);function k(){f.value&&l.value&&Zu([f.value,l.value])}Ke(p,()=>{k()});const{onOpenChange:O,triggerPointerDownPosRef:b}=o;Ye(z=>{if(!l.value)return;let H={x:0,y:0};const L=B=>{var te,Z;H={x:Math.abs(Math.round(B.pageX)-(((te=b.value)==null?void 0:te.x)??0)),y:Math.abs(Math.round(B.pageY)-(((Z=b.value)==null?void 0:Z.y)??0))}},K=B=>{var te;B.pointerType!=="touch"&&(H.x<=10&&H.y<=10?B.preventDefault():(te=l.value)!=null&&te.contains(B.target)||O(!1),document.removeEventListener("pointermove",L),b.value=null)};b.value!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",K,{capture:!0,once:!0})),z(()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",K,{capture:!0})})});function P(z){const H=z.ctrlKey||z.altKey||z.metaKey;if(z.key==="Tab"&&z.preventDefault(),!H&&z.key.length===1&&c(z.key,a()),["ArrowUp","ArrowDown","Home","End"].includes(z.key)){let K=[...a().map(B=>B.ref)];if(["ArrowUp","End"].includes(z.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(z.key)){const B=z.target,te=K.indexOf(B);K=K.slice(te+1)}setTimeout(()=>Zu(K)),z.preventDefault()}}const A=Y(()=>s.position==="popper"?s:{}),q=Kt(A.value);return Pc({content:l,viewport:d,onViewportChange:z=>{d.value=z},itemRefCallback:(z,H,L)=>{const K=!g.value&&!L,B=jn(o.modelValue.value,H,o.by);if(o.multiple.value){if(v.value)return;(B||K)&&(f.value=z,B&&(v.value=!0))}else(B||K)&&(f.value=z);K&&(g.value=!0)},selectedItem:f,selectedItemText:h,onItemLeave:()=>{var z;(z=l.value)==null||z.focus()},itemTextRefCallback:(z,H,L)=>{const K=!g.value&&!L;(jn(o.modelValue.value,H,o.by)||K)&&(h.value=z)},focusSelectedItem:k,position:s.position,isPositioned:p,searchRef:u}),(z,H)=>(m(),M(i(r),null,{default:x(()=>[C(i(Xu),{"as-child":"",onMountAutoFocus:H[6]||(H[6]=wt(()=>{},["prevent"])),onUnmountAutoFocus:H[7]||(H[7]=L=>{var K;n("closeAutoFocus",L),!L.defaultPrevented&&((K=i(o).triggerElement.value)==null||K.focus({preventScroll:!0}),L.preventDefault())})},{default:x(()=>[C(i(Hu),{"as-child":"","disable-outside-pointer-events":z.disableOutsidePointerEvents,onFocusOutside:H[2]||(H[2]=wt(()=>{},["prevent"])),onDismiss:H[3]||(H[3]=L=>i(o).onOpenChange(!1)),onEscapeKeyDown:H[4]||(H[4]=L=>n("escapeKeyDown",L)),onPointerDownOutside:H[5]||(H[5]=L=>n("pointerDownOutside",L))},{default:x(()=>[(m(),M(qs(z.position==="popper"?Wy:Jy),ue({...z.$attrs,...i(q)},{id:i(o).contentId,ref:L=>{const K=i(Wt)(L);K!=null&&K.hasAttribute("data-reka-popper-content-wrapper")?l.value=K.firstElementChild:l.value=K},role:"listbox","data-state":i(o).open.value?"open":"closed",dir:i(o).dir.value,style:{display:"flex",flexDirection:"column",outline:"none"},onContextmenu:H[0]||(H[0]=wt(()=>{},["prevent"])),onPlaced:H[1]||(H[1]=L=>p.value=!0),onKeydown:P}),{default:x(()=>[W(z.$slots,"default")]),_:3},16,["id","data-state","dir","onKeydown"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3})]),_:3}))}}),Yy=Gy;const[Ni,Xy]=Bt("SelectItemAlignedPosition");var Zy=N({inheritAttrs:!1,__name:"SelectItemAlignedPosition",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["placed"],setup(e,{emit:t}){const s=e,n=t,{getItems:o}=dn(),r=Ts(),a=Hs(),l=R(!1),u=R(!0),c=R(),{forwardRef:d,currentElement:f}=De(),{viewport:h,selectedItem:p,selectedItemText:g,focusSelectedItem:v}=a;function k(){if(r.triggerElement.value&&r.valueElement.value&&c.value&&f.value&&(h!=null&&h.value)&&(p!=null&&p.value)&&(g!=null&&g.value)){const P=r.triggerElement.value.getBoundingClientRect(),A=f.value.getBoundingClientRect(),q=r.valueElement.value.getBoundingClientRect(),z=g.value.getBoundingClientRect();if(r.dir.value!=="rtl"){const E=z.left-A.left,oe=q.left-E,ae=P.left-oe,de=P.width+ae,ve=Math.max(de,A.width),_=window.innerWidth-qt,$=Mu(oe,qt,Math.max(qt,_-ve));c.value.style.minWidth=`${de}px`,c.value.style.left=`${$}px`}else{const E=A.right-z.right,oe=window.innerWidth-q.right-E,ae=window.innerWidth-P.right-oe,de=P.width+ae,ve=Math.max(de,A.width),_=window.innerWidth-qt,$=Mu(oe,qt,Math.max(qt,_-ve));c.value.style.minWidth=`${de}px`,c.value.style.right=`${$}px`}const H=o().map(E=>E.ref),L=window.innerHeight-qt*2,K=h.value.scrollHeight,B=window.getComputedStyle(f.value),te=Number.parseInt(B.borderTopWidth,10),Z=Number.parseInt(B.paddingTop,10),he=Number.parseInt(B.borderBottomWidth,10),ge=Number.parseInt(B.paddingBottom,10),Pe=te+Z+K+ge+he,we=Math.min(p.value.offsetHeight*5,Pe),ke=window.getComputedStyle(h.value),se=Number.parseInt(ke.paddingTop,10),Oe=Number.parseInt(ke.paddingBottom,10),I=P.top+P.height/2-qt,T=L-I,re=p.value.offsetHeight/2,le=p.value.offsetTop+re,ce=te+Z+le,xe=Pe-ce;if(ce<=I){const E=p.value===H[H.length-1];c.value.style.bottom="0px";const oe=f.value.clientHeight-h.value.offsetTop-h.value.offsetHeight,ae=Math.max(T,re+(E?Oe:0)+oe+he),de=ce+ae;c.value.style.height=`${de}px`}else{const E=p.value===H[0];c.value.style.top="0px";const ae=Math.max(I,te+h.value.offsetTop+(E?se:0)+re)+xe;c.value.style.height=`${ae}px`,h.value.scrollTop=ce-I+h.value.offsetTop}c.value.style.margin=`${qt}px 0`,c.value.style.minHeight=`${we}px`,c.value.style.maxHeight=`${L}px`,n("placed"),requestAnimationFrame(()=>l.value=!0)}}const O=R("");Qe(async()=>{await nt(),k(),f.value&&(O.value=window.getComputedStyle(f.value).zIndex)});function b(P){P&&u.value===!0&&(k(),v==null||v(),u.value=!1)}return jm(r.triggerElement,()=>{k()}),Xy({contentWrapper:c,shouldExpandOnScrollRef:l,onScrollButtonChange:b}),(P,A)=>(m(),F("div",{ref_key:"contentWrapperElement",ref:c,style:Mt({display:"flex",flexDirection:"column",position:"fixed",zIndex:O.value})},[C(i(qe),ue({ref:i(d),style:{boxSizing:"border-box",maxHeight:"100%"}},{...P.$attrs,...s}),{default:x(()=>[W(P.$slots,"default")]),_:3},16)],4))}}),Jy=Zy,Qy=N({inheritAttrs:!1,__name:"SelectProvider",props:{context:{type:Object,required:!0}},setup(e){return Ac(e.context),Pc(Ky),(s,n)=>W(s.$slots,"default")}}),eb=Qy;const tb={key:1};var sb=N({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean,required:!1},position:{type:String,required:!1},bodyLock:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const s=e,o=Gt(s,t),r=Ts(),a=R();Qe(()=>{a.value=new DocumentFragment});const l=R(),u=Y(()=>s.forceMount||r.open.value),c=R(u.value);return Ke(u,()=>{setTimeout(()=>c.value=u.value)}),(d,f)=>{var h;return u.value||c.value||(h=l.value)!=null&&h.present?(m(),M(i(bi),{key:0,ref_key:"presenceRef",ref:l,present:u.value},{default:x(()=>[C(Yy,st(it({...i(o),...d.$attrs})),{default:x(()=>[W(d.$slots,"default")]),_:3},16)]),_:3},8,["present"])):a.value?(m(),F("div",tb,[(m(),M(Ga,{to:a.value},[C(eb,{context:i(r)},{default:x(()=>[W(d.$slots,"default")]),_:3},8,["context"])],8,["to"]))])):ne("v-if",!0)}}}),nb=sb,ob=N({__name:"SelectIcon",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,s)=>(m(),M(i(qe),{"aria-hidden":"true",as:t.as,"as-child":t.asChild},{default:x(()=>[W(t.$slots,"default",{},()=>[s[0]||(s[0]=G("▼"))])]),_:3},8,["as","as-child"]))}}),rb=ob;const[Tc,ib]=Bt("SelectItem");var ab=N({__name:"SelectItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const s=e,n=t,{disabled:o}=Nt(s),r=Ts(),a=Hs(),{forwardRef:l,currentElement:u}=De(),{CollectionItem:c}=dn(),d=Y(()=>{var A;return jn((A=r.modelValue)==null?void 0:A.value,s.value,r.by)}),f=R(!1),h=R(s.textValue??""),p=zo(void 0,"reka-select-item-text"),g="select.select";async function v(A){if(A.defaultPrevented)return;const q={originalEvent:A,value:s.value};ui(g,k,q)}async function k(A){await nt(),n("select",A),!A.defaultPrevented&&(o.value||(r.onValueChange(s.value),r.multiple.value||r.onOpenChange(!1)))}async function O(A){var q,z;await nt(),!A.defaultPrevented&&(o.value?(q=a.onItemLeave)==null||q.call(a):(z=A.currentTarget)==null||z.focus({preventScroll:!0}))}async function b(A){var q;await nt(),!A.defaultPrevented&&A.currentTarget===St()&&((q=a.onItemLeave)==null||q.call(a))}async function P(A){var z;await nt(),!(A.defaultPrevented||((z=a.searchRef)==null?void 0:z.value)!==""&&A.key===" ")&&(qy.includes(A.key)&&v(A),A.key===" "&&A.preventDefault())}if(s.value==="")throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return Qe(()=>{u.value&&a.itemRefCallback(u.value,s.value,s.disabled)}),ib({value:s.value,disabled:o,textId:p,isSelected:d,onItemTextChange:A=>{h.value=((h.value||(A==null?void 0:A.textContent))??"").trim()}}),(A,q)=>(m(),M(i(c),{value:{textValue:h.value}},{default:x(()=>[C(i(qe),{ref:i(l),role:"option","aria-labelledby":i(p),"data-highlighted":f.value?"":void 0,"aria-selected":d.value,"data-state":d.value?"checked":"unchecked","aria-disabled":i(o)||void 0,"data-disabled":i(o)?"":void 0,tabindex:i(o)?void 0:-1,as:A.as,"as-child":A.asChild,onFocus:q[0]||(q[0]=z=>f.value=!0),onBlur:q[1]||(q[1]=z=>f.value=!1),onPointerup:v,onPointerdown:q[2]||(q[2]=z=>{z.currentTarget.focus({preventScroll:!0})}),onTouchend:q[3]||(q[3]=wt(()=>{},["prevent","stop"])),onPointermove:O,onPointerleave:b,onKeydown:P},{default:x(()=>[W(A.$slots,"default")]),_:3},8,["aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","tabindex","as","as-child"])]),_:3},8,["value"]))}}),lb=ab,ub=N({__name:"SelectItemIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,s=Tc();return(n,o)=>i(s).isSelected.value?(m(),M(i(qe),ue({key:0,"aria-hidden":"true"},t),{default:x(()=>[W(n.$slots,"default")]),_:3},16)):ne("v-if",!0)}}),cb=ub,db=N({inheritAttrs:!1,__name:"SelectItemText",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,s=Ts(),n=Hs(),o=Tc(),{forwardRef:r,currentElement:a}=De(),l=Y(()=>{var u,c;return{value:o.value,disabled:o.disabled.value,textContent:((u=a.value)==null?void 0:u.textContent)??((c=o.value)==null?void 0:c.toString())??""}});return Qe(()=>{a.value&&(o.onItemTextChange(a.value),n.itemTextRefCallback(a.value,o.value,o.disabled.value),s.onOptionAdd(l.value))}),Dr(()=>{s.onOptionRemove(l.value)}),(u,c)=>(m(),M(i(qe),ue({id:i(o).textId,ref:i(r)},{...t,...u.$attrs}),{default:x(()=>[W(u.$slots,"default")]),_:3},16,["id"]))}}),fb=db,pb=N({__name:"SelectPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(s,n)=>(m(),M(i(Si),st(it(t)),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),hb=pb,mb=N({__name:"SelectScrollButtonImpl",emits:["autoScroll"],setup(e,{emit:t}){const s=t,{getItems:n}=dn(),o=Hs(),r=R(null);function a(){r.value!==null&&(window.clearInterval(r.value),r.value=null)}Ye(()=>{const c=n().map(d=>d.ref).find(d=>d===St());c==null||c.scrollIntoView({block:"nearest"})});function l(){r.value===null&&(r.value=window.setInterval(()=>{s("autoScroll")},50))}function u(){var c;(c=o.onItemLeave)==null||c.call(o),r.value===null&&(r.value=window.setInterval(()=>{s("autoScroll")},50))}return Ir(()=>a()),(c,d)=>{var f;return m(),M(i(qe),ue({"aria-hidden":"true",style:{flexShrink:0}},(f=c.$parent)==null?void 0:f.$props,{onPointerdown:l,onPointermove:u,onPointerleave:d[0]||(d[0]=()=>{a()})}),{default:x(()=>[W(c.$slots,"default")]),_:3},16)}}}),Ec=mb,gb=N({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Hs(),s=t.position==="item-aligned"?Ni():void 0,{forwardRef:n,currentElement:o}=De(),r=R(!1);return Ye(a=>{var l,u;if((l=t.viewport)!=null&&l.value&&((u=t.isPositioned)!=null&&u.value)){let d=function(){const f=c.scrollHeight-c.clientHeight;r.value=Math.ceil(c.scrollTop)<f};const c=t.viewport.value;d(),c.addEventListener("scroll",d),a(()=>c.removeEventListener("scroll",d))}}),Ke(o,()=>{o.value&&(s==null||s.onScrollButtonChange(o.value))}),(a,l)=>r.value?(m(),M(Ec,{key:0,ref:i(n),onAutoScroll:l[0]||(l[0]=()=>{const{viewport:u,selectedItem:c}=i(t);u!=null&&u.value&&(c!=null&&c.value)&&(u.value.scrollTop=u.value.scrollTop+c.value.offsetHeight)})},{default:x(()=>[W(a.$slots,"default")]),_:3},512)):ne("v-if",!0)}}),vb=gb,yb=N({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Hs(),s=t.position==="item-aligned"?Ni():void 0,{forwardRef:n,currentElement:o}=De(),r=R(!1);return Ye(a=>{var l,u;if((l=t.viewport)!=null&&l.value&&((u=t.isPositioned)!=null&&u.value)){let d=function(){r.value=c.scrollTop>0};const c=t.viewport.value;d(),c.addEventListener("scroll",d),a(()=>c.removeEventListener("scroll",d))}}),Ke(o,()=>{o.value&&(s==null||s.onScrollButtonChange(o.value))}),(a,l)=>r.value?(m(),M(Ec,{key:0,ref:i(n),onAutoScroll:l[0]||(l[0]=()=>{const{viewport:u,selectedItem:c}=i(t);u!=null&&u.value&&(c!=null&&c.value)&&(u.value.scrollTop=u.value.scrollTop-c.value.offsetHeight)})},{default:x(()=>[W(a.$slots,"default")]),_:3},512)):ne("v-if",!0)}}),bb=yb,_b=N({__name:"SelectTrigger",props:{disabled:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,s=Ts(),{forwardRef:n,currentElement:o}=De(),r=Y(()=>{var h;return((h=s.disabled)==null?void 0:h.value)||t.disabled});s.contentId||(s.contentId=zo(void 0,"reka-select-content")),Qe(()=>{s.onTriggerChange(o.value)});const{getItems:a}=dn(),{search:l,handleTypeaheadSearch:u,resetTypeahead:c}=Vu();function d(){r.value||(s.onOpenChange(!0),c())}function f(h){d(),s.triggerPointerDownPosRef.value={x:Math.round(h.pageX),y:Math.round(h.pageY)}}return(h,p)=>(m(),M(i(uv),{"as-child":"",reference:h.reference},{default:x(()=>{var g,v,k,O;return[C(i(qe),{ref:i(n),role:"combobox",type:h.as==="button"?"button":void 0,"aria-controls":i(s).contentId,"aria-expanded":i(s).open.value||!1,"aria-required":(g=i(s).required)==null?void 0:g.value,"aria-autocomplete":"none",disabled:r.value,dir:(v=i(s))==null?void 0:v.dir.value,"data-state":(k=i(s))!=null&&k.open.value?"open":"closed","data-disabled":r.value?"":void 0,"data-placeholder":i(Ly)((O=i(s).modelValue)==null?void 0:O.value)?"":void 0,"as-child":h.asChild,as:h.as,onClick:p[0]||(p[0]=b=>{var P;(P=b==null?void 0:b.currentTarget)==null||P.focus()}),onPointerdown:p[1]||(p[1]=b=>{if(b.pointerType==="touch")return b.preventDefault();const P=b.target;P.hasPointerCapture(b.pointerId)&&P.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&(f(b),b.preventDefault())}),onPointerup:p[2]||(p[2]=wt(b=>{b.pointerType==="touch"&&f(b)},["prevent"])),onKeydown:p[3]||(p[3]=b=>{const P=i(l)!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&P&&b.key===" "||(i(u)(b.key,i(a)()),i(Fy).includes(b.key)&&(d(),b.preventDefault()))})},{default:x(()=>[W(h.$slots,"default")]),_:3},8,["type","aria-controls","aria-expanded","aria-required","disabled","dir","data-state","data-disabled","data-placeholder","as-child","as"])]}),_:3},8,["reference"]))}}),wb=_b,xb=N({__name:"SelectValue",props:{placeholder:{type:String,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,{forwardRef:s,currentElement:n}=De(),o=Ts();Qe(()=>{o.valueElement=n});const r=Y(()=>{var d;let l=[];const u=Array.from(o.optionsSet.value),c=f=>u.find(h=>jn(f,h.value,o.by));return Array.isArray(o.modelValue.value)?l=o.modelValue.value.map(f=>{var h;return((h=c(f))==null?void 0:h.textContent)??""}):l=[((d=c(o.modelValue.value))==null?void 0:d.textContent)??""],l.filter(Boolean)}),a=Y(()=>r.value.length?r.value.join(", "):t.placeholder);return(l,u)=>(m(),M(i(qe),{ref:i(s),as:l.as,"as-child":l.asChild,style:{pointerEvents:"none"},"data-placeholder":r.value.length?void 0:t.placeholder},{default:x(()=>[W(l.$slots,"default",{selectedLabel:r.value,modelValue:i(o).modelValue.value},()=>[G(S(a.value),1)])]),_:3},8,["as","as-child","data-placeholder"]))}}),kb=xb,Cb=N({__name:"SelectViewport",props:{nonce:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{nonce:s}=Nt(t),n=by(s),o=Hs(),r=o.position==="item-aligned"?Ni():void 0,{forwardRef:a,currentElement:l}=De();Qe(()=>{o==null||o.onViewportChange(l.value)});const u=R(0);function c(d){const f=d.currentTarget,{shouldExpandOnScrollRef:h,contentWrapper:p}=r??{};if(h!=null&&h.value&&(p!=null&&p.value)){const g=Math.abs(u.value-f.scrollTop);if(g>0){const v=window.innerHeight-qt*2,k=Number.parseFloat(p.value.style.minHeight),O=Number.parseFloat(p.value.style.height),b=Math.max(k,O);if(b<v){const P=b+g,A=Math.min(v,P),q=P-A;p.value.style.height=`${A}px`,p.value.style.bottom==="0px"&&(f.scrollTop=q>0?q:0,p.value.style.justifyContent="flex-end")}}}u.value=f.scrollTop}return(d,f)=>(m(),F(be,null,[C(i(qe),ue({ref:i(a),"data-reka-select-viewport":"",role:"presentation"},{...d.$attrs,...t},{style:{position:"relative",flex:1,overflow:"hidden auto"},onScroll:c}),{default:x(()=>[W(d.$slots,"default")]),_:3},16),C(i(qe),{as:"style",nonce:i(n)},{default:x(()=>f[0]||(f[0]=[G(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),_:1,__:[0]},8,["nonce"])],64))}}),Sb=Cb,$b=N({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,s=["horizontal","vertical"];function n(l){return s.includes(l)}const o=Y(()=>n(t.orientation)?t.orientation:"horizontal"),r=Y(()=>o.value==="vertical"?t.orientation:void 0),a=Y(()=>t.decorative?{role:"none"}:{"aria-orientation":r.value,role:"separator"});return(l,u)=>(m(),M(i(qe),ue({as:l.as,"as-child":l.asChild,"data-orientation":o.value},a.value),{default:x(()=>[W(l.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),Ab=$b,Pb=N({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(s,n)=>(m(),M(Ab,st(it(t)),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),Tb=Pb;const[Eb,Ob]=Bt("SwitchRoot");var Mb=N({__name:"SwitchRoot",props:{defaultValue:{type:Boolean,required:!1},modelValue:{type:[Boolean,null],required:!1,default:void 0},disabled:{type:Boolean,required:!1},id:{type:String,required:!1},value:{type:String,required:!1,default:"on"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const s=e,n=t,{disabled:o}=Nt(s),r=un(s,"modelValue",n,{defaultValue:s.defaultValue,passive:s.modelValue===void 0});function a(){o.value||(r.value=!r.value)}const{forwardRef:l,currentElement:u}=De(),c=Lu(u),d=Y(()=>{var f;return s.id&&u.value?(f=document.querySelector(`[for="${s.id}"]`))==null?void 0:f.innerText:void 0});return Ob({modelValue:r,toggleCheck:a,disabled:o}),(f,h)=>(m(),M(i(qe),ue(f.$attrs,{id:f.id,ref:i(l),role:"switch",type:f.as==="button"?"button":void 0,value:f.value,"aria-label":f.$attrs["aria-label"]||d.value,"aria-checked":i(r),"aria-required":f.required,"data-state":i(r)?"checked":"unchecked","data-disabled":i(o)?"":void 0,"as-child":f.asChild,as:f.as,disabled:i(o),onClick:a,onKeydown:sp(wt(a,["prevent"]),["enter"])}),{default:x(()=>[W(f.$slots,"default",{modelValue:i(r)}),i(c)&&f.name?(m(),M(i(ov),{key:0,type:"checkbox",name:f.name,disabled:i(o),required:f.required,value:f.value,checked:!!i(r)},null,8,["name","disabled","required","value","checked"])):ne("v-if",!0)]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]))}}),Ib=Mb,Db=N({__name:"SwitchThumb",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=Eb();return De(),(s,n)=>{var o;return m(),M(i(qe),{"data-state":(o=i(t).modelValue)!=null&&o.value?"checked":"unchecked","data-disabled":i(t).disabled.value?"":void 0,"as-child":s.asChild,as:s.as},{default:x(()=>[W(s.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}}),Bb=Db;const Le=N({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(s,n)=>(m(),M(i(qe),{"data-slot":"button",as:e.as,"as-child":e.asChild,class:_e(i(Ie)(i(gn)({variant:e.variant,size:e.size}),t.class))},{default:x(()=>[W(s.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),gn=li("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",success:"bg-success text-white hover:bg-success/90",warning:"bg-warning text-white hover:bg-warning/90"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Rb=()=>window.hellopackClient;async function Oc(e,t={}){const s=Rb(),n=`${s.restUrl}${e}`,o={"X-WP-Nonce":s.restNonce,...t.headers};t.method==="POST"&&(o["Content-Type"]="application/json");const r=await fetch(n,{...t,headers:o});if(!r.ok){const a=await r.json().catch(()=>({message:r.statusText}));throw new Error(a.message||r.statusText)}return r.json()}const Ve={get:e=>Oc(e),post:(e,t)=>Oc(e,{method:"POST",body:t?JSON.stringify(t):void 0})},Qo=nn("app",()=>{var z,H,L,K,B,te,Z,he,ge,Pe,we,ke,se;const e=R(!!((z=window.hellopackClient)!=null&&z.isActive)),t=R(!!((H=window.hellopackClient)!=null&&H.tokenFromConstant)),s=R(((L=window.hellopackClient)==null?void 0:L.domain)??""),n=R(((K=window.hellopackClient)==null?void 0:K.maskedToken)??""),o=R(((B=window.hellopackClient)==null?void 0:B.tokenDomain)??""),r=R(!!((te=window.hellopackClient)!=null&&te.domainMismatch)),a=R(!!((Z=window.hellopackClient)!=null&&Z.isNetworkActive)),l=R(!!((he=window.hellopackClient)!=null&&he.isNetworkAdmin)),u=R(((ge=window.hellopackClient)==null?void 0:ge.networkAdminUrl)??""),c=Y(()=>a.value&&!l.value),d=R(!!((Pe=window.hellopackClient)!=null&&Pe.autoUpdates)),f=R(!!((we=window.hellopackClient)!=null&&we.betaChannel)),h=R(((ke=window.hellopackClient)==null?void 0:ke.wpRollbackStatus)??"not_installed"),p=R(((se=window.hellopackClient)==null?void 0:se.zenAdminStatus)??"not_installed");async function g(){const Oe=await Ve.get("connection/status");e.value=Oe.isActive,s.value=Oe.domain,n.value=Oe.maskedToken,o.value=Oe.tokenDomain,r.value=Oe.domainMismatch}async function v(Oe){const I=await Ve.post("connection/verify",{token:Oe});return I.success?(e.value=!0,s.value=I.domain,n.value=I.maskedToken,r.value=!1,o.value=""):await g(),I}async function k(){await Ve.post("connection/disconnect"),e.value=!1,n.value=""}async function O(){return Ve.post("connection/test")}async function b(){const Oe=await Ve.get("rollback/status");h.value=Oe.status}async function P(){const Oe=await Ve.get("zenadmin/status");p.value=Oe.status}async function A(Oe){const I=await Ve.post("settings/auto-updates",{enabled:Oe});return d.value=I.enabled,I}async function q(Oe){const I=await Ve.post("settings/beta-channel",{enabled:Oe});return f.value=I.enabled,I}return{isActive:e,tokenFromConstant:t,domain:s,maskedToken:n,tokenDomain:o,domainMismatch:r,isNetworkActive:a,isNetworkAdmin:l,networkAdminUrl:u,siteScoped:c,autoUpdates:d,betaChannel:f,wpRollbackStatus:h,zenAdminStatus:p,fetchStatus:g,verify:v,disconnect:k,testConnection:O,toggleAutoUpdates:A,toggleBetaChannel:q,refreshRollbackStatus:b,refreshZenAdminStatus:P}});var zi={};(function e(t,s,n,o){var r=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),a=typeof Path2D=="function"&&typeof DOMMatrix=="function",l=(function(){if(!t.OffscreenCanvas)return!1;try{var I=new OffscreenCanvas(1,1),T=I.getContext("2d");T.fillRect(0,0,1,1);var re=I.transferToImageBitmap();T.createPattern(re,"no-repeat")}catch{return!1}return!0})();function u(){}function c(I){var T=s.exports.Promise,re=T!==void 0?T:t.Promise;return typeof re=="function"?new re(I):(I(u,u),null)}var d=(function(I,T){return{transform:function(re){if(I)return re;if(T.has(re))return T.get(re);var le=new OffscreenCanvas(re.width,re.height),ce=le.getContext("2d");return ce.drawImage(re,0,0),T.set(re,le),le},clear:function(){T.clear()}}})(l,new Map),f=(function(){var I=Math.floor(16.666666666666668),T,re,le={},ce=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(T=function(xe){var Ce=Math.random();return le[Ce]=requestAnimationFrame(function E(oe){ce===oe||ce+I-1<oe?(ce=oe,delete le[Ce],xe()):le[Ce]=requestAnimationFrame(E)}),Ce},re=function(xe){le[xe]&&cancelAnimationFrame(le[xe])}):(T=function(xe){return setTimeout(xe,I)},re=function(xe){return clearTimeout(xe)}),{frame:T,cancel:re}})(),h=(function(){var I,T,re={};function le(ce){function xe(Ce,E){ce.postMessage({options:Ce||{},callback:E})}ce.init=function(E){var oe=E.transferControlToOffscreen();ce.postMessage({canvas:oe},[oe])},ce.fire=function(E,oe,ae){if(T)return xe(E,null),T;var de=Math.random().toString(36).slice(2);return T=c(function(ve){function _($){$.data.callback===de&&(delete re[de],ce.removeEventListener("message",_),T=null,d.clear(),ae(),ve())}ce.addEventListener("message",_),xe(E,de),re[de]=_.bind(null,{data:{callback:de}})}),T},ce.reset=function(){ce.postMessage({reset:!0});for(var E in re)re[E](),delete re[E]}}return function(){if(I)return I;if(!n&&r){var ce=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
`);try{I=new Worker(URL.createObjectURL(new Blob([ce])))}catch(xe){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",xe),null}le(I)}return I}})(),p={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function g(I,T){return T?T(I):I}function v(I){return I!=null}function k(I,T,re){return g(I&&v(I[T])?I[T]:p[T],re)}function O(I){return I<0?0:Math.floor(I)}function b(I,T){return Math.floor(Math.random()*(T-I))+I}function P(I){return parseInt(I,16)}function A(I){return I.map(q)}function q(I){var T=String(I).replace(/[^0-9a-f]/gi,"");return T.length<6&&(T=T[0]+T[0]+T[1]+T[1]+T[2]+T[2]),{r:P(T.substring(0,2)),g:P(T.substring(2,4)),b:P(T.substring(4,6))}}function z(I){var T=k(I,"origin",Object);return T.x=k(T,"x",Number),T.y=k(T,"y",Number),T}function H(I){I.width=document.documentElement.clientWidth,I.height=document.documentElement.clientHeight}function L(I){var T=I.getBoundingClientRect();I.width=T.width,I.height=T.height}function K(I){var T=document.createElement("canvas");return T.style.position="fixed",T.style.top="0px",T.style.left="0px",T.style.pointerEvents="none",T.style.zIndex=I,T}function B(I,T,re,le,ce,xe,Ce,E,oe){I.save(),I.translate(T,re),I.rotate(xe),I.scale(le,ce),I.arc(0,0,1,Ce,E,oe),I.restore()}function te(I){var T=I.angle*(Math.PI/180),re=I.spread*(Math.PI/180);return{x:I.x,y:I.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:I.startVelocity*.5+Math.random()*I.startVelocity,angle2D:-T+(.5*re-Math.random()*re),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:I.color,shape:I.shape,tick:0,totalTicks:I.ticks,decay:I.decay,drift:I.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:I.gravity*3,ovalScalar:.6,scalar:I.scalar,flat:I.flat}}function Z(I,T){T.x+=Math.cos(T.angle2D)*T.velocity+T.drift,T.y+=Math.sin(T.angle2D)*T.velocity+T.gravity,T.velocity*=T.decay,T.flat?(T.wobble=0,T.wobbleX=T.x+10*T.scalar,T.wobbleY=T.y+10*T.scalar,T.tiltSin=0,T.tiltCos=0,T.random=1):(T.wobble+=T.wobbleSpeed,T.wobbleX=T.x+10*T.scalar*Math.cos(T.wobble),T.wobbleY=T.y+10*T.scalar*Math.sin(T.wobble),T.tiltAngle+=.1,T.tiltSin=Math.sin(T.tiltAngle),T.tiltCos=Math.cos(T.tiltAngle),T.random=Math.random()+2);var re=T.tick++/T.totalTicks,le=T.x+T.random*T.tiltCos,ce=T.y+T.random*T.tiltSin,xe=T.wobbleX+T.random*T.tiltCos,Ce=T.wobbleY+T.random*T.tiltSin;if(I.fillStyle="rgba("+T.color.r+", "+T.color.g+", "+T.color.b+", "+(1-re)+")",I.beginPath(),a&&T.shape.type==="path"&&typeof T.shape.path=="string"&&Array.isArray(T.shape.matrix))I.fill(ke(T.shape.path,T.shape.matrix,T.x,T.y,Math.abs(xe-le)*.1,Math.abs(Ce-ce)*.1,Math.PI/10*T.wobble));else if(T.shape.type==="bitmap"){var E=Math.PI/10*T.wobble,oe=Math.abs(xe-le)*.1,ae=Math.abs(Ce-ce)*.1,de=T.shape.bitmap.width*T.scalar,ve=T.shape.bitmap.height*T.scalar,_=new DOMMatrix([Math.cos(E)*oe,Math.sin(E)*oe,-Math.sin(E)*ae,Math.cos(E)*ae,T.x,T.y]);_.multiplySelf(new DOMMatrix(T.shape.matrix));var $=I.createPattern(d.transform(T.shape.bitmap),"no-repeat");$.setTransform(_),I.globalAlpha=1-re,I.fillStyle=$,I.fillRect(T.x-de/2,T.y-ve/2,de,ve),I.globalAlpha=1}else if(T.shape==="circle")I.ellipse?I.ellipse(T.x,T.y,Math.abs(xe-le)*T.ovalScalar,Math.abs(Ce-ce)*T.ovalScalar,Math.PI/10*T.wobble,0,2*Math.PI):B(I,T.x,T.y,Math.abs(xe-le)*T.ovalScalar,Math.abs(Ce-ce)*T.ovalScalar,Math.PI/10*T.wobble,0,2*Math.PI);else if(T.shape==="star")for(var D=Math.PI/2*3,j=4*T.scalar,V=8*T.scalar,U=T.x,J=T.y,ee=5,Q=Math.PI/ee;ee--;)U=T.x+Math.cos(D)*V,J=T.y+Math.sin(D)*V,I.lineTo(U,J),D+=Q,U=T.x+Math.cos(D)*j,J=T.y+Math.sin(D)*j,I.lineTo(U,J),D+=Q;else I.moveTo(Math.floor(T.x),Math.floor(T.y)),I.lineTo(Math.floor(T.wobbleX),Math.floor(ce)),I.lineTo(Math.floor(xe),Math.floor(Ce)),I.lineTo(Math.floor(le),Math.floor(T.wobbleY));return I.closePath(),I.fill(),T.tick<T.totalTicks}function he(I,T,re,le,ce){var xe=T.slice(),Ce=I.getContext("2d"),E,oe,ae=c(function(de){function ve(){E=oe=null,Ce.clearRect(0,0,le.width,le.height),d.clear(),ce(),de()}function _(){n&&!(le.width===o.width&&le.height===o.height)&&(le.width=I.width=o.width,le.height=I.height=o.height),!le.width&&!le.height&&(re(I),le.width=I.width,le.height=I.height),Ce.clearRect(0,0,le.width,le.height),xe=xe.filter(function($){return Z(Ce,$)}),xe.length?E=f.frame(_):ve()}E=f.frame(_),oe=ve});return{addFettis:function(de){return xe=xe.concat(de),ae},canvas:I,promise:ae,reset:function(){E&&f.cancel(E),oe&&oe()}}}function ge(I,T){var re=!I,le=!!k(T||{},"resize"),ce=!1,xe=k(T,"disableForReducedMotion",Boolean),Ce=r&&!!k(T||{},"useWorker"),E=Ce?h():null,oe=re?H:L,ae=I&&E?!!I.__confetti_initialized:!1,de=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ve;function _(D,j,V){for(var U=k(D,"particleCount",O),J=k(D,"angle",Number),ee=k(D,"spread",Number),Q=k(D,"startVelocity",Number),X=k(D,"decay",Number),ye=k(D,"gravity",Number),ie=k(D,"drift",Number),me=k(D,"colors",A),Se=k(D,"ticks",Number),Te=k(D,"shapes"),Ne=k(D,"scalar"),Re=!!k(D,"flat"),et=z(D),tt=U,ut=[],vt=I.width*et.x,Qt=I.height*et.y;tt--;)ut.push(te({x:vt,y:Qt,angle:J,spread:ee,startVelocity:Q,color:me[tt%me.length],shape:Te[b(0,Te.length)],ticks:Se,decay:X,gravity:ye,drift:ie,scalar:Ne,flat:Re}));return ve?ve.addFettis(ut):(ve=he(I,ut,oe,j,V),ve.promise)}function $(D){var j=xe||k(D,"disableForReducedMotion",Boolean),V=k(D,"zIndex",Number);if(j&&de)return c(function(Q){Q()});re&&ve?I=ve.canvas:re&&!I&&(I=K(V),document.body.appendChild(I)),le&&!ae&&oe(I);var U={width:I.width,height:I.height};E&&!ae&&E.init(I),ae=!0,E&&(I.__confetti_initialized=!0);function J(){if(E){var Q={getBoundingClientRect:function(){if(!re)return I.getBoundingClientRect()}};oe(Q),E.postMessage({resize:{width:Q.width,height:Q.height}});return}U.width=U.height=null}function ee(){ve=null,le&&(ce=!1,t.removeEventListener("resize",J)),re&&I&&(document.body.contains(I)&&document.body.removeChild(I),I=null,ae=!1)}return le&&!ce&&(ce=!0,t.addEventListener("resize",J,!1)),E?E.fire(D,U,ee):_(D,U,ee)}return $.reset=function(){E&&E.reset(),ve&&ve.reset()},$}var Pe;function we(){return Pe||(Pe=ge(null,{useWorker:!0,resize:!0})),Pe}function ke(I,T,re,le,ce,xe,Ce){var E=new Path2D(I),oe=new Path2D;oe.addPath(E,new DOMMatrix(T));var ae=new Path2D;return ae.addPath(oe,new DOMMatrix([Math.cos(Ce)*ce,Math.sin(Ce)*ce,-Math.sin(Ce)*xe,Math.cos(Ce)*xe,re,le])),ae}function se(I){if(!a)throw new Error("path confetti are not supported in this browser");var T,re;typeof I=="string"?T=I:(T=I.path,re=I.matrix);var le=new Path2D(T),ce=document.createElement("canvas"),xe=ce.getContext("2d");if(!re){for(var Ce=1e3,E=Ce,oe=Ce,ae=0,de=0,ve,_,$=0;$<Ce;$+=2)for(var D=0;D<Ce;D+=2)xe.isPointInPath(le,$,D,"nonzero")&&(E=Math.min(E,$),oe=Math.min(oe,D),ae=Math.max(ae,$),de=Math.max(de,D));ve=ae-E,_=de-oe;var j=10,V=Math.min(j/ve,j/_);re=[V,0,0,V,-Math.round(ve/2+E)*V,-Math.round(_/2+oe)*V]}return{type:"path",path:T,matrix:re}}function Oe(I){var T,re=1,le="#000000",ce='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof I=="string"?T=I:(T=I.text,re="scalar"in I?I.scalar:re,ce="fontFamily"in I?I.fontFamily:ce,le="color"in I?I.color:le);var xe=10*re,Ce=""+xe+"px "+ce,E=new OffscreenCanvas(xe,xe),oe=E.getContext("2d");oe.font=Ce;var ae=oe.measureText(T),de=Math.ceil(ae.actualBoundingBoxRight+ae.actualBoundingBoxLeft),ve=Math.ceil(ae.actualBoundingBoxAscent+ae.actualBoundingBoxDescent),_=2,$=ae.actualBoundingBoxLeft+_,D=ae.actualBoundingBoxAscent+_;de+=_+_,ve+=_+_,E=new OffscreenCanvas(de,ve),oe=E.getContext("2d"),oe.font=Ce,oe.fillStyle=le,oe.fillText(T,$,D);var j=1/re;return{type:"bitmap",bitmap:E.transferToImageBitmap(),matrix:[j,0,0,j,-de*j/2,-ve*j/2]}}s.exports=function(){return we().apply(this,arguments)},s.exports.reset=function(){we().reset()},s.exports.create=ge,s.exports.shapeFromPath=se,s.exports.shapeFromText=Oe})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),zi,!1);const Fb=zi.exports;zi.exports.create;function Un(){return{success:e=>fs.success(e),error:e=>fs.error(e),warning:e=>fs.warning(e)}}const Ge=N({__name:"Card",props:{class:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"card",class:_e(i(Ie)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t.class))},[W(s.$slots,"default")],2))}}),er=N({__name:"CardContent",props:{class:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"card-content",class:_e(i(Ie)("px-6",t.class))},[W(s.$slots,"default")],2))}}),vn=N({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=e,o=un(s,"modelValue",t,{passive:!0,defaultValue:s.defaultValue});return(r,a)=>za((m(),F("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>ze(o)?o.value=l:null),"data-slot":"input",class:_e(i(Ie)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",s.class))},null,2)),[[Vl,i(o)]])}}),Es=N({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(wy),ue({"data-slot":"label"},i(s),{class:i(Ie)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t.class)}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["class"]))}}),Mc=N({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(Tb),ue({"data-slot":"separator"},i(s),{class:i(Ie)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}});function w(e){var t,s;return((s=(t=window.hellopackClient)==null?void 0:t.i18n)==null?void 0:s[e])??e}const qb={enabled:!1,name:"",logoUrl:"",supportUrl:""};function ys(){var l;const e=((l=window.hellopackClient)==null?void 0:l.whitelabel)??qb,t=Y(()=>e.enabled),s=Y(()=>(e.name||"").trim()),n=Y(()=>(e.logoUrl||"").trim()),o=Y(()=>(e.supportUrl||"").trim()),r=Y(()=>s.value||"HelloPack"),a=Y(()=>t.value&&!o.value);return{enabled:t,name:s,logoUrl:n,supportUrl:o,displayName:r,hideExternalLinks:a}}const Lb={class:"flex items-center gap-2 border-b border-border px-5 py-3"},Nb={class:"text-lg font-bold"},zb={class:"px-5 py-5"},Vb={class:"flex items-center gap-3 rounded-lg border border-border p-4 mb-4"},jb={class:"flex h-9 w-9 items-center justify-center rounded-full bg-muted"},Ub={class:"flex-1 min-w-0"},Hb={class:"text-xs text-muted-foreground"},Wb={class:"text-sm font-medium"},Kb={class:"text-sm text-muted-foreground mb-4"},Gb={class:"flex items-center gap-2 border-b border-border px-5 py-3"},Yb={class:"text-lg font-bold"},Xb={class:"px-5 py-5"},Zb={class:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-8"},Jb={class:"flex flex-col items-center text-center gap-2"},Qb={class:"flex h-10 w-10 items-center justify-center rounded-full bg-primary text-primary-foreground"},e_={class:"text-sm font-medium"},t_={class:"text-xs text-muted-foreground"},s_={class:"flex flex-col items-center text-center gap-2"},n_={class:"flex h-10 w-10 items-center justify-center rounded-full bg-primary text-primary-foreground"},o_={class:"text-sm font-medium"},r_={class:"text-xs text-muted-foreground"},i_={class:"flex flex-col items-center text-center gap-2"},a_={class:"flex h-10 w-10 items-center justify-center rounded-full bg-primary text-primary-foreground"},l_={class:"text-sm font-medium"},u_={class:"text-xs text-muted-foreground"},c_={class:"space-y-4"},d_=["href"],f_={class:"space-y-1.5"},p_={class:"flex items-center gap-2 max-w-sm"},h_={class:"space-y-2"},m_=N({__name:"LicenseSetup",setup(e){const t=ys(),s=Qo(),n=Un(),o=R(""),r=R(!1),a=R(!1),l=R(!1),u=window.hellopackClient.apiCreatorUrl,c=window.hellopackClient.domain;async function d(){try{await navigator.clipboard.writeText(c),l.value=!0,n.success(w("Domain copied to clipboard.")),setTimeout(()=>{l.value=!1},2e3)}catch{n.error(w("Failed to copy domain."))}}async function f(){a.value=!0;try{const p=await s.testConnection();n.success(p.message)}catch(p){const g=p instanceof Error?p.message:w("Connection test failed.");n.error(g)}finally{a.value=!1}}async function h(){if(!o.value||o.value.length<20){n.warning(w("Please enter a valid API token (min 20 characters)."));return}r.value=!0;try{const p=await s.verify(o.value);p.success?(n.success(p.message),Fb({particleCount:150,spread:80,origin:{y:.6}})):n.error(p.message)}catch(p){const g=p instanceof Error?p.message:w("Verification failed.");n.error(g)}finally{r.value=!1}}return(p,g)=>i(s).tokenFromConstant?(m(),M(i(Ge),{key:0,class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",Lb,[y("span",Nb,S(i(w)("API Connection")),1)]),y("div",zb,[y("div",Vb,[y("div",jb,[C(i(su),{class:"h-4 w-4 text-muted-foreground"})]),y("div",Ub,[y("div",Hb,S(i(w)("API Token")),1),y("div",Wb,S(i(w)("Defined in wp-config.php")),1)])]),y("p",Kb,S(i(w)("The API token is defined via the HELLOPACK_CLIENT_API_TOKEN constant. Verification will be retried automatically.")),1),C(i(Le),{disabled:a.value,onClick:f},{default:x(()=>[a.value?(m(),M(i(ds),{key:0,class:"animate-spin"})):(m(),M(i(Mo),{key:1,class:"h-4 w-4"})),G(" "+S(i(w)("Test Connection")),1)]),_:1},8,["disabled"])])]),_:1})):(m(),M(i(Ge),{key:1,class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",Gb,[y("span",Yb,S(i(w)("Connect to %s API").replace("%s",i(t).displayName.value)),1)]),y("div",Xb,[y("div",Zb,[y("div",Jb,[y("div",Qb,[C(i(ou),{class:"h-5 w-5"})]),y("div",null,[y("div",e_,S(i(w)("Get Token")),1),y("div",t_,S(i(t).enabled.value?i(w)("Step 1: Get your API token from your provider."):i(w)("Step 1: Open the API Key Generator on hellowp.io")),1)])]),y("div",s_,[y("div",n_,[C(i(nu),{class:"h-5 w-5"})]),y("div",null,[y("div",o_,S(i(w)("Paste Token")),1),y("div",r_,S(i(w)("Step 2: Your domain is automatically included. Copy it if needed.")),1)])]),y("div",i_,[y("div",a_,[C(i(ru),{class:"h-5 w-5"})]),y("div",null,[y("div",l_,S(i(w)("Verify")),1),y("div",u_,S(i(w)("Step 3: Paste the generated API token and click Save & Verify.")),1)])])]),C(i(Mc),{class:"mb-6"}),y("div",c_,[i(t).enabled.value?ne("",!0):(m(),M(i(Le),{key:0,"as-child":"",size:"lg"},{default:x(()=>[y("a",{href:i(u),target:"_blank",rel:"noopener noreferrer",class:"!text-primary-foreground no-underline"},[C(i(on),{class:"h-4 w-4"}),G(" "+S(i(w)("Open API Key Generator")),1)],8,d_)]),_:1})),y("div",f_,[C(i(Es),null,{default:x(()=>[G(S(i(w)("Your domain")),1)]),_:1}),y("div",p_,[C(i(vn),{"model-value":i(c),readonly:"",class:"font-mono",onFocus:g[0]||(g[0]=v=>v.target.select())},null,8,["model-value"]),C(i(Le),{variant:"outline",size:"icon",onClick:d},{default:x(()=>[l.value?(m(),M(i(ti),{key:0,class:"h-4 w-4"})):(m(),M(i(tu),{key:1,class:"h-4 w-4"}))]),_:1})])]),C(i(Mc)),y("form",{class:"max-w-lg space-y-4",onSubmit:wt(h,["prevent"])},[y("div",h_,[C(i(Es),null,{default:x(()=>[G(S(i(w)("API Token")),1)]),_:1}),C(i(vn),{modelValue:o.value,"onUpdate:modelValue":g[1]||(g[1]=v=>o.value=v),type:"password",placeholder:i(w)("Paste your %s API token here").replace("%s",i(t).displayName.value)},null,8,["modelValue","placeholder"])]),C(i(Le),{disabled:r.value,type:"submit",size:"lg"},{default:x(()=>[r.value?(m(),M(i(ds),{key:0,class:"animate-spin"})):ne("",!0),G(" "+S(i(w)("Save & Verify")),1)]),_:1},8,["disabled"])],32)])])]),_:1}))}});function Ic(){var e;return!!((e=window.hellopackClient)!=null&&e.isNetworkAdmin)}const Dc=nn("plugins",()=>{const e=R([]),t=R({total:0,active:0,installed:0,updates:0}),s=R(!1);async function n(){s.value=!0;try{const d=await Ve.get("plugins");e.value=d.items,t.value=d.stats}finally{s.value=!1}}async function o(){s.value=!0;try{const d=await Ve.post("plugins/refresh");e.value=d.items,t.value=d.stats}finally{s.value=!1}}async function r(d){return Ve.post("plugins/install",{plugin_id:d})}async function a(d){return Ve.post("plugins/update",{plugin_file:d})}async function l(d){return Ve.post("plugins/activate",{plugin_file:d,network:Ic()})}async function u(d){return Ve.post("plugins/deactivate",{plugin_file:d,network:Ic()})}async function c(d){return Ve.post("plugins/delete",{plugin_file:d})}return{items:e,stats:t,loading:s,fetch:n,refresh:o,install:r,update:a,activate:l,deactivate:u,deletePlugin:c}}),yn=N({__name:"Badge",props:{asChild:{type:Boolean},as:{},variant:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(qe),ue({"data-slot":"badge",class:i(Ie)(i(g_)({variant:e.variant}),t.class)},i(s)),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["class"]))}}),g_=li("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",success:"border-transparent bg-emerald-500 text-white [a&]:hover:bg-emerald-500/90",warning:"border-transparent bg-amber-500 text-white [a&]:hover:bg-amber-500/90"}},defaultVariants:{variant:"default"}}),tr=N({__name:"AlertDialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=Gt(e,t);return(r,a)=>(m(),M(i(Jg),ue({"data-slot":"alert-dialog"},i(o)),{default:x(l=>[W(r.$slots,"default",st(it(l)))]),_:3},16))}}),sr=N({__name:"AlertDialogAction",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(qg),ue(i(s),{class:i(Ie)(i(gn)(),t.class)}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["class"]))}}),nr=N({__name:"AlertDialogCancel",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(Ug),ue(i(s),{class:i(Ie)(i(gn)({variant:"outline"}),"mt-2 sm:mt-0",t.class)}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["class"]))}}),or=N({inheritAttrs:!1,__name:"AlertDialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const s=e,n=t,o=Xe(s,"class"),r=Gt(o,n);return(a,l)=>(m(),M(i(Xg),null,{default:x(()=>[C(i(Gg),{"data-slot":"alert-dialog-overlay",class:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"}),C(i(Vg),ue({"data-slot":"alert-dialog-content"},{...a.$attrs,...i(r)},{class:i(Ie)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",s.class)}),{default:x(()=>[W(a.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),rr=N({__name:"AlertDialogDescription",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(Wg),ue({"data-slot":"alert-dialog-description"},i(s),{class:i(Ie)("text-muted-foreground text-sm",t.class)}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["class"]))}}),ir=N({__name:"AlertDialogFooter",props:{class:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"alert-dialog-footer",class:_e(i(Ie)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class))},[W(s.$slots,"default")],2))}}),ar=N({__name:"AlertDialogHeader",props:{class:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"alert-dialog-header",class:_e(i(Ie)("flex flex-col gap-2 text-center sm:text-left",t.class))},[W(s.$slots,"default")],2))}}),lr=N({__name:"AlertDialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(ev),ue({"data-slot":"alert-dialog-title"},i(s),{class:i(Ie)("text-lg font-semibold",t.class)}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["class"]))}}),Vi=N({__name:"Switch",props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null]},disabled:{type:Boolean},id:{},value:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=e,n=t,o=Xe(s,"class"),r=Gt(o,n);return(a,l)=>(m(),M(i(Ib),ue({"data-slot":"switch"},i(r),{class:i(Ie)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s.class)}),{default:x(u=>[C(i(Bb),{"data-slot":"switch-thumb",class:_e(i(Ie)("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"))},{default:x(()=>[W(a.$slots,"thumb",st(it(u)))]),_:2},1032,["class"])]),_:3},16,["class"]))}});function Bc(){const e=new Date;return[e.getHours(),e.getMinutes(),e.getSeconds()].map(t=>String(t).padStart(2,"0")).join(":")}function v_(e){return new Promise(t=>setTimeout(t,e))}function y_(e){switch(e){case"update":return["Starting process…","Downloading update package…","Unpacking the update…","Installing the latest version…","Removing the old version…"];case"install":return["Starting process…","Downloading package…","Unpacking the package…","Installing…"];case"activate":return["Starting process…","Activating…","Verifying activation…"];case"deactivate":return["Starting process…","Deactivating…"];case"delete":return["Starting process…","Deactivating…","Removing files…","Cleaning up…"];default:return["Starting process…"]}}function b_(){const e=R(!1),t=R(""),s=R(!1),n=R([]),o=R(""),r=R("");let a=!1,l=!1;function u(v){t.value=v,e.value=!0,s.value=!0,n.value=[],o.value="",r.value="",a=!1,l=!1}async function c(v){const k=y_(v);for(let O=0;O<k.length&&!(l||(n.value.push({message:k[O],status:"in_progress",timestamp:Bc()}),await v_(a?150:500+Math.random()*500),l));O++)n.value[O].status="completed"}function d(){a=!0}function f(){l=!0}function h(v){for(const k of n.value)k.status==="in_progress"&&(k.status="completed");n.value.push({message:"Process completed.",status:"completed",timestamp:Bc()}),s.value=!1,r.value=v}function p(v){const k=n.value.find(O=>O.status==="in_progress");k&&(k.status="error"),s.value=!1,o.value=v}function g(){e.value=!1,l=!0}return{visible:e,title:t,loading:s,simSteps:n,error:o,success:r,open:u,simulate:c,onApiSuccess:d,onApiError:f,finish:h,fail:p,close:g}}const __=N({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=Gt(e,t);return(r,a)=>(m(),M(i(ju),ue({"data-slot":"dialog"},i(o)),{default:x(l=>[W(r.$slots,"default",st(it(l)))]),_:3},16))}}),w_=N({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(ec),ue({"data-slot":"dialog-overlay"},i(s),{class:i(Ie)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t.class)}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["class"]))}}),x_=N({inheritAttrs:!1,__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{},showCloseButton:{type:Boolean,default:!0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const s=e,n=t,o=Xe(s,"class"),r=Gt(o,n);return(a,l)=>(m(),M(i(Bg),null,{default:x(()=>[C(w_),C(i(Qu),ue({"data-slot":"dialog-content"},{...a.$attrs,...i(r)},{class:i(Ie)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",s.class)}),{default:x(()=>[W(a.$slots,"default"),e.showCloseButton?(m(),M(i(xi),{key:0,"data-slot":"dialog-close",class:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"},{default:x(()=>[C(i(Io)),l[0]||(l[0]=y("span",{class:"sr-only"},"Close",-1))]),_:1})):ne("",!0)]),_:3},16,["class"])]),_:3}))}}),k_=N({__name:"DialogFooter",props:{class:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"dialog-footer",class:_e(i(Ie)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class))},[W(s.$slots,"default")],2))}}),C_=N({__name:"DialogHeader",props:{class:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"dialog-header",class:_e(i(Ie)("flex flex-col gap-2 text-center sm:text-left",t.class))},[W(s.$slots,"default")],2))}}),S_=N({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class"),n=Kt(s);return(o,r)=>(m(),M(i(tc),ue({"data-slot":"dialog-title"},i(n),{class:i(Ie)("text-lg leading-none font-semibold",t.class)}),{default:x(()=>[W(o.$slots,"default")]),_:3},16,["class"]))}}),Rc=N({__name:"Alert",props:{class:{},variant:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"alert",class:_e(i(Ie)(i($_)({variant:e.variant}),t.class)),role:"alert"},[W(s.$slots,"default")],2))}}),Fc=N({__name:"AlertTitle",props:{class:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"alert-title",class:_e(i(Ie)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t.class))},[W(s.$slots,"default")],2))}}),$_=li("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",success:"text-success bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-success/90"}},defaultVariants:{variant:"default"}}),A_={class:"text-[#858585]"},Hn=N({__name:"InstallerModal",setup(e,{expose:t}){const s=b_(),n=R();Ke(()=>s.simSteps.value.length,async()=>{await nt(),n.value&&(n.value.scrollTop=n.value.scrollHeight)});async function o(l,u,c,d){s.open(l);const f=s.simulate(u);try{const h=await c();s.onApiSuccess(),await f,s.finish(h.message)}catch(h){s.onApiError(),await f,s.fail(h instanceof Error?h.message:w("Operation failed."))}await nt(),n.value&&(n.value.scrollTop=n.value.scrollHeight),r=d}let r=null;async function a(){s.close(),r&&(await r(),r=null)}return t({run:o}),(l,u)=>(m(),M(i(__),{open:i(s).visible.value,"onUpdate:open":u[0]||(u[0]=c=>{!c&&!i(s).loading.value&&a()})},{default:x(()=>[C(i(x_),{class:"sm:max-w-[600px]","show-close-button":!i(s).loading.value},{default:x(()=>[C(i(C_),null,{default:x(()=>[C(i(S_),null,{default:x(()=>[G(S(i(s).title.value),1)]),_:1})]),_:1}),y("div",null,[y("div",{ref_key:"logEl",ref:n,class:"bg-[#1e1e1e] text-[#d4d4d4] p-4 rounded-md font-mono text-[13px] leading-relaxed max-h-[300px] overflow-y-auto"},[(m(!0),F(be,null,Ue(i(s).simSteps.value,(c,d)=>(m(),F("div",{key:d,class:"flex items-start gap-2 py-0.5"},[c.status==="in_progress"?(m(),M(i(ds),{key:0,class:"h-4 w-4 animate-spin text-[#569cd6] shrink-0 mt-px"})):c.status==="completed"?(m(),M(i(ti),{key:1,class:"h-4 w-4 text-[#4ec9b0] shrink-0 mt-px"})):c.status==="error"?(m(),M(i(eu),{key:2,class:"h-4 w-4 text-[#f44747] shrink-0 mt-px"})):ne("",!0),y("span",null,[y("span",A_,"["+S(c.timestamp)+"]",1),G(" "+S(c.message),1)])]))),128))],512),i(s).error.value?(m(),M(i(Rc),{key:0,variant:"destructive",class:"mt-3"},{default:x(()=>[C(i(eu),{class:"h-4 w-4"}),C(i(Fc),null,{default:x(()=>[G(S(i(s).error.value),1)]),_:1})]),_:1})):ne("",!0),i(s).success.value?(m(),M(i(Rc),{key:1,variant:"success",class:"mt-3"},{default:x(()=>[C(i(Ql),{class:"h-4 w-4"}),C(i(Fc),null,{default:x(()=>[G(S(i(s).success.value),1)]),_:1})]),_:1})):ne("",!0)]),i(s).loading.value?ne("",!0):(m(),M(i(k_),{key:0},{default:x(()=>[C(i(Le),{onClick:a},{default:x(()=>[G(S(i(w)("Done")),1)]),_:1})]),_:1}))]),_:1},8,["show-close-button"])]),_:1},8,["open"]))}}),P_={class:"flex items-center justify-between border-b border-border px-5 py-3"},T_={class:"text-lg font-bold"},E_={class:"px-5 py-5"},O_={class:"space-y-4"},M_={class:"flex items-center gap-3 rounded-lg border border-border p-4"},I_={class:"flex h-9 w-9 items-center justify-center rounded-full bg-muted"},D_={class:"flex-1 min-w-0"},B_={class:"text-xs text-muted-foreground"},R_={class:"text-sm font-medium truncate"},F_={class:"flex items-center gap-3 rounded-lg border border-border p-4"},q_={class:"flex h-9 w-9 items-center justify-center rounded-full bg-muted"},L_={class:"flex-1 min-w-0"},N_={class:"text-xs text-muted-foreground"},z_={key:0,class:"text-sm font-medium"},V_={key:1,class:"text-sm font-mono truncate"},j_={class:"flex flex-col sm:flex-row gap-2.5 mt-5"},U_={class:"flex items-center gap-2 border-b border-border px-5 py-3"},H_={class:"text-lg font-bold"},W_={class:"divide-y divide-border px-5"},K_={class:"flex items-center gap-3 py-4"},G_={class:"flex-1 min-w-0"},Y_={class:"text-sm font-medium"},X_={class:"text-xs text-muted-foreground"},Z_={class:"flex items-center gap-3 py-4"},J_={class:"flex-1 min-w-0"},Q_={class:"text-sm font-medium"},e1={class:"text-xs text-muted-foreground"},t1={class:"flex items-center gap-3 py-4"},s1={class:"flex-1 min-w-0"},n1={class:"text-sm font-medium"},o1={class:"text-xs text-muted-foreground"},r1={class:"flex items-center gap-3 py-4"},i1={class:"flex-1 min-w-0"},a1={class:"text-sm font-medium"},l1={class:"text-xs text-muted-foreground"},u1=N({__name:"LicenseActive",setup(e){const t=ys(),s=Qo(),n=Dc(),o=Un(),r=R(!1),a=R(!1),l=R(!1),u=R(),c=R();function d(){var P;(P=u.value)==null||P.run(`${w("Installing")} WP Rollback Pro`,"install",()=>n.install(927073909),()=>s.refreshRollbackStatus())}function f(){var P;(P=u.value)==null||P.run(`${w("Activating")} WP Rollback Pro`,"activate",()=>n.activate("wp-rollback-pro/wp-rollback-pro.php"),()=>s.refreshRollbackStatus())}function h(){var P;(P=c.value)==null||P.run(`${w("Installing")} ZenAdmin`,"install",()=>n.install(3467523165),()=>s.refreshZenAdminStatus())}function p(){var P;(P=c.value)==null||P.run(`${w("Activating")} ZenAdmin`,"activate",()=>n.activate("lw-zenadmin/lw-zenadmin.php"),()=>s.refreshZenAdminStatus())}async function g(){try{await navigator.clipboard.writeText(s.domain),o.success(w("Domain copied to clipboard."))}catch{o.error(w("Failed to copy domain."))}}async function v(){l.value=!1,r.value=!0;try{await s.disconnect(),o.success(w("API disconnected."))}catch(P){const A=P instanceof Error?P.message:w("Disconnect failed.");o.error(A)}finally{r.value=!1}}async function k(P){try{await s.toggleAutoUpdates(P)}catch(A){const q=A instanceof Error?A.message:w("Operation failed.");o.error(q)}}async function O(P){try{await s.toggleBetaChannel(P)}catch(A){const q=A instanceof Error?A.message:w("Operation failed.");o.error(q)}}async function b(){a.value=!0;try{const P=await s.testConnection();o.success(P.message)}catch(P){const A=P instanceof Error?P.message:w("Connection test failed.");o.error(A)}finally{a.value=!1}}return(P,A)=>(m(),F(be,null,[C(i(Ge),{class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",P_,[y("span",T_,S(i(w)("API Connection")),1),C(i(yn),{variant:"success"},{default:x(()=>[G(S(i(w)("Active")),1)]),_:1})]),y("div",E_,[y("div",O_,[y("div",M_,[y("div",I_,[C(i(nu),{class:"h-4 w-4 text-muted-foreground"})]),y("div",D_,[y("div",B_,S(i(w)("Registered Domain")),1),y("div",R_,S(i(s).domain),1)]),C(i(Le),{variant:"ghost",size:"sm",onClick:g},{default:x(()=>[C(i(tu),{class:"h-4 w-4"}),G(" "+S(i(w)("Copy")),1)]),_:1})]),y("div",F_,[y("div",q_,[i(s).tokenFromConstant?(m(),M(i(su),{key:0,class:"h-4 w-4 text-muted-foreground"})):(m(),M(i(ou),{key:1,class:"h-4 w-4 text-muted-foreground"}))]),y("div",L_,[y("div",N_,S(i(w)("API Token")),1),i(s).tokenFromConstant?(m(),F("div",z_,S(i(w)("Defined in wp-config.php")),1)):(m(),F("div",V_,S(i(s).maskedToken),1))])])]),y("div",j_,[C(i(Le),{disabled:a.value,onClick:b},{default:x(()=>[a.value?(m(),M(i(ds),{key:0,class:"animate-spin"})):ne("",!0),G(" "+S(i(w)("Test Connection")),1)]),_:1},8,["disabled"]),i(s).tokenFromConstant?ne("",!0):(m(),M(i(Le),{key:0,variant:"destructive",disabled:r.value,onClick:A[0]||(A[0]=q=>l.value=!0)},{default:x(()=>[r.value?(m(),M(i(ds),{key:0,class:"animate-spin"})):ne("",!0),G(" "+S(i(w)("Disconnect")),1)]),_:1},8,["disabled"]))])])]),_:1}),C(i(Ge),{class:"gap-0 py-0 overflow-hidden mt-4"},{default:x(()=>[y("div",U_,[y("span",H_,S(i(w)("Settings")),1)]),y("div",W_,[y("div",K_,[C(i(Mo),{class:"h-5 w-5 shrink-0 text-muted-foreground"}),y("div",G_,[y("div",Y_,S(i(w)("Auto-Updates")),1),y("div",X_,S(i(w)("Enable WordPress auto-update toggles for %s-managed plugins on the Plugins page.").replace("%s",i(t).displayName.value)),1)]),C(i(Vi),{"model-value":i(s).autoUpdates,"onUpdate:modelValue":k},null,8,["model-value"])]),y("div",Z_,[C(i($p),{class:"h-5 w-5 shrink-0 text-muted-foreground"}),y("div",J_,[y("div",Q_,S(i(w)("Beta Channel")),1),y("div",e1,S(i(w)("Receive beta versions of %s for early testing.").replace("%s",i(t).displayName.value)),1)]),C(i(Vi),{"model-value":i(s).betaChannel,"onUpdate:modelValue":O},null,8,["model-value"])]),y("div",t1,[C(i(Tp),{class:"h-5 w-5 shrink-0 text-muted-foreground"}),y("div",s1,[y("div",n1,S(i(w)("Plugin Rollback")),1),y("div",o1,S(i(w)("Enables version rollback for %s-managed plugins and themes. Requires WP Rollback Pro.").replace("%s",i(t).displayName.value)),1)]),i(s).wpRollbackStatus==="active"?(m(),M(i(yn),{key:0,variant:"success"},{default:x(()=>[G(S(i(w)("Active")),1)]),_:1})):i(s).wpRollbackStatus==="installed"?(m(),M(i(Le),{key:1,variant:"outline",size:"sm",onClick:f},{default:x(()=>[G(S(i(w)("Activate")),1)]),_:1})):(m(),M(i(Le),{key:2,variant:"outline",size:"sm",onClick:d},{default:x(()=>[G(S(i(w)("Install")),1)]),_:1}))]),y("div",r1,[C(i(ru),{class:"h-5 w-5 shrink-0 text-muted-foreground"}),y("div",i1,[y("div",a1,S(i(w)("ZenAdmin")),1),y("div",l1,S(i(w)("Cleaner admin experience — replaces the deprecated Admin Notification Cleaner module.")),1)]),i(s).zenAdminStatus==="active"?(m(),M(i(yn),{key:0,variant:"success"},{default:x(()=>[G(S(i(w)("Active")),1)]),_:1})):i(s).zenAdminStatus==="installed"?(m(),M(i(Le),{key:1,variant:"outline",size:"sm",onClick:p},{default:x(()=>[G(S(i(w)("Activate")),1)]),_:1})):(m(),M(i(Le),{key:2,variant:"outline",size:"sm",onClick:h},{default:x(()=>[G(S(i(w)("Install")),1)]),_:1}))])])]),_:1}),C(i(tr),{open:l.value,"onUpdate:open":A[1]||(A[1]=q=>l.value=q)},{default:x(()=>[C(i(or),null,{default:x(()=>[C(i(ar),null,{default:x(()=>[C(i(lr),null,{default:x(()=>[G(S(i(w)("Disconnect")),1)]),_:1}),C(i(rr),null,{default:x(()=>[G(S(i(w)("Are you sure you want to disconnect?")),1)]),_:1})]),_:1}),C(i(ir),null,{default:x(()=>[C(i(nr),null,{default:x(()=>[G(S(i(w)("Cancel")),1)]),_:1}),C(i(sr),{onClick:v},{default:x(()=>[G(S(i(w)("Disconnect")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),C(Hn,{ref_key:"rollbackInstallerRef",ref:u},null,512),C(Hn,{ref_key:"zenAdminInstallerRef",ref:c},null,512)],64))}}),c1={class:"rounded-lg border border-border bg-card px-5 py-4 mb-6"},d1={class:"flex items-center gap-2.5"},f1=["src"],p1={class:"!text-2xl !m-0 font-bold"},h1={class:"text-sm text-muted-foreground mt-1"},bs=N({__name:"PageHeader",props:{title:{},description:{},icon:{}},setup(e){return(t,s)=>(m(),F("div",c1,[y("div",d1,[e.icon?(m(),F("img",{key:0,src:e.icon,alt:"",class:"h-7 w-7"},null,8,f1)):ne("",!0),y("h2",p1,S(e.title),1)]),y("p",h1,S(e.description),1),W(t.$slots,"default")]))}}),m1=N({__name:"SettingsView",setup(e){var o;const t=((o=window.hellopackClient)==null?void 0:o.pluginUrl)??"",s=Qo(),n=ys();return(r,a)=>(m(),F("div",null,[C(bs,{title:i(w)("Settings"),description:i(w)("Manage your %s API connection and plugin settings.").replace("%s",i(n).displayName.value),icon:i(t)+"assets/img/icon-settings.svg"},null,8,["title","description","icon"]),i(s).isActive?(m(),M(u1,{key:0})):(m(),M(m_,{key:1}))]))}});function ji(e){const t=R(""),s=R("all"),n=R(12),o=R(1),r=Y(()=>{let c=e.value;if(t.value){const d=t.value.toLowerCase();c=c.filter(f=>f.name.toLowerCase().includes(d))}return s.value!=="all"&&(s.value==="updates"?c=c.filter(d=>d.hasUpdate):s.value==="installed"?c=c.filter(d=>d.status==="active"||d.status==="installed"):c=c.filter(d=>d.status===s.value)),c}),a=Y(()=>Math.ceil(r.value.length/n.value)),l=Y(()=>{const c=(o.value-1)*n.value;return r.value.slice(c,c+n.value)});function u(){o.value=1}return{search:t,statusFilter:s,perPage:n,currentPage:o,filteredItems:r,paginatedItems:l,totalPages:a,resetPage:u}}const Ui=N({__name:"Pagination",props:{page:{},defaultPage:{},itemsPerPage:{},total:{},siblingCount:{},disabled:{type:Boolean},showEdges:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:page"],setup(e,{emit:t}){const s=e,n=t,o=Xe(s,"class"),r=Gt(o,n);return(a,l)=>(m(),M(i($y),ue({"data-slot":"pagination"},i(r),{class:i(Ie)("mx-auto flex w-full justify-center",s.class)}),{default:x(u=>[W(a.$slots,"default",st(it(u)))]),_:3},16,["class"]))}}),Hi=N({__name:"PaginationContent",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(Ey),ue({"data-slot":"pagination-content"},i(s),{class:i(Ie)("flex flex-row items-center gap-1",t.class)}),{default:x(r=>[W(n.$slots,"default",st(it(r)))]),_:3},16,["class"]))}}),Wi=N({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class");return(n,o)=>(m(),M(i(ky),ue({"data-slot":"pagination-ellipsis"},i(s),{class:i(Ie)("flex size-9 items-center justify-center",t.class)}),{default:x(()=>[W(n.$slots,"default",{},()=>[C(i(Sp),{class:"size-4"}),o[0]||(o[0]=y("span",{class:"sr-only"},"More pages",-1))])]),_:3},16,["class"]))}}),Ki=N({__name:"PaginationItem",props:{value:{},asChild:{type:Boolean},as:{},size:{default:"default"},class:{},isActive:{type:Boolean}},setup(e){const t=e,s=Xe(t,"class","size","isActive");return(n,o)=>(m(),M(i(My),ue({"data-slot":"pagination-item"},i(s),{class:i(Ie)(i(gn)({variant:e.isActive?"default":"ghost",size:e.size}),e.isActive&&"bg-foreground text-background hover:bg-foreground/90 hover:text-background",t.class)}),{default:x(()=>[W(n.$slots,"default")]),_:3},16,["class"]))}}),Gi=N({__name:"PaginationNext",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{}},setup(e){const t=e,s=Xe(t,"class","size"),n=Kt(s);return(o,r)=>(m(),M(i(Dy),ue({"data-slot":"pagination-next",class:i(Ie)(i(gn)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},i(n)),{default:x(()=>[W(o.$slots,"default",{},()=>[r[0]||(r[0]=y("span",{class:"hidden sm:block"},"Next",-1)),C(i(bp))])]),_:3},16,["class"]))}}),Yi=N({__name:"PaginationPrevious",props:{asChild:{type:Boolean},as:{},size:{default:"default"},class:{}},setup(e){const t=e,s=Xe(t,"class","size"),n=Kt(s);return(o,r)=>(m(),M(i(Ry),ue({"data-slot":"pagination-previous",class:i(Ie)(i(gn)({variant:"ghost",size:e.size}),"gap-1 px-2.5 sm:pr-2.5",t.class)},i(n)),{default:x(()=>[W(o.$slots,"default",{},()=>[C(i(_p)),r[0]||(r[0]=y("span",{class:"hidden sm:block"},"Previous",-1))])]),_:3},16,["class"]))}}),g1={class:"grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4 mb-4"},v1=["src"],y1={key:1,class:"h-8 w-8 shrink-0"},b1={class:"text-2xl font-bold leading-tight"},_1={class:"text-xs text-muted-foreground mt-0.5"},w1=["src"],x1={class:"text-2xl font-bold leading-tight text-success"},k1={class:"text-xs text-muted-foreground mt-0.5"},C1=["src"],S1={class:"text-2xl font-bold leading-tight"},$1={class:"text-xs text-muted-foreground mt-0.5"},A1=["src"],P1={class:"text-xs text-muted-foreground mt-0.5"},Xi=N({__name:"StatCards",props:{stats:{},currentFilter:{},icon:{},activeIcon:{},installedIcon:{},updatesIcon:{}},emits:["update:filter"],setup(e,{emit:t}){const s=t;return(n,o)=>(m(),F("div",g1,[C(i(Ge),{class:_e(["py-3 cursor-pointer transition-all hover:bg-accent",{"border-ring ring-[3px] ring-ring/50":e.currentFilter==="all"}]),onClick:o[0]||(o[0]=r=>s("update:filter","all"))},{default:x(()=>[C(i(er),{class:"px-4 py-2 flex items-center gap-3"},{default:x(()=>[e.icon?(m(),F("img",{key:0,src:e.icon,alt:"",class:"h-11 w-11 shrink-0 opacity-60"},null,8,v1)):(m(),F("div",y1)),y("div",null,[y("div",b1,S(e.stats.total),1),y("div",_1,S(i(w)("Total")),1)])]),_:1})]),_:1},8,["class"]),C(i(Ge),{class:_e(["py-3 cursor-pointer transition-all hover:bg-accent",{"border-ring ring-[3px] ring-ring/50":e.currentFilter==="active"}]),onClick:o[1]||(o[1]=r=>s("update:filter","active"))},{default:x(()=>[C(i(er),{class:"px-4 py-2 flex items-center gap-3"},{default:x(()=>[e.activeIcon?(m(),F("img",{key:0,src:e.activeIcon,alt:"",class:"h-11 w-11 shrink-0 opacity-60"},null,8,w1)):(m(),M(i(Ql),{key:1,class:"h-8 w-8 text-success/60 shrink-0"})),y("div",null,[y("div",x1,S(e.stats.active),1),y("div",k1,S(i(w)("Active")),1)])]),_:1})]),_:1},8,["class"]),C(i(Ge),{class:_e(["py-3 cursor-pointer transition-all hover:bg-accent",{"border-ring ring-[3px] ring-ring/50":e.currentFilter==="installed"}]),onClick:o[2]||(o[2]=r=>s("update:filter","installed"))},{default:x(()=>[C(i(er),{class:"px-4 py-2 flex items-center gap-3"},{default:x(()=>[e.installedIcon?(m(),F("img",{key:0,src:e.installedIcon,alt:"",class:"h-11 w-11 shrink-0 opacity-60"},null,8,C1)):(m(),M(i(Pp),{key:1,class:"h-8 w-8 text-muted-foreground/60 shrink-0"})),y("div",null,[y("div",S1,S(e.stats.installed),1),y("div",$1,S(i(w)("Installed")),1)])]),_:1})]),_:1},8,["class"]),C(i(Ge),{class:_e(["py-3 cursor-pointer transition-all hover:bg-accent",{"border-ring ring-[3px] ring-ring/50":e.currentFilter==="updates"}]),onClick:o[3]||(o[3]=r=>s("update:filter","updates"))},{default:x(()=>[C(i(er),{class:"px-4 py-2 flex items-center gap-3"},{default:x(()=>[e.updatesIcon?(m(),F("img",{key:0,src:e.updatesIcon,alt:"",class:"h-11 w-11 shrink-0 opacity-60"},null,8,A1)):(m(),M(i(xp),{key:1,class:_e(["h-8 w-8 shrink-0",e.stats.updates>0?"text-warning/60":"text-muted-foreground/60"])},null,8,["class"])),y("div",null,[y("div",{class:_e(["text-2xl font-bold leading-tight",{"text-warning":e.stats.updates>0}])},S(e.stats.updates),3),y("div",P1,S(i(w)("Updates")),1)])]),_:1})]),_:1},8,["class"])]))}}),qc=N({__name:"Select",props:{open:{type:Boolean},defaultOpen:{type:Boolean},defaultValue:{},modelValue:{},by:{type:[String,Function]},dir:{},multiple:{type:Boolean},autocomplete:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:["update:modelValue","update:open"],setup(e,{emit:t}){const o=Gt(e,t);return(r,a)=>(m(),M(i(Vy),ue({"data-slot":"select"},i(o)),{default:x(l=>[W(r.$slots,"default",st(it(l)))]),_:3},16))}}),Lc=N({inheritAttrs:!1,__name:"SelectContent",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["closeAutoFocus","escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const s=e,n=t,o=Xe(s,"class"),r=Gt(o,n);return(a,l)=>(m(),M(i(hb),null,{default:x(()=>[C(i(nb),ue({"data-slot":"select-content"},{...a.$attrs,...i(r)},{class:i(Ie)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--reka-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",e.position==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s.class)}),{default:x(()=>[C(i(O1)),C(i(Sb),{class:_e(i(Ie)("p-1",e.position==="popper"&&"h-[var(--reka-select-trigger-height)] w-full min-w-[var(--reka-select-trigger-width)] scroll-my-1"))},{default:x(()=>[W(a.$slots,"default")]),_:3},8,["class"]),C(i(E1))]),_:3},16,["class"])]),_:3}))}}),T1={class:"absolute right-2 flex size-3.5 items-center justify-center"},Nc=N({__name:"SelectItem",props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class"),n=Kt(s);return(o,r)=>(m(),M(i(lb),ue({"data-slot":"select-item"},i(n),{class:i(Ie)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t.class)}),{default:x(()=>[y("span",T1,[C(i(cb),null,{default:x(()=>[W(o.$slots,"indicator-icon",{},()=>[C(i(ti),{class:"size-4"})])]),_:3})]),C(i(fb),null,{default:x(()=>[W(o.$slots,"default")]),_:3})]),_:3},16,["class"]))}}),E1=N({__name:"SelectScrollDownButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class"),n=Kt(s);return(o,r)=>(m(),M(i(vb),ue({"data-slot":"select-scroll-down-button"},i(n),{class:i(Ie)("flex cursor-default items-center justify-center py-1",t.class)}),{default:x(()=>[W(o.$slots,"default",{},()=>[C(i(Jl),{class:"size-4"})])]),_:3},16,["class"]))}}),O1=N({__name:"SelectScrollUpButton",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,s=Xe(t,"class"),n=Kt(s);return(o,r)=>(m(),M(i(bb),ue({"data-slot":"select-scroll-up-button"},i(n),{class:i(Ie)("flex cursor-default items-center justify-center py-1",t.class)}),{default:x(()=>[W(o.$slots,"default",{},()=>[C(i(wp),{class:"size-4"})])]),_:3},16,["class"]))}}),zc=N({__name:"SelectTrigger",props:{disabled:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},class:{},size:{default:"default"}},setup(e){const t=e,s=Xe(t,"class","size"),n=Kt(s);return(o,r)=>(m(),M(i(wb),ue({"data-slot":"select-trigger","data-size":e.size},i(n),{class:i(Ie)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class)}),{default:x(()=>[W(o.$slots,"default"),C(i(rb),{"as-child":""},{default:x(()=>[C(i(Jl),{class:"size-4 opacity-50"})]),_:1})]),_:3},16,["data-size","class"]))}}),Vc=N({__name:"SelectValue",props:{placeholder:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(s,n)=>(m(),M(i(kb),ue({"data-slot":"select-value"},t),{default:x(()=>[W(s.$slots,"default")]),_:3},16))}}),M1={class:"rounded-lg border border-border bg-card p-3 space-y-3 sm:space-y-0 sm:flex sm:gap-3 sm:items-center sm:flex-wrap"},I1={class:"relative flex-1 min-w-[200px]"},D1={class:"flex gap-2 items-center flex-wrap"},Zi=N({__name:"ItemToolbar",props:el({loading:{type:Boolean}},{search:{default:""},searchModifiers:{},statusFilter:{default:"all"},statusFilterModifiers:{},perPage:{default:12},perPageModifiers:{}}),emits:el(["refresh","search","filter"],["update:search","update:statusFilter","update:perPage"]),setup(e,{emit:t}){const s=qr(e,"search"),n=qr(e,"statusFilter"),o=qr(e,"perPage"),r=t,a=[{value:"all",label:w("All")},{value:"active",label:w("Active")},{value:"installed",label:w("Installed")},{value:"available",label:w("Available")},{value:"updates",label:w("Updates")}],l=[12,24,48];return(u,c)=>(m(),F("div",M1,[y("div",I1,[C(i(Lp),{class:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),C(i(vn),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=d=>s.value=d),placeholder:i(w)("Search..."),class:"pl-9 h-10 text-sm",onInput:c[1]||(c[1]=d=>r("search"))},null,8,["modelValue","placeholder"])]),y("div",D1,[C(i(qc),{"model-value":n.value,"onUpdate:modelValue":c[2]||(c[2]=d=>{n.value=String(d),r("filter")})},{default:x(()=>[C(i(zc),{class:"w-[130px] sm:w-[140px] h-10"},{default:x(()=>[C(i(Vc))]),_:1}),C(i(Lc),null,{default:x(()=>[(m(),F(be,null,Ue(a,d=>C(i(Nc),{key:d.value,value:d.value},{default:x(()=>[G(S(d.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"]),C(i(qc),{"model-value":String(o.value),"onUpdate:modelValue":c[3]||(c[3]=d=>{o.value=Number(d),r("filter")})},{default:x(()=>[C(i(zc),{class:"w-[100px] sm:w-[110px] h-10"},{default:x(()=>[C(i(Vc))]),_:1}),C(i(Lc),null,{default:x(()=>[(m(),F(be,null,Ue(l,d=>C(i(Nc),{key:d,value:String(d)},{default:x(()=>[G(S(d)+" / "+S(i(w)("page")),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"]),C(i(Le),{variant:"outline",size:"icon",class:"h-10 w-10",disabled:e.loading,onClick:c[4]||(c[4]=d=>r("refresh"))},{default:x(()=>[e.loading?(m(),M(i(ds),{key:0,class:"animate-spin"})):(m(),M(i(Mo),{key:1}))]),_:1},8,["disabled"])])]))}}),B1={class:"flex items-center gap-3 flex-1 min-w-0"},R1=["src"],F1={key:1,class:"w-10 h-10 sm:w-12 sm:h-12 rounded bg-muted flex items-center justify-center shrink-0 self-start mt-0.5"},q1={class:"flex-1 min-w-0"},L1={class:"flex items-center gap-2 flex-wrap"},N1={class:"text-sm sm:text-base font-bold"},z1={class:"text-[11px] text-muted-foreground/60"},V1={class:"text-[11px] text-muted-foreground/60"},j1={class:"text-sm text-muted-foreground mt-0.5 truncate"},U1={class:"flex gap-1.5 shrink-0 pl-13 sm:pl-0"},H1=N({__name:"PluginListRow",props:{plugin:{}},emits:["action"],setup(e,{emit:t}){const s=t;function n(o,r){return r?"border-l-amber-500":o==="active"?"border-l-emerald-500":o==="installed"?"border-l-muted-foreground/30":"border-l-transparent"}return(o,r)=>(m(),F("div",{class:_e(["flex flex-col sm:flex-row sm:items-center gap-3 px-4 py-3.5 hover:bg-muted/50 transition-colors border-l-3",n(e.plugin.status,e.plugin.hasUpdate)])},[y("div",B1,[e.plugin.thumbnail?(m(),F("img",{key:0,src:e.plugin.thumbnail,class:"w-10 h-10 sm:w-12 sm:h-12 rounded object-cover shrink-0 self-start mt-0.5",alt:"",onError:r[0]||(r[0]=a=>a.target.style.display="none")},null,40,R1)):(m(),F("div",F1,[C(i(qp),{class:"h-5 w-5 text-muted-foreground/40"})])),y("div",q1,[y("div",L1,[y("span",N1,S(e.plugin.name),1),y("span",z1,S(e.plugin.author),1),y("span",V1,"v"+S(e.plugin.version),1)]),y("div",j1,S(e.plugin.description),1)])]),y("div",U1,[e.plugin.hasUpdate?(m(),M(i(Le),{key:0,variant:"warning",size:"sm",onClick:r[1]||(r[1]=a=>s("action","update"))},{default:x(()=>[G(S(i(w)("Update")),1)]),_:1})):ne("",!0),e.plugin.status==="active"?(m(),M(i(Le),{key:1,variant:"outline",size:"sm",onClick:r[2]||(r[2]=a=>s("action","deactivate"))},{default:x(()=>[G(S(i(w)("Deactivate")),1)]),_:1})):e.plugin.status==="installed"?(m(),F(be,{key:2},[C(i(Le),{variant:"success",size:"sm",onClick:r[3]||(r[3]=a=>s("action","activate"))},{default:x(()=>[G(S(i(w)("Activate")),1)]),_:1}),C(i(Le),{variant:"destructive",size:"sm",onClick:r[4]||(r[4]=a=>s("action","delete"))},{default:x(()=>[G(S(i(w)("Delete")),1)]),_:1})],64)):(m(),M(i(Le),{key:3,size:"sm",onClick:r[5]||(r[5]=a=>s("action","install"))},{default:x(()=>[G(S(i(w)("Install")),1)]),_:1}))])],2))}}),W1={class:"flex flex-col items-center justify-center text-center"},K1=["src"],G1={class:"text-lg font-bold mb-1"},Y1={class:"text-sm text-muted-foreground mb-5"},ur=N({__name:"EmptyState",props:{description:{}},emits:["reset"],setup(e,{emit:t}){var o;const s=t,n=((o=window.hellopackClient)==null?void 0:o.pluginUrl)??"";return(r,a)=>(m(),M(i(Ge),{class:"mt-4 py-12 px-6"},{default:x(()=>[y("div",W1,[i(n)?(m(),F("img",{key:0,src:i(n)+"assets/img/empty-state.svg",alt:"",class:"h-20 w-20 mb-4"},null,8,K1)):ne("",!0),y("h3",G1,S(e.description),1),y("p",Y1,S(i(w)("Try adjusting the search or filter to find what you are looking for.")),1),C(i(Le),{variant:"outline",onClick:a[0]||(a[0]=l=>s("reset"))},{default:x(()=>[G(S(i(w)("Clear Filters")),1)]),_:1})])]),_:1}))}}),X1={class:"flex items-center gap-2 border-b border-border px-5 py-3"},Z1={class:"text-lg font-bold"},J1={class:"text-sm text-muted-foreground"},Q1={class:"divide-y divide-border"},e0={key:2,class:"flex justify-center mt-5"},t0=N({__name:"PluginsView",setup(e){var p;const t=ys(),s=((p=window.hellopackClient)==null?void 0:p.pluginUrl)??"",n=Dc(),{items:o}=Oo(n),r=R(),a=ji(o),l=Pn("initialSearch"),u=R(!1),c=R(null);Qe(()=>{l!=null&&l.value&&(a.search.value=l.value,l.value=""),n.fetch()}),Ke(()=>l==null?void 0:l.value,g=>{g&&(a.search.value=g,a.resetPage(),l.value="")});async function d(){a.resetPage(),await n.refresh()}function f(g,v){if(r.value){if(g==="delete"){c.value=v,u.value=!0;return}g==="activate"?r.value.run(`${w("Activating")} ${v.name}`,"activate",()=>n.activate(v.file),()=>n.fetch()):g==="deactivate"?r.value.run(`${w("Deactivating")} ${v.name}`,"deactivate",()=>n.deactivate(v.file),()=>n.fetch()):g==="install"?r.value.run(`${w("Installing")} ${v.name}`,"install",()=>n.install(v.id),()=>n.fetch()):g==="update"&&r.value.run(`${w("Updating")} ${v.name}`,"update",()=>n.update(v.file),()=>n.fetch())}}function h(){if(!c.value||!r.value)return;const g=c.value;u.value=!1,c.value=null,r.value.run(`${w("Deleting")} ${g.name}`,"delete",()=>n.deletePlugin(g.file),()=>n.fetch())}return(g,v)=>(m(),F("div",null,[C(bs,{title:i(w)("Plugins"),description:i(w)("Browse, install and update plugins from the %s library.").replace("%s",i(t).displayName.value),icon:i(s)+"assets/img/icon-plugins-nav.svg"},null,8,["title","description","icon"]),C(Xi,{stats:i(n).stats,"current-filter":i(a).statusFilter.value,icon:i(s)+"assets/img/icon-plugins.svg","active-icon":i(s)+"assets/img/icon-active.svg","installed-icon":i(s)+"assets/img/icon-installed.svg","updates-icon":i(s)+"assets/img/icon-updates.svg","onUpdate:filter":v[0]||(v[0]=k=>{i(a).statusFilter.value=k,i(a).resetPage()})},null,8,["stats","current-filter","icon","active-icon","installed-icon","updates-icon"]),C(Zi,{search:i(a).search.value,"onUpdate:search":v[1]||(v[1]=k=>i(a).search.value=k),"status-filter":i(a).statusFilter.value,"onUpdate:statusFilter":v[2]||(v[2]=k=>i(a).statusFilter.value=k),"per-page":i(a).perPage.value,"onUpdate:perPage":v[3]||(v[3]=k=>i(a).perPage.value=k),loading:i(n).loading,onRefresh:d,onSearch:v[4]||(v[4]=k=>i(a).resetPage()),onFilter:v[5]||(v[5]=k=>i(a).resetPage())},null,8,["search","status-filter","per-page","loading"]),i(a).paginatedItems.value.length?(m(),M(i(Ge),{key:0,class:"mt-4 gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",X1,[y("span",Z1,S(i(w)("Plugins")),1),y("span",J1,"("+S(i(a).filteredItems.value.length)+")",1)]),y("div",Q1,[(m(!0),F(be,null,Ue(i(a).paginatedItems.value,k=>(m(),M(H1,{key:k.id,plugin:k,onAction:O=>f(O,k)},null,8,["plugin","onAction"]))),128))])]),_:1})):i(n).loading?ne("",!0):(m(),M(ur,{key:1,description:i(w)("No plugins found."),onReset:v[6]||(v[6]=()=>{i(a).search.value="",i(a).statusFilter.value="all",i(a).resetPage()})},null,8,["description"])),i(a).totalPages.value>1?(m(),F("div",e0,[C(i(Ui),{page:i(a).currentPage.value,"onUpdate:page":v[7]||(v[7]=k=>i(a).currentPage.value=k),total:i(a).filteredItems.value.length,"items-per-page":i(a).perPage.value,"sibling-count":1,"show-edges":""},{default:x(()=>[C(i(Hi),null,{default:x(({items:k})=>[C(i(Yi)),(m(!0),F(be,null,Ue(k,(O,b)=>(m(),F(be,{key:b},[O.type==="page"?(m(),M(i(Ki),{key:0,value:O.value,"is-active":O.value===i(a).currentPage.value},{default:x(()=>[G(S(O.value),1)]),_:2},1032,["value","is-active"])):(m(),M(i(Wi),{key:1,index:b},null,8,["index"]))],64))),128)),C(i(Gi))]),_:1})]),_:1},8,["page","total","items-per-page"])])):ne("",!0),C(i(tr),{open:u.value,"onUpdate:open":v[8]||(v[8]=k=>u.value=k)},{default:x(()=>[C(i(or),null,{default:x(()=>[C(i(ar),null,{default:x(()=>[C(i(lr),{class:"!m-0"},{default:x(()=>{var k;return[G(S((k=c.value)==null?void 0:k.name),1)]}),_:1}),C(i(rr),{class:"!m-0"},{default:x(()=>[G(S(i(w)("Are you sure you want to delete this plugin? The plugin files will be removed from your site.")),1)]),_:1})]),_:1}),C(i(ir),null,{default:x(()=>[C(i(nr),null,{default:x(()=>[G(S(i(w)("Cancel")),1)]),_:1}),C(i(sr),{class:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:h},{default:x(()=>[G(S(i(w)("Delete")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),C(Hn,{ref_key:"installerRef",ref:r},null,512)]))}}),s0=nn("themes",()=>{const e=R([]),t=R({total:0,active:0,installed:0,updates:0}),s=R(!1);async function n(){s.value=!0;try{const u=await Ve.get("themes");e.value=u.items,t.value=u.stats}finally{s.value=!1}}async function o(){s.value=!0;try{const u=await Ve.post("themes/refresh");e.value=u.items,t.value=u.stats}finally{s.value=!1}}async function r(u){return Ve.post("themes/install",{theme_id:u})}async function a(u){return Ve.post("themes/update",{stylesheet:u})}async function l(u){return Ve.post("themes/delete",{stylesheet:u})}return{items:e,stats:t,loading:s,fetch:n,refresh:o,install:r,update:a,deleteTheme:l}}),n0={class:"flex items-center gap-3 flex-1 min-w-0"},o0=["src"],r0={key:1,class:"w-10 h-10 sm:w-12 sm:h-12 rounded bg-muted flex items-center justify-center shrink-0 self-start mt-0.5"},i0={class:"flex-1 min-w-0"},a0={class:"flex items-center gap-2 flex-wrap"},l0={class:"text-sm sm:text-base font-bold"},u0={class:"text-[11px] text-muted-foreground/60"},c0={class:"text-[11px] text-muted-foreground/60"},d0={class:"text-sm text-muted-foreground mt-0.5 truncate"},f0={class:"flex gap-1.5 shrink-0 pl-13 sm:pl-0"},p0=N({__name:"ThemeListRow",props:{theme:{}},emits:["action"],setup(e,{emit:t}){const s=t;function n(o,r){return r?"border-l-amber-500":o==="active"?"border-l-emerald-500":o==="installed"?"border-l-muted-foreground/30":"border-l-transparent"}return(o,r)=>(m(),F("div",{class:_e(["flex flex-col sm:flex-row sm:items-center gap-3 px-4 py-3.5 hover:bg-muted/50 transition-colors border-l-3",n(e.theme.status,e.theme.hasUpdate)])},[y("div",n0,[e.theme.thumbnail?(m(),F("img",{key:0,src:e.theme.thumbnail,class:"w-10 h-10 sm:w-12 sm:h-12 rounded object-cover shrink-0 self-start mt-0.5",alt:"",onError:r[0]||(r[0]=a=>a.target.style.display="none")},null,40,o0)):(m(),F("div",r0,[C(i(Rp),{class:"h-5 w-5 text-muted-foreground/40"})])),y("div",i0,[y("div",a0,[y("span",l0,S(e.theme.name),1),y("span",u0,S(e.theme.author),1),y("span",c0,"v"+S(e.theme.version),1)]),y("div",d0,S(e.theme.description),1)])]),y("div",f0,[e.theme.hasUpdate?(m(),M(i(Le),{key:0,variant:"warning",size:"sm",onClick:r[1]||(r[1]=a=>s("action","update"))},{default:x(()=>[G(S(i(w)("Update")),1)]),_:1})):ne("",!0),e.theme.status==="active"?(m(),M(i(Le),{key:1,variant:"outline",size:"sm",disabled:""},{default:x(()=>[G(S(i(w)("Active Theme")),1)]),_:1})):e.theme.status==="installed"?(m(),M(i(Le),{key:2,variant:"destructive",size:"sm",onClick:r[2]||(r[2]=a=>s("action","delete"))},{default:x(()=>[G(S(i(w)("Delete")),1)]),_:1})):(m(),M(i(Le),{key:3,size:"sm",onClick:r[3]||(r[3]=a=>s("action","install"))},{default:x(()=>[G(S(i(w)("Install")),1)]),_:1}))])],2))}}),h0={class:"flex items-center gap-2 border-b border-border px-5 py-3"},m0={class:"text-lg font-bold"},g0={class:"text-sm text-muted-foreground"},v0={class:"divide-y divide-border"},y0={key:2,class:"flex justify-center mt-5"},b0=N({__name:"ThemesView",setup(e){var h;const t=((h=window.hellopackClient)==null?void 0:h.pluginUrl)??"",s=ys(),n=s0(),{items:o}=Oo(n),r=R(),a=ji(o),l=R(!1),u=R(null);Qe(()=>n.fetch());async function c(){a.resetPage(),await n.refresh()}function d(p,g){if(r.value){if(p==="delete"){u.value=g,l.value=!0;return}p==="install"?r.value.run(`${w("Installing")} ${g.name}`,"install",()=>n.install(g.id),()=>n.fetch()):p==="update"&&r.value.run(`${w("Updating")} ${g.name}`,"update",()=>n.update(g.stylesheet),()=>n.fetch())}}function f(){if(!u.value||!r.value)return;const p=u.value;l.value=!1,u.value=null,r.value.run(`${w("Deleting")} ${p.name}`,"delete",()=>n.deleteTheme(p.stylesheet),()=>n.fetch())}return(p,g)=>(m(),F("div",null,[C(bs,{title:i(w)("Themes"),description:i(w)("Browse, install and update themes from the %s library.").replace("%s",i(s).displayName.value),icon:i(t)+"assets/img/icon-themes.svg"},null,8,["title","description","icon"]),C(Xi,{stats:i(n).stats,"current-filter":i(a).statusFilter.value,icon:i(t)+"assets/img/icon-plugins.svg","active-icon":i(t)+"assets/img/icon-active.svg","installed-icon":i(t)+"assets/img/icon-installed.svg","updates-icon":i(t)+"assets/img/icon-updates.svg","onUpdate:filter":g[0]||(g[0]=v=>{i(a).statusFilter.value=v,i(a).resetPage()})},null,8,["stats","current-filter","icon","active-icon","installed-icon","updates-icon"]),C(Zi,{search:i(a).search.value,"onUpdate:search":g[1]||(g[1]=v=>i(a).search.value=v),"status-filter":i(a).statusFilter.value,"onUpdate:statusFilter":g[2]||(g[2]=v=>i(a).statusFilter.value=v),"per-page":i(a).perPage.value,"onUpdate:perPage":g[3]||(g[3]=v=>i(a).perPage.value=v),loading:i(n).loading,onRefresh:c,onSearch:g[4]||(g[4]=v=>i(a).resetPage()),onFilter:g[5]||(g[5]=v=>i(a).resetPage())},null,8,["search","status-filter","per-page","loading"]),i(a).paginatedItems.value.length?(m(),M(i(Ge),{key:0,class:"mt-4 gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",h0,[y("span",m0,S(i(w)("Themes")),1),y("span",g0,"("+S(i(a).filteredItems.value.length)+")",1)]),y("div",v0,[(m(!0),F(be,null,Ue(i(a).paginatedItems.value,v=>(m(),M(p0,{key:v.id,theme:v,onAction:k=>d(k,v)},null,8,["theme","onAction"]))),128))])]),_:1})):i(n).loading?ne("",!0):(m(),M(ur,{key:1,description:i(w)("No themes found."),onReset:g[6]||(g[6]=()=>{i(a).search.value="",i(a).statusFilter.value="all",i(a).resetPage()})},null,8,["description"])),i(a).totalPages.value>1?(m(),F("div",y0,[C(i(Ui),{page:i(a).currentPage.value,"onUpdate:page":g[7]||(g[7]=v=>i(a).currentPage.value=v),total:i(a).filteredItems.value.length,"items-per-page":i(a).perPage.value,"sibling-count":1,"show-edges":""},{default:x(()=>[C(i(Hi),null,{default:x(({items:v})=>[C(i(Yi)),(m(!0),F(be,null,Ue(v,(k,O)=>(m(),F(be,{key:O},[k.type==="page"?(m(),M(i(Ki),{key:0,value:k.value,"is-active":k.value===i(a).currentPage.value},{default:x(()=>[G(S(k.value),1)]),_:2},1032,["value","is-active"])):(m(),M(i(Wi),{key:1,index:O},null,8,["index"]))],64))),128)),C(i(Gi))]),_:1})]),_:1},8,["page","total","items-per-page"])])):ne("",!0),C(i(tr),{open:l.value,"onUpdate:open":g[8]||(g[8]=v=>l.value=v)},{default:x(()=>[C(i(or),null,{default:x(()=>[C(i(ar),null,{default:x(()=>[C(i(lr),{class:"!m-0"},{default:x(()=>{var v;return[G(S((v=u.value)==null?void 0:v.name),1)]}),_:1}),C(i(rr),{class:"!m-0"},{default:x(()=>[G(S(i(w)("Are you sure you want to delete this theme? The theme files will be removed from your site.")),1)]),_:1})]),_:1}),C(i(ir),null,{default:x(()=>[C(i(nr),null,{default:x(()=>[G(S(i(w)("Cancel")),1)]),_:1}),C(i(sr),{class:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:f},{default:x(()=>[G(S(i(w)("Delete")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),C(Hn,{ref_key:"installerRef",ref:r},null,512)]))}}),_0=nn("translations",()=>{const e=R([]),t=R({total:0,active:0,installed:0,updates:0}),s=R(!1);async function n(){s.value=!0;try{const l=await Ve.get("translations");e.value=l.items,t.value=l.stats}finally{s.value=!1}}async function o(){s.value=!0;try{const l=await Ve.post("translations/refresh");e.value=l.items,t.value=l.stats}finally{s.value=!1}}async function r(l,u){return Ve.post("translations/install",{slug:l,type:u})}async function a(l,u){return Ve.post("translations/delete",{slug:l,type:u})}return{items:e,stats:t,loading:s,fetch:n,refresh:o,install:r,remove:a}}),w0={class:"flex items-center gap-3 flex-1 min-w-0"},x0={class:"w-10 h-10 sm:w-12 sm:h-12 rounded bg-muted flex items-center justify-center shrink-0 self-start mt-0.5"},k0={class:"flex-1 min-w-0"},C0={class:"flex items-center gap-2 flex-wrap"},S0={class:"text-sm sm:text-base font-bold"},$0={class:"flex items-center gap-3 text-xs text-muted-foreground mt-0.5"},A0={key:0},P0={key:1},T0={key:2,class:"text-emerald-600"},E0={class:"flex gap-1.5 shrink-0 pl-13 sm:pl-0"},O0=N({__name:"TranslationListRow",props:{translation:{}},emits:["action"],setup(e,{emit:t}){const s=t;function n(o,r){return r?"border-l-amber-500":o==="active"?"border-l-emerald-500":"border-l-transparent"}return(o,r)=>(m(),F("div",{class:_e(["flex flex-col sm:flex-row sm:items-center gap-3 px-4 py-3.5 hover:bg-muted/50 transition-colors border-l-3",n(e.translation.status,e.translation.hasUpdate)])},[y("div",w0,[y("div",x0,[C(i(Op),{class:"h-5 w-5 text-muted-foreground/40"})]),y("div",k0,[y("div",C0,[y("span",S0,S(e.translation.name),1),C(i(yn),{variant:"outline",class:"text-[10px] px-1.5 py-0"},{default:x(()=>[G(S(e.translation.type==="plugin"?i(w)("Plugin"):i(w)("Theme")),1)]),_:1})]),y("div",$0,[e.translation.fileCount?(m(),F("span",A0,S(e.translation.fileCount)+" "+S(i(w)("Files")),1)):ne("",!0),e.translation.localDate?(m(),F("span",P0,S(e.translation.localDate),1)):ne("",!0),e.translation.status==="active"&&!e.translation.hasUpdate?(m(),F("span",T0,S(i(w)("Up to date")),1)):ne("",!0)])])]),y("div",E0,[e.translation.status==="active"&&e.translation.hasUpdate?(m(),F(be,{key:0},[C(i(Le),{variant:"warning",size:"sm",onClick:r[0]||(r[0]=a=>s("action","update"))},{default:x(()=>[G(S(i(w)("Update")),1)]),_:1}),C(i(Le),{variant:"destructive",size:"sm",onClick:r[1]||(r[1]=a=>s("action","delete"))},{default:x(()=>[G(S(i(w)("Delete")),1)]),_:1})],64)):e.translation.status==="active"?(m(),M(i(Le),{key:1,variant:"destructive",size:"sm",onClick:r[2]||(r[2]=a=>s("action","delete"))},{default:x(()=>[G(S(i(w)("Delete")),1)]),_:1})):(m(),M(i(Le),{key:2,size:"sm",onClick:r[3]||(r[3]=a=>s("action","install"))},{default:x(()=>[G(S(i(w)("Install")),1)]),_:1}))])],2))}}),M0={class:"flex items-center gap-2 border-b border-border px-5 py-3"},I0={class:"text-lg font-bold"},D0={class:"text-sm text-muted-foreground"},B0={class:"divide-y divide-border"},R0={key:2,class:"flex justify-center mt-5"},F0=N({__name:"TranslationsView",setup(e){var h;const t=((h=window.hellopackClient)==null?void 0:h.pluginUrl)??"",s=_0(),{items:n}=Oo(s),o=ji(n),r=Un(),a=R(),l=R(!1),u=R(null);Qe(()=>{s.fetch()});async function c(){o.resetPage(),await s.refresh()}function d(p,g){var v;if(p==="delete"){u.value=g,l.value=!0;return}if(p==="install"||p==="update"){const k=w(p==="update"?"Updating":"Installing");(v=a.value)==null||v.run(`${k} ${g.name}`,p,()=>s.install(g.slug,g.type),()=>s.fetch());return}}async function f(){if(!u.value)return;const p=u.value;l.value=!1,u.value=null;try{await s.remove(p.slug,p.type),r.success(w("Translation deleted."))}catch{r.error(w("Translation delete failed."))}await s.fetch()}return(p,g)=>(m(),F("div",null,[C(bs,{title:i(w)("Translations"),description:i(w)("Browse and manage translations for your installed plugins and themes."),icon:i(t)+"assets/img/icon-translations.svg"},null,8,["title","description","icon"]),C(Xi,{stats:i(s).stats,"current-filter":i(o).statusFilter.value,icon:i(t)+"assets/img/icon-plugins.svg","active-icon":i(t)+"assets/img/icon-active.svg","installed-icon":i(t)+"assets/img/icon-installed.svg","updates-icon":i(t)+"assets/img/icon-updates.svg","onUpdate:filter":g[0]||(g[0]=v=>{i(o).statusFilter.value=v,i(o).resetPage()})},null,8,["stats","current-filter","icon","active-icon","installed-icon","updates-icon"]),C(Zi,{search:i(o).search.value,"onUpdate:search":g[1]||(g[1]=v=>i(o).search.value=v),"status-filter":i(o).statusFilter.value,"onUpdate:statusFilter":g[2]||(g[2]=v=>i(o).statusFilter.value=v),"per-page":i(o).perPage.value,"onUpdate:perPage":g[3]||(g[3]=v=>i(o).perPage.value=v),loading:i(s).loading,onRefresh:c,onSearch:g[4]||(g[4]=v=>i(o).resetPage()),onFilter:g[5]||(g[5]=v=>i(o).resetPage())},null,8,["search","status-filter","per-page","loading"]),i(o).paginatedItems.value.length?(m(),M(i(Ge),{key:0,class:"mt-4 gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",M0,[y("span",I0,S(i(w)("Translations")),1),y("span",D0,"("+S(i(o).filteredItems.value.length)+")",1)]),y("div",B0,[(m(!0),F(be,null,Ue(i(o).paginatedItems.value,v=>(m(),M(O0,{key:v.slug,translation:v,onAction:k=>d(k,v)},null,8,["translation","onAction"]))),128))])]),_:1})):i(s).loading?ne("",!0):(m(),M(ur,{key:1,description:i(w)("No translations found."),onReset:g[6]||(g[6]=()=>{i(o).search.value="",i(o).statusFilter.value="all",i(o).resetPage()})},null,8,["description"])),i(o).totalPages.value>1?(m(),F("div",R0,[C(i(Ui),{page:i(o).currentPage.value,"onUpdate:page":g[7]||(g[7]=v=>i(o).currentPage.value=v),total:i(o).filteredItems.value.length,"items-per-page":i(o).perPage.value,"sibling-count":1,"show-edges":""},{default:x(()=>[C(i(Hi),null,{default:x(({items:v})=>[C(i(Yi)),(m(!0),F(be,null,Ue(v,(k,O)=>(m(),F(be,{key:O},[k.type==="page"?(m(),M(i(Ki),{key:0,value:k.value,"is-active":k.value===i(o).currentPage.value},{default:x(()=>[G(S(k.value),1)]),_:2},1032,["value","is-active"])):(m(),M(i(Wi),{key:1,index:O},null,8,["index"]))],64))),128)),C(i(Gi))]),_:1})]),_:1},8,["page","total","items-per-page"])])):ne("",!0),C(i(tr),{open:l.value,"onUpdate:open":g[8]||(g[8]=v=>l.value=v)},{default:x(()=>[C(i(or),null,{default:x(()=>[C(i(ar),null,{default:x(()=>[C(i(lr),{class:"!m-0"},{default:x(()=>{var v;return[G(S((v=u.value)==null?void 0:v.name),1)]}),_:1}),C(i(rr),{class:"!m-0"},{default:x(()=>[G(S(i(w)("Are you sure you want to delete this translation? The translation files will be removed from your site.")),1)]),_:1})]),_:1}),C(i(ir),null,{default:x(()=>[C(i(nr),null,{default:x(()=>[G(S(i(w)("Cancel")),1)]),_:1}),C(i(sr),{class:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:f},{default:x(()=>[G(S(i(w)("Delete")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),C(Hn,{ref_key:"installerRef",ref:a},null,512)]))}}),q0=nn("modules",()=>{const e=R({}),t=R(!1);async function s(){t.value=!0;try{const o=await Ve.get("modules");e.value=o.modules}finally{t.value=!1}}async function n(o,r){const a=await Ve.post(`modules/${o}/toggle`,{enabled:r});for(const l of Object.values(e.value)){const u=l.find(c=>c.id===o);if(u){u.enabled=r,u.active=a.is_active;break}}return a}return{groups:e,loading:t,fetch:s,toggle:n}}),L0={class:"flex-1 min-w-0"},N0={class:"flex items-center gap-2"},z0={class:"text-base font-bold whitespace-nowrap"},V0={class:"text-[11px] text-muted-foreground/60"},j0={class:"text-sm text-muted-foreground mt-0.5 truncate"},U0=N({__name:"ModuleCard",props:{module:{}},emits:["toggle"],setup(e,{emit:t}){const s=e,n=t,o=R(s.module.enabled);Ke(()=>s.module.enabled,u=>{o.value=u}),Ke(o,u=>{u!==s.module.enabled&&n("toggle",u)});function r(u){var c;return u.hardDisabled?"border-l-red-500":u.active||(((c=u.activeOn)==null?void 0:c.length)??0)>0?"border-l-emerald-500":"border-l-muted-foreground/30"}const a=u=>!u.canBeDisabled||u.hardDisabled;function l(u){return(u.activeOn??[]).map(c=>c.url.replace(/^https?:\/\//,"")).join(", ")}return(u,c)=>(m(),F("div",{class:_e(["flex items-center gap-3 px-4 py-3.5 hover:bg-muted/50 transition-colors border-l-3",r(e.module)])},[y("div",L0,[y("div",N0,[y("span",z0,S(e.module.name),1),y("span",V0,"v"+S(e.module.version),1)]),y("div",j0,S(e.module.description),1),e.module.activeOn?(m(),F("div",{key:0,class:_e(["text-xs mt-1 truncate",e.module.activeOn.length?"text-emerald-700 dark:text-emerald-400":"text-muted-foreground/70"])},S(e.module.activeOn.length?i(w)("Active on: %s").replace("%s",l(e.module)):i(w)("Not active on any site")),3)):ne("",!0)]),C(i(Vi),{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),disabled:a(e.module),class:"shrink-0"},null,8,["modelValue","disabled"])],2))}}),H0={class:"flex items-center gap-2 border-b border-border px-5 py-3"},W0={class:"text-lg font-bold"},K0={class:"divide-y divide-border"},G0={class:"border-l-3 border-l-emerald-500 px-5 py-4"},Y0={class:"text-sm !m-0"},X0={class:"font-bold"},Z0={class:"text-muted-foreground"},J0={class:"border-l-3 border-l-muted-foreground/30 px-5 py-4"},Q0={class:"text-sm !m-0"},ew={class:"font-bold"},tw={class:"text-muted-foreground"},sw={class:"border-l-3 border-l-red-500 px-5 py-4"},nw={class:"text-sm !m-0"},ow={class:"font-bold"},rw={class:"text-muted-foreground"},iw=N({__name:"ModuleLegend",setup(e){return(t,s)=>(m(),M(i(Ge),{class:"gap-0 py-0 overflow-hidden mt-6"},{default:x(()=>[y("div",H0,[y("span",W0,S(i(w)("Module Statuses")),1)]),y("div",K0,[y("div",G0,[y("p",Y0,[y("span",X0,S(i(w)("Active"))+":",1),s[0]||(s[0]=G()),y("span",Z0,S(i(w)("The module is enabled and running. The associated plugin or theme is installed and active on the site.")),1)])]),y("div",J0,[y("p",Q0,[y("span",ew,S(i(w)("Inactive"))+":",1),s[1]||(s[1]=G()),y("span",tw,S(i(w)("The module is disabled or its target plugin/theme is not active. You can enable it with the toggle switch.")),1)])]),y("div",sw,[y("p",nw,[y("span",ow,S(i(w)("Hard Disabled"))+":",1),s[2]||(s[2]=G()),y("span",rw,S(i(w)("The module has been disabled via the HP_DISABLE_MODULES constant in wp-config.php. It cannot be toggled from the admin interface. To re-enable it, remove it from the constant.")),1)])]),s[3]||(s[3]=y("div",{class:"px-5 py-4 bg-muted/40"},[y("p",{class:"text-xs text-muted-foreground font-mono"}," define( 'HP_DISABLE_MODULES', 'elementor-pro, wp-rocket, acf-pro' ); ")],-1))])]),_:1}))}}),aw={class:"flex items-center gap-2 border-b border-border px-5 py-3"},lw={class:"text-lg font-bold"},uw={class:"text-sm text-muted-foreground"},cw={class:"divide-y divide-border"},dw=N({__name:"ModulesView",setup(e){var r;const t=((r=window.hellopackClient)==null?void 0:r.pluginUrl)??"",s=q0(),n=Un();Qe(()=>s.fetch());async function o(a,l){try{const u=await s.toggle(a,l);n.success(u.message)}catch(u){const c=u instanceof Error?u.message:w("Toggle failed.");n.error(c)}}return(a,l)=>(m(),F("div",null,[C(bs,{title:i(w)("Modules"),description:i(w)("Manage license interception modules for your installed plugins and themes."),icon:i(t)+"assets/img/icon-modules.svg"},null,8,["title","description","icon"]),(m(!0),F(be,null,Ue(i(s).groups,(u,c)=>(m(),F("div",{key:c,class:"mt-6 first:mt-0"},[C(i(Ge),{class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",aw,[y("span",lw,S(c==="plugin"?i(w)("Plugin Modules"):i(w)("Theme Modules")),1),y("span",uw,"("+S(u.length)+")",1)]),y("div",cw,[(m(!0),F(be,null,Ue(u,d=>(m(),M(U0,{key:d.id,module:d,onToggle:f=>o(d.id,f)},null,8,["module","onToggle"]))),128))])]),_:2},1024)]))),128)),!i(s).loading&&Object.keys(i(s).groups).length===0?(m(),M(ur,{key:0,description:i(w)("No modules available."),onReset:()=>{}},null,8,["description"])):ne("",!0),C(iw)]))}}),fw=nn("news",()=>{const e=R([]),t=R(""),s=R(!1);async function n(){s.value=!0;try{const o=await Ve.get("news");e.value=o.items,t.value=o.lang}finally{s.value=!1}}return{items:e,lang:t,loading:s,fetch:n}}),Ws=N({__name:"Skeleton",props:{class:{}},setup(e){const t=e;return(s,n)=>(m(),F("div",{"data-slot":"skeleton",class:_e(i(Ie)("animate-pulse rounded-md bg-primary/10",t.class))},null,2))}}),pw={class:"flex items-center gap-2 border-b border-border px-5 py-3"},hw={class:"text-lg font-bold"},mw={class:"divide-y divide-border px-5"},gw={class:"flex items-center gap-2 border-b border-border px-5 py-3"},vw={class:"text-lg font-bold"},yw={class:"text-sm text-muted-foreground"},bw={class:"divide-y divide-border px-5"},_w={class:"flex items-center gap-2 mb-1"},ww={key:1,class:"text-xs text-muted-foreground"},xw={class:"text-base font-semibold !m-0"},kw={key:0,class:"text-sm text-muted-foreground mt-1 whitespace-pre-line"},Cw={key:1,class:"flex flex-wrap items-center gap-x-4 gap-y-1 mt-2"},Sw=["href"],$w={class:"flex flex-col items-center justify-center text-center"},Aw=["src"],Pw={class:"text-lg font-bold mb-1"},Tw={class:"text-sm text-muted-foreground"},Ew=N({__name:"NewsView",setup(e){var u;const t=((u=window.hellopackClient)==null?void 0:u.pluginUrl)??"",s=fw(),{items:n,lang:o,loading:r}=Oo(s),a=Y(()=>o.value==="hu"?"hu-HU":"en-US");function l(c){if(!c)return"";const d=new Date(c);return Number.isNaN(d.getTime())?c:d.toLocaleDateString(a.value,{year:"numeric",month:"long",day:"numeric"})}return Qe(()=>s.fetch()),(c,d)=>(m(),F("div",null,[C(bs,{title:i(w)("News"),description:i(w)("Latest news and announcements from HelloPack."),icon:i(t)+"assets/img/icon-news.svg"},null,8,["title","description","icon"]),i(r)&&!i(n).length?(m(),M(i(Ge),{key:0,class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",pw,[y("span",hw,S(i(w)("News")),1)]),y("div",mw,[(m(),F(be,null,Ue(4,f=>y("div",{key:f,class:"py-4"},[C(i(Ws),{class:"h-4 w-24 mb-2"}),C(i(Ws),{class:"h-5 w-2/3 mb-2"}),C(i(Ws),{class:"h-3 w-full mb-1"}),C(i(Ws),{class:"h-3 w-4/5"})])),64))])]),_:1})):i(n).length?(m(),M(i(Ge),{key:1,class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",gw,[y("span",vw,S(i(w)("News")),1),y("span",yw,"("+S(i(n).length)+")",1)]),y("div",bw,[(m(!0),F(be,null,Ue(i(n),f=>{var h;return m(),F("article",{key:f.id,class:"py-4"},[y("div",_w,[f.category?(m(),M(i(yn),{key:0,variant:"secondary"},{default:x(()=>[G(S(f.category),1)]),_:2},1024)):ne("",!0),f.date?(m(),F("span",ww,S(l(f.date)),1)):ne("",!0)]),y("h3",xw,S(f.title),1),f.content?(m(),F("p",kw,S(f.content),1)):ne("",!0),(h=f.links)!=null&&h.length?(m(),F("div",Cw,[(m(!0),F(be,null,Ue(f.links,(p,g)=>(m(),F("a",{key:g,href:p.url,target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline"},[G(S(p.label||p.url)+" ",1),C(i(on),{class:"h-3 w-3"})],8,Sw))),128))])):ne("",!0)])}),128))])]),_:1})):(m(),M(i(Ge),{key:2,class:"py-12 px-6"},{default:x(()=>[y("div",$w,[i(t)?(m(),F("img",{key:0,src:i(t)+"assets/img/empty-state.svg",alt:"",class:"h-20 w-20 mb-4"},null,8,Aw)):ne("",!0),y("h3",Pw,S(i(w)("No news yet.")),1),y("p",Tw,S(i(w)("Check back later for news and announcements.")),1)])]),_:1}))]))}}),Ow={class:"flex items-center gap-2 mt-3"},Mw={key:1,class:"w-px h-5 bg-border mx-1"},Iw={key:2,class:"text-sm text-muted-foreground"},Dw={key:0},Bw={key:1},Rw={class:"flex items-center gap-2 border-b border-border px-5 py-3"},Fw={class:"text-lg font-bold"},qw={class:"divide-y divide-border px-5"},Lw={class:"flex-1 min-w-0"},Nw={class:"flex items-center gap-2 border-b border-border px-5 py-3"},zw={class:"text-lg font-bold"},Vw={class:"divide-y divide-border px-5"},jw=["src"],Uw=["src"],Hw={class:"min-w-0"},Ww={class:"text-sm font-medium"},Kw={class:"flex items-center gap-2 border-b border-border px-5 py-3"},Gw={class:"text-lg font-bold"},Yw={class:"divide-y divide-border px-5"},Xw={class:"text-sm font-medium"},Zw={class:"text-xs text-muted-foreground mt-1"},Jw=N({__name:"HelpView",setup(e){var f;const t=((f=window.hellopackClient)==null?void 0:f.pluginUrl)??"",s=ys(),n=Un(),o=R(!1),r=R([]),a=Y(()=>r.value.filter(h=>h.ok).length),l=Y(()=>r.value.filter(h=>!h.ok).length),u=Y(()=>r.value.filter(h=>!h.ok&&h.hint));async function c(){o.value=!0;try{const h=await Ve.get("health");r.value=h.checks}catch{n.error(w("Operation failed."))}finally{o.value=!1}}function d(){const h=`=== ${s.displayName.value} System Diagnostics ===`,p=r.value.map(v=>`[${v.ok?"OK":"FAIL"}] ${v.title}: ${v.message}`),g=[h,"",...p].join(`
`);navigator.clipboard.writeText(g).then(()=>{n.success(w("Results copied to clipboard."))}).catch(()=>{n.error(w("Failed to copy domain."))})}return Qe(()=>c()),(h,p)=>(m(),F("div",null,[C(bs,{title:i(w)("Help"),description:i(w)("Run system diagnostics to check your server configuration and connectivity."),icon:i(t)+"assets/img/icon-help.svg"},{default:x(()=>[y("div",Ow,[r.value.length>0&&!o.value?(m(),M(i(Le),{key:0,variant:"outline",size:"sm",onClick:d},{default:x(()=>[C(i(Cp),{class:"h-4 w-4 mr-1.5"}),G(" "+S(i(w)("Copy Results")),1)]),_:1})):ne("",!0),C(i(Le),{size:"sm",disabled:o.value,onClick:c},{default:x(()=>[o.value?(m(),M(i(ds),{key:0,class:"h-4 w-4 mr-1.5 animate-spin"})):(m(),M(i(Mo),{key:1,class:"h-4 w-4 mr-1.5"})),G(" "+S(i(w)("Run Diagnostics")),1)]),_:1},8,["disabled"]),r.value.length>0&&!o.value?(m(),F("div",Mw)):ne("",!0),r.value.length>0&&!o.value?(m(),F("span",Iw,[l.value===0?(m(),F("span",Dw,S(i(w)("All checks passed.")),1)):(m(),F("span",Bw,S(i(w)("Some issues found.")),1)),G(" ("+S(a.value)+"/"+S(r.value.length)+" OK) ",1)])):ne("",!0)])]),_:1},8,["title","description","icon"]),o.value?(m(),M(i(Ge),{key:0,class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",Rw,[y("span",Fw,S(i(w)("System Diagnostics")),1)]),y("div",qw,[(m(),F(be,null,Ue(15,g=>y("div",{key:g,class:"flex items-center gap-3 py-3"},[C(i(Ws),{class:"h-5 w-5 rounded-full shrink-0"}),y("div",Lw,[C(i(Ws),{class:"h-4 w-40 mb-1.5"}),C(i(Ws),{class:"h-3 w-60"})])])),64))])]),_:1})):r.value.length>0?(m(),M(i(Ge),{key:1,class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",Nw,[y("span",zw,S(i(w)("System Diagnostics")),1),C(i(yn),{variant:l.value===0?"default":"destructive"},{default:x(()=>[G(S(l.value===0?i(w)("All checks passed."):`${l.value} issue(s)`),1)]),_:1},8,["variant"])]),y("div",Vw,[(m(!0),F(be,null,Ue(r.value,g=>(m(),F("div",{key:g.id,class:"flex items-center gap-3 py-3"},[g.ok?(m(),F("img",{key:0,src:i(t)+"assets/img/icon-check-ok.svg",alt:"",class:"h-5 w-5 shrink-0"},null,8,jw)):(m(),F("img",{key:1,src:i(t)+"assets/img/icon-check-fail.svg",alt:"",class:"h-5 w-5 shrink-0"},null,8,Uw)),y("div",Hw,[y("div",Ww,S(g.title),1),y("div",{class:_e(["text-xs",g.ok?"text-muted-foreground":"text-red-500"])},S(g.message),3)])]))),128))])]),_:1})):ne("",!0),u.value.length>0&&!o.value?(m(),M(i(Ge),{key:2,class:"mt-4 gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",Kw,[y("span",Gw,S(i(w)("Recommended Actions")),1)]),y("div",Yw,[(m(!0),F(be,null,Ue(u.value,g=>(m(),F("div",{key:g.id,class:"py-3"},[y("div",Xw,S(g.title),1),y("div",Zw,S(g.hint),1)]))),128))])]),_:1})):ne("",!0)]))}}),Qw={class:"flex items-center gap-2 border-b border-border px-5 py-3"},ex={class:"text-lg font-bold"},tx={class:"px-5 py-4 space-y-4"},sx={class:"text-sm leading-relaxed text-foreground"},nx={class:"text-sm leading-relaxed text-foreground"},ox={class:"space-y-2 pl-1"},rx={class:"text-sm leading-relaxed text-foreground"},ix={class:"text-sm leading-relaxed text-foreground font-medium"},ax={class:"text-sm leading-relaxed text-foreground"},lx={class:"flex items-center gap-2 border-b border-border px-5 py-3"},ux={class:"text-lg font-bold"},cx={class:"divide-y divide-border"},dx={class:"flex items-center justify-center h-8 w-8 rounded-lg bg-primary/10 shrink-0 mt-0.5"},fx={class:"min-w-0"},px={class:"text-sm font-medium"},hx={class:"text-xs text-muted-foreground mt-0.5"},mx={class:"border-t border-border px-5 py-4"},gx={class:"text-sm text-foreground font-medium"},vx={class:"flex items-center gap-2 border-b border-border px-5 py-3"},yx={class:"text-lg font-bold"},bx={class:"divide-y divide-border"},_x=["href","onClick"],wx={class:"min-w-0"},xx={class:"text-sm font-medium !text-foreground group-hover:!text-primary transition-colors"},kx={class:"text-xs text-muted-foreground mt-0.5"},Cx=["href"],Sx={class:"min-w-0"},$x={class:"text-sm font-medium !text-foreground group-hover:!text-primary transition-colors"},Ax={class:"text-xs text-muted-foreground mt-0.5"},Px=N({__name:"AboutView",setup(e){var a;(a=window.hellopackClient)==null||a.pluginUrl;const t=ys();function s(l){location.hash=l}const n=[w("Constant update checks running in the background"),w("Dozens of parallel API calls to external servers"),w("License verification requests on every page load"),w("Background communication with third-party servers"),w("Ads and promotional notices cluttering the admin")],o=[{icon:Bp,title:w("Unified update management"),description:w("All plugin and theme updates handled through a single, efficient channel.")},{icon:Np,title:w("Centralized licensing"),description:w("One license system replaces dozens of individual checks and API calls.")},{icon:Vp,title:w("Minimal external API calls"),description:w("Eliminates unnecessary background traffic that slows down your site.")},{icon:zp,title:w("Composer & CLI support"),description:w("Install and manage plugins via Composer or the command line.")},{icon:Ap,title:w("Full ecosystem control"),description:w("Complete oversight of your WordPress stack from a single dashboard.")}],r=Y(()=>{const l=[];return t.enabled.value||l.push({title:w("%s Documentation").replace("%s",t.displayName.value),description:w("Installation guides, module references, and troubleshooting."),url:"https://hub.hellowp.io/docs/dokumentacio/hellopack/"}),t.enabled.value||l.push({title:w("Bug Report"),description:w("Found a bug? Report it so we can fix it quickly."),url:"#bug-report",internal:!0}),t.enabled.value?t.supportUrl.value&&l.push({title:w("Support"),description:w("Contact your provider for help."),url:t.supportUrl.value}):l.push({title:w("Support"),description:w("Get help from the HelloWP support team."),url:"https://hellowp.io/hu/tamogatas/"}),l});return(l,u)=>(m(),F("div",null,[C(bs,{title:i(w)("About %s").replace("%s",i(t).displayName.value),description:i(w)("Centralized updater, license manager, and package manager for premium WordPress plugins and themes.")},null,8,["title","description"]),i(t).enabled.value?ne("",!0):(m(),M(i(Ge),{key:0,class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",Qw,[y("span",ex,S(i(w)("Why HelloWP Package Manager?")),1)]),y("div",tx,[y("p",sx,S(i(w)("When building and maintaining WooCommerce stores, we consistently ran into the same problem: a single serious project requires 20–30 premium plugins and themes.")),1),y("p",nx,S(i(w)("The plugins themselves were not the issue - the overhead that came with them was:")),1),y("ul",ox,[(m(),F(be,null,Ue(n,(c,d)=>y("li",{key:d,class:"flex items-start gap-2.5 text-sm text-foreground"},[u[0]||(u[0]=y("span",{class:"mt-1.5 h-1.5 w-1.5 rounded-full bg-primary shrink-0"},null,-1)),G(" "+S(c),1)])),64))]),y("p",rx,S(i(w)("In such an environment, constant background traffic runs on every page load. Dozens of API calls fire in parallel, putting significant load on the server, slowing down the site, and often making the admin panel unstable or barely usable.")),1),y("p",ix,S(i(w)("We want to work. We pay for premium tools, and in return we expect stable, fast, predictable operation - not ads and unnecessary background noise.")),1),y("p",ax,S(i(w)("That is why we created the HelloWP Package Manager - HelloPack.")),1)])]),_:1})),i(t).enabled.value?ne("",!0):(m(),M(i(Ge),{key:1,class:"mt-4 gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",lx,[y("span",ux,S(i(w)("What HelloPack does")),1)]),y("div",cx,[(m(),F(be,null,Ue(o,c=>y("div",{key:c.title,class:"flex items-start gap-3 px-5 py-3.5"},[y("div",dx,[(m(),M(qs(c.icon),{class:"h-4 w-4 text-primary"}))]),y("div",fx,[y("div",px,S(c.title),1),y("div",hx,S(c.description),1)])])),64))]),y("div",mx,[y("p",gx,S(i(w)("The goal of HelloPack is simple: reduce the noise, increase performance, and give control back to the developer.")),1)])]),_:1})),C(i(Ge),{class:"mt-4 gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",vx,[y("span",yx,S(i(w)("Useful Links")),1)]),y("div",bx,[(m(!0),F(be,null,Ue(r.value,c=>(m(),F(be,{key:c.url},[c.internal?(m(),F("a",{key:0,href:c.url,class:"flex items-center justify-between px-5 py-3 hover:bg-muted/50 transition-colors no-underline group cursor-pointer",onClick:wt(d=>s(c.url.replace("#","")),["prevent"])},[y("div",wx,[y("div",xx,S(c.title),1),y("div",kx,S(c.description),1)])],8,_x)):(m(),F("a",{key:1,href:c.url,target:"_blank",rel:"noopener noreferrer",class:"flex items-center justify-between px-5 py-3 hover:bg-muted/50 transition-colors no-underline group"},[y("div",Sx,[y("div",$x,S(c.title),1),y("div",Ax,S(c.description),1)]),C(i(on),{class:"h-4 w-4 text-muted-foreground shrink-0 ml-3"})],8,Cx))],64))),128))])]),_:1})]))}}),Tx={class:"flex items-center gap-2 border-b border-border px-5 py-3"},Ex={class:"text-lg font-bold"},Ox={class:"space-y-1.5"},Mx={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},Ix={class:"space-y-1.5"},Dx={class:"text-xs text-muted-foreground font-normal"},Bx={class:"space-y-1.5"},Rx={class:"text-xs text-muted-foreground font-normal"},Fx={class:"space-y-1.5"},qx={class:"text-xs text-muted-foreground font-normal"},Lx={class:"grid grid-cols-2 sm:grid-cols-4 gap-2"},Nx=["onClick"],zx={class:"text-sm font-medium"},Vx={class:"text-xs text-muted-foreground mt-0.5 leading-snug"},jx={class:"space-y-1.5"},Ux=["placeholder"],Hx={class:"space-y-1.5"},Wx={class:"flex items-center gap-2"},Kx={class:"inline-flex items-center gap-1.5 cursor-pointer rounded-md border border-input bg-background px-3 py-1.5 text-sm font-medium shadow-xs hover:bg-accent hover:text-accent-foreground transition-colors"},Gx={class:"text-xs text-muted-foreground"},Yx={key:0,class:"flex flex-wrap gap-2 mt-2"},Xx=["onClick"],Zx={class:"rounded-md bg-muted/50 border border-border px-3 py-2"},Jx={class:"text-xs text-muted-foreground mb-1 font-medium"},Qx={class:"text-xs text-muted-foreground"},ek={class:"flex justify-end pt-2"},tk=10*1024*1024,sk=N({__name:"BugReportView",setup(e){var k;const t=ys(),s=((k=window.hellopackClient)==null?void 0:k.pluginUrl)??"",n=R(""),o=R(""),r=R(""),a=R(""),l=R(""),u=R([]),c=R(!1),d=[{value:"plugins",name:w("Plugins"),description:w("Installing, updating, activating or deleting plugins.")},{value:"themes",name:w("Themes"),description:w("Installing, updating or switching themes.")},{value:"modules",name:w("Modules"),description:w("License interception modules, toggling on/off.")},{value:"api",name:w("API Connection"),description:w("Token, authentication or connection issues.")},{value:"translations",name:w("Translations"),description:w("Translation management, missing or broken translations.")},{value:"ui",name:w("Admin Interface"),description:w("Display issues, layout problems or navigation bugs.")},{value:"enhancement",name:w("Feature Request"),description:w("Suggest a new feature or improvement.")},{value:"other",name:w("Other"),description:w("Anything that does not fit the categories above.")}],f=["png","jpg","jpeg","gif","webp","txt","log","pdf"];function h(){var q,z,H,L;const O=((q=window.hellopackClient)==null?void 0:q.version)??"?",b=((z=window.hellopackClient)==null?void 0:z.wpVersion)??"?",P=((H=window.hellopackClient)==null?void 0:H.phpVersion)??"?",A=((L=window.hellopackClient)==null?void 0:L.domain)??"?";return`---
${t.displayName.value}: ${O} | WP: ${b} | PHP: ${P} | Domain: ${A}`}function p(O){var A;const b=O.target;if(!b.files)return;const P=[];for(const q of Array.from(b.files)){const z=((A=q.name.split(".").pop())==null?void 0:A.toLowerCase())??"";if(!f.includes(z)){fs.error(w("Invalid file type: %s").replace("%s",q.name));continue}if(q.size>tk){fs.error(w("File too large (max 10MB): %s").replace("%s",q.name));continue}P.push(q)}u.value=[...u.value,...P],b.value=""}function g(O){u.value=u.value.filter((b,P)=>P!==O)}async function v(){if(!n.value.trim()){fs.error(w("Title is required."));return}if(!l.value.trim()){fs.error(w("Description is required."));return}c.value=!0;try{const O=`${l.value.trim()}

${h()}`,b=new FormData;b.append("repo_id","hellopack");const P=a.value&&a.value!=="enhancement"?`bug,${a.value}`:a.value||"bug";b.append("labels",P),b.append("title",n.value.trim()),o.value.trim()&&b.append("name",o.value.trim()),r.value.trim()&&b.append("email",r.value.trim()),b.append("body",O);for(const q of u.value)b.append("files",q);const A=await fetch("https://api.gobird.io/v1/gh-issue-sender/issues",{method:"POST",body:b});if(!A.ok)throw new Error(`HTTP ${A.status}`);fs.success(w("Bug report submitted successfully.")),n.value="",o.value="",r.value="",a.value="",l.value="",u.value=[]}catch{fs.error(w("Failed to submit bug report. Please try again."))}finally{c.value=!1}}return(O,b)=>(m(),F("div",null,[C(bs,{title:i(w)("Bug Report"),description:i(w)("Found a bug? Report it so we can fix it quickly."),icon:i(s)+"assets/img/icon-bug-report.svg"},null,8,["title","description","icon"]),C(i(Ge),{class:"gap-0 py-0 overflow-hidden"},{default:x(()=>[y("div",Tx,[y("span",Ex,S(i(w)("Submit a Bug Report")),1)]),y("form",{class:"px-5 py-4 space-y-4",onSubmit:wt(v,["prevent"])},[y("div",Ox,[C(i(Es),{for:"bug-title"},{default:x(()=>[G(S(i(w)("Title"))+" ",1),b[4]||(b[4]=y("span",{class:"text-destructive"},"*",-1))]),_:1}),C(i(vn),{id:"bug-title",modelValue:n.value,"onUpdate:modelValue":b[0]||(b[0]=P=>n.value=P),placeholder:i(w)("Brief summary of the issue")},null,8,["modelValue","placeholder"])]),y("div",Mx,[y("div",Ix,[C(i(Es),{for:"bug-name"},{default:x(()=>[G(S(i(w)("Name"))+" ",1),y("span",Dx,"("+S(i(w)("optional"))+")",1)]),_:1}),C(i(vn),{id:"bug-name",modelValue:o.value,"onUpdate:modelValue":b[1]||(b[1]=P=>o.value=P),placeholder:i(w)("Your name")},null,8,["modelValue","placeholder"])]),y("div",Bx,[C(i(Es),{for:"bug-email"},{default:x(()=>[G(S(i(w)("Email"))+" ",1),y("span",Rx,"("+S(i(w)("optional"))+")",1)]),_:1}),C(i(vn),{id:"bug-email",modelValue:r.value,"onUpdate:modelValue":b[2]||(b[2]=P=>r.value=P),type:"email",placeholder:i(w)("Your email address")},null,8,["modelValue","placeholder"])])]),y("div",Fx,[C(i(Es),null,{default:x(()=>[G(S(i(w)("Category"))+" ",1),y("span",qx,"("+S(i(w)("optional"))+")",1)]),_:1}),y("div",Lx,[(m(),F(be,null,Ue(d,P=>y("button",{key:P.value,type:"button",class:_e(["flex flex-col items-start rounded-lg border px-3 py-2.5 text-left transition-colors cursor-pointer",a.value===P.value?"border-primary bg-primary/5":"border-border hover:border-primary/40 hover:bg-muted/50"]),onClick:A=>a.value=a.value===P.value?"":P.value},[y("span",zx,S(P.name),1),y("span",Vx,S(P.description),1)],10,Nx)),64))])]),y("div",jx,[C(i(Es),{for:"bug-description"},{default:x(()=>[G(S(i(w)("Description"))+" ",1),b[5]||(b[5]=y("span",{class:"text-destructive"},"*",-1))]),_:1}),za(y("textarea",{id:"bug-description","onUpdate:modelValue":b[3]||(b[3]=P=>l.value=P),rows:"6",placeholder:i(w)("Describe the issue in detail. Include steps to reproduce if possible."),class:"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 resize-y"},null,8,Ux),[[Vl,l.value]])]),y("div",Hx,[C(i(Es),null,{default:x(()=>[G(S(i(w)("Attachments")),1)]),_:1}),y("div",Wx,[y("label",Kx,[C(i(Fp),{class:"h-3.5 w-3.5"}),G(" "+S(i(w)("Add Files"))+" ",1),y("input",{type:"file",multiple:"",accept:".png,.jpg,.jpeg,.gif,.webp,.txt,.log,.pdf",class:"hidden",onChange:p},null,32)]),y("span",Gx,S(i(w)("Max 10MB per file. Allowed: png, jpg, gif, webp, txt, log, pdf")),1)]),u.value.length?(m(),F("div",Yx,[(m(!0),F(be,null,Ue(u.value,(P,A)=>(m(),F("span",{key:A,class:"inline-flex items-center gap-1 rounded-md bg-muted px-2 py-1 text-xs"},[G(S(P.name)+" ",1),y("button",{type:"button",class:"text-muted-foreground hover:text-foreground",onClick:q=>g(A)},[C(i(Io),{class:"h-3 w-3"})],8,Xx)]))),128))])):ne("",!0)]),y("div",Zx,[y("p",Jx,S(i(w)("System info (auto-appended)")),1),y("code",Qx,S(h()),1)]),y("div",ek,[C(i(Le),{type:"submit",disabled:c.value},{default:x(()=>[c.value?(m(),M(i(ds),{key:0,class:"h-4 w-4 animate-spin mr-1.5"})):ne("",!0),G(" "+S(c.value?i(w)("Submitting..."):i(w)("Submit Bug Report")),1)]),_:1},8,["disabled"])])],32)]),_:1})]))}}),nk={class:"flex flex-col min-h-[inherit]"},ok={class:"sticky top-[32px] z-50 flex items-center h-14 bg-background border-b border-border px-4 sm:px-6"},rk={class:"flex items-center gap-2 mr-auto sm:mr-8"},ik=["src","alt"],ak={key:1,class:"text-base font-semibold text-foreground"},lk=["src"],uk={class:"text-xs text-muted-foreground"},ck={class:"hidden md:flex items-center gap-1 ml-auto"},dk=["src"],fk=["src"],pk=["src"],hk=["src"],mk=["src"],gk=["src"],vk=["src"],yk={key:0,class:"md:hidden sticky top-[88px] z-40 bg-background border-b border-border px-4 py-3 space-y-1"},bk=["src"],_k=["src"],wk=["src"],xk=["src"],kk=["src"],Ck=["src"],Sk=["src"],$k={key:1,class:"flex items-start gap-3 border-b border-red-200 bg-red-50 px-4 py-3 sm:px-6 dark:border-red-900 dark:bg-red-950"},Ak={class:"text-sm text-red-800 dark:text-red-200"},Pk={class:"m-0 font-semibold"},Tk={class:"m-0 mt-1"},Ek={class:"m-0 mt-1"},Ok={key:2,class:"flex items-center gap-3 border-b border-sky-200 bg-sky-50 px-4 py-2.5 sm:px-6 dark:border-sky-900 dark:bg-sky-950"},Mk={class:"m-0 text-sm text-sky-800 dark:text-sky-200"},Ik=["href"],Dk={key:3,class:"flex items-center gap-3 border-b border-amber-200 bg-amber-50 px-4 py-2.5 sm:px-6 dark:border-amber-900 dark:bg-amber-950"},Bk={class:"text-sm text-amber-800 dark:text-amber-200 m-0"},Rk={class:"flex-1 bg-muted/40 p-3 sm:p-6"},Fk={class:"mt-6 rounded-xl border border-border bg-background px-5 py-3"},qk={class:"flex flex-col sm:flex-row items-center justify-between gap-2"},Lk={class:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs"},Nk={key:0,href:"https://hub.hellowp.io/docs/dokumentacio/hellopack/",target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1 !text-muted-foreground hover:!text-foreground transition-colors no-underline"},zk={key:1,href:"https://hellowp.io/hu/hellopack-changelog/",target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1 !text-muted-foreground hover:!text-foreground transition-colors no-underline"},Vk=["href"],jk={class:"text-xs text-muted-foreground"},jc="hellopack-client",Uc=rp(N({__name:"App",setup(e){var g,v,k;const t=ys(),s=Qo(),n=((g=window.hellopackClient)==null?void 0:g.initialTab)??"",o=R(n||(s.isActive||s.siteScoped?"plugins":"settings")),r=R(""),a=((v=window.hellopackClient)==null?void 0:v.pluginUrl)??"",l=((k=window.hellopackClient)==null?void 0:k.version)??"",u=R(!1),c=Y(()=>l.toLowerCase().includes("beta")&&!s.betaChannel);function d(O){h(O),u.value=!1}Ar("initialSearch",r);function f(){const O=location.hash.replace("#",""),[b,P]=O.split("?");if(!b||!["settings","plugins","themes","translates","modules","news","help","about","bug-report"].includes(b)||b==="bug-report"&&t.enabled.value||b==="news"&&t.enabled.value||["plugins","themes","translates","modules"].includes(b)&&!s.isActive||s.siteScoped&&!["plugins","themes"].includes(b))return;o.value=b;const q=new URLSearchParams(P||"");r.value=q.get("search")||""}function h(O){const P=new URLSearchParams(location.search).get("page")||"";if(P&&P!==jc){window.location.href=`admin.php?page=${jc}#${O}`;return}o.value=O,location.hash=O}function p(O){const b="relative flex items-center gap-1.5 px-3 py-2 text-sm rounded-md transition-colors cursor-pointer";return o.value===O?`${b} text-foreground font-medium after:absolute after:bottom-0 after:left-3 after:right-3 after:h-0.5 after:bg-primary after:rounded-full`:`${b} text-muted-foreground hover:text-foreground`}return Qe(()=>{f(),window.addEventListener("hashchange",f)}),Ke(()=>s.isActive,O=>{(O||o.value!=="settings"&&o.value!=="help")&&h("settings")}),(O,b)=>(m(),F("div",nk,[y("header",ok,[y("div",rk,[y("a",{href:"#plugins",class:"flex items-center",onClick:b[0]||(b[0]=wt(P=>h("plugins"),["prevent"]))},[i(t).logoUrl.value?(m(),F("img",{key:0,src:i(t).logoUrl.value,alt:i(t).displayName.value,class:"h-7 w-auto"},null,8,ik)):i(t).enabled.value?(m(),F("span",ak,S(i(t).displayName.value),1)):i(a)?(m(),F("img",{key:2,src:i(a)+"assets/img/hellopack-logo.svg",alt:"HelloPack",class:"h-7 w-auto"},null,8,lk)):ne("",!0)]),y("span",uk,"v"+S(i(l)),1)]),y("nav",ck,[i(s).isActive?(m(),F("button",{key:0,onClick:b[1]||(b[1]=P=>h("plugins")),class:_e(p("plugins"))},[y("img",{src:i(a)+"assets/img/icon-plugins-nav.svg",alt:"",class:"h-4 w-4"},null,8,dk),G(" "+S(i(w)("Plugins")),1)],2)):ne("",!0),i(s).isActive?(m(),F("button",{key:1,onClick:b[2]||(b[2]=P=>h("themes")),class:_e(p("themes"))},[y("img",{src:i(a)+"assets/img/icon-themes.svg",alt:"",class:"h-4 w-4"},null,8,fk),G(" "+S(i(w)("Themes")),1)],2)):ne("",!0),i(s).isActive&&!i(s).siteScoped?(m(),F("button",{key:2,onClick:b[3]||(b[3]=P=>h("translates")),class:_e(p("translates"))},[y("img",{src:i(a)+"assets/img/icon-translations.svg",alt:"",class:"h-4 w-4"},null,8,pk),G(" "+S(i(w)("Translations")),1)],2)):ne("",!0),i(s).isActive&&!i(s).siteScoped?(m(),F("button",{key:3,onClick:b[4]||(b[4]=P=>h("modules")),class:_e(p("modules"))},[y("img",{src:i(a)+"assets/img/icon-modules.svg",alt:"",class:"h-4 w-4"},null,8,hk),G(" "+S(i(w)("Modules")),1)],2)):ne("",!0),b[18]||(b[18]=y("div",{class:"w-px h-5 bg-border mx-1"},null,-1)),!i(t).enabled.value&&!i(s).siteScoped?(m(),F("button",{key:4,onClick:b[5]||(b[5]=P=>h("news")),class:_e(p("news"))},[y("img",{src:i(a)+"assets/img/icon-news.svg",alt:"",class:"h-4 w-4"},null,8,mk),G(" "+S(i(w)("News")),1)],2)):ne("",!0),i(s).siteScoped?ne("",!0):(m(),F("button",{key:5,onClick:b[6]||(b[6]=P=>h("help")),class:_e(p("help"))},[y("img",{src:i(a)+"assets/img/icon-help.svg",alt:"",class:"h-4 w-4"},null,8,gk),G(" "+S(i(w)("Help")),1)],2)),i(s).siteScoped?ne("",!0):(m(),F("button",{key:6,onClick:b[7]||(b[7]=P=>h("settings")),class:_e(p("settings"))},[y("img",{src:i(a)+"assets/img/icon-settings.svg",alt:"",class:"h-4 w-4"},null,8,vk),G(" "+S(i(w)("Settings")),1)],2))]),C(i(Le),{variant:"ghost",size:"icon",class:"md:hidden ml-auto",onClick:b[8]||(b[8]=P=>u.value=!u.value)},{default:x(()=>[u.value?(m(),M(i(Io),{key:0,class:"h-5 w-5"})):(m(),M(i(Mp),{key:1,class:"h-5 w-5"}))]),_:1})]),u.value?(m(),F("div",yk,[i(s).isActive?(m(),F("button",{key:0,onClick:b[9]||(b[9]=P=>d("plugins")),class:_e([p("plugins"),"w-full text-left"])},[y("img",{src:i(a)+"assets/img/icon-plugins-nav.svg",alt:"",class:"h-4 w-4"},null,8,bk),G(" "+S(i(w)("Plugins")),1)],2)):ne("",!0),i(s).isActive?(m(),F("button",{key:1,onClick:b[10]||(b[10]=P=>d("themes")),class:_e([p("themes"),"w-full text-left"])},[y("img",{src:i(a)+"assets/img/icon-themes.svg",alt:"",class:"h-4 w-4"},null,8,_k),G(" "+S(i(w)("Themes")),1)],2)):ne("",!0),i(s).isActive?(m(),F("button",{key:2,onClick:b[11]||(b[11]=P=>d("translates")),class:_e([p("translates"),"w-full text-left"])},[y("img",{src:i(a)+"assets/img/icon-translations.svg",alt:"",class:"h-4 w-4"},null,8,wk),G(" "+S(i(w)("Translations")),1)],2)):ne("",!0),i(s).isActive?(m(),F("button",{key:3,onClick:b[12]||(b[12]=P=>d("modules")),class:_e([p("modules"),"w-full text-left"])},[y("img",{src:i(a)+"assets/img/icon-modules.svg",alt:"",class:"h-4 w-4"},null,8,xk),G(" "+S(i(w)("Modules")),1)],2)):ne("",!0),b[19]||(b[19]=y("div",{class:"h-px bg-border my-2"},null,-1)),i(t).enabled.value?ne("",!0):(m(),F("button",{key:4,onClick:b[13]||(b[13]=P=>d("news")),class:_e([p("news"),"w-full text-left"])},[y("img",{src:i(a)+"assets/img/icon-news.svg",alt:"",class:"h-4 w-4"},null,8,kk),G(" "+S(i(w)("News")),1)],2)),y("button",{onClick:b[14]||(b[14]=P=>d("help")),class:_e([p("help"),"w-full text-left"])},[y("img",{src:i(a)+"assets/img/icon-help.svg",alt:"",class:"h-4 w-4"},null,8,Ck),G(" "+S(i(w)("Help")),1)],2),y("button",{onClick:b[15]||(b[15]=P=>d("settings")),class:_e([p("settings"),"w-full text-left"])},[y("img",{src:i(a)+"assets/img/icon-settings.svg",alt:"",class:"h-4 w-4"},null,8,Sk),G(" "+S(i(w)("Settings")),1)],2)])):ne("",!0),i(s).domainMismatch?(m(),F("div",$k,[C(i(si),{class:"mt-0.5 h-4 w-4 shrink-0 text-red-600 dark:text-red-400"}),y("div",Ak,[y("p",Pk,S(i(w)("This API key belongs to a different domain.")),1),y("p",Tk,S(i(w)("The key was issued for %1$s, but this site is %2$s.").replace("%1$s",i(s).tokenDomain).replace("%2$s",i(s).domain)),1),y("p",Ek,S(i(w)("Generate a key for this domain and enter it below.")),1)])])):ne("",!0),i(s).siteScoped?(m(),F("div",Ok,[C(i(Ip),{class:"h-4 w-4 shrink-0 text-sky-600 dark:text-sky-400"}),y("p",Mk,[G(S(i(w)("Plugins activated here apply to this site only. Settings, modules and translations are managed for the whole network."))+" ",1),y("a",{href:i(s).networkAdminUrl,class:"ml-1 font-medium underline"},S(i(w)("Open Network Admin")),9,Ik)])])):ne("",!0),c.value?(m(),F("div",Dk,[C(i(si),{class:"h-4 w-4 shrink-0 text-amber-600 dark:text-amber-400"}),y("p",Bk,S(i(w)("You are running a beta version. Enable the Beta Channel to receive future beta updates.")),1)])):ne("",!0),y("main",Rk,[y("div",null,[o.value==="settings"&&!i(s).siteScoped?(m(),M(m1,{key:0})):o.value==="plugins"?(m(),M(t0,{key:1})):o.value==="themes"?(m(),M(b0,{key:2})):o.value==="translates"?(m(),M(F0,{key:3})):o.value==="modules"?(m(),M(dw,{key:4})):o.value==="news"?(m(),M(Ew,{key:5})):o.value==="help"?(m(),M(Jw,{key:6})):o.value==="about"?(m(),M(Px,{key:7})):o.value==="bug-report"?(m(),M(sk,{key:8})):ne("",!0),y("footer",Fk,[y("div",qk,[y("nav",Lk,[y("a",{href:"#help",class:"!text-muted-foreground hover:!text-foreground transition-colors no-underline",onClick:b[16]||(b[16]=wt(P=>h("help"),["prevent"]))},S(i(w)("Tester")),1),i(t).enabled.value?ne("",!0):(m(),F("a",Nk,[G(S(i(w)("Documentation"))+" ",1),C(i(on),{class:"h-3 w-3"})])),i(t).enabled.value?ne("",!0):(m(),F("a",zk,[G(S(i(w)("Changelog"))+" ",1),C(i(on),{class:"h-3 w-3"})])),i(t).enabled.value?ne("",!0):(m(),F("a",{key:2,href:"#bug-report",class:"!text-muted-foreground hover:!text-foreground transition-colors no-underline",onClick:b[17]||(b[17]=wt(P=>h("bug-report"),["prevent"]))},S(i(w)("Bug Report")),1)),i(t).supportUrl.value||!i(t).enabled.value?(m(),F("a",{key:3,href:i(t).supportUrl.value||"https://hellowp.io/hu/tamogatas/",target:"_blank",rel:"noopener noreferrer",class:"inline-flex items-center gap-1 !text-muted-foreground hover:!text-foreground transition-colors no-underline"},[G(S(i(w)("Support"))+" ",1),C(i(on),{class:"h-3 w-3"})],8,Vk)):ne("",!0)]),y("span",jk,"v"+S(i(l)),1)])])])]),C(i(km),{position:"bottom-right",duration:4e3})]))}}));Uc.use(lp()),Uc.mount("#hellopack-vue-app")})();

Youez - 2016 - github.com/yon3zu
LinuXploit