gear-second 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(He,ce){typeof exports=="object"&&typeof module<"u"?module.exports=ce():typeof define=="function"&&define.amd?define(ce):(He=typeof globalThis<"u"?globalThis:He||self,He._gearSecond_=ce())})(this,function(){"use strict";var Dp=Object.defineProperty;var Rp=(He,ce,qe)=>ce in He?Dp(He,ce,{enumerable:!0,configurable:!0,writable:!0,value:qe}):He[ce]=qe;var ol=(He,ce,qe)=>(Rp(He,typeof ce!="symbol"?ce+"":ce,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 ce={},qe=[],rt=()=>{},rl=()=>!1,il=/^on[^a-z]/,$n=e=>il.test(e),fo=e=>e.startsWith("onUpdate:"),ke=Object.assign,po=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sl=Object.prototype.hasOwnProperty,fe=(e,t)=>sl.call(e,t),Q=Array.isArray,Kt=e=>Tn(e)==="[object Map]",vr=e=>Tn(e)==="[object Set]",se=e=>typeof e=="function",Ie=e=>typeof e=="string",ho=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",_r=e=>_e(e)&&se(e.then)&&se(e.catch),br=Object.prototype.toString,Tn=e=>br.call(e),ll=e=>Tn(e).slice(8,-1),yr=e=>Tn(e)==="[object Object]",go=e=>Ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pn=He(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),En=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},al=/-(\w)/g,We=En(e=>e.replace(al,(t,n)=>n?n.toUpperCase():"")),cl=/\B([A-Z])/g,Ze=En(e=>e.replace(cl,"-$1").toLowerCase()),On=En(e=>e.charAt(0).toUpperCase()+e.slice(1)),mo=En(e=>e?`on${On(e)}`:""),on=(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},_o=e=>{const t=Ie(e)?Number(e):NaN;return isNaN(t)?e:t};let wr;const bo=()=>wr||(wr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Be(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=Ie(o)?pl(o):Be(o);if(r)for(const i in r)t[i]=r[i]}return t}else{if(Ie(e))return e;if(_e(e))return e}}const ul=/;(?![^(]*\))/g,fl=/:([^]+)/,dl=/\/\*[^]*?\*\//g;function pl(e){const t={};return e.replace(dl,"").split(ul).forEach(n=>{if(n){const o=n.split(fl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Oe(e){let t="";if(Ie(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const o=Oe(e[n]);o&&(t+=o+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const hl=He("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xr(e){return!!e||e===""}const Je=e=>Ie(e)?e:e==null?"":Q(e)||_e(e)&&(e.toString===br||!se(e.toString))?JSON.stringify(e,kr,2):String(e),kr=(e,t)=>t&&t.__v_isRef?kr(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:vr(t)?{[`Set(${t.size})`]:[...t.values()]}:_e(t)&&!Q(t)&&!yr(t)?String(t):t;let Ue;class gl{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 ml(e,t=Ue){t&&t.active&&t.effects.push(e)}function Cr(){return Ue}function vl(e){Ue&&Ue.cleanups.push(e)}const yo=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Sr=e=>(e.w&wt)>0,Ir=e=>(e.n&wt)>0,_l=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=wt},bl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];Sr(r)&&!Ir(r)?r.delete(e):t[n++]=r,r.w&=~wt,r.n&=~wt}t.length=n}},wo=new WeakMap;let rn=0,wt=1;const xo=30;let it;const Lt=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,ml(this,o)}run(){if(!this.active)return this.fn();let t=it,n=xt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=it,it=this,xt=!0,wt=1<<++rn,rn<=xo?_l(this):$r(this),this.fn()}finally{rn<=xo&&bl(this),wt=1<<--rn,it=this.parent,xt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){it===this?this.deferStop=!0:this.active&&($r(this),this.onStop&&this.onStop(),this.active=!1)}}function $r(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let xt=!0;const Tr=[];function Yt(){Tr.push(xt),xt=!1}function Xt(){const e=Tr.pop();xt=e===void 0?!0:e}function Ne(e,t,n){if(xt&&it){let o=wo.get(e);o||wo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=yo()),Pr(r)}}function Pr(e,t){let n=!1;rn<=xo?Ir(e)||(e.n|=wt,n=!Sr(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"&&Q(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":Q(e)?go(n)&&l.push(s.get("length")):(l.push(s.get(Lt)),Kt(e)&&l.push(s.get(ko)));break;case"delete":Q(e)||(l.push(s.get(Lt)),Kt(e)&&l.push(s.get(ko)));break;case"set":Kt(e)&&l.push(s.get(Lt));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=Q(e)?e:[...e];for(const o of n)o.computed&&Er(o);for(const o of n)o.computed||Er(o)}function Er(e,t){(e!==it||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const yl=He("__proto__,__v_isRef,__isVue"),Or=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ho)),wl=Io(),xl=Io(!1,!0),kl=Io(!0),Mr=Cl();function Cl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=de(this);for(let i=0,s=this.length;i<s;i++)Ne(o,"get",i+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(de)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Yt();const o=de(this)[t].apply(this,n);return Xt(),o}}),e}function Sl(e){const t=de(this);return Ne(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?Fl:Fr:t?Nr:Rr).get(o))return o;const s=Q(o);if(!e){if(s&&fe(Mr,r))return Reflect.get(Mr,r,i);if(r==="hasOwnProperty")return Sl}const l=Reflect.get(o,r,i);return(ho(r)?Or.has(r):yl(r))||(e||Ne(o,"get",r),t)?l:$e(l)?s&&go(r)?l:l.value:_e(l)?e?Po(l):sn(l):l}}const Il=Lr(),$l=Lr(!0);function Lr(e=!1){return function(n,o,r,i){let s=n[o];if(Zt(s)&&$e(s)&&!$e(r))return!1;if(!e&&(!Nn(r)&&!Zt(r)&&(s=de(s),r=de(r)),!Q(n)&&$e(s)&&!$e(r)))return s.value=r,!0;const l=Q(n)&&go(o)?Number(o)<n.length:fe(n,o),a=Reflect.set(n,o,r,i);return n===de(i)&&(l?on(r,s)&&pt(n,"set",o,r):pt(n,"add",o,r)),a}}function Tl(e,t){const n=fe(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&pt(e,"delete",t,void 0),o}function Pl(e,t){const n=Reflect.has(e,t);return(!ho(t)||!Or.has(t))&&Ne(e,"has",t),n}function El(e){return Ne(e,"iterate",Q(e)?"length":Lt),Reflect.ownKeys(e)}const zr={get:wl,set:Il,deleteProperty:Tl,has:Pl,ownKeys:El},Ol={get:kl,set(e,t){return!0},deleteProperty(e,t){return!0}},Ml=ke({},zr,{get:xl,set:$l}),$o=e=>e,zn=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,o=!1){e=e.__v_raw;const r=de(e),i=de(t);n||(t!==i&&Ne(r,"get",t),Ne(r,"get",i));const{has:s}=zn(r),l=o?$o:n?Oo:ln;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 An(e,t=!1){const n=this.__v_raw,o=de(n),r=de(e);return t||(e!==r&&Ne(o,"has",e),Ne(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&&Ne(de(e),"iterate",Lt),Reflect.get(e,"size",e)}function jr(e){e=de(e);const t=de(this);return zn(t).has.call(t,e)||(t.add(e),pt(t,"add",e,e)),this}function Ar(e,t){t=de(t);const n=de(this),{has:o,get:r}=zn(n);let i=o.call(n,e);i||(e=de(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?on(t,s)&&pt(n,"set",e,t):pt(n,"add",e,t),this}function Br(e){const t=de(this),{has:n,get:o}=zn(t);let r=n.call(t,e);r||(e=de(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 Dr(){const e=de(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=de(s),a=t?$o:e?Oo:ln;return!e&&Ne(l,"iterate",Lt),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=de(r),s=Kt(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...o),u=n?$o:t?Oo:ln;return!t&&Ne(i,"iterate",a?ko:Lt),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}},[Symbol.iterator](){return this}}}}function kt(e){return function(...t){return e==="delete"?!1:this}}function Ll(){const e={get(i){return jn(this,i)},get size(){return Bn(this)},has:An,add:jr,set:Ar,delete:Br,clear:Dr,forEach:Dn(!1,!1)},t={get(i){return jn(this,i,!1,!0)},get size(){return Bn(this)},has:An,add:jr,set:Ar,delete:Br,clear:Dr,forEach:Dn(!1,!0)},n={get(i){return jn(this,i,!0)},get size(){return Bn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("clear"),forEach:Dn(!0,!1)},o={get(i){return jn(this,i,!0,!0)},get size(){return Bn(this,!0)},has(i){return An.call(this,i,!0)},add:kt("add"),set:kt("set"),delete:kt("delete"),clear:kt("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[zl,jl,Al,Bl]=Ll();function To(e,t){const n=t?e?Bl:Al:e?jl:zl;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(fe(n,r)&&r in o?n:o,r,i)}const Dl={get:To(!1,!1)},Rl={get:To(!1,!0)},Nl={get:To(!0,!1)},Rr=new WeakMap,Nr=new WeakMap,Fr=new WeakMap,Fl=new WeakMap;function Vl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hl(e){return e.__v_skip||!Object.isExtensible(e)?0:Vl(ll(e))}function sn(e){return Zt(e)?e:Eo(e,!1,zr,Dl,Rr)}function Wl(e){return Eo(e,!1,Ml,Rl,Nr)}function Po(e){return Eo(e,!0,Ol,Nl,Fr)}function Eo(e,t,n,o,r){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=Hl(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function qt(e){return Zt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Zt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function Vr(e){return qt(e)||Zt(e)}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Hr(e){return Ln(e,"__v_skip",!0),e}const ln=e=>_e(e)?sn(e):e,Oo=e=>_e(e)?Po(e):e;function Wr(e){xt&&it&&(e=de(e),Pr(e.dep||(e.dep=yo())))}function Ur(e,t){e=de(e);const n=e.dep;n&&So(n)}function $e(e){return!!(e&&e.__v_isRef===!0)}function Y(e){return Kr(e,!1)}function Ul(e){return Kr(e,!0)}function Kr(e,t){return $e(e)?e:new Kl(e,t)}class Kl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:de(t),this._value=n?t:ln(t)}get value(){return Wr(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||Zt(t);t=n?t:de(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Ur(this))}}function G(e){return $e(e)?e.value:e}const Yl={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 Yr(e){return qt(e)?e:new Proxy(e,Yl)}class Xl{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,Ur(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=de(this);return Wr(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ql(e,t,n=!1){let o,r;const i=se(e);return i?(o=e,r=rt):(o=e.get,r=e.set),new Xl(o,r,i||!r,n)}function Fp(e,...t){}function Ct(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Fn(i,t,n)}return r}function Qe(e,t,n,o){if(se(e)){const i=Ct(e,t,n,o);return i&&_r(i)&&i.catch(s=>{Fn(s,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(Qe(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){Ct(a,null,10,[e,s,l]);return}}Zl(e,n,r,o)}function Zl(e,t,n,o=!0){console.error(e)}let an=!1,Mo=!1;const Ae=[];let ct=0;const Jt=[];let ht=null,zt=0;const Xr=Promise.resolve();let Lo=null;function gt(e){const t=Lo||Xr;return e?t.then(this?e.bind(this):e):t}function Jl(e){let t=ct+1,n=Ae.length;for(;t<n;){const o=t+n>>>1;cn(Ae[o])<e?t=o+1:n=o}return t}function zo(e){(!Ae.length||!Ae.includes(e,an&&e.allowRecurse?ct+1:ct))&&(e.id==null?Ae.push(e):Ae.splice(Jl(e.id),0,e),qr())}function qr(){!an&&!Mo&&(Mo=!0,Lo=Xr.then(Qr))}function Ql(e){const t=Ae.indexOf(e);t>ct&&Ae.splice(t,1)}function Gl(e){Q(e)?Jt.push(...e):(!ht||!ht.includes(e,e.allowRecurse?zt+1:zt))&&Jt.push(e),qr()}function Zr(e,t=an?ct+1:0){for(;t<Ae.length;t++){const n=Ae[t];n&&n.pre&&(Ae.splice(t,1),t--,n())}}function Jr(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)=>cn(n)-cn(o)),zt=0;zt<ht.length;zt++)ht[zt]();ht=null,zt=0}}const cn=e=>e.id==null?1/0:e.id,ea=(e,t)=>{const n=cn(e)-cn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Qr(e){Mo=!1,an=!0,Ae.sort(ea);const t=rt;try{for(ct=0;ct<Ae.length;ct++){const n=Ae[ct];n&&n.active!==!1&&Ct(n,null,14)}}finally{ct=0,Ae.length=0,Jr(),an=!1,Lo=null,(Ae.length||Jt.length)&&Qr()}}function ta(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ce;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:g}=o[u]||ce;g&&(r=n.map(y=>Ie(y)?y.trim():y)),h&&(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&&Qe(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,Qe(c,e,6,r)}}function Gr(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(!se(e)){const a=c=>{const u=Gr(c,t,!0);u&&(l=!0,ke(s,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&o.set(e,null),null):(Q(i)?i.forEach(a=>s[a]=null):ke(s,i),_e(e)&&o.set(e,s),s)}function Vn(e,t){return!e||!$n(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Ze(t))||fe(e,t))}let je=null,ei=null;function Hn(e){const t=je;return je=e,ei=e&&e.type.__scopeId||null,t}function le(e,t=je,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ei(-1);const i=Hn(t);let s;try{s=e(...r)}finally{Hn(i),o._d&&Ei(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Vp(){}function jo(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:l,attrs:a,emit:c,render:u,renderCache:h,data:g,setupState:y,ctx:M,inheritAttrs:x}=e;let B,W;const N=Hn(e);try{if(n.shapeFlag&4){const d=r||o;B=ut(u.call(d,d,h,i,y,g,M)),W=a}else{const d=t;B=ut(d.length>1?d(i,{attrs:a,slots:l,emit:c}):d(i,null)),W=t.props?a:na(a)}}catch(d){hn.length=0,Fn(d,e,1),B=Z(tt)}let L=B;if(W&&x!==!1){const d=Object.keys(W),{shapeFlag:E}=L;d.length&&E&7&&(s&&d.some(fo)&&(W=oa(W,s)),L=St(L,W))}return n.dirs&&(L=St(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),B=L,Hn(N),B}const na=e=>{let t;for(const n in e)(n==="class"||n==="style"||$n(n))&&((t||(t={}))[n]=e[n]);return t},oa=(e,t)=>{const n={};for(const o in e)(!fo(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function ra(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?ti(o,s,c):!!s;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const g=u[h];if(s[g]!==o[g]&&!Vn(c,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===s?!1:o?s?ti(o,s,c):!0:!!s;return!1}function ti(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 ia({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const sa=e=>e.__isSuspense;function la(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):Gl(e)}const Wn={};function pe(e,t,n){return ni(e,t,n)}function ni(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=ce){var l;const a=Cr()===((l=ze)==null?void 0:l.scope)?ze:null;let c,u=!1,h=!1;if($e(e)?(c=()=>e.value,u=Nn(e)):qt(e)?(c=()=>e,o=!0):Q(e)?(h=!0,u=e.some(d=>qt(d)||Nn(d)),c=()=>e.map(d=>{if($e(d))return d.value;if(qt(d))return jt(d);if(se(d))return Ct(d,a,2)})):se(e)?t?c=()=>Ct(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return g&&g(),Qe(e,a,3,[y])}:c=rt,t&&o){const d=c;c=()=>jt(d())}let g,y=d=>{g=N.onStop=()=>{Ct(d,a,4)}},M;if(mn)if(y=rt,t?n&&Qe(t,a,3,[c(),h?[]:void 0,y]):c(),r==="sync"){const d=Ga();M=d.__watcherHandles||(d.__watcherHandles=[])}else return rt;let x=h?new Array(e.length).fill(Wn):Wn;const B=()=>{if(N.active)if(t){const d=N.run();(o||u||(h?d.some((E,I)=>on(E,x[I])):on(d,x)))&&(g&&g(),Qe(t,a,3,[d,x===Wn?void 0:h&&x[0]===Wn?[]:x,y]),x=d)}else N.run()};B.allowRecurse=!!t;let W;r==="sync"?W=B:r==="post"?W=()=>Fe(B,a&&a.suspense):(B.pre=!0,a&&(B.id=a.uid),W=()=>zo(B));const N=new Co(c,W);t?n?B():x=N.run():r==="post"?Fe(N.run.bind(N),a&&a.suspense):N.run();const L=()=>{N.stop(),a&&a.scope&&po(a.scope.effects,N)};return M&&M.push(L),L}function aa(e,t,n){const o=this.proxy,r=Ie(e)?e.includes(".")?oi(o,e):()=>o[e]:e.bind(o,o);let i;se(t)?i=t:(i=t.handler,n=t);const s=ze;Gt(this);const l=ni(r,i.bind(o),n);return s?Gt(s):Nt(),l}function oi(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 jt(e,t){if(!_e(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),$e(e))jt(e.value,t);else if(Q(e))for(let n=0;n<e.length;n++)jt(e[n],t);else if(vr(e)||Kt(e))e.forEach(n=>{jt(n,t)});else if(yr(e))for(const n in e)jt(e[n],t);return e}function mt(e,t){const n=je;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=ce]=t[i];s&&(se(s)&&(s={mounted:s,updated:s}),s.deep&&jt(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&&(Yt(),Qe(a,n,8,[e.el,l,e,t]),Xt())}}function ca(){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],ri={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},ua={name:"BaseTransition",props:ri,setup(e,{slots:t}){const n=Li(),o=ca();let r;return()=>{const i=t.default&&li(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const x of i)if(x.type!==tt){s=x;break}}const l=de(e),{mode:a}=l;if(o.isLeaving)return Bo(s);const c=si(s);if(!c)return Bo(s);const u=Ao(c,l,o,n);Do(c,u);const h=n.subTree,g=h&&si(h);let y=!1;const{getTransitionKey:M}=c.type;if(M){const x=M();r===void 0?r=x:x!==r&&(r=x,y=!0)}if(g&&g.type!==tt&&(!Rt(c,g)||y)){const x=Ao(g,l,o,n);if(Do(g,x),a==="out-in")return o.isLeaving=!0,x.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Bo(s);a==="in-out"&&c.type!==tt&&(x.delayLeave=(B,W,N)=>{const L=ii(o,g);L[String(g.key)]=g,B._leaveCb=()=>{W(),B._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=N})}return s}}};function ii(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:h,onLeave:g,onAfterLeave:y,onLeaveCancelled:M,onBeforeAppear:x,onAppear:B,onAfterAppear:W,onAppearCancelled:N}=t,L=String(e.key),d=ii(n,e),E=(m,V)=>{m&&Qe(m,o,9,V)},I=(m,V)=>{const ee=V[1];E(m,V),Q(m)?m.every(ie=>ie.length<=1)&&ee():m.length<=1&&ee()},$={mode:i,persisted:s,beforeEnter(m){let V=l;if(!n.isMounted)if(r)V=x||l;else return;m._leaveCb&&m._leaveCb(!0);const ee=d[L];ee&&Rt(e,ee)&&ee.el._leaveCb&&ee.el._leaveCb(),E(V,[m])},enter(m){let V=a,ee=c,ie=u;if(!n.isMounted)if(r)V=B||a,ee=W||c,ie=N||u;else return;let b=!1;const F=m._enterCb=oe=>{b||(b=!0,oe?E(ie,[m]):E(ee,[m]),$.delayedLeave&&$.delayedLeave(),m._enterCb=void 0)};V?I(V,[m,F]):F()},leave(m,V){const ee=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return V();E(h,[m]);let ie=!1;const b=m._leaveCb=F=>{ie||(ie=!0,V(),F?E(M,[m]):E(y,[m]),m._leaveCb=void 0,d[ee]===e&&delete d[ee])};d[ee]=e,g?I(g,[m,b]):b()},clone(m){return Ao(m,t,n,o)}};return $}function Bo(e){if(Un(e))return e=St(e),e.children=null,e}function si(e){return Un(e)?e.children?e.children[0]:void 0:e}function Do(e,t){e.shapeFlag&6&&e.component?Do(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 li(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===Ce?(s.patchFlag&128&&r++,o=o.concat(li(s.children,t,l))):(t||s.type!==tt)&&o.push(l!=null?St(s,{key:l}):s)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function Te(e,t){return se(e)?(()=>ke({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function fa(e,t){ai(e,"a",t)}function da(e,t){ai(e,"da",t)}function ai(e,t,n=ze){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)&&pa(o,t,n,r),r=r.parent}}function pa(e,t,n,o){const r=Kn(t,e,o,!0);st(()=>{po(o[t],r)},n)}function Kn(e,t,n=ze,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Yt(),Gt(n);const l=Qe(t,n,e,s);return Nt(),Xt(),l});return o?r.unshift(i):r.push(i),i}}const vt=e=>(t,n=ze)=>(!mn||e==="sp")&&Kn(e,(...o)=>t(...o),n),ha=vt("bm"),et=vt("m"),ga=vt("bu"),ma=vt("u"),Yn=vt("bum"),st=vt("um"),va=vt("sp"),_a=vt("rtg"),ba=vt("rtc");function ya(e,t=ze){Kn("ec",e,t)}const ci="components",ui=Symbol.for("v-ndc");function wa(e){return Ie(e)?xa(ci,e,!1)||e:e||ui}function xa(e,t,n=!0,o=!1){const r=je||ze;if(r){const i=r.type;if(e===ci){const l=Za(i,!1);if(l&&(l===t||l===We(t)||l===On(We(t))))return i}const s=fi(r[e]||i[e],t)||fi(r.appContext[e],t);return!s&&o?i:s}}function fi(e,t){return e&&(e[t]||e[We(t)]||e[On(We(t))])}function fn(e,t,n,o){let r;const i=n&&n[o];if(Q(e)||Ie(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(_e(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 di(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(Q(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(je.isCE||je.parent&&un(je.parent)&&je.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&&pi(i(n)),l=we(Ce,{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 pi(e){return e.some(t=>Qn(t)?!(t.type===tt||t.type===Ce&&!pi(t.children)):!0)?e:null}const Ro=e=>e?ji(e)?no(e)||e.proxy:Ro(e.parent):null,dn=ke(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=>Ro(e.parent),$root:e=>Ro(e.root),$emit:e=>e.emit,$options:e=>Vo(e),$forceUpdate:e=>e.f||(e.f=()=>zo(e.update)),$nextTick:e=>e.n||(e.n=gt.bind(e.proxy)),$watch:e=>aa.bind(e)}),No=(e,t)=>e!==ce&&!e.__isScriptSetup&&fe(e,t),ka={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 y=s[t];if(y!==void 0)switch(y){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(No(o,t))return s[t]=1,o[t];if(r!==ce&&fe(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&fe(c,t))return s[t]=3,i[t];if(n!==ce&&fe(n,t))return s[t]=4,n[t];Fo&&(s[t]=0)}}const u=dn[t];let h,g;if(u)return t==="$attrs"&&Ne(e,"get",t),u(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==ce&&fe(n,t))return s[t]=4,n[t];if(g=a.config.globalProperties,fe(g,t))return g[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return No(r,t)?(r[t]=n,!0):o!==ce&&fe(o,t)?(o[t]=n,!0):fe(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!==ce&&fe(e,s)||No(t,s)||(l=i[0])&&fe(l,s)||fe(o,s)||fe(dn,s)||fe(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hi(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fo=!0;function Ca(e){const t=Vo(e),n=e.proxy,o=e.ctx;Fo=!1,t.beforeCreate&&gi(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:c,created:u,beforeMount:h,mounted:g,beforeUpdate:y,updated:M,activated:x,deactivated:B,beforeDestroy:W,beforeUnmount:N,destroyed:L,unmounted:d,render:E,renderTracked:I,renderTriggered:$,errorCaptured:m,serverPrefetch:V,expose:ee,inheritAttrs:ie,components:b,directives:F,filters:oe}=t;if(c&&Sa(c,o,null),s)for(const k in s){const P=s[k];se(P)&&(o[k]=P.bind(n))}if(r){const k=r.call(n,n);_e(k)&&(e.data=sn(k))}if(Fo=!0,i)for(const k in i){const P=i[k],U=se(P)?P.bind(n,n):se(P.get)?P.get.bind(n,n):rt,ne=!se(P)&&se(P.set)?P.set.bind(n):rt,ye=ae({get:U,set:ne});Object.defineProperty(o,k,{enumerable:!0,configurable:!0,get:()=>ye.value,set:he=>ye.value=he})}if(l)for(const k in l)mi(l[k],o,n,k);if(a){const k=se(a)?a.call(n):a;Reflect.ownKeys(k).forEach(P=>{Zn(P,k[P])})}u&&gi(u,e,"c");function C(k,P){Q(P)?P.forEach(U=>k(U.bind(n))):P&&k(P.bind(n))}if(C(ha,h),C(et,g),C(ga,y),C(ma,M),C(fa,x),C(da,B),C(ya,m),C(ba,I),C(_a,$),C(Yn,N),C(st,d),C(va,V),Q(ee))if(ee.length){const k=e.exposed||(e.exposed={});ee.forEach(P=>{Object.defineProperty(k,P,{get:()=>n[P],set:U=>n[P]=U})})}else e.exposed||(e.exposed={});E&&e.render===rt&&(e.render=E),ie!=null&&(e.inheritAttrs=ie),b&&(e.components=b),F&&(e.directives=F)}function Sa(e,t,n=rt){Q(e)&&(e=Ho(e));for(const o in e){const r=e[o];let i;_e(r)?"default"in r?i=Bt(r.from||o,r.default,!0):i=Bt(r.from||o):i=Bt(r),$e(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function gi(e,t,n){Qe(Q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function mi(e,t,n,o){const r=o.includes(".")?oi(n,o):()=>n[o];if(Ie(e)){const i=t[e];se(i)&&pe(r,i)}else if(se(e))pe(r,e.bind(n));else if(_e(e))if(Q(e))e.forEach(i=>mi(i,t,n,o));else{const i=se(e.handler)?e.handler.bind(n):t[e.handler];se(i)&&pe(r,i,e)}}function Vo(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)),_e(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=Ia[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Ia={data:vi,props:_i,emits:_i,methods:pn,computed:pn,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:pn,directives:pn,watch:Ta,provide:vi,inject:$a};function vi(e,t){return t?e?function(){return ke(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function $a(e,t){return pn(Ho(e),Ho(t))}function Ho(e){if(Q(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 pn(e,t){return e?ke(Object.create(null),e,t):t}function _i(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:ke(Object.create(null),hi(e),hi(t??{})):t}function Ta(e,t){if(!e)return t;if(!t)return e;const n=ke(Object.create(null),e);for(const o in t)n[o]=De(e[o],t[o]);return n}function bi(){return{app:null,config:{isNativeTag:rl,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 Pa=0;function Ea(e,t){return function(o,r=null){se(o)||(o=ke({},o)),r!=null&&!_e(r)&&(r=null);const i=bi(),s=new Set;let l=!1;const a=i.app={_uid:Pa++,_component:o,_props:r,_container:null,_context:i,_instance:null,version:ec,get config(){return i.config},set config(c){},use(c,...u){return s.has(c)||(c&&se(c.install)?(s.add(c),c.install(a,...u)):se(c)&&(s.add(c),c(a,...u))),a},mixin(c){return 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,h){if(!l){const g=Z(o,r);return g.appContext=i,u&&t?t(g,c):e(g,c,h),l=!0,a._container=c,c.__vue_app__=a,no(g.component)||g.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(ze){let n=ze.provides;const o=ze.parent&&ze.parent.provides;o===n&&(n=ze.provides=Object.create(o)),n[e]=t}}function Bt(e,t,n=!1){const o=ze||je;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 Oa(e,t,n,o=!1){const r={},i={};Ln(i,Gn,1),e.propsDefaults=Object.create(null),yi(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:Wl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Ma(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=de(r),[a]=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 g=u[h];if(Vn(e.emitsOptions,g))continue;const y=t[g];if(a)if(fe(i,g))y!==i[g]&&(i[g]=y,c=!0);else{const M=We(g);r[M]=Wo(a,l,M,y,e,!1)}else y!==i[g]&&(i[g]=y,c=!0)}}}else{yi(e,t,r,i)&&(c=!0);let u;for(const h in l)(!t||!fe(t,h)&&((u=Ze(h))===h||!fe(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Wo(a,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!fe(t,h))&&(delete i[h],c=!0)}c&&pt(e,"set","$attrs")}function yi(e,t,n,o){const[r,i]=e.propsOptions;let s=!1,l;if(t)for(let a in t){if(Pn(a))continue;const c=t[a];let u;r&&fe(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=de(n),c=l||ce;for(let u=0;u<i.length;u++){const h=i[u];n[h]=Wo(r,a,h,c[h],e,!fe(c,h))}}return s}function Wo(e,t,n,o,r,i){const s=e[n];if(s!=null){const l=fe(s,"default");if(l&&o===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&se(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Gt(r),o=c[n]=a.call(null,t),Nt())}else o=a}s[0]&&(i&&!l?o=!1:s[1]&&(o===""||o===Ze(n))&&(o=!0))}return o}function wi(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(!se(e)){const u=h=>{a=!0;const[g,y]=wi(h,t,!0);ke(s,g),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!a)return _e(e)&&o.set(e,qe),qe;if(Q(i))for(let u=0;u<i.length;u++){const h=We(i[u]);xi(h)&&(s[h]=ce)}else if(i)for(const u in i){const h=We(u);if(xi(h)){const g=i[u],y=s[h]=Q(g)||se(g)?{type:g}:ke({},g);if(y){const M=Si(Boolean,y.type),x=Si(String,y.type);y[0]=M>-1,y[1]=x<0||M<x,(M>-1||fe(y,"default"))&&l.push(h)}}}const c=[s,l];return _e(e)&&o.set(e,c),c}function xi(e){return e[0]!=="$"}function ki(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ci(e,t){return ki(e)===ki(t)}function Si(e,t){return Q(t)?t.findIndex(n=>Ci(n,e)):se(t)&&Ci(t,e)?0:-1}const Ii=e=>e[0]==="_"||e==="$stable",Uo=e=>Q(e)?e.map(ut):[ut(e)],La=(e,t,n)=>{if(t._n)return t;const o=le((...r)=>Uo(t(...r)),n);return o._c=!1,o},$i=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Ii(r))continue;const i=e[r];if(se(i))t[r]=La(r,i,o);else if(i!=null){const s=Uo(i);t[r]=()=>s}}},Ti=(e,t)=>{const n=Uo(t);e.slots.default=()=>n},za=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=de(t),Ln(t,"_",n)):$i(t,e.slots={})}else e.slots={},t&&Ti(e,t);Ln(e.slots,Gn,1)},ja=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=ce;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ke(r,t),!n&&l===1&&delete r._):(i=!t.$stable,$i(t,r)),s=t}else t&&(Ti(e,t),s={default:1});if(i)for(const l in r)!Ii(l)&&!(l in s)&&delete r[l]};function Ko(e,t,n,o,r=!1){if(Q(e)){e.forEach((g,y)=>Ko(g,t&&(Q(t)?t[y]:t),n,o,r));return}if(un(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===ce?l.refs={}:l.refs,h=l.setupState;if(c!=null&&c!==a&&(Ie(c)?(u[c]=null,fe(h,c)&&(h[c]=null)):$e(c)&&(c.value=null)),se(a))Ct(a,l,12,[s,u]);else{const g=Ie(a),y=$e(a);if(g||y){const M=()=>{if(e.f){const x=g?fe(h,a)?h[a]:u[a]:a.value;r?Q(x)&&po(x,i):Q(x)?x.includes(i)||x.push(i):g?(u[a]=[i],fe(h,a)&&(h[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else g?(u[a]=s,fe(h,a)&&(h[a]=s)):y&&(a.value=s,e.k&&(u[e.k]=s))};s?(M.id=-1,Fe(M,n)):M()}}}const Fe=la;function Aa(e){return Ba(e)}function Ba(e,t){const n=bo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:g,setScopeId:y=rt,insertStaticContent:M}=e,x=(f,p,_,T=null,S=null,j=null,H=!1,z=null,R=!!p.dynamicChildren)=>{if(f===p)return;f&&!Rt(f,p)&&(T=Ee(f),he(f,S,j,!0),f=null),p.patchFlag===-2&&(R=!1,p.dynamicChildren=null);const{type:O,ref:v,shapeFlag:w}=p;switch(O){case Jn:B(f,p,_,T);break;case tt:W(f,p,_,T);break;case Yo:f==null&&N(p,_,T,H);break;case Ce:b(f,p,_,T,S,j,H,z,R);break;default:w&1?E(f,p,_,T,S,j,H,z,R):w&6?F(f,p,_,T,S,j,H,z,R):(w&64||w&128)&&O.process(f,p,_,T,S,j,H,z,R,dt)}v!=null&&S&&Ko(v,f&&f.ref,j,p||f,!p)},B=(f,p,_,T)=>{if(f==null)o(p.el=l(p.children),_,T);else{const S=p.el=f.el;p.children!==f.children&&c(S,p.children)}},W=(f,p,_,T)=>{f==null?o(p.el=a(p.children||""),_,T):p.el=f.el},N=(f,p,_,T)=>{[f.el,f.anchor]=M(f.children,p,_,T,f.el,f.anchor)},L=({el:f,anchor:p},_,T)=>{let S;for(;f&&f!==p;)S=g(f),o(f,_,T),f=S;o(p,_,T)},d=({el:f,anchor:p})=>{let _;for(;f&&f!==p;)_=g(f),r(f),f=_;r(p)},E=(f,p,_,T,S,j,H,z,R)=>{H=H||p.type==="svg",f==null?I(p,_,T,S,j,H,z,R):V(f,p,S,j,H,z,R)},I=(f,p,_,T,S,j,H,z)=>{let R,O;const{type:v,props:w,shapeFlag:K,transition:J,dirs:re}=f;if(R=f.el=s(f.type,j,w&&w.is,w),K&8?u(R,f.children):K&16&&m(f.children,R,null,T,S,j&&v!=="foreignObject",H,z),re&&At(f,null,T,"created"),$(R,f,f.scopeId,H,T),w){for(const ge in w)ge!=="value"&&!Pn(ge)&&i(R,ge,null,w[ge],j,f.children,T,S,ve);"value"in w&&i(R,"value",null,w.value),(O=w.onVnodeBeforeMount)&&ft(O,T,f)}re&&At(f,null,T,"beforeMount");const me=(!S||S&&!S.pendingBranch)&&J&&!J.persisted;me&&J.beforeEnter(R),o(R,p,_),((O=w&&w.onVnodeMounted)||me||re)&&Fe(()=>{O&&ft(O,T,f),me&&J.enter(R),re&&At(f,null,T,"mounted")},S)},$=(f,p,_,T,S)=>{if(_&&y(f,_),T)for(let j=0;j<T.length;j++)y(f,T[j]);if(S){let j=S.subTree;if(p===j){const H=S.vnode;$(f,H,H.scopeId,H.slotScopeIds,S.parent)}}},m=(f,p,_,T,S,j,H,z,R=0)=>{for(let O=R;O<f.length;O++){const v=f[O]=z?$t(f[O]):ut(f[O]);x(null,v,p,_,T,S,j,H,z)}},V=(f,p,_,T,S,j,H)=>{const z=p.el=f.el;let{patchFlag:R,dynamicChildren:O,dirs:v}=p;R|=f.patchFlag&16;const w=f.props||ce,K=p.props||ce;let J;_&&Dt(_,!1),(J=K.onVnodeBeforeUpdate)&&ft(J,_,p,f),v&&At(p,f,_,"beforeUpdate"),_&&Dt(_,!0);const re=S&&p.type!=="foreignObject";if(O?ee(f.dynamicChildren,O,z,_,T,re,j):H||P(f,p,z,null,_,T,re,j,!1),R>0){if(R&16)ie(z,p,w,K,_,T,S);else if(R&2&&w.class!==K.class&&i(z,"class",null,K.class,S),R&4&&i(z,"style",w.style,K.style,S),R&8){const me=p.dynamicProps;for(let ge=0;ge<me.length;ge++){const xe=me[ge],Xe=w[xe],Ve=K[xe];(Ve!==Xe||xe==="value")&&i(z,xe,Xe,Ve,S,f.children,_,T,ve)}}R&1&&f.children!==p.children&&u(z,p.children)}else!H&&O==null&&ie(z,p,w,K,_,T,S);((J=K.onVnodeUpdated)||v)&&Fe(()=>{J&&ft(J,_,p,f),v&&At(p,f,_,"updated")},T)},ee=(f,p,_,T,S,j,H)=>{for(let z=0;z<p.length;z++){const R=f[z],O=p[z],v=R.el&&(R.type===Ce||!Rt(R,O)||R.shapeFlag&70)?h(R.el):_;x(R,O,v,null,T,S,j,H,!0)}},ie=(f,p,_,T,S,j,H)=>{if(_!==T){if(_!==ce)for(const z in _)!Pn(z)&&!(z in T)&&i(f,z,_[z],null,H,p.children,S,j,ve);for(const z in T){if(Pn(z))continue;const R=T[z],O=_[z];R!==O&&z!=="value"&&i(f,z,O,R,H,p.children,S,j,ve)}"value"in T&&i(f,"value",_.value,T.value)}},b=(f,p,_,T,S,j,H,z,R)=>{const O=p.el=f?f.el:l(""),v=p.anchor=f?f.anchor:l("");let{patchFlag:w,dynamicChildren:K,slotScopeIds:J}=p;J&&(z=z?z.concat(J):J),f==null?(o(O,_,T),o(v,_,T),m(p.children,_,v,S,j,H,z,R)):w>0&&w&64&&K&&f.dynamicChildren?(ee(f.dynamicChildren,K,_,S,j,H,z),(p.key!=null||S&&p===S.subTree)&&Pi(f,p,!0)):P(f,p,_,v,S,j,H,z,R)},F=(f,p,_,T,S,j,H,z,R)=>{p.slotScopeIds=z,f==null?p.shapeFlag&512?S.ctx.activate(p,_,T,H,R):oe(p,_,T,S,j,H,R):D(f,p,R)},oe=(f,p,_,T,S,j,H)=>{const z=f.component=Ua(f,T,S);if(Un(f)&&(z.ctx.renderer=dt),Ka(z),z.asyncDep){if(S&&S.registerDep(z,C),!f.el){const R=z.subTree=Z(tt);W(null,R,p,_)}return}C(z,f,p,_,S,j,H)},D=(f,p,_)=>{const T=p.component=f.component;if(ra(f,p,_))if(T.asyncDep&&!T.asyncResolved){k(T,p,_);return}else T.next=p,Ql(T.update),T.update();else p.el=f.el,T.vnode=p},C=(f,p,_,T,S,j,H)=>{const z=()=>{if(f.isMounted){let{next:v,bu:w,u:K,parent:J,vnode:re}=f,me=v,ge;Dt(f,!1),v?(v.el=re.el,k(f,v,H)):v=re,w&&Mn(w),(ge=v.props&&v.props.onVnodeBeforeUpdate)&&ft(ge,J,v,re),Dt(f,!0);const xe=jo(f),Xe=f.subTree;f.subTree=xe,x(Xe,xe,h(Xe.el),Ee(Xe),f,S,j),v.el=xe.el,me===null&&ia(f,xe.el),K&&Fe(K,S),(ge=v.props&&v.props.onVnodeUpdated)&&Fe(()=>ft(ge,J,v,re),S)}else{let v;const{el:w,props:K}=p,{bm:J,m:re,parent:me}=f,ge=un(p);if(Dt(f,!1),J&&Mn(J),!ge&&(v=K&&K.onVnodeBeforeMount)&&ft(v,me,p),Dt(f,!0),w&&In){const xe=()=>{f.subTree=jo(f),In(w,f.subTree,f,S,null)};ge?p.type.__asyncLoader().then(()=>!f.isUnmounted&&xe()):xe()}else{const xe=f.subTree=jo(f);x(null,xe,_,T,f,S,j),p.el=xe.el}if(re&&Fe(re,S),!ge&&(v=K&&K.onVnodeMounted)){const xe=p;Fe(()=>ft(v,me,xe),S)}(p.shapeFlag&256||me&&un(me.vnode)&&me.vnode.shapeFlag&256)&&f.a&&Fe(f.a,S),f.isMounted=!0,p=_=T=null}},R=f.effect=new Co(z,()=>zo(O),f.scope),O=f.update=()=>R.run();O.id=f.uid,Dt(f,!0),O()},k=(f,p,_)=>{p.component=f;const T=f.vnode.props;f.vnode=p,f.next=null,Ma(f,p.props,T,_),ja(f,p.children,_),Yt(),Zr(),Xt()},P=(f,p,_,T,S,j,H,z,R=!1)=>{const O=f&&f.children,v=f?f.shapeFlag:0,w=p.children,{patchFlag:K,shapeFlag:J}=p;if(K>0){if(K&128){ne(O,w,_,T,S,j,H,z,R);return}else if(K&256){U(O,w,_,T,S,j,H,z,R);return}}J&8?(v&16&&ve(O,S,j),w!==O&&u(_,w)):v&16?J&16?ne(O,w,_,T,S,j,H,z,R):ve(O,S,j,!0):(v&8&&u(_,""),J&16&&m(w,_,T,S,j,H,z,R))},U=(f,p,_,T,S,j,H,z,R)=>{f=f||qe,p=p||qe;const O=f.length,v=p.length,w=Math.min(O,v);let K;for(K=0;K<w;K++){const J=p[K]=R?$t(p[K]):ut(p[K]);x(f[K],J,_,null,S,j,H,z,R)}O>v?ve(f,S,j,!0,!1,w):m(p,_,T,S,j,H,z,R,w)},ne=(f,p,_,T,S,j,H,z,R)=>{let O=0;const v=p.length;let w=f.length-1,K=v-1;for(;O<=w&&O<=K;){const J=f[O],re=p[O]=R?$t(p[O]):ut(p[O]);if(Rt(J,re))x(J,re,_,null,S,j,H,z,R);else break;O++}for(;O<=w&&O<=K;){const J=f[w],re=p[K]=R?$t(p[K]):ut(p[K]);if(Rt(J,re))x(J,re,_,null,S,j,H,z,R);else break;w--,K--}if(O>w){if(O<=K){const J=K+1,re=J<v?p[J].el:T;for(;O<=K;)x(null,p[O]=R?$t(p[O]):ut(p[O]),_,re,S,j,H,z,R),O++}}else if(O>K)for(;O<=w;)he(f[O],S,j,!0),O++;else{const J=O,re=O,me=new Map;for(O=re;O<=K;O++){const Re=p[O]=R?$t(p[O]):ut(p[O]);Re.key!=null&&me.set(Re.key,O)}let ge,xe=0;const Xe=K-re+1;let Ve=!1,ao=0;const Ut=new Array(Xe);for(O=0;O<Xe;O++)Ut[O]=0;for(O=J;O<=w;O++){const Re=f[O];if(xe>=Xe){he(Re,S,j,!0);continue}let ot;if(Re.key!=null)ot=me.get(Re.key);else for(ge=re;ge<=K;ge++)if(Ut[ge-re]===0&&Rt(Re,p[ge])){ot=ge;break}ot===void 0?he(Re,S,j,!0):(Ut[ot-re]=O+1,ot>=ao?ao=ot:Ve=!0,x(Re,p[ot],_,null,S,j,H,z,R),xe++)}const co=Ve?Da(Ut):qe;for(ge=co.length-1,O=Xe-1;O>=0;O--){const Re=re+O,ot=p[Re],uo=Re+1<v?p[Re+1].el:T;Ut[O]===0?x(null,ot,_,uo,S,j,H,z,R):Ve&&(ge<0||O!==co[ge]?ye(ot,_,uo,2):ge--)}}},ye=(f,p,_,T,S=null)=>{const{el:j,type:H,transition:z,children:R,shapeFlag:O}=f;if(O&6){ye(f.component.subTree,p,_,T);return}if(O&128){f.suspense.move(p,_,T);return}if(O&64){H.move(f,p,_,dt);return}if(H===Ce){o(j,p,_);for(let w=0;w<R.length;w++)ye(R[w],p,_,T);o(f.anchor,p,_);return}if(H===Yo){L(f,p,_);return}if(T!==2&&O&1&&z)if(T===0)z.beforeEnter(j),o(j,p,_),Fe(()=>z.enter(j),S);else{const{leave:w,delayLeave:K,afterLeave:J}=z,re=()=>o(j,p,_),me=()=>{w(j,()=>{re(),J&&J()})};K?K(j,re,me):me()}else o(j,p,_)},he=(f,p,_,T=!1,S=!1)=>{const{type:j,props:H,ref:z,children:R,dynamicChildren:O,shapeFlag:v,patchFlag:w,dirs:K}=f;if(z!=null&&Ko(z,null,_,f,!0),v&256){p.ctx.deactivate(f);return}const J=v&1&&K,re=!un(f);let me;if(re&&(me=H&&H.onVnodeBeforeUnmount)&&ft(me,p,f),v&6)Le(f.component,_,T);else{if(v&128){f.suspense.unmount(_,T);return}J&&At(f,null,p,"beforeUnmount"),v&64?f.type.remove(f,p,_,S,dt,T):O&&(j!==Ce||w>0&&w&64)?ve(O,p,_,!1,!0):(j===Ce&&w&384||!S&&v&16)&&ve(R,p,_),T&&ue(f)}(re&&(me=H&&H.onVnodeUnmounted)||J)&&Fe(()=>{me&&ft(me,p,f),J&&At(f,null,p,"unmounted")},_)},ue=f=>{const{type:p,el:_,anchor:T,transition:S}=f;if(p===Ce){te(_,T);return}if(p===Yo){d(f);return}const j=()=>{r(_),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(f.shapeFlag&1&&S&&!S.persisted){const{leave:H,delayLeave:z}=S,R=()=>H(_,j);z?z(f.el,j,R):R()}else j()},te=(f,p)=>{let _;for(;f!==p;)_=g(f),r(f),f=_;r(p)},Le=(f,p,_)=>{const{bum:T,scope:S,update:j,subTree:H,um:z}=f;T&&Mn(T),S.stop(),j&&(j.active=!1,he(H,f,p,_)),z&&Fe(z,p),Fe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},ve=(f,p,_,T=!1,S=!1,j=0)=>{for(let H=j;H<f.length;H++)he(f[H],p,_,T,S)},Ee=f=>f.shapeFlag&6?Ee(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),Se=(f,p,_)=>{f==null?p._vnode&&he(p._vnode,null,null,!0):x(p._vnode||null,f,p,null,null,null,_),Zr(),Jr(),p._vnode=f},dt={p:x,um:he,m:ye,r:ue,mt:oe,mc:m,pc:P,pbc:ee,n:Ee,o:e};let Sn,In;return t&&([Sn,In]=t(dt)),{render:Se,hydrate:Sn,createApp:Ea(Se,Sn)}}function Dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Pi(e,t,n=!1){const o=e.children,r=t.children;if(Q(o)&&Q(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]=$t(r[i]),l.el=s.el),n||Pi(s,l)),l.type===Jn&&(l.el=s.el)}}function Da(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 Ra=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),Jn=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),Yo=Symbol.for("v-stc"),hn=[];let lt=null;function A(e=!1){hn.push(lt=e?null:[])}function Na(){hn.pop(),lt=hn[hn.length-1]||null}let gn=1;function Ei(e){gn+=e}function Oi(e){return e.dynamicChildren=gn>0?lt||qe:null,Na(),gn>0&<&<.push(e),e}function q(e,t,n,o,r,i){return Oi(X(e,t,n,o,r,i,!0))}function we(e,t,n,o,r){return Oi(Z(e,t,n,o,r,!0))}function Qn(e){return e?e.__v_isVNode===!0:!1}function Rt(e,t){return e.type===t.type&&e.key===t.key}const Gn="__vInternal",Mi=({key:e})=>e??null,eo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||$e(e)||se(e)?{i:je,r:e,k:t,f:!!n}:e:null);function X(e,t=null,n=null,o=0,r=null,i=e===Ce?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mi(t),ref:t&&eo(t),scopeId:ei,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:je};return l?(Xo(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Ie(n)?8:16),gn>0&&!s&<&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&<.push(a),a}const Z=Fa;function Fa(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===ui)&&(e=tt),Qn(e)){const l=St(e,t,!0);return n&&Xo(l,n),gn>0&&!i&<&&(l.shapeFlag&6?lt[lt.indexOf(e)]=l:lt.push(l)),l.patchFlag|=-2,l}if(Ja(e)&&(e=e.__vccOpts),t){t=Va(t);let{class:l,style:a}=t;l&&!Ie(l)&&(t.class=Oe(l)),_e(a)&&(Vr(a)&&!Q(a)&&(a=ke({},a)),t.style=Be(a))}const s=Ie(e)?1:sa(e)?128:Ra(e)?64:_e(e)?4:se(e)?2:0;return X(e,t,n,o,r,s,i,!0)}function Va(e){return e?Vr(e)||Gn in e?ke({},e):e:null}function St(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&&Mi(l),ref:t&&t.ref?n&&r?Q(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!==Ce?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&&St(e.ssContent),ssFallback:e.ssFallback&&St(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function It(e=" ",t=0){return Z(Jn,null,e,t)}function Me(e="",t=!1){return t?(A(),we(tt,null,e)):Z(tt,null,e)}function ut(e){return e==null||typeof e=="boolean"?Z(tt):Q(e)?Z(Ce,null,e.slice()):typeof e=="object"?$t(e):Z(Jn,null,String(e))}function $t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:St(e)}function Xo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Xo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Gn in t)?t._ctx=je:r===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:je},n=32):(t=String(t),o&64?(n=16,t=[It(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($n(r)){const i=t[r],s=o[r];s&&i!==s&&!(Q(i)&&i.includes(s))&&(t[r]=i?[].concat(i,s):s)}else r!==""&&(t[r]=o[r])}return t}function ft(e,t,n,o=null){Qe(e,t,7,[n,o])}const Ha=bi();let Wa=0;function Ua(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Ha,i={uid:Wa++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new gl(!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:wi(o,r),emitsOptions:Gr(o,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:o.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ta.bind(null,i),e.ce&&e.ce(i),i}let ze=null;const Li=()=>ze||je;let qo,Qt,zi="__VUE_INSTANCE_SETTERS__";(Qt=bo()[zi])||(Qt=bo()[zi]=[]),Qt.push(e=>ze=e),qo=e=>{Qt.length>1?Qt.forEach(t=>t(e)):Qt[0](e)};const Gt=e=>{qo(e),e.scope.on()},Nt=()=>{ze&&ze.scope.off(),qo(null)};function ji(e){return e.vnode.shapeFlag&4}let mn=!1;function Ka(e,t=!1){mn=t;const{props:n,children:o}=e.vnode,r=ji(e);Oa(e,n,r,t),za(e,o);const i=r?Ya(e,t):void 0;return mn=!1,i}function Ya(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Hr(new Proxy(e.ctx,ka));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?qa(e):null;Gt(e),Yt();const i=Ct(o,e,0,[e.props,r]);if(Xt(),Nt(),_r(i)){if(i.then(Nt,Nt),t)return i.then(s=>{Ai(e,s,t)}).catch(s=>{Fn(s,e,0)});e.asyncDep=i}else Ai(e,i,t)}else Di(e,t)}function Ai(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Yr(t)),Di(e,n)}let Bi;function Di(e,t,n){const o=e.type;if(!e.render){if(!t&&Bi&&!o.render){const r=o.template||Vo(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=ke(ke({isCustomElement:i,delimiters:l},s),a);o.render=Bi(r,c)}}e.render=o.render||rt}Gt(e),Yt(),Ca(e),Xt(),Nt()}function Xa(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ne(e,"get","$attrs"),t[n]}}))}function qa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Xa(e)},slots:e.slots,emit:e.emit,expose:t}}function no(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yr(Hr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}}))}function Za(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Ja(e){return se(e)&&"__vccOpts"in e}const ae=(e,t)=>ql(e,t,mn);function Ri(e,t,n){const o=arguments.length;return o===2?_e(t)&&!Q(t)?Qn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Qn(n)&&(n=[n]),Z(e,t,n))}const Qa=Symbol.for("v-scx"),Ga=()=>Bt(Qa),ec="3.3.4",tc="http://www.w3.org/2000/svg",Ft=typeof document<"u"?document:null,Ni=Ft&&Ft.createElement("template"),nc={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?Ft.createElementNS(tc,e):Ft.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.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{Ni.innerHTML=o?`<svg>${e}</svg>`:e;const l=Ni.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 oc(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 rc(e,t,n){const o=e.style,r=Ie(n);if(n&&!r){if(t&&!Ie(t))for(const i in t)n[i]==null&&Zo(o,i,"");for(const i in n)Zo(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 Fi=/\s*!important$/;function Zo(e,t,n){if(Q(n))n.forEach(o=>Zo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=ic(e,t);Fi.test(n)?e.setProperty(Ze(o),n.replace(Fi,""),"important"):e[o]=n}}const Vi=["Webkit","Moz","ms"],Jo={};function ic(e,t){const n=Jo[t];if(n)return n;let o=We(t);if(o!=="filter"&&o in e)return Jo[t]=o;o=On(o);for(let r=0;r<Vi.length;r++){const i=Vi[r]+o;if(i in e)return Jo[t]=i}return t}const Hi="http://www.w3.org/1999/xlink";function sc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Hi,t.slice(6,t.length)):e.setAttributeNS(Hi,t,n);else{const i=hl(t);n==null||i&&!xr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function lc(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=xr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function en(e,t,n,o){e.addEventListener(t,n,o)}function ac(e,t,n,o){e.removeEventListener(t,n,o)}function cc(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]=uc(t);if(o){const c=i[t]=pc(o,r);en(e,l,c,a)}else s&&(ac(e,l,s,a),i[t]=void 0)}}const Wi=/(?:Once|Passive|Capture)$/;function uc(e){let t;if(Wi.test(e)){t={};let o;for(;o=e.match(Wi);)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 fc=Promise.resolve(),dc=()=>Qo||(fc.then(()=>Qo=0),Qo=Date.now());function pc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Qe(hc(o,n.value),t,5,[o])};return n.value=e,n.attached=dc(),n}function hc(e,t){if(Q(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 Ui=/^on[a-z]/,gc=(e,t,n,o,r=!1,i,s,l,a)=>{t==="class"?oc(e,o,r):t==="style"?rc(e,n,o):$n(t)?fo(t)||cc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mc(e,t,o,r))?lc(e,t,o,i,s,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),sc(e,t,o,r))};function mc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ui.test(t)&&se(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ui.test(t)&&Ie(n)?!1:t in e}function vc(e,t){const n=Te(e);class o extends Go{constructor(i){super(n,i,t)}}return o.def=n,o}const _c=typeof HTMLElement<"u"?HTMLElement:class{};class Go extends _c{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||(os(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&&!Q(i))for(const a in i){const c=i[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=_o(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=Q(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=_o(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(){os(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Z(this._def,ke({},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 Go){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",vn="animation",tn=(e,{slots:t})=>Ri(ua,bc(e),t);tn.displayName="Transition";const Ki={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};tn.props=ke({},ri,Ki);const Vt=(e,t=[])=>{Q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yi=e=>e?Q(e)?e.some(t=>t.length>1):e.length>1:!1;function bc(e){const t={};for(const b in e)b in Ki||(t[b]=e[b]);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:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,M=yc(r),x=M&&M[0],B=M&&M[1],{onBeforeEnter:W,onEnter:N,onEnterCancelled:L,onLeave:d,onLeaveCancelled:E,onBeforeAppear:I=W,onAppear:$=N,onAppearCancelled:m=L}=t,V=(b,F,oe)=>{Ht(b,F?u:l),Ht(b,F?c:s),oe&&oe()},ee=(b,F)=>{b._isLeaving=!1,Ht(b,h),Ht(b,y),Ht(b,g),F&&F()},ie=b=>(F,oe)=>{const D=b?$:N,C=()=>V(F,b,oe);Vt(D,[F,C]),Xi(()=>{Ht(F,b?a:i),Pt(F,b?u:l),Yi(D)||qi(F,o,x,C)})};return ke(t,{onBeforeEnter(b){Vt(W,[b]),Pt(b,i),Pt(b,s)},onBeforeAppear(b){Vt(I,[b]),Pt(b,a),Pt(b,c)},onEnter:ie(!1),onAppear:ie(!0),onLeave(b,F){b._isLeaving=!0;const oe=()=>ee(b,F);Pt(b,h),kc(),Pt(b,g),Xi(()=>{b._isLeaving&&(Ht(b,h),Pt(b,y),Yi(d)||qi(b,o,B,oe))}),Vt(d,[b,oe])},onEnterCancelled(b){V(b,!1),Vt(L,[b])},onAppearCancelled(b){V(b,!0),Vt(m,[b])},onLeaveCancelled(b){ee(b),Vt(E,[b])}})}function yc(e){if(e==null)return null;if(_e(e))return[er(e.enter),er(e.leave)];{const t=er(e);return[t,t]}}function er(e){return _o(e)}function Pt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ht(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 Xi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wc=0;function qi(e,t,n,o){const r=e._endId=++wc,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=xc(e,t);if(!s)return o();const c=s+"end";let u=0;const h=()=>{e.removeEventListener(c,g),i()},g=y=>{y.target===e&&++u>=a&&h()};setTimeout(()=>{u<a&&h()},l+1),e.addEventListener(c,g)}function xc(e,t){const n=window.getComputedStyle(e),o=M=>(n[M]||"").split(", "),r=o(`${Tt}Delay`),i=o(`${Tt}Duration`),s=Zi(r,i),l=o(`${vn}Delay`),a=o(`${vn}Duration`),c=Zi(l,a);let u=null,h=0,g=0;t===Tt?s>0&&(u=Tt,h=s,g=i.length):t===vn?c>0&&(u=vn,h=c,g=a.length):(h=Math.max(s,c),u=h>0?s>c?Tt:vn:null,g=u?u===Tt?i.length:a.length:0);const y=u===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:u,timeout:h,propCount:g,hasTransform:y}}function Zi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ji(n)+Ji(e[o])))}function Ji(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function kc(){return document.body.offsetHeight}const Qi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Q(t)?n=>Mn(t,n):t};function Cc(e){e.target.composing=!0}function Gi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Sc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Qi(r);const i=o||r.props&&r.props.type==="number";en(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&&en(e,"change",()=>{e.value=e.value.trim()}),t||(en(e,"compositionstart",Cc),en(e,"compositionend",Gi),en(e,"change",Gi))},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)}},Ic=["ctrl","shift","alt","meta"],$c={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)=>Ic.some(n=>e[`${n}Key`]&&!t.includes(n))},nt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const i=$c[t[r]];if(i&&i(n,t))return}return e(n,...o)},Tc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},es=(e,t)=>n=>{if(!("key"in n))return;const o=Ze(n.key);if(t.some(r=>r===o||Tc[r]===o))return e(n)},ts={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),_n(e,!0),o.enter(e)):o.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e._vod:"none"}const Pc=ke({patchProp:gc},nc);let ns;function Ec(){return ns||(ns=Aa(Pc))}const os=(...e)=>{Ec().render(...e)},Oc=`.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
|
-
`,be=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Mc={},Lc={class:"loading-indicator"};function zc(e,t){return A(),q("div",Lc)}const tr=be(Mc,[["render",zc],["styles",[Oc]]]),jc=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),Ac=["onTouchmove"],Bc={key:0,class:"fixed inset-0 h-[101%] overflow-auto scrollbar-none flex justify-center items-center z-10 bg-black"},Dc={class:"flex justify-between items-end"},Rc={class:"inline-block children-pointer-events-auto w-1/3"},Nc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Fc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Vc={class:"inline-block z-20 relative"},rs=Te({__name:"ReaderLayout",props:{loading:{type:Boolean},immediate:{type:Boolean},idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{}},setup(e){const t=e;function n(o){t.loading&&o.preventDefault()}return(o,r)=>{const i=tr;return A(),q("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":o.idle,"bg-black":o.immediate||!o.loading,"opacity-0":!o.immediate&&o.loading,"duration-200 transition-colors":!o.immediate}]),onTouchmove:nt(n,["stop"])},[o.loading&&o.immediate?(A(),q("div",Bc,[Z(i)])):Me("",!0),Pe(o.$slots,"default"),X("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":!o.fullScreen,"opacity-0 -z-10":o.fullScreen}])},[X("div",{class:"flex gap-1 items-center children-pointer-events-auto relative z-30 flex-shrink-0 2xs:gap-3",style:Be({paddingTop:`${o.spaceTop||0}px`})},[Pe(o.$slots,"back"),Pe(o.$slots,"exit"),Pe(o.$slots,"chapter-nav")],4),X("div",Dc,[X("div",Rc,[Pe(o.$slots,"page-nav")]),X("div",Nc,[Pe(o.$slots,"reset-zoom")]),X("div",Fc,[Pe(o.$slots,"entry"),X("div",Vc,[Pe(o.$slots,"settings")]),Pe(o.$slots,"full-screen"),Pe(o.$slots,"play")])]),X("div",{class:Oe(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":o.rtl}])},[Pe(o.$slots,"progress")],2)],2)],42,Ac)}}}),Hc=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),Wc={},Uc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Kc=[X("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[X("circle",{cx:"14",cy:"14",r:"12"}),X("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Yc(e,t){return A(),q("svg",Uc,Kc)}const is=be(Wc,[["render",Yc]]),Xc=Object.freeze(Object.defineProperty({__proto__:null,default:is},Symbol.toStringTag,{value:"Module"})),qc={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"},Zc={class:"block w-4 h-4"},Jc={class:"w-12"},ss=Te({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=is;return t.zoom!==1?(A(),q("button",qc,[X("div",Zc,[Z(o)]),X("div",Jc,Je(Math.ceil(t.zoom*100))+"%",1)])):Me("",!0)}}}),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"})),Gc={},eu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},tu=[X("path",{d:"M128 104.3v303.4c0 6.4 6.5 10.4 11.7 7.2l240.5-151.7c5.1-3.2 5.1-11.1 0-14.3L139.7 97.2c-5.2-3.3-11.7.7-11.7 7.1z",fill:"currentColor"},null,-1)];function nu(e,t){return A(),q("svg",eu,tu)}const nr=be(Gc,[["render",nu]]),ou=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),ru={},iu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},su=[X("path",{d:"M199.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1),X("path",{d:"M375.9 416h-63.8c-4.5 0-8.1-3.6-8.1-8V104c0-4.4 3.6-8 8.1-8h63.8c4.5 0 8.1 3.6 8.1 8v304c0 4.4-3.6 8-8.1 8z",fill:"currentColor"},null,-1)];function lu(e,t){return A(),q("svg",iu,su)}const or=be(ru,[["render",lu]]),au=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"}));function cu({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 rr(){const e=Bt("busy:touchDevice"),t=Bt("setBusyState");let n=!1;return st(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const uu=(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))}},nn={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>uu(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},fu={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=Te({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=rr();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((A(),we(wa(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:le(()=>[X("div",fu,[Pe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[G(nn),a.disabled?0:15]])}}),du=Object.freeze(Object.defineProperty({__proto__:null,default:oo},Symbol.toStringTag,{value:"Module"})),pu={},hu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},gu=[X("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function mu(e,t){return A(),q("svg",hu,gu)}const ls=be(pu,[["render",mu]]),vu=Object.freeze(Object.defineProperty({__proto__:null,default:ls},Symbol.toStringTag,{value:"Module"}));class _u{constructor(){ol(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function bu(){const e=new _u;return st(()=>e.dispose()),Zn("keyController",e),e}function ro(e){const t=Bt("keyController");et(()=>t.addListener(e)),st(()=>t.removeListener(e))}const yu={class:"flex w-full flex-shrink-0 justify-between items-center h-16 px-3"},wu={class:"font-medium md:text-lg text-ellipsis overflow-hidden whitespace-nowrap px-3"},xu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},as=Te({__name:"BottomSheet",props:{modelValue:{type:Boolean},name:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;ro({onKeyDown:r});const o=rr();pe(()=>n.modelValue,i=>o(i));function r(i){n.modelValue&&i.key==="Escape"&&(t("update:modelValue",!1),i.preventDefault())}return(i,s)=>{const l=ls,a=oo;return A(),q("div",{class:Oe(["fixed-screen flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:s[2]||(s[2]=()=>t("update:modelValue",!1))},[Z(tn,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:le(()=>[n.modelValue?(A(),q("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-90 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:s[1]||(s[1]=nt(()=>{},["stop"]))},[X("div",yu,[Z(a,{transparent:"",onClick:s[0]||(s[0]=()=>t("update:modelValue",!1))},{default:le(()=>[Z(l)]),_:1}),X("div",wu,Je(i.name),1),Pe(i.$slots,"actions")]),X("div",xu,[Pe(i.$slots,"default")])])):Me("",!0)]),_:3})],2)}}}),ku=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),Cu=["min","max","step"],Su={class:"flex-shrink-0"},cs=be(Te({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ae({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,i)=>(A(),q("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(X("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,Cu),[[Sc,o.value]]),X("p",Su,[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
|
-
`]]]),Iu=Object.freeze(Object.defineProperty({__proto__:null,default:cs},Symbol.toStringTag,{value:"Module"})),$u={class:"flex items-center mb-8 last:mb-0"},Tu={class:"flex-grow overflow-hidden"},us=Te({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),q("div",$u,[X("div",{class:Oe(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},Je(t.label),3),X("div",Tu,[Pe(t.$slots,"default")])]))}}),Pu=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),Eu=["onClick","onKeyup"],fs=Te({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=Y(null),r=Y({width:"",left:""});et(()=>{let s=!1;pe(()=>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)=>(A(),q("div",{ref_key:"root",ref:o,class:"relative h-8 rounded-[2.5rem] inline-flex bg-black bg-opacity-90 p-1 text-sm overflow-auto max-w-full scrollbar-none leading-none",style:{}},[X("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Be(r.value)},null,4),(A(!0),q(Ce,null,fn(n.items,(a,c)=>mt((A(),q("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:[es(()=>i(c),["enter"]),es(()=>i(c),["space"])]},[It(Je(a),1)],42,Eu)),[[G(nn),30]])),128))],512))}}),Ou=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),Mu={},Lu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zu=[X("path",{fill:"currentColor",d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5c0-2.21-1.79-4-4-4z"},null,-1)];function ju(e,t){return A(),q("svg",Lu,zu)}const ds=be(Mu,[["render",ju]]),Au=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),Bu={},Du={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},Ru=[X("path",{fill:"currentColor",d:"m32.57 15.72l-3.35-1a11.65 11.65 0 0 0-.95-2.33l1.64-3.07a.61.61 0 0 0-.11-.72l-2.39-2.4a.61.61 0 0 0-.72-.11l-3.05 1.63a11.62 11.62 0 0 0-2.36-1l-1-3.31a.61.61 0 0 0-.59-.41h-3.38a.61.61 0 0 0-.58.43l-1 3.3a11.63 11.63 0 0 0-2.38 1l-3-1.62a.61.61 0 0 0-.72.11L6.2 8.59a.61.61 0 0 0-.11.72l1.62 3a11.63 11.63 0 0 0-1 2.37l-3.31 1a.61.61 0 0 0-.43.58v3.38a.61.61 0 0 0 .43.58l3.33 1a11.62 11.62 0 0 0 1 2.33l-1.64 3.14a.61.61 0 0 0 .11.72l2.39 2.39a.61.61 0 0 0 .72.11l3.09-1.65a11.65 11.65 0 0 0 2.3.94l1 3.37a.61.61 0 0 0 .58.43h3.38a.61.61 0 0 0 .58-.43l1-3.38a11.63 11.63 0 0 0 2.28-.94l3.11 1.66a.61.61 0 0 0 .72-.11l2.39-2.39a.61.61 0 0 0 .11-.72l-1.66-3.1a11.63 11.63 0 0 0 .95-2.29l3.37-1a.61.61 0 0 0 .43-.58v-3.41a.61.61 0 0 0-.37-.59ZM18 23.5a5.5 5.5 0 1 1 5.5-5.5a5.5 5.5 0 0 1-5.5 5.5Z",class:"clr-i-solid clr-i-solid-path-1"},null,-1),X("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Nu(e,t){return A(),q("svg",Du,Ru)}const ps=be(Bu,[["render",Nu]]),Fu=Object.freeze(Object.defineProperty({__proto__:null,default:ps},Symbol.toStringTag,{value:"Module"}));function Vu(e){if(e)try{return JSON.parse(e)}catch{return}}function Hu(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||{}),_t=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(_t||{});const Wu=.25,Uu=5,Ku=.25,bn=.25,yn=5,Yu=.05,Xu=0,qu=4;function Zu(e){var W,N,L,d,E;const{titleName:t,isWebtoon:n}=e,o=ae(()=>t.value?Hu(t.value):location.hostname),r=Y(Ju(`tkr:${o.value}`)),i=I=>{r.value=I;const $=`tkr:${o.value}`;!I||!Object.keys(I).length?localStorage.removeItem($):localStorage.setItem($,JSON.stringify(I))},s=I=>{if(!r.value){i(I);return}const $={...r.value};Object.entries(I).forEach(([m,V])=>{V===void 0?delete $[m]:$[m]=V}),i($)},l=Y(((W=r.value)==null?void 0:W.style)??_t.longStrip),a=Y(((N=r.value)==null?void 0:N.direction)??at.vertical),c=Y((L=r.value)==null?void 0:L.gap),u=Y(((d=r.value)==null?void 0:d.speed)??1),h=Y(((E=r.value)==null?void 0:E.zoom)??1),g=ae({get(){return n.value?_t.longStrip:l.value??_t.longStrip},set:I=>{l.value=I,s({style:I===_t.longStrip?void 0:I}),I!==_t.longStrip&&a.value===at.vertical&&(y.value=at.rtl)}}),y=ae({get:()=>n.value?at.vertical:a.value,set:I=>{a.value=I,s({direction:I===at.vertical?void 0:I})}}),M=ae({get:()=>c.value??(n.value?0:1),set(I){c.value=I,s({gap:I})}}),x=ae({get:()=>u.value,set(I){u.value=I,s({speed:I===1?void 0:I})}}),B=ae({get:()=>h.value,set(I){h.value=I,s({zoom:I===1?void 0:I})}});return{direction:y,style:g,gap:M,speed:x,zoom:B,isLongStrip:ae(()=>g.value===_t.longStrip),isDouble:ae(()=>g.value===_t.double),isRTL:ae(()=>y.value===at.rtl),isVertical:ae(()=>y.value===at.vertical)}}function Ju(e){const t=localStorage.getItem(e),n=Vu(t),o={};return n?(n.style!==void 0&&Object.values(_t).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>=Xu&&n.gap<=qu&&(o.gap=n.gap),n.speed!==void 0&&n.speed>=bn&&n.speed<=yn&&(o.speed=n.speed),n.zoom!==void 0&&n.zoom>=bn&&n.zoom<=yn&&(o.zoom=n.zoom),Object.keys(o).length?o:void 0):o}const hs=Te({__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=ae(()=>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=ps,u=oo,h=ds,g=fs,y=us,M=cs,x=as;return A(),q(Ce,null,[Z(u,{title:"Reader settings (S)",disabled:l.disabled,onClick:a[0]||(a[0]=()=>o.value=!0)},{default:le(()=>[Z(c)]),_:1},8,["disabled"]),Z(x,{modelValue:o.value,"onUpdate:modelValue":a[5]||(a[5]=B=>o.value=B),name:r.value},{actions:le(()=>[Z(u,{transparent:"",onClick:s},{default:le(()=>[Z(h)]),_:1})]),default:le(()=>[Z(y,{label:"Style"},{default:le(()=>[Z(g,{"model-value":l.readerStyle,items:l.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":a[1]||(a[1]=B=>t("update:reader-style",B))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Direction"},{default:le(()=>[Z(g,{"model-value":l.direction,items:l.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":a[2]||(a[2]=B=>t("update:direction",B))},null,8,["model-value","items"])]),_:1}),Z(y,{label:"Gap"},{default:le(()=>[Z(g,{"model-value":l.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":a[3]||(a[3]=B=>t("update:gap",B))},null,8,["model-value"])]),_:1}),Z(y,{label:"Speed"},{default:le(()=>[Z(M,{"model-value":l.speed,min:G(Wu),max:G(Uu),step:G(Ku),suffix:"x","onUpdate:modelValue":a[4]||(a[4]=B=>t("update:speed",B))},{suffix:le(()=>[It(Je(l.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),Z(y,{label:"Zoom"},{default:le(()=>[Z(M,{"model-value":Math.ceil(l.zoom*100),min:G(bn)*100,max:G(yn)*100,step:G(Yu)*100,"onUpdate:modelValue":i},{suffix:le(()=>[It(Je(Math.ceil(l.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue","name"])],64)}}}),Qu=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"})),Gu={},ef={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},tf=[X("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function nf(e,t){return A(),q("svg",ef,tf)}const gs=be(Gu,[["render",nf]]),of=Object.freeze(Object.defineProperty({__proto__:null,default:gs},Symbol.toStringTag,{value:"Module"})),rf={},sf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},lf=[X("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function af(e,t){return A(),q("svg",sf,lf)}const ms=be(rf,[["render",af]]),cf=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),uf={},ff={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},df=[X("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),X("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),X("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 pf(e,t){return A(),q("svg",ff,df)}const vs=be(uf,[["render",pf]]),hf=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"})),gf={},mf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vf=[X("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),X("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),X("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 _f(e,t){return A(),q("svg",mf,vf)}const _s=be(gf,[["render",_f]]),bf=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"})),yf={},wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},xf=[X("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function kf(e,t){return A(),q("svg",wf,xf)}const bs=be(yf,[["render",kf]]),Cf=Object.freeze(Object.defineProperty({__proto__:null,default:bs},Symbol.toStringTag,{value:"Module"})),Sf=["aria-hidden"],If=["onClick"],$f=["onClick"],Tf={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"},Pf={class:"whitespace-nowrap"},ir=Te({__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),l=Y(!1),a=Y(!1);ro({onKeyDown:y});const c=rr();function u(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(h(),gt(()=>setTimeout(()=>{var d,E;(E=(d=i.value)==null?void 0:d.children[n.modelValue])==null||E.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),x(o.value)):setTimeout(B,250)}function h(){const d=o.value;if(d){const E=d.getBoundingClientRect(),I=E.x+E.width/2;s.value=E.y>window.innerHeight/2,l.value=I<window.innerWidth/3,a.value=I>window.innerWidth/3*2}}function g(d){d!=n.modelValue&&t("update:modelValue",d),u()}function y(d){r.value&&d.key==="Escape"&&(u(),d.preventDefault())}let M=[];function x(d){const E=window.getComputedStyle(d).zIndex,I=d.style.zIndex;(!E||!(+E>0))&&((!d.parentElement||d.parentElement.childElementCount>1)&&(d.style.zIndex="1",M.push({el:d,zIndex:I})),d.parentElement&&x(d.parentElement))}function B(){M.forEach(({el:d,zIndex:E})=>{d.style.zIndex=E??""}),M=[]}let W=!1;function N(){W||(W=!0,c(!0,{desktopOnly:!0}))}function L(){W&&(W=!1,c(!1,{desktopOnly:!0}))}return(d,E)=>{const I=bs;return A(),q("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),q("div",{key:0,class:"fixed-screen bg-transparent",onClick:u})):Me("",!0),d.items.length?(A(),we(tn,{key:1,name:"slide-fade","enter-from-class":"scale-y-90 opacity-0 pointer-events-none","leave-to-class":"scale-y-90 opacity-0 pointer-events-none"},{default:le(()=>[r.value?(A(),q("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:E[0]||(E[0]=nt(()=>{},["stop"]))},[(A(!0),q(Ce,null,fn(d.items,($,m)=>mt((A(),q("li",{key:m,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":m===d.modelValue}]),onClick:()=>g(m)},[X("div",{class:Oe(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[Pe(d.$slots,"item",{item:$},()=>[It(Je($),1)])],2)],10,If)),[[G(nn),30]])),128))],42,Sf)):Me("",!0)]),_:3})):Me("",!0),mt((A(),q("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":d.disabled}]},d.title?{title:d.title}:{},{onClick:nt(u,["stop"]),onMouseenter:N,onMouseleave:L}),[X("div",Tf,[X("span",Pf,Je(d.label),1),d.items.length?(A(),q("span",{key:0,class:Oe(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":s.value}]),"aria-hidden":"true"},[Z(I)],2)):Me("",!0)])],16,$f)),[[G(nn),30]])],512)}}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),ys=Te({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ae(()=>n.pages.map(a=>a.map(({index:c})=>`${c+1}`).join("-"))),r=ae(()=>{const a=n.modelValue,c=n.pages.findIndex(u=>u.some(({index:h})=>h===a));return c===-1?n.pages.length-1:c}),i=ae(()=>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=ir;return A(),we(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"])}}}),Of=Object.freeze(Object.defineProperty({__proto__:null,default:ys},Symbol.toStringTag,{value:"Module"})),Mf={},Lf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},zf=[X("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function jf(e,t){return A(),q("svg",Lf,zf)}const ws=be(Mf,[["render",jf]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:ws},Symbol.toStringTag,{value:"Module"})),Bf={},Df={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Rf=[X("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Nf(e,t){return A(),q("svg",Df,Rf)}const xs=be(Bf,[["render",Nf]]),Ff=Object.freeze(Object.defineProperty({__proto__:null,default:xs},Symbol.toStringTag,{value:"Module"})),Vf={},Hf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Wf=[X("path",{fill:"currentColor",d:"M16.5 16V8l-4 4l4 4ZM5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.588 1.413T19 21H5Zm3-2V5H5v14h3Zm2 0h9V5h-9v14Zm-2 0H5h3Z"},null,-1)];function Uf(e,t){return A(),q("svg",Hf,Wf)}const ks=be(Vf,[["render",Uf]]),Kf=Object.freeze(Object.defineProperty({__proto__:null,default:ks},Symbol.toStringTag,{value:"Module"})),Yf={},Xf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},qf=[X("path",{fill:"currentColor",d:"m10.875 19.3l-6.6-6.6q-.15-.15-.213-.325T4 12q0-.2.063-.375t.212-.325l6.6-6.6q.275-.275.688-.287t.712.287q.3.275.313.688T12.3 6.1L7.4 11h11.175q.425 0 .713.288t.287.712q0 .425-.287.713t-.713.287H7.4l4.9 4.9q.275.275.288.7t-.288.7q-.275.3-.7.3t-.725-.3Z"},null,-1)];function Zf(e,t){return A(),q("svg",Xf,qf)}const Cs=be(Yf,[["render",Zf]]),Jf=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"}));var Ss;const sr=typeof window<"u",Qf=e=>typeof e=="function",Gf=e=>typeof e=="string",Et=()=>{};sr&&((Ss=window==null?void 0:window.navigator)!=null&&Ss.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function wn(e){return typeof e=="function"?e():G(e)}function lr(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}const Is=e=>e();function ed(e,t={}){let n,o,r=Et;const i=l=>{clearTimeout(l),r(),r=Et};return l=>{const a=wn(e),c=wn(t.maxWait);return n&&i(n),a<=0||c!==void 0&&c<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((u,h)=>{r=t.rejectOnCancel?h:u,c&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,u(l())},c)),n=setTimeout(()=>{o&&i(o),o=null,u(l())},a)})}}function td(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 h=>{const g=wn(e),y=Date.now()-r,M=()=>a=h();if(c(),g<=0)return r=Date.now(),M();if(y>g&&(n||!s))r=Date.now(),M();else if(t)return new Promise((x,B)=>{l=o?B:x,i=setTimeout(()=>{r=Date.now(),s=!0,x(M()),c()},g-y)});return!n&&!i&&(i=setTimeout(()=>s=!0,g)),s=!1,a}}function nd(e=Is){const t=Y(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:Po(t),pause:n,resume:o,eventFilter:r}}function od(e){return e}function ar(e){return Cr()?(vl(e),!0):!1}function Ke(e,t=200,n={}){return lr(ed(t,n),e)}function $s(e,t=200,n=!1,o=!0,r=!1){return lr(td(t,n,o,r),e)}function Ts(e,t=!0){Li()?et(e):t?e():gt(e)}var Ps=Object.getOwnPropertySymbols,rd=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,sd=(e,t)=>{var n={};for(var o in e)rd.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&&id.call(e,o)&&(n[o]=e[o]);return n};function ld(e,t,n={}){const o=n,{eventFilter:r=Is}=o,i=sd(o,["eventFilter"]);return pe(e,lr(r,t),i)}var ad=Object.defineProperty,cd=Object.defineProperties,ud=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Ms=(e,t,n)=>t in e?ad(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fd=(e,t)=>{for(var n in t||(t={}))Es.call(t,n)&&Ms(e,n,t[n]);if(io)for(var n of io(t))Os.call(t,n)&&Ms(e,n,t[n]);return e},dd=(e,t)=>cd(e,ud(t)),pd=(e,t)=>{var n={};for(var o in e)Es.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&io)for(var o of io(e))t.indexOf(o)<0&&Os.call(e,o)&&(n[o]=e[o]);return n};function hd(e,t,n={}){const o=n,{eventFilter:r}=o,i=pd(o,["eventFilter"]),{eventFilter:s,pause:l,resume:a,isActive:c}=nd(r);return{stop:ld(e,t,dd(fd({},i),{eventFilter:s})),pause:l,resume:a,isActive:c}}function Wt(e){var t;const n=wn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Ot=sr?window:void 0,gd=sr?window.document:void 0;function Mt(...e){let t,n,o,r;if(Gf(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=Ot):[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,h,g)=>(u.addEventListener(h,g,r),()=>u.removeEventListener(h,g,r)),a=pe(()=>Wt(t),u=>{s(),u&&i.push(...n.flatMap(h=>o.map(g=>l(u,h,g))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ar(c),c}function Ls(e,t=!1){const n=Y(),o=()=>n.value=!!e();return o(),Ts(o,t),n}const cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ur="__vueuse_ssr_handlers__";cr[ur]=cr[ur]||{};const md=cr[ur];function vd(e,t){return md[e]||t}function _d(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var bd=Object.defineProperty,zs=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty,wd=Object.prototype.propertyIsEnumerable,js=(e,t,n)=>t in e?bd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,As=(e,t)=>{for(var n in t||(t={}))yd.call(t,n)&&js(e,n,t[n]);if(zs)for(var n of zs(t))wd.call(t,n)&&js(e,n,t[n]);return e};const xd={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function kd(e,t,n,o={}){var r;const{flush:i="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=Ot,eventFilter:g,onError:y=$=>{console.error($)}}=o,M=(u?Ul:Y)(t);if(!n)try{n=vd("getDefaultStorage",()=>{var $;return($=Ot)==null?void 0:$.localStorage})()}catch($){y($)}if(!n)return M;const x=wn(t),B=_d(x),W=(r=o.serializer)!=null?r:xd[B],{pause:N,resume:L}=hd(M,()=>d(M.value),{flush:i,deep:s,eventFilter:g});return h&&l&&Mt(h,"storage",I),I(),M;function d($){try{if($==null)n.removeItem(e);else{const m=W.write($),V=n.getItem(e);V!==m&&(n.setItem(e,m),h&&(h==null||h.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:V,newValue:m,storageArea:n}))))}}catch(m){y(m)}}function E($){const m=$?$.newValue:n.getItem(e);if(m==null)return a&&x!==null&&n.setItem(e,W.write(x)),x;if(!$&&c){const V=W.read(m);return Qf(c)?c(V,x):B==="object"&&!Array.isArray(V)?As(As({},x),V):V}else return typeof m!="string"?m:W.read(m)}function I($){if(!($&&$.storageArea!==n)){if($&&$.key==null){M.value=x;return}if(!($&&$.key!==e)){N();try{M.value=E($)}catch(m){y(m)}finally{$?gt(L):L()}}}}}function Bs({document:e=gd}={}){if(!e)return Y("visible");const t=Y(e.visibilityState);return Mt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ds=Object.getOwnPropertySymbols,Cd=Object.prototype.hasOwnProperty,Sd=Object.prototype.propertyIsEnumerable,Id=(e,t)=>{var n={};for(var o in e)Cd.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ds)for(var o of Ds(e))t.indexOf(o)<0&&Sd.call(e,o)&&(n[o]=e[o]);return n};function $d(e,t,n={}){const o=n,{window:r=Ot}=o,i=Id(o,["window"]);let s;const l=Ls(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},c=pe(()=>Wt(e),h=>{a(),l.value&&r&&h&&(s=new ResizeObserver(t),s.observe(h,i))},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ar(u),{isSupported:l,stop:u}}function fr(e,t={width:0,height:0},n={}){const{window:o=Ot,box:r="content-box"}=n,i=ae(()=>{var a,c;return(c=(a=Wt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),s=Y(t.width),l=Y(t.height);return $d(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 h=o.getComputedStyle(u);s.value=parseFloat(h.width),l.value=parseFloat(h.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((h,{inlineSize:g})=>h+g,0),l.value=u.reduce((h,{blockSize:g})=>h+g,0)}else s.value=a.contentRect.width,l.value=a.contentRect.height},n),pe(()=>Wt(e),a=>{s.value=a?t.width:0,l.value=a?t.height:0}),{width:s,height:l}}function dr(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=Ot}=n,l=Ls(()=>s&&"IntersectionObserver"in s);let a=Et;const c=l.value?pe(()=>({el:Wt(e),root:Wt(o)}),({el:h,root:g})=>{if(a(),!h)return;const y=new IntersectionObserver(t,{root:g,rootMargin:r,threshold:i});y.observe(h),a=()=>{y.disconnect(),a=Et}},{immediate:!0,flush:"post"}):Et,u=()=>{a(),c()};return ar(u),{isSupported:l,stop:u}}var Rs;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Rs||(Rs={}));function Td(e,t,n={}){const{window:o=Ot}=n;return kd(e,t,o==null?void 0:o.sessionStorage,n)}var Pd=Object.defineProperty,Ns=Object.getOwnPropertySymbols,Ed=Object.prototype.hasOwnProperty,Od=Object.prototype.propertyIsEnumerable,Fs=(e,t,n)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Md=(e,t)=>{for(var n in t||(t={}))Ed.call(t,n)&&Fs(e,n,t[n]);if(Ns)for(var n of Ns(t))Od.call(t,n)&&Fs(e,n,t[n]);return e};Md({linear:od},{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 Ld(e={}){const{window:t=Ot,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=Y(n),l=Y(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(),Ts(a),Mt("resize",a,{passive:!0}),r&&Mt("orientationchange",a,{passive:!0}),{width:s,height:l}}const Vs=be(Te({__name:"ReaderTour",emits:["hide"],setup(e,{emit:t}){const n=Y(null),o=Y(0),r=Y([]),i=ae(()=>r.value[o.value]),s=$s(l,500);et(()=>{const u=fr(n),h=Ke(()=>a({width:u.width.value,height:u.height.value}),50);h(),pe(u.width,h),pe(u.height,h)});function l(){o.value>=r.value.length-1?t("hide"):o.value++}function a(u){const h=c();r.value=h.map(({rect:g,text:y})=>{const M=g.top<u.height-g.bottom,x=g.left<u.width-g.right;return{text:y,style:{left:`${g.left}px`,top:`${g.top}px`,width:`${g.width}px`,height:`${g.height}px`},textStyle:{left:x?`${g.left-12}px`:void 0,right:x?void 0:`${u.width-g.left}px`,top:M?`${g.bottom+12}px`:`${g.top+20}px`,textAlign:M?void 0:"right",transform:M?void 0:"translateY(-50%)"}}}),o.value>=r.value.length&&(o.value=r.value.length-1)}function c(){var g;const u=(g=n.value)==null?void 0:g.parentElement;if(!u)return[];const h=[];return u.querySelectorAll("[data-tour]").forEach(y=>{var B;const M=(B=y.getAttribute("data-tour"))==null?void 0:B.trim();if(!(M!=null&&M.length))return;const x=y.getBoundingClientRect();h.push({rect:x,text:M})}),h}return(u,h)=>{var g,y;return A(),q(Ce,null,[X("div",{class:Oe(["fixed-screen bg-black bg-opacity-50 duration-500",{"opacity-0":!i.value,"opacity-100":!!i.value}])},null,2),X("div",{ref_key:"root",ref:n,class:"tour",onClick:h[0]||(h[0]=nt((...M)=>G(s)&&G(s)(...M),["stop"]))},[i.value?(A(),q("div",{key:o.value,class:"tour__target",style:Be(i.value.style)},null,4)):Me("",!0),(A(),q("div",{key:o.value,class:"tour__text",style:Be((g=i.value)==null?void 0:g.textStyle)},Je(((y=i.value)==null?void 0:y.text)??""),5))],512)],64)}}}),[["styles",[`.tour{height:100vh;left:0;overflow:hidden;position:fixed;top:0;width:100vw;z-index:20}.tour__target{--tw-border-opacity:1;animation:tour-target-anim .5s forwards;border-color:rgb(120 113 108/var(--tw-border-opacity));border-radius:9999px;border-width:2px;box-shadow:0 0 0 99999px #000000e6}.tour__target,.tour__text{position:absolute}.tour__text{animation:tour-text-anim 1s forwards,tour-text-bounce .75s ease-in-out infinite alternate;max-width:320px;padding-left:12px;padding-right:12px;transition-duration:1s}@keyframes tour-target-anim{0%{--tw-border-opacity:0;opacity:0;transform:scale(3)}to{--tw-border-opacity:1;opacity:.9;transform:scale(1)}}@keyframes tour-text-anim{0%{opacity:0}to{opacity:1}}@keyframes tour-text-bounce{0%{margin-top:0}to{margin-top:10px}}
|
|
4
|
-
`]]]),
|
|
5
|
-
`]]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Ws},Symbol.toStringTag,{value:"Module"})),Dd={},Rd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Nd=[X("path",{fill:"currentColor",d:"M11.3 19.3q-.275-.275-.288-.7t.263-.7l4.9-4.9H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.175l-4.9-4.9q-.275-.275-.263-.7t.288-.7q.275-.275.7-.275t.7.275l6.6 6.6q.15.125.213.313t.062.387q0 .2-.062.375t-.213.325l-6.6 6.6q-.275.275-.7.275t-.7-.275Z"},null,-1)];function Fd(e,t){return A(),q("svg",Rd,Nd)}const Us=be(Dd,[["render",Fd]]),Vd=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),Ks=Te({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=sessionStorage.getItem("tk:dir"),o=Y(typeof n!="string"||+n!==t.direction),r=Ke(()=>o.value=!1,1250);pe(()=>t.direction,()=>{i(),o.value=!0,r()}),et(()=>{i(),r();let s;const l=Bs();pe(l,a=>{a!=="visible"?s=Date.now():Date.now()-s>3e4&&(o.value=!0,r())})});function i(){sessionStorage.setItem("tk:dir",t.direction+"")}return(s,l)=>{const a=Us;return A(),we(tn,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[o.value?(A(),q("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(at).vertical,"rotate-180":s.direction===G(at).rtl}])},[Z(a)],2)):Me("",!0)]),_:1})}}}),Hd=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),so=[];function Wd(e){so.push(e),st(()=>{const t=so.indexOf(e);t!==-1&&so.splice(t,1)})}function Ud(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,i=t*o;so.forEach(s=>s(r,i))}const Kd=["onClick"],Ys=Te({__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(yn,Math.max(bn,n.modelValue))),i=Y(!1),s=Y(!1),l=Y(!1),a=Y(!1);pe(()=>n.modelValue,C=>D(C)),et(()=>{n.touchDevice?(Mt(window,"touchstart",N),Wd(ie)):(Mt(o,"mousedown",M),pe(()=>n.horizontal,C=>{C?window.addEventListener("wheel",I,{passive:!1}):window.removeEventListener("wheel",I)},{immediate:!0}))}),st(()=>{window.removeEventListener("wheel",I)});let c;ro({onKeyDown:C=>{var U;if(n.busy)return;(U=o.value)==null||U.focus();const k=C.key==="Meta",P=C.key==="Control";if(k||P)i.value=!0,window.addEventListener("wheel",h,{passive:!1}),c=()=>{i.value=!1,window.removeEventListener("wheel",h),window.removeEventListener("blur",c),c=void 0},window.addEventListener("blur",c);else if(C.ctrlKey||C.metaKey)switch(C.key){case"0":D(1);break;case"-":D(r.value-.2),C.preventDefault();break;case"=":case"+":D(r.value+.2),C.preventDefault();break}},onKeyUp:()=>{i.value==!0&&(c==null||c())}});function u(C){l.value!==C&&(l.value=C,C?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function h(C){C.stopPropagation(),C.preventDefault();const k=Math.ceil((r.value+C.deltaY*-.01)*100)/100;D(k,{x:C.clientX,y:C.clientY})}let g={x:0,y:0},y={x:0,y:0};function M(C){C.button===0&&(g={x:C.clientX,y:C.clientY},y={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",x),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",x),setTimeout(()=>u(!1))},{once:!0}),C.preventDefault(),C.stopPropagation())}function x(C){u(!0);const k=C.clientX-g.x,P=C.clientY-g.y,U=o.value;U.scrollLeft=y.x-k,U.scrollTop=y.y-P}let B=!1,W={distance:0,zoom:r.value,x:0,y:0};function N(C){n.busy||(B=C.touches.length===2,B&&(u(!0),C.stopPropagation(),C.preventDefault(),W={distance:$(C),zoom:r.value,x:(C.touches[0].clientX+C.touches[1].clientX)/2,y:(C.touches[0].clientY+C.touches[1].clientY)/2}),(B||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",d),window.addEventListener("touchend",L,{once:!0})))}function L(){if(window.removeEventListener("touchmove",d),B){u(!1),B=!1;return}if(!l.value)return;const C=Ke(()=>{u(!1),o.value.removeEventListener("scroll",P)},100),k=setTimeout(C,100);o.value.addEventListener("scroll",P);function P(){clearTimeout(k),C()}}function d(C){if(u(!0),B){C.stopPropagation(),C.preventDefault();const P=$(C)/W.distance;D(Math.ceil(P*W.zoom*100)/100,W)}}const E=Ke(()=>s.value=!1,100);function I(C){n.busy||(s.value||(s.value=!0),E(),C.deltaY&&(!i.value&&o.value&&(o.value.scrollLeft+=C.deltaY*(n.rtl?-1:1)),C.preventDefault()))}function $(C){return Math.hypot(C.touches[0].clientX-C.touches[1].clientX,C.touches[0].clientY-C.touches[1].clientY)}let m=0,V;function ee(C){if(!l.value){if(!n.touchDevice){t("click",C);return}m++,V&&clearTimeout(V),m===2&&ie(C.clientX,C.clientY),V=setTimeout(()=>{!l.value&&m===1&&t("click",C),V=void 0,m=0},300)}}function ie(C,k){if(!m)return;m=0;const P=r.value===1?2:1;D(P,{x:C,y:k})}let b;const F=Ke(()=>{a.value=!1,b=void 0},150);function oe(){if(!a.value){const C=o.value;if(!C)return;const k=C.querySelector(`[data-index="${n.pageIndex}"],[data-index2="${n.pageIndex}"]`)??void 0;k&&(b={el:k,rect:k.getBoundingClientRect()},a.value=!0)}if(b)return F(),b}async function D(C,k){const P=o.value,U=Math.min(yn,Math.max(bn,C));if(!P||r.value===U)return;const ne=oe();if(!ne)return;const ye=(k==null?void 0:k.x)??P.clientWidth/2,he=(k==null?void 0:k.y)??P.clientHeight/2;r.value=U,t("update:modelValue",U),await gt();const{el:ue,rect:te}=ne,Le=ue.offsetWidth/te.width,ve=ue.offsetHeight/te.height;P.scrollLeft=ue.offsetLeft-te.left*Le+ye*(Le-1),P.scrollTop=ue.offsetTop-te.top*ve+he*(ve-1)}return(C,k)=>(A(),q("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":!C.longStrip&&(l.value||s.value||a.value),"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Be({"font-size":`${r.value}px`}),onClick:nt(ee,["stop"])},[Pe(C.$slots,"default")],14,Kd))}}),Yd=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),Xs=Te({__name:"IntersectionWrapper",emits:["visible"],setup(e,{emit:t}){const n=Y(null),o=Y(!1);return et(async()=>{await gt();let r=!1;dr(n,i=>{o.value=i.some(s=>s.isIntersecting),o.value&&!r&&t("visible")})}),(r,i)=>(A(),q("div",{ref_key:"root",ref:n},[Pe(r.$slots,"default",{visible:o.value})],512))}}),Xd=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),qd={key:0,class:"page--loading"},Zd=["src"],Jd=["src"],Qd=["data-index"],qs=be(Te({__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=ae(()=>{var L;return(L=o.value)==null?void 0:L.$el}),i=Y(null),s=fr(r),l=ae(()=>{const{width:L,height:d}=s,E=n.isLongStrip?n.isVertical?L.value:d.value:Math.min(L.value,d.value);return Math.min(4,Math.max(1,Math.ceil(E/400-1)))*n.gap}),a=Y(n.pageIndex),c=Y(n.pageIndex+3);let u=n.pageIndex,h=n.pageIndex;const g=Ke(B,50);pe(()=>n.pageIndex,()=>{u>n.pageIndex&&(u=n.pageIndex)});const y=ae(()=>{const{width:{value:L},height:{value:d}}=s;return n.pages.map(E=>{var oe;const I=E.some(D=>{var C;return(C=D.img)==null?void 0:C.isLoading}),$=E.map(D=>D.index),m={isLoading:I,indexes:$};if(I||$[$.length-1]<a.value-1||$[0]>c.value+2)return m;const V=E.map(({img:D})=>D).filter(Boolean);if(!V.length||(m.srcs=V.map(({src:D})=>D),V.every(D=>D.hasError)))return m;const ie=(oe=V.find(D=>!D.hasError))==null?void 0:oe.size,b=V.reduce((D,C)=>{var k;return D+(((k=C.size)==null?void 0:k.width)??ie.width)},0),F=V.reduce((D,C)=>{var k;return D+(((k=C.size)==null?void 0:k.height)??ie.height)},0)/V.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&L/b<d/F?(m.width=Math.min(L,b),m.height=F*m.width/b):m.height=Math.min(d,F),m})}),M=ae(()=>{const L=n.isVertical?"width":"height";return y.value.map(d=>d[L]).filter(Boolean).sort((d,E)=>E-d)[0]});function x(L){const d=L.indexes[L.indexes.length-1];d!==void 0&&h<d&&(h=d),g()}function B(){a.value!==u&&(a.value=u),c.value!==h&&(c.value=h)}function W(){n.isLongStrip?B():g()}function N(L){if(!n.isLongStrip){const d=n.isVertical?s.height.value:s.width.value,I=(n.isVertical?L.clientY:n.isRTL?d-L.clientX:L.clientX)/d;if(I<=.2){t("prev");return}else if(I>=.8&&n.pageIndex<n.totalImgs){t("next");return}}t("click")}return(L,d)=>{const E=tr,I=Xs,$=Ys;return A(),we($,{ref_key:"root",ref:o,"model-value":L.zoom,"page-index":L.pageIndex,class:Oe(["reader-body",{"reader-body--long-strip":L.isLongStrip,"reader-body--pages":!L.isLongStrip,"reader-body--vertical":L.isVertical,"reader-body--rtl":L.isRTL,"reader-body--idle":L.idle}]),"play-controller":L.playController,horizontal:!L.isVertical,rtl:L.isRTL,"touch-device":L.touchDevice,busy:L.busy,"long-strip":L.isLongStrip,style:Be({"--gap":`${l.value}em`,"--space-top":(L.spaceTop||0)+"px","--screen-width-em":G(s).width.value+"em","--screen-height-em":G(s).height.value+"em",...L.isLongStrip?{"--max-size-em":M.value+"em"}:{}}),"onUpdate:modelValue":d[0]||(d[0]=m=>t("update:zoom",m)),onDragEnd:d[1]||(d[1]=()=>t("dragEnd")),onClick:N,onScroll:W},{default:le(()=>[(A(!0),q(Ce,null,fn(y.value,m=>(A(),we(I,to({key:L.direction+"_"+m.indexes[0],"data-index":m.indexes[0]},m.indexes.length>1?{"data-index2":m.indexes[1]}:{},{onVisible:()=>x(m)}),{default:le(({visible:V})=>{var ee;return[!((ee=m.srcs)!=null&&ee.length)||m.isLoading?(A(),q("div",qd,[mt(Z(E,null,null,512),[[ts,V]])])):m.srcs.length==1?(A(),q("img",{key:1,src:m.srcs[0],style:Be({height:m.height!==void 0?m.height+"em":""})},null,12,Zd)):(A(),q("div",{key:2,class:Oe(["page--double",{"flex-row-reverse":L.isRTL}]),style:Be({width:m.width!==void 0?m.width+"em":"",height:m.height!==void 0?m.height+"em":""})},[(A(!0),q(Ce,null,fn(m.srcs,ie=>(A(),q("div",{key:ie},[X("img",{src:ie},null,8,Jd)]))),128))],6))]}),_:2},1040,["data-index","onVisible"]))),128)),X("div",{ref_key:"autoNextEl",ref:i,class:"last","data-index":L.totalImgs},[Pe(L.$slots,"end")],8,Qd)]),_:3},8,["model-value","page-index","play-controller","horizontal","rtl","touch-device","busy","long-strip","class","style"])}}}),[["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:var(--screen-height-em)}.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:var(--screen-width-em)}.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
|
-
`]]]),
|
|
7
|
-
`]]]),op=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"}));async function xn(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 xn(e-1,t,n);r(i)},t)})}function lo(e=0){return new Promise(t=>setTimeout(t,e))}const rp=3;function ip(e){var oe,D,C;const t=((D=(oe=e.raw.value)==null?void 0:oe.imgs)==null?void 0:D.filter(Boolean))??[];let n=!!t.length;const o=Y(t),r=sn({}),i=[],s=new WeakMap,l=Y((C=e.raw.value)==null?void 0:C.isWebtoon),a=Date.now(),c=e.touchDevice&&!navigator.userAgent.toLowerCase().includes("android");let u=!0,h=!1,g=!1,y=0,M=0,x,B=[],W=e.isAutoShow!==!1?e.page.value:n?cp(t):void 0;const N=Ke(b,100);let L=!1;const d=Ke(m,50),E=()=>{L?d():(L=!0,m())};n?m():ee(),pe(()=>{var k;return(k=e.raw.value)==null?void 0:k.imgs},k=>{k&&k!==o.value&&(n=!0,$(k))}),st(()=>{u=!1,i.forEach(k=>URL.revokeObjectURL(k))}),Yn(()=>{if(!h)return;const k=B.length?void 0:document.querySelector(`img[src^="${t[Math.floor(e.page.value)]}"]`)??void 0;kn({contentEl:x,imgEl:k,imgEls:B,page:e.page.value})});function I(){var ye,he;if(h||l.value===void 0||W===void 0)return;const k=Math.max(0,Math.min(W,o.value.length)),P=o.value.length-1,U=Math.min(Math.floor(k),P);if(U>=1){const ue=o.value[U];if(!ue){e.isAutoShow&&kn({contentEl:x,imgEls:B,page:U});return}const te=o.value[U-1];if(te&&!((ye=r[te])!=null&&ye.size)||!((he=r[ue])!=null&&he.size))return}if(h)return;h=!0,e.onReady(k);let ne=!0;pe(()=>Math.floor(e.page.value),async(ue,te)=>{kn({imgEls:B,page:ue,smooth:c,skipIfVisible:ne}),ne=!1,te??(te=-1),ue!==te&&(y=Math.max(0,y-Math.abs(ue-te))),E()},{immediate:!0})}function $(k,P){(k.length!==o.value.length||k.some((U,ne)=>o.value[ne]!==U))&&(P&&(B=P,e.isAutoShow===!1&&W===void 0&&(W=Qs(B))),o.value=k,E())}function m(){const k=Math.max(0,Math.floor(e.page.value-1)),P=U=>{y>rp||V(U)};for(let U=k;U<o.value.length;U++)P(U);for(let U=k-1;U>=0;U--)P(U)}async function V(k){const P=o.value[k];if(!(!u||!P||r[P])){if(!r[P]){r[P]={src:P,isLoading:!0,hasError:!1},y++;const U=await ap(P);if(r[P]={src:P,size:U,isLoading:!1,hasError:!U},y=Math.max(0,y-1),U&&!l.value&&k>Math.min(1,o.value.length-2)){const ne=U.height/U.width>2.5;l.value!==ne&&(l.value=ne)}I()}d()}}function ee(){let k=!1;const P=new MutationObserver(()=>{x&&N(x)});Yn(async()=>{P.disconnect()}),ie(U=>{x!==U&&(x=U,P.disconnect(),P.observe(x,{childList:!0,subtree:!0}),k?N(x):(k=!0,b(x)))})}async function ie(k){var ue;const P=(ue=e.spec)==null?void 0:ue.content;if(!P){k(document.body);return}const U=await sp(e.spec);let ne=P?await xn(U?100:1,10,()=>document.querySelector(P)):void 0;if(!ne)return;k(ne);let ye=0;const he=async()=>{if(u&&!(ne!=null&&ne.isConnected)&&!n){if(ye=0,ne=await xn(50,20,()=>{const te=document.querySelector(P);return te!=null&&te.isConnected&&te!==ne?te:void 0}),!ne)return;k(ne)}!u||n||++ye>=10||setTimeout(he,200)};setTimeout(he,200)}async function b(k){var ue;if(!u||!k.isConnected||n)return;const P=Date.now();M=P;let U,ne;const ye=new Map,he=(ue=e.spec)==null?void 0:ue.imgDivs;if(he){if(ne=Array.from(k.querySelectorAll(he)),!g&&e.isAutoShow!==!1&&e.page.value&&(g=!0,kn({contentEl:k,imgEls:ne,page:Math.floor(e.page.value),skipIfVisible:!0}),await lo(1),!u||!k.isConnected||M!==P||n)||(U=await Promise.all(ne.map(async(te,Le)=>{const ve=Array.from(te.querySelectorAll("img,canvas"));for(const Ee of ve){const Se=await F({ts:P,el:Ee,index:Le,total:ne.length,elsPool:ye,onImgLoad:()=>N(k)});if(Se)return Se}})),!u||!k.isConnected||M!==P||n))return}else{const te=Array.from(k.querySelectorAll("img,canvas")),Le=await Promise.all(te.map((Ee,Se)=>F({ts:P,el:Ee,index:Se,total:te.length,elsPool:ye,onImgLoad:()=>N(k)})));if(!u||!k.isConnected||M!==P||n)return;ne=te.filter((Ee,Se)=>Le[Se]),U=Le.filter(Boolean);const ve={};U.forEach((Ee,Se)=>{Ee&&Se!==U.lastIndexOf(Ee)&&(ve[Se]=!0)}),Object.keys(ve).length&&(ne=ne.filter((Ee,Se)=>!ve[Se]),U=U.filter((Ee,Se)=>!ve[Se])),!B.length&&ne.length<te.length&&ne.length<=5&&setTimeout(()=>{kn({imgEls:te,page:te.length,smooth:c})},50)}!e.raw.value&&!U.some(Boolean)&&e.onError("no_img"),$(U,ne)}async function F({ts:k,el:P,index:U,total:ne,elsPool:ye,onImgLoad:he}){const ue=s.get(P);let te,Le;if(P.tagName.toLowerCase()==="canvas"){if(ue)return ue.src;te=await Js(P)}else{if(P._tkLoadId_!==a&&(P._tkLoadId_=a,P.addEventListener("load",he),st(()=>{P._tkLoadId_===a&&delete P._tkLoadId_,P.removeEventListener("load",he)})),Le=up(P,ye),!Le)return;if(Le===(ue==null?void 0:ue.originalSrc))return ue.src;if(te=await lp(P,Le),!u||M!==k)return;if(l.value===void 0&&U>Math.min(1,ne-2)){const Ee=+(P.getAttribute("width")??0),Se=+(P.getAttribute("height")??0);Ee&&Se&&(l.value=Se/Ee>2.5)}}return te&&(s.set(P,{src:te,originalSrc:Le}),te.startsWith("blob:")&&i.push(te)),te}return{asyncImgs:ae(()=>o.value.map(k=>k?r[k]:void 0)),isWebtoon:ae(()=>l.value??!1)}}async function sp(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await xn(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),st(()=>{delete r._tkDirty_,r.removeEventListener("click",i)})}return r.click(),await lo(),!0}function Js(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 lp(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 Js(o)}function ap(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 cp(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Qs(n)}function Qs(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 up(e,t){if(!Gs(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 Gs(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=Gs(e.parentElement,t);return t.set(e,i),i}function kn({contentEl:e,imgEls:t,page:n,smooth:o,skipIfVisible:r,imgEl:i}){var u;const s=n>=t.length,l=o?"smooth":"instant";if(s){(u=t[t.length-1])==null||u.scrollIntoView({block:"end",behavior:l});return}if(i??(i=t[Math.floor(n)]),!i)return;const a=i.getBoundingClientRect();if(r&&a.top<=0&&a.top+a.height>0)return;i.scrollIntoView({block:"start",behavior:l});const c=n%1;if(c){const h=c*a.height,g=pr(e??document.documentElement);setTimeout(()=>g==null?void 0:g.scrollBy({top:h}))}}function pr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?pr(document.documentElement)??e:e:pr(e.parentElement??void 0)}function fp(e,t){return ae(()=>t.value?el(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function el(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})),...el(e.slice(r.length),t+r.length)]}function dp(e){const t=typeof e=="number"?Math.max(0,e):0,n=sessionStorage.getItem("tk:page:path");return n!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),n&&sessionStorage.removeItem("tk:page")),Td("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function pp(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const hr=40;function hp({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:i,spaceTop:s,scrollEl:l,interferePlayer:a,onChangedPage:c,onInitialized:u}){let h=!1,g=!1,y;const M=Ke(I,300),x=$s(()=>{I(),M()},300),B=Ke(L,50);async function W(){d(e.value)}function N(){var b;g=!0,u(),(b=l.value)==null||b.addEventListener("scroll",x),setTimeout(()=>{const{width:F,height:oe}=Ld();pe(F,()=>{r.value&&B()}),pe(oe,()=>{r.value||B()}),pe(n,B),pe(t,B)},300)}function L(){if(!g||h)return;const b=e.value;$()!==b&&d(b)}function d(b,{smooth:F}={smooth:!1}){const oe=l.value;if(!oe)return;h=!0;const D=async()=>{await gt(),h=!1,g||N()},C=Math.floor(b),k=oe.querySelector(`[data-index="${C}"],[data-index2="${C}"]`);if(!k){D();return}a(async()=>{await E(oe,!o.value&&F,async()=>{await ie(oe,k,{smooth:F,page:b})}),await D()})}async function E(b,F,oe){F&&b.style.setProperty("scroll-snap-type","none"),await oe(),F&&b.style.removeProperty("scroll-snap-type")}function I(){if(h)return;const b=$();b!==void 0&&b!==e.value&&c(b)}function $(){const b=m();return b?(+b.getAttribute("data-index")||0)+(o.value?V(b):0):void 0}function m(){var F;if(y??(y=l.value.getRootNode()),!y)return;const b=(F=y.elementsFromPoint)==null?void 0:F.call(y,r.value||!o.value?window.innerWidth/2:i.value?window.innerWidth-hr:hr,r.value&&o.value?s.value||hr:window.innerHeight/2);if(b)for(let oe=0;oe<b.length;oe++){const D=b[oe];if(D.hasAttribute("data-index"))return D;if(D===l.value)break}}function V(b){const F=b.getBoundingClientRect();return r.value?Math.abs(F.top-s.value)/F.height:i.value?Math.max(0,F.right-l.value.clientWidth)/F.width:Math.abs(F.left)/F.width}let ee=!1;async function ie(b,F,oe){if(ee)return;const D=F.getBoundingClientRect();if(!o.value){if(r.value){if(D.top<=0&&D.bottom>=b.clientHeight)return}else if(D.left<=0&&D.right>=b.clientWidth)return}ee=!0;const C=r.value?b.scrollTop:b.scrollLeft,k=oe.page,P=o.value?k%1:0,U=await xn(30,10,async()=>{await lo();let te;if(!(F.offsetHeight<10))return o.value?r.value?te=F.offsetTop+P*F.offsetHeight-s.value:i.value?te=F.offsetLeft-b.clientWidth+F.offsetWidth-P*F.offsetWidth:te=F.offsetLeft+P*F.offsetWidth:r.value?te=F.offsetTop+(D.top>0?0:D.height-b.clientHeight):te=F.offsetLeft+(D.left>0?0:D.width-b.clientWidth),k>.5&&Math.abs(te)<100?void 0:te})??0,ne=r.value?Math.min(U,b.scrollHeight-b.clientHeight*2):i.value?Math.max(U,-(b.scrollWidth-b.clientWidth*2)):Math.min(U,b.scrollWidth-b.clientWidth*2);if(!oe.smooth){r.value?b.scrollTop=ne:b.scrollLeft=ne,ee=!1;return}const ye=ne-C,he=30;let ue=0;return new Promise(te=>{(function Le(){const ve=gp(ue,C,ye,he);r.value?b.scrollTop=ve:b.scrollLeft=ve,ue++,ue<=he?requestAnimationFrame(Le):(te(),ee=!1)})()})}return{init:W,goToPage:d}}function gp(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function mp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:i,speed:s}){const l=sessionStorage.getItem("tk:playing"),a=Y(typeof l=="string"?l==="true":e),c=ae({get:()=>a.value,set:m=>{a.value=m,sessionStorage.setItem("tk:playing",m?"true":"false")}}),u=Y(!1);let h,g;const y=Ke(I,100),M=Ke(()=>{u.value=!0},t?2e3:1e3),x=()=>setTimeout(()=>{u.value=!1,M()},30);x(),t||Mt(window,"mousemove",x);const B=Bs();et(()=>{pe(B,m=>{c.value&&(m==="visible"?I():g==null||g())}),pe(s,()=>W()),pe(i,m=>{m||L()})});async function W(m){c.value&&(g==null||g()),m&&(await gt(),await m()),c.value&&y()}function N(){c.value?L():d()}function L(){c.value&&(c.value=!1,g==null||g(),x())}function d(){!c.value&&i.value&&(c.value=!0,I(),x())}function E(){g==null||g()}function I(){const m=n.value;if(!c.value||!m)return;const V=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,ee=$();if(V<=ee){L();return}g=()=>{h=Date.now(),g=void 0};const ie=Date.now();h=ie;const b=.05*s.value,F=o.value?"scrollTop":"scrollLeft";let oe=Date.now(),D=0;const C=()=>{if(h!==ie)return;const k=Date.now(),P=k-oe;oe=k;const U=b*P+D;U>=1?(D=U%1,m[F]+=(U-D)*(r.value?-1:1)):D=U,setTimeout(C,1)};C()}function $(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:c,isIdle:u,toggle:N,play:d,pause:E,resume:I,stop:L,interfere:W,awake:x}}function vp(e){var y,M,x,B,W;let t=-1,n=(y=e.prev)==null?void 0:y.slug,o=(M=e.next)==null?void 0:M.slug;const{vol:r,inferVol:i,chap:s,title:l,slug:a,basePath:c}=e,u=r??i,h=l.chapters??[],g=(h==null?void 0:h.length)>1?h:[];if(g.length){if(t=g.findIndex(N=>N.slug===e.slug),t===-1&&(t=g.findIndex(N=>(N.vol??N.inferVol)===u&&N.chap===s)),t===-1&&(t=g.findIndex(N=>a.startsWith(`${N.slug}-`)&&a.length-N.slug.length>3)),t!==-1)n??(n=(x=g[t+1])==null?void 0:x.slug),o??(o=(B=g[t-1])==null?void 0:B.slug);else if(!n&&!o){const N=g.findIndex(L=>{const d=L.vol??L.inferVol;return u===void 0||d===void 0||u===d?L.chap<s:d<u});N!==-1?(n=g[N].slug,o=(W=g[N-1])==null?void 0:W.slug):o=g[g.length-1].slug}}return{activeIndex:t,activeLabel:tl({vol:r,chap:s}),chapters:g.map(N=>({label:tl(N),path:gr(c,N.slug)})),prevPath:gr(c,n),nextPath:gr(c,o)}}function gr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function tl({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const _p={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},bp=Te({...{inheritAttrs:!1},__name:"TrackkunReader",props:{immediate:{type:Boolean},raw:{},spec:{},page:{},spaceTop:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},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),l=Y(!1),a=cu({touchDevice:n.touchDevice}),c=dp(n.page),u=ae(()=>n.spaceTop??0),{asyncImgs:h,isWebtoon:g}=ip({raw:ae(()=>n.raw),spec:n.spec,page:c,touchDevice:n.touchDevice,isAutoShow:n.isAutoShow,spaceTop:u,async onReady(v){he(v),s.value=!0},onError:()=>{t("error"),T()}}),{direction:y,style:M,isRTL:x,isDouble:B,isVertical:W,isLongStrip:N,gap:L,speed:d,zoom:E}=Zu({titleName:ae(()=>{var v;return(v=n.raw)==null?void 0:v.title.name}),isWebtoon:g}),I=fp(h,B),$=ae(()=>c.value>=h.value.length),m=ae(()=>n.raw?vp(n.raw):void 0),V=ae(()=>{var v,w;return x.value?(v=m.value)==null?void 0:v.nextPath:(w=m.value)==null?void 0:w.prevPath}),ee=ae(()=>{var v,w;return x.value?(v=m.value)==null?void 0:v.prevPath:(w=m.value)==null?void 0:w.nextPath}),ie=Y(null),b=Y(null),F=Y(!1),oe=Y(!1),D=mp({autoPlay:!n.tourEnabled&&n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var v;return(v=ie.value)==null?void 0:v.$el}),speed:d,isRTL:x,isVertical:W,isLongStrip:N}),C=ae(()=>!n.touchDevice&&D.isIdle.value&&!a.value),k=ae({get(){return E.value},set(v){D.interfere(()=>{E.value=v})}}),P=hp({page:c,style:M,direction:y,isLongStrip:N,isVertical:W,isRTL:x,spaceTop:u,scrollEl:ae(()=>{var v;return(v=ie.value)==null?void 0:v.$el}),interferePlayer:v=>D.interfere(v),onChangedPage:he,onInitialized(){t("ready"),l.value=!0,n.touchDevice&&(i=ue())}}),U=ae(()=>Math.floor(c.value)),ne=()=>D.interfere(()=>lo(100));bu().addListener({onKeyDown:v=>{if(n.tourEnabled)return;const w=N.value&&W.value,K=N.value&&!W.value,J=!N.value&&W.value,re=!N.value&&!W.value;switch(v.key){case" ":v.preventDefault(),N.value?(O(!1),D.toggle()):p();break;case"ArrowUp":case"PageUp":w?ne():J&&U.value!==0&&(v.preventDefault(),f());break;case"ArrowDown":case"PageDown":w?ne():J&&!$.value&&(v.preventDefault(),p());break;case"ArrowLeft":K?ne():re?(v.preventDefault(),Sn()):W.value&&Ee();break;case"ArrowRight":K?ne():re?(v.preventDefault(),In()):W.value&&ve();break}},onKeyUp:v=>{switch(v.key){case"f":H();break;case"t":j();break;case"h":O();break}}}),Mt("fullscreenchange",()=>{F.value=!!document.fullscreenElement}),pe(D.isPlaying,v=>{v||S(!1),t("playingChanged",v)}),pe(D.isIdle,v=>{D.isPlaying.value&&S(v)}),pe(a,v=>{!v&&D.isIdle.value?D.awake():v&&n.fullScreen&&S()});function he(v){if(c.value===v)return;const w=h.value.length;if(v<0||v>=w+1)return;const K=c.value;c.value=v,t("pageChanged",Math.floor(v*100)/100),v>=w?(S(!1),D.stop()):v===0?S(!1):n.touchDevice&&!r&&(N.value?i!==void 0&&ue()-i>300&&S(!0):Math.abs(K-v)===1&&S(!0)),!o&&v>=w-2&&(o=!0,t("finished"))}function ue(){var w;const v=(w=ie.value)==null?void 0:w.$el;return v?W.value?v.scrollTop:x.value?-v.scrollLeft:v.scrollLeft:0}function te(){!n.touchDevice&&!N.value&&P.goToPage(U.value,{smooth:!0})}function Le(){if(D.isPlaying.value){!n.fullScreen||!n.touchDevice?D.stop():D.awake();return}S()}function ve(){var v;dt((v=m.value)==null?void 0:v.nextPath)}function Ee(){var v;dt((v=m.value)==null?void 0:v.prevPath)}function Se(v){var K,J,re;const w=(re=(J=(K=m.value)==null?void 0:K.chapters)==null?void 0:J[v])==null?void 0:re.path;w&&dt(w)}function dt(v){v&&(location.href=v.includes("://")?v:location.origin+v)}function Sn(){x.value?p():f()}function In(){x.value?f():p()}function f(){var K;const v=I.value,w=$.value?v[v.length-1][0].index:(K=v[_()-1])==null?void 0:K[0].index;w!==void 0?P.goToPage(w):Ee()}function p(){var v,w;if($.value)ve();else{const K=((w=(v=I.value[_()+1])==null?void 0:v[0])==null?void 0:w.index)??h.value.length;P.goToPage(K)}}function _(){const v=U.value,w=I.value.findIndex(K=>K.some(({index:J})=>J===v));return w===-1?I.value.length-1:w}function T(){pp(),D.stop(),t("dispose")}async function S(v){if(a.value&&!n.fullScreen)return;r=!0;const w=typeof v=="boolean"?v:!n.fullScreen;t("fullScreenChanged",w),w&&setTimeout(()=>{n.fullScreen&&a.value&&t("fullScreenChanged",!1)},100)}function j(){n.entryId?R():z()}function H(){var v,w;document.fullscreenElement?document.exitFullscreen():(w=(v=b.value)==null?void 0:v.$el)==null||w.requestFullscreen()}function z(){D.stop(),t("addEntry")}function R(){D.stop(),t("openEntry",n.entryId)}function O(v){oe.value!==v&&(oe.value=!oe.value,oe.value&&D.isPlaying&&D.stop())}return(v,w)=>{const K=Zs,J=qs,re=Ks,me=Ws,ge=Hs,xe=Vs,Xe=Cs,Ve=oo,ao=ks,Ut=ir,co=xs,Re=ws,ot=ys,uo=_s,Ep=vs,Op=ms,Mp=gs,Lp=hs,zp=or,jp=nr,Ap=ss,Bp=rs;return v.immediate||s.value?(A(),we(Bp,{key:0,ref_key:"root",ref:b,loading:!l.value,immediate:!!v.immediate,"full-screen":!!v.fullScreen,idle:C.value,"space-top":u.value,rtl:G(x),onClick:w[10]||(w[10]=nt(()=>{},["stop"]))},di({settings:le(()=>{var bt;return[Z(Lp,{"reader-style":G(M),"onUpdate:readerStyle":w[3]||(w[3]=yt=>$e(M)?M.value=yt:null),direction:G(y),"onUpdate:direction":w[4]||(w[4]=yt=>$e(y)?y.value=yt:null),gap:G(L),"onUpdate:gap":w[5]||(w[5]=yt=>$e(L)?L.value=yt:null),speed:G(d),"onUpdate:speed":w[6]||(w[6]=yt=>$e(d)?d.value=yt:null),zoom:k.value,"onUpdate:zoom":w[7]||(w[7]=yt=>k.value=yt),name:(bt=v.raw)==null?void 0:bt.title.name,webtoon:G(g),disabled:!s.value,onHelp:O},null,8,["reader-style","direction","gap","speed","zoom","name","webtoon","disabled"])]}),"reset-zoom":le(()=>[Z(tn,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:le(()=>[Z(Ap,{zoom:k.value,onClick:w[9]||(w[9]=nt(()=>k.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:le(()=>[X("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Be({width:`${G(c)/(G(h).length-1)*100}%`})},null,4)]),default:le(()=>[s.value?(A(),we(J,{key:0,ref_key:"body",ref:ie,zoom:k.value,"onUpdate:zoom":w[0]||(w[0]=bt=>k.value=bt),"page-index":U.value,pages:G(I),"total-imgs":G(h).length,direction:G(y),gap:G(L),"is-long-strip":G(N),isRTL:G(x),"is-vertical":G(W),"space-top":u.value,busy:G(a),idle:C.value,"play-controller":G(D),"touch-device":v.touchDevice,onVnodeMounted:G(P).init,onPrev:f,onNext:p,onClick:Le,onDragEnd:te,onWheelPassive:w[1]||(w[1]=()=>G(D).interfere())},di({_:2},[s.value&&G(h).length?{name:"end",fn:le(()=>{var bt;return[Z(K,{"has-next":!!((bt=m.value)!=null&&bt.nextPath),onNext:ve,onHide:T},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&&!$.value&&!v.tourEnabled?(A(),we(re,{key:1,direction:G(y)},null,8,["direction"])):Me("",!0),l.value&&!$.value?(A(),we(me,{key:2,playing:!!G(D).isPlaying.value},null,8,["playing"])):Me("",!0),oe.value?(A(),we(ge,{key:3,"touch-device":v.touchDevice,onHide:O},null,8,["touch-device"])):Me("",!0),v.tourEnabled?(A(),we(xe,{key:4,onHide:w[2]||(w[2]=()=>t("tourEnabledChanged",!1))})):Me("",!0)]),_:2},[v.raw?{name:"back",fn:le(()=>[Z(Ve,{href:v.raw.title.url,title:"Back to manga"},{default:le(()=>[Z(Xe)]),_:1},8,["href"])]),key:"0"}:void 0,v.touchDevice?void 0:{name:"exit",fn:le(()=>[Z(Ve,{title:"Hide reader","data-tour":"You have entered Trackkun reader mode, press here to return to the original page",onClick:T},{default:le(()=>[Z(ao)]),_:1})]),key:"1"},m.value?{name:"chapter-nav",fn:le(()=>[Z(Ut,{modelValue:m.value.activeIndex,label:m.value.activeLabel,title:"Select chapter",items:m.value.chapters,"onUpdate:modelValue":Se},{item:le(({item:bt})=>[It(Je(bt.label),1)]),_:1},8,["modelValue","label","items"]),V.value||ee.value?(A(),q("div",_p,[Z(Ve,{title:`${G(x)?"Next":"Prev"} chapter (←)`,href:V.value,disabled:!V.value,class:"!rounded-r-none"},{default:le(()=>[Z(co)]),_:1},8,["title","href","disabled"]),Z(Ve,{title:`${G(x)?"Prev":"Next"} chapter (→)`,href:ee.value,disabled:!ee.value,class:"!rounded-l-none"},{default:le(()=>[Z(Re)]),_:1},8,["title","href","disabled"])])):Me("",!0)]),key:"2"}:void 0,G(I).length?{name:"page-nav",fn:le(()=>[Z(ot,{"model-value":U.value,disabled:!l.value,pages:G(I),"total-imgs":G(h).length,"onUpdate:modelValue":G(P).goToPage},null,8,["model-value","disabled","pages","total-imgs","onUpdate:modelValue"])]),key:"3"}:void 0,v.raw?{name:"entry",fn:le(()=>[Z(Ve,{title:v.entryId?"View entry (T)":"Add to library (T)","data-tour":"Prress here to add to your collection",onClick:j},{default:le(()=>[v.entryId?(A(),we(uo,{key:0})):(A(),we(Ep,{key:1}))]),_:1},8,["title"])]),key:"4"}:void 0,v.touchDevice?void 0:{name:"full-screen",fn:le(()=>[Z(Ve,{title:`${F.value?"Exit":"Enter"} fullscreen (F)`,onClick:H},{default:le(()=>[F.value?(A(),we(Op,{key:0})):(A(),we(Mp,{key:1}))]),_:1},8,["title"])]),key:"5"},G(N)?{name:"play",fn:le(()=>[Z(Ve,{"data-tour":"Press here to play like a video",title:`${G(D).isPlaying.value?"Pause":"Play"} (Space)`,disabled:!l.value,onClick:w[8]||(w[8]=()=>G(D).toggle())},{default:le(()=>[G(D).isPlaying.value?(A(),we(zp,{key:0})):(A(),we(jp,{key:1}))]),_:1},8,["title","disabled"])]),key:"6"}:void 0]),1032,["loading","immediate","full-screen","idle","space-top","rtl"])):Me("",!0)}}}),nl=be(bp,[["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}.blur{--tw-blur:blur(8px)}.blur,.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
|
-
`]]]),
|
|
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)&>(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&>(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)&>(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&>(t,"delete",e,void 0),i}function Lr(){const e=me(this),t=e.size!==0,n=e.clear();return t&>(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&>(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&<&<.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&<&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&<.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&<&&(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});
|