@mokup/playground 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function to(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Me={},yn=[],Mt=()=>{},Bl=()=>!1,qs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),no=e=>e.startsWith("onUpdate:"),Qe=Object.assign,so=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Za=Object.prototype.hasOwnProperty,Ie=(e,t)=>Za.call(e,t),ie=Array.isArray,xn=e=>Ys(e)==="[object Map]",Kl=e=>Ys(e)==="[object Set]",ae=e=>typeof e=="function",Ke=e=>typeof e=="string",zt=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",zl=e=>(Ae(e)||ae(e))&&ae(e.then)&&ae(e.catch),ql=Object.prototype.toString,Ys=e=>ql.call(e),ec=e=>Ys(e).slice(8,-1),Yl=e=>Ys(e)==="[object Object]",Js=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wn=to(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},tc=/-\w/g,en=Xs(e=>e.replace(tc,t=>t.slice(1).toUpperCase())),nc=/\B([A-Z])/g,gn=Xs(e=>e.replace(nc,"-$1").toLowerCase()),Jl=Xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),dr=Xs(e=>e?`on${Jl(e)}`:""),Zt=(e,t)=>!Object.is(e,t),fr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Xl=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},sc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Po;const Qs=()=>Po||(Po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ls(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Ke(s)?ic(s):ls(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(Ke(e)||Ae(e))return e}const rc=/;(?![^(]*\))/g,oc=/:([^]+)/,lc=/\/\*[^]*?\*\//g;function ic(e){const t={};return e.replace(lc,"").split(rc).forEach(n=>{if(n){const s=n.split(oc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ge(e){let t="";if(Ke(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const s=Ge(e[n]);s&&(t+=s+" ")}else if(Ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ac="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",cc=to(ac);function Ql(e){return!!e||e===""}const Zl=e=>!!(e&&e.__v_isRef===!0),L=e=>Ke(e)?e:e==null?"":ie(e)||Ae(e)&&(e.toString===ql||!ae(e.toString))?Zl(e)?L(e.value):JSON.stringify(e,ei,2):String(e),ei=(e,t)=>Zl(t)?ei(e,t.value):xn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[pr(s,o)+" =>"]=r,n),{})}:Kl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>pr(n))}:zt(t)?pr(t):Ae(t)&&!ie(t)&&!Yl(t)?String(t):t,pr=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let dt;class ti{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=dt,!t&&dt&&(this.index=(dt.scopes||(dt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=dt;try{return dt=this,t()}finally{dt=n}}}on(){++this._on===1&&(this.prevScope=dt,dt=this)}off(){this._on>0&&--this._on===0&&(dt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function uc(e){return new ti(e)}function dc(){return dt}let Le;const gr=new WeakSet;class ni{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,dt&&dt.active&&dt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gr.has(this)&&(gr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ri(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Mo(this),oi(this);const t=Le,n=kt;Le=this,kt=!0;try{return this.fn()}finally{li(this),Le=t,kt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)lo(t);this.deps=this.depsTail=void 0,Mo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ir(this)&&this.run()}get dirty(){return Ir(this)}}let si=0,jn,Hn;function ri(e,t=!1){if(e.flags|=8,t){e.next=Hn,Hn=e;return}e.next=jn,jn=e}function ro(){si++}function oo(){if(--si>0)return;if(Hn){let t=Hn;for(Hn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;jn;){let t=jn;for(jn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function oi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function li(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),lo(s),fc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Ir(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ii(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ii(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qn)||(e.globalVersion=qn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ir(e))))return;e.flags|=2;const t=e.dep,n=Le,s=kt;Le=e,kt=!0;try{oi(e);const r=e.fn(e._value);(t.version===0||Zt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Le=n,kt=s,li(e),e.flags&=-3}}function lo(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)lo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let kt=!0;const ai=[];function Ht(){ai.push(kt),kt=!1}function Gt(){const e=ai.pop();kt=e===void 0?!0:e}function Mo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Le;Le=void 0;try{t()}finally{Le=n}}}let qn=0;class pc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class io{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(!Le||!kt||Le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Le)n=this.activeLink=new pc(Le,this),Le.deps?(n.prevDep=Le.depsTail,Le.depsTail.nextDep=n,Le.depsTail=n):Le.deps=Le.depsTail=n,ci(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Le.depsTail,n.nextDep=void 0,Le.depsTail.nextDep=n,Le.depsTail=n,Le.deps===n&&(Le.deps=s)}return n}trigger(t){this.version++,qn++,this.notify(t)}notify(t){ro();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{oo()}}}function ci(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ci(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const As=new WeakMap,fn=Symbol(""),Pr=Symbol(""),Yn=Symbol("");function tt(e,t,n){if(kt&&Le){let s=As.get(e);s||As.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new io),r.map=s,r.key=n),r.track()}}function Ut(e,t,n,s,r,o){const l=As.get(e);if(!l){qn++;return}const i=a=>{a&&a.trigger()};if(ro(),t==="clear")l.forEach(i);else{const a=ie(e),c=a&&Js(n);if(a&&n==="length"){const u=Number(s);l.forEach((f,p)=>{(p==="length"||p===Yn||!zt(p)&&p>=u)&&i(f)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),c&&i(l.get(Yn)),t){case"add":a?c&&i(l.get("length")):(i(l.get(fn)),xn(e)&&i(l.get(Pr)));break;case"delete":a||(i(l.get(fn)),xn(e)&&i(l.get(Pr)));break;case"set":xn(e)&&i(l.get(fn));break}}oo()}function gc(e,t){const n=As.get(e);return n&&n.get(t)}function hn(e){const t=Te(e);return t===e?t:(tt(t,"iterate",Yn),bt(e)?t:t.map(Ct))}function Zs(e){return tt(e=Te(e),"iterate",Yn),e}function Jt(e,t){return Bt(e)?Cn(pn(e)?Ct(t):t):Ct(t)}const mc={__proto__:null,[Symbol.iterator](){return mr(this,Symbol.iterator,e=>Jt(this,e))},concat(...e){return hn(this).concat(...e.map(t=>ie(t)?hn(t):t))},entries(){return mr(this,"entries",e=>(e[1]=Jt(this,e[1]),e))},every(e,t){return Ot(this,"every",e,t,void 0,arguments)},filter(e,t){return Ot(this,"filter",e,t,n=>n.map(s=>Jt(this,s)),arguments)},find(e,t){return Ot(this,"find",e,t,n=>Jt(this,n),arguments)},findIndex(e,t){return Ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ot(this,"findLast",e,t,n=>Jt(this,n),arguments)},findLastIndex(e,t){return Ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return hr(this,"includes",e)},indexOf(...e){return hr(this,"indexOf",e)},join(e){return hn(this).join(e)},lastIndexOf(...e){return hr(this,"lastIndexOf",e)},map(e,t){return Ot(this,"map",e,t,void 0,arguments)},pop(){return On(this,"pop")},push(...e){return On(this,"push",e)},reduce(e,...t){return Lo(this,"reduce",e,t)},reduceRight(e,...t){return Lo(this,"reduceRight",e,t)},shift(){return On(this,"shift")},some(e,t){return Ot(this,"some",e,t,void 0,arguments)},splice(...e){return On(this,"splice",e)},toReversed(){return hn(this).toReversed()},toSorted(e){return hn(this).toSorted(e)},toSpliced(...e){return hn(this).toSpliced(...e)},unshift(...e){return On(this,"unshift",e)},values(){return mr(this,"values",e=>Jt(this,e))}};function mr(e,t,n){const s=Zs(e),r=s[t]();return s!==e&&!bt(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const hc=Array.prototype;function Ot(e,t,n,s,r,o){const l=Zs(e),i=l!==e&&!bt(e),a=l[t];if(a!==hc[t]){const f=a.apply(e,o);return i?Ct(f):f}let c=n;l!==e&&(i?c=function(f,p){return n.call(this,Jt(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(l,c,s);return i&&r?r(u):u}function Lo(e,t,n,s){const r=Zs(e);let o=n;return r!==e&&(bt(e)?n.length>3&&(o=function(l,i,a){return n.call(this,l,i,a,e)}):o=function(l,i,a){return n.call(this,l,Jt(e,i),a,e)}),r[t](o,...s)}function hr(e,t,n){const s=Te(e);tt(s,"iterate",Yn);const r=s[t](...n);return(r===-1||r===!1)&&er(n[0])?(n[0]=Te(n[0]),s[t](...n)):r}function On(e,t,n=[]){Ht(),ro();const s=Te(e)[t].apply(e,n);return oo(),Gt(),s}const bc=to("__proto__,__v_isRef,__isVue"),ui=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt));function _c(e){zt(e)||(e=String(e));const t=Te(this);return tt(t,"has",e),t.hasOwnProperty(e)}class di{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Rc:mi:o?gi:pi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=ie(t);if(!r){let a;if(l&&(a=mc[n]))return a;if(n==="hasOwnProperty")return _c}const i=Reflect.get(t,n,Fe(t)?t:s);if((zt(n)?ui.has(n):bc(n))||(r||tt(t,"get",n),o))return i;if(Fe(i)){const a=l&&Js(n)?i:i.value;return r&&Ae(a)?Lr(a):a}return Ae(i)?r?Lr(i):co(i):i}}class fi extends di{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const l=ie(t)&&Js(n);if(!this._isShallow){const c=Bt(o);if(!bt(s)&&!Bt(s)&&(o=Te(o),s=Te(s)),!l&&Fe(o)&&!Fe(s))return c||(o.value=s),!0}const i=l?Number(n)<t.length:Ie(t,n),a=Reflect.set(t,n,s,Fe(t)?t:r);return t===Te(r)&&(i?Zt(s,o)&&Ut(t,"set",n,s):Ut(t,"add",n,s)),a}deleteProperty(t,n){const s=Ie(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ut(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!zt(n)||!ui.has(n))&&tt(t,"has",n),s}ownKeys(t){return tt(t,"iterate",ie(t)?"length":fn),Reflect.ownKeys(t)}}class vc extends di{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const yc=new fi,xc=new vc,wc=new fi(!0);const Mr=e=>e,hs=e=>Reflect.getPrototypeOf(e);function kc(e,t,n){return function(...s){const r=this.__v_raw,o=Te(r),l=xn(o),i=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=r[e](...s),u=n?Mr:t?Cn:Ct;return!t&&tt(o,"iterate",a?Pr:fn),Qe(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:i?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function bs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Tc(e,t){const n={get(r){const o=this.__v_raw,l=Te(o),i=Te(r);e||(Zt(r,i)&&tt(l,"get",r),tt(l,"get",i));const{has:a}=hs(l),c=t?Mr:e?Cn:Ct;if(a.call(l,r))return c(o.get(r));if(a.call(l,i))return c(o.get(i));o!==l&&o.get(r)},get size(){const r=this.__v_raw;return!e&&tt(Te(r),"iterate",fn),r.size},has(r){const o=this.__v_raw,l=Te(o),i=Te(r);return e||(Zt(r,i)&&tt(l,"has",r),tt(l,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const l=this,i=l.__v_raw,a=Te(i),c=t?Mr:e?Cn:Ct;return!e&&tt(a,"iterate",fn),i.forEach((u,f)=>r.call(o,c(u),c(f),l))}};return Qe(n,e?{add:bs("add"),set:bs("set"),delete:bs("delete"),clear:bs("clear")}:{add(r){!t&&!bt(r)&&!Bt(r)&&(r=Te(r));const o=Te(this);return hs(o).has.call(o,r)||(o.add(r),Ut(o,"add",r,r)),this},set(r,o){!t&&!bt(o)&&!Bt(o)&&(o=Te(o));const l=Te(this),{has:i,get:a}=hs(l);let c=i.call(l,r);c||(r=Te(r),c=i.call(l,r));const u=a.call(l,r);return l.set(r,o),c?Zt(o,u)&&Ut(l,"set",r,o):Ut(l,"add",r,o),this},delete(r){const o=Te(this),{has:l,get:i}=hs(o);let a=l.call(o,r);a||(r=Te(r),a=l.call(o,r)),i&&i.call(o,r);const c=o.delete(r);return a&&Ut(o,"delete",r,void 0),c},clear(){const r=Te(this),o=r.size!==0,l=r.clear();return o&&Ut(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=kc(r,e,t)}),n}function ao(e,t){const n=Tc(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Ie(n,r)&&r in s?n:s,r,o)}const Cc={get:ao(!1,!1)},Sc={get:ao(!1,!0)},Ec={get:ao(!0,!1)};const pi=new WeakMap,gi=new WeakMap,mi=new WeakMap,Rc=new WeakMap;function Ic(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pc(e){return e.__v_skip||!Object.isExtensible(e)?0:Ic(ec(e))}function co(e){return Bt(e)?e:uo(e,!1,yc,Cc,pi)}function Mc(e){return uo(e,!1,wc,Sc,gi)}function Lr(e){return uo(e,!0,xc,Ec,mi)}function uo(e,t,n,s,r){if(!Ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Pc(e);if(o===0)return e;const l=r.get(e);if(l)return l;const i=new Proxy(e,o===2?s:n);return r.set(e,i),i}function pn(e){return Bt(e)?pn(e.__v_raw):!!(e&&e.__v_isReactive)}function Bt(e){return!!(e&&e.__v_isReadonly)}function bt(e){return!!(e&&e.__v_isShallow)}function er(e){return e?!!e.__v_raw:!1}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Lc(e){return!Ie(e,"__v_skip")&&Object.isExtensible(e)&&Xl(e,"__v_skip",!0),e}const Ct=e=>Ae(e)?co(e):e,Cn=e=>Ae(e)?Lr(e):e;function Fe(e){return e?e.__v_isRef===!0:!1}function ee(e){return hi(e,!1)}function $c(e){return hi(e,!0)}function hi(e,t){return Fe(e)?e:new Oc(e,t)}class Oc{constructor(t,n){this.dep=new io,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Te(t),this._value=n?t:Ct(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||bt(t)||Bt(t);t=s?t:Te(t),Zt(t,n)&&(this._rawValue=t,this._value=s?t:Ct(t),this.dep.trigger())}}function R(e){return Fe(e)?e.value:e}const Ac={get:(e,t,n)=>t==="__v_raw"?e:R(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Fe(r)&&!Fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function bi(e){return pn(e)?e:new Proxy(e,Ac)}function Nc(e){const t=ie(e)?new Array(e.length):{};for(const n in e)t[n]=Dc(e,n);return t}class Fc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=Te(t);let r=!0,o=t;if(!ie(t)||!Js(String(n)))do r=!er(o)||bt(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=R(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Fe(this._raw[this._key])){const n=this._object[this._key];if(Fe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return gc(this._raw,this._key)}}function Dc(e,t,n){return new Fc(e,t,n)}class Uc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new io(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return ri(this,!0),!0}get value(){const t=this.dep.track();return ii(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vc(e,t,n=!1){let s,r;return ae(e)?s=e:(s=e.get,r=e.set),new Uc(s,r,n)}const _s={},Ns=new WeakMap;let cn;function Wc(e,t=!1,n=cn){if(n){let s=Ns.get(n);s||Ns.set(n,s=[]),s.push(e)}}function jc(e,t,n=Me){const{immediate:s,deep:r,once:o,scheduler:l,augmentJob:i,call:a}=n,c=v=>r?v:bt(v)||r===!1||r===0?Vt(v,1):Vt(v);let u,f,p,g,S=!1,I=!1;if(Fe(e)?(f=()=>e.value,S=bt(e)):pn(e)?(f=()=>c(e),S=!0):ie(e)?(I=!0,S=e.some(v=>pn(v)||bt(v)),f=()=>e.map(v=>{if(Fe(v))return v.value;if(pn(v))return c(v);if(ae(v))return a?a(v,2):v()})):ae(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){Ht();try{p()}finally{Gt()}}const v=cn;cn=u;try{return a?a(e,3,[g]):e(g)}finally{cn=v}}:f=Mt,t&&r){const v=f,O=r===!0?1/0:r;f=()=>Vt(v(),O)}const T=dc(),b=()=>{u.stop(),T&&T.active&&so(T.effects,u)};if(o&&t){const v=t;t=(...O)=>{v(...O),b()}}let _=I?new Array(e.length).fill(_s):_s;const C=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const O=u.run();if(r||S||(I?O.some((j,V)=>Zt(j,_[V])):Zt(O,_))){p&&p();const j=cn;cn=u;try{const V=[O,_===_s?void 0:I&&_[0]===_s?[]:_,g];_=O,a?a(t,3,V):t(...V)}finally{cn=j}}}else u.run()};return i&&i(C),u=new ni(f),u.scheduler=l?()=>l(C,!1):C,g=v=>Wc(v,!1,u),p=u.onStop=()=>{const v=Ns.get(u);if(v){if(a)a(v,4);else for(const O of v)O();Ns.delete(u)}},t?s?C(!0):_=u.run():l?l(C.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Vt(e,t=1/0,n){if(t<=0||!Ae(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Fe(e))Vt(e.value,t,n);else if(ie(e))for(let s=0;s<e.length;s++)Vt(e[s],t,n);else if(Kl(e)||xn(e))e.forEach(s=>{Vt(s,t,n)});else if(Yl(e)){for(const s in e)Vt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Vt(e[s],t,n)}return e}function is(e,t,n,s){try{return s?e(...s):e()}catch(r){tr(r,t,n)}}function $t(e,t,n,s){if(ae(e)){const r=is(e,t,n,s);return r&&zl(r)&&r.catch(o=>{tr(o,t,n)}),r}if(ie(e)){const r=[];for(let o=0;o<e.length;o++)r.push($t(e[o],t,n,s));return r}}function tr(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Me;if(t){let i=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}i=i.parent}if(o){Ht(),is(o,null,10,[e,a,c]),Gt();return}}Hc(e,n,r,s,l)}function Hc(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const it=[];let It=-1;const wn=[];let Xt=null,_n=0;const _i=Promise.resolve();let Fs=null;function Gc(e){const t=Fs||_i;return e?t.then(this?e.bind(this):e):t}function Bc(e){let t=It+1,n=it.length;for(;t<n;){const s=t+n>>>1,r=it[s],o=Jn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function fo(e){if(!(e.flags&1)){const t=Jn(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=Jn(n)?it.push(e):it.splice(Bc(t),0,e),e.flags|=1,vi()}}function vi(){Fs||(Fs=_i.then(xi))}function Kc(e){ie(e)?wn.push(...e):Xt&&e.id===-1?Xt.splice(_n+1,0,e):e.flags&1||(wn.push(e),e.flags|=1),vi()}function $o(e,t,n=It+1){for(;n<it.length;n++){const s=it[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;it.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function yi(e){if(wn.length){const t=[...new Set(wn)].sort((n,s)=>Jn(n)-Jn(s));if(wn.length=0,Xt){Xt.push(...t);return}for(Xt=t,_n=0;_n<Xt.length;_n++){const n=Xt[_n];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,_n=0}}const Jn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xi(e){try{for(It=0;It<it.length;It++){const t=it[It];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),is(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;It<it.length;It++){const t=it[It];t&&(t.flags&=-2)}It=-1,it.length=0,yi(),Fs=null,(it.length||wn.length)&&xi()}}let nt=null,wi=null;function Ds(e){const t=nt;return nt=e,wi=e&&e.type.__scopeId||null,t}function re(e,t=nt,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ws(-1);const o=Ds(t);let l;try{l=e(...r)}finally{Ds(o),s._d&&Ws(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function vs(e,t){if(nt===null)return e;const n=or(nt),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,l,i,a=Me]=t[r];o&&(ae(o)&&(o={mounted:o,updated:o}),o.deep&&Vt(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:i,modifiers:a}))}return e}function on(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const i=r[l];o&&(i.oldValue=o[l].value);let a=i.dir[s];a&&(Ht(),$t(a,n,8,[e.el,i,e,t]),Gt())}}function zc(e,t){if(at){let n=at.provides;const s=at.parent&&at.parent.provides;s===n&&(n=at.provides=Object.create(s)),n[e]=t}}function Gn(e,t,n=!1){const s=rr();if(s||Tn){let r=Tn?Tn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ae(t)?t.call(s&&s.proxy):t}}const qc=Symbol.for("v-scx"),Yc=()=>Gn(qc);function Tt(e,t,n){return ki(e,t,n)}function ki(e,t,n=Me){const{immediate:s,deep:r,flush:o,once:l}=n,i=Qe({},n),a=t&&s||!t&&o!=="post";let c;if(Zn){if(o==="sync"){const g=Yc();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=Mt,g.resume=Mt,g.pause=Mt,g}}const u=at;i.call=(g,S,I)=>$t(g,u,S,I);let f=!1;o==="post"?i.scheduler=g=>{gt(g,u&&u.suspense)}:o!=="sync"&&(f=!0,i.scheduler=(g,S)=>{S?g():fo(g)}),i.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=jc(e,t,i);return Zn&&(c?c.push(p):a&&p()),p}function Jc(e,t,n){const s=this.proxy,r=Ke(e)?e.includes(".")?Ti(s,e):()=>s[e]:e.bind(s,s);let o;ae(t)?o=t:(o=t.handler,n=t);const l=ds(this),i=ki(r,o.bind(s),n);return l(),i}function Ti(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Xc=Symbol("_vte"),Qc=e=>e.__isTeleport,Zc=Symbol("_leaveCb");function po(e,t){e.shapeFlag&6&&e.component?(e.transition=t,po(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 $e(e,t){return ae(e)?Qe({name:e.name},t,{setup:e}):e}function Ci(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Us=new WeakMap;function Bn(e,t,n,s,r=!1){if(ie(e)){e.forEach((S,I)=>Bn(S,t&&(ie(t)?t[I]:t),n,s,r));return}if(kn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Bn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?or(s.component):s.el,l=r?null:o,{i,r:a}=e,c=t&&t.r,u=i.refs===Me?i.refs={}:i.refs,f=i.setupState,p=Te(f),g=f===Me?Bl:S=>Ie(p,S);if(c!=null&&c!==a){if(Oo(t),Ke(c))u[c]=null,g(c)&&(f[c]=null);else if(Fe(c)){c.value=null;const S=t;S.k&&(u[S.k]=null)}}if(ae(a))is(a,i,12,[l,u]);else{const S=Ke(a),I=Fe(a);if(S||I){const T=()=>{if(e.f){const b=S?g(a)?f[a]:u[a]:a.value;if(r)ie(b)&&so(b,o);else if(ie(b))b.includes(o)||b.push(o);else if(S)u[a]=[o],g(a)&&(f[a]=u[a]);else{const _=[o];a.value=_,e.k&&(u[e.k]=_)}}else S?(u[a]=l,g(a)&&(f[a]=l)):I&&(a.value=l,e.k&&(u[e.k]=l))};if(l){const b=()=>{T(),Us.delete(e)};b.id=-1,Us.set(e,b),gt(b,n)}else Oo(e),T()}}}function Oo(e){const t=Us.get(e);t&&(t.flags|=8,Us.delete(e))}Qs().requestIdleCallback;Qs().cancelIdleCallback;const kn=e=>!!e.type.__asyncLoader,Si=e=>e.type.__isKeepAlive;function eu(e,t){Ei(e,"a",t)}function tu(e,t){Ei(e,"da",t)}function Ei(e,t,n=at){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(nr(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Si(r.parent.vnode)&&nu(s,t,n,r),r=r.parent}}function nu(e,t,n,s){const r=nr(t,e,s,!0);go(()=>{so(s[t],r)},n)}function nr(e,t,n=at,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{Ht();const i=ds(n),a=$t(t,n,e,l);return i(),Gt(),a});return s?r.unshift(o):r.push(o),o}}const qt=e=>(t,n=at)=>{(!Zn||e==="sp")&&nr(e,(...s)=>t(...s),n)},su=qt("bm"),In=qt("m"),ru=qt("bu"),ou=qt("u"),as=qt("bum"),go=qt("um"),lu=qt("sp"),iu=qt("rtg"),au=qt("rtc");function cu(e,t=at){nr("ec",e,t)}const uu=Symbol.for("v-ndc");function Xe(e,t,n,s){let r;const o=n,l=ie(e);if(l||Ke(e)){const i=l&&pn(e);let a=!1,c=!1;i&&(a=!bt(e),c=Bt(e),e=Zs(e)),r=new Array(e.length);for(let u=0,f=e.length;u<f;u++)r[u]=t(a?c?Cn(Ct(e[u])):Ct(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(Ae(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,c=i.length;a<c;a++){const u=i[a];r[a]=t(e[u],u,a,o)}}else r=[];return r}function mo(e,t,n={},s,r){if(nt.ce||nt.parent&&kn(nt.parent)&&nt.parent.ce){const c=Object.keys(n).length>0;return $(),ht(ve,null,[z("slot",n,s)],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),$();const l=o&&Ri(o(n)),i=n.key||l&&l.key,a=ht(ve,{key:(i&&!zt(i)?i:`_${t}`)+(!l&&s?"_fb":"")},l||[],l&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Ri(e){return e.some(t=>Qn(t)?!(t.type===Kt||t.type===ve&&!Ri(t.children)):!0)?e:null}const $r=e=>e?zi(e)?or(e):$r(e.parent):null,Kn=Qe(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=>$r(e.parent),$root:e=>$r(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Pi(e),$forceUpdate:e=>e.f||(e.f=()=>{fo(e.update)}),$nextTick:e=>e.n||(e.n=Gc.bind(e.proxy)),$watch:e=>Jc.bind(e)}),br=(e,t)=>e!==Me&&!e.__isScriptSetup&&Ie(e,t),du={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:l,type:i,appContext:a}=e;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(br(s,t))return l[t]=1,s[t];if(r!==Me&&Ie(r,t))return l[t]=2,r[t];if(Ie(o,t))return l[t]=3,o[t];if(n!==Me&&Ie(n,t))return l[t]=4,n[t];Or&&(l[t]=0)}}const c=Kn[t];let u,f;if(c)return t==="$attrs"&&tt(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Me&&Ie(n,t))return l[t]=4,n[t];if(f=a.config.globalProperties,Ie(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return br(r,t)?(r[t]=n,!0):s!==Me&&Ie(s,t)?(s[t]=n,!0):Ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:l}},i){let a;return!!(n[i]||e!==Me&&i[0]!=="$"&&Ie(e,i)||br(t,i)||Ie(o,i)||Ie(s,i)||Ie(Kn,i)||Ie(r.config.globalProperties,i)||(a=l.__cssModules)&&a[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cs(){return fu().attrs}function fu(e){const t=rr();return t.setupContext||(t.setupContext=Yi(t))}function Ao(e){return ie(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Or=!0;function pu(e){const t=Pi(e),n=e.proxy,s=e.ctx;Or=!1,t.beforeCreate&&No(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:i,provide:a,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:g,updated:S,activated:I,deactivated:T,beforeDestroy:b,beforeUnmount:_,destroyed:C,unmounted:v,render:O,renderTracked:j,renderTriggered:V,errorCaptured:G,serverPrefetch:te,expose:ye,inheritAttrs:xe,components:ce,directives:Ne,filters:oe}=t;if(c&&gu(c,s,null),l)for(const K in l){const A=l[K];ae(A)&&(s[K]=A.bind(n))}if(r){const K=r.call(n,n);Ae(K)&&(e.data=co(K))}if(Or=!0,o)for(const K in o){const A=o[K],ne=ae(A)?A.bind(n,n):ae(A.get)?A.get.bind(n,n):Mt,_e=!ae(A)&&ae(A.set)?A.set.bind(n):Mt,Se=H({get:ne,set:_e});Object.defineProperty(s,K,{enumerable:!0,configurable:!0,get:()=>Se.value,set:be=>Se.value=be})}if(i)for(const K in i)Ii(i[K],s,n,K);if(a){const K=ae(a)?a.call(n):a;Reflect.ownKeys(K).forEach(A=>{zc(A,K[A])})}u&&No(u,e,"c");function B(K,A){ie(A)?A.forEach(ne=>K(ne.bind(n))):A&&K(A.bind(n))}if(B(su,f),B(In,p),B(ru,g),B(ou,S),B(eu,I),B(tu,T),B(cu,G),B(au,j),B(iu,V),B(as,_),B(go,v),B(lu,te),ie(ye))if(ye.length){const K=e.exposed||(e.exposed={});ye.forEach(A=>{Object.defineProperty(K,A,{get:()=>n[A],set:ne=>n[A]=ne,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===Mt&&(e.render=O),xe!=null&&(e.inheritAttrs=xe),ce&&(e.components=ce),Ne&&(e.directives=Ne),te&&Ci(e)}function gu(e,t,n=Mt){ie(e)&&(e=Ar(e));for(const s in e){const r=e[s];let o;Ae(r)?"default"in r?o=Gn(r.from||s,r.default,!0):o=Gn(r.from||s):o=Gn(r),Fe(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[s]=o}}function No(e,t,n){$t(ie(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ii(e,t,n,s){let r=s.includes(".")?Ti(n,s):()=>n[s];if(Ke(e)){const o=t[e];ae(o)&&Tt(r,o)}else if(ae(e))Tt(r,e.bind(n));else if(Ae(e))if(ie(e))e.forEach(o=>Ii(o,t,n,s));else{const o=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(o)&&Tt(r,o,e)}}function Pi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,i=o.get(t);let a;return i?a=i:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Vs(a,c,l,!0)),Vs(a,t,l)),Ae(t)&&o.set(t,a),a}function Vs(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Vs(e,o,n,!0),r&&r.forEach(l=>Vs(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const i=mu[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const mu={data:Fo,props:Do,emits:Do,methods:Un,computed:Un,beforeCreate:lt,created:lt,beforeMount:lt,mounted:lt,beforeUpdate:lt,updated:lt,beforeDestroy:lt,beforeUnmount:lt,destroyed:lt,unmounted:lt,activated:lt,deactivated:lt,errorCaptured:lt,serverPrefetch:lt,components:Un,directives:Un,watch:bu,provide:Fo,inject:hu};function Fo(e,t){return t?e?function(){return Qe(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function hu(e,t){return Un(Ar(e),Ar(t))}function Ar(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function lt(e,t){return e?[...new Set([].concat(e,t))]:t}function Un(e,t){return e?Qe(Object.create(null),e,t):t}function Do(e,t){return e?ie(e)&&ie(t)?[...new Set([...e,...t])]:Qe(Object.create(null),Ao(e),Ao(t??{})):t}function bu(e,t){if(!e)return t;if(!t)return e;const n=Qe(Object.create(null),e);for(const s in t)n[s]=lt(e[s],t[s]);return n}function Mi(){return{app:null,config:{isNativeTag:Bl,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 _u=0;function vu(e,t){return function(s,r=null){ae(s)||(s=Qe({},s)),r!=null&&!Ae(r)&&(r=null);const o=Mi(),l=new WeakSet,i=[];let a=!1;const c=o.app={_uid:_u++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:qu,get config(){return o.config},set config(u){},use(u,...f){return l.has(u)||(u&&ae(u.install)?(l.add(u),u.install(c,...f)):ae(u)&&(l.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,p){if(!a){const g=c._ceVNode||z(s,r);return g.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(g,u,p),a=!0,c._container=u,u.__vue_app__=c,or(g.component)}},onUnmount(u){i.push(u)},unmount(){a&&($t(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=Tn;Tn=c;try{return u()}finally{Tn=f}}};return c}}let Tn=null;const yu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${en(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function xu(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Me;let r=n;const o=t.startsWith("update:"),l=o&&yu(s,t.slice(7));l&&(l.trim&&(r=n.map(u=>Ke(u)?u.trim():u)),l.number&&(r=n.map(sc)));let i,a=s[i=dr(t)]||s[i=dr(en(t))];!a&&o&&(a=s[i=dr(gn(t))]),a&&$t(a,e,6,r);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,$t(c,e,6,r)}}const wu=new WeakMap;function Li(e,t,n=!1){const s=n?wu:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let l={},i=!1;if(!ae(e)){const a=c=>{const u=Li(c,t,!0);u&&(i=!0,Qe(l,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!i?(Ae(e)&&s.set(e,null),null):(ie(o)?o.forEach(a=>l[a]=null):Qe(l,o),Ae(e)&&s.set(e,l),l)}function sr(e,t){return!e||!qs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ie(e,t[0].toLowerCase()+t.slice(1))||Ie(e,gn(t))||Ie(e,t))}function Uo(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:l,attrs:i,emit:a,render:c,renderCache:u,props:f,data:p,setupState:g,ctx:S,inheritAttrs:I}=e,T=Ds(e);let b,_;try{if(n.shapeFlag&4){const v=r||s,O=v;b=Pt(c.call(O,v,u,f,g,p,S)),_=i}else{const v=t;b=Pt(v.length>1?v(f,{attrs:i,slots:l,emit:a}):v(f,null)),_=t.props?i:ku(i)}}catch(v){zn.length=0,tr(v,e,1),b=z(Kt)}let C=b;if(_&&I!==!1){const v=Object.keys(_),{shapeFlag:O}=C;v.length&&O&7&&(o&&v.some(no)&&(_=Tu(_,o)),C=Sn(C,_,!1,!0))}return n.dirs&&(C=Sn(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&po(C,n.transition),b=C,Ds(T),b}const ku=e=>{let t;for(const n in e)(n==="class"||n==="style"||qs(n))&&((t||(t={}))[n]=e[n]);return t},Tu=(e,t)=>{const n={};for(const s in e)(!no(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Cu(e,t,n){const{props:s,children:r,component:o}=e,{props:l,children:i,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Vo(s,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(l[p]!==s[p]&&!sr(c,p))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:s===l?!1:s?l?Vo(s,l,c):!0:!!l;return!1}function Vo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!sr(n,o))return!0}return!1}function Su({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const $i={},Oi=()=>Object.create($i),Ai=e=>Object.getPrototypeOf(e)===$i;function Eu(e,t,n,s=!1){const r={},o=Oi();e.propsDefaults=Object.create(null),Ni(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=s?r:Mc(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Ru(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,i=Te(r),[a]=e.propsOptions;let c=!1;if((s||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(sr(e.emitsOptions,p))continue;const g=t[p];if(a)if(Ie(o,p))g!==o[p]&&(o[p]=g,c=!0);else{const S=en(p);r[S]=Nr(a,i,S,g,e,!1)}else g!==o[p]&&(o[p]=g,c=!0)}}}else{Ni(e,t,r,o)&&(c=!0);let u;for(const f in i)(!t||!Ie(t,f)&&((u=gn(f))===f||!Ie(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=Nr(a,i,f,void 0,e,!0)):delete r[f]);if(o!==i)for(const f in o)(!t||!Ie(t,f))&&(delete o[f],c=!0)}c&&Ut(e.attrs,"set","")}function Ni(e,t,n,s){const[r,o]=e.propsOptions;let l=!1,i;if(t)for(let a in t){if(Wn(a))continue;const c=t[a];let u;r&&Ie(r,u=en(a))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:sr(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,l=!0)}if(o){const a=Te(n),c=i||Me;for(let u=0;u<o.length;u++){const f=o[u];n[f]=Nr(r,a,f,c[f],e,!Ie(c,f))}}return l}function Nr(e,t,n,s,r,o){const l=e[n];if(l!=null){const i=Ie(l,"default");if(i&&s===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ae(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=ds(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}l[0]&&(o&&!i?s=!1:l[1]&&(s===""||s===gn(n))&&(s=!0))}return s}const Iu=new WeakMap;function Fi(e,t,n=!1){const s=n?Iu:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,l={},i=[];let a=!1;if(!ae(e)){const u=f=>{a=!0;const[p,g]=Fi(f,t,!0);Qe(l,p),g&&i.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return Ae(e)&&s.set(e,yn),yn;if(ie(o))for(let u=0;u<o.length;u++){const f=en(o[u]);Wo(f)&&(l[f]=Me)}else if(o)for(const u in o){const f=en(u);if(Wo(f)){const p=o[u],g=l[f]=ie(p)||ae(p)?{type:p}:Qe({},p),S=g.type;let I=!1,T=!0;if(ie(S))for(let b=0;b<S.length;++b){const _=S[b],C=ae(_)&&_.name;if(C==="Boolean"){I=!0;break}else C==="String"&&(T=!1)}else I=ae(S)&&S.name==="Boolean";g[0]=I,g[1]=T,(I||Ie(g,"default"))&&i.push(f)}}const c=[l,i];return Ae(e)&&s.set(e,c),c}function Wo(e){return e[0]!=="$"&&!Wn(e)}const ho=e=>e==="_"||e==="_ctx"||e==="$stable",bo=e=>ie(e)?e.map(Pt):[Pt(e)],Pu=(e,t,n)=>{if(t._n)return t;const s=re((...r)=>bo(t(...r)),n);return s._c=!1,s},Di=(e,t,n)=>{const s=e._ctx;for(const r in e){if(ho(r))continue;const o=e[r];if(ae(o))t[r]=Pu(r,o,s);else if(o!=null){const l=bo(o);t[r]=()=>l}}},Ui=(e,t)=>{const n=bo(t);e.slots.default=()=>n},Vi=(e,t,n)=>{for(const s in t)(n||!ho(s))&&(e[s]=t[s])},Mu=(e,t,n)=>{const s=e.slots=Oi();if(e.vnode.shapeFlag&32){const r=t._;r?(Vi(s,t,n),n&&Xl(s,"_",r,!0)):Di(t,s)}else t&&Ui(e,t)},Lu=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,l=Me;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:Vi(r,t,n):(o=!t.$stable,Di(t,r)),l=t}else t&&(Ui(e,t),l={default:1});if(o)for(const i in r)!ho(i)&&l[i]==null&&delete r[i]},gt=Fu;function $u(e){return Ou(e)}function Ou(e,t){const n=Qs();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:l,createText:i,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:g=Mt,insertStaticContent:S}=e,I=(h,y,P,D=null,N=null,U=null,d=void 0,m=null,w=!!y.dynamicChildren)=>{if(h===y)return;h&&!An(h,y)&&(D=ke(h),be(h,N,U,!0),h=null),y.patchFlag===-2&&(w=!1,y.dynamicChildren=null);const{type:E,ref:q,shapeFlag:W}=y;switch(E){case us:T(h,y,P,D);break;case Kt:b(h,y,P,D);break;case vr:h==null&&_(y,P,D,d);break;case ve:ce(h,y,P,D,N,U,d,m,w);break;default:W&1?O(h,y,P,D,N,U,d,m,w):W&6?Ne(h,y,P,D,N,U,d,m,w):(W&64||W&128)&&E.process(h,y,P,D,N,U,d,m,w,Y)}q!=null&&N?Bn(q,h&&h.ref,U,y||h,!y):q==null&&h&&h.ref!=null&&Bn(h.ref,null,U,h,!0)},T=(h,y,P,D)=>{if(h==null)s(y.el=i(y.children),P,D);else{const N=y.el=h.el;y.children!==h.children&&c(N,y.children)}},b=(h,y,P,D)=>{h==null?s(y.el=a(y.children||""),P,D):y.el=h.el},_=(h,y,P,D)=>{[h.el,h.anchor]=S(h.children,y,P,D,h.el,h.anchor)},C=({el:h,anchor:y},P,D)=>{let N;for(;h&&h!==y;)N=p(h),s(h,P,D),h=N;s(y,P,D)},v=({el:h,anchor:y})=>{let P;for(;h&&h!==y;)P=p(h),r(h),h=P;r(y)},O=(h,y,P,D,N,U,d,m,w)=>{if(y.type==="svg"?d="svg":y.type==="math"&&(d="mathml"),h==null)j(y,P,D,N,U,d,m,w);else{const E=h.el&&h.el._isVueCE?h.el:null;try{E&&E._beginPatch(),te(h,y,N,U,d,m,w)}finally{E&&E._endPatch()}}},j=(h,y,P,D,N,U,d,m)=>{let w,E;const{props:q,shapeFlag:W,transition:k,dirs:M}=h;if(w=h.el=l(h.type,U,q&&q.is,q),W&8?u(w,h.children):W&16&&G(h.children,w,null,D,N,_r(h,U),d,m),M&&on(h,null,D,"created"),V(w,h,h.scopeId,d,D),q){for(const se in q)se!=="value"&&!Wn(se)&&o(w,se,null,q[se],U,D);"value"in q&&o(w,"value",null,q.value,U),(E=q.onVnodeBeforeMount)&&St(E,D,h)}M&&on(h,null,D,"beforeMount");const X=Au(N,k);X&&k.beforeEnter(w),s(w,y,P),((E=q&&q.onVnodeMounted)||X||M)&&gt(()=>{E&&St(E,D,h),X&&k.enter(w),M&&on(h,null,D,"mounted")},N)},V=(h,y,P,D,N)=>{if(P&&g(h,P),D)for(let U=0;U<D.length;U++)g(h,D[U]);if(N){let U=N.subTree;if(y===U||Gi(U.type)&&(U.ssContent===y||U.ssFallback===y)){const d=N.vnode;V(h,d,d.scopeId,d.slotScopeIds,N.parent)}}},G=(h,y,P,D,N,U,d,m,w=0)=>{for(let E=w;E<h.length;E++){const q=h[E]=m?Qt(h[E]):Pt(h[E]);I(null,q,y,P,D,N,U,d,m)}},te=(h,y,P,D,N,U,d)=>{const m=y.el=h.el;let{patchFlag:w,dynamicChildren:E,dirs:q}=y;w|=h.patchFlag&16;const W=h.props||Me,k=y.props||Me;let M;if(P&&ln(P,!1),(M=k.onVnodeBeforeUpdate)&&St(M,P,y,h),q&&on(y,h,P,"beforeUpdate"),P&&ln(P,!0),(W.innerHTML&&k.innerHTML==null||W.textContent&&k.textContent==null)&&u(m,""),E?ye(h.dynamicChildren,E,m,P,D,_r(y,N),U):d||A(h,y,m,null,P,D,_r(y,N),U,!1),w>0){if(w&16)xe(m,W,k,P,N);else if(w&2&&W.class!==k.class&&o(m,"class",null,k.class,N),w&4&&o(m,"style",W.style,k.style,N),w&8){const X=y.dynamicProps;for(let se=0;se<X.length;se++){const ue=X[se],He=W[ue],Ue=k[ue];(Ue!==He||ue==="value")&&o(m,ue,He,Ue,N,P)}}w&1&&h.children!==y.children&&u(m,y.children)}else!d&&E==null&&xe(m,W,k,P,N);((M=k.onVnodeUpdated)||q)&&gt(()=>{M&&St(M,P,y,h),q&&on(y,h,P,"updated")},D)},ye=(h,y,P,D,N,U,d)=>{for(let m=0;m<y.length;m++){const w=h[m],E=y[m],q=w.el&&(w.type===ve||!An(w,E)||w.shapeFlag&198)?f(w.el):P;I(w,E,q,null,D,N,U,d,!0)}},xe=(h,y,P,D,N)=>{if(y!==P){if(y!==Me)for(const U in y)!Wn(U)&&!(U in P)&&o(h,U,y[U],null,N,D);for(const U in P){if(Wn(U))continue;const d=P[U],m=y[U];d!==m&&U!=="value"&&o(h,U,m,d,N,D)}"value"in P&&o(h,"value",y.value,P.value,N)}},ce=(h,y,P,D,N,U,d,m,w)=>{const E=y.el=h?h.el:i(""),q=y.anchor=h?h.anchor:i("");let{patchFlag:W,dynamicChildren:k,slotScopeIds:M}=y;M&&(m=m?m.concat(M):M),h==null?(s(E,P,D),s(q,P,D),G(y.children||[],P,q,N,U,d,m,w)):W>0&&W&64&&k&&h.dynamicChildren&&h.dynamicChildren.length===k.length?(ye(h.dynamicChildren,k,P,N,U,d,m),(y.key!=null||N&&y===N.subTree)&&Wi(h,y,!0)):A(h,y,P,q,N,U,d,m,w)},Ne=(h,y,P,D,N,U,d,m,w)=>{y.slotScopeIds=m,h==null?y.shapeFlag&512?N.ctx.activate(y,P,D,d,w):oe(y,P,D,N,U,d,w):le(h,y,w)},oe=(h,y,P,D,N,U,d)=>{const m=h.component=Hu(h,D,N);if(Si(h)&&(m.ctx.renderer=Y),Gu(m,!1,d),m.asyncDep){if(N&&N.registerDep(m,B,d),!h.el){const w=m.subTree=z(Kt);b(null,w,y,P),h.placeholder=w.el}}else B(m,h,y,P,N,U,d)},le=(h,y,P)=>{const D=y.component=h.component;if(Cu(h,y,P))if(D.asyncDep&&!D.asyncResolved){K(D,y,P);return}else D.next=y,D.update();else y.el=h.el,D.vnode=y},B=(h,y,P,D,N,U,d)=>{const m=()=>{if(h.isMounted){let{next:W,bu:k,u:M,parent:X,vnode:se}=h;{const pt=ji(h);if(pt){W&&(W.el=se.el,K(h,W,d)),pt.asyncDep.then(()=>{h.isUnmounted||m()});return}}let ue=W,He;ln(h,!1),W?(W.el=se.el,K(h,W,d)):W=se,k&&fr(k),(He=W.props&&W.props.onVnodeBeforeUpdate)&&St(He,X,W,se),ln(h,!0);const Ue=Uo(h),ct=h.subTree;h.subTree=Ue,I(ct,Ue,f(ct.el),ke(ct),h,N,U),W.el=Ue.el,ue===null&&Su(h,Ue.el),M&&gt(M,N),(He=W.props&&W.props.onVnodeUpdated)&&gt(()=>St(He,X,W,se),N)}else{let W;const{el:k,props:M}=y,{bm:X,m:se,parent:ue,root:He,type:Ue}=h,ct=kn(y);ln(h,!1),X&&fr(X),!ct&&(W=M&&M.onVnodeBeforeMount)&&St(W,ue,y),ln(h,!0);{He.ce&&He.ce._def.shadowRoot!==!1&&He.ce._injectChildStyle(Ue);const pt=h.subTree=Uo(h);I(null,pt,P,D,h,N,U),y.el=pt.el}if(se&&gt(se,N),!ct&&(W=M&&M.onVnodeMounted)){const pt=y;gt(()=>St(W,ue,pt),N)}(y.shapeFlag&256||ue&&kn(ue.vnode)&&ue.vnode.shapeFlag&256)&&h.a&&gt(h.a,N),h.isMounted=!0,y=P=D=null}};h.scope.on();const w=h.effect=new ni(m);h.scope.off();const E=h.update=w.run.bind(w),q=h.job=w.runIfDirty.bind(w);q.i=h,q.id=h.uid,w.scheduler=()=>fo(q),ln(h,!0),E()},K=(h,y,P)=>{y.component=h;const D=h.vnode.props;h.vnode=y,h.next=null,Ru(h,y.props,D,P),Lu(h,y.children,P),Ht(),$o(h),Gt()},A=(h,y,P,D,N,U,d,m,w=!1)=>{const E=h&&h.children,q=h?h.shapeFlag:0,W=y.children,{patchFlag:k,shapeFlag:M}=y;if(k>0){if(k&128){_e(E,W,P,D,N,U,d,m,w);return}else if(k&256){ne(E,W,P,D,N,U,d,m,w);return}}M&8?(q&16&&je(E,N,U),W!==E&&u(P,W)):q&16?M&16?_e(E,W,P,D,N,U,d,m,w):je(E,N,U,!0):(q&8&&u(P,""),M&16&&G(W,P,D,N,U,d,m,w))},ne=(h,y,P,D,N,U,d,m,w)=>{h=h||yn,y=y||yn;const E=h.length,q=y.length,W=Math.min(E,q);let k;for(k=0;k<W;k++){const M=y[k]=w?Qt(y[k]):Pt(y[k]);I(h[k],M,P,null,N,U,d,m,w)}E>q?je(h,N,U,!0,!1,W):G(y,P,D,N,U,d,m,w,W)},_e=(h,y,P,D,N,U,d,m,w)=>{let E=0;const q=y.length;let W=h.length-1,k=q-1;for(;E<=W&&E<=k;){const M=h[E],X=y[E]=w?Qt(y[E]):Pt(y[E]);if(An(M,X))I(M,X,P,null,N,U,d,m,w);else break;E++}for(;E<=W&&E<=k;){const M=h[W],X=y[k]=w?Qt(y[k]):Pt(y[k]);if(An(M,X))I(M,X,P,null,N,U,d,m,w);else break;W--,k--}if(E>W){if(E<=k){const M=k+1,X=M<q?y[M].el:D;for(;E<=k;)I(null,y[E]=w?Qt(y[E]):Pt(y[E]),P,X,N,U,d,m,w),E++}}else if(E>k)for(;E<=W;)be(h[E],N,U,!0),E++;else{const M=E,X=E,se=new Map;for(E=X;E<=k;E++){const ot=y[E]=w?Qt(y[E]):Pt(y[E]);ot.key!=null&&se.set(ot.key,E)}let ue,He=0;const Ue=k-X+1;let ct=!1,pt=0;const rn=new Array(Ue);for(E=0;E<Ue;E++)rn[E]=0;for(E=M;E<=W;E++){const ot=h[E];if(He>=Ue){be(ot,N,U,!0);continue}let vt;if(ot.key!=null)vt=se.get(ot.key);else for(ue=X;ue<=k;ue++)if(rn[ue-X]===0&&An(ot,y[ue])){vt=ue;break}vt===void 0?be(ot,N,U,!0):(rn[vt-X]=E+1,vt>=pt?pt=vt:ct=!0,I(ot,y[vt],P,null,N,U,d,m,w),He++)}const $n=ct?Nu(rn):yn;for(ue=$n.length-1,E=Ue-1;E>=0;E--){const ot=X+E,vt=y[ot],gs=y[ot+1],ms=ot+1<q?gs.el||Hi(gs):D;rn[E]===0?I(null,vt,P,ms,N,U,d,m,w):ct&&(ue<0||E!==$n[ue]?Se(vt,P,ms,2):ue--)}}},Se=(h,y,P,D,N=null)=>{const{el:U,type:d,transition:m,children:w,shapeFlag:E}=h;if(E&6){Se(h.component.subTree,y,P,D);return}if(E&128){h.suspense.move(y,P,D);return}if(E&64){d.move(h,y,P,Y);return}if(d===ve){s(U,y,P);for(let W=0;W<w.length;W++)Se(w[W],y,P,D);s(h.anchor,y,P);return}if(d===vr){C(h,y,P);return}if(D!==2&&E&1&&m)if(D===0)m.beforeEnter(U),s(U,y,P),gt(()=>m.enter(U),N);else{const{leave:W,delayLeave:k,afterLeave:M}=m,X=()=>{h.ctx.isUnmounted?r(U):s(U,y,P)},se=()=>{U._isLeaving&&U[Zc](!0),W(U,()=>{X(),M&&M()})};k?k(U,X,se):se()}else s(U,y,P)},be=(h,y,P,D=!1,N=!1)=>{const{type:U,props:d,ref:m,children:w,dynamicChildren:E,shapeFlag:q,patchFlag:W,dirs:k,cacheIndex:M}=h;if(W===-2&&(N=!1),m!=null&&(Ht(),Bn(m,null,P,h,!0),Gt()),M!=null&&(y.renderCache[M]=void 0),q&256){y.ctx.deactivate(h);return}const X=q&1&&k,se=!kn(h);let ue;if(se&&(ue=d&&d.onVnodeBeforeUnmount)&&St(ue,y,h),q&6)De(h.component,P,D);else{if(q&128){h.suspense.unmount(P,D);return}X&&on(h,null,y,"beforeUnmount"),q&64?h.type.remove(h,y,P,Y,D):E&&!E.hasOnce&&(U!==ve||W>0&&W&64)?je(E,y,P,!1,!0):(U===ve&&W&384||!N&&q&16)&&je(w,y,P),D&&he(h)}(se&&(ue=d&&d.onVnodeUnmounted)||X)&&gt(()=>{ue&&St(ue,y,h),X&&on(h,null,y,"unmounted")},P)},he=h=>{const{type:y,el:P,anchor:D,transition:N}=h;if(y===ve){Ee(P,D);return}if(y===vr){v(h);return}const U=()=>{r(P),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(h.shapeFlag&1&&N&&!N.persisted){const{leave:d,delayLeave:m}=N,w=()=>d(P,U);m?m(h.el,U,w):w()}else U()},Ee=(h,y)=>{let P;for(;h!==y;)P=p(h),r(h),h=P;r(y)},De=(h,y,P)=>{const{bum:D,scope:N,job:U,subTree:d,um:m,m:w,a:E}=h;jo(w),jo(E),D&&fr(D),N.stop(),U&&(U.flags|=8,be(d,h,y,P)),m&&gt(m,y),gt(()=>{h.isUnmounted=!0},y)},je=(h,y,P,D=!1,N=!1,U=0)=>{for(let d=U;d<h.length;d++)be(h[d],y,P,D,N)},ke=h=>{if(h.shapeFlag&6)return ke(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const y=p(h.anchor||h.el),P=y&&y[Xc];return P?p(P):y};let st=!1;const rt=(h,y,P)=>{let D;h==null?y._vnode&&(be(y._vnode,null,null,!0),D=y._vnode.component):I(y._vnode||null,h,y,null,null,null,P),y._vnode=h,st||(st=!0,$o(D),yi(),st=!1)},Y={p:I,um:be,m:Se,r:he,mt:oe,mc:G,pc:A,pbc:ye,n:ke,o:e};return{render:rt,hydrate:void 0,createApp:vu(rt)}}function _r({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ln({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Au(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wi(e,t,n=!1){const s=e.children,r=t.children;if(ie(s)&&ie(r))for(let o=0;o<s.length;o++){const l=s[o];let i=r[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[o]=Qt(r[o]),i.el=l.el),!n&&i.patchFlag!==-2&&Wi(l,i)),i.type===us&&(i.patchFlag!==-1?i.el=l.el:i.__elIndex=o+(e.type===ve?1:0)),i.type===Kt&&!i.el&&(i.el=l.el)}}function Nu(e){const t=e.slice(),n=[0];let s,r,o,l,i;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,l=n.length-1;o<l;)i=o+l>>1,e[n[i]]<c?o=i+1:l=i;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}function ji(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ji(t)}function jo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Hi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Hi(t.subTree):null}const Gi=e=>e.__isSuspense;function Fu(e,t){t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):Kc(e)}const ve=Symbol.for("v-fgt"),us=Symbol.for("v-txt"),Kt=Symbol.for("v-cmt"),vr=Symbol.for("v-stc"),zn=[];let mt=null;function $(e=!1){zn.push(mt=e?null:[])}function Du(){zn.pop(),mt=zn[zn.length-1]||null}let Xn=1;function Ws(e,t=!1){Xn+=e,e<0&&mt&&t&&(mt.hasOnce=!0)}function Bi(e){return e.dynamicChildren=Xn>0?mt||yn:null,Du(),Xn>0&&mt&&mt.push(e),e}function F(e,t,n,s,r,o){return Bi(x(e,t,n,s,r,o,!0))}function ht(e,t,n,s,r){return Bi(z(e,t,n,s,r,!0))}function Qn(e){return e?e.__v_isVNode===!0:!1}function An(e,t){return e.type===t.type&&e.key===t.key}const Ki=({key:e})=>e??null,Ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ke(e)||Fe(e)||ae(e)?{i:nt,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,s=0,r=null,o=e===ve?0:1,l=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ki(t),ref:t&&Ps(t),scopeId:wi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:nt};return i?(_o(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=Ke(n)?8:16),Xn>0&&!l&&mt&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&mt.push(a),a}const z=Uu;function Uu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===uu)&&(e=Kt),Qn(e)){const i=Sn(e,t,!0);return n&&_o(i,n),Xn>0&&!o&&mt&&(i.shapeFlag&6?mt[mt.indexOf(e)]=i:mt.push(i)),i.patchFlag=-2,i}if(zu(e)&&(e=e.__vccOpts),t){t=Vu(t);let{class:i,style:a}=t;i&&!Ke(i)&&(t.class=Ge(i)),Ae(a)&&(er(a)&&!ie(a)&&(a=Qe({},a)),t.style=ls(a))}const l=Ke(e)?1:Gi(e)?128:Qc(e)?64:Ae(e)?4:ae(e)?2:0;return x(e,t,n,s,r,l,o,!0)}function Vu(e){return e?er(e)||Ai(e)?Qe({},e):e:null}function Sn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:l,children:i,transition:a}=e,c=t?mn(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ki(c),ref:t&&t.ref?n&&o?ie(o)?o.concat(Ps(t)):[o,Ps(t)]:Ps(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Sn(e.ssContent),ssFallback:e.ssFallback&&Sn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&po(u,a.clone(u)),u}function fe(e=" ",t=0){return z(us,null,e,t)}function ge(e="",t=!1){return t?($(),ht(Kt,null,e)):z(Kt,null,e)}function Pt(e){return e==null||typeof e=="boolean"?z(Kt):ie(e)?z(ve,null,e.slice()):Qn(e)?Qt(e):z(us,null,String(e))}function Qt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Sn(e)}function _o(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ie(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),_o(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ai(t)?t._ctx=nt:r===3&&nt&&(nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:nt},n=32):(t=String(t),s&64?(n=16,t=[fe(t)]):n=8);e.children=t,e.shapeFlag|=n}function mn(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Ge([t.class,s.class]));else if(r==="style")t.style=ls([t.style,s.style]);else if(qs(r)){const o=t[r],l=s[r];l&&o!==l&&!(ie(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=s[r])}return t}function St(e,t,n,s=null){$t(e,t,7,[n,s])}const Wu=Mi();let ju=0;function Hu(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Wu,o={uid:ju++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ti(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fi(s,r),emitsOptions:Li(s,r),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:s.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=xu.bind(null,o),e.ce&&e.ce(o),o}let at=null;const rr=()=>at||nt;let js,Fr;{const e=Qs(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(l=>l(o)):r[0](o)}};js=t("__VUE_INSTANCE_SETTERS__",n=>at=n),Fr=t("__VUE_SSR_SETTERS__",n=>Zn=n)}const ds=e=>{const t=at;return js(e),e.scope.on(),()=>{e.scope.off(),js(t)}},Ho=()=>{at&&at.scope.off(),js(null)};function zi(e){return e.vnode.shapeFlag&4}let Zn=!1;function Gu(e,t=!1,n=!1){t&&Fr(t);const{props:s,children:r}=e.vnode,o=zi(e);Eu(e,s,o,t),Mu(e,r,n||t);const l=o?Bu(e,t):void 0;return t&&Fr(!1),l}function Bu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,du);const{setup:s}=n;if(s){Ht();const r=e.setupContext=s.length>1?Yi(e):null,o=ds(e),l=is(s,e,0,[e.props,r]),i=zl(l);if(Gt(),o(),(i||e.sp)&&!kn(e)&&Ci(e),i){if(l.then(Ho,Ho),t)return l.then(a=>{Go(e,a)}).catch(a=>{tr(a,e,0)});e.asyncDep=l}else Go(e,l)}else qi(e)}function Go(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(e.setupState=bi(t)),qi(e)}function qi(e,t,n){const s=e.type;e.render||(e.render=s.render||Mt);{const r=ds(e);Ht();try{pu(e)}finally{Gt(),r()}}}const Ku={get(e,t){return tt(e,"get",""),e[t]}};function Yi(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ku),slots:e.slots,emit:e.emit,expose:t}}function or(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(bi(Lc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Kn)return Kn[n](e)},has(t,n){return n in t||n in Kn}})):e.proxy}function zu(e){return ae(e)&&"__vccOpts"in e}const H=(e,t)=>Vc(e,t,Zn);function Ji(e,t,n){try{Ws(-1);const s=arguments.length;return s===2?Ae(t)&&!ie(t)?Qn(t)?z(e,null,[t]):z(e,t):z(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Qn(n)&&(n=[n]),z(e,t,n))}finally{Ws(1)}}const qu="3.5.27";let Dr;const Bo=typeof window<"u"&&window.trustedTypes;if(Bo)try{Dr=Bo.createPolicy("vue",{createHTML:e=>e})}catch{}const Xi=Dr?e=>Dr.createHTML(e):e=>e,Yu="http://www.w3.org/2000/svg",Ju="http://www.w3.org/1998/Math/MathML",Ft=typeof document<"u"?document:null,Ko=Ft&&Ft.createElement("template"),Xu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ft.createElementNS(Yu,e):t==="mathml"?Ft.createElementNS(Ju,e):n?Ft.createElement(e,{is:n}):Ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Ko.innerHTML=Xi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Ko.content;if(s==="svg"||s==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qu=Symbol("_vtc");function Zu(e,t,n){const s=e[Qu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Hs=Symbol("_vod"),Qi=Symbol("_vsh"),ys={name:"show",beforeMount(e,{value:t},{transition:n}){e[Hs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Nn(e,!0),s.enter(e)):s.leave(e,()=>{Nn(e,!1)}):Nn(e,t))},beforeUnmount(e,{value:t}){Nn(e,t)}};function Nn(e,t){e.style.display=t?e[Hs]:"none",e[Qi]=!t}const ed=Symbol(""),td=/(?:^|;)\s*display\s*:/;function nd(e,t,n){const s=e.style,r=Ke(n);let o=!1;if(n&&!r){if(t)if(Ke(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&Ms(s,i,"")}else for(const l in t)n[l]==null&&Ms(s,l,"");for(const l in n)l==="display"&&(o=!0),Ms(s,l,n[l])}else if(r){if(t!==n){const l=s[ed];l&&(n+=";"+l),s.cssText=n,o=td.test(n)}}else t&&e.removeAttribute("style");Hs in e&&(e[Hs]=o?s.display:"",e[Qi]&&(s.display="none"))}const zo=/\s*!important$/;function Ms(e,t,n){if(ie(n))n.forEach(s=>Ms(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=sd(e,t);zo.test(n)?e.setProperty(gn(s),n.replace(zo,""),"important"):e[s]=n}}const qo=["Webkit","Moz","ms"],yr={};function sd(e,t){const n=yr[t];if(n)return n;let s=en(t);if(s!=="filter"&&s in e)return yr[t]=s;s=Jl(s);for(let r=0;r<qo.length;r++){const o=qo[r]+s;if(o in e)return yr[t]=o}return t}const Yo="http://www.w3.org/1999/xlink";function Jo(e,t,n,s,r,o=cc(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Yo,t.slice(6,t.length)):e.setAttributeNS(Yo,t,n):n==null||o&&!Ql(n)?e.removeAttribute(t):e.setAttribute(t,o?"":zt(n)?String(n):n)}function Xo(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Xi(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Ql(n):n==null&&i==="string"?(n="",l=!0):i==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(r||t)}function rd(e,t,n,s){e.addEventListener(t,n,s)}function od(e,t,n,s){e.removeEventListener(t,n,s)}const Qo=Symbol("_vei");function ld(e,t,n,s,r=null){const o=e[Qo]||(e[Qo]={}),l=o[t];if(s&&l)l.value=s;else{const[i,a]=id(t);if(s){const c=o[t]=ud(s,r);rd(e,i,c,a)}else l&&(od(e,i,l,a),o[t]=void 0)}}const Zo=/(?:Once|Passive|Capture)$/;function id(e){let t;if(Zo.test(e)){t={};let s;for(;s=e.match(Zo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):gn(e.slice(2)),t]}let xr=0;const ad=Promise.resolve(),cd=()=>xr||(ad.then(()=>xr=0),xr=Date.now());function ud(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;$t(dd(s,n.value),t,5,[s])};return n.value=e,n.attached=cd(),n}function dd(e,t){if(ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const el=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fd=(e,t,n,s,r,o)=>{const l=r==="svg";t==="class"?Zu(e,s,l):t==="style"?nd(e,n,s):qs(t)?no(t)||ld(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pd(e,t,s,l))?(Xo(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jo(e,t,s,l,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ke(s))?Xo(e,en(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Jo(e,t,s,l))};function pd(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&el(t)&&ae(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return el(t)&&Ke(n)?!1:t in e}const gd=["ctrl","shift","alt","meta"],md={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)=>gd.some(n=>e[`${n}Key`]&&!t.includes(n))},xs=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let l=0;l<t.length;l++){const i=md[t[l]];if(i&&i(r,t))return}return e(r,...o)}))},hd=Qe({patchProp:fd},Xu);let tl;function bd(){return tl||(tl=$u(hd))}const _d=((...e)=>{const t=bd().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=yd(s);if(!r)return;const o=t._component;!ae(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,vd(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function vd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yd(e){return Ke(e)?document.querySelector(e):e}function xd(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Gs=typeof window<"u",tn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wd=(e,t,n)=>kd({l:e,k:t,s:n}),kd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Be=e=>typeof e=="number"&&isFinite(e),Td=e=>vo(e)==="[object Date]",En=e=>vo(e)==="[object RegExp]",lr=e=>me(e)&&Object.keys(e).length===0,Ye=Object.assign,Cd=Object.create,Pe=(e=null)=>Cd(e);let nl;const un=()=>nl||(nl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Pe());function sl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function rl(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Sd(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${rl(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${rl(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript&#58;")}),e}const Ed=Object.prototype.hasOwnProperty;function wt(e,t){return Ed.call(e,t)}const We=Array.isArray,Oe=e=>typeof e=="function",J=e=>typeof e=="string",we=e=>typeof e=="boolean",Ce=e=>e!==null&&typeof e=="object",Rd=e=>Ce(e)&&Oe(e.then)&&Oe(e.catch),Zi=Object.prototype.toString,vo=e=>Zi.call(e),me=e=>vo(e)==="[object Object]",Id=e=>e==null?"":We(e)||me(e)&&e.toString===Zi?JSON.stringify(e,null,2):String(e);function yo(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const ws=e=>!Ce(e)||We(e);function Ls(e,t){if(ws(e)||ws(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:r}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(Ce(s[o])&&!Ce(r[o])&&(r[o]=Array.isArray(s[o])?[]:Pe()),ws(r[o])||ws(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}function Pd(e,t,n){return{line:e,column:t,offset:n}}function Ur(e,t,n){return{start:e,end:t}}const Re={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Md=17;function ir(e,t,n={}){const{domain:s,messages:r,args:o}=n,l=e,i=new SyntaxError(String(l));return i.code=e,t&&(i.location=t),i.domain=s,i}function Ld(e){throw e}const Et=" ",$d="\r",et=`
2
- `,Od="\u2028",Ad="\u2029";function Nd(e){const t=e;let n=0,s=1,r=1,o=0;const l=V=>t[V]===$d&&t[V+1]===et,i=V=>t[V]===et,a=V=>t[V]===Ad,c=V=>t[V]===Od,u=V=>l(V)||i(V)||a(V)||c(V),f=()=>n,p=()=>s,g=()=>r,S=()=>o,I=V=>l(V)||a(V)||c(V)?et:t[V],T=()=>I(n),b=()=>I(n+o);function _(){return o=0,u(n)&&(s++,r=0),l(n)&&n++,n++,r++,t[n]}function C(){return l(n+o)&&o++,o++,t[n+o]}function v(){n=0,s=1,r=1,o=0}function O(V=0){o=V}function j(){const V=n+o;for(;V!==n;)_();o=0}return{index:f,line:p,column:g,peekOffset:S,charAt:I,currentChar:T,currentPeek:b,next:_,peek:C,reset:v,resetPeek:O,skipToPeek:j}}const At=void 0,Fd=".",ol="'",Dd="tokenizer";function Ud(e,t={}){const n=t.location!==!1,s=Nd(e),r=()=>s.index(),o=()=>Pd(s.line(),s.column(),s.index()),l=o(),i=r(),a={currentType:13,offset:i,startLoc:l,endLoc:l,lastType:13,lastOffset:i,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>a,{onError:u}=t;function f(d,m,w,...E){const q=c();if(m.column+=w,m.offset+=w,u){const W=n?Ur(q.startLoc,m):null,k=ir(d,W,{domain:Dd,args:E});u(k)}}function p(d,m,w){d.endLoc=o(),d.currentType=m;const E={type:m};return n&&(E.loc=Ur(d.startLoc,d.endLoc)),w!=null&&(E.value=w),E}const g=d=>p(d,13);function S(d,m){return d.currentChar()===m?(d.next(),m):(f(Re.EXPECTED_TOKEN,o(),0,m),"")}function I(d){let m="";for(;d.currentPeek()===Et||d.currentPeek()===et;)m+=d.currentPeek(),d.peek();return m}function T(d){const m=I(d);return d.skipToPeek(),m}function b(d){if(d===At)return!1;const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function _(d){if(d===At)return!1;const m=d.charCodeAt(0);return m>=48&&m<=57}function C(d,m){const{currentType:w}=m;if(w!==2)return!1;I(d);const E=b(d.currentPeek());return d.resetPeek(),E}function v(d,m){const{currentType:w}=m;if(w!==2)return!1;I(d);const E=d.currentPeek()==="-"?d.peek():d.currentPeek(),q=_(E);return d.resetPeek(),q}function O(d,m){const{currentType:w}=m;if(w!==2)return!1;I(d);const E=d.currentPeek()===ol;return d.resetPeek(),E}function j(d,m){const{currentType:w}=m;if(w!==7)return!1;I(d);const E=d.currentPeek()===".";return d.resetPeek(),E}function V(d,m){const{currentType:w}=m;if(w!==8)return!1;I(d);const E=b(d.currentPeek());return d.resetPeek(),E}function G(d,m){const{currentType:w}=m;if(!(w===7||w===11))return!1;I(d);const E=d.currentPeek()===":";return d.resetPeek(),E}function te(d,m){const{currentType:w}=m;if(w!==9)return!1;const E=()=>{const W=d.currentPeek();return W==="{"?b(d.peek()):W==="@"||W==="|"||W===":"||W==="."||W===Et||!W?!1:W===et?(d.peek(),E()):xe(d,!1)},q=E();return d.resetPeek(),q}function ye(d){I(d);const m=d.currentPeek()==="|";return d.resetPeek(),m}function xe(d,m=!0){const w=(q=!1,W="")=>{const k=d.currentPeek();return k==="{"||k==="@"||!k?q:k==="|"?!(W===Et||W===et):k===Et?(d.peek(),w(!0,Et)):k===et?(d.peek(),w(!0,et)):!0},E=w();return m&&d.resetPeek(),E}function ce(d,m){const w=d.currentChar();return w===At?At:m(w)?(d.next(),w):null}function Ne(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function oe(d){return ce(d,Ne)}function le(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function B(d){return ce(d,le)}function K(d){const m=d.charCodeAt(0);return m>=48&&m<=57}function A(d){return ce(d,K)}function ne(d){const m=d.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function _e(d){return ce(d,ne)}function Se(d){let m="",w="";for(;m=A(d);)w+=m;return w}function be(d){let m="";for(;;){const w=d.currentChar();if(w==="{"||w==="}"||w==="@"||w==="|"||!w)break;if(w===Et||w===et)if(xe(d))m+=w,d.next();else{if(ye(d))break;m+=w,d.next()}else m+=w,d.next()}return m}function he(d){T(d);let m="",w="";for(;m=B(d);)w+=m;const E=d.currentChar();if(E&&E!=="}"&&E!==At&&E!==Et&&E!==et&&E!==" "){const q=Y(d);return f(Re.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,w+q),w+q}return d.currentChar()===At&&f(Re.UNTERMINATED_CLOSING_BRACE,o(),0),w}function Ee(d){T(d);let m="";return d.currentChar()==="-"?(d.next(),m+=`-${Se(d)}`):m+=Se(d),d.currentChar()===At&&f(Re.UNTERMINATED_CLOSING_BRACE,o(),0),m}function De(d){return d!==ol&&d!==et}function je(d){T(d),S(d,"'");let m="",w="";for(;m=ce(d,De);)m==="\\"?w+=ke(d):w+=m;const E=d.currentChar();return E===et||E===At?(f(Re.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),E===et&&(d.next(),S(d,"'")),w):(S(d,"'"),w)}function ke(d){const m=d.currentChar();switch(m){case"\\":case"'":return d.next(),`\\${m}`;case"u":return st(d,m,4);case"U":return st(d,m,6);default:return f(Re.UNKNOWN_ESCAPE_SEQUENCE,o(),0,m),""}}function st(d,m,w){S(d,m);let E="";for(let q=0;q<w;q++){const W=_e(d);if(!W){f(Re.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${m}${E}${d.currentChar()}`);break}E+=W}return`\\${m}${E}`}function rt(d){return d!=="{"&&d!=="}"&&d!==Et&&d!==et}function Y(d){T(d);let m="",w="";for(;m=ce(d,rt);)w+=m;return w}function pe(d){let m="",w="";for(;m=oe(d);)w+=m;return w}function h(d){const m=w=>{const E=d.currentChar();return E==="{"||E==="@"||E==="|"||E==="("||E===")"||!E||E===Et?w:(w+=E,d.next(),m(w))};return m("")}function y(d){T(d);const m=S(d,"|");return T(d),m}function P(d,m){let w=null;switch(d.currentChar()){case"{":return m.braceNest>=1&&f(Re.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),d.next(),w=p(m,2,"{"),T(d),m.braceNest++,w;case"}":return m.braceNest>0&&m.currentType===2&&f(Re.EMPTY_PLACEHOLDER,o(),0),d.next(),w=p(m,3,"}"),m.braceNest--,m.braceNest>0&&T(d),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),w;case"@":return m.braceNest>0&&f(Re.UNTERMINATED_CLOSING_BRACE,o(),0),w=D(d,m)||g(m),m.braceNest=0,w;default:{let q=!0,W=!0,k=!0;if(ye(d))return m.braceNest>0&&f(Re.UNTERMINATED_CLOSING_BRACE,o(),0),w=p(m,1,y(d)),m.braceNest=0,m.inLinked=!1,w;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return f(Re.UNTERMINATED_CLOSING_BRACE,o(),0),m.braceNest=0,N(d,m);if(q=C(d,m))return w=p(m,4,he(d)),T(d),w;if(W=v(d,m))return w=p(m,5,Ee(d)),T(d),w;if(k=O(d,m))return w=p(m,6,je(d)),T(d),w;if(!q&&!W&&!k)return w=p(m,12,Y(d)),f(Re.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,w.value),T(d),w;break}}return w}function D(d,m){const{currentType:w}=m;let E=null;const q=d.currentChar();switch((w===7||w===8||w===11||w===9)&&(q===et||q===Et)&&f(Re.INVALID_LINKED_FORMAT,o(),0),q){case"@":return d.next(),E=p(m,7,"@"),m.inLinked=!0,E;case".":return T(d),d.next(),p(m,8,".");case":":return T(d),d.next(),p(m,9,":");default:return ye(d)?(E=p(m,1,y(d)),m.braceNest=0,m.inLinked=!1,E):j(d,m)||G(d,m)?(T(d),D(d,m)):V(d,m)?(T(d),p(m,11,pe(d))):te(d,m)?(T(d),q==="{"?P(d,m)||E:p(m,10,h(d))):(w===7&&f(Re.INVALID_LINKED_FORMAT,o(),0),m.braceNest=0,m.inLinked=!1,N(d,m))}}function N(d,m){let w={type:13};if(m.braceNest>0)return P(d,m)||g(m);if(m.inLinked)return D(d,m)||g(m);switch(d.currentChar()){case"{":return P(d,m)||g(m);case"}":return f(Re.UNBALANCED_CLOSING_BRACE,o(),0),d.next(),p(m,3,"}");case"@":return D(d,m)||g(m);default:{if(ye(d))return w=p(m,1,y(d)),m.braceNest=0,m.inLinked=!1,w;if(xe(d))return p(m,0,be(d));break}}return w}function U(){const{currentType:d,offset:m,startLoc:w,endLoc:E}=a;return a.lastType=d,a.lastOffset=m,a.lastStartLoc=w,a.lastEndLoc=E,a.offset=r(),a.startLoc=o(),s.currentChar()===At?p(a,13):N(s,a)}return{nextToken:U,currentOffset:r,currentPosition:o,context:c}}const Vd="parser",Wd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function jd(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Hd(e={}){const t=e.location!==!1,{onError:n}=e;function s(b,_,C,v,...O){const j=b.currentPosition();if(j.offset+=v,j.column+=v,n){const V=t?Ur(C,j):null,G=ir(_,V,{domain:Vd,args:O});n(G)}}function r(b,_,C){const v={type:b};return t&&(v.start=_,v.end=_,v.loc={start:C,end:C}),v}function o(b,_,C,v){t&&(b.end=_,b.loc&&(b.loc.end=C))}function l(b,_){const C=b.context(),v=r(3,C.offset,C.startLoc);return v.value=_,o(v,b.currentOffset(),b.currentPosition()),v}function i(b,_){const C=b.context(),{lastOffset:v,lastStartLoc:O}=C,j=r(5,v,O);return j.index=parseInt(_,10),b.nextToken(),o(j,b.currentOffset(),b.currentPosition()),j}function a(b,_){const C=b.context(),{lastOffset:v,lastStartLoc:O}=C,j=r(4,v,O);return j.key=_,b.nextToken(),o(j,b.currentOffset(),b.currentPosition()),j}function c(b,_){const C=b.context(),{lastOffset:v,lastStartLoc:O}=C,j=r(9,v,O);return j.value=_.replace(Wd,jd),b.nextToken(),o(j,b.currentOffset(),b.currentPosition()),j}function u(b){const _=b.nextToken(),C=b.context(),{lastOffset:v,lastStartLoc:O}=C,j=r(8,v,O);return _.type!==11?(s(b,Re.UNEXPECTED_EMPTY_LINKED_MODIFIER,C.lastStartLoc,0),j.value="",o(j,v,O),{nextConsumeToken:_,node:j}):(_.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,Rt(_)),j.value=_.value||"",o(j,b.currentOffset(),b.currentPosition()),{node:j})}function f(b,_){const C=b.context(),v=r(7,C.offset,C.startLoc);return v.value=_,o(v,b.currentOffset(),b.currentPosition()),v}function p(b){const _=b.context(),C=r(6,_.offset,_.startLoc);let v=b.nextToken();if(v.type===8){const O=u(b);C.modifier=O.node,v=O.nextConsumeToken||b.nextToken()}switch(v.type!==9&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(v)),v=b.nextToken(),v.type===2&&(v=b.nextToken()),v.type){case 10:v.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(v)),C.key=f(b,v.value||"");break;case 4:v.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(v)),C.key=a(b,v.value||"");break;case 5:v.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(v)),C.key=i(b,v.value||"");break;case 6:v.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(v)),C.key=c(b,v.value||"");break;default:{s(b,Re.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const O=b.context(),j=r(7,O.offset,O.startLoc);return j.value="",o(j,O.offset,O.startLoc),C.key=j,o(C,O.offset,O.startLoc),{nextConsumeToken:v,node:C}}}return o(C,b.currentOffset(),b.currentPosition()),{node:C}}function g(b){const _=b.context(),C=_.currentType===1?b.currentOffset():_.offset,v=_.currentType===1?_.endLoc:_.startLoc,O=r(2,C,v);O.items=[];let j=null;do{const te=j||b.nextToken();switch(j=null,te.type){case 0:te.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(te)),O.items.push(l(b,te.value||""));break;case 5:te.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(te)),O.items.push(i(b,te.value||""));break;case 4:te.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(te)),O.items.push(a(b,te.value||""));break;case 6:te.value==null&&s(b,Re.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(te)),O.items.push(c(b,te.value||""));break;case 7:{const ye=p(b);O.items.push(ye.node),j=ye.nextConsumeToken||null;break}}}while(_.currentType!==13&&_.currentType!==1);const V=_.currentType===1?_.lastOffset:b.currentOffset(),G=_.currentType===1?_.lastEndLoc:b.currentPosition();return o(O,V,G),O}function S(b,_,C,v){const O=b.context();let j=v.items.length===0;const V=r(1,_,C);V.cases=[],V.cases.push(v);do{const G=g(b);j||(j=G.items.length===0),V.cases.push(G)}while(O.currentType!==13);return j&&s(b,Re.MUST_HAVE_MESSAGES_IN_PLURAL,C,0),o(V,b.currentOffset(),b.currentPosition()),V}function I(b){const _=b.context(),{offset:C,startLoc:v}=_,O=g(b);return _.currentType===13?O:S(b,C,v,O)}function T(b){const _=Ud(b,Ye({},e)),C=_.context(),v=r(0,C.offset,C.startLoc);return t&&v.loc&&(v.loc.source=b),v.body=I(_),e.onCacheKey&&(v.cacheKey=e.onCacheKey(b)),C.currentType!==13&&s(_,Re.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,b[C.offset]||""),o(v,_.currentOffset(),_.currentPosition()),v}return{parse:T}}function Rt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Gd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function ll(e,t){for(let n=0;n<e.length;n++)xo(e[n],t)}function xo(e,t){switch(e.type){case 1:ll(e.cases,t),t.helper("plural");break;case 2:ll(e.items,t);break;case 6:{xo(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Bd(e,t={}){const n=Gd(e);n.helper("normalize"),e.body&&xo(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Kd(e){const t=e.body;return t.type===2?il(t):t.cases.forEach(n=>il(n)),e}function il(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=yo(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function vn(e){switch(e.t=e.type,e.type){case 0:{const t=e;vn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)vn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)vn(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;vn(t.key),t.k=t.key,delete t.key,t.modifier&&(vn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function zd(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,l={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(l.source=e.loc.source);const i=()=>l;function a(I,T){l.code+=I}function c(I,T=!0){const b=T?s:"";a(r?b+" ".repeat(I):b)}function u(I=!0){const T=++l.indentLevel;I&&c(T)}function f(I=!0){const T=--l.indentLevel;I&&c(T)}function p(){c(l.indentLevel)}return{context:i,push:a,indent:u,deindent:f,newline:p,helper:I=>`_${I}`,needIndent:()=>l.needIndent}}function qd(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Rn(e,t.key),t.modifier?(e.push(", "),Rn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Yd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o<r&&(Rn(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function Jd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let o=0;o<r&&(Rn(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function Xd(e,t){t.body?Rn(e,t.body):e.push("null")}function Rn(e,t){const{helper:n}=e;switch(t.type){case 0:Xd(e,t);break;case 1:Jd(e,t);break;case 2:Yd(e,t);break;case 6:qd(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Qd=(e,t={})=>{const n=J(t.mode)?t.mode:"normal",s=J(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
3
- `,o=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],i=zd(e,{filename:s,breakLineCode:r,needIndent:o});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(o),l.length>0&&(i.push(`const { ${yo(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),i.newline()),i.push("return "),Rn(i,e),i.deindent(o),i.push("}"),delete e.helpers;const{code:a,map:c}=i.context();return{ast:e,code:a,map:c?c.toJSON():void 0}};function Zd(e,t={}){const n=Ye({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,i=Hd(n).parse(e);return s?(o&&Kd(i),r&&vn(i),{ast:i,code:""}):(Bd(i,n),Qd(i,n))}function ef(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(un().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(un().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Lt(e){return Ce(e)&&wo(e)===0&&(wt(e,"b")||wt(e,"body"))}const ea=["b","body"];function tf(e){return nn(e,ea)}const ta=["c","cases"];function nf(e){return nn(e,ta,[])}const na=["s","static"];function sf(e){return nn(e,na)}const sa=["i","items"];function rf(e){return nn(e,sa,[])}const ra=["t","type"];function wo(e){return nn(e,ra)}const oa=["v","value"];function ks(e,t){const n=nn(e,oa);if(n!=null)return n;throw es(t)}const la=["m","modifier"];function of(e){return nn(e,la)}const ia=["k","key"];function lf(e){const t=nn(e,ia);if(t)return t;throw es(6)}function nn(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if(wt(e,r)&&e[r]!=null)return e[r]}return n}const aa=[...ea,...ta,...na,...sa,...ia,...la,...oa,...ra];function es(e){return new Error(`unhandled node type: ${e}`)}function wr(e){return n=>af(n,e)}function af(e,t){const n=tf(t);if(n==null)throw es(0);if(wo(n)===1){const o=nf(n);return e.plural(o.reduce((l,i)=>[...l,al(e,i)],[]))}else return al(e,n)}function al(e,t){const n=sf(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=rf(t).reduce((r,o)=>[...r,Vr(e,o)],[]);return e.normalize(s)}}function Vr(e,t){const n=wo(t);switch(n){case 3:return ks(t,n);case 9:return ks(t,n);case 4:{const s=t;if(wt(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(wt(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw es(n)}case 5:{const s=t;if(wt(s,"i")&&Be(s.i))return e.interpolate(e.list(s.i));if(wt(s,"index")&&Be(s.index))return e.interpolate(e.list(s.index));throw es(n)}case 6:{const s=t,r=of(s),o=lf(s);return e.linked(Vr(e,o),r?Vr(e,r):void 0,e.type)}case 7:return ks(t,n);case 8:return ks(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const cf=e=>e;let Ts=Pe();function uf(e,t={}){let n=!1;const s=t.onError||Ld;return t.onError=r=>{n=!0,s(r)},{...Zd(e,t),detectError:n}}function df(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&J(e)){we(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||cf)(e),r=Ts[s];if(r)return r;const{ast:o,detectError:l}=uf(e,{...t,location:!1,jit:!0}),i=wr(o);return l?i:Ts[s]=i}else{const n=e.cacheKey;if(n){const s=Ts[n];return s||(Ts[n]=wr(e))}else return wr(e)}}let ts=null;function ff(e){ts=e}function pf(e,t,n){ts&&ts.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const gf=mf("function:translate");function mf(e){return t=>ts&&ts.emit(e,t)}const Wt={INVALID_ARGUMENT:Md,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},hf=24;function jt(e){return ir(e,null,void 0)}function ko(e,t){return t.locale!=null?cl(t.locale):cl(e.locale)}let kr;function cl(e){if(J(e))return e;if(Oe(e)){if(e.resolvedOnce&&kr!=null)return kr;if(e.constructor.name==="Function"){const t=e();if(Rd(t))throw jt(Wt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return kr=t}else throw jt(Wt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw jt(Wt.NOT_SUPPORT_LOCALE_TYPE)}function bf(e,t,n){return[...new Set([n,...We(t)?t:Ce(t)?Object.keys(t):J(t)?[t]:[n]])]}function ca(e,t,n){const s=J(n)?n:ns,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let l=[n];for(;We(l);)l=ul(o,l,t);const i=We(t)||!me(t)?t:t.default?t.default:null;l=J(i)?[i]:i,We(l)&&ul(o,l,!1),r.__localeChainCache.set(s,o)}return o}function ul(e,t,n){let s=!0;for(let r=0;r<t.length&&we(s);r++){const o=t[r];J(o)&&(s=_f(e,t[r],n))}return s}function _f(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=vf(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function vf(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(We(n)||me(n))&&n[r]&&(s=n[r])}return s}const sn=[];sn[0]={w:[0],i:[3,0],"[":[4],o:[7]};sn[1]={w:[1],".":[2],"[":[4],o:[7]};sn[2]={w:[2],i:[3,0],0:[3,0]};sn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};sn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};sn[5]={"'":[4,0],o:8,l:[5,0]};sn[6]={'"':[4,0],o:8,l:[6,0]};const yf=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function xf(e){return yf.test(e)}function wf(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function kf(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Tf(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:xf(t)?wf(t):"*"+t}function Cf(e){const t=[];let n=-1,s=0,r=0,o,l,i,a,c,u,f;const p=[];p[0]=()=>{l===void 0?l=i:l+=i},p[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},p[2]=()=>{p[0](),r++},p[3]=()=>{if(r>0)r--,s=4,p[0]();else{if(r=0,l===void 0||(l=Tf(l),l===!1))return!1;p[1]()}};function g(){const S=e[n+1];if(s===5&&S==="'"||s===6&&S==='"')return n++,i="\\"+S,p[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&g())){if(a=kf(o),f=sn[s],c=f[a]||f.l||8,c===8||(s=c[0],c[1]!==void 0&&(u=p[c[1]],u&&(i=o,u()===!1))))return;if(s===7)return t}}const dl=new Map;function Sf(e,t){return Ce(e)?e[t]:null}function Ef(e,t){if(!Ce(e))return null;let n=dl.get(t);if(n||(n=Cf(t),n&&dl.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const l=n[o];if(aa.includes(l)&&Lt(r))return null;const i=r[l];if(i===void 0||Oe(r))return null;r=i,o++}return r}const Rf="11.2.8",ar=-1,ns="en-US",fl="",pl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function If(){return{upper:(e,t)=>t==="text"&&J(e)?e.toUpperCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&J(e)?e.toLowerCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&J(e)?pl(e):t==="vnode"&&Ce(e)&&"__v_isVNode"in e?pl(e.children):e}}let ua;function Pf(e){ua=e}let da;function Mf(e){da=e}let fa;function Lf(e){fa=e}let pa=null;const $f=e=>{pa=e},Of=()=>pa;let ga=null;const gl=e=>{ga=e},Af=()=>ga;let ml=0;function Nf(e={}){const t=Oe(e.onWarn)?e.onWarn:xd,n=J(e.version)?e.version:Rf,s=J(e.locale)||Oe(e.locale)?e.locale:ns,r=Oe(s)?ns:s,o=We(e.fallbackLocale)||me(e.fallbackLocale)||J(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,l=me(e.messages)?e.messages:Tr(r),i=me(e.datetimeFormats)?e.datetimeFormats:Tr(r),a=me(e.numberFormats)?e.numberFormats:Tr(r),c=Ye(Pe(),e.modifiers,If()),u=e.pluralRules||Pe(),f=Oe(e.missing)?e.missing:null,p=we(e.missingWarn)||En(e.missingWarn)?e.missingWarn:!0,g=we(e.fallbackWarn)||En(e.fallbackWarn)?e.fallbackWarn:!0,S=!!e.fallbackFormat,I=!!e.unresolving,T=Oe(e.postTranslation)?e.postTranslation:null,b=me(e.processor)?e.processor:null,_=we(e.warnHtmlMessage)?e.warnHtmlMessage:!0,C=!!e.escapeParameter,v=Oe(e.messageCompiler)?e.messageCompiler:ua,O=Oe(e.messageResolver)?e.messageResolver:da||Sf,j=Oe(e.localeFallbacker)?e.localeFallbacker:fa||bf,V=Ce(e.fallbackContext)?e.fallbackContext:void 0,G=e,te=Ce(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,ye=Ce(G.__numberFormatters)?G.__numberFormatters:new Map,xe=Ce(G.__meta)?G.__meta:{};ml++;const ce={version:n,cid:ml,locale:s,fallbackLocale:o,messages:l,modifiers:c,pluralRules:u,missing:f,missingWarn:p,fallbackWarn:g,fallbackFormat:S,unresolving:I,postTranslation:T,processor:b,warnHtmlMessage:_,escapeParameter:C,messageCompiler:v,messageResolver:O,localeFallbacker:j,fallbackContext:V,onWarn:t,__meta:xe};return ce.datetimeFormats=i,ce.numberFormats=a,ce.__datetimeFormatters=te,ce.__numberFormatters=ye,__INTLIFY_PROD_DEVTOOLS__&&pf(ce,n,xe),ce}const Tr=e=>({[e]:Pe()});function To(e,t,n,s,r){const{missing:o,onWarn:l}=e;if(o!==null){const i=o(e,n,t,r);return J(i)?i:t}else return t}function Fn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ff(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Df(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Ff(e,t[s]))return!0;return!1}function hl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:i}=e,[a,c,u,f]=Wr(...t),p=we(u.missingWarn)?u.missingWarn:e.missingWarn;we(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const g=!!u.part,S=ko(e,u),I=l(e,r,S);if(!J(a)||a==="")return new Intl.DateTimeFormat(S,f).format(c);let T={},b,_=null;const C="datetime format";for(let j=0;j<I.length&&(b=I[j],T=n[b]||{},_=T[a],!me(_));j++)To(e,a,b,p,C);if(!me(_)||!J(b))return s?ar:a;let v=`${b}__${a}`;lr(f)||(v=`${v}__${JSON.stringify(f)}`);let O=i.get(v);return O||(O=new Intl.DateTimeFormat(b,Ye({},_,f)),i.set(v,O)),g?O.formatToParts(c):O.format(c)}const ma=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Wr(...e){const[t,n,s,r]=e,o=Pe();let l=Pe(),i;if(J(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw jt(Wt.INVALID_ISO_DATE_ARGUMENT);const c=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();i=new Date(c);try{i.toISOString()}catch{throw jt(Wt.INVALID_ISO_DATE_ARGUMENT)}}else if(Td(t)){if(isNaN(t.getTime()))throw jt(Wt.INVALID_DATE_ARGUMENT);i=t}else if(Be(t))i=t;else throw jt(Wt.INVALID_ARGUMENT);return J(n)?o.key=n:me(n)&&Object.keys(n).forEach(a=>{ma.includes(a)?l[a]=n[a]:o[a]=n[a]}),J(s)?o.locale=s:me(s)&&(l=s),me(r)&&(l=r),[o.key||"",i,o,l]}function bl(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function _l(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:i}=e,[a,c,u,f]=jr(...t),p=we(u.missingWarn)?u.missingWarn:e.missingWarn;we(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const g=!!u.part,S=ko(e,u),I=l(e,r,S);if(!J(a)||a==="")return new Intl.NumberFormat(S,f).format(c);let T={},b,_=null;const C="number format";for(let j=0;j<I.length&&(b=I[j],T=n[b]||{},_=T[a],!me(_));j++)To(e,a,b,p,C);if(!me(_)||!J(b))return s?ar:a;let v=`${b}__${a}`;lr(f)||(v=`${v}__${JSON.stringify(f)}`);let O=i.get(v);return O||(O=new Intl.NumberFormat(b,Ye({},_,f)),i.set(v,O)),g?O.formatToParts(c):O.format(c)}const ha=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function jr(...e){const[t,n,s,r]=e,o=Pe();let l=Pe();if(!Be(t))throw jt(Wt.INVALID_ARGUMENT);const i=t;return J(n)?o.key=n:me(n)&&Object.keys(n).forEach(a=>{ha.includes(a)?l[a]=n[a]:o[a]=n[a]}),J(s)?o.locale=s:me(s)&&(l=s),me(r)&&(l=r),[o.key||"",i,o,l]}function vl(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const Uf=e=>e,Vf=e=>"",Wf="text",jf=e=>e.length===0?"":yo(e),Hf=Id;function yl(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Gf(e){const t=Be(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Be(e.named.count)||Be(e.named.n))?Be(e.named.count)?e.named.count:Be(e.named.n)?e.named.n:t:t}function Bf(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Kf(e={}){const t=e.locale,n=Gf(e),s=Ce(e.pluralRules)&&J(t)&&Oe(e.pluralRules[t])?e.pluralRules[t]:yl,r=Ce(e.pluralRules)&&J(t)&&Oe(e.pluralRules[t])?yl:void 0,o=b=>b[s(n,b.length,r)],l=e.list||[],i=b=>l[b],a=e.named||Pe();Be(e.pluralIndex)&&Bf(n,a);const c=b=>a[b];function u(b,_){const C=Oe(e.messages)?e.messages(b,!!_):Ce(e.messages)?e.messages[b]:!1;return C||(e.parent?e.parent.message(b):Vf)}const f=b=>e.modifiers?e.modifiers[b]:Uf,p=me(e.processor)&&Oe(e.processor.normalize)?e.processor.normalize:jf,g=me(e.processor)&&Oe(e.processor.interpolate)?e.processor.interpolate:Hf,S=me(e.processor)&&J(e.processor.type)?e.processor.type:Wf,T={list:i,named:c,plural:o,linked:(b,..._)=>{const[C,v]=_;let O="text",j="";_.length===1?Ce(C)?(j=C.modifier||j,O=C.type||O):J(C)&&(j=C||j):_.length===2&&(J(C)&&(j=C||j),J(v)&&(O=v||O));const V=u(b,!0)(T),G=O==="vnode"&&We(V)&&j?V[0]:V;return j?f(j)(G,O):G},message:u,type:S,interpolate:g,normalize:p,values:Ye(Pe(),l,a)};return T}const xl=()=>"",yt=e=>Oe(e);function wl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:l,messages:i}=e,[a,c]=Hr(...t),u=we(c.missingWarn)?c.missingWarn:e.missingWarn,f=we(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=we(c.escapeParameter)?c.escapeParameter:e.escapeParameter,g=!!c.resolvedMessage,S=J(c.default)||we(c.default)?we(c.default)?o?a:()=>a:c.default:n?o?a:()=>a:null,I=n||S!=null&&(J(S)||Oe(S)),T=ko(e,c);p&&zf(c);let[b,_,C]=g?[a,T,i[T]||Pe()]:ba(e,a,T,l,f,u),v=b,O=a;if(!g&&!(J(v)||Lt(v)||yt(v))&&I&&(v=S,O=v),!g&&(!(J(v)||Lt(v)||yt(v))||!J(_)))return r?ar:a;let j=!1;const V=()=>{j=!0},G=yt(v)?v:_a(e,a,_,v,O,V);if(j)return v;const te=Jf(e,_,C,c),ye=Kf(te),xe=qf(e,G,ye);let ce=s?s(xe,a):xe;if(p&&J(ce)&&(ce=Sd(ce)),__INTLIFY_PROD_DEVTOOLS__){const Ne={timestamp:Date.now(),key:J(a)?a:yt(v)?v.key:"",locale:_||(yt(v)?v.locale:""),format:J(v)?v:yt(v)?v.source:"",message:ce};Ne.meta=Ye({},e.__meta,Of()||{}),gf(Ne)}return ce}function zf(e){We(e.list)?e.list=e.list.map(t=>J(t)?sl(t):t):Ce(e.named)&&Object.keys(e.named).forEach(t=>{J(e.named[t])&&(e.named[t]=sl(e.named[t]))})}function ba(e,t,n,s,r,o){const{messages:l,onWarn:i,messageResolver:a,localeFallbacker:c}=e,u=c(e,s,n);let f=Pe(),p,g=null;const S="translate";for(let I=0;I<u.length&&(p=u[I],f=l[p]||Pe(),(g=a(f,t))===null&&(g=f[t]),!(J(g)||Lt(g)||yt(g)));I++)if(!Df(p,u)){const T=To(e,t,p,o,S);T!==t&&(g=T)}return[g,p,f]}function _a(e,t,n,s,r,o){const{messageCompiler:l,warnHtmlMessage:i}=e;if(yt(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(l==null){const c=(()=>s);return c.locale=n,c.key=t,c}const a=l(s,Yf(e,n,r,s,i,o));return a.locale=n,a.key=t,a.source=s,a}function qf(e,t,n){return t(n)}function Hr(...e){const[t,n,s]=e,r=Pe();if(!J(t)&&!Be(t)&&!yt(t)&&!Lt(t))throw jt(Wt.INVALID_ARGUMENT);const o=Be(t)?String(t):(yt(t),t);return Be(n)?r.plural=n:J(n)?r.default=n:me(n)&&!lr(n)?r.named=n:We(n)&&(r.list=n),Be(s)?r.plural=s:J(s)?r.default=s:me(s)&&Ye(r,s),[o,r]}function Yf(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:l=>{throw o&&o(l),l},onCacheKey:l=>wd(t,n,l)}}function Jf(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:l,fallbackLocale:i,fallbackWarn:a,missingWarn:c,fallbackContext:u}=e,p={locale:t,modifiers:r,pluralRules:o,messages:(g,S)=>{let I=l(n,g);if(I==null&&(u||S)){const[,,T]=ba(u||e,g,t,i,a,c);I=l(T,g)}if(J(I)||Lt(I)){let T=!1;const _=_a(e,g,t,I,g,()=>{T=!0});return T?xl:_}else return yt(I)?I:xl}};return e.processor&&(p.processor=e.processor),s.list&&(p.list=s.list),s.named&&(p.named=s.named),Be(s.plural)&&(p.pluralIndex=s.plural),p}ef();const Xf="11.2.8";function Qf(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(un().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(un().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(un().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(un().__INTLIFY_PROD_DEVTOOLS__=!1)}const ft={UNEXPECTED_RETURN_TYPE:hf,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function _t(e,...t){return ir(e,null,void 0)}const Gr=tn("__translateVNode"),Br=tn("__datetimeParts"),Kr=tn("__numberParts"),va=tn("__setPluralRules"),ya=tn("__injectWithOption"),zr=tn("__dispose");function ss(e){if(!Ce(e)||Lt(e))return e;for(const t in e)if(wt(e,t))if(!t.includes("."))Ce(e[t])&&ss(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let l=0;l<s;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in r||(r[n[l]]=Pe()),!Ce(r[n[l]])){o=!0;break}r=r[n[l]]}if(o||(Lt(r)?aa.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!Lt(r)){const l=r[n[s]];Ce(l)&&ss(l)}}return e}function Co(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,l=me(n)?n:We(s)?Pe():{[e]:Pe()};if(We(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:a,resource:c}=i;a?(l[a]=l[a]||Pe(),Ls(c,l[a])):Ls(c,l)}else J(i)&&Ls(JSON.parse(i),l)}),r==null&&o)for(const i in l)wt(l,i)&&ss(l[i]);return l}function xa(e){return e.type}function wa(e,t,n){let s=Ce(t.messages)?t.messages:Pe();"__i18nGlobal"in n&&(s=Co(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Ce(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ce(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function kl(e){return z(us,null,e,0)}function rs(){return rr()}const Tl="__INTLIFY_META__",Cl=()=>[],Zf=()=>!1;let Sl=0;function El(e){return((t,n,s,r)=>e(n,s,rs()||void 0,r))}const ep=()=>{const e=rs();let t=null;return e&&(t=xa(e)[Tl])?{[Tl]:t}:null};function So(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=Gs?ee:$c;let l=we(e.inheritLocale)?e.inheritLocale:!0;const i=o(t&&l?t.locale.value:J(e.locale)?e.locale:ns),a=o(t&&l?t.fallbackLocale.value:J(e.fallbackLocale)||We(e.fallbackLocale)||me(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=o(Co(i.value,e)),u=o(me(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=o(me(e.numberFormats)?e.numberFormats:{[i.value]:{}});let p=t?t.missingWarn:we(e.missingWarn)||En(e.missingWarn)?e.missingWarn:!0,g=t?t.fallbackWarn:we(e.fallbackWarn)||En(e.fallbackWarn)?e.fallbackWarn:!0,S=t?t.fallbackRoot:we(e.fallbackRoot)?e.fallbackRoot:!0,I=!!e.fallbackFormat,T=Oe(e.missing)?e.missing:null,b=Oe(e.missing)?El(e.missing):null,_=Oe(e.postTranslation)?e.postTranslation:null,C=t?t.warnHtmlMessage:we(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const O=t?t.modifiers:me(e.modifiers)?e.modifiers:{};let j=e.pluralRules||t&&t.pluralRules,V;V=(()=>{s&&gl(null);const k={version:Xf,locale:i.value,fallbackLocale:a.value,messages:c.value,modifiers:O,pluralRules:j,missing:b===null?void 0:b,missingWarn:p,fallbackWarn:g,fallbackFormat:I,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:C,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};k.datetimeFormats=u.value,k.numberFormats=f.value,k.__datetimeFormatters=me(V)?V.__datetimeFormatters:void 0,k.__numberFormatters=me(V)?V.__numberFormatters:void 0;const M=Nf(k);return s&&gl(M),M})(),Fn(V,i.value,a.value);function te(){return[i.value,a.value,c.value,u.value,f.value]}const ye=H({get:()=>i.value,set:k=>{V.locale=k,i.value=k}}),xe=H({get:()=>a.value,set:k=>{V.fallbackLocale=k,a.value=k,Fn(V,i.value,k)}}),ce=H(()=>c.value),Ne=H(()=>u.value),oe=H(()=>f.value);function le(){return Oe(_)?_:null}function B(k){_=k,V.postTranslation=k}function K(){return T}function A(k){k!==null&&(b=El(k)),T=k,V.missing=b}const ne=(k,M,X,se,ue,He)=>{te();let Ue;try{__INTLIFY_PROD_DEVTOOLS__,s||(V.fallbackContext=t?Af():void 0),Ue=k(V)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(V.fallbackContext=void 0)}if(X!=="translate exists"&&Be(Ue)&&Ue===ar||X==="translate exists"&&!Ue){const[ct,pt]=M();return t&&S?se(t):ue(ct)}else{if(He(Ue))return Ue;throw _t(ft.UNEXPECTED_RETURN_TYPE)}};function _e(...k){return ne(M=>Reflect.apply(wl,null,[M,...k]),()=>Hr(...k),"translate",M=>Reflect.apply(M.t,M,[...k]),M=>M,M=>J(M))}function Se(...k){const[M,X,se]=k;if(se&&!Ce(se))throw _t(ft.INVALID_ARGUMENT);return _e(M,X,Ye({resolvedMessage:!0},se||{}))}function be(...k){return ne(M=>Reflect.apply(hl,null,[M,...k]),()=>Wr(...k),"datetime format",M=>Reflect.apply(M.d,M,[...k]),()=>fl,M=>J(M)||We(M))}function he(...k){return ne(M=>Reflect.apply(_l,null,[M,...k]),()=>jr(...k),"number format",M=>Reflect.apply(M.n,M,[...k]),()=>fl,M=>J(M)||We(M))}function Ee(k){return k.map(M=>J(M)||Be(M)||we(M)?kl(String(M)):M)}const je={normalize:Ee,interpolate:k=>k,type:"vnode"};function ke(...k){return ne(M=>{let X;const se=M;try{se.processor=je,X=Reflect.apply(wl,null,[se,...k])}finally{se.processor=null}return X},()=>Hr(...k),"translate",M=>M[Gr](...k),M=>[kl(M)],M=>We(M))}function st(...k){return ne(M=>Reflect.apply(_l,null,[M,...k]),()=>jr(...k),"number format",M=>M[Kr](...k),Cl,M=>J(M)||We(M))}function rt(...k){return ne(M=>Reflect.apply(hl,null,[M,...k]),()=>Wr(...k),"datetime format",M=>M[Br](...k),Cl,M=>J(M)||We(M))}function Y(k){j=k,V.pluralRules=j}function pe(k,M){return ne(()=>{if(!k)return!1;const X=J(M)?M:i.value,se=P(X),ue=V.messageResolver(se,k);return Lt(ue)||yt(ue)||J(ue)},()=>[k],"translate exists",X=>Reflect.apply(X.te,X,[k,M]),Zf,X=>we(X))}function h(k){let M=null;const X=ca(V,a.value,i.value);for(let se=0;se<X.length;se++){const ue=c.value[X[se]]||{},He=V.messageResolver(ue,k);if(He!=null){M=He;break}}return M}function y(k){const M=h(k);return M??(t?t.tm(k)||{}:{})}function P(k){return c.value[k]||{}}function D(k,M){if(r){const X={[k]:M};for(const se in X)wt(X,se)&&ss(X[se]);M=X[k]}c.value[k]=M,V.messages=c.value}function N(k,M){c.value[k]=c.value[k]||{};const X={[k]:M};if(r)for(const se in X)wt(X,se)&&ss(X[se]);M=X[k],Ls(M,c.value[k]),V.messages=c.value}function U(k){return u.value[k]||{}}function d(k,M){u.value[k]=M,V.datetimeFormats=u.value,bl(V,k,M)}function m(k,M){u.value[k]=Ye(u.value[k]||{},M),V.datetimeFormats=u.value,bl(V,k,M)}function w(k){return f.value[k]||{}}function E(k,M){f.value[k]=M,V.numberFormats=f.value,vl(V,k,M)}function q(k,M){f.value[k]=Ye(f.value[k]||{},M),V.numberFormats=f.value,vl(V,k,M)}Sl++,t&&Gs&&(Tt(t.locale,k=>{l&&(i.value=k,V.locale=k,Fn(V,i.value,a.value))}),Tt(t.fallbackLocale,k=>{l&&(a.value=k,V.fallbackLocale=k,Fn(V,i.value,a.value))}));const W={id:Sl,locale:ye,fallbackLocale:xe,get inheritLocale(){return l},set inheritLocale(k){l=k,k&&t&&(i.value=t.locale.value,a.value=t.fallbackLocale.value,Fn(V,i.value,a.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:ce,get modifiers(){return O},get pluralRules(){return j||{}},get isGlobal(){return s},get missingWarn(){return p},set missingWarn(k){p=k,V.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(k){g=k,V.fallbackWarn=g},get fallbackRoot(){return S},set fallbackRoot(k){S=k},get fallbackFormat(){return I},set fallbackFormat(k){I=k,V.fallbackFormat=I},get warnHtmlMessage(){return C},set warnHtmlMessage(k){C=k,V.warnHtmlMessage=k},get escapeParameter(){return v},set escapeParameter(k){v=k,V.escapeParameter=k},t:_e,getLocaleMessage:P,setLocaleMessage:D,mergeLocaleMessage:N,getPostTranslationHandler:le,setPostTranslationHandler:B,getMissingHandler:K,setMissingHandler:A,[va]:Y};return W.datetimeFormats=Ne,W.numberFormats=oe,W.rt=Se,W.te=pe,W.tm=y,W.d=be,W.n=he,W.getDateTimeFormat=U,W.setDateTimeFormat=d,W.mergeDateTimeFormat=m,W.getNumberFormat=w,W.setNumberFormat=E,W.mergeNumberFormat=q,W[ya]=n,W[Gr]=ke,W[Br]=rt,W[Kr]=st,W}function tp(e){const t=J(e.locale)?e.locale:ns,n=J(e.fallbackLocale)||We(e.fallbackLocale)||me(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Oe(e.missing)?e.missing:void 0,r=we(e.silentTranslationWarn)||En(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=we(e.silentFallbackWarn)||En(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=we(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,a=me(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Oe(e.postTranslation)?e.postTranslation:void 0,f=J(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,g=we(e.sync)?e.sync:!0;let S=e.messages;if(me(e.sharedMessages)){const O=e.sharedMessages;S=Object.keys(O).reduce((V,G)=>{const te=V[G]||(V[G]={});return Ye(te,O[G]),V},S||{})}const{__i18n:I,__root:T,__injectWithOption:b}=e,_=e.datetimeFormats,C=e.numberFormats,v=e.flatJson;return{locale:t,fallbackLocale:n,messages:S,flatJson:v,datetimeFormats:_,numberFormats:C,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:l,fallbackFormat:i,modifiers:a,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:g,__i18n:I,__root:T,__injectWithOption:b}}function qr(e={}){const t=So(tp(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return we(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=we(r)?!r:r},get silentFallbackWarn(){return we(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=we(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,o){return t.te(r,o)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,o){t.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){t.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,o){t.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){t.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,o){t.setNumberFormat(r,o)},mergeNumberFormat(r,o){t.mergeNumberFormat(r,o)}};return s.__extender=n,s}function np(e,t,n){return{beforeCreate(){const s=rs();if(!s)throw _t(ft.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=Rl(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=qr(o);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Rl(e,r);else{this.$i18n=qr({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&wa(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,l)=>this.$i18n.te(o,l),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=rs();if(!s)throw _t(ft.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Rl(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[va](t.pluralizationRules||e.pluralizationRules);const n=Co(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Eo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function sp({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===ve?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},Pe())}function ka(){return ve}const rp=$e({name:"i18n-t",props:Ye({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Be(e)||!isNaN(e)}},Eo),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||Je({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f[0]!=="_"),l=Pe();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=J(e.plural)?+e.plural:e.plural);const i=sp(t,o),a=r[Gr](e.keypath,i,l),c=Ye(Pe(),s),u=J(e.tag)||Ce(e.tag)?e.tag:ka();return Ji(u,c,a)}}}),Il=rp;function op(e){return We(e)&&!J(e[0])}function Ta(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const l={part:!0};let i=Pe();e.locale&&(l.locale=e.locale),J(e.format)?l.key=e.format:Ce(e.format)&&(J(e.format.key)&&(l.key=e.format.key),i=Object.keys(e.format).reduce((p,g)=>n.includes(g)?Ye(Pe(),p,{[g]:e.format[g]}):p,Pe()));const a=s(e.value,l,i);let c=[l.key];We(a)?c=a.map((p,g)=>{const S=r[p.type],I=S?S({[p.type]:p.value,index:g,parts:a}):[p.value];return op(I)&&(I[0].key=`${p.type}-${g}`),I}):J(a)&&(c=[a]);const u=Ye(Pe(),o),f=J(e.tag)||Ce(e.tag)?e.tag:ka();return Ji(f,u,c)}}const lp=$e({name:"i18n-n",props:Ye({value:{type:Number,required:!0},format:{type:[String,Object]}},Eo),setup(e,t){const n=e.i18n||Je({useScope:e.scope,__useComponent:!0});return Ta(e,t,ha,(...s)=>n[Kr](...s))}}),Pl=lp;function ip(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function ap(e){const t=l=>{const{instance:i,value:a}=l;if(!i||!i.$)throw _t(ft.UNEXPECTED_ERROR);const c=ip(e,i.$),u=Ml(a);return[Reflect.apply(c.t,c,[...Ll(u)]),c]};return{created:(l,i)=>{const[a,c]=t(i);Gs&&e.global===c&&(l.__i18nWatcher=Tt(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),l.__composer=c,l.textContent=a},unmounted:l=>{Gs&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:i})=>{if(l.__composer){const a=l.__composer,c=Ml(i);l.textContent=Reflect.apply(a.t,a,[...Ll(c)])}},getSSRProps:l=>{const[i]=t(l);return{textContent:i}}}}function Ml(e){if(J(e))return{path:e};if(me(e)){if(!("path"in e))throw _t(ft.REQUIRED_VALUE,"path");return e}else throw _t(ft.INVALID_VALUE)}function Ll(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,l={},i=s||{};return J(n)&&(l.locale=n),Be(r)&&(l.plural=r),Be(o)&&(l.plural=o),[t,i,l]}function cp(e,t,...n){const s=me(n[0])?n[0]:{};(!we(s.globalInstall)||s.globalInstall)&&([Il.name,"I18nT"].forEach(o=>e.component(o,Il)),[Pl.name,"I18nN"].forEach(o=>e.component(o,Pl)),[Ol.name,"I18nD"].forEach(o=>e.component(o,Ol))),e.directive("t",ap(t))}const up=tn("global-vue-i18n");function dp(e={}){const t=__VUE_I18N_LEGACY_API__&&we(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=we(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=fp(e,t),l=tn("");function i(f){return s.get(f)||null}function a(f,p){s.set(f,p)}function c(f){s.delete(f)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...p){if(f.__VUE_I18N_SYMBOL__=l,f.provide(f.__VUE_I18N_SYMBOL__,u),me(p[0])){const I=p[0];u.__composerExtend=I.__composerExtend,u.__vueI18nExtend=I.__vueI18nExtend}let g=null;!t&&n&&(g=yp(f,u.global)),__VUE_I18N_FULL_INSTALL__&&cp(f,u,...p),__VUE_I18N_LEGACY_API__&&t&&f.mixin(np(o,o.__composer,u));const S=f.unmount;f.unmount=()=>{g&&g(),u.dispose(),S()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:i,__setInstance:a,__deleteInstance:c};return u}function Je(e={}){const t=rs();if(t==null)throw _t(ft.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw _t(ft.NOT_INSTALLED);const n=pp(t),s=mp(n),r=xa(t),o=gp(e,r);if(o==="global")return wa(s,e,r),s;if(o==="parent"){let a=hp(n,t,e.__useComponent);return a==null&&(a=s),a}const l=n;let i=l.__getInstance(t);if(i==null){const a=Ye({},e);"__i18n"in r&&(a.__i18n=r.__i18n),s&&(a.__root=s),i=So(a),l.__composerExtend&&(i[zr]=l.__composerExtend(i)),_p(l,t,i),l.__setInstance(t,i)}return i}function fp(e,t){const n=uc(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>qr(e)):n.run(()=>So(e));if(s==null)throw _t(ft.UNEXPECTED_ERROR);return[n,s]}function pp(e){const t=Gn(e.isCE?up:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw _t(e.isCE?ft.NOT_INSTALLED_WITH_PROVIDE:ft.UNEXPECTED_ERROR);return t}function gp(e,t){return lr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function mp(e){return e.mode==="composition"?e.global:e.global.__composer}function hp(e,t,n=!1){let s=null;const r=t.root;let o=bp(t,n);for(;o!=null;){const l=e;if(e.mode==="composition")s=l.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const i=l.__getInstance(o);i!=null&&(s=i.__composer,n&&s&&!s[ya]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function bp(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _p(e,t,n){In(()=>{},t),go(()=>{const s=n;e.__deleteInstance(t);const r=s[zr];r&&(r(),delete s[zr])},t)}const vp=["locale","fallbackLocale","availableLocales"],$l=["t","rt","d","n","tm","te"];function yp(e,t){const n=Object.create(null);return vp.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw _t(ft.UNEXPECTED_ERROR);const l=Fe(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,l)}),e.config.globalProperties.$i18n=n,$l.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw _t(ft.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,$l.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const xp=$e({name:"i18n-d",props:Ye({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Eo),setup(e,t){const n=e.i18n||Je({useScope:e.scope,__useComponent:!0});return Ta(e,t,ma,(...s)=>n[Br](...s))}}),Ol=xp;Qf();Pf(df);Mf(Ef);Lf(ca);if(__INTLIFY_PROD_DEVTOOLS__){const e=un();e.__INTLIFY__=!0,ff(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function wp(e){const t=e.endsWith("/")&&e!=="/"?e.slice(0,-1):e;return t==="/"?"":t.endsWith("/index.html")?t.slice(0,-11):t}function Bs(e){return e.replace(/\\/g,"/")}function kp(e){return e.startsWith("/")||/^[a-z]:\//i.test(e)}function Tp(e){return Bs(e).replace(/\/+$/,"")}function Cp(e){return Bs(e).trim()}function Pn(e,t,n={}){const s=Cp(e);if(!s)return null;if(kp(s))return!n.allowAbsoluteWithoutRoot&&!t?.trim()?null:`vscode://file/${encodeURI(s)}`;if(!t?.trim())return null;const r=Tp(t);if(!r)return null;const o=s.replace(/^\/+/,"");return`vscode://file/${encodeURI(`${r}/${o}`)}`}function cr(e,t,n){const s=Pn(e,t,n);return s?(window.location.href=s,!0):!1}var Sp=/\s+/g,Ep=e=>typeof e!="string"||!e?e:e.replace(Sp," ").trim(),Ks=(...e)=>{const t=[],n=s=>{if(!s&&s!==0&&s!==0n)return;if(Array.isArray(s)){for(let o=0,l=s.length;o<l;o++)n(s[o]);return}const r=typeof s;if(r==="string"||r==="number"||r==="bigint"){if(r==="number"&&s!==s)return;t.push(String(s))}else if(r==="object"){const o=Object.keys(s);for(let l=0,i=o.length;l<i;l++){const a=o[l];s[a]&&t.push(a)}}};for(let s=0,r=e.length;s<r;s++){const o=e[s];o!=null&&n(o)}return t.length>0?Ep(t.join(" ")):void 0},Al=e=>e===!1?"false":e===!0?"true":e===0?"0":e,ut=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Rp=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!s.includes(o)||e[o]!==t[o])return!1}return!0},Ip=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];n in e?e[n]=Ks(e[n],s):e[n]=s}return e},Ca=(e,t)=>{for(let n=0;n<e.length;n++){const s=e[n];Array.isArray(s)?Ca(s,t):s&&t.push(s)}},Sa=(...e)=>{const t=[];Ca(e,t);const n=[];for(let s=0;s<t.length;s++)t[s]&&n.push(t[s]);return n},Yr=(e,t)=>{const n={};for(const s in e){const r=e[s];if(s in t){const o=t[s];Array.isArray(r)||Array.isArray(o)?n[s]=Sa(o,r):typeof r=="object"&&typeof o=="object"&&r&&o?n[s]=Yr(r,o):n[s]=o+" "+r}else n[s]=r}for(const s in t)s in e||(n[s]=t[s]);return n},Pp={twMerge:!0,twMergeConfig:{}};function Mp(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(s){e=s},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(s){t=s},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(s){n=s},reset(){e=null,t={},n=!1}}}var Dt=Mp(),Lp=e=>{const t=(s,r)=>{const{extend:o=null,slots:l={},variants:i={},compoundVariants:a=[],compoundSlots:c=[],defaultVariants:u={}}=s,f={...Pp,...r},p=o?.base?Ks(o.base,s?.base):s?.base,g=o?.variants&&!ut(o.variants)?Yr(i,o.variants):i,S=o?.defaultVariants&&!ut(o.defaultVariants)?{...o.defaultVariants,...u}:u;!ut(f.twMergeConfig)&&!Rp(f.twMergeConfig,Dt.cachedTwMergeConfig)&&(Dt.didTwMergeConfigChange=!0,Dt.cachedTwMergeConfig=f.twMergeConfig);const I=ut(o?.slots),T=ut(l)?{}:{base:Ks(s?.base,I&&o?.base),...l},b=I?T:Ip({...o?.slots},ut(T)?{base:s?.base}:T),_=ut(o?.compoundVariants)?a:Sa(o?.compoundVariants,a),C=O=>{if(ut(g)&&ut(l)&&I)return e(p,O?.class,O?.className)(f);if(_&&!Array.isArray(_))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const j=(oe,le=g,B=null,K=null)=>{const A=le[oe];if(!A||ut(A))return null;const ne=K?.[oe]??O?.[oe];if(ne===null)return null;const _e=Al(ne);if(typeof _e=="object")return null;const Se=S?.[oe],be=_e??Al(Se);return A[be||"false"]},V=()=>{if(!g)return null;const oe=Object.keys(g),le=[];for(let B=0;B<oe.length;B++){const K=j(oe[B],g);K&&le.push(K)}return le},G=(oe,le)=>{if(!g||typeof g!="object")return null;const B=[];for(const K in g){const A=j(K,g,oe,le),ne=oe==="base"&&typeof A=="string"?A:A&&A[oe];ne&&B.push(ne)}return B},te={};for(const oe in O){const le=O[oe];le!==void 0&&(te[oe]=le)}const ye=(oe,le)=>{const B=typeof O?.[oe]=="object"?{[oe]:O[oe]?.initial}:{};return{...S,...te,...B,...le}},xe=(oe=[],le)=>{const B=[],K=oe.length;for(let A=0;A<K;A++){const{class:ne,className:_e,...Se}=oe[A];let be=!0;const he=ye(null,le);for(const Ee in Se){const De=Se[Ee],je=he[Ee];if(Array.isArray(De)){if(!De.includes(je)){be=!1;break}}else{if((De==null||De===!1)&&(je==null||je===!1))continue;if(je!==De){be=!1;break}}}be&&(ne&&B.push(ne),_e&&B.push(_e))}return B},ce=oe=>{const le=xe(_,oe);if(!Array.isArray(le))return le;const B={},K=e;for(let A=0;A<le.length;A++){const ne=le[A];if(typeof ne=="string")B.base=K(B.base,ne)(f);else if(typeof ne=="object")for(const _e in ne)B[_e]=K(B[_e],ne[_e])(f)}return B},Ne=oe=>{if(c.length<1)return null;const le={},B=ye(null,oe);for(let K=0;K<c.length;K++){const{slots:A=[],class:ne,className:_e,...Se}=c[K];if(!ut(Se)){let be=!0;for(const he in Se){const Ee=B[he],De=Se[he];if(Ee===void 0||(Array.isArray(De)?!De.includes(Ee):De!==Ee)){be=!1;break}}if(!be)continue}for(let be=0;be<A.length;be++){const he=A[be];le[he]||(le[he]=[]),le[he].push([ne,_e])}}return le};if(!ut(l)||!I){const oe={};if(typeof b=="object"&&!ut(b)){const le=e;for(const B in b)oe[B]=K=>{const A=ce(K),ne=Ne(K);return le(b[B],G(B,K),A?A[B]:void 0,ne?ne[B]:void 0,K?.class,K?.className)(f)}}return oe}return e(p,V(),xe(_),O?.class,O?.className)(f)},v=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return C.variantKeys=v(),C.extend=o,C.base=p,C.slots=b,C.variants=g,C.defaultVariants=S,C.compoundSlots=c,C.compoundVariants=_,C};return{tv:t,createTV:s=>(r,o)=>t(r,o?Yr(s,o):s)}};const $p=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},Op=(e,t)=>({classGroupId:e,validator:t}),Ea=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),zs="-",Nl=[],Ap="arbitrary..",Np=e=>{const t=Dp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Fp(l);const i=l.split(zs),a=i[0]===""&&i.length>1?1:0;return Ra(i,a,t)},getConflictingClassGroupIds:(l,i)=>{if(i){const a=s[l],c=n[l];return a?c?$p(c,a):a:c||Nl}return n[l]||Nl}}},Ra=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const c=Ra(e,t+1,o);if(c)return c}const l=n.validators;if(l===null)return;const i=t===0?e.join(zs):e.slice(t).join(zs),a=l.length;for(let c=0;c<a;c++){const u=l[c];if(u.validator(i))return u.classGroupId}},Fp=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?Ap+s:void 0})(),Dp=e=>{const{theme:t,classGroups:n}=e;return Up(n,t)},Up=(e,t)=>{const n=Ea();for(const s in e){const r=e[s];Ro(r,n,s,t)}return n},Ro=(e,t,n,s)=>{const r=e.length;for(let o=0;o<r;o++){const l=e[o];Vp(l,t,n,s)}},Vp=(e,t,n,s)=>{if(typeof e=="string"){Wp(e,t,n);return}if(typeof e=="function"){jp(e,t,n,s);return}Hp(e,t,n,s)},Wp=(e,t,n)=>{const s=e===""?t:Ia(t,e);s.classGroupId=n},jp=(e,t,n,s)=>{if(Gp(e)){Ro(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Op(n,e))},Hp=(e,t,n,s)=>{const r=Object.entries(e),o=r.length;for(let l=0;l<o;l++){const[i,a]=r[l];Ro(a,Ia(t,i),n,s)}},Ia=(e,t)=>{let n=e;const s=t.split(zs),r=s.length;for(let o=0;o<r;o++){const l=s[o];let i=n.nextPart.get(l);i||(i=Ea(),n.nextPart.set(l,i)),n=i}return n},Gp=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Bp=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const r=(o,l)=>{n[o]=l,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=s[o])!==void 0)return r(o,l),l},set(o,l){o in n?n[o]=l:r(o,l)}}},Jr="!",Fl=":",Kp=[],Dl=(e,t,n,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:r}),zp=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=r=>{const o=[];let l=0,i=0,a=0,c;const u=r.length;for(let I=0;I<u;I++){const T=r[I];if(l===0&&i===0){if(T===Fl){o.push(r.slice(a,I)),a=I+1;continue}if(T==="/"){c=I;continue}}T==="["?l++:T==="]"?l--:T==="("?i++:T===")"&&i--}const f=o.length===0?r:r.slice(a);let p=f,g=!1;f.endsWith(Jr)?(p=f.slice(0,-1),g=!0):f.startsWith(Jr)&&(p=f.slice(1),g=!0);const S=c&&c>a?c-a:void 0;return Dl(o,g,p,S)};if(t){const r=t+Fl,o=s;s=l=>l.startsWith(r)?o(l.slice(r.length)):Dl(Kp,!1,l,void 0,!0)}if(n){const r=s;s=o=>n({className:o,parseClassName:r})}return s},qp=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let r=[];for(let o=0;o<n.length;o++){const l=n[o],i=l[0]==="[",a=t.has(l);i||a?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(l)):r.push(l)}return r.length>0&&(r.sort(),s.push(...r)),s}},Yp=e=>({cache:Bp(e.cacheSize),parseClassName:zp(e),sortModifiers:qp(e),...Np(e)}),Jp=/\s+/,Xp=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,l=[],i=e.trim().split(Jp);let a="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{isExternal:f,modifiers:p,hasImportantModifier:g,baseClassName:S,maybePostfixModifierPosition:I}=n(u);if(f){a=u+(a.length>0?" "+a:a);continue}let T=!!I,b=s(T?S.substring(0,I):S);if(!b){if(!T){a=u+(a.length>0?" "+a:a);continue}if(b=s(S),!b){a=u+(a.length>0?" "+a:a);continue}T=!1}const _=p.length===0?"":p.length===1?p[0]:o(p).join(":"),C=g?_+Jr:_,v=C+b;if(l.indexOf(v)>-1)continue;l.push(v);const O=r(b,T);for(let j=0;j<O.length;++j){const V=O[j];l.push(C+V)}a=u+(a.length>0?" "+a:a)}return a},Qp=(...e)=>{let t=0,n,s,r="";for(;t<e.length;)(n=e[t++])&&(s=Pa(n))&&(r&&(r+=" "),r+=s);return r},Pa=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Pa(e[s]))&&(n&&(n+=" "),n+=t);return n},Xr=(e,...t)=>{let n,s,r,o;const l=a=>{const c=t.reduce((u,f)=>f(u),e());return n=Yp(c),s=n.cache.get,r=n.cache.set,o=i,i(a)},i=a=>{const c=s(a);if(c)return c;const u=Xp(a,n);return r(a,u),u};return o=l,(...a)=>o(Qp(...a))},Zp=[],ze=e=>{const t=n=>n[e]||Zp;return t.isThemeGetter=!0,t},Ma=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,La=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eg=/^\d+\/\d+$/,tg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ng=/\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$/,sg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,og=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bn=e=>eg.test(e),de=e=>!!e&&!Number.isNaN(Number(e)),Yt=e=>!!e&&Number.isInteger(Number(e)),Cr=e=>e.endsWith("%")&&de(e.slice(0,-1)),Nt=e=>tg.test(e),lg=()=>!0,ig=e=>ng.test(e)&&!sg.test(e),$a=()=>!1,ag=e=>rg.test(e),cg=e=>og.test(e),ug=e=>!Q(e)&&!Z(e),dg=e=>Mn(e,Na,$a),Q=e=>Ma.test(e),an=e=>Mn(e,Fa,ig),Sr=e=>Mn(e,hg,de),Ul=e=>Mn(e,Oa,$a),fg=e=>Mn(e,Aa,cg),Cs=e=>Mn(e,Da,ag),Z=e=>La.test(e),Dn=e=>Ln(e,Fa),pg=e=>Ln(e,bg),Vl=e=>Ln(e,Oa),gg=e=>Ln(e,Na),mg=e=>Ln(e,Aa),Ss=e=>Ln(e,Da,!0),Mn=(e,t,n)=>{const s=Ma.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Ln=(e,t,n=!1)=>{const s=La.exec(e);return s?s[1]?t(s[1]):n:!1},Oa=e=>e==="position"||e==="percentage",Aa=e=>e==="image"||e==="url",Na=e=>e==="length"||e==="size"||e==="bg-size",Fa=e=>e==="length",hg=e=>e==="number",bg=e=>e==="family-name",Da=e=>e==="shadow",Qr=()=>{const e=ze("color"),t=ze("font"),n=ze("text"),s=ze("font-weight"),r=ze("tracking"),o=ze("leading"),l=ze("breakpoint"),i=ze("container"),a=ze("spacing"),c=ze("radius"),u=ze("shadow"),f=ze("inset-shadow"),p=ze("text-shadow"),g=ze("drop-shadow"),S=ze("blur"),I=ze("perspective"),T=ze("aspect"),b=ze("ease"),_=ze("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...v(),Z,Q],j=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],G=()=>[Z,Q,a],te=()=>[bn,"full","auto",...G()],ye=()=>[Yt,"none","subgrid",Z,Q],xe=()=>["auto",{span:["full",Yt,Z,Q]},Yt,Z,Q],ce=()=>[Yt,"auto",Z,Q],Ne=()=>["auto","min","max","fr",Z,Q],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...G()],K=()=>[bn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],A=()=>[e,Z,Q],ne=()=>[...v(),Vl,Ul,{position:[Z,Q]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",gg,dg,{size:[Z,Q]}],be=()=>[Cr,Dn,an],he=()=>["","none","full",c,Z,Q],Ee=()=>["",de,Dn,an],De=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[de,Cr,Vl,Ul],st=()=>["","none",S,Z,Q],rt=()=>["none",de,Z,Q],Y=()=>["none",de,Z,Q],pe=()=>[de,Z,Q],h=()=>[bn,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nt],breakpoint:[Nt],color:[lg],container:[Nt],"drop-shadow":[Nt],ease:["in","out","in-out"],font:[ug],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nt],shadow:[Nt],spacing:["px",de],text:[Nt],"text-shadow":[Nt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bn,Q,Z,T]}],container:["container"],columns:[{columns:[de,Q,Z,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:O()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[Yt,"auto",Z,Q]}],basis:[{basis:[bn,"full","auto",i,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,bn,"auto","initial","none",Q]}],grow:[{grow:["",de,Z,Q]}],shrink:[{shrink:["",de,Z,Q]}],order:[{order:[Yt,"first","last","none",Z,Q]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:xe()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:xe()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ne()}],"auto-rows":[{"auto-rows":Ne()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[i,"screen",...K()]}],"min-w":[{"min-w":[i,"screen","none",...K()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,Dn,an]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Z,Sr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cr,Q]}],"font-family":[{font:[pg,Q,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:[r,Z,Q]}],"line-clamp":[{"line-clamp":[de,"none",Z,Sr]}],leading:[{leading:[o,...G()]}],"list-image":[{"list-image":["none",Z,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",Z,an]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[de,"auto",Z,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,Q]}],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",Z,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yt,Z,Q],radial:["",Z,Q],conic:[Yt,Z,Q]},mg,fg]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:Ee()}],"border-w-x":[{"border-x":Ee()}],"border-w-y":[{"border-y":Ee()}],"border-w-s":[{"border-s":Ee()}],"border-w-e":[{"border-e":Ee()}],"border-w-t":[{"border-t":Ee()}],"border-w-r":[{"border-r":Ee()}],"border-w-b":[{"border-b":Ee()}],"border-w-l":[{"border-l":Ee()}],"divide-x":[{"divide-x":Ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,Z,Q]}],"outline-w":[{outline:["",de,Dn,an]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,Ss,Cs]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",f,Ss,Cs]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[de,an]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":Ee()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,Ss,Cs]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[de,Z,Q]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"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":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":ke()}],"mask-image-linear-to-pos":[{"mask-linear-to":ke()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":ke()}],"mask-image-t-to-pos":[{"mask-t-to":ke()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":ke()}],"mask-image-r-to-pos":[{"mask-r-to":ke()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":ke()}],"mask-image-b-to-pos":[{"mask-b-to":ke()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":ke()}],"mask-image-l-to-pos":[{"mask-l-to":ke()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":ke()}],"mask-image-x-to-pos":[{"mask-x-to":ke()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":ke()}],"mask-image-y-to-pos":[{"mask-y-to":ke()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Z,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ke()}],"mask-image-radial-to-pos":[{"mask-radial-to":ke()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":v()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":ke()}],"mask-image-conic-to-pos":[{"mask-conic-to":ke()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,Q]}],filter:[{filter:["","none",Z,Q]}],blur:[{blur:st()}],brightness:[{brightness:[de,Z,Q]}],contrast:[{contrast:[de,Z,Q]}],"drop-shadow":[{"drop-shadow":["","none",g,Ss,Cs]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",de,Z,Q]}],"hue-rotate":[{"hue-rotate":[de,Z,Q]}],invert:[{invert:["",de,Z,Q]}],saturate:[{saturate:[de,Z,Q]}],sepia:[{sepia:["",de,Z,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,Q]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[de,Z,Q]}],"backdrop-contrast":[{"backdrop-contrast":[de,Z,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,Z,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,Z,Q]}],"backdrop-invert":[{"backdrop-invert":["",de,Z,Q]}],"backdrop-opacity":[{"backdrop-opacity":[de,Z,Q]}],"backdrop-saturate":[{"backdrop-saturate":[de,Z,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",de,Z,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",Z,Q]}],ease:[{ease:["linear","initial",b,Z,Q]}],delay:[{delay:[de,Z,Q]}],animate:[{animate:["none",_,Z,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[I,Z,Q]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:rt()}],"rotate-x":[{"rotate-x":rt()}],"rotate-y":[{"rotate-y":rt()}],"rotate-z":[{"rotate-z":rt()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[Z,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:h()}],"translate-x":[{"translate-x":h()}],"translate-y":[{"translate-y":h()}],"translate-z":[{"translate-z":h()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",Z,Q]}],"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":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"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",Z,Q]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[de,Dn,an,Sr]}],stroke:[{stroke:["none",...A()]}],"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"]}},_g=(e,{cacheSize:t,prefix:n,experimentalParseClassName:s,extend:r={},override:o={}})=>(Vn(e,"cacheSize",t),Vn(e,"prefix",n),Vn(e,"experimentalParseClassName",s),Es(e.theme,o.theme),Es(e.classGroups,o.classGroups),Es(e.conflictingClassGroups,o.conflictingClassGroups),Es(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Vn(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Rs(e.theme,r.theme),Rs(e.classGroups,r.classGroups),Rs(e.conflictingClassGroups,r.conflictingClassGroups),Rs(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Ua(e,r,"orderSensitiveModifiers"),e),Vn=(e,t,n)=>{n!==void 0&&(e[t]=n)},Es=(e,t)=>{if(t)for(const n in t)Vn(e,n,t[n])},Rs=(e,t)=>{if(t)for(const n in t)Ua(e,t,n)},Ua=(e,t,n)=>{const s=t[n];s!==void 0&&(e[n]=e[n]?e[n].concat(s):s)},vg=(e,...t)=>typeof e=="function"?Xr(Qr,e,...t):Xr(()=>_g(Qr(),e),...t),yg=Xr(Qr);var xg=e=>ut(e)?yg:vg({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Va=(e,t)=>{const n=Ks(e);return!n||!(t?.twMerge??!0)?n:((!Dt.cachedTwMerge||Dt.didTwMergeConfigChange)&&(Dt.didTwMergeConfigChange=!1,Dt.cachedTwMerge=xg(Dt.cachedTwMergeConfig)),Dt.cachedTwMerge(n)||void 0)},wg=(...e)=>Va(e,{}),kg=(...e)=>t=>Va(e,t),{tv:fs}=Lp(kg);function ps(...e){return wg(...e)}const Ve=$e({__name:"UiPill",props:{tone:{default:"strong"},size:{default:"md"},caps:{type:Boolean,default:!0},tracking:{default:"wide"}},setup(e){const t=e,n=fs({base:"inline-flex items-center gap-2 rounded-full",variants:{size:{xxs:"px-2 py-0.5 text-[0.55rem]",xs:"px-2.5 py-1 text-[0.55rem]",sm:"px-3 py-1 text-[0.55rem]",md:"px-3 py-1.5 text-[0.6rem]",lg:"px-3 py-1.5 text-[0.65rem]"},tone:{strong:"border border-pg-border bg-pg-surface-strong text-pg-text-soft",card:"border border-pg-border bg-pg-surface-card text-pg-text-soft",chip:"bg-pg-chip text-pg-chip-text"},caps:{true:"uppercase",false:""},tracking:{wide:"tracking-[0.25em]",tight:"tracking-[0.2em]",none:""}},defaultVariants:{size:"md",tone:"strong",caps:!0,tracking:"wide"}}),s=cs(),r=H(()=>{const i=t.caps?t.tracking:"none";return ps(n({size:t.size,tone:t.tone,caps:t.caps,tracking:i}),s.class)}),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>($(),F("span",mn(o.value,{class:r.value,style:l.value}),[mo(i.$slots,"default")],16))}}),Tg={class:"flex min-h-0 flex-col gap-4"},Cg={class:"rounded-3xl border p-5 shadow-xl border-pg-border bg-pg-surface-card"},Sg={class:"flex flex-wrap items-center justify-between gap-3"},Eg={class:"flex flex-col gap-1"},Rg={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Ig={class:"text-lg font-display text-pg-text-strong"},Pg={class:"mt-4 grid gap-3 text-sm text-pg-text-soft"},Mg={class:"flex items-center gap-2"},Lg={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},$g={class:"flex items-center gap-2"},Og={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Ag={class:"flex min-h-0 flex-1 flex-col gap-3"},Ng={key:0,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Fg={key:0,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Dg={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Ug={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Vg={class:"flex flex-wrap items-center justify-between gap-2"},Wg={class:"flex flex-wrap items-center gap-2"},jg={class:"text-[0.75rem] font-semibold text-pg-text"},Hg=["aria-label","title","onClick"],Gg={class:"mt-1 text-[0.7rem] text-pg-text-muted"},Bg={key:1,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Kg={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},zg={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},qg={class:"flex flex-wrap items-center justify-between gap-2"},Yg={class:"flex flex-wrap items-center gap-2"},Jg={class:"text-[0.75rem] font-semibold text-pg-text"},Xg=["aria-label","title","onClick"],Qg={class:"mt-1 text-[0.7rem] text-pg-text-muted"},Zg={key:2,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},em={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},tm={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},nm={class:"flex flex-wrap items-center justify-between gap-2"},sm={class:"text-[0.75rem] font-semibold text-pg-text"},rm=["aria-label","title","onClick"],om=$e({__name:"ConfigDetail",props:{selected:{},impacted:{},isDisabled:{type:Boolean},workspaceRoot:{}},setup(e){const t=e,{t:n}=Je(),s=H(()=>{const f=t.selected.file.replace(/\\/g,"/"),p=f.lastIndexOf("/");return p<0?"/":f.slice(0,p)||"/"}),r=H(()=>s.value==="/"?"/**":`${s.value}/**`),o=H(()=>{const f=[],p=[],g=[];for(const S of t.impacted)S.kind==="disabled"?p.push(S):S.kind==="ignored"?g.push(S):f.push(S);return{active:f,disabled:p,ignored:g}}),l=H(()=>t.impacted.length),i=f=>`method-${f.toLowerCase()}`;function a(f){return f.url?f.url:f.file}function c(f){return Pn(f,t.workspaceRoot)}function u(f){cr(f,t.workspaceRoot)}return(f,p)=>($(),F("section",Tg,[x("div",Cg,[x("div",Sg,[x("div",Eg,[x("span",Rg,L(R(n)("configPanel.title")),1),x("span",Ig,L(t.selected.file),1)]),z(Ve,{tone:"chip",size:"sm",caps:!1},{default:re(()=>[fe(L(t.isDisabled?R(n)("configPanel.statusDisabled"):R(n)("configPanel.statusEnabled")),1)]),_:1})]),x("div",Pg,[x("div",Mg,[x("span",Lg,L(R(n)("configPanel.scope")),1),x("span",null,L(r.value),1)]),x("div",$g,[x("span",Og,L(R(n)("configPanel.impacted")),1),z(Ve,{tone:"chip",size:"sm",caps:!1},{default:re(()=>[fe(L(l.value),1)]),_:1})])])]),x("div",Ag,[l.value===0?($(),F("div",Ng,L(R(n)("configPanel.emptyImpacts")),1)):($(),F(ve,{key:1},[o.value.active.length>0?($(),F("div",Fg,[x("div",Dg,[x("span",null,L(R(n)("configPanel.active")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(o.value.active.length),1)]),_:1})]),x("div",Ug,[($(!0),F(ve,null,Xe(o.value.active,g=>($(),F("div",{key:`active-${g.file}-${g.method??""}-${g.url??""}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",Vg,[x("div",Wg,[g.method?($(),F("span",{key:0,class:Ge(["rounded-full px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",i(g.method)])},L(g.method),3)):ge("",!0),x("span",jg,L(a(g)),1)]),c(g.file)?($(),F("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${g.file} in VS Code`,title:R(n)("detail.openInVscode"),onClick:S=>u(g.file)},[...p[0]||(p[0]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Hg)):ge("",!0)]),x("div",Gg,L(g.file),1)]))),128))])])):ge("",!0),o.value.disabled.length>0?($(),F("div",Bg,[x("div",Kg,[x("span",null,L(R(n)("configPanel.disabled")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(o.value.disabled.length),1)]),_:1})]),x("div",zg,[($(!0),F(ve,null,Xe(o.value.disabled,g=>($(),F("div",{key:`disabled-${g.file}-${g.method??""}-${g.url??""}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",qg,[x("div",Yg,[g.method?($(),F("span",{key:0,class:Ge(["rounded-full px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",i(g.method)])},L(g.method),3)):ge("",!0),x("span",Jg,L(a(g)),1)]),c(g.file)?($(),F("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${g.file} in VS Code`,title:R(n)("detail.openInVscode"),onClick:S=>u(g.file)},[...p[1]||(p[1]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Xg)):ge("",!0)]),x("div",Qg,L(g.file),1)]))),128))])])):ge("",!0),o.value.ignored.length>0?($(),F("div",Zg,[x("div",em,[x("span",null,L(R(n)("configPanel.ignored")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(o.value.ignored.length),1)]),_:1})]),x("div",tm,[($(!0),F(ve,null,Xe(o.value.ignored,g=>($(),F("div",{key:`ignored-${g.file}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",nm,[x("span",sm,L(a(g)),1),c(g.file)?($(),F("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${g.file} in VS Code`,title:R(n)("detail.openInVscode"),onClick:S=>u(g.file)},[...p[2]||(p[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,rm)):ge("",!0)])]))),128))])])):ge("",!0)],64))])]))}}),lm={class:"flex flex-wrap items-center gap-2 border-t px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] border-pg-border text-pg-text-muted"},im={key:0,class:"flex flex-col gap-2 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},am={class:"rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},cm={class:"text-[0.7rem] text-pg-text-subtle"},um={key:1,class:"border-t px-4 py-3 text-xs border-pg-border text-pg-text-muted"},dm=$e({__name:"RouteDetailConfigChain",props:{configChain:{},configStatusMap:{}},setup(e){const t=e,{t:n}=Je(),s=H(()=>(t.configChain??[]).map((r,o)=>({file:r,order:o+1,disabled:t.configStatusMap.get(r)==="disabled"})));return(r,o)=>($(),F("div",null,[x("div",lm,[x("span",null,L(R(n)("detail.configChain")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(s.value.length),1)]),_:1})]),s.value.length>0?($(),F("div",im,[($(!0),F(ve,null,Xe(s.value,l=>($(),F("div",{key:`config-${l.order}-${l.file}`,class:"flex flex-wrap items-center gap-2"},[x("span",am,L(l.order),1),x("span",cm,L(l.file),1),l.disabled?($(),ht(Ve,{key:0,tone:"strong",size:"xxs",caps:!1},{default:re(()=>[fe(L(R(n)("configPanel.statusDisabled")),1)]),_:1})):ge("",!0)]))),128))])):($(),F("div",um,L(R(n)("detail.configChainEmpty")),1))]))}}),fm={class:"flex flex-wrap items-center gap-2 border-t px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] border-pg-border text-pg-text-muted"},pm={key:0,class:"flex flex-col gap-3 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},gm={key:0,class:"flex flex-col gap-2"},mm={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},hm={class:"flex flex-wrap gap-2"},bm=["href","title"],_m={key:1,class:"flex flex-col gap-2"},vm={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},ym={class:"flex flex-wrap gap-2"},xm=["href","title"],wm={key:2,class:"flex flex-col gap-2"},km={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Tm={class:"flex flex-wrap gap-2"},Cm=["href","title"],Sm=$e({__name:"RouteDetailMiddlewares",props:{selected:{},workspaceRoot:{}},setup(e){const t=e,{t:n}=Je();function s(f){const p=f.trim();return p?Pn(p,t.workspaceRoot,{allowAbsoluteWithoutRoot:!0})??"":""}const r=H(()=>t.selected.preMiddlewares??[]),o=H(()=>t.selected.normalMiddlewares?t.selected.normalMiddlewares:t.selected.preMiddlewares||t.selected.postMiddlewares?[]:t.selected.middlewares??[]),l=H(()=>t.selected.postMiddlewares??[]),i=H(()=>t.selected.preMiddlewareCount??r.value.length),a=H(()=>t.selected.normalMiddlewareCount??o.value.length),c=H(()=>t.selected.postMiddlewareCount??l.value.length),u=H(()=>t.selected.middlewareCount??i.value+a.value+c.value);return(f,p)=>($(),F("div",null,[x("div",fm,[x("span",null,L(R(n)("detail.middlewares")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(u.value),1)]),_:1})]),r.value.length>0||o.value.length>0||l.value.length>0?($(),F("div",pm,[r.value.length>0?($(),F("div",gm,[x("div",mm,[x("span",null,L(R(n)("detail.middlewarePre")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(i.value),1)]),_:1})]),x("div",hm,[($(!0),F(ve,null,Xe(r.value,g=>($(),F("span",{key:`pre-${g}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[fe(L(g)+" ",1),s(g)?($(),F("a",{key:0,href:s(g),class:"text-pg-text-soft transition hover:text-pg-text",title:R(n)("detail.openInVscode")},[...p[0]||(p[0]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,bm)):ge("",!0)]))),128))])])):ge("",!0),o.value.length>0?($(),F("div",_m,[x("div",vm,[x("span",null,L(R(n)("detail.middlewareNormal")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(a.value),1)]),_:1})]),x("div",ym,[($(!0),F(ve,null,Xe(o.value,g=>($(),F("span",{key:`normal-${g}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[fe(L(g)+" ",1),s(g)?($(),F("a",{key:0,href:s(g),class:"text-pg-text-soft transition hover:text-pg-text",title:R(n)("detail.openInVscode")},[...p[1]||(p[1]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,xm)):ge("",!0)]))),128))])])):ge("",!0),l.value.length>0?($(),F("div",wm,[x("div",km,[x("span",null,L(R(n)("detail.middlewarePost")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(c.value),1)]),_:1})]),x("div",Tm,[($(!0),F(ve,null,Xe(l.value,g=>($(),F("span",{key:`post-${g}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[fe(L(g)+" ",1),s(g)?($(),F("a",{key:0,href:s(g),class:"text-pg-text-soft transition hover:text-pg-text",title:R(n)("detail.openInVscode")},[...p[2]||(p[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Cm)):ge("",!0)]))),128))])])):ge("",!0)])):ge("",!0)]))}}),os=$e({__name:"UiTextInput",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=fs({base:"rounded-lg border outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",variants:{dense:{true:"px-2.5 py-1.5 text-[0.8rem]",false:"px-3 py-2 text-sm"}},defaultVariants:{dense:!1}}),s=cs(),r=H(()=>ps(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>($(),F("input",mn(o.value,{class:r.value,style:l.value}),null,16))}}),Em={class:"flex items-center justify-between border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},Rm={class:"truncate text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},Im={class:"flex flex-wrap items-center gap-3 px-4 py-3"},Pm=["disabled","aria-busy"],Mm={key:0,class:"i-[carbon--circle-dash] h-3.5 w-3.5 animate-spin","aria-hidden":"true"},Lm=$e({__name:"RouteDetailRequestHeader",props:{method:{},requestUrl:{},file:{},isSwRegistering:{type:Boolean}},emits:["run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>`method-${n.method.toLowerCase()}`);return(l,i)=>($(),F("div",null,[x("div",Em,[x("span",null,L(R(r)("detail.requestLabel")),1),x("span",Rm,L(n.file),1)]),x("div",Im,[x("span",{class:Ge(["rounded-full px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",o.value])},L(n.method),3),z(os,{value:n.requestUrl,readonly:"",class:"min-w-[220px] flex-1"},null,8,["value"]),x("button",{class:"flex items-center gap-2 rounded-full px-4 py-2 text-[0.65rem] uppercase tracking-[0.3em] shadow-sm transition hover:-translate-y-0.5 disabled:cursor-not-allowed disabled:opacity-70 disabled:hover:translate-y-0 bg-pg-accent text-pg-on-accent","data-testid":"playground-run",disabled:n.isSwRegistering,"aria-busy":n.isSwRegistering,onClick:i[0]||(i[0]=a=>s("run"))},[n.isSwRegistering?($(),F("span",Mm)):ge("",!0),fe(" "+L(R(r)("detail.run")),1)],8,Pm)])]))}}),$m=["type"],qe=$e({__name:"UiChipButton",props:{active:{type:Boolean,default:!1},tone:{default:"strong"},size:{default:"md"},type:{default:"button"}},setup(e,{expose:t}){const n=e,s=fs({base:"inline-flex items-center gap-2 rounded-full border uppercase tracking-[0.25em] transition hover:-translate-y-0.5",variants:{size:{xs:"px-2.5 py-1 text-[0.55rem]",sm:"px-3 py-1 text-[0.55rem]",md:"px-3 py-1.5 text-[0.6rem]",lg:"px-3 py-1.5 text-[0.65rem]"},tone:{strong:"border-pg-border bg-pg-surface-strong text-pg-text-soft",card:"border-pg-border bg-pg-surface-card text-pg-text-soft"},active:{true:"bg-pg-accent text-pg-on-accent border-pg-accent shadow-sm ring-1 ring-pg-accent-ring"}},defaultVariants:{size:"md",tone:"strong"}}),r=cs(),o=H(()=>ps(s({size:n.size,tone:n.tone,active:n.active}),r.class)),l=H(()=>{const{class:c,style:u,...f}=r;return f}),i=H(()=>r.style),a=ee(null);return t({el:a}),(c,u)=>($(),F("button",mn({ref_key:"buttonRef",ref:a},l.value,{type:n.type,class:o.value,style:i.value}),[mo(c.$slots,"default")],16,$m))}}),dn=$e({__name:"UiField",props:{label:{},dense:{type:Boolean,default:!1}},setup(e){const t=e,n=fs({base:"flex flex-col uppercase text-pg-text-muted",variants:{dense:{true:"gap-1 text-[0.55rem] tracking-[0.25em]",false:"gap-1.5 text-[0.65rem] tracking-[0.2em]"}},defaultVariants:{dense:!1}}),s=cs(),r=H(()=>ps(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>($(),F("label",mn(o.value,{class:r.value,style:l.value}),[x("span",null,L(t.label),1),mo(i.$slots,"default")],16))}}),Er=$e({__name:"UiTextarea",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=fs({base:"rounded-lg border outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",variants:{dense:{true:"px-2.5 py-1.5 text-[0.8rem]",false:"px-3 py-2 text-sm"}},defaultVariants:{dense:!1}}),s=cs(),r=H(()=>ps(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>($(),F("textarea",mn(o.value,{class:r.value,style:l.value}),null,16))}}),Om={class:"rounded-2xl border shadow-sm border-pg-border bg-pg-surface-card"},Am={class:"border-t p-4 border-pg-border"},Nm={class:"flex flex-wrap gap-2"},Fm={class:"mt-4"},Dm={key:0,class:"rounded-xl border px-4 py-3 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},Um={key:1,class:"grid gap-3 lg:grid-cols-2"},Vm={class:"flex items-center gap-2 text-[0.55rem] uppercase tracking-[0.2em] text-pg-text-muted"},Wm={class:"rounded-full border px-2 py-0.5 text-[0.5rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},jm={class:"relative"},Hm=["value"],Gm={value:"json"},Bm={value:"text"},Km={value:"form"},zm={value:"multipart"},qm={value:"base64"},Ym='{ "q": "alpha", "page": 1 }',Jm='{ "x-mokup": "playground" }',Xm='{ "name": "Ada" }',Qm=`title=alpha
4
- count=3`,Zm=`title=alpha
5
- status=active`,eh="SGVsbG8gd29ybGQ=",th=$e({__name:"RouteDetailRequest",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},queryText:{},headersText:{},bodyText:{},bodyType:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),{bodyType:o}=Nc(n);function l(f){return f.kind==="param"?r("detail.paramPlaceholder"):r("detail.paramPlaceholderCatchall")}const i=ee("query");function a(){return n.routeParams.length>0?"params":"query"}Tt(()=>n.selected?.url??"",()=>{i.value=a()},{immediate:!0}),Tt(()=>n.routeParams.length,(f,p)=>{if(!n.selected){i.value="query";return}f>0&&p===0&&i.value==="query"&&(i.value="params"),f===0&&i.value==="params"&&(i.value="query")});function c(){switch(n.bodyType){case"text":return r("detail.bodyPlaceholderText");case"form":return r("detail.bodyPlaceholderForm",{sample:Qm});case"multipart":return r("detail.bodyPlaceholderMultipart",{sample:Zm});case"base64":return r("detail.bodyPlaceholderBase64",{sample:eh});default:return r("detail.bodyPlaceholderJson",{json:Xm})}}const u=H(()=>n.selected.configChain??[]);return(f,p)=>($(),F("section",Om,[z(Lm,{method:n.selected.method,"request-url":n.requestUrl,file:n.selected.file,"is-sw-registering":n.isSwRegistering,onRun:p[0]||(p[0]=g=>s("run"))},null,8,["method","request-url","file","is-sw-registering"]),z(dm,{"config-chain":u.value,"config-status-map":n.configStatusMap},null,8,["config-chain","config-status-map"]),z(Sm,{selected:n.selected,"workspace-root":n.workspaceRoot},null,8,["selected","workspace-root"]),x("div",Am,[x("div",Nm,[z(qe,{size:"md",active:i.value==="params",onClick:p[1]||(p[1]=g=>i.value="params")},{default:re(()=>[fe(L(R(r)("detail.params")),1)]),_:1},8,["active"]),z(qe,{size:"md",active:i.value==="query",onClick:p[2]||(p[2]=g=>i.value="query")},{default:re(()=>[fe(L(R(r)("detail.query")),1)]),_:1},8,["active"]),z(qe,{size:"md",active:i.value==="headers",onClick:p[3]||(p[3]=g=>i.value="headers")},{default:re(()=>[fe(L(R(r)("detail.headers")),1)]),_:1},8,["active"]),z(qe,{size:"md",active:i.value==="body",onClick:p[4]||(p[4]=g=>i.value="body")},{default:re(()=>[fe(L(R(r)("detail.body")),1)]),_:1},8,["active"])]),x("div",Fm,[vs(x("div",null,[n.routeParams.length===0?($(),F("div",Dm,L(R(r)("detail.emptyParams")),1)):($(),F("div",Um,[($(!0),F(ve,null,Xe(n.routeParams,g=>($(),F("label",{key:g.id,class:"flex flex-col gap-1.5 text-[0.65rem] uppercase tracking-[0.2em] text-pg-text-muted"},[x("span",Vm,[x("span",null,L(g.name),1),x("span",Wm,L(g.token),1)]),z(os,{value:n.paramValues[g.name]??"",placeholder:l(g),onInput:S=>s("update:param-value",g.name,S.target?.value??"")},null,8,["value","placeholder","onInput"])]))),128))]))],512),[[ys,i.value==="params"]]),vs(x("div",null,[z(dn,{label:R(r)("detail.query")},{default:re(()=>[z(Er,{value:n.queryText,rows:"4",placeholder:R(r)("detail.queryPlaceholder",{json:Ym}),onInput:p[5]||(p[5]=g=>s("update:queryText",g.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ys,i.value==="query"]]),vs(x("div",null,[z(dn,{label:R(r)("detail.headers")},{default:re(()=>[z(Er,{value:n.headersText,rows:"4",placeholder:R(r)("detail.headersPlaceholder",{json:Jm}),onInput:p[6]||(p[6]=g=>s("update:headersText",g.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ys,i.value==="headers"]]),vs(x("div",null,[z(dn,{label:R(r)("detail.bodyType")},{default:re(()=>[x("div",jm,[x("select",{class:"w-full appearance-none rounded-lg border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",value:R(o),onChange:p[7]||(p[7]=g=>s("update:bodyType",g.target?.value))},[x("option",Gm,L(R(r)("detail.bodyTypeJson")),1),x("option",Bm,L(R(r)("detail.bodyTypeText")),1),x("option",Km,L(R(r)("detail.bodyTypeForm")),1),x("option",zm,L(R(r)("detail.bodyTypeMultipart")),1),x("option",qm,L(R(r)("detail.bodyTypeBase64")),1)],40,Hm),p[9]||(p[9]=x("span",{class:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-pg-text-muted","aria-hidden":"true"},[x("span",{class:"i-[carbon--chevron-down] block h-4 w-4"})],-1))])]),_:1},8,["label"]),z(dn,{label:R(r)("detail.body")},{default:re(()=>[z(Er,{value:n.bodyText,rows:"6",placeholder:c(),onInput:p[8]||(p[8]=g=>s("update:bodyText",g.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ys,i.value==="body"]])])])]))}}),nh={class:"flex min-h-[220px] flex-1 flex-col rounded-2xl border shadow-sm border-pg-border bg-pg-surface-card"},sh={class:"flex items-center justify-between border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},rh={class:"flex items-center gap-3 text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},oh={class:"flex-1 min-h-0 overflow-auto rounded-b-2xl p-4 text-xs bg-pg-surface-strong text-pg-text","data-testid":"playground-response"},lh=$e({__name:"RouteDetailResponse",props:{responseText:{},responseStatus:{},responseTime:{}},setup(e){const t=e,{t:n}=Je();return(s,r)=>($(),F("section",nh,[x("div",sh,[x("span",null,L(R(n)("detail.responseLabel")),1),x("span",rh,[x("span",null,L(t.responseStatus),1),x("span",null,L(t.responseTime),1)])]),x("pre",oh,L(t.responseText),1)]))}}),ih={class:"flex min-h-0 flex-col gap-4"},ah={key:0,class:"flex h-full flex-col items-center justify-center gap-3 rounded-3xl border p-6 text-center shadow-xl border-pg-border bg-pg-surface-card text-pg-text-muted"},ch={class:"text-xl font-display text-pg-text-strong"},uh={class:"text-sm"},dh={key:1,class:"flex min-h-0 h-full flex-col gap-4"},fh=$e({__name:"RouteDetail",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},queryText:{},headersText:{},bodyText:{},bodyType:{},responseText:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je();return(o,l)=>($(),F("section",ih,[n.selected?($(),F("div",dh,[z(th,{selected:n.selected,"request-url":n.requestUrl,"workspace-root":n.workspaceRoot,"route-params":n.routeParams,"param-values":n.paramValues,"query-text":n.queryText,"headers-text":n.headersText,"body-text":n.bodyText,"body-type":n.bodyType,"is-sw-registering":n.isSwRegistering,"config-status-map":n.configStatusMap,"onUpdate:queryText":l[0]||(l[0]=i=>s("update:queryText",i)),"onUpdate:headersText":l[1]||(l[1]=i=>s("update:headersText",i)),"onUpdate:bodyText":l[2]||(l[2]=i=>s("update:bodyText",i)),"onUpdate:bodyType":l[3]||(l[3]=i=>s("update:bodyType",i)),"onUpdate:paramValue":l[4]||(l[4]=(i,a)=>s("update:param-value",i,a)),onRun:l[5]||(l[5]=i=>s("run"))},null,8,["selected","request-url","workspace-root","route-params","param-values","query-text","headers-text","body-text","body-type","is-sw-registering","config-status-map"]),z(lh,{"response-text":n.responseText,"response-status":n.responseStatus,"response-time":n.responseTime},null,8,["response-text","response-status","response-time"])])):($(),F("div",ah,[x("p",ch,L(R(r)("detail.selectTitle")),1),x("p",uh,L(R(r)("detail.selectHint")),1)]))]))}}),ph={class:"flex min-h-0 flex-col gap-4"},gh={class:"rounded-3xl border p-5 shadow-xl border-pg-border bg-pg-surface-card"},mh={class:"flex flex-wrap items-center justify-between gap-3"},hh={class:"flex flex-col gap-1"},bh={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},_h={class:"flex flex-wrap items-center gap-2"},vh={class:"text-lg font-display text-pg-text-strong"},yh={class:"text-xs text-pg-text-subtle"},xh={class:"flex items-center gap-2"},wh=["aria-label","title"],kh={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Th={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Ch={key:0,class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Sh={class:"flex flex-wrap items-start justify-between gap-3"},Eh={class:"flex flex-col gap-1"},Rh={class:"flex flex-wrap items-center gap-2"},Ih={class:"text-[0.85rem] font-semibold text-pg-text"},Ph={key:0,class:"text-[0.75rem] text-pg-text-muted"},Mh={key:1,class:"text-[0.7rem] text-pg-text-subtle"},Lh=["aria-label","title","onClick"],$h={key:1,class:"mt-3 text-xs text-pg-text-muted"},Oh={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Ah={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Nh={key:0,class:"mt-3 flex flex-col gap-2 text-xs text-pg-text-soft"},Fh={class:"rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},Dh={class:"text-[0.7rem] text-pg-text-subtle"},Uh={key:1,class:"mt-3 text-xs text-pg-text-muted"},Vh={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Wh={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},jh={key:0,class:"mt-3 flex flex-col gap-3 text-sm text-pg-text-soft"},Hh={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Gh={class:"mt-1 text-[0.75rem] text-pg-text-soft"},Bh={class:"whitespace-pre-wrap"},Kh={key:1,class:"mt-3 text-xs text-pg-text-muted"},zh={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},qh={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Yh={class:"mt-3 grid gap-2 text-sm text-pg-text-soft"},Jh={key:0,class:"flex items-center gap-2"},Xh={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Qh={key:1,class:"flex items-center gap-2"},Zh={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},eb={class:"flex items-center gap-2"},tb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},nb={class:"text-pg-text-subtle"},Wl=$e({__name:"RouteDetailInactive",props:{mode:{},selected:{},workspaceRoot:{},configStatusMap:{}},setup(e){const t=e,{t:n}=Je(),s=H(()=>t.mode==="ignored"?n("inactive.titleIgnored"):n("inactive.titleDisabled")),r=H(()=>t.mode==="ignored"?n(`ignored.reason.${t.selected.reason}`):n(`disabled.reason.${t.selected.reason}`)),o=H(()=>t.selected.url?t.selected.url:t.selected.file),l=T=>`method-${T.toLowerCase()}`,i=H(()=>t.selected.decisionChain??[]),a=H(()=>t.selected.configChain??[]),c=H(()=>a.value.map((T,b)=>({file:T,order:b+1,disabled:t.configStatusMap.get(T)==="disabled"}))),u=H(()=>t.selected.effectiveConfig??{}),f=H(()=>{const T=[],b=u.value;return typeof b.enabled=="boolean"&&T.push({key:"enabled",label:n("inactive.config.enabled"),value:String(b.enabled)}),typeof b.status=="number"&&T.push({key:"status",label:n("inactive.config.status"),value:String(b.status)}),typeof b.delay=="number"&&T.push({key:"delay",label:n("inactive.config.delay"),value:`${b.delay}ms`}),typeof b.ignorePrefix<"u"&&T.push({key:"ignorePrefix",label:n("inactive.config.ignorePrefix"),value:p(b.ignorePrefix)}),typeof b.include<"u"&&T.push({key:"include",label:n("inactive.config.include"),value:p(b.include)}),typeof b.exclude<"u"&&T.push({key:"exclude",label:n("inactive.config.exclude"),value:p(b.exclude)}),b.headers&&Object.keys(b.headers).length>0&&T.push({key:"headers",label:n("inactive.config.headers"),value:p(b.headers)}),T});function p(T){return Array.isArray(T)?T.join(", "):T&&typeof T=="object"?JSON.stringify(T,null,2):String(T)}function g(T){return{"config.enabled":n("decision.configEnabled"),"ignore-prefix":n("decision.ignorePrefix"),"file.supported":n("decision.fileSupported"),"filter.exclude":n("decision.filterExclude"),"filter.include":n("decision.filterInclude"),"route.derived":n("decision.routeDerived"),"rule.enabled":n("decision.ruleEnabled")}[T.step]??T.step}function S(T){return Pn(T,t.workspaceRoot)}function I(T){cr(T,t.workspaceRoot)}return(T,b)=>($(),F("section",ph,[x("div",gh,[x("div",mh,[x("div",hh,[x("span",bh,L(s.value),1),x("div",_h,[t.selected.method?($(),F("span",{key:0,class:Ge(["rounded-full px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",l(t.selected.method)])},L(t.selected.method),3)):ge("",!0),x("span",vh,L(o.value),1)]),x("span",yh,L(t.selected.file),1)]),x("div",xh,[z(Ve,{tone:"chip",size:"sm",caps:!1},{default:re(()=>[fe(L(r.value),1)]),_:1}),S(t.selected.file)?($(),F("button",{key:0,class:"flex h-8 w-8 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${t.selected.file} in VS Code`,title:R(n)("detail.openInVscode"),onClick:b[0]||(b[0]=_=>I(t.selected.file))},[...b[1]||(b[1]=[x("span",{class:"i-[carbon--launch] h-4 w-4","aria-hidden":"true"},null,-1)])],8,wh)):ge("",!0)])])]),x("div",kh,[x("div",Th,[x("span",null,L(R(n)("inactive.decisionChain")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(i.value.length),1)]),_:1})]),i.value.length>0?($(),F("div",Ch,[($(!0),F(ve,null,Xe(i.value,(_,C)=>($(),F("div",{key:`decision-${C}-${_.step}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",Sh,[x("div",Eh,[x("div",Rh,[x("span",{class:Ge(["rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em]",_.result==="pass"?"border-pg-border bg-pg-surface-strong text-pg-text-soft":"border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"])},L(_.result==="pass"?R(n)("inactive.pass"):R(n)("inactive.fail")),3),x("span",Ih,L(g(_)),1)]),_.detail?($(),F("span",Ph,L(_.detail),1)):ge("",!0),_.source?($(),F("span",Mh,L(_.source),1)):ge("",!0)]),_.source&&S(_.source)?($(),F("button",{key:0,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.source} in VS Code`,title:R(n)("detail.openInVscode"),onClick:v=>I(_.source)},[...b[2]||(b[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Lh)):ge("",!0)])]))),128))])):($(),F("div",$h,L(R(n)("inactive.decisionChainEmpty")),1))]),x("div",Oh,[x("div",Ah,[x("span",null,L(R(n)("detail.configChain")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(c.value.length),1)]),_:1})]),c.value.length>0?($(),F("div",Nh,[($(!0),F(ve,null,Xe(c.value,_=>($(),F("div",{key:`config-${_.order}-${_.file}`,class:"flex flex-wrap items-center gap-2"},[x("span",Fh,L(_.order),1),x("span",Dh,L(_.file),1),_.disabled?($(),ht(Ve,{key:0,tone:"strong",size:"xxs",caps:!1},{default:re(()=>[fe(L(R(n)("configPanel.statusDisabled")),1)]),_:1})):ge("",!0)]))),128))])):($(),F("div",Uh,L(R(n)("detail.configChainEmpty")),1))]),x("div",Vh,[x("div",Wh,[x("span",null,L(R(n)("inactive.effectiveConfig")),1),z(Ve,{tone:"chip",size:"xxs",caps:!1},{default:re(()=>[fe(L(f.value.length),1)]),_:1})]),f.value.length>0?($(),F("div",jh,[($(!0),F(ve,null,Xe(f.value,_=>($(),F("div",{key:`config-entry-${_.key}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",Hh,L(_.label),1),x("div",Gh,[x("code",Bh,L(_.value),1)])]))),128))])):($(),F("div",Kh,L(R(n)("inactive.effectiveConfigEmpty")),1))]),x("div",zh,[x("div",qh,L(R(n)("inactive.routeSummary")),1),x("div",Yh,[t.selected.method?($(),F("div",Jh,[x("span",Xh,L(R(n)("inactive.summaryMethod")),1),x("span",null,L(t.selected.method),1)])):ge("",!0),t.selected.url?($(),F("div",Qh,[x("span",Zh,L(R(n)("inactive.summaryPath")),1),x("span",null,L(t.selected.url),1)])):ge("",!0),x("div",eb,[x("span",tb,L(R(n)("inactive.summaryFile")),1),x("span",nb,L(t.selected.file),1)])])])]))}}),sb={key:4,class:"flex h-full flex-col items-center justify-center gap-3 rounded-3xl border p-6 text-center shadow-xl border-pg-border bg-pg-surface-card text-pg-text-muted"},rb={class:"text-xl font-display text-pg-text-strong"},ob={class:"text-sm"},lb=$e({__name:"PlaygroundContent",props:{selected:{},selectedDisabled:{},selectedIgnored:{},selectedConfig:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},queryText:{},headersText:{},bodyText:{},responseText:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},routeMode:{},enabledMode:{},disabledMode:{},configImpactRoutes:{},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>n.routeMode==="active"&&n.enabledMode==="api"),l=H(()=>!!n.selectedConfig),i=H(()=>n.routeMode==="disabled"&&n.disabledMode==="api"),a=H(()=>n.routeMode==="ignored"),c=H(()=>n.selectedConfig?n.configStatusMap.get(n.selectedConfig.file)??"enabled":"enabled"),u=H(()=>n.routeMode==="disabled"?r("states.disabledTitle"):n.routeMode==="ignored"?r("states.ignoredTitle"):r("states.configTitle")),f=H(()=>n.routeMode==="disabled"?r("states.disabledHint"):n.routeMode==="ignored"?r("states.ignoredHint"):r("states.configHint")),p=H({get:()=>n.queryText,set:_=>s("update:queryText",_)}),g=H({get:()=>n.headersText,set:_=>s("update:headersText",_)}),S=H({get:()=>n.bodyText,set:_=>s("update:bodyText",_)}),I=H(()=>n.workspaceRoot??"");function T(_,C){s("update:param-value",_,C)}function b(){s("run")}return(_,C)=>o.value?($(),ht(fh,{key:0,queryText:p.value,"onUpdate:queryText":C[0]||(C[0]=v=>p.value=v),headersText:g.value,"onUpdate:headersText":C[1]||(C[1]=v=>g.value=v),bodyText:S.value,"onUpdate:bodyText":C[2]||(C[2]=v=>S.value=v),selected:n.selected,"request-url":n.requestUrl,"workspace-root":I.value,"response-text":n.responseText,"response-status":n.responseStatus,"response-time":n.responseTime,"is-sw-registering":n.isSwRegistering,"route-params":n.routeParams,"param-values":n.paramValues,"config-status-map":n.configStatusMap,"onUpdate:paramValue":T,onRun:b},null,8,["queryText","headersText","bodyText","selected","request-url","workspace-root","response-text","response-status","response-time","is-sw-registering","route-params","param-values","config-status-map"])):i.value&&n.selectedDisabled?($(),ht(Wl,{key:1,mode:"disabled",selected:n.selectedDisabled,"workspace-root":n.workspaceRoot,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):a.value&&n.selectedIgnored?($(),ht(Wl,{key:2,mode:"ignored",selected:n.selectedIgnored,"workspace-root":n.workspaceRoot,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):n.selectedConfig&&l.value?($(),ht(om,{key:3,selected:n.selectedConfig,impacted:n.configImpactRoutes,"is-disabled":c.value==="disabled","workspace-root":n.workspaceRoot},null,8,["selected","impacted","is-disabled","workspace-root"])):($(),F("div",sb,[x("p",rb,L(u.value),1),x("p",ob,L(f.value),1)]))}}),Wa="mokup.playground.theme";function ja(){try{const e=localStorage.getItem(Wa);if(e==="system"||e==="light"||e==="dark")return e}catch{}return null}function ib(e){try{localStorage.setItem(Wa,e)}catch{}}function ab(e){return e==="system"?"light":e==="light"?"dark":"system"}function Ha(e,t){return e==="dark"?"dark":e==="light"?"light":t?"dark":"light"}function $s(e,t){const n=Ha(e,t);return document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,n}function cb(){const e=ja()??"system",t=window.matchMedia("(prefers-color-scheme: dark)").matches;return $s(e,t),e}function ub(){const e=ee("system"),t=ee(!1);let n=null;const s=H(()=>Ha(e.value,t.value)),r=()=>{n&&(t.value=n.matches,e.value==="system"&&$s(e.value,t.value))};function o(i){e.value=i,ib(i),$s(i,t.value)}function l(){o(ab(e.value))}return In(()=>{n=window.matchMedia("(prefers-color-scheme: dark)"),t.value=n.matches,e.value=ja()??"system",$s(e.value,t.value),n.addEventListener("change",r)}),as(()=>{n?.removeEventListener("change",r),n=null}),{themeMode:e,effectiveTheme:s,setThemeMode:o,cycleThemeMode:l}}const db={header:{title:"Mock Playground",subtitle:"Inspect mock endpoints, craft requests, and validate responses without leaving the dev server.",refresh:"Refresh",routes:"{count} routes",calls:"{count} calls",languageToggle:"Language",themeToggle:"Theme"},controls:{more:"More"},theme:{system:"System",light:"Light",dark:"Dark"},filters:{search:"Search",base:"Base",searchPlaceholder:"Filter by method, path, or file"},disabled:{active:"Active ({count})",disabled:"Disabled ({count})",ignored:"Ignored ({count})",reason:{disabled:"Disabled","disabled-dir":"Disabled (dir)","ignore-prefix":"Ignore prefix",include:"Include filter",exclude:"Exclude filter",unknown:"Unknown"}},enabled:{api:"API ({count})",config:"Config ({count})",configLabel:"Config"},ignored:{reason:{unsupported:"Unsupported","invalid-route":"Not a route",unknown:"Unknown"}},tabs:{overview:"Overview"},tree:{file:"File",route:"Route"},states:{loadingRoutes:"Loading routes...",emptyRoutes:"No routes matched.",emptyDisabledRoutes:"No disabled routes matched.",emptyIgnoredRoutes:"No ignored files matched.",emptyDisabledConfigFiles:"No disabled config files matched.",emptyConfigFiles:"No config files matched.",disabledTitle:"Disabled routes",disabledHint:"Disabled routes are not executable.",ignoredTitle:"Ignored files",ignoredHint:"Ignored files are not mock routes.",configTitle:"Config files",configHint:"Config files are not mock routes."},detail:{selectTitle:"Select a route",selectHint:"Choose a route on the left to run a request.",requestLabel:"Request",responseLabel:"Response",run:"Run",params:"Params",emptyParams:"No params for this route.",query:"Query (JSON)",headers:"Headers (JSON)",body:"Body",bodyType:"Body type",bodyTypeJson:"JSON",bodyTypeText:"Text",bodyTypeForm:"Form",bodyTypeMultipart:"Multipart",bodyTypeBase64:"Base64",middlewares:"Middlewares",middlewarePre:"Pre",middlewareNormal:"Normal",middlewarePost:"Post",configChain:"Config chain",configChainEmpty:"No config files matched.",openInVscode:"Open in VSCode",queryPlaceholder:"{json}",headersPlaceholder:"{json}",bodyPlaceholderJson:"{json}",bodyPlaceholderText:"raw text",bodyPlaceholderForm:"{sample}",bodyPlaceholderMultipart:"{sample}",bodyPlaceholderBase64:"{sample}",paramPlaceholder:"value",paramPlaceholderCatchall:"path/segments"},response:{idle:"Idle",empty:"No response yet.",waiting:"Waiting for response...",loading:"Loading...",error:"Error",emptyPayload:"[empty response]"},errors:{queryJson:"Query JSON error: {message}",headersJson:"Headers JSON error: {message}",bodyJson:"Body JSON error: {message}",bodyBase64:"Body base64 error: {message}",routeParams:"Missing route params: {params}"},configPanel:{title:"Config scope",scope:"Scope",impacted:"Impacted routes",active:"Active",disabled:"Disabled",ignored:"Ignored",emptyImpacts:"No routes matched.",statusEnabled:"Enabled",statusDisabled:"Disabled"},decision:{"config.enabled":"Config enabled","ignore-prefix":"Ignore prefix","file.supported":"Supported file","filter.exclude":"Exclude filter","filter.include":"Include filter","route.derived":"Route derived","rule.enabled":"Rule enabled"},inactive:{titleDisabled:"Disabled route",titleIgnored:"Ignored file",decisionChain:"Decision chain",decisionChainEmpty:"No decision chain recorded.",effectiveConfig:"Effective config",effectiveConfigEmpty:"No config overrides.",routeSummary:"Route summary",pass:"Pass",fail:"Fail",summaryMethod:"Method",summaryPath:"Path",summaryFile:"File",config:{enabled:"Enabled",status:"Status",delay:"Delay",ignorePrefix:"Ignore prefix",include:"Include",exclude:"Exclude",headers:"Headers"}}},fb={header:{title:"接口调试台",subtitle:"查看 Mock 接口、构造请求并验证响应,无需离开开发服务器。",refresh:"刷新",routes:"{count} 条接口",calls:"已调用 {count} 次",languageToggle:"语言",themeToggle:"主题"},controls:{more:"更多"},theme:{system:"跟随系统",light:"亮色",dark:"暗色"},filters:{search:"搜索",base:"基路径",searchPlaceholder:"按方法、路径或文件过滤"},disabled:{active:"启用 ({count})",disabled:"禁用 ({count})",ignored:"忽略 ({count})",reason:{disabled:"已禁用","disabled-dir":"目录禁用","ignore-prefix":"前缀忽略",include:"未命中包含",exclude:"命中排除",unknown:"未知"}},enabled:{api:"接口 ({count})",config:"配置 ({count})",configLabel:"配置"},ignored:{reason:{unsupported:"不支持的文件","invalid-route":"非路由文件",unknown:"未知"}},tabs:{overview:"总览"},tree:{file:"文件",route:"路由"},states:{loadingRoutes:"正在加载接口...",emptyRoutes:"没有匹配的接口。",emptyDisabledRoutes:"没有匹配的禁用接口。",emptyIgnoredRoutes:"没有匹配的忽略文件。",emptyDisabledConfigFiles:"没有匹配的禁用配置文件。",emptyConfigFiles:"没有匹配的配置文件。",disabledTitle:"禁用接口",disabledHint:"禁用接口无法调试。",ignoredTitle:"忽略的文件",ignoredHint:"忽略列表中的文件不属于接口。",configTitle:"配置文件",configHint:"配置文件不属于接口。"},detail:{selectTitle:"请选择接口",selectHint:"从左侧选择一个接口开始调试。",requestLabel:"请求",responseLabel:"响应",run:"发送",params:"路径参数",emptyParams:"该接口没有路径参数。",query:"查询参数 (JSON)",headers:"请求头 (JSON)",body:"请求体",bodyType:"请求体类型",bodyTypeJson:"JSON",bodyTypeText:"文本",bodyTypeForm:"表单",bodyTypeMultipart:"多段表单",bodyTypeBase64:"Base64",middlewares:"中间件",middlewarePre:"前置",middlewareNormal:"普通",middlewarePost:"后置",configChain:"配置链路",configChainEmpty:"当前接口未匹配配置文件。",openInVscode:"在 VSCode 中打开",queryPlaceholder:"{json}",headersPlaceholder:"{json}",bodyPlaceholderJson:"{json}",bodyPlaceholderText:"原始文本",bodyPlaceholderForm:"{sample}",bodyPlaceholderMultipart:"{sample}",bodyPlaceholderBase64:"{sample}",paramPlaceholder:"填写值",paramPlaceholderCatchall:"路径片段"},response:{idle:"空闲",empty:"暂无响应。",waiting:"等待响应...",loading:"请求中...",error:"错误",emptyPayload:"[空响应]"},errors:{queryJson:"查询 JSON 错误:{message}",headersJson:"请求头 JSON 错误:{message}",bodyJson:"请求体 JSON 错误:{message}",bodyBase64:"请求体 Base64 错误:{message}",routeParams:"缺少路径参数:{params}"},configPanel:{title:"配置范围",scope:"影响范围",impacted:"影响接口",active:"生效",disabled:"禁用",ignored:"忽略",emptyImpacts:"没有匹配的接口。",statusEnabled:"启用",statusDisabled:"禁用"},decision:{"config.enabled":"配置启用","ignore-prefix":"忽略前缀","file.supported":"支持文件","filter.exclude":"排除过滤","filter.include":"包含过滤","route.derived":"路由解析","rule.enabled":"规则启用"},inactive:{titleDisabled:"禁用接口",titleIgnored:"忽略文件",decisionChain:"判定链路",decisionChainEmpty:"暂无判定链路。",effectiveConfig:"生效配置",effectiveConfigEmpty:"暂无配置覆盖。",routeSummary:"接口概览",pass:"通过",fail:"未通过",summaryMethod:"方法",summaryPath:"路径",summaryFile:"文件",config:{enabled:"启用",status:"状态码",delay:"延迟",ignorePrefix:"忽略前缀",include:"包含",exclude:"排除",headers:"响应头"}}},Ga="mokup.playground.locale",pb={"en-US":db,"zh-CN":fb};function gb(){try{const e=localStorage.getItem(Ga);if(e==="en-US"||e==="zh-CN")return e}catch{}return null}function mb(e){try{localStorage.setItem(Ga,e)}catch{}}const hb=dp({legacy:!1,locale:gb()??"en-US",fallbackLocale:"en-US",messages:pb}),bb={class:"flex flex-none flex-wrap items-center justify-between gap-2 rounded-2xl border px-3 py-2 text-[0.55rem] uppercase tracking-[0.25em] shadow-sm border-pg-border bg-pg-surface-card text-pg-text-soft"},_b={class:"flex flex-wrap items-center gap-2"},vb={class:"flex flex-wrap items-center gap-2"},yb=$e({__name:"PlaygroundHeader",props:{visibleCount:{},totalCount:{}},emits:["refresh"],setup(e,{emit:t}){const n=t,{locale:s,t:r}=Je(),{themeMode:o,effectiveTheme:l,cycleThemeMode:i}=ub(),a=H(()=>l.value==="dark"?"i-[carbon--moon]":"i-[carbon--sun]"),c=H(()=>r(`theme.${o.value}`)),u=H(()=>s.value==="zh-CN"?"中文":"EN");function f(){const g=s.value==="en-US"?"zh-CN":"en-US";s.value=g,mb(g)}function p(){n("refresh")}return(g,S)=>($(),F("div",bb,[x("div",_b,[z(Ve,{tone:"strong",size:"xs"},{default:re(()=>[S[0]||(S[0]=x("span",{class:"i-[carbon--map] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,L(R(r)("header.routes",{count:e.visibleCount})),1)]),_:1}),z(Ve,{tone:"strong",size:"xs"},{default:re(()=>[S[1]||(S[1]=x("span",{class:"i-[carbon--activity] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,L(R(r)("header.calls",{count:e.totalCount})),1)]),_:1})]),x("div",vb,[z(qe,{size:"xs",title:R(r)("header.languageToggle"),onClick:f},{default:re(()=>[S[2]||(S[2]=x("span",{class:"i-[carbon--language] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,L(u.value),1)]),_:1},8,["title"]),z(qe,{size:"xs",title:R(r)("header.themeToggle"),onClick:R(i)},{default:re(()=>[x("span",{class:Ge([a.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),x("span",null,L(c.value),1)]),_:1},8,["title","onClick"]),z(qe,{size:"xs",onClick:p},{default:re(()=>[S[3]||(S[3]=x("span",{class:"i-[carbon--rotate] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,L(R(r)("header.refresh")),1)]),_:1})])]))}}),xb={class:"flex flex-col gap-1","data-testid":"playground-tree"},wb=["title","onClick"],kb={class:"flex min-w-0 flex-1 flex-col gap-1"},Tb=["aria-label","onClick"],Cb=$e({__name:"RouteTree",props:{rows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["toggle","select"],setup(e,{emit:t}){const n=e,s=t,r=u=>`method-${u.toLowerCase()}`;function o(u){return Pn(u.file,n.workspaceRoot)}function l(u){cr(u.file,n.workspaceRoot)}function i(u){if(u.kind==="folder"){s("toggle",u.id);return}s("select",u)}function a(u){return n.getRouteCount?n.getRouteCount(u):0}function c(u){return`${u*12}px`}return(u,f)=>($(),F("div",xb,[($(!0),F(ve,null,Xe(e.rows,p=>($(),F("div",{key:p.id,class:Ge(["group flex items-center gap-2 rounded-lg border border-transparent px-2 py-1 text-left transition text-pg-text hover:bg-pg-hover",p.selected?"bg-pg-accent text-pg-on-accent border-pg-accent shadow-sm":""]),"data-testid":"playground-tree-row"},[x("button",{class:"flex min-w-0 flex-1 items-start gap-2 text-left",type:"button",title:p.title,onClick:g=>i(p)},[x("div",kb,[x("div",{class:"flex items-center gap-2",style:ls({paddingLeft:c(p.depth)})},[x("span",{class:Ge(["flex h-3.5 w-3.5 items-center justify-center",p.selected?"text-pg-on-accent-soft":"text-pg-text-muted"])},[p.kind==="folder"?($(),F("span",{key:0,class:Ge([p.expanded?"i-[carbon--chevron-down]":"i-[carbon--chevron-right]","h-3.5 w-3.5"]),"aria-hidden":"true"},null,2)):ge("",!0)],2),p.kind==="route"&&p.route?($(),F("span",{key:0,class:Ge(["rounded-full px-1.5 py-0.5 text-[0.5rem] uppercase tracking-[0.2em]",r(p.route.method)])},L(p.route.method),3)):ge("",!0),x("span",{class:Ge(["text-[0.78rem]",p.kind==="folder"?"font-semibold":"font-medium"])},L(p.label),3)],4)]),p.kind==="route"&&p.route&&a(p.route)>0?($(),ht(Ve,{key:0,tone:"chip",size:"xxs",caps:!1,class:"ml-auto"},{default:re(()=>[fe(L(a(p.route)),1)]),_:2},1024)):ge("",!0)],8,wb),p.kind==="route"&&p.route&&o(p.route)?($(),F("button",{key:0,class:Ge(["flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",p.selected?"text-pg-on-accent-soft":""]),type:"button","aria-label":`Open ${p.route.file} in VS Code`,onClick:g=>l(p.route)},[...f[0]||(f[0]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],10,Tb)):ge("",!0)],2))),128))]))}}),Sb={class:"flex-1 min-h-0 overflow-auto"},Eb={key:0,class:"rounded-2xl border px-4 py-3 text-sm border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"},Rb={key:1,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Ib={key:0,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Pb={key:1,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Mb={key:2,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Lb={key:3,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},$b={key:4,class:"flex flex-col gap-2"},Ob=["onClick"],Ab={class:"flex flex-wrap items-center justify-between gap-2"},Nb={class:"flex flex-col gap-1"},Fb={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},Db={key:0,class:"text-[0.75rem] text-pg-text-subtle"},Ub={class:"flex items-center gap-2"},Vb=["aria-label","title","onClick"],Wb={key:5,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},jb={key:6,class:"flex flex-col gap-2"},Hb=["onClick"],Gb={class:"flex flex-wrap items-center justify-between gap-2"},Bb={class:"flex flex-col gap-1"},Kb={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},zb={class:"flex items-center gap-2"},qb=["aria-label","title","onClick"],Yb={key:7,class:"flex flex-col gap-2"},Jb=["onClick"],Xb={class:"flex flex-wrap items-center justify-between gap-2"},Qb={class:"flex flex-col gap-1"},Zb={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},e_={class:"flex items-center gap-2"},t_=["aria-label","title","onClick"],n_={key:8,class:"flex flex-col gap-2"},s_=["onClick"],r_={class:"flex flex-wrap items-center justify-between gap-2"},o_={class:"flex flex-col gap-1"},l_={class:"text-[0.7rem] tracking-[0.18em] text-pg-text-muted"},i_={class:"flex items-center gap-2"},a_=["aria-label","title","onClick"],c_=$e({__name:"PlaygroundSidebarBody",props:{routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},error:{},loading:{type:Boolean},filtered:{},disabledFiltered:{},ignoredFiltered:{},configFiltered:{},disabledConfigFiltered:{},treeRows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>{const T={rows:n.treeRows};return n.workspaceRoot&&n.workspaceRoot.trim()&&(T.workspaceRoot=n.workspaceRoot),n.getRouteCount&&(T.getRouteCount=n.getRouteCount),T});function l(T){return r(`disabled.reason.${T??"unknown"}`)}function i(T){return r(`ignored.reason.${T??"unknown"}`)}function a(T){return T?T.toLowerCase():""}function c(T){return T.toLowerCase()}function u(T){return Pn(T,n.workspaceRoot)}function f(T){cr(T,n.workspaceRoot)}function p(T){T.route&&s("select-route",T.route)}function g(T){return n.selectedConfig?.file===T.file}function S(T){return n.selectedDisabled?.file===T.file&&n.selectedDisabled?.reason===T.reason&&n.selectedDisabled?.method===T.method&&n.selectedDisabled?.url===T.url}function I(T){return n.selectedIgnored?.file===T.file&&n.selectedIgnored?.reason===T.reason}return(T,b)=>($(),F("div",Sb,[n.error?($(),F("div",Eb,L(n.error),1)):n.loading?($(),F("div",Rb,L(R(r)("states.loadingRoutes")),1)):($(),F(ve,{key:2},[n.routeMode==="disabled"&&n.disabledMode==="api"&&!n.disabledFiltered.length?($(),F("div",Ib,L(R(r)("states.emptyDisabledRoutes")),1)):n.routeMode==="ignored"&&!n.ignoredFiltered.length?($(),F("div",Pb,L(R(r)("states.emptyIgnoredRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="api"&&!n.filtered.length?($(),F("div",Mb,L(R(r)("states.emptyRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="config"&&!n.configFiltered.length?($(),F("div",Lb,L(R(r)("states.emptyConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="api"?($(),F("div",$b,[($(!0),F(ve,null,Xe(n.disabledFiltered,_=>($(),F("button",{key:`${_.file}-${_.reason}-${_.method??""}-${_.url??""}`,class:Ge(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",S(_)?"border-pg-accent bg-pg-accent/10 text-pg-text":""]),type:"button",onClick:C=>s("select-disabled-route",_)},[x("div",Ab,[x("div",Nb,[x("span",Fb,L(_.method&&_.url?`${_.method} ${a(_.url)}`:a(_.url)||_.file),1),_.method&&_.url?($(),F("span",Db,L(_.file),1)):ge("",!0)]),x("div",Ub,[z(Ve,{tone:"strong",size:"sm",tracking:"tight"},{default:re(()=>[fe(L(l(_.reason)),1)]),_:2},1024),u(_.file)?($(),F("button",{key:0,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:R(r)("detail.openInVscode"),onClick:xs(C=>f(_.file),["stop"])},[...b[1]||(b[1]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Vb)):ge("",!0)])])],10,Ob))),128))])):n.routeMode==="disabled"&&n.disabledMode==="config"&&!n.disabledConfigFiltered.length?($(),F("div",Wb,L(R(r)("states.emptyDisabledConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="config"?($(),F("div",jb,[($(!0),F(ve,null,Xe(n.disabledConfigFiltered,_=>($(),F("button",{key:_.file,class:Ge(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",g(_)?"border-pg-accent bg-pg-accent/10 text-pg-text":""]),type:"button",onClick:C=>s("select-config",_)},[x("div",Gb,[x("div",Bb,[x("span",Kb,L(c(_.file)),1)]),x("div",zb,[z(Ve,{tone:"strong",size:"sm",tracking:"tight"},{default:re(()=>[fe(L(R(r)("enabled.configLabel")),1)]),_:1}),u(_.file)?($(),F("button",{key:0,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:R(r)("detail.openInVscode"),onClick:xs(C=>f(_.file),["stop"])},[...b[2]||(b[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,qb)):ge("",!0)])])],10,Hb))),128))])):n.routeMode==="ignored"?($(),F("div",Yb,[($(!0),F(ve,null,Xe(n.ignoredFiltered,_=>($(),F("button",{key:`${_.file}-${_.reason}`,class:Ge(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",I(_)?"border-pg-accent bg-pg-accent/10 text-pg-text":""]),type:"button",onClick:C=>s("select-ignored-route",_)},[x("div",Xb,[x("div",Qb,[x("span",Zb,L(_.file),1)]),x("div",e_,[z(Ve,{tone:"strong",size:"sm",tracking:"tight"},{default:re(()=>[fe(L(i(_.reason)),1)]),_:2},1024),u(_.file)?($(),F("button",{key:0,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:R(r)("detail.openInVscode"),onClick:xs(C=>f(_.file),["stop"])},[...b[3]||(b[3]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,t_)):ge("",!0)])])],10,Jb))),128))])):n.routeMode==="active"&&n.enabledMode==="config"?($(),F("div",n_,[($(!0),F(ve,null,Xe(n.configFiltered,_=>($(),F("button",{key:_.file,class:Ge(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",g(_)?"border-pg-accent bg-pg-accent/10 text-pg-text":""]),type:"button",onClick:C=>s("select-config",_)},[x("div",r_,[x("div",o_,[x("span",l_,L(c(_.file)),1)]),x("div",i_,[z(Ve,{tone:"strong",size:"sm",tracking:"tight"},{default:re(()=>[fe(L(R(r)("enabled.configLabel")),1)]),_:1}),u(_.file)?($(),F("button",{key:0,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:R(r)("detail.openInVscode"),onClick:xs(C=>f(_.file),["stop"])},[...b[4]||(b[4]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,a_)):ge("",!0)])])],10,s_))),128))])):($(),ht(Cb,mn({key:9},o.value,{onToggle:b[0]||(b[0]=_=>s("toggle",_)),onSelect:p}),null,16))],64))]))}}),u_=$e({__name:"PlaygroundFilters",props:{search:{},basePath:{},showBase:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){const n=e,s=t;function r(l){const i=l.target;s("update:search",i?.value??"")}const{t:o}=Je();return(l,i)=>($(),F("section",{class:Ge(["grid",n.compact?"gap-2":"gap-3"])},[z(dn,{label:R(o)("filters.search"),dense:n.compact},{default:re(()=>[z(os,{value:e.search,type:"search",dense:n.compact,placeholder:R(o)("filters.searchPlaceholder"),"data-testid":"playground-search",onInput:r},null,8,["value","dense","placeholder"])]),_:1},8,["label","dense"]),n.showBase?($(),ht(dn,{key:0,label:R(o)("filters.base"),dense:n.compact},{default:re(()=>[z(os,{value:e.basePath,readonly:"",dense:n.compact},null,8,["value","dense"])]),_:1},8,["label","dense"])):ge("",!0)],2))}}),d_={class:"flex flex-wrap items-center gap-2"},f_=$e({__name:"PlaygroundTabs",props:{groups:{},activeGroup:{}},emits:["select"],setup(e,{emit:t}){const n=t,{t:s}=Je();return(r,o)=>($(),F("section",d_,[z(qe,{size:"md",active:e.activeGroup==="all",onClick:o[0]||(o[0]=l=>n("select","all"))},{default:re(()=>[fe(L(R(s)("tabs.overview")),1)]),_:1},8,["active"]),($(!0),F(ve,null,Xe(e.groups,l=>($(),ht(qe,{key:l.key,size:"md",active:e.activeGroup===l.key,onClick:i=>n("select",l.key)},{default:re(()=>[fe(L(l.label),1)]),_:2},1032,["active","onClick"]))),128))]))}}),p_={class:"flex items-center gap-2"},g_=$e({__name:"TreeModeToggle",props:{treeMode:{}},emits:["update:treeMode"],setup(e,{emit:t}){const n=t;function s(o){n("update:treeMode",o)}const{t:r}=Je();return(o,l)=>($(),F("div",p_,[z(qe,{size:"sm",active:e.treeMode==="file",onClick:l[0]||(l[0]=i=>s("file"))},{default:re(()=>[l[2]||(l[2]=x("span",{class:"i-[carbon--document] h-4 w-4","aria-hidden":"true"},null,-1)),x("span",null,L(R(r)("tree.file")),1)]),_:1},8,["active"]),z(qe,{size:"sm",active:e.treeMode==="route",onClick:l[1]||(l[1]=i=>s("route"))},{default:re(()=>[l[3]||(l[3]=x("span",{class:"i-[carbon--link] h-4 w-4","aria-hidden":"true"},null,-1)),x("span",null,L(R(r)("tree.route")),1)]),_:1},8,["active"])]))}}),m_={class:"relative"},h_={class:"flex items-end gap-2"},b_={class:"mt-2 flex flex-wrap items-center gap-2"},__={key:0,class:"mt-2 flex flex-wrap items-center gap-2"},v_={key:1,class:"mt-2 flex flex-wrap items-center gap-2"},y_={class:"grid gap-3"},x_=$e({__name:"PlaygroundSidebarHeader",props:{search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{}},emits:["update:search","select-group","set-route-mode","set-enabled-mode","set-disabled-mode","update:treeMode"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H({get:()=>n.search,set:p=>s("update:search",p)}),l=H(()=>n.basePath||"/"),i=ee(!1),a=ee(null),c=ee(null);function u(){i.value=!i.value}function f(p){if(!i.value)return;const g=p.target;if(!g)return;const S=a.value?.$el;c.value?.contains(g)||S?.contains(g)||(i.value=!1)}return In(()=>{document.addEventListener("pointerdown",f)}),as(()=>{document.removeEventListener("pointerdown",f)}),(p,g)=>($(),F("div",m_,[x("div",h_,[z(u_,{search:o.value,"onUpdate:search":g[0]||(g[0]=S=>o.value=S),"base-path":l.value,"show-base":!1,compact:!0,class:"flex-1"},null,8,["search","base-path"]),z(qe,{ref_key:"moreButtonRef",ref:a,size:"sm",class:"h-9","aria-expanded":i.value,"aria-haspopup":"true","aria-controls":"playground-more-panel",onClick:u},{default:re(()=>[g[10]||(g[10]=x("span",{class:"i-[carbon--settings-adjust] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,L(R(r)("controls.more")),1)]),_:1},8,["aria-expanded"])]),x("div",b_,[z(qe,{size:"md",active:n.routeMode==="active",onClick:g[1]||(g[1]=S=>s("set-route-mode","active"))},{default:re(()=>[fe(L(R(r)("disabled.active",{count:n.activeTotal})),1)]),_:1},8,["active"]),z(qe,{size:"md",active:n.routeMode==="disabled",onClick:g[2]||(g[2]=S=>s("set-route-mode","disabled"))},{default:re(()=>[fe(L(R(r)("disabled.disabled",{count:n.disabledTotal})),1)]),_:1},8,["active"]),z(qe,{size:"md",active:n.routeMode==="ignored",onClick:g[3]||(g[3]=S=>s("set-route-mode","ignored"))},{default:re(()=>[fe(L(R(r)("disabled.ignored",{count:n.ignoredTotal})),1)]),_:1},8,["active"])]),n.routeMode==="active"?($(),F("div",__,[z(qe,{size:"sm",active:n.enabledMode==="api",onClick:g[4]||(g[4]=S=>s("set-enabled-mode","api"))},{default:re(()=>[fe(L(R(r)("enabled.api",{count:n.apiTotal})),1)]),_:1},8,["active"]),z(qe,{size:"sm",active:n.enabledMode==="config",onClick:g[5]||(g[5]=S=>s("set-enabled-mode","config"))},{default:re(()=>[fe(L(R(r)("enabled.config",{count:n.configTotal})),1)]),_:1},8,["active"])])):n.routeMode==="disabled"?($(),F("div",v_,[z(qe,{size:"sm",active:n.disabledMode==="api",onClick:g[6]||(g[6]=S=>s("set-disabled-mode","api"))},{default:re(()=>[fe(L(R(r)("enabled.api",{count:n.disabledApiTotal})),1)]),_:1},8,["active"]),z(qe,{size:"sm",active:n.disabledMode==="config",onClick:g[7]||(g[7]=S=>s("set-disabled-mode","config"))},{default:re(()=>[fe(L(R(r)("enabled.config",{count:n.disabledConfigTotal})),1)]),_:1},8,["active"])])):ge("",!0),i.value?($(),F("div",{key:2,id:"playground-more-panel",ref_key:"morePanelRef",ref:c,class:"absolute left-0 right-0 z-30 mt-2 rounded-2xl border p-3 shadow-xl border-pg-border bg-pg-surface-panel"},[x("div",y_,[z(dn,{label:R(r)("filters.base"),dense:""},{default:re(()=>[z(os,{value:l.value,readonly:"",dense:""},null,8,["value"])]),_:1},8,["label"]),z(f_,{groups:n.groups,"active-group":n.activeGroup,onSelect:g[8]||(g[8]=S=>s("select-group",S))},null,8,["groups","active-group"]),z(g_,{"tree-mode":n.treeMode,"onUpdate:treeMode":g[9]||(g[9]=S=>s("update:treeMode",S))},null,8,["tree-mode"])])],512)):ge("",!0)]))}}),w_={class:"flex min-h-0 w-full max-w-none flex-col gap-3 overflow-hidden border-b p-3 border-pg-border lg:w-[var(--left-width)] lg:min-w-[240px] lg:max-w-[560px] lg:flex-none lg:border-b-0 lg:border-r"},k_=$e({__name:"PlaygroundSidebar",props:{search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{},error:{},loading:{type:Boolean},filtered:{},disabledFiltered:{},ignoredFiltered:{},configFiltered:{},disabledConfigFiltered:{},treeRows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["update:search","select-group","set-route-mode","set-enabled-mode","set-disabled-mode","update:treeMode","toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t;return(r,o)=>($(),F("aside",w_,[z(x_,{search:n.search,"base-path":n.basePath,groups:n.groups,"active-group":n.activeGroup,"tree-mode":n.treeMode,"route-mode":n.routeMode,"enabled-mode":n.enabledMode,"disabled-mode":n.disabledMode,"active-total":n.activeTotal,"api-total":n.apiTotal,"disabled-total":n.disabledTotal,"ignored-total":n.ignoredTotal,"config-total":n.configTotal,"disabled-api-total":n.disabledApiTotal,"disabled-config-total":n.disabledConfigTotal,"onUpdate:search":o[0]||(o[0]=l=>s("update:search",l)),onSelectGroup:o[1]||(o[1]=l=>s("select-group",l)),onSetRouteMode:o[2]||(o[2]=l=>s("set-route-mode",l)),onSetEnabledMode:o[3]||(o[3]=l=>s("set-enabled-mode",l)),onSetDisabledMode:o[4]||(o[4]=l=>s("set-disabled-mode",l)),"onUpdate:treeMode":o[5]||(o[5]=l=>s("update:treeMode",l))},null,8,["search","base-path","groups","active-group","tree-mode","route-mode","enabled-mode","disabled-mode","active-total","api-total","disabled-total","ignored-total","config-total","disabled-api-total","disabled-config-total"]),z(c_,{"route-mode":n.routeMode,"enabled-mode":n.enabledMode,"disabled-mode":n.disabledMode,"selected-config":n.selectedConfig,"selected-disabled":n.selectedDisabled,"selected-ignored":n.selectedIgnored,error:n.error,loading:n.loading,filtered:n.filtered,"disabled-filtered":n.disabledFiltered,"ignored-filtered":n.ignoredFiltered,"config-filtered":n.configFiltered,"disabled-config-filtered":n.disabledConfigFiltered,"tree-rows":n.treeRows,"workspace-root":n.workspaceRoot,"get-route-count":n.getRouteCount,onToggle:o[6]||(o[6]=l=>s("toggle",l)),onSelectRoute:o[7]||(o[7]=l=>s("select-route",l)),onSelectDisabledRoute:o[8]||(o[8]=l=>s("select-disabled-route",l)),onSelectIgnoredRoute:o[9]||(o[9]=l=>s("select-ignored-route",l)),onSelectConfig:o[10]||(o[10]=l=>s("select-config",l))},null,8,["route-mode","enabled-mode","disabled-mode","selected-config","selected-disabled","selected-ignored","error","loading","filtered","disabled-filtered","ignored-filtered","config-filtered","disabled-config-filtered","tree-rows","workspace-root","get-route-count"])]))}});function T_(e){const t=H(()=>e.routeMode.value==="disabled"),n=H(()=>e.routeMode.value==="ignored"),s=H(()=>e.routes.value.length+e.configCount.value),r=H(()=>e.routes.value.length),o=H(()=>e.disabledCount.value+e.disabledConfigCount.value),l=H(()=>e.ignoredCount.value),i=H(()=>e.configCount.value),a=H(()=>e.disabledConfigCount.value),c=H(()=>e.disabledCount.value),u=H(()=>t.value?e.disabledMode.value==="config"?e.disabledConfigFiltered.value.length:e.disabledFiltered.value.length:n.value?e.ignoredFiltered.value.length:e.enabledMode.value==="config"?e.configFiltered.value.length:e.routeCount.value);return{activeTotal:s,apiTotal:r,disabledTotal:o,ignoredTotal:l,configTotal:i,disabledConfigTotal:a,disabledApiTotal:c,visibleCount:u}}function C_(e){function t(a){if(e.routeMode.value=a,a!=="active"){e.selectRoute(null),e.selectConfig(null),a==="disabled"&&e.disabledMode.value==="api"&&(e.selectDisabledRoute(e.disabledFiltered.value[0]??null),e.selectIgnoredRoute(null)),a==="ignored"&&(e.selectIgnoredRoute(e.ignoredFiltered.value[0]??null),e.selectDisabledRoute(null));return}e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.enabledMode.value==="api"&&!e.selected.value&&e.selectRoute(e.filtered.value[0]??null),e.enabledMode.value!=="config"&&e.selectConfig(null)}function n(a){if(e.enabledMode.value=a,a==="config"){e.selectRoute(null);return}e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selected.value||e.selectRoute(e.filtered.value[0]??null)}function s(a){if(e.disabledMode.value=a,a==="config"){e.selectDisabledRoute(null);return}e.selectConfig(null),e.selectedDisabled.value||e.selectDisabledRoute(e.disabledFiltered.value[0]??null)}function r(a){e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectRoute(a)}function o(a){e.selectRoute(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectConfig(a)}function l(a){e.selectRoute(null),e.selectConfig(null),e.selectIgnoredRoute(null),e.selectDisabledRoute(a)}function i(a){e.selectRoute(null),e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(a)}return{setRouteMode:t,setEnabledMode:n,setDisabledMode:s,handleSelectRoute:r,handleSelectConfig:o,handleSelectDisabled:l,handleSelectIgnored:i}}new Set(".\\+*[^]$()");const Rr=/^[\w-]+$/,S_=/^\[([^\]/]+)\]$/,E_=/^\[\.\.\.([^\]/]+)\]$/,R_=/^\[\[\.\.\.([^\]/]+)\]\]$/,I_=/^\([^)]+\)$/;function P_(e){switch(e.type){case"static":return 4;case"param":return 3;case"catchall":return 2;case"optional-catchall":return 1;default:return 0}}function M_(e){return e.map(P_)}function Ba(e){const n=(e.split("?")[0]??"").split("#")[0]??"";let s=n.startsWith("/")?n:`/${n}`;return s.length>1&&s.endsWith("/")&&(s=s.slice(0,-1)),s}function L_(e){return Ba(e).split("/").filter(Boolean)}function Zr(e){const t=[],n=[],s=Ba(e),r=L_(s),o=[],l=new Set;for(let i=0;i<r.length;i+=1){const a=r[i];if(!a)continue;if(I_.test(a)){t.push(`Route groups are not supported: ${a}`);continue}const c=a.match(R_);if(c){const p=c[1];if(!p){t.push(`Invalid optional catch-all param name "${a}"`);continue}if(!Rr.test(p)){t.push(`Invalid optional catch-all param name "${p}"`);continue}if(i!==r.length-1){t.push(`Optional catch-all "${a}" must be the last segment`);continue}l.has(p)&&n.push(`Duplicate param name "${p}"`),l.add(p),o.push({type:"optional-catchall",name:p});continue}const u=a.match(E_);if(u){const p=u[1];if(!p){t.push(`Invalid catch-all param name "${a}"`);continue}if(!Rr.test(p)){t.push(`Invalid catch-all param name "${p}"`);continue}if(i!==r.length-1){t.push(`Catch-all "${a}" must be the last segment`);continue}l.has(p)&&n.push(`Duplicate param name "${p}"`),l.add(p),o.push({type:"catchall",name:p});continue}const f=a.match(S_);if(f){const p=f[1];if(!p){t.push(`Invalid param name "${a}"`);continue}if(!Rr.test(p)){t.push(`Invalid param name "${p}"`);continue}l.has(p)&&n.push(`Duplicate param name "${p}"`),l.add(p),o.push({type:"param",name:p});continue}if(a.includes("[")||a.includes("]")||a.includes("(")||a.includes(")")){t.push(`Invalid route segment "${a}"`);continue}o.push({type:"static",value:a})}return{template:s,tokens:o,score:M_(o),errors:t,warnings:n}}function Os(e){const t=e.trim();if(!t)return{value:void 0};try{return{value:JSON.parse(t)}}catch(n){return{error:n instanceof Error?n.message:"Invalid JSON"}}}function $_(e,t){for(const[n,s]of Object.entries(t))typeof s>"u"||(Array.isArray(s)?s.forEach(r=>e.searchParams.append(n,String(r))):e.searchParams.set(n,String(s)))}function eo(e,t){return e==="catchall"?`[...${t}]`:e==="optional-catchall"?`[[...${t}]]`:`[${t}]`}function O_(e){const t=[],n=new Set;for(const s of e){if(s.type==="static"||n.has(s.name))continue;n.add(s.name);const r=s.type;t.push({id:`${r}:${s.name}`,name:s.name,kind:r,token:eo(r,s.name),required:r!=="optional-catchall"})}return t}function Ka(e){const t=e.trim().replace(/^\/+|\/+$/g,"");return t?t.split("/").filter(Boolean):[]}function A_(e,t){const n=[],s=new Set;for(const o of e){if(o.type==="static"){n.push(o.value);continue}const l=t[o.name]?.trim()??"";if(!l){o.type!=="optional-catchall"&&s.add(o.name);continue}if(o.type==="param"){n.push(encodeURIComponent(l));continue}const i=Ka(l).map(encodeURIComponent);if(i.length===0){o.type!=="optional-catchall"&&s.add(o.name);continue}n.push(...i)}return{path:n.length>0?`/${n.join("/")}`:"/",missing:[...s]}}function N_(e,t){const n=[];for(const s of e){if(s.type==="static"){n.push(s.value);continue}const r=t[s.name]?.trim()??"";if(!r){s.type!=="optional-catchall"&&n.push(eo(s.type,s.name));continue}if(s.type==="param"){n.push(encodeURIComponent(r));continue}const o=Ka(r).map(encodeURIComponent);if(o.length===0){s.type!=="optional-catchall"&&n.push(eo(s.type,s.name));continue}n.push(...o)}return n.length>0?`/${n.join("/")}`:"/"}function F_(e){const t=new URLSearchParams;for(const[s,r]of Object.entries(e))typeof r>"u"||(Array.isArray(r)?r.forEach(o=>t.append(s,String(o))):t.set(s,String(r)));const n=t.toString();return n?`?${n}`:""}function jl(e){const t=e.trim();if(!t)return[];const n=t.split(/[&\n]/),s=[];for(const r of n){const o=r.trim();if(!o)continue;const[l,...i]=o.split("="),a=(l??"").trim();if(!a)continue;const c=i.join("=").trim();s.push([a,c])}return s}function D_(e){const t=e.trim();if(!t)return{value:void 0};const s=(t.startsWith("data:")?t.split("base64,").pop()??"":t).replace(/\s+/g,"");try{const r=atob(s),o=new Uint8Array(r.length);for(let l=0;l<r.length;l+=1)o[l]=r.charCodeAt(l);return{value:o}}catch(r){return{error:r instanceof Error?r.message:"Invalid base64"}}}function U_(e){return{resetResponse:()=>{e.responseText.value=e.t("response.empty"),e.responseStatus.value=e.t("response.idle"),e.responseTime.value=""},runRequest:async()=>{if(!e.selected.value)return;const s=e.routeTokens.value.length>0?e.routeTokens.value:Zr(e.selected.value.url).tokens,r=A_(s,e.paramValues.value);if(r.missing.length>0){e.responseText.value=e.t("errors.routeParams",{params:r.missing.join(", ")});return}const o=e.getRouteKey(e.selected.value),l=Os(e.queryText.value);if(l.error){e.responseText.value=e.t("errors.queryJson",{message:l.error});return}const i=Os(e.headersText.value);if(i.error){e.responseText.value=e.t("errors.headersJson",{message:i.error});return}const a=new URL(r.path,window.location.origin);l.value&&$_(a,l.value);const c={};if(i.value)for(const[g,S]of Object.entries(i.value))typeof S>"u"||(c[g]=Array.isArray(S)?S.join(","):String(S));const u={method:e.selected.value.method,headers:c},f=e.selected.value.method.toUpperCase();if(f!=="GET"&&f!=="HEAD"){const g=e.bodyText.value;if(e.bodyType.value==="json"){const S=Os(g);if(S.error){e.responseText.value=e.t("errors.bodyJson",{message:S.error});return}S.value&&(u.body=JSON.stringify(S.value),c["Content-Type"]||(c["Content-Type"]="application/json"))}else if(e.bodyType.value==="text")g.trim()&&(u.body=g,c["Content-Type"]||(c["Content-Type"]="text/plain; charset=utf-8"));else if(e.bodyType.value==="form"){const S=jl(g);if(S.length>0){const I=new URLSearchParams;for(const[T,b]of S)I.append(T,b);u.body=I.toString(),c["Content-Type"]||(c["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8")}}else if(e.bodyType.value==="multipart"){const S=jl(g);if(S.length>0){const I=new FormData;for(const[T,b]of S)I.append(T,b);u.body=I}}else if(e.bodyType.value==="base64"){const S=D_(g);if(S.error){e.responseText.value=e.t("errors.bodyBase64",{message:S.error});return}S.value&&(u.body=S.value,c["Content-Type"]||(c["Content-Type"]="application/octet-stream"))}}e.responseStatus.value=e.t("response.loading"),e.responseTime.value="",e.responseText.value=e.t("response.waiting"),await e.ensureSwReady();const p=performance.now();try{const g=await fetch(a.toString(),u);e.isServerCounts.value||(e.routeCounts.value[o]=(e.routeCounts.value[o]??0)+1);const S=Math.round(performance.now()-p);e.responseTime.value=`${S}ms`,e.responseStatus.value=`${g.status} ${g.statusText}`;const I=g.headers.get("content-type")??"",T=await g.text();if(I.includes("application/json"))try{e.responseText.value=JSON.stringify(JSON.parse(T),null,2)}catch{e.responseText.value=T}else e.responseText.value=T||e.t("response.emptyPayload")}catch(g){e.responseStatus.value=e.t("response.error"),e.responseText.value=g instanceof Error?g.message:String(g)}}}}function za(e){try{return new URL(e).pathname.includes("mokup-sw")}catch{return e.includes("mokup-sw")}}function Hl(e){return[e.active?.scriptURL,e.waiting?.scriptURL,e.installing?.scriptURL].filter(n=>typeof n=="string").some(n=>za(n))}function V_(e){return!!e&&za(e.scriptURL)}async function W_(){if(typeof window>"u"||!("serviceWorker"in navigator))return null;try{const e=await navigator.serviceWorker.getRegistration();if(e&&Hl(e))return e}catch{}try{return(await navigator.serviceWorker.getRegistrations()).find(Hl)??null}catch{return null}}function j_(e){const t=e.trim();if(!t)return"";const n=t.startsWith("/")?t:`/${t}`,s=n.endsWith("/")?n.slice(0,-1):n,r=new URL(`${s}/ws`,window.location.origin);return r.protocol=r.protocol==="https:"?"wss:":"ws:",r.toString()}function H_(e){try{const t=JSON.parse(e);if(t.type==="snapshot"&&t.perRoute||t.type==="increment"&&typeof t.routeKey=="string")return t}catch{return null}return null}let Is=null;function G_(e,t={}){const{t:n}=Je(),s=ee(""),r=ee(""),o=ee(""),l=ee("json"),i=ee(n("response.empty")),a=ee(n("response.idle")),c=ee(""),u=ee(!1),f=ee(!1),p=H(()=>u.value&&!f.value),g=ee({}),S=H(()=>Object.values(g.value).reduce((B,K)=>B+K,0)),I=ee(!1),T=ee(null),b=ee(""),_=ee([]),C=ee([]),v=ee({}),O=H(()=>{if(!e.value)return"";const B=_.value.length>0?_.value:Zr(e.value.url).tokens,K=N_(B,v.value),A=Os(s.value);return A.error||!A.value?K:`${K}${F_(A.value)}`});function j(B){return`${B.method} ${B.url}`}function V(B){return g.value[j(B)]??0}function G(B){if(typeof B.data!="string")return;const K=H_(B.data);if(K){if(K.type==="snapshot"){g.value={...K.perRoute};return}g.value[K.routeKey]=(g.value[K.routeKey]??0)+1}}function te(){T.value&&(T.value.close(),T.value=null),b.value="",I.value=!1}function ye(B){if(typeof window>"u")return;const K=j_(B);if(!(!K||b.value===K)){te(),b.value=K;try{const A=new WebSocket(K);T.value=A,A.addEventListener("open",()=>{I.value=!0}),A.addEventListener("message",G),A.addEventListener("close",()=>{T.value===A&&te()}),A.addEventListener("error",()=>{T.value===A&&te()})}catch{te()}}}function xe(B,K){v.value={...v.value,[B]:K}}function ce(B){if(!B){_.value=[],C.value=[],v.value={};return}const K=Zr(B.url);_.value=K.tokens;const A=O_(K.tokens),ne={};for(const _e of A)ne[_e.name]=v.value[_e.name]??"";C.value=A,v.value=ne}async function Ne(){if(f.value)return!0;if(typeof window>"u"||!("serviceWorker"in navigator))return!1;const B=navigator.serviceWorker.controller;if(V_(B))return u.value=!0,f.value=!0,!0;if(!u.value){if(!await W_())return!1;u.value=!0}return Is||(Is=navigator.serviceWorker.ready.then(()=>{f.value=!0}).catch(()=>{Is=null})),await Is,f.value}typeof window<"u"&&"serviceWorker"in navigator&&Ne().catch(()=>{}),t.basePath&&Tt(t.basePath,B=>{B&&ye(B)},{immediate:!0}),rr()&&as(()=>{te()});const{resetResponse:oe,runRequest:le}=U_({t:n,selected:e,routeTokens:_,paramValues:v,queryText:s,headersText:r,bodyText:o,bodyType:l,responseText:i,responseStatus:a,responseTime:c,routeCounts:g,isServerCounts:I,ensureSwReady:Ne,getRouteKey:j});return Tt(e,()=>{oe(),ce(e.value)}),{queryText:s,headersText:r,bodyText:o,bodyType:l,responseText:i,responseStatus:a,responseTime:c,resetResponse:oe,runRequest:le,isSwRegistering:p,routeParams:C,paramValues:v,setParamValue:xe,requestUrl:O,routeCounts:g,totalCount:S,getRouteCount:V}}function Gl(e){const{selectedFile:t,routes:n,disabledRoutes:s,ignoredRoutes:r}=e;if(!t)return[];const o=i=>!!i?.includes(t),l=[];for(const i of n)if(o(i.configChain)){const a={kind:"active",file:i.file};i.method&&(a.method=i.method),i.url&&(a.url=i.url),l.push(a)}for(const i of s)if(o(i.configChain)){const a={kind:"disabled",file:i.file};i.method&&(a.method=i.method),i.url&&(a.url=i.url),l.push(a)}for(const i of r)o(i.configChain)&&l.push({kind:"ignored",file:i.file});return l}function B_(){const e=ee([]),t=ee([]),n=ee([]),s=ee([]),r=ee([]),o=ee([]),l=ee([]),i=ee([]),a=ee(null),c=ee(null),u=ee(null),f=ee(null),p=ee([]),g=ee("all"),S=ee(!1),I=ee(""),T=ee(""),b=ee(""),_=ee(""),C=H(()=>T.value.trim().toLowerCase()),v=H(()=>o.value.length),O=H(()=>t.value.length),j=H(()=>n.value.length),V=H(()=>s.value.length),G=H(()=>r.value.length),te=H(()=>{const Y=new Map;for(const pe of s.value)Y.set(pe.file,"enabled");for(const pe of r.value)Y.set(pe.file,"disabled");return Y}),ye=H(()=>`${b.value||""}/routes`),xe=Y=>`${Y.method} ${Y.url}`,ce=Y=>`${Y.file}|${Y.reason}|${Y.method??""}|${Y.url??""}`,Ne=Y=>`${Y.file}|${Y.reason}`;function oe(){return g.value==="all"?e.value:e.value.filter(Y=>Y.groupKey===g.value)}function le(){const Y=C.value,pe=oe();o.value=Y?pe.filter(h=>`${h.method} ${h.url} ${h.file}`.toLowerCase().includes(Y)):[...pe]}function B(){return g.value==="all"?s.value:s.value.filter(Y=>Y.groupKey===g.value)}function K(){const Y=C.value,pe=B();l.value=Y?pe.filter(h=>h.file.toLowerCase().includes(Y)):[...pe]}function A(){return g.value==="all"?r.value:r.value.filter(Y=>Y.groupKey===g.value)}function ne(){const Y=C.value,pe=A();i.value=Y?pe.filter(h=>h.file.toLowerCase().includes(Y)):[...pe]}const _e=H(()=>{const Y=C.value;return Y?t.value.filter(pe=>`${pe.method??""} ${pe.url??""} ${pe.file} ${pe.reason}`.toLowerCase().includes(Y)):[...t.value]}),Se=H(()=>{const Y=C.value;return Y?n.value.filter(pe=>`${pe.file} ${pe.reason}`.toLowerCase().includes(Y)):[...n.value]});function be(Y){g.value=Y,le(),K(),ne(),!(a.value&&o.value.some(h=>xe(h)===xe(a.value)))&&(a.value=o.value[0]??null)}function he(Y){a.value=Y}function Ee(Y){c.value=Y}function De(Y){u.value=Y}function je(Y){f.value=Y}function ke(Y){b.value=wp(Y)}async function st(){S.value=!0,I.value="";const Y=a.value?xe(a.value):"",pe=c.value?ce(c.value):"",h=u.value?Ne(u.value):"",y=g.value,P=f.value?.file??"";try{const D=await fetch(ye.value);if(!D.ok)throw new Error(`Failed to load routes: ${D.status}`);const N=await D.json();if(e.value=N.routes??[],t.value=N.disabled??[],n.value=N.ignored??[],s.value=N.configs??[],r.value=N.disabledConfigs??[],p.value=N.groups??[],_.value=N.root??"",y!=="all"&&(p.value.some(d=>d.key===y)||(g.value="all")),le(),K(),ne(),Y){const U=o.value.find(d=>xe(d)===Y);a.value=U??o.value[0]??null}else a.value=o.value[0]??null;if(pe){const U=t.value.find(d=>ce(d)===pe);c.value=U??t.value[0]??null}else c.value=t.value[0]??null;if(h){const U=n.value.find(d=>Ne(d)===h);u.value=U??n.value[0]??null}else u.value=n.value[0]??null;if(P){const U=s.value.find(d=>d.file===P)??r.value.find(d=>d.file===P)??null;f.value=U}}catch(D){I.value=D instanceof Error?D.message:String(D)}finally{S.value=!1}}Tt(T,()=>{le(),K(),ne()});const rt=H(()=>{const Y=f.value?.file,pe={routes:e.value,disabledRoutes:t.value,ignoredRoutes:n.value};return Gl(Y?{...pe,selectedFile:Y}:pe)});return{routes:e,disabledRoutes:t,ignoredRoutes:n,configFiles:s,disabledConfigFiles:r,disabledFiltered:_e,ignoredFiltered:Se,configFiltered:l,disabledConfigFiltered:i,filtered:o,selected:a,selectedConfig:f,selectedDisabled:c,selectedIgnored:u,groups:p,activeGroup:g,loading:S,error:I,search:T,basePath:b,workspaceRoot:_,searchTerm:C,routeCount:v,disabledCount:O,ignoredCount:j,configCount:V,disabledConfigCount:G,configStatusMap:te,routeKey:xe,loadRoutes:st,setActiveGroup:be,selectRoute:he,selectDisabledRoute:Ee,selectIgnoredRoute:De,selectConfig:je,setBasePath:ke,configImpactRoutes:rt}}function K_(e,t){if(t==="file")return Bs(e.file).split("/").filter(Boolean);const n=Bs(e.url),s=n.startsWith("/")?n.slice(1):n;return s?s.split("/").filter(Boolean):[]}function qa(e,t){const n={id:`${t}:root`,label:"",kind:"folder",path:"",children:[]};for(const s of e){const r=K_(s,t);if(r.length===0){const i=`${t}:route:${s.method} ${s.url}|${s.file}`;n.children.push({id:i,label:"/",kind:"route",path:"/",route:s,children:[]});continue}let o=n;const l=r.length;for(let i=0;i<l;i+=1){const a=r[i];if(i===l-1){const p=`${t}:route:${s.method} ${s.url}|${s.file}`;o.children.push({id:p,label:a,kind:"route",path:r.join("/"),route:s,children:[]});continue}o.map||(o.map=new Map);const u=r.slice(0,i+1).join("/");let f=o.map.get(u);f||(f={id:`${t}:folder:${u}`,label:a,kind:"folder",path:u,children:[]},o.map.set(u,f),o.children.push(f)),o=f}}return n}function Io(e){e.children.sort((t,n)=>{if(t.kind!==n.kind)return t.kind==="folder"?-1:1;const s=t.label.localeCompare(n.label);return s!==0?s:t.route&&n.route?t.route.method.localeCompare(n.route.method):0});for(const t of e.children)t.kind==="folder"&&Io(t)}function Ya(e,t){for(const n of e.children)n.kind==="folder"&&(t.push(n.id),Ya(n,t))}function z_(e,t){const n=qa(e,t);Io(n);const s=[];return Ya(n,s),s}function Ja(e,t,n,s,r,o,l){for(const i of e.children){const a=i.kind==="folder"?i.path:n==="file"?i.route?.file:i.route?.url,c=i.kind==="folder"?r(i.id):void 0;s.push({id:i.id,label:i.label,kind:i.kind,depth:t,title:a,expanded:c,selected:i.route?l(i.route)===o:!1,route:i.route}),i.kind==="folder"&&c&&Ja(i,t+1,n,s,r,o,l)}}function q_(e){const t=[];return Ja(e.root,0,e.mode,t,e.isExpanded,e.selectedKey,e.getRouteKey),t}function Y_(e){const t=ee("file"),n=ee(new Set),s=ee(new Set),r=ee(!1),o=ee(!1);function l(){return"mokup.playground.treeMode"}function i(C){return`mokup.playground.treeExpanded.${C}`}function a(C){try{const v=localStorage.getItem(i(C));if(!v)return{set:new Set,hasValue:!1};const O=JSON.parse(v);return Array.isArray(O)?{set:new Set(O.filter(j=>typeof j=="string")),hasValue:!0}:{set:new Set,hasValue:!1}}catch{return{set:new Set,hasValue:!1}}}function c(C,v){try{localStorage.setItem(i(C),JSON.stringify([...v]))}catch{}}function u(C){try{localStorage.setItem(l(),C)}catch{}}function f(){return t.value==="file"?n.value:s.value}function p(C,v){C==="file"?n.value=v:s.value=v}function g(C){return C==="file"?r.value:o.value}function S(C,v){C==="file"?r.value=v:o.value=v}function I(C){return e.searchTerm.value||!g(t.value)?!0:f().has(C)}function T(C){const v=t.value;if(!g(v)){const j=new Set(z_(e.routes.value,v));p(v,j),S(v,!0)}const O=new Set(f());O.has(C)?O.delete(C):O.add(C),p(v,O),S(v,!0),c(v,O)}function b(C){t.value=C,u(C)}const _=H(()=>{const C=t.value,v=qa(e.routes.value,C);return Io(v),q_({root:v,mode:C,isExpanded:I,selectedKey:e.selectedKey.value,getRouteKey:e.getRouteKey})});return In(()=>{try{const C=localStorage.getItem(l());(C==="file"||C==="route")&&(t.value=C);const v=a("file");n.value=v.set,r.value=v.hasValue;const O=a("route");s.value=O.set,o.value=O.hasValue}catch{}}),{treeMode:t,treeRows:_,toggleExpanded:T,setTreeMode:b}}function J_(e){const t=ee(e.defaultWidth),n=ee(!1);let s=0,r=0;const o=H(()=>({"--left-width":`${t.value}px`}));function l(f){return Math.min(e.maxWidth,Math.max(e.minWidth,f))}function i(f){if(!n.value)return;const p=f.clientX-s;t.value=l(r+p)}function a(){n.value&&(n.value=!1,window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",a),localStorage.setItem(e.storageKey,String(t.value)))}function c(f){f.button===0&&(f.preventDefault(),n.value=!0,s=f.clientX,r=t.value,window.addEventListener("pointermove",i),window.addEventListener("pointerup",a))}function u(){const f=Number(localStorage.getItem(e.storageKey));Number.isFinite(f)&&f>0&&(t.value=l(f))}return{splitWidth:t,splitStyle:o,isDragging:n,handleDragStart:c,restoreSplitWidth:u,stopDrag:a}}const X_={class:"h-screen overflow-hidden pg-app-bg","data-testid":"playground-app"},Q_={class:"flex h-full w-full flex-col"},Z_={class:"flex min-h-0 flex-1 flex-col overflow-hidden"},ev={class:"flex flex-1 flex-col overflow-hidden bg-pg-surface-shell"},tv={class:"relative hidden w-4 flex-none items-center justify-center lg:flex"},nv={class:"flex min-h-0 flex-1 flex-col overflow-hidden p-4 lg:p-6"},sv={class:"mt-3 flex-1 min-h-0 overflow-auto"},rv=$e({__name:"App",setup(e){const{routes:t,filtered:n,disabledFiltered:s,ignoredFiltered:r,configFiltered:o,disabledConfigFiltered:l,selected:i,selectedDisabled:a,selectedIgnored:c,selectedConfig:u,groups:f,activeGroup:p,loading:g,error:S,search:I,basePath:T,workspaceRoot:b,searchTerm:_,routeCount:C,disabledCount:v,ignoredCount:O,configCount:j,disabledConfigCount:V,configStatusMap:G,routeKey:te,loadRoutes:ye,setActiveGroup:xe,selectRoute:ce,selectDisabledRoute:Ne,selectIgnoredRoute:oe,selectConfig:le,setBasePath:B,configImpactRoutes:K}=B_(),{queryText:A,headersText:ne,bodyText:_e,bodyType:Se,responseText:be,responseStatus:he,responseTime:Ee,runRequest:De,isSwRegistering:je,routeParams:ke,paramValues:st,setParamValue:rt,requestUrl:Y,totalCount:pe,getRouteCount:h}=G_(i,{basePath:T}),y=H(()=>i.value?te(i.value):""),P=ee("active"),D=ee("api"),N=ee("api"),{activeTotal:U,apiTotal:d,disabledTotal:m,ignoredTotal:w,configTotal:E,disabledConfigTotal:q,disabledApiTotal:W,visibleCount:k}=T_({routes:t,configCount:j,disabledCount:v,ignoredCount:O,disabledConfigCount:V,routeCount:C,disabledFiltered:s,ignoredFiltered:r,configFiltered:o,disabledConfigFiltered:l,routeMode:P,enabledMode:D,disabledMode:N}),{setRouteMode:M,setEnabledMode:X,setDisabledMode:se,handleSelectRoute:ue,handleSelectConfig:He,handleSelectDisabled:Ue,handleSelectIgnored:ct}=C_({routeMode:P,enabledMode:D,disabledMode:N,selected:i,selectedDisabled:a,selectedIgnored:c,selectedConfig:u,filtered:n,disabledFiltered:s,ignoredFiltered:r,selectRoute:ce,selectDisabledRoute:Ne,selectIgnoredRoute:oe,selectConfig:le}),{splitStyle:pt,isDragging:rn,handleDragStart:$n,restoreSplitWidth:ot,stopDrag:vt}=J_({storageKey:"mokup:playground:split-width",defaultWidth:320,minWidth:240,maxWidth:560}),{treeMode:gs,treeRows:ms,toggleExpanded:Xa,setTreeMode:Qa}=Y_({routes:n,selectedKey:y,searchTerm:_,getRouteKey:te});function ur(){ye().catch(()=>{})}return In(()=>{B(window.location.pathname),ot(),window.__MOKUP_PLAYGROUND__={reloadRoutes:ur},ur()}),as(()=>{vt()}),(ov,Ze)=>($(),F("div",X_,[x("div",Q_,[x("main",Z_,[x("div",ev,[x("div",{class:Ge(["flex min-h-0 flex-1 flex-col lg:flex-row",R(rn)?"select-none":""]),style:ls(R(pt))},[z(k_,{search:R(I),"onUpdate:search":Ze[0]||(Ze[0]=xt=>Fe(I)?I.value=xt:null),"base-path":R(T),groups:R(f),"active-group":R(p),"tree-mode":R(gs),"route-mode":P.value,"enabled-mode":D.value,"disabled-mode":N.value,"selected-config":R(u),"selected-disabled":R(a),"selected-ignored":R(c),"active-total":R(U),"api-total":R(d),"disabled-total":R(m),"ignored-total":R(w),"config-total":R(E),"disabled-api-total":R(W),"disabled-config-total":R(q),error:R(S),loading:R(g),filtered:R(n),"disabled-filtered":R(s),"ignored-filtered":R(r),"config-filtered":R(o),"disabled-config-filtered":R(l),"tree-rows":R(ms),"workspace-root":R(b),"get-route-count":R(h),onSelectGroup:R(xe),onSetRouteMode:R(M),onSetEnabledMode:R(X),onSetDisabledMode:R(se),onToggle:R(Xa),onSelectRoute:R(ue),onSelectDisabledRoute:R(Ue),onSelectIgnoredRoute:R(ct),onSelectConfig:R(He),"onUpdate:treeMode":R(Qa)},null,8,["search","base-path","groups","active-group","tree-mode","route-mode","enabled-mode","disabled-mode","selected-config","selected-disabled","selected-ignored","active-total","api-total","disabled-total","ignored-total","config-total","disabled-api-total","disabled-config-total","error","loading","filtered","disabled-filtered","ignored-filtered","config-filtered","disabled-config-filtered","tree-rows","workspace-root","get-route-count","onSelectGroup","onSetRouteMode","onSetEnabledMode","onSetDisabledMode","onToggle","onSelectRoute","onSelectDisabledRoute","onSelectIgnoredRoute","onSelectConfig","onUpdate:treeMode"]),x("div",tv,[Ze[7]||(Ze[7]=x("div",{class:"h-full w-px bg-pg-divider"},null,-1)),x("button",{class:"group absolute flex h-10 w-10 cursor-col-resize items-center justify-center rounded-full border shadow-sm transition hover:-translate-y-0.5 border-pg-border bg-pg-surface-strong text-pg-text-muted hover:text-pg-text-soft",type:"button","aria-label":"Resize panels",onPointerdown:Ze[1]||(Ze[1]=(...xt)=>R($n)&&R($n)(...xt))},[...Ze[6]||(Ze[6]=[x("span",{class:"i-[carbon--drag-horizontal] h-5 w-5","aria-hidden":"true"},null,-1)])],32)]),x("section",nv,[z(yb,{"visible-count":R(k),"total-count":R(pe),onRefresh:ur},null,8,["visible-count","total-count"]),x("div",sv,[z(lb,{queryText:R(A),"onUpdate:queryText":Ze[2]||(Ze[2]=xt=>Fe(A)?A.value=xt:null),headersText:R(ne),"onUpdate:headersText":Ze[3]||(Ze[3]=xt=>Fe(ne)?ne.value=xt:null),bodyText:R(_e),"onUpdate:bodyText":Ze[4]||(Ze[4]=xt=>Fe(_e)?_e.value=xt:null),bodyType:R(Se),"onUpdate:bodyType":Ze[5]||(Ze[5]=xt=>Fe(Se)?Se.value=xt:null),selected:R(i),"selected-disabled":R(a),"selected-ignored":R(c),"selected-config":R(u),"request-url":R(Y),"workspace-root":R(b),"response-text":R(be),"response-status":R(he),"response-time":R(Ee),"is-sw-registering":R(je),"route-params":R(ke),"param-values":R(st),"route-mode":P.value,"enabled-mode":D.value,"disabled-mode":N.value,"config-impact-routes":R(K),"config-status-map":R(G),"onUpdate:paramValue":R(rt),onRun:R(De)},null,8,["queryText","headersText","bodyText","bodyType","selected","selected-disabled","selected-ignored","selected-config","request-url","workspace-root","response-text","response-status","response-time","is-sw-registering","route-params","param-values","route-mode","enabled-mode","disabled-mode","config-impact-routes","config-status-map","onUpdate:paramValue","onRun"])])])],6)])])])]))}});cb();_d(rv).use(hb).mount("#app");
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function ro(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ie={},yn=[],Mt=()=>{},Ql=()=>!1,Xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),oo=e=>e.startsWith("onUpdate:"),Qe=Object.assign,lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pc=Object.prototype.hasOwnProperty,Re=(e,t)=>pc.call(e,t),ae=Array.isArray,xn=e=>Qs(e)==="[object Map]",Zl=e=>Qs(e)==="[object Set]",ue=e=>typeof e=="function",Ke=e=>typeof e=="string",zt=e=>typeof e=="symbol",Ne=e=>e!==null&&typeof e=="object",ei=e=>(Ne(e)||ue(e))&&ue(e.then)&&ue(e.catch),ti=Object.prototype.toString,Qs=e=>ti.call(e),gc=e=>Qs(e).slice(8,-1),ni=e=>Qs(e)==="[object Object]",Zs=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hn=ro(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),er=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},mc=/-\w/g,en=er(e=>e.replace(mc,t=>t.slice(1).toUpperCase())),hc=/\B([A-Z])/g,gn=er(e=>e.replace(hc,"-$1").toLowerCase()),si=er(e=>e.charAt(0).toUpperCase()+e.slice(1)),gr=er(e=>e?`on${si(e)}`:""),Zt=(e,t)=>!Object.is(e,t),mr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ri=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},bc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $o;const tr=()=>$o||($o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cs(e){if(ae(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Ke(s)?xc(s):cs(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(Ke(e)||Ne(e))return e}const _c=/;(?![^(]*\))/g,vc=/:([^]+)/,yc=/\/\*[^]*?\*\//g;function xc(e){const t={};return e.replace(yc,"").split(_c).forEach(n=>{if(n){const s=n.split(vc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ae(e){let t="";if(Ke(e))t=e;else if(ae(e))for(let n=0;n<e.length;n++){const s=Ae(e[n]);s&&(t+=s+" ")}else if(Ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const wc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",kc=ro(wc);function oi(e){return!!e||e===""}const li=e=>!!(e&&e.__v_isRef===!0),N=e=>Ke(e)?e:e==null?"":ae(e)||Ne(e)&&(e.toString===ti||!ue(e.toString))?li(e)?N(e.value):JSON.stringify(e,ii,2):String(e),ii=(e,t)=>li(t)?ii(e,t.value):xn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[hr(s,o)+" =>"]=r,n),{})}:Zl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>hr(n))}:zt(t)?hr(t):Ne(t)&&!ae(t)&&!ni(t)?String(t):t,hr=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let dt;class ai{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=dt,!t&&dt&&(this.index=(dt.scopes||(dt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=dt;try{return dt=this,t()}finally{dt=n}}}on(){++this._on===1&&(this.prevScope=dt,dt=this)}off(){this._on>0&&--this._on===0&&(dt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Tc(e){return new ai(e)}function Cc(){return dt}let Le;const br=new WeakSet;class ci{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,dt&&dt.active&&dt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,br.has(this)&&(br.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||di(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Oo(this),fi(this);const t=Le,n=Tt;Le=this,Tt=!0;try{return this.fn()}finally{pi(this),Le=t,Tt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)co(t);this.deps=this.depsTail=void 0,Oo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?br.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Lr(this)&&this.run()}get dirty(){return Lr(this)}}let ui=0,Gn,Kn;function di(e,t=!1){if(e.flags|=8,t){e.next=Kn,Kn=e;return}e.next=Gn,Gn=e}function io(){ui++}function ao(){if(--ui>0)return;if(Kn){let t=Kn;for(Kn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gn;){let t=Gn;for(Gn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function fi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),co(s),Sc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Lr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Jn)||(e.globalVersion=Jn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Lr(e))))return;e.flags|=2;const t=e.dep,n=Le,s=Tt;Le=e,Tt=!0;try{fi(e);const r=e.fn(e._value);(t.version===0||Zt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Le=n,Tt=s,pi(e),e.flags&=-3}}function co(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)co(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Sc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Tt=!0;const mi=[];function Ht(){mi.push(Tt),Tt=!1}function Gt(){const e=mi.pop();Tt=e===void 0?!0:e}function Oo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Le;Le=void 0;try{t()}finally{Le=n}}}let Jn=0;class Ec{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class uo{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(!Le||!Tt||Le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Le)n=this.activeLink=new Ec(Le,this),Le.deps?(n.prevDep=Le.depsTail,Le.depsTail.nextDep=n,Le.depsTail=n):Le.deps=Le.depsTail=n,hi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Le.depsTail,n.nextDep=void 0,Le.depsTail.nextDep=n,Le.depsTail=n,Le.deps===n&&(Le.deps=s)}return n}trigger(t){this.version++,Jn++,this.notify(t)}notify(t){io();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ao()}}}function hi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)hi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ds=new WeakMap,fn=Symbol(""),$r=Symbol(""),Xn=Symbol("");function tt(e,t,n){if(Tt&&Le){let s=Ds.get(e);s||Ds.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new uo),r.map=s,r.key=n),r.track()}}function Ut(e,t,n,s,r,o){const l=Ds.get(e);if(!l){Jn++;return}const i=a=>{a&&a.trigger()};if(io(),t==="clear")l.forEach(i);else{const a=ae(e),c=a&&Zs(n);if(a&&n==="length"){const u=Number(s);l.forEach((f,h)=>{(h==="length"||h===Xn||!zt(h)&&h>=u)&&i(f)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),c&&i(l.get(Xn)),t){case"add":a?c&&i(l.get("length")):(i(l.get(fn)),xn(e)&&i(l.get($r)));break;case"delete":a||(i(l.get(fn)),xn(e)&&i(l.get($r)));break;case"set":xn(e)&&i(l.get(fn));break}}ao()}function Rc(e,t){const n=Ds.get(e);return n&&n.get(t)}function hn(e){const t=Te(e);return t===e?t:(tt(t,"iterate",Xn),_t(e)?t:t.map(Ct))}function nr(e){return tt(e=Te(e),"iterate",Xn),e}function Jt(e,t){return Kt(e)?Cn(pn(e)?Ct(t):t):Ct(t)}const Pc={__proto__:null,[Symbol.iterator](){return _r(this,Symbol.iterator,e=>Jt(this,e))},concat(...e){return hn(this).concat(...e.map(t=>ae(t)?hn(t):t))},entries(){return _r(this,"entries",e=>(e[1]=Jt(this,e[1]),e))},every(e,t){return Ot(this,"every",e,t,void 0,arguments)},filter(e,t){return Ot(this,"filter",e,t,n=>n.map(s=>Jt(this,s)),arguments)},find(e,t){return Ot(this,"find",e,t,n=>Jt(this,n),arguments)},findIndex(e,t){return Ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ot(this,"findLast",e,t,n=>Jt(this,n),arguments)},findLastIndex(e,t){return Ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return vr(this,"includes",e)},indexOf(...e){return vr(this,"indexOf",e)},join(e){return hn(this).join(e)},lastIndexOf(...e){return vr(this,"lastIndexOf",e)},map(e,t){return Ot(this,"map",e,t,void 0,arguments)},pop(){return An(this,"pop")},push(...e){return An(this,"push",e)},reduce(e,...t){return Ao(this,"reduce",e,t)},reduceRight(e,...t){return Ao(this,"reduceRight",e,t)},shift(){return An(this,"shift")},some(e,t){return Ot(this,"some",e,t,void 0,arguments)},splice(...e){return An(this,"splice",e)},toReversed(){return hn(this).toReversed()},toSorted(e){return hn(this).toSorted(e)},toSpliced(...e){return hn(this).toSpliced(...e)},unshift(...e){return An(this,"unshift",e)},values(){return _r(this,"values",e=>Jt(this,e))}};function _r(e,t,n){const s=nr(e),r=s[t]();return s!==e&&!_t(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Ic=Array.prototype;function Ot(e,t,n,s,r,o){const l=nr(e),i=l!==e&&!_t(e),a=l[t];if(a!==Ic[t]){const f=a.apply(e,o);return i?Ct(f):f}let c=n;l!==e&&(i?c=function(f,h){return n.call(this,Jt(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const u=a.call(l,c,s);return i&&r?r(u):u}function Ao(e,t,n,s){const r=nr(e);let o=n;return r!==e&&(_t(e)?n.length>3&&(o=function(l,i,a){return n.call(this,l,i,a,e)}):o=function(l,i,a){return n.call(this,l,Jt(e,i),a,e)}),r[t](o,...s)}function vr(e,t,n){const s=Te(e);tt(s,"iterate",Xn);const r=s[t](...n);return(r===-1||r===!1)&&sr(n[0])?(n[0]=Te(n[0]),s[t](...n)):r}function An(e,t,n=[]){Ht(),io();const s=Te(e)[t].apply(e,n);return ao(),Gt(),s}const Mc=ro("__proto__,__v_isRef,__isVue"),bi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt));function Lc(e){zt(e)||(e=String(e));const t=Te(this);return tt(t,"has",e),t.hasOwnProperty(e)}class _i{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?jc:wi:o?xi:yi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=ae(t);if(!r){let a;if(l&&(a=Pc[n]))return a;if(n==="hasOwnProperty")return Lc}const i=Reflect.get(t,n,Fe(t)?t:s);if((zt(n)?bi.has(n):Mc(n))||(r||tt(t,"get",n),o))return i;if(Fe(i)){const a=l&&Zs(n)?i:i.value;return r&&Ne(a)?Ar(a):a}return Ne(i)?r?Ar(i):po(i):i}}class vi extends _i{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const l=ae(t)&&Zs(n);if(!this._isShallow){const c=Kt(o);if(!_t(s)&&!Kt(s)&&(o=Te(o),s=Te(s)),!l&&Fe(o)&&!Fe(s))return c||(o.value=s),!0}const i=l?Number(n)<t.length:Re(t,n),a=Reflect.set(t,n,s,Fe(t)?t:r);return t===Te(r)&&(i?Zt(s,o)&&Ut(t,"set",n,s):Ut(t,"add",n,s)),a}deleteProperty(t,n){const s=Re(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ut(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!zt(n)||!bi.has(n))&&tt(t,"has",n),s}ownKeys(t){return tt(t,"iterate",ae(t)?"length":fn),Reflect.ownKeys(t)}}class $c extends _i{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Oc=new vi,Ac=new $c,Nc=new vi(!0);const Or=e=>e,_s=e=>Reflect.getPrototypeOf(e);function Fc(e,t,n){return function(...s){const r=this.__v_raw,o=Te(r),l=xn(o),i=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=r[e](...s),u=n?Or:t?Cn:Ct;return!t&&tt(o,"iterate",a?$r:fn),Qe(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:i?[u(f[0]),u(f[1])]:u(f),done:h}}})}}function vs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Dc(e,t){const n={get(r){const o=this.__v_raw,l=Te(o),i=Te(r);e||(Zt(r,i)&&tt(l,"get",r),tt(l,"get",i));const{has:a}=_s(l),c=t?Or:e?Cn:Ct;if(a.call(l,r))return c(o.get(r));if(a.call(l,i))return c(o.get(i));o!==l&&o.get(r)},get size(){const r=this.__v_raw;return!e&&tt(Te(r),"iterate",fn),r.size},has(r){const o=this.__v_raw,l=Te(o),i=Te(r);return e||(Zt(r,i)&&tt(l,"has",r),tt(l,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const l=this,i=l.__v_raw,a=Te(i),c=t?Or:e?Cn:Ct;return!e&&tt(a,"iterate",fn),i.forEach((u,f)=>r.call(o,c(u),c(f),l))}};return Qe(n,e?{add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear")}:{add(r){!t&&!_t(r)&&!Kt(r)&&(r=Te(r));const o=Te(this);return _s(o).has.call(o,r)||(o.add(r),Ut(o,"add",r,r)),this},set(r,o){!t&&!_t(o)&&!Kt(o)&&(o=Te(o));const l=Te(this),{has:i,get:a}=_s(l);let c=i.call(l,r);c||(r=Te(r),c=i.call(l,r));const u=a.call(l,r);return l.set(r,o),c?Zt(o,u)&&Ut(l,"set",r,o):Ut(l,"add",r,o),this},delete(r){const o=Te(this),{has:l,get:i}=_s(o);let a=l.call(o,r);a||(r=Te(r),a=l.call(o,r)),i&&i.call(o,r);const c=o.delete(r);return a&&Ut(o,"delete",r,void 0),c},clear(){const r=Te(this),o=r.size!==0,l=r.clear();return o&&Ut(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Fc(r,e,t)}),n}function fo(e,t){const n=Dc(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Re(n,r)&&r in s?n:s,r,o)}const Uc={get:fo(!1,!1)},Vc={get:fo(!1,!0)},Wc={get:fo(!0,!1)};const yi=new WeakMap,xi=new WeakMap,wi=new WeakMap,jc=new WeakMap;function Hc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gc(e){return e.__v_skip||!Object.isExtensible(e)?0:Hc(gc(e))}function po(e){return Kt(e)?e:go(e,!1,Oc,Uc,yi)}function Kc(e){return go(e,!1,Nc,Vc,xi)}function Ar(e){return go(e,!0,Ac,Wc,wi)}function go(e,t,n,s,r){if(!Ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Gc(e);if(o===0)return e;const l=r.get(e);if(l)return l;const i=new Proxy(e,o===2?s:n);return r.set(e,i),i}function pn(e){return Kt(e)?pn(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function _t(e){return!!(e&&e.__v_isShallow)}function sr(e){return e?!!e.__v_raw:!1}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Bc(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&ri(e,"__v_skip",!0),e}const Ct=e=>Ne(e)?po(e):e,Cn=e=>Ne(e)?Ar(e):e;function Fe(e){return e?e.__v_isRef===!0:!1}function te(e){return ki(e,!1)}function zc(e){return ki(e,!0)}function ki(e,t){return Fe(e)?e:new qc(e,t)}class qc{constructor(t,n){this.dep=new uo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Te(t),this._value=n?t:Ct(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||_t(t)||Kt(t);t=s?t:Te(t),Zt(t,n)&&(this._rawValue=t,this._value=s?t:Ct(t),this.dep.trigger())}}function S(e){return Fe(e)?e.value:e}const Yc={get:(e,t,n)=>t==="__v_raw"?e:S(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Fe(r)&&!Fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ti(e){return pn(e)?e:new Proxy(e,Yc)}function Jc(e){const t=ae(e)?new Array(e.length):{};for(const n in e)t[n]=Qc(e,n);return t}class Xc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=Te(t);let r=!0,o=t;if(!ae(t)||!Zs(String(n)))do r=!sr(o)||_t(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=S(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Fe(this._raw[this._key])){const n=this._object[this._key];if(Fe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Rc(this._raw,this._key)}}function Qc(e,t,n){return new Xc(e,t,n)}class Zc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new uo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Jn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return di(this,!0),!0}get value(){const t=this.dep.track();return gi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function eu(e,t,n=!1){let s,r;return ue(e)?s=e:(s=e.get,r=e.set),new Zc(s,r,n)}const ys={},Us=new WeakMap;let cn;function tu(e,t=!1,n=cn){if(n){let s=Us.get(n);s||Us.set(n,s=[]),s.push(e)}}function nu(e,t,n=Ie){const{immediate:s,deep:r,once:o,scheduler:l,augmentJob:i,call:a}=n,c=v=>r?v:_t(v)||r===!1||r===0?Vt(v,1):Vt(v);let u,f,h,b,k=!1,E=!1;if(Fe(e)?(f=()=>e.value,k=_t(e)):pn(e)?(f=()=>c(e),k=!0):ae(e)?(E=!0,k=e.some(v=>pn(v)||_t(v)),f=()=>e.map(v=>{if(Fe(v))return v.value;if(pn(v))return c(v);if(ue(v))return a?a(v,2):v()})):ue(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){Ht();try{h()}finally{Gt()}}const v=cn;cn=u;try{return a?a(e,3,[b]):e(b)}finally{cn=v}}:f=Mt,t&&r){const v=f,I=r===!0?1/0:r;f=()=>Vt(v(),I)}const P=Cc(),g=()=>{u.stop(),P&&P.active&&lo(P.effects,u)};if(o&&t){const v=t;t=(...I)=>{v(...I),g()}}let y=E?new Array(e.length).fill(ys):ys;const _=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const I=u.run();if(r||k||(E?I.some((F,A)=>Zt(F,y[A])):Zt(I,y))){h&&h();const F=cn;cn=u;try{const A=[I,y===ys?void 0:E&&y[0]===ys?[]:y,b];y=I,a?a(t,3,A):t(...A)}finally{cn=F}}}else u.run()};return i&&i(_),u=new ci(f),u.scheduler=l?()=>l(_,!1):_,b=v=>tu(v,!1,u),h=u.onStop=()=>{const v=Us.get(u);if(v){if(a)a(v,4);else for(const I of v)I();Us.delete(u)}},t?s?_(!0):y=u.run():l?l(_.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function Vt(e,t=1/0,n){if(t<=0||!Ne(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Fe(e))Vt(e.value,t,n);else if(ae(e))for(let s=0;s<e.length;s++)Vt(e[s],t,n);else if(Zl(e)||xn(e))e.forEach(s=>{Vt(s,t,n)});else if(ni(e)){for(const s in e)Vt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Vt(e[s],t,n)}return e}function us(e,t,n,s){try{return s?e(...s):e()}catch(r){rr(r,t,n)}}function $t(e,t,n,s){if(ue(e)){const r=us(e,t,n,s);return r&&ei(r)&&r.catch(o=>{rr(o,t,n)}),r}if(ae(e)){const r=[];for(let o=0;o<e.length;o++)r.push($t(e[o],t,n,s));return r}}function rr(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Ie;if(t){let i=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}i=i.parent}if(o){Ht(),us(o,null,10,[e,a,c]),Gt();return}}su(e,n,r,s,l)}function su(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const it=[];let Pt=-1;const wn=[];let Xt=null,_n=0;const Ci=Promise.resolve();let Vs=null;function Si(e){const t=Vs||Ci;return e?t.then(this?e.bind(this):e):t}function ru(e){let t=Pt+1,n=it.length;for(;t<n;){const s=t+n>>>1,r=it[s],o=Qn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function mo(e){if(!(e.flags&1)){const t=Qn(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=Qn(n)?it.push(e):it.splice(ru(t),0,e),e.flags|=1,Ei()}}function Ei(){Vs||(Vs=Ci.then(Pi))}function ou(e){ae(e)?wn.push(...e):Xt&&e.id===-1?Xt.splice(_n+1,0,e):e.flags&1||(wn.push(e),e.flags|=1),Ei()}function No(e,t,n=Pt+1){for(;n<it.length;n++){const s=it[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;it.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ri(e){if(wn.length){const t=[...new Set(wn)].sort((n,s)=>Qn(n)-Qn(s));if(wn.length=0,Xt){Xt.push(...t);return}for(Xt=t,_n=0;_n<Xt.length;_n++){const n=Xt[_n];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,_n=0}}const Qn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pi(e){try{for(Pt=0;Pt<it.length;Pt++){const t=it[Pt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),us(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pt<it.length;Pt++){const t=it[Pt];t&&(t.flags&=-2)}Pt=-1,it.length=0,Ri(),Vs=null,(it.length||wn.length)&&Pi()}}let nt=null,Ii=null;function Ws(e){const t=nt;return nt=e,Ii=e&&e.type.__scopeId||null,t}function ne(e,t=nt,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Gs(-1);const o=Ws(t);let l;try{l=e(...r)}finally{Ws(o),s._d&&Gs(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function xs(e,t){if(nt===null)return e;const n=ar(nt),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,l,i,a=Ie]=t[r];o&&(ue(o)&&(o={mounted:o,updated:o}),o.deep&&Vt(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:i,modifiers:a}))}return e}function on(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const i=r[l];o&&(i.oldValue=o[l].value);let a=i.dir[s];a&&(Ht(),$t(a,n,8,[e.el,i,e,t]),Gt())}}function lu(e,t){if(at){let n=at.provides;const s=at.parent&&at.parent.provides;s===n&&(n=at.provides=Object.create(s)),n[e]=t}}function Bn(e,t,n=!1){const s=ir();if(s||Tn){let r=Tn?Tn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ue(t)?t.call(s&&s.proxy):t}}const iu=Symbol.for("v-scx"),au=()=>Bn(iu);function ft(e,t,n){return Mi(e,t,n)}function Mi(e,t,n=Ie){const{immediate:s,deep:r,flush:o,once:l}=n,i=Qe({},n),a=t&&s||!t&&o!=="post";let c;if(ts){if(o==="sync"){const b=au();c=b.__watcherHandles||(b.__watcherHandles=[])}else if(!a){const b=()=>{};return b.stop=Mt,b.resume=Mt,b.pause=Mt,b}}const u=at;i.call=(b,k,E)=>$t(b,u,k,E);let f=!1;o==="post"?i.scheduler=b=>{ht(b,u&&u.suspense)}:o!=="sync"&&(f=!0,i.scheduler=(b,k)=>{k?b():mo(b)}),i.augmentJob=b=>{t&&(b.flags|=4),f&&(b.flags|=2,u&&(b.id=u.uid,b.i=u))};const h=nu(e,t,i);return ts&&(c?c.push(h):a&&h()),h}function cu(e,t,n){const s=this.proxy,r=Ke(e)?e.includes(".")?Li(s,e):()=>s[e]:e.bind(s,s);let o;ue(t)?o=t:(o=t.handler,n=t);const l=ps(this),i=Mi(r,o.bind(s),n);return l(),i}function Li(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const uu=Symbol("_vte"),du=e=>e.__isTeleport,fu=Symbol("_leaveCb");function ho(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ho(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 $e(e,t){return ue(e)?Qe({name:e.name},t,{setup:e}):e}function $i(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const js=new WeakMap;function zn(e,t,n,s,r=!1){if(ae(e)){e.forEach((k,E)=>zn(k,t&&(ae(t)?t[E]:t),n,s,r));return}if(kn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&zn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?ar(s.component):s.el,l=r?null:o,{i,r:a}=e,c=t&&t.r,u=i.refs===Ie?i.refs={}:i.refs,f=i.setupState,h=Te(f),b=f===Ie?Ql:k=>Re(h,k);if(c!=null&&c!==a){if(Fo(t),Ke(c))u[c]=null,b(c)&&(f[c]=null);else if(Fe(c)){c.value=null;const k=t;k.k&&(u[k.k]=null)}}if(ue(a))us(a,i,12,[l,u]);else{const k=Ke(a),E=Fe(a);if(k||E){const P=()=>{if(e.f){const g=k?b(a)?f[a]:u[a]:a.value;if(r)ae(g)&&lo(g,o);else if(ae(g))g.includes(o)||g.push(o);else if(k)u[a]=[o],b(a)&&(f[a]=u[a]);else{const y=[o];a.value=y,e.k&&(u[e.k]=y)}}else k?(u[a]=l,b(a)&&(f[a]=l)):E&&(a.value=l,e.k&&(u[e.k]=l))};if(l){const g=()=>{P(),js.delete(e)};g.id=-1,js.set(e,g),ht(g,n)}else Fo(e),P()}}}function Fo(e){const t=js.get(e);t&&(t.flags|=8,js.delete(e))}tr().requestIdleCallback;tr().cancelIdleCallback;const kn=e=>!!e.type.__asyncLoader,Oi=e=>e.type.__isKeepAlive;function pu(e,t){Ai(e,"a",t)}function gu(e,t){Ai(e,"da",t)}function Ai(e,t,n=at){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(or(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Oi(r.parent.vnode)&&mu(s,t,n,r),r=r.parent}}function mu(e,t,n,s){const r=or(t,e,s,!0);bo(()=>{lo(s[t],r)},n)}function or(e,t,n=at,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{Ht();const i=ps(n),a=$t(t,n,e,l);return i(),Gt(),a});return s?r.unshift(o):r.push(o),o}}const qt=e=>(t,n=at)=>{(!ts||e==="sp")&&or(e,(...s)=>t(...s),n)},hu=qt("bm"),Pn=qt("m"),bu=qt("bu"),_u=qt("u"),In=qt("bum"),bo=qt("um"),vu=qt("sp"),yu=qt("rtg"),xu=qt("rtc");function wu(e,t=at){or("ec",e,t)}const ku=Symbol.for("v-ndc");function Xe(e,t,n,s){let r;const o=n,l=ae(e);if(l||Ke(e)){const i=l&&pn(e);let a=!1,c=!1;i&&(a=!_t(e),c=Kt(e),e=nr(e)),r=new Array(e.length);for(let u=0,f=e.length;u<f;u++)r[u]=t(a?c?Cn(Ct(e[u])):Ct(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(Ne(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,c=i.length;a<c;a++){const u=i[a];r[a]=t(e[u],u,a,o)}}else r=[];return r}function _o(e,t,n={},s,r){if(nt.ce||nt.parent&&kn(nt.parent)&&nt.parent.ce){const c=Object.keys(n).length>0;return O(),pt(ve,null,[K("slot",n,s)],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),O();const l=o&&Ni(o(n)),i=n.key||l&&l.key,a=pt(ve,{key:(i&&!zt(i)?i:`_${t}`)+(!l&&s?"_fb":"")},l||[],l&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Ni(e){return e.some(t=>es(t)?!(t.type===Bt||t.type===ve&&!Ni(t.children)):!0)?e:null}const Nr=e=>e?ta(e)?ar(e):Nr(e.parent):null,qn=Qe(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=>Nr(e.parent),$root:e=>Nr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Di(e),$forceUpdate:e=>e.f||(e.f=()=>{mo(e.update)}),$nextTick:e=>e.n||(e.n=Si.bind(e.proxy)),$watch:e=>cu.bind(e)}),yr=(e,t)=>e!==Ie&&!e.__isScriptSetup&&Re(e,t),Tu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:l,type:i,appContext:a}=e;if(t[0]!=="$"){const h=l[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(yr(s,t))return l[t]=1,s[t];if(r!==Ie&&Re(r,t))return l[t]=2,r[t];if(Re(o,t))return l[t]=3,o[t];if(n!==Ie&&Re(n,t))return l[t]=4,n[t];Fr&&(l[t]=0)}}const c=qn[t];let u,f;if(c)return t==="$attrs"&&tt(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Ie&&Re(n,t))return l[t]=4,n[t];if(f=a.config.globalProperties,Re(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return yr(r,t)?(r[t]=n,!0):s!==Ie&&Re(s,t)?(s[t]=n,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:l}},i){let a;return!!(n[i]||e!==Ie&&i[0]!=="$"&&Re(e,i)||yr(t,i)||Re(o,i)||Re(s,i)||Re(qn,i)||Re(r.config.globalProperties,i)||(a=l.__cssModules)&&a[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ds(){return Cu().attrs}function Cu(e){const t=ir();return t.setupContext||(t.setupContext=sa(t))}function Do(e){return ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fr=!0;function Su(e){const t=Di(e),n=e.proxy,s=e.ctx;Fr=!1,t.beforeCreate&&Uo(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:i,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:b,updated:k,activated:E,deactivated:P,beforeDestroy:g,beforeUnmount:y,destroyed:_,unmounted:v,render:I,renderTracked:F,renderTriggered:A,errorCaptured:G,serverPrefetch:oe,expose:ye,inheritAttrs:he,components:de,directives:De,filters:le}=t;if(c&&Eu(c,s,null),l)for(const ee in l){const $=l[ee];ue($)&&(s[ee]=$.bind(n))}if(r){const ee=r.call(n,n);Ne(ee)&&(e.data=po(ee))}if(Fr=!0,o)for(const ee in o){const $=o[ee],z=ue($)?$.bind(n,n):ue($.get)?$.get.bind(n,n):Mt,se=!ue($)&&ue($.set)?$.set.bind(n):Mt,xe=H({get:z,set:se});Object.defineProperty(s,ee,{enumerable:!0,configurable:!0,get:()=>xe.value,set:fe=>xe.value=fe})}if(i)for(const ee in i)Fi(i[ee],s,n,ee);if(a){const ee=ue(a)?a.call(n):a;Reflect.ownKeys(ee).forEach($=>{lu($,ee[$])})}u&&Uo(u,e,"c");function J(ee,$){ae($)?$.forEach(z=>ee(z.bind(n))):$&&ee($.bind(n))}if(J(hu,f),J(Pn,h),J(bu,b),J(_u,k),J(pu,E),J(gu,P),J(wu,G),J(xu,F),J(yu,A),J(In,y),J(bo,v),J(vu,oe),ae(ye))if(ye.length){const ee=e.exposed||(e.exposed={});ye.forEach($=>{Object.defineProperty(ee,$,{get:()=>n[$],set:z=>n[$]=z,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Mt&&(e.render=I),he!=null&&(e.inheritAttrs=he),de&&(e.components=de),De&&(e.directives=De),oe&&$i(e)}function Eu(e,t,n=Mt){ae(e)&&(e=Dr(e));for(const s in e){const r=e[s];let o;Ne(r)?"default"in r?o=Bn(r.from||s,r.default,!0):o=Bn(r.from||s):o=Bn(r),Fe(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[s]=o}}function Uo(e,t,n){$t(ae(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fi(e,t,n,s){let r=s.includes(".")?Li(n,s):()=>n[s];if(Ke(e)){const o=t[e];ue(o)&&ft(r,o)}else if(ue(e))ft(r,e.bind(n));else if(Ne(e))if(ae(e))e.forEach(o=>Fi(o,t,n,s));else{const o=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(o)&&ft(r,o,e)}}function Di(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,i=o.get(t);let a;return i?a=i:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Hs(a,c,l,!0)),Hs(a,t,l)),Ne(t)&&o.set(t,a),a}function Hs(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Hs(e,o,n,!0),r&&r.forEach(l=>Hs(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const i=Ru[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const Ru={data:Vo,props:Wo,emits:Wo,methods:Vn,computed:Vn,beforeCreate:lt,created:lt,beforeMount:lt,mounted:lt,beforeUpdate:lt,updated:lt,beforeDestroy:lt,beforeUnmount:lt,destroyed:lt,unmounted:lt,activated:lt,deactivated:lt,errorCaptured:lt,serverPrefetch:lt,components:Vn,directives:Vn,watch:Iu,provide:Vo,inject:Pu};function Vo(e,t){return t?e?function(){return Qe(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Pu(e,t){return Vn(Dr(e),Dr(t))}function Dr(e){if(ae(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function lt(e,t){return e?[...new Set([].concat(e,t))]:t}function Vn(e,t){return e?Qe(Object.create(null),e,t):t}function Wo(e,t){return e?ae(e)&&ae(t)?[...new Set([...e,...t])]:Qe(Object.create(null),Do(e),Do(t??{})):t}function Iu(e,t){if(!e)return t;if(!t)return e;const n=Qe(Object.create(null),e);for(const s in t)n[s]=lt(e[s],t[s]);return n}function Ui(){return{app:null,config:{isNativeTag:Ql,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 Mu=0;function Lu(e,t){return function(s,r=null){ue(s)||(s=Qe({},s)),r!=null&&!Ne(r)&&(r=null);const o=Ui(),l=new WeakSet,i=[];let a=!1;const c=o.app={_uid:Mu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:id,get config(){return o.config},set config(u){},use(u,...f){return l.has(u)||(u&&ue(u.install)?(l.add(u),u.install(c,...f)):ue(u)&&(l.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,h){if(!a){const b=c._ceVNode||K(s,r);return b.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(b,u,h),a=!0,c._container=u,u.__vue_app__=c,ar(b.component)}},onUnmount(u){i.push(u)},unmount(){a&&($t(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=Tn;Tn=c;try{return u()}finally{Tn=f}}};return c}}let Tn=null;const $u=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${en(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function Ou(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Ie;let r=n;const o=t.startsWith("update:"),l=o&&$u(s,t.slice(7));l&&(l.trim&&(r=n.map(u=>Ke(u)?u.trim():u)),l.number&&(r=n.map(bc)));let i,a=s[i=gr(t)]||s[i=gr(en(t))];!a&&o&&(a=s[i=gr(gn(t))]),a&&$t(a,e,6,r);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,$t(c,e,6,r)}}const Au=new WeakMap;function Vi(e,t,n=!1){const s=n?Au:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let l={},i=!1;if(!ue(e)){const a=c=>{const u=Vi(c,t,!0);u&&(i=!0,Qe(l,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!i?(Ne(e)&&s.set(e,null),null):(ae(o)?o.forEach(a=>l[a]=null):Qe(l,o),Ne(e)&&s.set(e,l),l)}function lr(e,t){return!e||!Xs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,gn(t))||Re(e,t))}function jo(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:l,attrs:i,emit:a,render:c,renderCache:u,props:f,data:h,setupState:b,ctx:k,inheritAttrs:E}=e,P=Ws(e);let g,y;try{if(n.shapeFlag&4){const v=r||s,I=v;g=It(c.call(I,v,u,f,b,h,k)),y=i}else{const v=t;g=It(v.length>1?v(f,{attrs:i,slots:l,emit:a}):v(f,null)),y=t.props?i:Nu(i)}}catch(v){Yn.length=0,rr(v,e,1),g=K(Bt)}let _=g;if(y&&E!==!1){const v=Object.keys(y),{shapeFlag:I}=_;v.length&&I&7&&(o&&v.some(oo)&&(y=Fu(y,o)),_=Sn(_,y,!1,!0))}return n.dirs&&(_=Sn(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&ho(_,n.transition),g=_,Ws(P),g}const Nu=e=>{let t;for(const n in e)(n==="class"||n==="style"||Xs(n))&&((t||(t={}))[n]=e[n]);return t},Fu=(e,t)=>{const n={};for(const s in e)(!oo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Du(e,t,n){const{props:s,children:r,component:o}=e,{props:l,children:i,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ho(s,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(l[h]!==s[h]&&!lr(c,h))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:s===l?!1:s?l?Ho(s,l,c):!0:!!l;return!1}function Ho(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!lr(n,o))return!0}return!1}function Uu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Wi={},ji=()=>Object.create(Wi),Hi=e=>Object.getPrototypeOf(e)===Wi;function Vu(e,t,n,s=!1){const r={},o=ji();e.propsDefaults=Object.create(null),Gi(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=s?r:Kc(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Wu(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,i=Te(r),[a]=e.propsOptions;let c=!1;if((s||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(lr(e.emitsOptions,h))continue;const b=t[h];if(a)if(Re(o,h))b!==o[h]&&(o[h]=b,c=!0);else{const k=en(h);r[k]=Ur(a,i,k,b,e,!1)}else b!==o[h]&&(o[h]=b,c=!0)}}}else{Gi(e,t,r,o)&&(c=!0);let u;for(const f in i)(!t||!Re(t,f)&&((u=gn(f))===f||!Re(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=Ur(a,i,f,void 0,e,!0)):delete r[f]);if(o!==i)for(const f in o)(!t||!Re(t,f))&&(delete o[f],c=!0)}c&&Ut(e.attrs,"set","")}function Gi(e,t,n,s){const[r,o]=e.propsOptions;let l=!1,i;if(t)for(let a in t){if(Hn(a))continue;const c=t[a];let u;r&&Re(r,u=en(a))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:lr(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,l=!0)}if(o){const a=Te(n),c=i||Ie;for(let u=0;u<o.length;u++){const f=o[u];n[f]=Ur(r,a,f,c[f],e,!Re(c,f))}}return l}function Ur(e,t,n,s,r,o){const l=e[n];if(l!=null){const i=Re(l,"default");if(i&&s===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ue(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=ps(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}l[0]&&(o&&!i?s=!1:l[1]&&(s===""||s===gn(n))&&(s=!0))}return s}const ju=new WeakMap;function Ki(e,t,n=!1){const s=n?ju:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,l={},i=[];let a=!1;if(!ue(e)){const u=f=>{a=!0;const[h,b]=Ki(f,t,!0);Qe(l,h),b&&i.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return Ne(e)&&s.set(e,yn),yn;if(ae(o))for(let u=0;u<o.length;u++){const f=en(o[u]);Go(f)&&(l[f]=Ie)}else if(o)for(const u in o){const f=en(u);if(Go(f)){const h=o[u],b=l[f]=ae(h)||ue(h)?{type:h}:Qe({},h),k=b.type;let E=!1,P=!0;if(ae(k))for(let g=0;g<k.length;++g){const y=k[g],_=ue(y)&&y.name;if(_==="Boolean"){E=!0;break}else _==="String"&&(P=!1)}else E=ue(k)&&k.name==="Boolean";b[0]=E,b[1]=P,(E||Re(b,"default"))&&i.push(f)}}const c=[l,i];return Ne(e)&&s.set(e,c),c}function Go(e){return e[0]!=="$"&&!Hn(e)}const vo=e=>e==="_"||e==="_ctx"||e==="$stable",yo=e=>ae(e)?e.map(It):[It(e)],Hu=(e,t,n)=>{if(t._n)return t;const s=ne((...r)=>yo(t(...r)),n);return s._c=!1,s},Bi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(vo(r))continue;const o=e[r];if(ue(o))t[r]=Hu(r,o,s);else if(o!=null){const l=yo(o);t[r]=()=>l}}},zi=(e,t)=>{const n=yo(t);e.slots.default=()=>n},qi=(e,t,n)=>{for(const s in t)(n||!vo(s))&&(e[s]=t[s])},Gu=(e,t,n)=>{const s=e.slots=ji();if(e.vnode.shapeFlag&32){const r=t._;r?(qi(s,t,n),n&&ri(s,"_",r,!0)):Bi(t,s)}else t&&zi(e,t)},Ku=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,l=Ie;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:qi(r,t,n):(o=!t.$stable,Bi(t,r)),l=t}else t&&(zi(e,t),l={default:1});if(o)for(const i in r)!vo(i)&&l[i]==null&&delete r[i]},ht=Ju;function Bu(e){return zu(e)}function zu(e,t){const n=tr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:l,createText:i,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:b=Mt,insertStaticContent:k}=e,E=(m,x,M,j=null,U=null,V=null,d=void 0,p=null,T=!!x.dynamicChildren)=>{if(m===x)return;m&&!Nn(m,x)&&(j=ke(m),fe(m,U,V,!0),m=null),x.patchFlag===-2&&(T=!1,x.dynamicChildren=null);const{type:R,ref:B,shapeFlag:W}=x;switch(R){case fs:P(m,x,M,j);break;case Bt:g(m,x,M,j);break;case wr:m==null&&y(x,M,j,d);break;case ve:de(m,x,M,j,U,V,d,p,T);break;default:W&1?I(m,x,M,j,U,V,d,p,T):W&6?De(m,x,M,j,U,V,d,p,T):(W&64||W&128)&&R.process(m,x,M,j,U,V,d,p,T,Be)}B!=null&&U?zn(B,m&&m.ref,V,x||m,!x):B==null&&m&&m.ref!=null&&zn(m.ref,null,V,m,!0)},P=(m,x,M,j)=>{if(m==null)s(x.el=i(x.children),M,j);else{const U=x.el=m.el;x.children!==m.children&&c(U,x.children)}},g=(m,x,M,j)=>{m==null?s(x.el=a(x.children||""),M,j):x.el=m.el},y=(m,x,M,j)=>{[m.el,m.anchor]=k(m.children,x,M,j,m.el,m.anchor)},_=({el:m,anchor:x},M,j)=>{let U;for(;m&&m!==x;)U=h(m),s(m,M,j),m=U;s(x,M,j)},v=({el:m,anchor:x})=>{let M;for(;m&&m!==x;)M=h(m),r(m),m=M;r(x)},I=(m,x,M,j,U,V,d,p,T)=>{if(x.type==="svg"?d="svg":x.type==="math"&&(d="mathml"),m==null)F(x,M,j,U,V,d,p,T);else{const R=m.el&&m.el._isVueCE?m.el:null;try{R&&R._beginPatch(),oe(m,x,U,V,d,p,T)}finally{R&&R._endPatch()}}},F=(m,x,M,j,U,V,d,p)=>{let T,R;const{props:B,shapeFlag:W,transition:C,dirs:L}=m;if(T=m.el=l(m.type,V,B&&B.is,B),W&8?u(T,m.children):W&16&&G(m.children,T,null,j,U,xr(m,V),d,p),L&&on(m,null,j,"created"),A(T,m,m.scopeId,d,j),B){for(const re in B)re!=="value"&&!Hn(re)&&o(T,re,null,B[re],V,j);"value"in B&&o(T,"value",null,B.value,V),(R=B.onVnodeBeforeMount)&&St(R,j,m)}L&&on(m,null,j,"beforeMount");const X=qu(U,C);X&&C.beforeEnter(T),s(T,x,M),((R=B&&B.onVnodeMounted)||X||L)&&ht(()=>{R&&St(R,j,m),X&&C.enter(T),L&&on(m,null,j,"mounted")},U)},A=(m,x,M,j,U)=>{if(M&&b(m,M),j)for(let V=0;V<j.length;V++)b(m,j[V]);if(U){let V=U.subTree;if(x===V||Qi(V.type)&&(V.ssContent===x||V.ssFallback===x)){const d=U.vnode;A(m,d,d.scopeId,d.slotScopeIds,U.parent)}}},G=(m,x,M,j,U,V,d,p,T=0)=>{for(let R=T;R<m.length;R++){const B=m[R]=p?Qt(m[R]):It(m[R]);E(null,B,x,M,j,U,V,d,p)}},oe=(m,x,M,j,U,V,d)=>{const p=x.el=m.el;let{patchFlag:T,dynamicChildren:R,dirs:B}=x;T|=m.patchFlag&16;const W=m.props||Ie,C=x.props||Ie;let L;if(M&&ln(M,!1),(L=C.onVnodeBeforeUpdate)&&St(L,M,x,m),B&&on(x,m,M,"beforeUpdate"),M&&ln(M,!0),(W.innerHTML&&C.innerHTML==null||W.textContent&&C.textContent==null)&&u(p,""),R?ye(m.dynamicChildren,R,p,M,j,xr(x,U),V):d||$(m,x,p,null,M,j,xr(x,U),V,!1),T>0){if(T&16)he(p,W,C,M,U);else if(T&2&&W.class!==C.class&&o(p,"class",null,C.class,U),T&4&&o(p,"style",W.style,C.style,U),T&8){const X=x.dynamicProps;for(let re=0;re<X.length;re++){const pe=X[re],He=W[pe],Ve=C[pe];(Ve!==He||pe==="value")&&o(p,pe,He,Ve,U,M)}}T&1&&m.children!==x.children&&u(p,x.children)}else!d&&R==null&&he(p,W,C,M,U);((L=C.onVnodeUpdated)||B)&&ht(()=>{L&&St(L,M,x,m),B&&on(x,m,M,"updated")},j)},ye=(m,x,M,j,U,V,d)=>{for(let p=0;p<x.length;p++){const T=m[p],R=x[p],B=T.el&&(T.type===ve||!Nn(T,R)||T.shapeFlag&198)?f(T.el):M;E(T,R,B,null,j,U,V,d,!0)}},he=(m,x,M,j,U)=>{if(x!==M){if(x!==Ie)for(const V in x)!Hn(V)&&!(V in M)&&o(m,V,x[V],null,U,j);for(const V in M){if(Hn(V))continue;const d=M[V],p=x[V];d!==p&&V!=="value"&&o(m,V,p,d,U,j)}"value"in M&&o(m,"value",x.value,M.value,U)}},de=(m,x,M,j,U,V,d,p,T)=>{const R=x.el=m?m.el:i(""),B=x.anchor=m?m.anchor:i("");let{patchFlag:W,dynamicChildren:C,slotScopeIds:L}=x;L&&(p=p?p.concat(L):L),m==null?(s(R,M,j),s(B,M,j),G(x.children||[],M,B,U,V,d,p,T)):W>0&&W&64&&C&&m.dynamicChildren&&m.dynamicChildren.length===C.length?(ye(m.dynamicChildren,C,M,U,V,d,p),(x.key!=null||U&&x===U.subTree)&&Yi(m,x,!0)):$(m,x,M,B,U,V,d,p,T)},De=(m,x,M,j,U,V,d,p,T)=>{x.slotScopeIds=p,m==null?x.shapeFlag&512?U.ctx.activate(x,M,j,d,T):le(x,M,j,U,V,d,T):ie(m,x,T)},le=(m,x,M,j,U,V,d)=>{const p=m.component=nd(m,j,U);if(Oi(m)&&(p.ctx.renderer=Be),sd(p,!1,d),p.asyncDep){if(U&&U.registerDep(p,J,d),!m.el){const T=p.subTree=K(Bt);g(null,T,x,M),m.placeholder=T.el}}else J(p,m,x,M,U,V,d)},ie=(m,x,M)=>{const j=x.component=m.component;if(Du(m,x,M))if(j.asyncDep&&!j.asyncResolved){ee(j,x,M);return}else j.next=x,j.update();else x.el=m.el,j.vnode=x},J=(m,x,M,j,U,V,d)=>{const p=()=>{if(m.isMounted){let{next:W,bu:C,u:L,parent:X,vnode:re}=m;{const mt=Ji(m);if(mt){W&&(W.el=re.el,ee(m,W,d)),mt.asyncDep.then(()=>{m.isUnmounted||p()});return}}let pe=W,He;ln(m,!1),W?(W.el=re.el,ee(m,W,d)):W=re,C&&mr(C),(He=W.props&&W.props.onVnodeBeforeUpdate)&&St(He,X,W,re),ln(m,!0);const Ve=jo(m),ct=m.subTree;m.subTree=Ve,E(ct,Ve,f(ct.el),ke(ct),m,U,V),W.el=Ve.el,pe===null&&Uu(m,Ve.el),L&&ht(L,U),(He=W.props&&W.props.onVnodeUpdated)&&ht(()=>St(He,X,W,re),U)}else{let W;const{el:C,props:L}=x,{bm:X,m:re,parent:pe,root:He,type:Ve}=m,ct=kn(x);ln(m,!1),X&&mr(X),!ct&&(W=L&&L.onVnodeBeforeMount)&&St(W,pe,x),ln(m,!0);{He.ce&&He.ce._def.shadowRoot!==!1&&He.ce._injectChildStyle(Ve);const mt=m.subTree=jo(m);E(null,mt,M,j,m,U,V),x.el=mt.el}if(re&&ht(re,U),!ct&&(W=L&&L.onVnodeMounted)){const mt=x;ht(()=>St(W,pe,mt),U)}(x.shapeFlag&256||pe&&kn(pe.vnode)&&pe.vnode.shapeFlag&256)&&m.a&&ht(m.a,U),m.isMounted=!0,x=M=j=null}};m.scope.on();const T=m.effect=new ci(p);m.scope.off();const R=m.update=T.run.bind(T),B=m.job=T.runIfDirty.bind(T);B.i=m,B.id=m.uid,T.scheduler=()=>mo(B),ln(m,!0),R()},ee=(m,x,M)=>{x.component=m;const j=m.vnode.props;m.vnode=x,m.next=null,Wu(m,x.props,j,M),Ku(m,x.children,M),Ht(),No(m),Gt()},$=(m,x,M,j,U,V,d,p,T=!1)=>{const R=m&&m.children,B=m?m.shapeFlag:0,W=x.children,{patchFlag:C,shapeFlag:L}=x;if(C>0){if(C&128){se(R,W,M,j,U,V,d,p,T);return}else if(C&256){z(R,W,M,j,U,V,d,p,T);return}}L&8?(B&16&&je(R,U,V),W!==R&&u(M,W)):B&16?L&16?se(R,W,M,j,U,V,d,p,T):je(R,U,V,!0):(B&8&&u(M,""),L&16&&G(W,M,j,U,V,d,p,T))},z=(m,x,M,j,U,V,d,p,T)=>{m=m||yn,x=x||yn;const R=m.length,B=x.length,W=Math.min(R,B);let C;for(C=0;C<W;C++){const L=x[C]=T?Qt(x[C]):It(x[C]);E(m[C],L,M,null,U,V,d,p,T)}R>B?je(m,U,V,!0,!1,W):G(x,M,j,U,V,d,p,T,W)},se=(m,x,M,j,U,V,d,p,T)=>{let R=0;const B=x.length;let W=m.length-1,C=B-1;for(;R<=W&&R<=C;){const L=m[R],X=x[R]=T?Qt(x[R]):It(x[R]);if(Nn(L,X))E(L,X,M,null,U,V,d,p,T);else break;R++}for(;R<=W&&R<=C;){const L=m[W],X=x[C]=T?Qt(x[C]):It(x[C]);if(Nn(L,X))E(L,X,M,null,U,V,d,p,T);else break;W--,C--}if(R>W){if(R<=C){const L=C+1,X=L<B?x[L].el:j;for(;R<=C;)E(null,x[R]=T?Qt(x[R]):It(x[R]),M,X,U,V,d,p,T),R++}}else if(R>C)for(;R<=W;)fe(m[R],U,V,!0),R++;else{const L=R,X=R,re=new Map;for(R=X;R<=C;R++){const ot=x[R]=T?Qt(x[R]):It(x[R]);ot.key!=null&&re.set(ot.key,R)}let pe,He=0;const Ve=C-X+1;let ct=!1,mt=0;const rn=new Array(Ve);for(R=0;R<Ve;R++)rn[R]=0;for(R=L;R<=W;R++){const ot=m[R];if(He>=Ve){fe(ot,U,V,!0);continue}let yt;if(ot.key!=null)yt=re.get(ot.key);else for(pe=X;pe<=C;pe++)if(rn[pe-X]===0&&Nn(ot,x[pe])){yt=pe;break}yt===void 0?fe(ot,U,V,!0):(rn[yt-X]=R+1,yt>=mt?mt=yt:ct=!0,E(ot,x[yt],M,null,U,V,d,p,T),He++)}const hs=ct?Yu(rn):yn;for(pe=hs.length-1,R=Ve-1;R>=0;R--){const ot=X+R,yt=x[ot],On=x[ot+1],bs=ot+1<B?On.el||Xi(On):j;rn[R]===0?E(null,yt,M,bs,U,V,d,p,T):ct&&(pe<0||R!==hs[pe]?xe(yt,M,bs,2):pe--)}}},xe=(m,x,M,j,U=null)=>{const{el:V,type:d,transition:p,children:T,shapeFlag:R}=m;if(R&6){xe(m.component.subTree,x,M,j);return}if(R&128){m.suspense.move(x,M,j);return}if(R&64){d.move(m,x,M,Be);return}if(d===ve){s(V,x,M);for(let W=0;W<T.length;W++)xe(T[W],x,M,j);s(m.anchor,x,M);return}if(d===wr){_(m,x,M);return}if(j!==2&&R&1&&p)if(j===0)p.beforeEnter(V),s(V,x,M),ht(()=>p.enter(V),U);else{const{leave:W,delayLeave:C,afterLeave:L}=p,X=()=>{m.ctx.isUnmounted?r(V):s(V,x,M)},re=()=>{V._isLeaving&&V[fu](!0),W(V,()=>{X(),L&&L()})};C?C(V,X,re):re()}else s(V,x,M)},fe=(m,x,M,j=!1,U=!1)=>{const{type:V,props:d,ref:p,children:T,dynamicChildren:R,shapeFlag:B,patchFlag:W,dirs:C,cacheIndex:L}=m;if(W===-2&&(U=!1),p!=null&&(Ht(),zn(p,null,M,m,!0),Gt()),L!=null&&(x.renderCache[L]=void 0),B&256){x.ctx.deactivate(m);return}const X=B&1&&C,re=!kn(m);let pe;if(re&&(pe=d&&d.onVnodeBeforeUnmount)&&St(pe,x,m),B&6)Ue(m.component,M,j);else{if(B&128){m.suspense.unmount(M,j);return}X&&on(m,null,x,"beforeUnmount"),B&64?m.type.remove(m,x,M,Be,j):R&&!R.hasOnce&&(V!==ve||W>0&&W&64)?je(R,x,M,!1,!0):(V===ve&&W&384||!U&&B&16)&&je(T,x,M),j&&_e(m)}(re&&(pe=d&&d.onVnodeUnmounted)||X)&&ht(()=>{pe&&St(pe,x,m),X&&on(m,null,x,"unmounted")},M)},_e=m=>{const{type:x,el:M,anchor:j,transition:U}=m;if(x===ve){Se(M,j);return}if(x===wr){v(m);return}const V=()=>{r(M),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(m.shapeFlag&1&&U&&!U.persisted){const{leave:d,delayLeave:p}=U,T=()=>d(M,V);p?p(m.el,V,T):T()}else V()},Se=(m,x)=>{let M;for(;m!==x;)M=h(m),r(m),m=M;r(x)},Ue=(m,x,M)=>{const{bum:j,scope:U,job:V,subTree:d,um:p,m:T,a:R}=m;Ko(T),Ko(R),j&&mr(j),U.stop(),V&&(V.flags|=8,fe(d,m,x,M)),p&&ht(p,x),ht(()=>{m.isUnmounted=!0},x)},je=(m,x,M,j=!1,U=!1,V=0)=>{for(let d=V;d<m.length;d++)fe(m[d],x,M,j,U)},ke=m=>{if(m.shapeFlag&6)return ke(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=h(m.anchor||m.el),M=x&&x[uu];return M?h(M):x};let st=!1;const rt=(m,x,M)=>{let j;m==null?x._vnode&&(fe(x._vnode,null,null,!0),j=x._vnode.component):E(x._vnode||null,m,x,null,null,null,M),x._vnode=m,st||(st=!0,No(j),Ri(),st=!1)},Be={p:E,um:fe,m:xe,r:_e,mt:le,mc:G,pc:$,pbc:ye,n:ke,o:e};return{render:rt,hydrate:void 0,createApp:Lu(rt)}}function xr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ln({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function qu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yi(e,t,n=!1){const s=e.children,r=t.children;if(ae(s)&&ae(r))for(let o=0;o<s.length;o++){const l=s[o];let i=r[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[o]=Qt(r[o]),i.el=l.el),!n&&i.patchFlag!==-2&&Yi(l,i)),i.type===fs&&(i.patchFlag!==-1?i.el=l.el:i.__elIndex=o+(e.type===ve?1:0)),i.type===Bt&&!i.el&&(i.el=l.el)}}function Yu(e){const t=e.slice(),n=[0];let s,r,o,l,i;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,l=n.length-1;o<l;)i=o+l>>1,e[n[i]]<c?o=i+1:l=i;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}function Ji(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ji(t)}function Ko(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Xi(t.subTree):null}const Qi=e=>e.__isSuspense;function Ju(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):ou(e)}const ve=Symbol.for("v-fgt"),fs=Symbol.for("v-txt"),Bt=Symbol.for("v-cmt"),wr=Symbol.for("v-stc"),Yn=[];let bt=null;function O(e=!1){Yn.push(bt=e?null:[])}function Xu(){Yn.pop(),bt=Yn[Yn.length-1]||null}let Zn=1;function Gs(e,t=!1){Zn+=e,e<0&&bt&&t&&(bt.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Zn>0?bt||yn:null,Xu(),Zn>0&&bt&&bt.push(e),e}function D(e,t,n,s,r,o){return Zi(w(e,t,n,s,r,o,!0))}function pt(e,t,n,s,r){return Zi(K(e,t,n,s,r,!0))}function es(e){return e?e.__v_isVNode===!0:!1}function Nn(e,t){return e.type===t.type&&e.key===t.key}const ea=({key:e})=>e??null,$s=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ke(e)||Fe(e)||ue(e)?{i:nt,r:e,k:t,f:!!n}:e:null);function w(e,t=null,n=null,s=0,r=null,o=e===ve?0:1,l=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ea(t),ref:t&&$s(t),scopeId:Ii,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:nt};return i?(xo(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=Ke(n)?8:16),Zn>0&&!l&&bt&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&bt.push(a),a}const K=Qu;function Qu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===ku)&&(e=Bt),es(e)){const i=Sn(e,t,!0);return n&&xo(i,n),Zn>0&&!o&&bt&&(i.shapeFlag&6?bt[bt.indexOf(e)]=i:bt.push(i)),i.patchFlag=-2,i}if(ld(e)&&(e=e.__vccOpts),t){t=Zu(t);let{class:i,style:a}=t;i&&!Ke(i)&&(t.class=Ae(i)),Ne(a)&&(sr(a)&&!ae(a)&&(a=Qe({},a)),t.style=cs(a))}const l=Ke(e)?1:Qi(e)?128:du(e)?64:Ne(e)?4:ue(e)?2:0;return w(e,t,n,s,r,l,o,!0)}function Zu(e){return e?sr(e)||Hi(e)?Qe({},e):e:null}function Sn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:l,children:i,transition:a}=e,c=t?mn(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ea(c),ref:t&&t.ref?n&&o?ae(o)?o.concat($s(t)):[o,$s(t)]:$s(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Sn(e.ssContent),ssFallback:e.ssFallback&&Sn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&ho(u,a.clone(u)),u}function me(e=" ",t=0){return K(fs,null,e,t)}function ce(e="",t=!1){return t?(O(),pt(Bt,null,e)):K(Bt,null,e)}function It(e){return e==null||typeof e=="boolean"?K(Bt):ae(e)?K(ve,null,e.slice()):es(e)?Qt(e):K(fs,null,String(e))}function Qt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Sn(e)}function xo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ae(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),xo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Hi(t)?t._ctx=nt:r===3&&nt&&(nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:nt},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mn(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Ae([t.class,s.class]));else if(r==="style")t.style=cs([t.style,s.style]);else if(Xs(r)){const o=t[r],l=s[r];l&&o!==l&&!(ae(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=s[r])}return t}function St(e,t,n,s=null){$t(e,t,7,[n,s])}const ed=Ui();let td=0;function nd(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ed,o={uid:td++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ai(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ki(s,r),emitsOptions:Vi(s,r),emit:null,emitted:null,propsDefaults:Ie,inheritAttrs:s.inheritAttrs,ctx:Ie,data:Ie,props:Ie,attrs:Ie,slots:Ie,refs:Ie,setupState:Ie,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ou.bind(null,o),e.ce&&e.ce(o),o}let at=null;const ir=()=>at||nt;let Ks,Vr;{const e=tr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(l=>l(o)):r[0](o)}};Ks=t("__VUE_INSTANCE_SETTERS__",n=>at=n),Vr=t("__VUE_SSR_SETTERS__",n=>ts=n)}const ps=e=>{const t=at;return Ks(e),e.scope.on(),()=>{e.scope.off(),Ks(t)}},Bo=()=>{at&&at.scope.off(),Ks(null)};function ta(e){return e.vnode.shapeFlag&4}let ts=!1;function sd(e,t=!1,n=!1){t&&Vr(t);const{props:s,children:r}=e.vnode,o=ta(e);Vu(e,s,o,t),Gu(e,r,n||t);const l=o?rd(e,t):void 0;return t&&Vr(!1),l}function rd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tu);const{setup:s}=n;if(s){Ht();const r=e.setupContext=s.length>1?sa(e):null,o=ps(e),l=us(s,e,0,[e.props,r]),i=ei(l);if(Gt(),o(),(i||e.sp)&&!kn(e)&&$i(e),i){if(l.then(Bo,Bo),t)return l.then(a=>{zo(e,a)}).catch(a=>{rr(a,e,0)});e.asyncDep=l}else zo(e,l)}else na(e)}function zo(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ne(t)&&(e.setupState=Ti(t)),na(e)}function na(e,t,n){const s=e.type;e.render||(e.render=s.render||Mt);{const r=ps(e);Ht();try{Su(e)}finally{Gt(),r()}}}const od={get(e,t){return tt(e,"get",""),e[t]}};function sa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,od),slots:e.slots,emit:e.emit,expose:t}}function ar(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ti(Bc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in qn)return qn[n](e)},has(t,n){return n in t||n in qn}})):e.proxy}function ld(e){return ue(e)&&"__vccOpts"in e}const H=(e,t)=>eu(e,t,ts);function ra(e,t,n){try{Gs(-1);const s=arguments.length;return s===2?Ne(t)&&!ae(t)?es(t)?K(e,null,[t]):K(e,t):K(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&es(n)&&(n=[n]),K(e,t,n))}finally{Gs(1)}}const id="3.5.27";let Wr;const qo=typeof window<"u"&&window.trustedTypes;if(qo)try{Wr=qo.createPolicy("vue",{createHTML:e=>e})}catch{}const oa=Wr?e=>Wr.createHTML(e):e=>e,ad="http://www.w3.org/2000/svg",cd="http://www.w3.org/1998/Math/MathML",Ft=typeof document<"u"?document:null,Yo=Ft&&Ft.createElement("template"),ud={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ft.createElementNS(ad,e):t==="mathml"?Ft.createElementNS(cd,e):n?Ft.createElement(e,{is:n}):Ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Yo.innerHTML=oa(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Yo.content;if(s==="svg"||s==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dd=Symbol("_vtc");function fd(e,t,n){const s=e[dd];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Bs=Symbol("_vod"),la=Symbol("_vsh"),ws={name:"show",beforeMount(e,{value:t},{transition:n}){e[Bs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Fn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Fn(e,!0),s.enter(e)):s.leave(e,()=>{Fn(e,!1)}):Fn(e,t))},beforeUnmount(e,{value:t}){Fn(e,t)}};function Fn(e,t){e.style.display=t?e[Bs]:"none",e[la]=!t}const pd=Symbol(""),gd=/(?:^|;)\s*display\s*:/;function md(e,t,n){const s=e.style,r=Ke(n);let o=!1;if(n&&!r){if(t)if(Ke(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&Os(s,i,"")}else for(const l in t)n[l]==null&&Os(s,l,"");for(const l in n)l==="display"&&(o=!0),Os(s,l,n[l])}else if(r){if(t!==n){const l=s[pd];l&&(n+=";"+l),s.cssText=n,o=gd.test(n)}}else t&&e.removeAttribute("style");Bs in e&&(e[Bs]=o?s.display:"",e[la]&&(s.display="none"))}const Jo=/\s*!important$/;function Os(e,t,n){if(ae(n))n.forEach(s=>Os(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=hd(e,t);Jo.test(n)?e.setProperty(gn(s),n.replace(Jo,""),"important"):e[s]=n}}const Xo=["Webkit","Moz","ms"],kr={};function hd(e,t){const n=kr[t];if(n)return n;let s=en(t);if(s!=="filter"&&s in e)return kr[t]=s;s=si(s);for(let r=0;r<Xo.length;r++){const o=Xo[r]+s;if(o in e)return kr[t]=o}return t}const Qo="http://www.w3.org/1999/xlink";function Zo(e,t,n,s,r,o=kc(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Qo,t.slice(6,t.length)):e.setAttributeNS(Qo,t,n):n==null||o&&!oi(n)?e.removeAttribute(t):e.setAttribute(t,o?"":zt(n)?String(n):n)}function el(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?oa(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=oi(n):n==null&&i==="string"?(n="",l=!0):i==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(r||t)}function bd(e,t,n,s){e.addEventListener(t,n,s)}function _d(e,t,n,s){e.removeEventListener(t,n,s)}const tl=Symbol("_vei");function vd(e,t,n,s,r=null){const o=e[tl]||(e[tl]={}),l=o[t];if(s&&l)l.value=s;else{const[i,a]=yd(t);if(s){const c=o[t]=kd(s,r);bd(e,i,c,a)}else l&&(_d(e,i,l,a),o[t]=void 0)}}const nl=/(?:Once|Passive|Capture)$/;function yd(e){let t;if(nl.test(e)){t={};let s;for(;s=e.match(nl);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):gn(e.slice(2)),t]}let Tr=0;const xd=Promise.resolve(),wd=()=>Tr||(xd.then(()=>Tr=0),Tr=Date.now());function kd(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;$t(Td(s,n.value),t,5,[s])};return n.value=e,n.attached=wd(),n}function Td(e,t){if(ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const sl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cd=(e,t,n,s,r,o)=>{const l=r==="svg";t==="class"?fd(e,s,l):t==="style"?md(e,n,s):Xs(t)?oo(t)||vd(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sd(e,t,s,l))?(el(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Zo(e,t,s,l,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ke(s))?el(e,en(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Zo(e,t,s,l))};function Sd(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&sl(t)&&ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return sl(t)&&Ke(n)?!1:t in e}const Ed=["ctrl","shift","alt","meta"],Rd={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)=>Ed.some(n=>e[`${n}Key`]&&!t.includes(n))},ks=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let l=0;l<t.length;l++){const i=Rd[t[l]];if(i&&i(r,t))return}return e(r,...o)}))},Pd=Qe({patchProp:Cd},ud);let rl;function Id(){return rl||(rl=Bu(Pd))}const Md=((...e)=>{const t=Id().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=$d(s);if(!r)return;const o=t._component;!ue(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,Ld(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function Ld(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $d(e){return Ke(e)?document.querySelector(e):e}function Od(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const zs=typeof window<"u",tn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ad=(e,t,n)=>Nd({l:e,k:t,s:n}),Nd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ge=e=>typeof e=="number"&&isFinite(e),Fd=e=>wo(e)==="[object Date]",En=e=>wo(e)==="[object RegExp]",cr=e=>be(e)&&Object.keys(e).length===0,Ye=Object.assign,Dd=Object.create,Pe=(e=null)=>Dd(e);let ol;const un=()=>ol||(ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Pe());function ll(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function il(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ud(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${il(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${il(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript&#58;")}),e}const Vd=Object.prototype.hasOwnProperty;function kt(e,t){return Vd.call(e,t)}const We=Array.isArray,Oe=e=>typeof e=="function",Y=e=>typeof e=="string",we=e=>typeof e=="boolean",Ce=e=>e!==null&&typeof e=="object",Wd=e=>Ce(e)&&Oe(e.then)&&Oe(e.catch),ia=Object.prototype.toString,wo=e=>ia.call(e),be=e=>wo(e)==="[object Object]",jd=e=>e==null?"":We(e)||be(e)&&e.toString===ia?JSON.stringify(e,null,2):String(e);function ko(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const Ts=e=>!Ce(e)||We(e);function As(e,t){if(Ts(e)||Ts(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:r}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(Ce(s[o])&&!Ce(r[o])&&(r[o]=Array.isArray(s[o])?[]:Pe()),Ts(r[o])||Ts(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}function Hd(e,t,n){return{line:e,column:t,offset:n}}function jr(e,t,n){return{start:e,end:t}}const Ee={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Gd=17;function ur(e,t,n={}){const{domain:s,messages:r,args:o}=n,l=e,i=new SyntaxError(String(l));return i.code=e,t&&(i.location=t),i.domain=s,i}function Kd(e){throw e}const Et=" ",Bd="\r",et=`
2
+ `,zd="\u2028",qd="\u2029";function Yd(e){const t=e;let n=0,s=1,r=1,o=0;const l=A=>t[A]===Bd&&t[A+1]===et,i=A=>t[A]===et,a=A=>t[A]===qd,c=A=>t[A]===zd,u=A=>l(A)||i(A)||a(A)||c(A),f=()=>n,h=()=>s,b=()=>r,k=()=>o,E=A=>l(A)||a(A)||c(A)?et:t[A],P=()=>E(n),g=()=>E(n+o);function y(){return o=0,u(n)&&(s++,r=0),l(n)&&n++,n++,r++,t[n]}function _(){return l(n+o)&&o++,o++,t[n+o]}function v(){n=0,s=1,r=1,o=0}function I(A=0){o=A}function F(){const A=n+o;for(;A!==n;)y();o=0}return{index:f,line:h,column:b,peekOffset:k,charAt:E,currentChar:P,currentPeek:g,next:y,peek:_,reset:v,resetPeek:I,skipToPeek:F}}const At=void 0,Jd=".",al="'",Xd="tokenizer";function Qd(e,t={}){const n=t.location!==!1,s=Yd(e),r=()=>s.index(),o=()=>Hd(s.line(),s.column(),s.index()),l=o(),i=r(),a={currentType:13,offset:i,startLoc:l,endLoc:l,lastType:13,lastOffset:i,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>a,{onError:u}=t;function f(d,p,T,...R){const B=c();if(p.column+=T,p.offset+=T,u){const W=n?jr(B.startLoc,p):null,C=ur(d,W,{domain:Xd,args:R});u(C)}}function h(d,p,T){d.endLoc=o(),d.currentType=p;const R={type:p};return n&&(R.loc=jr(d.startLoc,d.endLoc)),T!=null&&(R.value=T),R}const b=d=>h(d,13);function k(d,p){return d.currentChar()===p?(d.next(),p):(f(Ee.EXPECTED_TOKEN,o(),0,p),"")}function E(d){let p="";for(;d.currentPeek()===Et||d.currentPeek()===et;)p+=d.currentPeek(),d.peek();return p}function P(d){const p=E(d);return d.skipToPeek(),p}function g(d){if(d===At)return!1;const p=d.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function y(d){if(d===At)return!1;const p=d.charCodeAt(0);return p>=48&&p<=57}function _(d,p){const{currentType:T}=p;if(T!==2)return!1;E(d);const R=g(d.currentPeek());return d.resetPeek(),R}function v(d,p){const{currentType:T}=p;if(T!==2)return!1;E(d);const R=d.currentPeek()==="-"?d.peek():d.currentPeek(),B=y(R);return d.resetPeek(),B}function I(d,p){const{currentType:T}=p;if(T!==2)return!1;E(d);const R=d.currentPeek()===al;return d.resetPeek(),R}function F(d,p){const{currentType:T}=p;if(T!==7)return!1;E(d);const R=d.currentPeek()===".";return d.resetPeek(),R}function A(d,p){const{currentType:T}=p;if(T!==8)return!1;E(d);const R=g(d.currentPeek());return d.resetPeek(),R}function G(d,p){const{currentType:T}=p;if(!(T===7||T===11))return!1;E(d);const R=d.currentPeek()===":";return d.resetPeek(),R}function oe(d,p){const{currentType:T}=p;if(T!==9)return!1;const R=()=>{const W=d.currentPeek();return W==="{"?g(d.peek()):W==="@"||W==="|"||W===":"||W==="."||W===Et||!W?!1:W===et?(d.peek(),R()):he(d,!1)},B=R();return d.resetPeek(),B}function ye(d){E(d);const p=d.currentPeek()==="|";return d.resetPeek(),p}function he(d,p=!0){const T=(B=!1,W="")=>{const C=d.currentPeek();return C==="{"||C==="@"||!C?B:C==="|"?!(W===Et||W===et):C===Et?(d.peek(),T(!0,Et)):C===et?(d.peek(),T(!0,et)):!0},R=T();return p&&d.resetPeek(),R}function de(d,p){const T=d.currentChar();return T===At?At:p(T)?(d.next(),T):null}function De(d){const p=d.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function le(d){return de(d,De)}function ie(d){const p=d.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36||p===45}function J(d){return de(d,ie)}function ee(d){const p=d.charCodeAt(0);return p>=48&&p<=57}function $(d){return de(d,ee)}function z(d){const p=d.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function se(d){return de(d,z)}function xe(d){let p="",T="";for(;p=$(d);)T+=p;return T}function fe(d){let p="";for(;;){const T=d.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===Et||T===et)if(he(d))p+=T,d.next();else{if(ye(d))break;p+=T,d.next()}else p+=T,d.next()}return p}function _e(d){P(d);let p="",T="";for(;p=J(d);)T+=p;const R=d.currentChar();if(R&&R!=="}"&&R!==At&&R!==Et&&R!==et&&R!==" "){const B=Be(d);return f(Ee.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,T+B),T+B}return d.currentChar()===At&&f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T}function Se(d){P(d);let p="";return d.currentChar()==="-"?(d.next(),p+=`-${xe(d)}`):p+=xe(d),d.currentChar()===At&&f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),p}function Ue(d){return d!==al&&d!==et}function je(d){P(d),k(d,"'");let p="",T="";for(;p=de(d,Ue);)p==="\\"?T+=ke(d):T+=p;const R=d.currentChar();return R===et||R===At?(f(Ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),R===et&&(d.next(),k(d,"'")),T):(k(d,"'"),T)}function ke(d){const p=d.currentChar();switch(p){case"\\":case"'":return d.next(),`\\${p}`;case"u":return st(d,p,4);case"U":return st(d,p,6);default:return f(Ee.UNKNOWN_ESCAPE_SEQUENCE,o(),0,p),""}}function st(d,p,T){k(d,p);let R="";for(let B=0;B<T;B++){const W=se(d);if(!W){f(Ee.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${p}${R}${d.currentChar()}`);break}R+=W}return`\\${p}${R}`}function rt(d){return d!=="{"&&d!=="}"&&d!==Et&&d!==et}function Be(d){P(d);let p="",T="";for(;p=de(d,rt);)T+=p;return T}function q(d){let p="",T="";for(;p=le(d);)T+=p;return T}function m(d){const p=T=>{const R=d.currentChar();return R==="{"||R==="@"||R==="|"||R==="("||R===")"||!R||R===Et?T:(T+=R,d.next(),p(T))};return p("")}function x(d){P(d);const p=k(d,"|");return P(d),p}function M(d,p){let T=null;switch(d.currentChar()){case"{":return p.braceNest>=1&&f(Ee.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),d.next(),T=h(p,2,"{"),P(d),p.braceNest++,T;case"}":return p.braceNest>0&&p.currentType===2&&f(Ee.EMPTY_PLACEHOLDER,o(),0),d.next(),T=h(p,3,"}"),p.braceNest--,p.braceNest>0&&P(d),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),T;case"@":return p.braceNest>0&&f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T=j(d,p)||b(p),p.braceNest=0,T;default:{let B=!0,W=!0,C=!0;if(ye(d))return p.braceNest>0&&f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T=h(p,1,x(d)),p.braceNest=0,p.inLinked=!1,T;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),p.braceNest=0,U(d,p);if(B=_(d,p))return T=h(p,4,_e(d)),P(d),T;if(W=v(d,p))return T=h(p,5,Se(d)),P(d),T;if(C=I(d,p))return T=h(p,6,je(d)),P(d),T;if(!B&&!W&&!C)return T=h(p,12,Be(d)),f(Ee.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,T.value),P(d),T;break}}return T}function j(d,p){const{currentType:T}=p;let R=null;const B=d.currentChar();switch((T===7||T===8||T===11||T===9)&&(B===et||B===Et)&&f(Ee.INVALID_LINKED_FORMAT,o(),0),B){case"@":return d.next(),R=h(p,7,"@"),p.inLinked=!0,R;case".":return P(d),d.next(),h(p,8,".");case":":return P(d),d.next(),h(p,9,":");default:return ye(d)?(R=h(p,1,x(d)),p.braceNest=0,p.inLinked=!1,R):F(d,p)||G(d,p)?(P(d),j(d,p)):A(d,p)?(P(d),h(p,11,q(d))):oe(d,p)?(P(d),B==="{"?M(d,p)||R:h(p,10,m(d))):(T===7&&f(Ee.INVALID_LINKED_FORMAT,o(),0),p.braceNest=0,p.inLinked=!1,U(d,p))}}function U(d,p){let T={type:13};if(p.braceNest>0)return M(d,p)||b(p);if(p.inLinked)return j(d,p)||b(p);switch(d.currentChar()){case"{":return M(d,p)||b(p);case"}":return f(Ee.UNBALANCED_CLOSING_BRACE,o(),0),d.next(),h(p,3,"}");case"@":return j(d,p)||b(p);default:{if(ye(d))return T=h(p,1,x(d)),p.braceNest=0,p.inLinked=!1,T;if(he(d))return h(p,0,fe(d));break}}return T}function V(){const{currentType:d,offset:p,startLoc:T,endLoc:R}=a;return a.lastType=d,a.lastOffset=p,a.lastStartLoc=T,a.lastEndLoc=R,a.offset=r(),a.startLoc=o(),s.currentChar()===At?h(a,13):U(s,a)}return{nextToken:V,currentOffset:r,currentPosition:o,context:c}}const Zd="parser",ef=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function tf(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function nf(e={}){const t=e.location!==!1,{onError:n}=e;function s(g,y,_,v,...I){const F=g.currentPosition();if(F.offset+=v,F.column+=v,n){const A=t?jr(_,F):null,G=ur(y,A,{domain:Zd,args:I});n(G)}}function r(g,y,_){const v={type:g};return t&&(v.start=y,v.end=y,v.loc={start:_,end:_}),v}function o(g,y,_,v){t&&(g.end=y,g.loc&&(g.loc.end=_))}function l(g,y){const _=g.context(),v=r(3,_.offset,_.startLoc);return v.value=y,o(v,g.currentOffset(),g.currentPosition()),v}function i(g,y){const _=g.context(),{lastOffset:v,lastStartLoc:I}=_,F=r(5,v,I);return F.index=parseInt(y,10),g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function a(g,y){const _=g.context(),{lastOffset:v,lastStartLoc:I}=_,F=r(4,v,I);return F.key=y,g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function c(g,y){const _=g.context(),{lastOffset:v,lastStartLoc:I}=_,F=r(9,v,I);return F.value=y.replace(ef,tf),g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function u(g){const y=g.nextToken(),_=g.context(),{lastOffset:v,lastStartLoc:I}=_,F=r(8,v,I);return y.type!==11?(s(g,Ee.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),F.value="",o(F,v,I),{nextConsumeToken:y,node:F}):(y.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(y)),F.value=y.value||"",o(F,g.currentOffset(),g.currentPosition()),{node:F})}function f(g,y){const _=g.context(),v=r(7,_.offset,_.startLoc);return v.value=y,o(v,g.currentOffset(),g.currentPosition()),v}function h(g){const y=g.context(),_=r(6,y.offset,y.startLoc);let v=g.nextToken();if(v.type===8){const I=u(g);_.modifier=I.node,v=I.nextConsumeToken||g.nextToken()}switch(v.type!==9&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),v=g.nextToken(),v.type===2&&(v=g.nextToken()),v.type){case 10:v.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),_.key=f(g,v.value||"");break;case 4:v.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),_.key=a(g,v.value||"");break;case 5:v.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),_.key=i(g,v.value||"");break;case 6:v.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),_.key=c(g,v.value||"");break;default:{s(g,Ee.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const I=g.context(),F=r(7,I.offset,I.startLoc);return F.value="",o(F,I.offset,I.startLoc),_.key=F,o(_,I.offset,I.startLoc),{nextConsumeToken:v,node:_}}}return o(_,g.currentOffset(),g.currentPosition()),{node:_}}function b(g){const y=g.context(),_=y.currentType===1?g.currentOffset():y.offset,v=y.currentType===1?y.endLoc:y.startLoc,I=r(2,_,v);I.items=[];let F=null;do{const oe=F||g.nextToken();switch(F=null,oe.type){case 0:oe.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(oe)),I.items.push(l(g,oe.value||""));break;case 5:oe.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(oe)),I.items.push(i(g,oe.value||""));break;case 4:oe.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(oe)),I.items.push(a(g,oe.value||""));break;case 6:oe.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(oe)),I.items.push(c(g,oe.value||""));break;case 7:{const ye=h(g);I.items.push(ye.node),F=ye.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const A=y.currentType===1?y.lastOffset:g.currentOffset(),G=y.currentType===1?y.lastEndLoc:g.currentPosition();return o(I,A,G),I}function k(g,y,_,v){const I=g.context();let F=v.items.length===0;const A=r(1,y,_);A.cases=[],A.cases.push(v);do{const G=b(g);F||(F=G.items.length===0),A.cases.push(G)}while(I.currentType!==13);return F&&s(g,Ee.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),o(A,g.currentOffset(),g.currentPosition()),A}function E(g){const y=g.context(),{offset:_,startLoc:v}=y,I=b(g);return y.currentType===13?I:k(g,_,v,I)}function P(g){const y=Qd(g,Ye({},e)),_=y.context(),v=r(0,_.offset,_.startLoc);return t&&v.loc&&(v.loc.source=g),v.body=E(y),e.onCacheKey&&(v.cacheKey=e.onCacheKey(g)),_.currentType!==13&&s(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,g[_.offset]||""),o(v,y.currentOffset(),y.currentPosition()),v}return{parse:P}}function Rt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function sf(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function cl(e,t){for(let n=0;n<e.length;n++)To(e[n],t)}function To(e,t){switch(e.type){case 1:cl(e.cases,t),t.helper("plural");break;case 2:cl(e.items,t);break;case 6:{To(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function rf(e,t={}){const n=sf(e);n.helper("normalize"),e.body&&To(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function of(e){const t=e.body;return t.type===2?ul(t):t.cases.forEach(n=>ul(n)),e}function ul(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=ko(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function vn(e){switch(e.t=e.type,e.type){case 0:{const t=e;vn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)vn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)vn(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;vn(t.key),t.k=t.key,delete t.key,t.modifier&&(vn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function lf(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,l={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(l.source=e.loc.source);const i=()=>l;function a(E,P){l.code+=E}function c(E,P=!0){const g=P?s:"";a(r?g+" ".repeat(E):g)}function u(E=!0){const P=++l.indentLevel;E&&c(P)}function f(E=!0){const P=--l.indentLevel;E&&c(P)}function h(){c(l.indentLevel)}return{context:i,push:a,indent:u,deindent:f,newline:h,helper:E=>`_${E}`,needIndent:()=>l.needIndent}}function af(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Rn(e,t.key),t.modifier?(e.push(", "),Rn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function cf(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o<r&&(Rn(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function uf(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let o=0;o<r&&(Rn(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function df(e,t){t.body?Rn(e,t.body):e.push("null")}function Rn(e,t){const{helper:n}=e;switch(t.type){case 0:df(e,t);break;case 1:uf(e,t);break;case 2:cf(e,t);break;case 6:af(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const ff=(e,t={})=>{const n=Y(t.mode)?t.mode:"normal",s=Y(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
3
+ `,o=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],i=lf(e,{filename:s,breakLineCode:r,needIndent:o});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(o),l.length>0&&(i.push(`const { ${ko(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),i.newline()),i.push("return "),Rn(i,e),i.deindent(o),i.push("}"),delete e.helpers;const{code:a,map:c}=i.context();return{ast:e,code:a,map:c?c.toJSON():void 0}};function pf(e,t={}){const n=Ye({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,i=nf(n).parse(e);return s?(o&&of(i),r&&vn(i),{ast:i,code:""}):(rf(i,n),ff(i,n))}function gf(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(un().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(un().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Lt(e){return Ce(e)&&Co(e)===0&&(kt(e,"b")||kt(e,"body"))}const aa=["b","body"];function mf(e){return nn(e,aa)}const ca=["c","cases"];function hf(e){return nn(e,ca,[])}const ua=["s","static"];function bf(e){return nn(e,ua)}const da=["i","items"];function _f(e){return nn(e,da,[])}const fa=["t","type"];function Co(e){return nn(e,fa)}const pa=["v","value"];function Cs(e,t){const n=nn(e,pa);if(n!=null)return n;throw ns(t)}const ga=["m","modifier"];function vf(e){return nn(e,ga)}const ma=["k","key"];function yf(e){const t=nn(e,ma);if(t)return t;throw ns(6)}function nn(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if(kt(e,r)&&e[r]!=null)return e[r]}return n}const ha=[...aa,...ca,...ua,...da,...ma,...ga,...pa,...fa];function ns(e){return new Error(`unhandled node type: ${e}`)}function Cr(e){return n=>xf(n,e)}function xf(e,t){const n=mf(t);if(n==null)throw ns(0);if(Co(n)===1){const o=hf(n);return e.plural(o.reduce((l,i)=>[...l,dl(e,i)],[]))}else return dl(e,n)}function dl(e,t){const n=bf(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=_f(t).reduce((r,o)=>[...r,Hr(e,o)],[]);return e.normalize(s)}}function Hr(e,t){const n=Co(t);switch(n){case 3:return Cs(t,n);case 9:return Cs(t,n);case 4:{const s=t;if(kt(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(kt(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw ns(n)}case 5:{const s=t;if(kt(s,"i")&&Ge(s.i))return e.interpolate(e.list(s.i));if(kt(s,"index")&&Ge(s.index))return e.interpolate(e.list(s.index));throw ns(n)}case 6:{const s=t,r=vf(s),o=yf(s);return e.linked(Hr(e,o),r?Hr(e,r):void 0,e.type)}case 7:return Cs(t,n);case 8:return Cs(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const wf=e=>e;let Ss=Pe();function kf(e,t={}){let n=!1;const s=t.onError||Kd;return t.onError=r=>{n=!0,s(r)},{...pf(e,t),detectError:n}}function Tf(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Y(e)){we(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||wf)(e),r=Ss[s];if(r)return r;const{ast:o,detectError:l}=kf(e,{...t,location:!1,jit:!0}),i=Cr(o);return l?i:Ss[s]=i}else{const n=e.cacheKey;if(n){const s=Ss[n];return s||(Ss[n]=Cr(e))}else return Cr(e)}}let ss=null;function Cf(e){ss=e}function Sf(e,t,n){ss&&ss.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Ef=Rf("function:translate");function Rf(e){return t=>ss&&ss.emit(e,t)}const Wt={INVALID_ARGUMENT:Gd,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Pf=24;function jt(e){return ur(e,null,void 0)}function So(e,t){return t.locale!=null?fl(t.locale):fl(e.locale)}let Sr;function fl(e){if(Y(e))return e;if(Oe(e)){if(e.resolvedOnce&&Sr!=null)return Sr;if(e.constructor.name==="Function"){const t=e();if(Wd(t))throw jt(Wt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Sr=t}else throw jt(Wt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw jt(Wt.NOT_SUPPORT_LOCALE_TYPE)}function If(e,t,n){return[...new Set([n,...We(t)?t:Ce(t)?Object.keys(t):Y(t)?[t]:[n]])]}function ba(e,t,n){const s=Y(n)?n:rs,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let l=[n];for(;We(l);)l=pl(o,l,t);const i=We(t)||!be(t)?t:t.default?t.default:null;l=Y(i)?[i]:i,We(l)&&pl(o,l,!1),r.__localeChainCache.set(s,o)}return o}function pl(e,t,n){let s=!0;for(let r=0;r<t.length&&we(s);r++){const o=t[r];Y(o)&&(s=Mf(e,t[r],n))}return s}function Mf(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=Lf(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function Lf(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(We(n)||be(n))&&n[r]&&(s=n[r])}return s}const sn=[];sn[0]={w:[0],i:[3,0],"[":[4],o:[7]};sn[1]={w:[1],".":[2],"[":[4],o:[7]};sn[2]={w:[2],i:[3,0],0:[3,0]};sn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};sn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};sn[5]={"'":[4,0],o:8,l:[5,0]};sn[6]={'"':[4,0],o:8,l:[6,0]};const $f=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Of(e){return $f.test(e)}function Af(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Nf(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ff(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Of(t)?Af(t):"*"+t}function Df(e){const t=[];let n=-1,s=0,r=0,o,l,i,a,c,u,f;const h=[];h[0]=()=>{l===void 0?l=i:l+=i},h[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,s=4,h[0]();else{if(r=0,l===void 0||(l=Ff(l),l===!1))return!1;h[1]()}};function b(){const k=e[n+1];if(s===5&&k==="'"||s===6&&k==='"')return n++,i="\\"+k,h[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&b())){if(a=Nf(o),f=sn[s],c=f[a]||f.l||8,c===8||(s=c[0],c[1]!==void 0&&(u=h[c[1]],u&&(i=o,u()===!1))))return;if(s===7)return t}}const gl=new Map;function Uf(e,t){return Ce(e)?e[t]:null}function Vf(e,t){if(!Ce(e))return null;let n=gl.get(t);if(n||(n=Df(t),n&&gl.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const l=n[o];if(ha.includes(l)&&Lt(r))return null;const i=r[l];if(i===void 0||Oe(r))return null;r=i,o++}return r}const Wf="11.2.8",dr=-1,rs="en-US",ml="",hl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function jf(){return{upper:(e,t)=>t==="text"&&Y(e)?e.toUpperCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Y(e)?e.toLowerCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Y(e)?hl(e):t==="vnode"&&Ce(e)&&"__v_isVNode"in e?hl(e.children):e}}let _a;function Hf(e){_a=e}let va;function Gf(e){va=e}let ya;function Kf(e){ya=e}let xa=null;const Bf=e=>{xa=e},zf=()=>xa;let wa=null;const bl=e=>{wa=e},qf=()=>wa;let _l=0;function Yf(e={}){const t=Oe(e.onWarn)?e.onWarn:Od,n=Y(e.version)?e.version:Wf,s=Y(e.locale)||Oe(e.locale)?e.locale:rs,r=Oe(s)?rs:s,o=We(e.fallbackLocale)||be(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,l=be(e.messages)?e.messages:Er(r),i=be(e.datetimeFormats)?e.datetimeFormats:Er(r),a=be(e.numberFormats)?e.numberFormats:Er(r),c=Ye(Pe(),e.modifiers,jf()),u=e.pluralRules||Pe(),f=Oe(e.missing)?e.missing:null,h=we(e.missingWarn)||En(e.missingWarn)?e.missingWarn:!0,b=we(e.fallbackWarn)||En(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,E=!!e.unresolving,P=Oe(e.postTranslation)?e.postTranslation:null,g=be(e.processor)?e.processor:null,y=we(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,v=Oe(e.messageCompiler)?e.messageCompiler:_a,I=Oe(e.messageResolver)?e.messageResolver:va||Uf,F=Oe(e.localeFallbacker)?e.localeFallbacker:ya||If,A=Ce(e.fallbackContext)?e.fallbackContext:void 0,G=e,oe=Ce(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,ye=Ce(G.__numberFormatters)?G.__numberFormatters:new Map,he=Ce(G.__meta)?G.__meta:{};_l++;const de={version:n,cid:_l,locale:s,fallbackLocale:o,messages:l,modifiers:c,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:b,fallbackFormat:k,unresolving:E,postTranslation:P,processor:g,warnHtmlMessage:y,escapeParameter:_,messageCompiler:v,messageResolver:I,localeFallbacker:F,fallbackContext:A,onWarn:t,__meta:he};return de.datetimeFormats=i,de.numberFormats=a,de.__datetimeFormatters=oe,de.__numberFormatters=ye,__INTLIFY_PROD_DEVTOOLS__&&Sf(de,n,he),de}const Er=e=>({[e]:Pe()});function Eo(e,t,n,s,r){const{missing:o,onWarn:l}=e;if(o!==null){const i=o(e,n,t,r);return Y(i)?i:t}else return t}function Dn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Jf(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Xf(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Jf(e,t[s]))return!0;return!1}function vl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:i}=e,[a,c,u,f]=Gr(...t),h=we(u.missingWarn)?u.missingWarn:e.missingWarn;we(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,k=So(e,u),E=l(e,r,k);if(!Y(a)||a==="")return new Intl.DateTimeFormat(k,f).format(c);let P={},g,y=null;const _="datetime format";for(let F=0;F<E.length&&(g=E[F],P=n[g]||{},y=P[a],!be(y));F++)Eo(e,a,g,h,_);if(!be(y)||!Y(g))return s?dr:a;let v=`${g}__${a}`;cr(f)||(v=`${v}__${JSON.stringify(f)}`);let I=i.get(v);return I||(I=new Intl.DateTimeFormat(g,Ye({},y,f)),i.set(v,I)),b?I.formatToParts(c):I.format(c)}const ka=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Gr(...e){const[t,n,s,r]=e,o=Pe();let l=Pe(),i;if(Y(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw jt(Wt.INVALID_ISO_DATE_ARGUMENT);const c=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();i=new Date(c);try{i.toISOString()}catch{throw jt(Wt.INVALID_ISO_DATE_ARGUMENT)}}else if(Fd(t)){if(isNaN(t.getTime()))throw jt(Wt.INVALID_DATE_ARGUMENT);i=t}else if(Ge(t))i=t;else throw jt(Wt.INVALID_ARGUMENT);return Y(n)?o.key=n:be(n)&&Object.keys(n).forEach(a=>{ka.includes(a)?l[a]=n[a]:o[a]=n[a]}),Y(s)?o.locale=s:be(s)&&(l=s),be(r)&&(l=r),[o.key||"",i,o,l]}function yl(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function xl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:i}=e,[a,c,u,f]=Kr(...t),h=we(u.missingWarn)?u.missingWarn:e.missingWarn;we(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,k=So(e,u),E=l(e,r,k);if(!Y(a)||a==="")return new Intl.NumberFormat(k,f).format(c);let P={},g,y=null;const _="number format";for(let F=0;F<E.length&&(g=E[F],P=n[g]||{},y=P[a],!be(y));F++)Eo(e,a,g,h,_);if(!be(y)||!Y(g))return s?dr:a;let v=`${g}__${a}`;cr(f)||(v=`${v}__${JSON.stringify(f)}`);let I=i.get(v);return I||(I=new Intl.NumberFormat(g,Ye({},y,f)),i.set(v,I)),b?I.formatToParts(c):I.format(c)}const Ta=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Kr(...e){const[t,n,s,r]=e,o=Pe();let l=Pe();if(!Ge(t))throw jt(Wt.INVALID_ARGUMENT);const i=t;return Y(n)?o.key=n:be(n)&&Object.keys(n).forEach(a=>{Ta.includes(a)?l[a]=n[a]:o[a]=n[a]}),Y(s)?o.locale=s:be(s)&&(l=s),be(r)&&(l=r),[o.key||"",i,o,l]}function wl(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const Qf=e=>e,Zf=e=>"",ep="text",tp=e=>e.length===0?"":ko(e),np=jd;function kl(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function sp(e){const t=Ge(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ge(e.named.count)||Ge(e.named.n))?Ge(e.named.count)?e.named.count:Ge(e.named.n)?e.named.n:t:t}function rp(e,t){t.count||(t.count=e),t.n||(t.n=e)}function op(e={}){const t=e.locale,n=sp(e),s=Ce(e.pluralRules)&&Y(t)&&Oe(e.pluralRules[t])?e.pluralRules[t]:kl,r=Ce(e.pluralRules)&&Y(t)&&Oe(e.pluralRules[t])?kl:void 0,o=g=>g[s(n,g.length,r)],l=e.list||[],i=g=>l[g],a=e.named||Pe();Ge(e.pluralIndex)&&rp(n,a);const c=g=>a[g];function u(g,y){const _=Oe(e.messages)?e.messages(g,!!y):Ce(e.messages)?e.messages[g]:!1;return _||(e.parent?e.parent.message(g):Zf)}const f=g=>e.modifiers?e.modifiers[g]:Qf,h=be(e.processor)&&Oe(e.processor.normalize)?e.processor.normalize:tp,b=be(e.processor)&&Oe(e.processor.interpolate)?e.processor.interpolate:np,k=be(e.processor)&&Y(e.processor.type)?e.processor.type:ep,P={list:i,named:c,plural:o,linked:(g,...y)=>{const[_,v]=y;let I="text",F="";y.length===1?Ce(_)?(F=_.modifier||F,I=_.type||I):Y(_)&&(F=_||F):y.length===2&&(Y(_)&&(F=_||F),Y(v)&&(I=v||I));const A=u(g,!0)(P),G=I==="vnode"&&We(A)&&F?A[0]:A;return F?f(F)(G,I):G},message:u,type:k,interpolate:b,normalize:h,values:Ye(Pe(),l,a)};return P}const Tl=()=>"",xt=e=>Oe(e);function Cl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:l,messages:i}=e,[a,c]=Br(...t),u=we(c.missingWarn)?c.missingWarn:e.missingWarn,f=we(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=we(c.escapeParameter)?c.escapeParameter:e.escapeParameter,b=!!c.resolvedMessage,k=Y(c.default)||we(c.default)?we(c.default)?o?a:()=>a:c.default:n?o?a:()=>a:null,E=n||k!=null&&(Y(k)||Oe(k)),P=So(e,c);h&&lp(c);let[g,y,_]=b?[a,P,i[P]||Pe()]:Ca(e,a,P,l,f,u),v=g,I=a;if(!b&&!(Y(v)||Lt(v)||xt(v))&&E&&(v=k,I=v),!b&&(!(Y(v)||Lt(v)||xt(v))||!Y(y)))return r?dr:a;let F=!1;const A=()=>{F=!0},G=xt(v)?v:Sa(e,a,y,v,I,A);if(F)return v;const oe=cp(e,y,_,c),ye=op(oe),he=ip(e,G,ye);let de=s?s(he,a):he;if(h&&Y(de)&&(de=Ud(de)),__INTLIFY_PROD_DEVTOOLS__){const De={timestamp:Date.now(),key:Y(a)?a:xt(v)?v.key:"",locale:y||(xt(v)?v.locale:""),format:Y(v)?v:xt(v)?v.source:"",message:de};De.meta=Ye({},e.__meta,zf()||{}),Ef(De)}return de}function lp(e){We(e.list)?e.list=e.list.map(t=>Y(t)?ll(t):t):Ce(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=ll(e.named[t]))})}function Ca(e,t,n,s,r,o){const{messages:l,onWarn:i,messageResolver:a,localeFallbacker:c}=e,u=c(e,s,n);let f=Pe(),h,b=null;const k="translate";for(let E=0;E<u.length&&(h=u[E],f=l[h]||Pe(),(b=a(f,t))===null&&(b=f[t]),!(Y(b)||Lt(b)||xt(b)));E++)if(!Xf(h,u)){const P=Eo(e,t,h,o,k);P!==t&&(b=P)}return[b,h,f]}function Sa(e,t,n,s,r,o){const{messageCompiler:l,warnHtmlMessage:i}=e;if(xt(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(l==null){const c=(()=>s);return c.locale=n,c.key=t,c}const a=l(s,ap(e,n,r,s,i,o));return a.locale=n,a.key=t,a.source=s,a}function ip(e,t,n){return t(n)}function Br(...e){const[t,n,s]=e,r=Pe();if(!Y(t)&&!Ge(t)&&!xt(t)&&!Lt(t))throw jt(Wt.INVALID_ARGUMENT);const o=Ge(t)?String(t):(xt(t),t);return Ge(n)?r.plural=n:Y(n)?r.default=n:be(n)&&!cr(n)?r.named=n:We(n)&&(r.list=n),Ge(s)?r.plural=s:Y(s)?r.default=s:be(s)&&Ye(r,s),[o,r]}function ap(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:l=>{throw o&&o(l),l},onCacheKey:l=>Ad(t,n,l)}}function cp(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:l,fallbackLocale:i,fallbackWarn:a,missingWarn:c,fallbackContext:u}=e,h={locale:t,modifiers:r,pluralRules:o,messages:(b,k)=>{let E=l(n,b);if(E==null&&(u||k)){const[,,P]=Ca(u||e,b,t,i,a,c);E=l(P,b)}if(Y(E)||Lt(E)){let P=!1;const y=Sa(e,b,t,E,b,()=>{P=!0});return P?Tl:y}else return xt(E)?E:Tl}};return e.processor&&(h.processor=e.processor),s.list&&(h.list=s.list),s.named&&(h.named=s.named),Ge(s.plural)&&(h.pluralIndex=s.plural),h}gf();const up="11.2.8";function dp(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(un().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(un().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(un().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(un().__INTLIFY_PROD_DEVTOOLS__=!1)}const gt={UNEXPECTED_RETURN_TYPE:Pf,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function vt(e,...t){return ur(e,null,void 0)}const zr=tn("__translateVNode"),qr=tn("__datetimeParts"),Yr=tn("__numberParts"),Ea=tn("__setPluralRules"),Ra=tn("__injectWithOption"),Jr=tn("__dispose");function os(e){if(!Ce(e)||Lt(e))return e;for(const t in e)if(kt(e,t))if(!t.includes("."))Ce(e[t])&&os(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let l=0;l<s;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in r||(r[n[l]]=Pe()),!Ce(r[n[l]])){o=!0;break}r=r[n[l]]}if(o||(Lt(r)?ha.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!Lt(r)){const l=r[n[s]];Ce(l)&&os(l)}}return e}function Ro(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,l=be(n)?n:We(s)?Pe():{[e]:Pe()};if(We(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:a,resource:c}=i;a?(l[a]=l[a]||Pe(),As(c,l[a])):As(c,l)}else Y(i)&&As(JSON.parse(i),l)}),r==null&&o)for(const i in l)kt(l,i)&&os(l[i]);return l}function Pa(e){return e.type}function Ia(e,t,n){let s=Ce(t.messages)?t.messages:Pe();"__i18nGlobal"in n&&(s=Ro(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Ce(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ce(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Sl(e){return K(fs,null,e,0)}function ls(){return ir()}const El="__INTLIFY_META__",Rl=()=>[],fp=()=>!1;let Pl=0;function Il(e){return((t,n,s,r)=>e(n,s,ls()||void 0,r))}const pp=()=>{const e=ls();let t=null;return e&&(t=Pa(e)[El])?{[El]:t}:null};function Po(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=zs?te:zc;let l=we(e.inheritLocale)?e.inheritLocale:!0;const i=o(t&&l?t.locale.value:Y(e.locale)?e.locale:rs),a=o(t&&l?t.fallbackLocale.value:Y(e.fallbackLocale)||We(e.fallbackLocale)||be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=o(Ro(i.value,e)),u=o(be(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=o(be(e.numberFormats)?e.numberFormats:{[i.value]:{}});let h=t?t.missingWarn:we(e.missingWarn)||En(e.missingWarn)?e.missingWarn:!0,b=t?t.fallbackWarn:we(e.fallbackWarn)||En(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:we(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,P=Oe(e.missing)?e.missing:null,g=Oe(e.missing)?Il(e.missing):null,y=Oe(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:we(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const I=t?t.modifiers:be(e.modifiers)?e.modifiers:{};let F=e.pluralRules||t&&t.pluralRules,A;A=(()=>{s&&bl(null);const C={version:up,locale:i.value,fallbackLocale:a.value,messages:c.value,modifiers:I,pluralRules:F,missing:g===null?void 0:g,missingWarn:h,fallbackWarn:b,fallbackFormat:E,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:_,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=u.value,C.numberFormats=f.value,C.__datetimeFormatters=be(A)?A.__datetimeFormatters:void 0,C.__numberFormatters=be(A)?A.__numberFormatters:void 0;const L=Yf(C);return s&&bl(L),L})(),Dn(A,i.value,a.value);function oe(){return[i.value,a.value,c.value,u.value,f.value]}const ye=H({get:()=>i.value,set:C=>{A.locale=C,i.value=C}}),he=H({get:()=>a.value,set:C=>{A.fallbackLocale=C,a.value=C,Dn(A,i.value,C)}}),de=H(()=>c.value),De=H(()=>u.value),le=H(()=>f.value);function ie(){return Oe(y)?y:null}function J(C){y=C,A.postTranslation=C}function ee(){return P}function $(C){C!==null&&(g=Il(C)),P=C,A.missing=g}const z=(C,L,X,re,pe,He)=>{oe();let Ve;try{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=t?qf():void 0),Ve=C(A)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=void 0)}if(X!=="translate exists"&&Ge(Ve)&&Ve===dr||X==="translate exists"&&!Ve){const[ct,mt]=L();return t&&k?re(t):pe(ct)}else{if(He(Ve))return Ve;throw vt(gt.UNEXPECTED_RETURN_TYPE)}};function se(...C){return z(L=>Reflect.apply(Cl,null,[L,...C]),()=>Br(...C),"translate",L=>Reflect.apply(L.t,L,[...C]),L=>L,L=>Y(L))}function xe(...C){const[L,X,re]=C;if(re&&!Ce(re))throw vt(gt.INVALID_ARGUMENT);return se(L,X,Ye({resolvedMessage:!0},re||{}))}function fe(...C){return z(L=>Reflect.apply(vl,null,[L,...C]),()=>Gr(...C),"datetime format",L=>Reflect.apply(L.d,L,[...C]),()=>ml,L=>Y(L)||We(L))}function _e(...C){return z(L=>Reflect.apply(xl,null,[L,...C]),()=>Kr(...C),"number format",L=>Reflect.apply(L.n,L,[...C]),()=>ml,L=>Y(L)||We(L))}function Se(C){return C.map(L=>Y(L)||Ge(L)||we(L)?Sl(String(L)):L)}const je={normalize:Se,interpolate:C=>C,type:"vnode"};function ke(...C){return z(L=>{let X;const re=L;try{re.processor=je,X=Reflect.apply(Cl,null,[re,...C])}finally{re.processor=null}return X},()=>Br(...C),"translate",L=>L[zr](...C),L=>[Sl(L)],L=>We(L))}function st(...C){return z(L=>Reflect.apply(xl,null,[L,...C]),()=>Kr(...C),"number format",L=>L[Yr](...C),Rl,L=>Y(L)||We(L))}function rt(...C){return z(L=>Reflect.apply(vl,null,[L,...C]),()=>Gr(...C),"datetime format",L=>L[qr](...C),Rl,L=>Y(L)||We(L))}function Be(C){F=C,A.pluralRules=F}function q(C,L){return z(()=>{if(!C)return!1;const X=Y(L)?L:i.value,re=M(X),pe=A.messageResolver(re,C);return Lt(pe)||xt(pe)||Y(pe)},()=>[C],"translate exists",X=>Reflect.apply(X.te,X,[C,L]),fp,X=>we(X))}function m(C){let L=null;const X=ba(A,a.value,i.value);for(let re=0;re<X.length;re++){const pe=c.value[X[re]]||{},He=A.messageResolver(pe,C);if(He!=null){L=He;break}}return L}function x(C){const L=m(C);return L??(t?t.tm(C)||{}:{})}function M(C){return c.value[C]||{}}function j(C,L){if(r){const X={[C]:L};for(const re in X)kt(X,re)&&os(X[re]);L=X[C]}c.value[C]=L,A.messages=c.value}function U(C,L){c.value[C]=c.value[C]||{};const X={[C]:L};if(r)for(const re in X)kt(X,re)&&os(X[re]);L=X[C],As(L,c.value[C]),A.messages=c.value}function V(C){return u.value[C]||{}}function d(C,L){u.value[C]=L,A.datetimeFormats=u.value,yl(A,C,L)}function p(C,L){u.value[C]=Ye(u.value[C]||{},L),A.datetimeFormats=u.value,yl(A,C,L)}function T(C){return f.value[C]||{}}function R(C,L){f.value[C]=L,A.numberFormats=f.value,wl(A,C,L)}function B(C,L){f.value[C]=Ye(f.value[C]||{},L),A.numberFormats=f.value,wl(A,C,L)}Pl++,t&&zs&&(ft(t.locale,C=>{l&&(i.value=C,A.locale=C,Dn(A,i.value,a.value))}),ft(t.fallbackLocale,C=>{l&&(a.value=C,A.fallbackLocale=C,Dn(A,i.value,a.value))}));const W={id:Pl,locale:ye,fallbackLocale:he,get inheritLocale(){return l},set inheritLocale(C){l=C,C&&t&&(i.value=t.locale.value,a.value=t.fallbackLocale.value,Dn(A,i.value,a.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:de,get modifiers(){return I},get pluralRules(){return F||{}},get isGlobal(){return s},get missingWarn(){return h},set missingWarn(C){h=C,A.missingWarn=h},get fallbackWarn(){return b},set fallbackWarn(C){b=C,A.fallbackWarn=b},get fallbackRoot(){return k},set fallbackRoot(C){k=C},get fallbackFormat(){return E},set fallbackFormat(C){E=C,A.fallbackFormat=E},get warnHtmlMessage(){return _},set warnHtmlMessage(C){_=C,A.warnHtmlMessage=C},get escapeParameter(){return v},set escapeParameter(C){v=C,A.escapeParameter=C},t:se,getLocaleMessage:M,setLocaleMessage:j,mergeLocaleMessage:U,getPostTranslationHandler:ie,setPostTranslationHandler:J,getMissingHandler:ee,setMissingHandler:$,[Ea]:Be};return W.datetimeFormats=De,W.numberFormats=le,W.rt=xe,W.te=q,W.tm=x,W.d=fe,W.n=_e,W.getDateTimeFormat=V,W.setDateTimeFormat=d,W.mergeDateTimeFormat=p,W.getNumberFormat=T,W.setNumberFormat=R,W.mergeNumberFormat=B,W[Ra]=n,W[zr]=ke,W[qr]=rt,W[Yr]=st,W}function gp(e){const t=Y(e.locale)?e.locale:rs,n=Y(e.fallbackLocale)||We(e.fallbackLocale)||be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Oe(e.missing)?e.missing:void 0,r=we(e.silentTranslationWarn)||En(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=we(e.silentFallbackWarn)||En(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=we(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,a=be(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Oe(e.postTranslation)?e.postTranslation:void 0,f=Y(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,b=we(e.sync)?e.sync:!0;let k=e.messages;if(be(e.sharedMessages)){const I=e.sharedMessages;k=Object.keys(I).reduce((A,G)=>{const oe=A[G]||(A[G]={});return Ye(oe,I[G]),A},k||{})}const{__i18n:E,__root:P,__injectWithOption:g}=e,y=e.datetimeFormats,_=e.numberFormats,v=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:v,datetimeFormats:y,numberFormats:_,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:l,fallbackFormat:i,modifiers:a,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:b,__i18n:E,__root:P,__injectWithOption:g}}function Xr(e={}){const t=Po(gp(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return we(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=we(r)?!r:r},get silentFallbackWarn(){return we(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=we(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,o){return t.te(r,o)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,o){t.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){t.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,o){t.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){t.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,o){t.setNumberFormat(r,o)},mergeNumberFormat(r,o){t.mergeNumberFormat(r,o)}};return s.__extender=n,s}function mp(e,t,n){return{beforeCreate(){const s=ls();if(!s)throw vt(gt.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=Ml(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Xr(o);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Ml(e,r);else{this.$i18n=Xr({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Ia(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,l)=>this.$i18n.te(o,l),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=ls();if(!s)throw vt(gt.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Ml(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Ea](t.pluralizationRules||e.pluralizationRules);const n=Ro(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Io={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function hp({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===ve?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},Pe())}function Ma(){return ve}const bp=$e({name:"i18n-t",props:Ye({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ge(e)||!isNaN(e)}},Io),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||Je({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f[0]!=="_"),l=Pe();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=Y(e.plural)?+e.plural:e.plural);const i=hp(t,o),a=r[zr](e.keypath,i,l),c=Ye(Pe(),s),u=Y(e.tag)||Ce(e.tag)?e.tag:Ma();return ra(u,c,a)}}}),Ll=bp;function _p(e){return We(e)&&!Y(e[0])}function La(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const l={part:!0};let i=Pe();e.locale&&(l.locale=e.locale),Y(e.format)?l.key=e.format:Ce(e.format)&&(Y(e.format.key)&&(l.key=e.format.key),i=Object.keys(e.format).reduce((h,b)=>n.includes(b)?Ye(Pe(),h,{[b]:e.format[b]}):h,Pe()));const a=s(e.value,l,i);let c=[l.key];We(a)?c=a.map((h,b)=>{const k=r[h.type],E=k?k({[h.type]:h.value,index:b,parts:a}):[h.value];return _p(E)&&(E[0].key=`${h.type}-${b}`),E}):Y(a)&&(c=[a]);const u=Ye(Pe(),o),f=Y(e.tag)||Ce(e.tag)?e.tag:Ma();return ra(f,u,c)}}const vp=$e({name:"i18n-n",props:Ye({value:{type:Number,required:!0},format:{type:[String,Object]}},Io),setup(e,t){const n=e.i18n||Je({useScope:e.scope,__useComponent:!0});return La(e,t,Ta,(...s)=>n[Yr](...s))}}),$l=vp;function yp(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function xp(e){const t=l=>{const{instance:i,value:a}=l;if(!i||!i.$)throw vt(gt.UNEXPECTED_ERROR);const c=yp(e,i.$),u=Ol(a);return[Reflect.apply(c.t,c,[...Al(u)]),c]};return{created:(l,i)=>{const[a,c]=t(i);zs&&e.global===c&&(l.__i18nWatcher=ft(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),l.__composer=c,l.textContent=a},unmounted:l=>{zs&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:i})=>{if(l.__composer){const a=l.__composer,c=Ol(i);l.textContent=Reflect.apply(a.t,a,[...Al(c)])}},getSSRProps:l=>{const[i]=t(l);return{textContent:i}}}}function Ol(e){if(Y(e))return{path:e};if(be(e)){if(!("path"in e))throw vt(gt.REQUIRED_VALUE,"path");return e}else throw vt(gt.INVALID_VALUE)}function Al(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,l={},i=s||{};return Y(n)&&(l.locale=n),Ge(r)&&(l.plural=r),Ge(o)&&(l.plural=o),[t,i,l]}function wp(e,t,...n){const s=be(n[0])?n[0]:{};(!we(s.globalInstall)||s.globalInstall)&&([Ll.name,"I18nT"].forEach(o=>e.component(o,Ll)),[$l.name,"I18nN"].forEach(o=>e.component(o,$l)),[Fl.name,"I18nD"].forEach(o=>e.component(o,Fl))),e.directive("t",xp(t))}const kp=tn("global-vue-i18n");function Tp(e={}){const t=__VUE_I18N_LEGACY_API__&&we(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=we(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=Cp(e,t),l=tn("");function i(f){return s.get(f)||null}function a(f,h){s.set(f,h)}function c(f){s.delete(f)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=l,f.provide(f.__VUE_I18N_SYMBOL__,u),be(h[0])){const E=h[0];u.__composerExtend=E.__composerExtend,u.__vueI18nExtend=E.__vueI18nExtend}let b=null;!t&&n&&(b=$p(f,u.global)),__VUE_I18N_FULL_INSTALL__&&wp(f,u,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(mp(o,o.__composer,u));const k=f.unmount;f.unmount=()=>{b&&b(),u.dispose(),k()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:i,__setInstance:a,__deleteInstance:c};return u}function Je(e={}){const t=ls();if(t==null)throw vt(gt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw vt(gt.NOT_INSTALLED);const n=Sp(t),s=Rp(n),r=Pa(t),o=Ep(e,r);if(o==="global")return Ia(s,e,r),s;if(o==="parent"){let a=Pp(n,t,e.__useComponent);return a==null&&(a=s),a}const l=n;let i=l.__getInstance(t);if(i==null){const a=Ye({},e);"__i18n"in r&&(a.__i18n=r.__i18n),s&&(a.__root=s),i=Po(a),l.__composerExtend&&(i[Jr]=l.__composerExtend(i)),Mp(l,t,i),l.__setInstance(t,i)}return i}function Cp(e,t){const n=Tc(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Xr(e)):n.run(()=>Po(e));if(s==null)throw vt(gt.UNEXPECTED_ERROR);return[n,s]}function Sp(e){const t=Bn(e.isCE?kp:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw vt(e.isCE?gt.NOT_INSTALLED_WITH_PROVIDE:gt.UNEXPECTED_ERROR);return t}function Ep(e,t){return cr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Rp(e){return e.mode==="composition"?e.global:e.global.__composer}function Pp(e,t,n=!1){let s=null;const r=t.root;let o=Ip(t,n);for(;o!=null;){const l=e;if(e.mode==="composition")s=l.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const i=l.__getInstance(o);i!=null&&(s=i.__composer,n&&s&&!s[Ra]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function Ip(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Mp(e,t,n){Pn(()=>{},t),bo(()=>{const s=n;e.__deleteInstance(t);const r=s[Jr];r&&(r(),delete s[Jr])},t)}const Lp=["locale","fallbackLocale","availableLocales"],Nl=["t","rt","d","n","tm","te"];function $p(e,t){const n=Object.create(null);return Lp.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw vt(gt.UNEXPECTED_ERROR);const l=Fe(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,l)}),e.config.globalProperties.$i18n=n,Nl.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw vt(gt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,Nl.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const Op=$e({name:"i18n-d",props:Ye({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Io),setup(e,t){const n=e.i18n||Je({useScope:e.scope,__useComponent:!0});return La(e,t,ka,(...s)=>n[qr](...s))}}),Fl=Op;dp();Hf(Tf);Gf(Vf);Kf(ba);if(__INTLIFY_PROD_DEVTOOLS__){const e=un();e.__INTLIFY__=!0,Cf(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Ap(e){const t=e.endsWith("/")&&e!=="/"?e.slice(0,-1):e;return t==="/"?"":t.endsWith("/index.html")?t.slice(0,-11):t}function qs(e){return e.replace(/\\/g,"/")}function Np(e){return e.startsWith("/")||/^[a-z]:\//i.test(e)}function Fp(e){return qs(e).replace(/\/+$/,"")}function Dp(e){return qs(e).trim()}function Mn(e,t,n={}){const s=Dp(e);if(!s)return null;if(Np(s))return!n.allowAbsoluteWithoutRoot&&!t?.trim()?null:`vscode://file/${encodeURI(s)}`;if(!t?.trim())return null;const r=Fp(t);if(!r)return null;const o=s.replace(/^\/+/,"");return`vscode://file/${encodeURI(`${r}/${o}`)}`}function fr(e,t,n){const s=Mn(e,t,n);return s?(window.location.href=s,!0):!1}var Up=/\s+/g,Vp=e=>typeof e!="string"||!e?e:e.replace(Up," ").trim(),Ys=(...e)=>{const t=[],n=s=>{if(!s&&s!==0&&s!==0n)return;if(Array.isArray(s)){for(let o=0,l=s.length;o<l;o++)n(s[o]);return}const r=typeof s;if(r==="string"||r==="number"||r==="bigint"){if(r==="number"&&s!==s)return;t.push(String(s))}else if(r==="object"){const o=Object.keys(s);for(let l=0,i=o.length;l<i;l++){const a=o[l];s[a]&&t.push(a)}}};for(let s=0,r=e.length;s<r;s++){const o=e[s];o!=null&&n(o)}return t.length>0?Vp(t.join(" ")):void 0},Dl=e=>e===!1?"false":e===!0?"true":e===0?"0":e,ut=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Wp=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!s.includes(o)||e[o]!==t[o])return!1}return!0},jp=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];n in e?e[n]=Ys(e[n],s):e[n]=s}return e},$a=(e,t)=>{for(let n=0;n<e.length;n++){const s=e[n];Array.isArray(s)?$a(s,t):s&&t.push(s)}},Oa=(...e)=>{const t=[];$a(e,t);const n=[];for(let s=0;s<t.length;s++)t[s]&&n.push(t[s]);return n},Qr=(e,t)=>{const n={};for(const s in e){const r=e[s];if(s in t){const o=t[s];Array.isArray(r)||Array.isArray(o)?n[s]=Oa(o,r):typeof r=="object"&&typeof o=="object"&&r&&o?n[s]=Qr(r,o):n[s]=o+" "+r}else n[s]=r}for(const s in t)s in e||(n[s]=t[s]);return n},Hp={twMerge:!0,twMergeConfig:{}};function Gp(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(s){e=s},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(s){t=s},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(s){n=s},reset(){e=null,t={},n=!1}}}var Dt=Gp(),Kp=e=>{const t=(s,r)=>{const{extend:o=null,slots:l={},variants:i={},compoundVariants:a=[],compoundSlots:c=[],defaultVariants:u={}}=s,f={...Hp,...r},h=o?.base?Ys(o.base,s?.base):s?.base,b=o?.variants&&!ut(o.variants)?Qr(i,o.variants):i,k=o?.defaultVariants&&!ut(o.defaultVariants)?{...o.defaultVariants,...u}:u;!ut(f.twMergeConfig)&&!Wp(f.twMergeConfig,Dt.cachedTwMergeConfig)&&(Dt.didTwMergeConfigChange=!0,Dt.cachedTwMergeConfig=f.twMergeConfig);const E=ut(o?.slots),P=ut(l)?{}:{base:Ys(s?.base,E&&o?.base),...l},g=E?P:jp({...o?.slots},ut(P)?{base:s?.base}:P),y=ut(o?.compoundVariants)?a:Oa(o?.compoundVariants,a),_=I=>{if(ut(b)&&ut(l)&&E)return e(h,I?.class,I?.className)(f);if(y&&!Array.isArray(y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof y}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const F=(le,ie=b,J=null,ee=null)=>{const $=ie[le];if(!$||ut($))return null;const z=ee?.[le]??I?.[le];if(z===null)return null;const se=Dl(z);if(typeof se=="object")return null;const xe=k?.[le],fe=se??Dl(xe);return $[fe||"false"]},A=()=>{if(!b)return null;const le=Object.keys(b),ie=[];for(let J=0;J<le.length;J++){const ee=F(le[J],b);ee&&ie.push(ee)}return ie},G=(le,ie)=>{if(!b||typeof b!="object")return null;const J=[];for(const ee in b){const $=F(ee,b,le,ie),z=le==="base"&&typeof $=="string"?$:$&&$[le];z&&J.push(z)}return J},oe={};for(const le in I){const ie=I[le];ie!==void 0&&(oe[le]=ie)}const ye=(le,ie)=>{const J=typeof I?.[le]=="object"?{[le]:I[le]?.initial}:{};return{...k,...oe,...J,...ie}},he=(le=[],ie)=>{const J=[],ee=le.length;for(let $=0;$<ee;$++){const{class:z,className:se,...xe}=le[$];let fe=!0;const _e=ye(null,ie);for(const Se in xe){const Ue=xe[Se],je=_e[Se];if(Array.isArray(Ue)){if(!Ue.includes(je)){fe=!1;break}}else{if((Ue==null||Ue===!1)&&(je==null||je===!1))continue;if(je!==Ue){fe=!1;break}}}fe&&(z&&J.push(z),se&&J.push(se))}return J},de=le=>{const ie=he(y,le);if(!Array.isArray(ie))return ie;const J={},ee=e;for(let $=0;$<ie.length;$++){const z=ie[$];if(typeof z=="string")J.base=ee(J.base,z)(f);else if(typeof z=="object")for(const se in z)J[se]=ee(J[se],z[se])(f)}return J},De=le=>{if(c.length<1)return null;const ie={},J=ye(null,le);for(let ee=0;ee<c.length;ee++){const{slots:$=[],class:z,className:se,...xe}=c[ee];if(!ut(xe)){let fe=!0;for(const _e in xe){const Se=J[_e],Ue=xe[_e];if(Se===void 0||(Array.isArray(Ue)?!Ue.includes(Se):Ue!==Se)){fe=!1;break}}if(!fe)continue}for(let fe=0;fe<$.length;fe++){const _e=$[fe];ie[_e]||(ie[_e]=[]),ie[_e].push([z,se])}}return ie};if(!ut(l)||!E){const le={};if(typeof g=="object"&&!ut(g)){const ie=e;for(const J in g)le[J]=ee=>{const $=de(ee),z=De(ee);return ie(g[J],G(J,ee),$?$[J]:void 0,z?z[J]:void 0,ee?.class,ee?.className)(f)}}return le}return e(h,A(),he(y),I?.class,I?.className)(f)},v=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return _.variantKeys=v(),_.extend=o,_.base=h,_.slots=g,_.variants=b,_.defaultVariants=k,_.compoundSlots=c,_.compoundVariants=y,_};return{tv:t,createTV:s=>(r,o)=>t(r,o?Qr(s,o):s)}};const Bp=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},zp=(e,t)=>({classGroupId:e,validator:t}),Aa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Js="-",Ul=[],qp="arbitrary..",Yp=e=>{const t=Xp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Jp(l);const i=l.split(Js),a=i[0]===""&&i.length>1?1:0;return Na(i,a,t)},getConflictingClassGroupIds:(l,i)=>{if(i){const a=s[l],c=n[l];return a?c?Bp(c,a):a:c||Ul}return n[l]||Ul}}},Na=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const c=Na(e,t+1,o);if(c)return c}const l=n.validators;if(l===null)return;const i=t===0?e.join(Js):e.slice(t).join(Js),a=l.length;for(let c=0;c<a;c++){const u=l[c];if(u.validator(i))return u.classGroupId}},Jp=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?qp+s:void 0})(),Xp=e=>{const{theme:t,classGroups:n}=e;return Qp(n,t)},Qp=(e,t)=>{const n=Aa();for(const s in e){const r=e[s];Mo(r,n,s,t)}return n},Mo=(e,t,n,s)=>{const r=e.length;for(let o=0;o<r;o++){const l=e[o];Zp(l,t,n,s)}},Zp=(e,t,n,s)=>{if(typeof e=="string"){eg(e,t,n);return}if(typeof e=="function"){tg(e,t,n,s);return}ng(e,t,n,s)},eg=(e,t,n)=>{const s=e===""?t:Fa(t,e);s.classGroupId=n},tg=(e,t,n,s)=>{if(sg(e)){Mo(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(zp(n,e))},ng=(e,t,n,s)=>{const r=Object.entries(e),o=r.length;for(let l=0;l<o;l++){const[i,a]=r[l];Mo(a,Fa(t,i),n,s)}},Fa=(e,t)=>{let n=e;const s=t.split(Js),r=s.length;for(let o=0;o<r;o++){const l=s[o];let i=n.nextPart.get(l);i||(i=Aa(),n.nextPart.set(l,i)),n=i}return n},sg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const r=(o,l)=>{n[o]=l,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=s[o])!==void 0)return r(o,l),l},set(o,l){o in n?n[o]=l:r(o,l)}}},Zr="!",Vl=":",og=[],Wl=(e,t,n,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:r}),lg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=r=>{const o=[];let l=0,i=0,a=0,c;const u=r.length;for(let E=0;E<u;E++){const P=r[E];if(l===0&&i===0){if(P===Vl){o.push(r.slice(a,E)),a=E+1;continue}if(P==="/"){c=E;continue}}P==="["?l++:P==="]"?l--:P==="("?i++:P===")"&&i--}const f=o.length===0?r:r.slice(a);let h=f,b=!1;f.endsWith(Zr)?(h=f.slice(0,-1),b=!0):f.startsWith(Zr)&&(h=f.slice(1),b=!0);const k=c&&c>a?c-a:void 0;return Wl(o,b,h,k)};if(t){const r=t+Vl,o=s;s=l=>l.startsWith(r)?o(l.slice(r.length)):Wl(og,!1,l,void 0,!0)}if(n){const r=s;s=o=>n({className:o,parseClassName:r})}return s},ig=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let r=[];for(let o=0;o<n.length;o++){const l=n[o],i=l[0]==="[",a=t.has(l);i||a?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(l)):r.push(l)}return r.length>0&&(r.sort(),s.push(...r)),s}},ag=e=>({cache:rg(e.cacheSize),parseClassName:lg(e),sortModifiers:ig(e),...Yp(e)}),cg=/\s+/,ug=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,l=[],i=e.trim().split(cg);let a="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{isExternal:f,modifiers:h,hasImportantModifier:b,baseClassName:k,maybePostfixModifierPosition:E}=n(u);if(f){a=u+(a.length>0?" "+a:a);continue}let P=!!E,g=s(P?k.substring(0,E):k);if(!g){if(!P){a=u+(a.length>0?" "+a:a);continue}if(g=s(k),!g){a=u+(a.length>0?" "+a:a);continue}P=!1}const y=h.length===0?"":h.length===1?h[0]:o(h).join(":"),_=b?y+Zr:y,v=_+g;if(l.indexOf(v)>-1)continue;l.push(v);const I=r(g,P);for(let F=0;F<I.length;++F){const A=I[F];l.push(_+A)}a=u+(a.length>0?" "+a:a)}return a},dg=(...e)=>{let t=0,n,s,r="";for(;t<e.length;)(n=e[t++])&&(s=Da(n))&&(r&&(r+=" "),r+=s);return r},Da=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Da(e[s]))&&(n&&(n+=" "),n+=t);return n},eo=(e,...t)=>{let n,s,r,o;const l=a=>{const c=t.reduce((u,f)=>f(u),e());return n=ag(c),s=n.cache.get,r=n.cache.set,o=i,i(a)},i=a=>{const c=s(a);if(c)return c;const u=ug(a,n);return r(a,u),u};return o=l,(...a)=>o(dg(...a))},fg=[],ze=e=>{const t=n=>n[e]||fg;return t.isThemeGetter=!0,t},Ua=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Va=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pg=/^\d+\/\d+$/,gg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mg=/\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$/,hg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_g=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bn=e=>pg.test(e),ge=e=>!!e&&!Number.isNaN(Number(e)),Yt=e=>!!e&&Number.isInteger(Number(e)),Rr=e=>e.endsWith("%")&&ge(e.slice(0,-1)),Nt=e=>gg.test(e),vg=()=>!0,yg=e=>mg.test(e)&&!hg.test(e),Wa=()=>!1,xg=e=>bg.test(e),wg=e=>_g.test(e),kg=e=>!Q(e)&&!Z(e),Tg=e=>Ln(e,Ga,Wa),Q=e=>Ua.test(e),an=e=>Ln(e,Ka,yg),Pr=e=>Ln(e,Pg,ge),jl=e=>Ln(e,ja,Wa),Cg=e=>Ln(e,Ha,wg),Es=e=>Ln(e,Ba,xg),Z=e=>Va.test(e),Un=e=>$n(e,Ka),Sg=e=>$n(e,Ig),Hl=e=>$n(e,ja),Eg=e=>$n(e,Ga),Rg=e=>$n(e,Ha),Rs=e=>$n(e,Ba,!0),Ln=(e,t,n)=>{const s=Ua.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},$n=(e,t,n=!1)=>{const s=Va.exec(e);return s?s[1]?t(s[1]):n:!1},ja=e=>e==="position"||e==="percentage",Ha=e=>e==="image"||e==="url",Ga=e=>e==="length"||e==="size"||e==="bg-size",Ka=e=>e==="length",Pg=e=>e==="number",Ig=e=>e==="family-name",Ba=e=>e==="shadow",to=()=>{const e=ze("color"),t=ze("font"),n=ze("text"),s=ze("font-weight"),r=ze("tracking"),o=ze("leading"),l=ze("breakpoint"),i=ze("container"),a=ze("spacing"),c=ze("radius"),u=ze("shadow"),f=ze("inset-shadow"),h=ze("text-shadow"),b=ze("drop-shadow"),k=ze("blur"),E=ze("perspective"),P=ze("aspect"),g=ze("ease"),y=ze("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...v(),Z,Q],F=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],G=()=>[Z,Q,a],oe=()=>[bn,"full","auto",...G()],ye=()=>[Yt,"none","subgrid",Z,Q],he=()=>["auto",{span:["full",Yt,Z,Q]},Yt,Z,Q],de=()=>[Yt,"auto",Z,Q],De=()=>["auto","min","max","fr",Z,Q],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",...G()],ee=()=>[bn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],$=()=>[e,Z,Q],z=()=>[...v(),Hl,jl,{position:[Z,Q]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",Eg,Tg,{size:[Z,Q]}],fe=()=>[Rr,Un,an],_e=()=>["","none","full",c,Z,Q],Se=()=>["",ge,Un,an],Ue=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[ge,Rr,Hl,jl],st=()=>["","none",k,Z,Q],rt=()=>["none",ge,Z,Q],Be=()=>["none",ge,Z,Q],q=()=>[ge,Z,Q],m=()=>[bn,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nt],breakpoint:[Nt],color:[vg],container:[Nt],"drop-shadow":[Nt],ease:["in","out","in-out"],font:[kg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nt],shadow:[Nt],spacing:["px",ge],text:[Nt],"text-shadow":[Nt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bn,Q,Z,P]}],container:["container"],columns:[{columns:[ge,Q,Z,i]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:I()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:oe()}],"inset-x":[{"inset-x":oe()}],"inset-y":[{"inset-y":oe()}],start:[{start:oe()}],end:[{end:oe()}],top:[{top:oe()}],right:[{right:oe()}],bottom:[{bottom:oe()}],left:[{left:oe()}],visibility:["visible","invisible","collapse"],z:[{z:[Yt,"auto",Z,Q]}],basis:[{basis:[bn,"full","auto",i,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ge,bn,"auto","initial","none",Q]}],grow:[{grow:["",ge,Z,Q]}],shrink:[{shrink:["",ge,Z,Q]}],order:[{order:[Yt,"first","last","none",Z,Q]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":De()}],"auto-rows":[{"auto-rows":De()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[i,"screen",...ee()]}],"min-w":[{"min-w":[i,"screen","none",...ee()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,Un,an]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Z,Pr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rr,Q]}],"font-family":[{font:[Sg,Q,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:[r,Z,Q]}],"line-clamp":[{"line-clamp":[ge,"none",Z,Pr]}],leading:[{leading:[o,...G()]}],"list-image":[{"list-image":["none",Z,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[ge,"from-font","auto",Z,an]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[ge,"auto",Z,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,Q]}],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",Z,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yt,Z,Q],radial:["",Z,Q],conic:[Yt,Z,Q]},Rg,Cg]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:_e()}],"rounded-s":[{"rounded-s":_e()}],"rounded-e":[{"rounded-e":_e()}],"rounded-t":[{"rounded-t":_e()}],"rounded-r":[{"rounded-r":_e()}],"rounded-b":[{"rounded-b":_e()}],"rounded-l":[{"rounded-l":_e()}],"rounded-ss":[{"rounded-ss":_e()}],"rounded-se":[{"rounded-se":_e()}],"rounded-ee":[{"rounded-ee":_e()}],"rounded-es":[{"rounded-es":_e()}],"rounded-tl":[{"rounded-tl":_e()}],"rounded-tr":[{"rounded-tr":_e()}],"rounded-br":[{"rounded-br":_e()}],"rounded-bl":[{"rounded-bl":_e()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ue(),"hidden","none"]}],"divide-style":[{divide:[...Ue(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ge,Z,Q]}],"outline-w":[{outline:["",ge,Un,an]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",u,Rs,Es]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",f,Rs,Es]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[ge,an]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",h,Rs,Es]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[ge,Z,Q]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"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":[ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":ke()}],"mask-image-linear-to-pos":[{"mask-linear-to":ke()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":ke()}],"mask-image-t-to-pos":[{"mask-t-to":ke()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":ke()}],"mask-image-r-to-pos":[{"mask-r-to":ke()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":ke()}],"mask-image-b-to-pos":[{"mask-b-to":ke()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":ke()}],"mask-image-l-to-pos":[{"mask-l-to":ke()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":ke()}],"mask-image-x-to-pos":[{"mask-x-to":ke()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":ke()}],"mask-image-y-to-pos":[{"mask-y-to":ke()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[Z,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ke()}],"mask-image-radial-to-pos":[{"mask-radial-to":ke()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":v()}],"mask-image-conic-pos":[{"mask-conic":[ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":ke()}],"mask-image-conic-to-pos":[{"mask-conic-to":ke()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,Q]}],filter:[{filter:["","none",Z,Q]}],blur:[{blur:st()}],brightness:[{brightness:[ge,Z,Q]}],contrast:[{contrast:[ge,Z,Q]}],"drop-shadow":[{"drop-shadow":["","none",b,Rs,Es]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",ge,Z,Q]}],"hue-rotate":[{"hue-rotate":[ge,Z,Q]}],invert:[{invert:["",ge,Z,Q]}],saturate:[{saturate:[ge,Z,Q]}],sepia:[{sepia:["",ge,Z,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,Q]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[ge,Z,Q]}],"backdrop-contrast":[{"backdrop-contrast":[ge,Z,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ge,Z,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ge,Z,Q]}],"backdrop-invert":[{"backdrop-invert":["",ge,Z,Q]}],"backdrop-opacity":[{"backdrop-opacity":[ge,Z,Q]}],"backdrop-saturate":[{"backdrop-saturate":[ge,Z,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",ge,Z,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ge,"initial",Z,Q]}],ease:[{ease:["linear","initial",g,Z,Q]}],delay:[{delay:[ge,Z,Q]}],animate:[{animate:["none",y,Z,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,Z,Q]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:rt()}],"rotate-x":[{"rotate-x":rt()}],"rotate-y":[{"rotate-y":rt()}],"rotate-z":[{"rotate-z":rt()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[Z,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:m()}],"translate-x":[{"translate-x":m()}],"translate-y":[{"translate-y":m()}],"translate-z":[{"translate-z":m()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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",Z,Q]}],"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":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"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",Z,Q]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[ge,Un,an,Pr]}],stroke:[{stroke:["none",...$()]}],"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"]}},Mg=(e,{cacheSize:t,prefix:n,experimentalParseClassName:s,extend:r={},override:o={}})=>(Wn(e,"cacheSize",t),Wn(e,"prefix",n),Wn(e,"experimentalParseClassName",s),Ps(e.theme,o.theme),Ps(e.classGroups,o.classGroups),Ps(e.conflictingClassGroups,o.conflictingClassGroups),Ps(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Wn(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Is(e.theme,r.theme),Is(e.classGroups,r.classGroups),Is(e.conflictingClassGroups,r.conflictingClassGroups),Is(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),za(e,r,"orderSensitiveModifiers"),e),Wn=(e,t,n)=>{n!==void 0&&(e[t]=n)},Ps=(e,t)=>{if(t)for(const n in t)Wn(e,n,t[n])},Is=(e,t)=>{if(t)for(const n in t)za(e,t,n)},za=(e,t,n)=>{const s=t[n];s!==void 0&&(e[n]=e[n]?e[n].concat(s):s)},Lg=(e,...t)=>typeof e=="function"?eo(to,e,...t):eo(()=>Mg(to(),e),...t),$g=eo(to);var Og=e=>ut(e)?$g:Lg({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),qa=(e,t)=>{const n=Ys(e);return!n||!(t?.twMerge??!0)?n:((!Dt.cachedTwMerge||Dt.didTwMergeConfigChange)&&(Dt.didTwMergeConfigChange=!1,Dt.cachedTwMerge=Og(Dt.cachedTwMergeConfig)),Dt.cachedTwMerge(n)||void 0)},Ag=(...e)=>qa(e,{}),Ng=(...e)=>t=>qa(e,t),{tv:gs}=Kp(Ng);function ms(...e){return Ag(...e)}const Me=$e({__name:"UiPill",props:{tone:{default:"strong"},size:{default:"md"},caps:{type:Boolean,default:!0},tracking:{default:"wide"}},setup(e){const t=e,n=gs({base:"inline-flex items-center gap-2 rounded-full",variants:{size:{xxs:"px-2 py-0.5 text-[0.55rem]",xs:"px-2.5 py-1 text-[0.55rem]",sm:"px-3 py-1 text-[0.55rem]",md:"px-3 py-1.5 text-[0.6rem]",lg:"px-3 py-1.5 text-[0.65rem]"},tone:{strong:"border border-pg-border bg-pg-surface-strong text-pg-text-soft",card:"border border-pg-border bg-pg-surface-card text-pg-text-soft",chip:"bg-pg-chip text-pg-chip-text"},caps:{true:"uppercase",false:""},tracking:{wide:"tracking-[0.25em]",tight:"tracking-[0.2em]",none:""}},defaultVariants:{size:"md",tone:"strong",caps:!0,tracking:"wide"}}),s=ds(),r=H(()=>{const i=t.caps?t.tracking:"none";return ms(n({size:t.size,tone:t.tone,caps:t.caps,tracking:i}),s.class)}),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>(O(),D("span",mn(o.value,{class:r.value,style:l.value}),[_o(i.$slots,"default")],16))}}),Fg={class:"flex min-h-0 flex-col gap-4"},Dg={class:"rounded-3xl border p-5 shadow-xl border-pg-border bg-pg-surface-card"},Ug={class:"flex flex-wrap items-center justify-between gap-3"},Vg={class:"flex flex-col gap-1"},Wg={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},jg={class:"text-lg font-display text-pg-text-strong"},Hg={class:"mt-4 grid gap-3 text-sm text-pg-text-soft"},Gg={class:"flex items-center gap-2"},Kg={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Bg={class:"flex items-center gap-2"},zg={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},qg={class:"flex min-h-0 flex-1 flex-col gap-3"},Yg={key:0,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Jg={key:0,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Xg={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Qg={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Zg={class:"flex flex-wrap items-center justify-between gap-2"},em={class:"flex flex-wrap items-center gap-2"},tm={class:"text-[0.75rem] font-semibold text-pg-text"},nm=["aria-label","title","onClick"],sm={class:"mt-1 text-[0.7rem] text-pg-text-muted"},rm={key:1,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},om={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},lm={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},im={class:"flex flex-wrap items-center justify-between gap-2"},am={class:"flex flex-wrap items-center gap-2"},cm={class:"text-[0.75rem] font-semibold text-pg-text"},um=["aria-label","title","onClick"],dm={class:"mt-1 text-[0.7rem] text-pg-text-muted"},fm={key:2,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},pm={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},gm={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},mm={class:"flex flex-wrap items-center justify-between gap-2"},hm={class:"text-[0.75rem] font-semibold text-pg-text"},bm=["aria-label","title","onClick"],_m=$e({__name:"ConfigDetail",props:{selected:{},impacted:{},isDisabled:{type:Boolean},workspaceRoot:{}},setup(e){const t=e,{t:n}=Je(),s=H(()=>{const f=t.selected.file.replace(/\\/g,"/"),h=f.lastIndexOf("/");return h<0?"/":f.slice(0,h)||"/"}),r=H(()=>s.value==="/"?"/**":`${s.value}/**`),o=H(()=>{const f=[],h=[],b=[];for(const k of t.impacted)k.kind==="disabled"?h.push(k):k.kind==="ignored"?b.push(k):f.push(k);return{active:f,disabled:h,ignored:b}}),l=H(()=>t.impacted.length),i=f=>`method-${f.toLowerCase()}`;function a(f){return f.url?f.url:f.file}function c(f){return Mn(f,t.workspaceRoot)}function u(f){fr(f,t.workspaceRoot)}return(f,h)=>(O(),D("section",Fg,[w("div",Dg,[w("div",Ug,[w("div",Vg,[w("span",Wg,N(S(n)("configPanel.title")),1),w("span",jg,N(t.selected.file),1)]),K(Me,{tone:"chip",size:"sm",caps:!1},{default:ne(()=>[me(N(t.isDisabled?S(n)("configPanel.statusDisabled"):S(n)("configPanel.statusEnabled")),1)]),_:1})]),w("div",Hg,[w("div",Gg,[w("span",Kg,N(S(n)("configPanel.scope")),1),w("span",null,N(r.value),1)]),w("div",Bg,[w("span",zg,N(S(n)("configPanel.impacted")),1),K(Me,{tone:"chip",size:"sm",caps:!1},{default:ne(()=>[me(N(l.value),1)]),_:1})])])]),w("div",qg,[l.value===0?(O(),D("div",Yg,N(S(n)("configPanel.emptyImpacts")),1)):(O(),D(ve,{key:1},[o.value.active.length>0?(O(),D("div",Jg,[w("div",Xg,[w("span",null,N(S(n)("configPanel.active")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(o.value.active.length),1)]),_:1})]),w("div",Qg,[(O(!0),D(ve,null,Xe(o.value.active,b=>(O(),D("div",{key:`active-${b.file}-${b.method??""}-${b.url??""}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",Zg,[w("div",em,[b.method?(O(),D("span",{key:0,class:Ae(["rounded-full px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",i(b.method)])},N(b.method),3)):ce("",!0),w("span",tm,N(a(b)),1)]),c(b.file)?(O(),D("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...h[0]||(h[0]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,nm)):ce("",!0)]),w("div",sm,N(b.file),1)]))),128))])])):ce("",!0),o.value.disabled.length>0?(O(),D("div",rm,[w("div",om,[w("span",null,N(S(n)("configPanel.disabled")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(o.value.disabled.length),1)]),_:1})]),w("div",lm,[(O(!0),D(ve,null,Xe(o.value.disabled,b=>(O(),D("div",{key:`disabled-${b.file}-${b.method??""}-${b.url??""}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",im,[w("div",am,[b.method?(O(),D("span",{key:0,class:Ae(["rounded-full px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",i(b.method)])},N(b.method),3)):ce("",!0),w("span",cm,N(a(b)),1)]),c(b.file)?(O(),D("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...h[1]||(h[1]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,um)):ce("",!0)]),w("div",dm,N(b.file),1)]))),128))])])):ce("",!0),o.value.ignored.length>0?(O(),D("div",fm,[w("div",pm,[w("span",null,N(S(n)("configPanel.ignored")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(o.value.ignored.length),1)]),_:1})]),w("div",gm,[(O(!0),D(ve,null,Xe(o.value.ignored,b=>(O(),D("div",{key:`ignored-${b.file}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",mm,[w("span",hm,N(a(b)),1),c(b.file)?(O(),D("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...h[2]||(h[2]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,bm)):ce("",!0)])]))),128))])])):ce("",!0)],64))])]))}}),Ya="mokup.playground.detailPanels",jn={configChain:!1,middlewares:!1},is=te(jn);let Gl=!1;function vm(){if(typeof window>"u")return jn;try{const e=localStorage.getItem(Ya);if(!e)return jn;const t=JSON.parse(e);return{...jn,...t}}catch{return jn}}function ym(e){if(!(typeof window>"u"))try{localStorage.setItem(Ya,JSON.stringify(e))}catch{}}function Ja(){Gl||typeof window>"u"||(is.value=vm(),Gl=!0)}function Kl(e,t){Ja();const n={...is.value,[e]:t};is.value=n,ym(n)}function Xa(e){return Ja(),{isOpen:H(()=>is.value[e]),toggle:()=>Kl(e,!is.value[e]),setOpen:r=>Kl(e,r)}}const xm=["aria-expanded"],wm={class:"flex flex-wrap items-center gap-2"},km={key:0,class:"flex flex-col gap-2 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},Tm={class:"rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},Cm={class:"text-[0.7rem] text-pg-text-subtle"},Sm={key:1,class:"border-t px-4 py-3 text-xs border-pg-border text-pg-text-muted"},Bl="pg-config-chain-panel",Em=$e({__name:"RouteDetailConfigChain",props:{configChain:{},configStatusMap:{}},setup(e){const t=e,{t:n}=Je(),{isOpen:s,toggle:r}=Xa("configChain"),o=H(()=>(t.configChain??[]).map((l,i)=>({file:l,order:i+1,disabled:t.configStatusMap.get(l)==="disabled"})));return(l,i)=>(O(),D("div",null,[w("button",{type:"button",class:"group flex w-full items-center justify-between border-t px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] transition border-pg-border text-pg-text-muted hover:text-pg-text-soft","aria-expanded":S(s),"aria-controls":Bl,onClick:i[0]||(i[0]=(...a)=>S(r)&&S(r)(...a))},[w("span",wm,[w("span",null,N(S(n)("detail.configChain")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(o.value.length),1)]),_:1})]),w("span",{class:Ae(["i-[carbon--chevron-down] h-4 w-4 transition",S(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,xm),S(s)?(O(),D("div",{key:0,id:Bl},[o.value.length>0?(O(),D("div",km,[(O(!0),D(ve,null,Xe(o.value,a=>(O(),D("div",{key:`config-${a.order}-${a.file}`,class:"flex flex-wrap items-center gap-2"},[w("span",Tm,N(a.order),1),w("span",Cm,N(a.file),1),a.disabled?(O(),pt(Me,{key:0,tone:"strong",size:"xxs",caps:!1},{default:ne(()=>[me(N(S(n)("configPanel.statusDisabled")),1)]),_:1})):ce("",!0)]))),128))])):(O(),D("div",Sm,N(S(n)("detail.configChainEmpty")),1))])):ce("",!0)]))}}),Rm=["aria-expanded"],Pm={class:"flex flex-wrap items-center gap-2"},Im={key:0,class:"flex flex-col gap-2"},Mm={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Lm={class:"flex flex-wrap gap-2"},$m=["href","title"],Om={key:1,class:"flex flex-col gap-2"},Am={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Nm={class:"flex flex-wrap gap-2"},Fm=["href","title"],Dm={key:2,class:"flex flex-col gap-2"},Um={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Vm={class:"flex flex-wrap gap-2"},Wm=["href","title"],zl="pg-middlewares-panel",jm=$e({__name:"RouteDetailMiddlewares",props:{selected:{},workspaceRoot:{}},setup(e){const t=e,{t:n}=Je(),{isOpen:s,toggle:r}=Xa("middlewares");function o(b){const k=b.trim();return k?Mn(k,t.workspaceRoot,{allowAbsoluteWithoutRoot:!0})??"":""}const l=H(()=>t.selected.preMiddlewares??[]),i=H(()=>t.selected.normalMiddlewares?t.selected.normalMiddlewares:t.selected.preMiddlewares||t.selected.postMiddlewares?[]:t.selected.middlewares??[]),a=H(()=>t.selected.postMiddlewares??[]),c=H(()=>t.selected.preMiddlewareCount??l.value.length),u=H(()=>t.selected.normalMiddlewareCount??i.value.length),f=H(()=>t.selected.postMiddlewareCount??a.value.length),h=H(()=>t.selected.middlewareCount??c.value+u.value+f.value);return(b,k)=>(O(),D("div",null,[w("button",{type:"button",class:"group flex w-full items-center justify-between border-t px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] transition border-pg-border text-pg-text-muted hover:text-pg-text-soft","aria-expanded":S(s),"aria-controls":zl,onClick:k[0]||(k[0]=(...E)=>S(r)&&S(r)(...E))},[w("span",Pm,[w("span",null,N(S(n)("detail.middlewares")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(h.value),1)]),_:1})]),w("span",{class:Ae(["i-[carbon--chevron-down] h-4 w-4 transition",S(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,Rm),S(s)&&(l.value.length>0||i.value.length>0||a.value.length>0)?(O(),D("div",{key:0,id:zl,class:"flex flex-col gap-3 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},[l.value.length>0?(O(),D("div",Im,[w("div",Mm,[w("span",null,N(S(n)("detail.middlewarePre")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(c.value),1)]),_:1})]),w("div",Lm,[(O(!0),D(ve,null,Xe(l.value,E=>(O(),D("span",{key:`pre-${E}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[me(N(E)+" ",1),o(E)?(O(),D("a",{key:0,href:o(E),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[1]||(k[1]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,$m)):ce("",!0)]))),128))])])):ce("",!0),i.value.length>0?(O(),D("div",Om,[w("div",Am,[w("span",null,N(S(n)("detail.middlewareNormal")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(u.value),1)]),_:1})]),w("div",Nm,[(O(!0),D(ve,null,Xe(i.value,E=>(O(),D("span",{key:`normal-${E}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[me(N(E)+" ",1),o(E)?(O(),D("a",{key:0,href:o(E),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[2]||(k[2]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Fm)):ce("",!0)]))),128))])])):ce("",!0),a.value.length>0?(O(),D("div",Dm,[w("div",Um,[w("span",null,N(S(n)("detail.middlewarePost")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(f.value),1)]),_:1})]),w("div",Vm,[(O(!0),D(ve,null,Xe(a.value,E=>(O(),D("span",{key:`post-${E}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[me(N(E)+" ",1),o(E)?(O(),D("a",{key:0,href:o(E),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[3]||(k[3]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Wm)):ce("",!0)]))),128))])])):ce("",!0)])):ce("",!0)]))}}),as=$e({__name:"UiTextInput",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=gs({base:"rounded-lg border outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",variants:{dense:{true:"px-2.5 py-1.5 text-[0.8rem]",false:"px-3 py-2 text-sm"}},defaultVariants:{dense:!1}}),s=ds(),r=H(()=>ms(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>(O(),D("input",mn(o.value,{class:r.value,style:l.value}),null,16))}}),Hm={class:"flex items-center justify-between border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},Gm={class:"truncate text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},Km={class:"flex flex-wrap items-center gap-3 px-4 py-3"},Bm=["disabled","aria-busy"],zm={key:0,class:"i-[carbon--circle-dash] h-3.5 w-3.5 animate-spin","aria-hidden":"true"},qm=$e({__name:"RouteDetailRequestHeader",props:{method:{},requestUrl:{},file:{},isSwRegistering:{type:Boolean}},emits:["run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>`method-${n.method.toLowerCase()}`);return(l,i)=>(O(),D("div",null,[w("div",Hm,[w("span",null,N(S(r)("detail.requestLabel")),1),w("span",Gm,N(n.file),1)]),w("div",Km,[w("span",{class:Ae(["rounded-full px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",o.value])},N(n.method),3),K(as,{value:n.requestUrl,readonly:"",class:"min-w-[220px] flex-1"},null,8,["value"]),w("button",{class:"flex items-center gap-2 rounded-full px-4 py-2 text-[0.65rem] uppercase tracking-[0.3em] shadow-sm transition hover:-translate-y-0.5 disabled:cursor-not-allowed disabled:opacity-70 disabled:hover:translate-y-0 bg-pg-accent text-pg-on-accent","data-testid":"playground-run",disabled:n.isSwRegistering,"aria-busy":n.isSwRegistering,onClick:i[0]||(i[0]=a=>s("run"))},[n.isSwRegistering?(O(),D("span",zm)):ce("",!0),me(" "+N(S(r)("detail.run")),1)],8,Bm)])]))}}),Ym=["type"],qe=$e({__name:"UiChipButton",props:{active:{type:Boolean,default:!1},tone:{default:"strong"},size:{default:"md"},type:{default:"button"}},setup(e,{expose:t}){const n=e,s=gs({base:"inline-flex items-center gap-2 rounded-full border uppercase tracking-[0.25em] transition hover:-translate-y-0.5",variants:{size:{xs:"px-2.5 py-1 text-[0.55rem]",sm:"px-3 py-1 text-[0.55rem]",md:"px-3 py-1.5 text-[0.6rem]",lg:"px-3 py-1.5 text-[0.65rem]"},tone:{strong:"border-pg-border bg-pg-surface-strong text-pg-text-soft",card:"border-pg-border bg-pg-surface-card text-pg-text-soft"},active:{true:"bg-pg-accent text-pg-on-accent border-pg-accent shadow-sm ring-1 ring-pg-accent-ring"}},defaultVariants:{size:"md",tone:"strong"}}),r=ds(),o=H(()=>ms(s({size:n.size,tone:n.tone,active:n.active}),r.class)),l=H(()=>{const{class:c,style:u,...f}=r;return f}),i=H(()=>r.style),a=te(null);return t({el:a}),(c,u)=>(O(),D("button",mn({ref_key:"buttonRef",ref:a},l.value,{type:n.type,class:o.value,style:i.value}),[_o(c.$slots,"default")],16,Ym))}}),dn=$e({__name:"UiField",props:{label:{},dense:{type:Boolean,default:!1}},setup(e){const t=e,n=gs({base:"flex flex-col uppercase text-pg-text-muted",variants:{dense:{true:"gap-1 text-[0.55rem] tracking-[0.25em]",false:"gap-1.5 text-[0.65rem] tracking-[0.2em]"}},defaultVariants:{dense:!1}}),s=ds(),r=H(()=>ms(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>(O(),D("label",mn(o.value,{class:r.value,style:l.value}),[w("span",null,N(t.label),1),_o(i.$slots,"default")],16))}}),Ir=$e({__name:"UiTextarea",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=gs({base:"rounded-lg border outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",variants:{dense:{true:"px-2.5 py-1.5 text-[0.8rem]",false:"px-3 py-2 text-sm"}},defaultVariants:{dense:!1}}),s=ds(),r=H(()=>ms(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>(O(),D("textarea",mn(o.value,{class:r.value,style:l.value}),null,16))}}),Jm={class:"rounded-2xl border shadow-sm border-pg-border bg-pg-surface-card"},Xm={class:"border-t p-4 border-pg-border"},Qm={class:"flex flex-wrap gap-2"},Zm={class:"mt-4"},eh={key:0,class:"rounded-xl border px-4 py-3 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},th={key:1,class:"grid gap-3 lg:grid-cols-2"},nh={class:"flex items-center gap-2 text-[0.55rem] uppercase tracking-[0.2em] text-pg-text-muted"},sh={class:"rounded-full border px-2 py-0.5 text-[0.5rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},rh={class:"relative"},oh=["value"],lh={value:"json"},ih={value:"text"},ah={value:"form"},ch={value:"multipart"},uh={value:"base64"},dh='{ "q": "alpha", "page": 1 }',fh='{ "x-mokup": "playground" }',ph='{ "name": "Ada" }',gh=`title=alpha
4
+ count=3`,mh=`title=alpha
5
+ status=active`,hh="SGVsbG8gd29ybGQ=",bh=$e({__name:"RouteDetailRequest",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),{bodyType:o}=Jc(n);function l(I){return I.kind==="param"?r("detail.paramPlaceholder"):r("detail.paramPlaceholderCatchall")}const i=te("query"),a=te(!1),c=new Map;let u=null;const f=H(()=>new Set(n.missingParams)),h=H(()=>n.missingParams.length>0),b=H(()=>n.routeParams.some(I=>I.required)),k=H(()=>{switch(o.value){case"text":return r("detail.bodyTypeText");case"form":return r("detail.bodyTypeForm");case"multipart":return r("detail.bodyTypeMultipart");case"base64":return r("detail.bodyTypeBase64");default:return r("detail.bodyTypeJson")}});function E(I,F){if(!F){c.delete(I);return}c.set(I,F)}function P(){u&&(clearTimeout(u),u=null),a.value=!1,!(typeof window>"u")&&window.requestAnimationFrame(()=>{a.value=!0,u=window.setTimeout(()=>{a.value=!1,u=null},1400)})}function g(){const[I]=n.missingParams;if(!I)return;const F=c.get(I);if(!F)return;F.scrollIntoView({behavior:"smooth",block:"center"}),F.querySelector("input")?.focus()}function y(){return n.routeParams.length>0?"params":"query"}ft(()=>n.selected?.url??"",()=>{i.value=y()},{immediate:!0}),ft(()=>n.routeParams.length,(I,F)=>{if(!n.selected){i.value="query";return}I>0&&F===0&&i.value==="query"&&(i.value="params"),I===0&&i.value==="params"&&(i.value="query")}),ft(()=>n.missingPulse,async(I,F)=>{I===F||!h.value||(i.value="params",await Si(),g(),P())}),ft(()=>n.missingParams.length,I=>{I===0&&(a.value=!1)}),In(()=>{u&&(clearTimeout(u),u=null)});function _(){switch(n.bodyType){case"text":return r("detail.bodyPlaceholderText");case"form":return r("detail.bodyPlaceholderForm",{sample:gh});case"multipart":return r("detail.bodyPlaceholderMultipart",{sample:mh});case"base64":return r("detail.bodyPlaceholderBase64",{sample:hh});default:return r("detail.bodyPlaceholderJson",{json:ph})}}const v=H(()=>n.selected.configChain??[]);return(I,F)=>(O(),D("section",Jm,[K(qm,{method:n.selected.method,"request-url":n.requestUrl,file:n.selected.file,"is-sw-registering":n.isSwRegistering,onRun:F[0]||(F[0]=A=>s("run"))},null,8,["method","request-url","file","is-sw-registering"]),K(Em,{"config-chain":v.value,"config-status-map":n.configStatusMap},null,8,["config-chain","config-status-map"]),K(jm,{selected:n.selected,"workspace-root":n.workspaceRoot},null,8,["selected","workspace-root"]),w("div",Xm,[w("div",Qm,[K(qe,{size:"md",active:i.value==="params",class:Ae([h.value?"pg-tab-missing":"",a.value&&h.value?"pg-pulse":""]),onClick:F[1]||(F[1]=A=>i.value="params")},{default:ne(()=>[w("span",null,N(S(r)("detail.params")),1),b.value?(O(),pt(Me,{key:0,size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:ne(()=>[me(N(S(r)("detail.badgeRequired")),1)]),_:1})):ce("",!0)]),_:1},8,["active","class"]),K(qe,{size:"md",active:i.value==="query",onClick:F[2]||(F[2]=A=>i.value="query")},{default:ne(()=>[w("span",null,N(S(r)("detail.query")),1),K(Me,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:ne(()=>[me(N(S(r)("detail.badgeJson")),1)]),_:1})]),_:1},8,["active"]),K(qe,{size:"md",active:i.value==="headers",onClick:F[3]||(F[3]=A=>i.value="headers")},{default:ne(()=>[w("span",null,N(S(r)("detail.headers")),1),K(Me,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:ne(()=>[me(N(S(r)("detail.badgeJson")),1)]),_:1})]),_:1},8,["active"]),K(qe,{size:"md",active:i.value==="body",onClick:F[4]||(F[4]=A=>i.value="body")},{default:ne(()=>[w("span",null,N(S(r)("detail.body")),1),K(Me,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:ne(()=>[me(N(k.value),1)]),_:1})]),_:1},8,["active"])]),w("div",Zm,[xs(w("div",null,[n.routeParams.length===0?(O(),D("div",eh,N(S(r)("detail.emptyParams")),1)):(O(),D("div",th,[(O(!0),D(ve,null,Xe(n.routeParams,A=>(O(),D("label",{key:A.id,ref_for:!0,ref:G=>E(A.name,G),class:"flex flex-col gap-1.5 text-[0.65rem] uppercase tracking-[0.2em] text-pg-text-muted"},[w("span",nh,[w("span",null,N(A.name),1),w("span",sh,N(A.token),1)]),K(as,{value:n.paramValues[A.name]??"",placeholder:l(A),class:Ae([f.value.has(A.name)?"pg-input-missing":"",a.value&&f.value.has(A.name)?"pg-pulse":""]),onInput:G=>s("update:param-value",A.name,G.target?.value??"")},null,8,["value","placeholder","class","onInput"])]))),128))]))],512),[[ws,i.value==="params"]]),xs(w("div",null,[K(dn,{label:S(r)("detail.query")},{default:ne(()=>[K(Ir,{value:n.queryText,rows:"4",placeholder:S(r)("detail.queryPlaceholder",{json:dh}),onInput:F[5]||(F[5]=A=>s("update:queryText",A.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ws,i.value==="query"]]),xs(w("div",null,[K(dn,{label:S(r)("detail.headers")},{default:ne(()=>[K(Ir,{value:n.headersText,rows:"4",placeholder:S(r)("detail.headersPlaceholder",{json:fh}),onInput:F[6]||(F[6]=A=>s("update:headersText",A.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ws,i.value==="headers"]]),xs(w("div",null,[K(dn,{label:S(r)("detail.bodyType")},{default:ne(()=>[w("div",rh,[w("select",{class:"w-full appearance-none rounded-lg border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",value:S(o),onChange:F[7]||(F[7]=A=>s("update:bodyType",A.target?.value))},[w("option",lh,N(S(r)("detail.bodyTypeJson")),1),w("option",ih,N(S(r)("detail.bodyTypeText")),1),w("option",ah,N(S(r)("detail.bodyTypeForm")),1),w("option",ch,N(S(r)("detail.bodyTypeMultipart")),1),w("option",uh,N(S(r)("detail.bodyTypeBase64")),1)],40,oh),F[9]||(F[9]=w("span",{class:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-pg-text-muted","aria-hidden":"true"},[w("span",{class:"i-[carbon--chevron-down] block h-4 w-4"})],-1))])]),_:1},8,["label"]),K(dn,{label:S(r)("detail.body")},{default:ne(()=>[K(Ir,{value:n.bodyText,rows:"6",placeholder:_(),onInput:F[8]||(F[8]=A=>s("update:bodyText",A.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ws,i.value==="body"]])])])]))}}),_h={class:"flex min-h-[220px] flex-1 flex-col rounded-2xl border shadow-sm border-pg-border bg-pg-surface-card"},vh={class:"flex items-center justify-between border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},yh={class:"flex items-center gap-3 text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},xh={class:"flex-1 min-h-0 overflow-auto rounded-b-2xl p-4 text-xs bg-pg-surface-strong text-pg-text","data-testid":"playground-response"},wh=$e({__name:"RouteDetailResponse",props:{responseText:{},responseStatus:{},responseTime:{}},setup(e){const t=e,{t:n}=Je();return(s,r)=>(O(),D("section",_h,[w("div",vh,[w("span",null,N(S(n)("detail.responseLabel")),1),w("span",yh,[w("span",null,N(t.responseStatus),1),w("span",null,N(t.responseTime),1)])]),w("pre",xh,N(t.responseText),1)]))}}),kh={class:"flex min-h-0 flex-col gap-4"},Th={key:0,class:"flex h-full flex-col items-center justify-center gap-3 rounded-3xl border p-6 text-center shadow-xl border-pg-border bg-pg-surface-card text-pg-text-muted"},Ch={class:"text-xl font-display text-pg-text-strong"},Sh={class:"text-sm"},Eh={key:1,class:"flex min-h-0 h-full flex-col gap-4"},Rh=$e({__name:"RouteDetail",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},responseText:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je();return(o,l)=>(O(),D("section",kh,[n.selected?(O(),D("div",Eh,[K(bh,{selected:n.selected,"request-url":n.requestUrl,"workspace-root":n.workspaceRoot,"route-params":n.routeParams,"param-values":n.paramValues,"missing-params":n.missingParams,"missing-pulse":n.missingPulse,"query-text":n.queryText,"headers-text":n.headersText,"body-text":n.bodyText,"body-type":n.bodyType,"is-sw-registering":n.isSwRegistering,"config-status-map":n.configStatusMap,"onUpdate:queryText":l[0]||(l[0]=i=>s("update:queryText",i)),"onUpdate:headersText":l[1]||(l[1]=i=>s("update:headersText",i)),"onUpdate:bodyText":l[2]||(l[2]=i=>s("update:bodyText",i)),"onUpdate:bodyType":l[3]||(l[3]=i=>s("update:bodyType",i)),"onUpdate:paramValue":l[4]||(l[4]=(i,a)=>s("update:param-value",i,a)),onRun:l[5]||(l[5]=i=>s("run"))},null,8,["selected","request-url","workspace-root","route-params","param-values","missing-params","missing-pulse","query-text","headers-text","body-text","body-type","is-sw-registering","config-status-map"]),K(wh,{"response-text":n.responseText,"response-status":n.responseStatus,"response-time":n.responseTime},null,8,["response-text","response-status","response-time"])])):(O(),D("div",Th,[w("p",Ch,N(S(r)("detail.selectTitle")),1),w("p",Sh,N(S(r)("detail.selectHint")),1)]))]))}}),Ph={class:"flex min-h-0 flex-col gap-4"},Ih={class:"rounded-3xl border p-5 shadow-xl border-pg-border bg-pg-surface-card"},Mh={class:"flex flex-wrap items-center justify-between gap-3"},Lh={class:"flex flex-col gap-1"},$h={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Oh={class:"flex flex-wrap items-center gap-2"},Ah={class:"text-lg font-display text-pg-text-strong"},Nh={class:"text-xs text-pg-text-subtle"},Fh={class:"flex items-center gap-2"},Dh=["aria-label","title"],Uh={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Vh={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Wh={key:0,class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},jh={class:"flex flex-wrap items-start justify-between gap-3"},Hh={class:"flex flex-col gap-1"},Gh={class:"flex flex-wrap items-center gap-2"},Kh={class:"text-[0.85rem] font-semibold text-pg-text"},Bh={key:0,class:"text-[0.75rem] text-pg-text-muted"},zh={key:1,class:"text-[0.7rem] text-pg-text-subtle"},qh=["aria-label","title","onClick"],Yh={key:1,class:"mt-3 text-xs text-pg-text-muted"},Jh={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Xh={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Qh={key:0,class:"mt-3 flex flex-col gap-2 text-xs text-pg-text-soft"},Zh={class:"rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},eb={class:"text-[0.7rem] text-pg-text-subtle"},tb={key:1,class:"mt-3 text-xs text-pg-text-muted"},nb={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},sb={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},rb={key:0,class:"mt-3 flex flex-col gap-3 text-sm text-pg-text-soft"},ob={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},lb={class:"mt-1 text-[0.75rem] text-pg-text-soft"},ib={class:"whitespace-pre-wrap"},ab={key:1,class:"mt-3 text-xs text-pg-text-muted"},cb={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},ub={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},db={class:"mt-3 grid gap-2 text-sm text-pg-text-soft"},fb={key:0,class:"flex items-center gap-2"},pb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},gb={key:1,class:"flex items-center gap-2"},mb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},hb={class:"flex items-center gap-2"},bb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},_b={class:"text-pg-text-subtle"},ql=$e({__name:"RouteDetailInactive",props:{mode:{},selected:{},workspaceRoot:{},configStatusMap:{}},setup(e){const t=e,{t:n}=Je(),s=H(()=>t.mode==="ignored"?n("inactive.titleIgnored"):n("inactive.titleDisabled")),r=H(()=>t.mode==="ignored"?n(`ignored.reason.${t.selected.reason}`):n(`disabled.reason.${t.selected.reason}`)),o=H(()=>t.selected.url?t.selected.url:t.selected.file),l=P=>`method-${P.toLowerCase()}`,i=H(()=>t.selected.decisionChain??[]),a=H(()=>t.selected.configChain??[]),c=H(()=>a.value.map((P,g)=>({file:P,order:g+1,disabled:t.configStatusMap.get(P)==="disabled"}))),u=H(()=>t.selected.effectiveConfig??{}),f=H(()=>{const P=[],g=u.value;return typeof g.enabled=="boolean"&&P.push({key:"enabled",label:n("inactive.config.enabled"),value:String(g.enabled)}),typeof g.status=="number"&&P.push({key:"status",label:n("inactive.config.status"),value:String(g.status)}),typeof g.delay=="number"&&P.push({key:"delay",label:n("inactive.config.delay"),value:`${g.delay}ms`}),typeof g.ignorePrefix<"u"&&P.push({key:"ignorePrefix",label:n("inactive.config.ignorePrefix"),value:h(g.ignorePrefix)}),typeof g.include<"u"&&P.push({key:"include",label:n("inactive.config.include"),value:h(g.include)}),typeof g.exclude<"u"&&P.push({key:"exclude",label:n("inactive.config.exclude"),value:h(g.exclude)}),g.headers&&Object.keys(g.headers).length>0&&P.push({key:"headers",label:n("inactive.config.headers"),value:h(g.headers)}),P});function h(P){return Array.isArray(P)?P.join(", "):P&&typeof P=="object"?JSON.stringify(P,null,2):String(P)}function b(P){return{"config.enabled":n("decision.configEnabled"),"ignore-prefix":n("decision.ignorePrefix"),"file.supported":n("decision.fileSupported"),"filter.exclude":n("decision.filterExclude"),"filter.include":n("decision.filterInclude"),"route.derived":n("decision.routeDerived"),"rule.enabled":n("decision.ruleEnabled")}[P.step]??P.step}function k(P){return Mn(P,t.workspaceRoot)}function E(P){fr(P,t.workspaceRoot)}return(P,g)=>(O(),D("section",Ph,[w("div",Ih,[w("div",Mh,[w("div",Lh,[w("span",$h,N(s.value),1),w("div",Oh,[t.selected.method?(O(),D("span",{key:0,class:Ae(["rounded-full px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",l(t.selected.method)])},N(t.selected.method),3)):ce("",!0),w("span",Ah,N(o.value),1)]),w("span",Nh,N(t.selected.file),1)]),w("div",Fh,[K(Me,{tone:"chip",size:"sm",caps:!1},{default:ne(()=>[me(N(r.value),1)]),_:1}),k(t.selected.file)?(O(),D("button",{key:0,class:"flex h-8 w-8 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${t.selected.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:g[0]||(g[0]=y=>E(t.selected.file))},[...g[1]||(g[1]=[w("span",{class:"i-[carbon--launch] h-4 w-4","aria-hidden":"true"},null,-1)])],8,Dh)):ce("",!0)])])]),w("div",Uh,[w("div",Vh,[w("span",null,N(S(n)("inactive.decisionChain")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(i.value.length),1)]),_:1})]),i.value.length>0?(O(),D("div",Wh,[(O(!0),D(ve,null,Xe(i.value,(y,_)=>(O(),D("div",{key:`decision-${_}-${y.step}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",jh,[w("div",Hh,[w("div",Gh,[w("span",{class:Ae(["rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em]",y.result==="pass"?"border-pg-border bg-pg-surface-strong text-pg-text-soft":"border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"])},N(y.result==="pass"?S(n)("inactive.pass"):S(n)("inactive.fail")),3),w("span",Kh,N(b(y)),1)]),y.detail?(O(),D("span",Bh,N(y.detail),1)):ce("",!0),y.source?(O(),D("span",zh,N(y.source),1)):ce("",!0)]),y.source&&k(y.source)?(O(),D("button",{key:0,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${y.source} in VS Code`,title:S(n)("detail.openInVscode"),onClick:v=>E(y.source)},[...g[2]||(g[2]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,qh)):ce("",!0)])]))),128))])):(O(),D("div",Yh,N(S(n)("inactive.decisionChainEmpty")),1))]),w("div",Jh,[w("div",Xh,[w("span",null,N(S(n)("detail.configChain")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(c.value.length),1)]),_:1})]),c.value.length>0?(O(),D("div",Qh,[(O(!0),D(ve,null,Xe(c.value,y=>(O(),D("div",{key:`config-${y.order}-${y.file}`,class:"flex flex-wrap items-center gap-2"},[w("span",Zh,N(y.order),1),w("span",eb,N(y.file),1),y.disabled?(O(),pt(Me,{key:0,tone:"strong",size:"xxs",caps:!1},{default:ne(()=>[me(N(S(n)("configPanel.statusDisabled")),1)]),_:1})):ce("",!0)]))),128))])):(O(),D("div",tb,N(S(n)("detail.configChainEmpty")),1))]),w("div",nb,[w("div",sb,[w("span",null,N(S(n)("inactive.effectiveConfig")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(f.value.length),1)]),_:1})]),f.value.length>0?(O(),D("div",rb,[(O(!0),D(ve,null,Xe(f.value,y=>(O(),D("div",{key:`config-entry-${y.key}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",ob,N(y.label),1),w("div",lb,[w("code",ib,N(y.value),1)])]))),128))])):(O(),D("div",ab,N(S(n)("inactive.effectiveConfigEmpty")),1))]),w("div",cb,[w("div",ub,N(S(n)("inactive.routeSummary")),1),w("div",db,[t.selected.method?(O(),D("div",fb,[w("span",pb,N(S(n)("inactive.summaryMethod")),1),w("span",null,N(t.selected.method),1)])):ce("",!0),t.selected.url?(O(),D("div",gb,[w("span",mb,N(S(n)("inactive.summaryPath")),1),w("span",null,N(t.selected.url),1)])):ce("",!0),w("div",hb,[w("span",bb,N(S(n)("inactive.summaryFile")),1),w("span",_b,N(t.selected.file),1)])])])]))}}),vb={key:4,class:"flex h-full flex-col items-center justify-center gap-3 rounded-3xl border p-6 text-center shadow-xl border-pg-border bg-pg-surface-card text-pg-text-muted"},yb={class:"text-xl font-display text-pg-text-strong"},xb={class:"text-sm"},wb=$e({__name:"PlaygroundContent",props:{selected:{},selectedDisabled:{},selectedIgnored:{},selectedConfig:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},responseText:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},routeMode:{},enabledMode:{},disabledMode:{},configImpactRoutes:{},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>n.routeMode==="active"&&n.enabledMode==="api"),l=H(()=>!!n.selectedConfig),i=H(()=>n.routeMode==="disabled"&&n.disabledMode==="api"),a=H(()=>n.routeMode==="ignored"),c=H(()=>n.selectedConfig?n.configStatusMap.get(n.selectedConfig.file)??"enabled":"enabled"),u=H(()=>n.routeMode==="disabled"?r("states.disabledTitle"):n.routeMode==="ignored"?r("states.ignoredTitle"):r("states.configTitle")),f=H(()=>n.routeMode==="disabled"?r("states.disabledHint"):n.routeMode==="ignored"?r("states.ignoredHint"):r("states.configHint")),h=H({get:()=>n.queryText,set:y=>s("update:queryText",y)}),b=H({get:()=>n.headersText,set:y=>s("update:headersText",y)}),k=H({get:()=>n.bodyText,set:y=>s("update:bodyText",y)}),E=H(()=>n.workspaceRoot??"");function P(y,_){s("update:param-value",y,_)}function g(){s("run")}return(y,_)=>o.value?(O(),pt(Rh,{key:0,queryText:h.value,"onUpdate:queryText":_[0]||(_[0]=v=>h.value=v),headersText:b.value,"onUpdate:headersText":_[1]||(_[1]=v=>b.value=v),bodyText:k.value,"onUpdate:bodyText":_[2]||(_[2]=v=>k.value=v),selected:n.selected,"request-url":n.requestUrl,"workspace-root":E.value,"response-text":n.responseText,"response-status":n.responseStatus,"response-time":n.responseTime,"is-sw-registering":n.isSwRegistering,"route-params":n.routeParams,"param-values":n.paramValues,"missing-params":n.missingParams,"missing-pulse":n.missingPulse,"config-status-map":n.configStatusMap,"onUpdate:paramValue":P,onRun:g},null,8,["queryText","headersText","bodyText","selected","request-url","workspace-root","response-text","response-status","response-time","is-sw-registering","route-params","param-values","missing-params","missing-pulse","config-status-map"])):i.value&&n.selectedDisabled?(O(),pt(ql,{key:1,mode:"disabled",selected:n.selectedDisabled,"workspace-root":n.workspaceRoot,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):a.value&&n.selectedIgnored?(O(),pt(ql,{key:2,mode:"ignored",selected:n.selectedIgnored,"workspace-root":n.workspaceRoot,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):n.selectedConfig&&l.value?(O(),pt(_m,{key:3,selected:n.selectedConfig,impacted:n.configImpactRoutes,"is-disabled":c.value==="disabled","workspace-root":n.workspaceRoot},null,8,["selected","impacted","is-disabled","workspace-root"])):(O(),D("div",vb,[w("p",yb,N(u.value),1),w("p",xb,N(f.value),1)]))}}),Qa="mokup.playground.theme";function Za(){try{const e=localStorage.getItem(Qa);if(e==="system"||e==="light"||e==="dark")return e}catch{}return null}function kb(e){try{localStorage.setItem(Qa,e)}catch{}}function Tb(e){return e==="system"?"light":e==="light"?"dark":"system"}function ec(e,t){return e==="dark"?"dark":e==="light"?"light":t?"dark":"light"}function Ns(e,t){const n=ec(e,t);return document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,n}function Cb(){const e=Za()??"system",t=window.matchMedia("(prefers-color-scheme: dark)").matches;return Ns(e,t),e}function Sb(){const e=te("system"),t=te(!1);let n=null;const s=H(()=>ec(e.value,t.value)),r=()=>{n&&(t.value=n.matches,e.value==="system"&&Ns(e.value,t.value))};function o(i){e.value=i,kb(i),Ns(i,t.value)}function l(){o(Tb(e.value))}return Pn(()=>{n=window.matchMedia("(prefers-color-scheme: dark)"),t.value=n.matches,e.value=Za()??"system",Ns(e.value,t.value),n.addEventListener("change",r)}),In(()=>{n?.removeEventListener("change",r),n=null}),{themeMode:e,effectiveTheme:s,setThemeMode:o,cycleThemeMode:l}}const Eb={header:{title:"Mock Playground",subtitle:"Inspect mock endpoints, craft requests, and validate responses without leaving the dev server.",refresh:"Refresh",routes:"{count} routes",calls:"{count} calls",languageToggle:"Language",themeToggle:"Theme"},controls:{more:"More"},theme:{system:"System",light:"Light",dark:"Dark"},filters:{search:"Search",base:"Base",searchPlaceholder:"Filter by method, path, or file"},disabled:{active:"Active ({count})",disabled:"Disabled ({count})",ignored:"Ignored ({count})",reason:{disabled:"Disabled","disabled-dir":"Disabled (dir)","ignore-prefix":"Ignore prefix",include:"Include filter",exclude:"Exclude filter",unknown:"Unknown"}},enabled:{api:"API ({count})",config:"Config ({count})",configLabel:"Config"},ignored:{reason:{unsupported:"Unsupported","invalid-route":"Not a route",unknown:"Unknown"}},tabs:{overview:"Overview"},tree:{file:"File",route:"Route"},states:{loadingRoutes:"Loading routes...",emptyRoutes:"No routes matched.",emptyDisabledRoutes:"No disabled routes matched.",emptyIgnoredRoutes:"No ignored files matched.",emptyDisabledConfigFiles:"No disabled config files matched.",emptyConfigFiles:"No config files matched.",disabledTitle:"Disabled routes",disabledHint:"Disabled routes are not executable.",ignoredTitle:"Ignored files",ignoredHint:"Ignored files are not mock routes.",configTitle:"Config files",configHint:"Config files are not mock routes."},detail:{selectTitle:"Select a route",selectHint:"Choose a route on the left to run a request.",requestLabel:"Request",responseLabel:"Response",run:"Run",params:"Params",badgeRequired:"Required",badgeJson:"JSON",emptyParams:"No params for this route.",query:"Query (JSON)",headers:"Headers (JSON)",body:"Body",bodyType:"Body type",bodyTypeJson:"JSON",bodyTypeText:"Text",bodyTypeForm:"Form",bodyTypeMultipart:"Multipart",bodyTypeBase64:"Base64",middlewares:"Middlewares",middlewarePre:"Pre",middlewareNormal:"Normal",middlewarePost:"Post",configChain:"Config chain",configChainEmpty:"No config files matched.",openInVscode:"Open in VSCode",queryPlaceholder:"{json}",headersPlaceholder:"{json}",bodyPlaceholderJson:"{json}",bodyPlaceholderText:"raw text",bodyPlaceholderForm:"{sample}",bodyPlaceholderMultipart:"{sample}",bodyPlaceholderBase64:"{sample}",paramPlaceholder:"value",paramPlaceholderCatchall:"path/segments"},response:{idle:"Idle",empty:"No response yet.",waiting:"Waiting for response...",loading:"Loading...",error:"Error",emptyPayload:"[empty response]"},errors:{queryJson:"Query JSON error: {message}",headersJson:"Headers JSON error: {message}",bodyJson:"Body JSON error: {message}",bodyBase64:"Body base64 error: {message}",routeParams:"Missing route params: {params}"},configPanel:{title:"Config scope",scope:"Scope",impacted:"Impacted routes",active:"Active",disabled:"Disabled",ignored:"Ignored",emptyImpacts:"No routes matched.",statusEnabled:"Enabled",statusDisabled:"Disabled"},decision:{"config.enabled":"Config enabled","ignore-prefix":"Ignore prefix","file.supported":"Supported file","filter.exclude":"Exclude filter","filter.include":"Include filter","route.derived":"Route derived","rule.enabled":"Rule enabled"},inactive:{titleDisabled:"Disabled route",titleIgnored:"Ignored file",decisionChain:"Decision chain",decisionChainEmpty:"No decision chain recorded.",effectiveConfig:"Effective config",effectiveConfigEmpty:"No config overrides.",routeSummary:"Route summary",pass:"Pass",fail:"Fail",summaryMethod:"Method",summaryPath:"Path",summaryFile:"File",config:{enabled:"Enabled",status:"Status",delay:"Delay",ignorePrefix:"Ignore prefix",include:"Include",exclude:"Exclude",headers:"Headers"}}},Rb={header:{title:"接口调试台",subtitle:"查看 Mock 接口、构造请求并验证响应,无需离开开发服务器。",refresh:"刷新",routes:"{count} 条接口",calls:"已调用 {count} 次",languageToggle:"语言",themeToggle:"主题"},controls:{more:"更多"},theme:{system:"跟随系统",light:"亮色",dark:"暗色"},filters:{search:"搜索",base:"基路径",searchPlaceholder:"按方法、路径或文件过滤"},disabled:{active:"启用 ({count})",disabled:"禁用 ({count})",ignored:"忽略 ({count})",reason:{disabled:"已禁用","disabled-dir":"目录禁用","ignore-prefix":"前缀忽略",include:"未命中包含",exclude:"命中排除",unknown:"未知"}},enabled:{api:"接口 ({count})",config:"配置 ({count})",configLabel:"配置"},ignored:{reason:{unsupported:"不支持的文件","invalid-route":"非路由文件",unknown:"未知"}},tabs:{overview:"总览"},tree:{file:"文件",route:"路由"},states:{loadingRoutes:"正在加载接口...",emptyRoutes:"没有匹配的接口。",emptyDisabledRoutes:"没有匹配的禁用接口。",emptyIgnoredRoutes:"没有匹配的忽略文件。",emptyDisabledConfigFiles:"没有匹配的禁用配置文件。",emptyConfigFiles:"没有匹配的配置文件。",disabledTitle:"禁用接口",disabledHint:"禁用接口无法调试。",ignoredTitle:"忽略的文件",ignoredHint:"忽略列表中的文件不属于接口。",configTitle:"配置文件",configHint:"配置文件不属于接口。"},detail:{selectTitle:"请选择接口",selectHint:"从左侧选择一个接口开始调试。",requestLabel:"请求",responseLabel:"响应",run:"发送",params:"路径参数",badgeRequired:"必填",badgeJson:"JSON",emptyParams:"该接口没有路径参数。",query:"查询参数 (JSON)",headers:"请求头 (JSON)",body:"请求体",bodyType:"请求体类型",bodyTypeJson:"JSON",bodyTypeText:"文本",bodyTypeForm:"表单",bodyTypeMultipart:"多段表单",bodyTypeBase64:"Base64",middlewares:"中间件",middlewarePre:"前置",middlewareNormal:"普通",middlewarePost:"后置",configChain:"配置链路",configChainEmpty:"当前接口未匹配配置文件。",openInVscode:"在 VSCode 中打开",queryPlaceholder:"{json}",headersPlaceholder:"{json}",bodyPlaceholderJson:"{json}",bodyPlaceholderText:"原始文本",bodyPlaceholderForm:"{sample}",bodyPlaceholderMultipart:"{sample}",bodyPlaceholderBase64:"{sample}",paramPlaceholder:"填写值",paramPlaceholderCatchall:"路径片段"},response:{idle:"空闲",empty:"暂无响应。",waiting:"等待响应...",loading:"请求中...",error:"错误",emptyPayload:"[空响应]"},errors:{queryJson:"查询 JSON 错误:{message}",headersJson:"请求头 JSON 错误:{message}",bodyJson:"请求体 JSON 错误:{message}",bodyBase64:"请求体 Base64 错误:{message}",routeParams:"缺少路径参数:{params}"},configPanel:{title:"配置范围",scope:"影响范围",impacted:"影响接口",active:"生效",disabled:"禁用",ignored:"忽略",emptyImpacts:"没有匹配的接口。",statusEnabled:"启用",statusDisabled:"禁用"},decision:{"config.enabled":"配置启用","ignore-prefix":"忽略前缀","file.supported":"支持文件","filter.exclude":"排除过滤","filter.include":"包含过滤","route.derived":"路由解析","rule.enabled":"规则启用"},inactive:{titleDisabled:"禁用接口",titleIgnored:"忽略文件",decisionChain:"判定链路",decisionChainEmpty:"暂无判定链路。",effectiveConfig:"生效配置",effectiveConfigEmpty:"暂无配置覆盖。",routeSummary:"接口概览",pass:"通过",fail:"未通过",summaryMethod:"方法",summaryPath:"路径",summaryFile:"文件",config:{enabled:"启用",status:"状态码",delay:"延迟",ignorePrefix:"忽略前缀",include:"包含",exclude:"排除",headers:"响应头"}}},tc="mokup.playground.locale",Pb={"en-US":Eb,"zh-CN":Rb};function Ib(){try{const e=localStorage.getItem(tc);if(e==="en-US"||e==="zh-CN")return e}catch{}return null}function Mb(e){try{localStorage.setItem(tc,e)}catch{}}const Lb=Tp({legacy:!1,locale:Ib()??"en-US",fallbackLocale:"en-US",messages:Pb}),$b={class:"flex flex-none flex-wrap items-center justify-between gap-2 rounded-2xl border px-3 py-2 text-[0.55rem] uppercase tracking-[0.25em] shadow-sm border-pg-border bg-pg-surface-card text-pg-text-soft"},Ob={class:"flex flex-wrap items-center gap-2"},Ab={class:"flex flex-wrap items-center gap-2"},Nb=$e({__name:"PlaygroundHeader",props:{visibleCount:{},totalCount:{}},emits:["refresh"],setup(e,{emit:t}){const n=t,{locale:s,t:r}=Je(),{themeMode:o,effectiveTheme:l,cycleThemeMode:i}=Sb(),a=H(()=>l.value==="dark"?"i-[carbon--moon]":"i-[carbon--sun]"),c=H(()=>r(`theme.${o.value}`)),u=H(()=>s.value==="zh-CN"?"中文":"EN");function f(){const b=s.value==="en-US"?"zh-CN":"en-US";s.value=b,Mb(b)}function h(){n("refresh")}return(b,k)=>(O(),D("div",$b,[w("div",Ob,[K(Me,{tone:"strong",size:"xs"},{default:ne(()=>[k[0]||(k[0]=w("span",{class:"i-[carbon--map] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("header.routes",{count:e.visibleCount})),1)]),_:1}),K(Me,{tone:"strong",size:"xs"},{default:ne(()=>[k[1]||(k[1]=w("span",{class:"i-[carbon--activity] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("header.calls",{count:e.totalCount})),1)]),_:1})]),w("div",Ab,[K(qe,{size:"xs",title:S(r)("header.languageToggle"),onClick:f},{default:ne(()=>[k[2]||(k[2]=w("span",{class:"i-[carbon--language] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(u.value),1)]),_:1},8,["title"]),K(qe,{size:"xs",title:S(r)("header.themeToggle"),onClick:S(i)},{default:ne(()=>[w("span",{class:Ae([a.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),w("span",null,N(c.value),1)]),_:1},8,["title","onClick"]),K(qe,{size:"xs",onClick:h},{default:ne(()=>[k[3]||(k[3]=w("span",{class:"i-[carbon--rotate] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("header.refresh")),1)]),_:1})])]))}}),Fb={class:"flex flex-col gap-1","data-testid":"playground-tree"},Db=["title","onClick"],Ub={class:"flex min-w-0 flex-1 flex-col gap-1"},Vb=["aria-label","onClick"],Wb=$e({__name:"RouteTree",props:{rows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["toggle","select"],setup(e,{emit:t}){const n=e,s=t,r=u=>`method-${u.toLowerCase()}`;function o(u){return Mn(u.file,n.workspaceRoot)}function l(u){fr(u.file,n.workspaceRoot)}function i(u){if(u.kind==="folder"){s("toggle",u.id);return}s("select",u)}function a(u){return n.getRouteCount?n.getRouteCount(u):0}function c(u){return`${u*12}px`}return(u,f)=>(O(),D("div",Fb,[(O(!0),D(ve,null,Xe(e.rows,h=>(O(),D("div",{key:h.id,class:Ae(["group flex items-center gap-2 rounded-lg border border-transparent px-2 py-1 text-left transition text-pg-text hover:bg-pg-hover",h.selected?"bg-pg-accent text-pg-on-accent border-pg-accent shadow-sm":""]),"data-testid":"playground-tree-row"},[w("button",{class:"flex min-w-0 flex-1 items-start gap-2 text-left",type:"button",title:h.title,onClick:b=>i(h)},[w("div",Ub,[w("div",{class:"flex items-center gap-2",style:cs({paddingLeft:c(h.depth)})},[w("span",{class:Ae(["flex h-3.5 w-3.5 items-center justify-center",h.selected?"text-pg-on-accent-soft":"text-pg-text-muted"])},[h.kind==="folder"?(O(),D("span",{key:0,class:Ae([h.expanded?"i-[carbon--chevron-down]":"i-[carbon--chevron-right]","h-3.5 w-3.5"]),"aria-hidden":"true"},null,2)):ce("",!0)],2),h.kind==="route"&&h.route?(O(),D("span",{key:0,class:Ae(["rounded-full px-1.5 py-0.5 text-[0.5rem] uppercase tracking-[0.2em]",r(h.route.method)])},N(h.route.method),3)):ce("",!0),w("span",{class:Ae(["text-[0.78rem]",h.kind==="folder"?"font-semibold":"font-medium"])},N(h.label),3)],4)]),h.kind==="route"&&h.route&&a(h.route)>0?(O(),pt(Me,{key:0,tone:"chip",size:"xxs",caps:!1,class:"ml-auto"},{default:ne(()=>[me(N(a(h.route)),1)]),_:2},1024)):ce("",!0)],8,Db),h.kind==="route"&&h.route&&o(h.route)?(O(),D("button",{key:0,class:Ae(["flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",h.selected?"text-pg-on-accent-soft":""]),type:"button","aria-label":`Open ${h.route.file} in VS Code`,onClick:b=>l(h.route)},[...f[0]||(f[0]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],10,Vb)):ce("",!0)],2))),128))]))}}),jb={class:"flex-1 min-h-0 overflow-auto"},Hb={key:0,class:"rounded-2xl border px-4 py-3 text-sm border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"},Gb={key:1,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Kb={key:0,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Bb={key:1,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},zb={key:2,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},qb={key:3,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Yb={key:4,class:"flex flex-col gap-2"},Jb=["onClick"],Xb={class:"flex flex-wrap items-center justify-between gap-2"},Qb={class:"flex flex-col gap-1"},Zb={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},e_={key:0,class:"text-[0.75rem] text-pg-text-subtle"},t_={class:"flex items-center gap-2"},n_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},s_=["aria-label","title","onClick"],r_={key:5,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},o_={key:6,class:"flex flex-col gap-2"},l_=["onClick"],i_={class:"flex flex-wrap items-center justify-between gap-2"},a_={class:"flex flex-col gap-1"},c_={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},u_={class:"flex items-center gap-2"},d_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},f_=["aria-label","title","onClick"],p_={key:7,class:"flex flex-col gap-2"},g_=["onClick"],m_={class:"flex flex-wrap items-center justify-between gap-2"},h_={class:"flex flex-col gap-1"},b_={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},__={class:"flex items-center gap-2"},v_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},y_=["aria-label","title","onClick"],x_={key:8,class:"flex flex-col gap-2"},w_=["onClick"],k_={class:"flex flex-wrap items-center justify-between gap-2"},T_={class:"flex flex-col gap-1"},C_={class:"text-[0.7rem] tracking-[0.18em] text-pg-text-muted"},S_={class:"flex items-center gap-2"},E_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},R_=["aria-label","title","onClick"],Ms="relative bg-pg-accent/12 text-pg-text-strong font-semibold shadow-[inset_4px_0_0_0_var(--color-pg-accent)]",P_=$e({__name:"PlaygroundSidebarBody",props:{routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},error:{},loading:{type:Boolean},filtered:{},disabledFiltered:{},ignoredFiltered:{},configFiltered:{},disabledConfigFiltered:{},treeRows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>{const g={rows:n.treeRows};return n.workspaceRoot&&n.workspaceRoot.trim()&&(g.workspaceRoot=n.workspaceRoot),n.getRouteCount&&(g.getRouteCount=n.getRouteCount),g});function l(g){return r(`disabled.reason.${g??"unknown"}`)}function i(g){return r(`ignored.reason.${g??"unknown"}`)}function a(g){return g?g.toLowerCase():""}function c(g){return g.toLowerCase()}function u(g){return Mn(g,n.workspaceRoot)}function f(g){fr(g,n.workspaceRoot)}function h(g){g.route&&s("select-route",g.route)}function b(g){return n.selectedConfig?.file===g.file}function k(g){if(!g)return"";const y=(g.method??"").toUpperCase(),_=g.url??"";return`${g.file}|${g.reason}|${y}|${_}`}function E(g){const y=k(n.selectedDisabled);return y?k(g)===y:!1}function P(g){return n.selectedIgnored?.file===g.file&&n.selectedIgnored?.reason===g.reason}return(g,y)=>(O(),D("div",jb,[n.error?(O(),D("div",Hb,N(n.error),1)):n.loading?(O(),D("div",Gb,N(S(r)("states.loadingRoutes")),1)):(O(),D(ve,{key:2},[n.routeMode==="disabled"&&n.disabledMode==="api"&&!n.disabledFiltered.length?(O(),D("div",Kb,N(S(r)("states.emptyDisabledRoutes")),1)):n.routeMode==="ignored"&&!n.ignoredFiltered.length?(O(),D("div",Bb,N(S(r)("states.emptyIgnoredRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="api"&&!n.filtered.length?(O(),D("div",zb,N(S(r)("states.emptyRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="config"&&!n.configFiltered.length?(O(),D("div",qb,N(S(r)("states.emptyConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="api"?(O(),D("div",Yb,[(O(!0),D(ve,null,Xe(n.disabledFiltered,_=>(O(),D("button",{key:`${_.file}-${_.reason}-${_.method??""}-${_.url??""}`,class:Ae(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",E(_)?Ms:""]),type:"button",onClick:v=>s("select-disabled-route",_)},[w("div",Xb,[w("div",Qb,[w("span",Zb,N(_.method&&_.url?`${_.method} ${a(_.url)}`:a(_.url)||_.file),1),_.method&&_.url?(O(),D("span",e_,N(_.file),1)):ce("",!0)]),w("div",t_,[E(_)?(O(),D("span",n_,[...y[1]||(y[1]=[w("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):ce("",!0),K(Me,{tone:"strong",size:"sm",tracking:"tight"},{default:ne(()=>[me(N(l(_.reason)),1)]),_:2},1024),u(_.file)?(O(),D("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:ks(v=>f(_.file),["stop"])},[...y[2]||(y[2]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,s_)):ce("",!0)])])],10,Jb))),128))])):n.routeMode==="disabled"&&n.disabledMode==="config"&&!n.disabledConfigFiltered.length?(O(),D("div",r_,N(S(r)("states.emptyDisabledConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="config"?(O(),D("div",o_,[(O(!0),D(ve,null,Xe(n.disabledConfigFiltered,_=>(O(),D("button",{key:_.file,class:Ae(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",b(_)?Ms:""]),type:"button",onClick:v=>s("select-config",_)},[w("div",i_,[w("div",a_,[w("span",c_,N(c(_.file)),1)]),w("div",u_,[b(_)?(O(),D("span",d_,[...y[3]||(y[3]=[w("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):ce("",!0),K(Me,{tone:"strong",size:"sm",tracking:"tight"},{default:ne(()=>[me(N(S(r)("enabled.configLabel")),1)]),_:1}),u(_.file)?(O(),D("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:ks(v=>f(_.file),["stop"])},[...y[4]||(y[4]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,f_)):ce("",!0)])])],10,l_))),128))])):n.routeMode==="ignored"?(O(),D("div",p_,[(O(!0),D(ve,null,Xe(n.ignoredFiltered,_=>(O(),D("button",{key:`${_.file}-${_.reason}`,class:Ae(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",P(_)?Ms:""]),type:"button",onClick:v=>s("select-ignored-route",_)},[w("div",m_,[w("div",h_,[w("span",b_,N(_.file),1)]),w("div",__,[P(_)?(O(),D("span",v_,[...y[5]||(y[5]=[w("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):ce("",!0),K(Me,{tone:"strong",size:"sm",tracking:"tight"},{default:ne(()=>[me(N(i(_.reason)),1)]),_:2},1024),u(_.file)?(O(),D("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:ks(v=>f(_.file),["stop"])},[...y[6]||(y[6]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,y_)):ce("",!0)])])],10,g_))),128))])):n.routeMode==="active"&&n.enabledMode==="config"?(O(),D("div",x_,[(O(!0),D(ve,null,Xe(n.configFiltered,_=>(O(),D("button",{key:_.file,class:Ae(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",b(_)?Ms:""]),type:"button",onClick:v=>s("select-config",_)},[w("div",k_,[w("div",T_,[w("span",C_,N(c(_.file)),1)]),w("div",S_,[b(_)?(O(),D("span",E_,[...y[7]||(y[7]=[w("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):ce("",!0),K(Me,{tone:"strong",size:"sm",tracking:"tight"},{default:ne(()=>[me(N(S(r)("enabled.configLabel")),1)]),_:1}),u(_.file)?(O(),D("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:ks(v=>f(_.file),["stop"])},[...y[8]||(y[8]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,R_)):ce("",!0)])])],10,w_))),128))])):(O(),pt(Wb,mn({key:9},o.value,{onToggle:y[0]||(y[0]=_=>s("toggle",_)),onSelect:h}),null,16))],64))]))}}),I_=$e({__name:"PlaygroundFilters",props:{search:{},basePath:{},showBase:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){const n=e,s=t;function r(l){const i=l.target;s("update:search",i?.value??"")}const{t:o}=Je();return(l,i)=>(O(),D("section",{class:Ae(["grid",n.compact?"gap-2":"gap-3"])},[K(dn,{label:S(o)("filters.search"),dense:n.compact},{default:ne(()=>[K(as,{value:e.search,type:"search",dense:n.compact,placeholder:S(o)("filters.searchPlaceholder"),"data-testid":"playground-search",onInput:r},null,8,["value","dense","placeholder"])]),_:1},8,["label","dense"]),n.showBase?(O(),pt(dn,{key:0,label:S(o)("filters.base"),dense:n.compact},{default:ne(()=>[K(as,{value:e.basePath,readonly:"",dense:n.compact},null,8,["value","dense"])]),_:1},8,["label","dense"])):ce("",!0)],2))}}),M_={class:"flex flex-wrap items-center gap-2"},L_=$e({__name:"PlaygroundTabs",props:{groups:{},activeGroup:{}},emits:["select"],setup(e,{emit:t}){const n=t,{t:s}=Je();return(r,o)=>(O(),D("section",M_,[K(qe,{size:"md",active:e.activeGroup==="all",onClick:o[0]||(o[0]=l=>n("select","all"))},{default:ne(()=>[me(N(S(s)("tabs.overview")),1)]),_:1},8,["active"]),(O(!0),D(ve,null,Xe(e.groups,l=>(O(),pt(qe,{key:l.key,size:"md",active:e.activeGroup===l.key,onClick:i=>n("select",l.key)},{default:ne(()=>[me(N(l.label),1)]),_:2},1032,["active","onClick"]))),128))]))}}),$_={class:"flex items-center gap-2"},O_=$e({__name:"TreeModeToggle",props:{treeMode:{}},emits:["update:treeMode"],setup(e,{emit:t}){const n=t;function s(o){n("update:treeMode",o)}const{t:r}=Je();return(o,l)=>(O(),D("div",$_,[K(qe,{size:"sm",active:e.treeMode==="file",onClick:l[0]||(l[0]=i=>s("file"))},{default:ne(()=>[l[2]||(l[2]=w("span",{class:"i-[carbon--document] h-4 w-4","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("tree.file")),1)]),_:1},8,["active"]),K(qe,{size:"sm",active:e.treeMode==="route",onClick:l[1]||(l[1]=i=>s("route"))},{default:ne(()=>[l[3]||(l[3]=w("span",{class:"i-[carbon--link] h-4 w-4","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("tree.route")),1)]),_:1},8,["active"])]))}}),A_={class:"relative"},N_={class:"flex items-end gap-2"},F_={class:"mt-2 flex flex-wrap items-center gap-2"},D_={key:0,class:"mt-2 flex flex-wrap items-center gap-2"},U_={key:1,class:"mt-2 flex flex-wrap items-center gap-2"},V_={class:"grid gap-3"},W_=$e({__name:"PlaygroundSidebarHeader",props:{search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{}},emits:["update:search","select-group","set-route-mode","set-enabled-mode","set-disabled-mode","update:treeMode"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H({get:()=>n.search,set:h=>s("update:search",h)}),l=H(()=>n.basePath||"/"),i=te(!1),a=te(null),c=te(null);function u(){i.value=!i.value}function f(h){if(!i.value)return;const b=h.target;if(!b)return;const k=a.value?.$el;c.value?.contains(b)||k?.contains(b)||(i.value=!1)}return Pn(()=>{document.addEventListener("pointerdown",f)}),In(()=>{document.removeEventListener("pointerdown",f)}),(h,b)=>(O(),D("div",A_,[w("div",N_,[K(I_,{search:o.value,"onUpdate:search":b[0]||(b[0]=k=>o.value=k),"base-path":l.value,"show-base":!1,compact:!0,class:"flex-1"},null,8,["search","base-path"]),K(qe,{ref_key:"moreButtonRef",ref:a,size:"sm",class:"h-9","aria-expanded":i.value,"aria-haspopup":"true","aria-controls":"playground-more-panel",onClick:u},{default:ne(()=>[b[10]||(b[10]=w("span",{class:"i-[carbon--settings-adjust] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("controls.more")),1)]),_:1},8,["aria-expanded"])]),w("div",F_,[K(qe,{size:"md",active:n.routeMode==="active",onClick:b[1]||(b[1]=k=>s("set-route-mode","active"))},{default:ne(()=>[me(N(S(r)("disabled.active",{count:n.activeTotal})),1)]),_:1},8,["active"]),K(qe,{size:"md",active:n.routeMode==="disabled",onClick:b[2]||(b[2]=k=>s("set-route-mode","disabled"))},{default:ne(()=>[me(N(S(r)("disabled.disabled",{count:n.disabledTotal})),1)]),_:1},8,["active"]),K(qe,{size:"md",active:n.routeMode==="ignored",onClick:b[3]||(b[3]=k=>s("set-route-mode","ignored"))},{default:ne(()=>[me(N(S(r)("disabled.ignored",{count:n.ignoredTotal})),1)]),_:1},8,["active"])]),n.routeMode==="active"?(O(),D("div",D_,[K(qe,{size:"sm",active:n.enabledMode==="api",onClick:b[4]||(b[4]=k=>s("set-enabled-mode","api"))},{default:ne(()=>[me(N(S(r)("enabled.api",{count:n.apiTotal})),1)]),_:1},8,["active"]),K(qe,{size:"sm",active:n.enabledMode==="config",onClick:b[5]||(b[5]=k=>s("set-enabled-mode","config"))},{default:ne(()=>[me(N(S(r)("enabled.config",{count:n.configTotal})),1)]),_:1},8,["active"])])):n.routeMode==="disabled"?(O(),D("div",U_,[K(qe,{size:"sm",active:n.disabledMode==="api",onClick:b[6]||(b[6]=k=>s("set-disabled-mode","api"))},{default:ne(()=>[me(N(S(r)("enabled.api",{count:n.disabledApiTotal})),1)]),_:1},8,["active"]),K(qe,{size:"sm",active:n.disabledMode==="config",onClick:b[7]||(b[7]=k=>s("set-disabled-mode","config"))},{default:ne(()=>[me(N(S(r)("enabled.config",{count:n.disabledConfigTotal})),1)]),_:1},8,["active"])])):ce("",!0),i.value?(O(),D("div",{key:2,id:"playground-more-panel",ref_key:"morePanelRef",ref:c,class:"absolute left-0 right-0 z-30 mt-2 rounded-2xl border p-3 shadow-xl border-pg-border bg-pg-surface-panel"},[w("div",V_,[K(dn,{label:S(r)("filters.base"),dense:""},{default:ne(()=>[K(as,{value:l.value,readonly:"",dense:""},null,8,["value"])]),_:1},8,["label"]),K(L_,{groups:n.groups,"active-group":n.activeGroup,onSelect:b[8]||(b[8]=k=>s("select-group",k))},null,8,["groups","active-group"]),K(O_,{"tree-mode":n.treeMode,"onUpdate:treeMode":b[9]||(b[9]=k=>s("update:treeMode",k))},null,8,["tree-mode"])])],512)):ce("",!0)]))}}),j_={class:"flex min-h-0 w-full max-w-none flex-col gap-3 overflow-hidden border-b p-3 border-pg-border lg:w-[var(--left-width)] lg:min-w-[240px] lg:max-w-[560px] lg:flex-none lg:border-b-0 lg:border-r"},H_=$e({__name:"PlaygroundSidebar",props:{search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{},error:{},loading:{type:Boolean},filtered:{},disabledFiltered:{},ignoredFiltered:{},configFiltered:{},disabledConfigFiltered:{},treeRows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["update:search","select-group","set-route-mode","set-enabled-mode","set-disabled-mode","update:treeMode","toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t;return(r,o)=>(O(),D("aside",j_,[K(W_,{search:n.search,"base-path":n.basePath,groups:n.groups,"active-group":n.activeGroup,"tree-mode":n.treeMode,"route-mode":n.routeMode,"enabled-mode":n.enabledMode,"disabled-mode":n.disabledMode,"active-total":n.activeTotal,"api-total":n.apiTotal,"disabled-total":n.disabledTotal,"ignored-total":n.ignoredTotal,"config-total":n.configTotal,"disabled-api-total":n.disabledApiTotal,"disabled-config-total":n.disabledConfigTotal,"onUpdate:search":o[0]||(o[0]=l=>s("update:search",l)),onSelectGroup:o[1]||(o[1]=l=>s("select-group",l)),onSetRouteMode:o[2]||(o[2]=l=>s("set-route-mode",l)),onSetEnabledMode:o[3]||(o[3]=l=>s("set-enabled-mode",l)),onSetDisabledMode:o[4]||(o[4]=l=>s("set-disabled-mode",l)),"onUpdate:treeMode":o[5]||(o[5]=l=>s("update:treeMode",l))},null,8,["search","base-path","groups","active-group","tree-mode","route-mode","enabled-mode","disabled-mode","active-total","api-total","disabled-total","ignored-total","config-total","disabled-api-total","disabled-config-total"]),K(P_,{"route-mode":n.routeMode,"enabled-mode":n.enabledMode,"disabled-mode":n.disabledMode,"selected-config":n.selectedConfig,"selected-disabled":n.selectedDisabled,"selected-ignored":n.selectedIgnored,error:n.error,loading:n.loading,filtered:n.filtered,"disabled-filtered":n.disabledFiltered,"ignored-filtered":n.ignoredFiltered,"config-filtered":n.configFiltered,"disabled-config-filtered":n.disabledConfigFiltered,"tree-rows":n.treeRows,"workspace-root":n.workspaceRoot,"get-route-count":n.getRouteCount,onToggle:o[6]||(o[6]=l=>s("toggle",l)),onSelectRoute:o[7]||(o[7]=l=>s("select-route",l)),onSelectDisabledRoute:o[8]||(o[8]=l=>s("select-disabled-route",l)),onSelectIgnoredRoute:o[9]||(o[9]=l=>s("select-ignored-route",l)),onSelectConfig:o[10]||(o[10]=l=>s("select-config",l))},null,8,["route-mode","enabled-mode","disabled-mode","selected-config","selected-disabled","selected-ignored","error","loading","filtered","disabled-filtered","ignored-filtered","config-filtered","disabled-config-filtered","tree-rows","workspace-root","get-route-count"])]))}});function G_(e){const t=H(()=>e.routeMode.value==="disabled"),n=H(()=>e.routeMode.value==="ignored"),s=H(()=>e.routes.value.length+e.configCount.value),r=H(()=>e.routes.value.length),o=H(()=>e.disabledCount.value+e.disabledConfigCount.value),l=H(()=>e.ignoredCount.value),i=H(()=>e.configCount.value),a=H(()=>e.disabledConfigCount.value),c=H(()=>e.disabledCount.value),u=H(()=>t.value?e.disabledMode.value==="config"?e.disabledConfigFiltered.value.length:e.disabledFiltered.value.length:n.value?e.ignoredFiltered.value.length:e.enabledMode.value==="config"?e.configFiltered.value.length:e.routeCount.value);return{activeTotal:s,apiTotal:r,disabledTotal:o,ignoredTotal:l,configTotal:i,disabledConfigTotal:a,disabledApiTotal:c,visibleCount:u}}function K_(e){function t(){const c=e.lastSelectedKey.value;return c?e.filtered.value.find(u=>e.getRouteKey(u)===c)??null:null}function n(c){if(e.routeMode.value=c,c!=="active"){e.selectRoute(null),e.selectConfig(null),c==="disabled"&&e.disabledMode.value==="api"&&(e.selectDisabledRoute(e.disabledFiltered.value[0]??null),e.selectIgnoredRoute(null)),c==="ignored"&&(e.selectIgnoredRoute(e.ignoredFiltered.value[0]??null),e.selectDisabledRoute(null));return}if(e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.enabledMode.value==="api"&&!e.selected.value){const u=t();u&&e.selectRoute(u)}e.enabledMode.value!=="config"&&e.selectConfig(null)}function s(c){if(e.enabledMode.value=c,c==="config"){e.selectRoute(null);return}if(e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),!e.selected.value){const u=t();u&&e.selectRoute(u)}}function r(c){if(e.disabledMode.value=c,c==="config"){e.selectDisabledRoute(null);return}e.selectConfig(null),e.selectedDisabled.value||e.selectDisabledRoute(e.disabledFiltered.value[0]??null)}function o(c){e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectRoute(c)}function l(c){e.selectRoute(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectConfig(c)}function i(c){e.selectRoute(null),e.selectConfig(null),e.selectIgnoredRoute(null),e.selectDisabledRoute(c)}function a(c){e.selectRoute(null),e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(c)}return{setRouteMode:n,setEnabledMode:s,setDisabledMode:r,handleSelectRoute:o,handleSelectConfig:l,handleSelectDisabled:i,handleSelectIgnored:a}}new Set(".\\+*[^]$()");const Mr=/^[\w-]+$/,B_=/^\[([^\]/]+)\]$/,z_=/^\[\.\.\.([^\]/]+)\]$/,q_=/^\[\[\.\.\.([^\]/]+)\]\]$/,Y_=/^\([^)]+\)$/;function J_(e){switch(e.type){case"static":return 4;case"param":return 3;case"catchall":return 2;case"optional-catchall":return 1;default:return 0}}function X_(e){return e.map(J_)}function nc(e){const n=(e.split("?")[0]??"").split("#")[0]??"";let s=n.startsWith("/")?n:`/${n}`;return s.length>1&&s.endsWith("/")&&(s=s.slice(0,-1)),s}function Q_(e){return nc(e).split("/").filter(Boolean)}function no(e){const t=[],n=[],s=nc(e),r=Q_(s),o=[],l=new Set;for(let i=0;i<r.length;i+=1){const a=r[i];if(!a)continue;if(Y_.test(a)){t.push(`Route groups are not supported: ${a}`);continue}const c=a.match(q_);if(c){const h=c[1];if(!h){t.push(`Invalid optional catch-all param name "${a}"`);continue}if(!Mr.test(h)){t.push(`Invalid optional catch-all param name "${h}"`);continue}if(i!==r.length-1){t.push(`Optional catch-all "${a}" must be the last segment`);continue}l.has(h)&&n.push(`Duplicate param name "${h}"`),l.add(h),o.push({type:"optional-catchall",name:h});continue}const u=a.match(z_);if(u){const h=u[1];if(!h){t.push(`Invalid catch-all param name "${a}"`);continue}if(!Mr.test(h)){t.push(`Invalid catch-all param name "${h}"`);continue}if(i!==r.length-1){t.push(`Catch-all "${a}" must be the last segment`);continue}l.has(h)&&n.push(`Duplicate param name "${h}"`),l.add(h),o.push({type:"catchall",name:h});continue}const f=a.match(B_);if(f){const h=f[1];if(!h){t.push(`Invalid param name "${a}"`);continue}if(!Mr.test(h)){t.push(`Invalid param name "${h}"`);continue}l.has(h)&&n.push(`Duplicate param name "${h}"`),l.add(h),o.push({type:"param",name:h});continue}if(a.includes("[")||a.includes("]")||a.includes("(")||a.includes(")")){t.push(`Invalid route segment "${a}"`);continue}o.push({type:"static",value:a})}return{template:s,tokens:o,score:X_(o),errors:t,warnings:n}}function Fs(e){const t=e.trim();if(!t)return{value:void 0};try{return{value:JSON.parse(t)}}catch(n){return{error:n instanceof Error?n.message:"Invalid JSON"}}}function Z_(e,t){for(const[n,s]of Object.entries(t))typeof s>"u"||(Array.isArray(s)?s.forEach(r=>e.searchParams.append(n,String(r))):e.searchParams.set(n,String(s)))}function so(e,t){return e==="catchall"?`[...${t}]`:e==="optional-catchall"?`[[...${t}]]`:`[${t}]`}function ev(e){const t=[],n=new Set;for(const s of e){if(s.type==="static"||n.has(s.name))continue;n.add(s.name);const r=s.type;t.push({id:`${r}:${s.name}`,name:s.name,kind:r,token:so(r,s.name),required:r!=="optional-catchall"})}return t}function sc(e){const t=e.trim().replace(/^\/+|\/+$/g,"");return t?t.split("/").filter(Boolean):[]}function tv(e,t){const n=[],s=new Set;for(const o of e){if(o.type==="static"){n.push(o.value);continue}const l=t[o.name]?.trim()??"";if(!l){o.type!=="optional-catchall"&&s.add(o.name);continue}if(o.type==="param"){n.push(encodeURIComponent(l));continue}const i=sc(l).map(encodeURIComponent);if(i.length===0){o.type!=="optional-catchall"&&s.add(o.name);continue}n.push(...i)}return{path:n.length>0?`/${n.join("/")}`:"/",missing:[...s]}}function nv(e,t){const n=[];for(const s of e){if(s.type==="static"){n.push(s.value);continue}const r=t[s.name]?.trim()??"";if(!r){s.type!=="optional-catchall"&&n.push(so(s.type,s.name));continue}if(s.type==="param"){n.push(encodeURIComponent(r));continue}const o=sc(r).map(encodeURIComponent);if(o.length===0){s.type!=="optional-catchall"&&n.push(so(s.type,s.name));continue}n.push(...o)}return n.length>0?`/${n.join("/")}`:"/"}function sv(e){const t=new URLSearchParams;for(const[s,r]of Object.entries(e))typeof r>"u"||(Array.isArray(r)?r.forEach(o=>t.append(s,String(o))):t.set(s,String(r)));const n=t.toString();return n?`?${n}`:""}function Yl(e){const t=e.trim();if(!t)return[];const n=t.split(/[&\n]/),s=[];for(const r of n){const o=r.trim();if(!o)continue;const[l,...i]=o.split("="),a=(l??"").trim();if(!a)continue;const c=i.join("=").trim();s.push([a,c])}return s}function rv(e){const t=e.trim();if(!t)return{value:void 0};const s=(t.startsWith("data:")?t.split("base64,").pop()??"":t).replace(/\s+/g,"");try{const r=atob(s),o=new Uint8Array(r.length);for(let l=0;l<r.length;l+=1)o[l]=r.charCodeAt(l);return{value:o}}catch(r){return{error:r instanceof Error?r.message:"Invalid base64"}}}function ov(e){return{resetResponse:()=>{e.responseText.value=e.t("response.empty"),e.responseStatus.value=e.t("response.idle"),e.responseTime.value=""},runRequest:async()=>{if(!e.selected.value)return;const s=e.routeTokens.value.length>0?e.routeTokens.value:no(e.selected.value.url).tokens,r=tv(s,e.paramValues.value);if(r.missing.length>0){e.onMissingParams?.(r.missing),e.responseText.value=e.t("errors.routeParams",{params:r.missing.join(", ")});return}const o=e.getRouteKey(e.selected.value),l=Fs(e.queryText.value);if(l.error){e.responseText.value=e.t("errors.queryJson",{message:l.error});return}const i=Fs(e.headersText.value);if(i.error){e.responseText.value=e.t("errors.headersJson",{message:i.error});return}const a=new URL(r.path,window.location.origin);l.value&&Z_(a,l.value);const c={};if(i.value)for(const[b,k]of Object.entries(i.value))typeof k>"u"||(c[b]=Array.isArray(k)?k.join(","):String(k));const u={method:e.selected.value.method,headers:c},f=e.selected.value.method.toUpperCase();if(f!=="GET"&&f!=="HEAD"){const b=e.bodyText.value;if(e.bodyType.value==="json"){const k=Fs(b);if(k.error){e.responseText.value=e.t("errors.bodyJson",{message:k.error});return}k.value&&(u.body=JSON.stringify(k.value),c["Content-Type"]||(c["Content-Type"]="application/json"))}else if(e.bodyType.value==="text")b.trim()&&(u.body=b,c["Content-Type"]||(c["Content-Type"]="text/plain; charset=utf-8"));else if(e.bodyType.value==="form"){const k=Yl(b);if(k.length>0){const E=new URLSearchParams;for(const[P,g]of k)E.append(P,g);u.body=E.toString(),c["Content-Type"]||(c["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8")}}else if(e.bodyType.value==="multipart"){const k=Yl(b);if(k.length>0){const E=new FormData;for(const[P,g]of k)E.append(P,g);u.body=E}}else if(e.bodyType.value==="base64"){const k=rv(b);if(k.error){e.responseText.value=e.t("errors.bodyBase64",{message:k.error});return}k.value&&(u.body=k.value,c["Content-Type"]||(c["Content-Type"]="application/octet-stream"))}}e.responseStatus.value=e.t("response.loading"),e.responseTime.value="",e.responseText.value=e.t("response.waiting"),await e.ensureSwReady();const h=performance.now();try{const b=await fetch(a.toString(),u);e.isServerCounts.value||(e.routeCounts.value[o]=(e.routeCounts.value[o]??0)+1);const k=Math.round(performance.now()-h);e.responseTime.value=`${k}ms`,e.responseStatus.value=`${b.status} ${b.statusText}`;const E=b.headers.get("content-type")??"",P=await b.text();if(E.includes("application/json"))try{e.responseText.value=JSON.stringify(JSON.parse(P),null,2)}catch{e.responseText.value=P}else e.responseText.value=P||e.t("response.emptyPayload")}catch(b){e.responseStatus.value=e.t("response.error"),e.responseText.value=b instanceof Error?b.message:String(b)}}}}function rc(e){try{return new URL(e).pathname.includes("mokup-sw")}catch{return e.includes("mokup-sw")}}function Jl(e){return[e.active?.scriptURL,e.waiting?.scriptURL,e.installing?.scriptURL].filter(n=>typeof n=="string").some(n=>rc(n))}function lv(e){return!!e&&rc(e.scriptURL)}async function iv(){if(typeof window>"u"||!("serviceWorker"in navigator))return null;try{const e=await navigator.serviceWorker.getRegistration();if(e&&Jl(e))return e}catch{}try{return(await navigator.serviceWorker.getRegistrations()).find(Jl)??null}catch{return null}}function av(){return!1}function cv(e){if(!av())return"";const t=e.trim();if(!t)return"";const n=t.startsWith("/")?t:`/${t}`,s=n.endsWith("/")?n.slice(0,-1):n,r=new URL(`${s}/ws`,window.location.origin);return r.protocol=r.protocol==="https:"?"wss:":"ws:",r.toString()}function uv(e){try{const t=JSON.parse(e);if(t.type==="snapshot"&&t.perRoute||t.type==="increment"&&typeof t.routeKey=="string")return t}catch{return null}return null}let Ls=null;function dv(e,t={}){const{t:n}=Je(),s=te(""),r=te(""),o=te(""),l=te("json"),i=te(n("response.empty")),a=te(n("response.idle")),c=te(""),u=te(!1),f=te(!1),h=H(()=>u.value&&!f.value),b=te({}),k=H(()=>Object.values(b.value).reduce(($,z)=>$+z,0)),E=te(!1),P=te(null),g=te(""),y=te([]),_=te([]),v=te({}),I=te([]),F=te(0),A=H(()=>{if(!e.value)return"";const $=y.value.length>0?y.value:no(e.value.url).tokens,z=nv($,v.value),se=Fs(s.value);return se.error||!se.value?z:`${z}${sv(se.value)}`});function G($){return`${$.method} ${$.url}`}function oe($){return b.value[G($)]??0}function ye($){if(typeof $.data!="string")return;const z=uv($.data);if(z){if(z.type==="snapshot"){b.value={...z.perRoute};return}b.value[z.routeKey]=(b.value[z.routeKey]??0)+1}}function he(){P.value&&(P.value.close(),P.value=null),g.value="",E.value=!1}function de($){if(typeof window>"u")return;const z=cv($);if(!(!z||g.value===z)){he(),g.value=z;try{const se=new WebSocket(z);P.value=se,se.addEventListener("open",()=>{E.value=!0}),se.addEventListener("message",ye),se.addEventListener("close",()=>{P.value===se&&he()}),se.addEventListener("error",()=>{P.value===se&&he()})}catch{he()}}}function De($,z){v.value={...v.value,[$]:z},z.trim()&&I.value.includes($)&&(I.value=I.value.filter(se=>se!==$))}function le($){if(I.value=[],F.value=0,!$){y.value=[],_.value=[],v.value={};return}const z=no($.url);y.value=z.tokens;const se=ev(z.tokens),xe={};for(const fe of se)xe[fe.name]=v.value[fe.name]??"";_.value=se,v.value=xe}async function ie(){if(f.value)return!0;if(typeof window>"u"||!("serviceWorker"in navigator))return!1;const $=navigator.serviceWorker.controller;if(lv($))return u.value=!0,f.value=!0,!0;if(!u.value){if(!await iv())return!1;u.value=!0}return Ls||(Ls=navigator.serviceWorker.ready.then(()=>{f.value=!0}).catch(()=>{Ls=null})),await Ls,f.value}typeof window<"u"&&"serviceWorker"in navigator&&ie().catch(()=>{}),t.basePath&&ft(t.basePath,$=>{$&&de($)},{immediate:!0}),ir()&&In(()=>{he()});const{resetResponse:J,runRequest:ee}=ov({t:n,selected:e,routeTokens:y,paramValues:v,queryText:s,headersText:r,bodyText:o,bodyType:l,responseText:i,responseStatus:a,responseTime:c,routeCounts:b,isServerCounts:E,ensureSwReady:ie,getRouteKey:G,onMissingParams:$=>{I.value=[...$],F.value+=1}});return ft(e,()=>{J(),le(e.value)}),{queryText:s,headersText:r,bodyText:o,bodyType:l,responseText:i,responseStatus:a,responseTime:c,resetResponse:J,runRequest:ee,isSwRegistering:h,routeParams:_,paramValues:v,missingParams:I,missingPulse:F,setParamValue:De,requestUrl:A,routeCounts:b,totalCount:k,getRouteCount:oe}}function Xl(e){const{selectedFile:t,routes:n,disabledRoutes:s,ignoredRoutes:r}=e;if(!t)return[];const o=i=>!!i?.includes(t),l=[];for(const i of n)if(o(i.configChain)){const a={kind:"active",file:i.file};i.method&&(a.method=i.method),i.url&&(a.url=i.url),l.push(a)}for(const i of s)if(o(i.configChain)){const a={kind:"disabled",file:i.file};i.method&&(a.method=i.method),i.url&&(a.url=i.url),l.push(a)}for(const i of r)o(i.configChain)&&l.push({kind:"ignored",file:i.file});return l}function fv(){const e=te([]),t=te([]),n=te([]),s=te([]),r=te([]),o=te([]),l=te([]),i=te([]),a=te(null),c=te(null),u=te(null),f=te(null),h=te([]),b=te("all"),k=te(!1),E=te(""),P=te(""),g=te(""),y=te(""),_=H(()=>P.value.trim().toLowerCase()),v=H(()=>o.value.length),I=H(()=>t.value.length),F=H(()=>n.value.length),A=H(()=>s.value.length),G=H(()=>r.value.length),oe=H(()=>{const q=new Map;for(const m of s.value)q.set(m.file,"enabled");for(const m of r.value)q.set(m.file,"disabled");return q}),ye=H(()=>`${g.value||""}/routes`),he=q=>`${q.method} ${q.url}`,de=q=>`${q.file}|${q.reason}|${q.method??""}|${q.url??""}`,De=q=>`${q.file}|${q.reason}`,le=te("");function ie(){return b.value==="all"?e.value:e.value.filter(q=>q.groupKey===b.value)}function J(){const q=_.value,m=ie();o.value=q?m.filter(x=>`${x.method} ${x.url} ${x.file}`.toLowerCase().includes(q)):[...m]}function ee(){return b.value==="all"?s.value:s.value.filter(q=>q.groupKey===b.value)}function $(){const q=_.value,m=ee();l.value=q?m.filter(x=>x.file.toLowerCase().includes(q)):[...m]}function z(){return b.value==="all"?r.value:r.value.filter(q=>q.groupKey===b.value)}function se(){const q=_.value,m=z();i.value=q?m.filter(x=>x.file.toLowerCase().includes(q)):[...m]}const xe=H(()=>{const q=_.value;return q?t.value.filter(m=>`${m.method??""} ${m.url??""} ${m.file} ${m.reason}`.toLowerCase().includes(q)):[...t.value]}),fe=H(()=>{const q=_.value;return q?n.value.filter(m=>`${m.file} ${m.reason}`.toLowerCase().includes(q)):[...n.value]});function _e(q){b.value=q,J(),$(),se(),!(a.value&&o.value.some(x=>he(x)===he(a.value)))&&(a.value=o.value[0]??null)}function Se(q){a.value=q}function Ue(q){c.value=q}function je(q){u.value=q}function ke(q){f.value=q}function st(q){g.value=Ap(q)}async function rt(){k.value=!0,E.value="";const q=le.value,m=c.value?de(c.value):"",x=u.value?De(u.value):"",M=b.value,j=f.value?.file??"";try{const U=await fetch(ye.value);if(!U.ok)throw new Error(`Failed to load routes: ${U.status}`);const V=await U.json();if(e.value=V.routes??[],t.value=V.disabled??[],n.value=V.ignored??[],s.value=V.configs??[],r.value=V.disabledConfigs??[],h.value=V.groups??[],y.value=V.root??"",M!=="all"&&(h.value.some(p=>p.key===M)||(b.value="all")),J(),$(),se(),q){const d=o.value.find(p=>he(p)===q);a.value=d??null}else a.value=o.value[0]??null;if(m){const d=t.value.find(p=>de(p)===m);c.value=d??t.value[0]??null}else c.value=t.value[0]??null;if(x){const d=n.value.find(p=>De(p)===x);u.value=d??n.value[0]??null}else u.value=n.value[0]??null;if(j){const d=s.value.find(p=>p.file===j)??r.value.find(p=>p.file===j)??null;f.value=d}}catch(U){E.value=U instanceof Error?U.message:String(U)}finally{k.value=!1}}ft(P,()=>{J(),$(),se()}),ft(a,q=>{q&&(le.value=he(q))});const Be=H(()=>{const q=f.value?.file,m={routes:e.value,disabledRoutes:t.value,ignoredRoutes:n.value};return Xl(q?{...m,selectedFile:q}:m)});return{routes:e,disabledRoutes:t,ignoredRoutes:n,configFiles:s,disabledConfigFiles:r,disabledFiltered:xe,ignoredFiltered:fe,configFiltered:l,disabledConfigFiltered:i,filtered:o,selected:a,selectedConfig:f,selectedDisabled:c,selectedIgnored:u,groups:h,activeGroup:b,loading:k,error:E,search:P,basePath:g,workspaceRoot:y,searchTerm:_,routeCount:v,disabledCount:I,ignoredCount:F,configCount:A,disabledConfigCount:G,configStatusMap:oe,routeKey:he,lastSelectedKey:le,loadRoutes:rt,setActiveGroup:_e,selectRoute:Se,selectDisabledRoute:Ue,selectIgnoredRoute:je,selectConfig:ke,setBasePath:st,configImpactRoutes:Be}}function pv(e,t){if(t==="file")return qs(e.file).split("/").filter(Boolean);const n=qs(e.url),s=n.startsWith("/")?n.slice(1):n;return s?s.split("/").filter(Boolean):[]}function oc(e,t){const n={id:`${t}:root`,label:"",kind:"folder",path:"",children:[]};for(const s of e){const r=pv(s,t);if(r.length===0){const i=`${t}:route:${s.method} ${s.url}|${s.file}`;n.children.push({id:i,label:"/",kind:"route",path:"/",route:s,children:[]});continue}let o=n;const l=r.length;for(let i=0;i<l;i+=1){const a=r[i];if(i===l-1){const h=`${t}:route:${s.method} ${s.url}|${s.file}`;o.children.push({id:h,label:a,kind:"route",path:r.join("/"),route:s,children:[]});continue}o.map||(o.map=new Map);const u=r.slice(0,i+1).join("/");let f=o.map.get(u);f||(f={id:`${t}:folder:${u}`,label:a,kind:"folder",path:u,children:[]},o.map.set(u,f),o.children.push(f)),o=f}}return n}function Lo(e){e.children.sort((t,n)=>{if(t.kind!==n.kind)return t.kind==="folder"?-1:1;const s=t.label.localeCompare(n.label);return s!==0?s:t.route&&n.route?t.route.method.localeCompare(n.route.method):0});for(const t of e.children)t.kind==="folder"&&Lo(t)}function lc(e,t){for(const n of e.children)n.kind==="folder"&&(t.push(n.id),lc(n,t))}function gv(e,t){const n=oc(e,t);Lo(n);const s=[];return lc(n,s),s}function ic(e,t,n,s,r,o,l){for(const i of e.children){const a=i.kind==="folder"?i.path:n==="file"?i.route?.file:i.route?.url,c=i.kind==="folder"?r(i.id):void 0;s.push({id:i.id,label:i.label,kind:i.kind,depth:t,title:a,expanded:c,selected:i.route?l(i.route)===o:!1,route:i.route}),i.kind==="folder"&&c&&ic(i,t+1,n,s,r,o,l)}}function mv(e){const t=[];return ic(e.root,0,e.mode,t,e.isExpanded,e.selectedKey,e.getRouteKey),t}function hv(e){const t=te("file"),n=te(new Set),s=te(new Set),r=te(!1),o=te(!1);function l(){return"mokup.playground.treeMode"}function i(_){return`mokup.playground.treeExpanded.${_}`}function a(_){try{const v=localStorage.getItem(i(_));if(!v)return{set:new Set,hasValue:!1};const I=JSON.parse(v);return Array.isArray(I)?{set:new Set(I.filter(F=>typeof F=="string")),hasValue:!0}:{set:new Set,hasValue:!1}}catch{return{set:new Set,hasValue:!1}}}function c(_,v){try{localStorage.setItem(i(_),JSON.stringify([...v]))}catch{}}function u(_){try{localStorage.setItem(l(),_)}catch{}}function f(){return t.value==="file"?n.value:s.value}function h(_,v){_==="file"?n.value=v:s.value=v}function b(_){return _==="file"?r.value:o.value}function k(_,v){_==="file"?r.value=v:o.value=v}function E(_){return e.searchTerm.value||!b(t.value)?!0:f().has(_)}function P(_){const v=t.value;if(!b(v)){const F=new Set(gv(e.routes.value,v));h(v,F),k(v,!0)}const I=new Set(f());I.has(_)?I.delete(_):I.add(_),h(v,I),k(v,!0),c(v,I)}function g(_){t.value=_,u(_)}const y=H(()=>{const _=t.value,v=oc(e.routes.value,_);return Lo(v),mv({root:v,mode:_,isExpanded:E,selectedKey:e.selectedKey.value,getRouteKey:e.getRouteKey})});return Pn(()=>{try{const _=localStorage.getItem(l());(_==="file"||_==="route")&&(t.value=_);const v=a("file");n.value=v.set,r.value=v.hasValue;const I=a("route");s.value=I.set,o.value=I.hasValue}catch{}}),{treeMode:t,treeRows:y,toggleExpanded:P,setTreeMode:g}}function bv(e){const t=te(e.defaultWidth),n=te(!1);let s=0,r=0;const o=H(()=>({"--left-width":`${t.value}px`}));function l(f){return Math.min(e.maxWidth,Math.max(e.minWidth,f))}function i(f){if(!n.value)return;const h=f.clientX-s;t.value=l(r+h)}function a(){n.value&&(n.value=!1,window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",a),localStorage.setItem(e.storageKey,String(t.value)))}function c(f){f.button===0&&(f.preventDefault(),n.value=!0,s=f.clientX,r=t.value,window.addEventListener("pointermove",i),window.addEventListener("pointerup",a))}function u(){const f=Number(localStorage.getItem(e.storageKey));Number.isFinite(f)&&f>0&&(t.value=l(f))}return{splitWidth:t,splitStyle:o,isDragging:n,handleDragStart:c,restoreSplitWidth:u,stopDrag:a}}const _v={class:"h-screen overflow-hidden pg-app-bg","data-testid":"playground-app"},vv={class:"flex h-full w-full flex-col"},yv={class:"flex min-h-0 flex-1 flex-col overflow-hidden"},xv={class:"flex flex-1 flex-col overflow-hidden bg-pg-surface-shell"},wv={class:"relative hidden w-4 flex-none items-center justify-center lg:flex"},kv={class:"flex min-h-0 flex-1 flex-col overflow-hidden p-4 lg:p-6"},Tv={class:"mt-3 flex-1 min-h-0 overflow-auto"},Cv=$e({__name:"App",setup(e){const{routes:t,filtered:n,disabledFiltered:s,ignoredFiltered:r,configFiltered:o,disabledConfigFiltered:l,selected:i,selectedDisabled:a,selectedIgnored:c,selectedConfig:u,groups:f,activeGroup:h,loading:b,error:k,search:E,basePath:P,workspaceRoot:g,searchTerm:y,routeCount:_,disabledCount:v,ignoredCount:I,configCount:F,disabledConfigCount:A,configStatusMap:G,routeKey:oe,lastSelectedKey:ye,loadRoutes:he,setActiveGroup:de,selectRoute:De,selectDisabledRoute:le,selectIgnoredRoute:ie,selectConfig:J,setBasePath:ee,configImpactRoutes:$}=fv(),{queryText:z,headersText:se,bodyText:xe,bodyType:fe,responseText:_e,responseStatus:Se,responseTime:Ue,runRequest:je,isSwRegistering:ke,routeParams:st,paramValues:rt,missingParams:Be,missingPulse:q,setParamValue:m,requestUrl:x,totalCount:M,getRouteCount:j}=dv(i,{basePath:P}),U=H(()=>i.value?oe(i.value):""),V=te("active"),d=te("api"),p=te("api"),{activeTotal:T,apiTotal:R,disabledTotal:B,ignoredTotal:W,configTotal:C,disabledConfigTotal:L,disabledApiTotal:X,visibleCount:re}=G_({routes:t,configCount:F,disabledCount:v,ignoredCount:I,disabledConfigCount:A,routeCount:_,disabledFiltered:s,ignoredFiltered:r,configFiltered:o,disabledConfigFiltered:l,routeMode:V,enabledMode:d,disabledMode:p}),{setRouteMode:pe,setEnabledMode:He,setDisabledMode:Ve,handleSelectRoute:ct,handleSelectConfig:mt,handleSelectDisabled:rn,handleSelectIgnored:hs}=K_({routeMode:V,enabledMode:d,disabledMode:p,selected:i,selectedDisabled:a,selectedIgnored:c,selectedConfig:u,filtered:n,disabledFiltered:s,ignoredFiltered:r,lastSelectedKey:ye,getRouteKey:oe,selectRoute:De,selectDisabledRoute:le,selectIgnoredRoute:ie,selectConfig:J}),{splitStyle:ot,isDragging:yt,handleDragStart:On,restoreSplitWidth:bs,stopDrag:ac}=bv({storageKey:"mokup:playground:split-width",defaultWidth:320,minWidth:240,maxWidth:560}),{treeMode:cc,treeRows:uc,toggleExpanded:dc,setTreeMode:fc}=hv({routes:n,selectedKey:U,searchTerm:y,getRouteKey:oe});function pr(){he().catch(()=>{})}return Pn(()=>{ee(window.location.pathname),bs(),window.__MOKUP_PLAYGROUND__={reloadRoutes:pr},pr()}),In(()=>{ac()}),(Sv,Ze)=>(O(),D("div",_v,[w("div",vv,[w("main",yv,[w("div",xv,[w("div",{class:Ae(["flex min-h-0 flex-1 flex-col lg:flex-row",S(yt)?"select-none":""]),style:cs(S(ot))},[K(H_,{search:S(E),"onUpdate:search":Ze[0]||(Ze[0]=wt=>Fe(E)?E.value=wt:null),"base-path":S(P),groups:S(f),"active-group":S(h),"tree-mode":S(cc),"route-mode":V.value,"enabled-mode":d.value,"disabled-mode":p.value,"selected-config":S(u),"selected-disabled":S(a),"selected-ignored":S(c),"active-total":S(T),"api-total":S(R),"disabled-total":S(B),"ignored-total":S(W),"config-total":S(C),"disabled-api-total":S(X),"disabled-config-total":S(L),error:S(k),loading:S(b),filtered:S(n),"disabled-filtered":S(s),"ignored-filtered":S(r),"config-filtered":S(o),"disabled-config-filtered":S(l),"tree-rows":S(uc),"workspace-root":S(g),"get-route-count":S(j),onSelectGroup:S(de),onSetRouteMode:S(pe),onSetEnabledMode:S(He),onSetDisabledMode:S(Ve),onToggle:S(dc),onSelectRoute:S(ct),onSelectDisabledRoute:S(rn),onSelectIgnoredRoute:S(hs),onSelectConfig:S(mt),"onUpdate:treeMode":S(fc)},null,8,["search","base-path","groups","active-group","tree-mode","route-mode","enabled-mode","disabled-mode","selected-config","selected-disabled","selected-ignored","active-total","api-total","disabled-total","ignored-total","config-total","disabled-api-total","disabled-config-total","error","loading","filtered","disabled-filtered","ignored-filtered","config-filtered","disabled-config-filtered","tree-rows","workspace-root","get-route-count","onSelectGroup","onSetRouteMode","onSetEnabledMode","onSetDisabledMode","onToggle","onSelectRoute","onSelectDisabledRoute","onSelectIgnoredRoute","onSelectConfig","onUpdate:treeMode"]),w("div",wv,[Ze[7]||(Ze[7]=w("div",{class:"h-full w-px bg-pg-divider"},null,-1)),w("button",{class:"group absolute flex h-10 w-10 cursor-col-resize items-center justify-center rounded-full border shadow-sm transition hover:-translate-y-0.5 border-pg-border bg-pg-surface-strong text-pg-text-muted hover:text-pg-text-soft",type:"button","aria-label":"Resize panels",onPointerdown:Ze[1]||(Ze[1]=(...wt)=>S(On)&&S(On)(...wt))},[...Ze[6]||(Ze[6]=[w("span",{class:"i-[carbon--drag-horizontal] h-5 w-5","aria-hidden":"true"},null,-1)])],32)]),w("section",kv,[K(Nb,{"visible-count":S(re),"total-count":S(M),onRefresh:pr},null,8,["visible-count","total-count"]),w("div",Tv,[K(wb,{queryText:S(z),"onUpdate:queryText":Ze[2]||(Ze[2]=wt=>Fe(z)?z.value=wt:null),headersText:S(se),"onUpdate:headersText":Ze[3]||(Ze[3]=wt=>Fe(se)?se.value=wt:null),bodyText:S(xe),"onUpdate:bodyText":Ze[4]||(Ze[4]=wt=>Fe(xe)?xe.value=wt:null),bodyType:S(fe),"onUpdate:bodyType":Ze[5]||(Ze[5]=wt=>Fe(fe)?fe.value=wt:null),selected:S(i),"selected-disabled":S(a),"selected-ignored":S(c),"selected-config":S(u),"request-url":S(x),"workspace-root":S(g),"response-text":S(_e),"response-status":S(Se),"response-time":S(Ue),"is-sw-registering":S(ke),"route-params":S(st),"param-values":S(rt),"missing-params":S(Be),"missing-pulse":S(q),"route-mode":V.value,"enabled-mode":d.value,"disabled-mode":p.value,"config-impact-routes":S($),"config-status-map":S(G),"onUpdate:paramValue":S(m),onRun:S(je)},null,8,["queryText","headersText","bodyText","bodyType","selected","selected-disabled","selected-ignored","selected-config","request-url","workspace-root","response-text","response-status","response-time","is-sw-registering","route-params","param-values","missing-params","missing-pulse","route-mode","enabled-mode","disabled-mode","config-impact-routes","config-status-map","onUpdate:paramValue","onRun"])])])],6)])])])]))}});Cb();Md(Cv).use(Lb).mount("#app");