gear-second 0.3.1 → 0.3.2
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 +8 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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=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
|
-
`]]]),
|
|
4
|
-
`,
|
|
5
|
-
`]]]),
|
|
6
|
-
`]]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"}));function xd(e){var a,c,u,d,h;let t=-1;const{vol:n,chap:o,title:r}=e,s=((a=r==null?void 0:r.chapters)==null?void 0:a.length)>1?r.chapters:[];s.length&&(t=s.findIndex(m=>m.slug===e.slug),t===-1&&(t=s.findIndex(m=>m.vol===n&&m.chap===o)),t===-1&&(t=s.findIndex(m=>e.slug.startsWith(`${m.slug}-`)&&e.slug.length-m.slug.length>3)));const i=((c=e.prev)==null?void 0:c.slug)??((u=s[t+1])==null?void 0:u.slug),l=((d=e.next)==null?void 0:d.slug)??((h=s[t-1])==null?void 0:h.slug);return{activeIndex:t,activeLabel:Ri({vol:n,chap:o}),chaptersText:s.map(Ri),prevPath:ir(e.basePath,i),nextPath:ir(e.basePath,l)}}function ir(e,t){return!t||t.includes("://")||t.startsWith("/")?t:(e||"/")+t}function Ri({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const lr=3;function kd(e,t){const n=nn(Array.from({length:e.value.length})),o=[];let r=0;he([t,e],async([l,a],[c])=>{const u=Math.floor(l),d=Math.floor(c||-1),h=a.length-n.length;if(h>0){const m=Array.from({length:h});n.push(...m)}u!==d&&(r=Math.max(0,r-Math.abs(u-d)));for(let m=u;m<a.length;m++){if(r>lr)return;s(m)}for(let m=u-1;m>=0;m--){if(r>lr)return;s(m)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>lr||(o[l]||(o[l]=!0,r++,n[l]=await Cd(e.value[l]),r=Math.max(0,r-1)),s(i()))}function i(){for(let l=Math.floor(t.value);l<e.value.length;l++)if(!o[l])return l;for(let l=Math.floor(t.value)-1;l>=0;l--)if(!o[l])return l}return n}function Cd(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n),clearInterval(o))},20);n.onerror=()=>{t(n),clearInterval(o)},n.src=e})}function Td(e,t){return fe(()=>t.value?Hi(e):e.map((n,o)=>[{el:n,index:o}]))}function Hi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>s&&s.naturalWidth>s.naturalHeight)?[n[0]]:n;return[r.map((s,i)=>({el:s,index:t+i})),...Hi(e.slice(r.length),t+r.length)]}function Pd(e,t,n){const o=new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(e.length<4?0:e.length<6?1:2,t),i=Math.min(s+4,e.length<6?e.length-1:e.length),l=Math.max(0,i-4),a=e.slice(l,i);let c=!1;Promise.all(a.map(async u=>{const d=await Od(u);!c&&d&&(c=!0,r(!0))})).then(()=>{c||r(!1)})});return Fu(o,n??!1)}function Od(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n.naturalHeight/n.naturalWidth>2.5),clearInterval(o))},20);n.onerror=()=>{t(!1),clearInterval(o)},n.src=e})}function Id({initialPage:e,max:t}){const n=typeof e=="number"?Math.max(0,Math.min(e,t)):0,o=sessionStorage.getItem("tk:page:path");return o!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),o&&sessionStorage.removeItem("tk:page")),or("tk:page",n,{writeDefaults:!1,mergeDefaults(r){return Math.max(0,Math.min(r,t))}})}function Ed(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ar=40;function $d({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let u=!1,d=!1,h;const m=Zt(H,150),x=Sd(j,300);Ge(()=>{let v=null;Gl(async()=>{l.value&&l.value!==v&&(v=l.value,m(e.value),l.value.addEventListener("scroll",x))});let I=window.innerWidth;_i(l,()=>{const F=window.innerWidth;I!=F&&(I=F,k())}),he(n,k),he(t,k)});async function k(){u=!0,d=!1,await st(),H(e.value)}function H(v){if(!l.value)return;u=!0;const I=async()=>{await st(),u=!1,d=!0},F=L(Math.floor(v));if(!F){I();return}if(o.value){const ce=o.value?v%1*(r.value?F.offsetHeight:F.offsetWidth)||1:0,$=J(F)+ce;a(()=>{C($),I()})}else{const ce=d;a(()=>{F.scrollIntoView(ce?{behavior:"smooth",block:"start",inline:"start"}:void 0),I()})}}async function j(){if(!l.value||u||!d)return;const v=q();if(!v)return;const I=+v.getAttribute("data-index")||0,F=v.getBoundingClientRect(),ce=o.value?Math.floor((I+K(F))*100)/100:I;ce!==e.value&&c(ce)}function L(v){var I;return(I=l.value)==null?void 0:I.querySelector(`[data-index="${v}"],[data-second-index="${v}"]`)}function J(v){return r.value?v.offsetTop:s.value?l.value.clientWidth-v.offsetLeft-v.offsetWidth:v.offsetLeft}function C(v){if(Z()!==v)return r.value?l.value.scrollTop=v-(o.value?i.value??0:0):s.value?l.value.scrollLeft=-v:l.value.scrollLeft=v,v}function Z(){return r.value?l.value.scrollTop:s.value?-l.value.scrollLeft:l.value.scrollLeft}function q(){h??(h=l.value.getRootNode());const v=h.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-ar:ar,r.value&&o.value?i.value||ar:window.innerHeight/2);for(let I=0;I<v.length;I++){const F=v[I];if(F.hasAttribute("data-index"))return F;if(F===l.value)break}}function K(v){return r.value?Math.abs(v.top-(i.value||0))/v.height:s.value?Math.max(0,v.right-l.value.clientWidth)/v.width:Math.abs(v.left)/v.width}return{goToPage:H}}function Sd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Md({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=or("tk:isPlaying",e),c=ee(!1);let u,d;const h=Zt(K,100);let m;const x=Zt(()=>{c.value=!0,clearTimeout(m),m=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),k=()=>setTimeout(()=>{c.value=!1,x(),m&&(clearTimeout(m),m=void 0)},30);k(),t||gn(window,"mousemove",k);const H=Yu();Ge(()=>{he(H,I=>{a.value&&(I==="visible"?K():d==null||d())}),he(i,()=>j()),he(s,I=>{I||J()})}),lt(()=>{clearTimeout(m),m=void 0});async function j(I){a.value&&(d==null||d()),I&&(await st(),await I()),a.value&&h()}function L(){a.value?J():C()}function J(){a.value&&(a.value=!1,d==null||d(),k())}function C(){!a.value&&s.value&&(a.value=!0,K(),k())}function Z(){d==null||d()}function q(I){switch(I.key){case" ":I.preventDefault(),L();break;case"PageUp":case"PageDown":case(o.value?"ArrowUp":"ArrowLeft"):case(o.value?"ArrowDown":"ArrowRight"):j(()=>new Promise(F=>setTimeout(F,100)));break}}function K(){const I=n.value;if(!a.value||!I)return;const F=o.value?I.scrollHeight-I.clientHeight:I.scrollWidth-I.clientWidth,ce=v();if(F<=ce){J();return}d=()=>{u=Date.now(),d=void 0};const $=Date.now();u=$;const oe=(o.value?15:25)/i.value,P=o.value?"scrollTop":"scrollLeft",W=()=>{if(u!==$)return;const X=r.value?-1:1;I[P]+=X,setTimeout(W,oe)};W()}function v(){const I=n.value;return o.value?I.scrollTop:r.value?-I.scrollLeft:I.scrollLeft}return{isPlaying:a,isIdle:c,toggle:L,play:C,pause:Z,resume:K,stop:J,interfere:j,onKey:q,awake:k}}const Ad={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},jd=Te({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},imgs:{},isWebtoon:{type:Boolean},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle"],setup(e,{emit:t}){const n=e,o=Jc({touchDevice:n.touchDevice}),r=fe(()=>Array.isArray(n.imgs)?n.imgs.filter(A=>typeof A=="string"):[]),s=Id({initialPage:n.page,max:r.value.length-1}),i=Pd(r.value,Math.ceil(s.value),n.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:u,isVertical:d,isLongStrip:h,speed:m,zoom:x}=sf({titleId:n.raw.id??n.raw.title.slug,asyncIsWebtoon:i}),k=kd(r,s),H=Td(k,u),j=fe(()=>s.value>=r.value.length),L=xd(n.raw),J=fe(()=>c.value?L.nextPath:L.prevPath),C=fe(()=>c.value?L.prevPath:L.nextPath),Z=ee(null),q=Md({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:fe(()=>{var A;return(A=Z.value)==null?void 0:A.$el}),speed:m,isRTL:c,isVertical:d,isLongStrip:h,onLongIdle:()=>t("longIdle")});he(q.isPlaying,A=>{A||Ue(!1),t("playingChanged",A)}),he(q.isIdle,A=>{q.isPlaying.value&&Ue(A)}),he(o,A=>{!A&&q.isIdle.value?q.awake():A&&n.fullScreen&&Ue()});const K=fe(()=>q.isIdle.value&&!o.value),v=fe({get(){return x.value},set(A){q.interfere(()=>{x.value=A})}});nu().addListener({onKeyDown:A=>{if(q.onKey(A),!d.value)return;const te=A.key==="ArrowLeft",me=A.key==="ArrowRight";te?oe():me&&$()}});const F=$d({page:s,style:a,direction:l,isLongStrip:h,isVertical:d,isRTL:c,spaceTop:fe(()=>n.spaceTop),scrollEl:fe(()=>{var A;return(A=Z.value)==null?void 0:A.$el}),interferePlayer:A=>q.interfere(A),onChangedPage(A){if(A<0||A>=r.value.length+1)return;s.value=A,t("pageChanged",A),A>=r.value.length&&(Ue(!1),q.stop())}});function ce(){if(q.isPlaying.value){!n.fullScreen||!n.touchDevice?q.stop():q.awake();return}Ue()}function $(){W(L.nextPath)}function oe(){W(L.prevPath)}function P(A){var me;const te=(me=n.raw.title.chapters)==null?void 0:me[A].slug;te&&W(ir(n.raw.basePath,te))}function W(A){A&&(location.href=A.includes("://")?A:location.origin+A)}function X(){var me;const A=H.value,te=j.value?A[A.length-1][0].index:(me=A[ae()-1])==null?void 0:me[0].index;te!==void 0?F.goToPage(te):oe()}function re(){var te;const A=j.value?Math.floor(s.value)+1:((te=H.value[ae()+1])==null?void 0:te[0].index)??r.value.length;F.goToPage(A)}function ae(){const A=Math.floor(s.value),te=H.value.findIndex(me=>me.some(({index:wt})=>wt===A));return te===-1?H.value.length-1:te}function Ke(){Ed(),t("dispose")}async function Ue(A){o.value&&!n.fullScreen||t("fullScreenChanged",typeof A=="boolean"?A:!n.fullScreen)}function Xe(){n.entryId?Qt():Ae()}function Ae(){q.stop(),t("addEntry")}function Qt(){q.stop(),t("openEntry",n.entryId)}return(A,te)=>{const me=sr,wt=Fi,to=Ni,xt=Bi,mn=Li,vn=ji,f=Yn,p=Ai,g=rr,_=Mi,b=Si,T=$i,E=Ii,w=Oi,O=Pi,y=Xo,B=Zo,M=ei,D=Qs;return S(),Ie(D,{"full-screen":!!A.fullScreen,idle:K.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":A.touchDevice,rtl:z(c)},{back:ie(()=>[V(f,{href:A.raw.title.url,title:A.raw.title.name},{default:ie(()=>[V(vn)]),_:1},8,["href","title"])]),exit:ie(()=>[V(f,{title:"Hide reader",onClick:Ke},{default:ie(()=>[V(p)]),_:1})]),"chapter-nav":ie(()=>[V(g,{modelValue:z(L).activeIndex,label:z(L).activeLabel,items:z(L).chaptersText,"onUpdate:modelValue":P},null,8,["modelValue","label","items"]),J.value||C.value?(S(),U("div",Ad,[V(f,{title:z(c)?"Next":"Previous",href:J.value,disabled:!J.value,class:"!rounded-r-none"},{default:ie(()=>[V(_)]),_:1},8,["title","href","disabled"]),V(f,{title:z(c)?"Previous":"Next",href:C.value,disabled:!C.value,class:"!rounded-l-none"},{default:ie(()=>[V(b)]),_:1},8,["title","href","disabled"])])):Be("",!0)]),"page-nav":ie(()=>[V(T,{"model-value":z(s),disabled:z(i).isLoading.value,pages:z(H),"total-imgs":r.value.length,"onUpdate:modelValue":z(F).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),entry:ie(()=>[V(f,{title:A.entryId?"View entry":"Add to Trackkun",onClick:Xe},{default:ie(()=>[A.entryId?(S(),Ie(E,{key:0})):(S(),Ie(w,{key:1}))]),_:1},8,["title"])]),settings:ie(()=>[V(O,{"reader-style":z(a),"onUpdate:readerStyle":te[2]||(te[2]=N=>ye(a)?a.value=N:null),direction:z(l),"onUpdate:direction":te[3]||(te[3]=N=>ye(l)?l.value=N:null),speed:z(m),"onUpdate:speed":te[4]||(te[4]=N=>ye(m)?m.value=N:null),zoom:v.value,"onUpdate:zoom":te[5]||(te[5]=N=>v.value=N),webtoon:z(i).state.value,disabled:z(i).isLoading.value},null,8,["reader-style","direction","speed","zoom","webtoon","disabled"])]),play:ie(()=>[V(f,{title:z(q).isPlaying.value?"Pause":"Play",disabled:z(i).isLoading.value||!z(h),onClick:te[6]||(te[6]=()=>z(q).toggle())},{default:ie(()=>[z(q).isPlaying.value?(S(),Ie(y,{key:0})):(S(),Ie(B,{key:1}))]),_:1},8,["title","disabled"])]),"reset-zoom":ie(()=>[V(qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[V(M,{zoom:v.value,onClick:te[7]||(te[7]=jt(()=>v.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ie(()=>[Y("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500",style:Re({width:`${z(s)/(r.value.length-1)*100}%`})},null,4)]),default:ie(()=>[z(i).isLoading.value?(S(),Ie(me,{key:0})):(S(),U(xe,{key:1},[V(to,{ref_key:"body",ref:Z,zoom:v.value,"onUpdate:zoom":te[0]||(te[0]=N=>v.value=N),pages:z(H),"total-imgs":r.value.length,direction:z(l),"is-long-strip":z(h),isRTL:z(c),"is-vertical":z(d),"space-top":A.spaceTop,"space-bottom":n.spaceBottom,"touch-device":A.touchDevice,busy:z(o),idle:K.value,"play-controller":z(q),onPrev:X,onNext:re,onClick:ce,onWheelPassive:te[1]||(te[1]=()=>z(q).interfere())},ga({_:2},[!z(i).isLoading.value&&r.value.length?{name:"end",fn:ie(()=>[V(wt,{"has-next":!!z(L).nextPath,onNext:$,onHide:Ke},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),V(xt,{direction:z(l)},null,8,["direction"]),j.value?Be("",!0):(S(),Ie(mn,{key:0,playing:z(q).isPlaying.value},null,8,["playing"]))],64))]),_:1},8,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Vi=we(jd,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:.5rem;left:.5rem;right:.5rem;top:.5rem}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:.75rem}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:.25rem}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-3rem;margin-right:-3rem}.-my-12{margin-bottom:-3rem;margin-top:-3rem}.ml-auto{margin-left:auto}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.mb-8{margin-bottom:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:.125rem}.h-0{height:0}.h-full{height:100%}.h-12{height:3rem}.h-\\[24rem\\]{height:24rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-1\\.5{height:.375rem}.h-1{height:.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-6{height:1.5rem}.h-20{height:5rem}.h-\\[75vh\\]{height:75vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[75vh\\]{max-height:75vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:7rem}.w-40{width:10rem}.w-4{width:1rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-\\[50vw\\]{width:50vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{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))}.-translate-y-1\\.5{--tw-translate-y:-.375rem}.-translate-y-1{--tw-translate-y:-.25rem}.-translate-y-1,.translate-y-1\\.5{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))}.translate-y-1\\.5{--tw-translate-y:.375rem}.translate-y-1{--tw-translate-y:.25rem}.-translate-x-1\\/2,.translate-y-1{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))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{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))}.translate-y-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{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))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{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))}.scale-y-90{--tw-scale-y:.9}.transform{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))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:1.5rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-sm{border-radius:.125rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-75{--tw-bg-opacity:.75}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-90{--tw-bg-opacity:.9}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:1.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pt-3{padding-top:.75rem}.pb-12{padding-bottom:3rem}.pl-1{padding-left:.25rem}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.ease-linear{transition-timing-function:linear}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:.25rem;width:.25rem}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-200:hover{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-200{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}.group:hover .group-hover\\:bg-opacity-10{--tw-bg-opacity:.1}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1024px){.lg\\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width:1280px){.xl\\:px-12{padding-left:3rem;padding-right:3rem}}
|
|
7
|
-
`]]]),
|
|
8
|
-
`,zt="gear-second",Wi="gear-second--adblock",
|
|
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 lp=Object.defineProperty;var ap=(je,G,Ne)=>G in je?lp(je,G,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):je[G]=Ne;var Zi=(je,G,Ne)=>(ap(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]/,bn=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]",fr=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",dr=e=>pe(e)&&Q(e.then)&&Q(e.catch),pr=Object.prototype.toString,yn=e=>pr.call(e),Gi=e=>yn(e).slice(8,-1),hr=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,Ae=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 gr;const co=()=>gr||(gr=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 ye(e){let t="";if(ve(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const o=ye(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 mr(e){return!!e||e===""}const at=e=>ve(e)?e:e==null?"":R(e)||pe(e)&&(e.toString===pr||!Q(e.toString))?JSON.stringify(e,vr,2):String(e),vr=(e,t)=>t&&t.__v_isRef?vr(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:fr(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!R(t)&&!hr(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},br=e=>(e.w&ct)>0,yr=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];br(r)&&!yr(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):wr(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&&(wr(this),this.onStop&&this.onStop(),this.active=!1)}}function wr(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 xr=[];function Dt(){xr.push(ut),ut=!1}function Nt(){const e=xr.pop();ut=e===void 0?!0:e}function Ee(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()),kr(r)}}function kr(e,t){let n=!1;tn<=po?yr(e)||(e.n|=ct,n=!br(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&&Cr(o);for(const o of n)o.computed||Cr(o)}function Cr(e,t){(e!==Ye||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const dl=je("__proto__,__v_isRef,__isVue"),Tr=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),Pr=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++)Ee(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 Ee(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?Ll:Ar:t?jr:Lr).get(o))return o;const i=R(o);if(!e){if(i&&se(Pr,r))return Reflect.get(Pr,r,s);if(r==="hasOwnProperty")return vl}const l=Reflect.get(o,r,s);return(ro(r)?Tr.has(r):dl(r))||(e||Ee(o,"get",r),t)?l:we(l)?i&&so(r)?l:l.value:pe(l)?e?yo(l):nn(l):l}}const _l=Or(),bl=Or(!0);function Or(e=!1){return function(n,o,r,s){let i=n[o];if(Rt(i)&&we(i)&&!we(r))return!1;if(!e&&(!Mn(r)&&!Rt(r)&&(i=le(i),r=le(r)),!R(n)&&we(i)&&!we(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)||!Tr.has(t))&&Ee(e,"has",t),n}function xl(e){return Ee(e,"iterate",R(e)?"length":kt),Reflect.ownKeys(e)}const Ir={get:pl,set:_l,deleteProperty:yl,has:wl,ownKeys:xl},kl={get:gl,set(e,t){return!0},deleteProperty(e,t){return!0}},Cl=ge({},Ir,{get:hl,set:bl}),_o=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&&Ee(r,"get",t),Ee(r,"get",s));const{has:i}=Pn(r),l=o?_o: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&&Ee(o,"has",e),Ee(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function $n(e,t=!1){return e=e.__v_raw,!t&&Ee(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 Er(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 Sr(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 Mr(){const e=le(this),t=e.size!==0,n=e.clear();return t&&ot(e,"clear",void 0,void 0),n}function En(e,t){return function(o,r){const s=this,i=s.__v_raw,l=le(i),a=t?_o:e?xo:on;return!e&&Ee(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?_o:t?xo:on;return!t&&Ee(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 $n(this)},has:In,add:$r,set:Er,delete:Sr,clear:Mr,forEach:En(!1,!1)},t={get(s){return On(this,s,!1,!0)},get size(){return $n(this)},has:In,add:$r,set:Er,delete:Sr,clear:Mr,forEach:En(!1,!0)},n={get(s){return On(this,s,!0)},get size(){return $n(this,!0)},has(s){return In.call(this,s,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:En(!0,!1)},o={get(s){return On(this,s,!0,!0)},get size(){return $n(this,!0)},has(s){return In.call(this,s,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:En(!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,$l]=Tl();function bo(e,t){const n=t?e?$l: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 El={get:bo(!1,!1)},Sl={get:bo(!1,!0)},Ml={get:bo(!0,!1)},Lr=new WeakMap,jr=new WeakMap,Ar=new WeakMap,Ll=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 Al(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(Gi(e))}function nn(e){return Rt(e)?e:wo(e,!1,Ir,El,Lr)}function zl(e){return wo(e,!1,Cl,Sl,jr)}function yo(e){return wo(e,!0,kl,Ml,Ar)}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=Al(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 zr(e){return Ft(e)||Rt(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Br(e){return Tn(e,"__v_skip",!0),e}const on=e=>pe(e)?nn(e):e,xo=e=>pe(e)?yo(e):e;function Dr(e){ut&&Ye&&(e=le(e),kr(e.dep||(e.dep=uo())))}function Nr(e,t){e=le(e);const n=e.dep;n&&mo(n)}function we(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return Rr(e,!1)}function Fr(e){return Rr(e,!0)}function Rr(e,t){return we(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 Dr(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),Nr(this))}}function z(e){return we(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 we(r)&&!we(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Hr(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,Nr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=le(this);return Dr(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 up(e,...t){}function dt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Ln(s,t,n)}return r}function He(e,t,n,o){if(Q(e)){const s=dt(e,t,n,o);return s&&dr(s)&&s.catch(i=>{Ln(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 Ln(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 Vr=Promise.resolve();let Co=null;function st(e){const t=Co||Vr;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),Wr())}function Wr(){!rn&&!ko&&(ko=!0,Co=Vr.then(qr))}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),Wr()}function Kr(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 Ur(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 qr(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,Ur(),rn=!1,Co=null,(Pe.length||Ht.length)&&qr()}}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(Ae(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 Yr(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=Yr(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||!bn(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,Zr=null;function An(e){const t=Ce;return Ce=e,Zr=e&&e.type.__scopeId||null,t}function ie(e,t=Ce,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Cs(-1);const s=An(t);let i;try{i=e(...r)}finally{An(s),o._d&&Cs(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function fp(){}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 A=An(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,Ln(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,An(A),H}const ql=e=>{let t;for(const n in e)(n==="class"||n==="style"||bn(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?Xr(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?Xr(o,i,c):!0:!!i;return!1}function Xr(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(we(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(we(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=A.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(A.active)if(t){const C=A.run();(o||u||(d?C.some((Z,U)=>en(Z,k[U])):en(C,k)))&&(h&&h(),He(t,a,3,[C,k===zn?void 0:d&&k[0]===zn?[]:k,m]),k=C)}else A.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 A=new go(c,j);t?n?H():k=A.run():r==="post"?Se(A.run.bind(A),a&&a.suspense):A.run();const J=()=>{A.stop(),a&&a.scope&&oo(a.scope.effects,A)};return x&&x.push(J),J}function ea(e,t,n){const o=this.proxy,r=ve(e)?e.includes(".")?Jr(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):Et(),l}function Jr(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),we(e))Tt(e.value,t);else if(R(e))for(let n=0;n<e.length;n++)Tt(e[n],t);else if(fr(e)||Bt(e))e.forEach(n=>{Tt(n,t)});else if(hr(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}),os(()=>{e.isUnmounting=!0}),e}const Ve=[Function,Array],Qr={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:Qr,setup(e,{slots:t}){const n=Os(),o=ta();let r;return()=>{const s=t.default&&ts(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 $o(i);const c=es(i);if(!c)return $o(i);const u=Io(c,l,o,n);Eo(c,u);const d=n.subTree,h=d&&es(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&&(!$t(c,h)||m)){const k=Io(h,l,o,n);if(Eo(h,k),a==="out-in")return o.isLeaving=!0,k.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},$o(i);a==="in-out"&&c.type!==We&&(k.delayLeave=(H,j,A)=>{const J=Gr(o,h);J[String(h.key)]=h,H._leaveCb=()=>{j(),H._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=A})}return i}}};function Gr(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:A}=t,J=String(e.key),C=Gr(n,e),Z=(v,I)=>{v&&He(v,o,9,I)},U=(v,I)=>{const F=I[1];Z(v,I),R(v)?v.every(ce=>ce.length<=1)&&F():v.length<=1&&F()},q={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&&$t(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=A||u;else return;let S=!1;const oe=v._enterCb=P=>{S||(S=!0,P?Z(ce,[v]):Z(F,[v]),q.delayedLeave&&q.delayedLeave(),v._enterCb=void 0)};I?U(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 S=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?U(h,[v,S]):S()},clone(v){return Io(v,t,n,o)}};return q}function $o(e){if(Bn(e))return e=ht(e),e.children=null,e}function es(e){return Bn(e)?e.children?e.children[0]:void 0:e}function Eo(e,t){e.shapeFlag&6&&e.component?Eo(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 ts(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(ts(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){ns(e,"a",t)}function ra(e,t){ns(e,"da",t)}function ns(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 Et(),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"),os=it("bum"),lt=it("um"),ca=it("sp"),ua=it("rtg"),fa=it("rtc");function da(e,t=ke){Dn("ec",e,t)}const rs="components",ss=Symbol.for("v-ndc");function pa(e){return ve(e)?ha(rs,e,!1)||e:e||ss}function ha(e,t,n=!0,o=!1){const r=Ce||ke;if(r){const s=r.type;if(e===rs){const l=Va(s,!1);if(l&&(l===t||l===Ae(t)||l===kn(Ae(t))))return s}const i=is(r[e]||s[e],t)||is(r.appContext[e],t);return!i&&o?s:i}}function is(e,t){return e&&(e[t]||e[Ae(t)]||e[kn(Ae(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),E();const i=s&&ls(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 ls(e){return e.some(t=>Wn(t)?!(t.type===We||t.type===xe&&!ls(t.children)):!0)?e:null}const So=e=>e?$s(e)?qn(e)||e.proxy:So(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=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>jo(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)}),Mo=(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(Mo(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];Lo&&(i[t]=0)}}const u=an[t];let d,h;if(u)return t==="$attrs"&&Ee(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 Mo(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)||Mo(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 as(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Lo=!0;function va(e){const t=jo(e),n=e.proxy,o=e.ctx;Lo=!1,t.beforeCreate&&cs(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:A,destroyed:J,unmounted:C,render:Z,renderTracked:U,renderTriggered:q,errorCaptured:v,serverPrefetch:I,expose:F,inheritAttrs:ce,components:S,directives:oe,filters:P}=t;if(c&&_a(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(Lo=!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:Le=>Xe.value=Le})}if(l)for(const re in l)us(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&&cs(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,U),X(ua,q),X(os,A),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),S&&(e.components=S),oe&&(e.directives=oe)}function _a(e,t,n=qe){R(e)&&(e=Ao(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),we(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function cs(e,t,n){He(R(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function us(e,t,n,o){const r=o.includes(".")?Jr(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=>us(s,t,n,o));else{const s=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(s)&&he(r,s,e)}}function jo(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=ba[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const ba={data:fs,props:ds,emits:ds,methods:cn,computed:cn,beforeCreate:$e,created:$e,beforeMount:$e,mounted:$e,beforeUpdate:$e,updated:$e,beforeDestroy:$e,beforeUnmount:$e,destroyed:$e,unmounted:$e,activated:$e,deactivated:$e,errorCaptured:$e,serverPrefetch:$e,components:cn,directives:cn,watch:wa,provide:fs,inject:ya};function fs(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(Ao(e),Ao(t))}function Ao(e){if(R(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function $e(e,t){return e?[...new Set([].concat(e,t))]:t}function cn(e,t){return e?ge(Object.create(null),e,t):t}function ds(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:ge(Object.create(null),as(e),as(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]=$e(e[o],t[o]);return n}function ps(){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=ps(),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),hs(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=Ae(h);r[x]=zo(a,l,x,m,e,!1)}else m!==s[h]&&(s[h]=m,c=!0)}}}else{hs(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]=zo(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 hs(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=Ae(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]=zo(r,a,d,c[d],e,!se(c,d))}}return i}function zo(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),Et())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Fe(n))&&(o=!0))}return o}function gs(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]=gs(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=Ae(s[u]);ms(d)&&(i[d]=G)}else if(s)for(const u in s){const d=Ae(u);if(ms(d)){const h=s[u],m=i[d]=R(h)||Q(h)?{type:h}:ge({},h);if(m){const x=bs(Boolean,m.type),k=bs(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 ms(e){return e[0]!=="$"}function vs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function _s(e,t){return vs(e)===vs(t)}function bs(e,t){return R(t)?t.findIndex(n=>_s(n,e)):Q(t)&&_s(t,e)?0:-1}const ys=e=>e[0]==="_"||e==="$stable",Bo=e=>R(e)?e.map(et):[et(e)],Pa=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Bo(t(...r)),n);return o._c=!1,o},ws=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ys(r))continue;const s=e[r];if(Q(s))t[r]=Pa(r,s,o);else if(s!=null){const i=Bo(s);t[r]=()=>i}}},xs=(e,t)=>{const n=Bo(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),Tn(t,"_",n)):ws(t,e.slots={})}else e.slots={},t&&xs(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,ws(t,r)),i=t}else t&&(xs(e,t),i={default:1});if(s)for(const l in r)!ys(l)&&!(l in i)&&delete r[l]};function Do(e,t,n,o,r=!1){if(R(e)){e.forEach((h,m)=>Do(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)):we(c)&&(c.value=null)),Q(a))dt(a,l,12,[i,u]);else{const h=ve(a),m=we(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 $a(e){return Ea(e)}function Ea(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,b=null,_=null,T=null,$=!1,w=null,O=!!p.dynamicChildren)=>{if(f===p)return;f&&!$t(f,p)&&(b=wt(f),Le(f,_,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,b);break;case We:j(f,p,g,b);break;case No:f==null&&A(p,g,b,$);break;case xe:S(f,p,g,b,_,T,$,w,O);break;default:M&1?Z(f,p,g,b,_,T,$,w,O):M&6?oe(f,p,g,b,_,T,$,w,O):(M&64||M&128)&&y.process(f,p,g,b,_,T,$,w,O,xt)}B!=null&&_&&Do(B,f&&f.ref,T,p||f,!p)},H=(f,p,g,b)=>{if(f==null)o(p.el=l(p.children),g,b);else{const _=p.el=f.el;p.children!==f.children&&c(_,p.children)}},j=(f,p,g,b)=>{f==null?o(p.el=a(p.children||""),g,b):p.el=f.el},A=(f,p,g,b)=>{[f.el,f.anchor]=x(f.children,p,g,b,f.el,f.anchor)},J=({el:f,anchor:p},g,b)=>{let _;for(;f&&f!==p;)_=h(f),o(f,g,b),f=_;o(p,g,b)},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,$,w,O)=>{$=$||p.type==="svg",f==null?U(p,g,b,_,T,$,w,O):I(f,p,_,T,$,w,O)},U=(f,p,g,b,_,T,$,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",$,w),ne&&Pt(f,null,b,"created"),q(O,f,f.scopeId,$,b),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,b,f)}ne&&Pt(f,null,b,"beforeMount");const de=(!_||_&&!_.pendingBranch)&&N&&!N.persisted;de&&N.beforeEnter(O),o(O,p,g),((y=M&&M.onVnodeMounted)||de||ne)&&Se(()=>{y&&tt(y,b,f),de&&N.enter(O),ne&&Pt(f,null,b,"mounted")},_)},q=(f,p,g,b,_)=>{if(g&&m(f,g),b)for(let T=0;T<b.length;T++)m(f,b[T]);if(_){let T=_.subTree;if(p===T){const $=_.vnode;q(f,$,$.scopeId,$.slotScopeIds,_.parent)}}},v=(f,p,g,b,_,T,$,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,$,w)}},I=(f,p,g,b,_,T,$)=>{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=_&&p.type!=="foreignObject";if(y?F(f.dynamicChildren,y,w,g,b,ne,T):$||ae(f,p,w,null,g,b,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,_),O&4&&s(w,"style",M.style,D.style,_),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,_,f.children,g,b,me)}}O&1&&f.children!==p.children&&u(w,p.children)}else!$&&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")},b)},F=(f,p,g,b,_,T,$)=>{for(let w=0;w<p.length;w++){const O=f[w],y=p[w],B=O.el&&(O.type===xe||!$t(O,y)||O.shapeFlag&70)?d(O.el):g;k(O,y,B,null,b,_,T,$,!0)}},ce=(f,p,g,b,_,T,$)=>{if(g!==b){if(g!==G)for(const w in g)!wn(w)&&!(w in b)&&s(f,w,g[w],null,$,p.children,_,T,me);for(const w in b){if(wn(w))continue;const O=b[w],y=g[w];O!==y&&w!=="value"&&s(f,w,y,O,$,p.children,_,T,me)}"value"in b&&s(f,"value",g.value,b.value)}},S=(f,p,g,b,_,T,$,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,b),o(B,g,b),v(p.children,g,B,_,T,$,w,O)):M>0&&M&64&&D&&f.dynamicChildren?(F(f.dynamicChildren,D,g,_,T,$,w),(p.key!=null||_&&p===_.subTree)&&ks(f,p,!0)):ae(f,p,g,B,_,T,$,w,O)},oe=(f,p,g,b,_,T,$,w,O)=>{p.slotScopeIds=w,f==null?p.shapeFlag&512?_.ctx.activate(p,g,b,$,O):P(p,g,b,_,T,$,O):W(f,p,O)},P=(f,p,g,b,_,T,$)=>{const w=f.component=Da(f,b,_);if(Bn(f)&&(w.ctx.renderer=xt),Na(w),w.asyncDep){if(_&&_.registerDep(w,X),!f.el){const O=w.subTree=V(We);j(null,O,p,g)}return}X(w,f,p,g,_,T,$)},W=(f,p,g)=>{const b=p.component=f.component;if(Zl(f,p,g))if(b.asyncDep&&!b.asyncResolved){re(b,p,g);return}else b.next=p,Vl(b.update),b.update();else p.el=f.el,b.vnode=p},X=(f,p,g,b,_,T,$)=>{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,$)):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,_,T),B.el=be.el,de===null&&Xl(f,be.el),D&&Se(D,_),(ue=B.props&&B.props.onVnodeUpdated)&&Se(()=>tt(ue,N,B,ne),_)}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,_,null)};ue?p.type.__asyncLoader().then(()=>!f.isUnmounted&&be()):be()}else{const be=f.subTree=Po(f);k(null,be,g,b,f,_,T),p.el=be.el}if(ne&&Se(ne,_),!ue&&(B=D&&D.onVnodeMounted)){const be=p;Se(()=>tt(B,de,be),_)}(p.shapeFlag&256||de&&ln(de.vnode)&&de.vnode.shapeFlag&256)&&f.a&&Se(f.a,_),f.isMounted=!0,p=g=b=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 b=f.vnode.props;f.vnode=p,f.next=null,Ta(f,p.props,b,g),Ia(f,p.children,g),Dt(),Kr(),Nt()},ae=(f,p,g,b,_,T,$,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,$,w,O);return}else if(D&256){Ke(y,M,g,b,_,T,$,w,O);return}}N&8?(B&16&&me(y,_,T),M!==y&&u(g,M)):B&16?N&16?Ue(y,M,g,b,_,T,$,w,O):me(y,_,T,!0):(B&8&&u(g,""),N&16&&v(M,g,b,_,T,$,w,O))},Ke=(f,p,g,b,_,T,$,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,_,T,$,w,O)}y>B?me(f,_,T,!0,!1,M):v(p,g,b,_,T,$,w,O,M)},Ue=(f,p,g,b,_,T,$,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($t(N,ne))k(N,ne,g,null,_,T,$,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($t(N,ne))k(N,ne,g,null,_,T,$,w,O);else break;M--,D--}if(y>M){if(y<=D){const N=D+1,ne=N<B?p[N].el:b;for(;y<=D;)k(null,p[y]=O?gt(p[y]):et(p[y]),g,ne,_,T,$,w,O),y++}}else if(y>D)for(;y<=M;)Le(f[y],_,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 _n=new Array(Je);for(y=0;y<Je;y++)_n[y]=0;for(y=N;y<=M;y++){const De=f[y];if(be>=Je){Le(De,_,T,!0);continue}let nt;if(De.key!=null)nt=de.get(De.key);else for(ue=ne;ue<=D;ue++)if(_n[ue-ne]===0&&$t(De,p[ue])){nt=ue;break}nt===void 0?Le(De,_,T,!0):(_n[nt-ne]=y+1,nt>=Ui?Ui=nt:Gt=!0,k(De,p[nt],g,null,_,T,$,w,O),be++)}const qi=Gt?Sa(_n):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:b;_n[y]===0?k(null,nt,g,Yi,_,T,$,w,O):Gt&&(ue<0||y!==qi[ue]?Xe(nt,g,Yi,2):ue--)}}},Xe=(f,p,g,b,_=null)=>{const{el:T,type:$,transition:w,children:O,shapeFlag:y}=f;if(y&6){Xe(f.component.subTree,p,g,b);return}if(y&128){f.suspense.move(p,g,b);return}if(y&64){$.move(f,p,g,xt);return}if($===xe){o(T,p,g);for(let M=0;M<O.length;M++)Xe(O[M],p,g,b);o(f.anchor,p,g);return}if($===No){J(f,p,g);return}if(b!==2&&y&1&&w)if(b===0)w.beforeEnter(T),o(T,p,g),Se(()=>w.enter(T),_);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)},Le=(f,p,g,b=!1,_=!1)=>{const{type:T,props:$,ref:w,children:O,dynamicChildren:y,shapeFlag:B,patchFlag:M,dirs:D}=f;if(w!=null&&Do(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=$&&$.onVnodeBeforeUnmount)&&tt(de,p,f),B&6)te(f.component,g,b);else{if(B&128){f.suspense.unmount(g,b);return}N&&Pt(f,null,p,"beforeUnmount"),B&64?f.type.remove(f,p,g,_,xt,b):y&&(T!==xe||M>0&&M&64)?me(y,p,g,!1,!0):(T===xe&&M&384||!_&&B&16)&&me(O,p,g),b&&Qt(f)}(ne&&(de=$&&$.onVnodeUnmounted)||N)&&Se(()=>{de&&tt(de,p,f),N&&Pt(f,null,p,"unmounted")},g)},Qt=f=>{const{type:p,el:g,anchor:b,transition:_}=f;if(p===xe){L(g,b);return}if(p===No){C(f);return}const T=()=>{r(g),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(f.shapeFlag&1&&_&&!_.persisted){const{leave:$,delayLeave:w}=_,O=()=>$(g,T);w?w(f.el,T,O):O()}else T()},L=(f,p)=>{let g;for(;f!==p;)g=h(f),r(f),f=g;r(p)},te=(f,p,g)=>{const{bum:b,scope:_,update:T,subTree:$,um:w}=f;b&&Cn(b),_.stop(),T&&(T.active=!1,Le($,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,b=!1,_=!1,T=0)=>{for(let $=T;$<f.length;$++)Le(f[$],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&&Le(p._vnode,null,null,!0):k(p._vnode||null,f,p,null,null,null,g),Kr(),Ur(),p._vnode=f},xt={p:k,um:Le,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 ks(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||ks(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"),No=Symbol.for("v-stc"),un=[];let Ze=null;function E(e=!1){un.push(Ze=e?null:[])}function La(){un.pop(),Ze=un[un.length-1]||null}let fn=1;function Cs(e){fn+=e}function Ts(e){return e.dynamicChildren=fn>0?Ze||Ne:null,La(),fn>0&&Ze&&Ze.push(e),e}function K(e,t,n,o,r,s){return Ts(Y(e,t,n,o,r,s,!0))}function Ie(e,t,n,o,r){return Ts(V(e,t,n,o,r,!0))}function Wn(e){return e?e.__v_isVNode===!0:!1}function $t(e,t){return e.type===t.type&&e.key===t.key}const Kn="__vInternal",Ps=({key:e})=>e??null,Un=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||we(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&&Ps(t),ref:t&&Un(t),scopeId:Zr,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?(Fo(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&&Fo(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=Aa(t);let{class:l,style:a}=t;l&&!ve(l)&&(t.class=ye(l)),pe(a)&&(zr(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 Aa(e){return e?zr(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?Ro(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ps(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?(E(),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 Fo(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),Fo(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 Ro(...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=ye([t.class,o.class]));else if(r==="style")t.style=Re([t.style,o.style]);else if(bn(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=ps();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:gs(o,r),emitsOptions:Yr(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 Os=()=>ke||Ce;let Ho,Wt,Is="__VUE_INSTANCE_SETTERS__";(Wt=co()[Is])||(Wt=co()[Is]=[]),Wt.push(e=>ke=e),Ho=e=>{Wt.length>1?Wt.forEach(t=>t(e)):Wt[0](e)};const Kt=e=>{Ho(e),e.scope.on()},Et=()=>{ke&&ke.scope.off(),Ho(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=Br(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(),Et(),dr(s)){if(s.then(Et,Et),t)return s.then(i=>{Es(e,i,t)}).catch(i=>{Ln(i,e,0)});e.asyncDep=s}else Es(e,s,t)}else Ms(e,t)}function Es(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Hr(t)),Ms(e,n)}let Ss;function Ms(e,t,n){const o=e.type;if(!e.render){if(!t&&Ss&&!o.render){const r=o.template||jo(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=Ss(r,c)}}e.render=o.render||qe}Kt(e),Dt(),va(e),Nt(),Et()}function Ra(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ee(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(Hr(Br(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 Ls(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,js=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{js.innerHTML=o?`<svg>${e}</svg>`:e;const l=js.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&&Vo(o,s,"");for(const s in n)Vo(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 As=/\s*!important$/;function Vo(e,t,n){if(R(n))n.forEach(o=>Vo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Qa(e,t);As.test(n)?e.setProperty(Fe(o),n.replace(As,""),"important"):e[o]=n}}const zs=["Webkit","Moz","ms"],Wo={};function Qa(e,t){const n=Wo[t];if(n)return n;let o=Ae(t);if(o!=="filter"&&o in e)return Wo[t]=o;o=kn(o);for(let r=0;r<zs.length;r++){const s=zs[r]+o;if(s in e)return Wo[t]=s}return t}const Bs="http://www.w3.org/1999/xlink";function Ga(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bs,t.slice(6,t.length)):e.setAttributeNS(Bs,t,n);else{const s=il(t);n==null||s&&!mr(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=mr(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 Ds=/(?:Once|Passive|Capture)$/;function oc(e){let t;if(Ds.test(e)){t={};let o;for(;o=e.match(Ds);)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 Ko=0;const rc=Promise.resolve(),sc=()=>Ko||(rc.then(()=>Ko=0),Ko=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 Ns=/^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):bn(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&&Ns.test(t)&&Q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ns.test(t)&&ve(n)?!1:t in e}function uc(e,t){const n=Te(e);class o extends Uo{constructor(s){super(n,s,t)}}return o.def=n,o}const fc=typeof HTMLElement<"u"?HTMLElement:class{};class Uo 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||(Xs(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)))[Ae(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(Ae))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ae(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(){Xs(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 Uo){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})=>Ls(na,dc(e),t);qt.displayName="Transition";const Fs={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({},Qr,Fs);const Mt=(e,t=[])=>{R(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rs=e=>e?R(e)?e.some(t=>t.length>1):e.length>1:!1;function dc(e){const t={};for(const S in e)S in Fs||(t[S]=e[S]);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:A,onEnterCancelled:J,onLeave:C,onLeaveCancelled:Z,onBeforeAppear:U=j,onAppear:q=A,onAppearCancelled:v=J}=t,I=(S,oe,P)=>{Lt(S,oe?u:l),Lt(S,oe?c:i),P&&P()},F=(S,oe)=>{S._isLeaving=!1,Lt(S,d),Lt(S,m),Lt(S,h),oe&&oe()},ce=S=>(oe,P)=>{const W=S?q:A,X=()=>I(oe,S,P);Mt(W,[oe,X]),Hs(()=>{Lt(oe,S?a:s),vt(oe,S?u:l),Rs(W)||Vs(oe,o,k,X)})};return ge(t,{onBeforeEnter(S){Mt(j,[S]),vt(S,s),vt(S,i)},onBeforeAppear(S){Mt(U,[S]),vt(S,a),vt(S,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave(S,oe){S._isLeaving=!0;const P=()=>F(S,oe);vt(S,d),mc(),vt(S,h),Hs(()=>{S._isLeaving&&(Lt(S,d),vt(S,m),Rs(C)||Vs(S,o,H,P))}),Mt(C,[S,P])},onEnterCancelled(S){I(S,!1),Mt(J,[S])},onAppearCancelled(S){I(S,!0),Mt(v,[S])},onLeaveCancelled(S){F(S),Mt(Z,[S])}})}function pc(e){if(e==null)return null;if(pe(e))return[qo(e.enter),qo(e.leave)];{const t=qo(e);return[t,t]}}function qo(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 Lt(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 Hs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hc=0;function Vs(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=Ws(r,s),l=o(`${pn}Delay`),a=o(`${pn}Duration`),c=Ws(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 Ws(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ks(n)+Ks(e[o])))}function Ks(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function mc(){return document.body.offsetHeight}const Us=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>Cn(t,n):t};function vc(e){e.target.composing=!0}function qs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Us(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",qs),Ut(e,"change",qs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Us(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)}},bc=["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)=>bc.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"},Ys=(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 Zs;function Cc(){return Zs||(Zs=$a(kc))}const Xs=(...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"},$c={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ec={class:"inline-block z-20 relative"},Js=Te({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(E(),K("div",{class:ye(["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:ye(["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",$c,[Oe(t.$slots,"entry"),Y("div",Ec,[Oe(t.$slots,"settings")]),Oe(t.$slots,"play")])]),Y("div",{class:ye(["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:Js},Symbol.toStringTag,{value:"Module"})),_e=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Lc={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 Ac(e,t){return E(),K("svg",Lc,jc)}const Qs=_e(Mc,[["render",Ac]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},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"},Gs=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Qs;return t.zoom!==1?(E(),K("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:Gs},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 E(),K("svg",Hc,Vc)}const Yo=_e(Rc,[["render",Wc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},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 E(),K("svg",qc,Yc)}const Zo=_e(Uc,[["render",Zc]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},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),console.log("busy",r,n)}),t}function Xo(){const e=Ot("busy:touchDevice"),t=Ot("setBusyState");let n=!1;return lt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(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=Xo();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>pt((E(),Ie(pa(a.href?"a":"button"),Ro(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"})),tu={},nu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ou=[Y("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function ru(e,t){return E(),K("svg",nu,ou)}const ei=_e(tu,[["render",ru]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"}));class iu{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 lu(){const e=new iu;return lt(()=>e.dispose()),Hn("keyController",e),e}function Jo(e){const t=Ot("keyController");Ge(()=>t.addListener(e)),lt(()=>t.removeListener(e))}const au={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},cu={class:"inline-flex items-center h-full absolute left-3 top-0"},uu=Y("span",{class:"text-xl font-medium"},"Customize",-1),fu={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;Jo({onKeyDown:r});const o=Xo();he(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ei,a=Yn;return E(),K("div",{class:ye(["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?(E(),K("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",au,[Y("div",cu,[V(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:ie(()=>[V(l)]),_:1})]),uu]),Y("div",fu,[Oe(s.$slots,"default")])])):Be("",!0)]),_:3})],2)}}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),pu=["min","max","step"],hu={class:"flex-shrink-0"},ni=_e(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)=>(E(),K("div",{class:ye(["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,pu),[[_c,o.value]]),Y("p",hu,[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
|
+
`]]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),mu={class:"flex items-center mb-8 last:mb-0"},vu={class:"flex-grow overflow-hidden"},oi=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(E(),K("div",mu,[Y("div",{class:ye(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},at(t.label),3),Y("div",vu,[Oe(t.$slots,"default")])]))}}),_u=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),bu=["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)=>(E(),K("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),(E(!0),K(xe,null,Nn(n.items,(a,c)=>pt((E(),K("div",{key:c,tabindex:"0",class:ye(["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:[Ys(()=>s(c),["enter"]),Ys(()=>s(c),["space"])]},[Vt(at(a),1)],42,bu)),[[z(Yt),30]])),128))],512))}}),yu=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),wu={},xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},ku=[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 Cu(e,t){return E(),K("svg",xu,ku)}const si=_e(wu,[["render",Cu]]),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));var ii;const Qo=typeof window<"u",Pu=e=>typeof e=="function",Ou=e=>typeof e=="string",_t=()=>{};Qo&&((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 Iu(e,t={}){let n,o,r=_t;const s=l=>{clearTimeout(l),r(),r=_t};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 $u(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 Eu(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Su(e){return e}function Go(e){return _r()?(cl(e),!0):!1}function Zt(e,t=200,n={}){return li(Iu(t,n),e)}function Mu(e,t=!0){Os()?Ge(e):t?e():st(e)}var ci=Object.getOwnPropertySymbols,Lu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,Au=(e,t)=>{var n={};for(var o in e)Lu.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&&ju.call(e,o)&&(n[o]=e[o]);return n};function zu(e,t,n={}){const o=n,{eventFilter:r=ai}=o,s=Au(o,["eventFilter"]);return he(e,li(r,t),s)}var Bu=Object.defineProperty,Du=Object.defineProperties,Nu=Object.getOwnPropertyDescriptors,Xn=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,di=(e,t,n)=>t in e?Bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fu=(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},Ru=(e,t)=>Du(e,Nu(t)),Hu=(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 Vu(e,t,n={}){const o=n,{eventFilter:r}=o,s=Hu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=$u(r);return{stop:zu(e,t,Ru(Fu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function At(e){var t;const n=Zn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const bt=Qo?window:void 0,Wu=Qo?window.document:void 0;function gn(...e){let t,n,o,r;if(Ou(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=bt):[t,n,o,r]=e,!t)return _t;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(()=>At(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(h=>l(u,d,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Go(c),c}function Ku(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=_t,onSuccess:i=_t,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},u=a?Fr(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 Eu(k);const j=typeof e=="function"?e(...H):e;try{const A=await j;u.value=A,d.value=!0,i(A)}catch(A){if(m.value=A,s(A),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(),Mu(o,t),n}const er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tr="__vueuse_ssr_handlers__";er[tr]=er[tr]||{};const Uu=er[tr];function qu(e,t){return Uu[e]||t}function Yu(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 Zu=Object.defineProperty,hi=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?Zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mi=(e,t)=>{for(var n in t||(t={}))Xu.call(t,n)&&gi(e,n,t[n]);if(hi)for(var n of hi(t))Ju.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=bt,eventFilter:h,onError:m=q=>{console.error(q)}}=o,x=(u?Fr:ee)(t);if(!n)try{n=qu("getDefaultStorage",()=>{var q;return(q=bt)==null?void 0:q.localStorage})()}catch(q){m(q)}if(!n)return x;const k=Zn(t),H=Yu(k),j=(r=o.serializer)!=null?r:Qu[H],{pause:A,resume:J}=Vu(x,()=>C(x.value),{flush:s,deep:i,eventFilter:h});return d&&l&&gn(d,"storage",U),U(),x;function C(q){try{if(q==null)n.removeItem(e);else{const v=j.write(q),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(q){const v=q?q.newValue:n.getItem(e);if(v==null)return a&&k!==null&&n.setItem(e,j.write(k)),k;if(!q&&c){const I=j.read(v);return Pu(c)?c(I,k):H==="object"&&!Array.isArray(I)?mi(mi({},k),I):I}else return typeof v!="string"?v:j.read(v)}function U(q){if(!(q&&q.storageArea!==n)){if(q&&q.key==null){x.value=k;return}if(!(q&&q.key!==e)){A();try{x.value=Z(q)}catch(v){m(v)}finally{q?st(J):J()}}}}}function Gu({document:e=Wu}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return gn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var _i=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,tf=Object.prototype.propertyIsEnumerable,nf=(e,t)=>{var n={};for(var o in e)ef.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&_i)for(var o of _i(e))t.indexOf(o)<0&&tf.call(e,o)&&(n[o]=e[o]);return n};function bi(e,t,n={}){const o=n,{window:r=bt}=o,s=nf(o,["window"]);let i;const l=pi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=he(()=>At(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return Go(u),{isSupported:l,stop:u}}function of(e,t={width:0,height:0},n={}){const{window:o=bt,box:r="content-box"}=n,s=fe(()=>{var a,c;return(c=(a=At(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=ee(t.width),l=ee(t.height);return bi(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const u=At(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(()=>At(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=bt}=n,l=pi(()=>i&&"IntersectionObserver"in i);let a=_t;const c=l.value?he(()=>({el:At(e),root:At(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=_t}},{immediate:!0,flush:"post"}):_t,u=()=>{a(),c()};return Go(u),{isSupported:l,stop:u}}function Jn(e,t,n={}){const{window:o=bt}=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 nr(e,t,n={}){const{window:o=bt}=n;return vi(e,t,o==null?void 0:o.sessionStorage,n)}var rf=Object.defineProperty,xi=Object.getOwnPropertySymbols,sf=Object.prototype.hasOwnProperty,lf=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,af=(e,t)=>{for(var n in t||(t={}))sf.call(t,n)&&ki(e,n,t[n]);if(xi)for(var n of xi(t))lf.call(t,n)&&ki(e,n,t[n]);return e};af({linear:Su},{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,cf=.25,Qn=.25,Gn=5,uf=.05;function ff(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 E(),K(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(cf),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(uf)*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)}}}),df=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gf=[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 mf(e,t){return E(),K("svg",hf,gf)}const Oi=_e(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),_f={},bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[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 wf(e,t){return E(),K("svg",bf,yf)}const Ii=_e(_f,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),kf={},Cf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[Y("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Pf(e,t){return E(),K("svg",Cf,Tf)}const $i=_e(kf,[["render",Pf]]),Of=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),If=["aria-hidden"],$f=["onClick"],Ef=["onClick"],Sf={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"},Mf={class:"whitespace-nowrap"},or=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);Jo({onKeyDown:m});const c=Xo();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(),U=Z.x+Z.width/2;i.value=Z.y>window.innerHeight/2,l.value=U<window.innerWidth/3,a.value=U>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,U=C.style.zIndex;(!Z||!(+Z>0))&&((!C.parentElement||C.parentElement.childElementCount>1)&&(C.style.zIndex="1",x.push({el:C,zIndex:U})),C.parentElement&&k(C.parentElement))}function H(){x.forEach(({el:C,zIndex:Z})=>{C.style.zIndex=Z??""}),x=[]}let j=!1;function A(){j||(j=!0,c(!0,{desktopOnly:!0}))}function J(){j&&(j=!1,c(!1,{desktopOnly:!0}))}return(C,Z)=>{const U=$i;return E(),K("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(E(),K("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):Be("",!0),n.items.length?(E(),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?(E(),K("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ye(["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"]))},[(E(!0),K(xe,null,Nn(n.items,(q,v)=>pt((E(),K("li",{key:v,tabindex:"-1",class:ye(["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:ye(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},at(q),3)],10,$f)),[[z(Yt),30]])),128))],42,If)):Be("",!0)]),_:1})):Be("",!0),pt((E(),K("button",{type:"button",tabindex:"-1",class:ye(["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:A,onMouseleave:J},[Y("div",Sf,[Y("span",Mf,at(n.label),1),n.items.length?(E(),K("span",{key:0,class:ye(["w-4 h-4 flex ml-1 -mr-3",{"rotate-180":i.value}]),"aria-hidden":"true"},[V(U)],2)):Be("",!0)])],42,Ef)),[[z(Yt),30]])],512)}}}),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),Ei=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=or;return E(),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"])}}}),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Af={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Df(e,t){return E(),K("svg",zf,Bf)}const Si=_e(Af,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Ff={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Vf(e,t){return E(),K("svg",Rf,Hf)}const Mi=_e(Ff,[["render",Vf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Kf={},Uf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},qf=[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 Yf(e,t){return E(),K("svg",Uf,qf)}const Li=_e(Kf,[["render",Yf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Xf={},Jf={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 Gf(e,t){return E(),K("svg",Jf,Qf)}const ji=_e(Xf,[["render",Gf]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Ai=_e(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=Yo,i=Zo;return n.value?(E(),K("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?(E(),Ie(s,{key:0})):(E(),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
|
+
`]]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),nd={},od={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},rd=[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 sd(e,t){return E(),K("svg",od,rd)}const zi=_e(nd,[["render",sd]]),id=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),Bi=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=nr("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 E(),Ie(qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[z(n)?(E(),K("div",{key:0,class:ye(["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})}}}),ld=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),eo=[];function ad(e){eo.push(e),lt(()=>{const t=eo.indexOf(e);t!==-1&&eo.splice(t,1)})}function cd(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),ad(S)):(gn(o,"mousedown",x),he(()=>n.horizontal,P=>{P?window.addEventListener("wheel",q,{passive:!1}):window.removeEventListener("wheel",q)},{immediate:!0}))}),lt(()=>{window.removeEventListener("wheel",q)});let c;Jo({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,A;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,A={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,A)}}const U=Zt(()=>i.value=!1,100);function q(P){n.busy||(i.value||(i.value=!0),U(),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&&S(P.clientX,P.clientY),F=setTimeout(()=>{!l.value&&I===1&&t("click",P),F=void 0,I=0},300))}function S(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,Le=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 L=X.scrollWidth/Xe,te=X.scrollHeight/Ue;X.scrollLeft=ae*L+Le*(L-1)*(n.rtl?-1:1),X.scrollTop=Ke*te+Qt*(te-1)}return(P,W)=>(E(),K("div",{ref_key:"root",ref:o,tabindex:"0",class:ye(["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))}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),fd=`.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
|
+
`,dd={},pd={class:"flex justify-center items-center w-full h-full"},hd=[Y("div",{class:"loading-indicator"},null,-1)];function gd(e,t){return E(),K("div",pd,hd)}const rr=_e(dd,[["render",gd],["styles",[fd]]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),vd=["data-index"],_d={key:0,class:"h-[75vh] w-[50vw] m-auto"},bd=["src"],yd=["src"],wd=["data-index"],Ni=_e(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=of(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,A)=>j+A.naturalWidth,0),H=x.reduce((j,A)=>j+A.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=rr,m=Di;return E(),Ie(m,{"model-value":u.zoom,ref_key:"root",ref:o,class:ye(["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(()=>[(E(!0),K(xe,null,Nn(l.value,x=>(E(),K("div",Ro({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?(E(),K("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,bd)):(E(),K("div",{key:2,class:ye(["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":""})},[(E(!0),K(xe,null,Nn(x.srcs,k=>(E(),K("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,yd)]))),128))],6)):(E(),K("div",_d,[V(h)]))],16,vd))),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,wd)]),_: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
|
+
`]]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),kd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Cd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Td={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=_e(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)=>(E(),K("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[pt(Y("div",kd,[a.hasNext?(E(),K("div",Cd,[i.value?(E(),K("div",Td)):Be("",!0),pt((E(),K("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((E(),K("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%}}
|
|
6
|
+
`]]]),Pd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"}));function Od(e){var a,c,u,d,h;let t=-1;const{vol:n,chap:o,title:r}=e,s=((a=r==null?void 0:r.chapters)==null?void 0:a.length)>1?r.chapters:[];s.length&&(t=s.findIndex(m=>m.slug===e.slug),t===-1&&(t=s.findIndex(m=>m.vol===n&&m.chap===o)),t===-1&&(t=s.findIndex(m=>e.slug.startsWith(`${m.slug}-`)&&e.slug.length-m.slug.length>3)));const i=((c=e.prev)==null?void 0:c.slug)??((u=s[t+1])==null?void 0:u.slug),l=((d=e.next)==null?void 0:d.slug)??((h=s[t-1])==null?void 0:h.slug);return{activeIndex:t,activeLabel:Ri({vol:n,chap:o}),chaptersText:s.map(Ri),prevPath:sr(e.basePath,i),nextPath:sr(e.basePath,l)}}function sr(e,t){return!t||t.includes("://")||t.startsWith("/")?t:(e||"/")+t}function Ri({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const ir=3;function Id(e,t){const n=nn(Array.from({length:e.value.length})),o=[];let r=0;he([t,e],async([l,a],[c])=>{const u=Math.floor(l),d=Math.floor(c||-1),h=a.length-n.length;if(h>0){const m=Array.from({length:h});n.push(...m)}u!==d&&(r=Math.max(0,r-Math.abs(u-d)));for(let m=u;m<a.length;m++){if(r>ir)return;s(m)}for(let m=u-1;m>=0;m--){if(r>ir)return;s(m)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>ir||(o[l]||(o[l]=!0,r++,n[l]=await $d(e.value[l]),r=Math.max(0,r-1)),s(i()))}function i(){for(let l=Math.floor(t.value);l<e.value.length;l++)if(!o[l])return l;for(let l=Math.floor(t.value)-1;l>=0;l--)if(!o[l])return l}return n}function $d(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n),clearInterval(o))},20);n.onerror=()=>{t(n),clearInterval(o)},n.src=e})}function Ed(e,t){return fe(()=>t.value?Hi(e):e.map((n,o)=>[{el:n,index:o}]))}function Hi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>s&&s.naturalWidth>s.naturalHeight)?[n[0]]:n;return[r.map((s,i)=>({el:s,index:t+i})),...Hi(e.slice(r.length),t+r.length)]}function Sd(e,t,n){const o=new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(e.length<4?0:e.length<6?1:2,t),i=Math.min(s+4,e.length<6?e.length-1:e.length),l=Math.max(0,i-4),a=e.slice(l,i);let c=!1;Promise.all(a.map(async u=>{const d=await Md(u);!c&&d&&(c=!0,r(!0))})).then(()=>{c||r(!1)})});return Ku(o,n??!1)}function Md(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n.naturalHeight/n.naturalWidth>2.5),clearInterval(o))},20);n.onerror=()=>{t(!1),clearInterval(o)},n.src=e})}function Ld({initialPage:e,max:t}){const n=typeof e=="number"?Math.max(0,Math.min(e,t)):0,o=sessionStorage.getItem("tk:page:path");return o!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),o&&sessionStorage.removeItem("tk:page")),nr("tk:page",n,{writeDefaults:!1,mergeDefaults(r){return Math.max(0,Math.min(r,t))}})}function jd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const lr=40;function Ad({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let u=!1,d=!1,h;const m=Zt(H,150),x=zd(j,300);Ge(()=>{let v=null;Gl(async()=>{l.value&&l.value!==v&&(v=l.value,m(e.value),l.value.addEventListener("scroll",x))});let I=window.innerWidth;bi(l,()=>{const F=window.innerWidth;I!=F&&(I=F,k())}),he(n,k),he(t,k)});async function k(){u=!0,d=!1,await st(),H(e.value)}function H(v){if(!l.value)return;u=!0;const I=async()=>{await st(),u=!1,d=!0},F=A(Math.floor(v));if(!F){I();return}if(o.value){const ce=o.value?v%1*(r.value?F.offsetHeight:F.offsetWidth)||1:0,S=J(F)+ce;a(()=>{C(S),I()})}else{const ce=d;a(()=>{F.scrollIntoView(ce?{behavior:"smooth",block:"start",inline:"start"}:void 0),I()})}}async function j(){if(!l.value||u||!d)return;const v=U();if(!v)return;const I=+v.getAttribute("data-index")||0,F=v.getBoundingClientRect(),ce=o.value?Math.floor((I+q(F))*100)/100:I;ce!==e.value&&c(ce)}function A(v){var I;return(I=l.value)==null?void 0:I.querySelector(`[data-index="${v}"],[data-second-index="${v}"]`)}function J(v){return r.value?v.offsetTop:s.value?l.value.clientWidth-v.offsetLeft-v.offsetWidth:v.offsetLeft}function C(v){if(Z()!==v)return r.value?l.value.scrollTop=v-(o.value?i.value??0:0):s.value?l.value.scrollLeft=-v:l.value.scrollLeft=v,v}function Z(){return r.value?l.value.scrollTop:s.value?-l.value.scrollLeft:l.value.scrollLeft}function U(){h??(h=l.value.getRootNode());const v=h.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-lr:lr,r.value&&o.value?i.value||lr:window.innerHeight/2);for(let I=0;I<v.length;I++){const F=v[I];if(F.hasAttribute("data-index"))return F;if(F===l.value)break}}function q(v){return r.value?Math.abs(v.top-(i.value||0))/v.height:s.value?Math.max(0,v.right-l.value.clientWidth)/v.width:Math.abs(v.left)/v.width}return{goToPage:H}}function zd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Bd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=nr("tk:isPlaying",e),c=ee(!1);let u,d;const h=Zt(q,100);let m;const x=Zt(()=>{c.value=!0,clearTimeout(m),m=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),k=()=>setTimeout(()=>{c.value=!1,x(),m&&(clearTimeout(m),m=void 0)},30);k(),t||gn(window,"mousemove",k);const H=Gu();Ge(()=>{he(H,I=>{a.value&&(I==="visible"?q():d==null||d())}),he(i,()=>j()),he(s,I=>{I||J()})}),lt(()=>{clearTimeout(m),m=void 0});async function j(I){a.value&&(d==null||d()),I&&(await st(),await I()),a.value&&h()}function A(){a.value?J():C()}function J(){a.value&&(a.value=!1,d==null||d(),k())}function C(){!a.value&&s.value&&(a.value=!0,q(),k())}function Z(){d==null||d()}function U(I){switch(I.key){case" ":I.preventDefault(),A();break;case"PageUp":case"PageDown":case(o.value?"ArrowUp":"ArrowLeft"):case(o.value?"ArrowDown":"ArrowRight"):j(()=>new Promise(F=>setTimeout(F,100)));break}}function q(){const I=n.value;if(!a.value||!I)return;const F=o.value?I.scrollHeight-I.clientHeight:I.scrollWidth-I.clientWidth,ce=v();if(F<=ce){J();return}d=()=>{u=Date.now(),d=void 0};const S=Date.now();u=S;const oe=(o.value?15:25)/i.value,P=o.value?"scrollTop":"scrollLeft",W=()=>{if(u!==S)return;const X=r.value?-1:1;I[P]+=X,setTimeout(W,oe)};W()}function v(){const I=n.value;return o.value?I.scrollTop:r.value?-I.scrollLeft:I.scrollLeft}return{isPlaying:a,isIdle:c,toggle:A,play:C,pause:Z,resume:q,stop:J,interfere:j,onKey:U,awake:k}}const Dd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Nd=Te({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},imgs:{},isWebtoon:{type:Boolean},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle"],setup(e,{emit:t}){const n=e,o=Jc({touchDevice:n.touchDevice}),r=fe(()=>Array.isArray(n.imgs)?n.imgs.filter(L=>typeof L=="string"):[]),s=Ld({initialPage:n.page,max:r.value.length-1}),i=Sd(r.value,Math.ceil(s.value),n.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:u,isVertical:d,isLongStrip:h,speed:m,zoom:x}=ff({titleId:n.raw.id??n.raw.title.slug,asyncIsWebtoon:i}),k=Id(r,s),H=Ed(k,u),j=fe(()=>s.value>=r.value.length),A=Od(n.raw),J=fe(()=>c.value?A.nextPath:A.prevPath),C=fe(()=>c.value?A.prevPath:A.nextPath),Z=ee(null),U=Bd({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:fe(()=>{var L;return(L=Z.value)==null?void 0:L.$el}),speed:m,isRTL:c,isVertical:d,isLongStrip:h,onLongIdle:()=>t("longIdle")});he(U.isPlaying,L=>{L||Ue(!1),t("playingChanged",L)}),he(U.isIdle,L=>{U.isPlaying.value&&Ue(L)}),he(o,L=>{!L&&U.isIdle.value?U.awake():L&&n.fullScreen&&Ue()});const q=fe(()=>U.isIdle.value&&!o.value),v=fe({get(){return x.value},set(L){U.interfere(()=>{x.value=L})}});lu().addListener({onKeyDown:L=>{if(U.onKey(L),!d.value)return;const te=L.key==="ArrowLeft",me=L.key==="ArrowRight";te?oe():me&&S()}});const F=Ad({page:s,style:a,direction:l,isLongStrip:h,isVertical:d,isRTL:c,spaceTop:fe(()=>n.spaceTop),scrollEl:fe(()=>{var L;return(L=Z.value)==null?void 0:L.$el}),interferePlayer:L=>U.interfere(L),onChangedPage(L){if(L<0||L>=r.value.length+1)return;s.value=L,t("pageChanged",L),L>=r.value.length&&(Ue(!1),U.stop())}});function ce(){if(U.isPlaying.value){!n.fullScreen||!n.touchDevice?U.stop():U.awake();return}Ue()}function S(){W(A.nextPath)}function oe(){W(A.prevPath)}function P(L){var me;const te=(me=n.raw.title.chapters)==null?void 0:me[L].slug;te&&W(sr(n.raw.basePath,te))}function W(L){L&&(location.href=L.includes("://")?L:location.origin+L)}function X(){var me;const L=H.value,te=j.value?L[L.length-1][0].index:(me=L[ae()-1])==null?void 0:me[0].index;te!==void 0?F.goToPage(te):oe()}function re(){var te;const L=j.value?Math.floor(s.value)+1:((te=H.value[ae()+1])==null?void 0:te[0].index)??r.value.length;F.goToPage(L)}function ae(){const L=Math.floor(s.value),te=H.value.findIndex(me=>me.some(({index:wt})=>wt===L));return te===-1?H.value.length-1:te}function Ke(){jd(),U.stop(),t("dispose")}async function Ue(L){o.value&&!n.fullScreen||t("fullScreenChanged",typeof L=="boolean"?L:!n.fullScreen)}function Xe(){n.entryId?Qt():Le()}function Le(){U.stop(),t("addEntry")}function Qt(){U.stop(),t("openEntry",n.entryId)}return(L,te)=>{const me=rr,wt=Fi,to=Ni,xt=Bi,mn=Ai,vn=ji,f=Yn,p=Li,g=or,b=Mi,_=Si,T=Ei,$=Ii,w=Oi,O=Pi,y=Zo,B=Yo,M=Gs,D=Js;return E(),Ie(D,{"full-screen":!!L.fullScreen,idle:q.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":L.touchDevice,rtl:z(c)},{back:ie(()=>[V(f,{href:L.raw.title.url,title:L.raw.title.name},{default:ie(()=>[V(vn)]),_:1},8,["href","title"])]),exit:ie(()=>[V(f,{title:"Hide reader",onClick:Ke},{default:ie(()=>[V(p)]),_:1})]),"chapter-nav":ie(()=>[V(g,{modelValue:z(A).activeIndex,label:z(A).activeLabel,items:z(A).chaptersText,"onUpdate:modelValue":P},null,8,["modelValue","label","items"]),J.value||C.value?(E(),K("div",Dd,[V(f,{title:z(c)?"Next":"Previous",href:J.value,disabled:!J.value,class:"!rounded-r-none"},{default:ie(()=>[V(b)]),_:1},8,["title","href","disabled"]),V(f,{title:z(c)?"Previous":"Next",href:C.value,disabled:!C.value,class:"!rounded-l-none"},{default:ie(()=>[V(_)]),_:1},8,["title","href","disabled"])])):Be("",!0)]),"page-nav":ie(()=>[V(T,{"model-value":z(s),disabled:z(i).isLoading.value,pages:z(H),"total-imgs":r.value.length,"onUpdate:modelValue":z(F).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),entry:ie(()=>[V(f,{title:L.entryId?"View entry":"Add to Trackkun",onClick:Xe},{default:ie(()=>[L.entryId?(E(),Ie($,{key:0})):(E(),Ie(w,{key:1}))]),_:1},8,["title"])]),settings:ie(()=>[V(O,{"reader-style":z(a),"onUpdate:readerStyle":te[2]||(te[2]=N=>we(a)?a.value=N:null),direction:z(l),"onUpdate:direction":te[3]||(te[3]=N=>we(l)?l.value=N:null),speed:z(m),"onUpdate:speed":te[4]||(te[4]=N=>we(m)?m.value=N:null),zoom:v.value,"onUpdate:zoom":te[5]||(te[5]=N=>v.value=N),webtoon:z(i).state.value,disabled:z(i).isLoading.value},null,8,["reader-style","direction","speed","zoom","webtoon","disabled"])]),play:ie(()=>[V(f,{title:z(U).isPlaying.value?"Pause":"Play",disabled:z(i).isLoading.value||!z(h),onClick:te[6]||(te[6]=()=>z(U).toggle())},{default:ie(()=>[z(U).isPlaying.value?(E(),Ie(y,{key:0})):(E(),Ie(B,{key:1}))]),_:1},8,["title","disabled"])]),"reset-zoom":ie(()=>[V(qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[V(M,{zoom:v.value,onClick:te[7]||(te[7]=jt(()=>v.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ie(()=>[Y("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500",style:Re({width:`${z(s)/(r.value.length-1)*100}%`})},null,4)]),default:ie(()=>[z(i).isLoading.value?(E(),Ie(me,{key:0})):(E(),K(xe,{key:1},[V(to,{ref_key:"body",ref:Z,zoom:v.value,"onUpdate:zoom":te[0]||(te[0]=N=>v.value=N),pages:z(H),"total-imgs":r.value.length,direction:z(l),"is-long-strip":z(h),isRTL:z(c),"is-vertical":z(d),"space-top":L.spaceTop,"space-bottom":n.spaceBottom,"touch-device":L.touchDevice,busy:z(o),idle:q.value,"play-controller":z(U),onPrev:X,onNext:re,onClick:ce,onWheelPassive:te[1]||(te[1]=()=>z(U).interfere())},ga({_:2},[!z(i).isLoading.value&&r.value.length?{name:"end",fn:ie(()=>[V(wt,{"has-next":!!z(A).nextPath,onNext:S,onHide:Ke},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),V(xt,{direction:z(l)},null,8,["direction"]),j.value?Be("",!0):(E(),Ie(mn,{key:0,playing:z(U).isPlaying.value},null,8,["playing"]))],64))]),_:1},8,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Vi=_e(Nd,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.inset-2{bottom:.5rem;left:.5rem;right:.5rem;top:.5rem}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:.75rem}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:.25rem}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-3rem;margin-right:-3rem}.-my-12{margin-bottom:-3rem;margin-top:-3rem}.ml-auto{margin-left:auto}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.mb-8{margin-bottom:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:.125rem}.h-0{height:0}.h-full{height:100%}.h-12{height:3rem}.h-\\[24rem\\]{height:24rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-1\\.5{height:.375rem}.h-1{height:.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-6{height:1.5rem}.h-20{height:5rem}.h-\\[75vh\\]{height:75vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[75vh\\]{max-height:75vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:7rem}.w-40{width:10rem}.w-4{width:1rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-\\[50vw\\]{width:50vw}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-translate-y-1\\.5,.translate-y-full{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))}.-translate-y-1\\.5{--tw-translate-y:-.375rem}.-translate-y-1{--tw-translate-y:-.25rem}.-translate-y-1,.translate-y-1\\.5{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))}.translate-y-1\\.5{--tw-translate-y:.375rem}.translate-y-1{--tw-translate-y:.25rem}.-translate-x-1\\/2,.translate-y-1{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))}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{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))}.translate-y-0{--tw-translate-y:0px}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{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))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{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))}.scale-y-90{--tw-scale-y:.9}.transform{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))}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-\\[1px\\]{gap:1px}.gap-6{gap:1.5rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-sm{border-radius:.125rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-75{--tw-bg-opacity:.75}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-90{--tw-bg-opacity:.9}.object-contain{-o-object-fit:contain;object-fit:contain}.p-6{padding:1.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pt-3{padding-top:.75rem}.pb-12{padding-bottom:3rem}.pl-1{padding-left:.25rem}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.ease-linear{transition-timing-function:linear}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:.25rem;width:.25rem}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-200:hover{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-200{--tw-bg-opacity:1;background-color:rgb(231 229 228/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}.group:hover .group-hover\\:bg-opacity-10{--tw-bg-opacity:.1}}@media (min-width:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1024px){.lg\\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width:1280px){.xl\\:px-12{padding-left:3rem;padding-right:3rem}}
|
|
7
|
+
`]]]),Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Rd={},Hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vd=[Y("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Wd(e,t){return E(),K("svg",Hd,Vd)}const Kd=Object.freeze(Object.defineProperty({__proto__:null,default:_e(Rd,[["render",Wd]])},Symbol.toStringTag,{value:"Module"})),Ud={text:qd,attr:Yd,"attr-contain":Zd,value:Jd,row:Qd};function ar(e,t={}){if(!e)return;const{root:n=document.documentElement,returnAll:o,preProcess:r}=t,s=Xd(e);if(s.length>1){for(let d=0;d<s.length;d+=1){const h=ar(s[d],t);if(h!=null&&h.length)return h}return}const[i,l]=e.split("|");if(!l)return;const a=(l!=null&&l.startsWith("[")&&l.endsWith("]")?l.substring(1,l.length-1).split(","):[l]).map(d=>{const h=d.indexOf(":"),m=h!==-1;return{action:m?d.substring(0,h):d,param:m?d.substring(h+1):""}}),c=i?Array.from(n.querySelectorAll(i)):[n];if(!c.length)return o?[]:void 0;r&&r(c);const u=[];for(const d of c)for(const h of a){const m=Ud[h.action],x=m(d,h.param);if(x){if(o){u.push(x);break}return x}}return o?u:void 0}function qd(e){return Array.from(e.childNodes).filter(n=>n.nodeType===3).map(n=>Jt(n.textContent)).filter(Boolean).join(" ").trim()||Jt(e.textContent)}function Yd(e,t){return Jt(e.getAttribute(t))}function Zd(e,t){let n=e.getAttribute(t);if(!n){const o=e.getAttributeNames().find(r=>r.includes(t));o&&(n=e.getAttribute(o))}return Jt(n)}function Xd(e){const t=[],n=e.split("||").map(o=>o.trim()).filter(Boolean);return n.forEach((o,r)=>{if(o.includes("|")){t.push(o);return}const s=n[r+1];s&&(n[r+1]=`${o},${s}`)}),t}function Jd(e){return e.value}function Qd(e,t){var r,s,i;if(!t)return;const n=(r=Jt(e.textContent))==null?void 0:r.toLowerCase(),o=t.toLowerCase();if(!(n!==o&&n!==`${o}:`))return Jt(((s=e.nextElementSibling)==null?void 0:s.textContent)??((i=e.nextSibling)==null?void 0:i.textContent))}function Jt(e){if(e)return(e==null?void 0:e.replace(/(\n|\t)/g," ").trim())||void 0}const Gd=`html.gear-second{background:#000;font-size:16px!important}html.gear-second,html.gear-second body{overflow:hidden!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;visibility:hidden!important}html.gear-second body #radio_content.cerrado,html.gear-second body .pf-br-icon{--tw-translate-x:-100%!important;display:none!important;height:0!important;max-height:0!important;max-width:0!important;opacity:0!important;pointer-events:none!important;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))!important;visibility:hidden!important;width:0!important;z-index:-10!important}html.gear-second body gear-second{bottom:0!important;display:block!important;left:0!important;position:fixed!important;right:0!important;top:0!important;visibility:visible!important;z-index:99999}html.gear-second:not(.gear-second--adblock) body>:not(gear-second){margin-top:var(--tk-safe-top)!important}html.gear-second--adblock,html.gear-second--adblock body,html.gear-second--adblock body :not(gear-second){visibility:hidden!important}html.gear-second--adblock body :not(gear-second){display:none!important;pointer-events:none!important}
|
|
8
|
+
`,zt="gear-second",Wi="gear-second--adblock",cr={raw:{},imgs:[],isWebtoon:void 0,page:0,spaceTop:0,spaceBottom:0,fullScreen:!1,touchDevice:void 0,entryId:void 0,autoPlay:!1,adBlock:!1,textScaleFactor:void 0,isGuest:!1,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},Me=nn(cr);async function ep(e){var l;let t=e.raw.isWebtoon;const n=(l=e.raw.imgs)!=null&&l.length?e.raw.imgs:ar(e.raw.imgsLocator,{returnAll:!0,preProcess:t!==void 0?void 0:a=>t=ip(a)});if(!(n!=null&&n.length))return;let o;document.documentElement.classList.add(zt),e.adBlock&&document.documentElement.classList.add(Wi);const{isInstalled:r,isMounted:s}=tp();r||await np(),Object.assign(Me,cr,e,{imgs:n,isWebtoon:t,onDispose:()=>o==null?void 0:o()}),Object.assign(Me,{page:sp(Me)}),ur();const i=s?document.querySelector(zt):document.createElement(zt);return s||document.body.appendChild(i),Ki(e.raw.slug),o=()=>{var a;(a=e==null?void 0:e.onDispose)==null||a.call(e),document.body.removeChild(i),document.documentElement.classList.remove(zt),document.documentElement.classList.remove(Wi),rp(Me),Object.assign(Me,cr)},{dispose:o,updateArgs(a){Object.assign(Me,a),ur()},triggerDoubleTap:(a,c)=>cd(a,c)}}function tp(){const e=!!window.customElements.get(zt),t=e&&!!document.body.querySelector(zt);return{isInstalled:e,isMounted:t}}async function np(){const e=document.createElement("style");e.appendChild(document.createTextNode(Gd)),document.head.appendChild(e);const t=uc({styles:[await op()],data:()=>({readerData:Me,isFinished:!1}),render(){return Ls(Vi,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),ur()},onPageChanged:n=>{var o,r,s,i;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n),!this.isFinished&&n>=this.readerData.imgs.length-2&&(this.isFinished=!0,(i=(s=this.readerData).onFinished)==null||i.call(s))}})}});window.customElements.define(zt,t)}async function op(){const e=Object.assign({"./TrackkunReader.vue":Fd,"./components/AutoNext.vue":Pd,"./components/BottomSheet.vue":du,"./components/ButtonDropdown.vue":Lf,"./components/ButtonIcon.vue":eu,"./components/ButtonReaderSettings.vue":df,"./components/ButtonResetZoom.vue":Fc,"./components/DirectionToast.vue":ld,"./components/InputPercentage.vue":gu,"./components/InputSelect.vue":yu,"./components/LoadingIndicator.vue":md,"./components/PageNav.vue":jf,"./components/PauseToast.vue":td,"./components/ReaderBody.vue":xd,"./components/ReaderLayout.vue":Sc,"./components/TableField.vue":_u,"./components/ZoomWrapper.vue":ud,"./components/icons/IconBack.vue":ed,"./components/icons/IconBookmarkNew.vue":vf,"./components/icons/IconBookmarked.vue":xf,"./components/icons/IconChevronLeft.vue":Wf,"./components/icons/IconChevronRight.vue":Nf,"./components/icons/IconClose.vue":su,"./components/icons/IconExclamationCircle.vue":Kd,"./components/icons/IconNext.vue":id,"./components/icons/IconPause.vue":Xc,"./components/icons/IconPlay.vue":Kc,"./components/icons/IconReaderExit.vue":Zf,"./components/icons/IconSettings.vue":Tu,"./components/icons/IconTriangle.vue":Of,"./components/icons/IconZoom.vue":zc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function ur(){if(Me.adBlock)return;const{spaceTop:e,fullScreen:t}=Me,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}function rp({page:e,imgs:t}){if(e<1||!t)return;if(e>=t.length){document.documentElement.scrollTop=document.documentElement.scrollHeight;return}const n=t[Math.floor(e)],o=n?document.querySelector(`[src="${n}"],[data-src="${n}"]`):void 0;o&&setTimeout(()=>{o.scrollIntoView(),setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollTop+e%1*o.getBoundingClientRect().height})})})}function sp({page:e,imgs:t}){if(!t.length||document.documentElement.scrollTop<700)return e;for(let n=0;n<t.length;n++){const o=t[n],r=document.querySelector(`[src="${o}"],[data-src="${o}"]`);if(!r)continue;const s=r.getBoundingClientRect();if(s.bottom>0){const i=s.top;return n+(i>=0?0:Math.floor(-i/s.height*100)/100)}}return e}async function Ki(e,t=0){if(!Me.raw.imgsLocator||t>=7||(await new Promise(r=>setTimeout(r,1e3)),Me.raw.slug!==e))return;const n=ar(Me.raw.imgsLocator,{returnAll:!0});if(!(n!=null&&n.length))return;const o=n.length>Me.imgs.length;o&&(Me.imgs=n),Ki(e,o?0:t+1)}function ip(e){const t=e.map(n=>+(n.getAttribute("height")||0)/+(n.getAttribute("width")||1));if(t.some(n=>n>2.5))return!0;if(t.filter(Boolean).length>Math.max(1,t.length-2))return!1}return ep});
|