gear-second 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(je,G){typeof exports=="object"&&typeof module<"u"?module.exports=G():typeof define=="function"&&define.amd?define(G):(je=typeof globalThis<"u"?globalThis:je||self,je._gearSecond_=G())})(this,function(){"use strict";var np=Object.defineProperty;var op=(je,G,Ne)=>G in je?np(je,G,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):je[G]=Ne;var Zi=(je,G,Ne)=>(op(je,typeof G!="symbol"?G+"":G,Ne),Ne);function je(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const G={},Ne=[],qe=()=>{},Xi=()=>!1,Ji=/^on[^a-z]/,_n=e=>Ji.test(e),no=e=>e.startsWith("onUpdate:"),ge=Object.assign,oo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qi=Object.prototype.hasOwnProperty,se=(e,t)=>Qi.call(e,t),R=Array.isArray,Bt=e=>yn(e)==="[object Map]",dr=e=>yn(e)==="[object Set]",Q=e=>typeof e=="function",ve=e=>typeof e=="string",ro=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",pr=e=>pe(e)&&Q(e.then)&&Q(e.catch),hr=Object.prototype.toString,yn=e=>hr.call(e),Gi=e=>yn(e).slice(8,-1),gr=e=>yn(e)==="[object Object]",so=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wn=je(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},el=/-(\w)/g,Le=xn(e=>e.replace(el,(t,n)=>n?n.toUpperCase():"")),tl=/\B([A-Z])/g,Fe=xn(e=>e.replace(tl,"-$1").toLowerCase()),kn=xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),io=xn(e=>e?`on${kn(e)}`:""),en=(e,t)=>!Object.is(e,t),Cn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Tn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},lo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ao=e=>{const t=ve(e)?Number(e):NaN;return isNaN(t)?e:t};let mr;const co=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Re(e){if(R(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ve(o)?sl(o):Re(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(ve(e))return e;if(pe(e))return e}}const nl=/;(?![^(]*\))/g,ol=/:([^]+)/,rl=new RegExp("\\/\\*.*?\\*\\/","gs");function sl(e){const t={};return e.replace(rl,"").split(nl).forEach(n=>{if(n){const o=n.split(ol);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function _e(e){let t="";if(ve(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const o=_e(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const il=je("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function vr(e){return!!e||e===""}const at=e=>ve(e)?e:e==null?"":R(e)||pe(e)&&(e.toString===hr||!Q(e.toString))?JSON.stringify(e,br,2):String(e),br=(e,t)=>t&&t.__v_isRef?br(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:dr(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!R(t)&&!gr(t)?String(t):t;let ze;class ll{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){ze=this}off(){ze=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function al(e,t=ze){t&&t.active&&t.effects.push(e)}function _r(){return ze}function cl(e){ze&&ze.cleanups.push(e)}const uo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yr=e=>(e.w&ct)>0,wr=e=>(e.n&ct)>0,ul=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ct},fl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];yr(r)&&!wr(r)?r.delete(e):t[n++]=r,r.w&=~ct,r.n&=~ct}t.length=n}},fo=new WeakMap;let tn=0,ct=1;const po=30;let Ye;const kt=Symbol(""),ho=Symbol("");class go{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,al(this,o)}run(){if(!this.active)return this.fn();let t=Ye,n=ut;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ye,Ye=this,ut=!0,ct=1<<++tn,tn<=po?ul(this):xr(this),this.fn()}finally{tn<=po&&fl(this),ct=1<<--tn,Ye=this.parent,ut=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ye===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ut=!0;const kr=[];function Dt(){kr.push(ut),ut=!1}function Nt(){const e=kr.pop();ut=e===void 0?!0:e}function $e(e,t,n){if(ut&&Ye){let o=fo.get(e);o||fo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=uo()),Cr(r)}}function Cr(e,t){let n=!1;tn<=po?wr(e)||(e.n|=ct,n=!yr(e)):n=!e.has(Ye),n&&(e.add(Ye),Ye.deps.push(e))}function ot(e,t,n,o,r,s){const i=fo.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&R(e)){const a=Number(o);i.forEach((c,u)=>{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":R(e)?so(n)&&l.push(i.get("length")):(l.push(i.get(kt)),Bt(e)&&l.push(i.get(ho)));break;case"delete":R(e)||(l.push(i.get(kt)),Bt(e)&&l.push(i.get(ho)));break;case"set":Bt(e)&&l.push(i.get(kt));break}if(l.length===1)l[0]&&mo(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);mo(uo(a))}}function mo(e,t){const n=R(e)?e:[...e];for(const o of n)o.computed&&Tr(o);for(const o of n)o.computed||Tr(o)}function Tr(e,t){(e!==Ye||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const dl=je("__proto__,__v_isRef,__isVue"),Pr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ro)),pl=vo(),hl=vo(!1,!0),gl=vo(!0),Or=ml();function ml(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=le(this);for(let s=0,i=this.length;s<i;s++)$e(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(le)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Dt();const o=le(this)[t].apply(this,n);return Nt(),o}}),e}function vl(e){const t=le(this);return $e(t,"has",e),t.hasOwnProperty(e)}function vo(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Al:zr:t?Lr:jr).get(o))return o;const i=R(o);if(!e){if(i&&se(Or,r))return Reflect.get(Or,r,s);if(r==="hasOwnProperty")return vl}const l=Reflect.get(o,r,s);return(ro(r)?Pr.has(r):dl(r))||(e||$e(o,"get",r),t)?l:ye(l)?i&&so(r)?l:l.value:pe(l)?e?yo(l):nn(l):l}}const bl=Ir(),_l=Ir(!0);function Ir(e=!1){return function(n,o,r,s){let i=n[o];if(Rt(i)&&ye(i)&&!ye(r))return!1;if(!e&&(!Mn(r)&&!Rt(r)&&(i=le(i),r=le(r)),!R(n)&&ye(i)&&!ye(r)))return i.value=r,!0;const l=R(n)&&so(o)?Number(o)<n.length:se(n,o),a=Reflect.set(n,o,r,s);return n===le(s)&&(l?en(r,i)&&ot(n,"set",o,r):ot(n,"add",o,r)),a}}function yl(e,t){const n=se(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ot(e,"delete",t,void 0),o}function wl(e,t){const n=Reflect.has(e,t);return(!ro(t)||!Pr.has(t))&&$e(e,"has",t),n}function xl(e){return $e(e,"iterate",R(e)?"length":kt),Reflect.ownKeys(e)}const Er={get:pl,set:bl,deleteProperty:yl,has:wl,ownKeys:xl},kl={get:gl,set(e,t){return!0},deleteProperty(e,t){return!0}},Cl=ge({},Er,{get:hl,set:_l}),bo=e=>e,Pn=e=>Reflect.getPrototypeOf(e);function On(e,t,n=!1,o=!1){e=e.__v_raw;const r=le(e),s=le(t);n||(t!==s&&$e(r,"get",t),$e(r,"get",s));const{has:i}=Pn(r),l=o?bo:n?xo:on;if(i.call(r,t))return l(e.get(t));if(i.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function In(e,t=!1){const n=this.__v_raw,o=le(n),r=le(e);return t||(e!==r&&$e(o,"has",e),$e(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function En(e,t=!1){return e=e.__v_raw,!t&&$e(le(e),"iterate",kt),Reflect.get(e,"size",e)}function $r(e){e=le(e);const t=le(this);return Pn(t).has.call(t,e)||(t.add(e),ot(t,"add",e,e)),this}function Sr(e,t){t=le(t);const n=le(this),{has:o,get:r}=Pn(n);let s=o.call(n,e);s||(e=le(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?en(t,i)&&ot(n,"set",e,t):ot(n,"add",e,t),this}function Mr(e){const t=le(this),{has:n,get:o}=Pn(t);let r=n.call(t,e);r||(e=le(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ot(t,"delete",e,void 0),s}function Ar(){const e=le(this),t=e.size!==0,n=e.clear();return t&&ot(e,"clear",void 0,void 0),n}function $n(e,t){return function(o,r){const s=this,i=s.__v_raw,l=le(i),a=t?bo:e?xo:on;return!e&&$e(l,"iterate",kt),i.forEach((c,u)=>o.call(r,a(c),a(u),s))}}function Sn(e,t,n){return function(...o){const r=this.__v_raw,s=le(r),i=Bt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),u=n?bo:t?xo:on;return!t&&$e(s,"iterate",a?ho:kt),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:l?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(s){return On(this,s)},get size(){return En(this)},has:In,add:$r,set:Sr,delete:Mr,clear:Ar,forEach:$n(!1,!1)},t={get(s){return On(this,s,!1,!0)},get size(){return En(this)},has:In,add:$r,set:Sr,delete:Mr,clear:Ar,forEach:$n(!1,!0)},n={get(s){return On(this,s,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:$n(!0,!1)},o={get(s){return On(this,s,!0,!0)},get size(){return En(this,!0)},has(s){return In.call(this,s,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:$n(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Sn(s,!1,!1),n[s]=Sn(s,!0,!1),t[s]=Sn(s,!1,!0),o[s]=Sn(s,!0,!0)}),[e,n,t,o]}const[Pl,Ol,Il,El]=Tl();function _o(e,t){const n=t?e?El:Il:e?Ol:Pl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(se(n,r)&&r in o?n:o,r,s)}const $l={get:_o(!1,!1)},Sl={get:_o(!1,!0)},Ml={get:_o(!0,!1)},jr=new WeakMap,Lr=new WeakMap,zr=new WeakMap,Al=new WeakMap;function jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ll(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(Gi(e))}function nn(e){return Rt(e)?e:wo(e,!1,Er,$l,jr)}function zl(e){return wo(e,!1,Cl,Sl,Lr)}function yo(e){return wo(e,!0,kl,Ml,zr)}function wo(e,t,n,o,r){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Ll(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Ft(e){return Rt(e)?Ft(e.__v_raw):!!(e&&e.__v_isReactive)}function Rt(e){return!!(e&&e.__v_isReadonly)}function Mn(e){return!!(e&&e.__v_isShallow)}function Br(e){return Ft(e)||Rt(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Dr(e){return Tn(e,"__v_skip",!0),e}const on=e=>pe(e)?nn(e):e,xo=e=>pe(e)?yo(e):e;function Nr(e){ut&&Ye&&(e=le(e),Cr(e.dep||(e.dep=uo())))}function Fr(e,t){e=le(e);const n=e.dep;n&&mo(n)}function ye(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return Hr(e,!1)}function Rr(e){return Hr(e,!0)}function Hr(e,t){return ye(e)?e:new Bl(e,t)}class Bl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:le(t),this._value=n?t:on(t)}get value(){return Nr(this),this._value}set value(t){const n=this.__v_isShallow||Mn(t)||Rt(t);t=n?t:le(t),en(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:on(t),Fr(this))}}function z(e){return ye(e)?e.value:e}const Dl={get:(e,t,n)=>z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Vr(e){return Ft(e)?e:new Proxy(e,Dl)}class Nl{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new go(t,()=>{this._dirty||(this._dirty=!0,Fr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=le(this);return Nr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Fl(e,t,n=!1){let o,r;const s=Q(e);return s?(o=e,r=qe):(o=e.get,r=e.set),new Nl(o,r,s||!r,n)}function sp(e,...t){}function dt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){An(s,t,n)}return r}function He(e,t,n,o){if(Q(e)){const s=dt(e,t,n,o);return s&&pr(s)&&s.catch(i=>{An(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(He(e[s],t,n,o));return r}function An(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=n;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){dt(a,null,10,[e,i,l]);return}}Rl(e,n,r,o)}function Rl(e,t,n,o=!0){console.error(e)}let rn=!1,ko=!1;const Pe=[];let Qe=0;const Ht=[];let rt=null,Ct=0;const Wr=Promise.resolve();let Co=null;function st(e){const t=Co||Wr;return e?t.then(this?e.bind(this):e):t}function Hl(e){let t=Qe+1,n=Pe.length;for(;t<n;){const o=t+n>>>1;sn(Pe[o])<e?t=o+1:n=o}return t}function To(e){(!Pe.length||!Pe.includes(e,rn&&e.allowRecurse?Qe+1:Qe))&&(e.id==null?Pe.push(e):Pe.splice(Hl(e.id),0,e),Kr())}function Kr(){!rn&&!ko&&(ko=!0,Co=Wr.then(Yr))}function Vl(e){const t=Pe.indexOf(e);t>Qe&&Pe.splice(t,1)}function Wl(e){R(e)?Ht.push(...e):(!rt||!rt.includes(e,e.allowRecurse?Ct+1:Ct))&&Ht.push(e),Kr()}function Ur(e,t=rn?Qe+1:0){for(;t<Pe.length;t++){const n=Pe[t];n&&n.pre&&(Pe.splice(t,1),t--,n())}}function qr(e){if(Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,rt){rt.push(...t);return}for(rt=t,rt.sort((n,o)=>sn(n)-sn(o)),Ct=0;Ct<rt.length;Ct++)rt[Ct]();rt=null,Ct=0}}const sn=e=>e.id==null?1/0:e.id,Kl=(e,t)=>{const n=sn(e)-sn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Yr(e){ko=!1,rn=!0,Pe.sort(Kl);const t=qe;try{for(Qe=0;Qe<Pe.length;Qe++){const n=Pe[Qe];n&&n.active!==!1&&dt(n,null,14)}}finally{Qe=0,Pe.length=0,qr(),rn=!1,Co=null,(Pe.length||Ht.length)&&Yr()}}function Ul(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||G;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:h}=o[u]||G;h&&(r=n.map(m=>ve(m)?m.trim():m)),d&&(r=n.map(lo))}let l,a=o[l=io(t)]||o[l=io(Le(t))];!a&&s&&(a=o[l=io(Fe(t))]),a&&He(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,He(c,e,6,r)}}function Zr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!Q(e)){const a=c=>{const u=Zr(c,t,!0);u&&(l=!0,ge(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(pe(e)&&o.set(e,null),null):(R(s)?s.forEach(a=>i[a]=null):ge(i,s),pe(e)&&o.set(e,i),i)}function jn(e,t){return!e||!_n(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,Fe(t))||se(e,t))}let Ce=null,Xr=null;function Ln(e){const t=Ce;return Ce=e,Xr=e&&e.type.__scopeId||null,t}function ie(e,t=Ce,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ts(-1);const s=Ln(t);let i;try{i=e(...r)}finally{Ln(s),o._d&&Ts(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function ip(){}function Po(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:h,setupState:m,ctx:x,inheritAttrs:k}=e;let H,j;const L=Ln(e);try{if(n.shapeFlag&4){const C=r||o;H=et(u.call(C,C,d,s,m,h,x)),j=a}else{const C=t;H=et(C.length>1?C(s,{attrs:a,slots:l,emit:c}):C(s,null)),j=t.props?a:ql(a)}}catch(C){un.length=0,An(C,e,1),H=V(We)}let J=H;if(j&&k!==!1){const C=Object.keys(j),{shapeFlag:Z}=J;C.length&&Z&7&&(i&&C.some(no)&&(j=Yl(j,i)),J=ht(J,j))}return n.dirs&&(J=ht(J),J.dirs=J.dirs?J.dirs.concat(n.dirs):n.dirs),n.transition&&(J.transition=n.transition),H=J,Ln(L),H}const ql=e=>{let t;for(const n in e)(n==="class"||n==="style"||_n(n))&&((t||(t={}))[n]=e[n]);return t},Yl=(e,t)=>{const n={};for(const o in e)(!no(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Zl(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Jr(o,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(i[h]!==o[h]&&!jn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Jr(o,i,c):!0:!!i;return!1}function Jr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!jn(n,s))return!0}return!1}function Xl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Jl=e=>e.__isSuspense;function Ql(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Wl(e)}function Gl(e,t){return Oo(e,null,t)}const zn={};function he(e,t,n){return Oo(e,t,n)}function Oo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=G){var l;const a=_r()===((l=ke)==null?void 0:l.scope)?ke:null;let c,u=!1,d=!1;if(ye(e)?(c=()=>e.value,u=Mn(e)):Ft(e)?(c=()=>e,o=!0):R(e)?(d=!0,u=e.some(C=>Ft(C)||Mn(C)),c=()=>e.map(C=>{if(ye(C))return C.value;if(Ft(C))return Tt(C);if(Q(C))return dt(C,a,2)})):Q(e)?t?c=()=>dt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),He(e,a,3,[m])}:c=qe,t&&o){const C=c;c=()=>Tt(C())}let h,m=C=>{h=L.onStop=()=>{dt(C,a,4)}},x;if(dn)if(m=qe,t?n&&He(t,a,3,[c(),d?[]:void 0,m]):c(),r==="sync"){const C=Ua();x=C.__watcherHandles||(C.__watcherHandles=[])}else return qe;let k=d?new Array(e.length).fill(zn):zn;const H=()=>{if(L.active)if(t){const C=L.run();(o||u||(d?C.some((Z,q)=>en(Z,k[q])):en(C,k)))&&(h&&h(),He(t,a,3,[C,k===zn?void 0:d&&k[0]===zn?[]:k,m]),k=C)}else L.run()};H.allowRecurse=!!t;let j;r==="sync"?j=H:r==="post"?j=()=>Se(H,a&&a.suspense):(H.pre=!0,a&&(H.id=a.uid),j=()=>To(H));const L=new go(c,j);t?n?H():k=L.run():r==="post"?Se(L.run.bind(L),a&&a.suspense):L.run();const J=()=>{L.stop(),a&&a.scope&&oo(a.scope.effects,L)};return x&&x.push(J),J}function ea(e,t,n){const o=this.proxy,r=ve(e)?e.includes(".")?Qr(o,e):()=>o[e]:e.bind(o,o);let s;Q(t)?s=t:(s=t.handler,n=t);const i=ke;Kt(this);const l=Oo(r,s.bind(o),n);return i?Kt(i):$t(),l}function Qr(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Tt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ye(e))Tt(e.value,t);else if(R(e))for(let n=0;n<e.length;n++)Tt(e[n],t);else if(dr(e)||Bt(e))e.forEach(n=>{Tt(n,t)});else if(gr(e))for(const n in e)Tt(e[n],t);return e}function pt(e,t){const n=Ce;if(n===null)return e;const o=qn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,c=G]=t[s];i&&(Q(i)&&(i={mounted:i,updated:i}),i.deep&&Tt(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function Pt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(Dt(),He(a,n,8,[e.el,l,e,t]),Nt())}}function ta(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ge(()=>{e.isMounted=!0}),rs(()=>{e.isUnmounting=!0}),e}const Ve=[Function,Array],Gr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ve,onEnter:Ve,onAfterEnter:Ve,onEnterCancelled:Ve,onBeforeLeave:Ve,onLeave:Ve,onAfterLeave:Ve,onLeaveCancelled:Ve,onBeforeAppear:Ve,onAppear:Ve,onAfterAppear:Ve,onAppearCancelled:Ve},na={name:"BaseTransition",props:Gr,setup(e,{slots:t}){const n=Is(),o=ta();let r;return()=>{const s=t.default&&ns(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const k of s)if(k.type!==We){i=k;break}}const l=le(e),{mode:a}=l;if(o.isLeaving)return Eo(i);const c=ts(i);if(!c)return Eo(i);const u=Io(c,l,o,n);$o(c,u);const d=n.subTree,h=d&&ts(d);let m=!1;const{getTransitionKey:x}=c.type;if(x){const k=x();r===void 0?r=k:k!==r&&(r=k,m=!0)}if(h&&h.type!==We&&(!Et(c,h)||m)){const k=Io(h,l,o,n);if($o(h,k),a==="out-in")return o.isLeaving=!0,k.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Eo(i);a==="in-out"&&c.type!==We&&(k.delayLeave=(H,j,L)=>{const J=es(o,h);J[String(h.key)]=h,H._leaveCb=()=>{j(),H._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=L})}return i}}};function es(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Io(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:h,onAfterLeave:m,onLeaveCancelled:x,onBeforeAppear:k,onAppear:H,onAfterAppear:j,onAppearCancelled:L}=t,J=String(e.key),C=es(n,e),Z=(v,I)=>{v&&He(v,o,9,I)},q=(v,I)=>{const F=I[1];Z(v,I),R(v)?v.every(ce=>ce.length<=1)&&F():v.length<=1&&F()},K={mode:s,persisted:i,beforeEnter(v){let I=l;if(!n.isMounted)if(r)I=k||l;else return;v._leaveCb&&v._leaveCb(!0);const F=C[J];F&&Et(e,F)&&F.el._leaveCb&&F.el._leaveCb(),Z(I,[v])},enter(v){let I=a,F=c,ce=u;if(!n.isMounted)if(r)I=H||a,F=j||c,ce=L||u;else return;let $=!1;const oe=v._enterCb=P=>{$||($=!0,P?Z(ce,[v]):Z(F,[v]),K.delayedLeave&&K.delayedLeave(),v._enterCb=void 0)};I?q(I,[v,oe]):oe()},leave(v,I){const F=String(e.key);if(v._enterCb&&v._enterCb(!0),n.isUnmounting)return I();Z(d,[v]);let ce=!1;const $=v._leaveCb=oe=>{ce||(ce=!0,I(),oe?Z(x,[v]):Z(m,[v]),v._leaveCb=void 0,C[F]===e&&delete C[F])};C[F]=e,h?q(h,[v,$]):$()},clone(v){return Io(v,t,n,o)}};return K}function Eo(e){if(Bn(e))return e=ht(e),e.children=null,e}function ts(e){return Bn(e)?e.children?e.children[0]:void 0:e}function $o(e,t){e.shapeFlag&6&&e.component?$o(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ns(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===xe?(i.patchFlag&128&&r++,o=o.concat(ns(i.children,t,l))):(t||i.type!==We)&&o.push(l!=null?ht(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Te(e,t){return Q(e)?(()=>ge({name:e.name},t,{setup:e}))():e}const ln=e=>!!e.type.__asyncLoader,Bn=e=>e.type.__isKeepAlive;function oa(e,t){os(e,"a",t)}function ra(e,t){os(e,"da",t)}function os(e,t,n=ke){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Dn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Bn(r.parent.vnode)&&sa(o,t,n,r),r=r.parent}}function sa(e,t,n,o){const r=Dn(t,e,o,!0);lt(()=>{oo(o[t],r)},n)}function Dn(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Dt(),Kt(n);const l=He(t,n,e,i);return $t(),Nt(),l});return o?r.unshift(s):r.push(s),s}}const it=e=>(t,n=ke)=>(!dn||e==="sp")&&Dn(e,(...o)=>t(...o),n),ia=it("bm"),Ge=it("m"),la=it("bu"),aa=it("u"),rs=it("bum"),lt=it("um"),ca=it("sp"),ua=it("rtg"),fa=it("rtc");function da(e,t=ke){Dn("ec",e,t)}const So="components";function pa(e,t){return is(So,e,!0,t)||e}const ss=Symbol.for("v-ndc");function ha(e){return ve(e)?is(So,e,!1)||e:e||ss}function is(e,t,n=!0,o=!1){const r=Ce||ke;if(r){const s=r.type;if(e===So){const l=Va(s,!1);if(l&&(l===t||l===Le(t)||l===kn(Le(t))))return s}const i=ls(r[e]||s[e],t)||ls(r.appContext[e],t);return!i&&o?s:i}}function ls(e,t){return e&&(e[t]||e[Le(t)]||e[kn(Le(t))])}function Nn(e,t,n,o){let r;const s=n&&n[o];if(R(e)||ve(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(pe(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s&&s[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const c=i[l];r[l]=t(e[c],c,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function ga(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(R(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function Oe(e,t,n={},o,r){if(Ce.isCE||Ce.parent&&ln(Ce.parent)&&Ce.parent.isCE)return t!=="default"&&(n.name=t),V("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),S();const i=s&&as(s(n)),l=Ie(xe,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function as(e){return e.some(t=>Wn(t)?!(t.type===We||t.type===xe&&!as(t.children)):!0)?e:null}const Mo=e=>e?$s(e)?qn(e)||e.proxy:Mo(e.parent):null,an=ge(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=>Mo(e.parent),$root:e=>Mo(e.root),$emit:e=>e.emit,$options:e=>Lo(e),$forceUpdate:e=>e.f||(e.f=()=>To(e.update)),$nextTick:e=>e.n||(e.n=st.bind(e.proxy)),$watch:e=>ea.bind(e)}),Ao=(e,t)=>e!==G&&!e.__isScriptSetup&&se(e,t),ma={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Ao(o,t))return i[t]=1,o[t];if(r!==G&&se(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&se(c,t))return i[t]=3,s[t];if(n!==G&&se(n,t))return i[t]=4,n[t];jo&&(i[t]=0)}}const u=an[t];let d,h;if(u)return t==="$attrs"&&$e(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==G&&se(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,se(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Ao(r,t)?(r[t]=n,!0):o!==G&&se(o,t)?(o[t]=n,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||e!==G&&se(e,i)||Ao(t,i)||(l=s[0])&&se(l,i)||se(o,i)||se(an,i)||se(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cs(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let jo=!0;function va(e){const t=Lo(e),n=e.proxy,o=e.ctx;jo=!1,t.beforeCreate&&us(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:m,updated:x,activated:k,deactivated:H,beforeDestroy:j,beforeUnmount:L,destroyed:J,unmounted:C,render:Z,renderTracked:q,renderTriggered:K,errorCaptured:v,serverPrefetch:I,expose:F,inheritAttrs:ce,components:$,directives:oe,filters:P}=t;if(c&&ba(c,o,null),i)for(const re in i){const ae=i[re];Q(ae)&&(o[re]=ae.bind(n))}if(r){const re=r.call(n,n);pe(re)&&(e.data=nn(re))}if(jo=!0,s)for(const re in s){const ae=s[re],Ke=Q(ae)?ae.bind(n,n):Q(ae.get)?ae.get.bind(n,n):qe,Ue=!Q(ae)&&Q(ae.set)?ae.set.bind(n):qe,Xe=fe({get:Ke,set:Ue});Object.defineProperty(o,re,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:Ae=>Xe.value=Ae})}if(l)for(const re in l)fs(l[re],o,n,re);if(a){const re=Q(a)?a.call(n):a;Reflect.ownKeys(re).forEach(ae=>{Hn(ae,re[ae])})}u&&us(u,e,"c");function X(re,ae){R(ae)?ae.forEach(Ke=>re(Ke.bind(n))):ae&&re(ae.bind(n))}if(X(ia,d),X(Ge,h),X(la,m),X(aa,x),X(oa,k),X(ra,H),X(da,v),X(fa,q),X(ua,K),X(rs,L),X(lt,C),X(ca,I),R(F))if(F.length){const re=e.exposed||(e.exposed={});F.forEach(ae=>{Object.defineProperty(re,ae,{get:()=>n[ae],set:Ke=>n[ae]=Ke})})}else e.exposed||(e.exposed={});Z&&e.render===qe&&(e.render=Z),ce!=null&&(e.inheritAttrs=ce),$&&(e.components=$),oe&&(e.directives=oe)}function ba(e,t,n=qe){R(e)&&(e=zo(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=Ot(r.from||o,r.default,!0):s=Ot(r.from||o):s=Ot(r),ye(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function us(e,t,n){He(R(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fs(e,t,n,o){const r=o.includes(".")?Qr(n,o):()=>n[o];if(ve(e)){const s=t[e];Q(s)&&he(r,s)}else if(Q(e))he(r,e.bind(n));else if(pe(e))if(R(e))e.forEach(s=>fs(s,t,n,o));else{const s=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(s)&&he(r,s,e)}}function Lo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Fn(a,c,i,!0)),Fn(a,t,i)),pe(t)&&s.set(t,a),a}function Fn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Fn(e,s,n,!0),r&&r.forEach(i=>Fn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=_a[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const _a={data:ds,props:ps,emits:ps,methods:cn,computed:cn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:cn,directives:cn,watch:wa,provide:ds,inject:ya};function ds(e,t){return t?e?function(){return ge(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function ya(e,t){return cn(zo(e),zo(t))}function zo(e){if(R(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?ge(Object.create(null),e,t):t}function ps(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:ge(Object.create(null),cs(e),cs(t??{})):t}function wa(e,t){if(!e)return t;if(!t)return e;const n=ge(Object.create(null),e);for(const o in t)n[o]=Ee(e[o],t[o]);return n}function hs(){return{app:null,config:{isNativeTag:Xi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xa=0;function ka(e,t){return function(o,r=null){Q(o)||(o=ge({},o)),r!=null&&!pe(r)&&(r=null);const s=hs(),i=new Set;let l=!1;const a=s.app={_uid:xa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:qa,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&Q(c.install)?(i.add(c),c.install(a,...u)):Q(c)&&(i.add(c),c(a,...u))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,u){return u?(s.components[c]=u,a):s.components[c]},directive(c,u){return u?(s.directives[c]=u,a):s.directives[c]},mount(c,u,d){if(!l){const h=V(o,r);return h.appContext=s,u&&t?t(h,c):e(h,c,d),l=!0,a._container=c,c.__vue_app__=a,qn(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return s.provides[c]=u,a},runWithContext(c){Rn=a;try{return c()}finally{Rn=null}}};return a}}let Rn=null;function Hn(e,t){if(ke){let n=ke.provides;const o=ke.parent&&ke.parent.provides;o===n&&(n=ke.provides=Object.create(o)),n[e]=t}}function Ot(e,t,n=!1){const o=ke||Ce;if(o||Rn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Rn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Q(t)?t.call(o&&o.proxy):t}}function Ca(e,t,n,o=!1){const r={},s={};Tn(s,Kn,1),e.propsDefaults=Object.create(null),gs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:zl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ta(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=le(r),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(jn(e.emitsOptions,h))continue;const m=t[h];if(a)if(se(s,h))m!==s[h]&&(s[h]=m,c=!0);else{const x=Le(h);r[x]=Bo(a,l,x,m,e,!1)}else m!==s[h]&&(s[h]=m,c=!0)}}}else{gs(e,t,r,s)&&(c=!0);let u;for(const d in l)(!t||!se(t,d)&&((u=Fe(d))===d||!se(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Bo(a,l,d,void 0,e,!0)):delete r[d]);if(s!==l)for(const d in s)(!t||!se(t,d))&&(delete s[d],c=!0)}c&&ot(e,"set","$attrs")}function gs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(wn(a))continue;const c=t[a];let u;r&&se(r,u=Le(a))?!s||!s.includes(u)?n[u]=c:(l||(l={}))[u]=c:jn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=le(n),c=l||G;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Bo(r,a,d,c[d],e,!se(c,d))}}return i}function Bo(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=se(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&Q(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Kt(r),o=c[n]=a.call(null,t),$t())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Fe(n))&&(o=!0))}return o}function ms(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!Q(e)){const u=d=>{a=!0;const[h,m]=ms(d,t,!0);ge(i,h),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!a)return pe(e)&&o.set(e,Ne),Ne;if(R(s))for(let u=0;u<s.length;u++){const d=Le(s[u]);vs(d)&&(i[d]=G)}else if(s)for(const u in s){const d=Le(u);if(vs(d)){const h=s[u],m=i[d]=R(h)||Q(h)?{type:h}:ge({},h);if(m){const x=ys(Boolean,m.type),k=ys(String,m.type);m[0]=x>-1,m[1]=k<0||x<k,(x>-1||se(m,"default"))&&l.push(d)}}}const c=[i,l];return pe(e)&&o.set(e,c),c}function vs(e){return e[0]!=="$"}function bs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function _s(e,t){return bs(e)===bs(t)}function ys(e,t){return R(t)?t.findIndex(n=>_s(n,e)):Q(t)&&_s(t,e)?0:-1}const ws=e=>e[0]==="_"||e==="$stable",Do=e=>R(e)?e.map(et):[et(e)],Pa=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Do(t(...r)),n);return o._c=!1,o},xs=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ws(r))continue;const s=e[r];if(Q(s))t[r]=Pa(r,s,o);else if(s!=null){const i=Do(s);t[r]=()=>i}}},ks=(e,t)=>{const n=Do(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),Tn(t,"_",n)):xs(t,e.slots={})}else e.slots={},t&&ks(e,t);Tn(e.slots,Kn,1)},Ia=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=G;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(ge(r,t),!n&&l===1&&delete r._):(s=!t.$stable,xs(t,r)),i=t}else t&&(ks(e,t),i={default:1});if(s)for(const l in r)!ws(l)&&!(l in i)&&delete r[l]};function No(e,t,n,o,r=!1){if(R(e)){e.forEach((h,m)=>No(h,t&&(R(t)?t[m]:t),n,o,r));return}if(ln(o)&&!r)return;const s=o.shapeFlag&4?qn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,u=l.refs===G?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ve(c)?(u[c]=null,se(d,c)&&(d[c]=null)):ye(c)&&(c.value=null)),Q(a))dt(a,l,12,[i,u]);else{const h=ve(a),m=ye(a);if(h||m){const x=()=>{if(e.f){const k=h?se(d,a)?d[a]:u[a]:a.value;r?R(k)&&oo(k,s):R(k)?k.includes(s)||k.push(s):h?(u[a]=[s],se(d,a)&&(d[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else h?(u[a]=i,se(d,a)&&(d[a]=i)):m&&(a.value=i,e.k&&(u[e.k]=i))};i?(x.id=-1,Se(x,n)):x()}}}const Se=Ql;function Ea(e){return $a(e)}function $a(e,t){const n=co();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:m=qe,insertStaticContent:x}=e,k=(f,p,g,_=null,b=null,T=null,E=!1,w=null,O=!!p.dynamicChildren)=>{if(f===p)return;f&&!Et(f,p)&&(_=wt(f),Ae(f,b,T,!0),f=null),p.patchFlag===-2&&(O=!1,p.dynamicChildren=null);const{type:y,ref:B,shapeFlag:M}=p;switch(y){case Vn:H(f,p,g,_);break;case We:j(f,p,g,_);break;case Fo:f==null&&L(p,g,_,E);break;case xe:$(f,p,g,_,b,T,E,w,O);break;default:M&1?Z(f,p,g,_,b,T,E,w,O):M&6?oe(f,p,g,_,b,T,E,w,O):(M&64||M&128)&&y.process(f,p,g,_,b,T,E,w,O,xt)}B!=null&&b&&No(B,f&&f.ref,T,p||f,!p)},H=(f,p,g,_)=>{if(f==null)o(p.el=l(p.children),g,_);else{const b=p.el=f.el;p.children!==f.children&&c(b,p.children)}},j=(f,p,g,_)=>{f==null?o(p.el=a(p.children||""),g,_):p.el=f.el},L=(f,p,g,_)=>{[f.el,f.anchor]=x(f.children,p,g,_,f.el,f.anchor)},J=({el:f,anchor:p},g,_)=>{let b;for(;f&&f!==p;)b=h(f),o(f,g,_),f=b;o(p,g,_)},C=({el:f,anchor:p})=>{let g;for(;f&&f!==p;)g=h(f),r(f),f=g;r(p)},Z=(f,p,g,_,b,T,E,w,O)=>{E=E||p.type==="svg",f==null?q(p,g,_,b,T,E,w,O):I(f,p,b,T,E,w,O)},q=(f,p,g,_,b,T,E,w)=>{let O,y;const{type:B,props:M,shapeFlag:D,transition:N,dirs:ne}=f;if(O=f.el=i(f.type,T,M&&M.is,M),D&8?u(O,f.children):D&16&&v(f.children,O,null,_,b,T&&B!=="foreignObject",E,w),ne&&Pt(f,null,_,"created"),K(O,f,f.scopeId,E,_),M){for(const ue in M)ue!=="value"&&!wn(ue)&&s(O,ue,null,M[ue],T,f.children,_,b,me);"value"in M&&s(O,"value",null,M.value),(y=M.onVnodeBeforeMount)&&tt(y,_,f)}ne&&Pt(f,null,_,"beforeMount");const de=(!b||b&&!b.pendingBranch)&&N&&!N.persisted;de&&N.beforeEnter(O),o(O,p,g),((y=M&&M.onVnodeMounted)||de||ne)&&Se(()=>{y&&tt(y,_,f),de&&N.enter(O),ne&&Pt(f,null,_,"mounted")},b)},K=(f,p,g,_,b)=>{if(g&&m(f,g),_)for(let T=0;T<_.length;T++)m(f,_[T]);if(b){let T=b.subTree;if(p===T){const E=b.vnode;K(f,E,E.scopeId,E.slotScopeIds,b.parent)}}},v=(f,p,g,_,b,T,E,w,O=0)=>{for(let y=O;y<f.length;y++){const B=f[y]=w?gt(f[y]):et(f[y]);k(null,B,p,g,_,b,T,E,w)}},I=(f,p,g,_,b,T,E)=>{const w=p.el=f.el;let{patchFlag:O,dynamicChildren:y,dirs:B}=p;O|=f.patchFlag&16;const M=f.props||G,D=p.props||G;let N;g&&It(g,!1),(N=D.onVnodeBeforeUpdate)&&tt(N,g,p,f),B&&Pt(p,f,g,"beforeUpdate"),g&&It(g,!0);const ne=b&&p.type!=="foreignObject";if(y?F(f.dynamicChildren,y,w,g,_,ne,T):E||ae(f,p,w,null,g,_,ne,T,!1),O>0){if(O&16)ce(w,p,M,D,g,_,b);else if(O&2&&M.class!==D.class&&s(w,"class",null,D.class,b),O&4&&s(w,"style",M.style,D.style,b),O&8){const de=p.dynamicProps;for(let ue=0;ue<de.length;ue++){const be=de[ue],Je=M[be],Gt=D[be];(Gt!==Je||be==="value")&&s(w,be,Je,Gt,b,f.children,g,_,me)}}O&1&&f.children!==p.children&&u(w,p.children)}else!E&&y==null&&ce(w,p,M,D,g,_,b);((N=D.onVnodeUpdated)||B)&&Se(()=>{N&&tt(N,g,p,f),B&&Pt(p,f,g,"updated")},_)},F=(f,p,g,_,b,T,E)=>{for(let w=0;w<p.length;w++){const O=f[w],y=p[w],B=O.el&&(O.type===xe||!Et(O,y)||O.shapeFlag&70)?d(O.el):g;k(O,y,B,null,_,b,T,E,!0)}},ce=(f,p,g,_,b,T,E)=>{if(g!==_){if(g!==G)for(const w in g)!wn(w)&&!(w in _)&&s(f,w,g[w],null,E,p.children,b,T,me);for(const w in _){if(wn(w))continue;const O=_[w],y=g[w];O!==y&&w!=="value"&&s(f,w,y,O,E,p.children,b,T,me)}"value"in _&&s(f,"value",g.value,_.value)}},$=(f,p,g,_,b,T,E,w,O)=>{const y=p.el=f?f.el:l(""),B=p.anchor=f?f.anchor:l("");let{patchFlag:M,dynamicChildren:D,slotScopeIds:N}=p;N&&(w=w?w.concat(N):N),f==null?(o(y,g,_),o(B,g,_),v(p.children,g,B,b,T,E,w,O)):M>0&&M&64&&D&&f.dynamicChildren?(F(f.dynamicChildren,D,g,b,T,E,w),(p.key!=null||b&&p===b.subTree)&&Cs(f,p,!0)):ae(f,p,g,B,b,T,E,w,O)},oe=(f,p,g,_,b,T,E,w,O)=>{p.slotScopeIds=w,f==null?p.shapeFlag&512?b.ctx.activate(p,g,_,E,O):P(p,g,_,b,T,E,O):W(f,p,O)},P=(f,p,g,_,b,T,E)=>{const w=f.component=Da(f,_,b);if(Bn(f)&&(w.ctx.renderer=xt),Na(w),w.asyncDep){if(b&&b.registerDep(w,X),!f.el){const O=w.subTree=V(We);j(null,O,p,g)}return}X(w,f,p,g,b,T,E)},W=(f,p,g)=>{const _=p.component=f.component;if(Zl(f,p,g))if(_.asyncDep&&!_.asyncResolved){re(_,p,g);return}else _.next=p,Vl(_.update),_.update();else p.el=f.el,_.vnode=p},X=(f,p,g,_,b,T,E)=>{const w=()=>{if(f.isMounted){let{next:B,bu:M,u:D,parent:N,vnode:ne}=f,de=B,ue;It(f,!1),B?(B.el=ne.el,re(f,B,E)):B=ne,M&&Cn(M),(ue=B.props&&B.props.onVnodeBeforeUpdate)&&tt(ue,N,B,ne),It(f,!0);const be=Po(f),Je=f.subTree;f.subTree=be,k(Je,be,d(Je.el),wt(Je),f,b,T),B.el=be.el,de===null&&Xl(f,be.el),D&&Se(D,b),(ue=B.props&&B.props.onVnodeUpdated)&&Se(()=>tt(ue,N,B,ne),b)}else{let B;const{el:M,props:D}=p,{bm:N,m:ne,parent:de}=f,ue=ln(p);if(It(f,!1),N&&Cn(N),!ue&&(B=D&&D.onVnodeBeforeMount)&&tt(B,de,p),It(f,!0),M&&vn){const be=()=>{f.subTree=Po(f),vn(M,f.subTree,f,b,null)};ue?p.type.__asyncLoader().then(()=>!f.isUnmounted&&be()):be()}else{const be=f.subTree=Po(f);k(null,be,g,_,f,b,T),p.el=be.el}if(ne&&Se(ne,b),!ue&&(B=D&&D.onVnodeMounted)){const be=p;Se(()=>tt(B,de,be),b)}(p.shapeFlag&256||de&&ln(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&Se(f.a,b),f.isMounted=!0,p=g=_=null}},O=f.effect=new go(w,()=>To(y),f.scope),y=f.update=()=>O.run();y.id=f.uid,It(f,!0),y()},re=(f,p,g)=>{p.component=f;const _=f.vnode.props;f.vnode=p,f.next=null,Ta(f,p.props,_,g),Ia(f,p.children,g),Dt(),Ur(),Nt()},ae=(f,p,g,_,b,T,E,w,O=!1)=>{const y=f&&f.children,B=f?f.shapeFlag:0,M=p.children,{patchFlag:D,shapeFlag:N}=p;if(D>0){if(D&128){Ue(y,M,g,_,b,T,E,w,O);return}else if(D&256){Ke(y,M,g,_,b,T,E,w,O);return}}N&8?(B&16&&me(y,b,T),M!==y&&u(g,M)):B&16?N&16?Ue(y,M,g,_,b,T,E,w,O):me(y,b,T,!0):(B&8&&u(g,""),N&16&&v(M,g,_,b,T,E,w,O))},Ke=(f,p,g,_,b,T,E,w,O)=>{f=f||Ne,p=p||Ne;const y=f.length,B=p.length,M=Math.min(y,B);let D;for(D=0;D<M;D++){const N=p[D]=O?gt(p[D]):et(p[D]);k(f[D],N,g,null,b,T,E,w,O)}y>B?me(f,b,T,!0,!1,M):v(p,g,_,b,T,E,w,O,M)},Ue=(f,p,g,_,b,T,E,w,O)=>{let y=0;const B=p.length;let M=f.length-1,D=B-1;for(;y<=M&&y<=D;){const N=f[y],ne=p[y]=O?gt(p[y]):et(p[y]);if(Et(N,ne))k(N,ne,g,null,b,T,E,w,O);else break;y++}for(;y<=M&&y<=D;){const N=f[M],ne=p[D]=O?gt(p[D]):et(p[D]);if(Et(N,ne))k(N,ne,g,null,b,T,E,w,O);else break;M--,D--}if(y>M){if(y<=D){const N=D+1,ne=N<B?p[N].el:_;for(;y<=D;)k(null,p[y]=O?gt(p[y]):et(p[y]),g,ne,b,T,E,w,O),y++}}else if(y>D)for(;y<=M;)Ae(f[y],b,T,!0),y++;else{const N=y,ne=y,de=new Map;for(y=ne;y<=D;y++){const De=p[y]=O?gt(p[y]):et(p[y]);De.key!=null&&de.set(De.key,y)}let ue,be=0;const Je=D-ne+1;let Gt=!1,Ui=0;const bn=new Array(Je);for(y=0;y<Je;y++)bn[y]=0;for(y=N;y<=M;y++){const De=f[y];if(be>=Je){Ae(De,b,T,!0);continue}let nt;if(De.key!=null)nt=de.get(De.key);else for(ue=ne;ue<=D;ue++)if(bn[ue-ne]===0&&Et(De,p[ue])){nt=ue;break}nt===void 0?Ae(De,b,T,!0):(bn[nt-ne]=y+1,nt>=Ui?Ui=nt:Gt=!0,k(De,p[nt],g,null,b,T,E,w,O),be++)}const qi=Gt?Sa(bn):Ne;for(ue=qi.length-1,y=Je-1;y>=0;y--){const De=ne+y,nt=p[De],Yi=De+1<B?p[De+1].el:_;bn[y]===0?k(null,nt,g,Yi,b,T,E,w,O):Gt&&(ue<0||y!==qi[ue]?Xe(nt,g,Yi,2):ue--)}}},Xe=(f,p,g,_,b=null)=>{const{el:T,type:E,transition:w,children:O,shapeFlag:y}=f;if(y&6){Xe(f.component.subTree,p,g,_);return}if(y&128){f.suspense.move(p,g,_);return}if(y&64){E.move(f,p,g,xt);return}if(E===xe){o(T,p,g);for(let M=0;M<O.length;M++)Xe(O[M],p,g,_);o(f.anchor,p,g);return}if(E===Fo){J(f,p,g);return}if(_!==2&&y&1&&w)if(_===0)w.beforeEnter(T),o(T,p,g),Se(()=>w.enter(T),b);else{const{leave:M,delayLeave:D,afterLeave:N}=w,ne=()=>o(T,p,g),de=()=>{M(T,()=>{ne(),N&&N()})};D?D(T,ne,de):de()}else o(T,p,g)},Ae=(f,p,g,_=!1,b=!1)=>{const{type:T,props:E,ref:w,children:O,dynamicChildren:y,shapeFlag:B,patchFlag:M,dirs:D}=f;if(w!=null&&No(w,null,g,f,!0),B&256){p.ctx.deactivate(f);return}const N=B&1&&D,ne=!ln(f);let de;if(ne&&(de=E&&E.onVnodeBeforeUnmount)&&tt(de,p,f),B&6)te(f.component,g,_);else{if(B&128){f.suspense.unmount(g,_);return}N&&Pt(f,null,p,"beforeUnmount"),B&64?f.type.remove(f,p,g,b,xt,_):y&&(T!==xe||M>0&&M&64)?me(y,p,g,!1,!0):(T===xe&&M&384||!b&&B&16)&&me(O,p,g),_&&Qt(f)}(ne&&(de=E&&E.onVnodeUnmounted)||N)&&Se(()=>{de&&tt(de,p,f),N&&Pt(f,null,p,"unmounted")},g)},Qt=f=>{const{type:p,el:g,anchor:_,transition:b}=f;if(p===xe){A(g,_);return}if(p===Fo){C(f);return}const T=()=>{r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:E,delayLeave:w}=b,O=()=>E(g,T);w?w(f.el,T,O):O()}else T()},A=(f,p)=>{let g;for(;f!==p;)g=h(f),r(f),f=g;r(p)},te=(f,p,g)=>{const{bum:_,scope:b,update:T,subTree:E,um:w}=f;_&&Cn(_),b.stop(),T&&(T.active=!1,Ae(E,f,p,g)),w&&Se(w,p),Se(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},me=(f,p,g,_=!1,b=!1,T=0)=>{for(let E=T;E<f.length;E++)Ae(f[E],p,g,_,b)},wt=f=>f.shapeFlag&6?wt(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),to=(f,p,g)=>{f==null?p._vnode&&Ae(p._vnode,null,null,!0):k(p._vnode||null,f,p,null,null,null,g),Ur(),qr(),p._vnode=f},xt={p:k,um:Ae,m:Xe,r:Qt,mt:P,mc:v,pc:ae,pbc:F,n:wt,o:e};let mn,vn;return t&&([mn,vn]=t(xt)),{render:to,hydrate:mn,createApp:ka(to,mn)}}function It({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Cs(e,t,n=!1){const o=e.children,r=t.children;if(R(o)&&R(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=gt(r[s]),l.el=i.el),n||Cs(i,l)),l.type===Vn&&(l.el=i.el)}}function Sa(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<c?s=l+1:i=l;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Ma=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),Vn=Symbol.for("v-txt"),We=Symbol.for("v-cmt"),Fo=Symbol.for("v-stc"),un=[];let Ze=null;function S(e=!1){un.push(Ze=e?null:[])}function Aa(){un.pop(),Ze=un[un.length-1]||null}let fn=1;function Ts(e){fn+=e}function Ps(e){return e.dynamicChildren=fn>0?Ze||Ne:null,Aa(),fn>0&&Ze&&Ze.push(e),e}function U(e,t,n,o,r,s){return Ps(Y(e,t,n,o,r,s,!0))}function Ie(e,t,n,o,r){return Ps(V(e,t,n,o,r,!0))}function Wn(e){return e?e.__v_isVNode===!0:!1}function Et(e,t){return e.type===t.type&&e.key===t.key}const Kn="__vInternal",Os=({key:e})=>e??null,Un=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||ye(e)||Q(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,o=0,r=null,s=e===xe?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&Un(t),scopeId:Xr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ce};return l?(Ro(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ve(n)?8:16),fn>0&&!i&&Ze&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ze.push(a),a}const V=ja;function ja(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ss)&&(e=We),Wn(e)){const l=ht(e,t,!0);return n&&Ro(l,n),fn>0&&!s&&Ze&&(l.shapeFlag&6?Ze[Ze.indexOf(e)]=l:Ze.push(l)),l.patchFlag|=-2,l}if(Wa(e)&&(e=e.__vccOpts),t){t=La(t);let{class:l,style:a}=t;l&&!ve(l)&&(t.class=_e(l)),pe(a)&&(Br(a)&&!R(a)&&(a=ge({},a)),t.style=Re(a))}const i=ve(e)?1:Jl(e)?128:Ma(e)?64:pe(e)?4:Q(e)?2:0;return Y(e,t,n,o,r,i,s,!0)}function La(e){return e?Br(e)||Kn in e?ge({},e):e:null}function ht(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Ho(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Os(l),ref:t&&t.ref?n&&r?R(r)?r.concat(Un(t)):[r,Un(t)]:Un(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ht(e.ssContent),ssFallback:e.ssFallback&&ht(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Vt(e=" ",t=0){return V(Vn,null,e,t)}function Be(e="",t=!1){return t?(S(),Ie(We,null,e)):V(We,null,e)}function et(e){return e==null||typeof e=="boolean"?V(We):R(e)?V(xe,null,e.slice()):typeof e=="object"?gt(e):V(Vn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ht(e)}function Ro(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ro(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Kn in t)?t._ctx=Ce:r===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),o&64?(n=16,t=[Vt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ho(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=_e([t.class,o.class]));else if(r==="style")t.style=Re([t.style,o.style]);else if(_n(r)){const s=t[r],i=o[r];i&&s!==i&&!(R(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function tt(e,t,n,o=null){He(e,t,7,[n,o])}const za=hs();let Ba=0;function Da(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||za,s={uid:Ba++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ll(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ms(o,r),emitsOptions:Zr(o,r),emit:null,emitted:null,propsDefaults:G,inheritAttrs:o.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Ul.bind(null,s),e.ce&&e.ce(s),s}let ke=null;const Is=()=>ke||Ce;let Vo,Wt,Es="__VUE_INSTANCE_SETTERS__";(Wt=co()[Es])||(Wt=co()[Es]=[]),Wt.push(e=>ke=e),Vo=e=>{Wt.length>1?Wt.forEach(t=>t(e)):Wt[0](e)};const Kt=e=>{Vo(e),e.scope.on()},$t=()=>{ke&&ke.scope.off(),Vo(null)};function $s(e){return e.vnode.shapeFlag&4}let dn=!1;function Na(e,t=!1){dn=t;const{props:n,children:o}=e.vnode,r=$s(e);Ca(e,n,r,t),Oa(e,o);const s=r?Fa(e,t):void 0;return dn=!1,s}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Dr(new Proxy(e.ctx,ma));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ha(e):null;Kt(e),Dt();const s=dt(o,e,0,[e.props,r]);if(Nt(),$t(),pr(s)){if(s.then($t,$t),t)return s.then(i=>{Ss(e,i,t)}).catch(i=>{An(i,e,0)});e.asyncDep=s}else Ss(e,s,t)}else As(e,t)}function Ss(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Vr(t)),As(e,n)}let Ms;function As(e,t,n){const o=e.type;if(!e.render){if(!t&&Ms&&!o.render){const r=o.template||Lo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=ge(ge({isCustomElement:s,delimiters:l},i),a);o.render=Ms(r,c)}}e.render=o.render||qe}Kt(e),Dt(),va(e),Nt(),$t()}function Ra(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return $e(e,"get","$attrs"),t[n]}}))}function Ha(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ra(e)},slots:e.slots,emit:e.emit,expose:t}}function qn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vr(Dr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in an)return an[n](e)},has(t,n){return n in t||n in an}}))}function Va(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Wa(e){return Q(e)&&"__vccOpts"in e}const fe=(e,t)=>Fl(e,t,dn);function js(e,t,n){const o=arguments.length;return o===2?pe(t)&&!R(t)?Wn(t)?V(e,null,[t]):V(e,t):V(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Wn(n)&&(n=[n]),V(e,t,n))}const Ka=Symbol.for("v-scx"),Ua=()=>Ot(Ka),qa="3.3.2",Ya="http://www.w3.org/2000/svg",St=typeof document<"u"?document:null,Ls=St&&St.createElement("template"),Za={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?St.createElementNS(Ya,e):St.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{Ls.innerHTML=o?`<svg>${e}</svg>`:e;const l=Ls.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Xa(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ja(e,t,n){const o=e.style,r=ve(n);if(n&&!r){if(t&&!ve(t))for(const s in t)n[s]==null&&Wo(o,s,"");for(const s in n)Wo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const zs=/\s*!important$/;function Wo(e,t,n){if(R(n))n.forEach(o=>Wo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Qa(e,t);zs.test(n)?e.setProperty(Fe(o),n.replace(zs,""),"important"):e[o]=n}}const Bs=["Webkit","Moz","ms"],Ko={};function Qa(e,t){const n=Ko[t];if(n)return n;let o=Le(t);if(o!=="filter"&&o in e)return Ko[t]=o;o=kn(o);for(let r=0;r<Bs.length;r++){const s=Bs[r]+o;if(s in e)return Ko[t]=s}return t}const Ds="http://www.w3.org/1999/xlink";function Ga(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ds,t.slice(6,t.length)):e.setAttributeNS(Ds,t,n);else{const s=il(t);n==null||s&&!vr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function ec(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=vr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Ut(e,t,n,o){e.addEventListener(t,n,o)}function tc(e,t,n,o){e.removeEventListener(t,n,o)}function nc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=oc(t);if(o){const c=s[t]=ic(o,r);Ut(e,l,c,a)}else i&&(tc(e,l,i,a),s[t]=void 0)}}const Ns=/(?:Once|Passive|Capture)$/;function oc(e){let t;if(Ns.test(e)){t={};let o;for(;o=e.match(Ns);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Fe(e.slice(2)),t]}let Uo=0;const rc=Promise.resolve(),sc=()=>Uo||(rc.then(()=>Uo=0),Uo=Date.now());function ic(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;He(lc(o,n.value),t,5,[o])};return n.value=e,n.attached=sc(),n}function lc(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Fs=/^on[a-z]/,ac=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Xa(e,o,r):t==="style"?Ja(e,n,o):_n(t)?no(t)||nc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cc(e,t,o,r))?ec(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ga(e,t,o,r))};function cc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Fs.test(t)&&Q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fs.test(t)&&ve(n)?!1:t in e}function uc(e,t){const n=Te(e);class o extends qo{constructor(s){super(n,s,t)}}return o.def=n,o}const fc=typeof HTMLElement<"u"?HTMLElement:class{};class qo extends fc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,st(()=>{this._connected||(Js(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:s,styles:i}=o;let l;if(s&&!R(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=ao(this._props[a])),(l||(l=Object.create(null)))[Le(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=R(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Le))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Le(t);this._numberProps&&this._numberProps[o]&&(n=ao(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Fe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Fe(t),n+""):n||this.removeAttribute(Fe(t))))}_update(){Js(this._createVNode(),this.shadowRoot)}_createVNode(){const t=V(this._def,ge({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Fe(s)!==s&&o(Fe(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof qo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const mt="transition",pn="animation",qt=(e,{slots:t})=>js(na,dc(e),t);qt.displayName="Transition";const Rs={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};qt.props=ge({},Gr,Rs);const Mt=(e,t=[])=>{R(e)?e.forEach(n=>n(...t)):e&&e(...t)},Hs=e=>e?R(e)?e.some(t=>t.length>1):e.length>1:!1;function dc(e){const t={};for(const $ in e)$ in Rs||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,x=pc(r),k=x&&x[0],H=x&&x[1],{onBeforeEnter:j,onEnter:L,onEnterCancelled:J,onLeave:C,onLeaveCancelled:Z,onBeforeAppear:q=j,onAppear:K=L,onAppearCancelled:v=J}=t,I=($,oe,P)=>{At($,oe?u:l),At($,oe?c:i),P&&P()},F=($,oe)=>{$._isLeaving=!1,At($,d),At($,m),At($,h),oe&&oe()},ce=$=>(oe,P)=>{const W=$?K:L,X=()=>I(oe,$,P);Mt(W,[oe,X]),Vs(()=>{At(oe,$?a:s),vt(oe,$?u:l),Hs(W)||Ws(oe,o,k,X)})};return ge(t,{onBeforeEnter($){Mt(j,[$]),vt($,s),vt($,i)},onBeforeAppear($){Mt(q,[$]),vt($,a),vt($,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave($,oe){$._isLeaving=!0;const P=()=>F($,oe);vt($,d),mc(),vt($,h),Vs(()=>{$._isLeaving&&(At($,d),vt($,m),Hs(C)||Ws($,o,H,P))}),Mt(C,[$,P])},onEnterCancelled($){I($,!1),Mt(J,[$])},onAppearCancelled($){I($,!0),Mt(v,[$])},onLeaveCancelled($){F($),Mt(Z,[$])}})}function pc(e){if(e==null)return null;if(pe(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}function Yo(e){return ao(e)}function vt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function At(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Vs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hc=0;function Ws(e,t,n,o){const r=e._endId=++hc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=gc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,h),s()},h=m=>{m.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,h)}function gc(e,t){const n=window.getComputedStyle(e),o=x=>(n[x]||"").split(", "),r=o(`${mt}Delay`),s=o(`${mt}Duration`),i=Ks(r,s),l=o(`${pn}Delay`),a=o(`${pn}Duration`),c=Ks(l,a);let u=null,d=0,h=0;t===mt?i>0&&(u=mt,d=i,h=s.length):t===pn?c>0&&(u=pn,d=c,h=a.length):(d=Math.max(i,c),u=d>0?i>c?mt:pn:null,h=u?u===mt?s.length:a.length:0);const m=u===mt&&/\b(transform|all)(,|$)/.test(o(`${mt}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:m}}function Ks(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Us(n)+Us(e[o])))}function Us(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function mc(){return document.body.offsetHeight}const qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>Cn(t,n):t};function vc(e){e.target.composing=!0}function Ys(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=qs(r);const s=o||r.props&&r.props.type==="number";Ut(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=lo(l)),e._assign(l)}),n&&Ut(e,"change",()=>{e.value=e.value.trim()}),t||(Ut(e,"compositionstart",vc),Ut(e,"compositionend",Ys),Ut(e,"change",Ys))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=qs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&lo(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},_c=["ctrl","shift","alt","meta"],yc={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)=>_c.some(n=>e[`${n}Key`]&&!t.includes(n))},jt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=yc[t[r]];if(s&&s(n,t))return}return e(n,...o)},wc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zs=(e,t)=>n=>{if(!("key"in n))return;const o=Fe(n.key);if(t.some(r=>r===o||wc[r]===o))return e(n)},xc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),hn(e,!0),o.enter(e)):o.leave(e,()=>{hn(e,!1)}):hn(e,t))},beforeUnmount(e,{value:t}){hn(e,t)}};function hn(e,t){e.style.display=t?e._vod:"none"}const kc=ge({patchProp:ac},Za);let Xs;function Cc(){return Xs||(Xs=Ea(kc))}const Js=(...e)=>{Cc().render(...e)},Tc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},Pc={class:"flex justify-between items-end"},Oc={class:"inline-block children-pointer-events-auto w-1/3"},Ic={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ec={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},$c={class:"inline-block z-20 relative"},Qs=Te({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(S(),U("div",{class:_e(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[Oe(t.$slots,"default"),Y("div",{class:_e(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Re({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[Y("div",Tc,[Oe(t.$slots,"back"),t.touchDevice?Be("",!0):Oe(t.$slots,"exit",{key:0}),Oe(t.$slots,"chapter-nav")]),Y("div",Pc,[Y("div",Oc,[Oe(t.$slots,"page-nav")]),Y("div",Ic,[Oe(t.$slots,"reset-zoom")]),Y("div",Ec,[Oe(t.$slots,"entry"),Y("div",$c,[Oe(t.$slots,"settings")]),Oe(t.$slots,"play")])]),Y("div",{class:_e(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Oe(t.$slots,"progress")],2)],6)],2))}}),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Ac={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},jc=[Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Y("circle",{cx:"14",cy:"14",r:"12"}),Y("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Lc(e,t){return S(),U("svg",Ac,jc)}const Gs=we(Mc,[["render",Lc]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Bc={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Dc={class:"block w-4 h-4"},Nc={class:"w-12"},ei=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Gs;return t.zoom!==1?(S(),U("button",Bc,[Y("div",Dc,[V(o)]),Y("div",Nc,at(Math.ceil(t.zoom*100))+"%",1)])):Be("",!0)}}}),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),Rc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vc=[Y("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Wc(e,t){return S(),U("svg",Hc,Vc)}const Zo=we(Rc,[["render",Wc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"})),Uc={},qc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yc=[Y("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),Y("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Zc(e,t){return S(),U("svg",qc,Yc)}const Xo=we(Uc,[["render",Zc]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"}));function Jc({touchDevice:e}){const t=ee(!1);let n=0;return Hn("busy:touchDevice",e),Hn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Jo({desktopOnly:e=!1}={}){if(e&&Ot("busy:touchDevice"))return()=>{};const t=Ot("setBusyState");let n=!1;return lt(()=>{n&&(t==null||t(!1))}),o=>{n!==o&&(n=o,t==null||t(o))}}const Qc=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Yt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Qc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Gc={class:"group-hover:bg-stone-100 group-hover:bg-opacity-10 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},Yn=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=Jo({desktopOnly:!0});let r=!1;function s(){r||(r=!0,o(!0))}function i(){r&&(r=!1,o(!1))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>pt((S(),Ie(ha(a.href?"a":"button"),Ho(a.href?{href:a.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full",{"cursor-default text-stone-400 hover:text-stone-400":a.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!a.disabled,"bg-black bg-opacity-50":!a.transparent}],onClick:jt(l,["stop"]),onMouseenter:s,onMouseleave:i}),{default:ie(()=>[Y("div",Gc,[Oe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[z(Yt),a.disabled?0:15]])}}),eu=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"}));class tu{constructor(){Zi(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function nu(){const e=new tu;return lt(()=>e.dispose()),Hn("keyController",e),e}function Qo(e){const t=Ot("keyController");Ge(()=>t.addListener(e)),lt(()=>t.removeListener(e))}const ou={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},ru={class:"inline-flex items-center h-full absolute left-3 top-0"},su=Y("span",{class:"text-xl font-medium"},"Customize",-1),iu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ti=Te({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Qo({onKeyDown:r});const o=Jo();he(()=>n.modelValue,s=>{o(s)},{immediate:!0});function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=pa("IconClose"),a=Yn;return S(),U("div",{class:_e(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[V(qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[n.modelValue?(S(),U("div",{key:0,class:"inline-flex flex-col h-[24rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-75 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=jt(()=>{},["stop"]))},[Y("div",ou,[Y("div",ru,[V(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:ie(()=>[V(l)]),_:1})]),su]),Y("div",iu,[Oe(s.$slots,"default")])])):Be("",!0)]),_:3})],2)}}}),lu=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),au=["min","max","step"],cu={class:"flex-shrink-0"},ni=we(Te({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(S(),U("div",{class:_e(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Re({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[pt(Y("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,au),[[bc,o.value]]),Y("p",cu,[Oe(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:.125rem;border-style:none;cursor:pointer;height:.375rem;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:.125rem;border-style:solid;border-width:2px;cursor:pointer;height:1.75rem;transition-duration:.2s;width:1rem}input[type=range]:hover{opacity:1}
|
|
2
|
-
`]]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),fu={class:"flex items-center mb-8 last:mb-0"},du={class:"flex-grow overflow-hidden"},oi=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(S(),U("div",fu,[Y("div",{class:_e(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},at(t.label),3),Y("div",du,[Oe(t.$slots,"default")])]))}}),pu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),hu=["onClick","onKeyup"],ri=Te({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee({width:"",left:""});Ge(()=>{let i=!1;he(()=>n.modelValue,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,l)=>(S(),U("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Y("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Re(r.value)},null,4),(S(!0),U(xe,null,Nn(n.items,(a,c)=>pt((S(),U("div",{key:c,tabindex:"0",class:_e(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[Zs(()=>s(c),["enter"]),Zs(()=>s(c),["space"])]},[Vt(at(a),1)],42,hu)),[[z(Yt),30]])),128))],512))}}),gu=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),mu={},vu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},bu=[Y("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Y("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function _u(e,t){return S(),U("svg",vu,bu)}const si=we(mu,[["render",_u]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));var ii;const Go=typeof window<"u",wu=e=>typeof e=="function",xu=e=>typeof e=="string",bt=()=>{};Go&&((ii=window==null?void 0:window.navigator)!=null&&ii.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Zn(e){return typeof e=="function"?e():z(e)}function li(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ai=e=>e();function ku(e,t={}){let n,o,r=bt;const s=l=>{clearTimeout(l),r(),r=bt};return l=>{const a=Zn(e),c=Zn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(l())},a)})}}function Cu(e=ai){const t=ee(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:yo(t),pause:n,resume:o,eventFilter:r}}function Tu(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Pu(e){return e}function er(e){return _r()?(cl(e),!0):!1}function Zt(e,t=200,n={}){return li(ku(t,n),e)}function Ou(e,t=!0){Is()?Ge(e):t?e():st(e)}var ci=Object.getOwnPropertySymbols,Iu=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable,$u=(e,t)=>{var n={};for(var o in e)Iu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ci)for(var o of ci(e))t.indexOf(o)<0&&Eu.call(e,o)&&(n[o]=e[o]);return n};function Su(e,t,n={}){const o=n,{eventFilter:r=ai}=o,s=$u(o,["eventFilter"]);return he(e,li(r,t),s)}var Mu=Object.defineProperty,Au=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,Xn=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,di=(e,t,n)=>t in e?Mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lu=(e,t)=>{for(var n in t||(t={}))ui.call(t,n)&&di(e,n,t[n]);if(Xn)for(var n of Xn(t))fi.call(t,n)&&di(e,n,t[n]);return e},zu=(e,t)=>Au(e,ju(t)),Bu=(e,t)=>{var n={};for(var o in e)ui.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Xn)for(var o of Xn(e))t.indexOf(o)<0&&fi.call(e,o)&&(n[o]=e[o]);return n};function Du(e,t,n={}){const o=n,{eventFilter:r}=o,s=Bu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Cu(r);return{stop:Su(e,t,zu(Lu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Lt(e){var t;const n=Zn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const _t=Go?window:void 0,Nu=Go?window.document:void 0;function gn(...e){let t,n,o,r;if(xu(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=_t):[t,n,o,r]=e,!t)return bt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},l=(u,d,h)=>(u.addEventListener(d,h,r),()=>u.removeEventListener(d,h,r)),a=he(()=>Lt(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return er(c),c}function Fu(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=bt,onSuccess:i=bt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},u=a?Rr(t):ee(t),d=ee(!1),h=ee(!1),m=ee(void 0);async function x(k=0,...H){l&&(u.value=t),m.value=void 0,d.value=!1,h.value=!0,k>0&&await Tu(k);const j=typeof e=="function"?e(...H):e;try{const L=await j;u.value=L,d.value=!0,i(L)}catch(L){if(m.value=L,s(L),c)throw m}finally{h.value=!1}return u.value}return o&&x(r),{state:u,isReady:d,isLoading:h,error:m,execute:x}}function pi(e,t=!1){const n=ee(),o=()=>n.value=!!e();return o(),Ou(o,t),n}const tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nr="__vueuse_ssr_handlers__";tr[nr]=tr[nr]||{};const Ru=tr[nr];function Hu(e,t){return Ru[e]||t}function Vu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Wu=Object.defineProperty,hi=Object.getOwnPropertySymbols,Ku=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?Wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t)=>{for(var n in t||(t={}))Ku.call(t,n)&&gi(e,n,t[n]);if(hi)for(var n of hi(t))Uu.call(t,n)&&gi(e,n,t[n]);return e};const qu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function vi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:d=_t,eventFilter:h,onError:m=K=>{console.error(K)}}=o,x=(u?Rr:ee)(t);if(!n)try{n=Hu("getDefaultStorage",()=>{var K;return(K=_t)==null?void 0:K.localStorage})()}catch(K){m(K)}if(!n)return x;const k=Zn(t),H=Vu(k),j=(r=o.serializer)!=null?r:qu[H],{pause:L,resume:J}=Du(x,()=>C(x.value),{flush:s,deep:i,eventFilter:h});return d&&l&&gn(d,"storage",q),q(),x;function C(K){try{if(K==null)n.removeItem(e);else{const v=j.write(K),I=n.getItem(e);I!==v&&(n.setItem(e,v),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:I,newValue:v,storageArea:n}))))}}catch(v){m(v)}}function Z(K){const v=K?K.newValue:n.getItem(e);if(v==null)return a&&k!==null&&n.setItem(e,j.write(k)),k;if(!K&&c){const I=j.read(v);return wu(c)?c(I,k):H==="object"&&!Array.isArray(I)?mi(mi({},k),I):I}else return typeof v!="string"?v:j.read(v)}function q(K){if(!(K&&K.storageArea!==n)){if(K&&K.key==null){x.value=k;return}if(!(K&&K.key!==e)){L();try{x.value=Z(K)}catch(v){m(v)}finally{K?st(J):J()}}}}}function Yu({document:e=Nu}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Ju=(e,t)=>{var n={};for(var o in e)Zu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&Xu.call(e,o)&&(n[o]=e[o]);return n};function _i(e,t,n={}){const o=n,{window:r=_t}=o,s=Ju(o,["window"]);let i;const l=pi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>Lt(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return er(u),{isSupported:l,stop:u}}function Qu(e,t={width:0,height:0},n={}){const{window:o=_t,box:r="content-box"}=n,s=fe(()=>{var a,c;return(c=(a=Lt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=ee(t.width),l=ee(t.height);return _i(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const u=Lt(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:h})=>d+h,0),l.value=u.reduce((d,{blockSize:h})=>d+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),he(()=>Lt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function yi(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=_t}=n,l=pi(()=>i&&"IntersectionObserver"in i);let a=bt;const c=l.value?he(()=>({el:Lt(e),root:Lt(o)}),({el:d,root:h})=>{if(a(),!d)return;const m=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});m.observe(d),a=()=>{m.disconnect(),a=bt}},{immediate:!0,flush:"post"}):bt,u=()=>{a(),c()};return er(u),{isSupported:l,stop:u}}function Jn(e,t,n={}){const{window:o=_t}=n;return vi(e,t,o==null?void 0:o.localStorage,n)}var wi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(wi||(wi={}));function or(e,t,n={}){const{window:o=_t}=n;return vi(e,t,o==null?void 0:o.sessionStorage,n)}var Gu=Object.defineProperty,xi=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?Gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nf=(e,t)=>{for(var n in t||(t={}))ef.call(t,n)&&ki(e,n,t[n]);if(xi)for(var n of xi(t))tf.call(t,n)&&ki(e,n,t[n]);return e};nf({linear:Pu},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var yt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(yt||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const Ci=.25,Ti=3,of=.25,Qn=.25,Gn=5,rf=.05;function sf(e){const{titleId:t,asyncIsWebtoon:n}=e,o=Jn(`tk:style:${t}`,Xt.longStrip,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,u){return Object.values(Xt).includes(c)?c:u}}),r=Jn(`tk:dir:${t}`,yt.vertical,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,u){return Object.values(yt).includes(c)?c:u}}),s=Jn(`tk:speed:${t}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,u){return c>=Ci&&c<=Ti?+c:u}}),i=Jn(`tk:zoom:${t}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,u){return c>=Qn&&c<=Gn?+c:u}}),l=fe({get(){return n.state.value?Xt.longStrip:o.value},set:c=>o.value=c}),a=fe({get:()=>n.state.value?yt.vertical:r.value,set:c=>r.value=c});return{direction:a,style:l,speed:s,zoom:i,isLongStrip:fe(()=>l.value===Xt.longStrip),isDouble:fe(()=>l.value===Xt.double),isRTL:fe(()=>a.value===yt.rtl),isVertical:fe(()=>a.value===yt.vertical)}}const Pi=Te({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:speed","update:zoom"],setup(e,{emit:t}){const n=ee(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=si,l=Yn,a=ri,c=oi,u=ni,d=ti;return S(),U(xe,null,[V(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:ie(()=>[V(i)]),_:1},8,["disabled"]),V(d,{modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=h=>n.value=h)},{default:ie(()=>[V(c,{label:"Style"},{default:ie(()=>[V(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=h=>t("update:reader-style",h))},null,8,["model-value","items"])]),_:1}),V(c,{label:"Direction"},{default:ie(()=>[V(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=h=>t("update:direction",h))},null,8,["model-value","items"])]),_:1}),V(c,{label:"Speed"},{default:ie(()=>[V(u,{"model-value":r.speed,min:z(Ci),max:z(Ti),step:z(of),suffix:"x","onUpdate:modelValue":s[3]||(s[3]=h=>t("update:speed",h))},{suffix:ie(()=>[Vt(at(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),V(c,{label:"Zoom"},{default:ie(()=>[V(u,{"model-value":Math.ceil(r.zoom*100),min:z(Qn)*100,max:z(Gn)*100,step:z(rf)*100,"onUpdate:modelValue":o},{suffix:ie(()=>[Vt(at(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),lf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),af={},cf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},uf=[Y("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function ff(e,t){return S(),U("svg",cf,uf)}const Oi=we(af,[["render",ff]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gf=[Y("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function mf(e,t){return S(),U("svg",hf,gf)}const Ii=we(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),bf={},_f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[Y("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function wf(e,t){return S(),U("svg",_f,yf)}const Ei=we(bf,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),kf=["aria-hidden"],Cf=["onClick"],Tf=["onClick"],Pf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-200 group-hover:bg-opacity-20 duration-200"},Of={class:"whitespace-nowrap"},rr=Te({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(!1),s=ee(null),i=ee(!1),l=ee(!1),a=ee(!1);Qo({onKeyDown:m});const c=Jo({desktopOnly:!0});function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),st(()=>setTimeout(()=>{var C,Z;(Z=(C=s.value)==null?void 0:C.children[n.modelValue])==null||Z.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),k(o.value)):setTimeout(H,250)}function d(){const C=o.value;if(C){const Z=C.getBoundingClientRect(),q=Z.x+Z.width/2;i.value=Z.y>window.innerHeight/2,l.value=q<window.innerWidth/3,a.value=q>window.innerWidth/3*2}}function h(C){C!=n.modelValue&&t("update:modelValue",C),u()}function m(C){r.value&&C.key==="Escape"&&(u(),C.preventDefault())}let x=[];function k(C){const Z=window.getComputedStyle(C).zIndex,q=C.style.zIndex;(!Z||!(+Z>0))&&((!C.parentElement||C.parentElement.childElementCount>1)&&(C.style.zIndex="1",x.push({el:C,zIndex:q})),C.parentElement&&k(C.parentElement))}function H(){x.forEach(({el:C,zIndex:Z})=>{C.style.zIndex=Z??""}),x=[]}let j=!1;function L(){j||(j=!0,c(!0))}function J(){j&&(j=!1,c(!1))}return(C,Z)=>{const q=Ei;return S(),U("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(S(),U("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Be("",!0),n.items.length?(S(),Ie(qt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ie(()=>[r.value?(S(),U("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:_e(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[75vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:Z[0]||(Z[0]=jt(()=>{},["stop"]))},[(S(!0),U(xe,null,Nn(n.items,(K,v)=>pt((S(),U("li",{key:v,tabindex:"-1",class:_e(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-200 hover:bg-opacity-10 duration-100",{"text-primary":v===C.modelValue}]),onClick:()=>h(v)},[Y("div",{class:_e(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},at(K),3)],10,Cf)),[[z(Yt),30]])),128))],42,kf)):Be("",!0)]),_:1})):Be("",!0),pt((S(),U("button",{type:"button",tabindex:"-1",class:_e(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":C.disabled}]),onClick:jt(u,["stop"]),onMouseenter:L,onMouseleave:J},[Y("div",Pf,[Y("span",Of,at(n.label),1),n.items.length?(S(),U("span",{key:0,class:_e(["w-4 h-4 flex ml-1 -mr-3",{"rotate-180":i.value}]),"aria-hidden":"true"},[V(q)],2)):Be("",!0)])],42,Tf)),[[z(Yt),30]])],512)}}}),If=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),$i=Te({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe(()=>Math.floor(n.modelValue)),r=fe(()=>n.pages.map(c=>c.map(({index:u})=>`${u+1}`).join("-"))),s=fe(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:h})=>h===c));return u===-1?n.pages.length-1:u}),i=fe(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const u=n.pages[c][0].index;a(u)}function a(c){t("update:modelValue",c)}return(c,u)=>{const d=rr;return S(),Ie(d,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),$f={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Af(e,t){return S(),U("svg",Sf,Mf)}const Si=we($f,[["render",Af]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Df(e,t){return S(),U("svg",zf,Bf)}const Mi=we(Lf,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Ff={},Rf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Hf=[Y("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Vf(e,t){return S(),U("svg",Rf,Hf)}const Ai=we(Ff,[["render",Vf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Kf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},qf=[Y("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Yf(e,t){return S(),U("svg",Uf,qf)}const ji=we(Kf,[["render",Yf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Li=we(Te({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=ee(0);return he(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=Zo,i=Xo;return n.value?(S(),U("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(S(),Ie(s,{key:0})):(S(),Ie(i,{key:1}))])):Be("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
2
|
+
`]]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),fu={class:"flex items-center mb-8 last:mb-0"},du={class:"flex-grow overflow-hidden"},oi=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(S(),U("div",fu,[Y("div",{class:_e(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},at(t.label),3),Y("div",du,[Oe(t.$slots,"default")])]))}}),pu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),hu=["onClick","onKeyup"],ri=Te({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee({width:"",left:""});Ge(()=>{let i=!1;he(()=>n.modelValue,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,l)=>(S(),U("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Y("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Re(r.value)},null,4),(S(!0),U(xe,null,Nn(n.items,(a,c)=>pt((S(),U("div",{key:c,tabindex:"0",class:_e(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[Zs(()=>s(c),["enter"]),Zs(()=>s(c),["space"])]},[Vt(at(a),1)],42,hu)),[[z(Yt),30]])),128))],512))}}),gu=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),mu={},vu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},bu=[Y("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Y("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function _u(e,t){return S(),U("svg",vu,bu)}const si=we(mu,[["render",_u]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));var ii;const Go=typeof window<"u",wu=e=>typeof e=="function",xu=e=>typeof e=="string",bt=()=>{};Go&&((ii=window==null?void 0:window.navigator)!=null&&ii.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Zn(e){return typeof e=="function"?e():z(e)}function li(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ai=e=>e();function ku(e,t={}){let n,o,r=bt;const s=l=>{clearTimeout(l),r(),r=bt};return l=>{const a=Zn(e),c=Zn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(l())},a)})}}function Cu(e=ai){const t=ee(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:yo(t),pause:n,resume:o,eventFilter:r}}function Tu(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Pu(e){return e}function er(e){return _r()?(cl(e),!0):!1}function Zt(e,t=200,n={}){return li(ku(t,n),e)}function Ou(e,t=!0){Is()?Ge(e):t?e():st(e)}var ci=Object.getOwnPropertySymbols,Iu=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable,$u=(e,t)=>{var n={};for(var o in e)Iu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ci)for(var o of ci(e))t.indexOf(o)<0&&Eu.call(e,o)&&(n[o]=e[o]);return n};function Su(e,t,n={}){const o=n,{eventFilter:r=ai}=o,s=$u(o,["eventFilter"]);return he(e,li(r,t),s)}var Mu=Object.defineProperty,Au=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,Xn=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,di=(e,t,n)=>t in e?Mu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lu=(e,t)=>{for(var n in t||(t={}))ui.call(t,n)&&di(e,n,t[n]);if(Xn)for(var n of Xn(t))fi.call(t,n)&&di(e,n,t[n]);return e},zu=(e,t)=>Au(e,ju(t)),Bu=(e,t)=>{var n={};for(var o in e)ui.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Xn)for(var o of Xn(e))t.indexOf(o)<0&&fi.call(e,o)&&(n[o]=e[o]);return n};function Du(e,t,n={}){const o=n,{eventFilter:r}=o,s=Bu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Cu(r);return{stop:Su(e,t,zu(Lu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Lt(e){var t;const n=Zn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const _t=Go?window:void 0,Nu=Go?window.document:void 0;function gn(...e){let t,n,o,r;if(xu(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=_t):[t,n,o,r]=e,!t)return bt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},l=(u,d,h)=>(u.addEventListener(d,h,r),()=>u.removeEventListener(d,h,r)),a=he(()=>Lt(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return er(c),c}function Fu(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=bt,onSuccess:i=bt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},u=a?Rr(t):ee(t),d=ee(!1),h=ee(!1),m=ee(void 0);async function x(k=0,...H){l&&(u.value=t),m.value=void 0,d.value=!1,h.value=!0,k>0&&await Tu(k);const j=typeof e=="function"?e(...H):e;try{const L=await j;u.value=L,d.value=!0,i(L)}catch(L){if(m.value=L,s(L),c)throw m}finally{h.value=!1}return u.value}return o&&x(r),{state:u,isReady:d,isLoading:h,error:m,execute:x}}function pi(e,t=!1){const n=ee(),o=()=>n.value=!!e();return o(),Ou(o,t),n}const tr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nr="__vueuse_ssr_handlers__";tr[nr]=tr[nr]||{};const Ru=tr[nr];function Hu(e,t){return Ru[e]||t}function Vu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var Wu=Object.defineProperty,hi=Object.getOwnPropertySymbols,Ku=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?Wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t)=>{for(var n in t||(t={}))Ku.call(t,n)&&gi(e,n,t[n]);if(hi)for(var n of hi(t))Uu.call(t,n)&&gi(e,n,t[n]);return e};const qu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function vi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:d=_t,eventFilter:h,onError:m=K=>{console.error(K)}}=o,x=(u?Rr:ee)(t);if(!n)try{n=Hu("getDefaultStorage",()=>{var K;return(K=_t)==null?void 0:K.localStorage})()}catch(K){m(K)}if(!n)return x;const k=Zn(t),H=Vu(k),j=(r=o.serializer)!=null?r:qu[H],{pause:L,resume:J}=Du(x,()=>C(x.value),{flush:s,deep:i,eventFilter:h});return d&&l&&gn(d,"storage",q),q(),x;function C(K){try{if(K==null)n.removeItem(e);else{const v=j.write(K),I=n.getItem(e);I!==v&&(n.setItem(e,v),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:I,newValue:v,storageArea:n}))))}}catch(v){m(v)}}function Z(K){const v=K?K.newValue:n.getItem(e);if(v==null)return a&&k!==null&&n.setItem(e,j.write(k)),k;if(!K&&c){const I=j.read(v);return wu(c)?c(I,k):H==="object"&&!Array.isArray(I)?mi(mi({},k),I):I}else return typeof v!="string"?v:j.read(v)}function q(K){if(!(K&&K.storageArea!==n)){if(K&&K.key==null){x.value=k;return}if(!(K&&K.key!==e)){L();try{x.value=Z(K)}catch(v){m(v)}finally{K?st(J):J()}}}}}function Yu({document:e=Nu}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Ju=(e,t)=>{var n={};for(var o in e)Zu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&Xu.call(e,o)&&(n[o]=e[o]);return n};function _i(e,t,n={}){const o=n,{window:r=_t}=o,s=Ju(o,["window"]);let i;const l=pi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>Lt(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return er(u),{isSupported:l,stop:u}}function Qu(e,t={width:0,height:0},n={}){const{window:o=_t,box:r="content-box"}=n,s=fe(()=>{var a,c;return(c=(a=Lt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=ee(t.width),l=ee(t.height);return _i(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const u=Lt(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:h})=>d+h,0),l.value=u.reduce((d,{blockSize:h})=>d+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),he(()=>Lt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function yi(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=_t}=n,l=pi(()=>i&&"IntersectionObserver"in i);let a=bt;const c=l.value?he(()=>({el:Lt(e),root:Lt(o)}),({el:d,root:h})=>{if(a(),!d)return;const m=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});m.observe(d),a=()=>{m.disconnect(),a=bt}},{immediate:!0,flush:"post"}):bt,u=()=>{a(),c()};return er(u),{isSupported:l,stop:u}}function Jn(e,t,n={}){const{window:o=_t}=n;return vi(e,t,o==null?void 0:o.localStorage,n)}var wi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(wi||(wi={}));function or(e,t,n={}){const{window:o=_t}=n;return vi(e,t,o==null?void 0:o.sessionStorage,n)}var Gu=Object.defineProperty,xi=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?Gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nf=(e,t)=>{for(var n in t||(t={}))ef.call(t,n)&&ki(e,n,t[n]);if(xi)for(var n of xi(t))tf.call(t,n)&&ki(e,n,t[n]);return e};nf({linear:Pu},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});var yt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(yt||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const Ci=.25,Ti=5,of=.25,Qn=.25,Gn=5,rf=.05;function sf(e){const{titleId:t,asyncIsWebtoon:n}=e,o=Jn(`tk:style:${t}`,Xt.longStrip,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,u){return Object.values(Xt).includes(c)?c:u}}),r=Jn(`tk:dir:${t}`,yt.vertical,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,u){return Object.values(yt).includes(c)?c:u}}),s=Jn(`tk:speed:${t}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,u){return c>=Ci&&c<=Ti?+c:u}}),i=Jn(`tk:zoom:${t}`,1,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(c,u){return c>=Qn&&c<=Gn?+c:u}}),l=fe({get(){return n.state.value?Xt.longStrip:o.value},set:c=>o.value=c}),a=fe({get:()=>n.state.value?yt.vertical:r.value,set:c=>r.value=c});return{direction:a,style:l,speed:s,zoom:i,isLongStrip:fe(()=>l.value===Xt.longStrip),isDouble:fe(()=>l.value===Xt.double),isRTL:fe(()=>a.value===yt.rtl),isVertical:fe(()=>a.value===yt.vertical)}}const Pi=Te({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:speed","update:zoom"],setup(e,{emit:t}){const n=ee(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=si,l=Yn,a=ri,c=oi,u=ni,d=ti;return S(),U(xe,null,[V(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:ie(()=>[V(i)]),_:1},8,["disabled"]),V(d,{modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=h=>n.value=h)},{default:ie(()=>[V(c,{label:"Style"},{default:ie(()=>[V(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=h=>t("update:reader-style",h))},null,8,["model-value","items"])]),_:1}),V(c,{label:"Direction"},{default:ie(()=>[V(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=h=>t("update:direction",h))},null,8,["model-value","items"])]),_:1}),V(c,{label:"Speed"},{default:ie(()=>[V(u,{"model-value":r.speed,min:z(Ci),max:z(Ti),step:z(of),suffix:"x","onUpdate:modelValue":s[3]||(s[3]=h=>t("update:speed",h))},{suffix:ie(()=>[Vt(at(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),V(c,{label:"Zoom"},{default:ie(()=>[V(u,{"model-value":Math.ceil(r.zoom*100),min:z(Qn)*100,max:z(Gn)*100,step:z(rf)*100,"onUpdate:modelValue":o},{suffix:ie(()=>[Vt(at(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),lf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),af={},cf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},uf=[Y("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function ff(e,t){return S(),U("svg",cf,uf)}const Oi=we(af,[["render",ff]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gf=[Y("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function mf(e,t){return S(),U("svg",hf,gf)}const Ii=we(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),bf={},_f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[Y("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function wf(e,t){return S(),U("svg",_f,yf)}const Ei=we(bf,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),kf=["aria-hidden"],Cf=["onClick"],Tf=["onClick"],Pf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-200 group-hover:bg-opacity-20 duration-200"},Of={class:"whitespace-nowrap"},rr=Te({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(!1),s=ee(null),i=ee(!1),l=ee(!1),a=ee(!1);Qo({onKeyDown:m});const c=Jo({desktopOnly:!0});function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),st(()=>setTimeout(()=>{var C,Z;(Z=(C=s.value)==null?void 0:C.children[n.modelValue])==null||Z.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),k(o.value)):setTimeout(H,250)}function d(){const C=o.value;if(C){const Z=C.getBoundingClientRect(),q=Z.x+Z.width/2;i.value=Z.y>window.innerHeight/2,l.value=q<window.innerWidth/3,a.value=q>window.innerWidth/3*2}}function h(C){C!=n.modelValue&&t("update:modelValue",C),u()}function m(C){r.value&&C.key==="Escape"&&(u(),C.preventDefault())}let x=[];function k(C){const Z=window.getComputedStyle(C).zIndex,q=C.style.zIndex;(!Z||!(+Z>0))&&((!C.parentElement||C.parentElement.childElementCount>1)&&(C.style.zIndex="1",x.push({el:C,zIndex:q})),C.parentElement&&k(C.parentElement))}function H(){x.forEach(({el:C,zIndex:Z})=>{C.style.zIndex=Z??""}),x=[]}let j=!1;function L(){j||(j=!0,c(!0))}function J(){j&&(j=!1,c(!1))}return(C,Z)=>{const q=Ei;return S(),U("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(S(),U("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Be("",!0),n.items.length?(S(),Ie(qt,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ie(()=>[r.value?(S(),U("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:_e(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[75vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:Z[0]||(Z[0]=jt(()=>{},["stop"]))},[(S(!0),U(xe,null,Nn(n.items,(K,v)=>pt((S(),U("li",{key:v,tabindex:"-1",class:_e(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-200 hover:bg-opacity-10 duration-100",{"text-primary":v===C.modelValue}]),onClick:()=>h(v)},[Y("div",{class:_e(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},at(K),3)],10,Cf)),[[z(Yt),30]])),128))],42,kf)):Be("",!0)]),_:1})):Be("",!0),pt((S(),U("button",{type:"button",tabindex:"-1",class:_e(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":C.disabled}]),onClick:jt(u,["stop"]),onMouseenter:L,onMouseleave:J},[Y("div",Pf,[Y("span",Of,at(n.label),1),n.items.length?(S(),U("span",{key:0,class:_e(["w-4 h-4 flex ml-1 -mr-3",{"rotate-180":i.value}]),"aria-hidden":"true"},[V(q)],2)):Be("",!0)])],42,Tf)),[[z(Yt),30]])],512)}}}),If=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),$i=Te({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=fe(()=>Math.floor(n.modelValue)),r=fe(()=>n.pages.map(c=>c.map(({index:u})=>`${u+1}`).join("-"))),s=fe(()=>{const c=o.value,u=n.pages.findIndex(d=>d.some(({index:h})=>h===c));return u===-1?n.pages.length-1:u}),i=fe(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const u=n.pages[c][0].index;a(u)}function a(c){t("update:modelValue",c)}return(c,u)=>{const d=rr;return S(),Ie(d,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),$f={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Af(e,t){return S(),U("svg",Sf,Mf)}const Si=we($f,[["render",Af]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Df(e,t){return S(),U("svg",zf,Bf)}const Mi=we(Lf,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Ff={},Rf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Hf=[Y("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Vf(e,t){return S(),U("svg",Rf,Hf)}const Ai=we(Ff,[["render",Vf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Kf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},qf=[Y("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Yf(e,t){return S(),U("svg",Uf,qf)}const ji=we(Kf,[["render",Yf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Li=we(Te({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=ee(0);return he(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=Zo,i=Xo;return n.value?(S(),U("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(S(),Ie(s,{key:0})):(S(),Ie(i,{key:1}))])):Be("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
3
3
|
`]]]),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Jf={},Qf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Gf=[Y("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function ed(e,t){return S(),U("svg",Qf,Gf)}const zi=we(Jf,[["render",ed]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),Bi=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=or("tk:dir",!0),o=Zt(()=>n.value=!1,1250);return he(()=>t.direction,()=>{n.value=!0,o()}),Ge(o),(r,s)=>{const i=zi;return S(),Ie(qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[z(n)?(S(),U("div",{key:0,class:_e(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":r.direction===z(yt).vertical,"rotate-180":r.direction===z(yt).rtl}])},[V(i)],2)):Be("",!0)]),_:1})}}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),eo=[];function od(e){eo.push(e),lt(()=>{const t=eo.indexOf(e);t!==-1&&eo.splice(t,1)})}function rd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;eo.forEach(i=>i(r,s))}const Di=Te({__name:"ZoomWrapper",props:{modelValue:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","click"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(Math.min(Gn,Math.max(Qn,n.modelValue))),s=ee(!1),i=ee(!1),l=ee(!1),a=ee(!1);he(()=>n.modelValue,P=>oe(P)),Ge(()=>{n.touchDevice?(gn(window,"touchstart",J),od($)):(gn(o,"mousedown",x),he(()=>n.horizontal,P=>{P?window.addEventListener("wheel",K,{passive:!1}):window.removeEventListener("wheel",K)},{immediate:!0}))}),lt(()=>{window.removeEventListener("wheel",K)});let c;Qo({onKeyDown:P=>{var re;if(n.busy)return;(re=o.value)==null||re.focus();const W=P.key==="Meta",X=P.key==="Control";W||X?(s.value=!0,window.addEventListener("wheel",d,{passive:!1}),c=()=>{s.value=!1,window.removeEventListener("wheel",d),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c)):(P.ctrlKey||P.metaKey)&&P.key==="0"&&oe(1)},onKeyUp:()=>{s.value==!0&&(c==null||c())}});function u(P){l.value!==P&&(l.value=P,P?n.playController.pause():n.playController.resume())}function d(P){P.stopPropagation(),P.preventDefault();const W=Math.ceil((r.value+P.deltaY*-.01)*100)/100;oe(W,{x:P.clientX,y:P.clientY})}let h={x:0,y:0},m={x:0,y:0};function x(P){P.button===0&&(h={x:P.clientX,y:P.clientY},m={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",k),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",k),setTimeout(()=>u(!1))},{once:!0}),P.preventDefault(),P.stopPropagation())}function k(P){u(!0);const W=P.clientX-h.x,X=P.clientY-h.y,re=o.value;re.scrollLeft=m.x-W,re.scrollTop=m.y-X}let H=0,j=1,L;function J(P){if(!n.busy){if(a.value=P.touches.length===2,a.value){u(!0),P.stopPropagation(),P.preventDefault();const W=o.value;H=v(P),j=r.value,L={x:(P.touches[0].clientX+P.touches[1].clientX)/2,y:(P.touches[0].clientY+P.touches[1].clientY)/2,scrollLeft:W.scrollLeft,scrollTop:W.scrollTop,scrollWidth:W.scrollWidth,scrollHeight:W.scrollHeight}}(a.value||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",Z),window.addEventListener("touchend",C,{once:!0}))}}function C(){if(window.removeEventListener("touchmove",Z),a.value){u(!1),a.value=!1;return}if(!l.value)return;const P=Zt(()=>{u(!1),o.value.removeEventListener("scroll",X)},100),W=setTimeout(P,100);o.value.addEventListener("scroll",X);function X(){clearTimeout(W),P()}}function Z(P){if(u(!0),a.value){P.stopPropagation(),P.preventDefault();const X=v(P)/H;oe(Math.ceil(X*j*100)/100,L)}}const q=Zt(()=>i.value=!1,100);function K(P){n.busy||(i.value||(i.value=!0),q(),P.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=P.deltaY*(n.rtl?-1:1)),P.preventDefault()))}function v(P){return Math.hypot(P.touches[0].clientX-P.touches[1].clientX,P.touches[0].clientY-P.touches[1].clientY)}let I=0,F;function ce(P){P.stopPropagation(),!l.value&&(I++,F&&clearTimeout(F),I===2&&$(P.clientX,P.clientY),F=setTimeout(()=>{!l.value&&I===1&&t("click",P),F=void 0,I=0},300))}function $(P,W){if(!I)return;I=0;const X=r.value===1?2:1;oe(X,{x:P,y:W})}async function oe(P,W){const X=o.value,re=Math.min(Gn,Math.max(Qn,P));if(!X||r.value===re)return;const ae=(W==null?void 0:W.scrollLeft)??X.scrollLeft,Ke=(W==null?void 0:W.scrollTop)??X.scrollTop,Ue=(W==null?void 0:W.scrollHeight)??X.scrollHeight,Xe=(W==null?void 0:W.scrollWidth)??X.scrollWidth,Ae=W&&n.rtl?X.clientWidth-W.x:(W==null?void 0:W.x)??X.clientWidth/2,Qt=(W==null?void 0:W.y)??X.clientHeight/2;r.value=re,t("update:modelValue",re),await st();const A=X.scrollWidth/Xe,te=X.scrollHeight/Ue;X.scrollLeft=ae*A+Ae*(A-1)*(n.rtl?-1:1),X.scrollTop=Ke*te+Qt*(te-1)}return(P,W)=>(S(),U("div",{ref_key:"root",ref:o,tabindex:"0",class:_e(["w-full h-full overflow-auto scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":l.value||i.value,"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Re({"font-size":`${r.value}px`}),onClick:ce},[Oe(P.$slots,"default")],6))}}),sd=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),id=`.loading-indicator{display:inline-block;height:5rem;position:relative;width:5rem}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
|
|
4
4
|
`,ld={},ad={class:"flex justify-center items-center w-full h-full"},cd=[Y("div",{class:"loading-indicator"},null,-1)];function ud(e,t){return S(),U("div",ad,cd)}const sr=we(ld,[["render",ud],["styles",[id]]]),fd=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),dd=["data-index"],pd={key:0,class:"h-[75vh] w-[50vw] m-auto"},hd=["src"],gd=["src"],md=["data-index"],Ni=we(Te({__name:"ReaderBody",props:{direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},zoom:{},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=ee(null),r=fe(()=>{var u;return(u=o.value)==null?void 0:u.$el}),s=ee(null),i=Qu(r),l=fe(()=>{const{width:{value:u},height:{value:d}}=i;return n.pages.map(h=>{const m={indexes:h.map(j=>j.index)},x=h.map(({el:j})=>j).filter(Boolean);if(!x.length)return m;m.srcs=x.map(j=>j.src);const k=x.reduce((j,L)=>j+L.naturalWidth,0),H=x.reduce((j,L)=>j+L.naturalHeight,0)/x.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&u/k<d/H?(m.width=Math.min(u,k),m.height=H*m.width/k):m.height=Math.min(d,H),m})}),a=fe(()=>l.value.map(u=>(u==null?void 0:u.width)??(u==null?void 0:u.height)).filter(Boolean).sort((u,d)=>d-u)[0]);function c(u){if(!n.isLongStrip){const d=n.isVertical?i.height.value:i.width.value,m=(n.isVertical?u.clientY:n.isRTL?d-u.clientX:u.clientX)/d;if(m<=.2){t("prev");return}else if(m>=.8){t("next");return}}t("click")}return(u,d)=>{const h=sr,m=Di;return S(),Ie(m,{"model-value":u.zoom,ref_key:"root",ref:o,class:_e(["reader-body",{"reader-body--long-strip":u.isLongStrip,"reader-body--pages":!u.isLongStrip,"reader-body--vertical":u.isVertical,"reader-body--rtl":u.isRTL,"reader-body--idle":u.idle}]),"play-controller":u.playController,horizontal:!u.isVertical,rtl:u.isRTL,"touch-device":u.touchDevice,busy:u.busy,"long-strip":u.isLongStrip,style:Re({"--space-top":(u.spaceTop||0)+"em",...u.isLongStrip?{"--max-size-em":a.value+"em"}:{"--screen-width-em":z(i).width.value+"em","--screen-height-em":z(i).height.value+"em"}}),"onUpdate:modelValue":d[0]||(d[0]=x=>t("update:zoom",x)),onClick:c},{default:ie(()=>[(S(!0),U(xe,null,Nn(l.value,x=>(S(),U("div",Ho({key:u.direction+"_"+x.indexes[0],"data-index":x.indexes[0]},x.indexes.length>1?{"data-second-index":x.indexes[1]}:{}),[x.srcs?x.srcs.length==1?(S(),U("img",{key:1,src:x.srcs[0],style:Re({width:x.width!==void 0?x.width+"em":"",height:x.height!==void 0?x.height+"em":""})},null,12,hd)):(S(),U("div",{key:2,class:_e(["flex justify-center items-center",{"flex-row-reverse":u.isRTL}]),style:Re({width:x.width!==void 0?x.width+"em":"",height:x.height!==void 0?x.height+"em":""})},[(S(!0),U(xe,null,Nn(x.srcs,k=>(S(),U("div",{key:k,class:"h-full flex select-none"},[Y("img",{src:k,class:"flex-shrink-0 max-w-full max-h-full object-contain"},null,8,gd)]))),128))],6)):(S(),U("div",pd,[V(h)]))],16,dd))),128)),Y("div",{ref_key:"autoNextEl",ref:s,"data-index":u.totalImgs,style:Re(u.isLongStrip?u.isVertical?{height:z(i).height.value+"em"}:{width:z(i).width.value+"em"}:{})},[Oe(u.$slots,"end")],12,md)]),_:3},8,["model-value","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top)}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{display:flex;flex-direction:column;height:var(--max-size-em);justify-content:center}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:flex;height:var(--screen-height-em);justify-content:center;min-height:var(--screen-height-em);min-width:var(--screen-width-em);scroll-snap-align:center;width:var(--screen-width-em)}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages>div>img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
5
5
|
`]]]),vd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),bd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},_d={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},yd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Fi=we(Te({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=ee(null),r=ee(null),s=ee(!1),i=ee(!1),l=ee(3);return Ge(()=>{if(!n.hasNext)return;let a;yi(r,c=>{i.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),i.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),yi(o,c=>{s.value=c.some(u=>u.isIntersecting)}),lt(()=>a&&clearInterval(a))}),(a,c)=>(S(),U("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[pt(Y("div",bd,[a.hasNext?(S(),U("div",_d,[i.value?(S(),U("div",yd)):Be("",!0),pt((S(),U("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=jt(()=>t("next"),["stop"]))},[Vt(" Next in "+at(l.value),1)])),[[z(Yt)]])])):Be("",!0),pt((S(),U("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=jt(()=>t("hide"),["stop"]))},[Vt(" Hide ")])),[[z(Yt)]])],512),[[xc,s.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|