PR CI / ledger (pull_request) Successful in 3s
PR CI / flow (pull_request) Successful in 5s
PR CI / test (lowest) (pull_request) Successful in 46s
PR CI / test (stable) (pull_request) Successful in 52s
PR CI / security (pull_request) Successful in 55s
PR CI / ui (pull_request) Successful in 55s
PR CI / pr-ci (pull_request) Successful in 1s
PR CI / release-automerge (pull_request) Successful in 3s
3 lines
101 KiB
JavaScript
3 lines
101 KiB
JavaScript
function bn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const J={},$t=[],Je=()=>{},Cr=()=>!1,Is=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ns=e=>e.startsWith("onUpdate:"),ce=Object.assign,yn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Ui=Object.prototype.hasOwnProperty,K=(e,t)=>Ui.call(e,t),R=Array.isArray,ht=e=>Nt(e)==="[object Map]",Mt=e=>Nt(e)==="[object Set]",Hn=e=>Nt(e)==="[object Date]",F=e=>typeof e=="function",ne=e=>typeof e=="string",De=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",Tr=e=>(G(e)||F(e))&&F(e.then)&&F(e.catch),Er=Object.prototype.toString,Nt=e=>Er.call(e),Hi=e=>Nt(e).slice(8,-1),Or=e=>Nt(e)==="[object Object]",vn=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bt=bn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ki=1e4,js=e=>{let t=Object.create(null),s=0;return(n=>{const r=t[n];return r!==void 0?r:(++s>Ki&&(t=Object.create(null),s=1),t[n]=e(n))})},Bi=/-\w/g,we=js(e=>e.replace(Bi,t=>t.slice(1).toUpperCase())),Wi=/\B([A-Z])/g,Tt=js(e=>e.replace(Wi,"-$1").toLowerCase()),Ds=js(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gs=js(e=>e?`on${Ds(e)}`:""),Ge=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Ar=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},xn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Kn;const Fs=()=>Kn||(Kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function os(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=ne(n)?Ji(n):os(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(ne(e)||G(e))return e}const qi=/;(?![^(]*\))/g,Gi=/:([^]+)/,zi=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Ji(e){const t={};return e.replace(zi,s=>s.startsWith("/*")?"":s).split(qi).forEach(s=>{if(s){const n=s.split(Gi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function at(e){let t="";if(ne(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const n=at(e[s]);n&&(t+=n+" ")}else if(G(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function Yi(e){if(!e)return null;let{class:t,style:s}=e;return t&&!ne(t)&&(e.class=at(t)),s&&(e.style=os(s)),e}const Xi="itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",Zi=bn(Xi);function Pr(e){return!!e||e===""}function Qi(e,t,s){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=mt(e[r],t[r],s);return n}function Bn(e,t,s){if(e.size!==t.size)return!1;const n=Array.from(t),r=new Uint8Array(n.length);for(const i of e){let o=-1;for(let l=0;l<n.length;l++)if(!r[l]&&mt(i,n[l],s)){o=l;break}if(o<0)return!1;r[o]=1}return!0}function eo(e,t,s){let n=ht(e),r=ht(t);if(n||r||(n=Mt(e),r=Mt(t),n||r))return n&&r?Bn(e,t,s):!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const l in e){const a=K(e,l),p=K(t,l);if(a&&!p||!a&&p||!mt(e[l],t[l],s))return!1}return qn(e)===qn(t)}function Wn(e,t,s,n){s||(s=[new Map,new Map]);const[r,i]=s;if(r.has(e)||i.has(t))return r.get(e)===t&&i.get(t)===e;r.set(e,t),i.set(t,e);const o=n(e,t,s);return r.delete(e),i.delete(t),o}function mt(e,t,s){if(e===t)return!0;let n=Hn(e),r=Hn(t);return n||r?n&&r?e.getTime()===t.getTime():!1:(n=De(e),r=De(t),n||r?e===t:(n=R(e),r=R(t),n||r?n&&r?Wn(e,t,s,Qi):!1:(n=G(e),r=G(t),n||r?!n||!r?!1:Wn(e,t,s,eo):String(e)===String(t))))}function Mr(e,t){return e.findIndex(s=>mt(s,t))}function qn(e){return Object.getPrototypeOf(e)===null&&e[Symbol.toPrimitive]==null&&typeof e.toString!="function"&&typeof e.valueOf!="function"?Nt(e):String(e)}const kr=e=>!!(e&&e.__v_isRef===!0),_=e=>ne(e)?e:e==null?"":R(e)||G(e)&&(e.toString===Er||!F(e.toString))?kr(e)?_(e.value):JSON.stringify(e,Rr,2):String(e),Rr=(e,t)=>kr(t)?Rr(e,t.value):ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[zs(n,i)+" =>"]=r,s),{})}:Mt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>zs(s))}:De(t)?zs(t):G(t)&&!R(t)&&!Or(t)?String(t):t,zs=(e,t="")=>{var s;return De(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let le;class Ir{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&le&&(le.active?(this.parent=le,this.index=(le.scopes||(le.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const r=this.scopes.slice();for(t=0,s=r.length;t<s;t++)r[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=le;try{return le=this,t()}finally{le=s}}}on(){++this._on===1&&(this.prevScope=le,le=this)}off(){if(this._on>0&&--this._on===0){if(le===this)le=this.prevScope;else{let t=le;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(s=0,n=r.length;s<n;s++)r[s].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 Nr(){return le}function to(e,t=!1){le&&(le.active?le.cleanups.push(e):e())}let X;const Js=new WeakSet;class jr{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,le&&(le.active?le.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Js.has(this)&&(Js.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Gn(this),Vr(this);const t=X,s=je;X=this,je=!0;try{return this.fn()}finally{Lr(this),X=t,je=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Sn(t);this.deps=this.depsTail=void 0,Gn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Js.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ln(this)&&this.run()}get dirty(){return ln(this)}}let Dr=0,Wt,qt;function Fr(e,t=!1){if(e.flags|=8,t){e.next=qt,qt=e;return}e.next=Wt,Wt=e}function wn(){Dr++}function $n(){if(--Dr>0)return;if(qt){let t=qt;for(qt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Wt;){let t=Wt;for(Wt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Vr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Lr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Sn(n),so(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function ln(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ur(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ur(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xt)||(e.globalVersion=Xt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ln(e))))return;e.flags|=2;const t=e.dep,s=X,n=je;X=e,je=!0;try{Vr(e);const r=e.fn(e._value);(t.version===0||Ge(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{X=s,je=n,Lr(e),e.flags&=-3}}function Sn(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Sn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function so(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let je=!0;const Hr=[];function Xe(){Hr.push(je),je=!1}function Ze(){const e=Hr.pop();je=e===void 0?!0:e}function Gn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=X;X=void 0;try{t()}finally{X=s}}}let Xt=0;class no{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Cn{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(!X||!je||X===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==X)s=this.activeLink=new no(X,this),X.deps?(s.prevDep=X.depsTail,X.depsTail.nextDep=s,X.depsTail=s):X.deps=X.depsTail=s,Kr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=X.depsTail,s.nextDep=void 0,X.depsTail.nextDep=s,X.depsTail=s,X.deps===s&&(X.deps=n)}return s}trigger(t){this.version++,Xt++,this.notify(t)}notify(t){wn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{$n()}}}function Kr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Kr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const an=new WeakMap,St=Symbol(""),cn=Symbol(""),kt=Symbol("");function he(e,t,s){if(je&&X){let n=an.get(e);n||an.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new Cn),r.map=n,r.key=s),r.track()}}function it(e,t,s,n,r,i){const o=an.get(e);if(!o){Xt++;return}const l=a=>{a&&a.trigger()};if(wn(),t==="clear")o.forEach(l);else{const a=R(e),p=a&&vn(s);if(a&&s==="length"){const f=Number(n);o.forEach((m,T)=>{(T==="length"||T===kt||!De(T)&&T>=f)&&l(m)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),p&&l(o.get(kt)),t){case"add":a?p&&l(o.get("length")):(l(o.get(St)),ht(e)&&l(o.get(cn)));break;case"delete":a||(l(o.get(St)),ht(e)&&l(o.get(cn)));break;case"set":ht(e)&&l(o.get(St));break}}$n()}function Et(e){const t=B(e);return t===e||(he(t,"iterate",kt),Te(e))?t:Fe(e)?ot(e)?t.map(s=>gt(Oe(s))):t.map(gt):t.map(Oe)}function Vs(e){return he(e=B(e),"iterate",kt),e}const ro=e=>gt(Oe(e));function nt(e){return Fe(e)?ot(e)?ro:gt:Oe}const io={__proto__:null,[Symbol.iterator](){return Ys(this,Symbol.iterator,nt(this))},concat(...e){return Et(this).concat(...e.map(t=>R(t)?Et(t):t))},entries(){const e=nt(this);return Ys(this,"entries",t=>(t[1]=e(t[1]),t))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,s=>s.map(nt(this)),arguments)},find(e,t){return tt(this,"find",e,t,s=>nt(this)(s),arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,s=>nt(this)(s),arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xs(this,"includes",e)},indexOf(...e){return Xs(this,"indexOf",e)},join(e){return Et(this).join(e)},lastIndexOf(...e){return Xs(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return Lt(this,"pop")},push(...e){return Lt(this,"push",e)},reduce(e,...t){return Jn(this,"reduce",e,t)},reduceRight(e,...t){return Jn(this,"reduceRight",e,t)},shift(){return Lt(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return Lt(this,"splice",e)},toReversed(){return Et(this).toReversed()},toSorted(e){return Et(this).toSorted(e)},toSpliced(...e){return Et(this).toSpliced(...e)},unshift(...e){return Lt(this,"unshift",e)},values(){return Ys(this,"values",nt(this))}};function Ys(e,t,s){const n=Vs(e),r=n[t],i=r.call(n);if(n!==e&&!Te(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const o=Object.create(Object.getPrototypeOf(i));return o.next=()=>zn(i.next(),s),r!==Br[t]&&Object.defineProperties(o,{return:{get(){const l=i.return;return typeof l=="function"?l.bind(i):l}},throw:{get(){const l=i.throw;return typeof l=="function"?l.bind(i):l}}}),o}i._next=i.next,i.next=()=>zn(i._next(),s)}return i}function zn(e,t){return e.done||(e.value=t(e.value)),e}const Br=Array.prototype;function tt(e,t,s,n,r,i){const o=Vs(e),l=o!==e&&!Te(e),a=o[t];if(a!==Br[t]){const m=a.apply(e,i);return l?Oe(m):m}let p=s;if(o!==e)if(l){const m=nt(e);p=function(T,j){return s.call(this,m(T),j,e)}}else s.length>2&&(p=function(m,T){return s.call(this,m,T,e)});const f=a.call(o,p,n);return l&&r?r(f):f}function Jn(e,t,s,n){const r=Vs(e),i=r!==e&&!Te(e);let o=s,l=!1;if(r!==e)if(i){const p=nt(e);l=n.length===0,o=function(f,m,T){return l&&(l=!1,f=p(f)),s.call(this,f,p(m),T,e)}}else s.length>3&&(o=function(p,f,m){return s.call(this,p,f,m,e)});const a=r[t](o,...n);return l?nt(e)(a):a}function Xs(e,t,s){const n=B(e);he(n,"iterate",kt);const r=n[t](...s);return(r===-1||r===!1)&&On(s[0])?(s[0]=B(s[0]),n[t](...s)):r}function Lt(e,t,s=[]){Xe(),wn();const n=B(e)[t].apply(e,s);return $n(),Ze(),n}const oo=bn("__proto__,__v_isRef,__isVue"),Wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(De));function lo(e){De(e)||(e=String(e));const t=B(this);return he(t,"has",e),t.hasOwnProperty(e)}class qr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?bo:Yr:i?Jr:zr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=R(t);if(!r){let a;if(o&&(a=io[s]))return a;if(s==="hasOwnProperty")return lo}const l=Reflect.get(t,s,ue(t)?t:n);if((De(s)?Wr.has(s):oo(s))||(r||he(t,"get",s),i))return l;if(ue(l)){const a=o&&vn(s)?l:l.value;return r&&G(a)?fn(a):a}return G(l)?r?fn(l):ls(l):l}}class Gr extends qr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=R(t)&&vn(s);if(!this._isShallow){const p=Fe(i);if(!Te(n)&&!Fe(n)&&(i=B(i),n=B(n)),!o&&ue(i)&&!ue(n))return p||(i.value=n),!0}const l=o?Number(s)<t.length:K(t,s),a=Reflect.set(t,s,n,ue(t)?t:r);return t===B(r)&&a&&(l?Ge(n,i)&&it(t,"set",s,n):it(t,"add",s,n)),a}deleteProperty(t,s){const n=K(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&it(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!De(s)||!Wr.has(s))&&he(t,"has",s),n}ownKeys(t){return he(t,"iterate",R(t)?"length":St),Reflect.ownKeys(t)}}class ao extends qr{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const co=new Gr,uo=new ao,fo=new Gr(!0);const un=e=>e,ms=e=>Reflect.getPrototypeOf(e);function po(e,t,s){return function(...n){const r=this.__v_raw,i=B(r),o=ht(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,p=r[e](...n),f=s?un:t?gt:Oe;return!t&&he(i,"iterate",a?cn:St),ce(Object.create(p),{next(){const{value:m,done:T}=p.next();return T?{value:m,done:T}:{value:l?[f(m[0]),f(m[1])]:f(m),done:T}}})}}function gs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ho(e,t){const s={get(r){const i=this.__v_raw,o=B(i),l=B(r);e||(Ge(r,l)&&he(o,"get",r),he(o,"get",l));const{has:a}=ms(o),p=t?un:e?gt:Oe;if(a.call(o,r))return p(i.get(r));if(a.call(o,l))return p(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&he(B(r),"iterate",St),r.size},has(r){const i=this.__v_raw,o=B(i),l=B(r);return e||(Ge(r,l)&&he(o,"has",r),he(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,a=B(l),p=t?un:e?gt:Oe;return!e&&he(a,"iterate",St),l.forEach((f,m)=>r.call(i,p(f),p(m),o))}};return ce(s,e?{add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear")}:{add(r){const i=B(this),o=ms(i),l=B(r),a=!t&&!Te(r)&&!Fe(r)?l:r;return o.has.call(i,a)||Ge(r,a)&&o.has.call(i,r)||Ge(l,a)&&o.has.call(i,l)||(i.add(a),it(i,"add",a,a)),this},set(r,i){!t&&!Te(i)&&!Fe(i)&&(i=B(i));const o=B(this),{has:l,get:a}=ms(o);let p=l.call(o,r);p||(r=B(r),p=l.call(o,r));const f=a.call(o,r);return o.set(r,i),p?Ge(i,f)&&it(o,"set",r,i):it(o,"add",r,i),this},delete(r){const i=B(this),{has:o,get:l}=ms(i);let a=o.call(i,r);a||(r=B(r),a=o.call(i,r)),l&&l.call(i,r);const p=i.delete(r);return a&&it(i,"delete",r,void 0),p},clear(){const r=B(this),i=r.size!==0,o=r.clear();return i&&it(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=po(r,e,t)}),s}function Tn(e,t){const s=ho(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_isShallow"?t:r==="__v_raw"?n:Reflect.get(K(s,r)&&r in n?s:n,r,i)}const mo={get:Tn(!1,!1)},go={get:Tn(!1,!0)},_o={get:Tn(!0,!1)};const zr=new WeakMap,Jr=new WeakMap,Yr=new WeakMap,bo=new WeakMap;function yo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ls(e){return Fe(e)?e:En(e,!1,co,mo,zr)}function vo(e){return En(e,!1,fo,go,Jr)}function fn(e){return En(e,!0,uo,_o,Yr)}function En(e,t,s,n,r){if(!G(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=yo(Hi(e));if(o===0)return e;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function ot(e){return Fe(e)?ot(e.__v_raw):!!(e&&e.__v_isReactive)}function Fe(e){return!!(e&&e.__v_isReadonly)}function Te(e){return!!(e&&e.__v_isShallow)}function On(e){return e?!!e.__v_raw:!1}function B(e){const t=e&&e.__v_raw;return t?B(t):e}function xo(e){return!K(e,"__v_skip")&&Object.isExtensible(e)&&Ar(e,"__v_skip",!0),e}const Oe=e=>G(e)?ls(e):e,gt=e=>G(e)?fn(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function Zt(e){return wo(e,!1)}function wo(e,t){return ue(e)?e:new $o(e,t)}class $o{constructor(t,s){this.dep=new Cn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:B(t),this._value=s?t:Oe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Te(t)||Fe(t);t=n?t:B(t),Ge(t,s)&&(this._rawValue=t,this._value=n?t:Oe(t),this.dep.trigger())}}function u(e){return ue(e)?e.value:e}const So={get:(e,t,s)=>t==="__v_raw"?e:u(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return ue(r)&&!ue(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function Xr(e){return ot(e)?e:new Proxy(e,So)}class Co{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Cn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&X!==this)return Fr(this,!0),!0}get value(){const t=this.dep.track();return Ur(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function To(e,t,s=!1){let n,r;return F(e)?n=e:(n=e.get,r=e.set),new Co(n,r,s)}const _s={},Cs=new WeakMap;let wt;function Eo(e,t=!1,s=wt){if(s){let n=Cs.get(s);n||Cs.set(s,n=[]),n.push(e)}}function Oo(e,t,s=J){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:a,onStop:p}=s,f=U=>r?U:Te(U)||r===!1||r===0?Be(U,1):Be(U);let m,T,j,k,D=!1,se=!1;if(ue(e)?(T=()=>e.value,D=Te(e)):ot(e)?(T=()=>f(e),D=!0):R(e)?(se=!0,D=e.some(U=>ot(U)||Te(U)),T=()=>e.map(U=>{if(ue(U))return U.value;if(ot(U))return f(U);if(F(U))return a?a(U,2):U()})):F(e)?t?T=a?()=>a(e,2):e:T=()=>{if(j){Xe();try{j()}finally{Ze()}}const U=wt;wt=m;try{return a?a(e,3,[k]):e(k)}finally{wt=U}}:T=Je,t&&r){const U=T,de=r===!0?1/0:r;T=()=>Be(U(),se?de+1:de)}const ie=Nr(),W=()=>{m.stop(),ie&&ie.active&&yn(ie.effects,m)};let Q=!1;if(i&&t){const U=t;t=(...de)=>{Q=!0;try{return U(...de)}finally{W()}}}let ee=se?new Array(e.length).fill(_s):_s;const $e=U=>{if(!(Q||!(m.flags&1)||!m.dirty&&!U))if(t){const de=m.run();if(U||r||D||(se?de.some((Pe,Qe)=>Ge(Pe,ee[Qe])):Ge(de,ee))){const Pe=wt;Xe();try{j&&j(),wt=m;const Qe=[de,ee===_s?void 0:se&&ee[0]===_s?[]:ee,k];ee=de,a?a(t,3,Qe):t(...Qe)}finally{wt=Pe,Ze()}}}else m.run()};return l&&l($e),m=new jr(T),m.scheduler=o?()=>o($e,!1):$e,k=U=>Eo(U,!1,m),j=m.onStop=()=>{const U=Cs.get(m);if(U){if(a)a(U,4);else for(const de of U)de();Cs.delete(m)}},p&&(m.onStop=()=>{j(),p()}),t?n?$e(!0):ee=m.run():o?o($e.bind(null,!0),!0):m.run(),W.pause=m.pause.bind(m),W.resume=m.resume.bind(m),W.stop=W,W}function Be(e,t=1/0,s){if(t<=0||!G(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ue(e))Be(e.value,t,s);else if(R(e))if(ot(e)&&!Fe(e)&&!Te(e)){const n=B(e);he(n,"iterate",kt);for(let r=0;r<n.length;r++){const i=n[r];Be(ue(i)?i:Oe(i),t,s)}}else for(let n=0;n<e.length;n++)Be(e[n],t,s);else if(Mt(e)||ht(e))e.forEach(n=>{Be(n,t,s)});else if(Or(e)){for(const r in e)Be(e[r],t,s);const n=B(e);for(const r of Object.getOwnPropertySymbols(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Be(e[r],t,s)}return e}function as(e,t,s,n){try{return n?e(...n):e()}catch(r){Ls(r,t,s)}}function Ve(e,t,s,n){if(F(e)){const r=as(e,t,s,n);return r&&Tr(r)&&r.catch(i=>{Ls(i,t,s,void 0,!0)}),r}if(R(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ve(e[i],t,s,n));return r}}function Ls(e,t,s,n=!0,r=!1){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||J;if(t){let a=t.parent;const p=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const m=a.ec;if(m&&!a.isUnmounted&&(!r||a.scope.active)){for(let T=0;T<m.length;T++)if(m[T](e,p,f)===!1)return}a=a.parent}if(o){Xe(),as(o,null,10,[e,p,f]),Ze();return}}Ao(e,s,i,n,l)}function Ao(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const xe=[];let Ne=-1;const We=[];let dt=null,Ot=0;const Zr=Promise.resolve();let Ts=null;function Po(e){const t=Ts||Zr;return e?t.then(this?e.bind(this):e):t}function Mo(e){let t=Ne+1,s=xe.length;for(;t<s;){const n=t+s>>>1,r=xe[n],i=Qt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function An(e){if(!(e.flags&1)){const t=Qt(e),s=xe[xe.length-1];!s||!(e.flags&2)&&t>=Qt(s)?xe.push(e):xe.splice(Mo(t),0,e),e.flags|=1,Qr()}}function Qr(){Ts||(Ts=Zr.then(si))}function ko(e){if(!R(e))dt&&e.id===-1?dt.splice(Ot+1,0,e):e.flags&1||(We.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)We.push(e[t]);Qr()}function ei(e,t,s,n=Ne+1){for(;n<xe.length;n++){const r=xe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid||t!==void 0&&!(r.id>=t))continue;xe.splice(n,1),n=e?n-1:Ne,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ti(e,t,s=0){if(We.length){let n=We,r=0;if(t){n=[];for(let o=0;o<We.length;o++){const l=We[o];(l.i!==void 0?!l.i||l.i.uid<s:t.has(l))?We[r++]=l:n.push(l)}}const i=[...new Set(n)].sort((o,l)=>Qt(o)-Qt(l));if(We.length=r,dt){for(let o=0;o<i.length;o++)dt.push(i[o]);return}for(dt=i,Ot=0;Ot<dt.length;Ot++){const o=dt[Ot];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}dt=null,Ot=0}}let Zs=!1;function Ro(e,t){if(Zs){e();return}const s=t===void 0?void 0:new Set(We);e(),Zs=!0;try{ei(void 0,t),ti(void 0,s,t)}finally{Zs=!1}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function si(e){try{for(Ne=0;Ne<xe.length;Ne++){const t=xe[Ne];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),as(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ne<xe.length;Ne++){const t=xe[Ne];t&&(t.flags&=-2)}Ne=-1,xe.length=0,ti(),Ts=null,(xe.length||We.length)&&si()}}let me=null,ni=null;function Es(e){const t=me;return me=e,ni=e&&e.type.__scopeId||null,t}function Le(e,t=me,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&ar(-1);const i=Es(t),o=lt.length;let l;try{l=e(...r)}finally{for(let a=lt.length;a>o;a--)Rn();Es(i),n._d&&ar(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Z(e,t){if(me===null)return e;const s=Ws(me),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,a=J]=t[r];i&&(F(i)&&(i={mounted:i,updated:i}),i.deep&&Be(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function vt(e,t,s,n){let r=e;if(n==="beforeMount")e._mount=e;else if(n==="beforeUpdate"){const l=t&&t._mount;l&&(l._latest=e,e._mount=l)}else if(n==="mounted"){const l=e._latest;e._mount=e._latest=void 0,l&&(r=l,l._mount=void 0)}const i=r.dirs,o=t&&t.dirs;for(let l=0;l<i.length;l++){let a=i[l];o?a.oldValue=o[l].value:n==="mounted"&&a.oldValue!==void 0&&(a=ce({},a,{oldValue:void 0}));let p=a.dir[n];p&&(Xe(),Ve(p,s,8,[e.el,a,r,t]),Ze())}}function Io(e,t){if(_e){let s=_e.provides;const n=_e.parent&&_e.parent.provides;n===s&&(s=_e.provides=Object.create(n)),s[e]=t}}function ws(e,t,s=!1){const n=Rl();if(n||Pt){let r=Pt?Pt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&F(t)?t.call(n&&n.proxy):t}}const No=Symbol.for("v-scx"),jo=()=>ws(No);function $s(e,t,s){return ri(e,t,s)}function ri(e,t,s=J){const{immediate:n,deep:r,flush:i,once:o}=s,l=ce({},s),a=t&&n||!t&&i!=="post";let p;if(ns){if(i==="sync"){const k=jo();p=k.__watcherHandles||(k.__watcherHandles=[])}else if(!a){const k=()=>{};return k.stop=Je,k.resume=Je,k.pause=Je,k}}let f=_e,m;if(f&&Nr()!==f.scope)if(f.scope.active){const k=f.scope.run(()=>new Ir);k.run(()=>to(()=>Promise.resolve().then(()=>{f=null,m&&(m.i=null)}))),l.onStop=()=>k.stop()}else f=null;l.call=(k,D,se)=>Ve(k,f,D,se);let T=!1;i==="post"?l.scheduler=k=>{k.i=f,ve(k,f&&f.suspense)}:i!=="sync"&&(T=!0,l.scheduler=(k,D)=>{D?k():An(k)}),l.augmentJob=k=>{m=k,t&&(k.flags|=4),T&&(k.flags|=2,f&&(k.id=f.uid,k.i=f))};const j=Oo(e,t,l);return ns&&(p?p.push(j):a&&j()),j}function Do(e,t,s){const n=this.proxy,r=ne(e)?e.includes(".")?ii(n,e):()=>n[e]:e.bind(n,n);let i;F(t)?i=t:(i=t.handler,s=t);const o=cs(this),l=ri(r,i.bind(n),s);return o(),l}function ii(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Fo=Symbol("_vte"),Us=e=>e.__isTeleport,Qs=Symbol("_leaveCb");function Vo(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ke){t=s;break}}return t}function oi(e){if(!Pn(e))return Us(e.type)&&e.children?Vo(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&F(s.default))return s.default()}}function Gt(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;Gt(Us(s.type)&&oi(s)||s,t)}else if(e.shapeFlag&128){const s=e.suspense;if(s){const n=s.isHydrating?s.pendingBranch:s.activeBranch;n&&Gt(n,t.clone(n))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===V&&R(e.children)){const s=gi(e.children,!1);s&&Gt(s,t)}}function dn(e){if(e.component)return dn(e.component.subTree);if(e.type===V){const t=R(e.children)&&gi(e.children,!1);return t?dn(t):void 0}if(e.type!==ke)return e}function Ae(e,t){return F(e)?ce({name:e.name},t,{setup:e}):e}function li(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Os=new WeakMap;function zt(e,t,s,n,r=!1){if(R(e)){e.forEach((D,se)=>zt(D,t&&(R(t)?t[se]:t),s,n,r));return}if(At(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&zt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Ws(n.component):n.el,o=r?null:i,{i:l,r:a}=e,p=t&&t.r,f=l.refs===J?l.refs={}:l.refs,m=l.setupState,T=B(m),j=m===J?Cr:D=>Yn(f,D)?!1:K(T,D),k=(D,se)=>!(se&&Yn(f,se));if(p!=null&&p!==a){if(Xn(t),ne(p))f[p]=null,j(p)&&(m[p]=null);else if(ue(p)){const D=t;k(p,D.k)&&(p.value=null),D.k&&(f[D.k]=null)}}if(F(a))as(a,l,12,[o,f]);else{const D=ne(a),se=ue(a);if(D||se){const ie=()=>{if(e.f){const W=D?j(a)?m[a]:f[a]:k()||!e.k?a.value:f[e.k];if(r)R(W)&&yn(W,i);else if(R(W))W.includes(i)||W.push(i);else if(D)f[a]=[i],j(a)&&(m[a]=f[a]);else{const Q=[i];k(a,e.k)&&(a.value=Q),e.k&&(f[e.k]=Q)}}else D?(f[a]=o,j(a)&&(m[a]=o)):se&&(k(a,e.k)&&(a.value=o),e.k&&(f[e.k]=o))};if(o){const W=()=>{ie(),Os.delete(e)};W.id=-1,Os.set(e,W),ve(W,s)}else Xn(e),ie()}}}function Xn(e){const t=Os.get(e);t&&(t.flags|=8,Os.delete(e))}Fs().requestIdleCallback;Fs().cancelIdleCallback;const At=e=>!!e.type.__asyncLoader,Pn=e=>e.type.__isKeepAlive;function Lo(e,t){ai(e,"a",t)}function Uo(e,t){ai(e,"da",t)}function ai(e,t,s=_e){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(es(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Pn(r.parent.vnode)&&Ho(n,t,s,r),r=r.parent}}function Ho(e,t,s,n){const r=es(t,e,n,!0),i=es("um",()=>yn(n[t],r),s);i.flags=16}function es(e,t,s=_e,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Xe();const l=cs(s),a=Ve(t,s,e,o);return l(),Ze(),a});return n?r.unshift(i):r.push(i),i}}const ft=e=>(t,s=_e)=>{(!ns||e==="sp")&&es(e,(...n)=>t(...n),s)},Ko=ft("bm"),Bo=ft("m"),Wo=ft("bu"),qo=ft("u"),Go=ft("bum"),zo=ft("um"),Jo=ft("sp"),Yo=ft("rtg"),Xo=ft("rtc");function Zo(e,t=_e){es("ec",e,t)}const Qo="components",ci=Symbol.for("v-ndc");function Zn(e){return ne(e)?el(Qo,e,!1)||e:e||ci}function el(e,t,s=!0,n=!1){const r=me||_e;if(r){const i=r.type;{const l=Fl(i,!1);if(l&&(l===t||l===we(t)||l===Ds(we(t))))return i}const o=Qn(r[e]||i[e],t)||Qn(r.appContext[e],t);return!o&&n?i:o}}function Qn(e,t){return e&&(e[t]||e[we(t)]||e[Ds(we(t))])}function ge(e,t,s,n){let r;const i=s,o=R(e);if(o||ne(e)){const l=o&&ot(e);let a=!1,p=!1;l&&(a=!Te(e),p=Fe(e),e=Vs(e)),r=new Array(e.length);for(let f=0,m=e.length;f<m;f++)r[f]=t(a?p?gt(Oe(e[f])):Oe(e[f]):e[f],f,void 0,i)}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)r=[];else{r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(G(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,p=l.length;a<p;a++){const f=l[a];r[a]=t(e[f],f,a,i)}}else r=[];return r}function ui(e,t,s,n,r,i){if(s==null&&(s={}),me.ce||me.parent&&At(me.parent)&&me.parent.ce){const p=s,f=Object.keys(p).length>0;return w(),Me(V,null,[Ee("slot",p,n)],f?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);const l=lt.length;w();let a;try{const p=o&&fi(o(s)),f=s.key||i||p&&p.key;a=Me(V,{key:(f&&!De(f)?f:`_${t}`)+(!p&&n?"_fb":"")},p||(n?n():[]),p&&e._===1?64:-2)}catch(p){for(let f=lt.length;f>l;f--)Rn();throw p}finally{o&&o._c&&(o._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function fi(e){return e.some(t=>Bs(t)?!(t.type===ke||t.type===V&&!fi(t.children)):!0)?e:null}const pn=e=>e?Ri(e)?Ws(e):pn(e.parent):null,Jt=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>pn(e.parent),$root:e=>pn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>pi(e),$forceUpdate:e=>e.f||(e.f=()=>{An(e.update)}),$nextTick:e=>e.n||(e.n=Po.bind(e.proxy)),$watch:e=>Do.bind(e)}),en=(e,t)=>e!==J&&!e.__isScriptSetup&&K(e,t),tl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const T=o[t];if(T!==void 0)switch(T){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(en(n,t))return o[t]=1,n[t];if(r!==J&&K(r,t))return o[t]=2,r[t];if(K(i,t))return o[t]=3,i[t];if(s!==J&&K(s,t))return o[t]=4,s[t];hn&&(o[t]=0)}}const p=Jt[t];let f,m;if(p)return t==="$attrs"&&he(e.attrs,"get",""),p(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(s!==J&&K(s,t))return o[t]=4,s[t];if(m=a.config.globalProperties,K(m,t))return m[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return en(r,t)?(r[t]=s,!0):n!==J&&K(n,t)?(n[t]=s,!0):K(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let a;return!!(s[l]||e!==J&&l[0]!=="$"&&K(e,l)||en(t,l)||K(i,l)||K(n,l)||K(Jt,l)||K(r.config.globalProperties,l)||(a=o.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:K(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function er(e){return R(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let hn=!0;function sl(e){const t=pi(e),s=e.proxy,n=e.ctx;hn=!1,t.beforeCreate&&tr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:a,inject:p,created:f,beforeMount:m,mounted:T,beforeUpdate:j,updated:k,activated:D,deactivated:se,beforeDestroy:ie,beforeUnmount:W,destroyed:Q,unmounted:ee,render:$e,renderTracked:U,renderTriggered:de,errorCaptured:Pe,serverPrefetch:Qe,expose:_t,inheritAttrs:Dt,components:fs,directives:ds,filters:qs}=t;if(p&&nl(p,n,null),o)for(const re in o){const Y=o[re];F(Y)&&(n[re]=Y.bind(s))}if(r){const re=r.call(s,s);G(re)&&(e.data=ls(re))}if(hn=!0,i)for(const re in i){const Y=i[re],bt=F(Y)?Y.bind(s,s):F(Y.get)?Y.get.bind(s,s):Je,ps=!F(Y)&&F(Y.set)?Y.set.bind(s):Je,yt=ks({get:bt,set:ps});Object.defineProperty(n,re,{enumerable:!0,configurable:!0,get:()=>yt.value,set:Re=>yt.value=Re})}if(l)for(const re in l)di(l[re],n,s,re);if(a){const re=F(a)?a.call(s):a;Reflect.ownKeys(re).forEach(Y=>{Io(Y,re[Y])})}f&&tr(f,e,"c");function be(re,Y){R(Y)?Y.forEach(bt=>re(bt.bind(s))):Y&&re(Y.bind(s))}if(be(Ko,m),be(Bo,T),be(Wo,j),be(qo,k),be(Lo,D),be(Uo,se),be(Zo,Pe),be(Xo,U),be(Yo,de),be(Go,W),be(zo,ee),be(Jo,Qe),R(_t))if(_t.length){const re=e.exposed||(e.exposed={});_t.forEach(Y=>{Object.defineProperty(re,Y,{get:()=>s[Y],set:bt=>s[Y]=bt,enumerable:!0})})}else e.exposed||(e.exposed={});$e&&e.render===Je&&(e.render=$e),Dt!=null&&(e.inheritAttrs=Dt),fs&&(e.components=fs),ds&&(e.directives=ds),Qe&&li(e)}function nl(e,t,s=Je){R(e)&&(e=mn(e));for(const n in e){const r=e[n];let i;G(r)?"default"in r?i=ws(r.from||n,r.default,!0):i=ws(r.from||n):i=ws(r),ue(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function tr(e,t,s){Ve(R(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function di(e,t,s,n){let r=n.includes(".")?ii(s,n):()=>s[n];if(ne(e)){const i=t[e];F(i)&&$s(r,i)}else if(F(e))$s(r,e.bind(s));else if(G(e))if(R(e))e.forEach(i=>di(i,t,s,n));else{const i=F(e.handler)?e.handler.bind(s):t[e.handler];F(i)&&$s(r,i,e)}}function pi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!s&&!n?a=t:(a={},r.length&&r.forEach(p=>As(a,p,o,!0)),As(a,t,o)),G(t)&&i.set(t,a),a}function As(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&As(e,i,s,!0),r&&r.forEach(o=>As(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=rl[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const rl={data:sr,props:nr,emits:nr,methods:Ht,computed:Ht,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:Ht,directives:Ht,watch:ol,provide:sr,inject:il};function sr(e,t){return t?e?function(){return ce(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function il(e,t){return Ht(mn(e),mn(t))}function mn(e){if(R(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Ht(e,t){return e?ce(Object.create(null),e,t):t}function nr(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:ce(Object.create(null),er(e),er(t??{})):t}function ol(e,t){if(!e)return t;if(!t)return e;const s=ce(Object.create(null),e);for(const n in t)s[n]=ye(e[n],t[n]);return s}function hi(){return{app:null,config:{isNativeTag:Cr,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 ll=0;function al(e,t){return function(n,r=null){F(n)||(n=ce({},n)),r!=null&&!G(r)&&(r=null);const i=hi(),o=new WeakSet,l=[];let a=!1;const p=i.app={_uid:ll++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ll,get config(){return i.config},set config(f){},use(f,...m){return o.has(f)||(f&&F(f.install)?(o.add(f),f.install(p,...m)):F(f)&&(o.add(f),f(p,...m))),p},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),p},component(f,m){return m?(i.components[f]=m,p):i.components[f]},directive(f,m){return m?(i.directives[f]=m,p):i.directives[f]},mount(f,m,T){if(!a){const j=p._ceVNode||Ee(n,r);return j.appContext=i,T===!0?T="svg":T===!1&&(T=void 0),e(j,f,T),a=!0,p._container=f,f.__vue_app__=p,Ws(j.component)}},onUnmount(f){l.push(f)},unmount(){a&&(Ve(l,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(f,m){return i.provides[f]=m,p},runWithContext(f){const m=Pt;Pt=p;try{return f()}finally{Pt=m}}};return p}}let Pt=null;const cl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${Tt(t)}Modifiers`];function ul(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||J;let r=s;const i=t.startsWith("update:"),o=i&&cl(n,t.slice(7));o&&(o.trim&&(r=s.map(f=>ne(f)?f.trim():f)),o.number&&(r=r.map(xn)));let l,a=n[l=Gs(t)]||n[l=Gs(we(t))];!a&&i&&(a=n[l=Gs(Tt(t))]),a&&Ve(a,e,6,r);const p=n[l+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ve(p,e,6,r)}}const fl=new WeakMap;function mi(e,t,s=!1){const n=s?fl:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!F(e)){const a=p=>{const f=mi(p,t,!0);f&&(l=!0,ce(o,f))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(G(e)&&n.set(e,null),null):(R(i)?i.forEach(a=>o[a]=null):ce(o,i),G(e)&&n.set(e,o),o)}function Hs(e,t){return!e||!Is(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,Tt(t))||K(e,t))}function rr(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:a,render:p,renderCache:f,props:m,data:T,setupState:j,ctx:k,inheritAttrs:D}=e,se=Es(e);let ie,W;try{if(s.shapeFlag&4){const ee=r||n,$e=ee;ie=qe(p.call($e,ee,f,m,j,T,k)),W=l}else{const ee=t;ie=qe(ee.length>1?ee(m,{attrs:l,slots:o,emit:a}):ee(m,null)),W=t.props?l:dl(l)}}catch(ee){lt.length=0,Ls(ee,e,1),ie=Ee(ke)}let Q=ie;if(W&&D!==!1){const ee=Object.keys(W),{shapeFlag:$e}=Q;ee.length&&$e&7&&(i&&ee.some(Ns)&&(W=pl(W,i)),Q=Rt(Q,W,!1,!0))}if(s.dirs&&(Q=Rt(Q,null,!1,!0),Q.dirs=Q.dirs?Q.dirs.concat(s.dirs):s.dirs),s.transition){const ee=Us(Q.type)&&oi(Q)||Q;Gt(ee,s.transition)}return ie=Q,Es(se),ie}function gi(e,t=!0){let s;for(let n=0;n<e.length;n++){const r=e[n];if(Bs(r)){if(r.type!==ke||r.children==="v-if"){if(s)return;s=r}}else return}return s}const dl=e=>{let t;for(const s in e)(s==="class"||s==="style"||Is(s))&&((t||(t={}))[s]=e[s]);return t},pl=(e,t)=>{const s={};for(const n in e)(!Ns(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function hl(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:a}=t,p=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?ir(n,o,p):!!o;if(a&8){const f=t.dynamicProps;for(let m=0;m<f.length;m++){const T=f[m];if(_i(o,n,T)&&!Hs(p,T))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?ir(n,o,p):!0:!!o;return!1}function ir(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(!K(e,i)||_i(t,e,i)&&!Hs(s,i))return!0}return!1}function _i(e,t,s){const n=e[s],r=t[s];return s==="style"&&G(n)&&G(r)?!mt(n,r):n!==r}function ml({vnode:e,parent:t,suspense:s},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=n,e=r),r===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const bi={},yi=()=>Object.create(bi),vi=e=>Object.getPrototypeOf(e)===bi;function gl(e,t,s,n=!1){const r={},i=yi();e.propsDefaults=Object.create(null),xi(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:vo(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function _l(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=B(r),[a]=e.propsOptions;let p=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let m=0;m<f.length;m++){let T=f[m];if(Hs(e.emitsOptions,T))continue;const j=t[T];if(a)if(K(i,T))j!==i[T]&&(i[T]=j,p=!0);else{const k=we(T);r[k]=gn(a,l,k,j,e,!1)}else j!==i[T]&&(i[T]=j,p=!0)}}}else{xi(e,t,r,i)&&(p=!0);let f;for(const m in l)(!t||!K(t,m)&&((f=Tt(m))===m||!K(t,f)))&&(a?s&&(s[m]!==void 0||s[f]!==void 0)&&(r[m]=gn(a,l,m,void 0,e,!0)):delete r[m]);if(i!==l)for(const m in i)(!t||!K(t,m))&&(delete i[m],p=!0)}p&&it(e.attrs,"set","")}function xi(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(Bt(a))continue;const p=t[a];let f;r&&K(r,f=we(a))?!i||!i.includes(f)?s[f]=p:(l||(l={}))[f]=p:Hs(e.emitsOptions,a)||(!(a in n)||p!==n[a])&&(n[a]=p,o=!0)}if(i){const a=B(s),p=l||J;for(let f=0;f<i.length;f++){const m=i[f];s[m]=gn(r,a,m,p[m],e,!K(p,m))}}return o}function gn(e,t,s,n,r,i){const o=e[s];if(o!=null){const l=K(o,"default");if(l&&n===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&F(a)){const{propsDefaults:p}=r;if(s in p)n=p[s];else{const f=cs(r);n=p[s]=a.call(null,t),f()}}else n=a;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===Tt(s))&&(n=!0))}return n}const bl=new WeakMap;function wi(e,t,s=!1){const n=s?bl:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];let a=!1;if(!F(e)){const f=m=>{a=!0;const[T,j]=wi(m,t,!0);ce(o,T),j&&l.push(...j)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!a)return G(e)&&n.set(e,$t),$t;if(R(i))for(let f=0;f<i.length;f++){const m=we(i[f]);or(m)&&(o[m]=J)}else if(i)for(const f in i){const m=we(f);if(or(m)){const T=i[f],j=o[m]=R(T)||F(T)?{type:T}:ce({},T),k=j.type;let D=!1,se=!0;if(R(k))for(let ie=0;ie<k.length;++ie){const W=k[ie],Q=F(W)&&W.name;if(Q==="Boolean"){D=!0;break}else Q==="String"&&(se=!1)}else D=F(k)&&k.name==="Boolean";j[0]=D,j[1]=se,(D||K(j,"default"))&&l.push(m)}}const p=[o,l];return G(e)&&n.set(e,p),p}function or(e){return e[0]!=="$"&&!Bt(e)}const Mn=e=>e==="_"||e==="_ctx"||e==="$stable",kn=e=>R(e)?e.map(qe):[qe(e)],yl=(e,t,s)=>{if(t._n)return t;const n=Le((...r)=>kn(t(...r)),s);return n._c=!1,n},$i=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Mn(r))continue;const i=e[r];if(F(i))t[r]=yl(r,i,n);else if(i!=null){const o=kn(i);t[r]=()=>o}}},Si=(e,t)=>{const s=kn(t);e.slots.default=()=>s},Ci=(e,t,s)=>{for(const n in t)(s||!Mn(n))&&(e[n]=t[n])},vl=(e,t,s)=>{const n=e.slots=yi();if(e.vnode.shapeFlag&32){const r=t._;r?(Ci(n,t,s),s&&Ar(n,"_",r,!0)):$i(t,n)}else t&&Si(e,t)},xl=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=J;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:Ci(r,t,s):(i=!t.$stable,$i(t,r)),o=t}else t&&(Si(e,t),o={default:1});if(i)for(const l in r)!Mn(l)&&o[l]==null&&delete r[l]},ve=El;function wl(e){return $l(e)}function $l(e,t){const s=Fs();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:a,setText:p,setElementText:f,parentNode:m,nextSibling:T,setScopeId:j=Je,insertStaticContent:k}=e,D=(c,d,g,$=null,b=null,x=null,O=void 0,E=null,C=!!d.dynamicChildren)=>{if(c===d)return;c&&!Ut(c,d)&&($=hs(c),Re(c,b,x,!0),c=null),d.patchFlag===-2&&(C=!1,d.dynamicChildren=null),d.dynamicChildren&&c&&c.dynamicChildren&&c.dynamicChildren.hasOnce&&(d.dynamicChildren===$t&&(d.dynamicChildren=[]),d.dynamicChildren.hasOnce=!0);const{type:y,ref:P,shapeFlag:A}=d;switch(y){case Ks:se(c,d,g,$);break;case ke:ie(c,d,g,$);break;case sn:c==null&&W(d,g,$,O);break;case V:fs(c,d,g,$,b,x,O,E,C);break;default:A&1?$e(c,d,g,$,b,x,O,E,C):A&6?ds(c,d,g,$,b,x,O,E,C):(A&64||A&128)&&y.process(c,d,g,$,b,x,O,E,C,Vt)}P!=null&&b?zt(P,c&&c.ref,x,d||c,!d):P==null&&c&&c.ref!=null&&zt(c.ref,null,x,c,!0)},se=(c,d,g,$)=>{if(c==null)n(d.el=l(d.children),g,$);else{const b=d.el=c.el;d.children!==c.children&&p(b,d.children)}},ie=(c,d,g,$)=>{c==null?n(d.el=a(d.children||""),g,$):d.el=c.el},W=(c,d,g,$)=>{[c.el,c.anchor]=k(c.children,d,g,$,c.el,c.anchor)},Q=({el:c,anchor:d},g,$)=>{let b;for(;c&&c!==d;)b=T(c),n(c,g,$),c=b;n(d,g,$)},ee=({el:c,anchor:d})=>{let g;for(;c&&c!==d;)g=T(c),r(c),c=g;r(d)},$e=(c,d,g,$,b,x,O,E,C)=>{if(d.type==="svg"?O="svg":d.type==="math"&&(O="mathml"),c==null)U(d,g,$,b,x,O,E,C);else{const y=c.el&&c.el._isVueCE?c.el:null;try{y&&y._beginPatch(),Qe(c,d,b,x,O,E,C)}finally{y&&y._endPatch()}}},U=(c,d,g,$,b,x,O,E)=>{let C,y;const{props:P,shapeFlag:A,transition:M,dirs:N}=c;if(C=c.el=o(c.type,x,P&&P.is,P),A&8?f(C,c.children):A&16&&Pe(c.children,C,null,$,b,tn(c,x),O,E),N&&vt(c,null,$,"created"),de(C,c,c.scopeId,O,$),P){for(const z in P)z!=="value"&&!Bt(z)&&i(C,z,null,P[z],x,$);"value"in P&&i(C,"value",null,P.value,x),(y=P.onVnodeBeforeMount)&&Ke(y,$,c)}N&&vt(c,null,$,"beforeMount");const H=Sl(b,M);H?M.beforeEnter(C):M&&!M.persisted&&(C[Tl]=!0),n(C,d,g),((y=P&&P.onVnodeMounted)||H||N)&&ve(()=>{y&&Ke(y,$,c),H&&M.enter(C),N&&vt(c,null,$,"mounted")},b)},de=(c,d,g,$,b)=>{if(g&&j(c,g),$)for(let x=0;x<$.length;x++)j(c,$[x]);if(b){let x=b.subTree;if(d===x||Oi(x.type)&&(x.ssContent===d||x.ssFallback===d)){const O=b.vnode;de(c,O,O.scopeId,O.slotScopeIds,b.parent)}}},Pe=(c,d,g,$,b,x,O,E,C=0)=>{for(let y=C;y<c.length;y++){const P=c[y]=E?rt(c[y]):qe(c[y]);D(null,P,d,g,$,b,x,O,E)}},Qe=(c,d,g,$,b,x,O)=>{const E=d.el=c.el;let{patchFlag:C,dynamicChildren:y,dirs:P}=d;C|=c.patchFlag&16;const A=c.props||J,M=d.props||J;let N;if(g&&xt(g,!1),(N=M.onVnodeBeforeUpdate)&&Ke(N,g,d,c),P&&vt(d,c,g,"beforeUpdate"),g&&xt(g,!0),y&&(!c.dynamicChildren||c.dynamicChildren.length!==y.length)&&(C=0,O=!1,y=null),(A.innerHTML&&M.innerHTML==null||A.textContent&&M.textContent==null)&&f(E,""),y?_t(c.dynamicChildren,y,E,g,$,tn(d,b),x):O||Y(c,d,E,null,g,$,tn(d,b),x,!1),C>0){if(C&16)Dt(E,A,M,g,b);else if(C&2&&A.class!==M.class&&i(E,"class",null,M.class,b),C&4&&i(E,"style",A.style,M.style,b),C&8){const H=d.dynamicProps;for(let z=0;z<H.length;z++){const q=H[z],oe=A[q],pe=M[q];(pe!==oe||q==="value")&&i(E,q,oe,pe,b,g)}}C&1&&c.children!==d.children&&f(E,d.children)}else!O&&y==null&&Dt(E,A,M,g,b);((N=M.onVnodeUpdated)||P)&&ve(()=>{N&&Ke(N,g,d,c),P&&vt(d,c,g,"updated")},$)},_t=(c,d,g,$,b,x,O)=>{for(let E=0;E<d.length;E++){const C=c[E],y=d[E],P=C.el||Yt(C),A=P&&(C.type===V||!Ut(C,y)||C.shapeFlag&198)?m(P):g;D(C,y,A,null,$,b,x,O,!0)}},Dt=(c,d,g,$,b)=>{if(d!==g){if(d!==J)for(const x in d)!Bt(x)&&!(x in g)&&i(c,x,d[x],null,b,$);for(const x in g){if(Bt(x))continue;const O=g[x],E=d[x];O!==E&&x!=="value"&&i(c,x,E,O,b,$)}"value"in g&&i(c,"value",d.value,g.value,b)}},fs=(c,d,g,$,b,x,O,E,C)=>{const y=d.el=c?c.el:l(""),P=d.anchor=c?c.anchor:l("");let{patchFlag:A,dynamicChildren:M,slotScopeIds:N}=d;N&&(E=E?E.concat(N):N),c==null?(n(y,g,$),n(P,g,$),Pe(d.children||[],g,P,b,x,O,E,C)):A>0&&A&64&&M&&c.dynamicChildren&&c.dynamicChildren.length===M.length?(_t(c.dynamicChildren,M,g,b,x,O,E),(d.key!=null||b&&d===b.subTree)&&Ti(c,d,!0)):Y(c,d,g,P,b,x,O,E,C)},ds=(c,d,g,$,b,x,O,E,C)=>{d.slotScopeIds=E,c==null?d.shapeFlag&512?b.ctx.activate(d,g,$,O,C):qs(d,g,$,b,x,O,C):Nn(c,d,C)},qs=(c,d,g,$,b,x,O)=>{const E=c.component=kl(c,$,b);if(Pn(c)&&(E.ctx.renderer=Vt),Il(E,!1,O),E.asyncDep){if(b&&b.registerDep(E,be,O,x),!c.el){const C=E.subTree=Ee(ke);ie(null,C,d,g),c.placeholder=C.el}}else be(E,c,d,g,b,x,O)},Nn=(c,d,g)=>{const $=d.component=c.component;if(hl(c,d,g))if($.asyncDep&&!$.asyncResolved){d.el=c.el,d.placeholder=c.placeholder,re($,d,g);return}else $.next=d,$.update();else d.el=c.el,d.placeholder=c.placeholder,$.vnode=d},be=(c,d,g,$,b,x,O)=>{const E=()=>{if(c.isMounted){let{next:A,bu:M,u:N,parent:H,vnode:z}=c;{const Ue=Ei(c);if(Ue){A&&(A.el=z.el,re(c,A,O)),Ue.asyncDep.then(()=>{const et=()=>{c.job.flags&8||(b&&b.pendingBranch?ve(et,b):y())};et.flags=48,ve(et,b)});return}}let q=A,oe;xt(c,!1),A?(A.el=z.el,re(c,A,O)):A=z,M&&xs(M),(oe=A.props&&A.props.onVnodeBeforeUpdate)&&Ke(oe,H,A,z),xt(c,!0);const pe=rr(c),Ie=c.subTree;c.subTree=pe,D(Ie,pe,m(Ie.el||Yt(Ie)),hs(Ie),c,b,x),A.el=pe.el,q===null&&ml(c,pe.el),N&&ve(N,b),(oe=A.props&&A.props.onVnodeUpdated)&&ve(()=>Ke(oe,H,A,z),b)}else{let A;const{el:M,props:N}=d,{bm:H,m:z,parent:q,root:oe,type:pe}=c,Ie=At(d);xt(c,!1),H&&xs(H),!Ie&&(A=N&&N.onVnodeBeforeMount)&&Ke(A,q,d),xt(c,!0);{oe.ce&&oe.ce._hasShadowRoot()&&oe.ce._injectChildStyle(pe,c.parent?c.parent.type:void 0);const Ue=c.subTree=rr(c);D(null,Ue,g,$,c,b,x),d.el=Ue.el}if(z&&ve(z,b),!Ie&&(A=N&&N.onVnodeMounted)){const Ue=d;ve(()=>Ke(A,q,Ue),b)}(d.shapeFlag&256||q&&At(q.vnode)&&q.vnode.shapeFlag&256)&&c.a&&ve(c.a,b),c.isMounted=!0,d=g=$=null}};c.scope.on();const C=c.effect=new jr(E);c.scope.off();const y=c.update=C.run.bind(C),P=c.job=C.runIfDirty.bind(C);P.i=c,P.id=c.uid,C.scheduler=()=>An(P),xt(c,!0),y()},re=(c,d,g)=>{d.component=c;const $=c.vnode.props;c.vnode=d,c.next=null,_l(c,d.props,$,g),xl(c,d.children,g),Xe(),ei(c),Ze()},Y=(c,d,g,$,b,x,O,E,C=!1)=>{const y=c&&c.children,P=c?c.shapeFlag:0,A=d.children,{patchFlag:M,shapeFlag:N}=d;if(M>0){if(M&128){ps(y,A,g,$,b,x,O,E,C);return}else if(M&256){bt(y,A,g,$,b,x,O,E,C);return}}N&8?(P&16&&Ft(y,b,x),A!==y&&f(g,A)):P&16?N&16?ps(y,A,g,$,b,x,O,E,C):Ft(y,b,x,!0):(P&8&&f(g,""),N&16&&Pe(A,g,$,b,x,O,E,C))},bt=(c,d,g,$,b,x,O,E,C)=>{c=c||$t,d=d||$t;const y=c.length,P=d.length,A=Math.min(y,P);let M;for(M=0;M<A;M++){const N=d[M]=C?rt(d[M]):qe(d[M]);D(c[M],N,g,null,b,x,O,E,C)}y>P?Ft(c,b,x,!0,!1,A):Pe(d,g,$,b,x,O,E,C,A)},ps=(c,d,g,$,b,x,O,E,C)=>{let y=0;const P=d.length;let A=c.length-1,M=P-1;for(;y<=A&&y<=M;){const N=c[y],H=d[y]=C?rt(d[y]):qe(d[y]);if(Ut(N,H))D(N,H,g,null,b,x,O,E,C);else break;y++}for(;y<=A&&y<=M;){const N=c[A],H=d[M]=C?rt(d[M]):qe(d[M]);if(Ut(N,H))D(N,H,g,null,b,x,O,E,C);else break;A--,M--}if(y>A){if(y<=M){const N=M+1,H=N<P?d[N].el:$;for(;y<=M;)D(null,d[y]=C?rt(d[y]):qe(d[y]),g,H,b,x,O,E,C),y++}}else if(y>M)for(;y<=A;)Re(c[y],b,x,!0),y++;else{const N=y,H=y,z=new Map;for(y=H;y<=M;y++){const Se=d[y]=C?rt(d[y]):qe(d[y]);Se.key!=null&&z.set(Se.key,y)}let q,oe=0;const pe=M-H+1;let Ie=!1,Ue=0;const et=new Array(pe);for(y=0;y<pe;y++)et[y]=0;for(y=N;y<=A;y++){const Se=c[y];if(oe>=pe){Re(Se,b,x,!0);continue}let He;if(Se.key!=null)He=z.get(Se.key);else for(q=H;q<=M;q++)if(et[q-H]===0&&Ut(Se,d[q])){He=q;break}He===void 0?Re(Se,b,x,!0):(et[He-H]=y+1,He>=Ue?Ue=He:Ie=!0,D(Se,d[He],g,null,b,x,O,E,C),oe++)}const Vn=Ie?Cl(et):$t;for(q=Vn.length-1,y=pe-1;y>=0;y--){const Se=H+y,He=d[Se],Ln=d[Se+1],Un=Se+1<P?Ln.el||Yt(Ln):$;et[y]===0?D(null,He,g,Un,b,x,O,E,C):Ie&&(q<0||y!==Vn[q]?yt(He,g,Un,2):q--)}}},yt=(c,d,g,$,b=null)=>{const{el:x,type:O,transition:E,children:C,shapeFlag:y}=c;if(y&6){yt(c.component.subTree,d,g,$);return}if(y&128){c.suspense.move(d,g,$);return}if(y&64){O.move(c,d,g,Vt);return}if(O===V){n(x,d,g);for(let A=0;A<C.length;A++)yt(C[A],d,g,$);n(c.anchor,d,g);return}if(O===sn){Q(c,d,g);return}if($!==2&&y&1&&E)if($===0)E.persisted&&!x[Qs]?n(x,d,g):(E.beforeEnter(x),n(x,d,g),ve(()=>E.enter(x),b));else{const{leave:A,delayLeave:M,afterLeave:N}=E,H=()=>{c.ctx.isUnmounted?r(x):n(x,d,g)},z=()=>{const q=x._isLeaving||!!x[Qs];x._isLeaving&&x[Qs](!0),E.persisted&&!q?H():A(x,()=>{H(),N&&N()})};M?M(x,H,z):z()}else n(x,d,g)},Re=(c,d,g,$=!1,b=!1)=>{const{type:x,props:O,ref:E,children:C,dynamicChildren:y,shapeFlag:P,patchFlag:A,dirs:M,cacheIndex:N,memo:H}=c;if((A===-2||y&&y.hasOnce)&&(b=!1),E!=null&&(Xe(),zt(E,null,g,c,!0),Ze()),N!=null&&(!c.ctx||c.ctx===d)&&(d.renderCache[N]=void 0),P&256&&d.ctx.deactivate(c))return;const z=P&1&&M,q=!At(c);let oe;if(q&&(oe=O&&O.onVnodeBeforeUnmount)&&Ke(oe,d,c),P&6)Li(c.component,g,$);else{if(P&128){c.suspense.unmount(g,$);return}z&&vt(c,null,d,"beforeUnmount"),P&64?c.type.remove(c,d,g,Vt,$):y&&!y.hasOnce&&(x!==V||A>0&&A&64)?Ft(y,d,g,!1,!0):(x===V&&A&384||!b&&P&16)&&Ft(C,d,g),$&&jn(c)}const pe=H!=null&&N==null;(q&&(oe=O&&O.onVnodeUnmounted)||z||pe)&&ve(()=>{oe&&Ke(oe,d,c),z&&vt(c,null,d,"unmounted"),pe&&(c.el=null)},g)},jn=c=>{const{type:d,el:g,anchor:$,transition:b}=c,x=d===V;if(x&&!b){Dn(g,$);return}if(d===sn){ee(c),b&&!b.persisted&&b.afterLeave&&b.afterLeave();return}const O=x?dn(c):c,E=()=>{x?m(g)&&Dn(g,$):r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(O&&O.shapeFlag&1&&b&&!b.persisted){const{leave:C,delayLeave:y}=b,P=O.el,A=()=>C(P,E);y?y(P,E,A):A()}else E()},Dn=(c,d)=>{let g;for(;c!==d;)g=T(c),r(c),c=g;r(d)},Li=(c,d,g)=>{const{bum:$,scope:b,job:x,subTree:O,um:E,m:C,a:y}=c;lr(C),lr(y),$&&xs($),b.stop(),x?(x.flags|=8,Re(O,c,d,g)):O&&(O.transition=c.vnode.transition,Re(O,c,d,g)),E&&ve(E,d);const P=()=>{c.isUnmounted=!0};P.flags=16,ve(P,d)},Ft=(c,d,g,$=!1,b=!1,x=0)=>{for(let O=x;O<c.length;O++)Re(c[O],d,g,$,b)},hs=c=>{if(c.shapeFlag&6)return hs(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const d=T(c.anchor||c.el),g=d&&d[Fo];return g?T(g):d},Fn=(c,d,g)=>{const $=c&&d._vnode?void 0:c&&c.component?c.component.uid:Ml();Ro(()=>{c==null?d._vnode&&Re(d._vnode,null,null,!0):D(d._vnode||null,c,d,null,null,null,g),d._vnode=c},$)},Vt={p:D,um:Re,m:yt,r:jn,mt:qs,mc:Pe,pc:Y,pbc:_t,n:hs,o:e};return{render:Fn,hydrate:void 0,createApp:al(Fn)}}function tn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function xt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Sl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ti(e,t,s=!1){const n=e.children,r=t.children;if(R(n)&&R(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=rt(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&Ti(o,l)),l.type===Ks&&(l.patchFlag===-1&&(l=r[i]=rt(l)),l.el=o.el),l.type===ke&&!l.el&&(l.el=o.el)}}function Cl(e){const t=e.slice(),s=[0];let n,r,i,o,l;const a=e.length;for(n=0;n<a;n++){const p=e[n];if(p!==0){if(r=s[s.length-1],e[r]<p){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,e[s[l]]<p?i=l+1:o=l;p<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Ei(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ei(t)}function lr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yt(e){if(e.placeholder)return e.placeholder;const t=e.component;if(t)return Yt(t.subTree);const s=e.suspense;return s&&s.activeBranch?Yt(s.activeBranch):null}const Oi=e=>e.__isSuspense,Tl=Symbol("_deferredEnter");function El(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):ko(e)}const V=Symbol.for("v-fgt"),Ks=Symbol.for("v-txt"),ke=Symbol.for("v-cmt"),sn=Symbol.for("v-stc"),lt=[];let Ce=null;function w(e=!1){lt.push(Ce=e?null:[])}function Rn(){lt.pop(),Ce=lt[lt.length-1]||null}let ts=1;function ar(e,t=!1){ts+=e,e<0&&Ce&&t&&(Ce.hasOnce=!0)}function Ai(e){return e.dynamicChildren=ts>0?Ce||$t:null,Rn(),ts>0&&Ce&&Ce.push(e),e}function S(e,t,s,n,r,i){return Ai(h(e,t,s,n,r,i,!0))}function Me(e,t,s,n,r){return Ai(Ee(e,t,s,n,r,!0))}function Bs(e){return e?e.__v_isVNode===!0:!1}function Ut(e,t){return e.type===t.type&&e.key===t.key}const Pi=({key:e})=>e??null,Ss=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ne(e)||ue(e)||F(e)?{i:me,r:e,k:t,f:!!s}:e:null);function h(e,t=null,s=null,n=0,r=null,i=e===V?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pi(t),ref:t&&Ss(t),scopeId:ni,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:me};return l?(Ps(a,s),i&128&&e.normalize(a)):s&&(a.shapeFlag|=ne(s)?8:16),ts>0&&!o&&Ce&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Ce.push(a),a}const Ee=Ol;function Ol(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===ci)&&(e=ke),Bs(e)){const l=Rt(e,t,!0);return s&&Ps(l,s),ts>0&&!i&&Ce&&(l.shapeFlag&6?Ce[Ce.indexOf(e)]=l:Ce.push(l)),l.patchFlag=-2,l}if(Vl(e)&&(e=e.__vccOpts),t){t=Al(t);let{class:l,style:a}=t;l&&!ne(l)&&(t.class=at(l)),G(a)&&(On(a)&&!R(a)&&(a=ce({},a)),t.style=os(a))}const o=ne(e)?1:Oi(e)?128:Us(e)?64:G(e)?4:F(e)?2:0;return h(e,t,s,n,r,o,i,!0)}function Al(e){return e?On(e)?ce({},e):vi(e)?ce({},e[Ni]||e):e:null}function Rt(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:a}=e,p=t?Mi(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Pi(p),ref:t&&t.ref?s&&i?R(i)?i.concat(Ss(t)):[i,Ss(t)]:Ss(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==V?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Rt(e.ssContent),ssFallback:e.ssFallback&&Rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&n&&Gt(f,a.clone(f)),f}function fe(e=" ",t=0){return Ee(Ks,null,e,t)}function L(e="",t=!1){return t?(w(),Me(ke,null,e)):Ee(ke,null,e)}function qe(e){return e==null||typeof e=="boolean"?Ee(ke):R(e)?Ee(V,null,e.slice()):Bs(e)?rt(e):Ee(Ks,null,String(e))}function rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Rt(e)}function Ps(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(R(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Ps(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!vi(t)?t._ctx=me:r===3&&me&&(me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(F(t)){if(n&65){Ps(e,{default:t});return}t={default:t,_ctx:me},s=32}else t=String(t),n&64?(s=16,t=[fe(t)]):s=8;e.children=t,e.shapeFlag|=s}function Mi(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=at([t.class,n.class]));else if(r==="style")t.style=os([t.style,n.style]);else if(Is(r)){const i=t[r],o=n[r];o&&i!==o&&!(R(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!Ns(r)&&(t[r]=o)}else r!==""&&(t[r]=n[r])}return t}function Ke(e,t,s,n=null){Ve(e,t,7,[s,n])}const Pl=hi();let ki=0;function Ml(){return ki}function kl(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Pl,i={uid:ki++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ir(!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:wi(n,r),emitsOptions:mi(n,r),emit:null,emitted:null,propsDefaults:J,inheritAttrs:n.inheritAttrs,ctx:J,data:J,props:J,attrs:J,slots:J,refs:J,setupState:J,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ul.bind(null,i),e.ce&&e.ce(i),i}let _e=null;const Rl=()=>_e||me;let Ms,ss;{const e=Fs(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Ms=t("__VUE_INSTANCE_SETTERS__",s=>_e=s),ss=t("__VUE_SSR_SETTERS__",s=>ns=s)}const cs=e=>{const t=_e;return Ms(e),e.scope.on(),()=>{e.scope.off(),Ms(t)}},cr=()=>{_e&&_e.scope.off(),Ms(null)};function Ri(e){return e.vnode.shapeFlag&4}let ns=!1;function Il(e,t=!1,s=!1){t&&ss(t);const{props:n,children:r}=e.vnode,i=Ri(e);gl(e,n,i,t),vl(e,r,s||t);const o=i?Nl(e,t):void 0;return t&&ss(!1),o}function Nl(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,tl);const{setup:n}=s;if(n){Xe();const r=e.setupContext=n.length>1?Dl(e):null,i=cs(e),o=as(n,e,0,[e.props,r]),l=Tr(o);if(Ze(),i(),(l||e.sp)&&!At(e)&&li(e),l){if(o.then(cr,cr),t)return o.then(a=>{ss(!0);try{ur(e,a,t)}finally{ss(!1)}}).catch(a=>{Ls(a,e,0,void 0,!0),e.ssrRender=(p,f)=>f("<!---->")});e.asyncDep=o}else ur(e,o)}else Ii(e)}function ur(e,t,s){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=Xr(t)),Ii(e)}function Ii(e,t,s){const n=e.type;e.render||(e.render=n.render||Je);{const r=cs(e);Xe();try{sl(e)}finally{Ze(),r()}}}const Ni=Symbol(),jl={get(e,t){return he(e,"get",""),t===Ni?e:e[t]}};function Dl(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,jl),slots:e.slots,emit:e.emit,expose:t}}function Ws(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xr(xo(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Jt)return Jt[s](e)},has(t,s){return s in t||s in Jt}})):e.proxy}function Fl(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function Vl(e){return F(e)&&"__vccOpts"in e}const ks=(e,t)=>To(e,t,ns),Ll="3.5.47";let _n;const fr=typeof window<"u"&&window.trustedTypes;if(fr)try{_n=fr.createPolicy("vue",{createHTML:e=>e})}catch{}const ji=_n?e=>_n.createHTML(e):e=>e,Ul="http://www.w3.org/2000/svg",Hl="http://www.w3.org/1998/Math/MathML",st=typeof document<"u"?document:null,dr=st&&st.createElement("template"),Kl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?st.createElementNS(Ul,e):t==="mathml"?st.createElementNS(Hl,e):s?st.createElement(e,{is:s}):st.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>st.createTextNode(e),createComment:e=>st.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>st.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{dr.innerHTML=ji(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=dr.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Bl=Symbol("_vtc");function Wl(e,t,s){const n=e[Bl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const pr=Symbol("_vod"),ql=Symbol("_vsh"),Gl=Symbol(""),zl=/(?:^|;)\s*display\s*:/;function Jl(e,t,s){const n=e.style,r=ne(s);let i=!1;if(s&&!r){if(t)if(ne(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Kt(n,l,"")}else for(const o in t)s[o]==null&&Kt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?Xl(e,o,!ne(t)&&t?t[o]:void 0,l)||Kt(n,o,l):Kt(n,o,"")}}else if(r){if(t!==s){const o=n[Gl];o&&(s+=";"+o),n.cssText=s,i=zl.test(s)}}else t&&e.removeAttribute("style");pr in e&&((!r||t!==s)&&(e[pr]=i?n.display:""),e[ql]&&(n.display="none"))}const bs=/\s*!important$/;function Kt(e,t,s){if(R(s))s.forEach(n=>Kt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))bs.test(s)?e.setProperty(t,s.replace(bs,""),"important"):e.setProperty(t,s);else{const n=Yl(e,t);bs.test(s)?e.setProperty(Tt(n),s.replace(bs,""),"important"):e[n]=s}}const hr=["Webkit","Moz","ms"],nn={};function Yl(e,t){const s=nn[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return nn[t]=n;n=Ds(n);for(let r=0;r<hr.length;r++){const i=hr[r]+n;if(i in e)return nn[t]=i}return t}function Xl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ne(n)&&s===n}const mr="http://www.w3.org/1999/xlink";function gr(e,t,s,n,r,i=Zi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(mr,t.slice(6,t.length)):e.setAttributeNS(mr,t,s):s==null||i&&!Pr(s)?e.removeAttribute(t):e.setAttribute(t,i?"":De(s)?String(s):s)}function _r(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ji(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Pr(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function pt(e,t,s,n){e.addEventListener(t,s,n)}function Zl(e,t,s,n){e.removeEventListener(t,s,n)}const br=Symbol("_vei");function Ql(e,t,s,n,r=null){const i=e[br]||(e[br]={}),o=i[t];if(n&&o)o.value=n;else{const[l,a]=sa(t);if(n){const p=i[t]=ia(n,r);pt(e,l,p,a)}else o&&(Zl(e,l,o,a),i[t]=void 0)}}const ea=/(Once|Passive|Capture)$/,ta=/^on:?(?:Once|Passive|Capture)$/;function sa(e){let t,s;for(;(s=e.match(ea))&&!ta.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Tt(e.slice(2)),t]}let rn=0;const na=Promise.resolve(),ra=()=>rn||(na.then(()=>rn=0),rn=Date.now());function ia(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(R(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let a=0;a<o.length&&!n._stopped;a++){const p=o[a];p&&Ve(p,t,5,l)}}else Ve(r,t,5,[n])};return s.value=e,s.attached=ra(),s}const yr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,oa=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?Wl(e,n,o):t==="style"?Jl(e,s,n):Is(t)?Ns(t)||Ql(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):la(e,t,n,o))?(_r(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gr(e,t,n,o,i,t!=="value")):e._isVueCE&&(aa(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ne(n)))?_r(e,we(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),gr(e,t,n,o))};function la(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&yr(t)&&F(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return yr(t)&&ne(s)?!1:t in e}function aa(e,t){const s=e._def.props;if(!s)return!1;const n=we(t);return Array.isArray(s)?s.some(r=>we(r)===n):Object.keys(s).some(r=>we(r)===n)}const It=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?s=>xs(t,s):t};function ca(e){e.target.composing=!0}function vr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ze=Symbol("_assign"),ys=Symbol("_initialValue");function on(e,t,s){return t&&(e=e.trim()),s&&(e=xn(e)),e}const ae={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e.parentNode&&(e.type==="text"?e[ys]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[ys]=e.defaultValue.replace(/\r\n?/g,`
|
|
`))),e[ze]=It(r);const i=n||r.props&&r.props.type==="number";pt(e,t?"change":"input",o=>{o.target.composing||e[ze](on(e.value,s,i))}),(s||i)&&pt(e,"change",()=>{e.value=on(e.value,s,i)}),t||(pt(e,"compositionstart",ca),pt(e,"compositionend",vr),pt(e,"change",vr))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const r=t??"",i=e[ys];delete e[ys],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[ze](on(e.value,s,n)):e.value=r},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:i}},o){if(e[ze]=It(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?xn(e.value):e.value,a=t??"";if(l===a)return;const p=e.getRootNode();(p instanceof Document||p instanceof ShadowRoot)&&p.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===a)||(e.value=a)}},rs={deep:!0,created(e,t,s){e[ze]=It(s),pt(e,"change",()=>{const n=e._modelValue,r=Di(e),i=e.checked,o=e[ze];if(R(n)){const l=Mr(n,r),a=l!==-1;if(i&&!a)o(n.concat(r));else if(!i&&a){const p=[...n];p.splice(l,1),o(p)}}else if(Mt(n)){const l=new Set(n);i?l.add(r):l.delete(r),o(l)}else o(Fi(e,i))})},mounted:xr,beforeUpdate(e,t,s){e[ze]=It(s),xr(e,t,s)}};function xr(e,{value:t,oldValue:s},n){e._modelValue=t;let r;if(R(t))r=Mr(t,n.props.value)>-1;else if(Mt(t))r=t.has(n.props.value);else{if(t===s)return;r=mt(t,Fi(e,!0))}e.checked!==r&&(e.checked=r)}const ua={created(e,{value:t},s){e.checked=mt(t,s.props.value),e[ze]=It(s),pt(e,"change",()=>{e[ze](Di(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[ze]=It(n),t!==s&&(e.checked=mt(t,n.props.value))}};function Di(e){return"_value"in e?e._value:e.value}function Fi(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const fa=["ctrl","shift","alt","meta"],da={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)=>fa.some(s=>e[`${s}Key`]&&!t.includes(s))},jt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=da[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},pa=ce({patchProp:oa},Kl);let wr;function ha(){return wr||(wr=wl(pa))}const ma=((...e)=>{const t=ha().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=_a(n);if(!r)return;const i=t._component;!F(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,ga(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function ga(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _a(e){return ne(e)?document.querySelector(e):e}class is extends Error{constructor(t,s){super(s?.message??`HTTP ${t}`),this.status=t,this.body=s}status;body;get errors(){return Object.fromEntries(Object.entries(this.body?.errors??{}).map(([t,s])=>[t,s[0]]))}}const I=JSON.parse(document.getElementById("manager-boot").textContent);function ba(){const e=document.cookie.match(/(?:^|; )XSRF-TOKEN=([^;]+)/);return e?decodeURIComponent(e[1]):""}async function vs(e,t,s){const n=await fetch(t,{method:e,credentials:"same-origin",headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest","X-XSRF-TOKEN":ba(),...s===void 0?{}:{"Content-Type":"application/json"}},body:s===void 0?void 0:JSON.stringify(s)}),r=n.status===204?null:await n.json().catch(()=>null);if(!n.ok)throw new is(n.status,r);return r}const Ye={get:e=>vs("GET",e),post:(e,t={})=>vs("POST",e,t),put:(e,t={})=>vs("PUT",e,t),delete:(e,t)=>vs("DELETE",e,t)};function us(e){const t=ls({values:{...e},errors:{},busy:!1,async send(s,n){t.busy=!0,t.errors={};try{return await Ye[s](n,t.values)}catch(r){if(r instanceof is&&r.status===422)return t.errors=r.errors,null;throw r}finally{t.busy=!1}}});return t}const ya={Dashboard:"Dashboard","Log in":"Inloggen","Log out":"Uitloggen",Email:"E-mailadres",Password:"Wachtwoord","Keep me logged in":"Ingelogd blijven","Logging in…":"Bezig met inloggen…","Log in to manage the site.":"Log in om de site te beheren.","My account":"Mijn account",Name:"Naam","Email address":"E-mailadres","What you may do":"Wat je mag","Super admin: everything":"Super admin: alles","Not in a group yet":"Nog in geen groep","New password":"Nieuw wachtwoord","Leave empty to keep the password you have.":"Laat leeg om je wachtwoord te houden.","Current password":"Huidig wachtwoord","At least 12 characters.":"Minstens 12 tekens.","New password, once more":"Nieuw wachtwoord, nogmaals",Save:"Opslaan","Saving…":"Bezig met opslaan…","Saved.":"Opgeslagen.",Look:"Uiterlijk",Theme:"Thema",Posts:"Berichten","New post":"Nieuw bericht",Title:"Titel",Status:"Status",Category:"Categorie",Edit:"Bewerken",Delete:"Verwijderen","Put online":"Online zetten","Take offline":"Offline halen",Draft:"Concept",Scheduled:"Ingepland",Published:"Gepubliceerd","Are you sure?":"Weet je het zeker?","No posts yet.":"Nog geen berichten.","Address (slug)":"Adres (slug)",Summary:"Samenvatting","Text (Markdown)":"Tekst (Markdown)","Cover image":"Omslagafbeelding","Tags (comma separated)":"Tags (met komma's)",Featured:"Uitgelicht",Publish:"Publiceren","Publish at":"Publiceren op",Menu:"Menu","Loading…":"Laden…","You may not open this page.":"Je mag deze pagina niet openen.","Something went wrong. Try again.":"Er ging iets mis. Probeer het opnieuw.","This page has no screen in the manager yet.":"Deze pagina heeft nog geen scherm in de manager.","Go to the dashboard":"Naar het dashboard","The page expired. Reload it and try again.":"De pagina is verlopen. Laad hem opnieuw en probeer het nog eens.",Back:"Terug",Accounts:"Accounts","New account":"Nieuw account",you:"jij","Super admin":"Super admin",Groups:"Groepen",Cancel:"Annuleren","New group":"Nieuwe groep",Description:"Omschrijving",accounts:"accounts","Categories and tags":"Categorieën en tags",Categories:"Categorieën",Tags:"Tags",Add:"Toevoegen",Rename:"Hernoemen","New name":"Nieuwe naam",Pages:"Pagina's",Reviews:"Reviews","Nothing here yet.":"Hier is nog niets.",Previous:"Vorige",Next:"Volgende",Media:"Media",Open:"Openen","Created.":"Aangemaakt.","Deleted.":"Verwijderd."};let Vi={};function va(e){Vi=e.toLowerCase().startsWith("nl")?ya:{}}function v(e){return Vi[e]??e}const xa=["href"],ct=Ae({__name:"Link",props:{href:{}},setup(e){function t(s,n){s.metaKey||s.ctrlKey||s.shiftKey||s.button!==0||(s.preventDefault(),In(n))}return(s,n)=>(w(),S("a",{href:e.href,onClick:n[0]||(n[0]=r=>t(r,e.href))},[ui(s.$slots,"default")],8,xa))}}),wa={class:"font-display mb-6 text-2xl font-bold"},$a={class:"mb-4 text-muted"},Sa={class:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3"},Ca=Ae({__name:"Dashboard",props:{navigation:{}},setup(e){return(t,s)=>(w(),S(V,null,[h("h1",wa,_(u(v)("Dashboard")),1),h("p",$a,_(u(I).user?.name),1),h("div",Sa,[(w(!0),S(V,null,ge(e.navigation,n=>(w(),Me(ct,{key:n.href,href:n.href,class:"m-card block p-5 font-semibold transition hover:border-brand"},{default:Le(()=>[fe(_(u(v)(n.label)),1)]),_:2},1032,["href"]))),128))])],64))}}),Ta={class:"m-card max-w-xl p-6"},Ea={class:"text-sm"},Oa=Ae({__name:"Fallback",setup(e){return(t,s)=>(w(),S("div",Ta,[h("p",Ea,_(u(v)("This page has no screen in the manager yet.")),1),Ee(ct,{href:u(I).base,class:"m-btn m-btn-secondary mt-4"},{default:Le(()=>[fe(_(u(v)("Go to the dashboard")),1)]),_:1},8,["href"])]))}}),Aa={class:"grid min-h-screen place-items-center px-4"},Pa=["src"],Ma={class:"font-display text-2xl font-bold"},ka={class:"mt-1 text-sm text-muted"},Ra={class:"mt-6"},Ia={for:"email",class:"m-label"},Na={key:0,class:"m-error"},ja={class:"mt-4"},Da={for:"password",class:"m-label"},Fa={key:0,class:"m-error"},Va={class:"mt-4 flex items-center gap-2 text-sm text-muted"},La=["disabled"],Ua=Ae({__name:"Login",setup(e){const t=us({email:"",password:"",remember:!1});async function s(){const n=await t.send("post",I.base+"/login");n?window.location.assign(n.redirect):t.values.password=""}return(n,r)=>(w(),S("div",Aa,[h("form",{class:"m-card w-full max-w-sm p-7",onSubmit:jt(s,["prevent"])},[u(I).logo?(w(),S("img",{key:0,src:u(I).logo,alt:"",class:"mb-4 h-9 w-auto"},null,8,Pa)):L("",!0),h("h1",Ma,_(u(I).name),1),h("p",ka,_(u(v)("Log in to manage the site.")),1),h("div",Ra,[h("label",Ia,_(u(v)("Email")),1),Z(h("input",{id:"email","onUpdate:modelValue":r[0]||(r[0]=i=>u(t).values.email=i),type:"email",autocomplete:"username",required:"",autofocus:"",class:"m-input"},null,512),[[ae,u(t).values.email]]),u(t).errors.email?(w(),S("p",Na,_(u(t).errors.email),1)):L("",!0)]),h("div",ja,[h("label",Da,_(u(v)("Password")),1),Z(h("input",{id:"password","onUpdate:modelValue":r[1]||(r[1]=i=>u(t).values.password=i),type:"password",autocomplete:"current-password",required:"",class:"m-input"},null,512),[[ae,u(t).values.password]]),u(t).errors.password?(w(),S("p",Fa,_(u(t).errors.password),1)):L("",!0)]),h("label",Va,[Z(h("input",{"onUpdate:modelValue":r[2]||(r[2]=i=>u(t).values.remember=i),type:"checkbox"},null,512),[[rs,u(t).values.remember]]),fe(" "+_(u(v)("Keep me logged in")),1)]),h("button",{type:"submit",class:"m-btn m-btn-primary mt-6 w-full justify-center",disabled:u(t).busy},_(u(t).busy?u(v)("Logging in…"):u(v)("Log in")),9,La)],32)]))}}),Ha={class:"mb-6 flex items-center justify-between gap-3"},Ka={class:"font-display text-2xl font-bold"},Ba={for:"title",class:"m-label"},Wa={key:0,class:"m-error"},qa={class:"grid gap-5 sm:grid-cols-2"},Ga={for:"slug",class:"m-label"},za={key:0,class:"m-error"},Ja={for:"category",class:"m-label"},Ya={id:"categories"},Xa=["value"],Za={for:"excerpt",class:"m-label"},Qa={key:0,class:"m-error"},ec={for:"body",class:"m-label"},tc={key:0,class:"m-error"},sc={class:"grid gap-5 sm:grid-cols-2"},nc={for:"cover",class:"m-label"},rc={for:"tags",class:"m-label"},ic={id:"known-tags"},oc=["value"],lc={class:"flex flex-wrap items-center gap-6"},ac={class:"flex items-center gap-2 text-sm"},cc={key:0,class:"flex items-center gap-2 text-sm"},uc={key:1},fc={for:"at",class:"m-label"},dc=["disabled"],$r=Ae({__name:"PostForm",props:{post:{},categories:{},known_tags:{}},setup(e){const s=e.post,n=us({title:s?.title??"",slug:s?.slug??"",excerpt:s?.excerpt??"",body:s?.body??"",cover_image:s?.cover_image??"",category:s?.category??"",tags:s?.tags??[],is_featured:s?.is_featured??!1,is_published:s?.is_published??!1,published_at:s?.published_at??""});let r=(s?.tags??[]).join(", ");async function i(){n.values.tags=r.split(",").map(l=>l.trim()).filter(Boolean),(s?await n.send("put",`${I.base}/posts/${s.id}`):await n.send("post",`${I.base}/posts`))&&(ut(v(s?"Saved.":"Created.")),In(`${I.base}/posts`))}return(o,l)=>(w(),S(V,null,[h("div",Ha,[h("h1",Ka,_(u(s)?u(s).title:u(v)("New post")),1),Ee(ct,{href:u(I).base+"/posts",class:"m-btn m-btn-secondary"},{default:Le(()=>[fe(_(u(v)("Back")),1)]),_:1},8,["href"])]),h("form",{class:"m-card max-w-3xl space-y-5 p-5",onSubmit:jt(i,["prevent"])},[h("div",null,[h("label",Ba,_(u(v)("Title")),1),Z(h("input",{id:"title","onUpdate:modelValue":l[0]||(l[0]=a=>u(n).values.title=a),required:"",maxlength:"255",class:"m-input"},null,512),[[ae,u(n).values.title]]),u(n).errors.title?(w(),S("p",Wa,_(u(n).errors.title),1)):L("",!0)]),h("div",qa,[h("div",null,[h("label",Ga,_(u(v)("Address (slug)")),1),Z(h("input",{id:"slug","onUpdate:modelValue":l[1]||(l[1]=a=>u(n).values.slug=a),maxlength:"255",class:"m-input"},null,512),[[ae,u(n).values.slug]]),u(n).errors.slug?(w(),S("p",za,_(u(n).errors.slug),1)):L("",!0)]),h("div",null,[h("label",Ja,_(u(v)("Category")),1),Z(h("input",{id:"category","onUpdate:modelValue":l[2]||(l[2]=a=>u(n).values.category=a),list:"categories",maxlength:"60",class:"m-input"},null,512),[[ae,u(n).values.category]]),h("datalist",Ya,[(w(!0),S(V,null,ge(e.categories,a=>(w(),S("option",{key:a,value:a},null,8,Xa))),128))])])]),h("div",null,[h("label",Za,_(u(v)("Summary")),1),Z(h("textarea",{id:"excerpt","onUpdate:modelValue":l[3]||(l[3]=a=>u(n).values.excerpt=a),rows:"2",maxlength:"500",class:"m-input"},null,512),[[ae,u(n).values.excerpt]]),u(n).errors.excerpt?(w(),S("p",Qa,_(u(n).errors.excerpt),1)):L("",!0)]),h("div",null,[h("label",ec,_(u(v)("Text (Markdown)")),1),Z(h("textarea",{id:"body","onUpdate:modelValue":l[4]||(l[4]=a=>u(n).values.body=a),rows:"14",required:"",class:"m-input font-mono"},null,512),[[ae,u(n).values.body]]),u(n).errors.body?(w(),S("p",tc,_(u(n).errors.body),1)):L("",!0)]),h("div",sc,[h("div",null,[h("label",nc,_(u(v)("Cover image")),1),Z(h("input",{id:"cover","onUpdate:modelValue":l[5]||(l[5]=a=>u(n).values.cover_image=a),maxlength:"2048",class:"m-input"},null,512),[[ae,u(n).values.cover_image]])]),h("div",null,[h("label",rc,_(u(v)("Tags (comma separated)")),1),Z(h("input",{id:"tags","onUpdate:modelValue":l[6]||(l[6]=a=>ue(r)?r.value=a:r=a),list:"known-tags",class:"m-input"},null,512),[[ae,u(r)]]),h("datalist",ic,[(w(!0),S(V,null,ge(e.known_tags,a=>(w(),S("option",{key:a,value:a},null,8,oc))),128))])])]),h("div",lc,[h("label",ac,[Z(h("input",{"onUpdate:modelValue":l[7]||(l[7]=a=>u(n).values.is_featured=a),type:"checkbox"},null,512),[[rs,u(n).values.is_featured]]),fe(" "+_(u(v)("Featured")),1)]),u(I).permissions.includes("posts.publish")?(w(),S("label",cc,[Z(h("input",{"onUpdate:modelValue":l[8]||(l[8]=a=>u(n).values.is_published=a),type:"checkbox"},null,512),[[rs,u(n).values.is_published]]),fe(" "+_(u(v)("Publish")),1)])):L("",!0),u(n).values.is_published?(w(),S("div",uc,[h("label",fc,_(u(v)("Publish at")),1),Z(h("input",{id:"at","onUpdate:modelValue":l[9]||(l[9]=a=>u(n).values.published_at=a),type:"datetime-local",class:"m-input"},null,512),[[ae,u(n).values.published_at]])])):L("",!0)]),h("button",{type:"submit",class:"m-btn m-btn-primary",disabled:u(n).busy},_(u(n).busy?u(v)("Saving…"):u(v)("Save")),9,dc)],32)],64))}}),pc={class:"mb-6 flex flex-wrap items-center justify-between gap-3"},hc={class:"font-display text-2xl font-bold"},mc={key:0,class:"m-card p-5 text-sm text-muted"},gc={key:1,class:"m-card divide-y divide-line"},_c={class:"min-w-0"},bc={class:"truncate font-semibold"},yc={class:"mt-1 flex items-center gap-2 text-xs text-muted"},vc={class:"m-badge"},xc={key:0},wc={class:"flex gap-2"},$c=["onClick"],Sc=["onClick"],Cc=Ae({__name:"PostsIndex",props:{posts:{}},setup(e){const t={draft:"Draft",scheduled:"Scheduled",published:"Published"};async function s(r){await Ye.put(`${I.base}/posts/${r.id}/online`,{online:r.status!=="published"}),await Ct()}async function n(r){window.confirm(v("Are you sure?"))&&(await Ye.delete(`${I.base}/posts/${r.id}`),ut(v("Deleted.")),await Ct())}return(r,i)=>(w(),S(V,null,[h("div",pc,[h("h1",hc,_(u(v)("Posts")),1),u(I).permissions.includes("posts.write")?(w(),Me(ct,{key:0,href:u(I).base+"/posts/create",class:"m-btn m-btn-primary"},{default:Le(()=>[fe(_(u(v)("New post")),1)]),_:1},8,["href"])):L("",!0)]),e.posts.length?(w(),S("ul",gc,[(w(!0),S(V,null,ge(e.posts,o=>(w(),S("li",{key:o.id,class:"flex flex-wrap items-center justify-between gap-3 p-4"},[h("div",_c,[h("p",bc,_(o.title),1),h("p",yc,[h("span",vc,_(u(v)(t[o.status])),1),o.category?(w(),S("span",xc,_(o.category),1)):L("",!0)])]),h("div",wc,[u(I).permissions.includes("posts.publish")&&o.can_change?(w(),S("button",{key:0,type:"button",class:"m-btn m-btn-secondary",onClick:l=>s(o)},_(o.status==="published"?u(v)("Take offline"):u(v)("Put online")),9,$c)):L("",!0),o.can_change?(w(),Me(ct,{key:1,href:`${u(I).base}/posts/${o.id}/edit`,class:"m-btn m-btn-secondary"},{default:Le(()=>[fe(_(u(v)("Edit")),1)]),_:1},8,["href"])):L("",!0),o.can_delete?(w(),S("button",{key:2,type:"button",class:"m-btn m-btn-danger",onClick:l=>n(o)},_(u(v)("Delete")),9,Sc)):L("",!0)])]))),128))])):(w(),S("p",mc,_(u(v)("No posts yet.")),1))],64))}}),Tc={class:"font-display mb-6 text-2xl font-bold"},Ec={for:"name",class:"m-label"},Oc={key:0,class:"m-error"},Ac={class:"m-label"},Pc={class:"text-sm"},Mc={class:"m-label"},kc={class:"flex flex-wrap gap-1.5"},Rc={key:0,class:"m-badge"},Ic={key:0,class:"m-badge"},Nc={key:0,class:"rounded-lg border border-line p-4"},jc={class:"px-1.5 text-sm font-semibold"},Dc={class:"mt-1 flex flex-wrap gap-3"},Fc=["onUpdate:modelValue","value"],Vc={class:"flex"},Lc={key:0,class:"m-error"},Uc={class:"space-y-4 rounded-lg border border-line p-4"},Hc={class:"px-1.5 text-sm font-semibold"},Kc={class:"m-help"},Bc={for:"current_password",class:"m-label"},Wc={key:0,class:"m-error"},qc={for:"password",class:"m-label"},Gc={class:"m-help"},zc={key:0,class:"m-error"},Jc={for:"password_confirmation",class:"m-label"},Yc=["disabled"],Xc=Ae({__name:"Profile",props:{profile:{}},setup(e){const t=e,s=us({name:t.profile.name,theme:t.profile.theme,current_password:"",password:"",password_confirmation:""});async function n(){await s.send("put",I.base+"/profile")&&(ut(v("Saved.")),s.values.theme!==I.theme&&window.location.reload(),s.values.current_password=s.values.password=s.values.password_confirmation="")}return(r,i)=>(w(),S(V,null,[h("h1",Tc,_(u(v)("My account")),1),h("form",{class:"m-card max-w-xl space-y-5 p-5",onSubmit:jt(n,["prevent"])},[h("div",null,[h("label",Ec,_(u(v)("Name")),1),Z(h("input",{id:"name","onUpdate:modelValue":i[0]||(i[0]=o=>u(s).values.name=o),type:"text",required:"",maxlength:"255",class:"m-input",autocomplete:"name"},null,512),[[ae,u(s).values.name]]),u(s).errors.name?(w(),S("p",Oc,_(u(s).errors.name),1)):L("",!0)]),h("div",null,[h("span",Ac,_(u(v)("Email address")),1),h("p",Pc,_(e.profile.email),1)]),h("div",null,[h("span",Mc,_(u(v)("What you may do")),1),h("p",kc,[e.profile.is_super_admin?(w(),S("span",Rc,_(u(v)("Super admin: everything")),1)):(w(),S(V,{key:1},[(w(!0),S(V,null,ge(e.profile.groups,o=>(w(),S("span",{key:o,class:"m-badge"},_(o),1))),128)),e.profile.groups.length?L("",!0):(w(),S("span",Ic,_(u(v)("Not in a group yet")),1))],64))])]),e.profile.themes.length?(w(),S("fieldset",Nc,[h("legend",jc,_(u(v)("Look")),1),h("div",Dc,[(w(!0),S(V,null,ge(e.profile.themes,o=>(w(),S("label",{key:o.key,class:at(["flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm",u(s).values.theme===o.key?"border-brand":"border-line"])},[Z(h("input",{"onUpdate:modelValue":l=>u(s).values.theme=l,type:"radio",name:"theme",value:o.key,class:"sr-only"},null,8,Fc),[[ua,u(s).values.theme]]),h("span",Vc,[(w(),S(V,null,ge(["ink","panel","brand"],l=>h("span",{key:l,class:"h-4 w-4 border border-line",style:os({background:o.colors[l]})},null,4)),64))]),fe(" "+_(o.label),1)],2))),128))]),u(s).errors.theme?(w(),S("p",Lc,_(u(s).errors.theme),1)):L("",!0)])):L("",!0),h("fieldset",Uc,[h("legend",Hc,_(u(v)("New password")),1),h("p",Kc,_(u(v)("Leave empty to keep the password you have.")),1),h("div",null,[h("label",Bc,_(u(v)("Current password")),1),Z(h("input",{id:"current_password","onUpdate:modelValue":i[1]||(i[1]=o=>u(s).values.current_password=o),type:"password",class:"m-input",autocomplete:"current-password"},null,512),[[ae,u(s).values.current_password]]),u(s).errors.current_password?(w(),S("p",Wc,_(u(s).errors.current_password),1)):L("",!0)]),h("div",null,[h("label",qc,_(u(v)("New password")),1),Z(h("input",{id:"password","onUpdate:modelValue":i[2]||(i[2]=o=>u(s).values.password=o),type:"password",minlength:"12",maxlength:"200",class:"m-input",autocomplete:"new-password"},null,512),[[ae,u(s).values.password]]),h("p",Gc,_(u(v)("At least 12 characters.")),1),u(s).errors.password?(w(),S("p",zc,_(u(s).errors.password),1)):L("",!0)]),h("div",null,[h("label",Jc,_(u(v)("New password, once more")),1),Z(h("input",{id:"password_confirmation","onUpdate:modelValue":i[3]||(i[3]=o=>u(s).values.password_confirmation=o),type:"password",maxlength:"200",class:"m-input",autocomplete:"new-password"},null,512),[[ae,u(s).values.password_confirmation]])])]),h("button",{type:"submit",class:"m-btn m-btn-primary",disabled:u(s).busy},_(u(s).busy?u(v)("Saving…"):u(v)("Save")),9,Yc)],32)],64))}}),Zc={class:"mb-6 flex flex-wrap items-center justify-between gap-3"},Qc={class:"font-display text-2xl font-bold"},eu={class:"grid gap-4 sm:grid-cols-2"},tu={class:"m-label",for:"a-name"},su={key:0,class:"m-error"},nu={class:"m-label",for:"a-email"},ru={key:0,class:"m-error"},iu={class:"m-label",for:"a-pass"},ou=["required"],lu={class:"m-help"},au={key:0,class:"m-error"},cu={key:0},uu={class:"m-label"},fu=["value","disabled"],du={class:"flex gap-2"},pu=["disabled"],hu={class:"m-card divide-y divide-line"},mu={class:"min-w-0"},gu={class:"truncate font-semibold"},_u={key:0,class:"text-xs font-normal text-muted"},bu={class:"truncate text-xs text-muted"},yu={class:"mt-1 flex flex-wrap gap-1"},vu={key:0,class:"m-badge"},xu={class:"flex gap-2"},wu=["onClick"],$u=["onClick"],Su=Ae({__name:"AccountsIndex",props:{accounts:{},groups:{}},setup(e){const t=Zt(null),s=us({name:"",email:"",password:"",groups:[]});function n(o){t.value=o,s.errors={},s.values.name=o==="new"?"":o.name,s.values.email=o==="new"?"":o.email,s.values.password="",s.values.groups=o==="new"?[]:o.groups.map(l=>l.id)}async function r(){const o=t.value;(o==="new"?await s.send("post",`${I.base}/accounts`):await s.send("put",`${I.base}/accounts/${o.id}`))&&(ut(v("Saved.")),t.value=null,await Ct())}async function i(o){window.confirm(v("Are you sure?"))&&(await Ye.delete(`${I.base}/accounts/${o.id}`),ut(v("Deleted.")),await Ct())}return(o,l)=>(w(),S(V,null,[h("div",Zc,[h("h1",Qc,_(u(v)("Accounts")),1),h("button",{type:"button",class:"m-btn m-btn-primary",onClick:l[0]||(l[0]=a=>n("new"))},_(u(v)("New account")),1)]),t.value?(w(),S("form",{key:0,class:"m-card mb-6 max-w-2xl space-y-4 p-5",onSubmit:jt(r,["prevent"])},[h("div",eu,[h("div",null,[h("label",tu,_(u(v)("Name")),1),Z(h("input",{id:"a-name","onUpdate:modelValue":l[1]||(l[1]=a=>u(s).values.name=a),required:"",maxlength:"255",class:"m-input"},null,512),[[ae,u(s).values.name]]),u(s).errors.name?(w(),S("p",su,_(u(s).errors.name),1)):L("",!0)]),h("div",null,[h("label",nu,_(u(v)("Email address")),1),Z(h("input",{id:"a-email","onUpdate:modelValue":l[2]||(l[2]=a=>u(s).values.email=a),type:"email",required:"",maxlength:"255",class:"m-input"},null,512),[[ae,u(s).values.email]]),u(s).errors.email?(w(),S("p",ru,_(u(s).errors.email),1)):L("",!0)])]),h("div",null,[h("label",iu,_(u(v)("Password")),1),Z(h("input",{id:"a-pass","onUpdate:modelValue":l[3]||(l[3]=a=>u(s).values.password=a),type:"password",minlength:"12",maxlength:"200",required:t.value==="new",class:"m-input",autocomplete:"new-password"},null,8,ou),[[ae,u(s).values.password]]),h("p",lu,_(t.value==="new"?u(v)("At least 12 characters."):u(v)("Leave empty to keep the password you have.")),1),u(s).errors.password?(w(),S("p",au,_(u(s).errors.password),1)):L("",!0)]),e.groups.length?(w(),S("fieldset",cu,[h("legend",uu,_(u(v)("Groups")),1),(w(!0),S(V,null,ge(e.groups,a=>(w(),S("label",{key:a.id,class:at(["flex items-center gap-2 py-0.5 text-sm",a.can_give?"":"opacity-50"])},[Z(h("input",{"onUpdate:modelValue":l[4]||(l[4]=p=>u(s).values.groups=p),type:"checkbox",value:a.id,disabled:!a.can_give},null,8,fu),[[rs,u(s).values.groups]]),fe(" "+_(a.name),1)],2))),128))])):L("",!0),h("div",du,[h("button",{type:"submit",class:"m-btn m-btn-primary",disabled:u(s).busy},_(u(s).busy?u(v)("Saving…"):u(v)("Save")),9,pu),h("button",{type:"button",class:"m-btn m-btn-secondary",onClick:l[5]||(l[5]=a=>t.value=null)},_(u(v)("Cancel")),1)])],32)):L("",!0),h("ul",hu,[(w(!0),S(V,null,ge(e.accounts,a=>(w(),S("li",{key:a.id,class:"flex flex-wrap items-center justify-between gap-3 p-4"},[h("div",mu,[h("p",gu,[fe(_(a.name)+" ",1),a.is_you?(w(),S("span",_u,"("+_(u(v)("you"))+")",1)):L("",!0)]),h("p",bu,_(a.email),1),h("p",yu,[a.is_super_admin?(w(),S("span",vu,_(u(v)("Super admin")),1)):L("",!0),(w(!0),S(V,null,ge(a.groups,p=>(w(),S("span",{key:p.id,class:"m-badge"},_(p.name),1))),128))])]),h("div",xu,[a.can_change?(w(),S("button",{key:0,type:"button",class:"m-btn m-btn-secondary",onClick:p=>n(a)},_(u(v)("Edit")),9,wu)):L("",!0),a.can_delete?(w(),S("button",{key:1,type:"button",class:"m-btn m-btn-danger",onClick:p=>i(a)},_(u(v)("Delete")),9,$u)):L("",!0)])]))),128))])],64))}}),Cu={class:"mb-6 flex flex-wrap items-center justify-between gap-3"},Tu={class:"font-display text-2xl font-bold"},Eu={class:"m-label",for:"g-name"},Ou={key:0,class:"m-error"},Au={class:"m-label",for:"g-desc"},Pu={class:"px-1 text-sm font-semibold"},Mu=["value","onChange"],ku={class:"flex gap-2"},Ru=["disabled"],Iu={key:1,class:"m-card p-5 text-sm text-muted"},Nu={key:2,class:"m-card divide-y divide-line"},ju={class:"min-w-0"},Du={class:"font-semibold"},Fu={class:"text-xs font-normal text-muted"},Vu={key:0,class:"text-xs text-muted"},Lu={class:"flex gap-2"},Uu=["onClick"],Hu=["onClick"],Ku=Ae({__name:"GroupsIndex",props:{groups:{},catalogue:{}},setup(e){const t=e,s=Zt(null),n=us({name:"",description:"",permissions:[]}),r=t.catalogue.flatMap(p=>p.permissions);function i(p){s.value=p,n.errors={},n.values.name=p==="new"?"":p.name,n.values.description=p==="new"?"":p.description??"",n.values.permissions=p==="new"?[]:[...p.permissions]}function o(p){n.values.permissions.includes(p.value)?n.values.permissions=[...new Set([...n.values.permissions,...p.needs])]:n.values.permissions=n.values.permissions.filter(f=>!r.find(m=>m.value===f)?.needs.includes(p.value))}async function l(){const p=s.value;(p==="new"?await n.send("post",`${I.base}/groups`):await n.send("put",`${I.base}/groups/${p.id}`))&&(ut(v("Saved.")),s.value=null,await Ct())}async function a(p){window.confirm(v("Are you sure?"))&&(await Ye.delete(`${I.base}/groups/${p.id}`),ut(v("Deleted.")),await Ct())}return(p,f)=>(w(),S(V,null,[h("div",Cu,[h("h1",Tu,_(u(v)("Groups")),1),h("button",{type:"button",class:"m-btn m-btn-primary",onClick:f[0]||(f[0]=m=>i("new"))},_(u(v)("New group")),1)]),s.value?(w(),S("form",{key:0,class:"m-card mb-6 max-w-3xl space-y-4 p-5",onSubmit:jt(l,["prevent"])},[h("div",null,[h("label",Eu,_(u(v)("Name")),1),Z(h("input",{id:"g-name","onUpdate:modelValue":f[1]||(f[1]=m=>u(n).values.name=m),required:"",maxlength:"60",class:"m-input"},null,512),[[ae,u(n).values.name]]),u(n).errors.name?(w(),S("p",Ou,_(u(n).errors.name),1)):L("",!0)]),h("div",null,[h("label",Au,_(u(v)("Description")),1),Z(h("textarea",{id:"g-desc","onUpdate:modelValue":f[2]||(f[2]=m=>u(n).values.description=m),rows:"2",maxlength:"500",class:"m-input"},null,512),[[ae,u(n).values.description]])]),(w(!0),S(V,null,ge(e.catalogue,m=>(w(),S("fieldset",{key:m.section,class:"rounded-lg border border-line p-3"},[h("legend",Pu,_(m.section),1),(w(!0),S(V,null,ge(m.permissions,T=>(w(),S("label",{key:T.value,class:"flex items-center gap-2 py-0.5 text-sm"},[Z(h("input",{"onUpdate:modelValue":f[3]||(f[3]=j=>u(n).values.permissions=j),type:"checkbox",value:T.value,onChange:j=>o(T)},null,40,Mu),[[rs,u(n).values.permissions]]),fe(" "+_(T.label),1)]))),128))]))),128)),h("div",ku,[h("button",{type:"submit",class:"m-btn m-btn-primary",disabled:u(n).busy},_(u(n).busy?u(v)("Saving…"):u(v)("Save")),9,Ru),h("button",{type:"button",class:"m-btn m-btn-secondary",onClick:f[4]||(f[4]=m=>s.value=null)},_(u(v)("Cancel")),1)])],32)):L("",!0),e.groups.length?(w(),S("ul",Nu,[(w(!0),S(V,null,ge(e.groups,m=>(w(),S("li",{key:m.id,class:"flex flex-wrap items-center justify-between gap-3 p-4"},[h("div",ju,[h("p",Du,[fe(_(m.name)+" ",1),h("span",Fu,"· "+_(m.accounts)+" "+_(u(v)("accounts")),1)]),m.description?(w(),S("p",Vu,_(m.description),1)):L("",!0)]),h("div",Lu,[h("button",{type:"button",class:"m-btn m-btn-secondary",onClick:T=>i(m)},_(u(v)("Edit")),9,Uu),h("button",{type:"button",class:"m-btn m-btn-danger",onClick:T=>a(m)},_(u(v)("Delete")),9,Hu)])]))),128))])):(w(),S("p",Iu,_(u(v)("Nothing here yet.")),1))],64))}}),Bu={class:"font-display mb-6 text-2xl font-bold"},Wu={key:0,class:"m-error mb-4"},qu={class:"grid gap-6 md:grid-cols-2"},Gu={class:"mb-3 font-semibold"},zu=["onSubmit"],Ju=["onUpdate:modelValue","aria-label"],Yu={type:"submit",class:"m-btn m-btn-primary"},Xu={class:"divide-y divide-line"},Zu={class:"min-w-0 truncate"},Qu={class:"text-xs text-muted"},ef={class:"flex gap-1"},tf=["onClick"],sf=["onClick"],nf=Ae({__name:"LabelsIndex",props:{categories:{},tags:{}},setup(e){const t=[{type:"category",title:"Categories"},{type:"tag",title:"Tags"}],s=Zt({category:"",tag:""}),n=Zt("");async function r(a){n.value="";try{await a(),await Ct()}catch(p){if(p instanceof is&&p.status===422)n.value=Object.values(p.errors)[0]??p.message;else throw p}}const i=a=>r(async()=>{await Ye.post(`${I.base}/labels`,{type:a,name:s.value[a]}),s.value[a]="",ut(v("Created."))}),o=(a,p)=>{const f=window.prompt(v("New name"),p);return f&&f!==p?r(()=>Ye.put(`${I.base}/labels`,{type:a,name:p,new_name:f})):void 0},l=(a,p)=>window.confirm(v("Are you sure?"))?r(()=>Ye.delete(`${I.base}/labels`,{type:a,name:p})):void 0;return(a,p)=>(w(),S(V,null,[h("h1",Bu,_(u(v)("Categories and tags")),1),n.value?(w(),S("p",Wu,_(n.value),1)):L("",!0),h("div",qu,[(w(),S(V,null,ge(t,f=>h("section",{key:f.type,class:"m-card p-4"},[h("h2",Gu,_(u(v)(f.title)),1),h("form",{class:"mb-3 flex gap-2",onSubmit:jt(m=>i(f.type),["prevent"])},[Z(h("input",{"onUpdate:modelValue":m=>s.value[f.type]=m,required:"",maxlength:"60",class:"m-input","aria-label":u(v)(f.title)},null,8,Ju),[[ae,s.value[f.type]]]),h("button",Yu,_(u(v)("Add")),1)],40,zu),h("ul",Xu,[(w(!0),S(V,null,ge(f.type==="category"?e.categories:e.tags,m=>(w(),S("li",{key:m.name,class:"flex items-center justify-between gap-2 py-2 text-sm"},[h("span",Zu,[fe(_(m.name)+" ",1),h("span",Qu,"· "+_(m.posts),1)]),h("span",ef,[h("button",{type:"button",class:"m-btn m-btn-secondary",onClick:T=>o(f.type,m.name)},_(u(v)("Rename")),9,tf),h("button",{type:"button",class:"m-btn m-btn-danger",onClick:T=>l(f.type,m.name)},_(u(v)("Delete")),9,sf)])]))),128))])])),64))])],64))}}),rf={class:"font-display mb-6 text-2xl font-bold"},of={key:0,class:"m-card p-5 text-sm text-muted"},lf={key:1,class:"m-card divide-y divide-line"},af={class:"min-w-0"},cf={class:"truncate font-semibold"},uf={class:"truncate text-xs text-muted"},ff={class:"m-badge"},df={key:2,class:"mt-4 flex gap-2"},pf=Ae({__name:"ListPage",props:{data:{},current_page:{},last_page:{},path:{}},setup(e){const t=e,s=ks(()=>te.path.includes("/reviews")?"reviews":"pages"),n=ks(()=>s.value==="reviews"?"Reviews":"Pages"),r=a=>s.value==="reviews"?a.author:a.title,i=a=>s.value==="reviews"?a.rating?"★".repeat(a.rating):"":a.slug,o=a=>s.value==="reviews"?a.is_visible:a.is_published,l=a=>`${te.path.split("?")[0]}?page=${a}`;return(a,p)=>(w(),S(V,null,[h("h1",rf,_(u(v)(n.value)),1),t.data.length?(w(),S("ul",lf,[(w(!0),S(V,null,ge(t.data,f=>(w(),S("li",{key:f.id,class:"flex items-center justify-between gap-3 p-4"},[h("div",af,[h("p",cf,_(r(f)),1),h("p",uf,_(i(f)),1)]),h("span",ff,_(o(f)?u(v)("Published"):u(v)("Draft")),1)]))),128))])):(w(),S("p",of,_(u(v)("Nothing here yet.")),1)),t.last_page>1?(w(),S("nav",df,[t.current_page>1?(w(),Me(ct,{key:0,href:l(t.current_page-1),class:"m-btn m-btn-secondary"},{default:Le(()=>[fe(_(u(v)("Previous")),1)]),_:1},8,["href"])):L("",!0),t.current_page<t.last_page?(w(),Me(ct,{key:1,href:l(t.current_page+1),class:"m-btn m-btn-secondary"},{default:Le(()=>[fe(_(u(v)("Next")),1)]),_:1},8,["href"])):L("",!0)])):L("",!0)],64))}}),hf=[{pattern:/^\/?$/,component:Ca,data:!0},{pattern:/^\/login$/,component:Ua,guest:!0},{pattern:/^\/profile$/,component:Xc,data:!0},{pattern:/^\/posts$/,component:Cc,data:!0},{pattern:/^\/posts\/create$/,component:$r,data:!0},{pattern:/^\/posts\/\d+\/edit$/,component:$r,data:!0},{pattern:/^\/accounts$/,component:Su,data:!0},{pattern:/^\/groups$/,component:Ku,data:!0},{pattern:/^\/labels$/,component:nf,data:!0},{pattern:/^\/(pages|reviews)$/,component:pf,data:!0}],te=ls({path:"",component:null,props:{},loading:!0,forbidden:!1,toast:null});let Sr;function ut(e,t=!1){te.toast={text:e,error:t},window.clearTimeout(Sr),Sr=window.setTimeout(()=>te.toast=null,4e3)}function mf(e){return e.split("?")[0].slice(I.base.length)||"/"}async function Rs(e){const t=hf.find(s=>s.pattern.test(mf(e)));if(!I.user&&!t?.guest){window.location.assign(I.base+"/login");return}if(I.user&&t?.guest)return In(I.base,!0);te.loading=!0,te.forbidden=!1,te.path=e,te.component=t?.component??Oa,te.props={};try{te.props=t?.data?await Ye.get(e):{}}catch(s){s instanceof is&&s.status===401?window.location.assign(I.base+"/login"):s instanceof is&&s.status===403?te.forbidden=!0:ut(v("Something went wrong. Try again."),!0)}finally{te.loading=!1}}function In(e,t=!1){return window.history[t?"replaceState":"pushState"]({},"",e),window.scrollTo(0,0),Rs(e)}function Ct(){return Rs(te.path)}function gf(){window.addEventListener("popstate",()=>Rs(window.location.pathname+window.location.search)),Rs(window.location.pathname+window.location.search)}const _f={class:"min-h-screen"},bf={class:"fixed inset-x-0 top-0 z-40 flex h-14 items-center justify-between border-b border-line bg-panel px-4 md:hidden"},yf={class:"font-display font-bold"},vf=["aria-expanded"],xf={class:"hidden h-16 items-center gap-2 px-5 md:flex"},wf=["src"],$f={class:"font-display text-lg font-bold"},Sf={class:"flex-1 space-y-0.5 overflow-y-auto px-3 py-3","aria-label":"Manager"},Cf={class:"border-t border-line p-4"},Tf={class:"truncate text-sm font-semibold group-hover:text-brand"},Ef={class:"truncate text-xs text-muted"},Of={class:"px-4 pb-16 pt-20 md:ml-60 md:px-8 md:pt-8"},Af={class:"mx-auto max-w-5xl"},Pf=Ae({__name:"Layout",setup(e){const t=Zt(!1),s=ks(()=>[{label:"Dashboard",href:I.base},...I.navigation]);function n(i){const o=te.path.split("?")[0];return i===I.base?o===i:o===i||o.startsWith(i+"/")}async function r(){const{redirect:i}=await Ye.post(I.base+"/logout");window.location.assign(i)}return $s(()=>te.path,()=>t.value=!1),(i,o)=>(w(),S("div",_f,[h("header",bf,[h("span",yf,_(u(I).name),1),h("button",{type:"button",class:"m-btn m-btn-secondary","aria-expanded":t.value,onClick:o[0]||(o[0]=l=>t.value=!t.value)},_(u(v)("Menu")),9,vf)]),h("aside",{class:at(["fixed inset-y-0 left-0 z-30 flex w-60 flex-col border-r border-line bg-panel pt-14 transition-transform md:translate-x-0 md:pt-0",t.value?"translate-x-0":"-translate-x-full"])},[h("div",xf,[u(I).logo?(w(),S("img",{key:0,src:u(I).logo,alt:"",class:"h-7 w-auto"},null,8,wf)):L("",!0),h("span",$f,_(u(I).name),1)]),h("nav",Sf,[(w(!0),S(V,null,ge(s.value,l=>(w(),Me(ct,{key:l.href,href:l.href,class:at(["block rounded-lg px-3 py-2 text-sm font-medium transition",n(l.href)?"bg-brand/15 text-text":"text-muted hover:bg-text/5 hover:text-text"]),"aria-current":n(l.href)?"page":void 0},{default:Le(()=>[fe(_(u(v)(l.label)),1)]),_:2},1032,["href","class","aria-current"]))),128))]),h("div",Cf,[Ee(ct,{href:u(I).base+"/profile",class:"group block"},{default:Le(()=>[h("p",Tf,_(u(I).user?.name),1),h("p",Ef,_(u(I).user?.email),1)]),_:1},8,["href"]),h("button",{type:"button",class:"m-btn m-btn-secondary mt-3 w-full justify-center",onClick:r},_(u(v)("Log out")),1)])],2),t.value?(w(),S("div",{key:0,class:"fixed inset-0 z-20 bg-black/60 md:hidden",onClick:o[1]||(o[1]=l=>t.value=!1)})):L("",!0),h("main",Of,[h("div",Af,[ui(i.$slots,"default")])])]))}}),Mf={key:0,class:"m-card p-5 text-sm"},kf={key:1,class:"text-sm text-muted"},Rf=Ae({__name:"App",setup(e){return(t,s)=>(w(),S(V,null,[u(te).component&&!u(I).user?(w(),Me(Zn(u(te).component),{key:0})):u(te).component?(w(),Me(Pf,{key:1},{default:Le(()=>[u(te).forbidden?(w(),S("p",Mf,_(u(v)("You may not open this page.")),1)):u(te).loading?(w(),S("p",kf,_(u(v)("Loading…")),1)):(w(),Me(Zn(u(te).component),Yi(Mi({key:2},u(te).props)),null,16))]),_:1})):L("",!0),u(te).toast?(w(),S("div",{key:2,role:"status",class:at(["fixed bottom-5 right-5 z-50 rounded-lg border border-l-4 border-line bg-panel px-4 py-3 text-sm font-medium text-text shadow-xl",u(te).toast.error?"border-l-red-500":"border-l-emerald-500"])},_(u(te).toast.text),3)):L("",!0)],64))}});va(I.locale);ma(Rf).mount("#manager");gf();
|