UNPKG

@superdoc-dev/esign

Version:

React eSignature component for SuperDoc

1,733 lines 3.15 MB
const Po = globalThis || void 0 || self; function VW(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } var L5 = { exports: {} }, Dn = L5.exports = {}, Li, Pi; function Ex() { throw new Error("setTimeout has not been defined"); } function Cx() { throw new Error("clearTimeout has not been defined"); } (function() { try { typeof setTimeout == "function" ? Li = setTimeout : Li = Ex; } catch { Li = Ex; } try { typeof clearTimeout == "function" ? Pi = clearTimeout : Pi = Cx; } catch { Pi = Cx; } })(); function P5(t) { if (Li === setTimeout) return setTimeout(t, 0); if ((Li === Ex || !Li) && setTimeout) return Li = setTimeout, setTimeout(t, 0); try { return Li(t, 0); } catch { try { return Li.call(null, t, 0); } catch { return Li.call(this, t, 0); } } } function jW(t) { if (Pi === clearTimeout) return clearTimeout(t); if ((Pi === Cx || !Pi) && clearTimeout) return Pi = clearTimeout, clearTimeout(t); try { return Pi(t); } catch { try { return Pi.call(null, t); } catch { return Pi.call(this, t); } } } var Ks = [], Xu = !1, Kl, Vg = -1; function WW() { !Xu || !Kl || (Xu = !1, Kl.length ? Ks = Kl.concat(Ks) : Vg = -1, Ks.length && B5()); } function B5() { if (!Xu) { var t = P5(WW); Xu = !0; for (var e = Ks.length; e; ) { for (Kl = Ks, Ks = []; ++Vg < e; ) Kl && Kl[Vg].run(); Vg = -1, e = Ks.length; } Kl = null, Xu = !1, jW(t); } } Dn.nextTick = function(t) { var e = new Array(arguments.length - 1); if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n]; Ks.push(new F5(t, e)), Ks.length === 1 && !Xu && P5(B5); }; function F5(t, e) { this.fun = t, this.array = e; } F5.prototype.run = function() { this.fun.apply(null, this.array); }; Dn.title = "browser"; Dn.browser = !0; Dn.env = {}; Dn.argv = []; Dn.version = ""; Dn.versions = {}; function da() { } Dn.on = da; Dn.addListener = da; Dn.once = da; Dn.off = da; Dn.removeListener = da; Dn.removeAllListeners = da; Dn.emit = da; Dn.prependListener = da; Dn.prependOnceListener = da; Dn.listeners = function(t) { return []; }; Dn.binding = function(t) { throw new Error("process.binding is not supported"); }; Dn.cwd = function() { return "/"; }; Dn.chdir = function(t) { throw new Error("process.chdir is not supported"); }; Dn.umask = function() { return 0; }; var qW = L5.exports; const ce = /* @__PURE__ */ VW(qW); /** * @vue/shared v3.5.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ // @__NO_SIDE_EFFECTS__ function fa(t) { const e = /* @__PURE__ */ Object.create(null); for (const n of t.split(",")) e[n] = 1; return (n) => n in e; } const Ut = ce.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Ju = ce.env.NODE_ENV !== "production" ? Object.freeze([]) : [], qn = () => { }, z5 = () => !1, Wp = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), Fy = (t) => t.startsWith("onUpdate:"), An = Object.assign, AC = (t, e) => { const n = t.indexOf(e); n > -1 && t.splice(n, 1); }, KW = Object.prototype.hasOwnProperty, Dt = (t, e) => KW.call(t, e), tt = Array.isArray, sc = (t) => kw(t) === "[object Map]", H5 = (t) => kw(t) === "[object Set]", st = (t) => typeof t == "function", on = (t) => typeof t == "string", ha = (t) => typeof t == "symbol", Rt = (t) => t !== null && typeof t == "object", xC = (t) => (Rt(t) || st(t)) && st(t.then) && st(t.catch), U5 = Object.prototype.toString, kw = (t) => U5.call(t), SC = (t) => kw(t).slice(8, -1), V5 = (t) => kw(t) === "[object Object]", EC = (t) => on(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, eh = /* @__PURE__ */ fa( // the leading comma is intentional so empty string "" is also included ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ), GW = /* @__PURE__ */ fa( "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" ), Tw = (t) => { const e = /* @__PURE__ */ Object.create(null); return ((n) => e[n] || (e[n] = t(n))); }, XW = /-\w/g, zr = Tw( (t) => t.replace(XW, (e) => e.slice(1).toUpperCase()) ), JW = /\B([A-Z])/g, sa = Tw( (t) => t.replace(JW, "-$1").toLowerCase() ), Oc = Tw((t) => t.charAt(0).toUpperCase() + t.slice(1)), Rl = Tw( (t) => t ? `on${Oc(t)}` : "" ), Ya = (t, e) => !Object.is(t, e), Du = (t, ...e) => { for (let n = 0; n < t.length; n++) t[n](...e); }, zy = (t, e, n, r = !1) => { Object.defineProperty(t, e, { configurable: !0, enumerable: !1, writable: r, value: n }); }, kx = (t) => { const e = parseFloat(t); return isNaN(e) ? t : e; }, YW = (t) => { const e = on(t) ? Number(t) : NaN; return isNaN(e) ? t : e; }; let h3; const qp = () => h3 || (h3 = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof Po < "u" ? Po : {}); function Ct(t) { if (tt(t)) { const e = {}; for (let n = 0; n < t.length; n++) { const r = t[n], o = on(r) ? tq(r) : Ct(r); if (o) for (const i in o) e[i] = o[i]; } return e; } else if (on(t) || Rt(t)) return t; } const ZW = /;(?![^(]*\))/g, QW = /:([^]+)/, eq = /\/\*[^]*?\*\//g; function tq(t) { const e = {}; return t.replace(eq, "").split(ZW).forEach((n) => { if (n) { const r = n.split(QW); r.length > 1 && (e[r[0].trim()] = r[1].trim()); } }), e; } function Pt(t) { let e = ""; if (on(t)) e = t; else if (tt(t)) for (let n = 0; n < t.length; n++) { const r = Pt(t[n]); r && (e += r + " "); } else if (Rt(t)) for (const n in t) t[n] && (e += n + " "); return e.trim(); } function nq(t) { if (!t) return null; let { class: e, style: n } = t; return e && !on(e) && (t.class = Pt(e)), n && (t.style = Ct(n)), t; } const rq = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", oq = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view", iq = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics", sq = /* @__PURE__ */ fa(rq), aq = /* @__PURE__ */ fa(oq), lq = /* @__PURE__ */ fa(iq), cq = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", uq = /* @__PURE__ */ fa(cq); function j5(t) { return !!t || t === ""; } const W5 = (t) => !!(t && t.__v_isRef === !0), jt = (t) => on(t) ? t : t == null ? "" : tt(t) || Rt(t) && (t.toString === U5 || !st(t.toString)) ? W5(t) ? jt(t.value) : JSON.stringify(t, q5, 2) : String(t), q5 = (t, e) => W5(e) ? q5(t, e.value) : sc(e) ? { [`Map(${e.size})`]: [...e.entries()].reduce( (n, [r, o], i) => (n[Y0(r, i) + " =>"] = o, n), {} ) } : H5(e) ? { [`Set(${e.size})`]: [...e.values()].map((n) => Y0(n)) } : ha(e) ? Y0(e) : Rt(e) && !tt(e) && !V5(e) ? String(e) : e, Y0 = (t, e = "") => { var n; return ( // Symbol.description in es2019+ so we need to cast here to pass // the lib: es2016 check ha(t) ? `Symbol(${(n = t.description) != null ? n : e})` : t ); }; function xo(t, ...e) { console.warn(`[Vue warn] ${t}`, ...e); } let Ar; class K5 { constructor(e = !1) { this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = Ar, !e && Ar && (this.index = (Ar.scopes || (Ar.scopes = [])).push( this ) - 1); } get active() { return this._active; } pause() { if (this._active) { this._isPaused = !0; let e, n; if (this.scopes) for (e = 0, n = this.scopes.length; e < n; e++) this.scopes[e].pause(); for (e = 0, n = this.effects.length; e < n; e++) this.effects[e].pause(); } } /** * Resumes the effect scope, including all child scopes and effects. */ resume() { if (this._active && this._isPaused) { this._isPaused = !1; let e, n; if (this.scopes) for (e = 0, n = this.scopes.length; e < n; e++) this.scopes[e].resume(); for (e = 0, n = this.effects.length; e < n; e++) this.effects[e].resume(); } } run(e) { if (this._active) { const n = Ar; try { return Ar = this, e(); } finally { Ar = n; } } else ce.env.NODE_ENV !== "production" && xo("cannot run an inactive effect scope."); } /** * This should only be called on non-detached scopes * @internal */ on() { ++this._on === 1 && (this.prevScope = Ar, Ar = this); } /** * This should only be called on non-detached scopes * @internal */ off() { this._on > 0 && --this._on === 0 && (Ar = this.prevScope, this.prevScope = void 0); } stop(e) { if (this._active) { this._active = !1; let n, r; for (n = 0, r = this.effects.length; n < r; n++) this.effects[n].stop(); for (this.effects.length = 0, n = 0, r = this.cleanups.length; n < r; n++) this.cleanups[n](); if (this.cleanups.length = 0, this.scopes) { for (n = 0, r = this.scopes.length; n < r; n++) this.scopes[n].stop(!0); this.scopes.length = 0; } if (!this.detached && this.parent && !e) { const o = this.parent.scopes.pop(); o && o !== this && (this.parent.scopes[this.index] = o, o.index = this.index); } this.parent = void 0; } } } function G5(t) { return new K5(t); } function X5() { return Ar; } function dq(t, e = !1) { Ar ? Ar.cleanups.push(t) : ce.env.NODE_ENV !== "production" && !e && xo( "onScopeDispose() is called when there is no active effect scope to be associated with." ); } let Ht; const Z0 = /* @__PURE__ */ new WeakSet(); class J5 { constructor(e) { this.fn = e, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, Ar && Ar.active && Ar.effects.push(this); } pause() { this.flags |= 64; } resume() { this.flags & 64 && (this.flags &= -65, Z0.has(this) && (Z0.delete(this), this.trigger())); } /** * @internal */ notify() { this.flags & 2 && !(this.flags & 32) || this.flags & 8 || Z5(this); } run() { if (!(this.flags & 1)) return this.fn(); this.flags |= 2, p3(this), Q5(this); const e = Ht, n = ii; Ht = this, ii = !0; try { return this.fn(); } finally { ce.env.NODE_ENV !== "production" && Ht !== this && xo( "Active effect was not restored correctly - this is likely a Vue internal bug." ), e$(this), Ht = e, ii = n, this.flags &= -3; } } stop() { if (this.flags & 1) { for (let e = this.deps; e; e = e.nextDep) TC(e); this.deps = this.depsTail = void 0, p3(this), this.onStop && this.onStop(), this.flags &= -2; } } trigger() { this.flags & 64 ? Z0.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty(); } /** * @internal */ runIfDirty() { Tx(this) && this.run(); } get dirty() { return Tx(this); } } let Y5 = 0, th, nh; function Z5(t, e = !1) { if (t.flags |= 8, e) { t.next = nh, nh = t; return; } t.next = th, th = t; } function CC() { Y5++; } function kC() { if (--Y5 > 0) return; if (nh) { let e = nh; for (nh = void 0; e; ) { const n = e.next; e.next = void 0, e.flags &= -9, e = n; } } let t; for (; th; ) { let e = th; for (th = void 0; e; ) { const n = e.next; if (e.next = void 0, e.flags &= -9, e.flags & 1) try { e.trigger(); } catch (r) { t || (t = r); } e = n; } } if (t) throw t; } function Q5(t) { for (let e = t.deps; e; e = e.nextDep) e.version = -1, e.prevActiveLink = e.dep.activeLink, e.dep.activeLink = e; } function e$(t) { let e, n = t.depsTail, r = n; for (; r; ) { const o = r.prevDep; r.version === -1 ? (r === n && (n = o), TC(r), fq(r)) : e = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = o; } t.deps = e, t.depsTail = n; } function Tx(t) { for (let e = t.deps; e; e = e.nextDep) if (e.dep.version !== e.version || e.dep.computed && (t$(e.dep.computed) || e.dep.version !== e.version)) return !0; return !!t._dirty; } function t$(t) { if (t.flags & 4 && !(t.flags & 16) || (t.flags &= -17, t.globalVersion === Bh) || (t.globalVersion = Bh, !t.isSSR && t.flags & 128 && (!t.deps && !t._dirty || !Tx(t)))) return; t.flags |= 2; const e = t.dep, n = Ht, r = ii; Ht = t, ii = !0; try { Q5(t); const o = t.fn(t._value); (e.version === 0 || Ya(o, t._value)) && (t.flags |= 128, t._value = o, e.version++); } catch (o) { throw e.version++, o; } finally { Ht = n, ii = r, e$(t), t.flags &= -3; } } function TC(t, e = !1) { const { dep: n, prevSub: r, nextSub: o } = t; if (r && (r.nextSub = o, t.prevSub = void 0), o && (o.prevSub = r, t.nextSub = void 0), ce.env.NODE_ENV !== "production" && n.subsHead === t && (n.subsHead = o), n.subs === t && (n.subs = r, !r && n.computed)) { n.computed.flags &= -5; for (let i = n.computed.deps; i; i = i.nextDep) TC(i, !0); } !e && !--n.sc && n.map && n.map.delete(n.key); } function fq(t) { const { prevDep: e, nextDep: n } = t; e && (e.nextDep = n, t.prevDep = void 0), n && (n.prevDep = e, t.nextDep = void 0); } let ii = !0; const n$ = []; function li() { n$.push(ii), ii = !1; } function ci() { const t = n$.pop(); ii = t === void 0 ? !0 : t; } function p3(t) { const { cleanup: e } = t; if (t.cleanup = void 0, e) { const n = Ht; Ht = void 0; try { e(); } finally { Ht = n; } } } let Bh = 0, hq = class { constructor(e, n) { this.sub = e, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0; } }; class _C { // TODO isolatedDeclarations "__v_skip" constructor(e) { this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, ce.env.NODE_ENV !== "production" && (this.subsHead = void 0); } track(e) { if (!Ht || !ii || Ht === this.computed) return; let n = this.activeLink; if (n === void 0 || n.sub !== Ht) n = this.activeLink = new hq(Ht, this), Ht.deps ? (n.prevDep = Ht.depsTail, Ht.depsTail.nextDep = n, Ht.depsTail = n) : Ht.deps = Ht.depsTail = n, r$(n); else if (n.version === -1 && (n.version = this.version, n.nextDep)) { const r = n.nextDep; r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = Ht.depsTail, n.nextDep = void 0, Ht.depsTail.nextDep = n, Ht.depsTail = n, Ht.deps === n && (Ht.deps = r); } return ce.env.NODE_ENV !== "production" && Ht.onTrack && Ht.onTrack( An( { effect: Ht }, e ) ), n; } trigger(e) { this.version++, Bh++, this.notify(e); } notify(e) { CC(); try { if (ce.env.NODE_ENV !== "production") for (let n = this.subsHead; n; n = n.nextSub) n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger( An( { effect: n.sub }, e ) ); for (let n = this.subs; n; n = n.prevSub) n.sub.notify() && n.sub.dep.notify(); } finally { kC(); } } } function r$(t) { if (t.dep.sc++, t.sub.flags & 4) { const e = t.dep.computed; if (e && !t.dep.subs) { e.flags |= 20; for (let r = e.deps; r; r = r.nextDep) r$(r); } const n = t.dep.subs; n !== t && (t.prevSub = n, n && (n.nextSub = t)), ce.env.NODE_ENV !== "production" && t.dep.subsHead === void 0 && (t.dep.subsHead = t), t.dep.subs = t; } } const Hy = /* @__PURE__ */ new WeakMap(), ac = Symbol( ce.env.NODE_ENV !== "production" ? "Object iterate" : "" ), _x = Symbol( ce.env.NODE_ENV !== "production" ? "Map keys iterate" : "" ), Fh = Symbol( ce.env.NODE_ENV !== "production" ? "Array iterate" : "" ); function Wn(t, e, n) { if (ii && Ht) { let r = Hy.get(t); r || Hy.set(t, r = /* @__PURE__ */ new Map()); let o = r.get(n); o || (r.set(n, o = new _C()), o.map = r, o.key = n), ce.env.NODE_ENV !== "production" ? o.track({ target: t, type: e, key: n }) : o.track(); } } function Hi(t, e, n, r, o, i) { const s = Hy.get(t); if (!s) { Bh++; return; } const a = (l) => { l && (ce.env.NODE_ENV !== "production" ? l.trigger({ target: t, type: e, key: n, newValue: r, oldValue: o, oldTarget: i }) : l.trigger()); }; if (CC(), e === "clear") s.forEach(a); else { const l = tt(t), c = l && EC(n); if (l && n === "length") { const u = Number(r); s.forEach((d, f) => { (f === "length" || f === Fh || !ha(f) && f >= u) && a(d); }); } else switch ((n !== void 0 || s.has(void 0)) && a(s.get(n)), c && a(s.get(Fh)), e) { case "add": l ? c && a(s.get("length")) : (a(s.get(ac)), sc(t) && a(s.get(_x))); break; case "delete": l || (a(s.get(ac)), sc(t) && a(s.get(_x))); break; case "set": sc(t) && a(s.get(ac)); break; } } kC(); } function pq(t, e) { const n = Hy.get(t); return n && n.get(e); } function fu(t) { const e = dt(t); return e === t ? e : (Wn(e, "iterate", Fh), Hr(t) ? e : e.map(dr)); } function _w(t) { return Wn(t = dt(t), "iterate", Fh), t; } const mq = { __proto__: null, [Symbol.iterator]() { return Q0(this, Symbol.iterator, dr); }, concat(...t) { return fu(this).concat( ...t.map((e) => tt(e) ? fu(e) : e) ); }, entries() { return Q0(this, "entries", (t) => (t[1] = dr(t[1]), t)); }, every(t, e) { return Ts(this, "every", t, e, void 0, arguments); }, filter(t, e) { return Ts(this, "filter", t, e, (n) => n.map(dr), arguments); }, find(t, e) { return Ts(this, "find", t, e, dr, arguments); }, findIndex(t, e) { return Ts(this, "findIndex", t, e, void 0, arguments); }, findLast(t, e) { return Ts(this, "findLast", t, e, dr, arguments); }, findLastIndex(t, e) { return Ts(this, "findLastIndex", t, e, void 0, arguments); }, // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement forEach(t, e) { return Ts(this, "forEach", t, e, void 0, arguments); }, includes(...t) { return ev(this, "includes", t); }, indexOf(...t) { return ev(this, "indexOf", t); }, join(t) { return fu(this).join(t); }, // keys() iterator only reads `length`, no optimization required lastIndexOf(...t) { return ev(this, "lastIndexOf", t); }, map(t, e) { return Ts(this, "map", t, e, void 0, arguments); }, pop() { return Af(this, "pop"); }, push(...t) { return Af(this, "push", t); }, reduce(t, ...e) { return m3(this, "reduce", t, e); }, reduceRight(t, ...e) { return m3(this, "reduceRight", t, e); }, shift() { return Af(this, "shift"); }, // slice could use ARRAY_ITERATE but also seems to beg for range tracking some(t, e) { return Ts(this, "some", t, e, void 0, arguments); }, splice(...t) { return Af(this, "splice", t); }, toReversed() { return fu(this).toReversed(); }, toSorted(t) { return fu(this).toSorted(t); }, toSpliced(...t) { return fu(this).toSpliced(...t); }, unshift(...t) { return Af(this, "unshift", t); }, values() { return Q0(this, "values", dr); } }; function Q0(t, e, n) { const r = _w(t), o = r[e](); return r !== t && !Hr(t) && (o._next = o.next, o.next = () => { const i = o._next(); return i.value && (i.value = n(i.value)), i; }), o; } const gq = Array.prototype; function Ts(t, e, n, r, o, i) { const s = _w(t), a = s !== t && !Hr(t), l = s[e]; if (l !== gq[e]) { const d = l.apply(t, i); return a ? dr(d) : d; } let c = n; s !== t && (a ? c = function(d, f) { return n.call(this, dr(d), f, t); } : n.length > 2 && (c = function(d, f) { return n.call(this, d, f, t); })); const u = l.call(s, c, r); return a && o ? o(u) : u; } function m3(t, e, n, r) { const o = _w(t); let i = n; return o !== t && (Hr(t) ? n.length > 3 && (i = function(s, a, l) { return n.call(this, s, a, l, t); }) : i = function(s, a, l) { return n.call(this, s, dr(a), l, t); }), o[e](i, ...r); } function ev(t, e, n) { const r = dt(t); Wn(r, "iterate", Fh); const o = r[e](...n); return (o === -1 || o === !1) && zh(n[0]) ? (n[0] = dt(n[0]), r[e](...n)) : o; } function Af(t, e, n = []) { li(), CC(); const r = dt(t)[e].apply(t, n); return kC(), ci(), r; } const yq = /* @__PURE__ */ fa("__proto__,__v_isRef,__isVue"), o$ = new Set( /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(ha) ); function bq(t) { ha(t) || (t = String(t)); const e = dt(this); return Wn(e, "has", t), e.hasOwnProperty(t); } class i$ { constructor(e = !1, n = !1) { this._isReadonly = e, this._isShallow = n; } get(e, n, r) { if (n === "__v_skip") return e.__v_skip; const o = this._isReadonly, i = this._isShallow; if (n === "__v_isReactive") return !o; if (n === "__v_isReadonly") return o; if (n === "__v_isShallow") return i; if (n === "__v_raw") return r === (o ? i ? d$ : u$ : i ? c$ : l$).get(e) || // receiver is not the reactive proxy, but has the same prototype // this means the receiver is a user proxy of the reactive proxy Object.getPrototypeOf(e) === Object.getPrototypeOf(r) ? e : void 0; const s = tt(e); if (!o) { let l; if (s && (l = mq[n])) return l; if (n === "hasOwnProperty") return bq; } const a = Reflect.get( e, n, // if this is a proxy wrapping a ref, return methods using the raw ref // as receiver so that we don't have to call `toRaw` on the ref in all // its class methods Xt(e) ? e : r ); return (ha(n) ? o$.has(n) : yq(n)) || (o || Wn(e, "get", n), i) ? a : Xt(a) ? s && EC(n) ? a : a.value : Rt(a) ? o ? ss(a) : vn(a) : a; } } class s$ extends i$ { constructor(e = !1) { super(!1, e); } set(e, n, r, o) { let i = e[n]; if (!this._isShallow) { const l = as(i); if (!Hr(r) && !as(r) && (i = dt(i), r = dt(r)), !tt(e) && Xt(i) && !Xt(r)) return l ? (ce.env.NODE_ENV !== "production" && xo( `Set operation on key "${String(n)}" failed: target is readonly.`, e[n] ), !0) : (i.value = r, !0); } const s = tt(e) && EC(n) ? Number(n) < e.length : Dt(e, n), a = Reflect.set( e, n, r, Xt(e) ? e : o ); return e === dt(o) && (s ? Ya(r, i) && Hi(e, "set", n, r, i) : Hi(e, "add", n, r)), a; } deleteProperty(e, n) { const r = Dt(e, n), o = e[n], i = Reflect.deleteProperty(e, n); return i && r && Hi(e, "delete", n, void 0, o), i; } has(e, n) { const r = Reflect.has(e, n); return (!ha(n) || !o$.has(n)) && Wn(e, "has", n), r; } ownKeys(e) { return Wn( e, "iterate", tt(e) ? "length" : ac ), Reflect.ownKeys(e); } } class a$ extends i$ { constructor(e = !1) { super(!0, e); } set(e, n) { return ce.env.NODE_ENV !== "production" && xo( `Set operation on key "${String(n)}" failed: target is readonly.`, e ), !0; } deleteProperty(e, n) { return ce.env.NODE_ENV !== "production" && xo( `Delete operation on key "${String(n)}" failed: target is readonly.`, e ), !0; } } const wq = /* @__PURE__ */ new s$(), vq = /* @__PURE__ */ new a$(), Aq = /* @__PURE__ */ new s$(!0), xq = /* @__PURE__ */ new a$(!0), Ix = (t) => t, Dm = (t) => Reflect.getPrototypeOf(t); function Sq(t, e, n) { return function(...r) { const o = this.__v_raw, i = dt(o), s = sc(i), a = t === "entries" || t === Symbol.iterator && s, l = t === "keys" && s, c = o[t](...r), u = n ? Ix : e ? Uy : dr; return !e && Wn( i, "iterate", l ? _x : ac ), { // iterator protocol next() { const { value: d, done: f } = c.next(); return f ? { value: d, done: f } : { value: a ? [u(d[0]), u(d[1])] : u(d), done: f }; }, // iterable protocol [Symbol.iterator]() { return this; } }; }; } function Mm(t) { return function(...e) { if (ce.env.NODE_ENV !== "production") { const n = e[0] ? `on key "${e[0]}" ` : ""; xo( `${Oc(t)} operation ${n}failed: target is readonly.`, dt(this) ); } return t === "delete" ? !1 : t === "clear" ? void 0 : this; }; } function Eq(t, e) { const n = { get(o) { const i = this.__v_raw, s = dt(i), a = dt(o); t || (Ya(o, a) && Wn(s, "get", o), Wn(s, "get", a)); const { has: l } = Dm(s), c = e ? Ix : t ? Uy : dr; if (l.call(s, o)) return c(i.get(o)); if (l.call(s, a)) return c(i.get(a)); i !== s && i.get(o); }, get size() { const o = this.__v_raw; return !t && Wn(dt(o), "iterate", ac), o.size; }, has(o) { const i = this.__v_raw, s = dt(i), a = dt(o); return t || (Ya(o, a) && Wn(s, "has", o), Wn(s, "has", a)), o === a ? i.has(o) : i.has(o) || i.has(a); }, forEach(o, i) { const s = this, a = s.__v_raw, l = dt(a), c = e ? Ix : t ? Uy : dr; return !t && Wn(l, "iterate", ac), a.forEach((u, d) => o.call(i, c(u), c(d), s)); } }; return An( n, t ? { add: Mm("add"), set: Mm("set"), delete: Mm("delete"), clear: Mm("clear") } : { add(o) { !e && !Hr(o) && !as(o) && (o = dt(o)); const i = dt(this); return Dm(i).has.call(i, o) || (i.add(o), Hi(i, "add", o, o)), this; }, set(o, i) { !e && !Hr(i) && !as(i) && (i = dt(i)); const s = dt(this), { has: a, get: l } = Dm(s); let c = a.call(s, o); c ? ce.env.NODE_ENV !== "production" && g3(s, a, o) : (o = dt(o), c = a.call(s, o)); const u = l.call(s, o); return s.set(o, i), c ? Ya(i, u) && Hi(s, "set", o, i, u) : Hi(s, "add", o, i), this; }, delete(o) { const i = dt(this), { has: s, get: a } = Dm(i); let l = s.call(i, o); l ? ce.env.NODE_ENV !== "production" && g3(i, s, o) : (o = dt(o), l = s.call(i, o)); const c = a ? a.call(i, o) : void 0, u = i.delete(o); return l && Hi(i, "delete", o, void 0, c), u; }, clear() { const o = dt(this), i = o.size !== 0, s = ce.env.NODE_ENV !== "production" ? sc(o) ? new Map(o) : new Set(o) : void 0, a = o.clear(); return i && Hi( o, "clear", void 0, void 0, s ), a; } } ), [ "keys", "values", "entries", Symbol.iterator ].forEach((o) => { n[o] = Sq(o, t, e); }), n; } function Iw(t, e) { const n = Eq(t, e); return (r, o, i) => o === "__v_isReactive" ? !t : o === "__v_isReadonly" ? t : o === "__v_raw" ? r : Reflect.get( Dt(n, o) && o in r ? n : r, o, i ); } const Cq = { get: /* @__PURE__ */ Iw(!1, !1) }, kq = { get: /* @__PURE__ */ Iw(!1, !0) }, Tq = { get: /* @__PURE__ */ Iw(!0, !1) }, _q = { get: /* @__PURE__ */ Iw(!0, !0) }; function g3(t, e, n) { const r = dt(n); if (r !== n && e.call(t, r)) { const o = SC(t); xo( `Reactive ${o} contains both the raw and reactive versions of the same object${o === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.` ); } } const l$ = /* @__PURE__ */ new WeakMap(), c$ = /* @__PURE__ */ new WeakMap(), u$ = /* @__PURE__ */ new WeakMap(), d$ = /* @__PURE__ */ new WeakMap(); function Iq(t) { switch (t) { case "Object": case "Array": return 1; case "Map": case "Set": case "WeakMap": case "WeakSet": return 2; default: return 0; } } function Oq(t) { return t.__v_skip || !Object.isExtensible(t) ? 0 : Iq(SC(t)); } function vn(t) { return as(t) ? t : Ow( t, !1, wq, Cq, l$ ); } function Nq(t) { return Ow( t, !1, Aq, kq, c$ ); } function ss(t) { return Ow( t, !0, vq, Tq, u$ ); } function Wi(t) { return Ow( t, !0, xq, _q, d$ ); } function Ow(t, e, n, r, o) { if (!Rt(t)) return ce.env.NODE_ENV !== "production" && xo( `value cannot be made ${e ? "readonly" : "reactive"}: ${String( t )}` ), t; if (t.__v_raw && !(e && t.__v_isReactive)) return t; const i = Oq(t); if (i === 0) return t; const s = o.get(t); if (s) return s; const a = new Proxy( t, i === 2 ? r : n ); return o.set(t, a), a; } function si(t) { return as(t) ? si(t.__v_raw) : !!(t && t.__v_isReactive); } function as(t) { return !!(t && t.__v_isReadonly); } function Hr(t) { return !!(t && t.__v_isShallow); } function zh(t) { return t ? !!t.__v_raw : !1; } function dt(t) { const e = t && t.__v_raw; return e ? dt(e) : t; } function ur(t) { return !Dt(t, "__v_skip") && Object.isExtensible(t) && zy(t, "__v_skip", !0), t; } const dr = (t) => Rt(t) ? vn(t) : t, Uy = (t) => Rt(t) ? ss(t) : t; function Xt(t) { return t ? t.__v_isRef === !0 : !1; } function ue(t) { return f$(t, !1); } function Ha(t) { return f$(t, !0); } function f$(t, e) { return Xt(t) ? t : new Dq(t, e); } class Dq { constructor(e, n) { this.dep = new _C(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : dt(e), this._value = n ? e : dr(e), this.__v_isShallow = n; } get value() { return ce.env.NODE_ENV !== "production" ? this.dep.track({ target: this, type: "get", key: "value" }) : this.dep.track(), this._value; } set value(e) { const n = this._rawValue, r = this.__v_isShallow || Hr(e) || as(e); e = r ? e : dt(e), Ya(e, n) && (this._rawValue = e, this._value = r ? e : dr(e), ce.env.NODE_ENV !== "production" ? this.dep.trigger({ target: this, type: "set", key: "value", newValue: e, oldValue: n }) : this.dep.trigger()); } } function Re(t) { return Xt(t) ? t.value : t; } const Mq = { get: (t, e, n) => e === "__v_raw" ? t : Re(Reflect.get(t, e, n)), set: (t, e, n, r) => { const o = t[e]; return Xt(o) && !Xt(n) ? (o.value = n, !0) : Reflect.set(t, e, n, r); } }; function h$(t) { return si(t) ? t : new Proxy(t, Mq); } function y3(t) { ce.env.NODE_ENV !== "production" && !zh(t) && xo("toRefs() expects a reactive object but received a plain one."); const e = tt(t) ? new Array(t.length) : {}; for (const n in t) e[n] = p$(t, n); return e; } class $q { constructor(e, n, r) { this._object = e, this._key = n, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0; } get value() { const e = this._object[this._key]; return this._value = e === void 0 ? this._defaultValue : e; } set value(e) { this._object[this._key] = e; } get dep() { return pq(dt(this._object), this._key); } } class Rq { constructor(e) { this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0; } get value() { return this._value = this._getter(); } } function wt(t, e, n) { return Xt(t) ? t : st(t) ? new Rq(t) : Rt(t) && arguments.length > 1 ? p$(t, e, n) : ue(t); } function p$(t, e, n) { const r = t[e]; return Xt(r) ? r : new $q(t, e, n); } class Lq { constructor(e, n, r) { this.fn = e, this.setter = n, this._value = void 0, this.dep = new _C(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Bh - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = r; } /** * @internal */ notify() { if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion Ht !== this) return Z5(this, !0), !0; ce.env.NODE_ENV; } get value() { const e = ce.env.NODE_ENV !== "production" ? this.dep.track({ target: this, type: "get", key: "value" }) : this.dep.track(); return t$(this), e && (e.version = this.dep.version), this._value; } set value(e) { this.setter ? this.setter(e) : ce.env.NODE_ENV !== "production" && xo("Write operation failed: computed value is readonly"); } } function Pq(t, e, n = !1) { let r, o; st(t) ? r = t : (r = t.get, o = t.set); const i = new Lq(r, o, n); return ce.env.NODE_ENV, i; } const $m = {}, Vy = /* @__PURE__ */ new WeakMap(); let Ll; function Bq(t, e = !1, n = Ll) { if (n) { let r = Vy.get(n); r || Vy.set(n, r = []), r.push(t); } else ce.env.NODE_ENV !== "production" && !e && xo( "onWatcherCleanup() was called when there was no active watcher to associate with." ); } function Fq(t, e, n = Ut) { const { immediate: r, deep: o, once: i, scheduler: s, augmentJob: a, call: l } = n, c = (S) => { (n.onWarn || xo)( "Invalid watch source: ", S, "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types." ); }, u = (S) => o ? S : Hr(S) || o === !1 || o === 0 ? Vs(S, 1) : Vs(S); let d, f, h, p, m = !1, y = !1; if (Xt(t) ? (f = () => t.value, m = Hr(t)) : si(t) ? (f = () => u(t), m = !0) : tt(t) ? (y = !0, m = t.some((S) => si(S) || Hr(S)), f = () => t.map((S) => { if (Xt(S)) return S.value; if (si(S)) return u(S); if (st(S)) return l ? l(S, 2) : S(); ce.env.NODE_ENV !== "production" && c(S); })) : st(t) ? e ? f = l ? () => l(t, 2) : t : f = () => { if (h) { li(); try { h(); } finally { ci(); } } const S = Ll; Ll = d; try { return l ? l(t, 3, [p]) : t(p); } finally { Ll = S; } } : (f = qn, ce.env.NODE_ENV !== "production" && c(t)), e && o) { const S = f, T = o === !0 ? 1 / 0 : o; f = () => Vs(S(), T); } const g = X5(), w = () => { d.stop(), g && g.active && AC(g.effects, d); }; if (i && e) { const S = e; e = (...T) => { S(...T), w(); }; } let v = y ? new Array(t.length).fill($m) : $m; const b = (S) => { if (!(!(d.flags & 1) || !d.dirty && !S)) if (e) { const T = d.run(); if (o || m || (y ? T.some((E, _) => Ya(E, v[_])) : Ya(T, v))) { h && h(); const E = Ll; Ll = d; try { const _ = [ T, // pass undefined as the old value when it's changed for the first time v === $m ? void 0 : y && v[0] === $m ? [] : v, p ]; v = T, l ? l(e, 3, _) : ( // @ts-expect-error e(..._) ); } finally { Ll = E; } } } else d.run(); }; return a && a(b), d = new J5(f), d.scheduler = s ? () => s(b, !1) : b, p = (S) => Bq(S, !1, d), h = d.onStop = () => { const S = Vy.get(d); if (S) { if (l) l(S, 4); else for (const T of S) T(); Vy.delete(d); } }, ce.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), e ? r ? b(!0) : v = d.run() : s ? s(b.bind(null, !0), !0) : d.run(), w.pause = d.pause.bind(d), w.resume = d.resume.bind(d), w.stop = w, w; } function Vs(t, e = 1 / 0, n) { if (e <= 0 || !Rt(t) || t.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(t) || 0) >= e)) return t; if (n.set(t, e), e--, Xt(t)) Vs(t.value, e, n); else if (tt(t)) for (let r = 0; r < t.length; r++) Vs(t[r], e, n); else if (H5(t) || sc(t)) t.forEach((r) => { Vs(r, e, n); }); else if (V5(t)) { for (const r in t) Vs(t[r], e, n); for (const r of Object.getOwnPropertySymbols(t)) Object.prototype.propertyIsEnumerable.call(t, r) && Vs(t[r], e, n); } return t; } const lc = []; function jg(t) { lc.push(t); } function Wg() { lc.pop(); } let tv = !1; function Be(t, ...e) { if (tv) return; tv = !0, li(); const n = lc.length ? lc[lc.length - 1].component : null, r = n && n.appContext.config.warnHandler, o = zq(); if (r) Kd( r, n, 11, [ // eslint-disable-next-line no-restricted-syntax t + e.map((i) => { var s, a; return (a = (s = i.toString) == null ? void 0 : s.call(i)) != null ? a : JSON.stringify(i); }).join(""), n && n.proxy, o.map( ({ vnode: i }) => `at <${Bw(n, i.type)}>` ).join(` `), o ] ); else { const i = [`[Vue warn]: ${t}`, ...e]; o.length && i.push(` `, ...Hq(o)), console.warn(...i); } ci(), tv = !1; } function zq() { let t = lc[lc.length - 1]; if (!t) return []; const e = []; for (; t; ) { const n = e[0]; n && n.vnode === t ? n.recurseCount++ : e.push({ vnode: t, recurseCount: 0 }); const r = t.component && t.component.parent; t = r && r.vnode; } return e; } function Hq(t) { const e = []; return t.forEach((n, r) => { e.push(...r === 0 ? [] : [` `], ...Uq(n)); }), e; } function Uq({ vnode: t, recurseCount: e }) { const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, o = ` at <${Bw( t.component, t.type, r )}`, i = ">" + n; return t.props ? [o, ...Vq(t.props), i] : [o + i]; } function Vq(t) { const e = [], n = Object.keys(t); return n.slice(0, 3).forEach((r) => { e.push(...m$(r, t[r])); }), n.length > 3 && e.push(" ..."), e; } function m$(t, e, n) { return on(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : Xt(e) ? (e = m$(t, dt(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : st(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = dt(e), n ? e : [`${t}=`, e]); } function jq(t, e) { ce.env.NODE_ENV !== "production" && t !== void 0 && (typeof t != "number" ? Be(`${e} is not a valid number - got ${JSON.stringify(t)}.`) : isNaN(t) && Be(`${e} is NaN - the duration expression might be incorrect.`)); } const IC = { sp: "serverPrefetch hook", bc: "beforeCreate hook", c: "created hook", bm: "beforeMount hook", m: "mounted hook", bu: "beforeUpdate hook", u: "updated", bum: "beforeUnmount hook", um: "unmounted hook", a: "activated hook", da: "deactivated hook", ec: "errorCaptured hook", rtc: "renderTracked hook", rtg: "renderTriggered hook", 0: "setup function", 1: "render function", 2: "watcher getter", 3: "watcher callback", 4: "watcher cleanup function", 5: "native event handler", 6: "component event handler", 7: "vnode hook", 8: "directive hook", 9: "transition hook", 10: "app errorHandler", 11: "app warnHandler", 12: "ref function", 13: "async component loader", 14: "scheduler flush", 15: "component update", 16: "app unmount cleanup function" }; function Kd(t, e, n, r) { try { return r ? t(...r) : t(); } catch (o) { Gd(o, e, n); } } function ui(t, e, n, r) { if (st(t)) { const o = Kd(t, e, n, r); return o && xC(o) && o.catch((i) => { Gd(i, e, n); }), o; } if (tt(t)) { const o = []; for (let i = 0; i < t.length; i++) o.push(ui(t[i], e, n, r)); return o; } else ce.env.NODE_ENV !== "production" && Be( `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}` ); } function Gd(t, e, n, r = !0) { const o = e ? e.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: s } = e && e.appContext.config || Ut; if (e) { let a = e.parent; const l = e.proxy, c = ce.env.NODE_ENV !== "production" ? IC[n] : `https://vuejs.org/error-reference/#runtime-${n}`; for (; a; ) { const u = a.ec; if (u) { for (let d = 0; d < u.length; d++) if (u[d](t, l, c) === !1) return; } a = a.parent; } if (i) { li(), Kd(i, null, 10, [ t, l, c ]), ci(); return; } } Wq(t, n, o, r, s); } function Wq(t, e, n, r = !0, o = !1) { if (ce.env.NODE_ENV !== "production") { const i = IC[e]; if (n && jg(n), Be(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && Wg(), r) throw t; console.error(t); } else { if (o) throw t; console.error(t); } } const Lr = []; let $i = -1; const Yu = []; let Na = null, Mu = 0; const g$ = /* @__PURE__ */ Promise.resolve(); let jy = null; const qq = 100; function mn(t) { const e = jy || g$; return t ? e.then(this ? t.bind(this) : t) : e; } function Kq(t) { let e = $i + 1, n = Lr.length; for (; e < n; ) { const r = e + n >>> 1, o = Lr[r], i = Hh(o); i < t || i === t && o.flags & 2 ? e = r + 1 : n = r; } return e; } function Nw(t) { if (!(t.flags & 1)) { const e = Hh(t), n = Lr[Lr.length - 1]; !n || // fast path when the job id is larger than the tail !(t.flags & 2) && e >= Hh(n) ? Lr.push(t) : Lr.splice(Kq(e), 0, t), t.flags |= 1, y$(); } } function y$() { jy || (jy = g$.then(v$)); } function b$(t) { tt(t) ? Yu.push(...t) : Na && t.id === -1 ? Na.splice(Mu + 1, 0, t) : t.flags & 1 || (Yu.push(t), t.flags |= 1), y$(); } function b3(t, e, n = $i + 1) { for (ce.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()); n < Lr.length; n++) { const r = Lr[n]; if (r && r.flags & 2) { if (t && r.id !== t.uid || ce.env.NODE_ENV !== "production" && OC(e, r)) continue; Lr.splice(n, 1), n--, r.flags & 4 && (r.flags &= -2), r(), r.flags & 4 || (r.flags &= -2); } } } function w$(t) { if (Yu.length) { const e = [...new Set(Yu)].sort( (n, r) => Hh(n) - Hh(r) ); if (Yu.length = 0, Na) { Na.push(...e); return; } for (Na = e, ce.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), Mu = 0; Mu < Na.length; Mu++) { const n = Na[Mu]; ce.env.NODE_ENV !== "production" && OC(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2); } Na = null, Mu = 0; } } const Hh = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id; function v$(t) { ce.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()); const e = ce.env.NODE_ENV !== "production" ? (n) => OC(t, n) : qn; try { for ($i = 0; $i < Lr.length; $i++) { const n = Lr[$i]; if (n && !(n.flags & 8)) { if (ce.env.NODE_ENV !== "production" && e(n)) continue; n.flags & 4 && (n.flags &= -2), Kd( n, n.i, n.i ? 15 : 14 ), n.flags & 4 || (n.flags &= -2); } } } finally { for (; $i < Lr.length; $i++) { const n = Lr[$i]; n && (n.flags &= -2); } $i = -1, Lr.length = 0, w$(t), jy = null, (Lr.length || Yu.length) && v$(t); } } function OC(t, e) { const n = t.get(e) || 0; if (n > qq) { const r = e.i, o = r && Pw(r.type); return Gd( `Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10 ), !0; } return t.set(e, n + 1), !1; } let ri = !1; const qg = /* @__PURE__ */ new Map(); if (ce.env.NODE_ENV !== "production") { const t = qp(); t.__VUE_HMR_RUNTIME__ || (t.__VUE_HMR_RUNTIME__ = { createRecord: nv(A$), rerender: nv(Jq), reload: nv(Yq) }); } const Nc = /* @__PURE__ */ new Map(); function Gq(t) { const e = t.type.__hmrId; let n = Nc.get(e); n || (A$(e, t.type), n = Nc.get(e)), n.instances.add(t); } function Xq(t) { Nc.get(t.type.__hmrId).instances.delete(t); } function A$(t, e) { return Nc.has(t) ? !1 : (Nc.set(t, { initialDef: Wy(e), instances: /* @__PURE__ */ new Set() }), !0); } function Wy(t) { return fR(t) ? t.__vccOpts : t; } function Jq(t, e) { const n = Nc.get(t); n && (n.initialDef.render = e, [...n.instances].forEach((r) => { e && (r.render = e, Wy(r.type).render = e), r.renderCache = [], ri = !0, r.job.flags & 8 || r.update(), ri = !1; })); } function Yq(t, e) { const n = Nc.get(t); if (!n) return; e = Wy(e), w3(n.initialDef, e); const r = [...n.instances]; for (let o = 0; o < r.length; o++) { const i = r[o], s = Wy(i.type); let a = qg.get(s); a || (s !== n.initialDef && w3(s, e), qg.set(s, a = /* @__PURE__ */ new Set())), a.add(i), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (a.add(i), i.ceReload(e.styles), a.delete(i)) : i.parent ? Nw(() => { i.job.flags & 8 || (ri = !0, i.parent.update(), ri = !1, a.delete(i)); }) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn( "[HMR] Root or manually mounted instance modified. Full reload required." ), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(s); } b$(() => { qg.clear(); }); } function w3(t, e) { An(t, e); for (const n in t) n !== "__file" && !(n in e) && delete t[n]; } function nv(t) { return (e, n) => { try { return t(e, n); } catch (r) { console.error(r), console.warn( "[HMR] Something went wrong during Vue component hot-reload. Full reload required." ); } }; } let ei, Lf = [], Ox = !1; function Kp(t, ...e) { ei ? ei.emit(t, ...e) : Ox || Lf.push({ event: t, args: e }); } function NC(t, e) { var n, r; ei = t, ei ? (ei.enabled = !0, Lf.forEach(({ event: o, args: i }) => ei.emit(o, ...i)), Lf = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully window.HTMLElement && // also exclude jsdom // eslint-disable-next-line no-restricted-syntax !((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((i) => { NC(i, e); }), setTimeout(() => { ei || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Ox = !0, Lf = []); }, 3e3)) : (Ox = !0, Lf = []); } function Zq(t, e) { Kp("app:init", t, e, { Fragment: Ze, Text: Sl, Comment: tn, Static: Gg }); } function Qq(t) { Kp("app:unmount", t); } const eK = /* @__PURE__ */ DC( "component:added" /* COMPONENT_ADDED */ ), x$ = /* @__PURE__ */ DC( "component:updated" /* COMPONENT_UPDATED */ ), tK = /* @__PURE__ */ DC( "component:removed" /* COMPONENT_REMOVED */ ), nK = (t) => { ei && typeof ei.cleanupBuffer == "function" && // remove the component if it wasn't buffered !ei.cleanupBuffer(t) && tK(t); }; // @__NO_SIDE_EFFECTS__ function DC(t) { return (e) => { Kp( t, e.appContext.app, e.uid, e.parent ? e.parent.uid : void 0, e ); }; } const rK = /* @__PURE__ */ S$( "perf:start" /* PERFORMANCE_START */ ), oK = /* @__PURE__ */ S$( "perf:end" /* PERFORMANCE_END */ ); function S$(t) { return (e, n, r) => { Kp(t, e.appContext.app, e.uid, e, n, r); }; } function iK(t, e, n) { Kp( "component:emit", t.appContext.app, t, e, n ); } let Pn = null, E$ = null; function qy(t) { const e = Pn; return Pn = t, E$ = t && t.type.__scopeId || null, e; } function Ui(t, e = Pn, n) { if (!e || t._n) return t; const r = (...o) => { r._d && Yy(-1); const i = qy(e); let s; try { s = t(...o); } finally { qy(i), r._d && Yy(1); } return ce.env.NODE_ENV !== "production" && x$(e), s; }; return r._n = !0, r._c = !0, r._d = !0, r; } function C$(t) { GW(t) && Be("Do not