gear-second 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +16 -16
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,29 +1,29 @@
1
- (function(Fe,Le){typeof exports=="object"&&typeof module<"u"?Le(exports):typeof define=="function"&&define.amd?define(["exports"],Le):(Fe=typeof globalThis<"u"?globalThis:Fe||self,Le(Fe._gearSecond_={}))})(this,function(Fe){"use strict";var Yp=Object.defineProperty;var Xp=(Fe,Le,de)=>Le in Fe?Yp(Fe,Le,{enumerable:!0,configurable:!0,writable:!0,value:de}):Fe[Le]=de;var me=(Fe,Le,de)=>(Xp(Fe,typeof Le!="symbol"?Le+"":Le,de),de);/**
1
+ (function(Ve,Le){typeof exports=="object"&&typeof module<"u"?Le(exports):typeof define=="function"&&define.amd?define(["exports"],Le):(Ve=typeof globalThis<"u"?globalThis:Ve||self,Le(Ve._gearSecond_={}))})(this,function(Ve){"use strict";var Xp=Object.defineProperty;var Zp=(Ve,Le,de)=>Le in Ve?Xp(Ve,Le,{enumerable:!0,configurable:!0,writable:!0,value:de}):Ve[Le]=de;var me=(Ve,Le,de)=>(Zp(Ve,typeof Le!="symbol"?Le+"":Le,de),de);/**
2
2
  * @vue/shared v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function Le(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const de={},Gt=[],Ve=()=>{},kl=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yo=e=>e.startsWith("onUpdate:"),xe=Object.assign,_o=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Cl=Object.prototype.hasOwnProperty,ce=(e,t)=>Cl.call(e,t),ne=Array.isArray,Qt=e=>An(e)==="[object Map]",Ci=e=>An(e)==="[object Set]",oe=e=>typeof e=="function",Se=e=>typeof e=="string",Jt=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Ii=e=>(ve(e)||oe(e))&&oe(e.then)&&oe(e.catch),Ei=Object.prototype.toString,An=e=>Ei.call(e),Il=e=>An(e).slice(8,-1),Ti=e=>An(e)==="[object Object]",wo=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jn=Le(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},El=/-(\w)/g,je=Dn(e=>e.replace(El,(t,n)=>n?n.toUpperCase():"")),Tl=/\B([A-Z])/g,He=Dn(e=>e.replace(Tl,"-$1").toLowerCase()),Rn=Dn(e=>e.charAt(0).toUpperCase()+e.slice(1)),xo=Dn(e=>e?`on${Rn(e)}`:""),it=(e,t)=>!Object.is(e,t),Bn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Nn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},So=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ko=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let $i;const Pi=()=>$i||($i=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ze(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=Se(o)?Ml(o):ze(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(Se(e)||ve(e))return e}const $l=/;(?![^(]*\))/g,Pl=/:([^]+)/,Ol=/\/\*[^]*?\*\//g;function Ml(e){const t={};return e.replace(Ol,"").split($l).forEach(n=>{if(n){const o=n.split(Pl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ee(e){let t="";if(Se(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const o=Ee(e[n]);o&&(t+=o+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ll=Le("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Oi(e){return!!e||e===""}const Ge=e=>Se(e)?e:e==null?"":ne(e)||ve(e)&&(e.toString===Ei||!oe(e.toString))?JSON.stringify(e,Mi,2):String(e),Mi=(e,t)=>t&&t.__v_isRef?Mi(e,t.value):Qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[Co(o,r)+" =>"]=i,n),{})}:Ci(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Co(n))}:Jt(t)?Co(t):ve(t)&&!ne(t)&&!Ti(t)?String(t):t,Co=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Le(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const de={},Gt=[],He=()=>{},Cl=()=>!1,An=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),_o=e=>e.startsWith("onUpdate:"),xe=Object.assign,wo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Il=Object.prototype.hasOwnProperty,ce=(e,t)=>Il.call(e,t),ne=Array.isArray,Qt=e=>jn(e)==="[object Map]",Ii=e=>jn(e)==="[object Set]",oe=e=>typeof e=="function",Se=e=>typeof e=="string",Jt=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Ei=e=>(ve(e)||oe(e))&&oe(e.then)&&oe(e.catch),Ti=Object.prototype.toString,jn=e=>Ti.call(e),El=e=>jn(e).slice(8,-1),$i=e=>jn(e)==="[object Object]",xo=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dn=Le(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tl=/-(\w)/g,je=Rn(e=>e.replace(Tl,(t,n)=>n?n.toUpperCase():"")),$l=/\B([A-Z])/g,We=Rn(e=>e.replace($l,"-$1").toLowerCase()),Bn=Rn(e=>e.charAt(0).toUpperCase()+e.slice(1)),So=Rn(e=>e?`on${Bn(e)}`:""),it=(e,t)=>!Object.is(e,t),Nn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Fn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ko=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Co=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let Pi;const Oi=()=>Pi||(Pi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ze(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=Se(o)?Ll(o):ze(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(Se(e)||ve(e))return e}const Pl=/;(?![^(]*\))/g,Ol=/:([^]+)/,Ml=/\/\*[^]*?\*\//g;function Ll(e){const t={};return e.replace(Ml,"").split(Pl).forEach(n=>{if(n){const o=n.split(Ol);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ee(e){let t="";if(Se(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const o=Ee(e[n]);o&&(t+=o+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const zl=Le("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Mi(e){return!!e||e===""}const Ge=e=>Se(e)?e:e==null?"":ne(e)||ve(e)&&(e.toString===Ti||!oe(e.toString))?JSON.stringify(e,Li,2):String(e),Li=(e,t)=>t&&t.__v_isRef?Li(e,t.value):Qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[Io(o,r)+" =>"]=i,n),{})}:Ii(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Io(n))}:Jt(t)?Io(t):ve(t)&&!ne(t)&&!$i(t)?String(t):t,Io=(e,t="")=>{var n;return Jt(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 We;class zl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Al(e,t=We){t&&t.active&&t.effects.push(e)}function Li(){return We}function jl(e){We&&We.cleanups.push(e)}let jt;class Io{constructor(t,n,o,i){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,Al(this,i)}get dirty(){if(this._dirtyLevel===1){yt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Dl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),_t()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=bt,n=jt;try{return bt=!0,jt=this,this._runnings++,zi(this),this.fn()}finally{Ai(this),this._runnings--,jt=n,bt=t}}stop(){var t;this.active&&(zi(this),Ai(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Dl(e){return e.value}function zi(e){e._trackId++,e._depsLength=0}function Ai(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ji(e.deps[t],e);e.deps.length=e._depsLength}}function ji(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let bt=!0,Eo=0;const Di=[];function yt(){Di.push(bt),bt=!1}function _t(){const e=Di.pop();bt=e===void 0?!0:e}function To(){Eo++}function $o(){for(Eo--;!Eo&&Po.length;)Po.shift()()}function Ri(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&ji(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Po=[];function Bi(e,t,n){To();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Ni(e),$o()}function Ni(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Po.push(t.scheduler))}const Fi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Oo=new WeakMap,Dt=Symbol(""),Mo=Symbol("");function De(e,t,n){if(bt&&jt){let o=Oo.get(e);o||Oo.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Fi(()=>o.delete(n))),Ri(jt,i)}}function ft(e,t,n,o,i,r){const s=Oo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ne(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Jt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ne(e)?wo(n)&&l.push(s.get("length")):(l.push(s.get(Dt)),Qt(e)&&l.push(s.get(Mo)));break;case"delete":ne(e)||(l.push(s.get(Dt)),Qt(e)&&l.push(s.get(Mo)));break;case"set":Qt(e)&&l.push(s.get(Dt));break}To();for(const a of l)a&&Bi(a,2);$o()}const Rl=Le("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt)),Hi=Bl();function Bl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ae(this);for(let r=0,s=this.length;r<s;r++)De(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(ae)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){yt(),To();const o=ae(this)[t].apply(this,n);return $o(),_t(),o}}),e}function Nl(e){const t=ae(this);return De(t,"has",e),t.hasOwnProperty(e)}class Wi{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?Jl:Qi:r?Gi:Zi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ne(t);if(!i){if(s&&ce(Hi,n))return Reflect.get(Hi,n,o);if(n==="hasOwnProperty")return Nl}const l=Reflect.get(t,n,o);return(Jt(n)?Vi.has(n):Rl(n))||(i||De(t,"get",n),r)?l:Ie(l)?s&&wo(n)?l:l.value:ve(l)?i?Ji(l):dn(l):l}}class Ki extends Wi{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=tn(r);if(!Un(o)&&!tn(o)&&(r=ae(r),o=ae(o)),!ne(t)&&Ie(r)&&!Ie(o))return a?!1:(r.value=o,!0)}const s=ne(t)&&wo(n)?Number(n)<t.length:ce(t,n),l=Reflect.set(t,n,o,i);return t===ae(i)&&(s?it(o,r)&&ft(t,"set",n,o):ft(t,"add",n,o)),l}deleteProperty(t,n){const o=ce(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&ft(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Jt(n)||!Vi.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",ne(t)?"length":Dt),Reflect.ownKeys(t)}}class Fl extends Wi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Vl=new Ki,Hl=new Fl,Wl=new Ki(!0),Lo=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function Vn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ae(e),r=ae(t);n||(it(t,r)&&De(i,"get",t),De(i,"get",r));const{has:s}=Fn(i),l=o?Lo:n?jo:fn;if(s.call(i,t))return l(e.get(t));if(s.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Hn(e,t=!1){const n=this.__v_raw,o=ae(n),i=ae(e);return t||(it(e,i)&&De(o,"has",e),De(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Wn(e,t=!1){return e=e.__v_raw,!t&&De(ae(e),"iterate",Dt),Reflect.get(e,"size",e)}function qi(e){e=ae(e);const t=ae(this);return Fn(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function Ui(e,t){t=ae(t);const n=ae(this),{has:o,get:i}=Fn(n);let r=o.call(n,e);r||(e=ae(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?it(t,s)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function Yi(e){const t=ae(this),{has:n,get:o}=Fn(t);let i=n.call(t,e);i||(e=ae(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&ft(t,"delete",e,void 0),r}function Xi(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&ft(e,"clear",void 0,void 0),n}function Kn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ae(s),a=t?Lo:e?jo:fn;return!e&&De(l,"iterate",Dt),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function qn(e,t,n){return function(...o){const i=this.__v_raw,r=ae(i),s=Qt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Lo:t?jo:fn;return!t&&De(r,"iterate",a?Mo:Dt),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Kl(){const e={get(r){return Vn(this,r)},get size(){return Wn(this)},has:Hn,add:qi,set:Ui,delete:Yi,clear:Xi,forEach:Kn(!1,!1)},t={get(r){return Vn(this,r,!1,!0)},get size(){return Wn(this)},has:Hn,add:qi,set:Ui,delete:Yi,clear:Xi,forEach:Kn(!1,!0)},n={get(r){return Vn(this,r,!0)},get size(){return Wn(this,!0)},has(r){return Hn.call(this,r,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Kn(!0,!1)},o={get(r){return Vn(this,r,!0,!0)},get size(){return Wn(this,!0)},has(r){return Hn.call(this,r,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:Kn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=qn(r,!1,!1),n[r]=qn(r,!0,!1),t[r]=qn(r,!1,!0),o[r]=qn(r,!0,!0)}),[e,n,t,o]}const[ql,Ul,Yl,Xl]=Kl();function zo(e,t){const n=t?e?Xl:Yl:e?Ul:ql;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(ce(n,i)&&i in o?n:o,i,r)}const Zl={get:zo(!1,!1)},Gl={get:zo(!1,!0)},Ql={get:zo(!0,!1)},Zi=new WeakMap,Gi=new WeakMap,Qi=new WeakMap,Jl=new WeakMap;function ea(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ta(e){return e.__v_skip||!Object.isExtensible(e)?0:ea(Il(e))}function dn(e){return tn(e)?e:Ao(e,!1,Vl,Zl,Zi)}function na(e){return Ao(e,!1,Wl,Gl,Gi)}function Ji(e){return Ao(e,!0,Hl,Ql,Qi)}function Ao(e,t,n,o,i){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=ta(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function en(e){return tn(e)?en(e.__v_raw):!!(e&&e.__v_isReactive)}function tn(e){return!!(e&&e.__v_isReadonly)}function Un(e){return!!(e&&e.__v_isShallow)}function er(e){return en(e)||tn(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function tr(e){return Nn(e,"__v_skip",!0),e}const fn=e=>ve(e)?dn(e):e,jo=e=>ve(e)?Ji(e):e;class nr{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Io(()=>t(this._value),()=>pn(this,1),()=>this.dep&&Ni(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ae(this);return(!t._cacheable||t.effect.dirty)&&it(t._value,t._value=t.effect.run())&&pn(t,2),Do(t),t.effect._dirtyLevel>=1&&pn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function oa(e,t,n=!1){let o,i;const r=oe(e);return r?(o=e,i=Ve):(o=e.get,i=e.set),new nr(o,i,r||!i,n)}function Do(e){bt&&jt&&(e=ae(e),Ri(jt,e.dep||(e.dep=Fi(()=>e.dep=void 0,e instanceof nr?e:void 0))))}function pn(e,t=2,n){e=ae(e);const o=e.dep;o&&Bi(o,t)}function Ie(e){return!!(e&&e.__v_isRef===!0)}function X(e){return ia(e,!1)}function ia(e,t){return Ie(e)?e:new ra(e,t)}class ra{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:fn(t)}get value(){return Do(this),this._value}set value(t){const n=this.__v_isShallow||Un(t)||tn(t);t=n?t:ae(t),it(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:fn(t),pn(this,2))}}function U(e){return Ie(e)?e.value:e}const sa={get:(e,t,n)=>U(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Ie(i)&&!Ie(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function or(e){return en(e)?e:new Proxy(e,sa)}class la{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Do(this),()=>pn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ir(e){return new la(e)}/**
9
+ **/let Ke;class Al{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function jl(e,t=Ke){t&&t.active&&t.effects.push(e)}function zi(){return Ke}function Dl(e){Ke&&Ke.cleanups.push(e)}let Dt;class Eo{constructor(t,n,o,i){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,jl(this,i)}get dirty(){if(this._dirtyLevel===1){yt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Rl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),_t()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=bt,n=Dt;try{return bt=!0,Dt=this,this._runnings++,Ai(this),this.fn()}finally{ji(this),this._runnings--,Dt=n,bt=t}}stop(){var t;this.active&&(Ai(this),ji(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Rl(e){return e.value}function Ai(e){e._trackId++,e._depsLength=0}function ji(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Di(e.deps[t],e);e.deps.length=e._depsLength}}function Di(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let bt=!0,To=0;const Ri=[];function yt(){Ri.push(bt),bt=!1}function _t(){const e=Ri.pop();bt=e===void 0?!0:e}function $o(){To++}function Po(){for(To--;!To&&Oo.length;)Oo.shift()()}function Bi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Di(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Oo=[];function Ni(e,t,n){$o();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Fi(e),Po()}function Fi(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 Vi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Rt=Symbol(""),Lo=Symbol("");function De(e,t,n){if(bt&&Dt){let o=Mo.get(e);o||Mo.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Vi(()=>o.delete(n))),Bi(Dt,i)}}function ft(e,t,n,o,i,r){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ne(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Jt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ne(e)?xo(n)&&l.push(s.get("length")):(l.push(s.get(Rt)),Qt(e)&&l.push(s.get(Lo)));break;case"delete":ne(e)||(l.push(s.get(Rt)),Qt(e)&&l.push(s.get(Lo)));break;case"set":Qt(e)&&l.push(s.get(Rt));break}$o();for(const a of l)a&&Ni(a,2);Po()}const Bl=Le("__proto__,__v_isRef,__isVue"),Hi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt)),Wi=Nl();function Nl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ae(this);for(let r=0,s=this.length;r<s;r++)De(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(ae)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){yt(),$o();const o=ae(this)[t].apply(this,n);return Po(),_t(),o}}),e}function Fl(e){const t=ae(this);return De(t,"has",e),t.hasOwnProperty(e)}class Ki{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?ea:Ji:r?Qi:Gi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ne(t);if(!i){if(s&&ce(Wi,n))return Reflect.get(Wi,n,o);if(n==="hasOwnProperty")return Fl}const l=Reflect.get(t,n,o);return(Jt(n)?Hi.has(n):Bl(n))||(i||De(t,"get",n),r)?l:Ie(l)?s&&xo(n)?l:l.value:ve(l)?i?er(l):dn(l):l}}class qi extends Ki{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=tn(r);if(!Yn(o)&&!tn(o)&&(r=ae(r),o=ae(o)),!ne(t)&&Ie(r)&&!Ie(o))return a?!1:(r.value=o,!0)}const s=ne(t)&&xo(n)?Number(n)<t.length:ce(t,n),l=Reflect.set(t,n,o,i);return t===ae(i)&&(s?it(o,r)&&ft(t,"set",n,o):ft(t,"add",n,o)),l}deleteProperty(t,n){const o=ce(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&ft(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Jt(n)||!Hi.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",ne(t)?"length":Rt),Reflect.ownKeys(t)}}class Vl extends Ki{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Hl=new qi,Wl=new Vl,Kl=new qi(!0),zo=e=>e,Vn=e=>Reflect.getPrototypeOf(e);function Hn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ae(e),r=ae(t);n||(it(t,r)&&De(i,"get",t),De(i,"get",r));const{has:s}=Vn(i),l=o?zo:n?Do:fn;if(s.call(i,t))return l(e.get(t));if(s.call(i,r))return l(e.get(r));e!==i&&e.get(t)}function Wn(e,t=!1){const n=this.__v_raw,o=ae(n),i=ae(e);return t||(it(e,i)&&De(o,"has",e),De(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Kn(e,t=!1){return e=e.__v_raw,!t&&De(ae(e),"iterate",Rt),Reflect.get(e,"size",e)}function Ui(e){e=ae(e);const t=ae(this);return Vn(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function Yi(e,t){t=ae(t);const n=ae(this),{has:o,get:i}=Vn(n);let r=o.call(n,e);r||(e=ae(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?it(t,s)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function Xi(e){const t=ae(this),{has:n,get:o}=Vn(t);let i=n.call(t,e);i||(e=ae(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&ft(t,"delete",e,void 0),r}function Zi(){const e=ae(this),t=e.size!==0,n=e.clear();return t&&ft(e,"clear",void 0,void 0),n}function qn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ae(s),a=t?zo:e?Do:fn;return!e&&De(l,"iterate",Rt),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function Un(e,t,n){return function(...o){const i=this.__v_raw,r=ae(i),s=Qt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?zo:t?Do:fn;return!t&&De(r,"iterate",a?Lo:Rt),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ql(){const e={get(r){return Hn(this,r)},get size(){return Kn(this)},has:Wn,add:Ui,set:Yi,delete:Xi,clear:Zi,forEach:qn(!1,!1)},t={get(r){return Hn(this,r,!1,!0)},get size(){return Kn(this)},has:Wn,add:Ui,set:Yi,delete:Xi,clear:Zi,forEach:qn(!1,!0)},n={get(r){return Hn(this,r,!0)},get size(){return Kn(this,!0)},has(r){return Wn.call(this,r,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:qn(!0,!1)},o={get(r){return Hn(this,r,!0,!0)},get size(){return Kn(this,!0)},has(r){return Wn.call(this,r,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:qn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Un(r,!1,!1),n[r]=Un(r,!0,!1),t[r]=Un(r,!1,!0),o[r]=Un(r,!0,!0)}),[e,n,t,o]}const[Ul,Yl,Xl,Zl]=ql();function Ao(e,t){const n=t?e?Zl:Xl:e?Yl:Ul;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(ce(n,i)&&i in o?n:o,i,r)}const Gl={get:Ao(!1,!1)},Ql={get:Ao(!1,!0)},Jl={get:Ao(!0,!1)},Gi=new WeakMap,Qi=new WeakMap,Ji=new WeakMap,ea=new WeakMap;function ta(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function na(e){return e.__v_skip||!Object.isExtensible(e)?0:ta(El(e))}function dn(e){return tn(e)?e:jo(e,!1,Hl,Gl,Gi)}function oa(e){return jo(e,!1,Kl,Ql,Qi)}function er(e){return jo(e,!0,Wl,Jl,Ji)}function jo(e,t,n,o,i){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=na(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function en(e){return tn(e)?en(e.__v_raw):!!(e&&e.__v_isReactive)}function tn(e){return!!(e&&e.__v_isReadonly)}function Yn(e){return!!(e&&e.__v_isShallow)}function tr(e){return en(e)||tn(e)}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function nr(e){return Fn(e,"__v_skip",!0),e}const fn=e=>ve(e)?dn(e):e,Do=e=>ve(e)?er(e):e;class or{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Eo(()=>t(this._value),()=>pn(this,1),()=>this.dep&&Fi(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ae(this);return(!t._cacheable||t.effect.dirty)&&it(t._value,t._value=t.effect.run())&&pn(t,2),Ro(t),t.effect._dirtyLevel>=1&&pn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ia(e,t,n=!1){let o,i;const r=oe(e);return r?(o=e,i=He):(o=e.get,i=e.set),new or(o,i,r||!i,n)}function Ro(e){bt&&Dt&&(e=ae(e),Bi(Dt,e.dep||(e.dep=Vi(()=>e.dep=void 0,e instanceof or?e:void 0))))}function pn(e,t=2,n){e=ae(e);const o=e.dep;o&&Ni(o,t)}function Ie(e){return!!(e&&e.__v_isRef===!0)}function X(e){return ra(e,!1)}function ra(e,t){return Ie(e)?e:new sa(e,t)}class sa{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:fn(t)}get value(){return Ro(this),this._value}set value(t){const n=this.__v_isShallow||Yn(t)||tn(t);t=n?t:ae(t),it(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:fn(t),pn(this,2))}}function U(e){return Ie(e)?e.value:e}const la={get:(e,t,n)=>U(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Ie(i)&&!Ie(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function ir(e){return en(e)?e:new Proxy(e,la)}class aa{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Ro(this),()=>pn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function rr(e){return new aa(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 hn=[];function Gp(e,...t){yt();const n=hn.length?hn[hn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=aa();if(o)pt(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${Qr(n,r.type)}>`).join(`
13
+ **/const hn=[];function Qp(e,...t){yt();const n=hn.length?hn[hn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=ca();if(o)pt(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${Jr(n,r.type)}>`).join(`
14
14
  `),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
15
- `,...ca(i)),console.warn(...r)}_t()}function aa(){let e=hn[hn.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 ca(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...ua(n))}),t}function ua({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${Qr(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...da(e.props),r]:[i+r]}function da(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...rr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function rr(e,t,n){return Se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ie(t)?(t=rr(e,ae(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):oe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ae(t),n?t:[`${e}=`,t])}function pt(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Yn(r,t,n)}return i}function Qe(e,t,n,o){if(oe(e)){const r=pt(e,t,n,o);return r&&Ii(r)&&r.catch(s=>{Yn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Qe(e[r],t,n,o));return i}function Yn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){pt(a,null,10,[e,s,l]);return}}fa(e,n,i,o)}function fa(e,t,n,o=!0){console.error(e)}let gn=!1,Ro=!1;const Me=[];let rt=0;const nn=[];let xt=null,Rt=0;const sr=Promise.resolve();let Bo=null;function ht(e){const t=Bo||sr;return e?t.then(this?e.bind(this):e):t}function pa(e){let t=rt+1,n=Me.length;for(;t<n;){const o=t+n>>>1,i=Me[o],r=mn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function No(e){(!Me.length||!Me.includes(e,gn&&e.allowRecurse?rt+1:rt))&&(e.id==null?Me.push(e):Me.splice(pa(e.id),0,e),lr())}function lr(){!gn&&!Ro&&(Ro=!0,Bo=sr.then(ur))}function ha(e){const t=Me.indexOf(e);t>rt&&Me.splice(t,1)}function ga(e){ne(e)?nn.push(...e):(!xt||!xt.includes(e,e.allowRecurse?Rt+1:Rt))&&nn.push(e),lr()}function ar(e,t,n=gn?rt+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 cr(e){if(nn.length){const t=[...new Set(nn)].sort((n,o)=>mn(n)-mn(o));if(nn.length=0,xt){xt.push(...t);return}for(xt=t,Rt=0;Rt<xt.length;Rt++)xt[Rt]();xt=null,Rt=0}}const mn=e=>e.id==null?1/0:e.id,ma=(e,t)=>{const n=mn(e)-mn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ur(e){Ro=!1,gn=!0,Me.sort(ma);const t=Ve;try{for(rt=0;rt<Me.length;rt++){const n=Me[rt];n&&n.active!==!1&&pt(n,null,14)}}finally{rt=0,Me.length=0,cr(),gn=!1,Bo=null,(Me.length||nn.length)&&ur()}}function va(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||de;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:p}=o[u]||de;p&&(i=n.map(x=>Se(x)?x.trim():x)),d&&(i=n.map(So))}let l,a=o[l=xo(t)]||o[l=xo(je(t))];!a&&r&&(a=o[l=xo(He(t))]),a&&Qe(a,e,6,i);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,i)}}function dr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!oe(e)){const a=c=>{const u=dr(c,t,!0);u&&(l=!0,xe(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(ve(e)&&o.set(e,null),null):(ne(r)?r.forEach(a=>s[a]=null):xe(s,r),ve(e)&&o.set(e,s),s)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,He(t))||ce(e,t))}let Te=null,fr=null;function Zn(e){const t=Te;return Te=e,fr=e&&e.type.__scopeId||null,t}function ie(e,t=Te,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Hr(-1);const r=Zn(t);let s;try{s=e(...i)}finally{Zn(r),o._d&&Hr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Qp(){}function Fo(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:p,setupState:x,ctx:R,inheritAttrs:$}=e;let F,C;const B=Zn(e);try{if(n.shapeFlag&4){const M=i||o,_=M;F=lt(u.call(_,M,d,r,x,p,R)),C=a}else{const M=t;F=lt(M.length>1?M(r,{attrs:a,slots:l,emit:c}):M(r,null)),C=t.props?a:ba(a)}}catch(M){wn.length=0,Yn(M,e,1),F=Q(et)}let b=F;if(C&&$!==!1){const M=Object.keys(C),{shapeFlag:_}=b;M.length&&_&7&&(s&&M.some(yo)&&(C=ya(C,s)),b=kt(b,C))}return n.dirs&&(b=kt(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),F=b,Zn(B),F}const ba=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},ya=(e,t)=>{const n={};for(const o in e)(!yo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function _a(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?pr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(s[p]!==o[p]&&!Xn(c,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?pr(o,s,c):!0:!!s;return!1}function pr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Xn(n,r))return!0}return!1}function wa({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 hr="components",gr=Symbol.for("v-ndc");function mr(e){return Se(e)?xa(hr,e,!1)||e:e||gr}function xa(e,t,n=!0,o=!1){const i=Te||Pe;if(i){const r=i.type;if(e===hr){const l=Gr(r,!1);if(l&&(l===t||l===je(t)||l===Rn(je(t))))return r}const s=vr(i[e]||r[e],t)||vr(i.appContext[e],t);return!s&&o?r:s}}function vr(e,t){return e&&(e[t]||e[je(t)]||e[Rn(je(t))])}const Sa=e=>e.__isSuspense;function ka(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):ga(e)}const Ca=Symbol.for("v-scx"),Ia=()=>Vt(Ca);function Ea(e,t){return Qn(e,null,t)}function Ta(e,t){return Qn(e,null,{flush:"sync"})}const Gn={};function fe(e,t,n){return Qn(e,t,n)}function Qn(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=de){if(t&&r){const w=t;t=(...j)=>{w(...j),_()}}const a=Pe,c=w=>o===!0?w:Bt(w,o===!1?1:void 0);let u,d=!1,p=!1;if(Ie(e)?(u=()=>e.value,d=Un(e)):en(e)?(u=()=>c(e),d=!0):ne(e)?(p=!0,d=e.some(w=>en(w)||Un(w)),u=()=>e.map(w=>{if(Ie(w))return w.value;if(en(w))return c(w);if(oe(w))return pt(w,a,2)})):oe(e)?t?u=()=>pt(e,a,2):u=()=>(x&&x(),Qe(e,a,3,[R])):u=Ve,t&&o){const w=u;u=()=>Bt(w())}let x,R=w=>{x=b.onStop=()=>{pt(w,a,4),x=b.onStop=void 0}},$;if(ho)if(R=Ve,t?n&&Qe(t,a,3,[u(),p?[]:void 0,R]):u(),i==="sync"){const w=Ia();$=w.__watcherHandles||(w.__watcherHandles=[])}else return Ve;let F=p?new Array(e.length).fill(Gn):Gn;const C=()=>{if(!(!b.active||!b.dirty))if(t){const w=b.run();(o||d||(p?w.some((j,m)=>it(j,F[m])):it(w,F)))&&(x&&x(),Qe(t,a,3,[w,F===Gn?void 0:p&&F[0]===Gn?[]:F,R]),F=w)}else b.run()};C.allowRecurse=!!t;let B;i==="sync"?B=C:i==="post"?B=()=>Be(C,a&&a.suspense):(C.pre=!0,a&&(C.id=a.uid),B=()=>No(C));const b=new Io(u,Ve,B),M=Li(),_=()=>{b.stop(),M&&_o(M.effects,b)};return t?n?C():F=b.run():i==="post"?Be(b.run.bind(b),a&&a.suspense):b.run(),$&&$.push(_),_}function $a(e,t,n){const o=this.proxy,i=Se(e)?e.includes(".")?br(o,e):()=>o[e]:e.bind(o,o);let r;oe(t)?r=t:(r=t.handler,n=t);const s=kn(this),l=Qn(i,r.bind(o),n);return s(),l}function br(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function Bt(e,t,n=0,o){if(!ve(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),Ie(e))Bt(e.value,t,n,o);else if(ne(e))for(let i=0;i<e.length;i++)Bt(e[i],t,n,o);else if(Ci(e)||Qt(e))e.forEach(i=>{Bt(i,t,n,o)});else if(Ti(e))for(const i in e)Bt(e[i],t,n,o);return e}function st(e,t){if(Te===null)return e;const n=go(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=de]=t[i];r&&(oe(r)&&(r={mounted:r,updated:r}),r.deep&&Bt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Nt(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];r&&(l.oldValue=r[s].value);let a=l.dir[o];a&&(yt(),Qe(a,n,8,[e.el,l,e,t]),_t())}}const St=Symbol("_leaveCb"),Jn=Symbol("_enterCb");function Pa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Re(()=>{e.isMounted=!0}),Ko(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],yr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},Oa={name:"BaseTransition",props:yr,setup(e,{slots:t}){const n=fo(),o=Pa();let i;return()=>{const r=t.default&&xr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const $ of r)if($.type!==et){s=$;break}}const l=ae(e),{mode:a}=l;if(o.isLeaving)return Ho(s);const c=wr(s);if(!c)return Ho(s);const u=Vo(c,l,o,n);Wo(c,u);const d=n.subTree,p=d&&wr(d);let x=!1;const{getTransitionKey:R}=c.type;if(R){const $=R();i===void 0?i=$:$!==i&&(i=$,x=!0)}if(p&&p.type!==et&&(!Wt(c,p)||x)){const $=Vo(p,l,o,n);if(Wo(p,$),a==="out-in")return o.isLeaving=!0,$.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ho(s);a==="in-out"&&c.type!==et&&($.delayLeave=(F,C,B)=>{const b=_r(o,p);b[String(p.key)]=p,F[St]=()=>{C(),F[St]=void 0,delete u.delayedLeave},u.delayedLeave=B})}return s}}};function _r(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:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:x,onLeaveCancelled:R,onBeforeAppear:$,onAppear:F,onAfterAppear:C,onAppearCancelled:B}=t,b=String(e.key),M=_r(n,e),_=(m,L)=>{m&&Qe(m,o,9,L)},w=(m,L)=>{const z=L[1];_(m,L),ne(m)?m.every(J=>J.length<=1)&&z():m.length<=1&&z()},j={mode:r,persisted:s,beforeEnter(m){let L=l;if(!n.isMounted)if(i)L=$||l;else return;m[St]&&m[St](!0);const z=M[b];z&&Wt(e,z)&&z.el[St]&&z.el[St](),_(L,[m])},enter(m){let L=a,z=c,J=u;if(!n.isMounted)if(i)L=F||a,z=C||c,J=B||u;else return;let y=!1;const g=m[Jn]=V=>{y||(y=!0,V?_(J,[m]):_(z,[m]),j.delayedLeave&&j.delayedLeave(),m[Jn]=void 0)};L?w(L,[m,g]):g()},leave(m,L){const z=String(e.key);if(m[Jn]&&m[Jn](!0),n.isUnmounting)return L();_(d,[m]);let J=!1;const y=m[St]=g=>{J||(J=!0,L(),g?_(R,[m]):_(x,[m]),m[St]=void 0,M[z]===e&&delete M[z])};M[z]=e,p?w(p,[m,y]):y()},clone(m){return Vo(m,t,n,o)}};return j}function Ho(e){if(eo(e))return e=kt(e),e.children=null,e}function wr(e){return eo(e)?e.children?e.children[0]:void 0:e}function Wo(e,t){e.shapeFlag&6&&e.component?Wo(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 xr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ce?(s.patchFlag&128&&i++,o=o.concat(xr(s.children,t,l))):(t||s.type!==et)&&o.push(l!=null?kt(s,{key:l}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ke(e,t){return oe(e)?(()=>xe({name:e.name},t,{setup:e}))():e}const vn=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function Ma(e,t){Sr(e,"a",t)}function La(e,t){Sr(e,"da",t)}function Sr(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(to(t,o,n),n){let i=n.parent;for(;i&&i.parent;)eo(i.parent.vnode)&&za(o,t,n,i),i=i.parent}}function za(e,t,n,o){const i=to(t,e,o,!0);Ft(()=>{_o(o[t],i)},n)}function to(e,t,n=Pe,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;yt();const l=kn(n),a=Qe(t,n,e,s);return l(),_t(),a});return o?i.unshift(r):i.push(r),r}}const gt=e=>(t,n=Pe)=>(!ho||e==="sp")&&to(e,(...o)=>t(...o),n),Aa=gt("bm"),Re=gt("m"),ja=gt("bu"),kr=gt("u"),Ko=gt("bum"),Ft=gt("um"),Da=gt("sp"),Ra=gt("rtg"),Ba=gt("rtc");function Na(e,t=Pe){to("ec",e,t)}function bn(e,t,n,o){let i;const r=n&&n[o];if(ne(e)||Se(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(ve(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function Cr(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ne(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.key?(...i)=>{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function we(e,t,n={},o,i){if(Te.isCE||Te.parent&&vn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),O();const s=r&&Ir(r(n)),l=pe(Ce,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Ir(e){return e.some(t=>ao(t)?!(t.type===et||t.type===Ce&&!Ir(t.children)):!0)?e:null}const qo=e=>e?Ur(e)?go(e)||e.proxy:qo(e.parent):null,yn=xe(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=>qo(e.parent),$root:e=>qo(e.root),$emit:e=>e.emit,$options:e=>Xo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,No(e.update)}),$nextTick:e=>e.n||(e.n=ht.bind(e.proxy)),$watch:e=>$a.bind(e)}),Uo=(e,t)=>e!==de&&!e.__isScriptSetup&&ce(e,t),Fa={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,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 i[t];case 4:return n[t];case 3:return r[t]}else{if(Uo(o,t))return s[t]=1,o[t];if(i!==de&&ce(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&ce(c,t))return s[t]=3,r[t];if(n!==de&&ce(n,t))return s[t]=4,n[t];Yo&&(s[t]=0)}}const u=yn[t];let d,p;if(u)return t==="$attrs"&&De(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==de&&ce(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,ce(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Uo(i,t)?(i[t]=n,!0):o!==de&&ce(o,t)?(o[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},s){let l;return!!n[s]||e!==de&&ce(e,s)||Uo(t,s)||(l=r[0])&&ce(l,s)||ce(o,s)||ce(yn,s)||ce(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function no(e){return ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function on(e,t){return!e||!t?e||t:ne(e)&&ne(t)?e.concat(t):xe({},no(e),no(t))}let Yo=!0;function Va(e){const t=Xo(e),n=e.proxy,o=e.ctx;Yo=!1,t.beforeCreate&&Er(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:x,updated:R,activated:$,deactivated:F,beforeDestroy:C,beforeUnmount:B,destroyed:b,unmounted:M,render:_,renderTracked:w,renderTriggered:j,errorCaptured:m,serverPrefetch:L,expose:z,inheritAttrs:J,components:y,directives:g,filters:V}=t;if(c&&Ha(c,o,null),s)for(const I in s){const K=s[I];oe(K)&&(o[I]=K.bind(n))}if(i){const I=i.call(n,n);ve(I)&&(e.data=dn(I))}if(Yo=!0,r)for(const I in r){const K=r[I],le=oe(K)?K.bind(n,n):oe(K.get)?K.get.bind(n,n):Ve,ue=!oe(K)&&oe(K.set)?K.set.bind(n):Ve,be=se({get:le,set:ue});Object.defineProperty(o,I,{enumerable:!0,configurable:!0,get:()=>be.value,set:_e=>be.value=_e})}if(l)for(const I in l)Tr(l[I],o,n,I);if(a){const I=oe(a)?a.call(n):a;Reflect.ownKeys(I).forEach(K=>{ro(K,I[K])})}u&&Er(u,e,"c");function re(I,K){ne(K)?K.forEach(le=>I(le.bind(n))):K&&I(K.bind(n))}if(re(Aa,d),re(Re,p),re(ja,x),re(kr,R),re(Ma,$),re(La,F),re(Na,m),re(Ba,w),re(Ra,j),re(Ko,B),re(Ft,M),re(Da,L),ne(z))if(z.length){const I=e.exposed||(e.exposed={});z.forEach(K=>{Object.defineProperty(I,K,{get:()=>n[K],set:le=>n[K]=le})})}else e.exposed||(e.exposed={});_&&e.render===Ve&&(e.render=_),J!=null&&(e.inheritAttrs=J),y&&(e.components=y),g&&(e.directives=g)}function Ha(e,t,n=Ve){ne(e)&&(e=Zo(e));for(const o in e){const i=e[o];let r;ve(i)?"default"in i?r=Vt(i.from||o,i.default,!0):r=Vt(i.from||o):r=Vt(i),Ie(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Er(e,t,n){Qe(ne(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Tr(e,t,n,o){const i=o.includes(".")?br(n,o):()=>n[o];if(Se(e)){const r=t[e];oe(r)&&fe(i,r)}else if(oe(e))fe(i,e.bind(n));else if(ve(e))if(ne(e))e.forEach(r=>Tr(r,t,n,o));else{const r=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(r)&&fe(i,r,e)}}function Xo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!o?a=t:(a={},i.length&&i.forEach(c=>oo(a,c,s,!0)),oo(a,t,s)),ve(t)&&r.set(t,a),a}function oo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&oo(e,r,n,!0),i&&i.forEach(s=>oo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Wa[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Wa={data:$r,props:Pr,emits:Pr,methods:_n,computed:_n,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:_n,directives:_n,watch:qa,provide:$r,inject:Ka};function $r(e,t){return t?e?function(){return xe(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function Ka(e,t){return _n(Zo(e),Zo(t))}function Zo(e){if(ne(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 _n(e,t){return e?xe(Object.create(null),e,t):t}function Pr(e,t){return e?ne(e)&&ne(t)?[...new Set([...e,...t])]:xe(Object.create(null),no(e),no(t??{})):t}function qa(e,t){if(!e)return t;if(!t)return e;const n=xe(Object.create(null),e);for(const o in t)n[o]=Ae(e[o],t[o]);return n}function Or(){return{app:null,config:{isNativeTag:kl,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 Ua=0;function Ya(e,t){return function(o,i=null){oe(o)||(o=xe({},o)),i!=null&&!ve(i)&&(i=null);const r=Or(),s=new WeakSet;let l=!1;const a=r.app={_uid:Ua++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:yc,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&oe(c.install)?(s.add(c),c.install(a,...u)):oe(c)&&(s.add(c),c(a,...u))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,d){if(!l){const p=Q(o,i);return p.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(p,c):e(p,c,d),l=!0,a._container=c,c.__vue_app__=a,go(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){io=a;try{return c()}finally{io=null}}};return a}}let io=null;function ro(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||io){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:io._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&oe(t)?t.call(o&&o.proxy):t}}function Xa(e,t,n,o=!1){const i={},r={};Nn(r,co,1),e.propsDefaults=Object.create(null),Mr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:na(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Za(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ae(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Xn(e.emitsOptions,p))continue;const x=t[p];if(a)if(ce(r,p))x!==r[p]&&(r[p]=x,c=!0);else{const R=je(p);i[R]=Go(a,l,R,x,e,!1)}else x!==r[p]&&(r[p]=x,c=!0)}}}else{Mr(e,t,i,r)&&(c=!0);let u;for(const d in l)(!t||!ce(t,d)&&((u=He(d))===d||!ce(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=Go(a,l,d,void 0,e,!0)):delete i[d]);if(r!==l)for(const d in r)(!t||!ce(t,d))&&(delete r[d],c=!0)}c&&ft(e,"set","$attrs")}function Mr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(jn(a))continue;const c=t[a];let u;i&&ce(i,u=je(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Xn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ae(n),c=l||de;for(let u=0;u<r.length;u++){const d=r[u];n[d]=Go(i,a,d,c[d],e,!ce(c,d))}}return s}function Go(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=ce(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&oe(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=kn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===He(n))&&(o=!0))}return o}function Lr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!oe(e)){const u=d=>{a=!0;const[p,x]=Lr(d,t,!0);xe(s,p),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return ve(e)&&o.set(e,Gt),Gt;if(ne(r))for(let u=0;u<r.length;u++){const d=je(r[u]);zr(d)&&(s[d]=de)}else if(r)for(const u in r){const d=je(u);if(zr(d)){const p=r[u],x=s[d]=ne(p)||oe(p)?{type:p}:xe({},p);if(x){const R=Dr(Boolean,x.type),$=Dr(String,x.type);x[0]=R>-1,x[1]=$<0||R<$,(R>-1||ce(x,"default"))&&l.push(d)}}}const c=[s,l];return ve(e)&&o.set(e,c),c}function zr(e){return e[0]!=="$"}function Ar(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function jr(e,t){return Ar(e)===Ar(t)}function Dr(e,t){return ne(t)?t.findIndex(n=>jr(n,e)):oe(t)&&jr(t,e)?0:-1}const Rr=e=>e[0]==="_"||e==="$stable",Qo=e=>ne(e)?e.map(lt):[lt(e)],Ga=(e,t,n)=>{if(t._n)return t;const o=ie((...i)=>Qo(t(...i)),n);return o._c=!1,o},Br=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Rr(i))continue;const r=e[i];if(oe(r))t[i]=Ga(i,r,o);else if(r!=null){const s=Qo(r);t[i]=()=>s}}},Nr=(e,t)=>{const n=Qo(t);e.slots.default=()=>n},Qa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Nn(t,"_",n)):Br(t,e.slots={})}else e.slots={},t&&Nr(e,t);Nn(e.slots,co,1)},Ja=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=de;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(xe(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Br(t,i)),s=t}else t&&(Nr(e,t),s={default:1});if(r)for(const l in i)!Rr(l)&&s[l]==null&&delete i[l]};function Jo(e,t,n,o,i=!1){if(ne(e)){e.forEach((p,x)=>Jo(p,t&&(ne(t)?t[x]:t),n,o,i));return}if(vn(o)&&!i)return;const r=o.shapeFlag&4?go(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===de?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(Se(c)?(u[c]=null,ce(d,c)&&(d[c]=null)):Ie(c)&&(c.value=null)),oe(a))pt(a,l,12,[s,u]);else{const p=Se(a),x=Ie(a),R=e.f;if(p||x){const $=()=>{if(R){const F=p?ce(d,a)?d[a]:u[a]:a.value;i?ne(F)&&_o(F,r):ne(F)?F.includes(r)||F.push(r):p?(u[a]=[r],ce(d,a)&&(d[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else p?(u[a]=s,ce(d,a)&&(d[a]=s)):x&&(a.value=s,e.k&&(u[e.k]=s))};i||R?$():($.id=-1,Be($,n))}}}const Be=ka;function ec(e){return tc(e)}function tc(e,t){const n=Pi();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:x=Ve,insertStaticContent:R}=e,$=(f,h,S,E=null,T=null,D=null,N=void 0,A=null,H=!!h.dynamicChildren)=>{if(f===h)return;f&&!Wt(f,h)&&(E=vt(f),_e(f,T,D,!0),f=null),h.patchFlag===-2&&(H=!1,h.dynamicChildren=null);const{type:P,ref:W,shapeFlag:ee}=h;switch(P){case so:F(f,h,S,E);break;case et:C(f,h,S,E);break;case lo:f==null&&B(h,S,E,N);break;case Ce:y(f,h,S,E,T,D,N,A,H);break;default:ee&1?_(f,h,S,E,T,D,N,A,H):ee&6?g(f,h,S,E,T,D,N,A,H):(ee&64||ee&128)&&P.process(f,h,S,E,T,D,N,A,H,ut)}W!=null&&T&&Jo(W,f&&f.ref,D,h||f,!h)},F=(f,h,S,E)=>{if(f==null)o(h.el=l(h.children),S,E);else{const T=h.el=f.el;h.children!==f.children&&c(T,h.children)}},C=(f,h,S,E)=>{f==null?o(h.el=a(h.children||""),S,E):h.el=f.el},B=(f,h,S,E)=>{[f.el,f.anchor]=R(f.children,h,S,E,f.el,f.anchor)},b=({el:f,anchor:h},S,E)=>{let T;for(;f&&f!==h;)T=p(f),o(f,S,E),f=T;o(h,S,E)},M=({el:f,anchor:h})=>{let S;for(;f&&f!==h;)S=p(f),i(f),f=S;i(h)},_=(f,h,S,E,T,D,N,A,H)=>{h.type==="svg"?N="svg":h.type==="math"&&(N="mathml"),f==null?w(h,S,E,T,D,N,A,H):L(f,h,T,D,N,A,H)},w=(f,h,S,E,T,D,N,A)=>{let H,P;const{props:W,shapeFlag:ee,transition:v,dirs:k}=f;if(H=f.el=s(f.type,D,W&&W.is,W),ee&8?u(H,f.children):ee&16&&m(f.children,H,null,E,T,ei(f,D),N,A),k&&Nt(f,null,E,"created"),j(H,f,f.scopeId,N,E),W){for(const te in W)te!=="value"&&!jn(te)&&r(H,te,null,W[te],D,f.children,E,T,Ye);"value"in W&&r(H,"value",null,W.value,D),(P=W.onVnodeBeforeMount)&&at(P,E,f)}k&&Nt(f,null,E,"beforeMount");const q=nc(T,v);q&&v.beforeEnter(H),o(H,h,S),((P=W&&W.onVnodeMounted)||q||k)&&Be(()=>{P&&at(P,E,f),q&&v.enter(H),k&&Nt(f,null,E,"mounted")},T)},j=(f,h,S,E,T)=>{if(S&&x(f,S),E)for(let D=0;D<E.length;D++)x(f,E[D]);if(T){let D=T.subTree;if(h===D){const N=T.vnode;j(f,N,N.scopeId,N.slotScopeIds,T.parent)}}},m=(f,h,S,E,T,D,N,A,H=0)=>{for(let P=H;P<f.length;P++){const W=f[P]=A?It(f[P]):lt(f[P]);$(null,W,h,S,E,T,D,N,A)}},L=(f,h,S,E,T,D,N)=>{const A=h.el=f.el;let{patchFlag:H,dynamicChildren:P,dirs:W}=h;H|=f.patchFlag&16;const ee=f.props||de,v=h.props||de;let k;if(S&&Ht(S,!1),(k=v.onVnodeBeforeUpdate)&&at(k,S,h,f),W&&Nt(h,f,S,"beforeUpdate"),S&&Ht(S,!0),P?z(f.dynamicChildren,P,A,S,E,ei(h,T),D):N||K(f,h,A,null,S,E,ei(h,T),D,!1),H>0){if(H&16)J(A,h,ee,v,S,E,T);else if(H&2&&ee.class!==v.class&&r(A,"class",null,v.class,T),H&4&&r(A,"style",ee.style,v.style,T),H&8){const q=h.dynamicProps;for(let te=0;te<q.length;te++){const ge=q[te],$e=ee[ge],ot=v[ge];(ot!==$e||ge==="value")&&r(A,ge,$e,ot,T,f.children,S,E,Ye)}}H&1&&f.children!==h.children&&u(A,h.children)}else!N&&P==null&&J(A,h,ee,v,S,E,T);((k=v.onVnodeUpdated)||W)&&Be(()=>{k&&at(k,S,h,f),W&&Nt(h,f,S,"updated")},E)},z=(f,h,S,E,T,D,N)=>{for(let A=0;A<h.length;A++){const H=f[A],P=h[A],W=H.el&&(H.type===Ce||!Wt(H,P)||H.shapeFlag&70)?d(H.el):S;$(H,P,W,null,E,T,D,N,!0)}},J=(f,h,S,E,T,D,N)=>{if(S!==E){if(S!==de)for(const A in S)!jn(A)&&!(A in E)&&r(f,A,S[A],null,N,h.children,T,D,Ye);for(const A in E){if(jn(A))continue;const H=E[A],P=S[A];H!==P&&A!=="value"&&r(f,A,P,H,N,h.children,T,D,Ye)}"value"in E&&r(f,"value",S.value,E.value,N)}},y=(f,h,S,E,T,D,N,A,H)=>{const P=h.el=f?f.el:l(""),W=h.anchor=f?f.anchor:l("");let{patchFlag:ee,dynamicChildren:v,slotScopeIds:k}=h;k&&(A=A?A.concat(k):k),f==null?(o(P,S,E),o(W,S,E),m(h.children||[],S,W,T,D,N,A,H)):ee>0&&ee&64&&v&&f.dynamicChildren?(z(f.dynamicChildren,v,S,T,D,N,A),(h.key!=null||T&&h===T.subTree)&&Fr(f,h,!0)):K(f,h,S,W,T,D,N,A,H)},g=(f,h,S,E,T,D,N,A,H)=>{h.slotScopeIds=A,f==null?h.shapeFlag&512?T.ctx.activate(h,S,E,N,H):V(h,S,E,T,D,N,H):G(f,h,H)},V=(f,h,S,E,T,D,N)=>{const A=f.component=dc(f,E,T);if(eo(f)&&(A.ctx.renderer=ut),fc(A),A.asyncDep){if(T&&T.registerDep(A,re),!f.el){const H=A.subTree=Q(et);C(null,H,h,S)}}else re(A,f,h,S,T,D,N)},G=(f,h,S)=>{const E=h.component=f.component;if(_a(f,h,S))if(E.asyncDep&&!E.asyncResolved){I(E,h,S);return}else E.next=h,ha(E.update),E.effect.dirty=!0,E.update();else h.el=f.el,E.vnode=h},re=(f,h,S,E,T,D,N)=>{const A=()=>{if(f.isMounted){let{next:W,bu:ee,u:v,parent:k,vnode:q}=f;{const un=Vr(f);if(un){W&&(W.el=q.el,I(f,W,N)),un.asyncDep.then(()=>{f.isUnmounted||A()});return}}let te=W,ge;Ht(f,!1),W?(W.el=q.el,I(f,W,N)):W=q,ee&&Bn(ee),(ge=W.props&&W.props.onVnodeBeforeUpdate)&&at(ge,k,W,q),Ht(f,!0);const $e=Fo(f),ot=f.subTree;f.subTree=$e,$(ot,$e,d(ot.el),vt(ot),f,T,D),W.el=$e.el,te===null&&wa(f,$e.el),v&&Be(v,T),(ge=W.props&&W.props.onVnodeUpdated)&&Be(()=>at(ge,k,W,q),T)}else{let W;const{el:ee,props:v}=h,{bm:k,m:q,parent:te}=f,ge=vn(h);if(Ht(f,!1),k&&Bn(k),!ge&&(W=v&&v.onVnodeBeforeMount)&&at(W,te,h),Ht(f,!0),ee&&At){const $e=()=>{f.subTree=Fo(f),At(ee,f.subTree,f,T,null)};ge?h.type.__asyncLoader().then(()=>!f.isUnmounted&&$e()):$e()}else{const $e=f.subTree=Fo(f);$(null,$e,S,E,f,T,D),h.el=$e.el}if(q&&Be(q,T),!ge&&(W=v&&v.onVnodeMounted)){const $e=h;Be(()=>at(W,te,$e),T)}(h.shapeFlag&256||te&&vn(te.vnode)&&te.vnode.shapeFlag&256)&&f.a&&Be(f.a,T),f.isMounted=!0,h=S=E=null}},H=f.effect=new Io(A,Ve,()=>No(P),f.scope),P=f.update=()=>{H.dirty&&H.run()};P.id=f.uid,Ht(f,!0),P()},I=(f,h,S)=>{h.component=f;const E=f.vnode.props;f.vnode=h,f.next=null,Za(f,h.props,E,S),Ja(f,h.children,S),yt(),ar(f),_t()},K=(f,h,S,E,T,D,N,A,H=!1)=>{const P=f&&f.children,W=f?f.shapeFlag:0,ee=h.children,{patchFlag:v,shapeFlag:k}=h;if(v>0){if(v&128){ue(P,ee,S,E,T,D,N,A,H);return}else if(v&256){le(P,ee,S,E,T,D,N,A,H);return}}k&8?(W&16&&Ye(P,T,D),ee!==P&&u(S,ee)):W&16?k&16?ue(P,ee,S,E,T,D,N,A,H):Ye(P,T,D,!0):(W&8&&u(S,""),k&16&&m(ee,S,E,T,D,N,A,H))},le=(f,h,S,E,T,D,N,A,H)=>{f=f||Gt,h=h||Gt;const P=f.length,W=h.length,ee=Math.min(P,W);let v;for(v=0;v<ee;v++){const k=h[v]=H?It(h[v]):lt(h[v]);$(f[v],k,S,null,T,D,N,A,H)}P>W?Ye(f,T,D,!0,!1,ee):m(h,S,E,T,D,N,A,H,ee)},ue=(f,h,S,E,T,D,N,A,H)=>{let P=0;const W=h.length;let ee=f.length-1,v=W-1;for(;P<=ee&&P<=v;){const k=f[P],q=h[P]=H?It(h[P]):lt(h[P]);if(Wt(k,q))$(k,q,S,null,T,D,N,A,H);else break;P++}for(;P<=ee&&P<=v;){const k=f[ee],q=h[v]=H?It(h[v]):lt(h[v]);if(Wt(k,q))$(k,q,S,null,T,D,N,A,H);else break;ee--,v--}if(P>ee){if(P<=v){const k=v+1,q=k<W?h[k].el:E;for(;P<=v;)$(null,h[P]=H?It(h[P]):lt(h[P]),S,q,T,D,N,A,H),P++}}else if(P>v)for(;P<=ee;)_e(f[P],T,D,!0),P++;else{const k=P,q=P,te=new Map;for(P=q;P<=v;P++){const Ze=h[P]=H?It(h[P]):lt(h[P]);Ze.key!=null&&te.set(Ze.key,P)}let ge,$e=0;const ot=v-q+1;let un=!1,wl=0;const Ln=new Array(ot);for(P=0;P<ot;P++)Ln[P]=0;for(P=k;P<=ee;P++){const Ze=f[P];if($e>=ot){_e(Ze,T,D,!0);continue}let dt;if(Ze.key!=null)dt=te.get(Ze.key);else for(ge=q;ge<=v;ge++)if(Ln[ge-q]===0&&Wt(Ze,h[ge])){dt=ge;break}dt===void 0?_e(Ze,T,D,!0):(Ln[dt-q]=P+1,dt>=wl?wl=dt:un=!0,$(Ze,h[dt],S,null,T,D,N,A,H),$e++)}const xl=un?oc(Ln):Gt;for(ge=xl.length-1,P=ot-1;P>=0;P--){const Ze=q+P,dt=h[Ze],Sl=Ze+1<W?h[Ze+1].el:E;Ln[P]===0?$(null,dt,S,Sl,T,D,N,A,H):un&&(ge<0||P!==xl[ge]?be(dt,S,Sl,2):ge--)}}},be=(f,h,S,E,T=null)=>{const{el:D,type:N,transition:A,children:H,shapeFlag:P}=f;if(P&6){be(f.component.subTree,h,S,E);return}if(P&128){f.suspense.move(h,S,E);return}if(P&64){N.move(f,h,S,ut);return}if(N===Ce){o(D,h,S);for(let ee=0;ee<H.length;ee++)be(H[ee],h,S,E);o(f.anchor,h,S);return}if(N===lo){b(f,h,S);return}if(E!==2&&P&1&&A)if(E===0)A.beforeEnter(D),o(D,h,S),Be(()=>A.enter(D),T);else{const{leave:ee,delayLeave:v,afterLeave:k}=A,q=()=>o(D,h,S),te=()=>{ee(D,()=>{q(),k&&k()})};v?v(D,q,te):te()}else o(D,h,S)},_e=(f,h,S,E=!1,T=!1)=>{const{type:D,props:N,ref:A,children:H,dynamicChildren:P,shapeFlag:W,patchFlag:ee,dirs:v}=f;if(A!=null&&Jo(A,null,S,f,!0),W&256){h.ctx.deactivate(f);return}const k=W&1&&v,q=!vn(f);let te;if(q&&(te=N&&N.onVnodeBeforeUnmount)&&at(te,h,f),W&6)Lt(f.component,S,E);else{if(W&128){f.suspense.unmount(S,E);return}k&&Nt(f,null,h,"beforeUnmount"),W&64?f.type.remove(f,h,S,T,ut,E):P&&(D!==Ce||ee>0&&ee&64)?Ye(P,h,S,!1,!0):(D===Ce&&ee&384||!T&&W&16)&&Ye(H,h,S),E&&Ue(f)}(q&&(te=N&&N.onVnodeUnmounted)||k)&&Be(()=>{te&&at(te,h,f),k&&Nt(f,null,h,"unmounted")},S)},Ue=f=>{const{type:h,el:S,anchor:E,transition:T}=f;if(h===Ce){mt(S,E);return}if(h===lo){M(f);return}const D=()=>{i(S),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:N,delayLeave:A}=T,H=()=>N(S,D);A?A(f.el,D,H):H()}else D()},mt=(f,h)=>{let S;for(;f!==h;)S=p(f),i(f),f=S;i(h)},Lt=(f,h,S)=>{const{bum:E,scope:T,update:D,subTree:N,um:A}=f;E&&Bn(E),T.stop(),D&&(D.active=!1,_e(N,f,h,S)),A&&Be(A,h),Be(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ye=(f,h,S,E=!1,T=!1,D=0)=>{for(let N=D;N<f.length;N++)_e(f[N],h,S,E,T)},vt=f=>f.shapeFlag&6?vt(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el);let Xe=!1;const Oe=(f,h,S)=>{f==null?h._vnode&&_e(h._vnode,null,null,!0):$(h._vnode||null,f,h,null,null,null,S),Xe||(Xe=!0,ar(),cr(),Xe=!1),h._vnode=f},ut={p:$,um:_e,m:be,r:Ue,mt:V,mc:m,pc:K,pbc:z,n:vt,o:e};let zt,At;return t&&([zt,At]=t(ut)),{render:Oe,hydrate:zt,createApp:Ya(Oe,zt)}}function ei({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 Ht({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fr(e,t,n=!1){const o=e.children,i=t.children;if(ne(o)&&ne(i))for(let r=0;r<o.length;r++){const s=o[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=It(i[r]),l.el=s.el),n||Fr(s,l)),l.type===so&&(l.el=s.el)}}function oc(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Vr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vr(t)}const ic=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),so=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),lo=Symbol.for("v-stc"),wn=[];let nt=null;function O(e=!1){wn.push(nt=e?null:[])}function rc(){wn.pop(),nt=wn[wn.length-1]||null}let xn=1;function Hr(e){xn+=e}function Wr(e){return e.dynamicChildren=xn>0?nt||Gt:null,rc(),xn>0&&nt&&nt.push(e),e}function Y(e,t,n,o,i,r){return Wr(Z(e,t,n,o,i,r,!0))}function pe(e,t,n,o,i){return Wr(Q(e,t,n,o,i,!0))}function ao(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const co="__vInternal",Kr=({key:e})=>e??null,uo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||Ie(e)||oe(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function Z(e,t=null,n=null,o=0,i=null,r=e===Ce?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kr(t),ref:t&&uo(t),scopeId:fr,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:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Te};return l?(ti(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Se(n)?8:16),xn>0&&!s&&nt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&nt.push(a),a}const Q=sc;function sc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===gr)&&(e=et),ao(e)){const l=kt(e,t,!0);return n&&ti(l,n),xn>0&&!r&&nt&&(l.shapeFlag&6?nt[nt.indexOf(e)]=l:nt.push(l)),l.patchFlag|=-2,l}if(bc(e)&&(e=e.__vccOpts),t){t=lc(t);let{class:l,style:a}=t;l&&!Se(l)&&(t.class=Ee(l)),ve(a)&&(er(a)&&!ne(a)&&(a=xe({},a)),t.style=ze(a))}const s=Se(e)?1:Sa(e)?128:ic(e)?64:ve(e)?4:oe(e)?2:0;return Z(e,t,n,o,i,s,r,!0)}function lc(e){return e?er(e)||co in e?xe({},e):e:null}function kt(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?Sn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Kr(l),ref:t&&t.ref?n&&i?ne(i)?i.concat(uo(t)):[i,uo(t)]:uo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&kt(e.ssContent),ssFallback:e.ssFallback&&kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ct(e=" ",t=0){return Q(so,null,e,t)}function ac(e,t){const n=Q(lo,null,e);return n.staticCount=t,n}function ye(e="",t=!1){return t?(O(),pe(et,null,e)):Q(et,null,e)}function lt(e){return e==null||typeof e=="boolean"?Q(et):ne(e)?Q(Ce,null,e.slice()):typeof e=="object"?It(e):Q(so,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:kt(e)}function ti(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),ti(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(co in t)?t._ctx=Te:i===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(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 Sn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Ee([t.class,o.class]));else if(i==="style")t.style=ze([t.style,o.style]);else if(zn(i)){const r=t[i],s=o[i];s&&r!==s&&!(ne(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function at(e,t,n,o=null){Qe(e,t,7,[n,o])}const cc=Or();let uc=0;function dc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||cc,r={uid:uc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new zl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Lr(o,i),emitsOptions:dr(o,i),emit:null,emitted:null,propsDefaults:de,inheritAttrs:o.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=va.bind(null,r),e.ce&&e.ce(r),r}let Pe=null;const fo=()=>Pe||Te;let po,ni;{const e=Pi(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};po=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),ni=t("__VUE_SSR_SETTERS__",n=>ho=n)}const kn=e=>{const t=Pe;return po(e),e.scope.on(),()=>{e.scope.off(),po(t)}},qr=()=>{Pe&&Pe.scope.off(),po(null)};function Ur(e){return e.vnode.shapeFlag&4}let ho=!1;function fc(e,t=!1){t&&ni(t);const{props:n,children:o}=e.vnode,i=Ur(e);Xa(e,n,i,t),Qa(e,o);const r=i?pc(e,t):void 0;return t&&ni(!1),r}function pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=tr(new Proxy(e.ctx,Fa));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?gc(e):null,r=kn(e);yt();const s=pt(o,e,0,[e.props,i]);if(_t(),r(),Ii(s)){if(s.then(qr,qr),t)return s.then(l=>{Yr(e,l,t)}).catch(l=>{Yn(l,e,0)});e.asyncDep=s}else Yr(e,s,t)}else Zr(e,t)}function Yr(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=or(t)),Zr(e,n)}let Xr;function Zr(e,t,n){const o=e.type;if(!e.render){if(!t&&Xr&&!o.render){const i=o.template||Xo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=xe(xe({isCustomElement:r,delimiters:l},s),a);o.render=Xr(i,c)}}e.render=o.render||Ve}{const i=kn(e);yt();try{Va(e)}finally{_t(),i()}}}function hc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return De(e,"get","$attrs"),t[n]}}))}function gc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return hc(e)},slots:e.slots,emit:e.emit,expose:t}}function go(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(or(tr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yn)return yn[n](e)},has(t,n){return n in t||n in yn}}))}const mc=/(?:^|[-_])(\w)/g,vc=e=>e.replace(mc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Gr(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Qr(e,t,n=!1){let o=Gr(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?vc(o):n?"App":"Anonymous"}function bc(e){return oe(e)&&"__vccOpts"in e}const se=(e,t)=>oa(e,t,ho);function Cn(e,t,n=de){const o=fo(),i=je(t),r=He(t),s=ir((a,c)=>{let u;return Ta(()=>{const d=e[t];it(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const p=o.vnode.props;!(p&&(t in p||i in p||r in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${r}`in p))&&it(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),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 Jr(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ne(t)?ao(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ao(n)&&(n=[n]),Q(e,t,n))}const yc="3.4.15";/**
15
+ `,...ua(i)),console.warn(...r)}_t()}function ca(){let e=hn[hn.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 ua(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
+ `],...da(n))}),t}function da({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${Jr(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...fa(e.props),r]:[i+r]}function fa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...sr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function sr(e,t,n){return Se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ie(t)?(t=sr(e,ae(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):oe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ae(t),n?t:[`${e}=`,t])}function pt(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Xn(r,t,n)}return i}function Qe(e,t,n,o){if(oe(e)){const r=pt(e,t,n,o);return r&&Ei(r)&&r.catch(s=>{Xn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Qe(e[r],t,n,o));return i}function Xn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){pt(a,null,10,[e,s,l]);return}}pa(e,n,i,o)}function pa(e,t,n,o=!0){console.error(e)}let gn=!1,Bo=!1;const Me=[];let rt=0;const nn=[];let xt=null,Bt=0;const lr=Promise.resolve();let No=null;function ht(e){const t=No||lr;return e?t.then(this?e.bind(this):e):t}function ha(e){let t=rt+1,n=Me.length;for(;t<n;){const o=t+n>>>1,i=Me[o],r=mn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Fo(e){(!Me.length||!Me.includes(e,gn&&e.allowRecurse?rt+1:rt))&&(e.id==null?Me.push(e):Me.splice(ha(e.id),0,e),ar())}function ar(){!gn&&!Bo&&(Bo=!0,No=lr.then(dr))}function ga(e){const t=Me.indexOf(e);t>rt&&Me.splice(t,1)}function ma(e){ne(e)?nn.push(...e):(!xt||!xt.includes(e,e.allowRecurse?Bt+1:Bt))&&nn.push(e),ar()}function cr(e,t,n=gn?rt+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 ur(e){if(nn.length){const t=[...new Set(nn)].sort((n,o)=>mn(n)-mn(o));if(nn.length=0,xt){xt.push(...t);return}for(xt=t,Bt=0;Bt<xt.length;Bt++)xt[Bt]();xt=null,Bt=0}}const mn=e=>e.id==null?1/0:e.id,va=(e,t)=>{const n=mn(e)-mn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dr(e){Bo=!1,gn=!0,Me.sort(va);const t=He;try{for(rt=0;rt<Me.length;rt++){const n=Me[rt];n&&n.active!==!1&&pt(n,null,14)}}finally{rt=0,Me.length=0,ur(),gn=!1,No=null,(Me.length||nn.length)&&dr()}}function ba(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||de;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:p}=o[u]||de;p&&(i=n.map(S=>Se(S)?S.trim():S)),f&&(i=n.map(ko))}let l,a=o[l=So(t)]||o[l=So(je(t))];!a&&r&&(a=o[l=So(We(t))]),a&&Qe(a,e,6,i);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,i)}}function fr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!oe(e)){const a=c=>{const u=fr(c,t,!0);u&&(l=!0,xe(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(ve(e)&&o.set(e,null),null):(ne(r)?r.forEach(a=>s[a]=null):xe(s,r),ve(e)&&o.set(e,s),s)}function Zn(e,t){return!e||!An(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,We(t))||ce(e,t))}let Te=null,pr=null;function Gn(e){const t=Te;return Te=e,pr=e&&e.type.__scopeId||null,t}function ie(e,t=Te,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Wr(-1);const r=Gn(t);let s;try{s=e(...i)}finally{Gn(r),o._d&&Wr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Jp(){}function Vo(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:p,setupState:S,ctx:O,inheritAttrs:E}=e;let B,C;const N=Gn(e);try{if(n.shapeFlag&4){const A=i||o,_=A;B=lt(u.call(_,A,f,r,S,p,O)),C=a}else{const A=t;B=lt(A.length>1?A(r,{attrs:a,slots:l,emit:c}):A(r,null)),C=t.props?a:ya(a)}}catch(A){xn.length=0,Xn(A,e,1),B=J(et)}let v=B;if(C&&E!==!1){const A=Object.keys(C),{shapeFlag:_}=v;A.length&&_&7&&(s&&A.some(_o)&&(C=_a(C,s)),v=Ct(v,C))}return n.dirs&&(v=Ct(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),B=v,Gn(N),B}const ya=e=>{let t;for(const n in e)(n==="class"||n==="style"||An(n))&&((t||(t={}))[n]=e[n]);return t},_a=(e,t)=>{const n={};for(const o in e)(!_o(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function wa(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?hr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(s[p]!==o[p]&&!Zn(c,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?hr(o,s,c):!0:!!s;return!1}function hr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Zn(n,r))return!0}return!1}function xa({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 gr="components",mr=Symbol.for("v-ndc");function vr(e){return Se(e)?Sa(gr,e,!1)||e:e||mr}function Sa(e,t,n=!0,o=!1){const i=Te||Pe;if(i){const r=i.type;if(e===gr){const l=Qr(r,!1);if(l&&(l===t||l===je(t)||l===Bn(je(t))))return r}const s=br(i[e]||r[e],t)||br(i.appContext[e],t);return!s&&o?r:s}}function br(e,t){return e&&(e[t]||e[je(t)]||e[Bn(je(t))])}const ka=e=>e.__isSuspense;function Ca(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):ma(e)}const Ia=Symbol.for("v-scx"),Ea=()=>kt(Ia);function Ta(e,t){return Jn(e,null,t)}function $a(e,t){return Jn(e,null,{flush:"sync"})}const Qn={};function fe(e,t,n){return Jn(e,t,n)}function Jn(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=de){if(t&&r){const y=t;t=(...D)=>{y(...D),_()}}const a=Pe,c=y=>o===!0?y:Nt(y,o===!1?1:void 0);let u,f=!1,p=!1;if(Ie(e)?(u=()=>e.value,f=Yn(e)):en(e)?(u=()=>c(e),f=!0):ne(e)?(p=!0,f=e.some(y=>en(y)||Yn(y)),u=()=>e.map(y=>{if(Ie(y))return y.value;if(en(y))return c(y);if(oe(y))return pt(y,a,2)})):oe(e)?t?u=()=>pt(e,a,2):u=()=>(S&&S(),Qe(e,a,3,[O])):u=He,t&&o){const y=u;u=()=>Nt(y())}let S,O=y=>{S=v.onStop=()=>{pt(y,a,4),S=v.onStop=void 0}},E;if(ho)if(O=He,t?n&&Qe(t,a,3,[u(),p?[]:void 0,O]):u(),i==="sync"){const y=Ea();E=y.__watcherHandles||(y.__watcherHandles=[])}else return He;let B=p?new Array(e.length).fill(Qn):Qn;const C=()=>{if(!(!v.active||!v.dirty))if(t){const y=v.run();(o||f||(p?y.some((D,w)=>it(D,B[w])):it(y,B)))&&(S&&S(),Qe(t,a,3,[y,B===Qn?void 0:p&&B[0]===Qn?[]:B,O]),B=y)}else v.run()};C.allowRecurse=!!t;let N;i==="sync"?N=C:i==="post"?N=()=>Be(C,a&&a.suspense):(C.pre=!0,a&&(C.id=a.uid),N=()=>Fo(C));const v=new Eo(u,He,N),A=zi(),_=()=>{v.stop(),A&&wo(A.effects,v)};return t?n?C():B=v.run():i==="post"?Be(v.run.bind(v),a&&a.suspense):v.run(),E&&E.push(_),_}function Pa(e,t,n){const o=this.proxy,i=Se(e)?e.includes(".")?yr(o,e):()=>o[e]:e.bind(o,o);let r;oe(t)?r=t:(r=t.handler,n=t);const s=Cn(this),l=Jn(i,r.bind(o),n);return s(),l}function yr(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function Nt(e,t,n=0,o){if(!ve(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),Ie(e))Nt(e.value,t,n,o);else if(ne(e))for(let i=0;i<e.length;i++)Nt(e[i],t,n,o);else if(Ii(e)||Qt(e))e.forEach(i=>{Nt(i,t,n,o)});else if($i(e))for(const i in e)Nt(e[i],t,n,o);return e}function st(e,t){if(Te===null)return e;const n=go(Te)||Te.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=de]=t[i];r&&(oe(r)&&(r={mounted:r,updated:r}),r.deep&&Nt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Ft(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const l=i[s];r&&(l.oldValue=r[s].value);let a=l.dir[o];a&&(yt(),Qe(a,n,8,[e.el,l,e,t]),_t())}}const St=Symbol("_leaveCb"),eo=Symbol("_enterCb");function Oa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Re(()=>{e.isMounted=!0}),qo(()=>{e.isUnmounting=!0}),e}const Je=[Function,Array],_r={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Je,onEnter:Je,onAfterEnter:Je,onEnterCancelled:Je,onBeforeLeave:Je,onLeave:Je,onAfterLeave:Je,onLeaveCancelled:Je,onBeforeAppear:Je,onAppear:Je,onAfterAppear:Je,onAppearCancelled:Je},Ma={name:"BaseTransition",props:_r,setup(e,{slots:t}){const n=fo(),o=Oa();let i;return()=>{const r=t.default&&Sr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const E of r)if(E.type!==et){s=E;break}}const l=ae(e),{mode:a}=l;if(o.isLeaving)return Wo(s);const c=xr(s);if(!c)return Wo(s);const u=Ho(c,l,o,n);Ko(c,u);const f=n.subTree,p=f&&xr(f);let S=!1;const{getTransitionKey:O}=c.type;if(O){const E=O();i===void 0?i=E:E!==i&&(i=E,S=!0)}if(p&&p.type!==et&&(!Wt(c,p)||S)){const E=Ho(p,l,o,n);if(Ko(p,E),a==="out-in")return o.isLeaving=!0,E.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Wo(s);a==="in-out"&&c.type!==et&&(E.delayLeave=(B,C,N)=>{const v=wr(o,p);v[String(p.key)]=p,B[St]=()=>{C(),B[St]=void 0,delete u.delayedLeave},u.delayedLeave=N})}return s}}};function wr(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 Ho(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:p,onAfterLeave:S,onLeaveCancelled:O,onBeforeAppear:E,onAppear:B,onAfterAppear:C,onAppearCancelled:N}=t,v=String(e.key),A=wr(n,e),_=(w,$)=>{w&&Qe(w,o,9,$)},y=(w,$)=>{const M=$[1];_(w,$),ne(w)?w.every(Q=>Q.length<=1)&&M():w.length<=1&&M()},D={mode:r,persisted:s,beforeEnter(w){let $=l;if(!n.isMounted)if(i)$=E||l;else return;w[St]&&w[St](!0);const M=A[v];M&&Wt(e,M)&&M.el[St]&&M.el[St](),_($,[w])},enter(w){let $=a,M=c,Q=u;if(!n.isMounted)if(i)$=B||a,M=C||c,Q=N||u;else return;let b=!1;const g=w[eo]=V=>{b||(b=!0,V?_(Q,[w]):_(M,[w]),D.delayedLeave&&D.delayedLeave(),w[eo]=void 0)};$?y($,[w,g]):g()},leave(w,$){const M=String(e.key);if(w[eo]&&w[eo](!0),n.isUnmounting)return $();_(f,[w]);let Q=!1;const b=w[St]=g=>{Q||(Q=!0,$(),g?_(O,[w]):_(S,[w]),w[St]=void 0,A[M]===e&&delete A[M])};A[M]=e,p?y(p,[w,b]):b()},clone(w){return Ho(w,t,n,o)}};return D}function Wo(e){if(to(e))return e=Ct(e),e.children=null,e}function xr(e){return to(e)?e.children?e.children[0]:void 0:e}function Ko(e,t){e.shapeFlag&6&&e.component?Ko(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 Sr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ce?(s.patchFlag&128&&i++,o=o.concat(Sr(s.children,t,l))):(t||s.type!==et)&&o.push(l!=null?Ct(s,{key:l}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}/*! #__NO_SIDE_EFFECTS__ */function ke(e,t){return oe(e)?(()=>xe({name:e.name},t,{setup:e}))():e}const vn=e=>!!e.type.__asyncLoader,to=e=>e.type.__isKeepAlive;function La(e,t){kr(e,"a",t)}function za(e,t){kr(e,"da",t)}function kr(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(no(t,o,n),n){let i=n.parent;for(;i&&i.parent;)to(i.parent.vnode)&&Aa(o,t,n,i),i=i.parent}}function Aa(e,t,n,o){const i=no(t,e,o,!0);Vt(()=>{wo(o[t],i)},n)}function no(e,t,n=Pe,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;yt();const l=Cn(n),a=Qe(t,n,e,s);return l(),_t(),a});return o?i.unshift(r):i.push(r),r}}const gt=e=>(t,n=Pe)=>(!ho||e==="sp")&&no(e,(...o)=>t(...o),n),ja=gt("bm"),Re=gt("m"),Da=gt("bu"),Cr=gt("u"),qo=gt("bum"),Vt=gt("um"),Ra=gt("sp"),Ba=gt("rtg"),Na=gt("rtc");function Fa(e,t=Pe){no("ec",e,t)}function bn(e,t,n,o){let i;const r=n&&n[o];if(ne(e)||Se(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(ve(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function Ir(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ne(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.key?(...i)=>{const r=o.fn(...i);return r&&(r.key=o.key),r}:o.fn)}return e}function we(e,t,n={},o,i){if(Te.isCE||Te.parent&&vn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),z();const s=r&&Er(r(n)),l=pe(Ce,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Er(e){return e.some(t=>ao(t)?!(t.type===et||t.type===Ce&&!Er(t.children)):!0)?e:null}const Uo=e=>e?Yr(e)?go(e)||e.proxy:Uo(e.parent):null,yn=xe(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=>Uo(e.parent),$root:e=>Uo(e.root),$emit:e=>e.emit,$options:e=>Zo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Fo(e.update)}),$nextTick:e=>e.n||(e.n=ht.bind(e.proxy)),$watch:e=>Pa.bind(e)}),Yo=(e,t)=>e!==de&&!e.__isScriptSetup&&ce(e,t),Va={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,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 i[t];case 4:return n[t];case 3:return r[t]}else{if(Yo(o,t))return s[t]=1,o[t];if(i!==de&&ce(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&ce(c,t))return s[t]=3,r[t];if(n!==de&&ce(n,t))return s[t]=4,n[t];Xo&&(s[t]=0)}}const u=yn[t];let f,p;if(u)return t==="$attrs"&&De(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==de&&ce(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,ce(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Yo(i,t)?(i[t]=n,!0):o!==de&&ce(o,t)?(o[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},s){let l;return!!n[s]||e!==de&&ce(e,s)||Yo(t,s)||(l=r[0])&&ce(l,s)||ce(o,s)||ce(yn,s)||ce(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function oo(e){return ne(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function on(e,t){return!e||!t?e||t:ne(e)&&ne(t)?e.concat(t):xe({},oo(e),oo(t))}let Xo=!0;function Ha(e){const t=Zo(e),n=e.proxy,o=e.ctx;Xo=!1,t.beforeCreate&&Tr(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:S,updated:O,activated:E,deactivated:B,beforeDestroy:C,beforeUnmount:N,destroyed:v,unmounted:A,render:_,renderTracked:y,renderTriggered:D,errorCaptured:w,serverPrefetch:$,expose:M,inheritAttrs:Q,components:b,directives:g,filters:V}=t;if(c&&Wa(c,o,null),s)for(const I in s){const K=s[I];oe(K)&&(o[I]=K.bind(n))}if(i){const I=i.call(n,n);ve(I)&&(e.data=dn(I))}if(Xo=!0,r)for(const I in r){const K=r[I],le=oe(K)?K.bind(n,n):oe(K.get)?K.get.bind(n,n):He,ue=!oe(K)&&oe(K.set)?K.set.bind(n):He,be=se({get:le,set:ue});Object.defineProperty(o,I,{enumerable:!0,configurable:!0,get:()=>be.value,set:_e=>be.value=_e})}if(l)for(const I in l)$r(l[I],o,n,I);if(a){const I=oe(a)?a.call(n):a;Reflect.ownKeys(I).forEach(K=>{wn(K,I[K])})}u&&Tr(u,e,"c");function re(I,K){ne(K)?K.forEach(le=>I(le.bind(n))):K&&I(K.bind(n))}if(re(ja,f),re(Re,p),re(Da,S),re(Cr,O),re(La,E),re(za,B),re(Fa,w),re(Na,y),re(Ba,D),re(qo,N),re(Vt,A),re(Ra,$),ne(M))if(M.length){const I=e.exposed||(e.exposed={});M.forEach(K=>{Object.defineProperty(I,K,{get:()=>n[K],set:le=>n[K]=le})})}else e.exposed||(e.exposed={});_&&e.render===He&&(e.render=_),Q!=null&&(e.inheritAttrs=Q),b&&(e.components=b),g&&(e.directives=g)}function Wa(e,t,n=He){ne(e)&&(e=Go(e));for(const o in e){const i=e[o];let r;ve(i)?"default"in i?r=kt(i.from||o,i.default,!0):r=kt(i.from||o):r=kt(i),Ie(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Tr(e,t,n){Qe(ne(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function $r(e,t,n,o){const i=o.includes(".")?yr(n,o):()=>n[o];if(Se(e)){const r=t[e];oe(r)&&fe(i,r)}else if(oe(e))fe(i,e.bind(n));else if(ve(e))if(ne(e))e.forEach(r=>$r(r,t,n,o));else{const r=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(r)&&fe(i,r,e)}}function Zo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!o?a=t:(a={},i.length&&i.forEach(c=>io(a,c,s,!0)),io(a,t,s)),ve(t)&&r.set(t,a),a}function io(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&io(e,r,n,!0),i&&i.forEach(s=>io(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Ka[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ka={data:Pr,props:Or,emits:Or,methods:_n,computed:_n,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:_n,directives:_n,watch:Ua,provide:Pr,inject:qa};function Pr(e,t){return t?e?function(){return xe(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function qa(e,t){return _n(Go(e),Go(t))}function Go(e){if(ne(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 _n(e,t){return e?xe(Object.create(null),e,t):t}function Or(e,t){return e?ne(e)&&ne(t)?[...new Set([...e,...t])]:xe(Object.create(null),oo(e),oo(t??{})):t}function Ua(e,t){if(!e)return t;if(!t)return e;const n=xe(Object.create(null),e);for(const o in t)n[o]=Ae(e[o],t[o]);return n}function Mr(){return{app:null,config:{isNativeTag:Cl,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 Ya=0;function Xa(e,t){return function(o,i=null){oe(o)||(o=xe({},o)),i!=null&&!ve(i)&&(i=null);const r=Mr(),s=new WeakSet;let l=!1;const a=r.app={_uid:Ya++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:_c,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&oe(c.install)?(s.add(c),c.install(a,...u)):oe(c)&&(s.add(c),c(a,...u))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,f){if(!l){const p=J(o,i);return p.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(p,c):e(p,c,f),l=!0,a._container=c,c.__vue_app__=a,go(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){ro=a;try{return c()}finally{ro=null}}};return a}}let ro=null;function wn(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 kt(e,t,n=!1){const o=Pe||Te;if(o||ro){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:ro._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&oe(t)?t.call(o&&o.proxy):t}}function Za(e,t,n,o=!1){const i={},r={};Fn(r,co,1),e.propsDefaults=Object.create(null),Lr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:oa(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Ga(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ae(i),[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 p=u[f];if(Zn(e.emitsOptions,p))continue;const S=t[p];if(a)if(ce(r,p))S!==r[p]&&(r[p]=S,c=!0);else{const O=je(p);i[O]=Qo(a,l,O,S,e,!1)}else S!==r[p]&&(r[p]=S,c=!0)}}}else{Lr(e,t,i,r)&&(c=!0);let u;for(const f in l)(!t||!ce(t,f)&&((u=We(f))===f||!ce(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=Qo(a,l,f,void 0,e,!0)):delete i[f]);if(r!==l)for(const f in r)(!t||!ce(t,f))&&(delete r[f],c=!0)}c&&ft(e,"set","$attrs")}function Lr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Dn(a))continue;const c=t[a];let u;i&&ce(i,u=je(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Zn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ae(n),c=l||de;for(let u=0;u<r.length;u++){const f=r[u];n[f]=Qo(i,a,f,c[f],e,!ce(c,f))}}return s}function Qo(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=ce(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&oe(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=Cn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===We(n))&&(o=!0))}return o}function zr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!oe(e)){const u=f=>{a=!0;const[p,S]=zr(f,t,!0);xe(s,p),S&&l.push(...S)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!a)return ve(e)&&o.set(e,Gt),Gt;if(ne(r))for(let u=0;u<r.length;u++){const f=je(r[u]);Ar(f)&&(s[f]=de)}else if(r)for(const u in r){const f=je(u);if(Ar(f)){const p=r[u],S=s[f]=ne(p)||oe(p)?{type:p}:xe({},p);if(S){const O=Rr(Boolean,S.type),E=Rr(String,S.type);S[0]=O>-1,S[1]=E<0||O<E,(O>-1||ce(S,"default"))&&l.push(f)}}}const c=[s,l];return ve(e)&&o.set(e,c),c}function Ar(e){return e[0]!=="$"}function jr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Dr(e,t){return jr(e)===jr(t)}function Rr(e,t){return ne(t)?t.findIndex(n=>Dr(n,e)):oe(t)&&Dr(t,e)?0:-1}const Br=e=>e[0]==="_"||e==="$stable",Jo=e=>ne(e)?e.map(lt):[lt(e)],Qa=(e,t,n)=>{if(t._n)return t;const o=ie((...i)=>Jo(t(...i)),n);return o._c=!1,o},Nr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Br(i))continue;const r=e[i];if(oe(r))t[i]=Qa(i,r,o);else if(r!=null){const s=Jo(r);t[i]=()=>s}}},Fr=(e,t)=>{const n=Jo(t);e.slots.default=()=>n},Ja=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ae(t),Fn(t,"_",n)):Nr(t,e.slots={})}else e.slots={},t&&Fr(e,t);Fn(e.slots,co,1)},ec=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=de;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(xe(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Nr(t,i)),s=t}else t&&(Fr(e,t),s={default:1});if(r)for(const l in i)!Br(l)&&s[l]==null&&delete i[l]};function ei(e,t,n,o,i=!1){if(ne(e)){e.forEach((p,S)=>ei(p,t&&(ne(t)?t[S]:t),n,o,i));return}if(vn(o)&&!i)return;const r=o.shapeFlag&4?go(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===de?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Se(c)?(u[c]=null,ce(f,c)&&(f[c]=null)):Ie(c)&&(c.value=null)),oe(a))pt(a,l,12,[s,u]);else{const p=Se(a),S=Ie(a),O=e.f;if(p||S){const E=()=>{if(O){const B=p?ce(f,a)?f[a]:u[a]:a.value;i?ne(B)&&wo(B,r):ne(B)?B.includes(r)||B.push(r):p?(u[a]=[r],ce(f,a)&&(f[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else p?(u[a]=s,ce(f,a)&&(f[a]=s)):S&&(a.value=s,e.k&&(u[e.k]=s))};i||O?E():(E.id=-1,Be(E,n))}}}const Be=Ca;function tc(e){return nc(e)}function nc(e,t){const n=Oi();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:S=He,insertStaticContent:O}=e,E=(d,h,x,T=null,P=null,R=null,F=void 0,j=null,H=!!h.dynamicChildren)=>{if(d===h)return;d&&!Wt(d,h)&&(T=vt(d),_e(d,P,R,!0),d=null),h.patchFlag===-2&&(H=!1,h.dynamicChildren=null);const{type:L,ref:W,shapeFlag:ee}=h;switch(L){case so:B(d,h,x,T);break;case et:C(d,h,x,T);break;case lo:d==null&&N(h,x,T,F);break;case Ce:b(d,h,x,T,P,R,F,j,H);break;default:ee&1?_(d,h,x,T,P,R,F,j,H):ee&6?g(d,h,x,T,P,R,F,j,H):(ee&64||ee&128)&&L.process(d,h,x,T,P,R,F,j,H,ut)}W!=null&&P&&ei(W,d&&d.ref,R,h||d,!h)},B=(d,h,x,T)=>{if(d==null)o(h.el=l(h.children),x,T);else{const P=h.el=d.el;h.children!==d.children&&c(P,h.children)}},C=(d,h,x,T)=>{d==null?o(h.el=a(h.children||""),x,T):h.el=d.el},N=(d,h,x,T)=>{[d.el,d.anchor]=O(d.children,h,x,T,d.el,d.anchor)},v=({el:d,anchor:h},x,T)=>{let P;for(;d&&d!==h;)P=p(d),o(d,x,T),d=P;o(h,x,T)},A=({el:d,anchor:h})=>{let x;for(;d&&d!==h;)x=p(d),i(d),d=x;i(h)},_=(d,h,x,T,P,R,F,j,H)=>{h.type==="svg"?F="svg":h.type==="math"&&(F="mathml"),d==null?y(h,x,T,P,R,F,j,H):$(d,h,P,R,F,j,H)},y=(d,h,x,T,P,R,F,j)=>{let H,L;const{props:W,shapeFlag:ee,transition:m,dirs:k}=d;if(H=d.el=s(d.type,R,W&&W.is,W),ee&8?u(H,d.children):ee&16&&w(d.children,H,null,T,P,ti(d,R),F,j),k&&Ft(d,null,T,"created"),D(H,d,d.scopeId,F,T),W){for(const te in W)te!=="value"&&!Dn(te)&&r(H,te,null,W[te],R,d.children,T,P,Ye);"value"in W&&r(H,"value",null,W.value,R),(L=W.onVnodeBeforeMount)&&at(L,T,d)}k&&Ft(d,null,T,"beforeMount");const q=oc(P,m);q&&m.beforeEnter(H),o(H,h,x),((L=W&&W.onVnodeMounted)||q||k)&&Be(()=>{L&&at(L,T,d),q&&m.enter(H),k&&Ft(d,null,T,"mounted")},P)},D=(d,h,x,T,P)=>{if(x&&S(d,x),T)for(let R=0;R<T.length;R++)S(d,T[R]);if(P){let R=P.subTree;if(h===R){const F=P.vnode;D(d,F,F.scopeId,F.slotScopeIds,P.parent)}}},w=(d,h,x,T,P,R,F,j,H=0)=>{for(let L=H;L<d.length;L++){const W=d[L]=j?Et(d[L]):lt(d[L]);E(null,W,h,x,T,P,R,F,j)}},$=(d,h,x,T,P,R,F)=>{const j=h.el=d.el;let{patchFlag:H,dynamicChildren:L,dirs:W}=h;H|=d.patchFlag&16;const ee=d.props||de,m=h.props||de;let k;if(x&&Ht(x,!1),(k=m.onVnodeBeforeUpdate)&&at(k,x,h,d),W&&Ft(h,d,x,"beforeUpdate"),x&&Ht(x,!0),L?M(d.dynamicChildren,L,j,x,T,ti(h,P),R):F||K(d,h,j,null,x,T,ti(h,P),R,!1),H>0){if(H&16)Q(j,h,ee,m,x,T,P);else if(H&2&&ee.class!==m.class&&r(j,"class",null,m.class,P),H&4&&r(j,"style",ee.style,m.style,P),H&8){const q=h.dynamicProps;for(let te=0;te<q.length;te++){const ge=q[te],$e=ee[ge],ot=m[ge];(ot!==$e||ge==="value")&&r(j,ge,$e,ot,P,d.children,x,T,Ye)}}H&1&&d.children!==h.children&&u(j,h.children)}else!F&&L==null&&Q(j,h,ee,m,x,T,P);((k=m.onVnodeUpdated)||W)&&Be(()=>{k&&at(k,x,h,d),W&&Ft(h,d,x,"updated")},T)},M=(d,h,x,T,P,R,F)=>{for(let j=0;j<h.length;j++){const H=d[j],L=h[j],W=H.el&&(H.type===Ce||!Wt(H,L)||H.shapeFlag&70)?f(H.el):x;E(H,L,W,null,T,P,R,F,!0)}},Q=(d,h,x,T,P,R,F)=>{if(x!==T){if(x!==de)for(const j in x)!Dn(j)&&!(j in T)&&r(d,j,x[j],null,F,h.children,P,R,Ye);for(const j in T){if(Dn(j))continue;const H=T[j],L=x[j];H!==L&&j!=="value"&&r(d,j,L,H,F,h.children,P,R,Ye)}"value"in T&&r(d,"value",x.value,T.value,F)}},b=(d,h,x,T,P,R,F,j,H)=>{const L=h.el=d?d.el:l(""),W=h.anchor=d?d.anchor:l("");let{patchFlag:ee,dynamicChildren:m,slotScopeIds:k}=h;k&&(j=j?j.concat(k):k),d==null?(o(L,x,T),o(W,x,T),w(h.children||[],x,W,P,R,F,j,H)):ee>0&&ee&64&&m&&d.dynamicChildren?(M(d.dynamicChildren,m,x,P,R,F,j),(h.key!=null||P&&h===P.subTree)&&Vr(d,h,!0)):K(d,h,x,W,P,R,F,j,H)},g=(d,h,x,T,P,R,F,j,H)=>{h.slotScopeIds=j,d==null?h.shapeFlag&512?P.ctx.activate(h,x,T,F,H):V(h,x,T,P,R,F,H):G(d,h,H)},V=(d,h,x,T,P,R,F)=>{const j=d.component=fc(d,T,P);if(to(d)&&(j.ctx.renderer=ut),pc(j),j.asyncDep){if(P&&P.registerDep(j,re),!d.el){const H=j.subTree=J(et);C(null,H,h,x)}}else re(j,d,h,x,P,R,F)},G=(d,h,x)=>{const T=h.component=d.component;if(wa(d,h,x))if(T.asyncDep&&!T.asyncResolved){I(T,h,x);return}else T.next=h,ga(T.update),T.effect.dirty=!0,T.update();else h.el=d.el,T.vnode=h},re=(d,h,x,T,P,R,F)=>{const j=()=>{if(d.isMounted){let{next:W,bu:ee,u:m,parent:k,vnode:q}=d;{const un=Hr(d);if(un){W&&(W.el=q.el,I(d,W,F)),un.asyncDep.then(()=>{d.isUnmounted||j()});return}}let te=W,ge;Ht(d,!1),W?(W.el=q.el,I(d,W,F)):W=q,ee&&Nn(ee),(ge=W.props&&W.props.onVnodeBeforeUpdate)&&at(ge,k,W,q),Ht(d,!0);const $e=Vo(d),ot=d.subTree;d.subTree=$e,E(ot,$e,f(ot.el),vt(ot),d,P,R),W.el=$e.el,te===null&&xa(d,$e.el),m&&Be(m,P),(ge=W.props&&W.props.onVnodeUpdated)&&Be(()=>at(ge,k,W,q),P)}else{let W;const{el:ee,props:m}=h,{bm:k,m:q,parent:te}=d,ge=vn(h);if(Ht(d,!1),k&&Nn(k),!ge&&(W=m&&m.onVnodeBeforeMount)&&at(W,te,h),Ht(d,!0),ee&&jt){const $e=()=>{d.subTree=Vo(d),jt(ee,d.subTree,d,P,null)};ge?h.type.__asyncLoader().then(()=>!d.isUnmounted&&$e()):$e()}else{const $e=d.subTree=Vo(d);E(null,$e,x,T,d,P,R),h.el=$e.el}if(q&&Be(q,P),!ge&&(W=m&&m.onVnodeMounted)){const $e=h;Be(()=>at(W,te,$e),P)}(h.shapeFlag&256||te&&vn(te.vnode)&&te.vnode.shapeFlag&256)&&d.a&&Be(d.a,P),d.isMounted=!0,h=x=T=null}},H=d.effect=new Eo(j,He,()=>Fo(L),d.scope),L=d.update=()=>{H.dirty&&H.run()};L.id=d.uid,Ht(d,!0),L()},I=(d,h,x)=>{h.component=d;const T=d.vnode.props;d.vnode=h,d.next=null,Ga(d,h.props,T,x),ec(d,h.children,x),yt(),cr(d),_t()},K=(d,h,x,T,P,R,F,j,H=!1)=>{const L=d&&d.children,W=d?d.shapeFlag:0,ee=h.children,{patchFlag:m,shapeFlag:k}=h;if(m>0){if(m&128){ue(L,ee,x,T,P,R,F,j,H);return}else if(m&256){le(L,ee,x,T,P,R,F,j,H);return}}k&8?(W&16&&Ye(L,P,R),ee!==L&&u(x,ee)):W&16?k&16?ue(L,ee,x,T,P,R,F,j,H):Ye(L,P,R,!0):(W&8&&u(x,""),k&16&&w(ee,x,T,P,R,F,j,H))},le=(d,h,x,T,P,R,F,j,H)=>{d=d||Gt,h=h||Gt;const L=d.length,W=h.length,ee=Math.min(L,W);let m;for(m=0;m<ee;m++){const k=h[m]=H?Et(h[m]):lt(h[m]);E(d[m],k,x,null,P,R,F,j,H)}L>W?Ye(d,P,R,!0,!1,ee):w(h,x,T,P,R,F,j,H,ee)},ue=(d,h,x,T,P,R,F,j,H)=>{let L=0;const W=h.length;let ee=d.length-1,m=W-1;for(;L<=ee&&L<=m;){const k=d[L],q=h[L]=H?Et(h[L]):lt(h[L]);if(Wt(k,q))E(k,q,x,null,P,R,F,j,H);else break;L++}for(;L<=ee&&L<=m;){const k=d[ee],q=h[m]=H?Et(h[m]):lt(h[m]);if(Wt(k,q))E(k,q,x,null,P,R,F,j,H);else break;ee--,m--}if(L>ee){if(L<=m){const k=m+1,q=k<W?h[k].el:T;for(;L<=m;)E(null,h[L]=H?Et(h[L]):lt(h[L]),x,q,P,R,F,j,H),L++}}else if(L>m)for(;L<=ee;)_e(d[L],P,R,!0),L++;else{const k=L,q=L,te=new Map;for(L=q;L<=m;L++){const Ze=h[L]=H?Et(h[L]):lt(h[L]);Ze.key!=null&&te.set(Ze.key,L)}let ge,$e=0;const ot=m-q+1;let un=!1,xl=0;const zn=new Array(ot);for(L=0;L<ot;L++)zn[L]=0;for(L=k;L<=ee;L++){const Ze=d[L];if($e>=ot){_e(Ze,P,R,!0);continue}let dt;if(Ze.key!=null)dt=te.get(Ze.key);else for(ge=q;ge<=m;ge++)if(zn[ge-q]===0&&Wt(Ze,h[ge])){dt=ge;break}dt===void 0?_e(Ze,P,R,!0):(zn[dt-q]=L+1,dt>=xl?xl=dt:un=!0,E(Ze,h[dt],x,null,P,R,F,j,H),$e++)}const Sl=un?ic(zn):Gt;for(ge=Sl.length-1,L=ot-1;L>=0;L--){const Ze=q+L,dt=h[Ze],kl=Ze+1<W?h[Ze+1].el:T;zn[L]===0?E(null,dt,x,kl,P,R,F,j,H):un&&(ge<0||L!==Sl[ge]?be(dt,x,kl,2):ge--)}}},be=(d,h,x,T,P=null)=>{const{el:R,type:F,transition:j,children:H,shapeFlag:L}=d;if(L&6){be(d.component.subTree,h,x,T);return}if(L&128){d.suspense.move(h,x,T);return}if(L&64){F.move(d,h,x,ut);return}if(F===Ce){o(R,h,x);for(let ee=0;ee<H.length;ee++)be(H[ee],h,x,T);o(d.anchor,h,x);return}if(F===lo){v(d,h,x);return}if(T!==2&&L&1&&j)if(T===0)j.beforeEnter(R),o(R,h,x),Be(()=>j.enter(R),P);else{const{leave:ee,delayLeave:m,afterLeave:k}=j,q=()=>o(R,h,x),te=()=>{ee(R,()=>{q(),k&&k()})};m?m(R,q,te):te()}else o(R,h,x)},_e=(d,h,x,T=!1,P=!1)=>{const{type:R,props:F,ref:j,children:H,dynamicChildren:L,shapeFlag:W,patchFlag:ee,dirs:m}=d;if(j!=null&&ei(j,null,x,d,!0),W&256){h.ctx.deactivate(d);return}const k=W&1&&m,q=!vn(d);let te;if(q&&(te=F&&F.onVnodeBeforeUnmount)&&at(te,h,d),W&6)zt(d.component,x,T);else{if(W&128){d.suspense.unmount(x,T);return}k&&Ft(d,null,h,"beforeUnmount"),W&64?d.type.remove(d,h,x,P,ut,T):L&&(R!==Ce||ee>0&&ee&64)?Ye(L,h,x,!1,!0):(R===Ce&&ee&384||!P&&W&16)&&Ye(H,h,x),T&&Ue(d)}(q&&(te=F&&F.onVnodeUnmounted)||k)&&Be(()=>{te&&at(te,h,d),k&&Ft(d,null,h,"unmounted")},x)},Ue=d=>{const{type:h,el:x,anchor:T,transition:P}=d;if(h===Ce){mt(x,T);return}if(h===lo){A(d);return}const R=()=>{i(x),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(d.shapeFlag&1&&P&&!P.persisted){const{leave:F,delayLeave:j}=P,H=()=>F(x,R);j?j(d.el,R,H):H()}else R()},mt=(d,h)=>{let x;for(;d!==h;)x=p(d),i(d),d=x;i(h)},zt=(d,h,x)=>{const{bum:T,scope:P,update:R,subTree:F,um:j}=d;T&&Nn(T),P.stop(),R&&(R.active=!1,_e(F,d,h,x)),j&&Be(j,h),Be(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ye=(d,h,x,T=!1,P=!1,R=0)=>{for(let F=R;F<d.length;F++)_e(d[F],h,x,T,P)},vt=d=>d.shapeFlag&6?vt(d.component.subTree):d.shapeFlag&128?d.suspense.next():p(d.anchor||d.el);let Xe=!1;const Oe=(d,h,x)=>{d==null?h._vnode&&_e(h._vnode,null,null,!0):E(h._vnode||null,d,h,null,null,null,x),Xe||(Xe=!0,cr(),ur(),Xe=!1),h._vnode=d},ut={p:E,um:_e,m:be,r:Ue,mt:V,mc:w,pc:K,pbc:M,n:vt,o:e};let At,jt;return t&&([At,jt]=t(ut)),{render:Oe,hydrate:At,createApp:Xa(Oe,At)}}function ti({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 Ht({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function oc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vr(e,t,n=!1){const o=e.children,i=t.children;if(ne(o)&&ne(i))for(let r=0;r<o.length;r++){const s=o[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=Et(i[r]),l.el=s.el),n||Vr(s,l)),l.type===so&&(l.el=s.el)}}function ic(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Hr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Hr(t)}const rc=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),so=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),lo=Symbol.for("v-stc"),xn=[];let nt=null;function z(e=!1){xn.push(nt=e?null:[])}function sc(){xn.pop(),nt=xn[xn.length-1]||null}let Sn=1;function Wr(e){Sn+=e}function Kr(e){return e.dynamicChildren=Sn>0?nt||Gt:null,sc(),Sn>0&&nt&&nt.push(e),e}function Y(e,t,n,o,i,r){return Kr(Z(e,t,n,o,i,r,!0))}function pe(e,t,n,o,i){return Kr(J(e,t,n,o,i,!0))}function ao(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const co="__vInternal",qr=({key:e})=>e??null,uo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||Ie(e)||oe(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function Z(e,t=null,n=null,o=0,i=null,r=e===Ce?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qr(t),ref:t&&uo(t),scopeId:pr,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:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Te};return l?(ni(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Se(n)?8:16),Sn>0&&!s&&nt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&nt.push(a),a}const J=lc;function lc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===mr)&&(e=et),ao(e)){const l=Ct(e,t,!0);return n&&ni(l,n),Sn>0&&!r&&nt&&(l.shapeFlag&6?nt[nt.indexOf(e)]=l:nt.push(l)),l.patchFlag|=-2,l}if(yc(e)&&(e=e.__vccOpts),t){t=ac(t);let{class:l,style:a}=t;l&&!Se(l)&&(t.class=Ee(l)),ve(a)&&(tr(a)&&!ne(a)&&(a=xe({},a)),t.style=ze(a))}const s=Se(e)?1:ka(e)?128:rc(e)?64:ve(e)?4:oe(e)?2:0;return Z(e,t,n,o,i,s,r,!0)}function ac(e){return e?tr(e)||co in e?xe({},e):e:null}function Ct(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?kn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qr(l),ref:t&&t.ref?n&&i?ne(i)?i.concat(uo(t)):[i,uo(t)]:uo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ct(e.ssContent),ssFallback:e.ssFallback&&Ct(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function It(e=" ",t=0){return J(so,null,e,t)}function cc(e,t){const n=J(lo,null,e);return n.staticCount=t,n}function ye(e="",t=!1){return t?(z(),pe(et,null,e)):J(et,null,e)}function lt(e){return e==null||typeof e=="boolean"?J(et):ne(e)?J(Ce,null,e.slice()):typeof e=="object"?Et(e):J(so,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ct(e)}function ni(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),ni(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(co in t)?t._ctx=Te:i===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[It(t)]):n=8);e.children=t,e.shapeFlag|=n}function kn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Ee([t.class,o.class]));else if(i==="style")t.style=ze([t.style,o.style]);else if(An(i)){const r=t[i],s=o[i];s&&r!==s&&!(ne(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function at(e,t,n,o=null){Qe(e,t,7,[n,o])}const uc=Mr();let dc=0;function fc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||uc,r={uid:dc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Al(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zr(o,i),emitsOptions:fr(o,i),emit:null,emitted:null,propsDefaults:de,inheritAttrs:o.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=ba.bind(null,r),e.ce&&e.ce(r),r}let Pe=null;const fo=()=>Pe||Te;let po,oi;{const e=Oi(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};po=t("__VUE_INSTANCE_SETTERS__",n=>Pe=n),oi=t("__VUE_SSR_SETTERS__",n=>ho=n)}const Cn=e=>{const t=Pe;return po(e),e.scope.on(),()=>{e.scope.off(),po(t)}},Ur=()=>{Pe&&Pe.scope.off(),po(null)};function Yr(e){return e.vnode.shapeFlag&4}let ho=!1;function pc(e,t=!1){t&&oi(t);const{props:n,children:o}=e.vnode,i=Yr(e);Za(e,n,i,t),Ja(e,o);const r=i?hc(e,t):void 0;return t&&oi(!1),r}function hc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=nr(new Proxy(e.ctx,Va));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?mc(e):null,r=Cn(e);yt();const s=pt(o,e,0,[e.props,i]);if(_t(),r(),Ei(s)){if(s.then(Ur,Ur),t)return s.then(l=>{Xr(e,l,t)}).catch(l=>{Xn(l,e,0)});e.asyncDep=s}else Xr(e,s,t)}else Gr(e,t)}function Xr(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=ir(t)),Gr(e,n)}let Zr;function Gr(e,t,n){const o=e.type;if(!e.render){if(!t&&Zr&&!o.render){const i=o.template||Zo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=xe(xe({isCustomElement:r,delimiters:l},s),a);o.render=Zr(i,c)}}e.render=o.render||He}{const i=Cn(e);yt();try{Ha(e)}finally{_t(),i()}}}function gc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return De(e,"get","$attrs"),t[n]}}))}function mc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return gc(e)},slots:e.slots,emit:e.emit,expose:t}}function go(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ir(nr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yn)return yn[n](e)},has(t,n){return n in t||n in yn}}))}const vc=/(?:^|[-_])(\w)/g,bc=e=>e.replace(vc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qr(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Jr(e,t,n=!1){let o=Qr(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?bc(o):n?"App":"Anonymous"}function yc(e){return oe(e)&&"__vccOpts"in e}const se=(e,t)=>ia(e,t,ho);function In(e,t,n=de){const o=fo(),i=je(t),r=We(t),s=rr((a,c)=>{let u;return $a(()=>{const f=e[t];it(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const p=o.vnode.props;!(p&&(t in p||i in p||r in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${r}`in p))&&it(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 es(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ne(t)?ao(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ao(n)&&(n=[n]),J(e,t,n))}const _c="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 _c="http://www.w3.org/2000/svg",wc="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,es=Et&&Et.createElement("template"),xc={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 i=t==="svg"?Et.createElementNS(_c,e):t==="mathml"?Et.createElementNS(wc,e):Et.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},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,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{es.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=es.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]}},Tt="transition",In="animation",En=Symbol("_vtc"),rn=(e,{slots:t})=>Jr(Oa,Sc(e),t);rn.displayName="Transition";const ts={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};rn.props=xe({},yr,ts);const Kt=(e,t=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},ns=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function Sc(e){const t={};for(const y in e)y in ts||(t[y]=e[y]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,R=kc(i),$=R&&R[0],F=R&&R[1],{onBeforeEnter:C,onEnter:B,onEnterCancelled:b,onLeave:M,onLeaveCancelled:_,onBeforeAppear:w=C,onAppear:j=B,onAppearCancelled:m=b}=t,L=(y,g,V)=>{qt(y,g?u:l),qt(y,g?c:s),V&&V()},z=(y,g)=>{y._isLeaving=!1,qt(y,d),qt(y,x),qt(y,p),g&&g()},J=y=>(g,V)=>{const G=y?j:B,re=()=>L(g,y,V);Kt(G,[g,re]),os(()=>{qt(g,y?a:r),$t(g,y?u:l),ns(G)||is(g,o,$,re)})};return xe(t,{onBeforeEnter(y){Kt(C,[y]),$t(y,r),$t(y,s)},onBeforeAppear(y){Kt(w,[y]),$t(y,a),$t(y,c)},onEnter:J(!1),onAppear:J(!0),onLeave(y,g){y._isLeaving=!0;const V=()=>z(y,g);$t(y,d),Ec(),$t(y,p),os(()=>{y._isLeaving&&(qt(y,d),$t(y,x),ns(M)||is(y,o,F,V))}),Kt(M,[y,V])},onEnterCancelled(y){L(y,!1),Kt(b,[y])},onAppearCancelled(y){L(y,!0),Kt(m,[y])},onLeaveCancelled(y){z(y),Kt(_,[y])}})}function kc(e){if(e==null)return null;if(ve(e))return[oi(e.enter),oi(e.leave)];{const t=oi(e);return[t,t]}}function oi(e){return ko(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[En]||(e[En]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[En];n&&(n.delete(t),n.size||(e[En]=void 0))}function os(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function is(e,t,n,o){const i=e._endId=++Cc,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Ic(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),r()},p=x=>{x.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,p)}function Ic(e,t){const n=window.getComputedStyle(e),o=R=>(n[R]||"").split(", "),i=o(`${Tt}Delay`),r=o(`${Tt}Duration`),s=rs(i,r),l=o(`${In}Delay`),a=o(`${In}Duration`),c=rs(l,a);let u=null,d=0,p=0;t===Tt?s>0&&(u=Tt,d=s,p=r.length):t===In?c>0&&(u=In,d=c,p=a.length):(d=Math.max(s,c),u=d>0?s>c?Tt:In:null,p=u?u===Tt?r.length:a.length:0);const x=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:x}}function rs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ss(n)+ss(e[o])))}function ss(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ec(){return document.body.offsetHeight}function Tc(e,t,n){const o=e[En];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),$c={beforeMount(e,{value:t},{transition:n}){e[ii]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tn(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),Tn(e,!0),o.enter(e)):o.leave(e,()=>{Tn(e,!1)}):Tn(e,t))},beforeUnmount(e,{value:t}){Tn(e,t)}};function Tn(e,t){e.style.display=t?e[ii]:"none"}const Pc=Symbol("");function Oc(e,t,n){const o=e.style,i=o.display,r=Se(n);if(n&&!r){if(t&&!Se(t))for(const s in t)n[s]==null&&ri(o,s,"");for(const s in n)ri(o,s,n[s])}else if(r){if(t!==n){const s=o[Pc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ii in e&&(o.display=i)}const ls=/\s*!important$/;function ri(e,t,n){if(ne(n))n.forEach(o=>ri(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Mc(e,t);ls.test(n)?e.setProperty(He(o),n.replace(ls,""),"important"):e[o]=n}}const as=["Webkit","Moz","ms"],si={};function Mc(e,t){const n=si[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return si[t]=o;o=Rn(o);for(let i=0;i<as.length;i++){const r=as[i]+o;if(r in e)return si[t]=r}return t}const cs="http://www.w3.org/1999/xlink";function Lc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(cs,t.slice(6,t.length)):e.setAttributeNS(cs,t,n);else{const r=Ll(t);n==null||r&&!Oi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function zc(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),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=Oi(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function sn(e,t,n,o){e.addEventListener(t,n,o)}function Ac(e,t,n,o){e.removeEventListener(t,n,o)}const us=Symbol("_vei");function jc(e,t,n,o,i=null){const r=e[us]||(e[us]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=Dc(t);if(o){const c=r[t]=Nc(o,i);sn(e,l,c,a)}else s&&(Ac(e,l,s,a),r[t]=void 0)}}const ds=/(?:Once|Passive|Capture)$/;function Dc(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):He(e.slice(2)),t]}let li=0;const Rc=Promise.resolve(),Bc=()=>li||(Rc.then(()=>li=0),li=Date.now());function Nc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Fc(o,n.value),t,5,[o])};return n.value=e,n.attached=Bc(),n}function Fc(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Tc(e,o,c):t==="style"?Oc(e,n,o):zn(t)?yo(t)||jc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hc(e,t,o,c))?zc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Lc(e,t,o,c))};function Hc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fs(t)&&oe(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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return fs(t)&&Se(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Wc(e,t){const n=ke(e);class o extends ai{constructor(r){super(n,r,t)}}return o.def=n,o}const Kc=typeof HTMLElement<"u"?HTMLElement:class{};class ai extends Kc{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),ht(()=>{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 i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!ne(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=ko(this._props[a])),(l||(l=Object.create(null)))[je(a)]=!0)}this._numberProps=l,i&&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=ne(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of o.map(je))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=ko(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(He(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(He(t),n+""):n||this.removeAttribute(He(t))))}_update(){vs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,xe({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};n.emit=(r,...s)=>{o(r,s),He(r)!==r&&o(He(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof ai){n.parent=i._instance,n.provides=i._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 ne(t)?n=>Bn(t,n):t};function qc(e){e.target.composing=!0}function hs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ci=Symbol("_assign"),Uc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ci]=ps(i);const r=o||i.props&&i.props.type==="number";sn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=So(l)),e[ci](l)}),n&&sn(e,"change",()=>{e.value=e.value.trim()}),t||(sn(e,"compositionstart",qc),sn(e,"compositionend",hs),sn(e,"change",hs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ci]=ps(r),e.composing)return;const s=i||e.type==="number"?So(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Yc=["ctrl","shift","alt","meta"],Xc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Yc.some(n=>e[`${n}Key`]&&!t.includes(n))},Ke=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const l=Xc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},Zc={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]=i=>{if(!("key"in i))return;const r=He(i.key);if(t.some(s=>s===r||Zc[s]===r))return e(i)})},Gc=xe({patchProp:Vc},xc);let ms;function Qc(){return ms||(ms=ec(Gc))}const vs=(...e)=>{Qc().render(...e)};var bs;const ui=typeof window<"u",ys=e=>typeof e=="function",Jc=e=>typeof e=="string",Pt=()=>{};ui&&((bs=window==null?void 0:window.navigator)!=null&&bs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function mo(e){return typeof e=="function"?e():U(e)}function _s(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function eu(e,t={}){let n,o,i=Pt;const r=l=>{clearTimeout(l),i(),i=Pt};return l=>{const a=mo(e),c=mo(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{i=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function tu(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=Pt,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Pt)};return d=>{const p=mo(e),x=Date.now()-i,R=()=>a=d();if(c(),p<=0)return i=Date.now(),R();if(x>p&&(n||!s))i=Date.now(),R();else if(t)return new Promise(($,F)=>{l=o?F:$,r=setTimeout(()=>{i=Date.now(),s=!0,$(R()),c()},p-x)});return!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,a}}function nu(e){return e}function ou(e,t){let n,o,i;const r=X(!0),s=()=>{r.value=!0,i()};fe(e,s,{flush:"sync"});const l=ys(t)?t:t.get,a=ys(t)?void 0:t.set,c=ir((u,d)=>(o=u,i=d,{get(){return r.value&&(n=l(),r.value=!1),o(),n},set(p){a==null||a(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function di(e){return Li()?(jl(e),!0):!1}function Ne(e,t=200,n={}){return _s(eu(t,n),e)}function ws(e,t=200,n=!1,o=!0,i=!1){return _s(tu(t,n,o,i),e)}function xs(e,t=!0){fo()?Re(e):t?e():ht(e)}function Ut(e){var t;const n=mo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const $n=ui?window:void 0,iu=ui?window.document:void 0;function Ot(...e){let t,n,o,i;if(Jc(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=$n):[t,n,o,i]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,d,p)=>(u.addEventListener(d,p,i),()=>u.removeEventListener(d,p,i)),a=fe(()=>Ut(t),u=>{s(),u&&r.push(...n.flatMap(d=>o.map(p=>l(u,d,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return di(c),c}function Ss(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),xs(o,t),n}const ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cs="__vueuse_ssr_handlers__";ks[Cs]=ks[Cs]||{};function Is(){const e=fo(),t=ou(()=>null,()=>e.proxy.$el);return kr(t.trigger),Re(t.trigger),t}function Es({document:e=iu}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Ot(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ts=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,su=Object.prototype.propertyIsEnumerable,lu=(e,t)=>{var n={};for(var o in e)ru.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ts)for(var o of Ts(e))t.indexOf(o)<0&&su.call(e,o)&&(n[o]=e[o]);return n};function au(e,t,n={}){const o=n,{window:i=$n}=o,r=lu(o,["window"]);let s;const l=Ss(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=fe(()=>Ut(e),d=>{a(),l.value&&i&&d&&(s=new ResizeObserver(t),s.observe(d,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}function $s(e,t={width:0,height:0},n={}){const{window:o=$n,box:i="content-box"}=n,r=se(()=>{var a,c;return(c=(a=Ut(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return au(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Ut(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:p})=>d+p,0),l.value=u.reduce((d,{blockSize:p})=>d+p,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),fe(()=>Ut(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function fi(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=$n}=n,l=Ss(()=>s&&"IntersectionObserver"in s);let a=Pt;const c=l.value?fe(()=>({el:Ut(e),root:Ut(o)}),({el:d,root:p})=>{if(a(),!d)return;const x=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});x.observe(d),a=()=>{x.disconnect(),a=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}var Ps;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ps||(Ps={}));var cu=Object.defineProperty,Os=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,Ms=(e,t,n)=>t in e?cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fu=(e,t)=>{for(var n in t||(t={}))uu.call(t,n)&&Ms(e,n,t[n]);if(Os)for(var n of Os(t))du.call(t,n)&&Ms(e,n,t[n]);return e};fu({linear:nu},{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 Ls(e={}){const{window:t=$n,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=X(n),l=X(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),xs(a),Ot("resize",a,{passive:!0}),i&&Ot("orientationchange",a,{passive:!0}),{width:s,height:l}}const pu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let i=1,r=.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;i<=c?(i++,r-=.65/c,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},ln={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>pu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},hu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},gu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},mu=ke({__name:"AutoNext",props:{hasNext:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X(null),s=X(!1),l=X(!1),a=X(n.seconds),c=X(n.seconds<0),u=X(n.seconds);return Re(()=>{let d;fi(r,p=>{l.value=p.some(x=>x.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,d&&(clearInterval(d),d=void 0),!(!l.value||c.value)&&(d=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(d),d=void 0,o("next"))},1e3))}),fi(i,p=>{s.value=p.some(x=>x.isIntersecting)}),Ft(()=>d&&clearInterval(d))}),(d,p)=>(O(),Y("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[st(Z("div",hu,[d.hasNext?(O(),Y("div",gu,[l.value?(O(),Y("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:ze(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):ye("",!0),st((O(),Y("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 totalDuration-200",onClick:p[0]||(p[0]=Ke(()=>o("next"),["stop"]))},[Ct(Ge(c.value?"Next":`Next in ${a.value}`),1)])),[[U(ln)]])])):ye("",!0),st((O(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:p[1]||(p[1]=Ke(()=>o("hide"),["stop"]))},[Ct(" Hide ")])),[[U(ln)]])],512),[[$c,s.value||!d.hasNext]])],512))}}),vu=`.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,i]of t)n[o]=i;return n},zs=he(mu,[["styles",[vu]]]),bu=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"}));function yu({touchDevice:e}){const t=X(!1);let n=0;return ro("busy:touchDevice",e),ro("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function pi(){const e=Vt("busy:touchDevice"),t=Vt("setBusyState");let n=!1;return Ft(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const _u={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,i=pi();let r=!1;function s(){r||(r=!0,i(!0,{desktopOnly:!0}))}function l(){r&&(r=!1,i(!1,{desktopOnly:!0}))}function a(c){n.disabled?c.preventDefault():o("click",c)}return(c,u)=>st((O(),pe(mr(c.href?"a":"button"),Sn(c.href?{href:c.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0 focus:outline-none",{"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:Ke(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:ie(()=>[Z("div",_u,[we(c.$slots,"default")])]),_:3},16,["class"])),[[U(ln),c.disabled?0:15]])}}),wu=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),xu={},Su={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ku=[Z("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Cu(e,t){return O(),Y("svg",Su,ku)}const As=he(xu,[["render",Cu]]),Iu=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));class Eu{constructor(){me(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 Tu(){const e=new Eu;return Ft(()=>e.dispose()),ro("keyController",e),e}function vo(e){const t=Vt("keyController");Re(()=>t.addListener(e)),Ft(()=>t.removeListener(e))}const $u={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Pu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},Ou={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},js=ke({__name:"BottomSheet",props:on({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Cn(e,"modelValue");vo({onKeyDown:o});const n=pi();fe(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(O(),Y("div",{class:Ee(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[3]||(r[3]=()=>t.value=!1)},[Q(rn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[t.value?(O(),Y("div",{key:0,class:"inline-flex flex-col h-[30rem] 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:r[1]||(r[1]=Ke(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=Ke(()=>{},["stop"]))},[Z("div",$u,[Q(tt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:ie(()=>[Q(As)]),_:1}),Z("div",Pu,Ge(i.name),1),we(i.$slots,"actions")]),Z("div",Ou,[we(i.$slots,"default")])],32)):ye("",!0)]),_:3})],2))}}),Mu=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Lu=["min","max","step"],zu={class:"flex-shrink-0"},hi=he(ke({__name:"InputPercentage",props:on({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Cn(e,"modelValue"),n=se({get(){return t.value},set(o){t.value=+o}});return(o,i)=>(O(),Y("div",{class:Ee(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:ze({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[st(Z("input",{"onUpdate:modelValue":i[0]||(i[0]=r=>n.value=r),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,Lu),[[Uc,n.value]]),Z("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}
22
- `]]]),Au=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),ju=["onClick","onKeyup"],Pn=ke({__name:"InputSelect",props:on({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Cn(e,"modelValue"),o=X(null),i=X({width:"",left:""});Re(()=>{let s=!1;fe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(i.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){n.value=s}return(s,l)=>(O(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Z("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:ze(i.value)},null,4),(O(!0),Y(Ce,null,bn(t.items,(a,c)=>st((O(),Y("div",{key:c,tabindex:"0",class:Ee(["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:()=>r(c),onKeyup:[gs(()=>r(c),["enter"]),gs(()=>r(c),["space"])]},[Ct(Ge(a),1)],42,ju)),[[U(ln),30]])),128))],512))}}),Du=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),Ru={class:"flex items-center mb-8 last:mb-0"},Bu={class:"flex-grow overflow-hidden"},Yt=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(O(),Y("div",Ru,[Z("div",{class:Ee(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},Ge(t.label),3),Z("div",Bu,[we(t.$slots,"default")])]))}}),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"})),Fu={},Vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hu=[Z("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 Wu(e,t){return O(),Y("svg",Vu,Hu)}const Ds=he(Fu,[["render",Wu]]),Ku=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),qu={},Uu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Yu=[Z("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),Z("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Xu(e,t){return O(),Y("svg",Uu,Yu)}const Rs=he(qu,[["render",Xu]]),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"}));function Gu(e){if(e)try{return JSON.parse(e)}catch{return}}function Qu(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ct=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ct||{}),Mt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Mt||{});const Ju=.25,ed=5,td=.25,On=.2,Mn=5,nd=.05,od=0,id=4,Bs=5;function rd(e){var _,w,j,m,L,z,J;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Qu(t.value):location.hostname),i=X(sd(`tkr:${o.value}`)),r=y=>{i.value=y;const g=`tkr:${o.value}`;!y||!Object.keys(y).length?localStorage.removeItem(g):localStorage.setItem(g,JSON.stringify(y))},s=y=>{if(!i.value){r(y);return}const g={...i.value};Object.entries(y).forEach(([V,G])=>{G===void 0?delete g[V]:g[V]=G}),r(g)},l=X(((_=i.value)==null?void 0:_.style)??e.defaultStyle??Mt.longStrip),a=X(((w=i.value)==null?void 0:w.direction)??e.defaultDirection??ct.vertical),c=X((j=i.value)==null?void 0:j.gap),u=X(((m=i.value)==null?void 0:m.speed)??1),d=X(((L=i.value)==null?void 0:L.zoom)??1),p=X(((z=i.value)==null?void 0:z.breakFirst)??!1),x=X(((J=i.value)==null?void 0:J.autoNextSeconds)??Bs),R=se({get(){return n.value?Mt.longStrip:l.value},set:y=>{l.value=y,s({style:y}),y!==Mt.longStrip&&a.value===ct.vertical&&($.value=ct.rtl)}}),$=se({get:()=>n.value?ct.vertical:a.value,set:y=>{a.value=y,s({direction:y})}}),F=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||R.value!==Mt.longStrip?0:1,set(y){c.value=y,s({gap:y})}}),C=se({get:()=>u.value,set(y){u.value=y,s({speed:y===1?void 0:y})}}),B=se({get:()=>d.value,set(y){d.value=y,s({zoom:y===1?void 0:y})}}),b=se({get:()=>p.value,set(y){p.value=y,s({breakFirst:y?!0:void 0})}}),M=se({get:()=>x.value,set(y){x.value=y,s({autoNextSeconds:y===Bs?void 0:y})}});return{direction:$,style:R,gap:F,speed:C,zoom:B,isLongStrip:se(()=>R.value===Mt.longStrip),isDouble:se(()=>R.value===Mt.double),isRTL:se(()=>$.value===ct.rtl),isVertical:se(()=>$.value===ct.vertical),breakFirst:b,autoNextSeconds:M}}function sd(e){const t=localStorage.getItem(e),n=Gu(t),o={};return n?(n.style!==void 0&&Object.values(Mt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ct).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=od&&n.gap<=id&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=On&&n.speed<=Mn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=On&&n.zoom<=Mn&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const Ns=ke({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:autoNextSeconds","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,i=X(!1),r=se(()=>n.name??location.hostname);vo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(i.value=!i.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){i.value=!1,o("help")}return(a,c)=>(O(),Y(Ce,null,[Q(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>i.value=!0)},{default:ie(()=>[Q(Rs)]),_:1},8,["disabled"]),Q(js,{modelValue:i.value,"onUpdate:modelValue":c[6]||(c[6]=u=>i.value=u),name:r.value},{actions:ie(()=>[Q(tt,{transparent:"",onClick:l},{default:ie(()=>[Q(Ds)]),_:1})]),default:ie(()=>[Q(Yt,{label:"Style"},{default:ie(()=>[Q(Pn,{"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}),Q(Yt,{label:"Direction"},{default:ie(()=>[Q(Pn,{"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}),Q(Yt,{label:"Gap"},{default:ie(()=>[Q(Pn,{"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}),Q(Yt,{label:"Auto Next"},{default:ie(()=>[Q(Pn,{"model-value":a.autoNextSeconds<0?0:a.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":c[4]||(c[4]=u=>o("update:autoNextSeconds",u===0?-1:u))},null,8,["model-value"])]),_:1}),Q(Yt,{label:"Speed"},{default:ie(()=>[Q(hi,{"model-value":a.speed,min:U(Ju),max:U(ed),step:U(td),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=u=>o("update:speed",u))},{suffix:ie(()=>[Ct(Ge(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(Yt,{label:"Zoom"},{default:ie(()=>[Q(hi,{"model-value":Math.ceil(a.zoom*100),min:U(On)*100,max:U(Mn)*100,step:U(nd)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[Ct(Ge(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),ld=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),ad={},cd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},ud=[Z("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Z("circle",{cx:"14",cy:"14",r:"12"}),Z("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function dd(e,t){return O(),Y("svg",cd,ud)}const Fs=he(ad,[["render",dd]]),fd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),pd={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"},hd={class:"block w-4 h-4"},gd={class:"w-12"},Vs=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>(O(),Y("button",pd,[Z("div",hd,[Q(Fs)]),Z("div",gd,Ge(Math.ceil(t.zoom*100))+"%",1)]))}}),md=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"}));async function an(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await an(e-1,t,n);i(r)},t)})}const vd={},bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},yd=[ac('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function _d(e,t){return O(),Y("svg",bd,yd)}const Hs=he(vd,[["render",_d]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),xd={},Sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kd=[Z("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Cd(e,t){return O(),Y("svg",Sd,kd)}const Ws=he(xd,[["render",Cd]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Ed=["aria-hidden"],Td=["onClick"],$d={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"},Pd={class:"whitespace-nowrap"},gi=ke({__name:"ButtonDropdown",props:on({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:on(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=Cn(e,"modelValue"),r=X(null),s=X(!1),l=X(!1),a=X(!1),c=X(!1),u=X(!1),d={mounted:m=>{var L;(L=m.children[i.value])==null||L.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};vo({onKeyDown:C});const p=pi();async function x(){if(!n.items.length&&(s.value||await R(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?($(),b(r.value)):setTimeout(M,250)}async function R(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function $(){const m=r.value;if(m){const L=m.getBoundingClientRect(),z=L.x+L.width/2;a.value=L.y>window.innerHeight/2,c.value=z<window.innerWidth/3,u.value=z>window.innerWidth/3*2}}function F(m,L){x(),m!=i.value&&(i.value=m,o("select",m,L))}function C(m){s.value&&m.key==="Escape"&&(x(),m.preventDefault())}let B=[];function b(m){const L=window.getComputedStyle(m).zIndex,z=m.style.zIndex;(!L||!(+L>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",B.push({el:m,zIndex:z})),m.parentElement&&b(m.parentElement))}function M(){B.forEach(({el:m,zIndex:L})=>{m.style.zIndex=L??""}),B=[]}let _=!1;function w(){_||(_=!0,p(!0,{desktopOnly:!0}))}function j(){_&&(_=!1,p(!1,{desktopOnly:!0}))}return(m,L)=>(O(),Y("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(O(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:x})):ye("",!0),m.items.length?(O(),pe(rn,{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?st((O(),Y("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Ee(["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:L[0]||(L[0]=Ke(()=>{},["stop"]))},[(O(!0),Y(Ce,null,bn(m.items,(z,J)=>st((O(),Y("li",{key:J,tabindex:"-1",class:Ee(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":J===i.value}]),onClick:y=>F(J,y)},[Z("div",{class:Ee(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":J>0}])},[we(m.$slots,"item",{item:z},()=>[Ct(Ge(z),1)])],2)],10,Td)),[[U(ln),30]])),128))],42,Ed)),[[d]]):ye("",!0)]),_:3})):ye("",!0),st((O(),Y("button",Sn({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||l.value}]},m.title?{title:m.title}:{},{onClick:Ke(x,["stop"]),onMouseenter:w,onMouseleave:j}),[Z("div",$d,[Z("span",Pd,Ge(m.label),1),m.items.length||m.canLoadItems?(O(),Y("span",{key:0,class:Ee(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(O(),pe(Hs,{key:0})):(O(),pe(Ws,{key:1}))],2)):ye("",!0)])],16)),[[U(ln),30]])],512))}}),Od=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),Ks=ke({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,sel:u,label:d}=a;if(c&&(!u||!d)){await r(c);return}o("getHiddenChapters"),await an(50,50,()=>n.data.chapters.length?!0:void 0)}async function r(a){const c=document.querySelector(a);c&&(c instanceof HTMLDialogElement?c.showModal():c.click(),o("chaptersDialogOpen"))}function s(a,c){var u,d,p;(p=(d=(u=n.data)==null?void 0:u.chapters)==null?void 0:d[a])==null||p.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return O(),pe(gi,{modelValue:a.data.activeIndex,label:a.data.activeLabel,title:"Select chapter",items:a.data.chapters,"can-load-items":!!((u=a.chapterSpec)!=null&&u.trigger),"load-items":i,onSelect:s},{item:ie(({item:d})=>[Ct(Ge(d.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Md=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Ld={},zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ad=[Z("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function jd(e,t){return O(),Y("svg",zd,Ad)}const qs=he(Ld,[["render",jd]]),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Us=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),i=Ne(()=>o.value=!1,1250);fe(()=>t.direction,()=>{r(),o.value=!0,i()}),Re(()=>{r(),i();let s;const l=Es();fe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(O(),pe(rn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(O(),Y("div",{key:0,class:Ee(["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===U(ct).vertical,"rotate-180":s.direction===U(ct).rtl}])},[Q(qs)],2)):ye("",!0)]),_:1}))}}),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Bd=Z("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Ys=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X([]);Re(async()=>{const c=$s(i),u=Ne(()=>{s({width:c.width.value,height:c.height.value})},50);u(),fe(c.width,u),fe(c.height,u)});function s(c){var p;const u=(p=i.value)==null?void 0:p.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(r.value=l(d,c))}function l(c,u){const d=[],p=[];let x=0,R=0;const $=50,F=25;c.forEach(_=>{var z;const w=(z=_.getAttribute("title"))==null?void 0:z.trim(),j=_.getBoundingClientRect();if(!w||!j.height||!j.width)return;const m=Math.ceil((j.top-10)/$),L=Math.ceil((j.left-10)/$);p.push({isTour:!1,title:w,rect:j,fromX:L,toX:Math.max(L+1,Math.ceil((j.right+10)/$)),fromY:m,toY:Math.max(m+1,Math.ceil((j.bottom+10)/$))})}),p.forEach(_=>{for(let w=_.fromY;w<_.toY;w++){d[w]??(d[w]=[]);for(let j=_.fromX;j<_.toX;j++)d[w][j]=_;_.toY>x+1&&(x=_.toY-1),_.toX>R+1&&(R=_.toX-1)}});let C=R/2;p.forEach(_=>{_.isAlignRight=_.fromX>C});const B=(_,w)=>{d[w]??(d[w]=[]);const j=w>=_.toY;if(_.isTour)for(let m=_.fromX;m<_.toX;m++)delete d[_.fromY][m],_.fromY=w,_.toY=w+(j?1:-1),d[w][m]=_;else{const m=_.isAlignRight?_.fromX-3:_.fromX,L=m+3;_.helpItem={fromX:m,toX:L,fromY:w,toY:w+1,isTour:!0,isAlignRight:_.isAlignRight};for(let z=m;z<L;z++)d[w][z]=_.helpItem}},b=(_,w)=>{if(w>x||w<0)return!1;const j=w>=_.toY,m=d[w];if(!m)return B(_,w),!0;const L=m[_.fromX];if(L&&!L.isTour)return!1;if(L&&L.isTour)return b(L,j?w+1:w-1)?(B(_,w),!0):!1;if(!L){const z=_.isAlignRight?-1:1;return m[_.fromX+z]||m[_.fromX+z*2]?b(_,j?w+1:w-1):(B(_,w),!0)}return!1};p.forEach(_=>{if(!b(_,_.toY)){if(_.isAlignRight){const w=d[_.fromY]??[];if(!w.slice(_.fromX-3,_.fromX).filter(Boolean).length){const m=_.fromX-3,L=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:m,toX:L,fromY:_.fromY,toY:_.toY};for(let z=_.fromX-3;z<_.fromX;z++)w[z]=_.helpItem;return}}b(_,_.fromY-1)}});const M=[];return p.forEach(_=>{const{title:w,helpItem:j,rect:m,isAlignRight:L,fromX:z,fromY:J,toY:y}=_;if(!w||!j||!m)return;const g=j.fromY>=y,V=j.toY<=J;M.push({title:a(w),style:{top:g?`${m.bottom+(j.fromY-y)*$+F}px`:V?void 0:`${m.top+8}px`,bottom:V?`${u.height-m.top+(j.toY-J)*$+F}px`:void 0,left:L?void 0:`${m.left}px`,right:L?g?`${u.width-m.right}px`:`${u.width-m.right+m.width+F}px`:void 0},arrowStyle:{width:V||g?"2px":`${Math.abs(j.toX-z)*$+F-5}px`,height:V||g?`${(g?j.fromY-y:J-j.toY)*$+F}px`:"2px",top:g?`${m.bottom}px`:V?void 0:`${m.top+20}px`,bottom:V?`${u.height-m.top}px`:void 0,left:L?void 0:`${m.left+m.width/2}px`,right:L?g?`${u.width-m.right+m.width/2}px`:`${u.width-m.right+m.width}px`:void 0}})}),M}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(O(),Y(Ce,null,[Bd,Z("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=Ke(d=>o("hide"),["stop"]))},[(O(!0),Y(Ce,null,bn(r.value,d=>(O(),Y(Ce,{key:d.title},[Z("div",{class:"absolute",style:ze(d.style)},Ge(d.title),5),Z("div",{class:"absolute bg-stone-300 rounded-lg",style:ze(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Xs=ke({__name:"PageNav",props:on({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Cn(e,"modelValue"),o=se(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),i=se(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),r=se(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(O(),pe(gi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Vd={},Hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wd=[Z("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),Z("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 Kd(e,t){return O(),Y("svg",Hd,Wd)}const mi=he(Vd,[["render",Kd]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Ud={},Yd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Xd=[Z("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 Zd(e,t){return O(),Y("svg",Yd,Xd)}const vi=he(Ud,[["render",Zd]]),Gd=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Zs=he(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return fe(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(O(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(O(),pe(vi,{key:0})):(O(),pe(mi,{key:1}))])):ye("",!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
- `]]]),Qd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Gs=ke({__name:"GesturesContainer",props:{zoom:{},zooming:{type:Boolean},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","update:zooming","dragEnd","click"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X(Math.min(Mn,Math.max(On,n.zoom))),s=X(!1),l=X(!1),a={isZoomIn:!1,isZoomOut:!1,initial:void 0};fe(()=>n.zoom,g=>y(g)),Re(()=>{n.touchDevice?Ot(i,"touchstart",F):(Ot(i,"mousedown",p),Ot(window,"wheel",w))}),vo({onKeyDown:g=>{var V;if(!n.busy&&((V=i.value)==null||V.focus(),!(g.key==="Meta"||g.key==="Control")&&(g.ctrlKey||g.metaKey)))switch(g.key){case"0":y(1);break;case"-":y(r.value-.2),g.preventDefault();break;case"=":case"+":y(r.value+.2),g.preventDefault();break}},onKeyUp:g=>{n.zooming&&!(g.ctrlKey||g.metaKey)&&L()}});function c(g){l.value!==g&&(l.value=g,g?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},d={x:0,y:0};function p(g){g.button===0&&(u={x:g.clientX,y:g.clientY},d={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",x),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",x),setTimeout(()=>c(!1))},{once:!0}),g.preventDefault(),g.stopPropagation())}function x(g){c(!0);const V=g.clientX-u.x,G=g.clientY-u.y,re=i.value;re.scrollLeft=d.x-V,re.scrollTop=d.y-G}let R={distance:0,zoom:r.value,x:0,y:0},$=!1;function F(g){n.busy||($=g.touches.length===2,$&&(o("update:zooming",!0),c(!0),g.stopPropagation(),g.preventDefault(),R={distance:j(g),zoom:r.value,x:(g.touches[0].clientX+g.touches[1].clientX)/2,y:(g.touches[0].clientY+g.touches[1].clientY)/2}),($||n.longStrip&&n.playController.isPlaying.value)&&window.addEventListener("touchend",C,{once:!0}))}function C(){if($=!1,n.zooming){c(!1),L();return}if(!l.value)return;const g=Ne(()=>{c(!1),i.value.removeEventListener("scroll",G)},200),V=setTimeout(g,200);i.value.addEventListener("scroll",G);function G(){clearTimeout(V),g()}}function B(g){if(!(!$&&!(n.longStrip&&n.playController.isPlaying.value))&&(c(!0),n.zooming)){g.stopPropagation(),g.preventDefault();const G=j(g)/R.distance;J(Math.ceil(G*R.zoom*100)/100,R)}}const b=Ne(()=>s.value=!1,100);let M=!1;const _=Ne(()=>{M=!1},30);function w(g){if(n.busy)return;let V=n.zooming;if(M||(M=!0,V=g.ctrlKey||g.metaKey,V&&o("update:zooming",!0)),_(),V){g.stopPropagation(),g.preventDefault();const G=Math.ceil((r.value+g.deltaY*-.01)*100)/100;J(G,{x:g.clientX,y:g.clientY});return}n.horizontal&&(s.value||(s.value=!0),b(),g.deltaY&&(i.value&&(i.value.scrollLeft+=g.deltaY*(n.rtl?-1:1)),g.stopPropagation()))}function j(g){return Math.hypot(g.touches[0].clientX-g.touches[1].clientX,g.touches[0].clientY-g.touches[1].clientY)}function m(g){!l.value&&!n.zooming&&o("click",g)}function L(){o("update:zooming",!1),a.initial=void 0,a.isZoomIn=!1,a.isZoomOut=!1}function z(){if(a.initial)return;const g=i.value;if(!g)return;const V=g.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;V&&(a.initial={el:V,rect:V.getBoundingClientRect()})}function J(g,V){if(a.isZoomIn=a.isZoomIn||!a.isZoomOut&&g>1,a.isZoomIn&&g<1){y(1,V);return}if(a.isZoomOut=a.isZoomOut||!a.isZoomIn&&g<1,a.isZoomOut&&g>1){y(1,V);return}y(g,V)}async function y(g,V){const G=i.value,re=Math.min(Mn,Math.max(On,g));if(!G||r.value===re)return;z();const{initial:I}=a;if(!I)return;const K=(V==null?void 0:V.x)??G.clientWidth/2,le=(V==null?void 0:V.y)??G.clientHeight/2;r.value=re,o("update:zoom",re),await ht();const{el:ue,rect:be}=I,_e=ue.offsetWidth/be.width,Ue=ue.offsetHeight/be.height;G.scrollLeft=ue.offsetLeft-be.left*_e+K*(_e-1),G.scrollTop=ue.offsetTop-be.top*Ue+le*(Ue-1)}return(g,V)=>(O(),Y("div",{ref_key:"root",ref:i,tabindex:"0",class:Ee(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!g.longStrip&&(l.value||s.value||g.zooming),"cursor-grabbing":!g.touchDevice&&l.value,"overflow-hidden":g.zooming}]),style:ze({"font-size":`${r.value}px`}),onClick:Ke(m,["stop"]),onTouchmoveCapture:Ke(B,["stop"])},[we(g.$slots,"default")],38))}}),Jd=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),ef=`.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
- `,tf={},nf={class:"loading-indicator"};function of(e,t){return O(),Y("div",nf)}const bi=he(tf,[["render",of],["styles",[ef]]]),rf=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"}));function yi(e,t){return(e==null?void 0:e.querySelector(`[data-index="${t}"],[data-index2="${t}"]`))??void 0}const sf=["data-index"],lf={key:0,class:"img img--loading"},af=["src"],cf=["data-index"],Qs=he(ke({__name:"ReaderBody",props:{page:{},pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isDouble:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},zooming:{type:Boolean},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["ready","update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=Is(),r=X(null),s=Ls(),l=X(n.pageIndex),a=se(()=>{const{width:C,height:B}=s,b=n.isLongStrip?n.isVertical?C.value:B.value:Math.min(C.value,B.value);return Math.min(4,Math.max(1,Math.ceil(b/400-1)))*n.gap}),c=X(n.isLongStrip?{min:n.pageIndex-1,max:n.pageIndex}:x()),u=se(()=>{const{min:C,max:B}=c.value,b={};for(let M=C;M<=B;M++)b[M]=!0;return b}),d=se(()=>{const{width:{value:C},height:{value:B}}=s;return n.pages.map(b=>{var y;const M=b.some(g=>{var V;return(V=g.img)==null?void 0:V.isLoading}),_=b.map(g=>g.index),w={isLoading:M,indexes:_,visible:!1};if(M||_[_.length-1]<l.value)return w;const j=b.map(({img:g})=>g).filter(Boolean);if(!j.length||(w.srcs=j.map(({src:g})=>g),j.every(g=>g.hasError)))return w;const L=(y=j.find(g=>!g.hasError))==null?void 0:y.size,z=j.reduce((g,V)=>{var G;return g+(((G=V.size)==null?void 0:G.width)??L.width)},0),J=j.reduce((g,V)=>{var G;return g+(((G=V.size)==null?void 0:G.height)??L.height)},0)/j.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&C/z<B/J?(w.width=Math.min(C,z),w.height=J*(w.width/z)):(w.height=Math.min(B,J),w.width=z*(w.height/J)),w})}),p=se(()=>{const C=n.isVertical?"width":"height";return d.value.map(B=>B[C]).filter(Boolean).sort((B,b)=>b-B)[0]});Re(()=>{const C=yi(i.value,n.pageIndex);C==null||C.scrollIntoView({behavior:"instant",block:"start"});let B,b=!1;Ea(()=>{B!==n.page&&(B=n.page,M(),b||(b=!0,ht(()=>o("ready"))))});async function M(){if(!n.isLongStrip){c.value=x();return}const _=Math.floor(n.page),w=yi(i.value,_);if(!w)return;const j=+R(w).getAttribute("data-index"),m=+$(w).getAttribute("data-index");(j!==c.value.min||m!==c.value.max)&&(c.value={min:j,max:m}),j<l.value&&(l.value=j)}});function x(){const{pageIndex:C}=n,B=n.isDouble?2:1;return{min:C-B,max:C+B}}function R(C){const B=C.previousElementSibling;if(!B)return C;const b=B.getBoundingClientRect();return(n.isVertical?b.y+b.height>-(s.height.value*.5):n.isRTL?b.x<s.width.value*1.5:b.x+b.width>-(s.width.value*.5))?R(B):C}function $(C){const B=C.nextElementSibling;if(!B)return C;const b=B.getBoundingClientRect();return(n.isVertical?b.y<s.height.value*1.5:n.isRTL?b.x+b.width>-(s.width.value*.5):b.x<s.width.value*1.5)?$(B):C}function F(C){if(!n.isLongStrip){const B=n.isVertical?s.height.value:s.width.value,M=(n.isVertical?C.clientY:n.isRTL?B-C.clientX:C.clientX)/B;if(M<=.2&&n.pageIndex>0){o("prev");return}else if(M>=.8){o("next");return}}o("click")}return(C,B)=>(O(),pe(Gs,{zoom:C.zoom,zooming:C.zooming,"page-index":C.pageIndex,class:Ee(["rbod",{"rbod--touch":C.touchDevice,"rbod--long-strip":C.isLongStrip,"rbod--paging":!C.isLongStrip,"rbod--vertical":C.isVertical,"rbod--rtl":C.isRTL,"rbod--idle":C.idle,"rbod--first":!C.isLongStrip&&C.pageIndex===0,"rbod--last":!C.isLongStrip&&C.pageIndex===C.totalImgs&&!C.hasNext,"rbod--1page":d.value.length===1}]),"play-controller":C.playController,horizontal:!C.isVertical,rtl:C.isRTL,"touch-device":C.touchDevice,busy:C.busy,"long-strip":C.isLongStrip,style:ze({"--gap":`${a.value}em`,"--space-top":(C.spaceTop||0)+"px","--screen-width-em":U(s).width.value+"em","--screen-height-em":U(s).height.value+"em",...C.isLongStrip?{"--max-size-em":p.value+"em"}:{}}),"onUpdate:zoom":B[0]||(B[0]=b=>o("update:zoom",b)),"onUpdate:zooming":B[1]||(B[1]=b=>o("update:zooming",b)),onDragEnd:B[2]||(B[2]=()=>o("dragEnd")),onClick:F},{default:ie(()=>[(O(!0),Y(Ce,null,bn(d.value,b=>{var M;return O(),Y("div",Sn({key:C.direction+"_"+b.indexes[0],"data-index":b.indexes[0]},b.indexes.length>1?{"data-index2":b.indexes[1]}:{}),[!((M=b.srcs)!=null&&M.length)||b.isLoading?(O(),Y("div",lf,[u.value[b.indexes[0]]?(O(),pe(bi,{key:0})):ye("",!0)])):b.srcs.length==1?(O(),pe(mr(u.value[b.indexes[0]]?"img":"div"),Sn({key:1,class:"img"},u.value[b.indexes[0]]?{src:b.srcs[0]}:{},{style:{width:b.width!==void 0?b.width+"em":"",height:b.height!==void 0?b.height+"em":""}}),null,16,["style"])):(O(),Y("div",{key:2,class:Ee(["img img--double",{"flex-row-reverse":C.isRTL}]),style:ze({width:b.width!==void 0?b.width+"em":"",height:b.height!==void 0?b.height+"em":""})},[b.indexes.some(_=>u.value[_])?(O(!0),Y(Ce,{key:0},bn(b.srcs,_=>(O(),Y("div",{key:_},[Z("img",{src:_},null,8,af)]))),128)):ye("",!0)],6))],16,sf)}),128)),Z("div",{ref_key:"autoNextEl",ref:r,class:"last","data-index":C.totalImgs},[we(C.$slots,"end")],8,cf)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"]))}}),[["styles",[`.rbod{--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){.rbod{transform:none}}.rbod--rtl{flex-direction:row-reverse}.rbod.rbod--vertical>div{padding:calc(var(--gap)/2) 0}.rbod:not(.rbod--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.rbod:not(.rbod--vertical)>div{padding:0 calc(var(--gap)/2)}.rbod--long-strip.rbod--vertical.rbod--1page>div:first-child{min-height:100vh}.rbod--long-strip.rbod--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.rbod--long-strip.rbod--vertical>div:last-child{padding-bottom:0}.rbod--long-strip.rbod--vertical>div{width:var(--max-size-em)}.rbod--long-strip.rbod--vertical .img--loading{height:75vh;max-width:100%;width:100vw}.rbod--long-strip.rbod--vertical .last{height:100vh}.rbod--long-strip:not(.rbod--vertical).rbod--1page>div:first-child{min-width:100vw}.rbod--long-strip:not(.rbod--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.rbod--long-strip:not(.rbod--vertical) .img--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.rbod--long-strip:not(.rbod--vertical) .last{width:100vw}.rbod--long-strip>div>img{flex-shrink:0;margin:auto}.rbod--paging:not(.rbod--touch):after,.rbod--paging:not(.rbod--touch):before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.rbod--paging.rbod--first:before,.rbod--paging.rbod--last:after{cursor:default}.rbod--paging.rbod--idle:after,.rbod--paging.rbod--idle:before{cursor:none}.rbod--paging>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;scroll-snap-stop:always}.rbod--paging.rbod--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.rbod--paging.rbod--vertical:after,.rbod--paging.rbod--vertical:before{height:20vw;left:0;right:0}.rbod--paging.rbod--vertical:before{top:0}.rbod--paging.rbod--vertical:after{bottom:0}.rbod--paging.rbod--vertical>div{width:var(--screen-width-em)}.rbod--paging:not(.rbod--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.rbod--paging:not(.rbod--vertical).rbod--rtl:before{right:0}.rbod--paging:not(.rbod--vertical).rbod--rtl:after,.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):before{left:0}.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):after{right:0}.rbod--paging:not(.rbod--vertical):after,.rbod--paging:not(.rbod--vertical):before{bottom:0;top:0;width:20vw}.rbod--paging:not(.rbod--vertical)>div{height:var(--screen-height-em)}.rbod--paging .img--loading{height:100vh;width:100vw}.rbod--paging .img--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.rbod--paging .img--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod--paging .img--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.rbod>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod .img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;margin:auto!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.rbod .img--loading{align-items:center;display:flex;justify-content:center}
25
- `]]]),uf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),df={class:"max-h-none max-w-none h-full w-full m-0 p-0 border-none outline-none"},ff={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},pf={class:"flex justify-between items-end"},hf={class:"inline-block children-pointer-events-auto w-1/3"},gf={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},mf={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},vf={class:"inline-block z-20 relative"},bf={key:1,class:"fixed left-0 right-0 bottom-0 p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3 flex justify-center pointer-events-none children-pointer-events-auto"},Js=he(ke({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},zooming:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){const t={mounted:n=>n.showModal(),beforeUnmount:n=>n.close()};return(n,o)=>st((O(),Y("dialog",df,[Z("div",{id:"reader-layout",class:Ee({"cursor-none":n.idle,"cursor-default":!n.idle,"bg-black":n.immediate||!n.loading,"opacity-0":!n.immediate&&n.loading,"duration-200 transition-colors":!n.immediate})},[n.loading&&n.immediate?(O(),Y("div",ff,[Q(bi)])):ye("",!0),we(n.$slots,"default"),Z("div",{id:"controls",class:Ee(["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":!n.fullScreen,"opacity-0 -z-10":n.fullScreen}])},[Z("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:ze({paddingTop:`${n.spaceTop||0}px`})},[we(n.$slots,"back"),we(n.$slots,"exit"),we(n.$slots,"chapter-nav")],4),Z("div",pf,[Z("div",hf,[we(n.$slots,"page-nav")]),Z("div",gf,[n.fullScreen&&n.zooming?ye("",!0):we(n.$slots,"reset-zoom",{key:0})]),Z("div",mf,[we(n.$slots,"entry"),Z("div",vf,[we(n.$slots,"settings")]),we(n.$slots,"full-screen"),we(n.$slots,"play"),we(n.$slots,"break-first")])]),Z("div",{class:Ee(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":n.rtl}])},[we(n.$slots,"progress")],2)],2),n.fullScreen&&n.zooming?(O(),Y("div",bf,[we(n.$slots,"reset-zoom")])):ye("",!0)],2)])),[[t]])}}),[["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:100%;line-height:24px;overflow:hidden;overscroll-behavior:contain;pointer-events:auto;text-align:left;width:100%}
26
- `]]]),yf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),el=he(ke({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=X(null),i=X(0),r=X([]),s=se(()=>r.value[i.value]),l=ws(a,500);Re(()=>{const d=$s(o),p=Ne(()=>c({width:d.width.value,height:d.height.value}),50);p(),fe(d.width,p),fe(d.height,p)});function a(){i.value>=r.value.length-1?n("hide"):i.value++}function c(d){const p=u();r.value=p.map(({rect:x,text:R})=>{const $=x.top<d.height-x.bottom,F=x.left<d.width-x.right;return{text:R,style:{left:`${x.left}px`,top:`${x.top}px`,width:`${x.width}px`,height:`${x.height}px`},textStyle:{left:F?`${x.left-12}px`:void 0,right:F?void 0:`${d.width-x.left}px`,top:$?`${x.bottom+12}px`:`${x.top+20}px`,textAlign:$?void 0:"right",transform:$?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function u(){var x;const d=(x=o.value)==null?void 0:x.parentElement;if(!d)return[];const p=[];return d.querySelectorAll("[data-tour]").forEach(R=>{var C;const $=(C=R.getAttribute("data-tour"))==null?void 0:C.trim();if(!($!=null&&$.length))return;const F=R.getBoundingClientRect();p.push({rect:F,text:$})}),p}return(d,p)=>{var x,R;return O(),Y(Ce,null,[Z("div",{class:Ee(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),Z("div",{ref_key:"root",ref:o,class:"tour",onClick:p[0]||(p[0]=Ke((...$)=>U(l)&&U(l)(...$),["stop"]))},[s.value?(O(),Y("div",{key:i.value,class:"tour__target",style:ze(s.value.style)},null,4)):ye("",!0),(O(),Y("div",{key:i.value,class:"tour__text",style:ze((x=s.value)==null?void 0:x.textStyle)},Ge(((R=s.value)==null?void 0:R.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
- `]]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Sf=[Z("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 kf(e,t){return O(),Y("svg",xf,Sf)}const tl=he(wf,[["render",kf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),If={},Ef={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[Z("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 $f(e,t){return O(),Y("svg",Ef,Tf)}const nl=he(If,[["render",$f]]),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),Of={},Mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Lf=[Z("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 zf(e,t){return O(),Y("svg",Mf,Lf)}const ol=he(Of,[["render",zf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),jf={},Df={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Rf=[Z("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Bf(e,t){return O(),Y("svg",Df,Rf)}const il=he(jf,[["render",Bf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),Ff={},Vf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Hf=[Z("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Wf(e,t){return O(),Y("svg",Vf,Hf)}const rl=he(Ff,[["render",Wf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),qf={},Uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Yf=[Z("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 Xf(e,t){return O(),Y("svg",Uf,Yf)}const sl=he(qf,[["render",Xf]]),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),Gf={},Qf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Jf=[Z("g",{fill:"none"},[Z("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"}),Z("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 ep(e,t){return O(),Y("svg",Qf,Jf)}const ll=he(Gf,[["render",ep]]),tp=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),np={},op={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ip=[Z("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function rp(e,t){return O(),Y("svg",op,ip)}const al=he(np,[["render",rp]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),lp={},ap={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},cp=[Z("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function up(e,t){return O(),Y("svg",ap,cp)}const cl=he(lp,[["render",up]]),dp=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),fp={},pp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},hp=[Z("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 gp(e,t){return O(),Y("svg",pp,hp)}const ul=he(fp,[["render",gp]]),mp=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));function cn(e=0){return new Promise(t=>setTimeout(t,e))}function dl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const i=URL.createObjectURL(o);t(i)};e.toBlob(n,"image/jpeg",1)})}async function vp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await dl(o)}function bo(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 i=e.getAttribute(o);if(i)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}async function bp(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,i=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=o;s&&r&&(n({width:r,height:s}),clearInterval(i))},20);o.onerror=()=>{n(void 0),clearInterval(i)},o.src=e})}class yp{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){me(this,"reactiveResults",dn({}));me(this,"isIOS");me(this,"tkLoadId",Date.now());me(this,"isMounted",!0);me(this,"onDisposeCallbacks",[]);me(this,"onDownloaded");me(this,"onDownloadError");this.isIOS=t,this.onDownloaded=n,this.onDownloadError=o}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 i=n instanceof HTMLImageElement,r=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,i){const a=()=>this.onImgElLoaded(t,n,!0),c=()=>this.onImgElLoaded(t,n,!1);n.addEventListener("load",a),n.addEventListener("error",c),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a),n.removeEventListener("error",c)})}}if(i&&!o){if(o=bo(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await dl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=i&&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,o){var r;if(!this.isMounted)return;const i=bo(n);if(i&&!(!i.startsWith("blob:")&&t.computedSrc===i)){if(n._tkSrc=i,!o){this.reactiveResults[i]={src:i,isLoading:!1,hasError:!0},this.onDownloadError();return}(r=this.reactiveResults)[i]??(r[i]={src:i,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,i=o?await vp(o,n):n;if(!i||!this.isMounted)return;const r=await bp(i,o);this.isMounted&&(this.reactiveResults[n]={src:i,size:r,isLoading:!1,hasError:!r,invalid:!!r&&(r.width<200||r.height<200)},r?this.onDownloaded(t,r):this.onDownloadError())}}const _p=3;class wp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:i}){me(this,"isQueueStarted",!1);me(this,"debouncedEnqueue");me(this,"concurrentCount",0);me(this,"getItems");me(this,"getActiveIndex");me(this,"isCompleted");me(this,"callback");me(this,"activeIndex",0);me(this,"completedItems");me(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=i,this.debouncedEnqueue=Ne(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<_p&&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)),i=[];for(let r=o;r<t.length;r++){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==t.length-1))}for(let r=o-1;r>=0;r--){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==0))}this.getItems()===t&&i.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 Xt{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)}}class fl{constructor(){me(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function _i(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 xp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await an(50,30,()=>document.querySelector(n));return i?(_i(i),await cn(),!0):!1}class Sp{constructor({spec:t,onChanged:n}){me(this,"spec");me(this,"onChanged");me(this,"rawImages",[]);me(this,"isMounted",!0);me(this,"loadRawImagesTs");me(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=Ne(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),i=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Ne(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),i==null||i.disconnect()};let r=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),i==null||i.disconnect(),o.observe(t,{childList:!0,subtree:!0}),i==null||i.observe(t),r?n():(r=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((i,r)=>{const s=this.rawImages[r];return s&&s.el===i.el&&s.parentEl===i.parentEl&&s.src===i.src?s:(n=!0,i)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=await xp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await an(n?100:1,10,()=>{for(const a of o.split(",")){const c=document.querySelector(a);if(c)return c}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await an(50,20,()=>{const a=document.querySelector(o);return a!=null&&a.isConnected&&a!==i?a:void 0}),!i)return;t(i)}!this.isMounted||++r>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var r;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(r=this.spec)==null?void 0:r.imgDivs,i=o?await kp(t,o):pl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function kp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return pl(e);const o=new fl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(hl(l))return new Xt(void 0,l,r)}else if(l instanceof HTMLImageElement&&gl(l)){const a=bo(l);return new Xt(a,l,r)}}return new Xt(void 0,void 0,r)})}function pl(e){const t=[],n={},o=new fl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)hl(r)&&t.push(new Xt(void 0,r));else if(r instanceof HTMLImageElement&&gl(r)){const s=bo(r);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Xt(s,r))}}}),t}function hl(e){return e.isConnected&&ml(e.width,e.height)}function gl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||ml(t.width,t.height)}function ml(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}const wi="mp-scroll-container";class xi{constructor(){me(this,"unmountedCallbacks",new Map)}dispose(){for(const t of this.unmountedCallbacks.values())t()}scrollTo({rawImages:t,page:n,skipIfVisible:o,isScrollDown:i,fallbackScrollEl:r}){const s=Math.floor(n),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??document.querySelector(`img[src^="${l.computedSrc}"]`);if(!a)return;const c=a.getBoundingClientRect();if(o&&c.top<=0&&c.top+c.height>0)return;const u=xi.getScrollable(a,r);if(!u)return;const{el:d,top:p}=u;r!==document.documentElement&&!d.classList.contains(wi)&&(d.classList.add(wi),this.unmountedCallbacks.has(d)||this.unmountedCallbacks.set(d,()=>{d.classList.remove(wi)}));const x=n>=t.length?c.height:i?Math.max(0,c.height-window.innerHeight+100):n%1*c.height,R={top:p+x,behavior:"instant"};d.scrollTo(R),d===document.body&&document.documentElement.scrollTo(R)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:l}=i;if(l&&s&&r.set(l,Math.max(r.get(l)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let c=0;return r.forEach((u,d)=>{c+=d===l?u-s:u}),{el:i,top:c}};return o(t,new Map)}}function vl(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function Cp(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 Xt(void 0,o));return vl(n)}function Ip(e){var $,F,C,B;const t=X(($=e.raw.value)==null?void 0:$.isWebtoon),n=X((F=e.raw.value)==null?void 0:F.isWebtoon);let o=!1;const i=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),r=((B=(C=e.raw.value)==null?void 0:C.imgs)==null?void 0:B.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:r.length?Cp(r):void 0,l=r.map(b=>new Xt(b)),a,c;const u=new yp({isIOS:i,onDownloaded(b,M){let _=l.indexOf(b);if(_===-1){const w=b.computedSrc;_=l.findIndex(j=>j.computedSrc===w)}if(_!==-1){if(M&&!t.value&&_>Math.min(1,l.length-3)&&_<Math.max(l.length-2,3)){const w=M.height/M.width,j=w>2||w<.5,m=w>1.6||w<.6;t.value!==j&&(t.value=j),n.value!==m&&(n.value=m)}x()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),d=new wp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:b=>{const M=b.computedSrc;return!!(M&&u.reactiveResults[M])},callback:b=>u.download(b)}),p=new xi;if(r.length)d.run();else{let b=!1;a=new Sp({spec:e.spec,async onChanged(M){var _;if(l=M,!e.raw.value&&!M.length){e.onError("no_img");return}(_=e.spec)!=null&&_.imgDivs&&!b&&e.isAutoShow!==!1&&e.page.value&&(b=!0,p.scrollTo({rawImages:M,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:i?document.body:document.documentElement}),await cn(1)),s===void 0&&e.isAutoShow===!1&&(s=vl(M)),d.run()}})}Ko(()=>{u.dispose(),d.dispose(),a==null||a.dispose(),c&&clearTimeout(c),p.dispose(),o&&p.scrollTo({rawImages:l,page:e.page.value,fallbackScrollEl:document.documentElement})});function x(){var w,j,m;if(o||t.value===void 0||s===void 0)return;const b=Math.max(0,Math.min(s,l.length)),M=Math.min(Math.floor(b),l.length-1);if(M>=1){if(!((w=l[M])==null?void 0:w.computedSrc)){e.isAutoShow&&p.scrollTo({rawImages:l,page:M,fallbackScrollEl:i?document.body:document.documentElement});return}for(let z=M;z<l.length;z++){const J=(j=l[z])==null?void 0:j.computedSrc;if(!J)return;const y=u.reactiveResults[J];if(!y)return;if(!y.invalid){if(!y.size&&!y.hasError)return;break}}for(let z=M-1;z>=0;z--){const J=(m=l[z])==null?void 0:m.computedSrc;if(!J)break;const y=u.reactiveResults[J];if(!y)return;if(!y.invalid){if(!y.size&&!y.hasError)return;break}}}if(o)return;o=!0,e.onReady(b);let _=!0;fe(()=>Math.floor(e.page.value),(L,z)=>{L===z&&!_||(p.scrollTo({rawImages:l,page:L,isScrollDown:z===void 0||L>z||l.length===1,skipIfVisible:_&&l.length>1,fallbackScrollEl:i?document.body:document.documentElement}),_=!1,z??(z=-1),d.run())},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(u.reactiveResults);const b=[];return l.forEach(M=>{const _=M.computedSrc,w=_?u.reactiveResults[_]:void 0;(_&&!(w!=null&&w.invalid)||M.parentEl)&&b.push(w)}),b}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function Ep(e,t,n){return se(()=>t.value?bl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function bl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,l)=>({img:s,index:n+l})),...bl(e.slice(r.length),t&&i,n+r.length)]}function Tp(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:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function $p(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const Si=40;function Pp({page:e,direction:t,style:n,isLongStrip:o,isVertical:i,isRTL:r,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:d,onFinished:p}){let x=!1,R=!1,$=!1,F;const C=Ne(L,300),B=ws(()=>{L(),C()},300),b=Ne(w,50);async function M(){j(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function _(){var I;R=!0,d(),z(),(I=l.value)==null||I.addEventListener("scroll",B),setTimeout(()=>{const{width:K,height:le}=Ls();fe(K,()=>{i.value&&b()}),fe(le,()=>{i.value||b()}),fe(n,w),fe(t,w)},300)}async function w(){if(!R||x)return;x=!0,await ht();const I=e.value;if(y()===I){x=!1;return}j(I)}function j(I,{smooth:K,ensureLastImgVisibility:le=!1}={smooth:!1}){const ue=l.value;if(!ue)return;x=!0;const be=async()=>{await ht(),x=!1,R||_()},_e=Math.floor(I),Ue=yi(ue,_e);if(!Ue){be();return}c(async()=>{await m(ue,!o.value&&K,async()=>{await re(ue,Ue,{smooth:K,page:I,ensureLastImgVisibility:le})}),await be()})}async function m(I,K,le){K&&I.style.setProperty("scroll-snap-type","none"),await le(),K&&I.style.removeProperty("scroll-snap-type")}function L(){if(x)return;const I=y();I!==void 0&&I!==e.value&&u(I),z()}function z(){$||!$&&J()&&($=!0,p())}function J(){const I=l.value;if(!I)return!1;const K=o.value?a.value?3:!i.value&&I.clientWidth>I.clientHeight?2.25:2.5:2;return i.value?I.scrollHeight-I.scrollTop<I.clientHeight*K:I.scrollWidth-(r.value?-I.scrollLeft:I.scrollLeft)<I.clientWidth*K}function y(){const I=g();return I?(+I.getAttribute("data-index")||0)+(o.value?V(I):0):void 0}function g(){var K;if(F??(F=l.value.getRootNode()),!F)return;const I=(K=F.elementsFromPoint)==null?void 0:K.call(F,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-Si:Si,i.value&&o.value?s.value||Si:window.innerHeight/2);if(I)for(let le=0;le<I.length;le++){const ue=I[le];if(ue.hasAttribute("data-index"))return ue;if(ue===l.value)break}}function V(I){const K=I.getBoundingClientRect();return i.value?Math.abs(K.top-s.value)/K.height:r.value?Math.max(0,K.right-l.value.clientWidth)/K.width:Math.abs(K.left)/K.width}let G=!1;async function re(I,K,le){if(G)return;const ue=K.getBoundingClientRect();if(!o.value){if(i.value){if(ue.top<=0&&ue.bottom>=I.clientHeight)return}else if(ue.left<=0&&ue.right>=I.clientWidth)return}G=!0;const be=i.value?I.scrollTop:I.scrollLeft,_e=le.page,Ue=o.value?_e%1:0,mt=await an(30,10,async()=>{await cn();let Oe;if(!(K.offsetHeight<10))return o.value?i.value?Oe=K.offsetTop+Ue*K.offsetHeight-s.value:r.value?Oe=K.offsetLeft-I.clientWidth+K.offsetWidth-Ue*K.offsetWidth:Oe=K.offsetLeft+Ue*K.offsetWidth:i.value?Oe=K.offsetTop+(ue.top>0?0:ue.height-I.clientHeight):Oe=K.offsetLeft+(ue.left>0?0:ue.width-I.clientWidth),_e>.5&&Math.abs(Oe)<100?void 0:Oe})??0,Lt=le.ensureLastImgVisibility?i.value?Math.min(mt,I.scrollHeight-I.clientHeight*2):r.value?Math.max(mt,-(I.scrollWidth-I.clientWidth*2)):Math.min(mt,I.scrollWidth-I.clientWidth*2):mt;if(!le.smooth){i.value?I.scrollTop=Lt:I.scrollLeft=Lt,G=!1;return}const Ye=Lt-be,vt=30;let Xe=0;return new Promise(Oe=>{(function ut(){const zt=Op(Xe,be,Ye,vt);i.value?I.scrollTop=zt:I.scrollLeft=zt,Xe++,Xe<=vt?requestAnimationFrame(ut):(Oe(),G=!1)})()})}return{init:M,goToPage:j}}function Op(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=X(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:m=>{a.value=m,sessionStorage.setItem("tk:playing",m?"true":"false")}}),u=X(!1);let d,p;const x=Ne(w,100),R=Ne(()=>{u.value=!0},t?2e3:1e3),$=()=>setTimeout(()=>{u.value=!1,R()},30);$(),t||Ot(window,"mousemove",$);const F=Es();Re(()=>{fe(F,m=>{c.value&&(m==="visible"?w():p==null||p())}),fe(s,()=>C()),fe(r,m=>{m||b()})}),Ft(b);async function C(m){c.value&&(p==null||p()),m&&(await ht(),await m()),c.value&&x()}function B(){c.value?b():M()}function b(){c.value&&(c.value=!1,p==null||p(),$())}function M(){!c.value&&r.value&&(c.value=!0,w(),$())}function _(){p==null||p()}function w(){const m=n.value;if(!c.value||!m)return;const L=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,z=j();if(L<=z){b();return}p=()=>{d=Date.now(),p=void 0};const J=Date.now();d=J;const y=.05*s.value,g=o.value?"scrollTop":"scrollLeft";let V=Date.now(),G=0;const re=()=>{if(d!==J)return;const I=Date.now(),K=I-V;V=I;const le=y*K+G;le>=1?(G=le%1,m[g]+=(le-G)*(i.value?-1:1)):G=le,setTimeout(re,1)};re()}function j(){const m=n.value;return o.value?m.scrollTop:i.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:c,isIdle:u,toggle:B,play:M,pause:_,resume:w,stop:b,interfere:C,awake:$}}function Lp({raw:e,spec:t,siteMeta:n}){var z,J,y;const{vol:o,inferVol:i,chap:r,title:s,slug:l,basePath:a}=e,c=t==null?void 0:t.chapter;let u=-1;const d=c&&c.sel&&!c.url?document.querySelectorAll(c.sel):void 0;async function p(g,V){if(g.slug)x(g.slug,V);else if(g.elIndex!==void 0&&d&&d[g.elIndex]){let G=null;c!=null&&c.trigger&&(G=document.querySelector(c.trigger)),G&&(G.click(),await new Promise(re=>setTimeout(()=>re(),50))),_i(d[g.elIndex]),G&&G.click()}}function x(g,V){const G=zp(a,g,(n==null?void 0:n.trailing)??!0);V?window.open(G,"_blank","noopener"):location.href=G}function R(g){const V=b[g];return V?G=>p(V,G):void 0}function $(g,V,G){if(g){const re=document.querySelector(g);re&&_i(re);return}V&&x(V,G)}const F=o??i,C=c==null?void 0:c.url,B=((z=s.chapters)==null?void 0:z.filter(g=>g.slug||!C&&g.elIndex!==void 0))??[],b=B.length>1?B:[],M=(J=e.prev)==null?void 0:J.slug,_=(y=e.next)==null?void 0:y.slug,{prevBtn:w,nextBtn:j}=t??{};let m=M||w&&!b.length?g=>$(w,M,g):void 0,L=_||j&&!b.length?g=>$(j,_,g):void 0;if(b.length){if(C&&(u=b.findIndex(g=>g.slug===e.slug)),u===-1&&(u=b.findIndex(g=>(g.vol??g.inferVol)===F&&g.chap===r)),C&&u===-1&&(u=b.findIndex(g=>g.slug&&l.startsWith(`${g.slug}-`)&&l.length-g.slug.length>3)),u!==-1)m??(m=R(u+1)),L??(L=R(u-1));else if(!M&&!_){const g=b.findIndex(V=>{const G=V.vol??V.inferVol;return F===void 0||G===void 0||F===G?V.chap<r:G<F});g!==-1?(m=R(g),L=R(g-1)):L=R(b.length-1)}}return{activeIndex:u,activeLabel:yl({vol:o,chap:r}),prev:m,next:L,chapters:b.map(g=>({label:yl(g),select:V=>p(g,V)}))}}function yl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function zp(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[i,r]=(o.includes("//")?o:location.origin+o).split("?");return[i.endsWith("/")===n?i:n?i+"/":i.substring(0,-1),r].filter(Boolean).join("?")}const Ap={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},_l=he(ke({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean},onPressedBack:{type:Function}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;let i=!1,r;const s=X(!1),l=X(!1),a=yu({touchDevice:n.touchDevice}),c=Tp(n.page,n.isAutoShow),u=se(()=>n.spaceTop??0),{asyncImgs:d,isWebtoon:p,maybeWebtoon:x}=Ip({raw:se(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(v){mt(v),s.value=!0},onError:()=>{o("error"),D()}}),{direction:R,style:$,isRTL:F,isDouble:C,isVertical:B,isLongStrip:b,gap:M,speed:_,zoom:w,breakFirst:j,autoNextSeconds:m}=rd({titleName:se(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:p,maybeWebtoon:x,defaultStyle:n.readerStyle,defaultDirection:n.direction}),L=X(!1),z=Ep(d,C,j),J=se(()=>c.value>=d.value.length),y=se(()=>n.raw?Lp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta}):void 0),g=X(null),V=Is(),G=X(!1),re=X(!1),I=Mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var v;return(v=g.value)==null?void 0:v.$el}),speed:_,isRTL:F,isVertical:B,isLongStrip:b}),K=se(()=>!n.touchDevice&&I.isIdle.value&&!a.value&&!L.value),le=se({get(){return w.value},set(v){I.interfere(()=>{w.value=v})}}),ue=Pp({page:c,style:$,direction:R,isLongStrip:b,isVertical:B,isRTL:F,spaceTop:u,isWebtoon:p,scrollEl:se(()=>{var v;return(v=g.value)==null?void 0:v.$el}),interferePlayer:v=>I.interfere(v),onChangedPage:mt,onInitialized(){o("ready"),l.value=!0,r=Lt()},onFinished:()=>o("finished")}),be=se(()=>Math.floor(c.value)),_e=()=>I.interfere(()=>cn(100));Tu().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const k=b.value&&B.value,q=b.value&&!B.value,te=!b.value&&B.value,ge=!b.value&&!B.value;switch(v.key){case" ":v.preventDefault(),b.value?(ee(!1),I.toggle()):N();break;case"ArrowUp":case"PageUp":k?_e():te&&be.value!==0&&(v.preventDefault(),S());break;case"ArrowDown":case"PageDown":k?_e():te&&!J.value&&(v.preventDefault(),E());break;case"ArrowLeft":q?_e():ge?(v.preventDefault(),f()):B.value&&Oe();break;case"ArrowRight":q?_e():ge?(v.preventDefault(),h()):B.value&&Xe();break}},onKeyUp:v=>{switch(v.key){case"b":j.value=!j.value;break;case"f":H();break;case"t":A();break;case"h":ee();break}}}),Ot("fullscreenchange",()=>{G.value=!!document.fullscreenElement}),fe(I.isPlaying,v=>{v||N(!1),o("playingChanged",v)}),fe(I.isIdle,v=>{I.isPlaying.value&&N(v)}),fe(a,v=>{!v&&I.isIdle.value?I.awake():v&&n.fullScreen&&N()});function mt(v){if(c.value===v)return;const k=d.value.length;if(v<0||v>=k+1)return;const q=Math.floor(v*100)/100;if(q===c.value)return;const te=c.value;c.value=q,o("pageChanged",q),v>=k?(N(!1),I.stop()):v<.01&&te>v?(N(!1),I.awake()):i||(b.value?r!==void 0&&Lt()-r>300&&N(!0):Math.abs(te-v)===1&&N(!0))}function Lt(){var k;const v=(k=g.value)==null?void 0:k.$el;return v?B.value?v.scrollTop:F.value?-v.scrollLeft:v.scrollLeft:0}function Ye(){!n.touchDevice&&!b.value&&ue.goToPage(be.value,{smooth:!0})}function vt(){if(I.isPlaying.value){!n.fullScreen||!n.touchDevice?I.stop():I.awake();return}N()}function Xe(v=!1){var k,q;(q=(k=y.value)==null?void 0:k.next)==null||q.call(k,v)}function Oe(v=!1){var k,q;(q=(k=y.value)==null?void 0:k.prev)==null||q.call(k,v)}function ut(v){F.value?Xe(At(v)):Oe(At(v))}function zt(v){F.value?Oe(At(v)):Xe(At(v))}function At(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function f(){F.value?E():S()}function h(){F.value?S():E()}function S(){var q;const v=z.value,k=J.value?v[v.length-1][0].index:(q=v[T()-1])==null?void 0:q[0].index;k!==void 0?ue.goToPage(k):Oe()}function E(){var v,k;if(J.value)Xe();else{const q=((k=(v=z.value[T()+1])==null?void 0:v[0])==null?void 0:k.index)??d.value.length;ue.goToPage(q)}}function T(){const v=be.value,k=z.value.findIndex(q=>q.some(({index:te})=>te===v));return k===-1?z.value.length-1:k}function D(){$p(),o("dispose")}async function N(v){if(a.value&&!n.fullScreen)return;const k=typeof v=="boolean"?v:!n.fullScreen;k!==n.fullScreen&&(i=!0,o("fullScreenChanged",k),k&&setTimeout(()=>{n.fullScreen&&a.value&&o("fullScreenChanged",!1)},100))}function A(){n.entryId?W():P()}function H(){var v,k;document.fullscreenElement?document.exitFullscreen():(k=(v=V.value)==null?void 0:v.querySelector("#reader-layout"))==null||k.requestFullscreen()}function P(){I.stop(),o("addEntry")}function W(){I.stop(),o("openEntry",n.entryId)}function ee(v){re.value!==v&&(re.value=!re.value,re.value&&I.isPlaying.value&&I.stop())}return(v,k)=>v.immediate||s.value?(O(),pe(Js,{key:0,loading:!l.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,zooming:L.value,idle:K.value,"space-top":u.value,rtl:U(F),onClick:k[15]||(k[15]=Ke(()=>{},["stop"]))},Cr({settings:ie(()=>{var q;return[Q(Ns,{"reader-style":U($),"onUpdate:readerStyle":k[6]||(k[6]=te=>Ie($)?$.value=te:null),direction:U(R),"onUpdate:direction":k[7]||(k[7]=te=>Ie(R)?R.value=te:null),gap:U(M),"onUpdate:gap":k[8]||(k[8]=te=>Ie(M)?M.value=te:null),speed:U(_),"onUpdate:speed":k[9]||(k[9]=te=>Ie(_)?_.value=te:null),zoom:le.value,"onUpdate:zoom":k[10]||(k[10]=te=>le.value=te),"auto-next-seconds":U(m),"onUpdate:autoNextSeconds":k[11]||(k[11]=te=>Ie(m)?m.value=te:null),name:(q=v.raw)==null?void 0:q.title.name,webtoon:U(p),disabled:!s.value,onHelp:ee},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[Q(rn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[L.value||U(w)!==1?(O(),pe(Vs,{key:0,zoom:le.value,onClick:k[14]||(k[14]=Ke(()=>le.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):ye("",!0)]),_:1})]),progress:ie(()=>[Z("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:ze({width:`${U(c)/(U(d).length-1)*100}%`})},null,4)]),default:ie(()=>{var q;return[s.value?(O(),pe(Qs,{key:0,ref_key:"body",ref:g,zoom:le.value,"onUpdate:zoom":k[0]||(k[0]=te=>le.value=te),zooming:L.value,"onUpdate:zooming":k[1]||(k[1]=te=>L.value=te),page:U(c),"page-index":be.value,pages:U(z),"total-imgs":U(d).length,direction:U(R),gap:U(M),"is-long-strip":U(b),isRTL:U(F),"is-double":U(C),"is-vertical":U(B),"space-top":u.value,busy:U(a),idle:K.value,"play-controller":U(I),"touch-device":v.touchDevice,"has-next":!!((q=y.value)!=null&&q.next),onReady:U(ue).init,onPrev:S,onNext:E,onClick:vt,onDragEnd:Ye,onWheelPassive:k[2]||(k[2]=()=>U(I).interfere())},Cr({_:2},[s.value&&U(d).length?{name:"end",fn:ie(()=>{var te;return[Q(zs,{"has-next":!!((te=y.value)!=null&&te.next),seconds:U(m),onNext:Xe,onHide:D},null,8,["has-next","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-double","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onReady"])):ye("",!0),l.value&&!J.value&&!v.tourEnabled?(O(),pe(Us,{key:1,direction:U(R)},null,8,["direction"])):ye("",!0),l.value&&!J.value?(O(),pe(Zs,{key:2,playing:!!U(I).isPlaying.value},null,8,["playing"])):ye("",!0),re.value?(O(),pe(Ys,{key:3,"touch-device":v.touchDevice,onHide:ee},null,8,["touch-device"])):ye("",!0),v.tourEnabled?(O(),pe(el,{key:4,onHide:k[3]||(k[3]=()=>o("tourEnabledChanged",!1))})):ye("",!0)]}),_:2},[v.raw||v.onPressedBack?{name:"back",fn:ie(()=>[Q(tt,{href:v.onPressedBack||!v.raw?"#":v.raw.title.url,title:"Back to manga",onClick:v.onPressedBack},{default:ie(()=>[Q(tl)]),_:1},8,["href","onClick"])]),key:"0"}:void 0,v.touchDevice?void 0:{name:"exit",fn:ie(()=>[Q(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:D},{default:ie(()=>[Q(ul)]),_:1})]),key:"1"},y.value?{name:"chapter-nav",fn:ie(()=>{var q;return[Q(Ks,{"touch-device":v.touchDevice,"chapter-spec":(q=v.spec)==null?void 0:q.chapter,data:y.value,onGetHiddenChapters:k[4]||(k[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:k[5]||(k[5]=()=>N(!0))},null,8,["touch-device","chapter-spec","data"]),y.value.next||y.value.prev?(O(),Y("div",Ap,[Q(tt,{title:`${U(F)?"Next":"Prev"} chapter (←)`,disabled:U(F)?!y.value.next:!y.value.prev,class:"!rounded-r-none",onClick:ut},{default:ie(()=>[Q(il)]),_:1},8,["title","disabled"]),Q(tt,{title:`${U(F)?"Prev":"Next"} chapter (→)`,disabled:U(F)?!y.value.prev:!y.value.next,class:"!rounded-l-none",onClick:zt},{default:ie(()=>[Q(rl)]),_:1},8,["title","disabled"])])):ye("",!0)]}),key:"2"}:void 0,U(z).length?{name:"page-nav",fn:ie(()=>[Q(Xs,{"model-value":be.value,disabled:!l.value,pages:U(z),"total-imgs":U(d).length,"onUpdate:modelValue":U(ue).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:ie(()=>[Q(tt,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:A},{default:ie(()=>[v.entryId?(O(),pe(ol,{key:0})):(O(),pe(nl,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[Q(tt,{title:`${G.value?"Exit":"Enter"} fullscreen (F)`,onClick:H},{default:ie(()=>[G.value?(O(),pe(cl,{key:0})):(O(),pe(al,{key:1}))]),_:1},8,["title"])]),key:"5"},U(b)?{name:"play",fn:ie(()=>[Q(tt,{"data-tour":"Press here to play like a video",title:`${U(I).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:k[12]||(k[12]=()=>U(I).toggle())},{default:ie(()=>[U(I).isPlaying.value?(O(),pe(mi,{key:0})):(O(),pe(vi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,U(C)?{name:"break-first",fn:ie(()=>[Q(tt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:k[13]||(k[13]=()=>j.value=!U(j))},{default:ie(()=>[U(j)?(O(),pe(ll,{key:0})):(O(),pe(sl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):ye("",!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%!important}.container{width:100%}@media (min-width:300px){.\\!container{max-width:300px!important}.container{max-width:300px}}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.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!important}.visible{visibility:visible}.static{position:static}.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-0{margin:0}.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-\\[30rem\\]{height:480px}.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%}.max-h-none{max-height:none}.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\\.8rem\\]{width:76.8px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-none{max-width:none}.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}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.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)}.snap-center{scroll-snap-align:center}.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-0{padding:0}.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
- `]]]),jp=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),Dp=Object.freeze(Object.defineProperty({__proto__:null,default:ke({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),i=X(!1);return Re(async()=>{await ht();let r=!1;fi(o,s=>{const l=s.some(a=>a.isIntersecting);l!==i.value&&(i.value=l),l&&!r&&n("visible")})}),(r,s)=>(O(),Y("div",{ref_key:"root",ref:o},[we(r.$slots,"default",{visible:i.value})],512))}})},Symbol.toStringTag,{value:"Module"})),Rp={},Bp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Np=[Z("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 Fp(e,t){return O(),Y("svg",Bp,Np)}const Vp=Object.freeze(Object.defineProperty({__proto__:null,default:he(Rp,[["render",Fp]])},Symbol.toStringTag,{value:"Module"})),Hp=`gear-second{height:0!important;opacity:0!important;pointer-events:none!important;width:0!important;z-index:-10!important}html.gear-second,html.gear-second *{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{touch-action:pan-x pan-y!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body :not(dialog[open]){visibility:hidden!important}.mp-scroll-container{max-height:100vh!important;overflow:hidden!important}html:has(body.mp-scroll-container){overflow:auto!important}
29
- `;function Wp(){const e=document.getElementById("mp-download-container");if(!e)return;e.style.setProperty("display","none");const t=JSON.parse(e.getAttribute("data-value"));t.imgs=Array.from(e.children).map(n=>n.src)}const Zt="gear-second",ki={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,onPressedBack:void 0},qe={promise:void 0,data:dn({...ki})};async function Kp(e){return qe.promise?(qe.data.raw=e.raw,await qe.promise):(qe.promise=new Promise(t=>{let n=!1,o=!1,i,r,s=0;const l=!!e.spaceTop||!!e.isAutoShow&&!!e.page,a=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(Zt),Object.assign(qe.data,ki),qe.promise=void 0)},c=Ne(p=>{var x;return!n&&((x=e.onPageChanged)==null?void 0:x.call(e,p))},300);Object.assign(qe.data,ki,e,{immediate:l,onReady(){l||(u(),document.documentElement.classList.add(Zt))},onError(){var p,x;a(),o?((p=e.onDispose)==null||p.call(e),(x=e.onError)==null||x.call(e)):d()},onDispose:()=>{var p;a(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var x;qe.data.fullScreen=p,(x=e.onFullScreenChanged)==null||x.call(e,p)},onPageChanged:p=>{qe.data.page=p,!(s>=p)&&(s=p,c(p))},onTourEnabledChanged:p=>{qe.data.tourEnabled=p}}),qp().then(()=>{if(n){d();return}r=document.createElement(Zt),l?(document.documentElement.classList.add(Zt),document.body.appendChild(r),setTimeout(u)):document.body.appendChild(r);let p=0;i=setInterval(()=>{if(++p===30||n){clearInterval(i),i=void 0;return}r.isConnected||(document.documentElement.classList.add(Zt),document.body.appendChild(r))},100)});function u(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(p){Object.assign(qe.data,p)},dispose:a}))}function d(){o||t(void 0)}}),await qe.promise)}async function qp(){if(window.customElements.get(Zt))return;const e=document.createElement("style"),t=Hp;e.appendChild(document.createTextNode(t)),document.head.appendChild(e);const n=Wc({styles:[await Up()],data:()=>({readerData:qe.data}),render(){return Jr(_l,this.readerData)}});window.customElements.define(Zt,n)}async function Up(){const e=Object.assign({"./App.vue":jp,"./components/AutoNext.vue":bu,"./components/BottomSheet.vue":Mu,"./components/ButtonDropdown.vue":Od,"./components/ButtonIcon.vue":wu,"./components/ButtonReaderSettings.vue":ld,"./components/ButtonResetZoom.vue":md,"./components/ChapterNav.vue":Md,"./components/DirectionToast.vue":Rd,"./components/GesturesContainer.vue":Jd,"./components/HelpScreen.vue":Nd,"./components/InputPercentage.vue":Au,"./components/InputSelect.vue":Du,"./components/IntersectionWrapper.vue":Dp,"./components/LoadingIndicator.vue":rf,"./components/PageNav.vue":Fd,"./components/PauseToast.vue":Qd,"./components/ReaderBody.vue":uf,"./components/ReaderLayout.vue":yf,"./components/ReaderTour.vue":_f,"./components/TableField.vue":Nu,"./components/icons/IconBack.vue":Cf,"./components/icons/IconBookmarkNew.vue":Pf,"./components/icons/IconBookmarked.vue":Af,"./components/icons/IconChevronLeft.vue":Nf,"./components/icons/IconChevronRight.vue":Kf,"./components/icons/IconClose.vue":Iu,"./components/icons/IconDouble.vue":Zf,"./components/icons/IconDoubleSkip.vue":tp,"./components/icons/IconExclamationCircle.vue":Vp,"./components/icons/IconFullscreen.vue":sp,"./components/icons/IconFullscreenExit.vue":dp,"./components/icons/IconHelp.vue":Ku,"./components/icons/IconLoading.vue":wd,"./components/icons/IconNext.vue":Dd,"./components/icons/IconPause.vue":qd,"./components/icons/IconPlay.vue":Gd,"./components/icons/IconReaderExit.vue":mp,"./components/icons/IconSettings.vue":Zu,"./components/icons/IconTriangle.vue":Id,"./components/icons/IconZoom.vue":fd}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}Fe.default=Kp,Fe.readOffline=Wp,Object.defineProperties(Fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ **/const wc="http://www.w3.org/2000/svg",xc="http://www.w3.org/1998/Math/MathML",Tt=typeof document<"u"?document:null,ts=Tt&&Tt.createElement("template"),Sc={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 i=t==="svg"?Tt.createElementNS(wc,e):t==="mathml"?Tt.createElementNS(xc,e):Tt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{ts.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=ts.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",En="animation",Tn=Symbol("_vtc"),rn=(e,{slots:t})=>es(Ma,kc(e),t);rn.displayName="Transition";const ns={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};rn.props=xe({},_r,ns);const Kt=(e,t=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},os=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function kc(e){const t={};for(const b in e)b in ns||(t[b]=e[b]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:S=`${n}-leave-to`}=e,O=Cc(i),E=O&&O[0],B=O&&O[1],{onBeforeEnter:C,onEnter:N,onEnterCancelled:v,onLeave:A,onLeaveCancelled:_,onBeforeAppear:y=C,onAppear:D=N,onAppearCancelled:w=v}=t,$=(b,g,V)=>{qt(b,g?u:l),qt(b,g?c:s),V&&V()},M=(b,g)=>{b._isLeaving=!1,qt(b,f),qt(b,S),qt(b,p),g&&g()},Q=b=>(g,V)=>{const G=b?D:N,re=()=>$(g,b,V);Kt(G,[g,re]),is(()=>{qt(g,b?a:r),Pt(g,b?u:l),os(G)||rs(g,o,E,re)})};return xe(t,{onBeforeEnter(b){Kt(C,[b]),Pt(b,r),Pt(b,s)},onBeforeAppear(b){Kt(y,[b]),Pt(b,a),Pt(b,c)},onEnter:Q(!1),onAppear:Q(!0),onLeave(b,g){b._isLeaving=!0;const V=()=>M(b,g);Pt(b,f),Tc(),Pt(b,p),is(()=>{b._isLeaving&&(qt(b,f),Pt(b,S),os(A)||rs(b,o,B,V))}),Kt(A,[b,V])},onEnterCancelled(b){$(b,!1),Kt(v,[b])},onAppearCancelled(b){$(b,!0),Kt(w,[b])},onLeaveCancelled(b){M(b),Kt(_,[b])}})}function Cc(e){if(e==null)return null;if(ve(e))return[ii(e.enter),ii(e.leave)];{const t=ii(e);return[t,t]}}function ii(e){return Co(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Tn]||(e[Tn]=new Set)).add(t)}function qt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Tn];n&&(n.delete(t),n.size||(e[Tn]=void 0))}function is(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ic=0;function rs(e,t,n,o){const i=e._endId=++Ic,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Ec(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,p),r()},p=S=>{S.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,p)}function Ec(e,t){const n=window.getComputedStyle(e),o=O=>(n[O]||"").split(", "),i=o(`${$t}Delay`),r=o(`${$t}Duration`),s=ss(i,r),l=o(`${En}Delay`),a=o(`${En}Duration`),c=ss(l,a);let u=null,f=0,p=0;t===$t?s>0&&(u=$t,f=s,p=r.length):t===En?c>0&&(u=En,f=c,p=a.length):(f=Math.max(s,c),u=f>0?s>c?$t:En:null,p=u?u===$t?r.length:a.length:0);const S=u===$t&&/\b(transform|all)(,|$)/.test(o(`${$t}Property`).toString());return{type:u,timeout:f,propCount:p,hasTransform:S}}function ss(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ls(n)+ls(e[o])))}function ls(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Tc(){return document.body.offsetHeight}function $c(e,t,n){const o=e[Tn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ri=Symbol("_vod"),Pc={beforeMount(e,{value:t},{transition:n}){e[ri]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),$n(e,!0),o.enter(e)):o.leave(e,()=>{$n(e,!1)}):$n(e,t))},beforeUnmount(e,{value:t}){$n(e,t)}};function $n(e,t){e.style.display=t?e[ri]:"none"}const Oc=Symbol("");function Mc(e,t,n){const o=e.style,i=o.display,r=Se(n);if(n&&!r){if(t&&!Se(t))for(const s in t)n[s]==null&&si(o,s,"");for(const s in n)si(o,s,n[s])}else if(r){if(t!==n){const s=o[Oc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ri in e&&(o.display=i)}const as=/\s*!important$/;function si(e,t,n){if(ne(n))n.forEach(o=>si(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Lc(e,t);as.test(n)?e.setProperty(We(o),n.replace(as,""),"important"):e[o]=n}}const cs=["Webkit","Moz","ms"],li={};function Lc(e,t){const n=li[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return li[t]=o;o=Bn(o);for(let i=0;i<cs.length;i++){const r=cs[i]+o;if(r in e)return li[t]=r}return t}const us="http://www.w3.org/1999/xlink";function zc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n);else{const r=zl(t);n==null||r&&!Mi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Ac(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),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=Mi(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function sn(e,t,n,o){e.addEventListener(t,n,o)}function jc(e,t,n,o){e.removeEventListener(t,n,o)}const ds=Symbol("_vei");function Dc(e,t,n,o,i=null){const r=e[ds]||(e[ds]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=Rc(t);if(o){const c=r[t]=Fc(o,i);sn(e,l,c,a)}else s&&(jc(e,l,s,a),r[t]=void 0)}}const fs=/(?:Once|Passive|Capture)$/;function Rc(e){let t;if(fs.test(e)){t={};let o;for(;o=e.match(fs);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):We(e.slice(2)),t]}let ai=0;const Bc=Promise.resolve(),Nc=()=>ai||(Bc.then(()=>ai=0),ai=Date.now());function Fc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Vc(o,n.value),t,5,[o])};return n.value=e,n.attached=Nc(),n}function Vc(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?$c(e,o,c):t==="style"?Mc(e,n,o):An(t)?_o(t)||Dc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wc(e,t,o,c))?Ac(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),zc(e,t,o,c))};function Wc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ps(t)&&oe(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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ps(t)&&Se(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Kc(e,t){const n=ke(e);class o extends ci{constructor(r){super(n,r,t)}}return o.def=n,o}const qc=typeof HTMLElement<"u"?HTMLElement:class{};class ci extends qc{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),ht(()=>{this._connected||(bs(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 i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!ne(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=Co(this._props[a])),(l||(l=Object.create(null)))[je(a)]=!0)}this._numberProps=l,i&&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=ne(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&o.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of o.map(je))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const o=je(t);this._numberProps&&this._numberProps[o]&&(n=Co(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(We(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(We(t),n+""):n||this.removeAttribute(We(t))))}_update(){bs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=J(this._def,xe({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(r,s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};n.emit=(r,...s)=>{o(r,s),We(r)!==r&&o(We(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof ci){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ne(t)?n=>Nn(t,n):t};function Uc(e){e.target.composing=!0}function gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ui=Symbol("_assign"),Yc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ui]=hs(i);const r=o||i.props&&i.props.type==="number";sn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=ko(l)),e[ui](l)}),n&&sn(e,"change",()=>{e.value=e.value.trim()}),t||(sn(e,"compositionstart",Uc),sn(e,"compositionend",gs),sn(e,"change",gs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ui]=hs(r),e.composing)return;const s=i||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))}},Xc=["ctrl","shift","alt","meta"],Zc={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)=>Xc.some(n=>e[`${n}Key`]&&!t.includes(n))},Ne=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const l=Zc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},Gc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ms=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=We(i.key);if(t.some(s=>s===r||Gc[s]===r))return e(i)})},Qc=xe({patchProp:Hc},Sc);let vs;function Jc(){return vs||(vs=tc(Qc))}const bs=(...e)=>{Jc().render(...e)};var ys;const di=typeof window<"u",_s=e=>typeof e=="function",eu=e=>typeof e=="string",Ot=()=>{};di&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function mo(e){return typeof e=="function"?e():U(e)}function ws(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function tu(e,t={}){let n,o,i=Ot;const r=l=>{clearTimeout(l),i(),i=Ot};return l=>{const a=mo(e),c=mo(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,f)=>{i=t.rejectOnCancel?f:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function nu(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=Ot,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Ot)};return f=>{const p=mo(e),S=Date.now()-i,O=()=>a=f();if(c(),p<=0)return i=Date.now(),O();if(S>p&&(n||!s))i=Date.now(),O();else if(t)return new Promise((E,B)=>{l=o?B:E,r=setTimeout(()=>{i=Date.now(),s=!0,E(O()),c()},p-S)});return!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,a}}function ou(e){return e}function iu(e,t){let n,o,i;const r=X(!0),s=()=>{r.value=!0,i()};fe(e,s,{flush:"sync"});const l=_s(t)?t:t.get,a=_s(t)?void 0:t.set,c=rr((u,f)=>(o=u,i=f,{get(){return r.value&&(n=l(),r.value=!1),o(),n},set(p){a==null||a(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function fi(e){return zi()?(Dl(e),!0):!1}function Fe(e,t=200,n={}){return ws(tu(t,n),e)}function xs(e,t=200,n=!1,o=!0,i=!1){return ws(nu(t,n,o,i),e)}function Ss(e,t=!0){fo()?Re(e):t?e():ht(e)}function Ut(e){var t;const n=mo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Pn=di?window:void 0,ru=di?window.document:void 0;function Mt(...e){let t,n,o,i;if(eu(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Pn):[t,n,o,i]=e,!t)return Ot;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,f,p)=>(u.addEventListener(f,p,i),()=>u.removeEventListener(f,p,i)),a=fe(()=>Ut(t),u=>{s(),u&&r.push(...n.flatMap(f=>o.map(p=>l(u,f,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return fi(c),c}function ks(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),Ss(o,t),n}const Cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Is="__vueuse_ssr_handlers__";Cs[Is]=Cs[Is]||{};function Es(){const e=fo(),t=iu(()=>null,()=>e.proxy.$el);return Cr(t.trigger),Re(t.trigger),t}function Ts({document:e=ru}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Mt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $s=Object.getOwnPropertySymbols,su=Object.prototype.hasOwnProperty,lu=Object.prototype.propertyIsEnumerable,au=(e,t)=>{var n={};for(var o in e)su.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$s)for(var o of $s(e))t.indexOf(o)<0&&lu.call(e,o)&&(n[o]=e[o]);return n};function cu(e,t,n={}){const o=n,{window:i=Pn}=o,r=au(o,["window"]);let s;const l=ks(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=fe(()=>Ut(e),f=>{a(),l.value&&i&&f&&(s=new ResizeObserver(t),s.observe(f,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return fi(u),{isSupported:l,stop:u}}function Ps(e,t={width:0,height:0},n={}){const{window:o=Pn,box:i="content-box"}=n,r=se(()=>{var a,c;return(c=(a=Ut(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return cu(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Ut(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:p})=>f+p,0),l.value=u.reduce((f,{blockSize:p})=>f+p,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),fe(()=>Ut(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function pi(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=Pn}=n,l=ks(()=>s&&"IntersectionObserver"in s);let a=Ot;const c=l.value?fe(()=>({el:Ut(e),root:Ut(o)}),({el:f,root:p})=>{if(a(),!f)return;const S=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});S.observe(f),a=()=>{S.disconnect(),a=Ot}},{immediate:!0,flush:"post"}):Ot,u=()=>{a(),c()};return fi(u),{isSupported:l,stop:u}}var Os;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Os||(Os={}));var uu=Object.defineProperty,Ms=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?uu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pu=(e,t)=>{for(var n in t||(t={}))du.call(t,n)&&Ls(e,n,t[n]);if(Ms)for(var n of Ms(t))fu.call(t,n)&&Ls(e,n,t[n]);return e};pu({linear:ou},{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 zs(e={}){const{window:t=Pn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=X(n),l=X(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ss(a),Mt("resize",a,{passive:!0}),i&&Mt("orientationchange",a,{passive:!0}),{width:s,height:l}}function hu(e){wn("hapticFeedback",e)}function vo(){return kt("hapticFeedback")}const gu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let i=1,r=.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;i<=c?(i++,r-=.65/c,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},ln={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>gu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},mu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},vu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},bu=ke({__name:"AutoNext",props:{hasNext:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X(null),s=X(!1),l=X(!1),a=X(n.seconds),c=X(n.seconds<0),u=X(n.seconds),f=vo();Re(()=>{let O;pi(r,E=>{l.value=E.some(B=>B.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,O&&(clearInterval(O),O=void 0),!(!l.value||c.value)&&(O=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(O),O=void 0,o("next"))},1e3))}),pi(i,E=>{s.value=E.some(B=>B.isIntersecting)}),Vt(()=>O&&clearInterval(O))});function p(){o("next"),f()}function S(){o("hide"),f()}return(O,E)=>(z(),Y("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[st(Z("div",mu,[O.hasNext?(z(),Y("div",vu,[l.value?(z(),Y("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:ze(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):ye("",!0),st((z(),Y("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 totalDuration-200",onClick:Ne(p,["stop"])},[It(Ge(c.value?"Next":`Next in ${a.value}`),1)])),[[U(ln)]])])):ye("",!0),st((z(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:Ne(S,["stop"])},[It(" Hide ")])),[[U(ln)]])],512),[[Pc,s.value||!O.hasNext]])],512))}}),yu=`.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,i]of t)n[o]=i;return n},As=he(bu,[["styles",[yu]]]),_u=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));function wu({touchDevice:e}){const t=X(!1);let n=0;return wn("busy:touchDevice",e),wn("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function hi(){const e=kt("busy:touchDevice"),t=kt("setBusyState");let n=!1;return Vt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const xu={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,i=hi(),r=vo();let s=!1;function l(){s||(s=!0,i(!0,{desktopOnly:!0}))}function a(){s&&(s=!1,i(!1,{desktopOnly:!0}))}function c(u){n.disabled?u.preventDefault():(o("click",u),r())}return(u,f)=>st((z(),pe(vr(u.href?"a":"button"),kn(u.href?{href:u.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0 focus:outline-none",{"cursor-default text-stone-400 hover:text-stone-400":u.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!u.disabled,"bg-black bg-opacity-50":!u.transparent}],onClick:Ne(c,["stop"]),onMouseenter:l,onMouseleave:a}),{default:ie(()=>[Z("div",xu,[we(u.$slots,"default")])]),_:3},16,["class"])),[[U(ln),u.disabled?0:15]])}}),Su=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),ku={},Cu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Iu=[Z("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 Eu(e,t){return z(),Y("svg",Cu,Iu)}const js=he(ku,[["render",Eu]]),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"}));class $u{constructor(){me(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 Pu(){const e=new $u;return Vt(()=>e.dispose()),wn("keyController",e),e}function bo(e){const t=kt("keyController");Re(()=>t.addListener(e)),Vt(()=>t.removeListener(e))}const Ou={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Mu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},Lu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ds=ke({__name:"BottomSheet",props:on({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=In(e,"modelValue");bo({onKeyDown:o});const n=hi();fe(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(z(),Y("div",{class:Ee(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[3]||(r[3]=()=>t.value=!1)},[J(rn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[t.value?(z(),Y("div",{key:0,class:"inline-flex flex-col h-[30rem] 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:r[1]||(r[1]=Ne(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=Ne(()=>{},["stop"]))},[Z("div",Ou,[J(tt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:ie(()=>[J(js)]),_:1}),Z("div",Mu,Ge(i.name),1),we(i.$slots,"actions")]),Z("div",Lu,[we(i.$slots,"default")])],32)):ye("",!0)]),_:3})],2))}}),zu=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Au=["min","max","step"],ju={class:"flex-shrink-0"},gi=he(ke({__name:"InputPercentage",props:on({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=In(e,"modelValue"),n=se({get(){return t.value},set(o){t.value=+o}});return(o,i)=>(z(),Y("div",{class:Ee(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:ze({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[st(Z("input",{"onUpdate:modelValue":i[0]||(i[0]=r=>n.value=r),type:"range",min:o.min,max:o.max,step:o.step??1,class:"flex-grow"},null,8,Au),[[Yc,n.value]]),Z("p",ju,[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}
22
+ `]]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),Ru=["onClick","onKeyup"],On=ke({__name:"InputSelect",props:on({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=In(e,"modelValue"),o=X(null),i=X({width:"",left:""});Re(()=>{let s=!1;fe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(i.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function r(s){n.value=s}return(s,l)=>(z(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Z("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:ze(i.value)},null,4),(z(!0),Y(Ce,null,bn(t.items,(a,c)=>st((z(),Y("div",{key:c,tabindex:"0",class:Ee(["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:()=>r(c),onKeyup:[ms(()=>r(c),["enter"]),ms(()=>r(c),["space"])]},[It(Ge(a),1)],42,Ru)),[[U(ln),30]])),128))],512))}}),Bu=Object.freeze(Object.defineProperty({__proto__:null,default:On},Symbol.toStringTag,{value:"Module"})),Nu={class:"flex items-center mb-8 last:mb-0"},Fu={class:"flex-grow overflow-hidden"},Yt=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(z(),Y("div",Nu,[Z("div",{class:Ee(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},Ge(t.label),3),Z("div",Fu,[we(t.$slots,"default")])]))}}),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"})),Hu={},Wu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ku=[Z("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 z(),Y("svg",Wu,Ku)}const Rs=he(Hu,[["render",qu]]),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Yu={},Xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Zu=[Z("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),Z("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Gu(e,t){return z(),Y("svg",Xu,Zu)}const Bs=he(Yu,[["render",Gu]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},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 ct=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ct||{}),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,Mn=.2,Ln=5,id=.05,rd=0,sd=4,Ns=5;function ld(e){var _,y,D,w,$,M,Q;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?ed(t.value):location.hostname),i=X(ad(`tkr:${o.value}`)),r=b=>{i.value=b;const g=`tkr:${o.value}`;!b||!Object.keys(b).length?localStorage.removeItem(g):localStorage.setItem(g,JSON.stringify(b))},s=b=>{if(!i.value){r(b);return}const g={...i.value};Object.entries(b).forEach(([V,G])=>{G===void 0?delete g[V]:g[V]=G}),r(g)},l=X(((_=i.value)==null?void 0:_.style)??e.defaultStyle??Lt.longStrip),a=X(((y=i.value)==null?void 0:y.direction)??e.defaultDirection??ct.vertical),c=X((D=i.value)==null?void 0:D.gap),u=X(((w=i.value)==null?void 0:w.speed)??1),f=X((($=i.value)==null?void 0:$.zoom)??1),p=X(((M=i.value)==null?void 0:M.breakFirst)??!1),S=X(((Q=i.value)==null?void 0:Q.autoNextSeconds)??Ns),O=se({get(){return n.value?Lt.longStrip:l.value},set:b=>{l.value=b,s({style:b}),b!==Lt.longStrip&&a.value===ct.vertical&&(E.value=ct.rtl)}}),E=se({get:()=>n.value?ct.vertical:a.value,set:b=>{a.value=b,s({direction:b})}}),B=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||O.value!==Lt.longStrip?0:1,set(b){c.value=b,s({gap:b})}}),C=se({get:()=>u.value,set(b){u.value=b,s({speed:b===1?void 0:b})}}),N=se({get:()=>f.value,set(b){f.value=b,s({zoom:b===1?void 0:b})}}),v=se({get:()=>p.value,set(b){p.value=b,s({breakFirst:b?!0:void 0})}}),A=se({get:()=>S.value,set(b){S.value=b,s({autoNextSeconds:b===Ns?void 0:b})}});return{direction:E,style:O,gap:B,speed:C,zoom:N,isLongStrip:se(()=>O.value===Lt.longStrip),isDouble:se(()=>O.value===Lt.double),isRTL:se(()=>E.value===ct.rtl),isVertical:se(()=>E.value===ct.vertical),breakFirst:v,autoNextSeconds:A}}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(ct).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=rd&&n.gap<=sd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Mn&&n.speed<=Ln&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Mn&&n.zoom<=Ln&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const Fs=ke({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:autoNextSeconds","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=t,i=X(!1),r=se(()=>n.name??location.hostname);bo({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(i.value=!i.value)}});function s(a){o("update:zoom",Math.round(a)/100)}function l(){i.value=!1,o("help")}return(a,c)=>(z(),Y(Ce,null,[J(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>i.value=!0)},{default:ie(()=>[J(Bs)]),_:1},8,["disabled"]),J(Ds,{modelValue:i.value,"onUpdate:modelValue":c[6]||(c[6]=u=>i.value=u),name:r.value},{actions:ie(()=>[J(tt,{transparent:"",onClick:l},{default:ie(()=>[J(Rs)]),_:1})]),default:ie(()=>[J(Yt,{label:"Style"},{default:ie(()=>[J(On,{"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}),J(Yt,{label:"Direction"},{default:ie(()=>[J(On,{"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}),J(Yt,{label:"Gap"},{default:ie(()=>[J(On,{"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}),J(Yt,{label:"Auto Next"},{default:ie(()=>[J(On,{"model-value":a.autoNextSeconds<0?0:a.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":c[4]||(c[4]=u=>o("update:autoNextSeconds",u===0?-1:u))},null,8,["model-value"])]),_:1}),J(Yt,{label:"Speed"},{default:ie(()=>[J(gi,{"model-value":a.speed,min:U(td),max:U(nd),step:U(od),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=u=>o("update:speed",u))},{suffix:ie(()=>[It(Ge(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),J(Yt,{label:"Zoom"},{default:ie(()=>[J(gi,{"model-value":Math.ceil(a.zoom*100),min:U(Mn)*100,max:U(Ln)*100,step:U(id)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[It(Ge(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:Fs},Symbol.toStringTag,{value:"Module"})),ud={},dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},fd=[Z("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Z("circle",{cx:"14",cy:"14",r:"12"}),Z("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function pd(e,t){return z(),Y("svg",dd,fd)}const Vs=he(ud,[["render",pd]]),hd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),gd={class:"block w-4 h-4"},md={class:"w-12"},Hs=ke({__name:"ButtonResetZoom",props:{zoom:{}},emits:["click"],setup(e,{emit:t}){const n=t,o=vo();function i(r){o(),n("click",r)}return(r,s)=>(z(),Y("button",{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",onClick:Ne(i,["stop"])},[Z("div",gd,[J(Vs)]),Z("div",md,Ge(Math.ceil(r.zoom*100))+"%",1)]))}}),vd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"}));async function an(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(i=>{setTimeout(async()=>{const r=await an(e-1,t,n);i(r)},t)})}const bd={},yd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_d=[cc('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function wd(e,t){return z(),Y("svg",yd,_d)}const Ws=he(bd,[["render",wd]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Sd={},kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Cd=[Z("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Id(e,t){return z(),Y("svg",kd,Cd)}const Ks=he(Sd,[["render",Id]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Td=["aria-hidden"],$d=["onClick"],Pd={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"},Od={class:"whitespace-nowrap"},mi=ke({__name:"ButtonDropdown",props:on({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:on(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=In(e,"modelValue"),r=X(null),s=X(!1),l=X(!1),a=X(!1),c=X(!1),u=X(!1),f={mounted:$=>{var M;(M=$.children[i.value])==null||M.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};bo({onKeyDown:N});const p=hi(),S=vo();async function O(){if(S(),!n.items.length&&(s.value||await E(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?(B(),A(r.value)):setTimeout(_,250)}async function E(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function B(){const $=r.value;if($){const M=$.getBoundingClientRect(),Q=M.x+M.width/2;a.value=M.y>window.innerHeight/2,c.value=Q<window.innerWidth/3,u.value=Q>window.innerWidth/3*2}}function C($,M){O(),$!=i.value&&(i.value=$,o("select",$,M))}function N($){s.value&&$.key==="Escape"&&(O(),$.preventDefault())}let v=[];function A($){const M=window.getComputedStyle($).zIndex,Q=$.style.zIndex;(!M||!(+M>0))&&((!$.parentElement||$.parentElement.childElementCount>1)&&($.style.zIndex="1",v.push({el:$,zIndex:Q})),$.parentElement&&A($.parentElement))}function _(){v.forEach(({el:$,zIndex:M})=>{$.style.zIndex=M??""}),v=[]}let y=!1;function D(){y||(y=!0,p(!0,{desktopOnly:!0}))}function w(){y&&(y=!1,p(!1,{desktopOnly:!0}))}return($,M)=>(z(),Y("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(z(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:O})):ye("",!0),$.items.length?(z(),pe(rn,{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?st((z(),Y("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Ee(["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:M[0]||(M[0]=Ne(()=>{},["stop"]))},[(z(!0),Y(Ce,null,bn($.items,(Q,b)=>st((z(),Y("li",{key:b,tabindex:"-1",class:Ee(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":b===i.value}]),onClick:g=>C(b,g)},[Z("div",{class:Ee(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":b>0}])},[we($.$slots,"item",{item:Q},()=>[It(Ge(Q),1)])],2)],10,$d)),[[U(ln),30]])),128))],42,Td)),[[f]]):ye("",!0)]),_:3})):ye("",!0),st((z(),Y("button",kn({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":$.disabled||l.value}]},$.title?{title:$.title}:{},{onClick:Ne(O,["stop"]),onMouseenter:D,onMouseleave:w}),[Z("div",Pd,[Z("span",Od,Ge($.label),1),$.items.length||$.canLoadItems?(z(),Y("span",{key:0,class:Ee(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(z(),pe(Ws,{key:0})):(z(),pe(Ks,{key:1}))],2)):ye("",!0)])],16)),[[U(ln),30]])],512))}}),Md=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),qs=ke({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,sel:u,label:f}=a;if(c&&(!u||!f)){await r(c);return}o("getHiddenChapters"),await an(50,50,()=>n.data.chapters.length?!0:void 0)}async function r(a){const c=document.querySelector(a);c&&(c instanceof HTMLDialogElement?c.showModal():c.click(),o("chaptersDialogOpen"))}function s(a,c){var u,f,p;(p=(f=(u=n.data)==null?void 0:u.chapters)==null?void 0:f[a])==null||p.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return z(),pe(mi,{modelValue:a.data.activeIndex,label:a.data.activeLabel,title:"Select chapter",items:a.data.chapters,"can-load-items":!!((u=a.chapterSpec)!=null&&u.trigger),"load-items":i,onSelect:s},{item:ie(({item:f})=>[It(Ge(f.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),zd={},Ad={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jd=[Z("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Dd(e,t){return z(),Y("svg",Ad,jd)}const Us=he(zd,[["render",Dd]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ys=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),i=Fe(()=>o.value=!1,1250);fe(()=>t.direction,()=>{r(),o.value=!0,i()}),Re(()=>{r(),i();let s;const l=Ts();fe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>7e3&&(o.value=!0,i())})});function r(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>(z(),pe(rn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(z(),Y("div",{key:0,class:Ee(["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===U(ct).vertical,"rotate-180":s.direction===U(ct).rtl}])},[J(Us)],2)):ye("",!0)]),_:1}))}}),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Nd=Z("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Xs=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X([]);Re(async()=>{const c=Ps(i),u=Fe(()=>{s({width:c.width.value,height:c.height.value})},50);u(),fe(c.width,u),fe(c.height,u)});function s(c){var p;const u=(p=i.value)==null?void 0:p.parentElement;if(!u)return;const f=Array.from(u.querySelectorAll("#controls [title]"));f.length&&(r.value=l(f,c))}function l(c,u){const f=[],p=[];let S=0,O=0;const E=50,B=25;c.forEach(_=>{var M;const y=(M=_.getAttribute("title"))==null?void 0:M.trim(),D=_.getBoundingClientRect();if(!y||!D.height||!D.width)return;const w=Math.ceil((D.top-10)/E),$=Math.ceil((D.left-10)/E);p.push({isTour:!1,title:y,rect:D,fromX:$,toX:Math.max($+1,Math.ceil((D.right+10)/E)),fromY:w,toY:Math.max(w+1,Math.ceil((D.bottom+10)/E))})}),p.forEach(_=>{for(let y=_.fromY;y<_.toY;y++){f[y]??(f[y]=[]);for(let D=_.fromX;D<_.toX;D++)f[y][D]=_;_.toY>S+1&&(S=_.toY-1),_.toX>O+1&&(O=_.toX-1)}});let C=O/2;p.forEach(_=>{_.isAlignRight=_.fromX>C});const N=(_,y)=>{f[y]??(f[y]=[]);const D=y>=_.toY;if(_.isTour)for(let w=_.fromX;w<_.toX;w++)delete f[_.fromY][w],_.fromY=y,_.toY=y+(D?1:-1),f[y][w]=_;else{const w=_.isAlignRight?_.fromX-3:_.fromX,$=w+3;_.helpItem={fromX:w,toX:$,fromY:y,toY:y+1,isTour:!0,isAlignRight:_.isAlignRight};for(let M=w;M<$;M++)f[y][M]=_.helpItem}},v=(_,y)=>{if(y>S||y<0)return!1;const D=y>=_.toY,w=f[y];if(!w)return N(_,y),!0;const $=w[_.fromX];if($&&!$.isTour)return!1;if($&&$.isTour)return v($,D?y+1:y-1)?(N(_,y),!0):!1;if(!$){const M=_.isAlignRight?-1:1;return w[_.fromX+M]||w[_.fromX+M*2]?v(_,D?y+1:y-1):(N(_,y),!0)}return!1};p.forEach(_=>{if(!v(_,_.toY)){if(_.isAlignRight){const y=f[_.fromY]??[];if(!y.slice(_.fromX-3,_.fromX).filter(Boolean).length){const w=_.fromX-3,$=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:w,toX:$,fromY:_.fromY,toY:_.toY};for(let M=_.fromX-3;M<_.fromX;M++)y[M]=_.helpItem;return}}v(_,_.fromY-1)}});const A=[];return p.forEach(_=>{const{title:y,helpItem:D,rect:w,isAlignRight:$,fromX:M,fromY:Q,toY:b}=_;if(!y||!D||!w)return;const g=D.fromY>=b,V=D.toY<=Q;A.push({title:a(y),style:{top:g?`${w.bottom+(D.fromY-b)*E+B}px`:V?void 0:`${w.top+8}px`,bottom:V?`${u.height-w.top+(D.toY-Q)*E+B}px`:void 0,left:$?void 0:`${w.left}px`,right:$?g?`${u.width-w.right}px`:`${u.width-w.right+w.width+B}px`:void 0},arrowStyle:{width:V||g?"2px":`${Math.abs(D.toX-M)*E+B-5}px`,height:V||g?`${(g?D.fromY-b:Q-D.toY)*E+B}px`:"2px",top:g?`${w.bottom}px`:V?void 0:`${w.top+20}px`,bottom:V?`${u.height-w.top}px`:void 0,left:$?void 0:`${w.left+w.width/2}px`,right:$?g?`${u.width-w.right+w.width/2}px`:`${u.width-w.right+w.width}px`:void 0}})}),A}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(z(),Y(Ce,null,[Nd,Z("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=Ne(f=>o("hide"),["stop"]))},[(z(!0),Y(Ce,null,bn(r.value,f=>(z(),Y(Ce,{key:f.title},[Z("div",{class:"absolute",style:ze(f.style)},Ge(f.title),5),Z("div",{class:"absolute bg-stone-300 rounded-lg",style:ze(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Zs=ke({__name:"PageNav",props:on({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=In(e,"modelValue"),o=se(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),i=se(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:f})=>f===a));return c===-1?t.pages.length-1:c}),r=se(()=>t.pages.length?`${o.value[i.value]}/${t.totalImgs}`:"--");function s(a){const c=t.pages[a][0].index;l(c)}function l(a){n.value=a}return(a,c)=>(z(),pe(mi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Hd={},Wd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kd=[Z("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),Z("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 qd(e,t){return z(),Y("svg",Wd,Kd)}const vi=he(Hd,[["render",qd]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Yd={},Xd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Zd=[Z("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 Gd(e,t){return z(),Y("svg",Xd,Zd)}const bi=he(Yd,[["render",Gd]]),Qd=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),Gs=he(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return fe(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(z(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(z(),pe(bi,{key:0})):(z(),pe(vi,{key:1}))])):ye("",!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
+ `]]]),Jd=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Qs=ke({__name:"GesturesContainer",props:{zoom:{},zooming:{type:Boolean},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:zoom","update:zooming","dragEnd","click"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X(Math.min(Ln,Math.max(Mn,n.zoom))),s=X(!1),l=X(!1),a={isZoomIn:!1,isZoomOut:!1,initial:void 0};fe(()=>n.zoom,g=>b(g)),Re(()=>{n.touchDevice?Mt(i,"touchstart",B):(Mt(i,"mousedown",p),Mt(window,"wheel",y))}),bo({onKeyDown:g=>{var V;if(!n.busy&&((V=i.value)==null||V.focus(),!(g.key==="Meta"||g.key==="Control")&&(g.ctrlKey||g.metaKey)))switch(g.key){case"0":b(1);break;case"-":b(r.value-.2),g.preventDefault();break;case"=":case"+":b(r.value+.2),g.preventDefault();break}},onKeyUp:g=>{n.zooming&&!(g.ctrlKey||g.metaKey)&&$()}});function c(g){l.value!==g&&(l.value=g,g?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},f={x:0,y:0};function p(g){g.button===0&&(u={x:g.clientX,y:g.clientY},f={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",S),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",S),setTimeout(()=>c(!1))},{once:!0}),g.preventDefault(),g.stopPropagation())}function S(g){c(!0);const V=g.clientX-u.x,G=g.clientY-u.y,re=i.value;re.scrollLeft=f.x-V,re.scrollTop=f.y-G}let O={distance:0,zoom:r.value,x:0,y:0},E=!1;function B(g){n.busy||(E=g.touches.length===2,E&&(o("update:zooming",!0),c(!0),g.stopPropagation(),g.preventDefault(),O={distance:D(g),zoom:r.value,x:(g.touches[0].clientX+g.touches[1].clientX)/2,y:(g.touches[0].clientY+g.touches[1].clientY)/2}),(E||n.longStrip&&n.playController.isPlaying.value)&&window.addEventListener("touchend",C,{once:!0}))}function C(){if(E=!1,n.zooming){c(!1),$();return}if(!l.value)return;const g=Fe(()=>{c(!1),i.value.removeEventListener("scroll",G)},200),V=setTimeout(g,200);i.value.addEventListener("scroll",G);function G(){clearTimeout(V),g()}}function N(g){if(!(!E&&!(n.longStrip&&n.playController.isPlaying.value))&&(c(!0),n.zooming)){g.stopPropagation(),g.preventDefault();const G=D(g)/O.distance;Q(Math.ceil(G*O.zoom*100)/100,O)}}const v=Fe(()=>s.value=!1,100);let A=!1;const _=Fe(()=>{A=!1},30);function y(g){if(n.busy)return;let V=n.zooming;if(A||(A=!0,V=g.ctrlKey||g.metaKey,V&&o("update:zooming",!0)),_(),V){g.stopPropagation(),g.preventDefault();const G=Math.ceil((r.value+g.deltaY*-.01)*100)/100;Q(G,{x:g.clientX,y:g.clientY});return}n.horizontal&&(s.value||(s.value=!0),v(),g.deltaY&&(i.value&&(i.value.scrollLeft+=g.deltaY*(n.rtl?-1:1)),g.stopPropagation()))}function D(g){return Math.hypot(g.touches[0].clientX-g.touches[1].clientX,g.touches[0].clientY-g.touches[1].clientY)}function w(g){!l.value&&!n.zooming&&o("click",g)}function $(){o("update:zooming",!1),a.initial=void 0,a.isZoomIn=!1,a.isZoomOut=!1}function M(){if(a.initial)return;const g=i.value;if(!g)return;const V=g.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;V&&(a.initial={el:V,rect:V.getBoundingClientRect()})}function Q(g,V){if(a.isZoomIn=a.isZoomIn||!a.isZoomOut&&g>1,a.isZoomIn&&g<1){b(1,V);return}if(a.isZoomOut=a.isZoomOut||!a.isZoomIn&&g<1,a.isZoomOut&&g>1){b(1,V);return}b(g,V)}async function b(g,V){const G=i.value,re=Math.min(Ln,Math.max(Mn,g));if(!G||r.value===re)return;M();const{initial:I}=a;if(!I)return;const K=(V==null?void 0:V.x)??G.clientWidth/2,le=(V==null?void 0:V.y)??G.clientHeight/2;r.value=re,o("update:zoom",re),await ht();const{el:ue,rect:be}=I,_e=ue.offsetWidth/be.width,Ue=ue.offsetHeight/be.height;G.scrollLeft=ue.offsetLeft-be.left*_e+K*(_e-1),G.scrollTop=ue.offsetTop-be.top*Ue+le*(Ue-1)}return(g,V)=>(z(),Y("div",{ref_key:"root",ref:i,tabindex:"0",class:Ee(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!g.longStrip&&(l.value||s.value||g.zooming),"cursor-grabbing":!g.touchDevice&&l.value,"overflow-hidden":g.zooming}]),style:ze({"font-size":`${r.value}px`}),onClick:Ne(w,["stop"]),onTouchmoveCapture:Ne(N,["stop"])},[we(g.$slots,"default")],38))}}),ef=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),tf=`.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
+ `,nf={},of={class:"loading-indicator"};function rf(e,t){return z(),Y("div",of)}const yi=he(nf,[["render",rf],["styles",[tf]]]),sf=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"}));function _i(e,t){return(e==null?void 0:e.querySelector(`[data-index="${t}"],[data-index2="${t}"]`))??void 0}const lf=["data-index"],af={key:0,class:"img img--loading"},cf=["src"],uf=["data-index"],Js=he(ke({__name:"ReaderBody",props:{page:{},pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isDouble:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},zooming:{type:Boolean},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["ready","update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=Es(),r=X(null),s=zs(),l=X(n.pageIndex),a=se(()=>{const{width:C,height:N}=s,v=n.isLongStrip?n.isVertical?C.value:N.value:Math.min(C.value,N.value);return Math.min(4,Math.max(1,Math.ceil(v/400-1)))*n.gap}),c=X(n.isLongStrip?{min:n.pageIndex-1,max:n.pageIndex}:S()),u=se(()=>{const{min:C,max:N}=c.value,v={};for(let A=C;A<=N;A++)v[A]=!0;return v}),f=se(()=>{const{width:{value:C},height:{value:N}}=s;return n.pages.map(v=>{var b;const A=v.some(g=>{var V;return(V=g.img)==null?void 0:V.isLoading}),_=v.map(g=>g.index),y={isLoading:A,indexes:_,visible:!1};if(A||_[_.length-1]<l.value)return y;const D=v.map(({img:g})=>g).filter(Boolean);if(!D.length||(y.srcs=D.map(({src:g})=>g),D.every(g=>g.hasError)))return y;const $=(b=D.find(g=>!g.hasError))==null?void 0:b.size,M=D.reduce((g,V)=>{var G;return g+(((G=V.size)==null?void 0:G.width)??$.width)},0),Q=D.reduce((g,V)=>{var G;return g+(((G=V.size)==null?void 0:G.height)??$.height)},0)/D.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&C/M<N/Q?(y.width=Math.min(C,M),y.height=Q*(y.width/M)):(y.height=Math.min(N,Q),y.width=M*(y.height/Q)),y})}),p=se(()=>{const C=n.isVertical?"width":"height";return f.value.map(N=>N[C]).filter(Boolean).sort((N,v)=>v-N)[0]});Re(()=>{const C=_i(i.value,n.pageIndex);C==null||C.scrollIntoView({behavior:"instant",block:"start"});let N,v=!1;Ta(()=>{N!==n.page&&(N=n.page,A(),v||(v=!0,ht(()=>o("ready"))))});async function A(){if(!n.isLongStrip){c.value=S();return}const _=Math.floor(n.page),y=_i(i.value,_);if(!y)return;const D=+O(y).getAttribute("data-index"),w=+E(y).getAttribute("data-index");(D!==c.value.min||w!==c.value.max)&&(c.value={min:D,max:w}),D<l.value&&(l.value=D)}});function S(){const{pageIndex:C}=n,N=n.isDouble?2:1;return{min:C-N,max:C+N}}function O(C){const N=C.previousElementSibling;if(!N)return C;const v=N.getBoundingClientRect();return(n.isVertical?v.y+v.height>-(s.height.value*.5):n.isRTL?v.x<s.width.value*1.5:v.x+v.width>-(s.width.value*.5))?O(N):C}function E(C){const N=C.nextElementSibling;if(!N)return C;const v=N.getBoundingClientRect();return(n.isVertical?v.y<s.height.value*2:n.isRTL?v.x+v.width>-(s.width.value*.5):v.x<s.width.value*1.5)?E(N):C}function B(C){if(!n.isLongStrip){const N=n.isVertical?s.height.value:s.width.value,A=(n.isVertical?C.clientY:n.isRTL?N-C.clientX:C.clientX)/N;if(A<=.2&&n.pageIndex>0){o("prev");return}else if(A>=.8){o("next");return}}o("click")}return(C,N)=>(z(),pe(Qs,{zoom:C.zoom,zooming:C.zooming,"page-index":C.pageIndex,class:Ee(["rbod",{"rbod--touch":C.touchDevice,"rbod--long-strip":C.isLongStrip,"rbod--paging":!C.isLongStrip,"rbod--vertical":C.isVertical,"rbod--rtl":C.isRTL,"rbod--idle":C.idle,"rbod--first":!C.isLongStrip&&C.pageIndex===0,"rbod--last":!C.isLongStrip&&C.pageIndex===C.totalImgs&&!C.hasNext,"rbod--1page":f.value.length===1}]),"play-controller":C.playController,horizontal:!C.isVertical,rtl:C.isRTL,"touch-device":C.touchDevice,busy:C.busy,"long-strip":C.isLongStrip,style:ze({"--gap":`${a.value}em`,"--space-top":(C.spaceTop||0)+"px","--screen-width-em":U(s).width.value+"em","--screen-height-em":U(s).height.value+"em",...C.isLongStrip?{"--max-size-em":p.value+"em"}:{}}),"onUpdate:zoom":N[0]||(N[0]=v=>o("update:zoom",v)),"onUpdate:zooming":N[1]||(N[1]=v=>o("update:zooming",v)),onDragEnd:N[2]||(N[2]=()=>o("dragEnd")),onClick:B},{default:ie(()=>[(z(!0),Y(Ce,null,bn(f.value,v=>{var A;return z(),Y("div",kn({key:C.direction+"_"+v.indexes[0],"data-index":v.indexes[0]},v.indexes.length>1?{"data-index2":v.indexes[1]}:{}),[!((A=v.srcs)!=null&&A.length)||v.isLoading?(z(),Y("div",af,[u.value[v.indexes[0]]?(z(),pe(yi,{key:0})):ye("",!0)])):v.srcs.length==1?(z(),pe(vr(u.value[v.indexes[0]]?"img":"div"),kn({key:1,class:"img"},u.value[v.indexes[0]]?{src:v.srcs[0]}:{},{style:{width:v.width!==void 0?v.width+"em":"",height:v.height!==void 0?v.height+"em":""}}),null,16,["style"])):(z(),Y("div",{key:2,class:Ee(["img img--double",{"flex-row-reverse":C.isRTL}]),style:ze({width:v.width!==void 0?v.width+"em":"",height:v.height!==void 0?v.height+"em":""})},[v.indexes.some(_=>u.value[_])?(z(!0),Y(Ce,{key:0},bn(v.srcs,_=>(z(),Y("div",{key:_},[Z("img",{src:_},null,8,cf)]))),128)):ye("",!0)],6))],16,lf)}),128)),Z("div",{ref_key:"autoNextEl",ref:r,class:"last","data-index":C.totalImgs},[we(C.$slots,"end")],8,uf)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"]))}}),[["styles",[`.rbod{--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){.rbod{transform:none}}.rbod--rtl{flex-direction:row-reverse}.rbod.rbod--vertical>div{padding:calc(var(--gap)/2) 0}.rbod:not(.rbod--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.rbod:not(.rbod--vertical)>div{padding:0 calc(var(--gap)/2)}.rbod--long-strip.rbod--vertical.rbod--1page>div:first-child{min-height:100vh}.rbod--long-strip.rbod--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.rbod--long-strip.rbod--vertical>div:last-child{padding-bottom:0}.rbod--long-strip.rbod--vertical>div{width:var(--max-size-em)}.rbod--long-strip.rbod--vertical .img--loading{height:75vh;max-width:100%;width:100vw}.rbod--long-strip.rbod--vertical .last{height:100vh}.rbod--long-strip:not(.rbod--vertical).rbod--1page>div:first-child{min-width:100vw}.rbod--long-strip:not(.rbod--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.rbod--long-strip:not(.rbod--vertical) .img--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.rbod--long-strip:not(.rbod--vertical) .last{width:100vw}.rbod--long-strip>div>img{flex-shrink:0;margin:auto}.rbod--paging:not(.rbod--touch):after,.rbod--paging:not(.rbod--touch):before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.rbod--paging.rbod--first:before,.rbod--paging.rbod--last:after{cursor:default}.rbod--paging.rbod--idle:after,.rbod--paging.rbod--idle:before{cursor:none}.rbod--paging>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;scroll-snap-stop:always}.rbod--paging.rbod--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.rbod--paging.rbod--vertical:after,.rbod--paging.rbod--vertical:before{height:20vw;left:0;right:0}.rbod--paging.rbod--vertical:before{top:0}.rbod--paging.rbod--vertical:after{bottom:0}.rbod--paging.rbod--vertical>div{width:var(--screen-width-em)}.rbod--paging:not(.rbod--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.rbod--paging:not(.rbod--vertical).rbod--rtl:before{right:0}.rbod--paging:not(.rbod--vertical).rbod--rtl:after,.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):before{left:0}.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):after{right:0}.rbod--paging:not(.rbod--vertical):after,.rbod--paging:not(.rbod--vertical):before{bottom:0;top:0;width:20vw}.rbod--paging:not(.rbod--vertical)>div{height:var(--screen-height-em)}.rbod--paging .img--loading{height:100vh;width:100vw}.rbod--paging .img--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.rbod--paging .img--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod--paging .img--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.rbod>div{flex-shrink:0}.rbod .img,.rbod>div{margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod .img{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));-o-object-fit:contain;object-fit:contain}.rbod .img--loading{align-items:center;background-color:transparent;display:flex;justify-content:center}
25
+ `]]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),ff={class:"max-h-none max-w-none h-full w-full m-0 p-0 border-none outline-none"},pf={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},hf={class:"flex justify-between items-end"},gf={class:"inline-block children-pointer-events-auto w-1/3"},mf={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},vf={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},bf={class:"inline-block z-20 relative"},yf={key:1,class:"fixed left-0 right-0 bottom-0 p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3 flex justify-center pointer-events-none children-pointer-events-auto"},el=he(ke({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},zooming:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){const t={mounted:n=>n.showModal(),beforeUnmount:n=>n.close()};return(n,o)=>st((z(),Y("dialog",ff,[Z("div",{id:"reader-layout",class:Ee({"cursor-none":n.idle,"cursor-default":!n.idle,"bg-black":n.immediate||!n.loading,"opacity-0":!n.immediate&&n.loading,"duration-200 transition-colors":!n.immediate})},[n.loading&&n.immediate?(z(),Y("div",pf,[J(yi)])):ye("",!0),we(n.$slots,"default"),Z("div",{id:"controls",class:Ee(["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":!n.fullScreen,"opacity-0 -z-10":n.fullScreen}])},[Z("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:ze({paddingTop:`${n.spaceTop||0}px`})},[we(n.$slots,"back"),we(n.$slots,"exit"),we(n.$slots,"chapter-nav")],4),Z("div",hf,[Z("div",gf,[we(n.$slots,"page-nav")]),Z("div",mf,[n.fullScreen&&n.zooming?ye("",!0):we(n.$slots,"reset-zoom",{key:0})]),Z("div",vf,[we(n.$slots,"entry"),Z("div",bf,[we(n.$slots,"settings")]),we(n.$slots,"full-screen"),we(n.$slots,"play"),we(n.$slots,"break-first")])]),Z("div",{class:Ee(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":n.rtl}])},[we(n.$slots,"progress")],2)],2),n.fullScreen&&n.zooming?(z(),Y("div",yf,[we(n.$slots,"reset-zoom")])):ye("",!0)],2)])),[[t]])}}),[["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:100%;line-height:24px;overflow:hidden;overscroll-behavior:contain;pointer-events:auto;text-align:left;width:100%}
26
+ `]]]),_f=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),tl=he(ke({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=X(null),i=X(0),r=X([]),s=se(()=>r.value[i.value]),l=xs(a,500);Re(()=>{const f=Ps(o),p=Fe(()=>c({width:f.width.value,height:f.height.value}),50);p(),fe(f.width,p),fe(f.height,p)});function a(){i.value>=r.value.length-1?n("hide"):i.value++}function c(f){const p=u();r.value=p.map(({rect:S,text:O})=>{const E=S.top<f.height-S.bottom,B=S.left<f.width-S.right;return{text:O,style:{left:`${S.left}px`,top:`${S.top}px`,width:`${S.width}px`,height:`${S.height}px`},textStyle:{left:B?`${S.left-12}px`:void 0,right:B?void 0:`${f.width-S.left}px`,top:E?`${S.bottom+12}px`:`${S.top+20}px`,textAlign:E?void 0:"right",transform:E?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function u(){var S;const f=(S=o.value)==null?void 0:S.parentElement;if(!f)return[];const p=[];return f.querySelectorAll("[data-tour]").forEach(O=>{var C;const E=(C=O.getAttribute("data-tour"))==null?void 0:C.trim();if(!(E!=null&&E.length))return;const B=O.getBoundingClientRect();p.push({rect:B,text:E})}),p}return(f,p)=>{var S,O;return z(),Y(Ce,null,[Z("div",{class:Ee(["fixed inset-0 bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),Z("div",{ref_key:"root",ref:o,class:"tour",onClick:p[0]||(p[0]=Ne((...E)=>U(l)&&U(l)(...E),["stop"]))},[s.value?(z(),Y("div",{key:i.value,class:"tour__target",style:ze(s.value.style)},null,4)):ye("",!0),(z(),Y("div",{key:i.value,class:"tour__text",style:ze((S=s.value)==null?void 0:S.textStyle)},Ge(((O=s.value)==null?void 0:O.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
+ `]]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),xf={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kf=[Z("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 Cf(e,t){return z(),Y("svg",Sf,kf)}const nl=he(xf,[["render",Cf]]),If=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),Ef={},Tf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$f=[Z("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 Pf(e,t){return z(),Y("svg",Tf,$f)}const ol=he(Ef,[["render",Pf]]),Of=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Mf={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zf=[Z("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 Af(e,t){return z(),Y("svg",Lf,zf)}const il=he(Mf,[["render",Af]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),Df={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bf=[Z("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Nf(e,t){return z(),Y("svg",Rf,Bf)}const rl=he(Df,[["render",Nf]]),Ff=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),Vf={},Hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wf=[Z("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Kf(e,t){return z(),Y("svg",Hf,Wf)}const sl=he(Vf,[["render",Kf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),Uf={},Yf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Xf=[Z("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 z(),Y("svg",Yf,Xf)}const ll=he(Uf,[["render",Zf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),Qf={},Jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ep=[Z("g",{fill:"none"},[Z("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"}),Z("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 tp(e,t){return z(),Y("svg",Jf,ep)}const al=he(Qf,[["render",tp]]),np=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),op={},ip={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},rp=[Z("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function sp(e,t){return z(),Y("svg",ip,rp)}const cl=he(op,[["render",sp]]),lp=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),ap={},cp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},up=[Z("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function dp(e,t){return z(),Y("svg",cp,up)}const ul=he(ap,[["render",dp]]),fp=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"})),pp={},hp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},gp=[Z("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 mp(e,t){return z(),Y("svg",hp,gp)}const dl=he(pp,[["render",mp]]),vp=Object.freeze(Object.defineProperty({__proto__:null,default:dl},Symbol.toStringTag,{value:"Module"}));function cn(e=0){return new Promise(t=>setTimeout(t,e))}function fl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const i=URL.createObjectURL(o);t(i)};e.toBlob(n,"image/jpeg",1)})}async function bp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await fl(o)}function yo(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 i=e.getAttribute(o);if(i)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}async function yp(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,i=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=o;s&&r&&(n({width:r,height:s}),clearInterval(i))},20);o.onerror=()=>{n(void 0),clearInterval(i)},o.src=e})}class _p{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){me(this,"reactiveResults",dn({}));me(this,"isIOS");me(this,"tkLoadId",Date.now());me(this,"isMounted",!0);me(this,"onDisposeCallbacks",[]);me(this,"onDownloaded");me(this,"onDownloadError");this.isIOS=t,this.onDownloaded=n,this.onDownloadError=o}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 i=n instanceof HTMLImageElement,r=n instanceof HTMLCanvasElement;if(n){if(n._tkLoadId===this.tkLoadId)return;if(n._tkLoadId=this.tkLoadId,i){const a=()=>this.onImgElLoaded(t,n,!0),c=()=>this.onImgElLoaded(t,n,!1);n.addEventListener("load",a),n.addEventListener("error",c),this.onDisposeCallbacks.push(()=>{n.removeEventListener("load",a),n.removeEventListener("error",c)})}}if(i&&!o){if(o=yo(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await fl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=i&&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,o){var r;if(!this.isMounted)return;const i=yo(n);if(i&&!(!i.startsWith("blob:")&&t.computedSrc===i)){if(n._tkSrc=i,!o){this.reactiveResults[i]={src:i,isLoading:!1,hasError:!0},this.onDownloadError();return}(r=this.reactiveResults)[i]??(r[i]={src:i,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,i=o?await bp(o,n):n;if(!i||!this.isMounted)return;const r=await yp(i,o);this.isMounted&&(this.reactiveResults[n]={src:i,size:r,isLoading:!1,hasError:!r,invalid:!!r&&(r.width<200||r.height<200)},r?this.onDownloaded(t,r):this.onDownloadError())}}const wp=3;class xp{constructor({getItems:t,getActiveIndex:n,isCompleted:o,callback:i}){me(this,"isQueueStarted",!1);me(this,"debouncedEnqueue");me(this,"concurrentCount",0);me(this,"getItems");me(this,"getActiveIndex");me(this,"isCompleted");me(this,"callback");me(this,"activeIndex",0);me(this,"completedItems");me(this,"isMounted",!0);this.getItems=t,this.getActiveIndex=n,this.isCompleted=o,this.callback=i,this.debouncedEnqueue=Fe(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<wp&&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)),i=[];for(let r=o;r<t.length;r++){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==t.length-1))}for(let r=o-1;r>=0;r--){if(!this.canEnqueue)return;i.push(await this.invokeItemCallback(r,r==0))}this.getItems()===t&&i.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 Xt{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)}}class pl{constructor(){me(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function wi(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 Sp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await an(50,30,()=>document.querySelector(n));return i?(wi(i),await cn(),!0):!1}class kp{constructor({spec:t,onChanged:n}){me(this,"spec");me(this,"onChanged");me(this,"rawImages",[]);me(this,"isMounted",!0);me(this,"loadRawImagesTs");me(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=Fe(()=>{t&&this.loadRawImages(t)},100),o=new MutationObserver(n),i=(s=this.spec)!=null&&s.imgDivs?void 0:(()=>{let l=window.innerWidth;return new ResizeObserver(Fe(()=>{const a=window.innerWidth;if(a!==l){l=a;return}n()},50))})();this.disconnectObservers=async()=>{o.disconnect(),i==null||i.disconnect()};let r=!1;this.loadContentEl(l=>{t!==l&&(t=l,o.disconnect(),i==null||i.disconnect(),o.observe(t,{childList:!0,subtree:!0}),i==null||i.observe(t),r?n():(r=!0,this.loadRawImages(t)))})}setRawImages(t){let n=!1;const o=t.map((i,r)=>{const s=this.rawImages[r];return s&&s.el===i.el&&s.parentEl===i.parentEl&&s.src===i.src?s:(n=!0,i)});(n||!o.length)&&(this.rawImages=o,this.onChanged(t))}async loadContentEl(t){var l;const n=await Sp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await an(n?100:1,10,()=>{for(const a of o.split(",")){const c=document.querySelector(a);if(c)return c}});if(!i)return;t(i);let r=0;const s=async()=>{if(this.isMounted&&!(i!=null&&i.isConnected)){if(r=0,i=await an(50,20,()=>{const a=document.querySelector(o);return a!=null&&a.isConnected&&a!==i?a:void 0}),!i)return;t(i)}!this.isMounted||++r>=10||setTimeout(s,200)};setTimeout(s,200)}async loadRawImages(t){var r;if(!this.isMounted||!t.isConnected)return;const n=Date.now();this.loadRawImagesTs=n;const o=(r=this.spec)==null?void 0:r.imgDivs,i=o?await Cp(t,o):hl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function Cp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return hl(e);const o=new pl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(gl(l))return new Xt(void 0,l,r)}else if(l instanceof HTMLImageElement&&ml(l)){const a=yo(l);return new Xt(a,l,r)}}return new Xt(void 0,void 0,r)})}function hl(e){const t=[],n={},o=new pl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)gl(r)&&t.push(new Xt(void 0,r));else if(r instanceof HTMLImageElement&&ml(r)){const s=yo(r);if(s){const l=n[s];if(l!==void 0&&l!==-1){t.splice(l,1);return}n[s]=t.length}t.push(new Xt(s,r))}}}),t}function gl(e){return e.isConnected&&vl(e.width,e.height)}function ml(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||vl(t.width,t.height)}function vl(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}const xi="mp-scroll-container";class Si{constructor(){me(this,"unmountedCallbacks",new Map)}dispose(){for(const t of this.unmountedCallbacks.values())t()}scrollTo({rawImages:t,page:n,skipIfVisible:o,isScrollDown:i,fallbackScrollEl:r}){const s=Math.floor(n),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??document.querySelector(`img[src^="${l.computedSrc}"]`);if(!a)return;const c=a.getBoundingClientRect();if(o&&c.top<=0&&c.top+c.height>0)return;const u=Si.getScrollable(a,r);if(!u)return;const{el:f,top:p}=u;r!==document.documentElement&&!f.classList.contains(xi)&&(f.classList.add(xi),this.unmountedCallbacks.has(f)||this.unmountedCallbacks.set(f,()=>{f.classList.remove(xi)}));const S=n>=t.length?c.height:i?Math.max(0,c.height-window.innerHeight+100):n%1*c.height,O={top:p+S,behavior:"instant"};f.scrollTo(O),f===document.body&&document.documentElement.scrollTo(O)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:l}=i;if(l&&s&&r.set(l,Math.max(r.get(l)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let c=0;return r.forEach((u,f)=>{c+=f===l?u-s:u}),{el:i,top:c}};return o(t,new Map)}}function bl(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function Ip(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 Xt(void 0,o));return bl(n)}function Ep(e){var E,B,C,N;const t=X((E=e.raw.value)==null?void 0:E.isWebtoon),n=X((B=e.raw.value)==null?void 0:B.isWebtoon);let o=!1;const i=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),r=((N=(C=e.raw.value)==null?void 0:C.imgs)==null?void 0:N.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:r.length?Ip(r):void 0,l=r.map(v=>new Xt(v)),a,c;const u=new _p({isIOS:i,onDownloaded(v,A){let _=l.indexOf(v);if(_===-1){const y=v.computedSrc;_=l.findIndex(D=>D.computedSrc===y)}if(_!==-1){if(A&&!t.value&&_>Math.min(1,l.length-3)&&_<Math.max(l.length-2,3)){const y=A.height/A.width,D=y>2||y<.5,w=y>1.6||y<.6;t.value!==D&&(t.value=D),n.value!==w&&(n.value=w)}S()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),f=new xp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:v=>{const A=v.computedSrc;return!!(A&&u.reactiveResults[A])},callback:v=>u.download(v)}),p=new Si;if(r.length)f.run();else{let v=!1;a=new kp({spec:e.spec,async onChanged(A){var _;if(l=A,!e.raw.value&&!A.length){e.onError("no_img");return}(_=e.spec)!=null&&_.imgDivs&&!v&&e.isAutoShow!==!1&&e.page.value&&(v=!0,p.scrollTo({rawImages:A,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:i?document.body:document.documentElement}),await cn(1)),s===void 0&&e.isAutoShow===!1&&(s=bl(A)),f.run()}})}qo(()=>{u.dispose(),f.dispose(),a==null||a.dispose(),c&&clearTimeout(c),p.dispose(),o&&p.scrollTo({rawImages:l,page:e.page.value,fallbackScrollEl:document.documentElement})});function S(){var y,D,w;if(o||t.value===void 0||s===void 0)return;const v=Math.max(0,Math.min(s,l.length)),A=Math.min(Math.floor(v),l.length-1);if(A>=1){if(!((y=l[A])==null?void 0:y.computedSrc)){e.isAutoShow&&p.scrollTo({rawImages:l,page:A,fallbackScrollEl:i?document.body:document.documentElement});return}for(let M=A;M<l.length;M++){const Q=(D=l[M])==null?void 0:D.computedSrc;if(!Q)return;const b=u.reactiveResults[Q];if(!b)return;if(!b.invalid){if(!b.size&&!b.hasError)return;break}}for(let M=A-1;M>=0;M--){const Q=(w=l[M])==null?void 0:w.computedSrc;if(!Q)break;const b=u.reactiveResults[Q];if(!b)return;if(!b.invalid){if(!b.size&&!b.hasError)return;break}}}if(o)return;o=!0,e.onReady(v);let _=!0;fe(()=>Math.floor(e.page.value),($,M)=>{$===M&&!_||(p.scrollTo({rawImages:l,page:$,isScrollDown:M===void 0||$>M||l.length===1,skipIfVisible:_&&l.length>1,fallbackScrollEl:i?document.body:document.documentElement}),_=!1,M??(M=-1),f.run())},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(u.reactiveResults);const v=[];return l.forEach(A=>{const _=A.computedSrc,y=_?u.reactiveResults[_]:void 0;(_&&!(y!=null&&y.invalid)||A.parentEl)&&v.push(y)}),v}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function Tp(e,t,n){return se(()=>t.value?yl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function yl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,l)=>({img:s,index:n+l})),...yl(e.slice(r.length),t&&i,n+r.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 se({get:()=>o.value,set:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function Pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ki=40;function Op({page:e,direction:t,style:n,isLongStrip:o,isVertical:i,isRTL:r,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:f,onFinished:p}){let S=!1,O=!1,E=!1,B;const C=Fe($,300),N=xs(()=>{$(),C()},300),v=Fe(y,50);async function A(){D(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function _(){var I;O=!0,f(),M(),(I=l.value)==null||I.addEventListener("scroll",N),setTimeout(()=>{const{width:K,height:le}=zs();fe(K,()=>{i.value&&v()}),fe(le,()=>{i.value||v()}),fe(n,y),fe(t,y)},300)}async function y(){if(!O||S)return;S=!0,await ht();const I=e.value;if(b()===I){S=!1;return}D(I)}function D(I,{smooth:K,ensureLastImgVisibility:le=!1}={smooth:!1}){const ue=l.value;if(!ue)return;S=!0;const be=async()=>{await ht(),S=!1,O||_()},_e=Math.floor(I),Ue=_i(ue,_e);if(!Ue){be();return}c(async()=>{await w(ue,!o.value&&K,async()=>{await re(ue,Ue,{smooth:K,page:I,ensureLastImgVisibility:le})}),await be()})}async function w(I,K,le){K&&I.style.setProperty("scroll-snap-type","none"),await le(),K&&I.style.removeProperty("scroll-snap-type")}function $(){if(S)return;const I=b();I!==void 0&&I!==e.value&&u(I),M()}function M(){E||!E&&Q()&&(E=!0,p())}function Q(){const I=l.value;if(!I)return!1;const K=o.value?a.value?3:!i.value&&I.clientWidth>I.clientHeight?2.25:2.5:2;return i.value?I.scrollHeight-I.scrollTop<I.clientHeight*K:I.scrollWidth-(r.value?-I.scrollLeft:I.scrollLeft)<I.clientWidth*K}function b(){const I=g();return I?(+I.getAttribute("data-index")||0)+(o.value?V(I):0):void 0}function g(){var K;if(B??(B=l.value.getRootNode()),!B)return;const I=(K=B.elementsFromPoint)==null?void 0:K.call(B,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-ki:ki,i.value&&o.value?s.value||ki:window.innerHeight/2);if(I)for(let le=0;le<I.length;le++){const ue=I[le];if(ue.hasAttribute("data-index"))return ue;if(ue===l.value)break}}function V(I){const K=I.getBoundingClientRect();return i.value?Math.abs(K.top-s.value)/K.height:r.value?Math.max(0,K.right-l.value.clientWidth)/K.width:Math.abs(K.left)/K.width}let G=!1;async function re(I,K,le){if(G)return;const ue=K.getBoundingClientRect();if(!o.value){if(i.value){if(ue.top<=0&&ue.bottom>=I.clientHeight)return}else if(ue.left<=0&&ue.right>=I.clientWidth)return}G=!0;const be=i.value?I.scrollTop:I.scrollLeft,_e=le.page,Ue=o.value?_e%1:0,mt=await an(30,10,async()=>{await cn();let Oe;if(!(K.offsetHeight<10))return o.value?i.value?Oe=K.offsetTop+Ue*K.offsetHeight-s.value:r.value?Oe=K.offsetLeft-I.clientWidth+K.offsetWidth-Ue*K.offsetWidth:Oe=K.offsetLeft+Ue*K.offsetWidth:i.value?Oe=K.offsetTop+(ue.top>0?0:ue.height-I.clientHeight):Oe=K.offsetLeft+(ue.left>0?0:ue.width-I.clientWidth),_e>.5&&Math.abs(Oe)<100?void 0:Oe})??0,zt=le.ensureLastImgVisibility?i.value?Math.min(mt,I.scrollHeight-I.clientHeight*2):r.value?Math.max(mt,-(I.scrollWidth-I.clientWidth*2)):Math.min(mt,I.scrollWidth-I.clientWidth*2):mt;if(!le.smooth){i.value?I.scrollTop=zt:I.scrollLeft=zt,G=!1;return}const Ye=zt-be,vt=30;let Xe=0;return new Promise(Oe=>{(function ut(){const At=Mp(Xe,be,Ye,vt);i.value?I.scrollTop=At:I.scrollLeft=At,Xe++,Xe<=vt?requestAnimationFrame(ut):(Oe(),G=!1)})()})}return{init:A,goToPage:D}}function Mp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Lp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=X(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:w=>{a.value=w,sessionStorage.setItem("tk:playing",w?"true":"false")}}),u=X(!1);let f,p;const S=Fe(y,100),O=Fe(()=>{u.value=!0},t?2e3:1e3),E=()=>setTimeout(()=>{u.value=!1,O()},30);E(),t||Mt(window,"mousemove",E);const B=Ts();Re(()=>{fe(B,w=>{c.value&&(w==="visible"?y():p==null||p())}),fe(s,()=>C()),fe(r,w=>{w||v()})}),Vt(v);async function C(w){c.value&&(p==null||p()),w&&(await ht(),await w()),c.value&&S()}function N(){c.value?v():A()}function v(){c.value&&(c.value=!1,p==null||p(),E())}function A(){!c.value&&r.value&&(c.value=!0,y(),E())}function _(){p==null||p()}function y(){const w=n.value;if(!c.value||!w)return;const $=o.value?w.scrollHeight-w.clientHeight:w.scrollWidth-w.clientWidth,M=D();if($<=M){v();return}p=()=>{f=Date.now(),p=void 0};const Q=Date.now();f=Q;const b=.05*s.value,g=o.value?"scrollTop":"scrollLeft";let V=Date.now(),G=0;const re=()=>{if(f!==Q)return;const I=Date.now(),K=I-V;V=I;const le=b*K+G;le>=1?(G=le%1,w[g]+=(le-G)*(i.value?-1:1)):G=le,setTimeout(re,1)};re()}function D(){const w=n.value;return o.value?w.scrollTop:i.value?-w.scrollLeft:w.scrollLeft}return{isPlaying:c,isIdle:u,toggle:N,play:A,pause:_,resume:y,stop:v,interfere:C,awake:E}}function zp({raw:e,spec:t,siteMeta:n}){var M,Q,b;const{vol:o,inferVol:i,chap:r,title:s,slug:l,basePath:a}=e,c=t==null?void 0:t.chapter;let u=-1;const f=c&&c.sel&&!c.url?document.querySelectorAll(c.sel):void 0;async function p(g,V){if(g.slug)S(g.slug,V);else if(g.elIndex!==void 0&&f&&f[g.elIndex]){let G=null;c!=null&&c.trigger&&(G=document.querySelector(c.trigger)),G&&(G.click(),await new Promise(re=>setTimeout(()=>re(),50))),wi(f[g.elIndex]),G&&G.click()}}function S(g,V){const G=Ap(a,g,(n==null?void 0:n.trailing)??!0);V?window.open(G,"_blank","noopener"):location.href=G}function O(g){const V=v[g];return V?G=>p(V,G):void 0}function E(g,V,G){if(g){const re=document.querySelector(g);re&&wi(re);return}V&&S(V,G)}const B=o??i,C=c==null?void 0:c.url,N=((M=s.chapters)==null?void 0:M.filter(g=>g.slug||!C&&g.elIndex!==void 0))??[],v=N.length>1?N:[],A=(Q=e.prev)==null?void 0:Q.slug,_=(b=e.next)==null?void 0:b.slug,{prevBtn:y,nextBtn:D}=t??{};let w=A||y&&!v.length?g=>E(y,A,g):void 0,$=_||D&&!v.length?g=>E(D,_,g):void 0;if(v.length){if(C&&(u=v.findIndex(g=>g.slug===e.slug)),u===-1&&(u=v.findIndex(g=>(g.vol??g.inferVol)===B&&g.chap===r)),C&&u===-1&&(u=v.findIndex(g=>g.slug&&l.startsWith(`${g.slug}-`)&&l.length-g.slug.length>3)),u!==-1)w??(w=O(u+1)),$??($=O(u-1));else if(!A&&!_){const g=v.findIndex(V=>{const G=V.vol??V.inferVol;return B===void 0||G===void 0||B===G?V.chap<r:G<B});g!==-1?(w=O(g),$=O(g-1)):$=O(v.length-1)}}return{activeIndex:u,activeLabel:_l({vol:o,chap:r}),prev:w,next:$,chapters:v.map(g=>({label:_l(g),select:V=>p(g,V)}))}}function _l({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Ap(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[i,r]=(o.includes("//")?o:location.origin+o).split("?");return[i.endsWith("/")===n?i:n?i+"/":i.substring(0,-1),r].filter(Boolean).join("?")}const jp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},wl=he(ke({inheritAttrs:!1,__name:"App",props:{immediate:{type:Boolean},raw:{},spec:{},siteMeta:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean},onPressedBack:{type:Function}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters","hapticFeedback"],setup(e,{emit:t}){const n=e,o=t;let i=!1,r;const s=X(!1),l=X(!1),a=wu({touchDevice:n.touchDevice}),c=$p(n.page,n.isAutoShow),u=se(()=>n.spaceTop??0),{asyncImgs:f,isWebtoon:p,maybeWebtoon:S}=Ep({raw:se(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(m){mt(m),s.value=!0},onError:()=>{o("error"),R()}}),{direction:O,style:E,isRTL:B,isDouble:C,isVertical:N,isLongStrip:v,gap:A,speed:_,zoom:y,breakFirst:D,autoNextSeconds:w}=ld({titleName:se(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:p,maybeWebtoon:S,defaultStyle:n.readerStyle,defaultDirection:n.direction}),$=X(!1),M=Tp(f,C,D),Q=se(()=>c.value>=f.value.length),b=se(()=>n.raw?zp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta}):void 0),g=X(null),V=Es(),G=X(!1),re=X(!1),I=Lp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var m;return(m=g.value)==null?void 0:m.$el}),speed:_,isRTL:B,isVertical:N,isLongStrip:v}),K=se(()=>!n.touchDevice&&I.isIdle.value&&!a.value&&!$.value),le=se({get(){return y.value},set(m){I.interfere(()=>{y.value=m})}}),ue=Op({page:c,style:E,direction:O,isLongStrip:v,isVertical:N,isRTL:B,spaceTop:u,isWebtoon:p,scrollEl:se(()=>{var m;return(m=g.value)==null?void 0:m.$el}),interferePlayer:m=>I.interfere(m),onChangedPage:mt,onInitialized(){o("ready"),l.value=!0,r=zt()},onFinished:()=>o("finished")}),be=se(()=>Math.floor(c.value)),_e=()=>I.interfere(()=>cn(100));Pu().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const k=v.value&&N.value,q=v.value&&!N.value,te=!v.value&&N.value,ge=!v.value&&!N.value;switch(m.key){case" ":m.preventDefault(),v.value?(ee(!1),I.toggle()):F();break;case"ArrowUp":case"PageUp":k?_e():te&&be.value!==0&&(m.preventDefault(),x());break;case"ArrowDown":case"PageDown":k?_e():te&&!Q.value&&(m.preventDefault(),T());break;case"ArrowLeft":q?_e():ge?(m.preventDefault(),d()):N.value&&Oe();break;case"ArrowRight":q?_e():ge?(m.preventDefault(),h()):N.value&&Xe();break}},onKeyUp:m=>{switch(m.key){case"b":D.value=!D.value;break;case"f":H();break;case"t":j();break;case"h":ee();break}}}),hu(()=>o("hapticFeedback")),Mt("fullscreenchange",()=>{G.value=!!document.fullscreenElement}),fe(I.isPlaying,m=>{m||F(!1),o("playingChanged",m)}),fe(I.isIdle,m=>{I.isPlaying.value&&F(m)}),fe(a,m=>{!m&&I.isIdle.value?I.awake():m&&n.fullScreen&&F()});function mt(m){if(c.value===m)return;const k=f.value.length;if(m<0||m>=k+1)return;const q=Math.floor(m*100)/100;if(q===c.value)return;const te=c.value;c.value=q,o("pageChanged",q),m>=k?(F(!1),I.stop()):m<.01&&te>m?(F(!1),I.awake()):i||(v.value?r!==void 0&&zt()-r>300&&F(!0):Math.abs(te-m)===1&&F(!0))}function zt(){var k;const m=(k=g.value)==null?void 0:k.$el;return m?N.value?m.scrollTop:B.value?-m.scrollLeft:m.scrollLeft:0}function Ye(){!n.touchDevice&&!v.value&&ue.goToPage(be.value,{smooth:!0})}function vt(){if(I.isPlaying.value){!n.fullScreen||!n.touchDevice?I.stop():I.awake();return}F()}function Xe(m=!1){var k,q;(q=(k=b.value)==null?void 0:k.next)==null||q.call(k,m)}function Oe(m=!1){var k,q;(q=(k=b.value)==null?void 0:k.prev)==null||q.call(k,m)}function ut(m){B.value?Xe(jt(m)):Oe(jt(m))}function At(m){B.value?Oe(jt(m)):Xe(jt(m))}function jt(m){return!n.touchDevice&&(m.ctrlKey||m.metaKey)}function d(){B.value?T():x()}function h(){B.value?x():T()}function x(){var q;const m=M.value,k=Q.value?m[m.length-1][0].index:(q=m[P()-1])==null?void 0:q[0].index;k!==void 0?ue.goToPage(k):Oe()}function T(){var m,k;if(Q.value)Xe();else{const q=((k=(m=M.value[P()+1])==null?void 0:m[0])==null?void 0:k.index)??f.value.length;ue.goToPage(q)}}function P(){const m=be.value,k=M.value.findIndex(q=>q.some(({index:te})=>te===m));return k===-1?M.value.length-1:k}function R(){Pp(),o("dispose")}async function F(m){if(a.value&&!n.fullScreen)return;const k=typeof m=="boolean"?m:!n.fullScreen;k!==n.fullScreen&&(i=!0,o("fullScreenChanged",k),k&&setTimeout(()=>{n.fullScreen&&a.value&&o("fullScreenChanged",!1)},100))}function j(){n.entryId?W():L()}function H(){var m,k;document.fullscreenElement?document.exitFullscreen():(k=(m=V.value)==null?void 0:m.querySelector("#reader-layout"))==null||k.requestFullscreen()}function L(){I.stop(),o("addEntry")}function W(){I.stop(),o("openEntry",n.entryId)}function ee(m){re.value!==m&&(re.value=!re.value,re.value&&I.isPlaying.value&&I.stop())}return(m,k)=>m.immediate||s.value?(z(),pe(el,{key:0,loading:!l.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,zooming:$.value,idle:K.value,"space-top":u.value,rtl:U(B),onClick:k[15]||(k[15]=Ne(()=>{},["stop"]))},Ir({settings:ie(()=>{var q;return[J(Fs,{"reader-style":U(E),"onUpdate:readerStyle":k[6]||(k[6]=te=>Ie(E)?E.value=te:null),direction:U(O),"onUpdate:direction":k[7]||(k[7]=te=>Ie(O)?O.value=te:null),gap:U(A),"onUpdate:gap":k[8]||(k[8]=te=>Ie(A)?A.value=te:null),speed:U(_),"onUpdate:speed":k[9]||(k[9]=te=>Ie(_)?_.value=te:null),zoom:le.value,"onUpdate:zoom":k[10]||(k[10]=te=>le.value=te),"auto-next-seconds":U(w),"onUpdate:autoNextSeconds":k[11]||(k[11]=te=>Ie(w)?w.value=te:null),name:(q=m.raw)==null?void 0:q.title.name,webtoon:U(p),disabled:!s.value,onHelp:ee},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[J(rn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[$.value||U(y)!==1?(z(),pe(Hs,{key:0,zoom:le.value,onClick:k[14]||(k[14]=Ne(()=>le.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):ye("",!0)]),_:1})]),progress:ie(()=>[Z("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:ze({width:`${U(c)/(U(f).length-1)*100}%`})},null,4)]),default:ie(()=>{var q;return[s.value?(z(),pe(Js,{key:0,ref_key:"body",ref:g,zoom:le.value,"onUpdate:zoom":k[0]||(k[0]=te=>le.value=te),zooming:$.value,"onUpdate:zooming":k[1]||(k[1]=te=>$.value=te),page:U(c),"page-index":be.value,pages:U(M),"total-imgs":U(f).length,direction:U(O),gap:U(A),"is-long-strip":U(v),isRTL:U(B),"is-double":U(C),"is-vertical":U(N),"space-top":u.value,busy:U(a),idle:K.value,"play-controller":U(I),"touch-device":m.touchDevice,"has-next":!!((q=b.value)!=null&&q.next),onReady:U(ue).init,onPrev:x,onNext:T,onClick:vt,onDragEnd:Ye,onWheelPassive:k[2]||(k[2]=()=>U(I).interfere())},Ir({_:2},[s.value&&U(f).length?{name:"end",fn:ie(()=>{var te;return[J(As,{"has-next":!!((te=b.value)!=null&&te.next),seconds:U(w),onNext:Xe,onHide:R},null,8,["has-next","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-double","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onReady"])):ye("",!0),l.value&&!Q.value&&!m.tourEnabled?(z(),pe(Ys,{key:1,direction:U(O)},null,8,["direction"])):ye("",!0),l.value&&!Q.value?(z(),pe(Gs,{key:2,playing:!!U(I).isPlaying.value},null,8,["playing"])):ye("",!0),re.value?(z(),pe(Xs,{key:3,"touch-device":m.touchDevice,onHide:ee},null,8,["touch-device"])):ye("",!0),m.tourEnabled?(z(),pe(tl,{key:4,onHide:k[3]||(k[3]=()=>o("tourEnabledChanged",!1))})):ye("",!0)]}),_:2},[m.raw||m.onPressedBack?{name:"back",fn:ie(()=>[J(tt,{href:m.onPressedBack||!m.raw?"#":m.raw.title.url,title:"Back to manga",onClick:m.onPressedBack},{default:ie(()=>[J(nl)]),_:1},8,["href","onClick"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:ie(()=>[J(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:R},{default:ie(()=>[J(dl)]),_:1})]),key:"1"},b.value?{name:"chapter-nav",fn:ie(()=>{var q;return[J(qs,{"touch-device":m.touchDevice,"chapter-spec":(q=m.spec)==null?void 0:q.chapter,data:b.value,onGetHiddenChapters:k[4]||(k[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:k[5]||(k[5]=()=>F(!0))},null,8,["touch-device","chapter-spec","data"]),b.value.next||b.value.prev?(z(),Y("div",jp,[J(tt,{title:`${U(B)?"Next":"Prev"} chapter (←)`,disabled:U(B)?!b.value.next:!b.value.prev,class:"!rounded-r-none",onClick:ut},{default:ie(()=>[J(rl)]),_:1},8,["title","disabled"]),J(tt,{title:`${U(B)?"Prev":"Next"} chapter (→)`,disabled:U(B)?!b.value.prev:!b.value.next,class:"!rounded-l-none",onClick:At},{default:ie(()=>[J(sl)]),_:1},8,["title","disabled"])])):ye("",!0)]}),key:"2"}:void 0,U(M).length?{name:"page-nav",fn:ie(()=>[J(Zs,{"model-value":be.value,disabled:!l.value,pages:U(M),"total-imgs":U(f).length,"onUpdate:modelValue":U(ue).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,m.raw?{name:"entry",fn:ie(()=>[J(tt,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:j},{default:ie(()=>[m.entryId?(z(),pe(il,{key:0})):(z(),pe(ol,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[J(tt,{title:`${G.value?"Exit":"Enter"} fullscreen (F)`,onClick:H},{default:ie(()=>[G.value?(z(),pe(ul,{key:0})):(z(),pe(cl,{key:1}))]),_:1},8,["title"])]),key:"5"},U(v)?{name:"play",fn:ie(()=>[J(tt,{"data-tour":"Press here to play like a video",title:`${U(I).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:k[12]||(k[12]=()=>U(I).toggle())},{default:ie(()=>[U(I).isPlaying.value?(z(),pe(vi,{key:0})):(z(),pe(bi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,U(C)?{name:"break-first",fn:ie(()=>[J(tt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:k[13]||(k[13]=()=>D.value=!U(D))},{default:ie(()=>[U(D)?(z(),pe(al,{key:0})):(z(),pe(ll,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):ye("",!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%!important}.container{width:100%}@media (min-width:300px){.\\!container{max-width:300px!important}.container{max-width:300px}}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.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!important}.visible{visibility:visible}.static{position:static}.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-0{margin:0}.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-\\[30rem\\]{height:480px}.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%}.max-h-none{max-height:none}.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\\.8rem\\]{width:76.8px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-none{max-width:none}.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}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.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)}.snap-center{scroll-snap-align:center}.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-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.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-0{padding:0}.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
+ `]]]),Dp=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"})),Rp=Object.freeze(Object.defineProperty({__proto__:null,default:ke({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),i=X(!1);return Re(async()=>{await ht();let r=!1;pi(o,s=>{const l=s.some(a=>a.isIntersecting);l!==i.value&&(i.value=l),l&&!r&&n("visible")})}),(r,s)=>(z(),Y("div",{ref_key:"root",ref:o},[we(r.$slots,"default",{visible:i.value})],512))}})},Symbol.toStringTag,{value:"Module"})),Bp={},Np={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Fp=[Z("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 Vp(e,t){return z(),Y("svg",Np,Fp)}const Hp=Object.freeze(Object.defineProperty({__proto__:null,default:he(Bp,[["render",Vp]])},Symbol.toStringTag,{value:"Module"})),Wp=`gear-second{height:0!important;opacity:0!important;pointer-events:none!important;width:0!important;z-index:-10!important}html.gear-second,html.gear-second *{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{touch-action:pan-x pan-y!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body :not(dialog[open]){visibility:hidden!important}.mp-scroll-container{max-height:100vh!important;overflow:hidden!important}html:has(body.mp-scroll-container){overflow:auto!important}
29
+ `;function Kp(){const e=document.getElementById("mp-download-container");if(!e)return;e.style.setProperty("display","none");const t=JSON.parse(e.getAttribute("data-value"));t.imgs=Array.from(e.children).map(n=>n.src)}const Zt="gear-second",Ci={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,onPressedBack:void 0,onHapticFeedback:void 0},qe={promise:void 0,data:dn({...Ci})};async function qp(e){return qe.promise?(qe.data.raw=e.raw,await qe.promise):(qe.promise=new Promise(t=>{let n=!1,o=!1,i,r,s=0;const l=!!e.spaceTop||!!e.isAutoShow&&!!e.page,a=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(Zt),Object.assign(qe.data,Ci),qe.promise=void 0)},c=Fe(p=>{var S;return!n&&((S=e.onPageChanged)==null?void 0:S.call(e,p))},300);Object.assign(qe.data,Ci,e,{immediate:l,onReady(){l||(u(),document.documentElement.classList.add(Zt))},onError(){var p,S;a(),o?((p=e.onDispose)==null||p.call(e),(S=e.onError)==null||S.call(e)):f()},onDispose:()=>{var p;a(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var S;qe.data.fullScreen=p,(S=e.onFullScreenChanged)==null||S.call(e,p)},onPageChanged:p=>{qe.data.page=p,!(s>=p)&&(s=p,c(p))},onTourEnabledChanged:p=>{qe.data.tourEnabled=p}}),Up().then(()=>{if(n){f();return}r=document.createElement(Zt),l?(document.documentElement.classList.add(Zt),document.body.appendChild(r),setTimeout(u)):document.body.appendChild(r);let p=0;i=setInterval(()=>{if(++p===30||n){clearInterval(i),i=void 0;return}r.isConnected||(document.documentElement.classList.add(Zt),document.body.appendChild(r))},100)});function u(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(p){Object.assign(qe.data,p)},dispose:a}))}function f(){o||t(void 0)}}),await qe.promise)}async function Up(){if(window.customElements.get(Zt))return;const e=document.createElement("style"),t=Wp;e.appendChild(document.createTextNode(t)),document.head.appendChild(e);const n=Kc({styles:[await Yp()],data:()=>({readerData:qe.data}),render(){return es(wl,this.readerData)}});window.customElements.define(Zt,n)}async function Yp(){const e=Object.assign({"./App.vue":Dp,"./components/AutoNext.vue":_u,"./components/BottomSheet.vue":zu,"./components/ButtonDropdown.vue":Md,"./components/ButtonIcon.vue":Su,"./components/ButtonReaderSettings.vue":cd,"./components/ButtonResetZoom.vue":vd,"./components/ChapterNav.vue":Ld,"./components/DirectionToast.vue":Bd,"./components/GesturesContainer.vue":ef,"./components/HelpScreen.vue":Fd,"./components/InputPercentage.vue":Du,"./components/InputSelect.vue":Bu,"./components/IntersectionWrapper.vue":Rp,"./components/LoadingIndicator.vue":sf,"./components/PageNav.vue":Vd,"./components/PauseToast.vue":Jd,"./components/ReaderBody.vue":df,"./components/ReaderLayout.vue":_f,"./components/ReaderTour.vue":wf,"./components/TableField.vue":Vu,"./components/icons/IconBack.vue":If,"./components/icons/IconBookmarkNew.vue":Of,"./components/icons/IconBookmarked.vue":jf,"./components/icons/IconChevronLeft.vue":Ff,"./components/icons/IconChevronRight.vue":qf,"./components/icons/IconClose.vue":Tu,"./components/icons/IconDouble.vue":Gf,"./components/icons/IconDoubleSkip.vue":np,"./components/icons/IconExclamationCircle.vue":Hp,"./components/icons/IconFullscreen.vue":lp,"./components/icons/IconFullscreenExit.vue":fp,"./components/icons/IconHelp.vue":Uu,"./components/icons/IconLoading.vue":xd,"./components/icons/IconNext.vue":Rd,"./components/icons/IconPause.vue":Ud,"./components/icons/IconPlay.vue":Qd,"./components/icons/IconReaderExit.vue":vp,"./components/icons/IconSettings.vue":Qu,"./components/icons/IconTriangle.vue":Ed,"./components/icons/IconZoom.vue":hd}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}Ve.default=qp,Ve.readOffline=Kp,Object.defineProperties(Ve,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.16.0",
4
+ "version": "1.17.0",
5
5
  "license": "UNLICENSED",
6
6
  "description": "MP manga reader",
7
7
  "main": "index.js",