4 lines
124 KiB
JavaScript
4 lines
124 KiB
JavaScript
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,D=ee(e=>e.replace(ne,`-$1`).toLowerCase()),O=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),re=ee(e=>e?`on${O(e)}`:``),k=(e,t)=>!Object.is(e,t),ie=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},A=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ae=e=>{let t=parseFloat(e);return isNaN(t)?e:t},oe=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function le(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?pe(r):le(r);if(i)for(let e in i)t[e]=i[e]}return t}if(g(e)||v(e))return e}var ue=/;(?![^(]*\))/g,de=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function pe(e){let t={};return e.replace(fe,``).split(ue).forEach(e=>{if(e){let n=e.split(de);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=j(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var me=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,he=e(me);me+``;function ge(e){return!!e||e===``}function _e(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=M(e[r],t[r]);return n}function ve(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),r=new Uint8Array(n.length);for(let t of e){let e=-1;for(let i=0;i<n.length;i++)if(!r[i]&&M(t,n[i])){e=i;break}if(e<0)return!1;r[e]=1}return!0}function M(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=_(e),r=_(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return n&&r?_e(e,t):!1;if(n=v(e),r=v(t),n||r){if(!n||!r)return!1;if(n=f(e),r=f(t),n||r||(n=p(e),r=p(t),n||r))return n&&r?ve(e,t):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!M(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>M(e,t))}var P=e=>!!(e&&e.__v_isRef===!0),F=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?P(e)?F(e.value):JSON.stringify(e,ye,2):String(e),ye=(e,t)=>P(t)?ye(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[be(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>be(e))}:_(t)?be(t):v(t)&&!d(t)&&!C(t)?String(t):t,be=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,I,xe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&I&&(I.active?(this.parent=I,this.index=(I.scopes||(I.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=I;try{return I=this,e()}finally{I=t}}}on(){++this._on===1&&(this.prevScope=I,I=this)}off(){if(this._on>0&&--this._on===0){if(I===this)I=this.prevScope;else{let e=I;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Se(){return I}var L,Ce=new WeakSet,we=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,I&&(I.active?I.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ce.has(this)&&(Ce.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||De(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ze(this),Ae(this);let e=L,t=z;L=this,z=!0;try{return this.fn()}finally{je(this),L=e,z=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Pe(e);this.deps=this.depsTail=void 0,ze(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ce.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Me(this)&&this.run()}get dirty(){return Me(this)}},Te=0,R,Ee;function De(e,t=!1){if(e.flags|=8,t){e.next=Ee,Ee=e;return}e.next=R,R=e}function Oe(){Te++}function ke(){if(--Te>0)return;if(Ee){let e=Ee;for(Ee=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;R;){let t=R;for(R=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ae(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function je(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Pe(r),Fe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Me(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ne(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ne(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Be)||(e.globalVersion=Be,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Me(e))))return;e.flags|=2;let t=e.dep,n=L,r=z;L=e,z=!0;try{Ae(e);let n=e.fn(e._value);(t.version===0||k(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{L=n,z=r,je(e),e.flags&=-3}}function Pe(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Pe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Fe(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var z=!0,Ie=[];function Le(){Ie.push(z),z=!1}function Re(){let e=Ie.pop();z=e===void 0||e}function ze(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=L;L=void 0;try{t()}finally{L=e}}}var Be=0,Ve=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},He=class{constructor(e){this.computed=e,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(e){if(!L||!z||L===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==L)t=this.activeLink=new Ve(L,this),L.deps?(t.prevDep=L.depsTail,L.depsTail.nextDep=t,L.depsTail=t):L.deps=L.depsTail=t,Ue(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=L.depsTail,t.nextDep=void 0,L.depsTail.nextDep=t,L.depsTail=t,L.deps===t&&(L.deps=e)}return t}trigger(e){this.version++,Be++,this.notify(e)}notify(e){Oe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ke()}}};function Ue(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Ue(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var We=new WeakMap,Ge=Symbol(``),Ke=Symbol(``),qe=Symbol(``);function B(e,t,n){if(z&&L){let t=We.get(e);t||We.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new He),r.map=t,r.key=n),r.track()}}function Je(e,t,n,r,i,a){let o=We.get(e);if(!o){Be++;return}let s=e=>{e&&e.trigger()};if(Oe(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===qe||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(qe)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Ge)),f(e)&&s(o.get(Ke)));break;case`delete`:i||(s(o.get(Ge)),f(e)&&s(o.get(Ke)));break;case`set`:f(e)&&s(o.get(Ge))}}ke()}function Ye(e){let t=V(e);return t===e?t:(B(t,`iterate`,qe),Pt(e)?t:t.map(Lt))}function Xe(e){return B(e=V(e),`iterate`,qe),e}function Ze(e,t){return Nt(e)?Rt(Mt(e)?Lt(t):t):Lt(t)}var Qe={__proto__:null,[Symbol.iterator](){return $e(this,Symbol.iterator,e=>Ze(this,e))},concat(...e){return Ye(this).concat(...e.map(e=>d(e)?Ye(e):e))},entries(){return $e(this,`entries`,e=>(e[1]=Ze(this,e[1]),e))},every(e,t){return tt(this,`every`,e,t,void 0,arguments)},filter(e,t){return tt(this,`filter`,e,t,e=>e.map(e=>Ze(this,e)),arguments)},find(e,t){return tt(this,`find`,e,t,e=>Ze(this,e),arguments)},findIndex(e,t){return tt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return tt(this,`findLast`,e,t,e=>Ze(this,e),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 rt(this,`includes`,e)},indexOf(...e){return rt(this,`indexOf`,e)},join(e){return Ye(this).join(e)},lastIndexOf(...e){return rt(this,`lastIndexOf`,e)},map(e,t){return tt(this,`map`,e,t,void 0,arguments)},pop(){return it(this,`pop`)},push(...e){return it(this,`push`,e)},reduce(e,...t){return nt(this,`reduce`,e,t)},reduceRight(e,...t){return nt(this,`reduceRight`,e,t)},shift(){return it(this,`shift`)},some(e,t){return tt(this,`some`,e,t,void 0,arguments)},splice(...e){return it(this,`splice`,e)},toReversed(){return Ye(this).toReversed()},toSorted(e){return Ye(this).toSorted(e)},toSpliced(...e){return Ye(this).toSpliced(...e)},unshift(...e){return it(this,`unshift`,e)},values(){return $e(this,`values`,e=>Ze(this,e))}};function $e(e,t,n){let r=Xe(e),i=r[t]();return r!==e&&!Pt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var et=Array.prototype;function tt(e,t,n,r,i,a){let o=Xe(e),s=o!==e&&!Pt(e),c=o[t];if(c!==et[t]){let t=c.apply(e,a);return s?Lt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,Ze(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function nt(e,t,n,r){let i=Xe(e),a=i!==e&&!Pt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=Ze(e,t)),n.call(this,t,Ze(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?Ze(e,c):c}function rt(e,t,n){let r=V(e);B(r,`iterate`,qe);let i=r[t](...n);return(i===-1||i===!1)&&Ft(n[0])?(n[0]=V(n[0]),r[t](...n)):i}function it(e,t,n=[]){Le(),Oe();let r=V(e)[t].apply(e,n);return ke(),Re(),r}var at=e(`__proto__,__v_isRef,__isVue`),ot=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function st(e){_(e)||(e=String(e));let t=V(this);return B(t,`has`,e),t.hasOwnProperty(e)}var ct=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Et:Tt:i?wt:Ct).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=Qe[t]))return e;if(t===`hasOwnProperty`)return st}let o=Reflect.get(e,t,zt(e)?e:n);if((_(t)?ot.has(t):at(t))||(r||B(e,`get`,t),i))return o;if(zt(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?At(e):e}return v(o)?r?At(o):Ot(o):o}},lt=class extends ct{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Nt(i);if(!Pt(n)&&!Nt(n)&&(i=V(i),n=V(n)),!a&&zt(i)&&!zt(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,zt(e)?e:r);return e===V(r)&&s&&(o?k(n,i)&&Je(e,`set`,t,n,i):Je(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&Je(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!ot.has(t))&&B(e,`has`,t),n}ownKeys(e){return B(e,`iterate`,d(e)?`length`:Ge),Reflect.ownKeys(e)}},ut=class extends ct{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},dt=new lt,ft=new ut,pt=new lt(!0),mt=e=>e,ht=e=>Reflect.getPrototypeOf(e);function gt(e,t,n){return function(...r){let i=this.__v_raw,a=V(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?mt:t?Rt:Lt;return!t&&B(a,`iterate`,l?Ke:Ge),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function _t(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function vt(e,t){let n={get(n){let r=this.__v_raw,i=V(r),a=V(n);e||(k(n,a)&&B(i,`get`,n),B(i,`get`,a));let{has:o}=ht(i),s=t?mt:e?Rt:Lt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&B(V(t),`iterate`,Ge),t.size},has(t){let n=this.__v_raw,r=V(n),i=V(t);return e||(k(t,i)&&B(r,`has`,t),B(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=V(a),s=t?mt:e?Rt:Lt;return!e&&B(o,`iterate`,Ge),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:_t(`add`),set:_t(`set`),delete:_t(`delete`),clear:_t(`clear`)}:{add(e){let n=V(this),r=ht(n),i=V(e),a=!t&&!Pt(e)&&!Nt(e)?i:e;return r.has.call(n,a)||k(e,a)&&r.has.call(n,e)||k(i,a)&&r.has.call(n,i)||(n.add(a),Je(n,`add`,a,a)),this},set(e,n){!t&&!Pt(n)&&!Nt(n)&&(n=V(n));let r=V(this),{has:i,get:a}=ht(r),o=i.call(r,e);o||=(e=V(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?k(n,s)&&Je(r,`set`,e,n,s):Je(r,`add`,e,n),this},delete(e){let t=V(this),{has:n,get:r}=ht(t),i=n.call(t,e);i||=(e=V(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&Je(t,`delete`,e,void 0,a),o},clear(){let e=V(this),t=e.size!==0,n=e.clear();return t&&Je(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=gt(r,e,t)}),n}function yt(e,t){let n=vt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var bt={get:yt(!1,!1)},xt={get:yt(!1,!0)},St={get:yt(!0,!1)},Ct=new WeakMap,wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap;function Dt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ot(e){return Nt(e)?e:jt(e,!1,dt,bt,Ct)}function kt(e){return jt(e,!1,pt,xt,wt)}function At(e){return jt(e,!0,ft,St,Tt)}function jt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Dt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Mt(e){return Nt(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function Nt(e){return!!(e&&e.__v_isReadonly)}function Pt(e){return!!(e&&e.__v_isShallow)}function Ft(e){return e?!!e.__v_raw:!1}function V(e){let t=e&&e.__v_raw;return t?V(t):e}function It(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&A(e,`__v_skip`,!0),e}var Lt=e=>v(e)?Ot(e):e,Rt=e=>v(e)?At(e):e;function zt(e){return e?e.__v_isRef===!0:!1}function H(e){return Bt(e,!1)}function Bt(e,t){return zt(e)?e:new Vt(e,t)}var Vt=class{constructor(e,t){this.dep=new He,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:V(e),this._value=t?e:Lt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Pt(e)||Nt(e);e=n?e:V(e),k(e,t)&&(this._rawValue=e,this._value=n?e:Lt(e),this.dep.trigger())}};function U(e){return zt(e)?e.value:e}var Ht={get:(e,t,n)=>t===`__v_raw`?e:U(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return zt(i)&&!zt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ut(e){return Mt(e)?e:new Proxy(e,Ht)}var Wt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new He(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Be-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&L!==this)return De(this,!0),!0}get value(){let e=this.dep.track();return Ne(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Gt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Wt(r,i,n)}var Kt={},qt=new WeakMap,Jt=void 0;function Yt(e,t=!1,n=Jt){if(n){let t=qt.get(n);t||qt.set(n,t=[]),t.push(e)}}function Xt(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:Pt(e)||o===!1||o===0?Zt(e,1):Zt(e),m,g,_,v,y=!1,b=!1;if(zt(e)?(g=()=>e.value,y=Pt(e)):Mt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Mt(e)||Pt(e)),g=()=>e.map(e=>{if(zt(e))return e.value;if(Mt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Le();try{_()}finally{Re()}}let t=Jt;Jt=m;try{return f?f(e,3,[v]):e(v)}finally{Jt=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>Zt(e(),t)}let x=Se(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill(Kt):Kt,w=e=>{if(m.flags&1&&(m.dirty||e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>k(e,C[t])):k(t,C))){_&&_();let e=Jt;Jt=m;try{let e=[t,C===Kt?void 0:b&&C[0]===Kt?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{Jt=e}}}else m.run()}};return u&&u(w),m=new we(g),m.scheduler=l?()=>l(w,!1):w,v=e=>Yt(e,!1,m),_=m.onStop=()=>{let e=qt.get(m);if(e){if(f)f(e,4);else for(let t of e)t();qt.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function Zt(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,zt(e))Zt(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)Zt(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{Zt(e,t,n)});else if(C(e)){for(let r in e)Zt(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Zt(e[r],t,n)}return e}function Qt(e,t,n,r){try{return r?e(...r):e()}catch(e){en(e,t,n)}}function $t(e,t,n,r){if(h(e)){let i=Qt(e,t,n,r);return i&&y(i)&&i.catch(e=>{en(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push($t(e[a],t,n,r));return i}}function en(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){Le(),Qt(o,null,10,[e,i,a]),Re();return}}tn(e,r,a,i,s)}function tn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var nn=[],rn=-1,an=[],on=null,sn=0,cn=Promise.resolve(),ln=null;function un(e){let t=ln||cn;return e?t.then(this?e.bind(this):e):t}function dn(e){let t=rn+1,n=nn.length;for(;t<n;){let r=t+n>>>1,i=nn[r],a=_n(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function fn(e){if(!(e.flags&1)){let t=_n(e),n=nn[nn.length-1];!n||!(e.flags&2)&&t>=_n(n)?nn.push(e):nn.splice(dn(t),0,e),e.flags|=1,pn()}}function pn(){ln||=cn.then(vn)}function mn(e){if(!d(e))on&&e.id===-1?on.splice(sn+1,0,e):e.flags&1||(an.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)an.push(e[t]);pn()}function hn(e,t,n=rn+1){for(;n<nn.length;n++){let t=nn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;nn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function gn(e){if(an.length){let e=[...new Set(an)].sort((e,t)=>_n(e)-_n(t));if(an.length=0,on){for(let t=0;t<e.length;t++)on.push(e[t]);return}for(on=e,sn=0;sn<on.length;sn++){let e=on[sn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}on=null,sn=0}}var _n=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vn(e){try{for(rn=0;rn<nn.length;rn++){let e=nn[rn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Qt(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;rn<nn.length;rn++){let e=nn[rn];e&&(e.flags&=-2)}rn=-1,nn.length=0,gn(e),ln=null,(nn.length||an.length)&&vn(e)}}var yn=null,bn=null;function xn(e){let t=yn;return yn=e,bn=e&&e.type.__scopeId||null,t}function Sn(e,t=yn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Vi(-1);let i=xn(t),a=Li.length,o;try{o=e(...n)}finally{for(let e=Li.length;e>a;e--)zi();xn(i),r._d&&Vi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function W(e,n){if(yn===null)return e;let r=ya(yn),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(h(a)&&(a={mounted:a,updated:a}),a.deep&&Zt(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Cn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Le(),$t(c,n,8,[e.el,s,e,t]),Re())}}function wn(e,t){if(aa){let n=aa.provides,r=aa.parent&&aa.parent.provides;r===n&&(n=aa.provides=Object.create(r)),n[e]=t}}function Tn(e,t,n=!1){let r=oa();if(r||Wr){let i=Wr?Wr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&h(t)?t.call(r&&r.proxy):t}}var En=Symbol.for(`v-scx`),Dn=()=>Tn(En);function On(e,t,n){return kn(e,t,n)}function kn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(fa){if(c===`sync`){let e=Dn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=aa;u.call=(e,t,n)=>$t(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{xi(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():fn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Xt(e,n,u);return fa&&(f?f.push(h):d&&h()),h}function An(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?jn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=la(this),s=kn(i,a.bind(r),n);return o(),s}function jn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Mn=Symbol(`_vte`),Nn=e=>e.__isTeleport,Pn=Symbol(`_leaveCb`),Fn=Symbol(`_enterCb`);function In(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ur(()=>{e.isMounted=!0}),pr(()=>{e.isUnmounting=!0}),e}var Ln=[Function,Array],Rn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ln,onEnter:Ln,onAfterEnter:Ln,onEnterCancelled:Ln,onBeforeLeave:Ln,onLeave:Ln,onAfterLeave:Ln,onLeaveCancelled:Ln,onBeforeAppear:Ln,onAppear:Ln,onAfterAppear:Ln,onAppearCancelled:Ln},zn=e=>{let t=e.subTree;return t.component?zn(t.component):t},Bn={name:`BaseTransition`,props:Rn,setup(e,{slots:t}){let n=oa(),r=In();return()=>{let i=t.default&&Jn(t.default(),!0),a=i&&i.length?Vn(i):n.subTree?Z():void 0;if(!a)return;let o=V(e),{mode:s}=o;if(r.isLeaving)return Gn(a);let c=Kn(a);if(!c)return Gn(a);let l=Wn(c,o,r,n,e=>l=e);c.type!==Fi&&qn(c,l);let u=n.subTree&&Kn(n.subTree);if(u&&u.type!==Fi&&!Gi(u,c)&&zn(n).type!==Fi){let e=Wn(u,o,r,n);if(qn(u,e),s===`out-in`&&c.type!==Fi)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Gn(a);s===`in-out`&&c.type!==Fi?e.delayLeave=(e,t,n)=>{let i=Un(r,u);i[String(u.key)]=u,e[Pn]=()=>{t(),e[Pn]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function Vn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Fi){t=n;break}}return t}var Hn=Bn;function Un(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Wn(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=Un(n,e),C=(e,t)=>{e&&$t(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=_||c;else return}t[Pn]&&t[Pn](!0);let i=S[x];i&&Gi(e,i)&&i.el[Pn]&&i.el[Pn](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted){if(a)r=v||l,i=y||u,o=b||f;else return}let s=!1;t[Fn]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Fn]=void 0)};let c=t[Fn].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Fn]&&t[Fn](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[Pn]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[Pn]=void 0,S[i]===e&&delete S[i])};let o=t[Pn].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Wn(e,t,n,r,i);return i&&i(a),a}};return T}function Gn(e){if(nr(e))return e=Xi(e),e.children=null,e}function Kn(e){if(!nr(e))return Nn(e.type)&&e.children?Vn(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function qn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;qn(Nn(n.type)&&Kn(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Jn(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===G?(o.patchFlag&128&&i++,r=r.concat(Jn(o.children,t,s))):(t||o.type!==Fi)&&r.push(s==null?o:Xi(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Yn(e,t){return h(e)?s({name:e.name},t,{setup:e}):e}function Xn(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Zn(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Qn=new WeakMap;function $n(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>$n(e,n&&(d(n)?n[t]:n),r,a,o));return}if(tr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&$n(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?ya(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=V(v),b=v===t?i:e=>!Zn(_,e)&&u(y,e),x=(e,t)=>!(t&&Zn(_,t));if(m!=null&&m!==p){if(er(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(zt(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))Qt(p,f,12,[l,_]);else{let t=g(p),n=zt(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),Qn.delete(e)};t.id=-1,Qn.set(e,t),xi(t,r)}else er(e),i()}}}function er(e){let t=Qn.get(e);t&&(t.flags|=8,Qn.delete(e))}ce().requestIdleCallback,ce().cancelIdleCallback;var tr=e=>!!e.type.__asyncLoader,nr=e=>e.type.__isKeepAlive;function rr(e,t){ar(e,`a`,t)}function ir(e,t){ar(e,`da`,t)}function ar(e,t,n=aa){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(sr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)nr(e.parent.vnode)&&or(r,t,n,e),e=e.parent}}function or(e,t,n,r){let i=sr(t,e,r,!0);mr(()=>{c(r[t],i)},n)}function sr(e,t,n=aa,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Le();let i=la(n),a=$t(t,n,e,r);return i(),Re(),a};return r?i.unshift(a):i.push(a),a}}var cr=e=>(t,n=aa)=>{(!fa||e===`sp`)&&sr(e,(...e)=>t(...e),n)},lr=cr(`bm`),ur=cr(`m`),dr=cr(`bu`),fr=cr(`u`),pr=cr(`bum`),mr=cr(`um`),hr=cr(`sp`),gr=cr(`rtg`),_r=cr(`rtc`);function vr(e,t=aa){sr(`ec`,e,t)}var yr=Symbol.for(`v-ndc`);function br(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Mt(e),r=!1,s=!1;n&&(r=!Pt(e),s=Nt(e),e=Xe(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Rt(Lt(e[n])):Lt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(v(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}var xr=e=>e?da(e)?ya(e):xr(e.parent):null,Sr=s(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=>xr(e.parent),$root:e=>xr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>jr(e),$forceUpdate:e=>e.f||=()=>{fn(e.update)},$nextTick:e=>e.n||=un.bind(e.proxy),$watch:e=>An.bind(e)}),Cr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),wr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Cr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else Er&&(s[n]=0)}let d=Sr[n],f,p;if(d)return n===`$attrs`&&B(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Cr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Cr(n,c)||u(o,c)||u(i,c)||u(Sr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Tr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Er=!0;function Dr(e){let t=jr(e),n=e.proxy,i=e.ctx;Er=!1,t.beforeCreate&&kr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:D,inheritAttrs:O,components:re,directives:k,filters:ie}=t;if(u&&Or(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Ot(t))}if(Er=!0,o)for(let e in o){let t=o[e],a=xa({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Ar(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{wn(t,e[t])})}f&&kr(f,e,`c`);function A(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(A(lr,p),A(ur,m),A(dr,g),A(fr,_),A(rr,y),A(ir,b),A(vr,E),A(_r,ee),A(gr,te),A(pr,S),A(mr,w),A(hr,ne),d(D)){if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}T&&e.render===r&&(e.render=T),O!=null&&(e.inheritAttrs=O),re&&(e.components=re),k&&(e.directives=k),ne&&Xn(e)}function Or(e,t,n=r){d(e)&&(e=Ir(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Tn(r.from||n,r.default,!0):Tn(r.from||n):Tn(r),zt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function kr(e,t,n){$t(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ar(e,t,n,r){let i=r.includes(`.`)?jn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&On(i,n)}else if(h(e))On(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Ar(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&On(i,r,e)}}}function jr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Mr(c,e,o,!0)),Mr(c,t,o)),v(t)&&a.set(t,c),c}function Mr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Mr(e,a,n,!0),i&&i.forEach(t=>Mr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Nr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Nr={data:Pr,props:zr,emits:zr,methods:Rr,computed:Rr,beforeCreate:Lr,created:Lr,beforeMount:Lr,mounted:Lr,beforeUpdate:Lr,updated:Lr,beforeDestroy:Lr,beforeUnmount:Lr,destroyed:Lr,unmounted:Lr,activated:Lr,deactivated:Lr,errorCaptured:Lr,serverPrefetch:Lr,components:Rr,directives:Rr,watch:Br,provide:Pr,inject:Fr};function Pr(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function Fr(e,t){return Rr(Ir(e),Ir(t))}function Ir(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Lr(e,t){return e?[...new Set([].concat(e,t))]:t}function Rr(e,t){return e?s(Object.create(null),e,t):t}function zr(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),Tr(e),Tr(t??{})):t}function Br(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=Lr(e[r],t[r]);return n}function Vr(){return{app:null,config:{isNativeTag:i,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}}var Hr=0;function Ur(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=Vr(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Hr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ca,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||Y(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,ya(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&($t(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=Wr;Wr=l;try{return e()}finally{Wr=t}}};return l}}var Wr=null,Gr=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function Kr(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&Gr(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=a.map(ae)));let c,l=i[c=re(n)]||i[c=re(E(n))];!l&&o&&(l=i[c=re(D(n))]),l&&$t(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,$t(u,e,6,a)}}var qr=new WeakMap;function Jr(e,t,n=!1){let r=n?qr:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=Jr(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Yr(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}function Xr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=xn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Zi(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Zi(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Zr(c)}}catch(t){Li.length=0,en(t,e,1),v=Y(Fi)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Qr(y,a)),b=Xi(b,y,!1,!0))}return n.dirs&&(b=Xi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&qn(Nn(b.type)&&Kn(b)||b,n.transition),v=b,xn(_),v}var Zr=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Qr=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function $r(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ei(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(ti(o,r,n)&&!Yr(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||ei(r,o,l):!!o;return!1}function ei(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(ti(t,e,a)&&!Yr(n,a))return!0}return!1}function ti(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!M(r,i):r!==i}function ni({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var ri={},ii=()=>Object.create(ri),ai=e=>Object.getPrototypeOf(e)===ri;function oi(e,t,n,r=!1){let i={},a=ii();e.propsDefaults=Object.create(null),ci(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:kt(i):e.type.props?i:a,e.attrs=a}function si(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=V(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Yr(e.emitsOptions,o))continue;let d=t[o];if(c){if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=E(o);i[t]=li(c,s,t,d,e,!1)}}else d!==a[o]&&(a[o]=d,l=!0)}}}else{ci(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=D(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=li(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&Je(e.attrs,`set`,``)}function ci(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(T(t))continue;let l=n[t],d;a&&u(a,d=E(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:Yr(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=V(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=li(a,n,s,i[s],e,!u(i,s))}}return s}function li(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=la(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===D(n))&&(r=!0))}return r}var ui=new WeakMap;function di(e,r,i=!1){let a=i?ui:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=di(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=E(c[e]);fi(n)&&(l[n]=t)}else if(c)for(let e in c){let t=E(e);if(fi(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function fi(e){return e[0]!==`$`&&!T(e)}var pi=e=>e===`_`||e===`_ctx`||e===`$stable`,mi=e=>d(e)?e.map(Zi):[Zi(e)],hi=(e,t,n)=>{if(t._n)return t;let r=Sn((...e)=>mi(t(...e)),n);return r._c=!1,r},gi=(e,t,n)=>{let r=e._ctx;for(let n in e){if(pi(n))continue;let i=e[n];if(h(i))t[n]=hi(n,i,r);else if(i!=null){let e=mi(i);t[n]=()=>e}}},_i=(e,t)=>{let n=mi(t);e.slots.default=()=>n},vi=(e,t,n)=>{for(let r in t)(n||!pi(r))&&(e[r]=t[r])},yi=(e,t,n)=>{let r=e.slots=ii();if(e.vnode.shapeFlag&32){let e=t._;e?(vi(r,t,n),n&&A(r,`_`,e,!0)):gi(t,r)}else t&&_i(e,t)},bi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:vi(a,n,r):(o=!n.$stable,gi(n,a)),s=n}else n&&(_i(e,n),s={default:1});if(o)for(let e in a)!pi(e)&&s[e]==null&&delete a[e]},xi=Ni;function Si(e){return Ci(e)}function Ci(e,i){let a=ce();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Gi(e,t)&&(r=_e(e),pe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Pi:y(e,t,n,r);break;case Fi:b(e,t,n,r);break;case Ii:e??x(t,n,r,o);break;case G:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?k(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,N)}u!=null&&i?$n(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&$n(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,wi(e,a),s,u),_&&Cn(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ta(f,r,e)}_&&Cn(e,null,r,`beforeMount`);let v=Ei(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&xi(()=>{try{f&&ta(f,r,e),v&&g.enter(d),_&&Cn(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Mi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;te(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Qi(e[l]):Zi(e[l]);v(null,c,t,n,r,i,a,o,s)}},ne=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Ti(r,!1),(g=h.onVnodeBeforeUpdate)&&ta(g,r,n,e),f&&Cn(n,e,r,`beforeUpdate`),r&&Ti(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?D(e.dynamicChildren,d,l,r,i,wi(n,a),o):s||le(e,n,l,null,r,i,wi(n,a),o,!1),u>0){if(u&16)O(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else!s&&d==null&&O(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&xi(()=>{g&&ta(g,r,n,e),f&&Cn(n,e,r,`updated`)},i)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===G||!Gi(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},O=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},re=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Di(e,t,!0)):le(e,t,n,f,i,a,s,c,l)},k=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):A(t,n,r,i,a,o,c):ae(e,t,c)},A=(e,t,n,r,i,a,o)=>{let s=e.component=ia(e,r,i);if(nr(e)&&(s.ctx.renderer=N),pa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=Y(Fi);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},ae=(e,t,n)=>{let r=t.component=e.component;if($r(e,t,n)){if(r.asyncDep&&!r.asyncResolved){se(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},oe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=ki(e);if(n){t&&(t.el=c.el,se(e,t,o)),n.asyncDep.then(()=>{xi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ti(e,!1),t?(t.el=c.el,se(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ta(d,s,t,c),Ti(e,!0);let f=Xr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&ni(e,f.el),r&&xi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&xi(()=>ta(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=tr(t);if(Ti(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ta(o,d,t),Ti(e,!0),s&&F){let t=()=>{e.subTree=Xr(e),F(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Xr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&xi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;xi(()=>ta(o,d,e),i)}(t.shapeFlag&256||d&&tr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&xi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new we(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>fn(u),Ti(e,!0),l()},se=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,si(e,t.props,r,n),bi(e,t.children,n),Le(),hn(e),Re()},le=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){de(l,d,n,r,i,a,o,s,c);return}if(f&256){ue(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?de(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},ue=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let n=t[p]=l?Qi(t[p]):Zi(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?ge(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},de=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Qi(t[u]):Zi(t[u]);if(Gi(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Qi(t[p]):Zi(t[p]);if(Gi(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?Qi(t[u]):Zi(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)pe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Qi(t[u]):Zi(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){pe(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Gi(n,t[_])){i=_;break}i===void 0?pe(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?Oi(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||ji(f):i;C[u]===0?v(null,n,r,p,a,o,s,c,l):x&&(_<0||u!==w[_]?fe(n,r,p,2):_--)}}},fe=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){fe(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,N);return}if(c===G){o(a,t,n);for(let e=0;e<u.length;e++)fe(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Ii){S(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Pn]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),xi(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Pn];a._isLeaving&&a[Pn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},pe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Le(),$n(s,null,n,e,!0),Re()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!tr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ta(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Cn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,N,r):l&&!l.hasOnce&&(a!==G||d>0&&d&64)?ge(l,t,n,!1,!0):(a===G&&d&384||!i&&u&16)&&ge(c,t,n),r&&j(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&xi(()=>{_&&ta(_,t,e),h&&Cn(e,null,t,`unmounted`),v&&(e.el=null)},n)},j=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===G){me(n,r);return}if(t===Ii){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ai(c),Ai(l),r&&ie(r),i.stop(),a&&(a.flags|=8,pe(o,e,t,n)),s&&xi(s,t),xi(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)pe(e[o],t,n,r,i)},_e=e=>{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Mn];return n?h(n):t},ve=!1,M=(e,t,n)=>{let r;e==null?t._vnode&&(pe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,hn(r),gn(),!1)},N={p:v,um:pe,m:fe,r:j,mt:A,mc:E,pc:le,pbc:D,n:_e,o:e},P,F;return i&&([P,F]=i(N)),{render:M,hydrate:P,createApp:Ur(M,P)}}function wi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Ti({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ei(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Di(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Qi(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Di(t,a)),a.type===Pi&&(a.patchFlag===-1&&(a=i[e]=Qi(a)),a.el=t.el),a.type===Fi&&!a.el&&(a.el=t.el)}}function Oi(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function ki(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ki(t)}function Ai(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ji(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?ji(t.subTree):null}var Mi=e=>e.__isSuspense;function Ni(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):mn(e)}var G=Symbol.for(`v-fgt`),Pi=Symbol.for(`v-txt`),Fi=Symbol.for(`v-cmt`),Ii=Symbol.for(`v-stc`),Li=[],Ri=null;function K(e=!1){Li.push(Ri=e?null:[])}function zi(){Li.pop(),Ri=Li[Li.length-1]||null}var Bi=1;function Vi(e,t=!1){Bi+=e,e<0&&Ri&&t&&(Ri.hasOnce=!0)}function Hi(e){return e.dynamicChildren=Bi>0?Ri||n:null,zi(),Bi>0&&Ri&&Ri.push(e),e}function q(e,t,n,r,i,a){return Hi(J(e,t,n,r,i,a,!0))}function Ui(e,t,n,r,i){return Hi(Y(e,t,n,r,i,!0))}function Wi(e){return e?e.__v_isVNode===!0:!1}function Gi(e,t){return e.type===t.type&&e.key===t.key}var Ki=({key:e})=>e??null,qi=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||zt(e)||h(e)?{i:yn,r:e,k:t,f:!!n}:e);function J(e,t=null,n=null,r=0,i=null,a=e===G?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ki(t),ref:t&&qi(t),scopeId:bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yn};return s?($i(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),Bi>0&&!o&&Ri&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ri.push(c),c}var Y=Ji;function Ji(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===yr)&&(e=Fi),Wi(e)){let r=Xi(e,t,!0);return n&&$i(r,n),Bi>0&&!a&&Ri&&(r.shapeFlag&6?Ri[Ri.indexOf(e)]=r:Ri.push(r)),r.patchFlag=-2,r}if(ba(e)&&(e=e.__vccOpts),t){t=Yi(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=j(e)),v(n)&&(Ft(n)&&!d(n)&&(n=s({},n)),t.style=le(n))}let o=g(e)?1:Mi(e)?128:Nn(e)?64:v(e)?4:h(e)?2:0;return J(e,t,n,r,i,o,a,!0)}function Yi(e){return e?Ft(e)||ai(e)?s({},e):e:null}function Xi(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ea(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ki(l),ref:t&&t.ref?n&&a?d(a)?a.concat(qi(t)):[a,qi(t)]:qi(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==G?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xi(e.ssContent),ssFallback:e.ssFallback&&Xi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&qn(u,c.clone(u)),u}function X(e=` `,t=0){return Y(Pi,null,e,t)}function Z(e=``,t=!1){return t?(K(),Ui(Fi,null,e)):Y(Fi,null,e)}function Zi(e){return e==null||typeof e==`boolean`?Y(Fi):d(e)?Y(G,null,e.slice()):Wi(e)?Qi(e):Y(Pi,null,String(e))}function Qi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xi(e)}function $i(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),$i(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!ai(t)?t._ctx=yn:r===3&&yn&&(yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){$i(e,{default:t});return}t={default:t,_ctx:yn},n=32}else t=String(t),r&64?(n=16,t=[X(t)]):n=8;e.children=t,e.shapeFlag|=n}function ea(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=j([t.class,r.class]));else if(e===`style`)t.style=le([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function ta(e,t,n,r=null){$t(e,t,7,[n,r])}var na=Vr(),ra=0;function ia(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||na,o={uid:ra++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new xe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:di(i,a),emitsOptions:Jr(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=n?n.root:o,o.emit=Kr.bind(null,o),e.ce&&e.ce(o),o}var aa=null,oa=()=>aa||yn,sa,ca;{let e=ce(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};sa=t(`__VUE_INSTANCE_SETTERS__`,e=>aa=e),ca=t(`__VUE_SSR_SETTERS__`,e=>fa=e)}var la=e=>{let t=aa;return sa(e),e.scope.on(),()=>{e.scope.off(),sa(t)}},ua=()=>{aa&&aa.scope.off(),sa(null)};function da(e){return e.vnode.shapeFlag&4}var fa=!1;function pa(e,t=!1,n=!1){t&&ca(t);let{props:r,children:i}=e.vnode,a=da(e);oi(e,r,a,t),yi(e,i,n||t);let o=a?ma(e,t):void 0;return t&&ca(!1),o}function ma(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,wr);let{setup:r}=n;if(r){Le();let n=e.setupContext=r.length>1?va(e):null,i=la(e),a=Qt(r,e,0,[e.props,n]),o=y(a);if(Re(),i(),(o||e.sp)&&!tr(e)&&Xn(e),o){if(a.then(ua,ua),t)return a.then(n=>{ca(!0);try{ha(e,n,t)}finally{ca(!1)}}).catch(t=>{en(t,e,0)});e.asyncDep=a}else ha(e,a,t)}else ga(e,t)}function ha(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Ut(t)),ga(e,n)}function ga(e,t,n){let i=e.type;e.render||=i.render||r;{let t=la(e);Le();try{Dr(e)}finally{Re(),t()}}}var _a={get(e,t){return B(e,`get`,``),e[t]}};function va(e){return{attrs:new Proxy(e.attrs,_a),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function ya(e){return e.exposed?e.exposeProxy||=new Proxy(Ut(It(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Sr)return Sr[n](e)},has(e,t){return t in e||t in Sr}}):e.proxy}function ba(e){return h(e)&&`__vccOpts`in e}var xa=(e,t)=>Gt(e,t,fa);function Sa(e,t,n){try{Vi(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Wi(t)?Y(e,null,[t]):Y(e,t):Y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wi(n)&&(n=[n]),Y(e,t,n))}finally{Vi(1)}}var Ca=`3.5.42`,wa=void 0,Ta=typeof window<`u`&&window.trustedTypes;if(Ta)try{wa=Ta.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ea=wa?e=>wa.createHTML(e):e=>e,Da=`http://www.w3.org/2000/svg`,Oa=`http://www.w3.org/1998/Math/MathML`,ka=typeof document<`u`?document:null,Aa=ka&&ka.createElement(`template`),ja={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?ka.createElementNS(Da,e):t===`mathml`?ka.createElementNS(Oa,e):n?ka.createElement(e,{is:n}):ka.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>ka.createTextNode(e),createComment:e=>ka.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ka.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Aa.innerHTML=Ea(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Aa.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ma=`transition`,Na=`animation`,Pa=Symbol(`_vtc`),Fa={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ia=s({},Rn,Fa),La=(e=>(e.displayName=`Transition`,e.props=Ia,e))((e,{slots:t})=>Sa(Hn,Ba(e),t)),Ra=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},za=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function Ba(e){let t={};for(let n in e)n in Fa||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Va(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,ee=(e,t,n,r)=>{e._enterCancelled=r,Wa(e,t?d:c),Wa(e,t?u:o),n&&n()},te=(e,t)=>{e._isLeaving=!1,Wa(e,f),Wa(e,m),Wa(e,p),t&&t()},E=e=>(t,n)=>{let i=e?w:y,o=()=>ee(t,e,n);Ra(i,[t,o]),Ga(()=>{Wa(t,e?l:a),Ua(t,e?d:c),za(i)||qa(t,r,g,o)})};return s(t,{onBeforeEnter(e){Ra(v,[e]),Ua(e,a),Ua(e,o)},onBeforeAppear(e){Ra(C,[e]),Ua(e,l),Ua(e,u)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>te(e,t);Ua(e,f),e._enterCancelled?(Ua(e,p),Za(e)):(Za(e),Ua(e,p)),Ga(()=>{e._isLeaving&&(Wa(e,f),Ua(e,m),za(x)||qa(e,r,_,n))}),Ra(x,[e,n])},onEnterCancelled(e){ee(e,!1,void 0,!0),Ra(b,[e])},onAppearCancelled(e){ee(e,!0,void 0,!0),Ra(T,[e])},onLeaveCancelled(e){te(e),Ra(S,[e])}})}function Va(e){if(e==null)return null;if(v(e))return[Ha(e.enter),Ha(e.leave)];{let t=Ha(e);return[t,t]}}function Ha(e){return oe(e)}function Ua(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Pa]||(e[Pa]=new Set)).add(t)}function Wa(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Pa];n&&(n.delete(t),n.size||(e[Pa]=void 0))}function Ga(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ka=0;function qa(e,t,n,r){let i=e._endId=++Ka,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ja(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Ja(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Ma}Delay`),a=r(`${Ma}Duration`),o=Ya(i,a),s=r(`${Na}Delay`),c=r(`${Na}Duration`),l=Ya(s,c),u=null,d=0,f=0;t===Ma?o>0&&(u=Ma,d=o,f=a.length):t===Na?l>0&&(u=Na,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Ma:Na:null,f=u?u===Ma?a.length:c.length:0);let p=u===Ma&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ma}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ya(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Xa(t)+Xa(e[n])))}function Xa(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Za(e){return(e?e.ownerDocument:document).body.offsetHeight}function Qa(e,t,n){let r=e[Pa];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var $a=Symbol(`_vod`),eo=Symbol(`_vsh`),to={name:`show`,beforeMount(e,{value:t},{transition:n}){e[$a]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):no(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),no(e,!0),r.enter(e)):r.leave(e,()=>{no(e,!1)}):no(e,t))},beforeUnmount(e,{value:t}){no(e,t)}};function no(e,t){e.style.display=t?e[$a]:`none`,e[eo]=!t}var ro=Symbol(``),io=/(?:^|;)\s*display\s*:/;function ao(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??so(r,t,``)}else for(let e in t)n[e]??so(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?so(r,i,``):fo(e,i,!g(t)&&t?t[i]:void 0,o)||so(r,i,o)}}else if(i){if(t!==n){let e=r[ro];e&&(n+=`;`+e),r.cssText=n,a=io.test(n)}}else t&&e.removeAttribute(`style`);$a in e&&(e[$a]=a?r.display:``,e[eo]&&(r.display=`none`))}var oo=/\s*!important$/;function so(e,t,n){if(d(n))n.forEach(n=>so(e,t,n));else if(n??=``,t.startsWith(`--`))oo.test(n)?e.setProperty(t,n.replace(oo,``),`important`):e.setProperty(t,n);else{let r=uo(e,t);oo.test(n)?e.setProperty(D(r),n.replace(oo,``),`important`):e[r]=n}}var co=[`Webkit`,`Moz`,`ms`],lo={};function uo(e,t){let n=lo[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return lo[t]=r;r=O(r);for(let n=0;n<co.length;n++){let i=co[n]+r;if(i in e)return lo[t]=i}return t}function fo(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var po=`http://www.w3.org/1999/xlink`;function mo(e,t,n,r,i,a=he(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(po,t.slice(6,t.length)):e.setAttributeNS(po,t,n):n==null||a&&!ge(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function ho(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ea(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=ge(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function go(e,t,n,r){e.addEventListener(t,n,r)}function _o(e,t,n,r){e.removeEventListener(t,n,r)}var vo=Symbol(`_vei`);function yo(e,t,n,r,i=null){let a=e[vo]||(e[vo]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=So(t);r?go(e,n,a[t]=Eo(r,i),s):o&&(_o(e,n,o,s),a[t]=void 0)}}var bo=/(Once|Passive|Capture)$/,xo=/^on:?(?:Once|Passive|Capture)$/;function So(e){let t,n;for(;(n=e.match(bo))&&!xo.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):D(e.slice(2)),t]}var Co=0,wo=Promise.resolve(),To=()=>Co||=(wo.then(()=>Co=0),Date.now());function Eo(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&$t(e,t,5,a)}}else $t(r,t,5,[e])};return n.value=e,n.attached=To(),n}var Do=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Oo=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Qa(e,r,c):t===`style`?ao(e,n,r):a(t)?o(t)||yo(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):ko(e,t,r,c))?(ho(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&mo(e,t,r,c,s,t!==`value`)):e._isVueCE&&(Ao(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?ho(e,E(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),mo(e,t,r,c))};function ko(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Do(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Do(t)&&g(n)?!1:t in e}function Ao(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var jo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>ie(t,e):t};function Mo(e){e.target.composing=!0}function No(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Po=Symbol(`_assign`),Fo=Symbol(`_initialValue`);function Io(e,t,n){return t&&(e=e.trim()),n&&(e=ae(e)),e}var Lo={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Fo]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Fo]=e.defaultValue.replace(/\r\n?/g,`
|
||
`))),e[Po]=jo(i);let a=r||i.props&&i.props.type===`number`;go(e,t?`change`:`input`,t=>{t.target.composing||e[Po](Io(e.value,n,a))}),(n||a)&&go(e,`change`,()=>{e.value=Io(e.value,n,a)}),t||(go(e,`compositionstart`,Mo),go(e,`compositionend`,No),go(e,`change`,No))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Fo];delete e[Fo],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[Po](Io(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Po]=jo(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ae(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Ro={deep:!0,created(e,t,n){e[Po]=jo(n),go(e,`change`,()=>{let t=e._modelValue,n=Uo(e),r=e.checked,i=e[Po];if(d(t)){let e=N(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Wo(e,r))})},mounted:zo,beforeUpdate(e,t,n){e[Po]=jo(n),zo(e,t,n)}};function zo(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=N(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=M(t,Wo(e,!0))}e.checked!==i&&(e.checked=i)}var Bo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,go(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?ae(Uo(e)):Uo(e)),r=e.multiple,i=r?p(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?d(i)?t.slice():t:i];try{e[Po](i)}finally{un(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Po]=jo(r)},mounted(e,{value:t}){Ho(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Po]=jo(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Vo(t,n[1],n[0]))&&Ho(e,t)}};function Vo(e,t,n){if(!n||d(e))return M(e,t);if(p(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Ho(e,t){let n=e.multiple,r=d(t);if(!n||r||p(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Uo(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):N(t,o)>-1}else a.selected=t.has(o)}else if(M(Uo(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Uo(e){return`_value`in e?e._value:e.value}function Wo(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Go=[`ctrl`,`shift`,`alt`,`meta`],Ko={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)=>Go.some(n=>e[`${n}Key`]&&!t.includes(n))},Q=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ko[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},qo={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Jo=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=D(n.key);if(t.some(e=>e===r||qo[e]===r))return e(n)}))},Yo=s({patchProp:Oo},ja),Xo;function Zo(){return Xo||=Si(Yo)}var Qo=((...e)=>{let t=Zo().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=es(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,$o(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function $o(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function es(e){return g(e)?document.querySelector(e):e}var ts=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ns={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},rs=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:i,name:a,class:o,...s},{slots:c})=>Sa(`svg`,{...ns,width:e||ns.width,height:e||ns.height,stroke:r||ns.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:[`lucide`,`lucide-${ts(a??`icon`)}`],...s},[...i.map(e=>Sa(...e)),...c.default?[c.default()]:[]]),$=(e,t)=>(n,{slots:r})=>Sa(rs,{...n,iconNode:t,name:e},r),is=$(`ActivityIcon`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),as=$(`ArchiveRestoreIcon`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]),os=$(`ArchiveIcon`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),ss=$(`CalendarDaysIcon`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M16 18h.01`,key:`kzsmim`}]]),cs=$(`CalendarHeartIcon`,[[`path`,{d:`M3 10h18V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7`,key:`136lmk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21.29 14.7a2.43 2.43 0 0 0-2.65-.52c-.3.12-.57.3-.8.53l-.34.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L17.5 22l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z`,key:`1t7hil`}]]),ls=$(`CheckIcon`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),us=$(`ChevronDownIcon`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),ds=$(`ChevronRightIcon`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),fs=$(`CirclePlusIcon`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),ps=$(`DownloadIcon`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`7 10 12 15 17 10`,key:`2ggqvy`}],[`line`,{x1:`12`,x2:`12`,y1:`15`,y2:`3`,key:`1vk2je`}]]),ms=$(`EllipsisIcon`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),hs=$(`FileJsonIcon`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]]),gs=$(`FolderIcon`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),_s=$(`GripVerticalIcon`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),vs=$(`InboxIcon`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),ys=$(`ListChecksIcon`,[[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}],[`path`,{d:`M13 6h8`,key:`15sg57`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 18h8`,key:`oe0vm4`}]]),bs=$(`ListTodoIcon`,[[`rect`,{x:`3`,y:`5`,width:`6`,height:`6`,rx:`1`,key:`1defrl`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`M13 6h8`,key:`15sg57`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 18h8`,key:`oe0vm4`}]]),xs=$(`LogOutIcon`,[[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}],[`polyline`,{points:`16 17 21 12 16 7`,key:`1gabdz`}],[`line`,{x1:`21`,x2:`9`,y1:`12`,y2:`12`,key:`1uyos4`}]]),Ss=$(`MenuIcon`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),Cs=$(`PencilIcon`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),ws=$(`PinIcon`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),Ts=$(`PlusIcon`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Es=$(`RefreshCwIcon`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Ds=$(`Repeat2Icon`,[[`path`,{d:`m2 9 3-3 3 3`,key:`1ltn5i`}],[`path`,{d:`M13 18H7a2 2 0 0 1-2-2V6`,key:`1r6tfw`}],[`path`,{d:`m22 15-3 3-3-3`,key:`4rnwn2`}],[`path`,{d:`M11 6h6a2 2 0 0 1 2 2v10`,key:`2f72bc`}]]),Os=$(`SearchIcon`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]),ks=$(`SettingsIcon`,[[`path`,{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`,key:`1qme2f`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),As=$(`Trash2Icon`,[[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6`,key:`4alrt4`}],[`path`,{d:`M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2`,key:`v07s0e`}],[`line`,{x1:`10`,x2:`10`,y1:`11`,y2:`17`,key:`1uufr5`}],[`line`,{x1:`14`,x2:`14`,y1:`11`,y2:`17`,key:`xtxkd`}]]),js=$(`UploadIcon`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`17 8 12 3 7 8`,key:`t8dd8p`}],[`line`,{x1:`12`,x2:`12`,y1:`3`,y2:`15`,key:`widbto`}]]),Ms=$(`XIcon`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Ns=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`),Ps=e=>{let t=Ns(e);return t=t.replace(/`([^`]+)`/g,`<code>$1</code>`),t=t.replace(/\*\*([^*]+)\*\*/g,`<strong>$1</strong>`),t=t.replace(/\*([^*]+)\*/g,`<em>$1</em>`),t=t.replace(/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,`<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>`),t};function Fs(e=``){let t=e.replace(/\r\n/g,`
|
||
`).split(`
|
||
`),n=[],r=!1,i=()=>{r&&=(n.push(`</ul>`),!1)};for(let e of t){let t=e.trimEnd();if(!t.trim()){i();continue}t.startsWith(`# `)?(i(),n.push(`<h1>${Ps(t.slice(2))}</h1>`)):t.startsWith(`## `)?(i(),n.push(`<h2>${Ps(t.slice(3))}</h2>`)):/^[-*] /.test(t)?(r||=(n.push(`<ul>`),!0),n.push(`<li>${Ps(t.slice(2))}</li>`)):(i(),n.push(`<p>${Ps(t)}</p>`))}return i(),n.join(``)}function Is(e,t){let n=t.trim().toLowerCase();return n?e.filter(e=>[e.title,e.description??``,e.list_name??``].join(` `).toLowerCase().includes(n)):e}function Ls(e){let t=new Map;for(let n of e)n.parent_id&&t.set(n.parent_id,[...t.get(n.parent_id)??[],n]);return e.filter(e=>!e.parent_id).map(e=>({task:e,subtasks:t.get(e.id)??[]}))}function Rs(e){if(!e)return``;let t=new Date(e);return Number.isNaN(t.valueOf())?``:`${t.getFullYear()}-${`${t.getMonth()+1}`.padStart(2,`0`)}-${`${t.getDate()}`.padStart(2,`0`)}T${`${t.getHours()}`.padStart(2,`0`)}:${`${t.getMinutes()}`.padStart(2,`0`)}`}function zs(e){return e?new Date(e).toISOString():null}function Bs(e){return`${e.getFullYear()}-${`${e.getMonth()+1}`.padStart(2,`0`)}-${`${e.getDate()}`.padStart(2,`0`)}`}function Vs(e){return Array.isArray(e)?{items:e,nextCursor:null}:{items:e.items??[],nextCursor:e.next_cursor??null}}function Hs(e){return e===`tasks`||e===`today`||e===`upcoming`}function Us(){return`today`}function Ws(e,t,n,r=new Date){if(e!==`today`)return{list_id:t};let i=new Intl.DateTimeFormat(`en-CA`,{timeZone:`Asia/Shanghai`,year:`numeric`,month:`2-digit`,day:`2-digit`}).formatToParts(r),a=e=>i.find(t=>t.type===e)?.value;return{list_id:n,due_at:`${a(`year`)}-${a(`month`)}-${a(`day`)}T12:00:00+08:00`}}function Gs(e,t,n=1){return e===`numeric`?Number(t??0)>=n:!!t}function Ks(e,t){let n=(e.cells??[]).find(e=>e.day===t);return!(!n?.scheduled||n.paused)}function qs(e,t,n=1){let r=Number(t??0);return e===`numeric`?Math.min(r+1,n):r>0?0:1}function Js(e,t){let n=Number(t??0);return e===`numeric`?Math.max(0,n-1):0}function Ys(e){return e>0?`还有 ${e} 天`:e===0?`就是今天`:`已经 ${Math.abs(e)} 天`}function Xs(e){return{countdown:`倒数日`,anniversary:`纪念日`,birthday:`生日`}[e]??`倒数日`}function Zs(e){return e===`lunar`?`农历`:`公历`}function Qs(e,t){return e>=64&&e>Math.abs(t)*1.5}function $s(e){if(e&&![`GET`,`HEAD`,`OPTIONS`].includes(e.toUpperCase())){let e=ec(`dodo_csrf`);if(e)return{"x-csrf-token":e}}return{}}function ec(e){if(typeof document>`u`)return``;let t=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),n=document.cookie.match(RegExp(`(?:^|; )${t}=([^;]*)`));return n?decodeURIComponent(n[1]):``}var tc={key:0,class:`inline-error`},nc={key:0,class:`view-intro`},rc={key:1,class:`habit-list today-habit-list`},ic=[`onTouchstartPassive`,`onTouchmovePassive`,`onTouchend`,`onTouchcancel`],ac={class:`habit-main`},oc={class:`habit-name`},sc={key:0},cc=[`aria-label`,`onClick`],lc={key:0,class:`empty-panel`},uc={key:2,class:`empty-panel`},dc={class:`primary-small`},fc={key:4,class:`habit-list`},pc=[`onTouchstartPassive`,`onTouchmovePassive`,`onTouchend`,`onTouchcancel`],mc={class:`habit-main`},hc={class:`habit-name`},gc={key:0},_c=[`aria-label`,`aria-pressed`,`onClick`],vc=[`onClick`],yc={key:0,class:`empty-panel`},bc={class:`settings-grid`},xc={class:`tool-card`},Sc={class:`file-button`},Cc={class:`tool-card`},wc={class:`file-button`},Tc=[`disabled`],Ec={key:0},Dc={class:`tool-card wide`},Oc=[`onClick`],kc={key:0},Ac={key:0,class:`tool-card wide`},jc=Yn({__name:`MvpPanel`,props:{view:{}},emits:[`changed`,`notice`],setup(e,{emit:t}){let n=e,r=t,i=H([]),a=H([]),o=H([]),s=H(!1),c=H(``),l=H(``),u=H(`boolean`),d=H(1),f=H(null),p=H(null),m=H(null),h=H(Bs(new Date)),g=H(null),_=H({}),v=xa(()=>i.value.filter(e=>Ks(e,h.value))),y;function b(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(e=>e&&typeof e==`object`&&`msg`in e&&typeof e.msg==`string`?e.msg:String(e)).join(`;`)||`请求参数有误`;if(e&&typeof e==`object`){let t=e;return`detail`in t?b(t.detail):JSON.stringify(e)}return`请求失败`}async function x(e,t={}){let n={...t.headers||{}};t.body&&!(t.body instanceof FormData)&&(n[`Content-Type`]=`application/json`);let r=$s(t.method);r[`x-csrf-token`]&&(n[`x-csrf-token`]=r[`x-csrf-token`]);let i=await fetch(`/api/v1`+e,{credentials:`include`,...t,headers:n});if(!i.ok){let e=await i.json().catch(()=>({}));throw Error(b(e.detail))}let a=i.headers.get(`content-type`)||``;return i.status===204?null:a.includes(`json`)?i.json():i.blob()}async function S(e){s.value=!0,c.value=``;try{await e()}catch(e){c.value=e instanceof Error?e.message:`请求失败`}finally{s.value=!1}}function C(e,t){return(e.cells??[]).find(e=>e.day===t)}function w(e,t){return Gs(e.kind,C(e,t)?.value,e.target??1)}function T(e){return e instanceof Element&&!!e.closest(`button,input,select,textarea,a,label`)}function ee(e,t){if(s.value||T(t.target))return;let n=t.touches[0];n&&(g.value={id:e.id,x:n.clientX,y:n.clientY},_.value[e.id]=0)}function te(e,t){let n=g.value,r=t.touches[0];if(!n||n.id!==e.id||!r)return;let i=r.clientX-n.x,a=r.clientY-n.y,o=Number(C(e,h.value)?.value??0);Math.abs(i)>Math.abs(a)&&(i>0&&o<(e.target??1)||i<0&&o>0)&&(_.value[e.id]=Math.max(-92,Math.min(i,92)))}function E(e){return e.kind===`numeric`?`${Number(C(e,h.value)?.value??0)} / ${e.target??1}`:``}async function ne(e,t){let n=C(e,h.value)?.value,i=t>0?qs(e.kind,n,e.target??1):Js(e.kind,n);await S(async()=>{await x(`/habits/${e.id}/logs/${h.value}`,{method:`PUT`,body:JSON.stringify({value:i})}),await ae(),r(`notice`,i>Number(n??0)?`已记录一次 🎉`:`已减少一次`)})}async function D(e,t){let n=g.value;if(g.value=null,_.value[e.id]=0,!n||n.id!==e.id||s.value)return;let r=t.changedTouches[0],i=r?r.clientX-n.x:0,a=r?r.clientY-n.y:0,o=Number(C(e,h.value)?.value??0),c=e.kind===`numeric`?i>0&&o<(e.target??1)||i<0&&o>0:w(e,h.value)?i<0:i>0;r&&c&&Qs(Math.abs(i),a)&&await ne(e,i)}function O(e){g.value=null,e&&(_.value[e.id]=0)}async function re(e){let t=C(e,h.value)?.value,n=w(e,h.value)?Js(e.kind,t):qs(e.kind,t,e.target??1);await S(async()=>{await x(`/habits/${e.id}/logs/${h.value}`,{method:`PUT`,body:JSON.stringify({value:n})}),await ae(),r(`notice`,n>Number(t??0)?`已记录一次 🎉`:`已减少一次`)})}async function k(){l.value.trim()&&await S(async()=>{await x(`/habits`,{method:`POST`,body:JSON.stringify({name:l.value.trim(),kind:u.value,target:d.value,schedule_type:`daily`})}),l.value=``,await ae(),r(`notice`,`习惯已创建`)})}async function ie(e){confirm(`归档习惯“${e.name}”?历史打卡记录会保留。`)&&await S(async()=>{await x(`/habits/${e.id}`,{method:`DELETE`}),await ae(),r(`notice`,`习惯已归档`)})}function A(){let e=Bs(new Date);e!==h.value&&(h.value=e,n.view===`habits`&&ae())}async function ae(){await S(async()=>{let e=await x(`/habits/grid?week=${Bs(new Date)}`);i.value=e.habits??[]})}async function oe(){await S(async()=>{let[e,t]=await Promise.all([x(`/sessions`).catch(()=>[]),x(`/audit-logs?limit=20`).catch(()=>[])]);a.value=Vs(e).items,o.value=Vs(t).items})}async function se(e){await S(async()=>{await x(`/sessions/${e}`,{method:`DELETE`}),await oe(),r(`notice`,`会话已撤销`)})}function ce(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}async function ue(){await S(async()=>ce(await x(`/export`),`dodo-export.json`))}async function de(){f.value&&await S(async()=>{let e=new FormData;e.append(`file`,f.value),p.value=await x(`/import/ticktick/preview`,{method:`POST`,body:e})})}async function fe(){await S(async()=>{let e=new FormData;e.append(`file`,f.value);let t=await x(`/import/ticktick`,{method:`POST`,body:e});p.value=null,r(`changed`),r(`notice`,`导入完成:新增 ${t?.imported??0},跳过 ${t?.skipped??0}`)})}async function pe(){m.value&&confirm(`恢复为合并模式,将导入 JSON 中的清单与任务。继续吗?`)&&await S(async()=>{await x(`/restore?mode=merge`,{method:`POST`,body:await m.value.text()}),r(`changed`),r(`notice`,`数据已恢复`)})}return ur(()=>{n.view===`habits`||n.view===`today-habits`?(A(),ae(),y=setInterval(A,6e4)):oe()}),pr(()=>{y&&clearInterval(y)}),(t,n)=>(K(),q(`section`,{class:j([`mvp-view`,{loading:s.value}])},[c.value?(K(),q(`p`,tc,F(c.value),1)):Z(``,!0),e.view===`habits`||e.view===`today-habits`?(K(),q(G,{key:1},[e.view===`habits`?(K(),q(`header`,nc,[n[6]||=J(`div`,null,[J(`small`,null,`把想坚持的事,变成每天的日常`),J(`h2`,null,`习惯`)],-1),J(`button`,{class:`soft-button`,onClick:ae},[Y(U(Es)),n[5]||=X(`刷新`,-1)])])):Z(``,!0),e.view===`today-habits`&&!s.value?(K(),q(`div`,rc,[(K(!0),q(G,null,br(v.value,e=>(K(),q(`article`,{key:e.id,class:j([`habit-row swipeable`,{done:w(e,h.value),ready:Math.abs(_.value[e.id]??0)>=64}]),style:le({"--swipe-x":`${_.value[e.id]??0}px`,"--swipe-width":`${Math.abs(_.value[e.id]??0)}px`}),onTouchstartPassive:t=>ee(e,t),onTouchmovePassive:t=>te(e,t),onTouchend:t=>D(e,t),onTouchcancel:t=>O(e)},[J(`span`,{class:j([`swipe-bg`,{cancel:w(e,h.value)}])},F(w(e,h.value)?e.kind===`numeric`?`− 一次`:`↩ 未完成`:e.kind===`numeric`?`+ 一次`:`✓ 打卡`),3),J(`div`,ac,[J(`span`,null,[J(`span`,oc,F(e.name),1),E(e)?(K(),q(`small`,sc,F(E(e)),1)):Z(``,!0)]),J(`button`,{class:`sr-only`,"aria-label":w(e,h.value)?`减少${e.name}一次`:`完成${e.name}一次`,onClick:Q(t=>re(e),[`stop`])},`切换习惯状态`,8,cc)])],46,ic))),128)),v.value.length?Z(``,!0):(K(),q(`div`,lc,`今天没有安排习惯,轻松一下吧。`))])):e.view===`today-habits`&&s.value?(K(),q(`div`,uc,`加载中…`)):Z(``,!0),e.view===`habits`?(K(),q(`form`,{key:3,class:`habit-create`,onSubmit:Q(k,[`prevent`])},[W(J(`input`,{"onUpdate:modelValue":n[0]||=e=>l.value=e,placeholder:`新习惯名称(如:喝水 8 杯)`,"aria-label":`新习惯名称`},null,512),[[Lo,l.value]]),W(J(`select`,{"onUpdate:modelValue":n[1]||=e=>u.value=e,"aria-label":`习惯类型`},[...n[7]||=[J(`option`,{value:`boolean`},`完成 / 未完成`,-1),J(`option`,{value:`numeric`},`按数量记录`,-1)]],512),[[Bo,u.value]]),u.value===`numeric`?W((K(),q(`input`,{key:0,"onUpdate:modelValue":n[2]||=e=>d.value=e,type:`number`,min:`0`,step:`any`,placeholder:`目标值`,"aria-label":`目标值`},null,512)),[[Lo,d.value,void 0,{number:!0}]]):Z(``,!0),J(`button`,dc,[Y(U(Ts)),n[8]||=X(`添加`,-1)])],32)):Z(``,!0),e.view===`habits`?(K(),q(`div`,fc,[(K(!0),q(G,null,br(i.value,e=>(K(),q(`article`,{key:e.id,class:j([`habit-row swipeable`,{done:w(e,h.value),ready:Math.abs(_.value[e.id]??0)>=64}]),style:le({"--swipe-x":`${_.value[e.id]??0}px`,"--swipe-width":`${Math.abs(_.value[e.id]??0)}px`}),onTouchstartPassive:t=>ee(e,t),onTouchmovePassive:t=>te(e,t),onTouchend:t=>D(e,t),onTouchcancel:t=>O(e)},[J(`span`,{class:j([`swipe-bg`,{cancel:w(e,h.value)}])},F(w(e,h.value)?e.kind===`numeric`?`− 一次`:`↩ 未完成`:e.kind===`numeric`?`+ 一次`:`✓ 打卡`),3),J(`div`,mc,[J(`span`,null,[J(`span`,hc,F(e.name),1),E(e)?(K(),q(`small`,gc,F(E(e)),1)):Z(``,!0)]),J(`button`,{class:`sr-only`,"aria-label":w(e,h.value)?`减少${e.name}一次`:`完成${e.name}一次`,"aria-pressed":w(e,h.value),onClick:Q(t=>re(e),[`stop`])},`切换习惯状态`,8,_c)]),J(`button`,{class:`icon ghost`,"aria-label":`归档习惯`,onClick:t=>ie(e)},[Y(U(As))],8,vc)],46,pc))),128)),!i.value.length&&!s.value?(K(),q(`div`,yc,`还没有习惯,从一件容易坚持的小事开始。`)):Z(``,!0)])):Z(``,!0)],64)):(K(),q(G,{key:2},[n[18]||=J(`header`,{class:`view-intro`},[J(`div`,null,[J(`small`,null,`备份、迁移与安全`),J(`h2`,null,`设置与数据`)])],-1),J(`div`,bc,[J(`article`,xc,[Y(U(hs)),n[11]||=J(`h3`,null,`数据导出与恢复`,-1),n[12]||=J(`p`,null,`下载完整 JSON 备份,或从备份恢复。`,-1),J(`button`,{class:`soft-button`,onClick:ue},[Y(U(ps)),n[9]||=X(`导出 JSON`,-1)]),J(`label`,Sc,[Y(U(as)),n[10]||=X(`选择备份`,-1),J(`input`,{type:`file`,accept:`application/json`,onChange:n[3]||=e=>m.value=e.target.files?.[0]||null},null,32)]),m.value?(K(),q(`button`,{key:0,class:`danger-button`,onClick:pe},`确认恢复`)):Z(``,!0)]),J(`article`,Cc,[Y(U(js)),n[14]||=J(`h3`,null,`导入`,-1),n[15]||=J(`p`,null,`先预览变化,确认后才写入。`,-1),J(`label`,wc,[n[13]||=X(`选择文件`,-1),J(`input`,{type:`file`,accept:`.json,.csv`,onChange:n[4]||=e=>f.value=e.target.files?.[0]||null},null,32)]),J(`button`,{disabled:!f.value,class:`soft-button`,onClick:de},`生成预览`,8,Tc),p.value?(K(),q(`pre`,Ec,F(JSON.stringify(p.value,null,2)),1)):Z(``,!0),p.value?(K(),q(`button`,{key:1,class:`primary-small`,onClick:fe},`确认导入`)):Z(``,!0)]),J(`article`,Dc,[Y(U(xs)),n[16]||=J(`h3`,null,`登录会话`,-1),(K(!0),q(G,null,br(a.value,e=>(K(),q(`div`,{key:e.id,class:`session-row`},[J(`span`,null,[J(`b`,null,F(e.current?`当前设备`:`其他设备`),1),J(`small`,null,F(e.user_agent||`未知设备`)+` · `+F(e.last_seen_at||e.created_at),1)]),e.current?Z(``,!0):(K(),q(`button`,{key:0,class:`danger-text`,onClick:t=>se(e.id)},`撤销`,8,Oc))]))),128)),a.value.length?Z(``,!0):(K(),q(`p`,kc,`没有可显示的会话。`))]),o.value.length?(K(),q(`article`,Ac,[Y(U(is)),n[17]||=J(`h3`,null,`最近活动`,-1),(K(!0),q(G,null,br(o.value,(e,t)=>(K(),q(`div`,{key:e.id||t,class:`audit-row`},[J(`span`,null,F(e.action||e.event||`变更`),1),J(`small`,null,F(e.created_at||e.timestamp),1)]))),128))])):Z(``,!0)])],64))],2))}}),Mc={class:`countdown-hero`},Nc={key:0,class:`inline-error`},Pc={class:`countdown-grid`},Fc={class:`countdown-card-head`},Ic={class:`countdown-icon`},Lc={class:`countdown-type`},Rc={key:0,class:`countdown-type`},zc={key:1,class:`countdown-type`},Bc={class:`countdown-number`},Vc={key:0},Hc={class:`countdown-copy`},Uc={key:0},Wc={class:`countdown-actions`},Gc=[`onClick`],Kc=[`onClick`],qc=[`onClick`],Jc={key:2,class:`archived-countdowns`},Yc=[`onClick`],Xc=[`onClick`],Zc={class:`countdown-title-fields`},Qc={value:`solar`},$c={value:`lunar`},el={key:0},tl={key:1,class:`countdown-title-fields`},nl=[`value`],rl=[`value`],il={key:2},al={key:0},ol=Yn({__name:`CountdownPanel`,emits:[`notice`],setup(e,{emit:t}){let n=t,r=H([]),i=H([]),a=H(!1),o=H(!1),s=H(!1),c=H(null),l=H(``),u=new Date().getFullYear(),d=()=>({title:``,event_date:Bs(new Date),kind:`countdown`,repeat_rule:`none`,icon:`📅`,calendar_mode:`solar`,lunar_year:u,lunar_month:1,lunar_day:1,leap_month:!1,ignore_year:!1}),f=H(d());function p(e){return e.calendar_mode===`lunar`&&e.lunar_text?e.lunar_text:ee(e.display_date)}function m(e){if(e.calendar_mode===`lunar`&&e.lunar_text){let t=e.ignore_year?` · 每年农历`:``;return`${ee(e.display_date)} · ${e.lunar_text}${t}`}return``}function h(e){return e.calendar_mode===`lunar`&&e.ignore_year?`每年`:e.repeat_rule===`none`?``:E(e.repeat_rule)}async function g(e,t={}){let n={...t.headers||{}};t.body&&(n[`Content-Type`]=`application/json`),Object.assign(n,$s(t.method));let r=await fetch(`/api/v1`+e,{credentials:`include`,...t,headers:n});if(!r.ok){let e=await r.json().catch(()=>({}));throw Error(e.detail||`请求失败`)}return r.status===204?null:r.json()}async function _(e){s.value=!0,l.value=``;try{await e()}catch(e){l.value=e instanceof Error?e.message:`请求失败`}finally{s.value=!1}}async function v(){await _(async()=>{let[e,t]=await Promise.all([g(`/countdowns`),g(`/countdowns?archived=true`)]);r.value=e,i.value=t})}function y(){ne()}function b(e){c.value=e.id,f.value={title:e.title,event_date:e.event_date,kind:e.kind,repeat_rule:e.repeat_rule,icon:e.icon,calendar_mode:e.calendar_mode,lunar_year:e.lunar_year||Number(e.event_date.slice(0,4)),lunar_month:Math.abs(e.lunar_month||1),lunar_day:e.lunar_day||1,leap_month:(e.lunar_month||0)<0,ignore_year:e.ignore_year},o.value=!0}async function x(){f.value.title.trim()&&await _(async()=>{let e={title:f.value.title.trim(),event_date:f.value.calendar_mode===`lunar`?`${f.value.lunar_year}-01-01`:f.value.event_date,kind:f.value.kind,repeat_rule:f.value.repeat_rule,icon:f.value.icon,calendar_mode:f.value.calendar_mode,ignore_year:f.value.ignore_year};f.value.calendar_mode===`lunar`&&(e.lunar_month=f.value.leap_month?-f.value.lunar_month:f.value.lunar_month,e.lunar_day=f.value.lunar_day),await g(c.value?`/countdowns/${c.value}`:`/countdowns`,{method:c.value?`PATCH`:`POST`,body:JSON.stringify(e)}),o.value=!1,await v(),n(`notice`,c.value?`倒数日已更新`:`倒数日已添加`)})}async function S(e){await _(async()=>{await g(`/countdowns/${e.id}/pin`,{method:`POST`}),await v(),n(`notice`,`已置顶`)})}async function C(e){await _(async()=>{await g(`/countdowns/${e.id}`,{method:`DELETE`}),await v(),n(`notice`,`已归档`)})}async function w(e){await _(async()=>{await g(`/countdowns/${e.id}/restore`,{method:`POST`}),await v(),n(`notice`,`已恢复`)})}async function T(e){confirm(`永久删除“${e.title}”?这个操作不能撤销。`)&&await _(async()=>{await g(`/countdowns/${e.id}/purge`,{method:`DELETE`}),await v(),n(`notice`,`已永久删除`)})}function ee(e){let[t,n,r]=e.split(`-`);return`${t}年${Number(n)}月${Number(r)}日`}function te(e){let[t,n,r]=e.split(`-`);return`${t}/${Number(n)}/${Number(r)}`}function E(e){return{none:`不重复`,weekly:`每周`,monthly:`每月`,yearly:`每年`}[e]}function ne(){c.value=null,f.value=d(),o.value=!0}return ur(v),(e,t)=>(K(),q(`section`,{class:j([`countdown-view`,{loading:s.value}])},[J(`header`,Mc,[t[16]||=J(`div`,null,[J(`small`,null,`记住值得期待与纪念的日子`),J(`h2`,null,`倒数日`)],-1),J(`button`,{class:`countdown-add`,onClick:ne},[Y(U(Ts)),t[15]||=X(`添加日子`,-1)])]),l.value?(K(),q(`p`,Nc,F(l.value),1)):Z(``,!0),J(`div`,Pc,[(K(!0),q(G,null,br(r.value,e=>(K(),q(`article`,{key:e.id,class:j([`countdown-card`,{pinned:e.pinned}])},[J(`div`,Fc,[J(`span`,Ic,F(e.icon),1),J(`span`,Lc,F(U(Xs)(e.kind)),1),e.calendar_mode===`lunar`?(K(),q(`span`,Rc,`农历`)):Z(``,!0),h(e)?(K(),q(`span`,zc,F(h(e)),1)):Z(``,!0),e.pinned?(K(),Ui(U(ws),{key:2,class:`pinned-icon`})):Z(``,!0)]),J(`h3`,null,F(e.title),1),J(`div`,Bc,[J(`strong`,null,F(Math.abs(e.days)),1),e.days===0?Z(``,!0):(K(),q(`span`,Vc,`天`))]),J(`b`,Hc,F(U(Ys)(e.days)),1),J(`p`,null,[J(`b`,null,F(p(e)),1),m(e)?(K(),q(`span`,Uc,` · `+F(m(e)),1)):Z(``,!0)]),J(`div`,Wc,[e.pinned?Z(``,!0):(K(),q(`button`,{key:0,onClick:t=>S(e)},[Y(U(ws)),t[17]||=X(`置顶`,-1)],8,Gc)),J(`button`,{onClick:t=>b(e)},[Y(U(Cs)),t[18]||=X(`编辑`,-1)],8,Kc),J(`button`,{onClick:t=>C(e)},[Y(U(os)),t[19]||=X(`归档`,-1)],8,qc)])],2))),128)),!r.value.length&&!s.value?(K(),q(`button`,{key:0,class:`countdown-empty`,onClick:ne},[Y(U(cs)),t[20]||=J(`b`,null,`添加第一个重要日子`,-1),t[21]||=J(`span`,null,`生日、纪念日,或一场期待已久的旅行`,-1)])):Z(``,!0)]),i.value.length?(K(),q(`button`,{key:1,class:`archived-toggle`,onClick:t[0]||=e=>a.value=!a.value},[Y(U(as)),X(`已归档(`+F(i.value.length)+`)`,1)])):Z(``,!0),a.value?(K(),q(`div`,Jc,[(K(!0),q(G,null,br(i.value,e=>(K(),q(`article`,{key:e.id},[J(`span`,null,F(e.icon),1),J(`b`,null,F(e.title),1),J(`small`,null,[X(F(te(e.display_date)),1),e.lunar_text?(K(),q(G,{key:0},[X(` · `+F(e.lunar_text),1)],64)):Z(``,!0),e.calendar_mode===`lunar`?(K(),q(G,{key:1},[X(` · 农历`)],64)):Z(``,!0)]),J(`button`,{onClick:t=>w(e)},[Y(U(as)),t[22]||=X(`恢复`,-1)],8,Yc),J(`button`,{class:`danger-text`,onClick:t=>T(e)},[Y(U(As)),t[23]||=X(`永久删除`,-1)],8,Xc)]))),128))])):Z(``,!0),J(`button`,{class:`fab countdown-fab mobile-only`,"aria-label":`添加倒数日`,onClick:y},[Y(U(Ts))]),o.value?(K(),q(`div`,{key:3,class:`countdown-modal-mask`,onClick:t[14]||=Q(e=>o.value=!1,[`self`])},[J(`form`,{class:`countdown-modal`,role:`dialog`,"aria-modal":`true`,onSubmit:Q(x,[`prevent`])},[J(`header`,null,[J(`div`,null,[J(`small`,null,F(c.value?`调整重要日子`:`记下重要日子`),1),J(`h3`,null,F(c.value?`编辑倒数日`:`新建倒数日`),1)]),J(`button`,{type:`button`,"aria-label":`关闭`,onClick:t[1]||=e=>o.value=!1},[Y(U(Ms))])]),J(`label`,null,[t[24]||=X(`图标与名称`,-1),J(`div`,Zc,[W(J(`input`,{"onUpdate:modelValue":t[2]||=e=>f.value.icon=e,maxlength:`8`,"aria-label":`图标`},null,512),[[Lo,f.value.icon]]),W(J(`input`,{"onUpdate:modelValue":t[3]||=e=>f.value.title=e,maxlength:`200`,required:``,placeholder:`例如:去北海道旅行`,autofocus:``},null,512),[[Lo,f.value.title]])])]),J(`label`,null,[t[25]||=X(`历法`,-1),W(J(`select`,{"onUpdate:modelValue":t[4]||=e=>f.value.calendar_mode=e},[J(`option`,Qc,F(U(Zs)(`solar`)),1),J(`option`,$c,F(U(Zs)(`lunar`)),1)],512),[[Bo,f.value.calendar_mode]])]),f.value.calendar_mode===`solar`?(K(),q(`label`,el,[t[26]||=X(`日期`,-1),W(J(`input`,{"onUpdate:modelValue":t[5]||=e=>f.value.event_date=e,type:`date`,required:``},null,512),[[Lo,f.value.event_date]])])):(K(),q(`div`,tl,[J(`label`,null,[t[27]||=X(`年份`,-1),W(J(`input`,{"onUpdate:modelValue":t[6]||=e=>f.value.lunar_year=e,type:`number`,min:`1900`,max:`2099`,required:``},null,512),[[Lo,f.value.lunar_year,void 0,{number:!0}]])]),J(`label`,null,[t[28]||=X(`月份`,-1),W(J(`select`,{"onUpdate:modelValue":t[7]||=e=>f.value.lunar_month=e},[(K(),q(G,null,br(12,e=>J(`option`,{key:e,value:e},F(e)+`月`,9,nl)),64))],512),[[Bo,f.value.lunar_month,void 0,{number:!0}]])]),J(`label`,null,[t[29]||=X(`日期`,-1),W(J(`select`,{"onUpdate:modelValue":t[8]||=e=>f.value.lunar_day=e},[(K(),q(G,null,br(30,e=>J(`option`,{key:e,value:e},F(e)+`日`,9,rl)),64))],512),[[Bo,f.value.lunar_day,void 0,{number:!0}]])])])),f.value.calendar_mode===`lunar`?(K(),q(`label`,il,[W(J(`input`,{"onUpdate:modelValue":t[9]||=e=>f.value.leap_month=e,type:`checkbox`},null,512),[[Ro,f.value.leap_month]]),t[30]||=X(` 闰月(如果是闰月,勾选这里)`,-1)])):Z(``,!0),J(`label`,null,[W(J(`input`,{"onUpdate:modelValue":t[10]||=e=>f.value.ignore_year=e,type:`checkbox`},null,512),[[Ro,f.value.ignore_year]]),t[31]||=X(` 忽略年份`,-1),f.value.calendar_mode===`lunar`?(K(),q(`span`,al,`,每年按农历计算`)):Z(``,!0)]),J(`label`,null,[t[33]||=X(`类型`,-1),W(J(`select`,{"onUpdate:modelValue":t[11]||=e=>f.value.kind=e},[...t[32]||=[J(`option`,{value:`countdown`},`倒数日`,-1),J(`option`,{value:`anniversary`},`纪念日`,-1),J(`option`,{value:`birthday`},`生日`,-1)]],512),[[Bo,f.value.kind]])]),J(`label`,null,[t[35]||=X(`重复`,-1),W(J(`select`,{"onUpdate:modelValue":t[12]||=e=>f.value.repeat_rule=e},[...t[34]||=[J(`option`,{value:`none`},`不重复`,-1),J(`option`,{value:`weekly`},`每周`,-1),J(`option`,{value:`monthly`},`每月`,-1),J(`option`,{value:`yearly`},`每年`,-1)]],512),[[Bo,f.value.repeat_rule]])]),J(`footer`,null,[J(`button`,{type:`button`,class:`secondary`,onClick:t[13]||=e=>o.value=!1},`取消`),t[36]||=J(`button`,{class:`primary-small`},`保存`,-1)])],32)])):Z(``,!0)],2))}}),sl={key:0,class:`center`},cl={key:1,class:`auth-shell`},ll={class:`auth-card`},ul={key:0,role:`alert`},dl={key:2,class:`shell`},fl={class:`brand-row`},pl={class:`primary-nav`},ml={class:`section-title`},hl={class:`folders`},gl={class:`folder-row`},_l=[`onClick`],vl={class:`row-actions`},yl=[`onClick`],bl=[`onClick`],xl=[`onClick`],Sl=[`onClick`],Cl={class:`row-actions`},wl=[`onClick`],Tl=[`onClick`],El=[`onClick`],Dl={class:`row-actions`},Ol=[`onClick`],kl=[`onClick`],Al=[`onClick`],jl={class:`row-actions`},Ml=[`onClick`],Nl={class:`topbar`},Pl={key:0,class:`search`},Fl={key:0,class:`section-heading`},Il={class:`list-toolbar`},Ll={key:0},Rl={key:2,class:`pager`},zl=[`disabled`],Bl=[`disabled`],Vl=[`onTouchstartPassive`,`onTouchmovePassive`,`onTouchend`,`onTouchcancel`],Hl=[`onClick`,`onKeydown`],Ul={class:`meta`},Wl={key:0},Gl={key:1},Kl=[`aria-label`,`aria-pressed`,`onClick`],ql=[`onClick`],Jl=[`onClick`],Yl=[`onClick`],Xl=[`onTouchstartPassive`,`onTouchmovePassive`,`onTouchend`,`onTouchcancel`],Zl=[`onClick`,`onKeydown`],Ql=[`aria-label`,`aria-pressed`,`onClick`],$l={key:0,class:`empty`},eu={key:3},tu={class:`section-heading`},nu={class:`detail-head`},ru={key:0,class:`detail-form`},iu={class:`detail-title`},au=[`value`],ou=[`value`],su={class:`field markdown`},cu={class:`field-label`},lu=[`innerHTML`],uu={class:`subtasks`},du={class:`field-label`},fu=[`onClick`],pu={class:`check`},mu={key:0,class:`hint`},hu=[`open`],gu={class:`more-settings-body`},_u={class:`detail-actions`},vu={key:1,class:`paper`},yu={id:`mobile-more-menu`,class:`more-sheet`,role:`dialog`,"aria-modal":`true`,"aria-label":`更多导航`},bu={class:`more-sheet-head`},xu={class:`bottom`,"aria-label":`主要导航`},Su=[`aria-expanded`],Cu={key:0,class:`toast`,role:`status`},wu={key:3,class:`error-toast`,role:`alert`},Tu={class:`modal-box`,role:`dialog`,"aria-modal":`true`},Eu={key:0},Du={class:`modal-actions`},Ou=50;Qo(Yn({__name:`App`,setup(e){let t=H(null),n=H(!1),r=H(!1),i=H(``),a=H(``),o=H([]),s=H([]),c=H([]),l=H([]),u=H([]),d=H(``),f=H(Us()),p=H(null),m=H(``),h=H(``),g=H(``),_=H(``),v=H(!1),y=H(!1),b=H(!1),x=H(!1),S=H(!1),C=H(!1),w=H(!0),T=H(1),ee=H(0),te=xa(()=>Math.max(1,Math.ceil(ee.value/Ou))),E=H(new Set),ne=H(!1),D=H(null),O=H({}),re=``,k=H(!1),ie=H(``),A=H(``),ae=H(``),oe=H(`确定`),se=H(null);function ce(e,t=``,n=``,r=`确定`){return new Promise(i=>{ie.value=e,A.value=t,ae.value=n,oe.value=r,k.value=!0,se.value=i})}function ue(){k.value=!1,se.value&&=(se.value(null),null)}function de(){k.value=!1,se.value&&=(se.value(ae.value),null)}let fe=xa(()=>f.value===`trash`?`回收站`:f.value===`today`?`今天`:f.value===`upcoming`?`最近 7 天`:f.value===`habits`?`习惯`:f.value===`countdowns`?`倒数日`:f.value===`settings`?`设置与数据`:s.value.find(e=>e.id===d.value)?.name||`收集箱`),pe=xa(()=>f.value===`trash`?u.value:l.value),me=xa(()=>{let e=new Date,t=new Date(e);t.setDate(t.getDate()+7);let n=pe.value;return[`habits`,`settings`].includes(f.value)?[]:(f.value===`today`&&(n=n.filter(t=>t.due_at&&new Date(t.due_at).toDateString()===e.toDateString())),f.value===`upcoming`&&(n=n.filter(n=>n.due_at&&new Date(n.due_at)>=e&&new Date(n.due_at)<=t)),h.value.trim()?Is(n,h.value):n)}),he=xa(()=>p.value?.subtasks??[]),ge=xa(()=>Ls(me.value)),_e=xa(()=>ge.value),ve;On(h,()=>{ve&&window.clearTimeout(ve),Hs(f.value)&&(T.value=1,ve=window.setTimeout(()=>L(),250))}),On(w,()=>{Hs(f.value)&&(T.value=1,L())});async function M(e,t={}){let n=new Headers(t.headers||{});!n.has(`Content-Type`)&&t.body&&!(t.body instanceof FormData)&&n.set(`Content-Type`,`application/json`);let r=$s(t.method);r[`x-csrf-token`]&&n.set(`x-csrf-token`,r[`x-csrf-token`]);let i=await fetch(`/api/v1`+e,{credentials:`include`,headers:n,...t});if(!i.ok){let e=`请求失败`;try{let t=await i.json();e=typeof t.detail==`string`?t.detail:e}catch{}throw Error(e)}return i.status===204?null:i.json()}function N(e){_.value=e,window.setTimeout(()=>{_.value===e&&(_.value=``)},2400)}function P(e){g.value=e instanceof Error?e.message:`请求失败`}async function ye(){n.value=!1;try{let e=await M(`/setup/status`);if(t.value=e.initialized,e.initialized){let e=await M(`/bootstrap`);r.value=!0,o.value=e.folders??[],s.value=e.lists??[],ne.value=!0,d.value=e.inbox_id||s.value.find(e=>e.is_inbox)?.id||s.value[0]?.id||``,E.value=new Set(o.value.map(e=>e.id)),await L()}}catch{r.value=!1,t.value??=!0}finally{n.value=!0}}async function be(){g.value=``;try{await M(t.value?`/auth/login`:`/setup/initialize`,{method:`POST`,body:JSON.stringify({username:i.value,password:a.value})}),t.value=!0,r.value=!0;let e=await M(`/bootstrap`);o.value=e.folders??[],s.value=e.lists??[],ne.value=!0,d.value=e.inbox_id||s.value.find(e=>e.is_inbox)?.id||s.value[0]?.id||``,E.value=new Set(o.value.map(e=>e.id)),await L()}catch(e){P(e)}}function I(e){let t=new Date;return t.setDate(t.getDate()+e),t.setHours(0,0,0,0),t.toISOString()}async function xe(){let e=new URLSearchParams({page:String(T.value),page_size:String(Ou)});h.value?e.set(`q`,h.value):f.value===`tasks`&&d.value&&e.set(`list_id`,d.value),f.value===`today`&&(e.set(`due_from`,I(0)),e.set(`due_to`,I(1))),f.value===`upcoming`&&(e.set(`due_from`,I(0)),e.set(`due_to`,I(8))),!w.value&&f.value!==`trash`&&e.set(`completed`,`false`);let t=await M(`/tasks?${e}`);l.value=t.items??[],ee.value=t.total??l.value.length}async function Se(e=!1){if(!e&&ne.value)return;let[t,n]=await Promise.all([M(`/folders`),M(`/lists`)]);o.value=t,s.value=n,ne.value=!0,s.value.some(e=>e.id===d.value)||(d.value=s.value.find(e=>e.is_inbox)?.id||s.value[0]?.id||``),E.value=new Set(o.value.map(e=>e.id)),await Ge()}async function L(){v.value=!0,g.value=``;try{ne.value||await Se(),await xe(),T.value>te.value&&(T.value=te.value,await xe())}catch(e){P(e)}finally{v.value=!1}}async function Ce(){ne.value=!1,await L()}async function we(){let e=await M(`/trash?page=${T.value}&page_size=${Ou}`);u.value=e.items??[],ee.value=e.total??u.value.length}async function Te(){v.value=!0,g.value=``;try{await we()}catch(e){P(e)}finally{v.value=!1}}async function R(e,t){f.value=e,t&&(d.value=t),T.value=1,p.value=null,y.value=!1,b.value=!1,x.value=!1,e===`trash`?await Te():e===`today`?await De():Hs(e)?await L():l.value=[]}async function Ee(){let e=s.value.find(e=>e.is_inbox)?.id||d.value;if(m.value.trim()&&e)try{let t=Ws(f.value,d.value,e),n=await M(`/tasks`,{method:`POST`,body:JSON.stringify({title:m.value.trim(),...t})});l.value.push(n),m.value=``,Be(n),b.value=!0,N(`任务已添加`)}catch(e){P(e)}}async function De(){await L()}async function Oe(e,t){let n=await M(`/tasks/${e.id}`,{method:`PATCH`,body:JSON.stringify({...t,version:e.version})}),r=l.value.findIndex(t=>t.id===e.id);return r>=0&&(l.value[r]={...l.value[r],...n}),p.value?.id===e.id&&(p.value={...p.value,...n}),n}async function ke(e){try{await Oe(e,{completed:!e.completed}),N(e.completed?`已重新打开`:`完成啦`)}catch(e){P(e)}}function Ae(e){return e instanceof Element&&!!e.closest(`button,input,select,textarea,a,label`)}function je(e,t){if(f.value===`trash`||v.value||Ae(t.target))return;let n=t.touches[0];n&&(D.value={id:e.id,x:n.clientX,y:n.clientY},O.value[e.id]=0)}function Me(e,t){let n=D.value,r=t.touches[0];if(!n||n.id!==e.id||!r)return;let i=r.clientX-n.x,a=r.clientY-n.y;Math.abs(i)>Math.abs(a)&&(!e.completed&&i>0||e.completed&&i<0)&&(O.value[e.id]=Math.max(-92,Math.min(i,92)))}async function Ne(e,t){let n=D.value;D.value=null;let r=O.value[e.id]??0;if(O.value[e.id]=0,!n||n.id!==e.id||f.value===`trash`||v.value)return;let i=t.changedTouches[0],a=i?i.clientX-n.x:0,o=i?i.clientY-n.y:0,s=e.completed?a<0:a>0;i&&s&&Qs(Math.abs(a),o)?(re=e.id,window.setTimeout(()=>{re===e.id&&(re=``)},400),await ke(e)):r&&(O.value[e.id]=0)}function Pe(e){D.value=null,e&&(O.value[e.id]=0)}function Fe(e){if(re===e.id){re=``;return}Be(e)}async function z(){if(p.value?.title.trim())try{let e=p.value;await Oe(e,{title:e.title.trim(),description:e.description,priority:Number(e.priority),due_at:zs(Rs(e.due_at)),list_id:e.list_id}),N(`已保存`)}catch(e){P(e)}}async function Ie(e){if(window.confirm(`把“${e.title}”移到回收站?`))try{await M(`/tasks/${e.id}`,{method:`DELETE`}),l.value=l.value.filter(t=>t.id!==e.id&&t.parent_id!==e.id),p.value=null,b.value=!1,N(`已移到回收站`)}catch(e){P(e)}}async function Le(e){try{await M(`/tasks/${e.id}/restore`,{method:`POST`}),u.value=u.value.filter(t=>t.id!==e.id),N(`任务已恢复`)}catch(e){P(e)}}async function Re(e){if(window.confirm(`永久删除“${e.title}”?这个操作不能撤销。`))try{await M(`/trash/${e.id}`,{method:`DELETE`}),u.value=u.value.filter(t=>t.id!==e.id),N(`已永久删除`)}catch(e){P(e)}}async function ze(){if(!p.value)return;let e=(await ce(`添加子任务`,`子任务名称`,``,`添加`))?.trim();if(e)try{let t=await M(`/tasks`,{method:`POST`,body:JSON.stringify({title:e,list_id:p.value.list_id,parent_id:p.value.id})});p.value&&(p.value.subtasks=[...p.value.subtasks??[],t]),l.value.push(t),N(`子任务已添加`)}catch(e){P(e)}}function Be(e){p.value={...e,subtasks:e.subtasks?[...e.subtasks]:[]},C.value=!1,S.value=!1,b.value=!0}async function Ve(){let e=(await ce(`新建文件夹`,`文件夹名称`,``,`创建`))?.trim();if(e)try{o.value.push(await M(`/folders`,{method:`POST`,body:JSON.stringify({name:e})})),N(`文件夹已创建`)}catch(e){P(e)}}async function He(e=null){let t=(await ce(`新建清单`,`清单名称`,``,`创建`))?.trim();if(t)try{let n=await M(`/lists`,{method:`POST`,body:JSON.stringify({name:t,folder_id:e})});s.value.push(n),await R(`tasks`,n.id),N(`清单已创建`)}catch(e){P(e)}}async function Ue(e,t){let n=(await ce(`重命名`,e===`lists`?`清单名称`:`文件夹名称`,t.name,`保存`))?.trim();if(n&&n!==t.name)try{let r=await M(`/${e}/${t.id}`,{method:`PATCH`,body:JSON.stringify({name:n})});Object.assign(t,r),N(`已重命名`)}catch(e){P(e)}}async function We(e,t){if(e===`lists`){if(await ce(`归档清单「${t.name}」?`,``,``,`归档`)===null)return;try{await M(`/${e}/${t.id}`,{method:`DELETE`}),await Ge(),await Ce(),N(`清单已归档`)}catch(e){P(e)}return}if(await ce(`删除文件夹「${t.name}」?`,``,``,`删除`)!==null)try{await M(`/${e}/${t.id}`,{method:`DELETE`}),await Ce(),N(`已删除`)}catch(e){P(e)}}async function Ge(){try{c.value=await M(`/lists?archived=true`)}catch{c.value=[]}}async function Ke(e){try{await M(`/lists/${e.id}/restore`,{method:`POST`}),await Ge(),await Ce(),N(`清单已恢复`)}catch(e){P(e)}}function qe(e){let t=new Set(E.value);t.has(e)?t.delete(e):t.add(e),E.value=t}function B(e){return e?new Intl.DateTimeFormat(`zh-CN`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`}).format(new Date(e)):``}function Je(){un(()=>document.querySelector(`.quick-input`)?.focus())}function Ye(){T.value<=1||v.value||(--T.value,f.value===`trash`?Te():Hs(f.value)&&L())}function Xe(){T.value>=te.value||v.value||(T.value+=1,f.value===`trash`?Te():Hs(f.value)&&L())}return ur(ye),(e,l)=>n.value?r.value?(K(),q(`div`,dl,[y.value||b.value?(K(),q(`div`,{key:0,class:`scrim`,onClick:l[2]||=e=>{y.value=!1,b.value=!1}})):Z(``,!0),J(`aside`,{class:j([`sidebar`,{open:y.value}])},[J(`div`,fl,[l[41]||=J(`div`,{class:`brand small`},[X(`do`),J(`span`,null,`do`)],-1),J(`button`,{class:`icon mobile-only`,"aria-label":`关闭菜单`,onClick:l[3]||=e=>y.value=!1},[Y(U(Ms))])]),J(`nav`,pl,[J(`button`,{class:j({active:f.value===`tasks`&&s.value.find(e=>e.id===d.value)?.is_inbox}),onClick:l[4]||=e=>R(`tasks`,s.value.find(e=>e.is_inbox)?.id)},[Y(U(vs)),l[42]||=X(`收集箱`,-1)],2),J(`button`,{class:j({active:f.value===`today`}),onClick:l[5]||=e=>R(`today`)},[Y(U(bs)),l[43]||=X(`今天`,-1)],2),J(`button`,{class:j({active:f.value===`countdowns`}),onClick:l[6]||=e=>R(`countdowns`)},[Y(U(cs)),l[44]||=X(`倒数日`,-1)],2),J(`button`,{class:j({active:f.value===`upcoming`}),onClick:l[7]||=e=>R(`upcoming`)},[Y(U(ss)),l[45]||=X(`最近 7 天`,-1)],2),J(`button`,{class:j({active:f.value===`habits`}),onClick:l[8]||=e=>R(`habits`)},[Y(U(Ds)),l[46]||=X(`习惯`,-1)],2),J(`button`,{class:j({active:f.value===`trash`}),onClick:l[9]||=e=>R(`trash`)},[Y(U(As)),l[47]||=X(`回收站`,-1)],2)]),J(`div`,ml,[l[48]||=J(`span`,null,`我的清单`,-1),J(`span`,null,[J(`button`,{class:`mini-icon`,"aria-label":`新建文件夹`,onClick:Ve},[Y(U(gs))]),J(`button`,{class:`mini-icon`,"aria-label":`新建清单`,onClick:l[10]||=e=>He(null)},[Y(U(Ts))])])]),J(`div`,hl,[(K(!0),q(G,null,br(o.value,e=>(K(),q(`div`,{key:e.id,class:`folder-block`},[J(`div`,gl,[J(`button`,{onClick:t=>qe(e.id)},[E.value.has(e.id)?(K(),Ui(U(us),{key:0})):(K(),Ui(U(ds),{key:1})),Y(U(gs)),X(F(e.name),1)],8,_l),J(`span`,vl,[J(`button`,{"aria-label":`重命名文件夹`,onClick:t=>Ue(`folders`,e)},[Y(U(Cs))],8,yl),J(`button`,{"aria-label":`删除文件夹`,onClick:t=>We(`folders`,e)},[Y(U(As))],8,bl),J(`button`,{"aria-label":`在文件夹中新建清单`,onClick:t=>He(e.id)},[Y(U(Ts))],8,xl)])]),(K(!0),q(G,null,br(s.value.filter(t=>t.folder_id===e.id&&!t.is_inbox),t=>W((K(),q(`button`,{key:t.id,class:j([`list-row`,{active:f.value===`tasks`&&d.value===t.id}]),onClick:e=>R(`tasks`,t.id)},[l[49]||=J(`i`,null,null,-1),J(`span`,null,F(t.name),1),J(`span`,Cl,[J(`button`,{"aria-label":`重命名清单`,onClick:Q(e=>Ue(`lists`,t),[`stop`])},[Y(U(Cs))],8,wl),J(`button`,{"aria-label":`归档清单`,onClick:Q(e=>We(`lists`,t),[`stop`])},[Y(U(as))],8,Tl)])],10,Sl)),[[to,E.value.has(e.id)]])),128))]))),128)),(K(!0),q(G,null,br(s.value.filter(e=>!e.folder_id&&!e.is_inbox),e=>(K(),q(`button`,{key:e.id,class:j([`list-row`,{active:f.value===`tasks`&&d.value===e.id}]),onClick:t=>R(`tasks`,e.id)},[l[50]||=J(`i`,null,null,-1),J(`span`,null,F(e.name),1),J(`span`,Dl,[J(`button`,{"aria-label":`重命名清单`,onClick:Q(t=>Ue(`lists`,e),[`stop`])},[Y(U(Cs))],8,Ol),J(`button`,{"aria-label":`归档清单`,onClick:Q(t=>We(`lists`,e),[`stop`])},[Y(U(as))],8,kl)])],10,El))),128)),c.value.length?(K(),q(G,{key:0},[l[52]||=J(`div`,{class:`section-title`},[J(`span`,null,`已归档清单`)],-1),(K(!0),q(G,null,br(c.value,e=>(K(),q(`button`,{key:e.id,class:`list-row archived-row`,onClick:t=>Ke(e)},[Y(U(as)),J(`span`,null,F(e.name),1),J(`span`,jl,[J(`button`,{"aria-label":`恢复清单`,onClick:Q(t=>Ke(e),[`stop`])},[Y(U(as)),l[51]||=X(`恢复`,-1)],8,Ml)])],8,Al))),128))],64)):Z(``,!0)]),J(`button`,{class:j([`settings`,{active:f.value===`settings`}]),onClick:l[11]||=e=>R(`settings`)},[Y(U(ks)),l[53]||=X(`设置`,-1)],2)],2),J(`main`,null,[J(`header`,Nl,[J(`button`,{class:`icon mobile-only`,"aria-label":`打开菜单`,onClick:l[12]||=e=>y.value=!0},[Y(U(Ss))]),J(`div`,null,[J(`h1`,null,F(fe.value),1)]),[`tasks`,`today`,`upcoming`,`trash`].includes(f.value)?(K(),q(`label`,Pl,[Y(U(Os)),W(J(`input`,{"onUpdate:modelValue":l[13]||=e=>h.value=e,placeholder:`搜索任务…`,"aria-label":`搜索任务`},null,512),[[Lo,h.value]]),l[54]||=J(`kbd`,null,`⌘ K`,-1)])):Z(``,!0)]),[`habits`,`settings`].includes(f.value)?(K(),Ui(jc,{key:f.value,view:f.value,onChanged:Ce,onNotice:N},null,8,[`view`])):f.value===`countdowns`?(K(),Ui(ol,{key:1,onNotice:N})):(K(),q(G,{key:2},[f.value===`today`?(K(),q(`h3`,Fl,[Y(U(bs)),l[55]||=X(`今日任务`,-1)])):Z(``,!0),f.value===`trash`?Z(``,!0):(K(),q(`form`,{key:1,class:`quick`,onSubmit:Q(Ee,[`prevent`])},[Y(U(fs)),W(J(`input`,{"onUpdate:modelValue":l[14]||=e=>m.value=e,class:`quick-input`,placeholder:`添加任务,按回车保存`},null,512),[[Lo,m.value]]),l[56]||=J(`button`,null,`添加`,-1)],32)),J(`div`,Il,[f.value===`trash`?Z(``,!0):(K(),q(`label`,Ll,[W(J(`input`,{"onUpdate:modelValue":l[15]||=e=>w.value=e,type:`checkbox`},null,512),[[Ro,w.value]]),l[57]||=X(` 显示已完成`,-1)])),J(`span`,null,`第 `+F(T.value)+` / `+F(te.value)+` 页 · 共 `+F(ee.value)+` 项`,1),h.value?(K(),q(`button`,{key:1,class:`link`,onClick:l[16]||=e=>h.value=``},`清除搜索`)):Z(``,!0)]),f.value!==`trash`&&te.value>1?(K(),q(`div`,Rl,[J(`button`,{class:`secondary`,disabled:T.value<=1||v.value,onClick:Ye},`上一页`,8,zl),J(`span`,null,F(T.value)+` / `+F(te.value),1),J(`button`,{class:`secondary`,disabled:T.value>=te.value||v.value,onClick:Xe},`下一页`,8,Bl)])):Z(``,!0),J(`section`,{class:j([`task-list`,{loading:v.value}])},[(K(!0),q(G,null,br(_e.value,e=>(K(),q(G,{key:e.task.id},[J(`article`,{class:j([`task-row swipeable`,{done:e.task.completed,selected:p.value?.id===e.task.id,ready:Math.abs(O.value[e.task.id]??0)>=64}]),style:le({"--swipe-x":`${O.value[e.task.id]??0}px`,"--swipe-width":`${Math.abs(O.value[e.task.id]??0)}px`}),onTouchstartPassive:t=>je(e.task,t),onTouchmovePassive:t=>Me(e.task,t),onTouchend:t=>Ne(e.task,t),onTouchcancel:t=>Pe(e.task)},[J(`span`,{class:j([`swipe-bg`,{cancel:e.task.completed}])},F(e.task.completed?`↩ 未完成`:`✓ 完成`),3),J(`div`,{class:`task-main`,role:`button`,tabindex:`0`,onClick:t=>f.value===`trash`?void 0:Fe(e.task),onKeydown:[Jo(t=>f.value===`trash`?void 0:Fe(e.task),[`enter`]),Jo(Q(t=>f.value===`trash`?void 0:Fe(e.task),[`prevent`]),[`space`])]},[J(`strong`,null,F(e.task.title),1),J(`span`,Ul,[e.task.due_at?(K(),q(`span`,Wl,[Y(U(ss)),X(F(B(e.task.due_at)),1)])):Z(``,!0),e.subtasks.length?(K(),q(`span`,Gl,[Y(U(ys)),X(F(e.subtasks.filter(e=>e.completed).length)+`/`+F(e.subtasks.length),1)])):Z(``,!0)])],40,Hl),f.value===`trash`?Z(``,!0):(K(),q(`button`,{key:0,class:`sr-only`,"aria-label":e.task.completed?`重新打开${e.task.title}`:`完成${e.task.title}`,"aria-pressed":e.task.completed,onClick:Q(t=>ke(e.task),[`stop`])},`切换任务状态`,8,Kl)),e.task.priority?(K(),q(`span`,{key:1,class:j([`priority`,`p${e.task.priority}`])},F([``,`低`,`中`,`高`][e.task.priority]),3)):Z(``,!0),f.value===`trash`?(K(),q(`button`,{key:2,class:`restore`,onClick:t=>Le(e.task)},[Y(U(as)),l[58]||=X(`恢复`,-1)],8,ql)):(K(),q(`button`,{key:3,class:`icon ghost`,"aria-label":`删除任务`,onClick:Q(t=>Ie(e.task),[`stop`])},[Y(U(As))],8,Jl)),f.value===`trash`?(K(),q(`button`,{key:4,class:`icon danger ghost`,"aria-label":`永久删除`,onClick:Q(t=>Re(e.task),[`stop`])},[Y(U(Ms))],8,Yl)):Z(``,!0)],46,Vl),(K(!0),q(G,null,br(e.subtasks,e=>(K(),q(`article`,{key:e.id,class:j([`task-row subtask swipeable`,{done:e.completed,ready:Math.abs(O.value[e.id]??0)>=64}]),style:le({"--swipe-x":`${O.value[e.id]??0}px`,"--swipe-width":`${Math.abs(O.value[e.id]??0)}px`}),onTouchstartPassive:t=>je(e,t),onTouchmovePassive:t=>Me(e,t),onTouchend:t=>Ne(e,t),onTouchcancel:t=>Pe(e)},[J(`span`,{class:j([`swipe-bg`,{cancel:e.completed}])},F(e.completed?`↩ 未完成`:`✓ 完成`),3),Y(U(_s)),J(`div`,{class:`task-main`,role:`button`,tabindex:`0`,onClick:t=>Fe(e),onKeydown:[Jo(t=>Fe(e),[`enter`]),Jo(Q(t=>Fe(e),[`prevent`]),[`space`])]},[J(`strong`,null,F(e.title),1)],40,Zl),J(`button`,{class:`sr-only`,"aria-label":e.completed?`重新打开${e.title}`:`完成${e.title}`,"aria-pressed":e.completed,onClick:Q(t=>ke(e),[`stop`])},`切换任务状态`,8,Ql)],46,Xl))),128))],64))),128)),!me.value.length&&!v.value?(K(),q(`div`,$l,[Y(U(bs)),J(`b`,null,F(h.value?`没有匹配的任务`:`这里还很安静`),1),J(`span`,null,F(h.value?`换个关键词试试`:`写下第一件想完成的小事吧`),1)])):Z(``,!0)],2),f.value===`today`?(K(),q(`div`,eu,[J(`h3`,tu,[Y(U(Ds)),l[59]||=X(`今日习惯`,-1)]),Y(jc,{view:`today-habits`,onChanged:Ce,onNotice:N})])):Z(``,!0)],64))]),J(`aside`,{class:j([`detail`,{open:b.value}])},[J(`div`,nu,[l[60]||=J(`span`,null,`任务详情`,-1),J(`button`,{class:`icon mobile-only`,"aria-label":`关闭详情`,onClick:l[17]||=e=>b.value=!1},[Y(U(Ms))])]),p.value?(K(),q(`div`,ru,[J(`div`,iu,[J(`button`,{class:j([`check large`,`p${p.value.priority}`]),onClick:l[18]||=e=>ke(p.value)},[p.value.completed?(K(),Ui(U(ls),{key:0})):Z(``,!0)],2),W(J(`textarea`,{"onUpdate:modelValue":l[19]||=e=>p.value.title=e,rows:`2`,"aria-label":`任务标题`,onBlur:z},null,544),[[Lo,p.value.title]])]),J(`label`,null,[l[61]||=X(`清单`,-1),W(J(`select`,{"onUpdate:modelValue":l[20]||=e=>p.value.list_id=e,onChange:z},[(K(!0),q(G,null,br(s.value,e=>(K(),q(`option`,{key:e.id,value:e.id},F(e.name),9,au))),128))],544),[[Bo,p.value.list_id]])]),J(`label`,null,[l[62]||=X(`截止时间`,-1),J(`input`,{value:U(Rs)(p.value.due_at),type:`datetime-local`,onChange:l[21]||=e=>{p.value.due_at=e.target.value,z()}},null,40,ou)]),J(`div`,su,[J(`div`,cu,[l[63]||=J(`span`,null,`备注`,-1),J(`span`,null,[J(`button`,{class:j({active:!C.value}),onClick:l[22]||=e=>C.value=!1},`编辑`,2),J(`button`,{class:j({active:C.value}),onClick:l[23]||=e=>C.value=!0},`预览`,2)])]),C.value?(K(),q(`div`,{key:0,class:`markdown-preview`,innerHTML:U(Fs)(p.value.description)},null,8,lu)):W((K(),q(`textarea`,{key:1,"onUpdate:modelValue":l[24]||=e=>p.value.description=e,rows:`9`,placeholder:`支持 Markdown…`,onBlur:z},null,544)),[[Lo,p.value.description]])]),J(`div`,uu,[J(`div`,du,[l[65]||=J(`span`,null,`子任务`,-1),J(`button`,{class:`link`,onClick:ze},[Y(U(Ts)),l[64]||=X(`添加`,-1)])]),(K(!0),q(G,null,br(he.value,e=>(K(),q(`button`,{key:e.id,class:`subtask-detail`,onClick:t=>ke(e)},[J(`span`,pu,[e.completed?(K(),Ui(U(ls),{key:0})):Z(``,!0)]),J(`span`,{class:j({strike:e.completed})},F(e.title),3)],8,fu))),128)),he.value.length?Z(``,!0):(K(),q(`span`,mu,`把这件事拆成更小的步骤`))]),J(`details`,{class:`more-settings`,open:S.value,onToggle:l[26]||=e=>S.value=e.target.open},[l[68]||=J(`summary`,null,`更多设置`,-1),J(`div`,gu,[J(`label`,null,[l[67]||=X(`优先级`,-1),W(J(`select`,{"onUpdate:modelValue":l[25]||=e=>p.value.priority=e,onChange:z},[...l[66]||=[J(`option`,{value:0},`无`,-1),J(`option`,{value:1},`低`,-1),J(`option`,{value:2},`中`,-1),J(`option`,{value:3},`高`,-1)]],544),[[Bo,p.value.priority,void 0,{number:!0}]])])])],40,hu),J(`div`,_u,[J(`button`,{class:`secondary`,onClick:z},`保存更改`),J(`button`,{class:`danger-text`,onClick:l[27]||=e=>Ie(p.value)},[Y(U(As)),l[69]||=X(`移到回收站`,-1)])])])):(K(),q(`div`,vu,[Y(U(ys)),l[70]||=J(`b`,null,`选中一个任务`,-1),l[71]||=J(`p`,null,`日期、优先级、子任务和 Markdown 备注会出现在这里。`,-1)]))],2),x.value?(K(),q(`div`,{key:1,class:`more-mask`,onClick:l[30]||=Q(e=>x.value=!1,[`self`])},[J(`section`,yu,[J(`div`,bu,[l[72]||=J(`b`,null,`更多`,-1),J(`button`,{class:`icon`,"aria-label":`关闭更多菜单`,onClick:l[28]||=e=>x.value=!1},[Y(U(Ms))])]),J(`button`,{onClick:l[29]||=e=>R(`settings`)},[Y(U(ks)),l[73]||=X(`设置与数据`,-1)])])])):Z(``,!0),J(`nav`,xu,[J(`button`,{class:j({active:f.value===`today`}),onClick:l[31]||=e=>R(`today`)},[Y(U(bs)),l[74]||=J(`span`,null,`今天`,-1)],2),J(`button`,{class:j({active:f.value===`habits`}),onClick:l[32]||=e=>R(`habits`)},[Y(U(Ds)),l[75]||=J(`span`,null,`习惯`,-1)],2),J(`button`,{class:j({active:f.value===`countdowns`}),onClick:l[33]||=e=>R(`countdowns`)},[Y(U(cs)),l[76]||=J(`span`,null,`倒数日`,-1)],2),J(`button`,{class:j({active:x.value||[`tasks`,`upcoming`,`trash`,`settings`].includes(f.value)}),"aria-haspopup":`dialog`,"aria-controls":`mobile-more-menu`,"aria-expanded":x.value,onClick:l[34]||=e=>x.value=!x.value},[Y(U(ms)),l[77]||=J(`span`,null,`更多`,-1)],10,Su)]),[`tasks`,`today`,`upcoming`].includes(f.value)?(K(),q(`button`,{key:2,class:`fab`,"aria-label":`添加任务`,onClick:Je},[Y(U(fs))])):Z(``,!0),Y(La,{name:`toast`},{default:Sn(()=>[_.value?(K(),q(`div`,Cu,F(_.value),1)):Z(``,!0)]),_:1}),g.value?(K(),q(`div`,wu,[X(F(g.value),1),J(`button`,{onClick:l[35]||=e=>g.value=``},[Y(U(Ms))])])):Z(``,!0),k.value?(K(),q(`div`,{key:4,class:`modal-mask`,onClick:Q(ue,[`self`])},[J(`div`,Tu,[J(`h3`,null,F(ie.value),1),A.value?(K(),q(`label`,Eu,[X(F(A.value),1),W(J(`input`,{"onUpdate:modelValue":l[36]||=e=>ae.value=e,class:`modal-input`,autofocus:``,onKeyup:Jo(de,[`enter`])},null,544),[[Lo,ae.value]])])):Z(``,!0),J(`div`,Du,[J(`button`,{class:`secondary`,onClick:ue},`取消`),J(`button`,{class:`primary-small`,onClick:de},F(oe.value),1)])])])):Z(``,!0)])):(K(),q(`div`,cl,[J(`section`,ll,[l[40]||=J(`div`,{class:`brand`},[X(`do`),J(`span`,null,`do`)],-1),J(`p`,null,F(t.value?`欢迎回来,继续把生活理顺。`:`创建你的 dodo`),1),J(`label`,null,[l[38]||=X(`用户名`,-1),W(J(`input`,{"onUpdate:modelValue":l[0]||=e=>i.value=e,autocomplete:`username`,placeholder:`你的用户名`},null,512),[[Lo,i.value]])]),J(`label`,null,[l[39]||=X(`密码`,-1),W(J(`input`,{"onUpdate:modelValue":l[1]||=e=>a.value=e,type:`password`,autocomplete:`current-password`,placeholder:`至少 12 位`,onKeyup:Jo(be,[`enter`])},null,544),[[Lo,a.value]])]),J(`button`,{class:`primary`,onClick:be},F(t.value?`登录`:`开始使用`),1),g.value?(K(),q(`small`,ul,F(g.value),1)):Z(``,!0)])])):(K(),q(`div`,sl,[...l[37]||=[J(`span`,{class:`loader`},null,-1),X(`正在打开 dodo…`,-1)]]))}})).mount(`#app`),`serviceWorker`in navigator&&(navigator.serviceWorker.getRegistrations().then(e=>{e.forEach(e=>e.unregister())}),caches.keys().then(e=>e.forEach(e=>caches.delete(e)))); |