gear-second 1.13.0 → 1.14.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(Ve,le){typeof exports=="object"&&typeof module<"u"?module.exports=le():typeof define=="function"&&define.amd?define(le):(Ve=typeof globalThis<"u"?globalThis:Ve||self,Ve._gearSecond_=le())})(this,function(){"use strict";var Fp=Object.defineProperty;var Hp=(Ve,le,Ye)=>le in Ve?Fp(Ve,le,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ve[le]=Ye;var me=(Ve,le,Ye)=>(Hp(Ve,typeof le!="symbol"?le+"":le,Ye),Ye);/**
1
+ (function(Ve,ae){typeof exports=="object"&&typeof module<"u"?module.exports=ae():typeof define=="function"&&define.amd?define(ae):(Ve=typeof globalThis<"u"?globalThis:Ve||self,Ve._gearSecond_=ae())})(this,function(){"use strict";var Fp=Object.defineProperty;var Hp=(Ve,ae,Xe)=>ae in Ve?Fp(Ve,ae,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Ve[ae]=Xe;var me=(Ve,ae,Xe)=>(Hp(Ve,typeof ae!="symbol"?ae+"":ae,Xe),Xe);/**
2
2
  * @vue/shared v3.4.15
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function Ve(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const le={},Ye=[],Fe=()=>{},_l=()=>!1,On=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vo=e=>e.startsWith("onUpdate:"),xe=Object.assign,bo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yl=Object.prototype.hasOwnProperty,fe=(e,t)=>yl.call(e,t),ee=Array.isArray,Zt=e=>Ln(e)==="[object Map]",xi=e=>Ln(e)==="[object Set]",re=e=>typeof e=="function",Se=e=>typeof e=="string",Gt=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Si=e=>(ve(e)||re(e))&&re(e.then)&&re(e.catch),ki=Object.prototype.toString,Ln=e=>ki.call(e),wl=e=>Ln(e).slice(8,-1),Ii=e=>Ln(e)==="[object Object]",_o=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zn=Ve(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xl=/-(\w)/g,je=An(e=>e.replace(xl,(t,n)=>n?n.toUpperCase():"")),Sl=/\B([A-Z])/g,He=An(e=>e.replace(Sl,"-$1").toLowerCase()),jn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=An(e=>e?`on${jn(e)}`:""),it=(e,t)=>!Object.is(e,t),Dn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Bn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xo=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let Ci;const Ti=()=>Ci||(Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=Se(o)?Tl(o):Oe(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(Se(e)||ve(e))return e}const kl=/;(?![^(]*\))/g,Il=/:([^]+)/,Cl=/\/\*[^]*?\*\//g;function Tl(e){const t={};return e.replace(Cl,"").split(kl).forEach(n=>{if(n){const o=n.split(Il);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Te(e){let t="";if(Se(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Te(e[n]);o&&(t+=o+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const El=Ve("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ei(e){return!!e||e===""}const Xe=e=>Se(e)?e:e==null?"":ee(e)||ve(e)&&(e.toString===ki||!re(e.toString))?JSON.stringify(e,$i,2):String(e),$i=(e,t)=>t&&t.__v_isRef?$i(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[So(o,r)+" =>"]=i,n),{})}:xi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>So(n))}:Gt(t)?So(t):ve(t)&&!ee(t)&&!Ii(t)?String(t):t,So=(e,t="")=>{var n;return Gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
5
+ **/function Ve(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const ae={},Xe=[],Fe=()=>{},_l=()=>!1,On=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vo=e=>e.startsWith("onUpdate:"),xe=Object.assign,bo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wl=Object.prototype.hasOwnProperty,de=(e,t)=>wl.call(e,t),ee=Array.isArray,Zt=e=>Ln(e)==="[object Map]",xi=e=>Ln(e)==="[object Set]",re=e=>typeof e=="function",Se=e=>typeof e=="string",Gt=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Si=e=>(ve(e)||re(e))&&re(e.then)&&re(e.catch),ki=Object.prototype.toString,Ln=e=>ki.call(e),xl=e=>Ln(e).slice(8,-1),Ii=e=>Ln(e)==="[object Object]",yo=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zn=Ve(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),An=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Sl=/-(\w)/g,De=An(e=>e.replace(Sl,(t,n)=>n?n.toUpperCase():"")),kl=/\B([A-Z])/g,He=An(e=>e.replace(kl,"-$1").toLowerCase()),jn=An(e=>e.charAt(0).toUpperCase()+e.slice(1)),_o=An(e=>e?`on${jn(e)}`:""),it=(e,t)=>!Object.is(e,t),Dn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Bn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xo=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let Ci;const Ti=()=>Ci||(Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Le(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=Se(o)?El(o):Le(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(Se(e)||ve(e))return e}const Il=/;(?![^(]*\))/g,Cl=/:([^]+)/,Tl=/\/\*[^]*?\*\//g;function El(e){const t={};return e.replace(Tl,"").split(Il).forEach(n=>{if(n){const o=n.split(Cl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Te(e){let t="";if(Se(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Te(e[n]);o&&(t+=o+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const $l=Ve("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ei(e){return!!e||e===""}const Ze=e=>Se(e)?e:e==null?"":ee(e)||ve(e)&&(e.toString===ki||!re(e.toString))?JSON.stringify(e,$i,2):String(e),$i=(e,t)=>t&&t.__v_isRef?$i(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[So(o,r)+" =>"]=i,n),{})}:xi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>So(n))}:Gt(t)?So(t):ve(t)&&!ee(t)&&!Ii(t)?String(t):t,So=(e,t="")=>{var n;return Gt(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 $l{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 Pl(e,t=We){t&&t.active&&t.effects.push(e)}function Pi(){return We}function Ml(e){We&&We.cleanups.push(e)}let zt;class ko{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,Pl(this,i)}get dirty(){if(this._dirtyLevel===1){vt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ol(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),bt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=mt,n=zt;try{return mt=!0,zt=this,this._runnings++,Mi(this),this.fn()}finally{Oi(this),this._runnings--,zt=n,mt=t}}stop(){var t;this.active&&(Mi(this),Oi(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ol(e){return e.value}function Mi(e){e._trackId++,e._depsLength=0}function Oi(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Li(e.deps[t],e);e.deps.length=e._depsLength}}function Li(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let mt=!0,Io=0;const zi=[];function vt(){zi.push(mt),mt=!1}function bt(){const e=zi.pop();mt=e===void 0?!0:e}function Co(){Io++}function To(){for(Io--;!Io&&Eo.length;)Eo.shift()()}function Ai(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Li(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Eo=[];function ji(e,t,n){Co();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())}Di(e),To()}function Di(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Eo.push(t.scheduler))}const Bi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},$o=new WeakMap,At=Symbol(""),Po=Symbol("");function De(e,t,n){if(mt&&zt){let o=$o.get(e);o||$o.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Bi(()=>o.delete(n))),Ai(zt,i)}}function dt(e,t,n,o,i,r){const s=$o.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Gt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?_o(n)&&l.push(s.get("length")):(l.push(s.get(At)),Zt(e)&&l.push(s.get(Po)));break;case"delete":ee(e)||(l.push(s.get(At)),Zt(e)&&l.push(s.get(Po)));break;case"set":Zt(e)&&l.push(s.get(At));break}Co();for(const a of l)a&&ji(a,2);To()}const Ll=Ve("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Ni=zl();function zl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(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(ce)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){vt(),Co();const o=ce(this)[t].apply(this,n);return To(),bt(),o}}),e}function Al(e){const t=ce(this);return De(t,"has",e),t.hasOwnProperty(e)}class Vi{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?Yl:Xi:r?Yi:Ui).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!i){if(s&&fe(Ni,n))return Reflect.get(Ni,n,o);if(n==="hasOwnProperty")return Al}const l=Reflect.get(t,n,o);return(Gt(n)?Ri.has(n):Ll(n))||(i||De(t,"get",n),r)?l:Ee(l)?s&&_o(n)?l:l.value:ve(l)?i?Zi(l):cn(l):l}}class Fi extends Vi{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=Jt(r);if(!Kn(o)&&!Jt(o)&&(r=ce(r),o=ce(o)),!ee(t)&&Ee(r)&&!Ee(o))return a?!1:(r.value=o,!0)}const s=ee(t)&&_o(n)?Number(n)<t.length:fe(t,n),l=Reflect.set(t,n,o,i);return t===ce(i)&&(s?it(o,r)&&dt(t,"set",n,o):dt(t,"add",n,o)),l}deleteProperty(t,n){const o=fe(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&dt(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Ri.has(n))&&De(t,"has",n),o}ownKeys(t){return De(t,"iterate",ee(t)?"length":At),Reflect.ownKeys(t)}}class jl extends Vi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Dl=new Fi,Bl=new jl,Rl=new Fi(!0),Mo=e=>e,Rn=e=>Reflect.getPrototypeOf(e);function Nn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ce(e),r=ce(t);n||(it(t,r)&&De(i,"get",t),De(i,"get",r));const{has:s}=Rn(i),l=o?Mo:n?zo:un;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 Vn(e,t=!1){const n=this.__v_raw,o=ce(n),i=ce(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 Fn(e,t=!1){return e=e.__v_raw,!t&&De(ce(e),"iterate",At),Reflect.get(e,"size",e)}function Hi(e){e=ce(e);const t=ce(this);return Rn(t).has.call(t,e)||(t.add(e),dt(t,"add",e,e)),this}function Wi(e,t){t=ce(t);const n=ce(this),{has:o,get:i}=Rn(n);let r=o.call(n,e);r||(e=ce(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?it(t,s)&&dt(n,"set",e,t):dt(n,"add",e,t),this}function Ki(e){const t=ce(this),{has:n,get:o}=Rn(t);let i=n.call(t,e);i||(e=ce(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&dt(t,"delete",e,void 0),r}function qi(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&dt(e,"clear",void 0,void 0),n}function Hn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ce(s),a=t?Mo:e?zo:un;return!e&&De(l,"iterate",At),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function Wn(e,t,n){return function(...o){const i=this.__v_raw,r=ce(i),s=Zt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Mo:t?zo:un;return!t&&De(r,"iterate",a?Po:At),{next(){const{value:p,done:d}=c.next();return d?{value:p,done:d}:{value:l?[u(p[0]),u(p[1])]:u(p),done:d}},[Symbol.iterator](){return this}}}}function _t(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Nl(){const e={get(r){return Nn(this,r)},get size(){return Fn(this)},has:Vn,add:Hi,set:Wi,delete:Ki,clear:qi,forEach:Hn(!1,!1)},t={get(r){return Nn(this,r,!1,!0)},get size(){return Fn(this)},has:Vn,add:Hi,set:Wi,delete:Ki,clear:qi,forEach:Hn(!1,!0)},n={get(r){return Nn(this,r,!0)},get size(){return Fn(this,!0)},has(r){return Vn.call(this,r,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Hn(!0,!1)},o={get(r){return Nn(this,r,!0,!0)},get size(){return Fn(this,!0)},has(r){return Vn.call(this,r,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Wn(r,!1,!1),n[r]=Wn(r,!0,!1),t[r]=Wn(r,!1,!0),o[r]=Wn(r,!0,!0)}),[e,n,t,o]}const[Vl,Fl,Hl,Wl]=Nl();function Oo(e,t){const n=t?e?Wl:Hl:e?Fl:Vl;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(fe(n,i)&&i in o?n:o,i,r)}const Kl={get:Oo(!1,!1)},ql={get:Oo(!1,!0)},Ul={get:Oo(!0,!1)},Ui=new WeakMap,Yi=new WeakMap,Xi=new WeakMap,Yl=new WeakMap;function Xl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zl(e){return e.__v_skip||!Object.isExtensible(e)?0:Xl(wl(e))}function cn(e){return Jt(e)?e:Lo(e,!1,Dl,Kl,Ui)}function Gl(e){return Lo(e,!1,Rl,ql,Yi)}function Zi(e){return Lo(e,!0,Bl,Ul,Xi)}function Lo(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=Zl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Qt(e){return Jt(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Kn(e){return!!(e&&e.__v_isShallow)}function Gi(e){return Qt(e)||Jt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Qi(e){return Bn(e,"__v_skip",!0),e}const un=e=>ve(e)?cn(e):e,zo=e=>ve(e)?Zi(e):e;class Ji{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ko(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Di(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ce(this);return(!t._cacheable||t.effect.dirty)&&it(t._value,t._value=t.effect.run())&&dn(t,2),Ao(t),t.effect._dirtyLevel>=1&&dn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Ql(e,t,n=!1){let o,i;const r=re(e);return r?(o=e,i=Fe):(o=e.get,i=e.set),new Ji(o,i,r||!i,n)}function Ao(e){mt&&zt&&(e=ce(e),Ai(zt,e.dep||(e.dep=Bi(()=>e.dep=void 0,e instanceof Ji?e:void 0))))}function dn(e,t=2,n){e=ce(e);const o=e.dep;o&&ji(o,t)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Jl(e,!1)}function Jl(e,t){return Ee(e)?e:new ea(e,t)}class ea{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:un(t)}get value(){return Ao(this),this._value}set value(t){const n=this.__v_isShallow||Kn(t)||Jt(t);t=n?t:ce(t),it(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function Y(e){return Ee(e)?e.value:e}const ta={get:(e,t,n)=>Y(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Ee(i)&&!Ee(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function er(e){return Qt(e)?e:new Proxy(e,ta)}class na{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Ao(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function oa(e){return new na(e)}/**
9
+ **/let We;class Pl{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 Ml(e,t=We){t&&t.active&&t.effects.push(e)}function Pi(){return We}function Ol(e){We&&We.cleanups.push(e)}let zt;class ko{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,Ml(this,i)}get dirty(){if(this._dirtyLevel===1){vt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Ll(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),bt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=mt,n=zt;try{return mt=!0,zt=this,this._runnings++,Mi(this),this.fn()}finally{Oi(this),this._runnings--,zt=n,mt=t}}stop(){var t;this.active&&(Mi(this),Oi(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ll(e){return e.value}function Mi(e){e._trackId++,e._depsLength=0}function Oi(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Li(e.deps[t],e);e.deps.length=e._depsLength}}function Li(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let mt=!0,Io=0;const zi=[];function vt(){zi.push(mt),mt=!1}function bt(){const e=zi.pop();mt=e===void 0?!0:e}function Co(){Io++}function To(){for(Io--;!Io&&Eo.length;)Eo.shift()()}function Ai(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&Li(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Eo=[];function ji(e,t,n){Co();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())}Di(e),To()}function Di(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Eo.push(t.scheduler))}const Bi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},$o=new WeakMap,At=Symbol(""),Po=Symbol("");function Be(e,t,n){if(mt&&zt){let o=$o.get(e);o||$o.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Bi(()=>o.delete(n))),Ai(zt,i)}}function dt(e,t,n,o,i,r){const s=$o.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&ee(e)){const a=Number(o);s.forEach((c,u)=>{(u==="length"||!Gt(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?yo(n)&&l.push(s.get("length")):(l.push(s.get(At)),Zt(e)&&l.push(s.get(Po)));break;case"delete":ee(e)||(l.push(s.get(At)),Zt(e)&&l.push(s.get(Po)));break;case"set":Zt(e)&&l.push(s.get(At));break}Co();for(const a of l)a&&ji(a,2);To()}const zl=Ve("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Ni=Al();function Al(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let r=0,s=this.length;r<s;r++)Be(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(ce)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){vt(),Co();const o=ce(this)[t].apply(this,n);return To(),bt(),o}}),e}function jl(e){const t=ce(this);return Be(t,"has",e),t.hasOwnProperty(e)}class Vi{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?Xl:Xi:r?Yi:Ui).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!i){if(s&&de(Ni,n))return Reflect.get(Ni,n,o);if(n==="hasOwnProperty")return jl}const l=Reflect.get(t,n,o);return(Gt(n)?Ri.has(n):zl(n))||(i||Be(t,"get",n),r)?l:Ee(l)?s&&yo(n)?l:l.value:ve(l)?i?Zi(l):cn(l):l}}class Fi extends Vi{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=Jt(r);if(!Kn(o)&&!Jt(o)&&(r=ce(r),o=ce(o)),!ee(t)&&Ee(r)&&!Ee(o))return a?!1:(r.value=o,!0)}const s=ee(t)&&yo(n)?Number(n)<t.length:de(t,n),l=Reflect.set(t,n,o,i);return t===ce(i)&&(s?it(o,r)&&dt(t,"set",n,o):dt(t,"add",n,o)),l}deleteProperty(t,n){const o=de(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&dt(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Ri.has(n))&&Be(t,"has",n),o}ownKeys(t){return Be(t,"iterate",ee(t)?"length":At),Reflect.ownKeys(t)}}class Dl extends Vi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Bl=new Fi,Rl=new Dl,Nl=new Fi(!0),Mo=e=>e,Rn=e=>Reflect.getPrototypeOf(e);function Nn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ce(e),r=ce(t);n||(it(t,r)&&Be(i,"get",t),Be(i,"get",r));const{has:s}=Rn(i),l=o?Mo:n?zo:un;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 Vn(e,t=!1){const n=this.__v_raw,o=ce(n),i=ce(e);return t||(it(e,i)&&Be(o,"has",e),Be(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Fn(e,t=!1){return e=e.__v_raw,!t&&Be(ce(e),"iterate",At),Reflect.get(e,"size",e)}function Hi(e){e=ce(e);const t=ce(this);return Rn(t).has.call(t,e)||(t.add(e),dt(t,"add",e,e)),this}function Wi(e,t){t=ce(t);const n=ce(this),{has:o,get:i}=Rn(n);let r=o.call(n,e);r||(e=ce(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?it(t,s)&&dt(n,"set",e,t):dt(n,"add",e,t),this}function Ki(e){const t=ce(this),{has:n,get:o}=Rn(t);let i=n.call(t,e);i||(e=ce(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&dt(t,"delete",e,void 0),r}function qi(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&dt(e,"clear",void 0,void 0),n}function Hn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ce(s),a=t?Mo:e?zo:un;return!e&&Be(l,"iterate",At),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function Wn(e,t,n){return function(...o){const i=this.__v_raw,r=ce(i),s=Zt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Mo:t?zo:un;return!t&&Be(r,"iterate",a?Po:At),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function yt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Vl(){const e={get(r){return Nn(this,r)},get size(){return Fn(this)},has:Vn,add:Hi,set:Wi,delete:Ki,clear:qi,forEach:Hn(!1,!1)},t={get(r){return Nn(this,r,!1,!0)},get size(){return Fn(this)},has:Vn,add:Hi,set:Wi,delete:Ki,clear:qi,forEach:Hn(!1,!0)},n={get(r){return Nn(this,r,!0)},get size(){return Fn(this,!0)},has(r){return Vn.call(this,r,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:Hn(!0,!1)},o={get(r){return Nn(this,r,!0,!0)},get size(){return Fn(this,!0)},has(r){return Vn.call(this,r,!0)},add:yt("add"),set:yt("set"),delete:yt("delete"),clear:yt("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Wn(r,!1,!1),n[r]=Wn(r,!0,!1),t[r]=Wn(r,!1,!0),o[r]=Wn(r,!0,!0)}),[e,n,t,o]}const[Fl,Hl,Wl,Kl]=Vl();function Oo(e,t){const n=t?e?Kl:Wl:e?Hl:Fl;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(de(n,i)&&i in o?n:o,i,r)}const ql={get:Oo(!1,!1)},Ul={get:Oo(!1,!0)},Yl={get:Oo(!0,!1)},Ui=new WeakMap,Yi=new WeakMap,Xi=new WeakMap,Xl=new WeakMap;function Zl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gl(e){return e.__v_skip||!Object.isExtensible(e)?0:Zl(xl(e))}function cn(e){return Jt(e)?e:Lo(e,!1,Bl,ql,Ui)}function Ql(e){return Lo(e,!1,Nl,Ul,Yi)}function Zi(e){return Lo(e,!0,Rl,Yl,Xi)}function Lo(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=Gl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Qt(e){return Jt(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Kn(e){return!!(e&&e.__v_isShallow)}function Gi(e){return Qt(e)||Jt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Qi(e){return Bn(e,"__v_skip",!0),e}const un=e=>ve(e)?cn(e):e,zo=e=>ve(e)?Zi(e):e;class Ji{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ko(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Di(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ce(this);return(!t._cacheable||t.effect.dirty)&&it(t._value,t._value=t.effect.run())&&dn(t,2),Ao(t),t.effect._dirtyLevel>=1&&dn(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Jl(e,t,n=!1){let o,i;const r=re(e);return r?(o=e,i=Fe):(o=e.get,i=e.set),new Ji(o,i,r||!i,n)}function Ao(e){mt&&zt&&(e=ce(e),Ai(zt,e.dep||(e.dep=Bi(()=>e.dep=void 0,e instanceof Ji?e:void 0))))}function dn(e,t=2,n){e=ce(e);const o=e.dep;o&&ji(o,t)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return ea(e,!1)}function ea(e,t){return Ee(e)?e:new ta(e,t)}class ta{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:un(t)}get value(){return Ao(this),this._value}set value(t){const n=this.__v_isShallow||Kn(t)||Jt(t);t=n?t:ce(t),it(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function U(e){return Ee(e)?e.value:e}const na={get:(e,t,n)=>U(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Ee(i)&&!Ee(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function er(e){return Qt(e)?e:new Proxy(e,na)}class oa{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Ao(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function ia(e){return new oa(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 fn=[];function Kp(e,...t){vt();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=ia();if(o)ft(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${qr(n,r.type)}>`).join(`
13
+ **/const fn=[];function Kp(e,...t){vt();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=ra();if(o)ft(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${qr(n,r.type)}>`).join(`
14
14
  `),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
15
- `,...ra(i)),console.warn(...r)}bt()}function ia(){let e=fn[fn.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 ra(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
- `],...sa(n))}),t}function sa({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,...la(e.props),r]:[i+r]}function la(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...tr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function tr(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}`]:Ee(t)?(t=tr(e,ce(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):re(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ce(t),n?t:[`${e}=`,t])}function ft(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){qn(r,t,n)}return i}function Ze(e,t,n,o){if(re(e)){const r=ft(e,t,n,o);return r&&Si(r)&&r.catch(s=>{qn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Ze(e[r],t,n,o));return i}function qn(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){ft(a,null,10,[e,s,l]);return}}aa(e,n,i,o)}function aa(e,t,n,o=!0){console.error(e)}let pn=!1,jo=!1;const Le=[];let rt=0;const en=[];let yt=null,jt=0;const nr=Promise.resolve();let Do=null;function wt(e){const t=Do||nr;return e?t.then(this?e.bind(this):e):t}function ca(e){let t=rt+1,n=Le.length;for(;t<n;){const o=t+n>>>1,i=Le[o],r=hn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Bo(e){(!Le.length||!Le.includes(e,pn&&e.allowRecurse?rt+1:rt))&&(e.id==null?Le.push(e):Le.splice(ca(e.id),0,e),or())}function or(){!pn&&!jo&&(jo=!0,Do=nr.then(sr))}function ua(e){const t=Le.indexOf(e);t>rt&&Le.splice(t,1)}function da(e){ee(e)?en.push(...e):(!yt||!yt.includes(e,e.allowRecurse?jt+1:jt))&&en.push(e),or()}function ir(e,t,n=pn?rt+1:0){for(;n<Le.length;n++){const o=Le[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Le.splice(n,1),n--,o()}}}function rr(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>hn(n)-hn(o));if(en.length=0,yt){yt.push(...t);return}for(yt=t,jt=0;jt<yt.length;jt++)yt[jt]();yt=null,jt=0}}const hn=e=>e.id==null?1/0:e.id,fa=(e,t)=>{const n=hn(e)-hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function sr(e){jo=!1,pn=!0,Le.sort(fa);const t=Fe;try{for(rt=0;rt<Le.length;rt++){const n=Le[rt];n&&n.active!==!1&&ft(n,null,14)}}finally{rt=0,Le.length=0,rr(),pn=!1,Do=null,(Le.length||en.length)&&sr()}}function pa(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||le;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:p,trim:d}=o[u]||le;d&&(i=n.map(b=>Se(b)?b.trim():b)),p&&(i=n.map(wo))}let l,a=o[l=yo(t)]||o[l=yo(je(t))];!a&&r&&(a=o[l=yo(He(t))]),a&&Ze(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,Ze(c,e,6,i)}}function lr(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(!re(e)){const a=c=>{const u=lr(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):(ee(r)?r.forEach(a=>s[a]=null):xe(s,r),ve(e)&&o.set(e,s),s)}function Un(e,t){return!e||!On(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,He(t))||fe(e,t))}let $e=null,ar=null;function Yn(e){const t=$e;return $e=e,ar=e&&e.type.__scopeId||null,t}function ie(e,t=$e,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Dr(-1);const r=Yn(t);let s;try{s=e(...i)}finally{Yn(r),o._d&&Dr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function qp(){}function Ro(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:b,ctx:S,inheritAttrs:I}=e;let B,R;const W=Yn(e);try{if(n.shapeFlag&4){const V=i||o,_=V;B=lt(u.call(_,V,p,r,b,d,S)),R=a}else{const V=t;B=lt(V.length>1?V(r,{attrs:a,slots:l,emit:c}):V(r,null)),R=t.props?a:ha(a)}}catch(V){_n.length=0,qn(V,e,1),B=Q(Je)}let E=B;if(R&&I!==!1){const V=Object.keys(R),{shapeFlag:_}=E;V.length&&_&7&&(s&&V.some(vo)&&(R=ga(R,s)),E=St(E,R))}return n.dirs&&(E=St(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),B=E,Yn(W),B}const ha=e=>{let t;for(const n in e)(n==="class"||n==="style"||On(n))&&((t||(t={}))[n]=e[n]);return t},ga=(e,t)=>{const n={};for(const o in e)(!vo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ma(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?cr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const d=u[p];if(s[d]!==o[d]&&!Un(c,d))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?cr(o,s,c):!0:!!s;return!1}function cr(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]&&!Un(n,r))return!0}return!1}function va({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 ur="components",dr=Symbol.for("v-ndc");function ba(e){return Se(e)?_a(ur,e,!1)||e:e||dr}function _a(e,t,n=!0,o=!1){const i=$e||Me;if(i){const r=i.type;if(e===ur){const l=Kr(r,!1);if(l&&(l===t||l===je(t)||l===jn(je(t))))return r}const s=fr(i[e]||r[e],t)||fr(i.appContext[e],t);return!s&&o?r:s}}function fr(e,t){return e&&(e[t]||e[je(t)]||e[jn(je(t))])}const ya=e=>e.__isSuspense;function wa(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):da(e)}const xa=Symbol.for("v-scx"),Sa=()=>Nt(xa);function ka(e,t){return No(e,null,{flush:"sync"})}const Xn={};function pe(e,t,n){return No(e,t,n)}function No(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=le){if(t&&r){const x=t;t=(...F)=>{x(...F),_()}}const a=Me,c=x=>o===!0?x:Dt(x,o===!1?1:void 0);let u,p=!1,d=!1;if(Ee(e)?(u=()=>e.value,p=Kn(e)):Qt(e)?(u=()=>c(e),p=!0):ee(e)?(d=!0,p=e.some(x=>Qt(x)||Kn(x)),u=()=>e.map(x=>{if(Ee(x))return x.value;if(Qt(x))return c(x);if(re(x))return ft(x,a,2)})):re(e)?t?u=()=>ft(e,a,2):u=()=>(b&&b(),Ze(e,a,3,[S])):u=Fe,t&&o){const x=u;u=()=>Dt(x())}let b,S=x=>{b=E.onStop=()=>{ft(x,a,4),b=E.onStop=void 0}},I;if(uo)if(S=Fe,t?n&&Ze(t,a,3,[u(),d?[]:void 0,S]):u(),i==="sync"){const x=Sa();I=x.__watcherHandles||(x.__watcherHandles=[])}else return Fe;let B=d?new Array(e.length).fill(Xn):Xn;const R=()=>{if(!(!E.active||!E.dirty))if(t){const x=E.run();(o||p||(d?x.some((F,m)=>it(F,B[m])):it(x,B)))&&(b&&b(),Ze(t,a,3,[x,B===Xn?void 0:d&&B[0]===Xn?[]:B,S]),B=x)}else E.run()};R.allowRecurse=!!t;let W;i==="sync"?W=R:i==="post"?W=()=>Be(R,a&&a.suspense):(R.pre=!0,a&&(R.id=a.uid),W=()=>Bo(R));const E=new ko(u,Fe,W),V=Pi(),_=()=>{E.stop(),V&&bo(V.effects,E)};return t?n?R():B=E.run():i==="post"?Be(E.run.bind(E),a&&a.suspense):E.run(),I&&I.push(_),_}function Ia(e,t,n){const o=this.proxy,i=Se(e)?e.includes(".")?pr(o,e):()=>o[e]:e.bind(o,o);let r;re(t)?r=t:(r=t.handler,n=t);const s=wn(this),l=No(i,r.bind(o),n);return s(),l}function pr(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 Dt(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),Ee(e))Dt(e.value,t,n,o);else if(ee(e))for(let i=0;i<e.length;i++)Dt(e[i],t,n,o);else if(xi(e)||Zt(e))e.forEach(i=>{Dt(i,t,n,o)});else if(Ii(e))for(const i in e)Dt(e[i],t,n,o);return e}function st(e,t){if($e===null)return e;const n=fo($e)||$e.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=le]=t[i];r&&(re(r)&&(r={mounted:r,updated:r}),r.deep&&Dt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(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&&(vt(),Ze(a,n,8,[e.el,l,e,t]),bt())}}const xt=Symbol("_leaveCb"),Zn=Symbol("_enterCb");function Ca(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Qe(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},Ta={name:"BaseTransition",props:hr,setup(e,{slots:t}){const n=ti(),o=Ca();let i;return()=>{const r=t.default&&vr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const I of r)if(I.type!==Je){s=I;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return Fo(s);const c=mr(s);if(!c)return Fo(s);const u=Vo(c,l,o,n);Ho(c,u);const p=n.subTree,d=p&&mr(p);let b=!1;const{getTransitionKey:S}=c.type;if(S){const I=S();i===void 0?i=I:I!==i&&(i=I,b=!0)}if(d&&d.type!==Je&&(!Ft(c,d)||b)){const I=Vo(d,l,o,n);if(Ho(d,I),a==="out-in")return o.isLeaving=!0,I.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Fo(s);a==="in-out"&&c.type!==Je&&(I.delayLeave=(B,R,W)=>{const E=gr(o,d);E[String(d.key)]=d,B[xt]=()=>{R(),B[xt]=void 0,delete u.delayedLeave},u.delayedLeave=W})}return s}}};function gr(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Vo(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:d,onAfterLeave:b,onLeaveCancelled:S,onBeforeAppear:I,onAppear:B,onAfterAppear:R,onAppearCancelled:W}=t,E=String(e.key),V=gr(n,e),_=(m,$)=>{m&&Ze(m,o,9,$)},x=(m,$)=>{const j=$[1];_(m,$),ee(m)?m.every(U=>U.length<=1)&&j():m.length<=1&&j()},F={mode:r,persisted:s,beforeEnter(m){let $=l;if(!n.isMounted)if(i)$=I||l;else return;m[xt]&&m[xt](!0);const j=V[E];j&&Ft(e,j)&&j.el[xt]&&j.el[xt](),_($,[m])},enter(m){let $=a,j=c,U=u;if(!n.isMounted)if(i)$=B||a,j=R||c,U=W||u;else return;let h=!1;const w=m[Zn]=K=>{h||(h=!0,K?_(U,[m]):_(j,[m]),F.delayedLeave&&F.delayedLeave(),m[Zn]=void 0)};$?x($,[m,w]):w()},leave(m,$){const j=String(e.key);if(m[Zn]&&m[Zn](!0),n.isUnmounting)return $();_(p,[m]);let U=!1;const h=m[xt]=w=>{U||(U=!0,$(),w?_(S,[m]):_(b,[m]),m[xt]=void 0,V[j]===e&&delete V[j])};V[j]=e,d?x(d,[m,h]):h()},clone(m){return Vo(m,t,n,o)}};return F}function Fo(e){if(Gn(e))return e=St(e),e.children=null,e}function mr(e){return Gn(e)?e.children?e.children[0]:void 0:e}function Ho(e,t){e.shapeFlag&6&&e.component?Ho(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vr(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===Ie?(s.patchFlag&128&&i++,o=o.concat(vr(s.children,t,l))):(t||s.type!==Je)&&o.push(l!=null?St(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 re(e)?(()=>xe({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,Gn=e=>e.type.__isKeepAlive;function Ea(e,t){br(e,"a",t)}function $a(e,t){br(e,"da",t)}function br(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qn(t,o,n),n){let i=n.parent;for(;i&&i.parent;)Gn(i.parent.vnode)&&Pa(o,t,n,i),i=i.parent}}function Pa(e,t,n,o){const i=Qn(t,e,o,!0);Rt(()=>{bo(o[t],i)},n)}function Qn(e,t,n=Me,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;vt();const l=wn(n),a=Ze(t,n,e,s);return l(),bt(),a});return o?i.unshift(r):i.push(r),r}}const pt=e=>(t,n=Me)=>(!uo||e==="sp")&&Qn(e,(...o)=>t(...o),n),Ma=pt("bm"),Qe=pt("m"),Oa=pt("bu"),La=pt("u"),Wo=pt("bum"),Rt=pt("um"),za=pt("sp"),Aa=pt("rtg"),ja=pt("rtc");function Da(e,t=Me){Qn("ec",e,t)}function mn(e,t,n,o){let i;const r=n&&n[o];if(ee(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 _r(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(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 _e(e,t,n={},o,i){if($e.isCE||$e.parent&&gn($e.parent)&&$e.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&&yr(r(n)),l=he(Ie,{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 yr(e){return e.some(t=>ro(t)?!(t.type===Je||t.type===Ie&&!yr(t.children)):!0)?e:null}const Ko=e=>e?Vr(e)?fo(e)||e.proxy:Ko(e.parent):null,vn=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=>Ko(e.parent),$root:e=>Ko(e.root),$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Bo(e.update)}),$nextTick:e=>e.n||(e.n=wt.bind(e.proxy)),$watch:e=>Ia.bind(e)}),qo=(e,t)=>e!==le&&!e.__isScriptSetup&&fe(e,t),Ba={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 b=s[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(qo(o,t))return s[t]=1,o[t];if(i!==le&&fe(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&fe(c,t))return s[t]=3,r[t];if(n!==le&&fe(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=vn[t];let p,d;if(u)return t==="$attrs"&&De(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==le&&fe(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,fe(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return qo(i,t)?(i[t]=n,!0):o!==le&&fe(o,t)?(o[t]=n,!0):fe(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!==le&&fe(e,s)||qo(t,s)||(l=r[0])&&fe(l,s)||fe(o,s)||fe(vn,s)||fe(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tn(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):xe({},Jn(e),Jn(t))}let Uo=!0;function Ra(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&wr(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:p,mounted:d,beforeUpdate:b,updated:S,activated:I,deactivated:B,beforeDestroy:R,beforeUnmount:W,destroyed:E,unmounted:V,render:_,renderTracked:x,renderTriggered:F,errorCaptured:m,serverPrefetch:$,expose:j,inheritAttrs:U,components:h,directives:w,filters:K}=t;if(c&&Na(c,o,null),s)for(const z in s){const L=s[z];re(L)&&(o[z]=L.bind(n))}if(i){const z=i.call(n,n);ve(z)&&(e.data=cn(z))}if(Uo=!0,r)for(const z in r){const L=r[z],ue=re(L)?L.bind(n,n):re(L.get)?L.get.bind(n,n):Fe,de=!re(L)&&re(L.set)?L.set.bind(n):Fe,ye=se({get:ue,set:de});Object.defineProperty(o,z,{enumerable:!0,configurable:!0,get:()=>ye.value,set:be=>ye.value=be})}if(l)for(const z in l)xr(l[z],o,n,z);if(a){const z=re(a)?a.call(n):a;Reflect.ownKeys(z).forEach(L=>{no(L,z[L])})}u&&wr(u,e,"c");function ae(z,L){ee(L)?L.forEach(ue=>z(ue.bind(n))):L&&z(L.bind(n))}if(ae(Ma,p),ae(Qe,d),ae(Oa,b),ae(La,S),ae(Ea,I),ae($a,B),ae(Da,m),ae(ja,x),ae(Aa,F),ae(Wo,W),ae(Rt,V),ae(za,$),ee(j))if(j.length){const z=e.exposed||(e.exposed={});j.forEach(L=>{Object.defineProperty(z,L,{get:()=>n[L],set:ue=>n[L]=ue})})}else e.exposed||(e.exposed={});_&&e.render===Fe&&(e.render=_),U!=null&&(e.inheritAttrs=U),h&&(e.components=h),w&&(e.directives=w)}function Na(e,t,n=Fe){ee(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;ve(i)?"default"in i?r=Nt(i.from||o,i.default,!0):r=Nt(i.from||o):r=Nt(i),Ee(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function wr(e,t,n){Ze(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function xr(e,t,n,o){const i=o.includes(".")?pr(n,o):()=>n[o];if(Se(e)){const r=t[e];re(r)&&pe(i,r)}else if(re(e))pe(i,e.bind(n));else if(ve(e))if(ee(e))e.forEach(r=>xr(r,t,n,o));else{const r=re(e.handler)?e.handler.bind(n):t[e.handler];re(r)&&pe(i,r,e)}}function Yo(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=>eo(a,c,s,!0)),eo(a,t,s)),ve(t)&&r.set(t,a),a}function eo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&eo(e,r,n,!0),i&&i.forEach(s=>eo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Va[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Va={data:Sr,props:kr,emits:kr,methods:bn,computed:bn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:bn,directives:bn,watch:Ha,provide:Sr,inject:Fa};function Sr(e,t){return t?e?function(){return xe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Fa(e,t){return bn(Xo(e),Xo(t))}function Xo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?xe(Object.create(null),e,t):t}function kr(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:xe(Object.create(null),Jn(e),Jn(t??{})):t}function Ha(e,t){if(!e)return t;if(!t)return e;const n=xe(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function Ir(){return{app:null,config:{isNativeTag:_l,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 Wa=0;function Ka(e,t){return function(o,i=null){re(o)||(o=xe({},o)),i!=null&&!ve(i)&&(i=null);const r=Ir(),s=new WeakSet;let l=!1;const a=r.app={_uid:Wa++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:mc,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&re(c.install)?(s.add(c),c.install(a,...u)):re(c)&&(s.add(c),c(a,...u))),a},mixin(c){return 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,p){if(!l){const d=Q(o,i);return d.appContext=r,p===!0?p="svg":p===!1&&(p=void 0),u&&t?t(d,c):e(d,c,p),l=!0,a._container=c,c.__vue_app__=a,fo(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){to=a;try{return c()}finally{to=null}}};return a}}let to=null;function no(e,t){if(Me){let n=Me.provides;const o=Me.parent&&Me.parent.provides;o===n&&(n=Me.provides=Object.create(o)),n[e]=t}}function Nt(e,t,n=!1){const o=Me||$e;if(o||to){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:to._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&re(t)?t.call(o&&o.proxy):t}}function qa(e,t,n,o=!1){const i={},r={};Bn(r,so,1),e.propsDefaults=Object.create(null),Cr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:Gl(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Ua(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ce(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let d=u[p];if(Un(e.emitsOptions,d))continue;const b=t[d];if(a)if(fe(r,d))b!==r[d]&&(r[d]=b,c=!0);else{const S=je(d);i[S]=Zo(a,l,S,b,e,!1)}else b!==r[d]&&(r[d]=b,c=!0)}}}else{Cr(e,t,i,r)&&(c=!0);let u;for(const p in l)(!t||!fe(t,p)&&((u=He(p))===p||!fe(t,u)))&&(a?n&&(n[p]!==void 0||n[u]!==void 0)&&(i[p]=Zo(a,l,p,void 0,e,!0)):delete i[p]);if(r!==l)for(const p in r)(!t||!fe(t,p))&&(delete r[p],c=!0)}c&&dt(e,"set","$attrs")}function Cr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(zn(a))continue;const c=t[a];let u;i&&fe(i,u=je(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Un(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ce(n),c=l||le;for(let u=0;u<r.length;u++){const p=r[u];n[p]=Zo(i,a,p,c[p],e,!fe(c,p))}}return s}function Zo(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=fe(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&re(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=wn(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 Tr(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(!re(e)){const u=p=>{a=!0;const[d,b]=Tr(p,t,!0);xe(s,d),b&&l.push(...b)};!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,Ye),Ye;if(ee(r))for(let u=0;u<r.length;u++){const p=je(r[u]);Er(p)&&(s[p]=le)}else if(r)for(const u in r){const p=je(u);if(Er(p)){const d=r[u],b=s[p]=ee(d)||re(d)?{type:d}:xe({},d);if(b){const S=Mr(Boolean,b.type),I=Mr(String,b.type);b[0]=S>-1,b[1]=I<0||S<I,(S>-1||fe(b,"default"))&&l.push(p)}}}const c=[s,l];return ve(e)&&o.set(e,c),c}function Er(e){return e[0]!=="$"}function $r(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Pr(e,t){return $r(e)===$r(t)}function Mr(e,t){return ee(t)?t.findIndex(n=>Pr(n,e)):re(t)&&Pr(t,e)?0:-1}const Or=e=>e[0]==="_"||e==="$stable",Go=e=>ee(e)?e.map(lt):[lt(e)],Ya=(e,t,n)=>{if(t._n)return t;const o=ie((...i)=>Go(t(...i)),n);return o._c=!1,o},Lr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Or(i))continue;const r=e[i];if(re(r))t[i]=Ya(i,r,o);else if(r!=null){const s=Go(r);t[i]=()=>s}}},zr=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Xa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),Bn(t,"_",n)):Lr(t,e.slots={})}else e.slots={},t&&zr(e,t);Bn(e.slots,so,1)},Za=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=le;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(xe(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Lr(t,i)),s=t}else t&&(zr(e,t),s={default:1});if(r)for(const l in i)!Or(l)&&s[l]==null&&delete i[l]};function Qo(e,t,n,o,i=!1){if(ee(e)){e.forEach((d,b)=>Qo(d,t&&(ee(t)?t[b]:t),n,o,i));return}if(gn(o)&&!i)return;const r=o.shapeFlag&4?fo(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===le?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(Se(c)?(u[c]=null,fe(p,c)&&(p[c]=null)):Ee(c)&&(c.value=null)),re(a))ft(a,l,12,[s,u]);else{const d=Se(a),b=Ee(a),S=e.f;if(d||b){const I=()=>{if(S){const B=d?fe(p,a)?p[a]:u[a]:a.value;i?ee(B)&&bo(B,r):ee(B)?B.includes(r)||B.push(r):d?(u[a]=[r],fe(p,a)&&(p[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,fe(p,a)&&(p[a]=s)):b&&(a.value=s,e.k&&(u[e.k]=s))};i||S?I():(I.id=-1,Be(I,n))}}}const Be=wa;function Ga(e){return Qa(e)}function Qa(e,t){const n=Ti();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:b=Fe,insertStaticContent:S}=e,I=(f,g,y,k=null,C=null,A=null,N=void 0,M=null,D=!!g.dynamicChildren)=>{if(f===g)return;f&&!Ft(f,g)&&(k=ht(f),be(f,C,A,!0),f=null),g.patchFlag===-2&&(D=!1,g.dynamicChildren=null);const{type:P,ref:H,shapeFlag:te}=g;switch(P){case oo:B(f,g,y,k);break;case Je:R(f,g,y,k);break;case io:f==null&&W(g,y,k,N);break;case Ie:h(f,g,y,k,C,A,N,M,D);break;default:te&1?_(f,g,y,k,C,A,N,M,D):te&6?w(f,g,y,k,C,A,N,M,D):(te&64||te&128)&&P.process(f,g,y,k,C,A,N,M,D,qe)}H!=null&&C&&Qo(H,f&&f.ref,A,g||f,!g)},B=(f,g,y,k)=>{if(f==null)o(g.el=l(g.children),y,k);else{const C=g.el=f.el;g.children!==f.children&&c(C,g.children)}},R=(f,g,y,k)=>{f==null?o(g.el=a(g.children||""),y,k):g.el=f.el},W=(f,g,y,k)=>{[f.el,f.anchor]=S(f.children,g,y,k,f.el,f.anchor)},E=({el:f,anchor:g},y,k)=>{let C;for(;f&&f!==g;)C=d(f),o(f,y,k),f=C;o(g,y,k)},V=({el:f,anchor:g})=>{let y;for(;f&&f!==g;)y=d(f),i(f),f=y;i(g)},_=(f,g,y,k,C,A,N,M,D)=>{g.type==="svg"?N="svg":g.type==="math"&&(N="mathml"),f==null?x(g,y,k,C,A,N,M,D):$(f,g,C,A,N,M,D)},x=(f,g,y,k,C,A,N,M)=>{let D,P;const{props:H,shapeFlag:te,transition:G,dirs:v}=f;if(D=f.el=s(f.type,A,H&&H.is,H),te&8?u(D,f.children):te&16&&m(f.children,D,null,k,C,Jo(f,A),N,M),v&&Bt(f,null,k,"created"),F(D,f,f.scopeId,N,k),H){for(const J in H)J!=="value"&&!zn(J)&&r(D,J,null,H[J],A,f.children,k,C,Ne);"value"in H&&r(D,"value",null,H.value,A),(P=H.onVnodeBeforeMount)&&at(P,k,f)}v&&Bt(f,null,k,"beforeMount");const T=Ja(C,G);T&&G.beforeEnter(D),o(D,g,y),((P=H&&H.onVnodeMounted)||T||v)&&Be(()=>{P&&at(P,k,f),T&&G.enter(D),v&&Bt(f,null,k,"mounted")},C)},F=(f,g,y,k,C)=>{if(y&&b(f,y),k)for(let A=0;A<k.length;A++)b(f,k[A]);if(C){let A=C.subTree;if(g===A){const N=C.vnode;F(f,N,N.scopeId,N.slotScopeIds,C.parent)}}},m=(f,g,y,k,C,A,N,M,D=0)=>{for(let P=D;P<f.length;P++){const H=f[P]=M?It(f[P]):lt(f[P]);I(null,H,g,y,k,C,A,N,M)}},$=(f,g,y,k,C,A,N)=>{const M=g.el=f.el;let{patchFlag:D,dynamicChildren:P,dirs:H}=g;D|=f.patchFlag&16;const te=f.props||le,G=g.props||le;let v;if(y&&Vt(y,!1),(v=G.onVnodeBeforeUpdate)&&at(v,y,g,f),H&&Bt(g,f,y,"beforeUpdate"),y&&Vt(y,!0),P?j(f.dynamicChildren,P,M,y,k,Jo(g,C),A):N||L(f,g,M,null,y,k,Jo(g,C),A,!1),D>0){if(D&16)U(M,g,te,G,y,k,C);else if(D&2&&te.class!==G.class&&r(M,"class",null,G.class,C),D&4&&r(M,"style",te.style,G.style,C),D&8){const T=g.dynamicProps;for(let J=0;J<T.length;J++){const ne=T[J],we=te[ne],ot=G[ne];(ot!==we||ne==="value")&&r(M,ne,we,ot,C,f.children,y,k,Ne)}}D&1&&f.children!==g.children&&u(M,g.children)}else!N&&P==null&&U(M,g,te,G,y,k,C);((v=G.onVnodeUpdated)||H)&&Be(()=>{v&&at(v,y,g,f),H&&Bt(g,f,y,"updated")},k)},j=(f,g,y,k,C,A,N)=>{for(let M=0;M<g.length;M++){const D=f[M],P=g[M],H=D.el&&(D.type===Ie||!Ft(D,P)||D.shapeFlag&70)?p(D.el):y;I(D,P,H,null,k,C,A,N,!0)}},U=(f,g,y,k,C,A,N)=>{if(y!==k){if(y!==le)for(const M in y)!zn(M)&&!(M in k)&&r(f,M,y[M],null,N,g.children,C,A,Ne);for(const M in k){if(zn(M))continue;const D=k[M],P=y[M];D!==P&&M!=="value"&&r(f,M,P,D,N,g.children,C,A,Ne)}"value"in k&&r(f,"value",y.value,k.value,N)}},h=(f,g,y,k,C,A,N,M,D)=>{const P=g.el=f?f.el:l(""),H=g.anchor=f?f.anchor:l("");let{patchFlag:te,dynamicChildren:G,slotScopeIds:v}=g;v&&(M=M?M.concat(v):v),f==null?(o(P,y,k),o(H,y,k),m(g.children||[],y,H,C,A,N,M,D)):te>0&&te&64&&G&&f.dynamicChildren?(j(f.dynamicChildren,G,y,C,A,N,M),(g.key!=null||C&&g===C.subTree)&&Ar(f,g,!0)):L(f,g,y,H,C,A,N,M,D)},w=(f,g,y,k,C,A,N,M,D)=>{g.slotScopeIds=M,f==null?g.shapeFlag&512?C.ctx.activate(g,y,k,N,D):K(g,y,k,C,A,N,D):oe(f,g,D)},K=(f,g,y,k,C,A,N)=>{const M=f.component=ac(f,k,C);if(Gn(f)&&(M.ctx.renderer=qe),cc(M),M.asyncDep){if(C&&C.registerDep(M,ae),!f.el){const D=M.subTree=Q(Je);R(null,D,g,y)}}else ae(M,f,g,y,C,A,N)},oe=(f,g,y)=>{const k=g.component=f.component;if(ma(f,g,y))if(k.asyncDep&&!k.asyncResolved){z(k,g,y);return}else k.next=g,ua(k.update),k.effect.dirty=!0,k.update();else g.el=f.el,k.vnode=g},ae=(f,g,y,k,C,A,N)=>{const M=()=>{if(f.isMounted){let{next:H,bu:te,u:G,parent:v,vnode:T}=f;{const an=jr(f);if(an){H&&(H.el=T.el,z(f,H,N)),an.asyncDep.then(()=>{f.isUnmounted||M()});return}}let J=H,ne;Vt(f,!1),H?(H.el=T.el,z(f,H,N)):H=T,te&&Dn(te),(ne=H.props&&H.props.onVnodeBeforeUpdate)&&at(ne,v,H,T),Vt(f,!0);const we=Ro(f),ot=f.subTree;f.subTree=we,I(ot,we,p(ot.el),ht(ot),f,C,A),H.el=we.el,J===null&&va(f,we.el),G&&Be(G,C),(ne=H.props&&H.props.onVnodeUpdated)&&Be(()=>at(ne,v,H,T),C)}else{let H;const{el:te,props:G}=g,{bm:v,m:T,parent:J}=f,ne=gn(g);if(Vt(f,!1),v&&Dn(v),!ne&&(H=G&&G.onVnodeBeforeMount)&&at(H,J,g),Vt(f,!0),te&&Pn){const we=()=>{f.subTree=Ro(f),Pn(te,f.subTree,f,C,null)};ne?g.type.__asyncLoader().then(()=>!f.isUnmounted&&we()):we()}else{const we=f.subTree=Ro(f);I(null,we,y,k,f,C,A),g.el=we.el}if(T&&Be(T,C),!ne&&(H=G&&G.onVnodeMounted)){const we=g;Be(()=>at(H,J,we),C)}(g.shapeFlag&256||J&&gn(J.vnode)&&J.vnode.shapeFlag&256)&&f.a&&Be(f.a,C),f.isMounted=!0,g=y=k=null}},D=f.effect=new ko(M,Fe,()=>Bo(P),f.scope),P=f.update=()=>{D.dirty&&D.run()};P.id=f.uid,Vt(f,!0),P()},z=(f,g,y)=>{g.component=f;const k=f.vnode.props;f.vnode=g,f.next=null,Ua(f,g.props,k,y),Za(f,g.children,y),vt(),ir(f),bt()},L=(f,g,y,k,C,A,N,M,D=!1)=>{const P=f&&f.children,H=f?f.shapeFlag:0,te=g.children,{patchFlag:G,shapeFlag:v}=g;if(G>0){if(G&128){de(P,te,y,k,C,A,N,M,D);return}else if(G&256){ue(P,te,y,k,C,A,N,M,D);return}}v&8?(H&16&&Ne(P,C,A),te!==P&&u(y,te)):H&16?v&16?de(P,te,y,k,C,A,N,M,D):Ne(P,C,A,!0):(H&8&&u(y,""),v&16&&m(te,y,k,C,A,N,M,D))},ue=(f,g,y,k,C,A,N,M,D)=>{f=f||Ye,g=g||Ye;const P=f.length,H=g.length,te=Math.min(P,H);let G;for(G=0;G<te;G++){const v=g[G]=D?It(g[G]):lt(g[G]);I(f[G],v,y,null,C,A,N,M,D)}P>H?Ne(f,C,A,!0,!1,te):m(g,y,k,C,A,N,M,D,te)},de=(f,g,y,k,C,A,N,M,D)=>{let P=0;const H=g.length;let te=f.length-1,G=H-1;for(;P<=te&&P<=G;){const v=f[P],T=g[P]=D?It(g[P]):lt(g[P]);if(Ft(v,T))I(v,T,y,null,C,A,N,M,D);else break;P++}for(;P<=te&&P<=G;){const v=f[te],T=g[G]=D?It(g[G]):lt(g[G]);if(Ft(v,T))I(v,T,y,null,C,A,N,M,D);else break;te--,G--}if(P>te){if(P<=G){const v=G+1,T=v<H?g[v].el:k;for(;P<=G;)I(null,g[P]=D?It(g[P]):lt(g[P]),y,T,C,A,N,M,D),P++}}else if(P>G)for(;P<=te;)be(f[P],C,A,!0),P++;else{const v=P,T=P,J=new Map;for(P=T;P<=G;P++){const Ue=g[P]=D?It(g[P]):lt(g[P]);Ue.key!=null&&J.set(Ue.key,P)}let ne,we=0;const ot=G-T+1;let an=!1,ml=0;const Mn=new Array(ot);for(P=0;P<ot;P++)Mn[P]=0;for(P=v;P<=te;P++){const Ue=f[P];if(we>=ot){be(Ue,C,A,!0);continue}let ut;if(Ue.key!=null)ut=J.get(Ue.key);else for(ne=T;ne<=G;ne++)if(Mn[ne-T]===0&&Ft(Ue,g[ne])){ut=ne;break}ut===void 0?be(Ue,C,A,!0):(Mn[ut-T]=P+1,ut>=ml?ml=ut:an=!0,I(Ue,g[ut],y,null,C,A,N,M,D),we++)}const vl=an?ec(Mn):Ye;for(ne=vl.length-1,P=ot-1;P>=0;P--){const Ue=T+P,ut=g[Ue],bl=Ue+1<H?g[Ue+1].el:k;Mn[P]===0?I(null,ut,y,bl,C,A,N,M,D):an&&(ne<0||P!==vl[ne]?ye(ut,y,bl,2):ne--)}}},ye=(f,g,y,k,C=null)=>{const{el:A,type:N,transition:M,children:D,shapeFlag:P}=f;if(P&6){ye(f.component.subTree,g,y,k);return}if(P&128){f.suspense.move(g,y,k);return}if(P&64){N.move(f,g,y,qe);return}if(N===Ie){o(A,g,y);for(let te=0;te<D.length;te++)ye(D[te],g,y,k);o(f.anchor,g,y);return}if(N===io){E(f,g,y);return}if(k!==2&&P&1&&M)if(k===0)M.beforeEnter(A),o(A,g,y),Be(()=>M.enter(A),C);else{const{leave:te,delayLeave:G,afterLeave:v}=M,T=()=>o(A,g,y),J=()=>{te(A,()=>{T(),v&&v()})};G?G(A,T,J):J()}else o(A,g,y)},be=(f,g,y,k=!1,C=!1)=>{const{type:A,props:N,ref:M,children:D,dynamicChildren:P,shapeFlag:H,patchFlag:te,dirs:G}=f;if(M!=null&&Qo(M,null,y,f,!0),H&256){g.ctx.deactivate(f);return}const v=H&1&&G,T=!gn(f);let J;if(T&&(J=N&&N.onVnodeBeforeUnmount)&&at(J,g,f),H&6)Ot(f.component,y,k);else{if(H&128){f.suspense.unmount(y,k);return}v&&Bt(f,null,g,"beforeUnmount"),H&64?f.type.remove(f,g,y,C,qe,k):P&&(A!==Ie||te>0&&te&64)?Ne(P,g,y,!1,!0):(A===Ie&&te&384||!C&&H&16)&&Ne(D,g,y),k&&Re(f)}(T&&(J=N&&N.onVnodeUnmounted)||v)&&Be(()=>{J&&at(J,g,f),v&&Bt(f,null,g,"unmounted")},y)},Re=f=>{const{type:g,el:y,anchor:k,transition:C}=f;if(g===Ie){Xt(y,k);return}if(g===io){V(f);return}const A=()=>{i(y),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(f.shapeFlag&1&&C&&!C.persisted){const{leave:N,delayLeave:M}=C,D=()=>N(y,A);M?M(f.el,A,D):D()}else A()},Xt=(f,g)=>{let y;for(;f!==g;)y=d(f),i(f),f=y;i(g)},Ot=(f,g,y)=>{const{bum:k,scope:C,update:A,subTree:N,um:M}=f;k&&Dn(k),C.stop(),A&&(A.active=!1,be(N,f,g,y)),M&&Be(M,g),Be(()=>{f.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Ne=(f,g,y,k=!1,C=!1,A=0)=>{for(let N=A;N<f.length;N++)be(f[N],g,y,k,C)},ht=f=>f.shapeFlag&6?ht(f.component.subTree):f.shapeFlag&128?f.suspense.next():d(f.anchor||f.el);let gt=!1;const Pe=(f,g,y)=>{f==null?g._vnode&&be(g._vnode,null,null,!0):I(g._vnode||null,f,g,null,null,null,y),gt||(gt=!0,ir(),rr(),gt=!1),g._vnode=f},qe={p:I,um:be,m:ye,r:Re,mt:K,mc:m,pc:L,pbc:j,n:ht,o:e};let Lt,Pn;return t&&([Lt,Pn]=t(qe)),{render:Pe,hydrate:Lt,createApp:Ka(Pe,Lt)}}function Jo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ja(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ar(e,t,n=!1){const o=e.children,i=t.children;if(ee(o)&&ee(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||Ar(s,l)),l.type===oo&&(l.el=s.el)}}function ec(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 jr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jr(t)}const tc=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),io=Symbol.for("v-stc"),_n=[];let nt=null;function O(e=!1){_n.push(nt=e?null:[])}function nc(){_n.pop(),nt=_n[_n.length-1]||null}let yn=1;function Dr(e){yn+=e}function Br(e){return e.dynamicChildren=yn>0?nt||Ye:null,nc(),yn>0&&nt&&nt.push(e),e}function q(e,t,n,o,i,r){return Br(Z(e,t,n,o,i,r,!0))}function he(e,t,n,o,i){return Br(Q(e,t,n,o,i,!0))}function ro(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const so="__vInternal",Rr=({key:e})=>e??null,lo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||Ee(e)||re(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function Z(e,t=null,n=null,o=0,i=null,r=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rr(t),ref:t&&lo(t),scopeId:ar,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:$e};return l?(ei(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Se(n)?8:16),yn>0&&!s&&nt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&nt.push(a),a}const Q=oc;function oc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===dr)&&(e=Je),ro(e)){const l=St(e,t,!0);return n&&ei(l,n),yn>0&&!r&&nt&&(l.shapeFlag&6?nt[nt.indexOf(e)]=l:nt.push(l)),l.patchFlag|=-2,l}if(gc(e)&&(e=e.__vccOpts),t){t=ic(t);let{class:l,style:a}=t;l&&!Se(l)&&(t.class=Te(l)),ve(a)&&(Gi(a)&&!ee(a)&&(a=xe({},a)),t.style=Oe(a))}const s=Se(e)?1:ya(e)?128:tc(e)?64:ve(e)?4:re(e)?2:0;return Z(e,t,n,o,i,s,r,!0)}function ic(e){return e?Gi(e)||so in e?xe({},e):e:null}function St(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?ao(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Rr(l),ref:t&&t.ref?n&&i?ee(i)?i.concat(lo(t)):[i,lo(t)]:lo(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!==Ie?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&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function kt(e=" ",t=0){return Q(oo,null,e,t)}function rc(e,t){const n=Q(io,null,e);return n.staticCount=t,n}function Ce(e="",t=!1){return t?(O(),he(Je,null,e)):Q(Je,null,e)}function lt(e){return e==null||typeof e=="boolean"?Q(Je):ee(e)?Q(Ie,null,e.slice()):typeof e=="object"?It(e):Q(oo,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function ei(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),ei(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(so in t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ao(...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=Te([t.class,o.class]));else if(i==="style")t.style=Oe([t.style,o.style]);else if(On(i)){const r=t[i],s=o[i];s&&r!==s&&!(ee(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){Ze(e,t,7,[n,o])}const sc=Ir();let lc=0;function ac(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||sc,r={uid:lc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new $l(!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:Tr(o,i),emitsOptions:lr(o,i),emit:null,emitted:null,propsDefaults:le,inheritAttrs:o.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=pa.bind(null,r),e.ce&&e.ce(r),r}let Me=null;const ti=()=>Me||$e;let co,ni;{const e=Ti(),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)}};co=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),ni=t("__VUE_SSR_SETTERS__",n=>uo=n)}const wn=e=>{const t=Me;return co(e),e.scope.on(),()=>{e.scope.off(),co(t)}},Nr=()=>{Me&&Me.scope.off(),co(null)};function Vr(e){return e.vnode.shapeFlag&4}let uo=!1;function cc(e,t=!1){t&&ni(t);const{props:n,children:o}=e.vnode,i=Vr(e);qa(e,n,i,t),Xa(e,o);const r=i?uc(e,t):void 0;return t&&ni(!1),r}function uc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qi(new Proxy(e.ctx,Ba));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?fc(e):null,r=wn(e);vt();const s=ft(o,e,0,[e.props,i]);if(bt(),r(),Si(s)){if(s.then(Nr,Nr),t)return s.then(l=>{Fr(e,l,t)}).catch(l=>{qn(l,e,0)});e.asyncDep=s}else Fr(e,s,t)}else Wr(e,t)}function Fr(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=er(t)),Wr(e,n)}let Hr;function Wr(e,t,n){const o=e.type;if(!e.render){if(!t&&Hr&&!o.render){const i=o.template||Yo(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=Hr(i,c)}}e.render=o.render||Fe}{const i=wn(e);vt();try{Ra(e)}finally{bt(),i()}}}function dc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return De(e,"get","$attrs"),t[n]}}))}function fc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return dc(e)},slots:e.slots,emit:e.emit,expose:t}}function fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(er(Qi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}const pc=/(?:^|[-_])(\w)/g,hc=e=>e.replace(pc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Kr(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function qr(e,t,n=!1){let o=Kr(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?hc(o):n?"App":"Anonymous"}function gc(e){return re(e)&&"__vccOpts"in e}const se=(e,t)=>Ql(e,t,uo);function xn(e,t,n=le){const o=ti(),i=je(t),r=He(t),s=oa((a,c)=>{let u;return ka(()=>{const p=e[t];it(u,p)&&(u=p,c())}),{get(){return a(),n.get?n.get(u):u},set(p){const d=o.vnode.props;!(d&&(t in d||i in d||r in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${r}`in d))&&it(p,u)&&(u=p,c()),o.emit(`update:${t}`,n.set?n.set(p):p)}}}),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 Ur(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ee(t)?ro(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ro(n)&&(n=[n]),Q(e,t,n))}const mc="3.4.15";/**
15
+ `,...sa(i)),console.warn(...r)}bt()}function ra(){let e=fn[fn.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 sa(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
16
+ `],...la(n))}),t}function la({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,...aa(e.props),r]:[i+r]}function aa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...tr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function tr(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}`]:Ee(t)?(t=tr(e,ce(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):re(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ce(t),n?t:[`${e}=`,t])}function ft(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){qn(r,t,n)}return i}function Ge(e,t,n,o){if(re(e)){const r=ft(e,t,n,o);return r&&Si(r)&&r.catch(s=>{qn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Ge(e[r],t,n,o));return i}function qn(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){ft(a,null,10,[e,s,l]);return}}ca(e,n,i,o)}function ca(e,t,n,o=!0){console.error(e)}let pn=!1,jo=!1;const ze=[];let rt=0;const en=[];let _t=null,jt=0;const nr=Promise.resolve();let Do=null;function wt(e){const t=Do||nr;return e?t.then(this?e.bind(this):e):t}function ua(e){let t=rt+1,n=ze.length;for(;t<n;){const o=t+n>>>1,i=ze[o],r=hn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Bo(e){(!ze.length||!ze.includes(e,pn&&e.allowRecurse?rt+1:rt))&&(e.id==null?ze.push(e):ze.splice(ua(e.id),0,e),or())}function or(){!pn&&!jo&&(jo=!0,Do=nr.then(sr))}function da(e){const t=ze.indexOf(e);t>rt&&ze.splice(t,1)}function fa(e){ee(e)?en.push(...e):(!_t||!_t.includes(e,e.allowRecurse?jt+1:jt))&&en.push(e),or()}function ir(e,t,n=pn?rt+1:0){for(;n<ze.length;n++){const o=ze[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;ze.splice(n,1),n--,o()}}}function rr(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>hn(n)-hn(o));if(en.length=0,_t){_t.push(...t);return}for(_t=t,jt=0;jt<_t.length;jt++)_t[jt]();_t=null,jt=0}}const hn=e=>e.id==null?1/0:e.id,pa=(e,t)=>{const n=hn(e)-hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function sr(e){jo=!1,pn=!0,ze.sort(pa);const t=Fe;try{for(rt=0;rt<ze.length;rt++){const n=ze[rt];n&&n.active!==!1&&ft(n,null,14)}}finally{rt=0,ze.length=0,rr(),pn=!1,Do=null,(ze.length||en.length)&&sr()}}function ha(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ae;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:d}=o[u]||ae;d&&(i=n.map(b=>Se(b)?b.trim():b)),f&&(i=n.map(wo))}let l,a=o[l=_o(t)]||o[l=_o(De(t))];!a&&r&&(a=o[l=_o(He(t))]),a&&Ge(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,Ge(c,e,6,i)}}function lr(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(!re(e)){const a=c=>{const u=lr(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):(ee(r)?r.forEach(a=>s[a]=null):xe(s,r),ve(e)&&o.set(e,s),s)}function Un(e,t){return!e||!On(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,He(t))||de(e,t))}let $e=null,ar=null;function Yn(e){const t=$e;return $e=e,ar=e&&e.type.__scopeId||null,t}function ie(e,t=$e,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Dr(-1);const r=Yn(t);let s;try{s=e(...i)}finally{Yn(r),o._d&&Dr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function qp(){}function Ro(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:d,setupState:b,ctx:k,inheritAttrs:S}=e;let B,V;const K=Yn(e);try{if(n.shapeFlag&4){const R=i||o,y=R;B=lt(u.call(y,R,f,r,b,d,k)),V=a}else{const R=t;B=lt(R.length>1?R(r,{attrs:a,slots:l,emit:c}):R(r,null)),V=t.props?a:ga(a)}}catch(R){yn.length=0,qn(R,e,1),B=G(et)}let $=B;if(V&&S!==!1){const R=Object.keys(V),{shapeFlag:y}=$;R.length&&y&7&&(s&&R.some(vo)&&(V=ma(V,s)),$=St($,V))}return n.dirs&&($=St($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),B=$,Yn(K),B}const ga=e=>{let t;for(const n in e)(n==="class"||n==="style"||On(n))&&((t||(t={}))[n]=e[n]);return t},ma=(e,t)=>{const n={};for(const o in e)(!vo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function va(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?cr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(s[d]!==o[d]&&!Un(c,d))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?cr(o,s,c):!0:!!s;return!1}function cr(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]&&!Un(n,r))return!0}return!1}function ba({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 ur="components",dr=Symbol.for("v-ndc");function ya(e){return Se(e)?_a(ur,e,!1)||e:e||dr}function _a(e,t,n=!0,o=!1){const i=$e||Me;if(i){const r=i.type;if(e===ur){const l=Kr(r,!1);if(l&&(l===t||l===De(t)||l===jn(De(t))))return r}const s=fr(i[e]||r[e],t)||fr(i.appContext[e],t);return!s&&o?r:s}}function fr(e,t){return e&&(e[t]||e[De(t)]||e[jn(De(t))])}const wa=e=>e.__isSuspense;function xa(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):fa(e)}const Sa=Symbol.for("v-scx"),ka=()=>Nt(Sa);function Ia(e,t){return No(e,null,{flush:"sync"})}const Xn={};function pe(e,t,n){return No(e,t,n)}function No(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=ae){if(t&&r){const x=t;t=(...H)=>{x(...H),y()}}const a=Me,c=x=>o===!0?x:Dt(x,o===!1?1:void 0);let u,f=!1,d=!1;if(Ee(e)?(u=()=>e.value,f=Kn(e)):Qt(e)?(u=()=>c(e),f=!0):ee(e)?(d=!0,f=e.some(x=>Qt(x)||Kn(x)),u=()=>e.map(x=>{if(Ee(x))return x.value;if(Qt(x))return c(x);if(re(x))return ft(x,a,2)})):re(e)?t?u=()=>ft(e,a,2):u=()=>(b&&b(),Ge(e,a,3,[k])):u=Fe,t&&o){const x=u;u=()=>Dt(x())}let b,k=x=>{b=$.onStop=()=>{ft(x,a,4),b=$.onStop=void 0}},S;if(uo)if(k=Fe,t?n&&Ge(t,a,3,[u(),d?[]:void 0,k]):u(),i==="sync"){const x=ka();S=x.__watcherHandles||(x.__watcherHandles=[])}else return Fe;let B=d?new Array(e.length).fill(Xn):Xn;const V=()=>{if(!(!$.active||!$.dirty))if(t){const x=$.run();(o||f||(d?x.some((H,g)=>it(H,B[g])):it(x,B)))&&(b&&b(),Ge(t,a,3,[x,B===Xn?void 0:d&&B[0]===Xn?[]:B,k]),B=x)}else $.run()};V.allowRecurse=!!t;let K;i==="sync"?K=V:i==="post"?K=()=>Re(V,a&&a.suspense):(V.pre=!0,a&&(V.id=a.uid),K=()=>Bo(V));const $=new ko(u,Fe,K),R=Pi(),y=()=>{$.stop(),R&&bo(R.effects,$)};return t?n?V():B=$.run():i==="post"?Re($.run.bind($),a&&a.suspense):$.run(),S&&S.push(y),y}function Ca(e,t,n){const o=this.proxy,i=Se(e)?e.includes(".")?pr(o,e):()=>o[e]:e.bind(o,o);let r;re(t)?r=t:(r=t.handler,n=t);const s=wn(this),l=No(i,r.bind(o),n);return s(),l}function pr(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 Dt(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),Ee(e))Dt(e.value,t,n,o);else if(ee(e))for(let i=0;i<e.length;i++)Dt(e[i],t,n,o);else if(xi(e)||Zt(e))e.forEach(i=>{Dt(i,t,n,o)});else if(Ii(e))for(const i in e)Dt(e[i],t,n,o);return e}function st(e,t){if($e===null)return e;const n=fo($e)||$e.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=ae]=t[i];r&&(re(r)&&(r={mounted:r,updated:r}),r.deep&&Dt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(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&&(vt(),Ge(a,n,8,[e.el,l,e,t]),bt())}}const xt=Symbol("_leaveCb"),Zn=Symbol("_enterCb");function Ta(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Je(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const Qe=[Function,Array],hr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},Ea={name:"BaseTransition",props:hr,setup(e,{slots:t}){const n=ti(),o=Ta();let i;return()=>{const r=t.default&&vr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const S of r)if(S.type!==et){s=S;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return Fo(s);const c=mr(s);if(!c)return Fo(s);const u=Vo(c,l,o,n);Ho(c,u);const f=n.subTree,d=f&&mr(f);let b=!1;const{getTransitionKey:k}=c.type;if(k){const S=k();i===void 0?i=S:S!==i&&(i=S,b=!0)}if(d&&d.type!==et&&(!Ft(c,d)||b)){const S=Vo(d,l,o,n);if(Ho(d,S),a==="out-in")return o.isLeaving=!0,S.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Fo(s);a==="in-out"&&c.type!==et&&(S.delayLeave=(B,V,K)=>{const $=gr(o,d);$[String(d.key)]=d,B[xt]=()=>{V(),B[xt]=void 0,delete u.delayedLeave},u.delayedLeave=K})}return s}}};function gr(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Vo(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:b,onLeaveCancelled:k,onBeforeAppear:S,onAppear:B,onAfterAppear:V,onAppearCancelled:K}=t,$=String(e.key),R=gr(n,e),y=(g,E)=>{g&&Ge(g,o,9,E)},x=(g,E)=>{const j=E[1];y(g,E),ee(g)?g.every(Q=>Q.length<=1)&&j():g.length<=1&&j()},H={mode:r,persisted:s,beforeEnter(g){let E=l;if(!n.isMounted)if(i)E=S||l;else return;g[xt]&&g[xt](!0);const j=R[$];j&&Ft(e,j)&&j.el[xt]&&j.el[xt](),y(E,[g])},enter(g){let E=a,j=c,Q=u;if(!n.isMounted)if(i)E=B||a,j=V||c,Q=K||u;else return;let w=!1;const m=g[Zn]=N=>{w||(w=!0,N?y(Q,[g]):y(j,[g]),H.delayedLeave&&H.delayedLeave(),g[Zn]=void 0)};E?x(E,[g,m]):m()},leave(g,E){const j=String(e.key);if(g[Zn]&&g[Zn](!0),n.isUnmounting)return E();y(f,[g]);let Q=!1;const w=g[xt]=m=>{Q||(Q=!0,E(),m?y(k,[g]):y(b,[g]),g[xt]=void 0,R[j]===e&&delete R[j])};R[j]=e,d?x(d,[g,w]):w()},clone(g){return Vo(g,t,n,o)}};return H}function Fo(e){if(Gn(e))return e=St(e),e.children=null,e}function mr(e){return Gn(e)?e.children?e.children[0]:void 0:e}function Ho(e,t){e.shapeFlag&6&&e.component?Ho(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vr(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===Ie?(s.patchFlag&128&&i++,o=o.concat(vr(s.children,t,l))):(t||s.type!==et)&&o.push(l!=null?St(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 re(e)?(()=>xe({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,Gn=e=>e.type.__isKeepAlive;function $a(e,t){br(e,"a",t)}function Pa(e,t){br(e,"da",t)}function br(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qn(t,o,n),n){let i=n.parent;for(;i&&i.parent;)Gn(i.parent.vnode)&&Ma(o,t,n,i),i=i.parent}}function Ma(e,t,n,o){const i=Qn(t,e,o,!0);Rt(()=>{bo(o[t],i)},n)}function Qn(e,t,n=Me,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;vt();const l=wn(n),a=Ge(t,n,e,s);return l(),bt(),a});return o?i.unshift(r):i.push(r),r}}const pt=e=>(t,n=Me)=>(!uo||e==="sp")&&Qn(e,(...o)=>t(...o),n),Oa=pt("bm"),Je=pt("m"),La=pt("bu"),za=pt("u"),Wo=pt("bum"),Rt=pt("um"),Aa=pt("sp"),ja=pt("rtg"),Da=pt("rtc");function Ba(e,t=Me){Qn("ec",e,t)}function mn(e,t,n,o){let i;const r=n&&n[o];if(ee(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 yr(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(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 _e(e,t,n={},o,i){if($e.isCE||$e.parent&&gn($e.parent)&&$e.parent.isCE)return t!=="default"&&(n.name=t),G("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),O();const s=r&&_r(r(n)),l=he(Ie,{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 _r(e){return e.some(t=>ro(t)?!(t.type===et||t.type===Ie&&!_r(t.children)):!0)?e:null}const Ko=e=>e?Vr(e)?fo(e)||e.proxy:Ko(e.parent):null,vn=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=>Ko(e.parent),$root:e=>Ko(e.root),$emit:e=>e.emit,$options:e=>Yo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Bo(e.update)}),$nextTick:e=>e.n||(e.n=wt.bind(e.proxy)),$watch:e=>Ca.bind(e)}),qo=(e,t)=>e!==ae&&!e.__isScriptSetup&&de(e,t),Ra={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 b=s[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(qo(o,t))return s[t]=1,o[t];if(i!==ae&&de(i,t))return s[t]=2,i[t];if((c=e.propsOptions[0])&&de(c,t))return s[t]=3,r[t];if(n!==ae&&de(n,t))return s[t]=4,n[t];Uo&&(s[t]=0)}}const u=vn[t];let f,d;if(u)return t==="$attrs"&&Be(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ae&&de(n,t))return s[t]=4,n[t];if(d=a.config.globalProperties,de(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return qo(i,t)?(i[t]=n,!0):o!==ae&&de(o,t)?(o[t]=n,!0):de(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!==ae&&de(e,s)||qo(t,s)||(l=r[0])&&de(l,s)||de(o,s)||de(vn,s)||de(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Jn(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function tn(e,t){return!e||!t?e||t:ee(e)&&ee(t)?e.concat(t):xe({},Jn(e),Jn(t))}let Uo=!0;function Na(e){const t=Yo(e),n=e.proxy,o=e.ctx;Uo=!1,t.beforeCreate&&wr(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:b,updated:k,activated:S,deactivated:B,beforeDestroy:V,beforeUnmount:K,destroyed:$,unmounted:R,render:y,renderTracked:x,renderTriggered:H,errorCaptured:g,serverPrefetch:E,expose:j,inheritAttrs:Q,components:w,directives:m,filters:N}=t;if(c&&Va(c,o,null),s)for(const L in s){const z=s[L];re(z)&&(o[L]=z.bind(n))}if(i){const L=i.call(n,n);ve(L)&&(e.data=cn(L))}if(Uo=!0,r)for(const L in r){const z=r[L],fe=re(z)?z.bind(n,n):re(z.get)?z.get.bind(n,n):Fe,ue=!re(z)&&re(z.set)?z.set.bind(n):Fe,ye=se({get:fe,set:ue});Object.defineProperty(o,L,{enumerable:!0,configurable:!0,get:()=>ye.value,set:be=>ye.value=be})}if(l)for(const L in l)xr(l[L],o,n,L);if(a){const L=re(a)?a.call(n):a;Reflect.ownKeys(L).forEach(z=>{no(z,L[z])})}u&&wr(u,e,"c");function le(L,z){ee(z)?z.forEach(fe=>L(fe.bind(n))):z&&L(z.bind(n))}if(le(Oa,f),le(Je,d),le(La,b),le(za,k),le($a,S),le(Pa,B),le(Ba,g),le(Da,x),le(ja,H),le(Wo,K),le(Rt,R),le(Aa,E),ee(j))if(j.length){const L=e.exposed||(e.exposed={});j.forEach(z=>{Object.defineProperty(L,z,{get:()=>n[z],set:fe=>n[z]=fe})})}else e.exposed||(e.exposed={});y&&e.render===Fe&&(e.render=y),Q!=null&&(e.inheritAttrs=Q),w&&(e.components=w),m&&(e.directives=m)}function Va(e,t,n=Fe){ee(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;ve(i)?"default"in i?r=Nt(i.from||o,i.default,!0):r=Nt(i.from||o):r=Nt(i),Ee(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function wr(e,t,n){Ge(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function xr(e,t,n,o){const i=o.includes(".")?pr(n,o):()=>n[o];if(Se(e)){const r=t[e];re(r)&&pe(i,r)}else if(re(e))pe(i,e.bind(n));else if(ve(e))if(ee(e))e.forEach(r=>xr(r,t,n,o));else{const r=re(e.handler)?e.handler.bind(n):t[e.handler];re(r)&&pe(i,r,e)}}function Yo(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=>eo(a,c,s,!0)),eo(a,t,s)),ve(t)&&r.set(t,a),a}function eo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&eo(e,r,n,!0),i&&i.forEach(s=>eo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Fa[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Fa={data:Sr,props:kr,emits:kr,methods:bn,computed:bn,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:bn,directives:bn,watch:Wa,provide:Sr,inject:Ha};function Sr(e,t){return t?e?function(){return xe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Ha(e,t){return bn(Xo(e),Xo(t))}function Xo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ae(e,t){return e?[...new Set([].concat(e,t))]:t}function bn(e,t){return e?xe(Object.create(null),e,t):t}function kr(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:xe(Object.create(null),Jn(e),Jn(t??{})):t}function Wa(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 Ir(){return{app:null,config:{isNativeTag:_l,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ka=0;function qa(e,t){return function(o,i=null){re(o)||(o=xe({},o)),i!=null&&!ve(i)&&(i=null);const r=Ir(),s=new WeakSet;let l=!1;const a=r.app={_uid:Ka++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:vc,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&re(c.install)?(s.add(c),c.install(a,...u)):re(c)&&(s.add(c),c(a,...u))),a},mixin(c){return 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 d=G(o,i);return d.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(d,c):e(d,c,f),l=!0,a._container=c,c.__vue_app__=a,fo(d.component)||d.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){to=a;try{return c()}finally{to=null}}};return a}}let to=null;function no(e,t){if(Me){let n=Me.provides;const o=Me.parent&&Me.parent.provides;o===n&&(n=Me.provides=Object.create(o)),n[e]=t}}function Nt(e,t,n=!1){const o=Me||$e;if(o||to){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:to._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&re(t)?t.call(o&&o.proxy):t}}function Ua(e,t,n,o=!1){const i={},r={};Bn(r,so,1),e.propsDefaults=Object.create(null),Cr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:Ql(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Ya(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ce(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 d=u[f];if(Un(e.emitsOptions,d))continue;const b=t[d];if(a)if(de(r,d))b!==r[d]&&(r[d]=b,c=!0);else{const k=De(d);i[k]=Zo(a,l,k,b,e,!1)}else b!==r[d]&&(r[d]=b,c=!0)}}}else{Cr(e,t,i,r)&&(c=!0);let u;for(const f in l)(!t||!de(t,f)&&((u=He(f))===f||!de(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=Zo(a,l,f,void 0,e,!0)):delete i[f]);if(r!==l)for(const f in r)(!t||!de(t,f))&&(delete r[f],c=!0)}c&&dt(e,"set","$attrs")}function Cr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(zn(a))continue;const c=t[a];let u;i&&de(i,u=De(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Un(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ce(n),c=l||ae;for(let u=0;u<r.length;u++){const f=r[u];n[f]=Zo(i,a,f,c[f],e,!de(c,f))}}return s}function Zo(e,t,n,o,i,r){const s=e[n];if(s!=null){const l=de(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&re(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=wn(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 Tr(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(!re(e)){const u=f=>{a=!0;const[d,b]=Tr(f,t,!0);xe(s,d),b&&l.push(...b)};!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,Xe),Xe;if(ee(r))for(let u=0;u<r.length;u++){const f=De(r[u]);Er(f)&&(s[f]=ae)}else if(r)for(const u in r){const f=De(u);if(Er(f)){const d=r[u],b=s[f]=ee(d)||re(d)?{type:d}:xe({},d);if(b){const k=Mr(Boolean,b.type),S=Mr(String,b.type);b[0]=k>-1,b[1]=S<0||k<S,(k>-1||de(b,"default"))&&l.push(f)}}}const c=[s,l];return ve(e)&&o.set(e,c),c}function Er(e){return e[0]!=="$"}function $r(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Pr(e,t){return $r(e)===$r(t)}function Mr(e,t){return ee(t)?t.findIndex(n=>Pr(n,e)):re(t)&&Pr(t,e)?0:-1}const Or=e=>e[0]==="_"||e==="$stable",Go=e=>ee(e)?e.map(lt):[lt(e)],Xa=(e,t,n)=>{if(t._n)return t;const o=ie((...i)=>Go(t(...i)),n);return o._c=!1,o},Lr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Or(i))continue;const r=e[i];if(re(r))t[i]=Xa(i,r,o);else if(r!=null){const s=Go(r);t[i]=()=>s}}},zr=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Za=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),Bn(t,"_",n)):Lr(t,e.slots={})}else e.slots={},t&&zr(e,t);Bn(e.slots,so,1)},Ga=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=ae;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(xe(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Lr(t,i)),s=t}else t&&(zr(e,t),s={default:1});if(r)for(const l in i)!Or(l)&&s[l]==null&&delete i[l]};function Qo(e,t,n,o,i=!1){if(ee(e)){e.forEach((d,b)=>Qo(d,t&&(ee(t)?t[b]:t),n,o,i));return}if(gn(o)&&!i)return;const r=o.shapeFlag&4?fo(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ae?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Se(c)?(u[c]=null,de(f,c)&&(f[c]=null)):Ee(c)&&(c.value=null)),re(a))ft(a,l,12,[s,u]);else{const d=Se(a),b=Ee(a),k=e.f;if(d||b){const S=()=>{if(k){const B=d?de(f,a)?f[a]:u[a]:a.value;i?ee(B)&&bo(B,r):ee(B)?B.includes(r)||B.push(r):d?(u[a]=[r],de(f,a)&&(f[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else d?(u[a]=s,de(f,a)&&(f[a]=s)):b&&(a.value=s,e.k&&(u[e.k]=s))};i||k?S():(S.id=-1,Re(S,n))}}}const Re=xa;function Qa(e){return Ja(e)}function Ja(e,t){const n=Ti();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:b=Fe,insertStaticContent:k}=e,S=(p,h,_,I=null,C=null,A=null,F=void 0,M=null,D=!!h.dynamicChildren)=>{if(p===h)return;p&&!Ft(p,h)&&(I=ht(p),be(p,C,A,!0),p=null),h.patchFlag===-2&&(D=!1,h.dynamicChildren=null);const{type:P,ref:W,shapeFlag:ne}=h;switch(P){case oo:B(p,h,_,I);break;case et:V(p,h,_,I);break;case io:p==null&&K(h,_,I,F);break;case Ie:w(p,h,_,I,C,A,F,M,D);break;default:ne&1?y(p,h,_,I,C,A,F,M,D):ne&6?m(p,h,_,I,C,A,F,M,D):(ne&64||ne&128)&&P.process(p,h,_,I,C,A,F,M,D,Ue)}W!=null&&C&&Qo(W,p&&p.ref,A,h||p,!h)},B=(p,h,_,I)=>{if(p==null)o(h.el=l(h.children),_,I);else{const C=h.el=p.el;h.children!==p.children&&c(C,h.children)}},V=(p,h,_,I)=>{p==null?o(h.el=a(h.children||""),_,I):h.el=p.el},K=(p,h,_,I)=>{[p.el,p.anchor]=k(p.children,h,_,I,p.el,p.anchor)},$=({el:p,anchor:h},_,I)=>{let C;for(;p&&p!==h;)C=d(p),o(p,_,I),p=C;o(h,_,I)},R=({el:p,anchor:h})=>{let _;for(;p&&p!==h;)_=d(p),i(p),p=_;i(h)},y=(p,h,_,I,C,A,F,M,D)=>{h.type==="svg"?F="svg":h.type==="math"&&(F="mathml"),p==null?x(h,_,I,C,A,F,M,D):E(p,h,C,A,F,M,D)},x=(p,h,_,I,C,A,F,M)=>{let D,P;const{props:W,shapeFlag:ne,transition:Z,dirs:v}=p;if(D=p.el=s(p.type,A,W&&W.is,W),ne&8?u(D,p.children):ne&16&&g(p.children,D,null,I,C,Jo(p,A),F,M),v&&Bt(p,null,I,"created"),H(D,p,p.scopeId,F,I),W){for(const J in W)J!=="value"&&!zn(J)&&r(D,J,null,W[J],A,p.children,I,C,Ne);"value"in W&&r(D,"value",null,W.value,A),(P=W.onVnodeBeforeMount)&&at(P,I,p)}v&&Bt(p,null,I,"beforeMount");const T=ec(C,Z);T&&Z.beforeEnter(D),o(D,h,_),((P=W&&W.onVnodeMounted)||T||v)&&Re(()=>{P&&at(P,I,p),T&&Z.enter(D),v&&Bt(p,null,I,"mounted")},C)},H=(p,h,_,I,C)=>{if(_&&b(p,_),I)for(let A=0;A<I.length;A++)b(p,I[A]);if(C){let A=C.subTree;if(h===A){const F=C.vnode;H(p,F,F.scopeId,F.slotScopeIds,C.parent)}}},g=(p,h,_,I,C,A,F,M,D=0)=>{for(let P=D;P<p.length;P++){const W=p[P]=M?It(p[P]):lt(p[P]);S(null,W,h,_,I,C,A,F,M)}},E=(p,h,_,I,C,A,F)=>{const M=h.el=p.el;let{patchFlag:D,dynamicChildren:P,dirs:W}=h;D|=p.patchFlag&16;const ne=p.props||ae,Z=h.props||ae;let v;if(_&&Vt(_,!1),(v=Z.onVnodeBeforeUpdate)&&at(v,_,h,p),W&&Bt(h,p,_,"beforeUpdate"),_&&Vt(_,!0),P?j(p.dynamicChildren,P,M,_,I,Jo(h,C),A):F||z(p,h,M,null,_,I,Jo(h,C),A,!1),D>0){if(D&16)Q(M,h,ne,Z,_,I,C);else if(D&2&&ne.class!==Z.class&&r(M,"class",null,Z.class,C),D&4&&r(M,"style",ne.style,Z.style,C),D&8){const T=h.dynamicProps;for(let J=0;J<T.length;J++){const oe=T[J],we=ne[oe],ot=Z[oe];(ot!==we||oe==="value")&&r(M,oe,we,ot,C,p.children,_,I,Ne)}}D&1&&p.children!==h.children&&u(M,h.children)}else!F&&P==null&&Q(M,h,ne,Z,_,I,C);((v=Z.onVnodeUpdated)||W)&&Re(()=>{v&&at(v,_,h,p),W&&Bt(h,p,_,"updated")},I)},j=(p,h,_,I,C,A,F)=>{for(let M=0;M<h.length;M++){const D=p[M],P=h[M],W=D.el&&(D.type===Ie||!Ft(D,P)||D.shapeFlag&70)?f(D.el):_;S(D,P,W,null,I,C,A,F,!0)}},Q=(p,h,_,I,C,A,F)=>{if(_!==I){if(_!==ae)for(const M in _)!zn(M)&&!(M in I)&&r(p,M,_[M],null,F,h.children,C,A,Ne);for(const M in I){if(zn(M))continue;const D=I[M],P=_[M];D!==P&&M!=="value"&&r(p,M,P,D,F,h.children,C,A,Ne)}"value"in I&&r(p,"value",_.value,I.value,F)}},w=(p,h,_,I,C,A,F,M,D)=>{const P=h.el=p?p.el:l(""),W=h.anchor=p?p.anchor:l("");let{patchFlag:ne,dynamicChildren:Z,slotScopeIds:v}=h;v&&(M=M?M.concat(v):v),p==null?(o(P,_,I),o(W,_,I),g(h.children||[],_,W,C,A,F,M,D)):ne>0&&ne&64&&Z&&p.dynamicChildren?(j(p.dynamicChildren,Z,_,C,A,F,M),(h.key!=null||C&&h===C.subTree)&&Ar(p,h,!0)):z(p,h,_,W,C,A,F,M,D)},m=(p,h,_,I,C,A,F,M,D)=>{h.slotScopeIds=M,p==null?h.shapeFlag&512?C.ctx.activate(h,_,I,F,D):N(h,_,I,C,A,F,D):te(p,h,D)},N=(p,h,_,I,C,A,F)=>{const M=p.component=cc(p,I,C);if(Gn(p)&&(M.ctx.renderer=Ue),uc(M),M.asyncDep){if(C&&C.registerDep(M,le),!p.el){const D=M.subTree=G(et);V(null,D,h,_)}}else le(M,p,h,_,C,A,F)},te=(p,h,_)=>{const I=h.component=p.component;if(va(p,h,_))if(I.asyncDep&&!I.asyncResolved){L(I,h,_);return}else I.next=h,da(I.update),I.effect.dirty=!0,I.update();else h.el=p.el,I.vnode=h},le=(p,h,_,I,C,A,F)=>{const M=()=>{if(p.isMounted){let{next:W,bu:ne,u:Z,parent:v,vnode:T}=p;{const an=jr(p);if(an){W&&(W.el=T.el,L(p,W,F)),an.asyncDep.then(()=>{p.isUnmounted||M()});return}}let J=W,oe;Vt(p,!1),W?(W.el=T.el,L(p,W,F)):W=T,ne&&Dn(ne),(oe=W.props&&W.props.onVnodeBeforeUpdate)&&at(oe,v,W,T),Vt(p,!0);const we=Ro(p),ot=p.subTree;p.subTree=we,S(ot,we,f(ot.el),ht(ot),p,C,A),W.el=we.el,J===null&&ba(p,we.el),Z&&Re(Z,C),(oe=W.props&&W.props.onVnodeUpdated)&&Re(()=>at(oe,v,W,T),C)}else{let W;const{el:ne,props:Z}=h,{bm:v,m:T,parent:J}=p,oe=gn(h);if(Vt(p,!1),v&&Dn(v),!oe&&(W=Z&&Z.onVnodeBeforeMount)&&at(W,J,h),Vt(p,!0),ne&&Pn){const we=()=>{p.subTree=Ro(p),Pn(ne,p.subTree,p,C,null)};oe?h.type.__asyncLoader().then(()=>!p.isUnmounted&&we()):we()}else{const we=p.subTree=Ro(p);S(null,we,_,I,p,C,A),h.el=we.el}if(T&&Re(T,C),!oe&&(W=Z&&Z.onVnodeMounted)){const we=h;Re(()=>at(W,J,we),C)}(h.shapeFlag&256||J&&gn(J.vnode)&&J.vnode.shapeFlag&256)&&p.a&&Re(p.a,C),p.isMounted=!0,h=_=I=null}},D=p.effect=new ko(M,Fe,()=>Bo(P),p.scope),P=p.update=()=>{D.dirty&&D.run()};P.id=p.uid,Vt(p,!0),P()},L=(p,h,_)=>{h.component=p;const I=p.vnode.props;p.vnode=h,p.next=null,Ya(p,h.props,I,_),Ga(p,h.children,_),vt(),ir(p),bt()},z=(p,h,_,I,C,A,F,M,D=!1)=>{const P=p&&p.children,W=p?p.shapeFlag:0,ne=h.children,{patchFlag:Z,shapeFlag:v}=h;if(Z>0){if(Z&128){ue(P,ne,_,I,C,A,F,M,D);return}else if(Z&256){fe(P,ne,_,I,C,A,F,M,D);return}}v&8?(W&16&&Ne(P,C,A),ne!==P&&u(_,ne)):W&16?v&16?ue(P,ne,_,I,C,A,F,M,D):Ne(P,C,A,!0):(W&8&&u(_,""),v&16&&g(ne,_,I,C,A,F,M,D))},fe=(p,h,_,I,C,A,F,M,D)=>{p=p||Xe,h=h||Xe;const P=p.length,W=h.length,ne=Math.min(P,W);let Z;for(Z=0;Z<ne;Z++){const v=h[Z]=D?It(h[Z]):lt(h[Z]);S(p[Z],v,_,null,C,A,F,M,D)}P>W?Ne(p,C,A,!0,!1,ne):g(h,_,I,C,A,F,M,D,ne)},ue=(p,h,_,I,C,A,F,M,D)=>{let P=0;const W=h.length;let ne=p.length-1,Z=W-1;for(;P<=ne&&P<=Z;){const v=p[P],T=h[P]=D?It(h[P]):lt(h[P]);if(Ft(v,T))S(v,T,_,null,C,A,F,M,D);else break;P++}for(;P<=ne&&P<=Z;){const v=p[ne],T=h[Z]=D?It(h[Z]):lt(h[Z]);if(Ft(v,T))S(v,T,_,null,C,A,F,M,D);else break;ne--,Z--}if(P>ne){if(P<=Z){const v=Z+1,T=v<W?h[v].el:I;for(;P<=Z;)S(null,h[P]=D?It(h[P]):lt(h[P]),_,T,C,A,F,M,D),P++}}else if(P>Z)for(;P<=ne;)be(p[P],C,A,!0),P++;else{const v=P,T=P,J=new Map;for(P=T;P<=Z;P++){const Ye=h[P]=D?It(h[P]):lt(h[P]);Ye.key!=null&&J.set(Ye.key,P)}let oe,we=0;const ot=Z-T+1;let an=!1,vl=0;const Mn=new Array(ot);for(P=0;P<ot;P++)Mn[P]=0;for(P=v;P<=ne;P++){const Ye=p[P];if(we>=ot){be(Ye,C,A,!0);continue}let ut;if(Ye.key!=null)ut=J.get(Ye.key);else for(oe=T;oe<=Z;oe++)if(Mn[oe-T]===0&&Ft(Ye,h[oe])){ut=oe;break}ut===void 0?be(Ye,C,A,!0):(Mn[ut-T]=P+1,ut>=vl?vl=ut:an=!0,S(Ye,h[ut],_,null,C,A,F,M,D),we++)}const bl=an?tc(Mn):Xe;for(oe=bl.length-1,P=ot-1;P>=0;P--){const Ye=T+P,ut=h[Ye],yl=Ye+1<W?h[Ye+1].el:I;Mn[P]===0?S(null,ut,_,yl,C,A,F,M,D):an&&(oe<0||P!==bl[oe]?ye(ut,_,yl,2):oe--)}}},ye=(p,h,_,I,C=null)=>{const{el:A,type:F,transition:M,children:D,shapeFlag:P}=p;if(P&6){ye(p.component.subTree,h,_,I);return}if(P&128){p.suspense.move(h,_,I);return}if(P&64){F.move(p,h,_,Ue);return}if(F===Ie){o(A,h,_);for(let ne=0;ne<D.length;ne++)ye(D[ne],h,_,I);o(p.anchor,h,_);return}if(F===io){$(p,h,_);return}if(I!==2&&P&1&&M)if(I===0)M.beforeEnter(A),o(A,h,_),Re(()=>M.enter(A),C);else{const{leave:ne,delayLeave:Z,afterLeave:v}=M,T=()=>o(A,h,_),J=()=>{ne(A,()=>{T(),v&&v()})};Z?Z(A,T,J):J()}else o(A,h,_)},be=(p,h,_,I=!1,C=!1)=>{const{type:A,props:F,ref:M,children:D,dynamicChildren:P,shapeFlag:W,patchFlag:ne,dirs:Z}=p;if(M!=null&&Qo(M,null,_,p,!0),W&256){h.ctx.deactivate(p);return}const v=W&1&&Z,T=!gn(p);let J;if(T&&(J=F&&F.onVnodeBeforeUnmount)&&at(J,h,p),W&6)Ot(p.component,_,I);else{if(W&128){p.suspense.unmount(_,I);return}v&&Bt(p,null,h,"beforeUnmount"),W&64?p.type.remove(p,h,_,C,Ue,I):P&&(A!==Ie||ne>0&&ne&64)?Ne(P,h,_,!1,!0):(A===Ie&&ne&384||!C&&W&16)&&Ne(D,h,_),I&&Oe(p)}(T&&(J=F&&F.onVnodeUnmounted)||v)&&Re(()=>{J&&at(J,h,p),v&&Bt(p,null,h,"unmounted")},_)},Oe=p=>{const{type:h,el:_,anchor:I,transition:C}=p;if(h===Ie){Xt(_,I);return}if(h===io){R(p);return}const A=()=>{i(_),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(p.shapeFlag&1&&C&&!C.persisted){const{leave:F,delayLeave:M}=C,D=()=>F(_,A);M?M(p.el,A,D):D()}else A()},Xt=(p,h)=>{let _;for(;p!==h;)_=d(p),i(p),p=_;i(h)},Ot=(p,h,_)=>{const{bum:I,scope:C,update:A,subTree:F,um:M}=p;I&&Dn(I),C.stop(),A&&(A.active=!1,be(F,p,h,_)),M&&Re(M,h),Re(()=>{p.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ne=(p,h,_,I=!1,C=!1,A=0)=>{for(let F=A;F<p.length;F++)be(p[F],h,_,I,C)},ht=p=>p.shapeFlag&6?ht(p.component.subTree):p.shapeFlag&128?p.suspense.next():d(p.anchor||p.el);let gt=!1;const Pe=(p,h,_)=>{p==null?h._vnode&&be(h._vnode,null,null,!0):S(h._vnode||null,p,h,null,null,null,_),gt||(gt=!0,ir(),rr(),gt=!1),h._vnode=p},Ue={p:S,um:be,m:ye,r:Oe,mt:N,mc:g,pc:z,pbc:j,n:ht,o:e};let Lt,Pn;return t&&([Lt,Pn]=t(Ue)),{render:Pe,hydrate:Lt,createApp:qa(Pe,Lt)}}function Jo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ec(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ar(e,t,n=!1){const o=e.children,i=t.children;if(ee(o)&&ee(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||Ar(s,l)),l.type===oo&&(l.el=s.el)}}function tc(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 jr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jr(t)}const nc=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),io=Symbol.for("v-stc"),yn=[];let nt=null;function O(e=!1){yn.push(nt=e?null:[])}function oc(){yn.pop(),nt=yn[yn.length-1]||null}let _n=1;function Dr(e){_n+=e}function Br(e){return e.dynamicChildren=_n>0?nt||Xe:null,oc(),_n>0&&nt&&nt.push(e),e}function q(e,t,n,o,i,r){return Br(X(e,t,n,o,i,r,!0))}function he(e,t,n,o,i){return Br(G(e,t,n,o,i,!0))}function ro(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const so="__vInternal",Rr=({key:e})=>e??null,lo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||Ee(e)||re(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,i=null,r=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rr(t),ref:t&&lo(t),scopeId:ar,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:$e};return l?(ei(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Se(n)?8:16),_n>0&&!s&&nt&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&nt.push(a),a}const G=ic;function ic(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===dr)&&(e=et),ro(e)){const l=St(e,t,!0);return n&&ei(l,n),_n>0&&!r&&nt&&(l.shapeFlag&6?nt[nt.indexOf(e)]=l:nt.push(l)),l.patchFlag|=-2,l}if(mc(e)&&(e=e.__vccOpts),t){t=rc(t);let{class:l,style:a}=t;l&&!Se(l)&&(t.class=Te(l)),ve(a)&&(Gi(a)&&!ee(a)&&(a=xe({},a)),t.style=Le(a))}const s=Se(e)?1:wa(e)?128:nc(e)?64:ve(e)?4:re(e)?2:0;return X(e,t,n,o,i,s,r,!0)}function rc(e){return e?Gi(e)||so in e?xe({},e):e:null}function St(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?ao(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Rr(l),ref:t&&t.ref?n&&i?ee(i)?i.concat(lo(t)):[i,lo(t)]:lo(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!==Ie?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&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function kt(e=" ",t=0){return G(oo,null,e,t)}function sc(e,t){const n=G(io,null,e);return n.staticCount=t,n}function Ce(e="",t=!1){return t?(O(),he(et,null,e)):G(et,null,e)}function lt(e){return e==null||typeof e=="boolean"?G(et):ee(e)?G(Ie,null,e.slice()):typeof e=="object"?It(e):G(oo,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function ei(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),ei(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(so in t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[kt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ao(...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=Te([t.class,o.class]));else if(i==="style")t.style=Le([t.style,o.style]);else if(On(i)){const r=t[i],s=o[i];s&&r!==s&&!(ee(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){Ge(e,t,7,[n,o])}const lc=Ir();let ac=0;function cc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||lc,r={uid:ac++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Pl(!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:Tr(o,i),emitsOptions:lr(o,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:o.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,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=ha.bind(null,r),e.ce&&e.ce(r),r}let Me=null;const ti=()=>Me||$e;let co,ni;{const e=Ti(),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)}};co=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),ni=t("__VUE_SSR_SETTERS__",n=>uo=n)}const wn=e=>{const t=Me;return co(e),e.scope.on(),()=>{e.scope.off(),co(t)}},Nr=()=>{Me&&Me.scope.off(),co(null)};function Vr(e){return e.vnode.shapeFlag&4}let uo=!1;function uc(e,t=!1){t&&ni(t);const{props:n,children:o}=e.vnode,i=Vr(e);Ua(e,n,i,t),Za(e,o);const r=i?dc(e,t):void 0;return t&&ni(!1),r}function dc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qi(new Proxy(e.ctx,Ra));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?pc(e):null,r=wn(e);vt();const s=ft(o,e,0,[e.props,i]);if(bt(),r(),Si(s)){if(s.then(Nr,Nr),t)return s.then(l=>{Fr(e,l,t)}).catch(l=>{qn(l,e,0)});e.asyncDep=s}else Fr(e,s,t)}else Wr(e,t)}function Fr(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=er(t)),Wr(e,n)}let Hr;function Wr(e,t,n){const o=e.type;if(!e.render){if(!t&&Hr&&!o.render){const i=o.template||Yo(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=Hr(i,c)}}e.render=o.render||Fe}{const i=wn(e);vt();try{Na(e)}finally{bt(),i()}}}function fc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(e,"get","$attrs"),t[n]}}))}function pc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return fc(e)},slots:e.slots,emit:e.emit,expose:t}}function fo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(er(Qi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}const hc=/(?:^|[-_])(\w)/g,gc=e=>e.replace(hc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Kr(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function qr(e,t,n=!1){let o=Kr(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?gc(o):n?"App":"Anonymous"}function mc(e){return re(e)&&"__vccOpts"in e}const se=(e,t)=>Jl(e,t,uo);function xn(e,t,n=ae){const o=ti(),i=De(t),r=He(t),s=ia((a,c)=>{let u;return Ia(()=>{const f=e[t];it(u,f)&&(u=f,c())}),{get(){return a(),n.get?n.get(u):u},set(f){const d=o.vnode.props;!(d&&(t in d||i in d||r in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${r}`in d))&&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 Ur(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ee(t)?ro(t)?G(e,null,[t]):G(e,t):G(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ro(n)&&(n=[n]),G(e,t,n))}const vc="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 vc="http://www.w3.org/2000/svg",bc="http://www.w3.org/1998/Math/MathML",Ct=typeof document<"u"?document:null,Yr=Ct&&Ct.createElement("template"),_c={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"?Ct.createElementNS(vc,e):t==="mathml"?Ct.createElementNS(bc,e):Ct.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Ct.createTextNode(e),createComment:e=>Ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ct.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{Yr.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Yr.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",Sn="animation",kn=Symbol("_vtc"),nn=(e,{slots:t})=>Ur(Ta,yc(e),t);nn.displayName="Transition";const Xr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=xe({},hr,Xr);const Ht=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zr=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function yc(e){const t={};for(const h in e)h in Xr||(t[h]=e[h]);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:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,S=wc(i),I=S&&S[0],B=S&&S[1],{onBeforeEnter:R,onEnter:W,onEnterCancelled:E,onLeave:V,onLeaveCancelled:_,onBeforeAppear:x=R,onAppear:F=W,onAppearCancelled:m=E}=t,$=(h,w,K)=>{Wt(h,w?u:l),Wt(h,w?c:s),K&&K()},j=(h,w)=>{h._isLeaving=!1,Wt(h,p),Wt(h,b),Wt(h,d),w&&w()},U=h=>(w,K)=>{const oe=h?F:W,ae=()=>$(w,h,K);Ht(oe,[w,ae]),Gr(()=>{Wt(w,h?a:r),Et(w,h?u:l),Zr(oe)||Qr(w,o,I,ae)})};return xe(t,{onBeforeEnter(h){Ht(R,[h]),Et(h,r),Et(h,s)},onBeforeAppear(h){Ht(x,[h]),Et(h,a),Et(h,c)},onEnter:U(!1),onAppear:U(!0),onLeave(h,w){h._isLeaving=!0;const K=()=>j(h,w);Et(h,p),kc(),Et(h,d),Gr(()=>{h._isLeaving&&(Wt(h,p),Et(h,b),Zr(V)||Qr(h,o,B,K))}),Ht(V,[h,K])},onEnterCancelled(h){$(h,!1),Ht(E,[h])},onAppearCancelled(h){$(h,!0),Ht(m,[h])},onLeaveCancelled(h){j(h),Ht(_,[h])}})}function wc(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 xo(e)}function Et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Wt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[kn];n&&(n.delete(t),n.size||(e[kn]=void 0))}function Gr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xc=0;function Qr(e,t,n,o){const i=e._endId=++xc,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Sc(e,t);if(!s)return o();const c=s+"end";let u=0;const p=()=>{e.removeEventListener(c,d),r()},d=b=>{b.target===e&&++u>=a&&p()};setTimeout(()=>{u<a&&p()},l+1),e.addEventListener(c,d)}function Sc(e,t){const n=window.getComputedStyle(e),o=S=>(n[S]||"").split(", "),i=o(`${Tt}Delay`),r=o(`${Tt}Duration`),s=Jr(i,r),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=Jr(l,a);let u=null,p=0,d=0;t===Tt?s>0&&(u=Tt,p=s,d=r.length):t===Sn?c>0&&(u=Sn,p=c,d=a.length):(p=Math.max(s,c),u=p>0?s>c?Tt:Sn:null,d=u?u===Tt?r.length:a.length:0);const b=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:p,propCount:d,hasTransform:b}}function Jr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>es(n)+es(e[o])))}function es(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function kc(){return document.body.offsetHeight}function Ic(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),ts={beforeMount(e,{value:t},{transition:n}){e[ii]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):In(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),In(e,!0),o.enter(e)):o.leave(e,()=>{In(e,!1)}):In(e,t))},beforeUnmount(e,{value:t}){In(e,t)}};function In(e,t){e.style.display=t?e[ii]:"none"}const Cc=Symbol("");function Tc(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[Cc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ii in e&&(o.display=i)}const ns=/\s*!important$/;function ri(e,t,n){if(ee(n))n.forEach(o=>ri(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ec(e,t);ns.test(n)?e.setProperty(He(o),n.replace(ns,""),"important"):e[o]=n}}const os=["Webkit","Moz","ms"],si={};function Ec(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=jn(o);for(let i=0;i<os.length;i++){const r=os[i]+o;if(r in e)return si[t]=r}return t}const is="http://www.w3.org/1999/xlink";function $c(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(is,t.slice(6,t.length)):e.setAttributeNS(is,t,n);else{const r=El(t);n==null||r&&!Ei(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Pc(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=Ei(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function on(e,t,n,o){e.addEventListener(t,n,o)}function Mc(e,t,n,o){e.removeEventListener(t,n,o)}const rs=Symbol("_vei");function Oc(e,t,n,o,i=null){const r=e[rs]||(e[rs]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=Lc(t);if(o){const c=r[t]=jc(o,i);on(e,l,c,a)}else s&&(Mc(e,l,s,a),r[t]=void 0)}}const ss=/(?:Once|Passive|Capture)$/;function Lc(e){let t;if(ss.test(e)){t={};let o;for(;o=e.match(ss);)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 zc=Promise.resolve(),Ac=()=>li||(zc.then(()=>li=0),li=Date.now());function jc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ze(Dc(o,n.value),t,5,[o])};return n.value=e,n.attached=Ac(),n}function Dc(e,t){if(ee(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 ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Ic(e,o,c):t==="style"?Tc(e,n,o):On(t)?vo(t)||Oc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Rc(e,t,o,c))?Pc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),$c(e,t,o,c))};function Rc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(t)&&re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ls(t)&&Se(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Nc(e,t){const n=ke(e);class o extends ai{constructor(r){super(n,r,t)}}return o.def=n,o}const Vc=typeof HTMLElement<"u"?HTMLElement:class{};class ai extends Vc{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),wt(()=>{this._connected||(fs(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&&!ee(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=xo(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=ee(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=xo(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(){fs(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 as=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Dn(t,n):t};function Fc(e){e.target.composing=!0}function cs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ci=Symbol("_assign"),Hc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ci]=as(i);const r=o||i.props&&i.props.type==="number";on(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=wo(l)),e[ci](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",Fc),on(e,"compositionend",cs),on(e,"change",cs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ci]=as(r),e.composing)return;const s=i||e.type==="number"?wo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Wc=["ctrl","shift","alt","meta"],Kc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Wc.some(n=>e[`${n}Key`]&&!t.includes(n))},et=(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=Kc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},qc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},us=(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||qc[s]===r))return e(i)})},Uc=xe({patchProp:Bc},_c);let ds;function Yc(){return ds||(ds=Ga(Uc))}const fs=(...e)=>{Yc().render(...e)};var ps;const ui=typeof window<"u",Xc=e=>typeof e=="string",$t=()=>{};ui&&((ps=window==null?void 0:window.navigator)!=null&&ps.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():Y(e)}function hs(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 Zc(e,t={}){let n,o,i=$t;const r=l=>{clearTimeout(l),i(),i=$t};return l=>{const a=po(e),c=po(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,p)=>{i=t.rejectOnCancel?p:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function Gc(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=$t,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=$t)};return p=>{const d=po(e),b=Date.now()-i,S=()=>a=p();if(c(),d<=0)return i=Date.now(),S();if(b>d&&(n||!s))i=Date.now(),S();else if(t)return new Promise((I,B)=>{l=o?B:I,r=setTimeout(()=>{i=Date.now(),s=!0,I(S()),c()},d-b)});return!n&&!r&&(r=setTimeout(()=>s=!0,d)),s=!1,a}}function Qc(e){return e}function di(e){return Pi()?(Ml(e),!0):!1}function Ae(e,t=200,n={}){return hs(Zc(t,n),e)}function gs(e,t=200,n=!1,o=!0,i=!1){return hs(Gc(t,n,o,i),e)}function ms(e,t=!0){ti()?Qe(e):t?e():wt(e)}function Kt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Cn=ui?window:void 0,Jc=ui?window.document:void 0;function Pt(...e){let t,n,o,i;if(Xc(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Cn):[t,n,o,i]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,p,d)=>(u.addEventListener(p,d,i),()=>u.removeEventListener(p,d,i)),a=pe(()=>Kt(t),u=>{s(),u&&r.push(...n.flatMap(p=>o.map(d=>l(u,p,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return di(c),c}function vs(e,t=!1){const n=X(),o=()=>n.value=!!e();return o(),ms(o,t),n}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_s="__vueuse_ssr_handlers__";bs[_s]=bs[_s]||{};function ys({document:e=Jc}={}){if(!e)return X("visible");const t=X(e.visibilityState);return Pt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ws=Object.getOwnPropertySymbols,eu=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,nu=(e,t)=>{var n={};for(var o in e)eu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ws)for(var o of ws(e))t.indexOf(o)<0&&tu.call(e,o)&&(n[o]=e[o]);return n};function ou(e,t,n={}){const o=n,{window:i=Cn}=o,r=nu(o,["window"]);let s;const l=vs(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>Kt(e),p=>{a(),l.value&&i&&p&&(s=new ResizeObserver(t),s.observe(p,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}function xs(e,t={width:0,height:0},n={}){const{window:o=Cn,box:i="content-box"}=n,r=se(()=>{var a,c;return(c=(a=Kt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=X(t.width),l=X(t.height);return ou(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Kt(e);if(u){const p=o.getComputedStyle(u);s.value=parseFloat(p.width),l.value=parseFloat(p.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((p,{inlineSize:d})=>p+d,0),l.value=u.reduce((p,{blockSize:d})=>p+d,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>Kt(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=Cn}=n,l=vs(()=>s&&"IntersectionObserver"in s);let a=$t;const c=l.value?pe(()=>({el:Kt(e),root:Kt(o)}),({el:p,root:d})=>{if(a(),!p)return;const b=new IntersectionObserver(t,{root:d,rootMargin:i,threshold:r});b.observe(p),a=()=>{b.disconnect(),a=$t}},{immediate:!0,flush:"post"}):$t,u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}var Ss;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ss||(Ss={}));var iu=Object.defineProperty,ks=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,su=Object.prototype.propertyIsEnumerable,Is=(e,t,n)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lu=(e,t)=>{for(var n in t||(t={}))ru.call(t,n)&&Is(e,n,t[n]);if(ks)for(var n of ks(t))su.call(t,n)&&Is(e,n,t[n]);return e};lu({linear:Qc},{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 Cs(e={}){const{window:t=Cn,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(),ms(a),Pt("resize",a,{passive:!0}),i&&Pt("orientationchange",a,{passive:!0}),{width:s,height:l}}const au=(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))}},rn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>au(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},cu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},uu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},du=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 Qe(()=>{let p;fi(r,d=>{l.value=d.some(b=>b.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,p&&(clearInterval(p),p=void 0),!(!l.value||c.value)&&(p=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(p),p=void 0,o("next"))},1e3))}),fi(i,d=>{s.value=d.some(b=>b.isIntersecting)}),Rt(()=>p&&clearInterval(p))}),(p,d)=>(O(),q("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[st(Z("div",cu,[p.hasNext?(O(),q("div",uu,[l.value?(O(),q("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:Oe(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):Ce("",!0),st((O(),q("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:d[0]||(d[0]=et(()=>o("next"),["stop"]))},[kt(Xe(c.value?"Next":`Next in ${a.value}`),1)])),[[Y(rn)]])])):Ce("",!0),st((O(),q("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:d[1]||(d[1]=et(()=>o("hide"),["stop"]))},[kt(" Hide ")])),[[Y(rn)]])],512),[[ts,s.value||!p.hasNext]])],512))}}),fu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
21
- `,ge=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Ts=ge(du,[["styles",[fu]]]),pu=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));function hu({touchDevice:e}){const t=X(!1);let n=0;return no("busy:touchDevice",e),no("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function pi(){const e=Nt("busy:touchDevice"),t=Nt("setBusyState");let n=!1;return Rt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const gu={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(),he(ba(c.href?"a":"button"),ao(c.href?{href:c.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:et(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:ie(()=>[Z("div",gu,[_e(c.$slots,"default")])]),_:3},16,["class"])),[[Y(rn),c.disabled?0:15]])}}),mu=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),vu={},bu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_u=[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 yu(e,t){return O(),q("svg",bu,_u)}const Es=ge(vu,[["render",yu]]),wu=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));class xu{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 Su(){const e=new xu;return Rt(()=>e.dispose()),no("keyController",e),e}function ho(e){const t=Nt("keyController");Qe(()=>t.addListener(e)),Rt(()=>t.removeListener(e))}const ku={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Iu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},Cu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},$s=ke({__name:"BottomSheet",props:tn({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=xn(e,"modelValue");ho({onKeyDown:o});const n=pi();pe(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(O(),q("div",{class:Te(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[3]||(r[3]=()=>t.value=!1)},[Q(nn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[t.value?(O(),q("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]=et(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=et(()=>{},["stop"]))},[Z("div",ku,[Q(tt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:ie(()=>[Q(Es)]),_:1}),Z("div",Iu,Xe(i.name),1),_e(i.$slots,"actions")]),Z("div",Cu,[_e(i.$slots,"default")])],32)):Ce("",!0)]),_:3})],2))}}),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),Eu=["min","max","step"],$u={class:"flex-shrink-0"},hi=ge(ke({__name:"InputPercentage",props:tn({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=xn(e,"modelValue"),n=se({get(){return t.value},set(o){t.value=+o}});return(o,i)=>(O(),q("div",{class:Te(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Oe({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[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,Eu),[[Hc,n.value]]),Z("p",$u,[_e(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
- `]]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),Mu=["onClick","onKeyup"],Tn=ke({__name:"InputSelect",props:tn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=X(null),i=X({width:"",left:""});Qe(()=>{let s=!1;pe(n,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(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(),q("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Z("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Oe(i.value)},null,4),(O(!0),q(Ie,null,mn(t.items,(a,c)=>st((O(),q("div",{key:c,tabindex:"0",class:Te(["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:[us(()=>r(c),["enter"]),us(()=>r(c),["space"])]},[kt(Xe(a),1)],42,Mu)),[[Y(rn),30]])),128))],512))}}),Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"})),Lu={class:"flex items-center mb-8 last:mb-0"},zu={class:"flex-grow overflow-hidden"},qt=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(O(),q("div",Lu,[Z("div",{class:Te(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},Xe(t.label),3),Z("div",zu,[_e(t.$slots,"default")])]))}}),Au=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),ju={},Du={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bu=[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 Ru(e,t){return O(),q("svg",Du,Bu)}const Ps=ge(ju,[["render",Ru]]),Nu=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Vu={},Fu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Hu=[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 Wu(e,t){return O(),q("svg",Fu,Hu)}const Ms=ge(Vu,[["render",Wu]]),Ku=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"}));function qu(e){if(e)try{return JSON.parse(e)}catch{return}}function Uu(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 Yu=.25,Xu=5,Zu=.25,En=.2,$n=5,Gu=.05,Qu=0,Ju=4,Os=5;function ed(e){var _,x,F,m,$,j,U;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Uu(t.value):location.hostname),i=X(td(`tkr:${o.value}`)),r=h=>{i.value=h;const w=`tkr:${o.value}`;!h||!Object.keys(h).length?localStorage.removeItem(w):localStorage.setItem(w,JSON.stringify(h))},s=h=>{if(!i.value){r(h);return}const w={...i.value};Object.entries(h).forEach(([K,oe])=>{oe===void 0?delete w[K]:w[K]=oe}),r(w)},l=X(((_=i.value)==null?void 0:_.style)??e.defaultStyle??Mt.longStrip),a=X(((x=i.value)==null?void 0:x.direction)??e.defaultDirection??ct.vertical),c=X((F=i.value)==null?void 0:F.gap),u=X(((m=i.value)==null?void 0:m.speed)??1),p=X((($=i.value)==null?void 0:$.zoom)??1),d=X(((j=i.value)==null?void 0:j.breakFirst)??!1),b=X(((U=i.value)==null?void 0:U.autoNextSeconds)??Os),S=se({get(){return n.value?Mt.longStrip:l.value},set:h=>{l.value=h,s({style:h}),h!==Mt.longStrip&&a.value===ct.vertical&&(I.value=ct.rtl)}}),I=se({get:()=>n.value?ct.vertical:a.value,set:h=>{a.value=h,s({direction:h})}}),B=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||S.value!==Mt.longStrip?0:1,set(h){c.value=h,s({gap:h})}}),R=se({get:()=>u.value,set(h){u.value=h,s({speed:h===1?void 0:h})}}),W=se({get:()=>p.value,set(h){p.value=h,s({zoom:h===1?void 0:h})}}),E=se({get:()=>d.value,set(h){d.value=h,s({breakFirst:h?!0:void 0})}}),V=se({get:()=>b.value,set(h){b.value=h,s({autoNextSeconds:h===Os?void 0:h})}});return{direction:I,style:S,gap:B,speed:R,zoom:W,isLongStrip:se(()=>S.value===Mt.longStrip),isDouble:se(()=>S.value===Mt.double),isRTL:se(()=>I.value===ct.rtl),isVertical:se(()=>I.value===ct.vertical),breakFirst:E,autoNextSeconds:V}}function td(e){const t=localStorage.getItem(e),n=qu(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>=Qu&&n.gap<=Ju&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=En&&n.speed<=$n&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=En&&n.zoom<=$n&&(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 Ls=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);ho({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(),q(Ie,null,[Q(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>i.value=!0)},{default:ie(()=>[Q(Ms)]),_:1},8,["disabled"]),Q($s,{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(Ps)]),_:1})]),default:ie(()=>[Q(qt,{label:"Style"},{default:ie(()=>[Q(Tn,{"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(qt,{label:"Direction"},{default:ie(()=>[Q(Tn,{"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(qt,{label:"Gap"},{default:ie(()=>[Q(Tn,{"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(qt,{label:"Auto Next"},{default:ie(()=>[Q(Tn,{"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(qt,{label:"Speed"},{default:ie(()=>[Q(hi,{"model-value":a.speed,min:Y(Yu),max:Y(Xu),step:Y(Zu),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=u=>o("update:speed",u))},{suffix:ie(()=>[kt(Xe(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(qt,{label:"Zoom"},{default:ie(()=>[Q(hi,{"model-value":Math.ceil(a.zoom*100),min:Y(En)*100,max:Y($n)*100,step:Y(Gu)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[kt(Xe(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),nd=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),od={},id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},rd=[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 sd(e,t){return O(),q("svg",id,rd)}const zs=ge(od,[["render",sd]]),ld=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),ad={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"},cd={class:"block w-4 h-4"},ud={class:"w-12"},As=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>(O(),q("button",ad,[Z("div",cd,[Q(zs)]),Z("div",ud,Xe(Math.ceil(t.zoom*100))+"%",1)]))}}),dd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));async function sn(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 sn(e-1,t,n);i(r)},t)})}const fd={},pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},hd=[rc('<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 gd(e,t){return O(),q("svg",pd,hd)}const js=ge(fd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),vd={},bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_d=[Z("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function yd(e,t){return O(),q("svg",bd,_d)}const Ds=ge(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),xd=["aria-hidden"],Sd=["onClick"],kd={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"},Id={class:"whitespace-nowrap"},gi=ke({__name:"ButtonDropdown",props:tn({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:tn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=xn(e,"modelValue"),r=X(null),s=X(!1),l=X(!1),a=X(!1),c=X(!1),u=X(!1),p={mounted:m=>{var $;($=m.children[i.value])==null||$.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};ho({onKeyDown:R});const d=pi();async function b(){if(!n.items.length&&(s.value||await S(),!n.items.length)){s.value=!1;return}s.value=!s.value,d(s.value),s.value?(I(),E(r.value)):setTimeout(V,250)}async function S(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function I(){const m=r.value;if(m){const $=m.getBoundingClientRect(),j=$.x+$.width/2;a.value=$.y>window.innerHeight/2,c.value=j<window.innerWidth/3,u.value=j>window.innerWidth/3*2}}function B(m,$){b(),m!=i.value&&(i.value=m,o("select",m,$))}function R(m){s.value&&m.key==="Escape"&&(b(),m.preventDefault())}let W=[];function E(m){const $=window.getComputedStyle(m).zIndex,j=m.style.zIndex;(!$||!(+$>0))&&((!m.parentElement||m.parentElement.childElementCount>1)&&(m.style.zIndex="1",W.push({el:m,zIndex:j})),m.parentElement&&E(m.parentElement))}function V(){W.forEach(({el:m,zIndex:$})=>{m.style.zIndex=$??""}),W=[]}let _=!1;function x(){_||(_=!0,d(!0,{desktopOnly:!0}))}function F(){_&&(_=!1,d(!1,{desktopOnly:!0}))}return(m,$)=>(O(),q("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(O(),q("div",{key:0,class:"fixed-screen bg-transparent",onClick:b})):Ce("",!0),m.items.length?(O(),he(nn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ie(()=>[s.value?st((O(),q("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Te(["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:$[0]||($[0]=et(()=>{},["stop"]))},[(O(!0),q(Ie,null,mn(m.items,(j,U)=>st((O(),q("li",{key:U,tabindex:"-1",class:Te(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":U===i.value}]),onClick:h=>B(U,h)},[Z("div",{class:Te(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":U>0}])},[_e(m.$slots,"item",{item:j},()=>[kt(Xe(j),1)])],2)],10,Sd)),[[Y(rn),30]])),128))],42,xd)),[[p]]):Ce("",!0)]),_:3})):Ce("",!0),st((O(),q("button",ao({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:et(b,["stop"]),onMouseenter:x,onMouseleave:F}),[Z("div",kd,[Z("span",Id,Xe(m.label),1),m.items.length||m.canLoadItems?(O(),q("span",{key:0,class:Te(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(O(),he(js,{key:0})):(O(),he(Ds,{key:1}))],2)):Ce("",!0)])],16)),[[Y(rn),30]])],512))}}),Cd=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),Bs=ke({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;async function i(){o("getHiddenChapters"),await sn(50,50,()=>n.data.chapters.length?!0:void 0)}function r(l,a){var c,u,p;(p=(u=(c=n.data)==null?void 0:c.chapters)==null?void 0:u[l])==null||p.select(s(a))}function s(l){return!n.touchDevice&&(l.ctrlKey||l.metaKey)}return(l,a)=>{var c;return O(),he(gi,{modelValue:l.data.activeIndex,label:l.data.activeLabel,title:"Select chapter",items:l.data.chapters,"can-load-items":!!((c=l.chapterSpec)!=null&&c.trigger),"load-items":i,onSelect:r},{item:ie(({item:u})=>[kt(Xe(u.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ed={},$d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pd=[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 Md(e,t){return O(),q("svg",$d,Pd)}const Rs=ge(Ed,[["render",Md]]),Od=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ns=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=X(typeof n!="string"||+n!==t.direction),i=Ae(()=>o.value=!1,1250);pe(()=>t.direction,()=>{r(),o.value=!0,i()}),Qe(()=>{r(),i();let s;const l=ys();pe(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(),he(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(O(),q("div",{key:0,class:Te(["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===Y(ct).vertical,"rotate-180":s.direction===Y(ct).rtl}])},[Q(Rs)],2)):Ce("",!0)]),_:1}))}}),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),zd=Z("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Vs=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=X([]);Qe(async()=>{const c=xs(i),u=Ae(()=>{s({width:c.width.value,height:c.height.value})},50);u(),pe(c.width,u),pe(c.height,u)});function s(c){var d;const u=(d=i.value)==null?void 0:d.parentElement;if(!u)return;const p=Array.from(u.querySelectorAll("#controls [title]"));p.length&&(r.value=l(p,c))}function l(c,u){const p=[],d=[];let b=0,S=0;const I=50,B=25;c.forEach(_=>{var j;const x=(j=_.getAttribute("title"))==null?void 0:j.trim(),F=_.getBoundingClientRect();if(!x||!F.height||!F.width)return;const m=Math.ceil((F.top-10)/I),$=Math.ceil((F.left-10)/I);d.push({isTour:!1,title:x,rect:F,fromX:$,toX:Math.max($+1,Math.ceil((F.right+10)/I)),fromY:m,toY:Math.max(m+1,Math.ceil((F.bottom+10)/I))})}),d.forEach(_=>{for(let x=_.fromY;x<_.toY;x++){p[x]??(p[x]=[]);for(let F=_.fromX;F<_.toX;F++)p[x][F]=_;_.toY>b+1&&(b=_.toY-1),_.toX>S+1&&(S=_.toX-1)}});let R=S/2;d.forEach(_=>{_.isAlignRight=_.fromX>R});const W=(_,x)=>{p[x]??(p[x]=[]);const F=x>=_.toY;if(_.isTour)for(let m=_.fromX;m<_.toX;m++)delete p[_.fromY][m],_.fromY=x,_.toY=x+(F?1:-1),p[x][m]=_;else{const m=_.isAlignRight?_.fromX-3:_.fromX,$=m+3;_.helpItem={fromX:m,toX:$,fromY:x,toY:x+1,isTour:!0,isAlignRight:_.isAlignRight};for(let j=m;j<$;j++)p[x][j]=_.helpItem}},E=(_,x)=>{if(x>b||x<0)return!1;const F=x>=_.toY,m=p[x];if(!m)return W(_,x),!0;const $=m[_.fromX];if($&&!$.isTour)return!1;if($&&$.isTour)return E($,F?x+1:x-1)?(W(_,x),!0):!1;if(!$){const j=_.isAlignRight?-1:1;return m[_.fromX+j]||m[_.fromX+j*2]?E(_,F?x+1:x-1):(W(_,x),!0)}return!1};d.forEach(_=>{if(!E(_,_.toY)){if(_.isAlignRight){const x=p[_.fromY]??[];if(!x.slice(_.fromX-3,_.fromX).filter(Boolean).length){const m=_.fromX-3,$=_.fromX;_.helpItem={isTour:!0,isAlignRight:!0,fromX:m,toX:$,fromY:_.fromY,toY:_.toY};for(let j=_.fromX-3;j<_.fromX;j++)x[j]=_.helpItem;return}}E(_,_.fromY-1)}});const V=[];return d.forEach(_=>{const{title:x,helpItem:F,rect:m,isAlignRight:$,fromX:j,fromY:U,toY:h}=_;if(!x||!F||!m)return;const w=F.fromY>=h,K=F.toY<=U;V.push({title:a(x),style:{top:w?`${m.bottom+(F.fromY-h)*I+B}px`:K?void 0:`${m.top+8}px`,bottom:K?`${u.height-m.top+(F.toY-U)*I+B}px`:void 0,left:$?void 0:`${m.left}px`,right:$?w?`${u.width-m.right}px`:`${u.width-m.right+m.width+B}px`:void 0},arrowStyle:{width:K||w?"2px":`${Math.abs(F.toX-j)*I+B-5}px`,height:K||w?`${(w?F.fromY-h:U-F.toY)*I+B}px`:"2px",top:w?`${m.bottom}px`:K?void 0:`${m.top+20}px`,bottom:K?`${u.height-m.top}px`:void 0,left:$?void 0:`${m.left+m.width/2}px`,right:$?w?`${u.width-m.right+m.width/2}px`:`${u.width-m.right+m.width}px`:void 0}})}),V}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(O(),q(Ie,null,[zd,Z("div",{ref_key:"root",ref:i,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=et(p=>o("hide"),["stop"]))},[(O(!0),q(Ie,null,mn(r.value,p=>(O(),q(Ie,{key:p.title},[Z("div",{class:"absolute",style:Oe(p.style)},Xe(p.title),5),Z("div",{class:"absolute bg-stone-300 rounded-lg",style:Oe(p.arrowStyle)},null,4)],64))),128))],512)],64))}}),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Fs=ke({__name:"PageNav",props:tn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(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:p})=>p===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(),he(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"]))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Dd={},Bd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Rd=[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 Nd(e,t){return O(),q("svg",Bd,Rd)}const mi=ge(Dd,[["render",Nd]]),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Fd={},Hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wd=[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 Kd(e,t){return O(),q("svg",Hd,Wd)}const vi=ge(Fd,[["render",Kd]]),qd=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Hs=ge(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=X(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(O(),q("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(O(),he(vi,{key:0})):(O(),he(mi,{key:1}))])):Ce("",!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
- `]]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Ws=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($n,Math.max(En,n.zoom))),s=X(!1),l=X(!1),a={isZoomIn:!1,isZoomOut:!1,initial:void 0};pe(()=>n.zoom,h=>U(h)),Qe(()=>{n.touchDevice?Pt(i,"touchstart",I):(Pt(i,"mousedown",d),Pt(window,"wheel",_))}),ho({onKeyDown:h=>{var w;if(!n.busy&&((w=i.value)==null||w.focus(),!(h.key==="Meta"||h.key==="Control")&&(h.ctrlKey||h.metaKey)))switch(h.key){case"0":U(1);break;case"-":U(r.value-.2),h.preventDefault();break;case"=":case"+":U(r.value+.2),h.preventDefault();break}},onKeyUp:h=>{n.zooming&&!(h.ctrlKey||h.metaKey)&&m()}});function c(h){l.value!==h&&(l.value=h,h?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},p={x:0,y:0};function d(h){h.button===0&&(u={x:h.clientX,y:h.clientY},p={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",b),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",b),setTimeout(()=>c(!1))},{once:!0}),h.preventDefault(),h.stopPropagation())}function b(h){c(!0);const w=h.clientX-u.x,K=h.clientY-u.y,oe=i.value;oe.scrollLeft=p.x-w,oe.scrollTop=p.y-K}let S={distance:0,zoom:r.value,x:0,y:0};function I(h){if(n.busy)return;let w=h.touches.length===2;w&&(o("update:zooming",!0),c(!0),h.stopPropagation(),h.preventDefault(),S={distance:x(h),zoom:r.value,x:(h.touches[0].clientX+h.touches[1].clientX)/2,y:(h.touches[0].clientY+h.touches[1].clientY)/2}),(w||n.playController.isPlaying.value&&n.longStrip)&&(window.addEventListener("touchmove",R),window.addEventListener("touchend",B,{once:!0}))}function B(){if(window.removeEventListener("touchmove",R),n.zooming){c(!1),m();return}if(!l.value)return;const h=Ae(()=>{c(!1),i.value.removeEventListener("scroll",K)},200),w=setTimeout(h,200);i.value.addEventListener("scroll",K);function K(){clearTimeout(w),h()}}function R(h){if(c(!0),n.zooming){h.stopPropagation(),h.preventDefault();const K=x(h)/S.distance;j(Math.ceil(K*S.zoom*100)/100,S)}}const W=Ae(()=>s.value=!1,100);let E=!1;const V=Ae(()=>{E=!1},30);function _(h){if(n.busy)return;let w=n.zooming;if(E||(E=!0,w=h.ctrlKey||h.metaKey,w&&o("update:zooming",!0)),V(),w){h.stopPropagation(),h.preventDefault();const K=Math.ceil((r.value+h.deltaY*-.01)*100)/100;j(K,{x:h.clientX,y:h.clientY});return}n.horizontal&&(s.value||(s.value=!0),W(),h.deltaY&&(i.value&&(i.value.scrollLeft+=h.deltaY*(n.rtl?-1:1)),h.stopPropagation()))}function x(h){return Math.hypot(h.touches[0].clientX-h.touches[1].clientX,h.touches[0].clientY-h.touches[1].clientY)}function F(h){!l.value&&!n.zooming&&o("click",h)}function m(){o("update:zooming",!1),a.initial=void 0,a.isZoomIn=!1,a.isZoomOut=!1}function $(){if(a.initial)return;const h=i.value;if(!h)return;const w=h.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;w&&(a.initial={el:w,rect:w.getBoundingClientRect()})}function j(h,w){if(a.isZoomIn=a.isZoomIn||!a.isZoomOut&&h>1,a.isZoomIn&&h<1){U(1,w);return}if(a.isZoomOut=a.isZoomOut||!a.isZoomIn&&h<1,a.isZoomOut&&h>1){U(1,w);return}U(h,w)}async function U(h,w){const K=i.value,oe=Math.min($n,Math.max(En,h));if(!K||r.value===oe)return;$();const{initial:ae}=a;if(!ae)return;const z=(w==null?void 0:w.x)??K.clientWidth/2,L=(w==null?void 0:w.y)??K.clientHeight/2;r.value=oe,o("update:zoom",oe),await wt();const{el:ue,rect:de}=ae,ye=ue.offsetWidth/de.width,be=ue.offsetHeight/de.height;K.scrollLeft=ue.offsetLeft-de.left*ye+z*(ye-1),K.scrollTop=ue.offsetTop-de.top*be+L*(be-1)}return(h,w)=>(O(),q("div",{ref_key:"root",ref:i,tabindex:"0",class:Te(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!h.longStrip&&(l.value||s.value||h.zooming),"cursor-grabbing":!h.touchDevice&&l.value,"overflow-hidden":h.zooming}]),style:Oe({"font-size":`${r.value}px`}),onClick:et(F,["stop"])},[_e(h.$slots,"default")],6))}}),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Ks=ke({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=X(null),i=X(!1);return Qe(async()=>{await wt();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(),q("div",{ref_key:"root",ref:o},[_e(r.$slots,"default",{visible:i.value})],512))}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Zd=`.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
- `,Gd={},Qd={class:"loading-indicator"};function Jd(e,t){return O(),q("div",Qd)}const bi=ge(Gd,[["render",Jd],["styles",[Zd]]]),ef=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"}));function tf({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const i=X(n),r=X(o),s=Ae(l,50);pe(e,a=>{n>a&&(n=a)});function l(){i.value!==n&&(i.value=n),r.value!==o&&(r.value=o)}return{min:i,max:r,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const nf={key:0,class:"img img--loading"},of=["src"],rf=["src"],sf=["data-index"],qs=ge(ke({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{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:["update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=X(null),r=Cs(),s=se(()=>{const{width:d,height:b}=r,S=n.isLongStrip?n.isVertical?d.value:b.value:Math.min(d.value,b.value);return Math.min(4,Math.max(1,Math.ceil(S/400-1)))*n.gap}),l=tf({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),a=se(()=>{const{width:{value:d},height:{value:b}}=r;return n.pages.map(S=>{var F;const I=S.some(m=>{var $;return($=m.img)==null?void 0:$.isLoading}),B=S.map(m=>m.index),R={isLoading:I,indexes:B};if(I||B[B.length-1]<l.min.value-1||B[0]>l.max.value+2)return R;const W=S.map(({img:m})=>m).filter(Boolean);if(!W.length||(R.srcs=W.map(({src:m})=>m),W.every(m=>m.hasError)))return R;const V=(F=W.find(m=>!m.hasError))==null?void 0:F.size,_=W.reduce((m,$)=>{var j;return m+(((j=$.size)==null?void 0:j.width)??V.width)},0),x=W.reduce((m,$)=>{var j;return m+(((j=$.size)==null?void 0:j.height)??V.height)},0)/W.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&d/_<b/x?(R.width=Math.min(d,_),R.height=x*R.width/_):R.height=Math.min(b,x),R})}),c=se(()=>{const d=n.isVertical?"width":"height";return a.value.map(b=>b[d]).filter(Boolean).sort((b,S)=>S-b)[0]});function u({indexes:d}){const b=d[d.length-1];b!==void 0&&l.onPageVisible(b)}function p(d){if(!n.isLongStrip){const b=n.isVertical?r.height.value:r.width.value,I=(n.isVertical?d.clientY:n.isRTL?b-d.clientX:d.clientX)/b;if(I<=.2&&n.pageIndex>0){o("prev");return}else if(I>=.8){o("next");return}}o("click")}return(d,b)=>(O(),he(Ws,{zoom:d.zoom,zooming:d.zooming,"page-index":d.pageIndex,class:Te(["rbod",{"rbod--touch":d.touchDevice,"rbod--long-strip":d.isLongStrip,"rbod--paging":!d.isLongStrip,"rbod--vertical":d.isVertical,"rbod--rtl":d.isRTL,"rbod--idle":d.idle,"rbod--first":!d.isLongStrip&&d.pageIndex===0,"rbod--last":!d.isLongStrip&&d.pageIndex===d.totalImgs&&!d.hasNext,"rbod--1page":a.value.length===1}]),"play-controller":d.playController,horizontal:!d.isVertical,rtl:d.isRTL,"touch-device":d.touchDevice,busy:d.busy,"long-strip":d.isLongStrip,style:Oe({"--gap":`${s.value}em`,"--space-top":(d.spaceTop||0)+"px","--screen-width-em":Y(r).width.value+"em","--screen-height-em":Y(r).height.value+"em",...d.isLongStrip?{"--max-size-em":c.value+"em"}:{}}),"onUpdate:zoom":b[0]||(b[0]=S=>o("update:zoom",S)),"onUpdate:zooming":b[1]||(b[1]=S=>o("update:zooming",S)),onDragEnd:b[2]||(b[2]=()=>o("dragEnd")),onClick:p,onScroll:Y(l).onScroll},{default:ie(()=>[(O(!0),q(Ie,null,mn(a.value,S=>(O(),he(Ks,ao({key:d.direction+"_"+S.indexes[0],"data-index":S.indexes[0]},S.indexes.length>1?{"data-index2":S.indexes[1]}:{},{onVisible:()=>u(S)}),{default:ie(({visible:I})=>{var B;return[!((B=S.srcs)!=null&&B.length)||S.isLoading?(O(),q("div",nf,[st(Q(bi,null,null,512),[[ts,I]])])):S.srcs.length==1?(O(),q("img",{key:1,class:Te(["img",{invisible:d.isLongStrip&&S.indexes[0]<d.pageIndex-1}]),src:S.srcs[0],style:Oe({height:S.height!==void 0?S.height+"em":""})},null,14,of)):(O(),q("div",{key:2,class:Te(["img img--double",{"flex-row-reverse":d.isRTL}]),style:Oe({width:S.width!==void 0?S.width+"em":"",height:S.height!==void 0?S.height+"em":""})},[(O(!0),q(Ie,null,mn(S.srcs,R=>(O(),q("div",{key:R},[Z("img",{src:R},null,8,rf)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),Z("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":d.totalImgs},[_e(d.$slots,"end")],8,sf)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"]))}}),[["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;-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
- `]]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),af={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},cf={class:"flex justify-between items-end"},uf={class:"inline-block children-pointer-events-auto w-1/3"},df={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},ff={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},pf={class:"inline-block z-20 relative"},hf={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"},Us=ge(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){return(t,n)=>(O(),q("div",{class:Te(["reader-layout",{"cursor-none":t.idle,"cursor-default":!t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(O(),q("div",af,[Q(bi)])):Ce("",!0),_e(t.$slots,"default"),Z("div",{id:"controls",class:Te(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[Z("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Oe({paddingTop:`${t.spaceTop||0}px`})},[_e(t.$slots,"back"),_e(t.$slots,"exit"),_e(t.$slots,"chapter-nav")],4),Z("div",cf,[Z("div",uf,[_e(t.$slots,"page-nav")]),Z("div",df,[t.fullScreen&&t.zooming?Ce("",!0):_e(t.$slots,"reset-zoom",{key:0})]),Z("div",ff,[_e(t.$slots,"entry"),Z("div",pf,[_e(t.$slots,"settings")]),_e(t.$slots,"full-screen"),_e(t.$slots,"play"),_e(t.$slots,"break-first")])]),Z("div",{class:Te(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[_e(t.$slots,"progress")],2)],2),t.fullScreen&&t.zooming?(O(),q("div",hf,[_e(t.$slots,"reset-zoom")])):Ce("",!0)],2))}}),[["styles",[`.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100vh;left:0;line-height:24px;overflow:hidden;overscroll-behavior:contain;position:fixed;text-align:left;top:0;width:100vw}
26
- `]]]),gf=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ys=ge(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=gs(a,500);Qe(()=>{const p=xs(o),d=Ae(()=>c({width:p.width.value,height:p.height.value}),50);d(),pe(p.width,d),pe(p.height,d)});function a(){i.value>=r.value.length-1?n("hide"):i.value++}function c(p){const d=u();r.value=d.map(({rect:b,text:S})=>{const I=b.top<p.height-b.bottom,B=b.left<p.width-b.right;return{text:S,style:{left:`${b.left}px`,top:`${b.top}px`,width:`${b.width}px`,height:`${b.height}px`},textStyle:{left:B?`${b.left-12}px`:void 0,right:B?void 0:`${p.width-b.left}px`,top:I?`${b.bottom+12}px`:`${b.top+20}px`,textAlign:I?void 0:"right",transform:I?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function u(){var b;const p=(b=o.value)==null?void 0:b.parentElement;if(!p)return[];const d=[];return p.querySelectorAll("[data-tour]").forEach(S=>{var R;const I=(R=S.getAttribute("data-tour"))==null?void 0:R.trim();if(!(I!=null&&I.length))return;const B=S.getBoundingClientRect();d.push({rect:B,text:I})}),d}return(p,d)=>{var b,S;return O(),q(Ie,null,[Z("div",{class:Te(["fixed-screen 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:d[0]||(d[0]=et((...I)=>Y(l)&&Y(l)(...I),["stop"]))},[s.value?(O(),q("div",{key:i.value,class:"tour__target",style:Oe(s.value.style)},null,4)):Ce("",!0),(O(),q("div",{key:i.value,class:"tour__text",style:Oe((b=s.value)==null?void 0:b.textStyle)},Xe(((S=s.value)==null?void 0:S.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
- `]]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),vf={},bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_f=[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 yf(e,t){return O(),q("svg",bf,_f)}const Xs=ge(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),xf={},Sf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kf=[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 If(e,t){return O(),q("svg",Sf,kf)}const Zs=ge(xf,[["render",If]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Tf={},Ef={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$f=[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 Pf(e,t){return O(),q("svg",Ef,$f)}const Gs=ge(Tf,[["render",Pf]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Of={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zf=[Z("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Af(e,t){return O(),q("svg",Lf,zf)}const Qs=ge(Of,[["render",Af]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Df={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Rf=[Z("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Nf(e,t){return O(),q("svg",Bf,Rf)}const Js=ge(Df,[["render",Nf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Ff={},Hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Wf=[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 Kf(e,t){return O(),q("svg",Hf,Wf)}const el=ge(Ff,[["render",Kf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Uf={},Yf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Xf=[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 Zf(e,t){return O(),q("svg",Yf,Xf)}const tl=ge(Uf,[["render",Zf]]),Gf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),Qf={},Jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ep=[Z("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function tp(e,t){return O(),q("svg",Jf,ep)}const nl=ge(Qf,[["render",tp]]),np=Object.freeze(Object.defineProperty({__proto__:null,default:nl},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:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function sp(e,t){return O(),q("svg",ip,rp)}const ol=ge(op,[["render",sp]]),lp=Object.freeze(Object.defineProperty({__proto__:null,default:ol},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:"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 dp(e,t){return O(),q("svg",cp,up)}const il=ge(ap,[["render",dp]]),fp=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function rl(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 pp(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 rl(o)}function go(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const i=e.getAttribute(o);if(i)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}async function hp(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 gp{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){me(this,"reactiveResults",cn({}));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=go(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await rl(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 ln(300),await this.downloadSrc(t))}async onImgElLoaded(t,n,o){var r;if(!this.isMounted)return;const i=go(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 pp(o,n):n;if(!i||!this.isMounted)return;const r=await hp(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 mp=3;class vp{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=Ae(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<mp&&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 ln(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Ut{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}class sl{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 bp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await sn(50,30,()=>document.querySelector(n));return i?(_i(i),await ln(),!0):!1}class _p{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=Ae(()=>{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(Ae(()=>{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 bp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await sn(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 sn(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 yp(t,o):ll(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function yp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return ll(e);const o=new sl;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(al(l))return new Ut(void 0,l,r)}else if(l instanceof HTMLImageElement&&cl(l)){const a=go(l);return new Ut(a,l,r)}}return new Ut(void 0,void 0,r)})}function ll(e){const t=[],n={},o=new sl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)al(r)&&t.push(new Ut(void 0,r));else if(r instanceof HTMLImageElement&&cl(r)){const s=go(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 Ut(s,r))}}}),t}function al(e){return e.isConnected&&ul(e.width,e.height)}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||ul(t.width,t.height)}function ul(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}function dl(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 wp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Ut(void 0,o));return dl(n)}function mo({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:i}){const r=Math.floor(t),s=e[Math.min(e.length-1,r)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=fl(l);if(!c)return;const u=t>=e.length?a.height:i?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function fl(e,t=new Map){if(!e)return;const{offsetTop:n,offsetParent:o}=e;if(o&&n&&t.set(o,Math.max(t.get(o)??0,n)),!(e.scrollHeight-e.clientHeight>=10&&(e===document.documentElement||window.getComputedStyle(e).overflow!=="visible")))return fl(e.parentElement,t);let r=0;return t.forEach((s,l)=>{r+=l===o?s-n:s}),{el:e,top:r}}function xp(e){var S,I,B,R;const t=X((S=e.raw.value)==null?void 0:S.isWebtoon),n=X((I=e.raw.value)==null?void 0:I.isWebtoon);let o=!1;const i=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),r=((R=(B=e.raw.value)==null?void 0:B.imgs)==null?void 0:R.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:r.length?wp(r):void 0,l=r.map(W=>new Ut(W)),a,c;const u=new gp({isIOS:i,onDownloaded(W,E){let V=l.indexOf(W);if(V===-1){const _=W.computedSrc;V=l.findIndex(x=>x.computedSrc===_)}if(V!==-1){if(E&&!t.value&&V>Math.min(1,l.length-3)&&V<Math.max(l.length-2,3)){const _=E.height/E.width,x=_>2||_<.5,F=_>1.6||_<.6;t.value!==x&&(t.value=x),n.value!==F&&(n.value=F)}d()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),p=new vp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:W=>{const E=W.computedSrc;return!!(E&&u.reactiveResults[E])},callback:W=>u.download(W)});if(r.length)p.run();else{let W=!1;a=new _p({spec:e.spec,async onChanged(E){var V;if(l=E,!e.raw.value&&!E.length){e.onError("no_img");return}(V=e.spec)!=null&&V.imgDivs&&!W&&e.isAutoShow!==!1&&e.page.value&&(W=!0,mo({rawImages:E,page:e.page.value,skipIfVisible:!0}),await ln(1)),s===void 0&&e.isAutoShow===!1&&(s=dl(E)),p.run()}})}Wo(()=>{u.dispose(),p.dispose(),a==null||a.dispose(),c&&clearTimeout(c),o&&mo({rawImages:l,page:e.page.value})});function d(){var _,x,F;if(o||t.value===void 0||s===void 0)return;const W=Math.max(0,Math.min(s,l.length)),E=Math.min(Math.floor(W),l.length-1);if(E>=1){if(!((_=l[E])==null?void 0:_.computedSrc)){e.isAutoShow&&mo({rawImages:l,page:E});return}for(let $=E;$<l.length;$++){const j=(x=l[$])==null?void 0:x.computedSrc;if(!j)return;const U=u.reactiveResults[j];if(!U)return;if(!U.invalid){if(!U.size&&!U.hasError)return;break}}for(let $=E-1;$>=0;$--){const j=(F=l[$])==null?void 0:F.computedSrc;if(!j)break;const U=u.reactiveResults[j];if(!U)return;if(!U.invalid){if(!U.size&&!U.hasError)return;break}}}if(o)return;o=!0,e.onReady(W);let V=!0;pe(()=>Math.floor(e.page.value),(m,$)=>{mo({rawImages:l,page:m,smooth:i,isScrollDown:$===void 0||m>$||l.length===1,skipIfVisible:V&&l.length>1}),V=!1,$??($=-1),p.run()},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(u.reactiveResults);const W=[];return l.forEach(E=>{const V=E.computedSrc,_=V?u.reactiveResults[V]:void 0;(V&&!(_!=null&&_.invalid)||E.parentEl)&&W.push(_)}),W}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function Sp(e,t,n){return se(()=>t.value?pl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function pl(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})),...pl(e.slice(r.length),t&&i,n+r.length)]}function kp(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 Ip(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const yi=40;function Cp({page:e,direction:t,style:n,isLongStrip:o,isVertical:i,isRTL:r,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:p,onFinished:d}){let b=!1,S=!1,I=!1,B;const R=Ae($,300),W=gs(()=>{$(),R()},300),E=Ae(x,50);async function V(){F(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function _(){var z;S=!0,p(),j(),(z=l.value)==null||z.addEventListener("scroll",W),setTimeout(()=>{const{width:L,height:ue}=Cs();pe(L,()=>{i.value&&E()}),pe(ue,()=>{i.value||E()}),pe(n,x),pe(t,x)},300)}async function x(){if(!S||b)return;b=!0,await wt();const z=e.value;if(h()===z){b=!1;return}F(z)}function F(z,{smooth:L,ensureLastImgVisibility:ue=!1}={smooth:!1}){const de=l.value;if(!de)return;b=!0;const ye=async()=>{await wt(),b=!1,S||_()},be=Math.floor(z),Re=de.querySelector(`[data-index="${be}"],[data-index2="${be}"]`);if(!Re){ye();return}c(async()=>{await m(de,!o.value&&L,async()=>{await ae(de,Re,{smooth:L,page:z,ensureLastImgVisibility:ue})}),await ye()})}async function m(z,L,ue){L&&z.style.setProperty("scroll-snap-type","none"),await ue(),L&&z.style.removeProperty("scroll-snap-type")}function $(){if(b)return;const z=h();z!==void 0&&z!==e.value&&u(z),j()}function j(){I||!I&&U()&&(I=!0,d())}function U(){const z=l.value;if(!z)return!1;const L=o.value?a.value?3:!i.value&&z.clientWidth>z.clientHeight?2.25:2.5:2;return i.value?z.scrollHeight-z.scrollTop<z.clientHeight*L:z.scrollWidth-(r.value?-z.scrollLeft:z.scrollLeft)<z.clientWidth*L}function h(){const z=w();return z?(+z.getAttribute("data-index")||0)+(o.value?K(z):0):void 0}function w(){var L;if(B??(B=l.value.getRootNode()),!B)return;const z=(L=B.elementsFromPoint)==null?void 0:L.call(B,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-yi:yi,i.value&&o.value?s.value||yi:window.innerHeight/2);if(z)for(let ue=0;ue<z.length;ue++){const de=z[ue];if(de.hasAttribute("data-index"))return de;if(de===l.value)break}}function K(z){const L=z.getBoundingClientRect();return i.value?Math.abs(L.top-s.value)/L.height:r.value?Math.max(0,L.right-l.value.clientWidth)/L.width:Math.abs(L.left)/L.width}let oe=!1;async function ae(z,L,ue){if(oe)return;const de=L.getBoundingClientRect();if(!o.value){if(i.value){if(de.top<=0&&de.bottom>=z.clientHeight)return}else if(de.left<=0&&de.right>=z.clientWidth)return}oe=!0;const ye=i.value?z.scrollTop:z.scrollLeft,be=ue.page,Re=o.value?be%1:0,Xt=await sn(30,10,async()=>{await ln();let Pe;if(!(L.offsetHeight<10))return o.value?i.value?Pe=L.offsetTop+Re*L.offsetHeight-s.value:r.value?Pe=L.offsetLeft-z.clientWidth+L.offsetWidth-Re*L.offsetWidth:Pe=L.offsetLeft+Re*L.offsetWidth:i.value?Pe=L.offsetTop+(de.top>0?0:de.height-z.clientHeight):Pe=L.offsetLeft+(de.left>0?0:de.width-z.clientWidth),be>.5&&Math.abs(Pe)<100?void 0:Pe})??0,Ot=ue.ensureLastImgVisibility?i.value?Math.min(Xt,z.scrollHeight-z.clientHeight*2):r.value?Math.max(Xt,-(z.scrollWidth-z.clientWidth*2)):Math.min(Xt,z.scrollWidth-z.clientWidth*2):Xt;if(!ue.smooth){i.value?z.scrollTop=Ot:z.scrollLeft=Ot,oe=!1;return}const Ne=Ot-ye,ht=30;let gt=0;return new Promise(Pe=>{(function qe(){const Lt=Tp(gt,ye,Ne,ht);i.value?z.scrollTop=Lt:z.scrollLeft=Lt,gt++,gt<=ht?requestAnimationFrame(qe):(Pe(),oe=!1)})()})}return{init:V,goToPage:F}}function Tp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Ep({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 p,d;const b=Ae(x,100),S=Ae(()=>{u.value=!0},t?2e3:1e3),I=()=>setTimeout(()=>{u.value=!1,S()},30);I(),t||Pt(window,"mousemove",I);const B=ys();Qe(()=>{pe(B,m=>{c.value&&(m==="visible"?x():d==null||d())}),pe(s,()=>R()),pe(r,m=>{m||E()})}),Rt(E);async function R(m){c.value&&(d==null||d()),m&&(await wt(),await m()),c.value&&b()}function W(){c.value?E():V()}function E(){c.value&&(c.value=!1,d==null||d(),I())}function V(){!c.value&&r.value&&(c.value=!0,x(),I())}function _(){d==null||d()}function x(){const m=n.value;if(!c.value||!m)return;const $=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,j=F();if($<=j){E();return}d=()=>{p=Date.now(),d=void 0};const U=Date.now();p=U;const h=.05*s.value,w=o.value?"scrollTop":"scrollLeft";let K=Date.now(),oe=0;const ae=()=>{if(p!==U)return;const z=Date.now(),L=z-K;K=z;const ue=h*L+oe;ue>=1?(oe=ue%1,m[w]+=(ue-oe)*(i.value?-1:1)):oe=ue,setTimeout(ae,1)};ae()}function F(){const m=n.value;return o.value?m.scrollTop:i.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:c,isIdle:u,toggle:W,play:V,pause:_,resume:x,stop:E,interfere:R,awake:I}}function $p({raw:e,spec:t,siteMeta:n}){var j,U,h;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 p=c&&!c.url?document.querySelectorAll(c.sel):void 0;async function d(w,K){if(w.slug)b(w.slug,K);else if(w.elIndex!==void 0&&p&&p[w.elIndex]){let oe=null;c!=null&&c.trigger&&(oe=document.querySelector(c.trigger)),oe&&(oe.click(),await new Promise(ae=>setTimeout(()=>ae(),50))),_i(p[w.elIndex]),oe&&oe.click()}}function b(w,K){const oe=Pp(a,w,(n==null?void 0:n.trailing)??!0);K?window.open(oe,"_blank","noopener"):location.href=oe}function S(w){const K=E[w];return K?oe=>d(K,oe):void 0}function I(w,K,oe){if(w){const ae=document.querySelector(w);ae&&_i(ae);return}K&&b(K,oe)}const B=o??i,R=c==null?void 0:c.url,W=((j=s.chapters)==null?void 0:j.filter(w=>w.slug||!R&&w.elIndex!==void 0))??[],E=W.length>1?W:[],V=(U=e.prev)==null?void 0:U.slug,_=(h=e.next)==null?void 0:h.slug,{prevBtn:x,nextBtn:F}=t??{};let m=V||x&&!E.length?w=>I(x,V,w):void 0,$=_||F&&!E.length?w=>I(F,_,w):void 0;if(E.length){if(R&&(u=E.findIndex(w=>w.slug===e.slug)),u===-1&&(u=E.findIndex(w=>(w.vol??w.inferVol)===B&&w.chap===r)),R&&u===-1&&(u=E.findIndex(w=>w.slug&&l.startsWith(`${w.slug}-`)&&l.length-w.slug.length>3)),u!==-1)m??(m=S(u+1)),$??($=S(u-1));else if(!V&&!_){const w=E.findIndex(K=>{const oe=K.vol??K.inferVol;return B===void 0||oe===void 0||B===oe?K.chap<r:oe<B});w!==-1?(m=S(w),$=S(w-1)):$=S(E.length-1)}}return{activeIndex:u,activeLabel:hl({vol:o,chap:r}),prev:m,next:$,chapters:E.map(w=>({label:hl(w),select:K=>d(w,K)}))}}function hl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Pp(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 Mp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},gl=ge(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}},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,s=-1;const l=X(!1),a=X(!1),c=hu({touchDevice:n.touchDevice}),u=kp(n.page,n.isAutoShow),p=se(()=>n.spaceTop??0),{asyncImgs:d,isWebtoon:b,maybeWebtoon:S}=xp({raw:se(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:p,async onReady(v){Ot(v),l.value=!0},onError:()=>{o("error"),N()}}),{direction:I,style:B,isRTL:R,isDouble:W,isVertical:E,isLongStrip:V,gap:_,speed:x,zoom:F,breakFirst:m,autoNextSeconds:$}=ed({titleName:se(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:b,maybeWebtoon:S,defaultStyle:n.readerStyle,defaultDirection:n.direction}),j=X(!1),U=Sp(d,W,m),h=se(()=>u.value>=d.value.length),w=se(()=>n.raw?$p({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta}):void 0),K=X(null),oe=X(null),ae=X(!1),z=X(!1),L=Ep({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var v;return(v=K.value)==null?void 0:v.$el}),speed:x,isRTL:R,isVertical:E,isLongStrip:V}),ue=se(()=>!n.touchDevice&&L.isIdle.value&&!c.value&&!j.value),de=se({get(){return F.value},set(v){L.interfere(()=>{F.value=v})}}),ye=Cp({page:u,style:B,direction:I,isLongStrip:V,isVertical:E,isRTL:R,spaceTop:p,isWebtoon:b,scrollEl:se(()=>{var v;return(v=K.value)==null?void 0:v.$el}),interferePlayer:v=>L.interfere(v),onChangedPage:Ot,onInitialized(){o("ready"),a.value=!0,r=Ne()},onFinished:()=>o("finished")}),be=se(()=>Math.floor(u.value)),Re=()=>L.interfere(()=>ln(100));Su().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const T=V.value&&E.value,J=V.value&&!E.value,ne=!V.value&&E.value,we=!V.value&&!E.value;switch(v.key){case" ":v.preventDefault(),V.value?(G(!1),L.toggle()):M();break;case"ArrowUp":case"PageUp":T?Re():ne&&be.value!==0&&(v.preventDefault(),k());break;case"ArrowDown":case"PageDown":T?Re():ne&&!h.value&&(v.preventDefault(),C());break;case"ArrowLeft":J?Re():we?(v.preventDefault(),g()):E.value&&qe();break;case"ArrowRight":J?Re():we?(v.preventDefault(),y()):E.value&&Pe();break}},onKeyUp:v=>{switch(v.key){case"b":m.value=!m.value;break;case"f":P();break;case"t":D();break;case"h":G();break}}}),Pt("fullscreenchange",()=>{ae.value=!!document.fullscreenElement}),pe(L.isPlaying,v=>{v||M(!1),o("playingChanged",v)}),pe(L.isIdle,v=>{L.isPlaying.value&&M(v)}),pe(c,v=>{!v&&L.isIdle.value?L.awake():v&&n.fullScreen&&M()});function Ot(v){if(u.value===v)return;const T=d.value.length;if(v<0||v>=T+1)return;const J=u.value;u.value=v;const ne=Math.floor(v*100)/100;ne!==s&&(s=ne,o("pageChanged",ne)),v>=T?(M(!1),L.stop()):v<.01&&J>v?(M(!1),L.awake()):i||(V.value?r!==void 0&&Ne()-r>300&&M(!0):Math.abs(J-v)===1&&M(!0))}function Ne(){var T;const v=(T=K.value)==null?void 0:T.$el;return v?E.value?v.scrollTop:R.value?-v.scrollLeft:v.scrollLeft:0}function ht(){!n.touchDevice&&!V.value&&ye.goToPage(be.value,{smooth:!0})}function gt(){if(L.isPlaying.value){!n.fullScreen||!n.touchDevice?L.stop():L.awake();return}M()}function Pe(v=!1){var T,J;(J=(T=w.value)==null?void 0:T.next)==null||J.call(T,v)}function qe(v=!1){var T,J;(J=(T=w.value)==null?void 0:T.prev)==null||J.call(T,v)}function Lt(v){R.value?Pe(f(v)):qe(f(v))}function Pn(v){R.value?qe(f(v)):Pe(f(v))}function f(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function g(){R.value?C():k()}function y(){R.value?k():C()}function k(){var J;const v=U.value,T=h.value?v[v.length-1][0].index:(J=v[A()-1])==null?void 0:J[0].index;T!==void 0?ye.goToPage(T):qe()}function C(){var v,T;if(h.value)Pe();else{const J=((T=(v=U.value[A()+1])==null?void 0:v[0])==null?void 0:T.index)??d.value.length;ye.goToPage(J)}}function A(){const v=be.value,T=U.value.findIndex(J=>J.some(({index:ne})=>ne===v));return T===-1?U.value.length-1:T}function N(){Ip(),o("dispose")}async function M(v){if(c.value&&!n.fullScreen)return;const T=typeof v=="boolean"?v:!n.fullScreen;T!==n.fullScreen&&(i=!0,o("fullScreenChanged",T),T&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function D(){n.entryId?te():H()}function P(){var v,T;document.fullscreenElement?document.exitFullscreen():(T=(v=oe.value)==null?void 0:v.$el)==null||T.requestFullscreen()}function H(){L.stop(),o("addEntry")}function te(){L.stop(),o("openEntry",n.entryId)}function G(v){z.value!==v&&(z.value=!z.value,z.value&&L.isPlaying.value&&L.stop())}return(v,T)=>v.immediate||l.value?(O(),he(Us,{key:0,ref_key:"root",ref:oe,loading:!a.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,zooming:j.value,idle:ue.value,"space-top":p.value,rtl:Y(R),onClick:T[14]||(T[14]=et(()=>{},["stop"]))},_r({settings:ie(()=>{var J;return[Q(Ls,{"reader-style":Y(B),"onUpdate:readerStyle":T[5]||(T[5]=ne=>Ee(B)?B.value=ne:null),direction:Y(I),"onUpdate:direction":T[6]||(T[6]=ne=>Ee(I)?I.value=ne:null),gap:Y(_),"onUpdate:gap":T[7]||(T[7]=ne=>Ee(_)?_.value=ne:null),speed:Y(x),"onUpdate:speed":T[8]||(T[8]=ne=>Ee(x)?x.value=ne:null),zoom:de.value,"onUpdate:zoom":T[9]||(T[9]=ne=>de.value=ne),"auto-next-seconds":Y($),"onUpdate:autoNextSeconds":T[10]||(T[10]=ne=>Ee($)?$.value=ne:null),name:(J=v.raw)==null?void 0:J.title.name,webtoon:Y(b),disabled:!l.value,onHelp:G},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[Q(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[j.value||Y(F)!==1?(O(),he(As,{key:0,zoom:de.value,onClick:T[13]||(T[13]=et(()=>de.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):Ce("",!0)]),_:1})]),progress:ie(()=>[Z("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Oe({width:`${Y(u)/(Y(d).length-1)*100}%`})},null,4)]),default:ie(()=>{var J;return[l.value?(O(),he(qs,{key:0,ref_key:"body",ref:K,zoom:de.value,"onUpdate:zoom":T[0]||(T[0]=ne=>de.value=ne),zooming:j.value,"onUpdate:zooming":T[1]||(T[1]=ne=>j.value=ne),"page-index":be.value,pages:Y(U),"total-imgs":Y(d).length,direction:Y(I),gap:Y(_),"is-long-strip":Y(V),isRTL:Y(R),"is-vertical":Y(E),"space-top":p.value,busy:Y(c),idle:ue.value,"play-controller":Y(L),"touch-device":v.touchDevice,"has-next":!!((J=w.value)!=null&&J.next),onVnodeMounted:Y(ye).init,onPrev:k,onNext:C,onClick:gt,onDragEnd:ht,onWheelPassive:T[2]||(T[2]=()=>Y(L).interfere())},_r({_:2},[l.value&&Y(d).length?{name:"end",fn:ie(()=>{var ne;return[Q(Ts,{"has-next":!!((ne=w.value)!=null&&ne.next),seconds:Y($),onNext:Pe,onHide:N},null,8,["has-next","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onVnodeMounted"])):Ce("",!0),a.value&&!h.value&&!v.tourEnabled?(O(),he(Ns,{key:1,direction:Y(I)},null,8,["direction"])):Ce("",!0),a.value&&!h.value?(O(),he(Hs,{key:2,playing:!!Y(L).isPlaying.value},null,8,["playing"])):Ce("",!0),z.value?(O(),he(Vs,{key:3,"touch-device":v.touchDevice,onHide:G},null,8,["touch-device"])):Ce("",!0),v.tourEnabled?(O(),he(Ys,{key:4,onHide:T[3]||(T[3]=()=>o("tourEnabledChanged",!1))})):Ce("",!0)]}),_:2},[v.raw?{name:"back",fn:ie(()=>[Q(tt,{href:v.raw.title.url,title:"Back to manga"},{default:ie(()=>[Q(Xs)]),_:1},8,["href"])]),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:N},{default:ie(()=>[Q(il)]),_:1})]),key:"1"},w.value?{name:"chapter-nav",fn:ie(()=>{var J;return[Q(Bs,{"touch-device":v.touchDevice,"chapter-spec":(J=v.spec)==null?void 0:J.chapter,data:w.value,onGetHiddenChapters:T[4]||(T[4]=()=>o("getHiddenChapters"))},null,8,["touch-device","chapter-spec","data"]),w.value.next||w.value.prev?(O(),q("div",Mp,[Q(tt,{title:`${Y(R)?"Next":"Prev"} chapter (←)`,disabled:Y(R)?!w.value.next:!w.value.prev,class:"!rounded-r-none",onClick:Lt},{default:ie(()=>[Q(Qs)]),_:1},8,["title","disabled"]),Q(tt,{title:`${Y(R)?"Prev":"Next"} chapter (→)`,disabled:Y(R)?!w.value.prev:!w.value.next,class:"!rounded-l-none",onClick:Pn},{default:ie(()=>[Q(Js)]),_:1},8,["title","disabled"])])):Ce("",!0)]}),key:"2"}:void 0,Y(U).length?{name:"page-nav",fn:ie(()=>[Q(Fs,{"model-value":be.value,disabled:!a.value,pages:Y(U),"total-imgs":Y(d).length,"onUpdate:modelValue":Y(ye).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:D},{default:ie(()=>[v.entryId?(O(),he(Gs,{key:0})):(O(),he(Zs,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[Q(tt,{title:`${ae.value?"Exit":"Enter"} fullscreen (F)`,onClick:P},{default:ie(()=>[ae.value?(O(),he(ol,{key:0})):(O(),he(nl,{key:1}))]),_:1},8,["title"])]),key:"5"},Y(V)?{name:"play",fn:ie(()=>[Q(tt,{"data-tour":"Press here to play like a video",title:`${Y(L).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:T[11]||(T[11]=()=>Y(L).toggle())},{default:ie(()=>[Y(L).isPlaying.value?(O(),he(mi,{key:0})):(O(),he(vi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,Y(W)?{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:!a.value,onClick:T[12]||(T[12]=()=>m.value=!Y(m))},{default:ie(()=>[Y(m)?(O(),he(tl,{key:0})):(O(),he(el,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):Ce("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[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%}.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-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-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
- `]]]),Op=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),Lp={},zp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ap=[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 jp(e,t){return O(),q("svg",zp,Ap)}const Dp=Object.freeze(Object.defineProperty({__proto__:null,default:ge(Lp,[["render",jp]])},Symbol.toStringTag,{value:"Module"})),Bp=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second~*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body>:not(gear-second){visibility:hidden!important}
29
- `,Yt="gear-second",wi={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},Ke={promise:void 0,data:cn({...wi})};async function Rp(e){return Ke.promise?(Ke.data.raw=e.raw,await Ke.promise):(Ke.promise=new Promise(t=>{let n=!1,o=!1,i,r;const s=!!e.spaceTop||!!e.isAutoShow&&!!e.page,l=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(Yt),Object.assign(Ke.data,wi),Ke.promise=void 0)},a=Ae(p=>{var d;return!n&&((d=e.onPageChanged)==null?void 0:d.call(e,p))},300);Object.assign(Ke.data,wi,e,{immediate:s,onReady(){s||(c(),document.documentElement.classList.add(Yt))},onError(){var p,d;l(),o?((p=e.onDispose)==null||p.call(e),(d=e.onError)==null||d.call(e)):u()},onDispose:()=>{var p;l(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var d;Ke.data.fullScreen=p,(d=e.onFullScreenChanged)==null||d.call(e,p)},onPageChanged:p=>{Ke.data.page=p,a(p)},onTourEnabledChanged:p=>{Ke.data.tourEnabled=p}}),Np().then(()=>{if(n){u();return}r=document.createElement(Yt),s?(document.documentElement.classList.add(Yt),document.body.appendChild(r),setTimeout(c)):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(Yt),document.body.appendChild(r))},100)});function c(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(p){Object.assign(Ke.data,p)},dispose:l}))}function u(){o||t(void 0)}}),await Ke.promise)}async function Np(){if(window.customElements.get(Yt))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Bp)),document.head.appendChild(e);const t=Nc({styles:[await Vp()],data:()=>({readerData:Ke.data}),render(){return Ur(gl,this.readerData)}});window.customElements.define(Yt,t)}async function Vp(){const e=Object.assign({"./App.vue":Op,"./components/AutoNext.vue":pu,"./components/BottomSheet.vue":Tu,"./components/ButtonDropdown.vue":Cd,"./components/ButtonIcon.vue":mu,"./components/ButtonReaderSettings.vue":nd,"./components/ButtonResetZoom.vue":dd,"./components/ChapterNav.vue":Td,"./components/DirectionToast.vue":Ld,"./components/GesturesContainer.vue":Yd,"./components/HelpScreen.vue":Ad,"./components/InputPercentage.vue":Pu,"./components/InputSelect.vue":Ou,"./components/IntersectionWrapper.vue":Xd,"./components/LoadingIndicator.vue":ef,"./components/PageNav.vue":jd,"./components/PauseToast.vue":Ud,"./components/ReaderBody.vue":lf,"./components/ReaderLayout.vue":gf,"./components/ReaderTour.vue":mf,"./components/TableField.vue":Au,"./components/icons/IconBack.vue":wf,"./components/icons/IconBookmarkNew.vue":Cf,"./components/icons/IconBookmarked.vue":Mf,"./components/icons/IconChevronLeft.vue":jf,"./components/icons/IconChevronRight.vue":Vf,"./components/icons/IconClose.vue":wu,"./components/icons/IconDouble.vue":qf,"./components/icons/IconDoubleSkip.vue":Gf,"./components/icons/IconExclamationCircle.vue":Dp,"./components/icons/IconFullscreen.vue":np,"./components/icons/IconFullscreenExit.vue":lp,"./components/icons/IconHelp.vue":Nu,"./components/icons/IconLoading.vue":md,"./components/icons/IconNext.vue":Od,"./components/icons/IconPause.vue":Vd,"./components/icons/IconPlay.vue":qd,"./components/icons/IconReaderExit.vue":fp,"./components/icons/IconSettings.vue":Ku,"./components/icons/IconTriangle.vue":wd,"./components/icons/IconZoom.vue":ld}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Rp});
20
+ **/const bc="http://www.w3.org/2000/svg",yc="http://www.w3.org/1998/Math/MathML",Ct=typeof document<"u"?document:null,Yr=Ct&&Ct.createElement("template"),_c={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"?Ct.createElementNS(bc,e):t==="mathml"?Ct.createElementNS(yc,e):Ct.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>Ct.createTextNode(e),createComment:e=>Ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ct.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{Yr.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=Yr.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",Sn="animation",kn=Symbol("_vtc"),nn=(e,{slots:t})=>Ur(Ea,wc(e),t);nn.displayName="Transition";const Xr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=xe({},hr,Xr);const Ht=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zr=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function wc(e){const t={};for(const w in e)w in Xr||(t[w]=e[w]);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:d=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,k=xc(i),S=k&&k[0],B=k&&k[1],{onBeforeEnter:V,onEnter:K,onEnterCancelled:$,onLeave:R,onLeaveCancelled:y,onBeforeAppear:x=V,onAppear:H=K,onAppearCancelled:g=$}=t,E=(w,m,N)=>{Wt(w,m?u:l),Wt(w,m?c:s),N&&N()},j=(w,m)=>{w._isLeaving=!1,Wt(w,f),Wt(w,b),Wt(w,d),m&&m()},Q=w=>(m,N)=>{const te=w?H:K,le=()=>E(m,w,N);Ht(te,[m,le]),Gr(()=>{Wt(m,w?a:r),Et(m,w?u:l),Zr(te)||Qr(m,o,S,le)})};return xe(t,{onBeforeEnter(w){Ht(V,[w]),Et(w,r),Et(w,s)},onBeforeAppear(w){Ht(x,[w]),Et(w,a),Et(w,c)},onEnter:Q(!1),onAppear:Q(!0),onLeave(w,m){w._isLeaving=!0;const N=()=>j(w,m);Et(w,f),Ic(),Et(w,d),Gr(()=>{w._isLeaving&&(Wt(w,f),Et(w,b),Zr(R)||Qr(w,o,B,N))}),Ht(R,[w,N])},onEnterCancelled(w){E(w,!1),Ht($,[w])},onAppearCancelled(w){E(w,!0),Ht(g,[w])},onLeaveCancelled(w){j(w),Ht(y,[w])}})}function xc(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 xo(e)}function Et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[kn]||(e[kn]=new Set)).add(t)}function Wt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[kn];n&&(n.delete(t),n.size||(e[kn]=void 0))}function Gr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Sc=0;function Qr(e,t,n,o){const i=e._endId=++Sc,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=kc(e,t);if(!s)return o();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),r()},d=b=>{b.target===e&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),e.addEventListener(c,d)}function kc(e,t){const n=window.getComputedStyle(e),o=k=>(n[k]||"").split(", "),i=o(`${Tt}Delay`),r=o(`${Tt}Duration`),s=Jr(i,r),l=o(`${Sn}Delay`),a=o(`${Sn}Duration`),c=Jr(l,a);let u=null,f=0,d=0;t===Tt?s>0&&(u=Tt,f=s,d=r.length):t===Sn?c>0&&(u=Sn,f=c,d=a.length):(f=Math.max(s,c),u=f>0?s>c?Tt:Sn:null,d=u?u===Tt?r.length:a.length:0);const b=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:b}}function Jr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>es(n)+es(e[o])))}function es(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ic(){return document.body.offsetHeight}function Cc(e,t,n){const o=e[kn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),ts={beforeMount(e,{value:t},{transition:n}){e[ii]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):In(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),In(e,!0),o.enter(e)):o.leave(e,()=>{In(e,!1)}):In(e,t))},beforeUnmount(e,{value:t}){In(e,t)}};function In(e,t){e.style.display=t?e[ii]:"none"}const Tc=Symbol("");function Ec(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[Tc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");ii in e&&(o.display=i)}const ns=/\s*!important$/;function ri(e,t,n){if(ee(n))n.forEach(o=>ri(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=$c(e,t);ns.test(n)?e.setProperty(He(o),n.replace(ns,""),"important"):e[o]=n}}const os=["Webkit","Moz","ms"],si={};function $c(e,t){const n=si[t];if(n)return n;let o=De(t);if(o!=="filter"&&o in e)return si[t]=o;o=jn(o);for(let i=0;i<os.length;i++){const r=os[i]+o;if(r in e)return si[t]=r}return t}const is="http://www.w3.org/1999/xlink";function Pc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(is,t.slice(6,t.length)):e.setAttributeNS(is,t,n);else{const r=$l(t);n==null||r&&!Ei(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Mc(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=Ei(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function on(e,t,n,o){e.addEventListener(t,n,o)}function Oc(e,t,n,o){e.removeEventListener(t,n,o)}const rs=Symbol("_vei");function Lc(e,t,n,o,i=null){const r=e[rs]||(e[rs]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=zc(t);if(o){const c=r[t]=Dc(o,i);on(e,l,c,a)}else s&&(Oc(e,l,s,a),r[t]=void 0)}}const ss=/(?:Once|Passive|Capture)$/;function zc(e){let t;if(ss.test(e)){t={};let o;for(;o=e.match(ss);)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 Ac=Promise.resolve(),jc=()=>li||(Ac.then(()=>li=0),li=Date.now());function Dc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ge(Bc(o,n.value),t,5,[o])};return n.value=e,n.attached=jc(),n}function Bc(e,t){if(ee(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 ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Rc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Cc(e,o,c):t==="style"?Ec(e,n,o):On(t)?vo(t)||Lc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nc(e,t,o,c))?Mc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Pc(e,t,o,c))};function Nc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ls(t)&&re(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ls(t)&&Se(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Vc(e,t){const n=ke(e);class o extends ai{constructor(r){super(n,r,t)}}return o.def=n,o}const Fc=typeof HTMLElement<"u"?HTMLElement:class{};class ai extends Fc{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),wt(()=>{this._connected||(fs(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&&!ee(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=xo(this._props[a])),(l||(l=Object.create(null)))[De(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=ee(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(De))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let n=this.getAttribute(t);const o=De(t);this._numberProps&&this._numberProps[o]&&(n=xo(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(){fs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=G(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 as=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Dn(t,n):t};function Hc(e){e.target.composing=!0}function cs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ci=Symbol("_assign"),Wc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ci]=as(i);const r=o||i.props&&i.props.type==="number";on(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),r&&(l=wo(l)),e[ci](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",Hc),on(e,"compositionend",cs),on(e,"change",cs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ci]=as(r),e.composing)return;const s=i||e.type==="number"?wo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Kc=["ctrl","shift","alt","meta"],qc={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)=>Kc.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=qc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},Uc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},us=(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||Uc[s]===r))return e(i)})},Yc=xe({patchProp:Rc},_c);let ds;function Xc(){return ds||(ds=Qa(Yc))}const fs=(...e)=>{Xc().render(...e)};var ps;const ui=typeof window<"u",Zc=e=>typeof e=="string",$t=()=>{};ui&&((ps=window==null?void 0:window.navigator)!=null&&ps.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function po(e){return typeof e=="function"?e():U(e)}function hs(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 Gc(e,t={}){let n,o,i=$t;const r=l=>{clearTimeout(l),i(),i=$t};return l=>{const a=po(e),c=po(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 Qc(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=$t,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=$t)};return f=>{const d=po(e),b=Date.now()-i,k=()=>a=f();if(c(),d<=0)return i=Date.now(),k();if(b>d&&(n||!s))i=Date.now(),k();else if(t)return new Promise((S,B)=>{l=o?B:S,r=setTimeout(()=>{i=Date.now(),s=!0,S(k()),c()},d-b)});return!n&&!r&&(r=setTimeout(()=>s=!0,d)),s=!1,a}}function Jc(e){return e}function di(e){return Pi()?(Ol(e),!0):!1}function je(e,t=200,n={}){return hs(Gc(t,n),e)}function gs(e,t=200,n=!1,o=!0,i=!1){return hs(Qc(t,n,o,i),e)}function ms(e,t=!0){ti()?Je(e):t?e():wt(e)}function Kt(e){var t;const n=po(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Cn=ui?window:void 0,eu=ui?window.document:void 0;function Pt(...e){let t,n,o,i;if(Zc(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Cn):[t,n,o,i]=e,!t)return $t;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,f,d)=>(u.addEventListener(f,d,i),()=>u.removeEventListener(f,d,i)),a=pe(()=>Kt(t),u=>{s(),u&&r.push(...n.flatMap(f=>o.map(d=>l(u,f,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return di(c),c}function vs(e,t=!1){const n=Y(),o=()=>n.value=!!e();return o(),ms(o,t),n}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ys="__vueuse_ssr_handlers__";bs[ys]=bs[ys]||{};function _s({document:e=eu}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return Pt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ws=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,nu=Object.prototype.propertyIsEnumerable,ou=(e,t)=>{var n={};for(var o in e)tu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ws)for(var o of ws(e))t.indexOf(o)<0&&nu.call(e,o)&&(n[o]=e[o]);return n};function iu(e,t,n={}){const o=n,{window:i=Cn}=o,r=ou(o,["window"]);let s;const l=vs(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>Kt(e),f=>{a(),l.value&&i&&f&&(s=new ResizeObserver(t),s.observe(f,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}function xs(e,t={width:0,height:0},n={}){const{window:o=Cn,box:i="content-box"}=n,r=se(()=>{var a,c;return(c=(a=Kt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Y(t.width),l=Y(t.height);return iu(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Kt(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:d})=>f+d,0),l.value=u.reduce((f,{blockSize:d})=>f+d,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>Kt(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=Cn}=n,l=vs(()=>s&&"IntersectionObserver"in s);let a=$t;const c=l.value?pe(()=>({el:Kt(e),root:Kt(o)}),({el:f,root:d})=>{if(a(),!f)return;const b=new IntersectionObserver(t,{root:d,rootMargin:i,threshold:r});b.observe(f),a=()=>{b.disconnect(),a=$t}},{immediate:!0,flush:"post"}):$t,u=()=>{a(),c()};return di(u),{isSupported:l,stop:u}}var Ss;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ss||(Ss={}));var ru=Object.defineProperty,ks=Object.getOwnPropertySymbols,su=Object.prototype.hasOwnProperty,lu=Object.prototype.propertyIsEnumerable,Is=(e,t,n)=>t in e?ru(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,au=(e,t)=>{for(var n in t||(t={}))su.call(t,n)&&Is(e,n,t[n]);if(ks)for(var n of ks(t))lu.call(t,n)&&Is(e,n,t[n]);return e};au({linear:Jc},{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 Cs(e={}){const{window:t=Cn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=Y(n),l=Y(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(),ms(a),Pt("resize",a,{passive:!0}),i&&Pt("orientationchange",a,{passive:!0}),{width:s,height:l}}const cu=(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))}},rn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>cu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},uu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},du={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},fu=ke({__name:"AutoNext",props:{hasNext:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=Y(null),r=Y(null),s=Y(!1),l=Y(!1),a=Y(n.seconds),c=Y(n.seconds<0),u=Y(n.seconds);return Je(()=>{let f;fi(r,d=>{l.value=d.some(b=>b.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,f&&(clearInterval(f),f=void 0),!(!l.value||c.value)&&(f=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(f),f=void 0,o("next"))},1e3))}),fi(i,d=>{s.value=d.some(b=>b.isIntersecting)}),Rt(()=>f&&clearInterval(f))}),(f,d)=>(O(),q("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[st(X("div",uu,[f.hasNext?(O(),q("div",du,[l.value?(O(),q("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:Le(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):Ce("",!0),st((O(),q("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:d[0]||(d[0]=Ke(()=>o("next"),["stop"]))},[kt(Ze(c.value?"Next":`Next in ${a.value}`),1)])),[[U(rn)]])])):Ce("",!0),st((O(),q("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:d[1]||(d[1]=Ke(()=>o("hide"),["stop"]))},[kt(" Hide ")])),[[U(rn)]])],512),[[ts,s.value||!f.hasNext]])],512))}}),pu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
21
+ `,ge=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Ts=ge(fu,[["styles",[pu]]]),hu=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));function gu({touchDevice:e}){const t=Y(!1);let n=0;return no("busy:touchDevice",e),no("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function pi(){const e=Nt("busy:touchDevice"),t=Nt("setBusyState");let n=!1;return Rt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const mu={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(),he(ya(c.href?"a":"button"),ao(c.href?{href:c.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":c.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!c.disabled,"bg-black bg-opacity-50":!c.transparent}],onClick:Ke(a,["stop"]),onMouseenter:s,onMouseleave:l}),{default:ie(()=>[X("div",mu,[_e(c.$slots,"default")])]),_:3},16,["class"])),[[U(rn),c.disabled?0:15]])}}),vu=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),bu={},yu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_u=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function wu(e,t){return O(),q("svg",yu,_u)}const Es=ge(bu,[["render",wu]]),xu=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));class Su{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 ku(){const e=new Su;return Rt(()=>e.dispose()),no("keyController",e),e}function ho(e){const t=Nt("keyController");Je(()=>t.addListener(e)),Rt(()=>t.removeListener(e))}const Iu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Cu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},Tu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},$s=ke({__name:"BottomSheet",props:tn({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=xn(e,"modelValue");ho({onKeyDown:o});const n=pi();pe(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(O(),q("div",{class:Te(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[3]||(r[3]=()=>t.value=!1)},[G(nn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ie(()=>[t.value?(O(),q("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"]))},[X("div",Iu,[G(tt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:ie(()=>[G(Es)]),_:1}),X("div",Cu,Ze(i.name),1),_e(i.$slots,"actions")]),X("div",Tu,[_e(i.$slots,"default")])],32)):Ce("",!0)]),_:3})],2))}}),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:$s},Symbol.toStringTag,{value:"Module"})),$u=["min","max","step"],Pu={class:"flex-shrink-0"},hi=ge(ke({__name:"InputPercentage",props:tn({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=xn(e,"modelValue"),n=se({get(){return t.value},set(o){t.value=+o}});return(o,i)=>(O(),q("div",{class:Te(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:Le({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[st(X("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,$u),[[Wc,n.value]]),X("p",Pu,[_e(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
+ `]]]),Mu=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),Ou=["onClick","onKeyup"],Tn=ke({__name:"InputSelect",props:tn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(e,"modelValue"),o=Y(null),i=Y({width:"",left:""});Je(()=>{let s=!1;pe(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(),q("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Le(i.value)},null,4),(O(!0),q(Ie,null,mn(t.items,(a,c)=>st((O(),q("div",{key:c,tabindex:"0",class:Te(["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:[us(()=>r(c),["enter"]),us(()=>r(c),["space"])]},[kt(Ze(a),1)],42,Ou)),[[U(rn),30]])),128))],512))}}),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"})),zu={class:"flex items-center mb-8 last:mb-0"},Au={class:"flex-grow overflow-hidden"},qt=ke({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(O(),q("div",zu,[X("div",{class:Te(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},Ze(t.label),3),X("div",Au,[_e(t.$slots,"default")])]))}}),ju=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),Du={},Bu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ru=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Nu(e,t){return O(),q("svg",Bu,Ru)}const Ps=ge(Du,[["render",Nu]]),Vu=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),Fu={},Hu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Wu=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Ku(e,t){return O(),q("svg",Hu,Wu)}const Ms=ge(Fu,[["render",Ku]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"}));function Uu(e){if(e)try{return JSON.parse(e)}catch{return}}function Yu(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 Xu=.25,Zu=5,Gu=.25,En=.2,$n=5,Qu=.05,Ju=0,ed=4,Os=5;function td(e){var y,x,H,g,E,j,Q;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?Yu(t.value):location.hostname),i=Y(nd(`tkr:${o.value}`)),r=w=>{i.value=w;const m=`tkr:${o.value}`;!w||!Object.keys(w).length?localStorage.removeItem(m):localStorage.setItem(m,JSON.stringify(w))},s=w=>{if(!i.value){r(w);return}const m={...i.value};Object.entries(w).forEach(([N,te])=>{te===void 0?delete m[N]:m[N]=te}),r(m)},l=Y(((y=i.value)==null?void 0:y.style)??e.defaultStyle??Mt.longStrip),a=Y(((x=i.value)==null?void 0:x.direction)??e.defaultDirection??ct.vertical),c=Y((H=i.value)==null?void 0:H.gap),u=Y(((g=i.value)==null?void 0:g.speed)??1),f=Y(((E=i.value)==null?void 0:E.zoom)??1),d=Y(((j=i.value)==null?void 0:j.breakFirst)??!1),b=Y(((Q=i.value)==null?void 0:Q.autoNextSeconds)??Os),k=se({get(){return n.value?Mt.longStrip:l.value},set:w=>{l.value=w,s({style:w}),w!==Mt.longStrip&&a.value===ct.vertical&&(S.value=ct.rtl)}}),S=se({get:()=>n.value?ct.vertical:a.value,set:w=>{a.value=w,s({direction:w})}}),B=se({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||k.value!==Mt.longStrip?0:1,set(w){c.value=w,s({gap:w})}}),V=se({get:()=>u.value,set(w){u.value=w,s({speed:w===1?void 0:w})}}),K=se({get:()=>f.value,set(w){f.value=w,s({zoom:w===1?void 0:w})}}),$=se({get:()=>d.value,set(w){d.value=w,s({breakFirst:w?!0:void 0})}}),R=se({get:()=>b.value,set(w){b.value=w,s({autoNextSeconds:w===Os?void 0:w})}});return{direction:S,style:k,gap:B,speed:V,zoom:K,isLongStrip:se(()=>k.value===Mt.longStrip),isDouble:se(()=>k.value===Mt.double),isRTL:se(()=>S.value===ct.rtl),isVertical:se(()=>S.value===ct.vertical),breakFirst:$,autoNextSeconds:R}}function nd(e){const t=localStorage.getItem(e),n=Uu(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>=Ju&&n.gap<=ed&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=En&&n.speed<=$n&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=En&&n.zoom<=$n&&(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 Ls=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=Y(!1),r=se(()=>n.name??location.hostname);ho({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(),q(Ie,null,[G(tt,{title:"Reader settings (S)",disabled:a.disabled,onClick:c[0]||(c[0]=()=>i.value=!0)},{default:ie(()=>[G(Ms)]),_:1},8,["disabled"]),G($s,{modelValue:i.value,"onUpdate:modelValue":c[6]||(c[6]=u=>i.value=u),name:r.value},{actions:ie(()=>[G(tt,{transparent:"",onClick:l},{default:ie(()=>[G(Ps)]),_:1})]),default:ie(()=>[G(qt,{label:"Style"},{default:ie(()=>[G(Tn,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":c[1]||(c[1]=u=>o("update:reader-style",u))},null,8,["model-value","items"])]),_:1}),G(qt,{label:"Direction"},{default:ie(()=>[G(Tn,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":c[2]||(c[2]=u=>o("update:direction",u))},null,8,["model-value","items"])]),_:1}),G(qt,{label:"Gap"},{default:ie(()=>[G(Tn,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":c[3]||(c[3]=u=>o("update:gap",u))},null,8,["model-value"])]),_:1}),G(qt,{label:"Auto Next"},{default:ie(()=>[G(Tn,{"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}),G(qt,{label:"Speed"},{default:ie(()=>[G(hi,{"model-value":a.speed,min:U(Xu),max:U(Zu),step:U(Gu),suffix:"x","onUpdate:modelValue":c[5]||(c[5]=u=>o("update:speed",u))},{suffix:ie(()=>[kt(Ze(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),G(qt,{label:"Zoom"},{default:ie(()=>[G(hi,{"model-value":Math.ceil(a.zoom*100),min:U(En)*100,max:U($n)*100,step:U(Qu)*100,"onUpdate:modelValue":s},{suffix:ie(()=>[kt(Ze(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),od=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),id={},rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},sd=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function ld(e,t){return O(),q("svg",rd,sd)}const zs=ge(id,[["render",ld]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),cd={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"},ud={class:"block w-4 h-4"},dd={class:"w-12"},As=ke({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>(O(),q("button",cd,[X("div",ud,[G(zs)]),X("div",dd,Ze(Math.ceil(t.zoom*100))+"%",1)]))}}),fd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));async function sn(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 sn(e-1,t,n);i(r)},t)})}const pd={},hd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gd=[sc('<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 md(e,t){return O(),q("svg",hd,gd)}const js=ge(pd,[["render",md]]),vd=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),bd={},yd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_d=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function wd(e,t){return O(),q("svg",yd,_d)}const Ds=ge(bd,[["render",wd]]),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),Sd=["aria-hidden"],kd=["onClick"],Id={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"},Cd={class:"whitespace-nowrap"},gi=ke({__name:"ButtonDropdown",props:tn({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:tn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=xn(e,"modelValue"),r=Y(null),s=Y(!1),l=Y(!1),a=Y(!1),c=Y(!1),u=Y(!1),f={mounted:g=>{var E;(E=g.children[i.value])==null||E.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};ho({onKeyDown:V});const d=pi();async function b(){if(!n.items.length&&(s.value||await k(),!n.items.length)){s.value=!1;return}s.value=!s.value,d(s.value),s.value?(S(),$(r.value)):setTimeout(R,250)}async function k(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function S(){const g=r.value;if(g){const E=g.getBoundingClientRect(),j=E.x+E.width/2;a.value=E.y>window.innerHeight/2,c.value=j<window.innerWidth/3,u.value=j>window.innerWidth/3*2}}function B(g,E){b(),g!=i.value&&(i.value=g,o("select",g,E))}function V(g){s.value&&g.key==="Escape"&&(b(),g.preventDefault())}let K=[];function $(g){const E=window.getComputedStyle(g).zIndex,j=g.style.zIndex;(!E||!(+E>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",K.push({el:g,zIndex:j})),g.parentElement&&$(g.parentElement))}function R(){K.forEach(({el:g,zIndex:E})=>{g.style.zIndex=E??""}),K=[]}let y=!1;function x(){y||(y=!0,d(!0,{desktopOnly:!0}))}function H(){y&&(y=!1,d(!1,{desktopOnly:!0}))}return(g,E)=>(O(),q("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(O(),q("div",{key:0,class:"fixed-screen bg-transparent",onClick:b})):Ce("",!0),g.items.length?(O(),he(nn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:ie(()=>[s.value?st((O(),q("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Te(["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:E[0]||(E[0]=Ke(()=>{},["stop"]))},[(O(!0),q(Ie,null,mn(g.items,(j,Q)=>st((O(),q("li",{key:Q,tabindex:"-1",class:Te(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":Q===i.value}]),onClick:w=>B(Q,w)},[X("div",{class:Te(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":Q>0}])},[_e(g.$slots,"item",{item:j},()=>[kt(Ze(j),1)])],2)],10,kd)),[[U(rn),30]])),128))],42,Sd)),[[f]]):Ce("",!0)]),_:3})):Ce("",!0),st((O(),q("button",ao({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":g.disabled||l.value}]},g.title?{title:g.title}:{},{onClick:Ke(b,["stop"]),onMouseenter:x,onMouseleave:H}),[X("div",Id,[X("span",Cd,Ze(g.label),1),g.items.length||g.canLoadItems?(O(),q("span",{key:0,class:Te(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(O(),he(js,{key:0})):(O(),he(Ds,{key:1}))],2)):Ce("",!0)])],16)),[[U(rn),30]])],512))}}),Td=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),Bs=ke({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,dialog:u,sel:f,label:d}=a;if(c&&(u||!f||!d)){await r(c);return}o("getHiddenChapters"),await sn(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())}function s(a,c){var u,f,d;(d=(f=(u=n.data)==null?void 0:u.chapters)==null?void 0:f[a])==null||d.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return O(),he(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:f})=>[kt(Ze(f.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),$d={},Pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Md=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Od(e,t){return O(),q("svg",Pd,Md)}const Rs=ge($d,[["render",Od]]),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ns=ke({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Y(typeof n!="string"||+n!==t.direction),i=je(()=>o.value=!1,1250);pe(()=>t.direction,()=>{r(),o.value=!0,i()}),Je(()=>{r(),i();let s;const l=_s();pe(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(),he(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[o.value?(O(),q("div",{key:0,class:Te(["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}])},[G(Rs)],2)):Ce("",!0)]),_:1}))}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),Ad=X("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Vs=ke({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=Y(null),r=Y([]);Je(async()=>{const c=xs(i),u=je(()=>{s({width:c.width.value,height:c.height.value})},50);u(),pe(c.width,u),pe(c.height,u)});function s(c){var d;const u=(d=i.value)==null?void 0:d.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=[],d=[];let b=0,k=0;const S=50,B=25;c.forEach(y=>{var j;const x=(j=y.getAttribute("title"))==null?void 0:j.trim(),H=y.getBoundingClientRect();if(!x||!H.height||!H.width)return;const g=Math.ceil((H.top-10)/S),E=Math.ceil((H.left-10)/S);d.push({isTour:!1,title:x,rect:H,fromX:E,toX:Math.max(E+1,Math.ceil((H.right+10)/S)),fromY:g,toY:Math.max(g+1,Math.ceil((H.bottom+10)/S))})}),d.forEach(y=>{for(let x=y.fromY;x<y.toY;x++){f[x]??(f[x]=[]);for(let H=y.fromX;H<y.toX;H++)f[x][H]=y;y.toY>b+1&&(b=y.toY-1),y.toX>k+1&&(k=y.toX-1)}});let V=k/2;d.forEach(y=>{y.isAlignRight=y.fromX>V});const K=(y,x)=>{f[x]??(f[x]=[]);const H=x>=y.toY;if(y.isTour)for(let g=y.fromX;g<y.toX;g++)delete f[y.fromY][g],y.fromY=x,y.toY=x+(H?1:-1),f[x][g]=y;else{const g=y.isAlignRight?y.fromX-3:y.fromX,E=g+3;y.helpItem={fromX:g,toX:E,fromY:x,toY:x+1,isTour:!0,isAlignRight:y.isAlignRight};for(let j=g;j<E;j++)f[x][j]=y.helpItem}},$=(y,x)=>{if(x>b||x<0)return!1;const H=x>=y.toY,g=f[x];if(!g)return K(y,x),!0;const E=g[y.fromX];if(E&&!E.isTour)return!1;if(E&&E.isTour)return $(E,H?x+1:x-1)?(K(y,x),!0):!1;if(!E){const j=y.isAlignRight?-1:1;return g[y.fromX+j]||g[y.fromX+j*2]?$(y,H?x+1:x-1):(K(y,x),!0)}return!1};d.forEach(y=>{if(!$(y,y.toY)){if(y.isAlignRight){const x=f[y.fromY]??[];if(!x.slice(y.fromX-3,y.fromX).filter(Boolean).length){const g=y.fromX-3,E=y.fromX;y.helpItem={isTour:!0,isAlignRight:!0,fromX:g,toX:E,fromY:y.fromY,toY:y.toY};for(let j=y.fromX-3;j<y.fromX;j++)x[j]=y.helpItem;return}}$(y,y.fromY-1)}});const R=[];return d.forEach(y=>{const{title:x,helpItem:H,rect:g,isAlignRight:E,fromX:j,fromY:Q,toY:w}=y;if(!x||!H||!g)return;const m=H.fromY>=w,N=H.toY<=Q;R.push({title:a(x),style:{top:m?`${g.bottom+(H.fromY-w)*S+B}px`:N?void 0:`${g.top+8}px`,bottom:N?`${u.height-g.top+(H.toY-Q)*S+B}px`:void 0,left:E?void 0:`${g.left}px`,right:E?m?`${u.width-g.right}px`:`${u.width-g.right+g.width+B}px`:void 0},arrowStyle:{width:N||m?"2px":`${Math.abs(H.toX-j)*S+B-5}px`,height:N||m?`${(m?H.fromY-w:Q-H.toY)*S+B}px`:"2px",top:m?`${g.bottom}px`:N?void 0:`${g.top+20}px`,bottom:N?`${u.height-g.top}px`:void 0,left:E?void 0:`${g.left+g.width/2}px`,right:E?m?`${u.width-g.right+g.width/2}px`:`${u.width-g.right+g.width}px`:void 0}})}),R}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(O(),q(Ie,null,[Ad,X("div",{ref_key:"root",ref:i,class:"fixed-screen z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=Ke(f=>o("hide"),["stop"]))},[(O(!0),q(Ie,null,mn(r.value,f=>(O(),q(Ie,{key:f.title},[X("div",{class:"absolute",style:Le(f.style)},Ze(f.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:Le(f.arrowStyle)},null,4)],64))),128))],512)],64))}}),jd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Fs=ke({__name:"PageNav",props:tn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=xn(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)=>(O(),he(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"]))}}),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Bd={},Rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Nd=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Vd(e,t){return O(),q("svg",Rd,Nd)}const mi=ge(Bd,[["render",Vd]]),Fd=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Hd={},Wd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kd=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function qd(e,t){return O(),q("svg",Wd,Kd)}const vi=ge(Hd,[["render",qd]]),Ud=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Hs=ge(ke({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Y(0);return pe(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(O(),q("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(O(),he(vi,{key:0})):(O(),he(mi,{key:1}))])):Ce("",!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
+ `]]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},Symbol.toStringTag,{value:"Module"})),Ws=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=Y(null),r=Y(Math.min($n,Math.max(En,n.zoom))),s=Y(!1),l=Y(!1),a={isZoomIn:!1,isZoomOut:!1,initial:void 0};pe(()=>n.zoom,m=>w(m)),Je(()=>{n.touchDevice?Pt(i,"touchstart",B):(Pt(i,"mousedown",d),Pt(window,"wheel",x))}),ho({onKeyDown:m=>{var N;if(!n.busy&&((N=i.value)==null||N.focus(),!(m.key==="Meta"||m.key==="Control")&&(m.ctrlKey||m.metaKey)))switch(m.key){case"0":w(1);break;case"-":w(r.value-.2),m.preventDefault();break;case"=":case"+":w(r.value+.2),m.preventDefault();break}},onKeyUp:m=>{n.zooming&&!(m.ctrlKey||m.metaKey)&&E()}});function c(m){l.value!==m&&(l.value=m,m?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},f={x:0,y:0};function d(m){m.button===0&&(u={x:m.clientX,y:m.clientY},f={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",b),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",b),setTimeout(()=>c(!1))},{once:!0}),m.preventDefault(),m.stopPropagation())}function b(m){c(!0);const N=m.clientX-u.x,te=m.clientY-u.y,le=i.value;le.scrollLeft=f.x-N,le.scrollTop=f.y-te}let k={distance:0,zoom:r.value,x:0,y:0},S=!1;function B(m){n.busy||(S=m.touches.length===2,S&&(o("update:zooming",!0),c(!0),m.stopPropagation(),m.preventDefault(),k={distance:H(m),zoom:r.value,x:(m.touches[0].clientX+m.touches[1].clientX)/2,y:(m.touches[0].clientY+m.touches[1].clientY)/2}),(S||n.longStrip&&n.playController.isPlaying.value)&&window.addEventListener("touchend",V,{once:!0}))}function V(){if(S=!1,n.zooming){c(!1),E();return}if(!l.value)return;const m=je(()=>{c(!1),i.value.removeEventListener("scroll",te)},200),N=setTimeout(m,200);i.value.addEventListener("scroll",te);function te(){clearTimeout(N),m()}}function K(m){if(!(!S&&!(n.longStrip&&n.playController.isPlaying.value))&&(c(!0),n.zooming)){m.stopPropagation(),m.preventDefault();const te=H(m)/k.distance;Q(Math.ceil(te*k.zoom*100)/100,k)}}const $=je(()=>s.value=!1,100);let R=!1;const y=je(()=>{R=!1},30);function x(m){if(n.busy)return;let N=n.zooming;if(R||(R=!0,N=m.ctrlKey||m.metaKey,N&&o("update:zooming",!0)),y(),N){m.stopPropagation(),m.preventDefault();const te=Math.ceil((r.value+m.deltaY*-.01)*100)/100;Q(te,{x:m.clientX,y:m.clientY});return}n.horizontal&&(s.value||(s.value=!0),$(),m.deltaY&&(i.value&&(i.value.scrollLeft+=m.deltaY*(n.rtl?-1:1)),m.stopPropagation()))}function H(m){return Math.hypot(m.touches[0].clientX-m.touches[1].clientX,m.touches[0].clientY-m.touches[1].clientY)}function g(m){!l.value&&!n.zooming&&o("click",m)}function E(){o("update:zooming",!1),a.initial=void 0,a.isZoomIn=!1,a.isZoomOut=!1}function j(){if(a.initial)return;const m=i.value;if(!m)return;const N=m.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;N&&(a.initial={el:N,rect:N.getBoundingClientRect()})}function Q(m,N){if(a.isZoomIn=a.isZoomIn||!a.isZoomOut&&m>1,a.isZoomIn&&m<1){w(1,N);return}if(a.isZoomOut=a.isZoomOut||!a.isZoomIn&&m<1,a.isZoomOut&&m>1){w(1,N);return}w(m,N)}async function w(m,N){const te=i.value,le=Math.min($n,Math.max(En,m));if(!te||r.value===le)return;j();const{initial:L}=a;if(!L)return;const z=(N==null?void 0:N.x)??te.clientWidth/2,fe=(N==null?void 0:N.y)??te.clientHeight/2;r.value=le,o("update:zoom",le),await wt();const{el:ue,rect:ye}=L,be=ue.offsetWidth/ye.width,Oe=ue.offsetHeight/ye.height;te.scrollLeft=ue.offsetLeft-ye.left*be+z*(be-1),te.scrollTop=ue.offsetTop-ye.top*Oe+fe*(Oe-1)}return(m,N)=>(O(),q("div",{ref_key:"root",ref:i,tabindex:"0",class:Te(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!m.longStrip&&(l.value||s.value||m.zooming),"cursor-grabbing":!m.touchDevice&&l.value,"overflow-hidden":m.zooming}]),style:Le({"font-size":`${r.value}px`}),onClick:Ke(g,["stop"]),onTouchmoveCapture:Ke(K,["stop"])},[_e(m.$slots,"default")],38))}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Ks=ke({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=Y(null),i=Y(!1);return Je(async()=>{await wt();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(),q("div",{ref_key:"root",ref:o},[_e(r.$slots,"default",{visible:i.value})],512))}}),Zd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Gd=`.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
+ `,Qd={},Jd={class:"loading-indicator"};function ef(e,t){return O(),q("div",Jd)}const bi=ge(Qd,[["render",ef],["styles",[Gd]]]),tf=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"}));function nf({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const i=Y(n),r=Y(o),s=je(l,50);pe(e,a=>{n>a&&(n=a)});function l(){i.value!==n&&(i.value=n),r.value!==o&&(r.value=o)}return{min:i,max:r,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const of={key:0,class:"img img--loading"},rf=["src"],sf=["src"],lf=["data-index"],qs=ge(ke({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{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:["update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=Y(null),r=Cs(),s=se(()=>{const{width:d,height:b}=r,k=n.isLongStrip?n.isVertical?d.value:b.value:Math.min(d.value,b.value);return Math.min(4,Math.max(1,Math.ceil(k/400-1)))*n.gap}),l=nf({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),a=se(()=>{const{width:{value:d},height:{value:b}}=r;return n.pages.map(k=>{var H;const S=k.some(g=>{var E;return(E=g.img)==null?void 0:E.isLoading}),B=k.map(g=>g.index),V={isLoading:S,indexes:B};if(S||B[B.length-1]<l.min.value-1||B[0]>l.max.value+2)return V;const K=k.map(({img:g})=>g).filter(Boolean);if(!K.length||(V.srcs=K.map(({src:g})=>g),K.every(g=>g.hasError)))return V;const R=(H=K.find(g=>!g.hasError))==null?void 0:H.size,y=K.reduce((g,E)=>{var j;return g+(((j=E.size)==null?void 0:j.width)??R.width)},0),x=K.reduce((g,E)=>{var j;return g+(((j=E.size)==null?void 0:j.height)??R.height)},0)/K.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&d/y<b/x?(V.width=Math.min(d,y),V.height=x*V.width/y):V.height=Math.min(b,x),V})}),c=se(()=>{const d=n.isVertical?"width":"height";return a.value.map(b=>b[d]).filter(Boolean).sort((b,k)=>k-b)[0]});function u({indexes:d}){const b=d[d.length-1];b!==void 0&&l.onPageVisible(b)}function f(d){if(!n.isLongStrip){const b=n.isVertical?r.height.value:r.width.value,S=(n.isVertical?d.clientY:n.isRTL?b-d.clientX:d.clientX)/b;if(S<=.2&&n.pageIndex>0){o("prev");return}else if(S>=.8){o("next");return}}o("click")}return(d,b)=>(O(),he(Ws,{zoom:d.zoom,zooming:d.zooming,"page-index":d.pageIndex,class:Te(["rbod",{"rbod--touch":d.touchDevice,"rbod--long-strip":d.isLongStrip,"rbod--paging":!d.isLongStrip,"rbod--vertical":d.isVertical,"rbod--rtl":d.isRTL,"rbod--idle":d.idle,"rbod--first":!d.isLongStrip&&d.pageIndex===0,"rbod--last":!d.isLongStrip&&d.pageIndex===d.totalImgs&&!d.hasNext,"rbod--1page":a.value.length===1}]),"play-controller":d.playController,horizontal:!d.isVertical,rtl:d.isRTL,"touch-device":d.touchDevice,busy:d.busy,"long-strip":d.isLongStrip,style:Le({"--gap":`${s.value}em`,"--space-top":(d.spaceTop||0)+"px","--screen-width-em":U(r).width.value+"em","--screen-height-em":U(r).height.value+"em",...d.isLongStrip?{"--max-size-em":c.value+"em"}:{}}),"onUpdate:zoom":b[0]||(b[0]=k=>o("update:zoom",k)),"onUpdate:zooming":b[1]||(b[1]=k=>o("update:zooming",k)),onDragEnd:b[2]||(b[2]=()=>o("dragEnd")),onClick:f,onScroll:U(l).onScroll},{default:ie(()=>[(O(!0),q(Ie,null,mn(a.value,k=>(O(),he(Ks,ao({key:d.direction+"_"+k.indexes[0],"data-index":k.indexes[0]},k.indexes.length>1?{"data-index2":k.indexes[1]}:{},{onVisible:()=>u(k)}),{default:ie(({visible:S})=>{var B;return[!((B=k.srcs)!=null&&B.length)||k.isLoading?(O(),q("div",of,[st(G(bi,null,null,512),[[ts,S]])])):k.srcs.length==1?(O(),q("img",{key:1,class:Te(["img",{invisible:d.isLongStrip&&k.indexes[0]<d.pageIndex-1}]),src:k.srcs[0],style:Le({height:k.height!==void 0?k.height+"em":""})},null,14,rf)):(O(),q("div",{key:2,class:Te(["img img--double",{"flex-row-reverse":d.isRTL}]),style:Le({width:k.width!==void 0?k.width+"em":"",height:k.height!==void 0?k.height+"em":""})},[(O(!0),q(Ie,null,mn(k.srcs,V=>(O(),q("div",{key:V},[X("img",{src:V},null,8,sf)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":d.totalImgs},[_e(d.$slots,"end")],8,lf)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"]))}}),[["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;-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
+ `]]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),cf={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},uf={class:"flex justify-between items-end"},df={class:"inline-block children-pointer-events-auto w-1/3"},ff={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},pf={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},hf={class:"inline-block z-20 relative"},gf={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"},Us=ge(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){return(t,n)=>(O(),q("div",{class:Te(["reader-layout",{"cursor-none":t.idle,"cursor-default":!t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(O(),q("div",cf,[G(bi)])):Ce("",!0),_e(t.$slots,"default"),X("div",{id:"controls",class:Te(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Le({paddingTop:`${t.spaceTop||0}px`})},[_e(t.$slots,"back"),_e(t.$slots,"exit"),_e(t.$slots,"chapter-nav")],4),X("div",uf,[X("div",df,[_e(t.$slots,"page-nav")]),X("div",ff,[t.fullScreen&&t.zooming?Ce("",!0):_e(t.$slots,"reset-zoom",{key:0})]),X("div",pf,[_e(t.$slots,"entry"),X("div",hf,[_e(t.$slots,"settings")]),_e(t.$slots,"full-screen"),_e(t.$slots,"play"),_e(t.$slots,"break-first")])]),X("div",{class:Te(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[_e(t.$slots,"progress")],2)],2),t.fullScreen&&t.zooming?(O(),q("div",gf,[_e(t.$slots,"reset-zoom")])):Ce("",!0)],2))}}),[["styles",[`.reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100vh;left:0;line-height:24px;overflow:hidden;overscroll-behavior:contain;position:fixed;text-align:left;top:0;width:100vw}
26
+ `]]]),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ys=ge(ke({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=Y(null),i=Y(0),r=Y([]),s=se(()=>r.value[i.value]),l=gs(a,500);Je(()=>{const f=xs(o),d=je(()=>c({width:f.width.value,height:f.height.value}),50);d(),pe(f.width,d),pe(f.height,d)});function a(){i.value>=r.value.length-1?n("hide"):i.value++}function c(f){const d=u();r.value=d.map(({rect:b,text:k})=>{const S=b.top<f.height-b.bottom,B=b.left<f.width-b.right;return{text:k,style:{left:`${b.left}px`,top:`${b.top}px`,width:`${b.width}px`,height:`${b.height}px`},textStyle:{left:B?`${b.left-12}px`:void 0,right:B?void 0:`${f.width-b.left}px`,top:S?`${b.bottom+12}px`:`${b.top+20}px`,textAlign:S?void 0:"right",transform:S?void 0:"translateY(-50%)"}}}),i.value>=r.value.length&&(i.value=r.value.length-1)}function u(){var b;const f=(b=o.value)==null?void 0:b.parentElement;if(!f)return[];const d=[];return f.querySelectorAll("[data-tour]").forEach(k=>{var V;const S=(V=k.getAttribute("data-tour"))==null?void 0:V.trim();if(!(S!=null&&S.length))return;const B=k.getBoundingClientRect();d.push({rect:B,text:S})}),d}return(f,d)=>{var b,k;return O(),q(Ie,null,[X("div",{class:Te(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!s.value,"opacity-100":!!s.value}])},null,2),X("div",{ref_key:"root",ref:o,class:"tour",onClick:d[0]||(d[0]=Ke((...S)=>U(l)&&U(l)(...S),["stop"]))},[s.value?(O(),q("div",{key:i.value,class:"tour__target",style:Le(s.value.style)},null,4)):Ce("",!0),(O(),q("div",{key:i.value,class:"tour__text",style:Le((b=s.value)==null?void 0:b.textStyle)},Ze(((k=s.value)==null?void 0:k.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
+ `]]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),bf={},yf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},_f=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function wf(e,t){return O(),q("svg",yf,_f)}const Xs=ge(bf,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Sf={},kf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},If=[X("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 Cf(e,t){return O(),q("svg",kf,If)}const Zs=ge(Sf,[["render",Cf]]),Tf=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Ef={},$f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pf=[X("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 Mf(e,t){return O(),q("svg",$f,Pf)}const Gs=ge(Ef,[["render",Mf]]),Of=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Af=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function jf(e,t){return O(),q("svg",zf,Af)}const Qs=ge(Lf,[["render",jf]]),Df=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Bf={},Rf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Vf(e,t){return O(),q("svg",Rf,Nf)}const Js=ge(Bf,[["render",Vf]]),Ff=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),Hf={},Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Kf=[X("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 qf(e,t){return O(),q("svg",Wf,Kf)}const el=ge(Hf,[["render",qf]]),Uf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Yf={},Xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Zf=[X("g",{fill:"none"},[X("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"}),X("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 Gf(e,t){return O(),q("svg",Xf,Zf)}const tl=ge(Yf,[["render",Gf]]),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),Jf={},ep={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},tp=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function np(e,t){return O(),q("svg",ep,tp)}const nl=ge(Jf,[["render",np]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),ip={},rp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},sp=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function lp(e,t){return O(),q("svg",rp,sp)}const ol=ge(ip,[["render",lp]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),cp={},up={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},dp=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function fp(e,t){return O(),q("svg",up,dp)}const il=ge(cp,[["render",fp]]),pp=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function rl(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 hp(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 rl(o)}function go(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o==="srcset"||o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const i=e.getAttribute(o);if(i)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}async function gp(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 mp{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){me(this,"reactiveResults",cn({}));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=go(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await rl(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 ln(300),await this.downloadSrc(t))}async onImgElLoaded(t,n,o){var r;if(!this.isMounted)return;const i=go(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 hp(o,n):n;if(!i||!this.isMounted)return;const r=await gp(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 vp=3;class bp{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=je(this.enqueue.bind(this),50)}dispose(){this.isMounted=!1}run(){this.isQueueStarted?this.debouncedEnqueue():(this.isQueueStarted=!0,this.enqueue())}get canEnqueue(){return this.concurrentCount<vp&&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 ln(),!1):!1}resetActiveIndex(){const t=this.getActiveIndex();return t<this.activeIndex&&(this.concurrentCount=Math.max(0,this.concurrentCount-Math.abs(t-this.activeIndex))),this.activeIndex=t,t}}class Ut{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}class sl{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 yi(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 yp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!t||!n||!!document.querySelector(t))return!1;const i=await sn(50,30,()=>document.querySelector(n));return i?(yi(i),await ln(),!0):!1}class _p{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=je(()=>{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(je(()=>{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 yp(this.spec),o=(l=this.spec)==null?void 0:l.content;if(!o){t(document.body);return}let i=await sn(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 sn(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 wp(t,o):ll(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function wp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return ll(e);const o=new sl;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(al(l))return new Ut(void 0,l,r)}else if(l instanceof HTMLImageElement&&cl(l)){const a=go(l);return new Ut(a,l,r)}}return new Ut(void 0,void 0,r)})}function ll(e){const t=[],n={},o=new sl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)al(r)&&t.push(new Ut(void 0,r));else if(r instanceof HTMLImageElement&&cl(r)){const s=go(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 Ut(s,r))}}}),t}function al(e){return e.isConnected&&ul(e.width,e.height)}function cl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||ul(t.width,t.height)}function ul(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}function dl(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 xp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>new Ut(void 0,o));return dl(n)}function mo({rawImages:e,page:t,smooth:n,skipIfVisible:o,isScrollDown:i}){const r=Math.floor(t),s=e[Math.min(e.length-1,r)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.computedSrc}"]`);if(!l)return;const a=l.getBoundingClientRect();if(o&&a.top<=0&&a.top+a.height>0)return;const c=fl(l);if(!c)return;const u=t>=e.length?a.height:i?Math.max(0,a.height-window.innerHeight+100):t%1*a.height;c.el.scrollTo({top:c.top+u,behavior:n?"smooth":"instant"})}function fl(e,t=new Map){if(!e)return;const{offsetTop:n,offsetParent:o}=e;if(o&&n&&t.set(o,Math.max(t.get(o)??0,n)),!(e.scrollHeight-e.clientHeight>=10&&(e===document.documentElement||window.getComputedStyle(e).overflow!=="visible")))return fl(e.parentElement,t);let r=0;return t.forEach((s,l)=>{r+=l===o?s-n:s}),{el:e,top:r}}function Sp(e){var k,S,B,V;const t=Y((k=e.raw.value)==null?void 0:k.isWebtoon),n=Y((S=e.raw.value)==null?void 0:S.isWebtoon);let o=!1;const i=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),r=((V=(B=e.raw.value)==null?void 0:B.imgs)==null?void 0:V.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:r.length?xp(r):void 0,l=r.map(K=>new Ut(K)),a,c;const u=new mp({isIOS:i,onDownloaded(K,$){let R=l.indexOf(K);if(R===-1){const y=K.computedSrc;R=l.findIndex(x=>x.computedSrc===y)}if(R!==-1){if($&&!t.value&&R>Math.min(1,l.length-3)&&R<Math.max(l.length-2,3)){const y=$.height/$.width,x=y>2||y<.5,H=y>1.6||y<.6;t.value!==x&&(t.value=x),n.value!==H&&(n.value=H)}d()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),f=new bp({getItems:()=>l,getActiveIndex:()=>Math.floor(e.page.value),isCompleted:K=>{const $=K.computedSrc;return!!($&&u.reactiveResults[$])},callback:K=>u.download(K)});if(r.length)f.run();else{let K=!1;a=new _p({spec:e.spec,async onChanged($){var R;if(l=$,!e.raw.value&&!$.length){e.onError("no_img");return}(R=e.spec)!=null&&R.imgDivs&&!K&&e.isAutoShow!==!1&&e.page.value&&(K=!0,mo({rawImages:$,page:e.page.value,skipIfVisible:!0}),await ln(1)),s===void 0&&e.isAutoShow===!1&&(s=dl($)),f.run()}})}Wo(()=>{u.dispose(),f.dispose(),a==null||a.dispose(),c&&clearTimeout(c),o&&mo({rawImages:l,page:e.page.value})});function d(){var y,x,H;if(o||t.value===void 0||s===void 0)return;const K=Math.max(0,Math.min(s,l.length)),$=Math.min(Math.floor(K),l.length-1);if($>=1){if(!((y=l[$])==null?void 0:y.computedSrc)){e.isAutoShow&&mo({rawImages:l,page:$});return}for(let E=$;E<l.length;E++){const j=(x=l[E])==null?void 0:x.computedSrc;if(!j)return;const Q=u.reactiveResults[j];if(!Q)return;if(!Q.invalid){if(!Q.size&&!Q.hasError)return;break}}for(let E=$-1;E>=0;E--){const j=(H=l[E])==null?void 0:H.computedSrc;if(!j)break;const Q=u.reactiveResults[j];if(!Q)return;if(!Q.invalid){if(!Q.size&&!Q.hasError)return;break}}}if(o)return;o=!0,e.onReady(K);let R=!0;pe(()=>Math.floor(e.page.value),(g,E)=>{mo({rawImages:l,page:g,smooth:i,isScrollDown:E===void 0||g>E||l.length===1,skipIfVisible:R&&l.length>1}),R=!1,E??(E=-1),f.run()},{immediate:!0})}return{asyncImgs:se(()=>{Object.values(u.reactiveResults);const K=[];return l.forEach($=>{const R=$.computedSrc,y=R?u.reactiveResults[R]:void 0;(R&&!(y!=null&&y.invalid)||$.parentEl)&&K.push(y)}),K}),isWebtoon:se(()=>t.value??!1),maybeWebtoon:se(()=>n.value??!1)}}function kp(e,t,n){return se(()=>t.value?pl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function pl(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})),...pl(e.slice(r.length),t&&i,n+r.length)]}function Ip(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=Y(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 Cp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const _i=40;function Tp({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:d}){let b=!1,k=!1,S=!1,B;const V=je(E,300),K=gs(()=>{E(),V()},300),$=je(x,50);async function R(){H(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function y(){var L;k=!0,f(),j(),(L=l.value)==null||L.addEventListener("scroll",K),setTimeout(()=>{const{width:z,height:fe}=Cs();pe(z,()=>{i.value&&$()}),pe(fe,()=>{i.value||$()}),pe(n,x),pe(t,x)},300)}async function x(){if(!k||b)return;b=!0,await wt();const L=e.value;if(w()===L){b=!1;return}H(L)}function H(L,{smooth:z,ensureLastImgVisibility:fe=!1}={smooth:!1}){const ue=l.value;if(!ue)return;b=!0;const ye=async()=>{await wt(),b=!1,k||y()},be=Math.floor(L),Oe=ue.querySelector(`[data-index="${be}"],[data-index2="${be}"]`);if(!Oe){ye();return}c(async()=>{await g(ue,!o.value&&z,async()=>{await le(ue,Oe,{smooth:z,page:L,ensureLastImgVisibility:fe})}),await ye()})}async function g(L,z,fe){z&&L.style.setProperty("scroll-snap-type","none"),await fe(),z&&L.style.removeProperty("scroll-snap-type")}function E(){if(b)return;const L=w();L!==void 0&&L!==e.value&&u(L),j()}function j(){S||!S&&Q()&&(S=!0,d())}function Q(){const L=l.value;if(!L)return!1;const z=o.value?a.value?3:!i.value&&L.clientWidth>L.clientHeight?2.25:2.5:2;return i.value?L.scrollHeight-L.scrollTop<L.clientHeight*z:L.scrollWidth-(r.value?-L.scrollLeft:L.scrollLeft)<L.clientWidth*z}function w(){const L=m();return L?(+L.getAttribute("data-index")||0)+(o.value?N(L):0):void 0}function m(){var z;if(B??(B=l.value.getRootNode()),!B)return;const L=(z=B.elementsFromPoint)==null?void 0:z.call(B,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-_i:_i,i.value&&o.value?s.value||_i:window.innerHeight/2);if(L)for(let fe=0;fe<L.length;fe++){const ue=L[fe];if(ue.hasAttribute("data-index"))return ue;if(ue===l.value)break}}function N(L){const z=L.getBoundingClientRect();return i.value?Math.abs(z.top-s.value)/z.height:r.value?Math.max(0,z.right-l.value.clientWidth)/z.width:Math.abs(z.left)/z.width}let te=!1;async function le(L,z,fe){if(te)return;const ue=z.getBoundingClientRect();if(!o.value){if(i.value){if(ue.top<=0&&ue.bottom>=L.clientHeight)return}else if(ue.left<=0&&ue.right>=L.clientWidth)return}te=!0;const ye=i.value?L.scrollTop:L.scrollLeft,be=fe.page,Oe=o.value?be%1:0,Xt=await sn(30,10,async()=>{await ln();let Pe;if(!(z.offsetHeight<10))return o.value?i.value?Pe=z.offsetTop+Oe*z.offsetHeight-s.value:r.value?Pe=z.offsetLeft-L.clientWidth+z.offsetWidth-Oe*z.offsetWidth:Pe=z.offsetLeft+Oe*z.offsetWidth:i.value?Pe=z.offsetTop+(ue.top>0?0:ue.height-L.clientHeight):Pe=z.offsetLeft+(ue.left>0?0:ue.width-L.clientWidth),be>.5&&Math.abs(Pe)<100?void 0:Pe})??0,Ot=fe.ensureLastImgVisibility?i.value?Math.min(Xt,L.scrollHeight-L.clientHeight*2):r.value?Math.max(Xt,-(L.scrollWidth-L.clientWidth*2)):Math.min(Xt,L.scrollWidth-L.clientWidth*2):Xt;if(!fe.smooth){i.value?L.scrollTop=Ot:L.scrollLeft=Ot,te=!1;return}const Ne=Ot-ye,ht=30;let gt=0;return new Promise(Pe=>{(function Ue(){const Lt=Ep(gt,ye,Ne,ht);i.value?L.scrollTop=Lt:L.scrollLeft=Lt,gt++,gt<=ht?requestAnimationFrame(Ue):(Pe(),te=!1)})()})}return{init:R,goToPage:H}}function Ep(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function $p({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Y(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:g=>{a.value=g,sessionStorage.setItem("tk:playing",g?"true":"false")}}),u=Y(!1);let f,d;const b=je(x,100),k=je(()=>{u.value=!0},t?2e3:1e3),S=()=>setTimeout(()=>{u.value=!1,k()},30);S(),t||Pt(window,"mousemove",S);const B=_s();Je(()=>{pe(B,g=>{c.value&&(g==="visible"?x():d==null||d())}),pe(s,()=>V()),pe(r,g=>{g||$()})}),Rt($);async function V(g){c.value&&(d==null||d()),g&&(await wt(),await g()),c.value&&b()}function K(){c.value?$():R()}function $(){c.value&&(c.value=!1,d==null||d(),S())}function R(){!c.value&&r.value&&(c.value=!0,x(),S())}function y(){d==null||d()}function x(){const g=n.value;if(!c.value||!g)return;const E=o.value?g.scrollHeight-g.clientHeight:g.scrollWidth-g.clientWidth,j=H();if(E<=j){$();return}d=()=>{f=Date.now(),d=void 0};const Q=Date.now();f=Q;const w=.05*s.value,m=o.value?"scrollTop":"scrollLeft";let N=Date.now(),te=0;const le=()=>{if(f!==Q)return;const L=Date.now(),z=L-N;N=L;const fe=w*z+te;fe>=1?(te=fe%1,g[m]+=(fe-te)*(i.value?-1:1)):te=fe,setTimeout(le,1)};le()}function H(){const g=n.value;return o.value?g.scrollTop:i.value?-g.scrollLeft:g.scrollLeft}return{isPlaying:c,isIdle:u,toggle:K,play:R,pause:y,resume:x,stop:$,interfere:V,awake:S}}function Pp({raw:e,spec:t,siteMeta:n}){var j,Q,w;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 d(m,N){if(m.slug)b(m.slug,N);else if(m.elIndex!==void 0&&f&&f[m.elIndex]){let te=null;c!=null&&c.trigger&&(te=document.querySelector(c.trigger)),te&&(te.click(),await new Promise(le=>setTimeout(()=>le(),50))),yi(f[m.elIndex]),te&&te.click()}}function b(m,N){const te=Mp(a,m,(n==null?void 0:n.trailing)??!0);N?window.open(te,"_blank","noopener"):location.href=te}function k(m){const N=$[m];return N?te=>d(N,te):void 0}function S(m,N,te){if(m){const le=document.querySelector(m);le&&yi(le);return}N&&b(N,te)}const B=o??i,V=c==null?void 0:c.url,K=((j=s.chapters)==null?void 0:j.filter(m=>m.slug||!V&&m.elIndex!==void 0))??[],$=K.length>1?K:[],R=(Q=e.prev)==null?void 0:Q.slug,y=(w=e.next)==null?void 0:w.slug,{prevBtn:x,nextBtn:H}=t??{};let g=R||x&&!$.length?m=>S(x,R,m):void 0,E=y||H&&!$.length?m=>S(H,y,m):void 0;if($.length){if(V&&(u=$.findIndex(m=>m.slug===e.slug)),u===-1&&(u=$.findIndex(m=>(m.vol??m.inferVol)===B&&m.chap===r)),V&&u===-1&&(u=$.findIndex(m=>m.slug&&l.startsWith(`${m.slug}-`)&&l.length-m.slug.length>3)),u!==-1)g??(g=k(u+1)),E??(E=k(u-1));else if(!R&&!y){const m=$.findIndex(N=>{const te=N.vol??N.inferVol;return B===void 0||te===void 0||B===te?N.chap<r:te<B});m!==-1?(g=k(m),E=k(m-1)):E=k($.length-1)}}return{activeIndex:u,activeLabel:hl({vol:o,chap:r}),prev:g,next:E,chapters:$.map(m=>({label:hl(m),select:N=>d(m,N)}))}}function hl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Mp(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 Op={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},gl=ge(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}},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,s=-1;const l=Y(!1),a=Y(!1),c=gu({touchDevice:n.touchDevice}),u=Ip(n.page,n.isAutoShow),f=se(()=>n.spaceTop??0),{asyncImgs:d,isWebtoon:b,maybeWebtoon:k}=Sp({raw:se(()=>n.raw),spec:n.spec,page:u,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:f,async onReady(v){Ot(v),l.value=!0},onError:()=>{o("error"),F()}}),{direction:S,style:B,isRTL:V,isDouble:K,isVertical:$,isLongStrip:R,gap:y,speed:x,zoom:H,breakFirst:g,autoNextSeconds:E}=td({titleName:se(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:b,maybeWebtoon:k,defaultStyle:n.readerStyle,defaultDirection:n.direction}),j=Y(!1),Q=kp(d,K,g),w=se(()=>u.value>=d.value.length),m=se(()=>n.raw?Pp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta}):void 0),N=Y(null),te=Y(null),le=Y(!1),L=Y(!1),z=$p({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var v;return(v=N.value)==null?void 0:v.$el}),speed:x,isRTL:V,isVertical:$,isLongStrip:R}),fe=se(()=>!n.touchDevice&&z.isIdle.value&&!c.value&&!j.value),ue=se({get(){return H.value},set(v){z.interfere(()=>{H.value=v})}}),ye=Tp({page:u,style:B,direction:S,isLongStrip:R,isVertical:$,isRTL:V,spaceTop:f,isWebtoon:b,scrollEl:se(()=>{var v;return(v=N.value)==null?void 0:v.$el}),interferePlayer:v=>z.interfere(v),onChangedPage:Ot,onInitialized(){o("ready"),a.value=!0,r=Ne()},onFinished:()=>o("finished")}),be=se(()=>Math.floor(u.value)),Oe=()=>z.interfere(()=>ln(100));ku().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const T=R.value&&$.value,J=R.value&&!$.value,oe=!R.value&&$.value,we=!R.value&&!$.value;switch(v.key){case" ":v.preventDefault(),R.value?(Z(!1),z.toggle()):M();break;case"ArrowUp":case"PageUp":T?Oe():oe&&be.value!==0&&(v.preventDefault(),I());break;case"ArrowDown":case"PageDown":T?Oe():oe&&!w.value&&(v.preventDefault(),C());break;case"ArrowLeft":J?Oe():we?(v.preventDefault(),h()):$.value&&Ue();break;case"ArrowRight":J?Oe():we?(v.preventDefault(),_()):$.value&&Pe();break}},onKeyUp:v=>{switch(v.key){case"b":g.value=!g.value;break;case"f":P();break;case"t":D();break;case"h":Z();break}}}),Pt("fullscreenchange",()=>{le.value=!!document.fullscreenElement}),pe(z.isPlaying,v=>{v||M(!1),o("playingChanged",v)}),pe(z.isIdle,v=>{z.isPlaying.value&&M(v)}),pe(c,v=>{!v&&z.isIdle.value?z.awake():v&&n.fullScreen&&M()});function Ot(v){if(u.value===v)return;const T=d.value.length;if(v<0||v>=T+1)return;const J=u.value;u.value=v;const oe=Math.floor(v*100)/100;oe!==s&&(s=oe,o("pageChanged",oe)),v>=T?(M(!1),z.stop()):v<.01&&J>v?(M(!1),z.awake()):i||(R.value?r!==void 0&&Ne()-r>300&&M(!0):Math.abs(J-v)===1&&M(!0))}function Ne(){var T;const v=(T=N.value)==null?void 0:T.$el;return v?$.value?v.scrollTop:V.value?-v.scrollLeft:v.scrollLeft:0}function ht(){!n.touchDevice&&!R.value&&ye.goToPage(be.value,{smooth:!0})}function gt(){if(z.isPlaying.value){!n.fullScreen||!n.touchDevice?z.stop():z.awake();return}M()}function Pe(v=!1){var T,J;(J=(T=m.value)==null?void 0:T.next)==null||J.call(T,v)}function Ue(v=!1){var T,J;(J=(T=m.value)==null?void 0:T.prev)==null||J.call(T,v)}function Lt(v){V.value?Pe(p(v)):Ue(p(v))}function Pn(v){V.value?Ue(p(v)):Pe(p(v))}function p(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function h(){V.value?C():I()}function _(){V.value?I():C()}function I(){var J;const v=Q.value,T=w.value?v[v.length-1][0].index:(J=v[A()-1])==null?void 0:J[0].index;T!==void 0?ye.goToPage(T):Ue()}function C(){var v,T;if(w.value)Pe();else{const J=((T=(v=Q.value[A()+1])==null?void 0:v[0])==null?void 0:T.index)??d.value.length;ye.goToPage(J)}}function A(){const v=be.value,T=Q.value.findIndex(J=>J.some(({index:oe})=>oe===v));return T===-1?Q.value.length-1:T}function F(){Cp(),o("dispose")}async function M(v){if(c.value&&!n.fullScreen)return;const T=typeof v=="boolean"?v:!n.fullScreen;T!==n.fullScreen&&(i=!0,o("fullScreenChanged",T),T&&setTimeout(()=>{n.fullScreen&&c.value&&o("fullScreenChanged",!1)},100))}function D(){n.entryId?ne():W()}function P(){var v,T;document.fullscreenElement?document.exitFullscreen():(T=(v=te.value)==null?void 0:v.$el)==null||T.requestFullscreen()}function W(){z.stop(),o("addEntry")}function ne(){z.stop(),o("openEntry",n.entryId)}function Z(v){L.value!==v&&(L.value=!L.value,L.value&&z.isPlaying.value&&z.stop())}return(v,T)=>v.immediate||l.value?(O(),he(Us,{key:0,ref_key:"root",ref:te,loading:!a.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,zooming:j.value,idle:fe.value,"space-top":f.value,rtl:U(V),onClick:T[14]||(T[14]=Ke(()=>{},["stop"]))},yr({settings:ie(()=>{var J;return[G(Ls,{"reader-style":U(B),"onUpdate:readerStyle":T[5]||(T[5]=oe=>Ee(B)?B.value=oe:null),direction:U(S),"onUpdate:direction":T[6]||(T[6]=oe=>Ee(S)?S.value=oe:null),gap:U(y),"onUpdate:gap":T[7]||(T[7]=oe=>Ee(y)?y.value=oe:null),speed:U(x),"onUpdate:speed":T[8]||(T[8]=oe=>Ee(x)?x.value=oe:null),zoom:ue.value,"onUpdate:zoom":T[9]||(T[9]=oe=>ue.value=oe),"auto-next-seconds":U(E),"onUpdate:autoNextSeconds":T[10]||(T[10]=oe=>Ee(E)?E.value=oe:null),name:(J=v.raw)==null?void 0:J.title.name,webtoon:U(b),disabled:!l.value,onHelp:Z},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled"])]}),"reset-zoom":ie(()=>[G(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ie(()=>[j.value||U(H)!==1?(O(),he(As,{key:0,zoom:ue.value,onClick:T[13]||(T[13]=Ke(()=>ue.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):Ce("",!0)]),_:1})]),progress:ie(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Le({width:`${U(u)/(U(d).length-1)*100}%`})},null,4)]),default:ie(()=>{var J;return[l.value?(O(),he(qs,{key:0,ref_key:"body",ref:N,zoom:ue.value,"onUpdate:zoom":T[0]||(T[0]=oe=>ue.value=oe),zooming:j.value,"onUpdate:zooming":T[1]||(T[1]=oe=>j.value=oe),"page-index":be.value,pages:U(Q),"total-imgs":U(d).length,direction:U(S),gap:U(y),"is-long-strip":U(R),isRTL:U(V),"is-vertical":U($),"space-top":f.value,busy:U(c),idle:fe.value,"play-controller":U(z),"touch-device":v.touchDevice,"has-next":!!((J=m.value)!=null&&J.next),onVnodeMounted:U(ye).init,onPrev:I,onNext:C,onClick:gt,onDragEnd:ht,onWheelPassive:T[2]||(T[2]=()=>U(z).interfere())},yr({_:2},[l.value&&U(d).length?{name:"end",fn:ie(()=>{var oe;return[G(Ts,{"has-next":!!((oe=m.value)!=null&&oe.next),seconds:U(E),onNext:Pe,onHide:F},null,8,["has-next","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onVnodeMounted"])):Ce("",!0),a.value&&!w.value&&!v.tourEnabled?(O(),he(Ns,{key:1,direction:U(S)},null,8,["direction"])):Ce("",!0),a.value&&!w.value?(O(),he(Hs,{key:2,playing:!!U(z).isPlaying.value},null,8,["playing"])):Ce("",!0),L.value?(O(),he(Vs,{key:3,"touch-device":v.touchDevice,onHide:Z},null,8,["touch-device"])):Ce("",!0),v.tourEnabled?(O(),he(Ys,{key:4,onHide:T[3]||(T[3]=()=>o("tourEnabledChanged",!1))})):Ce("",!0)]}),_:2},[v.raw?{name:"back",fn:ie(()=>[G(tt,{href:v.raw.title.url,title:"Back to manga"},{default:ie(()=>[G(Xs)]),_:1},8,["href"])]),key:"0"}:void 0,v.touchDevice?void 0:{name:"exit",fn:ie(()=>[G(tt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:F},{default:ie(()=>[G(il)]),_:1})]),key:"1"},m.value?{name:"chapter-nav",fn:ie(()=>{var J;return[G(Bs,{"touch-device":v.touchDevice,"chapter-spec":(J=v.spec)==null?void 0:J.chapter,data:m.value,onGetHiddenChapters:T[4]||(T[4]=()=>o("getHiddenChapters"))},null,8,["touch-device","chapter-spec","data"]),m.value.next||m.value.prev?(O(),q("div",Op,[G(tt,{title:`${U(V)?"Next":"Prev"} chapter (←)`,disabled:U(V)?!m.value.next:!m.value.prev,class:"!rounded-r-none",onClick:Lt},{default:ie(()=>[G(Qs)]),_:1},8,["title","disabled"]),G(tt,{title:`${U(V)?"Prev":"Next"} chapter (→)`,disabled:U(V)?!m.value.prev:!m.value.next,class:"!rounded-l-none",onClick:Pn},{default:ie(()=>[G(Js)]),_:1},8,["title","disabled"])])):Ce("",!0)]}),key:"2"}:void 0,U(Q).length?{name:"page-nav",fn:ie(()=>[G(Fs,{"model-value":be.value,disabled:!a.value,pages:U(Q),"total-imgs":U(d).length,"onUpdate:modelValue":U(ye).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:ie(()=>[G(tt,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:D},{default:ie(()=>[v.entryId?(O(),he(Gs,{key:0})):(O(),he(Zs,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:ie(()=>[G(tt,{title:`${le.value?"Exit":"Enter"} fullscreen (F)`,onClick:P},{default:ie(()=>[le.value?(O(),he(ol,{key:0})):(O(),he(nl,{key:1}))]),_:1},8,["title"])]),key:"5"},U(R)?{name:"play",fn:ie(()=>[G(tt,{"data-tour":"Press here to play like a video",title:`${U(z).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:T[11]||(T[11]=()=>U(z).toggle())},{default:ie(()=>[U(z).isPlaying.value?(O(),he(mi,{key:0})):(O(),he(vi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,U(K)?{name:"break-first",fn:ie(()=>[G(tt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!a.value,onClick:T[12]||(T[12]=()=>g.value=!U(g))},{default:ie(()=>[U(g)?(O(),he(tl,{key:0})):(O(),he(el,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):Ce("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[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%}.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-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-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
+ `]]]),Lp=Object.freeze(Object.defineProperty({__proto__:null,default:gl},Symbol.toStringTag,{value:"Module"})),zp={},Ap={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},jp=[X("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Dp(e,t){return O(),q("svg",Ap,jp)}const Bp=Object.freeze(Object.defineProperty({__proto__:null,default:ge(zp,[["render",Dp]])},Symbol.toStringTag,{value:"Module"})),ml=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second~*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body>:not(gear-second){visibility:hidden!important}html.gear-second body dialog[open]{pointer-events:auto!important;visibility:visible!important}
29
+ `,Yt="gear-second",wi={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},qe={promise:void 0,data:cn({...wi})};async function Rp(e){return qe.promise?(qe.data.raw=e.raw,await qe.promise):(qe.promise=new Promise(t=>{let n=!1,o=!1,i,r;const s=!!e.spaceTop||!!e.isAutoShow&&!!e.page,l=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(Yt),Object.assign(qe.data,wi),qe.promise=void 0)},a=je(f=>{var d;return!n&&((d=e.onPageChanged)==null?void 0:d.call(e,f))},300);Object.assign(qe.data,wi,e,{immediate:s,onReady(){s||(c(),document.documentElement.classList.add(Yt))},onError(){var f,d;l(),o?((f=e.onDispose)==null||f.call(e),(d=e.onError)==null||d.call(e)):u()},onDispose:()=>{var f;l(),(f=e==null?void 0:e.onDispose)==null||f.call(e)},onFullScreenChanged:f=>{var d;qe.data.fullScreen=f,(d=e.onFullScreenChanged)==null||d.call(e,f)},onPageChanged:f=>{qe.data.page=f,a(f)},onTourEnabledChanged:f=>{qe.data.tourEnabled=f}}),Np(e.spec).then(()=>{if(n){u();return}r=document.createElement(Yt),s?(document.documentElement.classList.add(Yt),document.body.appendChild(r),setTimeout(c)):document.body.appendChild(r);let f=0;i=setInterval(()=>{if(++f===30||n){clearInterval(i),i=void 0;return}r.isConnected||(document.documentElement.classList.add(Yt),document.body.appendChild(r))},100)});function c(){o||(o=!0,t({triggerDoubleTap(){},triggerTouchStart(){},updateArgs(f){Object.assign(qe.data,f)},dispose:l}))}function u(){o||t(void 0)}}),await qe.promise)}async function Np(e){var i;if(window.customElements.get(Yt))return;const t=document.createElement("style"),n=(i=e==null?void 0:e.chapter)!=null&&i.dialog?ml.replace("dialog[open]",`dialog[open],${e.chapter.dialog}`):ml;t.appendChild(document.createTextNode(n)),document.head.appendChild(t);const o=Vc({styles:[await Vp()],data:()=>({readerData:qe.data}),render(){return Ur(gl,this.readerData)}});window.customElements.define(Yt,o)}async function Vp(){const e=Object.assign({"./App.vue":Lp,"./components/AutoNext.vue":hu,"./components/BottomSheet.vue":Eu,"./components/ButtonDropdown.vue":Td,"./components/ButtonIcon.vue":vu,"./components/ButtonReaderSettings.vue":od,"./components/ButtonResetZoom.vue":fd,"./components/ChapterNav.vue":Ed,"./components/DirectionToast.vue":zd,"./components/GesturesContainer.vue":Xd,"./components/HelpScreen.vue":jd,"./components/InputPercentage.vue":Mu,"./components/InputSelect.vue":Lu,"./components/IntersectionWrapper.vue":Zd,"./components/LoadingIndicator.vue":tf,"./components/PageNav.vue":Dd,"./components/PauseToast.vue":Yd,"./components/ReaderBody.vue":af,"./components/ReaderLayout.vue":mf,"./components/ReaderTour.vue":vf,"./components/TableField.vue":ju,"./components/icons/IconBack.vue":xf,"./components/icons/IconBookmarkNew.vue":Tf,"./components/icons/IconBookmarked.vue":Of,"./components/icons/IconChevronLeft.vue":Df,"./components/icons/IconChevronRight.vue":Ff,"./components/icons/IconClose.vue":xu,"./components/icons/IconDouble.vue":Uf,"./components/icons/IconDoubleSkip.vue":Qf,"./components/icons/IconExclamationCircle.vue":Bp,"./components/icons/IconFullscreen.vue":op,"./components/icons/IconFullscreenExit.vue":ap,"./components/icons/IconHelp.vue":Vu,"./components/icons/IconLoading.vue":vd,"./components/icons/IconNext.vue":Ld,"./components/icons/IconPause.vue":Fd,"./components/icons/IconPlay.vue":Ud,"./components/icons/IconReaderExit.vue":pp,"./components/icons/IconSettings.vue":qu,"./components/icons/IconTriangle.vue":xd,"./components/icons/IconZoom.vue":ad}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Rp});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.13.0",
4
+ "version": "1.14.0",
5
5
  "license": "UNLICENSED",
6
6
  "description": "MP manga reader",
7
7
  "main": "index.js",