gear-second 0.5.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(De,ne){typeof exports=="object"&&typeof module<"u"?module.exports=ne():typeof define=="function"&&define.amd?define(ne):(De=typeof globalThis<"u"?globalThis:De||self,De._gearSecond_=ne())})(this,function(){"use strict";var fp=Object.defineProperty;var dp=(De,ne,We)=>ne in De?fp(De,ne,{enumerable:!0,configurable:!0,writable:!0,value:We}):De[ne]=We;var Zi=(De,ne,We)=>(dp(De,typeof ne!="symbol"?ne+"":ne,We),We);function De(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 ne={},We=[],Je=()=>{},Yi=()=>!1,Xi=/^on[^a-z]/,xn=e=>Xi.test(e),to=e=>e.startsWith("onUpdate:"),be=Object.assign,no=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ji=Object.prototype.hasOwnProperty,se=(e,t)=>Ji.call(e,t),U=Array.isArray,Ht=e=>Cn(e)==="[object Map]",ur=e=>Cn(e)==="[object Set]",G=e=>typeof e=="function",_e=e=>typeof e=="string",oo=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",fr=e=>he(e)&&G(e.then)&&G(e.catch),dr=Object.prototype.toString,Cn=e=>dr.call(e),Qi=e=>Cn(e).slice(8,-1),pr=e=>Cn(e)==="[object Object]",ro=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kn=De(",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))},Gi=/-(\w)/g,Ne=Pn(e=>e.replace(Gi,(t,n)=>n?n.toUpperCase():"")),el=/\B([A-Z])/g,Ue=Pn(e=>e.replace(el,"-$1").toLowerCase()),Tn=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),so=Pn(e=>e?`on${Tn(e)}`:""),on=(e,t)=>!Object.is(e,t),On=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$n=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},io=e=>{const t=parseFloat(e);return isNaN(t)?e:t},lo=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let hr;const ao=()=>hr||(hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?rl(o):Ke(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(he(e))return e}}const tl=/;(?![^(]*\))/g,nl=/:([^]+)/,ol=/\/\*[^]*?\*\//g;function rl(e){const t={};return e.replace(ol,"").split(tl).forEach(n=>{if(n){const o=n.split(nl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ye(e){let t="";if(_e(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const o=ye(e[n]);o&&(t+=o+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const sl=De("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function gr(e){return!!e||e===""}const lt=e=>_e(e)?e:e==null?"":U(e)||he(e)&&(e.toString===dr||!G(e.toString))?JSON.stringify(e,mr,2):String(e),mr=(e,t)=>t&&t.__v_isRef?mr(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:ur(t)?{[`Set(${t.size})`]:[...t.values()]}:he(t)&&!U(t)&&!pr(t)?String(t):t;let Fe;class il{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Fe,!t&&Fe&&(this.index=(Fe.scopes||(Fe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Fe;try{return Fe=this,t()}finally{Fe=n}}}on(){Fe=this}off(){Fe=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 ll(e,t=Fe){t&&t.active&&t.effects.push(e)}function vr(){return Fe}function al(e){Fe&&Fe.cleanups.push(e)}const co=e=>{const t=new Set(e);return t.w=0,t.n=0,t},br=e=>(e.w&ht)>0,_r=e=>(e.n&ht)>0,cl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ht},ul=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];br(r)&&!_r(r)?r.delete(e):t[n++]=r,r.w&=~ht,r.n&=~ht}t.length=n}},uo=new WeakMap;let rn=0,ht=1;const fo=30;let Qe;const Tt=Symbol(""),po=Symbol("");class ho{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ll(this,o)}run(){if(!this.active)return this.fn();let t=Qe,n=gt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Qe,Qe=this,gt=!0,ht=1<<++rn,rn<=fo?cl(this):yr(this),this.fn()}finally{rn<=fo&&ul(this),ht=1<<--rn,Qe=this.parent,gt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Qe===this?this.deferStop=!0:this.active&&(yr(this),this.onStop&&this.onStop(),this.active=!1)}}function yr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let gt=!0;const wr=[];function Vt(){wr.push(gt),gt=!1}function Wt(){const e=wr.pop();gt=e===void 0?!0:e}function Ae(e,t,n){if(gt&&Qe){let o=uo.get(e);o||uo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=co()),xr(r)}}function xr(e,t){let n=!1;rn<=fo?_r(e)||(e.n|=ht,n=!br(e)):n=!e.has(Qe),n&&(e.add(Qe),Qe.deps.push(e))}function at(e,t,n,o,r,s){const i=uo.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&U(e)){const a=Number(o);i.forEach((c,d)=>{(d==="length"||d>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":U(e)?ro(n)&&l.push(i.get("length")):(l.push(i.get(Tt)),Ht(e)&&l.push(i.get(po)));break;case"delete":U(e)||(l.push(i.get(Tt)),Ht(e)&&l.push(i.get(po)));break;case"set":Ht(e)&&l.push(i.get(Tt));break}if(l.length===1)l[0]&&go(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);go(co(a))}}function go(e,t){const n=U(e)?e:[...e];for(const o of n)o.computed&&Cr(o);for(const o of n)o.computed||Cr(o)}function Cr(e,t){(e!==Qe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const fl=De("__proto__,__v_isRef,__isVue"),kr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(oo)),dl=mo(),pl=mo(!1,!0),hl=mo(!0),Pr=gl();function gl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=le(this);for(let s=0,i=this.length;s<i;s++)Ae(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(le)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Vt();const o=le(this)[t].apply(this,n);return Wt(),o}}),e}function ml(e){const t=le(this);return Ae(t,"has",e),t.hasOwnProperty(e)}function mo(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?Ml:zr:t?Lr:Mr).get(o))return o;const i=U(o);if(!e){if(i&&se(Pr,r))return Reflect.get(Pr,r,s);if(r==="hasOwnProperty")return ml}const l=Reflect.get(o,r,s);return(oo(r)?kr.has(r):fl(r))||(e||Ae(o,"get",r),t)?l:we(l)?i&&ro(r)?l:l.value:he(l)?e?_o(l):sn(l):l}}const vl=Tr(),bl=Tr(!0);function Tr(e=!1){return function(n,o,r,s){let i=n[o];if(Kt(i)&&we(i)&&!we(r))return!1;if(!e&&(!An(r)&&!Kt(r)&&(i=le(i),r=le(r)),!U(n)&&we(i)&&!we(r)))return i.value=r,!0;const l=U(n)&&ro(o)?Number(o)<n.length:se(n,o),a=Reflect.set(n,o,r,s);return n===le(s)&&(l?on(r,i)&&at(n,"set",o,r):at(n,"add",o,r)),a}}function _l(e,t){const n=se(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&at(e,"delete",t,void 0),o}function yl(e,t){const n=Reflect.has(e,t);return(!oo(t)||!kr.has(t))&&Ae(e,"has",t),n}function wl(e){return Ae(e,"iterate",U(e)?"length":Tt),Reflect.ownKeys(e)}const Or={get:dl,set:vl,deleteProperty:_l,has:yl,ownKeys:wl},xl={get:hl,set(e,t){return!0},deleteProperty(e,t){return!0}},Cl=be({},Or,{get:pl,set:bl}),vo=e=>e,In=e=>Reflect.getPrototypeOf(e);function En(e,t,n=!1,o=!1){e=e.__v_raw;const r=le(e),s=le(t);n||(t!==s&&Ae(r,"get",t),Ae(r,"get",s));const{has:i}=In(r),l=o?vo:n?wo:ln;if(i.call(r,t))return l(e.get(t));if(i.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function Sn(e,t=!1){const n=this.__v_raw,o=le(n),r=le(e);return t||(e!==r&&Ae(o,"has",e),Ae(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Mn(e,t=!1){return e=e.__v_raw,!t&&Ae(le(e),"iterate",Tt),Reflect.get(e,"size",e)}function $r(e){e=le(e);const t=le(this);return In(t).has.call(t,e)||(t.add(e),at(t,"add",e,e)),this}function Ir(e,t){t=le(t);const n=le(this),{has:o,get:r}=In(n);let s=o.call(n,e);s||(e=le(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?on(t,i)&&at(n,"set",e,t):at(n,"add",e,t),this}function Er(e){const t=le(this),{has:n,get:o}=In(t);let r=n.call(t,e);r||(e=le(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&at(t,"delete",e,void 0),s}function Sr(){const e=le(this),t=e.size!==0,n=e.clear();return t&&at(e,"clear",void 0,void 0),n}function Ln(e,t){return function(o,r){const s=this,i=s.__v_raw,l=le(i),a=t?vo:e?wo:ln;return!e&&Ae(l,"iterate",Tt),i.forEach((c,d)=>o.call(r,a(c),a(d),s))}}function zn(e,t,n){return function(...o){const r=this.__v_raw,s=le(r),i=Ht(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...o),d=n?vo:t?wo:ln;return!t&&Ae(s,"iterate",a?po:Tt),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:l?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function mt(e){return function(...t){return e==="delete"?!1:this}}function kl(){const e={get(s){return En(this,s)},get size(){return Mn(this)},has:Sn,add:$r,set:Ir,delete:Er,clear:Sr,forEach:Ln(!1,!1)},t={get(s){return En(this,s,!1,!0)},get size(){return Mn(this)},has:Sn,add:$r,set:Ir,delete:Er,clear:Sr,forEach:Ln(!1,!0)},n={get(s){return En(this,s,!0)},get size(){return Mn(this,!0)},has(s){return Sn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Ln(!0,!1)},o={get(s){return En(this,s,!0,!0)},get size(){return Mn(this,!0)},has(s){return Sn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Ln(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=zn(s,!1,!1),n[s]=zn(s,!0,!1),t[s]=zn(s,!1,!0),o[s]=zn(s,!0,!0)}),[e,n,t,o]}const[Pl,Tl,Ol,$l]=kl();function bo(e,t){const n=t?e?$l:Ol:e?Tl:Pl;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(se(n,r)&&r in o?n:o,r,s)}const Il={get:bo(!1,!1)},El={get:bo(!1,!0)},Sl={get:bo(!0,!1)},Mr=new WeakMap,Lr=new WeakMap,zr=new WeakMap,Ml=new WeakMap;function Ll(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function zl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ll(Qi(e))}function sn(e){return Kt(e)?e:yo(e,!1,Or,Il,Mr)}function Al(e){return yo(e,!1,Cl,El,Lr)}function _o(e){return yo(e,!0,xl,Sl,zr)}function yo(e,t,n,o,r){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=zl(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Ut(e){return Kt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function An(e){return!!(e&&e.__v_isShallow)}function Ar(e){return Ut(e)||Kt(e)}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function jr(e){return $n(e,"__v_skip",!0),e}const ln=e=>he(e)?sn(e):e,wo=e=>he(e)?_o(e):e;function Br(e){gt&&Qe&&(e=le(e),xr(e.dep||(e.dep=co())))}function Dr(e,t){e=le(e);const n=e.dep;n&&go(n)}function we(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Fr(e,!1)}function Nr(e){return Fr(e,!0)}function Fr(e,t){return we(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:le(t),this._value=n?t:ln(t)}get value(){return Br(this),this._value}set value(t){const n=this.__v_isShallow||An(t)||Kt(t);t=n?t:le(t),on(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ln(t),Dr(this))}}function V(e){return we(e)?e.value:e}const Bl={get:(e,t,n)=>V(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return we(r)&&!we(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Rr(e){return Ut(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 ho(t,()=>{this._dirty||(this._dirty=!0,Dr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=le(this);return Br(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Nl(e,t,n=!1){let o,r;const s=G(e);return s?(o=e,r=Je):(o=e.get,r=e.set),new Dl(o,r,s||!r,n)}function hp(e,...t){}function vt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){jn(s,t,n)}return r}function qe(e,t,n,o){if(G(e)){const s=vt(e,t,n,o);return s&&fr(s)&&s.catch(i=>{jn(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(qe(e[s],t,n,o));return r}function jn(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=n;for(;s;){const c=s.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){vt(a,null,10,[e,i,l]);return}}Fl(e,n,r,o)}function Fl(e,t,n,o=!0){console.error(e)}let an=!1,xo=!1;const Ee=[];let et=0;const qt=[];let ct=null,Ot=0;const Hr=Promise.resolve();let Co=null;function ut(e){const t=Co||Hr;return e?t.then(this?e.bind(this):e):t}function Rl(e){let t=et+1,n=Ee.length;for(;t<n;){const o=t+n>>>1;cn(Ee[o])<e?t=o+1:n=o}return t}function ko(e){(!Ee.length||!Ee.includes(e,an&&e.allowRecurse?et+1:et))&&(e.id==null?Ee.push(e):Ee.splice(Rl(e.id),0,e),Vr())}function Vr(){!an&&!xo&&(xo=!0,Co=Hr.then(Kr))}function Hl(e){const t=Ee.indexOf(e);t>et&&Ee.splice(t,1)}function Vl(e){U(e)?qt.push(...e):(!ct||!ct.includes(e,e.allowRecurse?Ot+1:Ot))&&qt.push(e),Vr()}function Wr(e,t=an?et+1:0){for(;t<Ee.length;t++){const n=Ee[t];n&&n.pre&&(Ee.splice(t,1),t--,n())}}function Ur(e){if(qt.length){const t=[...new Set(qt)];if(qt.length=0,ct){ct.push(...t);return}for(ct=t,ct.sort((n,o)=>cn(n)-cn(o)),Ot=0;Ot<ct.length;Ot++)ct[Ot]();ct=null,Ot=0}}const cn=e=>e.id==null?1/0:e.id,Wl=(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 Kr(e){xo=!1,an=!0,Ee.sort(Wl);const t=Je;try{for(et=0;et<Ee.length;et++){const n=Ee[et];n&&n.active!==!1&&vt(n,null,14)}}finally{et=0,Ee.length=0,Ur(),an=!1,Co=null,(Ee.length||qt.length)&&Kr()}}function Ul(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ne;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:u,trim:h}=o[d]||ne;h&&(r=n.map(b=>_e(b)?b.trim():b)),u&&(r=n.map(io))}let l,a=o[l=so(t)]||o[l=so(Ne(t))];!a&&s&&(a=o[l=so(Ue(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 qr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!G(e)){const a=c=>{const d=qr(c,t,!0);d&&(l=!0,be(i,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(he(e)&&o.set(e,null),null):(U(s)?s.forEach(a=>i[a]=null):be(i,s),he(e)&&o.set(e,i),i)}function Bn(e,t){return!e||!xn(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,Ue(t))||se(e,t))}let Te=null,Zr=null;function Dn(e){const t=Te;return Te=e,Zr=e&&e.type.__scopeId||null,t}function oe(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&ks(-1);const s=Dn(t);let i;try{i=e(...r)}finally{Dn(s),o._d&&ks(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function gp(){}function Po(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:c,render:d,renderCache:u,data:h,setupState:b,ctx:$,inheritAttrs:v}=e;let q,D;const B=Dn(e);try{if(n.shapeFlag&4){const z=r||o;q=nt(d.call(z,z,u,s,b,h,$)),D=a}else{const z=t;q=nt(z.length>1?z(s,{attrs:a,slots:l,emit:c}):z(s,null)),D=t.props?a:Kl(a)}}catch(z){pn.length=0,jn(z,e,1),q=W(Ye)}let N=q;if(D&&v!==!1){const z=Object.keys(D),{shapeFlag:E}=N;z.length&&E&7&&(i&&z.some(to)&&(D=ql(D,i)),N=_t(N,D))}return n.dirs&&(N=_t(N),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),q=N,Dn(B),q}const Kl=e=>{let t;for(const n in e)(n==="class"||n==="style"||xn(n))&&((t||(t={}))[n]=e[n]);return t},ql=(e,t)=>{const n={};for(const o in e)(!to(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Zl(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Yr(o,i,c):!!i;if(a&8){const d=t.dynamicProps;for(let u=0;u<d.length;u++){const h=d[u];if(i[h]!==o[h]&&!Bn(c,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Yr(o,i,c):!0:!!i;return!1}function Yr(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 s=o[r];if(t[s]!==e[s]&&!Bn(n,s))return!0}return!1}function Yl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Xl=e=>e.__isSuspense;function Jl(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Vl(e)}function Ql(e,t){return To(e,null,t)}const Nn={};function de(e,t,n){return To(e,t,n)}function To(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=ne){var l;const a=vr()===((l=ke)==null?void 0:l.scope)?ke:null;let c,d=!1,u=!1;if(we(e)?(c=()=>e.value,d=An(e)):Ut(e)?(c=()=>e,o=!0):U(e)?(u=!0,d=e.some(z=>Ut(z)||An(z)),c=()=>e.map(z=>{if(we(z))return z.value;if(Ut(z))return $t(z);if(G(z))return vt(z,a,2)})):G(e)?t?c=()=>vt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),qe(e,a,3,[b])}:c=Je,t&&o){const z=c;c=()=>$t(z())}let h,b=z=>{h=B.onStop=()=>{vt(z,a,4)}},$;if(gn)if(b=Je,t?n&&qe(t,a,3,[c(),u?[]:void 0,b]):c(),r==="sync"){const z=Wa();$=z.__watcherHandles||(z.__watcherHandles=[])}else return Je;let v=u?new Array(e.length).fill(Nn):Nn;const q=()=>{if(B.active)if(t){const z=B.run();(o||d||(u?z.some((E,m)=>on(E,v[m])):on(z,v)))&&(h&&h(),qe(t,a,3,[z,v===Nn?void 0:u&&v[0]===Nn?[]:v,b]),v=z)}else B.run()};q.allowRecurse=!!t;let D;r==="sync"?D=q:r==="post"?D=()=>je(q,a&&a.suspense):(q.pre=!0,a&&(q.id=a.uid),D=()=>ko(q));const B=new ho(c,D);t?n?q():v=B.run():r==="post"?je(B.run.bind(B),a&&a.suspense):B.run();const N=()=>{B.stop(),a&&a.scope&&no(a.scope.effects,B)};return $&&$.push(N),N}function Gl(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?Xr(o,e):()=>o[e]:e.bind(o,o);let s;G(t)?s=t:(s=t.handler,n=t);const i=ke;Yt(this);const l=To(r,s.bind(o),n);return i?Yt(i):Lt(),l}function Xr(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 $t(e,t){if(!he(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),we(e))$t(e.value,t);else if(U(e))for(let n=0;n<e.length;n++)$t(e[n],t);else if(ur(e)||Ht(e))e.forEach(n=>{$t(n,t)});else if(pr(e))for(const n in e)$t(e[n],t);return e}function bt(e,t){const n=Te;if(n===null)return e;const o=Xn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,c=ne]=t[s];i&&(G(i)&&(i={mounted:i,updated:i}),i.deep&&$t(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:c}))}return e}function It(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(Vt(),qe(a,n,8,[e.el,l,e,t]),Wt())}}function ea(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return tt(()=>{e.isMounted=!0}),ns(()=>{e.isUnmounting=!0}),e}const Ze=[Function,Array],Jr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ze,onEnter:Ze,onAfterEnter:Ze,onEnterCancelled:Ze,onBeforeLeave:Ze,onLeave:Ze,onAfterLeave:Ze,onLeaveCancelled:Ze,onBeforeAppear:Ze,onAppear:Ze,onAfterAppear:Ze,onAppearCancelled:Ze},ta={name:"BaseTransition",props:Jr,setup(e,{slots:t}){const n=Os(),o=ea();let r;return()=>{const s=t.default&&es(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const v of s)if(v.type!==Ye){i=v;break}}const l=le(e),{mode:a}=l;if(o.isLeaving)return $o(i);const c=Gr(i);if(!c)return $o(i);const d=Oo(c,l,o,n);Io(c,d);const u=n.subTree,h=u&&Gr(u);let b=!1;const{getTransitionKey:$}=c.type;if($){const v=$();r===void 0?r=v:v!==r&&(r=v,b=!0)}if(h&&h.type!==Ye&&(!Mt(c,h)||b)){const v=Oo(h,l,o,n);if(Io(h,v),a==="out-in")return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},$o(i);a==="in-out"&&c.type!==Ye&&(v.delayLeave=(q,D,B)=>{const N=Qr(o,h);N[String(h.key)]=h,q._leaveCb=()=>{D(),q._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=B})}return i}}};function Qr(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 Oo(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:h,onAfterLeave:b,onLeaveCancelled:$,onBeforeAppear:v,onAppear:q,onAfterAppear:D,onAppearCancelled:B}=t,N=String(e.key),z=Qr(n,e),E=(y,F)=>{y&&qe(y,o,9,F)},m=(y,F)=>{const Q=F[1];E(y,F),U(y)?y.every(ie=>ie.length<=1)&&Q():y.length<=1&&Q()},_={mode:s,persisted:i,beforeEnter(y){let F=l;if(!n.isMounted)if(r)F=v||l;else return;y._leaveCb&&y._leaveCb(!0);const Q=z[N];Q&&Mt(e,Q)&&Q.el._leaveCb&&Q.el._leaveCb(),E(F,[y])},enter(y){let F=a,Q=c,ie=d;if(!n.isMounted)if(r)F=q||a,Q=D||c,ie=B||d;else return;let S=!1;const re=y._enterCb=me=>{S||(S=!0,me?E(ie,[y]):E(Q,[y]),_.delayedLeave&&_.delayedLeave(),y._enterCb=void 0)};F?m(F,[y,re]):re()},leave(y,F){const Q=String(e.key);if(y._enterCb&&y._enterCb(!0),n.isUnmounting)return F();E(u,[y]);let ie=!1;const S=y._leaveCb=re=>{ie||(ie=!0,F(),re?E($,[y]):E(b,[y]),y._leaveCb=void 0,z[Q]===e&&delete z[Q])};z[Q]=e,h?m(h,[y,S]):S()},clone(y){return Oo(y,t,n,o)}};return _}function $o(e){if(Fn(e))return e=_t(e),e.children=null,e}function Gr(e){return Fn(e)?e.children?e.children[0]:void 0:e}function Io(e,t){e.shapeFlag&6&&e.component?Io(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 es(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Ce?(i.patchFlag&128&&r++,o=o.concat(es(i.children,t,l))):(t||i.type!==Ye)&&o.push(l!=null?_t(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function Oe(e,t){return G(e)?(()=>be({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,Fn=e=>e.type.__isKeepAlive;function na(e,t){ts(e,"a",t)}function oa(e,t){ts(e,"da",t)}function ts(e,t,n=ke){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Rn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Fn(r.parent.vnode)&&ra(o,t,n,r),r=r.parent}}function ra(e,t,n,o){const r=Rn(t,e,o,!0);dt(()=>{no(o[t],r)},n)}function Rn(e,t,n=ke,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Vt(),Yt(n);const l=qe(t,n,e,i);return Lt(),Wt(),l});return o?r.unshift(s):r.push(s),s}}const ft=e=>(t,n=ke)=>(!gn||e==="sp")&&Rn(e,(...o)=>t(...o),n),sa=ft("bm"),tt=ft("m"),ia=ft("bu"),la=ft("u"),ns=ft("bum"),dt=ft("um"),aa=ft("sp"),ca=ft("rtg"),ua=ft("rtc");function fa(e,t=ke){Rn("ec",e,t)}const os="components",rs=Symbol.for("v-ndc");function da(e){return _e(e)?pa(os,e,!1)||e:e||rs}function pa(e,t,n=!0,o=!1){const r=Te||ke;if(r){const s=r.type;if(e===os){const l=Ra(s,!1);if(l&&(l===t||l===Ne(t)||l===Tn(Ne(t))))return s}const i=ss(r[e]||s[e],t)||ss(r.appContext[e],t);return!i&&o?s:i}}function ss(e,t){return e&&(e[t]||e[Ne(t)]||e[Tn(Ne(t))])}function Hn(e,t,n,o){let r;const s=n&&n[o];if(U(e)||_e(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(he(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s&&s[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const c=i[l];r[l]=t(e[c],c,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function is(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(U(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 s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function $e(e,t,n={},o,r){if(Te.isCE||Te.parent&&un(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),W("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&ls(s(n)),l=Se(Ce,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function ls(e){return e.some(t=>qn(t)?!(t.type===Ye||t.type===Ce&&!ls(t.children)):!0)?e:null}const Eo=e=>e?Is(e)?Xn(e)||e.proxy:Eo(e.parent):null,fn=be(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=>Eo(e.parent),$root:e=>Eo(e.root),$emit:e=>e.emit,$options:e=>Lo(e),$forceUpdate:e=>e.f||(e.f=()=>ko(e.update)),$nextTick:e=>e.n||(e.n=ut.bind(e.proxy)),$watch:e=>Gl.bind(e)}),So=(e,t)=>e!==ne&&!e.__isScriptSetup&&se(e,t),ha={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=i[t];if(b!==void 0)switch(b){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(So(o,t))return i[t]=1,o[t];if(r!==ne&&se(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&se(c,t))return i[t]=3,s[t];if(n!==ne&&se(n,t))return i[t]=4,n[t];Mo&&(i[t]=0)}}const d=fn[t];let u,h;if(d)return t==="$attrs"&&Ae(e,"get",t),d(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==ne&&se(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,se(h,t))return h[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return So(r,t)?(r[t]=n,!0):o!==ne&&se(o,t)?(o[t]=n,!0):se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||e!==ne&&se(e,i)||So(t,i)||(l=s[0])&&se(l,i)||se(o,i)||se(fn,i)||se(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function as(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Mo=!0;function ga(e){const t=Lo(e),n=e.proxy,o=e.ctx;Mo=!1,t.beforeCreate&&cs(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:b,updated:$,activated:v,deactivated:q,beforeDestroy:D,beforeUnmount:B,destroyed:N,unmounted:z,render:E,renderTracked:m,renderTriggered:_,errorCaptured:y,serverPrefetch:F,expose:Q,inheritAttrs:ie,components:S,directives:re,filters:me}=t;if(c&&ma(c,o,null),i)for(const k in i){const L=i[k];G(L)&&(o[k]=L.bind(n))}if(r){const k=r.call(n,n);he(k)&&(e.data=sn(k))}if(Mo=!0,s)for(const k in s){const L=s[k],ee=G(L)?L.bind(n,n):G(L.get)?L.get.bind(n,n):Je,Me=!G(L)&&G(L.set)?L.set.bind(n):Je,Be=ce({get:ee,set:Me});Object.defineProperty(o,k,{enumerable:!0,configurable:!0,get:()=>Be.value,set:Ie=>Be.value=Ie})}if(l)for(const k in l)us(l[k],o,n,k);if(a){const k=G(a)?a.call(n):a;Reflect.ownKeys(k).forEach(L=>{Un(L,k[L])})}d&&cs(d,e,"c");function ae(k,L){U(L)?L.forEach(ee=>k(ee.bind(n))):L&&k(L.bind(n))}if(ae(sa,u),ae(tt,h),ae(ia,b),ae(la,$),ae(na,v),ae(oa,q),ae(fa,y),ae(ua,m),ae(ca,_),ae(ns,B),ae(dt,z),ae(aa,F),U(Q))if(Q.length){const k=e.exposed||(e.exposed={});Q.forEach(L=>{Object.defineProperty(k,L,{get:()=>n[L],set:ee=>n[L]=ee})})}else e.exposed||(e.exposed={});E&&e.render===Je&&(e.render=E),ie!=null&&(e.inheritAttrs=ie),S&&(e.components=S),re&&(e.directives=re)}function ma(e,t,n=Je){U(e)&&(e=zo(e));for(const o in e){const r=e[o];let s;he(r)?"default"in r?s=Et(r.from||o,r.default,!0):s=Et(r.from||o):s=Et(r),we(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function cs(e,t,n){qe(U(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function us(e,t,n,o){const r=o.includes(".")?Xr(n,o):()=>n[o];if(_e(e)){const s=t[e];G(s)&&de(r,s)}else if(G(e))de(r,e.bind(n));else if(he(e))if(U(e))e.forEach(s=>us(s,t,n,o));else{const s=G(e.handler)?e.handler.bind(n):t[e.handler];G(s)&&de(r,s,e)}}function Lo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(c=>Vn(a,c,i,!0)),Vn(a,t,i)),he(t)&&s.set(t,a),a}function Vn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Vn(e,s,n,!0),r&&r.forEach(i=>Vn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=va[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const va={data:fs,props:ds,emits:ds,methods:dn,computed:dn,beforeCreate:ze,created:ze,beforeMount:ze,mounted:ze,beforeUpdate:ze,updated:ze,beforeDestroy:ze,beforeUnmount:ze,destroyed:ze,unmounted:ze,activated:ze,deactivated:ze,errorCaptured:ze,serverPrefetch:ze,components:dn,directives:dn,watch:_a,provide:fs,inject:ba};function fs(e,t){return t?e?function(){return be(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function ba(e,t){return dn(zo(e),zo(t))}function zo(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ze(e,t){return e?[...new Set([].concat(e,t))]:t}function dn(e,t){return e?be(Object.create(null),e,t):t}function ds(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:be(Object.create(null),as(e),as(t??{})):t}function _a(e,t){if(!e)return t;if(!t)return e;const n=be(Object.create(null),e);for(const o in t)n[o]=ze(e[o],t[o]);return n}function ps(){return{app:null,config:{isNativeTag:Yi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ya=0;function wa(e,t){return function(o,r=null){G(o)||(o=be({},o)),r!=null&&!he(r)&&(r=null);const s=ps(),i=new Set;let l=!1;const a=s.app={_uid:ya++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:Ua,get config(){return s.config},set config(c){},use(c,...d){return i.has(c)||(c&&G(c.install)?(i.add(c),c.install(a,...d)):G(c)&&(i.add(c),c(a,...d))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,d){return d?(s.components[c]=d,a):s.components[c]},directive(c,d){return d?(s.directives[c]=d,a):s.directives[c]},mount(c,d,u){if(!l){const h=W(o,r);return h.appContext=s,d&&t?t(h,c):e(h,c,u),l=!0,a._container=c,c.__vue_app__=a,Xn(h.component)||h.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,d){return s.provides[c]=d,a},runWithContext(c){Wn=a;try{return c()}finally{Wn=null}}};return a}}let Wn=null;function Un(e,t){if(ke){let n=ke.provides;const o=ke.parent&&ke.parent.provides;o===n&&(n=ke.provides=Object.create(o)),n[e]=t}}function Et(e,t,n=!1){const o=ke||Te;if(o||Wn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Wn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&G(t)?t.call(o&&o.proxy):t}}function xa(e,t,n,o=!1){const r={},s={};$n(s,Zn,1),e.propsDefaults=Object.create(null),hs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Al(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ca(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=le(r),[a]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let u=0;u<d.length;u++){let h=d[u];if(Bn(e.emitsOptions,h))continue;const b=t[h];if(a)if(se(s,h))b!==s[h]&&(s[h]=b,c=!0);else{const $=Ne(h);r[$]=Ao(a,l,$,b,e,!1)}else b!==s[h]&&(s[h]=b,c=!0)}}}else{hs(e,t,r,s)&&(c=!0);let d;for(const u in l)(!t||!se(t,u)&&((d=Ue(u))===u||!se(t,d)))&&(a?n&&(n[u]!==void 0||n[d]!==void 0)&&(r[u]=Ao(a,l,u,void 0,e,!0)):delete r[u]);if(s!==l)for(const u in s)(!t||!se(t,u))&&(delete s[u],c=!0)}c&&at(e,"set","$attrs")}function hs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(kn(a))continue;const c=t[a];let d;r&&se(r,d=Ne(a))?!s||!s.includes(d)?n[d]=c:(l||(l={}))[d]=c:Bn(e.emitsOptions,a)||(!(a in o)||c!==o[a])&&(o[a]=c,i=!0)}if(s){const a=le(n),c=l||ne;for(let d=0;d<s.length;d++){const u=s[d];n[u]=Ao(r,a,u,c[u],e,!se(c,u))}}return i}function Ao(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=se(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&G(a)){const{propsDefaults:c}=r;n in c?o=c[n]:(Yt(r),o=c[n]=a.call(null,t),Lt())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===Ue(n))&&(o=!0))}return o}function gs(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!G(e)){const d=u=>{a=!0;const[h,b]=gs(u,t,!0);be(i,h),b&&l.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!a)return he(e)&&o.set(e,We),We;if(U(s))for(let d=0;d<s.length;d++){const u=Ne(s[d]);ms(u)&&(i[u]=ne)}else if(s)for(const d in s){const u=Ne(d);if(ms(u)){const h=s[d],b=i[u]=U(h)||G(h)?{type:h}:be({},h);if(b){const $=_s(Boolean,b.type),v=_s(String,b.type);b[0]=$>-1,b[1]=v<0||$<v,($>-1||se(b,"default"))&&l.push(u)}}}const c=[i,l];return he(e)&&o.set(e,c),c}function ms(e){return e[0]!=="$"}function vs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bs(e,t){return vs(e)===vs(t)}function _s(e,t){return U(t)?t.findIndex(n=>bs(n,e)):G(t)&&bs(t,e)?0:-1}const ys=e=>e[0]==="_"||e==="$stable",jo=e=>U(e)?e.map(nt):[nt(e)],ka=(e,t,n)=>{if(t._n)return t;const o=oe((...r)=>jo(t(...r)),n);return o._c=!1,o},ws=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ys(r))continue;const s=e[r];if(G(s))t[r]=ka(r,s,o);else if(s!=null){const i=jo(s);t[r]=()=>i}}},xs=(e,t)=>{const n=jo(t);e.slots.default=()=>n},Pa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=le(t),$n(t,"_",n)):ws(t,e.slots={})}else e.slots={},t&&xs(e,t);$n(e.slots,Zn,1)},Ta=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=ne;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(be(r,t),!n&&l===1&&delete r._):(s=!t.$stable,ws(t,r)),i=t}else t&&(xs(e,t),i={default:1});if(s)for(const l in r)!ys(l)&&!(l in i)&&delete r[l]};function Bo(e,t,n,o,r=!1){if(U(e)){e.forEach((h,b)=>Bo(h,t&&(U(t)?t[b]:t),n,o,r));return}if(un(o)&&!r)return;const s=o.shapeFlag&4?Xn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,c=t&&t.r,d=l.refs===ne?l.refs={}:l.refs,u=l.setupState;if(c!=null&&c!==a&&(_e(c)?(d[c]=null,se(u,c)&&(u[c]=null)):we(c)&&(c.value=null)),G(a))vt(a,l,12,[i,d]);else{const h=_e(a),b=we(a);if(h||b){const $=()=>{if(e.f){const v=h?se(u,a)?u[a]:d[a]:a.value;r?U(v)&&no(v,s):U(v)?v.includes(s)||v.push(s):h?(d[a]=[s],se(u,a)&&(u[a]=d[a])):(a.value=[s],e.k&&(d[e.k]=a.value))}else h?(d[a]=i,se(u,a)&&(u[a]=i)):b&&(a.value=i,e.k&&(d[e.k]=i))};i?($.id=-1,je($,n)):$()}}}const je=Jl;function Oa(e){return $a(e)}function $a(e,t){const n=ao();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:b=Je,insertStaticContent:$}=e,v=(f,p,g,x=null,w=null,P=null,M=!1,T=null,I=!!p.dynamicChildren)=>{if(f===p)return;f&&!Mt(f,p)&&(x=Pt(f),Ie(f,w,P,!0),f=null),p.patchFlag===-2&&(I=!1,p.dynamicChildren=null);const{type:C,ref:R,shapeFlag:j}=p;switch(C){case Kn:q(f,p,g,x);break;case Ye:D(f,p,g,x);break;case Do:f==null&&B(p,g,x,M);break;case Ce:S(f,p,g,x,w,P,M,T,I);break;default:j&1?E(f,p,g,x,w,P,M,T,I):j&6?re(f,p,g,x,w,P,M,T,I):(j&64||j&128)&&C.process(f,p,g,x,w,P,M,T,I,O)}R!=null&&w&&Bo(R,f&&f.ref,P,p||f,!p)},q=(f,p,g,x)=>{if(f==null)o(p.el=l(p.children),g,x);else{const w=p.el=f.el;p.children!==f.children&&c(w,p.children)}},D=(f,p,g,x)=>{f==null?o(p.el=a(p.children||""),g,x):p.el=f.el},B=(f,p,g,x)=>{[f.el,f.anchor]=$(f.children,p,g,x,f.el,f.anchor)},N=({el:f,anchor:p},g,x)=>{let w;for(;f&&f!==p;)w=h(f),o(f,g,x),f=w;o(p,g,x)},z=({el:f,anchor:p})=>{let g;for(;f&&f!==p;)g=h(f),r(f),f=g;r(p)},E=(f,p,g,x,w,P,M,T,I)=>{M=M||p.type==="svg",f==null?m(p,g,x,w,P,M,T,I):F(f,p,w,P,M,T,I)},m=(f,p,g,x,w,P,M,T)=>{let I,C;const{type:R,props:j,shapeFlag:H,transition:X,dirs:te}=f;if(I=f.el=i(f.type,P,j&&j.is,j),H&8?d(I,f.children):H&16&&y(f.children,I,null,x,w,P&&R!=="foreignObject",M,T),te&&It(f,null,x,"created"),_(I,f,f.scopeId,M,x),j){for(const ue in j)ue!=="value"&&!kn(ue)&&s(I,ue,null,j[ue],P,f.children,x,w,He);"value"in j&&s(I,"value",null,j.value),(C=j.onVnodeBeforeMount)&&ot(C,x,f)}te&&It(f,null,x,"beforeMount");const fe=(!w||w&&!w.pendingBranch)&&X&&!X.persisted;fe&&X.beforeEnter(I),o(I,p,g),((C=j&&j.onVnodeMounted)||fe||te)&&je(()=>{C&&ot(C,x,f),fe&&X.enter(I),te&&It(f,null,x,"mounted")},w)},_=(f,p,g,x,w)=>{if(g&&b(f,g),x)for(let P=0;P<x.length;P++)b(f,x[P]);if(w){let P=w.subTree;if(p===P){const M=w.vnode;_(f,M,M.scopeId,M.slotScopeIds,w.parent)}}},y=(f,p,g,x,w,P,M,T,I=0)=>{for(let C=I;C<f.length;C++){const R=f[C]=T?wt(f[C]):nt(f[C]);v(null,R,p,g,x,w,P,M,T)}},F=(f,p,g,x,w,P,M)=>{const T=p.el=f.el;let{patchFlag:I,dynamicChildren:C,dirs:R}=p;I|=f.patchFlag&16;const j=f.props||ne,H=p.props||ne;let X;g&&St(g,!1),(X=H.onVnodeBeforeUpdate)&&ot(X,g,p,f),R&&It(p,f,g,"beforeUpdate"),g&&St(g,!0);const te=w&&p.type!=="foreignObject";if(C?Q(f.dynamicChildren,C,T,g,x,te,P):M||L(f,p,T,null,g,x,te,P,!1),I>0){if(I&16)ie(T,p,j,H,g,x,w);else if(I&2&&j.class!==H.class&&s(T,"class",null,H.class,w),I&4&&s(T,"style",j.style,H.style,w),I&8){const fe=p.dynamicProps;for(let ue=0;ue<fe.length;ue++){const ve=fe[ue],pe=j[ve],nn=H[ve];(nn!==pe||ve==="value")&&s(T,ve,pe,nn,w,f.children,g,x,He)}}I&1&&f.children!==p.children&&d(T,p.children)}else!M&&C==null&&ie(T,p,j,H,g,x,w);((X=H.onVnodeUpdated)||R)&&je(()=>{X&&ot(X,g,p,f),R&&It(p,f,g,"updated")},x)},Q=(f,p,g,x,w,P,M)=>{for(let T=0;T<p.length;T++){const I=f[T],C=p[T],R=I.el&&(I.type===Ce||!Mt(I,C)||I.shapeFlag&70)?u(I.el):g;v(I,C,R,null,x,w,P,M,!0)}},ie=(f,p,g,x,w,P,M)=>{if(g!==x){if(g!==ne)for(const T in g)!kn(T)&&!(T in x)&&s(f,T,g[T],null,M,p.children,w,P,He);for(const T in x){if(kn(T))continue;const I=x[T],C=g[T];I!==C&&T!=="value"&&s(f,T,C,I,M,p.children,w,P,He)}"value"in x&&s(f,"value",g.value,x.value)}},S=(f,p,g,x,w,P,M,T,I)=>{const C=p.el=f?f.el:l(""),R=p.anchor=f?f.anchor:l("");let{patchFlag:j,dynamicChildren:H,slotScopeIds:X}=p;X&&(T=T?T.concat(X):X),f==null?(o(C,g,x),o(R,g,x),y(p.children,g,R,w,P,M,T,I)):j>0&&j&64&&H&&f.dynamicChildren?(Q(f.dynamicChildren,H,g,w,P,M,T),(p.key!=null||w&&p===w.subTree)&&Cs(f,p,!0)):L(f,p,g,R,w,P,M,T,I)},re=(f,p,g,x,w,P,M,T,I)=>{p.slotScopeIds=T,f==null?p.shapeFlag&512?w.ctx.activate(p,g,x,M,I):me(p,g,x,w,P,M,I):Pe(f,p,I)},me=(f,p,g,x,w,P,M)=>{const T=f.component=ja(f,x,w);if(Fn(f)&&(T.ctx.renderer=O),Ba(T),T.asyncDep){if(w&&w.registerDep(T,ae),!f.el){const I=T.subTree=W(Ye);D(null,I,p,g)}return}ae(T,f,p,g,w,P,M)},Pe=(f,p,g)=>{const x=p.component=f.component;if(Zl(f,p,g))if(x.asyncDep&&!x.asyncResolved){k(x,p,g);return}else x.next=p,Hl(x.update),x.update();else p.el=f.el,x.vnode=p},ae=(f,p,g,x,w,P,M)=>{const T=()=>{if(f.isMounted){let{next:R,bu:j,u:H,parent:X,vnode:te}=f,fe=R,ue;St(f,!1),R?(R.el=te.el,k(f,R,M)):R=te,j&&On(j),(ue=R.props&&R.props.onVnodeBeforeUpdate)&&ot(ue,X,R,te),St(f,!0);const ve=Po(f),pe=f.subTree;f.subTree=ve,v(pe,ve,u(pe.el),Pt(pe),f,w,P),R.el=ve.el,fe===null&&Yl(f,ve.el),H&&je(H,w),(ue=R.props&&R.props.onVnodeUpdated)&&je(()=>ot(ue,X,R,te),w)}else{let R;const{el:j,props:H}=p,{bm:X,m:te,parent:fe}=f,ue=un(p);if(St(f,!1),X&&On(X),!ue&&(R=H&&H.onVnodeBeforeMount)&&ot(R,fe,p),St(f,!0),j&&Le){const ve=()=>{f.subTree=Po(f),Le(j,f.subTree,f,w,null)};ue?p.type.__asyncLoader().then(()=>!f.isUnmounted&&ve()):ve()}else{const ve=f.subTree=Po(f);v(null,ve,g,x,f,w,P),p.el=ve.el}if(te&&je(te,w),!ue&&(R=H&&H.onVnodeMounted)){const ve=p;je(()=>ot(R,fe,ve),w)}(p.shapeFlag&256||fe&&un(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&je(f.a,w),f.isMounted=!0,p=g=x=null}},I=f.effect=new ho(T,()=>ko(C),f.scope),C=f.update=()=>I.run();C.id=f.uid,St(f,!0),C()},k=(f,p,g)=>{p.component=f;const x=f.vnode.props;f.vnode=p,f.next=null,Ca(f,p.props,x,g),Ta(f,p.children,g),Vt(),Wr(),Wt()},L=(f,p,g,x,w,P,M,T,I=!1)=>{const C=f&&f.children,R=f?f.shapeFlag:0,j=p.children,{patchFlag:H,shapeFlag:X}=p;if(H>0){if(H&128){Me(C,j,g,x,w,P,M,T,I);return}else if(H&256){ee(C,j,g,x,w,P,M,T,I);return}}X&8?(R&16&&He(C,w,P),j!==C&&d(g,j)):R&16?X&16?Me(C,j,g,x,w,P,M,T,I):He(C,w,P,!0):(R&8&&d(g,""),X&16&&y(j,g,x,w,P,M,T,I))},ee=(f,p,g,x,w,P,M,T,I)=>{f=f||We,p=p||We;const C=f.length,R=p.length,j=Math.min(C,R);let H;for(H=0;H<j;H++){const X=p[H]=I?wt(p[H]):nt(p[H]);v(f[H],X,g,null,w,P,M,T,I)}C>R?He(f,w,P,!0,!1,j):y(p,g,x,w,P,M,T,I,j)},Me=(f,p,g,x,w,P,M,T,I)=>{let C=0;const R=p.length;let j=f.length-1,H=R-1;for(;C<=j&&C<=H;){const X=f[C],te=p[C]=I?wt(p[C]):nt(p[C]);if(Mt(X,te))v(X,te,g,null,w,P,M,T,I);else break;C++}for(;C<=j&&C<=H;){const X=f[j],te=p[H]=I?wt(p[H]):nt(p[H]);if(Mt(X,te))v(X,te,g,null,w,P,M,T,I);else break;j--,H--}if(C>j){if(C<=H){const X=H+1,te=X<R?p[X].el:x;for(;C<=H;)v(null,p[C]=I?wt(p[C]):nt(p[C]),g,te,w,P,M,T,I),C++}}else if(C>H)for(;C<=j;)Ie(f[C],w,P,!0),C++;else{const X=C,te=C,fe=new Map;for(C=te;C<=H;C++){const Ve=p[C]=I?wt(p[C]):nt(p[C]);Ve.key!=null&&fe.set(Ve.key,C)}let ue,ve=0;const pe=H-te+1;let nn=!1,Ui=0;const wn=new Array(pe);for(C=0;C<pe;C++)wn[C]=0;for(C=X;C<=j;C++){const Ve=f[C];if(ve>=pe){Ie(Ve,w,P,!0);continue}let it;if(Ve.key!=null)it=fe.get(Ve.key);else for(ue=te;ue<=H;ue++)if(wn[ue-te]===0&&Mt(Ve,p[ue])){it=ue;break}it===void 0?Ie(Ve,w,P,!0):(wn[it-te]=C+1,it>=Ui?Ui=it:nn=!0,v(Ve,p[it],g,null,w,P,M,T,I),ve++)}const Ki=nn?Ia(wn):We;for(ue=Ki.length-1,C=pe-1;C>=0;C--){const Ve=te+C,it=p[Ve],qi=Ve+1<R?p[Ve+1].el:x;wn[C]===0?v(null,it,g,qi,w,P,M,T,I):nn&&(ue<0||C!==Ki[ue]?Be(it,g,qi,2):ue--)}}},Be=(f,p,g,x,w=null)=>{const{el:P,type:M,transition:T,children:I,shapeFlag:C}=f;if(C&6){Be(f.component.subTree,p,g,x);return}if(C&128){f.suspense.move(p,g,x);return}if(C&64){M.move(f,p,g,O);return}if(M===Ce){o(P,p,g);for(let j=0;j<I.length;j++)Be(I[j],p,g,x);o(f.anchor,p,g);return}if(M===Do){N(f,p,g);return}if(x!==2&&C&1&&T)if(x===0)T.beforeEnter(P),o(P,p,g),je(()=>T.enter(P),w);else{const{leave:j,delayLeave:H,afterLeave:X}=T,te=()=>o(P,p,g),fe=()=>{j(P,()=>{te(),X&&X()})};H?H(P,te,fe):fe()}else o(P,p,g)},Ie=(f,p,g,x=!1,w=!1)=>{const{type:P,props:M,ref:T,children:I,dynamicChildren:C,shapeFlag:R,patchFlag:j,dirs:H}=f;if(T!=null&&Bo(T,null,g,f,!0),R&256){p.ctx.deactivate(f);return}const X=R&1&&H,te=!un(f);let fe;if(te&&(fe=M&&M.onVnodeBeforeUnmount)&&ot(fe,p,f),R&6)st(f.component,g,x);else{if(R&128){f.suspense.unmount(g,x);return}X&&It(f,null,p,"beforeUnmount"),R&64?f.type.remove(f,p,g,w,O,x):C&&(P!==Ce||j>0&&j&64)?He(C,p,g,!1,!0):(P===Ce&&j&384||!w&&R&16)&&He(I,p,g),x&&Ft(f)}(te&&(fe=M&&M.onVnodeUnmounted)||X)&&je(()=>{fe&&ot(fe,p,f),X&&It(f,null,p,"unmounted")},g)},Ft=f=>{const{type:p,el:g,anchor:x,transition:w}=f;if(p===Ce){tn(g,x);return}if(p===Do){z(f);return}const P=()=>{r(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:M,delayLeave:T}=w,I=()=>M(g,P);T?T(f.el,P,I):I()}else P()},tn=(f,p)=>{let g;for(;f!==p;)g=h(f),r(f),f=g;r(p)},st=(f,p,g)=>{const{bum:x,scope:w,update:P,subTree:M,um:T}=f;x&&On(x),w.stop(),P&&(P.active=!1,Ie(M,f,p,g)),T&&je(T,p),je(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},He=(f,p,g,x=!1,w=!1,P=0)=>{for(let M=P;M<f.length;M++)Ie(f[M],p,g,x,w)},Pt=f=>f.shapeFlag&6?Pt(f.component.subTree):f.shapeFlag&128?f.suspense.next():h(f.anchor||f.el),Rt=(f,p,g)=>{f==null?p._vnode&&Ie(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,g),Wr(),Ur(),p._vnode=f},O={p:v,um:Ie,m:Be,r:Ft,mt:me,mc:y,pc:L,pbc:Q,n:Pt,o:e};let Y,Le;return t&&([Y,Le]=t(O)),{render:Rt,hydrate:Y,createApp:wa(Rt,Y)}}function St({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Cs(e,t,n=!1){const o=e.children,r=t.children;if(U(o)&&U(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=wt(r[s]),l.el=i.el),n||Cs(i,l)),l.type===Kn&&(l.el=i.el)}}function Ia(e){const t=e.slice(),n=[0];let o,r,s,i,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(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<c?s=l+1:i=l;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Ea=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),Ye=Symbol.for("v-cmt"),Do=Symbol.for("v-stc"),pn=[];let Ge=null;function A(e=!1){pn.push(Ge=e?null:[])}function Sa(){pn.pop(),Ge=pn[pn.length-1]||null}let hn=1;function ks(e){hn+=e}function Ps(e){return e.dynamicChildren=hn>0?Ge||We:null,Sa(),hn>0&&Ge&&Ge.push(e),e}function Z(e,t,n,o,r,s){return Ps(K(e,t,n,o,r,s,!0))}function Se(e,t,n,o,r){return Ps(W(e,t,n,o,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}const Zn="__vInternal",Ts=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||we(e)||G(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,o=0,r=null,s=e===Ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ts(t),ref:t&&Yn(t),scopeId:Zr,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(No(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=_e(n)?8:16),hn>0&&!i&&Ge&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ge.push(a),a}const W=Ma;function Ma(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===rs)&&(e=Ye),qn(e)){const l=_t(e,t,!0);return n&&No(l,n),hn>0&&!s&&Ge&&(l.shapeFlag&6?Ge[Ge.indexOf(e)]=l:Ge.push(l)),l.patchFlag|=-2,l}if(Ha(e)&&(e=e.__vccOpts),t){t=La(t);let{class:l,style:a}=t;l&&!_e(l)&&(t.class=ye(l)),he(a)&&(Ar(a)&&!U(a)&&(a=be({},a)),t.style=Ke(a))}const i=_e(e)?1:Xl(e)?128:Ea(e)?64:he(e)?4:G(e)?2:0;return K(e,t,n,o,r,i,s,!0)}function La(e){return e?Ar(e)||Zn in e?be({},e):e:null}function _t(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Fo(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ts(l),ref:t&&t.ref?n&&r?U(r)?r.concat(Yn(t)):[r,Yn(t)]:Yn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_t(e.ssContent),ssFallback:e.ssFallback&&_t(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function yt(e=" ",t=0){return W(Kn,null,e,t)}function Re(e="",t=!1){return t?(A(),Se(Ye,null,e)):W(Ye,null,e)}function nt(e){return e==null||typeof e=="boolean"?W(Ye):U(e)?W(Ce,null,e.slice()):typeof e=="object"?wt(e):W(Kn,null,String(e))}function wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_t(e)}function No(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),No(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Zn in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[yt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fo(...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=ye([t.class,o.class]));else if(r==="style")t.style=Ke([t.style,o.style]);else if(xn(r)){const s=t[r],i=o[r];i&&s!==i&&!(U(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function ot(e,t,n,o=null){qe(e,t,7,[n,o])}const za=ps();let Aa=0;function ja(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||za,s={uid:Aa++,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:gs(o,r),emitsOptions:qr(o,r),emit:null,emitted:null,propsDefaults:ne,inheritAttrs:o.inheritAttrs,ctx:ne,data:ne,props:ne,attrs:ne,slots:ne,refs:ne,setupState:ne,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Ul.bind(null,s),e.ce&&e.ce(s),s}let ke=null;const Os=()=>ke||Te;let Ro,Zt,$s="__VUE_INSTANCE_SETTERS__";(Zt=ao()[$s])||(Zt=ao()[$s]=[]),Zt.push(e=>ke=e),Ro=e=>{Zt.length>1?Zt.forEach(t=>t(e)):Zt[0](e)};const Yt=e=>{Ro(e),e.scope.on()},Lt=()=>{ke&&ke.scope.off(),Ro(null)};function Is(e){return e.vnode.shapeFlag&4}let gn=!1;function Ba(e,t=!1){gn=t;const{props:n,children:o}=e.vnode,r=Is(e);xa(e,n,r,t),Pa(e,o);const s=r?Da(e,t):void 0;return gn=!1,s}function Da(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=jr(new Proxy(e.ctx,ha));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Fa(e):null;Yt(e),Vt();const s=vt(o,e,0,[e.props,r]);if(Wt(),Lt(),fr(s)){if(s.then(Lt,Lt),t)return s.then(i=>{Es(e,i,t)}).catch(i=>{jn(i,e,0)});e.asyncDep=s}else Es(e,s,t)}else Ms(e,t)}function Es(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Rr(t)),Ms(e,n)}let Ss;function Ms(e,t,n){const o=e.type;if(!e.render){if(!t&&Ss&&!o.render){const r=o.template||Lo(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,c=be(be({isCustomElement:s,delimiters:l},i),a);o.render=Ss(r,c)}}e.render=o.render||Je}Yt(e),Vt(),ga(e),Wt(),Lt()}function Na(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}}))}function Fa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Na(e)},slots:e.slots,emit:e.emit,expose:t}}function Xn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Rr(jr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fn)return fn[n](e)},has(t,n){return n in t||n in fn}}))}function Ra(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function Ha(e){return G(e)&&"__vccOpts"in e}const ce=(e,t)=>Nl(e,t,gn);function Ls(e,t,n){const o=arguments.length;return o===2?he(t)&&!U(t)?qn(t)?W(e,null,[t]):W(e,t):W(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),W(e,t,n))}const Va=Symbol.for("v-scx"),Wa=()=>Et(Va),Ua="3.3.4",Ka="http://www.w3.org/2000/svg",zt=typeof document<"u"?document:null,zs=zt&&zt.createElement("template"),qa={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?zt.createElementNS(Ka,e):zt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>zt.createTextNode(e),createComment:e=>zt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{zs.innerHTML=o?`<svg>${e}</svg>`:e;const l=zs.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Za(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 Ya(e,t,n){const o=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Ho(o,s,"");for(const s in n)Ho(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const As=/\s*!important$/;function Ho(e,t,n){if(U(n))n.forEach(o=>Ho(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Xa(e,t);As.test(n)?e.setProperty(Ue(o),n.replace(As,""),"important"):e[o]=n}}const js=["Webkit","Moz","ms"],Vo={};function Xa(e,t){const n=Vo[t];if(n)return n;let o=Ne(t);if(o!=="filter"&&o in e)return Vo[t]=o;o=Tn(o);for(let r=0;r<js.length;r++){const s=js[r]+o;if(s in e)return Vo[t]=s}return t}const Bs="http://www.w3.org/1999/xlink";function Ja(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bs,t.slice(6,t.length)):e.setAttributeNS(Bs,t,n);else{const s=sl(t);n==null||s&&!gr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Qa(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),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,d=n??"";c!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=gr(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Xt(e,t,n,o){e.addEventListener(t,n,o)}function Ga(e,t,n,o){e.removeEventListener(t,n,o)}function ec(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=tc(t);if(o){const c=s[t]=rc(o,r);Xt(e,l,c,a)}else i&&(Ga(e,l,i,a),s[t]=void 0)}}const Ds=/(?:Once|Passive|Capture)$/;function tc(e){let t;if(Ds.test(e)){t={};let o;for(;o=e.match(Ds);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let Wo=0;const nc=Promise.resolve(),oc=()=>Wo||(nc.then(()=>Wo=0),Wo=Date.now());function rc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;qe(sc(o,n.value),t,5,[o])};return n.value=e,n.attached=oc(),n}function sc(e,t){if(U(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 Ns=/^on[a-z]/,ic=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Za(e,o,r):t==="style"?Ya(e,n,o):xn(t)?to(t)||ec(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):lc(e,t,o,r))?Qa(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Ja(e,t,o,r))};function lc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Ns.test(t)&&G(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ns.test(t)&&_e(n)?!1:t in e}function ac(e,t){const n=Oe(e);class o extends Uo{constructor(s){super(n,s,t)}}return o.def=n,o}const cc=typeof HTMLElement<"u"?HTMLElement:class{};class Uo extends cc{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,ut(()=>{this._connected||(Xs(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:s,styles:i}=o;let l;if(s&&!U(s))for(const a in s){const c=s[a];(c===Number||c&&c.type===Number)&&(a in this._props&&(this._props[a]=lo(this._props[a])),(l||(l=Object.create(null)))[Ne(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(o=>t(o,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,o=U(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(Ne))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Ne(t);this._numberProps&&this._numberProps[o]&&(n=lo(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(Ue(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ue(t),n+""):n||this.removeAttribute(Ue(t))))}_update(){Xs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=W(this._def,be({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),Ue(s)!==s&&o(Ue(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Uo){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 xt="transition",mn="animation",Jt=(e,{slots:t})=>Ls(ta,uc(e),t);Jt.displayName="Transition";const Fs={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};Jt.props=be({},Jr,Fs);const At=(e,t=[])=>{U(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rs=e=>e?U(e)?e.some(t=>t.length>1):e.length>1:!1;function uc(e){const t={};for(const S in e)S in Fs||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:c=i,appearToClass:d=l,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,$=fc(r),v=$&&$[0],q=$&&$[1],{onBeforeEnter:D,onEnter:B,onEnterCancelled:N,onLeave:z,onLeaveCancelled:E,onBeforeAppear:m=D,onAppear:_=B,onAppearCancelled:y=N}=t,F=(S,re,me)=>{jt(S,re?d:l),jt(S,re?c:i),me&&me()},Q=(S,re)=>{S._isLeaving=!1,jt(S,u),jt(S,b),jt(S,h),re&&re()},ie=S=>(re,me)=>{const Pe=S?_:B,ae=()=>F(re,S,me);At(Pe,[re,ae]),Hs(()=>{jt(re,S?a:s),Ct(re,S?d:l),Rs(Pe)||Vs(re,o,v,ae)})};return be(t,{onBeforeEnter(S){At(D,[S]),Ct(S,s),Ct(S,i)},onBeforeAppear(S){At(m,[S]),Ct(S,a),Ct(S,c)},onEnter:ie(!1),onAppear:ie(!0),onLeave(S,re){S._isLeaving=!0;const me=()=>Q(S,re);Ct(S,u),hc(),Ct(S,h),Hs(()=>{S._isLeaving&&(jt(S,u),Ct(S,b),Rs(z)||Vs(S,o,q,me))}),At(z,[S,me])},onEnterCancelled(S){F(S,!1),At(N,[S])},onAppearCancelled(S){F(S,!0),At(y,[S])},onLeaveCancelled(S){Q(S),At(E,[S])}})}function fc(e){if(e==null)return null;if(he(e))return[Ko(e.enter),Ko(e.leave)];{const t=Ko(e);return[t,t]}}function Ko(e){return lo(e)}function Ct(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(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 Hs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let dc=0;function Vs(e,t,n,o){const r=e._endId=++dc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=pc(e,t);if(!i)return o();const c=i+"end";let d=0;const u=()=>{e.removeEventListener(c,h),s()},h=b=>{b.target===e&&++d>=a&&u()};setTimeout(()=>{d<a&&u()},l+1),e.addEventListener(c,h)}function pc(e,t){const n=window.getComputedStyle(e),o=$=>(n[$]||"").split(", "),r=o(`${xt}Delay`),s=o(`${xt}Duration`),i=Ws(r,s),l=o(`${mn}Delay`),a=o(`${mn}Duration`),c=Ws(l,a);let d=null,u=0,h=0;t===xt?i>0&&(d=xt,u=i,h=s.length):t===mn?c>0&&(d=mn,u=c,h=a.length):(u=Math.max(i,c),d=u>0?i>c?xt:mn:null,h=d?d===xt?s.length:a.length:0);const b=d===xt&&/\b(transform|all)(,|$)/.test(o(`${xt}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:b}}function Ws(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Us(n)+Us(e[o])))}function Us(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function hc(){return document.body.offsetHeight}const Ks=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?n=>On(t,n):t};function gc(e){e.target.composing=!0}function qs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const mc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=Ks(r);const s=o||r.props&&r.props.type==="number";Xt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=io(l)),e._assign(l)}),n&&Xt(e,"change",()=>{e.value=e.value.trim()}),t||(Xt(e,"compositionstart",gc),Xt(e,"compositionend",qs),Xt(e,"change",qs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=Ks(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&io(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},vc=["ctrl","shift","alt","meta"],bc={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)=>vc.some(n=>e[`${n}Key`]&&!t.includes(n))},Bt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=bc[t[r]];if(s&&s(n,t))return}return e(n,...o)},_c={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Zs=(e,t)=>n=>{if(!("key"in n))return;const o=Ue(n.key);if(t.some(r=>r===o||_c[r]===o))return e(n)},yc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):vn(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),vn(e,!0),o.enter(e)):o.leave(e,()=>{vn(e,!1)}):vn(e,t))},beforeUnmount(e,{value:t}){vn(e,t)}};function vn(e,t){e.style.display=t?e._vod:"none"}const wc=be({patchProp:ic},qa);let Ys;function xc(){return Ys||(Ys=Oa(wc))}const Xs=(...e)=>{xc().render(...e)},Cc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},kc={class:"flex justify-between items-end"},Pc={class:"inline-block children-pointer-events-auto w-1/3"},Tc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Oc={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},$c={class:"inline-block z-20 relative"},Js=Oe({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(A(),Z("div",{class:ye(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[$e(t.$slots,"default"),K("div",{class:ye(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-2 md:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ke({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[K("div",Cc,[$e(t.$slots,"back"),t.touchDevice?Re("",!0):$e(t.$slots,"exit",{key:0}),$e(t.$slots,"chapter-nav")]),K("div",kc,[K("div",Pc,[$e(t.$slots,"page-nav")]),K("div",Tc,[$e(t.$slots,"reset-zoom")]),K("div",Oc,[$e(t.$slots,"entry"),K("div",$c,[$e(t.$slots,"settings")]),$e(t.$slots,"play")])]),K("div",{class:ye(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[$e(t.$slots,"progress")],2)],6)],2))}}),Ic=Object.freeze(Object.defineProperty({__proto__:null,default:Js},Symbol.toStringTag,{value:"Module"})),xe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Ec={},Sc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Mc=[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 Lc(e,t){return A(),Z("svg",Sc,Mc)}const Qs=xe(Ec,[["render",Lc]]),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),Ac={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"},jc={class:"block w-4 h-4"},Bc={class:"w-12"},Gs=Oe({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=Qs;return t.zoom!==1?(A(),Z("button",Ac,[K("div",jc,[W(o)]),K("div",Bc,lt(Math.ceil(t.zoom*100))+"%",1)])):Re("",!0)}}}),Dc=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Nc={},Fc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Rc=[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 Hc(e,t){return A(),Z("svg",Fc,Rc)}const qo=xe(Nc,[["render",Hc]]),Vc=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),Wc={},Uc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kc=[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 qc(e,t){return A(),Z("svg",Uc,Kc)}const Zo=xe(Wc,[["render",qc]]),Zc=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"}));function Yc({touchDevice:e}){const t=J(!1);let n=0;return Un("busy:touchDevice",e),Un("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Yo(){const e=Et("busy:touchDevice"),t=Et("setBusyState");let n=!1;return dt(()=>{n&&(t==null||t(!1))}),(o,{desktopOnly:r=!1}={})=>{r&&e||(n=o,t==null||t(o))}}const Xc=(e,t)=>{const n=+(e.getAttribute("data-ripple")??0);if(!n)return;const o=document.createElement("span");let r=1,s=.65;const i=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++,s-=.65/c,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Qt={mounted:(e,t)=>{e.style.position="relative",e.style.overflow="hidden",e.setAttribute("data-ripple",t.value),e.addEventListener("click",n=>Xc(e,n))},updated:(e,t)=>{e.setAttribute("data-ripple",t.value)}},Jc={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"},Jn=Oe({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=Yo();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,c)=>bt((A(),Se(da(a.href?"a":"button"),Fo(a.href?{href:a.href}:{},{class:["w-10 h-10 max-w-full max-h-full rounded-full",{"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:Bt(l,["stop"]),onMouseenter:s,onMouseleave:i}),{default:oe(()=>[K("div",Jc,[$e(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[V(Qt),a.disabled?0:15]])}}),Qc=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),Gc={},eu={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},tu=[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 nu(e,t){return A(),Z("svg",eu,tu)}const ei=xe(Gc,[["render",nu]]),ou=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"}));class ru{constructor(){Zi(this,"listeners");this.listeners=[],this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.init()}init(){window.addEventListener("keydown",this.onKeyDown,{capture:!0}),window.addEventListener("keyup",this.onKeyUp,{capture:!0}),window.addEventListener("keypress",this.onKeyPress,{capture:!0})}dispose(){window.removeEventListener("keydown",this.onKeyDown,{capture:!0}),window.removeEventListener("keyup",this.onKeyUp,{capture:!0}),window.removeEventListener("keypress",this.onKeyPress,{capture:!0})}onKeyPress(t){t.stopImmediatePropagation(),t.stopPropagation()}onKeyDown(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyDown)==null?void 0:o.call(n,t)})}onKeyUp(t){t.stopImmediatePropagation(),t.stopPropagation(),this.listeners.forEach(n=>{var o;return(o=n.onKeyUp)==null?void 0:o.call(n,t)})}addListener(t){this.listeners.push(t)}removeListener(t){const n=this.listeners.indexOf(t);n!==-1&&this.listeners.splice(n,1)}}function su(){const e=new ru;return dt(()=>e.dispose()),Un("keyController",e),e}function Xo(e){const t=Et("keyController");tt(()=>t.addListener(e)),dt(()=>t.removeListener(e))}const iu={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},lu={class:"inline-flex items-center h-full absolute left-3 top-0"},au=K("span",{class:"text-xl font-medium"},"Customize",-1),cu={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},ti=Oe({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Xo({onKeyDown:r});const o=Yo();de(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ei,a=Jn;return A(),Z("div",{class:ye(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[W(Jt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:oe(()=>[n.modelValue?(A(),Z("div",{key:0,class:"inline-flex flex-col h-[27rem] w-full sm:w-[32rem] max-h-[80vh] bg-stone-800 bg-opacity-75 backdrop-blur-md rounded-t-xl max-w-full overflow-hidden duration-200",onClick:i[1]||(i[1]=Bt(()=>{},["stop"]))},[K("div",iu,[K("div",lu,[W(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:oe(()=>[W(l)]),_:1})]),au]),K("div",cu,[$e(s.$slots,"default")])])):Re("",!0)]),_:3})],2)}}}),uu=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),fu=["min","max","step"],du={class:"flex-shrink-0"},ni=xe(Oe({__name:"InputPercentage",props:{modelValue:{},min:{},max:{},step:{},disabled:{type:Boolean},suffix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ce({get(){return n.modelValue},set(r){t("update:modelValue",+r)}});return(r,s)=>(A(),Z("div",{class:ye(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Ke({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[bt(K("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,fu),[[mc,o.value]]),K("p",du,[$e(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:.125rem;border-style:none;cursor:pointer;height:.375rem;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:.125rem;border-style:solid;border-width:2px;cursor:pointer;height:1.75rem;transition-duration:.2s;width:1rem}input[type=range]:hover{opacity:1}
|
|
2
|
-
`]]]),pu=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"})),hu={class:"flex items-center mb-8 last:mb-0"},gu={class:"flex-grow overflow-hidden"},oi=Oe({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Z("div",hu,[K("div",{class:ye(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},lt(t.label),3),K("div",gu,[$e(t.$slots,"default")])]))}}),mu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),vu=["onClick","onKeyup"],ri=Oe({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J({width:"",left:""});tt(()=>{let i=!1;de(()=>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:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,l)=>(A(),Z("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:Ke(r.value)},null,4),(A(!0),Z(Ce,null,Hn(n.items,(a,c)=>bt((A(),Z("div",{key:c,tabindex:"0",class:ye(["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:()=>s(c),onKeyup:[Zs(()=>s(c),["enter"]),Zs(()=>s(c),["space"])]},[yt(lt(a),1)],42,vu)),[[V(Qt),30]])),128))],512))}}),bu=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),_u={},yu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},wu=[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 xu(e,t){return A(),Z("svg",yu,wu)}const si=xe(_u,[["render",xu]]),Cu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"}));var ii;const Jo=typeof window<"u",ku=e=>typeof e=="function",Pu=e=>typeof e=="string",kt=()=>{};Jo&&((ii=window==null?void 0:window.navigator)!=null&&ii.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Qn(e){return typeof e=="function"?e():V(e)}function li(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ai=e=>e();function Tu(e,t={}){let n,o,r=kt;const s=l=>{clearTimeout(l),r(),r=kt};return l=>{const a=Qn(e),c=Qn(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,u)=>{r=t.rejectOnCancel?u:d,c&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},c)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},a)})}}function Ou(e=ai){const t=J(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:_o(t),pause:n,resume:o,eventFilter:r}}function $u(e,t=!1,n="Timeout"){return new Promise((o,r)=>{setTimeout(t?()=>r(n):o,e)})}function Iu(e){return e}function Qo(e){return vr()?(al(e),!0):!1}function Gt(e,t=200,n={}){return li(Tu(t,n),e)}function ci(e,t=!0){Os()?tt(e):t?e():ut(e)}var ui=Object.getOwnPropertySymbols,Eu=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable,Mu=(e,t)=>{var n={};for(var o in e)Eu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ui)for(var o of ui(e))t.indexOf(o)<0&&Su.call(e,o)&&(n[o]=e[o]);return n};function Lu(e,t,n={}){const o=n,{eventFilter:r=ai}=o,s=Mu(o,["eventFilter"]);return de(e,li(r,t),s)}var zu=Object.defineProperty,Au=Object.defineProperties,ju=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?zu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bu=(e,t)=>{for(var n in t||(t={}))fi.call(t,n)&&pi(e,n,t[n]);if(Gn)for(var n of Gn(t))di.call(t,n)&&pi(e,n,t[n]);return e},Du=(e,t)=>Au(e,ju(t)),Nu=(e,t)=>{var n={};for(var o in e)fi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Gn)for(var o of Gn(e))t.indexOf(o)<0&&di.call(e,o)&&(n[o]=e[o]);return n};function Fu(e,t,n={}){const o=n,{eventFilter:r}=o,s=Nu(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:c}=Ou(r);return{stop:Lu(e,t,Du(Bu({},s),{eventFilter:i})),pause:l,resume:a,isActive:c}}function Dt(e){var t;const n=Qn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pt=Jo?window:void 0,Ru=Jo?window.document:void 0;function Nt(...e){let t,n,o,r;if(Pu(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=pt):[t,n,o,r]=e,!t)return kt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(d=>d()),s.length=0},l=(d,u,h)=>(d.addEventListener(u,h,r),()=>d.removeEventListener(u,h,r)),a=de(()=>Dt(t),d=>{i(),d&&s.push(...n.flatMap(u=>o.map(h=>l(d,u,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return Qo(c),c}function Hu(e,t,n){const{immediate:o=!0,delay:r=0,onError:s=kt,onSuccess:i=kt,resetOnExecute:l=!0,shallow:a=!0,throwError:c}=n??{},d=a?Nr(t):J(t),u=J(!1),h=J(!1),b=J(void 0);async function $(v=0,...q){l&&(d.value=t),b.value=void 0,u.value=!1,h.value=!0,v>0&&await $u(v);const D=typeof e=="function"?e(...q):e;try{const B=await D;d.value=B,u.value=!0,i(B)}catch(B){if(b.value=B,s(B),c)throw b}finally{h.value=!1}return d.value}return o&&$(r),{state:d,isReady:u,isLoading:h,error:b,execute:$}}function hi(e,t=!1){const n=J(),o=()=>n.value=!!e();return o(),ci(o,t),n}const Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er="__vueuse_ssr_handlers__";Go[er]=Go[er]||{};const Vu=Go[er];function Wu(e,t){return Vu[e]||t}function Uu(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 Ku=Object.defineProperty,gi=Object.getOwnPropertySymbols,qu=Object.prototype.hasOwnProperty,Zu=Object.prototype.propertyIsEnumerable,mi=(e,t,n)=>t in e?Ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vi=(e,t)=>{for(var n in t||(t={}))qu.call(t,n)&&mi(e,n,t[n]);if(gi)for(var n of gi(t))Zu.call(t,n)&&mi(e,n,t[n]);return e};const Yu={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 bi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:d,window:u=pt,eventFilter:h,onError:b=_=>{console.error(_)}}=o,$=(d?Nr:J)(t);if(!n)try{n=Wu("getDefaultStorage",()=>{var _;return(_=pt)==null?void 0:_.localStorage})()}catch(_){b(_)}if(!n)return $;const v=Qn(t),q=Uu(v),D=(r=o.serializer)!=null?r:Yu[q],{pause:B,resume:N}=Fu($,()=>z($.value),{flush:s,deep:i,eventFilter:h});return u&&l&&Nt(u,"storage",m),m(),$;function z(_){try{if(_==null)n.removeItem(e);else{const y=D.write(_),F=n.getItem(e);F!==y&&(n.setItem(e,y),u&&(u==null||u.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:F,newValue:y,storageArea:n}))))}}catch(y){b(y)}}function E(_){const y=_?_.newValue:n.getItem(e);if(y==null)return a&&v!==null&&n.setItem(e,D.write(v)),v;if(!_&&c){const F=D.read(y);return ku(c)?c(F,v):q==="object"&&!Array.isArray(F)?vi(vi({},v),F):F}else return typeof y!="string"?y:D.read(y)}function m(_){if(!(_&&_.storageArea!==n)){if(_&&_.key==null){$.value=v;return}if(!(_&&_.key!==e)){B();try{$.value=E(_)}catch(y){b(y)}finally{_?ut(N):N()}}}}}function _i({document:e=Ru}={}){if(!e)return J("visible");const t=J(e.visibilityState);return Nt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var yi=Object.getOwnPropertySymbols,Xu=Object.prototype.hasOwnProperty,Ju=Object.prototype.propertyIsEnumerable,Qu=(e,t)=>{var n={};for(var o in e)Xu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&yi)for(var o of yi(e))t.indexOf(o)<0&&Ju.call(e,o)&&(n[o]=e[o]);return n};function Gu(e,t,n={}){const o=n,{window:r=pt}=o,s=Qu(o,["window"]);let i;const l=hi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=de(()=>Dt(e),u=>{a(),l.value&&r&&u&&(i=new ResizeObserver(t),i.observe(u,s))},{immediate:!0,flush:"post"}),d=()=>{a(),c()};return Qo(d),{isSupported:l,stop:d}}function ef(e,t={width:0,height:0},n={}){const{window:o=pt,box:r="content-box"}=n,s=ce(()=>{var a,c;return(c=(a=Dt(e))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),i=J(t.width),l=J(t.height);return Gu(e,([a])=>{const c=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const d=Dt(e);if(d){const u=o.getComputedStyle(d);i.value=parseFloat(u.width),l.value=parseFloat(u.height)}}else if(c){const d=Array.isArray(c)?c:[c];i.value=d.reduce((u,{inlineSize:h})=>u+h,0),l.value=d.reduce((u,{blockSize:h})=>u+h,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),de(()=>Dt(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function wi(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=pt}=n,l=hi(()=>i&&"IntersectionObserver"in i);let a=kt;const c=l.value?de(()=>({el:Dt(e),root:Dt(o)}),({el:u,root:h})=>{if(a(),!u)return;const b=new IntersectionObserver(t,{root:h,rootMargin:r,threshold:s});b.observe(u),a=()=>{b.disconnect(),a=kt}},{immediate:!0,flush:"post"}):kt,d=()=>{a(),c()};return Qo(d),{isSupported:l,stop:d}}function tf(e,t,n={}){const{window:o=pt}=n;return bi(e,t,o==null?void 0:o.localStorage,n)}var xi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(xi||(xi={}));function tr(e,t,n={}){const{window:o=pt}=n;return bi(e,t,o==null?void 0:o.sessionStorage,n)}var nf=Object.defineProperty,Ci=Object.getOwnPropertySymbols,of=Object.prototype.hasOwnProperty,rf=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sf=(e,t)=>{for(var n in t||(t={}))of.call(t,n)&&ki(e,n,t[n]);if(Ci)for(var n of Ci(t))rf.call(t,n)&&ki(e,n,t[n]);return e};sf({linear:Iu},{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 lf(e={}){const{window:t=pt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=J(n),l=J(o),a=()=>{t&&(s?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),ci(a),Nt("resize",a,{passive:!0}),r&&Nt("orientationchange",a,{passive:!0}),{width:i,height:l}}function af(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var Xe=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(Xe||{}),rt=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(rt||{});const cf=.25,uf=5,ff=.25,bn=.25,_n=5,df=.05,pf=0,hf=4;function gf(e){var D,B,N,z,E;const{titleName:t,asyncIsWebtoon:n}=e,r=`tkr:${t?af(t):location.pathname}`,s=tf(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(m){const _={};return m?(m.style!==void 0&&Object.values(rt).includes(m.style)&&(_.style=m.style),m.direction!==void 0&&Object.values(Xe).includes(m.direction)&&(_.direction=m.direction),m.gap!==void 0&&m.gap>=pf&&m.gap<=hf&&(_.gap=m.gap),m.speed!==void 0&&m.speed>=bn&&m.speed<=_n&&(_.speed=m.speed),m.zoom!==void 0&&m.zoom>=bn&&m.zoom<=_n&&(_.zoom=m.zoom),Object.keys(_).length?_:void 0):_}}),i=m=>{if(!s.value){s.value=m;return}const _={...s.value};Object.entries(m).forEach(([y,F])=>{F===void 0?delete _[y]:_[y]=F}),Object.keys(_).length?s.value=_:(s.value=void 0,localStorage.removeItem(r))},l=J(((D=s.value)==null?void 0:D.style)??rt.longStrip),a=J(((B=s.value)==null?void 0:B.direction)??Xe.vertical),c=J((N=s.value)==null?void 0:N.gap),d=J(((z=s.value)==null?void 0:z.speed)??1),u=J(((E=s.value)==null?void 0:E.zoom)??1),h=ce({get(){return n.state.value?rt.longStrip:l.value??rt.longStrip},set:m=>{l.value=m,i({style:m===rt.longStrip?void 0:m}),m!==rt.longStrip&&a.value===Xe.vertical&&(b.value=m===rt.single?Xe.ltr:Xe.rtl)}}),b=ce({get:()=>n.state.value?Xe.vertical:a.value,set:m=>{a.value=m,i({direction:m===Xe.vertical?void 0:m})}}),$=ce({get:()=>c.value??(n.state.value?0:1),set(m){c.value=m,i({gap:m})}}),v=ce({get:()=>d.value,set(m){d.value=m,i({speed:m===1?void 0:m})}}),q=ce({get:()=>u.value,set(m){u.value=m,i({zoom:m===1?void 0:m})}});return{direction:b,style:h,gap:$,speed:v,zoom:q,isLongStrip:ce(()=>h.value===rt.longStrip),isDouble:ce(()=>h.value===rt.double),isRTL:ce(()=>b.value===Xe.rtl),isVertical:ce(()=>b.value===Xe.vertical)}}const Pi=Oe({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom"],setup(e,{emit:t}){const n=J(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=si,l=Jn,a=ri,c=oi,d=ni,u=ti;return A(),Z(Ce,null,[W(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:oe(()=>[W(i)]),_:1},8,["disabled"]),W(u,{modelValue:n.value,"onUpdate:modelValue":s[5]||(s[5]=h=>n.value=h)},{default:oe(()=>[W(c,{label:"Style"},{default:oe(()=>[W(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=h=>t("update:reader-style",h))},null,8,["model-value","items"])]),_:1}),W(c,{label:"Direction"},{default:oe(()=>[W(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=h=>t("update:direction",h))},null,8,["model-value","items"])]),_:1}),W(c,{label:"Gap"},{default:oe(()=>[W(a,{"model-value":r.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":s[3]||(s[3]=h=>t("update:gap",h))},null,8,["model-value"])]),_:1}),W(c,{label:"Speed"},{default:oe(()=>[W(d,{"model-value":r.speed,min:V(cf),max:V(uf),step:V(ff),suffix:"x","onUpdate:modelValue":s[4]||(s[4]=h=>t("update:speed",h))},{suffix:oe(()=>[yt(lt(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),W(c,{label:"Zoom"},{default:oe(()=>[W(d,{"model-value":Math.ceil(r.zoom*100),min:V(bn)*100,max:V(_n)*100,step:V(df)*100,"onUpdate:modelValue":o},{suffix:oe(()=>[yt(lt(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),mf=Object.freeze(Object.defineProperty({__proto__:null,default:Pi},Symbol.toStringTag,{value:"Module"})),vf={},bf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_f=[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 yf(e,t){return A(),Z("svg",bf,_f)}const Ti=xe(vf,[["render",yf]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),xf={},Cf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kf=[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 Pf(e,t){return A(),Z("svg",Cf,kf)}const Oi=xe(xf,[["render",Pf]]),Tf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),Of={},$f={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},If=[K("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Ef(e,t){return A(),Z("svg",$f,If)}const $i=xe(Of,[["render",Ef]]),Sf=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),Mf=["aria-hidden"],Lf=["onClick"],zf=["onClick"],Af={class:"whitespace-nowrap"},nr=Oe({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=J(null),r=J(!1),s=J(null),i=J(!1),l=J(!1),a=J(!1);Xo({onKeyDown:$});const c=Yo();function d(){if(!n.items.length){r.value=!1;return}r.value=!r.value,c(r.value),r.value?(u(),ut(()=>setTimeout(()=>{var E,m;(m=(E=s.value)==null?void 0:E.children[n.modelValue])==null||m.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),q(o.value)):setTimeout(D,250)}function u(){const E=o.value;if(E){const m=E.getBoundingClientRect(),_=m.x+m.width/2;i.value=m.y>window.innerHeight/2,l.value=_<window.innerWidth/3,a.value=_>window.innerWidth/3*2}}function h(E){E!=n.modelValue&&t("update:modelValue",E),d()}function b(E){n.items.length||E.stopPropagation()}function $(E){r.value&&E.key==="Escape"&&(d(),E.preventDefault())}let v=[];function q(E){const m=window.getComputedStyle(E).zIndex,_=E.style.zIndex;(!m||!(+m>0))&&((!E.parentElement||E.parentElement.childElementCount>1)&&(E.style.zIndex="1",v.push({el:E,zIndex:_})),E.parentElement&&q(E.parentElement))}function D(){v.forEach(({el:E,zIndex:m})=>{E.style.zIndex=m??""}),v=[]}let B=!1;function N(){B||(B=!0,c(!0,{desktopOnly:!0}))}function z(){B&&(B=!1,c(!1,{desktopOnly:!0}))}return(E,m)=>{const _=$i;return A(),Z("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),Z("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:d})):Re("",!0),E.items.length?(A(),Se(Jt,{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:oe(()=>[r.value?(A(),Z("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ye(["scrollbar-sm duration-150 delay-50 absolute w-40 max-h-[75vh] list-none bg-stone-800 bg-opacity-80 backdrop-blur-md rounded-lg overflow-auto",{"origin-bottom bottom-full -translate-y-1.5":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:m[0]||(m[0]=Bt(()=>{},["stop"]))},[(A(!0),Z(Ce,null,Hn(E.items,(y,F)=>bt((A(),Z("li",{key:F,tabindex:"-1",class:ye(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":F===E.modelValue}]),onClick:()=>h(F)},[K("div",{class:ye(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":F>0}])},[$e(E.$slots,"item",{item:y},()=>[yt(lt(y),1)])],2)],10,Lf)),[[V(Qt),30]])),128))],42,Mf)):Re("",!0)]),_:3})):Re("",!0),bt((A(),Z("button",{type:"button",tabindex:"-1",class:ye(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":E.disabled}]),onClick:Bt(d,["stop"]),onMouseenter:N,onMouseleave:z},[K("div",{class:ye(["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":!!E.items.length,"cursor-default":!E.items.length}]),onClick:b},[K("span",Af,lt(E.label),1),E.items.length?(A(),Z("span",{key:0,class:ye(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[W(_)],2)):Re("",!0)],2)],42,zf)),[[V(Qt),30]])],512)}}}),jf=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),Ii=Oe({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ce(()=>Math.floor(n.modelValue)),r=ce(()=>n.pages.map(c=>c.map(({index:d})=>`${d+1}`).join("-"))),s=ce(()=>{const c=o.value,d=n.pages.findIndex(u=>u.some(({index:h})=>h===c));return d===-1?n.pages.length-1:d}),i=ce(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(c){const d=n.pages[c][0].index;a(d)}function a(c){t("update:modelValue",c)}return(c,d)=>{const u=nr;return A(),Se(u,{"model-value":s.value,label:i.value,items:r.value,disabled:c.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Df={},Nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ff=[K("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Rf(e,t){return A(),Z("svg",Nf,Ff)}const Ei=xe(Df,[["render",Rf]]),Hf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Vf={},Wf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Uf=[K("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function Kf(e,t){return A(),Z("svg",Wf,Uf)}const Si=xe(Vf,[["render",Kf]]),qf=Object.freeze(Object.defineProperty({__proto__:null,default:Si},Symbol.toStringTag,{value:"Module"})),Zf={},Yf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Xf=[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 Jf(e,t){return A(),Z("svg",Yf,Xf)}const Mi=xe(Zf,[["render",Jf]]),Qf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Gf={},ed={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},td=[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 nd(e,t){return A(),Z("svg",ed,td)}const Li=xe(Gf,[["render",nd]]),od=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),zi=xe(Oe({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=J(0);return de(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=qo,i=Zo;return n.value?(A(),Z("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(),Se(s,{key:0})):(A(),Se(i,{key:1}))])):Re("",!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)}}
|
|
3
|
-
`]]]),
|
|
4
|
-
`,
|
|
5
|
-
`]]]),
|
|
6
|
-
`]]]),Id=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),rr=3;function Ed(e,t){const n=sn(Array.from({length:e.value.length})),o=[];let r=0;de([t,e],async([l,a],[c])=>{const d=Math.floor(l),u=Math.floor(c||-1),h=a.length-n.length;if(h>0){const b=Array.from({length:h});n.push(...b)}d!==u&&(r=Math.max(0,r-Math.abs(d-u)));for(let b=d;b<a.length;b++){if(r>rr)return;s(b)}for(let b=d-1;b>=0;b--){if(r>rr)return;s(b)}},{immediate:!0});async function s(l){l===void 0||!e.value[l]||r>rr||(o[l]||(o[l]=!0,r++,n[l]=await Sd(e.value[l]),r=Math.max(0,r-1)),s(i()))}function i(){for(let l=Math.floor(t.value);l<e.value.length;l++)if(!o[l])return l;for(let l=Math.floor(t.value)-1;l>=0;l--)if(!o[l])return l}return n}function Sd(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({src:e,naturalWidth:r,naturalHeight:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function Md(e,t){return ce(()=>t.value?Fi(e):e.map((n,o)=>[{img:n,index:o}]))}function Fi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>s&&s.naturalWidth>s.naturalHeight)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...Fi(e.slice(r.length),t+r.length)]}function Ld(e,t,n){return Hu(async()=>{if(n!==void 0)return n;const o=await zd(e);return await new Promise(r=>{if(n!==void 0){r(n);return}const s=Math.max(o.length<4?0:o.length<6?1:2,t),i=Math.min(s+4,o.length<6?o.length-1:o.length),l=Math.max(0,i-4),a=o.slice(l,i);let c=!1;Promise.all(a.map(async d=>{const u=await Ad(d);!c&&u&&(c=!0,r(!0))})).then(()=>{c||r(!1)})})},n??!1)}async function zd(e){return e.value.length?e.value:await new Promise(t=>{const n=de(e,o=>{n(),o.length&&t(o)})})}function Ad(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{n.naturalHeight&&n.naturalWidth&&(t(n.naturalHeight/n.naturalWidth>2.5),clearInterval(o))},20);n.onerror=()=>{t(!1),clearInterval(o)},n.src=e})}function jd({initialPage:e,max:t}){const n=typeof e=="number"?Math.max(0,Math.min(e,t)):0,o=sessionStorage.getItem("tk:page:path");return o!==location.pathname&&(sessionStorage.setItem("tk:page:path",location.pathname),o&&sessionStorage.removeItem("tk:page")),tr("tk:page",n,{writeDefaults:!1,mergeDefaults(r){return Math.max(0,Math.min(r,t))}})}function Bd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const sr=40;function Dd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:c}){let d=!1,u=!1,h;const b=Fd(q,300);tt(()=>{let m=null;Ql(async()=>{l.value&&l.value!==m&&(m=l.value,v(e.value),m==null||m.removeEventListener("scroll",b),l.value.addEventListener("scroll",b))});const{width:_,height:y}=lf();de(_,$),de(y,$),de(n,$),de(t,$)});async function $(){d=!0;const m=e.value;if(await ut(),D()===m){d=!1;return}v(m)}function v(m,{smooth:_}={smooth:!1}){const y=l.value;if(!y)return;d=!0;const F=async()=>{await ut(),d=!1,u=!0},Q=Math.floor(m),ie=y.querySelector(`[data-index="${Q}"],[data-index2="${Q}"]`);if(!ie){F();return}a(async()=>{u?o.value?(await E(y,ie,{smooth:_,offsetDelta:m%1}),q()):(y.style.setProperty("scroll-snap-type","none"),await E(y,ie,{smooth:_}),y.style.setProperty("scroll-snap-type",""),q()):o.value?(r.value||await new Promise(S=>setTimeout(S,300)),await E(y,ie,{smooth:_,offsetDelta:m%1})):await E(y,ie,{smooth:_}),await F()})}function q(){if(!l.value||d)return;const m=D();m!==void 0&&m!==e.value&&c(m)}function D(){const m=B();if(!m)return;const _=+m.getAttribute("data-index")||0;return o.value?Math.floor((_+N(m))*100)/100:_}function B(){h??(h=l.value.getRootNode());const m=h.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-sr:sr,r.value&&o.value?i.value||sr:window.innerHeight/2);for(let _=0;_<m.length;_++){const y=m[_];if(y.hasAttribute("data-index"))return y;if(y===l.value)break}}function N(m){const _=m.getBoundingClientRect();return r.value?Math.abs(_.top-(i.value||0))/_.height:s.value?Math.max(0,_.right-l.value.clientWidth)/_.width:Math.abs(_.left)/_.width}let z=!1;async function E(m,_,y){if(z)return;z=!0;const F=r.value?m.scrollTop:m.scrollLeft,Q=y.offsetDelta??0,ie=r.value?_.offsetTop+Q*_.offsetHeight-(o.value?i.value??0:0):s.value?_.offsetLeft-m.clientWidth+_.offsetWidth-Q*_.offsetWidth:_.offsetLeft+Q*_.offsetWidth;if(!y.smooth){r.value?m.scrollTop=ie:m.scrollLeft=ie,z=!1;return}const S=ie-F,re=30;let me=0;return new Promise(Pe=>{(function ae(){const k=Nd(me,F,S,re);r.value?m.scrollTop=k:m.scrollLeft=k,me++,me<=re?requestAnimationFrame(ae):(Pe(),z=!1)})()})}return{goToPage:v}}function Nd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function Fd(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function Rd({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=tr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(y,F)=>y===void 0?F:y===!0||y==="true"}),c=J(!1);let d,u;const h=Gt(m,100);let b;const $=Gt(()=>{c.value=!0,clearTimeout(b),b=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),v=()=>setTimeout(()=>{c.value=!1,$(),b&&(clearTimeout(b),b=void 0)},30);v(),t||Nt(window,"mousemove",v);const q=_i();tt(()=>{de(q,y=>{a.value&&(y==="visible"?m():u==null||u())}),de(i,()=>D()),de(s,y=>{y||N()})}),dt(()=>{clearTimeout(b),b=void 0});async function D(y){a.value&&(u==null||u()),y&&(await ut(),await y()),a.value&&h()}function B(){a.value?N():z()}function N(){a.value&&(a.value=!1,u==null||u(),v())}function z(){!a.value&&s.value&&(a.value=!0,m(),v())}function E(){u==null||u()}function m(){const y=n.value;if(!a.value||!y)return;const F=o.value?y.scrollHeight-y.clientHeight:y.scrollWidth-y.clientWidth,Q=_();if(F<=Q){N();return}u=()=>{d=Date.now(),u=void 0};const ie=Date.now();d=ie;const S=.05*i.value,re=o.value?"scrollTop":"scrollLeft";let me=Date.now(),Pe=0;const ae=()=>{if(d!==ie)return;const k=Date.now(),L=k-me;me=k;const ee=S*L+Pe;ee>=1?(Pe=ee%1,y[re]+=(ee-Pe)*(r.value?-1:1)):Pe=ee,setTimeout(ae,1)};ae()}function _(){const y=n.value;return o.value?y.scrollTop:r.value?-y.scrollLeft:y.scrollLeft}return{isPlaying:a,isIdle:c,toggle:B,play:z,pause:E,resume:m,stop:N,interfere:D,awake:v}}function Hd(e){var u,h,b,$;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,l=r.chapters??[],a=(l==null?void 0:l.length)>1?l:[];a.length&&(t=a.findIndex(v=>v.slug===e.slug),t===-1&&(t=a.findIndex(v=>v.vol===n&&v.chap===o)),t===-1&&(t=a.findIndex(v=>s.startsWith(`${v.slug}-`)&&s.length-v.slug.length>3)));const c=((u=e.prev)==null?void 0:u.slug)??((h=a[t+1])==null?void 0:h.slug),d=((b=e.next)==null?void 0:b.slug)??(($=a[t-1])==null?void 0:$.slug);return{activeIndex:t,activeLabel:Ri({vol:n,chap:o}),chapters:a.map(v=>({label:Ri(v),path:ir(i,v.slug)})),prevPath:ir(i,c),nextPath:ir(i,d)}}function ir(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Ri({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const Vd={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},Wd=Oe({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},imgs:{},isWebtoon:{type:Boolean},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle"],setup(e,{emit:t}){const n=e,o=Yc({touchDevice:n.touchDevice}),r=ce(()=>Array.isArray(n.imgs)?n.imgs.filter(O=>typeof O=="string"):[]),s=jd({initialPage:n.page,max:r.value.length-1}),i=Ld(r,Math.ceil(s.value),n.isWebtoon),{direction:l,style:a,isRTL:c,isDouble:d,isVertical:u,isLongStrip:h,gap:b,speed:$,zoom:v}=gf({titleName:n.raw.title.name,asyncIsWebtoon:i}),q=Ed(r,s),D=Md(q,d),B=ce(()=>s.value>=r.value.length),N=ce(()=>Hd(n.raw)),z=ce(()=>{var O,Y;return c.value?(O=N.value)==null?void 0:O.nextPath:(Y=N.value)==null?void 0:Y.prevPath}),E=ce(()=>{var O,Y;return c.value?(O=N.value)==null?void 0:O.prevPath:(Y=N.value)==null?void 0:Y.nextPath}),m=J(null),_=Rd({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:ce(()=>{var O;return(O=m.value)==null?void 0:O.$el}),speed:$,isRTL:c,isVertical:u,isLongStrip:h,onLongIdle:()=>t("longIdle")});de(_.isPlaying,O=>{O||st(!1),t("playingChanged",O)}),de(_.isIdle,O=>{_.isPlaying.value&&st(O)}),de(o,O=>{!O&&_.isIdle.value?_.awake():O&&n.fullScreen&&st()});const y=ce(()=>!n.touchDevice&&_.isIdle.value&&!o.value),F=ce({get(){return v.value},set(O){_.interfere(()=>{v.value=O})}}),Q=()=>_.interfere(()=>new Promise(O=>setTimeout(O,100)));su().addListener({onKeyDown:O=>{const Y=h.value&&u.value,Le=h.value&&!u.value,f=!h.value&&u.value,p=!h.value&&!u.value;switch(O.key){case" ":h.value&&(O.preventDefault(),_.toggle());break;case"ArrowUp":case"PageUp":Y?Q():f&&(O.preventDefault(),Be());break;case"ArrowDown":case"PageDown":Y?Q():f&&(O.preventDefault(),Ie());break;case"ArrowLeft":Le?Q():p?(O.preventDefault(),ee()):u.value&&ae();break;case"ArrowRight":Le?Q():p?(O.preventDefault(),Me()):u.value&&Pe();break}}});const S=Dd({page:s,style:a,direction:l,isLongStrip:h,isVertical:u,isRTL:c,spaceTop:ce(()=>n.spaceTop),scrollEl:ce(()=>{var O;return(O=m.value)==null?void 0:O.$el}),interferePlayer:O=>_.interfere(O),onChangedPage(O){if(O<0||O>=r.value.length+1)return;s.value=O,t("pageChanged",O),O>=r.value.length&&(st(!1),_.stop())}});function re(){h.value||S.goToPage(Math.floor(s.value),{smooth:!0})}function me(){if(_.isPlaying.value){!n.fullScreen||!n.touchDevice?_.stop():_.awake();return}st()}function Pe(){var O;L((O=N.value)==null?void 0:O.nextPath)}function ae(){var O;L((O=N.value)==null?void 0:O.prevPath)}function k(O){var Le,f,p;const Y=(p=(f=(Le=N.value)==null?void 0:Le.chapters)==null?void 0:f[O])==null?void 0:p.path;Y&&L(Y)}function L(O){O&&(location.href=O.includes("://")?O:location.origin+O)}function ee(){c.value?Ie():Be()}function Me(){c.value?Be():Ie()}function Be(){var Le;const O=D.value,Y=B.value?O[O.length-1][0].index:(Le=O[Ft()-1])==null?void 0:Le[0].index;Y!==void 0?S.goToPage(Y):ae()}function Ie(){var Y;const O=B.value?Math.floor(s.value)+1:((Y=D.value[Ft()+1])==null?void 0:Y[0].index)??r.value.length;S.goToPage(O)}function Ft(){const O=Math.floor(s.value),Y=D.value.findIndex(Le=>Le.some(({index:f})=>f===O));return Y===-1?D.value.length-1:Y}function tn(){Bd(),_.stop(),t("dispose")}async function st(O){o.value&&!n.fullScreen||t("fullScreenChanged",typeof O=="boolean"?O:!n.fullScreen)}function He(){n.entryId?Rt():Pt()}function Pt(){_.stop(),t("addEntry")}function Rt(){_.stop(),t("openEntry",n.entryId)}return(O,Y)=>{const Le=or,f=Ni,p=Di,g=ji,x=zi,w=Li,P=Jn,M=Mi,T=nr,I=Si,C=Ei,R=Ii,j=Oi,H=Ti,X=Pi,te=Zo,fe=qo,ue=Gs,ve=Js;return A(),Se(ve,{"full-screen":!!O.fullScreen,idle:y.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":O.touchDevice,rtl:V(c)},is({back:oe(()=>[W(P,{href:O.raw.title.url,title:O.raw.title.name},{default:oe(()=>[W(w)]),_:1},8,["href","title"])]),exit:oe(()=>[W(P,{title:"Hide reader",onClick:tn},{default:oe(()=>[W(M)]),_:1})]),"chapter-nav":oe(()=>[W(T,{modelValue:N.value.activeIndex,label:N.value.activeLabel,items:N.value.chapters,"onUpdate:modelValue":k},{item:oe(({item:pe})=>[yt(lt(pe.label),1)]),_:1},8,["modelValue","label","items"]),z.value||E.value?(A(),Z("div",Vd,[W(P,{title:V(c)?"Next":"Previous",href:z.value,disabled:!z.value,class:"!rounded-r-none"},{default:oe(()=>[W(I)]),_:1},8,["title","href","disabled"]),W(P,{title:V(c)?"Previous":"Next",href:E.value,disabled:!E.value,class:"!rounded-l-none"},{default:oe(()=>[W(C)]),_:1},8,["title","href","disabled"])])):Re("",!0)]),entry:oe(()=>[W(P,{title:O.entryId?"View entry":"Add to Trackkun",onClick:He},{default:oe(()=>[O.entryId?(A(),Se(j,{key:0})):(A(),Se(H,{key:1}))]),_:1},8,["title"])]),settings:oe(()=>[W(X,{"reader-style":V(a),"onUpdate:readerStyle":Y[3]||(Y[3]=pe=>we(a)?a.value=pe:null),direction:V(l),"onUpdate:direction":Y[4]||(Y[4]=pe=>we(l)?l.value=pe:null),gap:V(b),"onUpdate:gap":Y[5]||(Y[5]=pe=>we(b)?b.value=pe:null),speed:V($),"onUpdate:speed":Y[6]||(Y[6]=pe=>we($)?$.value=pe:null),zoom:F.value,"onUpdate:zoom":Y[7]||(Y[7]=pe=>F.value=pe),webtoon:V(i).state.value,disabled:V(i).isLoading.value},null,8,["reader-style","direction","gap","speed","zoom","webtoon","disabled"])]),play:oe(()=>[W(P,{title:V(_).isPlaying.value?"Pause":"Play",disabled:V(i).isLoading.value||!V(h),onClick:Y[8]||(Y[8]=()=>V(_).toggle())},{default:oe(()=>[V(_).isPlaying.value?(A(),Se(te,{key:0})):(A(),Se(fe,{key:1}))]),_:1},8,["title","disabled"])]),"reset-zoom":oe(()=>[W(Jt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:oe(()=>[W(ue,{zoom:F.value,onClick:Y[9]||(Y[9]=Bt(()=>F.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:oe(()=>[K("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Ke({width:`${V(s)/(r.value.length-1)*100}%`})},null,4)]),default:oe(()=>[V(i).isLoading.value||!r.value.length?(A(),Se(Le,{key:0})):(A(),Z(Ce,{key:1},[W(p,{ref_key:"body",ref:m,zoom:F.value,"onUpdate:zoom":Y[0]||(Y[0]=pe=>F.value=pe),pages:V(D),"total-imgs":r.value.length,direction:V(l),gap:V(b),"is-long-strip":V(h),isRTL:V(c),"is-vertical":V(u),"space-top":O.spaceTop,"space-bottom":n.spaceBottom,"touch-device":O.touchDevice,busy:V(o),idle:y.value,"play-controller":V(_),onPrev:Be,onNext:Ie,onClick:me,onDragEnd:re,onWheelPassive:Y[1]||(Y[1]=()=>V(_).interfere())},is({_:2},[!V(i).isLoading.value&&r.value.length?{name:"end",fn:oe(()=>[W(f,{"has-next":!!N.value.nextPath,onNext:Pe,onHide:tn},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),W(g,{direction:V(l)},null,8,["direction"]),B.value?Re("",!0):(A(),Se(x,{key:0,playing:!!V(_).isPlaying.value},null,8,["playing"]))],64))]),_:2},[V(D).length?{name:"page-nav",fn:oe(()=>[W(R,{"model-value":V(s),disabled:V(i).isLoading.value,pages:V(D),"total-imgs":r.value.length,"onUpdate:modelValue":Y[2]||(Y[2]=pe=>V(S).goToPage(pe,{smooth:!0}))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"0"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Hi=xe(Wd,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;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-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}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{color:inherit;font-family:inherit;font-size:100%;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}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-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-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: }.\\!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{bottom:0;left:0;right:0;top:0}.inset-2{bottom:.5rem;left:.5rem;right:.5rem;top:.5rem}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:.75rem}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:.25rem}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-3rem;margin-right:-3rem}.-my-12{margin-bottom:-3rem;margin-top:-3rem}.ml-auto{margin-left:auto}.-ml-20{margin-left:-5rem}.ml-1{margin-left:.25rem}.-mr-3{margin-right:-.75rem}.mb-8{margin-bottom:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:.125rem}.h-0{height:0}.h-full{height:100%}.h-12{height:3rem}.h-\\[27rem\\]{height:27rem}.h-16{height:4rem}.h-10{height:2.5rem}.h-4{height:1rem}.h-9{height:2.25rem}.h-24{height:6rem}.h-1\\.5{height:.375rem}.h-1{height:.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-6{height:1.5rem}.h-20{height:5rem}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[75vh\\]{max-height:75vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:7rem}.w-40{width:10rem}.w-4{width:1rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:4.5rem}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-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-1\\.5{--tw-translate-y:-.375rem}.-translate-y-1{--tw-translate-y:-.25rem}.-translate-y-1,.translate-y-1\\.5{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\\.5{--tw-translate-y:.375rem}.translate-y-1{--tw-translate-y:.25rem}.-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-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{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-0{--tw-translate-y:0px}.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-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.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-\\[1px\\]{gap:1px}.gap-6{gap:1.5rem}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-2xl{border-radius:1rem}.rounded-sm{border-radius:.125rem}.rounded-\\[2\\.5rem\\]{border-radius:2.5rem}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-t-sm{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/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-opacity-50{--tw-bg-opacity:.5}.bg-opacity-75{--tw-bg-opacity:.75}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.bg-opacity-90{--tw-bg-opacity:.9}.p-6{padding:1.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-1{padding:.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pt-3{padding-top:.75rem}.pb-12{padding-bottom:3rem}.pl-1{padding-left:.25rem}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Helvetica,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/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-50{opacity:.5}.opacity-100{opacity:1}.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-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.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:.25rem;width:.25rem}.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-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/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-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/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-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/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:640px){.sm\\:inset-3{bottom:.75rem;left:.75rem;right:.75rem;top:.75rem}.sm\\:w-\\[32rem\\]{width:32rem}.sm\\:pb-2{padding-bottom:.5rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}.md\\:pb-0{padding-bottom:0}}@media (min-width:1024px){.lg\\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (min-width:1280px){.xl\\:px-12{padding-left:3rem;padding-right:3rem}}
|
|
7
|
-
`]]]),
|
|
8
|
-
`,yn="gear-second",
|
|
1
|
+
(function(Ae,re){typeof exports=="object"&&typeof module<"u"?module.exports=re():typeof define=="function"&&define.amd?define(re):(Ae=typeof globalThis<"u"?globalThis:Ae||self,Ae._gearSecond_=re())})(this,function(){"use strict";var gp=Object.defineProperty;var mp=(Ae,re,He)=>re in Ae?gp(Ae,re,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ae[re]=He;var Ji=(Ae,re,He)=>(mp(Ae,typeof re!="symbol"?re+"":re,He),He);function Ae(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 re={},He=[],Xe=()=>{},Qi=()=>!1,Gi=/^on[^a-z]/,xn=e=>Gi.test(e),ro=e=>e.startsWith("onUpdate:"),ve=Object.assign,so=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},el=Object.prototype.hasOwnProperty,le=(e,t)=>el.call(e,t),q=Array.isArray,Vt=e=>Cn(e)==="[object Map]",dr=e=>Cn(e)==="[object Set]",te=e=>typeof e=="function",_e=e=>typeof e=="string",io=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",pr=e=>he(e)&&te(e.then)&&te(e.catch),hr=Object.prototype.toString,Cn=e=>hr.call(e),tl=e=>Cn(e).slice(8,-1),gr=e=>Cn(e)==="[object Object]",lo=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kn=Ae(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nl=/-(\w)/g,Be=Pn(e=>e.replace(nl,(t,n)=>n?n.toUpperCase():"")),ol=/\B([A-Z])/g,We=Pn(e=>e.replace(ol,"-$1").toLowerCase()),Sn=Pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ao=Pn(e=>e?`on${Sn(e)}`:""),nn=(e,t)=>!Object.is(e,t),Tn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},$n=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},co=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uo=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let mr;const fo=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ue(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=_e(o)?ll(o):Ue(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(_e(e))return e;if(he(e))return e}}const rl=/;(?![^(]*\))/g,sl=/:([^]+)/,il=/\/\*[^]*?\*\//g;function ll(e){const t={};return e.replace(il,"").split(rl).forEach(n=>{if(n){const o=n.split(sl);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ye(e){let t="";if(_e(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const o=ye(e[n]);o&&(t+=o+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const al=Ae("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function vr(e){return!!e||e===""}const lt=e=>_e(e)?e:e==null?"":q(e)||he(e)&&(e.toString===hr||!te(e.toString))?JSON.stringify(e,_r,2):String(e),_r=(e,t)=>t&&t.__v_isRef?_r(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:dr(t)?{[`Set(${t.size})`]:[...t.values()]}:he(t)&&!q(t)&&!gr(t)?String(t):t;let De;class cl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=De,!t&&De&&(this.index=(De.scopes||(De.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=De;try{return De=this,t()}finally{De=n}}}on(){De=this}off(){De=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function ul(e,t=De){t&&t.active&&t.effects.push(e)}function br(){return De}function fl(e){De&&De.cleanups.push(e)}const po=e=>{const t=new Set(e);return t.w=0,t.n=0,t},yr=e=>(e.w&mt)>0,wr=e=>(e.n&mt)>0,dl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=mt},pl=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&=~mt,r.n&=~mt}t.length=n}},ho=new WeakMap;let on=0,mt=1;const go=30;let Je;const Ot=Symbol(""),mo=Symbol("");class vo{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ul(this,o)}run(){if(!this.active)return this.fn();let t=Je,n=vt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Je,Je=this,vt=!0,mt=1<<++on,on<=go?dl(this):xr(this),this.fn()}finally{on<=go&&pl(this),mt=1<<--on,Je=this.parent,vt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Je===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 vt=!0;const Cr=[];function Ht(){Cr.push(vt),vt=!1}function Wt(){const e=Cr.pop();vt=e===void 0?!0:e}function Me(e,t,n){if(vt&&Je){let o=ho.get(e);o||ho.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=po()),kr(r)}}function kr(e,t){let n=!1;on<=go?wr(e)||(e.n|=mt,n=!yr(e)):n=!e.has(Je),n&&(e.add(Je),Je.deps.push(e))}function at(e,t,n,o,r,s){const i=ho.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&q(e)){const a=Number(o);i.forEach((u,p)=>{(p==="length"||p>=a)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":q(e)?lo(n)&&l.push(i.get("length")):(l.push(i.get(Ot)),Vt(e)&&l.push(i.get(mo)));break;case"delete":q(e)||(l.push(i.get(Ot)),Vt(e)&&l.push(i.get(mo)));break;case"set":Vt(e)&&l.push(i.get(Ot));break}if(l.length===1)l[0]&&_o(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);_o(po(a))}}function _o(e,t){const n=q(e)?e:[...e];for(const o of n)o.computed&&Pr(o);for(const o of n)o.computed||Pr(o)}function Pr(e,t){(e!==Je||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const hl=Ae("__proto__,__v_isRef,__isVue"),Sr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(io)),gl=bo(),ml=bo(!1,!0),vl=bo(!0),Tr=_l();function _l(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ce(this);for(let s=0,i=this.length;s<i;s++)Me(o,"get",s+"");const r=o[t](...n);return r===-1||r===!1?o[t](...n.map(ce)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ht();const o=ce(this)[t].apply(this,n);return Wt(),o}}),e}function bl(e){const t=ce(this);return Me(t,"has",e),t.hasOwnProperty(e)}function bo(e=!1,t=!1){return function(o,r,s){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(e?t?jl:Ar:t?jr:zr).get(o))return o;const i=q(o);if(!e){if(i&&le(Tr,r))return Reflect.get(Tr,r,s);if(r==="hasOwnProperty")return bl}const l=Reflect.get(o,r,s);return(io(r)?Sr.has(r):hl(r))||(e||Me(o,"get",r),t)?l:be(l)?i&&lo(r)?l:l.value:he(l)?e?xo(l):rn(l):l}}const yl=$r(),wl=$r(!0);function $r(e=!1){return function(n,o,r,s){let i=n[o];if(Kt(i)&&be(i)&&!be(r))return!1;if(!e&&(!jn(r)&&!Kt(r)&&(i=ce(i),r=ce(r)),!q(n)&&be(i)&&!be(r)))return i.value=r,!0;const l=q(n)&&lo(o)?Number(o)<n.length:le(n,o),a=Reflect.set(n,o,r,s);return n===ce(s)&&(l?nn(r,i)&&at(n,"set",o,r):at(n,"add",o,r)),a}}function xl(e,t){const n=le(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&at(e,"delete",t,void 0),o}function Cl(e,t){const n=Reflect.has(e,t);return(!io(t)||!Sr.has(t))&&Me(e,"has",t),n}function kl(e){return Me(e,"iterate",q(e)?"length":Ot),Reflect.ownKeys(e)}const Or={get:gl,set:yl,deleteProperty:xl,has:Cl,ownKeys:kl},Pl={get:vl,set(e,t){return!0},deleteProperty(e,t){return!0}},Sl=ve({},Or,{get:ml,set:wl}),yo=e=>e,On=e=>Reflect.getPrototypeOf(e);function In(e,t,n=!1,o=!1){e=e.__v_raw;const r=ce(e),s=ce(t);n||(t!==s&&Me(r,"get",t),Me(r,"get",s));const{has:i}=On(r),l=o?yo:n?ko:sn;if(i.call(r,t))return l(e.get(t));if(i.call(r,s))return l(e.get(s));e!==r&&e.get(t)}function En(e,t=!1){const n=this.__v_raw,o=ce(n),r=ce(e);return t||(e!==r&&Me(o,"has",e),Me(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Mn(e,t=!1){return e=e.__v_raw,!t&&Me(ce(e),"iterate",Ot),Reflect.get(e,"size",e)}function Ir(e){e=ce(e);const t=ce(this);return On(t).has.call(t,e)||(t.add(e),at(t,"add",e,e)),this}function Er(e,t){t=ce(t);const n=ce(this),{has:o,get:r}=On(n);let s=o.call(n,e);s||(e=ce(e),s=o.call(n,e));const i=r.call(n,e);return n.set(e,t),s?nn(t,i)&&at(n,"set",e,t):at(n,"add",e,t),this}function Mr(e){const t=ce(this),{has:n,get:o}=On(t);let r=n.call(t,e);r||(e=ce(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&at(t,"delete",e,void 0),s}function Lr(){const e=ce(this),t=e.size!==0,n=e.clear();return t&&at(e,"clear",void 0,void 0),n}function Ln(e,t){return function(o,r){const s=this,i=s.__v_raw,l=ce(i),a=t?yo:e?ko:sn;return!e&&Me(l,"iterate",Ot),i.forEach((u,p)=>o.call(r,a(u),a(p),s))}}function zn(e,t,n){return function(...o){const r=this.__v_raw,s=ce(r),i=Vt(s),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=r[e](...o),p=n?yo:t?ko:sn;return!t&&Me(s,"iterate",a?mo:Ot),{next(){const{value:d,done:g}=u.next();return g?{value:d,done:g}:{value:l?[p(d[0]),p(d[1])]:p(d),done:g}},[Symbol.iterator](){return this}}}}function _t(e){return function(...t){return e==="delete"?!1:this}}function Tl(){const e={get(s){return In(this,s)},get size(){return Mn(this)},has:En,add:Ir,set:Er,delete:Mr,clear:Lr,forEach:Ln(!1,!1)},t={get(s){return In(this,s,!1,!0)},get size(){return Mn(this)},has:En,add:Ir,set:Er,delete:Mr,clear:Lr,forEach:Ln(!1,!0)},n={get(s){return In(this,s,!0)},get size(){return Mn(this,!0)},has(s){return En.call(this,s,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Ln(!0,!1)},o={get(s){return In(this,s,!0,!0)},get size(){return Mn(this,!0)},has(s){return En.call(this,s,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:Ln(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=zn(s,!1,!1),n[s]=zn(s,!0,!1),t[s]=zn(s,!1,!0),o[s]=zn(s,!0,!0)}),[e,n,t,o]}const[$l,Ol,Il,El]=Tl();function wo(e,t){const n=t?e?El:Il:e?Ol:$l;return(o,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(le(n,r)&&r in o?n:o,r,s)}const Ml={get:wo(!1,!1)},Ll={get:wo(!1,!0)},zl={get:wo(!0,!1)},zr=new WeakMap,jr=new WeakMap,Ar=new WeakMap,jl=new WeakMap;function Al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bl(e){return e.__v_skip||!Object.isExtensible(e)?0:Al(tl(e))}function rn(e){return Kt(e)?e:Co(e,!1,Or,Ml,zr)}function Dl(e){return Co(e,!1,Sl,Ll,jr)}function xo(e){return Co(e,!0,Pl,zl,Ar)}function Co(e,t,n,o,r){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=Bl(e);if(i===0)return e;const l=new Proxy(e,i===2?o:n);return r.set(e,l),l}function Ut(e){return Kt(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function jn(e){return!!(e&&e.__v_isShallow)}function Br(e){return Ut(e)||Kt(e)}function ce(e){const t=e&&e.__v_raw;return t?ce(t):e}function Dr(e){return $n(e,"__v_skip",!0),e}const sn=e=>he(e)?rn(e):e,ko=e=>he(e)?xo(e):e;function Nr(e){vt&&Je&&(e=ce(e),kr(e.dep||(e.dep=po())))}function Fr(e,t){e=ce(e);const n=e.dep;n&&_o(n)}function be(e){return!!(e&&e.__v_isRef===!0)}function G(e){return Rr(e,!1)}function Nl(e){return Rr(e,!0)}function Rr(e,t){return be(e)?e:new Fl(e,t)}class Fl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ce(t),this._value=n?t:sn(t)}get value(){return Nr(this),this._value}set value(t){const n=this.__v_isShallow||jn(t)||Kt(t);t=n?t:ce(t),nn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:sn(t),Fr(this))}}function F(e){return be(e)?e.value:e}const Rl={get:(e,t,n)=>F(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Vr(e){return Ut(e)?e:new Proxy(e,Rl)}class Vl{constructor(t,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new vo(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=ce(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 Hl(e,t,n=!1){let o,r;const s=te(e);return s?(o=e,r=Xe):(o=e.get,r=e.set),new Vl(o,r,s||!r,n)}function _p(e,...t){}function bt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){An(s,t,n)}return r}function Ke(e,t,n,o){if(te(e)){const s=bt(e,t,n,o);return s&&pr(s)&&s.catch(i=>{An(i,t,n)}),s}const r=[];for(let s=0;s<e.length;s++)r.push(Ke(e[s],t,n,o));return r}function An(e,t,n,o=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const i=t.proxy,l=n;for(;s;){const u=s.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,i,l)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){bt(a,null,10,[e,i,l]);return}}Wl(e,n,r,o)}function Wl(e,t,n,o=!0){console.error(e)}let ln=!1,Po=!1;const Oe=[];let nt=0;const qt=[];let ct=null,It=0;const Hr=Promise.resolve();let So=null;function Qe(e){const t=So||Hr;return e?t.then(this?e.bind(this):e):t}function Ul(e){let t=nt+1,n=Oe.length;for(;t<n;){const o=t+n>>>1;an(Oe[o])<e?t=o+1:n=o}return t}function To(e){(!Oe.length||!Oe.includes(e,ln&&e.allowRecurse?nt+1:nt))&&(e.id==null?Oe.push(e):Oe.splice(Ul(e.id),0,e),Wr())}function Wr(){!ln&&!Po&&(Po=!0,So=Hr.then(qr))}function Kl(e){const t=Oe.indexOf(e);t>nt&&Oe.splice(t,1)}function ql(e){q(e)?qt.push(...e):(!ct||!ct.includes(e,e.allowRecurse?It+1:It))&&qt.push(e),Wr()}function Ur(e,t=ln?nt+1:0){for(;t<Oe.length;t++){const n=Oe[t];n&&n.pre&&(Oe.splice(t,1),t--,n())}}function Kr(e){if(qt.length){const t=[...new Set(qt)];if(qt.length=0,ct){ct.push(...t);return}for(ct=t,ct.sort((n,o)=>an(n)-an(o)),It=0;It<ct.length;It++)ct[It]();ct=null,It=0}}const an=e=>e.id==null?1/0:e.id,Zl=(e,t)=>{const n=an(e)-an(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qr(e){Po=!1,ln=!0,Oe.sort(Zl);const t=Xe;try{for(nt=0;nt<Oe.length;nt++){const n=Oe[nt];n&&n.active!==!1&&bt(n,null,14)}}finally{nt=0,Oe.length=0,Kr(),ln=!1,So=null,(Oe.length||qt.length)&&qr()}}function Yl(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||re;let r=n;const s=t.startsWith("update:"),i=s&&t.slice(7);if(i&&i in o){const p=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:g}=o[p]||re;g&&(r=n.map(x=>_e(x)?x.trim():x)),d&&(r=n.map(co))}let l,a=o[l=ao(t)]||o[l=ao(Be(t))];!a&&s&&(a=o[l=ao(We(t))]),a&&Ke(a,e,6,r);const u=o[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ke(u,e,6,r)}}function Zr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const s=e.emits;let i={},l=!1;if(!te(e)){const a=u=>{const p=Zr(u,t,!0);p&&(l=!0,ve(i,p))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!s&&!l?(he(e)&&o.set(e,null),null):(q(s)?s.forEach(a=>i[a]=null):ve(i,s),he(e)&&o.set(e,i),i)}function Bn(e,t){return!e||!xn(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,We(t))||le(e,t))}let Te=null,Yr=null;function Dn(e){const t=Te;return Te=e,Yr=e&&e.type.__scopeId||null,t}function se(e,t=Te,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&Ps(-1);const s=Dn(t);let i;try{i=e(...r)}finally{Dn(s),o._d&&Ps(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function bp(){}function $o(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[i],slots:l,attrs:a,emit:u,render:p,renderCache:d,data:g,setupState:x,ctx:I,inheritAttrs:_}=e;let Y,D;const X=Dn(e);try{if(n.shapeFlag&4){const k=r||o;Y=rt(p.call(k,k,d,s,x,g,I)),D=a}else{const k=t;Y=rt(k.length>1?k(s,{attrs:a,slots:l,emit:u}):k(s,null)),D=t.props?a:Xl(a)}}catch(k){dn.length=0,An(k,e,1),Y=K(Ze)}let B=Y;if(D&&_!==!1){const k=Object.keys(D),{shapeFlag:L}=B;k.length&&L&7&&(i&&k.some(ro)&&(D=Jl(D,i)),B=yt(B,D))}return n.dirs&&(B=yt(B),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(B.transition=n.transition),Y=B,Dn(X),Y}const Xl=e=>{let t;for(const n in e)(n==="class"||n==="style"||xn(n))&&((t||(t={}))[n]=e[n]);return t},Jl=(e,t)=>{const n={};for(const o in e)(!ro(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Ql(e,t,n){const{props:o,children:r,component:s}=e,{props:i,children:l,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?Xr(o,i,u):!!i;if(a&8){const p=t.dynamicProps;for(let d=0;d<p.length;d++){const g=p[d];if(i[g]!==o[g]&&!Bn(u,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:o===i?!1:o?i?Xr(o,i,u):!0:!!i;return!1}function Xr(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 s=o[r];if(t[s]!==e[s]&&!Bn(n,s))return!0}return!1}function Gl({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ea=e=>e.__isSuspense;function ta(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):ql(e)}function na(e,t){return Oo(e,null,t)}const Nn={};function de(e,t,n){return Oo(e,t,n)}function Oo(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:i}=re){var l;const a=br()===((l=Pe)==null?void 0:l.scope)?Pe:null;let u,p=!1,d=!1;if(be(e)?(u=()=>e.value,p=jn(e)):Ut(e)?(u=()=>e,o=!0):q(e)?(d=!0,p=e.some(k=>Ut(k)||jn(k)),u=()=>e.map(k=>{if(be(k))return k.value;if(Ut(k))return Et(k);if(te(k))return bt(k,a,2)})):te(e)?t?u=()=>bt(e,a,2):u=()=>{if(!(a&&a.isUnmounted))return g&&g(),Ke(e,a,3,[x])}:u=Xe,t&&o){const k=u;u=()=>Et(k())}let g,x=k=>{g=X.onStop=()=>{bt(k,a,4)}},I;if(hn)if(x=Xe,t?n&&Ke(t,a,3,[u(),d?[]:void 0,x]):u(),r==="sync"){const k=Za();I=k.__watcherHandles||(k.__watcherHandles=[])}else return Xe;let _=d?new Array(e.length).fill(Nn):Nn;const Y=()=>{if(X.active)if(t){const k=X.run();(o||p||(d?k.some((L,S)=>nn(L,_[S])):nn(k,_)))&&(g&&g(),Ke(t,a,3,[k,_===Nn?void 0:d&&_[0]===Nn?[]:_,x]),_=k)}else X.run()};Y.allowRecurse=!!t;let D;r==="sync"?D=Y:r==="post"?D=()=>Le(Y,a&&a.suspense):(Y.pre=!0,a&&(Y.id=a.uid),D=()=>To(Y));const X=new vo(u,D);t?n?Y():_=X.run():r==="post"?Le(X.run.bind(X),a&&a.suspense):X.run();const B=()=>{X.stop(),a&&a.scope&&so(a.scope.effects,X)};return I&&I.push(B),B}function oa(e,t,n){const o=this.proxy,r=_e(e)?e.includes(".")?Jr(o,e):()=>o[e]:e.bind(o,o);let s;te(t)?s=t:(s=t.handler,n=t);const i=Pe;Yt(this);const l=Oo(r,s.bind(o),n);return i?Yt(i):At(),l}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 Et(e,t){if(!he(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),be(e))Et(e.value,t);else if(q(e))for(let n=0;n<e.length;n++)Et(e[n],t);else if(dr(e)||Vt(e))e.forEach(n=>{Et(n,t)});else if(gr(e))for(const n in e)Et(e[n],t);return e}function ut(e,t){const n=Te;if(n===null)return e;const o=Xn(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,a,u=re]=t[s];i&&(te(i)&&(i={mounted:i,updated:i}),i.deep&&Et(l),r.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:u}))}return e}function Mt(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];s&&(l.oldValue=s[i].value);let a=l.dir[o];a&&(Ht(),Ke(a,n,8,[e.el,l,e,t]),Wt())}}function ra(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ot(()=>{e.isMounted=!0}),os(()=>{e.isUnmounting=!0}),e}const qe=[Function,Array],Qr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qe,onEnter:qe,onAfterEnter:qe,onEnterCancelled:qe,onBeforeLeave:qe,onLeave:qe,onAfterLeave:qe,onLeaveCancelled:qe,onBeforeAppear:qe,onAppear:qe,onAfterAppear:qe,onAppearCancelled:qe},sa={name:"BaseTransition",props:Qr,setup(e,{slots:t}){const n=$s(),o=ra();let r;return()=>{const s=t.default&&ts(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const _ of s)if(_.type!==Ze){i=_;break}}const l=ce(e),{mode:a}=l;if(o.isLeaving)return Eo(i);const u=es(i);if(!u)return Eo(i);const p=Io(u,l,o,n);Mo(u,p);const d=n.subTree,g=d&&es(d);let x=!1;const{getTransitionKey:I}=u.type;if(I){const _=I();r===void 0?r=_:_!==r&&(r=_,x=!0)}if(g&&g.type!==Ze&&(!jt(u,g)||x)){const _=Io(g,l,o,n);if(Mo(g,_),a==="out-in")return o.isLeaving=!0,_.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},Eo(i);a==="in-out"&&u.type!==Ze&&(_.delayLeave=(Y,D,X)=>{const B=Gr(o,g);B[String(g.key)]=g,Y._leaveCb=()=>{D(),Y._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=X})}return i}}};function Gr(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Io(e,t,n,o){const{appear:r,mode:s,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:u,onEnterCancelled:p,onBeforeLeave:d,onLeave:g,onAfterLeave:x,onLeaveCancelled:I,onBeforeAppear:_,onAppear:Y,onAfterAppear:D,onAppearCancelled:X}=t,B=String(e.key),k=Gr(n,e),L=(m,v)=>{m&&Ke(m,o,9,v)},S=(m,v)=>{const P=v[1];L(m,v),q(m)?m.every(V=>V.length<=1)&&P():m.length<=1&&P()},j={mode:s,persisted:i,beforeEnter(m){let v=l;if(!n.isMounted)if(r)v=_||l;else return;m._leaveCb&&m._leaveCb(!0);const P=k[B];P&&jt(e,P)&&P.el._leaveCb&&P.el._leaveCb(),L(v,[m])},enter(m){let v=a,P=u,V=p;if(!n.isMounted)if(r)v=Y||a,P=D||u,V=X||p;else return;let E=!1;const R=m._enterCb=J=>{E||(E=!0,J?L(V,[m]):L(P,[m]),j.delayedLeave&&j.delayedLeave(),m._enterCb=void 0)};v?S(v,[m,R]):R()},leave(m,v){const P=String(e.key);if(m._enterCb&&m._enterCb(!0),n.isUnmounting)return v();L(d,[m]);let V=!1;const E=m._leaveCb=R=>{V||(V=!0,v(),R?L(I,[m]):L(x,[m]),m._leaveCb=void 0,k[P]===e&&delete k[P])};k[P]=e,g?S(g,[m,E]):E()},clone(m){return Io(m,t,n,o)}};return j}function Eo(e){if(Fn(e))return e=yt(e),e.children=null,e}function es(e){return Fn(e)?e.children?e.children[0]:void 0:e}function Mo(e,t){e.shapeFlag&6&&e.component?Mo(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 ts(e,t=!1,n){let o=[],r=0;for(let s=0;s<e.length;s++){let i=e[s];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===Ce?(i.patchFlag&128&&r++,o=o.concat(ts(i.children,t,l))):(t||i.type!==Ze)&&o.push(l!=null?yt(i,{key:l}):i)}if(r>1)for(let s=0;s<o.length;s++)o[s].patchFlag=-2;return o}function $e(e,t){return te(e)?(()=>ve({name:e.name},t,{setup:e}))():e}const cn=e=>!!e.type.__asyncLoader,Fn=e=>e.type.__isKeepAlive;function ia(e,t){ns(e,"a",t)}function la(e,t){ns(e,"da",t)}function ns(e,t,n=Pe){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Rn(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Fn(r.parent.vnode)&&aa(o,t,n,r),r=r.parent}}function aa(e,t,n,o){const r=Rn(t,e,o,!0);Ne(()=>{so(o[t],r)},n)}function Rn(e,t,n=Pe,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ht(),Yt(n);const l=Ke(t,n,e,i);return At(),Wt(),l});return o?r.unshift(s):r.push(s),s}}const ft=e=>(t,n=Pe)=>(!hn||e==="sp")&&Rn(e,(...o)=>t(...o),n),ca=ft("bm"),ot=ft("m"),ua=ft("bu"),fa=ft("u"),os=ft("bum"),Ne=ft("um"),da=ft("sp"),pa=ft("rtg"),ha=ft("rtc");function ga(e,t=Pe){Rn("ec",e,t)}const rs="components",ss=Symbol.for("v-ndc");function ma(e){return _e(e)?va(rs,e,!1)||e:e||ss}function va(e,t,n=!0,o=!1){const r=Te||Pe;if(r){const s=r.type;if(e===rs){const l=Ua(s,!1);if(l&&(l===t||l===Be(t)||l===Sn(Be(t))))return s}const i=is(r[e]||s[e],t)||is(r.appContext[e],t);return!i&&o?s:i}}function is(e,t){return e&&(e[t]||e[Be(t)]||e[Sn(Be(t))])}function Vn(e,t,n,o){let r;const s=n&&n[o];if(q(e)||_e(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,s&&s[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,s&&s[i])}else if(he(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,s&&s[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const u=i[l];r[l]=t(e[u],u,l,s&&s[l])}}else r=[];return n&&(n[o]=r),r}function ls(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 s=o.fn(...r);return s&&(s.key=o.key),s}:o.fn)}return e}function xe(e,t,n={},o,r){if(Te.isCE||Te.parent&&cn(Te.parent)&&Te.parent.isCE)return t!=="default"&&(n.name=t),K("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),A();const i=s&&as(s(n)),l=ke(Ce,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function as(e){return e.some(t=>qn(t)?!(t.type===Ze||t.type===Ce&&!as(t.children)):!0)?e:null}const Lo=e=>e?Is(e)?Xn(e)||e.proxy:Lo(e.parent):null,un=ve(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=>Lo(e.parent),$root:e=>Lo(e.root),$emit:e=>e.emit,$options:e=>Ao(e),$forceUpdate:e=>e.f||(e.f=()=>To(e.update)),$nextTick:e=>e.n||(e.n=Qe.bind(e.proxy)),$watch:e=>oa.bind(e)}),zo=(e,t)=>e!==re&&!e.__isScriptSetup&&le(e,t),_a={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(zo(o,t))return i[t]=1,o[t];if(r!==re&&le(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&le(u,t))return i[t]=3,s[t];if(n!==re&&le(n,t))return i[t]=4,n[t];jo&&(i[t]=0)}}const p=un[t];let d,g;if(p)return t==="$attrs"&&Me(e,"get",t),p(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==re&&le(n,t))return i[t]=4,n[t];if(g=a.config.globalProperties,le(g,t))return g[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return zo(r,t)?(r[t]=n,!0):o!==re&&le(o,t)?(o[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let l;return!!n[i]||e!==re&&le(e,i)||zo(t,i)||(l=s[0])&&le(l,i)||le(o,i)||le(un,i)||le(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function cs(e){return q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let jo=!0;function ba(e){const t=Ao(e),n=e.proxy,o=e.ctx;jo=!1,t.beforeCreate&&us(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:i,watch:l,provide:a,inject:u,created:p,beforeMount:d,mounted:g,beforeUpdate:x,updated:I,activated:_,deactivated:Y,beforeDestroy:D,beforeUnmount:X,destroyed:B,unmounted:k,render:L,renderTracked:S,renderTriggered:j,errorCaptured:m,serverPrefetch:v,expose:P,inheritAttrs:V,components:E,directives:R,filters:J}=t;if(u&&ya(u,o,null),i)for(const w in i){const O=i[w];te(O)&&(o[w]=O.bind(n))}if(r){const w=r.call(n,n);he(w)&&(e.data=rn(w))}if(jo=!0,s)for(const w in s){const O=s[w],ee=te(O)?O.bind(n,n):te(O.get)?O.get.bind(n,n):Xe,we=!te(O)&&te(O.set)?O.set.bind(n):Xe,Re=ae({get:ee,set:we});Object.defineProperty(o,w,{enumerable:!0,configurable:!0,get:()=>Re.value,set:ze=>Re.value=ze})}if(l)for(const w in l)fs(l[w],o,n,w);if(a){const w=te(a)?a.call(n):a;Reflect.ownKeys(w).forEach(O=>{Un(O,w[O])})}p&&us(p,e,"c");function ne(w,O){q(O)?O.forEach(ee=>w(ee.bind(n))):O&&w(O.bind(n))}if(ne(ca,d),ne(ot,g),ne(ua,x),ne(fa,I),ne(ia,_),ne(la,Y),ne(ga,m),ne(ha,S),ne(pa,j),ne(os,X),ne(Ne,k),ne(da,v),q(P))if(P.length){const w=e.exposed||(e.exposed={});P.forEach(O=>{Object.defineProperty(w,O,{get:()=>n[O],set:ee=>n[O]=ee})})}else e.exposed||(e.exposed={});L&&e.render===Xe&&(e.render=L),V!=null&&(e.inheritAttrs=V),E&&(e.components=E),R&&(e.directives=R)}function ya(e,t,n=Xe){q(e)&&(e=Bo(e));for(const o in e){const r=e[o];let s;he(r)?"default"in r?s=Lt(r.from||o,r.default,!0):s=Lt(r.from||o):s=Lt(r),be(s)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[o]=s}}function us(e,t,n){Ke(q(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function fs(e,t,n,o){const r=o.includes(".")?Jr(n,o):()=>n[o];if(_e(e)){const s=t[e];te(s)&&de(r,s)}else if(te(e))de(r,e.bind(n));else if(he(e))if(q(e))e.forEach(s=>fs(s,t,n,o));else{const s=te(e.handler)?e.handler.bind(n):t[e.handler];te(s)&&de(r,s,e)}}function Ao(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(u=>Hn(a,u,i,!0)),Hn(a,t,i)),he(t)&&s.set(t,a),a}function Hn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&Hn(e,s,n,!0),r&&r.forEach(i=>Hn(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const l=wa[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const wa={data:ds,props:ps,emits:ps,methods:fn,computed:fn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:fn,directives:fn,watch:Ca,provide:ds,inject:xa};function ds(e,t){return t?e?function(){return ve(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function xa(e,t){return fn(Bo(e),Bo(t))}function Bo(e){if(q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function fn(e,t){return e?ve(Object.create(null),e,t):t}function ps(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:ve(Object.create(null),cs(e),cs(t??{})):t}function Ca(e,t){if(!e)return t;if(!t)return e;const n=ve(Object.create(null),e);for(const o in t)n[o]=Ie(e[o],t[o]);return n}function hs(){return{app:null,config:{isNativeTag:Qi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ka=0;function Pa(e,t){return function(o,r=null){te(o)||(o=ve({},o)),r!=null&&!he(r)&&(r=null);const s=hs(),i=new Set;let l=!1;const a=s.app={_uid:ka++,_component:o,_props:r,_container:null,_context:s,_instance:null,version:Ya,get config(){return s.config},set config(u){},use(u,...p){return i.has(u)||(u&&te(u.install)?(i.add(u),u.install(a,...p)):te(u)&&(i.add(u),u(a,...p))),a},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),a},component(u,p){return p?(s.components[u]=p,a):s.components[u]},directive(u,p){return p?(s.directives[u]=p,a):s.directives[u]},mount(u,p,d){if(!l){const g=K(o,r);return g.appContext=s,p&&t?t(g,u):e(g,u,d),l=!0,a._container=u,u.__vue_app__=a,Xn(g.component)||g.component.proxy}},unmount(){l&&(e(null,a._container),delete a._container.__vue_app__)},provide(u,p){return s.provides[u]=p,a},runWithContext(u){Wn=a;try{return u()}finally{Wn=null}}};return a}}let Wn=null;function Un(e,t){if(Pe){let n=Pe.provides;const o=Pe.parent&&Pe.parent.provides;o===n&&(n=Pe.provides=Object.create(o)),n[e]=t}}function Lt(e,t,n=!1){const o=Pe||Te;if(o||Wn){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:Wn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&te(t)?t.call(o&&o.proxy):t}}function Sa(e,t,n,o=!1){const r={},s={};$n(s,Zn,1),e.propsDefaults=Object.create(null),gs(e,t,r,s);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:Dl(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function Ta(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:i}}=e,l=ce(r),[a]=e.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const p=e.vnode.dynamicProps;for(let d=0;d<p.length;d++){let g=p[d];if(Bn(e.emitsOptions,g))continue;const x=t[g];if(a)if(le(s,g))x!==s[g]&&(s[g]=x,u=!0);else{const I=Be(g);r[I]=Do(a,l,I,x,e,!1)}else x!==s[g]&&(s[g]=x,u=!0)}}}else{gs(e,t,r,s)&&(u=!0);let p;for(const d in l)(!t||!le(t,d)&&((p=We(d))===d||!le(t,p)))&&(a?n&&(n[d]!==void 0||n[p]!==void 0)&&(r[d]=Do(a,l,d,void 0,e,!0)):delete r[d]);if(s!==l)for(const d in s)(!t||!le(t,d))&&(delete s[d],u=!0)}u&&at(e,"set","$attrs")}function gs(e,t,n,o){const[r,s]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(kn(a))continue;const u=t[a];let p;r&&le(r,p=Be(a))?!s||!s.includes(p)?n[p]=u:(l||(l={}))[p]=u:Bn(e.emitsOptions,a)||(!(a in o)||u!==o[a])&&(o[a]=u,i=!0)}if(s){const a=ce(n),u=l||re;for(let p=0;p<s.length;p++){const d=s[p];n[d]=Do(r,a,d,u[d],e,!le(u,d))}}return i}function Do(e,t,n,o,r,s){const i=e[n];if(i!=null){const l=le(i,"default");if(l&&o===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&te(a)){const{propsDefaults:u}=r;n in u?o=u[n]:(Yt(r),o=u[n]=a.call(null,t),At())}else o=a}i[0]&&(s&&!l?o=!1:i[1]&&(o===""||o===We(n))&&(o=!0))}return o}function ms(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,i={},l=[];let a=!1;if(!te(e)){const p=d=>{a=!0;const[g,x]=ms(d,t,!0);ve(i,g),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!s&&!a)return he(e)&&o.set(e,He),He;if(q(s))for(let p=0;p<s.length;p++){const d=Be(s[p]);vs(d)&&(i[d]=re)}else if(s)for(const p in s){const d=Be(p);if(vs(d)){const g=s[p],x=i[d]=q(g)||te(g)?{type:g}:ve({},g);if(x){const I=ys(Boolean,x.type),_=ys(String,x.type);x[0]=I>-1,x[1]=_<0||I<_,(I>-1||le(x,"default"))&&l.push(d)}}}const u=[i,l];return he(e)&&o.set(e,u),u}function vs(e){return e[0]!=="$"}function _s(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function bs(e,t){return _s(e)===_s(t)}function ys(e,t){return q(t)?t.findIndex(n=>bs(n,e)):te(t)&&bs(t,e)?0:-1}const ws=e=>e[0]==="_"||e==="$stable",No=e=>q(e)?e.map(rt):[rt(e)],$a=(e,t,n)=>{if(t._n)return t;const o=se((...r)=>No(t(...r)),n);return o._c=!1,o},xs=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ws(r))continue;const s=e[r];if(te(s))t[r]=$a(r,s,o);else if(s!=null){const i=No(s);t[r]=()=>i}}},Cs=(e,t)=>{const n=No(t);e.slots.default=()=>n},Oa=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ce(t),$n(t,"_",n)):xs(t,e.slots={})}else e.slots={},t&&Cs(e,t);$n(e.slots,Zn,1)},Ia=(e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,i=re;if(o.shapeFlag&32){const l=t._;l?n&&l===1?s=!1:(ve(r,t),!n&&l===1&&delete r._):(s=!t.$stable,xs(t,r)),i=t}else t&&(Cs(e,t),i={default:1});if(s)for(const l in r)!ws(l)&&!(l in i)&&delete r[l]};function Fo(e,t,n,o,r=!1){if(q(e)){e.forEach((g,x)=>Fo(g,t&&(q(t)?t[x]:t),n,o,r));return}if(cn(o)&&!r)return;const s=o.shapeFlag&4?Xn(o.component)||o.component.proxy:o.el,i=r?null:s,{i:l,r:a}=e,u=t&&t.r,p=l.refs===re?l.refs={}:l.refs,d=l.setupState;if(u!=null&&u!==a&&(_e(u)?(p[u]=null,le(d,u)&&(d[u]=null)):be(u)&&(u.value=null)),te(a))bt(a,l,12,[i,p]);else{const g=_e(a),x=be(a);if(g||x){const I=()=>{if(e.f){const _=g?le(d,a)?d[a]:p[a]:a.value;r?q(_)&&so(_,s):q(_)?_.includes(s)||_.push(s):g?(p[a]=[s],le(d,a)&&(d[a]=p[a])):(a.value=[s],e.k&&(p[e.k]=a.value))}else g?(p[a]=i,le(d,a)&&(d[a]=i)):x&&(a.value=i,e.k&&(p[e.k]=i))};i?(I.id=-1,Le(I,n)):I()}}}const Le=ta;function Ea(e){return Ma(e)}function Ma(e,t){const n=fo();n.__VUE__=!0;const{insert:o,remove:r,patchProp:s,createElement:i,createText:l,createComment:a,setText:u,setElementText:p,parentNode:d,nextSibling:g,setScopeId:x=Xe,insertStaticContent:I}=e,_=(f,c,h,b=null,y=null,T=null,z=!1,$=null,M=!!c.dynamicChildren)=>{if(f===c)return;f&&!jt(f,c)&&(b=gt(f),ze(f,y,T,!0),f=null),c.patchFlag===-2&&(M=!1,c.dynamicChildren=null);const{type:C,ref:H,shapeFlag:N}=c;switch(C){case Kn:Y(f,c,h,b);break;case Ze:D(f,c,h,b);break;case Ro:f==null&&X(c,h,b,z);break;case Ce:E(f,c,h,b,y,T,z,$,M);break;default:N&1?L(f,c,h,b,y,T,z,$,M):N&6?R(f,c,h,b,y,T,z,$,M):(N&64||N&128)&&C.process(f,c,h,b,y,T,z,$,M,tt)}H!=null&&y&&Fo(H,f&&f.ref,T,c||f,!c)},Y=(f,c,h,b)=>{if(f==null)o(c.el=l(c.children),h,b);else{const y=c.el=f.el;c.children!==f.children&&u(y,c.children)}},D=(f,c,h,b)=>{f==null?o(c.el=a(c.children||""),h,b):c.el=f.el},X=(f,c,h,b)=>{[f.el,f.anchor]=I(f.children,c,h,b,f.el,f.anchor)},B=({el:f,anchor:c},h,b)=>{let y;for(;f&&f!==c;)y=g(f),o(f,h,b),f=y;o(c,h,b)},k=({el:f,anchor:c})=>{let h;for(;f&&f!==c;)h=g(f),r(f),f=h;r(c)},L=(f,c,h,b,y,T,z,$,M)=>{z=z||c.type==="svg",f==null?S(c,h,b,y,T,z,$,M):v(f,c,y,T,z,$,M)},S=(f,c,h,b,y,T,z,$)=>{let M,C;const{type:H,props:N,shapeFlag:W,transition:Q,dirs:oe}=f;if(M=f.el=i(f.type,T,N&&N.is,N),W&8?p(M,f.children):W&16&&m(f.children,M,null,b,y,T&&H!=="foreignObject",z,$),oe&&Mt(f,null,b,"created"),j(M,f,f.scopeId,z,b),N){for(const ue in N)ue!=="value"&&!kn(ue)&&s(M,ue,null,N[ue],T,f.children,b,y,je);"value"in N&&s(M,"value",null,N.value),(C=N.onVnodeBeforeMount)&&st(C,b,f)}oe&&Mt(f,null,b,"beforeMount");const fe=(!y||y&&!y.pendingBranch)&&Q&&!Q.persisted;fe&&Q.beforeEnter(M),o(M,c,h),((C=N&&N.onVnodeMounted)||fe||oe)&&Le(()=>{C&&st(C,b,f),fe&&Q.enter(M),oe&&Mt(f,null,b,"mounted")},y)},j=(f,c,h,b,y)=>{if(h&&x(f,h),b)for(let T=0;T<b.length;T++)x(f,b[T]);if(y){let T=y.subTree;if(c===T){const z=y.vnode;j(f,z,z.scopeId,z.slotScopeIds,y.parent)}}},m=(f,c,h,b,y,T,z,$,M=0)=>{for(let C=M;C<f.length;C++){const H=f[C]=$?xt(f[C]):rt(f[C]);_(null,H,c,h,b,y,T,z,$)}},v=(f,c,h,b,y,T,z)=>{const $=c.el=f.el;let{patchFlag:M,dynamicChildren:C,dirs:H}=c;M|=f.patchFlag&16;const N=f.props||re,W=c.props||re;let Q;h&&zt(h,!1),(Q=W.onVnodeBeforeUpdate)&&st(Q,h,c,f),H&&Mt(c,f,h,"beforeUpdate"),h&&zt(h,!0);const oe=y&&c.type!=="foreignObject";if(C?P(f.dynamicChildren,C,$,h,b,oe,T):z||O(f,c,$,null,h,b,oe,T,!1),M>0){if(M&16)V($,c,N,W,h,b,y);else if(M&2&&N.class!==W.class&&s($,"class",null,W.class,y),M&4&&s($,"style",N.style,W.style,y),M&8){const fe=c.dynamicProps;for(let ue=0;ue<fe.length;ue++){const me=fe[ue],Ve=N[me],$t=W[me];($t!==Ve||me==="value")&&s($,me,Ve,$t,y,f.children,h,b,je)}}M&1&&f.children!==c.children&&p($,c.children)}else!z&&C==null&&V($,c,N,W,h,b,y);((Q=W.onVnodeUpdated)||H)&&Le(()=>{Q&&st(Q,h,c,f),H&&Mt(c,f,h,"updated")},b)},P=(f,c,h,b,y,T,z)=>{for(let $=0;$<c.length;$++){const M=f[$],C=c[$],H=M.el&&(M.type===Ce||!jt(M,C)||M.shapeFlag&70)?d(M.el):h;_(M,C,H,null,b,y,T,z,!0)}},V=(f,c,h,b,y,T,z)=>{if(h!==b){if(h!==re)for(const $ in h)!kn($)&&!($ in b)&&s(f,$,h[$],null,z,c.children,y,T,je);for(const $ in b){if(kn($))continue;const M=b[$],C=h[$];M!==C&&$!=="value"&&s(f,$,C,M,z,c.children,y,T,je)}"value"in b&&s(f,"value",h.value,b.value)}},E=(f,c,h,b,y,T,z,$,M)=>{const C=c.el=f?f.el:l(""),H=c.anchor=f?f.anchor:l("");let{patchFlag:N,dynamicChildren:W,slotScopeIds:Q}=c;Q&&($=$?$.concat(Q):Q),f==null?(o(C,h,b),o(H,h,b),m(c.children,h,H,y,T,z,$,M)):N>0&&N&64&&W&&f.dynamicChildren?(P(f.dynamicChildren,W,h,y,T,z,$),(c.key!=null||y&&c===y.subTree)&&ks(f,c,!0)):O(f,c,h,H,y,T,z,$,M)},R=(f,c,h,b,y,T,z,$,M)=>{c.slotScopeIds=$,f==null?c.shapeFlag&512?y.ctx.activate(c,h,b,z,M):J(c,h,b,y,T,z,M):ie(f,c,M)},J=(f,c,h,b,y,T,z)=>{const $=f.component=Fa(f,b,y);if(Fn(f)&&($.ctx.renderer=tt),Ra($),$.asyncDep){if(y&&y.registerDep($,ne),!f.el){const M=$.subTree=K(Ze);D(null,M,c,h)}return}ne($,f,c,h,y,T,z)},ie=(f,c,h)=>{const b=c.component=f.component;if(Ql(f,c,h))if(b.asyncDep&&!b.asyncResolved){w(b,c,h);return}else b.next=c,Kl(b.update),b.update();else c.el=f.el,b.vnode=c},ne=(f,c,h,b,y,T,z)=>{const $=()=>{if(f.isMounted){let{next:H,bu:N,u:W,parent:Q,vnode:oe}=f,fe=H,ue;zt(f,!1),H?(H.el=oe.el,w(f,H,z)):H=oe,N&&Tn(N),(ue=H.props&&H.props.onVnodeBeforeUpdate)&&st(ue,Q,H,oe),zt(f,!0);const me=$o(f),Ve=f.subTree;f.subTree=me,_(Ve,me,d(Ve.el),gt(Ve),f,y,T),H.el=me.el,fe===null&&Gl(f,me.el),W&&Le(W,y),(ue=H.props&&H.props.onVnodeUpdated)&&Le(()=>st(ue,Q,H,oe),y)}else{let H;const{el:N,props:W}=c,{bm:Q,m:oe,parent:fe}=f,ue=cn(c);if(zt(f,!1),Q&&Tn(Q),!ue&&(H=W&&W.onVnodeBeforeMount)&&st(H,fe,c),zt(f,!0),N&&wn){const me=()=>{f.subTree=$o(f),wn(N,f.subTree,f,y,null)};ue?c.type.__asyncLoader().then(()=>!f.isUnmounted&&me()):me()}else{const me=f.subTree=$o(f);_(null,me,h,b,f,y,T),c.el=me.el}if(oe&&Le(oe,y),!ue&&(H=W&&W.onVnodeMounted)){const me=c;Le(()=>st(H,fe,me),y)}(c.shapeFlag&256||fe&&cn(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&Le(f.a,y),f.isMounted=!0,c=h=b=null}},M=f.effect=new vo($,()=>To(C),f.scope),C=f.update=()=>M.run();C.id=f.uid,zt(f,!0),C()},w=(f,c,h)=>{c.component=f;const b=f.vnode.props;f.vnode=c,f.next=null,Ta(f,c.props,b,h),Ia(f,c.children,h),Ht(),Ur(),Wt()},O=(f,c,h,b,y,T,z,$,M=!1)=>{const C=f&&f.children,H=f?f.shapeFlag:0,N=c.children,{patchFlag:W,shapeFlag:Q}=c;if(W>0){if(W&128){we(C,N,h,b,y,T,z,$,M);return}else if(W&256){ee(C,N,h,b,y,T,z,$,M);return}}Q&8?(H&16&&je(C,y,T),N!==C&&p(h,N)):H&16?Q&16?we(C,N,h,b,y,T,z,$,M):je(C,y,T,!0):(H&8&&p(h,""),Q&16&&m(N,h,b,y,T,z,$,M))},ee=(f,c,h,b,y,T,z,$,M)=>{f=f||He,c=c||He;const C=f.length,H=c.length,N=Math.min(C,H);let W;for(W=0;W<N;W++){const Q=c[W]=M?xt(c[W]):rt(c[W]);_(f[W],Q,h,null,y,T,z,$,M)}C>H?je(f,y,T,!0,!1,N):m(c,h,b,y,T,z,$,M,N)},we=(f,c,h,b,y,T,z,$,M)=>{let C=0;const H=c.length;let N=f.length-1,W=H-1;for(;C<=N&&C<=W;){const Q=f[C],oe=c[C]=M?xt(c[C]):rt(c[C]);if(jt(Q,oe))_(Q,oe,h,null,y,T,z,$,M);else break;C++}for(;C<=N&&C<=W;){const Q=f[N],oe=c[W]=M?xt(c[W]):rt(c[W]);if(jt(Q,oe))_(Q,oe,h,null,y,T,z,$,M);else break;N--,W--}if(C>N){if(C<=W){const Q=W+1,oe=Q<H?c[Q].el:b;for(;C<=W;)_(null,c[C]=M?xt(c[C]):rt(c[C]),h,oe,y,T,z,$,M),C++}}else if(C>W)for(;C<=N;)ze(f[C],y,T,!0),C++;else{const Q=C,oe=C,fe=new Map;for(C=oe;C<=W;C++){const Ee=c[C]=M?xt(c[C]):rt(c[C]);Ee.key!=null&&fe.set(Ee.key,C)}let ue,me=0;const Ve=W-oe+1;let $t=!1,no=0;const Rt=new Array(Ve);for(C=0;C<Ve;C++)Rt[C]=0;for(C=Q;C<=N;C++){const Ee=f[C];if(me>=Ve){ze(Ee,y,T,!0);continue}let pe;if(Ee.key!=null)pe=fe.get(Ee.key);else for(ue=oe;ue<=W;ue++)if(Rt[ue-oe]===0&&jt(Ee,c[ue])){pe=ue;break}pe===void 0?ze(Ee,y,T,!0):(Rt[pe-oe]=C+1,pe>=no?no=pe:$t=!0,_(Ee,c[pe],h,null,y,T,z,$,M),me++)}const oo=$t?La(Rt):He;for(ue=oo.length-1,C=Ve-1;C>=0;C--){const Ee=oe+C,pe=c[Ee],Xi=Ee+1<H?c[Ee+1].el:b;Rt[C]===0?_(null,pe,h,Xi,y,T,z,$,M):$t&&(ue<0||C!==oo[ue]?Re(pe,h,Xi,2):ue--)}}},Re=(f,c,h,b,y=null)=>{const{el:T,type:z,transition:$,children:M,shapeFlag:C}=f;if(C&6){Re(f.component.subTree,c,h,b);return}if(C&128){f.suspense.move(c,h,b);return}if(C&64){z.move(f,c,h,tt);return}if(z===Ce){o(T,c,h);for(let N=0;N<M.length;N++)Re(M[N],c,h,b);o(f.anchor,c,h);return}if(z===Ro){B(f,c,h);return}if(b!==2&&C&1&&$)if(b===0)$.beforeEnter(T),o(T,c,h),Le(()=>$.enter(T),y);else{const{leave:N,delayLeave:W,afterLeave:Q}=$,oe=()=>o(T,c,h),fe=()=>{N(T,()=>{oe(),Q&&Q()})};W?W(T,oe,fe):fe()}else o(T,c,h)},ze=(f,c,h,b=!1,y=!1)=>{const{type:T,props:z,ref:$,children:M,dynamicChildren:C,shapeFlag:H,patchFlag:N,dirs:W}=f;if($!=null&&Fo($,null,h,f,!0),H&256){c.ctx.deactivate(f);return}const Q=H&1&&W,oe=!cn(f);let fe;if(oe&&(fe=z&&z.onVnodeBeforeUnmount)&&st(fe,c,f),H&6)ht(f.component,h,b);else{if(H&128){f.suspense.unmount(h,b);return}Q&&Mt(f,null,c,"beforeUnmount"),H&64?f.type.remove(f,c,h,y,tt,b):C&&(T!==Ce||N>0&&N&64)?je(C,c,h,!1,!0):(T===Ce&&N&384||!y&&H&16)&&je(M,c,h),b&&en(f)}(oe&&(fe=z&&z.onVnodeUnmounted)||Q)&&Le(()=>{fe&&st(fe,c,f),Q&&Mt(f,null,c,"unmounted")},h)},en=f=>{const{type:c,el:h,anchor:b,transition:y}=f;if(c===Ce){Tt(h,b);return}if(c===Ro){k(f);return}const T=()=>{r(h),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:z,delayLeave:$}=y,M=()=>z(h,T);$?$(f.el,T,M):M()}else T()},Tt=(f,c)=>{let h;for(;f!==c;)h=g(f),r(f),f=h;r(c)},ht=(f,c,h)=>{const{bum:b,scope:y,update:T,subTree:z,um:$}=f;b&&Tn(b),y.stop(),T&&(T.active=!1,ze(z,f,c,h)),$&&Le($,c),Le(()=>{f.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},je=(f,c,h,b=!1,y=!1,T=0)=>{for(let z=T;z<f.length;z++)ze(f[z],c,h,b,y)},gt=f=>f.shapeFlag&6?gt(f.component.subTree):f.shapeFlag&128?f.suspense.next():g(f.anchor||f.el),et=(f,c,h)=>{f==null?c._vnode&&ze(c._vnode,null,null,!0):_(c._vnode||null,f,c,null,null,null,h),Ur(),Kr(),c._vnode=f},tt={p:_,um:ze,m:Re,r:en,mt:J,mc:m,pc:O,pbc:P,n:gt,o:e};let tn,wn;return t&&([tn,wn]=t(tt)),{render:et,hydrate:tn,createApp:Pa(et,tn)}}function zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ks(e,t,n=!1){const o=e.children,r=t.children;if(q(o)&&q(r))for(let s=0;s<o.length;s++){const i=o[s];let l=r[s];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[s]=xt(r[s]),l.el=i.el),n||ks(i,l)),l.type===Kn&&(l.el=i.el)}}function La(e){const t=e.slice(),n=[0];let o,r,s,i,l;const a=e.length;for(o=0;o<a;o++){const u=e[o];if(u!==0){if(r=n[n.length-1],e[r]<u){t[o]=r,n.push(o);continue}for(s=0,i=n.length-1;s<i;)l=s+i>>1,e[n[l]]<u?s=l+1:i=l;u<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const za=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),Ze=Symbol.for("v-cmt"),Ro=Symbol.for("v-stc"),dn=[];let Ge=null;function A(e=!1){dn.push(Ge=e?null:[])}function ja(){dn.pop(),Ge=dn[dn.length-1]||null}let pn=1;function Ps(e){pn+=e}function Ss(e){return e.dynamicChildren=pn>0?Ge||He:null,ja(),pn>0&&Ge&&Ge.push(e),e}function Z(e,t,n,o,r,s){return Ss(U(e,t,n,o,r,s,!0))}function ke(e,t,n,o,r){return Ss(K(e,t,n,o,r,!0))}function qn(e){return e?e.__v_isVNode===!0:!1}function jt(e,t){return e.type===t.type&&e.key===t.key}const Zn="__vInternal",Ts=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||be(e)||te(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function U(e,t=null,n=null,o=0,r=null,s=e===Ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ts(t),ref:t&&Yn(t),scopeId:Yr,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:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return l?(Vo(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=_e(n)?8:16),pn>0&&!i&&Ge&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ge.push(a),a}const K=Aa;function Aa(e,t=null,n=null,o=0,r=null,s=!1){if((!e||e===ss)&&(e=Ze),qn(e)){const l=yt(e,t,!0);return n&&Vo(l,n),pn>0&&!s&&Ge&&(l.shapeFlag&6?Ge[Ge.indexOf(e)]=l:Ge.push(l)),l.patchFlag|=-2,l}if(Ka(e)&&(e=e.__vccOpts),t){t=Ba(t);let{class:l,style:a}=t;l&&!_e(l)&&(t.class=ye(l)),he(a)&&(Br(a)&&!q(a)&&(a=ve({},a)),t.style=Ue(a))}const i=_e(e)?1:ea(e)?128:za(e)?64:he(e)?4:te(e)?2:0;return U(e,t,n,o,r,i,s,!0)}function Ba(e){return e?Br(e)||Zn in e?ve({},e):e:null}function yt(e,t,n=!1){const{props:o,ref:r,patchFlag:s,children:i}=e,l=t?Ho(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Ts(l),ref:t&&t.ref?n&&r?q(r)?r.concat(Yn(t)):[r,Yn(t)]:Yn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&yt(e.ssContent),ssFallback:e.ssFallback&&yt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wt(e=" ",t=0){return K(Kn,null,e,t)}function Fe(e="",t=!1){return t?(A(),ke(Ze,null,e)):K(Ze,null,e)}function rt(e){return e==null||typeof e=="boolean"?K(Ze):q(e)?K(Ce,null,e.slice()):typeof e=="object"?xt(e):K(Kn,null,String(e))}function xt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yt(e)}function Vo(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),Vo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Zn in t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),o&64?(n=16,t=[wt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ho(...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=ye([t.class,o.class]));else if(r==="style")t.style=Ue([t.style,o.style]);else if(xn(r)){const s=t[r],i=o[r];i&&s!==i&&!(q(s)&&s.includes(i))&&(t[r]=s?[].concat(s,i):i)}else r!==""&&(t[r]=o[r])}return t}function st(e,t,n,o=null){Ke(e,t,7,[n,o])}const Da=hs();let Na=0;function Fa(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Da,s={uid:Na++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new cl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ms(o,r),emitsOptions:Zr(o,r),emit:null,emitted:null,propsDefaults:re,inheritAttrs:o.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Yl.bind(null,s),e.ce&&e.ce(s),s}let Pe=null;const $s=()=>Pe||Te;let Wo,Zt,Os="__VUE_INSTANCE_SETTERS__";(Zt=fo()[Os])||(Zt=fo()[Os]=[]),Zt.push(e=>Pe=e),Wo=e=>{Zt.length>1?Zt.forEach(t=>t(e)):Zt[0](e)};const Yt=e=>{Wo(e),e.scope.on()},At=()=>{Pe&&Pe.scope.off(),Wo(null)};function Is(e){return e.vnode.shapeFlag&4}let hn=!1;function Ra(e,t=!1){hn=t;const{props:n,children:o}=e.vnode,r=Is(e);Sa(e,n,r,t),Oa(e,o);const s=r?Va(e,t):void 0;return hn=!1,s}function Va(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Dr(new Proxy(e.ctx,_a));const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?Wa(e):null;Yt(e),Ht();const s=bt(o,e,0,[e.props,r]);if(Wt(),At(),pr(s)){if(s.then(At,At),t)return s.then(i=>{Es(e,i,t)}).catch(i=>{An(i,e,0)});e.asyncDep=s}else Es(e,s,t)}else Ls(e,t)}function Es(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Vr(t)),Ls(e,n)}let Ms;function Ls(e,t,n){const o=e.type;if(!e.render){if(!t&&Ms&&!o.render){const r=o.template||Ao(e).template;if(r){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,u=ve(ve({isCustomElement:s,delimiters:l},i),a);o.render=Ms(r,u)}}e.render=o.render||Xe}Yt(e),Ht(),ba(e),Wt(),At()}function Ha(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Me(e,"get","$attrs"),t[n]}}))}function Wa(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ha(e)},slots:e.slots,emit:e.emit,expose:t}}function Xn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vr(Dr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)},has(t,n){return n in t||n in un}}))}function Ua(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Ka(e){return te(e)&&"__vccOpts"in e}const ae=(e,t)=>Hl(e,t,hn);function zs(e,t,n){const o=arguments.length;return o===2?he(t)&&!q(t)?qn(t)?K(e,null,[t]):K(e,t):K(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qn(n)&&(n=[n]),K(e,t,n))}const qa=Symbol.for("v-scx"),Za=()=>Lt(qa),Ya="3.3.4",Xa="http://www.w3.org/2000/svg",Bt=typeof document<"u"?document:null,js=Bt&&Bt.createElement("template"),Ja={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?Bt.createElementNS(Xa,e):Bt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Bt.createTextNode(e),createComment:e=>Bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,s){const i=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{js.innerHTML=o?`<svg>${e}</svg>`:e;const l=js.content;if(o){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Qa(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ga(e,t,n){const o=e.style,r=_e(n);if(n&&!r){if(t&&!_e(t))for(const s in t)n[s]==null&&Uo(o,s,"");for(const s in n)Uo(o,s,n[s])}else{const s=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=s)}}const As=/\s*!important$/;function Uo(e,t,n){if(q(n))n.forEach(o=>Uo(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=ec(e,t);As.test(n)?e.setProperty(We(o),n.replace(As,""),"important"):e[o]=n}}const Bs=["Webkit","Moz","ms"],Ko={};function ec(e,t){const n=Ko[t];if(n)return n;let o=Be(t);if(o!=="filter"&&o in e)return Ko[t]=o;o=Sn(o);for(let r=0;r<Bs.length;r++){const s=Bs[r]+o;if(s in e)return Ko[t]=s}return t}const Ds="http://www.w3.org/1999/xlink";function tc(e,t,n,o,r){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ds,t.slice(6,t.length)):e.setAttributeNS(Ds,t,n);else{const s=al(t);n==null||s&&!vr(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function nc(e,t,n,o,r,s,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,r,s),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const u=l==="OPTION"?e.getAttribute("value"):e.value,p=n??"";u!==p&&(e.value=p),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=vr(n):n==null&&u==="string"?(n="",a=!0):u==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Xt(e,t,n,o){e.addEventListener(t,n,o)}function oc(e,t,n,o){e.removeEventListener(t,n,o)}function rc(e,t,n,o,r=null){const s=e._vei||(e._vei={}),i=s[t];if(o&&i)i.value=o;else{const[l,a]=sc(t);if(o){const u=s[t]=ac(o,r);Xt(e,l,u,a)}else i&&(oc(e,l,i,a),s[t]=void 0)}}const Ns=/(?:Once|Passive|Capture)$/;function sc(e){let t;if(Ns.test(e)){t={};let o;for(;o=e.match(Ns);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):We(e.slice(2)),t]}let qo=0;const ic=Promise.resolve(),lc=()=>qo||(ic.then(()=>qo=0),qo=Date.now());function ac(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Ke(cc(o,n.value),t,5,[o])};return n.value=e,n.attached=lc(),n}function cc(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 Fs=/^on[a-z]/,uc=(e,t,n,o,r=!1,s,i,l,a)=>{t==="class"?Qa(e,o,r):t==="style"?Ga(e,n,o):xn(t)?ro(t)||rc(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fc(e,t,o,r))?nc(e,t,o,s,i,l,a):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),tc(e,t,o,r))};function fc(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Fs.test(t)&&te(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Fs.test(t)&&_e(n)?!1:t in e}function dc(e,t){const n=$e(e);class o extends Zo{constructor(s){super(n,s,t)}}return o.def=n,o}const pc=typeof HTMLElement<"u"?HTMLElement:class{};class Zo extends pc{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,Qe(()=>{this._connected||(Qs(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:s,styles:i}=o;let l;if(s&&!q(s))for(const a in s){const u=s[a];(u===Number||u&&u.type===Number)&&(a in this._props&&(this._props[a]=uo(this._props[a])),(l||(l=Object.create(null)))[Be(a)]=!0)}this._numberProps=l,r&&this._resolveProps(o),this._applyStyles(i),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(Be))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(s){this._setProp(r,s)}})}_setAttr(t){let n=this.getAttribute(t);const o=Be(t);this._numberProps&&this._numberProps[o]&&(n=uo(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(We(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(We(t),n+""):n||this.removeAttribute(We(t))))}_update(){Qs(this._createVNode(),this.shadowRoot)}_createVNode(){const t=K(this._def,ve({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const o=(s,i)=>{this.dispatchEvent(new CustomEvent(s,{detail:i}))};n.emit=(s,...i)=>{o(s,i),We(s)!==s&&o(We(s),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Zo){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 Ct="transition",gn="animation",Jt=(e,{slots:t})=>zs(sa,hc(e),t);Jt.displayName="Transition";const Rs={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};Jt.props=ve({},Qr,Rs);const Dt=(e,t=[])=>{q(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vs=e=>e?q(e)?e.some(t=>t.length>1):e.length>1:!1;function hc(e){const t={};for(const E in e)E in Rs||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=s,appearActiveClass:u=i,appearToClass:p=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,I=gc(r),_=I&&I[0],Y=I&&I[1],{onBeforeEnter:D,onEnter:X,onEnterCancelled:B,onLeave:k,onLeaveCancelled:L,onBeforeAppear:S=D,onAppear:j=X,onAppearCancelled:m=B}=t,v=(E,R,J)=>{Nt(E,R?p:l),Nt(E,R?u:i),J&&J()},P=(E,R)=>{E._isLeaving=!1,Nt(E,d),Nt(E,x),Nt(E,g),R&&R()},V=E=>(R,J)=>{const ie=E?j:X,ne=()=>v(R,E,J);Dt(ie,[R,ne]),Hs(()=>{Nt(R,E?a:s),kt(R,E?p:l),Vs(ie)||Ws(R,o,_,ne)})};return ve(t,{onBeforeEnter(E){Dt(D,[E]),kt(E,s),kt(E,i)},onBeforeAppear(E){Dt(S,[E]),kt(E,a),kt(E,u)},onEnter:V(!1),onAppear:V(!0),onLeave(E,R){E._isLeaving=!0;const J=()=>P(E,R);kt(E,d),_c(),kt(E,g),Hs(()=>{E._isLeaving&&(Nt(E,d),kt(E,x),Vs(k)||Ws(E,o,Y,J))}),Dt(k,[E,J])},onEnterCancelled(E){v(E,!1),Dt(B,[E])},onAppearCancelled(E){v(E,!0),Dt(m,[E])},onLeaveCancelled(E){P(E),Dt(L,[E])}})}function gc(e){if(e==null)return null;if(he(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}function Yo(e){return uo(e)}function kt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Nt(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 Hs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mc=0;function Ws(e,t,n,o){const r=e._endId=++mc,s=()=>{r===e._endId&&o()};if(n)return setTimeout(s,n);const{type:i,timeout:l,propCount:a}=vc(e,t);if(!i)return o();const u=i+"end";let p=0;const d=()=>{e.removeEventListener(u,g),s()},g=x=>{x.target===e&&++p>=a&&d()};setTimeout(()=>{p<a&&d()},l+1),e.addEventListener(u,g)}function vc(e,t){const n=window.getComputedStyle(e),o=I=>(n[I]||"").split(", "),r=o(`${Ct}Delay`),s=o(`${Ct}Duration`),i=Us(r,s),l=o(`${gn}Delay`),a=o(`${gn}Duration`),u=Us(l,a);let p=null,d=0,g=0;t===Ct?i>0&&(p=Ct,d=i,g=s.length):t===gn?u>0&&(p=gn,d=u,g=a.length):(d=Math.max(i,u),p=d>0?i>u?Ct:gn:null,g=p?p===Ct?s.length:a.length:0);const x=p===Ct&&/\b(transform|all)(,|$)/.test(o(`${Ct}Property`).toString());return{type:p,timeout:d,propCount:g,hasTransform:x}}function Us(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ks(n)+Ks(e[o])))}function Ks(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function _c(){return document.body.offsetHeight}const qs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>Tn(t,n):t};function bc(e){e.target.composing=!0}function Zs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yc={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=qs(r);const s=o||r.props&&r.props.type==="number";Xt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),s&&(l=co(l)),e._assign(l)}),n&&Xt(e,"change",()=>{e.value=e.value.trim()}),t||(Xt(e,"compositionstart",bc),Xt(e,"compositionend",Zs),Xt(e,"change",Zs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},s){if(e._assign=qs(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(r||e.type==="number")&&co(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},wc=["ctrl","shift","alt","meta"],xc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>wc.some(n=>e[`${n}Key`]&&!t.includes(n))},Pt=(e,t)=>(n,...o)=>{for(let r=0;r<t.length;r++){const s=xc[t[r]];if(s&&s(n,t))return}return e(n,...o)},Cc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ys=(e,t)=>n=>{if(!("key"in n))return;const o=We(n.key);if(t.some(r=>r===o||Cc[r]===o))return e(n)},Xs={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mn(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),mn(e,!0),o.enter(e)):o.leave(e,()=>{mn(e,!1)}):mn(e,t))},beforeUnmount(e,{value:t}){mn(e,t)}};function mn(e,t){e.style.display=t?e._vod:"none"}const kc=ve({patchProp:uc},Ja);let Js;function Pc(){return Js||(Js=Ea(kc))}const Qs=(...e)=>{Pc().render(...e)},Sc={class:"flex gap-3 items-center children-pointer-events-auto relative z-30"},Tc={class:"flex justify-between items-end"},$c={class:"inline-block children-pointer-events-auto w-1/3"},Oc={class:"inline-flex justify-center children-pointer-events-auto w-1/3"},Ic={class:"inline-flex flex-col items-end gap-4 children-pointer-events-auto w-1/3"},Ec={class:"inline-block z-20 relative"},Gs=$e({__name:"ReaderLayout",props:{idle:{type:Boolean},fullScreen:{type:Boolean},rtl:{type:Boolean},spaceTop:{},spaceBottom:{},touchDevice:{type:Boolean}},setup(e){return(t,n)=>(A(),Z("div",{class:ye(["fixed inset-0 bg-black visible z-[9999999999] text-stone-100 font-sans text-base",{"cursor-none":t.idle}])},[xe(t.$slots,"default"),U("div",{class:ye(["fixed pointer-events-none cursor-auto transition-opacity duration-100 ease-linear inset-2 sm:inset-3 flex flex-col justify-between pb-4 sm:pb-2 md:pb-0",{"opacity-100 z-10":!t.fullScreen,"opacity-0 -z-10":t.fullScreen}]),style:Ue({paddingTop:`${t.spaceTop||0}px`,paddingBottom:t.spaceBottom?`${t.spaceBottom}px`:""})},[U("div",Sc,[xe(t.$slots,"back"),t.touchDevice?Fe("",!0):xe(t.$slots,"exit",{key:0}),xe(t.$slots,"chapter-nav")]),U("div",Tc,[U("div",$c,[xe(t.$slots,"page-nav")]),U("div",Oc,[xe(t.$slots,"reset-zoom")]),U("div",Ic,[xe(t.$slots,"entry"),U("div",Ec,[xe(t.$slots,"settings")]),xe(t.$slots,"full-screen"),xe(t.$slots,"play")])]),U("div",{class:ye(["fixed pointer-events-none left-0 right-0 bottom-0",{"flex justify-end":t.rtl}])},[xe(t.$slots,"progress")],2)],6)],2))}}),Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),ge=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Lc={},zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},jc=[U("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[U("circle",{cx:"14",cy:"14",r:"12"}),U("path",{d:"m23 23l7 7M9 12V9h3m4 0h3v3M9 16v3h3m7-3v3h-3"})],-1)];function Ac(e,t){return A(),Z("svg",zc,jc)}const ei=ge(Lc,[["render",Ac]]),Bc=Object.freeze(Object.defineProperty({__proto__:null,default:ei},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"},Nc={class:"block w-4 h-4"},Fc={class:"w-12"},ti=$e({__name:"ButtonResetZoom",props:{zoom:{}},setup(e){return(t,n)=>{const o=ei;return t.zoom!==1?(A(),Z("button",Dc,[U("div",Nc,[K(o)]),U("div",Fc,lt(Math.ceil(t.zoom*100))+"%",1)])):Fe("",!0)}}}),Rc=Object.freeze(Object.defineProperty({__proto__:null,default:ti},Symbol.toStringTag,{value:"Module"})),Vc={},Hc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wc=[U("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(),Z("svg",Hc,Wc)}const Xo=ge(Vc,[["render",Uc]]),Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"})),qc={},Zc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Yc=[U("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),U("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 Xc(e,t){return A(),Z("svg",Zc,Yc)}const Jo=ge(qc,[["render",Xc]]),Jc=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"}));function Qc({touchDevice:e}){const t=G(!1);let n=0;return Un("busy:touchDevice",e),Un("setBusyState",o=>{n+=o?1:-1;const r=n>0;t.value!=r&&(t.value=r)}),t}function Qo(){const e=Lt("busy:touchDevice"),t=Lt("setBusyState");let n=!1;return Ne(()=>{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,s=.65;const i=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 u=+n||50;r<=u?(r++,s-=.65/u,o.style.transform=`scale(${r})`,o.style.opacity=`${s}`):(o.remove(),clearInterval(i))}},Qt={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"},Jn=$e({__name:"ButtonIcon",props:{disabled:{type:Boolean},href:{},transparent:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,o=Qo();let r=!1;function s(){r||(r=!0,o(!0,{desktopOnly:!0}))}function i(){r&&(r=!1,o(!1,{desktopOnly:!0}))}function l(a){n.disabled?a.preventDefault():t("click")}return(a,u)=>ut((A(),ke(ma(a.href?"a":"button"),Ho(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:Pt(l,["stop"]),onMouseenter:s,onMouseleave:i}),{default:se(()=>[U("div",eu,[xe(a.$slots,"default")])]),_:3},16,["class","onClick"])),[[F(Qt),a.disabled?0:15]])}}),tu=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),nu={},ou={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ru=[U("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 su(e,t){return A(),Z("svg",ou,ru)}const ni=ge(nu,[["render",su]]),iu=Object.freeze(Object.defineProperty({__proto__:null,default:ni},Symbol.toStringTag,{value:"Module"}));class lu{constructor(){Ji(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 Ne(()=>e.dispose()),Un("keyController",e),e}function Go(e){const t=Lt("keyController");ot(()=>t.addListener(e)),Ne(()=>t.removeListener(e))}const cu={class:"relative flex w-full flex-shrink-0 justify-center items-center h-16"},uu={class:"inline-flex items-center h-full absolute left-3 top-0"},fu=U("span",{class:"text-xl font-medium"},"Customize",-1),du={class:"overflow-auto px-6 md:px-8 lg:px-10 xl:px-12 pt-3 pb-12 flex-grow scrollbar-sm"},oi=$e({__name:"BottomSheet",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;Go({onKeyDown:r});const o=Qo();de(()=>n.modelValue,s=>o(s));function r(s){n.modelValue&&s.key==="Escape"&&(t("update:modelValue",!1),s.preventDefault())}return(s,i)=>{const l=ni,a=Jn;return A(),Z("div",{class:ye(["fixed inset-0 flex flex-col items-center justify-end select-none",{"!pointer-events-none":!n.modelValue}]),onClick:i[2]||(i[2]=()=>t("update:modelValue",!1))},[K(Jt,{name:"slide","enter-from-class":"opacity-0 translate-y-full","leave-to-class":"opacity-0 translate-y-full"},{default:se(()=>[n.modelValue?(A(),Z("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:i[1]||(i[1]=Pt(()=>{},["stop"]))},[U("div",cu,[U("div",uu,[K(a,{transparent:"",onClick:i[0]||(i[0]=()=>t("update:modelValue",!1))},{default:se(()=>[K(l)]),_:1})]),fu]),U("div",du,[xe(s.$slots,"default")])])):Fe("",!0)]),_:3})],2)}}}),pu=Object.freeze(Object.defineProperty({__proto__:null,default:oi},Symbol.toStringTag,{value:"Module"})),hu=["min","max","step"],gu={class:"flex-shrink-0"},ri=ge($e({__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,s)=>(A(),Z("div",{class:ye(["flex items-center gap-3 pl-1 py-1",{"pointer-events-none opacity-50":r.disabled}]),style:Ue({"--percentage":`${(o.value-r.min)/(r.max-r.min)*100}%`})},[ut(U("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>o.value=i),type:"range",min:r.min,max:r.max,step:r.step??1,class:"flex-grow"},null,8,hu),[[yc,o.value]]),U("p",gu,[xe(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}
|
|
2
|
+
`]]]),mu=Object.freeze(Object.defineProperty({__proto__:null,default:ri},Symbol.toStringTag,{value:"Module"})),vu={class:"flex items-center mb-8 last:mb-0"},_u={class:"flex-grow overflow-hidden"},si=$e({__name:"TableField",props:{label:{},disabled:{type:Boolean}},setup(e){return(t,n)=>(A(),Z("div",vu,[U("div",{class:ye(["flex-shrink-0 w-[4.5rem]",{"opacity-50":t.disabled}])},lt(t.label),3),U("div",_u,[xe(t.$slots,"default")])]))}}),bu=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),yu=["onClick","onKeyup"],ii=$e({__name:"InputSelect",props:{modelValue:{},items:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=G(null),r=G({width:"",left:""});ot(()=>{let i=!1;de(()=>n.modelValue,l=>{var u;const a=(u=o.value)==null?void 0:u.children[l+1];a&&(r.value={width:a.offsetWidth+"px",left:a.offsetLeft+"px"},a.scrollIntoView({behavior:i?"smooth":"auto",block:"center",inline:"center"}),i=!0)},{immediate:!0})});function s(i){t("update:modelValue",i)}return(i,l)=>(A(),Z("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:{}},[U("div",{class:"bg-stone-400 h-6 rounded-2xl absolute top-1 pointer-events-none duration-200",style:Ue(r.value)},null,4),(A(!0),Z(Ce,null,Vn(n.items,(a,u)=>ut((A(),Z("div",{key:u,tabindex:"0",class:ye(["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":u==n.modelValue,"text-stone-400":u!=n.modelValue}]),onClick:()=>s(u),onKeyup:[Ys(()=>s(u),["enter"]),Ys(()=>s(u),["space"])]},[wt(lt(a),1)],42,yu)),[[F(Qt),30]])),128))],512))}}),wu=Object.freeze(Object.defineProperty({__proto__:null,default:ii},Symbol.toStringTag,{value:"Module"})),xu={},Cu={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 36 36"},ku=[U("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),U("path",{fill:"none",d:"M0 0h36v36H0z"},null,-1)];function Pu(e,t){return A(),Z("svg",Cu,ku)}const li=ge(xu,[["render",Pu]]),Su=Object.freeze(Object.defineProperty({__proto__:null,default:li},Symbol.toStringTag,{value:"Module"}));var ai;const er=typeof window<"u",Tu=e=>typeof e=="function",$u=e=>typeof e=="string",Gt=()=>{};er&&((ai=window==null?void 0:window.navigator)!=null&&ai.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Qn(e){return typeof e=="function"?e():F(e)}function ci(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const ui=e=>e();function Ou(e,t={}){let n,o,r=Gt;const s=l=>{clearTimeout(l),r(),r=Gt};return l=>{const a=Qn(e),u=Qn(t.maxWait);return n&&s(n),a<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((p,d)=>{r=t.rejectOnCancel?d:p,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,p(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,p(l())},a)})}}function Iu(e=ui){const t=G(!0);function n(){t.value=!1}function o(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:xo(t),pause:n,resume:o,eventFilter:r}}function Eu(e){return e}function tr(e){return br()?(fl(e),!0):!1}function dt(e,t=200,n={}){return ci(Ou(t,n),e)}function fi(e,t=!0){$s()?ot(e):t?e():Qe(e)}var di=Object.getOwnPropertySymbols,Mu=Object.prototype.hasOwnProperty,Lu=Object.prototype.propertyIsEnumerable,zu=(e,t)=>{var n={};for(var o in e)Mu.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&di)for(var o of di(e))t.indexOf(o)<0&&Lu.call(e,o)&&(n[o]=e[o]);return n};function ju(e,t,n={}){const o=n,{eventFilter:r=ui}=o,s=zu(o,["eventFilter"]);return de(e,ci(r,t),s)}var Au=Object.defineProperty,Bu=Object.defineProperties,Du=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,gi=(e,t,n)=>t in e?Au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nu=(e,t)=>{for(var n in t||(t={}))pi.call(t,n)&&gi(e,n,t[n]);if(Gn)for(var n of Gn(t))hi.call(t,n)&&gi(e,n,t[n]);return e},Fu=(e,t)=>Bu(e,Du(t)),Ru=(e,t)=>{var n={};for(var o in e)pi.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Gn)for(var o of Gn(e))t.indexOf(o)<0&&hi.call(e,o)&&(n[o]=e[o]);return n};function Vu(e,t,n={}){const o=n,{eventFilter:r}=o,s=Ru(o,["eventFilter"]),{eventFilter:i,pause:l,resume:a,isActive:u}=Iu(r);return{stop:ju(e,t,Fu(Nu({},s),{eventFilter:i})),pause:l,resume:a,isActive:u}}function Ft(e){var t;const n=Qn(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pt=er?window:void 0,Hu=er?window.document:void 0;function St(...e){let t,n,o,r;if($u(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=pt):[t,n,o,r]=e,!t)return Gt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(p=>p()),s.length=0},l=(p,d,g)=>(p.addEventListener(d,g,r),()=>p.removeEventListener(d,g,r)),a=de(()=>Ft(t),p=>{i(),p&&s.push(...n.flatMap(d=>o.map(g=>l(p,d,g))))},{immediate:!0,flush:"post"}),u=()=>{a(),i()};return tr(u),u}function mi(e,t=!1){const n=G(),o=()=>n.value=!!e();return o(),fi(o,t),n}const nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},or="__vueuse_ssr_handlers__";nr[or]=nr[or]||{};const Wu=nr[or];function Uu(e,t){return Wu[e]||t}function Ku(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 qu=Object.defineProperty,vi=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,Yu=Object.prototype.propertyIsEnumerable,_i=(e,t,n)=>t in e?qu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bi=(e,t)=>{for(var n in t||(t={}))Zu.call(t,n)&&_i(e,n,t[n]);if(vi)for(var n of vi(t))Yu.call(t,n)&&_i(e,n,t[n]);return e};const Xu={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 yi(e,t,n,o={}){var r;const{flush:s="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:p,window:d=pt,eventFilter:g,onError:x=j=>{console.error(j)}}=o,I=(p?Nl:G)(t);if(!n)try{n=Uu("getDefaultStorage",()=>{var j;return(j=pt)==null?void 0:j.localStorage})()}catch(j){x(j)}if(!n)return I;const _=Qn(t),Y=Ku(_),D=(r=o.serializer)!=null?r:Xu[Y],{pause:X,resume:B}=Vu(I,()=>k(I.value),{flush:s,deep:i,eventFilter:g});return d&&l&&St(d,"storage",S),S(),I;function k(j){try{if(j==null)n.removeItem(e);else{const m=D.write(j),v=n.getItem(e);v!==m&&(n.setItem(e,m),d&&(d==null||d.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:v,newValue:m,storageArea:n}))))}}catch(m){x(m)}}function L(j){const m=j?j.newValue:n.getItem(e);if(m==null)return a&&_!==null&&n.setItem(e,D.write(_)),_;if(!j&&u){const v=D.read(m);return Tu(u)?u(v,_):Y==="object"&&!Array.isArray(v)?bi(bi({},_),v):v}else return typeof m!="string"?m:D.read(m)}function S(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){I.value=_;return}if(!(j&&j.key!==e)){X();try{I.value=L(j)}catch(m){x(m)}finally{j?Qe(B):B()}}}}}function wi({document:e=Hu}={}){if(!e)return G("visible");const t=G(e.visibilityState);return St(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var xi=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,Qu=Object.prototype.propertyIsEnumerable,Gu=(e,t)=>{var n={};for(var o in e)Ju.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&xi)for(var o of xi(e))t.indexOf(o)<0&&Qu.call(e,o)&&(n[o]=e[o]);return n};function ef(e,t,n={}){const o=n,{window:r=pt}=o,s=Gu(o,["window"]);let i;const l=mi(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},u=de(()=>Ft(e),d=>{a(),l.value&&r&&d&&(i=new ResizeObserver(t),i.observe(d,s))},{immediate:!0,flush:"post"}),p=()=>{a(),u()};return tr(p),{isSupported:l,stop:p}}function tf(e,t={width:0,height:0},n={}){const{window:o=pt,box:r="content-box"}=n,s=ae(()=>{var a,u;return(u=(a=Ft(e))==null?void 0:a.namespaceURI)==null?void 0:u.includes("svg")}),i=G(t.width),l=G(t.height);return ef(e,([a])=>{const u=r==="border-box"?a.borderBoxSize:r==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(o&&s.value){const p=Ft(e);if(p){const d=o.getComputedStyle(p);i.value=parseFloat(d.width),l.value=parseFloat(d.height)}}else if(u){const p=Array.isArray(u)?u:[u];i.value=p.reduce((d,{inlineSize:g})=>d+g,0),l.value=p.reduce((d,{blockSize:g})=>d+g,0)}else i.value=a.contentRect.width,l.value=a.contentRect.height},n),de(()=>Ft(e),a=>{i.value=a?t.width:0,l.value=a?t.height:0}),{width:i,height:l}}function Ci(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:s=.1,window:i=pt}=n,l=mi(()=>i&&"IntersectionObserver"in i);let a=Gt;const u=l.value?de(()=>({el:Ft(e),root:Ft(o)}),({el:d,root:g})=>{if(a(),!d)return;const x=new IntersectionObserver(t,{root:g,rootMargin:r,threshold:s});x.observe(d),a=()=>{x.disconnect(),a=Gt}},{immediate:!0,flush:"post"}):Gt,p=()=>{a(),u()};return tr(p),{isSupported:l,stop:p}}function nf(e,t,n={}){const{window:o=pt}=n;return yi(e,t,o==null?void 0:o.localStorage,n)}var ki;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ki||(ki={}));function rr(e,t,n={}){const{window:o=pt}=n;return yi(e,t,o==null?void 0:o.sessionStorage,n)}var of=Object.defineProperty,Pi=Object.getOwnPropertySymbols,rf=Object.prototype.hasOwnProperty,sf=Object.prototype.propertyIsEnumerable,Si=(e,t,n)=>t in e?of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lf=(e,t)=>{for(var n in t||(t={}))rf.call(t,n)&&Si(e,n,t[n]);if(Pi)for(var n of Pi(t))sf.call(t,n)&&Si(e,n,t[n]);return e};lf({linear:Eu},{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 af(e={}){const{window:t=pt,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:s=!0}=e,i=G(n),l=G(o),a=()=>{t&&(s?(i.value=t.innerWidth,l.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return a(),fi(a),St("resize",a,{passive:!0}),r&&St("orientationchange",a,{passive:!0}),{width:i,height:l}}function cf(e){return String(e).normalize("NFKD").replace(/[\u0300-\u036f]/g,"").trim().toLowerCase().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}var Ye=(e=>(e[e.vertical=0]="vertical",e[e.ltr=1]="ltr",e[e.rtl=2]="rtl",e))(Ye||{}),it=(e=>(e[e.longStrip=0]="longStrip",e[e.single=1]="single",e[e.double=2]="double",e))(it||{});const uf=.25,ff=5,df=.25,vn=.25,_n=5,pf=.05,hf=0,gf=4;function mf(e){var D,X,B,k,L;const{titleName:t,isWebtoon:n}=e,r=`tkr:${t?cf(t):location.pathname}`,s=nf(r,{},{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults(S){const j={};return S?(S.style!==void 0&&Object.values(it).includes(S.style)&&(j.style=S.style),S.direction!==void 0&&Object.values(Ye).includes(S.direction)&&(j.direction=S.direction),S.gap!==void 0&&S.gap>=hf&&S.gap<=gf&&(j.gap=S.gap),S.speed!==void 0&&S.speed>=vn&&S.speed<=_n&&(j.speed=S.speed),S.zoom!==void 0&&S.zoom>=vn&&S.zoom<=_n&&(j.zoom=S.zoom),Object.keys(j).length?j:void 0):j}}),i=S=>{if(!s.value){s.value=S;return}const j={...s.value};Object.entries(S).forEach(([m,v])=>{v===void 0?delete j[m]:j[m]=v}),Object.keys(j).length?s.value=j:(s.value=void 0,localStorage.removeItem(r))},l=G(((D=s.value)==null?void 0:D.style)??it.longStrip),a=G(((X=s.value)==null?void 0:X.direction)??Ye.vertical),u=G((B=s.value)==null?void 0:B.gap),p=G(((k=s.value)==null?void 0:k.speed)??1),d=G(((L=s.value)==null?void 0:L.zoom)??1),g=ae({get(){return n.value?it.longStrip:l.value??it.longStrip},set:S=>{l.value=S,i({style:S===it.longStrip?void 0:S}),S!==it.longStrip&&a.value===Ye.vertical&&(x.value=S===it.single?Ye.ltr:Ye.rtl)}}),x=ae({get:()=>n.value?Ye.vertical:a.value,set:S=>{a.value=S,i({direction:S===Ye.vertical?void 0:S})}}),I=ae({get:()=>u.value??(n.value?0:1),set(S){u.value=S,i({gap:S})}}),_=ae({get:()=>p.value,set(S){p.value=S,i({speed:S===1?void 0:S})}}),Y=ae({get:()=>d.value,set(S){d.value=S,i({zoom:S===1?void 0:S})}});return{direction:x,style:g,gap:I,speed:_,zoom:Y,isLongStrip:ae(()=>g.value===it.longStrip),isDouble:ae(()=>g.value===it.double),isRTL:ae(()=>x.value===Ye.rtl),isVertical:ae(()=>x.value===Ye.vertical)}}const Ti=$e({__name:"ButtonReaderSettings",props:{direction:{},readerStyle:{},gap:{},speed:{},zoom:{},webtoon:{type:Boolean},disabled:{type:Boolean}},emits:["update:reader-style","update:direction","update:gap","update:speed","update:zoom"],setup(e,{emit:t}){const n=G(!1);function o(r){t("update:zoom",Math.round(r)/100)}return(r,s)=>{const i=li,l=Jn,a=ii,u=si,p=ri,d=oi;return A(),Z(Ce,null,[K(l,{title:"Customize",disabled:r.disabled,onClick:s[0]||(s[0]=()=>n.value=!0)},{default:se(()=>[K(i)]),_:1},8,["disabled"]),K(d,{modelValue:n.value,"onUpdate:modelValue":s[5]||(s[5]=g=>n.value=g)},{default:se(()=>[K(u,{label:"Style"},{default:se(()=>[K(a,{"model-value":r.readerStyle,items:r.webtoon?["Long strip"]:["Long strip","Single page","Double page"],"onUpdate:modelValue":s[1]||(s[1]=g=>t("update:reader-style",g))},null,8,["model-value","items"])]),_:1}),K(u,{label:"Direction"},{default:se(()=>[K(a,{"model-value":r.direction,items:r.webtoon?["Vertical"]:["Vertical","Left to right","Right to left"],"onUpdate:modelValue":s[2]||(s[2]=g=>t("update:direction",g))},null,8,["model-value","items"])]),_:1}),K(u,{label:"Gap"},{default:se(()=>[K(a,{"model-value":r.gap,items:["None","XS","SM","M","L","XL"],"onUpdate:modelValue":s[3]||(s[3]=g=>t("update:gap",g))},null,8,["model-value"])]),_:1}),K(u,{label:"Speed"},{default:se(()=>[K(p,{"model-value":r.speed,min:F(uf),max:F(ff),step:F(df),suffix:"x","onUpdate:modelValue":s[4]||(s[4]=g=>t("update:speed",g))},{suffix:se(()=>[wt(lt(r.speed.toFixed(2))+"x ",1)]),_:1},8,["model-value","min","max","step"])]),_:1}),K(u,{label:"Zoom"},{default:se(()=>[K(p,{"model-value":Math.ceil(r.zoom*100),min:F(vn)*100,max:F(_n)*100,step:F(pf)*100,"onUpdate:modelValue":o},{suffix:se(()=>[wt(lt(Math.ceil(r.zoom*100))+"% ",1)]),_:1},8,["model-value","min","max","step"])]),_:1})]),_:1},8,["modelValue"])],64)}}}),vf=Object.freeze(Object.defineProperty({__proto__:null,default:Ti},Symbol.toStringTag,{value:"Module"})),_f={},bf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},yf=[U("path",{fill:"currentColor",d:"M4 4h6v2H6v4H4V4Zm10 0h6v6h-2V6h-4V4ZM6 14v4h4v2H4v-6h2Zm14 0v6h-6v-2h4v-4h2Z"},null,-1)];function wf(e,t){return A(),Z("svg",bf,yf)}const $i=ge(_f,[["render",wf]]),xf=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),Cf={},kf={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},Pf=[U("path",{fill:"currentColor",d:"M14 20v-6h6v2h-4v4h-2Zm-6 0v-4H4v-2h6v6H8Zm12-10h-6V4h2v4h4v2Zm-10 0H4V8h4V4h2v6Z"},null,-1)];function Sf(e,t){return A(),Z("svg",kf,Pf)}const Oi=ge(Cf,[["render",Sf]]),Tf=Object.freeze(Object.defineProperty({__proto__:null,default:Oi},Symbol.toStringTag,{value:"Module"})),$f={},Of={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},If=[U("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),U("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),U("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 Ef(e,t){return A(),Z("svg",Of,If)}const Ii=ge($f,[["render",Ef]]),Mf=Object.freeze(Object.defineProperty({__proto__:null,default:Ii},Symbol.toStringTag,{value:"Module"})),Lf={},zf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jf=[U("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),U("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),U("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 Af(e,t){return A(),Z("svg",zf,jf)}const Ei=ge(Lf,[["render",Af]]),Bf=Object.freeze(Object.defineProperty({__proto__:null,default:Ei},Symbol.toStringTag,{value:"Module"})),Df={},Nf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Ff=[U("path",{fill:"currentColor",d:"m7 10l5 5l5-5z"},null,-1)];function Rf(e,t){return A(),Z("svg",Nf,Ff)}const Mi=ge(Df,[["render",Rf]]),Vf=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Hf=["aria-hidden"],Wf=["onClick"],Uf=["onClick"],Kf={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"},qf={class:"whitespace-nowrap"},sr=$e({__name:"ButtonDropdown",props:{modelValue:{},label:{},items:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=G(null),r=G(!1),s=G(null),i=G(!1),l=G(!1),a=G(!1);Go({onKeyDown:x});const u=Qo();function p(){if(!n.items.length){r.value=!1;return}r.value=!r.value,u(r.value),r.value?(d(),Qe(()=>setTimeout(()=>{var k,L;(L=(k=s.value)==null?void 0:k.children[n.modelValue])==null||L.scrollIntoView({behavior:"auto",block:"center",inline:"center"})},100)),_(o.value)):setTimeout(Y,250)}function d(){const k=o.value;if(k){const L=k.getBoundingClientRect(),S=L.x+L.width/2;i.value=L.y>window.innerHeight/2,l.value=S<window.innerWidth/3,a.value=S>window.innerWidth/3*2}}function g(k){k!=n.modelValue&&t("update:modelValue",k),p()}function x(k){r.value&&k.key==="Escape"&&(p(),k.preventDefault())}let I=[];function _(k){const L=window.getComputedStyle(k).zIndex,S=k.style.zIndex;(!L||!(+L>0))&&((!k.parentElement||k.parentElement.childElementCount>1)&&(k.style.zIndex="1",I.push({el:k,zIndex:S})),k.parentElement&&_(k.parentElement))}function Y(){I.forEach(({el:k,zIndex:L})=>{k.style.zIndex=L??""}),I=[]}let D=!1;function X(){D||(D=!0,u(!0,{desktopOnly:!0}))}function B(){D&&(D=!1,u(!1,{desktopOnly:!0}))}return(k,L)=>{const S=Mi;return A(),Z("div",{ref_key:"root",ref:o,class:"select-none relative inline-flex"},[r.value?(A(),Z("div",{key:0,class:"fixed inset-0 bg-transparent",onClick:p})):Fe("",!0),k.items.length?(A(),ke(Jt,{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:se(()=>[r.value?(A(),Z("ul",{key:0,ref_key:"list",ref:s,"aria-hidden":!r.value,class:ye(["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":i.value,"origin-top top-full translate-y-1.5":!i.value,"left-1/2 -ml-20 text-center":!l.value&&!a.value,"right-0 text-right":a.value}]),onWheelPassive:L[0]||(L[0]=Pt(()=>{},["stop"]))},[(A(!0),Z(Ce,null,Vn(k.items,(j,m)=>ut((A(),Z("li",{key:m,tabindex:"-1",class:ye(["h-10 px-4 last:border-b-transparent cursor-pointer hover:bg-stone-100 hover:bg-opacity-10 duration-100",{"text-primary":m===k.modelValue}]),onClick:()=>g(m)},[U("div",{class:ye(["h-full py-2",{"border-t-[1px] border-solid border-stone-400 border-opacity-30":m>0}])},[xe(k.$slots,"item",{item:j},()=>[wt(lt(j),1)])],2)],10,Wf)),[[F(Qt),30]])),128))],42,Hf)):Fe("",!0)]),_:3})):Fe("",!0),ut((A(),Z("button",{type:"button",tabindex:"-1",class:ye(["w-full h-10 max-h-full bg-transparent rounded-full bg-black bg-opacity-50 group duration-100",{"pointer-events-none text-stone-400":k.disabled}]),onClick:Pt(p,["stop"]),onMouseenter:X,onMouseleave:B},[U("div",Kf,[U("span",qf,lt(k.label),1),k.items.length?(A(),Z("span",{key:0,class:ye(["w-4 h-4 flex ml-1 -mr-3 flex-shrink-0",{"rotate-180":i.value}]),"aria-hidden":"true"},[K(S)],2)):Fe("",!0)])],42,Uf)),[[F(Qt),30]])],512)}}}),Zf=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),Li=$e({__name:"PageNav",props:{modelValue:{},disabled:{type:Boolean},pages:{},totalImgs:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=ae(()=>Math.floor(n.modelValue)),r=ae(()=>n.pages.map(u=>u.map(({index:p})=>`${p+1}`).join("-"))),s=ae(()=>{const u=o.value,p=n.pages.findIndex(d=>d.some(({index:g})=>g===u));return p===-1?n.pages.length-1:p}),i=ae(()=>n.pages.length?`${r.value[s.value]}/${n.totalImgs}`:"--");function l(u){const p=n.pages[u][0].index;a(p)}function a(u){t("update:modelValue",u)}return(u,p)=>{const d=sr;return A(),ke(d,{"model-value":s.value,label:i.value,items:r.value,disabled:u.disabled,"onUpdate:modelValue":l},null,8,["model-value","label","items","disabled"])}}}),Yf=Object.freeze(Object.defineProperty({__proto__:null,default:Li},Symbol.toStringTag,{value:"Module"})),Xf={},Jf={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Qf=[U("path",{fill:"currentColor",d:"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z"},null,-1)];function Gf(e,t){return A(),Z("svg",Jf,Qf)}const zi=ge(Xf,[["render",Gf]]),ed=Object.freeze(Object.defineProperty({__proto__:null,default:zi},Symbol.toStringTag,{value:"Module"})),td={},nd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},od=[U("path",{fill:"currentColor",d:"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z"},null,-1)];function rd(e,t){return A(),Z("svg",nd,od)}const ji=ge(td,[["render",rd]]),sd=Object.freeze(Object.defineProperty({__proto__:null,default:ji},Symbol.toStringTag,{value:"Module"})),id={},ld={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24"},ad=[U("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 cd(e,t){return A(),Z("svg",ld,ad)}const Ai=ge(id,[["render",cd]]),ud=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"})),fd={},dd={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},pd=[U("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 hd(e,t){return A(),Z("svg",dd,pd)}const Bi=ge(fd,[["render",hd]]),gd=Object.freeze(Object.defineProperty({__proto__:null,default:Bi},Symbol.toStringTag,{value:"Module"})),Di=ge($e({__name:"PauseToast",props:{playing:{type:Boolean}},setup(e){const t=e,n=G(0);return de(()=>t.playing,()=>{n.value=Date.now()}),(o,r)=>{const s=Xo,i=Jo;return n.value?(A(),Z("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(),ke(s,{key:0})):(A(),ke(i,{key:1}))])):Fe("",!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)}}
|
|
3
|
+
`]]]),md=Object.freeze(Object.defineProperty({__proto__:null,default:Di},Symbol.toStringTag,{value:"Module"})),vd={},_d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},bd=[U("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 yd(e,t){return A(),Z("svg",_d,bd)}const Ni=ge(vd,[["render",yd]]),wd=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),Fi=$e({__name:"DirectionToast",props:{direction:{}},setup(e){const t=e,n=rr("tk:dir",!0),o=dt(()=>n.value=!1,1250);return de(()=>t.direction,()=>{n.value=!0,o()}),ot(()=>{o();let r;const s=wi();de(s,i=>{i!=="visible"?r=Date.now():Date.now()-r>3e4&&(n.value=!0,o())})}),(r,s)=>{const i=Ni;return A(),ke(Jt,{name:"slow-fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:se(()=>[F(n)?(A(),Z("div",{key:0,class:ye(["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":r.direction===F(Ye).vertical,"rotate-180":r.direction===F(Ye).rtl}])},[K(i)],2)):Fe("",!0)]),_:1})}}}),xd=Object.freeze(Object.defineProperty({__proto__:null,default:Fi},Symbol.toStringTag,{value:"Module"})),eo=[];function Cd(e){eo.push(e),Ne(()=>{const t=eo.indexOf(e);t!==-1&&eo.splice(t,1)})}function kd(e,t){const{innerWidth:n,innerHeight:o}=window,r=e*n,s=t*o;eo.forEach(i=>i(r,s))}const Ri=$e({__name:"ZoomWrapper",props:{modelValue:{},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=G(null),r=G(Math.min(_n,Math.max(vn,n.modelValue))),s=G(!1),i=G(!1),l=G(!1),a=G(!1),u=dt(()=>a.value=!1,150);function p(){a.value||(a.value=!0),u()}de(()=>n.modelValue,w=>ne(w)),ot(()=>{n.touchDevice?(St(window,"touchstart",S),Cd(ie)):(St(o,"mousedown",Y),de(()=>n.horizontal,w=>{w?window.addEventListener("wheel",P,{passive:!1}):window.removeEventListener("wheel",P)},{immediate:!0}))}),Ne(()=>{window.removeEventListener("wheel",P)});let d;Go({onKeyDown:w=>{var we;if(n.busy)return;(we=o.value)==null||we.focus();const O=w.key==="Meta",ee=w.key==="Control";O||ee?(s.value=!0,window.addEventListener("wheel",x,{passive:!1}),d=()=>{s.value=!1,window.removeEventListener("wheel",x),window.removeEventListener("blur",d),d=void 0},window.addEventListener("blur",d)):(w.ctrlKey||w.metaKey)&&w.key==="0"&&ne(1)},onKeyUp:()=>{s.value==!0&&(d==null||d())}});function g(w){l.value!==w&&(l.value=w,w?n.playController.pause():(t("dragEnd"),n.playController.resume()))}function x(w){w.stopPropagation(),w.preventDefault();const O=Math.ceil((r.value+w.deltaY*-.01)*100)/100;ne(O,{x:w.clientX,y:w.clientY})}let I={x:0,y:0},_={x:0,y:0};function Y(w){w.button===0&&(I={x:w.clientX,y:w.clientY},_={x:o.value.scrollLeft,y:o.value.scrollTop},window.addEventListener("mousemove",D),window.addEventListener("mouseup",()=>{window.removeEventListener("mousemove",D),setTimeout(()=>g(!1))},{once:!0}),w.preventDefault(),w.stopPropagation())}function D(w){g(!0);const O=w.clientX-I.x,ee=w.clientY-I.y,we=o.value;we.scrollLeft=_.x-O,we.scrollTop=_.y-ee}let X=0,B=1,k,L=!1;function S(w){if(!n.busy){if(L=w.touches.length===2,L){g(!0),w.stopPropagation(),w.preventDefault();const O=o.value;X=V(w),B=r.value,k={x:(w.touches[0].clientX+w.touches[1].clientX)/2,y:(w.touches[0].clientY+w.touches[1].clientY)/2,scrollLeft:O.scrollLeft,scrollTop:O.scrollTop,scrollWidth:O.scrollWidth,scrollHeight:O.scrollHeight}}(L||n.playController.isPlaying&&n.longStrip)&&(window.addEventListener("touchmove",m),window.addEventListener("touchend",j,{once:!0}))}}function j(){if(window.removeEventListener("touchmove",m),L){g(!1),L=!1;return}if(!l.value)return;const w=dt(()=>{g(!1),o.value.removeEventListener("scroll",ee)},100),O=setTimeout(w,100);o.value.addEventListener("scroll",ee);function ee(){clearTimeout(O),w()}}function m(w){if(g(!0),L){w.stopPropagation(),w.preventDefault();const ee=V(w)/X;ne(Math.ceil(ee*B*100)/100,k)}}const v=dt(()=>i.value=!1,100);function P(w){n.busy||(i.value||(i.value=!0),v(),w.deltaY&&(!s.value&&o.value&&(o.value.scrollLeft+=w.deltaY*(n.rtl?-1:1)),w.preventDefault()))}function V(w){return Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY)}let E=0,R;function J(w){w.stopPropagation(),!l.value&&(E++,R&&clearTimeout(R),E===2&&ie(w.clientX,w.clientY),R=setTimeout(()=>{!l.value&&E===1&&t("click",w),R=void 0,E=0},300))}function ie(w,O){if(!E)return;E=0;const ee=r.value===1?2:1;ne(ee,{x:w,y:O})}async function ne(w,O){const ee=o.value,we=Math.min(_n,Math.max(vn,w));if(!ee||r.value===we)return;const Re=(O==null?void 0:O.scrollLeft)??ee.scrollLeft,ze=(O==null?void 0:O.scrollTop)??ee.scrollTop,en=(O==null?void 0:O.scrollHeight)??ee.scrollHeight,Tt=(O==null?void 0:O.scrollWidth)??ee.scrollWidth,ht=(O==null?void 0:O.x)??ee.clientWidth/2,je=n.rtl?ee.clientWidth-ht:ht,gt=(O==null?void 0:O.y)??ee.clientHeight/2;p(),r.value=we,t("update:modelValue",we),await Qe();const et=ee.scrollWidth/Tt,tt=ee.scrollHeight/en;ee.scrollLeft=Re*et+je*(et-1)*(n.rtl?-1:1),ee.scrollTop=ze*tt+gt*(tt-1)}return(w,O)=>(A(),Z("div",{ref_key:"root",ref:o,tabindex:"0",class:ye(["w-full h-full overflow-auto overscroll-contain scrollbar-none focus:outline-none touch-pan-x touch-pan-y",{"!snap-none":l.value||i.value,"cursor-grabbing":l.value,"overflow-hidden":a.value}]),style:Ue({"font-size":`${r.value}px`}),onClick:J},[xe(w.$slots,"default")],6))}}),Pd=Object.freeze(Object.defineProperty({__proto__:null,default:Ri},Symbol.toStringTag,{value:"Module"})),Sd=`.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}}
|
|
4
|
+
`,Td={},$d={class:"flex justify-center items-center w-full h-full"},Od=[U("div",{class:"loading-indicator"},null,-1)];function Id(e,t){return A(),Z("div",$d,Od)}const ir=ge(Td,[["render",Id],["styles",[Sd]]]),Ed=Object.freeze(Object.defineProperty({__proto__:null,default:ir},Symbol.toStringTag,{value:"Module"})),Md=["data-index"],Ld={key:0,class:"page--loading"},zd=["src"],jd=["src"],Ad=["data-index"],Vi=ge($e({__name:"ReaderBody",props:{direction:{},isLongStrip:{type:Boolean},isVertical:{type:Boolean},isRTL:{type:Boolean},pages:{},totalImgs:{},gap:{},zoom:{},spaceTop:{},spaceBottom:{},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=G(null),r=ae(()=>{var d;return(d=o.value)==null?void 0:d.$el}),s=G(null),i=tf(r),l=ae(()=>{const{width:d,height:g}=i,x=n.isLongStrip?n.isVertical?d.value:g.value:Math.min(d.value,g.value);return Math.min(4,Math.max(1,Math.ceil(x/400-1)))*n.gap}),a=ae(()=>{const{width:{value:d},height:{value:g}}=i;return n.pages.map(x=>{var k;const I={isLoading:x.some(L=>{var S;return(S=L.img)==null?void 0:S.isLoading}),indexes:x.map(L=>L.index)};if(I.isLoading)return I;const _=x.map(({img:L})=>L).filter(Boolean);if(!_.length||(I.srcs=_.map(({src:L})=>L),_.every(L=>L.hasError)))return I;const D=(k=_.find(L=>!L.hasError))==null?void 0:k.size,X=_.reduce((L,S)=>{var j;return L+(((j=S.size)==null?void 0:j.width)??D.width)},0),B=_.reduce((L,S)=>{var j;return L+(((j=S.size)==null?void 0:j.height)??D.height)},0)/_.length;return n.isLongStrip&&n.isVertical||!n.isLongStrip&&d/X<g/B?(I.width=Math.min(d,X),I.height=B*I.width/X):I.height=Math.min(g,B),I})}),u=ae(()=>a.value.map(d=>(d==null?void 0:d.width)??(d==null?void 0:d.height)).filter(Boolean).sort((d,g)=>g-d)[0]);function p(d){if(!n.isLongStrip){const g=n.isVertical?i.height.value:i.width.value,I=(n.isVertical?d.clientY:n.isRTL?g-d.clientX:d.clientX)/g;if(I<=.2){t("prev");return}else if(I>=.8){t("next");return}}t("click")}return(d,g)=>{const x=ir,I=Ri;return A(),ke(I,{"model-value":d.zoom,ref_key:"root",ref:o,class:ye(["reader-body",{"reader-body--long-strip":d.isLongStrip,"reader-body--pages":!d.isLongStrip,"reader-body--vertical":d.isVertical,"reader-body--rtl":d.isRTL,"reader-body--idle":d.idle}]),"play-controller":d.playController,horizontal:!d.isVertical,rtl:d.isRTL,"touch-device":d.touchDevice,busy:d.busy,"long-strip":d.isLongStrip,style:Ue({"--gap":`${l.value}em`,"--space-top":(d.spaceTop||0)+"em","--screen-width-em":F(i).width.value+"em","--screen-height-em":F(i).height.value+"em",...d.isLongStrip?{"--max-size-em":u.value+"em"}:{}}),"onUpdate:modelValue":g[0]||(g[0]=_=>t("update:zoom",_)),onDragEnd:g[1]||(g[1]=()=>t("dragEnd")),onClick:p},{default:se(()=>[(A(!0),Z(Ce,null,Vn(a.value,_=>{var Y;return A(),Z("div",Ho({key:d.direction+"_"+_.indexes[0],"data-index":_.indexes[0]},_.indexes.length>1?{"data-index2":_.indexes[1]}:{}),[!((Y=_.srcs)!=null&&Y.length)||_.isLoading?(A(),Z("div",Ld,[K(x)])):_.srcs.length==1?(A(),Z("img",{key:1,src:_.srcs[0],style:Ue({width:_.width!==void 0?_.width+"em":"",height:_.height!==void 0?_.height+"em":""})},null,12,zd)):(A(),Z("div",{key:2,class:ye(["page--double",{"flex-row-reverse":d.isRTL}]),style:Ue({height:_.height!==void 0?_.height+"em":""})},[(A(!0),Z(Ce,null,Vn(_.srcs,D=>(A(),Z("div",{key:D},[U("img",{src:D},null,8,jd)]))),128))],6))],16,Md)}),128)),U("div",{ref_key:"autoNextEl",ref:s,"data-index":d.totalImgs,style:Ue(d.isLongStrip?d.isVertical?{height:F(i).height.value+"em"}:{width:F(i).width.value+"em"}:{})},[xe(d.$slots,"end")],12,Ad)]),_:3},8,["model-value","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:not(.reader-body--vertical){align-items:center;display:flex;height:100%;justify-content:flex-start}.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{padding:calc(var(--gap)/2) 0;width:var(--max-size-em)}.reader-body--long-strip:not(.reader-body--vertical)>div{align-items:center;display:flex;height:var(--max-size-em);padding:0 calc(var(--gap)/2)}.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:flex;height:var(--screen-height-em);justify-content:center;min-height:100vh;min-width:100vw;scroll-snap-align:center;width:var(--screen-width-em)}.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: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 .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 .page--loading{height:calc(var(--screen-height-em)*.75);margin:auto;max-height:100%;max-width:100%;width:calc(var(--screen-width-em)*.5)}.reader-body>div{flex-shrink:0;margin:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.reader-body img{--tw-bg-opacity:1!important;background-color:rgb(41 37 36/var(--tw-bg-opacity))!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}
|
|
5
|
+
`]]]),Bd=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Dd={class:"inline-flex p-6 gap-6 text-base text-stone-300 select-none"},Nd={key:0,class:"inline-block rounded-full relative w-28 h-12 overflow-hidden"},Fd={key:0,class:"animate-auto-next absolute left-0 top-0 bottom-0 h-full bg-stone-600 bg-opacity-50 animate-auto-next"},Hi=ge($e({__name:"AutoNext",props:{hasNext:{type:Boolean}},emits:["next","hide"],setup(e,{emit:t}){const n=G(null),o=G(null),r=G(!1),s=G(!1),i=G(3);return ot(()=>{let l;Ci(o,a=>{s.value=a.some(u=>u.isIntersecting),i.value=5,l&&(clearInterval(l),l=void 0),s.value&&(l=setInterval(()=>{i.value-=1,i.value<=0&&(clearInterval(l),l=void 0,t("next"))},1e3))}),Ci(n,a=>{r.value=a.some(u=>u.isIntersecting)}),Ne(()=>l&&clearInterval(l))}),(l,a)=>(A(),Z("div",{ref_key:"root",ref:n,class:"h-full w-full flex justify-center items-center"},[ut(U("div",Dd,[l.hasNext?(A(),Z("div",Nd,[s.value?(A(),Z("div",Fd)):Fe("",!0),ut((A(),Z("button",{ref_key:"nextButton",ref:o,class:"bg-transparent rounded-full h-full w-full border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:a[0]||(a[0]=Pt(()=>t("next"),["stop"]))},[wt(" Next in "+lt(i.value),1)])),[[F(Qt)]])])):Fe("",!0),ut((A(),Z("button",{class:"rounded-full px-6 h-12 bg-transparent border-solid border-stone-600 border-2 hover:bg-stone-300 hover:bg-opacity-10 duration-200",onClick:a[1]||(a[1]=Pt(()=>t("hide"),["stop"]))},[wt(" Hide ")])),[[F(Qt)]])],512),[[Xs,r.value||!l.hasNext]])],512))}}),[["styles",[`.animate-auto-next{animation:auto-next 5s linear forwards}@keyframes auto-next{0%{width:0}to{width:100%}}
|
|
6
|
+
`]]]),Rd=Object.freeze(Object.defineProperty({__proto__:null,default:Hi},Symbol.toStringTag,{value:"Module"}));async function bn(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 s=await bn(e-1,t,n);r(s)},t)})}function to(e=0){return new Promise(t=>setTimeout(t,e))}const Vd=3;function Hd(e){var j;let t=[];const n=G(((j=e.raw.imgs)==null?void 0:j.filter(Boolean))??[]),o=rn({}),r=[],s=new WeakMap;let i=!0,l=0,a,u=n.value.length?qd(n.value):void 0;const p=G(e.raw.isWebtoon),d=G(p.value===void 0||u===void 0),g=dt(k,100),x=dt(_,50);d.value?n.value.length?_():D():Qe(()=>setTimeout(()=>I(u),10)),Ne(()=>{i=!1,r.forEach(m=>URL.revokeObjectURL(m))});async function I(m){d.value=!1,await Qe(),e.onReady(m),de(()=>Math.floor(e.page.value),async(v,P)=>{Ki({contentEl:a,imgEls:t,page:v,smooth:!0}),P??(P=-1),v!==P&&(l=Math.max(0,l-Math.abs(v-P))),x()},{immediate:!0})}function _(){const m=Math.floor(e.page.value),v=P=>{l>Vd||Y(P)};for(let P=m;P<n.value.length;P++)v(P);for(let P=m-1;P>=0;P--)v(P)}async function Y(m){const v=n.value[m];if(!(!i||!v||o[v])){if(!o[v]){o[v]={src:v,isLoading:!0,hasError:!1},l++;const P=await Kd(v);if(o[v]={src:v,size:P,isLoading:!1,hasError:!P},l=Math.max(0,l-1),P&&!p.value&&m>Math.min(1,n.value.length-2)){const V=P.height/P.width>2.5;p.value!==V&&(p.value=V)}d.value&&p.value!==void 0&&u!==void 0&&I(u)}x()}}function D(){let m=!1;const v=new MutationObserver(()=>{a&&g(a)});Ne(async()=>{v.disconnect();const P=e.page.value;await to(),Ki({contentEl:a,imgEls:t,page:P})}),X(P=>{a!==P&&(a=P,v.disconnect(),v.observe(a,{childList:!0,subtree:!0}),m?g(a):(m=!0,k(a)))})}async function X(m){var J;const v=(J=e.spec)==null?void 0:J.content;if(!v)return;const P=await Wd(e.spec);let V=v?await bn(P?100:1,10,()=>document.querySelector(v)):void 0;if(!V)return;m(V);let E=0;const R=async()=>{if(i&&!(V!=null&&V.isConnected)){if(E=0,V=await bn(50,20,()=>{const ie=document.querySelector(v);return ie!=null&&ie.isConnected&&ie!==V?ie:void 0}),!V)return;m(V)}!i||++E>=10||setTimeout(R,200)};setTimeout(R,200)}let B=0;async function k(m){var R;if(!i||!m.isConnected)return;const v=Date.now();B=v;let P,V;const E=(R=e.spec)==null?void 0:R.imgDivs;if(E){if(V=Array.from(m.querySelectorAll(E)),P=await Promise.all(V.map(async(J,ie)=>{const ne=Array.from(J.querySelectorAll("img,canvas"));for(const w of ne){const O=await S({ts:v,el:w,index:ie,total:V.length,onImgLoad:()=>g(m)});if(O)return O}})),!i||!m.isConnected||B!==v)return}else{const J=Array.from(m.querySelectorAll("img,canvas")),ie=await Promise.all(J.map((w,O)=>S({ts:v,el:w,index:O,total:J.length,onImgLoad:()=>g(m)})));if(!i||!m.isConnected||B!==v)return;V=J.filter((w,O)=>ie[O]),P=ie.filter(Boolean);const ne=P.filter((w,O)=>w&&O!==P.lastIndexOf(w));ne.length&&(P=P.filter(w=>w&&!ne.includes(w)))}u??(u=Ui(V)),(P.length!==n.value.length||P.some((J,ie)=>n.value[ie]!==J))&&(t=V,n.value=P,x(),u!==void 0&&d.value&&p.value!==void 0&&n.value.some(Boolean)&&I(u))}const L=Date.now();async function S({ts:m,el:v,index:P,total:V,onImgLoad:E}){const R=s.get(v);let J,ie;if(v.tagName.toLowerCase()==="canvas"){if(R)return R.src;J=await Wi(v)}else{if(v._tkLoadId_!==L&&(v._tkLoadId_=L,v.addEventListener("load",E),Ne(()=>{v._tkLoadId_===L&&delete v._tkLoadId_,v.removeEventListener("load",E)})),ie=Zd(v),!ie)return;if(ie===(R==null?void 0:R.originalSrc))return R.src;if(J=await Ud(v,ie),!i||B!==m)return;if(p.value===void 0&&P>Math.min(1,V-2)){const w=+(v.getAttribute("width")??0),O=+(v.getAttribute("height")??0);w&&O&&(p.value=O/w>2.5)}}return J&&(s.set(v,{src:J,originalSrc:ie}),J.startsWith("blob:")&&r.push(J)),J}return{isLoading:ae(()=>d.value),asyncImgs:ae(()=>n.value.map(m=>m?o[m]:void 0)),isWebtoon:ae(()=>p.value??!1)}}async function Wd(e){const{lstrip:t,lstripBtn:n}=e||{};if(!n||!!t&&!!document.querySelector(t))return!1;const r=await bn(50,30,()=>document.querySelector(n));if(!r)return!1;if(r.tagName.toLowerCase()==="a"&&!r._tkDirty_){r._tkDirty_=!0;const s=i=>i.preventDefault();r.addEventListener("click",s),Ne(()=>{delete r._tkDirty_,r.removeEventListener("click",s)})}return r.click(),await to(),!0}function Wi(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 Ud(e,t){if(!t.startsWith("blob:"))return t;if(!e.naturalWidth||!e.naturalHeight)return;const o=document.createElement("canvas"),r=o.getContext("2d"),s=e.naturalWidth,i=e.naturalHeight;return o.width=s,o.height=i,r==null||r.drawImage(e,0,0,s,i),await Wi(o)}function Kd(e){return new Promise(t=>{const n=new Image,o=setInterval(()=>{const{naturalWidth:r,naturalHeight:s}=n;s&&r&&(t({width:r,height:s}),clearInterval(o))},20);n.onerror=()=>{t(void 0),clearInterval(o)},n.src=e})}function qd(e){if(document.documentElement.scrollTop<700)return 0;const n=Array.from(document.querySelectorAll("img[src]")).filter(o=>e.includes(o.src));return Ui(n)}function Ui(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:Math.floor(-o/n.height*100)/100)}return 0}function Zd(e){const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")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 s of o){if(s!=="data-url"&&s!=="data-original"&&!s.includes("src"))continue;const i=e.getAttribute(s);if(i)return s==="src"&&e.naturalWidth&&e.naturalWidth<200?void 0:i.replace(/(\n|\t)/g," ").trim()}}function Ki({contentEl:e,imgEls:t,page:n,smooth:o}){var l;const r=n>=t.length,s=o?"smooth":"instant";if(r){(l=t[t.length-1])==null||l.scrollIntoView({block:"end",behavior:s});return}const i=t[Math.floor(n)];i&&setTimeout(()=>{const a=lr(e??document.documentElement),u=i.offsetTop+(r?1:n%1)*i.getBoundingClientRect().height;a==null||a.scrollTo({top:u,behavior:s})})}function lr(e){if(e)return e.scrollHeight>e.clientHeight?e===document.body?lr(document.documentElement)??e:e:lr(e.parentElement??void 0)}function Yd(e,t){return ae(()=>t.value?qi(e.value):e.value.map((n,o)=>[{img:n,index:o}]))}function qi(e,t=0){if(e.length===0)return[];const n=e.slice(0,2),r=n.some(s=>(s==null?void 0:s.size)&&s.size.width>s.size.height)?[n[0]]:n;return[r.map((s,i)=>({img:s,index:t+i})),...qi(e.slice(r.length),t+r.length)]}function Xd(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")),rr("tk:page",t,{writeDefaults:!1,mergeDefaults(o){return typeof o=="number"?Math.max(0,o):t}})}function Jd(){sessionStorage.removeItem("tk:page"),sessionStorage.removeItem("tk:page:path")}const ar=40;function Qd({page:e,direction:t,style:n,isLongStrip:o,isVertical:r,isRTL:s,spaceTop:i,scrollEl:l,interferePlayer:a,onChangedPage:u}){let p=!1,d=!1,g;const x=ep(X,300),I=dt(()=>d=!0,100);function _(){let m=null;na(async()=>{l.value&&l.value!==m&&(m=l.value,D(e.value),m==null||m.removeEventListener("scroll",x),l.value.addEventListener("scroll",x))});const{width:v,height:P}=af();de(v,Y),de(P,Y),de(n,Y),de(t,Y)}async function Y(){p=!0;const m=e.value;if(await Qe(),B()===m){p=!1;return}D(m)}function D(m,{smooth:v}={smooth:!1}){const P=l.value;if(!P)return;p=!0;const V=async()=>{await Qe(),p=!1,I()},E=Math.floor(m),R=P.querySelector(`[data-index="${E}"],[data-index2="${E}"]`);if(!R){V();return}a(async()=>{d?o.value?(await j(P,R,{smooth:v,page:m}),X()):(P.style.setProperty("scroll-snap-type","none"),await j(P,R,{smooth:v,page:m}),P.style.setProperty("scroll-snap-type",""),X()):o.value?await j(P,R,{smooth:v,page:m}):await j(P,R,{smooth:v,page:m}),await V()})}function X(){if(!l.value||p||!d)return;const m=B();m!==void 0&&m!==e.value&&u(m)}function B(){const m=k();if(!m)return;const v=+m.getAttribute("data-index")||0;return o.value?Math.floor((v+L(m))*100)/100:v}function k(){g??(g=l.value.getRootNode());const m=g.elementsFromPoint(r.value||!o.value?window.innerWidth/2:s.value?window.innerWidth-ar:ar,r.value&&o.value?i.value||ar:window.innerHeight/2);for(let v=0;v<m.length;v++){const P=m[v];if(P.hasAttribute("data-index"))return P;if(P===l.value)break}}function L(m){const v=m.getBoundingClientRect();return r.value?Math.abs(v.top-(i.value||0))/v.height:s.value?Math.max(0,v.right-l.value.clientWidth)/v.width:Math.abs(v.left)/v.width}let S=!1;async function j(m,v,P){if(S)return;S=!0;const V=r.value?m.scrollTop:m.scrollLeft,E=P.page,R=o.value?E%1:0,J=await bn(30,10,async()=>{await to();const O=r.value?v.offsetTop+R*v.offsetHeight-(o.value?i.value??0:0):s.value?v.offsetLeft-m.clientWidth+v.offsetWidth-R*v.offsetWidth:v.offsetLeft+R*v.offsetWidth;return E>.5&&Math.abs(O)<100?void 0:O})??0;if(!P.smooth){r.value?m.scrollTop=J:m.scrollLeft=J,S=!1;return}const ie=J-V,ne=30;let w=0;return new Promise(O=>{(function ee(){const we=Gd(w,V,ie,ne);r.value?m.scrollTop=we:m.scrollLeft=we,w++,w<=ne?requestAnimationFrame(ee):(O(),S=!1)})()})}return{init:_,goToPage:D}}function Gd(e,t,n,o){return n*(Math.pow(e/o-1,3)+1)+t}function ep(e,t){let n;return()=>{n||(n=setTimeout(()=>{n=void 0,e()},t))}}function tp({autoPlay:e,touchDevice:t,scrollEl:n,isVertical:o,isRTL:r,isLongStrip:s,speed:i,onLongIdle:l}){const a=rr("tk:isPlaying",e,{writeDefaults:!1,listenToStorageChanges:!1,mergeDefaults:(m,v)=>m===void 0?v:m===!0||m==="true"}),u=G(!1);let p,d;const g=dt(S,100);let x;const I=dt(()=>{u.value=!0,clearTimeout(x),x=a.value?void 0:setTimeout(l,15e3)},t?2e3:1e3),_=()=>setTimeout(()=>{u.value=!1,I(),x&&(clearTimeout(x),x=void 0)},30);_(),t||St(window,"mousemove",_);const Y=wi();ot(()=>{de(Y,m=>{a.value&&(m==="visible"?S():d==null||d())}),de(i,()=>D()),de(s,m=>{m||B()})}),Ne(()=>{clearTimeout(x),x=void 0});async function D(m){a.value&&(d==null||d()),m&&(await Qe(),await m()),a.value&&g()}function X(){a.value?B():k()}function B(){a.value&&(a.value=!1,d==null||d(),_())}function k(){!a.value&&s.value&&(a.value=!0,S(),_())}function L(){d==null||d()}function S(){const m=n.value;if(!a.value||!m)return;const v=o.value?m.scrollHeight-m.clientHeight:m.scrollWidth-m.clientWidth,P=j();if(v<=P){B();return}d=()=>{p=Date.now(),d=void 0};const V=Date.now();p=V;const E=.05*i.value,R=o.value?"scrollTop":"scrollLeft";let J=Date.now(),ie=0;const ne=()=>{if(p!==V)return;const w=Date.now(),O=w-J;J=w;const ee=E*O+ie;ee>=1?(ie=ee%1,m[R]+=(ee-ie)*(r.value?-1:1)):ie=ee,setTimeout(ne,1)};ne()}function j(){const m=n.value;return o.value?m.scrollTop:r.value?-m.scrollLeft:m.scrollLeft}return{isPlaying:a,isIdle:u,toggle:X,play:k,pause:L,resume:S,stop:B,interfere:D,awake:_}}function np(e){var d,g,x,I;let t=-1;const{vol:n,chap:o,title:r,slug:s,basePath:i}=e,l=r.chapters??[],a=(l==null?void 0:l.length)>1?l:[];a.length&&(t=a.findIndex(_=>_.slug===e.slug),t===-1&&(t=a.findIndex(_=>_.vol===n&&_.chap===o)),t===-1&&(t=a.findIndex(_=>s.startsWith(`${_.slug}-`)&&s.length-_.slug.length>3)));const u=((d=e.prev)==null?void 0:d.slug)??((g=a[t+1])==null?void 0:g.slug),p=((x=e.next)==null?void 0:x.slug)??((I=a[t-1])==null?void 0:I.slug);return{activeIndex:t,activeLabel:Zi({vol:n,chap:o}),chapters:a.map(_=>({label:Zi(_),path:cr(i,_.slug)})),prevPath:cr(i,u),nextPath:cr(i,p)}}function cr(e,t){return!t||t.includes("//")||t.startsWith("/")?t:(e||"/")+t}function Zi({vol:e,chap:t}){return e==null?`Ch.${t}`:`Vol.${e} ch.${t}`}const op={key:0,class:"ml-auto inline-flex gap-[1px] scale-95 origin-right"},rp=$e({...{inheritAttrs:!1},__name:"TrackkunReader",props:{raw:{},spec:{},page:{},spaceTop:{},spaceBottom:{},fullScreen:{type:Boolean},touchDevice:{type:Boolean},entryId:{},autoPlay:{type:Boolean},isGuest:{type:Boolean},isAutoShow:{type:Boolean}},emits:["pageChanged","fullScreenChanged","playingChanged","dispose","openEntry","addEntry","longIdle","finished"],setup(e,{emit:t}){const n=e,o=Qc({touchDevice:n.touchDevice}),r=Xd(n.page),{asyncImgs:s,isLoading:i,isWebtoon:l}=Hd({raw:n.raw,spec:n.spec,page:r,onReady(c){n.isAutoShow===!1?r.value=c:r.value>s.value.length&&(r.value=Math.max(0,s.value.length-1)),R.init()},onError:()=>{}}),{direction:a,style:u,isRTL:p,isDouble:d,isVertical:g,isLongStrip:x,gap:I,speed:_,zoom:Y}=mf({titleName:n.raw.title.name,isWebtoon:l}),D=Yd(s,d),X=ae(()=>r.value>=s.value.length),B=ae(()=>np(n.raw)),k=ae(()=>{var c,h;return p.value?(c=B.value)==null?void 0:c.nextPath:(h=B.value)==null?void 0:h.prevPath}),L=ae(()=>{var c,h;return p.value?(c=B.value)==null?void 0:c.prevPath:(h=B.value)==null?void 0:h.nextPath}),S=G(null),j=G(null),m=G(!1),v=tp({autoPlay:n.autoPlay,touchDevice:n.touchDevice,scrollEl:ae(()=>{var c;return(c=S.value)==null?void 0:c.$el}),speed:_,isRTL:p,isVertical:g,isLongStrip:x,onLongIdle:()=>t("longIdle")});de(v.isPlaying,c=>{c||et(!1),t("playingChanged",c)}),de(v.isIdle,c=>{v.isPlaying.value&&et(c)}),de(o,c=>{!c&&v.isIdle.value?v.awake():c&&n.fullScreen&&et()});const P=ae(()=>!n.touchDevice&&v.isIdle.value&&!o.value),V=ae({get(){return Y.value},set(c){v.interfere(()=>{Y.value=c})}});let E=!1;const R=Qd({page:r,style:u,direction:a,isLongStrip:x,isVertical:g,isRTL:p,spaceTop:ae(()=>n.spaceTop),scrollEl:ae(()=>{var c;return(c=S.value)==null?void 0:c.$el}),interferePlayer:c=>v.interfere(c),onChangedPage(c){if(c<0||c>=s.value.length+1)return;r.value=c,t("pageChanged",c),c>=s.value.length&&(et(!1),v.stop()),!E&&c>=s.value.length-2&&(E=!0,t("finished"))}}),J=()=>v.interfere(()=>to(100));au().addListener({onKeyDown:c=>{const h=x.value&&g.value,b=x.value&&!g.value,y=!x.value&&g.value,T=!x.value&&!g.value;switch(c.key){case" ":x.value&&(c.preventDefault(),v.toggle());break;case"ArrowUp":case"PageUp":h?J():y&&(c.preventDefault(),Tt());break;case"ArrowDown":case"PageDown":h?J():y&&(c.preventDefault(),ht());break;case"ArrowLeft":b?J():T?(c.preventDefault(),ze()):g.value&&ee();break;case"ArrowRight":b?J():T?(c.preventDefault(),en()):g.value&&O();break;case"f":tn();break}}}),ot(()=>{St("fullscreenchange",()=>{m.value=!!document.fullscreenElement})});function ne(){x.value||R.goToPage(Math.floor(r.value),{smooth:!0})}function w(){if(v.isPlaying.value){!n.fullScreen||!n.touchDevice?v.stop():v.awake();return}et()}function O(){var c;Re((c=B.value)==null?void 0:c.nextPath)}function ee(){var c;Re((c=B.value)==null?void 0:c.prevPath)}function we(c){var b,y,T;const h=(T=(y=(b=B.value)==null?void 0:b.chapters)==null?void 0:y[c])==null?void 0:T.path;h&&Re(h)}function Re(c){c&&(location.href=c.includes("://")?c:location.origin+c)}function ze(){p.value?ht():Tt()}function en(){p.value?Tt():ht()}function Tt(){var b;const c=D.value,h=X.value?c[c.length-1][0].index:(b=c[je()-1])==null?void 0:b[0].index;h!==void 0?R.goToPage(h):ee()}function ht(){var h;const c=X.value?Math.floor(r.value)+1:((h=D.value[je()+1])==null?void 0:h[0].index)??s.value.length;R.goToPage(c)}function je(){const c=Math.floor(r.value),h=D.value.findIndex(b=>b.some(({index:y})=>y===c));return h===-1?D.value.length-1:h}function gt(){Jd(),v.stop(),t("dispose")}async function et(c){o.value&&!n.fullScreen||t("fullScreenChanged",typeof c=="boolean"?c:!n.fullScreen)}function tt(){n.entryId?f():wn()}function tn(){var c,h;document.fullscreenElement?document.exitFullscreen():(h=(c=j.value)==null?void 0:c.$el)==null||h.requestFullscreen()}function wn(){v.stop(),t("addEntry")}function f(){v.stop(),t("openEntry",n.entryId)}return(c,h)=>{const b=ir,y=Hi,T=Vi,z=Fi,$=Di,M=Bi,C=Jn,H=Ai,N=sr,W=ji,Q=zi,oe=Li,fe=Ei,ue=Ii,me=Oi,Ve=$i,$t=Ti,no=Jo,Rt=Xo,oo=ti,Ee=Gs;return A(),ke(Ee,{ref_key:"root",ref:j,"full-screen":!!c.fullScreen,idle:P.value,"space-top":n.spaceTop,"space-bottom":n.spaceBottom,"touch-device":c.touchDevice,rtl:F(p),onClick:h[10]||(h[10]=Pt(()=>{},["stop"]))},ls({back:se(()=>[K(C,{href:c.raw.title.url,title:c.raw.title.name},{default:se(()=>[K(M)]),_:1},8,["href","title"])]),exit:se(()=>[K(C,{title:"Hide reader",onClick:gt},{default:se(()=>[K(H)]),_:1})]),"chapter-nav":se(()=>[K(N,{modelValue:B.value.activeIndex,label:B.value.activeLabel,items:B.value.chapters,"onUpdate:modelValue":we},{item:se(({item:pe})=>[wt(lt(pe.label),1)]),_:1},8,["modelValue","label","items"]),k.value||L.value?(A(),Z("div",op,[K(C,{title:F(p)?"Next":"Previous",href:k.value,disabled:!k.value,class:"!rounded-r-none"},{default:se(()=>[K(W)]),_:1},8,["title","href","disabled"]),K(C,{title:F(p)?"Previous":"Next",href:L.value,disabled:!L.value,class:"!rounded-l-none"},{default:se(()=>[K(Q)]),_:1},8,["title","href","disabled"])])):Fe("",!0)]),entry:se(()=>[K(C,{title:c.entryId?"View entry":"Add to Trackkun",onClick:tt},{default:se(()=>[c.entryId?(A(),ke(fe,{key:0})):(A(),ke(ue,{key:1}))]),_:1},8,["title"])]),settings:se(()=>[K($t,{"reader-style":F(u),"onUpdate:readerStyle":h[3]||(h[3]=pe=>be(u)?u.value=pe:null),direction:F(a),"onUpdate:direction":h[4]||(h[4]=pe=>be(a)?a.value=pe:null),gap:F(I),"onUpdate:gap":h[5]||(h[5]=pe=>be(I)?I.value=pe:null),speed:F(_),"onUpdate:speed":h[6]||(h[6]=pe=>be(_)?_.value=pe:null),zoom:V.value,"onUpdate:zoom":h[7]||(h[7]=pe=>V.value=pe),webtoon:F(l),disabled:F(i)},null,8,["reader-style","direction","gap","speed","zoom","webtoon","disabled"])]),"reset-zoom":se(()=>[K(Jt,{name:"fade","enter-from-class":"opacity-0","leave-to-class":"opacity-0"},{default:se(()=>[K(oo,{zoom:V.value,onClick:h[9]||(h[9]=Pt(()=>V.value=1,["stop"])),class:"duration-200"},null,8,["zoom"])]),_:1})]),progress:se(()=>[U("div",{class:"h-0.5 rounded-t-sm max-w-full bg-orange-500 duration-500",style:Ue({width:`${F(r)/(F(s).length-1)*100}%`})},null,4)]),default:se(()=>[F(i)||!F(s).length?(A(),ke(b,{key:0})):(A(),Z(Ce,{key:1},[K(T,{ref_key:"body",ref:S,zoom:V.value,"onUpdate:zoom":h[0]||(h[0]=pe=>V.value=pe),pages:F(D),"total-imgs":F(s).length,direction:F(a),gap:F(I),"is-long-strip":F(x),isRTL:F(p),"is-vertical":F(g),"space-top":c.spaceTop,"space-bottom":n.spaceBottom,"touch-device":c.touchDevice,busy:F(o),idle:P.value,"play-controller":F(v),onPrev:Tt,onNext:ht,onClick:w,onDragEnd:ne,onWheelPassive:h[1]||(h[1]=()=>F(v).interfere())},ls({_:2},[!F(i)&&F(s).length?{name:"end",fn:se(()=>[K(y,{"has-next":!!B.value.nextPath,onNext:O,onHide:gt},null,8,["has-next"])]),key:"0"}:void 0]),1032,["zoom","pages","total-imgs","direction","gap","is-long-strip","isRTL","is-vertical","space-top","space-bottom","touch-device","busy","idle","play-controller"]),ut(K(z,{direction:F(a)},null,8,["direction"]),[[Xs,!X.value]]),X.value?Fe("",!0):(A(),ke($,{key:0,playing:!!F(v).isPlaying.value},null,8,["playing"]))],64))]),_:2},[F(D).length?{name:"page-nav",fn:se(()=>[K(oe,{"model-value":F(r),disabled:F(i),pages:F(D),"total-imgs":F(s).length,"onUpdate:modelValue":h[2]||(h[2]=pe=>F(R).goToPage(pe))},null,8,["model-value","disabled","pages","total-imgs"])]),key:"0"}:void 0,c.touchDevice?void 0:{name:"full-screen",fn:se(()=>[K(C,{title:`${m.value?"Exit":"Enter"} fullscreen (F)`,onClick:tn},{default:se(()=>[m.value?(A(),ke(me,{key:0})):(A(),ke(Ve,{key:1}))]),_:1},8,["title"])]),key:"1"},F(x)?{name:"play",fn:se(()=>[K(C,{title:`${F(v).isPlaying.value?"Pause":"Play"} (Space)`,disabled:F(i),onClick:h[8]||(h[8]=()=>F(v).toggle())},{default:se(()=>[F(v).isPlaying.value?(A(),ke(no,{key:0})):(A(),ke(Rt,{key:1}))]),_:1},8,["title","disabled"])]),key:"2"}:void 0]),1032,["full-screen","idle","space-top","space-bottom","touch-device","rtl"])}}}),Yi=ge(rp,[["styles",[`/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Helvetica,sans-serif;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-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}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{color:inherit;font-family:inherit;font-size:100%;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}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-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-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: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{bottom:0;left:0;right:0;top:0}.inset-2{bottom:8px;left:8px;right:8px;top:8px}.left-0{left:0}.top-0{top:0}.bottom-0{bottom:0}.left-3{left:12px}.bottom-full{bottom:100%}.top-full{top:100%}.left-1\\/2{left:50%}.right-0{right:0}.top-1\\/2{top:50%}.top-1{top:4px}.z-50{z-index:50}.z-10{z-index:10}.z-\\[9999999999\\]{z-index:9999999999}.-z-10{z-index:-10}.z-30{z-index:30}.z-20{z-index:20}.m-auto{margin:auto}.-mx-12{margin-left:-48px;margin-right:-48px}.-my-12{margin-bottom:-48px;margin-top:-48px}.ml-auto{margin-left:auto}.-ml-20{margin-left:-80px}.ml-1{margin-left:4px}.-mr-3{margin-right:-12px}.mb-8{margin-bottom:32px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-0\\.5{height:2px}.h-0{height:0}.h-full{height:100%}.h-12{height:48px}.h-\\[27rem\\]{height:432px}.h-16{height:64px}.h-10{height:40px}.h-4{height:16px}.h-9{height:36px}.h-24{height:96px}.h-1\\.5{height:6px}.h-1{height:4px}.h-7{height:28px}.h-8{height:32px}.h-6{height:24px}.h-20{height:80px}.max-h-\\[80vh\\]{max-height:80vh}.max-h-\\[70vh\\]{max-height:70vh}.max-h-full{max-height:100%}.w-full{width:100%}.w-28{width:112px}.w-40{width:160px}.w-4{width:16px}.w-10{width:40px}.w-12{width:48px}.w-20{width:80px}.w-24{width:96px}.w-1\\/3{width:33.333333%}.w-\\[4\\.5rem\\]{width:72px}.max-w-full{max-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-right{transform-origin:right}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.translate-y-full{--tw-translate-y:100%}.-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-1\\.5{--tw-translate-y:-6px}.-translate-y-1{--tw-translate-y:-4px}.-translate-y-1,.translate-y-1\\.5{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\\.5{--tw-translate-y:6px}.translate-y-1{--tw-translate-y:4px}.-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-x-1\\/2{--tw-translate-x:-50%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{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-0{--tw-translate-y:0px}.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-pointer{cursor:pointer}.cursor-default{cursor:default}.cursor-none{cursor:none}.cursor-auto{cursor:auto}.cursor-grabbing{cursor:grabbing}.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-\\[1px\\]{gap:1px}.gap-6{gap:24px}.gap-1{gap:4px}.gap-3{gap:12px}.gap-4{gap:16px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overscroll-contain{overscroll-behavior:contain}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-2xl{border-radius:16px}.rounded-sm{border-radius:2px}.rounded-\\[2\\.5rem\\]{border-radius:40px}.\\!rounded-r-none{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.\\!rounded-l-none{border-bottom-left-radius:0!important;border-top-left-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-2{border-width:2px}.border{border-width:1px}.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-none{border-style:none}.border-stone-600{--tw-border-opacity:1;border-color:rgb(87 83 78/var(--tw-border-opacity))}.border-stone-400{--tw-border-opacity:1;border-color:rgb(168 162 158/var(--tw-border-opacity))}.border-stone-300{--tw-border-opacity:1;border-color:rgb(214 211 209/var(--tw-border-opacity))}.border-opacity-30{--tw-border-opacity:.3}.bg-orange-500{--tw-bg-opacity:1;background-color:rgb(249 115 22/var(--tw-bg-opacity))}.bg-stone-600{--tw-bg-opacity:1;background-color:rgb(87 83 78/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-stone-800{--tw-bg-opacity:1;background-color:rgb(41 37 36/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/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-opacity-50{--tw-bg-opacity:.5}.bg-opacity-90{--tw-bg-opacity:.9}.bg-opacity-80{--tw-bg-opacity:.8}.bg-opacity-40{--tw-bg-opacity:.4}.p-6{padding:24px}.p-2{padding:8px}.p-4{padding:16px}.p-1{padding:4px}.px-6{padding-left:24px;padding-right:24px}.px-4{padding-left:16px;padding-right:16px}.py-2{padding-bottom:8px;padding-top:8px}.px-3{padding-left:12px;padding-right:12px}.py-1{padding-bottom:4px;padding-top:4px}.pt-3{padding-top:12px}.pb-12{padding-bottom:48px}.pl-1{padding-left:4px}.pb-4{padding-bottom:16px}.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-xl{font-size:20px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.font-medium{font-weight:500}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.text-stone-300{--tw-text-opacity:1;color:rgb(214 211 209/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(184 92 56/var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.text-stone-100{--tw-text-opacity:1;color:rgb(245 245 244/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-50{opacity:.5}.opacity-100{opacity:1}.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-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.duration-150{transition-duration:.15s}.duration-100{transition-duration:.1s}.ease-linear{transition-timing-function:linear}.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-300:hover{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.hover\\:bg-stone-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 244/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-stone-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 249/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-400:hover{--tw-text-opacity:1;color:rgb(168 162 158/var(--tw-text-opacity))}.hover\\:text-stone-100:hover{--tw-text-opacity:1;color:rgb(245 245 244/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:640px){.sm\\:inset-3{bottom:12px;left:12px;right:12px;top:12px}.sm\\:w-\\[32rem\\]{width:512px}.sm\\:pb-2{padding-bottom:8px}}@media (min-width:768px){.md\\:px-8{padding-left:32px;padding-right:32px}.md\\:pb-0{padding-bottom:0}}@media (min-width:1024px){.lg\\:px-10{padding-left:40px;padding-right:40px}}@media (min-width:1280px){.xl\\:px-12{padding-left:48px;padding-right:48px}}
|
|
7
|
+
`]]]),sp=Object.freeze(Object.defineProperty({__proto__:null,default:Yi},Symbol.toStringTag,{value:"Module"})),ip={},lp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},ap=[U("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 cp(e,t){return A(),Z("svg",lp,ap)}const up=Object.freeze(Object.defineProperty({__proto__:null,default:ge(ip,[["render",cp]])},Symbol.toStringTag,{value:"Module"})),fp=`html.gear-second,html.gear-second *{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;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 iframe,html.gear-second body>footer,html.gear-second body>header,html.gear-second body>nav{display:none!important;height:0!important;min-height:0!important;min-width:0!important;visibility:hidden!important;width:0!important}html.gear-second body :not(gear-second){opacity:0!important;pointer-events:none!important}html.gear-second body gear-second{bottom:0!important;display:block!important;left:0!important;opacity:1!important;pointer-events:auto!important;position:fixed!important;right:0!important;top:0!important;transform:none!important;visibility:visible!important;z-index:10000000000000000}
|
|
8
|
+
`,yn="gear-second",ur={raw:{},spec:void 0,page:0,spaceTop:void 0,spaceBottom:void 0,fullScreen:void 0,touchDevice:void 0,entryId:void 0,autoPlay:void 0,adBlock:void 0,isAutoShow:void 0,textScaleFactor:void 0,isGuest:void 0,onDispose:void 0,onFullScreenChanged:void 0,onPlayingChanged:void 0,onPageChanged:void 0,onOpenEntry:void 0,onAddEntry:void 0,onLongIdle:void 0,onFinished:void 0},Se={el:void 0,controller:void 0,data:rn({...ur})};async function dp(e){if(Se.controller)return Se.data.raw=e.raw,Se.controller;const t=()=>{Se.el&&(document.body.removeChild(Se.el),Se.el=void 0),document.documentElement.classList.remove(yn),Object.assign(Se.data,ur),Se.controller=void 0};return Se.controller={triggerDoubleTap:(n,o)=>kd(n,o),updateArgs(n){Object.assign(Se.data,n),fr()},dispose:t},document.documentElement.classList.add(yn),await pp(),Object.assign(Se.data,ur,e,{onDispose:()=>{var n;t(),(n=e==null?void 0:e.onDispose)==null||n.call(e)}}),fr(),Se.el||(Se.el=document.createElement(yn),document.body.appendChild(Se.el)),Se.controller}async function pp(){if(window.customElements.get(yn))return;const e=document.createElement("style");e.appendChild(document.createTextNode(fp)),document.head.appendChild(e);const t=dc({styles:[await hp()],data:()=>({readerData:Se.data}),render(){return zs(Yi,{...this.readerData,onFullScreenChanged:n=>{var o,r;this.readerData.fullScreen=n,(r=(o=this.readerData).onFullScreenChanged)==null||r.call(o,n),fr()},onPageChanged:n=>{var o,r;this.readerData.page=n,(r=(o=this.readerData).onPageChanged)==null||r.call(o,n)}})}});window.customElements.define(yn,t)}async function hp(){const e=Object.assign({"./TrackkunReader.vue":sp,"./components/AutoNext.vue":Rd,"./components/BottomSheet.vue":pu,"./components/ButtonDropdown.vue":Zf,"./components/ButtonIcon.vue":tu,"./components/ButtonReaderSettings.vue":vf,"./components/ButtonResetZoom.vue":Rc,"./components/DirectionToast.vue":xd,"./components/InputPercentage.vue":mu,"./components/InputSelect.vue":wu,"./components/LoadingIndicator.vue":Ed,"./components/PageNav.vue":Yf,"./components/PauseToast.vue":md,"./components/ReaderBody.vue":Bd,"./components/ReaderLayout.vue":Mc,"./components/TableField.vue":bu,"./components/ZoomWrapper.vue":Pd,"./components/icons/IconBack.vue":gd,"./components/icons/IconBookmarkNew.vue":Mf,"./components/icons/IconBookmarked.vue":Bf,"./components/icons/IconChevronLeft.vue":sd,"./components/icons/IconChevronRight.vue":ed,"./components/icons/IconClose.vue":iu,"./components/icons/IconExclamationCircle.vue":up,"./components/icons/IconFullscreen.vue":xf,"./components/icons/IconFullscreenExit.vue":Tf,"./components/icons/IconNext.vue":wd,"./components/icons/IconPause.vue":Jc,"./components/icons/IconPlay.vue":Kc,"./components/icons/IconReaderExit.vue":ud,"./components/icons/IconSettings.vue":Su,"./components/icons/IconTriangle.vue":Vf,"./components/icons/IconZoom.vue":Bc}),t=[];for(const n in e){const o=e[n];t.push(o.default.styles)}return t.join("")}function fr(){if(Se.data.adBlock)return;const{spaceTop:e,fullScreen:t}=Se.data,n=document.querySelector(":root");n==null||n.style.setProperty("--tk-safe-top",`${t?0:(e||0)+56}px`)}return dp});
|