gear-second 1.7.2 → 1.7.4

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.
Files changed (2) hide show
  1. package/index.js +16 -16
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,29 +1,29 @@
1
- (function(He,se){typeof exports=="object"&&typeof module<"u"?module.exports=se():typeof define=="function"&&define.amd?define(se):(He=typeof globalThis<"u"?globalThis:He||self,He._gearSecond_=se())})(this,function(){"use strict";var Xp=Object.defineProperty;var Zp=(He,se,Ge)=>se in He?Xp(He,se,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):He[se]=Ge;var ve=(He,se,Ge)=>(Zp(He,typeof se!="symbol"?se+"":se,Ge),Ge);/**
1
+ (function(Ne,le){typeof exports=="object"&&typeof module<"u"?module.exports=le():typeof define=="function"&&define.amd?define(le):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Ne._gearSecond_=le())})(this,function(){"use strict";var Op=Object.defineProperty;var Lp=(Ne,le,Ye)=>le in Ne?Op(Ne,le,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ne[le]=Ye;var ve=(Ne,le,Ye)=>(Lp(Ne,typeof le!="symbol"?le+"":le,Ye),Ye);/**
2
2
  * @vue/shared v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function He(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const se={},Ge=[],We=()=>{},vl=()=>!1,Mn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yo=e=>e.startsWith("onUpdate:"),be=Object.assign,wo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_l=Object.prototype.hasOwnProperty,ue=(e,t)=>_l.call(e,t),ee=Array.isArray,Jt=e=>On(e)==="[object Map]",Er=e=>On(e)==="[object Set]",te=e=>typeof e=="function",ye=e=>typeof e=="string",en=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",$r=e=>(ge(e)||te(e))&&te(e.then)&&te(e.catch),Pr=Object.prototype.toString,On=e=>Pr.call(e),bl=e=>On(e).slice(8,-1),Mr=e=>On(e)==="[object Object]",xo=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ln=He(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yl=/-(\w)/g,je=An(e=>e.replace(yl,(t,n)=>n?n.toUpperCase():"")),wl=/\B([A-Z])/g,Ke=An(e=>e.replace(wl,"-$1").toLowerCase()),zn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),So=An(e=>e?`on${zn(e)}`:""),at=(e,t)=>!Object.is(e,t),jn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Rn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ko=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Io=e=>{const t=ye(e)?Number(e):NaN;return isNaN(t)?e:t};let Or;const Co=()=>Or||(Or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Le(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ye(o)?Il(o):Le(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(ye(e)||ge(e))return e}const xl=/;(?![^(]*\))/g,Sl=/:([^]+)/,kl=/\/\*[^]*?\*\//g;function Il(e){const t={};return e.replace(kl,"").split(xl).forEach(n=>{if(n){const o=n.split(Sl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ce(e){let t="";if(ye(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Ce(e[n]);o&&(t+=o+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Cl=He("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Lr(e){return!!e||e===""}const Qe=e=>ye(e)?e:e==null?"":ee(e)||ge(e)&&(e.toString===Pr||!te(e.toString))?JSON.stringify(e,Ar,2):String(e),Ar=(e,t)=>t&&t.__v_isRef?Ar(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[To(o,i)+" =>"]=r,n),{})}:Er(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>To(n))}:en(t)?To(t):ge(t)&&!ee(t)&&!Mr(t)?String(t):t,To=(e,t="")=>{var n;return en(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Ne(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const le={},Ye=[],Ve=()=>{},hl=()=>!1,Mn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),mo=e=>e.startsWith("onUpdate:"),_e=Object.assign,vo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},gl=Object.prototype.hasOwnProperty,ue=(e,t)=>gl.call(e,t),ee=Array.isArray,Xt=e=>On(e)==="[object Map]",Ir=e=>On(e)==="[object Set]",re=e=>typeof e=="function",we=e=>typeof e=="string",Zt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Cr=e=>(ge(e)||re(e))&&re(e.then)&&re(e.catch),Tr=Object.prototype.toString,On=e=>Tr.call(e),ml=e=>On(e).slice(8,-1),Er=e=>On(e)==="[object Object]",bo=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ln=Ne(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vl=/-(\w)/g,je=An(e=>e.replace(vl,(t,n)=>n?n.toUpperCase():"")),bl=/\B([A-Z])/g,Fe=An(e=>e.replace(bl,"-$1").toLowerCase()),zn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=An(e=>e?`on${zn(e)}`:""),st=(e,t)=>!Object.is(e,t),jn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Rn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},_o=e=>{const t=parseFloat(e);return isNaN(t)?e:t},wo=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let $r;const xo=()=>$r||($r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=we(o)?xl(o):Oe(o);if(r)for(const i in r)t[i]=r[i]}return t}else if(we(e)||ge(e))return e}const yl=/;(?![^(]*\))/g,_l=/:([^]+)/,wl=/\/\*[^]*?\*\//g;function xl(e){const t={};return e.replace(wl,"").split(yl).forEach(n=>{if(n){const o=n.split(_l);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ie(e){let t="";if(we(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Ie(e[n]);o&&(t+=o+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Sl=Ne("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Pr(e){return!!e||e===""}const Xe=e=>we(e)?e:e==null?"":ee(e)||ge(e)&&(e.toString===Tr||!re(e.toString))?JSON.stringify(e,Mr,2):String(e),Mr=(e,t)=>t&&t.__v_isRef?Mr(e,t.value):Xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[So(o,i)+" =>"]=r,n),{})}:Ir(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>So(n))}:Zt(t)?So(t):ge(t)&&!ee(t)&&!Er(t)?String(t):t,So=(e,t="")=>{var n;return Zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
6
  * @vue/reactivity v3.4.15
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let qe;class Tl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=qe,!t&&qe&&(this.index=(qe.scopes||(qe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=qe;try{return qe=this,t()}finally{qe=n}}}on(){qe=this}off(){qe=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 El(e,t=qe){t&&t.active&&t.effects.push(e)}function zr(){return qe}function $l(e){qe&&qe.cleanups.push(e)}let Bt;class Eo{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,El(this,r)}get dirty(){if(this._dirtyLevel===1){xt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Pl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),St()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=wt,n=Bt;try{return wt=!0,Bt=this,this._runnings++,jr(this),this.fn()}finally{Rr(this),this._runnings--,Bt=n,wt=t}}stop(){var t;this.active&&(jr(this),Rr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Pl(e){return e.value}function jr(e){e._trackId++,e._depsLength=0}function Rr(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Dr(e.deps[t],e);e.deps.length=e._depsLength}}function Dr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let wt=!0,$o=0;const Br=[];function xt(){Br.push(wt),wt=!1}function St(){const e=Br.pop();wt=e===void 0?!0:e}function Po(){$o++}function Mo(){for($o--;!$o&&Oo.length;)Oo.shift()()}function Vr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Dr(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oo=[];function Nr(e,t,n){Po();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Fr(e),Mo()}function Fr(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Oo.push(t.scheduler))}const Hr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Lo=new WeakMap,Vt=Symbol(""),Ao=Symbol("");function Re(e,t,n){if(wt&&Bt){let o=Lo.get(e);o||Lo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Hr(()=>o.delete(n))),Vr(Bt,r)}}function gt(e,t,n,o,r,i){const s=Lo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!en(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?xo(n)&&l.push(s.get("length")):(l.push(s.get(Vt)),Jt(e)&&l.push(s.get(Ao)));break;case"delete":ee(e)||(l.push(s.get(Vt)),Jt(e)&&l.push(s.get(Ao)));break;case"set":Jt(e)&&l.push(s.get(Vt));break}Po();for(const a of l)a&&Nr(a,2);Mo()}const Ml=He("__proto__,__v_isRef,__isVue"),Wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(en)),Kr=Ol();function Ol(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let i=0,s=this.length;i<s;i++)Re(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){xt(),Po();const o=ce(this)[t].apply(this,n);return Mo(),St(),o}}),e}function Ll(e){const t=ce(this);return Re(t,"has",e),t.hasOwnProperty(e)}class qr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?ql:ei:i?Jr:Qr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!r){if(s&&ue(Kr,n))return Reflect.get(Kr,n,o);if(n==="hasOwnProperty")return Ll}const l=Reflect.get(t,n,o);return(en(n)?Wr.has(n):Ml(n))||(r||Re(t,"get",n),i)?l:Te(l)?s&&xo(n)?l:l.value:ge(l)?r?ti(l):un(l):l}}class Ur extends qr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=nn(i);if(!Wn(o)&&!nn(o)&&(i=ce(i),o=ce(o)),!ee(t)&&Te(i)&&!Te(o))return a?!1:(i.value=o,!0)}const s=ee(t)&&xo(n)?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,o,r);return t===ce(r)&&(s?at(o,i)&&gt(t,"set",n,o):gt(t,"add",n,o)),l}deleteProperty(t,n){const o=ue(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&gt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!en(n)||!Wr.has(n))&&Re(t,"has",n),o}ownKeys(t){return Re(t,"iterate",ee(t)?"length":Vt),Reflect.ownKeys(t)}}class Al extends qr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zl=new Ur,jl=new Al,Rl=new Ur(!0),zo=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),i=ce(t);n||(at(t,i)&&Re(r,"get",t),Re(r,"get",i));const{has:s}=Dn(r),l=o?zo:n?Do:dn;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 Vn(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(at(e,r)&&Re(o,"has",e),Re(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Nn(e,t=!1){return e=e.__v_raw,!t&&Re(ce(e),"iterate",Vt),Reflect.get(e,"size",e)}function Yr(e){e=ce(e);const t=ce(this);return Dn(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Xr(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=Dn(n);let i=o.call(n,e);i||(e=ce(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?at(t,s)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Zr(e){const t=ce(this),{has:n,get:o}=Dn(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&gt(t,"delete",e,void 0),i}function Gr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function Fn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=ce(s),a=t?zo:e?Do:dn;return!e&&Re(l,"iterate",Vt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=ce(r),s=Jt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?zo:t?Do:dn;return!t&&Re(i,"iterate",a?Ao:Vt),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Dl(){const e={get(i){return Bn(this,i)},get size(){return Nn(this)},has:Vn,add:Yr,set:Xr,delete:Zr,clear:Gr,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Nn(this)},has:Vn,add:Yr,set:Xr,delete:Zr,clear:Gr,forEach:Fn(!1,!0)},n={get(i){return Bn(this,i,!0)},get size(){return Nn(this,!0)},has(i){return Vn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Fn(!0,!1)},o={get(i){return Bn(this,i,!0,!0)},get size(){return Nn(this,!0)},has(i){return Vn.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[Bl,Vl,Nl,Fl]=Dl();function jo(e,t){const n=t?e?Fl:Nl:e?Vl:Bl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ue(n,r)&&r in o?n:o,r,i)}const Hl={get:jo(!1,!1)},Wl={get:jo(!1,!0)},Kl={get:jo(!0,!1)},Qr=new WeakMap,Jr=new WeakMap,ei=new WeakMap,ql=new WeakMap;function Ul(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ul(bl(e))}function un(e){return nn(e)?e:Ro(e,!1,zl,Hl,Qr)}function Xl(e){return Ro(e,!1,Rl,Wl,Jr)}function ti(e){return Ro(e,!0,jl,Kl,ei)}function Ro(e,t,n,o,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Yl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function tn(e){return nn(e)?tn(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function Wn(e){return!!(e&&e.__v_isShallow)}function ni(e){return tn(e)||nn(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function oi(e){return Rn(e,"__v_skip",!0),e}const dn=e=>ge(e)?un(e):e,Do=e=>ge(e)?ti(e):e;class ri{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Eo(()=>t(this._value),()=>fn(this,1),()=>this.dep&&Fr(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ce(this);return(!t._cacheable||t.effect.dirty)&&at(t._value,t._value=t.effect.run())&&fn(t,2),Bo(t),t.effect._dirtyLevel>=1&&fn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Zl(e,t,n=!1){let o,r;const i=te(e);return i?(o=e,r=We):(o=e.get,r=e.set),new ri(o,r,i||!r,n)}function Bo(e){wt&&Bt&&(e=ce(e),Vr(Bt,e.dep||(e.dep=Hr(()=>e.dep=void 0,e instanceof ri?e:void 0))))}function fn(e,t=2,n){e=ce(e);const o=e.dep;o&&Nr(o,t)}function Te(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Gl(e,!1)}function Gl(e,t){return Te(e)?e:new Ql(e,t)}class Ql{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:dn(t)}get value(){return Bo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||nn(t);t=n?t:ce(t),at(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:dn(t),fn(this,2))}}function Z(e){return Te(e)?e.value:e}const Jl={get:(e,t,n)=>Z(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 ii(e){return tn(e)?e:new Proxy(e,Jl)}class ea{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Bo(this),()=>fn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ta(e){return new ea(e)}/**
9
+ **/let He;class kl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=He,!t&&He&&(this.index=(He.scopes||(He.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=He;try{return He=this,t()}finally{He=n}}}on(){He=this}off(){He=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 Il(e,t=He){t&&t.active&&t.effects.push(e)}function Or(){return He}function Cl(e){He&&He.cleanups.push(e)}let zt;class ko{constructor(t,n,o,r){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Il(this,r)}get dirty(){if(this._dirtyLevel===1){_t();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Tl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=zt;try{return yt=!0,zt=this,this._runnings++,Lr(this),this.fn()}finally{Ar(this),this._runnings--,zt=n,yt=t}}stop(){var t;this.active&&(Lr(this),Ar(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Tl(e){return e.value}function Lr(e){e._trackId++,e._depsLength=0}function Ar(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)zr(e.deps[t],e);e.deps.length=e._depsLength}}function zr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,Io=0;const jr=[];function _t(){jr.push(yt),yt=!1}function wt(){const e=jr.pop();yt=e===void 0?!0:e}function Co(){Io++}function To(){for(Io--;!Io&&Eo.length;)Eo.shift()()}function Rr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&zr(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Eo=[];function Dr(e,t,n){Co();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const r=o._dirtyLevel;o._dirtyLevel=t,r===0&&(o._shouldSchedule=!0,o.trigger())}Br(e),To()}function Br(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Eo.push(t.scheduler))}const Nr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},$o=new WeakMap,jt=Symbol(""),Po=Symbol("");function Re(e,t,n){if(yt&&zt){let o=$o.get(e);o||$o.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Nr(()=>o.delete(n))),Rr(zt,r)}}function pt(e,t,n,o,r,i){const s=$o.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Zt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?bo(n)&&l.push(s.get("length")):(l.push(s.get(jt)),Xt(e)&&l.push(s.get(Po)));break;case"delete":ee(e)||(l.push(s.get(jt)),Xt(e)&&l.push(s.get(Po)));break;case"set":Xt(e)&&l.push(s.get(jt));break}Co();for(const a of l)a&&Dr(a,2);To()}const El=Ne("__proto__,__v_isRef,__isVue"),Vr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zt)),Fr=$l();function $l(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ae(this);for(let i=0,s=this.length;i<s;i++)Re(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ae)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_t(),Co();const o=ae(this)[t].apply(this,n);return To(),wt(),o}}),e}function Pl(e){const t=ae(this);return Re(t,"has",e),t.hasOwnProperty(e)}class Hr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const r=this._isReadonly,i=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?Hl:Gr:i?Zr:Xr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!r){if(s&&ue(Fr,n))return Reflect.get(Fr,n,o);if(n==="hasOwnProperty")return Pl}const l=Reflect.get(t,n,o);return(Zt(n)?Vr.has(n):El(n))||(r||Re(t,"get",n),i)?l:Ce(l)?s&&bo(n)?l:l.value:ge(l)?r?Qr(l):an(l):l}}class Wr extends Hr{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._shallow){const a=Qt(i);if(!Wn(o)&&!Qt(o)&&(i=ae(i),o=ae(o)),!ee(t)&&Ce(i)&&!Ce(o))return a?!1:(i.value=o,!0)}const s=ee(t)&&bo(n)?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,o,r);return t===ae(r)&&(s?st(o,i)&&pt(t,"set",n,o):pt(t,"add",n,o)),l}deleteProperty(t,n){const o=ue(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&o&&pt(t,"delete",n,void 0),r}has(t,n){const o=Reflect.has(t,n);return(!Zt(n)||!Vr.has(n))&&Re(t,"has",n),o}ownKeys(t){return Re(t,"iterate",ee(t)?"length":jt),Reflect.ownKeys(t)}}class Ml extends Hr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ol=new Wr,Ll=new Ml,Al=new Wr(!0),Mo=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Bn(e,t,n=!1,o=!1){e=e.__v_raw;const r=ae(e),i=ae(t);n||(st(t,i)&&Re(r,"get",t),Re(r,"get",i));const{has:s}=Dn(r),l=o?Mo:n?Ao:cn;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 Nn(e,t=!1){const n=this.__v_raw,o=ae(n),r=ae(e);return t||(st(e,r)&&Re(o,"has",e),Re(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Vn(e,t=!1){return e=e.__v_raw,!t&&Re(ae(e),"iterate",jt),Reflect.get(e,"size",e)}function Kr(e){e=ae(e);const t=ae(this);return Dn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function qr(e,t){t=ae(t);const n=ae(this),{has:o,get:r}=Dn(n);let i=o.call(n,e);i||(e=ae(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?st(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Ur(e){const t=ae(this),{has:n,get:o}=Dn(t);let r=n.call(t,e);r||(e=ae(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 Yr(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Fn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=ae(s),a=t?Mo:e?Ao:cn;return!e&&Re(l,"iterate",jt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Hn(e,t,n){return function(...o){const r=this.__v_raw,i=ae(r),s=Xt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?Mo:t?Ao:cn;return!t&&Re(i,"iterate",a?Po:jt),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:l?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function zl(){const e={get(i){return Bn(this,i)},get size(){return Vn(this)},has:Nn,add:Kr,set:qr,delete:Ur,clear:Yr,forEach:Fn(!1,!1)},t={get(i){return Bn(this,i,!1,!0)},get size(){return Vn(this)},has:Nn,add:Kr,set:qr,delete:Ur,clear:Yr,forEach:Fn(!1,!0)},n={get(i){return Bn(this,i,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!1)},o={get(i){return Bn(this,i,!0,!0)},get size(){return Vn(this,!0)},has(i){return Nn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Hn(i,!1,!1),n[i]=Hn(i,!0,!1),t[i]=Hn(i,!1,!0),o[i]=Hn(i,!0,!0)}),[e,n,t,o]}const[jl,Rl,Dl,Bl]=zl();function Oo(e,t){const n=t?e?Bl:Dl:e?Rl:jl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ue(n,r)&&r in o?n:o,r,i)}const Nl={get:Oo(!1,!1)},Vl={get:Oo(!1,!0)},Fl={get:Oo(!0,!1)},Xr=new WeakMap,Zr=new WeakMap,Gr=new WeakMap,Hl=new WeakMap;function Wl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kl(e){return e.__v_skip||!Object.isExtensible(e)?0:Wl(ml(e))}function an(e){return Qt(e)?e:Lo(e,!1,Ol,Nl,Xr)}function ql(e){return Lo(e,!1,Al,Vl,Zr)}function Qr(e){return Lo(e,!0,Ll,Fl,Gr)}function Lo(e,t,n,o,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Kl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Gt(e){return Qt(e)?Gt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function Wn(e){return!!(e&&e.__v_isShallow)}function Jr(e){return Gt(e)||Qt(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function ei(e){return Rn(e,"__v_skip",!0),e}const cn=e=>ge(e)?an(e):e,Ao=e=>ge(e)?Qr(e):e;class ti{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ko(()=>t(this._value),()=>un(this,1),()=>this.dep&&Br(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=ae(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&un(t,2),zo(t),t.effect._dirtyLevel>=1&&un(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Ul(e,t,n=!1){let o,r;const i=re(e);return i?(o=e,r=Ve):(o=e.get,r=e.set),new ti(o,r,i||!r,n)}function zo(e){yt&&zt&&(e=ae(e),Rr(zt,e.dep||(e.dep=Nr(()=>e.dep=void 0,e instanceof ti?e:void 0))))}function un(e,t=2,n){e=ae(e);const o=e.dep;o&&Dr(o,t)}function Ce(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Yl(e,!1)}function Yl(e,t){return Ce(e)?e:new Xl(e,t)}class Xl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ae(t),this._value=n?t:cn(t)}get value(){return zo(this),this._value}set value(t){const n=this.__v_isShallow||Wn(t)||Qt(t);t=n?t:ae(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),un(this,2))}}function Z(e){return Ce(e)?e.value:e}const Zl={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ni(e){return Gt(e)?e:new Proxy(e,Zl)}class Gl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>zo(this),()=>un(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function Ql(e){return new Gl(e)}/**
10
10
  * @vue/runtime-core v3.4.15
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const pn=[];function Qp(e,...t){xt();const n=pn.length?pn[pn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=na();if(o)mt(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Gi(n,i.type)}>`).join(`
13
+ **/const dn=[];function zp(e,...t){_t();const n=dn.length?dn[dn.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=Jl();if(o)ht(o,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${Yi(n,i.type)}>`).join(`
14
14
  `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
- `,...oa(r)),console.warn(...i)}St()}function na(){let e=pn[pn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function oa(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...ra(n))}),t}function ra({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Gi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...ia(e.props),i]:[r+i]}function ia(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...si(o,e[o]))}),n.length>3&&t.push(" ..."),t}function si(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Te(t)?(t=si(e,ce(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):te(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ce(t),n?t:[`${e}=`,t])}function mt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Kn(i,t,n)}return r}function Je(e,t,n,o){if(te(e)){const i=mt(e,t,n,o);return i&&$r(i)&&i.catch(s=>{Kn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Je(e[i],t,n,o));return r}function Kn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${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){mt(a,null,10,[e,s,l]);return}}sa(e,n,r,o)}function sa(e,t,n,o=!0){console.error(e)}let hn=!1,Vo=!1;const Oe=[];let ct=0;const on=[];let It=null,Nt=0;const li=Promise.resolve();let No=null;function vt(e){const t=No||li;return e?t.then(this?e.bind(this):e):t}function la(e){let t=ct+1,n=Oe.length;for(;t<n;){const o=t+n>>>1,r=Oe[o],i=gn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Fo(e){(!Oe.length||!Oe.includes(e,hn&&e.allowRecurse?ct+1:ct))&&(e.id==null?Oe.push(e):Oe.splice(la(e.id),0,e),ai())}function ai(){!hn&&!Vo&&(Vo=!0,No=li.then(di))}function aa(e){const t=Oe.indexOf(e);t>ct&&Oe.splice(t,1)}function ca(e){ee(e)?on.push(...e):(!It||!It.includes(e,e.allowRecurse?Nt+1:Nt))&&on.push(e),ai()}function ci(e,t,n=hn?ct+1:0){for(;n<Oe.length;n++){const o=Oe[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Oe.splice(n,1),n--,o()}}}function ui(e){if(on.length){const t=[...new Set(on)].sort((n,o)=>gn(n)-gn(o));if(on.length=0,It){It.push(...t);return}for(It=t,Nt=0;Nt<It.length;Nt++)It[Nt]();It=null,Nt=0}}const gn=e=>e.id==null?1/0:e.id,ua=(e,t)=>{const n=gn(e)-gn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function di(e){Vo=!1,hn=!0,Oe.sort(ua);const t=We;try{for(ct=0;ct<Oe.length;ct++){const n=Oe[ct];n&&n.active!==!1&&mt(n,null,14)}}finally{ct=0,Oe.length=0,ui(),hn=!1,No=null,(Oe.length||on.length)&&di()}}function da(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||se;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:f,trim:h}=o[u]||se;h&&(r=n.map(S=>ye(S)?S.trim():S)),f&&(r=n.map(ko))}let l,a=o[l=So(t)]||o[l=So(je(t))];!a&&i&&(a=o[l=So(Ke(t))]),a&&Je(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,Je(c,e,6,r)}}function fi(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(!te(e)){const a=c=>{const u=fi(c,t,!0);u&&(l=!0,be(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ge(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):be(s,i),ge(e)&&o.set(e,s),s)}function qn(e,t){return!e||!Mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Ke(t))||ue(e,t))}let Ee=null,pi=null;function Un(e){const t=Ee;return Ee=e,pi=e&&e.type.__scopeId||null,t}function ne(e,t=Ee,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Fi(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Fi(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Jp(){}function Ho(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:h,setupState:S,ctx:w,inheritAttrs:b}=e;let A,P;const K=Un(e);try{if(n.shapeFlag&4){const D=r||o,k=D;A=ut(u.call(k,D,f,i,S,h,w)),P=a}else{const D=t;A=ut(D.length>1?D(i,{attrs:a,slots:l,emit:c}):D(i,null)),P=t.props?a:fa(a)}}catch(D){yn.length=0,Kn(D,e,1),A=Q(nt)}let y=A;if(P&&b!==!1){const D=Object.keys(P),{shapeFlag:k}=y;D.length&&k&7&&(s&&D.some(yo)&&(P=pa(P,s)),y=$t(y,P))}return n.dirs&&(y=$t(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),A=y,Un(K),A}const fa=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},pa=(e,t)=>{const n={};for(const o in e)(!yo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ha(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?hi(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(s[h]!==o[h]&&!qn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?hi(o,s,c):!0:!!s;return!1}function hi(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]&&!qn(n,i))return!0}return!1}function ga({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const gi="components",mi=Symbol.for("v-ndc");function ma(e){return ye(e)?va(gi,e,!1)||e:e||mi}function va(e,t,n=!0,o=!1){const r=Ee||Pe;if(r){const i=r.type;if(e===gi){const l=Zi(i,!1);if(l&&(l===t||l===je(t)||l===zn(je(t))))return i}const s=vi(r[e]||i[e],t)||vi(r.appContext[e],t);return!s&&o?i:s}}function vi(e,t){return e&&(e[t]||e[je(t)]||e[zn(je(t))])}const _a=e=>e.__isSuspense;function ba(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ca(e)}const ya=Symbol.for("v-scx"),wa=()=>Wt(ya);function xa(e,t){return Wo(e,null,{flush:"sync"})}const Yn={};function pe(e,t,n){return Wo(e,t,n)}function Wo(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=se){if(t&&i){const m=t;t=(...x)=>{m(...x),k()}}const a=Pe,c=m=>o===!0?m:Ft(m,o===!1?1:void 0);let u,f=!1,h=!1;if(Te(e)?(u=()=>e.value,f=Wn(e)):tn(e)?(u=()=>c(e),f=!0):ee(e)?(h=!0,f=e.some(m=>tn(m)||Wn(m)),u=()=>e.map(m=>{if(Te(m))return m.value;if(tn(m))return c(m);if(te(m))return mt(m,a,2)})):te(e)?t?u=()=>mt(e,a,2):u=()=>(S&&S(),Je(e,a,3,[w])):u=We,t&&o){const m=u;u=()=>Ft(m())}let S,w=m=>{S=y.onStop=()=>{mt(m,a,4),S=y.onStop=void 0}},b;if(ao)if(w=We,t?n&&Je(t,a,3,[u(),h?[]:void 0,w]):u(),r==="sync"){const m=wa();b=m.__watcherHandles||(m.__watcherHandles=[])}else return We;let A=h?new Array(e.length).fill(Yn):Yn;const P=()=>{if(!(!y.active||!y.dirty))if(t){const m=y.run();(o||f||(h?m.some((x,v)=>at(x,A[v])):at(m,A)))&&(S&&S(),Je(t,a,3,[m,A===Yn?void 0:h&&A[0]===Yn?[]:A,w]),A=m)}else y.run()};P.allowRecurse=!!t;let K;r==="sync"?K=P:r==="post"?K=()=>De(P,a&&a.suspense):(P.pre=!0,a&&(P.id=a.uid),K=()=>Fo(P));const y=new Eo(u,We,K),D=zr(),k=()=>{y.stop(),D&&wo(D.effects,y)};return t?n?P():A=y.run():r==="post"?De(y.run.bind(y),a&&a.suspense):y.run(),b&&b.push(k),k}function Sa(e,t,n){const o=this.proxy,r=ye(e)?e.includes(".")?_i(o,e):()=>o[e]:e.bind(o,o);let i;te(t)?i=t:(i=t.handler,n=t);const s=xn(this),l=Wo(r,i.bind(o),n);return s(),l}function _i(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 Ft(e,t,n=0,o){if(!ge(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Te(e))Ft(e.value,t,n,o);else if(ee(e))for(let r=0;r<e.length;r++)Ft(e[r],t,n,o);else if(Er(e)||Jt(e))e.forEach(r=>{Ft(r,t,n,o)});else if(Mr(e))for(const r in e)Ft(e[r],t,n,o);return e}function _t(e,t){if(Ee===null)return e;const n=co(Ee)||Ee.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=se]=t[r];i&&(te(i)&&(i={mounted:i,updated:i}),i.deep&&Ft(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ht(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(),Je(a,n,8,[e.el,l,e,t]),St())}}const Ct=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function ka(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Yo(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],bi={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},Ia={name:"BaseTransition",props:bi,setup(e,{slots:t}){const n=sr(),o=ka();let r;return()=>{const i=t.default&&xi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const b of i)if(b.type!==nt){s=b;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return qo(s);const c=wi(s);if(!c)return qo(s);const u=Ko(c,l,o,n);Uo(c,u);const f=n.subTree,h=f&&wi(f);let S=!1;const{getTransitionKey:w}=c.type;if(w){const b=w();r===void 0?r=b:b!==r&&(r=b,S=!0)}if(h&&h.type!==nt&&(!qt(c,h)||S)){const b=Ko(h,l,o,n);if(Uo(h,b),a==="out-in")return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},qo(s);a==="in-out"&&c.type!==nt&&(b.delayLeave=(A,P,K)=>{const y=yi(o,h);y[String(h.key)]=h,A[Ct]=()=>{P(),A[Ct]=void 0,delete u.delayedLeave},u.delayedLeave=K})}return s}}};function yi(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 Ko(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:S,onLeaveCancelled:w,onBeforeAppear:b,onAppear:A,onAfterAppear:P,onAppearCancelled:K}=t,y=String(e.key),D=yi(n,e),k=(v,T)=>{v&&Je(v,o,9,T)},m=(v,T)=>{const L=T[1];k(v,T),ee(v)?v.every(G=>G.length<=1)&&L():v.length<=1&&L()},x={mode:i,persisted:s,beforeEnter(v){let T=l;if(!n.isMounted)if(r)T=b||l;else return;v[Ct]&&v[Ct](!0);const L=D[y];L&&qt(e,L)&&L.el[Ct]&&L.el[Ct](),k(T,[v])},enter(v){let T=a,L=c,G=u;if(!n.isMounted)if(r)T=A||a,L=P||c,G=K||u;else return;let N=!1;const ie=v[Xn]=le=>{N||(N=!0,le?k(G,[v]):k(L,[v]),x.delayedLeave&&x.delayedLeave(),v[Xn]=void 0)};T?m(T,[v,ie]):ie()},leave(v,T){const L=String(e.key);if(v[Xn]&&v[Xn](!0),n.isUnmounting)return T();k(f,[v]);let G=!1;const N=v[Ct]=ie=>{G||(G=!0,T(),ie?k(w,[v]):k(S,[v]),v[Ct]=void 0,D[L]===e&&delete D[L])};D[L]=e,h?m(h,[v,N]):N()},clone(v){return Ko(v,t,n,o)}};return x}function qo(e){if(Zn(e))return e=$t(e),e.children=null,e}function wi(e){return Zn(e)?e.children?e.children[0]:void 0:e}function Uo(e,t){e.shapeFlag&6&&e.component?Uo(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 xi(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===xe?(s.patchFlag&128&&r++,o=o.concat(xi(s.children,t,l))):(t||s.type!==nt)&&o.push(l!=null?$t(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function Se(e,t){return te(e)?(()=>be({name:e.name},t,{setup:e}))():e}const mn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function Ca(e,t){Si(e,"a",t)}function Ta(e,t){Si(e,"da",t)}function Si(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Zn(r.parent.vnode)&&Ea(o,t,n,r),r=r.parent}}function Ea(e,t,n,o){const r=Gn(t,e,o,!0);Tt(()=>{wo(o[t],r)},n)}function Gn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;xt();const l=xn(n),a=Je(t,n,e,s);return l(),St(),a});return o?r.unshift(i):r.push(i),i}}const bt=e=>(t,n=Pe)=>(!ao||e==="sp")&&Gn(e,(...o)=>t(...o),n),$a=bt("bm"),tt=bt("m"),Pa=bt("bu"),Ma=bt("u"),Yo=bt("bum"),Tt=bt("um"),Oa=bt("sp"),La=bt("rtg"),Aa=bt("rtc");function za(e,t=Pe){Gn("ec",e,t)}function vn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||ye(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(ge(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 ki(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function we(e,t,n={},o,r){if(Ee.isCE||Ee.parent&&mn(Ee.parent)&&Ee.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&Ii(i(n)),l=me(xe,{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 Ii(e){return e.some(t=>oo(t)?!(t.type===nt||t.type===xe&&!Ii(t.children)):!0)?e:null}const Xo=e=>e?qi(e)?co(e)||e.proxy:Xo(e.parent):null,_n=be(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=>Xo(e.parent),$root:e=>Xo(e.root),$emit:e=>e.emit,$options:e=>Qo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Fo(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>Sa.bind(e)}),Zo=(e,t)=>e!==se&&!e.__isScriptSetup&&ue(e,t),ja={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 S=s[t];if(S!==void 0)switch(S){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Zo(o,t))return s[t]=1,o[t];if(r!==se&&ue(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ue(c,t))return s[t]=3,i[t];if(n!==se&&ue(n,t))return s[t]=4,n[t];Go&&(s[t]=0)}}const u=_n[t];let f,h;if(u)return t==="$attrs"&&Re(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==se&&ue(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ue(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Zo(r,t)?(r[t]=n,!0):o!==se&&ue(o,t)?(o[t]=n,!0):ue(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!==se&&ue(e,s)||Zo(t,s)||(l=i[0])&&ue(l,s)||ue(o,s)||ue(_n,s)||ue(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Et(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):be({},Qn(e),Qn(t))}let Go=!0;function Ra(e){const t=Qo(e),n=e.proxy,o=e.ctx;Go=!1,t.beforeCreate&&Ci(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:S,updated:w,activated:b,deactivated:A,beforeDestroy:P,beforeUnmount:K,destroyed:y,unmounted:D,render:k,renderTracked:m,renderTriggered:x,errorCaptured:v,serverPrefetch:T,expose:L,inheritAttrs:G,components:N,directives:ie,filters:le}=t;if(c&&Da(c,o,null),s)for(const $ in s){const F=s[$];te(F)&&(o[$]=F.bind(n))}if(r){const $=r.call(n,n);ge($)&&(e.data=un($))}if(Go=!0,i)for(const $ in i){const F=i[$],ae=te(F)?F.bind(n,n):te(F.get)?F.get.bind(n,n):We,fe=!te(F)&&te(F.set)?F.set.bind(n):We,ke=re({get:ae,set:fe});Object.defineProperty(o,$,{enumerable:!0,configurable:!0,get:()=>ke.value,set:_e=>ke.value=_e})}if(l)for(const $ in l)Ti(l[$],o,n,$);if(a){const $=te(a)?a.call(n):a;Reflect.ownKeys($).forEach(F=>{to(F,$[F])})}u&&Ci(u,e,"c");function H($,F){ee(F)?F.forEach(ae=>$(ae.bind(n))):F&&$(F.bind(n))}if(H($a,f),H(tt,h),H(Pa,S),H(Ma,w),H(Ca,b),H(Ta,A),H(za,v),H(Aa,m),H(La,x),H(Yo,K),H(Tt,D),H(Oa,T),ee(L))if(L.length){const $=e.exposed||(e.exposed={});L.forEach(F=>{Object.defineProperty($,F,{get:()=>n[F],set:ae=>n[F]=ae})})}else e.exposed||(e.exposed={});k&&e.render===We&&(e.render=k),G!=null&&(e.inheritAttrs=G),N&&(e.components=N),ie&&(e.directives=ie)}function Da(e,t,n=We){ee(e)&&(e=Jo(e));for(const o in e){const r=e[o];let i;ge(r)?"default"in r?i=Wt(r.from||o,r.default,!0):i=Wt(r.from||o):i=Wt(r),Te(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function Ci(e,t,n){Je(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ti(e,t,n,o){const r=o.includes(".")?_i(n,o):()=>n[o];if(ye(e)){const i=t[e];te(i)&&pe(r,i)}else if(te(e))pe(r,e.bind(n));else if(ge(e))if(ee(e))e.forEach(i=>Ti(i,t,n,o));else{const i=te(e.handler)?e.handler.bind(n):t[e.handler];te(i)&&pe(r,i,e)}}function Qo(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=>Jn(a,c,s,!0)),Jn(a,t,s)),ge(t)&&i.set(t,a),a}function Jn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Jn(e,i,n,!0),r&&r.forEach(s=>Jn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Ba[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ba={data:Ei,props:$i,emits:$i,methods:bn,computed:bn,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:bn,directives:bn,watch:Na,provide:Ei,inject:Va};function Ei(e,t){return t?e?function(){return be(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function Va(e,t){return bn(Jo(e),Jo(t))}function Jo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ae(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?be(Object.create(null),e,t):t}function $i(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:be(Object.create(null),Qn(e),Qn(t??{})):t}function Na(e,t){if(!e)return t;if(!t)return e;const n=be(Object.create(null),e);for(const o in t)n[o]=Ae(e[o],t[o]);return n}function Pi(){return{app:null,config:{isNativeTag:vl,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 Fa=0;function Ha(e,t){return function(o,r=null){te(o)||(o=be({},o)),r!=null&&!ge(r)&&(r=null);const i=Pi(),s=new WeakSet;let l=!1;const a=i.app={_uid:Fa++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:hc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&te(c.install)?(s.add(c),c.install(a,...u)):te(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,f){if(!l){const h=Q(o,r);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(h,c):e(h,c,f),l=!0,a._container=c,c.__vue_app__=a,co(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){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function Wt(e,t,n=!1){const o=Pe||Ee;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&te(t)?t.call(o&&o.proxy):t}}function Wa(e,t,n,o=!1){const r={},i={};Rn(i,ro,1),e.propsDefaults=Object.create(null),Mi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Xl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ka(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=ce(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(qn(e.emitsOptions,h))continue;const S=t[h];if(a)if(ue(i,h))S!==i[h]&&(i[h]=S,c=!0);else{const w=je(h);r[w]=er(a,l,w,S,e,!1)}else S!==i[h]&&(i[h]=S,c=!0)}}}else{Mi(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ue(t,f)&&((u=Ke(f))===f||!ue(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=er(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ue(t,f))&&(delete i[f],c=!0)}c&&gt(e,"set","$attrs")}function Mi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Ln(a))continue;const c=t[a];let u;r&&ue(r,u=je(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=ce(n),c=l||se;for(let u=0;u<i.length;u++){const f=i[u];n[f]=er(r,a,f,c[f],e,!ue(c,f))}}return s}function er(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ue(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&te(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=xn(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ke(n))&&(o=!0))}return o}function Oi(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(!te(e)){const u=f=>{a=!0;const[h,S]=Oi(f,t,!0);be(s,h),S&&l.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ge(e)&&o.set(e,Ge),Ge;if(ee(i))for(let u=0;u<i.length;u++){const f=je(i[u]);Li(f)&&(s[f]=se)}else if(i)for(const u in i){const f=je(u);if(Li(f)){const h=i[u],S=s[f]=ee(h)||te(h)?{type:h}:be({},h);if(S){const w=ji(Boolean,S.type),b=ji(String,S.type);S[0]=w>-1,S[1]=b<0||w<b,(w>-1||ue(S,"default"))&&l.push(f)}}}const c=[s,l];return ge(e)&&o.set(e,c),c}function Li(e){return e[0]!=="$"}function Ai(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function zi(e,t){return Ai(e)===Ai(t)}function ji(e,t){return ee(t)?t.findIndex(n=>zi(n,e)):te(t)&&zi(t,e)?0:-1}const Ri=e=>e[0]==="_"||e==="$stable",tr=e=>ee(e)?e.map(ut):[ut(e)],qa=(e,t,n)=>{if(t._n)return t;const o=ne((...r)=>tr(t(...r)),n);return o._c=!1,o},Di=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ri(r))continue;const i=e[r];if(te(i))t[r]=qa(r,i,o);else if(i!=null){const s=tr(i);t[r]=()=>s}}},Bi=(e,t)=>{const n=tr(t);e.slots.default=()=>n},Ua=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),Rn(t,"_",n)):Di(t,e.slots={})}else e.slots={},t&&Bi(e,t);Rn(e.slots,ro,1)},Ya=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=se;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(be(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Di(t,r)),s=t}else t&&(Bi(e,t),s={default:1});if(i)for(const l in r)!Ri(l)&&s[l]==null&&delete r[l]};function nr(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,S)=>nr(h,t&&(ee(t)?t[S]:t),n,o,r));return}if(mn(o)&&!r)return;const i=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===se?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(ye(c)?(u[c]=null,ue(f,c)&&(f[c]=null)):Te(c)&&(c.value=null)),te(a))mt(a,l,12,[s,u]);else{const h=ye(a),S=Te(a),w=e.f;if(h||S){const b=()=>{if(w){const A=h?ue(f,a)?f[a]:u[a]:a.value;r?ee(A)&&wo(A,i):ee(A)?A.includes(i)||A.push(i):h?(u[a]=[i],ue(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ue(f,a)&&(f[a]=s)):S&&(a.value=s,e.k&&(u[e.k]=s))};r||w?b():(b.id=-1,De(b,n))}}}function Xa(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Co().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const De=ba;function Za(e){return Ga(e)}function Ga(e,t){Xa();const n=Co();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:S=We,insertStaticContent:w}=e,b=(d,p,_,I=null,E=null,j=null,B=void 0,z=null,V=!!p.dynamicChildren)=>{if(d===p)return;d&&!qt(d,p)&&(I=Xe(d),_e(d,E,j,!0),d=null),p.patchFlag===-2&&(V=!1,p.dynamicChildren=null);const{type:M,ref:W,shapeFlag:J}=p;switch(M){case no:A(d,p,_,I);break;case nt:P(d,p,_,I);break;case rr:d==null&&K(p,_,I,B);break;case xe:N(d,p,_,I,E,j,B,z,V);break;default:J&1?k(d,p,_,I,E,j,B,z,V):J&6?ie(d,p,_,I,E,j,B,z,V):(J&64||J&128)&&M.process(d,p,_,I,E,j,B,z,V,ht)}W!=null&&E&&nr(W,d&&d.ref,j,p||d,!p)},A=(d,p,_,I)=>{if(d==null)o(p.el=l(p.children),_,I);else{const E=p.el=d.el;p.children!==d.children&&c(E,p.children)}},P=(d,p,_,I)=>{d==null?o(p.el=a(p.children||""),_,I):p.el=d.el},K=(d,p,_,I)=>{[d.el,d.anchor]=w(d.children,p,_,I,d.el,d.anchor)},y=({el:d,anchor:p},_,I)=>{let E;for(;d&&d!==p;)E=h(d),o(d,_,I),d=E;o(p,_,I)},D=({el:d,anchor:p})=>{let _;for(;d&&d!==p;)_=h(d),r(d),d=_;r(p)},k=(d,p,_,I,E,j,B,z,V)=>{p.type==="svg"?B="svg":p.type==="math"&&(B="mathml"),d==null?m(p,_,I,E,j,B,z,V):T(d,p,E,j,B,z,V)},m=(d,p,_,I,E,j,B,z)=>{let V,M;const{props:W,shapeFlag:J,transition:g,dirs:C}=d;if(V=d.el=s(d.type,j,W&&W.is,W),J&8?u(V,d.children):J&16&&v(d.children,V,null,I,E,or(d,j),B,z),C&&Ht(d,null,I,"created"),x(V,d,d.scopeId,B,I),W){for(const oe in W)oe!=="value"&&!Ln(oe)&&i(V,oe,null,W[oe],j,d.children,I,E,Ye);"value"in W&&i(V,"value",null,W.value,j),(M=W.onVnodeBeforeMount)&&dt(M,I,d)}C&&Ht(d,null,I,"beforeMount");const U=Qa(E,g);U&&g.beforeEnter(V),o(V,p,_),((M=W&&W.onVnodeMounted)||U||C)&&De(()=>{M&&dt(M,I,d),U&&g.enter(V),C&&Ht(d,null,I,"mounted")},E)},x=(d,p,_,I,E)=>{if(_&&S(d,_),I)for(let j=0;j<I.length;j++)S(d,I[j]);if(E){let j=E.subTree;if(p===j){const B=E.vnode;x(d,B,B.scopeId,B.slotScopeIds,E.parent)}}},v=(d,p,_,I,E,j,B,z,V=0)=>{for(let M=V;M<d.length;M++){const W=d[M]=z?Mt(d[M]):ut(d[M]);b(null,W,p,_,I,E,j,B,z)}},T=(d,p,_,I,E,j,B)=>{const z=p.el=d.el;let{patchFlag:V,dynamicChildren:M,dirs:W}=p;V|=d.patchFlag&16;const J=d.props||se,g=p.props||se;let C;if(_&&Kt(_,!1),(C=g.onVnodeBeforeUpdate)&&dt(C,_,p,d),W&&Ht(p,d,_,"beforeUpdate"),_&&Kt(_,!0),M?L(d.dynamicChildren,M,z,_,I,or(p,E),j):B||F(d,p,z,null,_,I,or(p,E),j,!1),V>0){if(V&16)G(z,p,J,g,_,I,E);else if(V&2&&J.class!==g.class&&i(z,"class",null,g.class,E),V&4&&i(z,"style",J.style,g.style,E),V&8){const U=p.dynamicProps;for(let oe=0;oe<U.length;oe++){const de=U[oe],Ie=J[de],Ze=g[de];(Ze!==Ie||de==="value")&&i(z,de,Ie,Ze,E,d.children,_,I,Ye)}}V&1&&d.children!==p.children&&u(z,p.children)}else!B&&M==null&&G(z,p,J,g,_,I,E);((C=g.onVnodeUpdated)||W)&&De(()=>{C&&dt(C,_,p,d),W&&Ht(p,d,_,"updated")},I)},L=(d,p,_,I,E,j,B)=>{for(let z=0;z<p.length;z++){const V=d[z],M=p[z],W=V.el&&(V.type===xe||!qt(V,M)||V.shapeFlag&70)?f(V.el):_;b(V,M,W,null,I,E,j,B,!0)}},G=(d,p,_,I,E,j,B)=>{if(_!==I){if(_!==se)for(const z in _)!Ln(z)&&!(z in I)&&i(d,z,_[z],null,B,p.children,E,j,Ye);for(const z in I){if(Ln(z))continue;const V=I[z],M=_[z];V!==M&&z!=="value"&&i(d,z,M,V,B,p.children,E,j,Ye)}"value"in I&&i(d,"value",_.value,I.value,B)}},N=(d,p,_,I,E,j,B,z,V)=>{const M=p.el=d?d.el:l(""),W=p.anchor=d?d.anchor:l("");let{patchFlag:J,dynamicChildren:g,slotScopeIds:C}=p;C&&(z=z?z.concat(C):C),d==null?(o(M,_,I),o(W,_,I),v(p.children||[],_,W,E,j,B,z,V)):J>0&&J&64&&g&&d.dynamicChildren?(L(d.dynamicChildren,g,_,E,j,B,z),(p.key!=null||E&&p===E.subTree)&&Vi(d,p,!0)):F(d,p,_,W,E,j,B,z,V)},ie=(d,p,_,I,E,j,B,z,V)=>{p.slotScopeIds=z,d==null?p.shapeFlag&512?E.ctx.activate(p,_,I,B,V):le(p,_,I,E,j,B,V):O(d,p,V)},le=(d,p,_,I,E,j,B)=>{const z=d.component=sc(d,I,E);if(Zn(d)&&(z.ctx.renderer=ht),lc(z),z.asyncDep){if(E&&E.registerDep(z,H),!d.el){const V=z.subTree=Q(nt);P(null,V,p,_)}}else H(z,d,p,_,E,j,B)},O=(d,p,_)=>{const I=p.component=d.component;if(ha(d,p,_))if(I.asyncDep&&!I.asyncResolved){$(I,p,_);return}else I.next=p,aa(I.update),I.effect.dirty=!0,I.update();else p.el=d.el,I.vnode=p},H=(d,p,_,I,E,j,B)=>{const z=()=>{if(d.isMounted){let{next:W,bu:J,u:g,parent:C,vnode:U}=d;{const Dt=Ni(d);if(Dt){W&&(W.el=U.el,$(d,W,B)),Dt.asyncDep.then(()=>{d.isUnmounted||z()});return}}let oe=W,de;Kt(d,!1),W?(W.el=U.el,$(d,W,B)):W=U,J&&jn(J),(de=W.props&&W.props.onVnodeBeforeUpdate)&&dt(de,C,W,U),Kt(d,!0);const Ie=Ho(d),Ze=d.subTree;d.subTree=Ie,b(Ze,Ie,f(Ze.el),Xe(Ze),d,E,j),W.el=Ie.el,oe===null&&ga(d,Ie.el),g&&De(g,E),(de=W.props&&W.props.onVnodeUpdated)&&De(()=>dt(de,C,W,U),E)}else{let W;const{el:J,props:g}=p,{bm:C,m:U,parent:oe}=d,de=mn(p);if(Kt(d,!1),C&&jn(C),!de&&(W=g&&g.onVnodeBeforeMount)&&dt(W,oe,p),Kt(d,!0),J&&yt){const Ie=()=>{d.subTree=Ho(d),yt(J,d.subTree,d,E,null)};de?p.type.__asyncLoader().then(()=>!d.isUnmounted&&Ie()):Ie()}else{const Ie=d.subTree=Ho(d);b(null,Ie,_,I,d,E,j),p.el=Ie.el}if(U&&De(U,E),!de&&(W=g&&g.onVnodeMounted)){const Ie=p;De(()=>dt(W,oe,Ie),E)}(p.shapeFlag&256||oe&&mn(oe.vnode)&&oe.vnode.shapeFlag&256)&&d.a&&De(d.a,E),d.isMounted=!0,p=_=I=null}},V=d.effect=new Eo(z,We,()=>Fo(M),d.scope),M=d.update=()=>{V.dirty&&V.run()};M.id=d.uid,Kt(d,!0),M()},$=(d,p,_)=>{p.component=d;const I=d.vnode.props;d.vnode=p,d.next=null,Ka(d,p.props,I,_),Ya(d,p.children,_),xt(),ci(d),St()},F=(d,p,_,I,E,j,B,z,V=!1)=>{const M=d&&d.children,W=d?d.shapeFlag:0,J=p.children,{patchFlag:g,shapeFlag:C}=p;if(g>0){if(g&128){fe(M,J,_,I,E,j,B,z,V);return}else if(g&256){ae(M,J,_,I,E,j,B,z,V);return}}C&8?(W&16&&Ye(M,E,j),J!==M&&u(_,J)):W&16?C&16?fe(M,J,_,I,E,j,B,z,V):Ye(M,E,j,!0):(W&8&&u(_,""),C&16&&v(J,_,I,E,j,B,z,V))},ae=(d,p,_,I,E,j,B,z,V)=>{d=d||Ge,p=p||Ge;const M=d.length,W=p.length,J=Math.min(M,W);let g;for(g=0;g<J;g++){const C=p[g]=V?Mt(p[g]):ut(p[g]);b(d[g],C,_,null,E,j,B,z,V)}M>W?Ye(d,E,j,!0,!1,J):v(p,_,I,E,j,B,z,V,J)},fe=(d,p,_,I,E,j,B,z,V)=>{let M=0;const W=p.length;let J=d.length-1,g=W-1;for(;M<=J&&M<=g;){const C=d[M],U=p[M]=V?Mt(p[M]):ut(p[M]);if(qt(C,U))b(C,U,_,null,E,j,B,z,V);else break;M++}for(;M<=J&&M<=g;){const C=d[J],U=p[g]=V?Mt(p[g]):ut(p[g]);if(qt(C,U))b(C,U,_,null,E,j,B,z,V);else break;J--,g--}if(M>J){if(M<=g){const C=g+1,U=C<W?p[C].el:I;for(;M<=g;)b(null,p[M]=V?Mt(p[M]):ut(p[M]),_,U,E,j,B,z,V),M++}}else if(M>g)for(;M<=J;)_e(d[M],E,j,!0),M++;else{const C=M,U=M,oe=new Map;for(M=U;M<=g;M++){const ze=p[M]=V?Mt(p[M]):ut(p[M]);ze.key!=null&&oe.set(ze.key,M)}let de,Ie=0;const Ze=g-U+1;let Dt=!1,vo=0;const Ne=new Array(Ze);for(M=0;M<Ze;M++)Ne[M]=0;for(M=C;M<=J;M++){const ze=d[M];if(Ie>=Ze){_e(ze,E,j,!0);continue}let st;if(ze.key!=null)st=oe.get(ze.key);else for(de=U;de<=g;de++)if(Ne[de-U]===0&&qt(ze,p[de])){st=de;break}st===void 0?_e(ze,E,j,!0):(Ne[st-U]=M+1,st>=vo?vo=st:Dt=!0,b(ze,p[st],_,null,E,j,B,z,V),Ie++)}const _o=Dt?Ja(Ne):Ge;for(de=_o.length-1,M=Ze-1;M>=0;M--){const ze=U+M,st=p[ze],bo=ze+1<W?p[ze+1].el:I;Ne[M]===0?b(null,st,_,bo,E,j,B,z,V):Dt&&(de<0||M!==_o[de]?ke(st,_,bo,2):de--)}}},ke=(d,p,_,I,E=null)=>{const{el:j,type:B,transition:z,children:V,shapeFlag:M}=d;if(M&6){ke(d.component.subTree,p,_,I);return}if(M&128){d.suspense.move(p,_,I);return}if(M&64){B.move(d,p,_,ht);return}if(B===xe){o(j,p,_);for(let J=0;J<V.length;J++)ke(V[J],p,_,I);o(d.anchor,p,_);return}if(B===rr){y(d,p,_);return}if(I!==2&&M&1&&z)if(I===0)z.beforeEnter(j),o(j,p,_),De(()=>z.enter(j),E);else{const{leave:J,delayLeave:g,afterLeave:C}=z,U=()=>o(j,p,_),oe=()=>{J(j,()=>{U(),C&&C()})};g?g(j,U,oe):oe()}else o(j,p,_)},_e=(d,p,_,I=!1,E=!1)=>{const{type:j,props:B,ref:z,children:V,dynamicChildren:M,shapeFlag:W,patchFlag:J,dirs:g}=d;if(z!=null&&nr(z,null,_,d,!0),W&256){p.ctx.deactivate(d);return}const C=W&1&&g,U=!mn(d);let oe;if(U&&(oe=B&&B.onVnodeBeforeUnmount)&&dt(oe,p,d),W&6)pt(d.component,_,I);else{if(W&128){d.suspense.unmount(_,I);return}C&&Ht(d,null,p,"beforeUnmount"),W&64?d.type.remove(d,p,_,E,ht,I):M&&(j!==xe||J>0&&J&64)?Ye(M,p,_,!1,!0):(j===xe&&J&384||!E&&W&16)&&Ye(V,p,_),I&&Me(d)}(U&&(oe=B&&B.onVnodeUnmounted)||C)&&De(()=>{oe&&dt(oe,p,d),C&&Ht(d,null,p,"unmounted")},_)},Me=d=>{const{type:p,el:_,anchor:I,transition:E}=d;if(p===xe){rt(_,I);return}if(p===rr){D(d);return}const j=()=>{r(_),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(d.shapeFlag&1&&E&&!E.persisted){const{leave:B,delayLeave:z}=E,V=()=>B(_,j);z?z(d.el,j,V):V()}else j()},rt=(d,p)=>{let _;for(;d!==p;)_=h(d),r(d),d=_;r(p)},pt=(d,p,_)=>{const{bum:I,scope:E,update:j,subTree:B,um:z}=d;I&&jn(I),E.stop(),j&&(j.active=!1,_e(B,d,p,_)),z&&De(z,p),De(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ye=(d,p,_,I=!1,E=!1,j=0)=>{for(let B=j;B<d.length;B++)_e(d[B],p,_,I,E)},Xe=d=>d.shapeFlag&6?Xe(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let it=!1;const Ve=(d,p,_)=>{d==null?p._vnode&&_e(p._vnode,null,null,!0):b(p._vnode||null,d,p,null,null,null,_),it||(it=!0,ci(),ui(),it=!1),p._vnode=d},ht={p:b,um:_e,m:ke,r:Me,mt:le,mc:v,pc:F,pbc:L,n:Xe,o:e};let Rt,yt;return t&&([Rt,yt]=t(ht)),{render:Ve,hydrate:Rt,createApp:Ha(Ve,Rt)}}function or({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Kt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vi(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(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]=Mt(r[i]),l.el=s.el),n||Vi(s,l)),l.type===no&&(l.el=s.el)}}function Ja(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}function Ni(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ni(t)}const ec=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),yn=[];let lt=null;function R(e=!1){yn.push(lt=e?null:[])}function tc(){yn.pop(),lt=yn[yn.length-1]||null}let wn=1;function Fi(e){wn+=e}function Hi(e){return e.dynamicChildren=wn>0?lt||Ge:null,tc(),wn>0&&lt&&lt.push(e),e}function q(e,t,n,o,r,i){return Hi(Y(e,t,n,o,r,i,!0))}function me(e,t,n,o,r){return Hi(Q(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function qt(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Wi=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Te(e)||te(e)?{i:Ee,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,o=0,r=null,i=e===xe?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wi(t),ref:t&&io(t),scopeId:pi,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:Ee};return l?(ir(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),wn>0&&!s&&lt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&lt.push(a),a}const Q=nc;function nc(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===mi)&&(e=nt),oo(e)){const l=$t(e,t,!0);return n&&ir(l,n),wn>0&&!i&&lt&&(l.shapeFlag&6?lt[lt.indexOf(e)]=l:lt.push(l)),l.patchFlag|=-2,l}if(pc(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:a}=t;l&&!ye(l)&&(t.class=Ce(l)),ge(a)&&(ni(a)&&!ee(a)&&(a=be({},a)),t.style=Le(a))}const s=ye(e)?1:_a(e)?128:ec(e)?64:ge(e)?4:te(e)?2:0;return Y(e,t,n,o,r,s,i,!0)}function oc(e){return e?ni(e)||ro in e?be({},e):e:null}function $t(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?so(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Wi(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(io(t)):[r,io(t)]:io(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!==xe?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&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Pt(e=" ",t=0){return Q(no,null,e,t)}function $e(e="",t=!1){return t?(R(),me(nt,null,e)):Q(nt,null,e)}function ut(e){return e==null||typeof e=="boolean"?Q(nt):ee(e)?Q(xe,null,e.slice()):typeof e=="object"?Mt(e):Q(no,null,String(e))}function Mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function ir(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),ir(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Ee:r===3&&Ee&&(Ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Ee},n=32):(t=String(t),o&64?(n=16,t=[Pt(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...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=Ce([t.class,o.class]));else if(r==="style")t.style=Le([t.style,o.style]);else if(Mn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(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){Je(e,t,7,[n,o])}const rc=Pi();let ic=0;function sc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||rc,i={uid:ic++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Tl(!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:Oi(o,r),emitsOptions:fi(o,r),emit:null,emitted:null,propsDefaults:se,inheritAttrs:o.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,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=da.bind(null,i),e.ce&&e.ce(i),i}let Pe=null;const sr=()=>Pe||Ee;let lo,lr;{const e=Co(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),lr=t("__VUE_SSR_SETTERS__",n=>ao=n)}const xn=e=>{const t=Pe;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Ki=()=>{Pe&&Pe.scope.off(),lo(null)};function qi(e){return e.vnode.shapeFlag&4}let ao=!1;function lc(e,t=!1){t&&lr(t);const{props:n,children:o}=e.vnode,r=qi(e);Wa(e,n,r,t),Ua(e,o);const i=r?ac(e,t):void 0;return t&&lr(!1),i}function ac(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=oi(new Proxy(e.ctx,ja));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?uc(e):null,i=xn(e);xt();const s=mt(o,e,0,[e.props,r]);if(St(),i(),$r(s)){if(s.then(Ki,Ki),t)return s.then(l=>{Ui(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=s}else Ui(e,s,t)}else Xi(e,t)}function Ui(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=ii(t)),Xi(e,n)}let Yi;function Xi(e,t,n){const o=e.type;if(!e.render){if(!t&&Yi&&!o.render){const r=o.template||Qo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=be(be({isCustomElement:i,delimiters:l},s),a);o.render=Yi(r,c)}}e.render=o.render||We}{const r=xn(e);xt();try{Ra(e)}finally{St(),r()}}}function cc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function uc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return cc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ii(oi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in _n)return _n[n](e)},has(t,n){return n in t||n in _n}}))}const dc=/(?:^|[-_])(\w)/g,fc=e=>e.replace(dc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Zi(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Gi(e,t,n=!1){let o=Zi(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?fc(o):n?"App":"Anonymous"}function pc(e){return te(e)&&"__vccOpts"in e}const re=(e,t)=>Zl(e,t,ao);function rn(e,t,n=se){const o=sr(),r=je(t),i=Ke(t),s=ta((a,c)=>{let u;return xa(()=>{const f=e[t];at(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const h=o.vnode.props;!(h&&(t in h||r in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${i}`in h))&&at(f,u)&&(u=f,c()),o.emit(`update:${t}`,n.set?n.set(f):f)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Qi(e,t,n){const o=arguments.length;return o===2?ge(t)&&!ee(t)?oo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),Q(e,t,n))}const hc="3.4.15";/**
15
+ `,...ea(r)),console.warn(...i)}wt()}function Jl(){let e=dn[dn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function ea(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
+ `],...ta(n))}),t}function ta({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,r=` at <${Yi(e.component,e.type,o)}`,i=">"+n;return e.props?[r,...na(e.props),i]:[r+i]}function na(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...oi(o,e[o]))}),n.length>3&&t.push(" ..."),t}function oi(e,t,n){return we(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ce(t)?(t=oi(e,ae(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):re(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ae(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Kn(i,t,n)}return r}function Ze(e,t,n,o){if(re(e)){const i=ht(e,t,n,o);return i&&Cr(i)&&i.catch(s=>{Kn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Ze(e[i],t,n,o));return r}function Kn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${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){ht(a,null,10,[e,s,l]);return}}oa(e,n,r,o)}function oa(e,t,n,o=!0){console.error(e)}let fn=!1,jo=!1;const Me=[];let lt=0;const Jt=[];let St=null,Rt=0;const ri=Promise.resolve();let Ro=null;function gt(e){const t=Ro||ri;return e?t.then(this?e.bind(this):e):t}function ra(e){let t=lt+1,n=Me.length;for(;t<n;){const o=t+n>>>1,r=Me[o],i=pn(r);i<e||i===e&&r.pre?t=o+1:n=o}return t}function Do(e){(!Me.length||!Me.includes(e,fn&&e.allowRecurse?lt+1:lt))&&(e.id==null?Me.push(e):Me.splice(ra(e.id),0,e),ii())}function ii(){!fn&&!jo&&(jo=!0,Ro=ri.then(ai))}function ia(e){const t=Me.indexOf(e);t>lt&&Me.splice(t,1)}function sa(e){ee(e)?Jt.push(...e):(!St||!St.includes(e,e.allowRecurse?Rt+1:Rt))&&Jt.push(e),ii()}function si(e,t,n=fn?lt+1:0){for(;n<Me.length;n++){const o=Me[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Me.splice(n,1),n--,o()}}}function li(e){if(Jt.length){const t=[...new Set(Jt)].sort((n,o)=>pn(n)-pn(o));if(Jt.length=0,St){St.push(...t);return}for(St=t,Rt=0;Rt<St.length;Rt++)St[Rt]();St=null,Rt=0}}const pn=e=>e.id==null?1/0:e.id,la=(e,t)=>{const n=pn(e)-pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ai(e){jo=!1,fn=!0,Me.sort(la);const t=Ve;try{for(lt=0;lt<Me.length;lt++){const n=Me[lt];n&&n.active!==!1&&ht(n,null,14)}}finally{lt=0,Me.length=0,li(),fn=!1,Ro=null,(Me.length||Jt.length)&&ai()}}function aa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||le;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:f,trim:h}=o[u]||le;h&&(r=n.map(x=>we(x)?x.trim():x)),f&&(r=n.map(_o))}let l,a=o[l=yo(t)]||o[l=yo(je(t))];!a&&i&&(a=o[l=yo(Fe(t))]),a&&Ze(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,Ze(c,e,6,r)}}function ci(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(!re(e)){const a=c=>{const u=ci(c,t,!0);u&&(l=!0,_e(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(ge(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):_e(s,i),ge(e)&&o.set(e,s),s)}function qn(e,t){return!e||!Mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,Fe(t))||ue(e,t))}let Te=null,ui=null;function Un(e){const t=Te;return Te=e,ui=e&&e.type.__scopeId||null,t}function ie(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Bi(-1);const i=Un(t);let s;try{s=e(...r)}finally{Un(i),o._d&&Bi(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function jp(){}function Bo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:h,setupState:x,ctx:y,inheritAttrs:_}=e;let $,z;const q=Un(e);try{if(n.shapeFlag&4){const N=r||o,S=N;$=at(u.call(S,N,f,i,x,h,y)),z=a}else{const N=t;$=at(N.length>1?N(i,{attrs:a,slots:l,emit:c}):N(i,null)),z=t.props?a:ca(a)}}catch(N){bn.length=0,Kn(N,e,1),$=G(Je)}let k=$;if(z&&_!==!1){const N=Object.keys(z),{shapeFlag:S}=k;N.length&&S&7&&(s&&N.some(mo)&&(z=ua(z,s)),k=It(k,z))}return n.dirs&&(k=It(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),$=k,Un(q),$}const ca=e=>{let t;for(const n in e)(n==="class"||n==="style"||Mn(n))&&((t||(t={}))[n]=e[n]);return t},ua=(e,t)=>{const n={};for(const o in e)(!mo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function da(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?di(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(s[h]!==o[h]&&!qn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?di(o,s,c):!0:!!s;return!1}function di(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]&&!qn(n,i))return!0}return!1}function fa({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const fi="components",pi=Symbol.for("v-ndc");function pa(e){return we(e)?ha(fi,e,!1)||e:e||pi}function ha(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const i=r.type;if(e===fi){const l=Ui(i,!1);if(l&&(l===t||l===je(t)||l===zn(je(t))))return i}const s=hi(r[e]||i[e],t)||hi(r.appContext[e],t);return!s&&o?i:s}}function hi(e,t){return e&&(e[t]||e[je(t)]||e[zn(je(t))])}const ga=e=>e.__isSuspense;function ma(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):sa(e)}const va=Symbol.for("v-scx"),ba=()=>Vt(va);function ya(e,t){return No(e,null,{flush:"sync"})}const Yn={};function pe(e,t,n){return No(e,t,n)}function No(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:l}=le){if(t&&i){const m=t;t=(...w)=>{m(...w),S()}}const a=Pe,c=m=>o===!0?m:Dt(m,o===!1?1:void 0);let u,f=!1,h=!1;if(Ce(e)?(u=()=>e.value,f=Wn(e)):Gt(e)?(u=()=>c(e),f=!0):ee(e)?(h=!0,f=e.some(m=>Gt(m)||Wn(m)),u=()=>e.map(m=>{if(Ce(m))return m.value;if(Gt(m))return c(m);if(re(m))return ht(m,a,2)})):re(e)?t?u=()=>ht(e,a,2):u=()=>(x&&x(),Ze(e,a,3,[y])):u=Ve,t&&o){const m=u;u=()=>Dt(m())}let x,y=m=>{x=k.onStop=()=>{ht(m,a,4),x=k.onStop=void 0}},_;if(ao)if(y=Ve,t?n&&Ze(t,a,3,[u(),h?[]:void 0,y]):u(),r==="sync"){const m=ba();_=m.__watcherHandles||(m.__watcherHandles=[])}else return Ve;let $=h?new Array(e.length).fill(Yn):Yn;const z=()=>{if(!(!k.active||!k.dirty))if(t){const m=k.run();(o||f||(h?m.some((w,v)=>st(w,$[v])):st(m,$)))&&(x&&x(),Ze(t,a,3,[m,$===Yn?void 0:h&&$[0]===Yn?[]:$,y]),$=m)}else k.run()};z.allowRecurse=!!t;let q;r==="sync"?q=z:r==="post"?q=()=>De(z,a&&a.suspense):(z.pre=!0,a&&(z.id=a.uid),q=()=>Do(z));const k=new ko(u,Ve,q),N=Or(),S=()=>{k.stop(),N&&vo(N.effects,k)};return t?n?z():$=k.run():r==="post"?De(k.run.bind(k),a&&a.suspense):k.run(),_&&_.push(S),S}function _a(e,t,n){const o=this.proxy,r=we(e)?e.includes(".")?gi(o,e):()=>o[e]:e.bind(o,o);let i;re(t)?i=t:(i=t.handler,n=t);const s=_n(this),l=No(r,i.bind(o),n);return s(),l}function gi(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 Dt(e,t,n=0,o){if(!ge(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Ce(e))Dt(e.value,t,n,o);else if(ee(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n,o);else if(Ir(e)||Xt(e))e.forEach(r=>{Dt(r,t,n,o)});else if(Er(e))for(const r in e)Dt(e[r],t,n,o);return e}function mt(e,t){if(Te===null)return e;const n=co(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,s,l,a=le]=t[r];i&&(re(i)&&(i={mounted:i,updated:i}),i.deep&&Dt(s),o.push({dir:i,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(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&&(_t(),Ze(a,n,8,[e.el,l,e,t]),wt())}}const kt=Symbol("_leaveCb"),Xn=Symbol("_enterCb");function wa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],mi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},xa={name:"BaseTransition",props:mi,setup(e,{slots:t}){const n=nr(),o=wa();let r;return()=>{const i=t.default&&yi(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const _ of i)if(_.type!==Je){s=_;break}}const l=ae(e),{mode:a}=l;if(o.isLeaving)return Fo(s);const c=bi(s);if(!c)return Fo(s);const u=Vo(c,l,o,n);Ho(c,u);const f=n.subTree,h=f&&bi(f);let x=!1;const{getTransitionKey:y}=c.type;if(y){const _=y();r===void 0?r=_:_!==r&&(r=_,x=!0)}if(h&&h.type!==Je&&(!Ht(c,h)||x)){const _=Vo(h,l,o,n);if(Ho(h,_),a==="out-in")return o.isLeaving=!0,_.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Fo(s);a==="in-out"&&c.type!==Je&&(_.delayLeave=($,z,q)=>{const k=vi(o,h);k[String(h.key)]=h,$[kt]=()=>{z(),$[kt]=void 0,delete u.delayedLeave},u.delayedLeave=q})}return s}}};function vi(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 Vo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:x,onLeaveCancelled:y,onBeforeAppear:_,onAppear:$,onAfterAppear:z,onAppearCancelled:q}=t,k=String(e.key),N=vi(n,e),S=(v,C)=>{v&&Ze(v,o,9,C)},m=(v,C)=>{const L=C[1];S(v,C),ee(v)?v.every(te=>te.length<=1)&&L():v.length<=1&&L()},w={mode:i,persisted:s,beforeEnter(v){let C=l;if(!n.isMounted)if(r)C=_||l;else return;v[kt]&&v[kt](!0);const L=N[k];L&&Ht(e,L)&&L.el[kt]&&L.el[kt](),S(C,[v])},enter(v){let C=a,L=c,te=u;if(!n.isMounted)if(r)C=$||a,L=z||c,te=q||u;else return;let V=!1;const oe=v[Xn]=P=>{V||(V=!0,P?S(te,[v]):S(L,[v]),w.delayedLeave&&w.delayedLeave(),v[Xn]=void 0)};C?m(C,[v,oe]):oe()},leave(v,C){const L=String(e.key);if(v[Xn]&&v[Xn](!0),n.isUnmounting)return C();S(f,[v]);let te=!1;const V=v[kt]=oe=>{te||(te=!0,C(),oe?S(y,[v]):S(x,[v]),v[kt]=void 0,N[L]===e&&delete N[L])};N[L]=e,h?m(h,[v,V]):V()},clone(v){return Vo(v,t,n,o)}};return w}function Fo(e){if(Zn(e))return e=It(e),e.children=null,e}function bi(e){return Zn(e)?e.children?e.children[0]:void 0:e}function Ho(e,t){e.shapeFlag&6&&e.component?Ho(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 yi(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(yi(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?It(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ke(e,t){return re(e)?(()=>_e({name:e.name},t,{setup:e}))():e}const hn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive;function Sa(e,t){_i(e,"a",t)}function ka(e,t){_i(e,"da",t)}function _i(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Zn(r.parent.vnode)&&Ia(o,t,n,r),r=r.parent}}function Ia(e,t,n,o){const r=Gn(t,e,o,!0);Nt(()=>{vo(o[t],r)},n)}function Gn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=_n(n),a=Ze(t,n,e,s);return l(),wt(),a});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Pe)=>(!ao||e==="sp")&&Gn(e,(...o)=>t(...o),n),Ca=vt("bm"),Qe=vt("m"),Ta=vt("bu"),Ea=vt("u"),Wo=vt("bum"),Nt=vt("um"),$a=vt("sp"),Pa=vt("rtg"),Ma=vt("rtc");function Oa(e,t=Pe){Gn("ec",e,t)}function gn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||we(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(ge(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 wi(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function xe(e,t,n={},o,r){if(Te.isCE||Te.parent&&hn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),G("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),R();const s=i&&xi(i(n)),l=me(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 xi(e){return e.some(t=>oo(t)?!(t.type===Je||t.type===Se&&!xi(t.children)):!0)?e:null}const Ko=e=>e?Hi(e)?co(e)||e.proxy:Ko(e.parent):null,mn=_e(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=>Ko(e.parent),$root:e=>Ko(e.root),$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Do(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>_a.bind(e)}),qo=(e,t)=>e!==le&&!e.__isScriptSetup&&ue(e,t),La={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 x=s[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(qo(o,t))return s[t]=1,o[t];if(r!==le&&ue(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ue(c,t))return s[t]=3,i[t];if(n!==le&&ue(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=mn[t];let f,h;if(u)return t==="$attrs"&&Re(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==le&&ue(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ue(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return qo(r,t)?(r[t]=n,!0):o!==le&&ue(o,t)?(o[t]=n,!0):ue(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!==le&&ue(e,s)||qo(t,s)||(l=i[0])&&ue(l,s)||ue(o,s)||ue(mn,s)||ue(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function en(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):_e({},Qn(e),Qn(t))}let Uo=!0;function Aa(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:x,updated:y,activated:_,deactivated:$,beforeDestroy:z,beforeUnmount:q,destroyed:k,unmounted:N,render:S,renderTracked:m,renderTriggered:w,errorCaptured:v,serverPrefetch:C,expose:L,inheritAttrs:te,components:V,directives:oe,filters:P}=t;if(c&&za(c,o,null),s)for(const O in s){const F=s[O];re(F)&&(o[O]=F.bind(n))}if(r){const O=r.call(n,n);ge(O)&&(e.data=an(O))}if(Uo=!0,i)for(const O in i){const F=i[O],ce=re(F)?F.bind(n,n):re(F.get)?F.get.bind(n,n):Ve,fe=!re(F)&&re(F.set)?F.set.bind(n):Ve,be=se({get:ce,set:fe});Object.defineProperty(o,O,{enumerable:!0,configurable:!0,get:()=>be.value,set:ye=>be.value=ye})}if(l)for(const O in l)ki(l[O],o,n,O);if(a){const O=re(a)?a.call(n):a;Reflect.ownKeys(O).forEach(F=>{to(F,O[F])})}u&&Si(u,e,"c");function K(O,F){ee(F)?F.forEach(ce=>O(ce.bind(n))):F&&O(F.bind(n))}if(K(Ca,f),K(Qe,h),K(Ta,x),K(Ea,y),K(Sa,_),K(ka,$),K(Oa,v),K(Ma,m),K(Pa,w),K(Wo,q),K(Nt,N),K($a,C),ee(L))if(L.length){const O=e.exposed||(e.exposed={});L.forEach(F=>{Object.defineProperty(O,F,{get:()=>n[F],set:ce=>n[F]=ce})})}else e.exposed||(e.exposed={});S&&e.render===Ve&&(e.render=S),te!=null&&(e.inheritAttrs=te),V&&(e.components=V),oe&&(e.directives=oe)}function za(e,t,n=Ve){ee(e)&&(e=Xo(e));for(const o in e){const r=e[o];let i;ge(r)?"default"in r?i=Vt(r.from||o,r.default,!0):i=Vt(r.from||o):i=Vt(r),Ce(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function Si(e,t,n){Ze(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ki(e,t,n,o){const r=o.includes(".")?gi(n,o):()=>n[o];if(we(e)){const i=t[e];re(i)&&pe(r,i)}else if(re(e))pe(r,e.bind(n));else if(ge(e))if(ee(e))e.forEach(i=>ki(i,t,n,o));else{const i=re(e.handler)?e.handler.bind(n):t[e.handler];re(i)&&pe(r,i,e)}}function Yo(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=>Jn(a,c,s,!0)),Jn(a,t,s)),ge(t)&&i.set(t,a),a}function Jn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Jn(e,i,n,!0),r&&r.forEach(s=>Jn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=ja[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ja={data:Ii,props:Ci,emits:Ci,methods:vn,computed:vn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:vn,directives:vn,watch:Da,provide:Ii,inject:Ra};function Ii(e,t){return t?e?function(){return _e(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Ra(e,t){return vn(Xo(e),Xo(t))}function Xo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Le(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?_e(Object.create(null),e,t):t}function Ci(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:_e(Object.create(null),Qn(e),Qn(t??{})):t}function Da(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const o in t)n[o]=Le(e[o],t[o]);return n}function Ti(){return{app:null,config:{isNativeTag:hl,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 Na(e,t){return function(o,r=null){re(o)||(o=_e({},o)),r!=null&&!ge(r)&&(r=null);const i=Ti(),s=new WeakSet;let l=!1;const a=i.app={_uid:Ba++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:dc,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&re(c.install)?(s.add(c),c.install(a,...u)):re(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,f){if(!l){const h=G(o,r);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(h,c):e(h,c,f),l=!0,a._container=c,c.__vue_app__=a,co(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){eo=a;try{return c()}finally{eo=null}}};return a}}let eo=null;function to(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function Vt(e,t,n=!1){const o=Pe||Te;if(o||eo){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:eo._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&re(t)?t.call(o&&o.proxy):t}}function Va(e,t,n,o=!1){const r={},i={};Rn(i,ro,1),e.propsDefaults=Object.create(null),Ei(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:ql(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Fa(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=ae(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(qn(e.emitsOptions,h))continue;const x=t[h];if(a)if(ue(i,h))x!==i[h]&&(i[h]=x,c=!0);else{const y=je(h);r[y]=Zo(a,l,y,x,e,!1)}else x!==i[h]&&(i[h]=x,c=!0)}}}else{Ei(e,t,r,i)&&(c=!0);let u;for(const f in l)(!t||!ue(t,f)&&((u=Fe(f))===f||!ue(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=Zo(a,l,f,void 0,e,!0)):delete r[f]);if(i!==l)for(const f in i)(!t||!ue(t,f))&&(delete i[f],c=!0)}c&&pt(e,"set","$attrs")}function Ei(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Ln(a))continue;const c=t[a];let u;r&&ue(r,u=je(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:qn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=ae(n),c=l||le;for(let u=0;u<i.length;u++){const f=i[u];n[f]=Zo(r,a,f,c[f],e,!ue(c,f))}}return s}function Zo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ue(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&re(a)){const{propsDefaults:c}=r;if(n in c)o=c[n];else{const u=_n(r);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Fe(n))&&(o=!0))}return o}function $i(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(!re(e)){const u=f=>{a=!0;const[h,x]=$i(f,t,!0);_e(s,h),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return ge(e)&&o.set(e,Ye),Ye;if(ee(i))for(let u=0;u<i.length;u++){const f=je(i[u]);Pi(f)&&(s[f]=le)}else if(i)for(const u in i){const f=je(u);if(Pi(f)){const h=i[u],x=s[f]=ee(h)||re(h)?{type:h}:_e({},h);if(x){const y=Li(Boolean,x.type),_=Li(String,x.type);x[0]=y>-1,x[1]=_<0||y<_,(y>-1||ue(x,"default"))&&l.push(f)}}}const c=[s,l];return ge(e)&&o.set(e,c),c}function Pi(e){return e[0]!=="$"}function Mi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Oi(e,t){return Mi(e)===Mi(t)}function Li(e,t){return ee(t)?t.findIndex(n=>Oi(n,e)):re(t)&&Oi(t,e)?0:-1}const Ai=e=>e[0]==="_"||e==="$stable",Go=e=>ee(e)?e.map(at):[at(e)],Ha=(e,t,n)=>{if(t._n)return t;const o=ie((...r)=>Go(t(...r)),n);return o._c=!1,o},zi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ai(r))continue;const i=e[r];if(re(i))t[r]=Ha(r,i,o);else if(i!=null){const s=Go(i);t[r]=()=>s}}},ji=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Wa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Rn(t,"_",n)):zi(t,e.slots={})}else e.slots={},t&&ji(e,t);Rn(e.slots,ro,1)},Ka=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=le;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(_e(r,t),!n&&l===1&&delete r._):(i=!t.$stable,zi(t,r)),s=t}else t&&(ji(e,t),s={default:1});if(i)for(const l in r)!Ai(l)&&s[l]==null&&delete r[l]};function Qo(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,x)=>Qo(h,t&&(ee(t)?t[x]:t),n,o,r));return}if(hn(o)&&!r)return;const i=o.shapeFlag&4?co(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===le?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(we(c)?(u[c]=null,ue(f,c)&&(f[c]=null)):Ce(c)&&(c.value=null)),re(a))ht(a,l,12,[s,u]);else{const h=we(a),x=Ce(a),y=e.f;if(h||x){const _=()=>{if(y){const $=h?ue(f,a)?f[a]:u[a]:a.value;r?ee($)&&vo($,i):ee($)?$.includes(i)||$.push(i):h?(u[a]=[i],ue(f,a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ue(f,a)&&(f[a]=s)):x&&(a.value=s,e.k&&(u[e.k]=s))};r||y?_():(_.id=-1,De(_,n))}}}function qa(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(xo().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const De=ma;function Ua(e){return Ya(e)}function Ya(e,t){qa();const n=xo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:x=Ve,insertStaticContent:y}=e,_=(d,p,b,I=null,E=null,j=null,D=void 0,A=null,B=!!p.dynamicChildren)=>{if(d===p)return;d&&!Ht(d,p)&&(I=qe(d),ye(d,E,j,!0),d=null),p.patchFlag===-2&&(B=!1,p.dynamicChildren=null);const{type:M,ref:H,shapeFlag:Q}=p;switch(M){case no:$(d,p,b,I);break;case Je:z(d,p,b,I);break;case er:d==null&&q(p,b,I,D);break;case Se:V(d,p,b,I,E,j,D,A,B);break;default:Q&1?S(d,p,b,I,E,j,D,A,B):Q&6?oe(d,p,b,I,E,j,D,A,B):(Q&64||Q&128)&&M.process(d,p,b,I,E,j,D,A,B,dt)}H!=null&&E&&Qo(H,d&&d.ref,j,p||d,!p)},$=(d,p,b,I)=>{if(d==null)o(p.el=l(p.children),b,I);else{const E=p.el=d.el;p.children!==d.children&&c(E,p.children)}},z=(d,p,b,I)=>{d==null?o(p.el=a(p.children||""),b,I):p.el=d.el},q=(d,p,b,I)=>{[d.el,d.anchor]=y(d.children,p,b,I,d.el,d.anchor)},k=({el:d,anchor:p},b,I)=>{let E;for(;d&&d!==p;)E=h(d),o(d,b,I),d=E;o(p,b,I)},N=({el:d,anchor:p})=>{let b;for(;d&&d!==p;)b=h(d),r(d),d=b;r(p)},S=(d,p,b,I,E,j,D,A,B)=>{p.type==="svg"?D="svg":p.type==="math"&&(D="mathml"),d==null?m(p,b,I,E,j,D,A,B):C(d,p,E,j,D,A,B)},m=(d,p,b,I,E,j,D,A)=>{let B,M;const{props:H,shapeFlag:Q,transition:g,dirs:T}=d;if(B=d.el=s(d.type,j,H&&H.is,H),Q&8?u(B,d.children):Q&16&&v(d.children,B,null,I,E,Jo(d,j),D,A),T&&Bt(d,null,I,"created"),w(B,d,d.scopeId,D,I),H){for(const J in H)J!=="value"&&!Ln(J)&&i(B,J,null,H[J],j,d.children,I,E,Ke);"value"in H&&i(B,"value",null,H.value,j),(M=H.onVnodeBeforeMount)&&ct(M,I,d)}T&&Bt(d,null,I,"beforeMount");const W=Xa(E,g);W&&g.beforeEnter(B),o(B,p,b),((M=H&&H.onVnodeMounted)||W||T)&&De(()=>{M&&ct(M,I,d),W&&g.enter(B),T&&Bt(d,null,I,"mounted")},E)},w=(d,p,b,I,E)=>{if(b&&x(d,b),I)for(let j=0;j<I.length;j++)x(d,I[j]);if(E){let j=E.subTree;if(p===j){const D=E.vnode;w(d,D,D.scopeId,D.slotScopeIds,E.parent)}}},v=(d,p,b,I,E,j,D,A,B=0)=>{for(let M=B;M<d.length;M++){const H=d[M]=A?Tt(d[M]):at(d[M]);_(null,H,p,b,I,E,j,D,A)}},C=(d,p,b,I,E,j,D)=>{const A=p.el=d.el;let{patchFlag:B,dynamicChildren:M,dirs:H}=p;B|=d.patchFlag&16;const Q=d.props||le,g=p.props||le;let T;if(b&&Ft(b,!1),(T=g.onVnodeBeforeUpdate)&&ct(T,b,p,d),H&&Bt(p,d,b,"beforeUpdate"),b&&Ft(b,!0),M?L(d.dynamicChildren,M,A,b,I,Jo(p,E),j):D||F(d,p,A,null,b,I,Jo(p,E),j,!1),B>0){if(B&16)te(A,p,Q,g,b,I,E);else if(B&2&&Q.class!==g.class&&i(A,"class",null,g.class,E),B&4&&i(A,"style",Q.style,g.style,E),B&8){const W=p.dynamicProps;for(let J=0;J<W.length;J++){const de=W[J],$e=Q[de],it=g[de];(it!==$e||de==="value")&&i(A,de,$e,it,E,d.children,b,I,Ke)}}B&1&&d.children!==p.children&&u(A,p.children)}else!D&&M==null&&te(A,p,Q,g,b,I,E);((T=g.onVnodeUpdated)||H)&&De(()=>{T&&ct(T,b,p,d),H&&Bt(p,d,b,"updated")},I)},L=(d,p,b,I,E,j,D)=>{for(let A=0;A<p.length;A++){const B=d[A],M=p[A],H=B.el&&(B.type===Se||!Ht(B,M)||B.shapeFlag&70)?f(B.el):b;_(B,M,H,null,I,E,j,D,!0)}},te=(d,p,b,I,E,j,D)=>{if(b!==I){if(b!==le)for(const A in b)!Ln(A)&&!(A in I)&&i(d,A,b[A],null,D,p.children,E,j,Ke);for(const A in I){if(Ln(A))continue;const B=I[A],M=b[A];B!==M&&A!=="value"&&i(d,A,M,B,D,p.children,E,j,Ke)}"value"in I&&i(d,"value",b.value,I.value,D)}},V=(d,p,b,I,E,j,D,A,B)=>{const M=p.el=d?d.el:l(""),H=p.anchor=d?d.anchor:l("");let{patchFlag:Q,dynamicChildren:g,slotScopeIds:T}=p;T&&(A=A?A.concat(T):T),d==null?(o(M,b,I),o(H,b,I),v(p.children||[],b,H,E,j,D,A,B)):Q>0&&Q&64&&g&&d.dynamicChildren?(L(d.dynamicChildren,g,b,E,j,D,A),(p.key!=null||E&&p===E.subTree)&&Ri(d,p,!0)):F(d,p,b,H,E,j,D,A,B)},oe=(d,p,b,I,E,j,D,A,B)=>{p.slotScopeIds=A,d==null?p.shapeFlag&512?E.ctx.activate(p,b,I,D,B):P(p,b,I,E,j,D,B):ne(d,p,B)},P=(d,p,b,I,E,j,D)=>{const A=d.component=oc(d,I,E);if(Zn(d)&&(A.ctx.renderer=dt),rc(A),A.asyncDep){if(E&&E.registerDep(A,K),!d.el){const B=A.subTree=G(Je);z(null,B,p,b)}}else K(A,d,p,b,E,j,D)},ne=(d,p,b)=>{const I=p.component=d.component;if(da(d,p,b))if(I.asyncDep&&!I.asyncResolved){O(I,p,b);return}else I.next=p,ia(I.update),I.effect.dirty=!0,I.update();else p.el=d.el,I.vnode=p},K=(d,p,b,I,E,j,D)=>{const A=()=>{if(d.isMounted){let{next:H,bu:Q,u:g,parent:T,vnode:W}=d;{const ln=Di(d);if(ln){H&&(H.el=W.el,O(d,H,D)),ln.asyncDep.then(()=>{d.isUnmounted||A()});return}}let J=H,de;Ft(d,!1),H?(H.el=W.el,O(d,H,D)):H=W,Q&&jn(Q),(de=H.props&&H.props.onVnodeBeforeUpdate)&&ct(de,T,H,W),Ft(d,!0);const $e=Bo(d),it=d.subTree;d.subTree=$e,_(it,$e,f(it.el),qe(it),d,E,j),H.el=$e.el,J===null&&fa(d,$e.el),g&&De(g,E),(de=H.props&&H.props.onVnodeUpdated)&&De(()=>ct(de,T,H,W),E)}else{let H;const{el:Q,props:g}=p,{bm:T,m:W,parent:J}=d,de=hn(p);if(Ft(d,!1),T&&jn(T),!de&&(H=g&&g.onVnodeBeforeMount)&&ct(H,J,p),Ft(d,!0),Q&&bt){const $e=()=>{d.subTree=Bo(d),bt(Q,d.subTree,d,E,null)};de?p.type.__asyncLoader().then(()=>!d.isUnmounted&&$e()):$e()}else{const $e=d.subTree=Bo(d);_(null,$e,b,I,d,E,j),p.el=$e.el}if(W&&De(W,E),!de&&(H=g&&g.onVnodeMounted)){const $e=p;De(()=>ct(H,J,$e),E)}(p.shapeFlag&256||J&&hn(J.vnode)&&J.vnode.shapeFlag&256)&&d.a&&De(d.a,E),d.isMounted=!0,p=b=I=null}},B=d.effect=new ko(A,Ve,()=>Do(M),d.scope),M=d.update=()=>{B.dirty&&B.run()};M.id=d.uid,Ft(d,!0),M()},O=(d,p,b)=>{p.component=d;const I=d.vnode.props;d.vnode=p,d.next=null,Fa(d,p.props,I,b),Ka(d,p.children,b),_t(),si(d),wt()},F=(d,p,b,I,E,j,D,A,B=!1)=>{const M=d&&d.children,H=d?d.shapeFlag:0,Q=p.children,{patchFlag:g,shapeFlag:T}=p;if(g>0){if(g&128){fe(M,Q,b,I,E,j,D,A,B);return}else if(g&256){ce(M,Q,b,I,E,j,D,A,B);return}}T&8?(H&16&&Ke(M,E,j),Q!==M&&u(b,Q)):H&16?T&16?fe(M,Q,b,I,E,j,D,A,B):Ke(M,E,j,!0):(H&8&&u(b,""),T&16&&v(Q,b,I,E,j,D,A,B))},ce=(d,p,b,I,E,j,D,A,B)=>{d=d||Ye,p=p||Ye;const M=d.length,H=p.length,Q=Math.min(M,H);let g;for(g=0;g<Q;g++){const T=p[g]=B?Tt(p[g]):at(p[g]);_(d[g],T,b,null,E,j,D,A,B)}M>H?Ke(d,E,j,!0,!1,Q):v(p,b,I,E,j,D,A,B,Q)},fe=(d,p,b,I,E,j,D,A,B)=>{let M=0;const H=p.length;let Q=d.length-1,g=H-1;for(;M<=Q&&M<=g;){const T=d[M],W=p[M]=B?Tt(p[M]):at(p[M]);if(Ht(T,W))_(T,W,b,null,E,j,D,A,B);else break;M++}for(;M<=Q&&M<=g;){const T=d[Q],W=p[g]=B?Tt(p[g]):at(p[g]);if(Ht(T,W))_(T,W,b,null,E,j,D,A,B);else break;Q--,g--}if(M>Q){if(M<=g){const T=g+1,W=T<H?p[T].el:I;for(;M<=g;)_(null,p[M]=B?Tt(p[M]):at(p[M]),b,W,E,j,D,A,B),M++}}else if(M>g)for(;M<=Q;)ye(d[M],E,j,!0),M++;else{const T=M,W=M,J=new Map;for(M=W;M<=g;M++){const Ue=p[M]=B?Tt(p[M]):at(p[M]);Ue.key!=null&&J.set(Ue.key,M)}let de,$e=0;const it=g-W+1;let ln=!1,dl=0;const Pn=new Array(it);for(M=0;M<it;M++)Pn[M]=0;for(M=T;M<=Q;M++){const Ue=d[M];if($e>=it){ye(Ue,E,j,!0);continue}let ft;if(Ue.key!=null)ft=J.get(Ue.key);else for(de=W;de<=g;de++)if(Pn[de-W]===0&&Ht(Ue,p[de])){ft=de;break}ft===void 0?ye(Ue,E,j,!0):(Pn[ft-W]=M+1,ft>=dl?dl=ft:ln=!0,_(Ue,p[ft],b,null,E,j,D,A,B),$e++)}const fl=ln?Za(Pn):Ye;for(de=fl.length-1,M=it-1;M>=0;M--){const Ue=W+M,ft=p[Ue],pl=Ue+1<H?p[Ue+1].el:I;Pn[M]===0?_(null,ft,b,pl,E,j,D,A,B):ln&&(de<0||M!==fl[de]?be(ft,b,pl,2):de--)}}},be=(d,p,b,I,E=null)=>{const{el:j,type:D,transition:A,children:B,shapeFlag:M}=d;if(M&6){be(d.component.subTree,p,b,I);return}if(M&128){d.suspense.move(p,b,I);return}if(M&64){D.move(d,p,b,dt);return}if(D===Se){o(j,p,b);for(let Q=0;Q<B.length;Q++)be(B[Q],p,b,I);o(d.anchor,p,b);return}if(D===er){k(d,p,b);return}if(I!==2&&M&1&&A)if(I===0)A.beforeEnter(j),o(j,p,b),De(()=>A.enter(j),E);else{const{leave:Q,delayLeave:g,afterLeave:T}=A,W=()=>o(j,p,b),J=()=>{Q(j,()=>{W(),T&&T()})};g?g(j,W,J):J()}else o(j,p,b)},ye=(d,p,b,I=!1,E=!1)=>{const{type:j,props:D,ref:A,children:B,dynamicChildren:M,shapeFlag:H,patchFlag:Q,dirs:g}=d;if(A!=null&&Qo(A,null,b,d,!0),H&256){p.ctx.deactivate(d);return}const T=H&1&&g,W=!hn(d);let J;if(W&&(J=D&&D.onVnodeBeforeUnmount)&&ct(J,p,d),H&6)Yt(d.component,b,I);else{if(H&128){d.suspense.unmount(b,I);return}T&&Bt(d,null,p,"beforeUnmount"),H&64?d.type.remove(d,p,b,E,dt,I):M&&(j!==Se||Q>0&&Q&64)?Ke(M,p,b,!1,!0):(j===Se&&Q&384||!E&&H&16)&&Ke(B,p,b),I&&ze(d)}(W&&(J=D&&D.onVnodeUnmounted)||T)&&De(()=>{J&&ct(J,p,d),T&&Bt(d,null,p,"unmounted")},b)},ze=d=>{const{type:p,el:b,anchor:I,transition:E}=d;if(p===Se){nt(b,I);return}if(p===er){N(d);return}const j=()=>{r(b),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(d.shapeFlag&1&&E&&!E.persisted){const{leave:D,delayLeave:A}=E,B=()=>D(b,j);A?A(d.el,j,B):B()}else j()},nt=(d,p)=>{let b;for(;d!==p;)b=h(d),r(d),d=b;r(p)},Yt=(d,p,b)=>{const{bum:I,scope:E,update:j,subTree:D,um:A}=d;I&&jn(I),E.stop(),j&&(j.active=!1,ye(D,d,p,b)),A&&De(A,p),De(()=>{d.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ke=(d,p,b,I=!1,E=!1,j=0)=>{for(let D=j;D<d.length;D++)ye(d[D],p,b,I,E)},qe=d=>d.shapeFlag&6?qe(d.component.subTree):d.shapeFlag&128?d.suspense.next():h(d.anchor||d.el);let ot=!1;const Be=(d,p,b)=>{d==null?p._vnode&&ye(p._vnode,null,null,!0):_(p._vnode||null,d,p,null,null,null,b),ot||(ot=!0,si(),li(),ot=!1),p._vnode=d},dt={p:_,um:ye,m:be,r:ze,mt:P,mc:v,pc:F,pbc:L,n:qe,o:e};let At,bt;return t&&([At,bt]=t(dt)),{render:Be,hydrate:At,createApp:Na(Be,At)}}function Jo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ri(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(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||Ri(s,l)),l.type===no&&(l.el=s.el)}}function Za(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}function Di(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Di(t)}const Ga=e=>e.__isTeleport,Se=Symbol.for("v-fgt"),no=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),er=Symbol.for("v-stc"),bn=[];let rt=null;function R(e=!1){bn.push(rt=e?null:[])}function Qa(){bn.pop(),rt=bn[bn.length-1]||null}let yn=1;function Bi(e){yn+=e}function Ni(e){return e.dynamicChildren=yn>0?rt||Ye:null,Qa(),yn>0&&rt&&rt.push(e),e}function U(e,t,n,o,r,i){return Ni(Y(e,t,n,o,r,i,!0))}function me(e,t,n,o,r){return Ni(G(e,t,n,o,r,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const ro="__vInternal",Vi=({key:e})=>e??null,io=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Ce(e)||re(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function Y(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&&Vi(t),ref:t&&io(t),scopeId:ui,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:Te};return l?(tr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),yn>0&&!s&&rt&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&rt.push(a),a}const G=Ja;function Ja(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===pi)&&(e=Je),oo(e)){const l=It(e,t,!0);return n&&tr(l,n),yn>0&&!i&&rt&&(l.shapeFlag&6?rt[rt.indexOf(e)]=l:rt.push(l)),l.patchFlag|=-2,l}if(uc(e)&&(e=e.__vccOpts),t){t=ec(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=Ie(l)),ge(a)&&(Jr(a)&&!ee(a)&&(a=_e({},a)),t.style=Oe(a))}const s=we(e)?1:ga(e)?128:Ga(e)?64:ge(e)?4:re(e)?2:0;return Y(e,t,n,o,r,s,i,!0)}function ec(e){return e?Jr(e)||ro in e?_e({},e):e:null}function It(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?so(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Vi(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(io(t)):[r,io(t)]:io(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&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return G(no,null,e,t)}function Ee(e="",t=!1){return t?(R(),me(Je,null,e)):G(Je,null,e)}function at(e){return e==null||typeof e=="boolean"?G(Je):ee(e)?G(Se,null,e.slice()):typeof e=="object"?Tt(e):G(no,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function tr(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),tr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ro in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[Ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function so(...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=Ie([t.class,o.class]));else if(r==="style")t.style=Oe([t.style,o.style]);else if(Mn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ct(e,t,n,o=null){Ze(e,t,7,[n,o])}const tc=Ti();let nc=0;function oc(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||tc,i={uid:nc++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new kl(!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:$i(o,r),emitsOptions:ci(o,r),emit:null,emitted:null,propsDefaults:le,inheritAttrs:o.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=aa.bind(null,i),e.ce&&e.ce(i),i}let Pe=null;const nr=()=>Pe||Te;let lo,or;{const e=xo(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};lo=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),or=t("__VUE_SSR_SETTERS__",n=>ao=n)}const _n=e=>{const t=Pe;return lo(e),e.scope.on(),()=>{e.scope.off(),lo(t)}},Fi=()=>{Pe&&Pe.scope.off(),lo(null)};function Hi(e){return e.vnode.shapeFlag&4}let ao=!1;function rc(e,t=!1){t&&or(t);const{props:n,children:o}=e.vnode,r=Hi(e);Va(e,n,r,t),Wa(e,o);const i=r?ic(e,t):void 0;return t&&or(!1),i}function ic(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ei(new Proxy(e.ctx,La));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?lc(e):null,i=_n(e);_t();const s=ht(o,e,0,[e.props,r]);if(wt(),i(),Cr(s)){if(s.then(Fi,Fi),t)return s.then(l=>{Wi(e,l,t)}).catch(l=>{Kn(l,e,0)});e.asyncDep=s}else Wi(e,s,t)}else qi(e,t)}function Wi(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=ni(t)),qi(e,n)}let Ki;function qi(e,t,n){const o=e.type;if(!e.render){if(!t&&Ki&&!o.render){const r=o.template||Yo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=_e(_e({isCustomElement:i,delimiters:l},s),a);o.render=Ki(r,c)}}e.render=o.render||Ve}{const r=_n(e);_t();try{Aa(e)}finally{wt(),r()}}}function sc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function lc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return sc(e)},slots:e.slots,emit:e.emit,expose:t}}function co(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ni(ei(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}const ac=/(?:^|[-_])(\w)/g,cc=e=>e.replace(ac,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ui(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Yi(e,t,n=!1){let o=Ui(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&e&&e.parent){const r=i=>{for(const s in i)if(i[s]===t)return s};o=r(e.components||e.parent.type.components)||r(e.appContext.components)}return o?cc(o):n?"App":"Anonymous"}function uc(e){return re(e)&&"__vccOpts"in e}const se=(e,t)=>Ul(e,t,ao);function wn(e,t,n=le){const o=nr(),r=je(t),i=Fe(t),s=Ql((a,c)=>{let u;return ya(()=>{const f=e[t];st(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const h=o.vnode.props;!(h&&(t in h||r in h||i in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${i}`in h))&&st(f,u)&&(u=f,c()),o.emit(`update:${t}`,n.set?n.set(f):f)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function Xi(e,t,n){const o=arguments.length;return o===2?ge(t)&&!ee(t)?oo(t)?G(e,null,[t]):G(e,t):G(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&oo(n)&&(n=[n]),G(e,t,n))}const dc="3.4.15";/**
17
17
  * @vue/runtime-dom v3.4.15
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/const gc="http://www.w3.org/2000/svg",mc="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,Ji=Ot&&Ot.createElement("template"),vc={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==="svg"?Ot.createElementNS(gc,e):t==="mathml"?Ot.createElementNS(mc,e):Ot.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.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{Ji.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Ji.content;if(o==="svg"||o==="mathml"){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]}},Lt="transition",Sn="animation",kn=Symbol("_vtc"),sn=(e,{slots:t})=>Qi(Ia,_c(e),t);sn.displayName="Transition";const es={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};sn.props=be({},bi,es);const Ut=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},ts=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function _c(e){const t={};for(const N in e)N in es||(t[N]=e[N]);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:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,w=bc(r),b=w&&w[0],A=w&&w[1],{onBeforeEnter:P,onEnter:K,onEnterCancelled:y,onLeave:D,onLeaveCancelled:k,onBeforeAppear:m=P,onAppear:x=K,onAppearCancelled:v=y}=t,T=(N,ie,le)=>{Yt(N,ie?u:l),Yt(N,ie?c:s),le&&le()},L=(N,ie)=>{N._isLeaving=!1,Yt(N,f),Yt(N,S),Yt(N,h),ie&&ie()},G=N=>(ie,le)=>{const O=N?x:K,H=()=>T(ie,N,le);Ut(O,[ie,H]),ns(()=>{Yt(ie,N?a:i),At(ie,N?u:l),ts(O)||os(ie,o,b,H)})};return be(t,{onBeforeEnter(N){Ut(P,[N]),At(N,i),At(N,s)},onBeforeAppear(N){Ut(m,[N]),At(N,a),At(N,c)},onEnter:G(!1),onAppear:G(!0),onLeave(N,ie){N._isLeaving=!0;const le=()=>L(N,ie);At(N,f),xc(),At(N,h),ns(()=>{N._isLeaving&&(Yt(N,f),At(N,S),ts(D)||os(N,o,A,le))}),Ut(D,[N,le])},onEnterCancelled(N){T(N,!1),Ut(y,[N])},onAppearCancelled(N){T(N,!0),Ut(v,[N])},onLeaveCancelled(N){L(N),Ut(k,[N])}})}function bc(e){if(e==null)return null;if(ge(e))return[ar(e.enter),ar(e.leave)];{const t=ar(e);return[t,t]}}function ar(e){return Io(e)}function At(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Yt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[kn];n&&(n.delete(t),n.size||(e[kn]=void 0))}function ns(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yc=0;function os(e,t,n,o){const r=e._endId=++yc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=wc(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,h),i()},h=S=>{S.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,h)}function wc(e,t){const n=window.getComputedStyle(e),o=w=>(n[w]||"").split(", "),r=o(`${Lt}Delay`),i=o(`${Lt}Duration`),s=rs(r,i),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=rs(l,a);let u=null,f=0,h=0;t===Lt?s>0&&(u=Lt,f=s,h=i.length):t===Sn?c>0&&(u=Sn,f=c,h=a.length):(f=Math.max(s,c),u=f>0?s>c?Lt:Sn:null,h=u?u===Lt?i.length:a.length:0);const S=u===Lt&&/\b(transform|all)(,|$)/.test(o(`${Lt}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:S}}function rs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>is(n)+is(e[o])))}function is(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xc(){return document.body.offsetHeight}function Sc(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const cr=Symbol("_vod"),ss={beforeMount(e,{value:t},{transition:n}){e[cr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):In(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),In(e,!0),o.enter(e)):o.leave(e,()=>{In(e,!1)}):In(e,t))},beforeUnmount(e,{value:t}){In(e,t)}};function In(e,t){e.style.display=t?e[cr]:"none"}const kc=Symbol("");function Ic(e,t,n){const o=e.style,r=o.display,i=ye(n);if(n&&!i){if(t&&!ye(t))for(const s in t)n[s]==null&&ur(o,s,"");for(const s in n)ur(o,s,n[s])}else if(i){if(t!==n){const s=o[kc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");cr in e&&(o.display=r)}const ls=/\s*!important$/;function ur(e,t,n){if(ee(n))n.forEach(o=>ur(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Cc(e,t);ls.test(n)?e.setProperty(Ke(o),n.replace(ls,""),"important"):e[o]=n}}const as=["Webkit","Moz","ms"],dr={};function Cc(e,t){const n=dr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return dr[t]=o;o=zn(o);for(let r=0;r<as.length;r++){const i=as[r]+o;if(i in e)return dr[t]=i}return t}const cs="http://www.w3.org/1999/xlink";function Tc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(cs,t.slice(6,t.length)):e.setAttributeNS(cs,t,n);else{const i=Cl(t);n==null||i&&!Lr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Ec(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=Lr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function ln(e,t,n,o){e.addEventListener(t,n,o)}function $c(e,t,n,o){e.removeEventListener(t,n,o)}const us=Symbol("_vei");function Pc(e,t,n,o,r=null){const i=e[us]||(e[us]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Mc(t);if(o){const c=i[t]=Ac(o,r);ln(e,l,c,a)}else s&&($c(e,l,s,a),i[t]=void 0)}}const ds=/(?:Once|Passive|Capture)$/;function Mc(e){let t;if(ds.test(e)){t={};let o;for(;o=e.match(ds);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ke(e.slice(2)),t]}let fr=0;const Oc=Promise.resolve(),Lc=()=>fr||(Oc.then(()=>fr=0),fr=Date.now());function Ac(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Je(zc(o,n.value),t,5,[o])};return n.value=e,n.attached=Lc(),n}function zc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?Sc(e,o,c):t==="style"?Ic(e,n,o):Mn(t)?yo(t)||Pc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rc(e,t,o,c))?Ec(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Tc(e,t,o,c))};function Rc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&te(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return fs(t)&&ye(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Dc(e,t){const n=Se(e);class o extends pr{constructor(i){super(n,i,t)}}return o.def=n,o}const Bc=typeof HTMLElement<"u"?HTMLElement:class{};class pr extends Bc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=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,this._ob&&(this._ob.disconnect(),this._ob=null),vt(()=>{this._connected||(vs(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);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!ee(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Io(this._props[a])),(l||(l=Object.create(null)))[je(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=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(je))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=Io(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(Ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ke(t),n+""):n||this.removeAttribute(Ke(t))))}_update(){vs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,be({},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),Ke(i)!==i&&o(Ke(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof pr){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 ps=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>jn(t,n):t};function Vc(e){e.target.composing=!0}function hs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hr=Symbol("_assign"),Nc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[hr]=ps(r);const i=o||r.props&&r.props.type==="number";ln(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=ko(l)),e[hr](l)}),n&&ln(e,"change",()=>{e.value=e.value.trim()}),t||(ln(e,"compositionstart",Vc),ln(e,"compositionend",hs),ln(e,"change",hs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[hr]=ps(i),e.composing)return;const s=r||e.type==="number"?ko(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Fc=["ctrl","shift","alt","meta"],Hc={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)=>Fc.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Hc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Wc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},gs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Ke(r.key);if(t.some(s=>s===i||Wc[s]===i))return e(r)})},Kc=be({patchProp:jc},vc);let ms;function qc(){return ms||(ms=Za(Kc))}const vs=(...e)=>{qc().render(...e)},Uc=`.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}}
21
- `,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Yc={},Xc={class:"loading-indicator"};function Zc(e,t){return R(),q("div",Xc)}const gr=he(Yc,[["render",Zc],["styles",[Uc]]]),Gc=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"})),Qc={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},Jc={class:"flex justify-between items-end"},eu={class:"inline-block children-pointer-events-auto w-1/3"},tu={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},nu={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},ou={class:"inline-block z-20 relative"},_s=he(Se({__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=gr;return R(),q("div",{class:Ce(["reader-layout",{"cursor-none":t.idle,"cursor-default":!t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(R(),q("div",Qc,[Q(o)])):$e("",!0),we(t.$slots,"default"),Y("div",{id:"controls",class:Ce(["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}])},[Y("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Le({paddingTop:`${t.spaceTop||0}px`})},[we(t.$slots,"back"),we(t.$slots,"exit"),we(t.$slots,"chapter-nav")],4),Y("div",Jc,[Y("div",eu,[we(t.$slots,"page-nav")]),Y("div",tu,[we(t.$slots,"reset-zoom")]),Y("div",nu,[we(t.$slots,"entry"),Y("div",ou,[we(t.$slots,"settings")]),we(t.$slots,"full-screen"),we(t.$slots,"play"),we(t.$slots,"break-first")])]),Y("div",{class:Ce(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[we(t.$slots,"progress")],2)],2)],2)}}}),[["styles",[`.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100vh;left:0;line-height:24px;overflow:hidden;overscroll-behavior:contain;position:fixed;text-align:left;top:0;width:100vw}
22
- `]]]),ru=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),iu={},su={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},lu=[Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Y("circle",{cx:"14",cy:"14",r:"12"}),Y("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function au(e,t){return R(),q("svg",su,lu)}const bs=he(iu,[["render",au]]),cu=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),uu={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"},du={class:"block w-4 h-4"},fu={class:"w-12"},ys=Se({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=bs;return t.zoom!==1?(R(),q("button",uu,[Y("div",du,[Q(o)]),Y("div",fu,Qe(Math.ceil(t.zoom*100))+"%",1)])):$e("",!0)}}}),pu=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),hu={},gu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},mu=[Y("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)];function vu(e,t){return R(),q("svg",gu,mu)}const ws=he(hu,[["render",vu]]),_u=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),bu={},yu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wu=[Y("g",{fill:"none"},[Y("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Y("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)];function xu(e,t){return R(),q("svg",yu,wu)}const xs=he(bu,[["render",xu]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),ku={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Cu=[Y("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Tu(e,t){return R(),q("svg",Iu,Cu)}const mr=he(ku,[["render",Tu]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),$u={},Pu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Mu=[Y("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),Y("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Ou(e,t){return R(),q("svg",Pu,Mu)}const vr=he($u,[["render",Ou]]),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"}));function Au({touchDevice:e}){const t=X(!1);let n=0;return to("busy:touchDevice",e),to("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function _r(){const e=Wt("busy:touchDevice"),t=Wt("setBusyState");let n=!1;return Tt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const zu=(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))}},an={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>zu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},ju={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"},uo=Se({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=_r();let i=!1;function s(){i||(i=!0,r(!0,{desktopOnly:!0}))}function l(){i&&(i=!1,r(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click",c)}return(c,u)=>_t((R(),me(ma(c.href?"a":"button"),so(c.href?{href:c.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":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:ot(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:ne(()=>[Y("div",ju,[we(c.$slots,"default")])]),_:3},16,["class"])),[[Z(an),c.disabled?0:15]])}}),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:uo},Symbol.toStringTag,{value:"Module"})),Du={},Bu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vu=[Y("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Nu(e,t){return R(),q("svg",Bu,Vu)}const Ss=he(Du,[["render",Nu]]),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Ss},Symbol.toStringTag,{value:"Module"}));class Hu{constructor(){ve(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 Wu(){const e=new Hu;return Tt(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Wt("keyController");tt(()=>t.addListener(e)),Tt(()=>t.removeListener(e))}const Ku={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},qu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Uu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ks=Se({__name:"BottomSheet",props:Et({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue");fo({onKeyDown:o});const n=_r();pe(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>{const s=Ss,l=uo;return R(),q("div",{class:Ce(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[Q(sn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ne(()=>[t.value?(R(),q("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=ot(()=>{},["stop"])),onWheelPassive:i[2]||(i[2]=ot(()=>{},["stop"]))},[Y("div",Ku,[Q(l,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:ne(()=>[Q(s)]),_:1}),Y("div",qu,Qe(r.name),1),we(r.$slots,"actions")]),Y("div",Uu,[we(r.$slots,"default")])],32)):$e("",!0)]),_:3})],2)}}}),Yu=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Xu=["min","max","step"],Zu={class:"flex-shrink-0"},Is=he(Se({__name:"InputPercentage",props:Et({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=rn(e,"modelValue"),n=re({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),q("div",{class:Ce(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Le({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[_t(Y("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>n.value=i),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,Xu),[[Nc,n.value]]),Y("p",Zu,[we(o.$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}
23
- `]]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"})),Qu={class:"flex items-center mb-8 last:mb-0"},Ju={class:"flex-grow overflow-hidden"},Cs=Se({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),q("div",Qu,[Y("div",{class:Ce(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Qe(t.label),3),Y("div",Ju,[we(t.$slots,"default")])]))}}),ed=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),td=["onClick","onKeyup"],Ts=Se({__name:"InputSelect",props:Et({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=X(null),r=X({width:"",left:""});tt(()=>{let s=!1;pe(n,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){n.value=s}return(s,l)=>(R(),q("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Y("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Le(r.value)},null,4),(R(!0),q(xe,null,vn(t.items,(a,c)=>_t((R(),q("div",{key:c,tabindex:"0",class:Ce(["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.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[gs(()=>i(c),["enter"]),gs(()=>i(c),["space"])]},[Pt(Qe(a),1)],42,td)),[[Z(an),30]])),128))],512))}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),od={},rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},id=[Y("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 sd(e,t){return R(),q("svg",rd,id)}const Es=he(od,[["render",sd]]),ld=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"})),ad={},cd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},ud=[Y("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Y("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function dd(e,t){return R(),q("svg",cd,ud)}const $s=he(ad,[["render",dd]]),fd=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"}));function pd(e){if(e)try{return JSON.parse(e)}catch{return}}function hd(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||{}),Xt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Xt||{});const gd=.25,md=5,vd=.25,Cn=.25,Tn=5,_d=.05,bd=0,yd=4;function wd(e){var y,D,k,m,x,v;const{titleName:t,isWebtoon:n}=e,o=re(()=>t.value?hd(t.value):location.hostname),r=X(xd(`tkr:${o.value}`)),i=T=>{r.value=T;const L=`tkr:${o.value}`;!T||!Object.keys(T).length?localStorage.removeItem(L):localStorage.setItem(L,JSON.stringify(T))},s=T=>{if(!r.value){i(T);return}const L={...r.value};Object.entries(T).forEach(([G,N])=>{N===void 0?delete L[G]:L[G]=N}),i(L)},l=X(((y=r.value)==null?void 0:y.style)??e.defaultStyle??Xt.longStrip),a=X(((D=r.value)==null?void 0:D.direction)??e.defaultDirection??ft.vertical),c=X((k=r.value)==null?void 0:k.gap),u=X(((m=r.value)==null?void 0:m.speed)??1),f=X(((x=r.value)==null?void 0:x.zoom)??1),h=X(((v=r.value)==null?void 0:v.breakFirst)??!1),S=re({get(){return n.value?Xt.longStrip:l.value},set:T=>{l.value=T,s({style:T}),T!==Xt.longStrip&&a.value===ft.vertical&&(w.value=ft.rtl)}}),w=re({get:()=>n.value?ft.vertical:a.value,set:T=>{a.value=T,s({direction:T})}}),b=re({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(T){c.value=T,s({gap:T})}}),A=re({get:()=>u.value,set(T){u.value=T,s({speed:T===1?void 0:T})}}),P=re({get:()=>f.value,set(T){f.value=T,s({zoom:T===1?void 0:T})}}),K=re({get:()=>h.value,set(T){h.value=T,s({breakFirst:T?!0:void 0})}});return{direction:w,style:S,gap:b,speed:A,zoom:P,isLongStrip:re(()=>S.value===Xt.longStrip),isDouble:re(()=>S.value===Xt.double),isRTL:re(()=>w.value===ft.rtl),isVertical:re(()=>w.value===ft.vertical),breakFirst:K}}function xd(e){const t=localStorage.getItem(e),n=pd(t),o={};return n?(n.style!==void 0&&Object.values(Xt).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>=bd&&n.gap<=yd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Cn&&n.speed<=Tn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Cn&&n.zoom<=Tn&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),Object.keys(o).length?o:void 0):o}const Ps=Se({__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=t,r=X(!1),i=re(()=>n.name??location.hostname);fo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>{const u=$s,f=uo,h=Es,S=Ts,w=Cs,b=Is,A=ks;return R(),q(xe,null,[Q(f,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:ne(()=>[Q(u)]),_:1},8,["disabled"]),Q(A,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=P=>r.value=P),name:i.value},{actions:ne(()=>[Q(f,{transparent:"",onClick:l},{default:ne(()=>[Q(h)]),_:1})]),default:ne(()=>[Q(w,{label:"Style"},{default:ne(()=>[Q(S,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=P=>o("update:reader-style",P))},null,8,["model-value","items"])]),_:1}),Q(w,{label:"Direction"},{default:ne(()=>[Q(S,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=P=>o("update:direction",P))},null,8,["model-value","items"])]),_:1}),Q(w,{label:"Gap"},{default:ne(()=>[Q(S,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=P=>o("update:gap",P))},null,8,["model-value"])]),_:1}),Q(w,{label:"Speed"},{default:ne(()=>[Q(b,{"model-value":a.speed,min:Z(gd),max:Z(md),step:Z(vd),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=P=>o("update:speed",P))},{suffix:ne(()=>[Pt(Qe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(w,{label:"Zoom"},{default:ne(()=>[Q(b,{"model-value":Math.ceil(a.zoom*100),min:Z(Cn)*100,max:Z(Tn)*100,step:Z(_d)*100,"onUpdate:modelValue":s},{suffix:ne(()=>[Pt(Qe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),kd={},Id={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Cd=[Y("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Td(e,t){return R(),q("svg",Id,Cd)}const Ms=he(kd,[["render",Td]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),$d={},Pd={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Md=[Y("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Od(e,t){return R(),q("svg",Pd,Md)}const Os=he($d,[["render",Od]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),Ad={},zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jd=[Y("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function Rd(e,t){return R(),q("svg",zd,jd)}const Ls=he(Ad,[["render",Rd]]),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),Bd={},Vd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nd=[Y("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function Fd(e,t){return R(),q("svg",Vd,Nd)}const As=he(Bd,[["render",Fd]]),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),Wd={},Kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},qd=[Y("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Ud(e,t){return R(),q("svg",Kd,qd)}const zs=he(Wd,[["render",Ud]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Xd=["aria-hidden"],Zd=["onClick"],Gd={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"},Qd={class:"whitespace-nowrap"},br=Se({__name:"ButtonDropdown",props:Et({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Et(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),i=X(null),s=X(!1),l=X(null),a=X(!1),c=X(!1),u=X(!1);fo({onKeyDown:b});const f=_r();function h(){if(!n.items.length){s.value=!1;return}s.value=!s.value,f(s.value),s.value?(S(),vt(()=>setTimeout(()=>{var m,x;(x=(m=l.value)==null?void 0:m.children[r.value])==null||x.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),P(i.value)):setTimeout(K,250)}function S(){const m=i.value;if(m){const x=m.getBoundingClientRect(),v=x.x+x.width/2;a.value=x.y>window.innerHeight/2,c.value=v<window.innerWidth/3,u.value=v>window.innerWidth/3*2}}function w(m,x){m!=r.value&&(r.value=m,o("select",m,x)),h()}function b(m){s.value&&m.key==="Escape"&&(h(),m.preventDefault())}let A=[];function P(m){const x=window.getComputedStyle(m).zIndex,v=m.style.zIndex;(!x||!(+x>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",A.push({el:m,zIndex:v})),m.parentElement&&P(m.parentElement))}function K(){A.forEach(({el:m,zIndex:x})=>{m.style.zIndex=x??""}),A=[]}let y=!1;function D(){y||(y=!0,f(!0,{desktopOnly:!0}))}function k(){y&&(y=!1,f(!1,{desktopOnly:!0}))}return(m,x)=>{const v=zs;return R(),q("div",{ref_key:"root",ref:i,class:"select-none relative inline-flex"},[s.value?(R(),q("div",{key:0,class:"fixed-screen bg-transparent",onClick:h})):$e("",!0),m.items.length?(R(),me(sn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ne(()=>[s.value?(R(),q("ul",{key:0,ref_key:"list",ref:l,"aria-hidden":!s.value,class:Ce(["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":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:x[0]||(x[0]=ot(()=>{},["stop"]))},[(R(!0),q(xe,null,vn(m.items,(T,L)=>_t((R(),q("li",{key:L,tabindex:"-1",class:Ce(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":L===r.value}]),onClick:G=>w(L,G)},[Y("div",{class:Ce(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":L>0}])},[we(m.$slots,"item",{item:T},()=>[Pt(Qe(T),1)])],2)],10,Zd)),[[Z(an),30]])),128))],42,Xd)):$e("",!0)]),_:3})):$e("",!0),_t((R(),q("button",so({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":m.disabled}]},m.title?{title:m.title}:{},{onClick:ot(h,["stop"]),onMouseenter:D,onMouseleave:k}),[Y("div",Gd,[Y("span",Qd,Qe(m.label),1),m.items.length?(R(),q("span",{key:0,class:Ce(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[Q(v)],2)):$e("",!0)])],16)),[[Z(an),30]])],512)}}}),Jd=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})),js=Se({__name:"PageNav",props:Et({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=rn(e,"modelValue"),o=re(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=re(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),i=re(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>{const u=br;return R(),me(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),ef=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),tf={},nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},of=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function rf(e,t){return R(),q("svg",nf,of)}const Rs=he(tf,[["render",rf]]),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),lf={},af={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},cf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function uf(e,t){return R(),q("svg",af,cf)}const Ds=he(lf,[["render",uf]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),ff={},pf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hf=[Y("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function gf(e,t){return R(),q("svg",pf,hf)}const Bs=he(ff,[["render",gf]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),vf={},_f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bf=[Y("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function yf(e,t){return R(),q("svg",_f,bf)}const Vs=he(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"}));var Ns;const yr=typeof window<"u",xf=e=>typeof e=="string",zt=()=>{};yr&&((Ns=window==null?void 0:window.navigator)!=null&&Ns.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():Z(e)}function Fs(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 Sf(e,t={}){let n,o,r=zt;const i=l=>{clearTimeout(l),r(),r=zt};return l=>{const a=po(e),c=po(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,f)=>{r=t.rejectOnCancel?f:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function kf(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=zt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=zt)};return f=>{const h=po(e),S=Date.now()-r,w=()=>a=f();if(c(),h<=0)return r=Date.now(),w();if(S>h&&(n||!s))r=Date.now(),w();else if(t)return new Promise((b,A)=>{l=o?A:b,i=setTimeout(()=>{r=Date.now(),s=!0,b(w()),c()},h-S)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function If(e){return e}function wr(e){return zr()?($l(e),!0):!1}function Be(e,t=200,n={}){return Fs(Sf(t,n),e)}function Hs(e,t=200,n=!1,o=!0,r=!1){return Fs(kf(t,n,o,r),e)}function Ws(e,t=!0){sr()?tt(e):t?e():vt(e)}function Zt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const En=yr?window:void 0,Cf=yr?window.document:void 0;function jt(...e){let t,n,o,r;if(xf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=En):[t,n,o,r]=e,!t)return zt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h)=>(u.addEventListener(f,h,r),()=>u.removeEventListener(f,h,r)),a=pe(()=>Zt(t),u=>{s(),u&&i.push(...n.flatMap(f=>o.map(h=>l(u,f,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return wr(c),c}function Ks(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),Ws(o,t),n}const qs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Us="__vueuse_ssr_handlers__";qs[Us]=qs[Us]||{};function Ys({document:e=Cf}={}){if(!e)return X("visible");const t=X(e.visibilityState);return jt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Xs=Object.getOwnPropertySymbols,Tf=Object.prototype.hasOwnProperty,Ef=Object.prototype.propertyIsEnumerable,$f=(e,t)=>{var n={};for(var o in e)Tf.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Xs)for(var o of Xs(e))t.indexOf(o)<0&&Ef.call(e,o)&&(n[o]=e[o]);return n};function Pf(e,t,n={}){const o=n,{window:r=En}=o,i=$f(o,["window"]);let s;const l=Ks(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>Zt(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return wr(u),{isSupported:l,stop:u}}function xr(e,t={width:0,height:0},n={}){const{window:o=En,box:r="content-box"}=n,i=re(()=>{var a,c;return(c=(a=Zt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return Pf(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Zt(e);if(u){const f=o.getComputedStyle(u);s.value=parseFloat(f.width),l.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((f,{inlineSize:h})=>f+h,0),l.value=u.reduce((f,{blockSize:h})=>f+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>Zt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function Sr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=En}=n,l=Ks(()=>s&&"IntersectionObserver"in s);let a=zt;const c=l.value?pe(()=>({el:Zt(e),root:Zt(o)}),({el:f,root:h})=>{if(a(),!f)return;const S=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});S.observe(f),a=()=>{S.disconnect(),a=zt}},{immediate:!0,flush:"post"}):zt,u=()=>{a(),c()};return wr(u),{isSupported:l,stop:u}}var Zs;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Zs||(Zs={}));var Mf=Object.defineProperty,Gs=Object.getOwnPropertySymbols,Of=Object.prototype.hasOwnProperty,Lf=Object.prototype.propertyIsEnumerable,Qs=(e,t,n)=>t in e?Mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Af=(e,t)=>{for(var n in t||(t={}))Of.call(t,n)&&Qs(e,n,t[n]);if(Gs)for(var n of Gs(t))Lf.call(t,n)&&Qs(e,n,t[n]);return e};Af({linear:If},{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 zf(e={}){const{window:t=En,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=X(n),l=X(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(),Ws(a),jt("resize",a,{passive:!0}),r&&jt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Js=he(Se({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=X(null),r=X(0),i=X([]),s=re(()=>i.value[r.value]),l=Hs(a,500);tt(()=>{const f=xr(o),h=Be(()=>c({width:f.width.value,height:f.height.value}),50);h(),pe(f.width,h),pe(f.height,h)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(f){const h=u();i.value=h.map(({rect:S,text:w})=>{const b=S.top<f.height-S.bottom,A=S.left<f.width-S.right;return{text:w,style:{left:`${S.left}px`,top:`${S.top}px`,width:`${S.width}px`,height:`${S.height}px`},textStyle:{left:A?`${S.left-12}px`:void 0,right:A?void 0:`${f.width-S.left}px`,top:b?`${S.bottom+12}px`:`${S.top+20}px`,textAlign:b?void 0:"right",transform:b?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var S;const f=(S=o.value)==null?void 0:S.parentElement;if(!f)return[];const h=[];return f.querySelectorAll("[data-tour]").forEach(w=>{var P;const b=(P=w.getAttribute("data-tour"))==null?void 0:P.trim();if(!(b!=null&&b.length))return;const A=w.getBoundingClientRect();h.push({rect:A,text:b})}),h}return(f,h)=>{var S,w;return R(),q(xe,null,[Y("div",{class:Ce(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),Y("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=ot((...b)=>Z(l)&&Z(l)(...b),["stop"]))},[s.value?(R(),q("div",{key:r.value,class:"tour__target",style:Le(s.value.style)},null,4)):$e("",!0),(R(),q("div",{key:r.value,class:"tour__text",style:Le((S=s.value)==null?void 0:S.textStyle)},Qe(((w=s.value)==null?void 0:w.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}}
24
- `]]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Rf=Y("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),el=Se({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=X([]);tt(async()=>{const c=xr(r),u=Be(()=>{s({width:c.width.value,height:c.height.value})},50);u(),pe(c.width,u),pe(c.height,u)});function s(c){var h;const u=(h=r.value)==null?void 0:h.parentElement;if(!u)return;const f=Array.from(u.querySelectorAll("#controls [title]"));f.length&&(i.value=l(f,c))}function l(c,u){const f=[],h=[];let S=0,w=0;const b=50,A=25;c.forEach(k=>{var L;const m=(L=k.getAttribute("title"))==null?void 0:L.trim(),x=k.getBoundingClientRect();if(!m||!x.height||!x.width)return;const v=Math.ceil((x.top-10)/b),T=Math.ceil((x.left-10)/b);h.push({isTour:!1,title:m,rect:x,fromX:T,toX:Math.max(T+1,Math.ceil((x.right+10)/b)),fromY:v,toY:Math.max(v+1,Math.ceil((x.bottom+10)/b))})}),h.forEach(k=>{for(let m=k.fromY;m<k.toY;m++){f[m]??(f[m]=[]);for(let x=k.fromX;x<k.toX;x++)f[m][x]=k;k.toY>S+1&&(S=k.toY-1),k.toX>w+1&&(w=k.toX-1)}});let P=w/2;h.forEach(k=>{k.isAlignRight=k.fromX>P});const K=(k,m)=>{f[m]??(f[m]=[]);const x=m>=k.toY;if(k.isTour)for(let v=k.fromX;v<k.toX;v++)delete f[k.fromY][v],k.fromY=m,k.toY=m+(x?1:-1),f[m][v]=k;else{const v=k.isAlignRight?k.fromX-3:k.fromX,T=v+3;k.helpItem={fromX:v,toX:T,fromY:m,toY:m+1,isTour:!0,isAlignRight:k.isAlignRight};for(let L=v;L<T;L++)f[m][L]=k.helpItem}},y=(k,m)=>{if(m>S||m<0)return!1;const x=m>=k.toY,v=f[m];if(!v)return K(k,m),!0;const T=v[k.fromX];if(T&&!T.isTour)return!1;if(T&&T.isTour)return y(T,x?m+1:m-1)?(K(k,m),!0):!1;if(!T){const L=k.isAlignRight?-1:1;return v[k.fromX+L]||v[k.fromX+L*2]?y(k,x?m+1:m-1):(K(k,m),!0)}return!1};h.forEach(k=>{if(!y(k,k.toY)){if(k.isAlignRight){const m=f[k.fromY]??[];if(!m.slice(k.fromX-3,k.fromX).filter(Boolean).length){const v=k.fromX-3,T=k.fromX;k.helpItem={isTour:!0,isAlignRight:!0,fromX:v,toX:T,fromY:k.fromY,toY:k.toY};for(let L=k.fromX-3;L<k.fromX;L++)m[L]=k.helpItem;return}}y(k,k.fromY-1)}});const D=[];return h.forEach(k=>{const{title:m,helpItem:x,rect:v,isAlignRight:T,fromX:L,fromY:G,toY:N}=k;if(!m||!x||!v)return;const ie=x.fromY>=N,le=x.toY<=G;D.push({title:a(m),style:{top:ie?`${v.bottom+(x.fromY-N)*b+A}px`:le?void 0:`${v.top+8}px`,bottom:le?`${u.height-v.top+(x.toY-G)*b+A}px`:void 0,left:T?void 0:`${v.left}px`,right:T?ie?`${u.width-v.right}px`:`${u.width-v.right+v.width+A}px`:void 0},arrowStyle:{width:le||ie?"2px":`${Math.abs(x.toX-L)*b+A-5}px`,height:le||ie?`${(ie?x.fromY-N:G-x.toY)*b+A}px`:"2px",top:ie?`${v.bottom}px`:le?void 0:`${v.top+20}px`,bottom:le?`${u.height-v.top}px`:void 0,left:T?void 0:`${v.left+v.width/2}px`,right:T?ie?`${u.width-v.right+v.width/2}px`:`${u.width-v.right+v.width}px`:void 0}})}),D}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),q(xe,null,[Rf,Y("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=ot(f=>o("hide"),["stop"]))},[(R(!0),q(xe,null,vn(i.value,f=>(R(),q(xe,{key:f.title},[Y("div",{class:"absolute",style:Le(f.style)},Qe(f.title),5),Y("div",{class:"absolute bg-stone-300 rounded-lg",style:Le(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Df=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),tl=he(Se({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=mr,s=vr;return n.value?(R(),q("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(R(),me(i,{key:0})):(R(),me(s,{key:1}))])):$e("",!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)}}
25
- `]]]),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),Vf={},Nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ff=[Y("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Hf(e,t){return R(),q("svg",Nf,Ff)}const nl=he(Vf,[["render",Hf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),ol=Se({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),r=Be(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),tt(()=>{i(),r();let s;const l=Ys();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=nl;return R(),me(sn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ne(()=>[o.value?(R(),q("div",{key:0,class:Ce(["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===Z(ft).vertical,"rotate-180":s.direction===Z(ft).rtl}])},[Q(a)],2)):$e("",!0)]),_:1})}}}),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),ho=[];function qf(e){ho.push(e),Tt(()=>{const t=ho.indexOf(e);t!==-1&&ho.splice(t,1)})}function Uf(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;ho.forEach(s=>s(r,i))}const rl=Se({__name:"ZoomWrapper",props:Et({pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:Et(["dragEnd","click"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=rn(e,"modelValue"),i=X(null),s=X(Math.min(Tn,Math.max(Cn,r.value))),l=X(!1),a=X(!1),c=X(!1);pe(r,O=>le(O)),tt(()=>{if(!n.touchDevice){jt(i,"mousedown",S),jt(window,"wheel",k);return}if(jt(i,"touchstart",P),!navigator.userAgent.toLowerCase().includes("android")){qf(L);return}}),fo({onKeyDown:O=>{var H;if(!n.busy&&((H=i.value)==null||H.focus(),!(O.key==="Meta"||O.key==="Control")&&(O.ctrlKey||O.metaKey)))switch(O.key){case"0":le(1);break;case"-":le(s.value-.2),O.preventDefault();break;case"=":case"+":le(s.value+.2),O.preventDefault();break}}});function u(O){a.value!==O&&(a.value=O,O?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let f={x:0,y:0},h={x:0,y:0};function S(O){O.button===0&&(f={x:O.clientX,y:O.clientY},h={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",w),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",w),setTimeout(()=>u(!1))},{once:!0}),O.preventDefault(),O.stopPropagation())}function w(O){u(!0);const H=O.clientX-f.x,$=O.clientY-f.y,F=i.value;F.scrollLeft=h.x-H,F.scrollTop=h.y-$}let b=!1,A={distance:0,zoom:s.value,x:0,y:0};function P(O){n.busy||(b=O.touches.length===2,b&&(u(!0),O.stopPropagation(),O.preventDefault(),A={distance:m(O),zoom:s.value,x:(O.touches[0].clientX+O.touches[1].clientX)/2,y:(O.touches[0].clientY+O.touches[1].clientY)/2}),(b||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",y),window.addEventListener("touchend",K,{once:!0})))}function K(){if(window.removeEventListener("touchmove",y),b){u(!1),b=!1;return}if(!a.value)return;const O=Be(()=>{u(!1),i.value.removeEventListener("scroll",$)},200),H=setTimeout(O,200);i.value.addEventListener("scroll",$);function $(){clearTimeout(H),O()}}function y(O){if(u(!0),b){O.stopPropagation(),O.preventDefault();const $=m(O)/A.distance;le(Math.ceil($*A.zoom*100)/100,A)}}const D=Be(()=>l.value=!1,100);function k(O){if(!n.busy){if(O.ctrlKey||O.metaKey){O.stopPropagation(),O.preventDefault();const H=Math.ceil((s.value+O.deltaY*-.01)*100)/100;le(H,{x:O.clientX,y:O.clientY});return}n.horizontal&&(l.value||(l.value=!0),D(),O.deltaY&&(i.value&&(i.value.scrollLeft+=O.deltaY*(n.rtl?-1:1)),O.stopPropagation()))}}function m(O){return Math.hypot(O.touches[0].clientX-O.touches[1].clientX,O.touches[0].clientY-O.touches[1].clientY)}let x=0,v;function T(O){if(!a.value){if(!n.touchDevice){o("click",O);return}x++,v&&clearTimeout(v),x===2&&L(O.clientX,O.clientY),v=setTimeout(()=>{!a.value&&x===1&&o("click",O),v=void 0,x=0},300)}}function L(O,H){if(!x)return;x=0;const $=s.value===1?2:1;le($,{x:O,y:H})}let G;const N=Be(()=>{c.value=!1,G=void 0},150);function ie(){if(!c.value){const O=i.value;if(!O)return;const H=O.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;H&&(G={el:H,rect:H.getBoundingClientRect()},c.value=!0)}if(G)return N(),G}async function le(O,H){const $=i.value,F=Math.min(Tn,Math.max(Cn,O));if(!$||s.value===F)return;const ae=ie();if(!ae)return;const fe=(H==null?void 0:H.x)??$.clientWidth/2,ke=(H==null?void 0:H.y)??$.clientHeight/2;s.value=F,r.value=F,await vt();const{el:_e,rect:Me}=ae,rt=_e.offsetWidth/Me.width,pt=_e.offsetHeight/Me.height;$.scrollLeft=_e.offsetLeft-Me.left*rt+fe*(rt-1),$.scrollTop=_e.offsetTop-Me.top*pt+ke*(pt-1)}return(O,H)=>(R(),q("div",{ref_key:"root",ref:i,tabindex:"0",class:Ce(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!O.longStrip&&(a.value||l.value||c.value),"cursor-grabbing":a.value,"overflow-hidden":c.value}]),style:Le({"font-size":`${s.value}px`}),onClick:ot(T,["stop"])},[we(O.$slots,"default")],6))}}),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),il=Se({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),r=X(!1);return tt(async()=>{await vt();let i=!1;Sr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(R(),q("div",{ref_key:"root",ref:o},[we(i.$slots,"default",{visible:r.value})],512))}}),Xf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"}));function Zf({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=X(n),i=X(o),s=Be(l,50);pe(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 Gf={key:0,class:"page--loading"},Qf=["src"],Jf=["src"],ep=["data-index"],sl=he(Se({__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},hasNext:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=re(()=>{var w;return(w=r.value)==null?void 0:w.$el}),s=X(null),l=xr(i),a=re(()=>{const{width:w,height:b}=l,A=n.isLongStrip?n.isVertical?w.value:b.value:Math.min(w.value,b.value);return Math.min(4,Math.max(1,Math.ceil(A/400-1)))*n.gap}),c=Zf({pageIndex:re(()=>n.pageIndex),isLongStrip:re(()=>n.isLongStrip)}),u=re(()=>{const{width:{value:w},height:{value:b}}=l;return n.pages.map(A=>{var T;const P=A.some(L=>{var G;return(G=L.img)==null?void 0:G.isLoading}),K=A.map(L=>L.index),y={isLoading:P,indexes:K};if(P||K[K.length-1]<c.min.value-1||K[0]>c.max.value+2)return y;const D=A.map(({img:L})=>L).filter(Boolean);if(!D.length||(y.srcs=D.map(({src:L})=>L),D.every(L=>L.hasError)))return y;const m=(T=D.find(L=>!L.hasError))==null?void 0:T.size,x=D.reduce((L,G)=>{var N;return L+(((N=G.size)==null?void 0:N.width)??m.width)},0),v=D.reduce((L,G)=>{var N;return L+(((N=G.size)==null?void 0:N.height)??m.height)},0)/D.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&w/x<b/v?(y.width=Math.min(w,x),y.height=v*y.width/x):y.height=Math.min(b,v),y})}),f=re(()=>{const w=n.isVertical?"width":"height";return u.value.map(b=>b[w]).filter(Boolean).sort((b,A)=>A-b)[0]});function h({indexes:w}){const b=w[w.length-1];b!==void 0&&c.onPageVisible(b)}function S(w){if(!n.isLongStrip){const b=n.isVertical?l.height.value:l.width.value,P=(n.isVertical?w.clientY:n.isRTL?b-w.clientX:w.clientX)/b;if(P<=.2&&n.pageIndex>0){o("prev");return}else if(P>=.8){o("next");return}}o("click")}return(w,b)=>{const A=gr,P=il,K=rl;return R(),me(K,{ref_key:"root",ref:r,"model-value":w.zoom,"page-index":w.pageIndex,class:Ce(["reader-body",{"reader-body--long-strip":w.isLongStrip,"reader-body--pages":!w.isLongStrip,"reader-body--vertical":w.isVertical,"reader-body--rtl":w.isRTL,"reader-body--idle":w.idle,"reader-body--first":!w.isLongStrip&&w.pageIndex==0,"reader-body--last":!w.isLongStrip&&w.pageIndex==w.totalImgs&&!w.hasNext}]),"play-controller":w.playController,horizontal:!w.isVertical,rtl:w.isRTL,"touch-device":w.touchDevice,busy:w.busy,"long-strip":w.isLongStrip,style:Le({"--gap":`${a.value}em`,"--space-top":(w.spaceTop||0)+"px","--screen-width-em":Z(l).width.value+"em","--screen-height-em":Z(l).height.value+"em",...w.isLongStrip?{"--max-size-em":f.value+"em"}:{}}),"onUpdate:modelValue":b[0]||(b[0]=y=>o("update:zoom",y)),onDragEnd:b[1]||(b[1]=()=>o("dragEnd")),onClick:S,onScroll:Z(c).onScroll},{default:ne(()=>[(R(!0),q(xe,null,vn(u.value,y=>(R(),me(P,so({key:w.direction+"_"+y.indexes[0],"data-index":y.indexes[0]},y.indexes.length>1?{"data-index2":y.indexes[1]}:{},{onVisible:()=>h(y)}),{default:ne(({visible:D})=>{var k;return[!((k=y.srcs)!=null&&k.length)||y.isLoading?(R(),q("div",Gf,[_t(Q(A,null,null,512),[[ss,D]])])):y.srcs.length==1?(R(),q("img",{key:1,src:y.srcs[0],style:Le({height:y.height!==void 0?y.height+"em":""})},null,12,Qf)):(R(),q("div",{key:2,class:Ce(["page--double",{"flex-row-reverse":w.isRTL}]),style:Le({width:y.width!==void 0?y.width+"em":"",height:y.height!==void 0?y.height+"em":""})},[(R(!0),q(xe,null,vn(y.srcs,m=>(R(),q("div",{key:m},[Y("img",{src:m},null,8,Jf)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),Y("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":w.totalImgs},[we(w.$slots,"end")],8,ep)]),_: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--first:before,.reader-body--pages.reader-body--last:after{cursor:default}.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).reader-body--rtl:before{right:0}.reader-body--pages:not(.reader-body--vertical).reader-body--rtl:after,.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):before{left:0}.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):after{right:0}.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)>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}
26
- `]]]),tp=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),np={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},op={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},rp={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},ll=he(Se({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=X(null),r=X(null),i=X(!1),s=X(!1),l=X(3);return tt(()=>{let a;Sr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),Sr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),Tt(()=>a&&clearInterval(a))}),(a,c)=>(R(),q("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[_t(Y("div",np,[a.hasNext?(R(),q("div",op,[s.value?(R(),q("div",rp)):$e("",!0),_t((R(),q("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=ot(()=>n("next"),["stop"]))},[Pt(" Next in "+Qe(l.value),1)])),[[Z(an)]])])):$e("",!0),_t((R(),q("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=ot(()=>n("hide"),["stop"]))},[Pt(" Hide ")])),[[Z(an)]])],512),[[ss,i.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
27
- `]]]),ip=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"}));function cn(e=0){return new Promise(t=>setTimeout(t,e))}function al(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 sp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await al(o)}function go(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==="srcset"||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()}}async function lp(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}class ap{constructor({isIOS:t,onDownloaded:n}){ve(this,"reactiveResults",un({}));ve(this,"isIOS");ve(this,"tkLoadId",Date.now());ve(this,"isMounted",!0);ve(this,"onDisposeCallbacks",[]);ve(this,"onDownloaded");this.isIOS=t,this.onDownloaded=n}dispose(){this.isMounted=!1,this.onDisposeCallbacks.forEach(t=>t()),this.onDisposeCallbacks=[],this.onDownloaded=()=>{}}async download(t){var l;if(!this.isMounted)return;const n=t.el;let o=t.computedSrc;if(!n&&!o)return;const r=n instanceof HTMLImageElement,i=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,r){const a=()=>this.onImgElLoaded(t,n);n.addEventListener("load",a),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a)})}}if(r&&!o){if(o=go(n),!o)return;n._tkSrc=o}else if(i&&!o){if(o=await al(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=r&&o.startsWith("blob");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await cn(300),await this.downloadSrc(t))}async onImgElLoaded(t,n){var r;if(!this.isMounted)return;const o=go(n);o&&(!o.startsWith("blob")&&t.computedSrc===o||(n._tkSrc=o,(r=this.reactiveResults)[o]??(r[o]={src:o,isLoading:!0,hasError:!1}),this.downloadSrc(t)))}async downloadSrc(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,r=o?await sp(o,n):n;if(!r)return;const i=await lp(r,o);if(!this.isMounted)return;const s=!!i&&(i.width<200||i.height<200);this.reactiveResults[n]={src:r,size:i,isLoading:!1,hasError:!i,invalid:s},i&&this.onDownloaded(t,i)}}const cp=3;class up{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:r}){ve(this,"isQueueStarted",!1);ve(this,"debouncedEnqueue");ve(this,"concurrentCount",0);ve(this,"getItems");ve(this,"getActiveIndex");ve(this,"isCompleted");ve(this,"callback");ve(this,"activeIndex",0);ve(this,"completedItems");ve(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=r,this.debouncedEnqueue=Be(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<cp&&this.isMounted}async enqueue(){if(!this.canEnqueue)return;const t=this.getItems();if(t===this.completedItems)return;this.completedItems=void 0;const n=this.resetActiveIndex(),o=Math.max(0,Math.min(t.length-1,n-1)),r=[];for(let i=o;i<t.length;i++){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==t.length-1))}for(let i=o-1;i>=0;i--){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==0))}this.getItems()===t&&r.filter(Boolean).length==t.length&&(this.completedItems=t)}async invokeItemCallback(t,n){const o=this.getItems()[t];return o?this.isCompleted(o)?!0:(this.concurrentCount++,this.callback(o).then(()=>{this.concurrentCount=Math.max(0,this.concurrentCount-1),n||this.debouncedEnqueue()}),await cn(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Gt{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}async function $n(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 $n(e-1,t,n);r(i)},t)})}function kr(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=kr(e.parentElement,t);return t.set(e,i),i}function cl(e){const t=e.tagName.toLowerCase();if(t==="option"){const n=e.parentElement;if(n.tagName.toLowerCase()!=="select")return;n.value=e.getAttribute("value")||"",n.dispatchEvent(new Event("change"));return}return t==="a"&&e.addEventListener("click",n=>n.preventDefault(),{once:!0}),e.click()}async function dp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await $n(50,30,()=>document.querySelector(n));return r?(cl(r),await cn(),!0):!1}class fp{constructor({spec:t,onChanged:n}){ve(this,"spec");ve(this,"onChanged");ve(this,"rawImages",[]);ve(this,"isMounted",!0);ve(this,"loadRawImagesTs");ve(this,"disconnectObservers");this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var s;let t;const n=Be(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),r=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Be(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),r==null||r.disconnect()};let i=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),r==null||r.disconnect(),o.observe(t,{childList:!0,subtree:!0}),r==null||r.observe(t),i?n():(i=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((r,i)=>{const s=this.rawImages[i];return s&&s.el===r.el&&s.parentEl===r.parentEl&&s.src===r.src?s:(n=!0,r)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=(l=this.spec)==null?void 0:l.content;if(!n){t(document.body);return}const o=await dp(this.spec);let r=n?await $n(o?100:1,10,()=>document.querySelector(n)):void 0;if(!r)return;t(r);let i=0;const s=async()=>{if(this.isMounted&&!(r!=null&&r.isConnected)){if(i=0,r=await $n(50,20,()=>{const a=document.querySelector(n);return a!=null&&a.isConnected&&a!==r?a:void 0}),!r)return;t(r)}!this.isMounted||++i>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var i;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(i=this.spec)==null?void 0:i.imgDivs,r=o?await pp(t,o):hp(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function pp(e,t){const n=Array.from(e.querySelectorAll(t)),o=new Map;return n.map(i=>{const s=Array.from(i.querySelectorAll("img,canvas"));for(const l of s)if(kr(l,o)){if(l instanceof HTMLCanvasElement){if(ul(l))return new Gt(void 0,l,i)}else if(l instanceof HTMLImageElement&&dl(l)){const a=go(l);return new Gt(a,l,i)}}return new Gt(void 0,void 0,i)})}function hp(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(kr(i,o)){if(i instanceof HTMLCanvasElement)ul(i)&&t.push(new Gt(void 0,i));else if(i instanceof HTMLImageElement&&dl(i)){const s=go(i);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Gt(s,i))}}}),t}function ul(e){return e.isConnected&&e.width>=200&&e.height>=200}function dl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function fl(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 gp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Gt(void 0,o));return fl(n)}function mo({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:r}){const i=Math.floor(t),s=e[Math.min(e.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=pl(l);if(!c)return;const u=t>=e.length?a.height:r?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function pl(e,t=new Map){if(!e)return;const{offsetTop:n,offsetParent:o}=e;if(o&&n&&t.set(o,Math.max(t.get(o)??0,n)),!(e.scrollHeight-e.clientHeight>=10&&(e===document.documentElement||window.getComputedStyle(e).overflow!=="visible")))return pl(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function mp(e){var S,w,b,A;const t=X((S=e.raw.value)==null?void 0:S.isWebtoon),n=X((w=e.raw.value)==null?void 0:w.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=((A=(b=e.raw.value)==null?void 0:b.imgs)==null?void 0:A.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?gp(i):void 0,l=i.map(P=>new Gt(P)),a;const c=new ap({isIOS:r,onDownloaded(P,K){let y=l.indexOf(P);if(y===-1){const D=P.computedSrc;y=l.findIndex(k=>k.computedSrc===D)}if(y!==-1){if(K&&!t.value&&y>Math.min(1,l.length-3)&&y<Math.max(l.length-2,3)){const D=K.height/K.width,k=D>2||D<.5,m=D>1.6||D<.6;t.value!==k&&(t.value=k),n.value!==m&&(n.value=m)}f()}}}),u=new up({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:P=>{const K=P.computedSrc;return!!(K&&c.reactiveResults[K])},callback:P=>c.download(P)});if(i.length)u.run();else{let P=!1;a=new fp({spec:e.spec,async onChanged(K){var y;if(l=K,!e.raw.value&&!K.length){e.onError("no_img");return}(y=e.spec)!=null&&y.imgDivs&&!P&&e.isAutoShow!==!1&&e.page.value&&(P=!0,mo({rawImages:K,page:e.page.value,skipIfVisible:!0}),await cn(1)),s===void 0&&e.isAutoShow===!1&&(s=fl(K)),u.run()}})}Yo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&mo({rawImages:l,page:e.page.value})});function f(){var k,m,x,v;if(o||t.value===void 0||s===void 0)return;const P=Math.max(0,Math.min(s,l.length)),K=l.length-1,y=Math.min(Math.floor(P),K);if(y>=1){const T=(k=l[y])==null?void 0:k.computedSrc;if(!T){e.isAutoShow&&mo({rawImages:l,page:y});return}const L=(m=l[y-1])==null?void 0:m.computedSrc;if(L&&!((x=c.reactiveResults[L])!=null&&x.size)||!((v=c.reactiveResults[T])!=null&&v.size))return}if(o)return;o=!0,e.onReady(P);let D=!0;pe(()=>Math.floor(e.page.value),(T,L)=>{mo({rawImages:l,page:T,smooth:r,isScrollDown:L===void 0||T>L||l.length===1,skipIfVisible:D&&l.length>1}),D=!1,L??(L=-1),u.run()},{immediate:!0})}return{asyncImgs:re(()=>{Object.values(c.reactiveResults);const P=[];return l.forEach(K=>{const y=K.computedSrc,D=y?c.reactiveResults[y]:void 0;(y&&!(D!=null&&D.invalid)||K.parentEl)&&P.push(D)}),P}),isWebtoon:re(()=>t.value??!1),maybeWebtoon:re(()=>n.value??!1)}}function vp(e,t,n){return re(()=>t.value?hl(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function hl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),r=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),i=r||t?[o[0]]:o;return[i.map((s,l)=>({img:s,index:n+l})),...hl(e.slice(i.length),t&&!r,n+i.length)]}function _p(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=X(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return re({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function bp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Ir=40;function yp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:f,onFinished:h}){let S=!1,w=!1,b=!1,A;const P=Be(T,300),K=Hs(()=>{T(),P()},300),y=Be(m,50);async function D(){x(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function k(){var $;w=!0,f(),L(),($=l.value)==null||$.addEventListener("scroll",K),setTimeout(()=>{const{width:F,height:ae}=zf();pe(F,()=>{r.value&&y()}),pe(ae,()=>{r.value||y()}),pe(n,m),pe(t,m)},300)}async function m(){if(!w||S)return;S=!0,await vt();const $=e.value;if(N()===$){S=!1;return}x($)}function x($,{smooth:F,ensureLastImgVisibility:ae=!1}={smooth:!1}){const fe=l.value;if(!fe)return;S=!0;const ke=async()=>{await vt(),S=!1,w||k()},_e=Math.floor($),Me=fe.querySelector(`[data-index="${_e}"],[data-index2="${_e}"]`);if(!Me){ke();return}c(async()=>{await v(fe,!o.value&&F,async()=>{await H(fe,Me,{smooth:F,page:$,ensureLastImgVisibility:ae})}),await ke()})}async function v($,F,ae){F&&$.style.setProperty("scroll-snap-type","none"),await ae(),F&&$.style.removeProperty("scroll-snap-type")}function T(){if(S)return;const $=N();$!==void 0&&$!==e.value&&u($),L()}function L(){b||!b&&G()&&(b=!0,h())}function G(){const $=l.value;if(!$)return!1;const F=o.value?a.value?3:!r.value&&$.clientWidth>$.clientHeight?2.25:2.5:2;return r.value?$.scrollHeight-$.scrollTop<$.clientHeight*F:$.scrollWidth-(i.value?-$.scrollLeft:$.scrollLeft)<$.clientWidth*F}function N(){const $=ie();return $?(+$.getAttribute("data-index")||0)+(o.value?le($):0):void 0}function ie(){var F;if(A??(A=l.value.getRootNode()),!A)return;const $=(F=A.elementsFromPoint)==null?void 0:F.call(A,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-Ir:Ir,r.value&&o.value?s.value||Ir:window.innerHeight/2);if($)for(let ae=0;ae<$.length;ae++){const fe=$[ae];if(fe.hasAttribute("data-index"))return fe;if(fe===l.value)break}}function le($){const F=$.getBoundingClientRect();return r.value?Math.abs(F.top-s.value)/F.height:i.value?Math.max(0,F.right-l.value.clientWidth)/F.width:Math.abs(F.left)/F.width}let O=!1;async function H($,F,ae){if(O)return;const fe=F.getBoundingClientRect();if(!o.value){if(r.value){if(fe.top<=0&&fe.bottom>=$.clientHeight)return}else if(fe.left<=0&&fe.right>=$.clientWidth)return}O=!0;const ke=r.value?$.scrollTop:$.scrollLeft,_e=ae.page,Me=o.value?_e%1:0,rt=await $n(30,10,async()=>{await cn();let Ve;if(!(F.offsetHeight<10))return o.value?r.value?Ve=F.offsetTop+Me*F.offsetHeight-s.value:i.value?Ve=F.offsetLeft-$.clientWidth+F.offsetWidth-Me*F.offsetWidth:Ve=F.offsetLeft+Me*F.offsetWidth:r.value?Ve=F.offsetTop+(fe.top>0?0:fe.height-$.clientHeight):Ve=F.offsetLeft+(fe.left>0?0:fe.width-$.clientWidth),_e>.5&&Math.abs(Ve)<100?void 0:Ve})??0,pt=ae.ensureLastImgVisibility?r.value?Math.min(rt,$.scrollHeight-$.clientHeight*2):i.value?Math.max(rt,-($.scrollWidth-$.clientWidth*2)):Math.min(rt,$.scrollWidth-$.clientWidth*2):rt;if(!ae.smooth){r.value?$.scrollTop=pt:$.scrollLeft=pt,O=!1;return}const Ye=pt-ke,Xe=30;let it=0;return new Promise(Ve=>{(function ht(){const Rt=wp(it,ke,Ye,Xe);r.value?$.scrollTop=Rt:$.scrollLeft=Rt,it++,it<=Xe?requestAnimationFrame(ht):(Ve(),O=!1)})()})}return{init:D,goToPage:x}}function wp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function xp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=X(typeof l=="string"?l==="true":e),c=re({get:()=>a.value,set:v=>{a.value=v,sessionStorage.setItem("tk:playing",v?"true":"false")}}),u=X(!1);let f,h;const S=Be(m,100),w=Be(()=>{u.value=!0},t?2e3:1e3),b=()=>setTimeout(()=>{u.value=!1,w()},30);b(),t||jt(window,"mousemove",b);const A=Ys();tt(()=>{pe(A,v=>{c.value&&(v==="visible"?m():h==null||h())}),pe(s,()=>P()),pe(i,v=>{v||y()})}),Tt(y);async function P(v){c.value&&(h==null||h()),v&&(await vt(),await v()),c.value&&S()}function K(){c.value?y():D()}function y(){c.value&&(c.value=!1,h==null||h(),b())}function D(){!c.value&&i.value&&(c.value=!0,m(),b())}function k(){h==null||h()}function m(){const v=n.value;if(!c.value||!v)return;const T=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,L=x();if(T<=L){y();return}h=()=>{f=Date.now(),h=void 0};const G=Date.now();f=G;const N=.05*s.value,ie=o.value?"scrollTop":"scrollLeft";let le=Date.now(),O=0;const H=()=>{if(f!==G)return;const $=Date.now(),F=$-le;le=$;const ae=N*F+O;ae>=1?(O=ae%1,v[ie]+=(ae-O)*(r.value?-1:1)):O=ae,setTimeout(H,1)};H()}function x(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:c,isIdle:u,toggle:K,play:D,pause:k,resume:m,stop:y,interfere:P,awake:b}}function Sp(e,t){var D,k,m;const{vol:n,inferVol:o,chap:r,title:i,slug:s,basePath:l}=e;let a=-1;const c=t&&!t.url?document.querySelectorAll(t.sel):void 0;function u(x,v){x.slug?Cr(l,x.slug,v):x.elIndex!==void 0&&c&&c[x.elIndex]&&cl(c[x.elIndex])}function f(x){const v=y[x];return v?T=>u(v,T):void 0}const h=(D=e.prev)==null?void 0:D.slug,S=(k=e.next)==null?void 0:k.slug;let w=h?x=>Cr(l,h,x):void 0,b=S?x=>Cr(l,S,x):void 0;const A=n??o,P=t==null?void 0:t.url,K=((m=i.chapters)==null?void 0:m.filter(x=>x.slug||!P&&x.elIndex!==void 0))??[],y=K.length>1?K:[];if(y.length){if(P&&(a=y.findIndex(x=>x.slug===e.slug)),a===-1&&(a=y.findIndex(x=>(x.vol??x.inferVol)===A&&x.chap===r)),P&&a===-1&&(a=y.findIndex(x=>x.slug&&s.startsWith(`${x.slug}-`)&&s.length-x.slug.length>3)),a!==-1)w??(w=f(a+1)),b??(b=f(a-1));else if(!h&&!S){const x=y.findIndex(v=>{const T=v.vol??v.inferVol;return A===void 0||T===void 0||A===T?v.chap<r:T<A});x!==-1?(w=f(x),b=f(x-1)):b=f(y.length-1)}}return{activeIndex:a,activeLabel:gl({vol:n,chap:r}),prev:w,next:b,chapters:y.map(x=>({label:gl(x),select:v=>u(x,v)}))}}function gl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Cr(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),r=o.includes("//")?o:location.origin+o;n?window.open(r,"_blank","noopener"):location.href=r}const kp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},ml=he(Se({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=X(!1),a=X(!1),c=Au({touchDevice:n.touchDevice}),u=_p(n.page,n.isAutoShow),f=re(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:S,maybeWebtoon:w}=mp({raw:re(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(g){Me(g),l.value=!0},onError:()=>{o("error"),j()}}),{direction:b,style:A,isRTL:P,isDouble:K,isVertical:y,isLongStrip:D,gap:k,speed:m,zoom:x,breakFirst:v}=wd({titleName:re(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:S,maybeWebtoon:w,defaultStyle:n.readerStyle,defaultDirection:n.direction}),T=vp(h,K,v),L=re(()=>u.value>=h.value.length),G=re(()=>{var g;return n.raw?Sp(n.raw,(g=n.spec)==null?void 0:g.chapter):void 0}),N=X(null),ie=X(null),le=X(!1),O=X(!1),H=xp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:re(()=>{var g;return(g=N.value)==null?void 0:g.$el}),speed:m,isRTL:P,isVertical:y,isLongStrip:D}),$=re(()=>!n.touchDevice&&H.isIdle.value&&!c.value),F=re({get(){return x.value},set(g){H.interfere(()=>{x.value=g})}}),ae=yp({page:u,style:A,direction:b,isLongStrip:D,isVertical:y,isRTL:P,spaceTop:f,isWebtoon:S,scrollEl:re(()=>{var g;return(g=N.value)==null?void 0:g.$el}),interferePlayer:g=>H.interfere(g),onChangedPage:Me,onInitialized(){o("ready"),a.value=!0,i=rt()},onFinished:()=>o("finished")}),fe=re(()=>Math.floor(u.value)),ke=()=>H.interfere(()=>cn(100));Wu().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const C=D.value&&y.value,U=D.value&&!y.value,oe=!D.value&&y.value,de=!D.value&&!y.value;switch(g.key){case" ":g.preventDefault(),D.value?(J(!1),H.toggle()):I();break;case"ArrowUp":case"PageUp":C?ke():oe&&fe.value!==0&&(g.preventDefault(),_());break;case"ArrowDown":case"PageDown":C?ke():oe&&!L.value&&(g.preventDefault(),I());break;case"ArrowLeft":U?ke():de?(g.preventDefault(),d()):y.value&&it();break;case"ArrowRight":U?ke():de?(g.preventDefault(),p()):y.value&&Xe();break}},onKeyUp:g=>{switch(g.key){case"f":V();break;case"t":z();break;case"h":J();break}}}),jt("fullscreenchange",()=>{le.value=!!document.fullscreenElement}),pe(H.isPlaying,g=>{g||B(!1),o("playingChanged",g)}),pe(H.isIdle,g=>{H.isPlaying.value&&B(g)}),pe(c,g=>{!g&&H.isIdle.value?H.awake():g&&n.fullScreen&&B()});function Me(g){if(u.value===g)return;const C=h.value.length;if(g<0||g>=C+1)return;const U=u.value;u.value=g;const oe=Math.floor(g*100)/100;oe!==s&&(s=oe,o("pageChanged",oe)),g>=C?(B(!1),H.stop()):g<.01&&U>g?(B(!1),H.awake()):r||(D.value?i!==void 0&&rt()-i>300&&B(!0):Math.abs(U-g)===1&&B(!0))}function rt(){var C;const g=(C=N.value)==null?void 0:C.$el;return g?y.value?g.scrollTop:P.value?-g.scrollLeft:g.scrollLeft:0}function pt(){!n.touchDevice&&!D.value&&ae.goToPage(fe.value,{smooth:!0})}function Ye(){if(H.isPlaying.value){!n.fullScreen||!n.touchDevice?H.stop():H.awake();return}B()}function Xe(g=!1){var C,U;(U=(C=G.value)==null?void 0:C.next)==null||U.call(C,g)}function it(g=!1){var C,U;(U=(C=G.value)==null?void 0:C.prev)==null||U.call(C,g)}function Ve(g,C){var U,oe,de;(de=(oe=(U=G.value)==null?void 0:U.chapters)==null?void 0:oe[g])==null||de.select(yt(C))}function ht(g){P.value?Xe(yt(g)):it(yt(g))}function Rt(g){P.value?it(yt(g)):Xe(yt(g))}function yt(g){return!n.touchDevice&&(g.ctrlKey||g.metaKey)}function d(){P.value?I():_()}function p(){P.value?_():I()}function _(){var U;const g=T.value,C=L.value?g[g.length-1][0].index:(U=g[E()-1])==null?void 0:U[0].index;C!==void 0?ae.goToPage(C):it()}function I(){var g,C;if(L.value)Xe();else{const U=((C=(g=T.value[E()+1])==null?void 0:g[0])==null?void 0:C.index)??h.value.length;ae.goToPage(U)}}function E(){const g=fe.value,C=T.value.findIndex(U=>U.some(({index:oe})=>oe===g));return C===-1?T.value.length-1:C}function j(){bp(),o("dispose")}async function B(g){if(c.value&&!n.fullScreen)return;const C=typeof g=="boolean"?g:!n.fullScreen;C!==n.fullScreen&&(r=!0,o("fullScreenChanged",C),C&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function z(){n.entryId?W():M()}function V(){var g,C;document.fullscreenElement?document.exitFullscreen():(C=(g=ie.value)==null?void 0:g.$el)==null||C.requestFullscreen()}function M(){H.stop(),o("addEntry")}function W(){H.stop(),o("openEntry",n.entryId)}function J(g){O.value!==g&&(O.value=!O.value,O.value&&H.isPlaying.value&&H.stop())}return(g,C)=>{const U=ll,oe=sl,de=ol,Ie=tl,Ze=el,Dt=Js,vo=Vs,Ne=uo,_o=Bs,ze=br,st=Ds,bo=Rs,Rp=js,Dp=As,Bp=Ls,Vp=Os,Np=Ms,Fp=Ps,Hp=vr,Wp=mr,Kp=xs,qp=ws,Up=ys,Yp=_s;return g.immediate||l.value?(R(),me(Yp,{key:0,ref_key:"root",ref:ie,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:$.value,"space-top":f.value,rtl:Z(P),onClick:C[11]||(C[11]=ot(()=>{},["stop"]))},ki({settings:ne(()=>{var Qt;return[Q(Fp,{"reader-style":Z(A),"onUpdate:readerStyle":C[3]||(C[3]=Fe=>Te(A)?A.value=Fe:null),direction:Z(b),"onUpdate:direction":C[4]||(C[4]=Fe=>Te(b)?b.value=Fe:null),gap:Z(k),"onUpdate:gap":C[5]||(C[5]=Fe=>Te(k)?k.value=Fe:null),speed:Z(m),"onUpdate:speed":C[6]||(C[6]=Fe=>Te(m)?m.value=Fe:null),zoom:F.value,"onUpdate:zoom":C[7]||(C[7]=Fe=>F.value=Fe),name:(Qt=g.raw)==null?void 0:Qt.title.name,webtoon:Z(S),disabled:!l.value,onHelp:J},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ne(()=>[Q(sn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ne(()=>[Q(Up,{zoom:F.value,onClick:C[10]||(C[10]=ot(()=>F.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ne(()=>[Y("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Le({width:`${Z(u)/(Z(h).length-1)*100}%`})},null,4)]),default:ne(()=>{var Qt;return[l.value?(R(),me(oe,{key:0,ref_key:"body",ref:N,zoom:F.value,"onUpdate:zoom":C[0]||(C[0]=Fe=>F.value=Fe),"page-index":fe.value,pages:Z(T),"total-imgs":Z(h).length,direction:Z(b),gap:Z(k),"is-long-strip":Z(D),isRTL:Z(P),"is-vertical":Z(y),"space-top":f.value,busy:Z(c),idle:$.value,"play-controller":Z(H),"touch-device":g.touchDevice,"has-next":!!((Qt=G.value)!=null&&Qt.next),onVnodeMounted:Z(ae).init,onPrev:_,onNext:I,onClick:Ye,onDragEnd:pt,onWheelPassive:C[1]||(C[1]=()=>Z(H).interfere())},ki({_:2},[l.value&&Z(h).length?{name:"end",fn:ne(()=>{var Fe;return[Q(U,{"has-next":!!((Fe=G.value)!=null&&Fe.next),onNext:Xe,onHide:j},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","has-next","onVnodeMounted"])):$e("",!0),a.value&&!L.value&&!g.tourEnabled?(R(),me(de,{key:1,direction:Z(b)},null,8,["direction"])):$e("",!0),a.value&&!L.value?(R(),me(Ie,{key:2,playing:!!Z(H).isPlaying.value},null,8,["playing"])):$e("",!0),O.value?(R(),me(Ze,{key:3,"touch-device":g.touchDevice,onHide:J},null,8,["touch-device"])):$e("",!0),g.tourEnabled?(R(),me(Dt,{key:4,onHide:C[2]||(C[2]=()=>o("tourEnabledChanged",!1))})):$e("",!0)]}),_:2},[g.raw?{name:"back",fn:ne(()=>[Q(Ne,{href:g.raw.title.url,title:"Back to manga"},{default:ne(()=>[Q(vo)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:ne(()=>[Q(Ne,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:j},{default:ne(()=>[Q(_o)]),_:1})]),key:"1"},G.value?{name:"chapter-nav",fn:ne(()=>[Q(ze,{modelValue:G.value.activeIndex,label:G.value.activeLabel,title:"Select chapter",items:G.value.chapters,onSelect:Ve},{item:ne(({item:Qt})=>[Pt(Qe(Qt.label),1)]),_:1},8,["modelValue","label","items"]),G.value.next||G.value.prev?(R(),q("div",kp,[Q(Ne,{title:`${Z(P)?"Next":"Prev"} chapter (←)`,disabled:Z(P)?!G.value.next:!G.value.prev,class:"!rounded-r-none",onClick:ht},{default:ne(()=>[Q(st)]),_:1},8,["title","disabled"]),Q(Ne,{title:`${Z(P)?"Prev":"Next"} chapter (→)`,disabled:Z(P)?!G.value.prev:!G.value.next,class:"!rounded-l-none",onClick:Rt},{default:ne(()=>[Q(bo)]),_:1},8,["title","disabled"])])):$e("",!0)]),key:"2"}:void 0,Z(T).length?{name:"page-nav",fn:ne(()=>[Q(Rp,{"model-value":fe.value,disabled:!a.value,pages:Z(T),"total-imgs":Z(h).length,"onUpdate:modelValue":Z(ae).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:ne(()=>[Q(Ne,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:z},{default:ne(()=>[g.entryId?(R(),me(Dp,{key:0})):(R(),me(Bp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:ne(()=>[Q(Ne,{title:`${le.value?"Exit":"Enter"} fullscreen (F)`,onClick:V},{default:ne(()=>[le.value?(R(),me(Vp,{key:0})):(R(),me(Np,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(D)?{name:"play",fn:ne(()=>[Q(Ne,{"data-tour":"Press here to play like a video",title:`${Z(H).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:C[8]||(C[8]=()=>Z(H).toggle())},{default:ne(()=>[Z(H).isPlaying.value?(R(),me(Hp,{key:0})):(R(),me(Wp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Z(K)?{name:"break-first",fn:ne(()=>[Q(Ne,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:C[9]||(C[9]=()=>v.value=!Z(v))},{default:ne(()=>[Z(v)?(R(),me(Kp,{key:0})):(R(),me(qp,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):$e("",!0)}}}),[["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}}.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}.\\!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{border-radius:4px}.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-left{text-align:left}.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}.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}}
28
- `]]]),Ip=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),Cp={},Tp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ep=[Y("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function $p(e,t){return R(),q("svg",Tp,Ep)}const Pp=Object.freeze(Object.defineProperty({__proto__:null,default:he(Cp,[["render",$p]])},Symbol.toStringTag,{value:"Module"})),Mp=[];function Op(){Mp.forEach(e=>e())}const Lp=`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>: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}
29
- `,Pn="gear-second",Tr={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,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},Ue={promise:void 0,data:un({...Tr})};async function Ap(e){return Ue.promise?(Ue.data.raw=e.raw,await Ue.promise):(Ue.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(Pn),Object.assign(Ue.data,Tr),Ue.promise=void 0)};Object.assign(Ue.data,Tr,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;Ue.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Ue.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Ue.data.tourEnabled=c}}),zp().then(()=>{if(n){a();return}r=document.createElement(Pn),document.documentElement.classList.add(Pn),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)=>Uf(c,u),triggerTouchStart:()=>Op(),updateArgs(c){Object.assign(Ue.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Ue.promise)}async function zp(){if(window.customElements.get(Pn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Lp)),document.head.appendChild(e);const t=Dc({styles:[await jp()],data:()=>({readerData:Ue.data}),render(){return Qi(ml,this.readerData)}});window.customElements.define(Pn,t)}async function jp(){const e=Object.assign({"./App.vue":Ip,"./components/AutoNext.vue":ip,"./components/BottomSheet.vue":Yu,"./components/ButtonDropdown.vue":Jd,"./components/ButtonIcon.vue":Ru,"./components/ButtonReaderSettings.vue":Sd,"./components/ButtonResetZoom.vue":pu,"./components/DirectionToast.vue":Kf,"./components/HelpScreen.vue":Df,"./components/InputPercentage.vue":Gu,"./components/InputSelect.vue":nd,"./components/IntersectionWrapper.vue":Xf,"./components/LoadingIndicator.vue":Gc,"./components/PageNav.vue":ef,"./components/PauseToast.vue":Bf,"./components/ReaderBody.vue":tp,"./components/ReaderLayout.vue":ru,"./components/ReaderTour.vue":jf,"./components/TableField.vue":ed,"./components/ZoomWrapper.vue":Yf,"./components/icons/IconBack.vue":wf,"./components/icons/IconBookmarkNew.vue":Dd,"./components/icons/IconBookmarked.vue":Hd,"./components/icons/IconChevronLeft.vue":df,"./components/icons/IconChevronRight.vue":sf,"./components/icons/IconClose.vue":Fu,"./components/icons/IconDouble.vue":_u,"./components/icons/IconDoubleSkip.vue":Su,"./components/icons/IconExclamationCircle.vue":Pp,"./components/icons/IconFullscreen.vue":Ed,"./components/icons/IconFullscreenExit.vue":Ld,"./components/icons/IconHelp.vue":ld,"./components/icons/IconNext.vue":Wf,"./components/icons/IconPause.vue":Lu,"./components/icons/IconPlay.vue":Eu,"./components/icons/IconReaderExit.vue":mf,"./components/icons/IconSettings.vue":fd,"./components/icons/IconTriangle.vue":Yd,"./components/icons/IconZoom.vue":cu}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Ap});
20
+ **/const fc="http://www.w3.org/2000/svg",pc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,Zi=Et&&Et.createElement("template"),hc={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==="svg"?Et.createElementNS(fc,e):t==="mathml"?Et.createElementNS(pc,e):Et.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.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{Zi.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Zi.content;if(o==="svg"||o==="mathml"){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]}},$t="transition",xn="animation",Sn=Symbol("_vtc"),tn=(e,{slots:t})=>Xi(xa,gc(e),t);tn.displayName="Transition";const Gi={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=_e({},mi,Gi);const Wt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Qi=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function gc(e){const t={};for(const V in e)V in Gi||(t[V]=e[V]);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:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,y=mc(r),_=y&&y[0],$=y&&y[1],{onBeforeEnter:z,onEnter:q,onEnterCancelled:k,onLeave:N,onLeaveCancelled:S,onBeforeAppear:m=z,onAppear:w=q,onAppearCancelled:v=k}=t,C=(V,oe,P)=>{Kt(V,oe?u:l),Kt(V,oe?c:s),P&&P()},L=(V,oe)=>{V._isLeaving=!1,Kt(V,f),Kt(V,x),Kt(V,h),oe&&oe()},te=V=>(oe,P)=>{const ne=V?w:q,K=()=>C(oe,V,P);Wt(ne,[oe,K]),Ji(()=>{Kt(oe,V?a:i),Pt(oe,V?u:l),Qi(ne)||es(oe,o,_,K)})};return _e(t,{onBeforeEnter(V){Wt(z,[V]),Pt(V,i),Pt(V,s)},onBeforeAppear(V){Wt(m,[V]),Pt(V,a),Pt(V,c)},onEnter:te(!1),onAppear:te(!0),onLeave(V,oe){V._isLeaving=!0;const P=()=>L(V,oe);Pt(V,f),yc(),Pt(V,h),Ji(()=>{V._isLeaving&&(Kt(V,f),Pt(V,x),Qi(N)||es(V,o,$,P))}),Wt(N,[V,P])},onEnterCancelled(V){C(V,!1),Wt(k,[V])},onAppearCancelled(V){C(V,!0),Wt(v,[V])},onLeaveCancelled(V){L(V),Wt(S,[V])}})}function mc(e){if(e==null)return null;if(ge(e))return[rr(e.enter),rr(e.leave)];{const t=rr(e);return[t,t]}}function rr(e){return wo(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Sn]||(e[Sn]=new Set)).add(t)}function Kt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Sn];n&&(n.delete(t),n.size||(e[Sn]=void 0))}function Ji(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let vc=0;function es(e,t,n,o){const r=e._endId=++vc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=bc(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,h),i()},h=x=>{x.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,h)}function bc(e,t){const n=window.getComputedStyle(e),o=y=>(n[y]||"").split(", "),r=o(`${$t}Delay`),i=o(`${$t}Duration`),s=ts(r,i),l=o(`${xn}Delay`),a=o(`${xn}Duration`),c=ts(l,a);let u=null,f=0,h=0;t===$t?s>0&&(u=$t,f=s,h=i.length):t===xn?c>0&&(u=xn,f=c,h=a.length):(f=Math.max(s,c),u=f>0?s>c?$t:xn:null,h=u?u===$t?i.length:a.length:0);const x=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:x}}function ts(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ns(n)+ns(e[o])))}function ns(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function yc(){return document.body.offsetHeight}function _c(e,t,n){const o=e[Sn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ir=Symbol("_vod"),os={beforeMount(e,{value:t},{transition:n}){e[ir]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kn(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),kn(e,!0),o.enter(e)):o.leave(e,()=>{kn(e,!1)}):kn(e,t))},beforeUnmount(e,{value:t}){kn(e,t)}};function kn(e,t){e.style.display=t?e[ir]:"none"}const wc=Symbol("");function xc(e,t,n){const o=e.style,r=o.display,i=we(n);if(n&&!i){if(t&&!we(t))for(const s in t)n[s]==null&&sr(o,s,"");for(const s in n)sr(o,s,n[s])}else if(i){if(t!==n){const s=o[wc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ir in e&&(o.display=r)}const rs=/\s*!important$/;function sr(e,t,n){if(ee(n))n.forEach(o=>sr(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Sc(e,t);rs.test(n)?e.setProperty(Fe(o),n.replace(rs,""),"important"):e[o]=n}}const is=["Webkit","Moz","ms"],lr={};function Sc(e,t){const n=lr[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return lr[t]=o;o=zn(o);for(let r=0;r<is.length;r++){const i=is[r]+o;if(i in e)return lr[t]=i}return t}const ss="http://www.w3.org/1999/xlink";function kc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ss,t.slice(6,t.length)):e.setAttributeNS(ss,t,n);else{const i=Sl(t);n==null||i&&!Pr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Ic(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=Pr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function nn(e,t,n,o){e.addEventListener(t,n,o)}function Cc(e,t,n,o){e.removeEventListener(t,n,o)}const ls=Symbol("_vei");function Tc(e,t,n,o,r=null){const i=e[ls]||(e[ls]={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=Ec(t);if(o){const c=i[t]=Mc(o,r);nn(e,l,c,a)}else s&&(Cc(e,l,s,a),i[t]=void 0)}}const as=/(?:Once|Passive|Capture)$/;function Ec(e){let t;if(as.test(e)){t={};let o;for(;o=e.match(as);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Fe(e.slice(2)),t]}let ar=0;const $c=Promise.resolve(),Pc=()=>ar||($c.then(()=>ar=0),ar=Date.now());function Mc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(Oc(o,n.value),t,5,[o])};return n.value=e,n.attached=Pc(),n}function Oc(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lc=(e,t,n,o,r,i,s,l,a)=>{const c=r==="svg";t==="class"?_c(e,o,c):t==="style"?xc(e,n,o):Mn(t)?mo(t)||Tc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ac(e,t,o,c))?Ic(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),kc(e,t,o,c))};function Ac(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&cs(t)&&re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return cs(t)&&we(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function zc(e,t){const n=ke(e);class o extends cr{constructor(i){super(n,i,t)}}return o.def=n,o}const jc=typeof HTMLElement<"u"?HTMLElement:class{};class cr extends jc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=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,this._ob&&(this._ob.disconnect(),this._ob=null),gt(()=>{this._connected||(hs(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);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!ee(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=wo(this._props[a])),(l||(l=Object.create(null)))[je(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=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(je))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=wo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Fe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Fe(t),n+""):n||this.removeAttribute(Fe(t))))}_update(){hs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=G(this._def,_e({},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),Fe(i)!==i&&o(Fe(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof cr){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 us=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>jn(t,n):t};function Rc(e){e.target.composing=!0}function ds(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign"),Dc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[ur]=us(r);const i=o||r.props&&r.props.type==="number";nn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=_o(l)),e[ur](l)}),n&&nn(e,"change",()=>{e.value=e.value.trim()}),t||(nn(e,"compositionstart",Rc),nn(e,"compositionend",ds),nn(e,"change",ds))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[ur]=us(i),e.composing)return;const s=r||e.type==="number"?_o(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Bc=["ctrl","shift","alt","meta"],Nc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Bc.some(n=>e[`${n}Key`]&&!t.includes(n))},et=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s<t.length;s++){const l=Nc[t[s]];if(l&&l(r,t))return}return e(r,...i)})},Vc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fs=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=Fe(r.key);if(t.some(s=>s===i||Vc[s]===i))return e(r)})},Fc=_e({patchProp:Lc},hc);let ps;function Hc(){return ps||(ps=Ua(Fc))}const hs=(...e)=>{Hc().render(...e)};var gs;const dr=typeof window<"u",Wc=e=>typeof e=="string",Mt=()=>{};dr&&((gs=window==null?void 0:window.navigator)!=null&&gs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uo(e){return typeof e=="function"?e():Z(e)}function ms(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 Kc(e,t={}){let n,o,r=Mt;const i=l=>{clearTimeout(l),r(),r=Mt};return l=>{const a=uo(e),c=uo(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,f)=>{r=t.rejectOnCancel?f:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function qc(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Mt,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Mt)};return f=>{const h=uo(e),x=Date.now()-r,y=()=>a=f();if(c(),h<=0)return r=Date.now(),y();if(x>h&&(n||!s))r=Date.now(),y();else if(t)return new Promise((_,$)=>{l=o?$:_,i=setTimeout(()=>{r=Date.now(),s=!0,_(y()),c()},h-x)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function Uc(e){return e}function fr(e){return Or()?(Cl(e),!0):!1}function Ae(e,t=200,n={}){return ms(Kc(t,n),e)}function vs(e,t=200,n=!1,o=!0,r=!1){return ms(qc(t,n,o,r),e)}function bs(e,t=!0){nr()?Qe(e):t?e():gt(e)}function qt(e){var t;const n=uo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const In=dr?window:void 0,Yc=dr?window.document:void 0;function Ot(...e){let t,n,o,r;if(Wc(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=In):[t,n,o,r]=e,!t)return Mt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h)=>(u.addEventListener(f,h,r),()=>u.removeEventListener(f,h,r)),a=pe(()=>qt(t),u=>{s(),u&&i.push(...n.flatMap(f=>o.map(h=>l(u,f,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return fr(c),c}function ys(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),bs(o,t),n}const _s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ws="__vueuse_ssr_handlers__";_s[ws]=_s[ws]||{};function xs({document:e=Yc}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ss=Object.getOwnPropertySymbols,Xc=Object.prototype.hasOwnProperty,Zc=Object.prototype.propertyIsEnumerable,Gc=(e,t)=>{var n={};for(var o in e)Xc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ss)for(var o of Ss(e))t.indexOf(o)<0&&Zc.call(e,o)&&(n[o]=e[o]);return n};function Qc(e,t,n={}){const o=n,{window:r=In}=o,i=Gc(o,["window"]);let s;const l=ys(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>qt(e),f=>{a(),l.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}function pr(e,t={width:0,height:0},n={}){const{window:o=In,box:r="content-box"}=n,i=se(()=>{var a,c;return(c=(a=qt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return Qc(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=qt(e);if(u){const f=o.getComputedStyle(u);s.value=parseFloat(f.width),l.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((f,{inlineSize:h})=>f+h,0),l.value=u.reduce((f,{blockSize:h})=>f+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>qt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function hr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=In}=n,l=ys(()=>s&&"IntersectionObserver"in s);let a=Mt;const c=l.value?pe(()=>({el:qt(e),root:qt(o)}),({el:f,root:h})=>{if(a(),!f)return;const x=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});x.observe(f),a=()=>{x.disconnect(),a=Mt}},{immediate:!0,flush:"post"}):Mt,u=()=>{a(),c()};return fr(u),{isSupported:l,stop:u}}var ks;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ks||(ks={}));var Jc=Object.defineProperty,Is=Object.getOwnPropertySymbols,eu=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,Cs=(e,t,n)=>t in e?Jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nu=(e,t)=>{for(var n in t||(t={}))eu.call(t,n)&&Cs(e,n,t[n]);if(Is)for(var n of Is(t))tu.call(t,n)&&Cs(e,n,t[n]);return e};nu({linear:Uc},{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 ou(e={}){const{window:t=In,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=X(n),l=X(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(),bs(a),Ot("resize",a,{passive:!0}),r&&Ot("orientationchange",a,{passive:!0}),{width:s,height:l}}const ru=(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=>ru(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},iu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},su={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},lu={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},au=ke({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=t,o=X(null),r=X(null),i=X(!1),s=X(!1),l=X(3);return Qe(()=>{let a;hr(r,c=>{s.value=c.some(u=>u.isIntersecting),l.value=5,a&&(clearInterval(a),a=void 0),s.value&&(a=setInterval(()=>{l.value-=1,l.value<=0&&(clearInterval(a),a=void 0,n("next"))},1e3))}),hr(o,c=>{i.value=c.some(u=>u.isIntersecting)}),Nt(()=>a&&clearInterval(a))}),(a,c)=>(R(),U("div",{ref_key:"root",ref:o,class:"h-full w-full flex justify-center items-center"},[mt(Y("div",iu,[a.hasNext?(R(),U("div",su,[s.value?(R(),U("div",lu)):Ee("",!0),mt((R(),U("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[0]||(c[0]=et(()=>n("next"),["stop"]))},[Ct(" Next in "+Xe(l.value),1)])),[[Z(on)]])])):Ee("",!0),mt((R(),U("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:c[1]||(c[1]=et(()=>n("hide"),["stop"]))},[Ct(" Hide ")])),[[Z(on)]])],512),[[os,i.value||!a.hasNext]])],512))}}),cu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
21
+ `,he=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ts=he(au,[["styles",[cu]]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"})),du={},fu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pu=[Y("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function hu(e,t){return R(),U("svg",fu,pu)}const Es=he(du,[["render",hu]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));function mu({touchDevice:e}){const t=X(!1);let n=0;return to("busy:touchDevice",e),to("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function gr(){const e=Vt("busy:touchDevice"),t=Vt("setBusyState");let n=!1;return Nt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}class vu{constructor(){ve(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 bu(){const e=new vu;return Nt(()=>e.dispose()),to("keyController",e),e}function fo(e){const t=Vt("keyController");Qe(()=>t.addListener(e)),Nt(()=>t.removeListener(e))}const yu=["aria-hidden"],_u=["onClick"],wu={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"},xu={class:"whitespace-nowrap"},mr=ke({__name:"ButtonDropdown",props:en({label:{},title:{},items:{},disabled:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:en(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,r=wn(e,"modelValue"),i=X(null),s=X(!1),l=X(null),a=X(!1),c=X(!1),u=X(!1);fo({onKeyDown:_});const f=gr();function h(){if(!n.items.length){s.value=!1;return}s.value=!s.value,f(s.value),s.value?(x(),gt(()=>setTimeout(()=>{var m,w;(w=(m=l.value)==null?void 0:m.children[r.value])==null||w.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),z(i.value)):setTimeout(q,250)}function x(){const m=i.value;if(m){const w=m.getBoundingClientRect(),v=w.x+w.width/2;a.value=w.y>window.innerHeight/2,c.value=v<window.innerWidth/3,u.value=v>window.innerWidth/3*2}}function y(m,w){m!=r.value&&(r.value=m,o("select",m,w)),h()}function _(m){s.value&&m.key==="Escape"&&(h(),m.preventDefault())}let $=[];function z(m){const w=window.getComputedStyle(m).zIndex,v=m.style.zIndex;(!w||!(+w>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",$.push({el:m,zIndex:v})),m.parentElement&&z(m.parentElement))}function q(){$.forEach(({el:m,zIndex:w})=>{m.style.zIndex=w??""}),$=[]}let k=!1;function N(){k||(k=!0,f(!0,{desktopOnly:!0}))}function S(){k&&(k=!1,f(!1,{desktopOnly:!0}))}return(m,w)=>(R(),U("div",{ref_key:"root",ref:i,class:"select-none relative inline-flex"},[s.value?(R(),U("div",{key:0,class:"fixed-screen bg-transparent",onClick:h})):Ee("",!0),m.items.length?(R(),me(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:ie(()=>[s.value?(R(),U("ul",{key:0,ref_key:"list",ref:l,"aria-hidden":!s.value,class:Ie(["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":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:w[0]||(w[0]=et(()=>{},["stop"]))},[(R(!0),U(Se,null,gn(m.items,(v,C)=>mt((R(),U("li",{key:C,tabindex:"-1",class:Ie(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":C===r.value}]),onClick:L=>y(C,L)},[Y("div",{class:Ie(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":C>0}])},[xe(m.$slots,"item",{item:v},()=>[Ct(Xe(v),1)])],2)],10,_u)),[[Z(on),30]])),128))],42,yu)):Ee("",!0)]),_:3})):Ee("",!0),mt((R(),U("button",so({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":m.disabled}]},m.title?{title:m.title}:{},{onClick:et(h,["stop"]),onMouseenter:N,onMouseleave:S}),[Y("div",wu,[Y("span",xu,Xe(m.label),1),m.items.length?(R(),U("span",{key:0,class:Ie(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[G(Es)],2)):Ee("",!0)])],16)),[[Z(on),30]])],512))}}),Su=Object.freeze(Object.defineProperty({__proto__:null,default:mr},Symbol.toStringTag,{value:"Module"})),ku={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},tt=ke({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=gr();let i=!1;function s(){i||(i=!0,r(!0,{desktopOnly:!0}))}function l(){i&&(i=!1,r(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click",c)}return(c,u)=>mt((R(),me(pa(c.href?"a":"button"),so(c.href?{href:c.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":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:et(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:ie(()=>[Y("div",ku,[xe(c.$slots,"default")])]),_:3},16,["class"])),[[Z(on),c.disabled?0:15]])}}),Iu=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),Cu={},Tu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Eu=[Y("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function $u(e,t){return R(),U("svg",Tu,Eu)}const $s=he(Cu,[["render",$u]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),Mu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Ou={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},Lu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ps=ke({__name:"BottomSheet",props:en({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=wn(e,"modelValue");fo({onKeyDown:o});const n=gr();pe(t,r=>n(r));function o(r){t.value&&r.key==="Escape"&&(t.value=!1,r.preventDefault())}return(r,i)=>(R(),U("div",{class:Ie(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:i[3]||(i[3]=()=>t.value=!1)},[G(tn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[t.value?(R(),U("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=et(()=>{},["stop"])),onWheelPassive:i[2]||(i[2]=et(()=>{},["stop"]))},[Y("div",Mu,[G(tt,{transparent:"",onClick:i[0]||(i[0]=()=>t.value=!1)},{default:ie(()=>[G($s)]),_:1}),Y("div",Ou,Xe(r.name),1),xe(r.$slots,"actions")]),Y("div",Lu,[xe(r.$slots,"default")])],32)):Ee("",!0)]),_:3})],2))}}),Au=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),zu=["min","max","step"],ju={class:"flex-shrink-0"},vr=he(ke({__name:"InputPercentage",props:en({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=wn(e,"modelValue"),n=se({get(){return t.value},set(o){t.value=+o}});return(o,r)=>(R(),U("div",{class:Ie(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Oe({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[mt(Y("input",{"onUpdate:modelValue":r[0]||(r[0]=i=>n.value=i),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,zu),[[Dc,n.value]]),Y("p",ju,[xe(o.$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}
22
+ `]]]),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:vr},Symbol.toStringTag,{value:"Module"})),Du=["onClick","onKeyup"],po=ke({__name:"InputSelect",props:en({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=wn(e,"modelValue"),o=X(null),r=X({width:"",left:""});Qe(()=>{let s=!1;pe(n,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){n.value=s}return(s,l)=>(R(),U("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Y("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(r.value)},null,4),(R(!0),U(Se,null,gn(t.items,(a,c)=>mt((R(),U("div",{key:c,tabindex:"0",class:Ie(["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.value,"text-stone-400":c!=n.value}]),onClick:()=>i(c),onKeyup:[fs(()=>i(c),["enter"]),fs(()=>i(c),["space"])]},[Ct(Xe(a),1)],42,Du)),[[Z(on),30]])),128))],512))}}),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:po},Symbol.toStringTag,{value:"Module"})),Nu={class:"flex items-center mb-8 last:mb-0"},Vu={class:"flex-grow overflow-hidden"},rn=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(R(),U("div",Nu,[Y("div",{class:Ie(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),Y("div",Vu,[xe(t.$slots,"default")])]))}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:rn},Symbol.toStringTag,{value:"Module"})),Hu={},Wu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ku=[Y("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 qu(e,t){return R(),U("svg",Wu,Ku)}const Ms=he(Hu,[["render",qu]]),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),Yu={},Xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Zu=[Y("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Y("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Gu(e,t){return R(),U("svg",Xu,Zu)}const Os=he(Yu,[["render",Gu]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"}));function Ju(e){if(e)try{return JSON.parse(e)}catch{return}}function ed(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ut=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ut||{}),Lt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Lt||{});const td=.25,nd=5,od=.25,Cn=.25,Tn=5,rd=.05,id=0,sd=4;function ld(e){var k,N,S,m,w,v;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?ed(t.value):location.hostname),r=X(ad(`tkr:${o.value}`)),i=C=>{r.value=C;const L=`tkr:${o.value}`;!C||!Object.keys(C).length?localStorage.removeItem(L):localStorage.setItem(L,JSON.stringify(C))},s=C=>{if(!r.value){i(C);return}const L={...r.value};Object.entries(C).forEach(([te,V])=>{V===void 0?delete L[te]:L[te]=V}),i(L)},l=X(((k=r.value)==null?void 0:k.style)??e.defaultStyle??Lt.longStrip),a=X(((N=r.value)==null?void 0:N.direction)??e.defaultDirection??ut.vertical),c=X((S=r.value)==null?void 0:S.gap),u=X(((m=r.value)==null?void 0:m.speed)??1),f=X(((w=r.value)==null?void 0:w.zoom)??1),h=X(((v=r.value)==null?void 0:v.breakFirst)??!1),x=se({get(){return n.value?Lt.longStrip:l.value},set:C=>{l.value=C,s({style:C}),C!==Lt.longStrip&&a.value===ut.vertical&&(y.value=ut.rtl)}}),y=se({get:()=>n.value?ut.vertical:a.value,set:C=>{a.value=C,s({direction:C})}}),_=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||x.value!==Lt.longStrip?0:1,set(C){c.value=C,s({gap:C})}}),$=se({get:()=>u.value,set(C){u.value=C,s({speed:C===1?void 0:C})}}),z=se({get:()=>f.value,set(C){f.value=C,s({zoom:C===1?void 0:C})}}),q=se({get:()=>h.value,set(C){h.value=C,s({breakFirst:C?!0:void 0})}});return{direction:y,style:x,gap:_,speed:$,zoom:z,isLongStrip:se(()=>x.value===Lt.longStrip),isDouble:se(()=>x.value===Lt.double),isRTL:se(()=>y.value===ut.rtl),isVertical:se(()=>y.value===ut.vertical),breakFirst:q}}function ad(e){const t=localStorage.getItem(e),n=Ju(t),o={};return n?(n.style!==void 0&&Object.values(Lt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ut).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=id&&n.gap<=sd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Cn&&n.speed<=Tn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Cn&&n.zoom<=Tn&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),Object.keys(o).length?o:void 0):o}const Ls=ke({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,r=X(!1),i=se(()=>n.name??location.hostname);fo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(r.value=!r.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){r.value=!1,o("help")}return(a,c)=>(R(),U(Se,null,[G(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>r.value=!0)},{default:ie(()=>[G(Os)]),_:1},8,["disabled"]),G(Ps,{modelValue:r.value,"onUpdate:modelValue":c[5]||(c[5]=u=>r.value=u),name:i.value},{actions:ie(()=>[G(tt,{transparent:"",onClick:l},{default:ie(()=>[G(Ms)]),_:1})]),default:ie(()=>[G(rn,{label:"Style"},{default:ie(()=>[G(po,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=u=>o("update:reader-style",u))},null,8,["model-value","items"])]),_:1}),G(rn,{label:"Direction"},{default:ie(()=>[G(po,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=u=>o("update:direction",u))},null,8,["model-value","items"])]),_:1}),G(rn,{label:"Gap"},{default:ie(()=>[G(po,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=u=>o("update:gap",u))},null,8,["model-value"])]),_:1}),G(rn,{label:"Speed"},{default:ie(()=>[G(vr,{"model-value":a.speed,min:Z(td),max:Z(nd),step:Z(od),suffix:"x","onUpdate:modelValue":c[4]||(c[4]=u=>o("update:speed",u))},{suffix:ie(()=>[Ct(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),G(rn,{label:"Zoom"},{default:ie(()=>[G(vr,{"model-value":Math.ceil(a.zoom*100),min:Z(Cn)*100,max:Z(Tn)*100,step:Z(rd)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[Ct(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),cd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),ud={},dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},fd=[Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Y("circle",{cx:"14",cy:"14",r:"12"}),Y("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function pd(e,t){return R(),U("svg",dd,fd)}const As=he(ud,[["render",pd]]),hd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),gd={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"},md={class:"block w-4 h-4"},vd={class:"w-12"},zs=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>t.zoom!==1?(R(),U("button",gd,[Y("div",md,[G(As)]),Y("div",vd,Xe(Math.ceil(t.zoom*100))+"%",1)])):Ee("",!0)}}),bd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),yd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wd=[Y("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function xd(e,t){return R(),U("svg",_d,wd)}const js=he(yd,[["render",xd]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Rs=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),r=Ae(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),Qe(()=>{i(),r();let s;const l=xs();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(R(),me(tn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(R(),U("div",{key:0,class:Ie(["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===Z(ut).vertical,"rotate-180":s.direction===Z(ut).rtl}])},[G(js)],2)):Ee("",!0)]),_:1}))}}),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Id=Y("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Ds=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=X([]);Qe(async()=>{const c=pr(r),u=Ae(()=>{s({width:c.width.value,height:c.height.value})},50);u(),pe(c.width,u),pe(c.height,u)});function s(c){var h;const u=(h=r.value)==null?void 0:h.parentElement;if(!u)return;const f=Array.from(u.querySelectorAll("#controls [title]"));f.length&&(i.value=l(f,c))}function l(c,u){const f=[],h=[];let x=0,y=0;const _=50,$=25;c.forEach(S=>{var L;const m=(L=S.getAttribute("title"))==null?void 0:L.trim(),w=S.getBoundingClientRect();if(!m||!w.height||!w.width)return;const v=Math.ceil((w.top-10)/_),C=Math.ceil((w.left-10)/_);h.push({isTour:!1,title:m,rect:w,fromX:C,toX:Math.max(C+1,Math.ceil((w.right+10)/_)),fromY:v,toY:Math.max(v+1,Math.ceil((w.bottom+10)/_))})}),h.forEach(S=>{for(let m=S.fromY;m<S.toY;m++){f[m]??(f[m]=[]);for(let w=S.fromX;w<S.toX;w++)f[m][w]=S;S.toY>x+1&&(x=S.toY-1),S.toX>y+1&&(y=S.toX-1)}});let z=y/2;h.forEach(S=>{S.isAlignRight=S.fromX>z});const q=(S,m)=>{f[m]??(f[m]=[]);const w=m>=S.toY;if(S.isTour)for(let v=S.fromX;v<S.toX;v++)delete f[S.fromY][v],S.fromY=m,S.toY=m+(w?1:-1),f[m][v]=S;else{const v=S.isAlignRight?S.fromX-3:S.fromX,C=v+3;S.helpItem={fromX:v,toX:C,fromY:m,toY:m+1,isTour:!0,isAlignRight:S.isAlignRight};for(let L=v;L<C;L++)f[m][L]=S.helpItem}},k=(S,m)=>{if(m>x||m<0)return!1;const w=m>=S.toY,v=f[m];if(!v)return q(S,m),!0;const C=v[S.fromX];if(C&&!C.isTour)return!1;if(C&&C.isTour)return k(C,w?m+1:m-1)?(q(S,m),!0):!1;if(!C){const L=S.isAlignRight?-1:1;return v[S.fromX+L]||v[S.fromX+L*2]?k(S,w?m+1:m-1):(q(S,m),!0)}return!1};h.forEach(S=>{if(!k(S,S.toY)){if(S.isAlignRight){const m=f[S.fromY]??[];if(!m.slice(S.fromX-3,S.fromX).filter(Boolean).length){const v=S.fromX-3,C=S.fromX;S.helpItem={isTour:!0,isAlignRight:!0,fromX:v,toX:C,fromY:S.fromY,toY:S.toY};for(let L=S.fromX-3;L<S.fromX;L++)m[L]=S.helpItem;return}}k(S,S.fromY-1)}});const N=[];return h.forEach(S=>{const{title:m,helpItem:w,rect:v,isAlignRight:C,fromX:L,fromY:te,toY:V}=S;if(!m||!w||!v)return;const oe=w.fromY>=V,P=w.toY<=te;N.push({title:a(m),style:{top:oe?`${v.bottom+(w.fromY-V)*_+$}px`:P?void 0:`${v.top+8}px`,bottom:P?`${u.height-v.top+(w.toY-te)*_+$}px`:void 0,left:C?void 0:`${v.left}px`,right:C?oe?`${u.width-v.right}px`:`${u.width-v.right+v.width+$}px`:void 0},arrowStyle:{width:P||oe?"2px":`${Math.abs(w.toX-L)*_+$-5}px`,height:P||oe?`${(oe?w.fromY-V:te-w.toY)*_+$}px`:"2px",top:oe?`${v.bottom}px`:P?void 0:`${v.top+20}px`,bottom:P?`${u.height-v.top}px`:void 0,left:C?void 0:`${v.left+v.width/2}px`,right:C?oe?`${u.width-v.right+v.width/2}px`:`${u.width-v.right+v.width}px`:void 0}})}),N}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(R(),U(Se,null,[Id,Y("div",{ref_key:"root",ref:r,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=et(f=>o("hide"),["stop"]))},[(R(!0),U(Se,null,gn(i.value,f=>(R(),U(Se,{key:f.title},[Y("div",{class:"absolute",style:Oe(f.style)},Xe(f.title),5),Y("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Bs=ke({__name:"PageNav",props:en({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=wn(e,"modelValue"),o=se(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),i=se(()=>t.pages.length?`${o.value[r.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(R(),me(mr,{"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"]))}}),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ed={},$d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Pd=[Y("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),Y("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Md(e,t){return R(),U("svg",$d,Pd)}const br=he(Ed,[["render",Md]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:br},Symbol.toStringTag,{value:"Module"})),Ld={},Ad={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},zd=[Y("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function jd(e,t){return R(),U("svg",Ad,zd)}const yr=he(Ld,[["render",jd]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),Ns=he(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>n.value?(R(),U("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(R(),me(yr,{key:0})):(R(),me(br,{key:1}))])):Ee("",!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)}}
23
+ `]]]),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),Vs=ke({__name:"GesturesContainer",props:{zoom:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","dragEnd","click"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=X(Math.min(Tn,Math.max(Cn,n.zoom))),s=X(!1),l=X(!1),a=X(!1);pe(()=>n.zoom,P=>oe(P)),Qe(()=>{n.touchDevice?Ot(r,"touchstart",$):(Ot(r,"mousedown",h),Ot(window,"wheel",N))}),fo({onKeyDown:P=>{var ne;if(!n.busy&&((ne=r.value)==null||ne.focus(),!(P.key==="Meta"||P.key==="Control")&&(P.ctrlKey||P.metaKey)))switch(P.key){case"0":oe(1);break;case"-":oe(i.value-.2),P.preventDefault();break;case"=":case"+":oe(i.value+.2),P.preventDefault();break}}});function c(P){l.value!==P&&(l.value=P,P?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},f={x:0,y:0};function h(P){P.button===0&&(u={x:P.clientX,y:P.clientY},f={x:r.value.scrollLeft,y:r.value.scrollTop},window.addEventListener("mousemove",x),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",x),setTimeout(()=>c(!1))},{once:!0}),P.preventDefault(),P.stopPropagation())}function x(P){c(!0);const ne=P.clientX-u.x,K=P.clientY-u.y,O=r.value;O.scrollLeft=f.x-ne,O.scrollTop=f.y-K}let y=!1,_={distance:0,zoom:i.value,x:0,y:0};function $(P){n.busy||(y=P.touches.length===2,y&&(c(!0),P.stopPropagation(),P.preventDefault(),_={distance:S(P),zoom:i.value,x:(P.touches[0].clientX+P.touches[1].clientX)/2,y:(P.touches[0].clientY+P.touches[1].clientY)/2}),(y||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",q),window.addEventListener("touchend",z,{once:!0})))}function z(){if(window.removeEventListener("touchmove",q),y){c(!1),y=!1;return}if(!l.value)return;const P=Ae(()=>{c(!1),r.value.removeEventListener("scroll",K)},200),ne=setTimeout(P,200);r.value.addEventListener("scroll",K);function K(){clearTimeout(ne),P()}}function q(P){if(c(!0),y){P.stopPropagation(),P.preventDefault();const K=S(P)/_.distance;oe(Math.ceil(K*_.zoom*100)/100,_)}}const k=Ae(()=>s.value=!1,100);function N(P){if(!n.busy){if(P.ctrlKey||P.metaKey){P.stopPropagation(),P.preventDefault();const ne=Math.ceil((i.value+P.deltaY*-.01)*100)/100;oe(ne,{x:P.clientX,y:P.clientY});return}n.horizontal&&(s.value||(s.value=!0),k(),P.deltaY&&(r.value&&(r.value.scrollLeft+=P.deltaY*(n.rtl?-1:1)),P.stopPropagation()))}}function S(P){return Math.hypot(P.touches[0].clientX-P.touches[1].clientX,P.touches[0].clientY-P.touches[1].clientY)}let m,w;function v(P){if(l.value||a.value)return;if(!n.touchDevice){o("click",P);return}const ne={x:P.clientX,y:P.clientY},K=m&&Math.abs(ne.x-m.x)<30&&Math.abs(ne.y-m.y)<30;m??(m=ne),K&&(m=void 0,C(ne)),w&&(clearTimeout(w),w=void 0),!K&&(w=setTimeout(()=>{!l.value&&!a.value&&o("click",P),w=void 0,m=void 0},250))}function C(P){const ne=i.value===1?2:1;oe(ne,P)}let L;const te=Ae(()=>{a.value=!1,L=void 0},150);function V(){if(!a.value){const P=r.value;if(!P)return;const ne=P.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;ne&&(L={el:ne,rect:ne.getBoundingClientRect()},a.value=!0)}if(L)return te(),L}async function oe(P,ne){const K=r.value,O=Math.min(Tn,Math.max(Cn,P));if(!K||i.value===O)return;const F=V();if(!F)return;const ce=(ne==null?void 0:ne.x)??K.clientWidth/2,fe=(ne==null?void 0:ne.y)??K.clientHeight/2;i.value=O,o("update:zoom",O),await gt();const{el:be,rect:ye}=F,ze=be.offsetWidth/ye.width,nt=be.offsetHeight/ye.height;K.scrollLeft=be.offsetLeft-ye.left*ze+ce*(ze-1),K.scrollTop=be.offsetTop-ye.top*nt+fe*(nt-1)}return(P,ne)=>(R(),U("div",{ref_key:"root",ref:r,tabindex:"0",class:Ie(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!P.longStrip&&(l.value||s.value||a.value),"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Oe({"font-size":`${i.value}px`}),onClick:et(v,["stop"])},[xe(P.$slots,"default")],6))}}),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Fs=ke({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),r=X(!1);return Qe(async()=>{await gt();let i=!1;hr(o,s=>{r.value=s.some(l=>l.isIntersecting),r.value&&!i&&n("visible")})}),(i,s)=>(R(),U("div",{ref_key:"root",ref:o},[xe(i.$slots,"default",{visible:r.value})],512))}}),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Vd=`.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}}
24
+ `,Fd={},Hd={class:"loading-indicator"};function Wd(e,t){return R(),U("div",Hd)}const _r=he(Fd,[["render",Wd],["styles",[Vd]]]),Kd=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"}));function qd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=X(n),i=X(o),s=Ae(l,50);pe(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 Ud={key:0,class:"page--loading"},Yd=["src"],Xd=["src"],Zd=["data-index"],Hs=he(ke({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,r=X(null),i=se(()=>{var y;return(y=r.value)==null?void 0:y.$el}),s=X(null),l=pr(i),a=se(()=>{const{width:y,height:_}=l,$=n.isLongStrip?n.isVertical?y.value:_.value:Math.min(y.value,_.value);return Math.min(4,Math.max(1,Math.ceil($/400-1)))*n.gap}),c=qd({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),u=se(()=>{const{width:{value:y},height:{value:_}}=l;return n.pages.map($=>{var C;const z=$.some(L=>{var te;return(te=L.img)==null?void 0:te.isLoading}),q=$.map(L=>L.index),k={isLoading:z,indexes:q};if(z||q[q.length-1]<c.min.value-1||q[0]>c.max.value+2)return k;const N=$.map(({img:L})=>L).filter(Boolean);if(!N.length||(k.srcs=N.map(({src:L})=>L),N.every(L=>L.hasError)))return k;const m=(C=N.find(L=>!L.hasError))==null?void 0:C.size,w=N.reduce((L,te)=>{var V;return L+(((V=te.size)==null?void 0:V.width)??m.width)},0),v=N.reduce((L,te)=>{var V;return L+(((V=te.size)==null?void 0:V.height)??m.height)},0)/N.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&y/w<_/v?(k.width=Math.min(y,w),k.height=v*k.width/w):k.height=Math.min(_,v),k})}),f=se(()=>{const y=n.isVertical?"width":"height";return u.value.map(_=>_[y]).filter(Boolean).sort((_,$)=>$-_)[0]});function h({indexes:y}){const _=y[y.length-1];_!==void 0&&c.onPageVisible(_)}function x(y){if(!n.isLongStrip){const _=n.isVertical?l.height.value:l.width.value,z=(n.isVertical?y.clientY:n.isRTL?_-y.clientX:y.clientX)/_;if(z<=.2&&n.pageIndex>0){o("prev");return}else if(z>=.8){o("next");return}}o("click")}return(y,_)=>(R(),me(Vs,{ref_key:"root",ref:r,zoom:y.zoom,"page-index":y.pageIndex,class:Ie(["reader-body",{"reader-body--long-strip":y.isLongStrip,"reader-body--pages":!y.isLongStrip,"reader-body--vertical":y.isVertical,"reader-body--rtl":y.isRTL,"reader-body--idle":y.idle,"reader-body--first":!y.isLongStrip&&y.pageIndex==0,"reader-body--last":!y.isLongStrip&&y.pageIndex==y.totalImgs&&!y.hasNext}]),"play-controller":y.playController,horizontal:!y.isVertical,rtl:y.isRTL,"touch-device":y.touchDevice,busy:y.busy,"long-strip":y.isLongStrip,style:Oe({"--gap":`${a.value}em`,"--space-top":(y.spaceTop||0)+"px","--screen-width-em":Z(l).width.value+"em","--screen-height-em":Z(l).height.value+"em",...y.isLongStrip?{"--max-size-em":f.value+"em"}:{}}),"onUpdate:zoom":_[0]||(_[0]=$=>o("update:zoom",$)),onDragEnd:_[1]||(_[1]=()=>o("dragEnd")),onClick:x,onScroll:Z(c).onScroll},{default:ie(()=>[(R(!0),U(Se,null,gn(u.value,$=>(R(),me(Fs,so({key:y.direction+"_"+$.indexes[0],"data-index":$.indexes[0]},$.indexes.length>1?{"data-index2":$.indexes[1]}:{},{onVisible:()=>h($)}),{default:ie(({visible:z})=>{var q;return[!((q=$.srcs)!=null&&q.length)||$.isLoading?(R(),U("div",Ud,[mt(G(_r,null,null,512),[[os,z]])])):$.srcs.length==1?(R(),U("img",{key:1,src:$.srcs[0],style:Oe({height:$.height!==void 0?$.height+"em":""})},null,12,Yd)):(R(),U("div",{key:2,class:Ie(["page--double",{"flex-row-reverse":y.isRTL}]),style:Oe({width:$.width!==void 0?$.width+"em":"",height:$.height!==void 0?$.height+"em":""})},[(R(!0),U(Se,null,gn($.srcs,k=>(R(),U("div",{key:k},[Y("img",{src:k},null,8,Xd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),Y("div",{ref_key:"autoNextEl",ref:s,class:"last","data-index":y.totalImgs},[xe(y.$slots,"end")],8,Zd)]),_:3},8,["zoom","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--first:before,.reader-body--pages.reader-body--last:after{cursor:default}.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).reader-body--rtl:before{right:0}.reader-body--pages:not(.reader-body--vertical).reader-body--rtl:after,.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):before{left:0}.reader-body--pages:not(.reader-body--vertical):not(.reader-body--rtl):after{right:0}.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)>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}
25
+ `]]]),Gd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Qd={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},Jd={class:"flex justify-between items-end"},ef={class:"inline-block children-pointer-events-auto w-1/3"},tf={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},nf={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},of={class:"inline-block z-20 relative"},Ws=he(ke({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>(R(),U("div",{class:Ie(["reader-layout",{"cursor-none":t.idle,"cursor-default":!t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(R(),U("div",Qd,[G(_r)])):Ee("",!0),xe(t.$slots,"default"),Y("div",{id:"controls",class:Ie(["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}])},[Y("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Oe({paddingTop:`${t.spaceTop||0}px`})},[xe(t.$slots,"back"),xe(t.$slots,"exit"),xe(t.$slots,"chapter-nav")],4),Y("div",Jd,[Y("div",ef,[xe(t.$slots,"page-nav")]),Y("div",tf,[xe(t.$slots,"reset-zoom")]),Y("div",nf,[xe(t.$slots,"entry"),Y("div",of,[xe(t.$slots,"settings")]),xe(t.$slots,"full-screen"),xe(t.$slots,"play"),xe(t.$slots,"break-first")])]),Y("div",{class:Ie(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[xe(t.$slots,"progress")],2)],2)],2))}}),[["styles",[`.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100vh;left:0;line-height:24px;overflow:hidden;overscroll-behavior:contain;position:fixed;text-align:left;top:0;width:100vw}
26
+ `]]]),rf=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Ks=he(ke({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=X(null),r=X(0),i=X([]),s=se(()=>i.value[r.value]),l=vs(a,500);Qe(()=>{const f=pr(o),h=Ae(()=>c({width:f.width.value,height:f.height.value}),50);h(),pe(f.width,h),pe(f.height,h)});function a(){r.value>=i.value.length-1?n("hide"):r.value++}function c(f){const h=u();i.value=h.map(({rect:x,text:y})=>{const _=x.top<f.height-x.bottom,$=x.left<f.width-x.right;return{text:y,style:{left:`${x.left}px`,top:`${x.top}px`,width:`${x.width}px`,height:`${x.height}px`},textStyle:{left:$?`${x.left-12}px`:void 0,right:$?void 0:`${f.width-x.left}px`,top:_?`${x.bottom+12}px`:`${x.top+20}px`,textAlign:_?void 0:"right",transform:_?void 0:"translateY(-50%)"}}}),r.value>=i.value.length&&(r.value=i.value.length-1)}function u(){var x;const f=(x=o.value)==null?void 0:x.parentElement;if(!f)return[];const h=[];return f.querySelectorAll("[data-tour]").forEach(y=>{var z;const _=(z=y.getAttribute("data-tour"))==null?void 0:z.trim();if(!(_!=null&&_.length))return;const $=y.getBoundingClientRect();h.push({rect:$,text:_})}),h}return(f,h)=>{var x,y;return R(),U(Se,null,[Y("div",{class:Ie(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),Y("div",{ref_key:"root",ref:o,class:"tour",onClick:h[0]||(h[0]=et((..._)=>Z(l)&&Z(l)(..._),["stop"]))},[s.value?(R(),U("div",{key:r.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Ee("",!0),(R(),U("div",{key:r.value,class:"tour__text",style:Oe((x=s.value)==null?void 0:x.textStyle)},Xe(((y=s.value)==null?void 0:y.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
27
+ `]]]),sf=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),lf={},af={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},cf=[Y("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function uf(e,t){return R(),U("svg",af,cf)}const qs=he(lf,[["render",uf]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),ff={},pf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hf=[Y("path",{fill:"currentColor",d:"M6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h6v2H7v12.95l5-2.15l5 2.15V11h2v8.475q0 .55-.45.838t-.95.087L12 18l-5.6 2.4ZM7 5h6h-6Zm11 4q-.425 0-.713-.287T17 8V7h-1q-.425 0-.713-.288T15 6q0-.425.288-.713T16 5h1V4q0-.425.288-.713T18 3q.425 0 .713.288T19 4v1h1q.425 0 .713.288T21 6q0 .425-.288.713T20 7h-1v1q0 .425-.288.713T18 9Z"},null,-1)];function gf(e,t){return R(),U("svg",pf,hf)}const Us=he(ff,[["render",gf]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),vf={},bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yf=[Y("path",{fill:"currentColor",d:"M17.825 8.575q-.2 0-.375-.062t-.325-.213L15.7 6.875q-.3-.3-.3-.712t.3-.688q.275-.3.7-.3t.7.275l.725.725l2.825-2.85q.3-.3.7-.3t.725.3q.275.3.275.725t-.275.7l-3.55 3.55q-.15.15-.325.213t-.375.062ZM6.4 20.4q-.5.2-.95-.087T5 19.475V5q0-.825.588-1.413T7 3h7q-.5.75-.75 1.438T13 6q0 1.8 1.137 3.175T17 10.9q.575.075 1 .075t1-.075v8.575q0 .55-.45.838t-.95.087L12 18l-5.6 2.4Z"},null,-1)];function _f(e,t){return R(),U("svg",bf,yf)}const Ys=he(vf,[["render",_f]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),xf={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function If(e,t){return R(),U("svg",Sf,kf)}const Xs=he(xf,[["render",If]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Tf={},Ef={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$f=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Pf(e,t){return R(),U("svg",Ef,$f)}const Zs=he(Tf,[["render",Pf]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Of={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Af=[Y("path",{fill:"currentColor",d:"M29.84 49.574h12.398c4.899 0 7.336-2.437 7.336-7.265V13.69c0-4.828-2.437-7.265-7.336-7.265H29.84Zm-16.055 0h12.398V6.426H13.785c-4.875 0-7.36 2.414-7.36 7.265V42.31c0 4.851 2.485 7.265 7.36 7.265"},null,-1)];function zf(e,t){return R(),U("svg",Lf,Af)}const Gs=he(Of,[["render",zf]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Rf={},Df={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[Y("g",{fill:"none"},[Y("path",{d:"M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),Y("path",{fill:"currentColor",d:"M8 3v18H5a2 2 0 0 1-1.995-1.85L3 19V5a2 2 0 0 1 1.85-1.995L5 3zm11 0a2 2 0 0 1 1.995 1.85L21 5v14a2 2 0 0 1-1.85 1.995L19 21h-9V3z"})],-1)];function Nf(e,t){return R(),U("svg",Df,Bf)}const Qs=he(Rf,[["render",Nf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Ff={},Hf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Wf=[Y("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Kf(e,t){return R(),U("svg",Hf,Wf)}const Js=he(Ff,[["render",Kf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Uf={},Yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Xf=[Y("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Zf(e,t){return R(),U("svg",Yf,Xf)}const el=he(Uf,[["render",Zf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Qf={},Jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ep=[Y("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function tp(e,t){return R(),U("svg",Jf,ep)}const tl=he(Qf,[["render",tp]]),np=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"}));function sn(e=0){return new Promise(t=>setTimeout(t,e))}function nl(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 op(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 nl(o)}function ho(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==="srcset"||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()}}async function rp(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}class ip{constructor({isIOS:t,onDownloaded:n}){ve(this,"reactiveResults",an({}));ve(this,"isIOS");ve(this,"tkLoadId",Date.now());ve(this,"isMounted",!0);ve(this,"onDisposeCallbacks",[]);ve(this,"onDownloaded");this.isIOS=t,this.onDownloaded=n}dispose(){this.isMounted=!1,this.onDisposeCallbacks.forEach(t=>t()),this.onDisposeCallbacks=[],this.onDownloaded=()=>{}}async download(t){var l;if(!this.isMounted)return;const n=t.el;let o=t.computedSrc;if(!n&&!o)return;const r=n instanceof HTMLImageElement,i=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,r){const a=()=>this.onImgElLoaded(t,n);n.addEventListener("load",a),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a)})}}if(r&&!o){if(o=ho(n),!o)return;n._tkSrc=o}else if(i&&!o){if(o=await nl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=r&&o.startsWith("blob");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await sn(300),await this.downloadSrc(t))}async onImgElLoaded(t,n){var r;if(!this.isMounted)return;const o=ho(n);o&&(!o.startsWith("blob")&&t.computedSrc===o||(n._tkSrc=o,(r=this.reactiveResults)[o]??(r[o]={src:o,isLoading:!0,hasError:!1}),this.downloadSrc(t)))}async downloadSrc(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,r=o?await op(o,n):n;if(!r)return;const i=await rp(r,o);if(!this.isMounted)return;const s=!!i&&(i.width<200||i.height<200);this.reactiveResults[n]={src:r,size:i,isLoading:!1,hasError:!i,invalid:s},i&&this.onDownloaded(t,i)}}const sp=3;class lp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:r}){ve(this,"isQueueStarted",!1);ve(this,"debouncedEnqueue");ve(this,"concurrentCount",0);ve(this,"getItems");ve(this,"getActiveIndex");ve(this,"isCompleted");ve(this,"callback");ve(this,"activeIndex",0);ve(this,"completedItems");ve(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=r,this.debouncedEnqueue=Ae(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<sp&&this.isMounted}async enqueue(){if(!this.canEnqueue)return;const t=this.getItems();if(t===this.completedItems)return;this.completedItems=void 0;const n=this.resetActiveIndex(),o=Math.max(0,Math.min(t.length-1,n-1)),r=[];for(let i=o;i<t.length;i++){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==t.length-1))}for(let i=o-1;i>=0;i--){if(!this.canEnqueue)return;r.push(await this.invokeItemCallback(i,i==0))}this.getItems()===t&&r.filter(Boolean).length==t.length&&(this.completedItems=t)}async invokeItemCallback(t,n){const o=this.getItems()[t];return o?this.isCompleted(o)?!0:(this.concurrentCount++,this.callback(o).then(()=>{this.concurrentCount=Math.max(0,this.concurrentCount-1),n||this.debouncedEnqueue()}),await sn(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Ut{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}async function En(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 En(e-1,t,n);r(i)},t)})}function wr(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.opacity??"1")>.1))return t.set(e,!1),!1;const i=wr(e.parentElement,t);return t.set(e,i),i}function ol(e){const t=e.tagName.toLowerCase();if(t==="option"){const n=e.parentElement;if(n.tagName.toLowerCase()!=="select")return;n.value=e.getAttribute("value")||"",n.dispatchEvent(new Event("change"));return}return t==="a"&&e.addEventListener("click",n=>n.preventDefault(),{once:!0}),e.click()}async function ap(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const r=await En(50,30,()=>document.querySelector(n));return r?(ol(r),await sn(),!0):!1}class cp{constructor({spec:t,onChanged:n}){ve(this,"spec");ve(this,"onChanged");ve(this,"rawImages",[]);ve(this,"isMounted",!0);ve(this,"loadRawImagesTs");ve(this,"disconnectObservers");this.spec=t,this.onChanged=n,this.init()}dispose(){var t;this.isMounted=!1,(t=this.disconnectObservers)==null||t.call(this),this.disconnectObservers=void 0,this.onChanged=()=>{}}init(){var s;let t;const n=Ae(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),r=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ae(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),r==null||r.disconnect()};let i=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),r==null||r.disconnect(),o.observe(t,{childList:!0,subtree:!0}),r==null||r.observe(t),i?n():(i=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((r,i)=>{const s=this.rawImages[i];return s&&s.el===r.el&&s.parentEl===r.parentEl&&s.src===r.src?s:(n=!0,r)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=(l=this.spec)==null?void 0:l.content;if(!n){t(document.body);return}const o=await ap(this.spec);let r=n?await En(o?100:1,10,()=>document.querySelector(n)):void 0;if(!r)return;t(r);let i=0;const s=async()=>{if(this.isMounted&&!(r!=null&&r.isConnected)){if(i=0,r=await En(50,20,()=>{const a=document.querySelector(n);return a!=null&&a.isConnected&&a!==r?a:void 0}),!r)return;t(r)}!this.isMounted||++i>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var i;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(i=this.spec)==null?void 0:i.imgDivs,r=o?await up(t,o):dp(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(r)}}async function up(e,t){const n=Array.from(e.querySelectorAll(t)),o=new Map;return n.map(i=>{const s=Array.from(i.querySelectorAll("img,canvas"));for(const l of s)if(wr(l,o)){if(l instanceof HTMLCanvasElement){if(rl(l))return new Ut(void 0,l,i)}else if(l instanceof HTMLImageElement&&il(l)){const a=ho(l);return new Ut(a,l,i)}}return new Ut(void 0,void 0,i)})}function dp(e){const t=[],n={},o=new Map;return Array.from(e.querySelectorAll("img,canvas")).forEach(i=>{if(wr(i,o)){if(i instanceof HTMLCanvasElement)rl(i)&&t.push(new Ut(void 0,i));else if(i instanceof HTMLImageElement&&il(i)){const s=ho(i);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Ut(s,i))}}}),t}function rl(e){return e.isConnected&&e.width>=200&&e.height>=200}function il(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function sl(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 fp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Ut(void 0,o));return sl(n)}function go({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:r}){const i=Math.floor(t),s=e[Math.min(e.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=ll(l);if(!c)return;const u=t>=e.length?a.height:r?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function ll(e,t=new Map){if(!e)return;const{offsetTop:n,offsetParent:o}=e;if(o&&n&&t.set(o,Math.max(t.get(o)??0,n)),!(e.scrollHeight-e.clientHeight>=10&&(e===document.documentElement||window.getComputedStyle(e).overflow!=="visible")))return ll(e.parentElement,t);let i=0;return t.forEach((s,l)=>{i+=l===o?s-n:s}),{el:e,top:i}}function pp(e){var x,y,_,$;const t=X((x=e.raw.value)==null?void 0:x.isWebtoon),n=X((y=e.raw.value)==null?void 0:y.isWebtoon);let o=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),i=(($=(_=e.raw.value)==null?void 0:_.imgs)==null?void 0:$.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:i.length?fp(i):void 0,l=i.map(z=>new Ut(z)),a;const c=new ip({isIOS:r,onDownloaded(z,q){let k=l.indexOf(z);if(k===-1){const N=z.computedSrc;k=l.findIndex(S=>S.computedSrc===N)}if(k!==-1){if(q&&!t.value&&k>Math.min(1,l.length-3)&&k<Math.max(l.length-2,3)){const N=q.height/q.width,S=N>2||N<.5,m=N>1.6||N<.6;t.value!==S&&(t.value=S),n.value!==m&&(n.value=m)}f()}}}),u=new lp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:z=>{const q=z.computedSrc;return!!(q&&c.reactiveResults[q])},callback:z=>c.download(z)});if(i.length)u.run();else{let z=!1;a=new cp({spec:e.spec,async onChanged(q){var k;if(l=q,!e.raw.value&&!q.length){e.onError("no_img");return}(k=e.spec)!=null&&k.imgDivs&&!z&&e.isAutoShow!==!1&&e.page.value&&(z=!0,go({rawImages:q,page:e.page.value,skipIfVisible:!0}),await sn(1)),s===void 0&&e.isAutoShow===!1&&(s=sl(q)),u.run()}})}Wo(()=>{c.dispose(),u.dispose(),a==null||a.dispose(),o&&go({rawImages:l,page:e.page.value})});function f(){var S,m,w,v;if(o||t.value===void 0||s===void 0)return;const z=Math.max(0,Math.min(s,l.length)),q=l.length-1,k=Math.min(Math.floor(z),q);if(k>=1){const C=(S=l[k])==null?void 0:S.computedSrc;if(!C){e.isAutoShow&&go({rawImages:l,page:k});return}const L=(m=l[k-1])==null?void 0:m.computedSrc;if(L&&!((w=c.reactiveResults[L])!=null&&w.size)||!((v=c.reactiveResults[C])!=null&&v.size))return}if(o)return;o=!0,e.onReady(z);let N=!0;pe(()=>Math.floor(e.page.value),(C,L)=>{go({rawImages:l,page:C,smooth:r,isScrollDown:L===void 0||C>L||l.length===1,skipIfVisible:N&&l.length>1}),N=!1,L??(L=-1),u.run()},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(c.reactiveResults);const z=[];return l.forEach(q=>{const k=q.computedSrc,N=k?c.reactiveResults[k]:void 0;(k&&!(N!=null&&N.invalid)||q.parentEl)&&z.push(N)}),z}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function hp(e,t,n){return se(()=>t.value?al(e.value,n.value):e.value.map((o,r)=>[{img:o,index:r}]))}function al(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),r=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),i=r||t?[o[0]]:o;return[i.map((s,l)=>({img:s,index:n+l})),...al(e.slice(i.length),t&&r,n+i.length)]}function gp(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=X(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 mp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const xr=40;function vp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:f,onFinished:h}){let x=!1,y=!1,_=!1,$;const z=Ae(C,300),q=vs(()=>{C(),z()},300),k=Ae(m,50);async function N(){w(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function S(){var O;y=!0,f(),L(),(O=l.value)==null||O.addEventListener("scroll",q),setTimeout(()=>{const{width:F,height:ce}=ou();pe(F,()=>{r.value&&k()}),pe(ce,()=>{r.value||k()}),pe(n,m),pe(t,m)},300)}async function m(){if(!y||x)return;x=!0,await gt();const O=e.value;if(V()===O){x=!1;return}w(O)}function w(O,{smooth:F,ensureLastImgVisibility:ce=!1}={smooth:!1}){const fe=l.value;if(!fe)return;x=!0;const be=async()=>{await gt(),x=!1,y||S()},ye=Math.floor(O),ze=fe.querySelector(`[data-index="${ye}"],[data-index2="${ye}"]`);if(!ze){be();return}c(async()=>{await v(fe,!o.value&&F,async()=>{await K(fe,ze,{smooth:F,page:O,ensureLastImgVisibility:ce})}),await be()})}async function v(O,F,ce){F&&O.style.setProperty("scroll-snap-type","none"),await ce(),F&&O.style.removeProperty("scroll-snap-type")}function C(){if(x)return;const O=V();O!==void 0&&O!==e.value&&u(O),L()}function L(){_||!_&&te()&&(_=!0,h())}function te(){const O=l.value;if(!O)return!1;const F=o.value?a.value?3:!r.value&&O.clientWidth>O.clientHeight?2.25:2.5:2;return r.value?O.scrollHeight-O.scrollTop<O.clientHeight*F:O.scrollWidth-(i.value?-O.scrollLeft:O.scrollLeft)<O.clientWidth*F}function V(){const O=oe();return O?(+O.getAttribute("data-index")||0)+(o.value?P(O):0):void 0}function oe(){var F;if($??($=l.value.getRootNode()),!$)return;const O=(F=$.elementsFromPoint)==null?void 0:F.call($,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-xr:xr,r.value&&o.value?s.value||xr:window.innerHeight/2);if(O)for(let ce=0;ce<O.length;ce++){const fe=O[ce];if(fe.hasAttribute("data-index"))return fe;if(fe===l.value)break}}function P(O){const F=O.getBoundingClientRect();return r.value?Math.abs(F.top-s.value)/F.height:i.value?Math.max(0,F.right-l.value.clientWidth)/F.width:Math.abs(F.left)/F.width}let ne=!1;async function K(O,F,ce){if(ne)return;const fe=F.getBoundingClientRect();if(!o.value){if(r.value){if(fe.top<=0&&fe.bottom>=O.clientHeight)return}else if(fe.left<=0&&fe.right>=O.clientWidth)return}ne=!0;const be=r.value?O.scrollTop:O.scrollLeft,ye=ce.page,ze=o.value?ye%1:0,nt=await En(30,10,async()=>{await sn();let Be;if(!(F.offsetHeight<10))return o.value?r.value?Be=F.offsetTop+ze*F.offsetHeight-s.value:i.value?Be=F.offsetLeft-O.clientWidth+F.offsetWidth-ze*F.offsetWidth:Be=F.offsetLeft+ze*F.offsetWidth:r.value?Be=F.offsetTop+(fe.top>0?0:fe.height-O.clientHeight):Be=F.offsetLeft+(fe.left>0?0:fe.width-O.clientWidth),ye>.5&&Math.abs(Be)<100?void 0:Be})??0,Yt=ce.ensureLastImgVisibility?r.value?Math.min(nt,O.scrollHeight-O.clientHeight*2):i.value?Math.max(nt,-(O.scrollWidth-O.clientWidth*2)):Math.min(nt,O.scrollWidth-O.clientWidth*2):nt;if(!ce.smooth){r.value?O.scrollTop=Yt:O.scrollLeft=Yt,ne=!1;return}const Ke=Yt-be,qe=30;let ot=0;return new Promise(Be=>{(function dt(){const At=bp(ot,be,Ke,qe);r.value?O.scrollTop=At:O.scrollLeft=At,ot++,ot<=qe?requestAnimationFrame(dt):(Be(),ne=!1)})()})}return{init:N,goToPage:w}}function bp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function yp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=X(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:v=>{a.value=v,sessionStorage.setItem("tk:playing",v?"true":"false")}}),u=X(!1);let f,h;const x=Ae(m,100),y=Ae(()=>{u.value=!0},t?2e3:1e3),_=()=>setTimeout(()=>{u.value=!1,y()},30);_(),t||Ot(window,"mousemove",_);const $=xs();Qe(()=>{pe($,v=>{c.value&&(v==="visible"?m():h==null||h())}),pe(s,()=>z()),pe(i,v=>{v||k()})}),Nt(k);async function z(v){c.value&&(h==null||h()),v&&(await gt(),await v()),c.value&&x()}function q(){c.value?k():N()}function k(){c.value&&(c.value=!1,h==null||h(),_())}function N(){!c.value&&i.value&&(c.value=!0,m(),_())}function S(){h==null||h()}function m(){const v=n.value;if(!c.value||!v)return;const C=o.value?v.scrollHeight-v.clientHeight:v.scrollWidth-v.clientWidth,L=w();if(C<=L){k();return}h=()=>{f=Date.now(),h=void 0};const te=Date.now();f=te;const V=.05*s.value,oe=o.value?"scrollTop":"scrollLeft";let P=Date.now(),ne=0;const K=()=>{if(f!==te)return;const O=Date.now(),F=O-P;P=O;const ce=V*F+ne;ce>=1?(ne=ce%1,v[oe]+=(ce-ne)*(r.value?-1:1)):ne=ce,setTimeout(K,1)};K()}function w(){const v=n.value;return o.value?v.scrollTop:r.value?-v.scrollLeft:v.scrollLeft}return{isPlaying:c,isIdle:u,toggle:q,play:N,pause:S,resume:m,stop:k,interfere:z,awake:_}}function _p(e,t){var N,S,m;const{vol:n,inferVol:o,chap:r,title:i,slug:s,basePath:l}=e;let a=-1;const c=t&&!t.url?document.querySelectorAll(t.sel):void 0;function u(w,v){w.slug?Sr(l,w.slug,v):w.elIndex!==void 0&&c&&c[w.elIndex]&&ol(c[w.elIndex])}function f(w){const v=k[w];return v?C=>u(v,C):void 0}const h=(N=e.prev)==null?void 0:N.slug,x=(S=e.next)==null?void 0:S.slug;let y=h?w=>Sr(l,h,w):void 0,_=x?w=>Sr(l,x,w):void 0;const $=n??o,z=t==null?void 0:t.url,q=((m=i.chapters)==null?void 0:m.filter(w=>w.slug||!z&&w.elIndex!==void 0))??[],k=q.length>1?q:[];if(k.length){if(z&&(a=k.findIndex(w=>w.slug===e.slug)),a===-1&&(a=k.findIndex(w=>(w.vol??w.inferVol)===$&&w.chap===r)),z&&a===-1&&(a=k.findIndex(w=>w.slug&&s.startsWith(`${w.slug}-`)&&s.length-w.slug.length>3)),a!==-1)y??(y=f(a+1)),_??(_=f(a-1));else if(!h&&!x){const w=k.findIndex(v=>{const C=v.vol??v.inferVol;return $===void 0||C===void 0||$===C?v.chap<r:C<$});w!==-1?(y=f(w),_=f(w-1)):_=f(k.length-1)}}return{activeIndex:a,activeLabel:cl({vol:n,chap:r}),prev:y,next:_,chapters:k.map(w=>({label:cl(w),select:v=>u(w,v)}))}}function cl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Sr(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),r=o.includes("//")?o:location.origin+o;n?window.open(r,"_blank","noopener"):location.href=r}const wp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},ul=he(ke({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e,o=t;let r=!1,i,s=-1;const l=X(!1),a=X(!1),c=mu({touchDevice:n.touchDevice}),u=gp(n.page,n.isAutoShow),f=se(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:x,maybeWebtoon:y}=pp({raw:se(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(g){ze(g),l.value=!0},onError:()=>{o("error"),j()}}),{direction:_,style:$,isRTL:z,isDouble:q,isVertical:k,isLongStrip:N,gap:S,speed:m,zoom:w,breakFirst:v}=ld({titleName:se(()=>{var g;return(g=n.raw)==null?void 0:g.title.name}),isWebtoon:x,maybeWebtoon:y,defaultStyle:n.readerStyle,defaultDirection:n.direction}),C=hp(h,q,v),L=se(()=>u.value>=h.value.length),te=se(()=>{var g;return n.raw?_p(n.raw,(g=n.spec)==null?void 0:g.chapter):void 0}),V=X(null),oe=X(null),P=X(!1),ne=X(!1),K=yp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var g;return(g=V.value)==null?void 0:g.$el}),speed:m,isRTL:z,isVertical:k,isLongStrip:N}),O=se(()=>!n.touchDevice&&K.isIdle.value&&!c.value),F=se({get(){return w.value},set(g){K.interfere(()=>{w.value=g})}}),ce=vp({page:u,style:$,direction:_,isLongStrip:N,isVertical:k,isRTL:z,spaceTop:f,isWebtoon:x,scrollEl:se(()=>{var g;return(g=V.value)==null?void 0:g.$el}),interferePlayer:g=>K.interfere(g),onChangedPage:ze,onInitialized(){o("ready"),a.value=!0,i=nt()},onFinished:()=>o("finished")}),fe=se(()=>Math.floor(u.value)),be=()=>K.interfere(()=>sn(100));bu().addListener({onKeyDown:g=>{if(n.tourEnabled)return;const T=N.value&&k.value,W=N.value&&!k.value,J=!N.value&&k.value,de=!N.value&&!k.value;switch(g.key){case" ":g.preventDefault(),N.value?(Q(!1),K.toggle()):I();break;case"ArrowUp":case"PageUp":T?be():J&&fe.value!==0&&(g.preventDefault(),b());break;case"ArrowDown":case"PageDown":T?be():J&&!L.value&&(g.preventDefault(),I());break;case"ArrowLeft":W?be():de?(g.preventDefault(),d()):k.value&&ot();break;case"ArrowRight":W?be():de?(g.preventDefault(),p()):k.value&&qe();break}},onKeyUp:g=>{switch(g.key){case"f":B();break;case"t":A();break;case"h":Q();break}}}),Ot("fullscreenchange",()=>{P.value=!!document.fullscreenElement}),pe(K.isPlaying,g=>{g||D(!1),o("playingChanged",g)}),pe(K.isIdle,g=>{K.isPlaying.value&&D(g)}),pe(c,g=>{!g&&K.isIdle.value?K.awake():g&&n.fullScreen&&D()});function ze(g){if(u.value===g)return;const T=h.value.length;if(g<0||g>=T+1)return;const W=u.value;u.value=g;const J=Math.floor(g*100)/100;J!==s&&(s=J,o("pageChanged",J)),g>=T?(D(!1),K.stop()):g<.01&&W>g?(D(!1),K.awake()):r||(N.value?i!==void 0&&nt()-i>300&&D(!0):Math.abs(W-g)===1&&D(!0))}function nt(){var T;const g=(T=V.value)==null?void 0:T.$el;return g?k.value?g.scrollTop:z.value?-g.scrollLeft:g.scrollLeft:0}function Yt(){!n.touchDevice&&!N.value&&ce.goToPage(fe.value,{smooth:!0})}function Ke(){if(K.isPlaying.value){!n.fullScreen||!n.touchDevice?K.stop():K.awake();return}D()}function qe(g=!1){var T,W;(W=(T=te.value)==null?void 0:T.next)==null||W.call(T,g)}function ot(g=!1){var T,W;(W=(T=te.value)==null?void 0:T.prev)==null||W.call(T,g)}function Be(g,T){var W,J,de;(de=(J=(W=te.value)==null?void 0:W.chapters)==null?void 0:J[g])==null||de.select(bt(T))}function dt(g){z.value?qe(bt(g)):ot(bt(g))}function At(g){z.value?ot(bt(g)):qe(bt(g))}function bt(g){return!n.touchDevice&&(g.ctrlKey||g.metaKey)}function d(){z.value?I():b()}function p(){z.value?b():I()}function b(){var W;const g=C.value,T=L.value?g[g.length-1][0].index:(W=g[E()-1])==null?void 0:W[0].index;T!==void 0?ce.goToPage(T):ot()}function I(){var g,T;if(L.value)qe();else{const W=((T=(g=C.value[E()+1])==null?void 0:g[0])==null?void 0:T.index)??h.value.length;ce.goToPage(W)}}function E(){const g=fe.value,T=C.value.findIndex(W=>W.some(({index:J})=>J===g));return T===-1?C.value.length-1:T}function j(){mp(),o("dispose")}async function D(g){if(c.value&&!n.fullScreen)return;const T=typeof g=="boolean"?g:!n.fullScreen;T!==n.fullScreen&&(r=!0,o("fullScreenChanged",T),T&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function A(){n.entryId?H():M()}function B(){var g,T;document.fullscreenElement?document.exitFullscreen():(T=(g=oe.value)==null?void 0:g.$el)==null||T.requestFullscreen()}function M(){K.stop(),o("addEntry")}function H(){K.stop(),o("openEntry",n.entryId)}function Q(g){ne.value!==g&&(ne.value=!ne.value,ne.value&&K.isPlaying.value&&K.stop())}return(g,T)=>g.immediate||l.value?(R(),me(Ws,{key:0,ref_key:"root",ref:oe,loading:!a.value,immediate:!!g.immediate,"full-screen":!!g.fullScreen,idle:O.value,"space-top":f.value,rtl:Z(z),onClick:T[11]||(T[11]=et(()=>{},["stop"]))},wi({settings:ie(()=>{var W;return[G(Ls,{"reader-style":Z($),"onUpdate:readerStyle":T[3]||(T[3]=J=>Ce($)?$.value=J:null),direction:Z(_),"onUpdate:direction":T[4]||(T[4]=J=>Ce(_)?_.value=J:null),gap:Z(S),"onUpdate:gap":T[5]||(T[5]=J=>Ce(S)?S.value=J:null),speed:Z(m),"onUpdate:speed":T[6]||(T[6]=J=>Ce(m)?m.value=J:null),zoom:F.value,"onUpdate:zoom":T[7]||(T[7]=J=>F.value=J),name:(W=g.raw)==null?void 0:W.title.name,webtoon:Z(x),disabled:!l.value,onHelp:Q},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[G(tn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[G(zs,{zoom:F.value,onClick:T[10]||(T[10]=et(()=>F.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ie(()=>[Y("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${Z(u)/(Z(h).length-1)*100}%`})},null,4)]),default:ie(()=>{var W;return[l.value?(R(),me(Hs,{key:0,ref_key:"body",ref:V,zoom:F.value,"onUpdate:zoom":T[0]||(T[0]=J=>F.value=J),"page-index":fe.value,pages:Z(C),"total-imgs":Z(h).length,direction:Z(_),gap:Z(S),"is-long-strip":Z(N),isRTL:Z(z),"is-vertical":Z(k),"space-top":f.value,busy:Z(c),idle:O.value,"play-controller":Z(K),"touch-device":g.touchDevice,"has-next":!!((W=te.value)!=null&&W.next),onVnodeMounted:Z(ce).init,onPrev:b,onNext:I,onClick:Ke,onDragEnd:Yt,onWheelPassive:T[1]||(T[1]=()=>Z(K).interfere())},wi({_:2},[l.value&&Z(h).length?{name:"end",fn:ie(()=>{var J;return[G(Ts,{"has-next":!!((J=te.value)!=null&&J.next),onNext:qe,onHide:j},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","has-next","onVnodeMounted"])):Ee("",!0),a.value&&!L.value&&!g.tourEnabled?(R(),me(Rs,{key:1,direction:Z(_)},null,8,["direction"])):Ee("",!0),a.value&&!L.value?(R(),me(Ns,{key:2,playing:!!Z(K).isPlaying.value},null,8,["playing"])):Ee("",!0),ne.value?(R(),me(Ds,{key:3,"touch-device":g.touchDevice,onHide:Q},null,8,["touch-device"])):Ee("",!0),g.tourEnabled?(R(),me(Ks,{key:4,onHide:T[2]||(T[2]=()=>o("tourEnabledChanged",!1))})):Ee("",!0)]}),_:2},[g.raw?{name:"back",fn:ie(()=>[G(tt,{href:g.raw.title.url,title:"Back to manga"},{default:ie(()=>[G(qs)]),_:1},8,["href"])]),key:"0"}:void 0,g.touchDevice?void 0:{name:"exit",fn:ie(()=>[G(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:j},{default:ie(()=>[G(tl)]),_:1})]),key:"1"},te.value?{name:"chapter-nav",fn:ie(()=>[G(mr,{modelValue:te.value.activeIndex,label:te.value.activeLabel,title:"Select chapter",items:te.value.chapters,onSelect:Be},{item:ie(({item:W})=>[Ct(Xe(W.label),1)]),_:1},8,["modelValue","label","items"]),te.value.next||te.value.prev?(R(),U("div",wp,[G(tt,{title:`${Z(z)?"Next":"Prev"} chapter (←)`,disabled:Z(z)?!te.value.next:!te.value.prev,class:"!rounded-r-none",onClick:dt},{default:ie(()=>[G(Xs)]),_:1},8,["title","disabled"]),G(tt,{title:`${Z(z)?"Prev":"Next"} chapter (→)`,disabled:Z(z)?!te.value.prev:!te.value.next,class:"!rounded-l-none",onClick:At},{default:ie(()=>[G(Zs)]),_:1},8,["title","disabled"])])):Ee("",!0)]),key:"2"}:void 0,Z(C).length?{name:"page-nav",fn:ie(()=>[G(Bs,{"model-value":fe.value,disabled:!a.value,pages:Z(C),"total-imgs":Z(h).length,"onUpdate:modelValue":Z(ce).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,g.raw?{name:"entry",fn:ie(()=>[G(tt,{title:g.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:A},{default:ie(()=>[g.entryId?(R(),me(Ys,{key:0})):(R(),me(Us,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,g.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[G(tt,{title:`${P.value?"Exit":"Enter"} fullscreen (F)`,onClick:B},{default:ie(()=>[P.value?(R(),me(el,{key:0})):(R(),me(Js,{key:1}))]),_:1},8,["title"])]),key:"5"},Z(N)?{name:"play",fn:ie(()=>[G(tt,{"data-tour":"Press here to play like a video",title:`${Z(K).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:T[8]||(T[8]=()=>Z(K).toggle())},{default:ie(()=>[Z(K).isPlaying.value?(R(),me(br,{key:0})):(R(),me(yr,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Z(q)?{name:"break-first",fn:ie(()=>[G(tt,{title:"Separate 1st page","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:T[9]||(T[9]=()=>v.value=!Z(v))},{default:ie(()=>[Z(v)?(R(),me(Qs,{key:0})):(R(),me(Gs,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ee("",!0)}}),[["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}}.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}.\\!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{border-radius:4px}.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-left{text-align:left}.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}.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}}
28
+ `]]]),xp=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),Sp={},kp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ip=[Y("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Cp(e,t){return R(),U("svg",kp,Ip)}const Tp=Object.freeze(Object.defineProperty({__proto__:null,default:he(Sp,[["render",Cp]])},Symbol.toStringTag,{value:"Module"})),Ep=`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>: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;visibility:hidden!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}
29
+ `,$n="gear-second",kr={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,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},We={promise:void 0,data:an({...kr})};async function $p(e){return We.promise?(We.data.raw=e.raw,await We.promise):(We.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($n),Object.assign(We.data,kr),We.promise=void 0)},l=Ae(u=>{var f;return!n&&((f=e.onPageChanged)==null?void 0:f.call(e,u))},300);Object.assign(We.data,kr,e,{immediate:i,onReady(){i||(a(),setTimeout(()=>r.setAttribute("style","")))},onError(){var u,f;s(),o?((u=e.onDispose)==null||u.call(e),(f=e.onError)==null||f.call(e)):c()},onDispose:()=>{var u;s(),(u=e==null?void 0:e.onDispose)==null||u.call(e)},onFullScreenChanged:u=>{var f;We.data.fullScreen=u,(f=e.onFullScreenChanged)==null||f.call(e,u)},onPageChanged:u=>{We.data.page=u,l(u)},onTourEnabledChanged:u=>{We.data.tourEnabled=u}}),Pp().then(()=>{if(n){c();return}r=document.createElement($n),document.documentElement.classList.add($n),i?(document.body.appendChild(r),setTimeout(a)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function a(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(u){Object.assign(We.data,u)},dispose:s}))}function c(){o||t(void 0)}}),await We.promise)}async function Pp(){if(window.customElements.get($n))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Ep)),document.head.appendChild(e);const t=zc({styles:[await Mp()],data:()=>({readerData:We.data}),render(){return Xi(ul,this.readerData)}});window.customElements.define($n,t)}async function Mp(){const e=Object.assign({"./App.vue":xp,"./components/AutoNext.vue":uu,"./components/BottomSheet.vue":Au,"./components/ButtonDropdown.vue":Su,"./components/ButtonIcon.vue":Iu,"./components/ButtonReaderSettings.vue":cd,"./components/ButtonResetZoom.vue":bd,"./components/DirectionToast.vue":kd,"./components/GesturesContainer.vue":Bd,"./components/HelpScreen.vue":Cd,"./components/InputPercentage.vue":Ru,"./components/InputSelect.vue":Bu,"./components/IntersectionWrapper.vue":Nd,"./components/LoadingIndicator.vue":Kd,"./components/PageNav.vue":Td,"./components/PauseToast.vue":Dd,"./components/ReaderBody.vue":Gd,"./components/ReaderLayout.vue":rf,"./components/ReaderTour.vue":sf,"./components/TableField.vue":Fu,"./components/icons/IconBack.vue":df,"./components/icons/IconBookmarkNew.vue":mf,"./components/icons/IconBookmarked.vue":wf,"./components/icons/IconChevronLeft.vue":Cf,"./components/icons/IconChevronRight.vue":Mf,"./components/icons/IconClose.vue":Pu,"./components/icons/IconDouble.vue":jf,"./components/icons/IconDoubleSkip.vue":Vf,"./components/icons/IconExclamationCircle.vue":Tp,"./components/icons/IconFullscreen.vue":qf,"./components/icons/IconFullscreenExit.vue":Gf,"./components/icons/IconHelp.vue":Uu,"./components/icons/IconNext.vue":Sd,"./components/icons/IconPause.vue":Od,"./components/icons/IconPlay.vue":Rd,"./components/icons/IconReaderExit.vue":np,"./components/icons/IconSettings.vue":Qu,"./components/icons/IconTriangle.vue":gu,"./components/icons/IconZoom.vue":hd}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return $p});
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.7.2",
4
+ "version": "1.7.4",
5
5
  "license": "UNLICENSED",
6
- "description": "Trkun manga reader",
6
+ "description": "MP manga reader",
7
7
  "main": "index.js",
8
8
  "files": [
9
9
  "index.js"