gear-second 1.4.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(We,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe():typeof define=="function"&&define.amd?define(fe):(We=typeof globalThis<"u"?globalThis:We||self,We._gearSecond_=fe())})(this,function(){"use strict";var sp=Object.defineProperty;var lp=(We,fe,Ze)=>fe in We?sp(We,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):We[fe]=Ze;var Ys=(We,fe,Ze)=>(lp(We,typeof fe!="symbol"?fe+"":fe,Ze),Ze);function We(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 fe={},Ze=[],it=()=>{},Xs=()=>!1,qs=/^on[^a-z]/,In=e=>qs.test(e),uo=e=>e.startsWith("onUpdate:"),Se=Object.assign,fo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zs=Object.prototype.hasOwnProperty,de=(e,t)=>Zs.call(e,t),G=Array.isArray,Kt=e=>Tn(e)==="[object Map]",dr=e=>Tn(e)==="[object Set]",le=e=>typeof e=="function",Te=e=>typeof e=="string",po=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",pr=e=>ye(e)&&le(e.then)&&le(e.catch),hr=Object.prototype.toString,Tn=e=>hr.call(e),Qs=e=>Tn(e).slice(8,-1),gr=e=>Tn(e)==="[object Object]",ho=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=We(",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))},Js=/-(\w)/g,Ue=En(e=>e.replace(Js,(t,n)=>n?n.toUpperCase():"")),Gs=/\B([A-Z])/g,Qe=En(e=>e.replace(Gs,"-$1").toLowerCase()),Pn=En(e=>e.charAt(0).toUpperCase()+e.slice(1)),go=En(e=>e?`on${Pn(e)}`:""),on=(e,t)=>!Object.is(e,t),On=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Mn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},mo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vo=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let mr;const _o=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function De(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Te(o)?ol(o):De(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Te(e))return e;if(ye(e))return e}}const el=/;(?![^(]*\))/g,tl=/:([^]+)/,nl=/\/\*[^]*?\*\//g;function ol(e){const t={};return e.replace(nl,"").split(el).forEach(n=>{if(n){const o=n.split(tl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Te(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const rl=We("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function vr(e){return!!e||e===""}const Je=e=>Te(e)?e:e==null?"":G(e)||ye(e)&&(e.toString===hr||!le(e.toString))?JSON.stringify(e,_r,2):String(e),_r=(e,t)=>t&&t.__v_isRef?_r(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:dr(t)?{[`Set(${t.size})`]:[...t.values()]}:ye(t)&&!G(t)&&!gr(t)?String(t):t;let Ke;class il{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=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 sl(e,t=Ke){t&&t.active&&t.effects.push(e)}function br(){return Ke}function ll(e){Ke&&Ke.cleanups.push(e)}const bo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yr=e=>(e.w&wt)>0,wr=e=>(e.n&wt)>0,al=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=wt},cl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];yr(r)&&!wr(r)?r.delete(e):t[n++]=r,r.w&=~wt,r.n&=~wt}t.length=n}},yo=new WeakMap;let rn=0,wt=1;const wo=30;let st;const Lt=Symbol(""),xo=Symbol("");class ko{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,sl(this,o)}run(){if(!this.active)return this.fn();let t=st,n=xt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=st,st=this,xt=!0,wt=1<<++rn,rn<=wo?al(this):xr(this),this.fn()}finally{rn<=wo&&cl(this),wt=1<<--rn,st=this.parent,xt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){st===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let xt=!0;const kr=[];function Yt(){kr.push(xt),xt=!1}function Xt(){const e=kr.pop();xt=e===void 0?!0:e}function Fe(e,t,n){if(xt&&st){let o=yo.get(e);o||yo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=bo()),Cr(r)}}function Cr(e,t){let n=!1;rn<=wo?wr(e)||(e.n|=wt,n=!yr(e)):n=!e.has(st),n&&(e.add(st),st.deps.push(e))}function pt(e,t,n,o,r,i){const s=yo.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&G(e)){const l=Number(o);s.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":G(e)?ho(n)&&a.push(s.get("length")):(a.push(s.get(Lt)),Kt(e)&&a.push(s.get(xo)));break;case"delete":G(e)||(a.push(s.get(Lt)),Kt(e)&&a.push(s.get(xo)));break;case"set":Kt(e)&&a.push(s.get(Lt));break}if(a.length===1)a[0]&&Co(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Co(bo(l))}}function Co(e,t){const n=G(e)?e:[...e];for(const o of n)o.computed&&Sr(o);for(const o of n)o.computed||Sr(o)}function Sr(e,t){(e!==st||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ul=We("__proto__,__v_isRef,__isVue"),Ir=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(po)),fl=So(),dl=So(!1,!0),pl=So(!0),Tr=hl();function hl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=pe(this);for(let i=0,s=this.length;i<s;i++)Fe(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(pe)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Yt();const o=pe(this)[t].apply(this,n);return Xt(),o}}),e}function gl(e){const t=pe(this);return Fe(t,"has",e),t.hasOwnProperty(e)}function So(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?Ol:jr:t?Ar:zr).get(o))return o;const s=G(o);if(!e){if(s&&de(Tr,r))return Reflect.get(Tr,r,i);if(r==="hasOwnProperty")return gl}const a=Reflect.get(o,r,i);return(po(r)?Ir.has(r):ul(r))||(e||Fe(o,"get",r),t)?a:$e(a)?s&&ho(r)?a:a.value:ye(a)?e?Br(a):sn(a):a}}const ml=$r(),vl=$r(!0);function $r(e=!1){return function(n,o,r,i){let s=n[o];if(Zt(s)&&$e(s)&&!$e(r))return!1;if(!e&&(!Rn(r)&&!Zt(r)&&(s=pe(s),r=pe(r)),!G(n)&&$e(s)&&!$e(r)))return s.value=r,!0;const a=G(n)&&ho(o)?Number(o)<n.length:de(n,o),l=Reflect.set(n,o,r,i);return n===pe(i)&&(a?on(r,s)&&pt(n,"set",o,r):pt(n,"add",o,r)),l}}function _l(e,t){const n=de(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&pt(e,"delete",t,void 0),o}function bl(e,t){const n=Reflect.has(e,t);return(!po(t)||!Ir.has(t))&&Fe(e,"has",t),n}function yl(e){return Fe(e,"iterate",G(e)?"length":Lt),Reflect.ownKeys(e)}const Er={get:fl,set:ml,deleteProperty:_l,has:bl,ownKeys:yl},wl={get:pl,set(e,t){return!0},deleteProperty(e,t){return!0}},xl=Se({},Er,{get:dl,set:vl}),Io=e=>e,Ln=e=>Reflect.getPrototypeOf(e);function zn(e,t,n=!1,o=!1){e=e.__v_raw;const r=pe(e),i=pe(t);n||(t!==i&&Fe(r,"get",t),Fe(r,"get",i));const{has:s}=Ln(r),a=o?Io:n?Eo:ln;if(s.call(r,t))return a(e.get(t));if(s.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function An(e,t=!1){const n=this.__v_raw,o=pe(n),r=pe(e);return t||(e!==r&&Fe(o,"has",e),Fe(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&&Fe(pe(e),"iterate",Lt),Reflect.get(e,"size",e)}function Pr(e){e=pe(e);const t=pe(this);return Ln(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Or(e,t){t=pe(t);const n=pe(this),{has:o,get:r}=Ln(n);let i=o.call(n,e);i||(e=pe(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 Mr(e){const t=pe(this),{has:n,get:o}=Ln(t);let r=n.call(t,e);r||(e=pe(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 Lr(){const e=pe(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Bn(e,t){return function(o,r){const i=this,s=i.__v_raw,a=pe(s),l=t?Io:e?Eo:ln;return!e&&Fe(a,"iterate",Lt),s.forEach((c,u)=>o.call(r,l(c),l(u),i))}}function Dn(e,t,n){return function(...o){const r=this.__v_raw,i=pe(r),s=Kt(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=r[e](...o),u=n?Io:t?Eo:ln;return!t&&Fe(i,"iterate",l?xo:Lt),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:a?[u(h[0]),u(h[1])]:u(h),done:p}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:this}}function kl(){const e={get(i){return zn(this,i)},get size(){return jn(this)},has:An,add:Pr,set:Or,delete:Mr,clear:Lr,forEach:Bn(!1,!1)},t={get(i){return zn(this,i,!1,!0)},get size(){return jn(this)},has:An,add:Pr,set:Or,delete:Mr,clear:Lr,forEach:Bn(!1,!0)},n={get(i){return zn(this,i,!0)},get size(){return jn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Bn(!0,!1)},o={get(i){return zn(this,i,!0,!0)},get size(){return jn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Bn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Dn(i,!1,!1),n[i]=Dn(i,!0,!1),t[i]=Dn(i,!1,!0),o[i]=Dn(i,!0,!0)}),[e,n,t,o]}const[Cl,Sl,Il,Tl]=kl();function To(e,t){const n=t?e?Tl:Il:e?Sl:Cl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(de(n,r)&&r in o?n:o,r,i)}const $l={get:To(!1,!1)},El={get:To(!1,!0)},Pl={get:To(!0,!1)},zr=new WeakMap,Ar=new WeakMap,jr=new WeakMap,Ol=new WeakMap;function Ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ll(e){return e.__v_skip||!Object.isExtensible(e)?0:Ml(Qs(e))}function sn(e){return Zt(e)?e:$o(e,!1,Er,$l,zr)}function zl(e){return $o(e,!1,xl,El,Ar)}function Br(e){return $o(e,!0,wl,Pl,jr)}function $o(e,t,n,o,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ll(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return r.set(e,a),a}function qt(e){return Zt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Zt(e){return!!(e&&e.__v_isReadonly)}function Rn(e){return!!(e&&e.__v_isShallow)}function Dr(e){return qt(e)||Zt(e)}function pe(e){const t=e&&e.__v_raw;return t?pe(t):e}function Rr(e){return Mn(e,"__v_skip",!0),e}const ln=e=>ye(e)?sn(e):e,Eo=e=>ye(e)?Br(e):e;function Nr(e){xt&&st&&(e=pe(e),Cr(e.dep||(e.dep=bo())))}function Fr(e,t){e=pe(e);const n=e.dep;n&&Co(n)}function $e(e){return!!(e&&e.__v_isRef===!0)}function q(e){return Al(e,!1)}function Al(e,t){return $e(e)?e:new jl(e,t)}class jl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:pe(t),this._value=n?t:ln(t)}get value(){return Nr(this),this._value}set value(t){const n=this.__v_isShallow||Rn(t)||Zt(t);t=n?t:pe(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Fr(this))}}function J(e){return $e(e)?e.value:e}const Bl={get:(e,t,n)=>J(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 Vr(e){return qt(e)?e:new Proxy(e,Bl)}class Dl{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 ko(t,()=>{this._dirty||(this._dirty=!0,Fr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=pe(this);return Nr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Rl(e,t,n=!1){let o,r;const i=le(e);return i?(o=e,r=it):(o=e.get,r=e.set),new Dl(o,r,i||!r,n)}function cp(e,...t){}function Ct(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Nn(i,t,n)}return r}function Ge(e,t,n,o){if(le(e)){const i=Ct(e,t,n,o);return i&&pr(i)&&i.catch(s=>{Nn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Ge(e[i],t,n,o));return r}function Nn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,a=n;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Ct(l,null,10,[e,s,a]);return}}Nl(e,n,r,o)}function Nl(e,t,n,o=!0){console.error(e)}let an=!1,Po=!1;const je=[];let ct=0;const Qt=[];let ht=null,zt=0;const Hr=Promise.resolve();let Oo=null;function gt(e){const t=Oo||Hr;return e?t.then(this?e.bind(this):e):t}function Fl(e){let t=ct+1,n=je.length;for(;t<n;){const o=t+n>>>1;cn(je[o])<e?t=o+1:n=o}return t}function Mo(e){(!je.length||!je.includes(e,an&&e.allowRecurse?ct+1:ct))&&(e.id==null?je.push(e):je.splice(Fl(e.id),0,e),Wr())}function Wr(){!an&&!Po&&(Po=!0,Oo=Hr.then(Yr))}function Vl(e){const t=je.indexOf(e);t>ct&&je.splice(t,1)}function Hl(e){G(e)?Qt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?zt+1:zt))&&Qt.push(e),Wr()}function Ur(e,t=an?ct+1:0){for(;t<je.length;t++){const n=je[t];n&&n.pre&&(je.splice(t,1),t--,n())}}function Kr(e){if(Qt.length){const t=[...new Set(Qt)];if(Qt.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,Wl=(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 Yr(e){Po=!1,an=!0,je.sort(Wl);const t=it;try{for(ct=0;ct<je.length;ct++){const n=je[ct];n&&n.active!==!1&&Ct(n,null,14)}}finally{ct=0,je.length=0,Kr(),an=!1,Oo=null,(je.length||Qt.length)&&Yr()}}function Ul(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||fe;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:p}=o[u]||fe;p&&(r=n.map(m=>Te(m)?m.trim():m)),h&&(r=n.map(mo))}let a,l=o[a=go(t)]||o[a=go(Ue(t))];!l&&i&&(l=o[a=go(Qe(t))]),l&&Ge(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,Ge(c,e,6,r)}}function Xr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},a=!1;if(!le(e)){const l=c=>{const u=Xr(c,t,!0);u&&(a=!0,Se(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ye(e)&&o.set(e,null),null):(G(i)?i.forEach(l=>s[l]=null):Se(s,i),ye(e)&&o.set(e,s),s)}function Fn(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Qe(t))||de(e,t))}let Ae=null,qr=null;function Vn(e){const t=Ae;return Ae=e,qr=e&&e.type.__scopeId||null,t}function ae(e,t=Ae,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Si(-1);const i=Vn(t);let s;try{s=e(...r)}finally{Vn(i),o._d&&Si(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function up(){}function Lo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:p,setupState:m,ctx:S,inheritAttrs:x}=e;let j,V;const T=Vn(e);try{if(n.shapeFlag&4){const g=r||o;j=ft(u.call(g,g,h,i,m,p,S)),V=l}else{const g=t;j=ft(g.length>1?g(i,{attrs:l,slots:a,emit:c}):g(i,null)),V=t.props?l:Kl(l)}}catch(g){hn.length=0,Nn(g,e,1),j=Z(nt)}let W=j;if(V&&x!==!1){const g=Object.keys(V),{shapeFlag:P}=W;g.length&&P&7&&(s&&g.some(uo)&&(V=Yl(V,s)),W=St(W,V))}return n.dirs&&(W=St(W),W.dirs=W.dirs?W.dirs.concat(n.dirs):n.dirs),n.transition&&(W.transition=n.transition),j=W,Vn(T),j}const Kl=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},Yl=(e,t)=>{const n={};for(const o in e)(!uo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Xl(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Zr(o,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const p=u[h];if(s[p]!==o[p]&&!Fn(c,p))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===s?!1:o?s?Zr(o,s,c):!0:!!s;return!1}function Zr(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]&&!Fn(n,i))return!0}return!1}function ql({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Zl=e=>e.__isSuspense;function Ql(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):Hl(e)}const Hn={};function he(e,t,n){return Qr(e,t,n)}function Qr(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=fe){var a;const l=br()===((a=Le)==null?void 0:a.scope)?Le:null;let c,u=!1,h=!1;if($e(e)?(c=()=>e.value,u=Rn(e)):qt(e)?(c=()=>e,o=!0):G(e)?(h=!0,u=e.some(g=>qt(g)||Rn(g)),c=()=>e.map(g=>{if($e(g))return g.value;if(qt(g))return At(g);if(le(g))return Ct(g,l,2)})):le(e)?t?c=()=>Ct(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return p&&p(),Ge(e,l,3,[m])}:c=it,t&&o){const g=c;c=()=>At(g())}let p,m=g=>{p=T.onStop=()=>{Ct(g,l,4)}},S;if(mn)if(m=it,t?n&&Ge(t,l,3,[c(),h?[]:void 0,m]):c(),r==="sync"){const g=Ha();S=g.__watcherHandles||(g.__watcherHandles=[])}else return it;let x=h?new Array(e.length).fill(Hn):Hn;const j=()=>{if(T.active)if(t){const g=T.run();(o||u||(h?g.some((P,$)=>on(P,x[$])):on(g,x)))&&(p&&p(),Ge(t,l,3,[g,x===Hn?void 0:h&&x[0]===Hn?[]:x,m]),x=g)}else T.run()};j.allowRecurse=!!t;let V;r==="sync"?V=j:r==="post"?V=()=>Ve(j,l&&l.suspense):(j.pre=!0,l&&(j.id=l.uid),V=()=>Mo(j));const T=new ko(c,V);t?n?j():x=T.run():r==="post"?Ve(T.run.bind(T),l&&l.suspense):T.run();const W=()=>{T.stop(),l&&l.scope&&fo(l.scope.effects,T)};return S&&S.push(W),W}function Jl(e,t,n){const o=this.proxy,r=Te(e)?e.includes(".")?Jr(o,e):()=>o[e]:e.bind(o,o);let i;le(t)?i=t:(i=t.handler,n=t);const s=Le;Gt(this);const a=Qr(r,i.bind(o),n);return s?Gt(s):Nt(),a}function Jr(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function At(e,t){if(!ye(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))At(e.value,t);else if(G(e))for(let n=0;n<e.length;n++)At(e[n],t);else if(dr(e)||Kt(e))e.forEach(n=>{At(n,t)});else if(gr(e))for(const n in e)At(e[n],t);return e}function mt(e,t){const n=Ae;if(n===null)return e;const o=to(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,a,l,c=fe]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&&At(a),r.push({dir:s,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function jt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const a=r[s];i&&(a.oldValue=i[s].value);let l=a.dir[o];l&&(Yt(),Ge(l,n,8,[e.el,a,e,t]),Xt())}}function Gl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Kn(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],Gr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},ea={name:"BaseTransition",props:Gr,setup(e,{slots:t}){const n=$i(),o=Gl();let r;return()=>{const i=t.default&&ni(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const x of i)if(x.type!==nt){s=x;break}}const a=pe(e),{mode:l}=a;if(o.isLeaving)return Ao(s);const c=ti(s);if(!c)return Ao(s);const u=zo(c,a,o,n);jo(c,u);const h=n.subTree,p=h&&ti(h);let m=!1;const{getTransitionKey:S}=c.type;if(S){const x=S();r===void 0?r=x:x!==r&&(r=x,m=!0)}if(p&&p.type!==nt&&(!Rt(c,p)||m)){const x=zo(p,a,o,n);if(jo(p,x),l==="out-in")return o.isLeaving=!0,x.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Ao(s);l==="in-out"&&c.type!==nt&&(x.delayLeave=(j,V,T)=>{const W=ei(o,p);W[String(p.key)]=p,j._leaveCb=()=>{V(),j._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=T})}return s}}};function ei(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function zo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:p,onAfterLeave:m,onLeaveCancelled:S,onBeforeAppear:x,onAppear:j,onAfterAppear:V,onAppearCancelled:T}=t,W=String(e.key),g=ei(n,e),P=(k,D)=>{k&&Ge(k,o,9,D)},$=(k,D)=>{const ee=D[1];P(k,D),G(k)?k.every(ce=>ce.length<=1)&&ee():k.length<=1&&ee()},A={mode:i,persisted:s,beforeEnter(k){let D=a;if(!n.isMounted)if(r)D=x||a;else return;k._leaveCb&&k._leaveCb(!0);const ee=g[W];ee&&Rt(e,ee)&&ee.el._leaveCb&&ee.el._leaveCb(),P(D,[k])},enter(k){let D=l,ee=c,ce=u;if(!n.isMounted)if(r)D=j||l,ee=V||c,ce=T||u;else return;let y=!1;const _=k._enterCb=U=>{y||(y=!0,U?P(ce,[k]):P(ee,[k]),A.delayedLeave&&A.delayedLeave(),k._enterCb=void 0)};D?$(D,[k,_]):_()},leave(k,D){const ee=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return D();P(h,[k]);let ce=!1;const y=k._leaveCb=_=>{ce||(ce=!0,D(),_?P(S,[k]):P(m,[k]),k._leaveCb=void 0,g[ee]===e&&delete g[ee])};g[ee]=e,p?$(p,[k,y]):y()},clone(k){return zo(k,t,n,o)}};return A}function Ao(e){if(Wn(e))return e=St(e),e.children=null,e}function ti(e){return Wn(e)?e.children?e.children[0]:void 0:e}function jo(e,t){e.shapeFlag&6&&e.component?jo(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 ni(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ie?(s.patchFlag&128&&r++,o=o.concat(ni(s.children,t,a))):(t||s.type!==nt)&&o.push(a!=null?St(s,{key:a}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function Ee(e,t){return le(e)?(()=>Se({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Wn=e=>e.type.__isKeepAlive;function ta(e,t){oi(e,"a",t)}function na(e,t){oi(e,"da",t)}function oi(e,t,n=Le){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Un(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Wn(r.parent.vnode)&&oa(o,t,n,r),r=r.parent}}function oa(e,t,n,o){const r=Un(t,e,o,!0);ut(()=>{fo(o[t],r)},n)}function Un(e,t,n=Le,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Yt(),Gt(n);const a=Ge(t,n,e,s);return Nt(),Xt(),a});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Le)=>(!mn||e==="sp")&&Un(e,(...o)=>t(...o),n),ra=vt("bm"),tt=vt("m"),ia=vt("bu"),sa=vt("u"),Kn=vt("bum"),ut=vt("um"),la=vt("sp"),aa=vt("rtg"),ca=vt("rtc");function ua(e,t=Le){Un("ec",e,t)}const ri="components",ii=Symbol.for("v-ndc");function fa(e){return Te(e)?da(ri,e,!1)||e:e||ii}function da(e,t,n=!0,o=!1){const r=Ae||Le;if(r){const i=r.type;if(e===ri){const a=Na(i,!1);if(a&&(a===t||a===Ue(t)||a===Pn(Ue(t))))return i}const s=si(r[e]||i[e],t)||si(r.appContext[e],t);return!s&&o?i:s}}function si(e,t){return e&&(e[t]||e[Ue(t)]||e[Pn(Ue(t))])}function fn(e,t,n,o){let r;const i=n&&n[o];if(G(e)||Te(e)){r=new Array(e.length);for(let s=0,a=e.length;s<a;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(ye(e))if(e[Symbol.iterator])r=Array.from(e,(s,a)=>t(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);r=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const c=s[a];r[a]=t(e[c],c,a,i&&i[a])}}else r=[];return n&&(n[o]=r),r}function li(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(G(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(Ae.isCE||Ae.parent&&un(Ae.parent)&&Ae.parent.isCE)return t!=="default"&&(n.name=t),Z("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),L();const s=i&&ai(i(n)),a=ke(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function ai(e){return e.some(t=>Qn(t)?!(t.type===nt||t.type===Ie&&!ai(t.children)):!0)?e:null}const Bo=e=>e?Pi(e)?to(e)||e.proxy:Bo(e.parent):null,dn=Se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Mo(e.update)),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>Jl.bind(e)}),Do=(e,t)=>e!==fe&&!e.__isScriptSetup&&de(e,t),pa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const m=s[t];if(m!==void 0)switch(m){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Do(o,t))return s[t]=1,o[t];if(r!==fe&&de(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&de(c,t))return s[t]=3,i[t];if(n!==fe&&de(n,t))return s[t]=4,n[t];Ro&&(s[t]=0)}}const u=dn[t];let h,p;if(u)return t==="$attrs"&&Fe(e,"get",t),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==fe&&de(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,de(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Do(r,t)?(r[t]=n,!0):o!==fe&&de(o,t)?(o[t]=n,!0):de(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 a;return!!n[s]||e!==fe&&de(e,s)||Do(t,s)||(a=i[0])&&de(a,s)||de(o,s)||de(dn,s)||de(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ci(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function ha(e){const t=No(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&ui(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:p,beforeUpdate:m,updated:S,activated:x,deactivated:j,beforeDestroy:V,beforeUnmount:T,destroyed:W,unmounted:g,render:P,renderTracked:$,renderTriggered:A,errorCaptured:k,serverPrefetch:D,expose:ee,inheritAttrs:ce,components:y,directives:_,filters:U}=t;if(c&&ga(c,o,null),s)for(const ne in s){const ie=s[ne];le(ie)&&(o[ne]=ie.bind(n))}if(r){const ne=r.call(n,n);ye(ne)&&(e.data=sn(ne))}if(Ro=!0,i)for(const ne in i){const ie=i[ne],B=le(ie)?ie.bind(n,n):le(ie.get)?ie.get.bind(n,n):it,H=!le(ie)&&le(ie.set)?ie.set.bind(n):it,X=se({get:B,set:H});Object.defineProperty(o,ne,{enumerable:!0,configurable:!0,get:()=>X.value,set:te=>X.value=te})}if(a)for(const ne in a)fi(a[ne],o,n,ne);if(l){const ne=le(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ie=>{qn(ie,ne[ie])})}u&&ui(u,e,"c");function ue(ne,ie){G(ie)?ie.forEach(B=>ne(B.bind(n))):ie&&ne(ie.bind(n))}if(ue(ra,h),ue(tt,p),ue(ia,m),ue(sa,S),ue(ta,x),ue(na,j),ue(ua,k),ue(ca,$),ue(aa,A),ue(Kn,T),ue(ut,g),ue(la,D),G(ee))if(ee.length){const ne=e.exposed||(e.exposed={});ee.forEach(ie=>{Object.defineProperty(ne,ie,{get:()=>n[ie],set:B=>n[ie]=B})})}else e.exposed||(e.exposed={});P&&e.render===it&&(e.render=P),ce!=null&&(e.inheritAttrs=ce),y&&(e.components=y),_&&(e.directives=_)}function ga(e,t,n=it){G(e)&&(e=Fo(e));for(const o in e){const r=e[o];let i;ye(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 ui(e,t,n){Ge(G(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fi(e,t,n,o){const r=o.includes(".")?Jr(n,o):()=>n[o];if(Te(e)){const i=t[e];le(i)&&he(r,i)}else if(le(e))he(r,e.bind(n));else if(ye(e))if(G(e))e.forEach(i=>fi(i,t,n,o));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&he(r,i,e)}}function No(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Yn(l,c,s,!0)),Yn(l,t,s)),ye(t)&&i.set(t,l),l}function Yn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Yn(e,i,n,!0),r&&r.forEach(s=>Yn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=ma[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const ma={data:di,props:pi,emits:pi,methods:pn,computed:pn,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:pn,directives:pn,watch:_a,provide:di,inject:va};function di(e,t){return t?e?function(){return Se(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function va(e,t){return pn(Fo(e),Fo(t))}function Fo(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Re(e,t){return e?[...new Set([].concat(e,t))]:t}function pn(e,t){return e?Se(Object.create(null),e,t):t}function pi(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Se(Object.create(null),ci(e),ci(t??{})):t}function _a(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=Re(e[o],t[o]);return n}function hi(){return{app:null,config:{isNativeTag:Xs,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 ba=0;function ya(e,t){return function(o,r=null){le(o)||(o=Se({},o)),r!=null&&!ye(r)&&(r=null);const i=hi(),s=new Set;let a=!1;const l=i.app={_uid:ba++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:Wa,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(l,...u)):le(c)&&(s.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,h){if(!a){const p=Z(o,r);return p.appContext=i,u&&t?t(p,c):e(p,c,h),a=!0,l._container=c,c.__vue_app__=l,to(p.component)||p.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l},runWithContext(c){Xn=l;try{return c()}finally{Xn=null}}};return l}}let Xn=null;function qn(e,t){if(Le){let n=Le.provides;const o=Le.parent&&Le.parent.provides;o===n&&(n=Le.provides=Object.create(o)),n[e]=t}}function Bt(e,t,n=!1){const o=Le||Ae;if(o||Xn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Xn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&le(t)?t.call(o&&o.proxy):t}}function wa(e,t,n,o=!1){const r={},i={};Mn(i,Jn,1),e.propsDefaults=Object.create(null),gi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:zl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xa(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=pe(r),[l]=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 p=u[h];if(Fn(e.emitsOptions,p))continue;const m=t[p];if(l)if(de(i,p))m!==i[p]&&(i[p]=m,c=!0);else{const S=Ue(p);r[S]=Vo(l,a,S,m,e,!1)}else m!==i[p]&&(i[p]=m,c=!0)}}}else{gi(e,t,r,i)&&(c=!0);let u;for(const h in a)(!t||!de(t,h)&&((u=Qe(h))===h||!de(t,u)))&&(l?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Vo(l,a,h,void 0,e,!0)):delete r[h]);if(i!==a)for(const h in i)(!t||!de(t,h))&&(delete i[h],c=!0)}c&&pt(e,"set","$attrs")}function gi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if($n(l))continue;const c=t[l];let u;r&&de(r,u=Ue(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:Fn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,s=!0)}if(i){const l=pe(n),c=a||fe;for(let u=0;u<i.length;u++){const h=i[u];n[h]=Vo(r,l,h,c[h],e,!de(c,h))}}return s}function Vo(e,t,n,o,r,i){const s=e[n];if(s!=null){const a=de(s,"default");if(a&&o===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&le(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(Gt(r),o=c[n]=l.call(null,t),Nt())}else o=l}s[0]&&(i&&!a?o=!1:s[1]&&(o===""||o===Qe(n))&&(o=!0))}return o}function mi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},a=[];let l=!1;if(!le(e)){const u=h=>{l=!0;const[p,m]=mi(h,t,!0);Se(s,p),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ye(e)&&o.set(e,Ze),Ze;if(G(i))for(let u=0;u<i.length;u++){const h=Ue(i[u]);vi(h)&&(s[h]=fe)}else if(i)for(const u in i){const h=Ue(u);if(vi(h)){const p=i[u],m=s[h]=G(p)||le(p)?{type:p}:Se({},p);if(m){const S=yi(Boolean,m.type),x=yi(String,m.type);m[0]=S>-1,m[1]=x<0||S<x,(S>-1||de(m,"default"))&&a.push(h)}}}const c=[s,a];return ye(e)&&o.set(e,c),c}function vi(e){return e[0]!=="$"}function _i(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bi(e,t){return _i(e)===_i(t)}function yi(e,t){return G(t)?t.findIndex(n=>bi(n,e)):le(t)&&bi(t,e)?0:-1}const wi=e=>e[0]==="_"||e==="$stable",Ho=e=>G(e)?e.map(ft):[ft(e)],ka=(e,t,n)=>{if(t._n)return t;const o=ae((...r)=>Ho(t(...r)),n);return o._c=!1,o},xi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(wi(r))continue;const i=e[r];if(le(i))t[r]=ka(r,i,o);else if(i!=null){const s=Ho(i);t[r]=()=>s}}},ki=(e,t)=>{const n=Ho(t);e.slots.default=()=>n},Ca=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=pe(t),Mn(t,"_",n)):xi(t,e.slots={})}else e.slots={},t&&ki(e,t);Mn(e.slots,Jn,1)},Sa=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=fe;if(o.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Se(r,t),!n&&a===1&&delete r._):(i=!t.$stable,xi(t,r)),s=t}else t&&(ki(e,t),s={default:1});if(i)for(const a in r)!wi(a)&&!(a in s)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(G(e)){e.forEach((p,m)=>Wo(p,t&&(G(t)?t[m]:t),n,o,r));return}if(un(o)&&!r)return;const i=o.shapeFlag&4?to(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===fe?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(Te(c)?(u[c]=null,de(h,c)&&(h[c]=null)):$e(c)&&(c.value=null)),le(l))Ct(l,a,12,[s,u]);else{const p=Te(l),m=$e(l);if(p||m){const S=()=>{if(e.f){const x=p?de(h,l)?h[l]:u[l]:l.value;r?G(x)&&fo(x,i):G(x)?x.includes(i)||x.push(i):p?(u[l]=[i],de(h,l)&&(h[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else p?(u[l]=s,de(h,l)&&(h[l]=s)):m&&(l.value=s,e.k&&(u[e.k]=s))};s?(S.id=-1,Ve(S,n)):S()}}}const Ve=Ql;function Ia(e){return Ta(e)}function Ta(e,t){const n=_o();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:p,setScopeId:m=it,insertStaticContent:S}=e,x=(f,d,b,I=null,C=null,M=null,R=!1,O=null,z=!!d.dynamicChildren)=>{if(f===d)return;f&&!Rt(f,d)&&(I=xe(f),te(f,C,M,!0),f=null),d.patchFlag===-2&&(z=!1,d.dynamicChildren=null);const{type:E,ref:v,shapeFlag:w}=d;switch(E){case Zn:j(f,d,b,I);break;case nt:V(f,d,b,I);break;case Uo:f==null&&T(d,b,I,R);break;case Ie:y(f,d,b,I,C,M,R,O,z);break;default:w&1?P(f,d,b,I,C,M,R,O,z):w&6?_(f,d,b,I,C,M,R,O,z):(w&64||w&128)&&E.process(f,d,b,I,C,M,R,O,z,Be)}v!=null&&C&&Wo(v,f&&f.ref,M,d||f,!d)},j=(f,d,b,I)=>{if(f==null)o(d.el=a(d.children),b,I);else{const C=d.el=f.el;d.children!==f.children&&c(C,d.children)}},V=(f,d,b,I)=>{f==null?o(d.el=l(d.children||""),b,I):d.el=f.el},T=(f,d,b,I)=>{[f.el,f.anchor]=S(f.children,d,b,I,f.el,f.anchor)},W=({el:f,anchor:d},b,I)=>{let C;for(;f&&f!==d;)C=p(f),o(f,b,I),f=C;o(d,b,I)},g=({el:f,anchor:d})=>{let b;for(;f&&f!==d;)b=p(f),r(f),f=b;r(d)},P=(f,d,b,I,C,M,R,O,z)=>{R=R||d.type==="svg",f==null?$(d,b,I,C,M,R,O,z):D(f,d,C,M,R,O,z)},$=(f,d,b,I,C,M,R,O)=>{let z,E;const{type:v,props:w,shapeFlag:F,transition:Q,dirs:re}=f;if(z=f.el=s(f.type,M,w&&w.is,w),F&8?u(z,f.children):F&16&&k(f.children,z,null,I,C,M&&v!=="foreignObject",R,O),re&&jt(f,null,I,"created"),A(z,f,f.scopeId,R,I),w){for(const me in w)me!=="value"&&!$n(me)&&i(z,me,null,w[me],M,f.children,I,C,oe);"value"in w&&i(z,"value",null,w.value),(E=w.onVnodeBeforeMount)&&dt(E,I,f)}re&&jt(f,null,I,"beforeMount");const be=(!C||C&&!C.pendingBranch)&&Q&&!Q.persisted;be&&Q.beforeEnter(z),o(z,d,b),((E=w&&w.onVnodeMounted)||be||re)&&Ve(()=>{E&&dt(E,I,f),be&&Q.enter(z),re&&jt(f,null,I,"mounted")},C)},A=(f,d,b,I,C)=>{if(b&&m(f,b),I)for(let M=0;M<I.length;M++)m(f,I[M]);if(C){let M=C.subTree;if(d===M){const R=C.vnode;A(f,R,R.scopeId,R.slotScopeIds,C.parent)}}},k=(f,d,b,I,C,M,R,O,z=0)=>{for(let E=z;E<f.length;E++){const v=f[E]=O?Tt(f[E]):ft(f[E]);x(null,v,d,b,I,C,M,R,O)}},D=(f,d,b,I,C,M,R)=>{const O=d.el=f.el;let{patchFlag:z,dynamicChildren:E,dirs:v}=d;z|=f.patchFlag&16;const w=f.props||fe,F=d.props||fe;let Q;b&&Dt(b,!1),(Q=F.onVnodeBeforeUpdate)&&dt(Q,b,d,f),v&&jt(d,f,b,"beforeUpdate"),b&&Dt(b,!0);const re=C&&d.type!=="foreignObject";if(E?ee(f.dynamicChildren,E,O,b,I,re,M):R||ie(f,d,O,null,b,I,re,M,!1),z>0){if(z&16)ce(O,d,w,F,b,I,C);else if(z&2&&w.class!==F.class&&i(O,"class",null,F.class,C),z&4&&i(O,"style",w.style,F.style,C),z&8){const be=d.dynamicProps;for(let me=0;me<be.length;me++){const Ce=be[me],qe=w[Ce],He=F[Ce];(He!==qe||Ce==="value")&&i(O,Ce,qe,He,C,f.children,b,I,oe)}}z&1&&f.children!==d.children&&u(O,d.children)}else!R&&E==null&&ce(O,d,w,F,b,I,C);((Q=F.onVnodeUpdated)||v)&&Ve(()=>{Q&&dt(Q,b,d,f),v&&jt(d,f,b,"updated")},I)},ee=(f,d,b,I,C,M,R)=>{for(let O=0;O<d.length;O++){const z=f[O],E=d[O],v=z.el&&(z.type===Ie||!Rt(z,E)||z.shapeFlag&70)?h(z.el):b;x(z,E,v,null,I,C,M,R,!0)}},ce=(f,d,b,I,C,M,R)=>{if(b!==I){if(b!==fe)for(const O in b)!$n(O)&&!(O in I)&&i(f,O,b[O],null,R,d.children,C,M,oe);for(const O in I){if($n(O))continue;const z=I[O],E=b[O];z!==E&&O!=="value"&&i(f,O,E,z,R,d.children,C,M,oe)}"value"in I&&i(f,"value",b.value,I.value)}},y=(f,d,b,I,C,M,R,O,z)=>{const E=d.el=f?f.el:a(""),v=d.anchor=f?f.anchor:a("");let{patchFlag:w,dynamicChildren:F,slotScopeIds:Q}=d;Q&&(O=O?O.concat(Q):Q),f==null?(o(E,b,I),o(v,b,I),k(d.children,b,v,C,M,R,O,z)):w>0&&w&64&&F&&f.dynamicChildren?(ee(f.dynamicChildren,F,b,C,M,R,O),(d.key!=null||C&&d===C.subTree)&&Ci(f,d,!0)):ie(f,d,b,v,C,M,R,O,z)},_=(f,d,b,I,C,M,R,O,z)=>{d.slotScopeIds=O,f==null?d.shapeFlag&512?C.ctx.activate(d,b,I,R,z):U(d,b,I,C,M,R,z):N(f,d,z)},U=(f,d,b,I,C,M,R)=>{const O=f.component=Aa(f,I,C);if(Wn(f)&&(O.ctx.renderer=Be),ja(O),O.asyncDep){if(C&&C.registerDep(O,ue),!f.el){const z=O.subTree=Z(nt);V(null,z,d,b)}return}ue(O,f,d,b,C,M,R)},N=(f,d,b)=>{const I=d.component=f.component;if(Xl(f,d,b))if(I.asyncDep&&!I.asyncResolved){ne(I,d,b);return}else I.next=d,Vl(I.update),I.update();else d.el=f.el,I.vnode=d},ue=(f,d,b,I,C,M,R)=>{const O=()=>{if(f.isMounted){let{next:v,bu:w,u:F,parent:Q,vnode:re}=f,be=v,me;Dt(f,!1),v?(v.el=re.el,ne(f,v,R)):v=re,w&&On(w),(me=v.props&&v.props.onVnodeBeforeUpdate)&&dt(me,Q,v,re),Dt(f,!0);const Ce=Lo(f),qe=f.subTree;f.subTree=Ce,x(qe,Ce,h(qe.el),xe(qe),f,C,M),v.el=Ce.el,be===null&&ql(f,Ce.el),F&&Ve(F,C),(me=v.props&&v.props.onVnodeUpdated)&&Ve(()=>dt(me,Q,v,re),C)}else{let v;const{el:w,props:F}=d,{bm:Q,m:re,parent:be}=f,me=un(d);if(Dt(f,!1),Q&&On(Q),!me&&(v=F&&F.onVnodeBeforeMount)&&dt(v,be,d),Dt(f,!0),w&&Sn){const Ce=()=>{f.subTree=Lo(f),Sn(w,f.subTree,f,C,null)};me?d.type.__asyncLoader().then(()=>!f.isUnmounted&&Ce()):Ce()}else{const Ce=f.subTree=Lo(f);x(null,Ce,b,I,f,C,M),d.el=Ce.el}if(re&&Ve(re,C),!me&&(v=F&&F.onVnodeMounted)){const Ce=d;Ve(()=>dt(v,be,Ce),C)}(d.shapeFlag&256||be&&un(be.vnode)&&be.vnode.shapeFlag&256)&&f.a&&Ve(f.a,C),f.isMounted=!0,d=b=I=null}},z=f.effect=new ko(O,()=>Mo(E),f.scope),E=f.update=()=>z.run();E.id=f.uid,Dt(f,!0),E()},ne=(f,d,b)=>{d.component=f;const I=f.vnode.props;f.vnode=d,f.next=null,xa(f,d.props,I,b),Sa(f,d.children,b),Yt(),Ur(),Xt()},ie=(f,d,b,I,C,M,R,O,z=!1)=>{const E=f&&f.children,v=f?f.shapeFlag:0,w=d.children,{patchFlag:F,shapeFlag:Q}=d;if(F>0){if(F&128){H(E,w,b,I,C,M,R,O,z);return}else if(F&256){B(E,w,b,I,C,M,R,O,z);return}}Q&8?(v&16&&oe(E,C,M),w!==E&&u(b,w)):v&16?Q&16?H(E,w,b,I,C,M,R,O,z):oe(E,C,M,!0):(v&8&&u(b,""),Q&16&&k(w,b,I,C,M,R,O,z))},B=(f,d,b,I,C,M,R,O,z)=>{f=f||Ze,d=d||Ze;const E=f.length,v=d.length,w=Math.min(E,v);let F;for(F=0;F<w;F++){const Q=d[F]=z?Tt(d[F]):ft(d[F]);x(f[F],Q,b,null,C,M,R,O,z)}E>v?oe(f,C,M,!0,!1,w):k(d,b,I,C,M,R,O,z,w)},H=(f,d,b,I,C,M,R,O,z)=>{let E=0;const v=d.length;let w=f.length-1,F=v-1;for(;E<=w&&E<=F;){const Q=f[E],re=d[E]=z?Tt(d[E]):ft(d[E]);if(Rt(Q,re))x(Q,re,b,null,C,M,R,O,z);else break;E++}for(;E<=w&&E<=F;){const Q=f[w],re=d[F]=z?Tt(d[F]):ft(d[F]);if(Rt(Q,re))x(Q,re,b,null,C,M,R,O,z);else break;w--,F--}if(E>w){if(E<=F){const Q=F+1,re=Q<v?d[Q].el:I;for(;E<=F;)x(null,d[E]=z?Tt(d[E]):ft(d[E]),b,re,C,M,R,O,z),E++}}else if(E>F)for(;E<=w;)te(f[E],C,M,!0),E++;else{const Q=E,re=E,be=new Map;for(E=re;E<=F;E++){const Ne=d[E]=z?Tt(d[E]):ft(d[E]);Ne.key!=null&&be.set(Ne.key,E)}let me,Ce=0;const qe=F-re+1;let He=!1,lo=0;const Ut=new Array(qe);for(E=0;E<qe;E++)Ut[E]=0;for(E=Q;E<=w;E++){const Ne=f[E];if(Ce>=qe){te(Ne,C,M,!0);continue}let rt;if(Ne.key!=null)rt=be.get(Ne.key);else for(me=re;me<=F;me++)if(Ut[me-re]===0&&Rt(Ne,d[me])){rt=me;break}rt===void 0?te(Ne,C,M,!0):(Ut[rt-re]=E+1,rt>=lo?lo=rt:He=!0,x(Ne,d[rt],b,null,C,M,R,O,z),Ce++)}const ao=He?$a(Ut):Ze;for(me=ao.length-1,E=qe-1;E>=0;E--){const Ne=re+E,rt=d[Ne],co=Ne+1<v?d[Ne+1].el:I;Ut[E]===0?x(null,rt,b,co,C,M,R,O,z):He&&(me<0||E!==ao[me]?X(rt,b,co,2):me--)}}},X=(f,d,b,I,C=null)=>{const{el:M,type:R,transition:O,children:z,shapeFlag:E}=f;if(E&6){X(f.component.subTree,d,b,I);return}if(E&128){f.suspense.move(d,b,I);return}if(E&64){R.move(f,d,b,Be);return}if(R===Ie){o(M,d,b);for(let w=0;w<z.length;w++)X(z[w],d,b,I);o(f.anchor,d,b);return}if(R===Uo){W(f,d,b);return}if(I!==2&&E&1&&O)if(I===0)O.beforeEnter(M),o(M,d,b),Ve(()=>O.enter(M),C);else{const{leave:w,delayLeave:F,afterLeave:Q}=O,re=()=>o(M,d,b),be=()=>{w(M,()=>{re(),Q&&Q()})};F?F(M,re,be):be()}else o(M,d,b)},te=(f,d,b,I=!1,C=!1)=>{const{type:M,props:R,ref:O,children:z,dynamicChildren:E,shapeFlag:v,patchFlag:w,dirs:F}=f;if(O!=null&&Wo(O,null,b,f,!0),v&256){d.ctx.deactivate(f);return}const Q=v&1&&F,re=!un(f);let be;if(re&&(be=R&&R.onVnodeBeforeUnmount)&&dt(be,d,f),v&6)ge(f.component,b,I);else{if(v&128){f.suspense.unmount(b,I);return}Q&&jt(f,null,d,"beforeUnmount"),v&64?f.type.remove(f,d,b,C,Be,I):E&&(M!==Ie||w>0&&w&64)?oe(E,d,b,!1,!0):(M===Ie&&w&384||!C&&v&16)&&oe(z,d,b),I&&_e(f)}(re&&(be=R&&R.onVnodeUnmounted)||Q)&&Ve(()=>{be&&dt(be,d,f),Q&&jt(f,null,d,"unmounted")},b)},_e=f=>{const{type:d,el:b,anchor:I,transition:C}=f;if(d===Ie){ve(b,I);return}if(d===Uo){g(f);return}const M=()=>{r(b),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(f.shapeFlag&1&&C&&!C.persisted){const{leave:R,delayLeave:O}=C,z=()=>R(b,M);O?O(f.el,M,z):z()}else M()},ve=(f,d)=>{let b;for(;f!==d;)b=p(f),r(f),f=b;r(d)},ge=(f,d,b)=>{const{bum:I,scope:C,update:M,subTree:R,um:O}=f;I&&On(I),C.stop(),M&&(M.active=!1,te(R,f,d,b)),O&&Ve(O,d),Ve(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},oe=(f,d,b,I=!1,C=!1,M=0)=>{for(let R=M;R<f.length;R++)te(f[R],d,b,I,C)},xe=f=>f.shapeFlag&6?xe(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),ze=(f,d,b)=>{f==null?d._vnode&&te(d._vnode,null,null,!0):x(d._vnode||null,f,d,null,null,null,b),Ur(),Kr(),d._vnode=f},Be={p:x,um:te,m:X,r:_e,mt:U,mc:k,pc:ie,pbc:ee,n:xe,o:e};let Mt,Sn;return t&&([Mt,Sn]=t(Be)),{render:ze,hydrate:Mt,createApp:ya(ze,Mt)}}function Dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ci(e,t,n=!1){const o=e.children,r=t.children;if(G(o)&&G(r))for(let i=0;i<o.length;i++){const s=o[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=Tt(r[i]),a.el=s.el),n||Ci(s,a)),a.type===Zn&&(a.el=s.el)}}function $a(e){const t=e.slice(),n=[0];let o,r,i,s,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(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<c?i=a+1:s=a;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 Ea=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Zn=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hn=[];let lt=null;function L(e=!1){hn.push(lt=e?null:[])}function Pa(){hn.pop(),lt=hn[hn.length-1]||null}let gn=1;function Si(e){gn+=e}function Ii(e){return e.dynamicChildren=gn>0?lt||Ze:null,Pa(),gn>0&<&<.push(e),e}function Y(e,t,n,o,r,i){return Ii(K(e,t,n,o,r,i,!0))}function ke(e,t,n,o,r){return Ii(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 Jn="__vInternal",Ti=({key:e})=>e??null,Gn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Te(e)||$e(e)||le(e)?{i:Ae,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,o=0,r=null,i=e===Ie?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ti(t),ref:t&&Gn(t),scopeId:qr,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:Ae};return a?(Ko(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Te(n)?8:16),gn>0&&!s&<&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&<.push(l),l}const Z=Oa;function Oa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===ii)&&(e=nt),Qn(e)){const a=St(e,t,!0);return n&&Ko(a,n),gn>0&&!i&<&&(a.shapeFlag&6?lt[lt.indexOf(e)]=a:lt.push(a)),a.patchFlag|=-2,a}if(Fa(e)&&(e=e.__vccOpts),t){t=Ma(t);let{class:a,style:l}=t;a&&!Te(a)&&(t.class=Oe(a)),ye(l)&&(Dr(l)&&!G(l)&&(l=Se({},l)),t.style=De(l))}const s=Te(e)?1:Zl(e)?128:Ea(e)?64:ye(e)?4:le(e)?2:0;return K(e,t,n,o,r,s,i,!0)}function Ma(e){return e?Dr(e)||Jn in e?Se({},e):e:null}function St(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?eo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ti(a),ref:t&&t.ref?n&&r?G(r)?r.concat(Gn(t)):[r,Gn(t)]:Gn(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!==Ie?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(Zn,null,e,t)}function Me(e="",t=!1){return t?(L(),ke(nt,null,e)):Z(nt,null,e)}function ft(e){return e==null||typeof e=="boolean"?Z(nt):G(e)?Z(Ie,null,e.slice()):typeof e=="object"?Tt(e):Z(Zn,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Jn in t)?t._ctx=Ae:r===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Ae},n=32):(t=String(t),o&64?(n=16,t=[It(t)]):n=8);e.children=t,e.shapeFlag|=n}function eo(...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=De([t.style,o.style]);else if(In(r)){const i=t[r],s=o[r];s&&i!==s&&!(G(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function dt(e,t,n,o=null){Ge(e,t,7,[n,o])}const La=hi();let za=0;function Aa(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||La,i={uid:za++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new il(!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:mi(o,r),emitsOptions:Xr(o,r),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:o.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,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=Ul.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const $i=()=>Le||Ae;let Yo,Jt,Ei="__VUE_INSTANCE_SETTERS__";(Jt=_o()[Ei])||(Jt=_o()[Ei]=[]),Jt.push(e=>Le=e),Yo=e=>{Jt.length>1?Jt.forEach(t=>t(e)):Jt[0](e)};const Gt=e=>{Yo(e),e.scope.on()},Nt=()=>{Le&&Le.scope.off(),Yo(null)};function Pi(e){return e.vnode.shapeFlag&4}let mn=!1;function ja(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=Pi(e);wa(e,n,r,t),Ca(e,o);const i=r?Ba(e,t):void 0;return mn=!1,i}function Ba(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Rr(new Proxy(e.ctx,pa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ra(e):null;Gt(e),Yt();const i=Ct(o,e,0,[e.props,r]);if(Xt(),Nt(),pr(i)){if(i.then(Nt,Nt),t)return i.then(s=>{Oi(e,s,t)}).catch(s=>{Nn(s,e,0)});e.asyncDep=i}else Oi(e,i,t)}else Li(e,t)}function Oi(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=Vr(t)),Li(e,n)}let Mi;function Li(e,t,n){const o=e.type;if(!e.render){if(!t&&Mi&&!o.render){const r=o.template||No(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=Se(Se({isCustomElement:i,delimiters:a},s),l);o.render=Mi(r,c)}}e.render=o.render||it}Gt(e),Yt(),ha(e),Xt(),Nt()}function Da(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Fe(e,"get","$attrs"),t[n]}}))}function Ra(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Da(e)},slots:e.slots,emit:e.emit,expose:t}}function to(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vr(Rr(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 Na(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Fa(e){return le(e)&&"__vccOpts"in e}const se=(e,t)=>Rl(e,t,mn);function zi(e,t,n){const o=arguments.length;return o===2?ye(t)&&!G(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 Va=Symbol.for("v-scx"),Ha=()=>Bt(Va),Wa="3.3.4",Ua="http://www.w3.org/2000/svg",Ft=typeof document<"u"?document:null,Ai=Ft&&Ft.createElement("template"),Ka={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(Ua,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{Ai.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ai.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ya(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 Xa(e,t,n){const o=e.style,r=Te(n);if(n&&!r){if(t&&!Te(t))for(const i in t)n[i]==null&&Xo(o,i,"");for(const i in n)Xo(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 ji=/\s*!important$/;function Xo(e,t,n){if(G(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=qa(e,t);ji.test(n)?e.setProperty(Qe(o),n.replace(ji,""),"important"):e[o]=n}}const Bi=["Webkit","Moz","ms"],qo={};function qa(e,t){const n=qo[t];if(n)return n;let o=Ue(t);if(o!=="filter"&&o in e)return qo[t]=o;o=Pn(o);for(let r=0;r<Bi.length;r++){const i=Bi[r]+o;if(i in e)return qo[t]=i}return t}const Di="http://www.w3.org/1999/xlink";function Za(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Di,t.slice(6,t.length)):e.setAttributeNS(Di,t,n);else{const i=rl(t);n==null||i&&!vr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Qa(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),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=vr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function en(e,t,n,o){e.addEventListener(t,n,o)}function Ja(e,t,n,o){e.removeEventListener(t,n,o)}function Ga(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[a,l]=ec(t);if(o){const c=i[t]=oc(o,r);en(e,a,c,l)}else s&&(Ja(e,a,s,l),i[t]=void 0)}}const Ri=/(?:Once|Passive|Capture)$/;function ec(e){let t;if(Ri.test(e)){t={};let o;for(;o=e.match(Ri);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Qe(e.slice(2)),t]}let Zo=0;const tc=Promise.resolve(),nc=()=>Zo||(tc.then(()=>Zo=0),Zo=Date.now());function oc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ge(rc(o,n.value),t,5,[o])};return n.value=e,n.attached=nc(),n}function rc(e,t){if(G(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 Ni=/^on[a-z]/,ic=(e,t,n,o,r=!1,i,s,a,l)=>{t==="class"?Ya(e,o,r):t==="style"?Xa(e,n,o):In(t)?uo(t)||Ga(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sc(e,t,o,r))?Qa(e,t,o,i,s,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Za(e,t,o,r))};function sc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ni.test(t)&&le(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ni.test(t)&&Te(n)?!1:t in e}function lc(e,t){const n=Ee(e);class o extends Qo{constructor(i){super(n,i,t)}}return o.def=n,o}const ac=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends ac{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||(Ji(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 a;if(i&&!G(i))for(const l in i){const c=i[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=vo(this._props[l])),(a||(a=Object.create(null)))[Ue(l)]=!0)}this._numberProps=a,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=G(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(Ue))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ue(t);this._numberProps&&this._numberProps[o]&&(n=vo(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(Qe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Qe(t),n+""):n||this.removeAttribute(Qe(t))))}_update(){Ji(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(this._def,Se({},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),Qe(i)!==i&&o(Qe(i),s)};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 $t="transition",vn="animation",tn=(e,{slots:t})=>zi(ea,cc(e),t);tn.displayName="Transition";const Fi={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=Se({},Gr,Fi);const Vt=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vi=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function cc(e){const t={};for(const y in e)y in Fi||(t[y]=e[y]);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:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,S=uc(r),x=S&&S[0],j=S&&S[1],{onBeforeEnter:V,onEnter:T,onEnterCancelled:W,onLeave:g,onLeaveCancelled:P,onBeforeAppear:$=V,onAppear:A=T,onAppearCancelled:k=W}=t,D=(y,_,U)=>{Ht(y,_?u:a),Ht(y,_?c:s),U&&U()},ee=(y,_)=>{y._isLeaving=!1,Ht(y,h),Ht(y,m),Ht(y,p),_&&_()},ce=y=>(_,U)=>{const N=y?A:T,ue=()=>D(_,y,U);Vt(N,[_,ue]),Hi(()=>{Ht(_,y?l:i),Et(_,y?u:a),Vi(N)||Wi(_,o,x,ue)})};return Se(t,{onBeforeEnter(y){Vt(V,[y]),Et(y,i),Et(y,s)},onBeforeAppear(y){Vt($,[y]),Et(y,l),Et(y,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave(y,_){y._isLeaving=!0;const U=()=>ee(y,_);Et(y,h),pc(),Et(y,p),Hi(()=>{y._isLeaving&&(Ht(y,h),Et(y,m),Vi(g)||Wi(y,o,j,U))}),Vt(g,[y,U])},onEnterCancelled(y){D(y,!1),Vt(W,[y])},onAppearCancelled(y){D(y,!0),Vt(k,[y])},onLeaveCancelled(y){ee(y),Vt(P,[y])}})}function uc(e){if(e==null)return null;if(ye(e))return[Jo(e.enter),Jo(e.leave)];{const t=Jo(e);return[t,t]}}function Jo(e){return vo(e)}function Et(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 Hi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fc=0;function Wi(e,t,n,o){const r=e._endId=++fc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=dc(e,t);if(!s)return o();const c=s+"end";let u=0;const h=()=>{e.removeEventListener(c,p),i()},p=m=>{m.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},a+1),e.addEventListener(c,p)}function dc(e,t){const n=window.getComputedStyle(e),o=S=>(n[S]||"").split(", "),r=o(`${$t}Delay`),i=o(`${$t}Duration`),s=Ui(r,i),a=o(`${vn}Delay`),l=o(`${vn}Duration`),c=Ui(a,l);let u=null,h=0,p=0;t===$t?s>0&&(u=$t,h=s,p=i.length):t===vn?c>0&&(u=vn,h=c,p=l.length):(h=Math.max(s,c),u=h>0?s>c?$t:vn:null,p=u?u===$t?i.length:l.length:0);const m=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:h,propCount:p,hasTransform:m}}function Ui(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ki(n)+Ki(e[o])))}function Ki(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function pc(){return document.body.offsetHeight}const Yi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>On(t,n):t};function hc(e){e.target.composing=!0}function Xi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Yi(r);const i=o||r.props&&r.props.type==="number";en(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=mo(a)),e._assign(a)}),n&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",hc),en(e,"compositionend",Xi),en(e,"change",Xi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=Yi(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&mo(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},mc=["ctrl","shift","alt","meta"],vc={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)=>mc.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=vc[t[r]];if(i&&i(n,t))return}return e(n,...o)},_c={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},qi=(e,t)=>n=>{if(!("key"in n))return;const o=Qe(n.key);if(t.some(r=>r===o||_c[r]===o))return e(n)},Zi={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 bc=Se({patchProp:ic},Ka);let Qi;function yc(){return Qi||(Qi=Ia(bc))}const Ji=(...e)=>{yc().render(...e)},wc=`.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
|
-
`,we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},xc={},kc={class:"loading-indicator"};function Cc(e,t){return L(),Y("div",kc)}const Go=we(xc,[["render",Cc],["styles",[wc]]]),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"})),Ic={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Tc={class:"flex justify-between items-end"},$c={class:"inline-block children-pointer-events-auto w-1/3"},Ec={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Pc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Oc={class:"inline-block z-20 relative"},Gi=Ee({__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=Go;return L(),Y("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?(L(),Y("div",Ic,[Z(o)])):Me("",!0),Pe(t.$slots,"default"),K("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}])},[K("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:De({paddingTop:`${t.spaceTop||0}px`})},[Pe(t.$slots,"back"),Pe(t.$slots,"exit"),Pe(t.$slots,"chapter-nav")],4),K("div",Tc,[K("div",$c,[Pe(t.$slots,"page-nav")]),K("div",Ec,[Pe(t.$slots,"reset-zoom")]),K("div",Pc,[Pe(t.$slots,"entry"),K("div",Oc,[Pe(t.$slots,"settings")]),Pe(t.$slots,"full-screen"),Pe(t.$slots,"play")])]),K("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)}}}),Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Gi},Symbol.toStringTag,{value:"Module"})),Lc={},zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Ac=[K("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[K("circle",{cx:"14",cy:"14",r:"12"}),K("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function jc(e,t){return L(),Y("svg",zc,Ac)}const es=we(Lc,[["render",jc]]),Bc=Object.freeze(Object.defineProperty({__proto__:null,default:es},Symbol.toStringTag,{value:"Module"})),Dc={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Rc={class:"block w-4 h-4"},Nc={class:"w-12"},ts=Ee({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=es;return t.zoom!==1?(L(),Y("button",Dc,[K("div",Rc,[Z(o)]),K("div",Nc,Je(Math.ceil(t.zoom*100))+"%",1)])):Me("",!0)}}}),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),Vc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wc=[K("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Uc(e,t){return L(),Y("svg",Hc,Wc)}const er=we(Vc,[["render",Uc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),Yc={},Xc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},qc=[K("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),K("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Zc(e,t){return L(),Y("svg",Xc,qc)}const tr=we(Yc,[["render",Zc]]),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));function Jc({touchDevice:e}){const t=q(!1);let n=0;return qn("busy:touchDevice",e),qn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function nr(){const e=Bt("busy:touchDevice"),t=Bt("setBusyState");let n=!1;return ut(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Gc=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=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++,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=>Gc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},eu={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},no=Ee({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=nr();let r=!1;function i(){r||(r=!0,o(!0,{desktopOnly:!0}))}function s(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>mt((L(),ke(fa(l.href?"a":"button"),eo(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:i,onMouseleave:s}),{default:ae(()=>[K("div",eu,[Pe(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[J(nn),l.disabled?0:15]])}}),tu=Object.freeze(Object.defineProperty({__proto__:null,default:no},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ru=[K("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 iu(e,t){return L(),Y("svg",ou,ru)}const ns=we(nu,[["render",iu]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"}));class lu{constructor(){Ys(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function au(){const e=new lu;return ut(()=>e.dispose()),qn("keyController",e),e}function oo(e){const t=Bt("keyController");tt(()=>t.addListener(e)),ut(()=>t.removeListener(e))}const cu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},uu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},fu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},os=Ee({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;oo({onKeyDown:r});const o=nr();he(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const a=ns,l=no;return L(),Y("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:s[3]||(s[3]=()=>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:ae(()=>[n.modelValue?(L(),Y("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]=ot(()=>{},["stop"])),onWheelPassive:s[2]||(s[2]=ot(()=>{},["stop"]))},[K("div",cu,[Z(l,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:ae(()=>[Z(a)]),_:1}),K("div",uu,Je(i.name),1),Pe(i.$slots,"actions")]),K("div",fu,[Pe(i.$slots,"default")])],32)):Me("",!0)]),_:3})],2)}}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),pu=["min","max","step"],hu={class:"flex-shrink-0"},rs=we(Ee({__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,i)=>(L(),Y("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:De({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[mt(K("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,pu),[[gc,o.value]]),K("p",hu,[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
|
-
`]]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),mu={class:"flex items-center mb-8 last:mb-0"},vu={class:"flex-grow overflow-hidden"},is=Ee({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(L(),Y("div",mu,[K("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),K("div",vu,[Pe(t.$slots,"default")])]))}}),_u=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),bu=["onClick","onKeyup"],ss=Ee({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=q(null),r=q({width:"",left:""});tt(()=>{let s=!1;he(()=>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:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){t("update:modelValue",s)}return(s,a)=>(L(),Y("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:{}},[K("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:De(r.value)},null,4),(L(!0),Y(Ie,null,fn(n.items,(l,c)=>mt((L(),Y("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:[qi(()=>i(c),["enter"]),qi(()=>i(c),["space"])]},[It(Je(l),1)],42,bu)),[[J(nn),30]])),128))],512))}}),yu=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),wu={},xu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ku=[K("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 Cu(e,t){return L(),Y("svg",xu,ku)}const ls=we(wu,[["render",Cu]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),Iu={},Tu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},$u=[K("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),K("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Eu(e,t){return L(),Y("svg",Tu,$u)}const as=we(Iu,[["render",Eu]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"}));function Ou(e){if(e)try{return JSON.parse(e)}catch{return}}function Mu(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 Lu=.25,zu=5,Au=.25,bn=.25,yn=5,ju=.05,Bu=0,Du=4;function Ru(e){var V,T,W,g,P;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Mu(t.value):location.hostname),r=q(Nu(`tkr:${o.value}`)),i=$=>{r.value=$;const A=`tkr:${o.value}`;!$||!Object.keys($).length?localStorage.removeItem(A):localStorage.setItem(A,JSON.stringify($))},s=$=>{if(!r.value){i($);return}const A={...r.value};Object.entries($).forEach(([k,D])=>{D===void 0?delete A[k]:A[k]=D}),i(A)},a=q(((V=r.value)==null?void 0:V.style)??_t.longStrip),l=q(((T=r.value)==null?void 0:T.direction)??at.vertical),c=q((W=r.value)==null?void 0:W.gap),u=q(((g=r.value)==null?void 0:g.speed)??1),h=q(((P=r.value)==null?void 0:P.zoom)??1),p=se({get(){return n.value?_t.longStrip:a.value??_t.longStrip},set:$=>{a.value=$,s({style:$===_t.longStrip?void 0:$}),$!==_t.longStrip&&l.value===at.vertical&&(m.value=at.rtl)}}),m=se({get:()=>n.value?at.vertical:l.value,set:$=>{l.value=$,s({direction:$===at.vertical?void 0:$})}}),S=se({get:()=>c.value??(n.value?0:1),set($){c.value=$,s({gap:$})}}),x=se({get:()=>u.value,set($){u.value=$,s({speed:$===1?void 0:$})}}),j=se({get:()=>h.value,set($){h.value=$,s({zoom:$===1?void 0:$})}});return{direction:m,style:p,gap:S,speed:x,zoom:j,isLongStrip:se(()=>p.value===_t.longStrip),isDouble:se(()=>p.value===_t.double),isRTL:se(()=>m.value===at.rtl),isVertical:se(()=>m.value===at.vertical)}}function Nu(e){const t=localStorage.getItem(e),n=Ou(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>=Bu&&n.gap<=Du&&(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 cs=Ee({__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);oo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(o.value=!o.value)}});function i(a){t("update:zoom",Math.round(a)/100)}function s(){o.value=!1,t("help")}return(a,l)=>{const c=as,u=no,h=ls,p=ss,m=is,S=rs,x=os;return L(),Y(Ie,null,[Z(u,{title:"Reader settings (S)",disabled:a.disabled,onClick:l[0]||(l[0]=()=>o.value=!0)},{default:ae(()=>[Z(c)]),_:1},8,["disabled"]),Z(x,{modelValue:o.value,"onUpdate:modelValue":l[5]||(l[5]=j=>o.value=j),name:r.value},{actions:ae(()=>[Z(u,{transparent:"",onClick:s},{default:ae(()=>[Z(h)]),_:1})]),default:ae(()=>[Z(m,{label:"Style"},{default:ae(()=>[Z(p,{"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}),Z(m,{label:"Direction"},{default:ae(()=>[Z(p,{"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}),Z(m,{label:"Gap"},{default:ae(()=>[Z(p,{"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}),Z(m,{label:"Speed"},{default:ae(()=>[Z(S,{"model-value":a.speed,min:J(Lu),max:J(zu),step:J(Au),suffix:"x","onUpdate:modelValue":l[4]||(l[4]=j=>t("update:speed",j))},{suffix:ae(()=>[It(Je(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(m,{label:"Zoom"},{default:ae(()=>[Z(S,{"model-value":Math.ceil(a.zoom*100),min:J(bn)*100,max:J(yn)*100,step:J(ju)*100,"onUpdate:modelValue":i},{suffix:ae(()=>[It(Je(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Vu={},Hu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Wu=[K("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Uu(e,t){return L(),Y("svg",Hu,Wu)}const us=we(Vu,[["render",Uu]]),Ku=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),Yu={},Xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},qu=[K("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Zu(e,t){return L(),Y("svg",Xu,qu)}const fs=we(Yu,[["render",Zu]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Ju={},Gu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ef=[K("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),K("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),K("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 tf(e,t){return L(),Y("svg",Gu,ef)}const ds=we(Ju,[["render",tf]]),nf=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),of={},rf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sf=[K("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),K("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),K("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 lf(e,t){return L(),Y("svg",rf,sf)}const ps=we(of,[["render",lf]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),cf={},uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ff=[K("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function df(e,t){return L(),Y("svg",uf,ff)}const hs=we(cf,[["render",df]]),pf=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),hf=["aria-hidden"],gf=["onClick"],mf=["onClick"],vf={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"},_f={class:"whitespace-nowrap"},or=Ee({__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),i=q(null),s=q(!1),a=q(!1),l=q(!1);oo({onKeyDown:m});const c=nr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(h(),gt(()=>setTimeout(()=>{var g,P;(P=(g=i.value)==null?void 0:g.children[n.modelValue])==null||P.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),x(o.value)):setTimeout(j,250)}function h(){const g=o.value;if(g){const P=g.getBoundingClientRect(),$=P.x+P.width/2;s.value=P.y>window.innerHeight/2,a.value=$<window.innerWidth/3,l.value=$>window.innerWidth/3*2}}function p(g){g!=n.modelValue&&t("update:modelValue",g),u()}function m(g){r.value&&g.key==="Escape"&&(u(),g.preventDefault())}let S=[];function x(g){const P=window.getComputedStyle(g).zIndex,$=g.style.zIndex;(!P||!(+P>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",S.push({el:g,zIndex:$})),g.parentElement&&x(g.parentElement))}function j(){S.forEach(({el:g,zIndex:P})=>{g.style.zIndex=P??""}),S=[]}let V=!1;function T(){V||(V=!0,c(!0,{desktopOnly:!0}))}function W(){V&&(V=!1,c(!1,{desktopOnly:!0}))}return(g,P)=>{const $=hs;return L(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(L(),Y("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Me("",!0),g.items.length?(L(),ke(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:ae(()=>[r.value?(L(),Y("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":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:P[0]||(P[0]=ot(()=>{},["stop"]))},[(L(!0),Y(Ie,null,fn(g.items,(A,k)=>mt((L(),Y("li",{key:k,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":k===g.modelValue}]),onClick:()=>p(k)},[K("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":k>0}])},[Pe(g.$slots,"item",{item:A},()=>[It(Je(A),1)])],2)],10,gf)),[[J(nn),30]])),128))],42,hf)):Me("",!0)]),_:3})):Me("",!0),mt((L(),Y("button",eo({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":g.disabled}]},g.title?{title:g.title}:{},{onClick:ot(u,["stop"]),onMouseenter:T,onMouseleave:W}),[K("div",vf,[K("span",_f,Je(g.label),1),g.items.length?(L(),Y("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($)],2)):Me("",!0)])],16,mf)),[[J(nn),30]])],512)}}}),bf=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),gs=Ee({__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:h})=>h===l));return c===-1?n.pages.length-1:c}),i=se(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function s(l){const c=n.pages[l][0].index;a(c)}function a(l){t("update:modelValue",l)}return(l,c)=>{const u=or;return L(),ke(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:l.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),yf=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kf=[K("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Cf(e,t){return L(),Y("svg",xf,kf)}const ms=we(wf,[["render",Cf]]),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),If={},Tf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$f=[K("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Ef(e,t){return L(),Y("svg",Tf,$f)}const vs=we(If,[["render",Ef]]),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),Of={},Mf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Lf=[K("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 zf(e,t){return L(),Y("svg",Mf,Lf)}const _s=we(Of,[["render",zf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),jf={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[K("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 Rf(e,t){return L(),Y("svg",Bf,Df)}const bs=we(jf,[["render",Rf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"}));var ys;const rr=typeof window<"u",Ff=e=>typeof e=="string",Pt=()=>{};rr&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ro(e){return typeof e=="function"?e():J(e)}function ws(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}function Vf(e,t={}){let n,o,r=Pt;const i=a=>{clearTimeout(a),r(),r=Pt};return a=>{const l=ro(e),c=ro(t.maxWait);return n&&i(n),l<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(a())):new Promise((u,h)=>{r=t.rejectOnCancel?h:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(a())},l)})}}function Hf(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,a=Pt,l;const c=()=>{i&&(clearTimeout(i),i=void 0,a(),a=Pt)};return h=>{const p=ro(e),m=Date.now()-r,S=()=>l=h();if(c(),p<=0)return r=Date.now(),S();if(m>p&&(n||!s))r=Date.now(),S();else if(t)return new Promise((x,j)=>{a=o?j:x,i=setTimeout(()=>{r=Date.now(),s=!0,x(S()),c()},p-m)});return!n&&!i&&(i=setTimeout(()=>s=!0,p)),s=!1,l}}function Wf(e){return e}function ir(e){return br()?(ll(e),!0):!1}function Ye(e,t=200,n={}){return ws(Vf(t,n),e)}function xs(e,t=200,n=!1,o=!0,r=!1){return ws(Hf(t,n,o,r),e)}function ks(e,t=!0){$i()?tt(e):t?e():gt(e)}function Wt(e){var t;const n=ro(e);return(t=n==null?void 0:n.$el)!=null?t:n}const wn=rr?window:void 0,Uf=rr?window.document:void 0;function Ot(...e){let t,n,o,r;if(Ff(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=wn):[t,n,o,r]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},a=(u,h,p)=>(u.addEventListener(h,p,r),()=>u.removeEventListener(h,p,r)),l=he(()=>Wt(t),u=>{s(),u&&i.push(...n.flatMap(h=>o.map(p=>a(u,h,p))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return ir(c),c}function Cs(e,t=!1){const n=q(),o=()=>n.value=!!e();return o(),ks(o,t),n}const Ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Is="__vueuse_ssr_handlers__";Ss[Is]=Ss[Is]||{};function Ts({document:e=Uf}={}){if(!e)return q("visible");const t=q(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $s=Object.getOwnPropertySymbols,Kf=Object.prototype.hasOwnProperty,Yf=Object.prototype.propertyIsEnumerable,Xf=(e,t)=>{var n={};for(var o in e)Kf.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$s)for(var o of $s(e))t.indexOf(o)<0&&Yf.call(e,o)&&(n[o]=e[o]);return n};function qf(e,t,n={}){const o=n,{window:r=wn}=o,i=Xf(o,["window"]);let s;const a=Cs(()=>r&&"ResizeObserver"in r),l=()=>{s&&(s.disconnect(),s=void 0)},c=he(()=>Wt(e),h=>{l(),a.value&&r&&h&&(s=new ResizeObserver(t),s.observe(h,i))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return ir(u),{isSupported:a,stop:u}}function sr(e,t={width:0,height:0},n={}){const{window:o=wn,box:r="content-box"}=n,i=se(()=>{var l,c;return(c=(l=Wt(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),s=q(t.width),a=q(t.height);return qf(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&i.value){const u=Wt(e);if(u){const h=o.getComputedStyle(u);s.value=parseFloat(h.width),a.value=parseFloat(h.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((h,{inlineSize:p})=>h+p,0),a.value=u.reduce((h,{blockSize:p})=>h+p,0)}else s.value=l.contentRect.width,a.value=l.contentRect.height},n),he(()=>Wt(e),l=>{s.value=l?t.width:0,a.value=l?t.height:0}),{width:s,height:a}}function lr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=wn}=n,a=Cs(()=>s&&"IntersectionObserver"in s);let l=Pt;const c=a.value?he(()=>({el:Wt(e),root:Wt(o)}),({el:h,root:p})=>{if(l(),!h)return;const m=new IntersectionObserver(t,{root:p,rootMargin:r,threshold:i});m.observe(h),l=()=>{m.disconnect(),l=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{l(),c()};return ir(u),{isSupported:a,stop:u}}var Es;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Es||(Es={}));var Zf=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Qf=Object.prototype.hasOwnProperty,Jf=Object.prototype.propertyIsEnumerable,Os=(e,t,n)=>t in e?Zf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gf=(e,t)=>{for(var n in t||(t={}))Qf.call(t,n)&&Os(e,n,t[n]);if(Ps)for(var n of Ps(t))Jf.call(t,n)&&Os(e,n,t[n]);return e};Gf({linear:Wf},{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 ed(e={}){const{window:t=wn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=q(n),a=q(o),l=()=>{t&&(i?(s.value=t.innerWidth,a.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ks(l),Ot("resize",l,{passive:!0}),r&&Ot("orientationchange",l,{passive:!0}),{width:s,height:a}}const Ms=we(Ee({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=q(null),o=q(0),r=q([]),i=se(()=>r.value[o.value]),s=xs(a,500);tt(()=>{const u=sr(n),h=Ye(()=>l({width:u.width.value,height:u.height.value}),50);h(),he(u.width,h),he(u.height,h)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const h=c();r.value=h.map(({rect:p,text:m})=>{const S=p.top<u.height-p.bottom,x=p.left<u.width-p.right;return{text:m,style:{left:`${p.left}px`,top:`${p.top}px`,width:`${p.width}px`,height:`${p.height}px`},textStyle:{left:x?`${p.left-12}px`:void 0,right:x?void 0:`${u.width-p.left}px`,top:S?`${p.bottom+12}px`:`${p.top+20}px`,textAlign:S?void 0:"right",transform:S?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var p;const u=(p=n.value)==null?void 0:p.parentElement;if(!u)return[];const h=[];return u.querySelectorAll("[data-tour]").forEach(m=>{var j;const S=(j=m.getAttribute("data-tour"))==null?void 0:j.trim();if(!(S!=null&&S.length))return;const x=m.getBoundingClientRect();h.push({rect:x,text:S})}),h}return(u,h)=>{var p,m;return L(),Y(Ie,null,[K("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),K("div",{ref_key:"root",ref:n,class:"tour",onClick:h[0]||(h[0]=ot((...S)=>J(s)&&J(s)(...S),["stop"]))},[i.value?(L(),Y("div",{key:o.value,class:"tour__target",style:De(i.value.style)},null,4)):Me("",!0),(L(),Y("div",{key:o.value,class:"tour__text",style:De((p=i.value)==null?void 0:p.textStyle)},Je(((m=i.value)==null?void 0:m.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
|
-
`]]]),
|
|
5
|
-
`]]]),rd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),id={},sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ld=[K("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 ad(e,t){return L(),Y("svg",sd,ld)}const As=we(id,[["render",ad]]),cd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),js=Ee({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=q(typeof n!="string"||+n!==t.direction),r=Ye(()=>o.value=!1,1250);he(()=>t.direction,()=>{i(),o.value=!0,r()}),tt(()=>{i(),r();let s;const a=Ts();he(a,l=>{l!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,a)=>{const l=As;return L(),ke(tn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[o.value?(L(),Y("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===J(at).vertical,"rotate-180":s.direction===J(at).rtl}])},[Z(l)],2)):Me("",!0)]),_:1})}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),io=[];function fd(e){io.push(e),ut(()=>{const t=io.indexOf(e);t!==-1&&io.splice(t,1)})}function dd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;io.forEach(s=>s(r,i))}const pd=["onClick"],Bs=Ee({__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=q(null),r=q(Math.min(yn,Math.max(bn,n.modelValue))),i=q(!1),s=q(!1),a=q(!1);he(()=>n.modelValue,_=>y(_)),tt(()=>{n.touchDevice?(Ot(window,"touchstart",x),fd(k)):(Ot(o,"mousedown",h),Ot(window,"wheel",W))}),oo({onKeyDown:_=>{var U;if(!n.busy&&((U=o.value)==null||U.focus(),!(_.key==="Meta"||_.key==="Control")&&(_.ctrlKey||_.metaKey)))switch(_.key){case"0":y(1);break;case"-":y(r.value-.2),_.preventDefault();break;case"=":case"+":y(r.value+.2),_.preventDefault();break}}});function l(_){s.value!==_&&(s.value=_,_?n.playController.pause():(t("dragEnd"),n.playController.resume()))}let c={x:0,y:0},u={x:0,y:0};function h(_){_.button===0&&(c={x:_.clientX,y:_.clientY},u={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",p),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",p),setTimeout(()=>l(!1))},{once:!0}),_.preventDefault(),_.stopPropagation())}function p(_){l(!0);const U=_.clientX-c.x,N=_.clientY-c.y,ue=o.value;ue.scrollLeft=u.x-U,ue.scrollTop=u.y-N}let m=!1,S={distance:0,zoom:r.value,x:0,y:0};function x(_){n.busy||(m=_.touches.length===2,m&&(l(!0),_.stopPropagation(),_.preventDefault(),S={distance:g(_),zoom:r.value,x:(_.touches[0].clientX+_.touches[1].clientX)/2,y:(_.touches[0].clientY+_.touches[1].clientY)/2}),(m||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",V),window.addEventListener("touchend",j,{once:!0})))}function j(){if(window.removeEventListener("touchmove",V),m){l(!1),m=!1;return}if(!s.value)return;const _=Ye(()=>{l(!1),o.value.removeEventListener("scroll",N)},100),U=setTimeout(_,100);o.value.addEventListener("scroll",N);function N(){clearTimeout(U),_()}}function V(_){if(l(!0),m){_.stopPropagation(),_.preventDefault();const N=g(_)/S.distance;y(Math.ceil(N*S.zoom*100)/100,S)}}const T=Ye(()=>i.value=!1,100);function W(_){if(!n.busy){if(_.ctrlKey||_.metaKey){_.stopPropagation(),_.preventDefault();const U=Math.ceil((r.value+_.deltaY*-.01)*100)/100;y(U,{x:_.clientX,y:_.clientY});return}n.horizontal&&(i.value||(i.value=!0),T(),_.deltaY&&(o.value&&(o.value.scrollLeft+=_.deltaY*(n.rtl?-1:1)),_.stopPropagation(),_.preventDefault()))}}function g(_){return Math.hypot(_.touches[0].clientX-_.touches[1].clientX,_.touches[0].clientY-_.touches[1].clientY)}let P=0,$;function A(_){if(!s.value){if(!n.touchDevice){t("click",_);return}P++,$&&clearTimeout($),P===2&&k(_.clientX,_.clientY),$=setTimeout(()=>{!s.value&&P===1&&t("click",_),$=void 0,P=0},300)}}function k(_,U){if(!P)return;P=0;const N=r.value===1?2:1;y(N,{x:_,y:U})}let D;const ee=Ye(()=>{a.value=!1,D=void 0},150);function ce(){if(!a.value){const _=o.value;if(!_)return;const U=_.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;U&&(D={el:U,rect:U.getBoundingClientRect()},a.value=!0)}if(D)return ee(),D}async function y(_,U){const N=o.value,ue=Math.min(yn,Math.max(bn,_));if(!N||r.value===ue)return;const ne=ce();if(!ne)return;const ie=(U==null?void 0:U.x)??N.clientWidth/2,B=(U==null?void 0:U.y)??N.clientHeight/2;r.value=ue,t("update:modelValue",ue),await gt();const{el:H,rect:X}=ne,te=H.offsetWidth/X.width,_e=H.offsetHeight/X.height;N.scrollLeft=H.offsetLeft-X.left*te+ie*(te-1),N.scrollTop=H.offsetTop-X.top*_e+B*(_e-1)}return(_,U)=>(L(),Y("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":!_.longStrip&&(s.value||i.value||a.value),"cursor-grabbing":s.value,"overflow-hidden":a.value}]),style:De({"font-size":`${r.value}px`}),onClick:ot(A,["stop"])},[Pe(_.$slots,"default")],14,pd))}}),hd=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ds=Ee({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=q(null),o=q(!1);return tt(async()=>{await gt();let r=!1;lr(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(L(),Y("div",{ref_key:"root",ref:n},[Pe(r.$slots,"default",{visible:o.value})],512))}}),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"}));function md({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=q(n),i=q(o),s=Ye(a,50);he(e,l=>{n>l&&(n=l)});function a(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(l){o<l&&(o=l),s()},onScroll(){t.value?a():s()}}}const vd={key:0,class:"page--loading"},_d=["src"],bd=["src"],yd=["data-index"],Rs=we(Ee({__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}),i=q(null),s=sr(r),a=se(()=>{const{width:m,height:S}=s,x=n.isLongStrip?n.isVertical?m.value:S.value:Math.min(m.value,S.value);return Math.min(4,Math.max(1,Math.ceil(x/400-1)))*n.gap}),l=md({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),c=se(()=>{const{width:{value:m},height:{value:S}}=s;return n.pages.map(x=>{var k;const j=x.some(D=>{var ee;return(ee=D.img)==null?void 0:ee.isLoading}),V=x.map(D=>D.index),T={isLoading:j,indexes:V};if(j||V[V.length-1]<l.min.value-1||V[0]>l.max.value+2)return T;const W=x.map(({img:D})=>D).filter(Boolean);if(!W.length||(T.srcs=W.map(({src:D})=>D),W.every(D=>D.hasError)))return T;const P=(k=W.find(D=>!D.hasError))==null?void 0:k.size,$=W.reduce((D,ee)=>{var ce;return D+(((ce=ee.size)==null?void 0:ce.width)??P.width)},0),A=W.reduce((D,ee)=>{var ce;return D+(((ce=ee.size)==null?void 0:ce.height)??P.height)},0)/W.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&m/$<S/A?(T.width=Math.min(m,$),T.height=A*T.width/$):T.height=Math.min(S,A),T})}),u=se(()=>{const m=n.isVertical?"width":"height";return c.value.map(S=>S[m]).filter(Boolean).sort((S,x)=>x-S)[0]});function h({indexes:m}){const S=m[m.length-1];S!==void 0&&l.onPageVisible(S)}function p(m){if(!n.isLongStrip){const S=n.isVertical?s.height.value:s.width.value,j=(n.isVertical?m.clientY:n.isRTL?S-m.clientX:m.clientX)/S;if(j<=.2){t("prev");return}else if(j>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(m,S)=>{const x=Go,j=Ds,V=Bs;return L(),ke(V,{ref_key:"root",ref:o,"model-value":m.zoom,"page-index":m.pageIndex,class:Oe(["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:De({"--gap":`${a.value}em`,"--space-top":(m.spaceTop||0)+"px","--screen-width-em":J(s).width.value+"em","--screen-height-em":J(s).height.value+"em",...m.isLongStrip?{"--max-size-em":u.value+"em"}:{}}),"onUpdate:modelValue":S[0]||(S[0]=T=>t("update:zoom",T)),onDragEnd:S[1]||(S[1]=()=>t("dragEnd")),onClick:p,onScroll:J(l).onScroll},{default:ae(()=>[(L(!0),Y(Ie,null,fn(c.value,T=>(L(),ke(j,eo({key:m.direction+"_"+T.indexes[0],"data-index":T.indexes[0]},T.indexes.length>1?{"data-index2":T.indexes[1]}:{},{onVisible:()=>h(T)}),{default:ae(({visible:W})=>{var g;return[!((g=T.srcs)!=null&&g.length)||T.isLoading?(L(),Y("div",vd,[mt(Z(x,null,null,512),[[Zi,W]])])):T.srcs.length==1?(L(),Y("img",{key:1,src:T.srcs[0],style:De({height:T.height!==void 0?T.height+"em":""})},null,12,_d)):(L(),Y("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":m.isRTL}]),style:De({width:T.width!==void 0?T.width+"em":"",height:T.height!==void 0?T.height+"em":""})},[(L(!0),Y(Ie,null,fn(T.srcs,P=>(L(),Y("div",{key:P},[K("img",{src:P},null,8,bd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),K("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":m.totalImgs},[Pe(m.$slots,"end")],8,yd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["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
|
-
`]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},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 so(e=0){return new Promise(t=>setTimeout(t,e))}const Id=3;function Td(e){var ue,ne,ie;const t=((ne=(ue=e.raw.value)==null?void 0:ue.imgs)==null?void 0:ne.filter(Boolean))??[];let n=!!t.length;const o=q(t),r=sn({}),i=[],s=new WeakMap,a=q((ie=e.raw.value)==null?void 0:ie.isWebtoon),l=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,h=!1,p=!1,m=0,S=0,x,j=[],V=e.isAutoShow!==!1?e.page.value:n?Od(t):void 0;const T=Ye(y,100);let W=!1;const g=Ye(k,50),P=()=>{W?g():(W=!0,k())};n?k():ee(),he(()=>{var B;return(B=e.raw.value)==null?void 0:B.imgs},B=>{B!=null&&B.length&&B!==o.value&&(n=!0,A(B))}),ut(()=>{u=!1,i.forEach(B=>URL.revokeObjectURL(B))}),Kn(()=>{if(!h)return;const B=j.length?void 0:document.querySelector(`img[src^="${t[Math.floor(e.page.value)]}"]`)??void 0;kn({contentEl:x,imgEl:B,imgEls:j,page:e.page.value})});function $(){var _e,ve;if(h||a.value===void 0||V===void 0)return;const B=Math.max(0,Math.min(V,o.value.length)),H=o.value.length-1,X=Math.min(Math.floor(B),H);if(X>=1){const ge=o.value[X];if(!ge){e.isAutoShow&&kn({contentEl:x,imgEls:j,page:X});return}const oe=o.value[X-1];if(oe&&!((_e=r[oe])!=null&&_e.size)||!((ve=r[ge])!=null&&ve.size))return}if(h)return;h=!0,e.onReady(B);let te=!0;he(()=>Math.floor(e.page.value),async(ge,oe)=>{kn({imgEls:j,page:ge,smooth:c,skipIfVisible:te}),te=!1,oe??(oe=-1),ge!==oe&&(m=Math.max(0,m-Math.abs(ge-oe))),P()},{immediate:!0})}function A(B,H){(B.length!==o.value.length||B.some((X,te)=>o.value[te]!==X))&&(H&&(j=H,e.isAutoShow===!1&&V===void 0&&(V=Vs(j))),o.value=B,P())}function k(){const B=Math.max(0,Math.floor(e.page.value-1)),H=X=>{m>Id||D(X)};for(let X=B;X<o.value.length;X++)H(X);for(let X=B-1;X>=0;X--)H(X)}async function D(B){const H=o.value[B];if(!(!u||!H||r[H])){if(!r[H]){r[H]={src:H,isLoading:!0,hasError:!1},m++;const X=await Pd(H);if(r[H]={src:H,size:X,isLoading:!1,hasError:!X},m=Math.max(0,m-1),X&&!a.value&&B>Math.min(1,o.value.length-2)){const te=X.height/X.width>2.5;a.value!==te&&(a.value=te)}$()}g()}}function ee(){let B=!1;const H=new MutationObserver(()=>{x&&T(x)});Kn(async()=>{H.disconnect()}),ce(X=>{x!==X&&(x=X,H.disconnect(),H.observe(x,{childList:!0,subtree:!0}),B?T(x):(B=!0,y(x)))})}async function ce(B){var ge;const H=(ge=e.spec)==null?void 0:ge.content;if(!H){B(document.body);return}const X=await $d(e.spec);let te=H?await xn(X?100:1,10,()=>document.querySelector(H)):void 0;if(!te)return;B(te);let _e=0;const ve=async()=>{if(u&&!(te!=null&&te.isConnected)&&!n){if(_e=0,te=await xn(50,20,()=>{const oe=document.querySelector(H);return oe!=null&&oe.isConnected&&oe!==te?oe:void 0}),!te)return;B(te)}!u||n||++_e>=10||setTimeout(ve,200)};setTimeout(ve,200)}async function y(B){var _e;if(!u||!B.isConnected||n)return;const H=Date.now();S=H;const X=(_e=e.spec)==null?void 0:_e.imgDivs,te=X?await _({contentEl:B,imgDivsSel:X,ts:H}):await U({contentEl:B,ts:H});!te||S!==H||!B.isConnected||!u||n||(!e.raw.value&&!te.srcs.some(Boolean)&&e.onError("no_img"),A(te.srcs,te.imgEls))}async function _({contentEl:B,imgDivsSel:H,ts:X}){const te=Array.from(B.querySelectorAll(H));if(!p&&e.isAutoShow!==!1&&e.page.value&&(p=!0,kn({contentEl:B,imgEls:te,page:Math.floor(e.page.value),skipIfVisible:!0}),await so(1),S!==X))return;const _e=new Map;return{srcs:await Promise.all(te.map(async(ge,oe)=>{const xe=Array.from(ge.querySelectorAll("img,canvas"));for(const ze of xe){const Be=await N({ts:X,el:ze,index:oe,total:te.length,elsPool:_e,onImgLoad:()=>T(B)});if(Be)return Be}})),imgEls:te}}async function U({contentEl:B,ts:H}){const X=Array.from(B.querySelectorAll("img,canvas")),te=new Map,_e=await Promise.all(X.map((xe,ze)=>N({ts:H,el:xe,index:ze,total:X.length,elsPool:te,onImgLoad:()=>T(B)})));if(S!==H)return;let ve=X.filter((xe,ze)=>_e[ze]),ge=_e.filter(Boolean);const oe={};return ge.forEach((xe,ze)=>{xe&&ze!==ge.lastIndexOf(xe)&&(oe[ze]=!0)}),Object.keys(oe).length&&(ve=ve.filter((xe,ze)=>!oe[ze]),ge=ge.filter((xe,ze)=>!oe[ze])),!j.length&&ve.length<X.length&&ve.length<=5&&setTimeout(()=>{kn({imgEls:X,page:X.length,smooth:c})},50),{srcs:ge,imgEls:ve}}async function N({ts:B,el:H,index:X,total:te,elsPool:_e,onImgLoad:ve}){const ge=s.get(H);let oe,xe;if(H.tagName.toLowerCase()==="canvas"){if(ge)return ge.src;oe=await Fs(H)}else{if(H._tkLoadId_!==l&&(H._tkLoadId_=l,H.addEventListener("load",ve),ut(()=>{H._tkLoadId_===l&&delete H._tkLoadId_,H.removeEventListener("load",ve)})),xe=Md(H,_e),!xe)return;if(xe===(ge==null?void 0:ge.originalSrc))return ge.src;if(oe=await Ed(H,xe),!u||S!==B)return;if(a.value===void 0&&X>Math.min(1,te-2)){const Be=+(H.getAttribute("width")??0),Mt=+(H.getAttribute("height")??0);Be&&Mt&&(a.value=Mt/Be>2.5)}}return oe&&(s.set(H,{src:oe,originalSrc:xe}),oe.startsWith("blob:")&&i.push(oe)),oe}return{asyncImgs:se(()=>o.value.map(B=>B?r[B]:void 0)),isWebtoon:se(()=>a.value??!1)}}async function $d(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),ut(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await so(),!0}function Fs(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 Ed(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 Fs(o)}function Pd(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 Od(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Vs(n)}function Vs(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 Md(e,t){if(!Hs(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 Hs(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=Hs(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,a=o?"smooth":"instant";if(s){(u=t[t.length-1])==null||u.scrollIntoView({block:"end",behavior:a});return}if(i??(i=t[Math.floor(n)]),!i)return;const l=i.getBoundingClientRect();if(r&&l.top<=0&&l.top+l.height>0)return;i.scrollIntoView({block:"start",behavior:a});const c=n%1;if(c){const h=c*l.height,p=ar(e??document.documentElement);setTimeout(()=>p==null?void 0:p.scrollBy({top:h}))}}function ar(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?ar(document.documentElement)??e:e:ar(e.parentElement??void 0)}function Ld(e,t){return se(()=>t.value?Ws(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function Ws(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})),...Ws(e.slice(r.length),t+r.length)]}function zd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=q(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return se({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function Ad(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const cr=40;function jd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:a,interferePlayer:l,onChangedPage:c,onInitialized:u}){let h=!1,p=!1,m;const S=Ye($,300),x=xs(()=>{$(),S()},300),j=Ye(W,50);async function V(){g(e.value)}function T(){var y;p=!0,u(),(y=a.value)==null||y.addEventListener("scroll",x),setTimeout(()=>{const{width:_,height:U}=ed();he(_,()=>{r.value&&j()}),he(U,()=>{r.value||j()}),he(n,W),he(t,W)},300)}async function W(){if(!p||h)return;h=!0,await gt();const y=e.value;if(A()===y){h=!1;return}g(y)}function g(y,{smooth:_}={smooth:!1}){const U=a.value;if(!U)return;h=!0;const N=async()=>{await gt(),h=!1,p||T()},ue=Math.floor(y),ne=U.querySelector(`[data-index="${ue}"],[data-index2="${ue}"]`);if(!ne){N();return}l(async()=>{await P(U,!o.value&&_,async()=>{await ce(U,ne,{smooth:_,page:y})}),await N()})}async function P(y,_,U){_&&y.style.setProperty("scroll-snap-type","none"),await U(),_&&y.style.removeProperty("scroll-snap-type")}function $(){if(h)return;const y=A();y!==void 0&&y!==e.value&&c(y)}function A(){const y=k();return y?(+y.getAttribute("data-index")||0)+(o.value?D(y):0):void 0}function k(){var _;if(m??(m=a.value.getRootNode()),!m)return;const y=(_=m.elementsFromPoint)==null?void 0:_.call(m,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-cr:cr,r.value&&o.value?s.value||cr:window.innerHeight/2);if(y)for(let U=0;U<y.length;U++){const N=y[U];if(N.hasAttribute("data-index"))return N;if(N===a.value)break}}function D(y){const _=y.getBoundingClientRect();return r.value?Math.abs(_.top-s.value)/_.height:i.value?Math.max(0,_.right-a.value.clientWidth)/_.width:Math.abs(_.left)/_.width}let ee=!1;async function ce(y,_,U){if(ee)return;const N=_.getBoundingClientRect();if(!o.value){if(r.value){if(N.top<=0&&N.bottom>=y.clientHeight)return}else if(N.left<=0&&N.right>=y.clientWidth)return}ee=!0;const ue=r.value?y.scrollTop:y.scrollLeft,ne=U.page,ie=o.value?ne%1:0,B=await xn(30,10,async()=>{await so();let ve;if(!(_.offsetHeight<10))return o.value?r.value?ve=_.offsetTop+ie*_.offsetHeight-s.value:i.value?ve=_.offsetLeft-y.clientWidth+_.offsetWidth-ie*_.offsetWidth:ve=_.offsetLeft+ie*_.offsetWidth:r.value?ve=_.offsetTop+(N.top>0?0:N.height-y.clientHeight):ve=_.offsetLeft+(N.left>0?0:N.width-y.clientWidth),ne>.5&&Math.abs(ve)<100?void 0:ve})??0,H=r.value?Math.min(B,y.scrollHeight-y.clientHeight*2):i.value?Math.max(B,-(y.scrollWidth-y.clientWidth*2)):Math.min(B,y.scrollWidth-y.clientWidth*2);if(!U.smooth){r.value?y.scrollTop=H:y.scrollLeft=H,ee=!1;return}const X=H-ue,te=30;let _e=0;return new Promise(ve=>{(function ge(){const oe=Bd(_e,ue,X,te);r.value?y.scrollTop=oe:y.scrollLeft=oe,_e++,_e<=te?requestAnimationFrame(ge):(ve(),ee=!1)})()})}return{init:V,goToPage:g}}function Bd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Dd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const a=sessionStorage.getItem("tk:playing"),l=q(typeof a=="string"?a==="true":e),c=se({get:()=>l.value,set:k=>{l.value=k,sessionStorage.setItem("tk:playing",k?"true":"false")}}),u=q(!1);let h,p;const m=Ye($,100),S=Ye(()=>{u.value=!0},t?2e3:1e3),x=()=>setTimeout(()=>{u.value=!1,S()},30);x(),t||Ot(window,"mousemove",x);const j=Ts();tt(()=>{he(j,k=>{c.value&&(k==="visible"?$():p==null||p())}),he(s,()=>V()),he(i,k=>{k||W()})});async function V(k){c.value&&(p==null||p()),k&&(await gt(),await k()),c.value&&m()}function T(){c.value?W():g()}function W(){c.value&&(c.value=!1,p==null||p(),x())}function g(){!c.value&&i.value&&(c.value=!0,$(),x())}function P(){p==null||p()}function $(){const k=n.value;if(!c.value||!k)return;const D=o.value?k.scrollHeight-k.clientHeight:k.scrollWidth-k.clientWidth,ee=A();if(D<=ee){W();return}p=()=>{h=Date.now(),p=void 0};const ce=Date.now();h=ce;const y=.05*s.value,_=o.value?"scrollTop":"scrollLeft";let U=Date.now(),N=0;const ue=()=>{if(h!==ce)return;const ne=Date.now(),ie=ne-U;U=ne;const B=y*ie+N;B>=1?(N=B%1,k[_]+=(B-N)*(r.value?-1:1)):N=B,setTimeout(ue,1)};ue()}function A(){const k=n.value;return o.value?k.scrollTop:r.value?-k.scrollLeft:k.scrollLeft}return{isPlaying:c,isIdle:u,toggle:T,play:g,pause:P,resume:$,stop:W,interfere:V,awake:x}}function Rd(e){var m,S,x,j,V;let t=-1,n=(m=e.prev)==null?void 0:m.slug,o=(S=e.next)==null?void 0:S.slug;const{vol:r,inferVol:i,chap:s,title:a,slug:l,basePath:c}=e,u=r??i,h=a.chapters??[],p=(h==null?void 0:h.length)>1?h:[];if(p.length){if(t=p.findIndex(T=>T.slug===e.slug),t===-1&&(t=p.findIndex(T=>(T.vol??T.inferVol)===u&&T.chap===s)),t===-1&&(t=p.findIndex(T=>l.startsWith(`${T.slug}-`)&&l.length-T.slug.length>3)),t!==-1)n??(n=(x=p[t+1])==null?void 0:x.slug),o??(o=(j=p[t-1])==null?void 0:j.slug);else if(!n&&!o){const T=p.findIndex(W=>{const g=W.vol??W.inferVol;return u===void 0||g===void 0||u===g?W.chap<s:g<u});T!==-1?(n=p[T].slug,o=(V=p[T-1])==null?void 0:V.slug):o=p[p.length-1].slug}}return{activeIndex:t,activeLabel:Us({vol:r,chap:s}),chapters:p.map(T=>({label:Us(T),path:ur(c,T.slug)})),prevPath:ur(c,n),nextPath:ur(c,o)}}function ur(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Us({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Nd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Fd=Ee({...{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=q(!1),a=q(!1),l=Jc({touchDevice:n.touchDevice}),c=zd(n.page,n.isAutoShow),u=se(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:p}=Td({raw:se(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(v){te(v),s.value=!0},onError:()=>{t("error"),I()}}),{direction:m,style:S,isRTL:x,isDouble:j,isVertical:V,isLongStrip:T,gap:W,speed:g,zoom:P}=Ru({titleName:se(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:p}),$=Ld(h,j),A=se(()=>c.value>=h.value.length),k=se(()=>n.raw?Rd(n.raw):void 0),D=se(()=>{var v,w;return x.value?(v=k.value)==null?void 0:v.nextPath:(w=k.value)==null?void 0:w.prevPath}),ee=se(()=>{var v,w;return x.value?(v=k.value)==null?void 0:v.prevPath:(w=k.value)==null?void 0:w.nextPath}),ce=q(null),y=q(null),_=q(!1),U=q(!1),N=Dd({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var v;return(v=ce.value)==null?void 0:v.$el}),speed:g,isRTL:x,isVertical:V,isLongStrip:T}),ue=se(()=>!n.touchDevice&&N.isIdle.value&&!l.value),ne=se({get(){return P.value},set(v){N.interfere(()=>{P.value=v})}}),ie=jd({page:c,style:S,direction:m,isLongStrip:T,isVertical:V,isRTL:x,spaceTop:u,scrollEl:se(()=>{var v;return(v=ce.value)==null?void 0:v.$el}),interferePlayer:v=>N.interfere(v),onChangedPage:te,onInitialized(){t("ready"),a.value=!0,n.touchDevice&&(i=_e())}}),B=se(()=>Math.floor(c.value)),H=()=>N.interfere(()=>so(100));au().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const w=T.value&&V.value,F=T.value&&!V.value,Q=!T.value&&V.value,re=!T.value&&!V.value;switch(v.key){case" ":v.preventDefault(),T.value?(E(!1),N.toggle()):d();break;case"ArrowUp":case"PageUp":w?H():Q&&B.value!==0&&(v.preventDefault(),f());break;case"ArrowDown":case"PageDown":w?H():Q&&!A.value&&(v.preventDefault(),d());break;case"ArrowLeft":F?H():re?(v.preventDefault(),Mt()):V.value&&xe();break;case"ArrowRight":F?H():re?(v.preventDefault(),Sn()):V.value&&oe();break}},onKeyUp:v=>{switch(v.key){case"f":R();break;case"t":M();break;case"h":E();break}}}),Ot("fullscreenchange",()=>{_.value=!!document.fullscreenElement}),he(N.isPlaying,v=>{v||C(!1),t("playingChanged",v)}),he(N.isIdle,v=>{N.isPlaying.value&&C(v)}),he(l,v=>{!v&&N.isIdle.value?N.awake():v&&n.fullScreen&&C()});function te(v){if(c.value===v)return;const w=h.value.length;if(v<0||v>=w+1)return;const F=c.value;c.value=v,t("pageChanged",Math.floor(v*100)/100),v>=w?(C(!1),N.stop()):v===0?C(!1):n.touchDevice&&!r&&(T.value?i!==void 0&&_e()-i>300&&C(!0):Math.abs(F-v)===1&&C(!0)),!o&&v>=w-2&&(o=!0,t("finished"))}function _e(){var w;const v=(w=ce.value)==null?void 0:w.$el;return v?V.value?v.scrollTop:x.value?-v.scrollLeft:v.scrollLeft:0}function ve(){!n.touchDevice&&!T.value&&ie.goToPage(B.value,{smooth:!0})}function ge(){if(N.isPlaying.value){!n.fullScreen||!n.touchDevice?N.stop():N.awake();return}C()}function oe(){var v;Be((v=k.value)==null?void 0:v.nextPath)}function xe(){var v;Be((v=k.value)==null?void 0:v.prevPath)}function ze(v){var F,Q,re;const w=(re=(Q=(F=k.value)==null?void 0:F.chapters)==null?void 0:Q[v])==null?void 0:re.path;w&&Be(w)}function Be(v){v&&(location.href=v.includes("://")?v:location.origin+v)}function Mt(){x.value?d():f()}function Sn(){x.value?f():d()}function f(){var F;const v=$.value,w=A.value?v[v.length-1][0].index:(F=v[b()-1])==null?void 0:F[0].index;w!==void 0?ie.goToPage(w):xe()}function d(){var v,w;if(A.value)oe();else{const F=((w=(v=$.value[b()+1])==null?void 0:v[0])==null?void 0:w.index)??h.value.length;ie.goToPage(F)}}function b(){const v=B.value,w=$.value.findIndex(F=>F.some(({index:Q})=>Q===v));return w===-1?$.value.length-1:w}function I(){Ad(),N.stop(),t("dispose")}async function C(v){if(l.value&&!n.fullScreen)return;r=!0;const w=typeof v=="boolean"?v:!n.fullScreen;t("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&l.value&&t("fullScreenChanged",!1)},100)}function M(){n.entryId?z():O()}function R(){var v,w;document.fullscreenElement?document.exitFullscreen():(w=(v=y.value)==null?void 0:v.$el)==null||w.requestFullscreen()}function O(){N.stop(),t("addEntry")}function z(){N.stop(),t("openEntry",n.entryId)}function E(v){U.value!==v&&(U.value=!U.value,U.value&&N.isPlaying&&N.stop())}return(v,w)=>{const F=Ns,Q=Rs,re=js,be=zs,me=Ls,Ce=Ms,qe=bs,He=no,lo=_s,Ut=or,ao=vs,Ne=ms,rt=gs,co=ps,Jd=ds,Gd=fs,ep=us,tp=cs,np=tr,op=er,rp=ts,ip=Gi;return v.immediate||s.value?(L(),ke(ip,{key:0,ref_key:"root",ref:y,loading:!a.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,idle:ue.value,"space-top":u.value,rtl:J(x),onClick:w[10]||(w[10]=ot(()=>{},["stop"]))},li({settings:ae(()=>{var bt;return[Z(tp,{"reader-style":J(S),"onUpdate:readerStyle":w[3]||(w[3]=yt=>$e(S)?S.value=yt:null),direction:J(m),"onUpdate:direction":w[4]||(w[4]=yt=>$e(m)?m.value=yt:null),gap:J(W),"onUpdate:gap":w[5]||(w[5]=yt=>$e(W)?W.value=yt:null),speed:J(g),"onUpdate:speed":w[6]||(w[6]=yt=>$e(g)?g.value=yt:null),zoom:ne.value,"onUpdate:zoom":w[7]||(w[7]=yt=>ne.value=yt),name:(bt=v.raw)==null?void 0:bt.title.name,webtoon:J(p),disabled:!s.value,onHelp:E},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ae(()=>[Z(tn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[Z(rp,{zoom:ne.value,onClick:w[9]||(w[9]=ot(()=>ne.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ae(()=>[K("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:De({width:`${J(c)/(J(h).length-1)*100}%`})},null,4)]),default:ae(()=>[s.value?(L(),ke(Q,{key:0,ref_key:"body",ref:ce,zoom:ne.value,"onUpdate:zoom":w[0]||(w[0]=bt=>ne.value=bt),"page-index":B.value,pages:J($),"total-imgs":J(h).length,direction:J(m),gap:J(W),"is-long-strip":J(T),isRTL:J(x),"is-vertical":J(V),"space-top":u.value,busy:J(l),idle:ue.value,"play-controller":J(N),"touch-device":v.touchDevice,onVnodeMounted:J(ie).init,onPrev:f,onNext:d,onClick:ge,onDragEnd:ve,onWheelPassive:w[1]||(w[1]=()=>J(N).interfere())},li({_:2},[s.value&&J(h).length?{name:"end",fn:ae(()=>{var bt;return[Z(F,{"has-next":!!((bt=k.value)!=null&&bt.nextPath),onNext:oe,onHide:I},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),a.value&&!A.value&&!v.tourEnabled?(L(),ke(re,{key:1,direction:J(m)},null,8,["direction"])):Me("",!0),a.value&&!A.value?(L(),ke(be,{key:2,playing:!!J(N).isPlaying.value},null,8,["playing"])):Me("",!0),U.value?(L(),ke(me,{key:3,"touch-device":v.touchDevice,onHide:E},null,8,["touch-device"])):Me("",!0),v.tourEnabled?(L(),ke(Ce,{key:4,onHide:w[2]||(w[2]=()=>t("tourEnabledChanged",!1))})):Me("",!0)]),_:2},[v.raw?{name:"back",fn:ae(()=>[Z(He,{href:v.raw.title.url,title:"Back to manga"},{default:ae(()=>[Z(qe)]),_:1},8,["href"])]),key:"0"}:void 0,v.touchDevice?void 0:{name:"exit",fn:ae(()=>[Z(He,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:I},{default:ae(()=>[Z(lo)]),_:1})]),key:"1"},k.value?{name:"chapter-nav",fn:ae(()=>[Z(Ut,{modelValue:k.value.activeIndex,label:k.value.activeLabel,title:"Select chapter",items:k.value.chapters,"onUpdate:modelValue":ze},{item:ae(({item:bt})=>[It(Je(bt.label),1)]),_:1},8,["modelValue","label","items"]),D.value||ee.value?(L(),Y("div",Nd,[Z(He,{title:`${J(x)?"Next":"Prev"} chapter (←)`,href:D.value,disabled:!D.value,class:"!rounded-r-none"},{default:ae(()=>[Z(ao)]),_:1},8,["title","href","disabled"]),Z(He,{title:`${J(x)?"Prev":"Next"} chapter (→)`,href:ee.value,disabled:!ee.value,class:"!rounded-l-none"},{default:ae(()=>[Z(Ne)]),_:1},8,["title","href","disabled"])])):Me("",!0)]),key:"2"}:void 0,J($).length?{name:"page-nav",fn:ae(()=>[Z(rt,{"model-value":B.value,disabled:!a.value,pages:J($),"total-imgs":J(h).length,"onUpdate:modelValue":J(ie).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:ae(()=>[Z(He,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:M},{default:ae(()=>[v.entryId?(L(),ke(co,{key:0})):(L(),ke(Jd,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:ae(()=>[Z(He,{title:`${_.value?"Exit":"Enter"} fullscreen (F)`,onClick:R},{default:ae(()=>[_.value?(L(),ke(Gd,{key:0})):(L(),ke(ep,{key:1}))]),_:1},8,["title"])]),key:"5"},J(T)?{name:"play",fn:ae(()=>[Z(He,{"data-tour":"Press here to play like a video",title:`${J(N).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:w[8]||(w[8]=()=>J(N).toggle())},{default:ae(()=>[J(N).isPlaying.value?(L(),ke(np,{key:0})):(L(),ke(op,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Me("",!0)}}}),Ks=we(Fd,[["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}.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}.md\\:text-lg{font-size:18px;line-height:28px}}@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(Ve,pe){typeof exports=="object"&&typeof module<"u"?module.exports=pe():typeof define=="function"&&define.amd?define(pe):(Ve=typeof globalThis<"u"?globalThis:Ve||self,Ve._gearSecond_=pe())})(this,function(){"use strict";var cp=Object.defineProperty;var up=(Ve,pe,Xe)=>pe in Ve?cp(Ve,pe,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Ve[pe]=Xe;var Qs=(Ve,pe,Xe)=>(up(Ve,typeof pe!="symbol"?pe+"":pe,Xe),Xe);function Ve(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 pe={},Xe=[],ot=()=>{},Js=()=>!1,Gs=/^on[^a-z]/,Tn=e=>Gs.test(e),uo=e=>e.startsWith("onUpdate:"),Ce=Object.assign,fo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},el=Object.prototype.hasOwnProperty,ge=(e,t)=>el.call(e,t),te=Array.isArray,Yt=e=>$n(e)==="[object Map]",hr=e=>$n(e)==="[object Set]",ae=e=>typeof e=="function",Ie=e=>typeof e=="string",po=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",gr=e=>_e(e)&&ae(e.then)&&ae(e.catch),mr=Object.prototype.toString,$n=e=>mr.call(e),tl=e=>$n(e).slice(8,-1),vr=e=>$n(e)==="[object Object]",ho=e=>Ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,En=Ve(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nl=/-(\w)/g,He=Pn(e=>e.replace(nl,(t,n)=>n?n.toUpperCase():"")),ol=/\B([A-Z])/g,qe=Pn(e=>e.replace(ol,"-$1").toLowerCase()),On=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),go=Pn(e=>e?`on${On(e)}`:""),rn=(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})},mo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vo=e=>{const t=Ie(e)?Number(e):NaN;return isNaN(t)?e:t};let br;const bo=()=>br||(br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(te(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Ie(o)?ll(o):je(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 rl=/;(?![^(]*\))/g,il=/:([^]+)/,sl=/\/\*[^]*?\*\//g;function ll(e){const t={};return e.replace(sl,"").split(rl).forEach(n=>{if(n){const o=n.split(il);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Ie(e))t=e;else if(te(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 al=Ve("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function _r(e){return!!e||e===""}const Ze=e=>Ie(e)?e:e==null?"":te(e)||_e(e)&&(e.toString===mr||!ae(e.toString))?JSON.stringify(e,yr,2):String(e),yr=(e,t)=>t&&t.__v_isRef?yr(e,t.value):Yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:hr(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!te(t)&&!vr(t)?String(t):t;let We;class cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function ul(e,t=We){t&&t.active&&t.effects.push(e)}function wr(){return We}function fl(e){We&&We.cleanups.push(e)}const _o=e=>{const t=new Set(e);return t.w=0,t.n=0,t},xr=e=>(e.w&wt)>0,kr=e=>(e.n&wt)>0,dl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=wt},pl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];xr(r)&&!kr(r)?r.delete(e):t[n++]=r,r.w&=~wt,r.n&=~wt}t.length=n}},yo=new WeakMap;let sn=0,wt=1;const wo=30;let rt;const Lt=Symbol(""),xo=Symbol("");class ko{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ul(this,o)}run(){if(!this.active)return this.fn();let t=rt,n=xt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=rt,rt=this,xt=!0,wt=1<<++sn,sn<=wo?dl(this):Cr(this),this.fn()}finally{sn<=wo&&pl(this),wt=1<<--sn,rt=this.parent,xt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){rt===this?this.deferStop=!0:this.active&&(Cr(this),this.onStop&&this.onStop(),this.active=!1)}}function Cr(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 Sr=[];function Xt(){Sr.push(xt),xt=!1}function qt(){const e=Sr.pop();xt=e===void 0?!0:e}function Ne(e,t,n){if(xt&&rt){let o=yo.get(e);o||yo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=_o()),Ir(r)}}function Ir(e,t){let n=!1;sn<=wo?kr(e)||(e.n|=wt,n=!xr(e)):n=!e.has(rt),n&&(e.add(rt),rt.deps.push(e))}function pt(e,t,n,o,r,i){const s=yo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&te(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":te(e)?ho(n)&&l.push(s.get("length")):(l.push(s.get(Lt)),Yt(e)&&l.push(s.get(xo)));break;case"delete":te(e)||(l.push(s.get(Lt)),Yt(e)&&l.push(s.get(xo)));break;case"set":Yt(e)&&l.push(s.get(Lt));break}if(l.length===1)l[0]&&Co(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);Co(_o(a))}}function Co(e,t){const n=te(e)?e:[...e];for(const o of n)o.computed&&Tr(o);for(const o of n)o.computed||Tr(o)}function Tr(e,t){(e!==rt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const hl=Ve("__proto__,__v_isRef,__isVue"),$r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(po)),gl=So(),ml=So(!1,!0),vl=So(!0),Er=bl();function bl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=me(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(me)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Xt();const o=me(this)[t].apply(this,n);return qt(),o}}),e}function _l(e){const t=me(this);return Ne(t,"has",e),t.hasOwnProperty(e)}function So(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?Al:Dr:t?Br:jr).get(o))return o;const s=te(o);if(!e){if(s&&ge(Er,r))return Reflect.get(Er,r,i);if(r==="hasOwnProperty")return _l}const l=Reflect.get(o,r,i);return(po(r)?$r.has(r):hl(r))||(e||Ne(o,"get",r),t)?l:Te(l)?s&&ho(r)?l:l.value:_e(l)?e?Rr(l):ln(l):l}}const yl=Pr(),wl=Pr(!0);function Pr(e=!1){return function(n,o,r,i){let s=n[o];if(Qt(s)&&Te(s)&&!Te(r))return!1;if(!e&&(!Nn(r)&&!Qt(r)&&(s=me(s),r=me(r)),!te(n)&&Te(s)&&!Te(r)))return s.value=r,!0;const l=te(n)&&ho(o)?Number(o)<n.length:ge(n,o),a=Reflect.set(n,o,r,i);return n===me(i)&&(l?rn(r,s)&&pt(n,"set",o,r):pt(n,"add",o,r)),a}}function xl(e,t){const n=ge(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&pt(e,"delete",t,void 0),o}function kl(e,t){const n=Reflect.has(e,t);return(!po(t)||!$r.has(t))&&Ne(e,"has",t),n}function Cl(e){return Ne(e,"iterate",te(e)?"length":Lt),Reflect.ownKeys(e)}const Or={get:gl,set:yl,deleteProperty:xl,has:kl,ownKeys:Cl},Sl={get:vl,set(e,t){return!0},deleteProperty(e,t){return!0}},Il=Ce({},Or,{get:ml,set:wl}),Io=e=>e,zn=e=>Reflect.getPrototypeOf(e);function An(e,t,n=!1,o=!1){e=e.__v_raw;const r=me(e),i=me(t);n||(t!==i&&Ne(r,"get",t),Ne(r,"get",i));const{has:s}=zn(r),l=o?Io:n?Eo:an;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 jn(e,t=!1){const n=this.__v_raw,o=me(n),r=me(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(me(e),"iterate",Lt),Reflect.get(e,"size",e)}function Mr(e){e=me(e);const t=me(this);return zn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Lr(e,t){t=me(t);const n=me(this),{has:o,get:r}=zn(n);let i=o.call(n,e);i||(e=me(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?rn(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function zr(e){const t=me(this),{has:n,get:o}=zn(t);let r=n.call(t,e);r||(e=me(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 Ar(){const e=me(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=me(s),a=t?Io:e?Eo:an;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=me(r),s=Yt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Io:t?Eo:an;return!t&&Ne(i,"iterate",a?xo:Lt),{next(){const{value:p,done:h}=c.next();return h?{value:p,done:h}:{value:l?[u(p[0]),u(p[1])]:u(p),done:h}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(i){return An(this,i)},get size(){return Bn(this)},has:jn,add:Mr,set:Lr,delete:zr,clear:Ar,forEach:Dn(!1,!1)},t={get(i){return An(this,i,!1,!0)},get size(){return Bn(this)},has:jn,add:Mr,set:Lr,delete:zr,clear:Ar,forEach:Dn(!1,!0)},n={get(i){return An(this,i,!0)},get size(){return Bn(this,!0)},has(i){return jn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Dn(!0,!1)},o={get(i){return An(this,i,!0,!0)},get size(){return Bn(this,!0)},has(i){return jn.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[$l,El,Pl,Ol]=Tl();function To(e,t){const n=t?e?Ol:Pl:e?El:$l;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ge(n,r)&&r in o?n:o,r,i)}const Ml={get:To(!1,!1)},Ll={get:To(!1,!0)},zl={get:To(!0,!1)},jr=new WeakMap,Br=new WeakMap,Dr=new WeakMap,Al=new WeakMap;function jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bl(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(tl(e))}function ln(e){return Qt(e)?e:$o(e,!1,Or,Ml,jr)}function Dl(e){return $o(e,!1,Il,Ll,Br)}function Rr(e){return $o(e,!0,Sl,zl,Dr)}function $o(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=Bl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Zt(e){return Qt(e)?Zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function Nr(e){return Zt(e)||Qt(e)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function Fr(e){return Ln(e,"__v_skip",!0),e}const an=e=>_e(e)?ln(e):e,Eo=e=>_e(e)?Rr(e):e;function Vr(e){xt&&rt&&(e=me(e),Ir(e.dep||(e.dep=_o())))}function Hr(e,t){e=me(e);const n=e.dep;n&&Co(n)}function Te(e){return!!(e&&e.__v_isRef===!0)}function Q(e){return Rl(e,!1)}function Rl(e,t){return Te(e)?e:new Nl(e,t)}class Nl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:an(t)}get value(){return Vr(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||Qt(t);t=n?t:me(t),rn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:an(t),Hr(this))}}function ee(e){return Te(e)?e.value:e}const Fl={get:(e,t,n)=>ee(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Te(r)&&!Te(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Wr(e){return Zt(e)?e:new Proxy(e,Fl)}class Vl{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ko(t,()=>{this._dirty||(this._dirty=!0,Hr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=me(this);return Vr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Hl(e,t,n=!1){let o,r;const i=ae(e);return i?(o=e,r=ot):(o=e.get,r=e.set),new Vl(o,r,i||!r,n)}function dp(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(ae(e)){const i=Ct(e,t,n,o);return i&&gr(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}}Wl(e,n,r,o)}function Wl(e,t,n,o=!0){console.error(e)}let cn=!1,Po=!1;const Ae=[];let lt=0;const Jt=[];let ht=null,zt=0;const Ur=Promise.resolve();let Oo=null;function gt(e){const t=Oo||Ur;return e?t.then(this?e.bind(this):e):t}function Ul(e){let t=lt+1,n=Ae.length;for(;t<n;){const o=t+n>>>1;un(Ae[o])<e?t=o+1:n=o}return t}function Mo(e){(!Ae.length||!Ae.includes(e,cn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Ae.push(e):Ae.splice(Ul(e.id),0,e),Kr())}function Kr(){!cn&&!Po&&(Po=!0,Oo=Ur.then(qr))}function Kl(e){const t=Ae.indexOf(e);t>lt&&Ae.splice(t,1)}function Yl(e){te(e)?Jt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?zt+1:zt))&&Jt.push(e),Kr()}function Yr(e,t=cn?lt+1:0){for(;t<Ae.length;t++){const n=Ae[t];n&&n.pre&&(Ae.splice(t,1),t--,n())}}function Xr(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)=>un(n)-un(o)),zt=0;zt<ht.length;zt++)ht[zt]();ht=null,zt=0}}const un=e=>e.id==null?1/0:e.id,Xl=(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 qr(e){Po=!1,cn=!0,Ae.sort(Xl);const t=ot;try{for(lt=0;lt<Ae.length;lt++){const n=Ae[lt];n&&n.active!==!1&&Ct(n,null,14)}}finally{lt=0,Ae.length=0,Xr(),cn=!1,Oo=null,(Ae.length||Jt.length)&&qr()}}function ql(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||pe;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:p,trim:h}=o[u]||pe;h&&(r=n.map(v=>Ie(v)?v.trim():v)),p&&(r=n.map(mo))}let l,a=o[l=go(t)]||o[l=go(He(t))];!a&&i&&(a=o[l=go(qe(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 Zr(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(!ae(e)){const a=c=>{const u=Zr(c,t,!0);u&&(l=!0,Ce(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):(te(i)?i.forEach(a=>s[a]=null):Ce(s,i),_e(e)&&o.set(e,s),s)}function Vn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,qe(t))||ge(e,t))}let ze=null,Qr=null;function Hn(e){const t=ze;return ze=e,Qr=e&&e.type.__scopeId||null,t}function ce(e,t=ze,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ti(-1);const i=Hn(t);let s;try{s=e(...r)}finally{Hn(i),o._d&&Ti(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function pp(){}function Lo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:p,data:h,setupState:v,ctx:x,inheritAttrs:k}=e;let z,X;const $=Hn(e);try{if(n.shapeFlag&4){const g=r||o;z=ct(u.call(g,g,p,i,v,h,x)),X=a}else{const g=t;z=ct(g.length>1?g(i,{attrs:a,slots:l,emit:c}):g(i,null)),X=t.props?a:Zl(a)}}catch(g){gn.length=0,Fn(g,e,1),z=J(et)}let N=z;if(X&&k!==!1){const g=Object.keys(X),{shapeFlag:T}=N;g.length&&T&7&&(s&&g.some(uo)&&(X=Ql(X,s)),N=St(N,X))}return n.dirs&&(N=St(N),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),z=N,Hn($),z}const Zl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},Ql=(e,t)=>{const n={};for(const o in e)(!uo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Jl(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?Jr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const h=u[p];if(s[h]!==o[h]&&!Vn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?Jr(o,s,c):!0:!!s;return!1}function Jr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Vn(n,i))return!0}return!1}function Gl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ea=e=>e.__isSuspense;function ta(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):Yl(e)}const Wn={};function ve(e,t,n){return Gr(e,t,n)}function Gr(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=pe){var l;const a=wr()===((l=Le)==null?void 0:l.scope)?Le:null;let c,u=!1,p=!1;if(Te(e)?(c=()=>e.value,u=Nn(e)):Zt(e)?(c=()=>e,o=!0):te(e)?(p=!0,u=e.some(g=>Zt(g)||Nn(g)),c=()=>e.map(g=>{if(Te(g))return g.value;if(Zt(g))return At(g);if(ae(g))return Ct(g,a,2)})):ae(e)?t?c=()=>Ct(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Qe(e,a,3,[v])}:c=ot,t&&o){const g=c;c=()=>At(g())}let h,v=g=>{h=$.onStop=()=>{Ct(g,a,4)}},x;if(vn)if(v=ot,t?n&&Qe(t,a,3,[c(),p?[]:void 0,v]):c(),r==="sync"){const g=Ya();x=g.__watcherHandles||(g.__watcherHandles=[])}else return ot;let k=p?new Array(e.length).fill(Wn):Wn;const z=()=>{if($.active)if(t){const g=$.run();(o||u||(p?g.some((T,P)=>rn(T,k[P])):rn(g,k)))&&(h&&h(),Qe(t,a,3,[g,k===Wn?void 0:p&&k[0]===Wn?[]:k,v]),k=g)}else $.run()};z.allowRecurse=!!t;let X;r==="sync"?X=z:r==="post"?X=()=>Fe(z,a&&a.suspense):(z.pre=!0,a&&(z.id=a.uid),X=()=>Mo(z));const $=new ko(c,X);t?n?z():k=$.run():r==="post"?Fe($.run.bind($),a&&a.suspense):$.run();const N=()=>{$.stop(),a&&a.scope&&fo(a.scope.effects,$)};return x&&x.push(N),N}function na(e,t,n){const o=this.proxy,r=Ie(e)?e.includes(".")?ei(o,e):()=>o[e]:e.bind(o,o);let i;ae(t)?i=t:(i=t.handler,n=t);const s=Le;en(this);const l=Gr(r,i.bind(o),n);return s?en(s):Nt(),l}function ei(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 At(e,t){if(!_e(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Te(e))At(e.value,t);else if(te(e))for(let n=0;n<e.length;n++)At(e[n],t);else if(hr(e)||Yt(e))e.forEach(n=>{At(n,t)});else if(vr(e))for(const n in e)At(e[n],t);return e}function mt(e,t){const n=ze;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=pe]=t[i];s&&(ae(s)&&(s={mounted:s,updated:s}),s.deep&&At(l),r.push({dir:s,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function jt(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&&(Xt(),Qe(a,n,8,[e.el,l,e,t]),qt())}}function oa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ge(()=>{e.isMounted=!0}),Yn(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],ti={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},ra={name:"BaseTransition",props:ti,setup(e,{slots:t}){const n=Pi(),o=oa();let r;return()=>{const i=t.default&&ri(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const k of i)if(k.type!==et){s=k;break}}const l=me(e),{mode:a}=l;if(o.isLeaving)return Ao(s);const c=oi(s);if(!c)return Ao(s);const u=zo(c,l,o,n);jo(c,u);const p=n.subTree,h=p&&oi(p);let v=!1;const{getTransitionKey:x}=c.type;if(x){const k=x();r===void 0?r=k:k!==r&&(r=k,v=!0)}if(h&&h.type!==et&&(!Rt(c,h)||v)){const k=zo(h,l,o,n);if(jo(h,k),a==="out-in")return o.isLeaving=!0,k.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Ao(s);a==="in-out"&&c.type!==et&&(k.delayLeave=(z,X,$)=>{const N=ni(o,h);N[String(h.key)]=h,z._leaveCb=()=>{X(),z._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=$})}return s}}};function ni(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function zo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:h,onAfterLeave:v,onLeaveCancelled:x,onBeforeAppear:k,onAppear:z,onAfterAppear:X,onAppearCancelled:$}=t,N=String(e.key),g=ni(n,e),T=(S,L)=>{S&&Qe(S,o,9,L)},P=(S,L)=>{const oe=L[1];T(S,L),te(S)?S.every(fe=>fe.length<=1)&&oe():S.length<=1&&oe()},j={mode:i,persisted:s,beforeEnter(S){let L=l;if(!n.isMounted)if(r)L=k||l;else return;S._leaveCb&&S._leaveCb(!0);const oe=g[N];oe&&Rt(e,oe)&&oe.el._leaveCb&&oe.el._leaveCb(),T(L,[S])},enter(S){let L=a,oe=c,fe=u;if(!n.isMounted)if(r)L=z||a,oe=X||c,fe=$||u;else return;let y=!1;const b=S._enterCb=W=>{y||(y=!0,W?T(fe,[S]):T(oe,[S]),j.delayedLeave&&j.delayedLeave(),S._enterCb=void 0)};L?P(L,[S,b]):b()},leave(S,L){const oe=String(e.key);if(S._enterCb&&S._enterCb(!0),n.isUnmounting)return L();T(p,[S]);let fe=!1;const y=S._leaveCb=b=>{fe||(fe=!0,L(),b?T(x,[S]):T(v,[S]),S._leaveCb=void 0,g[oe]===e&&delete g[oe])};g[oe]=e,h?P(h,[S,y]):y()},clone(S){return zo(S,t,n,o)}};return j}function Ao(e){if(Un(e))return e=St(e),e.children=null,e}function oi(e){return Un(e)?e.children?e.children[0]:void 0:e}function jo(e,t){e.shapeFlag&6&&e.component?jo(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 ri(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===Se?(s.patchFlag&128&&r++,o=o.concat(ri(s.children,t,l))):(t||s.type!==et)&&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 $e(e,t){return ae(e)?(()=>Ce({name:e.name},t,{setup:e}))():e}const fn=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function ia(e,t){ii(e,"a",t)}function sa(e,t){ii(e,"da",t)}function ii(e,t,n=Le){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)&&la(o,t,n,r),r=r.parent}}function la(e,t,n,o){const r=Kn(t,e,o,!0);at(()=>{fo(o[t],r)},n)}function Kn(e,t,n=Le,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Xt(),en(n);const l=Qe(t,n,e,s);return Nt(),qt(),l});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Le)=>(!vn||e==="sp")&&Kn(e,(...o)=>t(...o),n),aa=vt("bm"),Ge=vt("m"),ca=vt("bu"),ua=vt("u"),Yn=vt("bum"),at=vt("um"),fa=vt("sp"),da=vt("rtg"),pa=vt("rtc");function ha(e,t=Le){Kn("ec",e,t)}const si="components",li=Symbol.for("v-ndc");function ga(e){return Ie(e)?ma(si,e,!1)||e:e||li}function ma(e,t,n=!0,o=!1){const r=ze||Le;if(r){const i=r.type;if(e===si){const l=Wa(i,!1);if(l&&(l===t||l===He(t)||l===On(He(t))))return i}const s=ai(r[e]||i[e],t)||ai(r.appContext[e],t);return!s&&o?i:s}}function ai(e,t){return e&&(e[t]||e[He(t)]||e[On(He(t))])}function dn(e,t,n,o){let r;const i=n&&n[o];if(te(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 ci(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(te(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 Ee(e,t,n={},o,r){if(ze.isCE||ze.parent&&fn(ze.parent)&&ze.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),A();const s=i&&ui(i(n)),l=xe(Se,{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 ui(e){return e.some(t=>Jn(t)?!(t.type===et||t.type===Se&&!ui(t.children)):!0)?e:null}const Bo=e=>e?Mi(e)?no(e)||e.proxy:Bo(e.parent):null,pn=Ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Mo(e.update)),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>na.bind(e)}),Do=(e,t)=>e!==pe&&!e.__isScriptSetup&&ge(e,t),va={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 v=s[t];if(v!==void 0)switch(v){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Do(o,t))return s[t]=1,o[t];if(r!==pe&&ge(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ge(c,t))return s[t]=3,i[t];if(n!==pe&&ge(n,t))return s[t]=4,n[t];Ro&&(s[t]=0)}}const u=pn[t];let p,h;if(u)return t==="$attrs"&&Ne(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==pe&&ge(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ge(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Do(r,t)?(r[t]=n,!0):o!==pe&&ge(o,t)?(o[t]=n,!0):ge(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!==pe&&ge(e,s)||Do(t,s)||(l=i[0])&&ge(l,s)||ge(o,s)||ge(pn,s)||ge(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fi(e){return te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function ba(e){const t=No(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&di(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:p,mounted:h,beforeUpdate:v,updated:x,activated:k,deactivated:z,beforeDestroy:X,beforeUnmount:$,destroyed:N,unmounted:g,render:T,renderTracked:P,renderTriggered:j,errorCaptured:S,serverPrefetch:L,expose:oe,inheritAttrs:fe,components:y,directives:b,filters:W}=t;if(c&&_a(c,o,null),s)for(const ue in s){const re=s[ue];ae(re)&&(o[ue]=re.bind(n))}if(r){const ue=r.call(n,n);_e(ue)&&(e.data=ln(ue))}if(Ro=!0,i)for(const ue in i){const re=i[ue],D=ae(re)?re.bind(n,n):ae(re.get)?re.get.bind(n,n):ot,q=!ae(re)&&ae(re.set)?re.set.bind(n):ot,F=se({get:D,set:q});Object.defineProperty(o,ue,{enumerable:!0,configurable:!0,get:()=>F.value,set:U=>F.value=U})}if(l)for(const ue in l)pi(l[ue],o,n,ue);if(a){const ue=ae(a)?a.call(n):a;Reflect.ownKeys(ue).forEach(re=>{Zn(re,ue[re])})}u&&di(u,e,"c");function V(ue,re){te(re)?re.forEach(D=>ue(D.bind(n))):re&&ue(re.bind(n))}if(V(aa,p),V(Ge,h),V(ca,v),V(ua,x),V(ia,k),V(sa,z),V(ha,S),V(pa,P),V(da,j),V(Yn,$),V(at,g),V(fa,L),te(oe))if(oe.length){const ue=e.exposed||(e.exposed={});oe.forEach(re=>{Object.defineProperty(ue,re,{get:()=>n[re],set:D=>n[re]=D})})}else e.exposed||(e.exposed={});T&&e.render===ot&&(e.render=T),fe!=null&&(e.inheritAttrs=fe),y&&(e.components=y),b&&(e.directives=b)}function _a(e,t,n=ot){te(e)&&(e=Fo(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),Te(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function di(e,t,n){Qe(te(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function pi(e,t,n,o){const r=o.includes(".")?ei(n,o):()=>n[o];if(Ie(e)){const i=t[e];ae(i)&&ve(r,i)}else if(ae(e))ve(r,e.bind(n));else if(_e(e))if(te(e))e.forEach(i=>pi(i,t,n,o));else{const i=ae(e.handler)?e.handler.bind(n):t[e.handler];ae(i)&&ve(r,i,e)}}function No(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=ya[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ya={data:hi,props:gi,emits:gi,methods:hn,computed:hn,beforeCreate:Be,created:Be,beforeMount:Be,mounted:Be,beforeUpdate:Be,updated:Be,beforeDestroy:Be,beforeUnmount:Be,destroyed:Be,unmounted:Be,activated:Be,deactivated:Be,errorCaptured:Be,serverPrefetch:Be,components:hn,directives:hn,watch:xa,provide:hi,inject:wa};function hi(e,t){return t?e?function(){return Ce(ae(e)?e.call(this,this):e,ae(t)?t.call(this,this):t)}:t:e}function wa(e,t){return hn(Fo(e),Fo(t))}function Fo(e){if(te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Be(e,t){return e?[...new Set([].concat(e,t))]:t}function hn(e,t){return e?Ce(Object.create(null),e,t):t}function gi(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:Ce(Object.create(null),fi(e),fi(t??{})):t}function xa(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const o in t)n[o]=Be(e[o],t[o]);return n}function mi(){return{app:null,config:{isNativeTag:Js,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ka=0;function Ca(e,t){return function(o,r=null){ae(o)||(o=Ce({},o)),r!=null&&!_e(r)&&(r=null);const i=mi(),s=new Set;let l=!1;const a=i.app={_uid:ka++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:Xa,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&ae(c.install)?(s.add(c),c.install(a,...u)):ae(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,p){if(!l){const h=J(o,r);return h.appContext=i,u&&t?t(h,c):e(h,c,p),l=!0,a._container=c,c.__vue_app__=a,no(h.component)||h.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(Le){let n=Le.provides;const o=Le.parent&&Le.parent.provides;o===n&&(n=Le.provides=Object.create(o)),n[e]=t}}function Bt(e,t,n=!1){const o=Le||ze;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&&ae(t)?t.call(o&&o.proxy):t}}function Sa(e,t,n,o=!1){const r={},i={};Ln(i,Gn,1),e.propsDefaults=Object.create(null),vi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Dl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ia(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=me(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let h=u[p];if(Vn(e.emitsOptions,h))continue;const v=t[h];if(a)if(ge(i,h))v!==i[h]&&(i[h]=v,c=!0);else{const x=He(h);r[x]=Vo(a,l,x,v,e,!1)}else v!==i[h]&&(i[h]=v,c=!0)}}}else{vi(e,t,r,i)&&(c=!0);let u;for(const p in l)(!t||!ge(t,p)&&((u=qe(p))===p||!ge(t,u)))&&(a?n&&(n[p]!==void 0||n[u]!==void 0)&&(r[p]=Vo(a,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!ge(t,p))&&(delete i[p],c=!0)}c&&pt(e,"set","$attrs")}function vi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(En(a))continue;const c=t[a];let u;r&&ge(r,u=He(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=me(n),c=l||pe;for(let u=0;u<i.length;u++){const p=i[u];n[p]=Vo(r,a,p,c[p],e,!ge(c,p))}}return s}function Vo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ge(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ae(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(en(r),o=c[n]=a.call(null,t),Nt())}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===qe(n))&&(o=!0))}return o}function bi(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(!ae(e)){const u=p=>{a=!0;const[h,v]=bi(p,t,!0);Ce(s,h),v&&l.push(...v)};!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,Xe),Xe;if(te(i))for(let u=0;u<i.length;u++){const p=He(i[u]);_i(p)&&(s[p]=pe)}else if(i)for(const u in i){const p=He(u);if(_i(p)){const h=i[u],v=s[p]=te(h)||ae(h)?{type:h}:Ce({},h);if(v){const x=xi(Boolean,v.type),k=xi(String,v.type);v[0]=x>-1,v[1]=k<0||x<k,(x>-1||ge(v,"default"))&&l.push(p)}}}const c=[s,l];return _e(e)&&o.set(e,c),c}function _i(e){return e[0]!=="$"}function yi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function wi(e,t){return yi(e)===yi(t)}function xi(e,t){return te(t)?t.findIndex(n=>wi(n,e)):ae(t)&&wi(t,e)?0:-1}const ki=e=>e[0]==="_"||e==="$stable",Ho=e=>te(e)?e.map(ct):[ct(e)],Ta=(e,t,n)=>{if(t._n)return t;const o=ce((...r)=>Ho(t(...r)),n);return o._c=!1,o},Ci=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ki(r))continue;const i=e[r];if(ae(i))t[r]=Ta(r,i,o);else if(i!=null){const s=Ho(i);t[r]=()=>s}}},Si=(e,t)=>{const n=Ho(t);e.slots.default=()=>n},$a=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=me(t),Ln(t,"_",n)):Ci(t,e.slots={})}else e.slots={},t&&Si(e,t);Ln(e.slots,Gn,1)},Ea=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=pe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Ce(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ci(t,r)),s=t}else t&&(Si(e,t),s={default:1});if(i)for(const l in r)!ki(l)&&!(l in s)&&delete r[l]};function Wo(e,t,n,o,r=!1){if(te(e)){e.forEach((h,v)=>Wo(h,t&&(te(t)?t[v]:t),n,o,r));return}if(fn(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===pe?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(Ie(c)?(u[c]=null,ge(p,c)&&(p[c]=null)):Te(c)&&(c.value=null)),ae(a))Ct(a,l,12,[s,u]);else{const h=Ie(a),v=Te(a);if(h||v){const x=()=>{if(e.f){const k=h?ge(p,a)?p[a]:u[a]:a.value;r?te(k)&&fo(k,i):te(k)?k.includes(i)||k.push(i):h?(u[a]=[i],ge(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ge(p,a)&&(p[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(x.id=-1,Fe(x,n)):x()}}}const Fe=ta;function Pa(e){return Oa(e)}function Oa(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:p,nextSibling:h,setScopeId:v=ot,insertStaticContent:x}=e,k=(f,d,_,I=null,C=null,O=null,R=!1,M=null,B=!!d.dynamicChildren)=>{if(f===d)return;f&&!Rt(f,d)&&(I=we(f),U(f,C,O,!0),f=null),d.patchFlag===-2&&(B=!1,d.dynamicChildren=null);const{type:E,ref:Z,shapeFlag:m}=d;switch(E){case Qn:z(f,d,_,I);break;case et:X(f,d,_,I);break;case Uo:f==null&&$(d,_,I,R);break;case Se:y(f,d,_,I,C,O,R,M,B);break;default:m&1?T(f,d,_,I,C,O,R,M,B):m&6?b(f,d,_,I,C,O,R,M,B):(m&64||m&128)&&E.process(f,d,_,I,C,O,R,M,B,st)}Z!=null&&C&&Wo(Z,f&&f.ref,O,d||f,!d)},z=(f,d,_,I)=>{if(f==null)o(d.el=l(d.children),_,I);else{const C=d.el=f.el;d.children!==f.children&&c(C,d.children)}},X=(f,d,_,I)=>{f==null?o(d.el=a(d.children||""),_,I):d.el=f.el},$=(f,d,_,I)=>{[f.el,f.anchor]=x(f.children,d,_,I,f.el,f.anchor)},N=({el:f,anchor:d},_,I)=>{let C;for(;f&&f!==d;)C=h(f),o(f,_,I),f=C;o(d,_,I)},g=({el:f,anchor:d})=>{let _;for(;f&&f!==d;)_=h(f),r(f),f=_;r(d)},T=(f,d,_,I,C,O,R,M,B)=>{R=R||d.type==="svg",f==null?P(d,_,I,C,O,R,M,B):L(f,d,C,O,R,M,B)},P=(f,d,_,I,C,O,R,M)=>{let B,E;const{type:Z,props:m,shapeFlag:w,transition:H,dirs:ie}=f;if(B=f.el=s(f.type,O,m&&m.is,m),w&8?u(B,f.children):w&16&&S(f.children,B,null,I,C,O&&Z!=="foreignObject",R,M),ie&&jt(f,null,I,"created"),j(B,f,f.scopeId,R,I),m){for(const be in m)be!=="value"&&!En(be)&&i(B,be,null,m[be],O,f.children,I,C,le);"value"in m&&i(B,"value",null,m.value),(E=m.onVnodeBeforeMount)&&ut(E,I,f)}ie&&jt(f,null,I,"beforeMount");const he=(!C||C&&!C.pendingBranch)&&H&&!H.persisted;he&&H.beforeEnter(B),o(B,d,_),((E=m&&m.onVnodeMounted)||he||ie)&&Fe(()=>{E&&ut(E,I,f),he&&H.enter(B),ie&&jt(f,null,I,"mounted")},C)},j=(f,d,_,I,C)=>{if(_&&v(f,_),I)for(let O=0;O<I.length;O++)v(f,I[O]);if(C){let O=C.subTree;if(d===O){const R=C.vnode;j(f,R,R.scopeId,R.slotScopeIds,C.parent)}}},S=(f,d,_,I,C,O,R,M,B=0)=>{for(let E=B;E<f.length;E++){const Z=f[E]=M?Tt(f[E]):ct(f[E]);k(null,Z,d,_,I,C,O,R,M)}},L=(f,d,_,I,C,O,R)=>{const M=d.el=f.el;let{patchFlag:B,dynamicChildren:E,dirs:Z}=d;B|=f.patchFlag&16;const m=f.props||pe,w=d.props||pe;let H;_&&Dt(_,!1),(H=w.onVnodeBeforeUpdate)&&ut(H,_,d,f),Z&&jt(d,f,_,"beforeUpdate"),_&&Dt(_,!0);const ie=C&&d.type!=="foreignObject";if(E?oe(f.dynamicChildren,E,M,_,I,ie,O):R||re(f,d,M,null,_,I,ie,O,!1),B>0){if(B&16)fe(M,d,m,w,_,I,C);else if(B&2&&m.class!==w.class&&i(M,"class",null,w.class,C),B&4&&i(M,"style",m.style,w.style,C),B&8){const he=d.dynamicProps;for(let be=0;be<he.length;be++){const ke=he[be],Ye=m[ke],Mt=w[ke];(Mt!==Ye||ke==="value")&&i(M,ke,Ye,Mt,C,f.children,_,I,le)}}B&1&&f.children!==d.children&&u(M,d.children)}else!R&&E==null&&fe(M,d,m,w,_,I,C);((H=w.onVnodeUpdated)||Z)&&Fe(()=>{H&&ut(H,_,d,f),Z&&jt(d,f,_,"updated")},I)},oe=(f,d,_,I,C,O,R)=>{for(let M=0;M<d.length;M++){const B=f[M],E=d[M],Z=B.el&&(B.type===Se||!Rt(B,E)||B.shapeFlag&70)?p(B.el):_;k(B,E,Z,null,I,C,O,R,!0)}},fe=(f,d,_,I,C,O,R)=>{if(_!==I){if(_!==pe)for(const M in _)!En(M)&&!(M in I)&&i(f,M,_[M],null,R,d.children,C,O,le);for(const M in I){if(En(M))continue;const B=I[M],E=_[M];B!==E&&M!=="value"&&i(f,M,E,B,R,d.children,C,O,le)}"value"in I&&i(f,"value",_.value,I.value)}},y=(f,d,_,I,C,O,R,M,B)=>{const E=d.el=f?f.el:l(""),Z=d.anchor=f?f.anchor:l("");let{patchFlag:m,dynamicChildren:w,slotScopeIds:H}=d;H&&(M=M?M.concat(H):H),f==null?(o(E,_,I),o(Z,_,I),S(d.children,_,Z,C,O,R,M,B)):m>0&&m&64&&w&&f.dynamicChildren?(oe(f.dynamicChildren,w,_,C,O,R,M),(d.key!=null||C&&d===C.subTree)&&Ii(f,d,!0)):re(f,d,_,Z,C,O,R,M,B)},b=(f,d,_,I,C,O,R,M,B)=>{d.slotScopeIds=M,f==null?d.shapeFlag&512?C.ctx.activate(d,_,I,R,B):W(d,_,I,C,O,R,B):ne(f,d,B)},W=(f,d,_,I,C,O,R)=>{const M=f.component=Ra(f,I,C);if(Un(f)&&(M.ctx.renderer=st),Na(M),M.asyncDep){if(C&&C.registerDep(M,V),!f.el){const B=M.subTree=J(et);X(null,B,d,_)}return}V(M,f,d,_,C,O,R)},ne=(f,d,_)=>{const I=d.component=f.component;if(Jl(f,d,_))if(I.asyncDep&&!I.asyncResolved){ue(I,d,_);return}else I.next=d,Kl(I.update),I.update();else d.el=f.el,I.vnode=d},V=(f,d,_,I,C,O,R)=>{const M=()=>{if(f.isMounted){let{next:Z,bu:m,u:w,parent:H,vnode:ie}=f,he=Z,be;Dt(f,!1),Z?(Z.el=ie.el,ue(f,Z,R)):Z=ie,m&&Mn(m),(be=Z.props&&Z.props.onVnodeBeforeUpdate)&&ut(be,H,Z,ie),Dt(f,!0);const ke=Lo(f),Ye=f.subTree;f.subTree=ke,k(Ye,ke,p(Ye.el),we(Ye),f,C,O),Z.el=ke.el,he===null&&Gl(f,ke.el),w&&Fe(w,C),(be=Z.props&&Z.props.onVnodeUpdated)&&Fe(()=>ut(be,H,Z,ie),C)}else{let Z;const{el:m,props:w}=d,{bm:H,m:ie,parent:he}=f,be=fn(d);if(Dt(f,!1),H&&Mn(H),!be&&(Z=w&&w.onVnodeBeforeMount)&&ut(Z,he,d),Dt(f,!0),m&&In){const ke=()=>{f.subTree=Lo(f),In(m,f.subTree,f,C,null)};be?d.type.__asyncLoader().then(()=>!f.isUnmounted&&ke()):ke()}else{const ke=f.subTree=Lo(f);k(null,ke,_,I,f,C,O),d.el=ke.el}if(ie&&Fe(ie,C),!be&&(Z=w&&w.onVnodeMounted)){const ke=d;Fe(()=>ut(Z,he,ke),C)}(d.shapeFlag&256||he&&fn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&Fe(f.a,C),f.isMounted=!0,d=_=I=null}},B=f.effect=new ko(M,()=>Mo(E),f.scope),E=f.update=()=>B.run();E.id=f.uid,Dt(f,!0),E()},ue=(f,d,_)=>{d.component=f;const I=f.vnode.props;f.vnode=d,f.next=null,Ia(f,d.props,I,_),Ea(f,d.children,_),Xt(),Yr(),qt()},re=(f,d,_,I,C,O,R,M,B=!1)=>{const E=f&&f.children,Z=f?f.shapeFlag:0,m=d.children,{patchFlag:w,shapeFlag:H}=d;if(w>0){if(w&128){q(E,m,_,I,C,O,R,M,B);return}else if(w&256){D(E,m,_,I,C,O,R,M,B);return}}H&8?(Z&16&&le(E,C,O),m!==E&&u(_,m)):Z&16?H&16?q(E,m,_,I,C,O,R,M,B):le(E,C,O,!0):(Z&8&&u(_,""),H&16&&S(m,_,I,C,O,R,M,B))},D=(f,d,_,I,C,O,R,M,B)=>{f=f||Xe,d=d||Xe;const E=f.length,Z=d.length,m=Math.min(E,Z);let w;for(w=0;w<m;w++){const H=d[w]=B?Tt(d[w]):ct(d[w]);k(f[w],H,_,null,C,O,R,M,B)}E>Z?le(f,C,O,!0,!1,m):S(d,_,I,C,O,R,M,B,m)},q=(f,d,_,I,C,O,R,M,B)=>{let E=0;const Z=d.length;let m=f.length-1,w=Z-1;for(;E<=m&&E<=w;){const H=f[E],ie=d[E]=B?Tt(d[E]):ct(d[E]);if(Rt(H,ie))k(H,ie,_,null,C,O,R,M,B);else break;E++}for(;E<=m&&E<=w;){const H=f[m],ie=d[w]=B?Tt(d[w]):ct(d[w]);if(Rt(H,ie))k(H,ie,_,null,C,O,R,M,B);else break;m--,w--}if(E>m){if(E<=w){const H=w+1,ie=H<Z?d[H].el:I;for(;E<=w;)k(null,d[E]=B?Tt(d[E]):ct(d[E]),_,ie,C,O,R,M,B),E++}}else if(E>w)for(;E<=m;)U(f[E],C,O,!0),E++;else{const H=E,ie=E,he=new Map;for(E=ie;E<=w;E++){const Re=d[E]=B?Tt(d[E]):ct(d[E]);Re.key!=null&&he.set(Re.key,E)}let be,ke=0;const Ye=w-ie+1;let Mt=!1,dt=0;const Kt=new Array(Ye);for(E=0;E<Ye;E++)Kt[E]=0;for(E=H;E<=m;E++){const Re=f[E];if(ke>=Ye){U(Re,C,O,!0);continue}let nt;if(Re.key!=null)nt=he.get(Re.key);else for(be=ie;be<=w;be++)if(Kt[be-ie]===0&&Rt(Re,d[be])){nt=be;break}nt===void 0?U(Re,C,O,!0):(Kt[nt-ie]=E+1,nt>=dt?dt=nt:Mt=!0,k(Re,d[nt],_,null,C,O,R,M,B),ke++)}const ao=Mt?Ma(Kt):Xe;for(be=ao.length-1,E=Ye-1;E>=0;E--){const Re=ie+E,nt=d[Re],co=Re+1<Z?d[Re+1].el:I;Kt[E]===0?k(null,nt,_,co,C,O,R,M,B):Mt&&(be<0||E!==ao[be]?F(nt,_,co,2):be--)}}},F=(f,d,_,I,C=null)=>{const{el:O,type:R,transition:M,children:B,shapeFlag:E}=f;if(E&6){F(f.component.subTree,d,_,I);return}if(E&128){f.suspense.move(d,_,I);return}if(E&64){R.move(f,d,_,st);return}if(R===Se){o(O,d,_);for(let m=0;m<B.length;m++)F(B[m],d,_,I);o(f.anchor,d,_);return}if(R===Uo){N(f,d,_);return}if(I!==2&&E&1&&M)if(I===0)M.beforeEnter(O),o(O,d,_),Fe(()=>M.enter(O),C);else{const{leave:m,delayLeave:w,afterLeave:H}=M,ie=()=>o(O,d,_),he=()=>{m(O,()=>{ie(),H&&H()})};w?w(O,ie,he):he()}else o(O,d,_)},U=(f,d,_,I=!1,C=!1)=>{const{type:O,props:R,ref:M,children:B,dynamicChildren:E,shapeFlag:Z,patchFlag:m,dirs:w}=f;if(M!=null&&Wo(M,null,_,f,!0),Z&256){d.ctx.deactivate(f);return}const H=Z&1&&w,ie=!fn(f);let he;if(ie&&(he=R&&R.onVnodeBeforeUnmount)&&ut(he,d,f),Z&6)Pe(f.component,_,I);else{if(Z&128){f.suspense.unmount(_,I);return}H&&jt(f,null,d,"beforeUnmount"),Z&64?f.type.remove(f,d,_,C,st,I):E&&(O!==Se||m>0&&m&64)?le(E,d,_,!1,!0):(O===Se&&m&384||!C&&Z&16)&&le(B,d,_),I&&G(f)}(ie&&(he=R&&R.onVnodeUnmounted)||H)&&Fe(()=>{he&&ut(he,d,f),H&&jt(f,null,d,"unmounted")},_)},G=f=>{const{type:d,el:_,anchor:I,transition:C}=f;if(d===Se){de(_,I);return}if(d===Uo){g(f);return}const O=()=>{r(_),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(f.shapeFlag&1&&C&&!C.persisted){const{leave:R,delayLeave:M}=C,B=()=>R(_,O);M?M(f.el,O,B):B()}else O()},de=(f,d)=>{let _;for(;f!==d;)_=h(f),r(f),f=_;r(d)},Pe=(f,d,_)=>{const{bum:I,scope:C,update:O,subTree:R,um:M}=f;I&&Mn(I),C.stop(),O&&(O.active=!1,U(R,f,d,_)),M&&Fe(M,d),Fe(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},le=(f,d,_,I=!1,C=!1,O=0)=>{for(let R=O;R<f.length;R++)U(f[R],d,_,I,C)},we=f=>f.shapeFlag&6?we(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),De=(f,d,_)=>{f==null?d._vnode&&U(d._vnode,null,null,!0):k(d._vnode||null,f,d,null,null,null,_),Yr(),Xr(),d._vnode=f},st={p:k,um:U,m:F,r:G,mt:W,mc:S,pc:re,pbc:oe,n:we,o:e};let bt,In;return t&&([bt,In]=t(st)),{render:De,hydrate:bt,createApp:Ca(De,bt)}}function Dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ii(e,t,n=!1){const o=e.children,r=t.children;if(te(o)&&te(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]=Tt(r[i]),l.el=s.el),n||Ii(s,l)),l.type===Qn&&(l.el=s.el)}}function Ma(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 La=e=>e.__isTeleport,Se=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),gn=[];let it=null;function A(e=!1){gn.push(it=e?null:[])}function za(){gn.pop(),it=gn[gn.length-1]||null}let mn=1;function Ti(e){mn+=e}function $i(e){return e.dynamicChildren=mn>0?it||Xe:null,za(),mn>0&&it&&it.push(e),e}function Y(e,t,n,o,r,i){return $i(K(e,t,n,o,r,i,!0))}function xe(e,t,n,o,r){return $i(J(e,t,n,o,r,!0))}function Jn(e){return e?e.__v_isVNode===!0:!1}function Rt(e,t){return e.type===t.type&&e.key===t.key}const Gn="__vInternal",Ei=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||Te(e)||ae(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,o=0,r=null,i=e===Se?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ei(t),ref:t&&eo(t),scopeId:Qr,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:ze};return l?(Ko(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Ie(n)?8:16),mn>0&&!s&&it&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&it.push(a),a}const J=Aa;function Aa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===li)&&(e=et),Jn(e)){const l=St(e,t,!0);return n&&Ko(l,n),mn>0&&!i&&it&&(l.shapeFlag&6?it[it.indexOf(e)]=l:it.push(l)),l.patchFlag|=-2,l}if(Ua(e)&&(e=e.__vccOpts),t){t=ja(t);let{class:l,style:a}=t;l&&!Ie(l)&&(t.class=Oe(l)),_e(a)&&(Nr(a)&&!te(a)&&(a=Ce({},a)),t.style=je(a))}const s=Ie(e)?1:ea(e)?128:La(e)?64:_e(e)?4:ae(e)?2:0;return K(e,t,n,o,r,s,i,!0)}function ja(e){return e?Nr(e)||Gn in e?Ce({},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&&Ei(l),ref:t&&t.ref?n&&r?te(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!==Se?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 J(Qn,null,e,t)}function Me(e="",t=!1){return t?(A(),xe(et,null,e)):J(et,null,e)}function ct(e){return e==null||typeof e=="boolean"?J(et):te(e)?J(Se,null,e.slice()):typeof e=="object"?Tt(e):J(Qn,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(te(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Gn in t)?t._ctx=ze:r===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ae(t)?(t={default:t,_ctx:ze},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=je([t.style,o.style]);else if(Tn(r)){const i=t[r],s=o[r];s&&i!==s&&!(te(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){Qe(e,t,7,[n,o])}const Ba=mi();let Da=0;function Ra(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ba,i={uid:Da++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new cl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bi(o,r),emitsOptions:Zr(o,r),emit:null,emitted:null,propsDefaults:pe,inheritAttrs:o.inheritAttrs,ctx:pe,data:pe,props:pe,attrs:pe,slots:pe,refs:pe,setupState:pe,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=ql.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const Pi=()=>Le||ze;let Yo,Gt,Oi="__VUE_INSTANCE_SETTERS__";(Gt=bo()[Oi])||(Gt=bo()[Oi]=[]),Gt.push(e=>Le=e),Yo=e=>{Gt.length>1?Gt.forEach(t=>t(e)):Gt[0](e)};const en=e=>{Yo(e),e.scope.on()},Nt=()=>{Le&&Le.scope.off(),Yo(null)};function Mi(e){return e.vnode.shapeFlag&4}let vn=!1;function Na(e,t=!1){vn=t;const{props:n,children:o}=e.vnode,r=Mi(e);Sa(e,n,r,t),$a(e,o);const i=r?Fa(e,t):void 0;return vn=!1,i}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fr(new Proxy(e.ctx,va));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ha(e):null;en(e),Xt();const i=Ct(o,e,0,[e.props,r]);if(qt(),Nt(),gr(i)){if(i.then(Nt,Nt),t)return i.then(s=>{Li(e,s,t)}).catch(s=>{Fn(s,e,0)});e.asyncDep=i}else Li(e,i,t)}else Ai(e,t)}function Li(e,t,n){ae(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Wr(t)),Ai(e,n)}let zi;function Ai(e,t,n){const o=e.type;if(!e.render){if(!t&&zi&&!o.render){const r=o.template||No(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Ce(Ce({isCustomElement:i,delimiters:l},s),a);o.render=zi(r,c)}}e.render=o.render||ot}en(e),Xt(),ba(e),qt(),Nt()}function Va(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ne(e,"get","$attrs"),t[n]}}))}function Ha(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Va(e)},slots:e.slots,emit:e.emit,expose:t}}function no(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Wr(Fr(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 Wa(e,t=!0){return ae(e)?e.displayName||e.name:e.name||t&&e.__name}function Ua(e){return ae(e)&&"__vccOpts"in e}const se=(e,t)=>Hl(e,t,vn);function ji(e,t,n){const o=arguments.length;return o===2?_e(t)&&!te(t)?Jn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Jn(n)&&(n=[n]),J(e,t,n))}const Ka=Symbol.for("v-scx"),Ya=()=>Bt(Ka),Xa="3.3.4",qa="http://www.w3.org/2000/svg",Ft=typeof document<"u"?document:null,Bi=Ft&&Ft.createElement("template"),Za={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Ft.createElementNS(qa,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{Bi.innerHTML=o?`<svg>${e}</svg>`:e;const l=Bi.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 Qa(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ja(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&&Xo(o,i,"");for(const i in n)Xo(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 Di=/\s*!important$/;function Xo(e,t,n){if(te(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ga(e,t);Di.test(n)?e.setProperty(qe(o),n.replace(Di,""),"important"):e[o]=n}}const Ri=["Webkit","Moz","ms"],qo={};function Ga(e,t){const n=qo[t];if(n)return n;let o=He(t);if(o!=="filter"&&o in e)return qo[t]=o;o=On(o);for(let r=0;r<Ri.length;r++){const i=Ri[r]+o;if(i in e)return qo[t]=i}return t}const Ni="http://www.w3.org/1999/xlink";function ec(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ni,t.slice(6,t.length)):e.setAttributeNS(Ni,t,n);else{const i=al(t);n==null||i&&!_r(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function tc(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=_r(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function tn(e,t,n,o){e.addEventListener(t,n,o)}function nc(e,t,n,o){e.removeEventListener(t,n,o)}function oc(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]=rc(t);if(o){const c=i[t]=lc(o,r);tn(e,l,c,a)}else s&&(nc(e,l,s,a),i[t]=void 0)}}const Fi=/(?:Once|Passive|Capture)$/;function rc(e){let t;if(Fi.test(e)){t={};let o;for(;o=e.match(Fi);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):qe(e.slice(2)),t]}let Zo=0;const ic=Promise.resolve(),sc=()=>Zo||(ic.then(()=>Zo=0),Zo=Date.now());function lc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(ac(o,n.value),t,5,[o])};return n.value=e,n.attached=sc(),n}function ac(e,t){if(te(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 Vi=/^on[a-z]/,cc=(e,t,n,o,r=!1,i,s,l,a)=>{t==="class"?Qa(e,o,r):t==="style"?Ja(e,n,o):Tn(t)?uo(t)||oc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uc(e,t,o,r))?tc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ec(e,t,o,r))};function uc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Vi.test(t)&&ae(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Vi.test(t)&&Ie(n)?!1:t in e}function fc(e,t){const n=$e(e);class o extends Qo{constructor(i){super(n,i,t)}}return o.def=n,o}const dc=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends dc{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||(es(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&&!te(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=vo(this._props[a])),(l||(l=Object.create(null)))[He(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=te(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(He))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=He(t);this._numberProps&&this._numberProps[o]&&(n=vo(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(qe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(qe(t),n+""):n||this.removeAttribute(qe(t))))}_update(){es(this._createVNode(),this.shadowRoot)}_createVNode(){const t=J(this._def,Ce({},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),qe(i)!==i&&o(qe(i),s)};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 $t="transition",bn="animation",nn=(e,{slots:t})=>ji(ra,pc(e),t);nn.displayName="Transition";const Hi={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};nn.props=Ce({},ti,Hi);const Vt=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wi=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function pc(e){const t={};for(const y in e)y in Hi||(t[y]=e[y]);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:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,x=hc(r),k=x&&x[0],z=x&&x[1],{onBeforeEnter:X,onEnter:$,onEnterCancelled:N,onLeave:g,onLeaveCancelled:T,onBeforeAppear:P=X,onAppear:j=$,onAppearCancelled:S=N}=t,L=(y,b,W)=>{Ht(y,b?u:l),Ht(y,b?c:s),W&&W()},oe=(y,b)=>{y._isLeaving=!1,Ht(y,p),Ht(y,v),Ht(y,h),b&&b()},fe=y=>(b,W)=>{const ne=y?j:$,V=()=>L(b,y,W);Vt(ne,[b,V]),Ui(()=>{Ht(b,y?a:i),Et(b,y?u:l),Wi(ne)||Ki(b,o,k,V)})};return Ce(t,{onBeforeEnter(y){Vt(X,[y]),Et(y,i),Et(y,s)},onBeforeAppear(y){Vt(P,[y]),Et(y,a),Et(y,c)},onEnter:fe(!1),onAppear:fe(!0),onLeave(y,b){y._isLeaving=!0;const W=()=>oe(y,b);Et(y,p),vc(),Et(y,h),Ui(()=>{y._isLeaving&&(Ht(y,p),Et(y,v),Wi(g)||Ki(y,o,z,W))}),Vt(g,[y,W])},onEnterCancelled(y){L(y,!1),Vt(N,[y])},onAppearCancelled(y){L(y,!0),Vt(S,[y])},onLeaveCancelled(y){oe(y),Vt(T,[y])}})}function hc(e){if(e==null)return null;if(_e(e))return[Jo(e.enter),Jo(e.leave)];{const t=Jo(e);return[t,t]}}function Jo(e){return vo(e)}function Et(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 Ui(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gc=0;function Ki(e,t,n,o){const r=e._endId=++gc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=mc(e,t);if(!s)return o();const c=s+"end";let u=0;const p=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++u>=a&&p()};setTimeout(()=>{u<a&&p()},l+1),e.addEventListener(c,h)}function mc(e,t){const n=window.getComputedStyle(e),o=x=>(n[x]||"").split(", "),r=o(`${$t}Delay`),i=o(`${$t}Duration`),s=Yi(r,i),l=o(`${bn}Delay`),a=o(`${bn}Duration`),c=Yi(l,a);let u=null,p=0,h=0;t===$t?s>0&&(u=$t,p=s,h=i.length):t===bn?c>0&&(u=bn,p=c,h=a.length):(p=Math.max(s,c),u=p>0?s>c?$t:bn:null,h=u?u===$t?i.length:a.length:0);const v=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:p,propCount:h,hasTransform:v}}function Yi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Xi(n)+Xi(e[o])))}function Xi(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function vc(){return document.body.offsetHeight}const qi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?n=>Mn(t,n):t};function bc(e){e.target.composing=!0}function Zi(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=qi(r);const i=o||r.props&&r.props.type==="number";tn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=mo(l)),e._assign(l)}),n&&tn(e,"change",()=>{e.value=e.value.trim()}),t||(tn(e,"compositionstart",bc),tn(e,"compositionend",Zi),tn(e,"change",Zi))},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")&&mo(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},yc=["ctrl","shift","alt","meta"],wc={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)=>yc.some(n=>e[`${n}Key`]&&!t.includes(n))},tt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=wc[t[r]];if(i&&i(n,t))return}return e(n,...o)},xc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qi=(e,t)=>n=>{if(!("key"in n))return;const o=qe(n.key);if(t.some(r=>r===o||xc[r]===o))return e(n)},Ji={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 kc=Ce({patchProp:cc},Za);let Gi;function Cc(){return Gi||(Gi=Pa(kc))}const es=(...e)=>{Cc().render(...e)},Sc=`.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
|
+
`,ye=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ic={},Tc={class:"loading-indicator"};function $c(e,t){return A(),Y("div",Tc)}const Go=ye(Ic,[["render",$c],["styles",[Sc]]]),Ec=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"})),Pc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Oc={class:"flex justify-between items-end"},Mc={class:"inline-block children-pointer-events-auto w-1/3"},Lc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},zc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ac={class:"inline-block z-20 relative"},ts=$e({__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=Go;return A(),Y("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(),Y("div",Pc,[J(o)])):Me("",!0),Ee(t.$slots,"default"),K("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}])},[K("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:je({paddingTop:`${t.spaceTop||0}px`})},[Ee(t.$slots,"back"),Ee(t.$slots,"exit"),Ee(t.$slots,"chapter-nav")],4),K("div",Oc,[K("div",Mc,[Ee(t.$slots,"page-nav")]),K("div",Lc,[Ee(t.$slots,"reset-zoom")]),K("div",zc,[Ee(t.$slots,"entry"),K("div",Ac,[Ee(t.$slots,"settings")]),Ee(t.$slots,"full-screen"),Ee(t.$slots,"play")])]),K("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Ee(t.$slots,"progress")],2)],2)],2)}}}),jc=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),Bc={},Dc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Rc=[K("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[K("circle",{cx:"14",cy:"14",r:"12"}),K("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Nc(e,t){return A(),Y("svg",Dc,Rc)}const ns=ye(Bc,[["render",Nc]]),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"})),Vc={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"},Hc={class:"block w-4 h-4"},Wc={class:"w-12"},os=$e({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ns;return t.zoom!==1?(A(),Y("button",Vc,[K("div",Hc,[J(o)]),K("div",Wc,Ze(Math.ceil(t.zoom*100))+"%",1)])):Me("",!0)}}}),Uc=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),Kc={},Yc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Xc=[K("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 qc(e,t){return A(),Y("svg",Yc,Xc)}const er=ye(Kc,[["render",qc]]),Zc=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),Qc={},Jc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Gc=[K("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),K("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 eu(e,t){return A(),Y("svg",Jc,Gc)}const tr=ye(Qc,[["render",eu]]),tu=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));function nu({touchDevice:e}){const t=Q(!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 nr(){const e=Bt("busy:touchDevice"),t=Bt("setBusyState");let n=!1;return at(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const ou=(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))}},on={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>ou(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},ru={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=$e({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=nr();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(),xe(ga(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:tt(l,["stop"]),onMouseenter:i,onMouseleave:s}),{default:ce(()=>[K("div",ru,[Ee(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[ee(on),a.disabled?0:15]])}}),iu=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),su={},lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},au=[K("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 cu(e,t){return A(),Y("svg",lu,au)}const rs=ye(su,[["render",cu]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"}));class fu{constructor(){Qs(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 du(){const e=new fu;return at(()=>e.dispose()),Zn("keyController",e),e}function ro(e){const t=Bt("keyController");Ge(()=>t.addListener(e)),at(()=>t.removeListener(e))}const pu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},hu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},gu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},is=$e({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;ro({onKeyDown:r});const o=nr();ve(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const l=rs,a=oo;return A(),Y("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:s[3]||(s[3]=()=>t("update:modelValue",!1))},[J(nn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ce(()=>[n.modelValue?(A(),Y("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]=tt(()=>{},["stop"])),onWheelPassive:s[2]||(s[2]=tt(()=>{},["stop"]))},[K("div",pu,[J(a,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:ce(()=>[J(l)]),_:1}),K("div",hu,Ze(i.name),1),Ee(i.$slots,"actions")]),K("div",gu,[Ee(i.$slots,"default")])],32)):Me("",!0)]),_:3})],2)}}}),mu=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),vu=["min","max","step"],bu={class:"flex-shrink-0"},ss=ye($e({__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,i)=>(A(),Y("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:je({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[mt(K("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,vu),[[_c,o.value]]),K("p",bu,[Ee(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
|
+
`]]]),_u=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),yu={class:"flex items-center mb-8 last:mb-0"},wu={class:"flex-grow overflow-hidden"},ls=$e({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Y("div",yu,[K("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Ze(t.label),3),K("div",wu,[Ee(t.$slots,"default")])]))}}),xu=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),ku=["onClick","onKeyup"],as=$e({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q({width:"",left:""});Ge(()=>{let s=!1;ve(()=>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(),Y("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:{}},[K("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:je(r.value)},null,4),(A(!0),Y(Se,null,dn(n.items,(a,c)=>mt((A(),Y("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:[Qi(()=>i(c),["enter"]),Qi(()=>i(c),["space"])]},[It(Ze(a),1)],42,ku)),[[ee(on),30]])),128))],512))}}),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),Su={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[K("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 $u(e,t){return A(),Y("svg",Iu,Tu)}const cs=ye(Su,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Pu={},Ou={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Mu=[K("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),K("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Lu(e,t){return A(),Y("svg",Ou,Mu)}const us=ye(Pu,[["render",Lu]]),zu=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"}));function Au(e){if(e)try{return JSON.parse(e)}catch{return}}function ju(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ft=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ft||{}),Wt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Wt||{});const Bu=.25,Du=5,Ru=.25,yn=.25,wn=5,Nu=.05,Fu=0,Vu=4;function Hu(e){var X,$,N,g,T;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?ju(t.value):location.hostname),r=Q(Wu(`tkr:${o.value}`)),i=P=>{r.value=P;const j=`tkr:${o.value}`;!P||!Object.keys(P).length?localStorage.removeItem(j):localStorage.setItem(j,JSON.stringify(P))},s=P=>{if(!r.value){i(P);return}const j={...r.value};Object.entries(P).forEach(([S,L])=>{L===void 0?delete j[S]:j[S]=L}),i(j)},l=Q(((X=r.value)==null?void 0:X.style)??e.defaultStyle??Wt.longStrip),a=Q((($=r.value)==null?void 0:$.direction)??e.defaultDirection??ft.vertical),c=Q((N=r.value)==null?void 0:N.gap),u=Q(((g=r.value)==null?void 0:g.speed)??1),p=Q(((T=r.value)==null?void 0:T.zoom)??1),h=se({get(){return n.value?Wt.longStrip:l.value},set:P=>{l.value=P,s({style:P}),P!==Wt.longStrip&&a.value===ft.vertical&&(v.value=ft.rtl)}}),v=se({get:()=>n.value?ft.vertical:a.value,set:P=>{a.value=P,s({direction:P})}}),x=se({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(P){c.value=P,s({gap:P})}}),k=se({get:()=>u.value,set(P){u.value=P,s({speed:P===1?void 0:P})}}),z=se({get:()=>p.value,set(P){p.value=P,s({zoom:P===1?void 0:P})}});return{direction:v,style:h,gap:x,speed:k,zoom:z,isLongStrip:se(()=>h.value===Wt.longStrip),isDouble:se(()=>h.value===Wt.double),isRTL:se(()=>v.value===ft.rtl),isVertical:se(()=>v.value===ft.vertical)}}function Wu(e){const t=localStorage.getItem(e),n=Au(t),o={};return n?(n.style!==void 0&&Object.values(Wt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ft).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Fu&&n.gap<=Vu&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=yn&&n.speed<=wn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=yn&&n.zoom<=wn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const fs=$e({__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);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=us,u=oo,p=cs,h=as,v=ls,x=ss,k=is;return A(),Y(Se,null,[J(u,{title:"Reader settings (S)",disabled:l.disabled,onClick:a[0]||(a[0]=()=>o.value=!0)},{default:ce(()=>[J(c)]),_:1},8,["disabled"]),J(k,{modelValue:o.value,"onUpdate:modelValue":a[5]||(a[5]=z=>o.value=z),name:r.value},{actions:ce(()=>[J(u,{transparent:"",onClick:s},{default:ce(()=>[J(p)]),_:1})]),default:ce(()=>[J(v,{label:"Style"},{default:ce(()=>[J(h,{"model-value":l.readerStyle,items:l.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":a[1]||(a[1]=z=>t("update:reader-style",z))},null,8,["model-value","items"])]),_:1}),J(v,{label:"Direction"},{default:ce(()=>[J(h,{"model-value":l.direction,items:l.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":a[2]||(a[2]=z=>t("update:direction",z))},null,8,["model-value","items"])]),_:1}),J(v,{label:"Gap"},{default:ce(()=>[J(h,{"model-value":l.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":a[3]||(a[3]=z=>t("update:gap",z))},null,8,["model-value"])]),_:1}),J(v,{label:"Speed"},{default:ce(()=>[J(x,{"model-value":l.speed,min:ee(Bu),max:ee(Du),step:ee(Ru),suffix:"x","onUpdate:modelValue":a[4]||(a[4]=z=>t("update:speed",z))},{suffix:ce(()=>[It(Ze(l.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),J(v,{label:"Zoom"},{default:ce(()=>[J(x,{"model-value":Math.ceil(l.zoom*100),min:ee(yn)*100,max:ee(wn)*100,step:ee(Nu)*100,"onUpdate:modelValue":i},{suffix:ce(()=>[It(Ze(Math.ceil(l.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Ku={},Yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Xu=[K("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function qu(e,t){return A(),Y("svg",Yu,Xu)}const ds=ye(Ku,[["render",qu]]),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),Qu={},Ju={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Gu=[K("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function ef(e,t){return A(),Y("svg",Ju,Gu)}const ps=ye(Qu,[["render",ef]]),tf=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),nf={},of={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rf=[K("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),K("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),K("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 sf(e,t){return A(),Y("svg",of,rf)}const hs=ye(nf,[["render",sf]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),af={},cf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uf=[K("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),K("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),K("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 ff(e,t){return A(),Y("svg",cf,uf)}const gs=ye(af,[["render",ff]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gf=[K("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function mf(e,t){return A(),Y("svg",hf,gf)}const ms=ye(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),bf=["aria-hidden"],_f=["onClick"],yf=["onClick"],wf={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"},xf={class:"whitespace-nowrap"},or=$e({__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),i=Q(null),s=Q(!1),l=Q(!1),a=Q(!1);ro({onKeyDown:v});const c=nr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(p(),gt(()=>setTimeout(()=>{var g,T;(T=(g=i.value)==null?void 0:g.children[n.modelValue])==null||T.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),k(o.value)):setTimeout(z,250)}function p(){const g=o.value;if(g){const T=g.getBoundingClientRect(),P=T.x+T.width/2;s.value=T.y>window.innerHeight/2,l.value=P<window.innerWidth/3,a.value=P>window.innerWidth/3*2}}function h(g){g!=n.modelValue&&t("update:modelValue",g),u()}function v(g){r.value&&g.key==="Escape"&&(u(),g.preventDefault())}let x=[];function k(g){const T=window.getComputedStyle(g).zIndex,P=g.style.zIndex;(!T||!(+T>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",x.push({el:g,zIndex:P})),g.parentElement&&k(g.parentElement))}function z(){x.forEach(({el:g,zIndex:T})=>{g.style.zIndex=T??""}),x=[]}let X=!1;function $(){X||(X=!0,c(!0,{desktopOnly:!0}))}function N(){X&&(X=!1,c(!1,{desktopOnly:!0}))}return(g,T)=>{const P=ms;return A(),Y("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),Y("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Me("",!0),g.items.length?(A(),xe(nn,{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:ce(()=>[r.value?(A(),Y("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:T[0]||(T[0]=tt(()=>{},["stop"]))},[(A(!0),Y(Se,null,dn(g.items,(j,S)=>mt((A(),Y("li",{key:S,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":S===g.modelValue}]),onClick:()=>h(S)},[K("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":S>0}])},[Ee(g.$slots,"item",{item:j},()=>[It(Ze(j),1)])],2)],10,_f)),[[ee(on),30]])),128))],42,bf)):Me("",!0)]),_:3})):Me("",!0),mt((A(),Y("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":g.disabled}]},g.title?{title:g.title}:{},{onClick:tt(u,["stop"]),onMouseenter:$,onMouseleave:N}),[K("div",wf,[K("span",xf,Ze(g.label),1),g.items.length?(A(),Y("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[J(P)],2)):Me("",!0)])],16,yf)),[[ee(on),30]])],512)}}}),kf=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),vs=$e({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se(()=>n.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const a=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:p})=>p===a));return c===-1?n.pages.length-1:c}),i=se(()=>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=or;return A(),xe(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"])}}}),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),Sf={},If={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[K("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function $f(e,t){return A(),Y("svg",If,Tf)}const bs=ye(Sf,[["render",$f]]),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),Pf={},Of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[K("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Lf(e,t){return A(),Y("svg",Of,Mf)}const _s=ye(Pf,[["render",Lf]]),zf=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),Af={},jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Bf=[K("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 Df(e,t){return A(),Y("svg",jf,Bf)}const ys=ye(Af,[["render",Df]]),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),Nf={},Ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vf=[K("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 Hf(e,t){return A(),Y("svg",Ff,Vf)}const ws=ye(Nf,[["render",Hf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"}));var xs;const rr=typeof window<"u",Uf=e=>typeof e=="string",Pt=()=>{};rr&&((xs=window==null?void 0:window.navigator)!=null&&xs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function io(e){return typeof e=="function"?e():ee(e)}function ks(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}function Kf(e,t={}){let n,o,r=Pt;const i=l=>{clearTimeout(l),r(),r=Pt};return l=>{const a=io(e),c=io(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,p)=>{r=t.rejectOnCancel?p:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function Yf(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Pt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Pt)};return p=>{const h=io(e),v=Date.now()-r,x=()=>a=p();if(c(),h<=0)return r=Date.now(),x();if(v>h&&(n||!s))r=Date.now(),x();else if(t)return new Promise((k,z)=>{l=o?z:k,i=setTimeout(()=>{r=Date.now(),s=!0,k(x()),c()},h-v)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function Xf(e){return e}function ir(e){return wr()?(fl(e),!0):!1}function Ue(e,t=200,n={}){return ks(Kf(t,n),e)}function Cs(e,t=200,n=!1,o=!0,r=!1){return ks(Yf(t,n,o,r),e)}function Ss(e,t=!0){Pi()?Ge(e):t?e():gt(e)}function Ut(e){var t;const n=io(e);return(t=n==null?void 0:n.$el)!=null?t:n}const xn=rr?window:void 0,qf=rr?window.document:void 0;function Ot(...e){let t,n,o,r;if(Uf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=xn):[t,n,o,r]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,p,h)=>(u.addEventListener(p,h,r),()=>u.removeEventListener(p,h,r)),a=ve(()=>Ut(t),u=>{s(),u&&i.push(...n.flatMap(p=>o.map(h=>l(u,p,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ir(c),c}function Is(e,t=!1){const n=Q(),o=()=>n.value=!!e();return o(),Ss(o,t),n}const Ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$s="__vueuse_ssr_handlers__";Ts[$s]=Ts[$s]||{};function Es({document:e=qf}={}){if(!e)return Q("visible");const t=Q(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ps=Object.getOwnPropertySymbols,Zf=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable,Jf=(e,t)=>{var n={};for(var o in e)Zf.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&&Qf.call(e,o)&&(n[o]=e[o]);return n};function Gf(e,t,n={}){const o=n,{window:r=xn}=o,i=Jf(o,["window"]);let s;const l=Is(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=ve(()=>Ut(e),p=>{a(),l.value&&r&&p&&(s=new ResizeObserver(t),s.observe(p,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ir(u),{isSupported:l,stop:u}}function sr(e,t={width:0,height:0},n={}){const{window:o=xn,box:r="content-box"}=n,i=se(()=>{var a,c;return(c=(a=Ut(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Q(t.width),l=Q(t.height);return Gf(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Ut(e);if(u){const p=o.getComputedStyle(u);s.value=parseFloat(p.width),l.value=parseFloat(p.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((p,{inlineSize:h})=>p+h,0),l.value=u.reduce((p,{blockSize:h})=>p+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),ve(()=>Ut(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function lr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=xn}=n,l=Is(()=>s&&"IntersectionObserver"in s);let a=Pt;const c=l.value?ve(()=>({el:Ut(e),root:Ut(o)}),({el:p,root:h})=>{if(a(),!p)return;const v=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});v.observe(p),a=()=>{v.disconnect(),a=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{a(),c()};return ir(u),{isSupported:l,stop:u}}var Os;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Os||(Os={}));var ed=Object.defineProperty,Ms=Object.getOwnPropertySymbols,td=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,od=(e,t)=>{for(var n in t||(t={}))td.call(t,n)&&Ls(e,n,t[n]);if(Ms)for(var n of Ms(t))nd.call(t,n)&&Ls(e,n,t[n]);return e};od({linear:Xf},{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 rd(e={}){const{window:t=xn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Q(n),l=Q(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(),Ss(a),Ot("resize",a,{passive:!0}),r&&Ot("orientationchange",a,{passive:!0}),{width:s,height:l}}const zs=ye($e({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Q(null),o=Q(0),r=Q([]),i=se(()=>r.value[o.value]),s=Cs(l,500);Ge(()=>{const u=sr(n),p=Ue(()=>a({width:u.width.value,height:u.height.value}),50);p(),ve(u.width,p),ve(u.height,p)});function l(){o.value>=r.value.length-1?t("hide"):o.value++}function a(u){const p=c();r.value=p.map(({rect:h,text:v})=>{const x=h.top<u.height-h.bottom,k=h.left<u.width-h.right;return{text:v,style:{left:`${h.left}px`,top:`${h.top}px`,width:`${h.width}px`,height:`${h.height}px`},textStyle:{left:k?`${h.left-12}px`:void 0,right:k?void 0:`${u.width-h.left}px`,top:x?`${h.bottom+12}px`:`${h.top+20}px`,textAlign:x?void 0:"right",transform:x?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var h;const u=(h=n.value)==null?void 0:h.parentElement;if(!u)return[];const p=[];return u.querySelectorAll("[data-tour]").forEach(v=>{var z;const x=(z=v.getAttribute("data-tour"))==null?void 0:z.trim();if(!(x!=null&&x.length))return;const k=v.getBoundingClientRect();p.push({rect:k,text:x})}),p}return(u,p)=>{var h,v;return A(),Y(Se,null,[K("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),K("div",{ref_key:"root",ref:n,class:"tour",onClick:p[0]||(p[0]=tt((...x)=>ee(s)&&ee(s)(...x),["stop"]))},[i.value?(A(),Y("div",{key:o.value,class:"tour__target",style:je(i.value.style)},null,4)):Me("",!0),(A(),Y("div",{key:o.value,class:"tour__text",style:je((h=i.value)==null?void 0:h.textStyle)},Ze(((v=i.value)==null?void 0:v.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
|
+
`]]]),id=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),sd=K("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),As=$e({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q([]);Ge(async()=>{const a=sr(o),c=Ue(()=>{i({width:a.width.value,height:a.height.value})},50);c(),ve(a.width,c),ve(a.height,c)});function i(a){var p;const c=(p=o.value)==null?void 0:p.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=[],p=[];let h=0,v=0;const x=50,k=25;a.forEach(g=>{var L;const T=(L=g.getAttribute("title"))==null?void 0:L.trim(),P=g.getBoundingClientRect();if(!T||!P.height||!P.width)return;const j=Math.ceil((P.top-10)/x),S=Math.ceil((P.left-10)/x);p.push({isTour:!1,title:T,rect:P,fromX:S,toX:Math.max(S+1,Math.ceil((P.right+10)/x)),fromY:j,toY:Math.max(j+1,Math.ceil((P.bottom+10)/x))})}),p.forEach(g=>{for(let T=g.fromY;T<g.toY;T++){u[T]??(u[T]=[]);for(let P=g.fromX;P<g.toX;P++)u[T][P]=g;g.toY>h+1&&(h=g.toY-1),g.toX>v+1&&(v=g.toX-1)}});let z=v/2;p.forEach(g=>{g.isAlignRight=g.fromX>z});const X=(g,T)=>{u[T]??(u[T]=[]);const P=T>=g.toY;if(g.isTour)for(let j=g.fromX;j<g.toX;j++)delete u[g.fromY][j],g.fromY=T,g.toY=T+(P?1:-1),u[T][j]=g;else{const j=g.isAlignRight?g.fromX-3:g.fromX,S=j+3;g.helpItem={fromX:j,toX:S,fromY:T,toY:T+1,isTour:!0,isAlignRight:g.isAlignRight};for(let L=j;L<S;L++)u[T][L]=g.helpItem}},$=(g,T)=>{if(T>h||T<0)return!1;const P=T>=g.toY,j=u[T];if(!j)return X(g,T),!0;const S=j[g.fromX];if(S&&!S.isTour)return!1;if(S&&S.isTour)return $(S,P?T+1:T-1)?(X(g,T),!0):!1;if(!S){const L=g.isAlignRight?-1:1;return j[g.fromX+L]||j[g.fromX+L*2]?$(g,P?T+1:T-1):(X(g,T),!0)}return!1};p.forEach(g=>{if(!$(g,g.toY)){if(g.isAlignRight){const T=u[g.fromY]??[];if(!T.slice(g.fromX-3,g.fromX).filter(Boolean).length){const j=g.fromX-3,S=g.fromX;g.helpItem={isTour:!0,isAlignRight:!0,fromX:j,toX:S,fromY:g.fromY,toY:g.toY};for(let L=g.fromX-3;L<g.fromX;L++)T[L]=g.helpItem;return}}$(g,g.fromY-1)}});const N=[];return p.forEach(g=>{const{title:T,helpItem:P,rect:j,isAlignRight:S,fromX:L,fromY:oe,toY:fe}=g;if(!T||!P||!j)return;const y=P.fromY>=fe,b=P.toY<=oe;N.push({title:l(T),style:{top:y?`${j.bottom+(P.fromY-fe)*x+k}px`:b?void 0:`${j.top+8}px`,bottom:b?`${c.height-j.top+(P.toY-oe)*x+k}px`:void 0,left:S?void 0:`${j.left}px`,right:S?y?`${c.width-j.right}px`:`${c.width-j.right+j.width+k}px`:void 0},arrowStyle:{width:b||y?"2px":`${Math.abs(P.toX-L)*x+k-5}px`,height:b||y?`${(y?P.fromY-fe:oe-P.toY)*x+k}px`:"2px",top:y?`${j.bottom}px`:b?void 0:`${j.top+20}px`,bottom:b?`${c.height-j.top}px`:void 0,left:S?void 0:`${j.left+j.width/2}px`,right:S?y?`${c.width-j.right+j.width/2}px`:`${c.width-j.right+j.width}px`:void 0}})}),N}function l(a){return n.touchDevice?a.split("(")[0].trim():a}return(a,c)=>(A(),Y(Se,null,[sd,K("div",{ref_key:"root",ref:o,class:"fixed-screen z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=tt(u=>t("hide"),["stop"]))},[(A(!0),Y(Se,null,dn(r.value,u=>(A(),Y(Se,{key:u.title},[K("div",{class:"absolute",style:je(u.style)},Ze(u.title),5),K("div",{class:"absolute bg-stone-300 rounded-lg",style:je(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),ld=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),js=ye($e({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Q(0);return ve(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=er,s=tr;return n.value?(A(),Y("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(),xe(i,{key:0})):(A(),xe(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:js},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},fd=[K("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 dd(e,t){return A(),Y("svg",ud,fd)}const Bs=ye(cd,[["render",dd]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ds=$e({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Q(typeof n!="string"||+n!==t.direction),r=Ue(()=>o.value=!1,1250);ve(()=>t.direction,()=>{i(),o.value=!0,r()}),Ge(()=>{i(),r();let s;const l=Es();ve(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=Bs;return A(),xe(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ce(()=>[o.value?(A(),Y("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===ee(ft).vertical,"rotate-180":s.direction===ee(ft).rtl}])},[J(a)],2)):Me("",!0)]),_:1})}}}),hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),so=[];function gd(e){so.push(e),at(()=>{const t=so.indexOf(e);t!==-1&&so.splice(t,1)})}function md(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;so.forEach(s=>s(r,i))}const vd=["onClick"],Rs=$e({__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=Q(null),r=Q(Math.min(wn,Math.max(yn,n.modelValue))),i=Q(!1),s=Q(!1),l=Q(!1);ve(()=>n.modelValue,b=>y(b)),Ge(()=>{n.touchDevice?(Ot(window,"touchstart",k),gd(S)):(Ot(o,"mousedown",p),Ot(window,"wheel",N))}),ro({onKeyDown:b=>{var W;if(!n.busy&&((W=o.value)==null||W.focus(),!(b.key==="Meta"||b.key==="Control")&&(b.ctrlKey||b.metaKey)))switch(b.key){case"0":y(1);break;case"-":y(r.value-.2),b.preventDefault();break;case"=":case"+":y(r.value+.2),b.preventDefault();break}}});function a(b){s.value!==b&&(s.value=b,b?n.playController.pause():(t("dragEnd"),n.playController.resume()))}let c={x:0,y:0},u={x:0,y:0};function p(b){b.button===0&&(c={x:b.clientX,y:b.clientY},u={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",h),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",h),setTimeout(()=>a(!1))},{once:!0}),b.preventDefault(),b.stopPropagation())}function h(b){a(!0);const W=b.clientX-c.x,ne=b.clientY-c.y,V=o.value;V.scrollLeft=u.x-W,V.scrollTop=u.y-ne}let v=!1,x={distance:0,zoom:r.value,x:0,y:0};function k(b){n.busy||(v=b.touches.length===2,v&&(a(!0),b.stopPropagation(),b.preventDefault(),x={distance:g(b),zoom:r.value,x:(b.touches[0].clientX+b.touches[1].clientX)/2,y:(b.touches[0].clientY+b.touches[1].clientY)/2}),(v||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",X),window.addEventListener("touchend",z,{once:!0})))}function z(){if(window.removeEventListener("touchmove",X),v){a(!1),v=!1;return}if(!s.value)return;const b=Ue(()=>{a(!1),o.value.removeEventListener("scroll",ne)},100),W=setTimeout(b,100);o.value.addEventListener("scroll",ne);function ne(){clearTimeout(W),b()}}function X(b){if(a(!0),v){b.stopPropagation(),b.preventDefault();const ne=g(b)/x.distance;y(Math.ceil(ne*x.zoom*100)/100,x)}}const $=Ue(()=>i.value=!1,100);function N(b){if(!n.busy){if(b.ctrlKey||b.metaKey){b.stopPropagation(),b.preventDefault();const W=Math.ceil((r.value+b.deltaY*-.01)*100)/100;y(W,{x:b.clientX,y:b.clientY});return}n.horizontal&&(i.value||(i.value=!0),$(),b.deltaY&&(o.value&&(o.value.scrollLeft+=b.deltaY*(n.rtl?-1:1)),b.stopPropagation(),b.preventDefault()))}}function g(b){return Math.hypot(b.touches[0].clientX-b.touches[1].clientX,b.touches[0].clientY-b.touches[1].clientY)}let T=0,P;function j(b){if(!s.value){if(!n.touchDevice){t("click",b);return}T++,P&&clearTimeout(P),T===2&&S(b.clientX,b.clientY),P=setTimeout(()=>{!s.value&&T===1&&t("click",b),P=void 0,T=0},300)}}function S(b,W){if(!T)return;T=0;const ne=r.value===1?2:1;y(ne,{x:b,y:W})}let L;const oe=Ue(()=>{l.value=!1,L=void 0},150);function fe(){if(!l.value){const b=o.value;if(!b)return;const W=b.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;W&&(L={el:W,rect:W.getBoundingClientRect()},l.value=!0)}if(L)return oe(),L}async function y(b,W){const ne=o.value,V=Math.min(wn,Math.max(yn,b));if(!ne||r.value===V)return;const ue=fe();if(!ue)return;const re=(W==null?void 0:W.x)??ne.clientWidth/2,D=(W==null?void 0:W.y)??ne.clientHeight/2;r.value=V,t("update:modelValue",V),await gt();const{el:q,rect:F}=ue,U=q.offsetWidth/F.width,G=q.offsetHeight/F.height;ne.scrollLeft=q.offsetLeft-F.left*U+re*(U-1),ne.scrollTop=q.offsetTop-F.top*G+D*(G-1)}return(b,W)=>(A(),Y("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":!b.longStrip&&(s.value||i.value||l.value),"cursor-grabbing":s.value,"overflow-hidden":l.value}]),style:je({"font-size":`${r.value}px`}),onClick:tt(j,["stop"])},[Ee(b.$slots,"default")],14,vd))}}),bd=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ns=$e({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Q(null),o=Q(!1);return Ge(async()=>{await gt();let r=!1;lr(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(A(),Y("div",{ref_key:"root",ref:n},[Ee(r.$slots,"default",{visible:o.value})],512))}}),_d=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));function yd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=Q(n),i=Q(o),s=Ue(l,50);ve(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const wd={key:0,class:"page--loading"},xd=["src"],kd=["src"],Cd=["data-index"],Fs=ye($e({__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 v;return(v=o.value)==null?void 0:v.$el}),i=Q(null),s=sr(r),l=se(()=>{const{width:v,height:x}=s,k=n.isLongStrip?n.isVertical?v.value:x.value:Math.min(v.value,x.value);return Math.min(4,Math.max(1,Math.ceil(k/400-1)))*n.gap}),a=yd({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),c=se(()=>{const{width:{value:v},height:{value:x}}=s;return n.pages.map(k=>{var S;const z=k.some(L=>{var oe;return(oe=L.img)==null?void 0:oe.isLoading}),X=k.map(L=>L.index),$={isLoading:z,indexes:X};if(z||X[X.length-1]<a.min.value-1||X[0]>a.max.value+2)return $;const N=k.map(({img:L})=>L).filter(Boolean);if(!N.length||($.srcs=N.map(({src:L})=>L),N.every(L=>L.hasError)))return $;const T=(S=N.find(L=>!L.hasError))==null?void 0:S.size,P=N.reduce((L,oe)=>{var fe;return L+(((fe=oe.size)==null?void 0:fe.width)??T.width)},0),j=N.reduce((L,oe)=>{var fe;return L+(((fe=oe.size)==null?void 0:fe.height)??T.height)},0)/N.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&v/P<x/j?($.width=Math.min(v,P),$.height=j*$.width/P):$.height=Math.min(x,j),$})}),u=se(()=>{const v=n.isVertical?"width":"height";return c.value.map(x=>x[v]).filter(Boolean).sort((x,k)=>k-x)[0]});function p({indexes:v}){const x=v[v.length-1];x!==void 0&&a.onPageVisible(x)}function h(v){if(!n.isLongStrip){const x=n.isVertical?s.height.value:s.width.value,z=(n.isVertical?v.clientY:n.isRTL?x-v.clientX:v.clientX)/x;if(z<=.2){t("prev");return}else if(z>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(v,x)=>{const k=Go,z=Ns,X=Rs;return A(),xe(X,{ref_key:"root",ref:o,"model-value":v.zoom,"page-index":v.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":v.isLongStrip,"reader-body--pages":!v.isLongStrip,"reader-body--vertical":v.isVertical,"reader-body--rtl":v.isRTL,"reader-body--idle":v.idle}]),"play-controller":v.playController,horizontal:!v.isVertical,rtl:v.isRTL,"touch-device":v.touchDevice,busy:v.busy,"long-strip":v.isLongStrip,style:je({"--gap":`${l.value}em`,"--space-top":(v.spaceTop||0)+"px","--screen-width-em":ee(s).width.value+"em","--screen-height-em":ee(s).height.value+"em",...v.isLongStrip?{"--max-size-em":u.value+"em"}:{}}),"onUpdate:modelValue":x[0]||(x[0]=$=>t("update:zoom",$)),onDragEnd:x[1]||(x[1]=()=>t("dragEnd")),onClick:h,onScroll:ee(a).onScroll},{default:ce(()=>[(A(!0),Y(Se,null,dn(c.value,$=>(A(),xe(z,to({key:v.direction+"_"+$.indexes[0],"data-index":$.indexes[0]},$.indexes.length>1?{"data-index2":$.indexes[1]}:{},{onVisible:()=>p($)}),{default:ce(({visible:N})=>{var g;return[!((g=$.srcs)!=null&&g.length)||$.isLoading?(A(),Y("div",wd,[mt(J(k,null,null,512),[[Ji,N]])])):$.srcs.length==1?(A(),Y("img",{key:1,src:$.srcs[0],style:je({height:$.height!==void 0?$.height+"em":""})},null,12,xd)):(A(),Y("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":v.isRTL}]),style:je({width:$.width!==void 0?$.width+"em":"",height:$.height!==void 0?$.height+"em":""})},[(A(!0),Y(Se,null,dn($.srcs,T=>(A(),Y("div",{key:T},[K("img",{src:T},null,8,kd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),K("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":v.totalImgs},[Ee(v.$slots,"end")],8,Cd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["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:100vh}.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:100vw}.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
|
+
`]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Id={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Td={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},$d={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Vs=ye($e({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=Q(null),o=Q(null),r=Q(!1),i=Q(!1),s=Q(3);return Ge(()=>{let l;lr(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))}),lr(n,a=>{r.value=a.some(c=>c.isIntersecting)}),at(()=>l&&clearInterval(l))}),(l,a)=>(A(),Y("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[mt(K("div",Id,[l.hasNext?(A(),Y("div",Td,[i.value?(A(),Y("div",$d)):Me("",!0),mt((A(),Y("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]=tt(()=>t("next"),["stop"]))},[It(" Next in "+Ze(s.value),1)])),[[ee(on)]])])):Me("",!0),mt((A(),Y("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]=tt(()=>t("hide"),["stop"]))},[It(" Hide ")])),[[ee(on)]])],512),[[Ji,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
|
+
`]]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"}));async function kn(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 kn(e-1,t,n);r(i)},t)})}function Cn(e=0){return new Promise(t=>setTimeout(t,e))}const Hs=3;function Pd(e){var ne,V,ue,re;const t=((V=(ne=e.raw.value)==null?void 0:ne.imgs)==null?void 0:V.filter(Boolean))??[];let n=!!t.length,o=t.map(D=>({src:D}));const r=ln({}),i=[],s=Q((ue=e.raw.value)==null?void 0:ue.isWebtoon),l=Q((re=e.raw.value)==null?void 0:re.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,p=!1,h=!1,v=0,x=0,k,z=e.isAutoShow!==!1?e.page.value:n?zd(t):void 0;const X=Ue(y,100);let $=!1;const N=Ue(j,50),g=()=>{$?N():($=!0,j())};n?g():oe(),ve(()=>{var D;return(D=e.raw.value)==null?void 0:D.imgs},D=>{D!=null&&D.length&&D.length!==o.length&&(n=!0,P(D.map(q=>({src:q}))))}),at(()=>{u=!1,i.forEach(D=>URL.revokeObjectURL(D))}),Yn(()=>{p&&lo({contentEl:k,images:o,page:e.page.value})});function T(){var G,de,Pe,le;if(p||s.value===void 0||z===void 0)return;const D=Math.max(0,Math.min(z,o.length)),q=o.length-1,F=Math.min(Math.floor(D),q);if(F>=1){const we=(G=o[F])==null?void 0:G.src;if(!we){e.isAutoShow&&lo({contentEl:k,images:o,page:F});return}const De=(de=o[F-1])==null?void 0:de.src;if(De&&!((Pe=r[De])!=null&&Pe.size)||!((le=r[we])!=null&&le.size))return}if(p)return;p=!0,e.onReady(D);let U=!0;ve(()=>Math.floor(e.page.value),async(we,De)=>{lo({images:o,page:we,smooth:c,skipIfVisible:U}),U=!1,De??(De=-1),we!==De&&(v=Math.max(0,v-Math.abs(we-De))),g()},{immediate:!0})}function P(D){(D.length!==o.length||D.some((F,U)=>{const G=o[U];return(G==null?void 0:G.el)!==(F==null?void 0:F.el)||(G==null?void 0:G.src)!==(F==null?void 0:F.src)}))&&(o=D,e.isAutoShow===!1&&z===void 0&&(z=Us(D)),g())}async function j(){if(!u)return;const D=async F=>{v++,S(o[F],F).then(()=>{v--,N()}),await Cn()},q=Math.max(0,Math.min(o.length-1,Math.floor(e.page.value-1)));for(let F=q;F<o.length;F++){if(v>=Hs)return;await D(F)}for(let F=q-1;F>=0;F--){if(v>=Hs)return;await D(F)}}async function S(D,q,F){const U=D.el;let G=D.src;if(!U&&!G||G&&r[G])return;const de=U instanceof HTMLImageElement,Pe=U instanceof HTMLCanvasElement;if(U&&!F){if(U._tkLoadId_===a)return;if(U._tkLoadId_=a,de){const st=()=>u&&o.some(bt=>U===bt.el)&&S(D,q,!0);U.addEventListener("load",st),at(()=>U.removeEventListener("load",st))}}if(de&&!G){if(G=ar(U),!G)return;D.src=G}if(Pe&&!G&&(G=await Ws(U),G&&i.push(G)),!G)return;r[G]={src:G,isLoading:!0,hasError:!1};const le=de?await Md(U,G):G;if(!le)return;de&&le!==G&&i.push(le);const we=await Ld(le),De=!!we&&(we.width<200||we.height<200);r[G]={src:le,size:we,isLoading:!1,hasError:!we,invalid:De},De||L(q,we)}async function L(D,q){if(q&&!s.value&&D>Math.min(1,o.length-2)&&D<Math.max(o.length-2,2)){const F=q.height/q.width,U=F>2||F<.5,G=F>1.6||F<.6;s.value!==U&&(s.value=U),l.value!==G&&(l.value=G)}T()}function oe(){let D=!1;const q=new MutationObserver(()=>{k&&X(k)});Yn(async()=>{q.disconnect()}),fe(F=>{k!==F&&(k=F,q.disconnect(),q.observe(k,{childList:!0,subtree:!0}),D?X(k):(D=!0,y(k)))})}async function fe(D){var Pe;const q=(Pe=e.spec)==null?void 0:Pe.content;if(!q){D(document.body);return}const F=await Od(e.spec);let U=q?await kn(F?100:1,10,()=>document.querySelector(q)):void 0;if(!U)return;D(U);let G=0;const de=async()=>{if(u&&!(U!=null&&U.isConnected)&&!n){if(G=0,U=await kn(50,20,()=>{const le=document.querySelector(q);return le!=null&&le.isConnected&&le!==U?le:void 0}),!U)return;D(U)}!u||n||++G>=10||setTimeout(de,200)};setTimeout(de,200)}async function y(D){var G;if(!u||!D.isConnected||n)return;const q=Date.now();x=q;const F=(G=e.spec)==null?void 0:G.imgDivs,U=F?await b(D,F):W(D);if(!(x!==q||!D.isConnected||!u||n)){if(!e.raw.value&&!U.length){e.onError("no_img");return}P(U)}}async function b(D,q){const F=Array.from(D.querySelectorAll(q)),U=new Map,G=F.map(de=>{const Pe=de.querySelectorAll("img,canvas");for(const le of Pe)if(cr(le,U)){if(le instanceof HTMLCanvasElement){if(Ks(le))return{el:le,parentEl:de}}else if(le instanceof HTMLImageElement&&Ys(le)){const we=ar(le);return{el:le,src:we,parentEl:de}}}return{parentEl:de}});return!h&&e.isAutoShow!==!1&&e.page.value&&(h=!0,lo({contentEl:D,images:G,page:e.page.value,skipIfVisible:!0}),await Cn(1)),G}function W(D){const q=[],F={},U=new Map;return Array.from(D.querySelectorAll("img,canvas")).forEach(de=>{if(cr(de,U)){if(de instanceof HTMLCanvasElement)Ks(de)&&q.push({el:de});else if(de instanceof HTMLImageElement&&Ys(de)){const Pe=ar(de);if(Pe){const le=F[Pe];if(le!==void 0&&le!==-1){q.splice(le,1);return}F[Pe]=q.length}q.push({el:de,src:Pe})}}}),q}return{asyncImgs:se(()=>{Object.values(r);const D=[];return o.forEach(({src:q,parentEl:F})=>{const U=q?r[q]:void 0;(q&&!(U!=null&&U.invalid)||F)&&D.push(U)}),D}),isWebtoon:se(()=>s.value??!1),maybeWebtoon:se(()=>l.value??!1)}}async function Od(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await kn(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),at(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await Cn(),!0}function Ws(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function Md(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 Ws(o)}function Ld(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 zd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>({el:o}));return Us(n)}function Us(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function Ks(e){return e.isConnected&&e.width>=200&&e.height>=200}function Ys(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function ar(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}function cr(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=cr(e.parentElement,t);return t.set(e,i),i}function lo({contentEl:e,images:t,page:n,smooth:o,skipIfVisible:r}){const i=Math.floor(n),s=t[Math.min(t.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.src}"]`);if(!l)return;const a=o?"smooth":"instant";if(n>=t.length){l==null||l.scrollIntoView({block:"end",behavior:a});return}const u=l.getBoundingClientRect();if(r&&u.top<=0&&u.top+u.height>0)return;l.scrollIntoView({block:"start",behavior:a});const p=n%1;if(p){const h=p*u.height,v=ur(e??document.documentElement);setTimeout(()=>v==null?void 0:v.scrollBy({top:h}))}}function ur(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?ur(document.documentElement)??e:e:ur(e.parentElement??void 0)}function Ad(e,t){return se(()=>t.value?Xs(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function Xs(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})),...Xs(e.slice(r.length),t+r.length)]}function jd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=Q(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return se({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function Bd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const fr=40;function Dd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,interferePlayer:a,onChangedPage:c,onInitialized:u}){let p=!1,h=!1,v;const x=Ue(P,300),k=Cs(()=>{P(),x()},300),z=Ue(N,50);async function X(){g(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function $(){var y;h=!0,u(),(y=l.value)==null||y.addEventListener("scroll",k),setTimeout(()=>{const{width:b,height:W}=rd();ve(b,()=>{r.value&&z()}),ve(W,()=>{r.value||z()}),ve(n,N),ve(t,N)},300)}async function N(){if(!h||p)return;p=!0,await gt();const y=e.value;if(j()===y){p=!1;return}g(y)}function g(y,{smooth:b,ensureLastImgVisibility:W=!1}={smooth:!1}){const ne=l.value;if(!ne)return;p=!0;const V=async()=>{await gt(),p=!1,h||$()},ue=Math.floor(y),re=ne.querySelector(`[data-index="${ue}"],[data-index2="${ue}"]`);if(!re){V();return}a(async()=>{await T(ne,!o.value&&b,async()=>{await fe(ne,re,{smooth:b,page:y,ensureLastImgVisibility:W})}),await V()})}async function T(y,b,W){b&&y.style.setProperty("scroll-snap-type","none"),await W(),b&&y.style.removeProperty("scroll-snap-type")}function P(){if(p)return;const y=j();y!==void 0&&y!==e.value&&c(y)}function j(){const y=S();return y?(+y.getAttribute("data-index")||0)+(o.value?L(y):0):void 0}function S(){var b;if(v??(v=l.value.getRootNode()),!v)return;const y=(b=v.elementsFromPoint)==null?void 0:b.call(v,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-fr:fr,r.value&&o.value?s.value||fr:window.innerHeight/2);if(y)for(let W=0;W<y.length;W++){const ne=y[W];if(ne.hasAttribute("data-index"))return ne;if(ne===l.value)break}}function L(y){const b=y.getBoundingClientRect();return r.value?Math.abs(b.top-s.value)/b.height:i.value?Math.max(0,b.right-l.value.clientWidth)/b.width:Math.abs(b.left)/b.width}let oe=!1;async function fe(y,b,W){if(oe)return;const ne=b.getBoundingClientRect();if(!o.value){if(r.value){if(ne.top<=0&&ne.bottom>=y.clientHeight)return}else if(ne.left<=0&&ne.right>=y.clientWidth)return}oe=!0;const V=r.value?y.scrollTop:y.scrollLeft,ue=W.page,re=o.value?ue%1:0,D=await kn(30,10,async()=>{await Cn();let de;if(!(b.offsetHeight<10))return o.value?r.value?de=b.offsetTop+re*b.offsetHeight-s.value:i.value?de=b.offsetLeft-y.clientWidth+b.offsetWidth-re*b.offsetWidth:de=b.offsetLeft+re*b.offsetWidth:r.value?de=b.offsetTop+(ne.top>0?0:ne.height-y.clientHeight):de=b.offsetLeft+(ne.left>0?0:ne.width-y.clientWidth),ue>.5&&Math.abs(de)<100?void 0:de})??0,q=W.ensureLastImgVisibility?r.value?Math.min(D,y.scrollHeight-y.clientHeight*2):i.value?Math.max(D,-(y.scrollWidth-y.clientWidth*2)):Math.min(D,y.scrollWidth-y.clientWidth*2):D;if(!W.smooth){r.value?y.scrollTop=q:y.scrollLeft=q,oe=!1;return}const F=q-V,U=30;let G=0;return new Promise(de=>{(function Pe(){const le=Rd(G,V,F,U);r.value?y.scrollTop=le:y.scrollLeft=le,G++,G<=U?requestAnimationFrame(Pe):(de(),oe=!1)})()})}return{init:X,goToPage:g}}function Rd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Nd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Q(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:S=>{a.value=S,sessionStorage.setItem("tk:playing",S?"true":"false")}}),u=Q(!1);let p,h;const v=Ue(P,100),x=Ue(()=>{u.value=!0},t?2e3:1e3),k=()=>setTimeout(()=>{u.value=!1,x()},30);k(),t||Ot(window,"mousemove",k);const z=Es();Ge(()=>{ve(z,S=>{c.value&&(S==="visible"?P():h==null||h())}),ve(s,()=>X()),ve(i,S=>{S||N()})});async function X(S){c.value&&(h==null||h()),S&&(await gt(),await S()),c.value&&v()}function $(){c.value?N():g()}function N(){c.value&&(c.value=!1,h==null||h(),k())}function g(){!c.value&&i.value&&(c.value=!0,P(),k())}function T(){h==null||h()}function P(){const S=n.value;if(!c.value||!S)return;const L=o.value?S.scrollHeight-S.clientHeight:S.scrollWidth-S.clientWidth,oe=j();if(L<=oe){N();return}h=()=>{p=Date.now(),h=void 0};const fe=Date.now();p=fe;const y=.05*s.value,b=o.value?"scrollTop":"scrollLeft";let W=Date.now(),ne=0;const V=()=>{if(p!==fe)return;const ue=Date.now(),re=ue-W;W=ue;const D=y*re+ne;D>=1?(ne=D%1,S[b]+=(D-ne)*(r.value?-1:1)):ne=D,setTimeout(V,1)};V()}function j(){const S=n.value;return o.value?S.scrollTop:r.value?-S.scrollLeft:S.scrollLeft}return{isPlaying:c,isIdle:u,toggle:$,play:g,pause:T,resume:P,stop:N,interfere:X,awake:k}}function Fd(e){var v,x,k,z,X;let t=-1,n=(v=e.prev)==null?void 0:v.slug,o=(x=e.next)==null?void 0:x.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,p=l.chapters??[],h=(p==null?void 0:p.length)>1?p:[];if(h.length){if(t=h.findIndex($=>$.slug===e.slug),t===-1&&(t=h.findIndex($=>($.vol??$.inferVol)===u&&$.chap===s)),t===-1&&(t=h.findIndex($=>a.startsWith(`${$.slug}-`)&&a.length-$.slug.length>3)),t!==-1)n??(n=(k=h[t+1])==null?void 0:k.slug),o??(o=(z=h[t-1])==null?void 0:z.slug);else if(!n&&!o){const $=h.findIndex(N=>{const g=N.vol??N.inferVol;return u===void 0||g===void 0||u===g?N.chap<s:g<u});$!==-1?(n=h[$].slug,o=(X=h[$-1])==null?void 0:X.slug):o=h[h.length-1].slug}}return{activeIndex:t,activeLabel:qs({vol:r,chap:s}),chapters:h.map($=>({label:qs($),path:dr(c,$.slug)})),prevPath:dr(c,n),nextPath:dr(c,o)}}function dr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function qs({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Vd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Hd=$e({...{inheritAttrs:!1},__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},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=Q(!1),l=Q(!1),a=nu({touchDevice:n.touchDevice}),c=jd(n.page,n.isAutoShow),u=se(()=>n.spaceTop??0),{asyncImgs:p,isWebtoon:h,maybeWebtoon:v}=Pd({raw:se(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(m){G(m),s.value=!0},onError:()=>{t("error"),C()}}),{direction:x,style:k,isRTL:z,isDouble:X,isVertical:$,isLongStrip:N,gap:g,speed:T,zoom:P}=Hu({titleName:se(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:h,maybeWebtoon:v,defaultStyle:n.readerStyle,defaultDirection:n.direction}),j=Ad(p,X),S=se(()=>c.value>=p.value.length),L=se(()=>n.raw?Fd(n.raw):void 0),oe=se(()=>{var m,w;return z.value?(m=L.value)==null?void 0:m.nextPath:(w=L.value)==null?void 0:w.prevPath}),fe=se(()=>{var m,w;return z.value?(m=L.value)==null?void 0:m.prevPath:(w=L.value)==null?void 0:w.nextPath}),y=Q(null),b=Q(null),W=Q(!1),ne=Q(!1),V=Nd({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var m;return(m=y.value)==null?void 0:m.$el}),speed:T,isRTL:z,isVertical:$,isLongStrip:N}),ue=se(()=>!n.touchDevice&&V.isIdle.value&&!a.value),re=se({get(){return P.value},set(m){V.interfere(()=>{P.value=m})}}),D=Dd({page:c,style:k,direction:x,isLongStrip:N,isVertical:$,isRTL:z,spaceTop:u,scrollEl:se(()=>{var m;return(m=y.value)==null?void 0:m.$el}),interferePlayer:m=>V.interfere(m),onChangedPage:G,onInitialized(){t("ready"),l.value=!0,n.touchDevice&&(i=de())}}),q=se(()=>Math.floor(c.value)),F=()=>V.interfere(()=>Cn(100));du().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const w=N.value&&$.value,H=N.value&&!$.value,ie=!N.value&&$.value,he=!N.value&&!$.value;switch(m.key){case" ":m.preventDefault(),N.value?(Z(!1),V.toggle()):_();break;case"ArrowUp":case"PageUp":w?F():ie&&q.value!==0&&(m.preventDefault(),d());break;case"ArrowDown":case"PageDown":w?F():ie&&!S.value&&(m.preventDefault(),_());break;case"ArrowLeft":H?F():he?(m.preventDefault(),In()):$.value&&De();break;case"ArrowRight":H?F():he?(m.preventDefault(),f()):$.value&&we();break}},onKeyUp:m=>{switch(m.key){case"f":M();break;case"t":R();break;case"h":Z();break}}}),Ot("fullscreenchange",()=>{W.value=!!document.fullscreenElement}),ve(V.isPlaying,m=>{m||O(!1),t("playingChanged",m)}),ve(V.isIdle,m=>{V.isPlaying.value&&O(m)}),ve(a,m=>{!m&&V.isIdle.value?V.awake():m&&n.fullScreen&&O()});function G(m){if(c.value===m)return;const w=p.value.length;if(m<0||m>=w+1)return;const H=c.value;c.value=m,t("pageChanged",Math.floor(m*100)/100),m>=w?(O(!1),V.stop()):m<.01?O(!1):n.touchDevice&&!r&&(N.value?i!==void 0&&de()-i>300&&O(!0):Math.abs(H-m)===1&&O(!0)),!o&&m>=w-2&&(o=!0,t("finished"))}function de(){var w;const m=(w=y.value)==null?void 0:w.$el;return m?$.value?m.scrollTop:z.value?-m.scrollLeft:m.scrollLeft:0}function Pe(){!n.touchDevice&&!N.value&&D.goToPage(q.value,{smooth:!0})}function le(){if(V.isPlaying.value){!n.fullScreen||!n.touchDevice?V.stop():V.awake();return}O()}function we(){var m;bt((m=L.value)==null?void 0:m.nextPath)}function De(){var m;bt((m=L.value)==null?void 0:m.prevPath)}function st(m){var H,ie,he;const w=(he=(ie=(H=L.value)==null?void 0:H.chapters)==null?void 0:ie[m])==null?void 0:he.path;w&&bt(w)}function bt(m){m&&(location.href=m.includes("://")?m:location.origin+m)}function In(){z.value?_():d()}function f(){z.value?d():_()}function d(){var H;const m=j.value,w=S.value?m[m.length-1][0].index:(H=m[I()-1])==null?void 0:H[0].index;w!==void 0?D.goToPage(w):De()}function _(){var m,w;if(S.value)we();else{const H=((w=(m=j.value[I()+1])==null?void 0:m[0])==null?void 0:w.index)??p.value.length;D.goToPage(H)}}function I(){const m=q.value,w=j.value.findIndex(H=>H.some(({index:ie})=>ie===m));return w===-1?j.value.length-1:w}function C(){Bd(),V.stop(),t("dispose")}async function O(m){if(a.value&&!n.fullScreen)return;r=!0;const w=typeof m=="boolean"?m:!n.fullScreen;t("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&a.value&&t("fullScreenChanged",!1)},100)}function R(){n.entryId?E():B()}function M(){var m,w;document.fullscreenElement?document.exitFullscreen():(w=(m=b.value)==null?void 0:m.$el)==null||w.requestFullscreen()}function B(){V.stop(),t("addEntry")}function E(){V.stop(),t("openEntry",n.entryId)}function Z(m){ne.value!==m&&(ne.value=!ne.value,ne.value&&V.isPlaying&&V.stop())}return(m,w)=>{const H=Vs,ie=Fs,he=Ds,be=js,ke=As,Ye=zs,Mt=ws,dt=oo,Kt=ys,ao=or,Re=_s,nt=bs,co=vs,ep=gs,tp=hs,np=ps,op=ds,rp=fs,ip=tr,sp=er,lp=os,ap=ts;return m.immediate||s.value?(A(),xe(ap,{key:0,ref_key:"root",ref:b,loading:!l.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,idle:ue.value,"space-top":u.value,rtl:ee(z),onClick:w[10]||(w[10]=tt(()=>{},["stop"]))},ci({settings:ce(()=>{var _t;return[J(rp,{"reader-style":ee(k),"onUpdate:readerStyle":w[3]||(w[3]=yt=>Te(k)?k.value=yt:null),direction:ee(x),"onUpdate:direction":w[4]||(w[4]=yt=>Te(x)?x.value=yt:null),gap:ee(g),"onUpdate:gap":w[5]||(w[5]=yt=>Te(g)?g.value=yt:null),speed:ee(T),"onUpdate:speed":w[6]||(w[6]=yt=>Te(T)?T.value=yt:null),zoom:re.value,"onUpdate:zoom":w[7]||(w[7]=yt=>re.value=yt),name:(_t=m.raw)==null?void 0:_t.title.name,webtoon:ee(h),disabled:!s.value,onHelp:Z},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ce(()=>[J(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ce(()=>[J(lp,{zoom:re.value,onClick:w[9]||(w[9]=tt(()=>re.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ce(()=>[K("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:je({width:`${ee(c)/(ee(p).length-1)*100}%`})},null,4)]),default:ce(()=>[s.value?(A(),xe(ie,{key:0,ref_key:"body",ref:y,zoom:re.value,"onUpdate:zoom":w[0]||(w[0]=_t=>re.value=_t),"page-index":q.value,pages:ee(j),"total-imgs":ee(p).length,direction:ee(x),gap:ee(g),"is-long-strip":ee(N),isRTL:ee(z),"is-vertical":ee($),"space-top":u.value,busy:ee(a),idle:ue.value,"play-controller":ee(V),"touch-device":m.touchDevice,onVnodeMounted:ee(D).init,onPrev:d,onNext:_,onClick:le,onDragEnd:Pe,onWheelPassive:w[1]||(w[1]=()=>ee(V).interfere())},ci({_:2},[s.value&&ee(p).length?{name:"end",fn:ce(()=>{var _t;return[J(H,{"has-next":!!((_t=L.value)!=null&&_t.nextPath),onNext:we,onHide:C},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&&!S.value&&!m.tourEnabled?(A(),xe(he,{key:1,direction:ee(x)},null,8,["direction"])):Me("",!0),l.value&&!S.value?(A(),xe(be,{key:2,playing:!!ee(V).isPlaying.value},null,8,["playing"])):Me("",!0),ne.value?(A(),xe(ke,{key:3,"touch-device":m.touchDevice,onHide:Z},null,8,["touch-device"])):Me("",!0),m.tourEnabled?(A(),xe(Ye,{key:4,onHide:w[2]||(w[2]=()=>t("tourEnabledChanged",!1))})):Me("",!0)]),_:2},[m.raw?{name:"back",fn:ce(()=>[J(dt,{href:m.raw.title.url,title:"Back to manga"},{default:ce(()=>[J(Mt)]),_:1},8,["href"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:ce(()=>[J(dt,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:C},{default:ce(()=>[J(Kt)]),_:1})]),key:"1"},L.value?{name:"chapter-nav",fn:ce(()=>[J(ao,{modelValue:L.value.activeIndex,label:L.value.activeLabel,title:"Select chapter",items:L.value.chapters,"onUpdate:modelValue":st},{item:ce(({item:_t})=>[It(Ze(_t.label),1)]),_:1},8,["modelValue","label","items"]),oe.value||fe.value?(A(),Y("div",Vd,[J(dt,{title:`${ee(z)?"Next":"Prev"} chapter (←)`,href:oe.value,disabled:!oe.value,class:"!rounded-r-none"},{default:ce(()=>[J(Re)]),_:1},8,["title","href","disabled"]),J(dt,{title:`${ee(z)?"Prev":"Next"} chapter (→)`,href:fe.value,disabled:!fe.value,class:"!rounded-l-none"},{default:ce(()=>[J(nt)]),_:1},8,["title","href","disabled"])])):Me("",!0)]),key:"2"}:void 0,ee(j).length?{name:"page-nav",fn:ce(()=>[J(co,{"model-value":q.value,disabled:!l.value,pages:ee(j),"total-imgs":ee(p).length,"onUpdate:modelValue":ee(D).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,m.raw?{name:"entry",fn:ce(()=>[J(dt,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:R},{default:ce(()=>[m.entryId?(A(),xe(ep,{key:0})):(A(),xe(tp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:ce(()=>[J(dt,{title:`${W.value?"Exit":"Enter"} fullscreen (F)`,onClick:M},{default:ce(()=>[W.value?(A(),xe(np,{key:0})):(A(),xe(op,{key:1}))]),_:1},8,["title"])]),key:"5"},ee(N)?{name:"play",fn:ce(()=>[J(dt,{"data-tour":"Press here to play like a video",title:`${ee(V).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:w[8]||(w[8]=()=>ee(V).toggle())},{default:ce(()=>[ee(V).isPlaying.value?(A(),xe(ip,{key:0})):(A(),xe(sp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Me("",!0)}}}),Zs=ye(Hd,[["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}.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}.md\\:text-lg{font-size:18px;line-height:28px}}@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
|
+
`]]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Ud={},Kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yd=[K("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 Xd(e,t){return A(),Y("svg",Kd,Yd)}const qd=Object.freeze(Object.defineProperty({__proto__:null,default:ye(Ud,[["render",Xd]])},Symbol.toStringTag,{value:"Module"})),Zd=`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 body gear-second+*,html.gear-second body gear-second+*+*,html.gear-second body gear-second+*+*+*,html.gear-second body gear-second+*+*+*+*,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}html.gear-second body .m-content #progress-bar{display:none!important}
|
|
9
|
+
`,Sn="gear-second",pr={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,readerStyle:void 0,direction: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},Ke={promise:void 0,data:ln({...pr})};async function Qd(e){return Ke.promise?(Ke.data.raw=e.raw,await Ke.promise):(Ke.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(Sn),Object.assign(Ke.data,pr),Ke.promise=void 0)};Object.assign(Ke.data,pr,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;Ke.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Ke.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Ke.data.tourEnabled=c}}),Jd().then(()=>{if(n){a();return}r=document.createElement(Sn),document.documentElement.classList.add(Sn),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)=>md(c,u),updateArgs(c){Object.assign(Ke.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Ke.promise)}async function Jd(){if(window.customElements.get(Sn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Zd)),document.head.appendChild(e);const t=fc({styles:[await Gd()],data:()=>({readerData:Ke.data}),render(){return ji(Zs,this.readerData)}});window.customElements.define(Sn,t)}async function Gd(){const e=Object.assign({"./TrackkunReader.vue":Wd,"./components/AutoNext.vue":Ed,"./components/BottomSheet.vue":mu,"./components/ButtonDropdown.vue":kf,"./components/ButtonIcon.vue":iu,"./components/ButtonReaderSettings.vue":Uu,"./components/ButtonResetZoom.vue":Uc,"./components/DirectionToast.vue":hd,"./components/HelpScreen.vue":ld,"./components/InputPercentage.vue":_u,"./components/InputSelect.vue":Cu,"./components/IntersectionWrapper.vue":_d,"./components/LoadingIndicator.vue":Ec,"./components/PageNav.vue":Cf,"./components/PauseToast.vue":ad,"./components/ReaderBody.vue":Sd,"./components/ReaderLayout.vue":jc,"./components/ReaderTour.vue":id,"./components/TableField.vue":xu,"./components/ZoomWrapper.vue":bd,"./components/icons/IconBack.vue":Wf,"./components/icons/IconBookmarkNew.vue":lf,"./components/icons/IconBookmarked.vue":df,"./components/icons/IconChevronLeft.vue":zf,"./components/icons/IconChevronRight.vue":Ef,"./components/icons/IconClose.vue":uu,"./components/icons/IconExclamationCircle.vue":qd,"./components/icons/IconFullscreen.vue":Zu,"./components/icons/IconFullscreenExit.vue":tf,"./components/icons/IconHelp.vue":Eu,"./components/icons/IconNext.vue":pd,"./components/icons/IconPause.vue":tu,"./components/icons/IconPlay.vue":Zc,"./components/icons/IconReaderExit.vue":Rf,"./components/icons/IconSettings.vue":zu,"./components/icons/IconTriangle.vue":vf,"./components/icons/IconZoom.vue":Fc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Qd});
|