gear-second 1.0.1 → 1.1.0
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 +9 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
(function(Ae,re){typeof exports=="object"&&typeof module<"u"?module.exports=re():typeof define=="function"&&define.amd?define(re):(Ae=typeof globalThis<"u"?globalThis:Ae||self,Ae._gearSecond_=re())})(this,function(){"use strict";var gp=Object.defineProperty;var mp=(Ae,re,He)=>re in Ae?gp(Ae,re,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ae[re]=He;var Ji=(Ae,re,He)=>(mp(Ae,typeof re!="symbol"?re+"":re,He),He);function Ae(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 re={},He=[],Xe=()=>{},Qi=()=>!1,Gi=/^on[^a-z]/,xn=e=>Gi.test(e),ro=e=>e.startsWith("onUpdate:"),ve=Object.assign,so=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},el=Object.prototype.hasOwnProperty,le=(e,t)=>el.call(e,t),q=Array.isArray,Vt=e=>Cn(e)==="[object Map]",dr=e=>Cn(e)==="[object Set]",te=e=>typeof e=="function",_e=e=>typeof e=="string",io=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",pr=e=>he(e)&&te(e.then)&&te(e.catch),hr=Object.prototype.toString,Cn=e=>hr.call(e),tl=e=>Cn(e).slice(8,-1),gr=e=>Cn(e)==="[object Object]",lo=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kn=Ae(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nl=/-(\w)/g,Be=Pn(e=>e.replace(nl,(t,n)=>n?n.toUpperCase():"")),ol=/\B([A-Z])/g,We=Pn(e=>e.replace(ol,"-$1").toLowerCase()),Sn=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ao=Pn(e=>e?`on${Sn(e)}`:""),nn=(e,t)=>!Object.is(e,t),Tn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$n=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},co=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uo=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let mr;const fo=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ue(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?ll(o):Ue(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(he(e))return e}}const rl=/;(?![^(]*\))/g,sl=/:([^]+)/,il=/\/\*[^]*?\*\//g;function ll(e){const t={};return e.replace(il,"").split(rl).forEach(n=>{if(n){const o=n.split(sl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ye(e){let t="";if(_e(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const o=ye(e[n]);o&&(t+=o+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const al=Ae("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function vr(e){return!!e||e===""}const lt=e=>_e(e)?e:e==null?"":q(e)||he(e)&&(e.toString===hr||!te(e.toString))?JSON.stringify(e,_r,2):String(e),_r=(e,t)=>t&&t.__v_isRef?_r(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:dr(t)?{[`Set(${t.size})`]:[...t.values()]}:he(t)&&!q(t)&&!gr(t)?String(t):t;let De;class cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=De,!t&&De&&(this.index=(De.scopes||(De.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=De;try{return De=this,t()}finally{De=n}}}on(){De=this}off(){De=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 ul(e,t=De){t&&t.active&&t.effects.push(e)}function br(){return De}function fl(e){De&&De.cleanups.push(e)}const po=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yr=e=>(e.w&mt)>0,wr=e=>(e.n&mt)>0,dl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=mt},pl=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&=~mt,r.n&=~mt}t.length=n}},ho=new WeakMap;let on=0,mt=1;const go=30;let Je;const Ot=Symbol(""),mo=Symbol("");class vo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ul(this,o)}run(){if(!this.active)return this.fn();let t=Je,n=vt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Je,Je=this,vt=!0,mt=1<<++on,on<=go?dl(this):xr(this),this.fn()}finally{on<=go&&pl(this),mt=1<<--on,Je=this.parent,vt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Je===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 vt=!0;const Cr=[];function Ht(){Cr.push(vt),vt=!1}function Wt(){const e=Cr.pop();vt=e===void 0?!0:e}function Me(e,t,n){if(vt&&Je){let o=ho.get(e);o||ho.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=po()),kr(r)}}function kr(e,t){let n=!1;on<=go?wr(e)||(e.n|=mt,n=!yr(e)):n=!e.has(Je),n&&(e.add(Je),Je.deps.push(e))}function at(e,t,n,o,r,s){const i=ho.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&q(e)){const a=Number(o);i.forEach((u,p)=>{(p==="length"||p>=a)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":q(e)?lo(n)&&l.push(i.get("length")):(l.push(i.get(Ot)),Vt(e)&&l.push(i.get(mo)));break;case"delete":q(e)||(l.push(i.get(Ot)),Vt(e)&&l.push(i.get(mo)));break;case"set":Vt(e)&&l.push(i.get(Ot));break}if(l.length===1)l[0]&&_o(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);_o(po(a))}}function _o(e,t){const n=q(e)?e:[...e];for(const o of n)o.computed&&Pr(o);for(const o of n)o.computed||Pr(o)}function Pr(e,t){(e!==Je||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const hl=Ae("__proto__,__v_isRef,__isVue"),Sr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(io)),gl=bo(),ml=bo(!1,!0),vl=bo(!0),Tr=_l();function _l(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let s=0,i=this.length;s<i;s++)Me(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ht();const o=ce(this)[t].apply(this,n);return Wt(),o}}),e}function bl(e){const t=ce(this);return Me(t,"has",e),t.hasOwnProperty(e)}function bo(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?jl:Ar:t?jr:zr).get(o))return o;const i=q(o);if(!e){if(i&&le(Tr,r))return Reflect.get(Tr,r,s);if(r==="hasOwnProperty")return bl}const l=Reflect.get(o,r,s);return(io(r)?Sr.has(r):hl(r))||(e||Me(o,"get",r),t)?l:be(l)?i&&lo(r)?l:l.value:he(l)?e?xo(l):rn(l):l}}const yl=$r(),wl=$r(!0);function $r(e=!1){return function(n,o,r,s){let i=n[o];if(Kt(i)&&be(i)&&!be(r))return!1;if(!e&&(!jn(r)&&!Kt(r)&&(i=ce(i),r=ce(r)),!q(n)&&be(i)&&!be(r)))return i.value=r,!0;const l=q(n)&&lo(o)?Number(o)<n.length:le(n,o),a=Reflect.set(n,o,r,s);return n===ce(s)&&(l?nn(r,i)&&at(n,"set",o,r):at(n,"add",o,r)),a}}function xl(e,t){const n=le(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&at(e,"delete",t,void 0),o}function Cl(e,t){const n=Reflect.has(e,t);return(!io(t)||!Sr.has(t))&&Me(e,"has",t),n}function kl(e){return Me(e,"iterate",q(e)?"length":Ot),Reflect.ownKeys(e)}const Or={get:gl,set:yl,deleteProperty:xl,has:Cl,ownKeys:kl},Pl={get:vl,set(e,t){return!0},deleteProperty(e,t){return!0}},Sl=ve({},Or,{get:ml,set:wl}),yo=e=>e,On=e=>Reflect.getPrototypeOf(e);function In(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),s=ce(t);n||(t!==s&&Me(r,"get",t),Me(r,"get",s));const{has:i}=On(r),l=o?yo:n?ko:sn;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 En(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(e!==r&&Me(o,"has",e),Me(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Mn(e,t=!1){return e=e.__v_raw,!t&&Me(ce(e),"iterate",Ot),Reflect.get(e,"size",e)}function Ir(e){e=ce(e);const t=ce(this);return On(t).has.call(t,e)||(t.add(e),at(t,"add",e,e)),this}function Er(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=On(n);let s=o.call(n,e);s||(e=ce(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?nn(t,i)&&at(n,"set",e,t):at(n,"add",e,t),this}function Mr(e){const t=ce(this),{has:n,get:o}=On(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&at(t,"delete",e,void 0),s}function Lr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&at(e,"clear",void 0,void 0),n}function Ln(e,t){return function(o,r){const s=this,i=s.__v_raw,l=ce(i),a=t?yo:e?ko:sn;return!e&&Me(l,"iterate",Ot),i.forEach((u,p)=>o.call(r,a(u),a(p),s))}}function zn(e,t,n){return function(...o){const r=this.__v_raw,s=ce(r),i=Vt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=r[e](...o),p=n?yo:t?ko:sn;return!t&&Me(s,"iterate",a?mo:Ot),{next(){const{value:d,done:g}=u.next();return g?{value:d,done:g}:{value:l?[p(d[0]),p(d[1])]:p(d),done:g}},[Symbol.iterator](){return this}}}}function _t(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(s){return In(this,s)},get size(){return Mn(this)},has:En,add:Ir,set:Er,delete:Mr,clear:Lr,forEach:Ln(!1,!1)},t={get(s){return In(this,s,!1,!0)},get size(){return Mn(this)},has:En,add:Ir,set:Er,delete:Mr,clear:Lr,forEach:Ln(!1,!0)},n={get(s){return In(this,s,!0)},get size(){return Mn(this,!0)},has(s){return En.call(this,s,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Ln(!0,!1)},o={get(s){return In(this,s,!0,!0)},get size(){return Mn(this,!0)},has(s){return En.call(this,s,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Ln(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=zn(s,!1,!1),n[s]=zn(s,!0,!1),t[s]=zn(s,!1,!0),o[s]=zn(s,!0,!0)}),[e,n,t,o]}const[$l,Ol,Il,El]=Tl();function wo(e,t){const n=t?e?El:Il:e?Ol:$l;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(le(n,r)&&r in o?n:o,r,s)}const Ml={get:wo(!1,!1)},Ll={get:wo(!1,!0)},zl={get:wo(!0,!1)},zr=new WeakMap,jr=new WeakMap,Ar=new WeakMap,jl=new WeakMap;function Al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bl(e){return e.__v_skip||!Object.isExtensible(e)?0:Al(tl(e))}function rn(e){return Kt(e)?e:Co(e,!1,Or,Ml,zr)}function Dl(e){return Co(e,!1,Sl,Ll,jr)}function xo(e){return Co(e,!0,Pl,zl,Ar)}function Co(e,t,n,o,r){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Bl(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Ut(e){return Kt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function jn(e){return!!(e&&e.__v_isShallow)}function Br(e){return Ut(e)||Kt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Dr(e){return $n(e,"__v_skip",!0),e}const sn=e=>he(e)?rn(e):e,ko=e=>he(e)?xo(e):e;function Nr(e){vt&&Je&&(e=ce(e),kr(e.dep||(e.dep=po())))}function Fr(e,t){e=ce(e);const n=e.dep;n&&_o(n)}function be(e){return!!(e&&e.__v_isRef===!0)}function G(e){return Rr(e,!1)}function Nl(e){return Rr(e,!0)}function Rr(e,t){return be(e)?e:new Fl(e,t)}class Fl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:sn(t)}get value(){return Nr(this),this._value}set value(t){const n=this.__v_isShallow||jn(t)||Kt(t);t=n?t:ce(t),nn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:sn(t),Fr(this))}}function F(e){return be(e)?e.value:e}const Rl={get:(e,t,n)=>F(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Vr(e){return Ut(e)?e:new Proxy(e,Rl)}class Vl{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 vo(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=ce(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 Hl(e,t,n=!1){let o,r;const s=te(e);return s?(o=e,r=Xe):(o=e.get,r=e.set),new Vl(o,r,s||!r,n)}function _p(e,...t){}function bt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){An(s,t,n)}return r}function Ke(e,t,n,o){if(te(e)){const s=bt(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(Ke(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 u=s.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){bt(a,null,10,[e,i,l]);return}}Wl(e,n,r,o)}function Wl(e,t,n,o=!0){console.error(e)}let ln=!1,Po=!1;const Oe=[];let nt=0;const qt=[];let ct=null,It=0;const Hr=Promise.resolve();let So=null;function Qe(e){const t=So||Hr;return e?t.then(this?e.bind(this):e):t}function Ul(e){let t=nt+1,n=Oe.length;for(;t<n;){const o=t+n>>>1;an(Oe[o])<e?t=o+1:n=o}return t}function To(e){(!Oe.length||!Oe.includes(e,ln&&e.allowRecurse?nt+1:nt))&&(e.id==null?Oe.push(e):Oe.splice(Ul(e.id),0,e),Wr())}function Wr(){!ln&&!Po&&(Po=!0,So=Hr.then(qr))}function Kl(e){const t=Oe.indexOf(e);t>nt&&Oe.splice(t,1)}function ql(e){q(e)?qt.push(...e):(!ct||!ct.includes(e,e.allowRecurse?It+1:It))&&qt.push(e),Wr()}function Ur(e,t=ln?nt+1:0){for(;t<Oe.length;t++){const n=Oe[t];n&&n.pre&&(Oe.splice(t,1),t--,n())}}function Kr(e){if(qt.length){const t=[...new Set(qt)];if(qt.length=0,ct){ct.push(...t);return}for(ct=t,ct.sort((n,o)=>an(n)-an(o)),It=0;It<ct.length;It++)ct[It]();ct=null,It=0}}const an=e=>e.id==null?1/0:e.id,Zl=(e,t)=>{const n=an(e)-an(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qr(e){Po=!1,ln=!0,Oe.sort(Zl);const t=Xe;try{for(nt=0;nt<Oe.length;nt++){const n=Oe[nt];n&&n.active!==!1&&bt(n,null,14)}}finally{nt=0,Oe.length=0,Kr(),ln=!1,So=null,(Oe.length||qt.length)&&qr()}}function Yl(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||re;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const p=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:g}=o[p]||re;g&&(r=n.map(x=>_e(x)?x.trim():x)),d&&(r=n.map(co))}let l,a=o[l=ao(t)]||o[l=ao(Be(t))];!a&&s&&(a=o[l=ao(We(t))]),a&&Ke(a,e,6,r);const u=o[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ke(u,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(!te(e)){const a=u=>{const p=Zr(u,t,!0);p&&(l=!0,ve(i,p))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(he(e)&&o.set(e,null),null):(q(s)?s.forEach(a=>i[a]=null):ve(i,s),he(e)&&o.set(e,i),i)}function Bn(e,t){return!e||!xn(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,We(t))||le(e,t))}let Te=null,Yr=null;function Dn(e){const t=Te;return Te=e,Yr=e&&e.type.__scopeId||null,t}function se(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ps(-1);const s=Dn(t);let i;try{i=e(...r)}finally{Dn(s),o._d&&Ps(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function bp(){}function $o(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:u,render:p,renderCache:d,data:g,setupState:x,ctx:I,inheritAttrs:_}=e;let Y,D;const X=Dn(e);try{if(n.shapeFlag&4){const k=r||o;Y=rt(p.call(k,k,d,s,x,g,I)),D=a}else{const k=t;Y=rt(k.length>1?k(s,{attrs:a,slots:l,emit:u}):k(s,null)),D=t.props?a:Xl(a)}}catch(k){dn.length=0,An(k,e,1),Y=K(Ze)}let B=Y;if(D&&_!==!1){const k=Object.keys(D),{shapeFlag:L}=B;k.length&&L&7&&(i&&k.some(ro)&&(D=Jl(D,i)),B=yt(B,D))}return n.dirs&&(B=yt(B),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(B.transition=n.transition),Y=B,Dn(X),Y}const Xl=e=>{let t;for(const n in e)(n==="class"||n==="style"||xn(n))&&((t||(t={}))[n]=e[n]);return t},Jl=(e,t)=>{const n={};for(const o in e)(!ro(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Ql(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,u=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,u):!!i;if(a&8){const p=t.dynamicProps;for(let d=0;d<p.length;d++){const g=p[d];if(i[g]!==o[g]&&!Bn(u,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Xr(o,i,u):!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]&&!Bn(n,s))return!0}return!1}function Gl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ea=e=>e.__isSuspense;function ta(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):ql(e)}function na(e,t){return Oo(e,null,t)}const Nn={};function de(e,t,n){return Oo(e,t,n)}function Oo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=re){var l;const a=br()===((l=Pe)==null?void 0:l.scope)?Pe:null;let u,p=!1,d=!1;if(be(e)?(u=()=>e.value,p=jn(e)):Ut(e)?(u=()=>e,o=!0):q(e)?(d=!0,p=e.some(k=>Ut(k)||jn(k)),u=()=>e.map(k=>{if(be(k))return k.value;if(Ut(k))return Et(k);if(te(k))return bt(k,a,2)})):te(e)?t?u=()=>bt(e,a,2):u=()=>{if(!(a&&a.isUnmounted))return g&&g(),Ke(e,a,3,[x])}:u=Xe,t&&o){const k=u;u=()=>Et(k())}let g,x=k=>{g=X.onStop=()=>{bt(k,a,4)}},I;if(hn)if(x=Xe,t?n&&Ke(t,a,3,[u(),d?[]:void 0,x]):u(),r==="sync"){const k=Za();I=k.__watcherHandles||(k.__watcherHandles=[])}else return Xe;let _=d?new Array(e.length).fill(Nn):Nn;const Y=()=>{if(X.active)if(t){const k=X.run();(o||p||(d?k.some((L,S)=>nn(L,_[S])):nn(k,_)))&&(g&&g(),Ke(t,a,3,[k,_===Nn?void 0:d&&_[0]===Nn?[]:_,x]),_=k)}else X.run()};Y.allowRecurse=!!t;let D;r==="sync"?D=Y:r==="post"?D=()=>Le(Y,a&&a.suspense):(Y.pre=!0,a&&(Y.id=a.uid),D=()=>To(Y));const X=new vo(u,D);t?n?Y():_=X.run():r==="post"?Le(X.run.bind(X),a&&a.suspense):X.run();const B=()=>{X.stop(),a&&a.scope&&so(a.scope.effects,X)};return I&&I.push(B),B}function oa(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?Jr(o,e):()=>o[e]:e.bind(o,o);let s;te(t)?s=t:(s=t.handler,n=t);const i=Pe;Yt(this);const l=Oo(r,s.bind(o),n);return i?Yt(i):At(),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 Et(e,t){if(!he(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),be(e))Et(e.value,t);else if(q(e))for(let n=0;n<e.length;n++)Et(e[n],t);else if(dr(e)||Vt(e))e.forEach(n=>{Et(n,t)});else if(gr(e))for(const n in e)Et(e[n],t);return e}function ut(e,t){const n=Te;if(n===null)return e;const o=Xn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,u=re]=t[s];i&&(te(i)&&(i={mounted:i,updated:i}),i.deep&&Et(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:u}))}return e}function Mt(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&&(Ht(),Ke(a,n,8,[e.el,l,e,t]),Wt())}}function ra(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ot(()=>{e.isMounted=!0}),os(()=>{e.isUnmounting=!0}),e}const qe=[Function,Array],Qr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qe,onEnter:qe,onAfterEnter:qe,onEnterCancelled:qe,onBeforeLeave:qe,onLeave:qe,onAfterLeave:qe,onLeaveCancelled:qe,onBeforeAppear:qe,onAppear:qe,onAfterAppear:qe,onAppearCancelled:qe},sa={name:"BaseTransition",props:Qr,setup(e,{slots:t}){const n=$s(),o=ra();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 _ of s)if(_.type!==Ze){i=_;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return Eo(i);const u=es(i);if(!u)return Eo(i);const p=Io(u,l,o,n);Mo(u,p);const d=n.subTree,g=d&&es(d);let x=!1;const{getTransitionKey:I}=u.type;if(I){const _=I();r===void 0?r=_:_!==r&&(r=_,x=!0)}if(g&&g.type!==Ze&&(!jt(u,g)||x)){const _=Io(g,l,o,n);if(Mo(g,_),a==="out-in")return o.isLeaving=!0,_.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Eo(i);a==="in-out"&&u.type!==Ze&&(_.delayLeave=(Y,D,X)=>{const B=Gr(o,g);B[String(g.key)]=g,Y._leaveCb=()=>{D(),Y._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=X})}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:u,onEnterCancelled:p,onBeforeLeave:d,onLeave:g,onAfterLeave:x,onLeaveCancelled:I,onBeforeAppear:_,onAppear:Y,onAfterAppear:D,onAppearCancelled:X}=t,B=String(e.key),k=Gr(n,e),L=(m,v)=>{m&&Ke(m,o,9,v)},S=(m,v)=>{const P=v[1];L(m,v),q(m)?m.every(V=>V.length<=1)&&P():m.length<=1&&P()},j={mode:s,persisted:i,beforeEnter(m){let v=l;if(!n.isMounted)if(r)v=_||l;else return;m._leaveCb&&m._leaveCb(!0);const P=k[B];P&&jt(e,P)&&P.el._leaveCb&&P.el._leaveCb(),L(v,[m])},enter(m){let v=a,P=u,V=p;if(!n.isMounted)if(r)v=Y||a,P=D||u,V=X||p;else return;let E=!1;const R=m._enterCb=J=>{E||(E=!0,J?L(V,[m]):L(P,[m]),j.delayedLeave&&j.delayedLeave(),m._enterCb=void 0)};v?S(v,[m,R]):R()},leave(m,v){const P=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return v();L(d,[m]);let V=!1;const E=m._leaveCb=R=>{V||(V=!0,v(),R?L(I,[m]):L(x,[m]),m._leaveCb=void 0,k[P]===e&&delete k[P])};k[P]=e,g?S(g,[m,E]):E()},clone(m){return Io(m,t,n,o)}};return j}function Eo(e){if(Fn(e))return e=yt(e),e.children=null,e}function es(e){return Fn(e)?e.children?e.children[0]:void 0:e}function Mo(e,t){e.shapeFlag&6&&e.component?Mo(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===Ce?(i.patchFlag&128&&r++,o=o.concat(ts(i.children,t,l))):(t||i.type!==Ze)&&o.push(l!=null?yt(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function $e(e,t){return te(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const cn=e=>!!e.type.__asyncLoader,Fn=e=>e.type.__isKeepAlive;function ia(e,t){ns(e,"a",t)}function la(e,t){ns(e,"da",t)}function ns(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Rn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Fn(r.parent.vnode)&&aa(o,t,n,r),r=r.parent}}function aa(e,t,n,o){const r=Rn(t,e,o,!0);Ne(()=>{so(o[t],r)},n)}function Rn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ht(),Yt(n);const l=Ke(t,n,e,i);return At(),Wt(),l});return o?r.unshift(s):r.push(s),s}}const ft=e=>(t,n=Pe)=>(!hn||e==="sp")&&Rn(e,(...o)=>t(...o),n),ca=ft("bm"),ot=ft("m"),ua=ft("bu"),fa=ft("u"),os=ft("bum"),Ne=ft("um"),da=ft("sp"),pa=ft("rtg"),ha=ft("rtc");function ga(e,t=Pe){Rn("ec",e,t)}const rs="components",ss=Symbol.for("v-ndc");function ma(e){return _e(e)?va(rs,e,!1)||e:e||ss}function va(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const s=r.type;if(e===rs){const l=Ua(s,!1);if(l&&(l===t||l===Be(t)||l===Sn(Be(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[Be(t)]||e[Sn(Be(t))])}function Vn(e,t,n,o){let r;const s=n&&n[o];if(q(e)||_e(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(he(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 u=i[l];r[l]=t(e[u],u,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function ls(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(q(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 xe(e,t,n={},o,r){if(Te.isCE||Te.parent&&cn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),K("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&as(s(n)),l=ke(Ce,{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=>qn(t)?!(t.type===Ze||t.type===Ce&&!as(t.children)):!0)?e:null}const Lo=e=>e?Is(e)?Xn(e)||e.proxy:Lo(e.parent):null,un=ve(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=>Lo(e.parent),$root:e=>Lo(e.root),$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>To(e.update)),$nextTick:e=>e.n||(e.n=Qe.bind(e.proxy)),$watch:e=>oa.bind(e)}),zo=(e,t)=>e!==re&&!e.__isScriptSetup&&le(e,t),_a={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(zo(o,t))return i[t]=1,o[t];if(r!==re&&le(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&le(u,t))return i[t]=3,s[t];if(n!==re&&le(n,t))return i[t]=4,n[t];jo&&(i[t]=0)}}const p=un[t];let d,g;if(p)return t==="$attrs"&&Me(e,"get",t),p(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==re&&le(n,t))return i[t]=4,n[t];if(g=a.config.globalProperties,le(g,t))return g[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return zo(r,t)?(r[t]=n,!0):o!==re&&le(o,t)?(o[t]=n,!0):le(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!==re&&le(e,i)||zo(t,i)||(l=s[0])&&le(l,i)||le(o,i)||le(un,i)||le(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cs(e){return q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let jo=!0;function ba(e){const t=Ao(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:u,created:p,beforeMount:d,mounted:g,beforeUpdate:x,updated:I,activated:_,deactivated:Y,beforeDestroy:D,beforeUnmount:X,destroyed:B,unmounted:k,render:L,renderTracked:S,renderTriggered:j,errorCaptured:m,serverPrefetch:v,expose:P,inheritAttrs:V,components:E,directives:R,filters:J}=t;if(u&&ya(u,o,null),i)for(const w in i){const O=i[w];te(O)&&(o[w]=O.bind(n))}if(r){const w=r.call(n,n);he(w)&&(e.data=rn(w))}if(jo=!0,s)for(const w in s){const O=s[w],ee=te(O)?O.bind(n,n):te(O.get)?O.get.bind(n,n):Xe,we=!te(O)&&te(O.set)?O.set.bind(n):Xe,Re=ae({get:ee,set:we});Object.defineProperty(o,w,{enumerable:!0,configurable:!0,get:()=>Re.value,set:ze=>Re.value=ze})}if(l)for(const w in l)fs(l[w],o,n,w);if(a){const w=te(a)?a.call(n):a;Reflect.ownKeys(w).forEach(O=>{Un(O,w[O])})}p&&us(p,e,"c");function ne(w,O){q(O)?O.forEach(ee=>w(ee.bind(n))):O&&w(O.bind(n))}if(ne(ca,d),ne(ot,g),ne(ua,x),ne(fa,I),ne(ia,_),ne(la,Y),ne(ga,m),ne(ha,S),ne(pa,j),ne(os,X),ne(Ne,k),ne(da,v),q(P))if(P.length){const w=e.exposed||(e.exposed={});P.forEach(O=>{Object.defineProperty(w,O,{get:()=>n[O],set:ee=>n[O]=ee})})}else e.exposed||(e.exposed={});L&&e.render===Xe&&(e.render=L),V!=null&&(e.inheritAttrs=V),E&&(e.components=E),R&&(e.directives=R)}function ya(e,t,n=Xe){q(e)&&(e=Bo(e));for(const o in e){const r=e[o];let s;he(r)?"default"in r?s=Lt(r.from||o,r.default,!0):s=Lt(r.from||o):s=Lt(r),be(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){Ke(q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fs(e,t,n,o){const r=o.includes(".")?Jr(n,o):()=>n[o];if(_e(e)){const s=t[e];te(s)&&de(r,s)}else if(te(e))de(r,e.bind(n));else if(he(e))if(q(e))e.forEach(s=>fs(s,t,n,o));else{const s=te(e.handler)?e.handler.bind(n):t[e.handler];te(s)&&de(r,s,e)}}function Ao(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(u=>Hn(a,u,i,!0)),Hn(a,t,i)),he(t)&&s.set(t,a),a}function Hn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Hn(e,s,n,!0),r&&r.forEach(i=>Hn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=wa[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const wa={data:ds,props:ps,emits:ps,methods:fn,computed:fn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:fn,directives:fn,watch:Ca,provide:ds,inject:xa};function ds(e,t){return t?e?function(){return ve(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function xa(e,t){return fn(Bo(e),Bo(t))}function Bo(e){if(q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function fn(e,t){return e?ve(Object.create(null),e,t):t}function ps(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:ve(Object.create(null),cs(e),cs(t??{})):t}function Ca(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Ie(e[o],t[o]);return n}function hs(){return{app:null,config:{isNativeTag:Qi,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 ka=0;function Pa(e,t){return function(o,r=null){te(o)||(o=ve({},o)),r!=null&&!he(r)&&(r=null);const s=hs(),i=new Set;let l=!1;const a=s.app={_uid:ka++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:Ya,get config(){return s.config},set config(u){},use(u,...p){return i.has(u)||(u&&te(u.install)?(i.add(u),u.install(a,...p)):te(u)&&(i.add(u),u(a,...p))),a},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),a},component(u,p){return p?(s.components[u]=p,a):s.components[u]},directive(u,p){return p?(s.directives[u]=p,a):s.directives[u]},mount(u,p,d){if(!l){const g=K(o,r);return g.appContext=s,p&&t?t(g,u):e(g,u,d),l=!0,a._container=u,u.__vue_app__=a,Xn(g.component)||g.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(u,p){return s.provides[u]=p,a},runWithContext(u){Wn=a;try{return u()}finally{Wn=null}}};return a}}let Wn=null;function Un(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function Lt(e,t,n=!1){const o=Pe||Te;if(o||Wn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Wn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&te(t)?t.call(o&&o.proxy):t}}function Sa(e,t,n,o=!1){const r={},s={};$n(s,Zn,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:Dl(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=ce(r),[a]=e.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const p=e.vnode.dynamicProps;for(let d=0;d<p.length;d++){let g=p[d];if(Bn(e.emitsOptions,g))continue;const x=t[g];if(a)if(le(s,g))x!==s[g]&&(s[g]=x,u=!0);else{const I=Be(g);r[I]=Do(a,l,I,x,e,!1)}else x!==s[g]&&(s[g]=x,u=!0)}}}else{gs(e,t,r,s)&&(u=!0);let p;for(const d in l)(!t||!le(t,d)&&((p=We(d))===d||!le(t,p)))&&(a?n&&(n[d]!==void 0||n[p]!==void 0)&&(r[d]=Do(a,l,d,void 0,e,!0)):delete r[d]);if(s!==l)for(const d in s)(!t||!le(t,d))&&(delete s[d],u=!0)}u&&at(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(kn(a))continue;const u=t[a];let p;r&&le(r,p=Be(a))?!s||!s.includes(p)?n[p]=u:(l||(l={}))[p]=u:Bn(e.emitsOptions,a)||(!(a in o)||u!==o[a])&&(o[a]=u,i=!0)}if(s){const a=ce(n),u=l||re;for(let p=0;p<s.length;p++){const d=s[p];n[d]=Do(r,a,d,u[d],e,!le(u,d))}}return i}function Do(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=le(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&te(a)){const{propsDefaults:u}=r;n in u?o=u[n]:(Yt(r),o=u[n]=a.call(null,t),At())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===We(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(!te(e)){const p=d=>{a=!0;const[g,x]=ms(d,t,!0);ve(i,g),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!s&&!a)return he(e)&&o.set(e,He),He;if(q(s))for(let p=0;p<s.length;p++){const d=Be(s[p]);vs(d)&&(i[d]=re)}else if(s)for(const p in s){const d=Be(p);if(vs(d)){const g=s[p],x=i[d]=q(g)||te(g)?{type:g}:ve({},g);if(x){const I=ys(Boolean,x.type),_=ys(String,x.type);x[0]=I>-1,x[1]=_<0||I<_,(I>-1||le(x,"default"))&&l.push(d)}}}const u=[i,l];return he(e)&&o.set(e,u),u}function vs(e){return e[0]!=="$"}function _s(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bs(e,t){return _s(e)===_s(t)}function ys(e,t){return q(t)?t.findIndex(n=>bs(n,e)):te(t)&&bs(t,e)?0:-1}const ws=e=>e[0]==="_"||e==="$stable",No=e=>q(e)?e.map(rt):[rt(e)],$a=(e,t,n)=>{if(t._n)return t;const o=se((...r)=>No(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(te(s))t[r]=$a(r,s,o);else if(s!=null){const i=No(s);t[r]=()=>i}}},Cs=(e,t)=>{const n=No(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),$n(t,"_",n)):xs(t,e.slots={})}else e.slots={},t&&Cs(e,t);$n(e.slots,Zn,1)},Ia=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=re;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(ve(r,t),!n&&l===1&&delete r._):(s=!t.$stable,xs(t,r)),i=t}else t&&(Cs(e,t),i={default:1});if(s)for(const l in r)!ws(l)&&!(l in i)&&delete r[l]};function Fo(e,t,n,o,r=!1){if(q(e)){e.forEach((g,x)=>Fo(g,t&&(q(t)?t[x]:t),n,o,r));return}if(cn(o)&&!r)return;const s=o.shapeFlag&4?Xn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,u=t&&t.r,p=l.refs===re?l.refs={}:l.refs,d=l.setupState;if(u!=null&&u!==a&&(_e(u)?(p[u]=null,le(d,u)&&(d[u]=null)):be(u)&&(u.value=null)),te(a))bt(a,l,12,[i,p]);else{const g=_e(a),x=be(a);if(g||x){const I=()=>{if(e.f){const _=g?le(d,a)?d[a]:p[a]:a.value;r?q(_)&&so(_,s):q(_)?_.includes(s)||_.push(s):g?(p[a]=[s],le(d,a)&&(d[a]=p[a])):(a.value=[s],e.k&&(p[e.k]=a.value))}else g?(p[a]=i,le(d,a)&&(d[a]=i)):x&&(a.value=i,e.k&&(p[e.k]=i))};i?(I.id=-1,Le(I,n)):I()}}}const Le=ta;function Ea(e){return Ma(e)}function Ma(e,t){const n=fo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:u,setElementText:p,parentNode:d,nextSibling:g,setScopeId:x=Xe,insertStaticContent:I}=e,_=(f,c,h,b=null,y=null,T=null,z=!1,$=null,M=!!c.dynamicChildren)=>{if(f===c)return;f&&!jt(f,c)&&(b=gt(f),ze(f,y,T,!0),f=null),c.patchFlag===-2&&(M=!1,c.dynamicChildren=null);const{type:C,ref:H,shapeFlag:N}=c;switch(C){case Kn:Y(f,c,h,b);break;case Ze:D(f,c,h,b);break;case Ro:f==null&&X(c,h,b,z);break;case Ce:E(f,c,h,b,y,T,z,$,M);break;default:N&1?L(f,c,h,b,y,T,z,$,M):N&6?R(f,c,h,b,y,T,z,$,M):(N&64||N&128)&&C.process(f,c,h,b,y,T,z,$,M,tt)}H!=null&&y&&Fo(H,f&&f.ref,T,c||f,!c)},Y=(f,c,h,b)=>{if(f==null)o(c.el=l(c.children),h,b);else{const y=c.el=f.el;c.children!==f.children&&u(y,c.children)}},D=(f,c,h,b)=>{f==null?o(c.el=a(c.children||""),h,b):c.el=f.el},X=(f,c,h,b)=>{[f.el,f.anchor]=I(f.children,c,h,b,f.el,f.anchor)},B=({el:f,anchor:c},h,b)=>{let y;for(;f&&f!==c;)y=g(f),o(f,h,b),f=y;o(c,h,b)},k=({el:f,anchor:c})=>{let h;for(;f&&f!==c;)h=g(f),r(f),f=h;r(c)},L=(f,c,h,b,y,T,z,$,M)=>{z=z||c.type==="svg",f==null?S(c,h,b,y,T,z,$,M):v(f,c,y,T,z,$,M)},S=(f,c,h,b,y,T,z,$)=>{let M,C;const{type:H,props:N,shapeFlag:W,transition:Q,dirs:oe}=f;if(M=f.el=i(f.type,T,N&&N.is,N),W&8?p(M,f.children):W&16&&m(f.children,M,null,b,y,T&&H!=="foreignObject",z,$),oe&&Mt(f,null,b,"created"),j(M,f,f.scopeId,z,b),N){for(const ue in N)ue!=="value"&&!kn(ue)&&s(M,ue,null,N[ue],T,f.children,b,y,je);"value"in N&&s(M,"value",null,N.value),(C=N.onVnodeBeforeMount)&&st(C,b,f)}oe&&Mt(f,null,b,"beforeMount");const fe=(!y||y&&!y.pendingBranch)&&Q&&!Q.persisted;fe&&Q.beforeEnter(M),o(M,c,h),((C=N&&N.onVnodeMounted)||fe||oe)&&Le(()=>{C&&st(C,b,f),fe&&Q.enter(M),oe&&Mt(f,null,b,"mounted")},y)},j=(f,c,h,b,y)=>{if(h&&x(f,h),b)for(let T=0;T<b.length;T++)x(f,b[T]);if(y){let T=y.subTree;if(c===T){const z=y.vnode;j(f,z,z.scopeId,z.slotScopeIds,y.parent)}}},m=(f,c,h,b,y,T,z,$,M=0)=>{for(let C=M;C<f.length;C++){const H=f[C]=$?xt(f[C]):rt(f[C]);_(null,H,c,h,b,y,T,z,$)}},v=(f,c,h,b,y,T,z)=>{const $=c.el=f.el;let{patchFlag:M,dynamicChildren:C,dirs:H}=c;M|=f.patchFlag&16;const N=f.props||re,W=c.props||re;let Q;h&&zt(h,!1),(Q=W.onVnodeBeforeUpdate)&&st(Q,h,c,f),H&&Mt(c,f,h,"beforeUpdate"),h&&zt(h,!0);const oe=y&&c.type!=="foreignObject";if(C?P(f.dynamicChildren,C,$,h,b,oe,T):z||O(f,c,$,null,h,b,oe,T,!1),M>0){if(M&16)V($,c,N,W,h,b,y);else if(M&2&&N.class!==W.class&&s($,"class",null,W.class,y),M&4&&s($,"style",N.style,W.style,y),M&8){const fe=c.dynamicProps;for(let ue=0;ue<fe.length;ue++){const me=fe[ue],Ve=N[me],$t=W[me];($t!==Ve||me==="value")&&s($,me,Ve,$t,y,f.children,h,b,je)}}M&1&&f.children!==c.children&&p($,c.children)}else!z&&C==null&&V($,c,N,W,h,b,y);((Q=W.onVnodeUpdated)||H)&&Le(()=>{Q&&st(Q,h,c,f),H&&Mt(c,f,h,"updated")},b)},P=(f,c,h,b,y,T,z)=>{for(let $=0;$<c.length;$++){const M=f[$],C=c[$],H=M.el&&(M.type===Ce||!jt(M,C)||M.shapeFlag&70)?d(M.el):h;_(M,C,H,null,b,y,T,z,!0)}},V=(f,c,h,b,y,T,z)=>{if(h!==b){if(h!==re)for(const $ in h)!kn($)&&!($ in b)&&s(f,$,h[$],null,z,c.children,y,T,je);for(const $ in b){if(kn($))continue;const M=b[$],C=h[$];M!==C&&$!=="value"&&s(f,$,C,M,z,c.children,y,T,je)}"value"in b&&s(f,"value",h.value,b.value)}},E=(f,c,h,b,y,T,z,$,M)=>{const C=c.el=f?f.el:l(""),H=c.anchor=f?f.anchor:l("");let{patchFlag:N,dynamicChildren:W,slotScopeIds:Q}=c;Q&&($=$?$.concat(Q):Q),f==null?(o(C,h,b),o(H,h,b),m(c.children,h,H,y,T,z,$,M)):N>0&&N&64&&W&&f.dynamicChildren?(P(f.dynamicChildren,W,h,y,T,z,$),(c.key!=null||y&&c===y.subTree)&&ks(f,c,!0)):O(f,c,h,H,y,T,z,$,M)},R=(f,c,h,b,y,T,z,$,M)=>{c.slotScopeIds=$,f==null?c.shapeFlag&512?y.ctx.activate(c,h,b,z,M):J(c,h,b,y,T,z,M):ie(f,c,M)},J=(f,c,h,b,y,T,z)=>{const $=f.component=Fa(f,b,y);if(Fn(f)&&($.ctx.renderer=tt),Ra($),$.asyncDep){if(y&&y.registerDep($,ne),!f.el){const M=$.subTree=K(Ze);D(null,M,c,h)}return}ne($,f,c,h,y,T,z)},ie=(f,c,h)=>{const b=c.component=f.component;if(Ql(f,c,h))if(b.asyncDep&&!b.asyncResolved){w(b,c,h);return}else b.next=c,Kl(b.update),b.update();else c.el=f.el,b.vnode=c},ne=(f,c,h,b,y,T,z)=>{const $=()=>{if(f.isMounted){let{next:H,bu:N,u:W,parent:Q,vnode:oe}=f,fe=H,ue;zt(f,!1),H?(H.el=oe.el,w(f,H,z)):H=oe,N&&Tn(N),(ue=H.props&&H.props.onVnodeBeforeUpdate)&&st(ue,Q,H,oe),zt(f,!0);const me=$o(f),Ve=f.subTree;f.subTree=me,_(Ve,me,d(Ve.el),gt(Ve),f,y,T),H.el=me.el,fe===null&&Gl(f,me.el),W&&Le(W,y),(ue=H.props&&H.props.onVnodeUpdated)&&Le(()=>st(ue,Q,H,oe),y)}else{let H;const{el:N,props:W}=c,{bm:Q,m:oe,parent:fe}=f,ue=cn(c);if(zt(f,!1),Q&&Tn(Q),!ue&&(H=W&&W.onVnodeBeforeMount)&&st(H,fe,c),zt(f,!0),N&&wn){const me=()=>{f.subTree=$o(f),wn(N,f.subTree,f,y,null)};ue?c.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=$o(f);_(null,me,h,b,f,y,T),c.el=me.el}if(oe&&Le(oe,y),!ue&&(H=W&&W.onVnodeMounted)){const me=c;Le(()=>st(H,fe,me),y)}(c.shapeFlag&256||fe&&cn(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&Le(f.a,y),f.isMounted=!0,c=h=b=null}},M=f.effect=new vo($,()=>To(C),f.scope),C=f.update=()=>M.run();C.id=f.uid,zt(f,!0),C()},w=(f,c,h)=>{c.component=f;const b=f.vnode.props;f.vnode=c,f.next=null,Ta(f,c.props,b,h),Ia(f,c.children,h),Ht(),Ur(),Wt()},O=(f,c,h,b,y,T,z,$,M=!1)=>{const C=f&&f.children,H=f?f.shapeFlag:0,N=c.children,{patchFlag:W,shapeFlag:Q}=c;if(W>0){if(W&128){we(C,N,h,b,y,T,z,$,M);return}else if(W&256){ee(C,N,h,b,y,T,z,$,M);return}}Q&8?(H&16&&je(C,y,T),N!==C&&p(h,N)):H&16?Q&16?we(C,N,h,b,y,T,z,$,M):je(C,y,T,!0):(H&8&&p(h,""),Q&16&&m(N,h,b,y,T,z,$,M))},ee=(f,c,h,b,y,T,z,$,M)=>{f=f||He,c=c||He;const C=f.length,H=c.length,N=Math.min(C,H);let W;for(W=0;W<N;W++){const Q=c[W]=M?xt(c[W]):rt(c[W]);_(f[W],Q,h,null,y,T,z,$,M)}C>H?je(f,y,T,!0,!1,N):m(c,h,b,y,T,z,$,M,N)},we=(f,c,h,b,y,T,z,$,M)=>{let C=0;const H=c.length;let N=f.length-1,W=H-1;for(;C<=N&&C<=W;){const Q=f[C],oe=c[C]=M?xt(c[C]):rt(c[C]);if(jt(Q,oe))_(Q,oe,h,null,y,T,z,$,M);else break;C++}for(;C<=N&&C<=W;){const Q=f[N],oe=c[W]=M?xt(c[W]):rt(c[W]);if(jt(Q,oe))_(Q,oe,h,null,y,T,z,$,M);else break;N--,W--}if(C>N){if(C<=W){const Q=W+1,oe=Q<H?c[Q].el:b;for(;C<=W;)_(null,c[C]=M?xt(c[C]):rt(c[C]),h,oe,y,T,z,$,M),C++}}else if(C>W)for(;C<=N;)ze(f[C],y,T,!0),C++;else{const Q=C,oe=C,fe=new Map;for(C=oe;C<=W;C++){const Ee=c[C]=M?xt(c[C]):rt(c[C]);Ee.key!=null&&fe.set(Ee.key,C)}let ue,me=0;const Ve=W-oe+1;let $t=!1,no=0;const Rt=new Array(Ve);for(C=0;C<Ve;C++)Rt[C]=0;for(C=Q;C<=N;C++){const Ee=f[C];if(me>=Ve){ze(Ee,y,T,!0);continue}let pe;if(Ee.key!=null)pe=fe.get(Ee.key);else for(ue=oe;ue<=W;ue++)if(Rt[ue-oe]===0&&jt(Ee,c[ue])){pe=ue;break}pe===void 0?ze(Ee,y,T,!0):(Rt[pe-oe]=C+1,pe>=no?no=pe:$t=!0,_(Ee,c[pe],h,null,y,T,z,$,M),me++)}const oo=$t?La(Rt):He;for(ue=oo.length-1,C=Ve-1;C>=0;C--){const Ee=oe+C,pe=c[Ee],Xi=Ee+1<H?c[Ee+1].el:b;Rt[C]===0?_(null,pe,h,Xi,y,T,z,$,M):$t&&(ue<0||C!==oo[ue]?Re(pe,h,Xi,2):ue--)}}},Re=(f,c,h,b,y=null)=>{const{el:T,type:z,transition:$,children:M,shapeFlag:C}=f;if(C&6){Re(f.component.subTree,c,h,b);return}if(C&128){f.suspense.move(c,h,b);return}if(C&64){z.move(f,c,h,tt);return}if(z===Ce){o(T,c,h);for(let N=0;N<M.length;N++)Re(M[N],c,h,b);o(f.anchor,c,h);return}if(z===Ro){B(f,c,h);return}if(b!==2&&C&1&&$)if(b===0)$.beforeEnter(T),o(T,c,h),Le(()=>$.enter(T),y);else{const{leave:N,delayLeave:W,afterLeave:Q}=$,oe=()=>o(T,c,h),fe=()=>{N(T,()=>{oe(),Q&&Q()})};W?W(T,oe,fe):fe()}else o(T,c,h)},ze=(f,c,h,b=!1,y=!1)=>{const{type:T,props:z,ref:$,children:M,dynamicChildren:C,shapeFlag:H,patchFlag:N,dirs:W}=f;if($!=null&&Fo($,null,h,f,!0),H&256){c.ctx.deactivate(f);return}const Q=H&1&&W,oe=!cn(f);let fe;if(oe&&(fe=z&&z.onVnodeBeforeUnmount)&&st(fe,c,f),H&6)ht(f.component,h,b);else{if(H&128){f.suspense.unmount(h,b);return}Q&&Mt(f,null,c,"beforeUnmount"),H&64?f.type.remove(f,c,h,y,tt,b):C&&(T!==Ce||N>0&&N&64)?je(C,c,h,!1,!0):(T===Ce&&N&384||!y&&H&16)&&je(M,c,h),b&&en(f)}(oe&&(fe=z&&z.onVnodeUnmounted)||Q)&&Le(()=>{fe&&st(fe,c,f),Q&&Mt(f,null,c,"unmounted")},h)},en=f=>{const{type:c,el:h,anchor:b,transition:y}=f;if(c===Ce){Tt(h,b);return}if(c===Ro){k(f);return}const T=()=>{r(h),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:z,delayLeave:$}=y,M=()=>z(h,T);$?$(f.el,T,M):M()}else T()},Tt=(f,c)=>{let h;for(;f!==c;)h=g(f),r(f),f=h;r(c)},ht=(f,c,h)=>{const{bum:b,scope:y,update:T,subTree:z,um:$}=f;b&&Tn(b),y.stop(),T&&(T.active=!1,ze(z,f,c,h)),$&&Le($,c),Le(()=>{f.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},je=(f,c,h,b=!1,y=!1,T=0)=>{for(let z=T;z<f.length;z++)ze(f[z],c,h,b,y)},gt=f=>f.shapeFlag&6?gt(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),et=(f,c,h)=>{f==null?c._vnode&&ze(c._vnode,null,null,!0):_(c._vnode||null,f,c,null,null,null,h),Ur(),Kr(),c._vnode=f},tt={p:_,um:ze,m:Re,r:en,mt:J,mc:m,pc:O,pbc:P,n:gt,o:e};let tn,wn;return t&&([tn,wn]=t(tt)),{render:et,hydrate:tn,createApp:Pa(et,tn)}}function zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ks(e,t,n=!1){const o=e.children,r=t.children;if(q(o)&&q(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]=xt(r[s]),l.el=i.el),n||ks(i,l)),l.type===Kn&&(l.el=i.el)}}function La(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const u=e[o];if(u!==0){if(r=n[n.length-1],e[r]<u){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<u?s=l+1:i=l;u<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 za=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),Ro=Symbol.for("v-stc"),dn=[];let Ge=null;function A(e=!1){dn.push(Ge=e?null:[])}function ja(){dn.pop(),Ge=dn[dn.length-1]||null}let pn=1;function Ps(e){pn+=e}function Ss(e){return e.dynamicChildren=pn>0?Ge||He:null,ja(),pn>0&&Ge&&Ge.push(e),e}function Z(e,t,n,o,r,s){return Ss(U(e,t,n,o,r,s,!0))}function ke(e,t,n,o,r){return Ss(K(e,t,n,o,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function jt(e,t){return e.type===t.type&&e.key===t.key}const Zn="__vInternal",Ts=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||be(e)||te(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,o=0,r=null,s=e===Ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ts(t),ref:t&&Yn(t),scopeId:Yr,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:Te};return l?(Vo(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=_e(n)?8:16),pn>0&&!i&&Ge&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ge.push(a),a}const K=Aa;function Aa(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ss)&&(e=Ze),qn(e)){const l=yt(e,t,!0);return n&&Vo(l,n),pn>0&&!s&&Ge&&(l.shapeFlag&6?Ge[Ge.indexOf(e)]=l:Ge.push(l)),l.patchFlag|=-2,l}if(Ka(e)&&(e=e.__vccOpts),t){t=Ba(t);let{class:l,style:a}=t;l&&!_e(l)&&(t.class=ye(l)),he(a)&&(Br(a)&&!q(a)&&(a=ve({},a)),t.style=Ue(a))}const i=_e(e)?1:ea(e)?128:za(e)?64:he(e)?4:te(e)?2:0;return U(e,t,n,o,r,i,s,!0)}function Ba(e){return e?Br(e)||Zn in e?ve({},e):e:null}function yt(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&&Ts(l),ref:t&&t.ref?n&&r?q(r)?r.concat(Yn(t)):[r,Yn(t)]:Yn(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!==Ce?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&&yt(e.ssContent),ssFallback:e.ssFallback&&yt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wt(e=" ",t=0){return K(Kn,null,e,t)}function Fe(e="",t=!1){return t?(A(),ke(Ze,null,e)):K(Ze,null,e)}function rt(e){return e==null||typeof e=="boolean"?K(Ze):q(e)?K(Ce,null,e.slice()):typeof e=="object"?xt(e):K(Kn,null,String(e))}function xt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yt(e)}function Vo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Vo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Zn in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[wt(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=ye([t.class,o.class]));else if(r==="style")t.style=Ue([t.style,o.style]);else if(xn(r)){const s=t[r],i=o[r];i&&s!==i&&!(q(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function st(e,t,n,o=null){Ke(e,t,7,[n,o])}const Da=hs();let Na=0;function Fa(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Da,s={uid:Na++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new cl(!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:re,inheritAttrs:o.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,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=Yl.bind(null,s),e.ce&&e.ce(s),s}let Pe=null;const $s=()=>Pe||Te;let Wo,Zt,Os="__VUE_INSTANCE_SETTERS__";(Zt=fo()[Os])||(Zt=fo()[Os]=[]),Zt.push(e=>Pe=e),Wo=e=>{Zt.length>1?Zt.forEach(t=>t(e)):Zt[0](e)};const Yt=e=>{Wo(e),e.scope.on()},At=()=>{Pe&&Pe.scope.off(),Wo(null)};function Is(e){return e.vnode.shapeFlag&4}let hn=!1;function Ra(e,t=!1){hn=t;const{props:n,children:o}=e.vnode,r=Is(e);Sa(e,n,r,t),Oa(e,o);const s=r?Va(e,t):void 0;return hn=!1,s}function Va(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Dr(new Proxy(e.ctx,_a));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Wa(e):null;Yt(e),Ht();const s=bt(o,e,0,[e.props,r]);if(Wt(),At(),pr(s)){if(s.then(At,At),t)return s.then(i=>{Es(e,i,t)}).catch(i=>{An(i,e,0)});e.asyncDep=s}else Es(e,s,t)}else Ls(e,t)}function Es(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Vr(t)),Ls(e,n)}let Ms;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ms&&!o.render){const r=o.template||Ao(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,u=ve(ve({isCustomElement:s,delimiters:l},i),a);o.render=Ms(r,u)}}e.render=o.render||Xe}Yt(e),Ht(),ba(e),Wt(),At()}function Ha(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Me(e,"get","$attrs"),t[n]}}))}function Wa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ha(e)},slots:e.slots,emit:e.emit,expose:t}}function Xn(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 un)return un[n](e)},has(t,n){return n in t||n in un}}))}function Ua(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Ka(e){return te(e)&&"__vccOpts"in e}const ae=(e,t)=>Hl(e,t,hn);function zs(e,t,n){const o=arguments.length;return o===2?he(t)&&!q(t)?qn(t)?K(e,null,[t]):K(e,t):K(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),K(e,t,n))}const qa=Symbol.for("v-scx"),Za=()=>Lt(qa),Ya="3.3.4",Xa="http://www.w3.org/2000/svg",Bt=typeof document<"u"?document:null,js=Bt&&Bt.createElement("template"),Ja={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?Bt.createElementNS(Xa,e):Bt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Bt.createTextNode(e),createComment:e=>Bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bt.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 Qa(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 Ga(e,t,n){const o=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Uo(o,s,"");for(const s in n)Uo(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 Uo(e,t,n){if(q(n))n.forEach(o=>Uo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=ec(e,t);As.test(n)?e.setProperty(We(o),n.replace(As,""),"important"):e[o]=n}}const Bs=["Webkit","Moz","ms"],Ko={};function ec(e,t){const n=Ko[t];if(n)return n;let o=Be(t);if(o!=="filter"&&o in e)return Ko[t]=o;o=Sn(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 tc(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=al(t);n==null||s&&!vr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function nc(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 u=l==="OPTION"?e.getAttribute("value"):e.value,p=n??"";u!==p&&(e.value=p),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=vr(n):n==null&&u==="string"?(n="",a=!0):u==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Xt(e,t,n,o){e.addEventListener(t,n,o)}function oc(e,t,n,o){e.removeEventListener(t,n,o)}function rc(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]=sc(t);if(o){const u=s[t]=ac(o,r);Xt(e,l,u,a)}else i&&(oc(e,l,i,a),s[t]=void 0)}}const Ns=/(?:Once|Passive|Capture)$/;function sc(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):We(e.slice(2)),t]}let qo=0;const ic=Promise.resolve(),lc=()=>qo||(ic.then(()=>qo=0),qo=Date.now());function ac(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ke(cc(o,n.value),t,5,[o])};return n.value=e,n.attached=lc(),n}function cc(e,t){if(q(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]/,uc=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Qa(e,o,r):t==="style"?Ga(e,n,o):xn(t)?ro(t)||rc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fc(e,t,o,r))?nc(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),tc(e,t,o,r))};function fc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Fs.test(t)&&te(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fs.test(t)&&_e(n)?!1:t in e}function dc(e,t){const n=$e(e);class o extends Zo{constructor(s){super(n,s,t)}}return o.def=n,o}const pc=typeof HTMLElement<"u"?HTMLElement:class{};class Zo extends pc{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,Qe(()=>{this._connected||(Qs(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&&!q(s))for(const a in s){const u=s[a];(u===Number||u&&u.type===Number)&&(a in this._props&&(this._props[a]=uo(this._props[a])),(l||(l=Object.create(null)))[Be(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=q(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(Be))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Be(t);this._numberProps&&this._numberProps[o]&&(n=uo(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(We(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(We(t),n+""):n||this.removeAttribute(We(t))))}_update(){Qs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=K(this._def,ve({},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),We(s)!==s&&o(We(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Zo){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 Ct="transition",gn="animation",Jt=(e,{slots:t})=>zs(sa,hc(e),t);Jt.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};Jt.props=ve({},Qr,Rs);const Dt=(e,t=[])=>{q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vs=e=>e?q(e)?e.some(t=>t.length>1):e.length>1:!1;function hc(e){const t={};for(const E in e)E in Rs||(t[E]=e[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:u=i,appearToClass:p=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,I=gc(r),_=I&&I[0],Y=I&&I[1],{onBeforeEnter:D,onEnter:X,onEnterCancelled:B,onLeave:k,onLeaveCancelled:L,onBeforeAppear:S=D,onAppear:j=X,onAppearCancelled:m=B}=t,v=(E,R,J)=>{Nt(E,R?p:l),Nt(E,R?u:i),J&&J()},P=(E,R)=>{E._isLeaving=!1,Nt(E,d),Nt(E,x),Nt(E,g),R&&R()},V=E=>(R,J)=>{const ie=E?j:X,ne=()=>v(R,E,J);Dt(ie,[R,ne]),Hs(()=>{Nt(R,E?a:s),kt(R,E?p:l),Vs(ie)||Ws(R,o,_,ne)})};return ve(t,{onBeforeEnter(E){Dt(D,[E]),kt(E,s),kt(E,i)},onBeforeAppear(E){Dt(S,[E]),kt(E,a),kt(E,u)},onEnter:V(!1),onAppear:V(!0),onLeave(E,R){E._isLeaving=!0;const J=()=>P(E,R);kt(E,d),_c(),kt(E,g),Hs(()=>{E._isLeaving&&(Nt(E,d),kt(E,x),Vs(k)||Ws(E,o,Y,J))}),Dt(k,[E,J])},onEnterCancelled(E){v(E,!1),Dt(B,[E])},onAppearCancelled(E){v(E,!0),Dt(m,[E])},onLeaveCancelled(E){P(E),Dt(L,[E])}})}function gc(e){if(e==null)return null;if(he(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}function Yo(e){return uo(e)}function kt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Nt(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 mc=0;function Ws(e,t,n,o){const r=e._endId=++mc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=vc(e,t);if(!i)return o();const u=i+"end";let p=0;const d=()=>{e.removeEventListener(u,g),s()},g=x=>{x.target===e&&++p>=a&&d()};setTimeout(()=>{p<a&&d()},l+1),e.addEventListener(u,g)}function vc(e,t){const n=window.getComputedStyle(e),o=I=>(n[I]||"").split(", "),r=o(`${Ct}Delay`),s=o(`${Ct}Duration`),i=Us(r,s),l=o(`${gn}Delay`),a=o(`${gn}Duration`),u=Us(l,a);let p=null,d=0,g=0;t===Ct?i>0&&(p=Ct,d=i,g=s.length):t===gn?u>0&&(p=gn,d=u,g=a.length):(d=Math.max(i,u),p=d>0?i>u?Ct:gn:null,g=p?p===Ct?s.length:a.length:0);const x=p===Ct&&/\b(transform|all)(,|$)/.test(o(`${Ct}Property`).toString());return{type:p,timeout:d,propCount:g,hasTransform:x}}function Us(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 _c(){return document.body.offsetHeight}const qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>Tn(t,n):t};function bc(e){e.target.composing=!0}function Zs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=qs(r);const s=o||r.props&&r.props.type==="number";Xt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=co(l)),e._assign(l)}),n&&Xt(e,"change",()=>{e.value=e.value.trim()}),t||(Xt(e,"compositionstart",bc),Xt(e,"compositionend",Zs),Xt(e,"change",Zs))},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")&&co(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},wc=["ctrl","shift","alt","meta"],xc={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)=>wc.some(n=>e[`${n}Key`]&&!t.includes(n))},Pt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=xc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Cc={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=We(n.key);if(t.some(r=>r===o||Cc[r]===o))return e(n)},Xs={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mn(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),mn(e,!0),o.enter(e)):o.leave(e,()=>{mn(e,!1)}):mn(e,t))},beforeUnmount(e,{value:t}){mn(e,t)}};function mn(e,t){e.style.display=t?e._vod:"none"}const kc=ve({patchProp:uc},Ja);let Js;function Pc(){return Js||(Js=Ea(kc))}const Qs=(...e)=>{Pc().render(...e)},Sc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},Tc={class:"flex justify-between items-end"},$c={class:"inline-block children-pointer-events-auto w-1/3"},Oc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ic={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ec={class:"inline-block z-20 relative"},Gs=$e({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(A(),Z("div",{class:ye(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[xe(t.$slots,"default"),U("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 pb-4 sm:pb-2 md:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ue({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[U("div",Sc,[xe(t.$slots,"back"),t.touchDevice?Fe("",!0):xe(t.$slots,"exit",{key:0}),xe(t.$slots,"chapter-nav")]),U("div",Tc,[U("div",$c,[xe(t.$slots,"page-nav")]),U("div",Oc,[xe(t.$slots,"reset-zoom")]),U("div",Ic,[xe(t.$slots,"entry"),U("div",Ec,[xe(t.$slots,"settings")]),xe(t.$slots,"full-screen"),xe(t.$slots,"play")])]),U("div",{class:ye(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[xe(t.$slots,"progress")],2)],6)],2))}}),Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),ge=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Lc={},zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},jc=[U("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[U("circle",{cx:"14",cy:"14",r:"12"}),U("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Ac(e,t){return A(),Z("svg",zc,jc)}const ei=ge(Lc,[["render",Ac]]),Bc=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),Dc={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"},Nc={class:"block w-4 h-4"},Fc={class:"w-12"},ti=$e({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ei;return t.zoom!==1?(A(),Z("button",Dc,[U("div",Nc,[K(o)]),U("div",Fc,lt(Math.ceil(t.zoom*100))+"%",1)])):Fe("",!0)}}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),Vc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wc=[U("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 Uc(e,t){return A(),Z("svg",Hc,Wc)}const Xo=ge(Vc,[["render",Uc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"})),qc={},Zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yc=[U("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),U("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 Xc(e,t){return A(),Z("svg",Zc,Yc)}const Jo=ge(qc,[["render",Xc]]),Jc=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"}));function Qc({touchDevice:e}){const t=G(!1);let n=0;return Un("busy:touchDevice",e),Un("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Qo(){const e=Lt("busy:touchDevice"),t=Lt("setBusyState");let n=!1;return Ne(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Gc=(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 u=+n||50;r<=u?(r++,s-=.65/u,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Qt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Gc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},eu={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},Jn=$e({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=Qo();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,u)=>ut((A(),ke(ma(a.href?"a":"button"),Ho(a.href?{href:a.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"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:Pt(l,["stop"]),onMouseenter:s,onMouseleave:i}),{default:se(()=>[U("div",eu,[xe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[F(Qt),a.disabled?0:15]])}}),tu=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ru=[U("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 su(e,t){return A(),Z("svg",ou,ru)}const ni=ge(nu,[["render",su]]),iu=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"}));class lu{constructor(){Ji(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 au(){const e=new lu;return Ne(()=>e.dispose()),Un("keyController",e),e}function Go(e){const t=Lt("keyController");ot(()=>t.addListener(e)),Ne(()=>t.removeListener(e))}const cu={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},uu={class:"inline-flex items-center h-full absolute left-3 top-0"},fu=U("span",{class:"text-xl font-medium"},"Customize",-1),du={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},oi=$e({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Go({onKeyDown:r});const o=Qo();de(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ni,a=Jn;return A(),Z("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))},[K(Jt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:se(()=>[n.modelValue?(A(),Z("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=Pt(()=>{},["stop"]))},[U("div",cu,[U("div",uu,[K(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:se(()=>[K(l)]),_:1})]),fu]),U("div",du,[xe(s.$slots,"default")])])):Fe("",!0)]),_:3})],2)}}}),pu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),hu=["min","max","step"],gu={class:"flex-shrink-0"},ri=ge($e({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ae({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(A(),Z("div",{class:ye(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Ue({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[ut(U("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,hu),[[yc,o.value]]),U("p",gu,[xe(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:2px;border-style:none;cursor:pointer;height:6px;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:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
2
|
-
`]]]),mu=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),vu={class:"flex items-center mb-8 last:mb-0"},_u={class:"flex-grow overflow-hidden"},si=$e({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Z("div",vu,[U("div",{class:ye(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},lt(t.label),3),U("div",_u,[xe(t.$slots,"default")])]))}}),bu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),yu=["onClick","onKeyup"],ii=$e({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=G(null),r=G({width:"",left:""});ot(()=>{let i=!1;de(()=>n.modelValue,l=>{var u;const a=(u=o.value)==null?void 0:u.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)=>(A(),Z("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:{}},[U("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ue(r.value)},null,4),(A(!0),Z(Ce,null,Vn(n.items,(a,u)=>ut((A(),Z("div",{key:u,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":u==n.modelValue,"text-stone-400":u!=n.modelValue}]),onClick:()=>s(u),onKeyup:[Ys(()=>s(u),["enter"]),Ys(()=>s(u),["space"])]},[wt(lt(a),1)],42,yu)),[[F(Qt),30]])),128))],512))}}),wu=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"})),xu={},Cu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},ku=[U("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),U("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Pu(e,t){return A(),Z("svg",Cu,ku)}const li=ge(xu,[["render",Pu]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:li},Symbol.toStringTag,{value:"Module"}));var ai;const er=typeof window<"u",Tu=e=>typeof e=="function",$u=e=>typeof e=="string",Gt=()=>{};er&&((ai=window==null?void 0:window.navigator)!=null&&ai.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Qn(e){return typeof e=="function"?e():F(e)}function ci(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 ui=e=>e();function Ou(e,t={}){let n,o,r=Gt;const s=l=>{clearTimeout(l),r(),r=Gt};return l=>{const a=Qn(e),u=Qn(t.maxWait);return n&&s(n),a<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((p,d)=>{r=t.rejectOnCancel?d:p,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,p(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,p(l())},a)})}}function Iu(e=ui){const t=G(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:xo(t),pause:n,resume:o,eventFilter:r}}function Eu(e){return e}function tr(e){return br()?(fl(e),!0):!1}function dt(e,t=200,n={}){return ci(Ou(t,n),e)}function fi(e,t=!0){$s()?ot(e):t?e():Qe(e)}var di=Object.getOwnPropertySymbols,Mu=Object.prototype.hasOwnProperty,Lu=Object.prototype.propertyIsEnumerable,zu=(e,t)=>{var n={};for(var o in e)Mu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&di)for(var o of di(e))t.indexOf(o)<0&&Lu.call(e,o)&&(n[o]=e[o]);return n};function ju(e,t,n={}){const o=n,{eventFilter:r=ui}=o,s=zu(o,["eventFilter"]);return de(e,ci(r,t),s)}var Au=Object.defineProperty,Bu=Object.defineProperties,Du=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?Au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nu=(e,t)=>{for(var n in t||(t={}))pi.call(t,n)&&gi(e,n,t[n]);if(Gn)for(var n of Gn(t))hi.call(t,n)&&gi(e,n,t[n]);return e},Fu=(e,t)=>Bu(e,Du(t)),Ru=(e,t)=>{var n={};for(var o in e)pi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Gn)for(var o of Gn(e))t.indexOf(o)<0&&hi.call(e,o)&&(n[o]=e[o]);return n};function Vu(e,t,n={}){const o=n,{eventFilter:r}=o,s=Ru(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:u}=Iu(r);return{stop:ju(e,t,Fu(Nu({},s),{eventFilter:i})),pause:l,resume:a,isActive:u}}function Ft(e){var t;const n=Qn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pt=er?window:void 0,Hu=er?window.document:void 0;function St(...e){let t,n,o,r;if($u(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=pt):[t,n,o,r]=e,!t)return Gt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(p=>p()),s.length=0},l=(p,d,g)=>(p.addEventListener(d,g,r),()=>p.removeEventListener(d,g,r)),a=de(()=>Ft(t),p=>{i(),p&&s.push(...n.flatMap(d=>o.map(g=>l(p,d,g))))},{immediate:!0,flush:"post"}),u=()=>{a(),i()};return tr(u),u}function mi(e,t=!1){const n=G(),o=()=>n.value=!!e();return o(),fi(o,t),n}const nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},or="__vueuse_ssr_handlers__";nr[or]=nr[or]||{};const Wu=nr[or];function Uu(e,t){return Wu[e]||t}function Ku(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 qu=Object.defineProperty,vi=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Yu=Object.prototype.propertyIsEnumerable,_i=(e,t,n)=>t in e?qu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bi=(e,t)=>{for(var n in t||(t={}))Zu.call(t,n)&&_i(e,n,t[n]);if(vi)for(var n of vi(t))Yu.call(t,n)&&_i(e,n,t[n]);return e};const Xu={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 yi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:p,window:d=pt,eventFilter:g,onError:x=j=>{console.error(j)}}=o,I=(p?Nl:G)(t);if(!n)try{n=Uu("getDefaultStorage",()=>{var j;return(j=pt)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!n)return I;const _=Qn(t),Y=Ku(_),D=(r=o.serializer)!=null?r:Xu[Y],{pause:X,resume:B}=Vu(I,()=>k(I.value),{flush:s,deep:i,eventFilter:g});return d&&l&&St(d,"storage",S),S(),I;function k(j){try{if(j==null)n.removeItem(e);else{const m=D.write(j),v=n.getItem(e);v!==m&&(n.setItem(e,m),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:v,newValue:m,storageArea:n}))))}}catch(m){x(m)}}function L(j){const m=j?j.newValue:n.getItem(e);if(m==null)return a&&_!==null&&n.setItem(e,D.write(_)),_;if(!j&&u){const v=D.read(m);return Tu(u)?u(v,_):Y==="object"&&!Array.isArray(v)?bi(bi({},_),v):v}else return typeof m!="string"?m:D.read(m)}function S(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){I.value=_;return}if(!(j&&j.key!==e)){X();try{I.value=L(j)}catch(m){x(m)}finally{j?Qe(B):B()}}}}}function wi({document:e=Hu}={}){if(!e)return G("visible");const t=G(e.visibilityState);return St(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var xi=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,Qu=Object.prototype.propertyIsEnumerable,Gu=(e,t)=>{var n={};for(var o in e)Ju.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&xi)for(var o of xi(e))t.indexOf(o)<0&&Qu.call(e,o)&&(n[o]=e[o]);return n};function ef(e,t,n={}){const o=n,{window:r=pt}=o,s=Gu(o,["window"]);let i;const l=mi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},u=de(()=>Ft(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),p=()=>{a(),u()};return tr(p),{isSupported:l,stop:p}}function tf(e,t={width:0,height:0},n={}){const{window:o=pt,box:r="content-box"}=n,s=ae(()=>{var a,u;return(u=(a=Ft(e))==null?void 0:a.namespaceURI)==null?void 0:u.includes("svg")}),i=G(t.width),l=G(t.height);return ef(e,([a])=>{const u=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const p=Ft(e);if(p){const d=o.getComputedStyle(p);i.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(u){const p=Array.isArray(u)?u:[u];i.value=p.reduce((d,{inlineSize:g})=>d+g,0),l.value=p.reduce((d,{blockSize:g})=>d+g,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),de(()=>Ft(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function Ci(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=pt}=n,l=mi(()=>i&&"IntersectionObserver"in i);let a=Gt;const u=l.value?de(()=>({el:Ft(e),root:Ft(o)}),({el:d,root:g})=>{if(a(),!d)return;const x=new IntersectionObserver(t,{root:g,rootMargin:r,threshold:s});x.observe(d),a=()=>{x.disconnect(),a=Gt}},{immediate:!0,flush:"post"}):Gt,p=()=>{a(),u()};return tr(p),{isSupported:l,stop:p}}function nf(e,t,n={}){const{window:o=pt}=n;return yi(e,t,o==null?void 0:o.localStorage,n)}var ki;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ki||(ki={}));function rr(e,t,n={}){const{window:o=pt}=n;return yi(e,t,o==null?void 0:o.sessionStorage,n)}var of=Object.defineProperty,Pi=Object.getOwnPropertySymbols,rf=Object.prototype.hasOwnProperty,sf=Object.prototype.propertyIsEnumerable,Si=(e,t,n)=>t in e?of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lf=(e,t)=>{for(var n in t||(t={}))rf.call(t,n)&&Si(e,n,t[n]);if(Pi)for(var n of Pi(t))sf.call(t,n)&&Si(e,n,t[n]);return e};lf({linear:Eu},{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]});function af(e={}){const{window:t=pt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=G(n),l=G(o),a=()=>{t&&(s?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),fi(a),St("resize",a,{passive:!0}),r&&St("orientationchange",a,{passive:!0}),{width:i,height:l}}function cf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var Ye=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(Ye||{}),it=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(it||{});const uf=.25,ff=5,df=.25,vn=.25,_n=5,pf=.05,hf=0,gf=4;function mf(e){var D,X,B,k,L;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?cf(t):location.pathname}`,s=nf(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(S){const j={};return S?(S.style!==void 0&&Object.values(it).includes(S.style)&&(j.style=S.style),S.direction!==void 0&&Object.values(Ye).includes(S.direction)&&(j.direction=S.direction),S.gap!==void 0&&S.gap>=hf&&S.gap<=gf&&(j.gap=S.gap),S.speed!==void 0&&S.speed>=vn&&S.speed<=_n&&(j.speed=S.speed),S.zoom!==void 0&&S.zoom>=vn&&S.zoom<=_n&&(j.zoom=S.zoom),Object.keys(j).length?j:void 0):j}}),i=S=>{if(!s.value){s.value=S;return}const j={...s.value};Object.entries(S).forEach(([m,v])=>{v===void 0?delete j[m]:j[m]=v}),Object.keys(j).length?s.value=j:(s.value=void 0,localStorage.removeItem(r))},l=G(((D=s.value)==null?void 0:D.style)??it.longStrip),a=G(((X=s.value)==null?void 0:X.direction)??Ye.vertical),u=G((B=s.value)==null?void 0:B.gap),p=G(((k=s.value)==null?void 0:k.speed)??1),d=G(((L=s.value)==null?void 0:L.zoom)??1),g=ae({get(){return n.value?it.longStrip:l.value??it.longStrip},set:S=>{l.value=S,i({style:S===it.longStrip?void 0:S}),S!==it.longStrip&&a.value===Ye.vertical&&(x.value=S===it.single?Ye.ltr:Ye.rtl)}}),x=ae({get:()=>n.value?Ye.vertical:a.value,set:S=>{a.value=S,i({direction:S===Ye.vertical?void 0:S})}}),I=ae({get:()=>u.value??(n.value?0:1),set(S){u.value=S,i({gap:S})}}),_=ae({get:()=>p.value,set(S){p.value=S,i({speed:S===1?void 0:S})}}),Y=ae({get:()=>d.value,set(S){d.value=S,i({zoom:S===1?void 0:S})}});return{direction:x,style:g,gap:I,speed:_,zoom:Y,isLongStrip:ae(()=>g.value===it.longStrip),isDouble:ae(()=>g.value===it.double),isRTL:ae(()=>x.value===Ye.rtl),isVertical:ae(()=>x.value===Ye.vertical)}}const Ti=$e({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom"],setup(e,{emit:t}){const n=G(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=li,l=Jn,a=ii,u=si,p=ri,d=oi;return A(),Z(Ce,null,[K(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:se(()=>[K(i)]),_:1},8,["disabled"]),K(d,{modelValue:n.value,"onUpdate:modelValue":s[5]||(s[5]=g=>n.value=g)},{default:se(()=>[K(u,{label:"Style"},{default:se(()=>[K(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=g=>t("update:reader-style",g))},null,8,["model-value","items"])]),_:1}),K(u,{label:"Direction"},{default:se(()=>[K(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=g=>t("update:direction",g))},null,8,["model-value","items"])]),_:1}),K(u,{label:"Gap"},{default:se(()=>[K(a,{"model-value":r.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":s[3]||(s[3]=g=>t("update:gap",g))},null,8,["model-value"])]),_:1}),K(u,{label:"Speed"},{default:se(()=>[K(p,{"model-value":r.speed,min:F(uf),max:F(ff),step:F(df),suffix:"x","onUpdate:modelValue":s[4]||(s[4]=g=>t("update:speed",g))},{suffix:se(()=>[wt(lt(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),K(u,{label:"Zoom"},{default:se(()=>[K(p,{"model-value":Math.ceil(r.zoom*100),min:F(vn)*100,max:F(_n)*100,step:F(pf)*100,"onUpdate:modelValue":o},{suffix:se(()=>[wt(lt(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),_f={},bf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},yf=[U("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function wf(e,t){return A(),Z("svg",bf,yf)}const $i=ge(_f,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),Cf={},kf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Pf=[U("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Sf(e,t){return A(),Z("svg",kf,Pf)}const Oi=ge(Cf,[["render",Sf]]),Tf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),$f={},Of={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},If=[U("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Ef(e,t){return A(),Z("svg",Of,If)}const Ii=ge($f,[["render",Ef]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Lf={},zf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jf=[U("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),U("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Af(e,t){return A(),Z("svg",zf,jf)}const Ei=ge(Lf,[["render",Af]]),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Df={},Nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ff=[U("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Rf(e,t){return A(),Z("svg",Nf,Ff)}const Mi=ge(Df,[["render",Rf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Hf=["aria-hidden"],Wf=["onClick"],Uf=["onClick"],Kf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},qf={class:"whitespace-nowrap"},sr=$e({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=G(null),r=G(!1),s=G(null),i=G(!1),l=G(!1),a=G(!1);Go({onKeyDown:x});const u=Qo();function p(){if(!n.items.length){r.value=!1;return}r.value=!r.value,u(r.value),r.value?(d(),Qe(()=>setTimeout(()=>{var k,L;(L=(k=s.value)==null?void 0:k.children[n.modelValue])==null||L.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),_(o.value)):setTimeout(Y,250)}function d(){const k=o.value;if(k){const L=k.getBoundingClientRect(),S=L.x+L.width/2;i.value=L.y>window.innerHeight/2,l.value=S<window.innerWidth/3,a.value=S>window.innerWidth/3*2}}function g(k){k!=n.modelValue&&t("update:modelValue",k),p()}function x(k){r.value&&k.key==="Escape"&&(p(),k.preventDefault())}let I=[];function _(k){const L=window.getComputedStyle(k).zIndex,S=k.style.zIndex;(!L||!(+L>0))&&((!k.parentElement||k.parentElement.childElementCount>1)&&(k.style.zIndex="1",I.push({el:k,zIndex:S})),k.parentElement&&_(k.parentElement))}function Y(){I.forEach(({el:k,zIndex:L})=>{k.style.zIndex=L??""}),I=[]}let D=!1;function X(){D||(D=!0,u(!0,{desktopOnly:!0}))}function B(){D&&(D=!1,u(!1,{desktopOnly:!0}))}return(k,L)=>{const S=Mi;return A(),Z("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),Z("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:p})):Fe("",!0),k.items.length?(A(),ke(Jt,{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:se(()=>[r.value?(A(),Z("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-[70vh] 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:L[0]||(L[0]=Pt(()=>{},["stop"]))},[(A(!0),Z(Ce,null,Vn(k.items,(j,m)=>ut((A(),Z("li",{key:m,tabindex:"-1",class:ye(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":m===k.modelValue}]),onClick:()=>g(m)},[U("div",{class:ye(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[xe(k.$slots,"item",{item:j},()=>[wt(lt(j),1)])],2)],10,Wf)),[[F(Qt),30]])),128))],42,Hf)):Fe("",!0)]),_:3})):Fe("",!0),ut((A(),Z("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":k.disabled}]),onClick:Pt(p,["stop"]),onMouseenter:X,onMouseleave:B},[U("div",Kf,[U("span",qf,lt(k.label),1),k.items.length?(A(),Z("span",{key:0,class:ye(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[K(S)],2)):Fe("",!0)])],42,Uf)),[[F(Qt),30]])],512)}}}),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),Li=$e({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ae(()=>Math.floor(n.modelValue)),r=ae(()=>n.pages.map(u=>u.map(({index:p})=>`${p+1}`).join("-"))),s=ae(()=>{const u=o.value,p=n.pages.findIndex(d=>d.some(({index:g})=>g===u));return p===-1?n.pages.length-1:p}),i=ae(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(u){const p=n.pages[u][0].index;a(p)}function a(u){t("update:modelValue",u)}return(u,p)=>{const d=sr;return A(),ke(d,{"model-value":s.value,label:i.value,items:r.value,disabled:u.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Yf=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=[U("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Gf(e,t){return A(),Z("svg",Jf,Qf)}const zi=ge(Xf,[["render",Gf]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),td={},nd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},od=[U("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function rd(e,t){return A(),Z("svg",nd,od)}const ji=ge(td,[["render",rd]]),sd=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),id={},ld={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ad=[U("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 cd(e,t){return A(),Z("svg",ld,ad)}const Ai=ge(id,[["render",cd]]),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),fd={},dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pd=[U("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 hd(e,t){return A(),Z("svg",dd,pd)}const Bi=ge(fd,[["render",hd]]),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Di=ge($e({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=G(0);return de(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=Xo,i=Jo;return n.value?(A(),Z("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?(A(),ke(s,{key:0})):(A(),ke(i,{key:1}))])):Fe("",!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
|
-
`]]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),vd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bd=[U("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 yd(e,t){return A(),Z("svg",_d,bd)}const Ni=ge(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),Fi=$e({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=rr("tk:dir",!0),o=dt(()=>n.value=!1,1250);return de(()=>t.direction,()=>{n.value=!0,o()}),ot(()=>{o();let r;const s=wi();de(s,i=>{i!=="visible"?r=Date.now():Date.now()-r>3e4&&(n.value=!0,o())})}),(r,s)=>{const i=Ni;return A(),ke(Jt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:se(()=>[F(n)?(A(),Z("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===F(Ye).vertical,"rotate-180":r.direction===F(Ye).rtl}])},[K(i)],2)):Fe("",!0)]),_:1})}}}),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),eo=[];function Cd(e){eo.push(e),Ne(()=>{const t=eo.indexOf(e);t!==-1&&eo.splice(t,1)})}function kd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;eo.forEach(i=>i(r,s))}const Ri=$e({__name:"ZoomWrapper",props:{modelValue:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=G(null),r=G(Math.min(_n,Math.max(vn,n.modelValue))),s=G(!1),i=G(!1),l=G(!1),a=G(!1),u=dt(()=>a.value=!1,150);function p(){a.value||(a.value=!0),u()}de(()=>n.modelValue,w=>ne(w)),ot(()=>{n.touchDevice?(St(window,"touchstart",S),Cd(ie)):(St(o,"mousedown",Y),de(()=>n.horizontal,w=>{w?window.addEventListener("wheel",P,{passive:!1}):window.removeEventListener("wheel",P)},{immediate:!0}))}),Ne(()=>{window.removeEventListener("wheel",P)});let d;Go({onKeyDown:w=>{var we;if(n.busy)return;(we=o.value)==null||we.focus();const O=w.key==="Meta",ee=w.key==="Control";O||ee?(s.value=!0,window.addEventListener("wheel",x,{passive:!1}),d=()=>{s.value=!1,window.removeEventListener("wheel",x),window.removeEventListener("blur",d),d=void 0},window.addEventListener("blur",d)):(w.ctrlKey||w.metaKey)&&w.key==="0"&&ne(1)},onKeyUp:()=>{s.value==!0&&(d==null||d())}});function g(w){l.value!==w&&(l.value=w,w?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function x(w){w.stopPropagation(),w.preventDefault();const O=Math.ceil((r.value+w.deltaY*-.01)*100)/100;ne(O,{x:w.clientX,y:w.clientY})}let I={x:0,y:0},_={x:0,y:0};function Y(w){w.button===0&&(I={x:w.clientX,y:w.clientY},_={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",D),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",D),setTimeout(()=>g(!1))},{once:!0}),w.preventDefault(),w.stopPropagation())}function D(w){g(!0);const O=w.clientX-I.x,ee=w.clientY-I.y,we=o.value;we.scrollLeft=_.x-O,we.scrollTop=_.y-ee}let X=0,B=1,k,L=!1;function S(w){if(!n.busy){if(L=w.touches.length===2,L){g(!0),w.stopPropagation(),w.preventDefault();const O=o.value;X=V(w),B=r.value,k={x:(w.touches[0].clientX+w.touches[1].clientX)/2,y:(w.touches[0].clientY+w.touches[1].clientY)/2,scrollLeft:O.scrollLeft,scrollTop:O.scrollTop,scrollWidth:O.scrollWidth,scrollHeight:O.scrollHeight}}(L||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",m),window.addEventListener("touchend",j,{once:!0}))}}function j(){if(window.removeEventListener("touchmove",m),L){g(!1),L=!1;return}if(!l.value)return;const w=dt(()=>{g(!1),o.value.removeEventListener("scroll",ee)},100),O=setTimeout(w,100);o.value.addEventListener("scroll",ee);function ee(){clearTimeout(O),w()}}function m(w){if(g(!0),L){w.stopPropagation(),w.preventDefault();const ee=V(w)/X;ne(Math.ceil(ee*B*100)/100,k)}}const v=dt(()=>i.value=!1,100);function P(w){n.busy||(i.value||(i.value=!0),v(),w.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=w.deltaY*(n.rtl?-1:1)),w.preventDefault()))}function V(w){return Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY)}let E=0,R;function J(w){w.stopPropagation(),!l.value&&(E++,R&&clearTimeout(R),E===2&&ie(w.clientX,w.clientY),R=setTimeout(()=>{!l.value&&E===1&&t("click",w),R=void 0,E=0},300))}function ie(w,O){if(!E)return;E=0;const ee=r.value===1?2:1;ne(ee,{x:w,y:O})}async function ne(w,O){const ee=o.value,we=Math.min(_n,Math.max(vn,w));if(!ee||r.value===we)return;const Re=(O==null?void 0:O.scrollLeft)??ee.scrollLeft,ze=(O==null?void 0:O.scrollTop)??ee.scrollTop,en=(O==null?void 0:O.scrollHeight)??ee.scrollHeight,Tt=(O==null?void 0:O.scrollWidth)??ee.scrollWidth,ht=(O==null?void 0:O.x)??ee.clientWidth/2,je=n.rtl?ee.clientWidth-ht:ht,gt=(O==null?void 0:O.y)??ee.clientHeight/2;p(),r.value=we,t("update:modelValue",we),await Qe();const et=ee.scrollWidth/Tt,tt=ee.scrollHeight/en;ee.scrollLeft=Re*et+je*(et-1)*(n.rtl?-1:1),ee.scrollTop=ze*tt+gt*(tt-1)}return(w,O)=>(A(),Z("div",{ref_key:"root",ref:o,tabindex:"0",class:ye(["w-full h-full overflow-auto overscroll-contain 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:Ue({"font-size":`${r.value}px`}),onClick:J},[xe(w.$slots,"default")],6))}}),Pd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),Sd=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.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
|
-
|
|
5
|
-
|
|
6
|
-
`]]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"}));async function bn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const s=await bn(e-1,t,n);r(s)},t)})}function to(e=0){return new Promise(t=>setTimeout(t,e))}const Vd=3;function Hd(e){var j;let t=[];const n=G(((j=e.raw.imgs)==null?void 0:j.filter(Boolean))??[]),o=rn({}),r=[],s=new WeakMap;let i=!0,l=0,a,u=n.value.length?qd(n.value):void 0;const p=G(e.raw.isWebtoon),d=G(p.value===void 0||u===void 0),g=dt(k,100),x=dt(_,50);d.value?n.value.length?_():D():Qe(()=>setTimeout(()=>I(u),10)),Ne(()=>{i=!1,r.forEach(m=>URL.revokeObjectURL(m))});async function I(m){d.value=!1,await Qe(),e.onReady(m),de(()=>Math.floor(e.page.value),async(v,P)=>{Ki({contentEl:a,imgEls:t,page:v,smooth:!0}),P??(P=-1),v!==P&&(l=Math.max(0,l-Math.abs(v-P))),x()},{immediate:!0})}function _(){const m=Math.floor(e.page.value),v=P=>{l>Vd||Y(P)};for(let P=m;P<n.value.length;P++)v(P);for(let P=m-1;P>=0;P--)v(P)}async function Y(m){const v=n.value[m];if(!(!i||!v||o[v])){if(!o[v]){o[v]={src:v,isLoading:!0,hasError:!1},l++;const P=await Kd(v);if(o[v]={src:v,size:P,isLoading:!1,hasError:!P},l=Math.max(0,l-1),P&&!p.value&&m>Math.min(1,n.value.length-2)){const V=P.height/P.width>2.5;p.value!==V&&(p.value=V)}d.value&&p.value!==void 0&&u!==void 0&&I(u)}x()}}function D(){let m=!1;const v=new MutationObserver(()=>{a&&g(a)});Ne(async()=>{v.disconnect();const P=e.page.value;await to(),Ki({contentEl:a,imgEls:t,page:P})}),X(P=>{a!==P&&(a=P,v.disconnect(),v.observe(a,{childList:!0,subtree:!0}),m?g(a):(m=!0,k(a)))})}async function X(m){var J;const v=(J=e.spec)==null?void 0:J.content;if(!v)return;const P=await Wd(e.spec);let V=v?await bn(P?100:1,10,()=>document.querySelector(v)):void 0;if(!V)return;m(V);let E=0;const R=async()=>{if(i&&!(V!=null&&V.isConnected)){if(E=0,V=await bn(50,20,()=>{const ie=document.querySelector(v);return ie!=null&&ie.isConnected&&ie!==V?ie:void 0}),!V)return;m(V)}!i||++E>=10||setTimeout(R,200)};setTimeout(R,200)}let B=0;async function k(m){var R;if(!i||!m.isConnected)return;const v=Date.now();B=v;let P,V;const E=(R=e.spec)==null?void 0:R.imgDivs;if(E){if(V=Array.from(m.querySelectorAll(E)),P=await Promise.all(V.map(async(J,ie)=>{const ne=Array.from(J.querySelectorAll("img,canvas"));for(const w of ne){const O=await S({ts:v,el:w,index:ie,total:V.length,onImgLoad:()=>g(m)});if(O)return O}})),!i||!m.isConnected||B!==v)return}else{const J=Array.from(m.querySelectorAll("img,canvas")),ie=await Promise.all(J.map((w,O)=>S({ts:v,el:w,index:O,total:J.length,onImgLoad:()=>g(m)})));if(!i||!m.isConnected||B!==v)return;V=J.filter((w,O)=>ie[O]),P=ie.filter(Boolean);const ne=P.filter((w,O)=>w&&O!==P.lastIndexOf(w));ne.length&&(P=P.filter(w=>w&&!ne.includes(w)))}u??(u=Ui(V)),(P.length!==n.value.length||P.some((J,ie)=>n.value[ie]!==J))&&(t=V,n.value=P,x(),u!==void 0&&d.value&&p.value!==void 0&&n.value.some(Boolean)&&I(u))}const L=Date.now();async function S({ts:m,el:v,index:P,total:V,onImgLoad:E}){const R=s.get(v);let J,ie;if(v.tagName.toLowerCase()==="canvas"){if(R)return R.src;J=await Wi(v)}else{if(v._tkLoadId_!==L&&(v._tkLoadId_=L,v.addEventListener("load",E),Ne(()=>{v._tkLoadId_===L&&delete v._tkLoadId_,v.removeEventListener("load",E)})),ie=Zd(v),!ie)return;if(ie===(R==null?void 0:R.originalSrc))return R.src;if(J=await Ud(v,ie),!i||B!==m)return;if(p.value===void 0&&P>Math.min(1,V-2)){const w=+(v.getAttribute("width")??0),O=+(v.getAttribute("height")??0);w&&O&&(p.value=O/w>2.5)}}return J&&(s.set(v,{src:J,originalSrc:ie}),J.startsWith("blob:")&&r.push(J)),J}return{isLoading:ae(()=>d.value),asyncImgs:ae(()=>n.value.map(m=>m?o[m]:void 0)),isWebtoon:ae(()=>p.value??!1)}}async function Wd(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await bn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const s=i=>i.preventDefault();r.addEventListener("click",s),Ne(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await to(),!0}function Wi(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function Ud(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Wi(o)}function Kd(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function qd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Ui(n)}function Ui(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:Math.floor(-o/n.height*100)/100)}return 0}function Zd(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function Ki({contentEl:e,imgEls:t,page:n,smooth:o}){var l;const r=n>=t.length,s=o?"smooth":"instant";if(r){(l=t[t.length-1])==null||l.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const a=lr(e??document.documentElement),u=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;a==null||a.scrollTo({top:u,behavior:s})})}function lr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?lr(document.documentElement)??e:e:lr(e.parentElement??void 0)}function Yd(e,t){return ae(()=>t.value?qi(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function qi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...qi(e.slice(r.length),t+r.length)]}function Xd(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),rr("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function Jd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ar=40;function Qd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:u}){let p=!1,d=!1,g;const x=ep(X,300),I=dt(()=>d=!0,100);function _(){let m=null;na(async()=>{l.value&&l.value!==m&&(m=l.value,D(e.value),m==null||m.removeEventListener("scroll",x),l.value.addEventListener("scroll",x))});const{width:v,height:P}=af();de(v,Y),de(P,Y),de(n,Y),de(t,Y)}async function Y(){p=!0;const m=e.value;if(await Qe(),B()===m){p=!1;return}D(m)}function D(m,{smooth:v}={smooth:!1}){const P=l.value;if(!P)return;p=!0;const V=async()=>{await Qe(),p=!1,I()},E=Math.floor(m),R=P.querySelector(`[data-index="${E}"],[data-index2="${E}"]`);if(!R){V();return}a(async()=>{d?o.value?(await j(P,R,{smooth:v,page:m}),X()):(P.style.setProperty("scroll-snap-type","none"),await j(P,R,{smooth:v,page:m}),P.style.setProperty("scroll-snap-type",""),X()):o.value?await j(P,R,{smooth:v,page:m}):await j(P,R,{smooth:v,page:m}),await V()})}function X(){if(!l.value||p||!d)return;const m=B();m!==void 0&&m!==e.value&&u(m)}function B(){const m=k();if(!m)return;const v=+m.getAttribute("data-index")||0;return o.value?Math.floor((v+L(m))*100)/100:v}function k(){g??(g=l.value.getRootNode());const m=g.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 v=0;v<m.length;v++){const P=m[v];if(P.hasAttribute("data-index"))return P;if(P===l.value)break}}function L(m){const v=m.getBoundingClientRect();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}let S=!1;async function j(m,v,P){if(S)return;S=!0;const V=r.value?m.scrollTop:m.scrollLeft,E=P.page,R=o.value?E%1:0,J=await bn(30,10,async()=>{await to();const O=r.value?v.offsetTop+R*v.offsetHeight-(o.value?i.value??0:0):s.value?v.offsetLeft-m.clientWidth+v.offsetWidth-R*v.offsetWidth:v.offsetLeft+R*v.offsetWidth;return E>.5&&Math.abs(O)<100?void 0:O})??0;if(!P.smooth){r.value?m.scrollTop=J:m.scrollLeft=J,S=!1;return}const ie=J-V,ne=30;let w=0;return new Promise(O=>{(function ee(){const we=Gd(w,V,ie,ne);r.value?m.scrollTop=we:m.scrollLeft=we,w++,w<=ne?requestAnimationFrame(ee):(O(),S=!1)})()})}return{init:_,goToPage:D}}function Gd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function ep(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function tp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=rr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(m,v)=>m===void 0?v:m===!0||m==="true"}),u=G(!1);let p,d;const g=dt(S,100);let x;const I=dt(()=>{u.value=!0,clearTimeout(x),x=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),_=()=>setTimeout(()=>{u.value=!1,I(),x&&(clearTimeout(x),x=void 0)},30);_(),t||St(window,"mousemove",_);const Y=wi();ot(()=>{de(Y,m=>{a.value&&(m==="visible"?S():d==null||d())}),de(i,()=>D()),de(s,m=>{m||B()})}),Ne(()=>{clearTimeout(x),x=void 0});async function D(m){a.value&&(d==null||d()),m&&(await Qe(),await m()),a.value&&g()}function X(){a.value?B():k()}function B(){a.value&&(a.value=!1,d==null||d(),_())}function k(){!a.value&&s.value&&(a.value=!0,S(),_())}function L(){d==null||d()}function S(){const m=n.value;if(!a.value||!m)return;const v=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,P=j();if(v<=P){B();return}d=()=>{p=Date.now(),d=void 0};const V=Date.now();p=V;const E=.05*i.value,R=o.value?"scrollTop":"scrollLeft";let J=Date.now(),ie=0;const ne=()=>{if(p!==V)return;const w=Date.now(),O=w-J;J=w;const ee=E*O+ie;ee>=1?(ie=ee%1,m[R]+=(ee-ie)*(r.value?-1:1)):ie=ee,setTimeout(ne,1)};ne()}function j(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:a,isIdle:u,toggle:X,play:k,pause:L,resume:S,stop:B,interfere:D,awake:_}}function np(e){var d,g,x,I;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,l=r.chapters??[],a=(l==null?void 0:l.length)>1?l:[];a.length&&(t=a.findIndex(_=>_.slug===e.slug),t===-1&&(t=a.findIndex(_=>_.vol===n&&_.chap===o)),t===-1&&(t=a.findIndex(_=>s.startsWith(`${_.slug}-`)&&s.length-_.slug.length>3)));const u=((d=e.prev)==null?void 0:d.slug)??((g=a[t+1])==null?void 0:g.slug),p=((x=e.next)==null?void 0:x.slug)??((I=a[t-1])==null?void 0:I.slug);return{activeIndex:t,activeLabel:Zi({vol:n,chap:o}),chapters:a.map(_=>({label:Zi(_),path:cr(i,_.slug)})),prevPath:cr(i,u),nextPath:cr(i,p)}}function cr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Zi({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const op={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},rp=$e({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle","finished"],setup(e,{emit:t}){const n=e,o=Qc({touchDevice:n.touchDevice}),r=Xd(n.page),{asyncImgs:s,isLoading:i,isWebtoon:l}=Hd({raw:n.raw,spec:n.spec,page:r,onReady(c){n.isAutoShow===!1?r.value=c:r.value>s.value.length&&(r.value=Math.max(0,s.value.length-1)),R.init()},onError:()=>{}}),{direction:a,style:u,isRTL:p,isDouble:d,isVertical:g,isLongStrip:x,gap:I,speed:_,zoom:Y}=mf({titleName:n.raw.title.name,isWebtoon:l}),D=Yd(s,d),X=ae(()=>r.value>=s.value.length),B=ae(()=>np(n.raw)),k=ae(()=>{var c,h;return p.value?(c=B.value)==null?void 0:c.nextPath:(h=B.value)==null?void 0:h.prevPath}),L=ae(()=>{var c,h;return p.value?(c=B.value)==null?void 0:c.prevPath:(h=B.value)==null?void 0:h.nextPath}),S=G(null),j=G(null),m=G(!1),v=tp({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var c;return(c=S.value)==null?void 0:c.$el}),speed:_,isRTL:p,isVertical:g,isLongStrip:x,onLongIdle:()=>t("longIdle")});de(v.isPlaying,c=>{c||et(!1),t("playingChanged",c)}),de(v.isIdle,c=>{v.isPlaying.value&&et(c)}),de(o,c=>{!c&&v.isIdle.value?v.awake():c&&n.fullScreen&&et()});const P=ae(()=>!n.touchDevice&&v.isIdle.value&&!o.value),V=ae({get(){return Y.value},set(c){v.interfere(()=>{Y.value=c})}});let E=!1;const R=Qd({page:r,style:u,direction:a,isLongStrip:x,isVertical:g,isRTL:p,spaceTop:ae(()=>n.spaceTop),scrollEl:ae(()=>{var c;return(c=S.value)==null?void 0:c.$el}),interferePlayer:c=>v.interfere(c),onChangedPage(c){if(c<0||c>=s.value.length+1)return;r.value=c,t("pageChanged",c),c>=s.value.length&&(et(!1),v.stop()),!E&&c>=s.value.length-2&&(E=!0,t("finished"))}}),J=()=>v.interfere(()=>to(100));au().addListener({onKeyDown:c=>{const h=x.value&&g.value,b=x.value&&!g.value,y=!x.value&&g.value,T=!x.value&&!g.value;switch(c.key){case" ":x.value&&(c.preventDefault(),v.toggle());break;case"ArrowUp":case"PageUp":h?J():y&&(c.preventDefault(),Tt());break;case"ArrowDown":case"PageDown":h?J():y&&(c.preventDefault(),ht());break;case"ArrowLeft":b?J():T?(c.preventDefault(),ze()):g.value&&ee();break;case"ArrowRight":b?J():T?(c.preventDefault(),en()):g.value&&O();break;case"f":tn();break}}}),ot(()=>{St("fullscreenchange",()=>{m.value=!!document.fullscreenElement})});function ne(){x.value||R.goToPage(Math.floor(r.value),{smooth:!0})}function w(){if(v.isPlaying.value){!n.fullScreen||!n.touchDevice?v.stop():v.awake();return}et()}function O(){var c;Re((c=B.value)==null?void 0:c.nextPath)}function ee(){var c;Re((c=B.value)==null?void 0:c.prevPath)}function we(c){var b,y,T;const h=(T=(y=(b=B.value)==null?void 0:b.chapters)==null?void 0:y[c])==null?void 0:T.path;h&&Re(h)}function Re(c){c&&(location.href=c.includes("://")?c:location.origin+c)}function ze(){p.value?ht():Tt()}function en(){p.value?Tt():ht()}function Tt(){var b;const c=D.value,h=X.value?c[c.length-1][0].index:(b=c[je()-1])==null?void 0:b[0].index;h!==void 0?R.goToPage(h):ee()}function ht(){var h;const c=X.value?Math.floor(r.value)+1:((h=D.value[je()+1])==null?void 0:h[0].index)??s.value.length;R.goToPage(c)}function je(){const c=Math.floor(r.value),h=D.value.findIndex(b=>b.some(({index:y})=>y===c));return h===-1?D.value.length-1:h}function gt(){Jd(),v.stop(),t("dispose")}async function et(c){o.value&&!n.fullScreen||t("fullScreenChanged",typeof c=="boolean"?c:!n.fullScreen)}function tt(){n.entryId?f():wn()}function tn(){var c,h;document.fullscreenElement?document.exitFullscreen():(h=(c=j.value)==null?void 0:c.$el)==null||h.requestFullscreen()}function wn(){v.stop(),t("addEntry")}function f(){v.stop(),t("openEntry",n.entryId)}return(c,h)=>{const b=ir,y=Hi,T=Vi,z=Fi,$=Di,M=Bi,C=Jn,H=Ai,N=sr,W=ji,Q=zi,oe=Li,fe=Ei,ue=Ii,me=Oi,Ve=$i,$t=Ti,no=Jo,Rt=Xo,oo=ti,Ee=Gs;return A(),ke(Ee,{ref_key:"root",ref:j,"full-screen":!!c.fullScreen,idle:P.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":c.touchDevice,rtl:F(p),onClick:h[10]||(h[10]=Pt(()=>{},["stop"]))},ls({back:se(()=>[K(C,{href:c.raw.title.url,title:c.raw.title.name},{default:se(()=>[K(M)]),_:1},8,["href","title"])]),exit:se(()=>[K(C,{title:"Hide reader",onClick:gt},{default:se(()=>[K(H)]),_:1})]),"chapter-nav":se(()=>[K(N,{modelValue:B.value.activeIndex,label:B.value.activeLabel,items:B.value.chapters,"onUpdate:modelValue":we},{item:se(({item:pe})=>[wt(lt(pe.label),1)]),_:1},8,["modelValue","label","items"]),k.value||L.value?(A(),Z("div",op,[K(C,{title:F(p)?"Next":"Previous",href:k.value,disabled:!k.value,class:"!rounded-r-none"},{default:se(()=>[K(W)]),_:1},8,["title","href","disabled"]),K(C,{title:F(p)?"Previous":"Next",href:L.value,disabled:!L.value,class:"!rounded-l-none"},{default:se(()=>[K(Q)]),_:1},8,["title","href","disabled"])])):Fe("",!0)]),entry:se(()=>[K(C,{title:c.entryId?"View entry":"Add to Trackkun",onClick:tt},{default:se(()=>[c.entryId?(A(),ke(fe,{key:0})):(A(),ke(ue,{key:1}))]),_:1},8,["title"])]),settings:se(()=>[K($t,{"reader-style":F(u),"onUpdate:readerStyle":h[3]||(h[3]=pe=>be(u)?u.value=pe:null),direction:F(a),"onUpdate:direction":h[4]||(h[4]=pe=>be(a)?a.value=pe:null),gap:F(I),"onUpdate:gap":h[5]||(h[5]=pe=>be(I)?I.value=pe:null),speed:F(_),"onUpdate:speed":h[6]||(h[6]=pe=>be(_)?_.value=pe:null),zoom:V.value,"onUpdate:zoom":h[7]||(h[7]=pe=>V.value=pe),webtoon:F(l),disabled:F(i)},null,8,["reader-style","direction","gap","speed","zoom","webtoon","disabled"])]),"reset-zoom":se(()=>[K(Jt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:se(()=>[K(oo,{zoom:V.value,onClick:h[9]||(h[9]=Pt(()=>V.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:se(()=>[U("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Ue({width:`${F(r)/(F(s).length-1)*100}%`})},null,4)]),default:se(()=>[F(i)||!F(s).length?(A(),ke(b,{key:0})):(A(),Z(Ce,{key:1},[K(T,{ref_key:"body",ref:S,zoom:V.value,"onUpdate:zoom":h[0]||(h[0]=pe=>V.value=pe),pages:F(D),"total-imgs":F(s).length,direction:F(a),gap:F(I),"is-long-strip":F(x),isRTL:F(p),"is-vertical":F(g),"space-top":c.spaceTop,"space-bottom":n.spaceBottom,"touch-device":c.touchDevice,busy:F(o),idle:P.value,"play-controller":F(v),onPrev:Tt,onNext:ht,onClick:w,onDragEnd:ne,onWheelPassive:h[1]||(h[1]=()=>F(v).interfere())},ls({_:2},[!F(i)&&F(s).length?{name:"end",fn:se(()=>[K(y,{"has-next":!!B.value.nextPath,onNext:O,onHide:gt},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),ut(K(z,{direction:F(a)},null,8,["direction"]),[[Xs,!X.value]]),X.value?Fe("",!0):(A(),ke($,{key:0,playing:!!F(v).isPlaying.value},null,8,["playing"]))],64))]),_:2},[F(D).length?{name:"page-nav",fn:se(()=>[K(oe,{"model-value":F(r),disabled:F(i),pages:F(D),"total-imgs":F(s).length,"onUpdate:modelValue":h[2]||(h[2]=pe=>F(R).goToPage(pe))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"0"}:void 0,c.touchDevice?void 0:{name:"full-screen",fn:se(()=>[K(C,{title:`${m.value?"Exit":"Enter"} fullscreen (F)`,onClick:tn},{default:se(()=>[m.value?(A(),ke(me,{key:0})):(A(),ke(Ve,{key:1}))]),_:1},8,["title"])]),key:"1"},F(x)?{name:"play",fn:se(()=>[K(C,{title:`${F(v).isPlaying.value?"Pause":"Play"} (Space)`,disabled:F(i),onClick:h[8]||(h[8]=()=>F(v).toggle())},{default:se(()=>[F(v).isPlaying.value?(A(),ke(no,{key:0})):(A(),ke(Rt,{key:1}))]),_:1},8,["title","disabled"])]),key:"2"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Yi=ge(rp,[["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: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!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:8px;left:8px;right:8px;top:8px}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:12px}.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:4px}.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:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.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:2px}.h-0{height:0}.h-full{height:100%}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.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:-6px}.-translate-y-1{--tw-translate-y:-4px}.-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:6px}.translate-y-1{--tw-translate-y:4px}.-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:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!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:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.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-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.px-3{padding-left:12px;padding-right:12px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-4{padding-bottom:16px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.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-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.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:4px;width:4px}.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-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/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-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}}@media (min-width:640px){.sm\\:inset-3{bottom:12px;left:12px;right:12px;top:12px}.sm\\:w-\\[32rem\\]{width:512px}.sm\\:pb-2{padding-bottom:8px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-0{padding-bottom:0}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
7
|
-
`]]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),ip={},lp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},ap=[U("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 cp(e,t){return A(),Z("svg",lp,ap)}const up=Object.freeze(Object.defineProperty({__proto__:null,default:ge(ip,[["render",cp]])},Symbol.toStringTag,{value:"Module"})),fp=`html.gear-second,html.gear-second *{scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!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}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body iframe,html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;height:0!important;min-height:0!important;min-width:0!important;visibility:hidden!important;width:0!important}html.gear-second body :not(gear-second){opacity:0!important;pointer-events:none!important}html.gear-second body gear-second{bottom:0!important;display:block!important;left:0!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;transform:none!important;visibility:visible!important;z-index:10000000000000000}
|
|
8
|
-
|
|
1
|
+
(function(Ne,ie){typeof exports=="object"&&typeof module<"u"?module.exports=ie():typeof define=="function"&&define.amd?define(ie):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Ne._gearSecond_=ie())})(this,function(){"use strict";var Mp=Object.defineProperty;var Lp=(Ne,ie,We)=>ie in Ne?Mp(Ne,ie,{enumerable:!0,configurable:!0,writable:!0,value:We}):Ne[ie]=We;var nl=(Ne,ie,We)=>(Lp(Ne,typeof ie!="symbol"?ie+"":ie,We),We);function Ne(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 ie={},We=[],Qe=()=>{},ol=()=>!1,rl=/^on[^a-z]/,Tn=e=>rl.test(e),ao=e=>e.startsWith("onUpdate:"),ve=Object.assign,co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sl=Object.prototype.hasOwnProperty,ae=(e,t)=>sl.call(e,t),Z=Array.isArray,Vt=e=>$n(e)==="[object Map]",mr=e=>$n(e)==="[object Set]",te=e=>typeof e=="function",_e=e=>typeof e=="string",uo=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",vr=e=>pe(e)&&te(e.then)&&te(e.catch),_r=Object.prototype.toString,$n=e=>_r.call(e),il=e=>$n(e).slice(8,-1),br=e=>$n(e)==="[object Object]",fo=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sn=Ne(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ll=/-(\w)/g,Re=Pn(e=>e.replace(ll,(t,n)=>n?n.toUpperCase():"")),al=/\B([A-Z])/g,Ue=Pn(e=>e.replace(al,"-$1").toLowerCase()),En=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=Pn(e=>e?`on${En(e)}`:""),on=(e,t)=>!Object.is(e,t),In=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},On=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ho=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let yr;const mo=()=>yr||(yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ee(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?dl(o):Ee(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(pe(e))return e}}const cl=/;(?![^(]*\))/g,ul=/:([^]+)/,fl=/\/\*[^]*?\*\//g;function dl(e){const t={};return e.replace(fl,"").split(cl).forEach(n=>{if(n){const o=n.split(ul);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function xe(e){let t="";if(_e(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const o=xe(e[n]);o&&(t+=o+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const pl=Ne("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function wr(e){return!!e||e===""}const Ke=e=>_e(e)?e:e==null?"":Z(e)||pe(e)&&(e.toString===_r||!te(e.toString))?JSON.stringify(e,xr,2):String(e),xr=(e,t)=>t&&t.__v_isRef?xr(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:mr(t)?{[`Set(${t.size})`]:[...t.values()]}:pe(t)&&!Z(t)&&!br(t)?String(t):t;let Fe;class hl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=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 gl(e,t=Fe){t&&t.active&&t.effects.push(e)}function Cr(){return Fe}function ml(e){Fe&&Fe.cleanups.push(e)}const vo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},kr=e=>(e.w&vt)>0,Tr=e=>(e.n&vt)>0,vl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vt},_l=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];kr(r)&&!Tr(r)?r.delete(e):t[n++]=r,r.w&=~vt,r.n&=~vt}t.length=n}},_o=new WeakMap;let rn=0,vt=1;const bo=30;let Ge;const It=Symbol(""),yo=Symbol("");class wo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,gl(this,o)}run(){if(!this.active)return this.fn();let t=Ge,n=_t;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ge,Ge=this,_t=!0,vt=1<<++rn,rn<=bo?vl(this):$r(this),this.fn()}finally{rn<=bo&&_l(this),vt=1<<--rn,Ge=this.parent,_t=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ge===this?this.deferStop=!0:this.active&&($r(this),this.onStop&&this.onStop(),this.active=!1)}}function $r(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let _t=!0;const Sr=[];function Wt(){Sr.push(_t),_t=!1}function Ut(){const e=Sr.pop();_t=e===void 0?!0:e}function Be(e,t,n){if(_t&&Ge){let o=_o.get(e);o||_o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=vo()),Pr(r)}}function Pr(e,t){let n=!1;rn<=bo?Tr(e)||(e.n|=vt,n=!kr(e)):n=!e.has(Ge),n&&(e.add(Ge),Ge.deps.push(e))}function ct(e,t,n,o,r,s){const i=_o.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&Z(e)){const l=Number(o);i.forEach((c,f)=>{(f==="length"||f>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":Z(e)?fo(n)&&a.push(i.get("length")):(a.push(i.get(It)),Vt(e)&&a.push(i.get(yo)));break;case"delete":Z(e)||(a.push(i.get(It)),Vt(e)&&a.push(i.get(yo)));break;case"set":Vt(e)&&a.push(i.get(It));break}if(a.length===1)a[0]&&xo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);xo(vo(l))}}function xo(e,t){const n=Z(e)?e:[...e];for(const o of n)o.computed&&Er(o);for(const o of n)o.computed||Er(o)}function Er(e,t){(e!==Ge||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const bl=Ne("__proto__,__v_isRef,__isVue"),Ir=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(uo)),yl=Co(),wl=Co(!1,!0),xl=Co(!0),Or=Cl();function Cl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let s=0,i=this.length;s<i;s++)Be(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Wt();const o=ce(this)[t].apply(this,n);return Ut(),o}}),e}function kl(e){const t=ce(this);return Be(t,"has",e),t.hasOwnProperty(e)}function Co(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?Rl:Rr:t?Nr:Dr).get(o))return o;const i=Z(o);if(!e){if(i&&ae(Or,r))return Reflect.get(Or,r,s);if(r==="hasOwnProperty")return kl}const a=Reflect.get(o,r,s);return(uo(r)?Ir.has(r):bl(r))||(e||Be(o,"get",r),t)?a:be(a)?i&&fo(r)?a:a.value:pe(a)?e?$o(a):sn(a):a}}const Tl=Mr(),$l=Mr(!0);function Mr(e=!1){return function(n,o,r,s){let i=n[o];if(Yt(i)&&be(i)&&!be(r))return!1;if(!e&&(!Dn(r)&&!Yt(r)&&(i=ce(i),r=ce(r)),!Z(n)&&be(i)&&!be(r)))return i.value=r,!0;const a=Z(n)&&fo(o)?Number(o)<n.length:ae(n,o),l=Reflect.set(n,o,r,s);return n===ce(s)&&(a?on(r,i)&&ct(n,"set",o,r):ct(n,"add",o,r)),l}}function Sl(e,t){const n=ae(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ct(e,"delete",t,void 0),o}function Pl(e,t){const n=Reflect.has(e,t);return(!uo(t)||!Ir.has(t))&&Be(e,"has",t),n}function El(e){return Be(e,"iterate",Z(e)?"length":It),Reflect.ownKeys(e)}const Lr={get:yl,set:Tl,deleteProperty:Sl,has:Pl,ownKeys:El},Il={get:xl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ol=ve({},Lr,{get:wl,set:$l}),ko=e=>e,Mn=e=>Reflect.getPrototypeOf(e);function Ln(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),s=ce(t);n||(t!==s&&Be(r,"get",t),Be(r,"get",s));const{has:i}=Mn(r),a=o?ko:n?Po:ln;if(i.call(r,t))return a(e.get(t));if(i.call(r,s))return a(e.get(s));e!==r&&e.get(t)}function zn(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(e!==r&&Be(o,"has",e),Be(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function jn(e,t=!1){return e=e.__v_raw,!t&&Be(ce(e),"iterate",It),Reflect.get(e,"size",e)}function zr(e){e=ce(e);const t=ce(this);return Mn(t).has.call(t,e)||(t.add(e),ct(t,"add",e,e)),this}function jr(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=Mn(n);let s=o.call(n,e);s||(e=ce(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?on(t,i)&&ct(n,"set",e,t):ct(n,"add",e,t),this}function Ar(e){const t=ce(this),{has:n,get:o}=Mn(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ct(t,"delete",e,void 0),s}function Br(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&ct(e,"clear",void 0,void 0),n}function An(e,t){return function(o,r){const s=this,i=s.__v_raw,a=ce(i),l=t?ko:e?Po:ln;return!e&&Be(a,"iterate",It),i.forEach((c,f)=>o.call(r,l(c),l(f),s))}}function Bn(e,t,n){return function(...o){const r=this.__v_raw,s=ce(r),i=Vt(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),f=n?ko:t?Po:ln;return!t&&Be(s,"iterate",l?yo:It),{next(){const{value:u,done:g}=c.next();return g?{value:u,done:g}:{value:a?[f(u[0]),f(u[1])]:f(u),done:g}},[Symbol.iterator](){return this}}}}function bt(e){return function(...t){return e==="delete"?!1:this}}function Ml(){const e={get(s){return Ln(this,s)},get size(){return jn(this)},has:zn,add:zr,set:jr,delete:Ar,clear:Br,forEach:An(!1,!1)},t={get(s){return Ln(this,s,!1,!0)},get size(){return jn(this)},has:zn,add:zr,set:jr,delete:Ar,clear:Br,forEach:An(!1,!0)},n={get(s){return Ln(this,s,!0)},get size(){return jn(this,!0)},has(s){return zn.call(this,s,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:An(!0,!1)},o={get(s){return Ln(this,s,!0,!0)},get size(){return jn(this,!0)},has(s){return zn.call(this,s,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:An(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Bn(s,!1,!1),n[s]=Bn(s,!0,!1),t[s]=Bn(s,!1,!0),o[s]=Bn(s,!0,!0)}),[e,n,t,o]}const[Ll,zl,jl,Al]=Ml();function To(e,t){const n=t?e?Al:jl:e?zl:Ll;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ae(n,r)&&r in o?n:o,r,s)}const Bl={get:To(!1,!1)},Dl={get:To(!1,!0)},Nl={get:To(!0,!1)},Dr=new WeakMap,Nr=new WeakMap,Rr=new WeakMap,Rl=new WeakMap;function Fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hl(e){return e.__v_skip||!Object.isExtensible(e)?0:Fl(il(e))}function sn(e){return Yt(e)?e:So(e,!1,Lr,Bl,Dr)}function Vl(e){return So(e,!1,Ol,Dl,Nr)}function $o(e){return So(e,!0,Il,Nl,Rr)}function So(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=Hl(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Kt(e){return Yt(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Dn(e){return!!(e&&e.__v_isShallow)}function Fr(e){return Kt(e)||Yt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Hr(e){return On(e,"__v_skip",!0),e}const ln=e=>pe(e)?sn(e):e,Po=e=>pe(e)?$o(e):e;function Vr(e){_t&&Ge&&(e=ce(e),Pr(e.dep||(e.dep=vo())))}function Wr(e,t){e=ce(e);const n=e.dep;n&&xo(n)}function be(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Ur(e,!1)}function Wl(e){return Ur(e,!0)}function Ur(e,t){return be(e)?e:new Ul(e,t)}class Ul{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:ln(t)}get value(){return Vr(this),this._value}set value(t){const n=this.__v_isShallow||Dn(t)||Yt(t);t=n?t:ce(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Wr(this))}}function F(e){return be(e)?e.value:e}const Kl={get:(e,t,n)=>F(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Kr(e){return Kt(e)?e:new Proxy(e,Kl)}class Yl{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 wo(t,()=>{this._dirty||(this._dirty=!0,Wr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return Vr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Xl(e,t,n=!1){let o,r;const s=te(e);return s?(o=e,r=Qe):(o=e.get,r=e.set),new Yl(o,r,s||!r,n)}function jp(e,...t){}function yt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Nn(s,t,n)}return r}function Ye(e,t,n,o){if(te(e)){const s=yt(e,t,n,o);return s&&vr(s)&&s.catch(i=>{Nn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Ye(e[s],t,n,o));return r}function Nn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,a=n;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){yt(l,null,10,[e,i,a]);return}}ql(e,n,r,o)}function ql(e,t,n,o=!0){console.error(e)}let an=!1,Eo=!1;const Ie=[];let st=0;const Xt=[];let ut=null,Ot=0;const Yr=Promise.resolve();let Io=null;function et(e){const t=Io||Yr;return e?t.then(this?e.bind(this):e):t}function Zl(e){let t=st+1,n=Ie.length;for(;t<n;){const o=t+n>>>1;cn(Ie[o])<e?t=o+1:n=o}return t}function Oo(e){(!Ie.length||!Ie.includes(e,an&&e.allowRecurse?st+1:st))&&(e.id==null?Ie.push(e):Ie.splice(Zl(e.id),0,e),Xr())}function Xr(){!an&&!Eo&&(Eo=!0,Io=Yr.then(Jr))}function Jl(e){const t=Ie.indexOf(e);t>st&&Ie.splice(t,1)}function Ql(e){Z(e)?Xt.push(...e):(!ut||!ut.includes(e,e.allowRecurse?Ot+1:Ot))&&Xt.push(e),Xr()}function qr(e,t=an?st+1:0){for(;t<Ie.length;t++){const n=Ie[t];n&&n.pre&&(Ie.splice(t,1),t--,n())}}function Zr(e){if(Xt.length){const t=[...new Set(Xt)];if(Xt.length=0,ut){ut.push(...t);return}for(ut=t,ut.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<ut.length;Ot++)ut[Ot]();ut=null,Ot=0}}const cn=e=>e.id==null?1/0:e.id,Gl=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Jr(e){Eo=!1,an=!0,Ie.sort(Gl);const t=Qe;try{for(st=0;st<Ie.length;st++){const n=Ie[st];n&&n.active!==!1&&yt(n,null,14)}}finally{st=0,Ie.length=0,Zr(),an=!1,Io=null,(Ie.length||Xt.length)&&Jr()}}function ea(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ie;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:u,trim:g}=o[f]||ie;g&&(r=n.map(x=>_e(x)?x.trim():x)),u&&(r=n.map(ho))}let a,l=o[a=po(t)]||o[a=po(Re(t))];!l&&s&&(l=o[a=po(Ue(t))]),l&&Ye(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ye(c,e,6,r)}}function Qr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},a=!1;if(!te(e)){const l=c=>{const f=Qr(c,t,!0);f&&(a=!0,ve(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(pe(e)&&o.set(e,null),null):(Z(s)?s.forEach(l=>i[l]=null):ve(i,s),pe(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Ue(t))||ae(e,t))}let Se=null,Gr=null;function Fn(e){const t=Se;return Se=e,Gr=e&&e.type.__scopeId||null,t}function ne(e,t=Se,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Es(-1);const s=Fn(t);let i;try{i=e(...r)}finally{Fn(s),o._d&&Es(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Ap(){}function Mo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:f,renderCache:u,data:g,setupState:x,ctx:T,inheritAttrs:y}=e;let W,D;const Y=Fn(e);try{if(n.shapeFlag&4){const v=r||o;W=it(f.call(v,v,u,s,x,g,T)),D=l}else{const v=t;W=it(v.length>1?v(s,{attrs:l,slots:a,emit:c}):v(s,null)),D=t.props?l:ta(l)}}catch(v){hn.length=0,Nn(v,e,1),W=K(Ze)}let N=W;if(D&&y!==!1){const v=Object.keys(D),{shapeFlag:S}=N;v.length&&S&7&&(i&&v.some(ao)&&(D=na(D,i)),N=wt(N,D))}return n.dirs&&(N=wt(N),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),W=N,Fn(Y),W}const ta=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},na=(e,t)=>{const n={};for(const o in e)(!ao(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function oa(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?es(o,i,c):!!i;if(l&8){const f=t.dynamicProps;for(let u=0;u<f.length;u++){const g=f[u];if(i[g]!==o[g]&&!Rn(c,g))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?es(o,i,c):!0:!!i;return!1}function es(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]&&!Rn(n,s))return!0}return!1}function ra({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const sa=e=>e.__isSuspense;function ia(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):Ql(e)}function la(e,t){return Lo(e,null,t)}const Hn={};function ue(e,t,n){return Lo(e,t,n)}function Lo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=ie){var a;const l=Cr()===((a=Te)==null?void 0:a.scope)?Te:null;let c,f=!1,u=!1;if(be(e)?(c=()=>e.value,f=Dn(e)):Kt(e)?(c=()=>e,o=!0):Z(e)?(u=!0,f=e.some(v=>Kt(v)||Dn(v)),c=()=>e.map(v=>{if(be(v))return v.value;if(Kt(v))return Mt(v);if(te(v))return yt(v,l,2)})):te(e)?t?c=()=>yt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return g&&g(),Ye(e,l,3,[x])}:c=Qe,t&&o){const v=c;c=()=>Mt(v())}let g,x=v=>{g=Y.onStop=()=>{yt(v,l,4)}},T;if(mn)if(x=Qe,t?n&&Ye(t,l,3,[c(),u?[]:void 0,x]):c(),r==="sync"){const v=Ga();T=v.__watcherHandles||(v.__watcherHandles=[])}else return Qe;let y=u?new Array(e.length).fill(Hn):Hn;const W=()=>{if(Y.active)if(t){const v=Y.run();(o||f||(u?v.some((S,k)=>on(S,y[k])):on(v,y)))&&(g&&g(),Ye(t,l,3,[v,y===Hn?void 0:u&&y[0]===Hn?[]:y,x]),y=v)}else Y.run()};W.allowRecurse=!!t;let D;r==="sync"?D=W:r==="post"?D=()=>De(W,l&&l.suspense):(W.pre=!0,l&&(W.id=l.uid),D=()=>Oo(W));const Y=new wo(c,D);t?n?W():y=Y.run():r==="post"?De(Y.run.bind(Y),l&&l.suspense):Y.run();const N=()=>{Y.stop(),l&&l.scope&&co(l.scope.effects,Y)};return T&&T.push(N),N}function aa(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?ts(o,e):()=>o[e]:e.bind(o,o);let s;te(t)?s=t:(s=t.handler,n=t);const i=Te;Zt(this);const a=Lo(r,s.bind(o),n);return i?Zt(i):Bt(),a}function ts(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 Mt(e,t){if(!pe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),be(e))Mt(e.value,t);else if(Z(e))for(let n=0;n<e.length;n++)Mt(e[n],t);else if(mr(e)||Vt(e))e.forEach(n=>{Mt(n,t)});else if(br(e))for(const n in e)Mt(e[n],t);return e}function ft(e,t){const n=Se;if(n===null)return e;const o=Gn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,c=ie]=t[s];i&&(te(i)&&(i={mounted:i,updated:i}),i.deep&&Mt(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function Lt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];s&&(a.oldValue=s[i].value);let l=a.dir[o];l&&(Wt(),Ye(l,n,8,[e.el,a,e,t]),Ut())}}function ca(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qe(()=>{e.isMounted=!0}),ls(()=>{e.isUnmounting=!0}),e}const Xe=[Function,Array],ns={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xe,onEnter:Xe,onAfterEnter:Xe,onEnterCancelled:Xe,onBeforeLeave:Xe,onLeave:Xe,onAfterLeave:Xe,onLeaveCancelled:Xe,onBeforeAppear:Xe,onAppear:Xe,onAfterAppear:Xe,onAppearCancelled:Xe},ua={name:"BaseTransition",props:ns,setup(e,{slots:t}){const n=Ms(),o=ca();let r;return()=>{const s=t.default&&ss(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const y of s)if(y.type!==Ze){i=y;break}}const a=ce(e),{mode:l}=a;if(o.isLeaving)return jo(i);const c=rs(i);if(!c)return jo(i);const f=zo(c,a,o,n);Ao(c,f);const u=n.subTree,g=u&&rs(u);let x=!1;const{getTransitionKey:T}=c.type;if(T){const y=T();r===void 0?r=y:y!==r&&(r=y,x=!0)}if(g&&g.type!==Ze&&(!At(c,g)||x)){const y=zo(g,a,o,n);if(Ao(g,y),l==="out-in")return o.isLeaving=!0,y.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(i);l==="in-out"&&c.type!==Ze&&(y.delayLeave=(W,D,Y)=>{const N=os(o,g);N[String(g.key)]=g,W._leaveCb=()=>{D(),W._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=Y})}return i}}};function os(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 zo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:u,onLeave:g,onAfterLeave:x,onLeaveCancelled:T,onBeforeAppear:y,onAppear:W,onAfterAppear:D,onAppearCancelled:Y}=t,N=String(e.key),v=os(n,e),S=(m,b)=>{m&&Ye(m,o,9,b)},k=(m,b)=>{const C=b[1];S(m,b),Z(m)?m.every(U=>U.length<=1)&&C():m.length<=1&&C()},P={mode:s,persisted:i,beforeEnter(m){let b=a;if(!n.isMounted)if(r)b=y||a;else return;m._leaveCb&&m._leaveCb(!0);const C=v[N];C&&At(e,C)&&C.el._leaveCb&&C.el._leaveCb(),S(b,[m])},enter(m){let b=l,C=c,U=f;if(!n.isMounted)if(r)b=W||l,C=D||c,U=Y||f;else return;let O=!1;const R=m._enterCb=Q=>{O||(O=!0,Q?S(U,[m]):S(C,[m]),P.delayedLeave&&P.delayedLeave(),m._enterCb=void 0)};b?k(b,[m,R]):R()},leave(m,b){const C=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return b();S(u,[m]);let U=!1;const O=m._leaveCb=R=>{U||(U=!0,b(),R?S(T,[m]):S(x,[m]),m._leaveCb=void 0,v[C]===e&&delete v[C])};v[C]=e,g?k(g,[m,O]):O()},clone(m){return zo(m,t,n,o)}};return P}function jo(e){if(Vn(e))return e=wt(e),e.children=null,e}function rs(e){return Vn(e)?e.children?e.children[0]:void 0:e}function Ao(e,t){e.shapeFlag&6&&e.component?Ao(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 ss(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===ge?(i.patchFlag&128&&r++,o=o.concat(ss(i.children,t,a))):(t||i.type!==Ze)&&o.push(a!=null?wt(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Ce(e,t){return te(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Vn=e=>e.type.__isKeepAlive;function fa(e,t){is(e,"a",t)}function da(e,t){is(e,"da",t)}function is(e,t,n=Te){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Wn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Vn(r.parent.vnode)&&pa(o,t,n,r),r=r.parent}}function pa(e,t,n,o){const r=Wn(t,e,o,!0);He(()=>{co(o[t],r)},n)}function Wn(e,t,n=Te,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Wt(),Zt(n);const a=Ye(t,n,e,i);return Bt(),Ut(),a});return o?r.unshift(s):r.push(s),s}}const dt=e=>(t,n=Te)=>(!mn||e==="sp")&&Wn(e,(...o)=>t(...o),n),ha=dt("bm"),qe=dt("m"),ga=dt("bu"),ma=dt("u"),ls=dt("bum"),He=dt("um"),va=dt("sp"),_a=dt("rtg"),ba=dt("rtc");function ya(e,t=Te){Wn("ec",e,t)}const as="components",cs=Symbol.for("v-ndc");function wa(e){return _e(e)?xa(as,e,!1)||e:e||cs}function xa(e,t,n=!0,o=!1){const r=Se||Te;if(r){const s=r.type;if(e===as){const a=Za(s,!1);if(a&&(a===t||a===Re(t)||a===En(Re(t))))return s}const i=us(r[e]||s[e],t)||us(r.appContext[e],t);return!i&&o?s:i}}function us(e,t){return e&&(e[t]||e[Re(t)]||e[En(Re(t))])}function fn(e,t,n,o){let r;const s=n&&n[o];if(Z(e)||_e(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;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,a)=>t(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[a]=t(e[c],c,a,s&&s[a])}}else r=[];return n&&(n[o]=r),r}function fs(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Z(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 ke(e,t,n={},o,r){if(Se.isCE||Se.parent&&un(Se.parent)&&Se.parent.isCE)return t!=="default"&&(n.name=t),K("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&ds(s(n)),a=ye(ge,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function ds(e){return e.some(t=>qn(t)?!(t.type===Ze||t.type===ge&&!ds(t.children)):!0)?e:null}const Bo=e=>e?zs(e)?Gn(e)||e.proxy:Bo(e.parent):null,dn=ve(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=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>Ro(e),$forceUpdate:e=>e.f||(e.f=()=>Oo(e.update)),$nextTick:e=>e.n||(e.n=et.bind(e.proxy)),$watch:e=>aa.bind(e)}),Do=(e,t)=>e!==ie&&!e.__isScriptSetup&&ae(e,t),Ca={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(Do(o,t))return i[t]=1,o[t];if(r!==ie&&ae(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ae(c,t))return i[t]=3,s[t];if(n!==ie&&ae(n,t))return i[t]=4,n[t];No&&(i[t]=0)}}const f=dn[t];let u,g;if(f)return t==="$attrs"&&Be(e,"get",t),f(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==ie&&ae(n,t))return i[t]=4,n[t];if(g=l.config.globalProperties,ae(g,t))return g[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return Do(r,t)?(r[t]=n,!0):o!==ie&&ae(o,t)?(o[t]=n,!0):ae(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 a;return!!n[i]||e!==ie&&ae(e,i)||Do(t,i)||(a=s[0])&&ae(a,i)||ae(o,i)||ae(dn,i)||ae(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ps(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let No=!0;function ka(e){const t=Ro(e),n=e.proxy,o=e.ctx;No=!1,t.beforeCreate&&hs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:f,beforeMount:u,mounted:g,beforeUpdate:x,updated:T,activated:y,deactivated:W,beforeDestroy:D,beforeUnmount:Y,destroyed:N,unmounted:v,render:S,renderTracked:k,renderTriggered:P,errorCaptured:m,serverPrefetch:b,expose:C,inheritAttrs:U,components:O,directives:R,filters:Q}=t;if(c&&Ta(c,o,null),i)for(const $ in i){const L=i[$];te(L)&&(o[$]=L.bind(n))}if(r){const $=r.call(n,n);pe($)&&(e.data=sn($))}if(No=!0,s)for(const $ in s){const L=s[$],ee=te(L)?L.bind(n,n):te(L.get)?L.get.bind(n,n):Qe,we=!te(L)&&te(L.set)?L.set.bind(n):Qe,rt=le({get:ee,set:we});Object.defineProperty(o,$,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Oe=>rt.value=Oe})}if(a)for(const $ in a)gs(a[$],o,n,$);if(l){const $=te(l)?l.call(n):l;Reflect.ownKeys($).forEach(L=>{Yn(L,$[L])})}f&&hs(f,e,"c");function re($,L){Z(L)?L.forEach(ee=>$(ee.bind(n))):L&&$(L.bind(n))}if(re(ha,u),re(qe,g),re(ga,x),re(ma,T),re(fa,y),re(da,W),re(ya,m),re(ba,k),re(_a,P),re(ls,Y),re(He,v),re(va,b),Z(C))if(C.length){const $=e.exposed||(e.exposed={});C.forEach(L=>{Object.defineProperty($,L,{get:()=>n[L],set:ee=>n[L]=ee})})}else e.exposed||(e.exposed={});S&&e.render===Qe&&(e.render=S),U!=null&&(e.inheritAttrs=U),O&&(e.components=O),R&&(e.directives=R)}function Ta(e,t,n=Qe){Z(e)&&(e=Fo(e));for(const o in e){const r=e[o];let s;pe(r)?"default"in r?s=zt(r.from||o,r.default,!0):s=zt(r.from||o):s=zt(r),be(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function hs(e,t,n){Ye(Z(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function gs(e,t,n,o){const r=o.includes(".")?ts(n,o):()=>n[o];if(_e(e)){const s=t[e];te(s)&&ue(r,s)}else if(te(e))ue(r,e.bind(n));else if(pe(e))if(Z(e))e.forEach(s=>gs(s,t,n,o));else{const s=te(e.handler)?e.handler.bind(n):t[e.handler];te(s)&&ue(r,s,e)}}function Ro(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Un(l,c,i,!0)),Un(l,t,i)),pe(t)&&s.set(t,l),l}function Un(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Un(e,s,n,!0),r&&r.forEach(i=>Un(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=$a[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const $a={data:ms,props:vs,emits:vs,methods:pn,computed:pn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:pn,directives:pn,watch:Pa,provide:ms,inject:Sa};function ms(e,t){return t?e?function(){return ve(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function Sa(e,t){return pn(Fo(e),Fo(t))}function Fo(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ve(Object.create(null),e,t):t}function vs(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:ve(Object.create(null),ps(e),ps(t??{})):t}function Pa(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Me(e[o],t[o]);return n}function _s(){return{app:null,config:{isNativeTag:ol,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 Ea=0;function Ia(e,t){return function(o,r=null){te(o)||(o=ve({},o)),r!=null&&!pe(r)&&(r=null);const s=_s(),i=new Set;let a=!1;const l=s.app={_uid:Ea++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:ec,get config(){return s.config},set config(c){},use(c,...f){return i.has(c)||(c&&te(c.install)?(i.add(c),c.install(l,...f)):te(c)&&(i.add(c),c(l,...f))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,f){return f?(s.components[c]=f,l):s.components[c]},directive(c,f){return f?(s.directives[c]=f,l):s.directives[c]},mount(c,f,u){if(!a){const g=K(o,r);return g.appContext=s,f&&t?t(g,c):e(g,c,u),a=!0,l._container=c,c.__vue_app__=l,Gn(g.component)||g.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,f){return s.provides[c]=f,l},runWithContext(c){Kn=l;try{return c()}finally{Kn=null}}};return l}}let Kn=null;function Yn(e,t){if(Te){let n=Te.provides;const o=Te.parent&&Te.parent.provides;o===n&&(n=Te.provides=Object.create(o)),n[e]=t}}function zt(e,t,n=!1){const o=Te||Se;if(o||Kn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Kn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&te(t)?t.call(o&&o.proxy):t}}function Oa(e,t,n,o=!1){const r={},s={};On(s,Zn,1),e.propsDefaults=Object.create(null),bs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Vl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ma(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=ce(r),[l]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let u=0;u<f.length;u++){let g=f[u];if(Rn(e.emitsOptions,g))continue;const x=t[g];if(l)if(ae(s,g))x!==s[g]&&(s[g]=x,c=!0);else{const T=Re(g);r[T]=Ho(l,a,T,x,e,!1)}else x!==s[g]&&(s[g]=x,c=!0)}}}else{bs(e,t,r,s)&&(c=!0);let f;for(const u in a)(!t||!ae(t,u)&&((f=Ue(u))===u||!ae(t,f)))&&(l?n&&(n[u]!==void 0||n[f]!==void 0)&&(r[u]=Ho(l,a,u,void 0,e,!0)):delete r[u]);if(s!==a)for(const u in s)(!t||!ae(t,u))&&(delete s[u],c=!0)}c&&ct(e,"set","$attrs")}function bs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Sn(l))continue;const c=t[l];let f;r&&ae(r,f=Re(l))?!s||!s.includes(f)?n[f]=c:(a||(a={}))[f]=c:Rn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,i=!0)}if(s){const l=ce(n),c=a||ie;for(let f=0;f<s.length;f++){const u=s[f];n[u]=Ho(r,l,u,c[u],e,!ae(c,u))}}return i}function Ho(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=ae(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&te(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Zt(r),o=c[n]=l.call(null,t),Bt())}else o=l}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function ys(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},a=[];let l=!1;if(!te(e)){const f=u=>{l=!0;const[g,x]=ys(u,t,!0);ve(i,g),x&&a.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!s&&!l)return pe(e)&&o.set(e,We),We;if(Z(s))for(let f=0;f<s.length;f++){const u=Re(s[f]);ws(u)&&(i[u]=ie)}else if(s)for(const f in s){const u=Re(f);if(ws(u)){const g=s[f],x=i[u]=Z(g)||te(g)?{type:g}:ve({},g);if(x){const T=ks(Boolean,x.type),y=ks(String,x.type);x[0]=T>-1,x[1]=y<0||T<y,(T>-1||ae(x,"default"))&&a.push(u)}}}const c=[i,a];return pe(e)&&o.set(e,c),c}function ws(e){return e[0]!=="$"}function xs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Cs(e,t){return xs(e)===xs(t)}function ks(e,t){return Z(t)?t.findIndex(n=>Cs(n,e)):te(t)&&Cs(t,e)?0:-1}const Ts=e=>e[0]==="_"||e==="$stable",Vo=e=>Z(e)?e.map(it):[it(e)],La=(e,t,n)=>{if(t._n)return t;const o=ne((...r)=>Vo(t(...r)),n);return o._c=!1,o},$s=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ts(r))continue;const s=e[r];if(te(s))t[r]=La(r,s,o);else if(s!=null){const i=Vo(s);t[r]=()=>i}}},Ss=(e,t)=>{const n=Vo(t);e.slots.default=()=>n},za=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),On(t,"_",n)):$s(t,e.slots={})}else e.slots={},t&&Ss(e,t);On(e.slots,Zn,1)},ja=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=ie;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(ve(r,t),!n&&a===1&&delete r._):(s=!t.$stable,$s(t,r)),i=t}else t&&(Ss(e,t),i={default:1});if(s)for(const a in r)!Ts(a)&&!(a in i)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(Z(e)){e.forEach((g,x)=>Wo(g,t&&(Z(t)?t[x]:t),n,o,r));return}if(un(o)&&!r)return;const s=o.shapeFlag&4?Gn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:a,r:l}=e,c=t&&t.r,f=a.refs===ie?a.refs={}:a.refs,u=a.setupState;if(c!=null&&c!==l&&(_e(c)?(f[c]=null,ae(u,c)&&(u[c]=null)):be(c)&&(c.value=null)),te(l))yt(l,a,12,[i,f]);else{const g=_e(l),x=be(l);if(g||x){const T=()=>{if(e.f){const y=g?ae(u,l)?u[l]:f[l]:l.value;r?Z(y)&&co(y,s):Z(y)?y.includes(s)||y.push(s):g?(f[l]=[s],ae(u,l)&&(u[l]=f[l])):(l.value=[s],e.k&&(f[e.k]=l.value))}else g?(f[l]=i,ae(u,l)&&(u[l]=i)):x&&(l.value=i,e.k&&(f[e.k]=i))};i?(T.id=-1,De(T,n)):T()}}}const De=ia;function Aa(e){return Ba(e)}function Ba(e,t){const n=mo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:f,parentNode:u,nextSibling:g,setScopeId:x=Qe,insertStaticContent:T}=e,y=(d,h,w,p=null,_=null,I=null,z=!1,M=null,j=!!h.dynamicChildren)=>{if(d===h)return;d&&!At(d,h)&&(p=mt(d),Oe(d,_,I,!0),d=null),h.patchFlag===-2&&(j=!1,h.dynamicChildren=null);const{type:E,ref:X,shapeFlag:B}=h;switch(E){case Xn:W(d,h,w,p);break;case Ze:D(d,h,w,p);break;case Uo:d==null&&Y(h,w,p,z);break;case ge:O(d,h,w,p,_,I,z,M,j);break;default:B&1?S(d,h,w,p,_,I,z,M,j):B&6?R(d,h,w,p,_,I,z,M,j):(B&64||B&128)&&E.process(d,h,w,p,_,I,z,M,j,ze)}X!=null&&_&&Wo(X,d&&d.ref,I,h||d,!h)},W=(d,h,w,p)=>{if(d==null)o(h.el=a(h.children),w,p);else{const _=h.el=d.el;h.children!==d.children&&c(_,h.children)}},D=(d,h,w,p)=>{d==null?o(h.el=l(h.children||""),w,p):h.el=d.el},Y=(d,h,w,p)=>{[d.el,d.anchor]=T(d.children,h,w,p,d.el,d.anchor)},N=({el:d,anchor:h},w,p)=>{let _;for(;d&&d!==h;)_=g(d),o(d,w,p),d=_;o(h,w,p)},v=({el:d,anchor:h})=>{let w;for(;d&&d!==h;)w=g(d),r(d),d=w;r(h)},S=(d,h,w,p,_,I,z,M,j)=>{z=z||h.type==="svg",d==null?k(h,w,p,_,I,z,M,j):b(d,h,_,I,z,M,j)},k=(d,h,w,p,_,I,z,M)=>{let j,E;const{type:X,props:B,shapeFlag:q,transition:G,dirs:se}=d;if(j=d.el=i(d.type,I,B&&B.is,B),q&8?f(j,d.children):q&16&&m(d.children,j,null,p,_,I&&X!=="foreignObject",z,M),se&&Lt(d,null,p,"created"),P(j,d,d.scopeId,z,p),B){for(const fe in B)fe!=="value"&&!Sn(fe)&&s(j,fe,null,B[fe],I,d.children,p,_,Pe);"value"in B&&s(j,"value",null,B.value),(E=B.onVnodeBeforeMount)&<(E,p,d)}se&&Lt(d,null,p,"beforeMount");const de=(!_||_&&!_.pendingBranch)&&G&&!G.persisted;de&&G.beforeEnter(j),o(j,h,w),((E=B&&B.onVnodeMounted)||de||se)&&De(()=>{E&<(E,p,d),de&&G.enter(j),se&&Lt(d,null,p,"mounted")},_)},P=(d,h,w,p,_)=>{if(w&&x(d,w),p)for(let I=0;I<p.length;I++)x(d,p[I]);if(_){let I=_.subTree;if(h===I){const z=_.vnode;P(d,z,z.scopeId,z.slotScopeIds,_.parent)}}},m=(d,h,w,p,_,I,z,M,j=0)=>{for(let E=j;E<d.length;E++){const X=d[E]=M?Ct(d[E]):it(d[E]);y(null,X,h,w,p,_,I,z,M)}},b=(d,h,w,p,_,I,z)=>{const M=h.el=d.el;let{patchFlag:j,dynamicChildren:E,dirs:X}=h;j|=d.patchFlag&16;const B=d.props||ie,q=h.props||ie;let G;w&&jt(w,!1),(G=q.onVnodeBeforeUpdate)&<(G,w,h,d),X&&Lt(h,d,w,"beforeUpdate"),w&&jt(w,!0);const se=_&&h.type!=="foreignObject";if(E?C(d.dynamicChildren,E,M,w,p,se,I):z||L(d,h,M,null,w,p,se,I,!1),j>0){if(j&16)U(M,h,B,q,w,p,_);else if(j&2&&B.class!==q.class&&s(M,"class",null,q.class,_),j&4&&s(M,"style",B.style,q.style,_),j&8){const de=h.dynamicProps;for(let fe=0;fe<de.length;fe++){const me=de[fe],Ve=B[me],Et=q[me];(Et!==Ve||me==="value")&&s(M,me,Ve,Et,_,d.children,w,p,Pe)}}j&1&&d.children!==h.children&&f(M,h.children)}else!z&&E==null&&U(M,h,B,q,w,p,_);((G=q.onVnodeUpdated)||X)&&De(()=>{G&<(G,w,h,d),X&&Lt(h,d,w,"updated")},p)},C=(d,h,w,p,_,I,z)=>{for(let M=0;M<h.length;M++){const j=d[M],E=h[M],X=j.el&&(j.type===ge||!At(j,E)||j.shapeFlag&70)?u(j.el):w;y(j,E,X,null,p,_,I,z,!0)}},U=(d,h,w,p,_,I,z)=>{if(w!==p){if(w!==ie)for(const M in w)!Sn(M)&&!(M in p)&&s(d,M,w[M],null,z,h.children,_,I,Pe);for(const M in p){if(Sn(M))continue;const j=p[M],E=w[M];j!==E&&M!=="value"&&s(d,M,E,j,z,h.children,_,I,Pe)}"value"in p&&s(d,"value",w.value,p.value)}},O=(d,h,w,p,_,I,z,M,j)=>{const E=h.el=d?d.el:a(""),X=h.anchor=d?d.anchor:a("");let{patchFlag:B,dynamicChildren:q,slotScopeIds:G}=h;G&&(M=M?M.concat(G):G),d==null?(o(E,w,p),o(X,w,p),m(h.children,w,X,_,I,z,M,j)):B>0&&B&64&&q&&d.dynamicChildren?(C(d.dynamicChildren,q,w,_,I,z,M),(h.key!=null||_&&h===_.subTree)&&Ps(d,h,!0)):L(d,h,w,X,_,I,z,M,j)},R=(d,h,w,p,_,I,z,M,j)=>{h.slotScopeIds=M,d==null?h.shapeFlag&512?_.ctx.activate(h,w,p,z,j):Q(h,w,p,_,I,z,j):oe(d,h,j)},Q=(d,h,w,p,_,I,z)=>{const M=d.component=Ua(d,p,_);if(Vn(d)&&(M.ctx.renderer=ze),Ka(M),M.asyncDep){if(_&&_.registerDep(M,re),!d.el){const j=M.subTree=K(Ze);D(null,j,h,w)}return}re(M,d,h,w,_,I,z)},oe=(d,h,w)=>{const p=h.component=d.component;if(oa(d,h,w))if(p.asyncDep&&!p.asyncResolved){$(p,h,w);return}else p.next=h,Jl(p.update),p.update();else h.el=d.el,p.vnode=h},re=(d,h,w,p,_,I,z)=>{const M=()=>{if(d.isMounted){let{next:X,bu:B,u:q,parent:G,vnode:se}=d,de=X,fe;jt(d,!1),X?(X.el=se.el,$(d,X,z)):X=se,B&&In(B),(fe=X.props&&X.props.onVnodeBeforeUpdate)&<(fe,G,X,se),jt(d,!0);const me=Mo(d),Ve=d.subTree;d.subTree=me,y(Ve,me,u(Ve.el),mt(Ve),d,_,I),X.el=me.el,de===null&&ra(d,me.el),q&&De(q,_),(fe=X.props&&X.props.onVnodeUpdated)&&De(()=>lt(fe,G,X,se),_)}else{let X;const{el:B,props:q}=h,{bm:G,m:se,parent:de}=d,fe=un(h);if(jt(d,!1),G&&In(G),!fe&&(X=q&&q.onVnodeBeforeMount)&<(X,de,h),jt(d,!0),B&&nn){const me=()=>{d.subTree=Mo(d),nn(B,d.subTree,d,_,null)};fe?h.type.__asyncLoader().then(()=>!d.isUnmounted&&me()):me()}else{const me=d.subTree=Mo(d);y(null,me,w,p,d,_,I),h.el=me.el}if(se&&De(se,_),!fe&&(X=q&&q.onVnodeMounted)){const me=h;De(()=>lt(X,de,me),_)}(h.shapeFlag&256||de&&un(de.vnode)&&de.vnode.shapeFlag&256)&&d.a&&De(d.a,_),d.isMounted=!0,h=w=p=null}},j=d.effect=new wo(M,()=>Oo(E),d.scope),E=d.update=()=>j.run();E.id=d.uid,jt(d,!0),E()},$=(d,h,w)=>{h.component=d;const p=d.vnode.props;d.vnode=h,d.next=null,Ma(d,h.props,p,w),ja(d,h.children,w),Wt(),qr(),Ut()},L=(d,h,w,p,_,I,z,M,j=!1)=>{const E=d&&d.children,X=d?d.shapeFlag:0,B=h.children,{patchFlag:q,shapeFlag:G}=h;if(q>0){if(q&128){we(E,B,w,p,_,I,z,M,j);return}else if(q&256){ee(E,B,w,p,_,I,z,M,j);return}}G&8?(X&16&&Pe(E,_,I),B!==E&&f(w,B)):X&16?G&16?we(E,B,w,p,_,I,z,M,j):Pe(E,_,I,!0):(X&8&&f(w,""),G&16&&m(B,w,p,_,I,z,M,j))},ee=(d,h,w,p,_,I,z,M,j)=>{d=d||We,h=h||We;const E=d.length,X=h.length,B=Math.min(E,X);let q;for(q=0;q<B;q++){const G=h[q]=j?Ct(h[q]):it(h[q]);y(d[q],G,w,null,_,I,z,M,j)}E>X?Pe(d,_,I,!0,!1,B):m(h,w,p,_,I,z,M,j,B)},we=(d,h,w,p,_,I,z,M,j)=>{let E=0;const X=h.length;let B=d.length-1,q=X-1;for(;E<=B&&E<=q;){const G=d[E],se=h[E]=j?Ct(h[E]):it(h[E]);if(At(G,se))y(G,se,w,null,_,I,z,M,j);else break;E++}for(;E<=B&&E<=q;){const G=d[B],se=h[q]=j?Ct(h[q]):it(h[q]);if(At(G,se))y(G,se,w,null,_,I,z,M,j);else break;B--,q--}if(E>B){if(E<=q){const G=q+1,se=G<X?h[G].el:p;for(;E<=q;)y(null,h[E]=j?Ct(h[E]):it(h[E]),w,se,_,I,z,M,j),E++}}else if(E>q)for(;E<=B;)Oe(d[E],_,I,!0),E++;else{const G=E,se=E,de=new Map;for(E=se;E<=q;E++){const je=h[E]=j?Ct(h[E]):it(h[E]);je.key!=null&&de.set(je.key,E)}let fe,me=0;const Ve=q-se+1;let Et=!1,so=0;const Ht=new Array(Ve);for(E=0;E<Ve;E++)Ht[E]=0;for(E=G;E<=B;E++){const je=d[E];if(me>=Ve){Oe(je,_,I,!0);continue}let Je;if(je.key!=null)Je=de.get(je.key);else for(fe=se;fe<=q;fe++)if(Ht[fe-se]===0&&At(je,h[fe])){Je=fe;break}Je===void 0?Oe(je,_,I,!0):(Ht[Je-se]=E+1,Je>=so?so=Je:Et=!0,y(je,h[Je],w,null,_,I,z,M,j),me++)}const io=Et?Da(Ht):We;for(fe=io.length-1,E=Ve-1;E>=0;E--){const je=se+E,Je=h[je],lo=je+1<X?h[je+1].el:p;Ht[E]===0?y(null,Je,w,lo,_,I,z,M,j):Et&&(fe<0||E!==io[fe]?rt(Je,w,lo,2):fe--)}}},rt=(d,h,w,p,_=null)=>{const{el:I,type:z,transition:M,children:j,shapeFlag:E}=d;if(E&6){rt(d.component.subTree,h,w,p);return}if(E&128){d.suspense.move(h,w,p);return}if(E&64){z.move(d,h,w,ze);return}if(z===ge){o(I,h,w);for(let B=0;B<j.length;B++)rt(j[B],h,w,p);o(d.anchor,h,w);return}if(z===Uo){N(d,h,w);return}if(p!==2&&E&1&&M)if(p===0)M.beforeEnter(I),o(I,h,w),De(()=>M.enter(I),_);else{const{leave:B,delayLeave:q,afterLeave:G}=M,se=()=>o(I,h,w),de=()=>{B(I,()=>{se(),G&&G()})};q?q(I,se,de):de()}else o(I,h,w)},Oe=(d,h,w,p=!1,_=!1)=>{const{type:I,props:z,ref:M,children:j,dynamicChildren:E,shapeFlag:X,patchFlag:B,dirs:q}=d;if(M!=null&&Wo(M,null,w,d,!0),X&256){h.ctx.deactivate(d);return}const G=X&1&&q,se=!un(d);let de;if(se&&(de=z&&z.onVnodeBeforeUnmount)&<(de,h,d),X&6)gt(d.component,w,p);else{if(X&128){d.suspense.unmount(w,p);return}G&&Lt(d,null,h,"beforeUnmount"),X&64?d.type.remove(d,h,w,_,ze,p):E&&(I!==ge||B>0&&B&64)?Pe(E,h,w,!1,!0):(I===ge&&B&384||!_&&X&16)&&Pe(j,h,w),p&&en(d)}(se&&(de=z&&z.onVnodeUnmounted)||G)&&De(()=>{de&<(de,h,d),G&&Lt(d,null,h,"unmounted")},w)},en=d=>{const{type:h,el:w,anchor:p,transition:_}=d;if(h===ge){kn(w,p);return}if(h===Uo){v(d);return}const I=()=>{r(w),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(d.shapeFlag&1&&_&&!_.persisted){const{leave:z,delayLeave:M}=_,j=()=>z(w,I);M?M(d.el,I,j):j()}else I()},kn=(d,h)=>{let w;for(;d!==h;)w=g(d),r(d),d=w;r(h)},gt=(d,h,w)=>{const{bum:p,scope:_,update:I,subTree:z,um:M}=d;p&&In(p),_.stop(),I&&(I.active=!1,Oe(z,d,h,w)),M&&De(M,h),De(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Pe=(d,h,w,p=!1,_=!1,I=0)=>{for(let z=I;z<d.length;z++)Oe(d[z],h,w,p,_)},mt=d=>d.shapeFlag&6?mt(d.component.subTree):d.shapeFlag&128?d.suspense.next():g(d.anchor||d.el),Pt=(d,h,w)=>{d==null?h._vnode&&Oe(h._vnode,null,null,!0):y(h._vnode||null,d,h,null,null,null,w),qr(),Zr(),h._vnode=d},ze={p:y,um:Oe,m:rt,r:en,mt:Q,mc:m,pc:L,pbc:C,n:mt,o:e};let tn,nn;return t&&([tn,nn]=t(ze)),{render:Pt,hydrate:tn,createApp:Ia(Pt,tn)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ps(e,t,n=!1){const o=e.children,r=t.children;if(Z(o)&&Z(r))for(let s=0;s<o.length;s++){const i=o[s];let a=r[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[s]=Ct(r[s]),a.el=i.el),n||Ps(i,a)),a.type===Xn&&(a.el=i.el)}}function Da(e){const t=e.slice(),n=[0];let o,r,s,i,a;const l=e.length;for(o=0;o<l;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;)a=s+i>>1,e[n[a]]<c?s=a+1:i=a;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 Na=e=>e.__isTeleport,ge=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let tt=null;function A(e=!1){hn.push(tt=e?null:[])}function Ra(){hn.pop(),tt=hn[hn.length-1]||null}let gn=1;function Es(e){gn+=e}function Is(e){return e.dynamicChildren=gn>0?tt||We:null,Ra(),gn>0&&tt&&tt.push(e),e}function V(e,t,n,o,r,s){return Is(H(e,t,n,o,r,s,!0))}function ye(e,t,n,o,r){return Is(K(e,t,n,o,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function At(e,t){return e.type===t.type&&e.key===t.key}const Zn="__vInternal",Os=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||be(e)||te(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function H(e,t=null,n=null,o=0,r=null,s=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&Jn(t),scopeId:Gr,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:Se};return a?(Ko(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),gn>0&&!i&&tt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&tt.push(l),l}const K=Fa;function Fa(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===cs)&&(e=Ze),qn(e)){const a=wt(e,t,!0);return n&&Ko(a,n),gn>0&&!s&&tt&&(a.shapeFlag&6?tt[tt.indexOf(e)]=a:tt.push(a)),a.patchFlag|=-2,a}if(Ja(e)&&(e=e.__vccOpts),t){t=Ha(t);let{class:a,style:l}=t;a&&!_e(a)&&(t.class=xe(a)),pe(l)&&(Fr(l)&&!Z(l)&&(l=ve({},l)),t.style=Ee(l))}const i=_e(e)?1:sa(e)?128:Na(e)?64:pe(e)?4:te(e)?2:0;return H(e,t,n,o,r,i,s,!0)}function Ha(e){return e?Fr(e)||Zn in e?ve({},e):e:null}function wt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,a=t?Qn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Os(a),ref:t&&t.ref?n&&r?Z(r)?r.concat(Jn(t)):[r,Jn(t)]:Jn(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!==ge?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&&wt(e.ssContent),ssFallback:e.ssFallback&&wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function xt(e=" ",t=0){return K(Xn,null,e,t)}function Le(e="",t=!1){return t?(A(),ye(Ze,null,e)):K(Ze,null,e)}function it(e){return e==null||typeof e=="boolean"?K(Ze):Z(e)?K(ge,null,e.slice()):typeof e=="object"?Ct(e):K(Xn,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:wt(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Z(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Zn in t)?t._ctx=Se:r===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),o&64?(n=16,t=[xt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qn(...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=xe([t.class,o.class]));else if(r==="style")t.style=Ee([t.style,o.style]);else if(Tn(r)){const s=t[r],i=o[r];i&&s!==i&&!(Z(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function lt(e,t,n,o=null){Ye(e,t,7,[n,o])}const Va=_s();let Wa=0;function Ua(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Va,s={uid:Wa++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new hl(!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:ys(o,r),emitsOptions:Qr(o,r),emit:null,emitted:null,propsDefaults:ie,inheritAttrs:o.inheritAttrs,ctx:ie,data:ie,props:ie,attrs:ie,slots:ie,refs:ie,setupState:ie,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=ea.bind(null,s),e.ce&&e.ce(s),s}let Te=null;const Ms=()=>Te||Se;let Yo,qt,Ls="__VUE_INSTANCE_SETTERS__";(qt=mo()[Ls])||(qt=mo()[Ls]=[]),qt.push(e=>Te=e),Yo=e=>{qt.length>1?qt.forEach(t=>t(e)):qt[0](e)};const Zt=e=>{Yo(e),e.scope.on()},Bt=()=>{Te&&Te.scope.off(),Yo(null)};function zs(e){return e.vnode.shapeFlag&4}let mn=!1;function Ka(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=zs(e);Oa(e,n,r,t),za(e,o);const s=r?Ya(e,t):void 0;return mn=!1,s}function Ya(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Hr(new Proxy(e.ctx,Ca));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?qa(e):null;Zt(e),Wt();const s=yt(o,e,0,[e.props,r]);if(Ut(),Bt(),vr(s)){if(s.then(Bt,Bt),t)return s.then(i=>{js(e,i,t)}).catch(i=>{Nn(i,e,0)});e.asyncDep=s}else js(e,s,t)}else Bs(e,t)}function js(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Kr(t)),Bs(e,n)}let As;function Bs(e,t,n){const o=e.type;if(!e.render){if(!t&&As&&!o.render){const r=o.template||Ro(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=ve(ve({isCustomElement:s,delimiters:a},i),l);o.render=As(r,c)}}e.render=o.render||Qe}Zt(e),Wt(),ka(e),Ut(),Bt()}function Xa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(e,"get","$attrs"),t[n]}}))}function qa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Xa(e)},slots:e.slots,emit:e.emit,expose:t}}function Gn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Kr(Hr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}}))}function Za(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Ja(e){return te(e)&&"__vccOpts"in e}const le=(e,t)=>Xl(e,t,mn);function Ds(e,t,n){const o=arguments.length;return o===2?pe(t)&&!Z(t)?qn(t)?K(e,null,[t]):K(e,t):K(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),K(e,t,n))}const Qa=Symbol.for("v-scx"),Ga=()=>zt(Qa),ec="3.3.4",tc="http://www.w3.org/2000/svg",Dt=typeof document<"u"?document:null,Ns=Dt&&Dt.createElement("template"),nc={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?Dt.createElementNS(tc,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.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{Ns.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ns.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function oc(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 rc(e,t,n){const o=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Xo(o,s,"");for(const s in n)Xo(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 Rs=/\s*!important$/;function Xo(e,t,n){if(Z(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=sc(e,t);Rs.test(n)?e.setProperty(Ue(o),n.replace(Rs,""),"important"):e[o]=n}}const Fs=["Webkit","Moz","ms"],qo={};function sc(e,t){const n=qo[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return qo[t]=o;o=En(o);for(let r=0;r<Fs.length;r++){const s=Fs[r]+o;if(s in e)return qo[t]=s}return t}const Hs="http://www.w3.org/1999/xlink";function ic(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Hs,t.slice(6,t.length)):e.setAttributeNS(Hs,t,n);else{const s=pl(t);n==null||s&&!wr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function lc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,f=n??"";c!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=wr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Jt(e,t,n,o){e.addEventListener(t,n,o)}function ac(e,t,n,o){e.removeEventListener(t,n,o)}function cc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[a,l]=uc(t);if(o){const c=s[t]=pc(o,r);Jt(e,a,c,l)}else i&&(ac(e,a,i,l),s[t]=void 0)}}const Vs=/(?:Once|Passive|Capture)$/;function uc(e){let t;if(Vs.test(e)){t={};let o;for(;o=e.match(Vs);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let Zo=0;const fc=Promise.resolve(),dc=()=>Zo||(fc.then(()=>Zo=0),Zo=Date.now());function pc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ye(hc(o,n.value),t,5,[o])};return n.value=e,n.attached=dc(),n}function hc(e,t){if(Z(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 Ws=/^on[a-z]/,gc=(e,t,n,o,r=!1,s,i,a,l)=>{t==="class"?oc(e,o,r):t==="style"?rc(e,n,o):Tn(t)?ao(t)||cc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mc(e,t,o,r))?lc(e,t,o,s,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ic(e,t,o,r))};function mc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ws.test(t)&&te(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ws.test(t)&&_e(n)?!1:t in e}function vc(e,t){const n=Ce(e);class o extends Jo{constructor(s){super(n,s,t)}}return o.def=n,o}const _c=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends _c{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,et(()=>{this._connected||(ni(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 a;if(s&&!Z(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=go(this._props[l])),(a||(a=Object.create(null)))[Re(l)]=!0)}this._numberProps=a,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=Z(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(Re))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Re(t);this._numberProps&&this._numberProps[o]&&(n=go(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(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){ni(this._createVNode(),this.shadowRoot)}_createVNode(){const t=K(this._def,ve({},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),Ue(s)!==s&&o(Ue(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Jo){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 kt="transition",vn="animation",Qt=(e,{slots:t})=>Ds(ua,bc(e),t);Qt.displayName="Transition";const Us={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=ve({},ns,Us);const Nt=(e,t=[])=>{Z(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ks=e=>e?Z(e)?e.some(t=>t.length>1):e.length>1:!1;function bc(e){const t={};for(const O in e)O in Us||(t[O]=e[O]);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:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:f=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,T=yc(r),y=T&&T[0],W=T&&T[1],{onBeforeEnter:D,onEnter:Y,onEnterCancelled:N,onLeave:v,onLeaveCancelled:S,onBeforeAppear:k=D,onAppear:P=Y,onAppearCancelled:m=N}=t,b=(O,R,Q)=>{Rt(O,R?f:a),Rt(O,R?c:i),Q&&Q()},C=(O,R)=>{O._isLeaving=!1,Rt(O,u),Rt(O,x),Rt(O,g),R&&R()},U=O=>(R,Q)=>{const oe=O?P:Y,re=()=>b(R,O,Q);Nt(oe,[R,re]),Ys(()=>{Rt(R,O?l:s),Tt(R,O?f:a),Ks(oe)||Xs(R,o,y,re)})};return ve(t,{onBeforeEnter(O){Nt(D,[O]),Tt(O,s),Tt(O,i)},onBeforeAppear(O){Nt(k,[O]),Tt(O,l),Tt(O,c)},onEnter:U(!1),onAppear:U(!0),onLeave(O,R){O._isLeaving=!0;const Q=()=>C(O,R);Tt(O,u),Cc(),Tt(O,g),Ys(()=>{O._isLeaving&&(Rt(O,u),Tt(O,x),Ks(v)||Xs(O,o,W,Q))}),Nt(v,[O,Q])},onEnterCancelled(O){b(O,!1),Nt(N,[O])},onAppearCancelled(O){b(O,!0),Nt(m,[O])},onLeaveCancelled(O){C(O),Nt(S,[O])}})}function yc(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 go(e)}function Tt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Rt(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 Ys(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function Xs(e,t,n,o){const r=e._endId=++wc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=xc(e,t);if(!i)return o();const c=i+"end";let f=0;const u=()=>{e.removeEventListener(c,g),s()},g=x=>{x.target===e&&++f>=l&&u()};setTimeout(()=>{f<l&&u()},a+1),e.addEventListener(c,g)}function xc(e,t){const n=window.getComputedStyle(e),o=T=>(n[T]||"").split(", "),r=o(`${kt}Delay`),s=o(`${kt}Duration`),i=qs(r,s),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=qs(a,l);let f=null,u=0,g=0;t===kt?i>0&&(f=kt,u=i,g=s.length):t===vn?c>0&&(f=vn,u=c,g=l.length):(u=Math.max(i,c),f=u>0?i>c?kt:vn:null,g=f?f===kt?s.length:l.length:0);const x=f===kt&&/\b(transform|all)(,|$)/.test(o(`${kt}Property`).toString());return{type:f,timeout:u,propCount:g,hasTransform:x}}function qs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Zs(n)+Zs(e[o])))}function Zs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Cc(){return document.body.offsetHeight}const Js=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>In(t,n):t};function kc(e){e.target.composing=!0}function Qs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Tc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Js(r);const s=o||r.props&&r.props.type==="number";Jt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ho(a)),e._assign(a)}),n&&Jt(e,"change",()=>{e.value=e.value.trim()}),t||(Jt(e,"compositionstart",kc),Jt(e,"compositionend",Qs),Jt(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=Js(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&ho(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},$c=["ctrl","shift","alt","meta"],Sc={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))},at=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=Sc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Pc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gs=(e,t)=>n=>{if(!("key"in n))return;const o=Ue(n.key);if(t.some(r=>r===o||Pc[r]===o))return e(n)},ei={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(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),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const Ec=ve({patchProp:gc},nc);let ti;function Ic(){return ti||(ti=Aa(Ec))}const ni=(...e)=>{Ic().render(...e)},Oc={class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3"},Mc={class:"flex justify-between items-end"},Lc={class:"inline-block children-pointer-events-auto w-1/3"},zc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},jc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ac={class:"inline-block z-20 relative"},oi=Ce({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{}},setup(e){return(t,n)=>(A(),V("div",{class:xe(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[ke(t.$slots,"default"),H("div",{id:"controls",class:xe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-2 md:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ee({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[H("div",Oc,[ke(t.$slots,"back"),ke(t.$slots,"exit"),ke(t.$slots,"chapter-nav")]),H("div",Mc,[H("div",Lc,[ke(t.$slots,"page-nav")]),H("div",zc,[ke(t.$slots,"reset-zoom")]),H("div",jc,[ke(t.$slots,"entry"),H("div",Ac,[ke(t.$slots,"settings")]),ke(t.$slots,"full-screen"),ke(t.$slots,"play")])]),H("div",{class:xe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[ke(t.$slots,"progress")],2)],6)],2))}}),Bc=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"}));var ri;const Go=typeof window<"u",Dc=e=>typeof e=="function",Nc=e=>typeof e=="string",$t=()=>{};Go&&((ri=window==null?void 0:window.navigator)!=null&&ri.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function bn(e){return typeof e=="function"?e():F(e)}function er(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 si=e=>e();function Rc(e,t={}){let n,o,r=$t;const s=a=>{clearTimeout(a),r(),r=$t};return a=>{const l=bn(e),c=bn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(a())):new Promise((f,u)=>{r=t.rejectOnCancel?u:f,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,f(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,f(a())},l)})}}function Fc(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=$t,l;const c=()=>{s&&(clearTimeout(s),s=void 0,a(),a=$t)};return u=>{const g=bn(e),x=Date.now()-r,T=()=>l=u();if(c(),g<=0)return r=Date.now(),T();if(x>g&&(n||!i))r=Date.now(),T();else if(t)return new Promise((y,W)=>{a=o?W:y,s=setTimeout(()=>{r=Date.now(),i=!0,y(T()),c()},g-x)});return!n&&!s&&(s=setTimeout(()=>i=!0,g)),i=!1,l}}function Hc(e=si){const t=J(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:$o(t),pause:n,resume:o,eventFilter:r}}function Vc(e){return e}function tr(e){return Cr()?(ml(e),!0):!1}function nt(e,t=200,n={}){return er(Rc(t,n),e)}function Wc(e,t=200,n=!1,o=!0,r=!1){return er(Fc(t,n,o,r),e)}function ii(e,t=!0){Ms()?qe(e):t?e():et(e)}var li=Object.getOwnPropertySymbols,Uc=Object.prototype.hasOwnProperty,Kc=Object.prototype.propertyIsEnumerable,Yc=(e,t)=>{var n={};for(var o in e)Uc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&li)for(var o of li(e))t.indexOf(o)<0&&Kc.call(e,o)&&(n[o]=e[o]);return n};function Xc(e,t,n={}){const o=n,{eventFilter:r=si}=o,s=Yc(o,["eventFilter"]);return ue(e,er(r,t),s)}var qc=Object.defineProperty,Zc=Object.defineProperties,Jc=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertySymbols,ai=Object.prototype.hasOwnProperty,ci=Object.prototype.propertyIsEnumerable,ui=(e,t,n)=>t in e?qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qc=(e,t)=>{for(var n in t||(t={}))ai.call(t,n)&&ui(e,n,t[n]);if(eo)for(var n of eo(t))ci.call(t,n)&&ui(e,n,t[n]);return e},Gc=(e,t)=>Zc(e,Jc(t)),eu=(e,t)=>{var n={};for(var o in e)ai.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&eo)for(var o of eo(e))t.indexOf(o)<0&&ci.call(e,o)&&(n[o]=e[o]);return n};function tu(e,t,n={}){const o=n,{eventFilter:r}=o,s=eu(o,["eventFilter"]),{eventFilter:i,pause:a,resume:l,isActive:c}=Hc(r);return{stop:Xc(e,t,Gc(Qc({},s),{eventFilter:i})),pause:a,resume:l,isActive:c}}function Ft(e){var t;const n=bn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pt=Go?window:void 0,nu=Go?window.document:void 0;function St(...e){let t,n,o,r;if(Nc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=pt):[t,n,o,r]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},a=(f,u,g)=>(f.addEventListener(u,g,r),()=>f.removeEventListener(u,g,r)),l=ue(()=>Ft(t),f=>{i(),f&&s.push(...n.flatMap(u=>o.map(g=>a(f,u,g))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return tr(c),c}function fi(e,t=!1){const n=J(),o=()=>n.value=!!e();return o(),ii(o,t),n}const nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},or="__vueuse_ssr_handlers__";nr[or]=nr[or]||{};const ou=nr[or];function ru(e,t){return ou[e]||t}function su(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 iu=Object.defineProperty,di=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hi=(e,t)=>{for(var n in t||(t={}))lu.call(t,n)&&pi(e,n,t[n]);if(di)for(var n of di(t))au.call(t,n)&&pi(e,n,t[n]);return e};const cu={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 gi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:f,window:u=pt,eventFilter:g,onError:x=P=>{console.error(P)}}=o,T=(f?Wl:J)(t);if(!n)try{n=ru("getDefaultStorage",()=>{var P;return(P=pt)==null?void 0:P.localStorage})()}catch(P){x(P)}if(!n)return T;const y=bn(t),W=su(y),D=(r=o.serializer)!=null?r:cu[W],{pause:Y,resume:N}=tu(T,()=>v(T.value),{flush:s,deep:i,eventFilter:g});return u&&a&&St(u,"storage",k),k(),T;function v(P){try{if(P==null)n.removeItem(e);else{const m=D.write(P),b=n.getItem(e);b!==m&&(n.setItem(e,m),u&&(u==null||u.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:b,newValue:m,storageArea:n}))))}}catch(m){x(m)}}function S(P){const m=P?P.newValue:n.getItem(e);if(m==null)return l&&y!==null&&n.setItem(e,D.write(y)),y;if(!P&&c){const b=D.read(m);return Dc(c)?c(b,y):W==="object"&&!Array.isArray(b)?hi(hi({},y),b):b}else return typeof m!="string"?m:D.read(m)}function k(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){T.value=y;return}if(!(P&&P.key!==e)){Y();try{T.value=S(P)}catch(m){x(m)}finally{P?et(N):N()}}}}}function mi({document:e=nu}={}){if(!e)return J("visible");const t=J(e.visibilityState);return St(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var vi=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,du=(e,t)=>{var n={};for(var o in e)uu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&vi)for(var o of vi(e))t.indexOf(o)<0&&fu.call(e,o)&&(n[o]=e[o]);return n};function pu(e,t,n={}){const o=n,{window:r=pt}=o,s=du(o,["window"]);let i;const a=fi(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=ue(()=>Ft(e),u=>{l(),a.value&&r&&u&&(i=new ResizeObserver(t),i.observe(u,s))},{immediate:!0,flush:"post"}),f=()=>{l(),c()};return tr(f),{isSupported:a,stop:f}}function rr(e,t={width:0,height:0},n={}){const{window:o=pt,box:r="content-box"}=n,s=le(()=>{var l,c;return(c=(l=Ft(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),i=J(t.width),a=J(t.height);return pu(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const f=Ft(e);if(f){const u=o.getComputedStyle(f);i.value=parseFloat(u.width),a.value=parseFloat(u.height)}}else if(c){const f=Array.isArray(c)?c:[c];i.value=f.reduce((u,{inlineSize:g})=>u+g,0),a.value=f.reduce((u,{blockSize:g})=>u+g,0)}else i.value=l.contentRect.width,a.value=l.contentRect.height},n),ue(()=>Ft(e),l=>{i.value=l?t.width:0,a.value=l?t.height:0}),{width:i,height:a}}function _i(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=pt}=n,a=fi(()=>i&&"IntersectionObserver"in i);let l=$t;const c=a.value?ue(()=>({el:Ft(e),root:Ft(o)}),({el:u,root:g})=>{if(l(),!u)return;const x=new IntersectionObserver(t,{root:g,rootMargin:r,threshold:s});x.observe(u),l=()=>{x.disconnect(),l=$t}},{immediate:!0,flush:"post"}):$t,f=()=>{l(),c()};return tr(f),{isSupported:a,stop:f}}function hu(e,t,n={}){const{window:o=pt}=n;return gi(e,t,o==null?void 0:o.localStorage,n)}var bi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(bi||(bi={}));function sr(e,t,n={}){const{window:o=pt}=n;return gi(e,t,o==null?void 0:o.sessionStorage,n)}var gu=Object.defineProperty,yi=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,wi=(e,t,n)=>t in e?gu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_u=(e,t)=>{for(var n in t||(t={}))mu.call(t,n)&&wi(e,n,t[n]);if(yi)for(var n of yi(t))vu.call(t,n)&&wi(e,n,t[n]);return e};_u({linear:Vc},{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]});function bu(e={}){const{window:t=pt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=J(n),a=J(o),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ii(l),St("resize",l,{passive:!0}),r&&St("orientationchange",l,{passive:!0}),{width:i,height:a}}const yu=Ce({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=J(null),o=J(0),r=J([]),s=le(()=>r.value[o.value]),i=Wc(a,500);qe(()=>{const f=rr(n),u=nt(()=>l({width:f.width.value,height:f.height.value}),50);u(),ue(f.width,u),ue(f.height,u)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(f){const u=c();r.value=u.map(({rect:g,text:x})=>{const T=g.top<f.height-g.bottom,y=g.left<f.width-g.right;return{text:x,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.width}px`,height:`${g.height}px`},textStyle:{left:y?`${g.left-12}px`:void 0,right:y?void 0:`${f.width-g.left}px`,top:T?`${g.bottom+12}px`:`${g.top+20}px`,textAlign:T?void 0:"right",transform:T?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var g;const f=(g=n.value)==null?void 0:g.parentElement;if(!f)return[];const u=[];return f.querySelectorAll("[data-tour]").forEach(x=>{var W;const T=(W=x.getAttribute("data-tour"))==null?void 0:W.trim();if(!(T!=null&&T.length))return;const y=x.getBoundingClientRect();u.push({rect:y,text:T})}),u}return(f,u)=>{var g,x;return A(),V(ge,null,[H("div",{class:xe(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),H("div",{ref_key:"root",ref:n,class:"tour",onClick:u[0]||(u[0]=at((...T)=>F(i)&&F(i)(...T),["stop"]))},[s.value?(A(),V("div",{key:o.value,class:"tour__target",style:Ee(s.value.style)},null,4)):Le("",!0),(A(),V("div",{key:o.value,class:"tour__text",style:Ee((g=s.value)==null?void 0:g.textStyle)},Ke(((x=s.value)==null?void 0:x.text)??""),5))],512)],64)}}}),wu=`.tour{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:9999px;border-width:1px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards;max-width:320px;padding-left:12px;padding-right:12px}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}
|
|
2
|
+
`,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},xi=he(yu,[["styles",[wu]]]),xu=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"})),Cu=H("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Ci=Ce({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=J(null),r=J([]);qe(async()=>{const l=rr(o),c=nt(()=>{s({width:l.width.value,height:l.height.value})},50);c(),ue(l.width,c),ue(l.height,c)});function s(l){var u;const c=(u=o.value)==null?void 0:u.parentElement;if(!c)return;const f=Array.from(c.querySelectorAll("#controls [title]"));f.length&&(r.value=i(f,l))}function i(l,c){const f=[],u=[];let g=0,x=0;const T=50,y=25;l.forEach(v=>{var b;const S=(b=v.getAttribute("title"))==null?void 0:b.trim(),k=v.getBoundingClientRect();if(!S||!k.height||!k.width)return;const P=Math.ceil((k.top-10)/T),m=Math.ceil((k.left-10)/T);u.push({isTour:!1,title:S,rect:k,fromX:m,toX:Math.max(m+1,Math.ceil((k.right+10)/T)),fromY:P,toY:Math.max(P+1,Math.ceil((k.bottom+10)/T))})}),u.forEach(v=>{for(let S=v.fromY;S<v.toY;S++){f[S]??(f[S]=[]);for(let k=v.fromX;k<v.toX;k++)f[S][k]=v;v.toY>g+1&&(g=v.toY-1),v.toX>x+1&&(x=v.toX-1)}});let W=x/2;u.forEach(v=>{v.isAlignRight=v.fromX>W});const D=(v,S)=>{f[S]??(f[S]=[]);const k=S>=v.toY;if(v.isTour)for(let P=v.fromX;P<v.toX;P++)delete f[v.fromY][P],v.fromY=S,v.toY=S+(k?1:-1),f[S][P]=v;else{const P=v.isAlignRight?v.fromX-3:v.fromX,m=P+3;v.helpItem={fromX:P,toX:m,fromY:S,toY:S+1,isTour:!0,isAlignRight:v.isAlignRight};for(let b=P;b<m;b++)f[S][b]=v.helpItem}},Y=(v,S)=>{if(S>g||S<0)return!1;const k=S>=v.toY,P=f[S];if(!P)return D(v,S),!0;const m=P[v.fromX];if(m&&!m.isTour)return!1;if(m&&m.isTour)return Y(m,k?S+1:S-1)?(D(v,S),!0):!1;if(!m){const b=v.isAlignRight?-1:1;return P[v.fromX+b]||P[v.fromX+b*2]?Y(v,k?S+1:S-1):(D(v,S),!0)}return!1};u.forEach(v=>{if(!Y(v,v.toY)){if(v.isAlignRight){const S=f[v.fromY]??[];if(!S.slice(v.fromX-3,v.fromX).filter(Boolean).length){const P=v.fromX-3,m=v.fromX;v.helpItem={isTour:!0,isAlignRight:!0,fromX:P,toX:m,fromY:v.fromY,toY:v.toY};for(let b=v.fromX-3;b<v.fromX;b++)S[b]=v.helpItem;return}}Y(v,v.fromY-1)}});const N=[];return u.forEach(v=>{const{title:S,helpItem:k,rect:P,isAlignRight:m,fromX:b,fromY:C,toY:U}=v;if(!S||!k||!P)return;const O=k.fromY>=U,R=k.toY<=C;N.push({title:a(S),style:{top:O?`${P.bottom+(k.fromY-U)*T+y}px`:R?void 0:`${P.top+10}px`,bottom:R?`${c.height-P.top+(k.toY-C)*T+y}px`:void 0,left:m?void 0:`${P.left}px`,right:m?O?`${c.width-P.right}px`:`${c.width-P.right+P.width+y}px`:void 0},arrowStyle:{width:R||O?"2px":`${Math.abs(k.toX-b)*T+y-5}px`,height:R||O?`${(O?k.fromY-U:C-k.toY)*T+y}px`:"2px",top:O?`${P.bottom}px`:R?void 0:`${P.top+20}px`,bottom:R?`${c.height-P.top}px`:void 0,left:m?void 0:`${P.left+P.width/2}px`,right:m?O?`${c.width-P.right+P.width/2}px`:`${c.width-P.right+P.width}px`:void 0}})}),N}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(A(),V(ge,null,[Cu,H("div",{ref_key:"root",ref:o,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=at(f=>t("hide"),["stop"]))},[(A(!0),V(ge,null,fn(r.value,f=>(A(),V(ge,{key:f.title},[H("div",{class:"absolute",style:Ee(f.style)},Ke(f.title),5),H("div",{class:"absolute bg-stone-300 rounded-lg",style:Ee(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),Tu={},$u={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Su=[H("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[H("circle",{cx:"14",cy:"14",r:"12"}),H("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Pu(e,t){return A(),V("svg",$u,Su)}const ki=he(Tu,[["render",Pu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),Iu={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"},Ou={class:"block w-4 h-4"},Mu={class:"w-12"},Ti=Ce({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ki;return t.zoom!==1?(A(),V("button",Iu,[H("div",Ou,[K(o)]),H("div",Mu,Ke(Math.ceil(t.zoom*100))+"%",1)])):Le("",!0)}}}),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),zu={},ju={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Au=[H("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 Bu(e,t){return A(),V("svg",ju,Au)}const ir=he(zu,[["render",Bu]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),Nu={},Ru={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Fu=[H("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),H("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 Hu(e,t){return A(),V("svg",Ru,Fu)}const lr=he(Nu,[["render",Hu]]),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:lr},Symbol.toStringTag,{value:"Module"}));function Wu({touchDevice:e}){const t=J(!1);let n=0;return Yn("busy:touchDevice",e),Yn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function ar(){const e=zt("busy:touchDevice"),t=zt("setBusyState");let n=!1;return He(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Uu=(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(l,20);a();function a(){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 l(){const c=+n||50;r<=c?(r++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Gt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Uu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Ku={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},to=Ce({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=ar();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>ft((A(),ye(wa(l.href?"a":"button"),Qn(l.href?{href:l.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":l.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!l.disabled,"bg-black bg-opacity-50":!l.transparent}],onClick:at(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:ne(()=>[H("div",Ku,[ke(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[F(Gt),l.disabled?0:15]])}}),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:to},Symbol.toStringTag,{value:"Module"})),Xu={},qu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zu=[H("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 Ju(e,t){return A(),V("svg",qu,Zu)}const $i=he(Xu,[["render",Ju]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"}));class Gu{constructor(){nl(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 ef(){const e=new Gu;return He(()=>e.dispose()),Yn("keyController",e),e}function no(e){const t=zt("keyController");qe(()=>t.addListener(e)),He(()=>t.removeListener(e))}const tf={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},nf={class:"text-xl font-medium text-ellipsis overflow-hidden whitespace-nowrap px-3"},of={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Si=Ce({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;no({onKeyDown:r});const o=ar();ue(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const a=$i,l=to;return A(),V("div",{class:xe(["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))},[K(Qt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ne(()=>[n.modelValue?(A(),V("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=at(()=>{},["stop"]))},[H("div",tf,[K(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:ne(()=>[K(a)]),_:1}),H("div",nf,Ke(s.name),1),ke(s.$slots,"actions")]),H("div",of,[ke(s.$slots,"default")])])):Le("",!0)]),_:3})],2)}}}),rf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),sf=["min","max","step"],lf={class:"flex-shrink-0"},Pi=he(Ce({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=le({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(A(),V("div",{class:xe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Ee({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[ft(H("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,sf),[[Tc,o.value]]),H("p",lf,[ke(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:2px;border-style:none;cursor:pointer;height:6px;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:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
3
|
+
`]]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),cf={class:"flex items-center mb-8 last:mb-0"},uf={class:"flex-grow overflow-hidden"},Ei=Ce({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),V("div",cf,[H("div",{class:xe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Ke(t.label),3),H("div",uf,[ke(t.$slots,"default")])]))}}),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),df=["onClick","onKeyup"],Ii=Ce({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J({width:"",left:""});qe(()=>{let i=!1;ue(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,a)=>(A(),V("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:{}},[H("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ee(r.value)},null,4),(A(!0),V(ge,null,fn(n.items,(l,c)=>ft((A(),V("div",{key:c,tabindex:"0",class:xe(["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:[Gs(()=>s(c),["enter"]),Gs(()=>s(c),["space"])]},[xt(Ke(l),1)],42,df)),[[F(Gt),30]])),128))],512))}}),pf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),hf={},gf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},mf=[H("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function vf(e,t){return A(),V("svg",gf,mf)}const Oi=he(hf,[["render",vf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),bf={},yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},wf=[H("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),H("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function xf(e,t){return A(),V("svg",yf,wf)}const Mi=he(bf,[["render",xf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"}));function kf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ot=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ot||{}),ht=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(ht||{});const Tf=.25,$f=5,Sf=.25,yn=.25,wn=5,Pf=.05,Ef=0,If=4;function Of(e){var D,Y,N,v,S;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?kf(t):location.pathname}`,s=hu(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(k){const P={};return k?(k.style!==void 0&&Object.values(ht).includes(k.style)&&(P.style=k.style),k.direction!==void 0&&Object.values(ot).includes(k.direction)&&(P.direction=k.direction),k.gap!==void 0&&k.gap>=Ef&&k.gap<=If&&(P.gap=k.gap),k.speed!==void 0&&k.speed>=yn&&k.speed<=wn&&(P.speed=k.speed),k.zoom!==void 0&&k.zoom>=yn&&k.zoom<=wn&&(P.zoom=k.zoom),Object.keys(P).length?P:void 0):P}}),i=k=>{if(!s.value){s.value=k;return}const P={...s.value};Object.entries(k).forEach(([m,b])=>{b===void 0?delete P[m]:P[m]=b}),Object.keys(P).length?s.value=P:(s.value=void 0,localStorage.removeItem(r))},a=J(((D=s.value)==null?void 0:D.style)??ht.longStrip),l=J(((Y=s.value)==null?void 0:Y.direction)??ot.vertical),c=J((N=s.value)==null?void 0:N.gap),f=J(((v=s.value)==null?void 0:v.speed)??1),u=J(((S=s.value)==null?void 0:S.zoom)??1),g=le({get(){return n.value?ht.longStrip:a.value??ht.longStrip},set:k=>{a.value=k,i({style:k===ht.longStrip?void 0:k}),k!==ht.longStrip&&l.value===ot.vertical&&(x.value=ot.rtl)}}),x=le({get:()=>n.value?ot.vertical:l.value,set:k=>{l.value=k,i({direction:k===ot.vertical?void 0:k})}}),T=le({get:()=>c.value??(n.value?0:1),set(k){c.value=k,i({gap:k})}}),y=le({get:()=>f.value,set(k){f.value=k,i({speed:k===1?void 0:k})}}),W=le({get:()=>u.value,set(k){u.value=k,i({zoom:k===1?void 0:k})}});return{direction:x,style:g,gap:T,speed:y,zoom:W,isLongStrip:le(()=>g.value===ht.longStrip),isDouble:le(()=>g.value===ht.double),isRTL:le(()=>x.value===ot.rtl),isVertical:le(()=>x.value===ot.vertical)}}const Li=Ce({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=J(!1);no({onKeyUp:s=>{s.key==="s"&&!s.metaKey&&!s.ctrlKey&&(n.value=!n.value)}});function o(s){t("update:zoom",Math.round(s)/100)}function r(){n.value=!1,t("help")}return(s,i)=>{const a=Mi,l=to,c=Oi,f=Ii,u=Ei,g=Pi,x=Si;return A(),V(ge,null,[K(l,{title:"Reader settings (S)",disabled:s.disabled,onClick:i[0]||(i[0]=()=>n.value=!0)},{default:ne(()=>[K(a)]),_:1},8,["disabled"]),K(x,{modelValue:n.value,"onUpdate:modelValue":i[5]||(i[5]=T=>n.value=T),name:s.name},{actions:ne(()=>[K(l,{transparent:"",onClick:r},{default:ne(()=>[K(c)]),_:1})]),default:ne(()=>[K(u,{label:"Style"},{default:ne(()=>[K(f,{"model-value":s.readerStyle,items:s.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":i[1]||(i[1]=T=>t("update:reader-style",T))},null,8,["model-value","items"])]),_:1}),K(u,{label:"Direction"},{default:ne(()=>[K(f,{"model-value":s.direction,items:s.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":i[2]||(i[2]=T=>t("update:direction",T))},null,8,["model-value","items"])]),_:1}),K(u,{label:"Gap"},{default:ne(()=>[K(f,{"model-value":s.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":i[3]||(i[3]=T=>t("update:gap",T))},null,8,["model-value"])]),_:1}),K(u,{label:"Speed"},{default:ne(()=>[K(g,{"model-value":s.speed,min:F(Tf),max:F($f),step:F(Sf),suffix:"x","onUpdate:modelValue":i[4]||(i[4]=T=>t("update:speed",T))},{suffix:ne(()=>[xt(Ke(s.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),K(u,{label:"Zoom"},{default:ne(()=>[K(g,{"model-value":Math.ceil(s.zoom*100),min:F(yn)*100,max:F(wn)*100,step:F(Pf)*100,"onUpdate:modelValue":o},{suffix:ne(()=>[xt(Ke(Math.ceil(s.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},jf=[H("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Af(e,t){return A(),V("svg",zf,jf)}const zi=he(Lf,[["render",Af]]),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),Df={},Nf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Rf=[H("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Ff(e,t){return A(),V("svg",Nf,Rf)}const ji=he(Df,[["render",Ff]]),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Vf={},Wf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uf=[H("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),H("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),H("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Kf(e,t){return A(),V("svg",Wf,Uf)}const Ai=he(Vf,[["render",Kf]]),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Xf={},qf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zf=[H("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),H("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),H("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function Jf(e,t){return A(),V("svg",qf,Zf)}const Bi=he(Xf,[["render",Jf]]),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Gf={},ed={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},td=[H("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function nd(e,t){return A(),V("svg",ed,td)}const Di=he(Gf,[["render",nd]]),od=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),rd=["aria-hidden"],sd=["onClick"],id=["onClick"],ld={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},ad={class:"whitespace-nowrap"},cr=Ce({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J(!1),s=J(null),i=J(!1),a=J(!1),l=J(!1);no({onKeyDown:x});const c=ar();function f(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(u(),et(()=>setTimeout(()=>{var v,S;(S=(v=s.value)==null?void 0:v.children[n.modelValue])==null||S.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),y(o.value)):setTimeout(W,250)}function u(){const v=o.value;if(v){const S=v.getBoundingClientRect(),k=S.x+S.width/2;i.value=S.y>window.innerHeight/2,a.value=k<window.innerWidth/3,l.value=k>window.innerWidth/3*2}}function g(v){v!=n.modelValue&&t("update:modelValue",v),f()}function x(v){r.value&&v.key==="Escape"&&(f(),v.preventDefault())}let T=[];function y(v){const S=window.getComputedStyle(v).zIndex,k=v.style.zIndex;(!S||!(+S>0))&&((!v.parentElement||v.parentElement.childElementCount>1)&&(v.style.zIndex="1",T.push({el:v,zIndex:k})),v.parentElement&&y(v.parentElement))}function W(){T.forEach(({el:v,zIndex:S})=>{v.style.zIndex=S??""}),T=[]}let D=!1;function Y(){D||(D=!0,c(!0,{desktopOnly:!0}))}function N(){D&&(D=!1,c(!1,{desktopOnly:!0}))}return(v,S)=>{const k=Di;return A(),V("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),V("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:f})):Le("",!0),v.items.length?(A(),ye(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:ne(()=>[r.value?(A(),V("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:xe(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] 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":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:S[0]||(S[0]=at(()=>{},["stop"]))},[(A(!0),V(ge,null,fn(v.items,(P,m)=>ft((A(),V("li",{key:m,tabindex:"-1",class:xe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":m===v.modelValue}]),onClick:()=>g(m)},[H("div",{class:xe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[ke(v.$slots,"item",{item:P},()=>[xt(Ke(P),1)])],2)],10,sd)),[[F(Gt),30]])),128))],42,rd)):Le("",!0)]),_:3})):Le("",!0),ft((A(),V("button",Qn({type:"button",tabindex:"-1",class:["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":v.disabled}]},v.title?{title:v.title}:{},{onClick:at(f,["stop"]),onMouseenter:Y,onMouseleave:N}),[H("div",ld,[H("span",ad,Ke(v.label),1),v.items.length?(A(),V("span",{key:0,class:xe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[K(k)],2)):Le("",!0)])],16,id)),[[F(Gt),30]])],512)}}}),cd=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),Ni=Ce({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=le(()=>Math.floor(n.modelValue)),r=le(()=>n.pages.map(c=>c.map(({index:f})=>`${f+1}`).join("-"))),s=le(()=>{const c=o.value,f=n.pages.findIndex(u=>u.some(({index:g})=>g===c));return f===-1?n.pages.length-1:f}),i=le(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function a(c){const f=n.pages[c][0].index;l(f)}function l(c){t("update:modelValue",c)}return(c,f)=>{const u=cr;return A(),ye(u,{"model-value":s.value,label:i.value,title:"Current page",items:r.value,disabled:c.disabled,"onUpdate:modelValue":a},null,8,["model-value","label","items","disabled"])}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),fd={},dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pd=[H("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function hd(e,t){return A(),V("svg",dd,pd)}const Ri=he(fd,[["render",hd]]),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),md={},vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_d=[H("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function bd(e,t){return A(),V("svg",vd,_d)}const Fi=he(md,[["render",bd]]),yd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),wd={},xd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Cd=[H("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 kd(e,t){return A(),V("svg",xd,Cd)}const Hi=he(wd,[["render",kd]]),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),$d={},Sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pd=[H("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 Ed(e,t){return A(),V("svg",Sd,Pd)}const Vi=he($d,[["render",Ed]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Wi=he(Ce({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=J(0);return ue(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=ir,i=lr;return n.value?(A(),V("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?(A(),ye(s,{key:0})):(A(),ye(i,{key:1}))])):Le("",!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)}}
|
|
4
|
+
`]]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Md={},Ld={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zd=[H("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 jd(e,t){return A(),V("svg",Ld,zd)}const Ui=he(Md,[["render",jd]]),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),Ki=Ce({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sr("tk:dir",!0),o=nt(()=>n.value=!1,1250);return ue(()=>t.direction,()=>{n.value=!0,o()}),qe(()=>{o();let r;const s=mi();ue(s,i=>{i!=="visible"?r=Date.now():Date.now()-r>3e4&&(n.value=!0,o())})}),(r,s)=>{const i=Ui;return A(),ye(Qt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ne(()=>[F(n)?(A(),V("div",{key:0,class:xe(["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===F(ot).vertical,"rotate-180":r.direction===F(ot).rtl}])},[K(i)],2)):Le("",!0)]),_:1})}}}),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ki},Symbol.toStringTag,{value:"Module"})),oo=[];function Dd(e){oo.push(e),He(()=>{const t=oo.indexOf(e);t!==-1&&oo.splice(t,1)})}function Nd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;oo.forEach(i=>i(r,s))}const Yi=Ce({__name:"ZoomWrapper",props:{modelValue:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=J(null),r=J(Math.min(wn,Math.max(yn,n.modelValue))),s=J(!1),i=J(!1),a=J(!1),l=J(!1),c=nt(()=>l.value=!1,150);function f(){l.value||(l.value=!0),c()}ue(()=>n.modelValue,$=>re($)),qe(()=>{n.touchDevice?(St(window,"touchstart",k),Dd(oe)):(St(o,"mousedown",W),ue(()=>n.horizontal,$=>{$?window.addEventListener("wheel",C,{passive:!1}):window.removeEventListener("wheel",C)},{immediate:!0}))}),He(()=>{window.removeEventListener("wheel",C)});let u;no({onKeyDown:$=>{var we;if(n.busy)return;(we=o.value)==null||we.focus();const L=$.key==="Meta",ee=$.key==="Control";if(L||ee)s.value=!0,window.addEventListener("wheel",x,{passive:!1}),u=()=>{s.value=!1,window.removeEventListener("wheel",x),window.removeEventListener("blur",u),u=void 0},window.addEventListener("blur",u);else if($.ctrlKey||$.metaKey)switch($.key){case"0":re(1);break;case"-":re(r.value-.2),$.preventDefault();break;case"=":case"+":re(r.value+.2),$.preventDefault();break}},onKeyUp:()=>{s.value==!0&&(u==null||u())}});function g($){a.value!==$&&(a.value=$,$?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function x($){$.stopPropagation(),$.preventDefault();const L=Math.ceil((r.value+$.deltaY*-.01)*100)/100;re(L,{x:$.clientX,y:$.clientY})}let T={x:0,y:0},y={x:0,y:0};function W($){$.button===0&&(T={x:$.clientX,y:$.clientY},y={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",D),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",D),setTimeout(()=>g(!1))},{once:!0}),$.preventDefault(),$.stopPropagation())}function D($){g(!0);const L=$.clientX-T.x,ee=$.clientY-T.y,we=o.value;we.scrollLeft=y.x-L,we.scrollTop=y.y-ee}let Y=0,N=1,v,S=!1;function k($){if(!n.busy){if(S=$.touches.length===2,S){g(!0),$.stopPropagation(),$.preventDefault();const L=o.value;Y=U($),N=r.value,v={x:($.touches[0].clientX+$.touches[1].clientX)/2,y:($.touches[0].clientY+$.touches[1].clientY)/2,scrollLeft:L.scrollLeft,scrollTop:L.scrollTop,scrollWidth:L.scrollWidth,scrollHeight:L.scrollHeight}}(S||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",m),window.addEventListener("touchend",P,{once:!0}))}}function P(){if(window.removeEventListener("touchmove",m),S){g(!1),S=!1;return}if(!a.value)return;const $=nt(()=>{g(!1),o.value.removeEventListener("scroll",ee)},100),L=setTimeout($,100);o.value.addEventListener("scroll",ee);function ee(){clearTimeout(L),$()}}function m($){if(g(!0),S){$.stopPropagation(),$.preventDefault();const ee=U($)/Y;re(Math.ceil(ee*N*100)/100,v)}}const b=nt(()=>i.value=!1,100);function C($){n.busy||(i.value||(i.value=!0),b(),$.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=$.deltaY*(n.rtl?-1:1)),$.preventDefault()))}function U($){return Math.hypot($.touches[0].clientX-$.touches[1].clientX,$.touches[0].clientY-$.touches[1].clientY)}let O=0,R;function Q($){if(!n.touchDevice){t("click",$);return}$.stopPropagation(),!a.value&&(O++,R&&clearTimeout(R),O===2&&oe($.clientX,$.clientY),R=setTimeout(()=>{!a.value&&O===1&&t("click",$),R=void 0,O=0},300))}function oe($,L){if(!O)return;O=0;const ee=r.value===1?2:1;re(ee,{x:$,y:L})}async function re($,L){const ee=o.value,we=Math.min(wn,Math.max(yn,$));if(!ee||r.value===we)return;const rt=(L==null?void 0:L.scrollLeft)??ee.scrollLeft,Oe=(L==null?void 0:L.scrollTop)??ee.scrollTop,en=(L==null?void 0:L.scrollHeight)??ee.scrollHeight,kn=(L==null?void 0:L.scrollWidth)??ee.scrollWidth,gt=(L==null?void 0:L.x)??ee.clientWidth/2,Pe=n.rtl?ee.clientWidth-gt:gt,mt=(L==null?void 0:L.y)??ee.clientHeight/2;f(),r.value=we,t("update:modelValue",we),await et();const Pt=ee.scrollWidth/kn,ze=ee.scrollHeight/en;ee.scrollLeft=rt*Pt+Pe*(Pt-1)*(n.rtl?-1:1),ee.scrollTop=Oe*ze+mt*(ze-1)}return($,L)=>(A(),V("div",{ref_key:"root",ref:o,tabindex:"0",class:xe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":a.value||i.value,"cursor-grabbing":a.value,"overflow-hidden":l.value}]),style:Ee({"font-size":`${r.value}px`}),onClick:Q},[ke($.$slots,"default")],6))}}),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),Fd=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.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}}
|
|
5
|
+
`,Hd={},Vd={class:"flex justify-center items-center w-full h-full"},Wd=[H("div",{class:"loading-indicator"},null,-1)];function Ud(e,t){return A(),V("div",Vd,Wd)}const ur=he(Hd,[["render",Ud],["styles",[Fd]]]),Kd=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),Yd=["data-index"],Xd={key:0,class:"page--loading"},qd=["src"],Zd=["src"],Jd=["data-index"],Xi=he(Ce({__name:"ReaderBody",props:{direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=J(null),r=le(()=>{var u;return(u=o.value)==null?void 0:u.$el}),s=J(null),i=rr(r),a=le(()=>{const{width:u,height:g}=i,x=n.isLongStrip?n.isVertical?u.value:g.value:Math.min(u.value,g.value);return Math.min(4,Math.max(1,Math.ceil(x/400-1)))*n.gap}),l=le(()=>{const{width:{value:u},height:{value:g}}=i;return n.pages.map(x=>{var v;const T={isLoading:x.some(S=>{var k;return(k=S.img)==null?void 0:k.isLoading}),indexes:x.map(S=>S.index)};if(T.isLoading)return T;const y=x.map(({img:S})=>S).filter(Boolean);if(!y.length||(T.srcs=y.map(({src:S})=>S),y.every(S=>S.hasError)))return T;const D=(v=y.find(S=>!S.hasError))==null?void 0:v.size,Y=y.reduce((S,k)=>{var P;return S+(((P=k.size)==null?void 0:P.width)??D.width)},0),N=y.reduce((S,k)=>{var P;return S+(((P=k.size)==null?void 0:P.height)??D.height)},0)/y.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&u/Y<g/N?(T.width=Math.min(u,Y),T.height=N*T.width/Y):T.height=Math.min(g,N),T})}),c=le(()=>l.value.map(u=>(u==null?void 0:u.width)??(u==null?void 0:u.height)).filter(Boolean).sort((u,g)=>g-u)[0]);function f(u){if(!n.isLongStrip){const g=n.isVertical?i.height.value:i.width.value,T=(n.isVertical?u.clientY:n.isRTL?g-u.clientX:u.clientX)/g;if(T<=.2){t("prev");return}else if(T>=.8){t("next");return}}t("click")}return(u,g)=>{const x=ur,T=Yi;return A(),ye(T,{"model-value":u.zoom,ref_key:"root",ref:o,class:xe(["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:Ee({"--gap":`${a.value}em`,"--space-top":(u.spaceTop||0)+"em","--screen-width-em":F(i).width.value+"em","--screen-height-em":F(i).height.value+"em",...u.isLongStrip?{"--max-size-em":c.value+"em"}:{}}),"onUpdate:modelValue":g[0]||(g[0]=y=>t("update:zoom",y)),onDragEnd:g[1]||(g[1]=()=>t("dragEnd")),onClick:f},{default:ne(()=>[(A(!0),V(ge,null,fn(l.value,y=>{var W;return A(),V("div",Qn({key:u.direction+"_"+y.indexes[0],"data-index":y.indexes[0]},y.indexes.length>1?{"data-index2":y.indexes[1]}:{}),[!((W=y.srcs)!=null&&W.length)||y.isLoading?(A(),V("div",Xd,[K(x)])):y.srcs.length==1?(A(),V("img",{key:1,src:y.srcs[0],style:Ee({width:y.width!==void 0?y.width+"em":"",height:y.height!==void 0?y.height+"em":""})},null,12,qd)):(A(),V("div",{key:2,class:xe(["page--double",{"flex-row-reverse":u.isRTL}]),style:Ee({height:y.height!==void 0?y.height+"em":""})},[(A(!0),V(ge,null,fn(y.srcs,D=>(A(),V("div",{key:D},[H("img",{src:D},null,8,Zd)]))),128))],6))],16,Yd)}),128)),H("div",{ref_key:"autoNextEl",ref:s,"data-index":u.totalImgs,style:Ee(u.isLongStrip?u.isVertical?{height:F(i).height.value+"em"}:{width:F(i).width.value+"em"}:{})},[ke(u.$slots,"end")],12,Jd)]),_: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);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{padding:calc(var(--gap)/2) 0;width:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em);padding:0 calc(var(--gap)/2)}.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:100vh;min-width:100vw;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 .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body .page--loading{height:calc(var(--screen-height-em)*.75);margin:auto;max-height:100%;max-width:100%;width:calc(var(--screen-width-em)*.5)}.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}
|
|
6
|
+
`]]]),Qd=Object.freeze(Object.defineProperty({__proto__:null,default:Xi},Symbol.toStringTag,{value:"Module"})),Gd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},ep={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},tp={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},qi=he(Ce({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=J(null),o=J(null),r=J(!1),s=J(!1),i=J(3);return qe(()=>{let a;_i(o,l=>{s.value=l.some(c=>c.isIntersecting),i.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{i.value-=1,i.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),_i(n,l=>{r.value=l.some(c=>c.isIntersecting)}),He(()=>a&&clearInterval(a))}),(a,l)=>(A(),V("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[ft(H("div",Gd,[a.hasNext?(A(),V("div",ep,[s.value?(A(),V("div",tp)):Le("",!0),ft((A(),V("button",{ref_key:"nextButton",ref:o,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:l[0]||(l[0]=at(()=>t("next"),["stop"]))},[xt(" Next in "+Ke(i.value),1)])),[[F(Gt)]])])):Le("",!0),ft((A(),V("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:l[1]||(l[1]=at(()=>t("hide"),["stop"]))},[xt(" Hide ")])),[[F(Gt)]])],512),[[ei,r.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
7
|
+
`]]]),np=Object.freeze(Object.defineProperty({__proto__:null,default:qi},Symbol.toStringTag,{value:"Module"}));async function xn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const s=await xn(e-1,t,n);r(s)},t)})}function ro(e=0){return new Promise(t=>setTimeout(t,e))}const op=3;function rp(e){var P;let t=[];const n=J(((P=e.raw.imgs)==null?void 0:P.filter(Boolean))??[]),o=sn({}),r=[],s=new WeakMap;let i=!0,a=0,l,c=n.value.length?ap(n.value):void 0;const f=J(e.raw.isWebtoon),u=J(f.value===void 0||c===void 0),g=nt(v,100),x=nt(y,50);u.value?n.value.length?y():D():et(()=>setTimeout(()=>T(c),10)),He(()=>{i=!1,r.forEach(m=>URL.revokeObjectURL(m))});async function T(m){u.value=!1,await et(),e.onReady(m),ue(()=>Math.floor(e.page.value),async(b,C)=>{Qi({contentEl:l,imgEls:t,page:b,smooth:!0}),C??(C=-1),b!==C&&(a=Math.max(0,a-Math.abs(b-C))),x()},{immediate:!0})}function y(){const m=Math.floor(e.page.value),b=C=>{a>op||W(C)};for(let C=m;C<n.value.length;C++)b(C);for(let C=m-1;C>=0;C--)b(C)}async function W(m){const b=n.value[m];if(!(!i||!b||o[b])){if(!o[b]){o[b]={src:b,isLoading:!0,hasError:!1},a++;const C=await lp(b);if(o[b]={src:b,size:C,isLoading:!1,hasError:!C},a=Math.max(0,a-1),C&&!f.value&&m>Math.min(1,n.value.length-2)){const U=C.height/C.width>2.5;f.value!==U&&(f.value=U)}u.value&&f.value!==void 0&&c!==void 0&&T(c)}x()}}function D(){let m=!1;const b=new MutationObserver(()=>{l&&g(l)});He(async()=>{b.disconnect();const C=e.page.value;await ro(),Qi({contentEl:l,imgEls:t,page:C})}),Y(C=>{l!==C&&(l=C,b.disconnect(),b.observe(l,{childList:!0,subtree:!0}),m?g(l):(m=!0,v(l)))})}async function Y(m){var Q;const b=(Q=e.spec)==null?void 0:Q.content;if(!b)return;const C=await sp(e.spec);let U=b?await xn(C?100:1,10,()=>document.querySelector(b)):void 0;if(!U)return;m(U);let O=0;const R=async()=>{if(i&&!(U!=null&&U.isConnected)){if(O=0,U=await xn(50,20,()=>{const oe=document.querySelector(b);return oe!=null&&oe.isConnected&&oe!==U?oe:void 0}),!U)return;m(U)}!i||++O>=10||setTimeout(R,200)};setTimeout(R,200)}let N=0;async function v(m){var R;if(!i||!m.isConnected)return;const b=Date.now();N=b;let C,U;const O=(R=e.spec)==null?void 0:R.imgDivs;if(O){if(U=Array.from(m.querySelectorAll(O)),C=await Promise.all(U.map(async(Q,oe)=>{const re=Array.from(Q.querySelectorAll("img,canvas"));for(const $ of re){const L=await k({ts:b,el:$,index:oe,total:U.length,onImgLoad:()=>g(m)});if(L)return L}})),!i||!m.isConnected||N!==b)return}else{const Q=Array.from(m.querySelectorAll("img,canvas")),oe=await Promise.all(Q.map(($,L)=>k({ts:b,el:$,index:L,total:Q.length,onImgLoad:()=>g(m)})));if(!i||!m.isConnected||N!==b)return;U=Q.filter(($,L)=>oe[L]),C=oe.filter(Boolean);const re=C.filter(($,L)=>$&&L!==C.lastIndexOf($));re.length&&(C=C.filter($=>$&&!re.includes($)))}c??(c=Ji(U)),(C.length!==n.value.length||C.some((Q,oe)=>n.value[oe]!==Q))&&(t=U,n.value=C,x(),c!==void 0&&u.value&&f.value!==void 0&&n.value.some(Boolean)&&T(c))}const S=Date.now();async function k({ts:m,el:b,index:C,total:U,onImgLoad:O}){const R=s.get(b);let Q,oe;if(b.tagName.toLowerCase()==="canvas"){if(R)return R.src;Q=await Zi(b)}else{if(b._tkLoadId_!==S&&(b._tkLoadId_=S,b.addEventListener("load",O),He(()=>{b._tkLoadId_===S&&delete b._tkLoadId_,b.removeEventListener("load",O)})),oe=cp(b),!oe)return;if(oe===(R==null?void 0:R.originalSrc))return R.src;if(Q=await ip(b,oe),!i||N!==m)return;if(f.value===void 0&&C>Math.min(1,U-2)){const $=+(b.getAttribute("width")??0),L=+(b.getAttribute("height")??0);$&&L&&(f.value=L/$>2.5)}}return Q&&(s.set(b,{src:Q,originalSrc:oe}),Q.startsWith("blob:")&&r.push(Q)),Q}return{isLoading:le(()=>u.value),asyncImgs:le(()=>n.value.map(m=>m?o[m]:void 0)),isWebtoon:le(()=>f.value??!1)}}async function sp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await xn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const s=i=>i.preventDefault();r.addEventListener("click",s),He(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await ro(),!0}function Zi(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function ip(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Zi(o)}function lp(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function ap(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Ji(n)}function Ji(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:Math.floor(-o/n.height*100)/100)}return 0}function cp(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function Qi({contentEl:e,imgEls:t,page:n,smooth:o}){var a;const r=n>=t.length,s=o?"smooth":"instant";if(r){(a=t[t.length-1])==null||a.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const l=fr(e??document.documentElement),c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l==null||l.scrollTo({top:c,behavior:s})})}function fr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?fr(document.documentElement)??e:e:fr(e.parentElement??void 0)}function up(e,t){return le(()=>t.value?Gi(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function Gi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...Gi(e.slice(r.length),t+r.length)]}function fp(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),sr("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function dp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const dr=40;function pp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:a,interferePlayer:l,onChangedPage:c}){let f=!1,u=!1,g;const x=gp(Y,300),T=nt(()=>u=!0,100);function y(){let m=null;la(async()=>{a.value&&a.value!==m&&(m=a.value,D(e.value),m==null||m.removeEventListener("scroll",x),a.value.addEventListener("scroll",x))});const{width:b,height:C}=bu();ue(b,W),ue(C,W),ue(n,W),ue(t,W)}async function W(){f=!0;const m=e.value;if(await et(),N()===m){f=!1;return}D(m)}function D(m,{smooth:b}={smooth:!1}){const C=a.value;if(!C)return;f=!0;const U=async()=>{await et(),f=!1,T()},O=Math.floor(m),R=C.querySelector(`[data-index="${O}"],[data-index2="${O}"]`);if(!R){U();return}l(async()=>{u?o.value?(await P(C,R,{smooth:b,page:m}),Y()):(C.style.setProperty("scroll-snap-type","none"),await P(C,R,{smooth:b,page:m}),C.style.setProperty("scroll-snap-type",""),Y()):o.value?await P(C,R,{smooth:b,page:m}):await P(C,R,{smooth:b,page:m}),await U()})}function Y(){if(!a.value||f||!u)return;const m=N();m!==void 0&&m!==e.value&&c(m)}function N(){const m=v();if(!m)return;const b=+m.getAttribute("data-index")||0;return o.value?Math.floor((b+S(m))*100)/100:b}function v(){g??(g=a.value.getRootNode());const m=g.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-dr:dr,r.value&&o.value?i.value||dr:window.innerHeight/2);for(let b=0;b<m.length;b++){const C=m[b];if(C.hasAttribute("data-index"))return C;if(C===a.value)break}}function S(m){const b=m.getBoundingClientRect();return r.value?Math.abs(b.top-(i.value||0))/b.height:s.value?Math.max(0,b.right-a.value.clientWidth)/b.width:Math.abs(b.left)/b.width}let k=!1;async function P(m,b,C){if(k)return;k=!0;const U=r.value?m.scrollTop:m.scrollLeft,O=C.page,R=o.value?O%1:0,Q=await xn(30,10,async()=>{await ro();const L=r.value?b.offsetTop+R*b.offsetHeight-(o.value?i.value??0:0):s.value?b.offsetLeft-m.clientWidth+b.offsetWidth-R*b.offsetWidth:b.offsetLeft+R*b.offsetWidth;return O>.5&&Math.abs(L)<100?void 0:L})??0;if(!C.smooth){r.value?m.scrollTop=Q:m.scrollLeft=Q,k=!1;return}const oe=Q-U,re=30;let $=0;return new Promise(L=>{(function ee(){const we=hp($,U,oe,re);r.value?m.scrollTop=we:m.scrollLeft=we,$++,$<=re?requestAnimationFrame(ee):(L(),k=!1)})()})}return{init:y,goToPage:D}}function hp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function gp(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:a}){const l=sr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(m,b)=>m===void 0?b:m===!0||m==="true"}),c=J(!1);let f,u;const g=nt(k,100);let x;const T=nt(()=>{c.value=!0,clearTimeout(x),x=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),y=()=>setTimeout(()=>{c.value=!1,T(),x&&(clearTimeout(x),x=void 0)},30);y(),t||St(window,"mousemove",y);const W=mi();qe(()=>{ue(W,m=>{l.value&&(m==="visible"?k():u==null||u())}),ue(i,()=>D()),ue(s,m=>{m||N()})}),He(()=>{clearTimeout(x),x=void 0});async function D(m){l.value&&(u==null||u()),m&&(await et(),await m()),l.value&&g()}function Y(){l.value?N():v()}function N(){l.value&&(l.value=!1,u==null||u(),y())}function v(){!l.value&&s.value&&(l.value=!0,k(),y())}function S(){u==null||u()}function k(){const m=n.value;if(!l.value||!m)return;const b=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,C=P();if(b<=C){N();return}u=()=>{f=Date.now(),u=void 0};const U=Date.now();f=U;const O=.05*i.value,R=o.value?"scrollTop":"scrollLeft";let Q=Date.now(),oe=0;const re=()=>{if(f!==U)return;const $=Date.now(),L=$-Q;Q=$;const ee=O*L+oe;ee>=1?(oe=ee%1,m[R]+=(ee-oe)*(r.value?-1:1)):oe=ee,setTimeout(re,1)};re()}function P(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:l,isIdle:c,toggle:Y,play:v,pause:S,resume:k,stop:N,interfere:D,awake:y}}function vp(e){var u,g,x,T;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,a=r.chapters??[],l=(a==null?void 0:a.length)>1?a:[];l.length&&(t=l.findIndex(y=>y.slug===e.slug),t===-1&&(t=l.findIndex(y=>y.vol===n&&y.chap===o)),t===-1&&(t=l.findIndex(y=>s.startsWith(`${y.slug}-`)&&s.length-y.slug.length>3)));const c=((u=e.prev)==null?void 0:u.slug)??((g=l[t+1])==null?void 0:g.slug),f=((x=e.next)==null?void 0:x.slug)??((T=l[t-1])==null?void 0:T.slug);return{activeIndex:t,activeLabel:el({vol:n,chap:o}),chapters:l.map(y=>({label:el(y),path:pr(i,y.slug)})),prevPath:pr(i,c),nextPath:pr(i,f)}}function pr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function el({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const _p={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},bp=Ce({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","longIdle","finished"],setup(e,{emit:t}){const n=e,o=Wu({touchDevice:n.touchDevice}),r=fp(n.page),{asyncImgs:s,isLoading:i,isWebtoon:a}=rp({raw:n.raw,spec:n.spec,page:r,onReady(p){n.isAutoShow===!1?r.value=p:r.value>s.value.length&&(r.value=Math.max(0,s.value.length-1)),Q.init()},onError:()=>{}}),{direction:l,style:c,isRTL:f,isDouble:u,isVertical:g,isLongStrip:x,gap:T,speed:y,zoom:W}=Of({titleName:n.raw.title.name,isWebtoon:a}),D=up(s,u),Y=le(()=>r.value>=s.value.length),N=le(()=>vp(n.raw)),v=le(()=>{var p,_;return f.value?(p=N.value)==null?void 0:p.nextPath:(_=N.value)==null?void 0:_.prevPath}),S=le(()=>{var p,_;return f.value?(p=N.value)==null?void 0:p.prevPath:(_=N.value)==null?void 0:_.nextPath}),k=J(null),P=J(null),m=J(!1),b=J(!1),C=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:le(()=>{var p;return(p=k.value)==null?void 0:p.$el}),speed:y,isRTL:f,isVertical:g,isLongStrip:x,onLongIdle:()=>t("longIdle")});ue(C.isPlaying,p=>{p||ze(!1),t("playingChanged",p)}),ue(C.isIdle,p=>{C.isPlaying.value&&ze(p)}),ue(o,p=>{!p&&C.isIdle.value?C.awake():p&&n.fullScreen&&ze()});const U=le(()=>!n.touchDevice&&C.isIdle.value&&!o.value),O=le({get(){return W.value},set(p){C.interfere(()=>{W.value=p})}});let R=!1;const Q=pp({page:r,style:c,direction:l,isLongStrip:x,isVertical:g,isRTL:f,spaceTop:le(()=>n.spaceTop),scrollEl:le(()=>{var p;return(p=k.value)==null?void 0:p.$el}),interferePlayer:p=>C.interfere(p),onChangedPage(p){if(p<0||p>=s.value.length+1)return;r.value=p,t("pageChanged",p),p>=s.value.length&&(ze(!1),C.stop()),!R&&p>=s.value.length-2&&(R=!0,t("finished"))}}),oe=()=>C.interfere(()=>ro(100));ef().addListener({onKeyDown:p=>{if(n.tourEnabled)return;const _=x.value&&g.value,I=x.value&&!g.value,z=!x.value&&g.value,M=!x.value&&!g.value;switch(p.key){case" ":p.preventDefault(),x.value?(w(!1),C.toggle()):Pe();break;case"ArrowUp":case"PageUp":_?oe():z&&(p.preventDefault(),gt());break;case"ArrowDown":case"PageDown":_?oe():z&&(p.preventDefault(),Pe());break;case"ArrowLeft":I?oe():M?(p.preventDefault(),en()):g.value&&we();break;case"ArrowRight":I?oe():M?(p.preventDefault(),kn()):g.value&&ee();break}},onKeyUp:p=>{switch(p.key){case"f":nn();break;case"t":tn();break;case"h":w();break}}}),qe(()=>{St("fullscreenchange",()=>{m.value=!!document.fullscreenElement})});function $(){x.value||Q.goToPage(Math.floor(r.value),{smooth:!0})}function L(){if(C.isPlaying.value){!n.fullScreen||!n.touchDevice?C.stop():C.awake();return}ze()}function ee(){var p;Oe((p=N.value)==null?void 0:p.nextPath)}function we(){var p;Oe((p=N.value)==null?void 0:p.prevPath)}function rt(p){var I,z,M;const _=(M=(z=(I=N.value)==null?void 0:I.chapters)==null?void 0:z[p])==null?void 0:M.path;_&&Oe(_)}function Oe(p){p&&(location.href=p.includes("://")?p:location.origin+p)}function en(){f.value?Pe():gt()}function kn(){f.value?gt():Pe()}function gt(){var I;const p=D.value,_=Y.value?p[p.length-1][0].index:(I=p[mt()-1])==null?void 0:I[0].index;_!==void 0?Q.goToPage(_):we()}function Pe(){var _;const p=Y.value?Math.floor(r.value)+1:((_=D.value[mt()+1])==null?void 0:_[0].index)??s.value.length;Q.goToPage(p)}function mt(){const p=Math.floor(r.value),_=D.value.findIndex(I=>I.some(({index:z})=>z===p));return _===-1?D.value.length-1:_}function Pt(){dp(),C.stop(),t("dispose")}async function ze(p){o.value&&!n.fullScreen||t("fullScreenChanged",typeof p=="boolean"?p:!n.fullScreen)}function tn(){n.entryId?h():d()}function nn(){var p,_;document.fullscreenElement?document.exitFullscreen():(_=(p=P.value)==null?void 0:p.$el)==null||_.requestFullscreen()}function d(){C.stop(),t("addEntry")}function h(){C.stop(),t("openEntry",n.entryId)}function w(p){b.value!==p&&(b.value=!b.value,b.value&&C.isPlaying&&C.stop())}return(p,_)=>{const I=ur,z=qi,M=Xi,j=Ki,E=Wi,X=Vi,B=to,q=Hi,G=cr,se=Fi,de=Ri,fe=Ni,me=Bi,Ve=Ai,Et=ji,so=zi,Ht=Li,io=lr,je=ir,Je=Ti,lo=Ci,Ip=xi,Op=oi;return A(),ye(Op,{ref_key:"root",ref:P,"full-screen":!!p.fullScreen,idle:U.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":p.touchDevice,rtl:F(f),onClick:_[11]||(_[11]=at(()=>{},["stop"]))},fs({back:ne(()=>[K(B,{href:p.raw.title.url,title:"Back to manga"},{default:ne(()=>[K(X)]),_:1},8,["href"])]),"chapter-nav":ne(()=>[K(G,{modelValue:N.value.activeIndex,label:N.value.activeLabel,title:"Select chapter",items:N.value.chapters,"onUpdate:modelValue":rt},{item:ne(({item:Ae})=>[xt(Ke(Ae.label),1)]),_:1},8,["modelValue","label","items"]),v.value||S.value?(A(),V("div",_p,[K(B,{title:`${F(f)?"Next":"Prev"} chapter (←)`,href:v.value,disabled:!v.value,class:"!rounded-r-none"},{default:ne(()=>[K(se)]),_:1},8,["title","href","disabled"]),K(B,{title:`${F(f)?"Prev":"Next"} chapter (→)`,href:S.value,disabled:!S.value,class:"!rounded-l-none"},{default:ne(()=>[K(de)]),_:1},8,["title","href","disabled"])])):Le("",!0)]),entry:ne(()=>[K(B,{title:p.entryId?"View entry (T)":"Add to Trackkun (T)","data-tour":"Press here to add this manga to your Trackkun collection",onClick:tn},{default:ne(()=>[p.entryId?(A(),ye(me,{key:0})):(A(),ye(Ve,{key:1}))]),_:1},8,["title"])]),settings:ne(()=>[K(Ht,{"reader-style":F(c),"onUpdate:readerStyle":_[3]||(_[3]=Ae=>be(c)?c.value=Ae:null),direction:F(l),"onUpdate:direction":_[4]||(_[4]=Ae=>be(l)?l.value=Ae:null),gap:F(T),"onUpdate:gap":_[5]||(_[5]=Ae=>be(T)?T.value=Ae:null),speed:F(y),"onUpdate:speed":_[6]||(_[6]=Ae=>be(y)?y.value=Ae:null),zoom:O.value,"onUpdate:zoom":_[7]||(_[7]=Ae=>O.value=Ae),name:p.raw.title.name,webtoon:F(a),disabled:F(i),onHelp:w},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]),"reset-zoom":ne(()=>[K(Qt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ne(()=>[K(Je,{zoom:O.value,onClick:_[9]||(_[9]=at(()=>O.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ne(()=>[H("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Ee({width:`${F(r)/(F(s).length-1)*100}%`})},null,4)]),default:ne(()=>[F(i)||!F(s).length?(A(),ye(I,{key:0})):(A(),V(ge,{key:1},[K(M,{ref_key:"body",ref:k,zoom:O.value,"onUpdate:zoom":_[0]||(_[0]=Ae=>O.value=Ae),pages:F(D),"total-imgs":F(s).length,direction:F(l),gap:F(T),"is-long-strip":F(x),isRTL:F(f),"is-vertical":F(g),"space-top":p.spaceTop,"space-bottom":n.spaceBottom,busy:F(o),idle:U.value,"play-controller":F(C),onPrev:gt,onNext:Pe,onClick:L,onDragEnd:$,onWheelPassive:_[1]||(_[1]=()=>F(C).interfere())},fs({_:2},[!F(i)&&F(s).length?{name:"end",fn:ne(()=>[K(z,{"has-next":!!N.value.nextPath,onNext:ee,onHide:Pt},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","space-bottom","busy","idle","play-controller"]),ft(K(j,{direction:F(l)},null,8,["direction"]),[[ei,!Y.value&&!p.tourEnabled&&!b.value]]),Y.value?Le("",!0):(A(),ye(E,{key:0,playing:!!F(C).isPlaying.value},null,8,["playing"]))],64)),b.value?(A(),ye(lo,{key:2,"touch-device":p.touchDevice,onHide:w},null,8,["touch-device"])):Le("",!0),p.tourEnabled?(A(),ye(Ip,{key:3,onHide:_[10]||(_[10]=()=>t("tourEnabledChanged",!1))})):Le("",!0)]),_:2},[p.touchDevice?void 0:{name:"exit",fn:ne(()=>[K(B,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:Pt},{default:ne(()=>[K(q)]),_:1})]),key:"0"},F(D).length?{name:"page-nav",fn:ne(()=>[K(fe,{"model-value":F(r),disabled:F(i),pages:F(D),"total-imgs":F(s).length,"onUpdate:modelValue":_[2]||(_[2]=Ae=>F(Q).goToPage(Ae))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"1"}:void 0,p.touchDevice?void 0:{name:"full-screen",fn:ne(()=>[K(B,{title:`${m.value?"Exit":"Enter"} fullscreen (F)`,onClick:nn},{default:ne(()=>[m.value?(A(),ye(Et,{key:0})):(A(),ye(so,{key:1}))]),_:1},8,["title"])]),key:"2"},F(x)?{name:"play",fn:ne(()=>[K(B,{"data-tour":"Press here to play like a video",title:`${F(C).isPlaying.value?"Pause":"Play"} (Space)`,disabled:F(i),onClick:_[8]||(_[8]=()=>F(C).toggle())},{default:ne(()=>[F(C).isPlaying.value?(A(),ye(io,{key:0})):(A(),ye(je,{key:1}))]),_:1},8,["title","disabled"])]),key:"3"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),tl=he(bp,[["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: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!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:8px;left:8px;right:8px;top:8px}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.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:4px}.z-50{z-index:50}.z-20{z-index:20}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.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:2px}.h-0{height:0}.h-full{height:100%}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.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:-6px}.-translate-y-1{--tw-translate-y:-4px}.-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:6px}.translate-y-1{--tw-translate-y:4px}.-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:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!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:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.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-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-4{padding-bottom:16px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.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}.opacity-90{opacity:.9}.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-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.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:4px;width:4px}.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-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/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-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}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:inset-3{bottom:12px;left:12px;right:12px;top:12px}.sm\\:w-\\[32rem\\]{width:512px}.sm\\:pb-2{padding-bottom:8px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-0{padding-bottom:0}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
8
|
+
`]]]),yp=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),wp={},xp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Cp=[H("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 kp(e,t){return A(),V("svg",xp,Cp)}const Tp=Object.freeze(Object.defineProperty({__proto__:null,default:he(wp,[["render",kp]])},Symbol.toStringTag,{value:"Module"})),$p=`html.gear-second,html.gear-second *{scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!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}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body iframe,html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;height:0!important;min-height:0!important;min-width:0!important;visibility:hidden!important;width:0!important}html.gear-second body :not(gear-second){opacity:0!important;pointer-events:none!important}html.gear-second body gear-second{bottom:0!important;display:block!important;left:0!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;transform:none!important;visibility:visible!important;z-index:10000000000000000}
|
|
9
|
+
`,Cn="gear-second",hr={raw:{},spec:void 0,page:0,spaceTop:void 0,spaceBottom:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,isAutoShow:void 0,textScaleFactor:void 0,isGuest:void 0,tourEnabled:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},$e={el:void 0,controller:void 0,data:sn({...hr})};async function Sp(e){if($e.controller)return $e.data.raw=e.raw,$e.controller;const t=()=>{$e.el&&(document.body.removeChild($e.el),$e.el=void 0),document.documentElement.classList.remove(Cn),Object.assign($e.data,hr),$e.controller=void 0};return $e.controller={triggerDoubleTap:(n,o)=>Nd(n,o),updateArgs(n){Object.assign($e.data,n),gr()},dispose:t},document.documentElement.classList.add(Cn),await Pp(),Object.assign($e.data,hr,e,{onDispose:()=>{var n;t(),(n=e==null?void 0:e.onDispose)==null||n.call(e)}}),gr(),$e.el||($e.el=document.createElement(Cn),document.body.appendChild($e.el)),$e.controller}async function Pp(){if(window.customElements.get(Cn))return;const e=document.createElement("style");e.appendChild(document.createTextNode($p)),document.head.appendChild(e);const t=vc({styles:[await Ep()],data:()=>({readerData:$e.data}),render(){return Ds(tl,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),gr()},onPageChanged:n=>{var o,r;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n)},onTourEnabledChanged:n=>{this.readerData.tourEnabled=n}})}});window.customElements.define(Cn,t)}async function Ep(){const e=Object.assign({"./TrackkunReader.vue":yp,"./components/AutoNext.vue":np,"./components/BottomSheet.vue":rf,"./components/ButtonDropdown.vue":cd,"./components/ButtonIcon.vue":Yu,"./components/ButtonReaderSettings.vue":Mf,"./components/ButtonResetZoom.vue":Lu,"./components/DirectionToast.vue":Bd,"./components/HelpScreen.vue":ku,"./components/InputPercentage.vue":af,"./components/InputSelect.vue":pf,"./components/LoadingIndicator.vue":Kd,"./components/PageNav.vue":ud,"./components/PauseToast.vue":Od,"./components/ReaderBody.vue":Qd,"./components/ReaderLayout.vue":Bc,"./components/ReaderTour.vue":xu,"./components/TableField.vue":ff,"./components/ZoomWrapper.vue":Rd,"./components/icons/IconBack.vue":Id,"./components/icons/IconBookmarkNew.vue":Yf,"./components/icons/IconBookmarked.vue":Qf,"./components/icons/IconChevronLeft.vue":yd,"./components/icons/IconChevronRight.vue":gd,"./components/icons/IconClose.vue":Qu,"./components/icons/IconExclamationCircle.vue":Tp,"./components/icons/IconFullscreen.vue":Bf,"./components/icons/IconFullscreenExit.vue":Hf,"./components/icons/IconHelp.vue":_f,"./components/icons/IconNext.vue":Ad,"./components/icons/IconPause.vue":Vu,"./components/icons/IconPlay.vue":Du,"./components/icons/IconReaderExit.vue":Td,"./components/icons/IconSettings.vue":Cf,"./components/icons/IconTriangle.vue":od,"./components/icons/IconZoom.vue":Eu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function gr(){if($e.data.adBlock)return;const{spaceTop:e,fullScreen:t}=$e.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}return Sp});
|