gear-second 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(Ne,le){typeof exports=="object"&&typeof module<"u"?module.exports=le():typeof define=="function"&&define.amd?define(le):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Ne._gearSecond_=le())})(this,function(){"use strict";var Dp=Object.defineProperty;var Np=(Ne,le,Ke)=>le in Ne?Dp(Ne,le,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ne[le]=Ke;var rl=(Ne,le,Ke)=>(Np(Ne,typeof le!="symbol"?le+"":le,Ke),Ke);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 le={},Ke=[],et=()=>{},sl=()=>!1,il=/^on[^a-z]/,Sn=e=>il.test(e),co=e=>e.startsWith("onUpdate:"),we=Object.assign,uo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ll=Object.prototype.hasOwnProperty,ce=(e,t)=>ll.call(e,t),ee=Array.isArray,Wt=e=>In(e)==="[object Map]",br=e=>In(e)==="[object Set]",oe=e=>typeof e=="function",xe=e=>typeof e=="string",fo=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",yr=e=>ve(e)&&oe(e.then)&&oe(e.catch),wr=Object.prototype.toString,In=e=>wr.call(e),al=e=>In(e).slice(8,-1),xr=e=>In(e)==="[object Object]",po=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=Ne(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,Re=Tn(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,Ye=Tn(e=>e.replace(ul,"-$1").toLowerCase()),Pn=Tn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ho=Tn(e=>e?`on${Pn(e)}`:""),rn=(e,t)=>!Object.is(e,t),En=(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})},go=e=>{const t=parseFloat(e);return isNaN(t)?e:t},mo=e=>{const t=xe(e)?Number(e):NaN;return isNaN(t)?e:t};let Cr;const vo=()=>Cr||(Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Le(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=xe(o)?hl(o):Le(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(xe(e))return e;if(ve(e))return e}}const fl=/;(?![^(]*\))/g,dl=/:([^]+)/,pl=/\/\*[^]*?\*\//g;function hl(e){const t={};return e.replace(pl,"").split(fl).forEach(n=>{if(n){const o=n.split(dl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function $e(e){let t="";if(xe(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=$e(e[n]);o&&(t+=o+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gl=Ne("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function kr(e){return!!e||e===""}const Xe=e=>xe(e)?e:e==null?"":ee(e)||ve(e)&&(e.toString===wr||!oe(e.toString))?JSON.stringify(e,Sr,2):String(e),Sr=(e,t)=>t&&t.__v_isRef?Sr(e,t.value):Wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:br(t)?{[`Set(${t.size})`]:[...t.values()]}:ve(t)&&!ee(t)&&!xr(t)?String(t):t;let Fe;class ml{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 vl(e,t=Fe){t&&t.active&&t.effects.push(e)}function Ir(){return Fe}function _l(e){Fe&&Fe.cleanups.push(e)}const _o=e=>{const t=new Set(e);return t.w=0,t.n=0,t},$r=e=>(e.w&_t)>0,Tr=e=>(e.n&_t)>0,bl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},yl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];$r(r)&&!Tr(r)?r.delete(e):t[n++]=r,r.w&=~_t,r.n&=~_t}t.length=n}},bo=new WeakMap;let sn=0,_t=1;const yo=30;let tt;const Ot=Symbol(""),wo=Symbol("");class xo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,vl(this,o)}run(){if(!this.active)return this.fn();let t=tt,n=bt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=tt,tt=this,bt=!0,_t=1<<++sn,sn<=yo?bl(this):Pr(this),this.fn()}finally{sn<=yo&&yl(this),_t=1<<--sn,tt=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){tt===this?this.deferStop=!0:this.active&&(Pr(this),this.onStop&&this.onStop(),this.active=!1)}}function Pr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let bt=!0;const Er=[];function Ut(){Er.push(bt),bt=!1}function Kt(){const e=Er.pop();bt=e===void 0?!0:e}function Be(e,t,n){if(bt&&tt){let o=bo.get(e);o||bo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=_o()),Or(r)}}function Or(e,t){let n=!1;sn<=yo?Tr(e)||(e.n|=_t,n=!$r(e)):n=!e.has(tt),n&&(e.add(tt),tt.deps.push(e))}function ft(e,t,n,o,r,s){const i=bo.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ee(e)){const l=Number(o);i.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ee(e)?po(n)&&a.push(i.get("length")):(a.push(i.get(Ot)),Wt(e)&&a.push(i.get(wo)));break;case"delete":ee(e)||(a.push(i.get(Ot)),Wt(e)&&a.push(i.get(wo)));break;case"set":Wt(e)&&a.push(i.get(Ot));break}if(a.length===1)a[0]&&Co(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Co(_o(l))}}function Co(e,t){const n=ee(e)?e:[...e];for(const o of n)o.computed&&Mr(o);for(const o of n)o.computed||Mr(o)}function Mr(e,t){(e!==tt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const wl=Ne("__proto__,__v_isRef,__isVue"),Lr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(fo)),xl=ko(),Cl=ko(!1,!0),kl=ko(!0),zr=Sl();function Sl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ue(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(ue)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ut();const o=ue(this)[t].apply(this,n);return Kt(),o}}),e}function Il(e){const t=ue(this);return Be(t,"has",e),t.hasOwnProperty(e)}function ko(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?Vl:Hr:t?Vr:Fr).get(o))return o;const i=ee(o);if(!e){if(i&&ce(zr,r))return Reflect.get(zr,r,s);if(r==="hasOwnProperty")return Il}const a=Reflect.get(o,r,s);return(fo(r)?Lr.has(r):wl(r))||(e||Be(o,"get",r),t)?a:Ce(a)?i&&po(r)?a:a.value:ve(a)?e?$o(a):ln(a):a}}const $l=jr(),Tl=jr(!0);function jr(e=!1){return function(n,o,r,s){let i=n[o];if(Xt(i)&&Ce(i)&&!Ce(r))return!1;if(!e&&(!Dn(r)&&!Xt(r)&&(i=ue(i),r=ue(r)),!ee(n)&&Ce(i)&&!Ce(r)))return i.value=r,!0;const a=ee(n)&&po(o)?Number(o)<n.length:ce(n,o),l=Reflect.set(n,o,r,s);return n===ue(s)&&(a?rn(r,i)&&ft(n,"set",o,r):ft(n,"add",o,r)),l}}function Pl(e,t){const n=ce(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&ft(e,"delete",t,void 0),o}function El(e,t){const n=Reflect.has(e,t);return(!fo(t)||!Lr.has(t))&&Be(e,"has",t),n}function Ol(e){return Be(e,"iterate",ee(e)?"length":Ot),Reflect.ownKeys(e)}const Ar={get:xl,set:$l,deleteProperty:Pl,has:El,ownKeys:Ol},Ml={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ll=we({},Ar,{get:Cl,set:Tl}),So=e=>e,Mn=e=>Reflect.getPrototypeOf(e);function Ln(e,t,n=!1,o=!1){e=e.__v_raw;const r=ue(e),s=ue(t);n||(t!==s&&Be(r,"get",t),Be(r,"get",s));const{has:i}=Mn(r),a=o?So:n?Po:an;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=ue(n),r=ue(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(ue(e),"iterate",Ot),Reflect.get(e,"size",e)}function Br(e){e=ue(e);const t=ue(this);return Mn(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function Dr(e,t){t=ue(t);const n=ue(this),{has:o,get:r}=Mn(n);let s=o.call(n,e);s||(e=ue(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?rn(t,i)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function Nr(e){const t=ue(this),{has:n,get:o}=Mn(t);let r=n.call(t,e);r||(e=ue(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&ft(t,"delete",e,void 0),s}function Rr(){const e=ue(this),t=e.size!==0,n=e.clear();return t&&ft(e,"clear",void 0,void 0),n}function An(e,t){return function(o,r){const s=this,i=s.__v_raw,a=ue(i),l=t?So:e?Po:an;return!e&&Be(a,"iterate",Ot),i.forEach((c,u)=>o.call(r,l(c),l(u),s))}}function Bn(e,t,n){return function(...o){const r=this.__v_raw,s=ue(r),i=Wt(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...o),u=n?So:t?Po:an;return!t&&Be(s,"iterate",l?wo:Ot),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:a?[u(d[0]),u(d[1])]:u(d),done:m}},[Symbol.iterator](){return this}}}}function yt(e){return function(...t){return e==="delete"?!1:this}}function zl(){const e={get(s){return Ln(this,s)},get size(){return jn(this)},has:zn,add:Br,set:Dr,delete:Nr,clear:Rr,forEach:An(!1,!1)},t={get(s){return Ln(this,s,!1,!0)},get size(){return jn(this)},has:zn,add:Br,set:Dr,delete:Nr,clear:Rr,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:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("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:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("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[jl,Al,Bl,Dl]=zl();function Io(e,t){const n=t?e?Dl:Bl:e?Al:jl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ce(n,r)&&r in o?n:o,r,s)}const Nl={get:Io(!1,!1)},Rl={get:Io(!1,!0)},Fl={get:Io(!0,!1)},Fr=new WeakMap,Vr=new WeakMap,Hr=new WeakMap,Vl=new WeakMap;function Hl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:Hl(al(e))}function ln(e){return Xt(e)?e:To(e,!1,Ar,Nl,Fr)}function Ul(e){return To(e,!1,Ll,Rl,Vr)}function $o(e){return To(e,!0,Ml,Fl,Hr)}function To(e,t,n,o,r){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Wl(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Yt(e){return Xt(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function Dn(e){return!!(e&&e.__v_isShallow)}function Wr(e){return Yt(e)||Xt(e)}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function Ur(e){return On(e,"__v_skip",!0),e}const an=e=>ve(e)?ln(e):e,Po=e=>ve(e)?$o(e):e;function Kr(e){bt&&tt&&(e=ue(e),Or(e.dep||(e.dep=_o())))}function Yr(e,t){e=ue(e);const n=e.dep;n&&Co(n)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function Q(e){return Xr(e,!1)}function Kl(e){return Xr(e,!0)}function Xr(e,t){return Ce(e)?e:new Yl(e,t)}class Yl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ue(t),this._value=n?t:an(t)}get value(){return Kr(this),this._value}set value(t){const n=this.__v_isShallow||Dn(t)||Xt(t);t=n?t:ue(t),rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:an(t),Yr(this))}}function Z(e){return Ce(e)?e.value:e}const Xl={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function qr(e){return Yt(e)?e:new Proxy(e,Xl)}class ql{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 xo(t,()=>{this._dirty||(this._dirty=!0,Yr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ue(this);return Kr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zl(e,t,n=!1){let o,r;const s=oe(e);return s?(o=e,r=et):(o=e.get,r=e.set),new ql(o,r,s||!r,n)}function Fp(e,...t){}function wt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){Nn(s,t,n)}return r}function qe(e,t,n,o){if(oe(e)){const s=wt(e,t,n,o);return s&&yr(s)&&s.catch(i=>{Nn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(qe(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 u=0;u<c.length;u++)if(c[u](e,i,a)===!1)return}s=s.parent}const l=t.appContext.config.errorHandler;if(l){wt(l,null,10,[e,i,a]);return}}Jl(e,n,r,o)}function Jl(e,t,n,o=!0){console.error(e)}let cn=!1,Eo=!1;const Oe=[];let lt=0;const qt=[];let dt=null,Mt=0;const Zr=Promise.resolve();let Oo=null;function Ze(e){const t=Oo||Zr;return e?t.then(this?e.bind(this):e):t}function Ql(e){let t=lt+1,n=Oe.length;for(;t<n;){const o=t+n>>>1;un(Oe[o])<e?t=o+1:n=o}return t}function Mo(e){(!Oe.length||!Oe.includes(e,cn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Oe.push(e):Oe.splice(Ql(e.id),0,e),Jr())}function Jr(){!cn&&!Eo&&(Eo=!0,Oo=Zr.then(es))}function Gl(e){const t=Oe.indexOf(e);t>lt&&Oe.splice(t,1)}function ea(e){ee(e)?qt.push(...e):(!dt||!dt.includes(e,e.allowRecurse?Mt+1:Mt))&&qt.push(e),Jr()}function Qr(e,t=cn?lt+1:0){for(;t<Oe.length;t++){const n=Oe[t];n&&n.pre&&(Oe.splice(t,1),t--,n())}}function Gr(e){if(qt.length){const t=[...new Set(qt)];if(qt.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,o)=>un(n)-un(o)),Mt=0;Mt<dt.length;Mt++)dt[Mt]();dt=null,Mt=0}}const un=e=>e.id==null?1/0:e.id,ta=(e,t)=>{const n=un(e)-un(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function es(e){Eo=!1,cn=!0,Oe.sort(ta);const t=et;try{for(lt=0;lt<Oe.length;lt++){const n=Oe[lt];n&&n.active!==!1&&wt(n,null,14)}}finally{lt=0,Oe.length=0,Gr(),cn=!1,Oo=null,(Oe.length||qt.length)&&es()}}function na(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||le;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:m}=o[u]||le;m&&(r=n.map(y=>xe(y)?y.trim():y)),d&&(r=n.map(go))}let a,l=o[a=ho(t)]||o[a=ho(Re(t))];!l&&s&&(l=o[a=ho(Ye(t))]),l&&qe(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,qe(c,e,6,r)}}function ts(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(!oe(e)){const l=c=>{const u=ts(c,t,!0);u&&(a=!0,we(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(ve(e)&&o.set(e,null),null):(ee(s)?s.forEach(l=>i[l]=null):we(i,s),ve(e)&&o.set(e,i),i)}function Rn(e,t){return!e||!Sn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,Ye(t))||ce(e,t))}let Ee=null,ns=null;function Fn(e){const t=Ee;return Ee=e,ns=e&&e.type.__scopeId||null,t}function re(e,t=Ee,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ms(-1);const s=Fn(t);let i;try{i=e(...r)}finally{Fn(s),o._d&&Ms(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Vp(){}function Lo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:d,data:m,setupState:y,ctx:O,inheritAttrs:k}=e;let j,U;const V=Fn(e);try{if(n.shapeFlag&4){const p=r||o;j=ct(u.call(p,p,d,s,y,m,O)),U=l}else{const p=t;j=ct(p.length>1?p(s,{attrs:l,slots:a,emit:c}):p(s,null)),U=t.props?l:oa(l)}}catch(p){gn.length=0,Nn(p,e,1),j=J(Qe)}let M=j;if(U&&k!==!1){const p=Object.keys(U),{shapeFlag:I}=M;p.length&&I&7&&(i&&p.some(co)&&(U=ra(U,i)),M=xt(M,U))}return n.dirs&&(M=xt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),j=M,Fn(V),j}const oa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sn(n))&&((t||(t={}))[n]=e[n]);return t},ra=(e,t)=>{const n={};for(const o in e)(!co(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function sa(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?os(o,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const m=u[d];if(i[m]!==o[m]&&!Rn(c,m))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?os(o,i,c):!0:!!i;return!1}function os(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 ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const la=e=>e.__isSuspense;function aa(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ea(e)}function ca(e,t){return zo(e,null,t)}const Vn={};function fe(e,t,n){return zo(e,t,n)}function zo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=le){var a;const l=Ir()===((a=Te)==null?void 0:a.scope)?Te:null;let c,u=!1,d=!1;if(Ce(e)?(c=()=>e.value,u=Dn(e)):Yt(e)?(c=()=>e,o=!0):ee(e)?(d=!0,u=e.some(p=>Yt(p)||Dn(p)),c=()=>e.map(p=>{if(Ce(p))return p.value;if(Yt(p))return Lt(p);if(oe(p))return wt(p,l,2)})):oe(e)?t?c=()=>wt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return m&&m(),qe(e,l,3,[y])}:c=et,t&&o){const p=c;c=()=>Lt(p())}let m,y=p=>{m=V.onStop=()=>{wt(p,l,4)}},O;if(vn)if(y=et,t?n&&qe(t,l,3,[c(),d?[]:void 0,y]):c(),r==="sync"){const p=tc();O=p.__watcherHandles||(p.__watcherHandles=[])}else return et;let k=d?new Array(e.length).fill(Vn):Vn;const j=()=>{if(V.active)if(t){const p=V.run();(o||u||(d?p.some((I,S)=>rn(I,k[S])):rn(p,k)))&&(m&&m(),qe(t,l,3,[p,k===Vn?void 0:d&&k[0]===Vn?[]:k,y]),k=p)}else V.run()};j.allowRecurse=!!t;let U;r==="sync"?U=j:r==="post"?U=()=>De(j,l&&l.suspense):(j.pre=!0,l&&(j.id=l.uid),U=()=>Mo(j));const V=new xo(c,U);t?n?j():k=V.run():r==="post"?De(V.run.bind(V),l&&l.suspense):V.run();const M=()=>{V.stop(),l&&l.scope&&uo(l.scope.effects,V)};return O&&O.push(M),M}function ua(e,t,n){const o=this.proxy,r=xe(e)?e.includes(".")?rs(o,e):()=>o[e]:e.bind(o,o);let s;oe(t)?s=t:(s=t.handler,n=t);const i=Te;Jt(this);const a=zo(r,s.bind(o),n);return i?Jt(i):Dt(),a}function rs(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 Lt(e,t){if(!ve(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ce(e))Lt(e.value,t);else if(ee(e))for(let n=0;n<e.length;n++)Lt(e[n],t);else if(br(e)||Wt(e))e.forEach(n=>{Lt(n,t)});else if(xr(e))for(const n in e)Lt(e[n],t);return e}function at(e,t){const n=Ee;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=le]=t[s];i&&(oe(i)&&(i={mounted:i,updated:i}),i.deep&&Lt(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function zt(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&&(Ut(),qe(l,n,8,[e.el,a,e,t]),Kt())}}function fa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ve(()=>{e.isMounted=!0}),us(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],ss={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},da={name:"BaseTransition",props:ss,setup(e,{slots:t}){const n=js(),o=fa();let r;return()=>{const s=t.default&&as(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const k of s)if(k.type!==Qe){i=k;break}}const a=ue(e),{mode:l}=a;if(o.isLeaving)return Ao(i);const c=ls(i);if(!c)return Ao(i);const u=jo(c,a,o,n);Bo(c,u);const d=n.subTree,m=d&&ls(d);let y=!1;const{getTransitionKey:O}=c.type;if(O){const k=O();r===void 0?r=k:k!==r&&(r=k,y=!0)}if(m&&m.type!==Qe&&(!Bt(c,m)||y)){const k=jo(m,a,o,n);if(Bo(m,k),l==="out-in")return o.isLeaving=!0,k.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Ao(i);l==="in-out"&&c.type!==Qe&&(k.delayLeave=(j,U,V)=>{const M=is(o,m);M[String(m.key)]=m,j._leaveCb=()=>{U(),j._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=V})}return i}}};function is(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 jo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:m,onAfterLeave:y,onLeaveCancelled:O,onBeforeAppear:k,onAppear:j,onAfterAppear:U,onAppearCancelled:V}=t,M=String(e.key),p=is(n,e),I=(v,D)=>{v&&qe(v,o,9,D)},S=(v,D)=>{const A=D[1];I(v,D),ee(v)?v.every(H=>H.length<=1)&&A():v.length<=1&&A()},P={mode:s,persisted:i,beforeEnter(v){let D=a;if(!n.isMounted)if(r)D=k||a;else return;v._leaveCb&&v._leaveCb(!0);const A=p[M];A&&Bt(e,A)&&A.el._leaveCb&&A.el._leaveCb(),I(D,[v])},enter(v){let D=l,A=c,H=u;if(!n.isMounted)if(r)D=j||l,A=U||c,H=V||u;else return;let E=!1;const x=v._enterCb=N=>{E||(E=!0,N?I(H,[v]):I(A,[v]),P.delayedLeave&&P.delayedLeave(),v._enterCb=void 0)};D?S(D,[v,x]):x()},leave(v,D){const A=String(e.key);if(v._enterCb&&v._enterCb(!0),n.isUnmounting)return D();I(d,[v]);let H=!1;const E=v._leaveCb=x=>{H||(H=!0,D(),x?I(O,[v]):I(y,[v]),v._leaveCb=void 0,p[A]===e&&delete p[A])};p[A]=e,m?S(m,[v,E]):E()},clone(v){return jo(v,t,n,o)}};return P}function Ao(e){if(Hn(e))return e=xt(e),e.children=null,e}function ls(e){return Hn(e)?e.children?e.children[0]:void 0:e}function Bo(e,t){e.shapeFlag&6&&e.component?Bo(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 as(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===be?(i.patchFlag&128&&r++,o=o.concat(as(i.children,t,a))):(t||i.type!==Qe)&&o.push(a!=null?xt(i,{key:a}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function ke(e,t){return oe(e)?(()=>we({name:e.name},t,{setup:e}))():e}const fn=e=>!!e.type.__asyncLoader,Hn=e=>e.type.__isKeepAlive;function pa(e,t){cs(e,"a",t)}function ha(e,t){cs(e,"da",t)}function cs(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;)Hn(r.parent.vnode)&&ga(o,t,n,r),r=r.parent}}function ga(e,t,n,o){const r=Wn(t,e,o,!0);He(()=>{uo(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;Ut(),Jt(n);const a=qe(t,n,e,i);return Dt(),Kt(),a});return o?r.unshift(s):r.push(s),s}}const pt=e=>(t,n=Te)=>(!vn||e==="sp")&&Wn(e,(...o)=>t(...o),n),ma=pt("bm"),Ve=pt("m"),va=pt("bu"),_a=pt("u"),us=pt("bum"),He=pt("um"),ba=pt("sp"),ya=pt("rtg"),wa=pt("rtc");function xa(e,t=Te){Wn("ec",e,t)}const fs="components",ds=Symbol.for("v-ndc");function Ca(e){return xe(e)?ka(fs,e,!1)||e:e||ds}function ka(e,t,n=!0,o=!1){const r=Ee||Te;if(r){const s=r.type;if(e===fs){const a=Qa(s,!1);if(a&&(a===t||a===Re(t)||a===Pn(Re(t))))return s}const i=ps(r[e]||s[e],t)||ps(r.appContext[e],t);return!i&&o?s:i}}function ps(e,t){return e&&(e[t]||e[Re(t)]||e[Pn(Re(t))])}function dn(e,t,n,o){let r;const s=n&&n[o];if(ee(e)||xe(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(ve(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 hs(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(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 Se(e,t,n={},o,r){if(Ee.isCE||Ee.parent&&fn(Ee.parent)&&Ee.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),B();const i=s&&gs(s(n)),a=Ie(be,{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 gs(e){return e.some(t=>qn(t)?!(t.type===Qe||t.type===be&&!gs(t.children)):!0)?e:null}const Do=e=>e?Bs(e)?Gn(e)||e.proxy:Do(e.parent):null,pn=we(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=>Do(e.parent),$root:e=>Do(e.root),$emit:e=>e.emit,$options:e=>Fo(e),$forceUpdate:e=>e.f||(e.f=()=>Mo(e.update)),$nextTick:e=>e.n||(e.n=Ze.bind(e.proxy)),$watch:e=>ua.bind(e)}),No=(e,t)=>e!==le&&!e.__isScriptSetup&&ce(e,t),Sa={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 y=i[t];if(y!==void 0)switch(y){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(No(o,t))return i[t]=1,o[t];if(r!==le&&ce(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ce(c,t))return i[t]=3,s[t];if(n!==le&&ce(n,t))return i[t]=4,n[t];Ro&&(i[t]=0)}}const u=pn[t];let d,m;if(u)return t==="$attrs"&&Be(e,"get",t),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==le&&ce(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,ce(m,t))return m[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return No(r,t)?(r[t]=n,!0):o!==le&&ce(o,t)?(o[t]=n,!0):ce(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!==le&&ce(e,i)||No(t,i)||(a=s[0])&&ce(a,i)||ce(o,i)||ce(pn,i)||ce(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ms(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function Ia(e){const t=Fo(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&vs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:m,beforeUpdate:y,updated:O,activated:k,deactivated:j,beforeDestroy:U,beforeUnmount:V,destroyed:M,unmounted:p,render:I,renderTracked:S,renderTriggered:P,errorCaptured:v,serverPrefetch:D,expose:A,inheritAttrs:H,components:E,directives:x,filters:N}=t;if(c&&$a(c,o,null),i)for(const F in i){const Y=i[F];oe(Y)&&(o[F]=Y.bind(n))}if(r){const F=r.call(n,n);ve(F)&&(e.data=ln(F))}if(Ro=!0,s)for(const F in s){const Y=s[F],te=oe(Y)?Y.bind(n,n):oe(Y.get)?Y.get.bind(n,n):et,he=!oe(Y)&&oe(Y.set)?Y.set.bind(n):et,ge=se({get:te,set:he});Object.defineProperty(o,F,{enumerable:!0,configurable:!0,get:()=>ge.value,set:de=>ge.value=de})}if(a)for(const F in a)_s(a[F],o,n,F);if(l){const F=oe(l)?l.call(n):l;Reflect.ownKeys(F).forEach(Y=>{Yn(Y,F[Y])})}u&&vs(u,e,"c");function b(F,Y){ee(Y)?Y.forEach(te=>F(te.bind(n))):Y&&F(Y.bind(n))}if(b(ma,d),b(Ve,m),b(va,y),b(_a,O),b(pa,k),b(ha,j),b(xa,v),b(wa,S),b(ya,P),b(us,V),b(He,p),b(ba,D),ee(A))if(A.length){const F=e.exposed||(e.exposed={});A.forEach(Y=>{Object.defineProperty(F,Y,{get:()=>n[Y],set:te=>n[Y]=te})})}else e.exposed||(e.exposed={});I&&e.render===et&&(e.render=I),H!=null&&(e.inheritAttrs=H),E&&(e.components=E),x&&(e.directives=x)}function $a(e,t,n=et){ee(e)&&(e=Vo(e));for(const o in e){const r=e[o];let s;ve(r)?"default"in r?s=jt(r.from||o,r.default,!0):s=jt(r.from||o):s=jt(r),Ce(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function vs(e,t,n){qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function _s(e,t,n,o){const r=o.includes(".")?rs(n,o):()=>n[o];if(xe(e)){const s=t[e];oe(s)&&fe(r,s)}else if(oe(e))fe(r,e.bind(n));else if(ve(e))if(ee(e))e.forEach(s=>_s(s,t,n,o));else{const s=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(s)&&fe(r,s,e)}}function Fo(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)),ve(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=Ta[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ta={data:bs,props:ys,emits:ys,methods:hn,computed:hn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:hn,directives:hn,watch:Ea,provide:bs,inject:Pa};function bs(e,t){return t?e?function(){return we(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function Pa(e,t){return hn(Vo(e),Vo(t))}function Vo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function hn(e,t){return e?we(Object.create(null),e,t):t}function ys(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:we(Object.create(null),ms(e),ms(t??{})):t}function Ea(e,t){if(!e)return t;if(!t)return e;const n=we(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function ws(){return{app:null,config:{isNativeTag:sl,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 Oa=0;function Ma(e,t){return function(o,r=null){oe(o)||(o=we({},o)),r!=null&&!ve(r)&&(r=null);const s=ws(),i=new Set;let a=!1;const l=s.app={_uid:Oa++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:nc,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&oe(c.install)?(i.add(c),c.install(l,...u)):oe(c)&&(i.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,d){if(!a){const m=J(o,r);return m.appContext=s,u&&t?t(m,c):e(m,c,d),a=!0,l._container=c,c.__vue_app__=l,Gn(m.component)||m.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,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 jt(e,t,n=!1){const o=Te||Ee;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&&oe(t)?t.call(o&&o.proxy):t}}function La(e,t,n,o=!1){const r={},s={};On(s,Zn,1),e.propsDefaults=Object.create(null),xs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Ul(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function za(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,a=ue(r),[l]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let m=u[d];if(Rn(e.emitsOptions,m))continue;const y=t[m];if(l)if(ce(s,m))y!==s[m]&&(s[m]=y,c=!0);else{const O=Re(m);r[O]=Ho(l,a,O,y,e,!1)}else y!==s[m]&&(s[m]=y,c=!0)}}}else{xs(e,t,r,s)&&(c=!0);let u;for(const d in a)(!t||!ce(t,d)&&((u=Ye(d))===d||!ce(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ho(l,a,d,void 0,e,!0)):delete r[d]);if(s!==a)for(const d in s)(!t||!ce(t,d))&&(delete s[d],c=!0)}c&&ft(e,"set","$attrs")}function xs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if($n(l))continue;const c=t[l];let u;r&&ce(r,u=Re(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:Rn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,i=!0)}if(s){const l=ue(n),c=a||le;for(let u=0;u<s.length;u++){const d=s[u];n[d]=Ho(r,l,d,c[d],e,!ce(c,d))}}return i}function Ho(e,t,n,o,r,s){const i=e[n];if(i!=null){const a=ce(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&oe(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Jt(r),o=c[n]=l.call(null,t),Dt())}else o=l}i[0]&&(s&&!a?o=!1:i[1]&&(o===""||o===Ye(n))&&(o=!0))}return o}function Cs(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(!oe(e)){const u=d=>{l=!0;const[m,y]=Cs(d,t,!0);we(i,m),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return ve(e)&&o.set(e,Ke),Ke;if(ee(s))for(let u=0;u<s.length;u++){const d=Re(s[u]);ks(d)&&(i[d]=le)}else if(s)for(const u in s){const d=Re(u);if(ks(d)){const m=s[u],y=i[d]=ee(m)||oe(m)?{type:m}:we({},m);if(y){const O=$s(Boolean,y.type),k=$s(String,y.type);y[0]=O>-1,y[1]=k<0||O<k,(O>-1||ce(y,"default"))&&a.push(d)}}}const c=[i,a];return ve(e)&&o.set(e,c),c}function ks(e){return e[0]!=="$"}function Ss(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Is(e,t){return Ss(e)===Ss(t)}function $s(e,t){return ee(t)?t.findIndex(n=>Is(n,e)):oe(t)&&Is(t,e)?0:-1}const Ts=e=>e[0]==="_"||e==="$stable",Wo=e=>ee(e)?e.map(ct):[ct(e)],ja=(e,t,n)=>{if(t._n)return t;const o=re((...r)=>Wo(t(...r)),n);return o._c=!1,o},Ps=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ts(r))continue;const s=e[r];if(oe(s))t[r]=ja(r,s,o);else if(s!=null){const i=Wo(s);t[r]=()=>i}}},Es=(e,t)=>{const n=Wo(t);e.slots.default=()=>n},Aa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ue(t),On(t,"_",n)):Ps(t,e.slots={})}else e.slots={},t&&Es(e,t);On(e.slots,Zn,1)},Ba=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=le;if(o.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(we(r,t),!n&&a===1&&delete r._):(s=!t.$stable,Ps(t,r)),i=t}else t&&(Es(e,t),i={default:1});if(s)for(const a in r)!Ts(a)&&!(a in i)&&delete r[a]};function Uo(e,t,n,o,r=!1){if(ee(e)){e.forEach((m,y)=>Uo(m,t&&(ee(t)?t[y]:t),n,o,r));return}if(fn(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,u=a.refs===le?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(xe(c)?(u[c]=null,ce(d,c)&&(d[c]=null)):Ce(c)&&(c.value=null)),oe(l))wt(l,a,12,[i,u]);else{const m=xe(l),y=Ce(l);if(m||y){const O=()=>{if(e.f){const k=m?ce(d,l)?d[l]:u[l]:l.value;r?ee(k)&&uo(k,s):ee(k)?k.includes(s)||k.push(s):m?(u[l]=[s],ce(d,l)&&(d[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else m?(u[l]=i,ce(d,l)&&(d[l]=i)):y&&(l.value=i,e.k&&(u[e.k]=i))};i?(O.id=-1,De(O,n)):O()}}}const De=aa;function Da(e){return Na(e)}function Na(e,t){const n=vo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:m,setScopeId:y=et,insertStaticContent:O}=e,k=(f,h,w,$=null,T=null,z=null,R=!1,g=null,_=!!h.dynamicChildren)=>{if(f===h)return;f&&!Bt(f,h)&&($=nn(f),de(f,T,z,!0),f=null),h.patchFlag===-2&&(_=!1,h.dynamicChildren=null);const{type:C,ref:K,shapeFlag:W}=h;switch(C){case Xn:j(f,h,w,$);break;case Qe:U(f,h,w,$);break;case Ko:f==null&&V(h,w,$,R);break;case be:E(f,h,w,$,T,z,R,g,_);break;default:W&1?I(f,h,w,$,T,z,R,g,_):W&6?x(f,h,w,$,T,z,R,g,_):(W&64||W&128)&&C.process(f,h,w,$,T,z,R,g,_,st)}K!=null&&T&&Uo(K,f&&f.ref,z,h||f,!h)},j=(f,h,w,$)=>{if(f==null)o(h.el=a(h.children),w,$);else{const T=h.el=f.el;h.children!==f.children&&c(T,h.children)}},U=(f,h,w,$)=>{f==null?o(h.el=l(h.children||""),w,$):h.el=f.el},V=(f,h,w,$)=>{[f.el,f.anchor]=O(f.children,h,w,$,f.el,f.anchor)},M=({el:f,anchor:h},w,$)=>{let T;for(;f&&f!==h;)T=m(f),o(f,w,$),f=T;o(h,w,$)},p=({el:f,anchor:h})=>{let w;for(;f&&f!==h;)w=m(f),r(f),f=w;r(h)},I=(f,h,w,$,T,z,R,g,_)=>{R=R||h.type==="svg",f==null?S(h,w,$,T,z,R,g,_):D(f,h,T,z,R,g,_)},S=(f,h,w,$,T,z,R,g)=>{let _,C;const{type:K,props:W,shapeFlag:G,transition:ne,dirs:ie}=f;if(_=f.el=i(f.type,z,W&&W.is,W),G&8?u(_,f.children):G&16&&v(f.children,_,null,$,T,z&&K!=="foreignObject",R,g),ie&&zt(f,null,$,"created"),P(_,f,f.scopeId,R,$),W){for(const pe in W)pe!=="value"&&!$n(pe)&&s(_,pe,null,W[pe],z,f.children,$,T,Me);"value"in W&&s(_,"value",null,W.value),(C=W.onVnodeBeforeMount)&&ut(C,$,f)}ie&&zt(f,null,$,"beforeMount");const ae=(!T||T&&!T.pendingBranch)&&ne&&!ne.persisted;ae&&ne.beforeEnter(_),o(_,h,w),((C=W&&W.onVnodeMounted)||ae||ie)&&De(()=>{C&&ut(C,$,f),ae&&ne.enter(_),ie&&zt(f,null,$,"mounted")},T)},P=(f,h,w,$,T)=>{if(w&&y(f,w),$)for(let z=0;z<$.length;z++)y(f,$[z]);if(T){let z=T.subTree;if(h===z){const R=T.vnode;P(f,R,R.scopeId,R.slotScopeIds,T.parent)}}},v=(f,h,w,$,T,z,R,g,_=0)=>{for(let C=_;C<f.length;C++){const K=f[C]=g?kt(f[C]):ct(f[C]);k(null,K,h,w,$,T,z,R,g)}},D=(f,h,w,$,T,z,R)=>{const g=h.el=f.el;let{patchFlag:_,dynamicChildren:C,dirs:K}=h;_|=f.patchFlag&16;const W=f.props||le,G=h.props||le;let ne;w&&At(w,!1),(ne=G.onVnodeBeforeUpdate)&&ut(ne,w,h,f),K&&zt(h,f,w,"beforeUpdate"),w&&At(w,!0);const ie=T&&h.type!=="foreignObject";if(C?A(f.dynamicChildren,C,g,w,$,ie,z):R||Y(f,h,g,null,w,$,ie,z,!1),_>0){if(_&16)H(g,h,W,G,w,$,T);else if(_&2&&W.class!==G.class&&s(g,"class",null,G.class,T),_&4&&s(g,"style",W.style,G.style,T),_&8){const ae=h.dynamicProps;for(let pe=0;pe<ae.length;pe++){const ye=ae[pe],Ue=W[ye],Et=G[ye];(Et!==Ue||ye==="value")&&s(g,ye,Ue,Et,T,f.children,w,$,Me)}}_&1&&f.children!==h.children&&u(g,h.children)}else!R&&C==null&&H(g,h,W,G,w,$,T);((ne=G.onVnodeUpdated)||K)&&De(()=>{ne&&ut(ne,w,h,f),K&&zt(h,f,w,"updated")},$)},A=(f,h,w,$,T,z,R)=>{for(let g=0;g<h.length;g++){const _=f[g],C=h[g],K=_.el&&(_.type===be||!Bt(_,C)||_.shapeFlag&70)?d(_.el):w;k(_,C,K,null,$,T,z,R,!0)}},H=(f,h,w,$,T,z,R)=>{if(w!==$){if(w!==le)for(const g in w)!$n(g)&&!(g in $)&&s(f,g,w[g],null,R,h.children,T,z,Me);for(const g in $){if($n(g))continue;const _=$[g],C=w[g];_!==C&&g!=="value"&&s(f,g,C,_,R,h.children,T,z,Me)}"value"in $&&s(f,"value",w.value,$.value)}},E=(f,h,w,$,T,z,R,g,_)=>{const C=h.el=f?f.el:a(""),K=h.anchor=f?f.anchor:a("");let{patchFlag:W,dynamicChildren:G,slotScopeIds:ne}=h;ne&&(g=g?g.concat(ne):ne),f==null?(o(C,w,$),o(K,w,$),v(h.children,w,K,T,z,R,g,_)):W>0&&W&64&&G&&f.dynamicChildren?(A(f.dynamicChildren,G,w,T,z,R,g),(h.key!=null||T&&h===T.subTree)&&Os(f,h,!0)):Y(f,h,w,K,T,z,R,g,_)},x=(f,h,w,$,T,z,R,g,_)=>{h.slotScopeIds=g,f==null?h.shapeFlag&512?T.ctx.activate(h,w,$,R,_):N(h,w,$,T,z,R,_):L(f,h,_)},N=(f,h,w,$,T,z,R)=>{const g=f.component=Ya(f,$,T);if(Hn(f)&&(g.ctx.renderer=st),Xa(g),g.asyncDep){if(T&&T.registerDep(g,b),!f.el){const _=g.subTree=J(Qe);U(null,_,h,w)}return}b(g,f,h,w,T,z,R)},L=(f,h,w)=>{const $=h.component=f.component;if(sa(f,h,w))if($.asyncDep&&!$.asyncResolved){F($,h,w);return}else $.next=h,Gl($.update),$.update();else h.el=f.el,$.vnode=h},b=(f,h,w,$,T,z,R)=>{const g=()=>{if(f.isMounted){let{next:K,bu:W,u:G,parent:ne,vnode:ie}=f,ae=K,pe;At(f,!1),K?(K.el=ie.el,F(f,K,R)):K=ie,W&&En(W),(pe=K.props&&K.props.onVnodeBeforeUpdate)&&ut(pe,ne,K,ie),At(f,!0);const ye=Lo(f),Ue=f.subTree;f.subTree=ye,k(Ue,ye,d(Ue.el),nn(Ue),f,T,z),K.el=ye.el,ae===null&&ia(f,ye.el),G&&De(G,T),(pe=K.props&&K.props.onVnodeUpdated)&&De(()=>ut(pe,ne,K,ie),T)}else{let K;const{el:W,props:G}=h,{bm:ne,m:ie,parent:ae}=f,pe=fn(h);if(At(f,!1),ne&&En(ne),!pe&&(K=G&&G.onVnodeBeforeMount)&&ut(K,ae,h),At(f,!0),W&&on){const ye=()=>{f.subTree=Lo(f),on(W,f.subTree,f,T,null)};pe?h.type.__asyncLoader().then(()=>!f.isUnmounted&&ye()):ye()}else{const ye=f.subTree=Lo(f);k(null,ye,w,$,f,T,z),h.el=ye.el}if(ie&&De(ie,T),!pe&&(K=G&&G.onVnodeMounted)){const ye=h;De(()=>ut(K,ae,ye),T)}(h.shapeFlag&256||ae&&fn(ae.vnode)&&ae.vnode.shapeFlag&256)&&f.a&&De(f.a,T),f.isMounted=!0,h=w=$=null}},_=f.effect=new xo(g,()=>Mo(C),f.scope),C=f.update=()=>_.run();C.id=f.uid,At(f,!0),C()},F=(f,h,w)=>{h.component=f;const $=f.vnode.props;f.vnode=h,f.next=null,za(f,h.props,$,w),Ba(f,h.children,w),Ut(),Qr(),Kt()},Y=(f,h,w,$,T,z,R,g,_=!1)=>{const C=f&&f.children,K=f?f.shapeFlag:0,W=h.children,{patchFlag:G,shapeFlag:ne}=h;if(G>0){if(G&128){he(C,W,w,$,T,z,R,g,_);return}else if(G&256){te(C,W,w,$,T,z,R,g,_);return}}ne&8?(K&16&&Me(C,T,z),W!==C&&u(w,W)):K&16?ne&16?he(C,W,w,$,T,z,R,g,_):Me(C,T,z,!0):(K&8&&u(w,""),ne&16&&v(W,w,$,T,z,R,g,_))},te=(f,h,w,$,T,z,R,g,_)=>{f=f||Ke,h=h||Ke;const C=f.length,K=h.length,W=Math.min(C,K);let G;for(G=0;G<W;G++){const ne=h[G]=_?kt(h[G]):ct(h[G]);k(f[G],ne,w,null,T,z,R,g,_)}C>K?Me(f,T,z,!0,!1,W):v(h,w,$,T,z,R,g,_,W)},he=(f,h,w,$,T,z,R,g,_)=>{let C=0;const K=h.length;let W=f.length-1,G=K-1;for(;C<=W&&C<=G;){const ne=f[C],ie=h[C]=_?kt(h[C]):ct(h[C]);if(Bt(ne,ie))k(ne,ie,w,null,T,z,R,g,_);else break;C++}for(;C<=W&&C<=G;){const ne=f[W],ie=h[G]=_?kt(h[G]):ct(h[G]);if(Bt(ne,ie))k(ne,ie,w,null,T,z,R,g,_);else break;W--,G--}if(C>W){if(C<=G){const ne=G+1,ie=ne<K?h[ne].el:$;for(;C<=G;)k(null,h[C]=_?kt(h[C]):ct(h[C]),w,ie,T,z,R,g,_),C++}}else if(C>G)for(;C<=W;)de(f[C],T,z,!0),C++;else{const ne=C,ie=C,ae=new Map;for(C=ie;C<=G;C++){const Ae=h[C]=_?kt(h[C]):ct(h[C]);Ae.key!=null&&ae.set(Ae.key,C)}let pe,ye=0;const Ue=G-ie+1;let Et=!1,io=0;const Ht=new Array(Ue);for(C=0;C<Ue;C++)Ht[C]=0;for(C=ne;C<=W;C++){const Ae=f[C];if(ye>=Ue){de(Ae,T,z,!0);continue}let Ge;if(Ae.key!=null)Ge=ae.get(Ae.key);else for(pe=ie;pe<=G;pe++)if(Ht[pe-ie]===0&&Bt(Ae,h[pe])){Ge=pe;break}Ge===void 0?de(Ae,T,z,!0):(Ht[Ge-ie]=C+1,Ge>=io?io=Ge:Et=!0,k(Ae,h[Ge],w,null,T,z,R,g,_),ye++)}const lo=Et?Ra(Ht):Ke;for(pe=lo.length-1,C=Ue-1;C>=0;C--){const Ae=ie+C,Ge=h[Ae],ao=Ae+1<K?h[Ae+1].el:$;Ht[C]===0?k(null,Ge,w,ao,T,z,R,g,_):Et&&(pe<0||C!==lo[pe]?ge(Ge,w,ao,2):pe--)}}},ge=(f,h,w,$,T=null)=>{const{el:z,type:R,transition:g,children:_,shapeFlag:C}=f;if(C&6){ge(f.component.subTree,h,w,$);return}if(C&128){f.suspense.move(h,w,$);return}if(C&64){R.move(f,h,w,st);return}if(R===be){o(z,h,w);for(let W=0;W<_.length;W++)ge(_[W],h,w,$);o(f.anchor,h,w);return}if(R===Ko){M(f,h,w);return}if($!==2&&C&1&&g)if($===0)g.beforeEnter(z),o(z,h,w),De(()=>g.enter(z),T);else{const{leave:W,delayLeave:G,afterLeave:ne}=g,ie=()=>o(z,h,w),ae=()=>{W(z,()=>{ie(),ne&&ne()})};G?G(z,ie,ae):ae()}else o(z,h,w)},de=(f,h,w,$=!1,T=!1)=>{const{type:z,props:R,ref:g,children:_,dynamicChildren:C,shapeFlag:K,patchFlag:W,dirs:G}=f;if(g!=null&&Uo(g,null,w,f,!0),K&256){h.ctx.deactivate(f);return}const ne=K&1&&G,ie=!fn(f);let ae;if(ie&&(ae=R&&R.onVnodeBeforeUnmount)&&ut(ae,h,f),K&6)tn(f.component,w,$);else{if(K&128){f.suspense.unmount(w,$);return}ne&&zt(f,null,h,"beforeUnmount"),K&64?f.type.remove(f,h,w,T,st,$):C&&(z!==be||W>0&&W&64)?Me(C,h,w,!1,!0):(z===be&&W&384||!T&&K&16)&&Me(_,h,w),$&&me(f)}(ie&&(ae=R&&R.onVnodeUnmounted)||ne)&&De(()=>{ae&&ut(ae,h,f),ne&&zt(f,null,h,"unmounted")},w)},me=f=>{const{type:h,el:w,anchor:$,transition:T}=f;if(h===be){gt(w,$);return}if(h===Ko){p(f);return}const z=()=>{r(w),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:R,delayLeave:g}=T,_=()=>R(w,z);g?g(f.el,z,_):_()}else z()},gt=(f,h)=>{let w;for(;f!==h;)w=m(f),r(f),f=w;r(h)},tn=(f,h,w)=>{const{bum:$,scope:T,update:z,subTree:R,um:g}=f;$&&En($),T.stop(),z&&(z.active=!1,de(R,f,h,w)),g&&De(g,h),De(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Me=(f,h,w,$=!1,T=!1,z=0)=>{for(let R=z;R<f.length;R++)de(f[R],h,w,$,T)},nn=f=>f.shapeFlag&6?nn(f.component.subTree):f.shapeFlag&128?f.suspense.next():m(f.anchor||f.el),so=(f,h,w)=>{f==null?h._vnode&&de(h._vnode,null,null,!0):k(h._vnode||null,f,h,null,null,null,w),Qr(),Gr(),h._vnode=f},st={p:k,um:de,m:ge,r:me,mt:N,mc:v,pc:Y,pbc:A,n:nn,o:e};let mt,on;return t&&([mt,on]=t(st)),{render:so,hydrate:mt,createApp:Ma(so,mt)}}function At({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Os(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(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]=kt(r[s]),a.el=i.el),n||Os(i,a)),a.type===Xn&&(a.el=i.el)}}function Ra(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 Fa=e=>e.__isTeleport,be=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Qe=Symbol.for("v-cmt"),Ko=Symbol.for("v-stc"),gn=[];let nt=null;function B(e=!1){gn.push(nt=e?null:[])}function Va(){gn.pop(),nt=gn[gn.length-1]||null}let mn=1;function Ms(e){mn+=e}function Ls(e){return e.dynamicChildren=mn>0?nt||Ke:null,Va(),mn>0&&nt&&nt.push(e),e}function X(e,t,n,o,r,s){return Ls(q(e,t,n,o,r,s,!0))}function Ie(e,t,n,o,r){return Ls(J(e,t,n,o,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function Bt(e,t){return e.type===t.type&&e.key===t.key}const Zn="__vInternal",zs=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Ce(e)||oe(e)?{i:Ee,r:e,k:t,f:!!n}:e:null);function q(e,t=null,n=null,o=0,r=null,s=e===be?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zs(t),ref:t&&Jn(t),scopeId:ns,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:Ee};return a?(Yo(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=xe(n)?8:16),mn>0&&!i&&nt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&nt.push(l),l}const J=Ha;function Ha(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ds)&&(e=Qe),qn(e)){const a=xt(e,t,!0);return n&&Yo(a,n),mn>0&&!s&&nt&&(a.shapeFlag&6?nt[nt.indexOf(e)]=a:nt.push(a)),a.patchFlag|=-2,a}if(Ga(e)&&(e=e.__vccOpts),t){t=Wa(t);let{class:a,style:l}=t;a&&!xe(a)&&(t.class=$e(a)),ve(l)&&(Wr(l)&&!ee(l)&&(l=we({},l)),t.style=Le(l))}const i=xe(e)?1:la(e)?128:Fa(e)?64:ve(e)?4:oe(e)?2:0;return q(e,t,n,o,r,i,s,!0)}function Wa(e){return e?Wr(e)||Zn in e?we({},e):e:null}function xt(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&&zs(a),ref:t&&t.ref?n&&r?ee(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!==be?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&&xt(e.ssContent),ssFallback:e.ssFallback&&xt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return J(Xn,null,e,t)}function je(e="",t=!1){return t?(B(),Ie(Qe,null,e)):J(Qe,null,e)}function ct(e){return e==null||typeof e=="boolean"?J(Qe):ee(e)?J(be,null,e.slice()):typeof e=="object"?kt(e):J(Xn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xt(e)}function Yo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Yo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Zn in t)?t._ctx=Ee:r===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Ee},n=32):(t=String(t),o&64?(n=16,t=[Ct(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=$e([t.class,o.class]));else if(r==="style")t.style=Le([t.style,o.style]);else if(Sn(r)){const s=t[r],i=o[r];i&&s!==i&&!(ee(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){qe(e,t,7,[n,o])}const Ua=ws();let Ka=0;function Ya(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ua,s={uid:Ka++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ml(!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:Cs(o,r),emitsOptions:ts(o,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:o.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,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=na.bind(null,s),e.ce&&e.ce(s),s}let Te=null;const js=()=>Te||Ee;let Xo,Zt,As="__VUE_INSTANCE_SETTERS__";(Zt=vo()[As])||(Zt=vo()[As]=[]),Zt.push(e=>Te=e),Xo=e=>{Zt.length>1?Zt.forEach(t=>t(e)):Zt[0](e)};const Jt=e=>{Xo(e),e.scope.on()},Dt=()=>{Te&&Te.scope.off(),Xo(null)};function Bs(e){return e.vnode.shapeFlag&4}let vn=!1;function Xa(e,t=!1){vn=t;const{props:n,children:o}=e.vnode,r=Bs(e);La(e,n,r,t),Aa(e,o);const s=r?qa(e,t):void 0;return vn=!1,s}function qa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ur(new Proxy(e.ctx,Sa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ja(e):null;Jt(e),Ut();const s=wt(o,e,0,[e.props,r]);if(Kt(),Dt(),yr(s)){if(s.then(Dt,Dt),t)return s.then(i=>{Ds(e,i,t)}).catch(i=>{Nn(i,e,0)});e.asyncDep=s}else Ds(e,s,t)}else Rs(e,t)}function Ds(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=qr(t)),Rs(e,n)}let Ns;function Rs(e,t,n){const o=e.type;if(!e.render){if(!t&&Ns&&!o.render){const r=o.template||Fo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=we(we({isCustomElement:s,delimiters:a},i),l);o.render=Ns(r,c)}}e.render=o.render||et}Jt(e),Ut(),Ia(e),Kt(),Dt()}function Za(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(e,"get","$attrs"),t[n]}}))}function Ja(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Za(e)},slots:e.slots,emit:e.emit,expose:t}}function Gn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(qr(Ur(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pn)return pn[n](e)},has(t,n){return n in t||n in pn}}))}function Qa(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ga(e){return oe(e)&&"__vccOpts"in e}const se=(e,t)=>Zl(e,t,vn);function Fs(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ee(t)?qn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),J(e,t,n))}const ec=Symbol.for("v-scx"),tc=()=>jt(ec),nc="3.3.4",oc="http://www.w3.org/2000/svg",Nt=typeof document<"u"?document:null,Vs=Nt&&Nt.createElement("template"),rc={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?Nt.createElementNS(oc,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.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{Vs.innerHTML=o?`<svg>${e}</svg>`:e;const a=Vs.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 sc(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 ic(e,t,n){const o=e.style,r=xe(n);if(n&&!r){if(t&&!xe(t))for(const s in t)n[s]==null&&qo(o,s,"");for(const s in n)qo(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 Hs=/\s*!important$/;function qo(e,t,n){if(ee(n))n.forEach(o=>qo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=lc(e,t);Hs.test(n)?e.setProperty(Ye(o),n.replace(Hs,""),"important"):e[o]=n}}const Ws=["Webkit","Moz","ms"],Zo={};function lc(e,t){const n=Zo[t];if(n)return n;let o=Re(t);if(o!=="filter"&&o in e)return Zo[t]=o;o=Pn(o);for(let r=0;r<Ws.length;r++){const s=Ws[r]+o;if(s in e)return Zo[t]=s}return t}const Us="http://www.w3.org/1999/xlink";function ac(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Us,t.slice(6,t.length)):e.setAttributeNS(Us,t,n);else{const s=gl(t);n==null||s&&!kr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function cc(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,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=kr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Qt(e,t,n,o){e.addEventListener(t,n,o)}function uc(e,t,n,o){e.removeEventListener(t,n,o)}function fc(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]=dc(t);if(o){const c=s[t]=gc(o,r);Qt(e,a,c,l)}else i&&(uc(e,a,i,l),s[t]=void 0)}}const Ks=/(?:Once|Passive|Capture)$/;function dc(e){let t;if(Ks.test(e)){t={};let o;for(;o=e.match(Ks);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ye(e.slice(2)),t]}let Jo=0;const pc=Promise.resolve(),hc=()=>Jo||(pc.then(()=>Jo=0),Jo=Date.now());function gc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;qe(mc(o,n.value),t,5,[o])};return n.value=e,n.attached=hc(),n}function mc(e,t){if(ee(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 Ys=/^on[a-z]/,vc=(e,t,n,o,r=!1,s,i,a,l)=>{t==="class"?sc(e,o,r):t==="style"?ic(e,n,o):Sn(t)?co(t)||fc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_c(e,t,o,r))?cc(e,t,o,s,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ac(e,t,o,r))};function _c(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ys.test(t)&&oe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ys.test(t)&&xe(n)?!1:t in e}function bc(e,t){const n=ke(e);class o extends Qo{constructor(s){super(n,s,t)}}return o.def=n,o}const yc=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends yc{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,Ze(()=>{this._connected||(ri(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&&!ee(s))for(const l in s){const c=s[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=mo(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=ee(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=mo(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(Ye(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ye(t),n+""):n||this.removeAttribute(Ye(t))))}_update(){ri(this._createVNode(),this.shadowRoot)}_createVNode(){const t=J(this._def,we({},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),Ye(s)!==s&&o(Ye(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Qo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const St="transition",_n="animation",Gt=(e,{slots:t})=>Fs(da,wc(e),t);Gt.displayName="Transition";const Xs={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};Gt.props=we({},ss,Xs);const Rt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},qs=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const E in e)E in Xs||(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:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,O=xc(r),k=O&&O[0],j=O&&O[1],{onBeforeEnter:U,onEnter:V,onEnterCancelled:M,onLeave:p,onLeaveCancelled:I,onBeforeAppear:S=U,onAppear:P=V,onAppearCancelled:v=M}=t,D=(E,x,N)=>{Ft(E,x?u:a),Ft(E,x?c:i),N&&N()},A=(E,x)=>{E._isLeaving=!1,Ft(E,d),Ft(E,y),Ft(E,m),x&&x()},H=E=>(x,N)=>{const L=E?P:V,b=()=>D(x,E,N);Rt(L,[x,b]),Zs(()=>{Ft(x,E?l:s),It(x,E?u:a),qs(L)||Js(x,o,k,b)})};return we(t,{onBeforeEnter(E){Rt(U,[E]),It(E,s),It(E,i)},onBeforeAppear(E){Rt(S,[E]),It(E,l),It(E,c)},onEnter:H(!1),onAppear:H(!0),onLeave(E,x){E._isLeaving=!0;const N=()=>A(E,x);It(E,d),Sc(),It(E,m),Zs(()=>{E._isLeaving&&(Ft(E,d),It(E,y),qs(p)||Js(E,o,j,N))}),Rt(p,[E,N])},onEnterCancelled(E){D(E,!1),Rt(M,[E])},onAppearCancelled(E){D(E,!0),Rt(v,[E])},onLeaveCancelled(E){A(E),Rt(I,[E])}})}function xc(e){if(e==null)return null;if(ve(e))return[Go(e.enter),Go(e.leave)];{const t=Go(e);return[t,t]}}function Go(e){return mo(e)}function It(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ft(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 Zs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function Js(e,t,n,o){const r=e._endId=++Cc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kc(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,m),s()},m=y=>{y.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,m)}function kc(e,t){const n=window.getComputedStyle(e),o=O=>(n[O]||"").split(", "),r=o(`${St}Delay`),s=o(`${St}Duration`),i=Qs(r,s),a=o(`${_n}Delay`),l=o(`${_n}Duration`),c=Qs(a,l);let u=null,d=0,m=0;t===St?i>0&&(u=St,d=i,m=s.length):t===_n?c>0&&(u=_n,d=c,m=l.length):(d=Math.max(i,c),u=d>0?i>c?St:_n:null,m=u?u===St?s.length:l.length:0);const y=u===St&&/\b(transform|all)(,|$)/.test(o(`${St}Property`).toString());return{type:u,timeout:d,propCount:m,hasTransform:y}}function Qs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Gs(n)+Gs(e[o])))}function Gs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sc(){return document.body.offsetHeight}const ei=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>En(t,n):t};function Ic(e){e.target.composing=!0}function ti(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=ei(r);const s=o||r.props&&r.props.type==="number";Qt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=go(a)),e._assign(a)}),n&&Qt(e,"change",()=>{e.value=e.value.trim()}),t||(Qt(e,"compositionstart",Ic),Qt(e,"compositionend",ti),Qt(e,"change",ti))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=ei(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&go(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Tc=["ctrl","shift","alt","meta"],Pc={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)=>Tc.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=Pc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Ec={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ni=(e,t)=>n=>{if(!("key"in n))return;const o=Ye(n.key);if(t.some(r=>r===o||Ec[r]===o))return e(n)},er={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):bn(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),bn(e,!0),o.enter(e)):o.leave(e,()=>{bn(e,!1)}):bn(e,t))},beforeUnmount(e,{value:t}){bn(e,t)}};function bn(e,t){e.style.display=t?e._vod:"none"}const Oc=we({patchProp:vc},rc);let oi;function Mc(){return oi||(oi=Da(Oc))}const ri=(...e)=>{Mc().render(...e)},Lc={class:"flex justify-between items-end"},zc={class:"inline-block children-pointer-events-auto w-1/3"},jc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ac={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Bc={class:"inline-block z-20 relative"},si=ke({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(B(),X("div",{class:$e(["fixed top-0 left-0 w-screen h-screen bg-black visible z-[9999999999] text-stone-100 font-sans text-base overflow-auto scrollbar-none overscroll-contain",{"cursor-none":t.idle}])},[Se(t.$slots,"default"),q("div",{id:"controls",class:$e(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[q("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Le({paddingTop:`${t.spaceTop||0}px`})},[Se(t.$slots,"back"),Se(t.$slots,"exit"),Se(t.$slots,"chapter-nav")],4),q("div",Lc,[q("div",zc,[Se(t.$slots,"page-nav")]),q("div",jc,[Se(t.$slots,"reset-zoom")]),q("div",Ac,[Se(t.$slots,"entry"),q("div",Bc,[Se(t.$slots,"settings")]),Se(t.$slots,"full-screen"),Se(t.$slots,"play")])]),q("div",{class:$e(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Se(t.$slots,"progress")],2)],2)],2))}}),Dc=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));var ii;const tr=typeof window<"u",Nc=e=>typeof e=="function",Rc=e=>typeof e=="string",$t=()=>{};tr&&((ii=window==null?void 0:window.navigator)!=null&&ii.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function yn(e){return typeof e=="function"?e():Z(e)}function nr(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 li=e=>e();function Fc(e,t={}){let n,o,r=$t;const s=a=>{clearTimeout(a),r(),r=$t};return a=>{const l=yn(e),c=yn(t.maxWait);return n&&s(n),l<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(a())):new Promise((u,d)=>{r=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&s(o),o=null,u(a())},l)})}}function Vc(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 d=>{const m=yn(e),y=Date.now()-r,O=()=>l=d();if(c(),m<=0)return r=Date.now(),O();if(y>m&&(n||!i))r=Date.now(),O();else if(t)return new Promise((k,j)=>{a=o?j:k,s=setTimeout(()=>{r=Date.now(),i=!0,k(O()),c()},m-y)});return!n&&!s&&(s=setTimeout(()=>i=!0,m)),i=!1,l}}function Hc(e=li){const t=Q(!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 Wc(e){return e}function or(e){return Ir()?(_l(e),!0):!1}function We(e,t=200,n={}){return nr(Fc(t,n),e)}function ai(e,t=200,n=!1,o=!0,r=!1){return nr(Vc(t,n,o,r),e)}function ci(e,t=!0){js()?Ve(e):t?e():Ze(e)}var ui=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&&ui)for(var o of ui(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=li}=o,s=Yc(o,["eventFilter"]);return fe(e,nr(r,t),s)}var qc=Object.defineProperty,Zc=Object.defineProperties,Jc=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,pi=(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={}))fi.call(t,n)&&pi(e,n,t[n]);if(eo)for(var n of eo(t))di.call(t,n)&&pi(e,n,t[n]);return e},Gc=(e,t)=>Zc(e,Jc(t)),eu=(e,t)=>{var n={};for(var o in e)fi.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&&di.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 Vt(e){var t;const n=yn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Tt=tr?window:void 0,nu=tr?window.document:void 0;function Pt(...e){let t,n,o,r;if(Rc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Tt):[t,n,o,r]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(u=>u()),s.length=0},a=(u,d,m)=>(u.addEventListener(d,m,r),()=>u.removeEventListener(d,m,r)),l=fe(()=>Vt(t),u=>{i(),u&&s.push(...n.flatMap(d=>o.map(m=>a(u,d,m))))},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return or(c),c}function hi(e,t=!1){const n=Q(),o=()=>n.value=!!e();return o(),ci(o,t),n}const rr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sr="__vueuse_ssr_handlers__";rr[sr]=rr[sr]||{};const ou=rr[sr];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,gi=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))lu.call(t,n)&&mi(e,n,t[n]);if(gi)for(var n of gi(t))au.call(t,n)&&mi(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 uu(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=Tt,eventFilter:m,onError:y=P=>{console.error(P)}}=o,O=(u?Kl:Q)(t);if(!n)try{n=ru("getDefaultStorage",()=>{var P;return(P=Tt)==null?void 0:P.localStorage})()}catch(P){y(P)}if(!n)return O;const k=yn(t),j=su(k),U=(r=o.serializer)!=null?r:cu[j],{pause:V,resume:M}=tu(O,()=>p(O.value),{flush:s,deep:i,eventFilter:m});return d&&a&&Pt(d,"storage",S),S(),O;function p(P){try{if(P==null)n.removeItem(e);else{const v=U.write(P),D=n.getItem(e);D!==v&&(n.setItem(e,v),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:D,newValue:v,storageArea:n}))))}}catch(v){y(v)}}function I(P){const v=P?P.newValue:n.getItem(e);if(v==null)return l&&k!==null&&n.setItem(e,U.write(k)),k;if(!P&&c){const D=U.read(v);return Nc(c)?c(D,k):j==="object"&&!Array.isArray(D)?vi(vi({},k),D):D}else return typeof v!="string"?v:U.read(v)}function S(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){O.value=k;return}if(!(P&&P.key!==e)){V();try{O.value=I(P)}catch(v){y(v)}finally{P?Ze(M):M()}}}}}function _i({document:e=nu}={}){if(!e)return Q("visible");const t=Q(e.visibilityState);return Pt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var bi=Object.getOwnPropertySymbols,fu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,pu=(e,t)=>{var n={};for(var o in e)fu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&bi)for(var o of bi(e))t.indexOf(o)<0&&du.call(e,o)&&(n[o]=e[o]);return n};function hu(e,t,n={}){const o=n,{window:r=Tt}=o,s=pu(o,["window"]);let i;const a=hi(()=>r&&"ResizeObserver"in r),l=()=>{i&&(i.disconnect(),i=void 0)},c=fe(()=>Vt(e),d=>{l(),a.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return or(u),{isSupported:a,stop:u}}function ir(e,t={width:0,height:0},n={}){const{window:o=Tt,box:r="content-box"}=n,s=se(()=>{var l,c;return(c=(l=Vt(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),i=Q(t.width),a=Q(t.height);return hu(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&s.value){const u=Vt(e);if(u){const d=o.getComputedStyle(u);i.value=parseFloat(d.width),a.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];i.value=u.reduce((d,{inlineSize:m})=>d+m,0),a.value=u.reduce((d,{blockSize:m})=>d+m,0)}else i.value=l.contentRect.width,a.value=l.contentRect.height},n),fe(()=>Vt(e),l=>{i.value=l?t.width:0,a.value=l?t.height:0}),{width:i,height:a}}function lr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=Tt}=n,a=hi(()=>i&&"IntersectionObserver"in i);let l=$t;const c=a.value?fe(()=>({el:Vt(e),root:Vt(o)}),({el:d,root:m})=>{if(l(),!d)return;const y=new IntersectionObserver(t,{root:m,rootMargin:r,threshold:s});y.observe(d),l=()=>{y.disconnect(),l=$t}},{immediate:!0,flush:"post"}):$t,u=()=>{l(),c()};return or(u),{isSupported:a,stop:u}}var yi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(yi||(yi={}));function ar(e,t,n={}){const{window:o=Tt}=n;return uu(e,t,o==null?void 0:o.sessionStorage,n)}var gu=Object.defineProperty,wi=Object.getOwnPropertySymbols,mu=Object.prototype.hasOwnProperty,vu=Object.prototype.propertyIsEnumerable,xi=(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)&&xi(e,n,t[n]);if(wi)for(var n of wi(t))vu.call(t,n)&&xi(e,n,t[n]);return e};_u({linear:Wc},{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=Tt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=Q(n),a=Q(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(),ci(l),Pt("resize",l,{passive:!0}),r&&Pt("orientationchange",l,{passive:!0}),{width:i,height:a}}const yu=ke({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Q(null),o=Q(0),r=Q([]),s=se(()=>r.value[o.value]),i=ai(a,500);Ve(()=>{const u=ir(n),d=We(()=>l({width:u.width.value,height:u.height.value}),50);d(),fe(u.width,d),fe(u.height,d)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const d=c();r.value=d.map(({rect:m,text:y})=>{const O=m.top<u.height-m.bottom,k=m.left<u.width-m.right;return{text:y,style:{left:`${m.left}px`,top:`${m.top}px`,width:`${m.width}px`,height:`${m.height}px`},textStyle:{left:k?`${m.left-12}px`:void 0,right:k?void 0:`${u.width-m.left}px`,top:O?`${m.bottom+12}px`:`${m.top+20}px`,textAlign:O?void 0:"right",transform:O?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var m;const u=(m=n.value)==null?void 0:m.parentElement;if(!u)return[];const d=[];return u.querySelectorAll("[data-tour]").forEach(y=>{var j;const O=(j=y.getAttribute("data-tour"))==null?void 0:j.trim();if(!(O!=null&&O.length))return;const k=y.getBoundingClientRect();d.push({rect:k,text:O})}),d}return(u,d)=>{var m,y;return B(),X(be,null,[q("div",{class:$e(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),q("div",{ref_key:"root",ref:n,class:"tour",onClick:d[0]||(d[0]=ot((...O)=>Z(i)&&Z(i)(...O),["stop"]))},[s.value?(B(),X("div",{key:o.value,class:"tour__target",style:Le(s.value.style)},null,4)):je("",!0),(B(),X("div",{key:o.value,class:"tour__text",style:Le((m=s.value)==null?void 0:m.textStyle)},Xe(((y=s.value)==null?void 0:y.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(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@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}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
2
|
-
`,_e=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ci=_e(yu,[["styles",[wu]]]),xu=Object.freeze(Object.defineProperty({__proto__:null,default:Ci},Symbol.toStringTag,{value:"Module"})),Cu=q("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),ki=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q([]);Ve(async()=>{const l=ir(o),c=We(()=>{s({width:l.width.value,height:l.height.value})},50);c(),fe(l.width,c),fe(l.height,c)});function s(l){var d;const c=(d=o.value)==null?void 0:d.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=i(u,l))}function i(l,c){const u=[],d=[];let m=0,y=0;const O=50,k=25;l.forEach(p=>{var D;const I=(D=p.getAttribute("title"))==null?void 0:D.trim(),S=p.getBoundingClientRect();if(!I||!S.height||!S.width)return;const P=Math.ceil((S.top-10)/O),v=Math.ceil((S.left-10)/O);d.push({isTour:!1,title:I,rect:S,fromX:v,toX:Math.max(v+1,Math.ceil((S.right+10)/O)),fromY:P,toY:Math.max(P+1,Math.ceil((S.bottom+10)/O))})}),d.forEach(p=>{for(let I=p.fromY;I<p.toY;I++){u[I]??(u[I]=[]);for(let S=p.fromX;S<p.toX;S++)u[I][S]=p;p.toY>m+1&&(m=p.toY-1),p.toX>y+1&&(y=p.toX-1)}});let j=y/2;d.forEach(p=>{p.isAlignRight=p.fromX>j});const U=(p,I)=>{u[I]??(u[I]=[]);const S=I>=p.toY;if(p.isTour)for(let P=p.fromX;P<p.toX;P++)delete u[p.fromY][P],p.fromY=I,p.toY=I+(S?1:-1),u[I][P]=p;else{const P=p.isAlignRight?p.fromX-3:p.fromX,v=P+3;p.helpItem={fromX:P,toX:v,fromY:I,toY:I+1,isTour:!0,isAlignRight:p.isAlignRight};for(let D=P;D<v;D++)u[I][D]=p.helpItem}},V=(p,I)=>{if(I>m||I<0)return!1;const S=I>=p.toY,P=u[I];if(!P)return U(p,I),!0;const v=P[p.fromX];if(v&&!v.isTour)return!1;if(v&&v.isTour)return V(v,S?I+1:I-1)?(U(p,I),!0):!1;if(!v){const D=p.isAlignRight?-1:1;return P[p.fromX+D]||P[p.fromX+D*2]?V(p,S?I+1:I-1):(U(p,I),!0)}return!1};d.forEach(p=>{if(!V(p,p.toY)){if(p.isAlignRight){const I=u[p.fromY]??[];if(!I.slice(p.fromX-3,p.fromX).filter(Boolean).length){const P=p.fromX-3,v=p.fromX;p.helpItem={isTour:!0,isAlignRight:!0,fromX:P,toX:v,fromY:p.fromY,toY:p.toY};for(let D=p.fromX-3;D<p.fromX;D++)I[D]=p.helpItem;return}}V(p,p.fromY-1)}});const M=[];return d.forEach(p=>{const{title:I,helpItem:S,rect:P,isAlignRight:v,fromX:D,fromY:A,toY:H}=p;if(!I||!S||!P)return;const E=S.fromY>=H,x=S.toY<=A;M.push({title:a(I),style:{top:E?`${P.bottom+(S.fromY-H)*O+k}px`:x?void 0:`${P.top+8}px`,bottom:x?`${c.height-P.top+(S.toY-A)*O+k}px`:void 0,left:v?void 0:`${P.left}px`,right:v?E?`${c.width-P.right}px`:`${c.width-P.right+P.width+k}px`:void 0},arrowStyle:{width:x||E?"2px":`${Math.abs(S.toX-D)*O+k-5}px`,height:x||E?`${(E?S.fromY-H:A-S.toY)*O+k}px`:"2px",top:E?`${P.bottom}px`:x?void 0:`${P.top+20}px`,bottom:x?`${c.height-P.top}px`:void 0,left:v?void 0:`${P.left+P.width/2}px`,right:v?E?`${c.width-P.right+P.width/2}px`:`${c.width-P.right+P.width}px`:void 0}})}),M}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(B(),X(be,null,[Cu,q("div",{ref_key:"root",ref:o,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=ot(u=>t("hide"),["stop"]))},[(B(!0),X(be,null,dn(r.value,u=>(B(),X(be,{key:u.title},[q("div",{class:"absolute",style:Le(u.style)},Xe(u.title),5),q("div",{class:"absolute bg-stone-300 rounded-lg",style:Le(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:ki},Symbol.toStringTag,{value:"Module"})),Su={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},$u=[q("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[q("circle",{cx:"14",cy:"14",r:"12"}),q("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Tu(e,t){return B(),X("svg",Iu,$u)}const Si=_e(Su,[["render",Tu]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Eu={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"},Ii=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Si;return t.zoom!==1?(B(),X("button",Eu,[q("div",Ou,[J(o)]),q("div",Mu,Xe(Math.ceil(t.zoom*100))+"%",1)])):je("",!0)}}}),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),zu={},ju={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Au=[q("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 B(),X("svg",ju,Au)}const cr=_e(zu,[["render",Bu]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"})),Nu={},Ru={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Fu=[q("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),q("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 Vu(e,t){return B(),X("svg",Ru,Fu)}const ur=_e(Nu,[["render",Vu]]),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"}));function Wu({touchDevice:e}){const t=Q(!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 fr(){const e=jt("busy:touchDevice"),t=jt("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))}},en={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=ke({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=fr();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)=>at((B(),Ie(Ca(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:ot(a,["stop"]),onMouseenter:s,onMouseleave:i}),{default:re(()=>[q("div",Ku,[Se(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[Z(en),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=[q("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 B(),X("svg",qu,Zu)}const $i=_e(Xu,[["render",Ju]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"}));class Gu{constructor(){rl(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=jt("keyController");Ve(()=>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"},Ti=ke({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;no({onKeyDown:r});const o=fr();fe(()=>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 B(),X("div",{class:$e(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[J(Gt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:re(()=>[n.modelValue?(B(),X("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]=ot(()=>{},["stop"]))},[q("div",tf,[J(l,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:re(()=>[J(a)]),_:1}),q("div",nf,Xe(s.name),1),Se(s.$slots,"actions")]),q("div",of,[Se(s.$slots,"default")])])):je("",!0)]),_:3})],2)}}}),rf=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),sf=["min","max","step"],lf={class:"flex-shrink-0"},Pi=_e(ke({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(B(),X("div",{class:$e(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Le({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[at(q("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),[[$c,o.value]]),q("p",lf,[Se(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=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(B(),X("div",cf,[q("div",{class:$e(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),q("div",uf,[Se(t.$slots,"default")])]))}}),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),df=["onClick","onKeyup"],Oi=ke({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q({width:"",left:""});Ve(()=>{let i=!1;fe(()=>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)=>(B(),X("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:{}},[q("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Le(r.value)},null,4),(B(!0),X(be,null,dn(n.items,(l,c)=>at((B(),X("div",{key:c,tabindex:"0",class:$e(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>s(c),onKeyup:[ni(()=>s(c),["enter"]),ni(()=>s(c),["space"])]},[Ct(Xe(l),1)],42,df)),[[Z(en),30]])),128))],512))}}),pf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),hf={},gf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},mf=[q("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 B(),X("svg",gf,mf)}const Mi=_e(hf,[["render",vf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),bf={},yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},wf=[q("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),q("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function xf(e,t){return B(),X("svg",yf,wf)}const Li=_e(bf,[["render",xf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"}));function kf(e){if(e)try{return JSON.parse(e)}catch{return}}function Sf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var rt=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(rt||{}),ht=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(ht||{});const If=.25,$f=5,Tf=.25,wn=.25,xn=5,Pf=.05,Ef=0,Of=4;function Mf(e){var U,V,M,p,I;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Sf(t.value):location.hostname),r=Q(Lf(`tkr:${o.value}`)),s=S=>{r.value=S;const P=`tkr:${o.value}`;!S||!Object.keys(S).length?localStorage.removeItem(P):localStorage.setItem(P,JSON.stringify(S))},i=S=>{if(!r.value){s(S);return}const P={...r.value};Object.entries(S).forEach(([v,D])=>{D===void 0?delete P[v]:P[v]=D}),s(P)},a=Q(((U=r.value)==null?void 0:U.style)??ht.longStrip),l=Q(((V=r.value)==null?void 0:V.direction)??rt.vertical),c=Q((M=r.value)==null?void 0:M.gap),u=Q(((p=r.value)==null?void 0:p.speed)??1),d=Q(((I=r.value)==null?void 0:I.zoom)??1),m=se({get(){return n.value?ht.longStrip:a.value??ht.longStrip},set:S=>{a.value=S,i({style:S===ht.longStrip?void 0:S}),S!==ht.longStrip&&l.value===rt.vertical&&(y.value=rt.rtl)}}),y=se({get:()=>n.value?rt.vertical:l.value,set:S=>{l.value=S,i({direction:S===rt.vertical?void 0:S})}}),O=se({get:()=>c.value??(n.value?0:1),set(S){c.value=S,i({gap:S})}}),k=se({get:()=>u.value,set(S){u.value=S,i({speed:S===1?void 0:S})}}),j=se({get:()=>d.value,set(S){d.value=S,i({zoom:S===1?void 0:S})}});return{direction:y,style:m,gap:O,speed:k,zoom:j,isLongStrip:se(()=>m.value===ht.longStrip),isDouble:se(()=>m.value===ht.double),isRTL:se(()=>y.value===rt.rtl),isVertical:se(()=>y.value===rt.vertical)}}function Lf(e){const t=localStorage.getItem(e),n=kf(t),o={};return n?(n.style!==void 0&&Object.values(ht).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(rt).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Ef&&n.gap<=Of&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=wn&&n.speed<=xn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=wn&&n.zoom<=xn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const zi=ke({__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=e,o=Q(!1),r=se(()=>n.name??location.hostname);no({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(o.value=!o.value)}});function s(a){t("update:zoom",Math.round(a)/100)}function i(){o.value=!1,t("help")}return(a,l)=>{const c=Li,u=to,d=Mi,m=Oi,y=Ei,O=Pi,k=Ti;return B(),X(be,null,[J(u,{title:"Reader settings (S)",disabled:a.disabled,onClick:l[0]||(l[0]=()=>o.value=!0)},{default:re(()=>[J(c)]),_:1},8,["disabled"]),J(k,{modelValue:o.value,"onUpdate:modelValue":l[5]||(l[5]=j=>o.value=j),name:r.value},{actions:re(()=>[J(u,{transparent:"",onClick:i},{default:re(()=>[J(d)]),_:1})]),default:re(()=>[J(y,{label:"Style"},{default:re(()=>[J(m,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":l[1]||(l[1]=j=>t("update:reader-style",j))},null,8,["model-value","items"])]),_:1}),J(y,{label:"Direction"},{default:re(()=>[J(m,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":l[2]||(l[2]=j=>t("update:direction",j))},null,8,["model-value","items"])]),_:1}),J(y,{label:"Gap"},{default:re(()=>[J(m,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":l[3]||(l[3]=j=>t("update:gap",j))},null,8,["model-value"])]),_:1}),J(y,{label:"Speed"},{default:re(()=>[J(O,{"model-value":a.speed,min:Z(If),max:Z($f),step:Z(Tf),suffix:"x","onUpdate:modelValue":l[4]||(l[4]=j=>t("update:speed",j))},{suffix:re(()=>[Ct(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),J(y,{label:"Zoom"},{default:re(()=>[J(O,{"model-value":Math.ceil(a.zoom*100),min:Z(wn)*100,max:Z(xn)*100,step:Z(Pf)*100,"onUpdate:modelValue":s},{suffix:re(()=>[Ct(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),zf=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),jf={},Af={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Bf=[q("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Df(e,t){return B(),X("svg",Af,Bf)}const ji=_e(jf,[["render",Df]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),Rf={},Ff={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Vf=[q("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Hf(e,t){return B(),X("svg",Ff,Vf)}const Ai=_e(Rf,[["render",Hf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),Uf={},Kf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yf=[q("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),q("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),q("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 Xf(e,t){return B(),X("svg",Kf,Yf)}const Bi=_e(Uf,[["render",Xf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Zf={},Jf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qf=[q("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),q("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),q("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 Gf(e,t){return B(),X("svg",Jf,Qf)}const Di=_e(Zf,[["render",Gf]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),td={},nd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},od=[q("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function rd(e,t){return B(),X("svg",nd,od)}const Ni=_e(td,[["render",rd]]),sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),id=["aria-hidden"],ld=["onClick"],ad=["onClick"],cd={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"},ud={class:"whitespace-nowrap"},dr=ke({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q(!1),s=Q(null),i=Q(!1),a=Q(!1),l=Q(!1);no({onKeyDown:y});const c=fr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(d(),Ze(()=>setTimeout(()=>{var p,I;(I=(p=s.value)==null?void 0:p.children[n.modelValue])==null||I.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),k(o.value)):setTimeout(j,250)}function d(){const p=o.value;if(p){const I=p.getBoundingClientRect(),S=I.x+I.width/2;i.value=I.y>window.innerHeight/2,a.value=S<window.innerWidth/3,l.value=S>window.innerWidth/3*2}}function m(p){p!=n.modelValue&&t("update:modelValue",p),u()}function y(p){r.value&&p.key==="Escape"&&(u(),p.preventDefault())}let O=[];function k(p){const I=window.getComputedStyle(p).zIndex,S=p.style.zIndex;(!I||!(+I>0))&&((!p.parentElement||p.parentElement.childElementCount>1)&&(p.style.zIndex="1",O.push({el:p,zIndex:S})),p.parentElement&&k(p.parentElement))}function j(){O.forEach(({el:p,zIndex:I})=>{p.style.zIndex=I??""}),O=[]}let U=!1;function V(){U||(U=!0,c(!0,{desktopOnly:!0}))}function M(){U&&(U=!1,c(!1,{desktopOnly:!0}))}return(p,I)=>{const S=Ni;return B(),X("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(B(),X("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:u})):je("",!0),p.items.length?(B(),Ie(Gt,{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:re(()=>[r.value?(B(),X("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:$e(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[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:I[0]||(I[0]=ot(()=>{},["stop"]))},[(B(!0),X(be,null,dn(p.items,(P,v)=>at((B(),X("li",{key:v,tabindex:"-1",class:$e(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":v===p.modelValue}]),onClick:()=>m(v)},[q("div",{class:$e(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":v>0}])},[Se(p.$slots,"item",{item:P},()=>[Ct(Xe(P),1)])],2)],10,ld)),[[Z(en),30]])),128))],42,id)):je("",!0)]),_:3})):je("",!0),at((B(),X("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":p.disabled}]},p.title?{title:p.title}:{},{onClick:ot(u,["stop"]),onMouseenter:V,onMouseleave:M}),[q("div",cd,[q("span",ud,Xe(p.label),1),p.items.length?(B(),X("span",{key:0,class:$e(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[J(S)],2)):je("",!0)])],16,ad)),[[Z(en),30]])],512)}}}),fd=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"})),Ri=ke({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se(()=>n.pages.map(l=>l.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const l=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:d})=>d===l));return c===-1?n.pages.length-1:c}),s=se(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function i(l){const c=n.pages[l][0].index;a(c)}function a(l){t("update:modelValue",l)}return(l,c)=>{const u=dr;return B(),Ie(u,{"model-value":r.value,label:s.value,title:"Current page",items:o.value,disabled:l.disabled,"onUpdate:modelValue":i},null,8,["model-value","label","items","disabled"])}}}),dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),pd={},hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gd=[q("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function md(e,t){return B(),X("svg",hd,gd)}const Fi=_e(pd,[["render",md]]),vd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),_d={},bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yd=[q("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function wd(e,t){return B(),X("svg",bd,yd)}const Vi=_e(_d,[["render",wd]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Cd={},kd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Sd=[q("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 Id(e,t){return B(),X("svg",kd,Sd)}const Hi=_e(Cd,[["render",Id]]),$d=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"})),Td={},Pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ed=[q("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 Od(e,t){return B(),X("svg",Pd,Ed)}const Wi=_e(Td,[["render",Od]]),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"})),Ui=_e(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Q(0);return fe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=cr,i=ur;return n.value?(B(),X("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?(B(),Ie(s,{key:0})):(B(),Ie(i,{key:1}))])):je("",!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
|
-
`]]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:
|
|
5
|
-
`,Kd={},Yd={class:"loading-indicator"};function Xd(e,t){return B(),X("div",Yd)}const pr=_e(Kd,[["render",Xd],["styles",[Ud]]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"})),Zd={key:0,class:"page--loading"},Jd=["src"],Qd=["src"],Gd=["data-index"],Zi=_e(ke({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},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=Q(null),r=se(()=>{var M;return(M=o.value)==null?void 0:M.$el}),s=Q(null),i=ir(r),a=se(()=>{const{width:M,height:p}=i,I=n.isLongStrip?n.isVertical?M.value:p.value:Math.min(M.value,p.value);return Math.min(4,Math.max(1,Math.ceil(I/400-1)))*n.gap}),l=Q(n.pageIndex),c=Q(n.pageIndex+3);let u=n.pageIndex,d=n.pageIndex;const m=We(j,50);fe(()=>n.pageIndex,()=>{u>n.pageIndex&&(u=n.pageIndex)});const y=se(()=>{const{width:{value:M},height:{value:p}}=i;return n.pages.map(I=>{var N;const S=I.some(L=>{var b;return(b=L.img)==null?void 0:b.isLoading}),P=I.map(L=>L.index),v={isLoading:S,indexes:P};if(S||P[P.length-1]<l.value-1||P[0]>c.value+2)return v;const D=I.map(({img:L})=>L).filter(Boolean);if(!D.length||(v.srcs=D.map(({src:L})=>L),D.every(L=>L.hasError)))return v;const H=(N=D.find(L=>!L.hasError))==null?void 0:N.size,E=D.reduce((L,b)=>{var F;return L+(((F=b.size)==null?void 0:F.width)??H.width)},0),x=D.reduce((L,b)=>{var F;return L+(((F=b.size)==null?void 0:F.height)??H.height)},0)/D.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&M/E<p/x?(v.width=Math.min(M,E),v.height=x*v.width/E):v.height=Math.min(p,x),v})}),O=se(()=>{const M=n.isVertical?"width":"height";return y.value.map(p=>p[M]).filter(Boolean).sort((p,I)=>I-p)[0]});function k(M){const p=M.indexes[M.indexes.length-1];p!==void 0&&d<p&&(d=p),m()}function j(){l.value!==u&&(l.value=u),c.value!==d&&(c.value=d)}function U(){n.isLongStrip?j():m()}function V(M){if(!n.isLongStrip){const p=n.isVertical?i.height.value:i.width.value,S=(n.isVertical?M.clientY:n.isRTL?p-M.clientX:M.clientX)/p;if(S<=.2){t("prev");return}else if(S>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(M,p)=>{const I=pr,S=qi,P=Xi;return B(),Ie(P,{ref_key:"root",ref:o,"model-value":M.zoom,"page-index":M.pageIndex,class:$e(["reader-body",{"reader-body--long-strip":M.isLongStrip,"reader-body--pages":!M.isLongStrip,"reader-body--vertical":M.isVertical,"reader-body--rtl":M.isRTL,"reader-body--idle":M.idle}]),"play-controller":M.playController,horizontal:!M.isVertical,rtl:M.isRTL,"touch-device":M.touchDevice,busy:M.busy,"long-strip":M.isLongStrip,style:Le({"--gap":`${a.value}em`,"--space-top":(M.spaceTop||0)+"em","--screen-width-em":Z(i).width.value+"em","--screen-height-em":Z(i).height.value+"em",...M.isLongStrip?{"--max-size-em":O.value+"em"}:{}}),"onUpdate:modelValue":p[0]||(p[0]=v=>t("update:zoom",v)),onDragEnd:p[1]||(p[1]=()=>t("dragEnd")),onClick:V,onScroll:U},{default:re(()=>[(B(!0),X(be,null,dn(y.value,v=>(B(),Ie(S,Qn({key:M.direction+"_"+v.indexes[0],"data-index":v.indexes[0]},v.indexes.length>1?{"data-index2":v.indexes[1]}:{},{onVisible:()=>k(v)}),{default:re(({visible:D})=>{var A;return[!((A=v.srcs)!=null&&A.length)||v.isLoading?(B(),X("div",Zd,[at(J(I,null,null,512),[[er,D]])])):v.srcs.length==1?(B(),X("img",{key:1,src:v.srcs[0],style:Le({height:v.height!==void 0?v.height+"em":""})},null,12,Jd)):(B(),X("div",{key:2,class:$e(["page--double",{"flex-row-reverse":M.isRTL}]),style:Le({width:v.width!==void 0?v.width+"em":"",height:v.height!==void 0?v.height+"em":""})},[(B(!0),X(be,null,dn(v.srcs,H=>(B(),X("div",{key:H},[q("img",{src:H},null,8,Qd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),q("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":M.totalImgs},[Se(M.$slots,"end")],8,Gd)]),_:3},8,["model-value","page-index","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.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.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{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:var(--screen-height-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:var(--screen-width-em)}.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:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.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.reader-body--vertical>div{width:var(--screen-width-em)}.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:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.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>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
6
|
-
`]]]),
|
|
7
|
-
`]]]),rp=Object.freeze(Object.defineProperty({__proto__:null,default:Ji},Symbol.toStringTag,{value:"Module"}));async function Cn(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 Cn(e-1,t,n);r(s)},t)})}function ro(e=0){return new Promise(t=>setTimeout(t,e))}const sp=3;function ip(e){var A,H,E;const t=((H=(A=e.raw.value)==null?void 0:A.imgs)==null?void 0:H.filter(Boolean))??[];let n=!!t.length;const o=Q(t),r=ln({}),s=[],i=new WeakMap,a=Date.now();let l=!0,c=0,u=0,d,m=[],y=n?up(t):void 0;const O=Q((E=e.raw.value)==null?void 0:E.isWebtoon),k=Q(O.value===void 0||y===void 0),j=We(v,100),U=We(p,50);k.value?n?p():S():Ze(()=>setTimeout(()=>V(y),10)),fe(()=>{var x;return(x=e.raw.value)==null?void 0:x.imgs},x=>{x&&x!==o.value&&(n=!0,M(x))}),He(()=>{l=!1,s.forEach(x=>URL.revokeObjectURL(x))});async function V(x){k.value=!1,await Ze(),e.onReady(x),fe(()=>Math.floor(e.page.value),async(N,L)=>{el({contentEl:d,imgEls:m,page:N,smooth:!0}),L??(L=-1),N!==L&&(c=Math.max(0,c-Math.abs(N-L))),U()},{immediate:!0})}function M(x,N){(x.length!==o.value.length||x.some((L,b)=>o.value[b]!==L))&&(N&&(m=N),o.value=x,U(),y!==void 0&&k.value&&O.value!==void 0&&o.value.some(Boolean)&&V(y))}function p(){const x=Math.floor(e.page.value),N=L=>{c>sp||I(L)};for(let L=x;L<o.value.length;L++)N(L);for(let L=x-1;L>=0;L--)N(L)}async function I(x){const N=o.value[x];if(!(!l||!N||r[N])){if(!r[N]){r[N]={src:N,isLoading:!0,hasError:!1},c++;const L=await cp(N);if(r[N]={src:N,size:L,isLoading:!1,hasError:!L},c=Math.max(0,c-1),L&&!O.value&&x>Math.min(1,o.value.length-2)){const b=L.height/L.width>2.5;O.value!==b&&(O.value=b)}k.value&&O.value!==void 0&&y!==void 0&&V(y)}U()}}function S(){let x=!1;const N=new MutationObserver(()=>{d&&j(d)});He(async()=>{N.disconnect();const L=e.page.value;await ro(),el({contentEl:d,imgEls:m,page:L})}),P(L=>{d!==L&&(d=L,N.disconnect(),N.observe(d,{childList:!0,subtree:!0}),x?j(d):(x=!0,v(d)))})}async function P(x){var te;const N=(te=e.spec)==null?void 0:te.content;if(!N){x(document.body);return}const L=await lp(e.spec);let b=N?await Cn(L?100:1,10,()=>document.querySelector(N)):void 0;if(!b)return;x(b);let F=0;const Y=async()=>{if(l&&!(b!=null&&b.isConnected)&&!n){if(F=0,b=await Cn(50,20,()=>{const he=document.querySelector(N);return he!=null&&he.isConnected&&he!==b?he:void 0}),!b)return;x(b)}!l||n||++F>=10||setTimeout(Y,200)};setTimeout(Y,200)}async function v(x){var Y;if(!l||!x.isConnected||n)return;const N=Date.now();u=N;let L,b;const F=(Y=e.spec)==null?void 0:Y.imgDivs;if(F){if(b=Array.from(x.querySelectorAll(F)),L=await Promise.all(b.map(async(te,he)=>{const ge=Array.from(te.querySelectorAll("img,canvas"));for(const de of ge){const me=await D({ts:N,el:de,index:he,total:b.length,onImgLoad:()=>j(x)});if(me)return me}})),!l||!x.isConnected||u!==N||n)return}else{const te=Array.from(x.querySelectorAll("img,canvas")),he=await Promise.all(te.map((de,me)=>D({ts:N,el:de,index:me,total:te.length,onImgLoad:()=>j(x)})));if(!l||!x.isConnected||u!==N||n)return;b=te.filter((de,me)=>he[me]),L=he.filter(Boolean);const ge=L.filter((de,me)=>de&&me!==L.lastIndexOf(de));ge.length&&(L=L.filter(de=>de&&!ge.includes(de)))}!e.raw.value&&!L.some(Boolean)&&e.onError("no_img"),y??(y=Gi(b)),M(L,b)}async function D({ts:x,el:N,index:L,total:b,onImgLoad:F}){const Y=i.get(N);let te,he;if(N.tagName.toLowerCase()==="canvas"){if(Y)return Y.src;te=await Qi(N)}else{if(N._tkLoadId_!==a&&(N._tkLoadId_=a,N.addEventListener("load",F),He(()=>{N._tkLoadId_===a&&delete N._tkLoadId_,N.removeEventListener("load",F)})),he=fp(N),!he)return;if(he===(Y==null?void 0:Y.originalSrc))return Y.src;if(te=await ap(N,he),!l||u!==x)return;if(O.value===void 0&&L>Math.min(1,b-2)){const de=+(N.getAttribute("width")??0),me=+(N.getAttribute("height")??0);de&&me&&(O.value=me/de>2.5)}}return te&&(i.set(N,{src:te,originalSrc:he}),te.startsWith("blob:")&&s.push(te)),te}return{isLoading:se(()=>k.value),asyncImgs:se(()=>o.value.map(x=>x?r[x]:void 0)),isWebtoon:se(()=>O.value??!1)}}async function lp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Cn(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 Qi(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 ap(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 Qi(o)}function cp(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 up(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Gi(n)}function Gi(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 fp(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 el({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=hr(e??document.documentElement);if(l){const c=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;l.scrollTo({top:c,behavior:s})}else i.scrollIntoView({block:"start",behavior:s})})}function hr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?hr(document.documentElement)??e:e:hr(e.parentElement??void 0)}function dp(e,t){return se(()=>t.value?tl(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function tl(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})),...tl(e.slice(r.length),t+r.length)]}function pp(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")),ar("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function hp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const gr=40;function gp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:a,interferePlayer:l,onChangedPage:c}){let u=!1,d=!1,m;const y=We(p,300),O=ai(()=>{p(),y()},300),k=We(()=>d=!0,100);function j(){let A=null;ca(async()=>{a.value&&a.value!==A&&(A=a.value,V(e.value),A==null||A.removeEventListener("scroll",O),a.value.addEventListener("scroll",O))});const{width:H,height:E}=bu();fe(H,U),fe(E,U),fe(n,U),fe(t,U)}async function U(){u=!0;const A=e.value;if(await Ze(),I()===A){u=!1;return}V(A)}function V(A,{smooth:H}={smooth:!1}){const E=a.value;if(!E)return;u=!0;const x=async()=>{await Ze(),u=!1,k()},N=Math.floor(A),L=E.querySelector(`[data-index="${N}"],[data-index2="${N}"]`);if(!L){x();return}l(async()=>{await M(E,!o.value&&H,async()=>{await D(E,L,{smooth:H,page:A})}),await x()})}async function M(A,H,E){H&&A.style.setProperty("scroll-snap-type","none"),await E(),H&&A.style.removeProperty("scroll-snap-type")}function p(){if(!a.value||u||!d)return;const A=I();A!==void 0&&A!==e.value&&c(A)}function I(){const A=S();return A?(+A.getAttribute("data-index")||0)+(o.value?P(A):0):void 0}function S(){m??(m=a.value.getRootNode());const A=m.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-gr:gr,r.value&&o.value?i.value||gr:window.innerHeight/2);for(let H=0;H<A.length;H++){const E=A[H];if(E.hasAttribute("data-index"))return E;if(E===a.value)break}}function P(A){const H=A.getBoundingClientRect();return r.value?Math.abs(H.top-(i.value||0))/H.height:s.value?Math.max(0,H.right-a.value.clientWidth)/H.width:Math.abs(H.left)/H.width}let v=!1;async function D(A,H,E){if(v)return;const x=H.getBoundingClientRect();if(!o.value){if(r.value){if(x.top<=0&&x.bottom>=A.clientHeight)return}else if(x.left<=0&&x.right>=A.clientWidth)return}v=!0;const N=r.value?A.scrollTop:A.scrollLeft,L=E.page,b=o.value?L%1:0,F=await Cn(30,10,async()=>{await ro();let ge;return o.value?r.value?ge=H.offsetTop+b*H.offsetHeight-(i.value??0):s.value?ge=H.offsetLeft-A.clientWidth+H.offsetWidth-b*H.offsetWidth:ge=H.offsetLeft+b*H.offsetWidth:r.value?ge=H.offsetTop+(x.top>0?0:x.height-A.clientHeight):ge=H.offsetLeft+(x.left>0?0:x.width-A.clientWidth),L>.5&&Math.abs(ge)<100?void 0:ge})??0;if(!E.smooth){r.value?A.scrollTop=F:A.scrollLeft=F,v=!1;return}const Y=F-N,te=30;let he=0;return new Promise(ge=>{(function de(){const me=mp(he,N,Y,te);r.value?A.scrollTop=me:A.scrollLeft=me,he++,he<=te?requestAnimationFrame(de):(ge(),v=!1)})()})}return{init:j,goToPage:V}}function mp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function vp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:a}){const l=ar("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(v,D)=>v===void 0?D:v===!0||v==="true"}),c=Q(!1);let u,d;const m=We(S,100);let y;const O=We(()=>{c.value=!0,clearTimeout(y),y=l.value?void 0:setTimeout(a,s.value?3e4:6e4)},t?2e3:1e3),k=()=>setTimeout(()=>{c.value=!1,O(),y&&(clearTimeout(y),y=void 0)},30);k(),t||Pt(window,"mousemove",k);const j=_i();Ve(()=>{fe(j,v=>{l.value&&(v==="visible"?S():d==null||d())}),fe(i,()=>U()),fe(s,v=>{v||M()})}),He(()=>{clearTimeout(y),y=void 0});async function U(v){l.value&&(d==null||d()),v&&(await Ze(),await v()),l.value&&m()}function V(){l.value?M():p()}function M(){l.value&&(l.value=!1,d==null||d(),k())}function p(){!l.value&&s.value&&(l.value=!0,S(),k())}function I(){d==null||d()}function S(){const v=n.value;if(!l.value||!v)return;const D=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,A=P();if(D<=A){M();return}d=()=>{u=Date.now(),d=void 0};const H=Date.now();u=H;const E=.05*i.value,x=o.value?"scrollTop":"scrollLeft";let N=Date.now(),L=0;const b=()=>{if(u!==H)return;const F=Date.now(),Y=F-N;N=F;const te=E*Y+L;te>=1?(L=te%1,v[x]+=(te-L)*(r.value?-1:1)):L=te,setTimeout(b,1)};b()}function P(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:l,isIdle:c,toggle:V,play:p,pause:I,resume:S,stop:M,interfere:U,awake:k}}function _p(e){var y,O,k,j,U;let t=-1,n=(y=e.prev)==null?void 0:y.slug,o=(O=e.next)==null?void 0:O.slug;const{vol:r,inferVol:s,chap:i,title:a,slug:l,basePath:c}=e,u=r??s,d=a.chapters??[],m=(d==null?void 0:d.length)>1?d:[];if(m.length){if(t=m.findIndex(V=>V.slug===e.slug),t===-1&&(t=m.findIndex(V=>(V.vol??V.inferVol)===u&&V.chap===i)),t===-1&&(t=m.findIndex(V=>l.startsWith(`${V.slug}-`)&&l.length-V.slug.length>3)),t!==-1)n??(n=(k=m[t+1])==null?void 0:k.slug),o??(o=(j=m[t-1])==null?void 0:j.slug);else if(!n&&!o){const V=m.findIndex(M=>{const p=M.vol??M.inferVol;return u===void 0||p===void 0||u===p?M.chap<i:p<u});V!==-1?(n=m[V].slug,o=(U=m[V-1])==null?void 0:U.slug):o=m[m.length-1].slug}}return{activeIndex:t,activeLabel:nl({vol:r,chap:i}),chapters:m.map(V=>({label:nl(V),path:mr(c,V.slug)})),prevPath:mr(c,n),nextPath:mr(c,o)}}function mr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function nl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const bp={key:0,class:"flex justify-center items-center w-full h-full"},yp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},wp=ke({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},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","error"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,s;const i=Wu({touchDevice:n.touchDevice}),a=pp(n.page),{asyncImgs:l,isLoading:c,isWebtoon:u}=ip({raw:se(()=>n.raw),spec:n.spec,page:a,onReady(g){n.isAutoShow===!1?a.value=g:a.value>l.value.length&&(a.value=Math.max(0,l.value.length-1)),b.init(),setTimeout(()=>{s=Y()},50)},onError:g=>{t("error",g),f()}}),{direction:d,style:m,isRTL:y,isDouble:O,isVertical:k,isLongStrip:j,gap:U,speed:V,zoom:M}=Mf({titleName:se(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:u}),p=dp(l,O),I=se(()=>a.value>=l.value.length),S=se(()=>n.raw?_p(n.raw):void 0),P=se(()=>{var g,_;return y.value?(g=S.value)==null?void 0:g.nextPath:(_=S.value)==null?void 0:_.prevPath}),v=se(()=>{var g,_;return y.value?(g=S.value)==null?void 0:g.prevPath:(_=S.value)==null?void 0:_.nextPath}),D=Q(null),A=Q(null),H=Q(!1),E=Q(!1),x=vp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var g;return(g=D.value)==null?void 0:g.$el}),speed:V,isRTL:y,isVertical:k,isLongStrip:j,onLongIdle:()=>t("longIdle")});fe(x.isPlaying,g=>{g||h(!1),t("playingChanged",g)}),fe(x.isIdle,g=>{x.isPlaying.value&&h(g)}),fe(i,g=>{!g&&x.isIdle.value?x.awake():g&&n.fullScreen&&h()});const N=se(()=>!n.touchDevice&&x.isIdle.value&&!i.value),L=se({get(){return M.value},set(g){x.interfere(()=>{M.value=g})}}),b=gp({page:a,style:m,direction:d,isLongStrip:j,isVertical:k,isRTL:y,spaceTop:se(()=>n.spaceTop),scrollEl:se(()=>{var g;return(g=D.value)==null?void 0:g.$el}),interferePlayer:g=>x.interfere(g),onChangedPage(g){const _=l.value.length;if(g<0||g>=_+1)return;const C=a.value;a.value=g,t("pageChanged",Math.floor(g*100)/100),g>=_?(h(!1),x.stop()):g===0?h(!1):r||(j.value?s!==void 0&&Y()-s>300&&h(!0):Math.abs(C-g)===1&&h(!0)),!o&&g>=_-2&&(o=!0,t("finished"))}}),F=se(()=>Math.floor(a.value));function Y(){var _;const g=(_=D.value)==null?void 0:_.$el;return g?k.value?g.scrollTop:y.value?-g.scrollLeft:g.scrollLeft:0}const te=()=>x.interfere(()=>ro(100));ef().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const _=j.value&&k.value,C=j.value&&!k.value,K=!j.value&&k.value,W=!j.value&&!k.value;switch(g.key){case" ":g.preventDefault(),j.value?(R(!1),x.toggle()):mt();break;case"ArrowUp":case"PageUp":_?te():K&&F.value!==0&&(g.preventDefault(),st());break;case"ArrowDown":case"PageDown":_?te():K&&!I.value&&(g.preventDefault(),mt());break;case"ArrowLeft":C?te():W?(g.preventDefault(),nn()):k.value&>();break;case"ArrowRight":C?te():W?(g.preventDefault(),so()):k.value&&me();break}},onKeyUp:g=>{switch(g.key){case"f":$();break;case"t":w();break;case"h":R();break}}}),Ve(()=>{Pt("fullscreenchange",()=>{H.value=!!document.fullscreenElement})});function ge(){!n.touchDevice&&!j.value&&b.goToPage(F.value,{smooth:!0})}function de(){if(x.isPlaying.value){!n.fullScreen||!n.touchDevice?x.stop():x.awake();return}h()}function me(){var g;Me((g=S.value)==null?void 0:g.nextPath)}function gt(){var g;Me((g=S.value)==null?void 0:g.prevPath)}function tn(g){var C,K,W;const _=(W=(K=(C=S.value)==null?void 0:C.chapters)==null?void 0:K[g])==null?void 0:W.path;_&&Me(_)}function Me(g){g&&(location.href=g.includes("://")?g:location.origin+g)}function nn(){y.value?mt():st()}function so(){y.value?st():mt()}function st(){var C;const g=p.value,_=I.value?g[g.length-1][0].index:(C=g[on()-1])==null?void 0:C[0].index;_!==void 0?b.goToPage(_):gt()}function mt(){var g,_;if(I.value)me();else{const C=((_=(g=p.value[on()+1])==null?void 0:g[0])==null?void 0:_.index)??l.value.length;b.goToPage(C)}}function on(){const g=F.value,_=p.value.findIndex(C=>C.some(({index:K})=>K===g));return _===-1?p.value.length-1:_}function f(){hp(),x.stop(),t("dispose")}async function h(g){if(i.value&&!n.fullScreen)return;r=!0;const _=typeof g=="boolean"?g:!n.fullScreen;t("fullScreenChanged",_),_&&setTimeout(()=>{n.fullScreen&&i.value&&t("fullScreenChanged",!1)},100)}function w(){n.entryId?z():T()}function $(){var g,_;document.fullscreenElement?document.exitFullscreen():(_=(g=A.value)==null?void 0:g.$el)==null||_.requestFullscreen()}function T(){x.stop(),t("addEntry")}function z(){x.stop(),t("openEntry",n.entryId)}function R(g){E.value!==g&&(E.value=!E.value,E.value&&x.isPlaying&&x.stop())}return(g,_)=>{const C=pr,K=Ji,W=Zi,G=Yi,ne=Ui,ie=Wi,ae=to,pe=Hi,ye=dr,Ue=Vi,Et=Fi,io=Ri,Ht=Di,lo=Bi,Ae=Ai,Ge=ji,ao=zi,Mp=ur,Lp=cr,zp=Ii,jp=ki,Ap=Ci,Bp=si;return B(),Ie(Bp,{ref_key:"root",ref:A,"full-screen":!!g.fullScreen,idle:N.value,"space-top":n.spaceTop,"touch-device":g.touchDevice,rtl:Z(y),onClick:_[11]||(_[11]=ot(()=>{},["stop"]))},hs({settings:re(()=>{var it;return[J(ao,{"reader-style":Z(m),"onUpdate:readerStyle":_[3]||(_[3]=vt=>Ce(m)?m.value=vt:null),direction:Z(d),"onUpdate:direction":_[4]||(_[4]=vt=>Ce(d)?d.value=vt:null),gap:Z(U),"onUpdate:gap":_[5]||(_[5]=vt=>Ce(U)?U.value=vt:null),speed:Z(V),"onUpdate:speed":_[6]||(_[6]=vt=>Ce(V)?V.value=vt:null),zoom:L.value,"onUpdate:zoom":_[7]||(_[7]=vt=>L.value=vt),name:(it=g.raw)==null?void 0:it.title.name,webtoon:Z(u),disabled:Z(c),onHelp:R},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":re(()=>[J(Gt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:re(()=>[J(zp,{zoom:L.value,onClick:_[9]||(_[9]=ot(()=>L.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:re(()=>[q("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Le({width:`${Z(a)/(Z(l).length-1)*100}%`})},null,4)]),default:re(()=>[Z(c)||!Z(l).length?(B(),X("div",bp,[J(C)])):(B(),X(be,{key:1},[J(W,{ref_key:"body",ref:D,zoom:L.value,"onUpdate:zoom":_[0]||(_[0]=it=>L.value=it),"page-index":F.value,pages:Z(p),"total-imgs":Z(l).length,direction:Z(d),gap:Z(U),"is-long-strip":Z(j),isRTL:Z(y),"is-vertical":Z(k),"space-top":g.spaceTop,busy:Z(i),idle:N.value,"play-controller":Z(x),"touch-device":g.touchDevice,onPrev:st,onNext:mt,onClick:de,onDragEnd:ge,onWheelPassive:_[1]||(_[1]=()=>Z(x).interfere())},hs({_:2},[!Z(c)&&Z(l).length?{name:"end",fn:re(()=>{var it;return[J(K,{"has-next":!!((it=S.value)!=null&&it.nextPath),onNext:me,onHide:f},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device"]),at(J(G,{direction:Z(d)},null,8,["direction"]),[[er,!I.value&&!g.tourEnabled&&!E.value]]),I.value?je("",!0):(B(),Ie(ne,{key:0,playing:!!Z(x).isPlaying.value},null,8,["playing"]))],64)),E.value?(B(),Ie(jp,{key:2,"touch-device":g.touchDevice,onHide:R},null,8,["touch-device"])):je("",!0),g.tourEnabled?(B(),Ie(Ap,{key:3,onHide:_[10]||(_[10]=()=>t("tourEnabledChanged",!1))})):je("",!0)]),_:2},[g.raw?{name:"back",fn:re(()=>[J(ae,{href:g.raw.title.url,title:"Back to manga"},{default:re(()=>[J(ie)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:re(()=>[J(ae,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:f},{default:re(()=>[J(pe)]),_:1})]),key:"1"},S.value?{name:"chapter-nav",fn:re(()=>[J(ye,{modelValue:S.value.activeIndex,label:S.value.activeLabel,title:"Select chapter",items:S.value.chapters,"onUpdate:modelValue":tn},{item:re(({item:it})=>[Ct(Xe(it.label),1)]),_:1},8,["modelValue","label","items"]),P.value||v.value?(B(),X("div",yp,[J(ae,{title:`${Z(y)?"Next":"Prev"} chapter (←)`,href:P.value,disabled:!P.value,class:"!rounded-r-none"},{default:re(()=>[J(Ue)]),_:1},8,["title","href","disabled"]),J(ae,{title:`${Z(y)?"Prev":"Next"} chapter (→)`,href:v.value,disabled:!v.value,class:"!rounded-l-none"},{default:re(()=>[J(Et)]),_:1},8,["title","href","disabled"])])):je("",!0)]),key:"2"}:void 0,Z(p).length?{name:"page-nav",fn:re(()=>[J(io,{"model-value":F.value,disabled:Z(c),pages:Z(p),"total-imgs":Z(l).length,"onUpdate:modelValue":_[2]||(_[2]=it=>Z(b).goToPage(it))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:re(()=>[J(ae,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:w},{default:re(()=>[g.entryId?(B(),Ie(Ht,{key:0})):(B(),Ie(lo,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:re(()=>[J(ae,{title:`${H.value?"Exit":"Enter"} fullscreen (F)`,onClick:$},{default:re(()=>[H.value?(B(),Ie(Ae,{key:0})):(B(),Ie(Ge,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(j)?{name:"play",fn:re(()=>[J(ae,{"data-tour":"Press here to play like a video",title:`${Z(x).isPlaying.value?"Pause":"Play"} (Space)`,disabled:Z(c),onClick:_[8]||(_[8]=()=>Z(x).toggle())},{default:re(()=>[Z(x).isPlaying.value?(B(),Ie(Mp,{key:0})):(B(),Ie(Lp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["full-screen","idle","space-top","touch-device","rtl"])}}}),ol=_e(wp,[["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}.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}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.h-0\\.5{height:2px}.h-0{height:0}.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}.h-screen{height:100vh}.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-screen{width:100vw}.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}.object-contain{-o-object-fit:contain;object-fit:contain}.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-6{padding-bottom:24px}.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}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.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\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
8
|
-
`]]]),
|
|
9
|
-
`,
|
|
1
|
+
(function(He,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce():typeof define=="function"&&define.amd?define(ce):(He=typeof globalThis<"u"?globalThis:He||self,He._gearSecond_=ce())})(this,function(){"use strict";var Bp=Object.defineProperty;var Dp=(He,ce,qe)=>ce in He?Bp(He,ce,{enumerable:!0,configurable:!0,writable:!0,value:qe}):He[ce]=qe;var ol=(He,ce,qe)=>(Dp(He,typeof ce!="symbol"?ce+"":ce,qe),qe);function He(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 ce={},qe=[],ot=()=>{},rl=()=>!1,il=/^on[^a-z]/,$n=e=>il.test(e),fo=e=>e.startsWith("onUpdate:"),ke=Object.assign,po=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sl=Object.prototype.hasOwnProperty,fe=(e,t)=>sl.call(e,t),Q=Array.isArray,Kt=e=>Tn(e)==="[object Map]",vr=e=>Tn(e)==="[object Set]",se=e=>typeof e=="function",Ie=e=>typeof e=="string",ho=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",_r=e=>_e(e)&&se(e.then)&&se(e.catch),br=Object.prototype.toString,Tn=e=>br.call(e),ll=e=>Tn(e).slice(8,-1),yr=e=>Tn(e)==="[object Object]",go=e=>Ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pn=He(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),En=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},al=/-(\w)/g,We=En(e=>e.replace(al,(t,n)=>n?n.toUpperCase():"")),cl=/\B([A-Z])/g,Ze=En(e=>e.replace(cl,"-$1").toLowerCase()),On=En(e=>e.charAt(0).toUpperCase()+e.slice(1)),mo=En(e=>e?`on${On(e)}`:""),on=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},vo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_o=e=>{const t=Ie(e)?Number(e):NaN;return isNaN(t)?e:t};let wr;const bo=()=>wr||(wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Ie(o)?pl(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Ie(e))return e;if(_e(e))return e}}const ul=/;(?![^(]*\))/g,fl=/:([^]+)/,dl=/\/\*[^]*?\*\//g;function pl(e){const t={};return e.replace(dl,"").split(ul).forEach(n=>{if(n){const o=n.split(fl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Ie(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const hl=He("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xr(e){return!!e||e===""}const Je=e=>Ie(e)?e:e==null?"":Q(e)||_e(e)&&(e.toString===br||!se(e.toString))?JSON.stringify(e,kr,2):String(e),kr=(e,t)=>t&&t.__v_isRef?kr(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:vr(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!Q(t)&&!yr(t)?String(t):t;let Ue;class gl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){Ue=this}off(){Ue=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 ml(e,t=Ue){t&&t.active&&t.effects.push(e)}function Cr(){return Ue}function vl(e){Ue&&Ue.cleanups.push(e)}const yo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Sr=e=>(e.w&wt)>0,Ir=e=>(e.n&wt)>0,_l=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=wt},bl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];Sr(r)&&!Ir(r)?r.delete(e):t[n++]=r,r.w&=~wt,r.n&=~wt}t.length=n}},wo=new WeakMap;let rn=0,wt=1;const xo=30;let rt;const Lt=Symbol(""),ko=Symbol("");class Co{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ml(this,o)}run(){if(!this.active)return this.fn();let t=rt,n=xt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=rt,rt=this,xt=!0,wt=1<<++rn,rn<=xo?_l(this):$r(this),this.fn()}finally{rn<=xo&&bl(this),wt=1<<--rn,rt=this.parent,xt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){rt===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 xt=!0;const Tr=[];function Yt(){Tr.push(xt),xt=!1}function Xt(){const e=Tr.pop();xt=e===void 0?!0:e}function Ne(e,t,n){if(xt&&rt){let o=wo.get(e);o||wo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=yo()),Pr(r)}}function Pr(e,t){let n=!1;rn<=xo?Ir(e)||(e.n|=wt,n=!Sr(e)):n=!e.has(rt),n&&(e.add(rt),rt.deps.push(e))}function pt(e,t,n,o,r,i){const s=wo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&Q(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":Q(e)?go(n)&&l.push(s.get("length")):(l.push(s.get(Lt)),Kt(e)&&l.push(s.get(ko)));break;case"delete":Q(e)||(l.push(s.get(Lt)),Kt(e)&&l.push(s.get(ko)));break;case"set":Kt(e)&&l.push(s.get(Lt));break}if(l.length===1)l[0]&&So(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);So(yo(a))}}function So(e,t){const n=Q(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!==rt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const yl=He("__proto__,__v_isRef,__isVue"),Or=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ho)),wl=Io(),xl=Io(!1,!0),kl=Io(!0),Mr=Cl();function Cl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=de(this);for(let i=0,s=this.length;i<s;i++)Ne(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(de)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Yt();const o=de(this)[t].apply(this,n);return Xt(),o}}),e}function Sl(e){const t=de(this);return Ne(t,"has",e),t.hasOwnProperty(e)}function Io(e=!1,t=!1){return function(o,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?Fl:Fr:t?Nr:Rr).get(o))return o;const s=Q(o);if(!e){if(s&&fe(Mr,r))return Reflect.get(Mr,r,i);if(r==="hasOwnProperty")return Sl}const l=Reflect.get(o,r,i);return(ho(r)?Or.has(r):yl(r))||(e||Ne(o,"get",r),t)?l:$e(l)?s&&go(r)?l:l.value:_e(l)?e?Po(l):sn(l):l}}const Il=Lr(),$l=Lr(!0);function Lr(e=!1){return function(n,o,r,i){let s=n[o];if(Zt(s)&&$e(s)&&!$e(r))return!1;if(!e&&(!Nn(r)&&!Zt(r)&&(s=de(s),r=de(r)),!Q(n)&&$e(s)&&!$e(r)))return s.value=r,!0;const l=Q(n)&&go(o)?Number(o)<n.length:fe(n,o),a=Reflect.set(n,o,r,i);return n===de(i)&&(l?on(r,s)&&pt(n,"set",o,r):pt(n,"add",o,r)),a}}function Tl(e,t){const n=fe(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&pt(e,"delete",t,void 0),o}function Pl(e,t){const n=Reflect.has(e,t);return(!ho(t)||!Or.has(t))&&Ne(e,"has",t),n}function El(e){return Ne(e,"iterate",Q(e)?"length":Lt),Reflect.ownKeys(e)}const zr={get:wl,set:Il,deleteProperty:Tl,has:Pl,ownKeys:El},Ol={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ml=ke({},zr,{get:xl,set:$l}),$o=e=>e,zn=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,o=!1){e=e.__v_raw;const r=de(e),i=de(t);n||(t!==i&&Ne(r,"get",t),Ne(r,"get",i));const{has:s}=zn(r),l=o?$o:n?Oo:ln;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function An(e,t=!1){const n=this.__v_raw,o=de(n),r=de(e);return t||(e!==r&&Ne(o,"has",e),Ne(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bn(e,t=!1){return e=e.__v_raw,!t&&Ne(de(e),"iterate",Lt),Reflect.get(e,"size",e)}function jr(e){e=de(e);const t=de(this);return zn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Ar(e,t){t=de(t);const n=de(this),{has:o,get:r}=zn(n);let i=o.call(n,e);i||(e=de(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?on(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Br(e){const t=de(this),{has:n,get:o}=zn(t);let r=n.call(t,e);r||(e=de(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&pt(t,"delete",e,void 0),i}function Dr(){const e=de(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Dn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=de(s),a=t?$o:e?Oo:ln;return!e&&Ne(l,"iterate",Lt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Rn(e,t,n){return function(...o){const r=this.__v_raw,i=de(r),s=Kt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?$o:t?Oo:ln;return!t&&Ne(i,"iterate",a?ko:Lt),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:this}}function Ll(){const e={get(i){return jn(this,i)},get size(){return Bn(this)},has:An,add:jr,set:Ar,delete:Br,clear:Dr,forEach:Dn(!1,!1)},t={get(i){return jn(this,i,!1,!0)},get size(){return Bn(this)},has:An,add:jr,set:Ar,delete:Br,clear:Dr,forEach:Dn(!1,!0)},n={get(i){return jn(this,i,!0)},get size(){return Bn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Dn(!0,!1)},o={get(i){return jn(this,i,!0,!0)},get size(){return Bn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Dn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Rn(i,!1,!1),n[i]=Rn(i,!0,!1),t[i]=Rn(i,!1,!0),o[i]=Rn(i,!0,!0)}),[e,n,t,o]}const[zl,jl,Al,Bl]=Ll();function To(e,t){const n=t?e?Bl:Al:e?jl:zl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(fe(n,r)&&r in o?n:o,r,i)}const Dl={get:To(!1,!1)},Rl={get:To(!1,!0)},Nl={get:To(!0,!1)},Rr=new WeakMap,Nr=new WeakMap,Fr=new WeakMap,Fl=new WeakMap;function Vl(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:Vl(ll(e))}function sn(e){return Zt(e)?e:Eo(e,!1,zr,Dl,Rr)}function Wl(e){return Eo(e,!1,Ml,Rl,Nr)}function Po(e){return Eo(e,!0,Ol,Nl,Fr)}function Eo(e,t,n,o,r){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Hl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function qt(e){return Zt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Zt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function Vr(e){return qt(e)||Zt(e)}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Hr(e){return Ln(e,"__v_skip",!0),e}const ln=e=>_e(e)?sn(e):e,Oo=e=>_e(e)?Po(e):e;function Wr(e){xt&&rt&&(e=de(e),Pr(e.dep||(e.dep=yo())))}function Ur(e,t){e=de(e);const n=e.dep;n&&So(n)}function $e(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return Kr(e,!1)}function Ul(e){return Kr(e,!0)}function Kr(e,t){return $e(e)?e:new Kl(e,t)}class Kl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:de(t),this._value=n?t:ln(t)}get value(){return Wr(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||Zt(t);t=n?t:de(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Ur(this))}}function G(e){return $e(e)?e.value:e}const Yl={get:(e,t,n)=>G(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return $e(r)&&!$e(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Yr(e){return qt(e)?e:new Proxy(e,Yl)}class Xl{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 Co(t,()=>{this._dirty||(this._dirty=!0,Ur(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=de(this);return Wr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ql(e,t,n=!1){let o,r;const i=se(e);return i?(o=e,r=ot):(o=e.get,r=e.set),new Xl(o,r,i||!r,n)}function Np(e,...t){}function Ct(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Fn(i,t,n)}return r}function Qe(e,t,n,o){if(se(e)){const i=Ct(e,t,n,o);return i&&_r(i)&&i.catch(s=>{Fn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Qe(e[i],t,n,o));return r}function Fn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=n;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){Ct(a,null,10,[e,s,l]);return}}Zl(e,n,r,o)}function Zl(e,t,n,o=!0){console.error(e)}let an=!1,Mo=!1;const Ae=[];let ct=0;const Jt=[];let ht=null,zt=0;const Xr=Promise.resolve();let Lo=null;function gt(e){const t=Lo||Xr;return e?t.then(this?e.bind(this):e):t}function Jl(e){let t=ct+1,n=Ae.length;for(;t<n;){const o=t+n>>>1;cn(Ae[o])<e?t=o+1:n=o}return t}function zo(e){(!Ae.length||!Ae.includes(e,an&&e.allowRecurse?ct+1:ct))&&(e.id==null?Ae.push(e):Ae.splice(Jl(e.id),0,e),qr())}function qr(){!an&&!Mo&&(Mo=!0,Lo=Xr.then(Qr))}function Ql(e){const t=Ae.indexOf(e);t>ct&&Ae.splice(t,1)}function Gl(e){Q(e)?Jt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?zt+1:zt))&&Jt.push(e),qr()}function Zr(e,t=an?ct+1:0){for(;t<Ae.length;t++){const n=Ae[t];n&&n.pre&&(Ae.splice(t,1),t--,n())}}function Jr(e){if(Jt.length){const t=[...new Set(Jt)];if(Jt.length=0,ht){ht.push(...t);return}for(ht=t,ht.sort((n,o)=>cn(n)-cn(o)),zt=0;zt<ht.length;zt++)ht[zt]();ht=null,zt=0}}const cn=e=>e.id==null?1/0:e.id,ea=(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 Qr(e){Mo=!1,an=!0,Ae.sort(ea);const t=ot;try{for(ct=0;ct<Ae.length;ct++){const n=Ae[ct];n&&n.active!==!1&&Ct(n,null,14)}}finally{ct=0,Ae.length=0,Jr(),an=!1,Lo=null,(Ae.length||Jt.length)&&Qr()}}function ta(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ce;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:h,trim:g}=o[u]||ce;g&&(r=n.map(y=>Ie(y)?y.trim():y)),h&&(r=n.map(vo))}let l,a=o[l=mo(t)]||o[l=mo(We(t))];!a&&i&&(a=o[l=mo(Ze(t))]),a&&Qe(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,r)}}function Gr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!se(e)){const a=c=>{const u=Gr(c,t,!0);u&&(l=!0,ke(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&o.set(e,null),null):(Q(i)?i.forEach(a=>s[a]=null):ke(s,i),_e(e)&&o.set(e,s),s)}function Vn(e,t){return!e||!$n(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Ze(t))||fe(e,t))}let je=null,ei=null;function Hn(e){const t=je;return je=e,ei=e&&e.type.__scopeId||null,t}function le(e,t=je,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ei(-1);const i=Hn(t);let s;try{s=e(...r)}finally{Hn(i),o._d&&Ei(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Fp(){}function jo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:h,data:g,setupState:y,ctx:M,inheritAttrs:x}=e;let B,W;const N=Hn(e);try{if(n.shapeFlag&4){const d=r||o;B=ut(u.call(d,d,h,i,y,g,M)),W=a}else{const d=t;B=ut(d.length>1?d(i,{attrs:a,slots:l,emit:c}):d(i,null)),W=t.props?a:na(a)}}catch(d){hn.length=0,Fn(d,e,1),B=Z(tt)}let L=B;if(W&&x!==!1){const d=Object.keys(W),{shapeFlag:E}=L;d.length&&E&7&&(s&&d.some(fo)&&(W=oa(W,s)),L=St(L,W))}return n.dirs&&(L=St(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),B=L,Hn(N),B}const na=e=>{let t;for(const n in e)(n==="class"||n==="style"||$n(n))&&((t||(t={}))[n]=e[n]);return t},oa=(e,t)=>{const n={};for(const o in e)(!fo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ra(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?ti(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const g=u[h];if(s[g]!==o[g]&&!Vn(c,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?ti(o,s,c):!0:!!s;return!1}function ti(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 i=o[r];if(t[i]!==e[i]&&!Vn(n,i))return!0}return!1}function ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const sa=e=>e.__isSuspense;function la(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Gl(e)}const Wn={};function pe(e,t,n){return ni(e,t,n)}function ni(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=ce){var l;const a=Cr()===((l=ze)==null?void 0:l.scope)?ze:null;let c,u=!1,h=!1;if($e(e)?(c=()=>e.value,u=Nn(e)):qt(e)?(c=()=>e,o=!0):Q(e)?(h=!0,u=e.some(d=>qt(d)||Nn(d)),c=()=>e.map(d=>{if($e(d))return d.value;if(qt(d))return jt(d);if(se(d))return Ct(d,a,2)})):se(e)?t?c=()=>Ct(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return g&&g(),Qe(e,a,3,[y])}:c=ot,t&&o){const d=c;c=()=>jt(d())}let g,y=d=>{g=N.onStop=()=>{Ct(d,a,4)}},M;if(mn)if(y=ot,t?n&&Qe(t,a,3,[c(),h?[]:void 0,y]):c(),r==="sync"){const d=Ga();M=d.__watcherHandles||(d.__watcherHandles=[])}else return ot;let x=h?new Array(e.length).fill(Wn):Wn;const B=()=>{if(N.active)if(t){const d=N.run();(o||u||(h?d.some((E,I)=>on(E,x[I])):on(d,x)))&&(g&&g(),Qe(t,a,3,[d,x===Wn?void 0:h&&x[0]===Wn?[]:x,y]),x=d)}else N.run()};B.allowRecurse=!!t;let W;r==="sync"?W=B:r==="post"?W=()=>Fe(B,a&&a.suspense):(B.pre=!0,a&&(B.id=a.uid),W=()=>zo(B));const N=new Co(c,W);t?n?B():x=N.run():r==="post"?Fe(N.run.bind(N),a&&a.suspense):N.run();const L=()=>{N.stop(),a&&a.scope&&po(a.scope.effects,N)};return M&&M.push(L),L}function aa(e,t,n){const o=this.proxy,r=Ie(e)?e.includes(".")?oi(o,e):()=>o[e]:e.bind(o,o);let i;se(t)?i=t:(i=t.handler,n=t);const s=ze;Gt(this);const l=ni(r,i.bind(o),n);return s?Gt(s):Nt(),l}function oi(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 jt(e,t){if(!_e(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))jt(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)jt(e[n],t);else if(vr(e)||Kt(e))e.forEach(n=>{jt(n,t)});else if(yr(e))for(const n in e)jt(e[n],t);return e}function mt(e,t){const n=je;if(n===null)return e;const o=no(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,a,c=ce]=t[i];s&&(se(s)&&(s={mounted:s,updated:s}),s.deep&&jt(l),r.push({dir:s,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function At(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(Yt(),Qe(a,n,8,[e.el,l,e,t]),Xt())}}function ca(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return et(()=>{e.isMounted=!0}),Yn(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],ri={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},ua={name:"BaseTransition",props:ri,setup(e,{slots:t}){const n=Li(),o=ca();let r;return()=>{const i=t.default&&li(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const x of i)if(x.type!==tt){s=x;break}}const l=de(e),{mode:a}=l;if(o.isLeaving)return Bo(s);const c=si(s);if(!c)return Bo(s);const u=Ao(c,l,o,n);Do(c,u);const h=n.subTree,g=h&&si(h);let y=!1;const{getTransitionKey:M}=c.type;if(M){const x=M();r===void 0?r=x:x!==r&&(r=x,y=!0)}if(g&&g.type!==tt&&(!Rt(c,g)||y)){const x=Ao(g,l,o,n);if(Do(g,x),a==="out-in")return o.isLeaving=!0,x.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Bo(s);a==="in-out"&&c.type!==tt&&(x.delayLeave=(B,W,N)=>{const L=ii(o,g);L[String(g.key)]=g,B._leaveCb=()=>{W(),B._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=N})}return s}}};function ii(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 Ao(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:g,onAfterLeave:y,onLeaveCancelled:M,onBeforeAppear:x,onAppear:B,onAfterAppear:W,onAppearCancelled:N}=t,L=String(e.key),d=ii(n,e),E=(m,V)=>{m&&Qe(m,o,9,V)},I=(m,V)=>{const ee=V[1];E(m,V),Q(m)?m.every(ie=>ie.length<=1)&&ee():m.length<=1&&ee()},$={mode:i,persisted:s,beforeEnter(m){let V=l;if(!n.isMounted)if(r)V=x||l;else return;m._leaveCb&&m._leaveCb(!0);const ee=d[L];ee&&Rt(e,ee)&&ee.el._leaveCb&&ee.el._leaveCb(),E(V,[m])},enter(m){let V=a,ee=c,ie=u;if(!n.isMounted)if(r)V=B||a,ee=W||c,ie=N||u;else return;let b=!1;const F=m._enterCb=oe=>{b||(b=!0,oe?E(ie,[m]):E(ee,[m]),$.delayedLeave&&$.delayedLeave(),m._enterCb=void 0)};V?I(V,[m,F]):F()},leave(m,V){const ee=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return V();E(h,[m]);let ie=!1;const b=m._leaveCb=F=>{ie||(ie=!0,V(),F?E(M,[m]):E(y,[m]),m._leaveCb=void 0,d[ee]===e&&delete d[ee])};d[ee]=e,g?I(g,[m,b]):b()},clone(m){return Ao(m,t,n,o)}};return $}function Bo(e){if(Un(e))return e=St(e),e.children=null,e}function si(e){return Un(e)?e.children?e.children[0]:void 0:e}function Do(e,t){e.shapeFlag&6&&e.component?Do(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 li(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ce?(s.patchFlag&128&&r++,o=o.concat(li(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?St(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function Te(e,t){return se(e)?(()=>ke({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function fa(e,t){ai(e,"a",t)}function da(e,t){ai(e,"da",t)}function ai(e,t,n=ze){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Kn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Un(r.parent.vnode)&&pa(o,t,n,r),r=r.parent}}function pa(e,t,n,o){const r=Kn(t,e,o,!0);it(()=>{po(o[t],r)},n)}function Kn(e,t,n=ze,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Yt(),Gt(n);const l=Qe(t,n,e,s);return Nt(),Xt(),l});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=ze)=>(!mn||e==="sp")&&Kn(e,(...o)=>t(...o),n),ha=vt("bm"),et=vt("m"),ga=vt("bu"),ma=vt("u"),Yn=vt("bum"),it=vt("um"),va=vt("sp"),_a=vt("rtg"),ba=vt("rtc");function ya(e,t=ze){Kn("ec",e,t)}const ci="components",ui=Symbol.for("v-ndc");function wa(e){return Ie(e)?xa(ci,e,!1)||e:e||ui}function xa(e,t,n=!0,o=!1){const r=je||ze;if(r){const i=r.type;if(e===ci){const l=Za(i,!1);if(l&&(l===t||l===We(t)||l===On(We(t))))return i}const s=fi(r[e]||i[e],t)||fi(r.appContext[e],t);return!s&&o?i:s}}function fi(e,t){return e&&(e[t]||e[We(t)]||e[On(We(t))])}function fn(e,t,n,o){let r;const i=n&&n[o];if(Q(e)||Ie(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(_e(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function di(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 i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function Pe(e,t,n={},o,r){if(je.isCE||je.parent&&un(je.parent)&&je.parent.isCE)return t!=="default"&&(n.name=t),Z("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),A();const s=i&&pi(i(n)),l=we(Ce,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function pi(e){return e.some(t=>Qn(t)?!(t.type===tt||t.type===Ce&&!pi(t.children)):!0)?e:null}const Ro=e=>e?ji(e)?no(e)||e.proxy:Ro(e.parent):null,dn=ke(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=>Ro(e.parent),$root:e=>Ro(e.root),$emit:e=>e.emit,$options:e=>Vo(e),$forceUpdate:e=>e.f||(e.f=()=>zo(e.update)),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>aa.bind(e)}),No=(e,t)=>e!==ce&&!e.__isScriptSetup&&fe(e,t),ka={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const y=s[t];if(y!==void 0)switch(y){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(No(o,t))return s[t]=1,o[t];if(r!==ce&&fe(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&fe(c,t))return s[t]=3,i[t];if(n!==ce&&fe(n,t))return s[t]=4,n[t];Fo&&(s[t]=0)}}const u=dn[t];let h,g;if(u)return t==="$attrs"&&Ne(e,"get",t),u(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ce&&fe(n,t))return s[t]=4,n[t];if(g=a.config.globalProperties,fe(g,t))return g[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return No(r,t)?(r[t]=n,!0):o!==ce&&fe(o,t)?(o[t]=n,!0):fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==ce&&fe(e,s)||No(t,s)||(l=i[0])&&fe(l,s)||fe(o,s)||fe(dn,s)||fe(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hi(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fo=!0;function Ca(e){const t=Vo(e),n=e.proxy,o=e.ctx;Fo=!1,t.beforeCreate&&gi(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:h,mounted:g,beforeUpdate:y,updated:M,activated:x,deactivated:B,beforeDestroy:W,beforeUnmount:N,destroyed:L,unmounted:d,render:E,renderTracked:I,renderTriggered:$,errorCaptured:m,serverPrefetch:V,expose:ee,inheritAttrs:ie,components:b,directives:F,filters:oe}=t;if(c&&Sa(c,o,null),s)for(const k in s){const P=s[k];se(P)&&(o[k]=P.bind(n))}if(r){const k=r.call(n,n);_e(k)&&(e.data=sn(k))}if(Fo=!0,i)for(const k in i){const P=i[k],U=se(P)?P.bind(n,n):se(P.get)?P.get.bind(n,n):ot,ne=!se(P)&&se(P.set)?P.set.bind(n):ot,ye=ae({get:U,set:ne});Object.defineProperty(o,k,{enumerable:!0,configurable:!0,get:()=>ye.value,set:he=>ye.value=he})}if(l)for(const k in l)mi(l[k],o,n,k);if(a){const k=se(a)?a.call(n):a;Reflect.ownKeys(k).forEach(P=>{Zn(P,k[P])})}u&&gi(u,e,"c");function C(k,P){Q(P)?P.forEach(U=>k(U.bind(n))):P&&k(P.bind(n))}if(C(ha,h),C(et,g),C(ga,y),C(ma,M),C(fa,x),C(da,B),C(ya,m),C(ba,I),C(_a,$),C(Yn,N),C(it,d),C(va,V),Q(ee))if(ee.length){const k=e.exposed||(e.exposed={});ee.forEach(P=>{Object.defineProperty(k,P,{get:()=>n[P],set:U=>n[P]=U})})}else e.exposed||(e.exposed={});E&&e.render===ot&&(e.render=E),ie!=null&&(e.inheritAttrs=ie),b&&(e.components=b),F&&(e.directives=F)}function Sa(e,t,n=ot){Q(e)&&(e=Ho(e));for(const o in e){const r=e[o];let i;_e(r)?"default"in r?i=Bt(r.from||o,r.default,!0):i=Bt(r.from||o):i=Bt(r),$e(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function gi(e,t,n){Qe(Q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function mi(e,t,n,o){const r=o.includes(".")?oi(n,o):()=>n[o];if(Ie(e)){const i=t[e];se(i)&&pe(r,i)}else if(se(e))pe(r,e.bind(n));else if(_e(e))if(Q(e))e.forEach(i=>mi(i,t,n,o));else{const i=se(e.handler)?e.handler.bind(n):t[e.handler];se(i)&&pe(r,i,e)}}function Vo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Xn(a,c,s,!0)),Xn(a,t,s)),_e(t)&&i.set(t,a),a}function Xn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Xn(e,i,n,!0),r&&r.forEach(s=>Xn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Ia[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ia={data:vi,props:_i,emits:_i,methods:pn,computed:pn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:pn,directives:pn,watch:Ta,provide:vi,inject:$a};function vi(e,t){return t?e?function(){return ke(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function $a(e,t){return pn(Ho(e),Ho(t))}function Ho(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?ke(Object.create(null),e,t):t}function _i(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:ke(Object.create(null),hi(e),hi(t??{})):t}function Ta(e,t){if(!e)return t;if(!t)return e;const n=ke(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function bi(){return{app:null,config:{isNativeTag:rl,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 Pa=0;function Ea(e,t){return function(o,r=null){se(o)||(o=ke({},o)),r!=null&&!_e(r)&&(r=null);const i=bi(),s=new Set;let l=!1;const a=i.app={_uid:Pa++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:ec,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&se(c.install)?(s.add(c),c.install(a,...u)):se(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,h){if(!l){const g=Z(o,r);return g.appContext=i,u&&t?t(g,c):e(g,c,h),l=!0,a._container=c,c.__vue_app__=a,no(g.component)||g.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){qn=a;try{return c()}finally{qn=null}}};return a}}let qn=null;function Zn(e,t){if(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function Bt(e,t,n=!1){const o=ze||je;if(o||qn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:qn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&se(t)?t.call(o&&o.proxy):t}}function Oa(e,t,n,o=!1){const r={},i={};Ln(i,Gn,1),e.propsDefaults=Object.create(null),yi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Wl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ma(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=de(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let g=u[h];if(Vn(e.emitsOptions,g))continue;const y=t[g];if(a)if(fe(i,g))y!==i[g]&&(i[g]=y,c=!0);else{const M=We(g);r[M]=Wo(a,l,M,y,e,!1)}else y!==i[g]&&(i[g]=y,c=!0)}}}else{yi(e,t,r,i)&&(c=!0);let u;for(const h in l)(!t||!fe(t,h)&&((u=Ze(h))===h||!fe(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Wo(a,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!fe(t,h))&&(delete i[h],c=!0)}c&&pt(e,"set","$attrs")}function yi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Pn(a))continue;const c=t[a];let u;r&&fe(r,u=We(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Vn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=de(n),c=l||ce;for(let u=0;u<i.length;u++){const h=i[u];n[h]=Wo(r,a,h,c[h],e,!fe(c,h))}}return s}function Wo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=fe(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&se(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Gt(r),o=c[n]=a.call(null,t),Nt())}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ze(n))&&(o=!0))}return o}function wi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!se(e)){const u=h=>{a=!0;const[g,y]=wi(h,t,!0);ke(s,g),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return _e(e)&&o.set(e,qe),qe;if(Q(i))for(let u=0;u<i.length;u++){const h=We(i[u]);xi(h)&&(s[h]=ce)}else if(i)for(const u in i){const h=We(u);if(xi(h)){const g=i[u],y=s[h]=Q(g)||se(g)?{type:g}:ke({},g);if(y){const M=Si(Boolean,y.type),x=Si(String,y.type);y[0]=M>-1,y[1]=x<0||M<x,(M>-1||fe(y,"default"))&&l.push(h)}}}const c=[s,l];return _e(e)&&o.set(e,c),c}function xi(e){return e[0]!=="$"}function ki(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ci(e,t){return ki(e)===ki(t)}function Si(e,t){return Q(t)?t.findIndex(n=>Ci(n,e)):se(t)&&Ci(t,e)?0:-1}const Ii=e=>e[0]==="_"||e==="$stable",Uo=e=>Q(e)?e.map(ut):[ut(e)],La=(e,t,n)=>{if(t._n)return t;const o=le((...r)=>Uo(t(...r)),n);return o._c=!1,o},$i=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ii(r))continue;const i=e[r];if(se(i))t[r]=La(r,i,o);else if(i!=null){const s=Uo(i);t[r]=()=>s}}},Ti=(e,t)=>{const n=Uo(t);e.slots.default=()=>n},za=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=de(t),Ln(t,"_",n)):$i(t,e.slots={})}else e.slots={},t&&Ti(e,t);Ln(e.slots,Gn,1)},ja=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=ce;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ke(r,t),!n&&l===1&&delete r._):(i=!t.$stable,$i(t,r)),s=t}else t&&(Ti(e,t),s={default:1});if(i)for(const l in r)!Ii(l)&&!(l in s)&&delete r[l]};function Ko(e,t,n,o,r=!1){if(Q(e)){e.forEach((g,y)=>Ko(g,t&&(Q(t)?t[y]:t),n,o,r));return}if(un(o)&&!r)return;const i=o.shapeFlag&4?no(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ce?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(Ie(c)?(u[c]=null,fe(h,c)&&(h[c]=null)):$e(c)&&(c.value=null)),se(a))Ct(a,l,12,[s,u]);else{const g=Ie(a),y=$e(a);if(g||y){const M=()=>{if(e.f){const x=g?fe(h,a)?h[a]:u[a]:a.value;r?Q(x)&&po(x,i):Q(x)?x.includes(i)||x.push(i):g?(u[a]=[i],fe(h,a)&&(h[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else g?(u[a]=s,fe(h,a)&&(h[a]=s)):y&&(a.value=s,e.k&&(u[e.k]=s))};s?(M.id=-1,Fe(M,n)):M()}}}const Fe=la;function Aa(e){return Ba(e)}function Ba(e,t){const n=bo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:g,setScopeId:y=ot,insertStaticContent:M}=e,x=(f,p,_,T=null,S=null,j=null,H=!1,z=null,R=!!p.dynamicChildren)=>{if(f===p)return;f&&!Rt(f,p)&&(T=Ee(f),he(f,S,j,!0),f=null),p.patchFlag===-2&&(R=!1,p.dynamicChildren=null);const{type:O,ref:v,shapeFlag:w}=p;switch(O){case Jn:B(f,p,_,T);break;case tt:W(f,p,_,T);break;case Yo:f==null&&N(p,_,T,H);break;case Ce:b(f,p,_,T,S,j,H,z,R);break;default:w&1?E(f,p,_,T,S,j,H,z,R):w&6?F(f,p,_,T,S,j,H,z,R):(w&64||w&128)&&O.process(f,p,_,T,S,j,H,z,R,dt)}v!=null&&S&&Ko(v,f&&f.ref,j,p||f,!p)},B=(f,p,_,T)=>{if(f==null)o(p.el=l(p.children),_,T);else{const S=p.el=f.el;p.children!==f.children&&c(S,p.children)}},W=(f,p,_,T)=>{f==null?o(p.el=a(p.children||""),_,T):p.el=f.el},N=(f,p,_,T)=>{[f.el,f.anchor]=M(f.children,p,_,T,f.el,f.anchor)},L=({el:f,anchor:p},_,T)=>{let S;for(;f&&f!==p;)S=g(f),o(f,_,T),f=S;o(p,_,T)},d=({el:f,anchor:p})=>{let _;for(;f&&f!==p;)_=g(f),r(f),f=_;r(p)},E=(f,p,_,T,S,j,H,z,R)=>{H=H||p.type==="svg",f==null?I(p,_,T,S,j,H,z,R):V(f,p,S,j,H,z,R)},I=(f,p,_,T,S,j,H,z)=>{let R,O;const{type:v,props:w,shapeFlag:K,transition:J,dirs:re}=f;if(R=f.el=s(f.type,j,w&&w.is,w),K&8?u(R,f.children):K&16&&m(f.children,R,null,T,S,j&&v!=="foreignObject",H,z),re&&At(f,null,T,"created"),$(R,f,f.scopeId,H,T),w){for(const ge in w)ge!=="value"&&!Pn(ge)&&i(R,ge,null,w[ge],j,f.children,T,S,ve);"value"in w&&i(R,"value",null,w.value),(O=w.onVnodeBeforeMount)&&ft(O,T,f)}re&&At(f,null,T,"beforeMount");const me=(!S||S&&!S.pendingBranch)&&J&&!J.persisted;me&&J.beforeEnter(R),o(R,p,_),((O=w&&w.onVnodeMounted)||me||re)&&Fe(()=>{O&&ft(O,T,f),me&&J.enter(R),re&&At(f,null,T,"mounted")},S)},$=(f,p,_,T,S)=>{if(_&&y(f,_),T)for(let j=0;j<T.length;j++)y(f,T[j]);if(S){let j=S.subTree;if(p===j){const H=S.vnode;$(f,H,H.scopeId,H.slotScopeIds,S.parent)}}},m=(f,p,_,T,S,j,H,z,R=0)=>{for(let O=R;O<f.length;O++){const v=f[O]=z?$t(f[O]):ut(f[O]);x(null,v,p,_,T,S,j,H,z)}},V=(f,p,_,T,S,j,H)=>{const z=p.el=f.el;let{patchFlag:R,dynamicChildren:O,dirs:v}=p;R|=f.patchFlag&16;const w=f.props||ce,K=p.props||ce;let J;_&&Dt(_,!1),(J=K.onVnodeBeforeUpdate)&&ft(J,_,p,f),v&&At(p,f,_,"beforeUpdate"),_&&Dt(_,!0);const re=S&&p.type!=="foreignObject";if(O?ee(f.dynamicChildren,O,z,_,T,re,j):H||P(f,p,z,null,_,T,re,j,!1),R>0){if(R&16)ie(z,p,w,K,_,T,S);else if(R&2&&w.class!==K.class&&i(z,"class",null,K.class,S),R&4&&i(z,"style",w.style,K.style,S),R&8){const me=p.dynamicProps;for(let ge=0;ge<me.length;ge++){const xe=me[ge],Xe=w[xe],Ve=K[xe];(Ve!==Xe||xe==="value")&&i(z,xe,Xe,Ve,S,f.children,_,T,ve)}}R&1&&f.children!==p.children&&u(z,p.children)}else!H&&O==null&&ie(z,p,w,K,_,T,S);((J=K.onVnodeUpdated)||v)&&Fe(()=>{J&&ft(J,_,p,f),v&&At(p,f,_,"updated")},T)},ee=(f,p,_,T,S,j,H)=>{for(let z=0;z<p.length;z++){const R=f[z],O=p[z],v=R.el&&(R.type===Ce||!Rt(R,O)||R.shapeFlag&70)?h(R.el):_;x(R,O,v,null,T,S,j,H,!0)}},ie=(f,p,_,T,S,j,H)=>{if(_!==T){if(_!==ce)for(const z in _)!Pn(z)&&!(z in T)&&i(f,z,_[z],null,H,p.children,S,j,ve);for(const z in T){if(Pn(z))continue;const R=T[z],O=_[z];R!==O&&z!=="value"&&i(f,z,O,R,H,p.children,S,j,ve)}"value"in T&&i(f,"value",_.value,T.value)}},b=(f,p,_,T,S,j,H,z,R)=>{const O=p.el=f?f.el:l(""),v=p.anchor=f?f.anchor:l("");let{patchFlag:w,dynamicChildren:K,slotScopeIds:J}=p;J&&(z=z?z.concat(J):J),f==null?(o(O,_,T),o(v,_,T),m(p.children,_,v,S,j,H,z,R)):w>0&&w&64&&K&&f.dynamicChildren?(ee(f.dynamicChildren,K,_,S,j,H,z),(p.key!=null||S&&p===S.subTree)&&Pi(f,p,!0)):P(f,p,_,v,S,j,H,z,R)},F=(f,p,_,T,S,j,H,z,R)=>{p.slotScopeIds=z,f==null?p.shapeFlag&512?S.ctx.activate(p,_,T,H,R):oe(p,_,T,S,j,H,R):D(f,p,R)},oe=(f,p,_,T,S,j,H)=>{const z=f.component=Ua(f,T,S);if(Un(f)&&(z.ctx.renderer=dt),Ka(z),z.asyncDep){if(S&&S.registerDep(z,C),!f.el){const R=z.subTree=Z(tt);W(null,R,p,_)}return}C(z,f,p,_,S,j,H)},D=(f,p,_)=>{const T=p.component=f.component;if(ra(f,p,_))if(T.asyncDep&&!T.asyncResolved){k(T,p,_);return}else T.next=p,Ql(T.update),T.update();else p.el=f.el,T.vnode=p},C=(f,p,_,T,S,j,H)=>{const z=()=>{if(f.isMounted){let{next:v,bu:w,u:K,parent:J,vnode:re}=f,me=v,ge;Dt(f,!1),v?(v.el=re.el,k(f,v,H)):v=re,w&&Mn(w),(ge=v.props&&v.props.onVnodeBeforeUpdate)&&ft(ge,J,v,re),Dt(f,!0);const xe=jo(f),Xe=f.subTree;f.subTree=xe,x(Xe,xe,h(Xe.el),Ee(Xe),f,S,j),v.el=xe.el,me===null&&ia(f,xe.el),K&&Fe(K,S),(ge=v.props&&v.props.onVnodeUpdated)&&Fe(()=>ft(ge,J,v,re),S)}else{let v;const{el:w,props:K}=p,{bm:J,m:re,parent:me}=f,ge=un(p);if(Dt(f,!1),J&&Mn(J),!ge&&(v=K&&K.onVnodeBeforeMount)&&ft(v,me,p),Dt(f,!0),w&&In){const xe=()=>{f.subTree=jo(f),In(w,f.subTree,f,S,null)};ge?p.type.__asyncLoader().then(()=>!f.isUnmounted&&xe()):xe()}else{const xe=f.subTree=jo(f);x(null,xe,_,T,f,S,j),p.el=xe.el}if(re&&Fe(re,S),!ge&&(v=K&&K.onVnodeMounted)){const xe=p;Fe(()=>ft(v,me,xe),S)}(p.shapeFlag&256||me&&un(me.vnode)&&me.vnode.shapeFlag&256)&&f.a&&Fe(f.a,S),f.isMounted=!0,p=_=T=null}},R=f.effect=new Co(z,()=>zo(O),f.scope),O=f.update=()=>R.run();O.id=f.uid,Dt(f,!0),O()},k=(f,p,_)=>{p.component=f;const T=f.vnode.props;f.vnode=p,f.next=null,Ma(f,p.props,T,_),ja(f,p.children,_),Yt(),Zr(),Xt()},P=(f,p,_,T,S,j,H,z,R=!1)=>{const O=f&&f.children,v=f?f.shapeFlag:0,w=p.children,{patchFlag:K,shapeFlag:J}=p;if(K>0){if(K&128){ne(O,w,_,T,S,j,H,z,R);return}else if(K&256){U(O,w,_,T,S,j,H,z,R);return}}J&8?(v&16&&ve(O,S,j),w!==O&&u(_,w)):v&16?J&16?ne(O,w,_,T,S,j,H,z,R):ve(O,S,j,!0):(v&8&&u(_,""),J&16&&m(w,_,T,S,j,H,z,R))},U=(f,p,_,T,S,j,H,z,R)=>{f=f||qe,p=p||qe;const O=f.length,v=p.length,w=Math.min(O,v);let K;for(K=0;K<w;K++){const J=p[K]=R?$t(p[K]):ut(p[K]);x(f[K],J,_,null,S,j,H,z,R)}O>v?ve(f,S,j,!0,!1,w):m(p,_,T,S,j,H,z,R,w)},ne=(f,p,_,T,S,j,H,z,R)=>{let O=0;const v=p.length;let w=f.length-1,K=v-1;for(;O<=w&&O<=K;){const J=f[O],re=p[O]=R?$t(p[O]):ut(p[O]);if(Rt(J,re))x(J,re,_,null,S,j,H,z,R);else break;O++}for(;O<=w&&O<=K;){const J=f[w],re=p[K]=R?$t(p[K]):ut(p[K]);if(Rt(J,re))x(J,re,_,null,S,j,H,z,R);else break;w--,K--}if(O>w){if(O<=K){const J=K+1,re=J<v?p[J].el:T;for(;O<=K;)x(null,p[O]=R?$t(p[O]):ut(p[O]),_,re,S,j,H,z,R),O++}}else if(O>K)for(;O<=w;)he(f[O],S,j,!0),O++;else{const J=O,re=O,me=new Map;for(O=re;O<=K;O++){const Re=p[O]=R?$t(p[O]):ut(p[O]);Re.key!=null&&me.set(Re.key,O)}let ge,xe=0;const Xe=K-re+1;let Ve=!1,ao=0;const Ut=new Array(Xe);for(O=0;O<Xe;O++)Ut[O]=0;for(O=J;O<=w;O++){const Re=f[O];if(xe>=Xe){he(Re,S,j,!0);continue}let nt;if(Re.key!=null)nt=me.get(Re.key);else for(ge=re;ge<=K;ge++)if(Ut[ge-re]===0&&Rt(Re,p[ge])){nt=ge;break}nt===void 0?he(Re,S,j,!0):(Ut[nt-re]=O+1,nt>=ao?ao=nt:Ve=!0,x(Re,p[nt],_,null,S,j,H,z,R),xe++)}const co=Ve?Da(Ut):qe;for(ge=co.length-1,O=Xe-1;O>=0;O--){const Re=re+O,nt=p[Re],uo=Re+1<v?p[Re+1].el:T;Ut[O]===0?x(null,nt,_,uo,S,j,H,z,R):Ve&&(ge<0||O!==co[ge]?ye(nt,_,uo,2):ge--)}}},ye=(f,p,_,T,S=null)=>{const{el:j,type:H,transition:z,children:R,shapeFlag:O}=f;if(O&6){ye(f.component.subTree,p,_,T);return}if(O&128){f.suspense.move(p,_,T);return}if(O&64){H.move(f,p,_,dt);return}if(H===Ce){o(j,p,_);for(let w=0;w<R.length;w++)ye(R[w],p,_,T);o(f.anchor,p,_);return}if(H===Yo){L(f,p,_);return}if(T!==2&&O&1&&z)if(T===0)z.beforeEnter(j),o(j,p,_),Fe(()=>z.enter(j),S);else{const{leave:w,delayLeave:K,afterLeave:J}=z,re=()=>o(j,p,_),me=()=>{w(j,()=>{re(),J&&J()})};K?K(j,re,me):me()}else o(j,p,_)},he=(f,p,_,T=!1,S=!1)=>{const{type:j,props:H,ref:z,children:R,dynamicChildren:O,shapeFlag:v,patchFlag:w,dirs:K}=f;if(z!=null&&Ko(z,null,_,f,!0),v&256){p.ctx.deactivate(f);return}const J=v&1&&K,re=!un(f);let me;if(re&&(me=H&&H.onVnodeBeforeUnmount)&&ft(me,p,f),v&6)Le(f.component,_,T);else{if(v&128){f.suspense.unmount(_,T);return}J&&At(f,null,p,"beforeUnmount"),v&64?f.type.remove(f,p,_,S,dt,T):O&&(j!==Ce||w>0&&w&64)?ve(O,p,_,!1,!0):(j===Ce&&w&384||!S&&v&16)&&ve(R,p,_),T&&ue(f)}(re&&(me=H&&H.onVnodeUnmounted)||J)&&Fe(()=>{me&&ft(me,p,f),J&&At(f,null,p,"unmounted")},_)},ue=f=>{const{type:p,el:_,anchor:T,transition:S}=f;if(p===Ce){te(_,T);return}if(p===Yo){d(f);return}const j=()=>{r(_),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(f.shapeFlag&1&&S&&!S.persisted){const{leave:H,delayLeave:z}=S,R=()=>H(_,j);z?z(f.el,j,R):R()}else j()},te=(f,p)=>{let _;for(;f!==p;)_=g(f),r(f),f=_;r(p)},Le=(f,p,_)=>{const{bum:T,scope:S,update:j,subTree:H,um:z}=f;T&&Mn(T),S.stop(),j&&(j.active=!1,he(H,f,p,_)),z&&Fe(z,p),Fe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},ve=(f,p,_,T=!1,S=!1,j=0)=>{for(let H=j;H<f.length;H++)he(f[H],p,_,T,S)},Ee=f=>f.shapeFlag&6?Ee(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),Se=(f,p,_)=>{f==null?p._vnode&&he(p._vnode,null,null,!0):x(p._vnode||null,f,p,null,null,null,_),Zr(),Jr(),p._vnode=f},dt={p:x,um:he,m:ye,r:ue,mt:oe,mc:m,pc:P,pbc:ee,n:Ee,o:e};let Sn,In;return t&&([Sn,In]=t(dt)),{render:Se,hydrate:Sn,createApp:Ea(Se,Sn)}}function Dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Pi(e,t,n=!1){const o=e.children,r=t.children;if(Q(o)&&Q(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=$t(r[i]),l.el=s.el),n||Pi(s,l)),l.type===Jn&&(l.el=s.el)}}function Da(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const Ra=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),Jn=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),Yo=Symbol.for("v-stc"),hn=[];let st=null;function A(e=!1){hn.push(st=e?null:[])}function Na(){hn.pop(),st=hn[hn.length-1]||null}let gn=1;function Ei(e){gn+=e}function Oi(e){return e.dynamicChildren=gn>0?st||qe:null,Na(),gn>0&&st&&st.push(e),e}function q(e,t,n,o,r,i){return Oi(X(e,t,n,o,r,i,!0))}function we(e,t,n,o,r){return Oi(Z(e,t,n,o,r,!0))}function Qn(e){return e?e.__v_isVNode===!0:!1}function Rt(e,t){return e.type===t.type&&e.key===t.key}const Gn="__vInternal",Mi=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||$e(e)||se(e)?{i:je,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,i=e===Ce?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mi(t),ref:t&&eo(t),scopeId:ei,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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:je};return l?(Xo(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Ie(n)?8:16),gn>0&&!s&&st&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&st.push(a),a}const Z=Fa;function Fa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===ui)&&(e=tt),Qn(e)){const l=St(e,t,!0);return n&&Xo(l,n),gn>0&&!i&&st&&(l.shapeFlag&6?st[st.indexOf(e)]=l:st.push(l)),l.patchFlag|=-2,l}if(Ja(e)&&(e=e.__vccOpts),t){t=Va(t);let{class:l,style:a}=t;l&&!Ie(l)&&(t.class=Oe(l)),_e(a)&&(Vr(a)&&!Q(a)&&(a=ke({},a)),t.style=Be(a))}const s=Ie(e)?1:sa(e)?128:Ra(e)?64:_e(e)?4:se(e)?2:0;return X(e,t,n,o,r,s,i,!0)}function Va(e){return e?Vr(e)||Gn in e?ke({},e):e:null}function St(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?to(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Mi(l),ref:t&&t.ref?n&&r?Q(r)?r.concat(eo(t)):[r,eo(t)]:eo(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function It(e=" ",t=0){return Z(Jn,null,e,t)}function Me(e="",t=!1){return t?(A(),we(tt,null,e)):Z(tt,null,e)}function ut(e){return e==null||typeof e=="boolean"?Z(tt):Q(e)?Z(Ce,null,e.slice()):typeof e=="object"?$t(e):Z(Jn,null,String(e))}function $t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function Xo(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),Xo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Gn in t)?t._ctx=je:r===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:je},n=32):(t=String(t),o&64?(n=16,t=[It(t)]):n=8);e.children=t,e.shapeFlag|=n}function to(...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=Oe([t.class,o.class]));else if(r==="style")t.style=Be([t.style,o.style]);else if($n(r)){const i=t[r],s=o[r];s&&i!==s&&!(Q(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ft(e,t,n,o=null){Qe(e,t,7,[n,o])}const Ha=bi();let Wa=0;function Ua(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ha,i={uid:Wa++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new gl(!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:wi(o,r),emitsOptions:Gr(o,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:o.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=ta.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const Li=()=>ze||je;let qo,Qt,zi="__VUE_INSTANCE_SETTERS__";(Qt=bo()[zi])||(Qt=bo()[zi]=[]),Qt.push(e=>ze=e),qo=e=>{Qt.length>1?Qt.forEach(t=>t(e)):Qt[0](e)};const Gt=e=>{qo(e),e.scope.on()},Nt=()=>{ze&&ze.scope.off(),qo(null)};function ji(e){return e.vnode.shapeFlag&4}let mn=!1;function Ka(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=ji(e);Oa(e,n,r,t),za(e,o);const i=r?Ya(e,t):void 0;return mn=!1,i}function Ya(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Hr(new Proxy(e.ctx,ka));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?qa(e):null;Gt(e),Yt();const i=Ct(o,e,0,[e.props,r]);if(Xt(),Nt(),_r(i)){if(i.then(Nt,Nt),t)return i.then(s=>{Ai(e,s,t)}).catch(s=>{Fn(s,e,0)});e.asyncDep=i}else Ai(e,i,t)}else Di(e,t)}function Ai(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Yr(t)),Di(e,n)}let Bi;function Di(e,t,n){const o=e.type;if(!e.render){if(!t&&Bi&&!o.render){const r=o.template||Vo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=ke(ke({isCustomElement:i,delimiters:l},s),a);o.render=Bi(r,c)}}e.render=o.render||ot}Gt(e),Yt(),Ca(e),Xt(),Nt()}function Xa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ne(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 no(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yr(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 se(e)?e.displayName||e.name:e.name||t&&e.__name}function Ja(e){return se(e)&&"__vccOpts"in e}const ae=(e,t)=>ql(e,t,mn);function Ri(e,t,n){const o=arguments.length;return o===2?_e(t)&&!Q(t)?Qn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Qn(n)&&(n=[n]),Z(e,t,n))}const Qa=Symbol.for("v-scx"),Ga=()=>Bt(Qa),ec="3.3.4",tc="http://www.w3.org/2000/svg",Ft=typeof document<"u"?document:null,Ni=Ft&&Ft.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?Ft.createElementNS(tc,e):Ft.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ni.innerHTML=o?`<svg>${e}</svg>`:e;const l=Ni.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.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=Ie(n);if(n&&!r){if(t&&!Ie(t))for(const i in t)n[i]==null&&Zo(o,i,"");for(const i in n)Zo(o,i,n[i])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const Fi=/\s*!important$/;function Zo(e,t,n){if(Q(n))n.forEach(o=>Zo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=ic(e,t);Fi.test(n)?e.setProperty(Ze(o),n.replace(Fi,""),"important"):e[o]=n}}const Vi=["Webkit","Moz","ms"],Jo={};function ic(e,t){const n=Jo[t];if(n)return n;let o=We(t);if(o!=="filter"&&o in e)return Jo[t]=o;o=On(o);for(let r=0;r<Vi.length;r++){const i=Vi[r]+o;if(i in e)return Jo[t]=i}return t}const Hi="http://www.w3.org/1999/xlink";function sc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Hi,t.slice(6,t.length)):e.setAttributeNS(Hi,t,n);else{const i=hl(t);n==null||i&&!xr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function lc(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=xr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function en(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 i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=uc(t);if(o){const c=i[t]=pc(o,r);en(e,l,c,a)}else s&&(ac(e,l,s,a),i[t]=void 0)}}const Wi=/(?:Once|Passive|Capture)$/;function uc(e){let t;if(Wi.test(e)){t={};let o;for(;o=e.match(Wi);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ze(e.slice(2)),t]}let Qo=0;const fc=Promise.resolve(),dc=()=>Qo||(fc.then(()=>Qo=0),Qo=Date.now());function pc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(hc(o,n.value),t,5,[o])};return n.value=e,n.attached=dc(),n}function hc(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 Ui=/^on[a-z]/,gc=(e,t,n,o,r=!1,i,s,l,a)=>{t==="class"?oc(e,o,r):t==="style"?rc(e,n,o):$n(t)?fo(t)||cc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mc(e,t,o,r))?lc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),sc(e,t,o,r))};function mc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ui.test(t)&&se(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ui.test(t)&&Ie(n)?!1:t in e}function vc(e,t){const n=Te(e);class o extends Go{constructor(i){super(n,i,t)}}return o.def=n,o}const _c=typeof HTMLElement<"u"?HTMLElement:class{};class Go 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,gt(()=>{this._connected||(os(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:i,styles:s}=o;let l;if(i&&!Q(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=_o(this._props[a])),(l||(l=Object.create(null)))[We(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),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(We))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=We(t);this._numberProps&&this._numberProps[o]&&(n=_o(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(Ze(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ze(t),n+""):n||this.removeAttribute(Ze(t))))}_update(){os(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(this._def,ke({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Ze(i)!==i&&o(Ze(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Go){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 Tt="transition",vn="animation",tn=(e,{slots:t})=>Ri(ua,bc(e),t);tn.displayName="Transition";const Ki={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};tn.props=ke({},ri,Ki);const Vt=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yi=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function bc(e){const t={};for(const b in e)b in Ki||(t[b]=e[b]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,M=yc(r),x=M&&M[0],B=M&&M[1],{onBeforeEnter:W,onEnter:N,onEnterCancelled:L,onLeave:d,onLeaveCancelled:E,onBeforeAppear:I=W,onAppear:$=N,onAppearCancelled:m=L}=t,V=(b,F,oe)=>{Ht(b,F?u:l),Ht(b,F?c:s),oe&&oe()},ee=(b,F)=>{b._isLeaving=!1,Ht(b,h),Ht(b,y),Ht(b,g),F&&F()},ie=b=>(F,oe)=>{const D=b?$:N,C=()=>V(F,b,oe);Vt(D,[F,C]),Xi(()=>{Ht(F,b?a:i),Pt(F,b?u:l),Yi(D)||qi(F,o,x,C)})};return ke(t,{onBeforeEnter(b){Vt(W,[b]),Pt(b,i),Pt(b,s)},onBeforeAppear(b){Vt(I,[b]),Pt(b,a),Pt(b,c)},onEnter:ie(!1),onAppear:ie(!0),onLeave(b,F){b._isLeaving=!0;const oe=()=>ee(b,F);Pt(b,h),kc(),Pt(b,g),Xi(()=>{b._isLeaving&&(Ht(b,h),Pt(b,y),Yi(d)||qi(b,o,B,oe))}),Vt(d,[b,oe])},onEnterCancelled(b){V(b,!1),Vt(L,[b])},onAppearCancelled(b){V(b,!0),Vt(m,[b])},onLeaveCancelled(b){ee(b),Vt(E,[b])}})}function yc(e){if(e==null)return null;if(_e(e))return[er(e.enter),er(e.leave)];{const t=er(e);return[t,t]}}function er(e){return _o(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ht(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 Xi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function qi(e,t,n,o){const r=e._endId=++wc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=xc(e,t);if(!s)return o();const c=s+"end";let u=0;const h=()=>{e.removeEventListener(c,g),i()},g=y=>{y.target===e&&++u>=a&&h()};setTimeout(()=>{u<a&&h()},l+1),e.addEventListener(c,g)}function xc(e,t){const n=window.getComputedStyle(e),o=M=>(n[M]||"").split(", "),r=o(`${Tt}Delay`),i=o(`${Tt}Duration`),s=Zi(r,i),l=o(`${vn}Delay`),a=o(`${vn}Duration`),c=Zi(l,a);let u=null,h=0,g=0;t===Tt?s>0&&(u=Tt,h=s,g=i.length):t===vn?c>0&&(u=vn,h=c,g=a.length):(h=Math.max(s,c),u=h>0?s>c?Tt:vn:null,g=u?u===Tt?i.length:a.length:0);const y=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:h,propCount:g,hasTransform:y}}function Zi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ji(n)+Ji(e[o])))}function Ji(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function kc(){return document.body.offsetHeight}const Qi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>Mn(t,n):t};function Cc(e){e.target.composing=!0}function Gi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Sc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Qi(r);const i=o||r.props&&r.props.type==="number";en(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=vo(l)),e._assign(l)}),n&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",Cc),en(e,"compositionend",Gi),en(e,"change",Gi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=Qi(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&vo(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},Ic=["ctrl","shift","alt","meta"],$c={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)=>Ic.some(n=>e[`${n}Key`]&&!t.includes(n))},lt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=$c[t[r]];if(i&&i(n,t))return}return e(n,...o)},Tc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},es=(e,t)=>n=>{if(!("key"in n))return;const o=Ze(n.key);if(t.some(r=>r===o||Tc[r]===o))return e(n)},ts={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 Pc=ke({patchProp:gc},nc);let ns;function Ec(){return ns||(ns=Aa(Pc))}const os=(...e)=>{Ec().render(...e)},Oc=`.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}}
|
|
2
|
+
`,be=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Lc={class:"loading-indicator"};function zc(e,t){return A(),q("div",Lc)}const tr=be(Mc,[["render",zc],["styles",[Oc]]]),jc=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),Ac={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Bc={class:"flex justify-between items-end"},Dc={class:"inline-block children-pointer-events-auto w-1/3"},Rc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Nc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Fc={class:"inline-block z-20 relative"},rs=Te({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>{const o=tr;return A(),q("div",{class:Oe(["fixed top-0 left-0 w-screen h-screen text-stone-100 font-sans text-base overflow-auto scrollbar-none overscroll-contain",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(A(),q("div",Ac,[Z(o)])):Me("",!0),Pe(t.$slots,"default"),X("div",{id:"controls",class:Oe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${t.spaceTop||0}px`})},[Pe(t.$slots,"back"),Pe(t.$slots,"exit"),Pe(t.$slots,"chapter-nav")],4),X("div",Bc,[X("div",Dc,[Pe(t.$slots,"page-nav")]),X("div",Rc,[Pe(t.$slots,"reset-zoom")]),X("div",Nc,[Pe(t.$slots,"entry"),X("div",Fc,[Pe(t.$slots,"settings")]),Pe(t.$slots,"full-screen"),Pe(t.$slots,"play")])]),X("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Pe(t.$slots,"progress")],2)],2)],2)}}}),Vc=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),Hc={},Wc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Uc=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Kc(e,t){return A(),q("svg",Wc,Uc)}const is=be(Hc,[["render",Kc]]),Yc=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),Xc={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"},qc={class:"block w-4 h-4"},Zc={class:"w-12"},ss=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=is;return t.zoom!==1?(A(),q("button",Xc,[X("div",qc,[Z(o)]),X("div",Zc,Je(Math.ceil(t.zoom*100))+"%",1)])):Me("",!0)}}}),Jc=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),Qc={},Gc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},eu=[X("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 tu(e,t){return A(),q("svg",Gc,eu)}const nr=be(Qc,[["render",tu]]),nu=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ou={},ru={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},iu=[X("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),X("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 su(e,t){return A(),q("svg",ru,iu)}const or=be(ou,[["render",su]]),lu=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"}));function au({touchDevice:e}){const t=Y(!1);let n=0;return Zn("busy:touchDevice",e),Zn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function rr(){const e=Bt("busy:touchDevice"),t=Bt("setBusyState");let n=!1;return it(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const cu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},nn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>cu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},uu={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"},oo=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=rr();let r=!1;function i(){r||(r=!0,o(!0,{desktopOnly:!0}))}function s(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>mt((A(),we(wa(a.href?"a":"button"),to(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:lt(l,["stop"]),onMouseenter:i,onMouseleave:s}),{default:le(()=>[X("div",uu,[Pe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[G(nn),a.disabled?0:15]])}}),fu=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),du={},pu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hu=[X("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 gu(e,t){return A(),q("svg",pu,hu)}const ls=be(du,[["render",gu]]),mu=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"}));class vu{constructor(){ol(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 _u(){const e=new vu;return it(()=>e.dispose()),Zn("keyController",e),e}function ro(e){const t=Bt("keyController");et(()=>t.addListener(e)),it(()=>t.removeListener(e))}const bu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},yu={class:"font-medium text-ellipsis overflow-hidden whitespace-nowrap px-3"},wu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},as=Te({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;ro({onKeyDown:r});const o=rr();pe(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const l=ls,a=oo;return A(),q("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:s[2]||(s[2]=()=>t("update:modelValue",!1))},[Z(tn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:le(()=>[n.modelValue?(A(),q("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:s[1]||(s[1]=lt(()=>{},["stop"]))},[X("div",bu,[Z(a,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:le(()=>[Z(l)]),_:1}),X("div",yu,Je(i.name),1),Pe(i.$slots,"actions")]),X("div",wu,[Pe(i.$slots,"default")])])):Me("",!0)]),_:3})],2)}}}),xu=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),ku=["min","max","step"],Cu={class:"flex-shrink-0"},cs=be(Te({__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,i)=>(A(),q("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Be({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[mt(X("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,ku),[[Sc,o.value]]),X("p",Cu,[Pe(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
|
+
`]]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Iu={class:"flex items-center mb-8 last:mb-0"},$u={class:"flex-grow overflow-hidden"},us=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),q("div",Iu,[X("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),X("div",$u,[Pe(t.$slots,"default")])]))}}),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),Pu=["onClick","onKeyup"],fs=Te({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y({width:"",left:""});et(()=>{let s=!1;pe(()=>n.modelValue,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){t("update:modelValue",s)}return(s,l)=>(A(),q("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:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(r.value)},null,4),(A(!0),q(Ce,null,fn(n.items,(a,c)=>mt((A(),q("div",{key:c,tabindex:"0",class:Oe(["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:()=>i(c),onKeyup:[es(()=>i(c),["enter"]),es(()=>i(c),["space"])]},[It(Je(a),1)],42,Pu)),[[G(nn),30]])),128))],512))}}),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Ou={},Mu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Lu=[X("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 zu(e,t){return A(),q("svg",Mu,Lu)}const ds=be(Ou,[["render",zu]]),ju=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),Au={},Bu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Du=[X("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),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Ru(e,t){return A(),q("svg",Bu,Du)}const ps=be(Au,[["render",Ru]]),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"}));function Fu(e){if(e)try{return JSON.parse(e)}catch{return}}function Vu(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var at=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(at||{}),_t=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(_t||{});const Hu=.25,Wu=5,Uu=.25,bn=.25,yn=5,Ku=.05,Yu=0,Xu=4;function qu(e){var W,N,L,d,E;const{titleName:t,isWebtoon:n}=e,o=ae(()=>t.value?Vu(t.value):location.hostname),r=Y(Zu(`tkr:${o.value}`)),i=I=>{r.value=I;const $=`tkr:${o.value}`;!I||!Object.keys(I).length?localStorage.removeItem($):localStorage.setItem($,JSON.stringify(I))},s=I=>{if(!r.value){i(I);return}const $={...r.value};Object.entries(I).forEach(([m,V])=>{V===void 0?delete $[m]:$[m]=V}),i($)},l=Y(((W=r.value)==null?void 0:W.style)??_t.longStrip),a=Y(((N=r.value)==null?void 0:N.direction)??at.vertical),c=Y((L=r.value)==null?void 0:L.gap),u=Y(((d=r.value)==null?void 0:d.speed)??1),h=Y(((E=r.value)==null?void 0:E.zoom)??1),g=ae({get(){return n.value?_t.longStrip:l.value??_t.longStrip},set:I=>{l.value=I,s({style:I===_t.longStrip?void 0:I}),I!==_t.longStrip&&a.value===at.vertical&&(y.value=at.rtl)}}),y=ae({get:()=>n.value?at.vertical:a.value,set:I=>{a.value=I,s({direction:I===at.vertical?void 0:I})}}),M=ae({get:()=>c.value??(n.value?0:1),set(I){c.value=I,s({gap:I})}}),x=ae({get:()=>u.value,set(I){u.value=I,s({speed:I===1?void 0:I})}}),B=ae({get:()=>h.value,set(I){h.value=I,s({zoom:I===1?void 0:I})}});return{direction:y,style:g,gap:M,speed:x,zoom:B,isLongStrip:ae(()=>g.value===_t.longStrip),isDouble:ae(()=>g.value===_t.double),isRTL:ae(()=>y.value===at.rtl),isVertical:ae(()=>y.value===at.vertical)}}function Zu(e){const t=localStorage.getItem(e),n=Fu(t),o={};return n?(n.style!==void 0&&Object.values(_t).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(at).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Yu&&n.gap<=Xu&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=bn&&n.speed<=yn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=bn&&n.zoom<=yn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const hs=Te({__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=e,o=Y(!1),r=ae(()=>n.name??location.hostname);ro({onKeyUp:l=>{l.key==="s"&&!l.metaKey&&!l.ctrlKey&&(o.value=!o.value)}});function i(l){t("update:zoom",Math.round(l)/100)}function s(){o.value=!1,t("help")}return(l,a)=>{const c=ps,u=oo,h=ds,g=fs,y=us,M=cs,x=as;return A(),q(Ce,null,[Z(u,{title:"Reader settings (S)",disabled:l.disabled,onClick:a[0]||(a[0]=()=>o.value=!0)},{default:le(()=>[Z(c)]),_:1},8,["disabled"]),Z(x,{modelValue:o.value,"onUpdate:modelValue":a[5]||(a[5]=B=>o.value=B),name:r.value},{actions:le(()=>[Z(u,{transparent:"",onClick:s},{default:le(()=>[Z(h)]),_:1})]),default:le(()=>[Z(y,{label:"Style"},{default:le(()=>[Z(g,{"model-value":l.readerStyle,items:l.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":a[1]||(a[1]=B=>t("update:reader-style",B))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Direction"},{default:le(()=>[Z(g,{"model-value":l.direction,items:l.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":a[2]||(a[2]=B=>t("update:direction",B))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Gap"},{default:le(()=>[Z(g,{"model-value":l.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":a[3]||(a[3]=B=>t("update:gap",B))},null,8,["model-value"])]),_:1}),Z(y,{label:"Speed"},{default:le(()=>[Z(M,{"model-value":l.speed,min:G(Hu),max:G(Wu),step:G(Uu),suffix:"x","onUpdate:modelValue":a[4]||(a[4]=B=>t("update:speed",B))},{suffix:le(()=>[It(Je(l.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(y,{label:"Zoom"},{default:le(()=>[Z(M,{"model-value":Math.ceil(l.zoom*100),min:G(bn)*100,max:G(yn)*100,step:G(Ku)*100,"onUpdate:modelValue":i},{suffix:le(()=>[It(Je(Math.ceil(l.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Ju=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),Qu={},Gu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ef=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function tf(e,t){return A(),q("svg",Gu,ef)}const gs=be(Qu,[["render",tf]]),nf=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),of={},rf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},sf=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function lf(e,t){return A(),q("svg",rf,sf)}const ms=be(of,[["render",lf]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),cf={},uf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ff=[X("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),X("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),X("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 df(e,t){return A(),q("svg",uf,ff)}const vs=be(cf,[["render",df]]),pf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),hf={},gf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mf=[X("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),X("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),X("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 vf(e,t){return A(),q("svg",gf,mf)}const _s=be(hf,[["render",vf]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),bf={},yf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wf=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function xf(e,t){return A(),q("svg",yf,wf)}const bs=be(bf,[["render",xf]]),kf=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),Cf=["aria-hidden"],Sf=["onClick"],If=["onClick"],$f={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"},Tf={class:"whitespace-nowrap"},ir=Te({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y(!1),i=Y(null),s=Y(!1),l=Y(!1),a=Y(!1);ro({onKeyDown:y});const c=rr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(h(),gt(()=>setTimeout(()=>{var d,E;(E=(d=i.value)==null?void 0:d.children[n.modelValue])==null||E.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),x(o.value)):setTimeout(B,250)}function h(){const d=o.value;if(d){const E=d.getBoundingClientRect(),I=E.x+E.width/2;s.value=E.y>window.innerHeight/2,l.value=I<window.innerWidth/3,a.value=I>window.innerWidth/3*2}}function g(d){d!=n.modelValue&&t("update:modelValue",d),u()}function y(d){r.value&&d.key==="Escape"&&(u(),d.preventDefault())}let M=[];function x(d){const E=window.getComputedStyle(d).zIndex,I=d.style.zIndex;(!E||!(+E>0))&&((!d.parentElement||d.parentElement.childElementCount>1)&&(d.style.zIndex="1",M.push({el:d,zIndex:I})),d.parentElement&&x(d.parentElement))}function B(){M.forEach(({el:d,zIndex:E})=>{d.style.zIndex=E??""}),M=[]}let W=!1;function N(){W||(W=!0,c(!0,{desktopOnly:!0}))}function L(){W&&(W=!1,c(!1,{desktopOnly:!0}))}return(d,E)=>{const I=bs;return A(),q("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),q("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Me("",!0),d.items.length?(A(),we(tn,{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:le(()=>[r.value?(A(),q("ul",{key:0,ref_key:"list",ref:i,"aria-hidden":!r.value,class:Oe(["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":s.value,"origin-top top-full translate-y-1.5":!s.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:E[0]||(E[0]=lt(()=>{},["stop"]))},[(A(!0),q(Ce,null,fn(d.items,($,m)=>mt((A(),q("li",{key:m,tabindex:"-1",class:Oe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":m===d.modelValue}]),onClick:()=>g(m)},[X("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[Pe(d.$slots,"item",{item:$},()=>[It(Je($),1)])],2)],10,Sf)),[[G(nn),30]])),128))],42,Cf)):Me("",!0)]),_:3})):Me("",!0),mt((A(),q("button",to({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":d.disabled}]},d.title?{title:d.title}:{},{onClick:lt(u,["stop"]),onMouseenter:N,onMouseleave:L}),[X("div",$f,[X("span",Tf,Je(d.label),1),d.items.length?(A(),q("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[Z(I)],2)):Me("",!0)])],16,If)),[[G(nn),30]])],512)}}}),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),ys=Te({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ae(()=>n.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=ae(()=>{const a=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:h})=>h===a));return c===-1?n.pages.length-1:c}),i=ae(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function s(a){const c=n.pages[a][0].index;l(c)}function l(a){t("update:modelValue",a)}return(a,c)=>{const u=ir;return A(),we(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),Of={},Mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Lf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function zf(e,t){return A(),q("svg",Mf,Lf)}const ws=be(Of,[["render",zf]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),Af={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Rf(e,t){return A(),q("svg",Bf,Df)}const xs=be(Af,[["render",Rf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),Ff={},Vf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Hf=[X("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 Wf(e,t){return A(),q("svg",Vf,Hf)}const ks=be(Ff,[["render",Wf]]),Uf=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Kf={},Yf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Xf=[X("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 qf(e,t){return A(),q("svg",Yf,Xf)}const Cs=be(Kf,[["render",qf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"}));var Ss;const sr=typeof window<"u",Jf=e=>typeof e=="function",Qf=e=>typeof e=="string",Et=()=>{};sr&&((Ss=window==null?void 0:window.navigator)!=null&&Ss.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function wn(e){return typeof e=="function"?e():G(e)}function lr(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}const Is=e=>e();function Gf(e,t={}){let n,o,r=Et;const i=l=>{clearTimeout(l),r(),r=Et};return l=>{const a=wn(e),c=wn(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,h)=>{r=t.rejectOnCancel?h:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function ed(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Et,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Et)};return h=>{const g=wn(e),y=Date.now()-r,M=()=>a=h();if(c(),g<=0)return r=Date.now(),M();if(y>g&&(n||!s))r=Date.now(),M();else if(t)return new Promise((x,B)=>{l=o?B:x,i=setTimeout(()=>{r=Date.now(),s=!0,x(M()),c()},g-y)});return!n&&!i&&(i=setTimeout(()=>s=!0,g)),s=!1,a}}function td(e=Is){const t=Y(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Po(t),pause:n,resume:o,eventFilter:r}}function nd(e){return e}function ar(e){return Cr()?(vl(e),!0):!1}function Ke(e,t=200,n={}){return lr(Gf(t,n),e)}function $s(e,t=200,n=!1,o=!0,r=!1){return lr(ed(t,n,o,r),e)}function Ts(e,t=!0){Li()?et(e):t?e():gt(e)}var Ps=Object.getOwnPropertySymbols,od=Object.prototype.hasOwnProperty,rd=Object.prototype.propertyIsEnumerable,id=(e,t)=>{var n={};for(var o in e)od.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ps)for(var o of Ps(e))t.indexOf(o)<0&&rd.call(e,o)&&(n[o]=e[o]);return n};function sd(e,t,n={}){const o=n,{eventFilter:r=Is}=o,i=id(o,["eventFilter"]);return pe(e,lr(r,t),i)}var ld=Object.defineProperty,ad=Object.defineProperties,cd=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Ms=(e,t,n)=>t in e?ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ud=(e,t)=>{for(var n in t||(t={}))Es.call(t,n)&&Ms(e,n,t[n]);if(io)for(var n of io(t))Os.call(t,n)&&Ms(e,n,t[n]);return e},fd=(e,t)=>ad(e,cd(t)),dd=(e,t)=>{var n={};for(var o in e)Es.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&io)for(var o of io(e))t.indexOf(o)<0&&Os.call(e,o)&&(n[o]=e[o]);return n};function pd(e,t,n={}){const o=n,{eventFilter:r}=o,i=dd(o,["eventFilter"]),{eventFilter:s,pause:l,resume:a,isActive:c}=td(r);return{stop:sd(e,t,fd(ud({},i),{eventFilter:s})),pause:l,resume:a,isActive:c}}function Wt(e){var t;const n=wn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ot=sr?window:void 0,hd=sr?window.document:void 0;function Mt(...e){let t,n,o,r;if(Qf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Ot):[t,n,o,r]=e,!t)return Et;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,h,g)=>(u.addEventListener(h,g,r),()=>u.removeEventListener(h,g,r)),a=pe(()=>Wt(t),u=>{s(),u&&i.push(...n.flatMap(h=>o.map(g=>l(u,h,g))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ar(c),c}function Ls(e,t=!1){const n=Y(),o=()=>n.value=!!e();return o(),Ts(o,t),n}const cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ur="__vueuse_ssr_handlers__";cr[ur]=cr[ur]||{};const gd=cr[ur];function md(e,t){return gd[e]||t}function vd(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 _d=Object.defineProperty,zs=Object.getOwnPropertySymbols,bd=Object.prototype.hasOwnProperty,yd=Object.prototype.propertyIsEnumerable,js=(e,t,n)=>t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,As=(e,t)=>{for(var n in t||(t={}))bd.call(t,n)&&js(e,n,t[n]);if(zs)for(var n of zs(t))yd.call(t,n)&&js(e,n,t[n]);return e};const wd={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 xd(e,t,n,o={}){var r;const{flush:i="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=Ot,eventFilter:g,onError:y=$=>{console.error($)}}=o,M=(u?Ul:Y)(t);if(!n)try{n=md("getDefaultStorage",()=>{var $;return($=Ot)==null?void 0:$.localStorage})()}catch($){y($)}if(!n)return M;const x=wn(t),B=vd(x),W=(r=o.serializer)!=null?r:wd[B],{pause:N,resume:L}=pd(M,()=>d(M.value),{flush:i,deep:s,eventFilter:g});return h&&l&&Mt(h,"storage",I),I(),M;function d($){try{if($==null)n.removeItem(e);else{const m=W.write($),V=n.getItem(e);V!==m&&(n.setItem(e,m),h&&(h==null||h.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:V,newValue:m,storageArea:n}))))}}catch(m){y(m)}}function E($){const m=$?$.newValue:n.getItem(e);if(m==null)return a&&x!==null&&n.setItem(e,W.write(x)),x;if(!$&&c){const V=W.read(m);return Jf(c)?c(V,x):B==="object"&&!Array.isArray(V)?As(As({},x),V):V}else return typeof m!="string"?m:W.read(m)}function I($){if(!($&&$.storageArea!==n)){if($&&$.key==null){M.value=x;return}if(!($&&$.key!==e)){N();try{M.value=E($)}catch(m){y(m)}finally{$?gt(L):L()}}}}}function Bs({document:e=hd}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return Mt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ds=Object.getOwnPropertySymbols,kd=Object.prototype.hasOwnProperty,Cd=Object.prototype.propertyIsEnumerable,Sd=(e,t)=>{var n={};for(var o in e)kd.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ds)for(var o of Ds(e))t.indexOf(o)<0&&Cd.call(e,o)&&(n[o]=e[o]);return n};function Id(e,t,n={}){const o=n,{window:r=Ot}=o,i=Sd(o,["window"]);let s;const l=Ls(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>Wt(e),h=>{a(),l.value&&r&&h&&(s=new ResizeObserver(t),s.observe(h,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ar(u),{isSupported:l,stop:u}}function fr(e,t={width:0,height:0},n={}){const{window:o=Ot,box:r="content-box"}=n,i=ae(()=>{var a,c;return(c=(a=Wt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Y(t.width),l=Y(t.height);return Id(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Wt(e);if(u){const h=o.getComputedStyle(u);s.value=parseFloat(h.width),l.value=parseFloat(h.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((h,{inlineSize:g})=>h+g,0),l.value=u.reduce((h,{blockSize:g})=>h+g,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>Wt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function dr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=Ot}=n,l=Ls(()=>s&&"IntersectionObserver"in s);let a=Et;const c=l.value?pe(()=>({el:Wt(e),root:Wt(o)}),({el:h,root:g})=>{if(a(),!h)return;const y=new IntersectionObserver(t,{root:g,rootMargin:r,threshold:i});y.observe(h),a=()=>{y.disconnect(),a=Et}},{immediate:!0,flush:"post"}):Et,u=()=>{a(),c()};return ar(u),{isSupported:l,stop:u}}var Rs;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Rs||(Rs={}));function $d(e,t,n={}){const{window:o=Ot}=n;return xd(e,t,o==null?void 0:o.sessionStorage,n)}var Td=Object.defineProperty,Ns=Object.getOwnPropertySymbols,Pd=Object.prototype.hasOwnProperty,Ed=Object.prototype.propertyIsEnumerable,Fs=(e,t,n)=>t in e?Td(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Od=(e,t)=>{for(var n in t||(t={}))Pd.call(t,n)&&Fs(e,n,t[n]);if(Ns)for(var n of Ns(t))Ed.call(t,n)&&Fs(e,n,t[n]);return e};Od({linear:nd},{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 Md(e={}){const{window:t=Ot,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Y(n),l=Y(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ts(a),Mt("resize",a,{passive:!0}),r&&Mt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Vs=be(Te({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Y(null),o=Y(0),r=Y([]),i=ae(()=>r.value[o.value]),s=$s(l,500);et(()=>{const u=fr(n),h=Ke(()=>a({width:u.width.value,height:u.height.value}),50);h(),pe(u.width,h),pe(u.height,h)});function l(){o.value>=r.value.length-1?t("hide"):o.value++}function a(u){const h=c();r.value=h.map(({rect:g,text:y})=>{const M=g.top<u.height-g.bottom,x=g.left<u.width-g.right;return{text:y,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.width}px`,height:`${g.height}px`},textStyle:{left:x?`${g.left-12}px`:void 0,right:x?void 0:`${u.width-g.left}px`,top:M?`${g.bottom+12}px`:`${g.top+20}px`,textAlign:M?void 0:"right",transform:M?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var g;const u=(g=n.value)==null?void 0:g.parentElement;if(!u)return[];const h=[];return u.querySelectorAll("[data-tour]").forEach(y=>{var B;const M=(B=y.getAttribute("data-tour"))==null?void 0:B.trim();if(!(M!=null&&M.length))return;const x=y.getBoundingClientRect();h.push({rect:x,text:M})}),h}return(u,h)=>{var g,y;return A(),q(Ce,null,[X("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),X("div",{ref_key:"root",ref:n,class:"tour",onClick:h[0]||(h[0]=lt((...M)=>G(s)&&G(s)(...M),["stop"]))},[i.value?(A(),q("div",{key:o.value,class:"tour__target",style:Be(i.value.style)},null,4)):Me("",!0),(A(),q("div",{key:o.value,class:"tour__text",style:Be((g=i.value)==null?void 0:g.textStyle)},Je(((y=i.value)==null?void 0:y.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@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}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
4
|
+
`]]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),zd=X("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Hs=Te({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y([]);et(async()=>{const a=fr(o),c=Ke(()=>{i({width:a.width.value,height:a.height.value})},50);c(),pe(a.width,c),pe(a.height,c)});function i(a){var h;const c=(h=o.value)==null?void 0:h.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=s(u,a))}function s(a,c){const u=[],h=[];let g=0,y=0;const M=50,x=25;a.forEach(d=>{var V;const E=(V=d.getAttribute("title"))==null?void 0:V.trim(),I=d.getBoundingClientRect();if(!E||!I.height||!I.width)return;const $=Math.ceil((I.top-10)/M),m=Math.ceil((I.left-10)/M);h.push({isTour:!1,title:E,rect:I,fromX:m,toX:Math.max(m+1,Math.ceil((I.right+10)/M)),fromY:$,toY:Math.max($+1,Math.ceil((I.bottom+10)/M))})}),h.forEach(d=>{for(let E=d.fromY;E<d.toY;E++){u[E]??(u[E]=[]);for(let I=d.fromX;I<d.toX;I++)u[E][I]=d;d.toY>g+1&&(g=d.toY-1),d.toX>y+1&&(y=d.toX-1)}});let B=y/2;h.forEach(d=>{d.isAlignRight=d.fromX>B});const W=(d,E)=>{u[E]??(u[E]=[]);const I=E>=d.toY;if(d.isTour)for(let $=d.fromX;$<d.toX;$++)delete u[d.fromY][$],d.fromY=E,d.toY=E+(I?1:-1),u[E][$]=d;else{const $=d.isAlignRight?d.fromX-3:d.fromX,m=$+3;d.helpItem={fromX:$,toX:m,fromY:E,toY:E+1,isTour:!0,isAlignRight:d.isAlignRight};for(let V=$;V<m;V++)u[E][V]=d.helpItem}},N=(d,E)=>{if(E>g||E<0)return!1;const I=E>=d.toY,$=u[E];if(!$)return W(d,E),!0;const m=$[d.fromX];if(m&&!m.isTour)return!1;if(m&&m.isTour)return N(m,I?E+1:E-1)?(W(d,E),!0):!1;if(!m){const V=d.isAlignRight?-1:1;return $[d.fromX+V]||$[d.fromX+V*2]?N(d,I?E+1:E-1):(W(d,E),!0)}return!1};h.forEach(d=>{if(!N(d,d.toY)){if(d.isAlignRight){const E=u[d.fromY]??[];if(!E.slice(d.fromX-3,d.fromX).filter(Boolean).length){const $=d.fromX-3,m=d.fromX;d.helpItem={isTour:!0,isAlignRight:!0,fromX:$,toX:m,fromY:d.fromY,toY:d.toY};for(let V=d.fromX-3;V<d.fromX;V++)E[V]=d.helpItem;return}}N(d,d.fromY-1)}});const L=[];return h.forEach(d=>{const{title:E,helpItem:I,rect:$,isAlignRight:m,fromX:V,fromY:ee,toY:ie}=d;if(!E||!I||!$)return;const b=I.fromY>=ie,F=I.toY<=ee;L.push({title:l(E),style:{top:b?`${$.bottom+(I.fromY-ie)*M+x}px`:F?void 0:`${$.top+8}px`,bottom:F?`${c.height-$.top+(I.toY-ee)*M+x}px`:void 0,left:m?void 0:`${$.left}px`,right:m?b?`${c.width-$.right}px`:`${c.width-$.right+$.width+x}px`:void 0},arrowStyle:{width:F||b?"2px":`${Math.abs(I.toX-V)*M+x-5}px`,height:F||b?`${(b?I.fromY-ie:ee-I.toY)*M+x}px`:"2px",top:b?`${$.bottom}px`:F?void 0:`${$.top+20}px`,bottom:F?`${c.height-$.top}px`:void 0,left:m?void 0:`${$.left+$.width/2}px`,right:m?b?`${c.width-$.right+$.width/2}px`:`${c.width-$.right+$.width}px`:void 0}})}),L}function l(a){return n.touchDevice?a.split("(")[0].trim():a}return(a,c)=>(A(),q(Ce,null,[zd,X("div",{ref_key:"root",ref:o,class:"fixed-screen z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=lt(u=>t("hide"),["stop"]))},[(A(!0),q(Ce,null,fn(r.value,u=>(A(),q(Ce,{key:u.title},[X("div",{class:"absolute",style:Be(u.style)},Je(u.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Be(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Ws=be(Te({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Y(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=nr,s=or;return n.value?(A(),q("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(),we(i,{key:0})):(A(),we(s,{key:1}))])):Me("",!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)}}
|
|
5
|
+
`]]]),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Bd={},Dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Rd=[X("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 Nd(e,t){return A(),q("svg",Dd,Rd)}const Us=be(Bd,[["render",Nd]]),Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ks=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Y(typeof n!="string"||+n!==t.direction),r=Ke(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),et(()=>{i(),r();let s;const l=Bs();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=Us;return A(),we(tn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(A(),q("div",{key:0,class:Oe(["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":s.direction===G(at).vertical,"rotate-180":s.direction===G(at).rtl}])},[Z(a)],2)):Me("",!0)]),_:1})}}}),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),so=[];function Hd(e){so.push(e),it(()=>{const t=so.indexOf(e);t!==-1&&so.splice(t,1)})}function Wd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;so.forEach(s=>s(r,i))}const Ud=["onClick"],Ys=Te({__name:"ZoomWrapper",props:{modelValue:{},pageIndex:{},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=Y(null),r=Y(Math.min(yn,Math.max(bn,n.modelValue))),i=Y(!1),s=Y(!1),l=Y(!1),a=Y(!1);pe(()=>n.modelValue,C=>D(C)),et(()=>{n.touchDevice?(Mt(window,"touchstart",N),Hd(ie)):(Mt(o,"mousedown",M),pe(()=>n.horizontal,C=>{C?window.addEventListener("wheel",I,{passive:!1}):window.removeEventListener("wheel",I)},{immediate:!0}))}),it(()=>{window.removeEventListener("wheel",I)});let c;ro({onKeyDown:C=>{var U;if(n.busy)return;(U=o.value)==null||U.focus();const k=C.key==="Meta",P=C.key==="Control";if(k||P)i.value=!0,window.addEventListener("wheel",h,{passive:!1}),c=()=>{i.value=!1,window.removeEventListener("wheel",h),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c);else if(C.ctrlKey||C.metaKey)switch(C.key){case"0":D(1);break;case"-":D(r.value-.2),C.preventDefault();break;case"=":case"+":D(r.value+.2),C.preventDefault();break}},onKeyUp:()=>{i.value==!0&&(c==null||c())}});function u(C){l.value!==C&&(l.value=C,C?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function h(C){C.stopPropagation(),C.preventDefault();const k=Math.ceil((r.value+C.deltaY*-.01)*100)/100;D(k,{x:C.clientX,y:C.clientY})}let g={x:0,y:0},y={x:0,y:0};function M(C){C.button===0&&(g={x:C.clientX,y:C.clientY},y={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",x),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",x),setTimeout(()=>u(!1))},{once:!0}),C.preventDefault(),C.stopPropagation())}function x(C){u(!0);const k=C.clientX-g.x,P=C.clientY-g.y,U=o.value;U.scrollLeft=y.x-k,U.scrollTop=y.y-P}let B=!1,W={distance:0,zoom:r.value,x:0,y:0};function N(C){n.busy||(B=C.touches.length===2,B&&(u(!0),C.stopPropagation(),C.preventDefault(),W={distance:$(C),zoom:r.value,x:(C.touches[0].clientX+C.touches[1].clientX)/2,y:(C.touches[0].clientY+C.touches[1].clientY)/2}),(B||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",d),window.addEventListener("touchend",L,{once:!0})))}function L(){if(window.removeEventListener("touchmove",d),B){u(!1),B=!1;return}if(!l.value)return;const C=Ke(()=>{u(!1),o.value.removeEventListener("scroll",P)},100),k=setTimeout(C,100);o.value.addEventListener("scroll",P);function P(){clearTimeout(k),C()}}function d(C){if(u(!0),B){C.stopPropagation(),C.preventDefault();const P=$(C)/W.distance;D(Math.ceil(P*W.zoom*100)/100,W)}}const E=Ke(()=>s.value=!1,100);function I(C){n.busy||(s.value||(s.value=!0),E(),C.deltaY&&(!i.value&&o.value&&(o.value.scrollLeft+=C.deltaY*(n.rtl?-1:1)),C.preventDefault()))}function $(C){return Math.hypot(C.touches[0].clientX-C.touches[1].clientX,C.touches[0].clientY-C.touches[1].clientY)}let m=0,V;function ee(C){if(!l.value){if(!n.touchDevice){t("click",C);return}m++,V&&clearTimeout(V),m===2&&ie(C.clientX,C.clientY),V=setTimeout(()=>{!l.value&&m===1&&t("click",C),V=void 0,m=0},300)}}function ie(C,k){if(!m)return;m=0;const P=r.value===1?2:1;D(P,{x:C,y:k})}let b;const F=Ke(()=>{a.value=!1,b=void 0},150);function oe(){if(!a.value){const C=o.value;if(!C)return;const k=C.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;k&&(b={el:k,rect:k.getBoundingClientRect()},a.value=!0)}if(b)return F(),b}async function D(C,k){const P=o.value,U=Math.min(yn,Math.max(bn,C));if(!P||r.value===U)return;const ne=oe();if(!ne)return;const ye=(k==null?void 0:k.x)??P.clientWidth/2,he=(k==null?void 0:k.y)??P.clientHeight/2;r.value=U,t("update:modelValue",U),await gt();const{el:ue,rect:te}=ne,Le=ue.offsetWidth/te.width,ve=ue.offsetHeight/te.height;P.scrollLeft=ue.offsetLeft-te.left*Le+ye*(Le-1),P.scrollTop=ue.offsetTop-te.top*ve+he*(ve-1)}return(C,k)=>(A(),q("div",{ref_key:"root",ref:o,tabindex:"0",class:Oe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!C.longStrip&&(l.value||s.value||a.value),"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Be({"font-size":`${r.value}px`}),onClick:lt(ee,["stop"])},[Pe(C.$slots,"default")],14,Ud))}}),Kd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Xs=Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Y(null),o=Y(!1);return et(async()=>{await gt();let r=!1;dr(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(A(),q("div",{ref_key:"root",ref:n},[Pe(r.$slots,"default",{visible:o.value})],512))}}),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Xd={key:0,class:"page--loading"},qd=["src"],Zd=["src"],Jd=["data-index"],qs=be(Te({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},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=Y(null),r=ae(()=>{var L;return(L=o.value)==null?void 0:L.$el}),i=Y(null),s=fr(r),l=ae(()=>{const{width:L,height:d}=s,E=n.isLongStrip?n.isVertical?L.value:d.value:Math.min(L.value,d.value);return Math.min(4,Math.max(1,Math.ceil(E/400-1)))*n.gap}),a=Y(n.pageIndex),c=Y(n.pageIndex+3);let u=n.pageIndex,h=n.pageIndex;const g=Ke(B,50);pe(()=>n.pageIndex,()=>{u>n.pageIndex&&(u=n.pageIndex)});const y=ae(()=>{const{width:{value:L},height:{value:d}}=s;return n.pages.map(E=>{var oe;const I=E.some(D=>{var C;return(C=D.img)==null?void 0:C.isLoading}),$=E.map(D=>D.index),m={isLoading:I,indexes:$};if(I||$[$.length-1]<a.value-1||$[0]>c.value+2)return m;const V=E.map(({img:D})=>D).filter(Boolean);if(!V.length||(m.srcs=V.map(({src:D})=>D),V.every(D=>D.hasError)))return m;const ie=(oe=V.find(D=>!D.hasError))==null?void 0:oe.size,b=V.reduce((D,C)=>{var k;return D+(((k=C.size)==null?void 0:k.width)??ie.width)},0),F=V.reduce((D,C)=>{var k;return D+(((k=C.size)==null?void 0:k.height)??ie.height)},0)/V.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&L/b<d/F?(m.width=Math.min(L,b),m.height=F*m.width/b):m.height=Math.min(d,F),m})}),M=ae(()=>{const L=n.isVertical?"width":"height";return y.value.map(d=>d[L]).filter(Boolean).sort((d,E)=>E-d)[0]});function x(L){const d=L.indexes[L.indexes.length-1];d!==void 0&&h<d&&(h=d),g()}function B(){a.value!==u&&(a.value=u),c.value!==h&&(c.value=h)}function W(){n.isLongStrip?B():g()}function N(L){if(!n.isLongStrip){const d=n.isVertical?s.height.value:s.width.value,I=(n.isVertical?L.clientY:n.isRTL?d-L.clientX:L.clientX)/d;if(I<=.2){t("prev");return}else if(I>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(L,d)=>{const E=tr,I=Xs,$=Ys;return A(),we($,{ref_key:"root",ref:o,"model-value":L.zoom,"page-index":L.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":L.isLongStrip,"reader-body--pages":!L.isLongStrip,"reader-body--vertical":L.isVertical,"reader-body--rtl":L.isRTL,"reader-body--idle":L.idle}]),"play-controller":L.playController,horizontal:!L.isVertical,rtl:L.isRTL,"touch-device":L.touchDevice,busy:L.busy,"long-strip":L.isLongStrip,style:Be({"--gap":`${l.value}em`,"--space-top":(L.spaceTop||0)+"px","--screen-width-em":G(s).width.value+"em","--screen-height-em":G(s).height.value+"em",...L.isLongStrip?{"--max-size-em":M.value+"em"}:{}}),"onUpdate:modelValue":d[0]||(d[0]=m=>t("update:zoom",m)),onDragEnd:d[1]||(d[1]=()=>t("dragEnd")),onClick:N,onScroll:W},{default:le(()=>[(A(!0),q(Ce,null,fn(y.value,m=>(A(),we(I,to({key:L.direction+"_"+m.indexes[0],"data-index":m.indexes[0]},m.indexes.length>1?{"data-index2":m.indexes[1]}:{},{onVisible:()=>x(m)}),{default:le(({visible:V})=>{var ee;return[!((ee=m.srcs)!=null&&ee.length)||m.isLoading?(A(),q("div",Xd,[mt(Z(E,null,null,512),[[ts,V]])])):m.srcs.length==1?(A(),q("img",{key:1,src:m.srcs[0],style:Be({height:m.height!==void 0?m.height+"em":""})},null,12,qd)):(A(),q("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":L.isRTL}]),style:Be({width:m.width!==void 0?m.width+"em":"",height:m.height!==void 0?m.height+"em":""})},[(A(!0),q(Ce,null,fn(m.srcs,ie=>(A(),q("div",{key:ie},[X("img",{src:ie},null,8,Zd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":L.totalImgs},[Pe(L.$slots,"end")],8,Jd)]),_:3},8,["model-value","page-index","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.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.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{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:var(--screen-height-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:var(--screen-width-em)}.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:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.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.reader-body--vertical>div{width:var(--screen-width-em)}.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:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.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>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
6
|
+
`]]]),Qd=Object.freeze(Object.defineProperty({__proto__:null,default:qs},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"},Zs=be(Te({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=Y(null),o=Y(null),r=Y(!1),i=Y(!1),s=Y(3);return et(()=>{let l;dr(o,a=>{i.value=a.some(c=>c.isIntersecting),s.value=5,l&&(clearInterval(l),l=void 0),i.value&&(l=setInterval(()=>{s.value-=1,s.value<=0&&(clearInterval(l),l=void 0,t("next"))},1e3))}),dr(n,a=>{r.value=a.some(c=>c.isIntersecting)}),it(()=>l&&clearInterval(l))}),(l,a)=>(A(),q("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[mt(X("div",Gd,[l.hasNext?(A(),q("div",ep,[i.value?(A(),q("div",tp)):Me("",!0),mt((A(),q("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:a[0]||(a[0]=lt(()=>t("next"),["stop"]))},[It(" Next in "+Je(s.value),1)])),[[G(nn)]])])):Me("",!0),mt((A(),q("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:a[1]||(a[1]=lt(()=>t("hide"),["stop"]))},[It(" Hide ")])),[[G(nn)]])],512),[[ts,r.value||!l.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:Zs},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 i=await xn(e-1,t,n);r(i)},t)})}function lo(e=0){return new Promise(t=>setTimeout(t,e))}const op=3;function rp(e){var oe,D,C;const t=((D=(oe=e.raw.value)==null?void 0:oe.imgs)==null?void 0:D.filter(Boolean))??[];let n=!!t.length;const o=Y(t),r=sn({}),i=[],s=new WeakMap,l=Y((C=e.raw.value)==null?void 0:C.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,h=!1,g=!1,y=0,M=0,x,B=[],W=e.isAutoShow!==!1?e.page.value:n?ap(t):void 0;const N=Ke(b,100);let L=!1;const d=Ke(m,50),E=()=>{L?d():(L=!0,m())};n?m():ee(),pe(()=>{var k;return(k=e.raw.value)==null?void 0:k.imgs},k=>{k&&k!==o.value&&(n=!0,$(k))}),it(()=>{u=!1,i.forEach(k=>URL.revokeObjectURL(k))}),Yn(()=>{if(!h)return;const k=B.length?void 0:document.querySelector(`img[src^="${t[Math.floor(e.page.value)]}"]`)??void 0;kn({contentEl:x,imgEl:k,imgEls:B,page:e.page.value})});function I(){var ye,he;if(h||l.value===void 0||W===void 0)return;const k=Math.max(0,Math.min(W,o.value.length)),P=o.value.length-1,U=Math.min(Math.floor(k),P);if(U>=1){const ue=o.value[U];if(!ue){e.isAutoShow&&kn({contentEl:x,imgEls:B,page:U});return}const te=o.value[U-1];if(te&&!((ye=r[te])!=null&&ye.size)||!((he=r[ue])!=null&&he.size))return}if(h)return;h=!0,e.onReady(k);let ne=!0;pe(()=>Math.floor(e.page.value),async(ue,te)=>{kn({imgEls:B,page:ue,smooth:c,skipIfVisible:ne}),ne=!1,te??(te=-1),ue!==te&&(y=Math.max(0,y-Math.abs(ue-te))),E()},{immediate:!0})}function $(k,P){(k.length!==o.value.length||k.some((U,ne)=>o.value[ne]!==U))&&(P&&(B=P,e.isAutoShow===!1&&W===void 0&&(W=Qs(B))),o.value=k,E())}function m(){const k=Math.max(0,Math.floor(e.page.value-1)),P=U=>{y>op||V(U)};for(let U=k;U<o.value.length;U++)P(U);for(let U=k-1;U>=0;U--)P(U)}async function V(k){const P=o.value[k];if(!(!u||!P||r[P])){if(!r[P]){r[P]={src:P,isLoading:!0,hasError:!1},y++;const U=await lp(P);if(r[P]={src:P,size:U,isLoading:!1,hasError:!U},y=Math.max(0,y-1),U&&!l.value&&k>Math.min(1,o.value.length-2)){const ne=U.height/U.width>2.5;l.value!==ne&&(l.value=ne)}I()}d()}}function ee(){let k=!1;const P=new MutationObserver(()=>{x&&N(x)});Yn(async()=>{P.disconnect()}),ie(U=>{x!==U&&(x=U,P.disconnect(),P.observe(x,{childList:!0,subtree:!0}),k?N(x):(k=!0,b(x)))})}async function ie(k){var ue;const P=(ue=e.spec)==null?void 0:ue.content;if(!P){k(document.body);return}const U=await ip(e.spec);let ne=P?await xn(U?100:1,10,()=>document.querySelector(P)):void 0;if(!ne)return;k(ne);let ye=0;const he=async()=>{if(u&&!(ne!=null&&ne.isConnected)&&!n){if(ye=0,ne=await xn(50,20,()=>{const te=document.querySelector(P);return te!=null&&te.isConnected&&te!==ne?te:void 0}),!ne)return;k(ne)}!u||n||++ye>=10||setTimeout(he,200)};setTimeout(he,200)}async function b(k){var ue;if(!u||!k.isConnected||n)return;const P=Date.now();M=P;let U,ne;const ye=new Map,he=(ue=e.spec)==null?void 0:ue.imgDivs;if(he){if(ne=Array.from(k.querySelectorAll(he)),!g&&e.isAutoShow!==!1&&e.page.value&&(g=!0,kn({contentEl:k,imgEls:ne,page:Math.floor(e.page.value),skipIfVisible:!0}),await lo(1),!u||!k.isConnected||M!==P||n)||(U=await Promise.all(ne.map(async(te,Le)=>{const ve=Array.from(te.querySelectorAll("img,canvas"));for(const Ee of ve){const Se=await F({ts:P,el:Ee,index:Le,total:ne.length,elsPool:ye,onImgLoad:()=>N(k)});if(Se)return Se}})),!u||!k.isConnected||M!==P||n))return}else{const te=Array.from(k.querySelectorAll("img,canvas")),Le=await Promise.all(te.map((Ee,Se)=>F({ts:P,el:Ee,index:Se,total:te.length,elsPool:ye,onImgLoad:()=>N(k)})));if(!u||!k.isConnected||M!==P||n)return;ne=te.filter((Ee,Se)=>Le[Se]),U=Le.filter(Boolean);const ve={};U.forEach((Ee,Se)=>{Ee&&Se!==U.lastIndexOf(Ee)&&(ve[Se]=!0)}),Object.keys(ve).length&&(ne=ne.filter((Ee,Se)=>!ve[Se]),U=U.filter((Ee,Se)=>!ve[Se])),!B.length&&ne.length<te.length&&ne.length<=5&&setTimeout(()=>{kn({imgEls:te,page:te.length,smooth:c})},50)}!e.raw.value&&!U.some(Boolean)&&e.onError("no_img"),$(U,ne)}async function F({ts:k,el:P,index:U,total:ne,elsPool:ye,onImgLoad:he}){const ue=s.get(P);let te,Le;if(P.tagName.toLowerCase()==="canvas"){if(ue)return ue.src;te=await Js(P)}else{if(P._tkLoadId_!==a&&(P._tkLoadId_=a,P.addEventListener("load",he),it(()=>{P._tkLoadId_===a&&delete P._tkLoadId_,P.removeEventListener("load",he)})),Le=cp(P,ye),!Le)return;if(Le===(ue==null?void 0:ue.originalSrc))return ue.src;if(te=await sp(P,Le),!u||M!==k)return;if(l.value===void 0&&U>Math.min(1,ne-2)){const Ee=+(P.getAttribute("width")??0),Se=+(P.getAttribute("height")??0);Ee&&Se&&(l.value=Se/Ee>2.5)}}return te&&(s.set(P,{src:te,originalSrc:Le}),te.startsWith("blob:")&&i.push(te)),te}return{asyncImgs:ae(()=>o.value.map(k=>k?r[k]:void 0)),isWebtoon:ae(()=>l.value??!1)}}async function ip(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 i=s=>s.preventDefault();r.addEventListener("click",i),it(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await lo(),!0}function Js(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 sp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await Js(o)}function lp(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:i}=n;i&&r&&(t({width:r,height:i}),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 Qs(n)}function Qs(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:-o/n.height)}return 0}function cp(e,t){if(!Gs(e,t))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 i of o){if(i!=="data-url"&&i!=="data-original"&&!i.includes("src"))continue;const s=e.getAttribute(i);if(s)return i==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:s.replace(/(\n|\t)/g," ").trim()}}function Gs(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&o.visibility!=="hidden"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=Gs(e.parentElement,t);return t.set(e,i),i}function kn({contentEl:e,imgEls:t,page:n,smooth:o,skipIfVisible:r,imgEl:i}){var u;const s=n>=t.length,l=o?"smooth":"instant";if(s){(u=t[t.length-1])==null||u.scrollIntoView({block:"end",behavior:l});return}if(i??(i=t[Math.floor(n)]),!i)return;const a=i.getBoundingClientRect();if(r&&a.top<=0&&a.top+a.height>0)return;i.scrollIntoView({block:"start",behavior:l});const c=n%1;if(c){const h=c*a.height,g=pr(e??document.documentElement);setTimeout(()=>g==null?void 0:g.scrollBy({top:h}))}}function pr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?pr(document.documentElement)??e:e:pr(e.parentElement??void 0)}function up(e,t){return ae(()=>t.value?el(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function el(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...el(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")),$d("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 hr=40;function pp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,interferePlayer:a,onChangedPage:c,onInitialized:u}){let h=!1,g=!1,y;const M=Ke(I,300),x=$s(()=>{I(),M()},300),B=Ke(L,50);async function W(){d(e.value)}function N(){var b;g=!0,u(),(b=l.value)==null||b.addEventListener("scroll",x),setTimeout(()=>{const{width:F,height:oe}=Md();pe(F,()=>{r.value&&B()}),pe(oe,()=>{r.value||B()}),pe(n,B),pe(t,B)},300)}function L(){if(!g||h)return;const b=e.value;$()!==b&&d(b)}function d(b,{smooth:F}={smooth:!1}){const oe=l.value;if(!oe)return;h=!0;const D=async()=>{await gt(),h=!1,g||N()},C=Math.floor(b),k=oe.querySelector(`[data-index="${C}"],[data-index2="${C}"]`);if(!k){D();return}a(async()=>{await E(oe,!o.value&&F,async()=>{await ie(oe,k,{smooth:F,page:b})}),await D()})}async function E(b,F,oe){F&&b.style.setProperty("scroll-snap-type","none"),await oe(),F&&b.style.removeProperty("scroll-snap-type")}function I(){if(h)return;const b=$();b!==void 0&&b!==e.value&&c(b)}function $(){const b=m();return b?(+b.getAttribute("data-index")||0)+(o.value?V(b):0):void 0}function m(){var F;if(y??(y=l.value.getRootNode()),!y)return;const b=(F=y.elementsFromPoint)==null?void 0:F.call(y,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-hr:hr,r.value&&o.value?s.value||hr:window.innerHeight/2);if(b)for(let oe=0;oe<b.length;oe++){const D=b[oe];if(D.hasAttribute("data-index"))return D;if(D===l.value)break}}function V(b){const F=b.getBoundingClientRect();return r.value?Math.abs(F.top-s.value)/F.height:i.value?Math.max(0,F.right-l.value.clientWidth)/F.width:Math.abs(F.left)/F.width}let ee=!1;async function ie(b,F,oe){if(ee)return;const D=F.getBoundingClientRect();if(!o.value){if(r.value){if(D.top<=0&&D.bottom>=b.clientHeight)return}else if(D.left<=0&&D.right>=b.clientWidth)return}ee=!0;const C=r.value?b.scrollTop:b.scrollLeft,k=oe.page,P=o.value?k%1:0,U=await xn(30,10,async()=>{await lo();let te;if(!(F.offsetHeight<10))return o.value?r.value?te=F.offsetTop+P*F.offsetHeight-s.value:i.value?te=F.offsetLeft-b.clientWidth+F.offsetWidth-P*F.offsetWidth:te=F.offsetLeft+P*F.offsetWidth:r.value?te=F.offsetTop+(D.top>0?0:D.height-b.clientHeight):te=F.offsetLeft+(D.left>0?0:D.width-b.clientWidth),k>.5&&Math.abs(te)<100?void 0:te})??0,ne=r.value?Math.min(U,b.scrollHeight-b.clientHeight*2):i.value?Math.max(U,-(b.scrollWidth-b.clientWidth*2)):Math.min(U,b.scrollWidth-b.clientWidth*2);if(!oe.smooth){r.value?b.scrollTop=ne:b.scrollLeft=ne,ee=!1;return}const ye=ne-C,he=30;let ue=0;return new Promise(te=>{(function Le(){const ve=hp(ue,C,ye,he);r.value?b.scrollTop=ve:b.scrollLeft=ve,ue++,ue<=he?requestAnimationFrame(Le):(te(),ee=!1)})()})}return{init:W,goToPage:d}}function hp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function gp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Y(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:m=>{a.value=m,sessionStorage.setItem("tk:playing",m?"true":"false")}}),u=Y(!1);let h,g;const y=Ke(I,100),M=Ke(()=>{u.value=!0},t?2e3:1e3),x=()=>setTimeout(()=>{u.value=!1,M()},30);x(),t||Mt(window,"mousemove",x);const B=Bs();et(()=>{pe(B,m=>{c.value&&(m==="visible"?I():g==null||g())}),pe(s,()=>W()),pe(i,m=>{m||L()})});async function W(m){c.value&&(g==null||g()),m&&(await gt(),await m()),c.value&&y()}function N(){c.value?L():d()}function L(){c.value&&(c.value=!1,g==null||g(),x())}function d(){!c.value&&i.value&&(c.value=!0,I(),x())}function E(){g==null||g()}function I(){const m=n.value;if(!c.value||!m)return;const V=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,ee=$();if(V<=ee){L();return}g=()=>{h=Date.now(),g=void 0};const ie=Date.now();h=ie;const b=.05*s.value,F=o.value?"scrollTop":"scrollLeft";let oe=Date.now(),D=0;const C=()=>{if(h!==ie)return;const k=Date.now(),P=k-oe;oe=k;const U=b*P+D;U>=1?(D=U%1,m[F]+=(U-D)*(r.value?-1:1)):D=U,setTimeout(C,1)};C()}function $(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:c,isIdle:u,toggle:N,play:d,pause:E,resume:I,stop:L,interfere:W,awake:x}}function mp(e){var y,M,x,B,W;let t=-1,n=(y=e.prev)==null?void 0:y.slug,o=(M=e.next)==null?void 0:M.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,h=l.chapters??[],g=(h==null?void 0:h.length)>1?h:[];if(g.length){if(t=g.findIndex(N=>N.slug===e.slug),t===-1&&(t=g.findIndex(N=>(N.vol??N.inferVol)===u&&N.chap===s)),t===-1&&(t=g.findIndex(N=>a.startsWith(`${N.slug}-`)&&a.length-N.slug.length>3)),t!==-1)n??(n=(x=g[t+1])==null?void 0:x.slug),o??(o=(B=g[t-1])==null?void 0:B.slug);else if(!n&&!o){const N=g.findIndex(L=>{const d=L.vol??L.inferVol;return u===void 0||d===void 0||u===d?L.chap<s:d<u});N!==-1?(n=g[N].slug,o=(W=g[N-1])==null?void 0:W.slug):o=g[g.length-1].slug}}return{activeIndex:t,activeLabel:tl({vol:r,chap:s}),chapters:g.map(N=>({label:tl(N),path:gr(c,N.slug)})),prevPath:gr(c,n),nextPath:gr(c,o)}}function gr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function tl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const vp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},_p=Te({...{inheritAttrs:!1},__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,i;const s=Y(!1),l=Y(!1),a=au({touchDevice:n.touchDevice}),c=fp(n.page),u=ae(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:g}=rp({raw:ae(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(v){he(v),s.value=!0},onError:()=>{t("error"),T()}}),{direction:y,style:M,isRTL:x,isDouble:B,isVertical:W,isLongStrip:N,gap:L,speed:d,zoom:E}=qu({titleName:ae(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:g}),I=up(h,B),$=ae(()=>c.value>=h.value.length),m=ae(()=>n.raw?mp(n.raw):void 0),V=ae(()=>{var v,w;return x.value?(v=m.value)==null?void 0:v.nextPath:(w=m.value)==null?void 0:w.prevPath}),ee=ae(()=>{var v,w;return x.value?(v=m.value)==null?void 0:v.prevPath:(w=m.value)==null?void 0:w.nextPath}),ie=Y(null),b=Y(null),F=Y(!1),oe=Y(!1),D=gp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var v;return(v=ie.value)==null?void 0:v.$el}),speed:d,isRTL:x,isVertical:W,isLongStrip:N}),C=ae(()=>!n.touchDevice&&D.isIdle.value&&!a.value),k=ae({get(){return E.value},set(v){D.interfere(()=>{E.value=v})}}),P=pp({page:c,style:M,direction:y,isLongStrip:N,isVertical:W,isRTL:x,spaceTop:u,scrollEl:ae(()=>{var v;return(v=ie.value)==null?void 0:v.$el}),interferePlayer:v=>D.interfere(v),onChangedPage:he,onInitialized(){t("ready"),l.value=!0,n.touchDevice&&(i=ue())}}),U=ae(()=>Math.floor(c.value)),ne=()=>D.interfere(()=>lo(100));_u().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const w=N.value&&W.value,K=N.value&&!W.value,J=!N.value&&W.value,re=!N.value&&!W.value;switch(v.key){case" ":v.preventDefault(),N.value?(O(!1),D.toggle()):p();break;case"ArrowUp":case"PageUp":w?ne():J&&U.value!==0&&(v.preventDefault(),f());break;case"ArrowDown":case"PageDown":w?ne():J&&!$.value&&(v.preventDefault(),p());break;case"ArrowLeft":K?ne():re?(v.preventDefault(),Sn()):W.value&&Ee();break;case"ArrowRight":K?ne():re?(v.preventDefault(),In()):W.value&&ve();break}},onKeyUp:v=>{switch(v.key){case"f":H();break;case"t":j();break;case"h":O();break}}}),Mt("fullscreenchange",()=>{F.value=!!document.fullscreenElement}),pe(D.isPlaying,v=>{v||S(!1),t("playingChanged",v)}),pe(D.isIdle,v=>{D.isPlaying.value&&S(v)}),pe(a,v=>{!v&&D.isIdle.value?D.awake():v&&n.fullScreen&&S()});function he(v){if(c.value===v)return;const w=h.value.length;if(v<0||v>=w+1)return;const K=c.value;c.value=v,t("pageChanged",Math.floor(v*100)/100),v>=w?(S(!1),D.stop()):v===0?S(!1):n.touchDevice&&!r&&(N.value?i!==void 0&&ue()-i>300&&S(!0):Math.abs(K-v)===1&&S(!0)),!o&&v>=w-2&&(o=!0,t("finished"))}function ue(){var w;const v=(w=ie.value)==null?void 0:w.$el;return v?W.value?v.scrollTop:x.value?-v.scrollLeft:v.scrollLeft:0}function te(){!n.touchDevice&&!N.value&&P.goToPage(U.value,{smooth:!0})}function Le(){if(D.isPlaying.value){!n.fullScreen||!n.touchDevice?D.stop():D.awake();return}S()}function ve(){var v;dt((v=m.value)==null?void 0:v.nextPath)}function Ee(){var v;dt((v=m.value)==null?void 0:v.prevPath)}function Se(v){var K,J,re;const w=(re=(J=(K=m.value)==null?void 0:K.chapters)==null?void 0:J[v])==null?void 0:re.path;w&&dt(w)}function dt(v){v&&(location.href=v.includes("://")?v:location.origin+v)}function Sn(){x.value?p():f()}function In(){x.value?f():p()}function f(){var K;const v=I.value,w=$.value?v[v.length-1][0].index:(K=v[_()-1])==null?void 0:K[0].index;w!==void 0?P.goToPage(w):Ee()}function p(){var v,w;if($.value)ve();else{const K=((w=(v=I.value[_()+1])==null?void 0:v[0])==null?void 0:w.index)??h.value.length;P.goToPage(K)}}function _(){const v=U.value,w=I.value.findIndex(K=>K.some(({index:J})=>J===v));return w===-1?I.value.length-1:w}function T(){dp(),D.stop(),t("dispose")}async function S(v){if(a.value&&!n.fullScreen)return;r=!0;const w=typeof v=="boolean"?v:!n.fullScreen;t("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&a.value&&t("fullScreenChanged",!1)},100)}function j(){n.entryId?R():z()}function H(){var v,w;document.fullscreenElement?document.exitFullscreen():(w=(v=b.value)==null?void 0:v.$el)==null||w.requestFullscreen()}function z(){D.stop(),t("addEntry")}function R(){D.stop(),t("openEntry",n.entryId)}function O(v){oe.value!==v&&(oe.value=!oe.value,oe.value&&D.isPlaying&&D.stop())}return(v,w)=>{const K=Zs,J=qs,re=Ks,me=Ws,ge=Hs,xe=Vs,Xe=Cs,Ve=oo,ao=ks,Ut=ir,co=xs,Re=ws,nt=ys,uo=_s,Pp=vs,Ep=ms,Op=gs,Mp=hs,Lp=or,zp=nr,jp=ss,Ap=rs;return v.immediate||s.value?(A(),we(Ap,{key:0,ref_key:"root",ref:b,loading:!l.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,idle:C.value,"space-top":u.value,rtl:G(x),onClick:w[10]||(w[10]=lt(()=>{},["stop"]))},di({settings:le(()=>{var bt;return[Z(Mp,{"reader-style":G(M),"onUpdate:readerStyle":w[3]||(w[3]=yt=>$e(M)?M.value=yt:null),direction:G(y),"onUpdate:direction":w[4]||(w[4]=yt=>$e(y)?y.value=yt:null),gap:G(L),"onUpdate:gap":w[5]||(w[5]=yt=>$e(L)?L.value=yt:null),speed:G(d),"onUpdate:speed":w[6]||(w[6]=yt=>$e(d)?d.value=yt:null),zoom:k.value,"onUpdate:zoom":w[7]||(w[7]=yt=>k.value=yt),name:(bt=v.raw)==null?void 0:bt.title.name,webtoon:G(g),disabled:!s.value,onHelp:O},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":le(()=>[Z(tn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[Z(jp,{zoom:k.value,onClick:w[9]||(w[9]=lt(()=>k.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:le(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${G(c)/(G(h).length-1)*100}%`})},null,4)]),default:le(()=>[s.value?(A(),we(J,{key:0,ref_key:"body",ref:ie,zoom:k.value,"onUpdate:zoom":w[0]||(w[0]=bt=>k.value=bt),"page-index":U.value,pages:G(I),"total-imgs":G(h).length,direction:G(y),gap:G(L),"is-long-strip":G(N),isRTL:G(x),"is-vertical":G(W),"space-top":u.value,busy:G(a),idle:C.value,"play-controller":G(D),"touch-device":v.touchDevice,onVnodeMounted:G(P).init,onPrev:f,onNext:p,onClick:Le,onDragEnd:te,onWheelPassive:w[1]||(w[1]=()=>G(D).interfere())},di({_:2},[s.value&&G(h).length?{name:"end",fn:le(()=>{var bt;return[Z(K,{"has-next":!!((bt=m.value)!=null&&bt.nextPath),onNext:ve,onHide:T},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","onVnodeMounted"])):Me("",!0),l.value&&!$.value&&!v.tourEnabled?(A(),we(re,{key:1,direction:G(y)},null,8,["direction"])):Me("",!0),l.value&&!$.value?(A(),we(me,{key:2,playing:!!G(D).isPlaying.value},null,8,["playing"])):Me("",!0),oe.value?(A(),we(ge,{key:3,"touch-device":v.touchDevice,onHide:O},null,8,["touch-device"])):Me("",!0),v.tourEnabled?(A(),we(xe,{key:4,onHide:w[2]||(w[2]=()=>t("tourEnabledChanged",!1))})):Me("",!0)]),_:2},[v.raw?{name:"back",fn:le(()=>[Z(Ve,{href:v.raw.title.url,title:"Back to manga"},{default:le(()=>[Z(Xe)]),_:1},8,["href"])]),key:"0"}:void 0,v.touchDevice?void 0:{name:"exit",fn:le(()=>[Z(Ve,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:T},{default:le(()=>[Z(ao)]),_:1})]),key:"1"},m.value?{name:"chapter-nav",fn:le(()=>[Z(Ut,{modelValue:m.value.activeIndex,label:m.value.activeLabel,title:"Select chapter",items:m.value.chapters,"onUpdate:modelValue":Se},{item:le(({item:bt})=>[It(Je(bt.label),1)]),_:1},8,["modelValue","label","items"]),V.value||ee.value?(A(),q("div",vp,[Z(Ve,{title:`${G(x)?"Next":"Prev"} chapter (←)`,href:V.value,disabled:!V.value,class:"!rounded-r-none"},{default:le(()=>[Z(co)]),_:1},8,["title","href","disabled"]),Z(Ve,{title:`${G(x)?"Prev":"Next"} chapter (→)`,href:ee.value,disabled:!ee.value,class:"!rounded-l-none"},{default:le(()=>[Z(Re)]),_:1},8,["title","href","disabled"])])):Me("",!0)]),key:"2"}:void 0,G(I).length?{name:"page-nav",fn:le(()=>[Z(nt,{"model-value":U.value,disabled:!l.value,pages:G(I),"total-imgs":G(h).length,"onUpdate:modelValue":G(P).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:le(()=>[Z(Ve,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:j},{default:le(()=>[v.entryId?(A(),we(uo,{key:0})):(A(),we(Pp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:le(()=>[Z(Ve,{title:`${F.value?"Exit":"Enter"} fullscreen (F)`,onClick:H},{default:le(()=>[F.value?(A(),we(Ep,{key:0})):(A(),we(Op,{key:1}))]),_:1},8,["title"])]),key:"5"},G(N)?{name:"play",fn:le(()=>[Z(Ve,{"data-tour":"Press here to play like a video",title:`${G(D).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:w[8]||(w[8]=()=>G(D).toggle())},{default:le(()=>[G(D).isPlaying.value?(A(),we(Lp,{key:0})):(A(),we(zp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Me("",!0)}}}),nl=be(_p,[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;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-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}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{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;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}dialog{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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-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-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{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\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.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-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.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-full{--tw-translate-y:100%}.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-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.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-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-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{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/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-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.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-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/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-100{opacity:1}.opacity-50{opacity:.5}.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-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.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-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/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-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/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-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/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\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
8
|
+
`]]]),bp=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),yp={},wp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},xp=[X("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(),q("svg",wp,xp)}const Cp=Object.freeze(Object.defineProperty({__proto__:null,default:be(yp,[["render",kp]])},Symbol.toStringTag,{value:"Module"})),Sp=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;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;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}
|
|
9
|
+
`,Cn="gear-second",mr={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,isAutoShow:void 0,isGuest:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},Ye={promise:void 0,data:sn({...mr})};async function Ip(e){return Ye.promise?(Ye.data.raw=e.raw,await Ye.promise):(Ye.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove(Cn),Object.assign(Ye.data,mr),Ye.promise=void 0)};Object.assign(Ye.data,mr,e,{immediate:i,onReady(){i||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Ye.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Ye.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Ye.data.tourEnabled=c}}),$p().then(()=>{if(n){a();return}r=document.createElement(Cn),document.documentElement.classList.add(Cn),i?(document.body.appendChild(r),setTimeout(l)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function l(){o||(o=!0,t({triggerDoubleTap:(c,u)=>Wd(c,u),updateArgs(c){Object.assign(Ye.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Ye.promise)}async function $p(){if(window.customElements.get(Cn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Sp)),document.head.appendChild(e);const t=vc({styles:[await Tp()],data:()=>({readerData:Ye.data}),render(){return Ri(nl,this.readerData)}});window.customElements.define(Cn,t)}async function Tp(){const e=Object.assign({"./TrackkunReader.vue":bp,"./components/AutoNext.vue":np,"./components/BottomSheet.vue":xu,"./components/ButtonDropdown.vue":Pf,"./components/ButtonIcon.vue":fu,"./components/ButtonReaderSettings.vue":Ju,"./components/ButtonResetZoom.vue":Jc,"./components/DirectionToast.vue":Vd,"./components/HelpScreen.vue":jd,"./components/InputPercentage.vue":Su,"./components/InputSelect.vue":Eu,"./components/IntersectionWrapper.vue":Yd,"./components/LoadingIndicator.vue":jc,"./components/PageNav.vue":Ef,"./components/PauseToast.vue":Ad,"./components/ReaderBody.vue":Qd,"./components/ReaderLayout.vue":Vc,"./components/ReaderTour.vue":Ld,"./components/TableField.vue":Tu,"./components/ZoomWrapper.vue":Kd,"./components/icons/IconBack.vue":Zf,"./components/icons/IconBookmarkNew.vue":pf,"./components/icons/IconBookmarked.vue":_f,"./components/icons/IconChevronLeft.vue":Nf,"./components/icons/IconChevronRight.vue":jf,"./components/icons/IconClose.vue":mu,"./components/icons/IconExclamationCircle.vue":Cp,"./components/icons/IconFullscreen.vue":nf,"./components/icons/IconFullscreenExit.vue":af,"./components/icons/IconHelp.vue":ju,"./components/icons/IconNext.vue":Fd,"./components/icons/IconPause.vue":lu,"./components/icons/IconPlay.vue":nu,"./components/icons/IconReaderExit.vue":Uf,"./components/icons/IconSettings.vue":Nu,"./components/icons/IconTriangle.vue":kf,"./components/icons/IconZoom.vue":Yc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Ip});
|