gear-second 1.20.0 → 1.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +16 -16
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
(function(We,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce():typeof define=="function"&&define.amd?define(ce):(We=typeof globalThis<"u"?globalThis:We||self,We._gearSecond_=ce())})(this,function(){"use strict";var
|
|
1
|
+
(function(We,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce():typeof define=="function"&&define.amd?define(ce):(We=typeof globalThis<"u"?globalThis:We||self,We._gearSecond_=ce())})(this,function(){"use strict";var Zp=Object.defineProperty;var Gp=(We,ce,Je)=>ce in We?Zp(We,ce,{enumerable:!0,configurable:!0,writable:!0,value:Je}):We[ce]=Je;var xe=(We,ce,Je)=>(Gp(We,typeof ce!="symbol"?ce+"":ce,Je),Je);/**
|
|
2
2
|
* @vue/shared v3.4.15
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function We(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const ce={},Je=[],Ke=()=>{},
|
|
5
|
+
**/function We(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const ce={},Je=[],Ke=()=>{},kl=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bo=e=>e.startsWith("onUpdate:"),Se=Object.assign,yo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Cl=Object.prototype.hasOwnProperty,fe=(e,t)=>Cl.call(e,t),ee=Array.isArray,Zt=e=>An(e)==="[object Map]",Ii=e=>An(e)==="[object Set]",se=e=>typeof e=="function",ke=e=>typeof e=="string",Gt=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Ti=e=>(ve(e)||se(e))&&se(e.then)&&se(e.catch),Ei=Object.prototype.toString,An=e=>Ei.call(e),Il=e=>An(e).slice(8,-1),$i=e=>An(e)==="[object Object]",_o=e=>ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dn=We(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Tl=/-(\w)/g,je=jn(e=>e.replace(Tl,(t,n)=>n?n.toUpperCase():"")),El=/\B([A-Z])/g,Ue=jn(e=>e.replace(El,"-$1").toLowerCase()),Rn=jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),wo=jn(e=>e?`on${Rn(e)}`:""),rt=(e,t)=>!Object.is(e,t),Bn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Nn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},xo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},So=e=>{const t=ke(e)?Number(e):NaN;return isNaN(t)?e:t};let Mi;const Oi=()=>Mi||(Mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ze(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=ke(o)?Pl(o):ze(o);if(i)for(const r in i)t[r]=i[r]}return t}else if(ke(e)||ve(e))return e}const $l=/;(?![^(]*\))/g,Ml=/:([^]+)/,Ol=/\/\*[^]*?\*\//g;function Pl(e){const t={};return e.replace(Ol,"").split($l).forEach(n=>{if(n){const o=n.split(Ml);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ee(e){let t="";if(ke(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Ee(e[n]);o&&(t+=o+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ll=We("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Pi(e){return!!e||e===""}const qe=e=>ke(e)?e:e==null?"":ee(e)||ve(e)&&(e.toString===Ei||!se(e.toString))?JSON.stringify(e,Li,2):String(e),Li=(e,t)=>t&&t.__v_isRef?Li(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i],r)=>(n[ko(o,r)+" =>"]=i,n),{})}:Ii(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ko(n))}:Gt(t)?ko(t):ve(t)&&!ee(t)&&!$i(t)?String(t):t,ko=(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 Ye;class Al{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ye;try{return Ye=this,t()}finally{Ye=n}}}on(){Ye=this}off(){Ye=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 Dl(e,t=Ye){t&&t.active&&t.effects.push(e)}function zi(){return Ye}function jl(e){Ye&&Ye.cleanups.push(e)}let At;class Co{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,Dl(this,i)}get dirty(){if(this._dirtyLevel===1){_t();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Bl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=At;try{return yt=!0,At=this,this._runnings++,Ai(this),this.fn()}finally{Di(this),this._runnings--,At=n,yt=t}}stop(){var t;this.active&&(Ai(this),Di(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Bl(e){return e.value}function Ai(e){e._trackId++,e._depsLength=0}function Di(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ji(e.deps[t],e);e.deps.length=e._depsLength}}function ji(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,Io=0;const Bi=[];function _t(){Bi.push(yt),yt=!1}function wt(){const e=Bi.pop();yt=e===void 0?!0:e}function To(){Io++}function Eo(){for(Io--;!Io&&$o.length;)$o.shift()()}function Ri(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&ji(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const $o=[];function Ni(e,t,n){To();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Fi(e),Eo()}function Fi(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,$o.push(t.scheduler))}const Hi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Dt=Symbol(""),Po=Symbol("");function Be(e,t,n){if(yt&&At){let o=Mo.get(e);o||Mo.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Hi(()=>o.delete(n))),Ri(At,i)}}function pt(e,t,n,o,i,r){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&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(Dt)),Zt(e)&&l.push(s.get(Po)));break;case"delete":ee(e)||(l.push(s.get(Dt)),Zt(e)&&l.push(s.get(Po)));break;case"set":Zt(e)&&l.push(s.get(Dt));break}To();for(const a of l)a&&Ni(a,2);Eo()}const Rl=We("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Wi=Nl();function Nl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ue(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(ue)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_t(),To();const o=ue(this)[t].apply(this,n);return Eo(),wt(),o}}),e}function Fl(e){const t=ue(this);return Be(t,"has",e),t.hasOwnProperty(e)}class Ki{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?ea:Qi:r?Ji:Gi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!i){if(s&&fe(Wi,n))return Reflect.get(Wi,n,o);if(n==="hasOwnProperty")return Fl}const l=Reflect.get(t,n,o);return(Gt(n)?Vi.has(n):Rl(n))||(i||Be(t,"get",n),r)?l:Te(l)?s&&_o(n)?l:l.value:ve(l)?i?er(l):an(l):l}}class Ui extends Ki{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=Qt(r);if(!qn(o)&&!Qt(o)&&(r=ue(r),o=ue(o)),!ee(t)&&Te(r)&&!Te(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===ue(i)&&(s?rt(o,r)&&pt(t,"set",n,o):pt(t,"add",n,o)),l}deleteProperty(t,n){const o=fe(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&pt(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Vi.has(n))&&Be(t,"has",n),o}ownKeys(t){return Be(t,"iterate",ee(t)?"length":Dt),Reflect.ownKeys(t)}}class Hl extends Ki{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Vl=new Ui,Wl=new Hl,Kl=new Ui(!0),Oo=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function Hn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ue(e),r=ue(t);n||(rt(t,r)&&Be(i,"get",t),Be(i,"get",r));const{has:s}=Fn(i),l=o?Oo:n?Ao:cn;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=ue(n),i=ue(e);return t||(rt(e,i)&&Be(o,"has",e),Be(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Wn(e,t=!1){return e=e.__v_raw,!t&&Be(ue(e),"iterate",Dt),Reflect.get(e,"size",e)}function qi(e){e=ue(e);const t=ue(this);return Fn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Yi(e,t){t=ue(t);const n=ue(this),{has:o,get:i}=Fn(n);let r=o.call(n,e);r||(e=ue(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?rt(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Xi(e){const t=ue(this),{has:n,get:o}=Fn(t);let i=n.call(t,e);i||(e=ue(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&pt(t,"delete",e,void 0),r}function Zi(){const e=ue(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Kn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ue(s),a=t?Oo:e?Ao:cn;return!e&&Be(l,"iterate",Dt),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function Un(e,t,n){return function(...o){const i=this.__v_raw,r=ue(i),s=Zt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Oo:t?Ao:cn;return!t&&Be(r,"iterate",a?Po:Dt),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ul(){const e={get(r){return Hn(this,r)},get size(){return Wn(this)},has:Vn,add:qi,set:Yi,delete:Xi,clear:Zi,forEach:Kn(!1,!1)},t={get(r){return Hn(this,r,!1,!0)},get size(){return Wn(this)},has:Vn,add:qi,set:Yi,delete:Xi,clear:Zi,forEach:Kn(!1,!0)},n={get(r){return Hn(this,r,!0)},get size(){return Wn(this,!0)},has(r){return Vn.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Kn(!0,!1)},o={get(r){return Hn(this,r,!0,!0)},get size(){return Wn(this,!0)},has(r){return Vn.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Kn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Un(r,!1,!1),n[r]=Un(r,!0,!1),t[r]=Un(r,!1,!0),o[r]=Un(r,!0,!0)}),[e,n,t,o]}const[ql,Yl,Xl,Zl]=Ul();function Lo(e,t){const n=t?e?Zl:Xl:e?Yl:ql;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 Gl={get:Lo(!1,!1)},Jl={get:Lo(!1,!0)},Ql={get:Lo(!0,!1)},Gi=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,ea=new WeakMap;function ta(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function na(e){return e.__v_skip||!Object.isExtensible(e)?0:ta(Tl(e))}function an(e){return Qt(e)?e:zo(e,!1,Vl,Gl,Gi)}function oa(e){return zo(e,!1,Kl,Jl,Ji)}function er(e){return zo(e,!0,Wl,Ql,Qi)}function zo(e,t,n,o,i){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=na(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Jt(e){return Qt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function qn(e){return!!(e&&e.__v_isShallow)}function tr(e){return Jt(e)||Qt(e)}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function nr(e){return Nn(e,"__v_skip",!0),e}const cn=e=>ve(e)?an(e):e,Ao=e=>ve(e)?er(e):e;class or{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Co(()=>t(this._value),()=>un(this,1),()=>this.dep&&Fi(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ue(this);return(!t._cacheable||t.effect.dirty)&&rt(t._value,t._value=t.effect.run())&&un(t,2),Do(t),t.effect._dirtyLevel>=1&&un(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ia(e,t,n=!1){let o,i;const r=se(e);return r?(o=e,i=Ke):(o=e.get,i=e.set),new or(o,i,r||!i,n)}function Do(e){yt&&At&&(e=ue(e),Ri(At,e.dep||(e.dep=Hi(()=>e.dep=void 0,e instanceof or?e:void 0))))}function un(e,t=2,n){e=ue(e);const o=e.dep;o&&Ni(o,t)}function Te(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return ra(e,!1)}function ra(e,t){return Te(e)?e:new sa(e,t)}class sa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ue(t),this._value=n?t:cn(t)}get value(){return Do(this),this._value}set value(t){const n=this.__v_isShallow||qn(t)||Qt(t);t=n?t:ue(t),rt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),un(this,2))}}function q(e){return Te(e)?e.value:e}const la={get:(e,t,n)=>q(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Te(i)&&!Te(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function ir(e){return Jt(e)?e:new Proxy(e,la)}class aa{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Do(this),()=>un(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function rr(e){return new aa(e)}/**
|
|
9
|
+
**/let Ye;class zl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ye;try{return Ye=this,t()}finally{Ye=n}}}on(){Ye=this}off(){Ye=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Al(e,t=Ye){t&&t.active&&t.effects.push(e)}function zi(){return Ye}function Dl(e){Ye&&Ye.cleanups.push(e)}let At;class Co{constructor(t,n,o,i){this.fn=t,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Al(this,i)}get dirty(){if(this._dirtyLevel===1){_t();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(jl(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),wt()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=yt,n=At;try{return yt=!0,At=this,this._runnings++,Ai(this),this.fn()}finally{Di(this),this._runnings--,At=n,yt=t}}stop(){var t;this.active&&(Ai(this),Di(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function jl(e){return e.value}function Ai(e){e._trackId++,e._depsLength=0}function Di(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ji(e.deps[t],e);e.deps.length=e._depsLength}}function ji(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let yt=!0,Io=0;const Ri=[];function _t(){Ri.push(yt),yt=!1}function wt(){const e=Ri.pop();yt=e===void 0?!0:e}function To(){Io++}function Eo(){for(Io--;!Io&&$o.length;)$o.shift()()}function Bi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const o=e.deps[e._depsLength];o!==t?(o&&ji(o,e),e.deps[e._depsLength++]=t):e._depsLength++}}const $o=[];function Ni(e,t,n){To();for(const o of e.keys())if(o._dirtyLevel<t&&e.get(o)===o._trackId){const i=o._dirtyLevel;o._dirtyLevel=t,i===0&&(o._shouldSchedule=!0,o.trigger())}Fi(e),Eo()}function Fi(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,$o.push(t.scheduler))}const Hi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Mo=new WeakMap,Dt=Symbol(""),Oo=Symbol("");function Re(e,t,n){if(yt&&At){let o=Mo.get(e);o||Mo.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Hi(()=>o.delete(n))),Bi(At,i)}}function pt(e,t,n,o,i,r){const s=Mo.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&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(Dt)),Zt(e)&&l.push(s.get(Oo)));break;case"delete":ee(e)||(l.push(s.get(Dt)),Zt(e)&&l.push(s.get(Oo)));break;case"set":Zt(e)&&l.push(s.get(Dt));break}To();for(const a of l)a&&Ni(a,2);Eo()}const Rl=We("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gt)),Wi=Bl();function Bl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ue(this);for(let r=0,s=this.length;r<s;r++)Re(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(ue)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){_t(),To();const o=ue(this)[t].apply(this,n);return Eo(),wt(),o}}),e}function Nl(e){const t=ue(this);return Re(t,"has",e),t.hasOwnProperty(e)}class Ki{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,o){const i=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return o===(i?r?Ql:Qi:r?Ji:Gi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=ee(t);if(!i){if(s&&fe(Wi,n))return Reflect.get(Wi,n,o);if(n==="hasOwnProperty")return Nl}const l=Reflect.get(t,n,o);return(Gt(n)?Vi.has(n):Rl(n))||(i||Re(t,"get",n),r)?l:Te(l)?s&&_o(n)?l:l.value:ve(l)?i?er(l):cn(l):l}}class Ui extends Ki{constructor(t=!1){super(!1,t)}set(t,n,o,i){let r=t[n];if(!this._shallow){const a=Qt(r);if(!qn(o)&&!Qt(o)&&(r=ue(r),o=ue(o)),!ee(t)&&Te(r)&&!Te(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===ue(i)&&(s?rt(o,r)&&pt(t,"set",n,o):pt(t,"add",n,o)),l}deleteProperty(t,n){const o=fe(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&o&&pt(t,"delete",n,void 0),i}has(t,n){const o=Reflect.has(t,n);return(!Gt(n)||!Vi.has(n))&&Re(t,"has",n),o}ownKeys(t){return Re(t,"iterate",ee(t)?"length":Dt),Reflect.ownKeys(t)}}class Fl extends Ki{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Hl=new Ui,Vl=new Fl,Wl=new Ui(!0),Po=e=>e,Fn=e=>Reflect.getPrototypeOf(e);function Hn(e,t,n=!1,o=!1){e=e.__v_raw;const i=ue(e),r=ue(t);n||(rt(t,r)&&Re(i,"get",t),Re(i,"get",r));const{has:s}=Fn(i),l=o?Po:n?Ao: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=ue(n),i=ue(e);return t||(rt(e,i)&&Re(o,"has",e),Re(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Wn(e,t=!1){return e=e.__v_raw,!t&&Re(ue(e),"iterate",Dt),Reflect.get(e,"size",e)}function qi(e){e=ue(e);const t=ue(this);return Fn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Yi(e,t){t=ue(t);const n=ue(this),{has:o,get:i}=Fn(n);let r=o.call(n,e);r||(e=ue(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?rt(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Xi(e){const t=ue(this),{has:n,get:o}=Fn(t);let i=n.call(t,e);i||(e=ue(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&pt(t,"delete",e,void 0),r}function Zi(){const e=ue(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Kn(e,t){return function(o,i){const r=this,s=r.__v_raw,l=ue(s),a=t?Po:e?Ao:un;return!e&&Re(l,"iterate",Dt),s.forEach((c,u)=>o.call(i,a(c),a(u),r))}}function Un(e,t,n){return function(...o){const i=this.__v_raw,r=ue(i),s=Zt(r),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=i[e](...o),u=n?Po:t?Ao:un;return!t&&Re(r,"iterate",a?Oo:Dt),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Kl(){const e={get(r){return Hn(this,r)},get size(){return Wn(this)},has:Vn,add:qi,set:Yi,delete:Xi,clear:Zi,forEach:Kn(!1,!1)},t={get(r){return Hn(this,r,!1,!0)},get size(){return Wn(this)},has:Vn,add:qi,set:Yi,delete:Xi,clear:Zi,forEach:Kn(!1,!0)},n={get(r){return Hn(this,r,!0)},get size(){return Wn(this,!0)},has(r){return Vn.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Kn(!0,!1)},o={get(r){return Hn(this,r,!0,!0)},get size(){return Wn(this,!0)},has(r){return Vn.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Kn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Un(r,!1,!1),n[r]=Un(r,!0,!1),t[r]=Un(r,!1,!0),o[r]=Un(r,!0,!0)}),[e,n,t,o]}const[Ul,ql,Yl,Xl]=Kl();function Lo(e,t){const n=t?e?Xl:Yl:e?ql:Ul;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 Zl={get:Lo(!1,!1)},Gl={get:Lo(!1,!0)},Jl={get:Lo(!0,!1)},Gi=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,Ql=new WeakMap;function ea(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ta(e){return e.__v_skip||!Object.isExtensible(e)?0:ea(Il(e))}function cn(e){return Qt(e)?e:zo(e,!1,Hl,Zl,Gi)}function na(e){return zo(e,!1,Wl,Gl,Ji)}function er(e){return zo(e,!0,Vl,Jl,Qi)}function zo(e,t,n,o,i){if(!ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=ta(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return i.set(e,l),l}function Jt(e){return Qt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function qn(e){return!!(e&&e.__v_isShallow)}function tr(e){return Jt(e)||Qt(e)}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function nr(e){return Nn(e,"__v_skip",!0),e}const un=e=>ve(e)?cn(e):e,Ao=e=>ve(e)?er(e):e;class or{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Co(()=>t(this._value),()=>dn(this,1),()=>this.dep&&Fi(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ue(this);return(!t._cacheable||t.effect.dirty)&&rt(t._value,t._value=t.effect.run())&&dn(t,2),Do(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 oa(e,t,n=!1){let o,i;const r=se(e);return r?(o=e,i=Ke):(o=e.get,i=e.set),new or(o,i,r||!i,n)}function Do(e){yt&&At&&(e=ue(e),Bi(At,e.dep||(e.dep=Hi(()=>e.dep=void 0,e instanceof or?e:void 0))))}function dn(e,t=2,n){e=ue(e);const o=e.dep;o&&Ni(o,t)}function Te(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return ia(e,!1)}function ia(e,t){return Te(e)?e:new ra(e,t)}class ra{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ue(t),this._value=n?t:un(t)}get value(){return Do(this),this._value}set value(t){const n=this.__v_isShallow||qn(t)||Qt(t);t=n?t:ue(t),rt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:un(t),dn(this,2))}}function q(e){return Te(e)?e.value:e}const sa={get:(e,t,n)=>q(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Te(i)&&!Te(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function ir(e){return Jt(e)?e:new Proxy(e,sa)}class la{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Do(this),()=>dn(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function rr(e){return new la(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
|
|
13
|
+
**/const fn=[];function Qp(e,...t){_t();const n=fn.length?fn[fn.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=aa();if(o)ht(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
|
-
`,...
|
|
16
|
-
`],...da(n))}),t}function da({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${Qr(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...fa(e.props),r]:[i+r]}function fa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...sr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function sr(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Te(t)?(t=sr(e,ue(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):se(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ue(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Yn(r,t,n)}return i}function Qe(e,t,n,o){if(se(e)){const r=ht(e,t,n,o);return r&&Ti(r)&&r.catch(s=>{Yn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Qe(e[r],t,n,o));return i}function Yn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){ht(a,null,10,[e,s,l]);return}}pa(e,n,i,o)}function pa(e,t,n,o=!0){console.error(e)}let fn=!1,jo=!1;const Oe=[];let st=0;const en=[];let St=null,jt=0;const lr=Promise.resolve();let Bo=null;function gt(e){const t=Bo||lr;return e?t.then(this?e.bind(this):e):t}function ha(e){let t=st+1,n=Oe.length;for(;t<n;){const o=t+n>>>1,i=Oe[o],r=pn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Ro(e){(!Oe.length||!Oe.includes(e,fn&&e.allowRecurse?st+1:st))&&(e.id==null?Oe.push(e):Oe.splice(ha(e.id),0,e),ar())}function ar(){!fn&&!jo&&(jo=!0,Bo=lr.then(dr))}function ga(e){const t=Oe.indexOf(e);t>st&&Oe.splice(t,1)}function ma(e){ee(e)?en.push(...e):(!St||!St.includes(e,e.allowRecurse?jt+1:jt))&&en.push(e),ar()}function cr(e,t,n=fn?st+1:0){for(;n<Oe.length;n++){const o=Oe[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Oe.splice(n,1),n--,o()}}}function ur(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>pn(n)-pn(o));if(en.length=0,St){St.push(...t);return}for(St=t,jt=0;jt<St.length;jt++)St[jt]();St=null,jt=0}}const pn=e=>e.id==null?1/0:e.id,va=(e,t)=>{const n=pn(e)-pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dr(e){jo=!1,fn=!0,Oe.sort(va);const t=Ke;try{for(st=0;st<Oe.length;st++){const n=Oe[st];n&&n.active!==!1&&ht(n,null,14)}}finally{st=0,Oe.length=0,ur(),fn=!1,Bo=null,(Oe.length||en.length)&&dr()}}function ba(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ce;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:p}=o[u]||ce;p&&(i=n.map(w=>ke(w)?w.trim():w)),d&&(i=n.map(xo))}let l,a=o[l=wo(t)]||o[l=wo(je(t))];!a&&r&&(a=o[l=wo(Ue(t))]),a&&Qe(a,e,6,i);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,i)}}function fr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!se(e)){const a=c=>{const u=fr(c,t,!0);u&&(l=!0,Se(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):Se(s,r),ve(e)&&o.set(e,s),s)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Ue(t))||fe(e,t))}let $e=null,pr=null;function Zn(e){const t=$e;return $e=e,pr=e&&e.type.__scopeId||null,t}function le(e,t=$e,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Wr(-1);const r=Zn(t);let s;try{s=e(...i)}finally{Zn(r),o._d&&Wr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Qp(){}function No(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:p,setupState:w,ctx:E,inheritAttrs:I}=e;let m,B;const M=Zn(e);try{if(n.shapeFlag&4){const U=i||o,S=U;m=at(u.call(S,U,d,r,w,p,E)),B=a}else{const U=t;m=at(U.length>1?U(r,{attrs:a,slots:l,emit:c}):U(r,null)),B=t.props?a:ya(a)}}catch(U){yn.length=0,Yn(U,e,1),m=Q(tt)}let P=m;if(B&&I!==!1){const U=Object.keys(B),{shapeFlag:S}=P;U.length&&S&7&&(s&&U.some(bo)&&(B=_a(B,s)),P=It(P,B))}return n.dirs&&(P=It(P),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(P.transition=n.transition),m=P,Zn(M),m}const ya=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},_a=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function wa(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?hr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(s[p]!==o[p]&&!Xn(c,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?hr(o,s,c):!0:!!s;return!1}function hr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Xn(n,r))return!0}return!1}function xa({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const gr="components",mr=Symbol.for("v-ndc");function vr(e){return ke(e)?Sa(gr,e,!1)||e:e||mr}function Sa(e,t,n=!0,o=!1){const i=$e||Me;if(i){const r=i.type;if(e===gr){const l=Jr(r,!1);if(l&&(l===t||l===je(t)||l===Bn(je(t))))return r}const s=br(i[e]||r[e],t)||br(i.appContext[e],t);return!s&&o?r:s}}function br(e,t){return e&&(e[t]||e[je(t)]||e[Bn(je(t))])}const ka=e=>e.__isSuspense;function Ca(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ma(e)}const Ia=Symbol.for("v-scx"),Ta=()=>Ct(Ia);function Ea(e,t){return Jn(e,null,t)}function $a(e,t){return Jn(e,null,{flush:"sync"})}const Gn={};function ge(e,t,n){return Jn(e,t,n)}function Jn(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=ce){if(t&&r){const y=t;t=(...j)=>{y(...j),S()}}const a=Me,c=y=>o===!0?y:Bt(y,o===!1?1:void 0);let u,d=!1,p=!1;if(Te(e)?(u=()=>e.value,d=qn(e)):Jt(e)?(u=()=>c(e),d=!0):ee(e)?(p=!0,d=e.some(y=>Jt(y)||qn(y)),u=()=>e.map(y=>{if(Te(y))return y.value;if(Jt(y))return c(y);if(se(y))return ht(y,a,2)})):se(e)?t?u=()=>ht(e,a,2):u=()=>(w&&w(),Qe(e,a,3,[E])):u=Ke,t&&o){const y=u;u=()=>Bt(y())}let w,E=y=>{w=P.onStop=()=>{ht(y,a,4),w=P.onStop=void 0}},I;if(po)if(E=Ke,t?n&&Qe(t,a,3,[u(),p?[]:void 0,E]):u(),i==="sync"){const y=Ta();I=y.__watcherHandles||(y.__watcherHandles=[])}else return Ke;let m=p?new Array(e.length).fill(Gn):Gn;const B=()=>{if(!(!P.active||!P.dirty))if(t){const y=P.run();(o||d||(p?y.some((j,b)=>rt(j,m[b])):rt(y,m)))&&(w&&w(),Qe(t,a,3,[y,m===Gn?void 0:p&&m[0]===Gn?[]:m,E]),m=y)}else P.run()};B.allowRecurse=!!t;let M;i==="sync"?M=B:i==="post"?M=()=>Ne(B,a&&a.suspense):(B.pre=!0,a&&(B.id=a.uid),M=()=>Ro(B));const P=new Co(u,Ke,M),U=zi(),S=()=>{P.stop(),U&&yo(U.effects,P)};return t?n?B():m=P.run():i==="post"?Ne(P.run.bind(P),a&&a.suspense):P.run(),I&&I.push(S),S}function Ma(e,t,n){const o=this.proxy,i=ke(e)?e.includes(".")?yr(o,e):()=>o[e]:e.bind(o,o);let r;se(t)?r=t:(r=t.handler,n=t);const s=xn(this),l=Jn(i,r.bind(o),n);return s(),l}function yr(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function Bt(e,t,n=0,o){if(!ve(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),Te(e))Bt(e.value,t,n,o);else if(ee(e))for(let i=0;i<e.length;i++)Bt(e[i],t,n,o);else if(Ii(e)||Zt(e))e.forEach(i=>{Bt(i,t,n,o)});else if($i(e))for(const i in e)Bt(e[i],t,n,o);return e}function lt(e,t){if($e===null)return e;const n=ho($e)||$e.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=ce]=t[i];r&&(se(r)&&(r={mounted:r,updated:r}),r.deep&&Bt(s),o.push({dir:r,instance:n,value:s,oldValue:void 0,arg:l,modifiers:a}))}return e}function Rt(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&&(_t(),Qe(a,n,8,[e.el,l,e,t]),wt())}}const kt=Symbol("_leaveCb"),Qn=Symbol("_enterCb");function Pa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Re(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],_r={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},Oa={name:"BaseTransition",props:_r,setup(e,{slots:t}){const n=uo(),o=Pa();let i;return()=>{const r=t.default&&Sr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const I of r)if(I.type!==tt){s=I;break}}const l=ue(e),{mode:a}=l;if(o.isLeaving)return Ho(s);const c=xr(s);if(!c)return Ho(s);const u=Fo(c,l,o,n);Vo(c,u);const d=n.subTree,p=d&&xr(d);let w=!1;const{getTransitionKey:E}=c.type;if(E){const I=E();i===void 0?i=I:I!==i&&(i=I,w=!0)}if(p&&p.type!==tt&&(!Ht(c,p)||w)){const I=Fo(p,l,o,n);if(Vo(p,I),a==="out-in")return o.isLeaving=!0,I.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ho(s);a==="in-out"&&c.type!==tt&&(I.delayLeave=(m,B,M)=>{const P=wr(o,p);P[String(p.key)]=p,m[kt]=()=>{B(),m[kt]=void 0,delete u.delayedLeave},u.delayedLeave=M})}return s}}};function wr(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Fo(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:w,onLeaveCancelled:E,onBeforeAppear:I,onAppear:m,onAfterAppear:B,onAppearCancelled:M}=t,P=String(e.key),U=wr(n,e),S=(b,k)=>{b&&Qe(b,o,9,k)},y=(b,k)=>{const A=k[1];S(b,k),ee(b)?b.every(G=>G.length<=1)&&A():b.length<=1&&A()},j={mode:r,persisted:s,beforeEnter(b){let k=l;if(!n.isMounted)if(i)k=I||l;else return;b[kt]&&b[kt](!0);const A=U[P];A&&Ht(e,A)&&A.el[kt]&&A.el[kt](),S(k,[b])},enter(b){let k=a,A=c,G=u;if(!n.isMounted)if(i)k=m||a,A=B||c,G=M||u;else return;let C=!1;const h=b[Qn]=x=>{C||(C=!0,x?S(G,[b]):S(A,[b]),j.delayedLeave&&j.delayedLeave(),b[Qn]=void 0)};k?y(k,[b,h]):h()},leave(b,k){const A=String(e.key);if(b[Qn]&&b[Qn](!0),n.isUnmounting)return k();S(d,[b]);let G=!1;const C=b[kt]=h=>{G||(G=!0,k(),h?S(E,[b]):S(w,[b]),b[kt]=void 0,U[A]===e&&delete U[A])};U[A]=e,p?y(p,[b,C]):C()},clone(b){return Fo(b,t,n,o)}};return j}function Ho(e){if(eo(e))return e=It(e),e.children=null,e}function xr(e){return eo(e)?e.children?e.children[0]:void 0:e}function Vo(e,t){e.shapeFlag&6&&e.component?Vo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Sr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ie?(s.patchFlag&128&&i++,o=o.concat(Sr(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?It(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 Ce(e,t){return se(e)?(()=>Se({name:e.name},t,{setup:e}))():e}const hn=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function La(e,t){kr(e,"a",t)}function za(e,t){kr(e,"da",t)}function kr(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(to(t,o,n),n){let i=n.parent;for(;i&&i.parent;)eo(i.parent.vnode)&&Aa(o,t,n,i),i=i.parent}}function Aa(e,t,n,o){const i=to(t,e,o,!0);Nt(()=>{yo(o[t],i)},n)}function to(e,t,n=Me,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=xn(n),a=Qe(t,n,e,s);return l(),wt(),a});return o?i.unshift(r):i.push(r),r}}const mt=e=>(t,n=Me)=>(!po||e==="sp")&&to(e,(...o)=>t(...o),n),Da=mt("bm"),Re=mt("m"),ja=mt("bu"),Cr=mt("u"),Wo=mt("bum"),Nt=mt("um"),Ba=mt("sp"),Ra=mt("rtg"),Na=mt("rtc");function Fa(e,t=Me){to("ec",e,t)}function gn(e,t,n,o){let i;const r=n&&n[o];if(ee(e)||ke(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(ve(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function Ir(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(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 xe(e,t,n={},o,i){if($e.isCE||$e.parent&&hn($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),D();const s=r&&Tr(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 Tr(e){return e.some(t=>lo(t)?!(t.type===tt||t.type===Ie&&!Tr(t.children)):!0)?e:null}const Ko=e=>e?Yr(e)?ho(e)||e.proxy:Ko(e.parent):null,mn=Se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>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,Ro(e.update)}),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>Ma.bind(e)}),Uo=(e,t)=>e!==ce&&!e.__isScriptSetup&&fe(e,t),Ha={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 w=s[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Uo(o,t))return s[t]=1,o[t];if(i!==ce&&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!==ce&&fe(n,t))return s[t]=4,n[t];qo&&(s[t]=0)}}const u=mn[t];let d,p;if(u)return t==="$attrs"&&Be(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ce&&fe(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,fe(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Uo(i,t)?(i[t]=n,!0):o!==ce&&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!==ce&&fe(e,s)||Uo(t,s)||(l=r[0])&&fe(l,s)||fe(o,s)||fe(mn,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 no(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):Se({},no(e),no(t))}let qo=!0;function Va(e){const t=Yo(e),n=e.proxy,o=e.ctx;qo=!1,t.beforeCreate&&Er(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:w,updated:E,activated:I,deactivated:m,beforeDestroy:B,beforeUnmount:M,destroyed:P,unmounted:U,render:S,renderTracked:y,renderTriggered:j,errorCaptured:b,serverPrefetch:k,expose:A,inheritAttrs:G,components:C,directives:h,filters:x}=t;if(c&&Wa(c,o,null),s)for(const z in s){const R=s[z];se(R)&&(o[z]=R.bind(n))}if(i){const z=i.call(n,n);ve(z)&&(e.data=an(z))}if(qo=!0,r)for(const z in r){const R=r[z],pe=se(R)?R.bind(n,n):se(R.get)?R.get.bind(n,n):Ke,de=!se(R)&&se(R.set)?R.set.bind(n):Ke,ye=ae({get:pe,set:de});Object.defineProperty(o,z,{enumerable:!0,configurable:!0,get:()=>ye.value,set:_e=>ye.value=_e})}if(l)for(const z in l)$r(l[z],o,n,z);if(a){const z=se(a)?a.call(n):a;Reflect.ownKeys(z).forEach(R=>{bn(R,z[R])})}u&&Er(u,e,"c");function ie(z,R){ee(R)?R.forEach(pe=>z(pe.bind(n))):R&&z(R.bind(n))}if(ie(Da,d),ie(Re,p),ie(ja,w),ie(Cr,E),ie(La,I),ie(za,m),ie(Fa,b),ie(Na,y),ie(Ra,j),ie(Wo,M),ie(Nt,U),ie(Ba,k),ee(A))if(A.length){const z=e.exposed||(e.exposed={});A.forEach(R=>{Object.defineProperty(z,R,{get:()=>n[R],set:pe=>n[R]=pe})})}else e.exposed||(e.exposed={});S&&e.render===Ke&&(e.render=S),G!=null&&(e.inheritAttrs=G),C&&(e.components=C),h&&(e.directives=h)}function Wa(e,t,n=Ke){ee(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;ve(i)?"default"in i?r=Ct(i.from||o,i.default,!0):r=Ct(i.from||o):r=Ct(i),Te(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Er(e,t,n){Qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function $r(e,t,n,o){const i=o.includes(".")?yr(n,o):()=>n[o];if(ke(e)){const r=t[e];se(r)&&ge(i,r)}else if(se(e))ge(i,e.bind(n));else if(ve(e))if(ee(e))e.forEach(r=>$r(r,t,n,o));else{const r=se(e.handler)?e.handler.bind(n):t[e.handler];se(r)&&ge(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=>oo(a,c,s,!0)),oo(a,t,s)),ve(t)&&r.set(t,a),a}function oo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&oo(e,r,n,!0),i&&i.forEach(s=>oo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Ka[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ka={data:Mr,props:Pr,emits:Pr,methods:vn,computed:vn,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:vn,directives:vn,watch:qa,provide:Mr,inject:Ua};function Mr(e,t){return t?e?function(){return Se(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function Ua(e,t){return vn(Xo(e),Xo(t))}function Xo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ae(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?Se(Object.create(null),e,t):t}function Pr(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Se(Object.create(null),no(e),no(t??{})):t}function qa(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=Ae(e[o],t[o]);return n}function Or(){return{app:null,config:{isNativeTag:Cl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ya=0;function Xa(e,t){return function(o,i=null){se(o)||(o=Se({},o)),i!=null&&!ve(i)&&(i=null);const r=Or(),s=new WeakSet;let l=!1;const a=r.app={_uid:Ya++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:_c,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&se(c.install)?(s.add(c),c.install(a,...u)):se(c)&&(s.add(c),c(a,...u))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,d){if(!l){const p=Q(o,i);return p.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(p,c):e(p,c,d),l=!0,a._container=c,c.__vue_app__=a,ho(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){io=a;try{return c()}finally{io=null}}};return a}}let io=null;function bn(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 Ct(e,t,n=!1){const o=Me||$e;if(o||io){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:io._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&se(t)?t.call(o&&o.proxy):t}}function Za(e,t,n,o=!1){const i={},r={};Nn(r,ao,1),e.propsDefaults=Object.create(null),Lr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:oa(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Ga(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ue(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Xn(e.emitsOptions,p))continue;const w=t[p];if(a)if(fe(r,p))w!==r[p]&&(r[p]=w,c=!0);else{const E=je(p);i[E]=Zo(a,l,E,w,e,!1)}else w!==r[p]&&(r[p]=w,c=!0)}}}else{Lr(e,t,i,r)&&(c=!0);let u;for(const d in l)(!t||!fe(t,d)&&((u=Ue(d))===d||!fe(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=Zo(a,l,d,void 0,e,!0)):delete i[d]);if(r!==l)for(const d in r)(!t||!fe(t,d))&&(delete r[d],c=!0)}c&&pt(e,"set","$attrs")}function Lr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Dn(a))continue;const c=t[a];let u;i&&fe(i,u=je(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Xn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ue(n),c=l||ce;for(let u=0;u<r.length;u++){const d=r[u];n[d]=Zo(i,a,d,c[d],e,!fe(c,d))}}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&&se(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=xn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function zr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!se(e)){const u=d=>{a=!0;const[p,w]=zr(d,t,!0);Se(s,p),w&&l.push(...w)};!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,Je),Je;if(ee(r))for(let u=0;u<r.length;u++){const d=je(r[u]);Ar(d)&&(s[d]=ce)}else if(r)for(const u in r){const d=je(u);if(Ar(d)){const p=r[u],w=s[d]=ee(p)||se(p)?{type:p}:Se({},p);if(w){const E=Br(Boolean,w.type),I=Br(String,w.type);w[0]=E>-1,w[1]=I<0||E<I,(E>-1||fe(w,"default"))&&l.push(d)}}}const c=[s,l];return ve(e)&&o.set(e,c),c}function Ar(e){return e[0]!=="$"}function Dr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function jr(e,t){return Dr(e)===Dr(t)}function Br(e,t){return ee(t)?t.findIndex(n=>jr(n,e)):se(t)&&jr(t,e)?0:-1}const Rr=e=>e[0]==="_"||e==="$stable",Go=e=>ee(e)?e.map(at):[at(e)],Ja=(e,t,n)=>{if(t._n)return t;const o=le((...i)=>Go(t(...i)),n);return o._c=!1,o},Nr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Rr(i))continue;const r=e[i];if(se(r))t[i]=Ja(i,r,o);else if(r!=null){const s=Go(r);t[i]=()=>s}}},Fr=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Qa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ue(t),Nn(t,"_",n)):Nr(t,e.slots={})}else e.slots={},t&&Fr(e,t);Nn(e.slots,ao,1)},ec=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=ce;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(Se(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Nr(t,i)),s=t}else t&&(Fr(e,t),s={default:1});if(r)for(const l in i)!Rr(l)&&s[l]==null&&delete i[l]};function Jo(e,t,n,o,i=!1){if(ee(e)){e.forEach((p,w)=>Jo(p,t&&(ee(t)?t[w]:t),n,o,i));return}if(hn(o)&&!i)return;const r=o.shapeFlag&4?ho(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ce?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ke(c)?(u[c]=null,fe(d,c)&&(d[c]=null)):Te(c)&&(c.value=null)),se(a))ht(a,l,12,[s,u]);else{const p=ke(a),w=Te(a),E=e.f;if(p||w){const I=()=>{if(E){const m=p?fe(d,a)?d[a]:u[a]:a.value;i?ee(m)&&yo(m,r):ee(m)?m.includes(r)||m.push(r):p?(u[a]=[r],fe(d,a)&&(d[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else p?(u[a]=s,fe(d,a)&&(d[a]=s)):w&&(a.value=s,e.k&&(u[e.k]=s))};i||E?I():(I.id=-1,Ne(I,n))}}}const Ne=Ca;function tc(e){return nc(e)}function nc(e,t){const n=Pi();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:w=Ke,insertStaticContent:E}=e,I=(f,g,_,$=null,T=null,H=null,V=void 0,N=null,F=!!g.dynamicChildren)=>{if(f===g)return;f&&!Ht(f,g)&&($=vt(f),_e(f,T,H,!0),f=null),g.patchFlag===-2&&(F=!1,g.dynamicChildren=null);const{type:O,ref:W,shapeFlag:te}=g;switch(O){case ro:m(f,g,_,$);break;case tt:B(f,g,_,$);break;case so:f==null&&M(g,_,$,V);break;case Ie:C(f,g,_,$,T,H,V,N,F);break;default:te&1?S(f,g,_,$,T,H,V,N,F):te&6?h(f,g,_,$,T,H,V,N,F):(te&64||te&128)&&O.process(f,g,_,$,T,H,V,N,F,Ve)}W!=null&&T&&Jo(W,f&&f.ref,H,g||f,!g)},m=(f,g,_,$)=>{if(f==null)o(g.el=l(g.children),_,$);else{const T=g.el=f.el;g.children!==f.children&&c(T,g.children)}},B=(f,g,_,$)=>{f==null?o(g.el=a(g.children||""),_,$):g.el=f.el},M=(f,g,_,$)=>{[f.el,f.anchor]=E(f.children,g,_,$,f.el,f.anchor)},P=({el:f,anchor:g},_,$)=>{let T;for(;f&&f!==g;)T=p(f),o(f,_,$),f=T;o(g,_,$)},U=({el:f,anchor:g})=>{let _;for(;f&&f!==g;)_=p(f),i(f),f=_;i(g)},S=(f,g,_,$,T,H,V,N,F)=>{g.type==="svg"?V="svg":g.type==="math"&&(V="mathml"),f==null?y(g,_,$,T,H,V,N,F):k(f,g,T,H,V,N,F)},y=(f,g,_,$,T,H,V,N)=>{let F,O;const{props:W,shapeFlag:te,transition:J,dirs:oe}=f;if(F=f.el=s(f.type,H,W&&W.is,W),te&8?u(F,f.children):te&16&&b(f.children,F,null,$,T,Qo(f,H),V,N),oe&&Rt(f,null,$,"created"),j(F,f,f.scopeId,V,$),W){for(const L in W)L!=="value"&&!Dn(L)&&r(F,L,null,W[L],H,f.children,$,T,Fe);"value"in W&&r(F,"value",null,W.value,H),(O=W.onVnodeBeforeMount)&&ct(O,$,f)}oe&&Rt(f,null,$,"beforeMount");const v=oc(T,J);v&&J.beforeEnter(F),o(F,g,_),((O=W&&W.onVnodeMounted)||v||oe)&&Ne(()=>{O&&ct(O,$,f),v&&J.enter(F),oe&&Rt(f,null,$,"mounted")},T)},j=(f,g,_,$,T)=>{if(_&&w(f,_),$)for(let H=0;H<$.length;H++)w(f,$[H]);if(T){let H=T.subTree;if(g===H){const V=T.vnode;j(f,V,V.scopeId,V.slotScopeIds,T.parent)}}},b=(f,g,_,$,T,H,V,N,F=0)=>{for(let O=F;O<f.length;O++){const W=f[O]=N?Et(f[O]):at(f[O]);I(null,W,g,_,$,T,H,V,N)}},k=(f,g,_,$,T,H,V)=>{const N=g.el=f.el;let{patchFlag:F,dynamicChildren:O,dirs:W}=g;F|=f.patchFlag&16;const te=f.props||ce,J=g.props||ce;let oe;if(_&&Ft(_,!1),(oe=J.onVnodeBeforeUpdate)&&ct(oe,_,g,f),W&&Rt(g,f,_,"beforeUpdate"),_&&Ft(_,!0),O?A(f.dynamicChildren,O,N,_,$,Qo(g,T),H):V||R(f,g,N,null,_,$,Qo(g,T),H,!1),F>0){if(F&16)G(N,g,te,J,_,$,T);else if(F&2&&te.class!==J.class&&r(N,"class",null,J.class,T),F&4&&r(N,"style",te.style,J.style,T),F&8){const v=g.dynamicProps;for(let L=0;L<v.length;L++){const ne=v[L],re=te[ne],De=J[ne];(De!==re||ne==="value")&&r(N,ne,re,De,T,f.children,_,$,Fe)}}F&1&&f.children!==g.children&&u(N,g.children)}else!V&&O==null&&G(N,g,te,J,_,$,T);((oe=J.onVnodeUpdated)||W)&&Ne(()=>{oe&&ct(oe,_,g,f),W&&Rt(g,f,_,"updated")},$)},A=(f,g,_,$,T,H,V)=>{for(let N=0;N<g.length;N++){const F=f[N],O=g[N],W=F.el&&(F.type===Ie||!Ht(F,O)||F.shapeFlag&70)?d(F.el):_;I(F,O,W,null,$,T,H,V,!0)}},G=(f,g,_,$,T,H,V)=>{if(_!==$){if(_!==ce)for(const N in _)!Dn(N)&&!(N in $)&&r(f,N,_[N],null,V,g.children,T,H,Fe);for(const N in $){if(Dn(N))continue;const F=$[N],O=_[N];F!==O&&N!=="value"&&r(f,N,O,F,V,g.children,T,H,Fe)}"value"in $&&r(f,"value",_.value,$.value,V)}},C=(f,g,_,$,T,H,V,N,F)=>{const O=g.el=f?f.el:l(""),W=g.anchor=f?f.anchor:l("");let{patchFlag:te,dynamicChildren:J,slotScopeIds:oe}=g;oe&&(N=N?N.concat(oe):oe),f==null?(o(O,_,$),o(W,_,$),b(g.children||[],_,W,T,H,V,N,F)):te>0&&te&64&&J&&f.dynamicChildren?(A(f.dynamicChildren,J,_,T,H,V,N),(g.key!=null||T&&g===T.subTree)&&Hr(f,g,!0)):R(f,g,_,W,T,H,V,N,F)},h=(f,g,_,$,T,H,V,N,F)=>{g.slotScopeIds=N,f==null?g.shapeFlag&512?T.ctx.activate(g,_,$,V,F):x(g,_,$,T,H,V,F):K(f,g,F)},x=(f,g,_,$,T,H,V)=>{const N=f.component=fc(f,$,T);if(eo(f)&&(N.ctx.renderer=Ve),pc(N),N.asyncDep){if(T&&T.registerDep(N,ie),!f.el){const F=N.subTree=Q(tt);B(null,F,g,_)}}else ie(N,f,g,_,T,H,V)},K=(f,g,_)=>{const $=g.component=f.component;if(wa(f,g,_))if($.asyncDep&&!$.asyncResolved){z($,g,_);return}else $.next=g,ga($.update),$.effect.dirty=!0,$.update();else g.el=f.el,$.vnode=g},ie=(f,g,_,$,T,H,V)=>{const N=()=>{if(f.isMounted){let{next:W,bu:te,u:J,parent:oe,vnode:v}=f;{const ln=Vr(f);if(ln){W&&(W.el=v.el,z(f,W,V)),ln.asyncDep.then(()=>{f.isUnmounted||N()});return}}let L=W,ne;Ft(f,!1),W?(W.el=v.el,z(f,W,V)):W=v,te&&Rn(te),(ne=W.props&&W.props.onVnodeBeforeUpdate)&&ct(ne,oe,W,v),Ft(f,!0);const re=No(f),De=f.subTree;f.subTree=re,I(De,re,d(De.el),vt(De),f,T,H),W.el=re.el,L===null&&xa(f,re.el),J&&Ne(J,T),(ne=W.props&&W.props.onVnodeUpdated)&&Ne(()=>ct(ne,oe,W,v),T)}else{let W;const{el:te,props:J}=g,{bm:oe,m:v,parent:L}=f,ne=hn(g);if(Ft(f,!1),oe&&Rn(oe),!ne&&(W=J&&J.onVnodeBeforeMount)&&ct(W,L,g),Ft(f,!0),te&&On){const re=()=>{f.subTree=No(f),On(te,f.subTree,f,T,null)};ne?g.type.__asyncLoader().then(()=>!f.isUnmounted&&re()):re()}else{const re=f.subTree=No(f);I(null,re,_,$,f,T,H),g.el=re.el}if(v&&Ne(v,T),!ne&&(W=J&&J.onVnodeMounted)){const re=g;Ne(()=>ct(W,L,re),T)}(g.shapeFlag&256||L&&hn(L.vnode)&&L.vnode.shapeFlag&256)&&f.a&&Ne(f.a,T),f.isMounted=!0,g=_=$=null}},F=f.effect=new Co(N,Ke,()=>Ro(O),f.scope),O=f.update=()=>{F.dirty&&F.run()};O.id=f.uid,Ft(f,!0),O()},z=(f,g,_)=>{g.component=f;const $=f.vnode.props;f.vnode=g,f.next=null,Ga(f,g.props,$,_),ec(f,g.children,_),_t(),cr(f),wt()},R=(f,g,_,$,T,H,V,N,F=!1)=>{const O=f&&f.children,W=f?f.shapeFlag:0,te=g.children,{patchFlag:J,shapeFlag:oe}=g;if(J>0){if(J&128){de(O,te,_,$,T,H,V,N,F);return}else if(J&256){pe(O,te,_,$,T,H,V,N,F);return}}oe&8?(W&16&&Fe(O,T,H),te!==O&&u(_,te)):W&16?oe&16?de(O,te,_,$,T,H,V,N,F):Fe(O,T,H,!0):(W&8&&u(_,""),oe&16&&b(te,_,$,T,H,V,N,F))},pe=(f,g,_,$,T,H,V,N,F)=>{f=f||Je,g=g||Je;const O=f.length,W=g.length,te=Math.min(O,W);let J;for(J=0;J<te;J++){const oe=g[J]=F?Et(g[J]):at(g[J]);I(f[J],oe,_,null,T,H,V,N,F)}O>W?Fe(f,T,H,!0,!1,te):b(g,_,$,T,H,V,N,F,te)},de=(f,g,_,$,T,H,V,N,F)=>{let O=0;const W=g.length;let te=f.length-1,J=W-1;for(;O<=te&&O<=J;){const oe=f[O],v=g[O]=F?Et(g[O]):at(g[O]);if(Ht(oe,v))I(oe,v,_,null,T,H,V,N,F);else break;O++}for(;O<=te&&O<=J;){const oe=f[te],v=g[J]=F?Et(g[J]):at(g[J]);if(Ht(oe,v))I(oe,v,_,null,T,H,V,N,F);else break;te--,J--}if(O>te){if(O<=J){const oe=J+1,v=oe<W?g[oe].el:$;for(;O<=J;)I(null,g[O]=F?Et(g[O]):at(g[O]),_,v,T,H,V,N,F),O++}}else if(O>J)for(;O<=te;)_e(f[O],T,H,!0),O++;else{const oe=O,v=O,L=new Map;for(O=v;O<=J;O++){const Ge=g[O]=F?Et(g[O]):at(g[O]);Ge.key!=null&&L.set(Ge.key,O)}let ne,re=0;const De=J-v+1;let ln=!1,xl=0;const Ln=new Array(De);for(O=0;O<De;O++)Ln[O]=0;for(O=oe;O<=te;O++){const Ge=f[O];if(re>=De){_e(Ge,T,H,!0);continue}let ft;if(Ge.key!=null)ft=L.get(Ge.key);else for(ne=v;ne<=J;ne++)if(Ln[ne-v]===0&&Ht(Ge,g[ne])){ft=ne;break}ft===void 0?_e(Ge,T,H,!0):(Ln[ft-v]=O+1,ft>=xl?xl=ft:ln=!0,I(Ge,g[ft],_,null,T,H,V,N,F),re++)}const Sl=ln?ic(Ln):Je;for(ne=Sl.length-1,O=De-1;O>=0;O--){const Ge=v+O,ft=g[Ge],kl=Ge+1<W?g[Ge+1].el:$;Ln[O]===0?I(null,ft,_,kl,T,H,V,N,F):ln&&(ne<0||O!==Sl[ne]?ye(ft,_,kl,2):ne--)}}},ye=(f,g,_,$,T=null)=>{const{el:H,type:V,transition:N,children:F,shapeFlag:O}=f;if(O&6){ye(f.component.subTree,g,_,$);return}if(O&128){f.suspense.move(g,_,$);return}if(O&64){V.move(f,g,_,Ve);return}if(V===Ie){o(H,g,_);for(let te=0;te<F.length;te++)ye(F[te],g,_,$);o(f.anchor,g,_);return}if(V===so){P(f,g,_);return}if($!==2&&O&1&&N)if($===0)N.beforeEnter(H),o(H,g,_),Ne(()=>N.enter(H),T);else{const{leave:te,delayLeave:J,afterLeave:oe}=N,v=()=>o(H,g,_),L=()=>{te(H,()=>{v(),oe&&oe()})};J?J(H,v,L):L()}else o(H,g,_)},_e=(f,g,_,$=!1,T=!1)=>{const{type:H,props:V,ref:N,children:F,dynamicChildren:O,shapeFlag:W,patchFlag:te,dirs:J}=f;if(N!=null&&Jo(N,null,_,f,!0),W&256){g.ctx.deactivate(f);return}const oe=W&1&&J,v=!hn(f);let L;if(v&&(L=V&&V.onVnodeBeforeUnmount)&&ct(L,g,f),W&6)zt(f.component,_,$);else{if(W&128){f.suspense.unmount(_,$);return}oe&&Rt(f,null,g,"beforeUnmount"),W&64?f.type.remove(f,g,_,T,Ve,$):O&&(H!==Ie||te>0&&te&64)?Fe(O,g,_,!1,!0):(H===Ie&&te&384||!T&&W&16)&&Fe(F,g,_),$&&Pe(f)}(v&&(L=V&&V.onVnodeUnmounted)||oe)&&Ne(()=>{L&&ct(L,g,f),oe&&Rt(f,null,g,"unmounted")},_)},Pe=f=>{const{type:g,el:_,anchor:$,transition:T}=f;if(g===Ie){Xt(_,$);return}if(g===so){U(f);return}const H=()=>{i(_),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:V,delayLeave:N}=T,F=()=>V(_,H);N?N(f.el,H,F):F()}else H()},Xt=(f,g)=>{let _;for(;f!==g;)_=p(f),i(f),f=_;i(g)},zt=(f,g,_)=>{const{bum:$,scope:T,update:H,subTree:V,um:N}=f;$&&Rn($),T.stop(),H&&(H.active=!1,_e(V,f,g,_)),N&&Ne(N,g),Ne(()=>{f.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Fe=(f,g,_,$=!1,T=!1,H=0)=>{for(let V=H;V<f.length;V++)_e(f[V],g,_,$,T)},vt=f=>f.shapeFlag&6?vt(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el);let bt=!1;const He=(f,g,_)=>{f==null?g._vnode&&_e(g._vnode,null,null,!0):I(g._vnode||null,f,g,null,null,null,_),bt||(bt=!0,cr(),ur(),bt=!1),g._vnode=f},Ve={p:I,um:_e,m:ye,r:Pe,mt:x,mc:b,pc:R,pbc:A,n:vt,o:e};let it,On;return t&&([it,On]=t(Ve)),{render:He,hydrate:it,createApp:Xa(He,it)}}function Qo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function oc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hr(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]=Et(i[r]),l.el=s.el),n||Hr(s,l)),l.type===ro&&(l.el=s.el)}}function ic(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Vr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vr(t)}const rc=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),ro=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),so=Symbol.for("v-stc"),yn=[];let ot=null;function D(e=!1){yn.push(ot=e?null:[])}function sc(){yn.pop(),ot=yn[yn.length-1]||null}let _n=1;function Wr(e){_n+=e}function Kr(e){return e.dynamicChildren=_n>0?ot||Je:null,sc(),_n>0&&ot&&ot.push(e),e}function Y(e,t,n,o,i,r){return Kr(X(e,t,n,o,i,r,!0))}function he(e,t,n,o,i){return Kr(Q(e,t,n,o,i,!0))}function lo(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const ao="__vInternal",Ur=({key:e})=>e??null,co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Te(e)||se(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&&Ur(t),ref:t&&co(t),scopeId:pr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$e};return l?(ei(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),_n>0&&!s&&ot&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ot.push(a),a}const Q=lc;function lc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===mr)&&(e=tt),lo(e)){const l=It(e,t,!0);return n&&ei(l,n),_n>0&&!r&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag|=-2,l}if(yc(e)&&(e=e.__vccOpts),t){t=ac(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=Ee(l)),ve(a)&&(tr(a)&&!ee(a)&&(a=Se({},a)),t.style=ze(a))}const s=ke(e)?1:ka(e)?128:rc(e)?64:ve(e)?4:se(e)?2:0;return X(e,t,n,o,i,s,r,!0)}function ac(e){return e?tr(e)||ao in e?Se({},e):e:null}function It(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?wn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ur(l),ref:t&&t.ref?n&&i?ee(i)?i.concat(co(t)):[i,co(t)]:co(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&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tt(e=" ",t=0){return Q(ro,null,e,t)}function cc(e,t){const n=Q(so,null,e);return n.staticCount=t,n}function we(e="",t=!1){return t?(D(),he(tt,null,e)):Q(tt,null,e)}function at(e){return e==null||typeof e=="boolean"?Q(tt):ee(e)?Q(Ie,null,e.slice()):typeof e=="object"?Et(e):Q(ro,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(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&&!(ao in t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[Tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function wn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Ee([t.class,o.class]));else if(i==="style")t.style=ze([t.style,o.style]);else if(zn(i)){const r=t[i],s=o[i];s&&r!==s&&!(ee(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function ct(e,t,n,o=null){Qe(e,t,7,[n,o])}const uc=Or();let dc=0;function fc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||uc,r={uid:dc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Al(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zr(o,i),emitsOptions:fr(o,i),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:o.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=ba.bind(null,r),e.ce&&e.ce(r),r}let Me=null;const uo=()=>Me||$e;let fo,ti;{const e=Pi(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};fo=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),ti=t("__VUE_SSR_SETTERS__",n=>po=n)}const xn=e=>{const t=Me;return fo(e),e.scope.on(),()=>{e.scope.off(),fo(t)}},qr=()=>{Me&&Me.scope.off(),fo(null)};function Yr(e){return e.vnode.shapeFlag&4}let po=!1;function pc(e,t=!1){t&&ti(t);const{props:n,children:o}=e.vnode,i=Yr(e);Za(e,n,i,t),Qa(e,o);const r=i?hc(e,t):void 0;return t&&ti(!1),r}function hc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=nr(new Proxy(e.ctx,Ha));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?mc(e):null,r=xn(e);_t();const s=ht(o,e,0,[e.props,i]);if(wt(),r(),Ti(s)){if(s.then(qr,qr),t)return s.then(l=>{Xr(e,l,t)}).catch(l=>{Yn(l,e,0)});e.asyncDep=s}else Xr(e,s,t)}else Gr(e,t)}function Xr(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=ir(t)),Gr(e,n)}let Zr;function Gr(e,t,n){const o=e.type;if(!e.render){if(!t&&Zr&&!o.render){const i=o.template||Yo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Se(Se({isCustomElement:r,delimiters:l},s),a);o.render=Zr(i,c)}}e.render=o.render||Ke}{const i=xn(e);_t();try{Va(e)}finally{wt(),i()}}}function gc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Be(e,"get","$attrs"),t[n]}}))}function mc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return gc(e)},slots:e.slots,emit:e.emit,expose:t}}function ho(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ir(nr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}}))}const vc=/(?:^|[-_])(\w)/g,bc=e=>e.replace(vc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Jr(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Qr(e,t,n=!1){let o=Jr(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?bc(o):n?"App":"Anonymous"}function yc(e){return se(e)&&"__vccOpts"in e}const ae=(e,t)=>ia(e,t,po);function Sn(e,t,n=ce){const o=uo(),i=je(t),r=Ue(t),s=rr((a,c)=>{let u;return $a(()=>{const d=e[t];rt(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const p=o.vnode.props;!(p&&(t in p||i in p||r in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${r}`in p))&&rt(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function es(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ee(t)?lo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&lo(n)&&(n=[n]),Q(e,t,n))}const _c="3.4.15";/**
|
|
15
|
+
`,...ca(i)),console.warn(...r)}wt()}function aa(){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 ca(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
|
16
|
+
`],...ua(n))}),t}function ua({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${Qr(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...da(e.props),r]:[i+r]}function da(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...sr(o,e[o]))}),n.length>3&&t.push(" ..."),t}function sr(e,t,n){return ke(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Te(t)?(t=sr(e,ue(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):se(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ue(t),n?t:[`${e}=`,t])}function ht(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Yn(r,t,n)}return i}function Qe(e,t,n,o){if(se(e)){const r=ht(e,t,n,o);return r&&Ti(r)&&r.catch(s=>{Yn(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(Qe(e[r],t,n,o));return i}function Yn(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}r=r.parent}const a=t.appContext.config.errorHandler;if(a){ht(a,null,10,[e,s,l]);return}}fa(e,n,i,o)}function fa(e,t,n,o=!0){console.error(e)}let pn=!1,jo=!1;const Pe=[];let st=0;const en=[];let St=null,jt=0;const lr=Promise.resolve();let Ro=null;function gt(e){const t=Ro||lr;return e?t.then(this?e.bind(this):e):t}function pa(e){let t=st+1,n=Pe.length;for(;t<n;){const o=t+n>>>1,i=Pe[o],r=hn(i);r<e||r===e&&i.pre?t=o+1:n=o}return t}function Bo(e){(!Pe.length||!Pe.includes(e,pn&&e.allowRecurse?st+1:st))&&(e.id==null?Pe.push(e):Pe.splice(pa(e.id),0,e),ar())}function ar(){!pn&&!jo&&(jo=!0,Ro=lr.then(dr))}function ha(e){const t=Pe.indexOf(e);t>st&&Pe.splice(t,1)}function ga(e){ee(e)?en.push(...e):(!St||!St.includes(e,e.allowRecurse?jt+1:jt))&&en.push(e),ar()}function cr(e,t,n=pn?st+1:0){for(;n<Pe.length;n++){const o=Pe[n];if(o&&o.pre){if(e&&o.id!==e.uid)continue;Pe.splice(n,1),n--,o()}}}function ur(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>hn(n)-hn(o));if(en.length=0,St){St.push(...t);return}for(St=t,jt=0;jt<St.length;jt++)St[jt]();St=null,jt=0}}const hn=e=>e.id==null?1/0:e.id,ma=(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 dr(e){jo=!1,pn=!0,Pe.sort(ma);const t=Ke;try{for(st=0;st<Pe.length;st++){const n=Pe[st];n&&n.active!==!1&&ht(n,null,14)}}finally{st=0,Pe.length=0,ur(),pn=!1,Ro=null,(Pe.length||en.length)&&dr()}}function va(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ce;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:p}=o[u]||ce;p&&(i=n.map(_=>ke(_)?_.trim():_)),d&&(i=n.map(xo))}let l,a=o[l=wo(t)]||o[l=wo(je(t))];!a&&r&&(a=o[l=wo(Ue(t))]),a&&Qe(a,e,6,i);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Qe(c,e,6,i)}}function fr(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},l=!1;if(!se(e)){const a=c=>{const u=fr(c,t,!0);u&&(l=!0,Se(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):Se(s,r),ve(e)&&o.set(e,s),s)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Ue(t))||fe(e,t))}let $e=null,pr=null;function Zn(e){const t=$e;return $e=e,pr=e&&e.type.__scopeId||null,t}function le(e,t=$e,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Wr(-1);const r=Zn(t);let s;try{s=e(...i)}finally{Zn(r),o._d&&Wr(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function eh(){}function No(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:d,data:p,setupState:_,ctx:$,inheritAttrs:I}=e;let m,j;const M=Zn(e);try{if(n.shapeFlag&4){const U=i||o,S=U;m=at(u.call(S,U,d,r,_,p,$)),j=a}else{const U=t;m=at(U.length>1?U(r,{attrs:a,slots:l,emit:c}):U(r,null)),j=t.props?a:ba(a)}}catch(U){_n.length=0,Yn(U,e,1),m=Q(tt)}let O=m;if(j&&I!==!1){const U=Object.keys(j),{shapeFlag:S}=O;U.length&&S&7&&(s&&U.some(bo)&&(j=ya(j,s)),O=It(O,j))}return n.dirs&&(O=It(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),m=O,Zn(M),m}const ba=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},ya=(e,t)=>{const n={};for(const o in e)(!bo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function _a(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:l,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?hr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(s[p]!==o[p]&&!Xn(c,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?hr(o,s,c):!0:!!s;return!1}function hr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Xn(n,r))return!0}return!1}function wa({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const gr="components",mr=Symbol.for("v-ndc");function vr(e){return ke(e)?xa(gr,e,!1)||e:e||mr}function xa(e,t,n=!0,o=!1){const i=$e||Me;if(i){const r=i.type;if(e===gr){const l=Jr(r,!1);if(l&&(l===t||l===je(t)||l===Rn(je(t))))return r}const s=br(i[e]||r[e],t)||br(i.appContext[e],t);return!s&&o?r:s}}function br(e,t){return e&&(e[t]||e[je(t)]||e[Rn(je(t))])}const Sa=e=>e.__isSuspense;function ka(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ga(e)}const Ca=Symbol.for("v-scx"),Ia=()=>Ct(Ca);function Ta(e,t){return Jn(e,null,t)}function Ea(e,t){return Jn(e,null,{flush:"sync"})}const Gn={};function ge(e,t,n){return Jn(e,t,n)}function Jn(e,t,{immediate:n,deep:o,flush:i,once:r,onTrack:s,onTrigger:l}=ce){if(t&&r){const y=t;t=(...R)=>{y(...R),S()}}const a=Me,c=y=>o===!0?y:Rt(y,o===!1?1:void 0);let u,d=!1,p=!1;if(Te(e)?(u=()=>e.value,d=qn(e)):Jt(e)?(u=()=>c(e),d=!0):ee(e)?(p=!0,d=e.some(y=>Jt(y)||qn(y)),u=()=>e.map(y=>{if(Te(y))return y.value;if(Jt(y))return c(y);if(se(y))return ht(y,a,2)})):se(e)?t?u=()=>ht(e,a,2):u=()=>(_&&_(),Qe(e,a,3,[$])):u=Ke,t&&o){const y=u;u=()=>Rt(y())}let _,$=y=>{_=O.onStop=()=>{ht(y,a,4),_=O.onStop=void 0}},I;if(po)if($=Ke,t?n&&Qe(t,a,3,[u(),p?[]:void 0,$]):u(),i==="sync"){const y=Ia();I=y.__watcherHandles||(y.__watcherHandles=[])}else return Ke;let m=p?new Array(e.length).fill(Gn):Gn;const j=()=>{if(!(!O.active||!O.dirty))if(t){const y=O.run();(o||d||(p?y.some((R,b)=>rt(R,m[b])):rt(y,m)))&&(_&&_(),Qe(t,a,3,[y,m===Gn?void 0:p&&m[0]===Gn?[]:m,$]),m=y)}else O.run()};j.allowRecurse=!!t;let M;i==="sync"?M=j:i==="post"?M=()=>Ne(j,a&&a.suspense):(j.pre=!0,a&&(j.id=a.uid),M=()=>Bo(j));const O=new Co(u,Ke,M),U=zi(),S=()=>{O.stop(),U&&yo(U.effects,O)};return t?n?j():m=O.run():i==="post"?Ne(O.run.bind(O),a&&a.suspense):O.run(),I&&I.push(S),S}function $a(e,t,n){const o=this.proxy,i=ke(e)?e.includes(".")?yr(o,e):()=>o[e]:e.bind(o,o);let r;se(t)?r=t:(r=t.handler,n=t);const s=Sn(this),l=Jn(i,r.bind(o),n);return s(),l}function yr(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function Rt(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),Te(e))Rt(e.value,t,n,o);else if(ee(e))for(let i=0;i<e.length;i++)Rt(e[i],t,n,o);else if(Ii(e)||Zt(e))e.forEach(i=>{Rt(i,t,n,o)});else if($i(e))for(const i in e)Rt(e[i],t,n,o);return e}function lt(e,t){if($e===null)return e;const n=ho($e)||$e.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,s,l,a=ce]=t[i];r&&(se(r)&&(r={mounted:r,updated:r}),r.deep&&Rt(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&&(_t(),Qe(a,n,8,[e.el,l,e,t]),wt())}}const kt=Symbol("_leaveCb"),Qn=Symbol("_enterCb");function Ma(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Be(()=>{e.isMounted=!0}),Wo(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],_r={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},Oa={name:"BaseTransition",props:_r,setup(e,{slots:t}){const n=uo(),o=Ma();let i;return()=>{const r=t.default&&Sr(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const I of r)if(I.type!==tt){s=I;break}}const l=ue(e),{mode:a}=l;if(o.isLeaving)return Ho(s);const c=xr(s);if(!c)return Ho(s);const u=Fo(c,l,o,n);Vo(c,u);const d=n.subTree,p=d&&xr(d);let _=!1;const{getTransitionKey:$}=c.type;if($){const I=$();i===void 0?i=I:I!==i&&(i=I,_=!0)}if(p&&p.type!==tt&&(!Ht(c,p)||_)){const I=Fo(p,l,o,n);if(Vo(p,I),a==="out-in")return o.isLeaving=!0,I.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Ho(s);a==="in-out"&&c.type!==tt&&(I.delayLeave=(m,j,M)=>{const O=wr(o,p);O[String(p.key)]=p,m[kt]=()=>{j(),m[kt]=void 0,delete u.delayedLeave},u.delayedLeave=M})}return s}}};function wr(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Fo(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:_,onLeaveCancelled:$,onBeforeAppear:I,onAppear:m,onAfterAppear:j,onAppearCancelled:M}=t,O=String(e.key),U=wr(n,e),S=(b,k)=>{b&&Qe(b,o,9,k)},y=(b,k)=>{const A=k[1];S(b,k),ee(b)?b.every(G=>G.length<=1)&&A():b.length<=1&&A()},R={mode:r,persisted:s,beforeEnter(b){let k=l;if(!n.isMounted)if(i)k=I||l;else return;b[kt]&&b[kt](!0);const A=U[O];A&&Ht(e,A)&&A.el[kt]&&A.el[kt](),S(k,[b])},enter(b){let k=a,A=c,G=u;if(!n.isMounted)if(i)k=m||a,A=j||c,G=M||u;else return;let C=!1;const h=b[Qn]=x=>{C||(C=!0,x?S(G,[b]):S(A,[b]),R.delayedLeave&&R.delayedLeave(),b[Qn]=void 0)};k?y(k,[b,h]):h()},leave(b,k){const A=String(e.key);if(b[Qn]&&b[Qn](!0),n.isUnmounting)return k();S(d,[b]);let G=!1;const C=b[kt]=h=>{G||(G=!0,k(),h?S($,[b]):S(_,[b]),b[kt]=void 0,U[A]===e&&delete U[A])};U[A]=e,p?y(p,[b,C]):C()},clone(b){return Fo(b,t,n,o)}};return R}function Ho(e){if(eo(e))return e=It(e),e.children=null,e}function xr(e){return eo(e)?e.children?e.children[0]:void 0:e}function Vo(e,t){e.shapeFlag&6&&e.component?Vo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Sr(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ie?(s.patchFlag&128&&i++,o=o.concat(Sr(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?It(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 Ce(e,t){return se(e)?(()=>Se({name:e.name},t,{setup:e}))():e}const gn=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function Pa(e,t){kr(e,"a",t)}function La(e,t){kr(e,"da",t)}function kr(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(to(t,o,n),n){let i=n.parent;for(;i&&i.parent;)eo(i.parent.vnode)&&za(o,t,n,i),i=i.parent}}function za(e,t,n,o){const i=to(t,e,o,!0);Nt(()=>{yo(o[t],i)},n)}function to(e,t,n=Me,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;_t();const l=Sn(n),a=Qe(t,n,e,s);return l(),wt(),a});return o?i.unshift(r):i.push(r),r}}const mt=e=>(t,n=Me)=>(!po||e==="sp")&&to(e,(...o)=>t(...o),n),Aa=mt("bm"),Be=mt("m"),Da=mt("bu"),Cr=mt("u"),Wo=mt("bum"),Nt=mt("um"),ja=mt("sp"),Ra=mt("rtg"),Ba=mt("rtc");function Na(e,t=Me){to("ec",e,t)}function mn(e,t,n,o){let i;const r=n&&n[o];if(ee(e)||ke(e)){i=new Array(e.length);for(let s=0,l=e.length;s<l;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(ve(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,r&&r[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];i[l]=t(e[c],c,l,r&&r[l])}}else i=[];return n&&(n[o]=i),i}function Ir(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(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 we(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),D();const s=r&&Tr(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 Tr(e){return e.some(t=>lo(t)?!(t.type===tt||t.type===Ie&&!Tr(t.children)):!0)?e:null}const Ko=e=>e?Yr(e)?ho(e)||e.proxy:Ko(e.parent):null,vn=Se(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>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=gt.bind(e.proxy)),$watch:e=>$a.bind(e)}),Uo=(e,t)=>e!==ce&&!e.__isScriptSetup&&fe(e,t),Fa={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const _=s[t];if(_!==void 0)switch(_){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Uo(o,t))return s[t]=1,o[t];if(i!==ce&&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!==ce&&fe(n,t))return s[t]=4,n[t];qo&&(s[t]=0)}}const u=vn[t];let d,p;if(u)return t==="$attrs"&&Re(e,"get",t),u(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ce&&fe(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,fe(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return Uo(i,t)?(i[t]=n,!0):o!==ce&&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!==ce&&fe(e,s)||Uo(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 no(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):Se({},no(e),no(t))}let qo=!0;function Ha(e){const t=Yo(e),n=e.proxy,o=e.ctx;qo=!1,t.beforeCreate&&Er(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:_,updated:$,activated:I,deactivated:m,beforeDestroy:j,beforeUnmount:M,destroyed:O,unmounted:U,render:S,renderTracked:y,renderTriggered:R,errorCaptured:b,serverPrefetch:k,expose:A,inheritAttrs:G,components:C,directives:h,filters:x}=t;if(c&&Va(c,o,null),s)for(const z in s){const B=s[z];se(B)&&(o[z]=B.bind(n))}if(i){const z=i.call(n,n);ve(z)&&(e.data=cn(z))}if(qo=!0,r)for(const z in r){const B=r[z],pe=se(B)?B.bind(n,n):se(B.get)?B.get.bind(n,n):Ke,de=!se(B)&&se(B.set)?B.set.bind(n):Ke,be=ae({get:pe,set:de});Object.defineProperty(o,z,{enumerable:!0,configurable:!0,get:()=>be.value,set:ye=>be.value=ye})}if(l)for(const z in l)$r(l[z],o,n,z);if(a){const z=se(a)?a.call(n):a;Reflect.ownKeys(z).forEach(B=>{yn(B,z[B])})}u&&Er(u,e,"c");function ie(z,B){ee(B)?B.forEach(pe=>z(pe.bind(n))):B&&z(B.bind(n))}if(ie(Aa,d),ie(Be,p),ie(Da,_),ie(Cr,$),ie(Pa,I),ie(La,m),ie(Na,b),ie(Ba,y),ie(Ra,R),ie(Wo,M),ie(Nt,U),ie(ja,k),ee(A))if(A.length){const z=e.exposed||(e.exposed={});A.forEach(B=>{Object.defineProperty(z,B,{get:()=>n[B],set:pe=>n[B]=pe})})}else e.exposed||(e.exposed={});S&&e.render===Ke&&(e.render=S),G!=null&&(e.inheritAttrs=G),C&&(e.components=C),h&&(e.directives=h)}function Va(e,t,n=Ke){ee(e)&&(e=Xo(e));for(const o in e){const i=e[o];let r;ve(i)?"default"in i?r=Ct(i.from||o,i.default,!0):r=Ct(i.from||o):r=Ct(i),Te(r)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[o]=r}}function Er(e,t,n){Qe(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function $r(e,t,n,o){const i=o.includes(".")?yr(n,o):()=>n[o];if(ke(e)){const r=t[e];se(r)&&ge(i,r)}else if(se(e))ge(i,e.bind(n));else if(ve(e))if(ee(e))e.forEach(r=>$r(r,t,n,o));else{const r=se(e.handler)?e.handler.bind(n):t[e.handler];se(r)&&ge(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=>oo(a,c,s,!0)),oo(a,t,s)),ve(t)&&r.set(t,a),a}function oo(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&oo(e,r,n,!0),i&&i.forEach(s=>oo(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Wa[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Wa={data:Mr,props:Or,emits:Or,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:Ua,provide:Mr,inject:Ka};function Mr(e,t){return t?e?function(){return Se(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function Ka(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?Se(Object.create(null),e,t):t}function Or(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Se(Object.create(null),no(e),no(t??{})):t}function Ua(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=Ae(e[o],t[o]);return n}function Pr(){return{app:null,config:{isNativeTag:kl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let qa=0;function Ya(e,t){return function(o,i=null){se(o)||(o=Se({},o)),i!=null&&!ve(i)&&(i=null);const r=Pr(),s=new WeakSet;let l=!1;const a=r.app={_uid:qa++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:yc,get config(){return r.config},set config(c){},use(c,...u){return s.has(c)||(c&&se(c.install)?(s.add(c),c.install(a,...u)):se(c)&&(s.add(c),c(a,...u))),a},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),a},component(c,u){return u?(r.components[c]=u,a):r.components[c]},directive(c,u){return u?(r.directives[c]=u,a):r.directives[c]},mount(c,u,d){if(!l){const p=Q(o,i);return p.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(p,c):e(p,c,d),l=!0,a._container=c,c.__vue_app__=a,ho(p.component)||p.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return r.provides[c]=u,a},runWithContext(c){io=a;try{return c()}finally{io=null}}};return a}}let io=null;function yn(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 Ct(e,t,n=!1){const o=Me||$e;if(o||io){const i=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:io._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&se(t)?t.call(o&&o.proxy):t}}function Xa(e,t,n,o=!1){const i={},r={};Nn(r,ao,1),e.propsDefaults=Object.create(null),Lr(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:na(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Za(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,l=ue(i),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Xn(e.emitsOptions,p))continue;const _=t[p];if(a)if(fe(r,p))_!==r[p]&&(r[p]=_,c=!0);else{const $=je(p);i[$]=Zo(a,l,$,_,e,!1)}else _!==r[p]&&(r[p]=_,c=!0)}}}else{Lr(e,t,i,r)&&(c=!0);let u;for(const d in l)(!t||!fe(t,d)&&((u=Ue(d))===d||!fe(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=Zo(a,l,d,void 0,e,!0)):delete i[d]);if(r!==l)for(const d in r)(!t||!fe(t,d))&&(delete r[d],c=!0)}c&&pt(e,"set","$attrs")}function Lr(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Dn(a))continue;const c=t[a];let u;i&&fe(i,u=je(a))?!r||!r.includes(u)?n[u]=c:(l||(l={}))[u]=c:Xn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(r){const a=ue(n),c=l||ce;for(let u=0;u<r.length;u++){const d=r[u];n[d]=Zo(i,a,d,c[d],e,!fe(c,d))}}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&&se(a)){const{propsDefaults:c}=i;if(n in c)o=c[n];else{const u=Sn(i);o=c[n]=a.call(null,t),u()}}else o=a}s[0]&&(r&&!l?o=!1:s[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function zr(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},l=[];let a=!1;if(!se(e)){const u=d=>{a=!0;const[p,_]=zr(d,t,!0);Se(s,p),_&&l.push(..._)};!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,Je),Je;if(ee(r))for(let u=0;u<r.length;u++){const d=je(r[u]);Ar(d)&&(s[d]=ce)}else if(r)for(const u in r){const d=je(u);if(Ar(d)){const p=r[u],_=s[d]=ee(p)||se(p)?{type:p}:Se({},p);if(_){const $=Rr(Boolean,_.type),I=Rr(String,_.type);_[0]=$>-1,_[1]=I<0||$<I,($>-1||fe(_,"default"))&&l.push(d)}}}const c=[s,l];return ve(e)&&o.set(e,c),c}function Ar(e){return e[0]!=="$"}function Dr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function jr(e,t){return Dr(e)===Dr(t)}function Rr(e,t){return ee(t)?t.findIndex(n=>jr(n,e)):se(t)&&jr(t,e)?0:-1}const Br=e=>e[0]==="_"||e==="$stable",Go=e=>ee(e)?e.map(at):[at(e)],Ga=(e,t,n)=>{if(t._n)return t;const o=le((...i)=>Go(t(...i)),n);return o._c=!1,o},Nr=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Br(i))continue;const r=e[i];if(se(r))t[i]=Ga(i,r,o);else if(r!=null){const s=Go(r);t[i]=()=>s}}},Fr=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Ja=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ue(t),Nn(t,"_",n)):Nr(t,e.slots={})}else e.slots={},t&&Fr(e,t);Nn(e.slots,ao,1)},Qa=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=ce;if(o.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(Se(i,t),!n&&l===1&&delete i._):(r=!t.$stable,Nr(t,i)),s=t}else t&&(Fr(e,t),s={default:1});if(r)for(const l in i)!Br(l)&&s[l]==null&&delete i[l]};function Jo(e,t,n,o,i=!1){if(ee(e)){e.forEach((p,_)=>Jo(p,t&&(ee(t)?t[_]:t),n,o,i));return}if(gn(o)&&!i)return;const r=o.shapeFlag&4?ho(o.component)||o.component.proxy:o.el,s=i?null:r,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ce?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==a&&(ke(c)?(u[c]=null,fe(d,c)&&(d[c]=null)):Te(c)&&(c.value=null)),se(a))ht(a,l,12,[s,u]);else{const p=ke(a),_=Te(a),$=e.f;if(p||_){const I=()=>{if($){const m=p?fe(d,a)?d[a]:u[a]:a.value;i?ee(m)&&yo(m,r):ee(m)?m.includes(r)||m.push(r):p?(u[a]=[r],fe(d,a)&&(d[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else p?(u[a]=s,fe(d,a)&&(d[a]=s)):_&&(a.value=s,e.k&&(u[e.k]=s))};i||$?I():(I.id=-1,Ne(I,n))}}}const Ne=ka;function ec(e){return tc(e)}function tc(e,t){const n=Oi();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:_=Ke,insertStaticContent:$}=e,I=(f,g,w,E=null,T=null,H=null,V=void 0,N=null,F=!!g.dynamicChildren)=>{if(f===g)return;f&&!Ht(f,g)&&(E=vt(f),ye(f,T,H,!0),f=null),g.patchFlag===-2&&(F=!1,g.dynamicChildren=null);const{type:P,ref:W,shapeFlag:te}=g;switch(P){case ro:m(f,g,w,E);break;case tt:j(f,g,w,E);break;case so:f==null&&M(g,w,E,V);break;case Ie:C(f,g,w,E,T,H,V,N,F);break;default:te&1?S(f,g,w,E,T,H,V,N,F):te&6?h(f,g,w,E,T,H,V,N,F):(te&64||te&128)&&P.process(f,g,w,E,T,H,V,N,F,Ve)}W!=null&&T&&Jo(W,f&&f.ref,H,g||f,!g)},m=(f,g,w,E)=>{if(f==null)o(g.el=l(g.children),w,E);else{const T=g.el=f.el;g.children!==f.children&&c(T,g.children)}},j=(f,g,w,E)=>{f==null?o(g.el=a(g.children||""),w,E):g.el=f.el},M=(f,g,w,E)=>{[f.el,f.anchor]=$(f.children,g,w,E,f.el,f.anchor)},O=({el:f,anchor:g},w,E)=>{let T;for(;f&&f!==g;)T=p(f),o(f,w,E),f=T;o(g,w,E)},U=({el:f,anchor:g})=>{let w;for(;f&&f!==g;)w=p(f),i(f),f=w;i(g)},S=(f,g,w,E,T,H,V,N,F)=>{g.type==="svg"?V="svg":g.type==="math"&&(V="mathml"),f==null?y(g,w,E,T,H,V,N,F):k(f,g,T,H,V,N,F)},y=(f,g,w,E,T,H,V,N)=>{let F,P;const{props:W,shapeFlag:te,transition:J,dirs:oe}=f;if(F=f.el=s(f.type,H,W&&W.is,W),te&8?u(F,f.children):te&16&&b(f.children,F,null,E,T,Qo(f,H),V,N),oe&&Bt(f,null,E,"created"),R(F,f,f.scopeId,V,E),W){for(const L in W)L!=="value"&&!Dn(L)&&r(F,L,null,W[L],H,f.children,E,T,Fe);"value"in W&&r(F,"value",null,W.value,H),(P=W.onVnodeBeforeMount)&&ct(P,E,f)}oe&&Bt(f,null,E,"beforeMount");const v=nc(T,J);v&&J.beforeEnter(F),o(F,g,w),((P=W&&W.onVnodeMounted)||v||oe)&&Ne(()=>{P&&ct(P,E,f),v&&J.enter(F),oe&&Bt(f,null,E,"mounted")},T)},R=(f,g,w,E,T)=>{if(w&&_(f,w),E)for(let H=0;H<E.length;H++)_(f,E[H]);if(T){let H=T.subTree;if(g===H){const V=T.vnode;R(f,V,V.scopeId,V.slotScopeIds,T.parent)}}},b=(f,g,w,E,T,H,V,N,F=0)=>{for(let P=F;P<f.length;P++){const W=f[P]=N?Et(f[P]):at(f[P]);I(null,W,g,w,E,T,H,V,N)}},k=(f,g,w,E,T,H,V)=>{const N=g.el=f.el;let{patchFlag:F,dynamicChildren:P,dirs:W}=g;F|=f.patchFlag&16;const te=f.props||ce,J=g.props||ce;let oe;if(w&&Ft(w,!1),(oe=J.onVnodeBeforeUpdate)&&ct(oe,w,g,f),W&&Bt(g,f,w,"beforeUpdate"),w&&Ft(w,!0),P?A(f.dynamicChildren,P,N,w,E,Qo(g,T),H):V||B(f,g,N,null,w,E,Qo(g,T),H,!1),F>0){if(F&16)G(N,g,te,J,w,E,T);else if(F&2&&te.class!==J.class&&r(N,"class",null,J.class,T),F&4&&r(N,"style",te.style,J.style,T),F&8){const v=g.dynamicProps;for(let L=0;L<v.length;L++){const ne=v[L],re=te[ne],De=J[ne];(De!==re||ne==="value")&&r(N,ne,re,De,T,f.children,w,E,Fe)}}F&1&&f.children!==g.children&&u(N,g.children)}else!V&&P==null&&G(N,g,te,J,w,E,T);((oe=J.onVnodeUpdated)||W)&&Ne(()=>{oe&&ct(oe,w,g,f),W&&Bt(g,f,w,"updated")},E)},A=(f,g,w,E,T,H,V)=>{for(let N=0;N<g.length;N++){const F=f[N],P=g[N],W=F.el&&(F.type===Ie||!Ht(F,P)||F.shapeFlag&70)?d(F.el):w;I(F,P,W,null,E,T,H,V,!0)}},G=(f,g,w,E,T,H,V)=>{if(w!==E){if(w!==ce)for(const N in w)!Dn(N)&&!(N in E)&&r(f,N,w[N],null,V,g.children,T,H,Fe);for(const N in E){if(Dn(N))continue;const F=E[N],P=w[N];F!==P&&N!=="value"&&r(f,N,P,F,V,g.children,T,H,Fe)}"value"in E&&r(f,"value",w.value,E.value,V)}},C=(f,g,w,E,T,H,V,N,F)=>{const P=g.el=f?f.el:l(""),W=g.anchor=f?f.anchor:l("");let{patchFlag:te,dynamicChildren:J,slotScopeIds:oe}=g;oe&&(N=N?N.concat(oe):oe),f==null?(o(P,w,E),o(W,w,E),b(g.children||[],w,W,T,H,V,N,F)):te>0&&te&64&&J&&f.dynamicChildren?(A(f.dynamicChildren,J,w,T,H,V,N),(g.key!=null||T&&g===T.subTree)&&Hr(f,g,!0)):B(f,g,w,W,T,H,V,N,F)},h=(f,g,w,E,T,H,V,N,F)=>{g.slotScopeIds=N,f==null?g.shapeFlag&512?T.ctx.activate(g,w,E,V,F):x(g,w,E,T,H,V,F):K(f,g,F)},x=(f,g,w,E,T,H,V)=>{const N=f.component=dc(f,E,T);if(eo(f)&&(N.ctx.renderer=Ve),fc(N),N.asyncDep){if(T&&T.registerDep(N,ie),!f.el){const F=N.subTree=Q(tt);j(null,F,g,w)}}else ie(N,f,g,w,T,H,V)},K=(f,g,w)=>{const E=g.component=f.component;if(_a(f,g,w))if(E.asyncDep&&!E.asyncResolved){z(E,g,w);return}else E.next=g,ha(E.update),E.effect.dirty=!0,E.update();else g.el=f.el,E.vnode=g},ie=(f,g,w,E,T,H,V)=>{const N=()=>{if(f.isMounted){let{next:W,bu:te,u:J,parent:oe,vnode:v}=f;{const an=Vr(f);if(an){W&&(W.el=v.el,z(f,W,V)),an.asyncDep.then(()=>{f.isUnmounted||N()});return}}let L=W,ne;Ft(f,!1),W?(W.el=v.el,z(f,W,V)):W=v,te&&Bn(te),(ne=W.props&&W.props.onVnodeBeforeUpdate)&&ct(ne,oe,W,v),Ft(f,!0);const re=No(f),De=f.subTree;f.subTree=re,I(De,re,d(De.el),vt(De),f,T,H),W.el=re.el,L===null&&wa(f,re.el),J&&Ne(J,T),(ne=W.props&&W.props.onVnodeUpdated)&&Ne(()=>ct(ne,oe,W,v),T)}else{let W;const{el:te,props:J}=g,{bm:oe,m:v,parent:L}=f,ne=gn(g);if(Ft(f,!1),oe&&Bn(oe),!ne&&(W=J&&J.onVnodeBeforeMount)&&ct(W,L,g),Ft(f,!0),te&&Pn){const re=()=>{f.subTree=No(f),Pn(te,f.subTree,f,T,null)};ne?g.type.__asyncLoader().then(()=>!f.isUnmounted&&re()):re()}else{const re=f.subTree=No(f);I(null,re,w,E,f,T,H),g.el=re.el}if(v&&Ne(v,T),!ne&&(W=J&&J.onVnodeMounted)){const re=g;Ne(()=>ct(W,L,re),T)}(g.shapeFlag&256||L&&gn(L.vnode)&&L.vnode.shapeFlag&256)&&f.a&&Ne(f.a,T),f.isMounted=!0,g=w=E=null}},F=f.effect=new Co(N,Ke,()=>Bo(P),f.scope),P=f.update=()=>{F.dirty&&F.run()};P.id=f.uid,Ft(f,!0),P()},z=(f,g,w)=>{g.component=f;const E=f.vnode.props;f.vnode=g,f.next=null,Za(f,g.props,E,w),Qa(f,g.children,w),_t(),cr(f),wt()},B=(f,g,w,E,T,H,V,N,F=!1)=>{const P=f&&f.children,W=f?f.shapeFlag:0,te=g.children,{patchFlag:J,shapeFlag:oe}=g;if(J>0){if(J&128){de(P,te,w,E,T,H,V,N,F);return}else if(J&256){pe(P,te,w,E,T,H,V,N,F);return}}oe&8?(W&16&&Fe(P,T,H),te!==P&&u(w,te)):W&16?oe&16?de(P,te,w,E,T,H,V,N,F):Fe(P,T,H,!0):(W&8&&u(w,""),oe&16&&b(te,w,E,T,H,V,N,F))},pe=(f,g,w,E,T,H,V,N,F)=>{f=f||Je,g=g||Je;const P=f.length,W=g.length,te=Math.min(P,W);let J;for(J=0;J<te;J++){const oe=g[J]=F?Et(g[J]):at(g[J]);I(f[J],oe,w,null,T,H,V,N,F)}P>W?Fe(f,T,H,!0,!1,te):b(g,w,E,T,H,V,N,F,te)},de=(f,g,w,E,T,H,V,N,F)=>{let P=0;const W=g.length;let te=f.length-1,J=W-1;for(;P<=te&&P<=J;){const oe=f[P],v=g[P]=F?Et(g[P]):at(g[P]);if(Ht(oe,v))I(oe,v,w,null,T,H,V,N,F);else break;P++}for(;P<=te&&P<=J;){const oe=f[te],v=g[J]=F?Et(g[J]):at(g[J]);if(Ht(oe,v))I(oe,v,w,null,T,H,V,N,F);else break;te--,J--}if(P>te){if(P<=J){const oe=J+1,v=oe<W?g[oe].el:E;for(;P<=J;)I(null,g[P]=F?Et(g[P]):at(g[P]),w,v,T,H,V,N,F),P++}}else if(P>J)for(;P<=te;)ye(f[P],T,H,!0),P++;else{const oe=P,v=P,L=new Map;for(P=v;P<=J;P++){const Ge=g[P]=F?Et(g[P]):at(g[P]);Ge.key!=null&&L.set(Ge.key,P)}let ne,re=0;const De=J-v+1;let an=!1,wl=0;const Ln=new Array(De);for(P=0;P<De;P++)Ln[P]=0;for(P=oe;P<=te;P++){const Ge=f[P];if(re>=De){ye(Ge,T,H,!0);continue}let ft;if(Ge.key!=null)ft=L.get(Ge.key);else for(ne=v;ne<=J;ne++)if(Ln[ne-v]===0&&Ht(Ge,g[ne])){ft=ne;break}ft===void 0?ye(Ge,T,H,!0):(Ln[ft-v]=P+1,ft>=wl?wl=ft:an=!0,I(Ge,g[ft],w,null,T,H,V,N,F),re++)}const xl=an?oc(Ln):Je;for(ne=xl.length-1,P=De-1;P>=0;P--){const Ge=v+P,ft=g[Ge],Sl=Ge+1<W?g[Ge+1].el:E;Ln[P]===0?I(null,ft,w,Sl,T,H,V,N,F):an&&(ne<0||P!==xl[ne]?be(ft,w,Sl,2):ne--)}}},be=(f,g,w,E,T=null)=>{const{el:H,type:V,transition:N,children:F,shapeFlag:P}=f;if(P&6){be(f.component.subTree,g,w,E);return}if(P&128){f.suspense.move(g,w,E);return}if(P&64){V.move(f,g,w,Ve);return}if(V===Ie){o(H,g,w);for(let te=0;te<F.length;te++)be(F[te],g,w,E);o(f.anchor,g,w);return}if(V===so){O(f,g,w);return}if(E!==2&&P&1&&N)if(E===0)N.beforeEnter(H),o(H,g,w),Ne(()=>N.enter(H),T);else{const{leave:te,delayLeave:J,afterLeave:oe}=N,v=()=>o(H,g,w),L=()=>{te(H,()=>{v(),oe&&oe()})};J?J(H,v,L):L()}else o(H,g,w)},ye=(f,g,w,E=!1,T=!1)=>{const{type:H,props:V,ref:N,children:F,dynamicChildren:P,shapeFlag:W,patchFlag:te,dirs:J}=f;if(N!=null&&Jo(N,null,w,f,!0),W&256){g.ctx.deactivate(f);return}const oe=W&1&&J,v=!gn(f);let L;if(v&&(L=V&&V.onVnodeBeforeUnmount)&&ct(L,g,f),W&6)zt(f.component,w,E);else{if(W&128){f.suspense.unmount(w,E);return}oe&&Bt(f,null,g,"beforeUnmount"),W&64?f.type.remove(f,g,w,T,Ve,E):P&&(H!==Ie||te>0&&te&64)?Fe(P,g,w,!1,!0):(H===Ie&&te&384||!T&&W&16)&&Fe(F,g,w),E&&Oe(f)}(v&&(L=V&&V.onVnodeUnmounted)||oe)&&Ne(()=>{L&&ct(L,g,f),oe&&Bt(f,null,g,"unmounted")},w)},Oe=f=>{const{type:g,el:w,anchor:E,transition:T}=f;if(g===Ie){Xt(w,E);return}if(g===so){U(f);return}const H=()=>{i(w),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(f.shapeFlag&1&&T&&!T.persisted){const{leave:V,delayLeave:N}=T,F=()=>V(w,H);N?N(f.el,H,F):F()}else H()},Xt=(f,g)=>{let w;for(;f!==g;)w=p(f),i(f),f=w;i(g)},zt=(f,g,w)=>{const{bum:E,scope:T,update:H,subTree:V,um:N}=f;E&&Bn(E),T.stop(),H&&(H.active=!1,ye(V,f,g,w)),N&&Ne(N,g),Ne(()=>{f.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Fe=(f,g,w,E=!1,T=!1,H=0)=>{for(let V=H;V<f.length;V++)ye(f[V],g,w,E,T)},vt=f=>f.shapeFlag&6?vt(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el);let bt=!1;const He=(f,g,w)=>{f==null?g._vnode&&ye(g._vnode,null,null,!0):I(g._vnode||null,f,g,null,null,null,w),bt||(bt=!0,cr(),ur(),bt=!1),g._vnode=f},Ve={p:I,um:ye,m:be,r:Oe,mt:x,mc:b,pc:B,pbc:A,n:vt,o:e};let it,Pn;return t&&([it,Pn]=t(Ve)),{render:He,hydrate:it,createApp:Ya(He,it)}}function Qo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ft({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function nc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hr(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]=Et(i[r]),l.el=s.el),n||Hr(s,l)),l.type===ro&&(l.el=s.el)}}function oc(e){const t=e.slice(),n=[0];let o,i,r,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(i=n[n.length-1],e[i]<c){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)l=r+s>>1,e[n[l]]<c?r=l+1:s=l;c<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function Vr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vr(t)}const ic=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),ro=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),so=Symbol.for("v-stc"),_n=[];let ot=null;function D(e=!1){_n.push(ot=e?null:[])}function rc(){_n.pop(),ot=_n[_n.length-1]||null}let wn=1;function Wr(e){wn+=e}function Kr(e){return e.dynamicChildren=wn>0?ot||Je:null,rc(),wn>0&&ot&&ot.push(e),e}function Y(e,t,n,o,i,r){return Kr(X(e,t,n,o,i,r,!0))}function he(e,t,n,o,i){return Kr(Q(e,t,n,o,i,!0))}function lo(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const ao="__vInternal",Ur=({key:e})=>e??null,co=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||Te(e)||se(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&&Ur(t),ref:t&&co(t),scopeId:pr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$e};return l?(ei(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),wn>0&&!s&&ot&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&ot.push(a),a}const Q=sc;function sc(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===mr)&&(e=tt),lo(e)){const l=It(e,t,!0);return n&&ei(l,n),wn>0&&!r&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag|=-2,l}if(bc(e)&&(e=e.__vccOpts),t){t=lc(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=Ee(l)),ve(a)&&(tr(a)&&!ee(a)&&(a=Se({},a)),t.style=ze(a))}const s=ke(e)?1:Sa(e)?128:ic(e)?64:ve(e)?4:se(e)?2:0;return X(e,t,n,o,i,s,r,!0)}function lc(e){return e?tr(e)||ao in e?Se({},e):e:null}function It(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,l=t?xn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ur(l),ref:t&&t.ref?n&&i?ee(i)?i.concat(co(t)):[i,co(t)]:co(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&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tt(e=" ",t=0){return Q(ro,null,e,t)}function ac(e,t){const n=Q(so,null,e);return n.staticCount=t,n}function _e(e="",t=!1){return t?(D(),he(tt,null,e)):Q(tt,null,e)}function at(e){return e==null||typeof e=="boolean"?Q(tt):ee(e)?Q(Ie,null,e.slice()):typeof e=="object"?Et(e):Q(ro,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(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&&!(ao in t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:$e},n=32):(t=String(t),o&64?(n=16,t=[Tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function xn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Ee([t.class,o.class]));else if(i==="style")t.style=ze([t.style,o.style]);else if(zn(i)){const r=t[i],s=o[i];s&&r!==s&&!(ee(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function ct(e,t,n,o=null){Qe(e,t,7,[n,o])}const cc=Pr();let uc=0;function dc(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||cc,r={uid:uc++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new zl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zr(o,i),emitsOptions:fr(o,i),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:o.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=va.bind(null,r),e.ce&&e.ce(r),r}let Me=null;const uo=()=>Me||$e;let fo,ti;{const e=Oi(),t=(n,o)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(o),r=>{i.length>1?i.forEach(s=>s(r)):i[0](r)}};fo=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),ti=t("__VUE_SSR_SETTERS__",n=>po=n)}const Sn=e=>{const t=Me;return fo(e),e.scope.on(),()=>{e.scope.off(),fo(t)}},qr=()=>{Me&&Me.scope.off(),fo(null)};function Yr(e){return e.vnode.shapeFlag&4}let po=!1;function fc(e,t=!1){t&&ti(t);const{props:n,children:o}=e.vnode,i=Yr(e);Xa(e,n,i,t),Ja(e,o);const r=i?pc(e,t):void 0;return t&&ti(!1),r}function pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=nr(new Proxy(e.ctx,Fa));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?gc(e):null,r=Sn(e);_t();const s=ht(o,e,0,[e.props,i]);if(wt(),r(),Ti(s)){if(s.then(qr,qr),t)return s.then(l=>{Xr(e,l,t)}).catch(l=>{Yn(l,e,0)});e.asyncDep=s}else Xr(e,s,t)}else Gr(e,t)}function Xr(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ve(t)&&(e.setupState=ir(t)),Gr(e,n)}let Zr;function Gr(e,t,n){const o=e.type;if(!e.render){if(!t&&Zr&&!o.render){const i=o.template||Yo(e).template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Se(Se({isCustomElement:r,delimiters:l},s),a);o.render=Zr(i,c)}}e.render=o.render||Ke}{const i=Sn(e);_t();try{Ha(e)}finally{wt(),i()}}}function hc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function gc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return hc(e)},slots:e.slots,emit:e.emit,expose:t}}function ho(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ir(nr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}const mc=/(?:^|[-_])(\w)/g,vc=e=>e.replace(mc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Jr(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Qr(e,t,n=!1){let o=Jr(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?vc(o):n?"App":"Anonymous"}function bc(e){return se(e)&&"__vccOpts"in e}const ae=(e,t)=>oa(e,t,po);function kn(e,t,n=ce){const o=uo(),i=je(t),r=Ue(t),s=rr((a,c)=>{let u;return Ea(()=>{const d=e[t];rt(u,d)&&(u=d,c())}),{get(){return a(),n.get?n.get(u):u},set(d){const p=o.vnode.props;!(p&&(t in p||i in p||r in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${r}`in p))&&rt(d,u)&&(u=d,c()),o.emit(`update:${t}`,n.set?n.set(d):d)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return s[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?e[l]||{}:s,done:!1}:{done:!0}}}},s}function es(e,t,n){const o=arguments.length;return o===2?ve(t)&&!ee(t)?lo(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&lo(n)&&(n=[n]),Q(e,t,n))}const yc="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 wc="http://www.w3.org/2000/svg",xc="http://www.w3.org/1998/Math/MathML",$t=typeof document<"u"?document:null,ts=$t&&$t.createElement("template"),Sc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i=t==="svg"?$t.createElementNS(wc,e):t==="mathml"?$t.createElementNS(xc,e):$t.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>$t.createTextNode(e),createComment:e=>$t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{ts.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=ts.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mt="transition",kn="animation",Cn=Symbol("_vtc"),nn=(e,{slots:t})=>es(Oa,kc(e),t);nn.displayName="Transition";const ns={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=Se({},_r,ns);const Vt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},os=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function kc(e){const t={};for(const C in e)C in ns||(t[C]=e[C]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,E=Cc(i),I=E&&E[0],m=E&&E[1],{onBeforeEnter:B,onEnter:M,onEnterCancelled:P,onLeave:U,onLeaveCancelled:S,onBeforeAppear:y=B,onAppear:j=M,onAppearCancelled:b=P}=t,k=(C,h,x)=>{Wt(C,h?u:l),Wt(C,h?c:s),x&&x()},A=(C,h)=>{C._isLeaving=!1,Wt(C,d),Wt(C,w),Wt(C,p),h&&h()},G=C=>(h,x)=>{const K=C?j:M,ie=()=>k(h,C,x);Vt(K,[h,ie]),is(()=>{Wt(h,C?a:r),Pt(h,C?u:l),os(K)||rs(h,o,I,ie)})};return Se(t,{onBeforeEnter(C){Vt(B,[C]),Pt(C,r),Pt(C,s)},onBeforeAppear(C){Vt(y,[C]),Pt(C,a),Pt(C,c)},onEnter:G(!1),onAppear:G(!0),onLeave(C,h){C._isLeaving=!0;const x=()=>A(C,h);Pt(C,d),Ec(),Pt(C,p),is(()=>{C._isLeaving&&(Wt(C,d),Pt(C,w),os(U)||rs(C,o,m,x))}),Vt(U,[C,x])},onEnterCancelled(C){k(C,!1),Vt(P,[C])},onAppearCancelled(C){k(C,!0),Vt(b,[C])},onLeaveCancelled(C){A(C),Vt(S,[C])}})}function Cc(e){if(e==null)return null;if(ve(e))return[ni(e.enter),ni(e.leave)];{const t=ni(e);return[t,t]}}function ni(e){return So(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Cn]||(e[Cn]=new Set)).add(t)}function Wt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[Cn];n&&(n.delete(t),n.size||(e[Cn]=void 0))}function is(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ic=0;function rs(e,t,n,o){const i=e._endId=++Ic,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Tc(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),r()},p=w=>{w.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,p)}function Tc(e,t){const n=window.getComputedStyle(e),o=E=>(n[E]||"").split(", "),i=o(`${Mt}Delay`),r=o(`${Mt}Duration`),s=ss(i,r),l=o(`${kn}Delay`),a=o(`${kn}Duration`),c=ss(l,a);let u=null,d=0,p=0;t===Mt?s>0&&(u=Mt,d=s,p=r.length):t===kn?c>0&&(u=kn,d=c,p=a.length):(d=Math.max(s,c),u=d>0?s>c?Mt:kn:null,p=u?u===Mt?r.length:a.length:0);const w=u===Mt&&/\b(transform|all)(,|$)/.test(o(`${Mt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:w}}function ss(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ls(n)+ls(e[o])))}function ls(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ec(){return document.body.offsetHeight}function $c(e,t,n){const o=e[Cn];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const oi=Symbol("_vod"),Mc={beforeMount(e,{value:t},{transition:n}){e[oi]=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[oi]:"none"}const Pc=Symbol("");function Oc(e,t,n){const o=e.style,i=o.display,r=ke(n);if(n&&!r){if(t&&!ke(t))for(const s in t)n[s]==null&&ii(o,s,"");for(const s in n)ii(o,s,n[s])}else if(r){if(t!==n){const s=o[Pc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");oi in e&&(o.display=i)}const as=/\s*!important$/;function ii(e,t,n){if(ee(n))n.forEach(o=>ii(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Lc(e,t);as.test(n)?e.setProperty(Ue(o),n.replace(as,""),"important"):e[o]=n}}const cs=["Webkit","Moz","ms"],ri={};function Lc(e,t){const n=ri[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return ri[t]=o;o=Bn(o);for(let i=0;i<cs.length;i++){const r=cs[i]+o;if(r in e)return ri[t]=r}return t}const us="http://www.w3.org/1999/xlink";function zc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n);else{const r=zl(t);n==null||r&&!Oi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function Ac(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Oi(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function on(e,t,n,o){e.addEventListener(t,n,o)}function Dc(e,t,n,o){e.removeEventListener(t,n,o)}const ds=Symbol("_vei");function jc(e,t,n,o,i=null){const r=e[ds]||(e[ds]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=Bc(t);if(o){const c=r[t]=Fc(o,i);on(e,l,c,a)}else s&&(Dc(e,l,s,a),r[t]=void 0)}}const fs=/(?:Once|Passive|Capture)$/;function Bc(e){let t;if(fs.test(e)){t={};let o;for(;o=e.match(fs);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let si=0;const Rc=Promise.resolve(),Nc=()=>si||(Rc.then(()=>si=0),si=Date.now());function Fc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Hc(o,n.value),t,5,[o])};return n.value=e,n.attached=Nc(),n}function Hc(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 ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?$c(e,o,c):t==="style"?Oc(e,n,o):zn(t)?bo(t)||jc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wc(e,t,o,c))?Ac(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),zc(e,t,o,c))};function Wc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ps(t)&&se(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ps(t)&&ke(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Kc(e,t){const n=Ce(e);class o extends li{constructor(r){super(n,r,t)}}return o.def=n,o}const Uc=typeof HTMLElement<"u"?HTMLElement:class{};class li extends Uc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),gt(()=>{this._connected||(bs(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!ee(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=So(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=So(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(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){bs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,Se({},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),Ue(r)!==r&&o(Ue(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof li){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Rn(t,n):t};function qc(e){e.target.composing=!0}function gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ai=Symbol("_assign"),Yc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ai]=hs(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=xo(l)),e[ai](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",qc),on(e,"compositionend",gs),on(e,"change",gs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ai]=hs(r),e.composing)return;const s=i||e.type==="number"?xo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Xc=["ctrl","shift","alt","meta"],Zc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Xc.some(n=>e[`${n}Key`]&&!t.includes(n))},Le=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const l=Zc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},Gc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ms=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=Ue(i.key);if(t.some(s=>s===r||Gc[s]===r))return e(i)})},Jc=Se({patchProp:Vc},Sc);let vs;function Qc(){return vs||(vs=tc(Jc))}const bs=(...e)=>{Qc().render(...e)};var ys;const ci=typeof window<"u",_s=e=>typeof e=="function",eu=e=>typeof e=="string",Ot=()=>{};ci&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function go(e){return typeof e=="function"?e():q(e)}function ws(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function tu(e,t={}){let n,o,i=Ot;const r=l=>{clearTimeout(l),i(),i=Ot};return l=>{const a=go(e),c=go(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{i=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function nu(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=Ot,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Ot)};return d=>{const p=go(e),w=Date.now()-i,E=()=>a=d();if(c(),p<=0)return i=Date.now(),E();if(w>p&&(n||!s))i=Date.now(),E();else if(t)return new Promise((I,m)=>{l=o?m:I,r=setTimeout(()=>{i=Date.now(),s=!0,I(E()),c()},p-w)});return!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,a}}function ou(e){return e}function iu(e,t){let n,o,i;const r=Z(!0),s=()=>{r.value=!0,i()};ge(e,s,{flush:"sync"});const l=_s(t)?t:t.get,a=_s(t)?void 0:t.set,c=rr((u,d)=>(o=u,i=d,{get(){return r.value&&(n=l(),r.value=!1),o(),n},set(p){a==null||a(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function ui(e){return zi()?(jl(e),!0):!1}function Xe(e,t=200,n={}){return ws(tu(t,n),e)}function xs(e,t=200,n=!1,o=!0,i=!1){return ws(nu(t,n,o,i),e)}function Ss(e,t=!0){uo()?Re(e):t?e():gt(e)}function Kt(e){var t;const n=go(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Tn=ci?window:void 0,ru=ci?window.document:void 0;function Lt(...e){let t,n,o,i;if(eu(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=Tn):[t,n,o,i]=e,!t)return Ot;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,d,p)=>(u.addEventListener(d,p,i),()=>u.removeEventListener(d,p,i)),a=ge(()=>Kt(t),u=>{s(),u&&r.push(...n.flatMap(d=>o.map(p=>l(u,d,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ui(c),c}function ks(e,t=!1){const n=Z(),o=()=>n.value=!!e();return o(),Ss(o,t),n}const Cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Is="__vueuse_ssr_handlers__";Cs[Is]=Cs[Is]||{};function Ts(){const e=uo(),t=iu(()=>null,()=>e.proxy.$el);return Cr(t.trigger),Re(t.trigger),t}function Es({document:e=ru}={}){if(!e)return Z("visible");const t=Z(e.visibilityState);return Lt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $s=Object.getOwnPropertySymbols,su=Object.prototype.hasOwnProperty,lu=Object.prototype.propertyIsEnumerable,au=(e,t)=>{var n={};for(var o in e)su.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$s)for(var o of $s(e))t.indexOf(o)<0&&lu.call(e,o)&&(n[o]=e[o]);return n};function cu(e,t,n={}){const o=n,{window:i=Tn}=o,r=au(o,["window"]);let s;const l=ks(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=ge(()=>Kt(e),d=>{a(),l.value&&i&&d&&(s=new ResizeObserver(t),s.observe(d,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ui(u),{isSupported:l,stop:u}}function Ms(e,t={width:0,height:0},n={}){const{window:o=Tn,box:i="content-box"}=n,r=ae(()=>{var a,c;return(c=(a=Kt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Z(t.width),l=Z(t.height);return cu(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Kt(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:p})=>d+p,0),l.value=u.reduce((d,{blockSize:p})=>d+p,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),ge(()=>Kt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function di(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=Tn}=n,l=ks(()=>s&&"IntersectionObserver"in s);let a=Ot;const c=l.value?ge(()=>({el:Kt(e),root:Kt(o)}),({el:d,root:p})=>{if(a(),!d)return;const w=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});w.observe(d),a=()=>{w.disconnect(),a=Ot}},{immediate:!0,flush:"post"}):Ot,u=()=>{a(),c()};return ui(u),{isSupported:l,stop:u}}var Ps;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Ps||(Ps={}));var uu=Object.defineProperty,Os=Object.getOwnPropertySymbols,du=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?uu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pu=(e,t)=>{for(var n in t||(t={}))du.call(t,n)&&Ls(e,n,t[n]);if(Os)for(var n of Os(t))fu.call(t,n)&&Ls(e,n,t[n]);return e};pu({linear:ou},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function fi(e={}){const{window:t=Tn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=Z(n),l=Z(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ss(a),Lt("resize",a,{passive:!0}),i&&Lt("orientationchange",a,{passive:!0}),{width:s,height:l}}function hu(e){bn("hapticFeedback",e)}function pi(){return Ct("hapticFeedback")}const gu=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let i=1,r=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;i<=c?(i++,r-=.65/c,o.style.transform=`scale(${i})`,o.style.opacity=`${r}`):(o.remove(),clearInterval(s))}},rn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>gu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},mu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},vu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},bu=Ce({__name:"AutoNext",props:{hasNext:{type:Boolean},offlineMode:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=Z(null),r=Z(null),s=Z(!1),l=Z(!1),a=Z(n.seconds),c=Z(n.seconds<0),u=Z(n.seconds),d=pi();Re(()=>{let E;di(r,I=>{l.value=I.some(m=>m.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,E&&(clearInterval(E),E=void 0),!(!l.value||c.value)&&(E=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval(E),E=void 0,o("next"))},1e3))}),di(i,I=>{s.value=I.some(m=>m.isIntersecting)}),Nt(()=>E&&clearInterval(E))});function p(){o("next"),d()}function w(){o("hide")}return(E,I)=>(D(),Y("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[lt(X("div",mu,[E.hasNext?(D(),Y("div",vu,[l.value?(D(),Y("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:ze(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):we("",!0),lt((D(),Y("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:Le(p,["stop"])},[Tt(qe(c.value?"Next":`Next in ${a.value}`),1)])),[[q(rn)]])])):we("",!0),lt((D(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:Le(w,["stop"])},[Tt(qe(E.offlineMode?"Close":"Hide"),1)])),[[q(rn)]])],512),[[Mc,s.value||!E.hasNext]])],512))}}),yu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
-
`,me=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},zs=me(
|
|
22
|
-
`]]]),ju=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),Bu=["onClick","onKeyup"],En=Ce({__name:"InputSelect",props:tn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Sn(e,"modelValue"),o=Z(null),i=Z({width:"",left:""});Re(()=>{let s=!1;ge(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){s!==n.value&&(n.value=s)}return(s,l)=>(D(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none"},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:ze(i.value)},null,4),(D(!0),Y(Ie,null,gn(t.items,(a,c)=>lt((D(),Y("div",{key:c,tabindex:"0",class:Ee(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>r(c),onKeyup:[ms(()=>r(c),["enter"]),ms(()=>r(c),["space"])]},[Tt(qe(a),1)],42,Bu)),[[q(rn),30]])),128))],512))}}),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Nu={class:"flex items-center mb-8 last:mb-0"},Fu={class:"flex-grow overflow-hidden"},Ut=Ce({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(D(),Y("div",Nu,[X("div",{class:Ee(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},qe(t.label),3),X("div",Fu,[xe(t.$slots,"default")])]))}}),Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Ut},Symbol.toStringTag,{value:"Module"})),Vu={},Wu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ku=[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 Uu(e,t){return D(),Y("svg",Wu,Ku)}const js=me(Vu,[["render",Uu]]),qu=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Yu={},Xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Zu=[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 Gu(e,t){return D(),Y("svg",Xu,Zu)}const Bs=me(Yu,[["render",Gu]]),Ju=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"}));function Qu(e){if(e)try{return JSON.parse(e)}catch{return}}function ed(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ut=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ut||{}),dt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(dt||{});const td=.25,nd=5,od=.25,$n=.2,Mn=5,id=.05,rd=0,sd=4,Rs=5,ld=640,ad=480;function cd(e){var j,b,k,A,G,C,h;const{titleName:t,isWebtoon:n}=e,o=ae(()=>t.value?ed(t.value):location.hostname),i=Z(ud(`tkr:${o.value}`)),r=x=>{i.value=x;const K=`tkr:${o.value}`;!x||!Object.keys(x).length?localStorage.removeItem(K):localStorage.setItem(K,JSON.stringify(x))},s=x=>{if(!i.value){r(x);return}const K={...i.value};Object.entries(x).forEach(([ie,z])=>{z===void 0?delete K[ie]:K[ie]=z}),r(K)},l=Z(((j=i.value)==null?void 0:j.style)??e.defaultStyle??dt.longStrip),a=Z(((b=i.value)==null?void 0:b.direction)??e.defaultDirection??ut.vertical),c=Z((k=i.value)==null?void 0:k.gap),u=Z(((A=i.value)==null?void 0:A.speed)??1),d=Z(((G=i.value)==null?void 0:G.zoom)??1),p=Z(((C=i.value)==null?void 0:C.breakFirst)??!1),w=Z(((h=i.value)==null?void 0:h.autoNextSeconds)??Rs),E=fi(),I=ae(()=>E.width.value<ld||E.height.value<ad),m=ae({get(){const x=n.value?dt.longStrip:l.value;return x===dt.double&&I.value?dt.single:x},set:x=>{l.value=x,s({style:x}),x!==dt.longStrip&&a.value===ut.vertical&&(B.value=ut.rtl)}}),B=ae({get:()=>n.value?ut.vertical:a.value,set:x=>{a.value=x,s({direction:x})}}),M=ae({get:()=>c.value!==void 0?c.value:e.maybeWebtoon.value||m.value!==dt.longStrip?0:1,set(x){c.value=x,s({gap:x})}}),P=ae({get:()=>u.value,set(x){u.value=x,s({speed:x===1?void 0:x})}}),U=ae({get:()=>d.value,set(x){d.value=x,s({zoom:x===1?void 0:x})}}),S=ae({get:()=>p.value,set(x){p.value=x,s({breakFirst:x?!0:void 0})}}),y=ae({get:()=>w.value,set(x){w.value=x,s({autoNextSeconds:x===Rs?void 0:x})}});return{direction:B,style:m,gap:M,speed:P,zoom:U,isLongStrip:ae(()=>m.value===dt.longStrip),isDouble:ae(()=>m.value===dt.double),isRTL:ae(()=>B.value===ut.rtl),isVertical:ae(()=>B.value===ut.vertical),breakFirst:S,autoNextSeconds:y,isDoubleDisabled:I}}function ud(e){const t=localStorage.getItem(e),n=Qu(t),o={};return n?(n.style!==void 0&&Object.values(dt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ut).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=rd&&n.gap<=sd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=$n&&n.speed<=Mn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=$n&&n.zoom<=Mn&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const Ns=Ce({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean},disableDouble:{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=Z(!1),r=ae(()=>["Long strip",n.webtoon?void 0:"Single page",n.webtoon||n.disableDouble?void 0:"Double page"].filter(Boolean)),s=ae(()=>n.name??location.hostname);mo({onKeyUp:c=>{c.key==="s"&&!c.metaKey&&!c.ctrlKey&&(i.value=!i.value)}});function l(c){o("update:zoom",Math.round(c)/100)}function a(){i.value=!1,o("help")}return(c,u)=>(D(),Y(Ie,null,[Q(nt,{title:"Reader settings (S)",disabled:c.disabled,onClick:u[0]||(u[0]=()=>i.value=!0)},{default:le(()=>[Q(Bs)]),_:1},8,["disabled"]),Q(Ds,{modelValue:i.value,"onUpdate:modelValue":u[6]||(u[6]=d=>i.value=d),name:s.value},{actions:le(()=>[Q(nt,{transparent:"",onClick:a},{default:le(()=>[Q(js)]),_:1})]),default:le(()=>[Q(Ut,{label:"Style"},{default:le(()=>[(D(),he(En,{key:`style-${c.disableDouble}`,"model-value":c.readerStyle,items:r.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o("update:reader-style",d))},null,8,["model-value","items"]))]),_:1}),Q(Ut,{label:"Direction"},{default:le(()=>[Q(En,{"model-value":c.direction,items:c.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":u[2]||(u[2]=d=>o("update:direction",d))},null,8,["model-value","items"])]),_:1}),Q(Ut,{label:"Gap"},{default:le(()=>[Q(En,{"model-value":c.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":u[3]||(u[3]=d=>o("update:gap",d))},null,8,["model-value"])]),_:1}),Q(Ut,{label:"Auto Next"},{default:le(()=>[Q(En,{"model-value":c.autoNextSeconds<0?0:c.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":u[4]||(u[4]=d=>o("update:autoNextSeconds",d===0?-1:d))},null,8,["model-value"])]),_:1}),Q(Ut,{label:"Speed"},{default:le(()=>[Q(gi,{"model-value":c.speed,min:q(td),max:q(nd),step:q(od),suffix:"x","onUpdate:modelValue":u[5]||(u[5]=d=>o("update:speed",d))},{suffix:le(()=>[Tt(qe(c.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(Ut,{label:"Zoom"},{default:le(()=>[Q(gi,{"model-value":Math.ceil(c.zoom*100),min:q($n)*100,max:q(Mn)*100,step:q(id)*100,"onUpdate:modelValue":l},{suffix:le(()=>[Tt(qe(Math.ceil(c.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),fd={},pd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},hd=[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 gd(e,t){return D(),Y("svg",pd,hd)}const Fs=me(fd,[["render",gd]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),vd={class:"block w-4 h-4"},bd={class:"w-12"},Hs=Ce({__name:"ButtonResetZoom",props:{zoom:{}},emits:["click"],setup(e,{emit:t}){const n=t;function o(i){n("click",i)}return(i,r)=>(D(),Y("button",{class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom",onClick:Le(o,["stop"])},[X("div",vd,[Q(Fs)]),X("div",bd,qe(Math.ceil(i.zoom*100))+"%",1)]))}}),yd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},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 _d={},wd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},xd=[cc('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function Sd(e,t){return D(),Y("svg",wd,xd)}const Vs=me(_d,[["render",Sd]]),kd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Cd={},Id={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Td=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Ed(e,t){return D(),Y("svg",Id,Td)}const Ws=me(Cd,[["render",Ed]]),$d=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Md=["aria-hidden"],Pd=["onClick"],Od={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"},Ld={class:"whitespace-nowrap"},mi=Ce({__name:"ButtonDropdown",props:tn({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function},enableHapticFeedback:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:tn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=Sn(e,"modelValue"),r=Z(null),s=Z(!1),l=Z(!1),a=Z(!1),c=Z(!1),u=Z(!1),d={mounted:k=>{var A;(A=k.children[i.value])==null||A.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};mo({onKeyDown:M});const p=hi(),w=pi();async function E(){if(!n.items.length&&(s.value||await I(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?(m(),U(r.value)):setTimeout(S,250)}async function I(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function m(){const k=r.value;if(k){const A=k.getBoundingClientRect(),G=A.x+A.width/2;a.value=A.y>window.innerHeight/2,c.value=G<window.innerWidth/3,u.value=G>window.innerWidth/3*2}}function B(k,A){E(),k!=i.value&&(i.value=k,o("select",k,A),n.enableHapticFeedback&&w())}function M(k){s.value&&k.key==="Escape"&&(E(),k.preventDefault())}let P=[];function U(k){const A=window.getComputedStyle(k).zIndex,G=k.style.zIndex;(!A||!(+A>0))&&((!k.parentElement||k.parentElement.childElementCount>1)&&(k.style.zIndex="1",P.push({el:k,zIndex:G})),k.parentElement&&U(k.parentElement))}function S(){P.forEach(({el:k,zIndex:A})=>{k.style.zIndex=A??""}),P=[]}let y=!1;function j(){y||(y=!0,p(!0,{desktopOnly:!0}))}function b(){y&&(y=!1,p(!1,{desktopOnly:!0}))}return(k,A)=>(D(),Y("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(D(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:E})):we("",!0),k.items.length?(D(),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:le(()=>[s.value?lt((D(),Y("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Ee(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:A[0]||(A[0]=Le(()=>{},["stop"])),onTouchmove:A[1]||(A[1]=Le(()=>{},["stop"]))},[(D(!0),Y(Ie,null,gn(k.items,(G,C)=>lt((D(),Y("li",{key:C,tabindex:"-1",class:Ee(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":C===i.value}]),onClick:h=>B(C,h)},[X("div",{class:Ee(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":C>0}])},[xe(k.$slots,"item",{item:G},()=>[Tt(qe(G),1)])],2)],10,Pd)),[[q(rn),30]])),128))],42,Md)),[[d]]):we("",!0)]),_:3})):we("",!0),lt((D(),Y("button",wn({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":k.disabled||l.value}]},k.title?{title:k.title}:{},{onClick:Le(E,["stop"]),onMouseenter:j,onMouseleave:b}),[X("div",Od,[X("span",Ld,qe(k.label),1),k.items.length||k.canLoadItems?(D(),Y("span",{key:0,class:Ee(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(D(),he(Vs,{key:0})):(D(),he(Ws,{key:1}))],2)):we("",!0)])],16)),[[q(rn),30]])],512))}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Ks=Ce({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,sel:u,label:d}=a;if(c&&(!u||!d)){await r(c);return}o("getHiddenChapters"),await 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(),o("chaptersDialogOpen"))}function s(a,c){var u,d,p;(p=(d=(u=n.data)==null?void 0:u.chapters)==null?void 0:d[a])==null||p.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return D(),he(mi,{modelValue:a.data.activeIndex,label:a.data.activeLabel,title:"Select chapter",items:a.data.chapters,"can-load-items":!!((u=a.chapterSpec)!=null&&u.trigger),"load-items":i,"enable-haptic-feedback":"",onSelect:s},{item:le(({item:d})=>[Tt(qe(d.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),Ad=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Dd={},jd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Bd=[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 Rd(e,t){return D(),Y("svg",jd,Bd)}const Us=me(Dd,[["render",Rd]]),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),qs=Ce({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Z(typeof n!="string"||+n!==t.direction),i=Xe(()=>o.value=!1,1250);ge(()=>t.direction,()=>{r(),o.value=!0,i()}),Re(()=>{r(),i();let s;const l=Es();ge(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)=>(D(),he(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(D(),Y("div",{key:0,class:Ee(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===q(ut).vertical,"rotate-180":s.direction===q(ut).rtl}])},[Q(Us)],2)):we("",!0)]),_:1}))}}),Fd=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Hd=X("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Ys=Ce({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=Z(null),r=Z([]);Re(async()=>{const c=Ms(i),u=Xe(()=>{s({width:c.width.value,height:c.height.value})},50);u(),ge(c.width,u),ge(c.height,u)});function s(c){var p;const u=(p=i.value)==null?void 0:p.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(r.value=l(d,c))}function l(c,u){const d=[],p=[];let w=0,E=0;const I=50,m=25;c.forEach(S=>{var A;const y=(A=S.getAttribute("title"))==null?void 0:A.trim(),j=S.getBoundingClientRect();if(!y||!j.height||!j.width)return;const b=Math.ceil((j.top-10)/I),k=Math.ceil((j.left-10)/I);p.push({isTour:!1,title:y,rect:j,fromX:k,toX:Math.max(k+1,Math.ceil((j.right+10)/I)),fromY:b,toY:Math.max(b+1,Math.ceil((j.bottom+10)/I))})}),p.forEach(S=>{for(let y=S.fromY;y<S.toY;y++){d[y]??(d[y]=[]);for(let j=S.fromX;j<S.toX;j++)d[y][j]=S;S.toY>w+1&&(w=S.toY-1),S.toX>E+1&&(E=S.toX-1)}});let B=E/2;p.forEach(S=>{S.isAlignRight=S.fromX>B});const M=(S,y)=>{d[y]??(d[y]=[]);const j=y>=S.toY;if(S.isTour)for(let b=S.fromX;b<S.toX;b++)delete d[S.fromY][b],S.fromY=y,S.toY=y+(j?1:-1),d[y][b]=S;else{const b=S.isAlignRight?S.fromX-3:S.fromX,k=b+3;S.helpItem={fromX:b,toX:k,fromY:y,toY:y+1,isTour:!0,isAlignRight:S.isAlignRight};for(let A=b;A<k;A++)d[y][A]=S.helpItem}},P=(S,y)=>{if(y>w||y<0)return!1;const j=y>=S.toY,b=d[y];if(!b)return M(S,y),!0;const k=b[S.fromX];if(k&&!k.isTour)return!1;if(k&&k.isTour)return P(k,j?y+1:y-1)?(M(S,y),!0):!1;if(!k){const A=S.isAlignRight?-1:1;return b[S.fromX+A]||b[S.fromX+A*2]?P(S,j?y+1:y-1):(M(S,y),!0)}return!1};p.forEach(S=>{if(!P(S,S.toY)){if(S.isAlignRight){const y=d[S.fromY]??[];if(!y.slice(S.fromX-3,S.fromX).filter(Boolean).length){const b=S.fromX-3,k=S.fromX;S.helpItem={isTour:!0,isAlignRight:!0,fromX:b,toX:k,fromY:S.fromY,toY:S.toY};for(let A=S.fromX-3;A<S.fromX;A++)y[A]=S.helpItem;return}}P(S,S.fromY-1)}});const U=[];return p.forEach(S=>{const{title:y,helpItem:j,rect:b,isAlignRight:k,fromX:A,fromY:G,toY:C}=S;if(!y||!j||!b)return;const h=j.fromY>=C,x=j.toY<=G;U.push({title:a(y),style:{top:h?`${b.bottom+(j.fromY-C)*I+m}px`:x?void 0:`${b.top+8}px`,bottom:x?`${u.height-b.top+(j.toY-G)*I+m}px`:void 0,left:k?void 0:`${b.left}px`,right:k?h?`${u.width-b.right}px`:`${u.width-b.right+b.width+m}px`:void 0},arrowStyle:{width:x||h?"2px":`${Math.abs(j.toX-A)*I+m-5}px`,height:x||h?`${(h?j.fromY-C:G-j.toY)*I+m}px`:"2px",top:h?`${b.bottom}px`:x?void 0:`${b.top+20}px`,bottom:x?`${u.height-b.top}px`:void 0,left:k?void 0:`${b.left+b.width/2}px`,right:k?h?`${u.width-b.right+b.width/2}px`:`${u.width-b.right+b.width}px`:void 0}})}),U}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(D(),Y(Ie,null,[Hd,X("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=Le(d=>o("hide"),["stop"]))},[(D(!0),Y(Ie,null,gn(r.value,d=>(D(),Y(Ie,{key:d.title},[X("div",{class:"absolute",style:ze(d.style)},qe(d.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:ze(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Xs=Ce({__name:"PageNav",props:tn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Sn(e,"modelValue"),o=ae(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),i=ae(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),r=ae(()=>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)=>(D(),he(mi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Kd={},Ud={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},qd=[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 Yd(e,t){return D(),Y("svg",Ud,qd)}const vi=me(Kd,[["render",Yd]]),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Zd={},Gd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Jd=[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 D(),Y("svg",Gd,Jd)}const bi=me(Zd,[["render",Qd]]),ef=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),Zs=me(Ce({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Z(0);return ge(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(D(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(D(),he(bi,{key:0})):(D(),he(vi,{key:1}))])):we("",!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
|
-
`]]]),
|
|
24
|
-
`,
|
|
25
|
-
`]]]),
|
|
26
|
-
`]]]),
|
|
27
|
-
`]]]),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),kf={},Cf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},If=[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 Tf(e,t){return D(),Y("svg",Cf,If)}const tl=me(kf,[["render",Tf]]),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),$f={},Mf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Pf=[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 Of(e,t){return D(),Y("svg",Mf,Pf)}const nl=me($f,[["render",Of]]),Lf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),zf={},Af={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[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 jf(e,t){return D(),Y("svg",Af,Df)}const ol=me(zf,[["render",jf]]),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Rf={},Nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ff=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Hf(e,t){return D(),Y("svg",Nf,Ff)}const il=me(Rf,[["render",Hf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),Wf={},Kf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Uf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function qf(e,t){return D(),Y("svg",Kf,Uf)}const rl=me(Wf,[["render",qf]]),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),Xf={},Zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Gf=[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 Jf(e,t){return D(),Y("svg",Zf,Gf)}const sl=me(Xf,[["render",Jf]]),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),ep={},tp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},np=[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 op(e,t){return D(),Y("svg",tp,np)}const ll=me(ep,[["render",op]]),ip=Object.freeze(Object.defineProperty({__proto__:null,default:ll},Symbol.toStringTag,{value:"Module"})),rp={},sp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},lp=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function ap(e,t){return D(),Y("svg",sp,lp)}const al=me(rp,[["render",ap]]),cp=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"})),up={},dp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},fp=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function pp(e,t){return D(),Y("svg",dp,fp)}const cl=me(up,[["render",pp]]),hp=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),gp={},mp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},vp=[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 bp(e,t){return D(),Y("svg",mp,vp)}const ul=me(gp,[["render",bp]]),yp=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));function Pn(e=0){return new Promise(t=>setTimeout(t,e))}function dl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const i=URL.createObjectURL(o);t(i)};e.toBlob(n,"image/jpeg",1)})}async function _p(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await dl(o)}function vo(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()}}class wp{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){be(this,"reactiveResults",an({}));be(this,"isIOS");be(this,"tkLoadId",Date.now());be(this,"isMounted",!0);be(this,"onDisposeCallbacks",[]);be(this,"onDownloaded");be(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=vo(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await dl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=i&&o.startsWith("blob:");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await Pn(300),await this.downloadRawImage(t))}async onImgElLoaded(t,n,o){var r;if(!this.isMounted)return;const i=vo(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.downloadRawImage(t)}}async downloadRawImage(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,i=o?await _p(o,n):n;!i||!this.isMounted||await xp(i,o,r=>{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())})}}async function xp(e,t,n){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?(n({width:t.naturalWidth,height:t.naturalHeight}),t.complete?void 0:new Promise(o=>{t.addEventListener("load",()=>o(),{once:!0})})):await new Promise(o=>{const i=new Image,r=setInterval(()=>{const{naturalWidth:s,naturalHeight:l}=i;l&&s&&(n({width:s,height:l}),clearInterval(r))},20);i.onerror=()=>{o(void 0),clearInterval(r)},i.onload=()=>o(),i.src=e})}const fl=3;class Sp{constructor(t){be(this,"download");be(this,"isItemCompleted");be(this,"concurrentCount",0);be(this,"activePromisesMap",new Map);be(this,"activeIndex",-1);be(this,"items",[]);be(this,"isCompleted",!1);be(this,"isDisposed",!1);this.download=t.download,this.isItemCompleted=t.isItemCompleted}dispose(){this.isDisposed=!0,this.items=[],this.activeIndex=-1}run({activeIndex:t,items:n}){this.activeIndex=t,this.items=n,this.isCompleted=!1;const o=Math.min(n.length,t+2);for(let i=t;i<o;i++)this.enqueueItem(n[i]);this.enqueueNext()}enqueueNext(){if(!(this.isCompleted||this.isDisposed)){for(let t=this.activeIndex+2;t<this.items.length;t++){if(this.concurrentCount>=fl)return;this.enqueueItem(this.items[t])}for(let t=this.activeIndex-1;t>=0;t--){if(this.concurrentCount>=fl)return;this.enqueueItem(this.items[t])}this.isCompleted=!0}}enqueueItem(t){const n=this.getItemId(t);n&&(this.isItemCompleted(t)||this.activePromisesMap.has(n)||(this.concurrentCount++,this.activePromisesMap.set(n,(async()=>{await this.download(t),this.concurrentCount--,this.activePromisesMap.delete(n),this.enqueueNext()})())))}getItemId(t){return t.computedSrc||t.el}}class qt{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}class pl{constructor(){be(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function wi(e){if(e instanceof HTMLOptionElement){const t=e.parentElement instanceof HTMLOptGroupElement?e.parentElement.parentElement:e.parentElement;if(!t||!(t instanceof HTMLSelectElement))return;const n=e.getAttribute("value")||"";if(t.value===n)return;t.value=n,t.dispatchEvent(new Event("change"));return}return e instanceof HTMLAnchorElement&&e.addEventListener("click",t=>t.preventDefault(),{once:!0}),e.click()}async function kp(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?(wi(i),await Pn(),!0):!1}class Cp{constructor({spec:t,onChanged:n}){be(this,"spec");be(this,"onChanged");be(this,"rawImages",[]);be(this,"isMounted",!0);be(this,"loadRawImagesTs");be(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=Xe(()=>{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(Xe(()=>{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 kp(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 Ip(t,o):hl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function Ip(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return hl(e);const o=new pl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(gl(l))return new qt(void 0,l,r)}else if(l instanceof HTMLImageElement&&ml(l)){const a=vo(l);return new qt(a,l,r)}}return new qt(void 0,void 0,r)})}function hl(e){const t=[],n={},o=new pl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)gl(r)&&t.push(new qt(void 0,r));else if(r instanceof HTMLImageElement&&ml(r)){const s=vo(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 qt(s,r))}}}),t}function gl(e){return e.isConnected&&vl(e.width,e.height)}function ml(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||vl(t.width,t.height)}function vl(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}const xi="mp-scroll-container";class Si{constructor(){be(this,"unmountedCallbacks",new Map)}dispose(){for(const t of this.unmountedCallbacks.values())t()}scrollTo({rawImages:t,page:n,skipIfVisible:o,isScrollDown:i,fallbackScrollEl:r}){const s=Math.floor(n),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??document.querySelector(`img[src^="${l.computedSrc}"]`);if(!a)return;const c=a.getBoundingClientRect();if(o&&c.top<=0&&c.top+c.height>0)return;const u=Si.getScrollable(a,r);if(!u)return;const{el:d,top:p}=u;r!==document.documentElement&&!d.classList.contains(xi)&&(d.classList.add(xi),this.unmountedCallbacks.has(d)||this.unmountedCallbacks.set(d,()=>{d.classList.remove(xi)}));const w=n>=t.length?c.height:i?Math.max(0,c.height-window.innerHeight+100):n%1*c.height,E={top:p+w,behavior:"instant"};d.scrollTo(E),d===document.body&&document.documentElement.scrollTo(E)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:l}=i;if(l&&s&&r.set(l,Math.max(r.get(l)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let c=0;return r.forEach((u,d)=>{c+=d===l?u-s:u}),{el:i,top:c}};return o(t,new Map)}}function bl(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function Tp(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 qt(void 0,o));return bl(n)}function Ep(e){var M,P,U,S;const t=Z((M=e.raw.value)==null?void 0:M.isWebtoon),n=Z((P=e.raw.value)==null?void 0:P.isWebtoon);let o=!1;const i=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),r=((S=(U=e.raw.value)==null?void 0:U.imgs)==null?void 0:S.filter(Boolean))??[];let s=e.isAutoShow!==!1?e.page.value:r.length?Tp(r):void 0,l=r.map(y=>new qt(y)),a,c,u=setTimeout(e.onTimeout,2e4);const d=()=>{u&&(clearTimeout(u),u=void 0)},p=new wp({isIOS:i,onDownloaded(y,j){let b=l.indexOf(y);if(b===-1){const k=y.computedSrc;b=l.findIndex(A=>A.computedSrc===k)}if(b!==-1){if(j&&!t.value&&b>Math.min(1,l.length-3)&&b<Math.max(l.length-2,3)){const k=j.height/j.width,A=k>2||k<.5,G=k>1.6||k<.6;t.value!==A&&(t.value=A),n.value!==G&&(n.value=G)}m()}},onDownloadError(){c||t.value!==void 0||(c=setTimeout(()=>{c=void 0,t.value===void 0&&e.onError("Failed to load images")},3e3))}}),w=new Sp({download:y=>p.download(y),isItemCompleted:y=>{const j=y.computedSrc;return!!(j&&p.reactiveResults[j])}}),E=()=>{w.run({items:l,activeIndex:Math.floor(e.page.value)})},I=new Si;if(r.length)E();else{let y=!1;a=new Cp({spec:e.spec,async onChanged(j){var b;if(l=j,!e.raw.value&&!j.length){e.onError("no_img");return}(b=e.spec)!=null&&b.imgDivs&&!y&&e.isAutoShow!==!1&&e.page.value&&(y=!0,I.scrollTo({rawImages:j,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:i?document.body:document.documentElement}),await Pn(1)),s===void 0&&e.isAutoShow===!1&&(s=bl(j)),E()}})}Wo(()=>{p.dispose(),w.dispose(),a==null||a.dispose(),c&&clearTimeout(c),I.dispose(),o&&I.scrollTo({rawImages:l,page:e.page.value,fallbackScrollEl:document.documentElement})});function m(){var k,A,G;if(o||t.value===void 0||s===void 0)return;const y=Math.max(0,Math.min(s,l.length)),j=Math.min(Math.floor(y),l.length-1);if(j>=1){if(!((k=l[j])==null?void 0:k.computedSrc)){e.isAutoShow&&I.scrollTo({rawImages:l,page:j,fallbackScrollEl:i?document.body:document.documentElement});return}for(let h=j;h<l.length;h++){const x=(A=l[h])==null?void 0:A.computedSrc;if(!x)return;const K=p.reactiveResults[x];if(!K)return;if(!K.invalid){if(!K.size&&!K.hasError)return;break}}for(let h=j-1;h>=0;h--){const x=(G=l[h])==null?void 0:G.computedSrc;if(!x)break;const K=p.reactiveResults[x];if(!K)return;if(!K.invalid){if(!K.size&&!K.hasError)return;break}}}if(o)return;o=!0,d(),e.onReady(y);let b=!0;ge(()=>Math.floor(e.page.value),(C,h)=>{C===h&&!b||(I.scrollTo({rawImages:l,page:C,isScrollDown:h===void 0||C>h||l.length===1,skipIfVisible:b&&l.length>1,fallbackScrollEl:i?document.body:document.documentElement}),b=!1,h??(h=-1),E())},{immediate:!0})}return{asyncImgs:ae(()=>{Object.values(p.reactiveResults);const y=[];return l.forEach(j=>{const b=j.computedSrc,k=b?p.reactiveResults[b]:void 0;(b&&!(k!=null&&k.invalid)||j.parentEl)&&y.push(k)}),y}),isWebtoon:ae(()=>t.value??!1),maybeWebtoon:ae(()=>n.value??!1)}}function $p(e,t,n){return ae(()=>t.value?yl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function yl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,l)=>({img:s,index:n+l})),...yl(e.slice(r.length),t&&i,n+r.length)]}function Mp(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=Z(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ae({get:()=>o.value,set:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function Pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ki=40;function Op({page:e,direction:t,style:n,isLongStrip:o,isVertical:i,isRTL:r,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:d,onFinished:p}){let w=!1,E=!1,I=!1,m;const B=Xe(k,300),M=xs(()=>{k(),B()},300),P=Xe(y,50);async function U(){j(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function S(){var z;E=!0,d(),A(),(z=l.value)==null||z.addEventListener("scroll",M),setTimeout(()=>{const{width:R,height:pe}=fi();ge(R,()=>{i.value&&P()}),ge(pe,()=>{i.value||P()}),ge(n,y),ge(t,y)},300)}async function y(){if(!E||w)return;w=!0,await gt();const z=e.value;if(C()===z){w=!1;return}j(z)}function j(z,{smooth:R,ensureLastImgVisibility:pe=!1}={smooth:!1}){const de=l.value;if(!de)return;w=!0;const ye=async()=>{await gt(),w=!1,E||S()},_e=Math.floor(z),Pe=_i(de,_e);if(!Pe){ye();return}c(async()=>{await b(de,!o.value&&R,async()=>{await ie(de,Pe,{smooth:R,page:z,ensureLastImgVisibility:pe})}),await ye()})}async function b(z,R,pe){R&&z.style.setProperty("scroll-snap-type","none"),await pe(),R&&z.style.removeProperty("scroll-snap-type")}function k(){if(w)return;const z=C();z!==void 0&&z!==e.value&&u(z),A()}function A(){I||!I&&G()&&(I=!0,p())}function G(){const z=l.value;if(!z)return!1;const R=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*R:z.scrollWidth-(r.value?-z.scrollLeft:z.scrollLeft)<z.clientWidth*R}function C(){const z=h();return z?(+z.getAttribute("data-index")||0)+(o.value?x(z):0):void 0}function h(){var R;if(m??(m=l.value.getRootNode()),!m)return;const z=(R=m.elementsFromPoint)==null?void 0:R.call(m,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-ki:ki,i.value&&o.value?s.value||ki:window.innerHeight/2);if(z)for(let pe=0;pe<z.length;pe++){const de=z[pe];if(de.hasAttribute("data-index"))return de;if(de===l.value)break}}function x(z){const R=z.getBoundingClientRect();return i.value?Math.abs(R.top-s.value)/R.height:r.value?Math.max(0,R.right-l.value.clientWidth)/R.width:Math.abs(R.left)/R.width}let K=!1;async function ie(z,R,pe){if(K)return;const de=R.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}K=!0;const ye=i.value?z.scrollTop:z.scrollLeft,_e=pe.page,Pe=o.value?_e%1:0,Xt=await sn(30,10,async()=>{await Pn();let He;if(!(R.offsetHeight<10))return o.value?i.value?He=R.offsetTop+Pe*R.offsetHeight-s.value:r.value?He=R.offsetLeft-z.clientWidth+R.offsetWidth-Pe*R.offsetWidth:He=R.offsetLeft+Pe*R.offsetWidth:i.value?He=R.offsetTop+(de.top>0?0:de.height-z.clientHeight):He=R.offsetLeft+(de.left>0?0:de.width-z.clientWidth),_e>.5&&Math.abs(He)<100?void 0:He})??0,zt=pe.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(!pe.smooth){i.value?z.scrollTop=zt:z.scrollLeft=zt,K=!1;return}const Fe=zt-ye,vt=30;let bt=0;return new Promise(He=>{(function Ve(){const it=Lp(bt,ye,Fe,vt);i.value?z.scrollTop=it:z.scrollLeft=it,bt++,bt<=vt?requestAnimationFrame(Ve):(He(),K=!1)})()})}return{init:U,goToPage:j}}function Lp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function zp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Z(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:b=>{a.value=b,sessionStorage.setItem("tk:playing",b?"true":"false")}}),u=Z(!1);let d,p;const w=Xe(y,100),E=Xe(()=>{u.value=!0},t?2e3:1e3),I=()=>setTimeout(()=>{u.value=!1,E()},30);I(),t||Lt(window,"mousemove",I);const m=Es();Re(()=>{ge(m,b=>{c.value&&(b==="visible"?y():p==null||p())}),ge(s,()=>B()),ge(r,b=>{b||P()})}),Nt(P);async function B(b){c.value&&(p==null||p()),b&&(await gt(),await b()),c.value&&w()}function M(){c.value?P():U()}function P(){c.value&&(c.value=!1,p==null||p(),I())}function U(){!c.value&&r.value&&(c.value=!0,y(),I())}function S(){p==null||p()}function y(){const b=n.value;if(!c.value||!b)return;const k=o.value?b.scrollHeight-b.clientHeight:b.scrollWidth-b.clientWidth,A=j();if(k<=A){P();return}p=()=>{d=Date.now(),p=void 0};const G=Date.now();d=G;const C=.05*s.value,h=o.value?"scrollTop":"scrollLeft";let x=Date.now(),K=0;const ie=()=>{if(d!==G)return;const z=Date.now(),R=z-x;x=z;const pe=C*R+K;pe>=1?(K=pe%1,b[h]+=(pe-K)*(i.value?-1:1)):K=pe,setTimeout(ie,1)};ie()}function j(){const b=n.value;return o.value?b.scrollTop:i.value?-b.scrollLeft:b.scrollLeft}return{isPlaying:c,isIdle:u,toggle:M,play:U,pause:S,resume:y,stop:P,interfere:B,awake:I}}function Ap({raw:e,spec:t,siteMeta:n,onSelect:o}){var A,G,C;const{vol:i,inferVol:r,chap:s,title:l,slug:a,basePath:c}=e,u=t==null?void 0:t.chapter;let d=-1;async function p(h,x){if(o){o({...h});return}if(h.slug){w(h.slug,x);return}if(h.elIndex===void 0||!(u!=null&&u.sel))return;let K=null;document.querySelector(u.sel)||(u!=null&&u.trigger&&(K=document.querySelector(u.trigger)),K&&(K.click(),await new Promise(z=>setTimeout(()=>z(),50))));const ie=u&&u.sel&&!u.url?document.querySelectorAll(u.sel):void 0;ie!=null&&ie[h.elIndex]&&(wi(ie[h.elIndex]),K&&document.querySelector(u.sel)&&K.click())}function w(h,x){const K=Dp(c,h,(n==null?void 0:n.trailing)??!0);x?window.open(K,"_blank","noopener"):location.href=K}function E(h){const x=P[h];return x?K=>p(x,K):void 0}function I(h,x,K){if(h){const ie=document.querySelector(h);ie&&wi(ie);return}x&&w(x,K)}const m=i??r,B=u==null?void 0:u.url,M=((A=l.chapters)==null?void 0:A.filter(h=>h.slug||!B&&h.elIndex!==void 0))??[],P=M.length>1?M:[],U=(G=e.prev)==null?void 0:G.slug,S=(C=e.next)==null?void 0:C.slug,{prevBtn:y,nextBtn:j}=t??{};let b=U||y&&!P.length?h=>I(y,U,h):void 0,k=S||j&&!P.length?h=>I(j,S,h):void 0;if(P.length){if(B&&(d=P.findIndex(h=>h.slug===e.slug)),d===-1&&(d=P.findIndex(h=>(h.vol??h.inferVol)===m&&h.chap===s)),B&&d===-1&&(d=P.findIndex(h=>h.slug&&a.startsWith(`${h.slug}-`)&&a.length-h.slug.length>3)),d!==-1)b??(b=E(d+1)),k??(k=E(d-1));else if(!U&&!S){const h=P.findIndex(x=>{const K=x.vol??x.inferVol;return m===void 0||K===void 0||m===K?x.chap<s:K<m});h!==-1?(b=E(h),k=E(h-1)):k=E(P.length-1)}}return{activeIndex:d,activeLabel:_l({vol:i,chap:s}),prev:b,next:k,chapters:P.map(h=>({label:_l(h),select:x=>p(h,x)}))}}function _l({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function Dp(e,t,n){const o=!t||t.includes("//")||t.startsWith("/")?t:"/"+[...e.split("/"),...t.split("/")].filter(Boolean).join("/"),[i,r]=(o.includes("//")?o:location.origin+o).split("?");return[i.endsWith("/")===n?i:n?i+"/":i.substring(0,-1),r].filter(Boolean).join("?")}const jp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},wl=me(Ce({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},offlineMode:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters","hapticFeedback","pressedBack","selectChapter","timeout"],setup(e,{emit:t}){const n=e,o=t;let i=!1,r;const s=Z(!1),l=Z(!1),a=wu({touchDevice:n.touchDevice}),c=Mp(n.page,n.isAutoShow),u=ae(()=>n.immediate||s.value?n.spaceTop??0:0),{asyncImgs:d,isWebtoon:p,maybeWebtoon:w}=Ep({raw:ae(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,async onReady(v){zt(v),s.value=!0},onError:()=>{o("error"),N()},onTimeout:()=>o("timeout")}),{direction:E,style:I,isRTL:m,isDouble:B,isVertical:M,isLongStrip:P,gap:U,speed:S,zoom:y,breakFirst:j,autoNextSeconds:b,isDoubleDisabled:k}=cd({titleName:ae(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:p,maybeWebtoon:w,defaultStyle:n.readerStyle,defaultDirection:n.direction}),A=Z(!1),G=$p(d,B,j),C=ae(()=>c.value>=d.value.length),h=ae(()=>n.raw?Ap({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta,onSelect:n.offlineMode?v=>o("selectChapter",v):void 0}):void 0),x=Z(null),K=Ts(),ie=Z(!1),z=Z(!1),R=zp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var v;return(v=x.value)==null?void 0:v.$el}),speed:S,isRTL:m,isVertical:M,isLongStrip:P}),pe=ae(()=>!n.touchDevice&&R.isIdle.value&&!a.value&&!A.value),de=ae({get(){return y.value},set(v){R.interfere(()=>{y.value=v})}}),ye=Op({page:c,style:I,direction:E,isLongStrip:P,isVertical:M,isRTL:m,spaceTop:u,isWebtoon:p,scrollEl:ae(()=>{var v;return(v=x.value)==null?void 0:v.$el}),interferePlayer:v=>R.interfere(v),onChangedPage:zt,onInitialized(){o("ready"),l.value=!0,r=Fe()},onFinished:()=>o("finished")}),_e=ae(()=>Math.floor(c.value)),Pe=()=>R.interfere(()=>Pn(100));Mu().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const L=P.value&&M.value,ne=P.value&&!M.value,re=!P.value&&M.value,De=!P.value&&!M.value;switch(v.key){case" ":v.preventDefault(),P.value?(oe(!1),R.toggle()):F();break;case"ArrowUp":case"PageUp":L?Pe():re&&_e.value!==0&&(v.preventDefault(),T());break;case"ArrowDown":case"PageDown":L?Pe():re&&!C.value&&(v.preventDefault(),H());break;case"ArrowLeft":ne?Pe():De?(v.preventDefault(),_()):M.value&&it();break;case"ArrowRight":ne?Pe():De?(v.preventDefault(),$()):M.value&&Ve();break;case"Escape":v.preventDefault();break}},onKeyUp:v=>{switch(v.key){case"b":j.value=!j.value;break;case"f":W();break;case"t":O();break;case"h":oe();break}}}),hu(()=>o("hapticFeedback")),Lt("fullscreenchange",()=>{ie.value=!!document.fullscreenElement}),ge(R.isPlaying,v=>{v||F(!1),o("playingChanged",v)}),ge(R.isIdle,v=>{R.isPlaying.value&&F(v)}),ge(a,v=>{!v&&R.isIdle.value?R.awake():v&&n.fullScreen&&F()});function zt(v){if(c.value===v)return;const L=d.value.length;if(v<0||v>=L+1)return;const ne=Math.floor(v*100)/100;if(ne===c.value)return;const re=c.value;c.value=ne,o("pageChanged",ne),v>=L?(F(!1),R.stop()):v<.01&&re>v?(F(!1),R.awake()):i||(P.value?r!==void 0&&Fe()-r>300&&F(!0):Math.abs(re-v)===1&&F(!0))}function Fe(){var L;const v=(L=x.value)==null?void 0:L.$el;return v?M.value?v.scrollTop:m.value?-v.scrollLeft:v.scrollLeft:0}function vt(){!n.touchDevice&&!P.value&&ye.goToPage(_e.value,{smooth:!0})}function bt(){if(R.isPlaying.value){!n.fullScreen||!n.touchDevice?R.stop():R.awake();return}F()}function He(v){n.offlineMode&&(v.preventDefault(),o("pressedBack"))}function Ve(v=!1){var L,ne;(ne=(L=h.value)==null?void 0:L.next)==null||ne.call(L,v)}function it(v=!1){var L,ne;(ne=(L=h.value)==null?void 0:L.prev)==null||ne.call(L,v)}function On(v){m.value?Ve(g(v)):it(g(v))}function f(v){m.value?it(g(v)):Ve(g(v))}function g(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function _(){m.value?H():T()}function $(){m.value?T():H()}function T(){var ne;const v=G.value,L=C.value?v[v.length-1][0].index:(ne=v[V()-1])==null?void 0:ne[0].index;L!==void 0?ye.goToPage(L):it()}function H(){var v,L;if(C.value)Ve();else{const ne=((L=(v=G.value[V()+1])==null?void 0:v[0])==null?void 0:L.index)??d.value.length;ye.goToPage(ne)}}function V(){const v=_e.value,L=G.value.findIndex(ne=>ne.some(({index:re})=>re===v));return L===-1?G.value.length-1:L}function N(){if(n.offlineMode){o("pressedBack");return}Pp(),o("dispose")}async function F(v){if(a.value&&!n.fullScreen)return;const L=typeof v=="boolean"?v:!n.fullScreen;L!==n.fullScreen&&(i=!0,o("fullScreenChanged",L),L&&setTimeout(()=>{n.fullScreen&&a.value&&o("fullScreenChanged",!1)},100))}function O(){n.entryId?J():te()}function W(){var v,L;document.fullscreenElement?document.exitFullscreen():(L=(v=K.value)==null?void 0:v.querySelector("#reader-layout"))==null||L.requestFullscreen()}function te(){R.stop(),o("addEntry")}function J(){R.stop(),o("openEntry",n.entryId)}function oe(v){z.value!==v&&(z.value=!z.value,z.value&&R.isPlaying.value&&R.stop())}return(v,L)=>v.immediate||s.value?(D(),he(Qs,{key:0,loading:!l.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,zooming:A.value,idle:pe.value,"space-top":u.value,rtl:q(m),onClick:L[15]||(L[15]=Le(()=>{},["stop"]))},Ir({settings:le(()=>{var ne;return[Q(Ns,{"reader-style":q(I),"onUpdate:readerStyle":L[6]||(L[6]=re=>Te(I)?I.value=re:null),direction:q(E),"onUpdate:direction":L[7]||(L[7]=re=>Te(E)?E.value=re:null),gap:q(U),"onUpdate:gap":L[8]||(L[8]=re=>Te(U)?U.value=re:null),speed:q(S),"onUpdate:speed":L[9]||(L[9]=re=>Te(S)?S.value=re:null),zoom:de.value,"onUpdate:zoom":L[10]||(L[10]=re=>de.value=re),"auto-next-seconds":q(b),"onUpdate:autoNextSeconds":L[11]||(L[11]=re=>Te(b)?b.value=re:null),name:(ne=v.raw)==null?void 0:ne.title.name,webtoon:q(p),disabled:!s.value,"disable-double":q(k),onHelp:oe},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled","disable-double"])]}),"reset-zoom":le(()=>[Q(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[A.value||q(y)!==1?(D(),he(Hs,{key:0,zoom:de.value,onClick:L[14]||(L[14]=Le(()=>de.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):we("",!0)]),_:1})]),progress:le(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:ze({width:`${q(c)/(q(d).length-1)*100}%`})},null,4)]),default:le(()=>{var ne;return[s.value?(D(),he(Js,{key:0,ref_key:"body",ref:x,zoom:de.value,"onUpdate:zoom":L[0]||(L[0]=re=>de.value=re),zooming:A.value,"onUpdate:zooming":L[1]||(L[1]=re=>A.value=re),page:q(c),"page-index":_e.value,pages:q(G),"total-imgs":q(d).length,direction:q(E),gap:q(U),"is-long-strip":q(P),isRTL:q(m),"is-double":q(B),"is-vertical":q(M),"space-top":u.value,busy:q(a),idle:pe.value,"play-controller":q(R),"touch-device":v.touchDevice,"has-next":!!((ne=h.value)!=null&&ne.next),onReady:q(ye).init,onPrev:T,onNext:H,onClick:bt,onDragEnd:vt,onWheelPassive:L[2]||(L[2]=()=>q(R).interfere())},Ir({_:2},[s.value&&q(d).length?{name:"end",fn:le(()=>{var re;return[Q(zs,{"has-next":!!((re=h.value)!=null&&re.next),"offline-mode":!!v.offlineMode,seconds:q(b),onNext:Ve,onHide:N},null,8,["has-next","offline-mode","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-double","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onReady"])):we("",!0),l.value&&!C.value&&!v.tourEnabled?(D(),he(qs,{key:1,direction:q(E)},null,8,["direction"])):we("",!0),l.value&&!C.value?(D(),he(Zs,{key:2,playing:!!q(R).isPlaying.value},null,8,["playing"])):we("",!0),z.value?(D(),he(Ys,{key:3,"touch-device":v.touchDevice,onHide:oe},null,8,["touch-device"])):we("",!0),v.tourEnabled?(D(),he(el,{key:4,onHide:L[3]||(L[3]=()=>o("tourEnabledChanged",!1))})):we("",!0)]}),_:2},[v.raw||v.offlineMode?{name:"back",fn:le(()=>[Q(nt,{href:v.offlineMode||!v.raw?"#":v.raw.title.url,title:"Back to manga","enable-haptic-feedback":"",onClick:He},{default:le(()=>[Q(tl)]),_:1},8,["href"])]),key:"0"}:void 0,!v.touchDevice&&!v.offlineMode?{name:"exit",fn:le(()=>[Q(nt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:N},{default:le(()=>[Q(ul)]),_:1})]),key:"1"}:void 0,h.value?{name:"chapter-nav",fn:le(()=>{var ne;return[Q(Ks,{"touch-device":v.touchDevice,"chapter-spec":(ne=v.spec)==null?void 0:ne.chapter,data:h.value,onGetHiddenChapters:L[4]||(L[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:L[5]||(L[5]=()=>F(!0))},null,8,["touch-device","chapter-spec","data"]),h.value.next||h.value.prev?(D(),Y("div",jp,[Q(nt,{title:`${q(m)?"Next":"Prev"} chapter (←)`,disabled:q(m)?!h.value.next:!h.value.prev,class:"!rounded-r-none","enable-haptic-feedback":"",onClick:On},{default:le(()=>[Q(il)]),_:1},8,["title","disabled"]),Q(nt,{title:`${q(m)?"Prev":"Next"} chapter (→)`,disabled:q(m)?!h.value.prev:!h.value.next,class:"!rounded-l-none","enable-haptic-feedback":"",onClick:f},{default:le(()=>[Q(rl)]),_:1},8,["title","disabled"])])):we("",!0)]}),key:"2"}:void 0,q(G).length?{name:"page-nav",fn:le(()=>[Q(Xs,{"model-value":_e.value,disabled:!l.value,pages:q(G),"total-imgs":q(d).length,"onUpdate:modelValue":q(ye).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,!v.offlineMode&&v.raw?{name:"entry",fn:le(()=>[Q(nt,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:O},{default:le(()=>[v.entryId?(D(),he(ol,{key:0})):(D(),he(nl,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:le(()=>[Q(nt,{title:`${ie.value?"Exit":"Enter"} fullscreen (F)`,onClick:W},{default:le(()=>[ie.value?(D(),he(cl,{key:0})):(D(),he(al,{key:1}))]),_:1},8,["title"])]),key:"5"},q(P)?{name:"play",fn:le(()=>[Q(nt,{"data-tour":"Press here to play like a video",title:`${q(R).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:L[12]||(L[12]=()=>q(R).toggle())},{default:le(()=>[q(R).isPlaying.value?(D(),he(vi,{key:0})):(D(),he(bi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,q(B)?{name:"break-first",fn:le(()=>[Q(nt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:L[13]||(L[13]=()=>j.value=!q(j))},{default:le(()=>[q(j)?(D(),he(ll,{key:0})):(D(),he(sl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):we("",!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}}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-0{margin:0}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[30rem\\]{height:480px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.max-h-none{max-height:none}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.8rem\\]{width:76.8px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-center{scroll-snap-align:center}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
28
|
-
`]]]),Bp=Object.freeze(Object.defineProperty({__proto__:null,default:
|
|
29
|
-
`,Yt="gear-second",Ci={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,tourEnabled:void 0,offlineMode:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0,onHapticFeedback:void 0,onPressedBack:void 0,onSelectChapter:void 0,onTimeout:void 0},Ze={promise:void 0,data:
|
|
20
|
+
**/const _c="http://www.w3.org/2000/svg",wc="http://www.w3.org/1998/Math/MathML",$t=typeof document<"u"?document:null,ts=$t&&$t.createElement("template"),xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i=t==="svg"?$t.createElementNS(_c,e):t==="mathml"?$t.createElementNS(wc,e):$t.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>$t.createTextNode(e),createComment:e=>$t.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$t.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{ts.innerHTML=o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e;const l=ts.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mt="transition",Cn="animation",In=Symbol("_vtc"),nn=(e,{slots:t})=>es(Oa,Sc(e),t);nn.displayName="Transition";const ns={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=Se({},_r,ns);const Vt=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},os=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function Sc(e){const t={};for(const C in e)C in ns||(t[C]=e[C]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,$=kc(i),I=$&&$[0],m=$&&$[1],{onBeforeEnter:j,onEnter:M,onEnterCancelled:O,onLeave:U,onLeaveCancelled:S,onBeforeAppear:y=j,onAppear:R=M,onAppearCancelled:b=O}=t,k=(C,h,x)=>{Wt(C,h?u:l),Wt(C,h?c:s),x&&x()},A=(C,h)=>{C._isLeaving=!1,Wt(C,d),Wt(C,_),Wt(C,p),h&&h()},G=C=>(h,x)=>{const K=C?R:M,ie=()=>k(h,C,x);Vt(K,[h,ie]),is(()=>{Wt(h,C?a:r),Ot(h,C?u:l),os(K)||rs(h,o,I,ie)})};return Se(t,{onBeforeEnter(C){Vt(j,[C]),Ot(C,r),Ot(C,s)},onBeforeAppear(C){Vt(y,[C]),Ot(C,a),Ot(C,c)},onEnter:G(!1),onAppear:G(!0),onLeave(C,h){C._isLeaving=!0;const x=()=>A(C,h);Ot(C,d),Tc(),Ot(C,p),is(()=>{C._isLeaving&&(Wt(C,d),Ot(C,_),os(U)||rs(C,o,m,x))}),Vt(U,[C,x])},onEnterCancelled(C){k(C,!1),Vt(O,[C])},onAppearCancelled(C){k(C,!0),Vt(b,[C])},onLeaveCancelled(C){A(C),Vt(S,[C])}})}function kc(e){if(e==null)return null;if(ve(e))return[ni(e.enter),ni(e.leave)];{const t=ni(e);return[t,t]}}function ni(e){return So(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[In]||(e[In]=new Set)).add(t)}function Wt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[In];n&&(n.delete(t),n.size||(e[In]=void 0))}function is(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Cc=0;function rs(e,t,n,o){const i=e._endId=++Cc,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:l,propCount:a}=Ic(e,t);if(!s)return o();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),r()},p=_=>{_.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},l+1),e.addEventListener(c,p)}function Ic(e,t){const n=window.getComputedStyle(e),o=$=>(n[$]||"").split(", "),i=o(`${Mt}Delay`),r=o(`${Mt}Duration`),s=ss(i,r),l=o(`${Cn}Delay`),a=o(`${Cn}Duration`),c=ss(l,a);let u=null,d=0,p=0;t===Mt?s>0&&(u=Mt,d=s,p=r.length):t===Cn?c>0&&(u=Cn,d=c,p=a.length):(d=Math.max(s,c),u=d>0?s>c?Mt:Cn:null,p=u?u===Mt?r.length:a.length:0);const _=u===Mt&&/\b(transform|all)(,|$)/.test(o(`${Mt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:_}}function ss(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>ls(n)+ls(e[o])))}function ls(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Tc(){return document.body.offsetHeight}function Ec(e,t,n){const o=e[In];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const oi=Symbol("_vod"),$c={beforeMount(e,{value:t},{transition:n}){e[oi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Tn(e,!0),o.enter(e)):o.leave(e,()=>{Tn(e,!1)}):Tn(e,t))},beforeUnmount(e,{value:t}){Tn(e,t)}};function Tn(e,t){e.style.display=t?e[oi]:"none"}const Mc=Symbol("");function Oc(e,t,n){const o=e.style,i=o.display,r=ke(n);if(n&&!r){if(t&&!ke(t))for(const s in t)n[s]==null&&ii(o,s,"");for(const s in n)ii(o,s,n[s])}else if(r){if(t!==n){const s=o[Mc];s&&(n+=";"+s),o.cssText=n}}else t&&e.removeAttribute("style");oi in e&&(o.display=i)}const as=/\s*!important$/;function ii(e,t,n){if(ee(n))n.forEach(o=>ii(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Pc(e,t);as.test(n)?e.setProperty(Ue(o),n.replace(as,""),"important"):e[o]=n}}const cs=["Webkit","Moz","ms"],ri={};function Pc(e,t){const n=ri[t];if(n)return n;let o=je(t);if(o!=="filter"&&o in e)return ri[t]=o;o=Rn(o);for(let i=0;i<cs.length;i++){const r=cs[i]+o;if(r in e)return ri[t]=r}return t}const us="http://www.w3.org/1999/xlink";function Lc(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n);else{const r=Ll(t);n==null||r&&!Pi(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function zc(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Pi(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 Ac(e,t,n,o){e.removeEventListener(t,n,o)}const ds=Symbol("_vei");function Dc(e,t,n,o,i=null){const r=e[ds]||(e[ds]={}),s=r[t];if(o&&s)s.value=o;else{const[l,a]=jc(t);if(o){const c=r[t]=Nc(o,i);on(e,l,c,a)}else s&&(Ac(e,l,s,a),r[t]=void 0)}}const fs=/(?:Once|Passive|Capture)$/;function jc(e){let t;if(fs.test(e)){t={};let o;for(;o=e.match(fs);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let si=0;const Rc=Promise.resolve(),Bc=()=>si||(Rc.then(()=>si=0),si=Date.now());function Nc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(Fc(o,n.value),t,5,[o])};return n.value=e,n.attached=Bc(),n}function Fc(e,t){if(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 ps=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hc=(e,t,n,o,i,r,s,l,a)=>{const c=i==="svg";t==="class"?Ec(e,o,c):t==="style"?Oc(e,n,o):zn(t)?bo(t)||Dc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vc(e,t,o,c))?zc(e,t,o,r,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Lc(e,t,o,c))};function Vc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&ps(t)&&se(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ps(t)&&ke(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Wc(e,t){const n=Ce(e);class o extends li{constructor(r){super(n,r,t)}}return o.def=n,o}const Kc=typeof HTMLElement<"u"?HTMLElement:class{};class li extends Kc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),gt(()=>{this._connected||(bs(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const i of o)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,i=!1)=>{const{props:r,styles:s}=o;let l;if(r&&!ee(r))for(const a in r){const c=r[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=So(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=So(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(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){bs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Q(this._def,Se({},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),Ue(r)!==r&&o(Ue(r),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof li){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Bn(t,n):t};function Uc(e){e.target.composing=!0}function gs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ai=Symbol("_assign"),qc={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[ai]=hs(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=xo(l)),e[ai](l)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",Uc),on(e,"compositionend",gs),on(e,"change",gs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e[ai]=hs(r),e.composing)return;const s=i||e.type==="number"?xo(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===l)||(e.value=l))}},Yc=["ctrl","shift","alt","meta"],Xc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Yc.some(n=>e[`${n}Key`]&&!t.includes(n))},Le=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(i,...r)=>{for(let s=0;s<t.length;s++){const l=Xc[t[s]];if(l&&l(i,t))return}return e(i,...r)})},Zc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ms=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=i=>{if(!("key"in i))return;const r=Ue(i.key);if(t.some(s=>s===r||Zc[s]===r))return e(i)})},Gc=Se({patchProp:Hc},xc);let vs;function Jc(){return vs||(vs=ec(Gc))}const bs=(...e)=>{Jc().render(...e)};var ys;const ci=typeof window<"u",_s=e=>typeof e=="function",Qc=e=>typeof e=="string",Pt=()=>{};ci&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function go(e){return typeof e=="function"?e():q(e)}function ws(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function eu(e,t={}){let n,o,i=Pt;const r=l=>{clearTimeout(l),i(),i=Pt};return l=>{const a=go(e),c=go(t.maxWait);return n&&r(n),a<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((u,d)=>{i=t.rejectOnCancel?d:u,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&r(o),o=null,u(l())},a)})}}function tu(e,t=!0,n=!0,o=!1){let i=0,r,s=!0,l=Pt,a;const c=()=>{r&&(clearTimeout(r),r=void 0,l(),l=Pt)};return d=>{const p=go(e),_=Date.now()-i,$=()=>a=d();if(c(),p<=0)return i=Date.now(),$();if(_>p&&(n||!s))i=Date.now(),$();else if(t)return new Promise((I,m)=>{l=o?m:I,r=setTimeout(()=>{i=Date.now(),s=!0,I($()),c()},p-_)});return!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1,a}}function nu(e){return e}function ou(e,t){let n,o,i;const r=Z(!0),s=()=>{r.value=!0,i()};ge(e,s,{flush:"sync"});const l=_s(t)?t:t.get,a=_s(t)?void 0:t.set,c=rr((u,d)=>(o=u,i=d,{get(){return r.value&&(n=l(),r.value=!1),o(),n},set(p){a==null||a(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function ui(e){return zi()?(Dl(e),!0):!1}function Xe(e,t=200,n={}){return ws(eu(t,n),e)}function xs(e,t=200,n=!1,o=!0,i=!1){return ws(tu(t,n,o,i),e)}function Ss(e,t=!0){uo()?Be(e):t?e():gt(e)}function Kt(e){var t;const n=go(e);return(t=n==null?void 0:n.$el)!=null?t:n}const En=ci?window:void 0,iu=ci?window.document:void 0;function Lt(...e){let t,n,o,i;if(Qc(e[0])||Array.isArray(e[0])?([n,o,i]=e,t=En):[t,n,o,i]=e,!t)return Pt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],s=()=>{r.forEach(u=>u()),r.length=0},l=(u,d,p)=>(u.addEventListener(d,p,i),()=>u.removeEventListener(d,p,i)),a=ge(()=>Kt(t),u=>{s(),u&&r.push(...n.flatMap(d=>o.map(p=>l(u,d,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ui(c),c}function ks(e,t=!1){const n=Z(),o=()=>n.value=!!e();return o(),Ss(o,t),n}const Cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Is="__vueuse_ssr_handlers__";Cs[Is]=Cs[Is]||{};function Ts(){const e=uo(),t=ou(()=>null,()=>e.proxy.$el);return Cr(t.trigger),Be(t.trigger),t}function Es({document:e=iu}={}){if(!e)return Z("visible");const t=Z(e.visibilityState);return Lt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $s=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,su=Object.prototype.propertyIsEnumerable,lu=(e,t)=>{var n={};for(var o in e)ru.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$s)for(var o of $s(e))t.indexOf(o)<0&&su.call(e,o)&&(n[o]=e[o]);return n};function au(e,t,n={}){const o=n,{window:i=En}=o,r=lu(o,["window"]);let s;const l=ks(()=>i&&"ResizeObserver"in i),a=()=>{s&&(s.disconnect(),s=void 0)},c=ge(()=>Kt(e),d=>{a(),l.value&&i&&d&&(s=new ResizeObserver(t),s.observe(d,r))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ui(u),{isSupported:l,stop:u}}function Ms(e,t={width:0,height:0},n={}){const{window:o=En,box:i="content-box"}=n,r=ae(()=>{var a,c;return(c=(a=Kt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Z(t.width),l=Z(t.height);return au(e,([a])=>{const c=i==="border-box"?a.borderBoxSize:i==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&r.value){const u=Kt(e);if(u){const d=o.getComputedStyle(u);s.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((d,{inlineSize:p})=>d+p,0),l.value=u.reduce((d,{blockSize:p})=>d+p,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),ge(()=>Kt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function di(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:s=En}=n,l=ks(()=>s&&"IntersectionObserver"in s);let a=Pt;const c=l.value?ge(()=>({el:Kt(e),root:Kt(o)}),({el:d,root:p})=>{if(a(),!d)return;const _=new IntersectionObserver(t,{root:p,rootMargin:i,threshold:r});_.observe(d),a=()=>{_.disconnect(),a=Pt}},{immediate:!0,flush:"post"}):Pt,u=()=>{a(),c()};return ui(u),{isSupported:l,stop:u}}var Os;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Os||(Os={}));var cu=Object.defineProperty,Ps=Object.getOwnPropertySymbols,uu=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fu=(e,t)=>{for(var n in t||(t={}))uu.call(t,n)&&Ls(e,n,t[n]);if(Ps)for(var n of Ps(t))du.call(t,n)&&Ls(e,n,t[n]);return e};fu({linear:nu},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function fi(e={}){const{window:t=En,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:i=!0,includeScrollbar:r=!0}=e,s=Z(n),l=Z(o),a=()=>{t&&(r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ss(a),Lt("resize",a,{passive:!0}),i&&Lt("orientationchange",a,{passive:!0}),{width:s,height:l}}function pu(e){yn("hapticFeedback",e)}function pi(){return Ct("hapticFeedback")}const hu=(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=>hu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},gu={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},mu={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},vu=Ce({__name:"AutoNext",props:{hasNext:{type:Boolean},offlineMode:{type:Boolean},seconds:{}},emits:["next","hide"],setup(e,{emit:t}){const n=e,o=t,i=Z(null),r=Z(null),s=Z(!1),l=Z(!1),a=Z(n.seconds),c=Z(n.seconds<0),u=Z(n.seconds),d=pi();Be(()=>{let $;di(r,I=>{l.value=I.some(m=>m.isIntersecting),c.value=n.seconds<0,a.value=n.seconds,u.value=n.seconds,$&&(clearInterval($),$=void 0),!(!l.value||c.value)&&($=setInterval(()=>{a.value-=1,a.value<=0&&(clearInterval($),$=void 0,o("next"))},1e3))}),di(i,I=>{s.value=I.some(m=>m.isIntersecting)}),Nt(()=>$&&clearInterval($))});function p(){o("next"),d()}function _(){o("hide")}return($,I)=>(D(),Y("div",{ref_key:"root",ref:i,class:"h-full w-full flex justify-center items-center"},[lt(X("div",gu,[$.hasNext?(D(),Y("div",mu,[l.value?(D(),Y("div",{key:0,class:"absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50",style:ze(c.value?{}:{animation:`auto-next ${u.value}s linear forwards`})},null,4)):_e("",!0),lt((D(),Y("button",{ref_key:"nextButton",ref:r,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:Le(p,["stop"])},[Tt(qe(c.value?"Next":`Next in ${a.value}`),1)])),[[q(rn)]])])):_e("",!0),lt((D(),Y("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 totalDuration-200",onClick:Le(_,["stop"])},[Tt(qe($.offlineMode?"Close":"Hide"),1)])),[[q(rn)]])],512),[[$c,s.value||!$.hasNext]])],512))}}),bu=`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
21
|
+
`,me=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},zs=me(vu,[["styles",[bu]]]),yu=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"}));function _u({touchDevice:e}){const t=Z(!1);let n=0;return yn("busy:touchDevice",e),yn("setBusyState",o=>{n+=o?1:-1;const i=n>0;t.value!=i&&(t.value=i)}),t}function hi(){const e=Ct("busy:touchDevice"),t=Ct("setBusyState");let n=!1;return Nt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:i=!1}={})=>{i&&e||(n=o,t==null||t(o))}}const wu={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"},nt=Ce({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean},enableHapticFeedback:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,i=hi(),r=pi();let s=!1;function l(){s||(s=!0,i(!0,{desktopOnly:!0}))}function a(){s&&(s=!1,i(!1,{desktopOnly:!0}))}function c(u){n.disabled?u.preventDefault():(o("click",u),n.enableHapticFeedback&&r())}return(u,d)=>lt((D(),he(vr(u.href?"a":"button"),xn(u.href?{href:u.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0 focus:outline-none outline-none",{"cursor-default text-stone-400 hover:text-stone-400":u.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!u.disabled,"bg-black bg-opacity-50":!u.transparent}],onClick:Le(c,["stop"]),onMouseenter:l,onMouseleave:a}),{default:le(()=>[X("div",wu,[we(u.$slots,"default")])]),_:3},16,["class"])),[[q(rn),u.disabled?0:15]])}}),xu=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"})),Su={},ku={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Cu=[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 Iu(e,t){return D(),Y("svg",ku,Cu)}const As=me(Su,[["render",Iu]]),Tu=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"}));class Eu{constructor(){xe(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function $u(){const e=new Eu;return Nt(()=>e.dispose()),yn("keyController",e),e}function mo(e){const t=Ct("keyController");Be(()=>t.addListener(e)),Nt(()=>t.removeListener(e))}const Mu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},Ou={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3 select-text"},Pu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},Ds=Ce({__name:"BottomSheet",props:tn({name:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=kn(e,"modelValue");mo({onKeyDown:o});const n=hi();ge(t,i=>n(i));function o(i){t.value&&i.key==="Escape"&&(t.value=!1,i.preventDefault())}return(i,r)=>(D(),Y("div",{class:Ee(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!t.value}]),onClick:r[4]||(r[4]=()=>t.value=!1)},[Q(nn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:le(()=>[t.value?(D(),Y("div",{key:0,class:"inline-flex flex-col h-[30rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:r[1]||(r[1]=Le(()=>{},["stop"])),onWheelPassive:r[2]||(r[2]=Le(()=>{},["stop"])),onTouchmove:r[3]||(r[3]=Le(()=>{},["stop"]))},[X("div",Mu,[Q(nt,{transparent:"",onClick:r[0]||(r[0]=()=>t.value=!1)},{default:le(()=>[Q(As)]),_:1}),X("div",Ou,qe(i.name),1),we(i.$slots,"actions")]),X("div",Pu,[we(i.$slots,"default")])],32)):_e("",!0)]),_:3})],2))}}),Lu=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),zu=["min","max","step"],Au={class:"flex-shrink-0"},gi=me(Ce({__name:"InputPercentage",props:tn({min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=kn(e,"modelValue"),n=ae({get(){return t.value},set(o){t.value=+o}});return(o,i)=>(D(),Y("div",{class:Ee(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":o.disabled}]),style:ze({"--percentage":`${(n.value-o.min)/(o.max-o.min)*100}%`})},[lt(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,zu),[[qc,n.value]]),X("p",Au,[we(o.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
|
|
22
|
+
`]]]),Du=Object.freeze(Object.defineProperty({__proto__:null,default:gi},Symbol.toStringTag,{value:"Module"})),ju=["onClick","onKeyup"],$n=Ce({__name:"InputSelect",props:tn({items:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=kn(e,"modelValue"),o=Z(null),i=Z({width:"",left:""});Be(()=>{let s=!1;ge(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){s!==n.value&&(n.value=s)}return(s,l)=>(D(),Y("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none"},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:ze(i.value)},null,4),(D(!0),Y(Ie,null,mn(t.items,(a,c)=>lt((D(),Y("div",{key:c,tabindex:"0",class:Ee(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.value,"text-stone-400":c!=n.value}]),onClick:()=>r(c),onKeyup:[ms(()=>r(c),["enter"]),ms(()=>r(c),["space"])]},[Tt(qe(a),1)],42,ju)),[[q(rn),30]])),128))],512))}}),Ru=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),Bu={class:"flex items-center mb-8 last:mb-0"},Nu={class:"flex-grow overflow-hidden"},Ut=Ce({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(D(),Y("div",Bu,[X("div",{class:Ee(["flex-shrink-0 w-[4.8rem]",{"opacity-50":t.disabled}])},qe(t.label),3),X("div",Nu,[we(t.$slots,"default")])]))}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:Ut},Symbol.toStringTag,{value:"Module"})),Hu={},Vu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Wu=[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 Ku(e,t){return D(),Y("svg",Vu,Wu)}const js=me(Hu,[["render",Ku]]),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),qu={},Yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Xu=[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 Zu(e,t){return D(),Y("svg",Yu,Xu)}const Rs=me(qu,[["render",Zu]]),Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"}));function Ju(e){if(e)try{return JSON.parse(e)}catch{return}}function Qu(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ut=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ut||{}),dt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(dt||{});const ed=.25,td=5,nd=.25,Mn=.2,On=5,od=.05,id=0,rd=4,Bs=5,sd=640,ld=480;function ad(e){var R,b,k,A,G,C,h;const{titleName:t,isWebtoon:n}=e,o=ae(()=>t.value?Qu(t.value):location.hostname),i=Z(cd(`tkr:${o.value}`)),r=x=>{i.value=x;const K=`tkr:${o.value}`;!x||!Object.keys(x).length?localStorage.removeItem(K):localStorage.setItem(K,JSON.stringify(x))},s=x=>{if(!i.value){r(x);return}const K={...i.value};Object.entries(x).forEach(([ie,z])=>{z===void 0?delete K[ie]:K[ie]=z}),r(K)},l=Z(((R=i.value)==null?void 0:R.style)??e.defaultStyle??dt.longStrip),a=Z(((b=i.value)==null?void 0:b.direction)??e.defaultDirection??ut.vertical),c=Z((k=i.value)==null?void 0:k.gap),u=Z(((A=i.value)==null?void 0:A.speed)??1),d=Z(((G=i.value)==null?void 0:G.zoom)??1),p=Z(((C=i.value)==null?void 0:C.breakFirst)??!1),_=Z(((h=i.value)==null?void 0:h.autoNextSeconds)??Bs),$=fi(),I=ae(()=>$.width.value<sd||$.height.value<ld),m=ae({get(){const x=n.value?dt.longStrip:l.value;return x===dt.double&&I.value?dt.single:x},set:x=>{l.value=x,s({style:x}),x!==dt.longStrip&&a.value===ut.vertical&&(j.value=ut.rtl)}}),j=ae({get:()=>n.value?ut.vertical:a.value,set:x=>{a.value=x,s({direction:x})}}),M=ae({get:()=>c.value!==void 0?c.value:!e.isManga.value||m.value!==dt.longStrip?0:1,set(x){c.value=x,s({gap:x})}}),O=ae({get:()=>u.value,set(x){u.value=x,s({speed:x===1?void 0:x})}}),U=ae({get:()=>d.value,set(x){d.value=x,s({zoom:x===1?void 0:x})}}),S=ae({get:()=>p.value,set(x){p.value=x,s({breakFirst:x?!0:void 0})}}),y=ae({get:()=>_.value,set(x){_.value=x,s({autoNextSeconds:x===Bs?void 0:x})}});return{direction:j,style:m,gap:M,speed:O,zoom:U,isLongStrip:ae(()=>m.value===dt.longStrip),isDouble:ae(()=>m.value===dt.double),isRTL:ae(()=>j.value===ut.rtl),isVertical:ae(()=>j.value===ut.vertical),breakFirst:S,autoNextSeconds:y,isDoubleDisabled:I}}function cd(e){const t=localStorage.getItem(e),n=Ju(t),o={};return n?(n.style!==void 0&&Object.values(dt).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ut).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=id&&n.gap<=rd&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=Mn&&n.speed<=On&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=Mn&&n.zoom<=On&&(o.zoom=n.zoom),n.breakFirst===!0&&(o.breakFirst=!0),n.autoNextSeconds<=5&&n.autoNextSeconds>=-1&&(o.autoNextSeconds=n.autoNextSeconds),Object.keys(o).length?o:void 0):o}const Ns=Ce({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},autoNextSeconds:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean},disableDouble:{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=Z(!1),r=ae(()=>["Long strip",n.webtoon?void 0:"Single page",n.webtoon||n.disableDouble?void 0:"Double page"].filter(Boolean)),s=ae(()=>n.name??location.hostname);mo({onKeyUp:c=>{c.key==="s"&&!c.metaKey&&!c.ctrlKey&&(i.value=!i.value)}});function l(c){o("update:zoom",Math.round(c)/100)}function a(){i.value=!1,o("help")}return(c,u)=>(D(),Y(Ie,null,[Q(nt,{title:"Reader settings (S)",disabled:c.disabled,onClick:u[0]||(u[0]=()=>i.value=!0)},{default:le(()=>[Q(Rs)]),_:1},8,["disabled"]),Q(Ds,{modelValue:i.value,"onUpdate:modelValue":u[6]||(u[6]=d=>i.value=d),name:s.value},{actions:le(()=>[Q(nt,{transparent:"",onClick:a},{default:le(()=>[Q(js)]),_:1})]),default:le(()=>[Q(Ut,{label:"Style"},{default:le(()=>[(D(),he($n,{key:`style-${c.disableDouble}`,"model-value":c.readerStyle,items:r.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o("update:reader-style",d))},null,8,["model-value","items"]))]),_:1}),Q(Ut,{label:"Direction"},{default:le(()=>[Q($n,{"model-value":c.direction,items:c.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":u[2]||(u[2]=d=>o("update:direction",d))},null,8,["model-value","items"])]),_:1}),Q(Ut,{label:"Gap"},{default:le(()=>[Q($n,{"model-value":c.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":u[3]||(u[3]=d=>o("update:gap",d))},null,8,["model-value"])]),_:1}),Q(Ut,{label:"Auto Next"},{default:le(()=>[Q($n,{"model-value":c.autoNextSeconds<0?0:c.autoNextSeconds,items:["None","1s","2s","3s","4s","5s"],"onUpdate:modelValue":u[4]||(u[4]=d=>o("update:autoNextSeconds",d===0?-1:d))},null,8,["model-value"])]),_:1}),Q(Ut,{label:"Speed"},{default:le(()=>[Q(gi,{"model-value":c.speed,min:q(ed),max:q(td),step:q(nd),suffix:"x","onUpdate:modelValue":u[5]||(u[5]=d=>o("update:speed",d))},{suffix:le(()=>[Tt(qe(c.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Q(Ut,{label:"Zoom"},{default:le(()=>[Q(gi,{"model-value":Math.ceil(c.zoom*100),min:q(Mn)*100,max:q(On)*100,step:q(od)*100,"onUpdate:modelValue":l},{suffix:le(()=>[Tt(qe(Math.ceil(c.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64))}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"})),dd={},fd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},pd=[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 hd(e,t){return D(),Y("svg",fd,pd)}const Fs=me(dd,[["render",hd]]),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),md={class:"block w-4 h-4"},vd={class:"w-12"},Hs=Ce({__name:"ButtonResetZoom",props:{zoom:{}},emits:["click"],setup(e,{emit:t}){const n=t;function o(i){n("click",i)}return(i,r)=>(D(),Y("button",{class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom",onClick:Le(o,["stop"])},[X("div",md,[Q(Fs)]),X("div",vd,qe(Math.ceil(i.zoom*100))+"%",1)]))}}),bd=Object.freeze(Object.defineProperty({__proto__:null,default:Hs},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 yd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wd=[ac('<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"></animate></circle>',3)];function xd(e,t){return D(),Y("svg",_d,wd)}const Vs=me(yd,[["render",xd]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),kd={},Cd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Id=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Td(e,t){return D(),Y("svg",Cd,Id)}const Ws=me(kd,[["render",Td]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),$d=["aria-hidden"],Md=["onClick"],Od={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},Pd={class:"whitespace-nowrap"},mi=Ce({__name:"ButtonDropdown",props:tn({label:{},title:{},items:{},disabled:{type:Boolean},canLoadItems:{type:Boolean},loadItems:{type:Function},enableHapticFeedback:{type:Boolean}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:tn(["select"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=t,i=kn(e,"modelValue"),r=Z(null),s=Z(!1),l=Z(!1),a=Z(!1),c=Z(!1),u=Z(!1),d={mounted:k=>{var A;(A=k.children[i.value])==null||A.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}};mo({onKeyDown:M});const p=hi(),_=pi();async function $(){if(!n.items.length&&(s.value||await I(),!n.items.length)){s.value=!1;return}s.value=!s.value,p(s.value),s.value?(m(),U(r.value)):setTimeout(S,250)}async function I(){l.value||n.items.length||!n.canLoadItems||!n.loadItems||(l.value=!0,await n.loadItems(),l.value=!1)}function m(){const k=r.value;if(k){const A=k.getBoundingClientRect(),G=A.x+A.width/2;a.value=A.y>window.innerHeight/2,c.value=G<window.innerWidth/3,u.value=G>window.innerWidth/3*2}}function j(k,A){$(),k!=i.value&&(i.value=k,o("select",k,A),n.enableHapticFeedback&&_())}function M(k){s.value&&k.key==="Escape"&&($(),k.preventDefault())}let O=[];function U(k){const A=window.getComputedStyle(k).zIndex,G=k.style.zIndex;(!A||!(+A>0))&&((!k.parentElement||k.parentElement.childElementCount>1)&&(k.style.zIndex="1",O.push({el:k,zIndex:G})),k.parentElement&&U(k.parentElement))}function S(){O.forEach(({el:k,zIndex:A})=>{k.style.zIndex=A??""}),O=[]}let y=!1;function R(){y||(y=!0,p(!0,{desktopOnly:!0}))}function b(){y&&(y=!1,p(!1,{desktopOnly:!0}))}return(k,A)=>(D(),Y("div",{ref_key:"root",ref:r,class:"select-none relative inline-flex"},[s.value?(D(),Y("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:$})):_e("",!0),k.items.length?(D(),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:le(()=>[s.value?lt((D(),Y("ul",{key:0,ref:"list","aria-hidden":!s.value,class:Ee(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":a.value,"origin-top top-full translate-y-1.5":!a.value,"left-1/2 -ml-20 text-center":!c.value&&!u.value,"right-0 text-right":u.value}]),onWheelPassive:A[0]||(A[0]=Le(()=>{},["stop"])),onTouchmove:A[1]||(A[1]=Le(()=>{},["stop"]))},[(D(!0),Y(Ie,null,mn(k.items,(G,C)=>lt((D(),Y("li",{key:C,tabindex:"-1",class:Ee(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":C===i.value}]),onClick:h=>j(C,h)},[X("div",{class:Ee(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":C>0}])},[we(k.$slots,"item",{item:G},()=>[Tt(qe(G),1)])],2)],10,Md)),[[q(rn),30]])),128))],42,$d)),[[d]]):_e("",!0)]),_:3})):_e("",!0),lt((D(),Y("button",xn({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":k.disabled||l.value}]},k.title?{title:k.title}:{},{onClick:Le($,["stop"]),onMouseenter:R,onMouseleave:b}),[X("div",Od,[X("span",Pd,qe(k.label),1),k.items.length||k.canLoadItems?(D(),Y("span",{key:0,class:Ee(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":a.value}]),"aria-hidden":"true"},[l.value?(D(),he(Vs,{key:0})):(D(),he(Ws,{key:1}))],2)):_e("",!0)])],16)),[[q(rn),30]])],512))}}),Ld=Object.freeze(Object.defineProperty({__proto__:null,default:mi},Symbol.toStringTag,{value:"Module"})),Ks=Ce({__name:"ChapterNav",props:{data:{},chapterSpec:{},touchDevice:{type:Boolean}},emits:["getHiddenChapters","chaptersDialogOpen"],setup(e,{emit:t}){const n=e,o=t;async function i(){const a=n.chapterSpec;if(!a)return;const{trigger:c,sel:u,label:d}=a;if(c&&(!u||!d)){await r(c);return}o("getHiddenChapters"),await 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(),o("chaptersDialogOpen"))}function s(a,c){var u,d,p;(p=(d=(u=n.data)==null?void 0:u.chapters)==null?void 0:d[a])==null||p.select(l(c))}function l(a){return!n.touchDevice&&(a.ctrlKey||a.metaKey)}return(a,c)=>{var u;return D(),he(mi,{modelValue:a.data.activeIndex,label:a.data.activeLabel,title:"Select chapter",items:a.data.chapters,"can-load-items":!!((u=a.chapterSpec)!=null&&u.trigger),"load-items":i,"enable-haptic-feedback":"",onSelect:s},{item:le(({item:d})=>[Tt(qe(d.label),1)]),_:1},8,["modelValue","label","items","can-load-items"])}}}),zd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Ad={},Dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jd=[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 Rd(e,t){return D(),Y("svg",Dd,jd)}const Us=me(Ad,[["render",Rd]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),qs=Ce({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Z(typeof n!="string"||+n!==t.direction),i=Xe(()=>o.value=!1,1250);ge(()=>t.direction,()=>{r(),o.value=!0,i()}),Be(()=>{r(),i();let s;const l=Es();ge(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)=>(D(),he(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(D(),Y("div",{key:0,class:Ee(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===q(ut).vertical,"rotate-180":s.direction===q(ut).rtl}])},[Q(Us)],2)):_e("",!0)]),_:1}))}}),Nd=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),Fd=X("div",{class:"fixed inset-0 bg-black bg-opacity-90"},null,-1),Ys=Ce({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=t,i=Z(null),r=Z([]);Be(async()=>{const c=Ms(i),u=Xe(()=>{s({width:c.width.value,height:c.height.value})},50);u(),ge(c.width,u),ge(c.height,u)});function s(c){var p;const u=(p=i.value)==null?void 0:p.parentElement;if(!u)return;const d=Array.from(u.querySelectorAll("#controls [title]"));d.length&&(r.value=l(d,c))}function l(c,u){const d=[],p=[];let _=0,$=0;const I=50,m=25;c.forEach(S=>{var A;const y=(A=S.getAttribute("title"))==null?void 0:A.trim(),R=S.getBoundingClientRect();if(!y||!R.height||!R.width)return;const b=Math.ceil((R.top-10)/I),k=Math.ceil((R.left-10)/I);p.push({isTour:!1,title:y,rect:R,fromX:k,toX:Math.max(k+1,Math.ceil((R.right+10)/I)),fromY:b,toY:Math.max(b+1,Math.ceil((R.bottom+10)/I))})}),p.forEach(S=>{for(let y=S.fromY;y<S.toY;y++){d[y]??(d[y]=[]);for(let R=S.fromX;R<S.toX;R++)d[y][R]=S;S.toY>_+1&&(_=S.toY-1),S.toX>$+1&&($=S.toX-1)}});let j=$/2;p.forEach(S=>{S.isAlignRight=S.fromX>j});const M=(S,y)=>{d[y]??(d[y]=[]);const R=y>=S.toY;if(S.isTour)for(let b=S.fromX;b<S.toX;b++)delete d[S.fromY][b],S.fromY=y,S.toY=y+(R?1:-1),d[y][b]=S;else{const b=S.isAlignRight?S.fromX-3:S.fromX,k=b+3;S.helpItem={fromX:b,toX:k,fromY:y,toY:y+1,isTour:!0,isAlignRight:S.isAlignRight};for(let A=b;A<k;A++)d[y][A]=S.helpItem}},O=(S,y)=>{if(y>_||y<0)return!1;const R=y>=S.toY,b=d[y];if(!b)return M(S,y),!0;const k=b[S.fromX];if(k&&!k.isTour)return!1;if(k&&k.isTour)return O(k,R?y+1:y-1)?(M(S,y),!0):!1;if(!k){const A=S.isAlignRight?-1:1;return b[S.fromX+A]||b[S.fromX+A*2]?O(S,R?y+1:y-1):(M(S,y),!0)}return!1};p.forEach(S=>{if(!O(S,S.toY)){if(S.isAlignRight){const y=d[S.fromY]??[];if(!y.slice(S.fromX-3,S.fromX).filter(Boolean).length){const b=S.fromX-3,k=S.fromX;S.helpItem={isTour:!0,isAlignRight:!0,fromX:b,toX:k,fromY:S.fromY,toY:S.toY};for(let A=S.fromX-3;A<S.fromX;A++)y[A]=S.helpItem;return}}O(S,S.fromY-1)}});const U=[];return p.forEach(S=>{const{title:y,helpItem:R,rect:b,isAlignRight:k,fromX:A,fromY:G,toY:C}=S;if(!y||!R||!b)return;const h=R.fromY>=C,x=R.toY<=G;U.push({title:a(y),style:{top:h?`${b.bottom+(R.fromY-C)*I+m}px`:x?void 0:`${b.top+8}px`,bottom:x?`${u.height-b.top+(R.toY-G)*I+m}px`:void 0,left:k?void 0:`${b.left}px`,right:k?h?`${u.width-b.right}px`:`${u.width-b.right+b.width+m}px`:void 0},arrowStyle:{width:x||h?"2px":`${Math.abs(R.toX-A)*I+m-5}px`,height:x||h?`${(h?R.fromY-C:G-R.toY)*I+m}px`:"2px",top:h?`${b.bottom}px`:x?void 0:`${b.top+20}px`,bottom:x?`${u.height-b.top}px`:void 0,left:k?void 0:`${b.left+b.width/2}px`,right:k?h?`${u.width-b.right+b.width/2}px`:`${u.width-b.right+b.width}px`:void 0}})}),U}function a(c){return n.touchDevice?c.split("(")[0].trim():c}return(c,u)=>(D(),Y(Ie,null,[Fd,X("div",{ref_key:"root",ref:i,class:"fixed inset-0 z-20 overscroll-contain select-none",onClick:u[0]||(u[0]=Le(d=>o("hide"),["stop"]))},[(D(!0),Y(Ie,null,mn(r.value,d=>(D(),Y(Ie,{key:d.title},[X("div",{class:"absolute",style:ze(d.style)},qe(d.title),5),X("div",{class:"absolute bg-stone-300 rounded-lg",style:ze(d.arrowStyle)},null,4)],64))),128))],512)],64))}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Xs=Ce({__name:"PageNav",props:tn({disabled:{type:Boolean},pages:{},totalImgs:{}},{modelValue:{type:Number,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=kn(e,"modelValue"),o=ae(()=>t.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),i=ae(()=>{const a=n.value,c=t.pages.findIndex(u=>u.some(({index:d})=>d===a));return c===-1?t.pages.length-1:c}),r=ae(()=>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)=>(D(),he(mi,{"model-value":i.value,label:r.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"]))}}),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Wd={},Kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ud=[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 qd(e,t){return D(),Y("svg",Kd,Ud)}const vi=me(Wd,[["render",qd]]),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:vi},Symbol.toStringTag,{value:"Module"})),Xd={},Zd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Gd=[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 Jd(e,t){return D(),Y("svg",Zd,Gd)}const bi=me(Xd,[["render",Jd]]),Qd=Object.freeze(Object.defineProperty({__proto__:null,default:bi},Symbol.toStringTag,{value:"Module"})),Zs=me(Ce({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Z(0);return ge(()=>t.playing,()=>{n.value=Date.now()}),(o,i)=>n.value?(D(),Y("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(D(),he(bi,{key:0})):(D(),he(vi,{key:1}))])):_e("",!0)}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
|
|
23
|
+
`]]]),ef=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Gs=Ce({__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=Z(null),r=Z(Math.min(On,Math.max(Mn,n.zoom))),s=Z(!1),l=Z(!1),a={isZoomIn:!1,isZoomOut:!1,initial:void 0};ge(()=>n.zoom,h=>C(h)),Be(()=>{n.touchDevice?Lt(i,"touchstart",m):(Lt(i,"mousedown",p),Lt(window,"wheel",y))}),mo({onKeyDown:h=>{var x;if(!n.busy&&((x=i.value)==null||x.focus(),!(h.key==="Meta"||h.key==="Control")&&(h.ctrlKey||h.metaKey)))switch(h.key){case"0":C(1);break;case"-":C(r.value-.2),h.preventDefault();break;case"=":case"+":C(r.value+.2),h.preventDefault();break}},onKeyUp:h=>{n.zooming&&!(h.ctrlKey||h.metaKey)&&k()}});function c(h){l.value!==h&&(l.value=h,h?n.playController.pause():(o("dragEnd"),n.playController.resume()))}let u={x:0,y:0},d={x:0,y:0};function p(h){h.button===0&&(u={x:h.clientX,y:h.clientY},d={x:i.value.scrollLeft,y:i.value.scrollTop},window.addEventListener("mousemove",_),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",_),setTimeout(()=>c(!1))},{once:!0}),h.preventDefault(),h.stopPropagation())}function _(h){c(!0);const x=h.clientX-u.x,K=h.clientY-u.y,ie=i.value;ie.scrollLeft=d.x-x,ie.scrollTop=d.y-K}let $={distance:0,zoom:r.value,x:0,y:0},I=!1;function m(h){n.busy||(I=h.touches.length===2,I&&(o("update:zooming",!0),c(!0),h.stopPropagation(),h.preventDefault(),$={distance:R(h),zoom:r.value,x:(h.touches[0].clientX+h.touches[1].clientX)/2,y:(h.touches[0].clientY+h.touches[1].clientY)/2}),(I||n.longStrip&&n.playController.isPlaying.value)&&window.addEventListener("touchend",j,{once:!0}))}function j(){if(I=!1,n.zooming){c(!1),k();return}if(!l.value)return;const h=Xe(()=>{c(!1),i.value.removeEventListener("scroll",K)},200),x=setTimeout(h,200);i.value.addEventListener("scroll",K);function K(){clearTimeout(x),h()}}function M(h){if(!(!I&&!(n.longStrip&&n.playController.isPlaying.value))&&(c(!0),n.zooming)){h.stopPropagation(),h.preventDefault();const K=R(h)/$.distance;G(Math.ceil(K*$.zoom*100)/100,$)}}const O=Xe(()=>s.value=!1,100);let U=!1;const S=Xe(()=>{U=!1},30);function y(h){if(n.busy)return;let x=n.zooming;if(U||(U=!0,x=h.ctrlKey||h.metaKey,x&&o("update:zooming",!0)),S(),x){h.stopPropagation(),h.preventDefault();const K=Math.ceil((r.value+h.deltaY*-.01)*100)/100;G(K,{x:h.clientX,y:h.clientY});return}n.horizontal&&(s.value||(s.value=!0),O(),h.deltaY&&(i.value&&(i.value.scrollLeft+=h.deltaY*(n.rtl?-1:1)),h.stopPropagation()))}function R(h){return Math.hypot(h.touches[0].clientX-h.touches[1].clientX,h.touches[0].clientY-h.touches[1].clientY)}function b(h){!l.value&&!n.zooming&&o("click",h)}function k(){o("update:zooming",!1),a.initial=void 0,a.isZoomIn=!1,a.isZoomOut=!1}function A(){if(a.initial)return;const h=i.value;if(!h)return;const x=h.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;x&&(a.initial={el:x,rect:x.getBoundingClientRect()})}function G(h,x){if(a.isZoomIn=a.isZoomIn||!a.isZoomOut&&h>1,a.isZoomIn&&h<1){C(1,x);return}if(a.isZoomOut=a.isZoomOut||!a.isZoomIn&&h<1,a.isZoomOut&&h>1){C(1,x);return}C(h,x)}async function C(h,x){const K=i.value,ie=Math.min(On,Math.max(Mn,h));if(!K||r.value===ie)return;A();const{initial:z}=a;if(!z)return;const B=(x==null?void 0:x.x)??K.clientWidth/2,pe=(x==null?void 0:x.y)??K.clientHeight/2;r.value=ie,o("update:zoom",ie),await gt();const{el:de,rect:be}=z,ye=de.offsetWidth/be.width,Oe=de.offsetHeight/be.height;K.scrollLeft=de.offsetLeft-be.left*ye+B*(ye-1),K.scrollTop=de.offsetTop-be.top*Oe+pe*(Oe-1)}return(h,x)=>(D(),Y("div",{ref_key:"root",ref:i,tabindex:"0",class:Ee(["w-full h-full overflow-auto scrollbar-none overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!h.longStrip&&(l.value||s.value||h.zooming),"cursor-grabbing":!h.touchDevice&&l.value,"overflow-hidden":h.zooming}]),style:ze({"font-size":`${r.value}px`}),onClick:Le(b,["stop"]),onTouchmoveCapture:Le(M,["stop"])},[we(h.$slots,"default")],38))}}),tf=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),nf=`.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
|
+
`,of={},rf={class:"loading-indicator"};function sf(e,t){return D(),Y("div",rf)}const yi=me(of,[["render",sf],["styles",[nf]]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"}));function _i(e,t){return(e==null?void 0:e.querySelector(`[data-index="${t}"],[data-index2="${t}"]`))??void 0}const af=["data-index"],cf={key:0,class:"img img--loading"},uf=["src"],df=["data-index"],Js=me(Ce({__name:"ReaderBody",props:{page:{},pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isDouble:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},zooming:{type:Boolean},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean},hasNext:{type:Boolean}},emits:["ready","update:zoom","update:zooming","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=t,i=Ts(),r=Z(null),s=fi(),l=ae(()=>{const{width:m,height:j}=s,M=n.isLongStrip?n.isVertical?m.value:j.value:Math.min(m.value,j.value);return Math.min(4,Math.max(1,Math.ceil(M/400-1)))*n.gap}),a=Z(n.isLongStrip?{min:n.pageIndex-1,max:n.pageIndex}:p()),c=ae(()=>{const{min:m,max:j}=a.value,M={};for(let O=m;O<=j;O++)M[O]=!0;return M}),u=ae(()=>{const{width:{value:m},height:{value:j}}=s;return n.pages.map(M=>{var G;const O=M.some(C=>{var h;return(h=C.img)==null?void 0:h.isLoading}),U=M.map(C=>C.index),S={isLoading:O,indexes:U,visible:!1};if(O)return S;const y=M.map(({img:C})=>C).filter(Boolean);if(!y.length||(S.srcs=y.map(({src:C})=>C),y.every(C=>C.hasError)))return S;const b=(G=y.find(C=>!C.hasError))==null?void 0:G.size,k=y.reduce((C,h)=>{var x;return C+(((x=h.size)==null?void 0:x.width)??b.width)},0),A=y.reduce((C,h)=>{var x;return C+(((x=h.size)==null?void 0:x.height)??b.height)},0)/y.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&m/k<j/A?(S.width=Math.min(m,k),S.height=A*(S.width/k)):(S.height=Math.min(j,A),S.width=k*(S.height/A)),S})}),d=ae(()=>{const m=n.isVertical?"width":"height";return u.value.map(j=>j[m]).filter(Boolean).sort((j,M)=>M-j)[0]});Be(()=>{const m=_i(i.value,n.pageIndex);m==null||m.scrollIntoView({behavior:"instant",block:"start"});let j,M=!1;Ta(()=>{j!==n.page&&(j=n.page,O(),M||(M=!0,gt(()=>o("ready"))))});async function O(){if(!n.isLongStrip){a.value=p();return}const U=Math.floor(n.page),S=_i(i.value,U);if(!S)return;const y=+_(S).getAttribute("data-index"),R=+$(S).getAttribute("data-index");(y!==a.value.min||R!==a.value.max)&&(a.value={min:y,max:R})}});function p(){const{pageIndex:m}=n,j=n.isDouble?2:1;return{min:m-j,max:m+j}}function _(m){const j=m.previousElementSibling;if(!j)return m;const M=j.getBoundingClientRect();return(n.isVertical?M.y+M.height>-(s.height.value*1.5):n.isRTL?M.x<s.width.value*2.5:M.x+M.width>-(s.width.value*1.5))?_(j):m}function $(m){const j=m.nextElementSibling;if(!j)return m;const M=j.getBoundingClientRect();return(n.isVertical?M.y<s.height.value*3:n.isRTL?M.x+M.width>-(s.width.value*1.5):M.x<s.width.value*2.5)?$(j):m}function I(m){if(!n.isLongStrip){const j=n.isVertical?s.height.value:s.width.value,O=(n.isVertical?m.clientY:n.isRTL?j-m.clientX:m.clientX)/j;if(O<=.2&&n.pageIndex>0){o("prev");return}else if(O>=.8){o("next");return}}o("click")}return(m,j)=>(D(),he(Gs,{zoom:m.zoom,zooming:m.zooming,"page-index":m.pageIndex,class:Ee(["rbod",{"rbod--touch":m.touchDevice,"rbod--long-strip":m.isLongStrip,"rbod--paging":!m.isLongStrip,"rbod--vertical":m.isVertical,"rbod--rtl":m.isRTL,"rbod--idle":m.idle,"rbod--first":!m.isLongStrip&&m.pageIndex===0,"rbod--last":!m.isLongStrip&&m.pageIndex===m.totalImgs&&!m.hasNext,"rbod--1page":u.value.length===1}]),"play-controller":m.playController,horizontal:!m.isVertical,rtl:m.isRTL,"touch-device":m.touchDevice,busy:m.busy,"long-strip":m.isLongStrip,style:ze({"--gap":`${l.value}em`,"--space-top":(m.spaceTop||0)+"px","--screen-width-em":q(s).width.value+"em","--screen-height-em":q(s).height.value+"em",...m.isLongStrip?{"--max-size-em":d.value+"em"}:{}}),"onUpdate:zoom":j[0]||(j[0]=M=>o("update:zoom",M)),"onUpdate:zooming":j[1]||(j[1]=M=>o("update:zooming",M)),onDragEnd:j[2]||(j[2]=()=>o("dragEnd")),onClick:I},{default:le(()=>[(D(!0),Y(Ie,null,mn(u.value,M=>{var O;return D(),Y("div",xn({key:m.direction+"_"+M.indexes[0],"data-index":M.indexes[0]},M.indexes.length>1?{"data-index2":M.indexes[1]}:{}),[!((O=M.srcs)!=null&&O.length)||M.isLoading?(D(),Y("div",cf,[c.value[M.indexes[0]]?(D(),he(yi,{key:0})):_e("",!0)])):M.srcs.length==1?(D(),he(vr(c.value[M.indexes[0]]?"img":"div"),xn({key:1,class:"img"},c.value[M.indexes[0]]?{src:M.srcs[0]}:{},{style:{width:M.width!==void 0?M.width+"em":"",height:M.height!==void 0?M.height+"em":""}}),null,16,["style"])):(D(),Y("div",{key:2,class:Ee(["img img--double",{"flex-row-reverse":m.isRTL}]),style:ze({width:M.width!==void 0?M.width+"em":"",height:M.height!==void 0?M.height+"em":""})},[M.indexes.some(U=>c.value[U])?(D(!0),Y(Ie,{key:0},mn(M.srcs,U=>(D(),Y("div",{key:U},[X("img",{src:U},null,8,uf)]))),128)):_e("",!0)],6))],16,af)}),128)),X("div",{ref_key:"autoNextEl",ref:r,class:"last","data-index":m.totalImgs},[we(m.$slots,"end")],8,df)]),_:3},8,["zoom","zooming","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"]))}}),[["styles",[`.rbod{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.rbod{transform:none}}.rbod--rtl{flex-direction:row-reverse}.rbod.rbod--vertical>div{padding:calc(var(--gap)/2) 0}.rbod:not(.rbod--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.rbod:not(.rbod--vertical)>div{padding:0 calc(var(--gap)/2)}.rbod--long-strip.rbod--vertical.rbod--1page>div:first-child{min-height:100vh}.rbod--long-strip.rbod--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.rbod--long-strip.rbod--vertical>div:last-child{padding-bottom:0}.rbod--long-strip.rbod--vertical>div{width:var(--max-size-em)}.rbod--long-strip.rbod--vertical .img--loading{height:75vh;max-width:100%;width:100vw}.rbod--long-strip.rbod--vertical .last{height:100vh}.rbod--long-strip:not(.rbod--vertical).rbod--1page>div:first-child{min-width:100vw}.rbod--long-strip:not(.rbod--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.rbod--long-strip:not(.rbod--vertical) .img--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.rbod--long-strip:not(.rbod--vertical) .last{width:100vw}.rbod--long-strip>div>img{flex-shrink:0;margin:auto}.rbod--paging:not(.rbod--touch):after,.rbod--paging:not(.rbod--touch):before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.rbod--paging.rbod--first:before,.rbod--paging.rbod--last:after{cursor:default}.rbod--paging.rbod--idle:after,.rbod--paging.rbod--idle:before{cursor:none}.rbod--paging>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;scroll-snap-stop:always}.rbod--paging.rbod--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.rbod--paging.rbod--vertical:after,.rbod--paging.rbod--vertical:before{height:20vw;left:0;right:0}.rbod--paging.rbod--vertical:before{top:0}.rbod--paging.rbod--vertical:after{bottom:0}.rbod--paging.rbod--vertical>div{width:var(--screen-width-em)}.rbod--paging:not(.rbod--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.rbod--paging:not(.rbod--vertical).rbod--rtl:before{right:0}.rbod--paging:not(.rbod--vertical).rbod--rtl:after,.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):before{left:0}.rbod--paging:not(.rbod--vertical):not(.rbod--rtl):after{right:0}.rbod--paging:not(.rbod--vertical):after,.rbod--paging:not(.rbod--vertical):before{bottom:0;top:0;width:20vw}.rbod--paging:not(.rbod--vertical)>div{height:var(--screen-height-em)}.rbod--paging .img--loading{height:100vh;width:100vw}.rbod--paging .img--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.rbod--paging .img--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod--paging .img--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.rbod>div{flex-shrink:0}.rbod .img,.rbod>div{margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rbod .img{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));-o-object-fit:contain;object-fit:contain}.rbod .img--loading{align-items:center;background-color:transparent;display:flex;justify-content:center}
|
|
25
|
+
`]]]),ff=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),pf={class:"max-h-none max-w-none h-full w-full m-0 p-0 border-none outline-none"},hf={key:0,class:"fixed inset-0 h-[101%] flex justify-center items-center z-10 bg-black"},gf={class:"flex justify-between items-end"},mf={class:"inline-block children-pointer-events-auto w-1/3"},vf={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},bf={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},yf={class:"inline-block z-20 relative"},_f={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"},Qs=me(Ce({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},zooming:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){const t={mounted:n=>n.showModal(),beforeUnmount:n=>n.close()};return(n,o)=>lt((D(),Y("dialog",pf,[X("div",{id:"reader-layout",class:Ee({"cursor-none":n.idle,"cursor-default":!n.idle,"bg-black":n.immediate||!n.loading,"opacity-0":!n.immediate&&n.loading,"duration-200 transition-colors":!n.immediate})},[n.loading&&n.immediate?(D(),Y("div",hf,[Q(yi)])):_e("",!0),we(n.$slots,"default"),X("div",{id:"controls",class:Ee(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!n.fullScreen,"opacity-0 -z-10":n.fullScreen}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:ze({paddingTop:`${n.spaceTop||0}px`})},[we(n.$slots,"back"),we(n.$slots,"exit"),we(n.$slots,"chapter-nav")],4),X("div",gf,[X("div",mf,[we(n.$slots,"page-nav")]),X("div",vf,[n.fullScreen&&n.zooming?_e("",!0):we(n.$slots,"reset-zoom",{key:0})]),X("div",bf,[we(n.$slots,"entry"),X("div",yf,[we(n.$slots,"settings")]),we(n.$slots,"full-screen"),we(n.$slots,"play"),we(n.$slots,"break-first")])]),X("div",{class:Ee(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":n.rtl}])},[we(n.$slots,"progress")],2)],2),n.fullScreen&&n.zooming?(D(),Y("div",_f,[we(n.$slots,"reset-zoom")])):_e("",!0)],2)])),[[t]])}}),[["styles",[`#reader-layout{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity));direction:ltr;font-family:Helvetica,sans-serif;font-size:16px;height:100%;line-height:24px;overflow:hidden;overscroll-behavior:contain;pointer-events:auto;text-align:left;width:100%}
|
|
26
|
+
`]]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),el=me(Ce({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=t,o=Z(null),i=Z(0),r=Z([]),s=ae(()=>r.value[i.value]),l=xs(a,500);Be(()=>{const d=Ms(o),p=Xe(()=>c({width:d.width.value,height:d.height.value}),50);p(),ge(d.width,p),ge(d.height,p)});function a(){i.value>=r.value.length-1?n("hide"):i.value++}function c(d){const p=u();r.value=p.map(({rect:_,text:$})=>{const I=_.top<d.height-_.bottom,m=_.left<d.width-_.right;return{text:$,style:{left:`${_.left}px`,top:`${_.top}px`,width:`${_.width}px`,height:`${_.height}px`},textStyle:{left:m?`${_.left-12}px`:void 0,right:m?void 0:`${d.width-_.left}px`,top:I?`${_.bottom+12}px`:`${_.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 _;const d=(_=o.value)==null?void 0:_.parentElement;if(!d)return[];const p=[];return d.querySelectorAll("[data-tour]").forEach($=>{var j;const I=(j=$.getAttribute("data-tour"))==null?void 0:j.trim();if(!(I!=null&&I.length))return;const m=$.getBoundingClientRect();p.push({rect:m,text:I})}),p}return(d,p)=>{var _,$;return D(),Y(Ie,null,[X("div",{class:Ee(["fixed inset-0 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:p[0]||(p[0]=Le((...I)=>q(l)&&q(l)(...I),["stop"]))},[s.value?(D(),Y("div",{key:i.value,class:"tour__target",style:ze(s.value.style)},null,4)):_e("",!0),(D(),Y("div",{key:i.value,class:"tour__text",style:ze((_=s.value)==null?void 0:_.textStyle)},qe((($=s.value)==null?void 0:$.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
|
+
`]]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:el},Symbol.toStringTag,{value:"Module"})),Sf={},kf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Cf=[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 If(e,t){return D(),Y("svg",kf,Cf)}const tl=me(Sf,[["render",If]]),Tf=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),Ef={},$f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[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 Of(e,t){return D(),Y("svg",$f,Mf)}const nl=me(Ef,[["render",Of]]),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:nl},Symbol.toStringTag,{value:"Module"})),Lf={},zf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Af=[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 Df(e,t){return D(),Y("svg",zf,Af)}const ol=me(Lf,[["render",Df]]),jf=Object.freeze(Object.defineProperty({__proto__:null,default:ol},Symbol.toStringTag,{value:"Module"})),Rf={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nf=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Ff(e,t){return D(),Y("svg",Bf,Nf)}const il=me(Rf,[["render",Ff]]),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),Vf={},Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Kf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Uf(e,t){return D(),Y("svg",Wf,Kf)}const rl=me(Vf,[["render",Uf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:rl},Symbol.toStringTag,{value:"Module"})),Yf={},Xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 56"},Zf=[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 Gf(e,t){return D(),Y("svg",Xf,Zf)}const sl=me(Yf,[["render",Gf]]),Jf=Object.freeze(Object.defineProperty({__proto__:null,default:sl},Symbol.toStringTag,{value:"Module"})),Qf={},ep={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},tp=[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 np(e,t){return D(),Y("svg",ep,tp)}const ll=me(Qf,[["render",np]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:ll},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:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function lp(e,t){return D(),Y("svg",rp,sp)}const al=me(ip,[["render",lp]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:al},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:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function fp(e,t){return D(),Y("svg",up,dp)}const cl=me(cp,[["render",fp]]),pp=Object.freeze(Object.defineProperty({__proto__:null,default:cl},Symbol.toStringTag,{value:"Module"})),hp={},gp={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},mp=[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 vp(e,t){return D(),Y("svg",gp,mp)}const ul=me(hp,[["render",vp]]),bp=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));function ln(e=0){return new Promise(t=>setTimeout(t,e))}function dl(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const i=URL.createObjectURL(o);t(i)};e.toBlob(n,"image/jpeg",1)})}async function yp(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),i=o.getContext("2d"),r=e.naturalWidth,s=e.naturalHeight;return o.width=r,o.height=s,i==null||i.drawImage(e,0,0,r,s),await dl(o)}function vo(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()}}class _p{constructor({isIOS:t,onDownloaded:n,onDownloadError:o}){xe(this,"reactiveResults",cn({}));xe(this,"isIOS");xe(this,"tkLoadId",Date.now());xe(this,"isMounted",!0);xe(this,"onDisposeCallbacks",[]);xe(this,"onDownloaded");xe(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=vo(n),!o)return;n._tkSrc=o}else if(r&&!o){if(o=await dl(n),!o)return;n._tkSrc=o}if(!o||!this.isMounted)return;const s=i&&o.startsWith("blob:");s&&!n.complete||((l=this.reactiveResults)[o]??(l[o]={src:o,isLoading:!0,hasError:!1}),s&&this.isIOS&&await ln(300),await this.downloadRawImage(t))}async onImgElLoaded(t,n,o){var r;if(!this.isMounted)return;const i=vo(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.downloadRawImage(t)}}async downloadRawImage(t){const n=t.computedSrc;if(!n)return;const o=t.el instanceof HTMLImageElement?t.el:void 0,i=o?await yp(o,n):n;!i||!this.isMounted||await wp(i,o,r=>{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())})}}async function wp(e,t,n){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?(n({width:t.naturalWidth,height:t.naturalHeight}),t.complete?void 0:new Promise(o=>{t.addEventListener("load",()=>o(),{once:!0})})):await new Promise(o=>{const i=new Image,r=setInterval(()=>{const{naturalWidth:s,naturalHeight:l}=i;l&&s&&(n({width:s,height:l}),clearInterval(r))},20);i.onerror=()=>{o(void 0),clearInterval(r)},i.onload=()=>o(),i.src=e})}const xp=3;class Sp{constructor(t){xe(this,"download");xe(this,"isItemCompleted");xe(this,"threads");xe(this,"completedItems");this.download=t.download,this.isItemCompleted=t.isItemCompleted}dispose(){var t;(t=this.threads)==null||t.dispose(),this.threads=void 0,this.completedItems=void 0}run({activeIndex:t,items:n}){var r;if(this.completedItems===n)return;this.completedItems=void 0,(r=this.threads)==null||r.dispose();let o=Math.max(0,t-1),i=!0;this.threads=new kp(xp,()=>{const s=n[o];if(!s){this.completedItems=n;return}return i&&o===n.length-1?(i=!1,o=t-2):i?o++:o--,(async()=>{if(!this.isItemCompleted(s))return this.download(s)})()}),this.threads.exec()}}class kp{constructor(t,n){xe(this,"isDisposed",!1);this.limit=t,this.getNext=n}dispose(){this.isDisposed=!0}exec(){for(let t=0;t<this.limit;t++)this.next()}async next(){if(this.isDisposed)return;const t=this.getNext();t&&(await t,await ln(20),this.next())}}class qt{constructor(t,n,o){this.src=t,this.el=n,this.parentEl=o}get computedSrc(){var t;return this.src??((t=this.el)==null?void 0:t._tkSrc)}}class fl{constructor(){xe(this,"elsPool",new Map)}check(t){if(!t||t===document.body)return!0;const n=this.elsPool.get(t);if(n!==void 0)return n;const o=getComputedStyle(t);if(!(o.display!=="none"&&+(o.opacity??"1")>.1))return this.elsPool.set(t,!1),!1;const r=this.check(t.parentElement);return this.elsPool.set(t,r),r}}function wi(e){if(e instanceof HTMLOptionElement){const t=e.parentElement instanceof HTMLOptGroupElement?e.parentElement.parentElement:e.parentElement;if(!t||!(t instanceof HTMLSelectElement))return;const n=e.getAttribute("value")||"";if(t.value===n)return;t.value=n,t.dispatchEvent(new Event("change"));return}return e instanceof HTMLAnchorElement&&e.addEventListener("click",t=>t.preventDefault(),{once:!0}),e.click()}async function Cp(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?(wi(i),await ln(),!0):!1}class Ip{constructor({spec:t,onChanged:n}){xe(this,"spec");xe(this,"onChanged");xe(this,"rawImages",[]);xe(this,"isMounted",!0);xe(this,"loadRawImagesTs");xe(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=Xe(()=>{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(Xe(()=>{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 Cp(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 Tp(t,o):pl(t);this.loadRawImagesTs!==n||!t.isConnected||!this.isMounted||this.setRawImages(i)}}async function Tp(e,t){const n=Array.from(e.querySelectorAll(t));if(!n.length)return pl(e);const o=new fl;return n.map(r=>{const s=Array.from(r.querySelectorAll("img,canvas"));for(const l of s)if(o.check(l)){if(l instanceof HTMLCanvasElement){if(hl(l))return new qt(void 0,l,r)}else if(l instanceof HTMLImageElement&&gl(l)){const a=vo(l);return new qt(a,l,r)}}return new qt(void 0,void 0,r)})}function pl(e){const t=[],n={},o=new fl;return Array.from(e.querySelectorAll("img,canvas")).forEach(r=>{if(o.check(r)){if(r instanceof HTMLCanvasElement)hl(r)&&t.push(new qt(void 0,r));else if(r instanceof HTMLImageElement&&gl(r)){const s=vo(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 qt(s,r))}}}),t}function hl(e){return e.isConnected&&ml(e.width,e.height)}function gl(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||ml(t.width,t.height)}function ml(e,t){return e>=130&&t>=130&&(e>=200||t>=200)}const xi="mp-scroll-container";class Si{constructor(){xe(this,"unmountedCallbacks",new Map)}dispose(){for(const t of this.unmountedCallbacks.values())t()}scrollTo({rawImages:t,page:n,skipIfVisible:o,isScrollDown:i,fallbackScrollEl:r}){const s=Math.floor(n),l=t[Math.min(t.length-1,s)];if(!l)return;const a=l.el??l.parentEl??document.querySelector(`img[src^="${l.computedSrc}"]`);if(!a)return;const c=a.getBoundingClientRect();if(o&&c.top<=0&&c.top+c.height>0)return;const u=Si.getScrollable(a,r);if(!u)return;const{el:d,top:p}=u;r!==document.documentElement&&!d.classList.contains(xi)&&(d.classList.add(xi),this.unmountedCallbacks.has(d)||this.unmountedCallbacks.set(d,()=>{d.classList.remove(xi)}));const _=n>=t.length?c.height:i?Math.max(0,c.height-window.innerHeight+100):n%1*c.height,$={top:p+_,behavior:"instant"};d.scrollTo($),d===document.body&&document.documentElement.scrollTo($)}static getScrollable(t,n){const o=(i,r)=>{if(!i)return;const{offsetTop:s,offsetParent:l}=i;if(l&&s&&r.set(l,Math.max(r.get(l)??0,s)),!(i===n||i.scrollHeight-i.clientHeight>=10&&window.getComputedStyle(i).overflow!=="visible"))return o(i.parentElement,r);let c=0;return r.forEach((u,d)=>{c+=d===l?u-s:u}),{el:i,top:c}};return o(t,new Map)}}function vl(e){var t,n;for(let o=0;o<e.length;o++){const i=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),r=i==null?void 0:i.getBoundingClientRect();if(!r||r.bottom<=0)continue;const s=r.top;return o+(s>=0?0:-s/r.height)}return 0}function Ep(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 qt(void 0,o));return vl(n)}function $p(e){var O,U,S;const t=(O=e.raw.value)==null?void 0:O.isWebtoon,n=Z(t===!1),o=Z(t);let i=!1;const r=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android"),s=((S=(U=e.raw.value)==null?void 0:U.imgs)==null?void 0:S.filter(Boolean))??[];let l=e.isAutoShow!==!1?e.page.value:s.length?Ep(s):void 0,a=s.map(y=>new qt(y)),c,u,d=setTimeout(e.onTimeout,2e4);const p=()=>{d&&(clearTimeout(d),d=void 0)},_=new _p({isIOS:r,onDownloaded(y,R){let b=a.indexOf(y);if(b===-1){const k=y.computedSrc;b=a.findIndex(A=>A.computedSrc===k)}if(b!==-1){if(R&&!o.value&&b>Math.min(1,a.length-3)&&b<Math.max(a.length-2,3)){const k=R.width/R.height,A=k>2||k<.5,G=!A&&.65<k&&k<.75;o.value!==A&&(o.value=A),n.value!=G&&(n.value=!0)}j()}},onDownloadError(){u||o.value!==void 0||(u=setTimeout(()=>{u=void 0,o.value===void 0&&e.onError("Failed to load images")},3e3))}}),$=new Sp({download:y=>_.download(y),isItemCompleted:y=>{const R=y.computedSrc;return!!(R&&_.reactiveResults[R])}}),I=()=>{$.run({items:a,activeIndex:Math.floor(e.page.value)})},m=new Si;if(s.length)I();else{let y=!1;c=new Ip({spec:e.spec,async onChanged(R){var b;if(a=R,!e.raw.value&&!R.length){e.onError("no_img");return}(b=e.spec)!=null&&b.imgDivs&&!y&&e.isAutoShow!==!1&&e.page.value&&(y=!0,m.scrollTo({rawImages:R,page:e.page.value,skipIfVisible:!0,fallbackScrollEl:r?document.body:document.documentElement}),await ln(1)),l===void 0&&e.isAutoShow===!1&&(l=vl(R)),I()}})}Wo(()=>{_.dispose(),$.dispose(),c==null||c.dispose(),u&&clearTimeout(u),m.dispose(),i&&m.scrollTo({rawImages:a,page:e.page.value,fallbackScrollEl:document.documentElement})});function j(){var k,A,G;if(i||o.value===void 0||l===void 0)return;const y=Math.max(0,Math.min(l,a.length)),R=Math.min(Math.floor(y),a.length-1);if(R>=1){if(!((k=a[R])==null?void 0:k.computedSrc)){e.isAutoShow&&m.scrollTo({rawImages:a,page:R,fallbackScrollEl:r?document.body:document.documentElement});return}for(let h=R;h<a.length;h++){const x=(A=a[h])==null?void 0:A.computedSrc;if(!x)return;const K=_.reactiveResults[x];if(!K)return;if(!K.invalid){if(!K.size&&!K.hasError)return;break}}for(let h=R-1;h>=0;h--){const x=(G=a[h])==null?void 0:G.computedSrc;if(!x)break;const K=_.reactiveResults[x];if(!K)return;if(!K.invalid){if(!K.size&&!K.hasError)return;break}}}if(i)return;i=!0,p(),e.onReady(y);let b=!0;ge(()=>Math.floor(e.page.value),(C,h)=>{C===h&&!b||(m.scrollTo({rawImages:a,page:C,isScrollDown:h===void 0||C>h||a.length===1,skipIfVisible:b&&a.length>1,fallbackScrollEl:r?document.body:document.documentElement}),b=!1,h??(h=-1),I())},{immediate:!0})}return{asyncImgs:ae(()=>{Object.values(_.reactiveResults);const y=[];return a.forEach(R=>{const b=R.computedSrc,k=b?_.reactiveResults[b]:void 0;(b&&!(k!=null&&k.invalid)||R.parentEl)&&y.push(k)}),y}),isWebtoon:ae(()=>o.value??!1),isManga:ae(()=>n.value)}}function Mp(e,t,n){return ae(()=>t.value?bl(e.value,n.value):e.value.map((o,i)=>[{img:o,index:i}]))}function bl(e,t,n=0){if(e.length===0)return[];const o=e.slice(0,2),i=o.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height),r=i||t?[o[0]]:o;return[r.map((s,l)=>({img:s,index:n+l})),...bl(e.slice(r.length),t&&i,n+r.length)]}function Op(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=Z(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ae({get:()=>o.value,set:i=>{o.value=i,sessionStorage.setItem("tk:page",i+"")}})}function Pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ki=40;function Lp({page:e,direction:t,style:n,isLongStrip:o,isVertical:i,isRTL:r,spaceTop:s,scrollEl:l,isWebtoon:a,interferePlayer:c,onChangedPage:u,onInitialized:d,onFinished:p}){let _=!1,$=!1,I=!1,m;const j=Xe(k,300),M=xs(()=>{k(),j()},300),O=Xe(y,50);async function U(){R(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function S(){var z;$=!0,d(),A(),(z=l.value)==null||z.addEventListener("scroll",M),setTimeout(()=>{const{width:B,height:pe}=fi();ge(B,()=>{i.value&&O()}),ge(pe,()=>{i.value||O()}),ge(n,y),ge(t,y)},300)}async function y(){if(!$||_)return;_=!0,await gt();const z=e.value;if(C()===z){_=!1;return}R(z)}function R(z,{smooth:B,ensureLastImgVisibility:pe=!1}={smooth:!1}){const de=l.value;if(!de)return;_=!0;const be=async()=>{await gt(),_=!1,$||S()},ye=Math.floor(z),Oe=_i(de,ye);if(!Oe){be();return}c(async()=>{await b(de,!o.value&&B,async()=>{await ie(de,Oe,{smooth:B,page:z,ensureLastImgVisibility:pe})}),await be()})}async function b(z,B,pe){B&&z.style.setProperty("scroll-snap-type","none"),await pe(),B&&z.style.removeProperty("scroll-snap-type")}function k(){if(_)return;const z=C();z!==void 0&&z!==e.value&&u(z),A()}function A(){I||!I&&G()&&(I=!0,p())}function G(){const z=l.value;if(!z)return!1;const B=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*B:z.scrollWidth-(r.value?-z.scrollLeft:z.scrollLeft)<z.clientWidth*B}function C(){const z=h();return z?(+z.getAttribute("data-index")||0)+(o.value?x(z):0):void 0}function h(){var B;if(m??(m=l.value.getRootNode()),!m)return;const z=(B=m.elementsFromPoint)==null?void 0:B.call(m,i.value||!o.value?window.innerWidth/2:r.value?window.innerWidth-ki:ki,i.value&&o.value?s.value||ki:window.innerHeight/2);if(z)for(let pe=0;pe<z.length;pe++){const de=z[pe];if(de.hasAttribute("data-index"))return de;if(de===l.value)break}}function x(z){const B=z.getBoundingClientRect();return i.value?Math.abs(B.top-s.value)/B.height:r.value?Math.max(0,B.right-l.value.clientWidth)/B.width:Math.abs(B.left)/B.width}let K=!1;async function ie(z,B,pe){if(K)return;const de=B.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}K=!0;const be=i.value?z.scrollTop:z.scrollLeft,ye=pe.page,Oe=o.value?ye%1:0,Xt=await sn(30,10,async()=>{await ln();let He;if(!(B.offsetHeight<10))return o.value?i.value?He=B.offsetTop+Oe*B.offsetHeight-s.value:r.value?He=B.offsetLeft-z.clientWidth+B.offsetWidth-Oe*B.offsetWidth:He=B.offsetLeft+Oe*B.offsetWidth:i.value?He=B.offsetTop+(de.top>0?0:de.height-z.clientHeight):He=B.offsetLeft+(de.left>0?0:de.width-z.clientWidth),ye>.5&&Math.abs(He)<100?void 0:He})??0,zt=pe.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(!pe.smooth){i.value?z.scrollTop=zt:z.scrollLeft=zt,K=!1;return}const Fe=zt-be,vt=30;let bt=0;return new Promise(He=>{(function Ve(){const it=zp(bt,be,Fe,vt);i.value?z.scrollTop=it:z.scrollLeft=it,bt++,bt<=vt?requestAnimationFrame(Ve):(He(),K=!1)})()})}return{init:U,goToPage:R}}function zp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Ap({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:i,isLongStrip:r,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Z(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:b=>{a.value=b,sessionStorage.setItem("tk:playing",b?"true":"false")}}),u=Z(!1);let d,p;const _=Xe(y,100),$=Xe(()=>{u.value=!0},t?2e3:1e3),I=()=>setTimeout(()=>{u.value=!1,$()},30);I(),t||Lt(window,"mousemove",I);const m=Es();Be(()=>{ge(m,b=>{c.value&&(b==="visible"?y():p==null||p())}),ge(s,()=>j()),ge(r,b=>{b||O()})}),Nt(O);async function j(b){c.value&&(p==null||p()),b&&(await gt(),await b()),c.value&&_()}function M(){c.value?O():U()}function O(){c.value&&(c.value=!1,p==null||p(),I())}function U(){!c.value&&r.value&&(c.value=!0,y(),I())}function S(){p==null||p()}function y(){const b=n.value;if(!c.value||!b)return;const k=o.value?b.scrollHeight-b.clientHeight:b.scrollWidth-b.clientWidth,A=R();if(k<=A){O();return}p=()=>{d=Date.now(),p=void 0};const G=Date.now();d=G;const C=.05*s.value,h=o.value?"scrollTop":"scrollLeft";let x=Date.now(),K=0;const ie=()=>{if(d!==G)return;const z=Date.now(),B=z-x;x=z;const pe=C*B+K;pe>=1?(K=pe%1,b[h]+=(pe-K)*(i.value?-1:1)):K=pe,setTimeout(ie,1)};ie()}function R(){const b=n.value;return o.value?b.scrollTop:i.value?-b.scrollLeft:b.scrollLeft}return{isPlaying:c,isIdle:u,toggle:M,play:U,pause:S,resume:y,stop:O,interfere:j,awake:I}}function Dp({raw:e,spec:t,siteMeta:n,onSelect:o}){var A,G,C;const{vol:i,inferVol:r,chap:s,title:l,slug:a,basePath:c}=e,u=t==null?void 0:t.chapter;let d=-1;async function p(h,x){if(o){o({...h});return}if(h.slug){_(h.slug,x);return}if(h.elIndex===void 0||!(u!=null&&u.sel))return;let K=null;document.querySelector(u.sel)||(u!=null&&u.trigger&&(K=document.querySelector(u.trigger)),K&&(K.click(),await new Promise(z=>setTimeout(()=>z(),50))));const ie=u&&u.sel&&!u.url?document.querySelectorAll(u.sel):void 0;ie!=null&&ie[h.elIndex]&&(wi(ie[h.elIndex]),K&&document.querySelector(u.sel)&&K.click())}function _(h,x){const K=jp(c,h,(n==null?void 0:n.trailing)??!0);x?window.open(K,"_blank","noopener"):location.href=K}function $(h){const x=O[h];return x?K=>p(x,K):void 0}function I(h,x,K){if(h){const ie=document.querySelector(h);ie&&wi(ie);return}x&&_(x,K)}const m=i??r,j=u==null?void 0:u.url,M=((A=l.chapters)==null?void 0:A.filter(h=>h.slug||!j&&h.elIndex!==void 0))??[],O=M.length>1?M:[],U=(G=e.prev)==null?void 0:G.slug,S=(C=e.next)==null?void 0:C.slug,{prevBtn:y,nextBtn:R}=t??{};let b=U||y&&!O.length?h=>I(y,U,h):void 0,k=S||R&&!O.length?h=>I(R,S,h):void 0;if(O.length){if(j&&(d=O.findIndex(h=>h.slug===e.slug)),d===-1&&(d=O.findIndex(h=>(h.vol??h.inferVol)===m&&h.chap===s)),j&&d===-1&&(d=O.findIndex(h=>h.slug&&a.startsWith(`${h.slug}-`)&&a.length-h.slug.length>3)),d!==-1)b??(b=$(d+1)),k??(k=$(d-1));else if(!U&&!S){const h=O.findIndex(x=>{const K=x.vol??x.inferVol;return m===void 0||K===void 0||m===K?x.chap<s:K<m});h!==-1?(b=$(h),k=$(h-1)):k=$(O.length-1)}}return{activeIndex:d,activeLabel:yl({vol:i,chap:s}),prev:b,next:k,chapters:O.map(h=>({label:yl(h),select:x=>p(h,x)}))}}function yl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}function jp(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 Rp={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},_l=me(Ce({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},offlineMode:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished","getHiddenChapters","hapticFeedback","pressedBack","selectChapter","timeout"],setup(e,{emit:t}){const n=e,o=t;let i=!1,r;const s=Z(!1),l=Z(!1),a=_u({touchDevice:n.touchDevice}),c=Op(n.page,n.isAutoShow),u=ae(()=>n.immediate||s.value?n.spaceTop??0:0),{asyncImgs:d,isWebtoon:p,isManga:_}=$p({raw:ae(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,async onReady(v){zt(v),s.value=!0},onError:()=>{o("error"),N()},onTimeout:()=>o("timeout")}),{direction:$,style:I,isRTL:m,isDouble:j,isVertical:M,isLongStrip:O,gap:U,speed:S,zoom:y,breakFirst:R,autoNextSeconds:b,isDoubleDisabled:k}=ad({titleName:ae(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:p,isManga:_,defaultStyle:n.readerStyle,defaultDirection:n.direction}),A=Z(!1),G=Mp(d,j,R),C=ae(()=>c.value>=d.value.length),h=ae(()=>n.raw?Dp({raw:n.raw,spec:n.spec,siteMeta:n.siteMeta,onSelect:n.offlineMode?v=>o("selectChapter",v):void 0}):void 0),x=Z(null),K=Ts(),ie=Z(!1),z=Z(!1),B=Ap({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var v;return(v=x.value)==null?void 0:v.$el}),speed:S,isRTL:m,isVertical:M,isLongStrip:O}),pe=ae(()=>!n.touchDevice&&B.isIdle.value&&!a.value&&!A.value),de=ae({get(){return y.value},set(v){B.interfere(()=>{y.value=v})}}),be=Lp({page:c,style:I,direction:$,isLongStrip:O,isVertical:M,isRTL:m,spaceTop:u,isWebtoon:p,scrollEl:ae(()=>{var v;return(v=x.value)==null?void 0:v.$el}),interferePlayer:v=>B.interfere(v),onChangedPage:zt,onInitialized(){o("ready"),l.value=!0,r=Fe()},onFinished:()=>o("finished")}),ye=ae(()=>Math.floor(c.value)),Oe=()=>B.interfere(()=>ln(100));$u().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const L=O.value&&M.value,ne=O.value&&!M.value,re=!O.value&&M.value,De=!O.value&&!M.value;switch(v.key){case" ":v.preventDefault(),O.value?(oe(!1),B.toggle()):F();break;case"ArrowUp":case"PageUp":L?Oe():re&&ye.value!==0&&(v.preventDefault(),T());break;case"ArrowDown":case"PageDown":L?Oe():re&&!C.value&&(v.preventDefault(),H());break;case"ArrowLeft":ne?Oe():De?(v.preventDefault(),w()):M.value&&it();break;case"ArrowRight":ne?Oe():De?(v.preventDefault(),E()):M.value&&Ve();break;case"Escape":v.preventDefault();break}},onKeyUp:v=>{switch(v.key){case"b":R.value=!R.value;break;case"f":W();break;case"t":P();break;case"h":oe();break}}}),pu(()=>o("hapticFeedback")),Lt("fullscreenchange",()=>{ie.value=!!document.fullscreenElement}),ge(B.isPlaying,v=>{v||F(!1),o("playingChanged",v)}),ge(B.isIdle,v=>{B.isPlaying.value&&F(v)}),ge(a,v=>{!v&&B.isIdle.value?B.awake():v&&n.fullScreen&&F()});function zt(v){if(c.value===v)return;const L=d.value.length;if(v<0||v>=L+1)return;const ne=Math.floor(v*100)/100;if(ne===c.value)return;const re=c.value;c.value=ne,o("pageChanged",ne),v>=L?(F(!1),B.stop()):v<.01&&re>v?(F(!1),B.awake()):i||(O.value?r!==void 0&&Fe()-r>300&&F(!0):Math.abs(re-v)===1&&F(!0))}function Fe(){var L;const v=(L=x.value)==null?void 0:L.$el;return v?M.value?v.scrollTop:m.value?-v.scrollLeft:v.scrollLeft:0}function vt(){!n.touchDevice&&!O.value&&be.goToPage(ye.value,{smooth:!0})}function bt(){if(B.isPlaying.value){!n.fullScreen||!n.touchDevice?B.stop():B.awake();return}F()}function He(v){n.offlineMode&&(v.preventDefault(),o("pressedBack"))}function Ve(v=!1){var L,ne;(ne=(L=h.value)==null?void 0:L.next)==null||ne.call(L,v)}function it(v=!1){var L,ne;(ne=(L=h.value)==null?void 0:L.prev)==null||ne.call(L,v)}function Pn(v){m.value?Ve(g(v)):it(g(v))}function f(v){m.value?it(g(v)):Ve(g(v))}function g(v){return!n.touchDevice&&(v.ctrlKey||v.metaKey)}function w(){m.value?H():T()}function E(){m.value?T():H()}function T(){var ne;const v=G.value,L=C.value?v[v.length-1][0].index:(ne=v[V()-1])==null?void 0:ne[0].index;L!==void 0?be.goToPage(L):it()}function H(){var v,L;if(C.value)Ve();else{const ne=((L=(v=G.value[V()+1])==null?void 0:v[0])==null?void 0:L.index)??d.value.length;be.goToPage(ne)}}function V(){const v=ye.value,L=G.value.findIndex(ne=>ne.some(({index:re})=>re===v));return L===-1?G.value.length-1:L}function N(){if(n.offlineMode){o("pressedBack");return}Pp(),o("dispose")}async function F(v){if(a.value&&!n.fullScreen)return;const L=typeof v=="boolean"?v:!n.fullScreen;L!==n.fullScreen&&(i=!0,o("fullScreenChanged",L),L&&setTimeout(()=>{n.fullScreen&&a.value&&o("fullScreenChanged",!1)},100))}function P(){n.entryId?J():te()}function W(){var v,L;document.fullscreenElement?document.exitFullscreen():(L=(v=K.value)==null?void 0:v.querySelector("#reader-layout"))==null||L.requestFullscreen()}function te(){B.stop(),o("addEntry")}function J(){B.stop(),o("openEntry",n.entryId)}function oe(v){z.value!==v&&(z.value=!z.value,z.value&&B.isPlaying.value&&B.stop())}return(v,L)=>v.immediate||s.value?(D(),he(Qs,{key:0,loading:!l.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,zooming:A.value,idle:pe.value,"space-top":u.value,rtl:q(m),onClick:L[15]||(L[15]=Le(()=>{},["stop"]))},Ir({settings:le(()=>{var ne;return[Q(Ns,{"reader-style":q(I),"onUpdate:readerStyle":L[6]||(L[6]=re=>Te(I)?I.value=re:null),direction:q($),"onUpdate:direction":L[7]||(L[7]=re=>Te($)?$.value=re:null),gap:q(U),"onUpdate:gap":L[8]||(L[8]=re=>Te(U)?U.value=re:null),speed:q(S),"onUpdate:speed":L[9]||(L[9]=re=>Te(S)?S.value=re:null),zoom:de.value,"onUpdate:zoom":L[10]||(L[10]=re=>de.value=re),"auto-next-seconds":q(b),"onUpdate:autoNextSeconds":L[11]||(L[11]=re=>Te(b)?b.value=re:null),name:(ne=v.raw)==null?void 0:ne.title.name,webtoon:q(p),disabled:!s.value,"disable-double":q(k),onHelp:oe},null,8,["reader-style","direction","gap","speed","zoom","auto-next-seconds","name","webtoon","disabled","disable-double"])]}),"reset-zoom":le(()=>[Q(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[A.value||q(y)!==1?(D(),he(Hs,{key:0,zoom:de.value,onClick:L[14]||(L[14]=Le(()=>de.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])):_e("",!0)]),_:1})]),progress:le(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:ze({width:`${q(c)/(q(d).length-1)*100}%`})},null,4)]),default:le(()=>{var ne;return[s.value?(D(),he(Js,{key:0,ref_key:"body",ref:x,zoom:de.value,"onUpdate:zoom":L[0]||(L[0]=re=>de.value=re),zooming:A.value,"onUpdate:zooming":L[1]||(L[1]=re=>A.value=re),page:q(c),"page-index":ye.value,pages:q(G),"total-imgs":q(d).length,direction:q($),gap:q(U),"is-long-strip":q(O),isRTL:q(m),"is-double":q(j),"is-vertical":q(M),"space-top":u.value,busy:q(a),idle:pe.value,"play-controller":q(B),"touch-device":v.touchDevice,"has-next":!!((ne=h.value)!=null&&ne.next),onReady:q(be).init,onPrev:T,onNext:H,onClick:bt,onDragEnd:vt,onWheelPassive:L[2]||(L[2]=()=>q(B).interfere())},Ir({_:2},[s.value&&q(d).length?{name:"end",fn:le(()=>{var re;return[Q(zs,{"has-next":!!((re=h.value)!=null&&re.next),"offline-mode":!!v.offlineMode,seconds:q(b),onNext:Ve,onHide:N},null,8,["has-next","offline-mode","seconds"])]}),key:"0"}:void 0]),1032,["zoom","zooming","page","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-double","is-vertical","space-top","busy","idle","play-controller","touch-device","has-next","onReady"])):_e("",!0),l.value&&!C.value&&!v.tourEnabled?(D(),he(qs,{key:1,direction:q($)},null,8,["direction"])):_e("",!0),l.value&&!C.value?(D(),he(Zs,{key:2,playing:!!q(B).isPlaying.value},null,8,["playing"])):_e("",!0),z.value?(D(),he(Ys,{key:3,"touch-device":v.touchDevice,onHide:oe},null,8,["touch-device"])):_e("",!0),v.tourEnabled?(D(),he(el,{key:4,onHide:L[3]||(L[3]=()=>o("tourEnabledChanged",!1))})):_e("",!0)]}),_:2},[v.raw||v.offlineMode?{name:"back",fn:le(()=>[Q(nt,{href:v.offlineMode||!v.raw?"#":v.raw.title.url,title:"Back to manga","enable-haptic-feedback":"",onClick:He},{default:le(()=>[Q(tl)]),_:1},8,["href"])]),key:"0"}:void 0,!v.touchDevice&&!v.offlineMode?{name:"exit",fn:le(()=>[Q(nt,{title:"Hide reader","data-tour":"You have entered reader mode, press here to return to the original page",onClick:N},{default:le(()=>[Q(ul)]),_:1})]),key:"1"}:void 0,h.value?{name:"chapter-nav",fn:le(()=>{var ne;return[Q(Ks,{"touch-device":v.touchDevice,"chapter-spec":(ne=v.spec)==null?void 0:ne.chapter,data:h.value,onGetHiddenChapters:L[4]||(L[4]=()=>o("getHiddenChapters")),onChaptersDialogOpen:L[5]||(L[5]=()=>F(!0))},null,8,["touch-device","chapter-spec","data"]),h.value.next||h.value.prev?(D(),Y("div",Rp,[Q(nt,{title:`${q(m)?"Next":"Prev"} chapter (←)`,disabled:q(m)?!h.value.next:!h.value.prev,class:"!rounded-r-none","enable-haptic-feedback":"",onClick:Pn},{default:le(()=>[Q(il)]),_:1},8,["title","disabled"]),Q(nt,{title:`${q(m)?"Prev":"Next"} chapter (→)`,disabled:q(m)?!h.value.prev:!h.value.next,class:"!rounded-l-none","enable-haptic-feedback":"",onClick:f},{default:le(()=>[Q(rl)]),_:1},8,["title","disabled"])])):_e("",!0)]}),key:"2"}:void 0,q(G).length?{name:"page-nav",fn:le(()=>[Q(Xs,{"model-value":ye.value,disabled:!l.value,pages:q(G),"total-imgs":q(d).length,"onUpdate:modelValue":q(be).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,!v.offlineMode&&v.raw?{name:"entry",fn:le(()=>[Q(nt,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:P},{default:le(()=>[v.entryId?(D(),he(ol,{key:0})):(D(),he(nl,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:le(()=>[Q(nt,{title:`${ie.value?"Exit":"Enter"} fullscreen (F)`,onClick:W},{default:le(()=>[ie.value?(D(),he(cl,{key:0})):(D(),he(al,{key:1}))]),_:1},8,["title"])]),key:"5"},q(O)?{name:"play",fn:le(()=>[Q(nt,{"data-tour":"Press here to play like a video",title:`${q(B).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:L[12]||(L[12]=()=>q(B).toggle())},{default:le(()=>[q(B).isPlaying.value?(D(),he(vi,{key:0})):(D(),he(bi,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0,q(j)?{name:"break-first",fn:le(()=>[Q(nt,{title:"Break 1st page (B)","data-tour":"Press here to separate the first page from double-page mode",disabled:!l.value,onClick:L[13]||(L[13]=()=>R.value=!q(R))},{default:le(()=>[q(R)?(D(),he(ll,{key:0})):(D(),he(sl,{key:1}))]),_:1},8,["disabled"])]),key:"7"}:void 0]),1032,["loading","immediate","full-screen","zooming","idle","space-top","rtl"])):_e("",!0)}}),[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-0{margin:0}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[30rem\\]{height:480px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.max-h-none{max-height:none}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.8rem\\]{width:76.8px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-center{scroll-snap-align:center}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
28
|
+
`]]]),Bp=Object.freeze(Object.defineProperty({__proto__:null,default:_l},Symbol.toStringTag,{value:"Module"})),Np=Object.freeze(Object.defineProperty({__proto__:null,default:Ce({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=t,o=Z(null),i=Z(!1);return Be(async()=>{await gt();let r=!1;di(o,s=>{const l=s.some(a=>a.isIntersecting);l!==i.value&&(i.value=l),l&&!r&&n("visible")})}),(r,s)=>(D(),Y("div",{ref_key:"root",ref:o},[we(r.$slots,"default",{visible:i.value})],512))}})},Symbol.toStringTag,{value:"Module"})),Fp={},Hp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Vp=[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 Wp(e,t){return D(),Y("svg",Hp,Vp)}const Kp=Object.freeze(Object.defineProperty({__proto__:null,default:me(Fp,[["render",Wp]])},Symbol.toStringTag,{value:"Module"})),Up=`gear-second{height:0!important;opacity:0!important;pointer-events:none!important;width:0!important;z-index:-10!important}html.gear-second,html.gear-second *{scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body .m-content #progress-bar{display:none!important}html.gear-second body>:not(dialog[open]){visibility:hidden!important}.mp-scroll-container{max-height:100vh!important;overflow:hidden!important}html:has(body.mp-scroll-container){overflow:auto!important}
|
|
29
|
+
`,Yt="gear-second",Ci={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,tourEnabled:void 0,offlineMode:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0,onHapticFeedback:void 0,onPressedBack:void 0,onSelectChapter:void 0,onTimeout:void 0},Ze={promise:void 0,data:cn({...Ci})};async function qp(e){return Ze.promise?(Ze.data.raw=e.raw,await Ze.promise):(Ze.promise=new Promise(t=>{let n=!1,o=!1,i,r,s=0;const l=!!e.spaceTop||!!e.isAutoShow&&!!e.page,a=()=>{n||(n=!0,clearInterval(i),i=void 0,r!=null&&r.isConnected&&document.body.removeChild(r),document.documentElement.classList.remove(Yt),Object.assign(Ze.data,Ci),Ze.promise=void 0)},c=Xe(p=>{var _;return!n&&((_=e.onPageChanged)==null?void 0:_.call(e,p))},300);Object.assign(Ze.data,Ci,e,{immediate:l,onReady(){l||(u(),document.documentElement.classList.add(Yt))},onError(){var p,_;a(),o?((p=e.onDispose)==null||p.call(e),(_=e.onError)==null||_.call(e)):d()},onDispose:()=>{var p;a(),(p=e==null?void 0:e.onDispose)==null||p.call(e)},onFullScreenChanged:p=>{var _;Ze.data.fullScreen=p,(_=e.onFullScreenChanged)==null||_.call(e,p)},onPageChanged:p=>{Ze.data.page=p,!(s>=p)&&(s=p,c(p))},onTourEnabledChanged:p=>{Ze.data.tourEnabled=p}}),Yp().then(()=>{if(n){d();return}r=document.createElement(Yt),l?(document.documentElement.classList.add(Yt),document.body.appendChild(r),setTimeout(u)):document.body.appendChild(r);let p=0;i=setInterval(()=>{if(++p===30||n){clearInterval(i),i=void 0;return}r.isConnected||(document.documentElement.classList.add(Yt),document.body.appendChild(r))},100)});function u(){o||(o=!0,t({updateArgs(p){Object.assign(Ze.data,p)},dispose:a}))}function d(){o||t(void 0)}}),await Ze.promise)}async function Yp(){if(window.customElements.get(Yt))return;const e=document.createElement("style"),t=Up;e.appendChild(document.createTextNode(t)),document.head.appendChild(e);const n=Wc({styles:[await Xp()],data:()=>({readerData:Ze.data}),render(){return es(_l,this.readerData)}});window.customElements.define(Yt,n)}async function Xp(){const e=Object.assign({"./App.vue":Bp,"./components/AutoNext.vue":yu,"./components/BottomSheet.vue":Lu,"./components/ButtonDropdown.vue":Ld,"./components/ButtonIcon.vue":xu,"./components/ButtonReaderSettings.vue":ud,"./components/ButtonResetZoom.vue":bd,"./components/ChapterNav.vue":zd,"./components/DirectionToast.vue":Nd,"./components/GesturesContainer.vue":tf,"./components/HelpScreen.vue":Hd,"./components/InputPercentage.vue":Du,"./components/InputSelect.vue":Ru,"./components/IntersectionWrapper.vue":Np,"./components/LoadingIndicator.vue":lf,"./components/PageNav.vue":Vd,"./components/PauseToast.vue":ef,"./components/ReaderBody.vue":ff,"./components/ReaderLayout.vue":wf,"./components/ReaderTour.vue":xf,"./components/TableField.vue":Fu,"./components/icons/IconBack.vue":Tf,"./components/icons/IconBookmarkNew.vue":Pf,"./components/icons/IconBookmarked.vue":jf,"./components/icons/IconChevronLeft.vue":Hf,"./components/icons/IconChevronRight.vue":qf,"./components/icons/IconClose.vue":Tu,"./components/icons/IconDouble.vue":Jf,"./components/icons/IconDoubleSkip.vue":op,"./components/icons/IconExclamationCircle.vue":Kp,"./components/icons/IconFullscreen.vue":ap,"./components/icons/IconFullscreenExit.vue":pp,"./components/icons/IconHelp.vue":Uu,"./components/icons/IconLoading.vue":Sd,"./components/icons/IconNext.vue":Bd,"./components/icons/IconPause.vue":Yd,"./components/icons/IconPlay.vue":Qd,"./components/icons/IconReaderExit.vue":bp,"./components/icons/IconSettings.vue":Gu,"./components/icons/IconTriangle.vue":Ed,"./components/icons/IconZoom.vue":gd}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return qp});
|