gear-second 1.4.4 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +9 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(We,ue){typeof exports=="object"&&typeof module<"u"?module.exports=ue():typeof define=="function"&&define.amd?define(ue):(We=typeof globalThis<"u"?globalThis:We||self,We._gearSecond_=ue())})(this,function(){"use strict";var lp=Object.defineProperty;var ap=(We,ue,Ze)=>ue in We?lp(We,ue,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):We[ue]=Ze;var Ys=(We,ue,Ze)=>(ap(We,typeof ue!="symbol"?ue+"":ue,Ze),Ze);function We(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const ue={},Ze=[],it=()=>{},Xs=()=>!1,qs=/^on[^a-z]/,Tn=e=>qs.test(e),uo=e=>e.startsWith("onUpdate:"),Te=Object.assign,fo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zs=Object.prototype.hasOwnProperty,de=(e,t)=>Zs.call(e,t),G=Array.isArray,Xt=e=>$n(e)==="[object Map]",dr=e=>$n(e)==="[object Set]",se=e=>typeof e=="function",Pe=e=>typeof e=="string",po=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",pr=e=>ye(e)&&se(e.then)&&se(e.catch),hr=Object.prototype.toString,$n=e=>hr.call(e),Qs=e=>$n(e).slice(8,-1),gr=e=>$n(e)==="[object Object]",ho=e=>Pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,En=We(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Js=/-(\w)/g,Ue=Pn(e=>e.replace(Js,(t,n)=>n?n.toUpperCase():"")),Gs=/\B([A-Z])/g,Qe=Pn(e=>e.replace(Gs,"-$1").toLowerCase()),On=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),go=Pn(e=>e?`on${On(e)}`:""),sn=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},mo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vo=e=>{const t=Pe(e)?Number(e):NaN;return isNaN(t)?e:t};let mr;const bo=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Re(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Pe(o)?ol(o):Re(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Pe(e))return e;if(ye(e))return e}}const el=/;(?![^(]*\))/g,tl=/:([^]+)/,nl=/\/\*[^]*?\*\//g;function ol(e){const t={};return e.replace(nl,"").split(el).forEach(n=>{if(n){const o=n.split(tl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ze(e){let t="";if(Pe(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const o=ze(e[n]);o&&(t+=o+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const rl=We("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function vr(e){return!!e||e===""}const Je=e=>Pe(e)?e:e==null?"":G(e)||ye(e)&&(e.toString===hr||!se(e.toString))?JSON.stringify(e,br,2):String(e),br=(e,t)=>t&&t.__v_isRef?br(e,t.value):Xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:dr(t)?{[`Set(${t.size})`]:[...t.values()]}:ye(t)&&!G(t)&&!gr(t)?String(t):t;let Ke;class il{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ke,!t&&Ke&&(this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function sl(e,t=Ke){t&&t.active&&t.effects.push(e)}function _r(){return Ke}function ll(e){Ke&&Ke.cleanups.push(e)}const _o=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yr=e=>(e.w&xt)>0,wr=e=>(e.n&xt)>0,al=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=xt},cl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];yr(r)&&!wr(r)?r.delete(e):t[n++]=r,r.w&=~xt,r.n&=~xt}t.length=n}},yo=new WeakMap;let ln=0,xt=1;const wo=30;let st;const At=Symbol(""),xo=Symbol("");class ko{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,sl(this,o)}run(){if(!this.active)return this.fn();let t=st,n=kt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=st,st=this,kt=!0,xt=1<<++ln,ln<=wo?al(this):xr(this),this.fn()}finally{ln<=wo&&cl(this),xt=1<<--ln,st=this.parent,kt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){st===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let kt=!0;const kr=[];function qt(){kr.push(kt),kt=!1}function Zt(){const e=kr.pop();kt=e===void 0?!0:e}function Ve(e,t,n){if(kt&&st){let o=yo.get(e);o||yo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=_o()),Cr(r)}}function Cr(e,t){let n=!1;ln<=wo?wr(e)||(e.n|=xt,n=!yr(e)):n=!e.has(st),n&&(e.add(st),st.deps.push(e))}function gt(e,t,n,o,r,i){const s=yo.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&G(e)){const l=Number(o);s.forEach((c,u)=>{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":G(e)?ho(n)&&a.push(s.get("length")):(a.push(s.get(At)),Xt(e)&&a.push(s.get(xo)));break;case"delete":G(e)||(a.push(s.get(At)),Xt(e)&&a.push(s.get(xo)));break;case"set":Xt(e)&&a.push(s.get(At));break}if(a.length===1)a[0]&&Co(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Co(_o(l))}}function Co(e,t){const n=G(e)?e:[...e];for(const o of n)o.computed&&Sr(o);for(const o of n)o.computed||Sr(o)}function Sr(e,t){(e!==st||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ul=We("__proto__,__v_isRef,__isVue"),Ir=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(po)),fl=So(),dl=So(!1,!0),pl=So(!0),Tr=hl();function hl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=me(this);for(let i=0,s=this.length;i<s;i++)Ve(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(me)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){qt();const o=me(this)[t].apply(this,n);return Zt(),o}}),e}function gl(e){const t=me(this);return Ve(t,"has",e),t.hasOwnProperty(e)}function So(e=!1,t=!1){return function(o,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?Ol:jr:t?Ar:zr).get(o))return o;const s=G(o);if(!e){if(s&&de(Tr,r))return Reflect.get(Tr,r,i);if(r==="hasOwnProperty")return gl}const a=Reflect.get(o,r,i);return(po(r)?Ir.has(r):ul(r))||(e||Ve(o,"get",r),t)?a:Oe(a)?s&&ho(r)?a:a.value:ye(a)?e?Br(a):an(a):a}}const ml=$r(),vl=$r(!0);function $r(e=!1){return function(n,o,r,i){let s=n[o];if(Jt(s)&&Oe(s)&&!Oe(r))return!1;if(!e&&(!Nn(r)&&!Jt(r)&&(s=me(s),r=me(r)),!G(n)&&Oe(s)&&!Oe(r)))return s.value=r,!0;const a=G(n)&&ho(o)?Number(o)<n.length:de(n,o),l=Reflect.set(n,o,r,i);return n===me(i)&&(a?sn(r,s)&&gt(n,"set",o,r):gt(n,"add",o,r)),l}}function bl(e,t){const n=de(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&gt(e,"delete",t,void 0),o}function _l(e,t){const n=Reflect.has(e,t);return(!po(t)||!Ir.has(t))&&Ve(e,"has",t),n}function yl(e){return Ve(e,"iterate",G(e)?"length":At),Reflect.ownKeys(e)}const Er={get:fl,set:ml,deleteProperty:bl,has:_l,ownKeys:yl},wl={get:pl,set(e,t){return!0},deleteProperty(e,t){return!0}},xl=Te({},Er,{get:dl,set:vl}),Io=e=>e,zn=e=>Reflect.getPrototypeOf(e);function An(e,t,n=!1,o=!1){e=e.__v_raw;const r=me(e),i=me(t);n||(t!==i&&Ve(r,"get",t),Ve(r,"get",i));const{has:s}=zn(r),a=o?Io:n?Eo:cn;if(s.call(r,t))return a(e.get(t));if(s.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function jn(e,t=!1){const n=this.__v_raw,o=me(n),r=me(e);return t||(e!==r&&Ve(o,"has",e),Ve(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bn(e,t=!1){return e=e.__v_raw,!t&&Ve(me(e),"iterate",At),Reflect.get(e,"size",e)}function Pr(e){e=me(e);const t=me(this);return zn(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Or(e,t){t=me(t);const n=me(this),{has:o,get:r}=zn(n);let i=o.call(n,e);i||(e=me(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?sn(t,s)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Mr(e){const t=me(this),{has:n,get:o}=zn(t);let r=n.call(t,e);r||(e=me(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&gt(t,"delete",e,void 0),i}function Lr(){const e=me(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function Dn(e,t){return function(o,r){const i=this,s=i.__v_raw,a=me(s),l=t?Io:e?Eo:cn;return!e&&Ve(a,"iterate",At),s.forEach((c,u)=>o.call(r,l(c),l(u),i))}}function Rn(e,t,n){return function(...o){const r=this.__v_raw,i=me(r),s=Xt(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=r[e](...o),u=n?Io:t?Eo:cn;return!t&&Ve(i,"iterate",l?xo:At),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:a?[u(h[0]),u(h[1])]:u(h),done:p}},[Symbol.iterator](){return this}}}}function Ct(e){return function(...t){return e==="delete"?!1:this}}function kl(){const e={get(i){return An(this,i)},get size(){return Bn(this)},has:jn,add:Pr,set:Or,delete:Mr,clear:Lr,forEach:Dn(!1,!1)},t={get(i){return An(this,i,!1,!0)},get size(){return Bn(this)},has:jn,add:Pr,set:Or,delete:Mr,clear:Lr,forEach:Dn(!1,!0)},n={get(i){return An(this,i,!0)},get size(){return Bn(this,!0)},has(i){return jn.call(this,i,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Dn(!0,!1)},o={get(i){return An(this,i,!0,!0)},get size(){return Bn(this,!0)},has(i){return jn.call(this,i,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Dn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Rn(i,!1,!1),n[i]=Rn(i,!0,!1),t[i]=Rn(i,!1,!0),o[i]=Rn(i,!0,!0)}),[e,n,t,o]}const[Cl,Sl,Il,Tl]=kl();function To(e,t){const n=t?e?Tl:Il:e?Sl:Cl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(de(n,r)&&r in o?n:o,r,i)}const $l={get:To(!1,!1)},El={get:To(!1,!0)},Pl={get:To(!0,!1)},zr=new WeakMap,Ar=new WeakMap,jr=new WeakMap,Ol=new WeakMap;function Ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ll(e){return e.__v_skip||!Object.isExtensible(e)?0:Ml(Qs(e))}function an(e){return Jt(e)?e:$o(e,!1,Er,$l,zr)}function zl(e){return $o(e,!1,xl,El,Ar)}function Br(e){return $o(e,!0,wl,Pl,jr)}function $o(e,t,n,o,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Ll(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return r.set(e,a),a}function Qt(e){return Jt(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function Dr(e){return Qt(e)||Jt(e)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function Rr(e){return Ln(e,"__v_skip",!0),e}const cn=e=>ye(e)?an(e):e,Eo=e=>ye(e)?Br(e):e;function Nr(e){kt&&st&&(e=me(e),Cr(e.dep||(e.dep=_o())))}function Fr(e,t){e=me(e);const n=e.dep;n&&Co(n)}function Oe(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return Al(e,!1)}function Al(e,t){return Oe(e)?e:new jl(e,t)}class jl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:cn(t)}get value(){return Nr(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||Jt(t);t=n?t:me(t),sn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),Fr(this))}}function J(e){return Oe(e)?e.value:e}const Bl={get:(e,t,n)=>J(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Oe(r)&&!Oe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Vr(e){return Qt(e)?e:new Proxy(e,Bl)}class Dl{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ko(t,()=>{this._dirty||(this._dirty=!0,Fr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=me(this);return Nr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Rl(e,t,n=!1){let o,r;const i=se(e);return i?(o=e,r=it):(o=e.get,r=e.set),new Dl(o,r,i||!r,n)}function up(e,...t){}function St(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Fn(i,t,n)}return r}function Ge(e,t,n,o){if(se(e)){const i=St(e,t,n,o);return i&&pr(i)&&i.catch(s=>{Fn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Ge(e[i],t,n,o));return r}function Fn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,a=n;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){St(l,null,10,[e,s,a]);return}}Nl(e,n,r,o)}function Nl(e,t,n,o=!0){console.error(e)}let un=!1,Po=!1;const De=[];let ut=0;const Gt=[];let mt=null,jt=0;const Hr=Promise.resolve();let Oo=null;function vt(e){const t=Oo||Hr;return e?t.then(this?e.bind(this):e):t}function Fl(e){let t=ut+1,n=De.length;for(;t<n;){const o=t+n>>>1;fn(De[o])<e?t=o+1:n=o}return t}function Mo(e){(!De.length||!De.includes(e,un&&e.allowRecurse?ut+1:ut))&&(e.id==null?De.push(e):De.splice(Fl(e.id),0,e),Wr())}function Wr(){!un&&!Po&&(Po=!0,Oo=Hr.then(Yr))}function Vl(e){const t=De.indexOf(e);t>ut&&De.splice(t,1)}function Hl(e){G(e)?Gt.push(...e):(!mt||!mt.includes(e,e.allowRecurse?jt+1:jt))&&Gt.push(e),Wr()}function Ur(e,t=un?ut+1:0){for(;t<De.length;t++){const n=De[t];n&&n.pre&&(De.splice(t,1),t--,n())}}function Kr(e){if(Gt.length){const t=[...new Set(Gt)];if(Gt.length=0,mt){mt.push(...t);return}for(mt=t,mt.sort((n,o)=>fn(n)-fn(o)),jt=0;jt<mt.length;jt++)mt[jt]();mt=null,jt=0}}const fn=e=>e.id==null?1/0:e.id,Wl=(e,t)=>{const n=fn(e)-fn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Yr(e){Po=!1,un=!0,De.sort(Wl);const t=it;try{for(ut=0;ut<De.length;ut++){const n=De[ut];n&&n.active!==!1&&St(n,null,14)}}finally{ut=0,De.length=0,Kr(),un=!1,Oo=null,(De.length||Gt.length)&&Yr()}}function Ul(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ue;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:h,trim:p}=o[u]||ue;p&&(r=n.map(v=>Pe(v)?v.trim():v)),h&&(r=n.map(mo))}let a,l=o[a=go(t)]||o[a=go(Ue(t))];!l&&i&&(l=o[a=go(Qe(t))]),l&&Ge(l,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ge(c,e,6,r)}}function Xr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},a=!1;if(!se(e)){const l=c=>{const u=Xr(c,t,!0);u&&(a=!0,Te(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ye(e)&&o.set(e,null),null):(G(i)?i.forEach(l=>s[l]=null):Te(s,i),ye(e)&&o.set(e,s),s)}function Vn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),de(e,t[0].toLowerCase()+t.slice(1))||de(e,Qe(t))||de(e,t))}let Be=null,qr=null;function Hn(e){const t=Be;return Be=e,qr=e&&e.type.__scopeId||null,t}function le(e,t=Be,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Si(-1);const i=Hn(t);let s;try{s=e(...r)}finally{Hn(i),o._d&&Si(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function fp(){}function Lo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:p,setupState:v,ctx:w,inheritAttrs:C}=e;let L,V;const T=Hn(e);try{if(n.shapeFlag&4){const g=r||o;L=dt(u.call(g,g,h,i,v,p,w)),V=l}else{const g=t;L=dt(g.length>1?g(i,{attrs:l,slots:a,emit:c}):g(i,null)),V=t.props?l:Kl(l)}}catch(g){mn.length=0,Fn(g,e,1),L=Z(nt)}let D=L;if(V&&C!==!1){const g=Object.keys(V),{shapeFlag:$}=D;g.length&&$&7&&(s&&g.some(uo)&&(V=Yl(V,s)),D=It(D,V))}return n.dirs&&(D=It(D),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&(D.transition=n.transition),L=D,Hn(T),L}const Kl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},Yl=(e,t)=>{const n={};for(const o in e)(!uo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Xl(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Zr(o,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const p=u[h];if(s[p]!==o[p]&&!Vn(c,p))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:o===s?!1:o?s?Zr(o,s,c):!0:!!s;return!1}function Zr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Vn(n,i))return!0}return!1}function ql({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Zl=e=>e.__isSuspense;function Ql(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):Hl(e)}const Wn={};function ve(e,t,n){return Qr(e,t,n)}function Qr(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=ue){var a;const l=_r()===((a=je)==null?void 0:a.scope)?je:null;let c,u=!1,h=!1;if(Oe(e)?(c=()=>e.value,u=Nn(e)):Qt(e)?(c=()=>e,o=!0):G(e)?(h=!0,u=e.some(g=>Qt(g)||Nn(g)),c=()=>e.map(g=>{if(Oe(g))return g.value;if(Qt(g))return Bt(g);if(se(g))return St(g,l,2)})):se(e)?t?c=()=>St(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return p&&p(),Ge(e,l,3,[v])}:c=it,t&&o){const g=c;c=()=>Bt(g())}let p,v=g=>{p=T.onStop=()=>{St(g,l,4)}},w;if(bn)if(v=it,t?n&&Ge(t,l,3,[c(),h?[]:void 0,v]):c(),r==="sync"){const g=Ha();w=g.__watcherHandles||(g.__watcherHandles=[])}else return it;let C=h?new Array(e.length).fill(Wn):Wn;const L=()=>{if(T.active)if(t){const g=T.run();(o||u||(h?g.some(($,P)=>sn($,C[P])):sn(g,C)))&&(p&&p(),Ge(t,l,3,[g,C===Wn?void 0:h&&C[0]===Wn?[]:C,v]),C=g)}else T.run()};L.allowRecurse=!!t;let V;r==="sync"?V=L:r==="post"?V=()=>He(L,l&&l.suspense):(L.pre=!0,l&&(L.id=l.uid),V=()=>Mo(L));const T=new ko(c,V);t?n?L():C=T.run():r==="post"?He(T.run.bind(T),l&&l.suspense):T.run();const D=()=>{T.stop(),l&&l.scope&&fo(l.scope.effects,T)};return w&&w.push(D),D}function Jl(e,t,n){const o=this.proxy,r=Pe(e)?e.includes(".")?Jr(o,e):()=>o[e]:e.bind(o,o);let i;se(t)?i=t:(i=t.handler,n=t);const s=je;tn(this);const a=Qr(r,i.bind(o),n);return s?tn(s):Vt(),a}function Jr(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function Bt(e,t){if(!ye(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Oe(e))Bt(e.value,t);else if(G(e))for(let n=0;n<e.length;n++)Bt(e[n],t);else if(dr(e)||Xt(e))e.forEach(n=>{Bt(n,t)});else if(gr(e))for(const n in e)Bt(e[n],t);return e}function bt(e,t){const n=Be;if(n===null)return e;const o=no(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,a,l,c=ue]=t[i];s&&(se(s)&&(s={mounted:s,updated:s}),s.deep&&Bt(a),r.push({dir:s,instance:o,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function Dt(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const a=r[s];i&&(a.oldValue=i[s].value);let l=a.dir[o];l&&(qt(),Ge(l,n,8,[e.el,a,e,t]),Zt())}}function Gl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),Yn(()=>{e.isUnmounting=!0}),e}const et=[Function,Array],Gr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:et,onEnter:et,onAfterEnter:et,onEnterCancelled:et,onBeforeLeave:et,onLeave:et,onAfterLeave:et,onLeaveCancelled:et,onBeforeAppear:et,onAppear:et,onAfterAppear:et,onAppearCancelled:et},ea={name:"BaseTransition",props:Gr,setup(e,{slots:t}){const n=$i(),o=Gl();let r;return()=>{const i=t.default&&ni(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const C of i)if(C.type!==nt){s=C;break}}const a=me(e),{mode:l}=a;if(o.isLeaving)return Ao(s);const c=ti(s);if(!c)return Ao(s);const u=zo(c,a,o,n);jo(c,u);const h=n.subTree,p=h&&ti(h);let v=!1;const{getTransitionKey:w}=c.type;if(w){const C=w();r===void 0?r=C:C!==r&&(r=C,v=!0)}if(p&&p.type!==nt&&(!Ft(c,p)||v)){const C=zo(p,a,o,n);if(jo(p,C),l==="out-in")return o.isLeaving=!0,C.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Ao(s);l==="in-out"&&c.type!==nt&&(C.delayLeave=(L,V,T)=>{const D=ei(o,p);D[String(p.key)]=p,L._leaveCb=()=>{V(),L._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=T})}return s}}};function ei(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function zo(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:p,onAfterLeave:v,onLeaveCancelled:w,onBeforeAppear:C,onAppear:L,onAfterAppear:V,onAppearCancelled:T}=t,D=String(e.key),g=ei(n,e),$=(S,z)=>{S&&Ge(S,o,9,z)},P=(S,z)=>{const ee=z[1];$(S,z),G(S)?S.every(ce=>ce.length<=1)&&ee():S.length<=1&&ee()},B={mode:i,persisted:s,beforeEnter(S){let z=a;if(!n.isMounted)if(r)z=C||a;else return;S._leaveCb&&S._leaveCb(!0);const ee=g[D];ee&&Ft(e,ee)&&ee.el._leaveCb&&ee.el._leaveCb(),$(z,[S])},enter(S){let z=l,ee=c,ce=u;if(!n.isMounted)if(r)z=L||l,ee=V||c,ce=T||u;else return;let y=!1;const b=S._enterCb=U=>{y||(y=!0,U?$(ce,[S]):$(ee,[S]),B.delayedLeave&&B.delayedLeave(),S._enterCb=void 0)};z?P(z,[S,b]):b()},leave(S,z){const ee=String(e.key);if(S._enterCb&&S._enterCb(!0),n.isUnmounting)return z();$(h,[S]);let ce=!1;const y=S._leaveCb=b=>{ce||(ce=!0,z(),b?$(w,[S]):$(v,[S]),S._leaveCb=void 0,g[ee]===e&&delete g[ee])};g[ee]=e,p?P(p,[S,y]):y()},clone(S){return zo(S,t,n,o)}};return B}function Ao(e){if(Un(e))return e=It(e),e.children=null,e}function ti(e){return Un(e)?e.children?e.children[0]:void 0:e}function jo(e,t){e.shapeFlag&6&&e.component?jo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ni(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===$e?(s.patchFlag&128&&r++,o=o.concat(ni(s.children,t,a))):(t||s.type!==nt)&&o.push(a!=null?It(s,{key:a}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function Me(e,t){return se(e)?(()=>Te({name:e.name},t,{setup:e}))():e}const dn=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function ta(e,t){oi(e,"a",t)}function na(e,t){oi(e,"da",t)}function oi(e,t,n=je){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Kn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Un(r.parent.vnode)&&oa(o,t,n,r),r=r.parent}}function oa(e,t,n,o){const r=Kn(t,e,o,!0);ft(()=>{fo(o[t],r)},n)}function Kn(e,t,n=je,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;qt(),tn(n);const a=Ge(t,n,e,s);return Vt(),Zt(),a});return o?r.unshift(i):r.push(i),i}}const _t=e=>(t,n=je)=>(!bn||e==="sp")&&Kn(e,(...o)=>t(...o),n),ra=_t("bm"),tt=_t("m"),ia=_t("bu"),sa=_t("u"),Yn=_t("bum"),ft=_t("um"),la=_t("sp"),aa=_t("rtg"),ca=_t("rtc");function ua(e,t=je){Kn("ec",e,t)}const ri="components",ii=Symbol.for("v-ndc");function fa(e){return Pe(e)?da(ri,e,!1)||e:e||ii}function da(e,t,n=!0,o=!1){const r=Be||je;if(r){const i=r.type;if(e===ri){const a=Na(i,!1);if(a&&(a===t||a===Ue(t)||a===On(Ue(t))))return i}const s=si(r[e]||i[e],t)||si(r.appContext[e],t);return!s&&o?i:s}}function si(e,t){return e&&(e[t]||e[Ue(t)]||e[On(Ue(t))])}function pn(e,t,n,o){let r;const i=n&&n[o];if(G(e)||Pe(e)){r=new Array(e.length);for(let s=0,a=e.length;s<a;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(ye(e))if(e[Symbol.iterator])r=Array.from(e,(s,a)=>t(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);r=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const c=s[a];r[a]=t(e[c],c,a,i&&i[a])}}else r=[];return n&&(n[o]=r),r}function li(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(G(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function Le(e,t,n={},o,r){if(Be.isCE||Be.parent&&dn(Be.parent)&&Be.parent.isCE)return t!=="default"&&(n.name=t),Z("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),A();const s=i&&ai(i(n)),a=Ce($e,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function ai(e){return e.some(t=>Jn(t)?!(t.type===nt||t.type===$e&&!ai(t.children)):!0)?e:null}const Bo=e=>e?Pi(e)?no(e)||e.proxy:Bo(e.parent):null,hn=Te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bo(e.parent),$root:e=>Bo(e.root),$emit:e=>e.emit,$options:e=>No(e),$forceUpdate:e=>e.f||(e.f=()=>Mo(e.update)),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>Jl.bind(e)}),Do=(e,t)=>e!==ue&&!e.__isScriptSetup&&de(e,t),pa={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Do(o,t))return s[t]=1,o[t];if(r!==ue&&de(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&de(c,t))return s[t]=3,i[t];if(n!==ue&&de(n,t))return s[t]=4,n[t];Ro&&(s[t]=0)}}const u=hn[t];let h,p;if(u)return t==="$attrs"&&Ve(e,"get",t),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==ue&&de(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,de(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Do(r,t)?(r[t]=n,!0):o!==ue&&de(o,t)?(o[t]=n,!0):de(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==ue&&de(e,s)||Do(t,s)||(a=i[0])&&de(a,s)||de(o,s)||de(hn,s)||de(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:de(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ci(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ro=!0;function ha(e){const t=No(e),n=e.proxy,o=e.ctx;Ro=!1,t.beforeCreate&&ui(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:p,beforeUpdate:v,updated:w,activated:C,deactivated:L,beforeDestroy:V,beforeUnmount:T,destroyed:D,unmounted:g,render:$,renderTracked:P,renderTriggered:B,errorCaptured:S,serverPrefetch:z,expose:ee,inheritAttrs:ce,components:y,directives:b,filters:U}=t;if(c&&ga(c,o,null),s)for(const ae in s){const oe=s[ae];se(oe)&&(o[ae]=oe.bind(n))}if(r){const ae=r.call(n,n);ye(ae)&&(e.data=an(ae))}if(Ro=!0,i)for(const ae in i){const oe=i[ae],_e=se(oe)?oe.bind(n,n):se(oe.get)?oe.get.bind(n,n):it,Se=!se(oe)&&se(oe.set)?oe.set.bind(n):it,N=ie({get:_e,set:Se});Object.defineProperty(o,ae,{enumerable:!0,configurable:!0,get:()=>N.value,set:F=>N.value=F})}if(a)for(const ae in a)fi(a[ae],o,n,ae);if(l){const ae=se(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(oe=>{Zn(oe,ae[oe])})}u&&ui(u,e,"c");function H(ae,oe){G(oe)?oe.forEach(_e=>ae(_e.bind(n))):oe&&ae(oe.bind(n))}if(H(ra,h),H(tt,p),H(ia,v),H(sa,w),H(ta,C),H(na,L),H(ua,S),H(ca,P),H(aa,B),H(Yn,T),H(ft,g),H(la,z),G(ee))if(ee.length){const ae=e.exposed||(e.exposed={});ee.forEach(oe=>{Object.defineProperty(ae,oe,{get:()=>n[oe],set:_e=>n[oe]=_e})})}else e.exposed||(e.exposed={});$&&e.render===it&&(e.render=$),ce!=null&&(e.inheritAttrs=ce),y&&(e.components=y),b&&(e.directives=b)}function ga(e,t,n=it){G(e)&&(e=Fo(e));for(const o in e){const r=e[o];let i;ye(r)?"default"in r?i=Rt(r.from||o,r.default,!0):i=Rt(r.from||o):i=Rt(r),Oe(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function ui(e,t,n){Ge(G(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fi(e,t,n,o){const r=o.includes(".")?Jr(n,o):()=>n[o];if(Pe(e)){const i=t[e];se(i)&&ve(r,i)}else if(se(e))ve(r,e.bind(n));else if(ye(e))if(G(e))e.forEach(i=>fi(i,t,n,o));else{const i=se(e.handler)?e.handler.bind(n):t[e.handler];se(i)&&ve(r,i,e)}}function No(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(c=>Xn(l,c,s,!0)),Xn(l,t,s)),ye(t)&&i.set(t,l),l}function Xn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Xn(e,i,n,!0),r&&r.forEach(s=>Xn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=ma[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const ma={data:di,props:pi,emits:pi,methods:gn,computed:gn,beforeCreate:Ne,created:Ne,beforeMount:Ne,mounted:Ne,beforeUpdate:Ne,updated:Ne,beforeDestroy:Ne,beforeUnmount:Ne,destroyed:Ne,unmounted:Ne,activated:Ne,deactivated:Ne,errorCaptured:Ne,serverPrefetch:Ne,components:gn,directives:gn,watch:ba,provide:di,inject:va};function di(e,t){return t?e?function(){return Te(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function va(e,t){return gn(Fo(e),Fo(t))}function Fo(e){if(G(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ne(e,t){return e?[...new Set([].concat(e,t))]:t}function gn(e,t){return e?Te(Object.create(null),e,t):t}function pi(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:Te(Object.create(null),ci(e),ci(t??{})):t}function ba(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const o in t)n[o]=Ne(e[o],t[o]);return n}function hi(){return{app:null,config:{isNativeTag:Xs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _a=0;function ya(e,t){return function(o,r=null){se(o)||(o=Te({},o)),r!=null&&!ye(r)&&(r=null);const i=hi(),s=new Set;let a=!1;const l=i.app={_uid:_a++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:Wa,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&se(c.install)?(s.add(c),c.install(l,...u)):se(c)&&(s.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,h){if(!a){const p=Z(o,r);return p.appContext=i,u&&t?t(p,c):e(p,c,h),a=!0,l._container=c,c.__vue_app__=l,no(p.component)||p.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l},runWithContext(c){qn=l;try{return c()}finally{qn=null}}};return l}}let qn=null;function Zn(e,t){if(je){let n=je.provides;const o=je.parent&&je.parent.provides;o===n&&(n=je.provides=Object.create(o)),n[e]=t}}function Rt(e,t,n=!1){const o=je||Be;if(o||qn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:qn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&se(t)?t.call(o&&o.proxy):t}}function wa(e,t,n,o=!1){const r={},i={};Ln(i,Gn,1),e.propsDefaults=Object.create(null),gi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:zl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function xa(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=me(r),[l]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let p=u[h];if(Vn(e.emitsOptions,p))continue;const v=t[p];if(l)if(de(i,p))v!==i[p]&&(i[p]=v,c=!0);else{const w=Ue(p);r[w]=Vo(l,a,w,v,e,!1)}else v!==i[p]&&(i[p]=v,c=!0)}}}else{gi(e,t,r,i)&&(c=!0);let u;for(const h in a)(!t||!de(t,h)&&((u=Qe(h))===h||!de(t,u)))&&(l?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Vo(l,a,h,void 0,e,!0)):delete r[h]);if(i!==a)for(const h in i)(!t||!de(t,h))&&(delete i[h],c=!0)}c&&gt(e,"set","$attrs")}function gi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(En(l))continue;const c=t[l];let u;r&&de(r,u=Ue(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:Vn(e.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,s=!0)}if(i){const l=me(n),c=a||ue;for(let u=0;u<i.length;u++){const h=i[u];n[h]=Vo(r,l,h,c[h],e,!de(c,h))}}return s}function Vo(e,t,n,o,r,i){const s=e[n];if(s!=null){const a=de(s,"default");if(a&&o===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&se(l)){const{propsDefaults:c}=r;n in c?o=c[n]:(tn(r),o=c[n]=l.call(null,t),Vt())}else o=l}s[0]&&(i&&!a?o=!1:s[1]&&(o===""||o===Qe(n))&&(o=!0))}return o}function mi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},a=[];let l=!1;if(!se(e)){const u=h=>{l=!0;const[p,v]=mi(h,t,!0);Te(s,p),v&&a.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ye(e)&&o.set(e,Ze),Ze;if(G(i))for(let u=0;u<i.length;u++){const h=Ue(i[u]);vi(h)&&(s[h]=ue)}else if(i)for(const u in i){const h=Ue(u);if(vi(h)){const p=i[u],v=s[h]=G(p)||se(p)?{type:p}:Te({},p);if(v){const w=yi(Boolean,v.type),C=yi(String,v.type);v[0]=w>-1,v[1]=C<0||w<C,(w>-1||de(v,"default"))&&a.push(h)}}}const c=[s,a];return ye(e)&&o.set(e,c),c}function vi(e){return e[0]!=="$"}function bi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function _i(e,t){return bi(e)===bi(t)}function yi(e,t){return G(t)?t.findIndex(n=>_i(n,e)):se(t)&&_i(t,e)?0:-1}const wi=e=>e[0]==="_"||e==="$stable",Ho=e=>G(e)?e.map(dt):[dt(e)],ka=(e,t,n)=>{if(t._n)return t;const o=le((...r)=>Ho(t(...r)),n);return o._c=!1,o},xi=(e,t,n)=>{const o=e._ctx;for(const r in e){if(wi(r))continue;const i=e[r];if(se(i))t[r]=ka(r,i,o);else if(i!=null){const s=Ho(i);t[r]=()=>s}}},ki=(e,t)=>{const n=Ho(t);e.slots.default=()=>n},Ca=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=me(t),Ln(t,"_",n)):xi(t,e.slots={})}else e.slots={},t&&ki(e,t);Ln(e.slots,Gn,1)},Sa=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=ue;if(o.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Te(r,t),!n&&a===1&&delete r._):(i=!t.$stable,xi(t,r)),s=t}else t&&(ki(e,t),s={default:1});if(i)for(const a in r)!wi(a)&&!(a in s)&&delete r[a]};function Wo(e,t,n,o,r=!1){if(G(e)){e.forEach((p,v)=>Wo(p,t&&(G(t)?t[v]:t),n,o,r));return}if(dn(o)&&!r)return;const i=o.shapeFlag&4?no(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===ue?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(Pe(c)?(u[c]=null,de(h,c)&&(h[c]=null)):Oe(c)&&(c.value=null)),se(l))St(l,a,12,[s,u]);else{const p=Pe(l),v=Oe(l);if(p||v){const w=()=>{if(e.f){const C=p?de(h,l)?h[l]:u[l]:l.value;r?G(C)&&fo(C,i):G(C)?C.includes(i)||C.push(i):p?(u[l]=[i],de(h,l)&&(h[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else p?(u[l]=s,de(h,l)&&(h[l]=s)):v&&(l.value=s,e.k&&(u[e.k]=s))};s?(w.id=-1,He(w,n)):w()}}}const He=Ql;function Ia(e){return Ta(e)}function Ta(e,t){const n=bo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:p,setScopeId:v=it,insertStaticContent:w}=e,C=(f,d,_,I=null,k=null,O=null,R=!1,M=null,j=!!d.dynamicChildren)=>{if(f===d)return;f&&!Ft(f,d)&&(I=he(f),F(f,k,O,!0),f=null),d.patchFlag===-2&&(j=!1,d.dynamicChildren=null);const{type:E,ref:q,shapeFlag:m}=d;switch(E){case Qn:L(f,d,_,I);break;case nt:V(f,d,_,I);break;case Uo:f==null&&T(d,_,I,R);break;case $e:y(f,d,_,I,k,O,R,M,j);break;default:m&1?$(f,d,_,I,k,O,R,M,j):m&6?b(f,d,_,I,k,O,R,M,j):(m&64||m&128)&&E.process(f,d,_,I,k,O,R,M,j,ke)}q!=null&&k&&Wo(q,f&&f.ref,O,d||f,!d)},L=(f,d,_,I)=>{if(f==null)o(d.el=a(d.children),_,I);else{const k=d.el=f.el;d.children!==f.children&&c(k,d.children)}},V=(f,d,_,I)=>{f==null?o(d.el=l(d.children||""),_,I):d.el=f.el},T=(f,d,_,I)=>{[f.el,f.anchor]=w(f.children,d,_,I,f.el,f.anchor)},D=({el:f,anchor:d},_,I)=>{let k;for(;f&&f!==d;)k=p(f),o(f,_,I),f=k;o(d,_,I)},g=({el:f,anchor:d})=>{let _;for(;f&&f!==d;)_=p(f),r(f),f=_;r(d)},$=(f,d,_,I,k,O,R,M,j)=>{R=R||d.type==="svg",f==null?P(d,_,I,k,O,R,M,j):z(f,d,k,O,R,M,j)},P=(f,d,_,I,k,O,R,M)=>{let j,E;const{type:q,props:m,shapeFlag:x,transition:W,dirs:re}=f;if(j=f.el=s(f.type,O,m&&m.is,m),x&8?u(j,f.children):x&16&&S(f.children,j,null,I,k,O&&q!=="foreignObject",R,M),re&&Dt(f,null,I,"created"),B(j,f,f.scopeId,R,I),m){for(const be in m)be!=="value"&&!En(be)&&i(j,be,null,m[be],O,f.children,I,k,pe);"value"in m&&i(j,"value",null,m.value),(E=m.onVnodeBeforeMount)&&pt(E,I,f)}re&&Dt(f,null,I,"beforeMount");const fe=(!k||k&&!k.pendingBranch)&&W&&!W.persisted;fe&&W.beforeEnter(j),o(j,d,_),((E=m&&m.onVnodeMounted)||fe||re)&&He(()=>{E&&pt(E,I,f),fe&&W.enter(j),re&&Dt(f,null,I,"mounted")},k)},B=(f,d,_,I,k)=>{if(_&&v(f,_),I)for(let O=0;O<I.length;O++)v(f,I[O]);if(k){let O=k.subTree;if(d===O){const R=k.vnode;B(f,R,R.scopeId,R.slotScopeIds,k.parent)}}},S=(f,d,_,I,k,O,R,M,j=0)=>{for(let E=j;E<f.length;E++){const q=f[E]=M?$t(f[E]):dt(f[E]);C(null,q,d,_,I,k,O,R,M)}},z=(f,d,_,I,k,O,R)=>{const M=d.el=f.el;let{patchFlag:j,dynamicChildren:E,dirs:q}=d;j|=f.patchFlag&16;const m=f.props||ue,x=d.props||ue;let W;_&&Nt(_,!1),(W=x.onVnodeBeforeUpdate)&&pt(W,_,d,f),q&&Dt(d,f,_,"beforeUpdate"),_&&Nt(_,!0);const re=k&&d.type!=="foreignObject";if(E?ee(f.dynamicChildren,E,M,_,I,re,O):R||oe(f,d,M,null,_,I,re,O,!1),j>0){if(j&16)ce(M,d,m,x,_,I,k);else if(j&2&&m.class!==x.class&&i(M,"class",null,x.class,k),j&4&&i(M,"style",m.style,x.style,k),j&8){const fe=d.dynamicProps;for(let be=0;be<fe.length;be++){const Ie=fe[be],qe=m[Ie],zt=x[Ie];(zt!==qe||Ie==="value")&&i(M,Ie,qe,zt,k,f.children,_,I,pe)}}j&1&&f.children!==d.children&&u(M,d.children)}else!R&&E==null&&ce(M,d,m,x,_,I,k);((W=x.onVnodeUpdated)||q)&&He(()=>{W&&pt(W,_,d,f),q&&Dt(d,f,_,"updated")},I)},ee=(f,d,_,I,k,O,R)=>{for(let M=0;M<d.length;M++){const j=f[M],E=d[M],q=j.el&&(j.type===$e||!Ft(j,E)||j.shapeFlag&70)?h(j.el):_;C(j,E,q,null,I,k,O,R,!0)}},ce=(f,d,_,I,k,O,R)=>{if(_!==I){if(_!==ue)for(const M in _)!En(M)&&!(M in I)&&i(f,M,_[M],null,R,d.children,k,O,pe);for(const M in I){if(En(M))continue;const j=I[M],E=_[M];j!==E&&M!=="value"&&i(f,M,E,j,R,d.children,k,O,pe)}"value"in I&&i(f,"value",_.value,I.value)}},y=(f,d,_,I,k,O,R,M,j)=>{const E=d.el=f?f.el:a(""),q=d.anchor=f?f.anchor:a("");let{patchFlag:m,dynamicChildren:x,slotScopeIds:W}=d;W&&(M=M?M.concat(W):W),f==null?(o(E,_,I),o(q,_,I),S(d.children,_,q,k,O,R,M,j)):m>0&&m&64&&x&&f.dynamicChildren?(ee(f.dynamicChildren,x,_,k,O,R,M),(d.key!=null||k&&d===k.subTree)&&Ci(f,d,!0)):oe(f,d,_,q,k,O,R,M,j)},b=(f,d,_,I,k,O,R,M,j)=>{d.slotScopeIds=M,f==null?d.shapeFlag&512?k.ctx.activate(d,_,I,R,j):U(d,_,I,k,O,R,j):te(f,d,j)},U=(f,d,_,I,k,O,R)=>{const M=f.component=Aa(f,I,k);if(Un(f)&&(M.ctx.renderer=ke),ja(M),M.asyncDep){if(k&&k.registerDep(M,H),!f.el){const j=M.subTree=Z(nt);V(null,j,d,_)}return}H(M,f,d,_,k,O,R)},te=(f,d,_)=>{const I=d.component=f.component;if(Xl(f,d,_))if(I.asyncDep&&!I.asyncResolved){ae(I,d,_);return}else I.next=d,Vl(I.update),I.update();else d.el=f.el,I.vnode=d},H=(f,d,_,I,k,O,R)=>{const M=()=>{if(f.isMounted){let{next:q,bu:m,u:x,parent:W,vnode:re}=f,fe=q,be;Nt(f,!1),q?(q.el=re.el,ae(f,q,R)):q=re,m&&Mn(m),(be=q.props&&q.props.onVnodeBeforeUpdate)&&pt(be,W,q,re),Nt(f,!0);const Ie=Lo(f),qe=f.subTree;f.subTree=Ie,C(qe,Ie,h(qe.el),he(qe),f,k,O),q.el=Ie.el,fe===null&&ql(f,Ie.el),x&&He(x,k),(be=q.props&&q.props.onVnodeUpdated)&&He(()=>pt(be,W,q,re),k)}else{let q;const{el:m,props:x}=d,{bm:W,m:re,parent:fe}=f,be=dn(d);if(Nt(f,!1),W&&Mn(W),!be&&(q=x&&x.onVnodeBeforeMount)&&pt(q,fe,d),Nt(f,!0),m&&ct){const Ie=()=>{f.subTree=Lo(f),ct(m,f.subTree,f,k,null)};be?d.type.__asyncLoader().then(()=>!f.isUnmounted&&Ie()):Ie()}else{const Ie=f.subTree=Lo(f);C(null,Ie,_,I,f,k,O),d.el=Ie.el}if(re&&He(re,k),!be&&(q=x&&x.onVnodeMounted)){const Ie=d;He(()=>pt(q,fe,Ie),k)}(d.shapeFlag&256||fe&&dn(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&He(f.a,k),f.isMounted=!0,d=_=I=null}},j=f.effect=new ko(M,()=>Mo(E),f.scope),E=f.update=()=>j.run();E.id=f.uid,Nt(f,!0),E()},ae=(f,d,_)=>{d.component=f;const I=f.vnode.props;f.vnode=d,f.next=null,xa(f,d.props,I,_),Sa(f,d.children,_),qt(),Ur(),Zt()},oe=(f,d,_,I,k,O,R,M,j=!1)=>{const E=f&&f.children,q=f?f.shapeFlag:0,m=d.children,{patchFlag:x,shapeFlag:W}=d;if(x>0){if(x&128){Se(E,m,_,I,k,O,R,M,j);return}else if(x&256){_e(E,m,_,I,k,O,R,M,j);return}}W&8?(q&16&&pe(E,k,O),m!==E&&u(_,m)):q&16?W&16?Se(E,m,_,I,k,O,R,M,j):pe(E,k,O,!0):(q&8&&u(_,""),W&16&&S(m,_,I,k,O,R,M,j))},_e=(f,d,_,I,k,O,R,M,j)=>{f=f||Ze,d=d||Ze;const E=f.length,q=d.length,m=Math.min(E,q);let x;for(x=0;x<m;x++){const W=d[x]=j?$t(d[x]):dt(d[x]);C(f[x],W,_,null,k,O,R,M,j)}E>q?pe(f,k,O,!0,!1,m):S(d,_,I,k,O,R,M,j,m)},Se=(f,d,_,I,k,O,R,M,j)=>{let E=0;const q=d.length;let m=f.length-1,x=q-1;for(;E<=m&&E<=x;){const W=f[E],re=d[E]=j?$t(d[E]):dt(d[E]);if(Ft(W,re))C(W,re,_,null,k,O,R,M,j);else break;E++}for(;E<=m&&E<=x;){const W=f[m],re=d[x]=j?$t(d[x]):dt(d[x]);if(Ft(W,re))C(W,re,_,null,k,O,R,M,j);else break;m--,x--}if(E>m){if(E<=x){const W=x+1,re=W<q?d[W].el:I;for(;E<=x;)C(null,d[E]=j?$t(d[E]):dt(d[E]),_,re,k,O,R,M,j),E++}}else if(E>x)for(;E<=m;)F(f[E],k,O,!0),E++;else{const W=E,re=E,fe=new Map;for(E=re;E<=x;E++){const Fe=d[E]=j?$t(d[E]):dt(d[E]);Fe.key!=null&&fe.set(Fe.key,E)}let be,Ie=0;const qe=x-re+1;let zt=!1,ht=0;const Yt=new Array(qe);for(E=0;E<qe;E++)Yt[E]=0;for(E=W;E<=m;E++){const Fe=f[E];if(Ie>=qe){F(Fe,k,O,!0);continue}let rt;if(Fe.key!=null)rt=fe.get(Fe.key);else for(be=re;be<=x;be++)if(Yt[be-re]===0&&Ft(Fe,d[be])){rt=be;break}rt===void 0?F(Fe,k,O,!0):(Yt[rt-re]=E+1,rt>=ht?ht=rt:zt=!0,C(Fe,d[rt],_,null,k,O,R,M,j),Ie++)}const ao=zt?$a(Yt):Ze;for(be=ao.length-1,E=qe-1;E>=0;E--){const Fe=re+E,rt=d[Fe],co=Fe+1<q?d[Fe+1].el:I;Yt[E]===0?C(null,rt,_,co,k,O,R,M,j):zt&&(be<0||E!==ao[be]?N(rt,_,co,2):be--)}}},N=(f,d,_,I,k=null)=>{const{el:O,type:R,transition:M,children:j,shapeFlag:E}=f;if(E&6){N(f.component.subTree,d,_,I);return}if(E&128){f.suspense.move(d,_,I);return}if(E&64){R.move(f,d,_,ke);return}if(R===$e){o(O,d,_);for(let m=0;m<j.length;m++)N(j[m],d,_,I);o(f.anchor,d,_);return}if(R===Uo){D(f,d,_);return}if(I!==2&&E&1&&M)if(I===0)M.beforeEnter(O),o(O,d,_),He(()=>M.enter(O),k);else{const{leave:m,delayLeave:x,afterLeave:W}=M,re=()=>o(O,d,_),fe=()=>{m(O,()=>{re(),W&&W()})};x?x(O,re,fe):fe()}else o(O,d,_)},F=(f,d,_,I=!1,k=!1)=>{const{type:O,props:R,ref:M,children:j,dynamicChildren:E,shapeFlag:q,patchFlag:m,dirs:x}=f;if(M!=null&&Wo(M,null,_,f,!0),q&256){d.ctx.deactivate(f);return}const W=q&1&&x,re=!dn(f);let fe;if(re&&(fe=R&&R.onVnodeBeforeUnmount)&&pt(fe,d,f),q&6)xe(f.component,_,I);else{if(q&128){f.suspense.unmount(_,I);return}W&&Dt(f,null,d,"beforeUnmount"),q&64?f.type.remove(f,d,_,k,ke,I):E&&(O!==$e||m>0&&m&64)?pe(E,d,_,!1,!0):(O===$e&&m&384||!k&&q&16)&&pe(j,d,_),I&&Q(f)}(re&&(fe=R&&R.onVnodeUnmounted)||W)&&He(()=>{fe&&pt(fe,d,f),W&&Dt(f,null,d,"unmounted")},_)},Q=f=>{const{type:d,el:_,anchor:I,transition:k}=f;if(d===$e){ne(_,I);return}if(d===Uo){g(f);return}const O=()=>{r(_),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(f.shapeFlag&1&&k&&!k.persisted){const{leave:R,delayLeave:M}=k,j=()=>R(_,O);M?M(f.el,O,j):j()}else O()},ne=(f,d)=>{let _;for(;f!==d;)_=p(f),r(f),f=_;r(d)},xe=(f,d,_)=>{const{bum:I,scope:k,update:O,subTree:R,um:M}=f;I&&Mn(I),k.stop(),O&&(O.active=!1,F(R,f,d,_)),M&&He(M,d),He(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},pe=(f,d,_,I=!1,k=!1,O=0)=>{for(let R=O;R<f.length;R++)F(f[R],d,_,I,k)},he=f=>f.shapeFlag&6?he(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),ge=(f,d,_)=>{f==null?d._vnode&&F(d._vnode,null,null,!0):C(d._vnode||null,f,d,null,null,null,_),Ur(),Kr(),d._vnode=f},ke={p:C,um:F,m:N,r:Q,mt:U,mc:S,pc:oe,pbc:ee,n:he,o:e};let Ee,ct;return t&&([Ee,ct]=t(ke)),{render:ge,hydrate:Ee,createApp:ya(ge,Ee)}}function Nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ci(e,t,n=!1){const o=e.children,r=t.children;if(G(o)&&G(r))for(let i=0;i<o.length;i++){const s=o[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=$t(r[i]),a.el=s.el),n||Ci(s,a)),a.type===Qn&&(a.el=s.el)}}function $a(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o<l;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<c?i=a+1:s=a;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const Ea=e=>e.__isTeleport,$e=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),mn=[];let lt=null;function A(e=!1){mn.push(lt=e?null:[])}function Pa(){mn.pop(),lt=mn[mn.length-1]||null}let vn=1;function Si(e){vn+=e}function Ii(e){return e.dynamicChildren=vn>0?lt||Ze:null,Pa(),vn>0&&lt&&lt.push(e),e}function X(e,t,n,o,r,i){return Ii(K(e,t,n,o,r,i,!0))}function Ce(e,t,n,o,r){return Ii(Z(e,t,n,o,r,!0))}function Jn(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const Gn="__vInternal",Ti=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pe(e)||Oe(e)||se(e)?{i:Be,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,o=0,r=null,i=e===$e?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ti(t),ref:t&&eo(t),scopeId:qr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Be};return a?(Ko(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Pe(n)?8:16),vn>0&&!s&&lt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&lt.push(l),l}const Z=Oa;function Oa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===ii)&&(e=nt),Jn(e)){const a=It(e,t,!0);return n&&Ko(a,n),vn>0&&!i&&lt&&(a.shapeFlag&6?lt[lt.indexOf(e)]=a:lt.push(a)),a.patchFlag|=-2,a}if(Fa(e)&&(e=e.__vccOpts),t){t=Ma(t);let{class:a,style:l}=t;a&&!Pe(a)&&(t.class=ze(a)),ye(l)&&(Dr(l)&&!G(l)&&(l=Te({},l)),t.style=Re(l))}const s=Pe(e)?1:Zl(e)?128:Ea(e)?64:ye(e)?4:se(e)?2:0;return K(e,t,n,o,r,s,i,!0)}function Ma(e){return e?Dr(e)||Gn in e?Te({},e):e:null}function It(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?to(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Ti(a),ref:t&&t.ref?n&&r?G(r)?r.concat(eo(t)):[r,eo(t)]:eo(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$e?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tt(e=" ",t=0){return Z(Qn,null,e,t)}function Ae(e="",t=!1){return t?(A(),Ce(nt,null,e)):Z(nt,null,e)}function dt(e){return e==null||typeof e=="boolean"?Z(nt):G(e)?Z($e,null,e.slice()):typeof e=="object"?$t(e):Z(Qn,null,String(e))}function $t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function Ko(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ko(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Gn in t)?t._ctx=Be:r===3&&Be&&(Be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:Be},n=32):(t=String(t),o&64?(n=16,t=[Tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function to(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=ze([t.class,o.class]));else if(r==="style")t.style=Re([t.style,o.style]);else if(Tn(r)){const i=t[r],s=o[r];s&&i!==s&&!(G(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function pt(e,t,n,o=null){Ge(e,t,7,[n,o])}const La=hi();let za=0;function Aa(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||La,i={uid:za++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new il(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:mi(o,r),emitsOptions:Xr(o,r),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:o.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ul.bind(null,i),e.ce&&e.ce(i),i}let je=null;const $i=()=>je||Be;let Yo,en,Ei="__VUE_INSTANCE_SETTERS__";(en=bo()[Ei])||(en=bo()[Ei]=[]),en.push(e=>je=e),Yo=e=>{en.length>1?en.forEach(t=>t(e)):en[0](e)};const tn=e=>{Yo(e),e.scope.on()},Vt=()=>{je&&je.scope.off(),Yo(null)};function Pi(e){return e.vnode.shapeFlag&4}let bn=!1;function ja(e,t=!1){bn=t;const{props:n,children:o}=e.vnode,r=Pi(e);wa(e,n,r,t),Ca(e,o);const i=r?Ba(e,t):void 0;return bn=!1,i}function Ba(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Rr(new Proxy(e.ctx,pa));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ra(e):null;tn(e),qt();const i=St(o,e,0,[e.props,r]);if(Zt(),Vt(),pr(i)){if(i.then(Vt,Vt),t)return i.then(s=>{Oi(e,s,t)}).catch(s=>{Fn(s,e,0)});e.asyncDep=i}else Oi(e,i,t)}else Li(e,t)}function Oi(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=Vr(t)),Li(e,n)}let Mi;function Li(e,t,n){const o=e.type;if(!e.render){if(!t&&Mi&&!o.render){const r=o.template||No(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,c=Te(Te({isCustomElement:i,delimiters:a},s),l);o.render=Mi(r,c)}}e.render=o.render||it}tn(e),qt(),ha(e),Zt(),Vt()}function Da(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ve(e,"get","$attrs"),t[n]}}))}function Ra(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Da(e)},slots:e.slots,emit:e.emit,expose:t}}function no(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vr(Rr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function Na(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Fa(e){return se(e)&&"__vccOpts"in e}const ie=(e,t)=>Rl(e,t,bn);function zi(e,t,n){const o=arguments.length;return o===2?ye(t)&&!G(t)?Jn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Jn(n)&&(n=[n]),Z(e,t,n))}const Va=Symbol.for("v-scx"),Ha=()=>Rt(Va),Wa="3.3.4",Ua="http://www.w3.org/2000/svg",Ht=typeof document<"u"?document:null,Ai=Ht&&Ht.createElement("template"),Ka={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Ht.createElementNS(Ua,e):Ht.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ht.createTextNode(e),createComment:e=>Ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ai.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ai.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ya(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Xa(e,t,n){const o=e.style,r=Pe(n);if(n&&!r){if(t&&!Pe(t))for(const i in t)n[i]==null&&Xo(o,i,"");for(const i in n)Xo(o,i,n[i])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const ji=/\s*!important$/;function Xo(e,t,n){if(G(n))n.forEach(o=>Xo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=qa(e,t);ji.test(n)?e.setProperty(Qe(o),n.replace(ji,""),"important"):e[o]=n}}const Bi=["Webkit","Moz","ms"],qo={};function qa(e,t){const n=qo[t];if(n)return n;let o=Ue(t);if(o!=="filter"&&o in e)return qo[t]=o;o=On(o);for(let r=0;r<Bi.length;r++){const i=Bi[r]+o;if(i in e)return qo[t]=i}return t}const Di="http://www.w3.org/1999/xlink";function Za(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Di,t.slice(6,t.length)):e.setAttributeNS(Di,t,n);else{const i=rl(t);n==null||i&&!vr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Qa(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const c=a==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=vr(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function nn(e,t,n,o){e.addEventListener(t,n,o)}function Ja(e,t,n,o){e.removeEventListener(t,n,o)}function Ga(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[a,l]=ec(t);if(o){const c=i[t]=oc(o,r);nn(e,a,c,l)}else s&&(Ja(e,a,s,l),i[t]=void 0)}}const Ri=/(?:Once|Passive|Capture)$/;function ec(e){let t;if(Ri.test(e)){t={};let o;for(;o=e.match(Ri);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Qe(e.slice(2)),t]}let Zo=0;const tc=Promise.resolve(),nc=()=>Zo||(tc.then(()=>Zo=0),Zo=Date.now());function oc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ge(rc(o,n.value),t,5,[o])};return n.value=e,n.attached=nc(),n}function rc(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ni=/^on[a-z]/,ic=(e,t,n,o,r=!1,i,s,a,l)=>{t==="class"?Ya(e,o,r):t==="style"?Xa(e,n,o):Tn(t)?uo(t)||Ga(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sc(e,t,o,r))?Qa(e,t,o,i,s,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Za(e,t,o,r))};function sc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ni.test(t)&&se(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ni.test(t)&&Pe(n)?!1:t in e}function lc(e,t){const n=Me(e);class o extends Qo{constructor(i){super(n,i,t)}}return o.def=n,o}const ac=typeof HTMLElement<"u"?HTMLElement:class{};class Qo extends ac{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,vt(()=>{this._connected||(Ji(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let a;if(i&&!G(i))for(const l in i){const c=i[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=vo(this._props[l])),(a||(a=Object.create(null)))[Ue(l)]=!0)}this._numberProps=a,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=G(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(Ue))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ue(t);this._numberProps&&this._numberProps[o]&&(n=vo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Qe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Qe(t),n+""):n||this.removeAttribute(Qe(t))))}_update(){Ji(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(this._def,Te({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Qe(i)!==i&&o(Qe(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Qo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const Et="transition",_n="animation",on=(e,{slots:t})=>zi(ea,cc(e),t);on.displayName="Transition";const Fi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};on.props=Te({},Gr,Fi);const Wt=(e,t=[])=>{G(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vi=e=>e?G(e)?e.some(t=>t.length>1):e.length>1:!1;function cc(e){const t={};for(const y in e)y in Fi||(t[y]=e[y]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,w=uc(r),C=w&&w[0],L=w&&w[1],{onBeforeEnter:V,onEnter:T,onEnterCancelled:D,onLeave:g,onLeaveCancelled:$,onBeforeAppear:P=V,onAppear:B=T,onAppearCancelled:S=D}=t,z=(y,b,U)=>{Ut(y,b?u:a),Ut(y,b?c:s),U&&U()},ee=(y,b)=>{y._isLeaving=!1,Ut(y,h),Ut(y,v),Ut(y,p),b&&b()},ce=y=>(b,U)=>{const te=y?B:T,H=()=>z(b,y,U);Wt(te,[b,H]),Hi(()=>{Ut(b,y?l:i),Pt(b,y?u:a),Vi(te)||Wi(b,o,C,H)})};return Te(t,{onBeforeEnter(y){Wt(V,[y]),Pt(y,i),Pt(y,s)},onBeforeAppear(y){Wt(P,[y]),Pt(y,l),Pt(y,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave(y,b){y._isLeaving=!0;const U=()=>ee(y,b);Pt(y,h),pc(),Pt(y,p),Hi(()=>{y._isLeaving&&(Ut(y,h),Pt(y,v),Vi(g)||Wi(y,o,L,U))}),Wt(g,[y,U])},onEnterCancelled(y){z(y,!1),Wt(D,[y])},onAppearCancelled(y){z(y,!0),Wt(S,[y])},onLeaveCancelled(y){ee(y),Wt($,[y])}})}function uc(e){if(e==null)return null;if(ye(e))return[Jo(e.enter),Jo(e.leave)];{const t=Jo(e);return[t,t]}}function Jo(e){return vo(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ut(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Hi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fc=0;function Wi(e,t,n,o){const r=e._endId=++fc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=dc(e,t);if(!s)return o();const c=s+"end";let u=0;const h=()=>{e.removeEventListener(c,p),i()},p=v=>{v.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},a+1),e.addEventListener(c,p)}function dc(e,t){const n=window.getComputedStyle(e),o=w=>(n[w]||"").split(", "),r=o(`${Et}Delay`),i=o(`${Et}Duration`),s=Ui(r,i),a=o(`${_n}Delay`),l=o(`${_n}Duration`),c=Ui(a,l);let u=null,h=0,p=0;t===Et?s>0&&(u=Et,h=s,p=i.length):t===_n?c>0&&(u=_n,h=c,p=l.length):(h=Math.max(s,c),u=h>0?s>c?Et:_n:null,p=u?u===Et?i.length:l.length:0);const v=u===Et&&/\b(transform|all)(,|$)/.test(o(`${Et}Property`).toString());return{type:u,timeout:h,propCount:p,hasTransform:v}}function Ui(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ki(n)+Ki(e[o])))}function Ki(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function pc(){return document.body.offsetHeight}const Yi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>Mn(t,n):t};function hc(e){e.target.composing=!0}function Xi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Yi(r);const i=o||r.props&&r.props.type==="number";nn(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=mo(a)),e._assign(a)}),n&&nn(e,"change",()=>{e.value=e.value.trim()}),t||(nn(e,"compositionstart",hc),nn(e,"compositionend",Xi),nn(e,"change",Xi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=Yi(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&mo(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},mc=["ctrl","shift","alt","meta"],vc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>mc.some(n=>e[`${n}Key`]&&!t.includes(n))},ot=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=vc[t[r]];if(i&&i(n,t))return}return e(n,...o)},bc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},qi=(e,t)=>n=>{if(!("key"in n))return;const o=Qe(n.key);if(t.some(r=>r===o||bc[r]===o))return e(n)},Zi={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):yn(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),yn(e,!0),o.enter(e)):o.leave(e,()=>{yn(e,!1)}):yn(e,t))},beforeUnmount(e,{value:t}){yn(e,t)}};function yn(e,t){e.style.display=t?e._vod:"none"}const _c=Te({patchProp:ic},Ka);let Qi;function yc(){return Qi||(Qi=Ia(_c))}const Ji=(...e)=>{yc().render(...e)},wc=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
2
- `,we=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},xc={},kc={class:"loading-indicator"};function Cc(e,t){return A(),X("div",kc)}const Go=we(xc,[["render",Cc],["styles",[wc]]]),Sc=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"})),Ic={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Tc={class:"flex justify-between items-end"},$c={class:"inline-block children-pointer-events-auto w-1/3"},Ec={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Pc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Oc={class:"inline-block z-20 relative"},Gi=Me({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>{const o=Go;return A(),X("div",{class:ze(["fixed top-0 left-0 w-screen h-screen text-stone-100 font-sans text-base overflow-auto scrollbar-none overscroll-contain",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(A(),X("div",Ic,[Z(o)])):Ae("",!0),Le(t.$slots,"default"),K("div",{id:"controls",class:ze(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[K("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Re({paddingTop:`${t.spaceTop||0}px`})},[Le(t.$slots,"back"),Le(t.$slots,"exit"),Le(t.$slots,"chapter-nav")],4),K("div",Tc,[K("div",$c,[Le(t.$slots,"page-nav")]),K("div",Ec,[Le(t.$slots,"reset-zoom")]),K("div",Pc,[Le(t.$slots,"entry"),K("div",Oc,[Le(t.$slots,"settings")]),Le(t.$slots,"full-screen"),Le(t.$slots,"play")])]),K("div",{class:ze(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Le(t.$slots,"progress")],2)],2)],2)}}}),Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Gi},Symbol.toStringTag,{value:"Module"})),Lc={},zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Ac=[K("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[K("circle",{cx:"14",cy:"14",r:"12"}),K("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function jc(e,t){return A(),X("svg",zc,Ac)}const es=we(Lc,[["render",jc]]),Bc=Object.freeze(Object.defineProperty({__proto__:null,default:es},Symbol.toStringTag,{value:"Module"})),Dc={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Rc={class:"block w-4 h-4"},Nc={class:"w-12"},ts=Me({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=es;return t.zoom!==1?(A(),X("button",Dc,[K("div",Rc,[Z(o)]),K("div",Nc,Je(Math.ceil(t.zoom*100))+"%",1)])):Ae("",!0)}}}),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),Vc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wc=[K("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function Uc(e,t){return A(),X("svg",Hc,Wc)}const er=we(Vc,[["render",Uc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),Yc={},Xc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},qc=[K("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),K("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function Zc(e,t){return A(),X("svg",Xc,qc)}const tr=we(Yc,[["render",Zc]]),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"}));function Jc({touchDevice:e}){const t=Y(!1);let n=0;return Zn("busy:touchDevice",e),Zn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function nr(){const e=Rt("busy:touchDevice"),t=Rt("setBusyState");let n=!1;return ft(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Gc=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(l,20);a();function a(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function l(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},rn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Gc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},eu={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},oo=Me({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=nr();let r=!1;function i(){r||(r=!0,o(!0,{desktopOnly:!0}))}function s(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function a(l){n.disabled?l.preventDefault():t("click")}return(l,c)=>bt((A(),Ce(fa(l.href?"a":"button"),to(l.href?{href:l.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":l.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!l.disabled,"bg-black bg-opacity-50":!l.transparent}],onClick:ot(a,["stop"]),onMouseenter:i,onMouseleave:s}),{default:le(()=>[K("div",eu,[Le(l.$slots,"default")])]),_:3},16,["class","onClick"])),[[J(rn),l.disabled?0:15]])}}),tu=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ru=[K("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function iu(e,t){return A(),X("svg",ou,ru)}const ns=we(nu,[["render",iu]]),su=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"}));class lu{constructor(){Ys(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function au(){const e=new lu;return ft(()=>e.dispose()),Zn("keyController",e),e}function ro(e){const t=Rt("keyController");tt(()=>t.addListener(e)),ft(()=>t.removeListener(e))}const cu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},uu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},fu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},os=Me({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;ro({onKeyDown:r});const o=nr();ve(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const a=ns,l=oo;return A(),X("div",{class:ze(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:s[3]||(s[3]=()=>t("update:modelValue",!1))},[Z(on,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:le(()=>[n.modelValue?(A(),X("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:s[1]||(s[1]=ot(()=>{},["stop"])),onWheelPassive:s[2]||(s[2]=ot(()=>{},["stop"]))},[K("div",cu,[Z(l,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:le(()=>[Z(a)]),_:1}),K("div",uu,Je(i.name),1),Le(i.$slots,"actions")]),K("div",fu,[Le(i.$slots,"default")])],32)):Ae("",!0)]),_:3})],2)}}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),pu=["min","max","step"],hu={class:"flex-shrink-0"},rs=we(Me({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,i)=>(A(),X("div",{class:ze(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Re({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[bt(K("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,pu),[[gc,o.value]]),K("p",hu,[Le(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
3
- `]]]),gu=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),mu={class:"flex items-center mb-8 last:mb-0"},vu={class:"flex-grow overflow-hidden"},is=Me({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),X("div",mu,[K("div",{class:ze(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),K("div",vu,[Le(t.$slots,"default")])]))}}),bu=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),_u=["onClick","onKeyup"],ss=Me({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y({width:"",left:""});tt(()=>{let s=!1;ve(()=>n.modelValue,a=>{var c;const l=(c=o.value)==null?void 0:c.children[a+1];l&&(r.value={width:l.offsetWidth+"px",left:l.offsetLeft+"px"},l.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){t("update:modelValue",s)}return(s,a)=>(A(),X("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[K("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Re(r.value)},null,4),(A(!0),X($e,null,pn(n.items,(l,c)=>bt((A(),X("div",{key:c,tabindex:"0",class:ze(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>i(c),onKeyup:[qi(()=>i(c),["enter"]),qi(()=>i(c),["space"])]},[Tt(Je(l),1)],42,_u)),[[J(rn),30]])),128))],512))}}),yu=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),wu={},xu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ku=[K("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function Cu(e,t){return A(),X("svg",xu,ku)}const ls=we(wu,[["render",Cu]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),Iu={},Tu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},$u=[K("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),K("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Eu(e,t){return A(),X("svg",Tu,$u)}const as=we(Iu,[["render",Eu]]),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"}));function Ou(e){if(e)try{return JSON.parse(e)}catch{return}}function Mu(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var at=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(at||{}),Ot=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Ot||{});const Lu=.25,zu=5,Au=.25,wn=.25,xn=5,ju=.05,Bu=0,Du=4;function Ru(e){var V,T,D,g,$;const{titleName:t,isWebtoon:n}=e,o=ie(()=>t.value?Mu(t.value):location.hostname),r=Y(Nu(`tkr:${o.value}`)),i=P=>{r.value=P;const B=`tkr:${o.value}`;!P||!Object.keys(P).length?localStorage.removeItem(B):localStorage.setItem(B,JSON.stringify(P))},s=P=>{if(!r.value){i(P);return}const B={...r.value};Object.entries(P).forEach(([S,z])=>{z===void 0?delete B[S]:B[S]=z}),i(B)},a=Y(((V=r.value)==null?void 0:V.style)??e.defaultStyle??Ot.longStrip),l=Y(((T=r.value)==null?void 0:T.direction)??e.defaultDirection??at.vertical),c=Y((D=r.value)==null?void 0:D.gap),u=Y(((g=r.value)==null?void 0:g.speed)??1),h=Y((($=r.value)==null?void 0:$.zoom)??1),p=ie({get(){return n.value?Ot.longStrip:a.value},set:P=>{a.value=P,s({style:P===Ot.longStrip?void 0:P}),P!==Ot.longStrip&&l.value===at.vertical&&(v.value=at.rtl)}}),v=ie({get:()=>n.value?at.vertical:l.value,set:P=>{l.value=P,s({direction:P===at.vertical?void 0:P})}}),w=ie({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(P){c.value=P,s({gap:P})}}),C=ie({get:()=>u.value,set(P){u.value=P,s({speed:P===1?void 0:P})}}),L=ie({get:()=>h.value,set(P){h.value=P,s({zoom:P===1?void 0:P})}});return{direction:v,style:p,gap:w,speed:C,zoom:L,isLongStrip:ie(()=>p.value===Ot.longStrip),isDouble:ie(()=>p.value===Ot.double),isRTL:ie(()=>v.value===at.rtl),isVertical:ie(()=>v.value===at.vertical)}}function Nu(e){const t=localStorage.getItem(e),n=Ou(t),o={};return n?(n.style!==void 0&&Object.values(Ot).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(at).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Bu&&n.gap<=Du&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=wn&&n.speed<=xn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=wn&&n.zoom<=xn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const cs=Me({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=Y(!1),r=ie(()=>n.name??location.hostname);ro({onKeyUp:a=>{a.key==="s"&&!a.metaKey&&!a.ctrlKey&&(o.value=!o.value)}});function i(a){t("update:zoom",Math.round(a)/100)}function s(){o.value=!1,t("help")}return(a,l)=>{const c=as,u=oo,h=ls,p=ss,v=is,w=rs,C=os;return A(),X($e,null,[Z(u,{title:"Reader settings (S)",disabled:a.disabled,onClick:l[0]||(l[0]=()=>o.value=!0)},{default:le(()=>[Z(c)]),_:1},8,["disabled"]),Z(C,{modelValue:o.value,"onUpdate:modelValue":l[5]||(l[5]=L=>o.value=L),name:r.value},{actions:le(()=>[Z(u,{transparent:"",onClick:s},{default:le(()=>[Z(h)]),_:1})]),default:le(()=>[Z(v,{label:"Style"},{default:le(()=>[Z(p,{"model-value":a.readerStyle,items:a.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":l[1]||(l[1]=L=>t("update:reader-style",L))},null,8,["model-value","items"])]),_:1}),Z(v,{label:"Direction"},{default:le(()=>[Z(p,{"model-value":a.direction,items:a.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":l[2]||(l[2]=L=>t("update:direction",L))},null,8,["model-value","items"])]),_:1}),Z(v,{label:"Gap"},{default:le(()=>[Z(p,{"model-value":a.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":l[3]||(l[3]=L=>t("update:gap",L))},null,8,["model-value"])]),_:1}),Z(v,{label:"Speed"},{default:le(()=>[Z(w,{"model-value":a.speed,min:J(Lu),max:J(zu),step:J(Au),suffix:"x","onUpdate:modelValue":l[4]||(l[4]=L=>t("update:speed",L))},{suffix:le(()=>[Tt(Je(a.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(v,{label:"Zoom"},{default:le(()=>[Z(w,{"model-value":Math.ceil(a.zoom*100),min:J(wn)*100,max:J(xn)*100,step:J(ju)*100,"onUpdate:modelValue":i},{suffix:le(()=>[Tt(Je(Math.ceil(a.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Vu={},Hu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Wu=[K("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function Uu(e,t){return A(),X("svg",Hu,Wu)}const us=we(Vu,[["render",Uu]]),Ku=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),Yu={},Xu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},qu=[K("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Zu(e,t){return A(),X("svg",Xu,qu)}const fs=we(Yu,[["render",Zu]]),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Ju={},Gu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ef=[K("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),K("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),K("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function tf(e,t){return A(),X("svg",Gu,ef)}const ds=we(Ju,[["render",tf]]),nf=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),of={},rf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sf=[K("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),K("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),K("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function lf(e,t){return A(),X("svg",rf,sf)}const ps=we(of,[["render",lf]]),af=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),cf={},uf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ff=[K("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function df(e,t){return A(),X("svg",uf,ff)}const hs=we(cf,[["render",df]]),pf=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),hf=["aria-hidden"],gf=["onClick"],mf=["onClick"],vf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},bf={class:"whitespace-nowrap"},or=Me({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y(!1),i=Y(null),s=Y(!1),a=Y(!1),l=Y(!1);ro({onKeyDown:v});const c=nr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(h(),vt(()=>setTimeout(()=>{var g,$;($=(g=i.value)==null?void 0:g.children[n.modelValue])==null||$.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),C(o.value)):setTimeout(L,250)}function h(){const g=o.value;if(g){const $=g.getBoundingClientRect(),P=$.x+$.width/2;s.value=$.y>window.innerHeight/2,a.value=P<window.innerWidth/3,l.value=P>window.innerWidth/3*2}}function p(g){g!=n.modelValue&&t("update:modelValue",g),u()}function v(g){r.value&&g.key==="Escape"&&(u(),g.preventDefault())}let w=[];function C(g){const $=window.getComputedStyle(g).zIndex,P=g.style.zIndex;(!$||!(+$>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",w.push({el:g,zIndex:P})),g.parentElement&&C(g.parentElement))}function L(){w.forEach(({el:g,zIndex:$})=>{g.style.zIndex=$??""}),w=[]}let V=!1;function T(){V||(V=!0,c(!0,{desktopOnly:!0}))}function D(){V&&(V=!1,c(!1,{desktopOnly:!0}))}return(g,$)=>{const P=hs;return A(),X("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),X("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Ae("",!0),g.items.length?(A(),Ce(on,{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(()=>[r.value?(A(),X("ul",{key:0,ref_key:"list",ref:i,"aria-hidden":!r.value,class:ze(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":s.value,"origin-top top-full translate-y-1.5":!s.value,"left-1/2 -ml-20 text-center":!a.value&&!l.value,"right-0 text-right":l.value}]),onWheelPassive:$[0]||($[0]=ot(()=>{},["stop"]))},[(A(!0),X($e,null,pn(g.items,(B,S)=>bt((A(),X("li",{key:S,tabindex:"-1",class:ze(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":S===g.modelValue}]),onClick:()=>p(S)},[K("div",{class:ze(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":S>0}])},[Le(g.$slots,"item",{item:B},()=>[Tt(Je(B),1)])],2)],10,gf)),[[J(rn),30]])),128))],42,hf)):Ae("",!0)]),_:3})):Ae("",!0),bt((A(),X("button",to({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":g.disabled}]},g.title?{title:g.title}:{},{onClick:ot(u,["stop"]),onMouseenter:T,onMouseleave:D}),[K("div",vf,[K("span",bf,Je(g.label),1),g.items.length?(A(),X("span",{key:0,class:ze(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[Z(P)],2)):Ae("",!0)])],16,mf)),[[J(rn),30]])],512)}}}),_f=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),gs=Me({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ie(()=>n.pages.map(l=>l.map(({index:c})=>`${c+1}`).join("-"))),r=ie(()=>{const l=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:h})=>h===l));return c===-1?n.pages.length-1:c}),i=ie(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function s(l){const c=n.pages[l][0].index;a(c)}function a(l){t("update:modelValue",l)}return(l,c)=>{const u=or;return A(),Ce(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:l.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),yf=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),wf={},xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},kf=[K("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Cf(e,t){return A(),X("svg",xf,kf)}const ms=we(wf,[["render",Cf]]),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),If={},Tf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},$f=[K("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Ef(e,t){return A(),X("svg",Tf,$f)}const vs=we(If,[["render",Ef]]),Pf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),Of={},Mf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Lf=[K("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function zf(e,t){return A(),X("svg",Mf,Lf)}const bs=we(Of,[["render",zf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),jf={},Bf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Df=[K("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Rf(e,t){return A(),X("svg",Bf,Df)}const _s=we(jf,[["render",Rf]]),Nf=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"}));var ys;const rr=typeof window<"u",Ff=e=>typeof e=="string",Mt=()=>{};rr&&((ys=window==null?void 0:window.navigator)!=null&&ys.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function io(e){return typeof e=="function"?e():J(e)}function ws(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function Vf(e,t={}){let n,o,r=Mt;const i=a=>{clearTimeout(a),r(),r=Mt};return a=>{const l=io(e),c=io(t.maxWait);return n&&i(n),l<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(a())):new Promise((u,h)=>{r=t.rejectOnCancel?h:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(a())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(a())},l)})}}function Hf(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,a=Mt,l;const c=()=>{i&&(clearTimeout(i),i=void 0,a(),a=Mt)};return h=>{const p=io(e),v=Date.now()-r,w=()=>l=h();if(c(),p<=0)return r=Date.now(),w();if(v>p&&(n||!s))r=Date.now(),w();else if(t)return new Promise((C,L)=>{a=o?L:C,i=setTimeout(()=>{r=Date.now(),s=!0,C(w()),c()},p-v)});return!n&&!i&&(i=setTimeout(()=>s=!0,p)),s=!1,l}}function Wf(e){return e}function ir(e){return _r()?(ll(e),!0):!1}function Ye(e,t=200,n={}){return ws(Vf(t,n),e)}function xs(e,t=200,n=!1,o=!0,r=!1){return ws(Hf(t,n,o,r),e)}function ks(e,t=!0){$i()?tt(e):t?e():vt(e)}function Kt(e){var t;const n=io(e);return(t=n==null?void 0:n.$el)!=null?t:n}const kn=rr?window:void 0,Uf=rr?window.document:void 0;function Lt(...e){let t,n,o,r;if(Ff(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=kn):[t,n,o,r]=e,!t)return Mt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},a=(u,h,p)=>(u.addEventListener(h,p,r),()=>u.removeEventListener(h,p,r)),l=ve(()=>Kt(t),u=>{s(),u&&i.push(...n.flatMap(h=>o.map(p=>a(u,h,p))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return ir(c),c}function Cs(e,t=!1){const n=Y(),o=()=>n.value=!!e();return o(),ks(o,t),n}const Ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Is="__vueuse_ssr_handlers__";Ss[Is]=Ss[Is]||{};function Ts({document:e=Uf}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return Lt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $s=Object.getOwnPropertySymbols,Kf=Object.prototype.hasOwnProperty,Yf=Object.prototype.propertyIsEnumerable,Xf=(e,t)=>{var n={};for(var o in e)Kf.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$s)for(var o of $s(e))t.indexOf(o)<0&&Yf.call(e,o)&&(n[o]=e[o]);return n};function qf(e,t,n={}){const o=n,{window:r=kn}=o,i=Xf(o,["window"]);let s;const a=Cs(()=>r&&"ResizeObserver"in r),l=()=>{s&&(s.disconnect(),s=void 0)},c=ve(()=>Kt(e),h=>{l(),a.value&&r&&h&&(s=new ResizeObserver(t),s.observe(h,i))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return ir(u),{isSupported:a,stop:u}}function sr(e,t={width:0,height:0},n={}){const{window:o=kn,box:r="content-box"}=n,i=ie(()=>{var l,c;return(c=(l=Kt(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),s=Y(t.width),a=Y(t.height);return qf(e,([l])=>{const c=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&i.value){const u=Kt(e);if(u){const h=o.getComputedStyle(u);s.value=parseFloat(h.width),a.value=parseFloat(h.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((h,{inlineSize:p})=>h+p,0),a.value=u.reduce((h,{blockSize:p})=>h+p,0)}else s.value=l.contentRect.width,a.value=l.contentRect.height},n),ve(()=>Kt(e),l=>{s.value=l?t.width:0,a.value=l?t.height:0}),{width:s,height:a}}function lr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=kn}=n,a=Cs(()=>s&&"IntersectionObserver"in s);let l=Mt;const c=a.value?ve(()=>({el:Kt(e),root:Kt(o)}),({el:h,root:p})=>{if(l(),!h)return;const v=new IntersectionObserver(t,{root:p,rootMargin:r,threshold:i});v.observe(h),l=()=>{v.disconnect(),l=Mt}},{immediate:!0,flush:"post"}):Mt,u=()=>{l(),c()};return ir(u),{isSupported:a,stop:u}}var Es;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Es||(Es={}));var Zf=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Qf=Object.prototype.hasOwnProperty,Jf=Object.prototype.propertyIsEnumerable,Os=(e,t,n)=>t in e?Zf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gf=(e,t)=>{for(var n in t||(t={}))Qf.call(t,n)&&Os(e,n,t[n]);if(Ps)for(var n of Ps(t))Jf.call(t,n)&&Os(e,n,t[n]);return e};Gf({linear:Wf},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function ed(e={}){const{window:t=kn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Y(n),a=Y(o),l=()=>{t&&(i?(s.value=t.innerWidth,a.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),ks(l),Lt("resize",l,{passive:!0}),r&&Lt("orientationchange",l,{passive:!0}),{width:s,height:a}}const Ms=we(Me({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Y(null),o=Y(0),r=Y([]),i=ie(()=>r.value[o.value]),s=xs(a,500);tt(()=>{const u=sr(n),h=Ye(()=>l({width:u.width.value,height:u.height.value}),50);h(),ve(u.width,h),ve(u.height,h)});function a(){o.value>=r.value.length-1?t("hide"):o.value++}function l(u){const h=c();r.value=h.map(({rect:p,text:v})=>{const w=p.top<u.height-p.bottom,C=p.left<u.width-p.right;return{text:v,style:{left:`${p.left}px`,top:`${p.top}px`,width:`${p.width}px`,height:`${p.height}px`},textStyle:{left:C?`${p.left-12}px`:void 0,right:C?void 0:`${u.width-p.left}px`,top:w?`${p.bottom+12}px`:`${p.top+20}px`,textAlign:w?void 0:"right",transform:w?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var p;const u=(p=n.value)==null?void 0:p.parentElement;if(!u)return[];const h=[];return u.querySelectorAll("[data-tour]").forEach(v=>{var L;const w=(L=v.getAttribute("data-tour"))==null?void 0:L.trim();if(!(w!=null&&w.length))return;const C=v.getBoundingClientRect();h.push({rect:C,text:w})}),h}return(u,h)=>{var p,v;return A(),X($e,null,[K("div",{class:ze(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),K("div",{ref_key:"root",ref:n,class:"tour",onClick:h[0]||(h[0]=ot((...w)=>J(s)&&J(s)(...w),["stop"]))},[i.value?(A(),X("div",{key:o.value,class:"tour__target",style:Re(i.value.style)},null,4)):Ae("",!0),(A(),X("div",{key:o.value,class:"tour__text",style:Re((p=i.value)==null?void 0:p.textStyle)},Je(((v=i.value)==null?void 0:v.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
4
- `]]]),td=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"})),nd=K("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),Ls=Me({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y([]);tt(async()=>{const l=sr(o),c=Ye(()=>{i({width:l.width.value,height:l.height.value})},50);c(),ve(l.width,c),ve(l.height,c)});function i(l){var h;const c=(h=o.value)==null?void 0:h.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=s(u,l))}function s(l,c){const u=[],h=[];let p=0,v=0;const w=50,C=25;l.forEach(g=>{var z;const $=(z=g.getAttribute("title"))==null?void 0:z.trim(),P=g.getBoundingClientRect();if(!$||!P.height||!P.width)return;const B=Math.ceil((P.top-10)/w),S=Math.ceil((P.left-10)/w);h.push({isTour:!1,title:$,rect:P,fromX:S,toX:Math.max(S+1,Math.ceil((P.right+10)/w)),fromY:B,toY:Math.max(B+1,Math.ceil((P.bottom+10)/w))})}),h.forEach(g=>{for(let $=g.fromY;$<g.toY;$++){u[$]??(u[$]=[]);for(let P=g.fromX;P<g.toX;P++)u[$][P]=g;g.toY>p+1&&(p=g.toY-1),g.toX>v+1&&(v=g.toX-1)}});let L=v/2;h.forEach(g=>{g.isAlignRight=g.fromX>L});const V=(g,$)=>{u[$]??(u[$]=[]);const P=$>=g.toY;if(g.isTour)for(let B=g.fromX;B<g.toX;B++)delete u[g.fromY][B],g.fromY=$,g.toY=$+(P?1:-1),u[$][B]=g;else{const B=g.isAlignRight?g.fromX-3:g.fromX,S=B+3;g.helpItem={fromX:B,toX:S,fromY:$,toY:$+1,isTour:!0,isAlignRight:g.isAlignRight};for(let z=B;z<S;z++)u[$][z]=g.helpItem}},T=(g,$)=>{if($>p||$<0)return!1;const P=$>=g.toY,B=u[$];if(!B)return V(g,$),!0;const S=B[g.fromX];if(S&&!S.isTour)return!1;if(S&&S.isTour)return T(S,P?$+1:$-1)?(V(g,$),!0):!1;if(!S){const z=g.isAlignRight?-1:1;return B[g.fromX+z]||B[g.fromX+z*2]?T(g,P?$+1:$-1):(V(g,$),!0)}return!1};h.forEach(g=>{if(!T(g,g.toY)){if(g.isAlignRight){const $=u[g.fromY]??[];if(!$.slice(g.fromX-3,g.fromX).filter(Boolean).length){const B=g.fromX-3,S=g.fromX;g.helpItem={isTour:!0,isAlignRight:!0,fromX:B,toX:S,fromY:g.fromY,toY:g.toY};for(let z=g.fromX-3;z<g.fromX;z++)$[z]=g.helpItem;return}}T(g,g.fromY-1)}});const D=[];return h.forEach(g=>{const{title:$,helpItem:P,rect:B,isAlignRight:S,fromX:z,fromY:ee,toY:ce}=g;if(!$||!P||!B)return;const y=P.fromY>=ce,b=P.toY<=ee;D.push({title:a($),style:{top:y?`${B.bottom+(P.fromY-ce)*w+C}px`:b?void 0:`${B.top+8}px`,bottom:b?`${c.height-B.top+(P.toY-ee)*w+C}px`:void 0,left:S?void 0:`${B.left}px`,right:S?y?`${c.width-B.right}px`:`${c.width-B.right+B.width+C}px`:void 0},arrowStyle:{width:b||y?"2px":`${Math.abs(P.toX-z)*w+C-5}px`,height:b||y?`${(y?P.fromY-ce:ee-P.toY)*w+C}px`:"2px",top:y?`${B.bottom}px`:b?void 0:`${B.top+20}px`,bottom:b?`${c.height-B.top}px`:void 0,left:S?void 0:`${B.left+B.width/2}px`,right:S?y?`${c.width-B.right+B.width/2}px`:`${c.width-B.right+B.width}px`:void 0}})}),D}function a(l){return n.touchDevice?l.split("(")[0].trim():l}return(l,c)=>(A(),X($e,null,[nd,K("div",{ref_key:"root",ref:o,class:"fixed-screen z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=ot(u=>t("hide"),["stop"]))},[(A(!0),X($e,null,pn(r.value,u=>(A(),X($e,{key:u.title},[K("div",{class:"absolute",style:Re(u.style)},Je(u.title),5),K("div",{class:"absolute bg-stone-300 rounded-lg",style:Re(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),od=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),zs=we(Me({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Y(0);return ve(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=er,s=tr;return n.value?(A(),X("div",{key:n.value,class:"animate-pause-fade fixed left-1/2 top-1/2 -mx-12 -my-12 pointer-events-none w-24 h-24 p-4 bg-black bg-opacity-40 rounded-full duration-500"},[o.playing?(A(),Ce(i,{key:0})):(A(),Ce(s,{key:1}))])):Ae("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
5
- `]]]),rd=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),id={},sd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ld=[K("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function ad(e,t){return A(),X("svg",sd,ld)}const As=we(id,[["render",ad]]),cd=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),js=Me({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Y(typeof n!="string"||+n!==t.direction),r=Ye(()=>o.value=!1,1250);ve(()=>t.direction,()=>{i(),o.value=!0,r()}),tt(()=>{i(),r();let s;const a=Ts();ve(a,l=>{l!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,a)=>{const l=As;return A(),Ce(on,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(A(),X("div",{key:0,class:ze(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===J(at).vertical,"rotate-180":s.direction===J(at).rtl}])},[Z(l)],2)):Ae("",!0)]),_:1})}}}),ud=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),so=[];function fd(e){so.push(e),ft(()=>{const t=so.indexOf(e);t!==-1&&so.splice(t,1)})}function dd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;so.forEach(s=>s(r,i))}const pd=["onClick"],Bs=Me({__name:"ZoomWrapper",props:{modelValue:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y(Math.min(xn,Math.max(wn,n.modelValue))),i=Y(!1),s=Y(!1),a=Y(!1);ve(()=>n.modelValue,b=>y(b)),tt(()=>{n.touchDevice?(Lt(window,"touchstart",C),fd(S)):(Lt(o,"mousedown",h),Lt(window,"wheel",D))}),ro({onKeyDown:b=>{var U;if(!n.busy&&((U=o.value)==null||U.focus(),!(b.key==="Meta"||b.key==="Control")&&(b.ctrlKey||b.metaKey)))switch(b.key){case"0":y(1);break;case"-":y(r.value-.2),b.preventDefault();break;case"=":case"+":y(r.value+.2),b.preventDefault();break}}});function l(b){s.value!==b&&(s.value=b,b?n.playController.pause():(t("dragEnd"),n.playController.resume()))}let c={x:0,y:0},u={x:0,y:0};function h(b){b.button===0&&(c={x:b.clientX,y:b.clientY},u={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",p),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",p),setTimeout(()=>l(!1))},{once:!0}),b.preventDefault(),b.stopPropagation())}function p(b){l(!0);const U=b.clientX-c.x,te=b.clientY-c.y,H=o.value;H.scrollLeft=u.x-U,H.scrollTop=u.y-te}let v=!1,w={distance:0,zoom:r.value,x:0,y:0};function C(b){n.busy||(v=b.touches.length===2,v&&(l(!0),b.stopPropagation(),b.preventDefault(),w={distance:g(b),zoom:r.value,x:(b.touches[0].clientX+b.touches[1].clientX)/2,y:(b.touches[0].clientY+b.touches[1].clientY)/2}),(v||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",V),window.addEventListener("touchend",L,{once:!0})))}function L(){if(window.removeEventListener("touchmove",V),v){l(!1),v=!1;return}if(!s.value)return;const b=Ye(()=>{l(!1),o.value.removeEventListener("scroll",te)},100),U=setTimeout(b,100);o.value.addEventListener("scroll",te);function te(){clearTimeout(U),b()}}function V(b){if(l(!0),v){b.stopPropagation(),b.preventDefault();const te=g(b)/w.distance;y(Math.ceil(te*w.zoom*100)/100,w)}}const T=Ye(()=>i.value=!1,100);function D(b){if(!n.busy){if(b.ctrlKey||b.metaKey){b.stopPropagation(),b.preventDefault();const U=Math.ceil((r.value+b.deltaY*-.01)*100)/100;y(U,{x:b.clientX,y:b.clientY});return}n.horizontal&&(i.value||(i.value=!0),T(),b.deltaY&&(o.value&&(o.value.scrollLeft+=b.deltaY*(n.rtl?-1:1)),b.stopPropagation(),b.preventDefault()))}}function g(b){return Math.hypot(b.touches[0].clientX-b.touches[1].clientX,b.touches[0].clientY-b.touches[1].clientY)}let $=0,P;function B(b){if(!s.value){if(!n.touchDevice){t("click",b);return}$++,P&&clearTimeout(P),$===2&&S(b.clientX,b.clientY),P=setTimeout(()=>{!s.value&&$===1&&t("click",b),P=void 0,$=0},300)}}function S(b,U){if(!$)return;$=0;const te=r.value===1?2:1;y(te,{x:b,y:U})}let z;const ee=Ye(()=>{a.value=!1,z=void 0},150);function ce(){if(!a.value){const b=o.value;if(!b)return;const U=b.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;U&&(z={el:U,rect:U.getBoundingClientRect()},a.value=!0)}if(z)return ee(),z}async function y(b,U){const te=o.value,H=Math.min(xn,Math.max(wn,b));if(!te||r.value===H)return;const ae=ce();if(!ae)return;const oe=(U==null?void 0:U.x)??te.clientWidth/2,_e=(U==null?void 0:U.y)??te.clientHeight/2;r.value=H,t("update:modelValue",H),await vt();const{el:Se,rect:N}=ae,F=Se.offsetWidth/N.width,Q=Se.offsetHeight/N.height;te.scrollLeft=Se.offsetLeft-N.left*F+oe*(F-1),te.scrollTop=Se.offsetTop-N.top*Q+_e*(Q-1)}return(b,U)=>(A(),X("div",{ref_key:"root",ref:o,tabindex:"0",class:ze(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!b.longStrip&&(s.value||i.value||a.value),"cursor-grabbing":s.value,"overflow-hidden":a.value}]),style:Re({"font-size":`${r.value}px`}),onClick:ot(B,["stop"])},[Le(b.$slots,"default")],14,pd))}}),hd=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ds=Me({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Y(null),o=Y(!1);return tt(async()=>{await vt();let r=!1;lr(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(A(),X("div",{ref_key:"root",ref:n},[Le(r.$slots,"default",{visible:o.value})],512))}}),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"}));function md({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=Y(n),i=Y(o),s=Ye(a,50);ve(e,l=>{n>l&&(n=l)});function a(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(l){o<l&&(o=l),s()},onScroll(){t.value?a():s()}}}const vd={key:0,class:"page--loading"},bd=["src"],_d=["src"],yd=["data-index"],Rs=we(Me({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=Y(null),r=ie(()=>{var v;return(v=o.value)==null?void 0:v.$el}),i=Y(null),s=sr(r),a=ie(()=>{const{width:v,height:w}=s,C=n.isLongStrip?n.isVertical?v.value:w.value:Math.min(v.value,w.value);return Math.min(4,Math.max(1,Math.ceil(C/400-1)))*n.gap}),l=md({pageIndex:ie(()=>n.pageIndex),isLongStrip:ie(()=>n.isLongStrip)}),c=ie(()=>{const{width:{value:v},height:{value:w}}=s;return n.pages.map(C=>{var S;const L=C.some(z=>{var ee;return(ee=z.img)==null?void 0:ee.isLoading}),V=C.map(z=>z.index),T={isLoading:L,indexes:V};if(L||V[V.length-1]<l.min.value-1||V[0]>l.max.value+2)return T;const D=C.map(({img:z})=>z).filter(Boolean);if(!D.length||(T.srcs=D.map(({src:z})=>z),D.every(z=>z.hasError)))return T;const $=(S=D.find(z=>!z.hasError))==null?void 0:S.size,P=D.reduce((z,ee)=>{var ce;return z+(((ce=ee.size)==null?void 0:ce.width)??$.width)},0),B=D.reduce((z,ee)=>{var ce;return z+(((ce=ee.size)==null?void 0:ce.height)??$.height)},0)/D.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&v/P<w/B?(T.width=Math.min(v,P),T.height=B*T.width/P):T.height=Math.min(w,B),T})}),u=ie(()=>{const v=n.isVertical?"width":"height";return c.value.map(w=>w[v]).filter(Boolean).sort((w,C)=>C-w)[0]});function h({indexes:v}){const w=v[v.length-1];w!==void 0&&l.onPageVisible(w)}function p(v){if(!n.isLongStrip){const w=n.isVertical?s.height.value:s.width.value,L=(n.isVertical?v.clientY:n.isRTL?w-v.clientX:v.clientX)/w;if(L<=.2){t("prev");return}else if(L>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(v,w)=>{const C=Go,L=Ds,V=Bs;return A(),Ce(V,{ref_key:"root",ref:o,"model-value":v.zoom,"page-index":v.pageIndex,class:ze(["reader-body",{"reader-body--long-strip":v.isLongStrip,"reader-body--pages":!v.isLongStrip,"reader-body--vertical":v.isVertical,"reader-body--rtl":v.isRTL,"reader-body--idle":v.idle}]),"play-controller":v.playController,horizontal:!v.isVertical,rtl:v.isRTL,"touch-device":v.touchDevice,busy:v.busy,"long-strip":v.isLongStrip,style:Re({"--gap":`${a.value}em`,"--space-top":(v.spaceTop||0)+"px","--screen-width-em":J(s).width.value+"em","--screen-height-em":J(s).height.value+"em",...v.isLongStrip?{"--max-size-em":u.value+"em"}:{}}),"onUpdate:modelValue":w[0]||(w[0]=T=>t("update:zoom",T)),onDragEnd:w[1]||(w[1]=()=>t("dragEnd")),onClick:p,onScroll:J(l).onScroll},{default:le(()=>[(A(!0),X($e,null,pn(c.value,T=>(A(),Ce(L,to({key:v.direction+"_"+T.indexes[0],"data-index":T.indexes[0]},T.indexes.length>1?{"data-index2":T.indexes[1]}:{},{onVisible:()=>h(T)}),{default:le(({visible:D})=>{var g;return[!((g=T.srcs)!=null&&g.length)||T.isLoading?(A(),X("div",vd,[bt(Z(C,null,null,512),[[Zi,D]])])):T.srcs.length==1?(A(),X("img",{key:1,src:T.srcs[0],style:Re({height:T.height!==void 0?T.height+"em":""})},null,12,bd)):(A(),X("div",{key:2,class:ze(["page--double",{"flex-row-reverse":v.isRTL}]),style:Re({width:T.width!==void 0?T.width+"em":"",height:T.height!==void 0?T.height+"em":""})},[(A(!0),X($e,null,pn(T.srcs,$=>(A(),X("div",{key:$},[K("img",{src:$},null,8,_d)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),K("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":v.totalImgs},[Le(v.$slots,"end")],8,yd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:100vh}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:100vw}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
6
- `]]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),xd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},kd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Cd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Ns=we(Me({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=Y(null),o=Y(null),r=Y(!1),i=Y(!1),s=Y(3);return tt(()=>{let a;lr(o,l=>{i.value=l.some(c=>c.isIntersecting),s.value=5,a&&(clearInterval(a),a=void 0),i.value&&(a=setInterval(()=>{s.value-=1,s.value<=0&&(clearInterval(a),a=void 0,t("next"))},1e3))}),lr(n,l=>{r.value=l.some(c=>c.isIntersecting)}),ft(()=>a&&clearInterval(a))}),(a,l)=>(A(),X("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[bt(K("div",xd,[a.hasNext?(A(),X("div",kd,[i.value?(A(),X("div",Cd)):Ae("",!0),bt((A(),X("button",{ref_key:"nextButton",ref:o,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[0]||(l[0]=ot(()=>t("next"),["stop"]))},[Tt(" Next in "+Je(s.value),1)])),[[J(rn)]])])):Ae("",!0),bt((A(),X("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:l[1]||(l[1]=ot(()=>t("hide"),["stop"]))},[Tt(" Hide ")])),[[J(rn)]])],512),[[Zi,r.value||!a.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
7
- `]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));async function Cn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await Cn(e-1,t,n);r(i)},t)})}function lo(e=0){return new Promise(t=>setTimeout(t,e))}const Id=3;function Td(e){var ae,oe,_e,Se;const t=((oe=(ae=e.raw.value)==null?void 0:ae.imgs)==null?void 0:oe.filter(Boolean))??[];let n=!!t.length;const o=Y(t),r=an({}),i=[],s=new WeakMap,a=Y((_e=e.raw.value)==null?void 0:_e.isWebtoon),l=Y((Se=e.raw.value)==null?void 0:Se.isWebtoon),c=Date.now(),u=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let h=!0,p=!1,v=!1,w=0,C=0,L,V=[],T=e.isAutoShow!==!1?e.page.value:n?Od(t):void 0;const D=Ye(b,100);let g=!1;const $=Ye(z,50),P=()=>{g?$():(g=!0,z())};n?z():ce(),ve(()=>{var N;return(N=e.raw.value)==null?void 0:N.imgs},N=>{N!=null&&N.length&&N!==o.value&&(n=!0,S(N))}),ft(()=>{h=!1,i.forEach(N=>URL.revokeObjectURL(N))}),Yn(()=>{if(!p)return;const N=V.length?void 0:document.querySelector(`img[src^="${t[Math.floor(e.page.value)]}"]`)??void 0;Sn({contentEl:L,imgEl:N,imgEls:V,page:e.page.value})});function B(){var xe,pe;if(p||a.value===void 0||T===void 0)return;const N=Math.max(0,Math.min(T,o.value.length)),F=o.value.length-1,Q=Math.min(Math.floor(N),F);if(Q>=1){const he=o.value[Q];if(!he){e.isAutoShow&&Sn({contentEl:L,imgEls:V,page:Q});return}const ge=o.value[Q-1];if(ge&&!((xe=r[ge])!=null&&xe.size)||!((pe=r[he])!=null&&pe.size))return}if(p)return;p=!0,e.onReady(N);let ne=!0;ve(()=>Math.floor(e.page.value),async(he,ge)=>{Sn({imgEls:V,page:he,smooth:u,skipIfVisible:ne}),ne=!1,ge??(ge=-1),he!==ge&&(w=Math.max(0,w-Math.abs(he-ge))),P()},{immediate:!0})}function S(N,F){(N.length!==o.value.length||N.some((Q,ne)=>o.value[ne]!==Q))&&(F&&(V=F,e.isAutoShow===!1&&T===void 0&&(T=Vs(V))),o.value=N,P())}function z(){const N=Math.max(0,Math.floor(e.page.value-1)),F=Q=>{w>Id||ee(Q)};for(let Q=N;Q<o.value.length;Q++)F(Q);for(let Q=N-1;Q>=0;Q--)F(Q)}async function ee(N){const F=o.value[N];if(!(!h||!F||r[F])){if(!r[F]){r[F]={src:F,isLoading:!0,hasError:!1},w++;const Q=await Pd(F);if(r[F]={src:F,size:Q,isLoading:!1,hasError:!Q},w=Math.max(0,w-1),Q&&!a.value&&N>Math.min(1,o.value.length-2)&&N<Math.max(o.value.length-2,2)){const ne=Q.height/Q.width,xe=ne>2||ne<.5,pe=ne>1.6||ne<.6;a.value!==xe&&(a.value=xe),l.value!==pe&&(l.value=pe)}B()}$()}}function ce(){let N=!1;const F=new MutationObserver(()=>{L&&D(L)});Yn(async()=>{F.disconnect()}),y(Q=>{L!==Q&&(L=Q,F.disconnect(),F.observe(L,{childList:!0,subtree:!0}),N?D(L):(N=!0,b(L)))})}async function y(N){var he;const F=(he=e.spec)==null?void 0:he.content;if(!F){N(document.body);return}const Q=await $d(e.spec);let ne=F?await Cn(Q?100:1,10,()=>document.querySelector(F)):void 0;if(!ne)return;N(ne);let xe=0;const pe=async()=>{if(h&&!(ne!=null&&ne.isConnected)&&!n){if(xe=0,ne=await Cn(50,20,()=>{const ge=document.querySelector(F);return ge!=null&&ge.isConnected&&ge!==ne?ge:void 0}),!ne)return;N(ne)}!h||n||++xe>=10||setTimeout(pe,200)};setTimeout(pe,200)}async function b(N){var xe;if(!h||!N.isConnected||n)return;const F=Date.now();C=F;const Q=(xe=e.spec)==null?void 0:xe.imgDivs,ne=Q?await U({contentEl:N,imgDivsSel:Q,ts:F}):await te({contentEl:N,ts:F});!ne||C!==F||!N.isConnected||!h||n||(!e.raw.value&&!ne.srcs.some(Boolean)&&e.onError("no_img"),S(ne.srcs,ne.imgEls))}async function U({contentEl:N,imgDivsSel:F,ts:Q}){const ne=Array.from(N.querySelectorAll(F));if(!v&&e.isAutoShow!==!1&&e.page.value&&(v=!0,Sn({contentEl:N,imgEls:ne,page:Math.floor(e.page.value),skipIfVisible:!0}),await lo(1),C!==Q))return;const xe=new Map;return{srcs:await Promise.all(ne.map(async(he,ge)=>{const ke=Array.from(he.querySelectorAll("img,canvas"));for(const Ee of ke){const ct=await H({ts:Q,el:Ee,index:ge,total:ne.length,elsPool:xe,onImgLoad:()=>D(N)});if(ct)return ct}})),imgEls:ne}}async function te({contentEl:N,ts:F}){const Q=Array.from(N.querySelectorAll("img,canvas")),ne=new Map,xe=await Promise.all(Q.map((ke,Ee)=>H({ts:F,el:ke,index:Ee,total:Q.length,elsPool:ne,onImgLoad:()=>D(N)})));if(C!==F)return;let pe=Q.filter((ke,Ee)=>xe[Ee]),he=xe.filter(Boolean);const ge={};return he.forEach((ke,Ee)=>{ke&&Ee!==he.lastIndexOf(ke)&&(ge[Ee]=!0)}),Object.keys(ge).length&&(pe=pe.filter((ke,Ee)=>!ge[Ee]),he=he.filter((ke,Ee)=>!ge[Ee])),!V.length&&pe.length<Q.length&&pe.length<=5&&setTimeout(()=>{Sn({imgEls:Q,page:Q.length,smooth:u})},50),{srcs:he,imgEls:pe}}async function H({ts:N,el:F,index:Q,total:ne,elsPool:xe,onImgLoad:pe}){const he=s.get(F);let ge,ke;if(F.tagName.toLowerCase()==="canvas"){if(he)return he.src;ge=await Fs(F)}else{if(F._tkLoadId_!==c&&(F._tkLoadId_=c,F.addEventListener("load",pe),ft(()=>{F._tkLoadId_===c&&delete F._tkLoadId_,F.removeEventListener("load",pe)})),ke=Md(F,xe),!ke)return;if(ke===(he==null?void 0:he.originalSrc))return he.src;if(ge=await Ed(F,ke),!h||C!==N)return;if(a.value===void 0&&Q>Math.min(1,ne-2)){const ct=+(F.getAttribute("width")??0),f=+(F.getAttribute("height")??0);if(ct&&f){const d=f/ct;a.value=d>2,l.value=d>1.6||d<.5}}}return ge&&(s.set(F,{src:ge,originalSrc:ke}),ge.startsWith("blob:")&&i.push(ge)),ge}return{asyncImgs:ie(()=>o.value.map(N=>N?r[N]:void 0)),isWebtoon:ie(()=>a.value??!1),maybeWebtoon:ie(()=>l.value??!1)}}async function $d(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Cn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),ft(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await lo(),!0}function Fs(e){return new Promise(t=>{if(e.isConnected&&(e.width<200||e.height<200))return t(void 0);const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/png",1)})}async function Ed(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await Fs(o)}function Pd(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:i}=n;i&&r&&(t({width:r,height:i}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function Od(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Vs(n)}function Vs(e){for(let t=0;t<e.length;t++){const n=e[t].getBoundingClientRect();if(n.bottom<=0)continue;const o=n.top;return t+(o>=0?0:-o/n.height)}return 0}function Md(e,t){if(!Hs(e,t))return;const n=e.getBoundingClientRect();if(n.width&&n.height&&(n.width<200||n.height<200))return;const o=e.getAttributeNames(),r=o.indexOf("src");r!==-1&&(o.splice(r,1),o.push("src"));for(const i of o){if(i!=="data-url"&&i!=="data-original"&&!i.includes("src"))continue;const s=e.getAttribute(i);if(s)return i==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:s.replace(/(\n|\t)/g," ").trim()}}function Hs(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&o.visibility!=="hidden"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=Hs(e.parentElement,t);return t.set(e,i),i}function Sn({contentEl:e,imgEls:t,page:n,smooth:o,skipIfVisible:r,imgEl:i}){var u;const s=n>=t.length,a=o?"smooth":"instant";if(s){(u=t[t.length-1])==null||u.scrollIntoView({block:"end",behavior:a});return}if(i??(i=t[Math.floor(n)]),!i)return;const l=i.getBoundingClientRect();if(r&&l.top<=0&&l.top+l.height>0)return;i.scrollIntoView({block:"start",behavior:a});const c=n%1;if(c){const h=c*l.height,p=ar(e??document.documentElement);setTimeout(()=>p==null?void 0:p.scrollBy({top:h}))}}function ar(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?ar(document.documentElement)??e:e:ar(e.parentElement??void 0)}function Ld(e,t){return ie(()=>t.value?Ws(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function Ws(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...Ws(e.slice(r.length),t+r.length)]}function zd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=Y(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return ie({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function Ad(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const cr=40;function jd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:a,interferePlayer:l,onChangedPage:c,onInitialized:u}){let h=!1,p=!1,v;const w=Ye(P,300),C=xs(()=>{P(),w()},300),L=Ye(D,50);async function V(){g(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function T(){var y;p=!0,u(),(y=a.value)==null||y.addEventListener("scroll",C),setTimeout(()=>{const{width:b,height:U}=ed();ve(b,()=>{r.value&&L()}),ve(U,()=>{r.value||L()}),ve(n,D),ve(t,D)},300)}async function D(){if(!p||h)return;h=!0,await vt();const y=e.value;if(B()===y){h=!1;return}g(y)}function g(y,{smooth:b,ensureLastImgVisibility:U=!1}={smooth:!1}){const te=a.value;if(!te)return;h=!0;const H=async()=>{await vt(),h=!1,p||T()},ae=Math.floor(y),oe=te.querySelector(`[data-index="${ae}"],[data-index2="${ae}"]`);if(!oe){H();return}l(async()=>{await $(te,!o.value&&b,async()=>{await ce(te,oe,{smooth:b,page:y,ensureLastImgVisibility:U})}),await H()})}async function $(y,b,U){b&&y.style.setProperty("scroll-snap-type","none"),await U(),b&&y.style.removeProperty("scroll-snap-type")}function P(){if(h)return;const y=B();y!==void 0&&y!==e.value&&c(y)}function B(){const y=S();return y?(+y.getAttribute("data-index")||0)+(o.value?z(y):0):void 0}function S(){var b;if(v??(v=a.value.getRootNode()),!v)return;const y=(b=v.elementsFromPoint)==null?void 0:b.call(v,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-cr:cr,r.value&&o.value?s.value||cr:window.innerHeight/2);if(y)for(let U=0;U<y.length;U++){const te=y[U];if(te.hasAttribute("data-index"))return te;if(te===a.value)break}}function z(y){const b=y.getBoundingClientRect();return r.value?Math.abs(b.top-s.value)/b.height:i.value?Math.max(0,b.right-a.value.clientWidth)/b.width:Math.abs(b.left)/b.width}let ee=!1;async function ce(y,b,U){if(ee)return;const te=b.getBoundingClientRect();if(!o.value){if(r.value){if(te.top<=0&&te.bottom>=y.clientHeight)return}else if(te.left<=0&&te.right>=y.clientWidth)return}ee=!0;const H=r.value?y.scrollTop:y.scrollLeft,ae=U.page,oe=o.value?ae%1:0,_e=await Cn(30,10,async()=>{await lo();let ne;if(!(b.offsetHeight<10))return o.value?r.value?ne=b.offsetTop+oe*b.offsetHeight-s.value:i.value?ne=b.offsetLeft-y.clientWidth+b.offsetWidth-oe*b.offsetWidth:ne=b.offsetLeft+oe*b.offsetWidth:r.value?ne=b.offsetTop+(te.top>0?0:te.height-y.clientHeight):ne=b.offsetLeft+(te.left>0?0:te.width-y.clientWidth),ae>.5&&Math.abs(ne)<100?void 0:ne})??0,Se=U.ensureLastImgVisibility?r.value?Math.min(_e,y.scrollHeight-y.clientHeight*2):i.value?Math.max(_e,-(y.scrollWidth-y.clientWidth*2)):Math.min(_e,y.scrollWidth-y.clientWidth*2):_e;if(!U.smooth){r.value?y.scrollTop=Se:y.scrollLeft=Se,ee=!1;return}const N=Se-H,F=30;let Q=0;return new Promise(ne=>{(function xe(){const pe=Bd(Q,H,N,F);r.value?y.scrollTop=pe:y.scrollLeft=pe,Q++,Q<=F?requestAnimationFrame(xe):(ne(),ee=!1)})()})}return{init:V,goToPage:g}}function Bd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Dd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const a=sessionStorage.getItem("tk:playing"),l=Y(typeof a=="string"?a==="true":e),c=ie({get:()=>l.value,set:S=>{l.value=S,sessionStorage.setItem("tk:playing",S?"true":"false")}}),u=Y(!1);let h,p;const v=Ye(P,100),w=Ye(()=>{u.value=!0},t?2e3:1e3),C=()=>setTimeout(()=>{u.value=!1,w()},30);C(),t||Lt(window,"mousemove",C);const L=Ts();tt(()=>{ve(L,S=>{c.value&&(S==="visible"?P():p==null||p())}),ve(s,()=>V()),ve(i,S=>{S||D()})});async function V(S){c.value&&(p==null||p()),S&&(await vt(),await S()),c.value&&v()}function T(){c.value?D():g()}function D(){c.value&&(c.value=!1,p==null||p(),C())}function g(){!c.value&&i.value&&(c.value=!0,P(),C())}function $(){p==null||p()}function P(){const S=n.value;if(!c.value||!S)return;const z=o.value?S.scrollHeight-S.clientHeight:S.scrollWidth-S.clientWidth,ee=B();if(z<=ee){D();return}p=()=>{h=Date.now(),p=void 0};const ce=Date.now();h=ce;const y=.05*s.value,b=o.value?"scrollTop":"scrollLeft";let U=Date.now(),te=0;const H=()=>{if(h!==ce)return;const ae=Date.now(),oe=ae-U;U=ae;const _e=y*oe+te;_e>=1?(te=_e%1,S[b]+=(_e-te)*(r.value?-1:1)):te=_e,setTimeout(H,1)};H()}function B(){const S=n.value;return o.value?S.scrollTop:r.value?-S.scrollLeft:S.scrollLeft}return{isPlaying:c,isIdle:u,toggle:T,play:g,pause:$,resume:P,stop:D,interfere:V,awake:C}}function Rd(e){var v,w,C,L,V;let t=-1,n=(v=e.prev)==null?void 0:v.slug,o=(w=e.next)==null?void 0:w.slug;const{vol:r,inferVol:i,chap:s,title:a,slug:l,basePath:c}=e,u=r??i,h=a.chapters??[],p=(h==null?void 0:h.length)>1?h:[];if(p.length){if(t=p.findIndex(T=>T.slug===e.slug),t===-1&&(t=p.findIndex(T=>(T.vol??T.inferVol)===u&&T.chap===s)),t===-1&&(t=p.findIndex(T=>l.startsWith(`${T.slug}-`)&&l.length-T.slug.length>3)),t!==-1)n??(n=(C=p[t+1])==null?void 0:C.slug),o??(o=(L=p[t-1])==null?void 0:L.slug);else if(!n&&!o){const T=p.findIndex(D=>{const g=D.vol??D.inferVol;return u===void 0||g===void 0||u===g?D.chap<s:g<u});T!==-1?(n=p[T].slug,o=(V=p[T-1])==null?void 0:V.slug):o=p[p.length-1].slug}}return{activeIndex:t,activeLabel:Us({vol:r,chap:s}),chapters:p.map(T=>({label:Us(T),path:ur(c,T.slug)})),prevPath:ur(c,n),nextPath:ur(c,o)}}function ur(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Us({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Nd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Fd=Me({...{inheritAttrs:!1},__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,i;const s=Y(!1),a=Y(!1),l=Jc({touchDevice:n.touchDevice}),c=zd(n.page,n.isAutoShow),u=ie(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:p,maybeWebtoon:v}=Td({raw:ie(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(m){Q(m),s.value=!0},onError:()=>{t("error"),k()}}),{direction:w,style:C,isRTL:L,isDouble:V,isVertical:T,isLongStrip:D,gap:g,speed:$,zoom:P}=Ru({titleName:ie(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:p,maybeWebtoon:v,defaultStyle:n.readerStyle,defaultDirection:n.direction}),B=Ld(h,V),S=ie(()=>c.value>=h.value.length),z=ie(()=>n.raw?Rd(n.raw):void 0),ee=ie(()=>{var m,x;return L.value?(m=z.value)==null?void 0:m.nextPath:(x=z.value)==null?void 0:x.prevPath}),ce=ie(()=>{var m,x;return L.value?(m=z.value)==null?void 0:m.prevPath:(x=z.value)==null?void 0:x.nextPath}),y=Y(null),b=Y(null),U=Y(!1),te=Y(!1),H=Dd({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ie(()=>{var m;return(m=y.value)==null?void 0:m.$el}),speed:$,isRTL:L,isVertical:T,isLongStrip:D}),ae=ie(()=>!n.touchDevice&&H.isIdle.value&&!l.value),oe=ie({get(){return P.value},set(m){H.interfere(()=>{P.value=m})}}),_e=jd({page:c,style:C,direction:w,isLongStrip:D,isVertical:T,isRTL:L,spaceTop:u,scrollEl:ie(()=>{var m;return(m=y.value)==null?void 0:m.$el}),interferePlayer:m=>H.interfere(m),onChangedPage:Q,onInitialized(){t("ready"),a.value=!0,n.touchDevice&&(i=ne())}}),Se=ie(()=>Math.floor(c.value)),N=()=>H.interfere(()=>lo(100));au().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const x=D.value&&T.value,W=D.value&&!T.value,re=!D.value&&T.value,fe=!D.value&&!T.value;switch(m.key){case" ":m.preventDefault(),D.value?(q(!1),H.toggle()):_();break;case"ArrowUp":case"PageUp":x?N():re&&Se.value!==0&&(m.preventDefault(),d());break;case"ArrowDown":case"PageDown":x?N():re&&!S.value&&(m.preventDefault(),_());break;case"ArrowLeft":W?N():fe?(m.preventDefault(),ct()):T.value&&ge();break;case"ArrowRight":W?N():fe?(m.preventDefault(),f()):T.value&&he();break}},onKeyUp:m=>{switch(m.key){case"f":M();break;case"t":R();break;case"h":q();break}}}),Lt("fullscreenchange",()=>{U.value=!!document.fullscreenElement}),ve(H.isPlaying,m=>{m||O(!1),t("playingChanged",m)}),ve(H.isIdle,m=>{H.isPlaying.value&&O(m)}),ve(l,m=>{!m&&H.isIdle.value?H.awake():m&&n.fullScreen&&O()});function Q(m){if(c.value===m)return;const x=h.value.length;if(m<0||m>=x+1)return;const W=c.value;c.value=m,t("pageChanged",Math.floor(m*100)/100),m>=x?(O(!1),H.stop()):m<.01?O(!1):n.touchDevice&&!r&&(D.value?i!==void 0&&ne()-i>300&&O(!0):Math.abs(W-m)===1&&O(!0)),!o&&m>=x-2&&(o=!0,t("finished"))}function ne(){var x;const m=(x=y.value)==null?void 0:x.$el;return m?T.value?m.scrollTop:L.value?-m.scrollLeft:m.scrollLeft:0}function xe(){!n.touchDevice&&!D.value&&_e.goToPage(Se.value,{smooth:!0})}function pe(){if(H.isPlaying.value){!n.fullScreen||!n.touchDevice?H.stop():H.awake();return}O()}function he(){var m;Ee((m=z.value)==null?void 0:m.nextPath)}function ge(){var m;Ee((m=z.value)==null?void 0:m.prevPath)}function ke(m){var W,re,fe;const x=(fe=(re=(W=z.value)==null?void 0:W.chapters)==null?void 0:re[m])==null?void 0:fe.path;x&&Ee(x)}function Ee(m){m&&(location.href=m.includes("://")?m:location.origin+m)}function ct(){L.value?_():d()}function f(){L.value?d():_()}function d(){var W;const m=B.value,x=S.value?m[m.length-1][0].index:(W=m[I()-1])==null?void 0:W[0].index;x!==void 0?_e.goToPage(x):ge()}function _(){var m,x;if(S.value)he();else{const W=((x=(m=B.value[I()+1])==null?void 0:m[0])==null?void 0:x.index)??h.value.length;_e.goToPage(W)}}function I(){const m=Se.value,x=B.value.findIndex(W=>W.some(({index:re})=>re===m));return x===-1?B.value.length-1:x}function k(){Ad(),H.stop(),t("dispose")}async function O(m){if(l.value&&!n.fullScreen)return;r=!0;const x=typeof m=="boolean"?m:!n.fullScreen;t("fullScreenChanged",x),x&&setTimeout(()=>{n.fullScreen&&l.value&&t("fullScreenChanged",!1)},100)}function R(){n.entryId?E():j()}function M(){var m,x;document.fullscreenElement?document.exitFullscreen():(x=(m=b.value)==null?void 0:m.$el)==null||x.requestFullscreen()}function j(){H.stop(),t("addEntry")}function E(){H.stop(),t("openEntry",n.entryId)}function q(m){te.value!==m&&(te.value=!te.value,te.value&&H.isPlaying&&H.stop())}return(m,x)=>{const W=Ns,re=Rs,fe=js,be=zs,Ie=Ls,qe=Ms,zt=_s,ht=oo,Yt=bs,ao=or,Fe=vs,rt=ms,co=gs,Jd=ps,Gd=ds,ep=fs,tp=us,np=cs,op=tr,rp=er,ip=ts,sp=Gi;return m.immediate||s.value?(A(),Ce(sp,{key:0,ref_key:"root",ref:b,loading:!a.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,idle:ae.value,"space-top":u.value,rtl:J(L),onClick:x[10]||(x[10]=ot(()=>{},["stop"]))},li({settings:le(()=>{var yt;return[Z(np,{"reader-style":J(C),"onUpdate:readerStyle":x[3]||(x[3]=wt=>Oe(C)?C.value=wt:null),direction:J(w),"onUpdate:direction":x[4]||(x[4]=wt=>Oe(w)?w.value=wt:null),gap:J(g),"onUpdate:gap":x[5]||(x[5]=wt=>Oe(g)?g.value=wt:null),speed:J($),"onUpdate:speed":x[6]||(x[6]=wt=>Oe($)?$.value=wt:null),zoom:oe.value,"onUpdate:zoom":x[7]||(x[7]=wt=>oe.value=wt),name:(yt=m.raw)==null?void 0:yt.title.name,webtoon:J(p),disabled:!s.value,onHelp:q},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":le(()=>[Z(on,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[Z(ip,{zoom:oe.value,onClick:x[9]||(x[9]=ot(()=>oe.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:le(()=>[K("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Re({width:`${J(c)/(J(h).length-1)*100}%`})},null,4)]),default:le(()=>[s.value?(A(),Ce(re,{key:0,ref_key:"body",ref:y,zoom:oe.value,"onUpdate:zoom":x[0]||(x[0]=yt=>oe.value=yt),"page-index":Se.value,pages:J(B),"total-imgs":J(h).length,direction:J(w),gap:J(g),"is-long-strip":J(D),isRTL:J(L),"is-vertical":J(T),"space-top":u.value,busy:J(l),idle:ae.value,"play-controller":J(H),"touch-device":m.touchDevice,onVnodeMounted:J(_e).init,onPrev:d,onNext:_,onClick:pe,onDragEnd:xe,onWheelPassive:x[1]||(x[1]=()=>J(H).interfere())},li({_:2},[s.value&&J(h).length?{name:"end",fn:le(()=>{var yt;return[Z(W,{"has-next":!!((yt=z.value)!=null&&yt.nextPath),onNext:he,onHide:k},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","onVnodeMounted"])):Ae("",!0),a.value&&!S.value&&!m.tourEnabled?(A(),Ce(fe,{key:1,direction:J(w)},null,8,["direction"])):Ae("",!0),a.value&&!S.value?(A(),Ce(be,{key:2,playing:!!J(H).isPlaying.value},null,8,["playing"])):Ae("",!0),te.value?(A(),Ce(Ie,{key:3,"touch-device":m.touchDevice,onHide:q},null,8,["touch-device"])):Ae("",!0),m.tourEnabled?(A(),Ce(qe,{key:4,onHide:x[2]||(x[2]=()=>t("tourEnabledChanged",!1))})):Ae("",!0)]),_:2},[m.raw?{name:"back",fn:le(()=>[Z(ht,{href:m.raw.title.url,title:"Back to manga"},{default:le(()=>[Z(zt)]),_:1},8,["href"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:le(()=>[Z(ht,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:k},{default:le(()=>[Z(Yt)]),_:1})]),key:"1"},z.value?{name:"chapter-nav",fn:le(()=>[Z(ao,{modelValue:z.value.activeIndex,label:z.value.activeLabel,title:"Select chapter",items:z.value.chapters,"onUpdate:modelValue":ke},{item:le(({item:yt})=>[Tt(Je(yt.label),1)]),_:1},8,["modelValue","label","items"]),ee.value||ce.value?(A(),X("div",Nd,[Z(ht,{title:`${J(L)?"Next":"Prev"} chapter (←)`,href:ee.value,disabled:!ee.value,class:"!rounded-r-none"},{default:le(()=>[Z(Fe)]),_:1},8,["title","href","disabled"]),Z(ht,{title:`${J(L)?"Prev":"Next"} chapter (→)`,href:ce.value,disabled:!ce.value,class:"!rounded-l-none"},{default:le(()=>[Z(rt)]),_:1},8,["title","href","disabled"])])):Ae("",!0)]),key:"2"}:void 0,J(B).length?{name:"page-nav",fn:le(()=>[Z(co,{"model-value":Se.value,disabled:!a.value,pages:J(B),"total-imgs":J(h).length,"onUpdate:modelValue":J(_e).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,m.raw?{name:"entry",fn:le(()=>[Z(ht,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:R},{default:le(()=>[m.entryId?(A(),Ce(Jd,{key:0})):(A(),Ce(Gd,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:le(()=>[Z(ht,{title:`${U.value?"Exit":"Enter"} fullscreen (F)`,onClick:M},{default:le(()=>[U.value?(A(),Ce(ep,{key:0})):(A(),Ce(tp,{key:1}))]),_:1},8,["title"])]),key:"5"},J(D)?{name:"play",fn:le(()=>[Z(ht,{"data-tour":"Press here to play like a video",title:`${J(H).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!a.value,onClick:x[8]||(x[8]=()=>J(H).toggle())},{default:le(()=>[J(H).isPlaying.value?(A(),Ce(op,{key:0})):(A(),Ce(rp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Ae("",!0)}}}),Ks=we(Fd,[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
8
- `]]]),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Hd={},Wd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ud=[K("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Kd(e,t){return A(),X("svg",Wd,Ud)}const Yd=Object.freeze(Object.defineProperty({__proto__:null,default:we(Hd,[["render",Kd]])},Symbol.toStringTag,{value:"Module"})),Xd=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}
9
- `,In="gear-second",fr={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,isGuest:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},Xe={promise:void 0,data:an({...fr})};async function qd(e){return Xe.promise?(Xe.data.raw=e.raw,await Xe.promise):(Xe.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove(In),Object.assign(Xe.data,fr),Xe.promise=void 0)};Object.assign(Xe.data,fr,e,{immediate:i,onReady(){i||(a(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):l()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Xe.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Xe.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Xe.data.tourEnabled=c}}),Zd().then(()=>{if(n){l();return}r=document.createElement(In),document.documentElement.classList.add(In),i?(document.body.appendChild(r),setTimeout(a)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function a(){o||(o=!0,t({triggerDoubleTap:(c,u)=>dd(c,u),updateArgs(c){Object.assign(Xe.data,c)},dispose:s}))}function l(){o||t(void 0)}}),await Xe.promise)}async function Zd(){if(window.customElements.get(In))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Xd)),document.head.appendChild(e);const t=lc({styles:[await Qd()],data:()=>({readerData:Xe.data}),render(){return zi(Ks,this.readerData)}});window.customElements.define(In,t)}async function Qd(){const e=Object.assign({"./TrackkunReader.vue":Vd,"./components/AutoNext.vue":Sd,"./components/BottomSheet.vue":du,"./components/ButtonDropdown.vue":_f,"./components/ButtonIcon.vue":tu,"./components/ButtonReaderSettings.vue":Fu,"./components/ButtonResetZoom.vue":Fc,"./components/DirectionToast.vue":ud,"./components/HelpScreen.vue":od,"./components/InputPercentage.vue":gu,"./components/InputSelect.vue":yu,"./components/IntersectionWrapper.vue":gd,"./components/LoadingIndicator.vue":Sc,"./components/PageNav.vue":yf,"./components/PauseToast.vue":rd,"./components/ReaderBody.vue":wd,"./components/ReaderLayout.vue":Mc,"./components/ReaderTour.vue":td,"./components/TableField.vue":bu,"./components/ZoomWrapper.vue":hd,"./components/icons/IconBack.vue":Nf,"./components/icons/IconBookmarkNew.vue":nf,"./components/icons/IconBookmarked.vue":af,"./components/icons/IconChevronLeft.vue":Pf,"./components/icons/IconChevronRight.vue":Sf,"./components/icons/IconClose.vue":su,"./components/icons/IconExclamationCircle.vue":Yd,"./components/icons/IconFullscreen.vue":Ku,"./components/icons/IconFullscreenExit.vue":Qu,"./components/icons/IconHelp.vue":Su,"./components/icons/IconNext.vue":cd,"./components/icons/IconPause.vue":Qc,"./components/icons/IconPlay.vue":Kc,"./components/icons/IconReaderExit.vue":Af,"./components/icons/IconSettings.vue":Pu,"./components/icons/IconTriangle.vue":pf,"./components/icons/IconZoom.vue":Bc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return qd});
1
+ (function(He,fe){typeof exports=="object"&&typeof module<"u"?module.exports=fe():typeof define=="function"&&define.amd?define(fe):(He=typeof globalThis<"u"?globalThis:He||self,He._gearSecond_=fe())})(this,function(){"use strict";var cp=Object.defineProperty;var up=(He,fe,qe)=>fe in He?cp(He,fe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):He[fe]=qe;var Qs=(He,fe,qe)=>(up(He,typeof fe!="symbol"?fe+"":fe,qe),qe);function He(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const fe={},qe=[],rt=()=>{},Js=()=>!1,Gs=/^on[^a-z]/,Tn=e=>Gs.test(e),fo=e=>e.startsWith("onUpdate:"),Se=Object.assign,po=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},el=Object.prototype.hasOwnProperty,ge=(e,t)=>el.call(e,t),ee=Array.isArray,Yt=e=>$n(e)==="[object Map]",hr=e=>$n(e)==="[object Set]",le=e=>typeof e=="function",Te=e=>typeof e=="string",ho=e=>typeof e=="symbol",we=e=>e!==null&&typeof e=="object",gr=e=>we(e)&&le(e.then)&&le(e.catch),mr=Object.prototype.toString,$n=e=>mr.call(e),tl=e=>$n(e).slice(8,-1),vr=e=>$n(e)==="[object Object]",go=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,En=He(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nl=/-(\w)/g,We=Pn(e=>e.replace(nl,(t,n)=>n?n.toUpperCase():"")),ol=/\B([A-Z])/g,Ze=Pn(e=>e.replace(ol,"-$1").toLowerCase()),On=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),mo=Pn(e=>e?`on${On(e)}`:""),sn=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},vo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bo=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let br;const _o=()=>br||(br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Te(o)?ll(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Te(e))return e;if(we(e))return e}}const rl=/;(?![^(]*\))/g,il=/:([^]+)/,sl=/\/\*[^]*?\*\//g;function ll(e){const t={};return e.replace(sl,"").split(rl).forEach(n=>{if(n){const o=n.split(il);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Te(e))t=e;else if(ee(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(we(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const al=He("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function _r(e){return!!e||e===""}const Qe=e=>Te(e)?e:e==null?"":ee(e)||we(e)&&(e.toString===mr||!le(e.toString))?JSON.stringify(e,yr,2):String(e),yr=(e,t)=>t&&t.__v_isRef?yr(e,t.value):Yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:hr(t)?{[`Set(${t.size})`]:[...t.values()]}:we(t)&&!ee(t)&&!vr(t)?String(t):t;let Ue;class cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){Ue=this}off(){Ue=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function ul(e,t=Ue){t&&t.active&&t.effects.push(e)}function wr(){return Ue}function fl(e){Ue&&Ue.cleanups.push(e)}const yo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},xr=e=>(e.w&yt)>0,kr=e=>(e.n&yt)>0,dl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=yt},pl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];xr(r)&&!kr(r)?r.delete(e):t[n++]=r,r.w&=~yt,r.n&=~yt}t.length=n}},wo=new WeakMap;let ln=0,yt=1;const xo=30;let it;const Mt=Symbol(""),ko=Symbol("");class Co{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ul(this,o)}run(){if(!this.active)return this.fn();let t=it,n=wt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=it,it=this,wt=!0,yt=1<<++ln,ln<=xo?dl(this):Cr(this),this.fn()}finally{ln<=xo&&pl(this),yt=1<<--ln,it=this.parent,wt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){it===this?this.deferStop=!0:this.active&&(Cr(this),this.onStop&&this.onStop(),this.active=!1)}}function Cr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let wt=!0;const Sr=[];function Xt(){Sr.push(wt),wt=!1}function qt(){const e=Sr.pop();wt=e===void 0?!0:e}function Fe(e,t,n){if(wt&&it){let o=wo.get(e);o||wo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=yo()),Ir(r)}}function Ir(e,t){let n=!1;ln<=xo?kr(e)||(e.n|=yt,n=!xr(e)):n=!e.has(it),n&&(e.add(it),it.deps.push(e))}function pt(e,t,n,o,r,i){const s=wo.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"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":ee(e)?go(n)&&l.push(s.get("length")):(l.push(s.get(Mt)),Yt(e)&&l.push(s.get(ko)));break;case"delete":ee(e)||(l.push(s.get(Mt)),Yt(e)&&l.push(s.get(ko)));break;case"set":Yt(e)&&l.push(s.get(Mt));break}if(l.length===1)l[0]&&So(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);So(yo(a))}}function So(e,t){const n=ee(e)?e:[...e];for(const o of n)o.computed&&Tr(o);for(const o of n)o.computed||Tr(o)}function Tr(e,t){(e!==it||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const hl=He("__proto__,__v_isRef,__isVue"),$r=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ho)),gl=Io(),ml=Io(!1,!0),vl=Io(!0),Er=bl();function bl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=me(this);for(let i=0,s=this.length;i<s;i++)Fe(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(me)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Xt();const o=me(this)[t].apply(this,n);return qt(),o}}),e}function _l(e){const t=me(this);return Fe(t,"has",e),t.hasOwnProperty(e)}function Io(e=!1,t=!1){return function(o,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?Al:Dr:t?Br:jr).get(o))return o;const s=ee(o);if(!e){if(s&&ge(Er,r))return Reflect.get(Er,r,i);if(r==="hasOwnProperty")return _l}const l=Reflect.get(o,r,i);return(ho(r)?$r.has(r):hl(r))||(e||Fe(o,"get",r),t)?l:$e(l)?s&&go(r)?l:l.value:we(l)?e?Rr(l):an(l):l}}const yl=Pr(),wl=Pr(!0);function Pr(e=!1){return function(n,o,r,i){let s=n[o];if(Qt(s)&&$e(s)&&!$e(r))return!1;if(!e&&(!Nn(r)&&!Qt(r)&&(s=me(s),r=me(r)),!ee(n)&&$e(s)&&!$e(r)))return s.value=r,!0;const l=ee(n)&&go(o)?Number(o)<n.length:ge(n,o),a=Reflect.set(n,o,r,i);return n===me(i)&&(l?sn(r,s)&&pt(n,"set",o,r):pt(n,"add",o,r)),a}}function xl(e,t){const n=ge(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&pt(e,"delete",t,void 0),o}function kl(e,t){const n=Reflect.has(e,t);return(!ho(t)||!$r.has(t))&&Fe(e,"has",t),n}function Cl(e){return Fe(e,"iterate",ee(e)?"length":Mt),Reflect.ownKeys(e)}const Or={get:gl,set:yl,deleteProperty:xl,has:kl,ownKeys:Cl},Sl={get:vl,set(e,t){return!0},deleteProperty(e,t){return!0}},Il=Se({},Or,{get:ml,set:wl}),To=e=>e,zn=e=>Reflect.getPrototypeOf(e);function An(e,t,n=!1,o=!1){e=e.__v_raw;const r=me(e),i=me(t);n||(t!==i&&Fe(r,"get",t),Fe(r,"get",i));const{has:s}=zn(r),l=o?To:n?Po:cn;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function jn(e,t=!1){const n=this.__v_raw,o=me(n),r=me(e);return t||(e!==r&&Fe(o,"has",e),Fe(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Bn(e,t=!1){return e=e.__v_raw,!t&&Fe(me(e),"iterate",Mt),Reflect.get(e,"size",e)}function Mr(e){e=me(e);const t=me(this);return zn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Lr(e,t){t=me(t);const n=me(this),{has:o,get:r}=zn(n);let i=o.call(n,e);i||(e=me(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?sn(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function zr(e){const t=me(this),{has:n,get:o}=zn(t);let r=n.call(t,e);r||(e=me(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&pt(t,"delete",e,void 0),i}function Ar(){const e=me(this),t=e.size!==0,n=e.clear();return t&&pt(e,"clear",void 0,void 0),n}function Dn(e,t){return function(o,r){const i=this,s=i.__v_raw,l=me(s),a=t?To:e?Po:cn;return!e&&Fe(l,"iterate",Mt),s.forEach((c,u)=>o.call(r,a(c),a(u),i))}}function Rn(e,t,n){return function(...o){const r=this.__v_raw,i=me(r),s=Yt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?To:t?Po:cn;return!t&&Fe(i,"iterate",a?ko:Mt),{next(){const{value:p,done:h}=c.next();return h?{value:p,done:h}:{value:l?[u(p[0]),u(p[1])]:u(p),done:h}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(i){return An(this,i)},get size(){return Bn(this)},has:jn,add:Mr,set:Lr,delete:zr,clear:Ar,forEach:Dn(!1,!1)},t={get(i){return An(this,i,!1,!0)},get size(){return Bn(this)},has:jn,add:Mr,set:Lr,delete:zr,clear:Ar,forEach:Dn(!1,!0)},n={get(i){return An(this,i,!0)},get size(){return Bn(this,!0)},has(i){return jn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Dn(!0,!1)},o={get(i){return An(this,i,!0,!0)},get size(){return Bn(this,!0)},has(i){return jn.call(this,i,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:Dn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Rn(i,!1,!1),n[i]=Rn(i,!0,!1),t[i]=Rn(i,!1,!0),o[i]=Rn(i,!0,!0)}),[e,n,t,o]}const[$l,El,Pl,Ol]=Tl();function $o(e,t){const n=t?e?Ol:Pl:e?El:$l;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ge(n,r)&&r in o?n:o,r,i)}const Ml={get:$o(!1,!1)},Ll={get:$o(!1,!0)},zl={get:$o(!0,!1)},jr=new WeakMap,Br=new WeakMap,Dr=new WeakMap,Al=new WeakMap;function jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bl(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(tl(e))}function an(e){return Qt(e)?e:Eo(e,!1,Or,Ml,jr)}function Dl(e){return Eo(e,!1,Il,Ll,Br)}function Rr(e){return Eo(e,!0,Sl,zl,Dr)}function Eo(e,t,n,o,r){if(!we(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Bl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Zt(e){return Qt(e)?Zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function Nr(e){return Zt(e)||Qt(e)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}function Fr(e){return Ln(e,"__v_skip",!0),e}const cn=e=>we(e)?an(e):e,Po=e=>we(e)?Rr(e):e;function Vr(e){wt&&it&&(e=me(e),Ir(e.dep||(e.dep=yo())))}function Hr(e,t){e=me(e);const n=e.dep;n&&So(n)}function $e(e){return!!(e&&e.__v_isRef===!0)}function Q(e){return Rl(e,!1)}function Rl(e,t){return $e(e)?e:new Nl(e,t)}class Nl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:me(t),this._value=n?t:cn(t)}get value(){return Vr(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||Qt(t);t=n?t:me(t),sn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cn(t),Hr(this))}}function G(e){return $e(e)?e.value:e}const Fl={get:(e,t,n)=>G(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return $e(r)&&!$e(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Wr(e){return Zt(e)?e:new Proxy(e,Fl)}class Vl{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Co(t,()=>{this._dirty||(this._dirty=!0,Hr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=me(this);return Vr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Hl(e,t,n=!1){let o,r;const i=le(e);return i?(o=e,r=rt):(o=e.get,r=e.set),new Vl(o,r,i||!r,n)}function dp(e,...t){}function kt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Fn(i,t,n)}return r}function Je(e,t,n,o){if(le(e)){const i=kt(e,t,n,o);return i&&gr(i)&&i.catch(s=>{Fn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Je(e[i],t,n,o));return r}function Fn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,l=n;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,l)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){kt(a,null,10,[e,s,l]);return}}Wl(e,n,r,o)}function Wl(e,t,n,o=!0){console.error(e)}let un=!1,Oo=!1;const je=[];let lt=0;const Jt=[];let ht=null,Lt=0;const Ur=Promise.resolve();let Mo=null;function gt(e){const t=Mo||Ur;return e?t.then(this?e.bind(this):e):t}function Ul(e){let t=lt+1,n=je.length;for(;t<n;){const o=t+n>>>1;fn(je[o])<e?t=o+1:n=o}return t}function Lo(e){(!je.length||!je.includes(e,un&&e.allowRecurse?lt+1:lt))&&(e.id==null?je.push(e):je.splice(Ul(e.id),0,e),Kr())}function Kr(){!un&&!Oo&&(Oo=!0,Mo=Ur.then(qr))}function Kl(e){const t=je.indexOf(e);t>lt&&je.splice(t,1)}function Yl(e){ee(e)?Jt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?Lt+1:Lt))&&Jt.push(e),Kr()}function Yr(e,t=un?lt+1:0){for(;t<je.length;t++){const n=je[t];n&&n.pre&&(je.splice(t,1),t--,n())}}function Xr(e){if(Jt.length){const t=[...new Set(Jt)];if(Jt.length=0,ht){ht.push(...t);return}for(ht=t,ht.sort((n,o)=>fn(n)-fn(o)),Lt=0;Lt<ht.length;Lt++)ht[Lt]();ht=null,Lt=0}}const fn=e=>e.id==null?1/0:e.id,Xl=(e,t)=>{const n=fn(e)-fn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qr(e){Oo=!1,un=!0,je.sort(Xl);const t=rt;try{for(lt=0;lt<je.length;lt++){const n=je[lt];n&&n.active!==!1&&kt(n,null,14)}}finally{lt=0,je.length=0,Xr(),un=!1,Mo=null,(je.length||Jt.length)&&qr()}}function ql(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||fe;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const u=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:h}=o[u]||fe;h&&(r=n.map(v=>Te(v)?v.trim():v)),p&&(r=n.map(vo))}let l,a=o[l=mo(t)]||o[l=mo(We(t))];!a&&i&&(a=o[l=mo(Ze(t))]),a&&Je(a,e,6,r);const c=o[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Je(c,e,6,r)}}function Zr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!le(e)){const a=c=>{const u=Zr(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!i&&!l?(we(e)&&o.set(e,null),null):(ee(i)?i.forEach(a=>s[a]=null):Se(s,i),we(e)&&o.set(e,s),s)}function Vn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,Ze(t))||ge(e,t))}let ze=null,Qr=null;function Hn(e){const t=ze;return ze=e,Qr=e&&e.type.__scopeId||null,t}function ae(e,t=ze,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ti(-1);const i=Hn(t);let s;try{s=e(...r)}finally{Hn(i),o._d&&Ti(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function pp(){}function zo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:p,data:h,setupState:v,ctx:x,inheritAttrs:k}=e;let A,q;const $=Hn(e);try{if(n.shapeFlag&4){const g=r||o;A=ct(u.call(g,g,p,i,v,h,x)),q=a}else{const g=t;A=ct(g.length>1?g(i,{attrs:a,slots:l,emit:c}):g(i,null)),q=t.props?a:Zl(a)}}catch(g){mn.length=0,Fn(g,e,1),A=J(tt)}let F=A;if(q&&k!==!1){const g=Object.keys(q),{shapeFlag:T}=F;g.length&&T&7&&(s&&g.some(fo)&&(q=Ql(q,s)),F=Ct(F,q))}return n.dirs&&(F=Ct(F),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),A=F,Hn($),A}const Zl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},Ql=(e,t)=>{const n={};for(const o in e)(!fo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Jl(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Jr(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let p=0;p<u.length;p++){const h=u[p];if(s[h]!==o[h]&&!Vn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?Jr(o,s,c):!0:!!s;return!1}function Jr(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Vn(n,i))return!0}return!1}function Gl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ea=e=>e.__isSuspense;function ta(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):Yl(e)}const Wn={};function ve(e,t,n){return Gr(e,t,n)}function Gr(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=fe){var l;const a=wr()===((l=Le)==null?void 0:l.scope)?Le:null;let c,u=!1,p=!1;if($e(e)?(c=()=>e.value,u=Nn(e)):Zt(e)?(c=()=>e,o=!0):ee(e)?(p=!0,u=e.some(g=>Zt(g)||Nn(g)),c=()=>e.map(g=>{if($e(g))return g.value;if(Zt(g))return zt(g);if(le(g))return kt(g,a,2)})):le(e)?t?c=()=>kt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Je(e,a,3,[v])}:c=rt,t&&o){const g=c;c=()=>zt(g())}let h,v=g=>{h=$.onStop=()=>{kt(g,a,4)}},x;if(bn)if(v=rt,t?n&&Je(t,a,3,[c(),p?[]:void 0,v]):c(),r==="sync"){const g=Ya();x=g.__watcherHandles||(g.__watcherHandles=[])}else return rt;let k=p?new Array(e.length).fill(Wn):Wn;const A=()=>{if($.active)if(t){const g=$.run();(o||u||(p?g.some((T,P)=>sn(T,k[P])):sn(g,k)))&&(h&&h(),Je(t,a,3,[g,k===Wn?void 0:p&&k[0]===Wn?[]:k,v]),k=g)}else $.run()};A.allowRecurse=!!t;let q;r==="sync"?q=A:r==="post"?q=()=>Ve(A,a&&a.suspense):(A.pre=!0,a&&(A.id=a.uid),q=()=>Lo(A));const $=new Co(c,q);t?n?A():k=$.run():r==="post"?Ve($.run.bind($),a&&a.suspense):$.run();const F=()=>{$.stop(),a&&a.scope&&po(a.scope.effects,$)};return x&&x.push(F),F}function na(e,t,n){const o=this.proxy,r=Te(e)?e.includes(".")?ei(o,e):()=>o[e]:e.bind(o,o);let i;le(t)?i=t:(i=t.handler,n=t);const s=Le;en(this);const l=Gr(r,i.bind(o),n);return s?en(s):Rt(),l}function ei(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function zt(e,t){if(!we(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))zt(e.value,t);else if(ee(e))for(let n=0;n<e.length;n++)zt(e[n],t);else if(hr(e)||Yt(e))e.forEach(n=>{zt(n,t)});else if(vr(e))for(const n in e)zt(e[n],t);return e}function mt(e,t){const n=ze;if(n===null)return e;const o=no(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,a,c=fe]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&&zt(l),r.push({dir:s,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function At(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const l=r[s];i&&(l.oldValue=i[s].value);let a=l.dir[o];a&&(Xt(),Je(a,n,8,[e.el,l,e,t]),qt())}}function oa(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return et(()=>{e.isMounted=!0}),Yn(()=>{e.isUnmounting=!0}),e}const Ge=[Function,Array],ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ge,onEnter:Ge,onAfterEnter:Ge,onEnterCancelled:Ge,onBeforeLeave:Ge,onLeave:Ge,onAfterLeave:Ge,onLeaveCancelled:Ge,onBeforeAppear:Ge,onAppear:Ge,onAfterAppear:Ge,onAppearCancelled:Ge},ra={name:"BaseTransition",props:ti,setup(e,{slots:t}){const n=Pi(),o=oa();let r;return()=>{const i=t.default&&ri(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const k of i)if(k.type!==tt){s=k;break}}const l=me(e),{mode:a}=l;if(o.isLeaving)return jo(s);const c=oi(s);if(!c)return jo(s);const u=Ao(c,l,o,n);Bo(c,u);const p=n.subTree,h=p&&oi(p);let v=!1;const{getTransitionKey:x}=c.type;if(x){const k=x();r===void 0?r=k:k!==r&&(r=k,v=!0)}if(h&&h.type!==tt&&(!Dt(c,h)||v)){const k=Ao(h,l,o,n);if(Bo(h,k),a==="out-in")return o.isLeaving=!0,k.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},jo(s);a==="in-out"&&c.type!==tt&&(k.delayLeave=(A,q,$)=>{const F=ni(o,h);F[String(h.key)]=h,A._leaveCb=()=>{q(),A._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=$})}return s}}};function ni(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ao(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:h,onAfterLeave:v,onLeaveCancelled:x,onBeforeAppear:k,onAppear:A,onAfterAppear:q,onAppearCancelled:$}=t,F=String(e.key),g=ni(n,e),T=(S,L)=>{S&&Je(S,o,9,L)},P=(S,L)=>{const te=L[1];T(S,L),ee(S)?S.every(ue=>ue.length<=1)&&te():S.length<=1&&te()},B={mode:i,persisted:s,beforeEnter(S){let L=l;if(!n.isMounted)if(r)L=k||l;else return;S._leaveCb&&S._leaveCb(!0);const te=g[F];te&&Dt(e,te)&&te.el._leaveCb&&te.el._leaveCb(),T(L,[S])},enter(S){let L=a,te=c,ue=u;if(!n.isMounted)if(r)L=A||a,te=q||c,ue=$||u;else return;let y=!1;const b=S._enterCb=K=>{y||(y=!0,K?T(ue,[S]):T(te,[S]),B.delayedLeave&&B.delayedLeave(),S._enterCb=void 0)};L?P(L,[S,b]):b()},leave(S,L){const te=String(e.key);if(S._enterCb&&S._enterCb(!0),n.isUnmounting)return L();T(p,[S]);let ue=!1;const y=S._leaveCb=b=>{ue||(ue=!0,L(),b?T(x,[S]):T(v,[S]),S._leaveCb=void 0,g[te]===e&&delete g[te])};g[te]=e,h?P(h,[S,y]):y()},clone(S){return Ao(S,t,n,o)}};return B}function jo(e){if(Un(e))return e=Ct(e),e.children=null,e}function oi(e){return Un(e)?e.children?e.children[0]:void 0:e}function Bo(e,t){e.shapeFlag&6&&e.component?Bo(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ri(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let s=e[i];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ie?(s.patchFlag&128&&r++,o=o.concat(ri(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?Ct(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function Ee(e,t){return le(e)?(()=>Se({name:e.name},t,{setup:e}))():e}const dn=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function ia(e,t){ii(e,"a",t)}function sa(e,t){ii(e,"da",t)}function ii(e,t,n=Le){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Kn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Un(r.parent.vnode)&&la(o,t,n,r),r=r.parent}}function la(e,t,n,o){const r=Kn(t,e,o,!0);at(()=>{po(o[t],r)},n)}function Kn(e,t,n=Le,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Xt(),en(n);const l=Je(t,n,e,s);return Rt(),qt(),l});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=Le)=>(!bn||e==="sp")&&Kn(e,(...o)=>t(...o),n),aa=vt("bm"),et=vt("m"),ca=vt("bu"),ua=vt("u"),Yn=vt("bum"),at=vt("um"),fa=vt("sp"),da=vt("rtg"),pa=vt("rtc");function ha(e,t=Le){Kn("ec",e,t)}const si="components",li=Symbol.for("v-ndc");function ga(e){return Te(e)?ma(si,e,!1)||e:e||li}function ma(e,t,n=!0,o=!1){const r=ze||Le;if(r){const i=r.type;if(e===si){const l=Wa(i,!1);if(l&&(l===t||l===We(t)||l===On(We(t))))return i}const s=ai(r[e]||i[e],t)||ai(r.appContext[e],t);return!s&&o?i:s}}function ai(e,t){return e&&(e[t]||e[We(t)]||e[On(We(t))])}function pn(e,t,n,o){let r;const i=n&&n[o];if(ee(e)||Te(e)){r=new Array(e.length);for(let s=0,l=e.length;s<l;s++)r[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,i&&i[s])}else if(we(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,i&&i[l]));else{const s=Object.keys(e);r=new Array(s.length);for(let l=0,a=s.length;l<a;l++){const c=s[l];r[l]=t(e[c],c,l,i&&i[l])}}else r=[];return n&&(n[o]=r),r}function ci(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(ee(o))for(let r=0;r<o.length;r++)e[o[r].name]=o[r].fn;else o&&(e[o.name]=o.key?(...r)=>{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function Pe(e,t,n={},o,r){if(ze.isCE||ze.parent&&dn(ze.parent)&&ze.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),j();const s=i&&ui(i(n)),l=ke(Ie,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function ui(e){return e.some(t=>Jn(t)?!(t.type===tt||t.type===Ie&&!ui(t.children)):!0)?e:null}const Do=e=>e?Mi(e)?no(e)||e.proxy:Do(e.parent):null,hn=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=>Do(e.parent),$root:e=>Do(e.root),$emit:e=>e.emit,$options:e=>Fo(e),$forceUpdate:e=>e.f||(e.f=()=>Lo(e.update)),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>na.bind(e)}),Ro=(e,t)=>e!==fe&&!e.__isScriptSetup&&ge(e,t),va={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Ro(o,t))return s[t]=1,o[t];if(r!==fe&&ge(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&ge(c,t))return s[t]=3,i[t];if(n!==fe&&ge(n,t))return s[t]=4,n[t];No&&(s[t]=0)}}const u=hn[t];let p,h;if(u)return t==="$attrs"&&Fe(e,"get",t),u(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==fe&&ge(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,ge(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Ro(r,t)?(r[t]=n,!0):o!==fe&&ge(o,t)?(o[t]=n,!0):ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==fe&&ge(e,s)||Ro(t,s)||(l=i[0])&&ge(l,s)||ge(o,s)||ge(hn,s)||ge(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function fi(e){return ee(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let No=!0;function ba(e){const t=Fo(e),n=e.proxy,o=e.ctx;No=!1,t.beforeCreate&&di(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:p,mounted:h,beforeUpdate:v,updated:x,activated:k,deactivated:A,beforeDestroy:q,beforeUnmount:$,destroyed:F,unmounted:g,render:T,renderTracked:P,renderTriggered:B,errorCaptured:S,serverPrefetch:L,expose:te,inheritAttrs:ue,components:y,directives:b,filters:K}=t;if(c&&_a(c,o,null),s)for(const ce in s){const re=s[ce];le(re)&&(o[ce]=re.bind(n))}if(r){const ce=r.call(n,n);we(ce)&&(e.data=an(ce))}if(No=!0,i)for(const ce in i){const re=i[ce],ye=le(re)?re.bind(n,n):le(re.get)?re.get.bind(n,n):rt,R=!le(re)&&le(re.set)?re.set.bind(n):rt,W=se({get:ye,set:R});Object.defineProperty(o,ce,{enumerable:!0,configurable:!0,get:()=>W.value,set:z=>W.value=z})}if(l)for(const ce in l)pi(l[ce],o,n,ce);if(a){const ce=le(a)?a.call(n):a;Reflect.ownKeys(ce).forEach(re=>{Zn(re,ce[re])})}u&&di(u,e,"c");function H(ce,re){ee(re)?re.forEach(ye=>ce(ye.bind(n))):re&&ce(re.bind(n))}if(H(aa,p),H(et,h),H(ca,v),H(ua,x),H(ia,k),H(sa,A),H(ha,S),H(pa,P),H(da,B),H(Yn,$),H(at,g),H(fa,L),ee(te))if(te.length){const ce=e.exposed||(e.exposed={});te.forEach(re=>{Object.defineProperty(ce,re,{get:()=>n[re],set:ye=>n[re]=ye})})}else e.exposed||(e.exposed={});T&&e.render===rt&&(e.render=T),ue!=null&&(e.inheritAttrs=ue),y&&(e.components=y),b&&(e.directives=b)}function _a(e,t,n=rt){ee(e)&&(e=Vo(e));for(const o in e){const r=e[o];let i;we(r)?"default"in r?i=jt(r.from||o,r.default,!0):i=jt(r.from||o):i=jt(r),$e(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function di(e,t,n){Je(ee(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function pi(e,t,n,o){const r=o.includes(".")?ei(n,o):()=>n[o];if(Te(e)){const i=t[e];le(i)&&ve(r,i)}else if(le(e))ve(r,e.bind(n));else if(we(e))if(ee(e))e.forEach(i=>pi(i,t,n,o));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&ve(r,i,e)}}function Fo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Xn(a,c,s,!0)),Xn(a,t,s)),we(t)&&i.set(t,a),a}function Xn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Xn(e,i,n,!0),r&&r.forEach(s=>Xn(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=ya[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const ya={data:hi,props:gi,emits:gi,methods:gn,computed:gn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:gn,directives:gn,watch:xa,provide:hi,inject:wa};function hi(e,t){return t?e?function(){return Se(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function wa(e,t){return gn(Vo(e),Vo(t))}function Vo(e){if(ee(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function De(e,t){return e?[...new Set([].concat(e,t))]:t}function gn(e,t){return e?Se(Object.create(null),e,t):t}function gi(e,t){return e?ee(e)&&ee(t)?[...new Set([...e,...t])]:Se(Object.create(null),fi(e),fi(t??{})):t}function xa(e,t){if(!e)return t;if(!t)return e;const n=Se(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function mi(){return{app:null,config:{isNativeTag:Js,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ka=0;function Ca(e,t){return function(o,r=null){le(o)||(o=Se({},o)),r!=null&&!we(r)&&(r=null);const i=mi(),s=new Set;let l=!1;const a=i.app={_uid:ka++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:Xa,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&le(c.install)?(s.add(c),c.install(a,...u)):le(c)&&(s.add(c),c(a,...u))),a},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),a},component(c,u){return u?(i.components[c]=u,a):i.components[c]},directive(c,u){return u?(i.directives[c]=u,a):i.directives[c]},mount(c,u,p){if(!l){const h=J(o,r);return h.appContext=i,u&&t?t(h,c):e(h,c,p),l=!0,a._container=c,c.__vue_app__=a,no(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,u){return i.provides[c]=u,a},runWithContext(c){qn=a;try{return c()}finally{qn=null}}};return a}}let qn=null;function Zn(e,t){if(Le){let n=Le.provides;const o=Le.parent&&Le.parent.provides;o===n&&(n=Le.provides=Object.create(o)),n[e]=t}}function jt(e,t,n=!1){const o=Le||ze;if(o||qn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:qn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&le(t)?t.call(o&&o.proxy):t}}function Sa(e,t,n,o=!1){const r={},i={};Ln(i,Gn,1),e.propsDefaults=Object.create(null),vi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Dl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ia(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=me(r),[a]=e.propsOptions;let c=!1;if((o||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let p=0;p<u.length;p++){let h=u[p];if(Vn(e.emitsOptions,h))continue;const v=t[h];if(a)if(ge(i,h))v!==i[h]&&(i[h]=v,c=!0);else{const x=We(h);r[x]=Ho(a,l,x,v,e,!1)}else v!==i[h]&&(i[h]=v,c=!0)}}}else{vi(e,t,r,i)&&(c=!0);let u;for(const p in l)(!t||!ge(t,p)&&((u=Ze(p))===p||!ge(t,u)))&&(a?n&&(n[p]!==void 0||n[u]!==void 0)&&(r[p]=Ho(a,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!ge(t,p))&&(delete i[p],c=!0)}c&&pt(e,"set","$attrs")}function vi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(En(a))continue;const c=t[a];let u;r&&ge(r,u=We(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:Vn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,s=!0)}if(i){const a=me(n),c=l||fe;for(let u=0;u<i.length;u++){const p=i[u];n[p]=Ho(r,a,p,c[p],e,!ge(c,p))}}return s}function Ho(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=ge(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&le(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(en(r),o=c[n]=a.call(null,t),Rt())}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ze(n))&&(o=!0))}return o}function bi(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},l=[];let a=!1;if(!le(e)){const u=p=>{a=!0;const[h,v]=bi(p,t,!0);Se(s,h),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return we(e)&&o.set(e,qe),qe;if(ee(i))for(let u=0;u<i.length;u++){const p=We(i[u]);_i(p)&&(s[p]=fe)}else if(i)for(const u in i){const p=We(u);if(_i(p)){const h=i[u],v=s[p]=ee(h)||le(h)?{type:h}:Se({},h);if(v){const x=xi(Boolean,v.type),k=xi(String,v.type);v[0]=x>-1,v[1]=k<0||x<k,(x>-1||ge(v,"default"))&&l.push(p)}}}const c=[s,l];return we(e)&&o.set(e,c),c}function _i(e){return e[0]!=="$"}function yi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function wi(e,t){return yi(e)===yi(t)}function xi(e,t){return ee(t)?t.findIndex(n=>wi(n,e)):le(t)&&wi(t,e)?0:-1}const ki=e=>e[0]==="_"||e==="$stable",Wo=e=>ee(e)?e.map(ct):[ct(e)],Ta=(e,t,n)=>{if(t._n)return t;const o=ae((...r)=>Wo(t(...r)),n);return o._c=!1,o},Ci=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ki(r))continue;const i=e[r];if(le(i))t[r]=Ta(r,i,o);else if(i!=null){const s=Wo(i);t[r]=()=>s}}},Si=(e,t)=>{const n=Wo(t);e.slots.default=()=>n},$a=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=me(t),Ln(t,"_",n)):Ci(t,e.slots={})}else e.slots={},t&&Si(e,t);Ln(e.slots,Gn,1)},Ea=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=fe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(Se(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Ci(t,r)),s=t}else t&&(Si(e,t),s={default:1});if(i)for(const l in r)!ki(l)&&!(l in s)&&delete r[l]};function Uo(e,t,n,o,r=!1){if(ee(e)){e.forEach((h,v)=>Uo(h,t&&(ee(t)?t[v]:t),n,o,r));return}if(dn(o)&&!r)return;const i=o.shapeFlag&4?no(o.component)||o.component.proxy:o.el,s=r?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===fe?l.refs={}:l.refs,p=l.setupState;if(c!=null&&c!==a&&(Te(c)?(u[c]=null,ge(p,c)&&(p[c]=null)):$e(c)&&(c.value=null)),le(a))kt(a,l,12,[s,u]);else{const h=Te(a),v=$e(a);if(h||v){const x=()=>{if(e.f){const k=h?ge(p,a)?p[a]:u[a]:a.value;r?ee(k)&&po(k,i):ee(k)?k.includes(i)||k.push(i):h?(u[a]=[i],ge(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else h?(u[a]=s,ge(p,a)&&(p[a]=s)):v&&(a.value=s,e.k&&(u[e.k]=s))};s?(x.id=-1,Ve(x,n)):x()}}}const Ve=ta;function Pa(e){return Oa(e)}function Oa(e,t){const n=_o();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:h,setScopeId:v=rt,insertStaticContent:x}=e,k=(f,d,_,I=null,C=null,O=null,N=!1,M=null,D=!!d.dynamicChildren)=>{if(f===d)return;f&&!Dt(f,d)&&(I=de(f),z(f,C,O,!0),f=null),d.patchFlag===-2&&(D=!1,d.dynamicChildren=null);const{type:E,ref:Z,shapeFlag:m}=d;switch(E){case Qn:A(f,d,_,I);break;case tt:q(f,d,_,I);break;case Ko:f==null&&$(d,_,I,N);break;case Ie:y(f,d,_,I,C,O,N,M,D);break;default:m&1?T(f,d,_,I,C,O,N,M,D):m&6?b(f,d,_,I,C,O,N,M,D):(m&64||m&128)&&E.process(f,d,_,I,C,O,N,M,D,Re)}Z!=null&&C&&Uo(Z,f&&f.ref,O,d||f,!d)},A=(f,d,_,I)=>{if(f==null)o(d.el=l(d.children),_,I);else{const C=d.el=f.el;d.children!==f.children&&c(C,d.children)}},q=(f,d,_,I)=>{f==null?o(d.el=a(d.children||""),_,I):d.el=f.el},$=(f,d,_,I)=>{[f.el,f.anchor]=x(f.children,d,_,I,f.el,f.anchor)},F=({el:f,anchor:d},_,I)=>{let C;for(;f&&f!==d;)C=h(f),o(f,_,I),f=C;o(d,_,I)},g=({el:f,anchor:d})=>{let _;for(;f&&f!==d;)_=h(f),r(f),f=_;r(d)},T=(f,d,_,I,C,O,N,M,D)=>{N=N||d.type==="svg",f==null?P(d,_,I,C,O,N,M,D):L(f,d,C,O,N,M,D)},P=(f,d,_,I,C,O,N,M)=>{let D,E;const{type:Z,props:m,shapeFlag:w,transition:U,dirs:ie}=f;if(D=f.el=s(f.type,O,m&&m.is,m),w&8?u(D,f.children):w&16&&S(f.children,D,null,I,C,O&&Z!=="foreignObject",N,M),ie&&At(f,null,I,"created"),B(D,f,f.scopeId,N,I),m){for(const be in m)be!=="value"&&!En(be)&&i(D,be,null,m[be],O,f.children,I,C,pe);"value"in m&&i(D,"value",null,m.value),(E=m.onVnodeBeforeMount)&&ut(E,I,f)}ie&&At(f,null,I,"beforeMount");const he=(!C||C&&!C.pendingBranch)&&U&&!U.persisted;he&&U.beforeEnter(D),o(D,d,_),((E=m&&m.onVnodeMounted)||he||ie)&&Ve(()=>{E&&ut(E,I,f),he&&U.enter(D),ie&&At(f,null,I,"mounted")},C)},B=(f,d,_,I,C)=>{if(_&&v(f,_),I)for(let O=0;O<I.length;O++)v(f,I[O]);if(C){let O=C.subTree;if(d===O){const N=C.vnode;B(f,N,N.scopeId,N.slotScopeIds,C.parent)}}},S=(f,d,_,I,C,O,N,M,D=0)=>{for(let E=D;E<f.length;E++){const Z=f[E]=M?It(f[E]):ct(f[E]);k(null,Z,d,_,I,C,O,N,M)}},L=(f,d,_,I,C,O,N)=>{const M=d.el=f.el;let{patchFlag:D,dynamicChildren:E,dirs:Z}=d;D|=f.patchFlag&16;const m=f.props||fe,w=d.props||fe;let U;_&&Bt(_,!1),(U=w.onVnodeBeforeUpdate)&&ut(U,_,d,f),Z&&At(d,f,_,"beforeUpdate"),_&&Bt(_,!0);const ie=C&&d.type!=="foreignObject";if(E?te(f.dynamicChildren,E,M,_,I,ie,O):N||re(f,d,M,null,_,I,ie,O,!1),D>0){if(D&16)ue(M,d,m,w,_,I,C);else if(D&2&&m.class!==w.class&&i(M,"class",null,w.class,C),D&4&&i(M,"style",m.style,w.style,C),D&8){const he=d.dynamicProps;for(let be=0;be<he.length;be++){const Ce=he[be],Xe=m[Ce],Ot=w[Ce];(Ot!==Xe||Ce==="value")&&i(M,Ce,Xe,Ot,C,f.children,_,I,pe)}}D&1&&f.children!==d.children&&u(M,d.children)}else!N&&E==null&&ue(M,d,m,w,_,I,C);((U=w.onVnodeUpdated)||Z)&&Ve(()=>{U&&ut(U,_,d,f),Z&&At(d,f,_,"updated")},I)},te=(f,d,_,I,C,O,N)=>{for(let M=0;M<d.length;M++){const D=f[M],E=d[M],Z=D.el&&(D.type===Ie||!Dt(D,E)||D.shapeFlag&70)?p(D.el):_;k(D,E,Z,null,I,C,O,N,!0)}},ue=(f,d,_,I,C,O,N)=>{if(_!==I){if(_!==fe)for(const M in _)!En(M)&&!(M in I)&&i(f,M,_[M],null,N,d.children,C,O,pe);for(const M in I){if(En(M))continue;const D=I[M],E=_[M];D!==E&&M!=="value"&&i(f,M,E,D,N,d.children,C,O,pe)}"value"in I&&i(f,"value",_.value,I.value)}},y=(f,d,_,I,C,O,N,M,D)=>{const E=d.el=f?f.el:l(""),Z=d.anchor=f?f.anchor:l("");let{patchFlag:m,dynamicChildren:w,slotScopeIds:U}=d;U&&(M=M?M.concat(U):U),f==null?(o(E,_,I),o(Z,_,I),S(d.children,_,Z,C,O,N,M,D)):m>0&&m&64&&w&&f.dynamicChildren?(te(f.dynamicChildren,w,_,C,O,N,M),(d.key!=null||C&&d===C.subTree)&&Ii(f,d,!0)):re(f,d,_,Z,C,O,N,M,D)},b=(f,d,_,I,C,O,N,M,D)=>{d.slotScopeIds=M,f==null?d.shapeFlag&512?C.ctx.activate(d,_,I,N,D):K(d,_,I,C,O,N,D):ne(f,d,D)},K=(f,d,_,I,C,O,N)=>{const M=f.component=Ra(f,I,C);if(Un(f)&&(M.ctx.renderer=Re),Na(M),M.asyncDep){if(C&&C.registerDep(M,H),!f.el){const D=M.subTree=J(tt);q(null,D,d,_)}return}H(M,f,d,_,C,O,N)},ne=(f,d,_)=>{const I=d.component=f.component;if(Jl(f,d,_))if(I.asyncDep&&!I.asyncResolved){ce(I,d,_);return}else I.next=d,Kl(I.update),I.update();else d.el=f.el,I.vnode=d},H=(f,d,_,I,C,O,N)=>{const M=()=>{if(f.isMounted){let{next:Z,bu:m,u:w,parent:U,vnode:ie}=f,he=Z,be;Bt(f,!1),Z?(Z.el=ie.el,ce(f,Z,N)):Z=ie,m&&Mn(m),(be=Z.props&&Z.props.onVnodeBeforeUpdate)&&ut(be,U,Z,ie),Bt(f,!0);const Ce=zo(f),Xe=f.subTree;f.subTree=Ce,k(Xe,Ce,p(Xe.el),de(Xe),f,C,O),Z.el=Ce.el,he===null&&Gl(f,Ce.el),w&&Ve(w,C),(be=Z.props&&Z.props.onVnodeUpdated)&&Ve(()=>ut(be,U,Z,ie),C)}else{let Z;const{el:m,props:w}=d,{bm:U,m:ie,parent:he}=f,be=dn(d);if(Bt(f,!1),U&&Mn(U),!be&&(Z=w&&w.onVnodeBeforeMount)&&ut(Z,he,d),Bt(f,!0),m&&In){const Ce=()=>{f.subTree=zo(f),In(m,f.subTree,f,C,null)};be?d.type.__asyncLoader().then(()=>!f.isUnmounted&&Ce()):Ce()}else{const Ce=f.subTree=zo(f);k(null,Ce,_,I,f,C,O),d.el=Ce.el}if(ie&&Ve(ie,C),!be&&(Z=w&&w.onVnodeMounted)){const Ce=d;Ve(()=>ut(Z,he,Ce),C)}(d.shapeFlag&256||he&&dn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&Ve(f.a,C),f.isMounted=!0,d=_=I=null}},D=f.effect=new Co(M,()=>Lo(E),f.scope),E=f.update=()=>D.run();E.id=f.uid,Bt(f,!0),E()},ce=(f,d,_)=>{d.component=f;const I=f.vnode.props;f.vnode=d,f.next=null,Ia(f,d.props,I,_),Ea(f,d.children,_),Xt(),Yr(),qt()},re=(f,d,_,I,C,O,N,M,D=!1)=>{const E=f&&f.children,Z=f?f.shapeFlag:0,m=d.children,{patchFlag:w,shapeFlag:U}=d;if(w>0){if(w&128){R(E,m,_,I,C,O,N,M,D);return}else if(w&256){ye(E,m,_,I,C,O,N,M,D);return}}U&8?(Z&16&&pe(E,C,O),m!==E&&u(_,m)):Z&16?U&16?R(E,m,_,I,C,O,N,M,D):pe(E,C,O,!0):(Z&8&&u(_,""),U&16&&S(m,_,I,C,O,N,M,D))},ye=(f,d,_,I,C,O,N,M,D)=>{f=f||qe,d=d||qe;const E=f.length,Z=d.length,m=Math.min(E,Z);let w;for(w=0;w<m;w++){const U=d[w]=D?It(d[w]):ct(d[w]);k(f[w],U,_,null,C,O,N,M,D)}E>Z?pe(f,C,O,!0,!1,m):S(d,_,I,C,O,N,M,D,m)},R=(f,d,_,I,C,O,N,M,D)=>{let E=0;const Z=d.length;let m=f.length-1,w=Z-1;for(;E<=m&&E<=w;){const U=f[E],ie=d[E]=D?It(d[E]):ct(d[E]);if(Dt(U,ie))k(U,ie,_,null,C,O,N,M,D);else break;E++}for(;E<=m&&E<=w;){const U=f[m],ie=d[w]=D?It(d[w]):ct(d[w]);if(Dt(U,ie))k(U,ie,_,null,C,O,N,M,D);else break;m--,w--}if(E>m){if(E<=w){const U=w+1,ie=U<Z?d[U].el:I;for(;E<=w;)k(null,d[E]=D?It(d[E]):ct(d[E]),_,ie,C,O,N,M,D),E++}}else if(E>w)for(;E<=m;)z(f[E],C,O,!0),E++;else{const U=E,ie=E,he=new Map;for(E=ie;E<=w;E++){const Ne=d[E]=D?It(d[E]):ct(d[E]);Ne.key!=null&&he.set(Ne.key,E)}let be,Ce=0;const Xe=w-ie+1;let Ot=!1,dt=0;const Kt=new Array(Xe);for(E=0;E<Xe;E++)Kt[E]=0;for(E=U;E<=m;E++){const Ne=f[E];if(Ce>=Xe){z(Ne,C,O,!0);continue}let ot;if(Ne.key!=null)ot=he.get(Ne.key);else for(be=ie;be<=w;be++)if(Kt[be-ie]===0&&Dt(Ne,d[be])){ot=be;break}ot===void 0?z(Ne,C,O,!0):(Kt[ot-ie]=E+1,ot>=dt?dt=ot:Ot=!0,k(Ne,d[ot],_,null,C,O,N,M,D),Ce++)}const co=Ot?Ma(Kt):qe;for(be=co.length-1,E=Xe-1;E>=0;E--){const Ne=ie+E,ot=d[Ne],uo=Ne+1<Z?d[Ne+1].el:I;Kt[E]===0?k(null,ot,_,uo,C,O,N,M,D):Ot&&(be<0||E!==co[be]?W(ot,_,uo,2):be--)}}},W=(f,d,_,I,C=null)=>{const{el:O,type:N,transition:M,children:D,shapeFlag:E}=f;if(E&6){W(f.component.subTree,d,_,I);return}if(E&128){f.suspense.move(d,_,I);return}if(E&64){N.move(f,d,_,Re);return}if(N===Ie){o(O,d,_);for(let m=0;m<D.length;m++)W(D[m],d,_,I);o(f.anchor,d,_);return}if(N===Ko){F(f,d,_);return}if(I!==2&&E&1&&M)if(I===0)M.beforeEnter(O),o(O,d,_),Ve(()=>M.enter(O),C);else{const{leave:m,delayLeave:w,afterLeave:U}=M,ie=()=>o(O,d,_),he=()=>{m(O,()=>{ie(),U&&U()})};w?w(O,ie,he):he()}else o(O,d,_)},z=(f,d,_,I=!1,C=!1)=>{const{type:O,props:N,ref:M,children:D,dynamicChildren:E,shapeFlag:Z,patchFlag:m,dirs:w}=f;if(M!=null&&Uo(M,null,_,f,!0),Z&256){d.ctx.deactivate(f);return}const U=Z&1&&w,ie=!dn(f);let he;if(ie&&(he=N&&N.onVnodeBeforeUnmount)&&ut(he,d,f),Z&6)_e(f.component,_,I);else{if(Z&128){f.suspense.unmount(_,I);return}U&&At(f,null,d,"beforeUnmount"),Z&64?f.type.remove(f,d,_,C,Re,I):E&&(O!==Ie||m>0&&m&64)?pe(E,d,_,!1,!0):(O===Ie&&m&384||!C&&Z&16)&&pe(D,d,_),I&&V(f)}(ie&&(he=N&&N.onVnodeUnmounted)||U)&&Ve(()=>{he&&ut(he,d,f),U&&At(f,null,d,"unmounted")},_)},V=f=>{const{type:d,el:_,anchor:I,transition:C}=f;if(d===Ie){oe(_,I);return}if(d===Ko){g(f);return}const O=()=>{r(_),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(f.shapeFlag&1&&C&&!C.persisted){const{leave:N,delayLeave:M}=C,D=()=>N(_,O);M?M(f.el,O,D):D()}else O()},oe=(f,d)=>{let _;for(;f!==d;)_=h(f),r(f),f=_;r(d)},_e=(f,d,_)=>{const{bum:I,scope:C,update:O,subTree:N,um:M}=f;I&&Mn(I),C.stop(),O&&(O.active=!1,z(N,f,d,_)),M&&Ve(M,d),Ve(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},pe=(f,d,_,I=!1,C=!1,O=0)=>{for(let N=O;N<f.length;N++)z(f[N],d,_,I,C)},de=f=>f.shapeFlag&6?de(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),Ae=(f,d,_)=>{f==null?d._vnode&&z(d._vnode,null,null,!0):k(d._vnode||null,f,d,null,null,null,_),Yr(),Xr(),d._vnode=f},Re={p:k,um:z,m:W,r:V,mt:K,mc:S,pc:re,pbc:te,n:de,o:e};let Ut,In;return t&&([Ut,In]=t(Re)),{render:Ae,hydrate:Ut,createApp:Ca(Ae,Ut)}}function Bt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ii(e,t,n=!1){const o=e.children,r=t.children;if(ee(o)&&ee(r))for(let i=0;i<o.length;i++){const s=o[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=It(r[i]),l.el=s.el),n||Ii(s,l)),l.type===Qn&&(l.el=s.el)}}function Ma(e){const t=e.slice(),n=[0];let o,r,i,s,l;const a=e.length;for(o=0;o<a;o++){const c=e[o];if(c!==0){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)l=i+s>>1,e[n[l]]<c?i=l+1:s=l;c<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const La=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),Ko=Symbol.for("v-stc"),mn=[];let st=null;function j(e=!1){mn.push(st=e?null:[])}function za(){mn.pop(),st=mn[mn.length-1]||null}let vn=1;function Ti(e){vn+=e}function $i(e){return e.dynamicChildren=vn>0?st||qe:null,za(),vn>0&&st&&st.push(e),e}function X(e,t,n,o,r,i){return $i(Y(e,t,n,o,r,i,!0))}function ke(e,t,n,o,r){return $i(J(e,t,n,o,r,!0))}function Jn(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const Gn="__vInternal",Ei=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Te(e)||$e(e)||le(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,o=0,r=null,i=e===Ie?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ei(t),ref:t&&eo(t),scopeId:Qr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ze};return l?(Yo(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Te(n)?8:16),vn>0&&!s&&st&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&st.push(a),a}const J=Aa;function Aa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===li)&&(e=tt),Jn(e)){const l=Ct(e,t,!0);return n&&Yo(l,n),vn>0&&!i&&st&&(l.shapeFlag&6?st[st.indexOf(e)]=l:st.push(l)),l.patchFlag|=-2,l}if(Ua(e)&&(e=e.__vccOpts),t){t=ja(t);let{class:l,style:a}=t;l&&!Te(l)&&(t.class=Oe(l)),we(a)&&(Nr(a)&&!ee(a)&&(a=Se({},a)),t.style=Be(a))}const s=Te(e)?1:ea(e)?128:La(e)?64:we(e)?4:le(e)?2:0;return Y(e,t,n,o,r,s,i,!0)}function ja(e){return e?Nr(e)||Gn in e?Se({},e):e:null}function Ct(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,l=t?to(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ei(l),ref:t&&t.ref?n&&r?ee(r)?r.concat(eo(t)):[r,eo(t)]:eo(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ct(e.ssContent),ssFallback:e.ssFallback&&Ct(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function St(e=" ",t=0){return J(Qn,null,e,t)}function Me(e="",t=!1){return t?(j(),ke(tt,null,e)):J(tt,null,e)}function ct(e){return e==null||typeof e=="boolean"?J(tt):ee(e)?J(Ie,null,e.slice()):typeof e=="object"?It(e):J(Qn,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ct(e)}function Yo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Yo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Gn in t)?t._ctx=ze:r===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),o&64?(n=16,t=[St(t)]):n=8);e.children=t,e.shapeFlag|=n}function to(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=Oe([t.class,o.class]));else if(r==="style")t.style=Be([t.style,o.style]);else if(Tn(r)){const i=t[r],s=o[r];s&&i!==s&&!(ee(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ut(e,t,n,o=null){Je(e,t,7,[n,o])}const Ba=mi();let Da=0;function Ra(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ba,i={uid:Da++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new cl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bi(o,r),emitsOptions:Zr(o,r),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:o.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ql.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const Pi=()=>Le||ze;let Xo,Gt,Oi="__VUE_INSTANCE_SETTERS__";(Gt=_o()[Oi])||(Gt=_o()[Oi]=[]),Gt.push(e=>Le=e),Xo=e=>{Gt.length>1?Gt.forEach(t=>t(e)):Gt[0](e)};const en=e=>{Xo(e),e.scope.on()},Rt=()=>{Le&&Le.scope.off(),Xo(null)};function Mi(e){return e.vnode.shapeFlag&4}let bn=!1;function Na(e,t=!1){bn=t;const{props:n,children:o}=e.vnode,r=Mi(e);Sa(e,n,r,t),$a(e,o);const i=r?Fa(e,t):void 0;return bn=!1,i}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fr(new Proxy(e.ctx,va));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Ha(e):null;en(e),Xt();const i=kt(o,e,0,[e.props,r]);if(qt(),Rt(),gr(i)){if(i.then(Rt,Rt),t)return i.then(s=>{Li(e,s,t)}).catch(s=>{Fn(s,e,0)});e.asyncDep=i}else Li(e,i,t)}else Ai(e,t)}function Li(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:we(t)&&(e.setupState=Wr(t)),Ai(e,n)}let zi;function Ai(e,t,n){const o=e.type;if(!e.render){if(!t&&zi&&!o.render){const r=o.template||Fo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=Se(Se({isCustomElement:i,delimiters:l},s),a);o.render=zi(r,c)}}e.render=o.render||rt}en(e),Xt(),ba(e),qt(),Rt()}function Va(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Fe(e,"get","$attrs"),t[n]}}))}function Ha(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Va(e)},slots:e.slots,emit:e.emit,expose:t}}function no(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Wr(Fr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function Wa(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Ua(e){return le(e)&&"__vccOpts"in e}const se=(e,t)=>Hl(e,t,bn);function ji(e,t,n){const o=arguments.length;return o===2?we(t)&&!ee(t)?Jn(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Jn(n)&&(n=[n]),J(e,t,n))}const Ka=Symbol.for("v-scx"),Ya=()=>jt(Ka),Xa="3.3.4",qa="http://www.w3.org/2000/svg",Nt=typeof document<"u"?document:null,Bi=Nt&&Nt.createElement("template"),Za={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Nt.createElementNS(qa,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Bi.innerHTML=o?`<svg>${e}</svg>`:e;const l=Bi.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Qa(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ja(e,t,n){const o=e.style,r=Te(n);if(n&&!r){if(t&&!Te(t))for(const i in t)n[i]==null&&qo(o,i,"");for(const i in n)qo(o,i,n[i])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const Di=/\s*!important$/;function qo(e,t,n){if(ee(n))n.forEach(o=>qo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ga(e,t);Di.test(n)?e.setProperty(Ze(o),n.replace(Di,""),"important"):e[o]=n}}const Ri=["Webkit","Moz","ms"],Zo={};function Ga(e,t){const n=Zo[t];if(n)return n;let o=We(t);if(o!=="filter"&&o in e)return Zo[t]=o;o=On(o);for(let r=0;r<Ri.length;r++){const i=Ri[r]+o;if(i in e)return Zo[t]=i}return t}const Ni="http://www.w3.org/1999/xlink";function ec(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ni,t.slice(6,t.length)):e.setAttributeNS(Ni,t,n);else{const i=al(t);n==null||i&&!_r(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function tc(e,t,n,o,r,i,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,r,i),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const c=l==="OPTION"?e.getAttribute("value"):e.value,u=n??"";c!==u&&(e.value=u),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=_r(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function tn(e,t,n,o){e.addEventListener(t,n,o)}function nc(e,t,n,o){e.removeEventListener(t,n,o)}function oc(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[l,a]=rc(t);if(o){const c=i[t]=lc(o,r);tn(e,l,c,a)}else s&&(nc(e,l,s,a),i[t]=void 0)}}const Fi=/(?:Once|Passive|Capture)$/;function rc(e){let t;if(Fi.test(e)){t={};let o;for(;o=e.match(Fi);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ze(e.slice(2)),t]}let Qo=0;const ic=Promise.resolve(),sc=()=>Qo||(ic.then(()=>Qo=0),Qo=Date.now());function lc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Je(ac(o,n.value),t,5,[o])};return n.value=e,n.attached=sc(),n}function ac(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Vi=/^on[a-z]/,cc=(e,t,n,o,r=!1,i,s,l,a)=>{t==="class"?Qa(e,o,r):t==="style"?Ja(e,n,o):Tn(t)?fo(t)||oc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uc(e,t,o,r))?tc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),ec(e,t,o,r))};function uc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Vi.test(t)&&le(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Vi.test(t)&&Te(n)?!1:t in e}function fc(e,t){const n=Ee(e);class o extends Jo{constructor(i){super(n,i,t)}}return o.def=n,o}const dc=typeof HTMLElement<"u"?HTMLElement:class{};class Jo extends dc{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,gt(()=>{this._connected||(es(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(o,r=!1)=>{const{props:i,styles:s}=o;let l;if(i&&!ee(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=bo(this._props[a])),(l||(l=Object.create(null)))[We(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=ee(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of o.map(We))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const o=We(t);this._numberProps&&this._numberProps[o]&&(n=bo(n)),this._setProp(o,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(Ze(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ze(t),n+""):n||this.removeAttribute(Ze(t))))}_update(){es(this._createVNode(),this.shadowRoot)}_createVNode(){const t=J(this._def,Se({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(i,s)=>{this.dispatchEvent(new CustomEvent(i,{detail:s}))};n.emit=(i,...s)=>{o(i,s),Ze(i)!==i&&o(Ze(i),s)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Jo){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}const Tt="transition",_n="animation",nn=(e,{slots:t})=>ji(ra,pc(e),t);nn.displayName="Transition";const Hi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};nn.props=Se({},ti,Hi);const Ft=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},Wi=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function pc(e){const t={};for(const y in e)y in Hi||(t[y]=e[y]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=s,appearToClass:u=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,x=hc(r),k=x&&x[0],A=x&&x[1],{onBeforeEnter:q,onEnter:$,onEnterCancelled:F,onLeave:g,onLeaveCancelled:T,onBeforeAppear:P=q,onAppear:B=$,onAppearCancelled:S=F}=t,L=(y,b,K)=>{Vt(y,b?u:l),Vt(y,b?c:s),K&&K()},te=(y,b)=>{y._isLeaving=!1,Vt(y,p),Vt(y,v),Vt(y,h),b&&b()},ue=y=>(b,K)=>{const ne=y?B:$,H=()=>L(b,y,K);Ft(ne,[b,H]),Ui(()=>{Vt(b,y?a:i),$t(b,y?u:l),Wi(ne)||Ki(b,o,k,H)})};return Se(t,{onBeforeEnter(y){Ft(q,[y]),$t(y,i),$t(y,s)},onBeforeAppear(y){Ft(P,[y]),$t(y,a),$t(y,c)},onEnter:ue(!1),onAppear:ue(!0),onLeave(y,b){y._isLeaving=!0;const K=()=>te(y,b);$t(y,p),vc(),$t(y,h),Ui(()=>{y._isLeaving&&(Vt(y,p),$t(y,v),Wi(g)||Ki(y,o,A,K))}),Ft(g,[y,K])},onEnterCancelled(y){L(y,!1),Ft(F,[y])},onAppearCancelled(y){L(y,!0),Ft(S,[y])},onLeaveCancelled(y){te(y),Ft(T,[y])}})}function hc(e){if(e==null)return null;if(we(e))return[Go(e.enter),Go(e.leave)];{const t=Go(e);return[t,t]}}function Go(e){return bo(e)}function $t(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Vt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Ui(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gc=0;function Ki(e,t,n,o){const r=e._endId=++gc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=mc(e,t);if(!s)return o();const c=s+"end";let u=0;const p=()=>{e.removeEventListener(c,h),i()},h=v=>{v.target===e&&++u>=a&&p()};setTimeout(()=>{u<a&&p()},l+1),e.addEventListener(c,h)}function mc(e,t){const n=window.getComputedStyle(e),o=x=>(n[x]||"").split(", "),r=o(`${Tt}Delay`),i=o(`${Tt}Duration`),s=Yi(r,i),l=o(`${_n}Delay`),a=o(`${_n}Duration`),c=Yi(l,a);let u=null,p=0,h=0;t===Tt?s>0&&(u=Tt,p=s,h=i.length):t===_n?c>0&&(u=_n,p=c,h=a.length):(p=Math.max(s,c),u=p>0?s>c?Tt:_n:null,h=u?u===Tt?i.length:a.length:0);const v=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:p,propCount:h,hasTransform:v}}function Yi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Xi(n)+Xi(e[o])))}function Xi(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function vc(){return document.body.offsetHeight}const qi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Mn(t,n):t};function bc(e){e.target.composing=!0}function Zi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _c={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=qi(r);const i=o||r.props&&r.props.type==="number";tn(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=vo(l)),e._assign(l)}),n&&tn(e,"change",()=>{e.value=e.value.trim()}),t||(tn(e,"compositionstart",bc),tn(e,"compositionend",Zi),tn(e,"change",Zi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=qi(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&vo(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},yc=["ctrl","shift","alt","meta"],wc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>yc.some(n=>e[`${n}Key`]&&!t.includes(n))},nt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=wc[t[r]];if(i&&i(n,t))return}return e(n,...o)},xc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qi=(e,t)=>n=>{if(!("key"in n))return;const o=Ze(n.key);if(t.some(r=>r===o||xc[r]===o))return e(n)},Ji={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):yn(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),yn(e,!0),o.enter(e)):o.leave(e,()=>{yn(e,!1)}):yn(e,t))},beforeUnmount(e,{value:t}){yn(e,t)}};function yn(e,t){e.style.display=t?e._vod:"none"}const kc=Se({patchProp:cc},Za);let Gi;function Cc(){return Gi||(Gi=Pa(kc))}const es=(...e)=>{Cc().render(...e)},Sc=`.loading-indicator{display:inline-block;height:80px;position:relative;width:80px}.loading-indicator:after,.loading-indicator:before{animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite;border:4px solid #b85c38;border-radius:9999px;content:"";display:block;opacity:1;position:absolute}.loading-indicator:after{animation-delay:-.5s}@keyframes lds-ripple{0%{height:0;left:36px;opacity:0;top:36px;width:0}4.9%{height:0;left:36px;opacity:0;top:36px;width:0}5%{height:0;left:36px;opacity:1;top:36px;width:0}to{height:72px;left:0;opacity:0;top:0;width:72px}}
2
+ `,xe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ic={},Tc={class:"loading-indicator"};function $c(e,t){return j(),X("div",Tc)}const er=xe(Ic,[["render",$c],["styles",[Sc]]]),Ec=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),Pc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Oc={class:"flex justify-between items-end"},Mc={class:"inline-block children-pointer-events-auto w-1/3"},Lc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},zc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ac={class:"inline-block z-20 relative"},ts=Ee({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){return(t,n)=>{const o=er;return j(),X("div",{class:Oe(["fixed top-0 left-0 w-screen h-screen text-stone-100 font-sans text-base overflow-auto scrollbar-none overscroll-contain",{"cursor-none":t.idle,"bg-black":t.immediate||!t.loading,"opacity-0":!t.immediate&&t.loading,"duration-200 transition-colors":!t.immediate}])},[t.loading&&t.immediate?(j(),X("div",Pc,[J(o)])):Me("",!0),Pe(t.$slots,"default"),Y("div",{id:"controls",class:Oe(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear left-0 top-0 w-screen h-screen flex flex-col justify-between p-2 sm:p-3 pb-6 md:pb-5 lg:pb-3",{"opacity-100 z-20":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}])},[Y("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${t.spaceTop||0}px`})},[Pe(t.$slots,"back"),Pe(t.$slots,"exit"),Pe(t.$slots,"chapter-nav")],4),Y("div",Oc,[Y("div",Mc,[Pe(t.$slots,"page-nav")]),Y("div",Lc,[Pe(t.$slots,"reset-zoom")]),Y("div",zc,[Pe(t.$slots,"entry"),Y("div",Ac,[Pe(t.$slots,"settings")]),Pe(t.$slots,"full-screen"),Pe(t.$slots,"play")])]),Y("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[Pe(t.$slots,"progress")],2)],2)],2)}}}),jc=Object.freeze(Object.defineProperty({__proto__:null,default:ts},Symbol.toStringTag,{value:"Module"})),Bc={},Dc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Rc=[Y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[Y("circle",{cx:"14",cy:"14",r:"12"}),Y("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Nc(e,t){return j(),X("svg",Dc,Rc)}const ns=xe(Bc,[["render",Nc]]),Fc=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"})),Vc={key:0,class:"h-9 rounded-full inline-flex justify-between items-center bg-black bg-opacity-50 gap-1 py-2 px-3 pointer-events-auto hover:bg-stone-900 hover:bg-opacity-50 duration-200",title:"Reset zoom"},Hc={class:"block w-4 h-4"},Wc={class:"w-12"},os=Ee({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ns;return t.zoom!==1?(j(),X("button",Vc,[Y("div",Hc,[J(o)]),Y("div",Wc,Qe(Math.ceil(t.zoom*100))+"%",1)])):Me("",!0)}}}),Uc=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),Kc={},Yc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Xc=[Y("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function qc(e,t){return j(),X("svg",Yc,Xc)}const tr=xe(Kc,[["render",qc]]),Zc=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),Qc={},Jc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Gc=[Y("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),Y("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function eu(e,t){return j(),X("svg",Jc,Gc)}const nr=xe(Qc,[["render",eu]]),tu=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"}));function nu({touchDevice:e}){const t=Q(!1);let n=0;return Zn("busy:touchDevice",e),Zn("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function or(){const e=jt("busy:touchDevice"),t=jt("setBusyState");let n=!1;return at(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const ou=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,i=.65;const s=setInterval(a,20);l();function l(){o.style.position="absolute",o.style.height="5px",o.style.width="5px",o.style.borderRadius="100%",o.style.backgroundColor="#f2f2f2",o.style.left=`${t.currentTarget.clientWidth/2}px`,o.style.top=`${t.currentTarget.clientHeight/2}px`,t.currentTarget.appendChild(o)}function a(){const c=+n||50;r<=c?(r++,i-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${i}`):(o.remove(),clearInterval(s))}},on={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>ou(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},ru={class:"group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200 rounđe-full p-2 w-full h-full inline-flex justify-center items-center"},oo=Ee({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=or();let r=!1;function i(){r||(r=!0,o(!0,{desktopOnly:!0}))}function s(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>mt((j(),ke(ga(a.href?"a":"button"),to(a.href?{href:a.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full flex-shrink-0",{"cursor-default text-stone-400 hover:text-stone-400":a.disabled,"text-stone-100 hover:text-stone-100 group duration-200":!a.disabled,"bg-black bg-opacity-50":!a.transparent}],onClick:nt(l,["stop"]),onMouseenter:i,onMouseleave:s}),{default:ae(()=>[Y("div",ru,[Pe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[G(on),a.disabled?0:15]])}}),iu=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),su={},lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},au=[Y("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function cu(e,t){return j(),X("svg",lu,au)}const rs=xe(su,[["render",cu]]),uu=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"}));class fu{constructor(){Qs(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function du(){const e=new fu;return at(()=>e.dispose()),Zn("keyController",e),e}function ro(e){const t=jt("keyController");et(()=>t.addListener(e)),at(()=>t.removeListener(e))}const pu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},hu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},gu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},is=Ee({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;ro({onKeyDown:r});const o=or();ve(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const l=rs,a=oo;return j(),X("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:s[3]||(s[3]=()=>t("update:modelValue",!1))},[J(nn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:ae(()=>[n.modelValue?(j(),X("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:s[1]||(s[1]=nt(()=>{},["stop"])),onWheelPassive:s[2]||(s[2]=nt(()=>{},["stop"]))},[Y("div",pu,[J(a,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:ae(()=>[J(l)]),_:1}),Y("div",hu,Qe(i.name),1),Pe(i.$slots,"actions")]),Y("div",gu,[Pe(i.$slots,"default")])],32)):Me("",!0)]),_:3})],2)}}}),mu=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),vu=["min","max","step"],bu={class:"flex-shrink-0"},ss=xe(Ee({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,i)=>(j(),X("div",{class:Oe(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Be({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[mt(Y("input",{"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,vu),[[_c,o.value]]),Y("p",bu,[Pe(r.$slots,"suffix")])],6))}}),[["styles",[`input[type=range]{--tw-bg-opacity:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:linear-gradient(to right,#d6d3d1 var(--percentage),#78716c var(--percentage));background-color:rgb(120 113 108/var(--tw-bg-opacity));border-radius:2px;border-style:none;cursor:pointer;height:6px;opacity:.9;outline:2px solid transparent;outline-offset:2px}input[type=range]::-webkit-slider-thumb{--tw-border-opacity:1;--tw-bg-opacity:1;-webkit-appearance:none!important;background-color:rgb(214 211 209/var(--tw-bg-opacity));border-color:rgb(214 211 209/var(--tw-border-opacity));border-radius:2px;border-style:solid;border-width:2px;cursor:pointer;height:28px;transition-duration:.2s;width:16px}input[type=range]:hover{opacity:1}
3
+ `]]]),_u=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),yu={class:"flex items-center mb-8 last:mb-0"},wu={class:"flex-grow overflow-hidden"},ls=Ee({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(j(),X("div",yu,[Y("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Qe(t.label),3),Y("div",wu,[Pe(t.$slots,"default")])]))}}),xu=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"})),ku=["onClick","onKeyup"],as=Ee({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q({width:"",left:""});et(()=>{let s=!1;ve(()=>n.modelValue,l=>{var c;const a=(c=o.value)==null?void 0:c.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:s?"smooth":"auto",block:"center",inline:"center"}),s=!0)},{immediate:!0})});function i(s){t("update:modelValue",s)}return(s,l)=>(j(),X("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[Y("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(r.value)},null,4),(j(!0),X(Ie,null,pn(n.items,(a,c)=>mt((j(),X("div",{key:c,tabindex:"0",class:Oe(["inline-flex justify-center items-center h-6 rounded-2xl px-3 cursor-pointer relative z-10 whitespace-nowrap flex-shrink-0 focus:outline-primary hover:bg-stone-50 hover:bg-opacity-10 duration-200",{"text-stone-900":c==n.modelValue,"text-stone-400":c!=n.modelValue}]),onClick:()=>i(c),onKeyup:[Qi(()=>i(c),["enter"]),Qi(()=>i(c),["space"])]},[St(Qe(a),1)],42,ku)),[[G(on),30]])),128))],512))}}),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),Su={},Iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tu=[Y("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function $u(e,t){return j(),X("svg",Iu,Tu)}const cs=xe(Su,[["render",$u]]),Eu=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),Pu={},Ou={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Mu=[Y("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),Y("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Lu(e,t){return j(),X("svg",Ou,Mu)}const us=xe(Pu,[["render",Lu]]),zu=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"}));function Au(e){if(e)try{return JSON.parse(e)}catch{return}}function ju(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var ft=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(ft||{}),Ht=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(Ht||{});const Bu=.25,Du=5,Ru=.25,wn=.25,xn=5,Nu=.05,Fu=0,Vu=4;function Hu(e){var q,$,F,g,T;const{titleName:t,isWebtoon:n}=e,o=se(()=>t.value?ju(t.value):location.hostname),r=Q(Wu(`tkr:${o.value}`)),i=P=>{r.value=P;const B=`tkr:${o.value}`;!P||!Object.keys(P).length?localStorage.removeItem(B):localStorage.setItem(B,JSON.stringify(P))},s=P=>{if(!r.value){i(P);return}const B={...r.value};Object.entries(P).forEach(([S,L])=>{L===void 0?delete B[S]:B[S]=L}),i(B)},l=Q(((q=r.value)==null?void 0:q.style)??e.defaultStyle??Ht.longStrip),a=Q((($=r.value)==null?void 0:$.direction)??e.defaultDirection??ft.vertical),c=Q((F=r.value)==null?void 0:F.gap),u=Q(((g=r.value)==null?void 0:g.speed)??1),p=Q(((T=r.value)==null?void 0:T.zoom)??1),h=se({get(){return n.value?Ht.longStrip:l.value},set:P=>{l.value=P,s({style:P}),P!==Ht.longStrip&&a.value===ft.vertical&&(v.value=ft.rtl)}}),v=se({get:()=>n.value?ft.vertical:a.value,set:P=>{a.value=P,s({direction:P})}}),x=se({get:()=>c.value??(e.maybeWebtoon.value?0:1),set(P){c.value=P,s({gap:P})}}),k=se({get:()=>u.value,set(P){u.value=P,s({speed:P===1?void 0:P})}}),A=se({get:()=>p.value,set(P){p.value=P,s({zoom:P===1?void 0:P})}});return{direction:v,style:h,gap:x,speed:k,zoom:A,isLongStrip:se(()=>h.value===Ht.longStrip),isDouble:se(()=>h.value===Ht.double),isRTL:se(()=>v.value===ft.rtl),isVertical:se(()=>v.value===ft.vertical)}}function Wu(e){const t=localStorage.getItem(e),n=Au(t),o={};return n?(n.style!==void 0&&Object.values(Ht).includes(n.style)&&(o.style=n.style),n.direction!==void 0&&Object.values(ft).includes(n.direction)&&(o.direction=n.direction),n.gap!==void 0&&n.gap>=Fu&&n.gap<=Vu&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=wn&&n.speed<=xn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=wn&&n.zoom<=xn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const fs=Ee({__name:"ButtonReaderSettings",props:{name:{},direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom","help"],setup(e,{emit:t}){const n=e,o=Q(!1),r=se(()=>n.name??location.hostname);ro({onKeyUp:l=>{l.key==="s"&&!l.metaKey&&!l.ctrlKey&&(o.value=!o.value)}});function i(l){t("update:zoom",Math.round(l)/100)}function s(){o.value=!1,t("help")}return(l,a)=>{const c=us,u=oo,p=cs,h=as,v=ls,x=ss,k=is;return j(),X(Ie,null,[J(u,{title:"Reader settings (S)",disabled:l.disabled,onClick:a[0]||(a[0]=()=>o.value=!0)},{default:ae(()=>[J(c)]),_:1},8,["disabled"]),J(k,{modelValue:o.value,"onUpdate:modelValue":a[5]||(a[5]=A=>o.value=A),name:r.value},{actions:ae(()=>[J(u,{transparent:"",onClick:s},{default:ae(()=>[J(p)]),_:1})]),default:ae(()=>[J(v,{label:"Style"},{default:ae(()=>[J(h,{"model-value":l.readerStyle,items:l.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":a[1]||(a[1]=A=>t("update:reader-style",A))},null,8,["model-value","items"])]),_:1}),J(v,{label:"Direction"},{default:ae(()=>[J(h,{"model-value":l.direction,items:l.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":a[2]||(a[2]=A=>t("update:direction",A))},null,8,["model-value","items"])]),_:1}),J(v,{label:"Gap"},{default:ae(()=>[J(h,{"model-value":l.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":a[3]||(a[3]=A=>t("update:gap",A))},null,8,["model-value"])]),_:1}),J(v,{label:"Speed"},{default:ae(()=>[J(x,{"model-value":l.speed,min:G(Bu),max:G(Du),step:G(Ru),suffix:"x","onUpdate:modelValue":a[4]||(a[4]=A=>t("update:speed",A))},{suffix:ae(()=>[St(Qe(l.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),J(v,{label:"Zoom"},{default:ae(()=>[J(x,{"model-value":Math.ceil(l.zoom*100),min:G(wn)*100,max:G(xn)*100,step:G(Nu)*100,"onUpdate:modelValue":i},{suffix:ae(()=>[St(Qe(Math.ceil(l.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Uu=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Ku={},Yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Xu=[Y("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function qu(e,t){return j(),X("svg",Yu,Xu)}const ds=xe(Ku,[["render",qu]]),Zu=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),Qu={},Ju={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Gu=[Y("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function ef(e,t){return j(),X("svg",Ju,Gu)}const ps=xe(Qu,[["render",ef]]),tf=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"})),nf={},of={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rf=[Y("path",{d:"M18.652 3C18.0277 3 17.5216 3.5061 17.5216 4.13042V5.26083H16.3912C15.7669 5.26083 15.2608 5.76693 15.2608 6.39125C15.2608 7.01556 15.7669 7.52166 16.3912 7.52166H17.5216V8.65208C17.5216 9.27639 18.0277 9.78249 18.652 9.78249C19.2764 9.78249 19.7825 9.27639 19.7825 8.65208V7.52166H20.9129C21.5372 7.52166 22.0433 7.01556 22.0433 6.39125C22.0433 5.76693 21.5372 5.26083 20.9129 5.26083H19.7825V4.13042C19.7825 3.5061 19.2764 3 18.652 3Z",fill:"currentColor"},null,-1),Y("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.0183 5.92413L8.24658 7.18954C7.65717 7.34584 7.24677 7.87926 7.24677 8.48905V18.0483C7.24677 18.4887 7.72075 18.7663 8.10482 18.5509L11.4937 16.65C11.7272 16.519 12.012 16.519 12.2454 16.65L18.6384 20.2363C19.1505 20.5235 19.7825 20.1534 19.7825 19.5663L19.7825 12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 6.23454 13.0067 6.07783 13.0183 5.92413Z",fill:"currentColor"},null,-1),Y("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.49315 4.13042C4.64457 4.13042 3.95667 4.81833 3.95667 5.6669V19.5663C3.95667 20.1535 4.58867 20.5236 5.10077 20.2363L11.4937 16.6501C11.7272 16.5191 12.012 16.5191 12.2454 16.6501L18.6384 20.2363C19.1505 20.5236 19.7825 20.1535 19.7825 19.5663V12.0433H18.6521C15.5305 12.0433 13 9.5128 13 6.39125C13 5.26083 13.3507 4.13042 13.3507 4.13042H5.49315Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function sf(e,t){return j(),X("svg",of,rf)}const hs=xe(nf,[["render",sf]]),lf=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),af={},cf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uf=[Y("path",{d:"M17.1026 8.89862C17.1114 8.90798 17.1203 8.91723 17.1295 8.92636C17.5709 9.36781 18.2866 9.36781 18.7281 8.92636L22.7247 4.92974C23.1662 4.48828 23.1662 3.77255 22.7247 3.33109C22.2833 2.88964 21.5675 2.88964 21.1261 3.33109L17.9292 6.52793L17.1286 5.72729C16.6871 5.28583 15.9714 5.28583 15.5299 5.72729C15.0885 6.16874 15.0885 6.88448 15.5299 7.32593L17.1026 8.89862Z",fill:"currentColor"},null,-1),Y("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9564 5.92413L8.18463 7.18954C7.59522 7.34584 7.18481 7.87926 7.18481 8.48905V18.0483C7.18481 18.4887 7.65879 18.7663 8.04287 18.5509L11.4318 16.65C11.6652 16.519 11.95 16.519 12.1835 16.65L18.5764 20.2363C19.0885 20.5235 19.7205 20.1534 19.7205 19.5663L19.7205 12.0433H18.5901C15.4686 12.0433 12.938 9.5128 12.938 6.39125C12.938 6.23454 12.9448 6.07783 12.9564 5.92413Z",fill:"currentColor"},null,-1),Y("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.4312 4.13042C4.58262 4.13042 3.89471 4.81833 3.89471 5.6669V19.5663C3.89471 20.1535 4.52672 20.5236 5.03882 20.2363L11.4318 16.6501C11.6652 16.5191 11.95 16.5191 12.1835 16.6501L18.5764 20.2363C19.0885 20.5236 19.7205 20.1535 19.7205 19.5663V5.6669C19.7205 5.6646 19.7205 5.66229 19.7205 5.65998V12.0433H18.5901C15.4685 12.0433 12.938 9.5128 12.938 6.39125C12.938 5.26083 13.2887 4.13042 13.2887 4.13042H5.4312Z",fill:"currentColor","fill-opacity":"0.5"},null,-1)];function ff(e,t){return j(),X("svg",cf,uf)}const gs=xe(af,[["render",ff]]),df=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),pf={},hf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gf=[Y("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function mf(e,t){return j(),X("svg",hf,gf)}const ms=xe(pf,[["render",mf]]),vf=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),bf=["aria-hidden"],_f=["onClick"],yf=["onClick"],wf={class:"inline-flex items-center justify-center w-full h-full px-4 rounded-full group-hover:bg-stone-100 group-hover:bg-opacity-20 duration-200"},xf={class:"whitespace-nowrap"},rr=Ee({__name:"ButtonDropdown",props:{modelValue:{},label:{},title:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q(!1),i=Q(null),s=Q(!1),l=Q(!1),a=Q(!1);ro({onKeyDown:v});const c=or();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(p(),gt(()=>setTimeout(()=>{var g,T;(T=(g=i.value)==null?void 0:g.children[n.modelValue])==null||T.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),k(o.value)):setTimeout(A,250)}function p(){const g=o.value;if(g){const T=g.getBoundingClientRect(),P=T.x+T.width/2;s.value=T.y>window.innerHeight/2,l.value=P<window.innerWidth/3,a.value=P>window.innerWidth/3*2}}function h(g){g!=n.modelValue&&t("update:modelValue",g),u()}function v(g){r.value&&g.key==="Escape"&&(u(),g.preventDefault())}let x=[];function k(g){const T=window.getComputedStyle(g).zIndex,P=g.style.zIndex;(!T||!(+T>0))&&((!g.parentElement||g.parentElement.childElementCount>1)&&(g.style.zIndex="1",x.push({el:g,zIndex:P})),g.parentElement&&k(g.parentElement))}function A(){x.forEach(({el:g,zIndex:T})=>{g.style.zIndex=T??""}),x=[]}let q=!1;function $(){q||(q=!0,c(!0,{desktopOnly:!0}))}function F(){q&&(q=!1,c(!1,{desktopOnly:!0}))}return(g,T)=>{const P=ms;return j(),X("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(j(),X("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Me("",!0),g.items.length?(j(),ke(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:ae(()=>[r.value?(j(),X("ul",{key:0,ref_key:"list",ref:i,"aria-hidden":!r.value,class:Oe(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[70vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":s.value,"origin-top top-full translate-y-1.5":!s.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:T[0]||(T[0]=nt(()=>{},["stop"]))},[(j(!0),X(Ie,null,pn(g.items,(B,S)=>mt((j(),X("li",{key:S,tabindex:"-1",class:Oe(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":S===g.modelValue}]),onClick:()=>h(S)},[Y("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":S>0}])},[Pe(g.$slots,"item",{item:B},()=>[St(Qe(B),1)])],2)],10,_f)),[[G(on),30]])),128))],42,bf)):Me("",!0)]),_:3})):Me("",!0),mt((j(),X("button",to({type:"button",tabindex:"-1",class:["w-full h-10 max-h-full rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":g.disabled}]},g.title?{title:g.title}:{},{onClick:nt(u,["stop"]),onMouseenter:$,onMouseleave:F}),[Y("div",wf,[Y("span",xf,Qe(g.label),1),g.items.length?(j(),X("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[J(P)],2)):Me("",!0)])],16,yf)),[[G(on),30]])],512)}}}),kf=Object.freeze(Object.defineProperty({__proto__:null,default:rr},Symbol.toStringTag,{value:"Module"})),vs=Ee({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=se(()=>n.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=se(()=>{const a=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:p})=>p===a));return c===-1?n.pages.length-1:c}),i=se(()=>n.pages.length?`${o.value[r.value]}/${n.totalImgs}`:"--");function s(a){const c=n.pages[a][0].index;l(c)}function l(a){t("update:modelValue",a)}return(a,c)=>{const u=rr;return j(),ke(u,{"model-value":r.value,label:i.value,title:"Current page",items:o.value,disabled:a.disabled,"onUpdate:modelValue":s},null,8,["model-value","label","items","disabled"])}}}),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),Sf={},If={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Tf=[Y("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function $f(e,t){return j(),X("svg",If,Tf)}const bs=xe(Sf,[["render",$f]]),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),Pf={},Of={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Mf=[Y("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Lf(e,t){return j(),X("svg",Of,Mf)}const _s=xe(Pf,[["render",Lf]]),zf=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),Af={},jf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Bf=[Y("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Df(e,t){return j(),X("svg",jf,Bf)}const ys=xe(Af,[["render",Df]]),Rf=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),Nf={},Ff={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Vf=[Y("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Hf(e,t){return j(),X("svg",Ff,Vf)}const ws=xe(Nf,[["render",Hf]]),Wf=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"}));var xs;const ir=typeof window<"u",Uf=e=>typeof e=="string",Et=()=>{};ir&&((xs=window==null?void 0:window.navigator)!=null&&xs.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function io(e){return typeof e=="function"?e():G(e)}function ks(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function Kf(e,t={}){let n,o,r=Et;const i=l=>{clearTimeout(l),r(),r=Et};return l=>{const a=io(e),c=io(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,p)=>{r=t.rejectOnCancel?p:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function Yf(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=Et,a;const c=()=>{i&&(clearTimeout(i),i=void 0,l(),l=Et)};return p=>{const h=io(e),v=Date.now()-r,x=()=>a=p();if(c(),h<=0)return r=Date.now(),x();if(v>h&&(n||!s))r=Date.now(),x();else if(t)return new Promise((k,A)=>{l=o?A:k,i=setTimeout(()=>{r=Date.now(),s=!0,k(x()),c()},h-v)});return!n&&!i&&(i=setTimeout(()=>s=!0,h)),s=!1,a}}function Xf(e){return e}function sr(e){return wr()?(fl(e),!0):!1}function Ke(e,t=200,n={}){return ks(Kf(t,n),e)}function Cs(e,t=200,n=!1,o=!0,r=!1){return ks(Yf(t,n,o,r),e)}function Ss(e,t=!0){Pi()?et(e):t?e():gt(e)}function Wt(e){var t;const n=io(e);return(t=n==null?void 0:n.$el)!=null?t:n}const kn=ir?window:void 0,qf=ir?window.document:void 0;function Pt(...e){let t,n,o,r;if(Uf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=kn):[t,n,o,r]=e,!t)return Et;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,p,h)=>(u.addEventListener(p,h,r),()=>u.removeEventListener(p,h,r)),a=ve(()=>Wt(t),u=>{s(),u&&i.push(...n.flatMap(p=>o.map(h=>l(u,p,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return sr(c),c}function Is(e,t=!1){const n=Q(),o=()=>n.value=!!e();return o(),Ss(o,t),n}const Ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$s="__vueuse_ssr_handlers__";Ts[$s]=Ts[$s]||{};function Es({document:e=qf}={}){if(!e)return Q("visible");const t=Q(e.visibilityState);return Pt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ps=Object.getOwnPropertySymbols,Zf=Object.prototype.hasOwnProperty,Qf=Object.prototype.propertyIsEnumerable,Jf=(e,t)=>{var n={};for(var o in e)Zf.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ps)for(var o of Ps(e))t.indexOf(o)<0&&Qf.call(e,o)&&(n[o]=e[o]);return n};function Gf(e,t,n={}){const o=n,{window:r=kn}=o,i=Jf(o,["window"]);let s;const l=Is(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=ve(()=>Wt(e),p=>{a(),l.value&&r&&p&&(s=new ResizeObserver(t),s.observe(p,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return sr(u),{isSupported:l,stop:u}}function lr(e,t={width:0,height:0},n={}){const{window:o=kn,box:r="content-box"}=n,i=se(()=>{var a,c;return(c=(a=Wt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Q(t.width),l=Q(t.height);return Gf(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&i.value){const u=Wt(e);if(u){const p=o.getComputedStyle(u);s.value=parseFloat(p.width),l.value=parseFloat(p.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((p,{inlineSize:h})=>p+h,0),l.value=u.reduce((p,{blockSize:h})=>p+h,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),ve(()=>Wt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function ar(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=kn}=n,l=Is(()=>s&&"IntersectionObserver"in s);let a=Et;const c=l.value?ve(()=>({el:Wt(e),root:Wt(o)}),({el:p,root:h})=>{if(a(),!p)return;const v=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:i});v.observe(p),a=()=>{v.disconnect(),a=Et}},{immediate:!0,flush:"post"}):Et,u=()=>{a(),c()};return sr(u),{isSupported:l,stop:u}}var Os;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Os||(Os={}));var ed=Object.defineProperty,Ms=Object.getOwnPropertySymbols,td=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,Ls=(e,t,n)=>t in e?ed(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,od=(e,t)=>{for(var n in t||(t={}))td.call(t,n)&&Ls(e,n,t[n]);if(Ms)for(var n of Ms(t))nd.call(t,n)&&Ls(e,n,t[n]);return e};od({linear:Xf},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function rd(e={}){const{window:t=kn,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Q(n),l=Q(o),a=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),Ss(a),Pt("resize",a,{passive:!0}),r&&Pt("orientationchange",a,{passive:!0}),{width:s,height:l}}const zs=xe(Ee({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Q(null),o=Q(0),r=Q([]),i=se(()=>r.value[o.value]),s=Cs(l,500);et(()=>{const u=lr(n),p=Ke(()=>a({width:u.width.value,height:u.height.value}),50);p(),ve(u.width,p),ve(u.height,p)});function l(){o.value>=r.value.length-1?t("hide"):o.value++}function a(u){const p=c();r.value=p.map(({rect:h,text:v})=>{const x=h.top<u.height-h.bottom,k=h.left<u.width-h.right;return{text:v,style:{left:`${h.left}px`,top:`${h.top}px`,width:`${h.width}px`,height:`${h.height}px`},textStyle:{left:k?`${h.left-12}px`:void 0,right:k?void 0:`${u.width-h.left}px`,top:x?`${h.bottom+12}px`:`${h.top+20}px`,textAlign:x?void 0:"right",transform:x?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var h;const u=(h=n.value)==null?void 0:h.parentElement;if(!u)return[];const p=[];return u.querySelectorAll("[data-tour]").forEach(v=>{var A;const x=(A=v.getAttribute("data-tour"))==null?void 0:A.trim();if(!(x!=null&&x.length))return;const k=v.getBoundingClientRect();p.push({rect:k,text:x})}),p}return(u,p)=>{var h,v;return j(),X(Ie,null,[Y("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),Y("div",{ref_key:"root",ref:n,class:"tour",onClick:p[0]||(p[0]=nt((...x)=>G(s)&&G(s)(...x),["stop"]))},[i.value?(j(),X("div",{key:o.value,class:"tour__target",style:Be(i.value.style)},null,4)):Me("",!0),(j(),X("div",{key:o.value,class:"tour__text",style:Be((h=i.value)==null?void 0:h.textStyle)},Qe(((v=i.value)==null?void 0:v.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
4
+ `]]]),id=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),sd=Y("div",{class:"fixed-screen bg-black bg-opacity-90"},null,-1),As=Ee({__name:"HelpScreen",props:{touchDevice:{type:Boolean}},emits:["hide"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q([]);et(async()=>{const a=lr(o),c=Ke(()=>{i({width:a.width.value,height:a.height.value})},50);c(),ve(a.width,c),ve(a.height,c)});function i(a){var p;const c=(p=o.value)==null?void 0:p.parentElement;if(!c)return;const u=Array.from(c.querySelectorAll("#controls [title]"));u.length&&(r.value=s(u,a))}function s(a,c){const u=[],p=[];let h=0,v=0;const x=50,k=25;a.forEach(g=>{var L;const T=(L=g.getAttribute("title"))==null?void 0:L.trim(),P=g.getBoundingClientRect();if(!T||!P.height||!P.width)return;const B=Math.ceil((P.top-10)/x),S=Math.ceil((P.left-10)/x);p.push({isTour:!1,title:T,rect:P,fromX:S,toX:Math.max(S+1,Math.ceil((P.right+10)/x)),fromY:B,toY:Math.max(B+1,Math.ceil((P.bottom+10)/x))})}),p.forEach(g=>{for(let T=g.fromY;T<g.toY;T++){u[T]??(u[T]=[]);for(let P=g.fromX;P<g.toX;P++)u[T][P]=g;g.toY>h+1&&(h=g.toY-1),g.toX>v+1&&(v=g.toX-1)}});let A=v/2;p.forEach(g=>{g.isAlignRight=g.fromX>A});const q=(g,T)=>{u[T]??(u[T]=[]);const P=T>=g.toY;if(g.isTour)for(let B=g.fromX;B<g.toX;B++)delete u[g.fromY][B],g.fromY=T,g.toY=T+(P?1:-1),u[T][B]=g;else{const B=g.isAlignRight?g.fromX-3:g.fromX,S=B+3;g.helpItem={fromX:B,toX:S,fromY:T,toY:T+1,isTour:!0,isAlignRight:g.isAlignRight};for(let L=B;L<S;L++)u[T][L]=g.helpItem}},$=(g,T)=>{if(T>h||T<0)return!1;const P=T>=g.toY,B=u[T];if(!B)return q(g,T),!0;const S=B[g.fromX];if(S&&!S.isTour)return!1;if(S&&S.isTour)return $(S,P?T+1:T-1)?(q(g,T),!0):!1;if(!S){const L=g.isAlignRight?-1:1;return B[g.fromX+L]||B[g.fromX+L*2]?$(g,P?T+1:T-1):(q(g,T),!0)}return!1};p.forEach(g=>{if(!$(g,g.toY)){if(g.isAlignRight){const T=u[g.fromY]??[];if(!T.slice(g.fromX-3,g.fromX).filter(Boolean).length){const B=g.fromX-3,S=g.fromX;g.helpItem={isTour:!0,isAlignRight:!0,fromX:B,toX:S,fromY:g.fromY,toY:g.toY};for(let L=g.fromX-3;L<g.fromX;L++)T[L]=g.helpItem;return}}$(g,g.fromY-1)}});const F=[];return p.forEach(g=>{const{title:T,helpItem:P,rect:B,isAlignRight:S,fromX:L,fromY:te,toY:ue}=g;if(!T||!P||!B)return;const y=P.fromY>=ue,b=P.toY<=te;F.push({title:l(T),style:{top:y?`${B.bottom+(P.fromY-ue)*x+k}px`:b?void 0:`${B.top+8}px`,bottom:b?`${c.height-B.top+(P.toY-te)*x+k}px`:void 0,left:S?void 0:`${B.left}px`,right:S?y?`${c.width-B.right}px`:`${c.width-B.right+B.width+k}px`:void 0},arrowStyle:{width:b||y?"2px":`${Math.abs(P.toX-L)*x+k-5}px`,height:b||y?`${(y?P.fromY-ue:te-P.toY)*x+k}px`:"2px",top:y?`${B.bottom}px`:b?void 0:`${B.top+20}px`,bottom:b?`${c.height-B.top}px`:void 0,left:S?void 0:`${B.left+B.width/2}px`,right:S?y?`${c.width-B.right+B.width/2}px`:`${c.width-B.right+B.width}px`:void 0}})}),F}function l(a){return n.touchDevice?a.split("(")[0].trim():a}return(a,c)=>(j(),X(Ie,null,[sd,Y("div",{ref_key:"root",ref:o,class:"fixed-screen z-20 overscroll-contain select-none",onClick:c[0]||(c[0]=nt(u=>t("hide"),["stop"]))},[(j(!0),X(Ie,null,pn(r.value,u=>(j(),X(Ie,{key:u.title},[Y("div",{class:"absolute",style:Be(u.style)},Qe(u.title),5),Y("div",{class:"absolute bg-stone-300 rounded-lg",style:Be(u.arrowStyle)},null,4)],64))),128))],512)],64))}}),ld=Object.freeze(Object.defineProperty({__proto__:null,default:As},Symbol.toStringTag,{value:"Module"})),js=xe(Ee({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=Q(0);return ve(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const i=tr,s=nr;return n.value?(j(),X("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?(j(),ke(i,{key:0})):(j(),ke(s,{key:1}))])):Me("",!0)}}}),[["styles",[`.animate-pause-fade{animation:pause-fade .4s linear forwards;transform-origin:center}@keyframes pause-fade{0%{opacity:0;transform:scale(.3)}10%{opacity:1;transform:scale(.35)}55%{opacity:1;transform:scale(.65)}to{opacity:0;transform:scale(1)}}
5
+ `]]]),ad=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),cd={},ud={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},fd=[Y("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function dd(e,t){return j(),X("svg",ud,fd)}const Bs=xe(cd,[["render",dd]]),pd=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Ds=Ee({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Q(typeof n!="string"||+n!==t.direction),r=Ke(()=>o.value=!1,1250);ve(()=>t.direction,()=>{i(),o.value=!0,r()}),et(()=>{i(),r();let s;const l=Es();ve(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=Bs;return j(),ke(nn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[o.value?(j(),X("div",{key:0,class:Oe(["fixed z-50 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-none w-28 h-24 p-4 bg-black bg-opacity-40 rounded-2xl duration-500",{"rotate-90":s.direction===G(ft).vertical,"rotate-180":s.direction===G(ft).rtl}])},[J(a)],2)):Me("",!0)]),_:1})}}}),hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ds},Symbol.toStringTag,{value:"Module"})),so=[];function gd(e){so.push(e),at(()=>{const t=so.indexOf(e);t!==-1&&so.splice(t,1)})}function md(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;so.forEach(s=>s(r,i))}const vd=["onClick"],Rs=Ee({__name:"ZoomWrapper",props:{modelValue:{},pageIndex:{},playController:{},rtl:{type:Boolean},horizontal:{type:Boolean},longStrip:{type:Boolean},touchDevice:{type:Boolean},busy:{type:Boolean}},emits:["update:modelValue","dragEnd","click"],setup(e,{emit:t}){const n=e,o=Q(null),r=Q(Math.min(xn,Math.max(wn,n.modelValue))),i=Q(!1),s=Q(!1),l=Q(!1);ve(()=>n.modelValue,b=>y(b)),et(()=>{n.touchDevice?(Pt(window,"touchstart",k),gd(S)):(Pt(o,"mousedown",p),Pt(window,"wheel",F))}),ro({onKeyDown:b=>{var K;if(!n.busy&&((K=o.value)==null||K.focus(),!(b.key==="Meta"||b.key==="Control")&&(b.ctrlKey||b.metaKey)))switch(b.key){case"0":y(1);break;case"-":y(r.value-.2),b.preventDefault();break;case"=":case"+":y(r.value+.2),b.preventDefault();break}}});function a(b){s.value!==b&&(s.value=b,b?n.playController.pause():(t("dragEnd"),n.playController.resume()))}let c={x:0,y:0},u={x:0,y:0};function p(b){b.button===0&&(c={x:b.clientX,y:b.clientY},u={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",h),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",h),setTimeout(()=>a(!1))},{once:!0}),b.preventDefault(),b.stopPropagation())}function h(b){a(!0);const K=b.clientX-c.x,ne=b.clientY-c.y,H=o.value;H.scrollLeft=u.x-K,H.scrollTop=u.y-ne}let v=!1,x={distance:0,zoom:r.value,x:0,y:0};function k(b){n.busy||(v=b.touches.length===2,v&&(a(!0),b.stopPropagation(),b.preventDefault(),x={distance:g(b),zoom:r.value,x:(b.touches[0].clientX+b.touches[1].clientX)/2,y:(b.touches[0].clientY+b.touches[1].clientY)/2}),(v||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",q),window.addEventListener("touchend",A,{once:!0})))}function A(){if(window.removeEventListener("touchmove",q),v){a(!1),v=!1;return}if(!s.value)return;const b=Ke(()=>{a(!1),o.value.removeEventListener("scroll",ne)},100),K=setTimeout(b,100);o.value.addEventListener("scroll",ne);function ne(){clearTimeout(K),b()}}function q(b){if(a(!0),v){b.stopPropagation(),b.preventDefault();const ne=g(b)/x.distance;y(Math.ceil(ne*x.zoom*100)/100,x)}}const $=Ke(()=>i.value=!1,100);function F(b){if(!n.busy){if(b.ctrlKey||b.metaKey){b.stopPropagation(),b.preventDefault();const K=Math.ceil((r.value+b.deltaY*-.01)*100)/100;y(K,{x:b.clientX,y:b.clientY});return}n.horizontal&&(i.value||(i.value=!0),$(),b.deltaY&&(o.value&&(o.value.scrollLeft+=b.deltaY*(n.rtl?-1:1)),b.stopPropagation(),b.preventDefault()))}}function g(b){return Math.hypot(b.touches[0].clientX-b.touches[1].clientX,b.touches[0].clientY-b.touches[1].clientY)}let T=0,P;function B(b){if(!s.value){if(!n.touchDevice){t("click",b);return}T++,P&&clearTimeout(P),T===2&&S(b.clientX,b.clientY),P=setTimeout(()=>{!s.value&&T===1&&t("click",b),P=void 0,T=0},300)}}function S(b,K){if(!T)return;T=0;const ne=r.value===1?2:1;y(ne,{x:b,y:K})}let L;const te=Ke(()=>{l.value=!1,L=void 0},150);function ue(){if(!l.value){const b=o.value;if(!b)return;const K=b.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;K&&(L={el:K,rect:K.getBoundingClientRect()},l.value=!0)}if(L)return te(),L}async function y(b,K){const ne=o.value,H=Math.min(xn,Math.max(wn,b));if(!ne||r.value===H)return;const ce=ue();if(!ce)return;const re=(K==null?void 0:K.x)??ne.clientWidth/2,ye=(K==null?void 0:K.y)??ne.clientHeight/2;r.value=H,t("update:modelValue",H),await gt();const{el:R,rect:W}=ce,z=R.offsetWidth/W.width,V=R.offsetHeight/W.height;ne.scrollLeft=R.offsetLeft-W.left*z+re*(z-1),ne.scrollTop=R.offsetTop-W.top*V+ye*(V-1)}return(b,K)=>(j(),X("div",{ref_key:"root",ref:o,tabindex:"0",class:Oe(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":!b.longStrip&&(s.value||i.value||l.value),"cursor-grabbing":s.value,"overflow-hidden":l.value}]),style:Be({"font-size":`${r.value}px`}),onClick:nt(B,["stop"])},[Pe(b.$slots,"default")],14,vd))}}),bd=Object.freeze(Object.defineProperty({__proto__:null,default:Rs},Symbol.toStringTag,{value:"Module"})),Ns=Ee({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Q(null),o=Q(!1);return et(async()=>{await gt();let r=!1;ar(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(j(),X("div",{ref_key:"root",ref:n},[Pe(r.$slots,"default",{visible:o.value})],512))}}),_d=Object.freeze(Object.defineProperty({__proto__:null,default:Ns},Symbol.toStringTag,{value:"Module"}));function yd({pageIndex:e,isLongStrip:t}){let n=e.value,o=e.value+3;const r=Q(n),i=Q(o),s=Ke(l,50);ve(e,a=>{n>a&&(n=a)});function l(){r.value!==n&&(r.value=n),i.value!==o&&(i.value=o)}return{min:r,max:i,onPageVisible(a){o<a&&(o=a),s()},onScroll(){t.value?l():s()}}}const wd={key:0,class:"page--loading"},xd=["src"],kd=["src"],Cd=["data-index"],Fs=xe(Ee({__name:"ReaderBody",props:{pageIndex:{},direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},touchDevice:{type:Boolean},playController:{},busy:{type:Boolean},idle:{type:Boolean}},emits:["update:zoom","update:playing","dragEnd","click","end","prev","next"],setup(e,{emit:t}){const n=e,o=Q(null),r=se(()=>{var v;return(v=o.value)==null?void 0:v.$el}),i=Q(null),s=lr(r),l=se(()=>{const{width:v,height:x}=s,k=n.isLongStrip?n.isVertical?v.value:x.value:Math.min(v.value,x.value);return Math.min(4,Math.max(1,Math.ceil(k/400-1)))*n.gap}),a=yd({pageIndex:se(()=>n.pageIndex),isLongStrip:se(()=>n.isLongStrip)}),c=se(()=>{const{width:{value:v},height:{value:x}}=s;return n.pages.map(k=>{var S;const A=k.some(L=>{var te;return(te=L.img)==null?void 0:te.isLoading}),q=k.map(L=>L.index),$={isLoading:A,indexes:q};if(A||q[q.length-1]<a.min.value-1||q[0]>a.max.value+2)return $;const F=k.map(({img:L})=>L).filter(Boolean);if(!F.length||($.srcs=F.map(({src:L})=>L),F.every(L=>L.hasError)))return $;const T=(S=F.find(L=>!L.hasError))==null?void 0:S.size,P=F.reduce((L,te)=>{var ue;return L+(((ue=te.size)==null?void 0:ue.width)??T.width)},0),B=F.reduce((L,te)=>{var ue;return L+(((ue=te.size)==null?void 0:ue.height)??T.height)},0)/F.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&v/P<x/B?($.width=Math.min(v,P),$.height=B*$.width/P):$.height=Math.min(x,B),$})}),u=se(()=>{const v=n.isVertical?"width":"height";return c.value.map(x=>x[v]).filter(Boolean).sort((x,k)=>k-x)[0]});function p({indexes:v}){const x=v[v.length-1];x!==void 0&&a.onPageVisible(x)}function h(v){if(!n.isLongStrip){const x=n.isVertical?s.height.value:s.width.value,A=(n.isVertical?v.clientY:n.isRTL?x-v.clientX:v.clientX)/x;if(A<=.2){t("prev");return}else if(A>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(v,x)=>{const k=er,A=Ns,q=Rs;return j(),ke(q,{ref_key:"root",ref:o,"model-value":v.zoom,"page-index":v.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":v.isLongStrip,"reader-body--pages":!v.isLongStrip,"reader-body--vertical":v.isVertical,"reader-body--rtl":v.isRTL,"reader-body--idle":v.idle}]),"play-controller":v.playController,horizontal:!v.isVertical,rtl:v.isRTL,"touch-device":v.touchDevice,busy:v.busy,"long-strip":v.isLongStrip,style:Be({"--gap":`${l.value}em`,"--space-top":(v.spaceTop||0)+"px","--screen-width-em":G(s).width.value+"em","--screen-height-em":G(s).height.value+"em",...v.isLongStrip?{"--max-size-em":u.value+"em"}:{}}),"onUpdate:modelValue":x[0]||(x[0]=$=>t("update:zoom",$)),onDragEnd:x[1]||(x[1]=()=>t("dragEnd")),onClick:h,onScroll:G(a).onScroll},{default:ae(()=>[(j(!0),X(Ie,null,pn(c.value,$=>(j(),ke(A,to({key:v.direction+"_"+$.indexes[0],"data-index":$.indexes[0]},$.indexes.length>1?{"data-index2":$.indexes[1]}:{},{onVisible:()=>p($)}),{default:ae(({visible:F})=>{var g;return[!((g=$.srcs)!=null&&g.length)||$.isLoading?(j(),X("div",wd,[mt(J(k,null,null,512),[[Ji,F]])])):$.srcs.length==1?(j(),X("img",{key:1,src:$.srcs[0],style:Be({height:$.height!==void 0?$.height+"em":""})},null,12,xd)):(j(),X("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":v.isRTL}]),style:Be({width:$.width!==void 0?$.width+"em":"",height:$.height!==void 0?$.height+"em":""})},[(j(!0),X(Ie,null,pn($.srcs,T=>(j(),X("div",{key:T},[Y("img",{src:T},null,8,kd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),Y("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":v.totalImgs},[Pe(v.$slots,"end")],8,Cd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style","onScroll"])}}}),[["styles",[`.reader-body{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:1024px){.reader-body{transform:none}}.reader-body--rtl{flex-direction:row-reverse}.reader-body.reader-body--vertical>div{padding:calc(var(--gap)/2) 0}.reader-body:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.reader-body:not(.reader-body--vertical)>div{padding:0 calc(var(--gap)/2)}.reader-body--long-strip.reader-body--vertical>div:first-child{margin-top:var(--space-top);padding-top:0}.reader-body--long-strip.reader-body--vertical>div:last-child{padding-bottom:0}.reader-body--long-strip.reader-body--vertical>div{width:var(--max-size-em)}.reader-body--long-strip.reader-body--vertical .page--loading{height:75vh;max-width:100%;width:100vw}.reader-body--long-strip.reader-body--vertical .last{height:100vh}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical) .page--loading{height:100vh;max-height:100%;max-width:100vw;width:680px}.reader-body--long-strip:not(.reader-body--vertical) .last{width:100vw}.reader-body--long-strip>div>img{flex-shrink:0;margin:auto}.reader-body--pages:after,.reader-body--pages:before{content:"";cursor:pointer;display:block;position:fixed;z-index:10}.reader-body--pages.reader-body--idle:after,.reader-body--pages.reader-body--idle:before{cursor:none}.reader-body--pages>div{align-items:center;display:grid;justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center}.reader-body--pages.reader-body--vertical{--tw-scroll-snap-strictness:mandatory;scroll-snap-type:y var(--tw-scroll-snap-strictness)}.reader-body--pages.reader-body--vertical:after,.reader-body--pages.reader-body--vertical:before{height:20vw;left:0;right:0}.reader-body--pages.reader-body--vertical:before{top:0}.reader-body--pages.reader-body--vertical:after{bottom:0}.reader-body--pages.reader-body--vertical>div{width:var(--screen-width-em)}.reader-body--pages:not(.reader-body--vertical){--tw-scroll-snap-strictness:mandatory;scroll-snap-type:x var(--tw-scroll-snap-strictness)}.reader-body--pages:not(.reader-body--vertical):after,.reader-body--pages:not(.reader-body--vertical):before{bottom:0;top:0;width:20vw}.reader-body--pages:not(.reader-body--vertical):before{left:0}.reader-body--pages:not(.reader-body--vertical):after{right:0}.reader-body--pages:not(.reader-body--vertical)>div{height:var(--screen-height-em)}.reader-body--pages .page--loading{height:100vh;width:100vw}.reader-body--pages .page--double{align-items:center;display:flex;gap:var(--gap);justify-content:center}.reader-body--pages .page--double div{display:flex;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body--pages .page--double div img{flex-shrink:0;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body .page--loading{align-items:center;display:flex;justify-content:center}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-o-object-fit:contain!important;object-fit:contain!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
6
+ `]]]),Sd=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Id={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Td={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},$d={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Vs=xe(Ee({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=Q(null),o=Q(null),r=Q(!1),i=Q(!1),s=Q(3);return et(()=>{let l;ar(o,a=>{i.value=a.some(c=>c.isIntersecting),s.value=5,l&&(clearInterval(l),l=void 0),i.value&&(l=setInterval(()=>{s.value-=1,s.value<=0&&(clearInterval(l),l=void 0,t("next"))},1e3))}),ar(n,a=>{r.value=a.some(c=>c.isIntersecting)}),at(()=>l&&clearInterval(l))}),(l,a)=>(j(),X("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[mt(Y("div",Id,[l.hasNext?(j(),X("div",Td,[i.value?(j(),X("div",$d)):Me("",!0),mt((j(),X("button",{ref_key:"nextButton",ref:o,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:a[0]||(a[0]=nt(()=>t("next"),["stop"]))},[St(" Next in "+Qe(s.value),1)])),[[G(on)]])])):Me("",!0),mt((j(),X("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:a[1]||(a[1]=nt(()=>t("hide"),["stop"]))},[St(" Hide ")])),[[G(on)]])],512),[[Ji,r.value||!l.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
7
+ `]]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"}));async function Cn(e,t,n){const o=await n(()=>{e=0});if(o!==void 0)return o;if(!(e<=0))return await new Promise(r=>{setTimeout(async()=>{const i=await Cn(e-1,t,n);r(i)},t)})}function rn(e=0){return new Promise(t=>setTimeout(t,e))}const Hs=3;function Pd(e){var H,ce,re,ye;const t=((ce=(H=e.raw.value)==null?void 0:H.imgs)==null?void 0:ce.filter(Boolean))??[];let n=!!t.length,o=t.map(R=>({src:R}));const r=an({}),i=[],s=Q((re=e.raw.value)==null?void 0:re.isWebtoon),l=Q((ye=e.raw.value)==null?void 0:ye.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,p=!1,h=!1,v=0,x=0,k,A=e.isAutoShow!==!1?e.page.value:n?zd(t):void 0;const q=Ke(b,100);let $=!1;const F=Ke(B,50),g=()=>{$?F():($=!0,B())};n?g():ue(),ve(()=>{var R;return(R=e.raw.value)==null?void 0:R.imgs},R=>{R!=null&&R.length&&R.length!==o.length&&(n=!0,P(R.map(W=>({src:W}))))}),at(()=>{u=!1,i.forEach(R=>URL.revokeObjectURL(R))}),Yn(()=>{p&&ao({contentEl:k,images:o,page:e.page.value})});function T(){var oe,_e,pe,de;if(p||s.value===void 0||A===void 0)return;const R=Math.max(0,Math.min(A,o.length)),W=o.length-1,z=Math.min(Math.floor(R),W);if(z>=1){const Ae=(oe=o[z])==null?void 0:oe.src;if(!Ae){e.isAutoShow&&ao({contentEl:k,images:o,page:z});return}const Re=(_e=o[z-1])==null?void 0:_e.src;if(Re&&!((pe=r[Re])!=null&&pe.size)||!((de=r[Ae])!=null&&de.size))return}if(p)return;p=!0,e.onReady(R);let V=!0;ve(()=>Math.floor(e.page.value),async(Ae,Re)=>{ao({images:o,page:Ae,smooth:c,skipIfVisible:V}),V=!1,Re??(Re=-1),Ae!==Re&&(v=Math.max(0,v-Math.abs(Ae-Re))),g()},{immediate:!0})}function P(R){(R.length!==o.length||R.some((z,V)=>{const oe=o[V];return(oe==null?void 0:oe.el)!==(z==null?void 0:z.el)||(oe==null?void 0:oe.src)!==(z==null?void 0:z.src)}))&&(o=R,e.isAutoShow===!1&&A===void 0&&(A=Us(R)),g())}async function B(){if(!u)return;const R=async z=>{v++,S(o[z],z).then(()=>{v--,F()}),await rn()},W=Math.max(0,Math.min(o.length-1,Math.floor(e.page.value-1)));for(let z=W;z<o.length;z++){if(v>=Hs)return;await R(z)}for(let z=W-1;z>=0;z--){if(v>=Hs)return;await R(z)}}async function S(R,W){const z=R.el;let V=R.src;if(!z&&!V||V&&r[V])return;const oe=z instanceof HTMLImageElement,_e=z instanceof HTMLCanvasElement;if(z){if(z._tkLoadId_===a)return;if(z._tkLoadId_=a,oe){const de=()=>L(z);z.addEventListener("load",de),at(()=>z.removeEventListener("load",de))}}if(oe&&!V){if(V=lo(z),!V)return;R.src=V}else _e&&!V&&(V=await Ws(z),V&&i.push(V));if(!V)return;const pe=oe&&V.startsWith("blob");pe&&!z.complete||(r[V]={src:V,isLoading:!0,hasError:!1},pe&&c&&await rn(300),te({imgEl:oe?z:void 0,src:V,index:W}))}async function L(R){if(!u)return;const W=o.findIndex(V=>V.el===R);if(W===-1)return;const z=lo(R);z&&(!z.startsWith("blob")&&o[W].src===z||(o[W].src=z,r[z]??(r[z]={src:z,isLoading:!0,hasError:!1}),te({imgEl:R,src:z,index:W})))}async function te({imgEl:R,src:W,index:z}){const V=R?await Md(R,W):W;if(!V)return;R&&V!==W&&i.push(V);const oe=await Ld(V,R),_e=!!oe&&(oe.width<200||oe.height<200);if(r[W]={src:V,size:oe,isLoading:!1,hasError:!oe,invalid:_e},oe&&!s.value&&z>Math.min(1,o.length-2)&&z<Math.max(o.length-2,2)){const pe=oe.height/oe.width,de=pe>2||pe<.5,Ae=pe>1.6||pe<.6;s.value!==de&&(s.value=de),l.value!==Ae&&(l.value=Ae)}T()}function ue(){let R=!1;const W=new MutationObserver(()=>{k&&q(k)});Yn(async()=>{W.disconnect()}),y(z=>{k!==z&&(k=z,W.disconnect(),W.observe(k,{childList:!0,subtree:!0}),R?q(k):(R=!0,b(k)))})}async function y(R){var pe;const W=(pe=e.spec)==null?void 0:pe.content;if(!W){R(document.body);return}const z=await Od(e.spec);let V=W?await Cn(z?100:1,10,()=>document.querySelector(W)):void 0;if(!V)return;R(V);let oe=0;const _e=async()=>{if(u&&!(V!=null&&V.isConnected)&&!n){if(oe=0,V=await Cn(50,20,()=>{const de=document.querySelector(W);return de!=null&&de.isConnected&&de!==V?de:void 0}),!V)return;R(V)}!u||n||++oe>=10||setTimeout(_e,200)};setTimeout(_e,200)}async function b(R){var oe;if(!u||!R.isConnected||n)return;const W=Date.now();x=W;const z=(oe=e.spec)==null?void 0:oe.imgDivs,V=z?await K(R,z):ne(R);if(!(x!==W||!R.isConnected||!u||n)){if(!e.raw.value&&!V.length){e.onError("no_img");return}P(V)}}async function K(R,W){const z=Array.from(R.querySelectorAll(W)),V=new Map,oe=z.map(_e=>{const pe=_e.querySelectorAll("img,canvas");for(const de of pe)if(cr(de,V)){if(de instanceof HTMLCanvasElement){if(Ks(de))return{el:de,parentEl:_e}}else if(de instanceof HTMLImageElement&&Ys(de)){const Ae=lo(de);return{el:de,src:Ae,parentEl:_e}}}return{parentEl:_e}});return!h&&e.isAutoShow!==!1&&e.page.value&&(h=!0,ao({contentEl:R,images:oe,page:e.page.value,skipIfVisible:!0}),await rn(1)),oe}function ne(R){const W=[],z={},V=new Map;return Array.from(R.querySelectorAll("img,canvas")).forEach(_e=>{if(cr(_e,V)){if(_e instanceof HTMLCanvasElement)Ks(_e)&&W.push({el:_e});else if(_e instanceof HTMLImageElement&&Ys(_e)){const pe=lo(_e);if(pe){const de=z[pe];if(de!==void 0&&de!==-1){W.splice(de,1);return}z[pe]=W.length}W.push({el:_e,src:pe})}}}),W}return{asyncImgs:se(()=>{Object.values(r);const R=[];return o.forEach(({src:W,parentEl:z})=>{const V=W?r[W]:void 0;(W&&!(V!=null&&V.invalid)||z)&&R.push(V)}),R}),isWebtoon:se(()=>s.value??!1),maybeWebtoon:se(()=>l.value??!1)}}async function Od(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await Cn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const i=s=>s.preventDefault();r.addEventListener("click",i),at(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await rn(),!0}function Ws(e){return new Promise(t=>{const n=o=>{if(!o)return t(void 0);const r=URL.createObjectURL(o);t(r)};e.toBlob(n,"image/jpeg",1)})}async function Md(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e.naturalWidth,s=e.naturalHeight;return o.width=i,o.height=s,r==null||r.drawImage(e,0,0,i,s),await Ws(o)}async function Ld(e,t){return(t==null?void 0:t.src)===e&&t.naturalWidth&&t.naturalHeight?{width:t.naturalWidth,height:t.naturalHeight}:await new Promise(n=>{const o=new Image,r=setInterval(()=>{const{naturalWidth:i,naturalHeight:s}=o;s&&i&&(n({width:i,height:s}),clearInterval(r))},20);o.onerror=()=>{n(void 0),clearInterval(r)},o.src=e})}function zd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src)).map(o=>({el:o}));return Us(n)}function Us(e){var t,n;for(let o=0;o<e.length;o++){const r=((t=e[o])==null?void 0:t.el)??((n=e[o])==null?void 0:n.parentEl),i=r==null?void 0:r.getBoundingClientRect();if(!i||i.bottom<=0)continue;const s=i.top;return o+(s>=0?0:-s/i.height)}return 0}function Ks(e){return e.isConnected&&e.width>=200&&e.height>=200}function Ys(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return!t.width||!t.height||t.width>=200&&t.height>=200}function lo(e){const t=e.getAttributeNames(),n=t.indexOf("src");n!==-1&&(t.splice(n,1),t.push("src"));for(const o of t){if(o!=="data-url"&&o!=="data-original"&&!o.includes("src"))continue;const r=e.getAttribute(o);if(r)return o==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:r.replace(/(\n|\t)/g," ").trim()}}function cr(e,t){if(!e||e===document.body)return!0;const n=t.get(e);if(n!==void 0)return n;const o=getComputedStyle(e);if(!(o.display!=="none"&&o.visibility!=="hidden"&&+(o.opacity??"1")>.1))return t.set(e,!1),!1;const i=cr(e.parentElement,t);return t.set(e,i),i}function ao({contentEl:e,images:t,page:n,smooth:o,skipIfVisible:r}){const i=Math.floor(n),s=t[Math.min(t.length-1,i)];if(!s)return;const l=s.el??s.parentEl??document.querySelector(`img[src^="${s.src}"]`);if(!l)return;const a=o?"smooth":"instant";if(n>=t.length){l==null||l.scrollIntoView({block:"end",behavior:a});return}const u=l.getBoundingClientRect();if(r&&u.top<=0&&u.top+u.height>0)return;l.scrollIntoView({block:"start",behavior:a});const p=n%1;if(p){const h=p*u.height,v=ur(e??document.documentElement);setTimeout(()=>v==null?void 0:v.scrollBy({top:h}))}}function ur(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?ur(document.documentElement)??e:e:ur(e.parentElement??void 0)}function Ad(e,t){return se(()=>t.value?Xs(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function Xs(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(i=>(i==null?void 0:i.size)&&i.size.width>i.size.height)?[n[0]]:n;return[r.map((i,s)=>({img:i,index:t+s})),...Xs(e.slice(r.length),t+r.length)]}function jd(e,t){const n=sessionStorage.getItem("tk:page:path");n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page"));const o=Q(t&&e>0?Math.max(0,e):+(sessionStorage.getItem("tk:page")??"0")||e);return se({get:()=>o.value,set:r=>{o.value=r,sessionStorage.setItem("tk:page",r+"")}})}function Bd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const fr=40;function Dd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,interferePlayer:a,onChangedPage:c,onInitialized:u}){let p=!1,h=!1,v;const x=Ke(P,300),k=Cs(()=>{P(),x()},300),A=Ke(F,50);async function q(){g(e.value,{smooth:!1,ensureLastImgVisibility:!0})}function $(){var y;h=!0,u(),(y=l.value)==null||y.addEventListener("scroll",k),setTimeout(()=>{const{width:b,height:K}=rd();ve(b,()=>{r.value&&A()}),ve(K,()=>{r.value||A()}),ve(n,F),ve(t,F)},300)}async function F(){if(!h||p)return;p=!0,await gt();const y=e.value;if(B()===y){p=!1;return}g(y)}function g(y,{smooth:b,ensureLastImgVisibility:K=!1}={smooth:!1}){const ne=l.value;if(!ne)return;p=!0;const H=async()=>{await gt(),p=!1,h||$()},ce=Math.floor(y),re=ne.querySelector(`[data-index="${ce}"],[data-index2="${ce}"]`);if(!re){H();return}a(async()=>{await T(ne,!o.value&&b,async()=>{await ue(ne,re,{smooth:b,page:y,ensureLastImgVisibility:K})}),await H()})}async function T(y,b,K){b&&y.style.setProperty("scroll-snap-type","none"),await K(),b&&y.style.removeProperty("scroll-snap-type")}function P(){if(p)return;const y=B();y!==void 0&&y!==e.value&&c(y)}function B(){const y=S();return y?(+y.getAttribute("data-index")||0)+(o.value?L(y):0):void 0}function S(){var b;if(v??(v=l.value.getRootNode()),!v)return;const y=(b=v.elementsFromPoint)==null?void 0:b.call(v,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-fr:fr,r.value&&o.value?s.value||fr:window.innerHeight/2);if(y)for(let K=0;K<y.length;K++){const ne=y[K];if(ne.hasAttribute("data-index"))return ne;if(ne===l.value)break}}function L(y){const b=y.getBoundingClientRect();return r.value?Math.abs(b.top-s.value)/b.height:i.value?Math.max(0,b.right-l.value.clientWidth)/b.width:Math.abs(b.left)/b.width}let te=!1;async function ue(y,b,K){if(te)return;const ne=b.getBoundingClientRect();if(!o.value){if(r.value){if(ne.top<=0&&ne.bottom>=y.clientHeight)return}else if(ne.left<=0&&ne.right>=y.clientWidth)return}te=!0;const H=r.value?y.scrollTop:y.scrollLeft,ce=K.page,re=o.value?ce%1:0,ye=await Cn(30,10,async()=>{await rn();let oe;if(!(b.offsetHeight<10))return o.value?r.value?oe=b.offsetTop+re*b.offsetHeight-s.value:i.value?oe=b.offsetLeft-y.clientWidth+b.offsetWidth-re*b.offsetWidth:oe=b.offsetLeft+re*b.offsetWidth:r.value?oe=b.offsetTop+(ne.top>0?0:ne.height-y.clientHeight):oe=b.offsetLeft+(ne.left>0?0:ne.width-y.clientWidth),ce>.5&&Math.abs(oe)<100?void 0:oe})??0,R=K.ensureLastImgVisibility?r.value?Math.min(ye,y.scrollHeight-y.clientHeight*2):i.value?Math.max(ye,-(y.scrollWidth-y.clientWidth*2)):Math.min(ye,y.scrollWidth-y.clientWidth*2):ye;if(!K.smooth){r.value?y.scrollTop=R:y.scrollLeft=R,te=!1;return}const W=R-H,z=30;let V=0;return new Promise(oe=>{(function _e(){const pe=Rd(V,H,W,z);r.value?y.scrollTop=pe:y.scrollLeft=pe,V++,V<=z?requestAnimationFrame(_e):(oe(),te=!1)})()})}return{init:q,goToPage:g}}function Rd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Nd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Q(typeof l=="string"?l==="true":e),c=se({get:()=>a.value,set:S=>{a.value=S,sessionStorage.setItem("tk:playing",S?"true":"false")}}),u=Q(!1);let p,h;const v=Ke(P,100),x=Ke(()=>{u.value=!0},t?2e3:1e3),k=()=>setTimeout(()=>{u.value=!1,x()},30);k(),t||Pt(window,"mousemove",k);const A=Es();et(()=>{ve(A,S=>{c.value&&(S==="visible"?P():h==null||h())}),ve(s,()=>q()),ve(i,S=>{S||F()})});async function q(S){c.value&&(h==null||h()),S&&(await gt(),await S()),c.value&&v()}function $(){c.value?F():g()}function F(){c.value&&(c.value=!1,h==null||h(),k())}function g(){!c.value&&i.value&&(c.value=!0,P(),k())}function T(){h==null||h()}function P(){const S=n.value;if(!c.value||!S)return;const L=o.value?S.scrollHeight-S.clientHeight:S.scrollWidth-S.clientWidth,te=B();if(L<=te){F();return}h=()=>{p=Date.now(),h=void 0};const ue=Date.now();p=ue;const y=.05*s.value,b=o.value?"scrollTop":"scrollLeft";let K=Date.now(),ne=0;const H=()=>{if(p!==ue)return;const ce=Date.now(),re=ce-K;K=ce;const ye=y*re+ne;ye>=1?(ne=ye%1,S[b]+=(ye-ne)*(r.value?-1:1)):ne=ye,setTimeout(H,1)};H()}function B(){const S=n.value;return o.value?S.scrollTop:r.value?-S.scrollLeft:S.scrollLeft}return{isPlaying:c,isIdle:u,toggle:$,play:g,pause:T,resume:P,stop:F,interfere:q,awake:k}}function Fd(e){var v,x,k,A,q;let t=-1,n=(v=e.prev)==null?void 0:v.slug,o=(x=e.next)==null?void 0:x.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,p=l.chapters??[],h=(p==null?void 0:p.length)>1?p:[];if(h.length){if(t=h.findIndex($=>$.slug===e.slug),t===-1&&(t=h.findIndex($=>($.vol??$.inferVol)===u&&$.chap===s)),t===-1&&(t=h.findIndex($=>a.startsWith(`${$.slug}-`)&&a.length-$.slug.length>3)),t!==-1)n??(n=(k=h[t+1])==null?void 0:k.slug),o??(o=(A=h[t-1])==null?void 0:A.slug);else if(!n&&!o){const $=h.findIndex(F=>{const g=F.vol??F.inferVol;return u===void 0||g===void 0||u===g?F.chap<s:g<u});$!==-1?(n=h[$].slug,o=(q=h[$-1])==null?void 0:q.slug):o=h[h.length-1].slug}}return{activeIndex:t,activeLabel:qs({vol:r,chap:s}),chapters:h.map($=>({label:qs($),path:dr(c,$.slug)})),prevPath:dr(c,n),nextPath:dr(c,o)}}function dr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function qs({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Vd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Hd=Ee({...{inheritAttrs:!1},__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},readerStyle:{},direction:{},isGuest:{type:Boolean},isAutoShow:{type:Boolean},tourEnabled:{type:Boolean}},emits:["error","ready","pageChanged","fullScreenChanged","playingChanged","tourEnabledChanged","dispose","openEntry","addEntry","finished"],setup(e,{emit:t}){const n=e;let o=!1,r=!1,i;const s=Q(!1),l=Q(!1),a=nu({touchDevice:n.touchDevice}),c=jd(n.page,n.isAutoShow),u=se(()=>n.spaceTop??0),{asyncImgs:p,isWebtoon:h,maybeWebtoon:v}=Pd({raw:se(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(m){V(m),s.value=!0},onError:()=>{t("error"),C()}}),{direction:x,style:k,isRTL:A,isDouble:q,isVertical:$,isLongStrip:F,gap:g,speed:T,zoom:P}=Hu({titleName:se(()=>{var m;return(m=n.raw)==null?void 0:m.title.name}),isWebtoon:h,maybeWebtoon:v,defaultStyle:n.readerStyle,defaultDirection:n.direction}),B=Ad(p,q),S=se(()=>c.value>=p.value.length),L=se(()=>n.raw?Fd(n.raw):void 0),te=se(()=>{var m,w;return A.value?(m=L.value)==null?void 0:m.nextPath:(w=L.value)==null?void 0:w.prevPath}),ue=se(()=>{var m,w;return A.value?(m=L.value)==null?void 0:m.prevPath:(w=L.value)==null?void 0:w.nextPath}),y=Q(null),b=Q(null),K=Q(!1),ne=Q(!1),H=Nd({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:se(()=>{var m;return(m=y.value)==null?void 0:m.$el}),speed:T,isRTL:A,isVertical:$,isLongStrip:F}),ce=se(()=>!n.touchDevice&&H.isIdle.value&&!a.value),re=se({get(){return P.value},set(m){H.interfere(()=>{P.value=m})}}),ye=Dd({page:c,style:k,direction:x,isLongStrip:F,isVertical:$,isRTL:A,spaceTop:u,scrollEl:se(()=>{var m;return(m=y.value)==null?void 0:m.$el}),interferePlayer:m=>H.interfere(m),onChangedPage:V,onInitialized(){t("ready"),l.value=!0,n.touchDevice&&(i=oe())}}),R=se(()=>Math.floor(c.value)),W=()=>H.interfere(()=>rn(100));du().addListener({onKeyDown:m=>{if(n.tourEnabled)return;const w=F.value&&$.value,U=F.value&&!$.value,ie=!F.value&&$.value,he=!F.value&&!$.value;switch(m.key){case" ":m.preventDefault(),F.value?(Z(!1),H.toggle()):_();break;case"ArrowUp":case"PageUp":w?W():ie&&R.value!==0&&(m.preventDefault(),d());break;case"ArrowDown":case"PageDown":w?W():ie&&!S.value&&(m.preventDefault(),_());break;case"ArrowLeft":U?W():he?(m.preventDefault(),In()):$.value&&Ae();break;case"ArrowRight":U?W():he?(m.preventDefault(),f()):$.value&&de();break}},onKeyUp:m=>{switch(m.key){case"f":M();break;case"t":N();break;case"h":Z();break}}}),Pt("fullscreenchange",()=>{K.value=!!document.fullscreenElement}),ve(H.isPlaying,m=>{m||O(!1),t("playingChanged",m)}),ve(H.isIdle,m=>{H.isPlaying.value&&O(m)}),ve(a,m=>{!m&&H.isIdle.value?H.awake():m&&n.fullScreen&&O()});function V(m){if(c.value===m)return;const w=p.value.length;if(m<0||m>=w+1)return;const U=c.value;c.value=m,t("pageChanged",Math.floor(m*100)/100),m>=w?(O(!1),H.stop()):m<.01?O(!1):n.touchDevice&&!r&&(F.value?i!==void 0&&oe()-i>300&&O(!0):Math.abs(U-m)===1&&O(!0)),!o&&m>=w-2&&(o=!0,t("finished"))}function oe(){var w;const m=(w=y.value)==null?void 0:w.$el;return m?$.value?m.scrollTop:A.value?-m.scrollLeft:m.scrollLeft:0}function _e(){!n.touchDevice&&!F.value&&ye.goToPage(R.value,{smooth:!0})}function pe(){if(H.isPlaying.value){!n.fullScreen||!n.touchDevice?H.stop():H.awake();return}O()}function de(){var m;Ut((m=L.value)==null?void 0:m.nextPath)}function Ae(){var m;Ut((m=L.value)==null?void 0:m.prevPath)}function Re(m){var U,ie,he;const w=(he=(ie=(U=L.value)==null?void 0:U.chapters)==null?void 0:ie[m])==null?void 0:he.path;w&&Ut(w)}function Ut(m){m&&(location.href=m.includes("://")?m:location.origin+m)}function In(){A.value?_():d()}function f(){A.value?d():_()}function d(){var U;const m=B.value,w=S.value?m[m.length-1][0].index:(U=m[I()-1])==null?void 0:U[0].index;w!==void 0?ye.goToPage(w):Ae()}function _(){var m,w;if(S.value)de();else{const U=((w=(m=B.value[I()+1])==null?void 0:m[0])==null?void 0:w.index)??p.value.length;ye.goToPage(U)}}function I(){const m=R.value,w=B.value.findIndex(U=>U.some(({index:ie})=>ie===m));return w===-1?B.value.length-1:w}function C(){Bd(),H.stop(),t("dispose")}async function O(m){if(a.value&&!n.fullScreen)return;r=!0;const w=typeof m=="boolean"?m:!n.fullScreen;t("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&a.value&&t("fullScreenChanged",!1)},100)}function N(){n.entryId?E():D()}function M(){var m,w;document.fullscreenElement?document.exitFullscreen():(w=(m=b.value)==null?void 0:m.$el)==null||w.requestFullscreen()}function D(){H.stop(),t("addEntry")}function E(){H.stop(),t("openEntry",n.entryId)}function Z(m){ne.value!==m&&(ne.value=!ne.value,ne.value&&H.isPlaying&&H.stop())}return(m,w)=>{const U=Vs,ie=Fs,he=Ds,be=js,Ce=As,Xe=zs,Ot=ws,dt=oo,Kt=ys,co=rr,Ne=_s,ot=bs,uo=vs,ep=gs,tp=hs,np=ps,op=ds,rp=fs,ip=nr,sp=tr,lp=os,ap=ts;return m.immediate||s.value?(j(),ke(ap,{key:0,ref_key:"root",ref:b,loading:!l.value,immediate:!!m.immediate,"full-screen":!!m.fullScreen,idle:ce.value,"space-top":u.value,rtl:G(A),onClick:w[10]||(w[10]=nt(()=>{},["stop"]))},ci({settings:ae(()=>{var bt;return[J(rp,{"reader-style":G(k),"onUpdate:readerStyle":w[3]||(w[3]=_t=>$e(k)?k.value=_t:null),direction:G(x),"onUpdate:direction":w[4]||(w[4]=_t=>$e(x)?x.value=_t:null),gap:G(g),"onUpdate:gap":w[5]||(w[5]=_t=>$e(g)?g.value=_t:null),speed:G(T),"onUpdate:speed":w[6]||(w[6]=_t=>$e(T)?T.value=_t:null),zoom:re.value,"onUpdate:zoom":w[7]||(w[7]=_t=>re.value=_t),name:(bt=m.raw)==null?void 0:bt.title.name,webtoon:G(h),disabled:!s.value,onHelp:Z},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":ae(()=>[J(nn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:ae(()=>[J(lp,{zoom:re.value,onClick:w[9]||(w[9]=nt(()=>re.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:ae(()=>[Y("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${G(c)/(G(p).length-1)*100}%`})},null,4)]),default:ae(()=>[s.value?(j(),ke(ie,{key:0,ref_key:"body",ref:y,zoom:re.value,"onUpdate:zoom":w[0]||(w[0]=bt=>re.value=bt),"page-index":R.value,pages:G(B),"total-imgs":G(p).length,direction:G(x),gap:G(g),"is-long-strip":G(F),isRTL:G(A),"is-vertical":G($),"space-top":u.value,busy:G(a),idle:ce.value,"play-controller":G(H),"touch-device":m.touchDevice,onVnodeMounted:G(ye).init,onPrev:d,onNext:_,onClick:pe,onDragEnd:_e,onWheelPassive:w[1]||(w[1]=()=>G(H).interfere())},ci({_:2},[s.value&&G(p).length?{name:"end",fn:ae(()=>{var bt;return[J(U,{"has-next":!!((bt=L.value)!=null&&bt.nextPath),onNext:de,onHide:C},null,8,["has-next"])]}),key:"0"}:void 0]),1032,["zoom","page-index","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","busy","idle","play-controller","touch-device","onVnodeMounted"])):Me("",!0),l.value&&!S.value&&!m.tourEnabled?(j(),ke(he,{key:1,direction:G(x)},null,8,["direction"])):Me("",!0),l.value&&!S.value?(j(),ke(be,{key:2,playing:!!G(H).isPlaying.value},null,8,["playing"])):Me("",!0),ne.value?(j(),ke(Ce,{key:3,"touch-device":m.touchDevice,onHide:Z},null,8,["touch-device"])):Me("",!0),m.tourEnabled?(j(),ke(Xe,{key:4,onHide:w[2]||(w[2]=()=>t("tourEnabledChanged",!1))})):Me("",!0)]),_:2},[m.raw?{name:"back",fn:ae(()=>[J(dt,{href:m.raw.title.url,title:"Back to manga"},{default:ae(()=>[J(Ot)]),_:1},8,["href"])]),key:"0"}:void 0,m.touchDevice?void 0:{name:"exit",fn:ae(()=>[J(dt,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:C},{default:ae(()=>[J(Kt)]),_:1})]),key:"1"},L.value?{name:"chapter-nav",fn:ae(()=>[J(co,{modelValue:L.value.activeIndex,label:L.value.activeLabel,title:"Select chapter",items:L.value.chapters,"onUpdate:modelValue":Re},{item:ae(({item:bt})=>[St(Qe(bt.label),1)]),_:1},8,["modelValue","label","items"]),te.value||ue.value?(j(),X("div",Vd,[J(dt,{title:`${G(A)?"Next":"Prev"} chapter (←)`,href:te.value,disabled:!te.value,class:"!rounded-r-none"},{default:ae(()=>[J(Ne)]),_:1},8,["title","href","disabled"]),J(dt,{title:`${G(A)?"Prev":"Next"} chapter (→)`,href:ue.value,disabled:!ue.value,class:"!rounded-l-none"},{default:ae(()=>[J(ot)]),_:1},8,["title","href","disabled"])])):Me("",!0)]),key:"2"}:void 0,G(B).length?{name:"page-nav",fn:ae(()=>[J(uo,{"model-value":R.value,disabled:!l.value,pages:G(B),"total-imgs":G(p).length,"onUpdate:modelValue":G(ye).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,m.raw?{name:"entry",fn:ae(()=>[J(dt,{title:m.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:N},{default:ae(()=>[m.entryId?(j(),ke(ep,{key:0})):(j(),ke(tp,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,m.touchDevice?void 0:{name:"full-screen",fn:ae(()=>[J(dt,{title:`${K.value?"Exit":"Enter"} fullscreen (F)`,onClick:M},{default:ae(()=>[K.value?(j(),ke(np,{key:0})):(j(),ke(op,{key:1}))]),_:1},8,["title"])]),key:"5"},G(F)?{name:"play",fn:ae(()=>[J(dt,{"data-tour":"Press here to play like a video",title:`${G(H).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:w[8]||(w[8]=()=>G(H).toggle())},{default:ae(()=>[G(H).isPlaying.value?(j(),ke(ip,{key:0})):(j(),ke(sp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Me("",!0)}}}),Zs=xe(Hd,[["styles",[`/*! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Helvetica,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{-webkit-tap-highlight-color:rgba(0,0,0,0)!important}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:none;border-style:none;cursor:pointer;outline:2px solid transparent;outline-offset:2px;white-space:nowrap}button[disabled]{cursor:default!important}svg{height:100%;width:100%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:300px){.container{max-width:300px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-full{top:100%}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.-ml-20{margin-left:-80px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-0{height:0}.h-0\\.5{height:2px}.h-1{height:4px}.h-1\\.5{height:6px}.h-10{height:40px}.h-12{height:48px}.h-16{height:64px}.h-20{height:80px}.h-24{height:96px}.h-4{height:16px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[101\\%\\]{height:101%}.h-\\[27rem\\]{height:432px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-full{max-height:100%}.w-1{width:4px}.w-1\\/3{width:33.333333%}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-28{width:112px}.w-4{width:16px}.w-40{width:160px}.w-\\[4\\.5rem\\]{width:72px}.w-full{width:100%}.w-screen{width:100vw}.max-w-full{max-width:100%}.max-w-xs{max-width:320px}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-right{transform-origin:right}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1\\.5{--tw-translate-y:-6px}.-translate-y-1\\.5,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--tw-translate-y:4px}.translate-y-1\\.5{--tw-translate-y:6px}.translate-y-1\\.5,.translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y:100%}.rotate-180{--tw-rotate:180deg}.rotate-180,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.scale-y-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-90{--tw-scale-y:.9}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-grabbing{cursor:grabbing}.cursor-none{cursor:none}.cursor-pointer{cursor:pointer}.touch-pan-x{--tw-pan-x:pan-x}.touch-pan-x,.touch-pan-y{touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pan-y{--tw-pan-y:pan-y}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.\\!snap-none{scroll-snap-type:none!important}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}.gap-\\[1px\\]{gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-2xl{border-radius:16px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-sm{border-radius:2px}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.rounded-t-sm{border-top-left-radius:2px;border-top-right-radius:2px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-2{border-width:2px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-stone-400{--tw-bg-opacity:1;background-color:rgb(168 162 158/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-50{--tw-bg-opacity:.5}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-90{--tw-bg-opacity:.9}.bg-none{background-image:none}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.p-6{padding:24px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.pb-12{padding-bottom:48px}.pb-6{padding-bottom:24px}.pl-1{padding-left:4px}.pt-3{padding-top:12px}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-900{--tw-text-opacity:1;color:rgb(28 25 23/var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-90{opacity:.9}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.fixed-screen{height:100vh;left:0;position:fixed;top:0;width:100vw}.scrollbar-none{scrollbar-width:none}.scrollbar-none::-webkit-scrollbar{display:none}.scrollbar-sm{scrollbar-color:#777 transparent;scrollbar-width:thin}.scrollbar-sm::-webkit-scrollbar{background-color:transparent;height:4px;width:4px}.scrollbar-sm::-webkit-scrollbar-track{background:transparent}.scrollbar-sm::-webkit-scrollbar-thumb{background-color:#777;border-radius:2px}.children-pointer-events-auto>*{pointer-events:auto}.last\\:mb-0:last-child{margin-bottom:0}.last\\:border-b-transparent:last-child{border-bottom-color:transparent}@media (hover:hover) and (pointer:fine){.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.hover\\:bg-stone-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/var(--tw-bg-opacity))}.hover\\:bg-stone-900:hover{--tw-bg-opacity:1;background-color:rgb(28 25 23/var(--tw-bg-opacity))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity:.1}.hover\\:bg-opacity-50:hover{--tw-bg-opacity:.5}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/var(--tw-text-opacity))}.hover\\:text-stone-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-primary:focus{outline-color:#b85c38}@media (hover:hover) and (pointer:fine){.group:hover .group-hover\\:bg-stone-100{--tw-bg-opacity:1;background-color:rgb(245 245 244/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-opacity-20{--tw-bg-opacity:.2}}@media (min-width:300px){.\\32xs\\:gap-3{gap:12px}}@media (min-width:640px){.sm\\:w-\\[32rem\\]{width:512px}.sm\\:p-3{padding:12px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-5{padding-bottom:20px}.md\\:text-lg{font-size:18px;line-height:28px}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}.lg\\:pb-3{padding-bottom:12px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
8
+ `]]]),Wd=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})),Ud={},Kd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yd=[Y("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46s46-20.595 46-46s-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1)];function Xd(e,t){return j(),X("svg",Kd,Yd)}const qd=Object.freeze(Object.defineProperty({__proto__:null,default:xe(Ud,[["render",Xd]])},Symbol.toStringTag,{value:"Module"})),Zd=`gear-second{display:block!important;inset:0!important;opacity:0!important;pointer-events:none!important;position:fixed!important;z-index:-10!important}html.gear-second,html.gear-second *{pointer-events:none!important;scroll-behavior:auto!important;scrollbar-width:none!important}html.gear-second ::-webkit-scrollbar,html.gear-second::-webkit-scrollbar{display:none!important}html.gear-second body gear-second+*,html.gear-second body gear-second+*+*,html.gear-second body gear-second+*+*+*,html.gear-second body gear-second+*+*+*+*,html.gear-second>:not(body):not(head){--tw-translate-x:100%!important;--tw-translate-y:-100%!important;display:none!important;height:0!important;min-height:0!important;min-width:0!important;opacity:0!important;pointer-events:none!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important;visibility:hidden!important;width:0!important}html.gear-second body{touch-action:pan-x pan-y!important}html.gear-second body gear-second{--tw-bg-opacity:1!important;background-color:rgb(0 0 0/var(--tw-bg-opacity))!important;filter:none!important;opacity:1!important;pointer-events:auto!important;transform:none!important;visibility:visible!important;z-index:10000000000000000!important}html.gear-second body .m-content #progress-bar{display:none!important}
9
+ `,Sn="gear-second",pr={immediate:void 0,raw:void 0,spec:void 0,page:0,spaceTop:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,readerStyle:void 0,direction:void 0,isAutoShow:void 0,isGuest:void 0,tourEnabled:void 0,onError:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onFinished:void 0},Ye={promise:void 0,data:an({...pr})};async function Qd(e){return Ye.promise?(Ye.data.raw=e.raw,await Ye.promise):(Ye.promise=new Promise(t=>{let n=!1,o=!1,r;const i=!!e.spaceTop||!!e.isAutoShow&&!!e.page,s=()=>{n||(n=!0,r&&document.body.removeChild(r),document.documentElement.classList.remove(Sn),Object.assign(Ye.data,pr),Ye.promise=void 0)};Object.assign(Ye.data,pr,e,{immediate:i,onReady(){i||(l(),setTimeout(()=>r.setAttribute("style","")))},onError(){var c,u;s(),o?((c=e.onDispose)==null||c.call(e),(u=e.onError)==null||u.call(e)):a()},onDispose:()=>{var c;s(),(c=e==null?void 0:e.onDispose)==null||c.call(e)},onFullScreenChanged:c=>{var u;Ye.data.fullScreen=c,(u=e.onFullScreenChanged)==null||u.call(e,c)},onPageChanged:c=>{var u;Ye.data.page=c,(u=e.onPageChanged)==null||u.call(e,c)},onTourEnabledChanged:c=>{Ye.data.tourEnabled=c}}),Jd().then(()=>{if(n){a();return}r=document.createElement(Sn),document.documentElement.classList.add(Sn),i?(document.body.appendChild(r),setTimeout(l)):(r.setAttribute("style","background-color: transparent !important"),document.body.appendChild(r))});function l(){o||(o=!0,t({triggerDoubleTap:(c,u)=>md(c,u),updateArgs(c){Object.assign(Ye.data,c)},dispose:s}))}function a(){o||t(void 0)}}),await Ye.promise)}async function Jd(){if(window.customElements.get(Sn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(Zd)),document.head.appendChild(e);const t=fc({styles:[await Gd()],data:()=>({readerData:Ye.data}),render(){return ji(Zs,this.readerData)}});window.customElements.define(Sn,t)}async function Gd(){const e=Object.assign({"./TrackkunReader.vue":Wd,"./components/AutoNext.vue":Ed,"./components/BottomSheet.vue":mu,"./components/ButtonDropdown.vue":kf,"./components/ButtonIcon.vue":iu,"./components/ButtonReaderSettings.vue":Uu,"./components/ButtonResetZoom.vue":Uc,"./components/DirectionToast.vue":hd,"./components/HelpScreen.vue":ld,"./components/InputPercentage.vue":_u,"./components/InputSelect.vue":Cu,"./components/IntersectionWrapper.vue":_d,"./components/LoadingIndicator.vue":Ec,"./components/PageNav.vue":Cf,"./components/PauseToast.vue":ad,"./components/ReaderBody.vue":Sd,"./components/ReaderLayout.vue":jc,"./components/ReaderTour.vue":id,"./components/TableField.vue":xu,"./components/ZoomWrapper.vue":bd,"./components/icons/IconBack.vue":Wf,"./components/icons/IconBookmarkNew.vue":lf,"./components/icons/IconBookmarked.vue":df,"./components/icons/IconChevronLeft.vue":zf,"./components/icons/IconChevronRight.vue":Ef,"./components/icons/IconClose.vue":uu,"./components/icons/IconExclamationCircle.vue":qd,"./components/icons/IconFullscreen.vue":Zu,"./components/icons/IconFullscreenExit.vue":tf,"./components/icons/IconHelp.vue":Eu,"./components/icons/IconNext.vue":pd,"./components/icons/IconPause.vue":tu,"./components/icons/IconPlay.vue":Zc,"./components/icons/IconReaderExit.vue":Rf,"./components/icons/IconSettings.vue":zu,"./components/icons/IconTriangle.vue":vf,"./components/icons/IconZoom.vue":Fc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}return Qd});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gear-second",
3
3
  "author": "endyquang",
4
- "version": "1.4.4",
4
+ "version": "1.5.1",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Trkun manga reader",
7
7
  "main": "index.js",