Main/resources/[um]/um-multicharacter/web/build/assets/index-f22806ba.js
2025-06-07 08:51:21 +02:00

19 lines
335 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function () { const t = document.createElement("link").relList; if (t && t.supports && t.supports("modulepreload")) return; for (const a of document.querySelectorAll('link[rel="modulepreload"]')) r(a); new MutationObserver(a => { for (const i of a) if (i.type === "childList") for (const o of i.addedNodes) o.tagName === "LINK" && o.rel === "modulepreload" && r(o) }).observe(document, { childList: !0, subtree: !0 }); function n(a) { const i = {}; return a.integrity && (i.integrity = a.integrity), a.referrerPolicy && (i.referrerPolicy = a.referrerPolicy), a.crossOrigin === "use-credentials" ? i.credentials = "include" : a.crossOrigin === "anonymous" ? i.credentials = "omit" : i.credentials = "same-origin", i } function r(a) { if (a.ep) return; a.ep = !0; const i = n(a); fetch(a.href, i) } })(); function zr(e, t) { const n = Object.create(null), r = e.split(","); for (let a = 0; a < r.length; a++)n[r[a]] = !0; return t ? a => !!n[a.toLowerCase()] : a => !!n[a] } const Pe = {}, En = [], gt = () => { }, Fl = () => !1, Ul = /^on[^a-z]/, Va = e => Ul.test(e), qr = e => e.startsWith("onUpdate:"), We = Object.assign, Yr = (e, t) => { const n = e.indexOf(t); n > -1 && e.splice(n, 1) }, _l = Object.prototype.hasOwnProperty, we = (e, t) => _l.call(e, t), le = Array.isArray, kn = e => Ha(e) === "[object Map]", No = e => Ha(e) === "[object Set]", me = e => typeof e == "function", qe = e => typeof e == "string", Kr = e => typeof e == "symbol", Le = e => e !== null && typeof e == "object", Lo = e => Le(e) && me(e.then) && me(e.catch), Io = Object.prototype.toString, Ha = e => Io.call(e), xl = e => Ha(e).slice(8, -1), $o = e => Ha(e) === "[object Object]", Wr = e => qe(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, ba = zr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), za = e => { const t = Object.create(null); return n => t[n] || (t[n] = e(n)) }, El = /-(\w)/g, St = za(e => e.replace(El, (t, n) => n ? n.toUpperCase() : "")), kl = /\B([A-Z])/g, Pn = za(e => e.replace(kl, "-$1").toLowerCase()), qa = za(e => e.charAt(0).toUpperCase() + e.slice(1)), lr = za(e => e ? `on${qa(e)}` : ""), Qn = (e, t) => !Object.is(e, t), wa = (e, t) => { for (let n = 0; n < e.length; n++)e[n](t) }, Ea = (e, t, n) => { Object.defineProperty(e, t, { configurable: !0, enumerable: !1, value: n }) }, wr = e => { const t = parseFloat(e); return isNaN(t) ? e : t }; let Ci; const Fr = () => Ci || (Ci = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}); function Nn(e) { if (le(e)) { const t = {}; for (let n = 0; n < e.length; n++) { const r = e[n], a = qe(r) ? Ol(r) : Nn(r); if (a) for (const i in a) t[i] = a[i] } return t } else { if (qe(e)) return e; if (Le(e)) return e } } const jl = /;(?![^(]*\))/g, Cl = /:([^]+)/, Sl = new RegExp("\\/\\*.*?\\*\\/", "gs"); function Ol(e) { const t = {}; return e.replace(Sl, "").split(jl).forEach(n => { if (n) { const r = n.split(Cl); r.length > 1 && (t[r[0].trim()] = r[1].trim()) } }), t } function Wt(e) { let t = ""; if (qe(e)) t = e; else if (le(e)) for (let n = 0; n < e.length; n++) { const r = Wt(e[n]); r && (t += r + " ") } else if (Le(e)) for (const n in e) e[n] && (t += n + " "); return t.trim() } const Tl = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Al = zr(Tl); function Ro(e) { return !!e || e === "" } const he = e => qe(e) ? e : e == null ? "" : le(e) || Le(e) && (e.toString === Io || !me(e.toString)) ? JSON.stringify(e, Bo, 2) : String(e), Bo = (e, t) => t && t.__v_isRef ? Bo(e, t.value) : kn(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((n, [r, a]) => (n[`${r} =>`] = a, n), {}) } : No(t) ? { [`Set(${t.size})`]: [...t.values()] } : Le(t) && !le(t) && !$o(t) ? String(t) : t; let ht; class Dl { constructor(t = !1) { this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this.parent = ht, !t && ht && (this.index = (ht.scopes || (ht.scopes = [])).push(this) - 1) } get active() { return this._active } run(t) { if (this._active) { const n = ht; try { return ht = this, t() } finally { ht = n } } } on() { ht = this } off() { ht = this.parent } stop(t) { if (this._active) { let n, r; for (n = 0, r = this.effects.length; n < r; n++)this.effects[n].stop(); for (n = 0, r = this.cleanups.length; n < r; n++)this.cleanups[n](); if (this.scopes) for (n = 0, r = this.scopes.length; n < r; n++)this.scopes[n].stop(!0); if (!this.detached && this.parent && !t) { const a = this.parent.scopes.pop(); a && a !== this && (this.parent.scopes[this.index] = a, a.index = this.index) } this.parent = void 0, this._active = !1 } } } function Ml(e, t = ht) { t && t.active && t.effects.push(e) } function Pl() { return ht } const Gr = e => { const t = new Set(e); return t.w = 0, t.n = 0, t }, Vo = e => (e.w & Gt) > 0, Ho = e => (e.n & Gt) > 0, Nl = ({ deps: e }) => { if (e.length) for (let t = 0; t < e.length; t++)e[t].w |= Gt }, Ll = e => { const { deps: t } = e; if (t.length) { let n = 0; for (let r = 0; r < t.length; r++) { const a = t[r]; Vo(a) && !Ho(a) ? a.delete(e) : t[n++] = a, a.w &= ~Gt, a.n &= ~Gt } t.length = n } }, ka = new WeakMap; let Kn = 0, Gt = 1; const Ur = 30; let vt; const cn = Symbol(""), _r = Symbol(""); class Xr { constructor(t, n = null, r) { this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, Ml(this, r) } run() { if (!this.active) return this.fn(); let t = vt, n = qt; for (; t;) { if (t === this) return; t = t.parent } try { return this.parent = vt, vt = this, qt = !0, Gt = 1 << ++Kn, Kn <= Ur ? Nl(this) : Si(this), this.fn() } finally { Kn <= Ur && Ll(this), Gt = 1 << --Kn, vt = this.parent, qt = n, this.parent = void 0, this.deferStop && this.stop() } } stop() { vt === this ? this.deferStop = !0 : this.active && (Si(this), this.onStop && this.onStop(), this.active = !1) } } function Si(e) { const { deps: t } = e; if (t.length) { for (let n = 0; n < t.length; n++)t[n].delete(e); t.length = 0 } } let qt = !0; const zo = []; function Ln() { zo.push(qt), qt = !1 } function In() { const e = zo.pop(); qt = e === void 0 ? !0 : e } function it(e, t, n) { if (qt && vt) { let r = ka.get(e); r || ka.set(e, r = new Map); let a = r.get(n); a || r.set(n, a = Gr()), qo(a) } } function qo(e, t) { let n = !1; Kn <= Ur ? Ho(e) || (e.n |= Gt, n = !Vo(e)) : n = !e.has(vt), n && (e.add(vt), vt.deps.push(e)) } function Pt(e, t, n, r, a, i) { const o = ka.get(e); if (!o) return; let s = []; if (t === "clear") s = [...o.values()]; else if (n === "length" && le(e)) { const l = Number(r); o.forEach((u, c) => { (c === "length" || c >= l) && s.push(u) }) } else switch (n !== void 0 && s.push(o.get(n)), t) { case "add": le(e) ? Wr(n) && s.push(o.get("length")) : (s.push(o.get(cn)), kn(e) && s.push(o.get(_r))); break; case "delete": le(e) || (s.push(o.get(cn)), kn(e) && s.push(o.get(_r))); break; case "set": kn(e) && s.push(o.get(cn)); break }if (s.length === 1) s[0] && xr(s[0]); else { const l = []; for (const u of s) u && l.push(...u); xr(Gr(l)) } } function xr(e, t) { const n = le(e) ? e : [...e]; for (const r of n) r.computed && Oi(r); for (const r of n) r.computed || Oi(r) } function Oi(e, t) { (e !== vt || e.allowRecurse) && (e.scheduler ? e.scheduler() : e.run()) } function Il(e, t) { var n; return (n = ka.get(e)) == null ? void 0 : n.get(t) } const $l = zr("__proto__,__v_isRef,__isVue"), Yo = new Set(Object.getOwnPropertyNames(Symbol).filter(e => e !== "arguments" && e !== "caller").map(e => Symbol[e]).filter(Kr)), Rl = Zr(), Bl = Zr(!1, !0), Vl = Zr(!0), Ti = Hl(); function Hl() { const e = {}; return ["includes", "indexOf", "lastIndexOf"].forEach(t => { e[t] = function (...n) { const r = _e(this); for (let i = 0, o = this.length; i < o; i++)it(r, "get", i + ""); const a = r[t](...n); return a === -1 || a === !1 ? r[t](...n.map(_e)) : a } }), ["push", "pop", "shift", "unshift", "splice"].forEach(t => { e[t] = function (...n) { Ln(); const r = _e(this)[t].apply(this, n); return In(), r } }), e } function zl(e) { const t = _e(this); return it(t, "has", e), t.hasOwnProperty(e) } function Zr(e = !1, t = !1) { return function (r, a, i) { if (a === "__v_isReactive") return !e; if (a === "__v_isReadonly") return e; if (a === "__v_isShallow") return t; if (a === "__v_raw" && i === (e ? t ? ou : Zo : t ? Xo : Go).get(r)) return r; const o = le(r); if (!e) { if (o && we(Ti, a)) return Reflect.get(Ti, a, i); if (a === "hasOwnProperty") return zl } const s = Reflect.get(r, a, i); return (Kr(a) ? Yo.has(a) : $l(a)) || (e || it(r, "get", a), t) ? s : Be(s) ? o && Wr(a) ? s : s.value : Le(s) ? e ? Qo(s) : mn(s) : s } } const ql = Ko(), Yl = Ko(!0); function Ko(e = !1) { return function (n, r, a, i) { let o = n[r]; if (Tn(o) && Be(o) && !Be(a)) return !1; if (!e && (!ja(a) && !Tn(a) && (o = _e(o), a = _e(a)), !le(n) && Be(o) && !Be(a))) return o.value = a, !0; const s = le(n) && Wr(r) ? Number(r) < n.length : we(n, r), l = Reflect.set(n, r, a, i); return n === _e(i) && (s ? Qn(a, o) && Pt(n, "set", r, a) : Pt(n, "add", r, a)), l } } function Kl(e, t) { const n = we(e, t); e[t]; const r = Reflect.deleteProperty(e, t); return r && n && Pt(e, "delete", t, void 0), r } function Wl(e, t) { const n = Reflect.has(e, t); return (!Kr(t) || !Yo.has(t)) && it(e, "has", t), n } function Gl(e) { return it(e, "iterate", le(e) ? "length" : cn), Reflect.ownKeys(e) } const Wo = { get: Rl, set: ql, deleteProperty: Kl, has: Wl, ownKeys: Gl }, Xl = { get: Vl, set(e, t) { return !0 }, deleteProperty(e, t) { return !0 } }, Zl = We({}, Wo, { get: Bl, set: Yl }), Qr = e => e, Ya = e => Reflect.getPrototypeOf(e); function la(e, t, n = !1, r = !1) { e = e.__v_raw; const a = _e(e), i = _e(t); n || (t !== i && it(a, "get", t), it(a, "get", i)); const { has: o } = Ya(a), s = r ? Qr : n ? ti : Jn; if (o.call(a, t)) return s(e.get(t)); if (o.call(a, i)) return s(e.get(i)); e !== a && e.get(t) } function ua(e, t = !1) { const n = this.__v_raw, r = _e(n), a = _e(e); return t || (e !== a && it(r, "has", e), it(r, "has", a)), e === a ? n.has(e) : n.has(e) || n.has(a) } function ca(e, t = !1) { return e = e.__v_raw, !t && it(_e(e), "iterate", cn), Reflect.get(e, "size", e) } function Ai(e) { e = _e(e); const t = _e(this); return Ya(t).has.call(t, e) || (t.add(e), Pt(t, "add", e, e)), this } function Di(e, t) { t = _e(t); const n = _e(this), { has: r, get: a } = Ya(n); let i = r.call(n, e); i || (e = _e(e), i = r.call(n, e)); const o = a.call(n, e); return n.set(e, t), i ? Qn(t, o) && Pt(n, "set", e, t) : Pt(n, "add", e, t), this } function Mi(e) { const t = _e(this), { has: n, get: r } = Ya(t); let a = n.call(t, e); a || (e = _e(e), a = n.call(t, e)), r && r.call(t, e); const i = t.delete(e); return a && Pt(t, "delete", e, void 0), i } function Pi() { const e = _e(this), t = e.size !== 0, n = e.clear(); return t && Pt(e, "clear", void 0, void 0), n } function da(e, t) { return function (r, a) { const i = this, o = i.__v_raw, s = _e(o), l = t ? Qr : e ? ti : Jn; return !e && it(s, "iterate", cn), o.forEach((u, c) => r.call(a, l(u), l(c), i)) } } function fa(e, t, n) { return function (...r) { const a = this.__v_raw, i = _e(a), o = kn(i), s = e === "entries" || e === Symbol.iterator && o, l = e === "keys" && o, u = a[e](...r), c = n ? Qr : t ? ti : Jn; return !t && it(i, "iterate", l ? _r : cn), { next() { const { value: d, done: m } = u.next(); return m ? { value: d, done: m } : { value: s ? [c(d[0]), c(d[1])] : c(d), done: m } }, [Symbol.iterator]() { return this } } } } function $t(e) { return function (...t) { return e === "delete" ? !1 : this } } function Ql() { const e = { get(i) { return la(this, i) }, get size() { return ca(this) }, has: ua, add: Ai, set: Di, delete: Mi, clear: Pi, forEach: da(!1, !1) }, t = { get(i) { return la(this, i, !1, !0) }, get size() { return ca(this) }, has: ua, add: Ai, set: Di, delete: Mi, clear: Pi, forEach: da(!1, !0) }, n = { get(i) { return la(this, i, !0) }, get size() { return ca(this, !0) }, has(i) { return ua.call(this, i, !0) }, add: $t("add"), set: $t("set"), delete: $t("delete"), clear: $t("clear"), forEach: da(!0, !1) }, r = { get(i) { return la(this, i, !0, !0) }, get size() { return ca(this, !0) }, has(i) { return ua.call(this, i, !0) }, add: $t("add"), set: $t("set"), delete: $t("delete"), clear: $t("clear"), forEach: da(!0, !0) }; return ["keys", "values", "entries", Symbol.iterator].forEach(i => { e[i] = fa(i, !1, !1), n[i] = fa(i, !0, !1), t[i] = fa(i, !1, !0), r[i] = fa(i, !0, !0) }), [e, n, t, r] } const [Jl, eu, tu, nu] = Ql(); function Jr(e, t) { const n = t ? e ? nu : tu : e ? eu : Jl; return (r, a, i) => a === "__v_isReactive" ? !e : a === "__v_isReadonly" ? e : a === "__v_raw" ? r : Reflect.get(we(n, a) && a in r ? n : r, a, i) } const au = { get: Jr(!1, !1) }, ru = { get: Jr(!1, !0) }, iu = { get: Jr(!0, !1) }, Go = new WeakMap, Xo = new WeakMap, Zo = new WeakMap, ou = new WeakMap; function su(e) { switch (e) { case "Object": case "Array": return 1; case "Map": case "Set": case "WeakMap": case "WeakSet": return 2; default: return 0 } } function lu(e) { return e.__v_skip || !Object.isExtensible(e) ? 0 : su(xl(e)) } function mn(e) { return Tn(e) ? e : ei(e, !1, Wo, au, Go) } function uu(e) { return ei(e, !1, Zl, ru, Xo) } function Qo(e) { return ei(e, !0, Xl, iu, Zo) } function ei(e, t, n, r, a) { if (!Le(e) || e.__v_raw && !(t && e.__v_isReactive)) return e; const i = a.get(e); if (i) return i; const o = lu(e); if (o === 0) return e; const s = new Proxy(e, o === 2 ? r : n); return a.set(e, s), s } function jn(e) { return Tn(e) ? jn(e.__v_raw) : !!(e && e.__v_isReactive) } function Tn(e) { return !!(e && e.__v_isReadonly) } function ja(e) { return !!(e && e.__v_isShallow) } function Jo(e) { return jn(e) || Tn(e) } function _e(e) { const t = e && e.__v_raw; return t ? _e(t) : e } function es(e) { return Ea(e, "__v_skip", !0), e } const Jn = e => Le(e) ? mn(e) : e, ti = e => Le(e) ? Qo(e) : e; function ts(e) { qt && vt && (e = _e(e), qo(e.dep || (e.dep = Gr()))) } function ns(e, t) { e = _e(e); const n = e.dep; n && xr(n) } function Be(e) { return !!(e && e.__v_isRef === !0) } function oe(e) { return as(e, !1) } function cu(e) { return as(e, !0) } function as(e, t) { return Be(e) ? e : new du(e, t) } class du { constructor(t, n) { this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : _e(t), this._value = n ? t : Jn(t) } get value() { return ts(this), this._value } set value(t) { const n = this.__v_isShallow || ja(t) || Tn(t); t = n ? t : _e(t), Qn(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : Jn(t), ns(this)) } } function A(e) { return Be(e) ? e.value : e } const fu = { get: (e, t, n) => A(Reflect.get(e, t, n)), set: (e, t, n, r) => { const a = e[t]; return Be(a) && !Be(n) ? (a.value = n, !0) : Reflect.set(e, t, n, r) } }; function rs(e) { return jn(e) ? e : new Proxy(e, fu) } class mu { constructor(t, n, r) { this._object = t, this._key = n, this._defaultValue = r, this.__v_isRef = !0 } get value() { const t = this._object[this._key]; return t === void 0 ? this._defaultValue : t } set value(t) { this._object[this._key] = t } get dep() { return Il(_e(this._object), this._key) } } class hu { constructor(t) { this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0 } get value() { return this._getter() } } function Vt(e, t, n) { return Be(e) ? e : me(e) ? new hu(e) : Le(e) && arguments.length > 1 ? vu(e, t, n) : oe(e) } function vu(e, t, n) { const r = e[t]; return Be(r) ? r : new mu(e, t, n) } class pu { constructor(t, n, r, a) { this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this._dirty = !0, this.effect = new Xr(t, () => { this._dirty || (this._dirty = !0, ns(this)) }), this.effect.computed = this, this.effect.active = this._cacheable = !a, this.__v_isReadonly = r } get value() { const t = _e(this); return ts(t), (t._dirty || !t._cacheable) && (t._dirty = !1, t._value = t.effect.run()), t._value } set value(t) { this._setter(t) } } function gu(e, t, n = !1) { let r, a; const i = me(e); return i ? (r = e, a = gt) : (r = e.get, a = e.set), new pu(r, a, i || !a, n) } function Yt(e, t, n, r) { let a; try { a = r ? e(...r) : e() } catch (i) { Ka(i, t, n) } return a } function yt(e, t, n, r) { if (me(e)) { const i = Yt(e, t, n, r); return i && Lo(i) && i.catch(o => { Ka(o, t, n) }), i } const a = []; for (let i = 0; i < e.length; i++)a.push(yt(e[i], t, n, r)); return a } function Ka(e, t, n, r = !0) { const a = t ? t.vnode : null; if (t) { let i = t.parent; const o = t.proxy, s = n; for (; i;) { const u = i.ec; if (u) { for (let c = 0; c < u.length; c++)if (u[c](e, o, s) === !1) return } i = i.parent } const l = t.appContext.config.errorHandler; if (l) { Yt(l, null, 10, [e, o, s]); return } } yu(e, n, a, r) } function yu(e, t, n, r = !0) { console.error(e) } let ea = !1, Er = !1; const Qe = []; let kt = 0; const Cn = []; let Tt = null, an = 0; const is = Promise.resolve(); let ni = null; function sn(e) { const t = ni || is; return e ? t.then(this ? e.bind(this) : e) : t } function bu(e) { let t = kt + 1, n = Qe.length; for (; t < n;) { const r = t + n >>> 1; ta(Qe[r]) < e ? t = r + 1 : n = r } return t } function ai(e) { (!Qe.length || !Qe.includes(e, ea && e.allowRecurse ? kt + 1 : kt)) && (e.id == null ? Qe.push(e) : Qe.splice(bu(e.id), 0, e), os()) } function os() { !ea && !Er && (Er = !0, ni = is.then(ls)) } function wu(e) { const t = Qe.indexOf(e); t > kt && Qe.splice(t, 1) } function Fu(e) { le(e) ? Cn.push(...e) : (!Tt || !Tt.includes(e, e.allowRecurse ? an + 1 : an)) && Cn.push(e), os() } function Ni(e, t = ea ? kt + 1 : 0) { for (; t < Qe.length; t++) { const n = Qe[t]; n && n.pre && (Qe.splice(t, 1), t--, n()) } } function ss(e) { if (Cn.length) { const t = [...new Set(Cn)]; if (Cn.length = 0, Tt) { Tt.push(...t); return } for (Tt = t, Tt.sort((n, r) => ta(n) - ta(r)), an = 0; an < Tt.length; an++)Tt[an](); Tt = null, an = 0 } } const ta = e => e.id == null ? 1 / 0 : e.id, Uu = (e, t) => { const n = ta(e) - ta(t); if (n === 0) { if (e.pre && !t.pre) return -1; if (t.pre && !e.pre) return 1 } return n }; function ls(e) { Er = !1, ea = !0, Qe.sort(Uu); const t = gt; try { for (kt = 0; kt < Qe.length; kt++) { const n = Qe[kt]; n && n.active !== !1 && Yt(n, null, 14) } } finally { kt = 0, Qe.length = 0, ss(), ea = !1, ni = null, (Qe.length || Cn.length) && ls() } } function _u(e, t, ...n) { if (e.isUnmounted) return; const r = e.vnode.props || Pe; let a = n; const i = t.startsWith("update:"), o = i && t.slice(7); if (o && o in r) { const c = `${o === "modelValue" ? "model" : o}Modifiers`, { number: d, trim: m } = r[c] || Pe; m && (a = n.map(g => qe(g) ? g.trim() : g)), d && (a = n.map(wr)) } let s, l = r[s = lr(t)] || r[s = lr(St(t))]; !l && i && (l = r[s = lr(Pn(t))]), l && yt(l, e, 6, a); const u = r[s + "Once"]; if (u) { if (!e.emitted) e.emitted = {}; else if (e.emitted[s]) return; e.emitted[s] = !0, yt(u, e, 6, a) } } function us(e, t, n = !1) { const r = t.emitsCache, a = r.get(e); if (a !== void 0) return a; const i = e.emits; let o = {}, s = !1; if (!me(e)) { const l = u => { const c = us(u, t, !0); c && (s = !0, We(o, c)) }; !n && t.mixins.length && t.mixins.forEach(l), e.extends && l(e.extends), e.mixins && e.mixins.forEach(l) } return !i && !s ? (Le(e) && r.set(e, null), null) : (le(i) ? i.forEach(l => o[l] = null) : We(o, i), Le(e) && r.set(e, o), o) } function Wa(e, t) { return !e || !Va(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), we(e, t[0].toLowerCase() + t.slice(1)) || we(e, Pn(t)) || we(e, t)) } let Xe = null, Ga = null; function Ca(e) { const t = Xe; return Xe = e, Ga = e && e.type.__scopeId || null, t } function cs(e) { Ga = e } function ds() { Ga = null } function bt(e, t = Xe, n) { if (!t || e._n) return e; const r = (...a) => { r._d && Ki(-1); const i = Ca(t); let o; try { o = e(...a) } finally { Ca(i), r._d && Ki(1) } return o }; return r._n = !0, r._c = !0, r._d = !0, r } function ur(e) { const { type: t, vnode: n, proxy: r, withProxy: a, props: i, propsOptions: [o], slots: s, attrs: l, emit: u, render: c, renderCache: d, data: m, setupState: g, ctx: b, inheritAttrs: U } = e; let P, S; const W = Ca(e); try { if (n.shapeFlag & 4) { const E = a || r; P = xt(c.call(E, E, d, i, g, m, b)), S = l } else { const E = t; P = xt(E.length > 1 ? E(i, { attrs: l, slots: s, emit: u }) : E(i, null)), S = t.props ? l : xu(l) } } catch (E) { Zn.length = 0, Ka(E, e, 1), P = de(Zt) } let q = P; if (S && U !== !1) { const E = Object.keys(S), { shapeFlag: D } = q; E.length && D & 7 && (o && E.some(qr) && (S = Eu(S, o)), q = An(q, S)) } return n.dirs && (q = An(q), q.dirs = q.dirs ? q.dirs.concat(n.dirs) : n.dirs), n.transition && (q.transition = n.transition), P = q, Ca(W), P } const xu = e => { let t; for (const n in e) (n === "class" || n === "style" || Va(n)) && ((t || (t = {}))[n] = e[n]); return t }, Eu = (e, t) => { const n = {}; for (const r in e) (!qr(r) || !(r.slice(9) in t)) && (n[r] = e[r]); return n }; function ku(e, t, n) { const { props: r, children: a, component: i } = e, { props: o, children: s, patchFlag: l } = t, u = i.emitsOptions; if (t.dirs || t.transition) return !0; if (n && l >= 0) { if (l & 1024) return !0; if (l & 16) return r ? Li(r, o, u) : !!o; if (l & 8) { const c = t.dynamicProps; for (let d = 0; d < c.length; d++) { const m = c[d]; if (o[m] !== r[m] && !Wa(u, m)) return !0 } } } else return (a || s) && (!s || !s.$stable) ? !0 : r === o ? !1 : r ? o ? Li(r, o, u) : !0 : !!o; return !1 } function Li(e, t, n) { const r = Object.keys(t); if (r.length !== Object.keys(e).length) return !0; for (let a = 0; a < r.length; a++) { const i = r[a]; if (t[i] !== e[i] && !Wa(n, i)) return !0 } return !1 } function ju({ vnode: e, parent: t }, n) { for (; t && t.subTree === e;)(e = t.vnode).el = n, t = t.parent } const Cu = e => e.__isSuspense; function Su(e, t) { t && t.pendingBranch ? le(e) ? t.effects.push(...e) : t.effects.push(e) : Fu(e) } function Fa(e, t) { return ri(e, null, t) } const ma = {}; function ut(e, t, n) { return ri(e, t, n) } function ri(e, t, { immediate: n, deep: r, flush: a, onTrack: i, onTrigger: o } = Pe) { var s; const l = Pl() === ((s = Ke) == null ? void 0 : s.scope) ? Ke : null; let u, c = !1, d = !1; if (Be(e) ? (u = () => e.value, c = ja(e)) : jn(e) ? (u = () => e, r = !0) : le(e) ? (d = !0, c = e.some(E => jn(E) || ja(E)), u = () => e.map(E => { if (Be(E)) return E.value; if (jn(E)) return ln(E); if (me(E)) return Yt(E, l, 2) })) : me(e) ? t ? u = () => Yt(e, l, 2) : u = () => { if (!(l && l.isUnmounted)) return m && m(), yt(e, l, 3, [g]) } : u = gt, t && r) { const E = u; u = () => ln(E()) } let m, g = E => { m = W.onStop = () => { Yt(E, l, 4) } }, b; if (aa) if (g = gt, t ? n && yt(t, l, 3, [u(), d ? [] : void 0, g]) : u(), a === "sync") { const E = gc(); b = E.__watcherHandles || (E.__watcherHandles = []) } else return gt; let U = d ? new Array(e.length).fill(ma) : ma; const P = () => { if (W.active) if (t) { const E = W.run(); (r || c || (d ? E.some((D, L) => Qn(D, U[L])) : Qn(E, U))) && (m && m(), yt(t, l, 3, [E, U === ma ? void 0 : d && U[0] === ma ? [] : U, g]), U = E) } else W.run() }; P.allowRecurse = !!t; let S; a === "sync" ? S = P : a === "post" ? S = () => at(P, l && l.suspense) : (P.pre = !0, l && (P.id = l.uid), S = () => ai(P)); const W = new Xr(u, S); t ? n ? P() : U = W.run() : a === "post" ? at(W.run.bind(W), l && l.suspense) : W.run(); const q = () => { W.stop(), l && l.scope && Yr(l.scope.effects, W) }; return b && b.push(q), q } function Ou(e, t, n) { const r = this.proxy, a = qe(e) ? e.includes(".") ? fs(r, e) : () => r[e] : e.bind(r, r); let i; me(t) ? i = t : (i = t.handler, n = t); const o = Ke; Dn(this); const s = ri(a, i.bind(r), n); return o ? Dn(o) : dn(), s } function fs(e, t) { const n = t.split("."); return () => { let r = e; for (let a = 0; a < n.length && r; a++)r = r[n[a]]; return r } } function ln(e, t) { if (!Le(e) || e.__v_skip || (t = t || new Set, t.has(e))) return e; if (t.add(e), Be(e)) ln(e.value, t); else if (le(e)) for (let n = 0; n < e.length; n++)ln(e[n], t); else if (No(e) || kn(e)) e.forEach(n => { ln(n, t) }); else if ($o(e)) for (const n in e) ln(e[n], t); return e } function _t(e, t) { const n = Xe; if (n === null) return e; const r = tr(n) || n.proxy, a = e.dirs || (e.dirs = []); for (let i = 0; i < t.length; i++) { let [o, s, l, u = Pe] = t[i]; o && (me(o) && (o = { mounted: o, updated: o }), o.deep && ln(s), a.push({ dir: o, instance: r, value: s, oldValue: void 0, arg: l, modifiers: u })) } return e } function Jt(e, t, n, r) { const a = e.dirs, i = t && t.dirs; for (let o = 0; o < a.length; o++) { const s = a[o]; i && (s.oldValue = i[o].value); let l = s.dir[r]; l && (Ln(), yt(l, n, 8, [e.el, s, e, t]), In()) } } function Nt(e, t) { return me(e) ? (() => We({ name: e.name }, t, { setup: e }))() : e } const Gn = e => !!e.type.__asyncLoader, ms = e => e.type.__isKeepAlive; function Tu(e, t) { hs(e, "a", t) } function Au(e, t) { hs(e, "da", t) } function hs(e, t, n = Ke) { const r = e.__wdc || (e.__wdc = () => { let a = n; for (; a;) { if (a.isDeactivated) return; a = a.parent } return e() }); if (Xa(t, r, n), n) { let a = n.parent; for (; a && a.parent;)ms(a.parent.vnode) && Du(r, t, n, a), a = a.parent } } function Du(e, t, n, r) { const a = Xa(t, e, r, !0); ii(() => { Yr(r[t], a) }, n) } function Xa(e, t, n = Ke, r = !1) { if (n) { const a = n[e] || (n[e] = []), i = t.__weh || (t.__weh = (...o) => { if (n.isUnmounted) return; Ln(), Dn(n); const s = yt(t, n, e, o); return dn(), In(), s }); return r ? a.unshift(i) : a.push(i), i } } const Lt = e => (t, n = Ke) => (!aa || e === "sp") && Xa(e, (...r) => t(...r), n), Mu = Lt("bm"), Za = Lt("m"), Pu = Lt("bu"), Nu = Lt("u"), vs = Lt("bum"), ii = Lt("um"), Lu = Lt("sp"), Iu = Lt("rtg"), $u = Lt("rtc"); function Ru(e, t = Ke) { Xa("ec", e, t) } const oi = "components"; function zt(e, t) { return gs(oi, e, !0, t) || e } const ps = Symbol.for("v-ndc"); function Qa(e) { return qe(e) ? gs(oi, e, !1) || e : e || ps } function gs(e, t, n = !0, r = !1) { const a = Xe || Ke; if (a) { const i = a.type; if (e === oi) { const s = hc(i, !1); if (s && (s === t || s === St(t) || s === qa(St(t)))) return i } const o = Ii(a[e] || i[e], t) || Ii(a.appContext[e], t); return !o && r ? i : o } } function Ii(e, t) { return e && (e[t] || e[St(t)] || e[qa(St(t))]) } function Xt(e, t, n, r) { let a; const i = n && n[r]; if (le(e) || qe(e)) { a = new Array(e.length); for (let o = 0, s = e.length; o < s; o++)a[o] = t(e[o], o, void 0, i && i[o]) } else if (typeof e == "number") { a = new Array(e); for (let o = 0; o < e; o++)a[o] = t(o + 1, o, void 0, i && i[o]) } else if (Le(e)) if (e[Symbol.iterator]) a = Array.from(e, (o, s) => t(o, s, void 0, i && i[s])); else { const o = Object.keys(e); a = new Array(o.length); for (let s = 0, l = o.length; s < l; s++) { const u = o[s]; a[s] = t(e[u], u, s, i && i[s]) } } else a = []; return n && (n[r] = a), a } function Un(e, t, n = {}, r, a) { if (Xe.isCE || Xe.parent && Gn(Xe.parent) && Xe.parent.isCE) return t !== "default" && (n.name = t), de("slot", n, r && r()); let i = e[t]; i && i._c && (i._d = !1), R(); const o = i && ys(i(n)), s = Ze(Ne, { key: n.key || o && o.key || `_${t}` }, o || (r ? r() : []), o && e._ === 1 ? 64 : -2); return !a && s.scopeId && (s.slotScopeIds = [s.scopeId + "-s"]), i && i._c && (i._d = !0), s } function ys(e) { return e.some(t => Ta(t) ? !(t.type === Zt || t.type === Ne && !ys(t.children)) : !0) ? e : null } const kr = e => e ? Os(e) ? tr(e) || e.proxy : kr(e.parent) : null, Xn = We(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 => kr(e.parent), $root: e => kr(e.root), $emit: e => e.emit, $options: e => si(e), $forceUpdate: e => e.f || (e.f = () => ai(e.update)), $nextTick: e => e.n || (e.n = sn.bind(e.proxy)), $watch: e => Ou.bind(e) }), cr = (e, t) => e !== Pe && !e.__isScriptSetup && we(e, t), Bu = { get({ _: e }, t) { const { ctx: n, setupState: r, data: a, props: i, accessCache: o, type: s, appContext: l } = e; let u; if (t[0] !== "$") { const g = o[t]; if (g !== void 0) switch (g) { case 1: return r[t]; case 2: return a[t]; case 4: return n[t]; case 3: return i[t] } else { if (cr(r, t)) return o[t] = 1, r[t]; if (a !== Pe && we(a, t)) return o[t] = 2, a[t]; if ((u = e.propsOptions[0]) && we(u, t)) return o[t] = 3, i[t]; if (n !== Pe && we(n, t)) return o[t] = 4, n[t]; jr && (o[t] = 0) } } const c = Xn[t]; let d, m; if (c) return t === "$attrs" && it(e, "get", t), c(e); if ((d = s.__cssModules) && (d = d[t])) return d; if (n !== Pe && we(n, t)) return o[t] = 4, n[t]; if (m = l.config.globalProperties, we(m, t)) return m[t] }, set({ _: e }, t, n) { const { data: r, setupState: a, ctx: i } = e; return cr(a, t) ? (a[t] = n, !0) : r !== Pe && we(r, t) ? (r[t] = n, !0) : we(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (i[t] = n, !0) }, has({ _: { data: e, setupState: t, accessCache: n, ctx: r, appContext: a, propsOptions: i } }, o) { let s; return !!n[o] || e !== Pe && we(e, o) || cr(t, o) || (s = i[0]) && we(s, o) || we(r, o) || we(Xn, o) || we(a.config.globalProperties, o) }, defineProperty(e, t, n) { return n.get != null ? e._.accessCache[t] = 0 : we(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n) } }; function $i(e) { return le(e) ? e.reduce((t, n) => (t[n] = null, t), {}) : e } let jr = !0; function Vu(e) { const t = si(e), n = e.proxy, r = e.ctx; jr = !1, t.beforeCreate && Ri(t.beforeCreate, e, "bc"); const { data: a, computed: i, methods: o, watch: s, provide: l, inject: u, created: c, beforeMount: d, mounted: m, beforeUpdate: g, updated: b, activated: U, deactivated: P, beforeDestroy: S, beforeUnmount: W, destroyed: q, unmounted: E, render: D, renderTracked: L, renderTriggered: B, errorCaptured: J, serverPrefetch: ve, expose: k, inheritAttrs: G, components: pe, directives: ae, filters: ie } = t; if (u && Hu(u, r, null), o) for (const Y in o) { const z = o[Y]; me(z) && (r[Y] = z.bind(n)) } if (a) { const Y = a.call(n, n); Le(Y) && (e.data = mn(Y)) } if (jr = !0, i) for (const Y in i) { const z = i[Y], Te = me(z) ? z.bind(n, n) : me(z.get) ? z.get.bind(n, n) : gt, Me = !me(z) && me(z.set) ? z.set.bind(n) : gt, Ae = ee({ get: Te, set: Me }); Object.defineProperty(r, Y, { enumerable: !0, configurable: !0, get: () => Ae.value, set: Ee => Ae.value = Ee }) } if (s) for (const Y in s) bs(s[Y], r, n, Y); if (l) { const Y = me(l) ? l.call(n) : l; Reflect.ownKeys(Y).forEach(z => { li(z, Y[z]) }) } c && Ri(c, e, "c"); function X(Y, z) { le(z) ? z.forEach(Te => Y(Te.bind(n))) : z && Y(z.bind(n)) } if (X(Mu, d), X(Za, m), X(Pu, g), X(Nu, b), X(Tu, U), X(Au, P), X(Ru, J), X($u, L), X(Iu, B), X(vs, W), X(ii, E), X(Lu, ve), le(k)) if (k.length) { const Y = e.exposed || (e.exposed = {}); k.forEach(z => { Object.defineProperty(Y, z, { get: () => n[z], set: Te => n[z] = Te }) }) } else e.exposed || (e.exposed = {}); D && e.render === gt && (e.render = D), G != null && (e.inheritAttrs = G), pe && (e.components = pe), ae && (e.directives = ae) } function Hu(e, t, n = gt) { le(e) && (e = Cr(e)); for (const r in e) { const a = e[r]; let i; Le(a) ? "default" in a ? i = Sn(a.from || r, a.default, !0) : i = Sn(a.from || r) : i = Sn(a), Be(i) ? Object.defineProperty(t, r, { enumerable: !0, configurable: !0, get: () => i.value, set: o => i.value = o }) : t[r] = i } } function Ri(e, t, n) { yt(le(e) ? e.map(r => r.bind(t.proxy)) : e.bind(t.proxy), t, n) } function bs(e, t, n, r) { const a = r.includes(".") ? fs(n, r) : () => n[r]; if (qe(e)) { const i = t[e]; me(i) && ut(a, i) } else if (me(e)) ut(a, e.bind(n)); else if (Le(e)) if (le(e)) e.forEach(i => bs(i, t, n, r)); else { const i = me(e.handler) ? e.handler.bind(n) : t[e.handler]; me(i) && ut(a, i, e) } } function si(e) { const t = e.type, { mixins: n, extends: r } = t, { mixins: a, optionsCache: i, config: { optionMergeStrategies: o } } = e.appContext, s = i.get(t); let l; return s ? l = s : !a.length && !n && !r ? l = t : (l = {}, a.length && a.forEach(u => Sa(l, u, o, !0)), Sa(l, t, o)), Le(t) && i.set(t, l), l } function Sa(e, t, n, r = !1) { const { mixins: a, extends: i } = t; i && Sa(e, i, n, !0), a && a.forEach(o => Sa(e, o, n, !0)); for (const o in t) if (!(r && o === "expose")) { const s = zu[o] || n && n[o]; e[o] = s ? s(e[o], t[o]) : t[o] } return e } const zu = { data: Bi, props: Vi, emits: Vi, methods: Wn, computed: Wn, beforeCreate: et, created: et, beforeMount: et, mounted: et, beforeUpdate: et, updated: et, beforeDestroy: et, beforeUnmount: et, destroyed: et, unmounted: et, activated: et, deactivated: et, errorCaptured: et, serverPrefetch: et, components: Wn, directives: Wn, watch: Yu, provide: Bi, inject: qu }; function Bi(e, t) { return t ? e ? function () { return We(me(e) ? e.call(this, this) : e, me(t) ? t.call(this, this) : t) } : t : e } function qu(e, t) { return Wn(Cr(e), Cr(t)) } function Cr(e) { if (le(e)) { const t = {}; for (let n = 0; n < e.length; n++)t[e[n]] = e[n]; return t } return e } function et(e, t) { return e ? [...new Set([].concat(e, t))] : t } function Wn(e, t) { return e ? We(Object.create(null), e, t) : t } function Vi(e, t) { return e ? le(e) && le(t) ? [...new Set([...e, ...t])] : We(Object.create(null), $i(e), $i(t ?? {})) : t } function Yu(e, t) { if (!e) return t; if (!t) return e; const n = We(Object.create(null), e); for (const r in t) n[r] = et(e[r], t[r]); return n } function ws() { return { app: null, config: { isNativeTag: Fl, 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 Ku = 0; function Wu(e, t) { return function (r, a = null) { me(r) || (r = We({}, r)), a != null && !Le(a) && (a = null); const i = ws(), o = new Set; let s = !1; const l = i.app = { _uid: Ku++, _component: r, _props: a, _container: null, _context: i, _instance: null, version: yc, get config() { return i.config }, set config(u) { }, use(u, ...c) { return o.has(u) || (u && me(u.install) ? (o.add(u), u.install(l, ...c)) : me(u) && (o.add(u), u(l, ...c))), l }, mixin(u) { return i.mixins.includes(u) || i.mixins.push(u), l }, component(u, c) { return c ? (i.components[u] = c, l) : i.components[u] }, directive(u, c) { return c ? (i.directives[u] = c, l) : i.directives[u] }, mount(u, c, d) { if (!s) { const m = de(r, a); return m.appContext = i, c && t ? t(m, u) : e(m, u, d), s = !0, l._container = u, u.__vue_app__ = l, tr(m.component) || m.component.proxy } }, unmount() { s && (e(null, l._container), delete l._container.__vue_app__) }, provide(u, c) { return i.provides[u] = c, l }, runWithContext(u) { Oa = l; try { return u() } finally { Oa = null } } }; return l } } let Oa = null; function li(e, t) { if (Ke) { let n = Ke.provides; const r = Ke.parent && Ke.parent.provides; r === n && (n = Ke.provides = Object.create(r)), n[e] = t } } function Sn(e, t, n = !1) { const r = Ke || Xe; if (r || Oa) { const a = r ? r.parent == null ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : Oa._context.provides; if (a && e in a) return a[e]; if (arguments.length > 1) return n && me(t) ? t.call(r && r.proxy) : t } } function Gu(e, t, n, r = !1) { const a = {}, i = {}; Ea(i, er, 1), e.propsDefaults = Object.create(null), Fs(e, t, a, i); for (const o in e.propsOptions[0]) o in a || (a[o] = void 0); n ? e.props = r ? a : uu(a) : e.type.props ? e.props = a : e.props = i, e.attrs = i } function Xu(e, t, n, r) { const { props: a, attrs: i, vnode: { patchFlag: o } } = e, s = _e(a), [l] = e.propsOptions; let u = !1; if ((r || o > 0) && !(o & 16)) { if (o & 8) { const c = e.vnode.dynamicProps; for (let d = 0; d < c.length; d++) { let m = c[d]; if (Wa(e.emitsOptions, m)) continue; const g = t[m]; if (l) if (we(i, m)) g !== i[m] && (i[m] = g, u = !0); else { const b = St(m); a[b] = Sr(l, s, b, g, e, !1) } else g !== i[m] && (i[m] = g, u = !0) } } } else { Fs(e, t, a, i) && (u = !0); let c; for (const d in s) (!t || !we(t, d) && ((c = Pn(d)) === d || !we(t, c))) && (l ? n && (n[d] !== void 0 || n[c] !== void 0) && (a[d] = Sr(l, s, d, void 0, e, !0)) : delete a[d]); if (i !== s) for (const d in i) (!t || !we(t, d)) && (delete i[d], u = !0) } u && Pt(e, "set", "$attrs") } function Fs(e, t, n, r) { const [a, i] = e.propsOptions; let o = !1, s; if (t) for (let l in t) { if (ba(l)) continue; const u = t[l]; let c; a && we(a, c = St(l)) ? !i || !i.includes(c) ? n[c] = u : (s || (s = {}))[c] = u : Wa(e.emitsOptions, l) || (!(l in r) || u !== r[l]) && (r[l] = u, o = !0) } if (i) { const l = _e(n), u = s || Pe; for (let c = 0; c < i.length; c++) { const d = i[c]; n[d] = Sr(a, l, d, u[d], e, !we(u, d)) } } return o } function Sr(e, t, n, r, a, i) { const o = e[n]; if (o != null) { const s = we(o, "default"); if (s && r === void 0) { const l = o.default; if (o.type !== Function && !o.skipFactory && me(l)) { const { propsDefaults: u } = a; n in u ? r = u[n] : (Dn(a), r = u[n] = l.call(null, t), dn()) } else r = l } o[0] && (i && !s ? r = !1 : o[1] && (r === "" || r === Pn(n)) && (r = !0)) } return r } function Us(e, t, n = !1) { const r = t.propsCache, a = r.get(e); if (a) return a; const i = e.props, o = {}, s = []; let l = !1; if (!me(e)) { const c = d => { l = !0; const [m, g] = Us(d, t, !0); We(o, m), g && s.push(...g) }; !n && t.mixins.length && t.mixins.forEach(c), e.extends && c(e.extends), e.mixins && e.mixins.forEach(c) } if (!i && !l) return Le(e) && r.set(e, En), En; if (le(i)) for (let c = 0; c < i.length; c++) { const d = St(i[c]); Hi(d) && (o[d] = Pe) } else if (i) for (const c in i) { const d = St(c); if (Hi(d)) { const m = i[c], g = o[d] = le(m) || me(m) ? { type: m } : We({}, m); if (g) { const b = Yi(Boolean, g.type), U = Yi(String, g.type); g[0] = b > -1, g[1] = U < 0 || b < U, (b > -1 || we(g, "default")) && s.push(d) } } } const u = [o, s]; return Le(e) && r.set(e, u), u } function Hi(e) { return e[0] !== "$" } function zi(e) { const t = e && e.toString().match(/^\s*(function|class) (\w+)/); return t ? t[2] : e === null ? "null" : "" } function qi(e, t) { return zi(e) === zi(t) } function Yi(e, t) { return le(t) ? t.findIndex(n => qi(n, e)) : me(t) && qi(t, e) ? 0 : -1 } const _s = e => e[0] === "_" || e === "$stable", ui = e => le(e) ? e.map(xt) : [xt(e)], Zu = (e, t, n) => { if (t._n) return t; const r = bt((...a) => ui(t(...a)), n); return r._c = !1, r }, xs = (e, t, n) => { const r = e._ctx; for (const a in e) { if (_s(a)) continue; const i = e[a]; if (me(i)) t[a] = Zu(a, i, r); else if (i != null) { const o = ui(i); t[a] = () => o } } }, Es = (e, t) => { const n = ui(t); e.slots.default = () => n }, Qu = (e, t) => { if (e.vnode.shapeFlag & 32) { const n = t._; n ? (e.slots = _e(t), Ea(t, "_", n)) : xs(t, e.slots = {}) } else e.slots = {}, t && Es(e, t); Ea(e.slots, er, 1) }, Ju = (e, t, n) => { const { vnode: r, slots: a } = e; let i = !0, o = Pe; if (r.shapeFlag & 32) { const s = t._; s ? n && s === 1 ? i = !1 : (We(a, t), !n && s === 1 && delete a._) : (i = !t.$stable, xs(t, a)), o = t } else t && (Es(e, t), o = { default: 1 }); if (i) for (const s in a) !_s(s) && !(s in o) && delete a[s] }; function Or(e, t, n, r, a = !1) { if (le(e)) { e.forEach((m, g) => Or(m, t && (le(t) ? t[g] : t), n, r, a)); return } if (Gn(r) && !a) return; const i = r.shapeFlag & 4 ? tr(r.component) || r.component.proxy : r.el, o = a ? null : i, { i: s, r: l } = e, u = t && t.r, c = s.refs === Pe ? s.refs = {} : s.refs, d = s.setupState; if (u != null && u !== l && (qe(u) ? (c[u] = null, we(d, u) && (d[u] = null)) : Be(u) && (u.value = null)), me(l)) Yt(l, s, 12, [o, c]); else { const m = qe(l), g = Be(l); if (m || g) { const b = () => { if (e.f) { const U = m ? we(d, l) ? d[l] : c[l] : l.value; a ? le(U) && Yr(U, i) : le(U) ? U.includes(i) || U.push(i) : m ? (c[l] = [i], we(d, l) && (d[l] = c[l])) : (l.value = [i], e.k && (c[e.k] = l.value)) } else m ? (c[l] = o, we(d, l) && (d[l] = o)) : g && (l.value = o, e.k && (c[e.k] = o)) }; o ? (b.id = -1, at(b, n)) : b() } } } const at = Su; function ec(e) { return tc(e) } function tc(e, t) { const n = Fr(); n.__VUE__ = !0; const { insert: r, remove: a, patchProp: i, createElement: o, createText: s, createComment: l, setText: u, setElementText: c, parentNode: d, nextSibling: m, setScopeId: g = gt, insertStaticContent: b } = e, U = (f, h, w, _ = null, x = null, O = null, N = !1, T = null, M = !!h.dynamicChildren) => { if (f === h) return; f && !Bn(f, h) && (_ = ke(f), Ee(f, x, O, !0), f = null), h.patchFlag === -2 && (M = !1, h.dynamicChildren = null); const { type: j, ref: p, shapeFlag: v } = h; switch (j) { case Ja: P(f, h, w, _); break; case Zt: S(f, h, w, _); break; case dr: f == null && W(h, w, _, N); break; case Ne: pe(f, h, w, _, x, O, N, T, M); break; default: v & 1 ? D(f, h, w, _, x, O, N, T, M) : v & 6 ? ae(f, h, w, _, x, O, N, T, M) : (v & 64 || v & 128) && j.process(f, h, w, _, x, O, N, T, M, fe) }p != null && x && Or(p, f && f.ref, O, h || f, !h) }, P = (f, h, w, _) => { if (f == null) r(h.el = s(h.children), w, _); else { const x = h.el = f.el; h.children !== f.children && u(x, h.children) } }, S = (f, h, w, _) => { f == null ? r(h.el = l(h.children || ""), w, _) : h.el = f.el }, W = (f, h, w, _) => { [f.el, f.anchor] = b(f.children, h, w, _, f.el, f.anchor) }, q = ({ el: f, anchor: h }, w, _) => { let x; for (; f && f !== h;)x = m(f), r(f, w, _), f = x; r(h, w, _) }, E = ({ el: f, anchor: h }) => { let w; for (; f && f !== h;)w = m(f), a(f), f = w; a(h) }, D = (f, h, w, _, x, O, N, T, M) => { N = N || h.type === "svg", f == null ? L(h, w, _, x, O, N, T, M) : ve(f, h, x, O, N, T, M) }, L = (f, h, w, _, x, O, N, T) => { let M, j; const { type: p, props: v, shapeFlag: y, transition: C, dirs: K } = f; if (M = f.el = o(f.type, O, v && v.is, v), y & 8 ? c(M, f.children) : y & 16 && J(f.children, M, null, _, x, O && p !== "foreignObject", N, T), K && Jt(f, null, _, "created"), B(M, f, f.scopeId, N, _), v) { for (const Z in v) Z !== "value" && !ba(Z) && i(M, Z, null, v[Z], O, f.children, _, x, ue); "value" in v && i(M, "value", null, v.value), (j = v.onVnodeBeforeMount) && Ut(j, _, f) } K && Jt(f, null, _, "beforeMount"); const H = (!x || x && !x.pendingBranch) && C && !C.persisted; H && C.beforeEnter(M), r(M, h, w), ((j = v && v.onVnodeMounted) || H || K) && at(() => { j && Ut(j, _, f), H && C.enter(M), K && Jt(f, null, _, "mounted") }, x) }, B = (f, h, w, _, x) => { if (w && g(f, w), _) for (let O = 0; O < _.length; O++)g(f, _[O]); if (x) { let O = x.subTree; if (h === O) { const N = x.vnode; B(f, N, N.scopeId, N.slotScopeIds, x.parent) } } }, J = (f, h, w, _, x, O, N, T, M = 0) => { for (let j = M; j < f.length; j++) { const p = f[j] = T ? Bt(f[j]) : xt(f[j]); U(null, p, h, w, _, x, O, N, T) } }, ve = (f, h, w, _, x, O, N) => { const T = h.el = f.el; let { patchFlag: M, dynamicChildren: j, dirs: p } = h; M |= f.patchFlag & 16; const v = f.props || Pe, y = h.props || Pe; let C; w && en(w, !1), (C = y.onVnodeBeforeUpdate) && Ut(C, w, h, f), p && Jt(h, f, w, "beforeUpdate"), w && en(w, !0); const K = x && h.type !== "foreignObject"; if (j ? k(f.dynamicChildren, j, T, w, _, K, O) : N || z(f, h, T, null, w, _, K, O, !1), M > 0) { if (M & 16) G(T, h, v, y, w, _, x); else if (M & 2 && v.class !== y.class && i(T, "class", null, y.class, x), M & 4 && i(T, "style", v.style, y.style, x), M & 8) { const H = h.dynamicProps; for (let Z = 0; Z < H.length; Z++) { const ce = H[Z], ge = v[ce], Oe = y[ce]; (Oe !== ge || ce === "value") && i(T, ce, ge, Oe, x, f.children, w, _, ue) } } M & 1 && f.children !== h.children && c(T, h.children) } else !N && j == null && G(T, h, v, y, w, _, x); ((C = y.onVnodeUpdated) || p) && at(() => { C && Ut(C, w, h, f), p && Jt(h, f, w, "updated") }, _) }, k = (f, h, w, _, x, O, N) => { for (let T = 0; T < h.length; T++) { const M = f[T], j = h[T], p = M.el && (M.type === Ne || !Bn(M, j) || M.shapeFlag & 70) ? d(M.el) : w; U(M, j, p, null, _, x, O, N, !0) } }, G = (f, h, w, _, x, O, N) => { if (w !== _) { if (w !== Pe) for (const T in w) !ba(T) && !(T in _) && i(f, T, w[T], null, N, h.children, x, O, ue); for (const T in _) { if (ba(T)) continue; const M = _[T], j = w[T]; M !== j && T !== "value" && i(f, T, j, M, N, h.children, x, O, ue) } "value" in _ && i(f, "value", w.value, _.value) } }, pe = (f, h, w, _, x, O, N, T, M) => { const j = h.el = f ? f.el : s(""), p = h.anchor = f ? f.anchor : s(""); let { patchFlag: v, dynamicChildren: y, slotScopeIds: C } = h; C && (T = T ? T.concat(C) : C), f == null ? (r(j, w, _), r(p, w, _), J(h.children, w, p, x, O, N, T, M)) : v > 0 && v & 64 && y && f.dynamicChildren ? (k(f.dynamicChildren, y, w, x, O, N, T), (h.key != null || x && h === x.subTree) && ks(f, h, !0)) : z(f, h, w, p, x, O, N, T, M) }, ae = (f, h, w, _, x, O, N, T, M) => { h.slotScopeIds = T, f == null ? h.shapeFlag & 512 ? x.ctx.activate(h, w, _, N, M) : ie(h, w, _, x, O, N, M) : re(f, h, M) }, ie = (f, h, w, _, x, O, N) => { const T = f.component = uc(f, _, x); if (ms(f) && (T.ctx.renderer = fe), cc(T), T.asyncDep) { if (x && x.registerDep(T, X), !f.el) { const M = T.subTree = de(Zt); S(null, M, h, w) } return } X(T, f, h, w, x, O, N) }, re = (f, h, w) => { const _ = h.component = f.component; if (ku(f, h, w)) if (_.asyncDep && !_.asyncResolved) { Y(_, h, w); return } else _.next = h, wu(_.update), _.update(); else h.el = f.el, _.vnode = h }, X = (f, h, w, _, x, O, N) => { const T = () => { if (f.isMounted) { let { next: p, bu: v, u: y, parent: C, vnode: K } = f, H = p, Z; en(f, !1), p ? (p.el = K.el, Y(f, p, N)) : p = K, v && wa(v), (Z = p.props && p.props.onVnodeBeforeUpdate) && Ut(Z, C, p, K), en(f, !0); const ce = ur(f), ge = f.subTree; f.subTree = ce, U(ge, ce, d(ge.el), ke(ge), f, x, O), p.el = ce.el, H === null && ju(f, ce.el), y && at(y, x), (Z = p.props && p.props.onVnodeUpdated) && at(() => Ut(Z, C, p, K), x) } else { let p; const { el: v, props: y } = h, { bm: C, m: K, parent: H } = f, Z = Gn(h); if (en(f, !1), C && wa(C), !Z && (p = y && y.onVnodeBeforeMount) && Ut(p, H, h), en(f, !0), v && Ye) { const ce = () => { f.subTree = ur(f), Ye(v, f.subTree, f, x, null) }; Z ? h.type.__asyncLoader().then(() => !f.isUnmounted && ce()) : ce() } else { const ce = f.subTree = ur(f); U(null, ce, w, _, f, x, O), h.el = ce.el } if (K && at(K, x), !Z && (p = y && y.onVnodeMounted)) { const ce = h; at(() => Ut(p, H, ce), x) } (h.shapeFlag & 256 || H && Gn(H.vnode) && H.vnode.shapeFlag & 256) && f.a && at(f.a, x), f.isMounted = !0, h = w = _ = null } }, M = f.effect = new Xr(T, () => ai(j), f.scope), j = f.update = () => M.run(); j.id = f.uid, en(f, !0), j() }, Y = (f, h, w) => { h.component = f; const _ = f.vnode.props; f.vnode = h, f.next = null, Xu(f, h.props, _, w), Ju(f, h.children, w), Ln(), Ni(), In() }, z = (f, h, w, _, x, O, N, T, M = !1) => { const j = f && f.children, p = f ? f.shapeFlag : 0, v = h.children, { patchFlag: y, shapeFlag: C } = h; if (y > 0) { if (y & 128) { Me(j, v, w, _, x, O, N, T, M); return } else if (y & 256) { Te(j, v, w, _, x, O, N, T, M); return } } C & 8 ? (p & 16 && ue(j, x, O), v !== j && c(w, v)) : p & 16 ? C & 16 ? Me(j, v, w, _, x, O, N, T, M) : ue(j, x, O, !0) : (p & 8 && c(w, ""), C & 16 && J(v, w, _, x, O, N, T, M)) }, Te = (f, h, w, _, x, O, N, T, M) => { f = f || En, h = h || En; const j = f.length, p = h.length, v = Math.min(j, p); let y; for (y = 0; y < v; y++) { const C = h[y] = M ? Bt(h[y]) : xt(h[y]); U(f[y], C, w, null, x, O, N, T, M) } j > p ? ue(f, x, O, !0, !1, v) : J(h, w, _, x, O, N, T, M, v) }, Me = (f, h, w, _, x, O, N, T, M) => { let j = 0; const p = h.length; let v = f.length - 1, y = p - 1; for (; j <= v && j <= y;) { const C = f[j], K = h[j] = M ? Bt(h[j]) : xt(h[j]); if (Bn(C, K)) U(C, K, w, null, x, O, N, T, M); else break; j++ } for (; j <= v && j <= y;) { const C = f[v], K = h[y] = M ? Bt(h[y]) : xt(h[y]); if (Bn(C, K)) U(C, K, w, null, x, O, N, T, M); else break; v--, y-- } if (j > v) { if (j <= y) { const C = y + 1, K = C < p ? h[C].el : _; for (; j <= y;)U(null, h[j] = M ? Bt(h[j]) : xt(h[j]), w, K, x, O, N, T, M), j++ } } else if (j > y) for (; j <= v;)Ee(f[j], x, O, !0), j++; else { const C = j, K = j, H = new Map; for (j = K; j <= y; j++) { const ot = h[j] = M ? Bt(h[j]) : xt(h[j]); ot.key != null && H.set(ot.key, j) } let Z, ce = 0; const ge = y - K + 1; let Oe = !1, nt = 0; const Ot = new Array(ge); for (j = 0; j < ge; j++)Ot[j] = 0; for (j = C; j <= v; j++) { const ot = f[j]; if (ce >= ge) { Ee(ot, x, O, !0); continue } let Ft; if (ot.key != null) Ft = H.get(ot.key); else for (Z = K; Z <= y; Z++)if (Ot[Z - K] === 0 && Bn(ot, h[Z])) { Ft = Z; break } Ft === void 0 ? Ee(ot, x, O, !0) : (Ot[Ft - K] = j + 1, Ft >= nt ? nt = Ft : Oe = !0, U(ot, h[Ft], w, null, x, O, N, T, M), ce++) } const ki = Oe ? nc(Ot) : En; for (Z = ki.length - 1, j = ge - 1; j >= 0; j--) { const ot = K + j, Ft = h[ot], ji = ot + 1 < p ? h[ot + 1].el : _; Ot[j] === 0 ? U(null, Ft, w, ji, x, O, N, T, M) : Oe && (Z < 0 || j !== ki[Z] ? Ae(Ft, w, ji, 2) : Z--) } } }, Ae = (f, h, w, _, x = null) => { const { el: O, type: N, transition: T, children: M, shapeFlag: j } = f; if (j & 6) { Ae(f.component.subTree, h, w, _); return } if (j & 128) { f.suspense.move(h, w, _); return } if (j & 64) { N.move(f, h, w, fe); return } if (N === Ne) { r(O, h, w); for (let v = 0; v < M.length; v++)Ae(M[v], h, w, _); r(f.anchor, h, w); return } if (N === dr) { q(f, h, w); return } if (_ !== 2 && j & 1 && T) if (_ === 0) T.beforeEnter(O), r(O, h, w), at(() => T.enter(O), x); else { const { leave: v, delayLeave: y, afterLeave: C } = T, K = () => r(O, h, w), H = () => { v(O, () => { K(), C && C() }) }; y ? y(O, K, H) : H() } else r(O, h, w) }, Ee = (f, h, w, _ = !1, x = !1) => { const { type: O, props: N, ref: T, children: M, dynamicChildren: j, shapeFlag: p, patchFlag: v, dirs: y } = f; if (T != null && Or(T, null, w, f, !0), p & 256) { h.ctx.deactivate(f); return } const C = p & 1 && y, K = !Gn(f); let H; if (K && (H = N && N.onVnodeBeforeUnmount) && Ut(H, h, f), p & 6) I(f.component, w, _); else { if (p & 128) { f.suspense.unmount(w, _); return } C && Jt(f, null, h, "beforeUnmount"), p & 64 ? f.type.remove(f, h, w, x, fe, _) : j && (O !== Ne || v > 0 && v & 64) ? ue(j, h, w, !1, !0) : (O === Ne && v & 384 || !x && p & 16) && ue(M, h, w), _ && je(f) } (K && (H = N && N.onVnodeUnmounted) || C) && at(() => { H && Ut(H, h, f), C && Jt(f, null, h, "unmounted") }, w) }, je = f => { const { type: h, el: w, anchor: _, transition: x } = f; if (h === Ne) { Ie(w, _); return } if (h === dr) { E(f); return } const O = () => { a(w), x && !x.persisted && x.afterLeave && x.afterLeave() }; if (f.shapeFlag & 1 && x && !x.persisted) { const { leave: N, delayLeave: T } = x, M = () => N(w, O); T ? T(f.el, O, M) : M() } else O() }, Ie = (f, h) => { let w; for (; f !== h;)w = m(f), a(f), f = w; a(h) }, I = (f, h, w) => { const { bum: _, scope: x, update: O, subTree: N, um: T } = f; _ && wa(_), x.stop(), O && (O.active = !1, Ee(N, f, h, w)), T && at(T, h), at(() => { f.isUnmounted = !0 }, h), h && h.pendingBranch && !h.isUnmounted && f.asyncDep && !f.asyncResolved && f.suspenseId === h.pendingId && (h.deps--, h.deps === 0 && h.resolve()) }, ue = (f, h, w, _ = !1, x = !1, O = 0) => { for (let N = O; N < f.length; N++)Ee(f[N], h, w, _, x) }, ke = f => f.shapeFlag & 6 ? ke(f.component.subTree) : f.shapeFlag & 128 ? f.suspense.next() : m(f.anchor || f.el), se = (f, h, w) => { f == null ? h._vnode && Ee(h._vnode, null, null, !0) : U(h._vnode || null, f, h, null, null, null, w), Ni(), ss(), h._vnode = f }, fe = { p: U, um: Ee, m: Ae, r: je, mt: ie, mc: J, pc: z, pbc: k, n: ke, o: e }; let De, Ye; return t && ([De, Ye] = t(fe)), { render: se, hydrate: De, createApp: Wu(se, De) } } function en({ effect: e, update: t }, n) { e.allowRecurse = t.allowRecurse = n } function ks(e, t, n = !1) { const r = e.children, a = t.children; if (le(r) && le(a)) for (let i = 0; i < r.length; i++) { const o = r[i]; let s = a[i]; s.shapeFlag & 1 && !s.dynamicChildren && ((s.patchFlag <= 0 || s.patchFlag === 32) && (s = a[i] = Bt(a[i]), s.el = o.el), n || ks(o, s)), s.type === Ja && (s.el = o.el) } } function nc(e) { const t = e.slice(), n = [0]; let r, a, i, o, s; const l = e.length; for (r = 0; r < l; r++) { const u = e[r]; if (u !== 0) { if (a = n[n.length - 1], e[a] < u) { t[r] = a, n.push(r); continue } for (i = 0, o = n.length - 1; i < o;)s = i + o >> 1, e[n[s]] < u ? i = s + 1 : o = s; u < e[n[i]] && (i > 0 && (t[r] = n[i - 1]), n[i] = r) } } for (i = n.length, o = n[i - 1]; i-- > 0;)n[i] = o, o = t[o]; return n } const ac = e => e.__isTeleport, Ne = Symbol.for("v-fgt"), Ja = Symbol.for("v-txt"), Zt = Symbol.for("v-cmt"), dr = Symbol.for("v-stc"), Zn = []; let pt = null; function R(e = !1) { Zn.push(pt = e ? null : []) } function rc() { Zn.pop(), pt = Zn[Zn.length - 1] || null } let na = 1; function Ki(e) { na += e } function js(e) { return e.dynamicChildren = na > 0 ? pt || En : null, rc(), na > 0 && pt && pt.push(e), e } function ne(e, t, n, r, a, i) { return js(F(e, t, n, r, a, i, !0)) } function Ze(e, t, n, r, a) { return js(de(e, t, n, r, a, !0)) } function Ta(e) { return e ? e.__v_isVNode === !0 : !1 } function Bn(e, t) { return e.type === t.type && e.key === t.key } const er = "__vInternal", Cs = ({ key: e }) => e ?? null, Ua = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e != null ? qe(e) || Be(e) || me(e) ? { i: Xe, r: e, k: t, f: !!n } : e : null); function F(e, t = null, n = null, r = 0, a = null, i = e === Ne ? 0 : 1, o = !1, s = !1) { const l = { __v_isVNode: !0, __v_skip: !0, type: e, props: t, key: t && Cs(t), ref: t && Ua(t), scopeId: Ga, slotScopeIds: null, children: n, component: null, suspense: null, ssContent: null, ssFallback: null, dirs: null, transition: null, el: null, anchor: null, target: null, targetAnchor: null, staticCount: 0, shapeFlag: i, patchFlag: r, dynamicProps: a, dynamicChildren: null, appContext: null, ctx: Xe }; return s ? (ci(l, n), i & 128 && e.normalize(l)) : n && (l.shapeFlag |= qe(n) ? 8 : 16), na > 0 && !o && pt && (l.patchFlag > 0 || i & 6) && l.patchFlag !== 32 && pt.push(l), l } const de = ic; function ic(e, t = null, n = null, r = 0, a = null, i = !1) { if ((!e || e === ps) && (e = Zt), Ta(e)) { const s = An(e, t, !0); return n && ci(s, n), na > 0 && !i && pt && (s.shapeFlag & 6 ? pt[pt.indexOf(e)] = s : pt.push(s)), s.patchFlag |= -2, s } if (vc(e) && (e = e.__vccOpts), t) { t = oc(t); let { class: s, style: l } = t; s && !qe(s) && (t.class = Wt(s)), Le(l) && (Jo(l) && !le(l) && (l = We({}, l)), t.style = Nn(l)) } const o = qe(e) ? 1 : Cu(e) ? 128 : ac(e) ? 64 : Le(e) ? 4 : me(e) ? 2 : 0; return F(e, t, n, r, a, o, i, !0) } function oc(e) { return e ? Jo(e) || er in e ? We({}, e) : e : null } function An(e, t, n = !1) { const { props: r, ref: a, patchFlag: i, children: o } = e, s = t ? Ss(r || {}, t) : r; return { __v_isVNode: !0, __v_skip: !0, type: e.type, props: s, key: s && Cs(s), ref: t && t.ref ? n && a ? le(a) ? a.concat(Ua(t)) : [a, Ua(t)] : Ua(t) : a, scopeId: e.scopeId, slotScopeIds: e.slotScopeIds, children: o, target: e.target, targetAnchor: e.targetAnchor, staticCount: e.staticCount, shapeFlag: e.shapeFlag, patchFlag: t && e.type !== Ne ? i === -1 ? 16 : i | 16 : i, dynamicProps: e.dynamicProps, dynamicChildren: e.dynamicChildren, appContext: e.appContext, dirs: e.dirs, transition: e.transition, component: e.component, suspense: e.suspense, ssContent: e.ssContent && An(e.ssContent), ssFallback: e.ssFallback && An(e.ssFallback), el: e.el, anchor: e.anchor, ctx: e.ctx, ce: e.ce } } function pn(e = " ", t = 0) { return de(Ja, null, e, t) } function Ge(e = "", t = !1) { return t ? (R(), Ze(Zt, null, e)) : de(Zt, null, e) } function xt(e) { return e == null || typeof e == "boolean" ? de(Zt) : le(e) ? de(Ne, null, e.slice()) : typeof e == "object" ? Bt(e) : de(Ja, null, String(e)) } function Bt(e) { return e.el === null && e.patchFlag !== -1 || e.memo ? e : An(e) } function ci(e, t) { let n = 0; const { shapeFlag: r } = e; if (t == null) t = null; else if (le(t)) n = 16; else if (typeof t == "object") if (r & 65) { const a = t.default; a && (a._c && (a._d = !1), ci(e, a()), a._c && (a._d = !0)); return } else { n = 32; const a = t._; !a && !(er in t) ? t._ctx = Xe : a === 3 && Xe && (Xe.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024)) } else me(t) ? (t = { default: t, _ctx: Xe }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [pn(t)]) : n = 8); e.children = t, e.shapeFlag |= n } function Ss(...e) { const t = {}; for (let n = 0; n < e.length; n++) { const r = e[n]; for (const a in r) if (a === "class") t.class !== r.class && (t.class = Wt([t.class, r.class])); else if (a === "style") t.style = Nn([t.style, r.style]); else if (Va(a)) { const i = t[a], o = r[a]; o && i !== o && !(le(i) && i.includes(o)) && (t[a] = i ? [].concat(i, o) : o) } else a !== "" && (t[a] = r[a]) } return t } function Ut(e, t, n, r = null) { yt(e, t, 7, [n, r]) } const sc = ws(); let lc = 0; function uc(e, t, n) { const r = e.type, a = (t ? t.appContext : e.appContext) || sc, i = { uid: lc++, vnode: e, type: r, parent: t, appContext: a, root: null, next: null, subTree: null, effect: null, update: null, scope: new Dl(!0), render: null, proxy: null, exposed: null, exposeProxy: null, withProxy: null, provides: t ? t.provides : Object.create(a.provides), accessCache: null, renderCache: [], components: null, directives: null, propsOptions: Us(r, a), emitsOptions: us(r, a), emit: null, emitted: null, propsDefaults: Pe, inheritAttrs: r.inheritAttrs, ctx: Pe, data: Pe, props: Pe, attrs: Pe, slots: Pe, refs: Pe, setupState: Pe, setupContext: null, attrsProxy: null, slotsProxy: null, suspense: n, suspenseId: n ? n.pendingId : 0, asyncDep: null, asyncResolved: !1, isMounted: !1, isUnmounted: !1, isDeactivated: !1, bc: null, c: null, bm: null, m: null, bu: null, u: null, um: null, bum: null, da: null, a: null, rtg: null, rtc: null, ec: null, sp: null }; return i.ctx = { _: i }, i.root = t ? t.root : i, i.emit = _u.bind(null, i), e.ce && e.ce(i), i } let Ke = null; const di = () => Ke || Xe; let fi, bn, Wi = "__VUE_INSTANCE_SETTERS__"; (bn = Fr()[Wi]) || (bn = Fr()[Wi] = []), bn.push(e => Ke = e), fi = e => { bn.length > 1 ? bn.forEach(t => t(e)) : bn[0](e) }; const Dn = e => { fi(e), e.scope.on() }, dn = () => { Ke && Ke.scope.off(), fi(null) }; function Os(e) { return e.vnode.shapeFlag & 4 } let aa = !1; function cc(e, t = !1) { aa = t; const { props: n, children: r } = e.vnode, a = Os(e); Gu(e, n, a, t), Qu(e, r); const i = a ? dc(e, t) : void 0; return aa = !1, i } function dc(e, t) { const n = e.type; e.accessCache = Object.create(null), e.proxy = es(new Proxy(e.ctx, Bu)); const { setup: r } = n; if (r) { const a = e.setupContext = r.length > 1 ? mc(e) : null; Dn(e), Ln(); const i = Yt(r, e, 0, [e.props, a]); if (In(), dn(), Lo(i)) { if (i.then(dn, dn), t) return i.then(o => { Gi(e, o, t) }).catch(o => { Ka(o, e, 0) }); e.asyncDep = i } else Gi(e, i, t) } else Ts(e, t) } function Gi(e, t, n) { me(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : Le(t) && (e.setupState = rs(t)), Ts(e, n) } let Xi; function Ts(e, t, n) { const r = e.type; if (!e.render) { if (!t && Xi && !r.render) { const a = r.template || si(e).template; if (a) { const { isCustomElement: i, compilerOptions: o } = e.appContext.config, { delimiters: s, compilerOptions: l } = r, u = We(We({ isCustomElement: i, delimiters: s }, o), l); r.render = Xi(a, u) } } e.render = r.render || gt } Dn(e), Ln(), Vu(e), In(), dn() } function fc(e) { return e.attrsProxy || (e.attrsProxy = new Proxy(e.attrs, { get(t, n) { return it(e, "get", "$attrs"), t[n] } })) } function mc(e) { const t = n => { e.exposed = n || {} }; return { get attrs() { return fc(e) }, slots: e.slots, emit: e.emit, expose: t } } function tr(e) { if (e.exposed) return e.exposeProxy || (e.exposeProxy = new Proxy(rs(es(e.exposed)), { get(t, n) { if (n in t) return t[n]; if (n in Xn) return Xn[n](e) }, has(t, n) { return n in t || n in Xn } })) } function hc(e, t = !0) { return me(e) ? e.displayName || e.name : e.name || t && e.__name } function vc(e) { return me(e) && "__vccOpts" in e } const ee = (e, t) => gu(e, t, aa); function Aa(e, t, n) { const r = arguments.length; return r === 2 ? Le(t) && !le(t) ? Ta(t) ? de(e, null, [t]) : de(e, t) : de(e, null, t) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && Ta(n) && (n = [n]), de(e, t, n)) } const pc = Symbol.for("v-scx"), gc = () => Sn(pc), yc = "3.3.0", bc = "http://www.w3.org/2000/svg", rn = typeof document < "u" ? document : null, Zi = rn && rn.createElement("template"), wc = { insert: (e, t, n) => { t.insertBefore(e, n || null) }, remove: e => { const t = e.parentNode; t && t.removeChild(e) }, createElement: (e, t, n, r) => { const a = t ? rn.createElementNS(bc, e) : rn.createElement(e, n ? { is: n } : void 0); return e === "select" && r && r.multiple != null && a.setAttribute("multiple", r.multiple), a }, createText: e => rn.createTextNode(e), createComment: e => rn.createComment(e), setText: (e, t) => { e.nodeValue = t }, setElementText: (e, t) => { e.textContent = t }, parentNode: e => e.parentNode, nextSibling: e => e.nextSibling, querySelector: e => rn.querySelector(e), setScopeId(e, t) { e.setAttribute(t, "") }, insertStaticContent(e, t, n, r, a, i) { const o = n ? n.previousSibling : t.lastChild; if (a && (a === i || a.nextSibling)) for (; t.insertBefore(a.cloneNode(!0), n), !(a === i || !(a = a.nextSibling));); else { Zi.innerHTML = r ? `<svg>${e}</svg>` : e; const s = Zi.content; if (r) { const l = s.firstChild; for (; l.firstChild;)s.appendChild(l.firstChild); s.removeChild(l) } t.insertBefore(s, n) } return [o ? o.nextSibling : t.firstChild, n ? n.previousSibling : t.lastChild] } }; function Fc(e, t, n) { const r = e._vtc; r && (t = (t ? [t, ...r] : [...r]).join(" ")), t == null ? e.removeAttribute("class") : n ? e.setAttribute("class", t) : e.className = t } function Uc(e, t, n) { const r = e.style, a = qe(n); if (n && !a) { if (t && !qe(t)) for (const i in t) n[i] == null && Tr(r, i, ""); for (const i in n) Tr(r, i, n[i]) } else { const i = r.display; a ? t !== n && (r.cssText = n) : t && e.removeAttribute("style"), "_vod" in e && (r.display = i) } } const Qi = /\s*!important$/; function Tr(e, t, n) { if (le(n)) n.forEach(r => Tr(e, t, r)); else if (n == null && (n = ""), t.startsWith("--")) e.setProperty(t, n); else { const r = _c(e, t); Qi.test(n) ? e.setProperty(Pn(r), n.replace(Qi, ""), "important") : e[r] = n } } const Ji = ["Webkit", "Moz", "ms"], fr = {}; function _c(e, t) { const n = fr[t]; if (n) return n; let r = St(t); if (r !== "filter" && r in e) return fr[t] = r; r = qa(r); for (let a = 0; a < Ji.length; a++) { const i = Ji[a] + r; if (i in e) return fr[t] = i } return t } const eo = "http://www.w3.org/1999/xlink"; function xc(e, t, n, r, a) { if (r && t.startsWith("xlink:")) n == null ? e.removeAttributeNS(eo, t.slice(6, t.length)) : e.setAttributeNS(eo, t, n); else { const i = Al(t); n == null || i && !Ro(n) ? e.removeAttribute(t) : e.setAttribute(t, i ? "" : n) } } function Ec(e, t, n, r, a, i, o) { if (t === "innerHTML" || t === "textContent") { r && o(r, a, i), e[t] = n ?? ""; return } const s = e.tagName; if (t === "value" && s !== "PROGRESS" && !s.includes("-")) { e._value = n; const u = s === "OPTION" ? e.getAttribute("value") : e.value, c = n ?? ""; u !== c && (e.value = c), n == null && e.removeAttribute(t); return } let l = !1; if (n === "" || n == null) { const u = typeof e[t]; u === "boolean" ? n = Ro(n) : n == null && u === "string" ? (n = "", l = !0) : u === "number" && (n = 0, l = !0) } try { e[t] = n } catch { } l && e.removeAttribute(t) } function _n(e, t, n, r) { e.addEventListener(t, n, r) } function kc(e, t, n, r) { e.removeEventListener(t, n, r) } function jc(e, t, n, r, a = null) { const i = e._vei || (e._vei = {}), o = i[t]; if (r && o) o.value = r; else { const [s, l] = Cc(t); if (r) { const u = i[t] = Tc(r, a); _n(e, s, u, l) } else o && (kc(e, s, o, l), i[t] = void 0) } } const to = /(?:Once|Passive|Capture)$/; function Cc(e) { let t; if (to.test(e)) { t = {}; let r; for (; r = e.match(to);)e = e.slice(0, e.length - r[0].length), t[r[0].toLowerCase()] = !0 } return [e[2] === ":" ? e.slice(3) : Pn(e.slice(2)), t] } let mr = 0; const Sc = Promise.resolve(), Oc = () => mr || (Sc.then(() => mr = 0), mr = Date.now()); function Tc(e, t) { const n = r => { if (!r._vts) r._vts = Date.now(); else if (r._vts <= n.attached) return; yt(Ac(r, n.value), t, 5, [r]) }; return n.value = e, n.attached = Oc(), n } function Ac(e, t) { if (le(t)) { const n = e.stopImmediatePropagation; return e.stopImmediatePropagation = () => { n.call(e), e._stopped = !0 }, t.map(r => a => !a._stopped && r && r(a)) } else return t } const no = /^on[a-z]/, Dc = (e, t, n, r, a = !1, i, o, s, l) => { t === "class" ? Fc(e, r, a) : t === "style" ? Uc(e, n, r) : Va(t) ? qr(t) || jc(e, t, n, r, o) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Mc(e, t, r, a)) ? Ec(e, t, r, i, o, s, l) : (t === "true-value" ? e._trueValue = r : t === "false-value" && (e._falseValue = r), xc(e, t, r, a)) }; function Mc(e, t, n, r) { return r ? !!(t === "innerHTML" || t === "textContent" || t in e && no.test(t) && me(n)) : t === "spellcheck" || t === "draggable" || t === "translate" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA" || no.test(t) && qe(n) ? !1 : t in e } const ao = e => { const t = e.props["onUpdate:modelValue"] || !1; return le(t) ? n => wa(t, n) : t }; function Pc(e) { e.target.composing = !0 } function ro(e) { const t = e.target; t.composing && (t.composing = !1, t.dispatchEvent(new Event("input"))) } const Nc = { created(e, { modifiers: { lazy: t, trim: n, number: r } }, a) { e._assign = ao(a); const i = r || a.props && a.props.type === "number"; _n(e, t ? "change" : "input", o => { if (o.target.composing) return; let s = e.value; n && (s = s.trim()), i && (s = wr(s)), e._assign(s) }), n && _n(e, "change", () => { e.value = e.value.trim() }), t || (_n(e, "compositionstart", Pc), _n(e, "compositionend", ro), _n(e, "change", ro)) }, mounted(e, { value: t }) { e.value = t ?? "" }, beforeUpdate(e, { value: t, modifiers: { lazy: n, trim: r, number: a } }, i) { if (e._assign = ao(i), e.composing || document.activeElement === e && e.type !== "range" && (n || r && e.value.trim() === t || (a || e.type === "number") && wr(e.value) === t)) return; const o = t ?? ""; e.value !== o && (e.value = o) } }, Lc = ["ctrl", "shift", "alt", "meta"], Ic = { 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) => Lc.some(n => e[`${n}Key`] && !t.includes(n)) }, on = (e, t) => (n, ...r) => { for (let a = 0; a < t.length; a++) { const i = Ic[t[a]]; if (i && i(n, t)) return } return e(n, ...r) }, Dt = { 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: r }) { !t != !n && (r ? t ? (r.beforeEnter(e), Vn(e, !0), r.enter(e)) : r.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 $c = We({ patchProp: Dc }, wc); let io; function Rc() { return io || (io = ec($c)) } const Bc = (...e) => { const t = Rc().createApp(...e), { mount: n } = t; return t.mount = r => { const a = Vc(r); if (!a) return; const i = t._component; !me(i) && !i.render && !i.template && (i.template = a.innerHTML), a.innerHTML = ""; const o = n(a, !1, a instanceof SVGElement); return a instanceof Element && (a.removeAttribute("v-cloak"), a.setAttribute("data-v-app", "")), o }, t }; function Vc(e) { return qe(e) ? document.querySelector(e) : e } const As = "" + new URL("../logo.png", import.meta.url).href, $n = (e, t) => { const n = e.__vccOpts || e; for (const [r, a] of t) n[r] = a; return n }, Hc = {}, zc = { class: "flex items-center justify-center min-h-screen bg-black opacity-90" }, qc = F("img", { src: As, alt: "Logo", class: "w-64 animate__animated animate__tada animate__infinite" }, null, -1), Yc = [qc]; function Kc(e, t) { return R(), ne("div", zc, Yc) } const Wc = $n(Hc, [["render", Kc]]); function Gc(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-4.28 9.22a.75.75 0 000 1.06l3 3a.75.75 0 101.06-1.06l-1.72-1.72h5.69a.75.75 0 000-1.5h-5.69l1.72-1.72a.75.75 0 00-1.06-1.06l-3 3z", "clip-rule": "evenodd" })]) } function Xc(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M6.97 2.47a.75.75 0 011.06 0l4.5 4.5a.75.75 0 01-1.06 1.06L8.25 4.81V16.5a.75.75 0 01-1.5 0V4.81L3.53 8.03a.75.75 0 01-1.06-1.06l4.5-4.5zm9.53 4.28a.75.75 0 01.75.75v11.69l3.22-3.22a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 111.06-1.06l3.22 3.22V7.5a.75.75 0 01.75-.75z", "clip-rule": "evenodd" })]) } function Ds(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { d: "M12.75 12.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM7.5 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM8.25 17.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM9.75 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM10.5 17.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM12.75 17.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM14.25 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM15 17.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM16.5 15.75a.75.75 0 100-1.5.75.75 0 000 1.5zM15 12.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM16.5 13.5a.75.75 0 100-1.5.75.75 0 000 1.5z" }), F("path", { "fill-rule": "evenodd", d: "M6.75 2.25A.75.75 0 017.5 3v1.5h9V3A.75.75 0 0118 3v1.5h.75a3 3 0 013 3v11.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V7.5a3 3 0 013-3H6V3a.75.75 0 01.75-.75zm13.5 9a1.5 1.5 0 00-1.5-1.5H5.25a1.5 1.5 0 00-1.5 1.5v7.5a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5v-7.5z", "clip-rule": "evenodd" })]) } function Zc(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z", "clip-rule": "evenodd" })]) } function Qc(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M13.28 3.97a.75.75 0 010 1.06L6.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5a.75.75 0 010-1.06l7.5-7.5a.75.75 0 011.06 0zm6 0a.75.75 0 010 1.06L12.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5a.75.75 0 010-1.06l7.5-7.5a.75.75 0 011.06 0z", "clip-rule": "evenodd" })]) } function Jc(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M4.72 3.97a.75.75 0 011.06 0l7.5 7.5a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L11.69 12 4.72 5.03a.75.75 0 010-1.06zm6 0a.75.75 0 011.06 0l7.5 7.5a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 11-1.06-1.06L17.69 12l-6.97-6.97a.75.75 0 010-1.06z", "clip-rule": "evenodd" })]) } function ed(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { d: "M4.5 3.75a3 3 0 00-3 3v.75h21v-.75a3 3 0 00-3-3h-15z" }), F("path", { "fill-rule": "evenodd", d: "M22.5 9.75h-21v7.5a3 3 0 003 3h15a3 3 0 003-3v-7.5zm-18 3.75a.75.75 0 01.75-.75h6a.75.75 0 010 1.5h-6a.75.75 0 01-.75-.75zm.75 2.25a.75.75 0 000 1.5h3a.75.75 0 000-1.5h-3z", "clip-rule": "evenodd" })]) } function td(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { d: "M10.464 8.746c.227-.18.497-.311.786-.394v2.795a2.252 2.252 0 01-.786-.393c-.394-.313-.546-.681-.546-1.004 0-.323.152-.691.546-1.004zM12.75 15.662v-2.824c.347.085.664.228.921.421.427.32.579.686.579.991 0 .305-.152.671-.579.991a2.534 2.534 0 01-.921.42z" }), F("path", { "fill-rule": "evenodd", d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 6a.75.75 0 00-1.5 0v.816a3.836 3.836 0 00-1.72.756c-.712.566-1.112 1.35-1.112 2.178 0 .829.4 1.612 1.113 2.178.502.4 1.102.647 1.719.756v2.978a2.536 2.536 0 01-.921-.421l-.879-.66a.75.75 0 00-.9 1.2l.879.66c.533.4 1.169.645 1.821.75V18a.75.75 0 001.5 0v-.81a4.124 4.124 0 001.821-.749c.745-.559 1.179-1.344 1.179-2.191 0-.847-.434-1.632-1.179-2.191a4.122 4.122 0 00-1.821-.75V8.354c.29.082.559.213.786.393l.415.33a.75.75 0 00.933-1.175l-.415-.33a3.836 3.836 0 00-1.719-.755V6z", "clip-rule": "evenodd" })]) } function oo(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M4.5 3.75a3 3 0 00-3 3v10.5a3 3 0 003 3h15a3 3 0 003-3V6.75a3 3 0 00-3-3h-15zm4.125 3a2.25 2.25 0 100 4.5 2.25 2.25 0 000-4.5zm-3.873 8.703a4.126 4.126 0 017.746 0 .75.75 0 01-.351.92 7.47 7.47 0 01-3.522.877 7.47 7.47 0 01-3.522-.877.75.75 0 01-.351-.92zM15 8.25a.75.75 0 000 1.5h3.75a.75.75 0 000-1.5H15zM14.25 12a.75.75 0 01.75-.75h3.75a.75.75 0 010 1.5H15a.75.75 0 01-.75-.75zm.75 2.25a.75.75 0 000 1.5h3.75a.75.75 0 000-1.5H15z", "clip-rule": "evenodd" })]) } function nd(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M15.75 1.5a6.75 6.75 0 00-6.651 7.906c.067.39-.032.717-.221.906l-6.5 6.499a3 3 0 00-.878 2.121v2.818c0 .414.336.75.75.75H6a.75.75 0 00.75-.75v-1.5h1.5A.75.75 0 009 19.5V18h1.5a.75.75 0 00.53-.22l2.658-2.658c.19-.189.517-.288.906-.22A6.75 6.75 0 1015.75 1.5zm0 3a.75.75 0 000 1.5A2.25 2.25 0 0118 8.25a.75.75 0 001.5 0 3.75 3.75 0 00-3.75-3.75z", "clip-rule": "evenodd" })]) } function Ms(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M11.54 22.351l.07.04.028.016a.76.76 0 00.723 0l.028-.015.071-.041a16.975 16.975 0 001.144-.742 19.58 19.58 0 002.683-2.282c1.944-1.99 3.963-4.98 3.963-8.827a8.25 8.25 0 00-16.5 0c0 3.846 2.02 6.837 3.963 8.827a19.58 19.58 0 002.682 2.282 16.975 16.975 0 001.145.742zM12 13.5a3 3 0 100-6 3 3 0 000 6z", "clip-rule": "evenodd" })]) } function ad(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M2.25 4.125c0-1.036.84-1.875 1.875-1.875h5.25c1.036 0 1.875.84 1.875 1.875V17.25a4.5 4.5 0 11-9 0V4.125zm4.5 14.25a1.125 1.125 0 100-2.25 1.125 1.125 0 000 2.25z", "clip-rule": "evenodd" }), F("path", { d: "M10.719 21.75h9.156c1.036 0 1.875-.84 1.875-1.875v-5.25c0-1.036-.84-1.875-1.875-1.875h-.14l-8.742 8.743c-.09.089-.18.175-.274.257zM12.738 17.625l6.474-6.474a1.875 1.875 0 000-2.651L15.5 4.787a1.875 1.875 0 00-2.651 0l-.1.099V17.25c0 .126-.003.251-.01.375z" })]) } function rd(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { "fill-rule": "evenodd", d: "M16.5 4.478v.227a48.816 48.816 0 013.878.512.75.75 0 11-.256 1.478l-.209-.035-1.005 13.07a3 3 0 01-2.991 2.77H8.084a3 3 0 01-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 01-.256-1.478A48.567 48.567 0 017.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 013.369 0c1.603.051 2.815 1.387 2.815 2.951zm-6.136-1.452a51.196 51.196 0 013.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 00-6 0v-.113c0-.794.609-1.428 1.364-1.452zm-.355 5.945a.75.75 0 10-1.5.058l.347 9a.75.75 0 101.499-.058l-.346-9zm5.48.058a.75.75 0 10-1.498-.058l-.347 9a.75.75 0 001.5.058l.345-9z", "clip-rule": "evenodd" })]) } function id(e, t) { return R(), ne("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true" }, [F("path", { d: "M4.5 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM14.25 8.625a3.375 3.375 0 116.75 0 3.375 3.375 0 01-6.75 0zM1.5 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 0 01-.363.63 13.067 13.067 0 01-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 01-.364-.63l-.001-.122zM17.25 19.128l-.001.144a2.25 2.25 0 01-.233.96 10.088 10.088 0 005.06-1.01.75.75 0 00.42-.643 4.875 4.875 0 00-6.957-4.611 8.586 8.586 0 011.71 5.157v.003z" })]) } const od = GetParentResourceName(); async function Kt(e, t) { try { return await (await fetch(`https://${od}/${e}`, { method: "post", headers: { "Content-Type": "application/json; charset=UTF-8" }, body: JSON.stringify(t) })).json() } catch (n) { console.error(n) } } function ct(e) { var t = new Audio(`./audio/${e}.wav`); t.play(), t.volume = .1 } const sd = { class: "mt-10 text-center uppercase" }, ld = { class: "text-center uppercase" }, ud = { key: 0, class: "text-center uppercase" }, cd = { key: 1, class: "text-center uppercase" }, dd = { class: "text-center uppercase" }, fd = { key: 2, class: "text-center mt-5 uppercase" }, md = { class: "text-xs lowercase font-none" }, hd = { __name: "Buttonlist", props: { remeainSlot: { type: Number, required: !0 }, Lang: { type: Object, required: !0 }, PageStatus: { type: Object, required: !0 } }, emits: ["register-updated", "photomode-updated", "credits-updated", "play-game"], setup(e, { emit: t }) { const n = e, r = oe(!1), a = () => { n.remeainSlot >= 1 && (r.value = !r.value, t("register-updated", r.value), ct("selectsound")) }, i = (o, s = null) => { t(o, !0, s), ct("selectsound") }; return (o, s) => (R(), ne(Ne, null, [F("div", sd, [F("button", { onMouseover: s[0] || (s[0] = l => A(ct)("hoversound")), onClick: s[1] || (s[1] = l => i("play-game")), class: "text-white font-bold text-2xl opacity-80 m-2 drop-shadow-md hover:text-gray-500 p-3 rounded transition-colors duration-200 items-center justify-center uppercase" }, he(e.Lang.playgame), 33)]), F("div", ld, [F("button", { onMouseover: s[2] || (s[2] = l => A(ct)("hoversound")), onClick: s[3] || (s[3] = l => i("photomode-updated", "photo")), class: "text-white font-bold text-2xl opacity-80 m-2 drop-shadow-md hover:text-gray-500 p-3 rounded transition-colors duration-200 items-center justify-center uppercase" }, he(e.Lang.photomode), 33)]), e.PageStatus.Store.Status ? (R(), ne("div", ud, [F("button", { onMouseover: s[4] || (s[4] = l => A(ct)("hoversound")), onClick: s[5] || (s[5] = l => i("store-updated")), class: "text-white font-bold text-2xl opacity-80 m-2 drop-shadow-md hover:text-gray-500 p-3 rounded transition-colors duration-200 items-center justify-center uppercase" }, he(e.Lang.store), 33)])) : Ge("", !0), e.PageStatus.Credits.Status ? (R(), ne("div", cd, [F("button", { onMouseover: s[6] || (s[6] = l => A(ct)("hoversound")), onClick: s[7] || (s[7] = l => i("credits-updated", "credits")), class: "text-white font-bold text-2xl opacity-80 m-2 drop-shadow-md hover:text-gray-500 p-3 rounded transition-colors duration-200 items-center justify-center uppercase" }, he(e.Lang.credits), 33)])) : Ge("", !0), F("div", dd, [F("button", { onMouseover: s[8] || (s[8] = l => A(ct)("hoversound")), onClick: s[9] || (s[9] = l => A(Kt)("exit")), class: "text-white font-bold text-2xl opacity-80 m-2 drop-shadow-md hover:text-gray-500 p-3 rounded transition-colors duration-200 items-center justify-center uppercase" }, he(e.Lang.exit), 33)]), e.remeainSlot >= 1 ? (R(), ne("div", fd, [F("button", { onMouseover: s[10] || (s[10] = l => A(ct)("hoversound")), onClick: a, class: "text-white font-bold text-2xl opacity-40 m-2 drop-shadow-md hover:text-gray-500 p-3 rounded transition-colors duration-200 items-center justify-center uppercase" }, [pn(he(e.Lang.createcharacter.title) + " ", 1), F("p", md, "( " + he(e.remeainSlot) + " " + he(e.Lang.createcharacter.subtitle) + ")", 1)], 32)])) : Ge("", !0)], 64)) } }; var vd = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ar = {}, pd = { get exports() { return Ar }, set exports(e) { Ar = e } };/*! countries-list v2.6.1 by Annexare | MIT */(function (e, t) { (function (n, r) { e.exports = r() })(vd, function () { var n = { AF: "Africa", AN: "Antarctica", AS: "Asia", EU: "Europe", NA: "North America", OC: "Oceania", SA: "South America" }, r = { AD: { name: "Andorra", native: "Andorra", phone: "376", continent: "EU", capital: "Andorra la Vella", currency: "EUR", languages: ["ca"], emoji: "🇦🇩", emojiU: "U+1F1E6 U+1F1E9" }, AE: { name: "United Arab Emirates", native: "دولة الإمارات العربية المتحدة", phone: "971", continent: "AS", capital: "Abu Dhabi", currency: "AED", languages: ["ar"], emoji: "🇦🇪", emojiU: "U+1F1E6 U+1F1EA" }, AF: { name: "Afghanistan", native: "افغانستان", phone: "93", continent: "AS", capital: "Kabul", currency: "AFN", languages: ["ps", "uz", "tk"], emoji: "🇦🇫", emojiU: "U+1F1E6 U+1F1EB" }, AG: { name: "Antigua and Barbuda", native: "Antigua and Barbuda", phone: "1268", continent: "NA", capital: "Saint John's", currency: "XCD", languages: ["en"], emoji: "🇦🇬", emojiU: "U+1F1E6 U+1F1EC" }, AI: { name: "Anguilla", native: "Anguilla", phone: "1264", continent: "NA", capital: "The Valley", currency: "XCD", languages: ["en"], emoji: "🇦🇮", emojiU: "U+1F1E6 U+1F1EE" }, AL: { name: "Albania", native: "Shqipëria", phone: "355", continent: "EU", capital: "Tirana", currency: "ALL", languages: ["sq"], emoji: "🇦🇱", emojiU: "U+1F1E6 U+1F1F1" }, AM: { name: "Armenia", native: "Հայաստան", phone: "374", continent: "AS", capital: "Yerevan", currency: "AMD", languages: ["hy", "ru"], emoji: "🇦🇲", emojiU: "U+1F1E6 U+1F1F2" }, AO: { name: "Angola", native: "Angola", phone: "244", continent: "AF", capital: "Luanda", currency: "AOA", languages: ["pt"], emoji: "🇦🇴", emojiU: "U+1F1E6 U+1F1F4" }, AQ: { name: "Antarctica", native: "Antarctica", phone: "672", continent: "AN", capital: "", currency: "", languages: [], emoji: "🇦🇶", emojiU: "U+1F1E6 U+1F1F6" }, AR: { name: "Argentina", native: "Argentina", phone: "54", continent: "SA", capital: "Buenos Aires", currency: "ARS", languages: ["es", "gn"], emoji: "🇦🇷", emojiU: "U+1F1E6 U+1F1F7" }, AS: { name: "American Samoa", native: "American Samoa", phone: "1684", continent: "OC", capital: "Pago Pago", currency: "USD", languages: ["en", "sm"], emoji: "🇦🇸", emojiU: "U+1F1E6 U+1F1F8" }, AT: { name: "Austria", native: "Österreich", phone: "43", continent: "EU", capital: "Vienna", currency: "EUR", languages: ["de"], emoji: "🇦🇹", emojiU: "U+1F1E6 U+1F1F9" }, AU: { name: "Australia", native: "Australia", phone: "61", continent: "OC", capital: "Canberra", currency: "AUD", languages: ["en"], emoji: "🇦🇺", emojiU: "U+1F1E6 U+1F1FA" }, AW: { name: "Aruba", native: "Aruba", phone: "297", continent: "NA", capital: "Oranjestad", currency: "AWG", languages: ["nl", "pa"], emoji: "🇦🇼", emojiU: "U+1F1E6 U+1F1FC" }, AX: { name: "Åland", native: "Åland", phone: "358", continent: "EU", capital: "Mariehamn", currency: "EUR", languages: ["sv"], emoji: "🇦🇽", emojiU: "U+1F1E6 U+1F1FD" }, AZ: { name: "Azerbaijan", native: "Azərbaycan", phone: "994", continent: "AS", capital: "Baku", currency: "AZN", languages: ["az"], emoji: "🇦🇿", emojiU: "U+1F1E6 U+1F1FF" }, BA: { name: "Bosnia and Herzegovina", native: "Bosna i Hercegovina", phone: "387", continent: "EU", capital: "Sarajevo", currency: "BAM", languages: ["bs", "hr", "sr"], emoji: "🇧🇦", emojiU: "U+1F1E7 U+1F1E6" }, BB: { name: "Barbados", native: "Barbados", phone: "1246", continent: "NA", capital: "Bridgetown", currency: "BBD", languages: ["en"], emoji: "🇧🇧", emojiU: "U+1F1E7 U+1F1E7" }, BD: { name: "Bangladesh", native: "Bangladesh", phone: "880", continent: "AS", capital: "Dhaka", currency: "BDT", languages: ["bn"], emoji: "🇧🇩", emojiU: "U+1F1E7 U+1F1E9" }, BE: { name: "Belgium", native: "België", phone: "32", continent: "EU", capital: "Brussels", currency: "EUR", languages: ["nl", "fr", "de"], emoji: "🇧🇪", emojiU: "U+1F1E7 U+1F1EA" }, BF: { name: "Burkina Faso", native: "Burkina Faso", phone: "226", continent: "AF", capital: "Ouagadougou", currency: "XOF", languages: ["fr", "ff"], emoji: "🇧🇫", emojiU: "U+1F1E7 U+1F1EB" }, BG: { name: "Bulgaria", native: "България", phone: "359", continent: "EU", capital: "Sofia", currency: "BGN", languages: ["bg"], emoji: "🇧🇬", emojiU: "U+1F1E7 U+1F1EC" }, BH: { name: "Bahrain", native: "‏البحرين", phone: "973", continent: "AS", capital: "Manama", currency: "BHD", languages: ["ar"], emoji: "🇧🇭", emojiU: "U+1F1E7 U+1F1ED" }, BI: { name: "Burundi", native: "Burundi", phone: "257", continent: "AF", capital: "Bujumbura", currency: "BIF", languages: ["fr", "rn"], emoji: "🇧🇮", emojiU: "U+1F1E7 U+1F1EE" }, BJ: { name: "Benin", native: "Bénin", phone: "229", continent: "AF", capital: "Porto-Novo", currency: "XOF", languages: ["fr"], emoji: "🇧🇯", emojiU: "U+1F1E7 U+1F1EF" }, BL: { name: "Saint Barthélemy", native: "Saint-Barthélemy", phone: "590", continent: "NA", capital: "Gustavia", currency: "EUR", languages: ["fr"], emoji: "🇧🇱", emojiU: "U+1F1E7 U+1F1F1" }, BM: { name: "Bermuda", native: "Bermuda", phone: "1441", continent: "NA", capital: "Hamilton", currency: "BMD", languages: ["en"], emoji: "🇧🇲", emojiU: "U+1F1E7 U+1F1F2" }, BN: { name: "Brunei", native: "Negara Brunei Darussalam", phone: "673", continent: "AS", capital: "Bandar Seri Begawan", currency: "BND", languages: ["ms"], emoji: "🇧🇳", emojiU: "U+1F1E7 U+1F1F3" }, BO: { name: "Bolivia", native: "Bolivia", phone: "591", continent: "SA", capital: "Sucre", currency: "BOB,BOV", languages: ["es", "ay", "qu"], emoji: "🇧🇴", emojiU: "U+1F1E7 U+1F1F4" }, BQ: { name: "Bonaire", native: "Bonaire", phone: "5997", continent: "NA", capital: "Kralendijk", currency: "USD", languages: ["nl"], emoji: "🇧🇶", emojiU: "U+1F1E7 U+1F1F6" }, BR: { name: "Brazil", native: "Brasil", phone: "55", continent: "SA", capital: "Brasília", currency: "BRL", languages: ["pt"], emoji: "🇧🇷", emojiU: "U+1F1E7 U+1F1F7" }, BS: { name: "Bahamas", native: "Bahamas", phone: "1242", continent: "NA", capital: "Nassau", currency: "BSD", languages: ["en"], emoji: "🇧🇸", emojiU: "U+1F1E7 U+1F1F8" }, BT: { name: "Bhutan", native: "ʼbrug-yul", phone: "975", continent: "AS", capital: "Thimphu", currency: "BTN,INR", languages: ["dz"], emoji: "🇧🇹", emojiU: "U+1F1E7 U+1F1F9" }, BV: { name: "Bouvet Island", native: "Bouvetøya", phone: "47", continent: "AN", capital: "", currency: "NOK", languages: ["no", "nb", "nn"], emoji: "🇧🇻", emojiU: "U+1F1E7 U+1F1FB" }, BW: { name: "Botswana", native: "Botswana", phone: "267", continent: "AF", capital: "Gaborone", currency: "BWP", languages: ["en", "tn"], emoji: "🇧🇼", emojiU: "U+1F1E7 U+1F1FC" }, BY: { name: "Belarus", native: "Белару́сь", phone: "375", continent: "EU", capital: "Minsk", currency: "BYN", languages: ["be", "ru"], emoji: "🇧🇾", emojiU: "U+1F1E7 U+1F1FE" }, BZ: { name: "Belize", native: "Belize", phone: "501", continent: "NA", capital: "Belmopan", currency: "BZD", languages: ["en", "es"], emoji: "🇧🇿", emojiU: "U+1F1E7 U+1F1FF" }, CA: { name: "Canada", native: "Canada", phone: "1", continent: "NA", capital: "Ottawa", currency: "CAD", languages: ["en", "fr"], emoji: "🇨🇦", emojiU: "U+1F1E8 U+1F1E6" }, CC: { name: "Cocos [Keeling] Islands", native: "Cocos (Keeling) Islands", phone: "61", continent: "AS", capital: "West Island", currency: "AUD", languages: ["en"], emoji: "🇨🇨", emojiU: "U+1F1E8 U+1F1E8" }, CD: { name: "Democratic Republic of the Congo", native: "République démocratique du Congo", phone: "243", continent: "AF", capital: "Kinshasa", currency: "CDF", languages: ["fr", "ln", "kg", "sw", "lu"], emoji: "🇨🇩", emojiU: "U+1F1E8 U+1F1E9" }, CF: { name: "Central African Republic", native: "Ködörösêse tî Bêafrîka", phone: "236", continent: "AF", capital: "Bangui", currency: "XAF", languages: ["fr", "sg"], emoji: "🇨🇫", emojiU: "U+1F1E8 U+1F1EB" }, CG: { name: "Republic of the Congo", native: "République du Congo", phone: "242", continent: "AF", capital: "Brazzaville", currency: "XAF", languages: ["fr", "ln"], emoji: "🇨🇬", emojiU: "U+1F1E8 U+1F1EC" }, CH: { name: "Switzerland", native: "Schweiz", phone: "41", continent: "EU", capital: "Bern", currency: "CHE,CHF,CHW", languages: ["de", "fr", "it"], emoji: "🇨🇭", emojiU: "U+1F1E8 U+1F1ED" }, CI: { name: "Ivory Coast", native: "Côte d'Ivoire", phone: "225", continent: "AF", capital: "Yamoussoukro", currency: "XOF", languages: ["fr"], emoji: "🇨🇮", emojiU: "U+1F1E8 U+1F1EE" }, CK: { name: "Cook Islands", native: "Cook Islands", phone: "682", continent: "OC", capital: "Avarua", currency: "NZD", languages: ["en"], emoji: "🇨🇰", emojiU: "U+1F1E8 U+1F1F0" }, CL: { name: "Chile", native: "Chile", phone: "56", continent: "SA", capital: "Santiago", currency: "CLF,CLP", languages: ["es"], emoji: "🇨🇱", emojiU: "U+1F1E8 U+1F1F1" }, CM: { name: "Cameroon", native: "Cameroon", phone: "237", continent: "AF", capital: "Yaoundé", currency: "XAF", languages: ["en", "fr"], emoji: "🇨🇲", emojiU: "U+1F1E8 U+1F1F2" }, CN: { name: "China", native: "中国", phone: "86", continent: "AS", capital: "Beijing", currency: "CNY", languages: ["zh"], emoji: "🇨🇳", emojiU: "U+1F1E8 U+1F1F3" }, CO: { name: "Colombia", native: "Colombia", phone: "57", continent: "SA", capital: "Bogotá", currency: "COP", languages: ["es"], emoji: "🇨🇴", emojiU: "U+1F1E8 U+1F1F4" }, CR: { name: "Costa Rica", native: "Costa Rica", phone: "506", continent: "NA", capital: "San José", currency: "CRC", languages: ["es"], emoji: "🇨🇷", emojiU: "U+1F1E8 U+1F1F7" }, CU: { name: "Cuba", native: "Cuba", phone: "53", continent: "NA", capital: "Havana", currency: "CUC,CUP", languages: ["es"], emoji: "🇨🇺", emojiU: "U+1F1E8 U+1F1FA" }, CV: { name: "Cape Verde", native: "Cabo Verde", phone: "238", continent: "AF", capital: "Praia", currency: "CVE", languages: ["pt"], emoji: "🇨🇻", emojiU: "U+1F1E8 U+1F1FB" }, CW: { name: "Curacao", native: "Curaçao", phone: "5999", continent: "NA", capital: "Willemstad", currency: "ANG", languages: ["nl", "pa", "en"], emoji: "🇨🇼", emojiU: "U+1F1E8 U+1F1FC" }, CX: { name: "Christmas Island", native: "Christmas Island", phone: "61", continent: "AS", capital: "Flying Fish Cove", currency: "AUD", languages: ["en"], emoji: "🇨🇽", emojiU: "U+1F1E8 U+1F1FD" }, CY: { name: "Cyprus", native: "Κύπρος", phone: "357", continent: "EU", capital: "Nicosia", currency: "EUR", languages: ["el", "tr", "hy"], emoji: "🇨🇾", emojiU: "U+1F1E8 U+1F1FE" }, CZ: { name: "Czech Republic", native: "Česká republika", phone: "420", continent: "EU", capital: "Prague", currency: "CZK", languages: ["cs", "sk"], emoji: "🇨🇿", emojiU: "U+1F1E8 U+1F1FF" }, DE: { name: "Germany", native: "Deutschland", phone: "49", continent: "EU", capital: "Berlin", currency: "EUR", languages: ["de"], emoji: "🇩🇪", emojiU: "U+1F1E9 U+1F1EA" }, DJ: { name: "Djibouti", native: "Djibouti", phone: "253", continent: "AF", capital: "Djibouti", currency: "DJF", languages: ["fr", "ar"], emoji: "🇩🇯", emojiU: "U+1F1E9 U+1F1EF" }, DK: { name: "Denmark", native: "Danmark", phone: "45", continent: "EU", capital: "Copenhagen", currency: "DKK", languages: ["da"], emoji: "🇩🇰", emojiU: "U+1F1E9 U+1F1F0" }, DM: { name: "Dominica", native: "Dominica", phone: "1767", continent: "NA", capital: "Roseau", currency: "XCD", languages: ["en"], emoji: "🇩🇲", emojiU: "U+1F1E9 U+1F1F2" }, DO: { name: "Dominican Republic", native: "República Dominicana", phone: "1809,1829,1849", continent: "NA", capital: "Santo Domingo", currency: "DOP", languages: ["es"], emoji: "🇩🇴", emojiU: "U+1F1E9 U+1F1F4" }, DZ: { name: "Algeria", native: "الجزائر", phone: "213", continent: "AF", capital: "Algiers", currency: "DZD", languages: ["ar"], emoji: "🇩🇿", emojiU: "U+1F1E9 U+1F1FF" }, EC: { name: "Ecuador", native: "Ecuador", phone: "593", continent: "SA", capital: "Quito", currency: "USD", languages: ["es"], emoji: "🇪🇨", emojiU: "U+1F1EA U+1F1E8" }, EE: { name: "Estonia", native: "Eesti", phone: "372", continent: "EU", capital: "Tallinn", currency: "EUR", languages: ["et"], emoji: "🇪🇪", emojiU: "U+1F1EA U+1F1EA" }, EG: { name: "Egypt", native: "مصر‎", phone: "20", continent: "AF", capital: "Cairo", currency: "EGP", languages: ["ar"], emoji: "🇪🇬", emojiU: "U+1F1EA U+1F1EC" }, EH: { name: "Western Sahara", native: "الصحراء الغربية", phone: "212", continent: "AF", capital: "El Aaiún", currency: "MAD,DZD,MRU", languages: ["es"], emoji: "🇪🇭", emojiU: "U+1F1EA U+1F1ED" }, ER: { name: "Eritrea", native: "ኤርትራ", phone: "291", continent: "AF", capital: "Asmara", currency: "ERN", languages: ["ti", "ar", "en"], emoji: "🇪🇷", emojiU: "U+1F1EA U+1F1F7" }, ES: { name: "Spain", native: "España", phone: "34", continent: "EU", capital: "Madrid", currency: "EUR", languages: ["es", "eu", "ca", "gl", "oc"], emoji: "🇪🇸", emojiU: "U+1F1EA U+1F1F8" }, ET: { name: "Ethiopia", native: "ኢትዮጵያ", phone: "251", continent: "AF", capital: "Addis Ababa", currency: "ETB", languages: ["am"], emoji: "🇪🇹", emojiU: "U+1F1EA U+1F1F9" }, FI: { name: "Finland", native: "Suomi", phone: "358", continent: "EU", capital: "Helsinki", currency: "EUR", languages: ["fi", "sv"], emoji: "🇫🇮", emojiU: "U+1F1EB U+1F1EE" }, FJ: { name: "Fiji", native: "Fiji", phone: "679", continent: "OC", capital: "Suva", currency: "FJD", languages: ["en", "fj", "hi", "ur"], emoji: "🇫🇯", emojiU: "U+1F1EB U+1F1EF" }, FK: { name: "Falkland Islands", native: "Falkland Islands", phone: "500", continent: "SA", capital: "Stanley", currency: "FKP", languages: ["en"], emoji: "🇫🇰", emojiU: "U+1F1EB U+1F1F0" }, FM: { name: "Micronesia", native: "Micronesia", phone: "691", continent: "OC", capital: "Palikir", currency: "USD", languages: ["en"], emoji: "🇫🇲", emojiU: "U+1F1EB U+1F1F2" }, FO: { name: "Faroe Islands", native: "Føroyar", phone: "298", continent: "EU", capital: "Tórshavn", currency: "DKK", languages: ["fo"], emoji: "🇫🇴", emojiU: "U+1F1EB U+1F1F4" }, FR: { name: "France", native: "France", phone: "33", continent: "EU", capital: "Paris", currency: "EUR", languages: ["fr"], emoji: "🇫🇷", emojiU: "U+1F1EB U+1F1F7" }, GA: { name: "Gabon", native: "Gabon", phone: "241", continent: "AF", capital: "Libreville", currency: "XAF", languages: ["fr"], emoji: "🇬🇦", emojiU: "U+1F1EC U+1F1E6" }, GB: { name: "United Kingdom", native: "United Kingdom", phone: "44", continent: "EU", capital: "London", currency: "GBP", languages: ["en"], emoji: "🇬🇧", emojiU: "U+1F1EC U+1F1E7" }, GD: { name: "Grenada", native: "Grenada", phone: "1473", continent: "NA", capital: "St. George's", currency: "XCD", languages: ["en"], emoji: "🇬🇩", emojiU: "U+1F1EC U+1F1E9" }, GE: { name: "Georgia", native: "საქართველო", phone: "995", continent: "AS", capital: "Tbilisi", currency: "GEL", languages: ["ka"], emoji: "🇬🇪", emojiU: "U+1F1EC U+1F1EA" }, GF: { name: "French Guiana", native: "Guyane française", phone: "594", continent: "SA", capital: "Cayenne", currency: "EUR", languages: ["fr"], emoji: "🇬🇫", emojiU: "U+1F1EC U+1F1EB" }, GG: { name: "Guernsey", native: "Guernsey", phone: "44", continent: "EU", capital: "St. Peter Port", currency: "GBP", languages: ["en", "fr"], emoji: "🇬🇬", emojiU: "U+1F1EC U+1F1EC" }, GH: { name: "Ghana", native: "Ghana", phone: "233", continent: "AF", capital: "Accra", currency: "GHS", languages: ["en"], emoji: "🇬🇭", emojiU: "U+1F1EC U+1F1ED" }, GI: { name: "Gibraltar", native: "Gibraltar", phone: "350", continent: "EU", capital: "Gibraltar", currency: "GIP", languages: ["en"], emoji: "🇬🇮", emojiU: "U+1F1EC U+1F1EE" }, GL: { name: "Greenland", native: "Kalaallit Nunaat", phone: "299", continent: "NA", capital: "Nuuk", currency: "DKK", languages: ["kl"], emoji: "🇬🇱", emojiU: "U+1F1EC U+1F1F1" }, GM: { name: "Gambia", native: "Gambia", phone: "220", continent: "AF", capital: "Banjul", currency: "GMD", languages: ["en"], emoji: "🇬🇲", emojiU: "U+1F1EC U+1F1F2" }, GN: { name: "Guinea", native: "Guinée", phone: "224", continent: "AF", capital: "Conakry", currency: "GNF", languages: ["fr", "ff"], emoji: "🇬🇳", emojiU: "U+1F1EC U+1F1F3" }, GP: { name: "Guadeloupe", native: "Guadeloupe", phone: "590", continent: "NA", capital: "Basse-Terre", currency: "EUR", languages: ["fr"], emoji: "🇬🇵", emojiU: "U+1F1EC U+1F1F5" }, GQ: { name: "Equatorial Guinea", native: "Guinea Ecuatorial", phone: "240", continent: "AF", capital: "Malabo", currency: "XAF", languages: ["es", "fr"], emoji: "🇬🇶", emojiU: "U+1F1EC U+1F1F6" }, GR: { name: "Greece", native: "Ελλάδα", phone: "30", continent: "EU", capital: "Athens", currency: "EUR", languages: ["el"], emoji: "🇬🇷", emojiU: "U+1F1EC U+1F1F7" }, GS: { name: "South Georgia and the South Sandwich Islands", native: "South Georgia", phone: "500", continent: "AN", capital: "King Edward Point", currency: "GBP", languages: ["en"], emoji: "🇬🇸", emojiU: "U+1F1EC U+1F1F8" }, GT: { name: "Guatemala", native: "Guatemala", phone: "502", continent: "NA", capital: "Guatemala City", currency: "GTQ", languages: ["es"], emoji: "🇬🇹", emojiU: "U+1F1EC U+1F1F9" }, GU: { name: "Guam", native: "Guam", phone: "1671", continent: "OC", capital: "Hagåtña", currency: "USD", languages: ["en", "ch", "es"], emoji: "🇬🇺", emojiU: "U+1F1EC U+1F1FA" }, GW: { name: "Guinea-Bissau", native: "Guiné-Bissau", phone: "245", continent: "AF", capital: "Bissau", currency: "XOF", languages: ["pt"], emoji: "🇬🇼", emojiU: "U+1F1EC U+1F1FC" }, GY: { name: "Guyana", native: "Guyana", phone: "592", continent: "SA", capital: "Georgetown", currency: "GYD", languages: ["en"], emoji: "🇬🇾", emojiU: "U+1F1EC U+1F1FE" }, HK: { name: "Hong Kong", native: "香港", phone: "852", continent: "AS", capital: "City of Victoria", currency: "HKD", languages: ["zh", "en"], emoji: "🇭🇰", emojiU: "U+1F1ED U+1F1F0" }, HM: { name: "Heard Island and McDonald Islands", native: "Heard Island and McDonald Islands", phone: "61", continent: "AN", capital: "", currency: "AUD", languages: ["en"], emoji: "🇭🇲", emojiU: "U+1F1ED U+1F1F2" }, HN: { name: "Honduras", native: "Honduras", phone: "504", continent: "NA", capital: "Tegucigalpa", currency: "HNL", languages: ["es"], emoji: "🇭🇳", emojiU: "U+1F1ED U+1F1F3" }, HR: { name: "Croatia", native: "Hrvatska", phone: "385", continent: "EU", capital: "Zagreb", currency: "HRK", languages: ["hr"], emoji: "🇭🇷", emojiU: "U+1F1ED U+1F1F7" }, HT: { name: "Haiti", native: "Haïti", phone: "509", continent: "NA", capital: "Port-au-Prince", currency: "HTG,USD", languages: ["fr", "ht"], emoji: "🇭🇹", emojiU: "U+1F1ED U+1F1F9" }, HU: { name: "Hungary", native: "Magyarország", phone: "36", continent: "EU", capital: "Budapest", currency: "HUF", languages: ["hu"], emoji: "🇭🇺", emojiU: "U+1F1ED U+1F1FA" }, ID: { name: "Indonesia", native: "Indonesia", phone: "62", continent: "AS", capital: "Jakarta", currency: "IDR", languages: ["id"], emoji: "🇮🇩", emojiU: "U+1F1EE U+1F1E9" }, IE: { name: "Ireland", native: "Éire", phone: "353", continent: "EU", capital: "Dublin", currency: "EUR", languages: ["ga", "en"], emoji: "🇮🇪", emojiU: "U+1F1EE U+1F1EA" }, IL: { name: "Israel", native: "יִשְׂרָאֵל", phone: "972", continent: "AS", capital: "Jerusalem", currency: "ILS", languages: ["he", "ar"], emoji: "🇮🇱", emojiU: "U+1F1EE U+1F1F1" }, IM: { name: "Isle of Man", native: "Isle of Man", phone: "44", continent: "EU", capital: "Douglas", currency: "GBP", languages: ["en", "gv"], emoji: "🇮🇲", emojiU: "U+1F1EE U+1F1F2" }, IN: { name: "India", native: "भारत", phone: "91", continent: "AS", capital: "New Delhi", currency: "INR", languages: ["hi", "en"], emoji: "🇮🇳", emojiU: "U+1F1EE U+1F1F3" }, IO: { name: "British Indian Ocean Territory", native: "British Indian Ocean Territory", phone: "246", continent: "AS", capital: "Diego Garcia", currency: "USD", languages: ["en"], emoji: "🇮🇴", emojiU: "U+1F1EE U+1F1F4" }, IQ: { name: "Iraq", native: "العراق", phone: "964", continent: "AS", capital: "Baghdad", currency: "IQD", languages: ["ar", "ku"], emoji: "🇮🇶", emojiU: "U+1F1EE U+1F1F6" }, IR: { name: "Iran", native: "ایران", phone: "98", continent: "AS", capital: "Tehran", currency: "IRR", languages: ["fa"], emoji: "🇮🇷", emojiU: "U+1F1EE U+1F1F7" }, IS: { name: "Iceland", native: "Ísland", phone: "354", continent: "EU", capital: "Reykjavik", currency: "ISK", languages: ["is"], emoji: "🇮🇸", emojiU: "U+1F1EE U+1F1F8" }, IT: { name: "Italy", native: "Italia", phone: "39", continent: "EU", capital: "Rome", currency: "EUR", languages: ["it"], emoji: "🇮🇹", emojiU: "U+1F1EE U+1F1F9" }, JE: { name: "Jersey", native: "Jersey", phone: "44", continent: "EU", capital: "Saint Helier", currency: "GBP", languages: ["en", "fr"], emoji: "🇯🇪", emojiU: "U+1F1EF U+1F1EA" }, JM: { name: "Jamaica", native: "Jamaica", phone: "1876", continent: "NA", capital: "Kingston", currency: "JMD", languages: ["en"], emoji: "🇯🇲", emojiU: "U+1F1EF U+1F1F2" }, JO: { name: "Jordan", native: "الأردن", phone: "962", continent: "AS", capital: "Amman", currency: "JOD", languages: ["ar"], emoji: "🇯🇴", emojiU: "U+1F1EF U+1F1F4" }, JP: { name: "Japan", native: "日本", phone: "81", continent: "AS", capital: "Tokyo", currency: "JPY", languages: ["ja"], emoji: "🇯🇵", emojiU: "U+1F1EF U+1F1F5" }, KE: { name: "Kenya", native: "Kenya", phone: "254", continent: "AF", capital: "Nairobi", currency: "KES", languages: ["en", "sw"], emoji: "🇰🇪", emojiU: "U+1F1F0 U+1F1EA" }, KG: { name: "Kyrgyzstan", native: "Кыргызстан", phone: "996", continent: "AS", capital: "Bishkek", currency: "KGS", languages: ["ky", "ru"], emoji: "🇰🇬", emojiU: "U+1F1F0 U+1F1EC" }, KH: { name: "Cambodia", native: "Kâmpŭchéa", phone: "855", continent: "AS", capital: "Phnom Penh", currency: "KHR", languages: ["km"], emoji: "🇰🇭", emojiU: "U+1F1F0 U+1F1ED" }, KI: { name: "Kiribati", native: "Kiribati", phone: "686", continent: "OC", capital: "South Tarawa", currency: "AUD", languages: ["en"], emoji: "🇰🇮", emojiU: "U+1F1F0 U+1F1EE" }, KM: { name: "Comoros", native: "Komori", phone: "269", continent: "AF", capital: "Moroni", currency: "KMF", languages: ["ar", "fr"], emoji: "🇰🇲", emojiU: "U+1F1F0 U+1F1F2" }, KN: { name: "Saint Kitts and Nevis", native: "Saint Kitts and Nevis", phone: "1869", continent: "NA", capital: "Basseterre", currency: "XCD", languages: ["en"], emoji: "🇰🇳", emojiU: "U+1F1F0 U+1F1F3" }, KP: { name: "North Korea", native: "북한", phone: "850", continent: "AS", capital: "Pyongyang", currency: "KPW", languages: ["ko"], emoji: "🇰🇵", emojiU: "U+1F1F0 U+1F1F5" }, KR: { name: "South Korea", native: "대한민국", phone: "82", continent: "AS", capital: "Seoul", currency: "KRW", languages: ["ko"], emoji: "🇰🇷", emojiU: "U+1F1F0 U+1F1F7" }, KW: { name: "Kuwait", native: "الكويت", phone: "965", continent: "AS", capital: "Kuwait City", currency: "KWD", languages: ["ar"], emoji: "🇰🇼", emojiU: "U+1F1F0 U+1F1FC" }, KY: { name: "Cayman Islands", native: "Cayman Islands", phone: "1345", continent: "NA", capital: "George Town", currency: "KYD", languages: ["en"], emoji: "🇰🇾", emojiU: "U+1F1F0 U+1F1FE" }, KZ: { name: "Kazakhstan", native: "Қазақстан", phone: "76,77", continent: "AS", capital: "Astana", currency: "KZT", languages: ["kk", "ru"], emoji: "🇰🇿", emojiU: "U+1F1F0 U+1F1FF" }, LA: { name: "Laos", native: "ສປປລາວ", phone: "856", continent: "AS", capital: "Vientiane", currency: "LAK", languages: ["lo"], emoji: "🇱🇦", emojiU: "U+1F1F1 U+1F1E6" }, LB: { name: "Lebanon", native: "لبنان", phone: "961", continent: "AS", capital: "Beirut", currency: "LBP", languages: ["ar", "fr"], emoji: "🇱🇧", emojiU: "U+1F1F1 U+1F1E7" }, LC: { name: "Saint Lucia", native: "Saint Lucia", phone: "1758", continent: "NA", capital: "Castries", currency: "XCD", languages: ["en"], emoji: "🇱🇨", emojiU: "U+1F1F1 U+1F1E8" }, LI: { name: "Liechtenstein", native: "Liechtenstein", phone: "423", continent: "EU", capital: "Vaduz", currency: "CHF", languages: ["de"], emoji: "🇱🇮", emojiU: "U+1F1F1 U+1F1EE" }, LK: { name: "Sri Lanka", native: "śrī laṃkāva", phone: "94", continent: "AS", capital: "Colombo", currency: "LKR", languages: ["si", "ta"], emoji: "🇱🇰", emojiU: "U+1F1F1 U+1F1F0" }, LR: { name: "Liberia", native: "Liberia", phone: "231", continent: "AF", capital: "Monrovia", currency: "LRD", languages: ["en"], emoji: "🇱🇷", emojiU: "U+1F1F1 U+1F1F7" }, LS: { name: "Lesotho", native: "Lesotho", phone: "266", continent: "AF", capital: "Maseru", currency: "LSL,ZAR", languages: ["en", "st"], emoji: "🇱🇸", emojiU: "U+1F1F1 U+1F1F8" }, LT: { name: "Lithuania", native: "Lietuva", phone: "370", continent: "EU", capital: "Vilnius", currency: "EUR", languages: ["lt"], emoji: "🇱🇹", emojiU: "U+1F1F1 U+1F1F9" }, LU: { name: "Luxembourg", native: "Luxembourg", phone: "352", continent: "EU", capital: "Luxembourg", currency: "EUR", languages: ["fr", "de", "lb"], emoji: "🇱🇺", emojiU: "U+1F1F1 U+1F1FA" }, LV: { name: "Latvia", native: "Latvija", phone: "371", continent: "EU", capital: "Riga", currency: "EUR", languages: ["lv"], emoji: "🇱🇻", emojiU: "U+1F1F1 U+1F1FB" }, LY: { name: "Libya", native: "‏ليبيا", phone: "218", continent: "AF", capital: "Tripoli", currency: "LYD", languages: ["ar"], emoji: "🇱🇾", emojiU: "U+1F1F1 U+1F1FE" }, MA: { name: "Morocco", native: "المغرب", phone: "212", continent: "AF", capital: "Rabat", currency: "MAD", languages: ["ar"], emoji: "🇲🇦", emojiU: "U+1F1F2 U+1F1E6" }, MC: { name: "Monaco", native: "Monaco", phone: "377", continent: "EU", capital: "Monaco", currency: "EUR", languages: ["fr"], emoji: "🇲🇨", emojiU: "U+1F1F2 U+1F1E8" }, MD: { name: "Moldova", native: "Moldova", phone: "373", continent: "EU", capital: "Chișinău", currency: "MDL", languages: ["ro"], emoji: "🇲🇩", emojiU: "U+1F1F2 U+1F1E9" }, ME: { name: "Montenegro", native: "Црна Гора", phone: "382", continent: "EU", capital: "Podgorica", currency: "EUR", languages: ["sr", "bs", "sq", "hr"], emoji: "🇲🇪", emojiU: "U+1F1F2 U+1F1EA" }, MF: { name: "Saint Martin", native: "Saint-Martin", phone: "590", continent: "NA", capital: "Marigot", currency: "EUR", languages: ["en", "fr", "nl"], emoji: "🇲🇫", emojiU: "U+1F1F2 U+1F1EB" }, MG: { name: "Madagascar", native: "Madagasikara", phone: "261", continent: "AF", capital: "Antananarivo", currency: "MGA", languages: ["fr", "mg"], emoji: "🇲🇬", emojiU: "U+1F1F2 U+1F1EC" }, MH: { name: "Marshall Islands", native: "M̧ajeļ", phone: "692", continent: "OC", capital: "Majuro", currency: "USD", languages: ["en", "mh"], emoji: "🇲🇭", emojiU: "U+1F1F2 U+1F1ED" }, MK: { name: "North Macedonia", native: "Северна Македонија", phone: "389", continent: "EU", capital: "Skopje", currency: "MKD", languages: ["mk"], emoji: "🇲🇰", emojiU: "U+1F1F2 U+1F1F0" }, ML: { name: "Mali", native: "Mali", phone: "223", continent: "AF", capital: "Bamako", currency: "XOF", languages: ["fr"], emoji: "🇲🇱", emojiU: "U+1F1F2 U+1F1F1" }, MM: { name: "Myanmar [Burma]", native: "မြန်မာ", phone: "95", continent: "AS", capital: "Naypyidaw", currency: "MMK", languages: ["my"], emoji: "🇲🇲", emojiU: "U+1F1F2 U+1F1F2" }, MN: { name: "Mongolia", native: "Монгол улс", phone: "976", continent: "AS", capital: "Ulan Bator", currency: "MNT", languages: ["mn"], emoji: "🇲🇳", emojiU: "U+1F1F2 U+1F1F3" }, MO: { name: "Macao", native: "澳門", phone: "853", continent: "AS", capital: "", currency: "MOP", languages: ["zh", "pt"], emoji: "🇲🇴", emojiU: "U+1F1F2 U+1F1F4" }, MP: { name: "Northern Mariana Islands", native: "Northern Mariana Islands", phone: "1670", continent: "OC", capital: "Saipan", currency: "USD", languages: ["en", "ch"], emoji: "🇲🇵", emojiU: "U+1F1F2 U+1F1F5" }, MQ: { name: "Martinique", native: "Martinique", phone: "596", continent: "NA", capital: "Fort-de-France", currency: "EUR", languages: ["fr"], emoji: "🇲🇶", emojiU: "U+1F1F2 U+1F1F6" }, MR: { name: "Mauritania", native: "موريتانيا", phone: "222", continent: "AF", capital: "Nouakchott", currency: "MRU", languages: ["ar"], emoji: "🇲🇷", emojiU: "U+1F1F2 U+1F1F7" }, MS: { name: "Montserrat", native: "Montserrat", phone: "1664", continent: "NA", capital: "Plymouth", currency: "XCD", languages: ["en"], emoji: "🇲🇸", emojiU: "U+1F1F2 U+1F1F8" }, MT: { name: "Malta", native: "Malta", phone: "356", continent: "EU", capital: "Valletta", currency: "EUR", languages: ["mt", "en"], emoji: "🇲🇹", emojiU: "U+1F1F2 U+1F1F9" }, MU: { name: "Mauritius", native: "Maurice", phone: "230", continent: "AF", capital: "Port Louis", currency: "MUR", languages: ["en"], emoji: "🇲🇺", emojiU: "U+1F1F2 U+1F1FA" }, MV: { name: "Maldives", native: "Maldives", phone: "960", continent: "AS", capital: "Malé", currency: "MVR", languages: ["dv"], emoji: "🇲🇻", emojiU: "U+1F1F2 U+1F1FB" }, MW: { name: "Malawi", native: "Malawi", phone: "265", continent: "AF", capital: "Lilongwe", currency: "MWK", languages: ["en", "ny"], emoji: "🇲🇼", emojiU: "U+1F1F2 U+1F1FC" }, MX: { name: "Mexico", native: "México", phone: "52", continent: "NA", capital: "Mexico City", currency: "MXN", languages: ["es"], emoji: "🇲🇽", emojiU: "U+1F1F2 U+1F1FD" }, MY: { name: "Malaysia", native: "Malaysia", phone: "60", continent: "AS", capital: "Kuala Lumpur", currency: "MYR", languages: ["ms"], emoji: "🇲🇾", emojiU: "U+1F1F2 U+1F1FE" }, MZ: { name: "Mozambique", native: "Moçambique", phone: "258", continent: "AF", capital: "Maputo", currency: "MZN", languages: ["pt"], emoji: "🇲🇿", emojiU: "U+1F1F2 U+1F1FF" }, NA: { name: "Namibia", native: "Namibia", phone: "264", continent: "AF", capital: "Windhoek", currency: "NAD,ZAR", languages: ["en", "af"], emoji: "🇳🇦", emojiU: "U+1F1F3 U+1F1E6" }, NC: { name: "New Caledonia", native: "Nouvelle-Calédonie", phone: "687", continent: "OC", capital: "Nouméa", currency: "XPF", languages: ["fr"], emoji: "🇳🇨", emojiU: "U+1F1F3 U+1F1E8" }, NE: { name: "Niger", native: "Niger", phone: "227", continent: "AF", capital: "Niamey", currency: "XOF", languages: ["fr"], emoji: "🇳🇪", emojiU: "U+1F1F3 U+1F1EA" }, NF: { name: "Norfolk Island", native: "Norfolk Island", phone: "672", continent: "OC", capital: "Kingston", currency: "AUD", languages: ["en"], emoji: "🇳🇫", emojiU: "U+1F1F3 U+1F1EB" }, NG: { name: "Nigeria", native: "Nigeria", phone: "234", continent: "AF", capital: "Abuja", currency: "NGN", languages: ["en"], emoji: "🇳🇬", emojiU: "U+1F1F3 U+1F1EC" }, NI: { name: "Nicaragua", native: "Nicaragua", phone: "505", continent: "NA", capital: "Managua", currency: "NIO", languages: ["es"], emoji: "🇳🇮", emojiU: "U+1F1F3 U+1F1EE" }, NL: { name: "Netherlands", native: "Nederland", phone: "31", continent: "EU", capital: "Amsterdam", currency: "EUR", languages: ["nl"], emoji: "🇳🇱", emojiU: "U+1F1F3 U+1F1F1" }, NO: { name: "Norway", native: "Norge", phone: "47", continent: "EU", capital: "Oslo", currency: "NOK", languages: ["no", "nb", "nn"], emoji: "🇳🇴", emojiU: "U+1F1F3 U+1F1F4" }, NP: { name: "Nepal", native: "नपल", phone: "977", continent: "AS", capital: "Kathmandu", currency: "NPR", languages: ["ne"], emoji: "🇳🇵", emojiU: "U+1F1F3 U+1F1F5" }, NR: { name: "Nauru", native: "Nauru", phone: "674", continent: "OC", capital: "Yaren", currency: "AUD", languages: ["en", "na"], emoji: "🇳🇷", emojiU: "U+1F1F3 U+1F1F7" }, NU: { name: "Niue", native: "Niuē", phone: "683", continent: "OC", capital: "Alofi", currency: "NZD", languages: ["en"], emoji: "🇳🇺", emojiU: "U+1F1F3 U+1F1FA" }, NZ: { name: "New Zealand", native: "New Zealand", phone: "64", continent: "OC", capital: "Wellington", currency: "NZD", languages: ["en", "mi"], emoji: "🇳🇿", emojiU: "U+1F1F3 U+1F1FF" }, OM: { name: "Oman", native: "عمان", phone: "968", continent: "AS", capital: "Muscat", currency: "OMR", languages: ["ar"], emoji: "🇴🇲", emojiU: "U+1F1F4 U+1F1F2" }, PA: { name: "Panama", native: "Panamá", phone: "507", continent: "NA", capital: "Panama City", currency: "PAB,USD", languages: ["es"], emoji: "🇵🇦", emojiU: "U+1F1F5 U+1F1E6" }, PE: { name: "Peru", native: "Perú", phone: "51", continent: "SA", capital: "Lima", currency: "PEN", languages: ["es"], emoji: "🇵🇪", emojiU: "U+1F1F5 U+1F1EA" }, PF: { name: "French Polynesia", native: "Polynésie française", phone: "689", continent: "OC", capital: "Papeetē", currency: "XPF", languages: ["fr"], emoji: "🇵🇫", emojiU: "U+1F1F5 U+1F1EB" }, PG: { name: "Papua New Guinea", native: "Papua Niugini", phone: "675", continent: "OC", capital: "Port Moresby", currency: "PGK", languages: ["en"], emoji: "🇵🇬", emojiU: "U+1F1F5 U+1F1EC" }, PH: { name: "Philippines", native: "Pilipinas", phone: "63", continent: "AS", capital: "Manila", currency: "PHP", languages: ["en"], emoji: "🇵🇭", emojiU: "U+1F1F5 U+1F1ED" }, PK: { name: "Pakistan", native: "Pakistan", phone: "92", continent: "AS", capital: "Islamabad", currency: "PKR", languages: ["en", "ur"], emoji: "🇵🇰", emojiU: "U+1F1F5 U+1F1F0" }, PL: { name: "Poland", native: "Polska", phone: "48", continent: "EU", capital: "Warsaw", currency: "PLN", languages: ["pl"], emoji: "🇵🇱", emojiU: "U+1F1F5 U+1F1F1" }, PM: { name: "Saint Pierre and Miquelon", native: "Saint-Pierre-et-Miquelon", phone: "508", continent: "NA", capital: "Saint-Pierre", currency: "EUR", languages: ["fr"], emoji: "🇵🇲", emojiU: "U+1F1F5 U+1F1F2" }, PN: { name: "Pitcairn Islands", native: "Pitcairn Islands", phone: "64", continent: "OC", capital: "Adamstown", currency: "NZD", languages: ["en"], emoji: "🇵🇳", emojiU: "U+1F1F5 U+1F1F3" }, PR: { name: "Puerto Rico", native: "Puerto Rico", phone: "1787,1939", continent: "NA", capital: "San Juan", currency: "USD", languages: ["es", "en"], emoji: "🇵🇷", emojiU: "U+1F1F5 U+1F1F7" }, PS: { name: "Palestine", native: "فلسطين", phone: "970", continent: "AS", capital: "Ramallah", currency: "ILS", languages: ["ar"], emoji: "🇵🇸", emojiU: "U+1F1F5 U+1F1F8" }, PT: { name: "Portugal", native: "Portugal", phone: "351", continent: "EU", capital: "Lisbon", currency: "EUR", languages: ["pt"], emoji: "🇵🇹", emojiU: "U+1F1F5 U+1F1F9" }, PW: { name: "Palau", native: "Palau", phone: "680", continent: "OC", capital: "Ngerulmud", currency: "USD", languages: ["en"], emoji: "🇵🇼", emojiU: "U+1F1F5 U+1F1FC" }, PY: { name: "Paraguay", native: "Paraguay", phone: "595", continent: "SA", capital: "Asunción", currency: "PYG", languages: ["es", "gn"], emoji: "🇵🇾", emojiU: "U+1F1F5 U+1F1FE" }, QA: { name: "Qatar", native: "قطر", phone: "974", continent: "AS", capital: "Doha", currency: "QAR", languages: ["ar"], emoji: "🇶🇦", emojiU: "U+1F1F6 U+1F1E6" }, RE: { name: "Réunion", native: "La Réunion", phone: "262", continent: "AF", capital: "Saint-Denis", currency: "EUR", languages: ["fr"], emoji: "🇷🇪", emojiU: "U+1F1F7 U+1F1EA" }, RO: { name: "Romania", native: "România", phone: "40", continent: "EU", capital: "Bucharest", currency: "RON", languages: ["ro"], emoji: "🇷🇴", emojiU: "U+1F1F7 U+1F1F4" }, RS: { name: "Serbia", native: "Србија", phone: "381", continent: "EU", capital: "Belgrade", currency: "RSD", languages: ["sr"], emoji: "🇷🇸", emojiU: "U+1F1F7 U+1F1F8" }, RU: { name: "Russia", native: "Россия", phone: "7", continent: "EU", capital: "Moscow", currency: "RUB", languages: ["ru"], emoji: "🇷🇺", emojiU: "U+1F1F7 U+1F1FA" }, RW: { name: "Rwanda", native: "Rwanda", phone: "250", continent: "AF", capital: "Kigali", currency: "RWF", languages: ["rw", "en", "fr"], emoji: "🇷🇼", emojiU: "U+1F1F7 U+1F1FC" }, SA: { name: "Saudi Arabia", native: "العربية السعودية", phone: "966", continent: "AS", capital: "Riyadh", currency: "SAR", languages: ["ar"], emoji: "🇸🇦", emojiU: "U+1F1F8 U+1F1E6" }, SB: { name: "Solomon Islands", native: "Solomon Islands", phone: "677", continent: "OC", capital: "Honiara", currency: "SBD", languages: ["en"], emoji: "🇸🇧", emojiU: "U+1F1F8 U+1F1E7" }, SC: { name: "Seychelles", native: "Seychelles", phone: "248", continent: "AF", capital: "Victoria", currency: "SCR", languages: ["fr", "en"], emoji: "🇸🇨", emojiU: "U+1F1F8 U+1F1E8" }, SD: { name: "Sudan", native: "السودان", phone: "249", continent: "AF", capital: "Khartoum", currency: "SDG", languages: ["ar", "en"], emoji: "🇸🇩", emojiU: "U+1F1F8 U+1F1E9" }, SE: { name: "Sweden", native: "Sverige", phone: "46", continent: "EU", capital: "Stockholm", currency: "SEK", languages: ["sv"], emoji: "🇸🇪", emojiU: "U+1F1F8 U+1F1EA" }, SG: { name: "Singapore", native: "Singapore", phone: "65", continent: "AS", capital: "Singapore", currency: "SGD", languages: ["en", "ms", "ta", "zh"], emoji: "🇸🇬", emojiU: "U+1F1F8 U+1F1EC" }, SH: { name: "Saint Helena", native: "Saint Helena", phone: "290", continent: "AF", capital: "Jamestown", currency: "SHP", languages: ["en"], emoji: "🇸🇭", emojiU: "U+1F1F8 U+1F1ED" }, SI: { name: "Slovenia", native: "Slovenija", phone: "386", continent: "EU", capital: "Ljubljana", currency: "EUR", languages: ["sl"], emoji: "🇸🇮", emojiU: "U+1F1F8 U+1F1EE" }, SJ: { name: "Svalbard and Jan Mayen", native: "Svalbard og Jan Mayen", phone: "4779", continent: "EU", capital: "Longyearbyen", currency: "NOK", languages: ["no"], emoji: "🇸🇯", emojiU: "U+1F1F8 U+1F1EF" }, SK: { name: "Slovakia", native: "Slovensko", phone: "421", continent: "EU", capital: "Bratislava", currency: "EUR", languages: ["sk"], emoji: "🇸🇰", emojiU: "U+1F1F8 U+1F1F0" }, SL: { name: "Sierra Leone", native: "Sierra Leone", phone: "232", continent: "AF", capital: "Freetown", currency: "SLL", languages: ["en"], emoji: "🇸🇱", emojiU: "U+1F1F8 U+1F1F1" }, SM: { name: "San Marino", native: "San Marino", phone: "378", continent: "EU", capital: "City of San Marino", currency: "EUR", languages: ["it"], emoji: "🇸🇲", emojiU: "U+1F1F8 U+1F1F2" }, SN: { name: "Senegal", native: "Sénégal", phone: "221", continent: "AF", capital: "Dakar", currency: "XOF", languages: ["fr"], emoji: "🇸🇳", emojiU: "U+1F1F8 U+1F1F3" }, SO: { name: "Somalia", native: "Soomaaliya", phone: "252", continent: "AF", capital: "Mogadishu", currency: "SOS", languages: ["so", "ar"], emoji: "🇸🇴", emojiU: "U+1F1F8 U+1F1F4" }, SR: { name: "Suriname", native: "Suriname", phone: "597", continent: "SA", capital: "Paramaribo", currency: "SRD", languages: ["nl"], emoji: "🇸🇷", emojiU: "U+1F1F8 U+1F1F7" }, SS: { name: "South Sudan", native: "South Sudan", phone: "211", continent: "AF", capital: "Juba", currency: "SSP", languages: ["en"], emoji: "🇸🇸", emojiU: "U+1F1F8 U+1F1F8" }, ST: { name: "São Tomé and Príncipe", native: "São Tomé e Príncipe", phone: "239", continent: "AF", capital: "São Tomé", currency: "STN", languages: ["pt"], emoji: "🇸🇹", emojiU: "U+1F1F8 U+1F1F9" }, SV: { name: "El Salvador", native: "El Salvador", phone: "503", continent: "NA", capital: "San Salvador", currency: "SVC,USD", languages: ["es"], emoji: "🇸🇻", emojiU: "U+1F1F8 U+1F1FB" }, SX: { name: "Sint Maarten", native: "Sint Maarten", phone: "1721", continent: "NA", capital: "Philipsburg", currency: "ANG", languages: ["nl", "en"], emoji: "🇸🇽", emojiU: "U+1F1F8 U+1F1FD" }, SY: { name: "Syria", native: "سوريا", phone: "963", continent: "AS", capital: "Damascus", currency: "SYP", languages: ["ar"], emoji: "🇸🇾", emojiU: "U+1F1F8 U+1F1FE" }, SZ: { name: "Swaziland", native: "Swaziland", phone: "268", continent: "AF", capital: "Lobamba", currency: "SZL", languages: ["en", "ss"], emoji: "🇸🇿", emojiU: "U+1F1F8 U+1F1FF" }, TC: { name: "Turks and Caicos Islands", native: "Turks and Caicos Islands", phone: "1649", continent: "NA", capital: "Cockburn Town", currency: "USD", languages: ["en"], emoji: "🇹🇨", emojiU: "U+1F1F9 U+1F1E8" }, TD: { name: "Chad", native: "Tchad", phone: "235", continent: "AF", capital: "N'Djamena", currency: "XAF", languages: ["fr", "ar"], emoji: "🇹🇩", emojiU: "U+1F1F9 U+1F1E9" }, TF: { name: "French Southern Territories", native: "Territoire des Terres australes et antarctiques fr", phone: "262", continent: "AN", capital: "Port-aux-Français", currency: "EUR", languages: ["fr"], emoji: "🇹🇫", emojiU: "U+1F1F9 U+1F1EB" }, TG: { name: "Togo", native: "Togo", phone: "228", continent: "AF", capital: "Lomé", currency: "XOF", languages: ["fr"], emoji: "🇹🇬", emojiU: "U+1F1F9 U+1F1EC" }, TH: { name: "Thailand", native: "ประเทศไทย", phone: "66", continent: "AS", capital: "Bangkok", currency: "THB", languages: ["th"], emoji: "🇹🇭", emojiU: "U+1F1F9 U+1F1ED" }, TJ: { name: "Tajikistan", native: "Тоҷикистон", phone: "992", continent: "AS", capital: "Dushanbe", currency: "TJS", languages: ["tg", "ru"], emoji: "🇹🇯", emojiU: "U+1F1F9 U+1F1EF" }, TK: { name: "Tokelau", native: "Tokelau", phone: "690", continent: "OC", capital: "Fakaofo", currency: "NZD", languages: ["en"], emoji: "🇹🇰", emojiU: "U+1F1F9 U+1F1F0" }, TL: { name: "East Timor", native: "Timor-Leste", phone: "670", continent: "OC", capital: "Dili", currency: "USD", languages: ["pt"], emoji: "🇹🇱", emojiU: "U+1F1F9 U+1F1F1" }, TM: { name: "Turkmenistan", native: "Türkmenistan", phone: "993", continent: "AS", capital: "Ashgabat", currency: "TMT", languages: ["tk", "ru"], emoji: "🇹🇲", emojiU: "U+1F1F9 U+1F1F2" }, TN: { name: "Tunisia", native: "تونس", phone: "216", continent: "AF", capital: "Tunis", currency: "TND", languages: ["ar"], emoji: "🇹🇳", emojiU: "U+1F1F9 U+1F1F3" }, TO: { name: "Tonga", native: "Tonga", phone: "676", continent: "OC", capital: "Nuku'alofa", currency: "TOP", languages: ["en", "to"], emoji: "🇹🇴", emojiU: "U+1F1F9 U+1F1F4" }, TR: { name: "Turkey", native: "Türkiye", phone: "90", continent: "AS", capital: "Ankara", currency: "TRY", languages: ["tr"], emoji: "🇹🇷", emojiU: "U+1F1F9 U+1F1F7" }, TT: { name: "Trinidad and Tobago", native: "Trinidad and Tobago", phone: "1868", continent: "NA", capital: "Port of Spain", currency: "TTD", languages: ["en"], emoji: "🇹🇹", emojiU: "U+1F1F9 U+1F1F9" }, TV: { name: "Tuvalu", native: "Tuvalu", phone: "688", continent: "OC", capital: "Funafuti", currency: "AUD", languages: ["en"], emoji: "🇹🇻", emojiU: "U+1F1F9 U+1F1FB" }, TW: { name: "Taiwan", native: "臺灣", phone: "886", continent: "AS", capital: "Taipei", currency: "TWD", languages: ["zh"], emoji: "🇹🇼", emojiU: "U+1F1F9 U+1F1FC" }, TZ: { name: "Tanzania", native: "Tanzania", phone: "255", continent: "AF", capital: "Dodoma", currency: "TZS", languages: ["sw", "en"], emoji: "🇹🇿", emojiU: "U+1F1F9 U+1F1FF" }, UA: { name: "Ukraine", native: "Україна", phone: "380", continent: "EU", capital: "Kyiv", currency: "UAH", languages: ["uk"], emoji: "🇺🇦", emojiU: "U+1F1FA U+1F1E6" }, UG: { name: "Uganda", native: "Uganda", phone: "256", continent: "AF", capital: "Kampala", currency: "UGX", languages: ["en", "sw"], emoji: "🇺🇬", emojiU: "U+1F1FA U+1F1EC" }, UM: { name: "U.S. Minor Outlying Islands", native: "United States Minor Outlying Islands", phone: "1", continent: "OC", capital: "", currency: "USD", languages: ["en"], emoji: "🇺🇲", emojiU: "U+1F1FA U+1F1F2" }, US: { name: "United States", native: "United States", phone: "1", continent: "NA", capital: "Washington D.C.", currency: "USD,USN,USS", languages: ["en"], emoji: "🇺🇸", emojiU: "U+1F1FA U+1F1F8" }, UY: { name: "Uruguay", native: "Uruguay", phone: "598", continent: "SA", capital: "Montevideo", currency: "UYI,UYU", languages: ["es"], emoji: "🇺🇾", emojiU: "U+1F1FA U+1F1FE" }, UZ: { name: "Uzbekistan", native: "Ozbekiston", phone: "998", continent: "AS", capital: "Tashkent", currency: "UZS", languages: ["uz", "ru"], emoji: "🇺🇿", emojiU: "U+1F1FA U+1F1FF" }, VA: { name: "Vatican City", native: "Vaticano", phone: "379", continent: "EU", capital: "Vatican City", currency: "EUR", languages: ["it", "la"], emoji: "🇻🇦", emojiU: "U+1F1FB U+1F1E6" }, VC: { name: "Saint Vincent and the Grenadines", native: "Saint Vincent and the Grenadines", phone: "1784", continent: "NA", capital: "Kingstown", currency: "XCD", languages: ["en"], emoji: "🇻🇨", emojiU: "U+1F1FB U+1F1E8" }, VE: { name: "Venezuela", native: "Venezuela", phone: "58", continent: "SA", capital: "Caracas", currency: "VES", languages: ["es"], emoji: "🇻🇪", emojiU: "U+1F1FB U+1F1EA" }, VG: { name: "British Virgin Islands", native: "British Virgin Islands", phone: "1284", continent: "NA", capital: "Road Town", currency: "USD", languages: ["en"], emoji: "🇻🇬", emojiU: "U+1F1FB U+1F1EC" }, VI: { name: "U.S. Virgin Islands", native: "United States Virgin Islands", phone: "1340", continent: "NA", capital: "Charlotte Amalie", currency: "USD", languages: ["en"], emoji: "🇻🇮", emojiU: "U+1F1FB U+1F1EE" }, VN: { name: "Vietnam", native: "Việt Nam", phone: "84", continent: "AS", capital: "Hanoi", currency: "VND", languages: ["vi"], emoji: "🇻🇳", emojiU: "U+1F1FB U+1F1F3" }, VU: { name: "Vanuatu", native: "Vanuatu", phone: "678", continent: "OC", capital: "Port Vila", currency: "VUV", languages: ["bi", "en", "fr"], emoji: "🇻🇺", emojiU: "U+1F1FB U+1F1FA" }, WF: { name: "Wallis and Futuna", native: "Wallis et Futuna", phone: "681", continent: "OC", capital: "Mata-Utu", currency: "XPF", languages: ["fr"], emoji: "🇼🇫", emojiU: "U+1F1FC U+1F1EB" }, WS: { name: "Samoa", native: "Samoa", phone: "685", continent: "OC", capital: "Apia", currency: "WST", languages: ["sm", "en"], emoji: "🇼🇸", emojiU: "U+1F1FC U+1F1F8" }, XK: { name: "Kosovo", native: "Republika e Kosovës", phone: "377,381,383,386", continent: "EU", capital: "Pristina", currency: "EUR", languages: ["sq", "sr"], emoji: "🇽🇰", emojiU: "U+1F1FD U+1F1F0" }, YE: { name: "Yemen", native: "اليَمَن", phone: "967", continent: "AS", capital: "Sana'a", currency: "YER", languages: ["ar"], emoji: "🇾🇪", emojiU: "U+1F1FE U+1F1EA" }, YT: { name: "Mayotte", native: "Mayotte", phone: "262", continent: "AF", capital: "Mamoudzou", currency: "EUR", languages: ["fr"], emoji: "🇾🇹", emojiU: "U+1F1FE U+1F1F9" }, ZA: { name: "South Africa", native: "South Africa", phone: "27", continent: "AF", capital: "Pretoria", currency: "ZAR", languages: ["af", "en", "nr", "st", "ss", "tn", "ts", "ve", "xh", "zu"], emoji: "🇿🇦", emojiU: "U+1F1FF U+1F1E6" }, ZM: { name: "Zambia", native: "Zambia", phone: "260", continent: "AF", capital: "Lusaka", currency: "ZMW", languages: ["en"], emoji: "🇿🇲", emojiU: "U+1F1FF U+1F1F2" }, ZW: { name: "Zimbabwe", native: "Zimbabwe", phone: "263", continent: "AF", capital: "Harare", currency: "USD,ZAR,BWP,GBP,AUD,CNY,INR,JPY", languages: ["en", "sn", "nd"], emoji: "🇿🇼", emojiU: "U+1F1FF U+1F1FC" } }, a = { af: { name: "Afrikaans", native: "Afrikaans" }, am: { name: "Amharic", native: "አማርኛ" }, ar: { name: "Arabic", native: "العربية", rtl: 1 }, ay: { name: "Aymara", native: "Aymar" }, az: { name: "Azerbaijani", native: "Azərbaycanca / آذربايجان" }, be: { name: "Belarusian", native: "Беларуская" }, bg: { name: "Bulgarian", native: "Български" }, bi: { name: "Bislama", native: "Bislama" }, bn: { name: "Bengali", native: "বাংলা" }, bs: { name: "Bosnian", native: "Bosanski" }, ca: { name: "Catalan", native: "Català" }, ch: { name: "Chamorro", native: "Chamoru" }, cs: { name: "Czech", native: "Čeština" }, da: { name: "Danish", native: "Dansk" }, de: { name: "German", native: "Deutsch" }, dv: { name: "Divehi", native: "ދިވެހިބަސް", rtl: 1 }, dz: { name: "Dzongkha", native: "ཇོང་ཁ" }, el: { name: "Greek", native: "Ελληνικά" }, en: { name: "English", native: "English" }, es: { name: "Spanish", native: "Español" }, et: { name: "Estonian", native: "Eesti" }, eu: { name: "Basque", native: "Euskara" }, fa: { name: "Persian", native: "فارسی", rtl: 1 }, ff: { name: "Peul", native: "Fulfulde" }, fi: { name: "Finnish", native: "Suomi" }, fj: { name: "Fijian", native: "Na Vosa Vakaviti" }, fo: { name: "Faroese", native: "Føroyskt" }, fr: { name: "French", native: "Français" }, ga: { name: "Irish", native: "Gaeilge" }, gl: { name: "Galician", native: "Galego" }, gn: { name: "Guarani", native: "Avañe'ẽ" }, gv: { name: "Manx", native: "Gaelg" }, he: { name: "Hebrew", native: "עברית", rtl: 1 }, hi: { name: "Hindi", native: "हिन्दी" }, hr: { name: "Croatian", native: "Hrvatski" }, ht: { name: "Haitian", native: "Krèyol ayisyen" }, hu: { name: "Hungarian", native: "Magyar" }, hy: { name: "Armenian", native: "Հայերեն" }, id: { name: "Indonesian", native: "Bahasa Indonesia" }, is: { name: "Icelandic", native: "Íslenska" }, it: { name: "Italian", native: "Italiano" }, ja: { name: "Japanese", native: "日本語" }, ka: { name: "Georgian", native: "ქართული" }, kg: { name: "Kongo", native: "KiKongo" }, kk: { name: "Kazakh", native: "Қазақша" }, kl: { name: "Greenlandic", native: "Kalaallisut" }, km: { name: "Cambodian", native: "ភាសាខ្មែរ" }, ko: { name: "Korean", native: "한국어" }, ku: { name: "Kurdish", native: "Kurdî / كوردی", rtl: 1 }, ky: { name: "Kyrgyz", native: "Кыргызча" }, la: { name: "Latin", native: "Latina" }, lb: { name: "Luxembourgish", native: "Lëtzebuergesch" }, ln: { name: "Lingala", native: "Lingála" }, lo: { name: "Laotian", native: "ລາວ / Pha xa lao" }, lt: { name: "Lithuanian", native: "Lietuvių" }, lu: { name: "Luba-Katanga", native: "Tshiluba" }, lv: { name: "Latvian", native: "Latviešu" }, mg: { name: "Malagasy", native: "Malagasy" }, mh: { name: "Marshallese", native: "Kajin Majel / Ebon" }, mi: { name: "Maori", native: "Māori" }, mk: { name: "Macedonian", native: "Македонски" }, mn: { name: "Mongolian", native: "Монгол" }, ms: { name: "Malay", native: "Bahasa Melayu" }, mt: { name: "Maltese", native: "bil-Malti" }, my: { name: "Burmese", native: "မြန်မာစာ" }, na: { name: "Nauruan", native: "Dorerin Naoero" }, nb: { name: "Norwegian Bokmål", native: "Norsk bokmål" }, nd: { name: "North Ndebele", native: "Sindebele" }, ne: { name: "Nepali", native: "नेपाली" }, nl: { name: "Dutch", native: "Nederlands" }, nn: { name: "Norwegian Nynorsk", native: "Norsk nynorsk" }, no: { name: "Norwegian", native: "Norsk" }, nr: { name: "South Ndebele", native: "isiNdebele" }, ny: { name: "Chichewa", native: "Chi-Chewa" }, oc: { name: "Occitan", native: "Occitan" }, pa: { name: "Panjabi / Punjabi", native: "ਪੰਜਾਬੀ / पंजाबी / پنجابي" }, pl: { name: "Polish", native: "Polski" }, ps: { name: "Pashto", native: "پښتو", rtl: 1 }, pt: { name: "Portuguese", native: "Português" }, qu: { name: "Quechua", native: "Runa Simi" }, rn: { name: "Kirundi", native: "Kirundi" }, ro: { name: "Romanian", native: "Română" }, ru: { name: "Russian", native: "Русский" }, rw: { name: "Rwandi", native: "Kinyarwandi" }, sg: { name: "Sango", native: "Sängö" }, si: { name: "Sinhalese", native: "සිංහල" }, sk: { name: "Slovak", native: "Slovenčina" }, sl: { name: "Slovenian", native: "Slovenščina" }, sm: { name: "Samoan", native: "Gagana Samoa" }, sn: { name: "Shona", native: "chiShona" }, so: { name: "Somalia", native: "Soomaaliga" }, sq: { name: "Albanian", native: "Shqip" }, sr: { name: "Serbian", native: "Српски" }, ss: { name: "Swati", native: "SiSwati" }, st: { name: "Southern Sotho", native: "Sesotho" }, sv: { name: "Swedish", native: "Svenska" }, sw: { name: "Swahili", native: "Kiswahili" }, ta: { name: "Tamil", native: "தமிழ்" }, tg: { name: "Tajik", native: "Тоҷикӣ" }, th: { name: "Thai", native: "ไทย / Phasa Thai" }, ti: { name: "Tigrinya", native: "ትግርኛ" }, tk: { name: "Turkmen", native: "Туркмен / تركمن" }, tn: { name: "Tswana", native: "Setswana" }, to: { name: "Tonga", native: "Lea Faka-Tonga" }, tr: { name: "Turkish", native: "Türkçe" }, ts: { name: "Tsonga", native: "Xitsonga" }, uk: { name: "Ukrainian", native: "Українська" }, ur: { name: "Urdu", native: "اردو", rtl: 1 }, uz: { name: "Uzbek", native: "Ўзбек" }, ve: { name: "Venda", native: "Tshivenḓa" }, vi: { name: "Vietnamese", native: "Tiếng Việt" }, xh: { name: "Xhosa", native: "isiXhosa" }, zh: { name: "Chinese", native: "中文" }, zu: { name: "Zulu", native: "isiZulu" } }, i = { aa: { name: "Afar", native: "Afar" }, ab: { name: "Abkhazian", native: "Аҧсуа" }, af: { name: "Afrikaans", native: "Afrikaans" }, ak: { name: "Akan", native: "Akana" }, am: { name: "Amharic", native: "አማርኛ" }, an: { name: "Aragonese", native: "Aragonés" }, ar: { name: "Arabic", native: "العربية", rtl: 1 }, as: { name: "Assamese", native: "অসমীয়া" }, av: { name: "Avar", native: "Авар" }, ay: { name: "Aymara", native: "Aymar" }, az: { name: "Azerbaijani", native: "Azərbaycanca / آذربايجان" }, ba: { name: "Bashkir", native: "Башҡорт" }, be: { name: "Belarusian", native: "Беларуская" }, bg: { name: "Bulgarian", native: "Български" }, bh: { name: "Bihari", native: "भोजपुरी" }, bi: { name: "Bislama", native: "Bislama" }, bm: { name: "Bambara", native: "Bamanankan" }, bn: { name: "Bengali", native: "বাংলা" }, bo: { name: "Tibetan", native: "བོད་ཡིག / Bod skad" }, br: { name: "Breton", native: "Brezhoneg" }, bs: { name: "Bosnian", native: "Bosanski" }, ca: { name: "Catalan", native: "Català" }, ce: { name: "Chechen", native: "Нохчийн" }, ch: { name: "Chamorro", native: "Chamoru" }, co: { name: "Corsican", native: "Corsu" }, cr: { name: "Cree", native: "Nehiyaw" }, cs: { name: "Czech", native: "Čeština" }, cu: { name: "Old Church Slavonic / Old Bulgarian", native: "словѣньскъ / slověnĭskŭ" }, cv: { name: "Chuvash", native: "Чăваш" }, cy: { name: "Welsh", native: "Cymraeg" }, da: { name: "Danish", native: "Dansk" }, de: { name: "German", native: "Deutsch" }, dv: { name: "Divehi", native: "ދިވެހިބަސް", rtl: 1 }, dz: { name: "Dzongkha", native: "ཇོང་ཁ" }, ee: { name: "Ewe", native: "Ɛʋɛ" }, el: { name: "Greek", native: "Ελληνικά" }, en: { name: "English", native: "English" }, eo: { name: "Esperanto", native: "Esperanto" }, es: { name: "Spanish", native: "Español" }, et: { name: "Estonian", native: "Eesti" }, eu: { name: "Basque", native: "Euskara" }, fa: { name: "Persian", native: "فارسی", rtl: 1 }, ff: { name: "Peul", native: "Fulfulde" }, fi: { name: "Finnish", native: "Suomi" }, fj: { name: "Fijian", native: "Na Vosa Vakaviti" }, fo: { name: "Faroese", native: "Føroyskt" }, fr: { name: "French", native: "Français" }, fy: { name: "West Frisian", native: "Frysk" }, ga: { name: "Irish", native: "Gaeilge" }, gd: { name: "Scottish Gaelic", native: "Gàidhlig" }, gl: { name: "Galician", native: "Galego" }, gn: { name: "Guarani", native: "Avañe'ẽ" }, gu: { name: "Gujarati", native: "ગુજરાતી" }, gv: { name: "Manx", native: "Gaelg" }, ha: { name: "Hausa", native: "هَوُسَ", rtl: 1 }, he: { name: "Hebrew", native: "עברית", rtl: 1 }, hi: { name: "Hindi", native: "हिन्दी" }, ho: { name: "Hiri Motu", native: "Hiri Motu" }, hr: { name: "Croatian", native: "Hrvatski" }, ht: { name: "Haitian", native: "Krèyol ayisyen" }, hu: { name: "Hungarian", native: "Magyar" }, hy: { name: "Armenian", native: "Հայերեն" }, hz: { name: "Herero", native: "Otsiherero" }, ia: { name: "Interlingua", native: "Interlingua" }, id: { name: "Indonesian", native: "Bahasa Indonesia" }, ie: { name: "Interlingue", native: "Interlingue" }, ig: { name: "Igbo", native: "Igbo" }, ii: { name: "Sichuan Yi", native: "ꆇꉙ / 四川彝语" }, ik: { name: "Inupiak", native: "Iñupiak" }, io: { name: "Ido", native: "Ido" }, is: { name: "Icelandic", native: "Íslenska" }, it: { name: "Italian", native: "Italiano" }, iu: { name: "Inuktitut", native: "ᐃᓄᒃᑎᑐᑦ" }, ja: { name: "Japanese", native: "日本語" }, jv: { name: "Javanese", native: "Basa Jawa" }, ka: { name: "Georgian", native: "ქართული" }, kg: { name: "Kongo", native: "KiKongo" }, ki: { name: "Kikuyu", native: "Gĩkũyũ" }, kj: { name: "Kuanyama", native: "Kuanyama" }, kk: { name: "Kazakh", native: "Қазақша" }, kl: { name: "Greenlandic", native: "Kalaallisut" }, km: { name: "Cambodian", native: "ភាសាខ្មែរ" }, kn: { name: "Kannada", native: "ಕನ್ನಡ" }, ko: { name: "Korean", native: "한국어" }, kr: { name: "Kanuri", native: "Kanuri" }, ks: { name: "Kashmiri", native: "कश्मीरी / كشميري", rtl: 1 }, ku: { name: "Kurdish", native: "Kurdî / كوردی", rtl: 1 }, kv: { name: "Komi", native: "Коми" }, kw: { name: "Cornish", native: "Kernewek" }, ky: { name: "Kyrgyz", native: "Кыргызча" }, la: { name: "Latin", native: "Latina" }, lb: { name: "Luxembourgish", native: "Lëtzebuergesch" }, lg: { name: "Ganda", native: "Luganda" }, li: { name: "Limburgian", native: "Limburgs" }, ln: { name: "Lingala", native: "Lingála" }, lo: { name: "Laotian", native: "ລາວ / Pha xa lao" }, lt: { name: "Lithuanian", native: "Lietuvių" }, lu: { name: "Luba-Katanga", native: "Tshiluba" }, lv: { name: "Latvian", native: "Latviešu" }, mg: { name: "Malagasy", native: "Malagasy" }, mh: { name: "Marshallese", native: "Kajin Majel / Ebon" }, mi: { name: "Maori", native: "Māori" }, mk: { name: "Macedonian", native: "Македонски" }, ml: { name: "Malayalam", native: "മലയാളം" }, mn: { name: "Mongolian", native: "Монгол" }, mo: { name: "Moldovan", native: "Moldovenească" }, mr: { name: "Marathi", native: "मराठी" }, ms: { name: "Malay", native: "Bahasa Melayu" }, mt: { name: "Maltese", native: "bil-Malti" }, my: { name: "Burmese", native: "မြန်မာစာ" }, na: { name: "Nauruan", native: "Dorerin Naoero" }, nb: { name: "Norwegian Bokmål", native: "Norsk bokmål" }, nd: { name: "North Ndebele", native: "Sindebele" }, ne: { name: "Nepali", native: "नेपाली" }, ng: { name: "Ndonga", native: "Oshiwambo" }, nl: { name: "Dutch", native: "Nederlands" }, nn: { name: "Norwegian Nynorsk", native: "Norsk nynorsk" }, no: { name: "Norwegian", native: "Norsk" }, nr: { name: "South Ndebele", native: "isiNdebele" }, nv: { name: "Navajo", native: "Diné bizaad" }, ny: { name: "Chichewa", native: "Chi-Chewa" }, oc: { name: "Occitan", native: "Occitan" }, oj: { name: "Ojibwa", native: "ᐊᓂᔑᓈᐯᒧᐎᓐ / Anishinaabemowin" }, om: { name: "Oromo", native: "Oromoo" }, or: { name: "Oriya", native: "ଓଡ଼ିଆ" }, os: { name: "Ossetian / Ossetic", native: "Иронау" }, pa: { name: "Panjabi / Punjabi", native: "ਪੰਜਾਬੀ / पंजाबी / پنجابي" }, pi: { name: "Pali", native: "Pāli / पाऴि" }, pl: { name: "Polish", native: "Polski" }, ps: { name: "Pashto", native: "پښتو", rtl: 1 }, pt: { name: "Portuguese", native: "Português" }, qu: { name: "Quechua", native: "Runa Simi" }, rm: { name: "Raeto Romance", native: "Rumantsch" }, rn: { name: "Kirundi", native: "Kirundi" }, ro: { name: "Romanian", native: "Română" }, ru: { name: "Russian", native: "Русский" }, rw: { name: "Rwandi", native: "Kinyarwandi" }, sa: { name: "Sanskrit", native: "संस्कृतम्" }, sc: { name: "Sardinian", native: "Sardu" }, sd: { name: "Sindhi", native: "सिनधि" }, se: { name: "Northern Sami", native: "Sámegiella" }, sg: { name: "Sango", native: "Sängö" }, sh: { name: "Serbo-Croatian", native: "Srpskohrvatski / Српскохрватски" }, si: { name: "Sinhalese", native: "සිංහල" }, sk: { name: "Slovak", native: "Slovenčina" }, sl: { name: "Slovenian", native: "Slovenščina" }, sm: { name: "Samoan", native: "Gagana Samoa" }, sn: { name: "Shona", native: "chiShona" }, so: { name: "Somalia", native: "Soomaaliga" }, sq: { name: "Albanian", native: "Shqip" }, sr: { name: "Serbian", native: "Српски" }, ss: { name: "Swati", native: "SiSwati" }, st: { name: "Southern Sotho", native: "Sesotho" }, su: { name: "Sundanese", native: "Basa Sunda" }, sv: { name: "Swedish", native: "Svenska" }, sw: { name: "Swahili", native: "Kiswahili" }, ta: { name: "Tamil", native: "தமிழ்" }, te: { name: "Telugu", native: "తెలుగు" }, tg: { name: "Tajik", native: "Тоҷикӣ" }, th: { name: "Thai", native: "ไทย / Phasa Thai" }, ti: { name: "Tigrinya", native: "ትግርኛ" }, tk: { name: "Turkmen", native: "Туркмен / تركمن" }, tl: { name: "Tagalog / Filipino", native: "Tagalog" }, tn: { name: "Tswana", native: "Setswana" }, to: { name: "Tonga", native: "Lea Faka-Tonga" }, tr: { name: "Turkish", native: "Türkçe" }, ts: { name: "Tsonga", native: "Xitsonga" }, tt: { name: "Tatar", native: "Tatarça" }, tw: { name: "Twi", native: "Twi" }, ty: { name: "Tahitian", native: "Reo Mā`ohi" }, ug: { name: "Uyghur", native: "Uyƣurqə / ئۇيغۇرچە" }, uk: { name: "Ukrainian", native: "Українська" }, ur: { name: "Urdu", native: "اردو", rtl: 1 }, uz: { name: "Uzbek", native: "Ўзбек" }, ve: { name: "Venda", native: "Tshivenḓa" }, vi: { name: "Vietnamese", native: "Tiếng Việt" }, vo: { name: "Volapük", native: "Volapük" }, wa: { name: "Walloon", native: "Walon" }, wo: { name: "Wolof", native: "Wollof" }, xh: { name: "Xhosa", native: "isiXhosa" }, yi: { name: "Yiddish", native: "ייִדיש", rtl: 1 }, yo: { name: "Yoruba", native: "Yorùbá" }, za: { name: "Zhuang", native: "Cuengh / Tôô / 壮语" }, zh: { name: "Chinese", native: "中文" }, zu: { name: "Zulu", native: "isiZulu" } }; const o = 2147483647, s = 36, l = /^xn--/, u = /[^\0-\x7E]/, c = /[\x2E\u3002\uFF0E\uFF61]/g, d = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, m = Math.floor, g = String.fromCharCode; function b(k) { throw new RangeError(d[k]) } function U(k, G) { const pe = k.split("@"); let ae = ""; pe.length > 1 && (ae = pe[0] + "@", k = pe[1]); const ie = function (re, X) { const Y = []; let z = re.length; for (; z--;)Y[z] = X(re[z]); return Y }((k = k.replace(c, ".")).split("."), G).join("."); return ae + ie } function P(k) { const G = []; let pe = 0; const ae = k.length; for (; pe < ae;) { const ie = k.charCodeAt(pe++); if (ie >= 55296 && ie <= 56319 && pe < ae) { const re = k.charCodeAt(pe++); (64512 & re) == 56320 ? G.push(((1023 & ie) << 10) + (1023 & re) + 65536) : (G.push(ie), pe--) } else G.push(ie) } return G } const S = function (k, G) { return k + 22 + 75 * (k < 26) - ((G != 0) << 5) }, W = function (k, G, pe) { let ae = 0; for (k = pe ? m(k / 700) : k >> 1, k += m(k / G); k > 455; ae += s)k = m(k / 35); return m(ae + 36 * k / (k + 38)) }, q = function (k) { const G = [], pe = k.length; let ae = 0, ie = 128, re = 72, X = k.lastIndexOf("-"); X < 0 && (X = 0); for (let z = 0; z < X; ++z)k.charCodeAt(z) >= 128 && b("not-basic"), G.push(k.charCodeAt(z)); for (let z = X > 0 ? X + 1 : 0; z < pe;) { let Te = ae; for (let Ae = 1, Ee = s; ; Ee += s) { z >= pe && b("invalid-input"); const je = (Y = k.charCodeAt(z++)) - 48 < 10 ? Y - 22 : Y - 65 < 26 ? Y - 65 : Y - 97 < 26 ? Y - 97 : s; (je >= s || je > m((o - ae) / Ae)) && b("overflow"), ae += je * Ae; const Ie = Ee <= re ? 1 : Ee >= re + 26 ? 26 : Ee - re; if (je < Ie) break; const I = s - Ie; Ae > m(o / I) && b("overflow"), Ae *= I } const Me = G.length + 1; re = W(ae - Te, Me, Te == 0), m(ae / Me) > o - ie && b("overflow"), ie += m(ae / Me), ae %= Me, G.splice(ae++, 0, ie) } var Y; return String.fromCodePoint(...G) }, E = function (k) { const G = []; let pe = (k = P(k)).length, ae = 128, ie = 0, re = 72; for (const z of k) z < 128 && G.push(g(z)); let X = G.length, Y = X; for (X && G.push("-"); Y < pe;) { let z = o; for (const Me of k) Me >= ae && Me < z && (z = Me); const Te = Y + 1; z - ae > m((o - ie) / Te) && b("overflow"), ie += (z - ae) * Te, ae = z; for (const Me of k) if (Me < ae && ++ie > o && b("overflow"), Me == ae) { let Ae = ie; for (let Ee = s; ; Ee += s) { const je = Ee <= re ? 1 : Ee >= re + 26 ? 26 : Ee - re; if (Ae < je) break; const Ie = Ae - je, I = s - je; G.push(g(S(je + Ie % I, 0))), Ae = m(Ie / I) } G.push(g(S(Ae, 0))), re = W(ie, Te, Y == X), ie = 0, ++Y } ++ie, ++ae } return G.join("") }; var D = { version: "2.1.0", ucs2: { decode: P, encode: k => String.fromCodePoint(...k) }, decode: q, encode: E, toASCII: function (k) { return U(k, function (G) { return u.test(G) ? "xn--" + E(G) : G }) }, toUnicode: function (k) { return U(k, function (G) { return l.test(G) ? q(G.slice(4).toLowerCase()) : G }) } }; const { ucs2: { decode: L, encode: B } } = D, J = 127462 - "A".charCodeAt(0), ve = /^[A-Z]{2}$/; return { continents: n, countries: r, languages: a, languagesAll: i, getEmojiFlag: k => ve.test(k) ? B(k.split("").map(G => J + G.charCodeAt(0))) : "", getUnicode: k => L(k).map(G => "U+" + Number(G).toString(16).toUpperCase()).join(" ") } }) })(pd); const gd = Ar;/**
* vee-validate v4.9.5
* (c) 2023 Abdelrahman Awad
* @license MIT
*/function Je(e) { return typeof e == "function" } function Ps(e) { return e == null } const Qt = e => e !== null && !!e && typeof e == "object" && !Array.isArray(e); function Ns(e) { return Number(e) >= 0 } function yd(e) { const t = parseFloat(e); return isNaN(t) ? e : t } function Ls(e, t) { return Object.keys(t).forEach(n => { if (Qt(t[n])) { e[n] || (e[n] = {}), Ls(e[n], t[n]); return } e[n] = t[n] }), e } const bd = {}; function wd(e) { return bd[e] } const nr = Symbol("vee-validate-form"), Fd = Symbol("vee-validate-field-instance"), Da = Symbol("Default empty value"), Ud = typeof window < "u"; function Dr(e) { return Je(e) && !!e.__locatorRef } function hn(e) { return !!e && Je(e.parse) && e.__type === "VVTypedSchema" } function Ma(e) { return !!e && Je(e.validate) } function sa(e) { return e === "checkbox" || e === "radio" } function _d(e) { return Qt(e) || Array.isArray(e) } function xd(e) { return Array.isArray(e) ? e.length === 0 : Qt(e) && Object.keys(e).length === 0 } function ar(e) { return /^\[.+\]$/i.test(e) } function Ed(e) { return Is(e) && e.multiple } function Is(e) { return e.tagName === "SELECT" } function kd(e, t) { const n = ![!1, null, void 0, 0].includes(t.multiple) && !Number.isNaN(t.multiple); return e === "select" && "multiple" in t && n } function jd(e, t) { return !kd(e, t) && t.type !== "file" && !sa(t.type) } function $s(e) { return mi(e) && e.target && "submit" in e.target } function mi(e) { return e ? !!(typeof Event < "u" && Je(Event) && e instanceof Event || e && e.srcElement) : !1 } function so(e, t) { return t in e && e[t] !== Da } function tt(e, t) { if (e === t) return !0; if (e && t && typeof e == "object" && typeof t == "object") { if (e.constructor !== t.constructor) return !1; var n, r, a; if (Array.isArray(e)) { if (n = e.length, n != t.length) return !1; for (r = n; r-- !== 0;)if (!tt(e[r], t[r])) return !1; return !0 } if (e instanceof Map && t instanceof Map) { if (e.size !== t.size) return !1; for (r of e.entries()) if (!t.has(r[0])) return !1; for (r of e.entries()) if (!tt(r[1], t.get(r[0]))) return !1; return !0 } if (lo(e) && lo(t)) return !(e.size !== t.size || e.name !== t.name || e.lastModified !== t.lastModified || e.type !== t.type); if (e instanceof Set && t instanceof Set) { if (e.size !== t.size) return !1; for (r of e.entries()) if (!t.has(r[0])) return !1; return !0 } if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) { if (n = e.length, n != t.length) return !1; for (r = n; r-- !== 0;)if (e[r] !== t[r]) return !1; return !0 } if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags; if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf(); if (e.toString !== Object.prototype.toString) return e.toString() === t.toString(); if (a = Object.keys(e), n = a.length, n !== Object.keys(t).length) return !1; for (r = n; r-- !== 0;)if (!Object.prototype.hasOwnProperty.call(t, a[r])) return !1; for (r = n; r-- !== 0;) { var i = a[r]; if (!tt(e[i], t[i])) return !1 } return !0 } return e !== e && t !== t } function lo(e) { return Ud ? e instanceof File : !1 } function uo(e, t, n) { typeof n.value == "object" && (n.value = $e(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value } function $e(e) { if (typeof e != "object") return e; var t = 0, n, r, a, i = Object.prototype.toString.call(e); if (i === "[object Object]" ? a = Object.create(e.__proto__ || null) : i === "[object Array]" ? a = Array(e.length) : i === "[object Set]" ? (a = new Set, e.forEach(function (o) { a.add($e(o)) })) : i === "[object Map]" ? (a = new Map, e.forEach(function (o, s) { a.set($e(s), $e(o)) })) : i === "[object Date]" ? a = new Date(+e) : i === "[object RegExp]" ? a = new RegExp(e.source, e.flags) : i === "[object DataView]" ? a = new e.constructor($e(e.buffer)) : i === "[object ArrayBuffer]" ? a = e.slice(0) : i.slice(-6) === "Array]" && (a = new e.constructor(e)), a) { for (r = Object.getOwnPropertySymbols(e); t < r.length; t++)uo(a, r[t], Object.getOwnPropertyDescriptor(e, r[t])); for (t = 0, r = Object.getOwnPropertyNames(e); t < r.length; t++)Object.hasOwnProperty.call(a, n = r[t]) && a[n] === e[n] || uo(a, n, Object.getOwnPropertyDescriptor(e, n)) } return a || e } function hi(e) { return ar(e) ? e.replace(/\[|\]/gi, "") : e } function rt(e, t, n) { return e ? ar(t) ? e[hi(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((a, i) => _d(a) && i in a ? a[i] : n, e) : n } function tn(e, t, n) { if (ar(t)) { e[hi(t)] = n; return } const r = t.split(/\.|\[(\d+)\]/).filter(Boolean); let a = e; for (let i = 0; i < r.length; i++) { if (i === r.length - 1) { a[r[i]] = n; return } (!(r[i] in a) || Ps(a[r[i]])) && (a[r[i]] = Ns(r[i + 1]) ? [] : {}), a = a[r[i]] } } function hr(e, t) { if (Array.isArray(e) && Ns(t)) { e.splice(Number(t), 1); return } Qt(e) && delete e[t] } function co(e, t) { if (ar(t)) { delete e[hi(t)]; return } const n = t.split(/\.|\[(\d+)\]/).filter(Boolean); let r = e; for (let i = 0; i < n.length; i++) { if (i === n.length - 1) { hr(r, n[i]); break } if (!(n[i] in r) || Ps(r[n[i]])) break; r = r[n[i]] } const a = n.map((i, o) => rt(e, n.slice(0, o).join("."))); for (let i = a.length - 1; i >= 0; i--)if (xd(a[i])) { if (i === 0) { hr(e, n[0]); continue } hr(a[i - 1], n[i - 1]) } } function Et(e) { return Object.keys(e) } function Rs(e, t = void 0) { const n = di(); return (n == null ? void 0 : n.provides[e]) || Sn(e, t) } function fo(e, t, n) { if (Array.isArray(e)) { const r = [...e], a = r.findIndex(i => tt(i, t)); return a >= 0 ? r.splice(a, 1) : r.push(t), r } return tt(e, t) ? n : t } function mo(e, t = 0) { let n = null, r = []; return function (...a) { return n && window.clearTimeout(n), n = window.setTimeout(() => { const i = e(...a); r.forEach(o => o(i)), r = [] }, t), new Promise(i => r.push(i)) } } function Cd(e, t) { return Qt(t) && t.number ? yd(e) : e } function Mr(e, t) { let n; return async function (...a) { const i = e(...a); n = i; const o = await i; return i !== n || (n = void 0, t(o, a)), o } } function Mt(e) { return Je(e) ? e() : A(e) } function Sd(e) { return ee(() => Mt(e)) } function Pr(e) { return Array.isArray(e) ? e : e ? [e] : [] } function Hn(e, t) { const n = {}; for (const r in e) t.includes(r) || (n[r] = e[r]); return n } const vi = (e, t, n) => t.slots.default ? typeof e == "string" || !e ? t.slots.default(n()) : { default: () => { var r, a; return (a = (r = t.slots).default) === null || a === void 0 ? void 0 : a.call(r, n()) } } : t.slots.default; function vr(e) { if (Bs(e)) return e._value } function Bs(e) { return "_value" in e } function Pa(e) { if (!mi(e)) return e; const t = e.target; if (sa(t.type) && Bs(t)) return vr(t); if (t.type === "file" && t.files) { const n = Array.from(t.files); return t.multiple ? n : n[0] } if (Ed(t)) return Array.from(t.options).filter(n => n.selected && !n.disabled).map(vr); if (Is(t)) { const n = Array.from(t.options).find(r => r.selected); return n ? vr(n) : t.value } return t.value } function Vs(e) { const t = {}; return Object.defineProperty(t, "_$$isNormalized", { value: !0, writable: !1, enumerable: !1, configurable: !1 }), e ? Qt(e) && e._$$isNormalized ? e : Qt(e) ? Object.keys(e).reduce((n, r) => { const a = Od(e[r]); return e[r] !== !1 && (n[r] = ho(a)), n }, t) : typeof e != "string" ? t : e.split("|").reduce((n, r) => { const a = Td(r); return a.name && (n[a.name] = ho(a.params)), n }, t) : t } function Od(e) { return e === !0 ? [] : Array.isArray(e) || Qt(e) ? e : [e] } function ho(e) { const t = n => typeof n == "string" && n[0] === "@" ? Ad(n.slice(1)) : n; return Array.isArray(e) ? e.map(t) : e instanceof RegExp ? [e] : Object.keys(e).reduce((n, r) => (n[r] = t(e[r]), n), {}) } const Td = e => { let t = []; const n = e.split(":")[0]; return e.includes(":") && (t = e.split(":").slice(1).join(":").split(",")), { name: n, params: t } }; function Ad(e) { const t = n => rt(n, e) || n[e]; return t.__locatorRef = e, t } function Dd(e) { return Array.isArray(e) ? e.filter(Dr) : Et(e).filter(t => Dr(e[t])).map(t => e[t]) } const Md = { generateMessage: ({ field: e }) => `${e} is not valid.`, bails: !0, validateOnBlur: !0, validateOnChange: !0, validateOnInput: !1, validateOnModelUpdate: !0 }; let Pd = Object.assign({}, Md); const Ht = () => Pd; async function Hs(e, t, n = {}) { const r = n == null ? void 0 : n.bails, a = { name: (n == null ? void 0 : n.name) || "{field}", rules: t, label: n == null ? void 0 : n.label, bails: r ?? !0, formData: (n == null ? void 0 : n.values) || {} }, o = (await Nd(a, e)).errors; return { errors: o, valid: !o.length } } async function Nd(e, t) { if (hn(e.rules) || Ma(e.rules)) return Id(t, e.rules); if (Je(e.rules) || Array.isArray(e.rules)) { const o = { field: e.label || e.name, name: e.name, label: e.label, form: e.formData, value: t }, s = Array.isArray(e.rules) ? e.rules : [e.rules], l = s.length, u = []; for (let c = 0; c < l; c++) { const d = s[c], m = await d(t, o); if (typeof m != "string" && m) continue; const b = typeof m == "string" ? m : qs(o); if (u.push(b), e.bails) return { errors: u } } return { errors: u } } const n = Object.assign(Object.assign({}, e), { rules: Vs(e.rules) }), r = [], a = Object.keys(n.rules), i = a.length; for (let o = 0; o < i; o++) { const s = a[o], l = await $d(n, t, { name: s, params: n.rules[s] }); if (l.error && (r.push(l.error), e.bails)) return { errors: r } } return { errors: r } } function Ld(e) { return !!e && e.name === "ValidationError" } function zs(e) { return { __type: "VVTypedSchema", async parse(n) { var r; try { return { output: await e.validate(n, { abortEarly: !1 }), errors: [] } } catch (a) { if (!Ld(a)) throw a; if (!(!((r = a.inner) === null || r === void 0) && r.length) && a.errors.length) return { errors: [{ path: a.path, errors: a.errors }] }; const i = a.inner.reduce((o, s) => { const l = s.path || ""; return o[l] || (o[l] = { errors: [], path: l }), o[l].errors.push(...s.errors), o }, {}); return { errors: Object.values(i) } } } } } async function Id(e, t) { const r = await (hn(t) ? t : zs(t)).parse(e), a = []; for (const i of r.errors) i.errors.length && a.push(...i.errors); return { errors: a } } async function $d(e, t, n) { const r = wd(n.name); if (!r) throw new Error(`No such validator '${n.name}' exists.`); const a = Rd(n.params, e.formData), i = { field: e.label || e.name, name: e.name, label: e.label, value: t, form: e.formData, rule: Object.assign(Object.assign({}, n), { params: a }) }, o = await r(t, a, i); return typeof o == "string" ? { error: o } : { error: o ? void 0 : qs(i) } } function qs(e) { const t = Ht().generateMessage; return t ? t(e) : "Field is invalid" } function Rd(e, t) { const n = r => Dr(r) ? r(t) : r; return Array.isArray(e) ? e.map(n) : Object.keys(e).reduce((r, a) => (r[a] = n(e[a]), r), {}) } async function Bd(e, t) { const r = await (hn(e) ? e : zs(e)).parse(t), a = {}, i = {}; for (const o of r.errors) { const s = o.errors, l = (o.path || "").replace(/\["(\d+)"\]/g, (u, c) => `[${c}]`); a[l] = { valid: !s.length, errors: s }, s.length && (i[l] = s[0]) } return { valid: !r.errors.length, results: a, errors: i, values: r.value } } async function Vd(e, t, n) { const a = Et(e).map(async u => { var c, d, m; const g = (c = n == null ? void 0 : n.names) === null || c === void 0 ? void 0 : c[u], b = await Hs(rt(t, u), e[u], { name: (g == null ? void 0 : g.name) || u, label: g == null ? void 0 : g.label, values: t, bails: (m = (d = n == null ? void 0 : n.bailsMap) === null || d === void 0 ? void 0 : d[u]) !== null && m !== void 0 ? m : !0 }); return Object.assign(Object.assign({}, b), { path: u }) }); let i = !0; const o = await Promise.all(a), s = {}, l = {}; for (const u of o) s[u.path] = { valid: u.valid, errors: u.errors }, u.valid || (i = !1, l[u.path] = u.errors[0]); return { valid: i, results: s, errors: l } } let vo = 0; function Hd(e, t) { const { value: n, initialValue: r, setInitialValue: a } = zd(e, t.modelValue, t.form); if (!t.form) { let m = function (g) { var b; "value" in g && (n.value = g.value), "errors" in g && u(g.errors), "touched" in g && (d.touched = (b = g.touched) !== null && b !== void 0 ? b : d.touched), "initialValue" in g && a(g.initialValue) }; const { errors: l, setErrors: u } = Kd(), c = vo >= Number.MAX_SAFE_INTEGER ? 0 : ++vo, d = Yd(n, r, l); return { id: c, path: e, value: n, initialValue: r, meta: d, flags: { pendingUnmount: { [c]: !1 } }, errors: l, setState: m } } const i = t.form.createPathState(e, { bails: t.bails, label: t.label, type: t.type, validate: t.validate }), o = ee(() => i.errors); function s(l) { var u, c, d; "value" in l && (n.value = l.value), "errors" in l && ((u = t.form) === null || u === void 0 || u.setFieldError(A(e), l.errors)), "touched" in l && ((c = t.form) === null || c === void 0 || c.setFieldTouched(A(e), (d = l.touched) !== null && d !== void 0 ? d : !1)), "initialValue" in l && a(l.initialValue) } return { id: Array.isArray(i.id) ? i.id[i.id.length - 1] : i.id, path: e, value: n, errors: o, meta: i, initialValue: r, flags: i.__flags, setState: s } } function zd(e, t, n) { const r = oe(A(t)); function a() { return n ? rt(n.initialValues.value, A(e), A(r)) : A(r) } function i(u) { if (!n) { r.value = u; return } n.stageInitialValue(A(e), u, !0) } const o = ee(a); if (!n) return { value: oe(a()), initialValue: o, setInitialValue: i }; const s = qd(t, n, o, e); return n.stageInitialValue(A(e), s, !0), { value: ee({ get() { return rt(n.values, A(e)) }, set(u) { n.setFieldValue(A(e), u) } }), initialValue: o, setInitialValue: i } } function qd(e, t, n, r) { return Be(e) ? A(e) : e !== void 0 ? e : rt(t.values, A(r), A(n)) } function Yd(e, t, n) { const r = mn({ touched: !1, pending: !1, valid: !0, validated: !!A(n).length, initialValue: ee(() => A(t)), dirty: ee(() => !tt(A(e), A(t))) }); return ut(n, a => { r.valid = !a.length }, { immediate: !0, flush: "sync" }), r } function Kd() { const e = oe([]); return { errors: e, setErrors: t => { e.value = Pr(t) } } } function Wd(e, t, n) { return sa(n == null ? void 0 : n.type) ? Xd(e, t, n) : Ys(e, t, n) } function Ys(e, t, n) { const { initialValue: r, validateOnMount: a, bails: i, type: o, checkedValue: s, label: l, validateOnValueUpdate: u, uncheckedValue: c, controlled: d, keepValueOnUnmount: m, modelPropName: g, syncVModel: b, form: U } = Gd(n), P = d ? Rs(nr) : void 0, S = U || P, W = Sd(e), q = ee(() => { if (A(S == null ? void 0 : S.schema)) return; const ue = A(t); return Ma(ue) || hn(ue) || Je(ue) || Array.isArray(ue) ? ue : Vs(ue) }), { id: E, value: D, initialValue: L, meta: B, setState: J, errors: ve, flags: k } = Hd(W, { modelValue: r, form: S, bails: i, label: l, type: o, validate: q.value ? X : void 0 }), G = ee(() => ve.value[0]); b && Zd({ value: D, prop: g, handleChange: Y }); const pe = () => { B.touched = !0 }; async function ae(I) { var ue, ke; return S != null && S.validateSchema ? (ue = (await S.validateSchema(I)).results[A(W)]) !== null && ue !== void 0 ? ue : { valid: !0, errors: [] } : q.value ? Hs(D.value, q.value, { name: A(W), label: A(l), values: (ke = S == null ? void 0 : S.values) !== null && ke !== void 0 ? ke : {}, bails: i }) : { valid: !0, errors: [] } } const ie = Mr(async () => (B.pending = !0, B.validated = !0, ae("validated-only")), I => { if (!k.pendingUnmount[je.id]) return J({ errors: I.errors }), B.pending = !1, B.valid = I.valid, I }), re = Mr(async () => ae("silent"), I => (B.valid = I.valid, I)); function X(I) { return (I == null ? void 0 : I.mode) === "silent" ? re() : ie() } function Y(I, ue = !0) { const ke = Pa(I); Me(ke, ue) } Za(() => { if (a) return ie(); (!S || !S.validateSchema) && re() }); function z(I) { B.touched = I } function Te(I) { var ue; const ke = I && "value" in I ? I.value : L.value; J({ value: $e(ke), initialValue: $e(ke), touched: (ue = I == null ? void 0 : I.touched) !== null && ue !== void 0 ? ue : !1, errors: (I == null ? void 0 : I.errors) || [] }), B.pending = !1, B.validated = !1, re() } function Me(I, ue = !0) { if (D.value = I, !ue) { re(); return } (ue ? ie : re)() } function Ae(I) { J({ errors: Array.isArray(I) ? I : [I] }) } const Ee = ee({ get() { return D.value }, set(I) { Me(I, u) } }), je = { id: E, name: W, label: l, value: Ee, meta: B, errors: ve, errorMessage: G, type: o, checkedValue: s, uncheckedValue: c, bails: i, keepValueOnUnmount: m, resetField: Te, handleReset: () => Te(), validate: X, handleChange: Y, handleBlur: pe, setState: J, setTouched: z, setErrors: Ae, setValue: Me }; if (li(Fd, je), Be(t) && typeof A(t) != "function" && ut(t, (I, ue) => { tt(I, ue) || (B.validated ? ie() : re()) }, { deep: !0 }), !S) return je; const Ie = ee(() => { const I = q.value; return !I || Je(I) || Ma(I) || hn(I) || Array.isArray(I) ? {} : Object.keys(I).reduce((ue, ke) => { const se = Dd(I[ke]).map(fe => fe.__locatorRef).reduce((fe, De) => { const Ye = rt(S.values, De) || S.values[De]; return Ye !== void 0 && (fe[De] = Ye), fe }, {}); return Object.assign(ue, se), ue }, {}) }); return ut(Ie, (I, ue) => { if (!Object.keys(I).length) return; !tt(I, ue) && (B.validated ? ie() : re()) }), vs(() => { var I; const ue = (I = A(je.keepValueOnUnmount)) !== null && I !== void 0 ? I : A(S.keepValuesOnUnmount), ke = Mt(W); if (ue || !S || k.pendingUnmount[je.id]) { S == null || S.removePathState(ke, E); return } k.pendingUnmount[je.id] = !0; const se = S.getPathState(ke); if (Array.isArray(se == null ? void 0 : se.id) && (se != null && se.multiple) ? se != null && se.id.includes(je.id) : (se == null ? void 0 : se.id) === je.id) { if (se != null && se.multiple && Array.isArray(se.value)) { const De = se.value.findIndex(Ye => tt(Ye, A(je.checkedValue))); if (De > -1) { const Ye = [...se.value]; Ye.splice(De, 1), S.setFieldValue(ke, Ye) } Array.isArray(se.id) && se.id.splice(se.id.indexOf(je.id), 1) } else S.unsetPathValue(Mt(W)); S.removePathState(ke, E) } }), je } function Gd(e) { var t; const n = () => ({ initialValue: void 0, validateOnMount: !1, bails: !0, label: void 0, validateOnValueUpdate: !0, keepValueOnUnmount: void 0, modelPropName: "modelValue", syncVModel: !0, controlled: !0 }), a = ((t = e == null ? void 0 : e.syncVModel) !== null && t !== void 0 ? t : !0) && !("initialValue" in (e || {})) ? Nr(di(), (e == null ? void 0 : e.modelPropName) || "modelValue") : e == null ? void 0 : e.initialValue; if (!e) return Object.assign(Object.assign({}, n()), { initialValue: a }); const i = "valueProp" in e ? e.valueProp : e.checkedValue, o = "standalone" in e ? !e.standalone : e.controlled; return Object.assign(Object.assign(Object.assign({}, n()), e || {}), { initialValue: a, controlled: o ?? !0, checkedValue: i }) } function Xd(e, t, n) { const r = n != null && n.standalone ? void 0 : Rs(nr), a = n == null ? void 0 : n.checkedValue, i = n == null ? void 0 : n.uncheckedValue; function o(s) { const l = s.handleChange, u = ee(() => { const d = A(s.value), m = A(a); return Array.isArray(d) ? d.findIndex(g => tt(g, m)) >= 0 : tt(m, d) }); function c(d, m = !0) { var g; if (u.value === ((g = d == null ? void 0 : d.target) === null || g === void 0 ? void 0 : g.checked)) { m && s.validate(); return } const b = Mt(e), U = r == null ? void 0 : r.getPathState(b), P = Pa(d); let S; r && (U != null && U.multiple) && U.type === "checkbox" ? S = fo(rt(r.values, b) || [], P, void 0) : S = fo(A(s.value), A(a), A(i)), l(S, m) } return Object.assign(Object.assign({}, s), { checked: u, checkedValue: a, uncheckedValue: i, handleChange: c }) } return o(Ys(e, t, n)) } function Zd({ prop: e, value: t, handleChange: n }) { const r = di(); if (!r) return; const a = e || "modelValue", i = `update:${a}`; a in r.props && (ut(t, o => { tt(o, Nr(r, a)) || r.emit(i, o) }), ut(() => Nr(r, a), o => { if (o === Da && t.value === void 0) return; const s = o === Da ? void 0 : o; tt(s, Cd(t.value, r.props.modelModifiers)) || n(s) })) } function Nr(e, t) { if (e) return e.props[t] } const Qd = Nt({ name: "Field", inheritAttrs: !1, props: { as: { type: [String, Object], default: void 0 }, name: { type: String, required: !0 }, rules: { type: [Object, String, Function], default: void 0 }, validateOnMount: { type: Boolean, default: !1 }, validateOnBlur: { type: Boolean, default: void 0 }, validateOnChange: { type: Boolean, default: void 0 }, validateOnInput: { type: Boolean, default: void 0 }, validateOnModelUpdate: { type: Boolean, default: void 0 }, bails: { type: Boolean, default: () => Ht().bails }, label: { type: String, default: void 0 }, uncheckedValue: { type: null, default: void 0 }, modelValue: { type: null, default: Da }, modelModifiers: { type: null, default: () => ({}) }, "onUpdate:modelValue": { type: null, default: void 0 }, standalone: { type: Boolean, default: !1 }, keepValue: { type: Boolean, default: void 0 } }, setup(e, t) { const n = Vt(e, "rules"), r = Vt(e, "name"), a = Vt(e, "label"), i = Vt(e, "uncheckedValue"), o = Vt(e, "keepValue"), { errors: s, value: l, errorMessage: u, validate: c, handleChange: d, handleBlur: m, setTouched: g, resetField: b, handleReset: U, meta: P, checked: S, setErrors: W } = Wd(r, n, { validateOnMount: e.validateOnMount, bails: e.bails, standalone: e.standalone, type: t.attrs.type, initialValue: ef(e, t), checkedValue: t.attrs.value, uncheckedValue: i, label: a, validateOnValueUpdate: !1, keepValueOnUnmount: o }), q = function (ve, k = !0) { d(ve, k), t.emit("update:modelValue", l.value) }, E = ee(() => { const { validateOnInput: J, validateOnChange: ve, validateOnBlur: k, validateOnModelUpdate: G } = Jd(e); function pe(X) { m(X), Je(t.attrs.onBlur) && t.attrs.onBlur(X), k && c() } function ae(X) { q(X, J), Je(t.attrs.onInput) && t.attrs.onInput(X) } function ie(X) { q(X, ve), Je(t.attrs.onChange) && t.attrs.onChange(X) } const re = { name: e.name, onBlur: pe, onInput: ae, onChange: ie }; return re["onUpdate:modelValue"] = X => q(X, G), re }), D = ee(() => { const J = Object.assign({}, E.value); sa(t.attrs.type) && S && (J.checked = S.value); const ve = po(e, t); return jd(ve, t.attrs) && (J.value = l.value), J }), L = ee(() => Object.assign(Object.assign({}, E.value), { modelValue: l.value })); function B() { return { field: D.value, componentField: L.value, value: l.value, meta: P, errors: s.value, errorMessage: u.value, validate: c, resetField: b, handleChange: q, handleInput: J => q(J, !1), handleReset: U, handleBlur: m, setTouched: g, setErrors: W } } return t.expose({ setErrors: W, setTouched: g, reset: b, validate: c, handleChange: d }), () => { const J = Qa(po(e, t)), ve = vi(J, t, B); return J ? Aa(J, Object.assign(Object.assign({}, t.attrs), D.value), ve) : ve } } }); function po(e, t) { let n = e.as || ""; return !e.as && !t.slots.default && (n = "input"), n } function Jd(e) { var t, n, r, a; const { validateOnInput: i, validateOnChange: o, validateOnBlur: s, validateOnModelUpdate: l } = Ht(); return { validateOnInput: (t = e.validateOnInput) !== null && t !== void 0 ? t : i, validateOnChange: (n = e.validateOnChange) !== null && n !== void 0 ? n : o, validateOnBlur: (r = e.validateOnBlur) !== null && r !== void 0 ? r : s, validateOnModelUpdate: (a = e.validateOnModelUpdate) !== null && a !== void 0 ? a : l } } function ef(e, t) { return sa(t.attrs.type) ? so(e, "modelValue") ? e.modelValue : void 0 : so(e, "modelValue") ? e.modelValue : t.attrs.value } const ha = Qd; let tf = 0; const zn = ["bails", "fieldsCount", "id", "multiple", "type", "validate"]; function Ks(e) { const t = A(e == null ? void 0 : e.initialValues) || {}, n = A(e == null ? void 0 : e.validationSchema); return n && hn(n) && Je(n.cast) ? $e(n.cast(t) || {}) : $e(t) } function nf(e) { var t; const n = tf++; let r = 0; const a = oe(!1), i = oe(!1), o = oe(0), s = [], l = mn(Ks(e)), u = oe([]), c = oe({}); function d(p, v) { const y = ie(p); if (!y) { typeof p == "string" && (c.value[p] = Pr(v)); return } y.errors = Pr(v), y.valid = !y.errors.length } function m(p) { Et(p).forEach(v => { d(v, p[v]) }) } e != null && e.initialErrors && m(e.initialErrors); const g = ee(() => { const p = u.value.reduce((v, y) => (y.errors.length && (v[y.path] = y.errors), v), {}); return Object.assign(Object.assign({}, c.value), p) }), b = ee(() => Et(g.value).reduce((p, v) => { const y = g.value[v]; return y != null && y.length && (p[v] = y[0]), p }, {})), U = ee(() => u.value.reduce((p, v) => (p[v.path] = { name: v.path || "", label: v.label || "" }, p), {})), P = ee(() => u.value.reduce((p, v) => { var y; return p[v.path] = (y = v.bails) !== null && y !== void 0 ? y : !0, p }, {})), S = Object.assign({}, (e == null ? void 0 : e.initialErrors) || {}), W = (t = e == null ? void 0 : e.keepValuesOnUnmount) !== null && t !== void 0 ? t : !1, { initialValues: q, originalInitialValues: E, setInitialValues: D } = rf(u, l, e), L = af(u, l, E, b), B = ee(() => u.value.reduce((p, v) => { const y = rt(l, v.path); return tn(p, v.path, y), p }, {})), J = e == null ? void 0 : e.validationSchema; function ve(p, v) { var y, C; const K = ee(() => rt(q.value, Mt(p))), H = u.value.find(nt => nt.path === A(p)); if (H) { ((v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "radio") && (H.multiple = !0); const nt = r++; return Array.isArray(H.id) ? H.id.push(nt) : H.id = [H.id, nt], H.fieldsCount++, H.__flags.pendingUnmount[nt] = !1, H } const Z = ee(() => rt(l, Mt(p))), ce = Mt(p), ge = r++, Oe = mn({ id: ge, path: p, touched: !1, pending: !1, valid: !0, validated: !!(!((y = S[ce]) === null || y === void 0) && y.length), initialValue: K, errors: cu([]), bails: (C = v == null ? void 0 : v.bails) !== null && C !== void 0 ? C : !1, label: v == null ? void 0 : v.label, type: (v == null ? void 0 : v.type) || "default", value: Z, multiple: !1, __flags: { pendingUnmount: { [ge]: !1 } }, fieldsCount: 1, validate: v == null ? void 0 : v.validate, dirty: ee(() => !tt(A(Z), A(K))) }); return u.value.push(Oe), b.value[ce] && !S[ce] && sn(() => { w(ce) }), Be(p) && ut(p, nt => { const Ot = $e(Z.value); sn(() => { tn(l, nt, Ot) }) }), Oe } const k = mo(N, 5), G = mo(N, 5), pe = Mr(async p => await p === "silent" ? k() : G(), (p, [v]) => { const y = Et(Ie.errorBag.value); return [...new Set([...Et(p.results), ...u.value.map(K => K.path), ...y])].sort().reduce((K, H) => { const Z = H, ce = ie(Z) || re(Z), ge = (p.results[Z] || { errors: [] }).errors, Oe = { errors: ge, valid: !ge.length }; return K.results[Z] = Oe, Oe.valid || (K.errors[Z] = Oe.errors[0]), ce && c.value[Z] && delete c.value[Z], ce ? (ce.valid = Oe.valid, v === "silent" || v === "validated-only" && !ce.validated || d(ce, Oe.errors), K) : (d(Z, ge), K) }, { valid: p.valid, results: {}, errors: {} }) }); function ae(p) { u.value.forEach(p) } function ie(p) { return typeof p == "string" ? u.value.find(y => y.path === p) : p } function re(p) { return u.value.filter(y => p.startsWith(y.path)).reduce((y, C) => y ? C.path.length > y.path.length ? C : y : C, void 0) } let X = [], Y; function z(p) { return X.push(p), Y || (Y = sn(() => { [...X].sort().reverse().forEach(y => { co(l, y) }), X = [], Y = null })), Y } function Te(p) { return function (y, C) { return function (H) { return H instanceof Event && (H.preventDefault(), H.stopPropagation()), ae(Z => Z.touched = !0), a.value = !0, o.value++, h().then(Z => { const ce = $e(l); if (Z.valid && typeof y == "function") { const ge = $e(B.value); let Oe = p ? ge : ce; return Z.values && (Oe = Z.values), y(Oe, { evt: H, controlledValues: ge, setErrors: m, setFieldError: d, setTouched: De, setFieldTouched: fe, setValues: ue, setFieldValue: I, resetForm: f, resetField: Ye }) } !Z.valid && typeof C == "function" && C({ values: ce, evt: H, errors: Z.errors, results: Z.results }) }).then(Z => (a.value = !1, Z), Z => { throw a.value = !1, Z }) } } } const Ae = Te(!1); Ae.withControlled = Te(!0); function Ee(p, v) { const y = u.value.findIndex(K => K.path === p), C = u.value[y]; if (!(y === -1 || !C)) { if (C.multiple && C.fieldsCount && C.fieldsCount--, Array.isArray(C.id)) { const K = C.id.indexOf(v); K >= 0 && C.id.splice(K, 1), delete C.__flags.pendingUnmount[v] } (!C.multiple || C.fieldsCount <= 0) && (u.value.splice(y, 1), _(p)) } } function je(p) { return ae(v => { v.path.startsWith(p) && Et(v.__flags.pendingUnmount).forEach(y => { v.__flags.pendingUnmount[y] = !0 }) }) } const Ie = { formId: n, values: l, controlledValues: B, errorBag: g, errors: b, schema: J, submitCount: o, meta: L, isSubmitting: a, isValidating: i, fieldArrays: s, keepValuesOnUnmount: W, validateSchema: A(J) ? pe : void 0, validate: h, setFieldError: d, validateField: w, setFieldValue: I, setValues: ue, setErrors: m, setFieldTouched: fe, setTouched: De, resetForm: f, resetField: Ye, handleSubmit: Ae, stageInitialValue: x, unsetInitialValue: _, setFieldInitialValue: O, useFieldModel: se, createPathState: ve, getPathState: ie, unsetPathValue: z, removePathState: Ee, initialValues: q, getAllPathStates: () => u.value, markForUnmount: je }; function I(p, v) { const y = $e(v), C = typeof p == "string" ? p : p.path; ie(C) || ve(C), tn(l, C, y) } function ue(p) { Ls(l, p), s.forEach(v => v && v.reset()) } function ke(p) { const v = ie(A(p)) || ve(p); return ee({ get() { return v.value }, set(y) { const C = A(p); I(C, y), v.validated = !0, v.pending = !0, w(C).then(() => { v.pending = !1 }) } }) } function se(p) { return Array.isArray(p) ? p.map(ke) : ke(p) } function fe(p, v) { const y = ie(p); y && (y.touched = v) } function De(p) { Et(p).forEach(v => { fe(v, !!p[v]) }) } function Ye(p, v) { var y; const C = v && "value" in v ? v.value : rt(q.value, p); O(p, $e(C)), I(p, C), fe(p, (y = v == null ? void 0 : v.touched) !== null && y !== void 0 ? y : !1), d(p, (v == null ? void 0 : v.errors) || []) } function f(p) { const v = p != null && p.values ? p.values : E.value; D(v), ue(v), ae(y => { var C; y.validated = !1, y.touched = ((C = p == null ? void 0 : p.touched) === null || C === void 0 ? void 0 : C[y.path]) || !1, I(y.path, rt(v, y.path)), d(y.path, void 0) }), m((p == null ? void 0 : p.errors) || {}), o.value = (p == null ? void 0 : p.submitCount) || 0, sn(() => { h({ mode: "silent" }) }) } async function h(p) { const v = (p == null ? void 0 : p.mode) || "force"; if (v === "force" && ae(H => H.validated = !0), Ie.validateSchema) return Ie.validateSchema(v); i.value = !0; const y = await Promise.all(u.value.map(H => H.validate ? H.validate(p).then(Z => ({ key: H.path, valid: Z.valid, errors: Z.errors })) : Promise.resolve({ key: H.path, valid: !0, errors: [] }))); i.value = !1; const C = {}, K = {}; for (const H of y) C[H.key] = { valid: H.valid, errors: H.errors }, H.errors.length && (K[H.key] = H.errors[0]); return { valid: y.every(H => H.valid), results: C, errors: K } } async function w(p) { const v = ie(p); if (v && (v.validated = !0), J) { const { results: y } = await pe("validated-only"); return y[p] || { errors: [], valid: !0 } } return v != null && v.validate ? v.validate() : Promise.resolve({ errors: [], valid: !0 }) } function _(p) { co(q.value, p) } function x(p, v, y = !1) { O(p, v), tn(l, p, v), y && !(e != null && e.initialValues) && tn(E.value, p, $e(v)) } function O(p, v) { tn(q.value, p, $e(v)) } async function N() { const p = A(J); if (!p) return { valid: !0, results: {}, errors: {} }; i.value = !0; const v = Ma(p) || hn(p) ? await Bd(p, l) : await Vd(p, l, { names: U.value, bailsMap: P.value }); return i.value = !1, v } const T = Ae((p, { evt: v }) => { $s(v) && v.target.submit() }); Za(() => { if (e != null && e.initialErrors && m(e.initialErrors), e != null && e.initialTouched && De(e.initialTouched), e != null && e.validateOnMount) { h(); return } Ie.validateSchema && Ie.validateSchema("silent") }), Be(J) && ut(J, () => { var p; (p = Ie.validateSchema) === null || p === void 0 || p.call(Ie, "validated-only") }), li(nr, Ie); function M(p, v) { const y = ie(Mt(p)) || ve(p), C = () => Je(v) ? v(Hn(y, zn)) : v || {}; function K() { var ce; y.touched = !0, ((ce = C().validateOnBlur) !== null && ce !== void 0 ? ce : Ht().validateOnBlur) && w(y.path) } function H(ce) { var ge; I(y.path, ce), ((ge = C().validateOnModelUpdate) !== null && ge !== void 0 ? ge : Ht().validateOnModelUpdate) && w(y.path) } return ee(() => { const ce = { modelValue: y.value, "onUpdate:modelValue": H, onBlur: K }; return Je(v) ? Object.assign(Object.assign({}, ce), v(y).props || {}) : v != null && v.mapProps ? Object.assign(Object.assign({}, ce), v.mapProps(Hn(y, zn))) : ce }) } function j(p, v) { const y = ie(Mt(p)) || ve(p), C = () => Je(v) ? v(Hn(y, zn)) : v || {}; function K() { var ge; y.touched = !0, ((ge = C().validateOnBlur) !== null && ge !== void 0 ? ge : Ht().validateOnBlur) && w(y.path) } function H(ge) { var Oe; const nt = Pa(ge); I(y.path, nt), ((Oe = C().validateOnInput) !== null && Oe !== void 0 ? Oe : Ht().validateOnInput) && w(y.path) } function Z(ge) { var Oe; const nt = Pa(ge); I(y.path, nt), ((Oe = C().validateOnChange) !== null && Oe !== void 0 ? Oe : Ht().validateOnChange) && w(y.path) } return ee(() => { const ge = { value: y.value, onChange: Z, onInput: H, onBlur: K }; return Je(v) ? Object.assign(Object.assign({}, ge), v(Hn(y, zn)).attrs || {}) : v != null && v.mapAttrs ? Object.assign(Object.assign({}, ge), v.mapAttrs(Hn(y, zn))) : ge }) } return Object.assign(Object.assign({}, Ie), { handleReset: () => f(), submitForm: T, defineComponentBinds: M, defineInputBinds: j }) } function af(e, t, n, r) { const a = { touched: "some", pending: "some", valid: "every" }, i = ee(() => !tt(t, A(n))); function o() { const l = e.value; return Et(a).reduce((u, c) => { const d = a[c]; return u[c] = l[d](m => m[c]), u }, {}) } const s = mn(o()); return Fa(() => { const l = o(); s.touched = l.touched, s.valid = l.valid, s.pending = l.pending }), ee(() => Object.assign(Object.assign({ initialValues: A(n) }, s), { valid: s.valid && !Et(r.value).length, dirty: i.value })) } function rf(e, t, n) { const r = Ks(n), a = n == null ? void 0 : n.initialValues, i = oe(r), o = oe($e(r)); function s(l, u = !1) { i.value = $e(l), o.value = $e(l), u && e.value.forEach(c => { if (c.touched) return; const m = rt(i.value, c.path); tn(t, c.path, $e(m)) }) } return Be(a) && ut(a, l => { l && s(l, !0) }, { deep: !0 }), { initialValues: i, originalInitialValues: o, setInitialValues: s } } const of = Nt({ name: "Form", inheritAttrs: !1, props: { as: { type: String, default: "form" }, validationSchema: { type: Object, default: void 0 }, initialValues: { type: Object, default: void 0 }, initialErrors: { type: Object, default: void 0 }, initialTouched: { type: Object, default: void 0 }, validateOnMount: { type: Boolean, default: !1 }, onSubmit: { type: Function, default: void 0 }, onInvalidSubmit: { type: Function, default: void 0 }, keepValues: { type: Boolean, default: !1 } }, setup(e, t) { const n = Vt(e, "initialValues"), r = Vt(e, "validationSchema"), a = Vt(e, "keepValues"), { errors: i, errorBag: o, values: s, meta: l, isSubmitting: u, isValidating: c, submitCount: d, controlledValues: m, validate: g, validateField: b, handleReset: U, resetForm: P, handleSubmit: S, setErrors: W, setFieldError: q, setFieldValue: E, setValues: D, setFieldTouched: L, setTouched: B, resetField: J } = nf({ validationSchema: r.value ? r : void 0, initialValues: n, initialErrors: e.initialErrors, initialTouched: e.initialTouched, validateOnMount: e.validateOnMount, keepValuesOnUnmount: a }), ve = S((Y, { evt: z }) => { $s(z) && z.target.submit() }, e.onInvalidSubmit), k = e.onSubmit ? S(e.onSubmit, e.onInvalidSubmit) : ve; function G(Y) { mi(Y) && Y.preventDefault(), U(), typeof t.attrs.onReset == "function" && t.attrs.onReset() } function pe(Y, z) { return S(typeof Y == "function" && !z ? Y : z, e.onInvalidSubmit)(Y) } function ae() { return $e(s) } function ie() { return $e(l.value) } function re() { return $e(i.value) } function X() { return { meta: l.value, errors: i.value, errorBag: o.value, values: s, isSubmitting: u.value, isValidating: c.value, submitCount: d.value, controlledValues: m.value, validate: g, validateField: b, handleSubmit: pe, handleReset: U, submitForm: ve, setErrors: W, setFieldError: q, setFieldValue: E, setValues: D, setFieldTouched: L, setTouched: B, resetForm: P, resetField: J, getValues: ae, getMeta: ie, getErrors: re } } return t.expose({ setFieldError: q, setErrors: W, setFieldValue: E, setValues: D, setFieldTouched: L, setTouched: B, resetForm: P, validate: g, validateField: b, resetField: J, getValues: ae, getMeta: ie, getErrors: re }), function () { const z = e.as === "form" ? e.as : Qa(e.as), Te = vi(z, t, X); if (!e.as) return Te; const Me = e.as === "form" ? { novalidate: !0 } : {}; return Aa(z, Object.assign(Object.assign(Object.assign({}, Me), t.attrs), { onSubmit: k, onReset: G }), Te) } } }), sf = of, lf = Nt({ name: "ErrorMessage", props: { as: { type: String, default: void 0 }, name: { type: String, required: !0 } }, setup(e, t) { const n = Sn(nr, void 0), r = ee(() => n == null ? void 0 : n.errors.value[e.name]); function a() { return { message: r.value } } return () => { if (!r.value) return; const i = e.as ? Qa(e.as) : e.as, o = vi(i, t, a), s = Object.assign({ role: "alert" }, t.attrs); return !i && (Array.isArray(o) || !o) && (o != null && o.length) ? o : (Array.isArray(o) || !o) && !(o != null && o.length) ? Aa(i || "span", s, r.value) : Aa(i, s, o) } } }), va = lf; function gn(e) { this._maxSize = e, this.clear() } gn.prototype.clear = function () { this._size = 0, this._values = Object.create(null) }; gn.prototype.get = function (e) { return this._values[e] }; gn.prototype.set = function (e, t) { return this._size >= this._maxSize && this.clear(), e in this._values || this._size++, this._values[e] = t }; var uf = /[^.^\]^[]+|(?=\[\]|\.\.)/g, Ws = /^\d+$/, cf = /^\d/, df = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, ff = /^\s*(['"]?)(.*?)(\1)\s*$/, pi = 512, go = new gn(pi), yo = new gn(pi), bo = new gn(pi), fn = { Cache: gn, split: Lr, normalizePath: pr, setter: function (e) { var t = pr(e); return yo.get(e) || yo.set(e, function (r, a) { for (var i = 0, o = t.length, s = r; i < o - 1;) { var l = t[i]; if (l === "__proto__" || l === "constructor" || l === "prototype") return r; s = s[t[i++]] } s[t[i]] = a }) }, getter: function (e, t) { var n = pr(e); return bo.get(e) || bo.set(e, function (a) { for (var i = 0, o = n.length; i < o;)if (a != null || !t) a = a[n[i++]]; else return; return a }) }, join: function (e) { return e.reduce(function (t, n) { return t + (gi(n) || Ws.test(n) ? "[" + n + "]" : (t ? "." : "") + n) }, "") }, forEach: function (e, t, n) { mf(Array.isArray(e) ? e : Lr(e), t, n) } }; function pr(e) { return go.get(e) || go.set(e, Lr(e).map(function (t) { return t.replace(ff, "$2") })) } function Lr(e) { return e.match(uf) || [""] } function mf(e, t, n) { var r = e.length, a, i, o, s; for (i = 0; i < r; i++)a = e[i], a && (pf(a) && (a = '"' + a + '"'), s = gi(a), o = !s && /^\d+$/.test(a), t.call(n, a, s, o, i, e)) } function gi(e) { return typeof e == "string" && e && ["'", '"'].indexOf(e.charAt(0)) !== -1 } function hf(e) { return e.match(cf) && !e.match(Ws) } function vf(e) { return df.test(e) } function pf(e) { return !gi(e) && (hf(e) || vf(e)) } const gf = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g, rr = e => e.match(gf) || [], ir = e => e[0].toUpperCase() + e.slice(1), yi = (e, t) => rr(e).join(t).toLowerCase(), Gs = e => rr(e).reduce((t, n) => `${t}${t ? n[0].toUpperCase() + n.slice(1).toLowerCase() : n.toLowerCase()}`, ""), yf = e => ir(Gs(e)), bf = e => yi(e, "_"), wf = e => yi(e, "-"), Ff = e => ir(yi(e, " ")), Uf = e => rr(e).map(ir).join(" "); var gr = { words: rr, upperFirst: ir, camelCase: Gs, pascalCase: yf, snakeCase: bf, kebabCase: wf, sentenceCase: Ff, titleCase: Uf }, Na = {}, _f = { get exports() { return Na }, set exports(e) { Na = e } }; _f.exports = function (e) { return Xs(xf(e), e) }; Na.array = Xs; function Xs(e, t) { var n = e.length, r = new Array(n), a = {}, i = n, o = Ef(t), s = kf(e); for (t.forEach(function (u) { if (!s.has(u[0]) || !s.has(u[1])) throw new Error("Unknown node. There is an unknown node in the supplied edges.") }); i--;)a[i] || l(e[i], i, new Set); return r; function l(u, c, d) { if (d.has(u)) { var m; try { m = ", node was:" + JSON.stringify(u) } catch { m = "" } throw new Error("Cyclic dependency" + m) } if (!s.has(u)) throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(u)); if (!a[c]) { a[c] = !0; var g = o.get(u) || new Set; if (g = Array.from(g), c = g.length) { d.add(u); do { var b = g[--c]; l(b, s.get(b), d) } while (c); d.delete(u) } r[--n] = u } } } function xf(e) { for (var t = new Set, n = 0, r = e.length; n < r; n++) { var a = e[n]; t.add(a[0]), t.add(a[1]) } return Array.from(t) } function Ef(e) { for (var t = new Map, n = 0, r = e.length; n < r; n++) { var a = e[n]; t.has(a[0]) || t.set(a[0], new Set), t.has(a[1]) || t.set(a[1], new Set), t.get(a[0]).add(a[1]) } return t } function kf(e) { for (var t = new Map, n = 0, r = e.length; n < r; n++)t.set(e[n], n); return t } const jf = Object.prototype.toString, Cf = Error.prototype.toString, Sf = RegExp.prototype.toString, Of = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", Tf = /^Symbol\((.*)\)(.*)$/; function Af(e) { return e != +e ? "NaN" : e === 0 && 1 / e < 0 ? "-0" : "" + e } function wo(e, t = !1) { if (e == null || e === !0 || e === !1) return "" + e; const n = typeof e; if (n === "number") return Af(e); if (n === "string") return t ? `"${e}"` : e; if (n === "function") return "[Function " + (e.name || "anonymous") + "]"; if (n === "symbol") return Of.call(e).replace(Tf, "Symbol($1)"); const r = jf.call(e).slice(8, -1); return r === "Date" ? isNaN(e.getTime()) ? "" + e : e.toISOString(e) : r === "Error" || e instanceof Error ? "[" + Cf.call(e) + "]" : r === "RegExp" ? Sf.call(e) : null } function On(e, t) { let n = wo(e, t); return n !== null ? n : JSON.stringify(e, function (r, a) { let i = wo(this[r], t); return i !== null ? i : a }, 2) } function Zs(e) { return e == null ? [] : [].concat(e) } let Df = /\$\{\s*(\w+)\s*\}/g; class st extends Error { static formatError(t, n) { const r = n.label || n.path || "this"; return r !== n.path && (n = Object.assign({}, n, { path: r })), typeof t == "string" ? t.replace(Df, (a, i) => On(n[i])) : typeof t == "function" ? t(n) : t } static isError(t) { return t && t.name === "ValidationError" } constructor(t, n, r, a) { super(), this.value = void 0, this.path = void 0, this.type = void 0, this.errors = void 0, this.params = void 0, this.inner = void 0, this.name = "ValidationError", this.value = n, this.path = r, this.type = a, this.errors = [], this.inner = [], Zs(t).forEach(i => { st.isError(i) ? (this.errors.push(...i.errors), this.inner = this.inner.concat(i.inner.length ? i.inner : i)) : this.errors.push(i) }), this.message = this.errors.length > 1 ? `${this.errors.length} errors occurred` : this.errors[0], Error.captureStackTrace && Error.captureStackTrace(this, st) } } let At = { default: "${path} is invalid", required: "${path} is a required field", defined: "${path} must be defined", notNull: "${path} cannot be null", oneOf: "${path} must be one of the following values: ${values}", notOneOf: "${path} must not be one of the following values: ${values}", notType: ({ path: e, type: t, value: n, originalValue: r }) => { const a = r != null && r !== n ? ` (cast from the value \`${On(r, !0)}\`).` : "."; return t !== "mixed" ? `${e} must be a \`${t}\` type, but the final value was: \`${On(n, !0)}\`` + a : `${e} must match the configured type. The validated value was: \`${On(n, !0)}\`` + a } }, ft = { length: "${path} must be exactly ${length} characters", min: "${path} must be at least ${min} characters", max: "${path} must be at most ${max} characters", matches: '${path} must match the following: "${regex}"', email: "${path} must be a valid email", url: "${path} must be a valid URL", uuid: "${path} must be a valid UUID", trim: "${path} must be a trimmed string", lowercase: "${path} must be a lowercase string", uppercase: "${path} must be a upper case string" }, Mf = { min: "${path} must be greater than or equal to ${min}", max: "${path} must be less than or equal to ${max}", lessThan: "${path} must be less than ${less}", moreThan: "${path} must be greater than ${more}", positive: "${path} must be a positive number", negative: "${path} must be a negative number", integer: "${path} must be an integer" }, Ir = { min: "${path} field must be later than ${min}", max: "${path} field must be at earlier than ${max}" }, Pf = { isValue: "${path} field must be ${value}" }, $r = { noUnknown: "${path} field has unspecified keys: ${unknown}" }, Nf = { min: "${path} field must have at least ${min} items", max: "${path} field must have less than or equal to ${max} items", length: "${path} must have ${length} items" }; Object.assign(Object.create(null), { mixed: At, string: ft, number: Mf, date: Ir, object: $r, array: Nf, boolean: Pf }); const bi = e => e && e.__isYupSchema__; class La { static fromOptions(t, n) { if (!n.then && !n.otherwise) throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions"); let { is: r, then: a, otherwise: i } = n, o = typeof r == "function" ? r : (...s) => s.every(l => l === r); return new La(t, (s, l) => { var u; let c = o(...s) ? a : i; return (u = c == null ? void 0 : c(l)) != null ? u : l }) } constructor(t, n) { this.fn = void 0, this.refs = t, this.refs = t, this.fn = n } resolve(t, n) { let r = this.refs.map(i => i.getValue(n == null ? void 0 : n.value, n == null ? void 0 : n.parent, n == null ? void 0 : n.context)), a = this.fn(r, t, n); if (a === void 0 || a === t) return t; if (!bi(a)) throw new TypeError("conditions must return a schema object"); return a.resolve(n) } } const pa = { context: "$", value: "." }; class yn { constructor(t, n = {}) { if (this.key = void 0, this.isContext = void 0, this.isValue = void 0, this.isSibling = void 0, this.path = void 0, this.getter = void 0, this.map = void 0, typeof t != "string") throw new TypeError("ref must be a string, got: " + t); if (this.key = t.trim(), t === "") throw new TypeError("ref must be a non-empty string"); this.isContext = this.key[0] === pa.context, this.isValue = this.key[0] === pa.value, this.isSibling = !this.isContext && !this.isValue; let r = this.isContext ? pa.context : this.isValue ? pa.value : ""; this.path = this.key.slice(r.length), this.getter = this.path && fn.getter(this.path, !0), this.map = n.map } getValue(t, n, r) { let a = this.isContext ? r : this.isValue ? t : n; return this.getter && (a = this.getter(a || {})), this.map && (a = this.map(a)), a } cast(t, n) { return this.getValue(t, n == null ? void 0 : n.parent, n == null ? void 0 : n.context) } resolve() { return this } describe() { return { type: "ref", key: this.key } } toString() { return `Ref(${this.key})` } static isRef(t) { return t && t.__isYupRef } } yn.prototype.__isYupRef = !0; const un = e => e == null; function wn(e) { function t({ value: n, path: r = "", options: a, originalValue: i, schema: o }, s, l) { const { name: u, test: c, params: d, message: m, skipAbsent: g } = e; let { parent: b, context: U, abortEarly: P = o.spec.abortEarly } = a; function S(k) { return yn.isRef(k) ? k.getValue(n, b, U) : k } function W(k = {}) { const G = Object.assign({ value: n, originalValue: i, label: o.spec.label, path: k.path || r, spec: o.spec }, d, k.params); for (const ae of Object.keys(G)) G[ae] = S(G[ae]); const pe = new st(st.formatError(k.message || m, G), n, G.path, k.type || u); return pe.params = G, pe } const q = P ? s : l; let E = { path: r, parent: b, type: u, from: a.from, createError: W, resolve: S, options: a, originalValue: i, schema: o }; const D = k => { st.isError(k) ? q(k) : k ? l(null) : q(W()) }, L = k => { st.isError(k) ? q(k) : s(k) }, B = g && un(n); if (!a.sync) { try { Promise.resolve(B ? !0 : c.call(E, n, E)).then(D, L) } catch (k) { L(k) } return } let J; try { var ve; if (J = B ? !0 : c.call(E, n, E), typeof ((ve = J) == null ? void 0 : ve.then) == "function") throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`) } catch (k) { L(k); return } D(J) } return t.OPTIONS = e, t } function Lf(e, t, n, r = n) { let a, i, o; return t ? (fn.forEach(t, (s, l, u) => { let c = l ? s.slice(1, s.length - 1) : s; e = e.resolve({ context: r, parent: a, value: n }); let d = e.type === "tuple", m = u ? parseInt(c, 10) : 0; if (e.innerType || d) { if (d && !u) throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`); if (n && m >= n.length) throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `); a = n, n = n && n[m], e = d ? e.spec.types[m] : e.innerType } if (!u) { if (!e.fields || !e.fields[c]) throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`); a = n, n = n && n[c], e = e.fields[c] } i = c, o = l ? "[" + s + "]" : "." + s }), { schema: e, parent: a, parentPath: i }) : { parent: a, parentPath: t, schema: e } } class Ia extends Set { describe() { const t = []; for (const n of this.values()) t.push(yn.isRef(n) ? n.describe() : n); return t } resolveAll(t) { let n = []; for (const r of this.values()) n.push(t(r)); return n } clone() { return new Ia(this.values()) } merge(t, n) { const r = this.clone(); return t.forEach(a => r.add(a)), n.forEach(a => r.delete(a)), r } } function xn(e, t = new Map) { if (bi(e) || !e || typeof e != "object") return e; if (t.has(e)) return t.get(e); let n; if (e instanceof Date) n = new Date(e.getTime()), t.set(e, n); else if (e instanceof RegExp) n = new RegExp(e), t.set(e, n); else if (Array.isArray(e)) { n = new Array(e.length), t.set(e, n); for (let r = 0; r < e.length; r++)n[r] = xn(e[r], t) } else if (e instanceof Map) { n = new Map, t.set(e, n); for (const [r, a] of e.entries()) n.set(r, xn(a, t)) } else if (e instanceof Set) { n = new Set, t.set(e, n); for (const r of e) n.add(xn(r, t)) } else if (e instanceof Object) { n = {}, t.set(e, n); for (const [r, a] of Object.entries(e)) n[r] = xn(a, t) } else throw Error(`Unable to clone ${e}`); return n } class wt {
constructor(t) { this.type = void 0, this.deps = [], this.tests = void 0, this.transforms = void 0, this.conditions = [], this._mutate = void 0, this.internalTests = {}, this._whitelist = new Ia, this._blacklist = new Ia, this.exclusiveTests = Object.create(null), this._typeCheck = void 0, this.spec = void 0, this.tests = [], this.transforms = [], this.withMutation(() => { this.typeError(At.notType) }), this.type = t.type, this._typeCheck = t.check, this.spec = Object.assign({ strip: !1, strict: !1, abortEarly: !0, recursive: !0, nullable: !1, optional: !0, coerce: !0 }, t == null ? void 0 : t.spec), this.withMutation(n => { n.nonNullable() }) } get _type() { return this.type } clone(t) { if (this._mutate) return t && Object.assign(this.spec, t), this; const n = Object.create(Object.getPrototypeOf(this)); return n.type = this.type, n._typeCheck = this._typeCheck, n._whitelist = this._whitelist.clone(), n._blacklist = this._blacklist.clone(), n.internalTests = Object.assign({}, this.internalTests), n.exclusiveTests = Object.assign({}, this.exclusiveTests), n.deps = [...this.deps], n.conditions = [...this.conditions], n.tests = [...this.tests], n.transforms = [...this.transforms], n.spec = xn(Object.assign({}, this.spec, t)), n } label(t) { let n = this.clone(); return n.spec.label = t, n } meta(...t) { if (t.length === 0) return this.spec.meta; let n = this.clone(); return n.spec.meta = Object.assign(n.spec.meta || {}, t[0]), n } withMutation(t) { let n = this._mutate; this._mutate = !0; let r = t(this); return this._mutate = n, r } concat(t) { if (!t || t === this) return this; if (t.type !== this.type && this.type !== "mixed") throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`); let n = this, r = t.clone(); const a = Object.assign({}, n.spec, r.spec); return r.spec = a, r.internalTests = Object.assign({}, n.internalTests, r.internalTests), r._whitelist = n._whitelist.merge(t._whitelist, t._blacklist), r._blacklist = n._blacklist.merge(t._blacklist, t._whitelist), r.tests = n.tests, r.exclusiveTests = n.exclusiveTests, r.withMutation(i => { t.tests.forEach(o => { i.test(o.OPTIONS) }) }), r.transforms = [...n.transforms, ...r.transforms], r } isType(t) { return t == null ? !!(this.spec.nullable && t === null || this.spec.optional && t === void 0) : this._typeCheck(t) } resolve(t) { let n = this; if (n.conditions.length) { let r = n.conditions; n = n.clone(), n.conditions = [], n = r.reduce((a, i) => i.resolve(a, t), n), n = n.resolve(t) } return n } resolveOptions(t) { var n, r, a; return Object.assign({}, t, { from: t.from || [], strict: (n = t.strict) != null ? n : this.spec.strict, abortEarly: (r = t.abortEarly) != null ? r : this.spec.abortEarly, recursive: (a = t.recursive) != null ? a : this.spec.recursive }) } cast(t, n = {}) {
let r = this.resolve(Object.assign({ value: t }, n)), a = n.assert === "ignore-optionality", i = r._cast(t, n); if (n.assert !== !1 && !r.isType(i)) {
if (a && un(i)) return i; let o = On(t), s = On(i); throw new TypeError(`The value of ${n.path || "field"} could not be cast to a value that satisfies the schema type: "${r.type}".
attempted value: ${o}
`+ (s !== o ? `result of cast: ${s}` : ""))
} return i
} _cast(t, n) { let r = t === void 0 ? t : this.transforms.reduce((a, i) => i.call(this, a, t, this), t); return r === void 0 && (r = this.getDefault(n)), r } _validate(t, n = {}, r, a) { let { path: i, originalValue: o = t, strict: s = this.spec.strict } = n, l = t; s || (l = this._cast(l, Object.assign({ assert: !1 }, n))); let u = []; for (let c of Object.values(this.internalTests)) c && u.push(c); this.runTests({ path: i, value: l, originalValue: o, options: n, tests: u }, r, c => { if (c.length) return a(c, l); this.runTests({ path: i, value: l, originalValue: o, options: n, tests: this.tests }, r, a) }) } runTests(t, n, r) { let a = !1, { tests: i, value: o, originalValue: s, path: l, options: u } = t, c = U => { a || (a = !0, n(U, o)) }, d = U => { a || (a = !0, r(U, o)) }, m = i.length, g = []; if (!m) return d([]); let b = { value: o, originalValue: s, path: l, options: u, schema: this }; for (let U = 0; U < i.length; U++) { const P = i[U]; P(b, c, function (W) { W && (g = g.concat(W)), --m <= 0 && d(g) }) } } asNestedTest({ key: t, index: n, parent: r, parentPath: a, originalParent: i, options: o }) { const s = t ?? n; if (s == null) throw TypeError("Must include `key` or `index` for nested validations"); const l = typeof s == "number"; let u = r[s]; const c = Object.assign({}, o, { strict: !0, parent: r, value: u, originalValue: i[s], key: void 0, [l ? "index" : "key"]: s, path: l || s.includes(".") ? `${a || ""}[${u ? s : `"${s}"`}]` : (a ? `${a}.` : "") + t }); return (d, m, g) => this.resolve(c)._validate(u, c, m, g) } validate(t, n) { let r = this.resolve(Object.assign({}, n, { value: t })); return new Promise((a, i) => r._validate(t, n, (o, s) => { st.isError(o) && (o.value = s), i(o) }, (o, s) => { o.length ? i(new st(o, s)) : a(s) })) } validateSync(t, n) { let r = this.resolve(Object.assign({}, n, { value: t })), a; return r._validate(t, Object.assign({}, n, { sync: !0 }), (i, o) => { throw st.isError(i) && (i.value = o), i }, (i, o) => { if (i.length) throw new st(i, t); a = o }), a } isValid(t, n) { return this.validate(t, n).then(() => !0, r => { if (st.isError(r)) return !1; throw r }) } isValidSync(t, n) { try { return this.validateSync(t, n), !0 } catch (r) { if (st.isError(r)) return !1; throw r } } _getDefault(t) { let n = this.spec.default; return n == null ? n : typeof n == "function" ? n.call(this, t) : xn(n) } getDefault(t) { return this.resolve(t || {})._getDefault(t) } default(t) { return arguments.length === 0 ? this._getDefault() : this.clone({ default: t }) } strict(t = !0) { return this.clone({ strict: t }) } nullability(t, n) { const r = this.clone({ nullable: t }); return r.internalTests.nullable = wn({ message: n, name: "nullable", test(a) { return a === null ? this.schema.spec.nullable : !0 } }), r } optionality(t, n) { const r = this.clone({ optional: t }); return r.internalTests.optionality = wn({ message: n, name: "optionality", test(a) { return a === void 0 ? this.schema.spec.optional : !0 } }), r } optional() { return this.optionality(!0) } defined(t = At.defined) { return this.optionality(!1, t) } nullable() { return this.nullability(!0) } nonNullable(t = At.notNull) { return this.nullability(!1, t) } required(t = At.required) { return this.clone().withMutation(n => n.nonNullable(t).defined(t)) } notRequired() { return this.clone().withMutation(t => t.nullable().optional()) } transform(t) { let n = this.clone(); return n.transforms.push(t), n } test(...t) { let n; if (t.length === 1 ? typeof t[0] == "function" ? n = { test: t[0] } : n = t[0] : t.length === 2 ? n = { name: t[0], test: t[1] } : n = { name: t[0], message: t[1], test: t[2] }, n.message === void 0 && (n.message = At.default), typeof n.test != "function") throw new TypeError("`test` is a required parameters"); let r = this.clone(), a = wn(n), i = n.exclusive || n.name && r.exclusiveTests[n.name] === !0; if (n.exclusive && !n.name) throw new TypeError("Exclusive tests must provide a unique `name` identifying the test"); return n.name && (r.exclusiveTests[n.name] = !!n.exclusive), r.tests = r.tests.filter(o => !(o.OPTIONS.name === n.name && (i || o.OPTIONS.test === a.OPTIONS.test))), r.tests.push(a), r } when(t, n) { !Array.isArray(t) && typeof t != "string" && (n = t, t = "."); let r = this.clone(), a = Zs(t).map(i => new yn(i)); return a.forEach(i => { i.isSibling && r.deps.push(i.key) }), r.conditions.push(typeof n == "function" ? new La(a, n) : La.fromOptions(a, n)), r } typeError(t) { let n = this.clone(); return n.internalTests.typeError = wn({ message: t, name: "typeError", skipAbsent: !0, test(r) { return this.schema._typeCheck(r) ? !0 : this.createError({ params: { type: this.schema.type } }) } }), n } oneOf(t, n = At.oneOf) { let r = this.clone(); return t.forEach(a => { r._whitelist.add(a), r._blacklist.delete(a) }), r.internalTests.whiteList = wn({ message: n, name: "oneOf", skipAbsent: !0, test(a) { let i = this.schema._whitelist, o = i.resolveAll(this.resolve); return o.includes(a) ? !0 : this.createError({ params: { values: Array.from(i).join(", "), resolved: o } }) } }), r } notOneOf(t, n = At.notOneOf) { let r = this.clone(); return t.forEach(a => { r._blacklist.add(a), r._whitelist.delete(a) }), r.internalTests.blacklist = wn({ message: n, name: "notOneOf", test(a) { let i = this.schema._blacklist, o = i.resolveAll(this.resolve); return o.includes(a) ? this.createError({ params: { values: Array.from(i).join(", "), resolved: o } }) : !0 } }), r } strip(t = !0) { let n = this.clone(); return n.spec.strip = t, n } describe(t) { const n = (t ? this.resolve(t) : this).clone(), { label: r, meta: a, optional: i, nullable: o } = n.spec; return { meta: a, label: r, optional: i, nullable: o, default: n.getDefault(t), type: n.type, oneOf: n._whitelist.describe(), notOneOf: n._blacklist.describe(), tests: n.tests.map(l => ({ name: l.OPTIONS.name, params: l.OPTIONS.params })).filter((l, u, c) => c.findIndex(d => d.name === l.name) === u) } }
} wt.prototype.__isYupSchema__ = !0; for (const e of ["validate", "validateSync"]) wt.prototype[`${e}At`] = function (t, n, r = {}) { const { parent: a, parentPath: i, schema: o } = Lf(this, t, n, r.context); return o[e](a && a[i], Object.assign({}, r, { parent: a, path: t })) }; for (const e of ["equals", "is"]) wt.prototype[e] = wt.prototype.oneOf; for (const e of ["not", "nope"]) wt.prototype[e] = wt.prototype.notOneOf; const If = () => !0; function Qs(e) { return new Js(e) } class Js extends wt { constructor(t) { super(typeof t == "function" ? { type: "mixed", check: t } : Object.assign({ type: "mixed", check: If }, t)) } } Qs.prototype = Js.prototype; let $f = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, Rf = /^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i, Bf = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, Vf = e => un(e) || e === e.trim(), Hf = {}.toString(); function _a() { return new el } class el extends wt { constructor() { super({ type: "string", check(t) { return t instanceof String && (t = t.valueOf()), typeof t == "string" } }), this.withMutation(() => { this.transform((t, n, r) => { if (!r.spec.coerce || r.isType(t) || Array.isArray(t)) return t; const a = t != null && t.toString ? t.toString() : t; return a === Hf ? t : a }) }) } required(t) { return super.required(t).withMutation(n => n.test({ message: t || At.required, name: "required", skipAbsent: !0, test: r => !!r.length })) } notRequired() { return super.notRequired().withMutation(t => (t.tests = t.tests.filter(n => n.OPTIONS.name !== "required"), t)) } length(t, n = ft.length) { return this.test({ message: n, name: "length", exclusive: !0, params: { length: t }, skipAbsent: !0, test(r) { return r.length === this.resolve(t) } }) } min(t, n = ft.min) { return this.test({ message: n, name: "min", exclusive: !0, params: { min: t }, skipAbsent: !0, test(r) { return r.length >= this.resolve(t) } }) } max(t, n = ft.max) { return this.test({ name: "max", exclusive: !0, message: n, params: { max: t }, skipAbsent: !0, test(r) { return r.length <= this.resolve(t) } }) } matches(t, n) { let r = !1, a, i; return n && (typeof n == "object" ? { excludeEmptyString: r = !1, message: a, name: i } = n : a = n), this.test({ name: i || "matches", message: a || ft.matches, params: { regex: t }, skipAbsent: !0, test: o => o === "" && r || o.search(t) !== -1 }) } email(t = ft.email) { return this.matches($f, { name: "email", message: t, excludeEmptyString: !0 }) } url(t = ft.url) { return this.matches(Rf, { name: "url", message: t, excludeEmptyString: !0 }) } uuid(t = ft.uuid) { return this.matches(Bf, { name: "uuid", message: t, excludeEmptyString: !1 }) } ensure() { return this.default("").transform(t => t === null ? "" : t) } trim(t = ft.trim) { return this.transform(n => n != null ? n.trim() : n).test({ message: t, name: "trim", test: Vf }) } lowercase(t = ft.lowercase) { return this.transform(n => un(n) ? n : n.toLowerCase()).test({ message: t, name: "string_case", exclusive: !0, skipAbsent: !0, test: n => un(n) || n === n.toLowerCase() }) } uppercase(t = ft.uppercase) { return this.transform(n => un(n) ? n : n.toUpperCase()).test({ message: t, name: "string_case", exclusive: !0, skipAbsent: !0, test: n => un(n) || n === n.toUpperCase() }) } } _a.prototype = el.prototype; var zf = /^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/; function qf(e) { var t = [1, 4, 5, 6, 7, 10, 11], n = 0, r, a; if (a = zf.exec(e)) { for (var i = 0, o; o = t[i]; ++i)a[o] = +a[o] || 0; a[2] = (+a[2] || 1) - 1, a[3] = +a[3] || 1, a[7] = a[7] ? String(a[7]).substr(0, 3) : 0, (a[8] === void 0 || a[8] === "") && (a[9] === void 0 || a[9] === "") ? r = +new Date(a[1], a[2], a[3], a[4], a[5], a[6], a[7]) : (a[8] !== "Z" && a[9] !== void 0 && (n = a[10] * 60 + a[11], a[9] === "+" && (n = 0 - n)), r = Date.UTC(a[1], a[2], a[3], a[4], a[5] + n, a[6], a[7])) } else r = Date.parse ? Date.parse(e) : NaN; return r } let Yf = new Date(""), Kf = e => Object.prototype.toString.call(e) === "[object Date]"; class or extends wt { constructor() { super({ type: "date", check(t) { return Kf(t) && !isNaN(t.getTime()) } }), this.withMutation(() => { this.transform((t, n, r) => !r.spec.coerce || r.isType(t) || t === null ? t : (t = qf(t), isNaN(t) ? or.INVALID_DATE : new Date(t))) }) } prepareParam(t, n) { let r; if (yn.isRef(t)) r = t; else { let a = this.cast(t); if (!this._typeCheck(a)) throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`); r = a } return r } min(t, n = Ir.min) { let r = this.prepareParam(t, "min"); return this.test({ message: n, name: "min", exclusive: !0, params: { min: t }, skipAbsent: !0, test(a) { return a >= this.resolve(r) } }) } max(t, n = Ir.max) { let r = this.prepareParam(t, "max"); return this.test({ message: n, name: "max", exclusive: !0, params: { max: t }, skipAbsent: !0, test(a) { return a <= this.resolve(r) } }) } } or.INVALID_DATE = Yf; or.prototype; function Wf(e, t = []) { let n = [], r = new Set, a = new Set(t.map(([o, s]) => `${o}-${s}`)); function i(o, s) { let l = fn.split(o)[0]; r.add(l), a.has(`${s}-${l}`) || n.push([s, l]) } for (const o of Object.keys(e)) { let s = e[o]; r.add(o), yn.isRef(s) && s.isSibling ? i(s.path, o) : bi(s) && "deps" in s && s.deps.forEach(l => i(l, o)) } return Na.array(Array.from(r), n).reverse() } function Fo(e, t) { let n = 1 / 0; return e.some((r, a) => { var i; if ((i = t.path) != null && i.includes(r)) return n = a, !0 }), n } function tl(e) { return (t, n) => Fo(e, t) - Fo(e, n) } const Gf = (e, t, n) => { if (typeof e != "string") return e; let r = e; try { r = JSON.parse(e) } catch { } return n.isType(r) ? r : e }; function xa(e) { if ("fields" in e) { const t = {}; for (const [n, r] of Object.entries(e.fields)) t[n] = xa(r); return e.setFields(t) } if (e.type === "array") { const t = e.optional(); return t.innerType && (t.innerType = xa(t.innerType)), t } return e.type === "tuple" ? e.optional().clone({ types: e.spec.types.map(xa) }) : "optional" in e ? e.optional() : e } const Xf = (e, t) => { const n = [...fn.normalizePath(t)]; if (n.length === 1) return n[0] in e; let r = n.pop(), a = fn.getter(fn.join(n), !0)(e); return !!(a && r in a) }; let Uo = e => Object.prototype.toString.call(e) === "[object Object]"; function Zf(e, t) { let n = Object.keys(e.fields); return Object.keys(t).filter(r => n.indexOf(r) === -1) } const Qf = tl([]); function nl(e) { return new al(e) } class al extends wt { constructor(t) { super({ type: "object", check(n) { return Uo(n) || typeof n == "function" } }), this.fields = Object.create(null), this._sortErrors = Qf, this._nodes = [], this._excludedEdges = [], this.withMutation(() => { t && this.shape(t) }) } _cast(t, n = {}) { var r; let a = super._cast(t, n); if (a === void 0) return this.getDefault(n); if (!this._typeCheck(a)) return a; let i = this.fields, o = (r = n.stripUnknown) != null ? r : this.spec.noUnknown, s = [].concat(this._nodes, Object.keys(a).filter(d => !this._nodes.includes(d))), l = {}, u = Object.assign({}, n, { parent: l, __validating: n.__validating || !1 }), c = !1; for (const d of s) { let m = i[d], g = d in a; if (m) { let b, U = a[d]; u.path = (n.path ? `${n.path}.` : "") + d, m = m.resolve({ value: U, context: n.context, parent: l }); let P = m instanceof wt ? m.spec : void 0, S = P == null ? void 0 : P.strict; if (P != null && P.strip) { c = c || d in a; continue } b = !n.__validating || !S ? m.cast(a[d], u) : a[d], b !== void 0 && (l[d] = b) } else g && !o && (l[d] = a[d]); (g !== d in l || l[d] !== a[d]) && (c = !0) } return c ? l : a } _validate(t, n = {}, r, a) { let { from: i = [], originalValue: o = t, recursive: s = this.spec.recursive } = n; n.from = [{ schema: this, value: o }, ...i], n.__validating = !0, n.originalValue = o, super._validate(t, n, r, (l, u) => { if (!s || !Uo(u)) { a(l, u); return } o = o || u; let c = []; for (let d of this._nodes) { let m = this.fields[d]; !m || yn.isRef(m) || c.push(m.asNestedTest({ options: n, key: d, parent: u, parentPath: n.path, originalParent: o })) } this.runTests({ tests: c, value: u, originalValue: o, options: n }, r, d => { a(d.sort(this._sortErrors).concat(l), u) }) }) } clone(t) { const n = super.clone(t); return n.fields = Object.assign({}, this.fields), n._nodes = this._nodes, n._excludedEdges = this._excludedEdges, n._sortErrors = this._sortErrors, n } concat(t) { let n = super.concat(t), r = n.fields; for (let [a, i] of Object.entries(this.fields)) { const o = r[a]; r[a] = o === void 0 ? i : o } return n.withMutation(a => a.setFields(r, [...this._excludedEdges, ...t._excludedEdges])) } _getDefault(t) { if ("default" in this.spec) return super._getDefault(t); if (!this._nodes.length) return; let n = {}; return this._nodes.forEach(r => { var a; const i = this.fields[r]; let o = t; (a = o) != null && a.value && (o = Object.assign({}, o, { parent: o.value, value: o.value[r] })), n[r] = i && "getDefault" in i ? i.getDefault(o) : void 0 }), n } setFields(t, n) { let r = this.clone(); return r.fields = t, r._nodes = Wf(t, n), r._sortErrors = tl(Object.keys(t)), n && (r._excludedEdges = n), r } shape(t, n = []) { return this.clone().withMutation(r => { let a = r._excludedEdges; return n.length && (Array.isArray(n[0]) || (n = [n]), a = [...r._excludedEdges, ...n]), r.setFields(Object.assign(r.fields, t), a) }) } partial() { const t = {}; for (const [n, r] of Object.entries(this.fields)) t[n] = "optional" in r && r.optional instanceof Function ? r.optional() : r; return this.setFields(t) } deepPartial() { return xa(this) } pick(t) { const n = {}; for (const r of t) this.fields[r] && (n[r] = this.fields[r]); return this.setFields(n) } omit(t) { const n = Object.assign({}, this.fields); for (const r of t) delete n[r]; return this.setFields(n) } from(t, n, r) { let a = fn.getter(t, !0); return this.transform(i => { if (!i) return i; let o = i; return Xf(i, t) && (o = Object.assign({}, i), r || delete o[t], o[n] = a(i)), o }) } json() { return this.transform(Gf) } noUnknown(t = !0, n = $r.noUnknown) { typeof t != "boolean" && (n = t, t = !0); let r = this.test({ name: "noUnknown", exclusive: !0, message: n, test(a) { if (a == null) return !0; const i = Zf(this.schema, a); return !t || i.length === 0 || this.createError({ params: { unknown: i.join(", ") } }) } }); return r.spec.noUnknown = t, r } unknown(t = !0, n = $r.noUnknown) { return this.noUnknown(!t, n) } transformKeys(t) { return this.transform(n => { if (!n) return n; const r = {}; for (const a of Object.keys(n)) r[t(a)] = n[a]; return r }) } camelCase() { return this.transformKeys(gr.camelCase) } snakeCase() { return this.transformKeys(gr.snakeCase) } constantCase() { return this.transformKeys(t => gr.snakeCase(t).toUpperCase()) } describe(t) { let n = super.describe(t); n.fields = {}; for (const [a, i] of Object.entries(this.fields)) { var r; let o = t; (r = o) != null && r.value && (o = Object.assign({}, o, { parent: o.value, value: o.value[a] })), n.fields[a] = i.describe(o) } return n } } nl.prototype = al.prototype; const _o = ["4r5e", "5h1t", "5hit", "a55", "anal", "anus", "ar5e", "arrse", "arse", "ass", "ass-fucker", "asses", "assfucker", "assfukka", "asshole", "assholes", "asswhole", "a_s_s", "b!tch", "b00bs", "b17ch", "b1tch", "ballbag", "balls", "ballsack", "bastard", "beastial", "beastiality", "bellend", "bestial", "bestiality", "bi+ch", "biatch", "bitch", "bitcher", "bitchers", "bitches", "bitchin", "bitching", "bloody", "blow job", "blowjob", "blowjobs", "boiolas", "bollock", "bollok", "boner", "boob", "boobs", "booobs", "boooobs", "booooobs", "booooooobs", "breasts", "buceta", "bugger", "bum", "bunny fucker", "butt", "butthole", "buttmuch", "buttplug", "c0ck", "c0cksucker", "carpet muncher", "cawk", "chink", "cipa", "cl1t", "clit", "clitoris", "clits", "cnut", "cock", "cock-sucker", "cockface", "cockhead", "cockmunch", "cockmuncher", "cocks", "cocksuck", "cocksucked", "cocksucker", "cocksucking", "cocksucks", "cocksuka", "cocksukka", "cok", "cokmuncher", "coksucka", "coon", "cox", "crap", "cum", "cummer", "cumming", "cums", "cumshot", "cunilingus", "cunillingus", "cunnilingus", "cunt", "cuntlick", "cuntlicker", "cuntlicking", "cunts", "cyalis", "cyberfuc", "cyberfuck", "cyberfucked", "cyberfucker", "cyberfuckers", "cyberfucking", "d1ck", "damn", "dick", "dickhead", "dildo", "dildos", "dink", "dinks", "dirsa", "dlck", "dog-fucker", "doggin", "dogging", "donkeyribber", "doosh", "duche", "dyke", "ejaculate", "ejaculated", "ejaculates", "ejaculating", "ejaculatings", "ejaculation", "ejakulate", "f u c k", "f u c k e r", "f4nny", "fag", "fagging", "faggitt", "faggot", "faggs", "fagot", "fagots", "fags", "fanny", "fannyflaps", "fannyfucker", "fanyy", "fatass", "fcuk", "fcuker", "fcuking", "feck", "fecker", "felching", "fellate", "fellatio", "fingerfuck", "fingerfucked", "fingerfucker", "fingerfuckers", "fingerfucking", "fingerfucks", "fistfuck", "fistfucked", "fistfucker", "fistfuckers", "fistfucking", "fistfuckings", "fistfucks", "flange", "fook", "fooker", "fuck", "fucka", "fucked", "fucker", "fuckers", "fuckhead", "fuckheads", "fuckin", "fucking", "fuckings", "fuckingshitmotherfucker", "fuckme", "fucks", "fuckwhit", "fuckwit", "fudge packer", "fudgepacker", "fuk", "fuker", "fukker", "fukkin", "fuks", "fukwhit", "fukwit", "fux", "fux0r", "f_u_c_k", "gangbang", "gangbanged", "gangbangs", "gaylord", "gaysex", "goatse", "God", "god-dam", "god-damned", "goddamn", "goddamned", "hardcoresex", "hell", "heshe", "hoar", "hoare", "hoer", "homo", "hore", "horniest", "horny", "hotsex", "jack-off", "jackoff", "jap", "jerk-off", "jism", "jiz", "jizm", "jizz", "kawk", "knob", "knobead", "knobed", "knobend", "knobhead", "knobjocky", "knobjokey", "kock", "kondum", "kondums", "kum", "kummer", "kumming", "kums", "kunilingus", "l3i+ch", "l3itch", "labia", "lust", "lusting", "m0f0", "m0fo", "m45terbate", "ma5terb8", "ma5terbate", "masochist", "master-bate", "masterb8", "masterbat*", "masterbat3", "masterbate", "masterbation", "masterbations", "masturbate", "mo-fo", "mof0", "mofo", "mothafuck", "mothafucka", "mothafuckas", "mothafuckaz", "mothafucked", "mothafucker", "mothafuckers", "mothafuckin", "mothafucking", "mothafuckings", "mothafucks", "mother fucker", "motherfuck", "motherfucked", "motherfucker", "motherfuckers", "motherfuckin", "motherfucking", "motherfuckings", "motherfuckka", "motherfucks", "muff", "mutha", "muthafecker", "muthafuckker", "muther", "mutherfucker", "n1gga", "n1gger", "nazi", "nigg3r", "nigg4h", "nigga", "niggah", "niggas", "niggaz", "nigger", "niggers", "nob", "nob jokey", "nobhead", "nobjocky", "nobjokey", "numbnuts", "nutsack", "orgasim", "orgasims", "orgasm", "orgasms", "p0rn", "pawn", "pecker", "penis", "penisfucker", "phonesex", "phuck", "phuk", "phuked", "phuking", "phukked", "phukking", "phuks", "phuq", "pigfucker", "pimpis", "piss", "pissed", "pisser", "pissers", "pisses", "pissflaps", "pissin", "pissing", "pissoff", "poop", "porn", "porno", "pornography", "pornos", "prick", "pricks", "pron", "pube", "pusse", "pussi", "pussies", "pussy", "pussys", "rectum", "retard", "rimjaw", "rimming", "s hit", "s.o.b.", "sadist", "schlong", "screwing", "scroat", "scrote", "scrotum", "semen", "sex", "sh!+", "sh!t", "sh1t", "shag", "shagger", "shaggin", "shagging", "shemale", "shi+", "shit", "shitdick", "shite", "shited", "shitey", "shitfuck", "shitfull", "shithead", "shiting", "shitings", "shits", "shitted", "shitter", "shitters", "shitting", "shittings", "shitty", "skank", "slut", "sluts", "smegma", "smut", "snatch", "son-of-a-bitch", "spac", "spunk", "s_h_i_t", "t1tt1e5", "t1tties", "teets", "teez", "testical", "testicle", "tit", "titfuck", "tits", "titt", "tittie5", "tittiefucker", "titties", "tittyfuck", "tittywank", "titwank", "tosser", "turd", "tw4t", "twat", "twathead", "twatty", "twunt", "twunter", "v14gra", "v1gra", "vagina", "viagra", "vulva", "w00se", "wang", "wank", "wanker", "wanky", "whoar", "whore", "willies", "willy", "xrated", "xxx"]; function dt(e) { "@babel/helpers - typeof"; return dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function (t) { return typeof t } : function (t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t }, dt(e) } function Se(e) { if (e === null || e === !0 || e === !1) return NaN; var t = Number(e); return isNaN(t) ? t : t < 0 ? Math.ceil(t) : Math.floor(t) } function te(e, t) { if (t.length < e) throw new TypeError(e + " argument" + (e > 1 ? "s" : "") + " required, but only " + t.length + " present") } function Q(e) { te(1, arguments); var t = Object.prototype.toString.call(e); return e instanceof Date || dt(e) === "object" && t === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || t === "[object Number]" ? new Date(e) : ((typeof e == "string" || t === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), new Date(NaN)) } function Jf(e, t) { te(2, arguments); var n = Q(e), r = Se(t); return isNaN(r) ? new Date(NaN) : (r && n.setDate(n.getDate() + r), n) } function wi(e, t) { te(2, arguments); var n = Q(e), r = Se(t); if (isNaN(r)) return new Date(NaN); if (!r) return n; var a = n.getDate(), i = new Date(n.getTime()); i.setMonth(n.getMonth() + r + 1, 0); var o = i.getDate(); return a >= o ? i : (n.setFullYear(i.getFullYear(), i.getMonth(), a), n) } function em(e, t) { te(2, arguments); var n = Q(e).getTime(), r = Se(t); return new Date(n + r) } var tm = {}; function It() { return tm } function nm(e, t) { var n, r, a, i, o, s, l, u; te(1, arguments); var c = It(), d = Se((n = (r = (a = (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && a !== void 0 ? a : c.weekStartsOn) !== null && r !== void 0 ? r : (l = c.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && n !== void 0 ? n : 0); if (!(d >= 0 && d <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); var m = Q(e), g = m.getDay(), b = (g < d ? 7 : 0) + g - d; return m.setDate(m.getDate() - b), m.setHours(0, 0, 0, 0), m } function rl(e) { var t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds())); return t.setUTCFullYear(e.getFullYear()), e.getTime() - t.getTime() } function Rr(e) { te(1, arguments); var t = Q(e); return t.setHours(0, 0, 0, 0), t } function Fi(e, t) { te(2, arguments); var n = Se(t); return wi(e, n * 12) } function am(e) { te(1, arguments); var t; if (e && typeof e.forEach == "function") t = e; else if (dt(e) === "object" && e !== null) t = Array.prototype.slice.call(e); else return new Date(NaN); var n; return t.forEach(function (r) { var a = Q(r); (n === void 0 || n < a || isNaN(Number(a))) && (n = a) }), n || new Date(NaN) } function rm(e) { te(1, arguments); var t; if (e && typeof e.forEach == "function") t = e; else if (dt(e) === "object" && e !== null) t = Array.prototype.slice.call(e); else return new Date(NaN); var n; return t.forEach(function (r) { var a = Q(r); (n === void 0 || n > a || isNaN(a.getDate())) && (n = a) }), n || new Date(NaN) } var im = 6e4, om = 36e5, sm = 1e3; function yr(e, t) { te(2, arguments); var n = Rr(e), r = Rr(t); return n.getTime() === r.getTime() } function lm(e) { return te(1, arguments), e instanceof Date || dt(e) === "object" && Object.prototype.toString.call(e) === "[object Date]" } function lt(e) { if (te(1, arguments), !lm(e) && typeof e != "number") return !1; var t = Q(e); return !isNaN(Number(t)) } function um(e) { te(1, arguments); var t = Q(e); return t.setHours(23, 59, 59, 999), t } function il(e) { te(1, arguments); var t = Q(e), n = t.getMonth(); return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t } function cm(e, t) { var n; te(1, arguments); var r = e || {}, a = Q(r.start), i = Q(r.end), o = i.getTime(); if (!(a.getTime() <= o)) throw new RangeError("Invalid interval"); var s = [], l = a; l.setHours(0, 0, 0, 0); var u = Number((n = t == null ? void 0 : t.step) !== null && n !== void 0 ? n : 1); if (u < 1 || isNaN(u)) throw new RangeError("`options.step` must be a number greater than 1"); for (; l.getTime() <= o;)s.push(Q(l)), l.setDate(l.getDate() + u), l.setHours(0, 0, 0, 0); return s } function xo(e) { te(1, arguments); var t = Q(e); return t.setSeconds(0, 0), t } function dm(e) { te(1, arguments); var t = e || {}, n = Q(t.start), r = Q(t.end), a = r.getTime(), i = []; if (!(n.getTime() <= a)) throw new RangeError("Invalid interval"); var o = n; for (o.setHours(0, 0, 0, 0), o.setDate(1); o.getTime() <= a;)i.push(Q(o)), o.setMonth(o.getMonth() + 1); return i } function ol(e) { te(1, arguments); var t = Q(e); return t.setDate(1), t.setHours(0, 0, 0, 0), t } function fm(e) { te(1, arguments); var t = Q(e), n = t.getFullYear(); return t.setFullYear(n + 1, 0, 0), t.setHours(23, 59, 59, 999), t } function mm(e) { te(1, arguments); var t = Q(e), n = new Date(0); return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n } function hm(e) { te(1, arguments); var t = e || {}, n = Q(t.start), r = Q(t.end), a = r.getTime(); if (!(n.getTime() <= a)) throw new RangeError("Invalid interval"); var i = [], o = n; for (o.setHours(0, 0, 0, 0), o.setMonth(0, 1); o.getTime() <= a;)i.push(Q(o)), o.setFullYear(o.getFullYear() + 1); return i } function vm(e) { te(1, arguments); var t = Q(e), n = t.getFullYear(), r = 9 + Math.floor(n / 10) * 10; return t.setFullYear(r, 11, 31), t.setHours(23, 59, 59, 999), t } function pm(e, t) { var n, r, a, i, o, s, l, u; te(1, arguments); var c = It(), d = Se((n = (r = (a = (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && a !== void 0 ? a : c.weekStartsOn) !== null && r !== void 0 ? r : (l = c.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && n !== void 0 ? n : 0); if (!(d >= 0 && d <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); var m = Q(e), g = m.getDay(), b = (g < d ? -7 : 0) + 6 - (g - d); return m.setDate(m.getDate() + b), m.setHours(23, 59, 59, 999), m } function sl(e, t) { te(2, arguments); var n = Se(t); return em(e, -n) } var gm = 864e5; function ym(e) { te(1, arguments); var t = Q(e), n = t.getTime(); t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0); var r = t.getTime(), a = n - r; return Math.floor(a / gm) + 1 } function Mn(e) { te(1, arguments); var t = 1, n = Q(e), r = n.getUTCDay(), a = (r < t ? 7 : 0) + r - t; return n.setUTCDate(n.getUTCDate() - a), n.setUTCHours(0, 0, 0, 0), n } function ll(e) { te(1, arguments); var t = Q(e), n = t.getUTCFullYear(), r = new Date(0); r.setUTCFullYear(n + 1, 0, 4), r.setUTCHours(0, 0, 0, 0); var a = Mn(r), i = new Date(0); i.setUTCFullYear(n, 0, 4), i.setUTCHours(0, 0, 0, 0); var o = Mn(i); return t.getTime() >= a.getTime() ? n + 1 : t.getTime() >= o.getTime() ? n : n - 1 } function bm(e) { te(1, arguments); var t = ll(e), n = new Date(0); n.setUTCFullYear(t, 0, 4), n.setUTCHours(0, 0, 0, 0); var r = Mn(n); return r } var wm = 6048e5; function ul(e) { te(1, arguments); var t = Q(e), n = Mn(t).getTime() - bm(t).getTime(); return Math.round(n / wm) + 1 } function vn(e, t) { var n, r, a, i, o, s, l, u; te(1, arguments); var c = It(), d = Se((n = (r = (a = (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && a !== void 0 ? a : c.weekStartsOn) !== null && r !== void 0 ? r : (l = c.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && n !== void 0 ? n : 0); if (!(d >= 0 && d <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); var m = Q(e), g = m.getUTCDay(), b = (g < d ? 7 : 0) + g - d; return m.setUTCDate(m.getUTCDate() - b), m.setUTCHours(0, 0, 0, 0), m } function Ui(e, t) { var n, r, a, i, o, s, l, u; te(1, arguments); var c = Q(e), d = c.getUTCFullYear(), m = It(), g = Se((n = (r = (a = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && a !== void 0 ? a : m.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = m.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && n !== void 0 ? n : 1); if (!(g >= 1 && g <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); var b = new Date(0); b.setUTCFullYear(d + 1, 0, g), b.setUTCHours(0, 0, 0, 0); var U = vn(b, t), P = new Date(0); P.setUTCFullYear(d, 0, g), P.setUTCHours(0, 0, 0, 0); var S = vn(P, t); return c.getTime() >= U.getTime() ? d + 1 : c.getTime() >= S.getTime() ? d : d - 1 } function Fm(e, t) { var n, r, a, i, o, s, l, u; te(1, arguments); var c = It(), d = Se((n = (r = (a = (i = t == null ? void 0 : t.firstWeekContainsDate) !== null && i !== void 0 ? i : t == null || (o = t.locale) === null || o === void 0 || (s = o.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && a !== void 0 ? a : c.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = c.locale) === null || l === void 0 || (u = l.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), m = Ui(e, t), g = new Date(0); g.setUTCFullYear(m, 0, d), g.setUTCHours(0, 0, 0, 0); var b = vn(g, t); return b } var Um = 6048e5; function cl(e, t) { te(1, arguments); var n = Q(e), r = vn(n, t).getTime() - Fm(n, t).getTime(); return Math.round(r / Um) + 1 } function Ce(e, t) { for (var n = e < 0 ? "-" : "", r = Math.abs(e).toString(); r.length < t;)r = "0" + r; return n + r } var _m = { y: function (t, n) { var r = t.getUTCFullYear(), a = r > 0 ? r : 1 - r; return Ce(n === "yy" ? a % 100 : a, n.length) }, M: function (t, n) { var r = t.getUTCMonth(); return n === "M" ? String(r + 1) : Ce(r + 1, 2) }, d: function (t, n) { return Ce(t.getUTCDate(), n.length) }, a: function (t, n) { var r = t.getUTCHours() / 12 >= 1 ? "pm" : "am"; switch (n) { case "a": case "aa": return r.toUpperCase(); case "aaa": return r; case "aaaaa": return r[0]; case "aaaa": default: return r === "am" ? "a.m." : "p.m." } }, h: function (t, n) { return Ce(t.getUTCHours() % 12 || 12, n.length) }, H: function (t, n) { return Ce(t.getUTCHours(), n.length) }, m: function (t, n) { return Ce(t.getUTCMinutes(), n.length) }, s: function (t, n) { return Ce(t.getUTCSeconds(), n.length) }, S: function (t, n) { var r = n.length, a = t.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, r - 3)); return Ce(i, n.length) } }; const Rt = _m; var Fn = { am: "am", pm: "pm", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, xm = { G: function (t, n, r) { var a = t.getUTCFullYear() > 0 ? 1 : 0; switch (n) { case "G": case "GG": case "GGG": return r.era(a, { width: "abbreviated" }); case "GGGGG": return r.era(a, { width: "narrow" }); case "GGGG": default: return r.era(a, { width: "wide" }) } }, y: function (t, n, r) { if (n === "yo") { var a = t.getUTCFullYear(), i = a > 0 ? a : 1 - a; return r.ordinalNumber(i, { unit: "year" }) } return Rt.y(t, n) }, Y: function (t, n, r, a) { var i = Ui(t, a), o = i > 0 ? i : 1 - i; if (n === "YY") { var s = o % 100; return Ce(s, 2) } return n === "Yo" ? r.ordinalNumber(o, { unit: "year" }) : Ce(o, n.length) }, R: function (t, n) { var r = ll(t); return Ce(r, n.length) }, u: function (t, n) { var r = t.getUTCFullYear(); return Ce(r, n.length) }, Q: function (t, n, r) { var a = Math.ceil((t.getUTCMonth() + 1) / 3); switch (n) { case "Q": return String(a); case "QQ": return Ce(a, 2); case "Qo": return r.ordinalNumber(a, { unit: "quarter" }); case "QQQ": return r.quarter(a, { width: "abbreviated", context: "formatting" }); case "QQQQQ": return r.quarter(a, { width: "narrow", context: "formatting" }); case "QQQQ": default: return r.quarter(a, { width: "wide", context: "formatting" }) } }, q: function (t, n, r) { var a = Math.ceil((t.getUTCMonth() + 1) / 3); switch (n) { case "q": return String(a); case "qq": return Ce(a, 2); case "qo": return r.ordinalNumber(a, { unit: "quarter" }); case "qqq": return r.quarter(a, { width: "abbreviated", context: "standalone" }); case "qqqqq": return r.quarter(a, { width: "narrow", context: "standalone" }); case "qqqq": default: return r.quarter(a, { width: "wide", context: "standalone" }) } }, M: function (t, n, r) { var a = t.getUTCMonth(); switch (n) { case "M": case "MM": return Rt.M(t, n); case "Mo": return r.ordinalNumber(a + 1, { unit: "month" }); case "MMM": return r.month(a, { width: "abbreviated", context: "formatting" }); case "MMMMM": return r.month(a, { width: "narrow", context: "formatting" }); case "MMMM": default: return r.month(a, { width: "wide", context: "formatting" }) } }, L: function (t, n, r) { var a = t.getUTCMonth(); switch (n) { case "L": return String(a + 1); case "LL": return Ce(a + 1, 2); case "Lo": return r.ordinalNumber(a + 1, { unit: "month" }); case "LLL": return r.month(a, { width: "abbreviated", context: "standalone" }); case "LLLLL": return r.month(a, { width: "narrow", context: "standalone" }); case "LLLL": default: return r.month(a, { width: "wide", context: "standalone" }) } }, w: function (t, n, r, a) { var i = cl(t, a); return n === "wo" ? r.ordinalNumber(i, { unit: "week" }) : Ce(i, n.length) }, I: function (t, n, r) { var a = ul(t); return n === "Io" ? r.ordinalNumber(a, { unit: "week" }) : Ce(a, n.length) }, d: function (t, n, r) { return n === "do" ? r.ordinalNumber(t.getUTCDate(), { unit: "date" }) : Rt.d(t, n) }, D: function (t, n, r) { var a = ym(t); return n === "Do" ? r.ordinalNumber(a, { unit: "dayOfYear" }) : Ce(a, n.length) }, E: function (t, n, r) { var a = t.getUTCDay(); switch (n) { case "E": case "EE": case "EEE": return r.day(a, { width: "abbreviated", context: "formatting" }); case "EEEEE": return r.day(a, { width: "narrow", context: "formatting" }); case "EEEEEE": return r.day(a, { width: "short", context: "formatting" }); case "EEEE": default: return r.day(a, { width: "wide", context: "formatting" }) } }, e: function (t, n, r, a) { var i = t.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7; switch (n) { case "e": return String(o); case "ee": return Ce(o, 2); case "eo": return r.ordinalNumber(o, { unit: "day" }); case "eee": return r.day(i, { width: "abbreviated", context: "formatting" }); case "eeeee": return r.day(i, { width: "narrow", context: "formatting" }); case "eeeeee": return r.day(i, { width: "short", context: "formatting" }); case "eeee": default: return r.day(i, { width: "wide", context: "formatting" }) } }, c: function (t, n, r, a) { var i = t.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7; switch (n) { case "c": return String(o); case "cc": return Ce(o, n.length); case "co": return r.ordinalNumber(o, { unit: "day" }); case "ccc": return r.day(i, { width: "abbreviated", context: "standalone" }); case "ccccc": return r.day(i, { width: "narrow", context: "standalone" }); case "cccccc": return r.day(i, { width: "short", context: "standalone" }); case "cccc": default: return r.day(i, { width: "wide", context: "standalone" }) } }, i: function (t, n, r) { var a = t.getUTCDay(), i = a === 0 ? 7 : a; switch (n) { case "i": return String(i); case "ii": return Ce(i, n.length); case "io": return r.ordinalNumber(i, { unit: "day" }); case "iii": return r.day(a, { width: "abbreviated", context: "formatting" }); case "iiiii": return r.day(a, { width: "narrow", context: "formatting" }); case "iiiiii": return r.day(a, { width: "short", context: "formatting" }); case "iiii": default: return r.day(a, { width: "wide", context: "formatting" }) } }, a: function (t, n, r) { var a = t.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am"; switch (n) { case "a": case "aa": return r.dayPeriod(i, { width: "abbreviated", context: "formatting" }); case "aaa": return r.dayPeriod(i, { width: "abbreviated", context: "formatting" }).toLowerCase(); case "aaaaa": return r.dayPeriod(i, { width: "narrow", context: "formatting" }); case "aaaa": default: return r.dayPeriod(i, { width: "wide", context: "formatting" }) } }, b: function (t, n, r) { var a = t.getUTCHours(), i; switch (a === 12 ? i = Fn.noon : a === 0 ? i = Fn.midnight : i = a / 12 >= 1 ? "pm" : "am", n) { case "b": case "bb": return r.dayPeriod(i, { width: "abbreviated", context: "formatting" }); case "bbb": return r.dayPeriod(i, { width: "abbreviated", context: "formatting" }).toLowerCase(); case "bbbbb": return r.dayPeriod(i, { width: "narrow", context: "formatting" }); case "bbbb": default: return r.dayPeriod(i, { width: "wide", context: "formatting" }) } }, B: function (t, n, r) { var a = t.getUTCHours(), i; switch (a >= 17 ? i = Fn.evening : a >= 12 ? i = Fn.afternoon : a >= 4 ? i = Fn.morning : i = Fn.night, n) { case "B": case "BB": case "BBB": return r.dayPeriod(i, { width: "abbreviated", context: "formatting" }); case "BBBBB": return r.dayPeriod(i, { width: "narrow", context: "formatting" }); case "BBBB": default: return r.dayPeriod(i, { width: "wide", context: "formatting" }) } }, h: function (t, n, r) { if (n === "ho") { var a = t.getUTCHours() % 12; return a === 0 && (a = 12), r.ordinalNumber(a, { unit: "hour" }) } return Rt.h(t, n) }, H: function (t, n, r) { return n === "Ho" ? r.ordinalNumber(t.getUTCHours(), { unit: "hour" }) : Rt.H(t, n) }, K: function (t, n, r) { var a = t.getUTCHours() % 12; return n === "Ko" ? r.ordinalNumber(a, { unit: "hour" }) : Ce(a, n.length) }, k: function (t, n, r) { var a = t.getUTCHours(); return a === 0 && (a = 24), n === "ko" ? r.ordinalNumber(a, { unit: "hour" }) : Ce(a, n.length) }, m: function (t, n, r) { return n === "mo" ? r.ordinalNumber(t.getUTCMinutes(), { unit: "minute" }) : Rt.m(t, n) }, s: function (t, n, r) { return n === "so" ? r.ordinalNumber(t.getUTCSeconds(), { unit: "second" }) : Rt.s(t, n) }, S: function (t, n) { return Rt.S(t, n) }, X: function (t, n, r, a) { var i = a._originalDate || t, o = i.getTimezoneOffset(); if (o === 0) return "Z"; switch (n) { case "X": return ko(o); case "XXXX": case "XX": return nn(o); case "XXXXX": case "XXX": default: return nn(o, ":") } }, x: function (t, n, r, a) { var i = a._originalDate || t, o = i.getTimezoneOffset(); switch (n) { case "x": return ko(o); case "xxxx": case "xx": return nn(o); case "xxxxx": case "xxx": default: return nn(o, ":") } }, O: function (t, n, r, a) { var i = a._originalDate || t, o = i.getTimezoneOffset(); switch (n) { case "O": case "OO": case "OOO": return "GMT" + Eo(o, ":"); case "OOOO": default: return "GMT" + nn(o, ":") } }, z: function (t, n, r, a) { var i = a._originalDate || t, o = i.getTimezoneOffset(); switch (n) { case "z": case "zz": case "zzz": return "GMT" + Eo(o, ":"); case "zzzz": default: return "GMT" + nn(o, ":") } }, t: function (t, n, r, a) { var i = a._originalDate || t, o = Math.floor(i.getTime() / 1e3); return Ce(o, n.length) }, T: function (t, n, r, a) { var i = a._originalDate || t, o = i.getTime(); return Ce(o, n.length) } }; function Eo(e, t) { var n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.floor(r / 60), i = r % 60; if (i === 0) return n + String(a); var o = t || ""; return n + String(a) + o + Ce(i, 2) } function ko(e, t) { if (e % 60 === 0) { var n = e > 0 ? "-" : "+"; return n + Ce(Math.abs(e) / 60, 2) } return nn(e, t) } function nn(e, t) { var n = t || "", r = e > 0 ? "-" : "+", a = Math.abs(e), i = Ce(Math.floor(a / 60), 2), o = Ce(a % 60, 2); return r + i + n + o } const Em = xm; var jo = function (t, n) { switch (t) { case "P": return n.date({ width: "short" }); case "PP": return n.date({ width: "medium" }); case "PPP": return n.date({ width: "long" }); case "PPPP": default: return n.date({ width: "full" }) } }, dl = function (t, n) { switch (t) { case "p": return n.time({ width: "short" }); case "pp": return n.time({ width: "medium" }); case "ppp": return n.time({ width: "long" }); case "pppp": default: return n.time({ width: "full" }) } }, km = function (t, n) { var r = t.match(/(P+)(p+)?/) || [], a = r[1], i = r[2]; if (!i) return jo(t, n); var o; switch (a) { case "P": o = n.dateTime({ width: "short" }); break; case "PP": o = n.dateTime({ width: "medium" }); break; case "PPP": o = n.dateTime({ width: "long" }); break; case "PPPP": default: o = n.dateTime({ width: "full" }); break }return o.replace("{{date}}", jo(a, n)).replace("{{time}}", dl(i, n)) }, jm = { p: dl, P: km }; const Br = jm; var Cm = ["D", "DD"], Sm = ["YY", "YYYY"]; function fl(e) { return Cm.indexOf(e) !== -1 } function ml(e) { return Sm.indexOf(e) !== -1 } function $a(e, t, n) { if (e === "YYYY") throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t, "`) for formatting years to the input `").concat(n, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); if (e === "YY") throw new RangeError("Use `yy` instead of `YY` (in `".concat(t, "`) for formatting years to the input `").concat(n, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); if (e === "D") throw new RangeError("Use `d` instead of `D` (in `".concat(t, "`) for formatting days of the month to the input `").concat(n, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); if (e === "DD") throw new RangeError("Use `dd` instead of `DD` (in `".concat(t, "`) for formatting days of the month to the input `").concat(n, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")) } var Om = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" }, xSeconds: { one: "1 second", other: "{{count}} seconds" }, halfAMinute: "half a minute", lessThanXMinutes: { one: "less than a minute", other: "less than {{count}} minutes" }, xMinutes: { one: "1 minute", other: "{{count}} minutes" }, aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" }, xHours: { one: "1 hour", other: "{{count}} hours" }, xDays: { one: "1 day", other: "{{count}} days" }, aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" }, xWeeks: { one: "1 week", other: "{{count}} weeks" }, aboutXMonths: { one: "about 1 month", other: "about {{count}} months" }, xMonths: { one: "1 month", other: "{{count}} months" }, aboutXYears: { one: "about 1 year", other: "about {{count}} years" }, xYears: { one: "1 year", other: "{{count}} years" }, overXYears: { one: "over 1 year", other: "over {{count}} years" }, almostXYears: { one: "almost 1 year", other: "almost {{count}} years" } }, Tm = function (t, n, r) { var a, i = Om[t]; return typeof i == "string" ? a = i : n === 1 ? a = i.one : a = i.other.replace("{{count}}", n.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + a : a + " ago" : a }; const Am = Tm; function br(e) { return function () { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = t.width ? String(t.width) : e.defaultWidth, r = e.formats[n] || e.formats[e.defaultWidth]; return r } } var Dm = { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, Mm = { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }, Pm = { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, Nm = { date: br({ formats: Dm, defaultWidth: "full" }), time: br({ formats: Mm, defaultWidth: "full" }), dateTime: br({ formats: Pm, defaultWidth: "full" }) }; const Lm = Nm; var Im = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" }, $m = function (t, n, r, a) { return Im[t] }; const Rm = $m; function qn(e) { return function (t, n) { var r = n != null && n.context ? String(n.context) : "standalone", a; if (r === "formatting" && e.formattingValues) { var i = e.defaultFormattingWidth || e.defaultWidth, o = n != null && n.width ? String(n.width) : i; a = e.formattingValues[o] || e.formattingValues[i] } else { var s = e.defaultWidth, l = n != null && n.width ? String(n.width) : e.defaultWidth; a = e.values[l] || e.values[s] } var u = e.argumentCallback ? e.argumentCallback(t) : t; return a[u] } } var Bm = { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, Vm = { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, Hm = { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, zm = { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, qm = { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, Ym = { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, Km = function (t, n) { var r = Number(t), a = r % 100; if (a > 20 || a < 10) switch (a % 10) { case 1: return r + "st"; case 2: return r + "nd"; case 3: return r + "rd" }return r + "th" }, Wm = { ordinalNumber: Km, era: qn({ values: Bm, defaultWidth: "wide" }), quarter: qn({ values: Vm, defaultWidth: "wide", argumentCallback: function (t) { return t - 1 } }), month: qn({ values: Hm, defaultWidth: "wide" }), day: qn({ values: zm, defaultWidth: "wide" }), dayPeriod: qn({ values: qm, defaultWidth: "wide", formattingValues: Ym, defaultFormattingWidth: "wide" }) }; const Gm = Wm; function Yn(e) { return function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], i = t.match(a); if (!i) return null; var o = i[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? Zm(s, function (d) { return d.test(o) }) : Xm(s, function (d) { return d.test(o) }), u; u = e.valueCallback ? e.valueCallback(l) : l, u = n.valueCallback ? n.valueCallback(u) : u; var c = t.slice(o.length); return { value: u, rest: c } } } function Xm(e, t) { for (var n in e) if (e.hasOwnProperty(n) && t(e[n])) return n } function Zm(e, t) { for (var n = 0; n < e.length; n++)if (t(e[n])) return n } function Qm(e) { return function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.match(e.matchPattern); if (!r) return null; var a = r[0], i = t.match(e.parsePattern); if (!i) return null; var o = e.valueCallback ? e.valueCallback(i[0]) : i[0]; o = n.valueCallback ? n.valueCallback(o) : o; var s = t.slice(a.length); return { value: o, rest: s } } } var Jm = /^(\d+)(th|st|nd|rd)?/i, eh = /\d+/i, th = { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, nh = { any: [/^b/i, /^(a|c)/i] }, ah = { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, rh = { any: [/1/i, /2/i, /3/i, /4/i] }, ih = { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, oh = { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }, sh = { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, lh = { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, uh = { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, ch = { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, dh = { ordinalNumber: Qm({ matchPattern: Jm, parsePattern: eh, valueCallback: function (t) { return parseInt(t, 10) } }), era: Yn({ matchPatterns: th, defaultMatchWidth: "wide", parsePatterns: nh, defaultParseWidth: "any" }), quarter: Yn({ matchPatterns: ah, defaultMatchWidth: "wide", parsePatterns: rh, defaultParseWidth: "any", valueCallback: function (t) { return t + 1 } }), month: Yn({ matchPatterns: ih, defaultMatchWidth: "wide", parsePatterns: oh, defaultParseWidth: "any" }), day: Yn({ matchPatterns: sh, defaultMatchWidth: "wide", parsePatterns: lh, defaultParseWidth: "any" }), dayPeriod: Yn({ matchPatterns: uh, defaultMatchWidth: "any", parsePatterns: ch, defaultParseWidth: "any" }) }; const fh = dh; var mh = { code: "en-US", formatDistance: Am, formatLong: Lm, formatRelative: Rm, localize: Gm, match: fh, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }; const hl = mh; var hh = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, vh = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ph = /^'([^]*?)'?$/, gh = /''/g, yh = /[a-zA-Z]/; function ra(e, t, n) { var r, a, i, o, s, l, u, c, d, m, g, b, U, P, S, W, q, E; te(2, arguments); var D = String(t), L = It(), B = (r = (a = n == null ? void 0 : n.locale) !== null && a !== void 0 ? a : L.locale) !== null && r !== void 0 ? r : hl, J = Se((i = (o = (s = (l = n == null ? void 0 : n.firstWeekContainsDate) !== null && l !== void 0 ? l : n == null || (u = n.locale) === null || u === void 0 || (c = u.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && s !== void 0 ? s : L.firstWeekContainsDate) !== null && o !== void 0 ? o : (d = L.locale) === null || d === void 0 || (m = d.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1); if (!(J >= 1 && J <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); var ve = Se((g = (b = (U = (P = n == null ? void 0 : n.weekStartsOn) !== null && P !== void 0 ? P : n == null || (S = n.locale) === null || S === void 0 || (W = S.options) === null || W === void 0 ? void 0 : W.weekStartsOn) !== null && U !== void 0 ? U : L.weekStartsOn) !== null && b !== void 0 ? b : (q = L.locale) === null || q === void 0 || (E = q.options) === null || E === void 0 ? void 0 : E.weekStartsOn) !== null && g !== void 0 ? g : 0); if (!(ve >= 0 && ve <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); if (!B.localize) throw new RangeError("locale must contain localize property"); if (!B.formatLong) throw new RangeError("locale must contain formatLong property"); var k = Q(e); if (!lt(k)) throw new RangeError("Invalid time value"); var G = rl(k), pe = sl(k, G), ae = { firstWeekContainsDate: J, weekStartsOn: ve, locale: B, _originalDate: k }, ie = D.match(vh).map(function (re) { var X = re[0]; if (X === "p" || X === "P") { var Y = Br[X]; return Y(re, B.formatLong) } return re }).join("").match(hh).map(function (re) { if (re === "''") return "'"; var X = re[0]; if (X === "'") return bh(re); var Y = Em[X]; if (Y) return !(n != null && n.useAdditionalWeekYearTokens) && ml(re) && $a(re, t, String(e)), !(n != null && n.useAdditionalDayOfYearTokens) && fl(re) && $a(re, t, String(e)), Y(pe, re, B.localize, ae); if (X.match(yh)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + X + "`"); return re }).join(""); return ie } function bh(e) { var t = e.match(ph); return t ? t[1].replace(gh, "'") : e } function wh(e, t) { if (e == null) throw new TypeError("assign requires that input parameter not be null or undefined"); for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); return e } function Fh(e) { te(1, arguments); var t = Q(e), n = t.getFullYear(), r = t.getMonth(), a = new Date(0); return a.setFullYear(n, r + 1, 0), a.setHours(0, 0, 0, 0), a.getDate() } function ga(e) { te(1, arguments); var t = Q(e), n = t.getFullYear(), r = Math.floor(n / 10) * 10; return r } function mt(e) { return te(1, arguments), Q(e).getFullYear() } function ia(e, t) { te(2, arguments); var n = Q(e), r = Q(t); return n.getTime() > r.getTime() } function oa(e, t) { te(2, arguments); var n = Q(e), r = Q(t); return n.getTime() < r.getTime() } function Co(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++)r[n] = e[n]; return r } function Uh(e, t) { if (e) { if (typeof e == "string") return Co(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Co(e, t) } } function So(e, t) {
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (!n) {
if (Array.isArray(e) || (n = Uh(e)) || t && e && typeof e.length == "number") { n && (e = n); var r = 0, a = function () { }; return { s: a, n: function () { return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] } }, e: function (u) { throw u }, f: a } } throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)
} var i = !0, o = !1, s; return { s: function () { n = n.call(e) }, n: function () { var u = n.next(); return i = u.done, u }, e: function (u) { o = !0, s = u }, f: function () { try { !i && n.return != null && n.return() } finally { if (o) throw s } } }
} function V(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e } function Vr(e, t) { return Vr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (r, a) { return r.__proto__ = a, r }, Vr(e, t) } function Fe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Vr(e, t) } function Ra(e) { return Ra = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (n) { return n.__proto__ || Object.getPrototypeOf(n) }, Ra(e) } function _h() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { })), !0 } catch { return !1 } } function xh(e, t) { if (t && (dt(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return V(e) } function Ue(e) { var t = _h(); return function () { var r = Ra(e), a; if (t) { var i = Ra(this).constructor; a = Reflect.construct(r, arguments, i) } else a = r.apply(this, arguments); return xh(this, a) } } function ye(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") } function Eh(e, t) { if (dt(e) !== "object" || e === null) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (dt(r) !== "object") return r; throw new TypeError("@@toPrimitive must return a primitive value.") } return (t === "string" ? String : Number)(e) } function vl(e) { var t = Eh(e, "string"); return dt(t) === "symbol" ? t : String(t) } function Oo(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, vl(r.key), r) } } function be(e, t, n) { return t && Oo(e.prototype, t), n && Oo(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e } function $(e, t, n) { return t = vl(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e } var kh = 10, pl = function () { function e() { ye(this, e), $(this, "priority", void 0), $(this, "subPriority", 0) } return be(e, [{ key: "validate", value: function (n, r) { return !0 } }]), e }(), jh = function (e) { Fe(n, e); var t = Ue(n); function n(r, a, i, o, s) { var l; return ye(this, n), l = t.call(this), l.value = r, l.validateValue = a, l.setValue = i, l.priority = o, s && (l.subPriority = s), l } return be(n, [{ key: "validate", value: function (a, i) { return this.validateValue(a, this.value, i) } }, { key: "set", value: function (a, i, o) { return this.setValue(a, i, this.value, o) } }]), n }(pl), Ch = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", kh), $(V(r), "subPriority", -1), r } return be(n, [{ key: "set", value: function (a, i) { if (i.timestampIsSet) return a; var o = new Date(0); return o.setFullYear(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()), o.setHours(a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds()), o } }]), n }(pl), xe = function () { function e() { ye(this, e), $(this, "incompatibleTokens", void 0), $(this, "priority", void 0), $(this, "subPriority", void 0) } return be(e, [{ key: "run", value: function (n, r, a, i) { var o = this.parse(n, r, a, i); return o ? { setter: new jh(o.value, this.validate, this.set, this.priority, this.subPriority), rest: o.rest } : null } }, { key: "validate", value: function (n, r, a) { return !0 } }]), e }(), Sh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 140), $(V(r), "incompatibleTokens", ["R", "u", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "G": case "GG": case "GGG": return o.era(a, { width: "abbreviated" }) || o.era(a, { width: "narrow" }); case "GGGGG": return o.era(a, { width: "narrow" }); case "GGGG": default: return o.era(a, { width: "wide" }) || o.era(a, { width: "abbreviated" }) || o.era(a, { width: "narrow" }) } } }, { key: "set", value: function (a, i, o) { return i.era = o, a.setUTCFullYear(o, 0, 1), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), He = { month: /^(1[0-2]|0?\d)/, date: /^(3[0-1]|[0-2]?\d)/, dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, week: /^(5[0-3]|[0-4]?\d)/, hour23h: /^(2[0-3]|[0-1]?\d)/, hour24h: /^(2[0-4]|[0-1]?\d)/, hour11h: /^(1[0-1]|0?\d)/, hour12h: /^(1[0-2]|0?\d)/, minute: /^[0-5]?\d/, second: /^[0-5]?\d/, singleDigit: /^\d/, twoDigits: /^\d{1,2}/, threeDigits: /^\d{1,3}/, fourDigits: /^\d{1,4}/, anyDigitsSigned: /^-?\d+/, singleDigitSigned: /^-?\d/, twoDigitsSigned: /^-?\d{1,2}/, threeDigitsSigned: /^-?\d{1,3}/, fourDigitsSigned: /^-?\d{1,4}/ }, jt = { basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, basic: /^([+-])(\d{2})(\d{2})|Z/, basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, extended: /^([+-])(\d{2}):(\d{2})|Z/, extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ }; function ze(e, t) { return e && { value: t(e.value), rest: e.rest } } function Re(e, t) { var n = t.match(e); return n ? { value: parseInt(n[0], 10), rest: t.slice(n[0].length) } : null } function Ct(e, t) { var n = t.match(e); if (!n) return null; if (n[0] === "Z") return { value: 0, rest: t.slice(1) }; var r = n[1] === "+" ? 1 : -1, a = n[2] ? parseInt(n[2], 10) : 0, i = n[3] ? parseInt(n[3], 10) : 0, o = n[5] ? parseInt(n[5], 10) : 0; return { value: r * (a * om + i * im + o * sm), rest: t.slice(n[0].length) } } function gl(e) { return Re(He.anyDigitsSigned, e) } function Ve(e, t) { switch (e) { case 1: return Re(He.singleDigit, t); case 2: return Re(He.twoDigits, t); case 3: return Re(He.threeDigits, t); case 4: return Re(He.fourDigits, t); default: return Re(new RegExp("^\\d{1," + e + "}"), t) } } function Ba(e, t) { switch (e) { case 1: return Re(He.singleDigitSigned, t); case 2: return Re(He.twoDigitsSigned, t); case 3: return Re(He.threeDigitsSigned, t); case 4: return Re(He.fourDigitsSigned, t); default: return Re(new RegExp("^-?\\d{1," + e + "}"), t) } } function _i(e) { switch (e) { case "morning": return 4; case "evening": return 17; case "pm": case "noon": case "afternoon": return 12; case "am": case "midnight": case "night": default: return 0 } } function yl(e, t) { var n = t > 0, r = n ? t : 1 - t, a; if (r <= 50) a = e || 100; else { var i = r + 50, o = Math.floor(i / 100) * 100, s = e >= i % 100; a = e + o - (s ? 100 : 0) } return n ? a : 1 - a } function bl(e) { return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0 } var Oh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 130), $(V(r), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { var s = function (u) { return { year: u, isTwoDigitYear: i === "yy" } }; switch (i) { case "y": return ze(Ve(4, a), s); case "yo": return ze(o.ordinalNumber(a, { unit: "year" }), s); default: return ze(Ve(i.length, a), s) } } }, { key: "validate", value: function (a, i) { return i.isTwoDigitYear || i.year > 0 } }, { key: "set", value: function (a, i, o) { var s = a.getUTCFullYear(); if (o.isTwoDigitYear) { var l = yl(o.year, s); return a.setUTCFullYear(l, 0, 1), a.setUTCHours(0, 0, 0, 0), a } var u = !("era" in i) || i.era === 1 ? o.year : 1 - o.year; return a.setUTCFullYear(u, 0, 1), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), Th = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 130), $(V(r), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { var s = function (u) { return { year: u, isTwoDigitYear: i === "YY" } }; switch (i) { case "Y": return ze(Ve(4, a), s); case "Yo": return ze(o.ordinalNumber(a, { unit: "year" }), s); default: return ze(Ve(i.length, a), s) } } }, { key: "validate", value: function (a, i) { return i.isTwoDigitYear || i.year > 0 } }, { key: "set", value: function (a, i, o, s) { var l = Ui(a, s); if (o.isTwoDigitYear) { var u = yl(o.year, l); return a.setUTCFullYear(u, 0, s.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0), vn(a, s) } var c = !("era" in i) || i.era === 1 ? o.year : 1 - o.year; return a.setUTCFullYear(c, 0, s.firstWeekContainsDate), a.setUTCHours(0, 0, 0, 0), vn(a, s) } }]), n }(xe), Ah = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 130), $(V(r), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i) { return Ba(i === "R" ? 4 : i.length, a) } }, { key: "set", value: function (a, i, o) { var s = new Date(0); return s.setUTCFullYear(o, 0, 4), s.setUTCHours(0, 0, 0, 0), Mn(s) } }]), n }(xe), Dh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 130), $(V(r), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i) { return Ba(i === "u" ? 4 : i.length, a) } }, { key: "set", value: function (a, i, o) { return a.setUTCFullYear(o, 0, 1), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), Mh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 120), $(V(r), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "Q": case "QQ": return Ve(i.length, a); case "Qo": return o.ordinalNumber(a, { unit: "quarter" }); case "QQQ": return o.quarter(a, { width: "abbreviated", context: "formatting" }) || o.quarter(a, { width: "narrow", context: "formatting" }); case "QQQQQ": return o.quarter(a, { width: "narrow", context: "formatting" }); case "QQQQ": default: return o.quarter(a, { width: "wide", context: "formatting" }) || o.quarter(a, { width: "abbreviated", context: "formatting" }) || o.quarter(a, { width: "narrow", context: "formatting" }) } } }, { key: "validate", value: function (a, i) { return i >= 1 && i <= 4 } }, { key: "set", value: function (a, i, o) { return a.setUTCMonth((o - 1) * 3, 1), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), Ph = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 120), $(V(r), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "q": case "qq": return Ve(i.length, a); case "qo": return o.ordinalNumber(a, { unit: "quarter" }); case "qqq": return o.quarter(a, { width: "abbreviated", context: "standalone" }) || o.quarter(a, { width: "narrow", context: "standalone" }); case "qqqqq": return o.quarter(a, { width: "narrow", context: "standalone" }); case "qqqq": default: return o.quarter(a, { width: "wide", context: "standalone" }) || o.quarter(a, { width: "abbreviated", context: "standalone" }) || o.quarter(a, { width: "narrow", context: "standalone" }) } } }, { key: "validate", value: function (a, i) { return i >= 1 && i <= 4 } }, { key: "set", value: function (a, i, o) { return a.setUTCMonth((o - 1) * 3, 1), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), Nh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), $(V(r), "priority", 110), r } return be(n, [{ key: "parse", value: function (a, i, o) { var s = function (u) { return u - 1 }; switch (i) { case "M": return ze(Re(He.month, a), s); case "MM": return ze(Ve(2, a), s); case "Mo": return ze(o.ordinalNumber(a, { unit: "month" }), s); case "MMM": return o.month(a, { width: "abbreviated", context: "formatting" }) || o.month(a, { width: "narrow", context: "formatting" }); case "MMMMM": return o.month(a, { width: "narrow", context: "formatting" }); case "MMMM": default: return o.month(a, { width: "wide", context: "formatting" }) || o.month(a, { width: "abbreviated", context: "formatting" }) || o.month(a, { width: "narrow", context: "formatting" }) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 11 } }, { key: "set", value: function (a, i, o) { return a.setUTCMonth(o, 1), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), Lh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 110), $(V(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { var s = function (u) { return u - 1 }; switch (i) { case "L": return ze(Re(He.month, a), s); case "LL": return ze(Ve(2, a), s); case "Lo": return ze(o.ordinalNumber(a, { unit: "month" }), s); case "LLL": return o.month(a, { width: "abbreviated", context: "standalone" }) || o.month(a, { width: "narrow", context: "standalone" }); case "LLLLL": return o.month(a, { width: "narrow", context: "standalone" }); case "LLLL": default: return o.month(a, { width: "wide", context: "standalone" }) || o.month(a, { width: "abbreviated", context: "standalone" }) || o.month(a, { width: "narrow", context: "standalone" }) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 11 } }, { key: "set", value: function (a, i, o) { return a.setUTCMonth(o, 1), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe); function Ih(e, t, n) { te(2, arguments); var r = Q(e), a = Se(t), i = cl(r, n) - a; return r.setUTCDate(r.getUTCDate() - i * 7), r } var $h = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 100), $(V(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "w": return Re(He.week, a); case "wo": return o.ordinalNumber(a, { unit: "week" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { return i >= 1 && i <= 53 } }, { key: "set", value: function (a, i, o, s) { return vn(Ih(a, o, s), s) } }]), n }(xe); function Rh(e, t) { te(2, arguments); var n = Q(e), r = Se(t), a = ul(n) - r; return n.setUTCDate(n.getUTCDate() - a * 7), n } var Bh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 100), $(V(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "I": return Re(He.week, a); case "Io": return o.ordinalNumber(a, { unit: "week" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { return i >= 1 && i <= 53 } }, { key: "set", value: function (a, i, o) { return Mn(Rh(a, o)) } }]), n }(xe), Vh = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Hh = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], zh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 90), $(V(r), "subPriority", 1), $(V(r), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "d": return Re(He.date, a); case "do": return o.ordinalNumber(a, { unit: "date" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { var o = a.getUTCFullYear(), s = bl(o), l = a.getUTCMonth(); return s ? i >= 1 && i <= Hh[l] : i >= 1 && i <= Vh[l] } }, { key: "set", value: function (a, i, o) { return a.setUTCDate(o), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), qh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 90), $(V(r), "subpriority", 1), $(V(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "D": case "DD": return Re(He.dayOfYear, a); case "Do": return o.ordinalNumber(a, { unit: "date" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { var o = a.getUTCFullYear(), s = bl(o); return s ? i >= 1 && i <= 366 : i >= 1 && i <= 365 } }, { key: "set", value: function (a, i, o) { return a.setUTCMonth(0, o), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe); function xi(e, t, n) { var r, a, i, o, s, l, u, c; te(2, arguments); var d = It(), m = Se((r = (a = (i = (o = n == null ? void 0 : n.weekStartsOn) !== null && o !== void 0 ? o : n == null || (s = n.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && i !== void 0 ? i : d.weekStartsOn) !== null && a !== void 0 ? a : (u = d.locale) === null || u === void 0 || (c = u.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && r !== void 0 ? r : 0); if (!(m >= 0 && m <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); var g = Q(e), b = Se(t), U = g.getUTCDay(), P = b % 7, S = (P + 7) % 7, W = (S < m ? 7 : 0) + b - U; return g.setUTCDate(g.getUTCDate() + W), g } var Yh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 90), $(V(r), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "E": case "EE": case "EEE": return o.day(a, { width: "abbreviated", context: "formatting" }) || o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }); case "EEEEE": return o.day(a, { width: "narrow", context: "formatting" }); case "EEEEEE": return o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }); case "EEEE": default: return o.day(a, { width: "wide", context: "formatting" }) || o.day(a, { width: "abbreviated", context: "formatting" }) || o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 6 } }, { key: "set", value: function (a, i, o, s) { return a = xi(a, o, s), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), Kh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 90), $(V(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o, s) { var l = function (c) { var d = Math.floor((c - 1) / 7) * 7; return (c + s.weekStartsOn + 6) % 7 + d }; switch (i) { case "e": case "ee": return ze(Ve(i.length, a), l); case "eo": return ze(o.ordinalNumber(a, { unit: "day" }), l); case "eee": return o.day(a, { width: "abbreviated", context: "formatting" }) || o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }); case "eeeee": return o.day(a, { width: "narrow", context: "formatting" }); case "eeeeee": return o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }); case "eeee": default: return o.day(a, { width: "wide", context: "formatting" }) || o.day(a, { width: "abbreviated", context: "formatting" }) || o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 6 } }, { key: "set", value: function (a, i, o, s) { return a = xi(a, o, s), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), Wh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 90), $(V(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o, s) { var l = function (c) { var d = Math.floor((c - 1) / 7) * 7; return (c + s.weekStartsOn + 6) % 7 + d }; switch (i) { case "c": case "cc": return ze(Ve(i.length, a), l); case "co": return ze(o.ordinalNumber(a, { unit: "day" }), l); case "ccc": return o.day(a, { width: "abbreviated", context: "standalone" }) || o.day(a, { width: "short", context: "standalone" }) || o.day(a, { width: "narrow", context: "standalone" }); case "ccccc": return o.day(a, { width: "narrow", context: "standalone" }); case "cccccc": return o.day(a, { width: "short", context: "standalone" }) || o.day(a, { width: "narrow", context: "standalone" }); case "cccc": default: return o.day(a, { width: "wide", context: "standalone" }) || o.day(a, { width: "abbreviated", context: "standalone" }) || o.day(a, { width: "short", context: "standalone" }) || o.day(a, { width: "narrow", context: "standalone" }) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 6 } }, { key: "set", value: function (a, i, o, s) { return a = xi(a, o, s), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe); function Gh(e, t) { te(2, arguments); var n = Se(t); n % 7 === 0 && (n = n - 7); var r = 1, a = Q(e), i = a.getUTCDay(), o = n % 7, s = (o + 7) % 7, l = (s < r ? 7 : 0) + n - i; return a.setUTCDate(a.getUTCDate() + l), a } var Xh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 90), $(V(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { var s = function (u) { return u === 0 ? 7 : u }; switch (i) { case "i": case "ii": return Ve(i.length, a); case "io": return o.ordinalNumber(a, { unit: "day" }); case "iii": return ze(o.day(a, { width: "abbreviated", context: "formatting" }) || o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }), s); case "iiiii": return ze(o.day(a, { width: "narrow", context: "formatting" }), s); case "iiiiii": return ze(o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }), s); case "iiii": default: return ze(o.day(a, { width: "wide", context: "formatting" }) || o.day(a, { width: "abbreviated", context: "formatting" }) || o.day(a, { width: "short", context: "formatting" }) || o.day(a, { width: "narrow", context: "formatting" }), s) } } }, { key: "validate", value: function (a, i) { return i >= 1 && i <= 7 } }, { key: "set", value: function (a, i, o) { return a = Gh(a, o), a.setUTCHours(0, 0, 0, 0), a } }]), n }(xe), Zh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 80), $(V(r), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "a": case "aa": case "aaa": return o.dayPeriod(a, { width: "abbreviated", context: "formatting" }) || o.dayPeriod(a, { width: "narrow", context: "formatting" }); case "aaaaa": return o.dayPeriod(a, { width: "narrow", context: "formatting" }); case "aaaa": default: return o.dayPeriod(a, { width: "wide", context: "formatting" }) || o.dayPeriod(a, { width: "abbreviated", context: "formatting" }) || o.dayPeriod(a, { width: "narrow", context: "formatting" }) } } }, { key: "set", value: function (a, i, o) { return a.setUTCHours(_i(o), 0, 0, 0), a } }]), n }(xe), Qh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 80), $(V(r), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "b": case "bb": case "bbb": return o.dayPeriod(a, { width: "abbreviated", context: "formatting" }) || o.dayPeriod(a, { width: "narrow", context: "formatting" }); case "bbbbb": return o.dayPeriod(a, { width: "narrow", context: "formatting" }); case "bbbb": default: return o.dayPeriod(a, { width: "wide", context: "formatting" }) || o.dayPeriod(a, { width: "abbreviated", context: "formatting" }) || o.dayPeriod(a, { width: "narrow", context: "formatting" }) } } }, { key: "set", value: function (a, i, o) { return a.setUTCHours(_i(o), 0, 0, 0), a } }]), n }(xe), Jh = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 80), $(V(r), "incompatibleTokens", ["a", "b", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "B": case "BB": case "BBB": return o.dayPeriod(a, { width: "abbreviated", context: "formatting" }) || o.dayPeriod(a, { width: "narrow", context: "formatting" }); case "BBBBB": return o.dayPeriod(a, { width: "narrow", context: "formatting" }); case "BBBB": default: return o.dayPeriod(a, { width: "wide", context: "formatting" }) || o.dayPeriod(a, { width: "abbreviated", context: "formatting" }) || o.dayPeriod(a, { width: "narrow", context: "formatting" }) } } }, { key: "set", value: function (a, i, o) { return a.setUTCHours(_i(o), 0, 0, 0), a } }]), n }(xe), ev = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 70), $(V(r), "incompatibleTokens", ["H", "K", "k", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "h": return Re(He.hour12h, a); case "ho": return o.ordinalNumber(a, { unit: "hour" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { return i >= 1 && i <= 12 } }, { key: "set", value: function (a, i, o) { var s = a.getUTCHours() >= 12; return s && o < 12 ? a.setUTCHours(o + 12, 0, 0, 0) : !s && o === 12 ? a.setUTCHours(0, 0, 0, 0) : a.setUTCHours(o, 0, 0, 0), a } }]), n }(xe), tv = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 70), $(V(r), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "H": return Re(He.hour23h, a); case "Ho": return o.ordinalNumber(a, { unit: "hour" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 23 } }, { key: "set", value: function (a, i, o) { return a.setUTCHours(o, 0, 0, 0), a } }]), n }(xe), nv = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 70), $(V(r), "incompatibleTokens", ["h", "H", "k", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "K": return Re(He.hour11h, a); case "Ko": return o.ordinalNumber(a, { unit: "hour" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 11 } }, { key: "set", value: function (a, i, o) { var s = a.getUTCHours() >= 12; return s && o < 12 ? a.setUTCHours(o + 12, 0, 0, 0) : a.setUTCHours(o, 0, 0, 0), a } }]), n }(xe), av = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 70), $(V(r), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "k": return Re(He.hour24h, a); case "ko": return o.ordinalNumber(a, { unit: "hour" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { return i >= 1 && i <= 24 } }, { key: "set", value: function (a, i, o) { var s = o <= 24 ? o % 24 : o; return a.setUTCHours(s, 0, 0, 0), a } }]), n }(xe), rv = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 60), $(V(r), "incompatibleTokens", ["t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "m": return Re(He.minute, a); case "mo": return o.ordinalNumber(a, { unit: "minute" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 59 } }, { key: "set", value: function (a, i, o) { return a.setUTCMinutes(o, 0, 0), a } }]), n }(xe), iv = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 50), $(V(r), "incompatibleTokens", ["t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i, o) { switch (i) { case "s": return Re(He.second, a); case "so": return o.ordinalNumber(a, { unit: "second" }); default: return Ve(i.length, a) } } }, { key: "validate", value: function (a, i) { return i >= 0 && i <= 59 } }, { key: "set", value: function (a, i, o) { return a.setUTCSeconds(o, 0), a } }]), n }(xe), ov = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 30), $(V(r), "incompatibleTokens", ["t", "T"]), r } return be(n, [{ key: "parse", value: function (a, i) { var o = function (l) { return Math.floor(l * Math.pow(10, -i.length + 3)) }; return ze(Ve(i.length, a), o) } }, { key: "set", value: function (a, i, o) { return a.setUTCMilliseconds(o), a } }]), n }(xe), sv = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 10), $(V(r), "incompatibleTokens", ["t", "T", "x"]), r } return be(n, [{ key: "parse", value: function (a, i) { switch (i) { case "X": return Ct(jt.basicOptionalMinutes, a); case "XX": return Ct(jt.basic, a); case "XXXX": return Ct(jt.basicOptionalSeconds, a); case "XXXXX": return Ct(jt.extendedOptionalSeconds, a); case "XXX": default: return Ct(jt.extended, a) } } }, { key: "set", value: function (a, i, o) { return i.timestampIsSet ? a : new Date(a.getTime() - o) } }]), n }(xe), lv = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 10), $(V(r), "incompatibleTokens", ["t", "T", "X"]), r } return be(n, [{ key: "parse", value: function (a, i) { switch (i) { case "x": return Ct(jt.basicOptionalMinutes, a); case "xx": return Ct(jt.basic, a); case "xxxx": return Ct(jt.basicOptionalSeconds, a); case "xxxxx": return Ct(jt.extendedOptionalSeconds, a); case "xxx": default: return Ct(jt.extended, a) } } }, { key: "set", value: function (a, i, o) { return i.timestampIsSet ? a : new Date(a.getTime() - o) } }]), n }(xe), uv = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 40), $(V(r), "incompatibleTokens", "*"), r } return be(n, [{ key: "parse", value: function (a) { return gl(a) } }, { key: "set", value: function (a, i, o) { return [new Date(o * 1e3), { timestampIsSet: !0 }] } }]), n }(xe), cv = function (e) { Fe(n, e); var t = Ue(n); function n() { var r; ye(this, n); for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)i[o] = arguments[o]; return r = t.call.apply(t, [this].concat(i)), $(V(r), "priority", 20), $(V(r), "incompatibleTokens", "*"), r } return be(n, [{ key: "parse", value: function (a) { return gl(a) } }, { key: "set", value: function (a, i, o) { return [new Date(o), { timestampIsSet: !0 }] } }]), n }(xe), dv = { G: new Sh, y: new Oh, Y: new Th, R: new Ah, u: new Dh, Q: new Mh, q: new Ph, M: new Nh, L: new Lh, w: new $h, I: new Bh, d: new zh, D: new qh, E: new Yh, e: new Kh, c: new Wh, i: new Xh, a: new Zh, b: new Qh, B: new Jh, h: new ev, H: new tv, K: new nv, k: new av, m: new rv, s: new iv, S: new ov, X: new sv, x: new lv, t: new uv, T: new cv }, fv = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, mv = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hv = /^'([^]*?)'?$/, vv = /''/g, pv = /\S/, gv = /[a-zA-Z]/; function To(e, t, n, r) { var a, i, o, s, l, u, c, d, m, g, b, U, P, S, W, q, E, D; te(3, arguments); var L = String(e), B = String(t), J = It(), ve = (a = (i = r == null ? void 0 : r.locale) !== null && i !== void 0 ? i : J.locale) !== null && a !== void 0 ? a : hl; if (!ve.match) throw new RangeError("locale must contain match property"); var k = Se((o = (s = (l = (u = r == null ? void 0 : r.firstWeekContainsDate) !== null && u !== void 0 ? u : r == null || (c = r.locale) === null || c === void 0 || (d = c.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && l !== void 0 ? l : J.firstWeekContainsDate) !== null && s !== void 0 ? s : (m = J.locale) === null || m === void 0 || (g = m.options) === null || g === void 0 ? void 0 : g.firstWeekContainsDate) !== null && o !== void 0 ? o : 1); if (!(k >= 1 && k <= 7)) throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively"); var G = Se((b = (U = (P = (S = r == null ? void 0 : r.weekStartsOn) !== null && S !== void 0 ? S : r == null || (W = r.locale) === null || W === void 0 || (q = W.options) === null || q === void 0 ? void 0 : q.weekStartsOn) !== null && P !== void 0 ? P : J.weekStartsOn) !== null && U !== void 0 ? U : (E = J.locale) === null || E === void 0 || (D = E.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && b !== void 0 ? b : 0); if (!(G >= 0 && G <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); if (B === "") return L === "" ? Q(n) : new Date(NaN); var pe = { firstWeekContainsDate: k, weekStartsOn: G, locale: ve }, ae = [new Ch], ie = B.match(mv).map(function (se) { var fe = se[0]; if (fe in Br) { var De = Br[fe]; return De(se, ve.formatLong) } return se }).join("").match(fv), re = [], X = So(ie), Y; try { var z = function () { var fe = Y.value; !(r != null && r.useAdditionalWeekYearTokens) && ml(fe) && $a(fe, B, e), !(r != null && r.useAdditionalDayOfYearTokens) && fl(fe) && $a(fe, B, e); var De = fe[0], Ye = dv[De]; if (Ye) { var f = Ye.incompatibleTokens; if (Array.isArray(f)) { var h = re.find(function (_) { return f.includes(_.token) || _.token === De }); if (h) throw new RangeError("The format string mustn't contain `".concat(h.fullToken, "` and `").concat(fe, "` at the same time")) } else if (Ye.incompatibleTokens === "*" && re.length > 0) throw new RangeError("The format string mustn't contain `".concat(fe, "` and any other token at the same time")); re.push({ token: De, fullToken: fe }); var w = Ye.run(L, fe, ve.match, pe); if (!w) return { v: new Date(NaN) }; ae.push(w.setter), L = w.rest } else { if (De.match(gv)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + De + "`"); if (fe === "''" ? fe = "'" : De === "'" && (fe = yv(fe)), L.indexOf(fe) === 0) L = L.slice(fe.length); else return { v: new Date(NaN) } } }; for (X.s(); !(Y = X.n()).done;) { var Te = z(); if (dt(Te) === "object") return Te.v } } catch (se) { X.e(se) } finally { X.f() } if (L.length > 0 && pv.test(L)) return new Date(NaN); var Me = ae.map(function (se) { return se.priority }).sort(function (se, fe) { return fe - se }).filter(function (se, fe, De) { return De.indexOf(se) === fe }).map(function (se) { return ae.filter(function (fe) { return fe.priority === se }).sort(function (fe, De) { return De.subPriority - fe.subPriority }) }).map(function (se) { return se[0] }), Ae = Q(n); if (isNaN(Ae.getTime())) return new Date(NaN); var Ee = sl(Ae, rl(Ae)), je = {}, Ie = So(Me), I; try { for (Ie.s(); !(I = Ie.n()).done;) { var ue = I.value; if (!ue.validate(Ee, pe)) return new Date(NaN); var ke = ue.set(Ee, je, pe); Array.isArray(ke) ? (Ee = ke[0], wh(je, ke[1])) : Ee = ke } } catch (se) { Ie.e(se) } finally { Ie.f() } return Ee } function yv(e) { return e.match(hv)[1].replace(vv, "'") } function Ao(e) { te(1, arguments); var t = Q(e); return t.setMinutes(0, 0, 0), t } function bv(e, t) { te(2, arguments); var n = Ao(e), r = Ao(t); return n.getTime() === r.getTime() } function wv(e, t) { te(2, arguments); var n = xo(e), r = xo(t); return n.getTime() === r.getTime() } function Hr(e, t) { te(2, arguments); var n = Q(e), r = Q(t); return n.getFullYear() === r.getFullYear() && n.getMonth() === r.getMonth() } function Do(e, t) { te(2, arguments); var n = Q(e), r = Q(t); return n.getFullYear() === r.getFullYear() } function Fv(e, t) { te(2, arguments); var n = Q(e).getTime(), r = Q(t.start).getTime(), a = Q(t.end).getTime(); if (!(r <= a)) throw new RangeError("Invalid interval"); return n >= r && n <= a } function Uv(e, t) { te(2, arguments); var n = Q(e), r = Se(t), a = n.getFullYear(), i = n.getDate(), o = new Date(0); o.setFullYear(a, r, 15), o.setHours(0, 0, 0, 0); var s = Fh(o); return n.setMonth(r, Math.min(i, s)), n } function Mo(e, t) { if (te(2, arguments), dt(t) !== "object" || t === null) throw new RangeError("values parameter must be an object"); var n = Q(e); return isNaN(n.getTime()) ? new Date(NaN) : (t.year != null && n.setFullYear(t.year), t.month != null && (n = Uv(n, t.month)), t.date != null && n.setDate(Se(t.date)), t.hours != null && n.setHours(Se(t.hours)), t.minutes != null && n.setMinutes(Se(t.minutes)), t.seconds != null && n.setSeconds(Se(t.seconds)), t.milliseconds != null && n.setMilliseconds(Se(t.milliseconds)), n) } function _v(e, t, n) { var r, a, i, o, s, l, u, c; te(2, arguments); var d = It(), m = Se((r = (a = (i = (o = n == null ? void 0 : n.weekStartsOn) !== null && o !== void 0 ? o : n == null || (s = n.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && i !== void 0 ? i : d.weekStartsOn) !== null && a !== void 0 ? a : (u = d.locale) === null || u === void 0 || (c = u.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && r !== void 0 ? r : 0); if (!(m >= 0 && m <= 6)) throw new RangeError("weekStartsOn must be between 0 and 6 inclusively"); var g = Q(e), b = Se(t), U = g.getDay(), P = b % 7, S = (P + 7) % 7, W = 7 - m, q = b < 0 || b > 6 ? b - (U + W) % 7 : (S + W) % 7 - (U + W) % 7; return Jf(g, q) } function xv(e) { te(1, arguments); var t = Q(e), n = t.getFullYear(), r = Math.floor(n / 10) * 10; return t.setFullYear(r, 0, 1), t.setHours(0, 0, 0, 0), t } function Ev(e, t) { te(2, arguments); var n = Se(t); return wi(e, -n) } function wl(e, t) { te(2, arguments); var n = Se(t); return Fi(e, -n) } const kv = ["year", "month", "day", "time", "custom"], jv = Nt({ emits: { elementClick: e => lt(e), left: () => !0, right: () => !0, heading: () => !0 }, props: { headingClickable: { type: Boolean, default: !1 }, leftDisabled: { type: Boolean, default: !1 }, rightDisabled: { type: Boolean, default: !1 }, columnCount: { type: Number, default: 7 }, items: { type: Array, default: () => [] }, viewMode: { type: String, required: !0, validate: e => typeof e == "string" && kv.includes(e) } } }), Rn = (e, t) => { const n = e.__vccOpts || e; for (const [r, a] of t) n[r] = a; return n }, Ei = e => (cs("data-v-65eb861b"), e = e(), ds(), e), Cv = { class: "v3dp__heading" }, Sv = ["disabled"], Ov = Ei(() => F("svg", { class: "v3dp__heading__icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 6 8" }, [F("g", { fill: "none", "fill-rule": "evenodd" }, [F("path", { stroke: "none", d: "M-9 16V-8h24v24z" }), F("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M5 0L1 4l4 4" })])], -1)), Tv = ["disabled"], Av = Ei(() => F("svg", { class: "v3dp__heading__icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 6 8" }, [F("g", { fill: "none", "fill-rule": "evenodd" }, [F("path", { stroke: "none", d: "M15-8v24H-9V-8z" }), F("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M1 8l4-4-4-4" })])], -1)), Dv = { class: "v3dp__body" }, Mv = { class: "v3dp__subheading" }, Pv = Ei(() => F("hr", { class: "v3dp__divider" }, null, -1)), Nv = { class: "v3dp__elements" }, Lv = ["disabled", "onClick"]; function Iv(e, t, n, r, a, i) { return R(), ne("div", { class: Wt(["v3dp__popout", `v3dp__popout-${e.viewMode}`]), style: Nn({ ["--popout-column-definition"]: `repeat(${e.columnCount}, 1fr)` }), onMousedown: t[3] || (t[3] = on(() => { }, ["prevent"])) }, [F("div", Cv, [F("button", { class: "v3dp__heading__button v3dp__heading__button__left", disabled: e.leftDisabled, onClick: t[0] || (t[0] = on(o => e.$emit("left"), ["stop", "prevent"])) }, [Un(e.$slots, "arrow-left", {}, () => [Ov], !0)], 8, Sv), (R(), Ze(Qa(e.headingClickable ? "button" : "span"), { class: "v3dp__heading__center", onClick: t[1] || (t[1] = on(o => e.$emit("heading"), ["stop", "prevent"])) }, { default: bt(() => [Un(e.$slots, "heading", {}, void 0, !0)]), _: 3 })), F("button", { class: "v3dp__heading__button v3dp__heading__button__right", disabled: e.rightDisabled, onClick: t[2] || (t[2] = on(o => e.$emit("right"), ["stop", "prevent"])) }, [Un(e.$slots, "arrow-right", {}, () => [Av], !0)], 8, Tv)]), F("div", Dv, ["subheading" in e.$slots ? (R(), ne(Ne, { key: 0 }, [F("div", Mv, [Un(e.$slots, "subheading", {}, void 0, !0)]), Pv], 64)) : Ge("", !0), F("div", Nv, [Un(e.$slots, "body", {}, () => [(R(!0), ne(Ne, null, Xt(e.items, o => (R(), ne("button", { key: o.key, disabled: o.disabled, class: Wt([{ selected: o.selected, current: o.current }, `v3dp__element__button__${e.viewMode}`]), onClick: on(s => e.$emit("elementClick", o.value), ["stop", "prevent"]) }, [F("span", null, he(o.display), 1)], 10, Lv))), 128))], !0)])])], 38) } const sr = Rn(jv, [["render", Iv], ["__scopeId", "data-v-65eb861b"]]), $v = Nt({ components: { PickerPopup: sr }, emits: { "update:pageDate": e => lt(e), select: e => lt(e) }, props: { selected: { type: Date, required: !1 }, pageDate: { type: Date, required: !0 }, lowerLimit: { type: Date, required: !1 }, upperLimit: { type: Date, required: !1 } }, setup(e, { emit: t }) { const n = ee(() => xv(e.pageDate)), r = ee(() => vm(e.pageDate)), a = (u, c, d) => !c && !d ? !0 : !(c && mt(u) < mt(c) || d && mt(u) > mt(d)), i = ee(() => hm({ start: n.value, end: r.value }).map(u => ({ value: u, key: String(mt(u)), display: mt(u), selected: !!e.selected && mt(u) === mt(e.selected), disabled: !a(u, e.lowerLimit, e.upperLimit) }))), o = ee(() => { const u = mt(n.value), c = mt(r.value); return `${u} - ${c}` }), s = ee(() => e.lowerLimit && (ga(e.lowerLimit) === ga(e.pageDate) || oa(e.pageDate, e.lowerLimit))), l = ee(() => e.upperLimit && (ga(e.upperLimit) === ga(e.pageDate) || ia(e.pageDate, e.upperLimit))); return { years: i, heading: o, leftDisabled: s, rightDisabled: l, previousPage: () => t("update:pageDate", wl(e.pageDate, 10)), nextPage: () => t("update:pageDate", Fi(e.pageDate, 10)) } } }); function Rv(e, t, n, r, a, i) { const o = zt("picker-popup"); return R(), Ze(o, { columnCount: 3, leftDisabled: e.leftDisabled, rightDisabled: e.rightDisabled, items: e.years, viewMode: "year", onLeft: e.previousPage, onRight: e.nextPage, onElementClick: t[0] || (t[0] = s => e.$emit("select", s)) }, { heading: bt(() => [pn(he(e.heading), 1)]), _: 1 }, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]) } const Bv = Rn($v, [["render", Rv]]), Vv = Nt({ components: { PickerPopup: sr }, emits: { "update:pageDate": e => lt(e), select: e => lt(e), back: () => !0 }, props: { selected: { type: Date, required: !1 }, pageDate: { type: Date, required: !0 }, format: { type: String, required: !1, default: "LLL" }, locale: { type: Object, required: !1 }, lowerLimit: { type: Date, required: !1 }, upperLimit: { type: Date, required: !1 } }, setup(e, { emit: t }) { const n = ee(() => mm(e.pageDate)), r = ee(() => fm(e.pageDate)), a = ee(() => c => ra(c, e.format, { locale: e.locale })), i = (c, d, m) => !d && !m ? !0 : !(d && oa(c, ol(d)) || m && ia(c, il(m))), o = ee(() => dm({ start: n.value, end: r.value }).map(c => ({ value: c, display: a.value(c), key: a.value(c), selected: !!e.selected && Hr(e.selected, c), disabled: !i(c, e.lowerLimit, e.upperLimit) }))), s = ee(() => mt(n.value)), l = ee(() => e.lowerLimit && (Do(e.lowerLimit, e.pageDate) || oa(e.pageDate, e.lowerLimit))), u = ee(() => e.upperLimit && (Do(e.upperLimit, e.pageDate) || ia(e.pageDate, e.upperLimit))); return { months: o, heading: s, leftDisabled: l, rightDisabled: u, previousPage: () => t("update:pageDate", wl(e.pageDate, 1)), nextPage: () => t("update:pageDate", Fi(e.pageDate, 1)) } } }); function Hv(e, t, n, r, a, i) { const o = zt("picker-popup"); return R(), Ze(o, { headingClickable: "", columnCount: 3, items: e.months, leftDisabled: e.leftDisabled, rightDisabled: e.rightDisabled, viewMode: "month", onLeft: e.previousPage, onRight: e.nextPage, onHeading: t[0] || (t[0] = s => e.$emit("back")), onElementClick: t[1] || (t[1] = s => e.$emit("select", s)) }, { heading: bt(() => [pn(he(e.heading), 1)]), _: 1 }, 8, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"]) } const zv = Rn(Vv, [["render", Hv]]), qv = Nt({ components: { PickerPopup: sr }, emits: { "update:pageDate": e => lt(e), select: e => lt(e), back: () => !0 }, props: { selected: { type: Date, required: !1 }, pageDate: { type: Date, required: !0 }, format: { type: String, required: !1, default: "dd" }, headingFormat: { type: String, required: !1, default: "LLLL yyyy" }, weekdayFormat: { type: String, required: !1, default: "EE" }, locale: { type: Object, required: !1 }, weekStartsOn: { type: Number, required: !1, default: 1, validator: e => typeof e == "number" && Number.isInteger(e) && e >= 0 && e <= 6 }, lowerLimit: { type: Date, required: !1 }, upperLimit: { type: Date, required: !1 }, disabledDates: { type: Object, required: !1 }, allowOutsideInterval: { type: Boolean, required: !1, default: !1 } }, setup(e, { emit: t }) { const n = ee(() => g => b => ra(b, g, { locale: e.locale, weekStartsOn: e.weekStartsOn })), r = ee(() => ol(e.pageDate)), a = ee(() => il(e.pageDate)), i = ee(() => ({ start: r.value, end: a.value })), o = ee(() => ({ start: nm(r.value, { weekStartsOn: e.weekStartsOn }), end: pm(a.value, { weekStartsOn: e.weekStartsOn }) })), s = ee(() => { const g = e.weekStartsOn, b = n.value(e.weekdayFormat); return Array.from(Array(7)).map((U, P) => (g + P) % 7).map(U => _v(new Date, U, { weekStartsOn: e.weekStartsOn })).map(b) }), l = (g, b, U, P) => { var S, W; return (S = P == null ? void 0 : P.dates) != null && S.some(q => yr(g, q)) || (W = P == null ? void 0 : P.predicate) != null && W.call(P, g) ? !1 : !b && !U ? !0 : !(b && oa(g, Rr(b)) || U && ia(g, um(U))) }, u = ee(() => { const g = new Date, b = n.value(e.format); return cm(o.value).map(U => ({ value: U, display: b(U), selected: !!e.selected && yr(e.selected, U), current: yr(g, U), disabled: !e.allowOutsideInterval && !Fv(U, i.value) || !l(U, e.lowerLimit, e.upperLimit, e.disabledDates), key: n.value("yyyy-MM-dd")(U) })) }), c = ee(() => n.value(e.headingFormat)(e.pageDate)), d = ee(() => e.lowerLimit && (Hr(e.lowerLimit, e.pageDate) || oa(e.pageDate, e.lowerLimit))), m = ee(() => e.upperLimit && (Hr(e.upperLimit, e.pageDate) || ia(e.pageDate, e.upperLimit))); return { weekDays: s, days: u, heading: c, leftDisabled: d, rightDisabled: m, previousPage: () => t("update:pageDate", Ev(e.pageDate, 1)), nextPage: () => t("update:pageDate", wi(e.pageDate, 1)) } } }); function Yv(e, t, n, r, a, i) { const o = zt("picker-popup"); return R(), Ze(o, { headingClickable: "", leftDisabled: e.leftDisabled, rightDisabled: e.rightDisabled, items: e.days, viewMode: "day", onLeft: e.previousPage, onRight: e.nextPage, onHeading: t[0] || (t[0] = s => e.$emit("back")), onElementClick: t[1] || (t[1] = s => e.$emit("select", s)) }, { heading: bt(() => [pn(he(e.heading), 1)]), subheading: bt(() => [(R(!0), ne(Ne, null, Xt(e.weekDays, (s, l) => (R(), ne("span", { key: s, class: Wt(`v3dp__subheading__weekday__${l}`) }, he(s), 3))), 128))]), _: 1 }, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]) } const Kv = Rn(qv, [["render", Yv]]); function Po(e, t) { const n = e.getBoundingClientRect(), r = { height: e.clientHeight, width: e.clientWidth }, a = t.getBoundingClientRect(); if (!(a.top >= n.top && a.bottom <= n.top + r.height)) { const i = a.top - n.top, o = a.bottom - n.bottom; Math.abs(i) < Math.abs(o) ? e.scrollTop += i : e.scrollTop += o } } const Wv = Nt({ components: { PickerPopup: sr }, emits: { select: e => lt(e), back: () => !0 }, props: { selected: { type: Date, required: !1 }, pageDate: { type: Date, required: !0 }, visible: { type: Boolean, required: !0 }, disabledTime: { type: Object, required: !1 } }, setup(e, { emit: t }) { const n = oe(null), r = oe(null), a = ee(() => e.pageDate ?? e.selected), i = oe(a.value.getHours()), o = oe(a.value.getMinutes()); ut(() => e.selected, d => { let m = 0, g = 0; d && (m = d.getHours(), g = d.getMinutes()), i.value = m, o.value = g }); const s = ee(() => [...Array(24).keys()].map(d => ({ value: d, date: Mo(new Date(a.value.getTime()), { hours: d, minutes: o.value, seconds: 0 }), selected: i.value === d, ref: oe(null) }))), l = ee(() => [...Array(60).keys()].map(d => ({ value: d, date: Mo(new Date(a.value.getTime()), { hours: i.value, minutes: d, seconds: 0 }), selected: o.value === d, ref: oe(null) }))), u = d => { o.value = d.value, t("select", d.date) }, c = () => { const d = s.value.find(g => { var b, U; return ((U = (b = g.ref.value) == null ? void 0 : b.classList) == null ? void 0 : U.contains("selected")) ?? !1 }), m = l.value.find(g => { var b, U; return ((U = (b = g.ref.value) == null ? void 0 : b.classList) == null ? void 0 : U.contains("selected")) ?? !1 }); d && m && (Po(n.value, d.ref.value), Po(r.value, m.ref.value)) }; return ut(() => e.visible, d => { d && sn(c) }), { hoursListRef: n, minutesListRef: r, hours: i, minutes: o, hoursList: s, minutesList: l, padStartZero: d => `0${d}`.substr(-2), selectMinutes: u, isEnabled: d => { var m, g, b, U; return !((g = (m = e.disabledTime) == null ? void 0 : m.dates) != null && g.some(P => bv(d, P) && wv(d, P)) || (U = (b = e.disabledTime) == null ? void 0 : b.predicate) != null && U.call(b, d)) }, scroll: c } } }), Gv = { ref: "hoursListRef", class: "v3dp__column" }, Xv = ["disabled", "onClick"], Zv = { ref: "minutesListRef", class: "v3dp__column" }, Qv = ["disabled", "onClick"]; function Jv(e, t, n, r, a, i) { const o = zt("picker-popup"); return R(), Ze(o, { headingClickable: "", columnCount: 2, leftDisabled: !0, rightDisabled: !0, viewMode: "time", onHeading: t[0] || (t[0] = s => e.$emit("back")) }, { heading: bt(() => [pn(he(e.padStartZero(e.hours)) + ":" + he(e.padStartZero(e.minutes)), 1)]), body: bt(() => [F("div", Gv, [(R(!0), ne(Ne, null, Xt(e.hoursList, s => (R(), ne("button", { key: s.value, ref_for: !0, ref: s.ref, class: Wt([{ selected: s.selected }, "v3dp__element_button__hour"]), disabled: !e.isEnabled(s.date), onClick: on(l => e.hours = s.value, ["stop", "prevent"]) }, [F("span", null, he(e.padStartZero(s.value)), 1)], 10, Xv))), 128))], 512), F("div", Zv, [(R(!0), ne(Ne, null, Xt(e.minutesList, s => (R(), ne("button", { key: s.value, ref_for: !0, ref: s.ref, class: Wt([{ selected: s.selected }, "v3dp__element_button__minute"]), disabled: !e.isEnabled(s.date), onClick: on(l => e.selectMinutes(s), ["stop", "prevent"]) }, [F("span", null, he(e.padStartZero(s.value)), 1)], 10, Qv))), 128))], 512)]), _: 1 }) } const ep = Rn(Wv, [["render", Jv], ["__scopeId", "data-v-81ac698d"]]), ya = ["time", "day", "month", "year"], tp = (e, t, n = void 0) => { let r = n || new Date; return e && (r = am([e, r])), t && (r = rm([t, r])), r }, np = Nt({ components: { YearPicker: Bv, MonthPicker: zv, DayPicker: Kv, TimePicker: ep }, inheritAttrs: !1, props: { placeholder: { type: String, default: "" }, modelValue: { type: Date, required: !1 }, disabledDates: { type: Object, required: !1 }, allowOutsideInterval: { type: Boolean, required: !1, default: !1 }, disabledTime: { type: Object, required: !1 }, upperLimit: { type: Date, required: !1 }, lowerLimit: { type: Date, required: !1 }, startingView: { type: String, required: !1, default: "day", validate: e => typeof e == "string" && ya.includes(e) }, startingViewDate: { type: Date, required: !1, default: () => new Date }, dayPickerHeadingFormat: { type: String, required: !1, default: "LLLL yyyy" }, monthListFormat: { type: String, required: !1, default: "LLL" }, weekdayFormat: { type: String, required: !1, default: "EE" }, dayFormat: { type: String, required: !1, default: "dd" }, inputFormat: { type: String, required: !1, default: "yyyy-MM-dd" }, locale: { type: Object, required: !1 }, weekStartsOn: { type: Number, required: !1, default: 1, validator: e => [0, 1, 2, 3, 4, 5, 6].includes(e) }, disabled: { type: Boolean, required: !1, default: !1 }, clearable: { type: Boolean, required: !1, default: !1 }, typeable: { type: Boolean, required: !1, default: !1 }, minimumView: { type: String, required: !1, default: "day", validate: e => typeof e == "string" && ya.includes(e) } }, emits: { "update:modelValue": e => e == null || lt(e), decadePageChanged: e => !0, yearPageChanged: e => !0, monthPageChanged: e => !0, opened: () => !0, closed: () => !0 }, setup(e, { emit: t, attrs: n }) { const r = oe("none"), a = oe(e.startingViewDate), i = oe(null), o = oe(!1), s = oe(""); Fa(() => { const E = To(s.value, e.inputFormat, new Date, { locale: e.locale }); lt(E) && (a.value = E) }), Fa(() => s.value = e.modelValue && lt(e.modelValue) ? ra(e.modelValue, e.inputFormat, { locale: e.locale }) : ""); const l = (E = "none") => { e.disabled || (E !== "none" && r.value === "none" && (a.value = e.modelValue || tp(e.lowerLimit, e.upperLimit, a.value)), r.value = E, t(E !== "none" ? "opened" : "closed")) }; Fa(() => { e.disabled && (r.value = "none") }); const u = (E, D) => { a.value = D, E === "year" ? t("decadePageChanged", D) : E === "month" ? t("yearPageChanged", D) : E === "day" && t("monthPageChanged", D) }, c = E => { a.value = E, e.minimumView === "year" ? (l("none"), t("update:modelValue", E)) : r.value = "month" }, d = E => { a.value = E, e.minimumView === "month" ? (l("none"), t("update:modelValue", E)) : r.value = "day" }, m = E => { a.value = E, e.minimumView === "day" ? (l("none"), t("update:modelValue", E)) : r.value = "time" }, g = E => { l("none"), t("update:modelValue", E) }, b = () => { e.clearable && (l("none"), t("update:modelValue", null), a.value = e.startingViewDate) }, U = () => o.value = !0, P = () => l(q.value), S = () => { o.value = !1, l() }, W = E => { const D = E.keyCode ? E.keyCode : E.which; if ([27, 13].includes(D) && i.value.blur(), e.typeable) { const L = To(i.value.value, e.inputFormat, new Date, { locale: e.locale }); lt(L) && s.value === ra(L, e.inputFormat, { locale: e.locale }) && (s.value = i.value.value, t("update:modelValue", L)) } }, q = ee(() => { const E = ya.indexOf(e.startingView), D = ya.indexOf(e.minimumView); return E < D ? e.minimumView : e.startingView }); return { blur: S, focus: P, click: U, input: s, inputRef: i, pageDate: a, renderView: l, updatePageDate: u, selectYear: c, selectMonth: d, selectDay: m, selectTime: g, keyUp: W, viewShown: r, goBackFromTimepicker: () => e.startingView === "time" && e.minimumView === "time" ? null : r.value = "day", clearModelValue: b, initialView: q, log: E => console.log(E), variables: E => Object.fromEntries(Object.entries(E ?? {}).filter(([D, L]) => D.startsWith("--"))) } } }), ap = { class: "v3dp__input_wrapper" }, rp = ["readonly", "placeholder", "disabled", "tabindex"], ip = { class: "v3dp__clearable" }; function op(e, t, n, r, a, i) { const o = zt("year-picker"), s = zt("month-picker"), l = zt("day-picker"), u = zt("time-picker"); return R(), ne("div", { class: "v3dp__datepicker", style: Nn(e.variables(e.$attrs.style)) }, [F("div", ap, [_t(F("input", Ss({ type: "text", ref: "inputRef", readonly: !e.typeable, "onUpdate:modelValue": t[0] || (t[0] = c => e.input = c) }, e.$attrs, { placeholder: e.placeholder, disabled: e.disabled, tabindex: e.disabled ? -1 : 0, onKeyup: t[1] || (t[1] = (...c) => e.keyUp && e.keyUp(...c)), onBlur: t[2] || (t[2] = (...c) => e.blur && e.blur(...c)), onFocus: t[3] || (t[3] = (...c) => e.focus && e.focus(...c)), onClick: t[4] || (t[4] = (...c) => e.click && e.click(...c)) }), null, 16, rp), [[Nc, e.input]]), _t(F("div", ip, [Un(e.$slots, "clear", { onClear: e.clearModelValue }, () => [F("i", { onClick: t[5] || (t[5] = c => e.clearModelValue()) }, "x")])], 512), [[Dt, e.clearable && e.modelValue]])]), _t(de(o, { pageDate: e.pageDate, "onUpdate:pageDate": t[6] || (t[6] = c => e.updatePageDate("year", c)), selected: e.modelValue, lowerLimit: e.lowerLimit, upperLimit: e.upperLimit, onSelect: e.selectYear }, null, 8, ["pageDate", "selected", "lowerLimit", "upperLimit", "onSelect"]), [[Dt, e.viewShown === "year"]]), _t(de(s, { pageDate: e.pageDate, "onUpdate:pageDate": t[7] || (t[7] = c => e.updatePageDate("month", c)), selected: e.modelValue, onSelect: e.selectMonth, lowerLimit: e.lowerLimit, upperLimit: e.upperLimit, format: e.monthListFormat, locale: e.locale, onBack: t[8] || (t[8] = c => e.viewShown = "year") }, null, 8, ["pageDate", "selected", "onSelect", "lowerLimit", "upperLimit", "format", "locale"]), [[Dt, e.viewShown === "month"]]), _t(de(l, { pageDate: e.pageDate, "onUpdate:pageDate": t[9] || (t[9] = c => e.updatePageDate("day", c)), selected: e.modelValue, weekStartsOn: e.weekStartsOn, lowerLimit: e.lowerLimit, upperLimit: e.upperLimit, headingFormat: e.dayPickerHeadingFormat, disabledDates: e.disabledDates, locale: e.locale, weekdayFormat: e.weekdayFormat, "allow-outside-interval": e.allowOutsideInterval, format: e.dayFormat, onSelect: e.selectDay, onBack: t[10] || (t[10] = c => e.viewShown = "month") }, null, 8, ["pageDate", "selected", "weekStartsOn", "lowerLimit", "upperLimit", "headingFormat", "disabledDates", "locale", "weekdayFormat", "allow-outside-interval", "format", "onSelect"]), [[Dt, e.viewShown === "day"]]), _t(de(u, { pageDate: e.pageDate, visible: e.viewShown === "time", selected: e.modelValue, disabledTime: e.disabledTime, onSelect: e.selectTime, onBack: e.goBackFromTimepicker }, null, 8, ["pageDate", "visible", "selected", "disabledTime", "onSelect", "onBack"]), [[Dt, e.viewShown === "time"]])], 4) } const sp = Rn(np, [["render", op]]); const lp = { class: "mt-40 animate__animated animate__fadeInLeft animate__faster" }, up = { class: "text-white font-bold text-xl opacity-40 m-2 drop-shadow-md uppercase" }, cp = { class: "main-color mb-4 w-1/5 p-9 rounded flex flex-col" }, dp = { class: "text-white text-xl font-bold font-sans opacity-90 mb-5" }, fp = { class: "flex" }, mp = { class: "inline-flex items-center px-3 text-sm main-color-2 text-white rounded-l-md" }, hp = { class: "relative flex-1" }, vp = { class: "mb-4 mt-1" }, pp = { class: "flex" }, gp = { class: "inline-flex items-center px-3 text-sm main-color-2 text-white rounded-l-md" }, yp = { class: "mb-4 mt-1" }, bp = { class: "flex" }, wp = { class: "inline-flex items-center px-3 text-sm main-color-2 text-white rounded-l-md" }, Fp = { value: "" }, Up = { value: "male" }, _p = { value: "female" }, xp = { class: "mb-4 mt-1" }, Ep = { class: "flex" }, kp = { class: "inline-flex items-center px-3 text-sm main-color-2 text-white rounded-l-md" }, jp = { class: "mb-4 mt-1" }, Cp = { key: 0, class: "text-white text-xs bg-red-500 p-1 rounded mt-2" }, Sp = { class: "flex mb-1" }, Op = { class: "inline-flex items-center px-3 text-sm main-color-2 text-white rounded-l-md" }, Tp = { value: "" }, Ap = ["value"], Dp = { class: "mb-4 mt-1" }, Mp = { class: "flex items-center justify-center mt-10" }, Pp = { type: "submit", class: "uppercase bg-gray-600 hover:bg-green-700 text-white font-bold p-3 rounded transition-colors duration-200 flex items-center justify-center" }, Np = { __name: "CharacterRegister", props: { generateCID: { type: Number, required: !0 }, Lang: { type: Object, required: !0 } }, setup(e) { const t = e, n = oe(null), r = oe(!1), a = oe(!1), i = oe({ "--vdp-bg-color": "#16191c", "--vdp-text-color": "#dedede", "--vdp-box-shadow": "0 2px 5px 0 rgba(128, 144, 160, 0.1), 0 0 1px 0 rgba(128, 144, 160, 0.81)", "--vdp-border-radius": "6px", "--vdp-heading-size": "2.5em", "--vdp-heading-weight": "bold", "--vdp-heading-hover-color": "#292e32", "--vdp-arrow-color": "currentColor", "--vdp-elem-color": "currentColor", "--vdp-disabled-color": "#d5d9e0", "--vdp-hover-color": "#ffffff", "--vdp-hover-bg-color": "#0baf74", "--vdp-selected-color": "#ffffff", "--vdp-selected-bg-color": "#0baf74", "--vdp-current-date-outline-color": "#16191c", "--vdp-current-date-font-weight": "bold", "--vdp-elem-font-size": "0.8em", "--vdp-elem-border-radius": "3px", "--vdp-divider-color": "#6b6b6b" }), o = Object.values(gd.countries), s = nl({ firstName: _a().min(1, "min 3 character").max(30, "max 30 character").required("required field").matches(/^[\p{L} ]+$/u, "You can't use special characters").test("bad-word-check", "The name contains forbidden words", c => !_o.some(d => c.toLowerCase() === d.toLowerCase())), lastName: _a().min(1, "min 3 character").max(30, "max 30 character").required("required field").matches(/^[\p{L} ]+$/u, "You can't use special characters").test("bad-word-check", "The name contains forbidden words", c => !_o.some(d => c.toLowerCase() === d.toLowerCase())), sex: Qs("required field").oneOf(["male", "female"], "required field").defined("required field"), nat: _a().required("required field").oneOf(o.map(c => c.name), "required field") }); function l(c) { return c.charAt(0).toUpperCase() + c.slice(1) } function u(c) { if (n.value) r.value = !1; else return r.value = !0; if (a.value) return; const d = ra(n.value, "yyyy-MM-dd"); Kt("createNewCharacter", { firstname: l(c.firstName), lastname: l(c.lastName), nationality: c.nat, birthdate: d, gender: c.sex, cid: t.generateCID.toString() }) } return (c, d) => (R(), ne("div", lp, [F("h1", up, he(e.Lang.title), 1), F("div", cp, [F("h1", dp, he(e.Lang.subtitle), 1), de(A(sf), { onSubmit: u, "validation-schema": A(s) }, { default: bt(() => [F("div", fp, [F("span", mp, [de(A(oo), { class: "h-5 w-5 text-gray-300" })]), F("div", hp, [de(A(ha), { name: "firstName", type: "text", class: "capitalize rounded-none rounded-r-lg main-color-2 text-white block w-full text-sm p-2.5", placeholder: e.Lang.firstname }, null, 8, ["placeholder"])])]), F("div", vp, [de(A(va), { name: "firstName", class: "text-white text-xs bg-red-500 p-1 rounded mt-2" })]), F("div", pp, [F("span", gp, [de(A(oo), { class: "h-5 w-5 text-gray-300" })]), de(A(ha), { name: "lastName", type: "text", class: "capitalize rounded-none rounded-r-lg main-color-2 text-white block flex-1 min-w-0 w-full text-sm p-2.5", placeholder: e.Lang.lastname }, null, 8, ["placeholder"])]), F("div", yp, [de(A(va), { name: "lastName", class: "text-white text-xs bg-red-500 p-1 rounded mt-2" })]), F("div", bp, [F("span", wp, [de(A(id), { class: "h-5 w-5 text-gray-300" })]), de(A(ha), { name: "sex", as: "select", class: "rounded-none rounded-r-lg main-color-2 text-gray-400 block flex-1 min-w-0 w-full text-sm p-2.5" }, { default: bt(() => [F("option", Fp, he(e.Lang.gender.type), 1), F("option", Up, he(e.Lang.gender.male), 1), F("option", _p, he(e.Lang.gender.female), 1)]), _: 1 })]), F("div", xp, [de(A(va), { name: "sex", class: "text-white text-xs bg-red-500 p-1 rounded mt-2" })]), F("div", Ep, [F("span", kp, [de(A(Ds), { class: "h-5 w-5 text-gray-300" })]), de(A(sp), { style: Nn(i.value), modelValue: n.value, "onUpdate:modelValue": d[0] || (d[0] = m => n.value = m), class: "rounded-none rounded-r-lg main-color-2 text-white block flex-1 min-w-0 w-full text-sm p-2.5", placeholder: e.Lang.dob }, null, 8, ["style", "modelValue", "placeholder"])]), F("div", jp, [r.value ? (R(), ne("span", Cp, "required field")) : Ge("", !0)]), F("div", Sp, [F("span", Op, [de(A(Ms), { class: "h-5 w-5 text-gray-300" })]), de(A(ha), { name: "nat", as: "select", class: "rounded-none rounded-r-lg main-color-2 text-gray-400 block flex-1 min-w-0 w-full text-sm p-2.5" }, { default: bt(() => [F("option", Tp, he(e.Lang.country), 1), (R(!0), ne(Ne, null, Xt(A(o), m => (R(), ne("option", { key: m.name, value: m.name }, he(m.name), 9, Ap))), 128))]), _: 1 })]), F("div", Dp, [de(A(va), { name: "nat", class: "text-white text-xs bg-red-500 p-1 rounded mt-2" })]), F("div", Mp, [F("button", Pp, [de(A(Zc), { class: "h-6 w-7 text-gray-300 text-center" }), pn(" " + he(e.Lang.button), 1)])])]), _: 1 }, 8, ["validation-schema"])])])) } }, Lp = $n(Np, [["__scopeId", "data-v-465ace0f"]]), Ip = ["default", "ArenaEMP", "ArenaEMP_Blend", "beastLaunch01", "beastLaunch02", "BikerFormFlash", "BikersSPLASH", "BombCamFlash", "casino_mainfloor", "cinema", "CrossLine01", "CrossLine02", "dont_tazeme_bro", "dont_tazeme_bro_b", "drug_flying_base", "FIB_A", "Forest", "hud_def_flash", "InchOrange01", "InchOrange02", "LectroDark"]; const $p = { class: "fixed top-0 left-0 w-full h-full bg-gray-500 bg-opacity-50 animate__animated animate__fadeIn" }, Rp = { class: "flex py-4 justify-center overflow-x-auto animate__animated animate__fadeIn" }, Bp = ["onClick"], Vp = ["src"], Hp = { class: "flex main-color rounded opacity-80 justify-center items-center p-3 hover:bg-gray-500 hover:text-black transition-colors duration-200" }, zp = { __name: "PhotoMode", props: { Lang: { type: Object, required: !0 } }, setup(e) { const t = oe(!1), n = r => { Kt("photoFilter", r), ct("filtersound") }; return (r, a) => (R(), ne("div", $p, [_t(F("div", Rp, [(R(!0), ne(Ne, null, Xt(A(Ip), (i, o) => (R(), ne("button", { key: o, class: "relative mx-2 px-6 py-5 text-white rounded-lg border border-gray-300 focus:outline-none flex flex-col items-center transition transform hover:scale-150 duration-200", onClick: s => n(i) }, [F("img", { src: `./filters/${i}.png`, alt: "filter image", class: "absolute inset-0 w-20 h-full object-cover rounded-lg" }, null, 8, Vp)], 8, Bp))), 128))], 512), [[Dt, !t.value]]), F("div", { class: "flex py-4 justify-center items-center cursor-pointer text-gray-300", onClick: a[0] || (a[0] = i => t.value = !t.value) }, [F("div", Hp, [de(A(Xc), { class: "h-6 w-7 text-center hover:text-black" }), F("small", null, he(e.Lang.info), 1)])])])) } }, qp = $n(zp, [["__scopeId", "data-v-e52d4bdb"]]); const Yp = { class: "relative h-screen bg-black text-white bg-opacity-90 flex items-center justify-center overflow-hidden animate__animated animate__fadeIn" }, Kp = { class: "animate-credits text-center" }, Wp = { class: "text-1xl font-bold" }, Gp = { __name: "Credits", props: { creditsList: { type: Array, required: !0 } }, setup(e) { return (t, n) => (R(), ne("div", Yp, [F("div", Kp, [(R(!0), ne(Ne, null, Xt(e.creditsList, (r, a) => (R(), ne("div", { key: a, class: "py-2 mt-5" }, [F("div", Wp, he(r.title), 1), (R(!0), ne(Ne, null, Xt(r.users, (i, o) => (R(), ne("div", { key: o }, he(i), 1))), 128))]))), 128))])])) } }, Xp = $n(Gp, [["__scopeId", "data-v-273f220c"]]), Zp = { class: "absolute inset-0 w-full h-full bg-black animate__animated animate__fadeIn" }, Qp = ["src"], Jp = { __name: "Store", props: { pageURL: { type: String, required: !0 } }, emits: ["go-back"], setup(e, { emit: t }) { const n = oe(!1), r = () => { n.value = !0 }, a = () => { t("go-back", !1) }; return (i, o) => (R(), ne(Ne, null, [F("div", Zp, [F("iframe", { class: "absolute inset-0 w-full h-full", src: e.pageURL, onLoad: r }, null, 40, Qp)]), n.value ? (R(), ne("button", { key: 0, class: "fixed top-4 left-4 px-4 py-2 main-color text-white rounded shadow hover:bg-gray-600 transition-colors duration-200", onClick: a }, [de(A(Gc), { class: "w-15 h-9 text-white font-bold" })])) : Ge("", !0)], 64)) } }, eg = {}, tg = { class: "relative w-full h-screen" }, ng = F("div", { class: "absolute w-full h-24 bg-black top-0" }, null, -1), ag = F("div", { class: "absolute w-full h-24 bg-black bottom-0" }, null, -1), rg = [ng, ag]; function ig(e, t) { return R(), ne("div", tg, rg) } const og = $n(eg, [["render", ig]]), sg = { class: "mt-10 text-center uppercase" }, lg = { class: "text-gray-300 font-bold text-2xl opacity-60 m-2 drop-shadow-md p-3 rounded items-center justify-center uppercase" }, ug = { class: "mt-10 text-center uppercase" }, cg = { class: "text-center uppercase" }, dg = { __name: "DeleteCharacter", props: { remeainSlot: { type: Number, required: !0 }, Lang: { type: Object, required: !0 }, citizenid: { type: String, required: !0 } }, emits: ["button-menu-status"], setup(e, { emit: t }) { const n = () => { t("button-menu-status", !1), ct("selectsound") }; return (r, a) => (R(), ne(Ne, null, [F("div", sg, [F("span", lg, he(e.Lang.title), 1)]), F("div", ug, [F("button", { onMouseover: a[0] || (a[0] = i => A(ct)("hoversound")), onClick: a[1] || (a[1] = i => A(Kt)("deleteCharacter", e.citizenid)), class: "text-white font-bold text-2xl opacity-80 m-2 drop-shadow-md hover:text-gray-500 p-3 rounded transition-colors duration-200 items-center justify-center uppercase" }, he(e.Lang.yes) + " " + he(e.citizenid), 33)]), F("div", cg, [F("button", { onMouseover: a[2] || (a[2] = i => A(ct)("hoversound")), onClick: a[3] || (a[3] = i => n()), class: "text-white font-bold text-2xl opacity-80 m-2 drop-shadow-md hover:text-gray-500 p-3 rounded transition-colors duration-200 items-center justify-center uppercase" }, he(e.Lang.no), 33)])], 64)) } }; const fg = e => (cs("data-v-c5ddcb00"), e = e(), ds(), e), mg = { class: "absolute right-60 top-40 z-[100] uppercase animate__animated animate__fadeIn" }, hg = { key: 0, class: "max-w-xl" }, vg = { class: "flex text-white text-xs text-right font-bold p-5 rounded opacity-80 items-center font-sans m-1 flex-col" }, pg = { class: "text-3xl drop-shadow" }, gg = { class: "text-8xl drop-shadow" }, yg = { class: "flex items-center justify-center opacity-80 main-color rounded mw500" }, bg = { class: "flex p-2 text-white rounded text-xs items-center m-1 flex-col" }, wg = { key: 0, class: "drop-shadow font-bold" }, Fg = { key: 1, class: "drop-shadow font-bold" }, Ug = { class: "flex p-2 text-white rounded text-xs items-center m-1 flex-col" }, _g = { class: "drop-shadow font-bold" }, xg = { class: "flex p-2 text-white rounded text-xs items-center m-1 flex-col" }, Eg = { class: "drop-shadow font-bold" }, kg = { class: "flex p-2 text-white rounded text-xs items-center m-1 flex-col" }, jg = { class: "drop-shadow font-bold" }, Cg = { class: "flex p-2 text-white rounded text-xs items-center m-1 flex-col min-w-10" }, Sg = { class: "drop-shadow font-bold" }, Og = { class: "flex p-2 text-white rounded text-xs items-center m-1 flex-col" }, Tg = { class: "drop-shadow font-bold" }, Ag = { key: 0, class: "flex items-center text-white mt-2 justify-end opacity-80" }, Dg = { key: 1, class: "flex items-center justify-center mt-1 opacity-80" }, Mg = { key: 1, class: "mw15" }, Pg = fg(() => F("img", { src: As, class: "w-full mh305" }, null, -1)), Ng = [Pg], Lg = { __name: "CharacterInfo", props: { myCharacters: { type: Object, required: !0 }, remeainSlot: { type: Number, required: !0 }, deleteButtonStatus: { type: Boolean, required: !0 }, Lang: { type: Object, required: !0 }, pagesList: { type: Object, required: !0 }, speechList: { type: Object, required: !0 }, cinematicStatus: { type: Boolean, required: !0 } }, setup(e) { const t = e, n = oe(0), r = oe(!1), a = oe(!1), i = oe(!1), o = oe(!1), s = oe(!1), l = oe(0), u = oe(0), c = oe(!1), d = oe(0); sn(() => { var D, L; if (t.myCharacters && Array.isArray(t.myCharacters)) { for (let B = 0; B < t.myCharacters.length; B++)if (((D = t.myCharacters[B]) == null ? void 0 : D.cid) !== void 0 || ((L = t.myCharacters[B]) == null ? void 0 : L.charinfo.cid) !== void 0) { Kt("characterGenerate", t.myCharacters[B].citizenid), l.value = B, u.value = t.myCharacters.filter(J => J != null).length; break } if (t.speechList.Status) { const B = t.speechList.Texts; let J = Math.floor(Math.random() * B.length), k = B[J].replace("[name]", t.myCharacters[l.value].charinfo.firstname); E(k) } } }); const m = async D => { let L = l.value; do L = (L + D + t.myCharacters.length) % t.myCharacters.length; while (!t.myCharacters[L]); await Kt("characterGenerate", t.myCharacters[L].citizenid), l.value = L, c.value && q(!0, t.myCharacters[L].citizenid) }; function g() { var L; let D = []; for (let B in t.myCharacters) t.myCharacters[B] && D.push(Number(t.myCharacters[B].cid !== void 0 ? t.myCharacters[B].cid : (L = t.myCharacters[B].charinfo) == null ? void 0 : L.cid)); if (D.sort((B, J) => B - J), D[0] !== 1) return 1; for (let B = 0; B < D.length - 1; B++)if (D[B + 1] - D[B] > 1) return D[B] + 1; return D[D.length - 1] + 1 } const b = D => { t.myCharacters.length >= 1 ? n.value = g() : n.value = 1, s.value = D }, U = D => { D.key === "Escape" && (o.value = !1, r.value = !1, a.value = !1) }, P = (D, L) => { o.value = D, s.value = !1, L === "photo" ? r.value = D : L === "credits" && (a.value = D), D ? document.addEventListener("keydown", U) : document.removeEventListener("keydown", U) }, S = D => { o.value = D, i.value = D, s.value = !1 }, W = () => { if (t.myCharacters[l.value] && t.myCharacters[l.value].citizenid) Kt("playGame", { data: t.myCharacters[l.value] }); else { let D = !1; D = !D, b(D) } }, q = (D, L) => { d.value = L, c.value = D }, E = D => { const L = new SpeechSynthesisUtterance(D); L.volume = t.speechList.Volume, L.rate = t.speechList.Rate, L.pitch = t.speechList.Pitch, speechSynthesis.speak(L) }; return (D, L) => (R(), ne(Ne, null, [_t(F("div", mg, [e.myCharacters[l.value] ? (R(), ne("div", hg, [F("div", vg, [F("h1", pg, he(e.myCharacters[l.value].charinfo.firstname), 1), F("h1", gg, he(e.myCharacters[l.value].charinfo.lastname), 1)]), F("div", yg, [F("div", bg, [de(A(nd), { class: "w-5 h-8 text-white mr-1" }), e.myCharacters[l.value].cid ? (R(), ne("span", wg, he(e.myCharacters[l.value].cid), 1)) : (R(), ne("span", Fg, he(e.myCharacters[l.value].charinfo.cid), 1))]), F("div", Ug, [de(A(ad), { class: "w-5 h-8 text-white mr-1" }), F("span", _g, he(e.myCharacters[l.value].job.label), 1)]), F("div", xg, [de(A(Ms), { class: "w-5 h-8 text-white mr-1" }), F("span", Eg, he(e.myCharacters[l.value].charinfo.nationality), 1)]), F("div", kg, [de(A(Ds), { class: "w-5 h-8 text-white mr-1" }), F("span", jg, he(e.myCharacters[l.value].charinfo.birthdate), 1)]), F("div", Cg, [de(A(td), { class: "w-5 h-8 text-white mr-1" }), F("span", Sg, he(e.myCharacters[l.value].money.cash), 1)]), F("div", Og, [de(A(ed), { class: "w-5 h-8 text-white mr-1" }), F("span", Tg, he(e.myCharacters[l.value].money.bank), 1)])]), e.deleteButtonStatus ? (R(), ne("div", Ag, [F("button", { onClick: L[0] || (L[0] = B => q(!0, e.myCharacters[l.value].citizenid)), class: "flex items-center main-color p-2 rounded mr-3 hover:bg-gray-500 transition-colors duration-200" }, [de(A(rd), { class: "w-6 h-3 text-white font-bold" })])])) : Ge("", !0), u.value > 1 ? (R(), ne("div", Dg, [F("button", { onClick: L[1] || (L[1] = B => m(-1)), class: "main-color p-2 rounded mr-3 hover:bg-gray-500 transition-colors duration-200" }, [de(A(Qc), { class: "w-5 h-3 text-white font-bold" })]), F("button", { onClick: L[2] || (L[2] = B => m(1)), class: "main-color p-2 rounded hover:bg-gray-500 transition-colors duration-200" }, [de(A(Jc), { class: "w-5 h-3 text-white font-bold" })])])) : Ge("", !0)])) : (R(), ne("div", Mg, Ng)), c.value ? (R(), Ze(dg, { key: 2, citizenid: d.value, Lang: e.Lang.DeleteCharacter, onButtonMenuStatus: L[3] || (L[3] = B => q(!1)) }, null, 8, ["citizenid", "Lang"])) : Ge("", !0), c.value ? Ge("", !0) : (R(), Ze(hd, { key: 3, remeainSlot: e.remeainSlot, Lang: e.Lang.Menu, PageStatus: e.pagesList, onRegisterUpdated: b, onPhotomodeUpdated: P, onCreditsUpdated: P, onPlayGame: W, onStoreUpdated: S }, null, 8, ["remeainSlot", "Lang", "PageStatus"]))], 512), [[Dt, !o.value]]), s.value ? _t((R(), Ze(Lp, { key: 0, generateCID: n.value, Lang: e.Lang.CharacterInformation }, null, 8, ["generateCID", "Lang"])), [[Dt, !r.value]]) : Ge("", !0), r.value ? (R(), Ze(qp, { key: 1, Lang: e.Lang.PhotoMode }, null, 8, ["Lang"])) : Ge("", !0), i.value ? (R(), Ze(Jp, { key: 2, pageURL: e.pagesList.Store.URL, onGoBack: S }, null, 8, ["pageURL"])) : Ge("", !0), a.value ? (R(), Ze(Xp, { key: 3, creditsList: e.pagesList.Credits.List }, null, 8, ["creditsList"])) : Ge("", !0), e.cinematicStatus ? _t((R(), Ze(og, { key: 4 }, null, 512)), [[Dt, !r.value && !i.value && !a.value && !s.value]]) : Ge("", !0)], 64)) } }, Ig = $n(Lg, [["__scopeId", "data-v-c5ddcb00"]]), $g = { __name: "App", setup(e) { const t = oe(!1), n = oe([]), r = oe(0), a = oe(!1), i = oe([]), o = oe([]), s = oe(!1), l = oe([]), u = oe(!1); let c; const d = (g, b, U) => { U === "start" ? (c = new Audio(`./audio/${g}`), c.volume = b, c.play()) : U === "stop" && c && (c.pause(), c.currentTime = 0) }, m = g => { const b = g.data; if (b.ui) { if (s.value = !0, b.myCharacters && Array.isArray(b.myCharacters)) { let U = b.myCharacters.filter(P => P != null).length; n.value = b.myCharacters, r.value = b.totalSlots - U, a.value = b.deleteButtonStatus, l.value = b.speechList } else r.value = b.totalSlots; i.value = b.Lang, o.value = b.pagesList, u.value = b.cinematicMode, setTimeout(() => { s.value = !1, t.value = !0, b.bgMusic.Status && d(b.bgMusic.Name, b.bgMusic.Volume, "start") }, 5e3) } else t.value = !1, n.value = [], r.value = 0, b.bgMusic.Status && d(b.bgMusic.Name, b.bgMusic.Volume, "stop") }; return Za(() => { window.addEventListener("message", m), Kt("jsReady") }), ii(() => { window.removeEventListener("message", m) }), (g, b) => (R(), ne(Ne, null, [s.value ? (R(), Ze(Wc, { key: 0 })) : Ge("", !0), t.value ? (R(), Ze(Ig, { key: 1, myCharacters: n.value, remeainSlot: r.value, deleteButtonStatus: a.value, Lang: i.value, pagesList: o.value, speechList: l.value, cinematicStatus: u.value }, null, 8, ["myCharacters", "remeainSlot", "deleteButtonStatus", "Lang", "pagesList", "speechList", "cinematicStatus"])) : Ge("", !0)], 64)) } }; const Rg = Bc($g); Rg.mount("#app");